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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3fb8822d7f5b22ce2609936130c3cb4aacd14802 | 4,708 | ex | Elixir | lib/ace/http2/frame/4_settings.ex | fschuindt/Ace | 08262123d1c37797191769e1f92670d30f625dec | [
"MIT"
] | 1 | 2021-11-22T10:30:44.000Z | 2021-11-22T10:30:44.000Z | lib/ace/http2/frame/4_settings.ex | fschuindt/Ace | 08262123d1c37797191769e1f92670d30f625dec | [
"MIT"
] | null | null | null | lib/ace/http2/frame/4_settings.ex | fschuindt/Ace | 08262123d1c37797191769e1f92670d30f625dec | [
"MIT"
] | 1 | 2021-11-22T10:31:48.000Z | 2021-11-22T10:31:48.000Z | defmodule Ace.HTTP2.Frame.Settings do
@moduledoc false
@type t :: %__MODULE__{ack: boolean}
@enforce_keys [:ack]
@parameter_keys [
:header_table_size,
:enable_push,
:max_concurrent_streams,
:initial_window_size,
:max_frame_size,
:max_header_list_size
]
defstruct @enforce_keys ++ @pa... | 22.965854 | 80 | 0.617035 |
3fb8c197aff8d9a8fca3824aa73149c73f53ab44 | 1,184 | exs | Elixir | mix.exs | anathematic/libxml | 83521db1d7cb00b7d2219e0220fe54cbad880a3a | [
"MIT"
] | null | null | null | mix.exs | anathematic/libxml | 83521db1d7cb00b7d2219e0220fe54cbad880a3a | [
"MIT"
] | null | null | null | mix.exs | anathematic/libxml | 83521db1d7cb00b7d2219e0220fe54cbad880a3a | [
"MIT"
] | null | null | null | defmodule Libxml.Mixfile do
use Mix.Project
def project do
[
app: :libxml,
compilers: [:make_libxml] ++ Mix.compilers(),
version: "1.1.4",
elixir: "~> 1.4",
description: "Thin wrapper for Libxml2 using NIF",
package: [
maintainers: ["melpon"],
licenses: ["MIT... | 20.77193 | 77 | 0.527872 |
3fb8c348b05e870083ef980cb4b5088dd3735129 | 3,313 | ex | Elixir | lib/basic_web/live/member_live/form_component.ex | ysaito8015/communitex | d469447a62029d59883d95df4df3c9b09e0022e2 | [
"Apache-2.0"
] | 7 | 2021-07-14T15:45:55.000Z | 2022-01-25T11:13:01.000Z | lib/basic_web/live/member_live/form_component.ex | ysaito8015/communitex | d469447a62029d59883d95df4df3c9b09e0022e2 | [
"Apache-2.0"
] | 10 | 2021-08-09T15:54:05.000Z | 2022-02-17T04:18:38.000Z | lib/basic_web/live/member_live/form_component.ex | ysaito8015/communitex | d469447a62029d59883d95df4df3c9b09e0022e2 | [
"Apache-2.0"
] | 5 | 2021-07-23T05:54:35.000Z | 2022-01-28T04:14:51.000Z | defmodule BasicWeb.MemberLive.FormComponent do
use BasicWeb, :live_component
alias Basic.Members
require ExImageInfo
@impl true
def update(%{member: member} = assigns, socket) do
changeset = Members.change_member(member)
{:ok,
socket
|> assign(assigns)
|> assign(:changeset, change... | 33.464646 | 134 | 0.629641 |
3fb8d493b3a589e3aabd0b5975f11d126f128423 | 3,318 | exs | Elixir | parkapp_server/config/config.exs | bitmaker-software/parkapp | 39d9fd3cb8ab6bd1d54b776a5467eccf3b65f310 | [
"MIT"
] | 2 | 2018-11-06T12:21:16.000Z | 2018-11-21T10:20:17.000Z | parkapp_server/config/config.exs | bitmaker-software/parkapp | 39d9fd3cb8ab6bd1d54b776a5467eccf3b65f310 | [
"MIT"
] | null | null | null | parkapp_server/config/config.exs | bitmaker-software/parkapp | 39d9fd3cb8ab6bd1d54b776a5467eccf3b65f310 | [
"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 :parkapp,
ecto_repos: [Parkapp.Repo],
... | 36.065217 | 250 | 0.754671 |
3fb8e251987e965b37c83790b886016cd9a49a0e | 3,325 | ex | Elixir | lib/petal_components/typography.ex | thomasbrus/petal_components | e862861d10ff53e4e6e515183e2c635f2fbbc938 | [
"MIT"
] | null | null | null | lib/petal_components/typography.ex | thomasbrus/petal_components | e862861d10ff53e4e6e515183e2c635f2fbbc938 | [
"MIT"
] | null | null | null | lib/petal_components/typography.ex | thomasbrus/petal_components | e862861d10ff53e4e6e515183e2c635f2fbbc938 | [
"MIT"
] | null | null | null | defmodule PetalComponents.Typography do
use Phoenix.Component
@moduledoc """
Everything related to text. Headings, paragraphs and links
"""
# <.h1>Heading</.h1>
# <.h1 label="Heading" />
# <.h1 label="Heading" class="mb-10" color_class="text-blue-500" />
# prop label, :string
# prop class, :string
... | 26.6 | 142 | 0.574436 |
3fb8f3f966418461c5bc64a2966479302722a820 | 1,782 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/list_product_sets_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/list_product_sets_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/vision/lib/google_api/vision/v1/model/list_product_sets_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... | 35.64 | 157 | 0.73569 |
3fb920c2799ec3fe330cdd83d985b851420dc331 | 5,201 | ex | Elixir | lib/exchange_rates/coin_market_cap.ex | mithereal/ex_softbank | 8e64143e0056861c84ed71001929bbb5a10a55bf | [
"MIT"
] | 1 | 2020-01-26T23:28:44.000Z | 2020-01-26T23:28:44.000Z | lib/exchange_rates/coin_market_cap.ex | mithereal/ex_softbank | 8e64143e0056861c84ed71001929bbb5a10a55bf | [
"MIT"
] | 1 | 2018-12-02T05:35:28.000Z | 2019-03-14T22:42:30.000Z | lib/exchange_rates/coin_market_cap.ex | mithereal/elixir-softbank | 2e63b72c4f25d651f4aee654ee41c25ac938fda3 | [
"MIT"
] | null | null | null | defmodule SoftBank.ExchangeRates.CoinMarketCap do
@moduledoc """
Implements the `Money.ExchangeRates` for CoinMarketCap
Rates service.
## Required configuration:
The configuration key `:coin_market_cap_key` should be
set to your `app_id`. for example:
config :soft_bank,
coin_market_cap_key... | 28.266304 | 95 | 0.693136 |
3fb92c5f7c67a2b3373e4fc036eb53101183c96d | 63 | ex | Elixir | lib/trello/repo.ex | kensupermen/trello | 00eba2165ac32663319679271dcc56ac6cfe4cad | [
"MIT"
] | null | null | null | lib/trello/repo.ex | kensupermen/trello | 00eba2165ac32663319679271dcc56ac6cfe4cad | [
"MIT"
] | 3 | 2018-10-03T16:59:21.000Z | 2018-10-06T09:53:51.000Z | lib/trello/repo.ex | kensupermen/trello | 00eba2165ac32663319679271dcc56ac6cfe4cad | [
"MIT"
] | 1 | 2018-10-03T17:06:47.000Z | 2018-10-03T17:06:47.000Z | defmodule Trello.Repo do
use Ecto.Repo, otp_app: :trello
end
| 15.75 | 33 | 0.761905 |
3fb93c21932f4baac9e7501713d4b947514405a7 | 1,675 | ex | Elixir | clients/calendar/lib/google_api/calendar/v3/model/event_extended_properties.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/model/event_extended_properties.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/calendar/lib/google_api/calendar/v3/model/event_extended_properties.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... | 33.5 | 138 | 0.72597 |
3fb960c0868ffea95afd12061e18b25d4bd47f31 | 3,135 | ex | Elixir | lib/ex_force/client/tesla/tesla.ex | kianmeng/ex_force | d2f8179d61dce6771d787fc08651071e0f2be448 | [
"MIT"
] | 28 | 2017-09-23T01:05:06.000Z | 2022-03-05T09:59:12.000Z | lib/ex_force/client/tesla/tesla.ex | kianmeng/ex_force | d2f8179d61dce6771d787fc08651071e0f2be448 | [
"MIT"
] | 66 | 2017-09-28T17:08:17.000Z | 2022-03-04T21:04:30.000Z | lib/ex_force/client/tesla/tesla.ex | kianmeng/ex_force | d2f8179d61dce6771d787fc08651071e0f2be448 | [
"MIT"
] | 18 | 2017-09-23T01:07:37.000Z | 2022-02-21T04:12:26.000Z | defmodule ExForce.Client.Tesla do
@moduledoc """
HTTP Client for Salesforce REST API using `Tesla`.
## Adapter
To use a different `Tesla` adapter, set it via Mix configuration.
```elixir
config :tesla, ExForce.Client.Tesla, adapter: Tesla.Adapter.Hackney
```
"""
@behaviour ExForce.Client
alias ... | 29.857143 | 144 | 0.667943 |
3fb97b072af8dcb0963d61f09a673e4642f06cc3 | 2,953 | ex | Elixir | clients/content/lib/google_api/content/v2/model/orderinvoices_custom_batch_request_entry_create_refund_invoice_refund_option.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v2/model/orderinvoices_custom_batch_request_entry_create_refund_invoice_refund_option.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v2/model/orderinvoices_custom_batch_request_entry_create_refund_invoice_refund_option.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 51.807018 | 1,277 | 0.737555 |
3fb9808eee5a8c216ea5284b3fbeff1d79ab5556 | 1,576 | ex | Elixir | apps/dockup_ui/lib/dockup_ui/callback/github.ex | rudydydy/dockup | 0d05d1ef65cc5523800bd852178361521cd3e7d8 | [
"MIT"
] | null | null | null | apps/dockup_ui/lib/dockup_ui/callback/github.ex | rudydydy/dockup | 0d05d1ef65cc5523800bd852178361521cd3e7d8 | [
"MIT"
] | null | null | null | apps/dockup_ui/lib/dockup_ui/callback/github.ex | rudydydy/dockup | 0d05d1ef65cc5523800bd852178361521cd3e7d8 | [
"MIT"
] | null | null | null | defmodule DockupUi.Callback.Github do
# This module is unusable at the moment, this can be used once
# we have a schema for project and it is linked to a github repo.
require Logger
def create_github_deployment(pull_request) do
repo_full_name = pull_request["head"]["repo"]["full_name"]
url = "https:/... | 27.649123 | 120 | 0.668782 |
3fb98cfebfdb1339f1c676036b05541b1014bc80 | 319 | ex | Elixir | lib/weber/handler/weber404_handler.ex | elixir-web/weber | 1c8caa43681cc432813dff33b2c6d08ca1d61f29 | [
"MIT"
] | 124 | 2015-01-03T16:48:21.000Z | 2022-02-02T21:13:11.000Z | lib/weber/handler/weber404_handler.ex | elixir-web/weber | 1c8caa43681cc432813dff33b2c6d08ca1d61f29 | [
"MIT"
] | 2 | 2015-03-08T05:29:36.000Z | 2015-07-19T15:31:19.000Z | lib/weber/handler/weber404_handler.ex | elixir-web/weber | 1c8caa43681cc432813dff33b2c6d08ca1d61f29 | [
"MIT"
] | 12 | 2015-02-23T02:09:27.000Z | 2016-08-07T13:50:38.000Z | defmodule Handler.Weber404Handler do
def get404 do
"""
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Page not found</title>
</head>
<body>
<h1>Page not found</h1>
</body>
</html>
"""
end
end | 16.789474 | 41 | 0.432602 |
3fb99c7c038bece1c11263c9da9390f5e66584de | 490 | exs | Elixir | app/priv/repo/migrations/20200413194423_create_notifications.exs | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | 1 | 2021-01-20T20:00:50.000Z | 2021-01-20T20:00:50.000Z | app/priv/repo/migrations/20200413194423_create_notifications.exs | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | app/priv/repo/migrations/20200413194423_create_notifications.exs | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | defmodule Noodl.Repo.Migrations.CreateNotifications do
use Ecto.Migration
def change do
create table(:notifications, primary_key: false) do
add :id, :binary_id, primary_key: true
add :content, :text
add :is_read, :boolean
add :priority, :string
add :user_id, references(:users, on... | 24.5 | 80 | 0.681633 |
3fb9a0daa87c790a6096a908ab9a60963cc7a6e6 | 439 | exs | Elixir | test/penelope/ml/text/count_vectorizer_test.exs | pylon/penelope | 5b0310dc0647a8e20ab1b4c10d3820f11cfb2601 | [
"Apache-2.0"
] | 53 | 2017-10-13T06:39:49.000Z | 2022-03-28T19:43:42.000Z | test/penelope/ml/text/count_vectorizer_test.exs | pylon/penelope | 5b0310dc0647a8e20ab1b4c10d3820f11cfb2601 | [
"Apache-2.0"
] | 12 | 2018-01-08T23:05:37.000Z | 2019-08-02T12:59:27.000Z | test/penelope/ml/text/count_vectorizer_test.exs | pylon/penelope | 5b0310dc0647a8e20ab1b4c10d3820f11cfb2601 | [
"Apache-2.0"
] | 4 | 2018-06-13T19:45:57.000Z | 2019-10-17T13:37:06.000Z | defmodule Penelope.ML.Text.CountVectorizerTest do
use ExUnit.Case, async: true
alias Penelope.ML.Text.CountVectorizer
alias Penelope.ML.Vector
test "transform" do
x = [
[],
["test", "sentence"],
["another", "test", "sentence"]
]
expect = [
Vector.zeros(1),
Vector.fro... | 19.086957 | 60 | 0.594533 |
3fb9a414570628f6789aaaa947ffc16be5bcfbe4 | 3,604 | ex | Elixir | lib/nerves_runtime.ex | trarbr/nerves_runtime | f6546f0cd2cf2f564fa44ca427cc876adc2ea67a | [
"Apache-2.0"
] | null | null | null | lib/nerves_runtime.ex | trarbr/nerves_runtime | f6546f0cd2cf2f564fa44ca427cc876adc2ea67a | [
"Apache-2.0"
] | null | null | null | lib/nerves_runtime.ex | trarbr/nerves_runtime | f6546f0cd2cf2f564fa44ca427cc876adc2ea67a | [
"Apache-2.0"
] | null | null | null | defmodule Nerves.Runtime do
require Logger
alias Nerves.Runtime.OutputLogger
# This is provided by all of the official Nerves system images
@revert_fw_path "/usr/share/fwup/revert.fw"
@typedoc """
Options for `Nerves.Runtime.revert/1`.
* `:reboot` - Call `Nerves.Runtime.reboot/0` after reverting (defa... | 31.33913 | 92 | 0.653163 |
3fb9a4d2c3e1fe005627fca7a45c1d10fc03eb4e | 10,319 | ex | Elixir | lib/ex_unit/lib/ex_unit/formatter.ex | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/formatter.ex | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/formatter.ex | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit.Formatter do
@moduledoc """
This module holds helper functions related to formatting and contains
documentation about the formatting protocol.
Formatters are registered at the `ExUnit.EventManager` event manager and
will be send events by the runner.
The following events are possible:
... | 31.947368 | 110 | 0.660238 |
3fb9a7dbf3f3bd315116ca037edcf9ff21f04ef7 | 60 | exs | Elixir | test/json_doc_test.exs | imahiro-t/smallex | 5fbc7080fde7f63b3440d8325f45d61f5d1b5bc3 | [
"Apache-2.0"
] | 7 | 2020-01-13T21:17:28.000Z | 2021-11-15T12:10:55.000Z | test/json_doc_test.exs | data-maestro/smallex | 5fbc7080fde7f63b3440d8325f45d61f5d1b5bc3 | [
"Apache-2.0"
] | 26 | 2021-02-25T09:22:28.000Z | 2021-06-11T02:59:11.000Z | test/json_doc_test.exs | data-maestro/smallex | 5fbc7080fde7f63b3440d8325f45d61f5d1b5bc3 | [
"Apache-2.0"
] | 2 | 2018-01-02T17:59:40.000Z | 2018-01-12T17:16:02.000Z | defmodule JsonDocTest do
use PowerAssert
doctest Json
end
| 12 | 24 | 0.833333 |
3fb9b04e7180b33173abd5ba30f6b98894b97c10 | 182 | exs | Elixir | priv/repo/migrations/20200910203500_add_is_preferred_to_phones.exs | geometricservices/epi-viewpoin | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 5 | 2021-02-25T18:43:09.000Z | 2021-02-27T06:00:35.000Z | priv/repo/migrations/20200910203500_add_is_preferred_to_phones.exs | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 3 | 2021-12-13T17:52:47.000Z | 2021-12-17T01:35:31.000Z | priv/repo/migrations/20200910203500_add_is_preferred_to_phones.exs | geometricservices/epi-viewpoint | ecb5316ea0f3f7299d5ff63e2de588539005ac1c | [
"Apache-2.0"
] | 1 | 2022-01-27T23:26:38.000Z | 2022-01-27T23:26:38.000Z | defmodule Epicenter.Repo.Migrations.AddIsPreferredToPhones do
use Ecto.Migration
def change() do
alter table(:phones) do
add :is_preferred, :boolean
end
end
end
| 18.2 | 61 | 0.725275 |
3fb9b8e35dfd0da67e4cfda176cf2ebe3e7f8617 | 2,198 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/metric_structured_name.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/metric_structured_name.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/metric_structured_name.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 36.633333 | 128 | 0.713376 |
3fb9c2aeb3574f9b611751cad1e4cdac4c4f39e7 | 4,371 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/grouplicenseusers.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/grouplicenseusers.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/api/grouplicenseusers.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"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.472222 | 196 | 0.646534 |
3fb9c762c84f727ecd055dabf1834823f5bb6674 | 109 | ex | Elixir | lib/ais_front/repo.ex | FractalWire/ais_front | a33522195e5eb07c89027c59a3d2d48ba9730438 | [
"MIT"
] | null | null | null | lib/ais_front/repo.ex | FractalWire/ais_front | a33522195e5eb07c89027c59a3d2d48ba9730438 | [
"MIT"
] | 18 | 2020-09-24T14:21:23.000Z | 2020-10-01T16:11:58.000Z | lib/ais_front/repo.ex | FractalWire/ais_front | a33522195e5eb07c89027c59a3d2d48ba9730438 | [
"MIT"
] | null | null | null | defmodule AisFront.Repo do
use Ecto.Repo,
otp_app: :ais_front,
adapter: Ecto.Adapters.Postgres
end
| 18.166667 | 35 | 0.733945 |
3fb9d76ff93fb3b365a0ba7e2562acc19176dd9d | 73 | ex | Elixir | 2020/liveview/turbo_counter/lib/turbo_counter_web/views/layout_view.ex | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | 2020/liveview/turbo_counter/lib/turbo_counter_web/views/layout_view.ex | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | 2020/liveview/turbo_counter/lib/turbo_counter_web/views/layout_view.ex | herminiotorres/programmer_passport | d1786518a3a5f82471457e0ace41c4c33343739a | [
"MIT"
] | null | null | null | defmodule TurboCounterWeb.LayoutView do
use TurboCounterWeb, :view
end
| 18.25 | 39 | 0.835616 |
3fb9eb05386f76985611ea36714f1606d1127daf | 1,961 | ex | Elixir | priv/templates/bonny.gen/controller.ex | happycodrz/bonny | 1c54fadc883be4dac6d25800f74a6d4058319507 | [
"MIT"
] | null | null | null | priv/templates/bonny.gen/controller.ex | happycodrz/bonny | 1c54fadc883be4dac6d25800f74a6d4058319507 | [
"MIT"
] | null | null | null | priv/templates/bonny.gen/controller.ex | happycodrz/bonny | 1c54fadc883be4dac6d25800f74a6d4058319507 | [
"MIT"
] | null | null | null | defmodule <%= app_name %>.Controller.<%= version %>.<%= mod_name %> do
@moduledoc """
<%= app_name %>: <%= mod_name %> CRD.
## Kubernetes CRD Spec
By default all CRD specs are assumed from the module name, you can override them using attributes.
### Examples
```
# Kubernetes API version of this CRD, de... | 21.788889 | 100 | 0.604284 |
3fb9ecfcff671c4694d5e004785148c12851d68c | 728 | ex | Elixir | lib/metro_cdmx_api_web/gettext.ex | erickbarcenas/metro_cdmx_api | 6a598fe0b0e8a2bb999ea6c517053f902f16662b | [
"MIT"
] | null | null | null | lib/metro_cdmx_api_web/gettext.ex | erickbarcenas/metro_cdmx_api | 6a598fe0b0e8a2bb999ea6c517053f902f16662b | [
"MIT"
] | null | null | null | lib/metro_cdmx_api_web/gettext.ex | erickbarcenas/metro_cdmx_api | 6a598fe0b0e8a2bb999ea6c517053f902f16662b | [
"MIT"
] | null | null | null | defmodule MetroCdmxApiWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import MetroCdmxApiWeb.Gettext
# Simple translation
gettext(... | 29.12 | 72 | 0.68544 |
3fb9fa250067e6615175b675913ceb63fd3281dd | 375 | exs | Elixir | priv/repo/migrations/20160319134517_create_researcher.exs | mciastek/emotions-wheel-backend | 072a88b3ad15b2c6d2aad414e6b7cfc8fb4a70bf | [
"MIT"
] | null | null | null | priv/repo/migrations/20160319134517_create_researcher.exs | mciastek/emotions-wheel-backend | 072a88b3ad15b2c6d2aad414e6b7cfc8fb4a70bf | [
"MIT"
] | null | null | null | priv/repo/migrations/20160319134517_create_researcher.exs | mciastek/emotions-wheel-backend | 072a88b3ad15b2c6d2aad414e6b7cfc8fb4a70bf | [
"MIT"
] | null | null | null | defmodule EmotionsWheelBackend.Repo.Migrations.CreateResearcher do
use Ecto.Migration
def change do
create table(:researchers) do
add :email, :string
add :encrypted_password, :string
add :first_name, :string
add :last_name, :string
add :phone, :string
timestamps
end
... | 22.058824 | 66 | 0.685333 |
3fba158736a1449a12a0fe41739f9e37f00debda | 8,913 | exs | Elixir | test/web/controllers/export_controller_test.exs | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | test/web/controllers/export_controller_test.exs | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | test/web/controllers/export_controller_test.exs | doc-ai/accent | e337e16f3658cc0728364f952c0d9c13710ebb06 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule AccentTest.ExportController do
use Accent.ConnCase
alias Accent.{
Document,
Language,
Project,
Repo,
Revision,
Translation,
User,
Version
}
@user %User{email: "test@test.com"}
setup do
user = Repo.insert!(@user)
french_language = %Language{name: "french", s... | 47.15873 | 168 | 0.65354 |
3fba21fb870a8e48807f7a925f96fd220799074a | 302 | exs | Elixir | config/config.exs | mprymek/symconfig-example1 | 3d3f93c5aae307b607ef76371129c932d031def5 | [
"BSD-2-Clause"
] | null | null | null | config/config.exs | mprymek/symconfig-example1 | 3d3f93c5aae307b607ef76371129c932d031def5 | [
"BSD-2-Clause"
] | null | null | null | config/config.exs | mprymek/symconfig-example1 | 3d3f93c5aae307b607ef76371129c932d031def5 | [
"BSD-2-Clause"
] | null | null | null | use Mix.Config
config :logger, :console,
format: "\n[$level] $levelpad$message"
config :sym_config,
pl_dir: "deps/symconfig/priv",
cache_dir: "priv/cache",
orig_dir: "priv/orig",
patches_dir: "priv/patches",
ssh_dir: "priv/ssh",
templates_dir: "priv/templates"
| 21.571429 | 40 | 0.639073 |
3fba445d1f5cb73a1fa336db82ae85f276e6b711 | 139 | ex | Elixir | priv/example-projects/foo_bar_umbrella/apps/foo_bar_web/lib/foo_bar_web/controllers/page_controller.ex | c4710n/phx_custom | 19080ed8896be9ae846d12b2f631a1bc4aef5c78 | [
"MIT"
] | null | null | null | priv/example-projects/foo_bar_umbrella/apps/foo_bar_web/lib/foo_bar_web/controllers/page_controller.ex | c4710n/phx_custom | 19080ed8896be9ae846d12b2f631a1bc4aef5c78 | [
"MIT"
] | null | null | null | priv/example-projects/foo_bar_umbrella/apps/foo_bar_web/lib/foo_bar_web/controllers/page_controller.ex | c4710n/phx_custom | 19080ed8896be9ae846d12b2f631a1bc4aef5c78 | [
"MIT"
] | null | null | null | defmodule FooBarWeb.PageController do
use FooBarWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 17.375 | 37 | 0.733813 |
3fba4f0322a476e636bd5954117ed99982d67399 | 583 | exs | Elixir | test/docknix_web/views/error_view_test.exs | juhalehtonen/docknix | 562a26293d48b5dadccbd6340c4e2facc9f82633 | [
"MIT"
] | null | null | null | test/docknix_web/views/error_view_test.exs | juhalehtonen/docknix | 562a26293d48b5dadccbd6340c4e2facc9f82633 | [
"MIT"
] | null | null | null | test/docknix_web/views/error_view_test.exs | juhalehtonen/docknix | 562a26293d48b5dadccbd6340c4e2facc9f82633 | [
"MIT"
] | null | null | null | defmodule DocknixWeb.ErrorViewTest do
use DocknixWeb.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(DocknixWeb.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 500.... | 26.5 | 68 | 0.684391 |
3fba6722caad7689e919cd988d37b8f24c769087 | 606 | ex | Elixir | lib/hightopics/topics/topic.ex | a-sac/HighTopics | e99b2cc517d5b552bc7f44aae9774357c8bb427b | [
"MIT"
] | null | null | null | lib/hightopics/topics/topic.ex | a-sac/HighTopics | e99b2cc517d5b552bc7f44aae9774357c8bb427b | [
"MIT"
] | null | null | null | lib/hightopics/topics/topic.ex | a-sac/HighTopics | e99b2cc517d5b552bc7f44aae9774357c8bb427b | [
"MIT"
] | null | null | null | defmodule Hightopics.Topics.Topic do
use Ecto.Schema
import Ecto.Changeset
alias Hightopics.Topics.Topic
schema "topics" do
field :description, :string
field :name, :string
field :rating, :integer
many_to_many :themes, Hightopics.Themes.Theme, join_through: "themes_topics"
has_many :commen... | 24.24 | 80 | 0.70297 |
3fba81fefd83a33e9de9a6e285169f634e63513f | 486 | exs | Elixir | config/test.exs | alissonfpmorais/tucano | d22480fc416d14b44862be2ed89040d92b7c08d1 | [
"MIT"
] | null | null | null | config/test.exs | alissonfpmorais/tucano | d22480fc416d14b44862be2ed89040d92b7c08d1 | [
"MIT"
] | null | null | null | config/test.exs | alissonfpmorais/tucano | d22480fc416d14b44862be2ed89040d92b7c08d1 | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :tucano, Tucano.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :tucano, Tucano.Repo,
a... | 24.3 | 56 | 0.730453 |
3fbaad5acf4b1721d4763463a430d0a21310c5b0 | 1,250 | ex | Elixir | clients/cloud_iot/lib/google_api/cloud_iot/v1/connection.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/cloud_iot/lib/google_api/cloud_iot/v1/connection.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_iot/lib/google_api/cloud_iot/v1/connection.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 34.722222 | 77 | 0.736 |
3fbab7014b2729044858dc22f67deb31a27fbaa4 | 5,373 | ex | Elixir | lib/rig_inbound_gateway_web/v1/websocket.ex | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 518 | 2017-11-09T13:10:49.000Z | 2022-03-28T14:29:50.000Z | lib/rig_inbound_gateway_web/v1/websocket.ex | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 270 | 2017-11-10T00:11:34.000Z | 2022-02-27T13:08:16.000Z | lib/rig_inbound_gateway_web/v1/websocket.ex | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 67 | 2017-12-19T20:16:37.000Z | 2022-03-31T10:43:04.000Z | defmodule RigInboundGatewayWeb.V1.Websocket do
@moduledoc """
Cowboy WebSocket handler.
"""
require Logger
alias Jason
alias Result
alias Rig.EventFilter
alias RigCloudEvents.CloudEvent
alias RigInboundGateway.Events
alias RigInboundGatewayWeb.ConnectionInit
@behaviour :cowboy_websocket
@h... | 27.695876 | 96 | 0.669086 |
3fbaca0ef442b9dba7c3848cc3be120ad65a4ef7 | 8,000 | exs | Elixir | test/suite/draft4/type_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | test/suite/draft4/type_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | test/suite/draft4/type_test.exs | depressed-pho/xema | 56de4a5d3b3f37827c70f6052f895c59feb0bb51 | [
"MIT"
] | null | null | null | defmodule Draft4.TypeTest do
use ExUnit.Case, async: true
import Xema, only: [valid?: 2]
describe "integer type matches integers" do
setup do
%{schema: Xema.new(:integer)}
end
test "an integer is an integer", %{schema: schema} do
data = 1
assert valid?(schema, data)
end
t... | 22.535211 | 74 | 0.573875 |
3fbaf639082aad44ee3113d57b80c8afd9d2540b | 2,648 | ex | Elixir | clients/drive/lib/google_api/drive/v3/model/file_list.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/model/file_list.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/model/file_list.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 46.45614 | 480 | 0.735272 |
3fbaf6b3a8918a6b3f0590cb85120f2abf959e16 | 1,416 | ex | Elixir | apps/artemis_web/lib/artemis_web/endpoint.ex | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis_web/lib/artemis_web/endpoint.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis_web/lib/artemis_web/endpoint.ex | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule ArtemisWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :artemis_web
@session_options [
store: :cookie,
key: "_artemis_web_key",
signing_salt: "cIzNfw7G"
]
socket "/live", Phoenix.LiveView.Socket, websocket: [connect_info: [session: @session_options]]
socket "/socket", ArtemisWeb.UserSo... | 27.230769 | 97 | 0.713983 |
3fbb14cbf59b15f2fcc1ca19400b164462fe6c0d | 4,027 | ex | Elixir | lib/tackle/consumer.ex | mariosant/ex-tackle | 4b9e47f6a6b02acd275596da1f8aa389888785bc | [
"MIT"
] | null | null | null | lib/tackle/consumer.ex | mariosant/ex-tackle | 4b9e47f6a6b02acd275596da1f8aa389888785bc | [
"MIT"
] | null | null | null | lib/tackle/consumer.ex | mariosant/ex-tackle | 4b9e47f6a6b02acd275596da1f8aa389888785bc | [
"MIT"
] | null | null | null | defmodule Tackle.Consumer do
defmodule Behaviour do
@callback handle_message(String.t) :: any
end
# Sequential message handling by default
@prefetch_count 1
defmacro __using__(options) do
url = options[:url]
exchange = options[:exchange]
routing_key = options[:routing_key]
service = opt... | 28.160839 | 106 | 0.613856 |
3fbb5353b2e92bba838c5f4542e1ae882c090719 | 493 | exs | Elixir | config/test.exs | keichan34/hello_link | 0b5de0653f667b205e76b7a360650c05138b4d63 | [
"MIT"
] | 1 | 2015-12-31T00:36:09.000Z | 2015-12-31T00:36:09.000Z | config/test.exs | keichan34/hello_link | 0b5de0653f667b205e76b7a360650c05138b4d63 | [
"MIT"
] | 3 | 2016-01-01T04:11:40.000Z | 2016-01-01T04:12:37.000Z | config/test.exs | keichan34/hello_link | 0b5de0653f667b205e76b7a360650c05138b4d63 | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :hello_link, HelloLink.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :hello_link, Hello... | 24.65 | 56 | 0.73428 |
3fbb6287d3b50ee06b739d7629fc1bfa36671e0d | 1,312 | ex | Elixir | lib/dialyxir/warnings/contract_subtype.ex | legoscia/dialyxir | 39579cb3abf6570da56a2a7185204452c49f9b5c | [
"Apache-2.0"
] | null | null | null | lib/dialyxir/warnings/contract_subtype.ex | legoscia/dialyxir | 39579cb3abf6570da56a2a7185204452c49f9b5c | [
"Apache-2.0"
] | null | null | null | lib/dialyxir/warnings/contract_subtype.ex | legoscia/dialyxir | 39579cb3abf6570da56a2a7185204452c49f9b5c | [
"Apache-2.0"
] | null | null | null | defmodule Dialyxir.Warnings.ContractSubtype do
@behaviour Dialyxir.Warning
@impl Dialyxir.Warning
@spec warning() :: :contract_subtype
def warning(), do: :contract_subtype
@impl Dialyxir.Warning
@spec format_short([String.t()]) :: String.t()
def format_short(_) do
"Type specification is a subtype of... | 23.017544 | 77 | 0.661585 |
3fbb7def95705e639f3e04e3e3baaa5ca20cc98e | 154 | ex | Elixir | lib/murnau/adapter/telegram/chatspec.ex | freieslabor/murnau | a8d8fc800dba54708df4291ae2525d2bf1b90aab | [
"MIT"
] | null | null | null | lib/murnau/adapter/telegram/chatspec.ex | freieslabor/murnau | a8d8fc800dba54708df4291ae2525d2bf1b90aab | [
"MIT"
] | null | null | null | lib/murnau/adapter/telegram/chatspec.ex | freieslabor/murnau | a8d8fc800dba54708df4291ae2525d2bf1b90aab | [
"MIT"
] | null | null | null | defmodule Murnau.Adapter.Telegram.ChatSpec do
@callback start_link(Murnau.Adapter.Telegram.Message.t, Number) :: any
@callback init(Map.t) :: any
end
| 30.8 | 72 | 0.766234 |
3fbb8d56b5336447b6bddaa1b55fe44c7d54c111 | 1,749 | ex | Elixir | clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/model/populate_version_files_request.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/model/populate_version_files_request.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/firebase_hosting/lib/google_api/firebase_hosting/v1beta1/model/populate_version_files_request.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.98 | 124 | 0.746712 |
3fbbc62b6cfa199a565facad1813273493e6fa1b | 170 | ex | Elixir | web/controllers/iv_controller.ex | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 10 | 2016-07-15T15:57:33.000Z | 2018-06-09T00:40:46.000Z | web/controllers/iv_controller.ex | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | null | null | null | web/controllers/iv_controller.ex | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 6 | 2016-07-15T15:57:41.000Z | 2018-03-22T16:38:00.000Z | defmodule Eecrit.IVController do
use Eecrit.Web, :controller
def index(conn, _params) do
conn
|> put_layout("iv.html")
|> render("index.html")
end
end
| 17 | 32 | 0.664706 |
3fbbcf7411c4a139fa09deeab3952edf994c9657 | 170 | ex | Elixir | lib/shopify/graphql/retry.ex | aalfson/shopify-graphql-elixir | ef197c0463834d4f76ec1a11d57b1af3cfb1890b | [
"MIT"
] | 15 | 2020-01-13T22:36:52.000Z | 2022-01-26T10:45:25.000Z | lib/shopify/graphql/retry.ex | aalfson/shopify-graphql-elixir | ef197c0463834d4f76ec1a11d57b1af3cfb1890b | [
"MIT"
] | 14 | 2019-11-26T17:28:38.000Z | 2021-10-11T16:06:49.000Z | lib/shopify/graphql/retry.ex | aalfson/shopify-graphql-elixir | ef197c0463834d4f76ec1a11d57b1af3cfb1890b | [
"MIT"
] | 4 | 2020-08-01T02:25:05.000Z | 2021-02-24T16:11:38.000Z | defmodule Shopify.GraphQL.Retry do
alias Shopify.GraphQL.{ Config, Request }
@callback wait_for(request :: Request.t(), config :: Config.t()) :: non_neg_integer
end
| 28.333333 | 85 | 0.729412 |
3fbbece6e2b6006af94914a864d6fcaa532d82b0 | 152 | ex | Elixir | lib/hl7/2.3/datatypes/pt.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3/datatypes/pt.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.3/datatypes/pt.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_3.DataTypes.Pt do
@moduledoc false
use HL7.DataType,
fields: [
processing_id: nil,
processing_mode: nil
]
end
| 15.2 | 34 | 0.657895 |
3fbc2e0666c85b8b80f6476b51bd31c7eca83ffb | 6,670 | ex | Elixir | apps/api_accounts/lib/api_accounts/table.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 62 | 2019-01-17T12:34:39.000Z | 2022-03-20T21:49:47.000Z | apps/api_accounts/lib/api_accounts/table.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 375 | 2019-02-13T15:30:50.000Z | 2022-03-30T18:50:41.000Z | apps/api_accounts/lib/api_accounts/table.ex | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 14 | 2019-01-16T19:35:57.000Z | 2022-02-26T18:55:54.000Z | defmodule ApiAccounts.Table do
@moduledoc """
Describes a DynamoDB table.
You can define a table schema in use with DynamoDB. Each defined table
will also have a struct and helper functions defined for the module.
Additionally, each struct will be able to be encodable and decodable
with DynamoDB.
## Exa... | 31.462264 | 90 | 0.582759 |
3fbc3b38c0a5bf539ff6492a9c18875975ab03a8 | 2,370 | exs | Elixir | config/prod.exs | Enkidatron/Dnd_Tracker | e373e5375cd78f26b4f5afc0c54eb6a91826ba60 | [
"MIT"
] | null | null | null | config/prod.exs | Enkidatron/Dnd_Tracker | e373e5375cd78f26b4f5afc0c54eb6a91826ba60 | [
"MIT"
] | 6 | 2016-10-13T15:00:18.000Z | 2016-10-17T18:40:38.000Z | config/prod.exs | Enkidatron/Dnd_Tracker | e373e5375cd78f26b4f5afc0c54eb6a91826ba60 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 33.380282 | 76 | 0.722363 |
3fbc5e070ca23ee78df2a49cf0259916dd012562 | 3,859 | exs | Elixir | test/integration/controlling_test.exs | jamilabreu/oban | 5ee1781af993c93208b324024f72c0862cf076c8 | [
"Apache-2.0"
] | null | null | null | test/integration/controlling_test.exs | jamilabreu/oban | 5ee1781af993c93208b324024f72c0862cf076c8 | [
"Apache-2.0"
] | null | null | null | test/integration/controlling_test.exs | jamilabreu/oban | 5ee1781af993c93208b324024f72c0862cf076c8 | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Integration.ControllingTest do
use Oban.Case
@moduletag :integration
test "starting individual queues dynamically" do
start_supervised_oban!(queues: [alpha: 10])
insert!(%{ref: 1, action: "OK"}, queue: :gamma)
insert!(%{ref: 2, action: "OK"}, queue: :delta)
refute_receive {:ok, ... | 27.564286 | 97 | 0.653537 |
3fbc66fb2afd63c9d79b394d917a73efef014d0f | 595 | ex | Elixir | lib/paushal_web/controllers/fallback_controller.ex | begedin/paushal | 4388e1b702e98008aef2d231816d6cdc6773803e | [
"MIT"
] | null | null | null | lib/paushal_web/controllers/fallback_controller.ex | begedin/paushal | 4388e1b702e98008aef2d231816d6cdc6773803e | [
"MIT"
] | 6 | 2021-03-20T17:24:05.000Z | 2021-03-20T17:41:19.000Z | lib/paushal_web/controllers/fallback_controller.ex | begedin/paushal | 4388e1b702e98008aef2d231816d6cdc6773803e | [
"MIT"
] | null | null | null | defmodule PaushalWeb.FallbackController do
@moduledoc """
Translates controller action results into valid `Plug.Conn` responses.
See `Phoenix.Controller.action_fallback/1` for more details.
"""
use PaushalWeb, :controller
def call(conn, {:error, %Ecto.Changeset{} = changeset}) do
conn
|> put_statu... | 25.869565 | 72 | 0.694118 |
3fbc8f58563b9b446f7afd7bcdca25ece842a5a4 | 1,940 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/list_invoices_response.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/list_invoices_response.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/list_invoices_response.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... | 38.8 | 256 | 0.742784 |
3fbc937b982163cf78e6137f4ee2822cbe288210 | 618 | exs | Elixir | bench/classifier_10_languages.exs | kipcole9/text_corpus_udhr | 8fb948444ebfe6160572bd907617bd1a270e090c | [
"Apache-2.0"
] | 1 | 2020-07-08T11:19:03.000Z | 2020-07-08T11:19:03.000Z | bench/classifier_10_languages.exs | kipcole9/text_corpus_udhr | 8fb948444ebfe6160572bd907617bd1a270e090c | [
"Apache-2.0"
] | null | null | null | bench/classifier_10_languages.exs | kipcole9/text_corpus_udhr | 8fb948444ebfe6160572bd907617bd1a270e090c | [
"Apache-2.0"
] | 1 | 2020-07-03T17:40:00.000Z | 2020-07-03T17:40:00.000Z | language = "en"
corpus = Text.Corpus.Udhr
languages =
Enum.take(Text.Corpus.Udhr.known_languages(), 10)
runner =
Text.Language.known_classifiers
|> Enum.map(fn classifier ->
{inspect(classifier), &Text.Language.detect(hd(&1), classifier: classifier, only: languages)}
end)
Benchee.run(
runner,
inputs:... | 30.9 | 97 | 0.710356 |
3fbc9dfdcc68da092eea0c323e40c4f85cecddff | 1,930 | ex | Elixir | clients/classroom/lib/google_api/classroom/v1/model/form.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/model/form.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/classroom/lib/google_api/classroom/v1/model/form.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... | 30.15625 | 99 | 0.681865 |
3fbcadf1ac9b7401d4b0b077b4dee60fd359a3dd | 10,294 | exs | Elixir | test/sparql/query/result/xml_decoder_test.exs | marcelotto/sparql-ex | 7bf939a2b0eec7e1096f6fdb999b07757995c145 | [
"MIT"
] | 23 | 2018-09-25T21:09:35.000Z | 2020-05-14T16:28:22.000Z | test/sparql/query/result/xml_decoder_test.exs | marcelotto/sparql-ex | 7bf939a2b0eec7e1096f6fdb999b07757995c145 | [
"MIT"
] | 2 | 2018-06-01T20:47:48.000Z | 2019-03-05T23:20:34.000Z | test/sparql/query/result/xml_decoder_test.exs | marcelotto/sparql-ex | 7bf939a2b0eec7e1096f6fdb999b07757995c145 | [
"MIT"
] | 2 | 2019-12-13T19:20:54.000Z | 2019-12-20T08:23:21.000Z | defmodule SPARQL.Query.Result.XML.DecoderTest do
use ExUnit.Case
doctest SPARQL.Query.Result.XML.Decoder
import RDF.Sigils
alias SPARQL.Query
alias RDF.XSD
test "with no head and no results" do
assert Query.Result.XML.decode("""
<sparql xmlns="http://www.w3.org/2005/sparql-results#" xmlns:xs... | 37.98524 | 194 | 0.4694 |
3fbcd9482280162e294f777bb2722232c4cee24d | 824 | ex | Elixir | test/support/model_case.ex | nomicflux/ex_venture | 3e87dc8802c24067256d99856198c814d0bae4d6 | [
"MIT"
] | null | null | null | test/support/model_case.ex | nomicflux/ex_venture | 3e87dc8802c24067256d99856198c814d0bae4d6 | [
"MIT"
] | null | null | null | test/support/model_case.ex | nomicflux/ex_venture | 3e87dc8802c24067256d99856198c814d0bae4d6 | [
"MIT"
] | null | null | null | defmodule Data.ModelCase do
use ExUnit.CaseTemplate
using do
quote do
alias Data.Repo
alias Test.NamedProcess
import Ecto
import Ecto.Changeset
import Ecto.Query
import Data.ModelCase
import TestHelpers
import Test.ItemsHelper
import Test.DoorHelper
... | 23.542857 | 102 | 0.680825 |
3fbceb67f0c3dfef4d4a68f1edb97f686ef9b947 | 1,321 | exs | Elixir | config/test.exs | marseel/teiserver | 7e085ae7853205d217183737d3eb69a4941bbe7e | [
"MIT"
] | null | null | null | config/test.exs | marseel/teiserver | 7e085ae7853205d217183737d3eb69a4941bbe7e | [
"MIT"
] | null | null | null | config/test.exs | marseel/teiserver | 7e085ae7853205d217183737d3eb69a4941bbe7e | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :central, Central.Repo,
username: "postgres",
password: "postgres",
database: "teiserver_test",
hostname: "localhost",
timeout: 120_000,
queue_target: 5000,
queue_interval: 100_000,
pool: Ecto.Adapters.SQL.Sandbox,
pool_size: 50
config :central, Teiser... | 24.018182 | 56 | 0.727479 |
3fbd1b8fe06972407b2a43e1c8f0c3ebc0b48039 | 3,127 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/creative_size.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/creative_size.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/creative_size.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 45.318841 | 178 | 0.722418 |
3fbd2d8045209910015e20f3fcd6eb6a75fc982e | 1,799 | ex | Elixir | lib/ash/actions/helpers.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | 528 | 2019-12-08T01:51:54.000Z | 2022-03-30T10:09:45.000Z | lib/ash/actions/helpers.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | 278 | 2019-12-04T15:25:06.000Z | 2022-03-31T03:40:51.000Z | lib/ash/actions/helpers.ex | smt116/ash | 880a17f197873eb1c8dc8d81a8b4d6d9cb570b3f | [
"MIT"
] | 53 | 2020-08-17T22:08:09.000Z | 2022-03-24T01:58:59.000Z | defmodule Ash.Actions.Helpers do
@moduledoc false
def process_errors(changeset, [error]) do
%{changeset | errors: []}
|> Ash.Changeset.add_error(error)
|> Map.get(:errors)
|> case do
[error] ->
error
errors ->
errors
end
end
def process_errors(changeset, errors... | 23.363636 | 90 | 0.627015 |
3fbd5b2f473596433c23a56d00c56d4222141488 | 26,995 | ex | Elixir | lib/aws/iot.ex | xflagstudio/aws-elixir | 2b6444181793f3e5665bcafb4333a3bab9e8d3a8 | [
"Apache-2.0"
] | null | null | null | lib/aws/iot.ex | xflagstudio/aws-elixir | 2b6444181793f3e5665bcafb4333a3bab9e8d3a8 | [
"Apache-2.0"
] | null | null | null | lib/aws/iot.ex | xflagstudio/aws-elixir | 2b6444181793f3e5665bcafb4333a3bab9e8d3a8 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/jkakar/aws-codegen for more details.
defmodule AWS.IoT do
@moduledoc """
AWS IoT
AWS IoT provides secure, bi-directional communication between
Internet-connected things (such as sensors, actuators, embedded devices, or
smart appliances) a... | 34.92238 | 153 | 0.687238 |
3fbd8a04084d381df5339f7f2a0bbb49d1b6525b | 1,566 | ex | Elixir | lib/level10_web/live/live_helpers.ex | dnsbty/level10 | e5b9cddc18f3b174fb32022123527dcdfc3a8d7a | [
"MIT"
] | 37 | 2020-05-05T22:02:51.000Z | 2022-02-08T20:44:06.000Z | lib/level10_web/live/live_helpers.ex | dnsbty/level10 | e5b9cddc18f3b174fb32022123527dcdfc3a8d7a | [
"MIT"
] | 65 | 2020-03-18T01:11:58.000Z | 2021-01-31T03:19:48.000Z | lib/level10_web/live/live_helpers.ex | dnsbty/level10 | e5b9cddc18f3b174fb32022123527dcdfc3a8d7a | [
"MIT"
] | 1 | 2020-05-05T22:02:57.000Z | 2020-05-05T22:02:57.000Z | defmodule Level10Web.LiveHelpers do
@moduledoc """
These helpers can be called by various live views and provide functions that
act similar to plugs.
"""
import Phoenix.LiveView, only: [assign: 2]
@doc """
Gets the user identifier from the session.
"""
def fetch_user(socket, session) do
user = %... | 27.964286 | 97 | 0.49553 |
3fbdbf8c5628d883dba81bfea4715c93e29c5ad0 | 2,017 | ex | Elixir | lib/app/state/menu.ex | wilk/ranciobot | 8951bac59130341b9b96a48a0ed50e3b5c3d13ee | [
"MIT"
] | null | null | null | lib/app/state/menu.ex | wilk/ranciobot | 8951bac59130341b9b96a48a0ed50e3b5c3d13ee | [
"MIT"
] | null | null | null | lib/app/state/menu.ex | wilk/ranciobot | 8951bac59130341b9b96a48a0ed50e3b5c3d13ee | [
"MIT"
] | null | null | null | defmodule App.State.Menu do
use Agent
@initial_state %{first: [], second: [], side: [], ready: false}
def start_link() do
Agent.start_link(fn() -> @initial_state end, name: :menu)
end
# check if the current menu is ready or something is missing
defp is_ready?(menu) do
length(menu.first) > 0 and... | 21.923913 | 80 | 0.594943 |
3fbdd43ed2a0616303ba4b1f6023d040953dd77c | 364 | ex | Elixir | templates/lib/web/router.ex | enter-haken/scaffold | 625d65a7f350bc0b9466edbe71075d5df65481fb | [
"MIT"
] | null | null | null | templates/lib/web/router.ex | enter-haken/scaffold | 625d65a7f350bc0b9466edbe71075d5df65481fb | [
"MIT"
] | null | null | null | templates/lib/web/router.ex | enter-haken/scaffold | 625d65a7f350bc0b9466edbe71075d5df65481fb | [
"MIT"
] | 1 | 2021-09-02T09:47:12.000Z | 2021-09-02T09:47:12.000Z | defmodule <%= app_module %>.Web.Router do
use Plug.Router
plug(<%= app_module %>.Web.Plug.Bakery)
plug(CORSPlug, origin: "*")
plug(:match)
plug(Plug.Parsers,
parsers: [:json, :multipart],
pass: ["application/json"],
json_decoder: Poison
)
plug(:dispatch)
get "/api/" do
conn |> sen... | 15.166667 | 46 | 0.60989 |
3fbdfcbb664346c52b51ce048f2baa470c8a395d | 2,265 | ex | Elixir | clients/dns/lib/google_api/dns/v1/model/managed_zone_dns_sec_config.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dns/lib/google_api/dns/v1/model/managed_zone_dns_sec_config.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dns/lib/google_api/dns/v1/model/managed_zone_dns_sec_config.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 40.446429 | 229 | 0.72362 |
3fbe0c5e2bd27fb58639f3db7c3955867dceee18 | 1,848 | ex | Elixir | apps/services/lib/services/registry.ex | bitwalker/aws-dist-test | 94d87e82b617da02d541f7b2744d20747d8ef21f | [
"Apache-2.0"
] | 4 | 2019-03-13T16:38:32.000Z | 2020-01-11T20:05:25.000Z | apps/services/lib/services/registry.ex | bitwalker/aws-dist-test | 94d87e82b617da02d541f7b2744d20747d8ef21f | [
"Apache-2.0"
] | 1 | 2019-03-14T17:41:55.000Z | 2019-03-14T17:41:55.000Z | apps/services/lib/services/registry.ex | bitwalker/aws-dist-test | 94d87e82b617da02d541f7b2744d20747d8ef21f | [
"Apache-2.0"
] | 1 | 2019-03-14T14:53:29.000Z | 2019-03-14T14:53:29.000Z | defmodule Services.Registry do
@moduledoc """
This module provides an API for distributed service discovery
"""
# Proxy to the supervisor
defdelegate start_link(opts \\ []), to: __MODULE__.Supervisor
defdelegate child_spec(args), to: __MODULE__.Supervisor
@doc """
Add a service to the registry.
"""
... | 28.875 | 102 | 0.623377 |
3fbe6b39cd8ca0d6144deacaeb3cbfd28f2f5721 | 434 | ex | Elixir | test/support/fixtures/counters_fixtures.ex | cabol/distcount | b0b42f66dcc130ec6e349ab8b915cfb6f5b77c7b | [
"MIT"
] | null | null | null | test/support/fixtures/counters_fixtures.ex | cabol/distcount | b0b42f66dcc130ec6e349ab8b915cfb6f5b77c7b | [
"MIT"
] | null | null | null | test/support/fixtures/counters_fixtures.ex | cabol/distcount | b0b42f66dcc130ec6e349ab8b915cfb6f5b77c7b | [
"MIT"
] | null | null | null | defmodule Distcount.CountersFixtures do
@moduledoc """
This module defines test helpers for creating
entities via the `Distcount.Counters` context.
"""
alias Distcount.Counters
@doc """
Generate a counter.
"""
def counter_fixture(attrs \\ %{}) do
{:ok, counter} =
attrs
|> Enum.into(%... | 18.083333 | 48 | 0.610599 |
3fbec06d8288afa4fb73c2d6850ac43268a25941 | 879 | ex | Elixir | test/support/conn_case.ex | ferd/website | 400409d05ba91ff2a84179ed9a769196aee8f564 | [
"Apache-2.0"
] | null | null | null | test/support/conn_case.ex | ferd/website | 400409d05ba91ff2a84179ed9a769196aee8f564 | [
"Apache-2.0"
] | null | null | null | test/support/conn_case.ex | ferd/website | 400409d05ba91ff2a84179ed9a769196aee8f564 | [
"Apache-2.0"
] | null | null | null | defmodule ErlefWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the ... | 26.636364 | 59 | 0.726962 |
3fbefb6e25ffbaa2392688b6b41c4827d110fa6a | 21,547 | ex | Elixir | lib/chunkr/pagination_planner.ex | goodpixel/pager | d3ab68add7f7d08af1a80132e2981c802d446b5f | [
"MIT"
] | 3 | 2021-09-15T13:21:37.000Z | 2021-10-14T06:07:49.000Z | lib/chunkr/pagination_planner.ex | goodpixel/pager | d3ab68add7f7d08af1a80132e2981c802d446b5f | [
"MIT"
] | 2 | 2021-09-20T16:39:56.000Z | 2021-10-14T18:38:34.000Z | lib/chunkr/pagination_planner.ex | goodpixel/pager | d3ab68add7f7d08af1a80132e2981c802d446b5f | [
"MIT"
] | 1 | 2021-09-20T16:19:13.000Z | 2021-09-20T16:19:13.000Z | defmodule Chunkr.PaginationPlanner do
@moduledoc """
Macros for establishing your pagination strategies.
For example:
defmodule MyApp.PaginationPlanner do
use Chunkr.PaginationPlanner
# Sort by a single column.
paginate_by :username do
sort :asc, as(:user).username
... | 41.436538 | 122 | 0.634009 |
3fbf0085cee764bcc1b610f5b98f29b475e87438 | 3,429 | ex | Elixir | deps/phoenix/lib/phoenix/logger.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | null | null | null | deps/phoenix/lib/phoenix/logger.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | null | null | null | deps/phoenix/lib/phoenix/logger.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | null | null | null | defmodule Phoenix.Logger do
@moduledoc """
Instrumenter to handle logging of various instrumentation events.
## Parameter filtering
When logging parameters, Phoenix can filter out sensitive parameters
such as passwords and tokens. Parameters to be filtered can be
added via the `:filter_parameters` option:... | 33.617647 | 92 | 0.670458 |
3fbf015c455e3df2fb9fbdd522f509031e469f37 | 687 | ex | Elixir | lib/erlef_web/controllers/working_group_controller.ex | ferd/website | 400409d05ba91ff2a84179ed9a769196aee8f564 | [
"Apache-2.0"
] | null | null | null | lib/erlef_web/controllers/working_group_controller.ex | ferd/website | 400409d05ba91ff2a84179ed9a769196aee8f564 | [
"Apache-2.0"
] | null | null | null | lib/erlef_web/controllers/working_group_controller.ex | ferd/website | 400409d05ba91ff2a84179ed9a769196aee8f564 | [
"Apache-2.0"
] | null | null | null | defmodule ErlefWeb.WorkingGroupController do
use ErlefWeb, :controller
alias Erlef.{Blog, Posts, WorkingGroup}
action_fallback ErlefWeb.FallbackController
def index(conn, _params) do
groups =
Posts.all(WorkingGroup)
|> Enum.reject(fn wg -> wg.slug == "eef" end)
|> sort_by_formation()
... | 22.9 | 67 | 0.657933 |
3fbf0e3c067bbe8df54ebcbbf3112b1bcf2b08fb | 10,870 | ex | Elixir | lib/calcinator/controller.ex | Decisiv/calcinator | 0d161e8d89c98514e146ae79afeae65215b94388 | [
"Apache-2.0"
] | null | null | null | lib/calcinator/controller.ex | Decisiv/calcinator | 0d161e8d89c98514e146ae79afeae65215b94388 | [
"Apache-2.0"
] | 1 | 2018-09-24T21:48:46.000Z | 2018-09-24T21:48:46.000Z | lib/calcinator/controller.ex | Decisiv/calcinator | 0d161e8d89c98514e146ae79afeae65215b94388 | [
"Apache-2.0"
] | null | null | null | if Code.ensure_loaded?(Phoenix.Controller) do
defmodule Calcinator.Controller do
@moduledoc """
Controller that replicates [`JSONAPI::ActsAsResourceController`](http://www.rubydoc.info/gems/jsonapi-resources/
JSONAPI/ActsAsResourceController).
## Actions
The available actions:
* `create`
... | 31.598837 | 120 | 0.593836 |
3fbf8badfcb4885854c1549e1afc37fefa9e8533 | 259 | ex | Elixir | demo/lib/application.ex | PJUllrich/event-sourcing-with-elixir | 7f70e6bc49d9d93f1d86513a1f358e41e07b8304 | [
"MIT"
] | 19 | 2020-10-08T14:05:30.000Z | 2022-03-18T08:43:11.000Z | demo/lib/application.ex | PJUllrich/event-sourcing-with-elixir | 7f70e6bc49d9d93f1d86513a1f358e41e07b8304 | [
"MIT"
] | null | null | null | demo/lib/application.ex | PJUllrich/event-sourcing-with-elixir | 7f70e6bc49d9d93f1d86513a1f358e41e07b8304 | [
"MIT"
] | 3 | 2021-02-19T08:31:58.000Z | 2021-12-09T05:28:55.000Z | defmodule Demo.Application do
use Application
def start(_type, _args) do
children = [
Demo.EventStore,
Demo.Supervisor
]
opts = [strategy: :one_for_one, name: Demo.Application]
Supervisor.start_link(children, opts)
end
end
| 18.5 | 59 | 0.679537 |
3fbf9938c540dc494f0424cb41489fb3764038ed | 2,867 | ex | Elixir | lib/advanced_pool/pool/message/processing/message_processing_behaviour.default_provider.ex | noizu-labs/SimplePoolAdvanced | 9555071e42917d280c7ce4846c19ef208c77f14e | [
"MIT"
] | null | null | null | lib/advanced_pool/pool/message/processing/message_processing_behaviour.default_provider.ex | noizu-labs/SimplePoolAdvanced | 9555071e42917d280c7ce4846c19ef208c77f14e | [
"MIT"
] | null | null | null | lib/advanced_pool/pool/message/processing/message_processing_behaviour.default_provider.ex | noizu-labs/SimplePoolAdvanced | 9555071e42917d280c7ce4846c19ef208c77f14e | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Author: Keith Brings
# Copyright (C) 2022 Noizu Labs, Inc. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Noizu.AdvancedPool.MessageProcessingBehaviour.DefaultProvide... | 39.819444 | 123 | 0.478549 |
3fbfa053528a15d311ec5bfce0768ec1914a2b26 | 1,176 | ex | Elixir | projects/api/lib/margaret/accounts/queries.ex | strattadb/margaret | dde5d7b42f6d9b4d320069a0117136dae03b13b5 | [
"MIT"
] | 82 | 2017-11-06T01:00:55.000Z | 2020-12-09T10:35:29.000Z | projects/api/lib/margaret/accounts/queries.ex | dbstratta/margaret | dde5d7b42f6d9b4d320069a0117136dae03b13b5 | [
"MIT"
] | 98 | 2017-11-06T22:57:32.000Z | 2020-07-03T04:46:39.000Z | projects/api/lib/margaret/accounts/queries.ex | strattadb/margaret | dde5d7b42f6d9b4d320069a0117136dae03b13b5 | [
"MIT"
] | 10 | 2017-11-16T05:31:58.000Z | 2020-10-29T18:02:35.000Z | defmodule Margaret.Accounts.Queries do
@moduledoc """
"""
import Ecto.Query
alias Margaret.{
Accounts,
Publications
}
alias Accounts.User
alias Publications.Publication
@doc """
"""
@spec users(map()) :: Ecto.Query.t()
def users(args \\ %{}) do
query = User
query
|> maybe... | 20.631579 | 85 | 0.626701 |
3fbfb11f74d36821900f28d9efe3649bbeb13a83 | 387 | exs | Elixir | test/strong_map_test.exs | pierce-h/strong_map | 043897b033ad595878a948137dfc7baa82f7b13d | [
"Apache-2.0"
] | null | null | null | test/strong_map_test.exs | pierce-h/strong_map | 043897b033ad595878a948137dfc7baa82f7b13d | [
"Apache-2.0"
] | null | null | null | test/strong_map_test.exs | pierce-h/strong_map | 043897b033ad595878a948137dfc7baa82f7b13d | [
"Apache-2.0"
] | null | null | null | defmodule StrongMapTest do
use ExUnit.Case
doctest StrongMap
describe "permit/2" do
test "permits specified keys" do
assert StrongMap.permit(%{foo: "test", bar: "test 2"}, [:foo]) == %{foo: "test"}
end
test "converts stringified keys to atoms" do
assert StrongMap.permit(%{"foo" => "test... | 24.1875 | 94 | 0.609819 |
3fbfe15057dfd80b989c153f34e23ffee003ecb8 | 693 | ex | Elixir | debian/preinst.ex | pagey101/logscript | d184c40258766307f153ea212c7007b169387676 | [
"MIT"
] | null | null | null | debian/preinst.ex | pagey101/logscript | d184c40258766307f153ea212c7007b169387676 | [
"MIT"
] | null | null | null | debian/preinst.ex | pagey101/logscript | d184c40258766307f153ea212c7007b169387676 | [
"MIT"
] | null | null | null | #!/bin/sh
# preinst script for logscript
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <new-preinst> `install'
# * <new-preinst> `install' <old-version>
# * <new-preinst> `upgrade' <old-version>
# * <old-preinst> `abort-upgrade' <new-version>
# for detail... | 19.25 | 63 | 0.629149 |
3fbff6df8727f058614f9011fb233969581aab2e | 345 | ex | Elixir | lib/docker_build/plugins/brunch.ex | chazsconi/elixir_docker_build | 1906a6cf1b4bfab5b29c27d1ddd8eeb7814cf250 | [
"MIT"
] | 2 | 2020-11-24T08:01:27.000Z | 2021-04-07T14:59:46.000Z | lib/docker_build/plugins/brunch.ex | chazsconi/elixir_docker_build | 1906a6cf1b4bfab5b29c27d1ddd8eeb7814cf250 | [
"MIT"
] | null | null | null | lib/docker_build/plugins/brunch.ex | chazsconi/elixir_docker_build | 1906a6cf1b4bfab5b29c27d1ddd8eeb7814cf250 | [
"MIT"
] | null | null | null | defmodule DockerBuild.Plugins.Brunch do
@moduledoc "Compiles assets using Brunch"
use DockerBuild.Plugins
@impl DockerBuild.Plugins
def assets_compile_command(config) do
[
"#{Config.assets_dest_path(config)}/node_modules/brunch/bin/brunch build --production #{
Config.assets_dest_path(config)
... | 24.642857 | 94 | 0.721739 |
3fbffc1a1596dd93602aec524313adadddca871a | 68,941 | exs | Elixir | lib/elixir/test/elixir/kernel/expansion_test.exs | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2021-12-16T20:32:28.000Z | 2021-12-16T20:32:28.000Z | lib/elixir/test/elixir/kernel/expansion_test.exs | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/expansion_test.exs | spencerdcarlson/elixir | 23d75ecdf58df80969e12f4420282238e19219a1 | [
"Apache-2.0"
] | 1 | 2020-11-25T02:22:55.000Z | 2020-11-25T02:22:55.000Z | Code.require_file("../test_helper.exs", __DIR__)
defmodule Kernel.ExpansionTarget do
defmacro seventeen, do: 17
defmacro bar, do: "bar"
defmacro message_hello(arg) do
send(self(), :hello)
arg
end
end
defmodule Kernel.ExpansionTest do
use ExUnit.Case, async: true
defmacrop var_ver(var, version) d... | 26.133813 | 164 | 0.514338 |
3fc03a1eee6b4cfcc483680edfae2f88da8add52 | 2,175 | ex | Elixir | lib/mix/tasks/ua_inspector/download.ex | lessless/ua_inspector | 6c01e12f80c629916de0c53ae5950a89dbd5de17 | [
"Apache-2.0"
] | 44 | 2019-03-17T10:44:04.000Z | 2022-01-30T10:09:28.000Z | lib/mix/tasks/ua_inspector/download.ex | lessless/ua_inspector | 6c01e12f80c629916de0c53ae5950a89dbd5de17 | [
"Apache-2.0"
] | 12 | 2019-06-06T15:26:26.000Z | 2022-03-09T17:21:21.000Z | lib/mix/tasks/ua_inspector/download.ex | lessless/ua_inspector | 6c01e12f80c629916de0c53ae5950a89dbd5de17 | [
"Apache-2.0"
] | 8 | 2020-04-21T07:49:37.000Z | 2021-12-07T00:18:33.000Z | defmodule Mix.Tasks.UaInspector.Download do
@moduledoc """
Mix task to download database file(s) from your command line.
## Arguments
When run without arguments the task will display the target directory for the
downloaded files and will ask for confirmation before downloading.
- `--force`: skip confirma... | 23.387097 | 79 | 0.676782 |
3fc03d8f477680a987b1e14d0843c7b13cfc3e78 | 1,777 | ex | Elixir | lib/identicon.ex | henryhamon/identicon | df121a20421dcf1b63649c2c9ca80aa7cc350018 | [
"BSD-3-Clause"
] | null | null | null | lib/identicon.ex | henryhamon/identicon | df121a20421dcf1b63649c2c9ca80aa7cc350018 | [
"BSD-3-Clause"
] | null | null | null | lib/identicon.ex | henryhamon/identicon | df121a20421dcf1b63649c2c9ca80aa7cc350018 | [
"BSD-3-Clause"
] | null | null | null | defmodule Identicon do
def main(input) do
input
|> hash_input
|> pick_color
|> build_grid
|> filter_odd_squares
|> build_pixel_map
|> draw_image
|> save_image(input)
end
def pick_color( %Identicon.Image{hex: [r, g, b | _tail]} = image ) do
%Identicon.Image{image | color: {r... | 23.077922 | 73 | 0.594823 |
3fc056edc414f69f451f9a1b70ff5d813232e130 | 2,050 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/object_filter.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/object_filter.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/object_filter.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 37.272727 | 248 | 0.728293 |
3fc064cf52ae56f4314985bbd77f46be4fea64f4 | 1,395 | ex | Elixir | lib/mix/exenv.encrypt.ex | nsweeting/exenv | 88a9863fd055aa4d99ab9bf416c0b35bc86eadac | [
"MIT"
] | 35 | 2019-03-10T05:16:16.000Z | 2021-12-05T00:12:55.000Z | lib/mix/exenv.encrypt.ex | nsweeting/exenv | 88a9863fd055aa4d99ab9bf416c0b35bc86eadac | [
"MIT"
] | 2 | 2019-03-08T17:01:50.000Z | 2019-03-14T09:20:22.000Z | lib/mix/exenv.encrypt.ex | nsweeting/exenv | 88a9863fd055aa4d99ab9bf416c0b35bc86eadac | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Exenv.Encrypt do
@shortdoc "Encrypts a file using the provided master.key"
@moduledoc """
Encrypts a file using the provided master.key.
The encrypted file will use the existing file name with the addition of `.enc`.
The original unencrypted secrets file will be added to your `.gitignore`... | 27.352941 | 81 | 0.689606 |
3fc073bea952796c556d6f8f6a756a4875e3f88d | 314 | exs | Elixir | priv/repo/migrations/20161107051721_create_user.exs | nihonjinrxs/peep-stack-tutorial-app | 8c10b2b589d645ba5a3e31f86754828579e139c9 | [
"MIT"
] | null | null | null | priv/repo/migrations/20161107051721_create_user.exs | nihonjinrxs/peep-stack-tutorial-app | 8c10b2b589d645ba5a3e31f86754828579e139c9 | [
"MIT"
] | null | null | null | priv/repo/migrations/20161107051721_create_user.exs | nihonjinrxs/peep-stack-tutorial-app | 8c10b2b589d645ba5a3e31f86754828579e139c9 | [
"MIT"
] | null | null | null | defmodule Peepchat.Repo.Migrations.CreateUser do
use Ecto.Migration
def change do
create table(:users) do
add :email, :string
add :password_hash, :string
timestamps()
end
# Unique email address constraint via DB index
create index(:users, [:email], unique: true)
end
end
| 19.625 | 50 | 0.675159 |
3fc0859602edf6b9e1c6b2df402a6f865ede7ce5 | 3,182 | ex | Elixir | clients/page_speed_online/lib/google_api/page_speed_online/v5/model/lighthouse_audit_result_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/lighthouse_audit_result_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/lighthouse_audit_result_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... | 41.324675 | 261 | 0.670019 |
3fc08ea7542893b712b65b3df79889ca91f2f61c | 3,323 | exs | Elixir | test/controllers/request_controller_test.exs | kevinastone/phoenixbin | 8b7326b5de1fe9961c1a2d7971a3d4abe7178829 | [
"MIT"
] | 18 | 2015-11-18T09:52:34.000Z | 2021-04-27T19:38:08.000Z | test/controllers/request_controller_test.exs | kevinastone/phoenixbin | 8b7326b5de1fe9961c1a2d7971a3d4abe7178829 | [
"MIT"
] | 3 | 2017-01-11T18:55:39.000Z | 2021-06-15T05:46:34.000Z | test/controllers/request_controller_test.exs | kevinastone/phoenixbin | 8b7326b5de1fe9961c1a2d7971a3d4abe7178829 | [
"MIT"
] | 7 | 2016-08-17T10:24:20.000Z | 2020-07-10T13:00:36.000Z | defmodule RequestboxWeb.RequestControllerTest do
use RequestboxWeb.ConnCase, async: true
import RequestboxWeb.Router.Helpers
alias Requestbox.Repo
alias Requestbox.Request
setup context do
context = Map.put(context, :session, insert(:session))
{:ok, context}
end
setup context do
context = Ma... | 23.237762 | 89 | 0.63557 |
3fc0a47eabac31cb37a661c3c29bd96ba540af74 | 17,157 | exs | Elixir | apps/snitch_core/test/domain/shipment_test.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_core/test/domain/shipment_test.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_core/test/domain/shipment_test.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule Snitch.Domain.ShipmentTest do
use ExUnit.Case, async: true
use Snitch.DataCase
import Mox, only: [expect: 3, expect: 4, verify_on_exit!: 1]
import Snitch.Factory
import Snitch.Tools.Helper.{Order, Stock, Zone, Shipment}
alias Snitch.Data.Schema.{Address, Order, Package, StockItem, StockLocation,... | 30.312721 | 98 | 0.576849 |
3fc0ab7087c27267a82417ecc5ef32de74295fe8 | 7,230 | ex | Elixir | lib/elixir/lib/node.ex | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | 1 | 2021-05-20T13:08:37.000Z | 2021-05-20T13:08:37.000Z | lib/elixir/lib/node.ex | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/node.ex | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | null | null | null | defmodule Node do
@moduledoc """
Functions related to VM nodes.
Some of the functions in this module are inlined by the compiler,
similar to functions in the `Kernel` module and they are explicitly
marked in their docs as "inlined by the compiler". For more information
about inlined functions, check out th... | 27.59542 | 93 | 0.673721 |
3fc127116610bf3c55e508fede9911f96b03ebab | 1,436 | ex | Elixir | lib/postoffice/application.ex | vbergae/postoffice | cb6f5e8f179c5bfe0d1b795ec373b5013cdf8c43 | [
"Apache-2.0"
] | null | null | null | lib/postoffice/application.ex | vbergae/postoffice | cb6f5e8f179c5bfe0d1b795ec373b5013cdf8c43 | [
"Apache-2.0"
] | null | null | null | lib/postoffice/application.ex | vbergae/postoffice | cb6f5e8f179c5bfe0d1b795ec373b5013cdf8c43 | [
"Apache-2.0"
] | null | null | null | defmodule Postoffice.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
Postoffice.MetricsSetup.setup()
children = [
# Start the ... | 29.916667 | 94 | 0.696379 |
3fc12b04de5187e2909f8296fd7f2b126288dc71 | 1,659 | exs | Elixir | config/dev.exs | kadmohardy/calculator | 671e0d6c6c8d7ef7fba75b7f47a76aaeb29eaf7e | [
"MIT"
] | null | null | null | config/dev.exs | kadmohardy/calculator | 671e0d6c6c8d7ef7fba75b7f47a76aaeb29eaf7e | [
"MIT"
] | null | null | null | config/dev.exs | kadmohardy/calculator | 671e0d6c6c8d7ef7fba75b7f47a76aaeb29eaf7e | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :calculator, Calculator.Repo,
username: "postgres",
password: "postgres",
database: "calculator_dev",
hostname: "db",
show_sensitive_data_on_connection_error: true,
pool_size: 10
# For development, we disable any cache and enable
# debugging and code reloadi... | 28.603448 | 68 | 0.727547 |
3fc13253158dcb1f48769f557d8f181da80a2d89 | 722 | ex | Elixir | lib/buy_the_food_web/gettext.ex | Fomich686/buy_the_food | ca4638a4efbb5f86347948ad07bcf7827f6523f9 | [
"Apache-2.0"
] | null | null | null | lib/buy_the_food_web/gettext.ex | Fomich686/buy_the_food | ca4638a4efbb5f86347948ad07bcf7827f6523f9 | [
"Apache-2.0"
] | null | null | null | lib/buy_the_food_web/gettext.ex | Fomich686/buy_the_food | ca4638a4efbb5f86347948ad07bcf7827f6523f9 | [
"Apache-2.0"
] | null | null | null | defmodule BuyTheFoodWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import BuyTheFoodWeb.Gettext
# Simple translation
gettext("Her... | 28.88 | 72 | 0.682825 |
3fc193acba948de21020b69e3bc327bef2629385 | 133 | ex | Elixir | lib/mix/tasks/client.ex | suddenrushofsushi/bertgate | 65955e778aeda428b51acfbaeaad900972dcaacc | [
"WTFPL"
] | 6 | 2015-01-03T02:12:29.000Z | 2017-01-10T11:17:17.000Z | lib/mix/tasks/client.ex | suddenrushofsushi/bertgate | 65955e778aeda428b51acfbaeaad900972dcaacc | [
"WTFPL"
] | 6 | 2015-02-13T09:30:31.000Z | 2019-08-01T16:41:06.000Z | lib/mix/tasks/client.ex | suddenrushofsushi/bertgate | 65955e778aeda428b51acfbaeaad900972dcaacc | [
"WTFPL"
] | 8 | 2015-02-25T07:37:22.000Z | 2018-09-10T17:56:26.000Z | defmodule Mix.Tasks.Client do
use Mix.Task
@shortdoc "Run BERTGate test client"
def run([]) do
Rpc.start_link
end
end
| 13.3 | 38 | 0.684211 |
3fc1b5ae5e7a714f213907cbcb2c02a3704fb990 | 11,314 | ex | Elixir | lib/mix/lib/mix/tasks/profile.fprof.ex | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/profile.fprof.ex | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/profile.fprof.ex | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Profile.Fprof do
use Mix.Task
@shortdoc "Profiles the given file or expression with fprof"
@moduledoc """
Profiles the given file or expression using Erlang's `fprof` tool.
`fprof` can be useful when you want to discover the bottlenecks of a
sequential code.
Before running the code... | 34.705521 | 97 | 0.6309 |
3fc1c2b7b7edfc6ec9e3d8c3047a1194ddb1173c | 705 | ex | Elixir | elm_elixir/web/gettext.ex | leadbrain/tutorial | 97ff8fa72829080b79e5ae32541e04897f31326d | [
"MIT"
] | null | null | null | elm_elixir/web/gettext.ex | leadbrain/tutorial | 97ff8fa72829080b79e5ae32541e04897f31326d | [
"MIT"
] | null | null | null | elm_elixir/web/gettext.ex | leadbrain/tutorial | 97ff8fa72829080b79e5ae32541e04897f31326d | [
"MIT"
] | null | null | null | defmodule Tutorial.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import Tutorial.Gettext
# Simple translation
gettext "Here is the s... | 28.2 | 72 | 0.679433 |
3fc1f42e6c5fc68b1c7b1b68ffadb7bbe73fda63 | 1,126 | ex | Elixir | clients/cloud_billing/lib/google_api/cloud_billing/v1/connection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/connection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/connection.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.121212 | 74 | 0.742451 |
3fc22ebe3e0c4782e2ff5de8ad00d445c62fe09f | 826 | exs | Elixir | test/rosetta_euler/javascript_test.exs | seaneshbaugh/rosetta-euler | 14f24dfc347e7d9a4c9c0f090acf2811aa65f453 | [
"MIT"
] | 36 | 2015-01-24T08:11:52.000Z | 2021-03-21T00:32:00.000Z | test/rosetta_euler/javascript_test.exs | seaneshbaugh/rosetta-euler | 14f24dfc347e7d9a4c9c0f090acf2811aa65f453 | [
"MIT"
] | null | null | null | test/rosetta_euler/javascript_test.exs | seaneshbaugh/rosetta-euler | 14f24dfc347e7d9a4c9c0f090acf2811aa65f453 | [
"MIT"
] | 4 | 2015-01-24T08:17:42.000Z | 2022-01-11T16:10:56.000Z | Code.require_file("../rosetta_euler_test.exs", __DIR__)
Code.require_file("../support/answers.exs", __DIR__)
defmodule RosettaEuler.JavaScriptTest do
use ExUnit.Case, async: true
import RosettaEuler.Test, only: [rosetta_euler_tests: 2]
import RosettaEuler.Answers, only: [answer_for: 1]
setup context do
{... | 28.482759 | 81 | 0.702179 |
3fc277cffd07723a454d186a4f9f552248bdf470 | 1,119 | exs | Elixir | fridge/apps/model/config/config.exs | rob-brown/ElixirTraining2018 | 9724cc4961d767a1ba2450240e026b46ad5a0f1b | [
"MIT"
] | 2 | 2018-02-01T22:56:09.000Z | 2020-01-20T19:57:48.000Z | fridge/apps/model/config/config.exs | rob-brown/ElixirTraining2018 | 9724cc4961d767a1ba2450240e026b46ad5a0f1b | [
"MIT"
] | null | null | null | fridge/apps/model/config/config.exs | rob-brown/ElixirTraining2018 | 9724cc4961d767a1ba2450240e026b46ad5a0f1b | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.096774 | 73 | 0.75067 |
3fc28fcf0e9a2a2c68e705e7dd92a5521ca4cf85 | 850 | ex | Elixir | lib/app_unite/pharmacy/pharmacy.ex | JakTomczak/AppUniteTask | 05694bef7c9867cd873ebce308e3fe1bb8e89bf4 | [
"Unlicense"
] | null | null | null | lib/app_unite/pharmacy/pharmacy.ex | JakTomczak/AppUniteTask | 05694bef7c9867cd873ebce308e3fe1bb8e89bf4 | [
"Unlicense"
] | null | null | null | lib/app_unite/pharmacy/pharmacy.ex | JakTomczak/AppUniteTask | 05694bef7c9867cd873ebce308e3fe1bb8e89bf4 | [
"Unlicense"
] | null | null | null | defmodule AppUnite.Pharmacy.Pharmacy do
@moduledoc """
Pharmacy is an instance buying drugs from vendors and disbursing them to doctors.
Pharmacy has a limited daily budget it must strive to uphold.
No feature should be blocked when budget is negative, it's just an info for admins.
"""
use AppUnite.Schema
... | 25 | 85 | 0.714118 |
3fc2987064a6a60d8689c76fd0ccd836465bba16 | 308 | exs | Elixir | test/tipalti/system_time_test.exs | gadabout/tipalti-elixir | 4cff4108b343b8d7c30d117494838ad00a46128a | [
"MIT"
] | 8 | 2018-04-26T21:40:07.000Z | 2019-08-14T10:55:53.000Z | test/tipalti/system_time_test.exs | gadabout/tipalti-elixir | 4cff4108b343b8d7c30d117494838ad00a46128a | [
"MIT"
] | 198 | 2018-04-26T21:53:20.000Z | 2022-03-23T15:20:11.000Z | test/tipalti/system_time_test.exs | gadabout/tipalti-elixir | 4cff4108b343b8d7c30d117494838ad00a46128a | [
"MIT"
] | 1 | 2018-11-09T03:10:36.000Z | 2018-11-09T03:10:36.000Z | defmodule Tipalti.SystemTimeTest do
use ExUnit.Case
alias Tipalti.SystemTime
test "timestamp" do
ts1 = DateTime.utc_now() |> DateTime.to_unix()
ts2 = SystemTime.timestamp()
# the timestamp will be within 1 second of the one we generated
assert ts1 == ts2 || ts1 == ts2 + 1
end
end
| 22 | 67 | 0.688312 |
3fc2f52e2a516a2b17d89f228e8020f16fd98c1d | 1,147 | ex | Elixir | lib/web_driver_client/json_wire_protocol_client/response/status.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 8 | 2019-11-24T18:33:12.000Z | 2020-12-09T10:20:09.000Z | lib/web_driver_client/json_wire_protocol_client/response/status.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 67 | 2019-12-20T16:33:30.000Z | 2021-09-14T03:50:10.000Z | lib/web_driver_client/json_wire_protocol_client/response/status.ex | fimassuda/web_driver_client | 09d373c9a8a923c5e2860f107f84b16565e338f7 | [
"MIT"
] | 10 | 2020-06-19T16:15:03.000Z | 2021-09-13T17:56:25.000Z | defmodule WebDriverClient.JSONWireProtocolClient.Response.Status do
@moduledoc false
statuses = %{
0 => :success,
6 => :no_such_driver,
7 => :no_such_element,
8 => :no_such_frame,
9 => :unknown_command,
10 => :stale_element_reference,
11 => :element_not_visible,
12 => :invalid_eleme... | 26.674419 | 67 | 0.669573 |
3fc2fdeae9d53e84d9ac64b0e927b7c57b855b0c | 10,139 | ex | Elixir | lib/ex_unit/lib/ex_unit/runner.ex | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | 1 | 2021-05-20T13:08:37.000Z | 2021-05-20T13:08:37.000Z | lib/ex_unit/lib/ex_unit/runner.ex | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/runner.ex | namjae/elixir | 6d1561a5939d68fb61f422b83271fbc824847395 | [
"Apache-2.0"
] | 8 | 2018-02-20T18:30:53.000Z | 2019-06-18T14:23:31.000Z | defmodule ExUnit.Runner do
@moduledoc false
alias ExUnit.EventManager, as: EM
@rand_algorithm :exs1024
def run(opts, load_us) do
{opts, config} = configure(opts)
:erlang.system_flag(:backtrace_depth, Keyword.fetch!(opts, :stacktrace_depth))
{run_us, _} =
:timer.tc(fn ->
EM.suite_s... | 27.55163 | 86 | 0.61801 |
3fc3126f10b6166b8392c19e5a53e7701579047a | 5,768 | ex | Elixir | lib/cldr/locale/loader.ex | KineticCafe/cldr | 7b84cd85564bca4a2c4e01c02ee0aa284bf07367 | [
"Apache-2.0"
] | null | null | null | lib/cldr/locale/loader.ex | KineticCafe/cldr | 7b84cd85564bca4a2c4e01c02ee0aa284bf07367 | [
"Apache-2.0"
] | null | null | null | lib/cldr/locale/loader.ex | KineticCafe/cldr | 7b84cd85564bca4a2c4e01c02ee0aa284bf07367 | [
"Apache-2.0"
] | null | null | null | defmodule Cldr.Locale.Loader do
@moduledoc """
Provides a public interface to read the
raw JSON locale files and return the
CLDR data in a consistent format.
The functions in this module are intended for the
use of authors writing additional CLDR-based
libraries.
In addition, the functions in this mod... | 31.347826 | 99 | 0.680132 |
3fc3163a01daecaee72d4e2a083aa004752deefa | 2,671 | ex | Elixir | clients/run/lib/google_api/run/v1/model/secret_key_selector.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/run/lib/google_api/run/v1/model/secret_key_selector.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/run/lib/google_api/run/v1/model/secret_key_selector.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... | 47.696429 | 498 | 0.72632 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.