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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
186fa6014834e3da97e813d5e548c1cb6b073d7b | 1,159 | exs | Elixir | apps/omg_watcher/config/config.exs | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/config/config.exs | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/config/config.exs | Pongch/elixir-omg | 8a33c246898b49cba62b847e0989d9b6c89f5106 | [
"Apache-2.0"
] | 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 :omg_watcher,
child_chain_url: "http://l... | 36.21875 | 86 | 0.774806 |
186fb1fb9d7cf8481b97aa8135dd39f85733faad | 69 | ex | Elixir | lib/events_tools_web/views/user_view.ex | Apps-Team/conferencetools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | null | null | null | lib/events_tools_web/views/user_view.ex | Apps-Team/conferencetools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | 6 | 2017-10-05T20:16:34.000Z | 2017-10-05T20:36:11.000Z | lib/events_tools_web/views/user_view.ex | apps-team/events-tools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | null | null | null | defmodule EventsToolsWeb.UserView do
use EventsToolsWeb, :view
end
| 17.25 | 36 | 0.826087 |
186fd3d0c45a5e9bc8f86cef028863f1d5d3065e | 928 | ex | Elixir | web/controllers/vicepresidents_controller.ex | leolorenzoluis/poll | c1009e0796904414a94ef2e7509f7682d2910abf | [
"Apache-2.0"
] | 1 | 2016-08-05T23:37:29.000Z | 2016-08-05T23:37:29.000Z | web/controllers/vicepresidents_controller.ex | leolorenzoluis/poll | c1009e0796904414a94ef2e7509f7682d2910abf | [
"Apache-2.0"
] | null | null | null | web/controllers/vicepresidents_controller.ex | leolorenzoluis/poll | c1009e0796904414a94ef2e7509f7682d2910abf | [
"Apache-2.0"
] | null | null | null | defmodule Poll.VicePresidentsController do
use Poll.Web, :controller
import RethinkDB.Query
import Poll.VoteRepository
import Poll.CandidatesRepository
def index(conn, _params) do
currentUser = get_session(conn, :current_user)
if(is_nil(currentUser)) do
conn
|> put_flash(:error, "You must ... | 26.514286 | 89 | 0.661638 |
186fe5b9952ef5f1bfb11d00ebe1dfa6b4ffaf13 | 9,536 | ex | Elixir | lib/ggity_demo_web/live/layers_live.ex | srowley/ggity_demo | 172815ce7d897ef965df1d992ba50e3290f8348d | [
"MIT"
] | null | null | null | lib/ggity_demo_web/live/layers_live.ex | srowley/ggity_demo | 172815ce7d897ef965df1d992ba50e3290f8348d | [
"MIT"
] | null | null | null | lib/ggity_demo_web/live/layers_live.ex | srowley/ggity_demo | 172815ce7d897ef965df1d992ba50e3290f8348d | [
"MIT"
] | null | null | null | defmodule GGityDemoWeb.LayersLive do
use GGityDemoWeb, :live_view
alias GGity.Plot
import GGity.Element.{Line, Rect, Text}
@econ_data GGity.Examples.economics_long()
@default_theme [
text: [family: "Helvetica, Arial, sans-serif"],
axis_text_x: [angle: 0],
panel_background: [fill: "#EEEEEE"],
... | 28.722892 | 95 | 0.610738 |
186ff642520ecca9bcf795c8c42135682ce7ae82 | 144 | exs | Elixir | test/lnd_client_test.exs | RooSoft/lnd_client | a70d5036e5f871b3265874f642c060ff79ea35b1 | [
"MIT"
] | 1 | 2021-07-19T18:33:04.000Z | 2021-07-19T18:33:04.000Z | test/lnd_client_test.exs | RooSoft/lnd_client | a70d5036e5f871b3265874f642c060ff79ea35b1 | [
"MIT"
] | 1 | 2021-06-29T23:03:36.000Z | 2021-06-29T23:03:36.000Z | test/lnd_client_test.exs | RooSoft/lnd_client | a70d5036e5f871b3265874f642c060ff79ea35b1 | [
"MIT"
] | 1 | 2021-06-22T20:15:50.000Z | 2021-06-22T20:15:50.000Z | defmodule LndClientTest do
use ExUnit.Case
doctest LndClient
test "greets the world" do
assert LndClient.hello() == :world
end
end
| 16 | 38 | 0.722222 |
186ffa745b7df13f7640f98064e5b2e924af4003 | 949 | ex | Elixir | lib/wobserver/web/router/helper.ex | coby-spotim/wobserver | b0b9d77fb4ff40bb417f6b370ee343b8d42de750 | [
"MIT"
] | null | null | null | lib/wobserver/web/router/helper.ex | coby-spotim/wobserver | b0b9d77fb4ff40bb417f6b370ee343b8d42de750 | [
"MIT"
] | null | null | null | lib/wobserver/web/router/helper.ex | coby-spotim/wobserver | b0b9d77fb4ff40bb417f6b370ee343b8d42de750 | [
"MIT"
] | 1 | 2018-09-12T16:13:57.000Z | 2018-09-12T16:13:57.000Z | defmodule Wobserver.Web.Router.Helper do
@moduledoc ~S"""
Helper methods for routers.
"""
alias Plug.Conn
@doc ~S"""
Sends a JSON encoded response back to the client.
The https status will be `200` or `500` if the given `data` can not be JSON encoded.
The `conn` content type is set to `application/j... | 24.333333 | 90 | 0.6196 |
187027ce421b064d5b1692a986965b78d9024a3e | 1,590 | ex | Elixir | clients/partners/lib/google_api/partners/v2/model/log_message_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/partners/lib/google_api/partners/v2/model/log_message_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/partners/lib/google_api/partners/v2/model/log_message_response.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 33.125 | 88 | 0.759748 |
18702838a6faed840b92992260cc00c2cd1e974a | 1,478 | exs | Elixir | apps/service_broadcast/mix.exs | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | apps/service_broadcast/mix.exs | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | apps/service_broadcast/mix.exs | kennyatpillar/hindsight | e90e2150a14218e5d6fdf5874f57eb055fd2dd07 | [
"Apache-2.0"
] | null | null | null | defmodule Broadcast.MixProject do
use Mix.Project
def project do
[
app: :service_broadcast,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.9",
elixirc_paths:... | 26.872727 | 57 | 0.549391 |
18704964b76abac72bf3fb44c7e58e8b36fdd1ff | 413 | ex | Elixir | lib/tabi/chat/message.ex | jeepers3327/tabi | b8b63b00231f1a0f3b274c57215436cc90a73561 | [
"MIT"
] | 1 | 2021-07-06T00:32:19.000Z | 2021-07-06T00:32:19.000Z | lib/tabi/chat/message.ex | jeepers3327/tabi | b8b63b00231f1a0f3b274c57215436cc90a73561 | [
"MIT"
] | null | null | null | lib/tabi/chat/message.ex | jeepers3327/tabi | b8b63b00231f1a0f3b274c57215436cc90a73561 | [
"MIT"
] | null | null | null | defmodule Tabi.Chat.Message do
use Ecto.Schema
import Ecto.Changeset
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "messages" do
field :message, :string
belongs_to :user, Tabi.Accounts.User
timestamps()
end
@doc false
def changeset(message, attrs) ... | 19.666667 | 52 | 0.690073 |
187054fe3636102678ae45e5c77a948ee3e942fd | 638 | ex | Elixir | lib/futaba_web/router.ex | sean-clayton/futaba | b7cdcb0ce4192f52a631f581ddee5a4f1c8fcd4a | [
"Unlicense"
] | null | null | null | lib/futaba_web/router.ex | sean-clayton/futaba | b7cdcb0ce4192f52a631f581ddee5a4f1c8fcd4a | [
"Unlicense"
] | null | null | null | lib/futaba_web/router.ex | sean-clayton/futaba | b7cdcb0ce4192f52a631f581ddee5a4f1c8fcd4a | [
"Unlicense"
] | null | null | null | defmodule FutabaWeb.Router do
use FutabaWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {FutabaWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :a... | 19.9375 | 63 | 0.677116 |
18706df81a09e70fdfc641ce06ad26108648ac60 | 2,147 | ex | Elixir | clients/speech/lib/google_api/speech/v1/model/speech_context.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/speech/lib/google_api/speech/v1/model/speech_context.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/speech/lib/google_api/speech/v1/model/speech_context.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... | 45.680851 | 781 | 0.757336 |
18707d7576fc173efc032d3b906b1080b6c2ff3a | 401 | exs | Elixir | priv/repo/migrations/20210425225341_add_money_with_currency_type_to_postgres.exs | mithereal/ex_softbank | 8e64143e0056861c84ed71001929bbb5a10a55bf | [
"MIT"
] | 1 | 2020-01-26T23:28:44.000Z | 2020-01-26T23:28:44.000Z | priv/repo/migrations/20210425225341_add_money_with_currency_type_to_postgres.exs | mithereal/ex_softbank | 8e64143e0056861c84ed71001929bbb5a10a55bf | [
"MIT"
] | 1 | 2018-12-02T05:35:28.000Z | 2019-03-14T22:42:30.000Z | priv/repo/migrations/20210425225341_add_money_with_currency_type_to_postgres.exs | mithereal/elixir-softbank | 2e63b72c4f25d651f4aee654ee41c25ac938fda3 | [
"MIT"
] | null | null | null | defmodule SoftBank.Repo.Migrations.AddMoneyWithCurrencyTypeToPostgres do
use Ecto.Migration
def up do
execute("CREATE TYPE public.money_with_currency AS (currency_code char(3), amount numeric);")
execute("CREATE TYPE public.currency AS (currency_code char(3));")
end
def down do
execute("DROP TYPE ... | 30.846154 | 97 | 0.755611 |
187092a468d381d646c1bd64440f6ccc68801649 | 4,195 | ex | Elixir | lib/samly/helper.ex | bzbzh/samly | 3bedb74168a0f8585a9bdf159ef95f476cca7664 | [
"MIT"
] | null | null | null | lib/samly/helper.ex | bzbzh/samly | 3bedb74168a0f8585a9bdf159ef95f476cca7664 | [
"MIT"
] | null | null | null | lib/samly/helper.ex | bzbzh/samly | 3bedb74168a0f8585a9bdf159ef95f476cca7664 | [
"MIT"
] | null | null | null | defmodule Samly.Helper do
@moduledoc false
require Logger
require Samly.Esaml
alias Samly.{Assertion, Esaml, IdpData}
@spec get_idp(binary) :: nil | IdpData.t()
def get_idp(idp_id) do
idps = Application.get_env(:samly, :identity_providers, %{})
Map.get(idps, idp_id)
end
@spec get_metadata_uri... | 34.669421 | 97 | 0.704172 |
1870d4c2561a58c958fa50227bb06e6051b0c7fc | 165 | exs | Elixir | test/stateful_property_test.exs | mdarin/proper-stateful-examples | 66d9e2f8fd8ca202d80b18b89f5ac929918ab7d6 | [
"Apache-2.0"
] | null | null | null | test/stateful_property_test.exs | mdarin/proper-stateful-examples | 66d9e2f8fd8ca202d80b18b89f5ac929918ab7d6 | [
"Apache-2.0"
] | null | null | null | test/stateful_property_test.exs | mdarin/proper-stateful-examples | 66d9e2f8fd8ca202d80b18b89f5ac929918ab7d6 | [
"Apache-2.0"
] | null | null | null | defmodule StatefulPropertyTest do
use ExUnit.Case
doctest StatefulProperty
test "greets the world" do
assert StatefulProperty.hello() == :world
end
end
| 18.333333 | 45 | 0.757576 |
1870fde4a3f581379ed59fc273fa2a99d482eb0f | 324 | exs | Elixir | config/test.exs | rai200890/blog_api | e42cdc609b351baccb7b9214a0dff5365579d04d | [
"MIT"
] | null | null | null | config/test.exs | rai200890/blog_api | e42cdc609b351baccb7b9214a0dff5365579d04d | [
"MIT"
] | null | null | null | config/test.exs | rai200890/blog_api | e42cdc609b351baccb7b9214a0dff5365579d04d | [
"MIT"
] | null | null | null | use Mix.Config
# Configure your database
config :blog, Blog.Repo,
pool: Ecto.Adapters.SQL.Sandbox
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :blog, BlogWeb.Endpoint,
server: false
# Print only warnings and errors during test
config :logger, level: :w... | 23.142857 | 56 | 0.75 |
18713d0aeea7536c8cdc51ed8b97b47bbf4256a1 | 93 | ex | Elixir | lib/ex/repo.ex | ykurtbas/kitchensink | 01603ede591a72d0eeb1b8d7091eb4520bd666f6 | [
"BSD-3-Clause"
] | 4 | 2021-03-22T17:31:03.000Z | 2021-04-09T07:03:25.000Z | lib/ex/repo.ex | ykurtbas/kitchensink | 01603ede591a72d0eeb1b8d7091eb4520bd666f6 | [
"BSD-3-Clause"
] | null | null | null | lib/ex/repo.ex | ykurtbas/kitchensink | 01603ede591a72d0eeb1b8d7091eb4520bd666f6 | [
"BSD-3-Clause"
] | 1 | 2021-04-19T01:52:47.000Z | 2021-04-19T01:52:47.000Z | defmodule Ex.Repo do
use Ecto.Repo,
otp_app: :ex,
adapter: Ecto.Adapters.MyXQL
end
| 15.5 | 32 | 0.688172 |
18714dd9a3f3b660899d4a866df6bf64f8402a57 | 57 | ex | Elixir | apps/diet_web/lib/diet_web/views/search_view.ex | isavita/diet-umbrella | 0eee4d0dc4d9567888e4b69ccc7993e95d95ed29 | [
"MIT"
] | 1 | 2020-06-01T21:25:54.000Z | 2020-06-01T21:25:54.000Z | apps/diet_web/lib/diet_web/views/search_view.ex | isavita/diet-umbrella | 0eee4d0dc4d9567888e4b69ccc7993e95d95ed29 | [
"MIT"
] | 221 | 2019-07-20T17:20:49.000Z | 2021-08-02T06:21:10.000Z | apps/diet_web/lib/diet_web/views/search_view.ex | isavita/diet-umbrella | 0eee4d0dc4d9567888e4b69ccc7993e95d95ed29 | [
"MIT"
] | null | null | null | defmodule DietWeb.SearchView do
use DietWeb, :view
end
| 14.25 | 31 | 0.789474 |
1871586319a706d9a16f0190cfc8e1de7869bb3a | 1,786 | exs | Elixir | apps/estuary/test/unit/estuary_web/controllers/api/event_controller_test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/estuary/test/unit/estuary_web/controllers/api/event_controller_test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/estuary/test/unit/estuary_web/controllers/api/event_controller_test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule EstuaryWeb.API.EventControllerTest do
use EstuaryWeb.ConnCase
use Placebo
alias Estuary.Services.EventRetrievalService
describe "GET events from /api/v1/events" do
@tag capture_log: true
test "should return a 200 and the events when events are found in the database", %{conn: conn} do
ev... | 37.208333 | 349 | 0.616461 |
187158862863b46ba6b9449c02f118e1946757cd | 3,915 | ex | Elixir | lib/formex/template.ex | ianatha/formex | 7dbf2de83da05e167bbac5a0ed93fbb7dbfe5408 | [
"MIT"
] | 221 | 2017-01-15T18:14:55.000Z | 2021-08-17T14:15:40.000Z | lib/formex/template.ex | ianatha/formex | 7dbf2de83da05e167bbac5a0ed93fbb7dbfe5408 | [
"MIT"
] | 25 | 2017-04-09T01:01:20.000Z | 2019-04-17T01:36:01.000Z | lib/formex/template.ex | ianatha/formex | 7dbf2de83da05e167bbac5a0ed93fbb7dbfe5408 | [
"MIT"
] | 24 | 2017-04-08T22:15:06.000Z | 2021-11-15T11:55:41.000Z | defmodule Formex.Template do
alias Formex.Form
alias Formex.Field
@moduledoc """
Use this module to create a custom form template.
Usage:
```
defmodule App.FormTemplate.SemanticUI do
use Formex.Template
def generate_row(form, field, _options \\\\ []) do
# code that produces a Phoenix.HTM... | 25.588235 | 113 | 0.664623 |
187161aa05c7debf5db852e7e11164a457362664 | 136 | exs | Elixir | programming_elixir/test/programming_elixir_test.exs | rsebescen/ProgrammingElixir | c2ec7bca4c2e326d99723bba6ae254d598c2c5ab | [
"MIT"
] | null | null | null | programming_elixir/test/programming_elixir_test.exs | rsebescen/ProgrammingElixir | c2ec7bca4c2e326d99723bba6ae254d598c2c5ab | [
"MIT"
] | null | null | null | programming_elixir/test/programming_elixir_test.exs | rsebescen/ProgrammingElixir | c2ec7bca4c2e326d99723bba6ae254d598c2c5ab | [
"MIT"
] | null | null | null | defmodule ProgrammingElixirTest do
use ExUnit.Case
doctest ProgrammingElixir
test "the truth" do
assert 1 + 1 == 2
end
end
| 15.111111 | 34 | 0.720588 |
187176aceffca90ba62317fd3e70a17e76f2601f | 429 | ex | Elixir | lib/rube/money_markets/money_market.ex | icecube11/rube | 5d813c5b9f7b984786ac7db6fd2eca0939bf5468 | [
"MIT"
] | 22 | 2021-06-23T06:25:41.000Z | 2022-02-16T19:08:33.000Z | lib/rube/money_markets/money_market.ex | icecube11/rube | 5d813c5b9f7b984786ac7db6fd2eca0939bf5468 | [
"MIT"
] | 16 | 2021-06-21T17:02:13.000Z | 2022-03-21T15:04:14.000Z | lib/rube/money_markets/money_market.ex | icecube11/rube | 5d813c5b9f7b984786ac7db6fd2eca0939bf5468 | [
"MIT"
] | 2 | 2021-06-23T13:40:52.000Z | 2021-09-17T07:25:34.000Z | defmodule Rube.MoneyMarkets.MoneyMarket do
alias __MODULE__
@type t :: %MoneyMarket{
blockchain_id: Slurp.Blockchains.Blockchain.id(),
address: term,
symbol: String.t(),
precision: non_neg_integer()
}
defstruct ~w[blockchain_id address symbol precision]a
defimp... | 25.235294 | 81 | 0.682984 |
18718c72b7da02c9e7490732ec9e54b5e6557c4b | 1,543 | ex | Elixir | lib/ex_diet/food/ingredient.ex | mugimaru/ex_diet | 9602c07af27255decbb32fd7ae0c12b3ffe662a3 | [
"Apache-2.0"
] | 2 | 2020-06-25T11:51:46.000Z | 2020-09-30T14:00:40.000Z | lib/ex_diet/food/ingredient.ex | mugimaru/ex_diet | 9602c07af27255decbb32fd7ae0c12b3ffe662a3 | [
"Apache-2.0"
] | null | null | null | lib/ex_diet/food/ingredient.ex | mugimaru/ex_diet | 9602c07af27255decbb32fd7ae0c12b3ffe662a3 | [
"Apache-2.0"
] | 1 | 2020-01-29T08:43:07.000Z | 2020-01-29T08:43:07.000Z | defmodule ExDiet.Food.Ingredient do
@moduledoc false
use ExDiet.Schema
import Ecto.Changeset
alias ExDiet.Food.{RecipeIngredient, Recipe, Meal}
@type t :: %__MODULE__{
id: String.t(),
name: String.t(),
protein: Decimal.t(),
fat: Decimal.t(),
carbonhydrate: D... | 30.86 | 84 | 0.651329 |
1871a95d3fc4012619c7384ae3f761b7596782f3 | 255 | ex | Elixir | lib/code_corps_web/views/password_reset_view.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | lib/code_corps_web/views/password_reset_view.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | lib/code_corps_web/views/password_reset_view.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorpsWeb.PasswordResetView do
@moduledoc false
use CodeCorpsWeb, :view
def render("show.json", %{email: email, token: token, user_id: user_id}) do
%{
email: email,
token: token,
user_id: user_id
}
end
end
| 18.214286 | 77 | 0.65098 |
1871acb56efa311a9caa138fc0818543db9a7047 | 2,267 | ex | Elixir | lib/phoenix_live_view/socket.ex | joshprice/phoenix_live_view | 26a9d5729709b3bcc88937cefbd006a9f28e9d93 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/socket.ex | joshprice/phoenix_live_view | 26a9d5729709b3bcc88937cefbd006a9f28e9d93 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/socket.ex | joshprice/phoenix_live_view | 26a9d5729709b3bcc88937cefbd006a9f28e9d93 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.Socket do
@moduledoc """
The LiveView socket for Phoenix Endpoints.
"""
use Phoenix.Socket
require Logger
if Version.match?(System.version(), ">= 1.8.0") do
@derive {Inspect, only: [:id, :endpoint, :view, :parent_pid, :root_id, :assigns, :changed]}
end
defstruct id: nil,... | 27.987654 | 102 | 0.595501 |
1871b2bf755c16c7b7c91085b8edca1ac9a68e15 | 6,264 | ex | Elixir | lib/noted_web/live/note_live.ex | m13m/noted | efbe7aef012d6ec7ca7fdc23a02d8ce71bb8c787 | [
"BSD-3-Clause"
] | 1 | 2021-04-26T10:54:14.000Z | 2021-04-26T10:54:14.000Z | lib/noted_web/live/note_live.ex | gerhard/noted | c83bfd2e8e2950187268a2e3ba0904ae8a9773e5 | [
"BSD-3-Clause"
] | null | null | null | lib/noted_web/live/note_live.ex | gerhard/noted | c83bfd2e8e2950187268a2e3ba0904ae8a9773e5 | [
"BSD-3-Clause"
] | null | null | null | defmodule NotedWeb.NoteLive do
use NotedWeb, :live_view
alias NotedWeb.Live
alias Noted.Notes
@impl true
def mount(%{"note_id" => note_id}, session, socket) do
socket =
socket
|> Live.mount_auth(session)
|> Live.on_authed(fn socket ->
note = Notes.get_note!(note_id)
cha... | 25.884298 | 79 | 0.60249 |
1871b8bd7b4136ec864c24c02ff6190d9deb4252 | 51 | exs | Elixir | test/common/test_helper.exs | Switch168/MongoosePush | d997bd9cd0e63e16684bec9495cd12790bcaa8f1 | [
"Apache-2.0"
] | 1 | 2016-12-08T00:39:34.000Z | 2016-12-08T00:39:34.000Z | test/test_helper.exs | rhruiz/elixir-fake_cas | a85a67f9b7df235276df0fabfee49d89d7ec60cc | [
"MIT"
] | null | null | null | test/test_helper.exs | rhruiz/elixir-fake_cas | a85a67f9b7df235276df0fabfee49d89d7ec60cc | [
"MIT"
] | null | null | null | ExUnit.start(capture_log: true)
HTTPoison.start()
| 12.75 | 31 | 0.784314 |
1871bdd8023f6463f9c0a55dceef2e2ae0835857 | 1,409 | ex | Elixir | apps/bbq_ui/web/web.ex | easco/ex_bbq | d736204bb124ea256907629f5025c3abaf08c0bb | [
"BSD-3-Clause"
] | 2 | 2016-09-22T13:32:35.000Z | 2017-02-17T20:26:50.000Z | apps/bbq_ui/web/web.ex | easco/ex_bbq | d736204bb124ea256907629f5025c3abaf08c0bb | [
"BSD-3-Clause"
] | null | null | null | apps/bbq_ui/web/web.ex | easco/ex_bbq | d736204bb124ea256907629f5025c3abaf08c0bb | [
"BSD-3-Clause"
] | null | null | null | defmodule BbqUi.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use BbqUi.Web, :controller
use BbqUi.Web, :view
The definitions below will be executed for every view,
controller, etc, so keep them short and... | 20.128571 | 88 | 0.672818 |
1871e1af4bdd31599f7397d14ff0c2f268527e74 | 1,254 | ex | Elixir | lib/game/room/supervisor.ex | NatTuck/ex_venture | 7a74d33025a580f1e3e93d3755f22258eb3e9127 | [
"MIT"
] | null | null | null | lib/game/room/supervisor.ex | NatTuck/ex_venture | 7a74d33025a580f1e3e93d3755f22258eb3e9127 | [
"MIT"
] | null | null | null | lib/game/room/supervisor.ex | NatTuck/ex_venture | 7a74d33025a580f1e3e93d3755f22258eb3e9127 | [
"MIT"
] | null | null | null | defmodule Game.Room.Supervisor do
@moduledoc """
Supervisor for Rooms
"""
use Supervisor
alias Game.Room
alias Game.Zone
def start_link(zone) do
Supervisor.start_link(__MODULE__, zone, id: zone.id)
end
@doc """
Return all rooms that are currently online
"""
@spec rooms(pid) :: [pid]
de... | 22.8 | 95 | 0.631579 |
1871fb4b072d64c6b933a4b78b23d160e63f7507 | 3,528 | ex | Elixir | lib/benchee/benchmark.ex | kimshrier/benchee | a295b4fd538c1d1b204f2f565daff94fcd53558c | [
"MIT"
] | null | null | null | lib/benchee/benchmark.ex | kimshrier/benchee | a295b4fd538c1d1b204f2f565daff94fcd53558c | [
"MIT"
] | null | null | null | lib/benchee/benchmark.ex | kimshrier/benchee | a295b4fd538c1d1b204f2f565daff94fcd53558c | [
"MIT"
] | null | null | null | defmodule Benchee.Benchmark do
@moduledoc """
Functions related to building and running benchmarking scenarios.
Exposes `benchmark/4` and `measure/3` functions.
"""
alias Benchee.Benchmark.{Runner, Scenario, ScenarioContext}
alias Benchee.Output.BenchmarkPrinter, as: Printer
alias Benchee.Suite
alias B... | 29.647059 | 96 | 0.690476 |
1871fcea6ae63388633e0f2fac875d593ad055fe | 4,319 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/model/binding.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/model/binding.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v2/model/binding.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... | 81.490566 | 1,972 | 0.755499 |
1872273cc94e2d1aa43971c14cb1547ee8a0b3a1 | 296 | ex | Elixir | plug-no-halt/simpleplug/lib/simpleplug.ex | hotpyn/plug-from-bottom-up | e5c08e185f4b4c2c1731d5a0ce2efe80828e1476 | [
"MIT"
] | null | null | null | plug-no-halt/simpleplug/lib/simpleplug.ex | hotpyn/plug-from-bottom-up | e5c08e185f4b4c2c1731d5a0ce2efe80828e1476 | [
"MIT"
] | null | null | null | plug-no-halt/simpleplug/lib/simpleplug.ex | hotpyn/plug-from-bottom-up | e5c08e185f4b4c2c1731d5a0ce2efe80828e1476 | [
"MIT"
] | null | null | null | defmodule Simpleplug do
use Application
require Logger
def start(_type, _args) do
children = [
Plug.Adapters.Cowboy.child_spec(:http, E.Simpleplug, [], port: 80)
]
Logger.info("Started application")
Supervisor.start_link(children, strategy: :one_for_one)
end
end
| 19.733333 | 72 | 0.695946 |
18724b56c6aa324b1e7bb297a6ac027b8d5fda90 | 1,899 | exs | Elixir | apps/playground_db/test/playground_db/posts/posts_test.exs | kimlindholm/elixir_playground | 2a44404996b98d88e40faaee4f6b3a546618a1fd | [
"MIT"
] | null | null | null | apps/playground_db/test/playground_db/posts/posts_test.exs | kimlindholm/elixir_playground | 2a44404996b98d88e40faaee4f6b3a546618a1fd | [
"MIT"
] | null | null | null | apps/playground_db/test/playground_db/posts/posts_test.exs | kimlindholm/elixir_playground | 2a44404996b98d88e40faaee4f6b3a546618a1fd | [
"MIT"
] | null | null | null | defmodule PlaygroundDb.PostsTest do
use PlaygroundDb.DataCase
alias PlaygroundDb.Posts
describe "posts" do
alias PlaygroundDb.Posts.Post
@valid_attrs %{content: "some content"}
@update_attrs %{content: "some updated content"}
@invalid_attrs %{content: nil}
def post_fixture(attrs \\ %{}) do... | 29.215385 | 82 | 0.651922 |
187281929b25613435920dcb95a8cdf2fbb432fd | 675 | ex | Elixir | Microsoft.Azure.Management.Preview.Containers/lib/microsoft/azure/management/preview/containers/model/source_upload_definition.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.Preview.Containers/lib/microsoft/azure/management/preview/containers/model/source_upload_definition.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Preview.Containers/lib/microsoft/azure/management/preview/containers/model/source_upload_definition.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.Preview.Containers.Model.SourceUploadDefinition do
@moduledoc """
The properties of a response to source upload req... | 24.107143 | 106 | 0.724444 |
187288295add9aae8769b25b521436b0f34a647d | 1,842 | ex | Elixir | clients/composer/lib/google_api/composer/v1/model/web_server_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/composer/lib/google_api/composer/v1/model/web_server_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/composer/lib/google_api/composer/v1/model/web_server_config.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... | 39.191489 | 401 | 0.750271 |
1872985c3255281844f827ce399ed2c94ecbda97 | 357 | exs | Elixir | elixir_heat/priv/repo/seeds.exs | tavareshenrique/nlw-heat | 5e735388cf899b7a6796bb7da8d01aeee6abdd69 | [
"MIT"
] | null | null | null | elixir_heat/priv/repo/seeds.exs | tavareshenrique/nlw-heat | 5e735388cf899b7a6796bb7da8d01aeee6abdd69 | [
"MIT"
] | null | null | null | elixir_heat/priv/repo/seeds.exs | tavareshenrique/nlw-heat | 5e735388cf899b7a6796bb7da8d01aeee6abdd69 | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# ElixirHeat.Repo.insert!(%ElixirHeat.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as the... | 29.75 | 61 | 0.711485 |
187299f1f9cf17a46df312d2d288b63c228742fc | 168 | exs | Elixir | elixir/test/rabbitmq_tutorials_test.exs | andraspatka/rabbitmq-demo | 43ee11674f9bc0d45f8006d995ee3123a18baa50 | [
"Unlicense"
] | 1 | 2021-12-19T18:43:33.000Z | 2021-12-19T18:43:33.000Z | elixir/test/rabbitmq_tutorials_test.exs | andraspatka/rabbitmq-demo | 43ee11674f9bc0d45f8006d995ee3123a18baa50 | [
"Unlicense"
] | null | null | null | elixir/test/rabbitmq_tutorials_test.exs | andraspatka/rabbitmq-demo | 43ee11674f9bc0d45f8006d995ee3123a18baa50 | [
"Unlicense"
] | null | null | null | defmodule RabbitmqTutorialsTest do
use ExUnit.Case
doctest RabbitmqTutorials
test "greets the world" do
assert RabbitmqTutorials.hello() == :world
end
end
| 18.666667 | 46 | 0.761905 |
1872d5b433627b4bf551bcae20d96d152c711471 | 6,825 | ex | Elixir | clients/logging/lib/google_api/logging/v2/model/log_metric.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/model/log_metric.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/logging/lib/google_api/logging/v2/model/log_metric.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 97.5 | 1,075 | 0.765714 |
1872df8e6e22e63406e927ece19b333c063b92af | 4,591 | ex | Elixir | core/config/gear.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | core/config/gear.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | core/config/gear.ex | wses-yoshida/antikythera | e108e59d2339edd0b0fad31ad4f41f56df45be55 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2019 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule AntikytheraCore.Config.Gear do
alias Croma.Result, as: R
alias Antikythera.{GearName, SecondsSinceEpoch}
alias Antikythera.Crypto.Aes
alias AntikytheraCore.Path, as: CorePath
alias AntikytheraCore.Ets.ConfigCache.Gear, as: GC... | 40.27193 | 148 | 0.6846 |
1873163d360ea558ab3355aa60553764ac954faa | 2,662 | exs | Elixir | test/controllers/address_controller_test.exs | guofei/embedchat | 6562108acd1d488dde457f28cf01d82b4c5a9bf8 | [
"MIT"
] | 27 | 2016-10-15T12:13:22.000Z | 2021-02-07T20:31:41.000Z | test/controllers/address_controller_test.exs | guofei/embedchat | 6562108acd1d488dde457f28cf01d82b4c5a9bf8 | [
"MIT"
] | null | null | null | test/controllers/address_controller_test.exs | guofei/embedchat | 6562108acd1d488dde457f28cf01d82b4c5a9bf8 | [
"MIT"
] | 4 | 2016-08-21T15:03:29.000Z | 2019-11-22T13:15:29.000Z | defmodule EmbedChatWeb.AddressControllerTest do
use EmbedChatWeb.ConnCase
setup %{conn: conn} do
user = insert_user(username: "test")
# room = insert_room(user, %{})
# address = insert_address(user, room)
conn = guardian_login(conn, user)
{:ok, conn: conn}
end
# test "lists all entries on ... | 37.492958 | 100 | 0.665665 |
187323e7584bdc0c514a06a7df75b2f8a5376721 | 761 | exs | Elixir | hexdocs__pm__phoenix__up_and_running.html/hello_test/priv/repo/migrations/20201009032111_create_users_auth_tables.exs | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | hexdocs__pm__phoenix__up_and_running.html/hello_test/priv/repo/migrations/20201009032111_create_users_auth_tables.exs | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | hexdocs__pm__phoenix__up_and_running.html/hello_test/priv/repo/migrations/20201009032111_create_users_auth_tables.exs | jim80net/elixir_tutorial_projects | db19901a9305b297faa90642bebcc08455621b52 | [
"Unlicense"
] | null | null | null | defmodule HelloTest.Repo.Migrations.CreateUsersAuthTables do
use Ecto.Migration
def change do
execute "CREATE EXTENSION IF NOT EXISTS citext", ""
create table(:users) do
add :email, :citext, null: false
add :hashed_password, :string, null: false
add :confirmed_at, :naive_datetime
t... | 27.178571 | 75 | 0.674113 |
18733816c3a7c2fc6460bdc98f539bbd580f831f | 545 | exs | Elixir | test/models/credentials_test.exs | Gronex/wishlist_manager | be240ebc85a737f31bd64bc913a2c3716827fd26 | [
"MIT"
] | null | null | null | test/models/credentials_test.exs | Gronex/wishlist_manager | be240ebc85a737f31bd64bc913a2c3716827fd26 | [
"MIT"
] | 7 | 2015-12-30T19:43:10.000Z | 2016-01-04T14:38:38.000Z | test/models/credentials_test.exs | Gronex/wishlist_manager | be240ebc85a737f31bd64bc913a2c3716827fd26 | [
"MIT"
] | null | null | null | defmodule WishlistManager.CredentialsTest do
use WishlistManager.ModelCase
alias WishlistManager.Credentials
@valid_attrs %{password_hash: "some content", provider: "some content", user_identifier: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Credentials.chan... | 28.684211 | 106 | 0.761468 |
1873470c9257b7b785252d07ef3fcad1af8dd109 | 1,100 | ex | Elixir | test/support/conn_case.ex | DEvil0000/strichliste_elixir | 33efe808ced1dd3e3650212a506e8c3322277b2b | [
"MIT"
] | null | null | null | test/support/conn_case.ex | DEvil0000/strichliste_elixir | 33efe808ced1dd3e3650212a506e8c3322277b2b | [
"MIT"
] | null | null | null | test/support/conn_case.ex | DEvil0000/strichliste_elixir | 33efe808ced1dd3e3650212a506e8c3322277b2b | [
"MIT"
] | 1 | 2019-05-24T18:18:24.000Z | 2019-05-24T18:18:24.000Z | defmodule StrichlisteElixirWeb.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.
Fina... | 28.205128 | 79 | 0.730909 |
1873530d95df2e7329d30d67c2076c4d7534d607 | 1,189 | ex | Elixir | {{cookiecutter.project_slug}}/apps/{{cookiecutter.phoenix_app_slug}}_web/test/support/conn_case.ex | ibakami/cookiecutter-elixir-phoenix | 672b9e05f40b01a810a073a9712fc3300c396e40 | [
"MIT"
] | 14 | 2019-08-01T07:55:50.000Z | 2021-04-24T09:14:09.000Z | {{cookiecutter.project_slug}}/apps/{{cookiecutter.phoenix_app_slug}}_web/test/support/conn_case.ex | ibakami/cookiecutter-elixir-phoenix | 672b9e05f40b01a810a073a9712fc3300c396e40 | [
"MIT"
] | 1 | 2019-08-02T03:03:40.000Z | 2019-08-02T03:03:40.000Z | {{cookiecutter.project_slug}}/apps/{{cookiecutter.phoenix_app_slug}}_web/test/support/conn_case.ex | ibakami/cookiecutter-elixir-phoenix | 672b9e05f40b01a810a073a9712fc3300c396e40 | [
"MIT"
] | null | null | null | defmodule {{cookiecutter.phoenix_app_module}}Web.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 d... | 29 | 79 | 0.728343 |
18738f7d3512ba6992bb71f9e09ba74d23a1a9a2 | 933 | ex | Elixir | debian/postrm.ex | pagey101/logscript | d184c40258766307f153ea212c7007b169387676 | [
"MIT"
] | null | null | null | debian/postrm.ex | pagey101/logscript | d184c40258766307f153ea212c7007b169387676 | [
"MIT"
] | null | null | null | debian/postrm.ex | pagey101/logscript | d184c40258766307f153ea212c7007b169387676 | [
"MIT"
] | null | null | null | #!/bin/sh
# postrm script for logscript
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abort-install'
#... | 24.552632 | 78 | 0.629153 |
1873d11e566abd4624c617da3f804198219ad35f | 1,350 | exs | Elixir | config/config.exs | nbw/gems | eb4e253af230646563f0ddb307c499a0cab0aa2d | [
"MIT"
] | 63 | 2021-12-02T13:20:03.000Z | 2022-03-02T14:32:19.000Z | config/config.exs | jasonwc/gems | aa94ec613cc1f2ef49d0cc34ab8311419b634d4b | [
"MIT"
] | 1 | 2022-01-03T02:21:58.000Z | 2022-01-03T23:44:28.000Z | config/config.exs | jasonwc/gems | aa94ec613cc1f2ef49d0cc34ab8311419b634d4b | [
"MIT"
] | 5 | 2021-12-02T15:17:10.000Z | 2022-02-02T20:18:53.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
import Config
config :gems,
namespace: GEMS,
github: "https://g... | 30.681818 | 117 | 0.712593 |
1873ed065d9b7968a63c6e295b345f742acc2620 | 77 | ex | Elixir | lib/purple_web/live/board_live/components.ex | knoebber/petaller | 3532db5a3688459127d2427af42e32ca0f494d44 | [
"MIT"
] | null | null | null | lib/purple_web/live/board_live/components.ex | knoebber/petaller | 3532db5a3688459127d2427af42e32ca0f494d44 | [
"MIT"
] | null | null | null | lib/purple_web/live/board_live/components.ex | knoebber/petaller | 3532db5a3688459127d2427af42e32ca0f494d44 | [
"MIT"
] | null | null | null | defmodule PurpleWeb.BoardLive.Components do
use PurpleWeb, :component
end
| 15.4 | 43 | 0.818182 |
1874117517873af66f9c8164396c17cb95b0ad7e | 971 | exs | Elixir | mix.exs | twist-vector/elixir-rational | 029482d5a6c00bd40cc243a9264f6ed4806664c7 | [
"Apache-2.0"
] | 2 | 2015-11-13T22:37:50.000Z | 2020-01-13T21:15:18.000Z | mix.exs | twist-vector/elixir-rational | 029482d5a6c00bd40cc243a9264f6ed4806664c7 | [
"Apache-2.0"
] | null | null | null | mix.exs | twist-vector/elixir-rational | 029482d5a6c00bd40cc243a9264f6ed4806664c7 | [
"Apache-2.0"
] | 2 | 2016-03-18T05:29:20.000Z | 2021-04-16T02:39:47.000Z | defmodule Rational.Mixfile do
use Mix.Project
def project do
[app: :rational,
version: "0.2.0",
description: description,
package: package,
elixir: "~> 1.1",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps,
docs: [extras: []]]
end
de... | 22.581395 | 79 | 0.61586 |
18741d53181fe71bd18d9f79355fbf6d366a9def | 1,648 | ex | Elixir | lib/slack_professor/cache.ex | LastContinue/slack_professor | 091e81db53f20c5250884793d5758d163da0f7e3 | [
"MIT"
] | null | null | null | lib/slack_professor/cache.ex | LastContinue/slack_professor | 091e81db53f20c5250884793d5758d163da0f7e3 | [
"MIT"
] | null | null | null | lib/slack_professor/cache.ex | LastContinue/slack_professor | 091e81db53f20c5250884793d5758d163da0f7e3 | [
"MIT"
] | null | null | null | defmodule SlackProfessor.Cache do
@moduledoc """
GenServer that writes request/response pairs to ETS. Acts as a cache
"""
use GenServer
alias SlackProfessor.Env, as: Env
#Public Facing
@doc """
Convienience for calling :gen_server.start_link for this module
"""
def start_link do
#we should on... | 23.884058 | 72 | 0.64199 |
18744325bb03df8663954d7ac24065e79e327e58 | 1,392 | ex | Elixir | server/lib/blogsley_web/schemas/accounts_schema.ex | blogsley/blogsley-absinthe | 7266f80a0638f8c30c37b37296ba5d78dcf8fb8b | [
"MIT"
] | 3 | 2020-01-23T06:37:18.000Z | 2020-12-05T08:31:00.000Z | server/lib/blogsley_web/schemas/accounts_schema.ex | blogsley/blogsley-absinthe | 7266f80a0638f8c30c37b37296ba5d78dcf8fb8b | [
"MIT"
] | 16 | 2020-04-04T05:13:52.000Z | 2022-03-31T11:19:20.000Z | server/lib/blogsley_web/schemas/accounts_schema.ex | blogsley/blogsley | 7266f80a0638f8c30c37b37296ba5d78dcf8fb8b | [
"MIT"
] | null | null | null | defmodule BlogsleyWeb.Schema.Accounts do
use Absinthe.Schema.Notation
use Absinthe.Relay.Schema.Notation, :modern
#import Absinthe.Resolution.Helpers
alias BlogsleyWeb.Resolvers.AccountsResolver
node object :user do
field :id, non_null(:id)
field :username, :string
field :first_name, :string
... | 22.095238 | 68 | 0.679598 |
18746db9601f2bb43e16ac20993109d442417ebc | 31,716 | ex | Elixir | lib/mint/http1.ex | myobie/mint | 7d0c67be82dfc231e4e8c806c518b64ebd4215cf | [
"Apache-2.0"
] | null | null | null | lib/mint/http1.ex | myobie/mint | 7d0c67be82dfc231e4e8c806c518b64ebd4215cf | [
"Apache-2.0"
] | null | null | null | lib/mint/http1.ex | myobie/mint | 7d0c67be82dfc231e4e8c806c518b64ebd4215cf | [
"Apache-2.0"
] | null | null | null | defmodule Mint.HTTP1 do
@moduledoc """
Processless HTTP client with support for HTTP/1 and HTTP/1.1.
This module provides a data structure that represents an HTTP/1 or HTTP/1.1 connection to
a given server. The connection is represented as an opaque struct `%Mint.HTTP1{}`.
The connection is a data structure ... | 30.792233 | 101 | 0.636713 |
18747229b2489ecc5606fd1be4f9370c55cca3a0 | 1,745 | ex | Elixir | apps/neoscan/lib/neoscan/assets/asset.ex | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 75 | 2017-07-23T02:45:32.000Z | 2021-12-13T11:04:17.000Z | apps/neoscan/lib/neoscan/assets/asset.ex | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 252 | 2017-07-13T19:36:00.000Z | 2021-07-28T18:40:00.000Z | apps/neoscan/lib/neoscan/assets/asset.ex | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 87 | 2017-07-23T02:45:34.000Z | 2022-03-02T14:54:27.000Z | defmodule Neoscan.Asset do
@moduledoc false
use Ecto.Schema
alias Neoscan.Transaction
@primary_key false
schema "assets" do
field(:transaction_id, :integer)
belongs_to(
:transaction,
Transaction,
foreign_key: :transaction_hash,
references: :hash,
type: :binary,
p... | 24.236111 | 98 | 0.621777 |
187488c88e5ced0801becab860d8faec856da72e | 1,495 | ex | Elixir | lib/rmc/file.ex | robbyronk/race-control | f44922cb151c04ccf0e30fa226e49323c537ce2b | [
"Apache-2.0"
] | null | null | null | lib/rmc/file.ex | robbyronk/race-control | f44922cb151c04ccf0e30fa226e49323c537ce2b | [
"Apache-2.0"
] | null | null | null | lib/rmc/file.ex | robbyronk/race-control | f44922cb151c04ccf0e30fa226e49323c537ce2b | [
"Apache-2.0"
] | null | null | null | defmodule Rmc.File do
@moduledoc """
Reads packets from a file and sends them in real time
"""
use GenServer
require Logger
alias Rmc.RaceState
def start_link(parent_pid, filename) do
GenServer.start_link(__MODULE__, {parent_pid, filename})
end
def init({parent_pid, filename}) do
Logger.in... | 29.313725 | 98 | 0.676923 |
1874961b4260d44f297173a03fe256e5428f70c3 | 2,591 | ex | Elixir | lib/ecto/adapters/sql/connection.ex | alanpeabody/ecto | a8f655225b0f35e7f4d223b2d12be613121bb4f8 | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/sql/connection.ex | alanpeabody/ecto | a8f655225b0f35e7f4d223b2d12be613121bb4f8 | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/sql/connection.ex | alanpeabody/ecto | a8f655225b0f35e7f4d223b2d12be613121bb4f8 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Adapters.SQL.Connection do
@moduledoc """
Specifies the behaviour to be implemented by all SQL connections.
"""
@typedoc "The prepared query which is an SQL command"
@type prepared :: String.t
@typedoc "The cache query which is a DBConnection Query"
@type cached :: map
@doc """
Recei... | 29.443182 | 103 | 0.648012 |
1874ccc5763ac154eaa381d79bbf3abf97c3834d | 2,490 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/metro.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/metro.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/metro.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... | 38.307692 | 174 | 0.681928 |
1874e172de733ee89b9f91ea30196abe4ecf9969 | 2,586 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/destination_table_properties.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/big_query/lib/google_api/big_query/v2/model/destination_table_properties.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/big_query/lib/google_api/big_query/v2/model/destination_table_properties.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... | 46.178571 | 331 | 0.729698 |
1874e413398d6ac71287a74f87df4d6a67f7dda9 | 3,122 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/disk_type_aggregated_list.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/disk_type_aggregated_list.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/disk_type_aggregated_list.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.30303 | 393 | 0.709161 |
18750952c5899eddcdab42ba41693ef322c2f518 | 1,813 | exs | Elixir | test/grizzly/zwave/commands/node_provisioning_report_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | test/grizzly/zwave/commands/node_provisioning_report_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | test/grizzly/zwave/commands/node_provisioning_report_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.NodeProvisioningReportTest do
use ExUnit.Case, async: true
alias Grizzly.ZWave.Commands.NodeProvisioningReport
alias GrizzlyTest.Utils
test "creates the command and validates params" do
params = [
seq_number: 0x01,
dsk: Utils.mkdsk(),
meta_extensions: []
... | 28.328125 | 94 | 0.673469 |
18752895c512c568a2f62e4c46766d46b002a18a | 11,305 | exs | Elixir | test/statistics_test.exs | grufino/Numerix | 0487d8a144a44f38c4966589fc4e6aa06a9f44ed | [
"MIT"
] | null | null | null | test/statistics_test.exs | grufino/Numerix | 0487d8a144a44f38c4966589fc4e6aa06a9f44ed | [
"MIT"
] | null | null | null | test/statistics_test.exs | grufino/Numerix | 0487d8a144a44f38c4966589fc4e6aa06a9f44ed | [
"MIT"
] | null | null | null | defmodule Numerix.StatisticsTest do
use ExUnit.Case, async: true
use ExCheck
import ListHelper
alias Numerix.Statistics
test "mean is nil when list is empty" do
refute Statistics.mean([])
end
property "mean times item count equals sum" do
for_all xs in non_empty(list(number())) do
mean = ... | 29.061697 | 95 | 0.616364 |
1875bbaee7469d8471559c34d27104307f91ab11 | 1,314 | ex | Elixir | apps/train_loc/lib/train_loc/logging.ex | paulswartz/commuter_rail_boarding | 6be34c192d6a1ee980307d9f3d027bf4cdafa53f | [
"MIT"
] | 1 | 2022-01-30T20:53:07.000Z | 2022-01-30T20:53:07.000Z | apps/train_loc/lib/train_loc/logging.ex | paulswartz/commuter_rail_boarding | 6be34c192d6a1ee980307d9f3d027bf4cdafa53f | [
"MIT"
] | 47 | 2021-05-05T10:31:05.000Z | 2022-03-30T22:18:14.000Z | apps/train_loc/lib/train_loc/logging.ex | paulswartz/commuter_rail_boarding | 6be34c192d6a1ee980307d9f3d027bf4cdafa53f | [
"MIT"
] | 1 | 2021-05-14T00:35:08.000Z | 2021-05-14T00:35:08.000Z | defmodule TrainLoc.Logging do
@moduledoc """
Standardizes the interface for logging key-values
intended for Splunk.
"""
@doc """
Formats a title and map/keyword_list
intended to be logged to splunk
into an iolist.
"""
def log_string(title, reason) when is_atom(reason) when is_tuple(reason) do
l... | 20.53125 | 77 | 0.682648 |
1875c5abdc4e61db108d4661da68740ab2b634c8 | 1,440 | ex | Elixir | lib/mcc/cache.ex | getong/mcc | 5e4dd398a7f5ac0869aa8208724ee1c4b2a9df40 | [
"Apache-2.0"
] | 13 | 2019-02-28T05:24:35.000Z | 2021-11-10T16:39:07.000Z | lib/mcc/cache.ex | getong/mcc | 5e4dd398a7f5ac0869aa8208724ee1c4b2a9df40 | [
"Apache-2.0"
] | 1 | 2019-03-02T16:20:26.000Z | 2019-03-15T09:18:57.000Z | lib/mcc/cache.ex | getong/mcc | 5e4dd398a7f5ac0869aa8208724ee1c4b2a9df40 | [
"Apache-2.0"
] | 2 | 2019-02-28T00:00:02.000Z | 2019-08-15T13:55:17.000Z | defmodule Mcc.Cache do
@moduledoc """
Some functions about cache.
"""
@doc """
Check cache before operation.
"""
@spec check_cache_before(atom(), atom(), [term()], Keyword.t()) :: term()
def check_cache_before(operate_mod, operate_func, operate_args, cache_opts) do
cache_mod = Keyword.fetch!(cache_... | 28.235294 | 89 | 0.677083 |
1875f1d9ad48b8748d9cb33f83b7f323db400dc4 | 481 | ex | Elixir | api/lib/grook/web/uploaders/post_attachment.ex | ukita/grook | add716bf92fcde35b941ea8067933c28c192e01e | [
"MIT"
] | 3 | 2017-05-22T13:28:13.000Z | 2018-06-29T16:39:19.000Z | api/lib/grook/web/uploaders/post_attachment.ex | ukita/grook | add716bf92fcde35b941ea8067933c28c192e01e | [
"MIT"
] | null | null | null | api/lib/grook/web/uploaders/post_attachment.ex | ukita/grook | add716bf92fcde35b941ea8067933c28c192e01e | [
"MIT"
] | null | null | null | defmodule Grook.Uploader.PostAttachment do
use Arc.Definition
use Arc.Ecto.Definition
@versions [:original]
def filename(_version, {file, _scope}) do
slugify("#{file.file_name}")
end
def storage_dir(_version, {file, scope}) do
"#{Application.fetch_env!(:arc, :storage_dir)}/posts/attachments/#{s... | 21.863636 | 81 | 0.661123 |
1875f4dc14c86ca8ac87791bea4fded810771b15 | 3,580 | ex | Elixir | lib/bigchaindb_ex/condition/ed25519Sha256.ex | octavonce/bigchain_ex | 40f27f16b36d172279d4b021a210c542bfc94def | [
"Apache-2.0"
] | 4 | 2018-04-20T15:39:27.000Z | 2019-04-16T08:40:27.000Z | lib/bigchaindb_ex/condition/ed25519Sha256.ex | octavonce/bigchain_ex | 40f27f16b36d172279d4b021a210c542bfc94def | [
"Apache-2.0"
] | 2 | 2018-03-20T02:41:46.000Z | 2018-04-12T12:43:45.000Z | lib/bigchaindb_ex/condition/ed25519Sha256.ex | octavonce/bigchain_ex | 40f27f16b36d172279d4b021a210c542bfc94def | [
"Apache-2.0"
] | 1 | 2018-04-01T07:46:44.000Z | 2018-04-01T07:46:44.000Z | defmodule BigchaindbEx.Condition.Ed25519Sha256 do
@moduledoc """
ED25519: Ed25519 signature condition.
This condition implements Ed25519 signatures.
ED25519 is assigned the type ID 4. It relies only on the ED25519 feature suite
which corresponds to a bitmask of 0x20.
"""
alias BigchaindbEx.... | 29.833333 | 129 | 0.637709 |
187612aeb02d9c18e8940a983923208b66c8c997 | 46,647 | ex | Elixir | lib/ecto/adapters/postgres/connection.ex | jjl/ecto_sql | ed4f1607f13cf10d4db65ae4e6f85f7c19ae671a | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/postgres/connection.ex | jjl/ecto_sql | ed4f1607f13cf10d4db65ae4e6f85f7c19ae671a | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/postgres/connection.ex | jjl/ecto_sql | ed4f1607f13cf10d4db65ae4e6f85f7c19ae671a | [
"Apache-2.0"
] | null | null | null | if Code.ensure_loaded?(Postgrex) do
defmodule Ecto.Adapters.Postgres.Connection do
@moduledoc false
@default_port 5432
@behaviour Ecto.Adapters.SQL.Connection
## Module and Options
@impl true
def child_spec(opts) do
opts
|> Keyword.put_new(:port, @default_port)
|> Postgrex... | 36.99207 | 154 | 0.600639 |
18761ca2b0db424e0dc3a04e9529a9eeed52d700 | 3,042 | exs | Elixir | test/api/file_test.exs | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 4 | 2020-03-17T00:42:10.000Z | 2021-04-11T16:39:52.000Z | test/api/file_test.exs | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 7 | 2020-03-21T20:22:13.000Z | 2021-12-30T16:32:07.000Z | test/api/file_test.exs | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 4 | 2020-03-25T18:34:49.000Z | 2021-09-13T16:44:00.000Z | defmodule ExClubhouse.Api.FileTest do
use ExUnit.Case, async: true
use Mimic
alias ExClubhouse.Support.ResponseBuilder
alias ExClubhouse.Api.File
alias ExClubhouse.Model
alias ExClubhouse.Model.Input
describe "list/1" do
test "succeeds with the right response" do
HTTPoison
|> expect(:req... | 23.765625 | 81 | 0.529915 |
18762d9edc1933318fd0143d0743828defdf9127 | 898 | ex | Elixir | examples/bank/lib/bank/event_store.ex | Tuxified/elixirconf-eu-2017-talk | 919a39c3864e65a868bafa3ee0a68983c488537c | [
"MIT"
] | 2 | 2017-06-14T02:38:00.000Z | 2017-11-09T21:56:59.000Z | examples/bank/lib/bank/event_store.ex | Tuxified/elixirconf-eu-2017-talk | 919a39c3864e65a868bafa3ee0a68983c488537c | [
"MIT"
] | null | null | null | examples/bank/lib/bank/event_store.ex | Tuxified/elixirconf-eu-2017-talk | 919a39c3864e65a868bafa3ee0a68983c488537c | [
"MIT"
] | null | null | null | defmodule Bank.EventStore do
@moduledoc """
Using ets for an event store is fine for a demo, but the data
will be discarded when the creating process dies, and there is no
automatic garbage collection for ets tables.
"""
@table_id __MODULE__
def init do
:ets.new(@table_id, [:public, :named_table])
... | 22.45 | 73 | 0.675947 |
18762fff74c9d0c304ab5e8eb10a997234aaaabc | 963 | ex | Elixir | clients/source_repo/lib/google_api/source_repo/v1/request_builder.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/source_repo/lib/google_api/source_repo/v1/request_builder.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/source_repo/lib/google_api/source_repo/v1/request_builder.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 37.038462 | 77 | 0.764278 |
1876621781be7743680cec250768796bc7d48399 | 706 | ex | Elixir | lib/tune_web/views/player_view.ex | wojtekmach/tune | 8b38bc629eeafb35aae920ac59b986323de800eb | [
"MIT"
] | 206 | 2020-08-23T17:50:03.000Z | 2022-03-28T04:39:01.000Z | lib/tune_web/views/player_view.ex | wojtekmach/tune | 8b38bc629eeafb35aae920ac59b986323de800eb | [
"MIT"
] | 112 | 2020-08-21T08:26:38.000Z | 2022-03-31T06:11:06.000Z | lib/tune_web/views/player_view.ex | wojtekmach/tune | 8b38bc629eeafb35aae920ac59b986323de800eb | [
"MIT"
] | 15 | 2020-08-25T02:30:23.000Z | 2021-12-16T14:19:35.000Z | defmodule TuneWeb.PlayerView do
@moduledoc false
use TuneWeb, :view
alias Tune.Spotify.Schema.{Episode, Track}
@spec name(Track.t() | Episode.t()) :: String.t()
defp name(%Episode{name: name}), do: name
defp name(%Track{name: name}), do: name
@spec authors(Track.t() | Episode.t(), Phoenix.Socket.t()) :... | 26.148148 | 74 | 0.648725 |
1876705d2290e9477d0379c1f298eaad1bc380f7 | 10,362 | exs | Elixir | test/postoffice/messaging_test.exs | IgorRodriguez/postoffice | 9012193e0780f2403bd3db90b8f6258656780fee | [
"Apache-2.0"
] | null | null | null | test/postoffice/messaging_test.exs | IgorRodriguez/postoffice | 9012193e0780f2403bd3db90b8f6258656780fee | [
"Apache-2.0"
] | null | null | null | test/postoffice/messaging_test.exs | IgorRodriguez/postoffice | 9012193e0780f2403bd3db90b8f6258656780fee | [
"Apache-2.0"
] | null | null | null | defmodule Postoffice.MessagingTest do
use Postoffice.DataCase
alias Postoffice.Messaging
alias Postoffice.Messaging.Message
alias Postoffice.Fixtures
@second_topic_attrs %{
name: "test2",
origin_host: "example2.com"
}
@disabled_publisher_attrs %{
active: false,
target: "http://fake.targ... | 35.731034 | 159 | 0.725632 |
18768b04d209678fa00f360af94301a176262f4e | 913 | exs | Elixir | config/config.exs | allen-garvey/artour | fce27b234d11a3e434c897b5fa3178b7c126245f | [
"MIT"
] | null | null | null | config/config.exs | allen-garvey/artour | fce27b234d11a3e434c897b5fa3178b7c126245f | [
"MIT"
] | 2 | 2021-03-09T00:39:53.000Z | 2021-05-08T00:42:23.000Z | config/config.exs | allen-garvey/artour | fce27b234d11a3e434c897b5fa3178b7c126245f | [
"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 :artour,
ecto_repos: [Artour.Repo]
# Co... | 33.814815 | 86 | 0.768894 |
1876a730fdd735116f005845132f4c13d3fcdb31 | 1,672 | ex | Elixir | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/failure_policy.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/failure_policy.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_functions/lib/google_api/cloud_functions/v1/model/failure_policy.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.833333 | 157 | 0.747608 |
1876ebdfb1fb8a8a5ca1259ef7f396c8a7523f90 | 6,582 | ex | Elixir | apps/mishka_html/lib/mishka_html_web/live/components/admin/blog/post/search_component .ex | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 35 | 2021-06-26T09:05:50.000Z | 2022-03-30T15:41:22.000Z | apps/mishka_html/lib/mishka_html_web/live/components/admin/blog/post/search_component .ex | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 101 | 2021-01-01T09:54:07.000Z | 2022-03-28T10:02:24.000Z | apps/mishka_html/lib/mishka_html_web/live/components/admin/blog/post/search_component .ex | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 8 | 2021-01-17T17:08:07.000Z | 2022-03-11T16:12:06.000Z | defmodule MishkaHtmlWeb.Admin.Blog.Post.SearchComponent do
use MishkaHtmlWeb, :live_component
def render(assigns) do
~L"""
<div class="clearfix"></div>
<div class="col space30"> </div>
<hr>
<div class="clearfix"></div>
<div class="col space30"> </div>
<h2 class="vazir">
... | 60.385321 | 198 | 0.579307 |
18773677fa5556d5d8b1e9ee1bee4a40cb0eaa28 | 2,159 | exs | Elixir | test/lib/spender/wish_list/item_test.exs | LittleKidogo/Budgetinization | eae6dd62208ec7fb43c8c212f40611f8635205d5 | [
"MIT"
] | 2 | 2018-02-27T06:29:59.000Z | 2018-06-09T16:53:49.000Z | test/lib/spender/wish_list/item_test.exs | LittleKidogo/Budgetinization | eae6dd62208ec7fb43c8c212f40611f8635205d5 | [
"MIT"
] | 94 | 2018-02-22T06:03:19.000Z | 2018-06-28T14:30:31.000Z | test/lib/spender/wish_list/item_test.exs | LittleKidogo/Budgetinization | eae6dd62208ec7fb43c8c212f40611f8635205d5 | [
"MIT"
] | 1 | 2020-03-04T19:41:06.000Z | 2020-03-04T19:41:06.000Z | defmodule Spender.WishList.ItemTest do
use Spender.DataCase
alias Spender.{
Planning,
WishList.Item
}
@valid_attrs %{name: "Soap", price: 10.3}
@invalid_attrs %{name: "Soap", }
describe "item changesets" do
test "should be valid with correct input" do
changeset = Item.changeset(%Item{}, ... | 34.269841 | 73 | 0.694766 |
1877752ed7b6c151143d803535ae704a166577d1 | 1,037 | ex | Elixir | apps/grapevine/lib/metrics/game_instrumenter.ex | oestrich/grapevine | 7fb745a3a6e4eb68bd761baa190b2df32fa1f73d | [
"MIT"
] | 107 | 2018-10-05T18:20:32.000Z | 2022-02-28T04:02:50.000Z | apps/grapevine/lib/metrics/game_instrumenter.ex | oestrich/grapevine | 7fb745a3a6e4eb68bd761baa190b2df32fa1f73d | [
"MIT"
] | 33 | 2018-10-05T14:11:18.000Z | 2022-02-10T22:19:18.000Z | apps/grapevine/lib/metrics/game_instrumenter.ex | oestrich/grapevine | 7fb745a3a6e4eb68bd761baa190b2df32fa1f73d | [
"MIT"
] | 18 | 2019-02-03T03:08:20.000Z | 2021-12-28T04:29:36.000Z | defmodule Metrics.GameInstrumenter do
@moduledoc """
Instrumentation for games
"""
use Prometheus.Metric
alias Grapevine.Presence
@doc false
def setup() do
Gauge.declare(
name: :grapevine_game_online_count,
help: "Number of games connected to grapevine"
)
Counter.declare(
... | 24.116279 | 89 | 0.67406 |
1877da7fd3e4307e5d7ab7aeb0d658bda7e8da56 | 1,412 | ex | Elixir | test/support/model_case.ex | randomlabs/news | 6aa200858bac69613af1de91420c6425f4517853 | [
"MIT"
] | 3 | 2015-08-12T20:45:57.000Z | 2015-10-26T09:20:10.000Z | test/support/model_case.ex | randomlabs/news | 6aa200858bac69613af1de91420c6425f4517853 | [
"MIT"
] | 15 | 2015-08-12T16:20:42.000Z | 2015-10-12T16:12:15.000Z | test/support/model_case.ex | randomlabs/news | 6aa200858bac69613af1de91420c6425f4517853 | [
"MIT"
] | 1 | 2015-08-20T17:43:10.000Z | 2015-08-20T17:43:10.000Z | defmodule News.ModelCase do
@moduledoc """
This module defines the test case to be used by
model tests.
You may define functions here to be used as helpers in
your model tests. See `errors_on/2`'s definition as reference.
Finally, if the test case interacts with the database,
it cannot be async. For thi... | 26.148148 | 81 | 0.688385 |
1877dd79cf601adf0c9591a1045455e01b5b0577 | 2,195 | ex | Elixir | lib/symbolic_expression/canonical/writer.ex | emacstheviking/SymbolicExpression | c19c41007a8579c5f423ab1a6d9148a4209f1c60 | [
"MIT"
] | 8 | 2015-09-08T00:22:19.000Z | 2020-08-03T09:27:42.000Z | lib/symbolic_expression/canonical/writer.ex | emacstheviking/SymbolicExpression | c19c41007a8579c5f423ab1a6d9148a4209f1c60 | [
"MIT"
] | null | null | null | lib/symbolic_expression/canonical/writer.ex | emacstheviking/SymbolicExpression | c19c41007a8579c5f423ab1a6d9148a4209f1c60 | [
"MIT"
] | 3 | 2016-06-06T13:43:55.000Z | 2018-05-08T07:56:59.000Z | defmodule SymbolicExpression.Canonical.Writer do
@doc """
Converts the abstract representation of an s-expression into a string holding
an s-expression in canonical form. Returns `{:ok, result}` on success,
`{:error, reason}` otherwise.
## Example
iex> alias SymbolicExpression.Canonical.Writer
... | 28.881579 | 80 | 0.610023 |
187814e721d6b4030948b0f363540254443479fb | 5,466 | ex | Elixir | lib/exq/worker/server.ex | rraub/exq | 1ba253fd8923c50033037601376a63ace2063be0 | [
"Apache-2.0"
] | null | null | null | lib/exq/worker/server.ex | rraub/exq | 1ba253fd8923c50033037601376a63ace2063be0 | [
"Apache-2.0"
] | null | null | null | lib/exq/worker/server.ex | rraub/exq | 1ba253fd8923c50033037601376a63ace2063be0 | [
"Apache-2.0"
] | null | null | null | defmodule Exq.Worker.Server do
@moduledoc """
Worker process is responsible for the parsing and execution of a Job. It then
broadcasts results to Stats / Manager.
Currently uses the `terminate` callback to track job success/failure .
## Initialization:
* `job_serialized` - Full JSON payload of the Job.
... | 26.278846 | 100 | 0.604098 |
187818f0eaccec8b147a0663f33fa24d4917ebe7 | 1,182 | exs | Elixir | mix.exs | GuillaumeMilan/reaxt | c9dfc4cfb7496f2e7d9dac50a46cee800bbe63c0 | [
"MIT"
] | null | null | null | mix.exs | GuillaumeMilan/reaxt | c9dfc4cfb7496f2e7d9dac50a46cee800bbe63c0 | [
"MIT"
] | null | null | null | mix.exs | GuillaumeMilan/reaxt | c9dfc4cfb7496f2e7d9dac50a46cee800bbe63c0 | [
"MIT"
] | null | null | null | defmodule Reaxt.Mixfile do
use Mix.Project
def project do
[app: :reaxt,
version: "2.0.1",
description: description(),
package: package(),
elixir: ">= 1.0.0",
deps: deps()]
end
def application do
[applications: [:logger, :poolboy, :exos],
mod: {Reaxt.App,[]},
env: [
... | 25.148936 | 86 | 0.582064 |
18785dc3a4dfbee79558fddb83c8b054dd7ecace | 1,544 | exs | Elixir | mix.exs | IanLuites/httpx | b95498ceff6ef68b655dd7ed9538d672ffcf7b90 | [
"MIT"
] | 3 | 2018-01-26T11:35:51.000Z | 2019-10-25T15:26:37.000Z | mix.exs | IanLuites/httpx | b95498ceff6ef68b655dd7ed9538d672ffcf7b90 | [
"MIT"
] | 2 | 2019-01-02T06:57:15.000Z | 2019-04-28T10:15:56.000Z | mix.exs | IanLuites/httpx | b95498ceff6ef68b655dd7ed9538d672ffcf7b90 | [
"MIT"
] | 4 | 2018-12-04T11:50:47.000Z | 2019-11-07T15:46:00.000Z | defmodule Httpx.Mixfile do
use Mix.Project
def project do
[
app: :httpx,
description: "Simple Elixir library with HTTP[S] helpers.",
version: "0.1.4",
elixir: "~> 1.4",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
package... | 20.864865 | 65 | 0.502591 |
187864f20ee8473f4dae447e5b8800e885d82182 | 561 | ex | Elixir | reflow_controller/lib/reflow_controller/web/router.ex | harmon25/ReflowToaster | e38bb6dcff2be5a738b432897c4f46628c20cf26 | [
"Apache-2.0"
] | null | null | null | reflow_controller/lib/reflow_controller/web/router.ex | harmon25/ReflowToaster | e38bb6dcff2be5a738b432897c4f46628c20cf26 | [
"Apache-2.0"
] | null | null | null | reflow_controller/lib/reflow_controller/web/router.ex | harmon25/ReflowToaster | e38bb6dcff2be5a738b432897c4f46628c20cf26 | [
"Apache-2.0"
] | null | null | null | defmodule ReflowController.Web.Router do
use ReflowController.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", Ref... | 20.777778 | 57 | 0.695187 |
187883c693722b1a8cc42befd42259c55a53a7f0 | 1,080 | exs | Elixir | clients/policy_simulator/test/test_helper.exs | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/policy_simulator/test/test_helper.exs | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/policy_simulator/test/test_helper.exs | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30 | 83 | 0.742593 |
1878ea9c8bd773539a31b2aefcf654b5345bbf4d | 838 | ex | Elixir | lib/nabo/front_matter.ex | bechanh5/nabo | 3e406a5875622a8f702649ced30b39a296039f71 | [
"MIT"
] | null | null | null | lib/nabo/front_matter.ex | bechanh5/nabo | 3e406a5875622a8f702649ced30b39a296039f71 | [
"MIT"
] | null | null | null | lib/nabo/front_matter.ex | bechanh5/nabo | 3e406a5875622a8f702649ced30b39a296039f71 | [
"MIT"
] | null | null | null | defmodule Nabo.FrontMatter do
@moduledoc false
alias Nabo.Metadata
def from_string(string) when is_binary(string) do
string
|> split_parts()
|> parse_parts()
end
defp parse_parts([meta_string, excerpt, body]) do
trimmed_excerpt = String.trim(excerpt)
trimmed_body = String.trim(body)
... | 25.393939 | 81 | 0.667064 |
1879610aaf1477932fb482b4ce6c2866ea435a93 | 803 | exs | Elixir | test/scenic/primitive/style/join_test.exs | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | test/scenic/primitive/style/join_test.exs | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | test/scenic/primitive/style/join_test.exs | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on June 18, 2018.
# Copyright © 2018 Kry10 Industries. All rights reserved.
#
defmodule Scenic.Primitive.Style.JoinTest do
use ExUnit.Case, async: true
doctest Scenic
alias Scenic.Primitive.Style
alias Scenic.Primitive.Style.Join
# ============================================... | 21.702703 | 80 | 0.62391 |
18799357389312ceedb581deafd8ad774759d26d | 605 | exs | Elixir | test/errol/middleware/retry_test.exs | ceritium/errol | cf2d50795dc7278cca7a6d158aaaa39713cbe493 | [
"MIT"
] | 23 | 2018-04-16T20:03:54.000Z | 2018-09-03T20:08:19.000Z | test/errol/middleware/retry_test.exs | ceritium/errol | cf2d50795dc7278cca7a6d158aaaa39713cbe493 | [
"MIT"
] | null | null | null | test/errol/middleware/retry_test.exs | ceritium/errol | cf2d50795dc7278cca7a6d158aaaa39713cbe493 | [
"MIT"
] | 1 | 2018-09-21T09:56:13.000Z | 2018-09-21T09:56:13.000Z | defmodule Errol.Middleware.RetryTest do
use ExUnit.Case, async: true
doctest Errol.Middleware.Retry
alias Errol.Message
alias Errol.Middleware.Retry
describe "retry_once/2" do
test "returns {:ok, message} when message is already redelivered" do
message = %Message{meta: %{redelivered: true}}
... | 27.5 | 74 | 0.694215 |
1879a8632bb2dcfbf829481fe4f48941f34863db | 4,535 | ex | Elixir | lib/codes/codes_l49.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_l49.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_l49.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_L49 do
alias IcdCode.ICDCode
def _L490 do
%ICDCode{full_code: "L490",
category_code: "L49",
short_code: "0",
full_name: "Exfoliation due to erythematous condition involving less than 10 percent of body surface",
short_name: "Exfoliation due ... | 46.752577 | 115 | 0.684895 |
1879f73d28df776e7360ba796b4e4abb6d50feed | 1,028 | ex | Elixir | lib/email_address_strain.ex | Soimil/email_address_strain | a3f7b8f50aa46cca4bf62072c56cedfc1dfc125b | [
"MIT"
] | null | null | null | lib/email_address_strain.ex | Soimil/email_address_strain | a3f7b8f50aa46cca4bf62072c56cedfc1dfc125b | [
"MIT"
] | null | null | null | lib/email_address_strain.ex | Soimil/email_address_strain | a3f7b8f50aa46cca4bf62072c56cedfc1dfc125b | [
"MIT"
] | null | null | null | defmodule EmailAddressStrain do
@moduledoc """
EmailAddressStrain.
Library thanks to which you will be able to validate the syntax of email address and whether the address is real.
"""
@email_regex ~r/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]... | 26.358974 | 169 | 0.611868 |
1879f9d8d8c83e3bde997d5fda285e42dfb4ebd9 | 2,090 | ex | Elixir | apps/omg_api/lib/ethereum_client_monitor.ex | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | null | null | null | apps/omg_api/lib/ethereum_client_monitor.ex | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | null | null | null | apps/omg_api/lib/ethereum_client_monitor.ex | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | 2 | 2020-06-07T11:14:54.000Z | 2020-08-02T07:36:32.000Z | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 32.153846 | 102 | 0.708612 |
187a2d780d919b02e5678996b8dbafb4dca59d14 | 92 | exs | Elixir | test/test_helper.exs | ServusGameServer/Servus_Protobuf | cb870b7dccb6676e71045e231fd31547d63efa74 | [
"Apache-2.0"
] | 2 | 2018-10-19T06:14:08.000Z | 2018-11-23T00:56:09.000Z | test/test_helper.exs | ServusGameServer/Servus_Protobuf | cb870b7dccb6676e71045e231fd31547d63efa74 | [
"Apache-2.0"
] | null | null | null | test/test_helper.exs | ServusGameServer/Servus_Protobuf | cb870b7dccb6676e71045e231fd31547d63efa74 | [
"Apache-2.0"
] | null | null | null | ExUnit.configure(formatters: [JUnitFormatter, ExUnit.CLIFormatter], seed: 0)
ExUnit.start()
| 30.666667 | 76 | 0.793478 |
187a47de589f61c85e9c4bd34b6e4c7b5a31377f | 648 | exs | Elixir | config/dev.exs | iboard/px.iboard.cc | f7df724931b977e47e60ab8cab822f69df7e77f8 | [
"MIT"
] | 2 | 2016-07-28T11:42:09.000Z | 2016-09-12T13:56:53.000Z | config/dev.exs | iboard/px.iboard.cc | f7df724931b977e47e60ab8cab822f69df7e77f8 | [
"MIT"
] | null | null | null | config/dev.exs | iboard/px.iboard.cc | f7df724931b977e47e60ab8cab822f69df7e77f8 | [
"MIT"
] | null | null | null | use Mix.Config
config :iboard, Iboard.Endpoint,
http: [port: 4000],
debug_errors: true,
code_reloader: true,
check_origin: false,
watchers: [node: ["node_modules/brunch/bin/brunch", "watch", "--stdin"]]
config :iboard, Iboard.Endpoint,
live_reload: [
patterns: [
~r{priv/static/.*(js|css|png|jpeg... | 22.344828 | 74 | 0.635802 |
187a711dfceedeec2885aa0206faaac22177a829 | 2,088 | ex | Elixir | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/set_iam_policy_request.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/set_iam_policy_request.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/set_iam_policy_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... | 36.631579 | 162 | 0.728448 |
187a824d07b150fe479efb3bca1c56bf1bd09564 | 2,085 | ex | Elixir | 2021/day09/lib/day09.ex | faried/advent | 1d3817a3c305963ff22e844630bbafd3af242d3e | [
"MIT"
] | null | null | null | 2021/day09/lib/day09.ex | faried/advent | 1d3817a3c305963ff22e844630bbafd3af242d3e | [
"MIT"
] | null | null | null | 2021/day09/lib/day09.ex | faried/advent | 1d3817a3c305963ff22e844630bbafd3af242d3e | [
"MIT"
] | null | null | null | defmodule Day09 do
@moduledoc """
Documentation for `Day09`.
"""
def part1(input) do
maxrows = Enum.count(input)
maxcols = Enum.count(Enum.at(input, 0))
input
|> to_map()
|> find_lows(maxrows, maxcols, :heights)
|> Enum.map(&(&1 + 1))
|> Enum.sum()
end
def part2(input) do
... | 26.392405 | 91 | 0.5506 |
187a869efabbba882d0e1acc0003ec38f66b33f5 | 4,154 | exs | Elixir | priv/templates/phx.gen.tailwind/controller_test.exs | tannineo/phx_tailwind_generators | 317e472dc65d74c27cb0981d5c38b05ed063c42b | [
"MIT"
] | 118 | 2021-01-18T10:55:23.000Z | 2022-03-09T22:22:51.000Z | priv/templates/phx.gen.tailwind/controller_test.exs | tannineo/phx_tailwind_generators | 317e472dc65d74c27cb0981d5c38b05ed063c42b | [
"MIT"
] | 16 | 2021-02-20T19:22:45.000Z | 2021-06-14T13:59:01.000Z | priv/templates/phx.gen.tailwind/controller_test.exs | tannineo/phx_tailwind_generators | 317e472dc65d74c27cb0981d5c38b05ed063c42b | [
"MIT"
] | 8 | 2020-08-19T13:06:39.000Z | 2021-08-11T17:18:34.000Z | defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web_namespace, schema.alias) %>ControllerTest do
use <%= inspect context.web_module %>.ConnCase
alias <%= inspect context.module %>
@create_attrs <%= inspect schema.params.create %>
@update_attrs <%= inspect schema.params.update %>
... | 46.155556 | 141 | 0.631921 |
187aad671425ea456e9b8f5f3f2ab30664cd84d4 | 183 | exs | Elixir | priv/repo/migrations/20160427150404_add_bytes_to_episodes.exs | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | 2,599 | 2016-10-25T15:02:53.000Z | 2022-03-26T02:34:42.000Z | priv/repo/migrations/20160427150404_add_bytes_to_episodes.exs | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | 253 | 2016-10-25T20:29:24.000Z | 2022-03-29T21:52:36.000Z | priv/repo/migrations/20160427150404_add_bytes_to_episodes.exs | soleo/changelog.com | 621c7471b23379e1cdd4a0c960b66ed98d8d1a53 | [
"MIT"
] | 298 | 2016-10-25T15:18:31.000Z | 2022-01-18T21:25:52.000Z | defmodule Changelog.Repo.Migrations.AddBytesToEpisodes do
use Ecto.Migration
def change do
alter table(:episodes) do
add :bytes, :integer, default: 0
end
end
end
| 18.3 | 57 | 0.715847 |
187aca0c3d6a5a84bf735da22d6b219edbba0210 | 8,051 | ex | Elixir | lib/json_view.ex | bluzky/json_view | cf3d9034405af47f86f04aa81b6a11267434ec1b | [
"MIT"
] | 21 | 2021-07-10T13:14:18.000Z | 2022-01-28T10:42:46.000Z | lib/json_view.ex | bluzky/json_view | cf3d9034405af47f86f04aa81b6a11267434ec1b | [
"MIT"
] | null | null | null | lib/json_view.ex | bluzky/json_view | cf3d9034405af47f86f04aa81b6a11267434ec1b | [
"MIT"
] | null | null | null | defmodule JsonView do
@moduledoc """
Normally, you query data from database then render to JSON and return to client, and you might want to:
- Keep the original value
- Return value in a new format, or return some calculated data
- Render relationships that defined by Ecto schema
JsonView helps to render ... | 30.965385 | 208 | 0.655571 |
187adf7536338f039db4d992166cd81b15e4070d | 6,578 | ex | Elixir | lib/oban/queue/executor.ex | nathanl/oban | e7b22c8fb5a9f7fc6fdeecdfdff3c2eb9b4cb39b | [
"Apache-2.0"
] | null | null | null | lib/oban/queue/executor.ex | nathanl/oban | e7b22c8fb5a9f7fc6fdeecdfdff3c2eb9b4cb39b | [
"Apache-2.0"
] | null | null | null | lib/oban/queue/executor.ex | nathanl/oban | e7b22c8fb5a9f7fc6fdeecdfdff3c2eb9b4cb39b | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Queue.Executor do
@moduledoc false
alias Oban.{
Breaker,
Config,
CrashError,
Job,
PerformError,
Telemetry,
TimeoutError,
Worker
}
alias Oban.Queue.Engine
require Logger
@type success :: {:success, Job.t()}
@type failure :: {:failure, Job.t(), Worker.t(), ... | 24.273063 | 94 | 0.58346 |
187b2afd2aeae77f5fa2b141dfe3683fc85eb61e | 1,972 | exs | Elixir | api/config/prod.exs | cnole/phoenix-react-slack-clone | 852cc32ee157a18c93ddd1eb627ddf61bc294cda | [
"MIT"
] | null | null | null | api/config/prod.exs | cnole/phoenix-react-slack-clone | 852cc32ee157a18c93ddd1eb627ddf61bc294cda | [
"MIT"
] | null | null | null | api/config/prod.exs | cnole/phoenix-react-slack-clone | 852cc32ee157a18c93ddd1eb627ddf61bc294cda | [
"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... | 31.806452 | 67 | 0.710953 |
187b2d9709c6b1959e521a758c83ccae58f4048b | 2,481 | ex | Elixir | clients/replica_pool/lib/google_api/replica_pool/v1beta1/model/action.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/replica_pool/lib/google_api/replica_pool/v1beta1/model/action.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/replica_pool/lib/google_api/replica_pool/v1beta1/model/action.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 ... | 46.811321 | 414 | 0.741636 |
187b71e1711fdbe3a8aec32c82e78eb29010d6ea | 193 | ex | Elixir | lib/footy.ex | glennr/footy | dff810c108e0c77b60c55c056eeb661ddcf2e853 | [
"MIT"
] | null | null | null | lib/footy.ex | glennr/footy | dff810c108e0c77b60c55c056eeb661ddcf2e853 | [
"MIT"
] | null | null | null | lib/footy.ex | glennr/footy | dff810c108e0c77b60c55c056eeb661ddcf2e853 | [
"MIT"
] | null | null | null | defmodule Footy do
@moduledoc """
Documentation for Footy.
"""
@doc """
Hello world.
## Examples
iex> Footy.hello()
:world
"""
def hello do
:world
end
end
| 10.157895 | 26 | 0.549223 |
187baafc7155627b6013796317032ff89dace706 | 6,068 | ex | Elixir | lib/nebulex/cache/entry.ex | alexandrubagu/nebulex | c8870a91644545f7a10a6af825ef6822a40fadf4 | [
"MIT"
] | 845 | 2017-02-14T14:16:11.000Z | 2022-03-30T04:13:08.000Z | lib/nebulex/cache/entry.ex | alexandrubagu/nebulex | c8870a91644545f7a10a6af825ef6822a40fadf4 | [
"MIT"
] | 146 | 2017-04-29T16:11:14.000Z | 2022-03-29T08:49:05.000Z | lib/nebulex/cache/entry.ex | alexandrubagu/nebulex | c8870a91644545f7a10a6af825ef6822a40fadf4 | [
"MIT"
] | 50 | 2017-08-17T13:44:06.000Z | 2022-03-30T11:29:59.000Z | defmodule Nebulex.Cache.Entry do
@moduledoc false
import Nebulex.Helpers
alias Nebulex.{Adapter, Time}
# Inline common instructions
@compile {:inline, get_ttl: 1}
@doc """
Implementation for `c:Nebulex.Cache.get/2`.
"""
def get(name, key, opts) do
Adapter.with_meta(name, & &1.get(&2, key, opts... | 24.566802 | 95 | 0.610415 |
187bb0550572a5b0d1f4cac9e14f10a6c1416d3d | 369 | ex | Elixir | plugins/one_wiki/lib/one_wiki_web/flex_tab/defaults.ex | smpallen99/ucx_ucc | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 11 | 2017-05-15T18:35:05.000Z | 2018-02-05T18:27:40.000Z | plugins/one_wiki/lib/one_wiki_web/flex_tab/defaults.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 15 | 2017-11-27T10:38:05.000Z | 2018-02-09T20:42:08.000Z | plugins/one_wiki/lib/one_wiki_web/flex_tab/defaults.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule OneWikiWeb.FlexBar.Defaults do
@moduledoc """
Adds all the Wiki Flex Tab buttons.
"""
use InfinityOneWeb.Gettext
@doc """
Add the Wiki Flex Tab Buttons.
"""
def add_buttons do
[Info, MembersList]
|> Enum.each(fn module ->
OneWikiWeb.FlexBar.Tab
|> Module.concat(module)
... | 19.421053 | 40 | 0.634146 |
187bcbaa5f5139f148c48687ec29d596d41bf607 | 2,206 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/attach_tenant_project_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/attach_tenant_project_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/attach_tenant_project_request.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... | 39.392857 | 265 | 0.753853 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.