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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d590e77667170c7c6aba329db8b68d26a68de42b | 2,646 | exs | Elixir | mix.exs | jonatanklosko/ex_doc | 0a45072662beff302af42bc15baa5b8998c42f81 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | mix.exs | jonatanklosko/ex_doc | 0a45072662beff302af42bc15baa5b8998c42f81 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | mix.exs | jonatanklosko/ex_doc | 0a45072662beff302af42bc15baa5b8998c42f81 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | defmodule ExDoc.Mixfile do
use Mix.Project
@version "0.23.0"
def project do
[
app: :ex_doc,
version: @version,
elixir: "~> 1.10",
deps: deps(),
aliases: aliases(),
package: package(),
escript: escript(),
elixirc_paths: elixirc_paths(Mix.env()),
source_ur... | 23.837838 | 89 | 0.553288 |
d59103c4949048a33ddba5338aa15e34fa9361e4 | 141 | ex | Elixir | lib/yourbot_web/components/xterm.ex | ConnorRigby/yourbot | eea40e63b0f93963ed14b7efab9ecbe898ab11dd | [
"Apache-2.0"
] | 3 | 2021-11-08T15:19:19.000Z | 2021-11-11T03:18:35.000Z | lib/yourbot_web/components/xterm.ex | ConnorRigby/yourbot | eea40e63b0f93963ed14b7efab9ecbe898ab11dd | [
"Apache-2.0"
] | null | null | null | lib/yourbot_web/components/xterm.ex | ConnorRigby/yourbot | eea40e63b0f93963ed14b7efab9ecbe898ab11dd | [
"Apache-2.0"
] | null | null | null | defmodule XTerm do
use Surface.LiveComponent
def render(assigns) do
~F"""
<div :hook="XtermHook" id="XTerm"/>
"""
end
end
| 14.1 | 39 | 0.617021 |
d591312d891d9ec3bd02c4150ded5c05748c1a22 | 7,401 | ex | Elixir | lib/cldr/calendar/backend/calendar.ex | glennr/cldr_calendars | 0b0ee11c6b7464c2e7db6f525a518ce08e99c807 | [
"Apache-2.0"
] | null | null | null | lib/cldr/calendar/backend/calendar.ex | glennr/cldr_calendars | 0b0ee11c6b7464c2e7db6f525a518ce08e99c807 | [
"Apache-2.0"
] | null | null | null | lib/cldr/calendar/backend/calendar.ex | glennr/cldr_calendars | 0b0ee11c6b7464c2e7db6f525a518ce08e99c807 | [
"Apache-2.0"
] | null | null | null | defmodule Cldr.Calendar.Backend do
@moduledoc false
def define_calendar_module(config) do
backend = config.backend
quote location: :keep, bind_quoted: [config: Macro.escape(config), backend: backend] do
defmodule Calendar do
@moduledoc false
if Cldr.Config.include_module_docs?(config... | 37.378788 | 110 | 0.611674 |
d59163ca9728005e3c3c76645d69ea05e52f9dac | 6,315 | ex | Elixir | lib/aws/health.ex | RAM9/aws-elixir | 2890ba722c977e03212df6a957a19d466c05cdf6 | [
"Apache-2.0"
] | 223 | 2015-05-29T17:45:35.000Z | 2021-06-29T08:37:14.000Z | lib/aws/health.ex | RAM9/aws-elixir | 2890ba722c977e03212df6a957a19d466c05cdf6 | [
"Apache-2.0"
] | 33 | 2015-11-20T20:56:43.000Z | 2021-07-09T20:13:34.000Z | lib/aws/health.ex | RAM9/aws-elixir | 2890ba722c977e03212df6a957a19d466c05cdf6 | [
"Apache-2.0"
] | 62 | 2015-06-14T20:53:24.000Z | 2021-12-13T07:20:15.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/jkakar/aws-codegen for more details.
defmodule AWS.Health do
@moduledoc """
AWS Health
The AWS Health API provides programmatic access to the AWS Health
information that is presented in the [AWS Personal Health
Dashboard](https://phd.aws.... | 37.814371 | 82 | 0.711006 |
d5917c9bfc156002b8b6038cd25adc821a0a920e | 3,309 | exs | Elixir | mix.exs | jonnystoten/credo | 03879f4ec6987e03401d8553572804cfa5c19130 | [
"MIT"
] | null | null | null | mix.exs | jonnystoten/credo | 03879f4ec6987e03401d8553572804cfa5c19130 | [
"MIT"
] | null | null | null | mix.exs | jonnystoten/credo | 03879f4ec6987e03401d8553572804cfa5c19130 | [
"MIT"
] | null | null | null | defmodule Credo.Mixfile do
use Mix.Project
@version "1.4.0"
def project do
[
app: :credo,
version: @version,
elixir: ">= 1.5.0",
escript: [main_module: Credo.CLI],
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
test_cove... | 26.055118 | 96 | 0.572983 |
d591a606e73e7f935f246b71f2666ec90adc8478 | 9,804 | ex | Elixir | lib/ueberauth/strategy/auth0.ex | milangupta1/ueberauth_auth0 | fdea45af71232b8fa975ba3344fc4eb0a024a297 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/auth0.ex | milangupta1/ueberauth_auth0 | fdea45af71232b8fa975ba3344fc4eb0a024a297 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/auth0.ex | milangupta1/ueberauth_auth0 | fdea45af71232b8fa975ba3344fc4eb0a024a297 | [
"MIT"
] | null | null | null | defmodule Ueberauth.Strategy.Auth0 do
@moduledoc """
Provides an Ueberauth strategy for authenticating with Auth0.
You can edit the behaviour of the Strategy by including some options when
you register your provider.
To set the `uid_field`
config :ueberauth, Ueberauth,
providers: [
a... | 31.524116 | 119 | 0.647287 |
d591db428061051e5d290dda6e007c33664b3129 | 5,740 | ex | Elixir | lib/wechat/official_account/card.ex | hsieh/wechat | 6a49033d3a35a80358481778a0609f214c340a0c | [
"Apache-2.0"
] | 7 | 2021-01-22T04:07:29.000Z | 2021-12-14T14:01:30.000Z | lib/wechat/official_account/card.ex | hsieh/wechat | 6a49033d3a35a80358481778a0609f214c340a0c | [
"Apache-2.0"
] | 1 | 2021-03-17T15:44:26.000Z | 2021-03-17T15:44:26.000Z | lib/wechat/official_account/card.ex | hsieh/wechat | 6a49033d3a35a80358481778a0609f214c340a0c | [
"Apache-2.0"
] | 2 | 2021-03-17T14:35:56.000Z | 2021-08-10T07:44:10.000Z | defmodule WeChat.Card do
@moduledoc """
微信卡券
[官方文档](https://developers.weixin.qq.com/doc/offiaccount/Cards_and_Offer/WeChat_Coupon_Interface.html){:target="_blank"}
"""
import Jason.Helpers
import WeChat.Utils, only: [doc_link_prefix: 0]
@doc_link "#{doc_link_prefix()}/doc/offiaccount/Cards_and_Offer"
... | 31.538462 | 121 | 0.619512 |
d591e3d67c6df2321893c1d9399b2bff22a64b9c | 358 | ex | Elixir | test/support/conn_case.ex | bigx333/inertia_phoenix | a7d8e8a8cdd6b5f061932f3575f396eb3cbc30ea | [
"MIT"
] | 82 | 2020-02-17T16:02:58.000Z | 2022-01-25T23:46:17.000Z | test/support/conn_case.ex | bigx333/inertia_phoenix | a7d8e8a8cdd6b5f061932f3575f396eb3cbc30ea | [
"MIT"
] | 61 | 2020-03-09T09:07:26.000Z | 2021-08-03T03:28:55.000Z | test/support/conn_case.ex | bigx333/inertia_phoenix | a7d8e8a8cdd6b5f061932f3575f396eb3cbc30ea | [
"MIT"
] | 22 | 2020-02-17T13:16:32.000Z | 2022-02-26T19:04:14.000Z | defmodule InertiaPhoenix.ConnCase do
@moduledoc false
use ExUnit.CaseTemplate
alias InertiaPhoenix.TestWeb.{Endpoint, Router}
using do
quote do
import Plug.Conn
import Phoenix.ConnTest
alias Router.Helpers, as: Routes
@endpoint Endpoint
end
end
setup do
{:ok, conn: Pho... | 17.9 | 49 | 0.695531 |
d591eb7e3f864e50af3736ef075f0b2b75b6fbb3 | 511 | exs | Elixir | test/test_helper.exs | AgilionApps/relax | f8f84717b260afe3a6824df35f72f7606ad3c048 | [
"Apache-2.0"
] | 132 | 2015-01-12T17:30:24.000Z | 2021-07-03T10:21:34.000Z | test/test_helper.exs | AgilionApps/relax | f8f84717b260afe3a6824df35f72f7606ad3c048 | [
"Apache-2.0"
] | 14 | 2015-03-03T14:00:03.000Z | 2016-03-07T01:45:28.000Z | test/test_helper.exs | AgilionApps/relax | f8f84717b260afe3a6824df35f72f7606ad3c048 | [
"Apache-2.0"
] | 15 | 2015-02-11T20:31:44.000Z | 2019-05-21T06:24:38.000Z | ExUnit.start()
defmodule Forge do
use Blacksmith
register :author,
type: :map,
id: Sequence.next(:author_id),
name: Faker.Name.first_name,
email: Faker.Internet.email
register :post,
type: :map,
id: Sequence.next(:post_id),
title: Faker.Lorem.sentence,
body:... | 20.44 | 39 | 0.624266 |
d591ec92c96774e77d734e0e424f2fc5b22d3155 | 2,344 | ex | Elixir | lib/logstash_logger_collector.ex | ThanhDev2703/logstash_logger_backend | 6613a764908dffe23ae824fd03e83bd7f4fca8a7 | [
"MIT"
] | 2 | 2021-01-25T13:14:23.000Z | 2021-06-11T09:54:15.000Z | lib/logstash_logger_collector.ex | ThanhDev2703/logstash_logger_backend | 6613a764908dffe23ae824fd03e83bd7f4fca8a7 | [
"MIT"
] | null | null | null | lib/logstash_logger_collector.ex | ThanhDev2703/logstash_logger_backend | 6613a764908dffe23ae824fd03e83bd7f4fca8a7 | [
"MIT"
] | null | null | null | defmodule LogstashLoggerCollector do
@log_period 60_000
use GenServer
require Logger
def start_link(config_name) do
name = process_name(config_name)
GenServer.start_link(__MODULE__, [config_name], name: name)
end
@impl true
def init([config_name]) do
Logger.info("#{__MODULE__} with name #{co... | 26.636364 | 95 | 0.633106 |
d5924123845c627c560f5913ac5d70f5fb6d9d88 | 2,119 | exs | Elixir | test/floki/flat_text_test.exs | midas-framework/floki | d85b038a1e4c0522ac0f0f9ea9bbedaef07baca2 | [
"MIT"
] | 1,778 | 2015-01-07T14:12:31.000Z | 2022-03-29T22:42:48.000Z | test/floki/flat_text_test.exs | midas-framework/floki | d85b038a1e4c0522ac0f0f9ea9bbedaef07baca2 | [
"MIT"
] | 279 | 2015-01-01T15:54:50.000Z | 2022-03-28T18:06:03.000Z | test/floki/flat_text_test.exs | midas-framework/floki | d85b038a1e4c0522ac0f0f9ea9bbedaef07baca2 | [
"MIT"
] | 166 | 2015-04-24T20:48:02.000Z | 2022-03-28T17:29:05.000Z | defmodule Floki.FlatTextTest do
use ExUnit.Case, async: true
doctest Floki.FlatText
test "text in a simple HTML node" do
node = {"a", [{"href", "http://elixir-lang.org"}], ["Elixir lang"]}
assert Floki.FlatText.get(node) == "Elixir lang"
end
test "text in a simple HTML node with separator" do
... | 32.106061 | 98 | 0.587541 |
d5925be3371407acab1a2b4274c93118a044b3ec | 2,118 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_batch_delete_entities_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_batch_delete_entities_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_batch_delete_entities_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2021-03-04T13:43:47.000Z | 2021-03-04T13:43:47.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.509091 | 320 | 0.747875 |
d59262bed3266e32d914801359bb32f43d6dc344 | 4,906 | exs | Elixir | apps/tai/test/tai/trading/orders/amend_bulk_test.exs | chrism2671/tai-1 | 847827bd23908adfad4a82c83d5295bdbc022796 | [
"MIT"
] | 1 | 2019-12-19T05:16:26.000Z | 2019-12-19T05:16:26.000Z | apps/tai/test/tai/trading/orders/amend_bulk_test.exs | CalebOts/tai | 1603bfefa390eac89085ba18fd259b2e9fcac6c0 | [
"MIT"
] | null | null | null | apps/tai/test/tai/trading/orders/amend_bulk_test.exs | CalebOts/tai | 1603bfefa390eac89085ba18fd259b2e9fcac6c0 | [
"MIT"
] | 1 | 2020-05-03T23:32:11.000Z | 2020-05-03T23:32:11.000Z | defmodule Tai.Trading.Orders.AmendBulkTest do
use ExUnit.Case, async: false
import Tai.TestSupport.Helpers
alias Tai.TestSupport.Mocks
alias Mocks.Responses.Orders.GoodTillCancel
setup do
on_exit(fn ->
:ok = Application.stop(:tai)
end)
start_supervised!(Mocks.Server)
{:ok, _} = Applica... | 35.550725 | 93 | 0.638606 |
d5927afe6cf9ddb0f5b74db258b0690cfe4aa904 | 604 | ex | Elixir | lib/bracketeer/rooms/scoreboard.ex | caromo/bracketeer | 93b4fcaed0e4f6e83c49af6b3ed2573e3b44fac0 | [
"MIT"
] | 1 | 2019-06-20T20:29:10.000Z | 2019-06-20T20:29:10.000Z | lib/bracketeer/rooms/scoreboard.ex | caromo/bracketeer | 93b4fcaed0e4f6e83c49af6b3ed2573e3b44fac0 | [
"MIT"
] | 3 | 2020-07-16T23:11:31.000Z | 2021-05-08T14:44:21.000Z | lib/bracketeer/rooms/scoreboard.ex | caromo/bracketeer | 93b4fcaed0e4f6e83c49af6b3ed2573e3b44fac0 | [
"MIT"
] | null | null | null | defmodule Bracketeer.Rooms.Scoreboard do
use Ecto.Schema
import Ecto.Changeset
schema "scoreboards" do
field :byes, :integer
field :matches, :integer
field :score, :integer
belongs_to :bracket, Bracketeer.Rooms.Bracket
belongs_to :player, Bracketeer.Rooms.Player
timestamps()
end
@do... | 24.16 | 70 | 0.69702 |
d5929c39db78588dca8390c103119d270d8335a0 | 540 | ex | Elixir | lib/absinthe/relay/connection/types.ex | frekw/absinthe_relay | 6127fa44f9be825c77ec91127da90172f7c7472b | [
"MIT"
] | null | null | null | lib/absinthe/relay/connection/types.ex | frekw/absinthe_relay | 6127fa44f9be825c77ec91127da90172f7c7472b | [
"MIT"
] | null | null | null | lib/absinthe/relay/connection/types.ex | frekw/absinthe_relay | 6127fa44f9be825c77ec91127da90172f7c7472b | [
"MIT"
] | null | null | null | defmodule Absinthe.Relay.Connection.Types do
@moduledoc false
use Absinthe.Schema.Notation
object :page_info do
@desc "When paginating backwards, are there more items?"
field :has_previous_page, non_null(:boolean)
@desc "When paginating forwards, are there more items?"
field :has_next_page, no... | 23.478261 | 62 | 0.727778 |
d592c91527e5d93554c613c27b73879f97a075ab | 2,259 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/instance_groups_scoped_list_warning.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/instance_groups_scoped_list_warning.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/instance_groups_scoped_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... | 41.833333 | 194 | 0.729084 |
d592f7212d1eedbc2f3f2717ee209c6cfa1ef48e | 960 | ex | Elixir | web/models/user.ex | underhilllabs/big_snips | 7f1b59d2be45fe6a488d8e3ce7842e7cc867d676 | [
"MIT"
] | 3 | 2016-12-20T17:16:39.000Z | 2017-02-22T11:06:56.000Z | web/models/user.ex | underhilllabs/big_snips | 7f1b59d2be45fe6a488d8e3ce7842e7cc867d676 | [
"MIT"
] | 1 | 2017-05-31T16:32:41.000Z | 2017-05-31T16:32:41.000Z | web/models/user.ex | underhilllabs/big_snips | 7f1b59d2be45fe6a488d8e3ce7842e7cc867d676 | [
"MIT"
] | null | null | null | defmodule BigSnips.User do
use BigSnips.Web, :model
schema "users" do
field :name, :string
field :username, :string
field :password_hash, :string
field :password, :string, virtual: true
field :email, :string
timestamps()
end
@doc """
Builds a changeset based on the `struct` and `par... | 24 | 79 | 0.642708 |
d5931dc11e66aaabd24064f6147c9aa9313305b0 | 425 | exs | Elixir | apps/ejoi_stats_web/test/ejoi_stats_web/views/error_view_test.exs | vahansoft/ejoi-stats | f2faf5fce3324e1dd9980917f78b9bfa3d006380 | [
"MIT"
] | null | null | null | apps/ejoi_stats_web/test/ejoi_stats_web/views/error_view_test.exs | vahansoft/ejoi-stats | f2faf5fce3324e1dd9980917f78b9bfa3d006380 | [
"MIT"
] | 2 | 2021-03-10T05:08:08.000Z | 2021-05-11T01:05:07.000Z | apps/ejoi_stats_web/test/ejoi_stats_web/views/error_view_test.exs | vahansoft/ejoi-stats | f2faf5fce3324e1dd9980917f78b9bfa3d006380 | [
"MIT"
] | null | null | null | defmodule EjoiStatsWeb.ErrorViewTest do
use EjoiStatsWeb.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(EjoiStatsWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
... | 28.333333 | 94 | 0.738824 |
d59342d05378aa46e7d737a71207ff8fc0569737 | 678 | ex | Elixir | lib/hacker_news_aggregator_web/channels/stories_channel.ex | rhnonose/hacker_news_aggregator | 2dbcf9db4fb08c9cdc716959e0283c5e98312586 | [
"MIT"
] | null | null | null | lib/hacker_news_aggregator_web/channels/stories_channel.ex | rhnonose/hacker_news_aggregator | 2dbcf9db4fb08c9cdc716959e0283c5e98312586 | [
"MIT"
] | null | null | null | lib/hacker_news_aggregator_web/channels/stories_channel.ex | rhnonose/hacker_news_aggregator | 2dbcf9db4fb08c9cdc716959e0283c5e98312586 | [
"MIT"
] | null | null | null | defmodule HackerNewsAggregatorWeb.StoriesChannel do
use HackerNewsAggregatorWeb, :channel
def join("top_stories_fetched", _payload, socket) do
send(self(), :send_after)
{:ok, socket}
end
def handle_info(%{topic: "top_stories_fetched", payload: payload}, socket) do
# clean_payload = Enum.map(payloa... | 23.37931 | 79 | 0.687316 |
d5935a07cc0cf9aab963140ab82ce77b45e44943 | 1,910 | ex | Elixir | lib/basic_auth/with_callback.ex | smartepsh/basic_auth | dcab6569d94d780334091fd64c93dcfda705fb40 | [
"MIT"
] | 145 | 2015-08-25T01:00:52.000Z | 2019-08-14T13:35:43.000Z | lib/basic_auth/with_callback.ex | smartepsh/basic_auth | dcab6569d94d780334091fd64c93dcfda705fb40 | [
"MIT"
] | 38 | 2015-08-24T07:24:01.000Z | 2019-05-06T06:42:44.000Z | lib/basic_auth/with_callback.ex | smartepsh/basic_auth | dcab6569d94d780334091fd64c93dcfda705fb40 | [
"MIT"
] | 39 | 2015-12-30T15:29:17.000Z | 2019-07-31T07:07:44.000Z | defmodule BasicAuth.WithCallback do
@moduledoc """
Basic auth plugin functions callback to a provided function with credentials
"""
import BasicAuth.Response, only: [unauthorise: 3]
defstruct callback: nil, realm: nil, custom_response: nil
def init(options) when is_list(options) do
callback = Keyword... | 26.901408 | 96 | 0.67801 |
d5936164b8929d070511b06a2d962562310a1e0f | 1,485 | ex | Elixir | lib/quickstart_web/views/error_helpers.ex | feihong/elixir-quickstart | bbdb839c3db4f1470b4172b7036dc6d9ed9c6251 | [
"Apache-2.0"
] | null | null | null | lib/quickstart_web/views/error_helpers.ex | feihong/elixir-quickstart | bbdb839c3db4f1470b4172b7036dc6d9ed9c6251 | [
"Apache-2.0"
] | null | null | null | lib/quickstart_web/views/error_helpers.ex | feihong/elixir-quickstart | bbdb839c3db4f1470b4172b7036dc6d9ed9c6251 | [
"Apache-2.0"
] | null | null | null | defmodule QuickstartWeb.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... | 33 | 79 | 0.672727 |
d5936d5a337bfb1924a4021d0beb6491d7852b97 | 1,139 | ex | Elixir | lib/dashboard_web/live/page_live.ex | franknfjr/dashboard | 68ff963d4cd51b1b3d92373e84b606fccedb7d89 | [
"MIT"
] | 1 | 2021-01-27T17:44:38.000Z | 2021-01-27T17:44:38.000Z | lib/dashboard_web/live/page_live.ex | franknfjr/dashboard | 68ff963d4cd51b1b3d92373e84b606fccedb7d89 | [
"MIT"
] | null | null | null | lib/dashboard_web/live/page_live.ex | franknfjr/dashboard | 68ff963d4cd51b1b3d92373e84b606fccedb7d89 | [
"MIT"
] | null | null | null | defmodule DashboardWeb.PageLive do
@moduledoc """
module live
"""
use DashboardWeb, :live_view
@impl true
def mount(_params, _session, socket) do
{:ok, assign(socket, query: "", results: %{})}
end
@impl true
def handle_event("suggest", %{"q" => query}, socket) do
{:noreply, assign(socket, re... | 26.488372 | 84 | 0.602283 |
d593a3650d832211a25e8d5a7f8db056d3fc56a8 | 1,175 | ex | Elixir | Microsoft.Azure.Management.Database.CosmosDb/lib/microsoft/azure/management/database/cosmos_db/model/metric.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Database.CosmosDb/lib/microsoft/azure/management/database/cosmos_db/model/metric.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Database.CosmosDb/lib/microsoft/azure/management/database/cosmos_db/model/metric.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Database.CosmosDb.Model.Metric do
@moduledoc """
Metric data
"""
@derive [Poison.Encoder]
defstruct [
:"... | 29.375 | 115 | 0.697021 |
d593b7eaf45579d84559c5ba4fb4be5e42f8b963 | 2,200 | exs | Elixir | config/prod.exs | mbgardner/apothecary | e3392732c1ff7645c36b6aa3b53a012b6d352e14 | [
"MIT"
] | null | null | null | config/prod.exs | mbgardner/apothecary | e3392732c1ff7645c36b6aa3b53a012b6d352e14 | [
"MIT"
] | null | null | null | config/prod.exs | mbgardner/apothecary | e3392732c1ff7645c36b6aa3b53a012b6d352e14 | [
"MIT"
] | 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
# ApothecaryWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
#... | 33.846154 | 67 | 0.725 |
d593f1ba46d27a98d6bc9db281f92ea10159979f | 150 | ex | Elixir | lib/shiritorishi_web/controllers/page_controller.ex | Foo-x/Shiritorishi | ee9b58f74c51941f958c986578c95c26a9920816 | [
"Apache-2.0"
] | null | null | null | lib/shiritorishi_web/controllers/page_controller.ex | Foo-x/Shiritorishi | ee9b58f74c51941f958c986578c95c26a9920816 | [
"Apache-2.0"
] | null | null | null | lib/shiritorishi_web/controllers/page_controller.ex | Foo-x/Shiritorishi | ee9b58f74c51941f958c986578c95c26a9920816 | [
"Apache-2.0"
] | null | null | null | defmodule ShiritorishiWeb.PageController do
use ShiritorishiWeb, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 18.75 | 43 | 0.76 |
d593f679fa86a7230814c30577cc740259768da9 | 9,007 | ex | Elixir | lib/edeliver.ex | qhwa/edeliver | f90999b54a90f2eb6d68e21bf5759872b42eee41 | [
"Unlicense",
"MIT"
] | 1 | 2021-06-25T10:36:14.000Z | 2021-06-25T10:36:14.000Z | lib/edeliver.ex | qhwa/edeliver | f90999b54a90f2eb6d68e21bf5759872b42eee41 | [
"Unlicense",
"MIT"
] | null | null | null | lib/edeliver.ex | qhwa/edeliver | f90999b54a90f2eb6d68e21bf5759872b42eee41 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule Edeliver do
@moduledoc """
Execute edeliver tasks on the production / staging nodes.
This internal module provides functions on the nodes which are
used by some edeliver tasks e.g. to get the running release version
(`edeliver version`), show the pending migrations
(`edeliver show migra... | 41.699074 | 235 | 0.710003 |
d59401cc4a63c3596a67d21fa51b76c58555f5d6 | 1,724 | ex | Elixir | test/controllers.ex | elixir-web/weber | 1c8caa43681cc432813dff33b2c6d08ca1d61f29 | [
"MIT"
] | 124 | 2015-01-03T16:48:21.000Z | 2022-02-02T21:13:11.000Z | test/controllers.ex | elixir-web/weber | 1c8caa43681cc432813dff33b2c6d08ca1d61f29 | [
"MIT"
] | 2 | 2015-03-08T05:29:36.000Z | 2015-07-19T15:31:19.000Z | test/controllers.ex | elixir-web/weber | 1c8caa43681cc432813dff33b2c6d08ca1d61f29 | [
"MIT"
] | 12 | 2015-02-23T02:09:27.000Z | 2016-08-07T13:50:38.000Z | defmodule TestTestTest.Main do
use Weber.Controller
layout false
def action([], _conn) do
{:render, [], [{"content-type", "text/html"}]}
end
def action1([binding: value], _conn) do
{:text, "Main Controller: " <> value, []}
end
end
defmodule TestTestTest.Include do
use Weber.Controller
lay... | 17.773196 | 89 | 0.664733 |
d59403fbb5c4116530a5db2c12c4e9fc173b1306 | 1,531 | exs | Elixir | mix.exs | Sebi55/echsx | 666d4b67c1bf8dbff608878a49205782cefe2c31 | [
"MIT"
] | null | null | null | mix.exs | Sebi55/echsx | 666d4b67c1bf8dbff608878a49205782cefe2c31 | [
"MIT"
] | null | null | null | mix.exs | Sebi55/echsx | 666d4b67c1bf8dbff608878a49205782cefe2c31 | [
"MIT"
] | null | null | null | defmodule Echsx.Mixfile do
use Mix.Project
def project do
[
app: :echsx,
name: "echsx",
source_url: "https://github.com/Sebi55/echsx",
version: "0.0.1",
elixir: "~> 1.6",
description: description(),
deps: deps(),
package: package(),
build_embedded: Mix.env(... | 23.553846 | 95 | 0.542129 |
d59408c491213784ded86c8ffb3aa056b3a63e8f | 596 | ex | Elixir | lib/scenic/primitive/style/paint/draw/radial_gradient.ex | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/style/paint/draw/radial_gradient.ex | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/style/paint/draw/radial_gradient.ex | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 6/4/18.
# Copyright © 2017 Kry10 Industries. All rights reserved.
#
defmodule Scenic.Primitive.Style.Paint.RadialGradient do
alias Scenic.Primitive.Style.Paint.Color
# --------------------------------------------------------
def normalize({cx, cy, inner_radius, outer_radius, co... | 27.090909 | 101 | 0.634228 |
d5941cb2540ca8b32e1f944a08749c58de50458e | 3,130 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/insert_text_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/insert_text_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/insert_text_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.649351 | 174 | 0.71885 |
d594337af5757c79b0a18cff286615048fa9cfa9 | 1,143 | exs | Elixir | elixir/structs.exs | ztk37/snippets | 17354149a1c673365d164cbd114d26dfe2dd83c7 | [
"MIT"
] | null | null | null | elixir/structs.exs | ztk37/snippets | 17354149a1c673365d164cbd114d26dfe2dd83c7 | [
"MIT"
] | null | null | null | elixir/structs.exs | ztk37/snippets | 17354149a1c673365d164cbd114d26dfe2dd83c7 | [
"MIT"
] | null | null | null | defmodule Note do
alias Note
@type title :: String.t()
@type body :: String.t()
@type tags :: [String.t()]
@type t :: %__MODULE__{
title: title,
body: body,
tags: tags
}
defstruct id: nil,
title: "",
body: "",
tags: [],
... | 20.410714 | 53 | 0.545057 |
d59440cf67bc60c644ab82466bf61b58cbd0d311 | 3,970 | ex | Elixir | clients/iap/lib/google_api/iap/v1/model/resource.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/iap/lib/google_api/iap/v1/model/resource.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/iap/lib/google_api/iap/v1/model/resource.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... | 45.113636 | 129 | 0.718388 |
d59440d25bc934e0c0cfbe0cf77070f303d4ef2c | 212 | ex | Elixir | lib/rube_web/live/keep3r_live.ex | icecube11/rube | 5d813c5b9f7b984786ac7db6fd2eca0939bf5468 | [
"MIT"
] | 22 | 2021-06-23T06:25:41.000Z | 2022-02-16T19:08:33.000Z | lib/rube_web/live/keep3r_live.ex | icecube11/rube | 5d813c5b9f7b984786ac7db6fd2eca0939bf5468 | [
"MIT"
] | 16 | 2021-06-21T17:02:13.000Z | 2022-03-21T15:04:14.000Z | lib/rube_web/live/keep3r_live.ex | icecube11/rube | 5d813c5b9f7b984786ac7db6fd2eca0939bf5468 | [
"MIT"
] | 2 | 2021-06-23T13:40:52.000Z | 2021-09-17T07:25:34.000Z | defmodule RubeWeb.Keep3rLive do
use RubeWeb, :live_view
@impl true
def mount(_params, _session, socket) do
jobs = []
socket =
socket
|> assign(jobs: jobs)
{:ok, socket}
end
end
| 14.133333 | 41 | 0.613208 |
d594874e734a238b7c7e7d0964c7deeec7a46e09 | 1,536 | ex | Elixir | lib/plug/parsers/json.ex | husafwan/plug | c9e91717ae3a624d94fc6e917db938731526e72a | [
"Apache-2.0"
] | null | null | null | lib/plug/parsers/json.ex | husafwan/plug | c9e91717ae3a624d94fc6e917db938731526e72a | [
"Apache-2.0"
] | null | null | null | lib/plug/parsers/json.ex | husafwan/plug | c9e91717ae3a624d94fc6e917db938731526e72a | [
"Apache-2.0"
] | null | null | null | defmodule Plug.Parsers.JSON do
@moduledoc """
Parses JSON request body.
JSON arrays are parsed into a `"_json"` key to allow
proper param merging.
An empty request body is parsed as an empty map.
"""
@behaviour Plug.Parsers
import Plug.Conn
def parse(conn, "application", subtype, _headers, opts) d... | 23.630769 | 83 | 0.640625 |
d594afecd72c4f8d52bee619adfba113420fb32f | 9,781 | ex | Elixir | lib/statements_reader/utils.ex | r-coh/mpesa_statements_scrapper | 6d4d6116c5d8f465a8c503891e4d4b45bc8b088f | [
"MIT"
] | 2 | 2021-07-28T18:09:04.000Z | 2021-11-20T07:27:02.000Z | lib/statements_reader/utils.ex | r-coh/mpesa_statements_scrapper | 6d4d6116c5d8f465a8c503891e4d4b45bc8b088f | [
"MIT"
] | null | null | null | lib/statements_reader/utils.ex | r-coh/mpesa_statements_scrapper | 6d4d6116c5d8f465a8c503891e4d4b45bc8b088f | [
"MIT"
] | null | null | null | defmodule StatementsReader.Utils do
require Logger
alias StatementsReader.Utils
defp log_return(any, acc) do
Logger.error(
"[Error] matching, encountered line: \n\tGot: #{inspect(any, pretty: true)}\n\n\tAcc: #{inspect(acc, pretty: true)}"
)
acc
end
def split(list, acc \\ [])
def split(... | 26.724044 | 256 | 0.500051 |
d594bbdc5accf107a40f6a66edb5c82343c8bc79 | 429 | ex | Elixir | lib/pummpcomm/history/alarm_clock_reminder.ex | infinity-aps/pummpcomm | 7380585ecd110ab1c19d2aea3880e51e3f433050 | [
"MIT"
] | 15 | 2017-08-31T00:58:47.000Z | 2020-01-12T03:53:13.000Z | lib/pummpcomm/history/alarm_clock_reminder.ex | vladhj38/pummpcomm | 7380585ecd110ab1c19d2aea3880e51e3f433050 | [
"MIT"
] | 1 | 2017-09-15T02:09:31.000Z | 2017-09-15T02:09:31.000Z | lib/pummpcomm/history/alarm_clock_reminder.ex | vladhj38/pummpcomm | 7380585ecd110ab1c19d2aea3880e51e3f433050 | [
"MIT"
] | 3 | 2017-09-10T17:24:59.000Z | 2019-09-10T19:41:49.000Z | defmodule Pummpcomm.History.AlarmClockReminder do
@moduledoc """
A `Pummpcomm.History.StandardEvent` tied to an alarm set in `MAIN MENU` > `Utilities` > `Alarm Clock`.
"""
@behaviour Pummpcomm.History.Decoder
@impl Pummpcomm.History.Decoder
@spec decode(binary, Pummpcomm.PumpModel.pump_options()) :: %{tim... | 35.75 | 104 | 0.755245 |
d594c223892e7e87ad642f6fc1a436382c5aa115 | 661 | ex | Elixir | lib/exddnss/application.ex | chrta/exddnss | 6a22aec30071f8060de59efaa9ae54e6799bd4fe | [
"Apache-2.0"
] | null | null | null | lib/exddnss/application.ex | chrta/exddnss | 6a22aec30071f8060de59efaa9ae54e6799bd4fe | [
"Apache-2.0"
] | null | null | null | lib/exddnss/application.ex | chrta/exddnss | 6a22aec30071f8060de59efaa9ae54e6799bd4fe | [
"Apache-2.0"
] | null | null | null | defmodule Exddnss.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
{Exddnss.DdnssUpdater, %{poll_intervall: 60_0000,
# Put in your update key and host
... | 27.541667 | 61 | 0.674735 |
d594c5a30edb4b6edff6d447104e38e0394c9013 | 228 | ex | Elixir | lib/phone/nanp/us/me.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp/us/me.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/nanp/us/me.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | defmodule Phone.NANP.US.ME do
@moduledoc false
use Helper.Area
def regex, do: ~r/^(1)(207)([2-9].{6})$/
def area_name, do: "Maine"
def area_type, do: "state"
def area_abbreviation, do: "ME"
matcher ["1207"]
end
| 17.538462 | 42 | 0.635965 |
d594dd3056e6d7ec7dc0b23d808827f69d775005 | 2,131 | ex | Elixir | clients/assured_workloads/lib/google_api/assured_workloads/v1beta1/model/google_cloud_assuredworkloads_v1_workload_kms_settings.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/assured_workloads/lib/google_api/assured_workloads/v1beta1/model/google_cloud_assuredworkloads_v1_workload_kms_settings.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/assured_workloads/lib/google_api/assured_workloads/v1beta1/model/google_cloud_assuredworkloads_v1_workload_kms_settings.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.745455 | 263 | 0.754575 |
d5950ae52421c991dfab1b27f32af02c376976a1 | 1,648 | exs | Elixir | test/level/svg_test.exs | pradyumna2905/level | 186878a128521074923edd7171eda2f1b181b4f4 | [
"Apache-2.0"
] | null | null | null | test/level/svg_test.exs | pradyumna2905/level | 186878a128521074923edd7171eda2f1b181b4f4 | [
"Apache-2.0"
] | null | null | null | test/level/svg_test.exs | pradyumna2905/level | 186878a128521074923edd7171eda2f1b181b4f4 | [
"Apache-2.0"
] | null | null | null | defmodule Level.SvgTest do
use Level.DataCase, async: true
alias Level.Svg
describe "to_elm/1" do
test "handles blank input" do
assert {:ok, ""} = Svg.to_elm("")
end
test "converts svg to Elm" do
svg = ~s{
<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1">
... | 32.313725 | 417 | 0.553398 |
d5954ee0e43318709127c62256287ba3acad02ca | 83 | exs | Elixir | test/ex_cucumber_message_test.exs | WannesFransen1994/ex_cucumber_messages | 339622f868b71cb434142eaa9ab5cd6ebda0b3ff | [
"MIT"
] | null | null | null | test/ex_cucumber_message_test.exs | WannesFransen1994/ex_cucumber_messages | 339622f868b71cb434142eaa9ab5cd6ebda0b3ff | [
"MIT"
] | null | null | null | test/ex_cucumber_message_test.exs | WannesFransen1994/ex_cucumber_messages | 339622f868b71cb434142eaa9ab5cd6ebda0b3ff | [
"MIT"
] | null | null | null | defmodule ExCucumberMessagesTest do
use ExUnit.Case
# No testdata for now
end
| 13.833333 | 35 | 0.783133 |
d595567fff47a93dcf5bd0c8247cd31847b21272 | 808 | ex | Elixir | elixir/codes-from-books/little-elixir/cap11/concuerror_playground/lib/counter_server.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/lib/counter_server.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | null | null | null | elixir/codes-from-books/little-elixir/cap11/concuerror_playground/lib/counter_server.ex | trxeste/wrk | 3e05e50ff621866f0361cc8494ce8f6bb4d97fae | [
"BSD-3-Clause"
] | null | null | null | defmodule CounterServer do
use GenServer
@server __MODULE__
@table :table
def start_link do
GenServer.start_link(__MODULE__, [], name: @server)
end
def count_down do
GenServer.call(@server, :count_down)
end
def set(n) do
GenServer.cast(@server, {:set, n})
end
def init([]) do
:et... | 19.238095 | 55 | 0.59901 |
d5955bd0599e0bbc8712485c2595575935a6054c | 2,314 | ex | Elixir | spec/fixtures/mix/deps/earmark/lib/earmark/cli.ex | mttkay/license_scout | dc6997e21af70237bb1636b466aff86dee846929 | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2017-10-01T18:00:25.000Z | 2022-02-23T18:26:53.000Z | spec/fixtures/mix/deps/earmark/lib/earmark/cli.ex | mttkay/license_scout | dc6997e21af70237bb1636b466aff86dee846929 | [
"ECL-2.0",
"Apache-2.0"
] | 107 | 2016-08-03T18:16:51.000Z | 2021-07-23T08:42:51.000Z | spec/fixtures/mix/deps/earmark/lib/earmark/cli.ex | mttkay/license_scout | dc6997e21af70237bb1636b466aff86dee846929 | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2017-10-31T16:16:05.000Z | 2022-02-16T10:31:04.000Z | defmodule Earmark.CLI do
def main(argv) do
argv
|> parse_args
|> process
end
@args """
usage:
earmark --help
earmark --version
earmark [ options... <file> ]
convert file from Markdown to HTML.
where options can be any of:
-- code_class_prefix -- gfm -- smartypants -... | 23.612245 | 83 | 0.591616 |
d5957b1c90250753be3db145d137aeb8fe1df5fd | 2,933 | ex | Elixir | clients/firestore/lib/google_api/firestore/v1/model/batch_get_documents_request.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1/model/batch_get_documents_request.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/firestore/lib/google_api/firestore/v1/model/batch_get_documents_request.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.507246 | 154 | 0.717013 |
d595c4415990d4a1d115ea4d6a80ead58469f1cb | 2,244 | ex | Elixir | lib/jan/registry.ex | brianstorti/jan | e3e7172c672705b7d4e3912e16d5a69496a79e4a | [
"Apache-2.0"
] | 54 | 2016-02-07T21:44:14.000Z | 2022-01-06T04:10:59.000Z | lib/jan/registry.ex | brianstorti/jan | e3e7172c672705b7d4e3912e16d5a69496a79e4a | [
"Apache-2.0"
] | 1 | 2016-02-13T15:52:55.000Z | 2016-02-13T15:52:55.000Z | lib/jan/registry.ex | brianstorti/jan | e3e7172c672705b7d4e3912e16d5a69496a79e4a | [
"Apache-2.0"
] | 4 | 2016-02-13T11:54:00.000Z | 2022-01-06T04:19:26.000Z | defmodule Jan.Registry do
@moduledoc """
This module is responsible for storing and retrieving a process for a given room.
We have a process for each room, and use the room id to identify them.
When a new room is created, we add a new entry in this `Map`, using the room id
as the key and the pid as a value.
... | 23.621053 | 96 | 0.659091 |
d595cef7a069a030ff7e36fb1a6475a2eda0b208 | 1,002 | ex | Elixir | lib/absinthe/language/inline_fragment.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 4,101 | 2016-03-02T03:49:20.000Z | 2022-03-31T05:46:01.000Z | lib/absinthe/language/inline_fragment.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 889 | 2016-03-02T16:06:59.000Z | 2022-03-31T20:24:12.000Z | lib/absinthe/language/inline_fragment.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 564 | 2016-03-02T07:49:59.000Z | 2022-03-06T14:40:59.000Z | defmodule Absinthe.Language.InlineFragment do
@moduledoc false
alias Absinthe.{Blueprint, Language}
defstruct type_condition: nil,
directives: [],
selection_set: nil,
loc: %{line: nil}
@type t :: %__MODULE__{
type_condition: nil | Language.NamedType.t(),
... | 27.081081 | 80 | 0.645709 |
d595da611582ee9adaab43416424ed486f578105 | 7,421 | ex | Elixir | memory_backend/lib/memory_backend/model.ex | AdrianPaulCarrieres/lpiot2020-memory-adrianpaulcarrieres | 0a2d66c6ecf501188a949807c8ea2d99c26c531b | [
"MIT"
] | null | null | null | memory_backend/lib/memory_backend/model.ex | AdrianPaulCarrieres/lpiot2020-memory-adrianpaulcarrieres | 0a2d66c6ecf501188a949807c8ea2d99c26c531b | [
"MIT"
] | 15 | 2020-12-23T16:09:28.000Z | 2020-12-26T22:32:47.000Z | memory_backend/lib/memory_backend/model.ex | AdrianPaulCarrieres/lpiot2020-memory-adrianpaulcarrieres | 0a2d66c6ecf501188a949807c8ea2d99c26c531b | [
"MIT"
] | null | null | null | defmodule MemoryBackend.Model do
@moduledoc """
The Model context.
"""
import Ecto.Query, warn: false
alias MemoryBackend.Repo
alias MemoryBackend.Model.{Deck, Score}
@doc """
Returns the list of decks.
## Examples
iex> list_decks()
[%Deck{}, ...]
"""
def list_decks do
Repo.a... | 17.178241 | 93 | 0.565153 |
d595da924bdd9713154589ee9cb3002bbfd14745 | 79 | exs | Elixir | test/views/layout_view_test.exs | kagemiku/ciphoenix | 1d75529d5f92d4605bdc650e330414c9cda0c128 | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | kagemiku/ciphoenix | 1d75529d5f92d4605bdc650e330414c9cda0c128 | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | kagemiku/ciphoenix | 1d75529d5f92d4605bdc650e330414c9cda0c128 | [
"MIT"
] | null | null | null | defmodule Ciphoenix.LayoutViewTest do
use Ciphoenix.ConnCase, async: true
end | 26.333333 | 37 | 0.835443 |
d595fd56b7f2a64ff64c774e8e3482e01175cfea | 120 | ex | Elixir | 2020/elixir/roman/lib/hardcoded.ex | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | 2020/elixir/roman/lib/hardcoded.ex | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | 2020/elixir/roman/lib/hardcoded.ex | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | defmodule Hardcoded do
require RomanMacro
RomanMacro.roman_function(:i, 1)
RomanMacro.roman_function(:ii, 2)
end
| 17.142857 | 35 | 0.775 |
d5961d0bc36917717e2fd7ce32ce23d463110537 | 4,081 | exs | Elixir | day06.exs | bjorng/advent-of-code-2018 | 5dd312b7473d7f2fe12f0de1fd771c3ee1931b97 | [
"Apache-2.0"
] | 7 | 2018-12-12T01:08:24.000Z | 2019-12-09T19:50:36.000Z | day06.exs | bjorng/advent-of-code-2018 | 5dd312b7473d7f2fe12f0de1fd771c3ee1931b97 | [
"Apache-2.0"
] | null | null | null | day06.exs | bjorng/advent-of-code-2018 | 5dd312b7473d7f2fe12f0de1fd771c3ee1931b97 | [
"Apache-2.0"
] | null | null | null | #
# I struggled with this one a looong time. I got the answers in the
# end, but I had to add hard-coded iteration limits. So this solution
# may not work with other input data.
#
# To run tests:
#
# elixir day06.exs
#
# To run part 1 and 2:
#
# > iex day06.exs
# [iex]> Day06.part1
# [iex]> Day06.part2
#
d... | 22.546961 | 108 | 0.596913 |
d596384bd4e6df9728ce0c52db7d7c12820be3f5 | 1,380 | exs | Elixir | test/dlex/node_test.exs | windfish-studio/dlex | c5ee6b67b77e626c7e1f8b7f7665c168ddd87863 | [
"Apache-2.0"
] | null | null | null | test/dlex/node_test.exs | windfish-studio/dlex | c5ee6b67b77e626c7e1f8b7f7665c168ddd87863 | [
"Apache-2.0"
] | null | null | null | test/dlex/node_test.exs | windfish-studio/dlex | c5ee6b67b77e626c7e1f8b7f7665c168ddd87863 | [
"Apache-2.0"
] | null | null | null | defmodule Dlex.NodeTest do
use ExUnit.Case
alias Dlex.User
describe "schema generation" do
test "basic" do
assert "user" == User.__schema__(:source)
assert :string == User.__schema__(:type, :name)
assert :integer == User.__schema__(:type, :age)
assert [:name, :age, :friends] == User.... | 30.666667 | 69 | 0.415942 |
d5964594d1cbbe09fa6342431087bef3dcecc251 | 1,488 | ex | Elixir | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/import_file.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/import_file.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/import_file.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... | 29.76 | 82 | 0.715726 |
d5966e2b491fb94535057bc12ef7cb1731b50fc4 | 1,747 | ex | Elixir | deps/comeonin/lib/comeonin/pbkdf2_base64.ex | Thrashmandicoot/my-first-phoenix-app | 7cdfe34a1d874cbce8dba17e9824a5c91e3b47da | [
"MIT"
] | 1 | 2015-08-24T06:01:51.000Z | 2015-08-24T06:01:51.000Z | deps/comeonin/lib/comeonin/pbkdf2_base64.ex | Thrashmandicoot/my-first-phoenix-app | 7cdfe34a1d874cbce8dba17e9824a5c91e3b47da | [
"MIT"
] | null | null | null | deps/comeonin/lib/comeonin/pbkdf2_base64.ex | Thrashmandicoot/my-first-phoenix-app | 7cdfe34a1d874cbce8dba17e9824a5c91e3b47da | [
"MIT"
] | null | null | null | defmodule Comeonin.Pbkdf2Base64 do
@moduledoc """
Module that provides base64 encoding for pbkdf2.
"""
import Bitwise
b64_alphabet = Enum.with_index 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789./'
for {encoding, value} <- b64_alphabet do
defp unquote(:enc64)(unquote(value)), do: un... | 27.730159 | 99 | 0.566686 |
d5966fac003035b78a5034003ecc07b87e09fe82 | 1,110 | ex | Elixir | lib/madness/player/stories/supervisor.ex | LeviSchuck/madness | 2914f012bd4f40cef2ad39a6d0344a97baf35c79 | [
"MIT"
] | null | null | null | lib/madness/player/stories/supervisor.ex | LeviSchuck/madness | 2914f012bd4f40cef2ad39a6d0344a97baf35c79 | [
"MIT"
] | null | null | null | lib/madness/player/stories/supervisor.ex | LeviSchuck/madness | 2914f012bd4f40cef2ad39a6d0344a97baf35c79 | [
"MIT"
] | null | null | null | defmodule Madness.Player.Stories.Supervisor do
@moduledoc """
Supervises all player story data instances.
Story data instances may be added via `add_story`.
"""
require Logger
# Track all players
use Supervisor
@spec start_link(binary) :: pid
def start_link(player) do
Supervisor.start_link(__MODU... | 27.75 | 72 | 0.672072 |
d59670fec6324c6a8e413e635169fc80d1408c6f | 6,245 | exs | Elixir | test/oli_web/controllers/institution_controller_test.exs | DevShashi1993/oli-torus | e6e0b66f0973f9790a5785731b22db6fb1c50a73 | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | test/oli_web/controllers/institution_controller_test.exs | DevShashi1993/oli-torus | e6e0b66f0973f9790a5785731b22db6fb1c50a73 | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | test/oli_web/controllers/institution_controller_test.exs | DevShashi1993/oli-torus | e6e0b66f0973f9790a5785731b22db6fb1c50a73 | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule OliWeb.InstitutionControllerTest do
use OliWeb.ConnCase
import ExUnit.CaptureLog
alias Oli.Repo
alias Oli.Accounts
alias Oli.Accounts.Author
alias Oli.Institutions
alias Oli.Lti_1p3.Tool.Registration
alias Lti_1p3.DataProviders.EctoProvider.Deployment
alias Oli.Institutions.PendingRegistra... | 33.218085 | 99 | 0.683587 |
d596711cca6127ad28d345143571163f40e2254d | 383 | ex | Elixir | unsilo/lib/unsilo/domains/subscriber.ex | TehSnappy/unsilo_elixir | d0dd592dee71ed5b994ac08cd347aa357d5845f4 | [
"MIT"
] | 1 | 2019-03-21T02:43:06.000Z | 2019-03-21T02:43:06.000Z | unsilo/lib/unsilo/domains/subscriber.ex | TehSnappy/unsilo_elixir | d0dd592dee71ed5b994ac08cd347aa357d5845f4 | [
"MIT"
] | 3 | 2021-03-09T01:43:16.000Z | 2022-02-10T17:04:55.000Z | unsilo/lib/unsilo/domains/subscriber.ex | TehSnappy/unsilo_elixir | d0dd592dee71ed5b994ac08cd347aa357d5845f4 | [
"MIT"
] | null | null | null | defmodule Unsilo.Domains.Subscriber do
use Ecto.Schema
import Ecto.Changeset
import Ecto.Query, warn: false
schema "subscribers" do
field :email, :string
field :spot_id, :integer
timestamps()
end
@doc false
def changeset(subscribers, attrs) do
subscribers
|> cast(attrs, [:email, :sp... | 19.15 | 44 | 0.684073 |
d5967165c30e8ad985ea185b4b3ededd1bfd796b | 3,398 | exs | Elixir | apps/webapp/spec/graphql/resolver_spec.exs | iporaitech/phoenix-webpack-react-docker | c454db0b851b9d00db868a64b96e567d4a0cc3d9 | [
"MIT"
] | 25 | 2016-08-09T15:04:37.000Z | 2021-11-15T12:20:27.000Z | apps/webapp/spec/graphql/resolver_spec.exs | iporaitech/phoenix-webpack-react-docker | c454db0b851b9d00db868a64b96e567d4a0cc3d9 | [
"MIT"
] | 62 | 2016-05-23T20:16:40.000Z | 2017-04-18T18:36:29.000Z | apps/webapp/spec/graphql/resolver_spec.exs | iporaitech/phoenix-webpack-react-docker | c454db0b851b9d00db868a64b96e567d4a0cc3d9 | [
"MIT"
] | 10 | 2016-08-17T15:29:21.000Z | 2017-02-28T07:58:30.000Z | defmodule Webapp.GraphQL.ResolverSpec do
use ESpec
import Webapp.Factory
alias Webapp.GraphQL.Resolver
# TODO: DRY, DRY & DRY !!!
let :current_user, do: insert(:user)
let :user, do: insert(:user)
# NOTE: In the examples below, we stub can? with the expected behaviour
# to not rely on possibly ch... | 36.537634 | 94 | 0.613302 |
d596bc0d60f8042fe0cb7ceaeec2545888d8f020 | 11,399 | ex | Elixir | lib/aws/generated/snowball.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/snowball.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/snowball.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.Snowball do
@moduledoc """
AWS Snow Family is a petabyte-scale data transport solution that uses
secure devices to transfer large amounts of data between your on-premises
data centers and ... | 37.996667 | 83 | 0.713922 |
d596e06ee764996e1adcfa1a26b2b043c01c4ceb | 667 | exs | Elixir | config/test.exs | mirerjr/rocketpay | 11658a8681cda45fe6cff5524c73bb042d3cdce5 | [
"MIT"
] | null | null | null | config/test.exs | mirerjr/rocketpay | 11658a8681cda45fe6cff5524c73bb042d3cdce5 | [
"MIT"
] | null | null | null | config/test.exs | mirerjr/rocketpay | 11658a8681cda45fe6cff5524c73bb042d3cdce5 | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :rocketpay, Rocketpay.Repo,
username: "postgres",
password: "1234",
database: "rocketpay_test#{System.... | 29 | 68 | 0.751124 |
d596e25d60b623effcaeb041e5a7badcff2d9518 | 11,962 | ex | Elixir | lib/ex_cypher.ex | gleopoldo/ex-cypher | aa0d43b8a95fe40219e74d6058702017d12e226c | [
"MIT"
] | 3 | 2020-03-09T14:28:52.000Z | 2021-06-27T13:29:27.000Z | lib/ex_cypher.ex | gleopoldo/ex-cypher | aa0d43b8a95fe40219e74d6058702017d12e226c | [
"MIT"
] | 15 | 2019-12-25T23:31:02.000Z | 2020-02-21T16:45:11.000Z | lib/ex_cypher.ex | gleopoldo/ex-cypher | aa0d43b8a95fe40219e74d6058702017d12e226c | [
"MIT"
] | null | null | null | defmodule ExCypher do
@moduledoc """
A DSL to build Cypher queries using elixir syntax
Use a simple macro to build your queries without any kind of string
interpolation.
### Example
Import `ExCypher` into your module, as follows, and feel free to build
your queries.
iex> defmodule SomeQuery do
... | 35.286136 | 124 | 0.599147 |
d596ed02015b2327ba68e7f20a07a740a9a39c21 | 347 | ex | Elixir | lib/supabase_surface/components/icons/icon_cloud_snow.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 5 | 2021-06-08T08:02:43.000Z | 2022-02-09T23:13:46.000Z | lib/supabase_surface/components/icons/icon_cloud_snow.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | null | null | null | lib/supabase_surface/components/icons/icon_cloud_snow.ex | treebee/supabase-surface | 5a184ca92323c085dd81e2fc8aa8c10367f2382e | [
"Apache-2.0"
] | 1 | 2021-07-14T05:20:31.000Z | 2021-07-14T05:20:31.000Z | defmodule SupabaseSurface.Components.Icons.IconCloudSnow do
use SupabaseSurface.Components.Icon
@impl true
def render(assigns) do
icon_size = IconContainer.get_size(assigns.size)
~F"""
<IconContainer assigns={assigns}>
{Feathericons.cloud_snow(width: icon_size, height: icon_size)}
</IconCo... | 23.133333 | 68 | 0.723343 |
d596f548055cd858d4aa272c26979a6b5815f6a1 | 882 | exs | Elixir | test/mail/encoders/eight_bit_test.exs | sam701/elixir-mail | 5771a8b8808c26f7d6adc3a44859f2c140c994e1 | [
"MIT"
] | 387 | 2016-02-09T23:17:51.000Z | 2022-03-31T13:57:05.000Z | test/mail/encoders/eight_bit_test.exs | sam701/elixir-mail | 5771a8b8808c26f7d6adc3a44859f2c140c994e1 | [
"MIT"
] | 84 | 2016-02-09T21:20:11.000Z | 2022-03-10T09:58:43.000Z | test/mail/encoders/eight_bit_test.exs | sam701/elixir-mail | 5771a8b8808c26f7d6adc3a44859f2c140c994e1 | [
"MIT"
] | 70 | 2016-02-10T15:21:44.000Z | 2021-12-08T18:20:25.000Z | defmodule Mail.Encoders.EightBitTest do
use ExUnit.Case, async: true
test "encode handles empty strings" do
assert Mail.Encoders.EightBit.encode("") == ""
end
test "encode wraps lines longer than 1000 characters" do
message = String.duplicate("-", 2000)
encoding = Mail.Encoders.EightBit.encode(mes... | 28.451613 | 69 | 0.678005 |
d5971a41c6b64ff25ce4093a6497678867adea79 | 527 | exs | Elixir | priv/repo/migrations/20170201221621_create_media.exs | taorg/rumbl | 7b212283f8dc2da56eddcba4281a6fff2cf4f378 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20170201221621_create_media.exs | taorg/rumbl | 7b212283f8dc2da56eddcba4281a6fff2cf4f378 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20170201221621_create_media.exs | taorg/rumbl | 7b212283f8dc2da56eddcba4281a6fff2cf4f378 | [
"Apache-2.0"
] | null | null | null | defmodule Rumbl.Repo.Migrations.CreateMedia do
use Ecto.Migration
def change do
create table(:medias) do
add :image, :string
add :video, :string
add :content_type, :string
add :filesize, :integer
add :users_id, references(:users)
timestamps()
end
create table(:med... | 20.269231 | 46 | 0.624288 |
d5973205767918bc016e0faa23dd6a6b894b4739 | 751 | ex | Elixir | apps/neoscan/lib/neoscan/addresses/address_history.ex | decentralisedkev/neo-scan | c8a35a0952e8c46d40365e0ac76bce361ac5e558 | [
"MIT"
] | null | null | null | apps/neoscan/lib/neoscan/addresses/address_history.ex | decentralisedkev/neo-scan | c8a35a0952e8c46d40365e0ac76bce361ac5e558 | [
"MIT"
] | null | null | null | apps/neoscan/lib/neoscan/addresses/address_history.ex | decentralisedkev/neo-scan | c8a35a0952e8c46d40365e0ac76bce361ac5e558 | [
"MIT"
] | null | null | null | defmodule Neoscan.AddressHistory do
@moduledoc """
Represent a Address in Database.
"""
use Ecto.Schema
alias Neoscan.Address
alias Neoscan.Transaction
alias Neoscan.Asset
@primary_key false
schema "address_histories" do
belongs_to(
:address,
Address,
foreign_key: :address_hash,... | 17.880952 | 37 | 0.628495 |
d59754a61f5fdbcc5160c408d0ee3e2383e57d34 | 1,874 | ex | Elixir | lib/surgex/parser/parsers/include_parser.ex | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 10 | 2017-09-15T08:55:48.000Z | 2021-07-08T09:26:24.000Z | lib/surgex/parser/parsers/include_parser.ex | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 17 | 2017-07-24T11:27:22.000Z | 2022-01-24T22:28:18.000Z | lib/surgex/parser/parsers/include_parser.ex | surgeventures/surgex | b3acdd6a9a010c26f0081b9cb23aeb072459be30 | [
"MIT"
] | 2 | 2018-04-12T15:01:00.000Z | 2018-05-27T12:14:34.000Z | defmodule Surgex.Parser.IncludeParser do
@moduledoc """
Parses the JSON API's include parameter according to the
[JSON API spec](http://jsonapi.org/format/#fetching-includes).
Produces a list of includes constrained to the provided relationship paths.
"""
@type errors :: :invalid_relationship_path | :inva... | 29.746032 | 80 | 0.644077 |
d5975585ddbd6019eb43d51e0636e3a505f54bf7 | 1,763 | ex | Elixir | lib/hello_web/router.ex | noahjames404/elixir-pheonix-framework | c1587709d67ef7c9bad247d4fe4ec80e23e4041b | [
"MIT"
] | null | null | null | lib/hello_web/router.ex | noahjames404/elixir-pheonix-framework | c1587709d67ef7c9bad247d4fe4ec80e23e4041b | [
"MIT"
] | null | null | null | lib/hello_web/router.ex | noahjames404/elixir-pheonix-framework | c1587709d67ef7c9bad247d4fe4ec80e23e4041b | [
"MIT"
] | null | null | null | defmodule HelloWeb.Router do
use HelloWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug HelloWeb.Plugs.Locale, "en"
end
pipeline :api do
plug :accepts, ["json"]
end
... | 26.313433 | 93 | 0.674986 |
d59757dfe5b47041c286dd5a4b36ecf8d6b6b4a2 | 4,339 | exs | Elixir | test/support/test_repo.exs | IcyEagle/ecto | 26237057d4ffff2daf5258e181eccc3238b71490 | [
"Apache-2.0"
] | null | null | null | test/support/test_repo.exs | IcyEagle/ecto | 26237057d4ffff2daf5258e181eccc3238b71490 | [
"Apache-2.0"
] | null | null | null | test/support/test_repo.exs | IcyEagle/ecto | 26237057d4ffff2daf5258e181eccc3238b71490 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.TestAdapter do
@behaviour Ecto.Adapter
alias Ecto.Migration.SchemaMigration
defmacro __before_compile__(_opts), do: :ok
def ensure_all_started(_, _) do
{:ok, []}
end
def child_spec(_repo, opts) do
:ecto = opts[:otp_app]
"user" = opts[:username]
"pass" = opts[:password]... | 28.175325 | 102 | 0.649689 |
d5975e4e37a96bb83dc28d6153e8b2832cbfd5d5 | 7,388 | ex | Elixir | lib/data/row_set.ex | rockneurotiko/bigtable | a83d0c3e513a212265b2f6fc775407fa71ac049c | [
"MIT"
] | null | null | null | lib/data/row_set.ex | rockneurotiko/bigtable | a83d0c3e513a212265b2f6fc775407fa71ac049c | [
"MIT"
] | null | null | null | lib/data/row_set.ex | rockneurotiko/bigtable | a83d0c3e513a212265b2f6fc775407fa71ac049c | [
"MIT"
] | null | null | null | defmodule Bigtable.RowSet do
@moduledoc """
Provides functions to build a `Google.Bigtable.V2.RowSet` and apply it to a `Google.Bigtable.V2.ReadRowsRequest`
"""
alias Bigtable.ReadRows
alias Google.Bigtable.V2
@doc """
Adds a single or list of row keys to a `Google.Bigtable.V2.ReadRowsRequest`
Returns... | 32.121739 | 174 | 0.630482 |
d5976cf38addda4cbe9f7d9fd7d6669bb6d60beb | 2,849 | ex | Elixir | lib/atom_tweaks_web/helpers/form_helpers.ex | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | 14 | 2017-01-08T14:51:25.000Z | 2022-03-14T09:23:17.000Z | lib/atom_tweaks_web/helpers/form_helpers.ex | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | 654 | 2017-05-23T22:55:21.000Z | 2022-03-30T09:02:25.000Z | lib/atom_tweaks_web/helpers/form_helpers.ex | amymariparker/atom-style-tweaks | 9f17b626e4a527d17d2da85ac575029b52fb6a25 | [
"MIT"
] | 4 | 2019-07-10T23:09:25.000Z | 2020-02-09T12:14:00.000Z | defmodule AtomTweaksWeb.FormHelpers do
@moduledoc """
Functions for building HTML forms, specifically designed to work with
[GitHub Primer](https://primer.style).
"""
use Phoenix.HTML
alias Phoenix.HTML.Form
alias AtomTweaks.Markdown
alias AtomTweaksWeb.ErrorHelpers
@doc """
Displays the appropri... | 26.877358 | 100 | 0.631801 |
d59798f287b997d03beb29da761258cce8fe7174 | 1,830 | exs | Elixir | test/server_test.exs | ityonemo/multiverses | 24b65367b369cc8122d24836816340ff2072c501 | [
"MIT"
] | 4 | 2020-06-27T02:15:42.000Z | 2020-12-21T14:24:42.000Z | test/server_test.exs | ityonemo/multiverses | 24b65367b369cc8122d24836816340ff2072c501 | [
"MIT"
] | 4 | 2020-06-03T16:51:55.000Z | 2020-09-08T19:28:55.000Z | test/server_test.exs | ityonemo/multiverses | 24b65367b369cc8122d24836816340ff2072c501 | [
"MIT"
] | 1 | 2020-12-21T14:24:47.000Z | 2020-12-21T14:24:47.000Z | defmodule MultiversesTest.TestServer do
use Multiverses
use GenServer
def start_link(_) do
link = Multiverses.link()
GenServer.start_link(__MODULE__, link)
end
def init(link) do
Multiverses.port(link)
{:ok, nil}
end
def get_universe(server), do: GenServer.call(server, :get_universe)
d... | 23.164557 | 69 | 0.63388 |
d59799227b8683cff356c91ef409348cd9803266 | 762 | ex | Elixir | farmbot_core/lib/farmbot_core/asset/schema.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 1 | 2021-08-23T13:36:14.000Z | 2021-08-23T13:36:14.000Z | farmbot_core/lib/farmbot_core/asset/schema.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_core/lib/farmbot_core/asset/schema.ex | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | defmodule FarmbotCore.Asset.Schema do
@moduledoc """
Common Schema attributes.
"""
@doc false
defmacro __using__(opts) do
quote do
use Ecto.Schema
import Ecto.Changeset
@behaviour FarmbotCore.Asset.Schema
@behaviour FarmbotCore.Asset.View
import FarmbotCore.Asset.View, onl... | 25.4 | 68 | 0.673228 |
d597a3fb1c035fb994edc017d259829cb3cb55e8 | 70 | ex | Elixir | lib/herald/errors/missing_router.ex | herald-library/herald | f35da8c9450c330cbd1ecd01e7e0107ba18cbd56 | [
"MIT"
] | 7 | 2020-04-30T20:20:41.000Z | 2021-04-11T14:26:02.000Z | lib/herald/errors/missing_router.ex | herald-library/herald | f35da8c9450c330cbd1ecd01e7e0107ba18cbd56 | [
"MIT"
] | 10 | 2020-05-15T00:30:03.000Z | 2021-08-03T06:13:22.000Z | lib/herald/errors/missing_router.ex | herald-library/herald | f35da8c9450c330cbd1ecd01e7e0107ba18cbd56 | [
"MIT"
] | null | null | null | defmodule Herald.Errors.MissingRouter do
defexception [:message]
end | 23.333333 | 40 | 0.828571 |
d597ae20c5e53820f9594988406d1cfc2444fec0 | 1,837 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_keystore_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_keystore_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_keystore_config.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... | 34.018519 | 154 | 0.741971 |
d597b809e7af0c5f33e76a00e6b5734c17f5c42b | 478 | ex | Elixir | deps/postgrex/lib/postgrex/extensions/macaddr.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | 1 | 2016-08-17T11:39:26.000Z | 2016-08-17T11:39:26.000Z | deps/postgrex/lib/postgrex/extensions/macaddr.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/postgrex/lib/postgrex/extensions/macaddr.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | defmodule Postgrex.Extensions.MACADDR do
@moduledoc false
use Postgrex.BinaryExtension, [send: "macaddr_send"]
def encode(_, %Postgrex.MACADDR{address: {a, b, c, d, e, f}}, _, _),
do: <<a, b, c, d, e, f>>
def encode(type_info, value, _, _) do
raise ArgumentError,
Postgrex.Utils.encode_msg(type_in... | 31.866667 | 70 | 0.621339 |
d5981e976ba7504f8d59efb40bfa21a21e794d84 | 1,448 | ex | Elixir | lib/colorify_web/endpoint.ex | ashkan18/colorify | e4da2bc54a60199c411afc696086689d825b7a13 | [
"MIT"
] | 1 | 2020-03-12T18:44:10.000Z | 2020-03-12T18:44:10.000Z | lib/colorify_web/endpoint.ex | ashkan18/colorify | e4da2bc54a60199c411afc696086689d825b7a13 | [
"MIT"
] | 1 | 2021-03-10T10:22:38.000Z | 2021-03-10T10:22:38.000Z | lib/colorify_web/endpoint.ex | ashkan18/colorify | e4da2bc54a60199c411afc696086689d825b7a13 | [
"MIT"
] | 1 | 2020-03-12T18:41:42.000Z | 2020-03-12T18:41:42.000Z | defmodule ColorifyWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :colorify
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_colorif... | 28.96 | 97 | 0.714088 |
d598216bc0d92251e7af7102a6b851d767d363a0 | 354 | ex | Elixir | lib/1000/p1003.ex | penqen/yukicoder-elixir | 4f3e9e4694a14434cc3700280e9205226434733b | [
"MIT"
] | null | null | null | lib/1000/p1003.ex | penqen/yukicoder-elixir | 4f3e9e4694a14434cc3700280e9205226434733b | [
"MIT"
] | null | null | null | lib/1000/p1003.ex | penqen/yukicoder-elixir | 4f3e9e4694a14434cc3700280e9205226434733b | [
"MIT"
] | null | null | null | defmodule P1003 do
@moduledoc """
## Examples
iex> P1003.solve(8)
"No"
iex> P1003.solve(6)
"Yes"
iex> P1003.solve(65536)
"No"
"""
def main do
n = IO.read(:line) |> String.trim() |> String.to_integer()
n |> solve() |> IO.puts()
end
def solve(n) when rem(n, 6) == 0, do: "... | 15.391304 | 62 | 0.528249 |
d59828a850350a6867bff3f69cfa91ec1e81cab5 | 1,612 | exs | Elixir | mix.exs | flexibility-org/elastic | c9d6e3c514e7a1f4958e2ba462c189829e3e5660 | [
"MIT"
] | null | null | null | mix.exs | flexibility-org/elastic | c9d6e3c514e7a1f4958e2ba462c189829e3e5660 | [
"MIT"
] | 1 | 2021-10-18T11:43:13.000Z | 2021-10-19T07:34:57.000Z | mix.exs | flexibility-org/elastic | c9d6e3c514e7a1f4958e2ba462c189829e3e5660 | [
"MIT"
] | null | null | null | defmodule Elastic.Mixfile do
use Mix.Project
@version "3.5.4"
def project do
[
app: :elastic,
version: @version,
elixir: "~> 1.5",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
... | 24.424242 | 72 | 0.521092 |
d5984a012a8e70c3ded9db2aff1f46e51afc6eff | 2,797 | ex | Elixir | lib/response/response.ex | mtrudel/phoenix_alexa | 3418f7548d077ebe2e3fe039cc4d4825dcb01f3b | [
"MIT"
] | 10 | 2016-11-07T01:15:05.000Z | 2020-10-14T14:15:54.000Z | lib/response/response.ex | mtrudel/phoenix_alexa | 3418f7548d077ebe2e3fe039cc4d4825dcb01f3b | [
"MIT"
] | 2 | 2017-03-19T14:16:33.000Z | 2018-11-05T18:49:57.000Z | lib/response/response.ex | mtrudel/phoenix_alexa | 3418f7548d077ebe2e3fe039cc4d4825dcb01f3b | [
"MIT"
] | 11 | 2016-12-30T23:32:40.000Z | 2019-08-18T16:30:16.000Z | defmodule PhoenixAlexa.Response do
alias PhoenixAlexa.{Response, TextOutputSpeech, SsmlOutputSpeech}
alias PhoenixAlexa.{SimpleCard, StandardCard, LinkAccountCard}
defstruct version: "1.0",
sessionAttributes: %{},
response: %{
shouldEndSession: false
}
# def s... | 34.9625 | 108 | 0.716124 |
d5984d94de02994b32ebd1c5f210f6eae867fcda | 1,244 | ex | Elixir | lib/ex_admin/schema.ex | fanduel/ex_admin | 05806a718859a0e155d3447c3ffde8a536fd676a | [
"MIT"
] | 1 | 2017-03-23T00:50:59.000Z | 2017-03-23T00:50:59.000Z | lib/ex_admin/schema.ex | fanduel/ex_admin | 05806a718859a0e155d3447c3ffde8a536fd676a | [
"MIT"
] | null | null | null | lib/ex_admin/schema.ex | fanduel/ex_admin | 05806a718859a0e155d3447c3ffde8a536fd676a | [
"MIT"
] | null | null | null | defmodule ExAdmin.Schema do
@moduledoc false
def primary_key(%Ecto.Query{from: %{source: {_, mod}}}) do
primary_key(mod)
end
def primary_key(module) when is_atom(module) do
case module.__schema__(:primary_key) do
[] -> nil
[key | _] -> key
end
end
def primary_key(resource) do
... | 25.387755 | 84 | 0.676045 |
d5987b9186319ab9379027f790a347b4151787f3 | 3,456 | ex | Elixir | lib/ex_machina/sequence.ex | mojidabckuu/ex_machina | 31d19cc5572d85d3c144756b765b634995ab9c2b | [
"MIT"
] | null | null | null | lib/ex_machina/sequence.ex | mojidabckuu/ex_machina | 31d19cc5572d85d3c144756b765b634995ab9c2b | [
"MIT"
] | null | null | null | lib/ex_machina/sequence.ex | mojidabckuu/ex_machina | 31d19cc5572d85d3c144756b765b634995ab9c2b | [
"MIT"
] | 1 | 2021-01-16T19:05:50.000Z | 2021-01-16T19:05:50.000Z | defmodule ExMachina.Sequence do
@moduledoc """
Module for generating sequential values.
Use `ExMachina.sequence/1` or `ExMachina.sequence/2` to generate
sequential values instead of calling this module directly.
"""
@doc false
def start_link do
Agent.start_link(fn -> Map.new() end, name: __MODULE__)... | 27.212598 | 96 | 0.653646 |
d5989cf628c66563b056ad3335b3925298b20f0f | 458 | ex | Elixir | lib/conduit/blog/projections/author.ex | fpauser/conduit | 8721f72c75ae702992283e05ac9b992495274458 | [
"MIT"
] | 298 | 2017-06-05T14:28:23.000Z | 2022-03-30T16:53:44.000Z | lib/conduit/blog/projections/author.ex | fpauser/conduit | 8721f72c75ae702992283e05ac9b992495274458 | [
"MIT"
] | 28 | 2017-07-21T01:06:47.000Z | 2021-03-07T12:32:56.000Z | lib/conduit/blog/projections/author.ex | fpauser/conduit | 8721f72c75ae702992283e05ac9b992495274458 | [
"MIT"
] | 77 | 2017-08-14T20:12:03.000Z | 2021-12-08T22:24:59.000Z | defmodule Conduit.Blog.Projections.Author do
use Ecto.Schema
@primary_key {:uuid, :binary_id, autogenerate: false}
@timestamps_opts [type: :utc_datetime_usec]
schema "blog_authors" do
field(:user_uuid, :binary_id)
field(:username, :string)
field(:bio, :string)
field(:image, :string)
field(... | 25.444444 | 62 | 0.689956 |
d598e67ee07d01425754e31ffc5950e9c44efeb5 | 1,325 | ex | Elixir | api/socket/lib/socket_web/endpoint.ex | betacode-projects/share-reader | 98ac76e072c40da427c447e4dc2779d411cb2aff | [
"MIT"
] | null | null | null | api/socket/lib/socket_web/endpoint.ex | betacode-projects/share-reader | 98ac76e072c40da427c447e4dc2779d411cb2aff | [
"MIT"
] | null | null | null | api/socket/lib/socket_web/endpoint.ex | betacode-projects/share-reader | 98ac76e072c40da427c447e4dc2779d411cb2aff | [
"MIT"
] | null | null | null | defmodule SocketWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :socket
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_socket_key"... | 27.040816 | 63 | 0.697358 |
d59915c7e458cba7e51e032519d34e973a1c5ae5 | 1,594 | ex | Elixir | priv/templates/phx.gen.live/index.ex | rrrcompagnoni/phoenix | ca7488815a9b5bcaee0b9afee10162d177a2b90d | [
"MIT"
] | null | null | null | priv/templates/phx.gen.live/index.ex | rrrcompagnoni/phoenix | ca7488815a9b5bcaee0b9afee10162d177a2b90d | [
"MIT"
] | null | null | null | priv/templates/phx.gen.live/index.ex | rrrcompagnoni/phoenix | ca7488815a9b5bcaee0b9afee10162d177a2b90d | [
"MIT"
] | null | null | null | defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web_namespace, schema.alias) %>Live.Index do
use <%= inspect context.web_module %>, :live_view
alias <%= inspect context.module %>
alias <%= inspect schema.module %>
@impl true
def mount(_params, _session, socket) do
{:ok, assi... | 33.914894 | 121 | 0.628607 |
d59916e9e3aba783f006c7434fd64590568f589c | 1,309 | exs | Elixir | mix.exs | 0b01/ex_tectonicdb | 49d0ea4920aa60e97f1a63e72d660b7dd5231654 | [
"MIT"
] | 2 | 2020-05-18T07:16:14.000Z | 2020-10-07T19:25:46.000Z | mix.exs | 0b01/ex_tectonicdb | 49d0ea4920aa60e97f1a63e72d660b7dd5231654 | [
"MIT"
] | null | null | null | mix.exs | 0b01/ex_tectonicdb | 49d0ea4920aa60e97f1a63e72d660b7dd5231654 | [
"MIT"
] | null | null | null | defmodule ExTectonicdb.MixProject do
use Mix.Project
def project do
[
app: :ex_tectonicdb,
version: "0.1.0",
elixir: "~> 1.9",
package: package(),
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
dialyzer: dialyzer()
]
end
d... | 21.112903 | 72 | 0.565317 |
d59934b2cb138d6f3b475984c615a31a7a41a5f3 | 997 | ex | Elixir | lib/http_client.ex | cloud8421/gig | a2bc5d004ae8b11a92e971c043de3e544fcfbfcf | [
"MIT"
] | null | null | null | lib/http_client.ex | cloud8421/gig | a2bc5d004ae8b11a92e971c043de3e544fcfbfcf | [
"MIT"
] | null | null | null | lib/http_client.ex | cloud8421/gig | a2bc5d004ae8b11a92e971c043de3e544fcfbfcf | [
"MIT"
] | null | null | null | defmodule HTTPClient do
defmodule Response do
@moduledoc false
defstruct status_code: 100,
headers: [],
body: <<>>
end
defmodule ErrorResponse do
@moduledoc false
defstruct message: nil
end
@moduledoc """
Simple http client based on httpc.
"""
def get(url, q... | 23.186047 | 76 | 0.611836 |
d5993a89a974a0a9dd0fb40b289dc9de3f208b9f | 805 | exs | Elixir | test/alfredoChat_web/channels/room_channel_test.exs | lujeremy/AlfredoChat | edabdcb3e077002e379efad841b17158b184ace4 | [
"MIT"
] | null | null | null | test/alfredoChat_web/channels/room_channel_test.exs | lujeremy/AlfredoChat | edabdcb3e077002e379efad841b17158b184ace4 | [
"MIT"
] | 2 | 2021-03-09T12:33:57.000Z | 2021-05-10T02:49:27.000Z | test/alfredoChat_web/channels/room_channel_test.exs | lujeremy/BasicChat | edabdcb3e077002e379efad841b17158b184ace4 | [
"MIT"
] | null | null | null | defmodule AlfredoChatWeb.RoomChannelTest do
use AlfredoChatWeb.ChannelCase
setup do
{:ok, _, socket} =
socket(AlfredoChatWeb.UserSocket, "user_id", %{some: :assign})
|> subscribe_and_join(AlfredoChatWeb.RoomChannel, "room:lobby")
{:ok, socket: socket}
end
test "ping replies with status ok... | 29.814815 | 69 | 0.640994 |
d5996b93720d54da2fa776babda89f2961469ca7 | 582 | ex | Elixir | lib/blue_jet/app/balance/external/identity_service.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 44 | 2018-05-09T01:08:57.000Z | 2021-01-19T07:25:26.000Z | lib/blue_jet/app/balance/external/identity_service.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 36 | 2018-05-08T23:59:54.000Z | 2018-09-28T13:50:30.000Z | lib/blue_jet/app/balance/external/identity_service.ex | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 9 | 2018-05-09T14:09:19.000Z | 2021-03-21T21:04:04.000Z | defmodule BlueJet.Balance.IdentityService do
@identity_service Application.get_env(:blue_jet, :balance)[:identity_service]
@callback put_vas_data(map) :: map
@callback get_account(String.t() | map) :: map
@callback update_account(map, map, map) :: map
@callback get_user(map, map) :: map
defdelegate put_v... | 38.8 | 86 | 0.764605 |
d599770c5029fb700436c922aa1164c9be889585 | 2,029 | ex | Elixir | lib/cli.ex | enixdark/audit_worker | 38f280a44d8577783ed61086a09d7a77718f4453 | [
"MIT"
] | null | null | null | lib/cli.ex | enixdark/audit_worker | 38f280a44d8577783ed61086a09d7a77718f4453 | [
"MIT"
] | null | null | null | lib/cli.ex | enixdark/audit_worker | 38f280a44d8577783ed61086a09d7a77718f4453 | [
"MIT"
] | null | null | null | require IEx;
defmodule Cli do
require Logger
defp parse_args(args) do
parse = OptionParser.parse(args,
switches: [all: :boolean],
aliases: [a: :boolean]
)
case parse do
{[boolean: a], _, _} -> process(a)
{_, _, _} -> process(:help)
end
end
defp func_worker(id, module, p... | 28.985714 | 84 | 0.461804 |
d5997c7207ad93417d39822c1d18f23f3ef8a2f5 | 2,788 | exs | Elixir | test/platform_web/controllers/course_controller_test.exs | lucab85/audioslides.io | cb502ccf6ed0b2db42d9fb20bb4c963bcca3cfa9 | [
"MIT"
] | 17 | 2017-11-14T14:03:18.000Z | 2021-12-10T04:18:48.000Z | test/platform_web/controllers/course_controller_test.exs | lucab85/audioslides.io | cb502ccf6ed0b2db42d9fb20bb4c963bcca3cfa9 | [
"MIT"
] | 21 | 2017-11-19T13:38:07.000Z | 2022-02-10T00:11:14.000Z | test/platform_web/controllers/course_controller_test.exs | lucab85/audioslides.io | cb502ccf6ed0b2db42d9fb20bb4c963bcca3cfa9 | [
"MIT"
] | 2 | 2019-09-03T03:32:13.000Z | 2021-02-23T21:52:57.000Z | defmodule PlatformWeb.CourseControllerTest do
use PlatformWeb.ConnCase
@create_attrs %{name: "A course"}
@update_attrs %{name: "An awesome course"}
@invalid_attrs %{name: nil}
setup :set_current_user_as_admin
describe "#index" do
test "lists all courses", %{conn: conn} do
conn = get(conn, cours... | 30.637363 | 91 | 0.662123 |
d599fc6c01d68ee33929a86188a2730e231f7a3e | 674 | ex | Elixir | apps/artemis/lib/artemis/schemas/auth_provider.ex | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis/lib/artemis/schemas/auth_provider.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis/lib/artemis/schemas/auth_provider.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule Artemis.AuthProvider do
use Artemis.Schema
use Artemis.Schema.SQL
schema "auth_providers" do
field :data, :map
field :type, :string
field :uid, :string
belongs_to :user, Artemis.User
timestamps()
end
# Callbacks
def updatable_fields,
do: [
:data,
:type,
... | 14.340426 | 43 | 0.575668 |
d599fe802faf43dead7964463514f7f6e9ca1fc6 | 528 | ex | Elixir | lib/blockchain_api/query/location_transaction.ex | pakorn186c/blockchain-api | 3c9fbc892e645f9bb144414f3da36749603f37bc | [
"Apache-2.0"
] | 17 | 2019-11-03T03:02:41.000Z | 2022-01-13T17:03:32.000Z | lib/blockchain_api/query/location_transaction.ex | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"Apache-2.0"
] | 5 | 2019-11-07T23:26:53.000Z | 2020-11-24T21:45:35.000Z | lib/blockchain_api/query/location_transaction.ex | AddressXception/blockchain-api | eea98fa78af2887cc84762f84532c602c3b8b666 | [
"Apache-2.0"
] | 11 | 2019-12-04T07:03:16.000Z | 2022-01-13T17:03:50.000Z | defmodule BlockchainAPI.Query.LocationTransaction do
@moduledoc false
import Ecto.Query, warn: false
alias BlockchainAPI.{Repo, Schema.LocationTransaction}
def list(_params) do
LocationTransaction
|> order_by([lt], desc: [lt.id])
|> Repo.replica.all()
end
def get!(hash) do
LocationTransac... | 21.12 | 56 | 0.666667 |
d59a10589e2e11cbb752faf9f1e72a322bcb3322 | 816 | ex | Elixir | test/support/repositories_helper.ex | alpcanaydin/githubist-api | 6481f8177c5b8573da2d5df52ffaff41340b25d0 | [
"MIT"
] | 33 | 2018-10-13T16:40:36.000Z | 2021-05-23T14:13:34.000Z | test/support/repositories_helper.ex | 5l1v3r1/githubist-api | 6481f8177c5b8573da2d5df52ffaff41340b25d0 | [
"MIT"
] | 1 | 2018-12-23T19:59:05.000Z | 2018-12-24T18:08:00.000Z | test/support/repositories_helper.ex | 5l1v3r1/githubist-api | 6481f8177c5b8573da2d5df52ffaff41340b25d0 | [
"MIT"
] | 3 | 2018-10-13T22:18:38.000Z | 2020-03-29T23:41:23.000Z | defmodule Githubist.TestSupport.RepositoriesHelper do
@moduledoc """
Test helper for location related logic
"""
alias Githubist.Repositories
alias Githubist.Repositories.Repository
@repository_attrs %{
name: "repo",
slug: "username/repo",
description: "Lorem ipsum dolar sit amet.",
github_... | 22.666667 | 68 | 0.692402 |
d59a1610c1dda41dbf423ab6b3f230a8346e5096 | 1,244 | exs | Elixir | rocketpay/config/config.exs | includeVitor/includeVitor-Elixir_NLW4- | 93ed9d3d0a05e43c8b8391f8936f3f040dc39a62 | [
"MIT"
] | null | null | null | rocketpay/config/config.exs | includeVitor/includeVitor-Elixir_NLW4- | 93ed9d3d0a05e43c8b8391f8936f3f040dc39a62 | [
"MIT"
] | null | null | null | rocketpay/config/config.exs | includeVitor/includeVitor-Elixir_NLW4- | 93ed9d3d0a05e43c8b8391f8936f3f040dc39a62 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :rocketpay,
ecto_repos: [Rocketpay.Repo... | 31.1 | 86 | 0.768489 |
d59a59936787a51913bb673e3500db77460ba1fc | 2,598 | exs | Elixir | elixir/say/say.exs | jjdonov/Exercism | 3585420c5b0e74ea51a6fbd60e8263620061a1d9 | [
"MIT"
] | null | null | null | elixir/say/say.exs | jjdonov/Exercism | 3585420c5b0e74ea51a6fbd60e8263620061a1d9 | [
"MIT"
] | null | null | null | elixir/say/say.exs | jjdonov/Exercism | 3585420c5b0e74ea51a6fbd60e8263620061a1d9 | [
"MIT"
] | null | null | null | defmodule Say do
@doc """
Translate a positive integer into English.
"""
@spec in_english(integer) :: {atom, String.t()}
def in_english(number) when number > 999_999_999_999 or number < 0 do
{:error, "number is out of range"}
end
def in_english(0), do: {:ok, "zero"}
def in_english(number) when num... | 28.866667 | 90 | 0.63164 |
d59a75591dc85d98cf67178fd937ed5d85ee9e50 | 1,313 | ex | Elixir | lib/sakavault_web/endpoint.ex | Api2sem2021/5-ADS2020-2-equipe6-api | 11484e0232c1edd7fc928aa68d5014f2e3a20d07 | [
"MIT"
] | null | null | null | lib/sakavault_web/endpoint.ex | Api2sem2021/5-ADS2020-2-equipe6-api | 11484e0232c1edd7fc928aa68d5014f2e3a20d07 | [
"MIT"
] | 3 | 2020-09-20T22:59:35.000Z | 2020-09-20T23:00:47.000Z | lib/sakavault_web/endpoint.ex | SEGURANCA-DA-INFORMACAO-LGPD/sakavault_api | 11484e0232c1edd7fc928aa68d5014f2e3a20d07 | [
"MIT"
] | null | null | null | defmodule SakaVaultWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :sakavault
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_sakav... | 27.354167 | 63 | 0.711348 |
d59a9aae0dc54ea9f1df695f20055a9290d96c58 | 484 | ex | Elixir | lib/consul/http/response.ex | grufino/consul-elixir | 1486291da0d873a46faf6bec25aaccaa37872ce3 | [
"MIT"
] | 11 | 2018-10-30T03:55:42.000Z | 2021-02-06T18:23:47.000Z | lib/consul/http/response.ex | grufino/consul-elixir | 1486291da0d873a46faf6bec25aaccaa37872ce3 | [
"MIT"
] | null | null | null | lib/consul/http/response.ex | grufino/consul-elixir | 1486291da0d873a46faf6bec25aaccaa37872ce3 | [
"MIT"
] | 3 | 2019-11-27T06:43:52.000Z | 2020-05-24T08:18:34.000Z | defmodule Consul.HTTP.Response do
@moduledoc false
def key(res), do: extract(res, "Key")
def value(res), do: extract(res, "Value")
def flags(res), do: extract(res, "Flags")
def create_index(res), do: extract(res, "CreateIndex")
def lock_index(res), do: extract(res, "LockIndex")... | 21.043478 | 56 | 0.609504 |
d59a9c8e6a1c658adaa2b5cd87517bbee6cae0da | 2,532 | ex | Elixir | clients/page_speed_online/lib/google_api/page_speed_online/v5/model/user_page_load_metric_v5.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/page_speed_online/lib/google_api/page_speed_online/v5/model/user_page_load_metric_v5.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/page_speed_online/lib/google_api/page_speed_online/v5/model/user_page_load_metric_v5.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.83871 | 197 | 0.706556 |
d59a9e965afdb00e184a276d387d35166129ee4c | 288 | ex | Elixir | 2021/day1/lib/task1.ex | SuddenGunter/adventofcode | 702dd927b1d23c4c5c4b2e67898f4b3c914abfcf | [
"MIT"
] | null | null | null | 2021/day1/lib/task1.ex | SuddenGunter/adventofcode | 702dd927b1d23c4c5c4b2e67898f4b3c914abfcf | [
"MIT"
] | null | null | null | 2021/day1/lib/task1.ex | SuddenGunter/adventofcode | 702dd927b1d23c4c5c4b2e67898f4b3c914abfcf | [
"MIT"
] | null | null | null | defmodule Task1 do
def solution([first, second | tail], acc) do
solution(
[second | tail],
if first < second do
acc + 1
else
acc + 0
end
)
end
def solution([_last], acc) do
acc
end
def solution([], acc) do
acc
end
end
| 13.714286 | 46 | 0.520833 |
d59aa3a3fa14d5c5704e789e721e421c876d4c8f | 2,055 | exs | Elixir | test/controllers/deal_controller_test.exs | GoberInfinity/ExamplePhoenix | 4f2e016000a55dd4dbc28409dd214f0923e38e32 | [
"MIT"
] | null | null | null | test/controllers/deal_controller_test.exs | GoberInfinity/ExamplePhoenix | 4f2e016000a55dd4dbc28409dd214f0923e38e32 | [
"MIT"
] | null | null | null | test/controllers/deal_controller_test.exs | GoberInfinity/ExamplePhoenix | 4f2e016000a55dd4dbc28409dd214f0923e38e32 | [
"MIT"
] | null | null | null | defmodule Otherpool.DealControllerTest do
use Otherpool.ConnCase
alias Otherpool.Deal
@valid_attrs %{stock: 42}
@invalid_attrs %{}
setup %{conn: conn} do
{:ok, conn: put_req_header(conn, "accept", "application/json")}
end
test "lists all entries on index", %{conn: conn} do
conn = get conn, deal... | 33.145161 | 98 | 0.660341 |
d59abdbf166f51d4d45966eaf0d8f3710e00e220 | 1,842 | ex | Elixir | clients/cloud_tasks/lib/google_api/cloud_tasks/v2/model/list_tasks_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_tasks/lib/google_api/cloud_tasks/v2/model/list_tasks_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_tasks/lib/google_api/cloud_tasks/v2/model/list_tasks_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... | 36.84 | 250 | 0.735071 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.