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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33401f5e5b8aae933433998d4104942b47b4bfa5 | 2,124 | exs | Elixir | test/phoenix_live_view_test.exs | simonprev/phoenix_live_view | 55a54726650e53ac68c30fc9b49d2a5895ce2053 | [
"MIT"
] | null | null | null | test/phoenix_live_view_test.exs | simonprev/phoenix_live_view | 55a54726650e53ac68c30fc9b49d2a5895ce2053 | [
"MIT"
] | null | null | null | test/phoenix_live_view_test.exs | simonprev/phoenix_live_view | 55a54726650e53ac68c30fc9b49d2a5895ce2053 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveViewUnitTest do
use ExUnit.Case, async: true
import Phoenix.LiveView
alias Phoenix.LiveView.{Utils, Socket}
alias Phoenix.LiveViewTest.Endpoint
@socket Utils.configure_socket(%Socket{endpoint: Endpoint}, %{connect_params: %{}})
describe "get_connect_params" do
test "raises when... | 32.181818 | 86 | 0.646422 |
33402690c06bd2da6ef35d632ebccc2a331b79da | 1,693 | ex | Elixir | lib/floki/filter_out.ex | danhuynhdev/floki | 6700c14f842765eb5d1661af18fd686e87d1ddd7 | [
"MIT"
] | null | null | null | lib/floki/filter_out.ex | danhuynhdev/floki | 6700c14f842765eb5d1661af18fd686e87d1ddd7 | [
"MIT"
] | null | null | null | lib/floki/filter_out.ex | danhuynhdev/floki | 6700c14f842765eb5d1661af18fd686e87d1ddd7 | [
"MIT"
] | null | null | null | defmodule Floki.FilterOut do
@moduledoc false
alias Floki.{HTMLTree, Finder}
# Helper functions for filtering out a specific element from the tree.
@type html_tree :: tuple | list
@type selector :: :comment | Finder.selector()
@spec filter_out(html_tree, selector) :: tuple | list
def filter_out(html_... | 25.268657 | 79 | 0.619019 |
3340321be12d697eebd3e8d84c49c5035a10eb64 | 2,485 | ex | Elixir | lib/client/default/title_wide_data_management.ex | skylerparr/playfab_ex | b6a049511bc3466cea5959797425bffc099239de | [
"MIT"
] | 1 | 2021-12-21T14:22:12.000Z | 2021-12-21T14:22:12.000Z | lib/client/default/title_wide_data_management.ex | skylerparr/playfab_ex | b6a049511bc3466cea5959797425bffc099239de | [
"MIT"
] | null | null | null | lib/client/default/title_wide_data_management.ex | skylerparr/playfab_ex | b6a049511bc3466cea5959797425bffc099239de | [
"MIT"
] | null | null | null | defmodule PlayfabEx.Client.Default.TitleWideDataManagement do
@doc """
Retrieves the specified version of the title's catalog of virtual goods, including all defined properties
@link https://api.playfab.com/documentation/client/method/GetCatalogItems
"""
@spec get_catalog_items(map()) :: {:ok, map} | {:erro... | 29.939759 | 171 | 0.689738 |
334032f2a3f4e74313650602c3483325c23f7efe | 785 | exs | Elixir | backendElixir/config/config.exs | deibsoncogo/NLW7Impulse | d530204a01085668d29e7bc303ba6263783283a1 | [
"MIT"
] | null | null | null | backendElixir/config/config.exs | deibsoncogo/NLW7Impulse | d530204a01085668d29e7bc303ba6263783283a1 | [
"MIT"
] | null | null | null | backendElixir/config/config.exs | deibsoncogo/NLW7Impulse | d530204a01085668d29e7bc303ba6263783283a1 | [
"MIT"
] | null | null | null | import Config
config :backendElixir,
ecto_repos: [BackendElixir.Repo]
config :backendElixir, BackendElixirWeb.Endpoint,
url: [host: "localhost"],
render_errors: [view: BackendElixirWeb.ErrorView, accepts: ~w(json), layout: false],
pubsub_server: BackendElixir.PubSub,
live_view: [signing_salt: "AReS4fZt"]
#... | 29.074074 | 86 | 0.742675 |
334047dd769bca5324e281637e77f57e92df485f | 970 | ex | Elixir | test/support/channel_case.ex | Invaern/planning-poker | e7a53bdc0e5b01aaf4574cb7190529021517ba55 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | Invaern/planning-poker | e7a53bdc0e5b01aaf4574cb7190529021517ba55 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | Invaern/planning-poker | e7a53bdc0e5b01aaf4574cb7190529021517ba55 | [
"MIT"
] | null | null | null | defmodule PlanningPokerWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case inter... | 27.714286 | 70 | 0.745361 |
334076210574826b76bd4e5d38cb9696d58b8c72 | 1,457 | ex | Elixir | lib/bike_brigade/media_storage.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 28 | 2021-10-11T01:53:53.000Z | 2022-03-24T17:45:55.000Z | lib/bike_brigade/media_storage.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 20 | 2021-10-21T08:12:31.000Z | 2022-03-31T13:35:53.000Z | lib/bike_brigade/media_storage.ex | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | null | null | null | defmodule BikeBrigade.MediaStorage do
use BikeBrigade.Adapter, :media_storage
require Logger
alias BikeBrigade.Utils
@type path :: String.t()
@type content_type :: String.t()
@type bucket :: String.t()
@type media_url :: String.t()
@type response :: %{url: media_url, content_type: content_type}
@ty... | 30.354167 | 80 | 0.658202 |
3340857c7d4d874276b42d77a28ec5d47296cdc2 | 1,681 | ex | Elixir | lib/first_days_web/endpoint.ex | TechforgoodCAST/first-steps | fa178d44d7c58a2e3fa372adcf7b5f2dc4ff6862 | [
"BSD-3-Clause"
] | 3 | 2018-01-30T09:55:29.000Z | 2018-02-01T18:48:10.000Z | lib/first_days_web/endpoint.ex | TechforgoodCAST/first-days | fa178d44d7c58a2e3fa372adcf7b5f2dc4ff6862 | [
"BSD-3-Clause"
] | 16 | 2018-01-30T09:45:20.000Z | 2018-02-07T11:11:04.000Z | lib/first_days_web/endpoint.ex | TechforgoodCAST/first-days | fa178d44d7c58a2e3fa372adcf7b5f2dc4ff6862 | [
"BSD-3-Clause"
] | null | null | null | defmodule FirstDaysWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :first_days
socket "/socket", FirstDaysWeb.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug P... | 28.982759 | 95 | 0.710291 |
33408d2d935f3279d55770669dfb41b566f68ba9 | 6,065 | ex | Elixir | clients/network_management/lib/google_api/network_management/v1/model/step.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/network_management/lib/google_api/network_management/v1/model/step.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/network_management/lib/google_api/network_management/v1/model/step.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... | 63.842105 | 301 | 0.724979 |
3340ab15e92c89d5c874c22ff35644e715c3301b | 20,575 | ex | Elixir | lib/myxql.ex | 0xAX/myxql | 82080200ad0ceb1f15e532836700204af3454509 | [
"Apache-2.0"
] | null | null | null | lib/myxql.ex | 0xAX/myxql | 82080200ad0ceb1f15e532836700204af3454509 | [
"Apache-2.0"
] | null | null | null | lib/myxql.ex | 0xAX/myxql | 82080200ad0ceb1f15e532836700204af3454509 | [
"Apache-2.0"
] | null | null | null | defmodule MyXQL do
@moduledoc """
MySQL driver for Elixir.
"""
@type conn() :: DBConnection.conn()
@type start_option() ::
{:protocol, :socket | :tcp}
| {:socket, Path.t()}
| {:socket_options, [:gen_tcp.connect_option()]}
| {:hostname, String.t()}
| {:port, ... | 34.348915 | 125 | 0.660802 |
33413591883e9c8b79b7ce02ea31ee31e8d57e59 | 3,424 | exs | Elixir | test/bonny/config_test.exs | gerred/bonny | e33b35924bc4dc8b0d87eb8890fa130a8f3c1a48 | [
"MIT"
] | null | null | null | test/bonny/config_test.exs | gerred/bonny | e33b35924bc4dc8b0d87eb8890fa130a8f3c1a48 | [
"MIT"
] | null | null | null | test/bonny/config_test.exs | gerred/bonny | e33b35924bc4dc8b0d87eb8890fa130a8f3c1a48 | [
"MIT"
] | null | null | null | defmodule Bonny.ConfigTest do
@moduledoc false
use ExUnit.Case, async: false
alias Bonny.Config
describe "group/0" do
test "defaults to hyphenated app name example.com" do
original = Application.get_env(:bonny, :group)
Application.delete_env(:bonny, :group)
assert Config.group() == "bonn... | 29.016949 | 79 | 0.67465 |
33413f120a20c7c4c13ff4a4fc640f721bd2fe13 | 1,064 | ex | Elixir | lib/elixir_tool_box/application.ex | okothkongo/elixir-tool-box | 4f7579012294281bf5a5278f2b03b236d25978bc | [
"MIT"
] | null | null | null | lib/elixir_tool_box/application.ex | okothkongo/elixir-tool-box | 4f7579012294281bf5a5278f2b03b236d25978bc | [
"MIT"
] | 2 | 2020-10-27T08:37:50.000Z | 2020-10-29T06:38:20.000Z | lib/elixir_tool_box/application.ex | okothkongo/elixir-tool-box | 4f7579012294281bf5a5278f2b03b236d25978bc | [
"MIT"
] | null | null | null | defmodule ElixirToolBox.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Ecto repository
ElixirToolBox.Repo,
# Start the Telemetry supervisor
... | 30.4 | 71 | 0.717105 |
33415638472ba020dd5f5aee2ac53574d933d515 | 5,099 | ex | Elixir | lib/securex_web/controllers/resource_controller.ex | wasitanbits/secruex | 5ae45935612e965fd0db682e510bf3d4dc14565e | [
"Apache-2.0"
] | 3 | 2022-03-05T13:46:23.000Z | 2022-03-07T13:15:29.000Z | lib/securex_web/controllers/resource_controller.ex | DevWasi/secruex | 5ae45935612e965fd0db682e510bf3d4dc14565e | [
"Apache-2.0"
] | null | null | null | lib/securex_web/controllers/resource_controller.ex | DevWasi/secruex | 5ae45935612e965fd0db682e510bf3d4dc14565e | [
"Apache-2.0"
] | null | null | null | defmodule SecureXWeb.ResourceController do
@moduledoc false
use SecureXWeb, :controller
alias SecureX.Context
@doc """
Get list of Resources,
## Examples
iex> list_resources()
[
%Resource{
id: "person_farm",
name: "Persons Farm"
},
%Resource{
id: "us... | 23.283105 | 88 | 0.575407 |
33415be585fa1c4b41481dde4c040fcfdd0d8f05 | 1,123 | ex | Elixir | lib/ccxtex/trade.ex | thanos/ccxtex | 55c019a2de716813c544fb4219bda6e5d53bedcf | [
"MIT"
] | 1 | 2019-06-10T21:37:08.000Z | 2019-06-10T21:37:08.000Z | lib/ccxtex/trade.ex | thanos/ccxtex | 55c019a2de716813c544fb4219bda6e5d53bedcf | [
"MIT"
] | null | null | null | lib/ccxtex/trade.ex | thanos/ccxtex | 55c019a2de716813c544fb4219bda6e5d53bedcf | [
"MIT"
] | 1 | 2019-06-10T21:36:52.000Z | 2019-06-10T21:36:52.000Z | # {
# 'info': { ... }, // the original decoded JSON as is
# 'id': '12345-67890:09876/54321', // string trade id
# 'timestamp': 1502962946216, // Unix timestamp in milliseconds
# 'datetime': '2017-08-17 12:42:48.000', // ISO8601 datetime with milliseconds
# ... | 41.592593 | 101 | 0.514693 |
33416c4fb384ffaf4167bbef409f0c729e6f3429 | 2,096 | ex | Elixir | lib/asciinema_web/views/oembed_view.ex | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | null | null | null | lib/asciinema_web/views/oembed_view.ex | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | null | null | null | lib/asciinema_web/views/oembed_view.ex | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | null | null | null | defmodule AsciinemaWeb.OembedView do
use AsciinemaWeb, :view
alias AsciinemaWeb.Endpoint
alias AsciinemaWeb.UserView
def render("show.json", %{asciicast: asciicast, max_width: mw, max_height: mh}) do
attrs(asciicast, mw, mh)
end
def render("show.xml", %{asciicast: asciicast, max_width: mw, max_height:... | 25.560976 | 84 | 0.643607 |
3341866b0ca678a926186c15de9e0438ab5f4062 | 230 | ex | Elixir | test/support/repo.ex | philcallister/taglet | a8675ee480e22f4ec00765e028ae061397d0147d | [
"Apache-2.0"
] | null | null | null | test/support/repo.ex | philcallister/taglet | a8675ee480e22f4ec00765e028ae061397d0147d | [
"Apache-2.0"
] | null | null | null | test/support/repo.ex | philcallister/taglet | a8675ee480e22f4ec00765e028ae061397d0147d | [
"Apache-2.0"
] | 1 | 2019-12-29T21:30:48.000Z | 2019-12-29T21:30:48.000Z | defmodule Taglet.Repo do
use Ecto.Repo,
otp_app: :taglet,
adapter: Ecto.Adapters.Postgres,
username: "postgres",
password: "password",
database: "taglet_test",
hostname: "localhost",
poolsize: 10
end
| 20.909091 | 36 | 0.665217 |
3342221811a0ef98b997d03aa3d9ed922397aeac | 1,352 | exs | Elixir | integration_test/ownership/shutdown_test.exs | ericentin/db_connection | 5a11383dd250e77b8475fddba92e26e2bf9efad8 | [
"Apache-2.0"
] | null | null | null | integration_test/ownership/shutdown_test.exs | ericentin/db_connection | 5a11383dd250e77b8475fddba92e26e2bf9efad8 | [
"Apache-2.0"
] | null | null | null | integration_test/ownership/shutdown_test.exs | ericentin/db_connection | 5a11383dd250e77b8475fddba92e26e2bf9efad8 | [
"Apache-2.0"
] | null | null | null | defmodule TestShutdown do
use ExUnit.Case, async: true
alias TestPool, as: P
alias TestAgent, as: A
test "pool shutdowns with manager" do
stack = [{:ok, :state}]
{:ok, agent} = A.start_link(stack)
opts = [agent: agent, parent: self(), shutdown: :brutal_kill]
{:ok, pool} = P.start_link(opts)
... | 28.765957 | 77 | 0.631657 |
33425d26bebf249c0e2349d0a3aaee55d2e840fc | 1,518 | ex | Elixir | lib/revision_plate_ex/router.ex | KazuCocoa/revision_plate_ex | a5ea1ca0fa863e018f2b8c6110166e67f4fce40e | [
"MIT"
] | 3 | 2016-01-09T14:44:30.000Z | 2019-03-30T06:51:39.000Z | lib/revision_plate_ex/router.ex | KazuCocoa/revision_plate_ex | a5ea1ca0fa863e018f2b8c6110166e67f4fce40e | [
"MIT"
] | null | null | null | lib/revision_plate_ex/router.ex | KazuCocoa/revision_plate_ex | a5ea1ca0fa863e018f2b8c6110166e67f4fce40e | [
"MIT"
] | null | null | null | defmodule RevisionPlateEx.Router do
@moduledoc """
Define RevisionPlateEx Router.
This module defines `get` and `head` methods via `Plug.Router` as standalone server. When anyone access to these methods , then this server return `REVISION` and status code as response.
To start this server, please set `:revisio... | 26.172414 | 200 | 0.664032 |
33426238501057929c54f8c94eb494108e7f4da5 | 697 | exs | Elixir | priv/repo/migrations/022_create_point_account.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 44 | 2018-05-09T01:08:57.000Z | 2021-01-19T07:25:26.000Z | priv/repo/migrations/022_create_point_account.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 36 | 2018-05-08T23:59:54.000Z | 2018-09-28T13:50:30.000Z | priv/repo/migrations/022_create_point_account.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 9 | 2018-05-09T14:09:19.000Z | 2021-03-21T21:04:04.000Z | defmodule BlueJet.Repo.Migrations.CreatePointAccount do
use Ecto.Migration
def change do
create table(:point_accounts, primary_key: false) do
add :id, :binary_id, primary_key: true
add :account_id, references(:accounts, type: :binary_id, on_delete: :delete_all), null: false
add :customer_id, ... | 33.190476 | 101 | 0.682927 |
3342625e386907c10ff4ef0c53fe1e1fb5f31d98 | 3,226 | ex | Elixir | lib/squadster/accounts/user.ex | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | lib/squadster/accounts/user.ex | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | lib/squadster/accounts/user.ex | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | defmodule Squadster.Accounts.User do
use Ecto.Schema
import Ecto.Changeset
require Logger
require Poison
alias Ueberauth.Auth
alias Squadster.Helpers.Dates
@vk_url "https://vk.com/"
@auth_fields [
:first_name,
:last_name,
:birth_date,
:mobile_phone,
:university,
:faculty,
... | 24.625954 | 125 | 0.647241 |
33428bff8183340ad9d7946b85e77ff56caeb006 | 344 | exs | Elixir | test/phoenix_sample_web/live/page_live_test.exs | jonathanleang/phoenix_sample | 2dbc65d74087fedc9eccb87436870f0927c74522 | [
"Apache-2.0"
] | 1 | 2021-03-07T06:56:35.000Z | 2021-03-07T06:56:35.000Z | test/phoenix_sample_web/live/page_live_test.exs | jonathanleang/phoenix_sample | 2dbc65d74087fedc9eccb87436870f0927c74522 | [
"Apache-2.0"
] | null | null | null | test/phoenix_sample_web/live/page_live_test.exs | jonathanleang/phoenix_sample | 2dbc65d74087fedc9eccb87436870f0927c74522 | [
"Apache-2.0"
] | 2 | 2020-11-29T05:56:44.000Z | 2021-07-23T10:22:52.000Z | defmodule PhoenixSampleWeb.PageLiveTest do
use PhoenixSampleWeb.ConnCase
import Phoenix.LiveViewTest
test "disconnected and connected render", %{conn: conn} do
{:ok, page_live, disconnected_html} = live(conn, "/")
assert disconnected_html =~ "Welcome to Phoenix!"
assert render(page_live) =~ "Welcome... | 28.666667 | 60 | 0.735465 |
33429afb0c57348933175dde78dbd03e6c7f3d81 | 455 | ex | Elixir | lib/probe/supervisor.ex | baby636/instruments | f8cebae4c2e4ed1759bef36b4124d0b8becc6fe2 | [
"MIT"
] | 1 | 2021-05-09T06:41:16.000Z | 2021-05-09T06:41:16.000Z | lib/probe/supervisor.ex | baby636/instruments | f8cebae4c2e4ed1759bef36b4124d0b8becc6fe2 | [
"MIT"
] | null | null | null | lib/probe/supervisor.ex | baby636/instruments | f8cebae4c2e4ed1759bef36b4124d0b8becc6fe2 | [
"MIT"
] | null | null | null | defmodule Instruments.Probe.Supervisor do
@moduledoc false
use Supervisor
def start_link do
Supervisor.start_link(__MODULE__, [], name: __MODULE__)
end
def init([]) do
children = [
worker(Instruments.Probe.Runner, [])
]
supervise(children, strategy: :simple_one_for_one)
end
def s... | 21.666667 | 75 | 0.712088 |
3342a570f5a1466b1f14bc39099ddbee23a99b7e | 4,083 | ex | Elixir | clients/health_care/lib/google_api/health_care/v1/model/stream_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/health_care/lib/google_api/health_care/v1/model/stream_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/health_care/lib/google_api/health_care/v1/model/stream_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 75.611111 | 2,149 | 0.781533 |
3342baffe7ae2dd22736223cb44af86bf088b8a1 | 140 | ex | Elixir | test/support/mocks.ex | denismitr/level | 0b01b0e46c252510dd50b3558d987c6f1e0b1da9 | [
"Apache-2.0"
] | 1 | 2019-06-11T20:20:32.000Z | 2019-06-11T20:20:32.000Z | test/support/mocks.ex | denismitr/level | 0b01b0e46c252510dd50b3558d987c6f1e0b1da9 | [
"Apache-2.0"
] | null | null | null | test/support/mocks.ex | denismitr/level | 0b01b0e46c252510dd50b3558d987c6f1e0b1da9 | [
"Apache-2.0"
] | null | null | null | Mox.defmock(Level.AssetStore.TestAdapter, for: Level.AssetStore.Adapter)
Mox.defmock(Level.WebPush.TestAdapter, for: Level.WebPush.Adapter)
| 46.666667 | 72 | 0.828571 |
3342bc24cc14da97d39cd21bb82884fe83a37f45 | 890 | ex | Elixir | clients/custom_search/lib/google_api/custom_search/v1/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/custom_search/lib/google_api/custom_search/v1/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/custom_search/lib/google_api/custom_search/v1/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 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... | 32.962963 | 74 | 0.760674 |
3342c6691959f27cce14282713955660a762523b | 18,316 | ex | Elixir | lib/phoenix/controller.ex | wojtekmach/phoenix | a6b3bf301c7088b8824a39a165582dc85dfdd2a4 | [
"MIT"
] | null | null | null | lib/phoenix/controller.ex | wojtekmach/phoenix | a6b3bf301c7088b8824a39a165582dc85dfdd2a4 | [
"MIT"
] | null | null | null | lib/phoenix/controller.ex | wojtekmach/phoenix | a6b3bf301c7088b8824a39a165582dc85dfdd2a4 | [
"MIT"
] | null | null | null | defmodule Phoenix.Controller do
import Plug.Conn
@moduledoc """
Controllers are used to group common functionality in the same
(pluggable) module.
For example, the route:
get "/users/:id", UserController, :show
will invoke the `show/2` action in the `UserController`:
defmodule UserControlle... | 29.212121 | 113 | 0.661662 |
334319db7e84ce2ec29c847a2b93095819b01122 | 5,524 | ex | Elixir | lib/attribute/schatten.ex | ianrumford/harnais_form | 6b20a762af3921ba4a92e58a5139c8dd190f3bb9 | [
"MIT"
] | null | null | null | lib/attribute/schatten.ex | ianrumford/harnais_form | 6b20a762af3921ba4a92e58a5139c8dd190f3bb9 | [
"MIT"
] | null | null | null | lib/attribute/schatten.ex | ianrumford/harnais_form | 6b20a762af3921ba4a92e58a5139c8dd190f3bb9 | [
"MIT"
] | null | null | null | defmodule Harnais.Form.Attribute.Schatten do
@moduledoc false
defmacro __using__(_opts \\ []) do
quote do
use Plymio.Fontais.Attribute
@harnais_form_schatten_value_not_set @plymio_fontais_the_unset_value
@harnais_form_schatten_value_form_initial @harnais_form_schatten_value_not_set
@... | 42.492308 | 107 | 0.773172 |
334331614e49c0f0bbba89175d14b05e81755a6a | 18,966 | exs | Elixir | apps/rig_inbound_gateway/test/event_subscription_test.exs | maxglassie/reactive-interaction-gateway | 36b68fc75c71b9b4c3b6bd70fb11900c67172137 | [
"Apache-2.0"
] | null | null | null | apps/rig_inbound_gateway/test/event_subscription_test.exs | maxglassie/reactive-interaction-gateway | 36b68fc75c71b9b4c3b6bd70fb11900c67172137 | [
"Apache-2.0"
] | null | null | null | apps/rig_inbound_gateway/test/event_subscription_test.exs | maxglassie/reactive-interaction-gateway | 36b68fc75c71b9b4c3b6bd70fb11900c67172137 | [
"Apache-2.0"
] | null | null | null | defmodule RigInboundGateway.EventSubscriptionTest do
@moduledoc """
Clients need to be able to add and remove subscriptions to their connection.
"""
# Cannot be async because the extractor configuration is modified
use ExUnit.Case, async: false
import Joken
alias CloudEvent
alias Rig.EventFilter.Sup, ... | 28.434783 | 126 | 0.562269 |
33433e09ef1a76f95221af0bfa60e9a8ba4379cc | 1,117 | exs | Elixir | test/fixture/apps/example_complex_app/apps/app2/config/config.exs | tyrchen/overseer | e46dbd965e14d92361f223db1a6d6f44b20272b3 | [
"MIT"
] | 18 | 2018-03-01T05:59:27.000Z | 2021-06-15T13:12:50.000Z | test/fixture/apps/example_complex_app/apps/app2/config/config.exs | tyrchen/overseer | e46dbd965e14d92361f223db1a6d6f44b20272b3 | [
"MIT"
] | 2 | 2019-01-04T09:37:34.000Z | 2019-05-20T10:45:15.000Z | test/fixture/apps/example_complex_app/apps/app2/config/config.exs | tyrchen/overseer | e46dbd965e14d92361f223db1a6d6f44b20272b3 | [
"MIT"
] | 4 | 2019-01-04T14:21:50.000Z | 2020-12-19T05:05:22.000Z | # 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.032258 | 73 | 0.750224 |
334347660ca286534c960d4248fe9fb6691e39c0 | 8,992 | ex | Elixir | lib/phoenix/live_dashboard/live/home_live.ex | davydog187/phoenix_live_dashboard | c3dc00b2f5d825573163b10d9d7218612e7cca5b | [
"MIT"
] | null | null | null | lib/phoenix/live_dashboard/live/home_live.ex | davydog187/phoenix_live_dashboard | c3dc00b2f5d825573163b10d9d7218612e7cca5b | [
"MIT"
] | null | null | null | lib/phoenix/live_dashboard/live/home_live.ex | davydog187/phoenix_live_dashboard | c3dc00b2f5d825573163b10d9d7218612e7cca5b | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveDashboard.HomeLive do
use Phoenix.LiveDashboard.Web, :live_view
alias Phoenix.LiveDashboard.{SystemInfo, SystemLimitComponent}
@temporary_assigns [system_info: nil, system_usage: nil]
@versions_sections [
{:elixir, "Elixir"},
{:phoenix, "Phoenix"},
{:dashboard, "Dashboard"}
... | 35.824701 | 143 | 0.545485 |
33436e30cc3d194e7e333b7b1b2da070011326ea | 8,061 | ex | Elixir | lib/atecc508a/configuration.ex | bcdevices/atecc508a | 934652947ac1de2022f1da556adffa3e8cba31e3 | [
"Apache-2.0"
] | null | null | null | lib/atecc508a/configuration.ex | bcdevices/atecc508a | 934652947ac1de2022f1da556adffa3e8cba31e3 | [
"Apache-2.0"
] | null | null | null | lib/atecc508a/configuration.ex | bcdevices/atecc508a | 934652947ac1de2022f1da556adffa3e8cba31e3 | [
"Apache-2.0"
] | null | null | null | defmodule ATECC508A.Configuration do
@moduledoc """
This module handles operations on the configuration zone.
"""
alias ATECC508A.{Request, Transport}
defstruct [
:serial_number,
:rev_num,
:i2c_address,
:otp_mode,
:chip_mode,
:slot_config,
:counter0,
:counter1,
:last_key_... | 32.635628 | 98 | 0.634164 |
33439d766c6c8216d9c5a9dca2478b06cef15057 | 3,571 | ex | Elixir | lib/cgrates_web_jsonapi/tariff_plans/tp_action_trigger.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 2 | 2018-10-03T07:41:32.000Z | 2021-03-21T11:27:27.000Z | lib/cgrates_web_jsonapi/tariff_plans/tp_action_trigger.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 1 | 2018-10-31T04:55:59.000Z | 2018-10-31T04:55:59.000Z | lib/cgrates_web_jsonapi/tariff_plans/tp_action_trigger.ex | max-konin/cgrates_web_jsonapi | e82690e343d790b0f77dea6699483fcb6fd8a162 | [
"MIT"
] | 5 | 2018-09-27T11:30:44.000Z | 2021-01-16T08:28:58.000Z | defmodule CgratesWebJsonapi.TariffPlans.TpActionTrigger do
use Ecto.Schema
import Ecto.Changeset
use EctoConditionals, repo: CgratesWebJsonapi.Repo
@attributes ~w[tpid tag unique_id balance_tag balance_type threshold_type threshold_value expiry_time
balance_destination_tags balance_rating_subj... | 38.397849 | 111 | 0.717446 |
3343dca5e3bea22571284a0e2812588cb9366d30 | 986 | ex | Elixir | apps/snitch_core/priv/repo/seed/variation_theme.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_core/priv/repo/seed/variation_theme.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_core/priv/repo/seed/variation_theme.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule Snitch.Seed.VariationTheme do
alias Snitch.Core.Tools.MultiTenancy.Repo
alias Snitch.Data.Schema.VariationTheme
alias Snitch.Data.Schema.OptionType
defp get_option_type do
Repo.all(OptionType)
end
def seed!() do
option_types = get_option_type
for i <- 1..length(option_types),
... | 27.388889 | 82 | 0.720081 |
3343f6aee7dde235176009c635fbaed2274d5459 | 43,243 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/target_pools.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/target_pools.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/target_pools.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... | 49.590596 | 511 | 0.640057 |
3343fe98e9e6cc7aa0c1ce529c25e2bf615f075b | 1,723 | ex | Elixir | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/list_locations_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/list_locations_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/list_locations_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 34.46 | 122 | 0.766106 |
3344035539adb9bddeb82f8e907bad96b2d1f2d6 | 1,353 | exs | Elixir | config/config.exs | waterlink/ww | 3574ce55a68c69719d3e65f46c409d088f36de7a | [
"MIT"
] | null | null | null | config/config.exs | waterlink/ww | 3574ce55a68c69719d3e65f46c409d088f36de7a | [
"MIT"
] | null | null | null | config/config.exs | waterlink/ww | 3574ce55a68c69719d3e65f46c409d088f36de7a | [
"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.567568 | 73 | 0.73762 |
334446816ddfce103574400b1659c3dc1bd567a9 | 4,129 | ex | Elixir | lib/hexa_web/controllers/user_auth.ex | libreearth/hexa | 81938c3a5abc710eb16055d73c43cbf60dbf487e | [
"MIT"
] | null | null | null | lib/hexa_web/controllers/user_auth.ex | libreearth/hexa | 81938c3a5abc710eb16055d73c43cbf60dbf487e | [
"MIT"
] | null | null | null | lib/hexa_web/controllers/user_auth.ex | libreearth/hexa | 81938c3a5abc710eb16055d73c43cbf60dbf487e | [
"MIT"
] | null | null | null | defmodule HexaWeb.UserAuth do
import Plug.Conn
import Phoenix.Controller
alias Phoenix.LiveView
alias Hexa.Accounts
alias HexaWeb.Router.Helpers, as: Routes
def on_mount(:current_user, _params, session, socket) do
case session do
%{"user_id" => user_id} ->
{:cont, LiveView.assign_new(soc... | 27.711409 | 102 | 0.675224 |
33444e642a46147d326f5ebff5978ed5daf79294 | 337 | ex | Elixir | web/models/user.ex | jwworth/wallaby_example | 03372b15ee700fc309bd3371cc445671d41316d4 | [
"MIT"
] | null | null | null | web/models/user.ex | jwworth/wallaby_example | 03372b15ee700fc309bd3371cc445671d41316d4 | [
"MIT"
] | null | null | null | web/models/user.ex | jwworth/wallaby_example | 03372b15ee700fc309bd3371cc445671d41316d4 | [
"MIT"
] | null | null | null | defmodule WallabyExample.User do
use WallabyExample.Web, :model
schema "users" do
field :name, :string
timestamps()
end
@doc """
Builds a changeset based on the `struct` and `params`.
"""
def changeset(struct, params \\ %{}) do
struct
|> cast(params, [:name])
|> validate_required([:... | 17.736842 | 56 | 0.62908 |
3344a168dbf3747aaf4b3fa3f7e4b7f2403cf6e5 | 1,380 | ex | Elixir | lib/ex_chat_web/channels/room_channel.ex | embik/ex_chat | 08d83fe2076a96f9dad647fe509daec301b4965a | [
"Apache-2.0"
] | 1 | 2017-12-28T12:49:19.000Z | 2017-12-28T12:49:19.000Z | lib/ex_chat_web/channels/room_channel.ex | embik/ex_chat | 08d83fe2076a96f9dad647fe509daec301b4965a | [
"Apache-2.0"
] | null | null | null | lib/ex_chat_web/channels/room_channel.ex | embik/ex_chat | 08d83fe2076a96f9dad647fe509daec301b4965a | [
"Apache-2.0"
] | null | null | null | defmodule ExChatWeb.RoomChannel do
use ExChatWeb, :channel
alias ExChatWeb.Presence
alias ExChat.Chats
alias ExChat.Chats.Room
require Logger
intercept ["new_msg"]
def join("room:" <> room_name, _payload, socket) do
user = Guardian.Phoenix.Socket.current_resource(socket)
case Chats.get_room_by_... | 27.058824 | 86 | 0.635507 |
3344b320c41dd3cbe672f33fdbd0d85ae9265101 | 1,695 | ex | Elixir | lib/phoenix_sample_web/controllers/user_reset_password_controller.ex | gotoeveryone/phoenix_sample | 8e53f1d1a0c9bf37e474755c60d06f3cb578ae7f | [
"MIT"
] | null | null | null | lib/phoenix_sample_web/controllers/user_reset_password_controller.ex | gotoeveryone/phoenix_sample | 8e53f1d1a0c9bf37e474755c60d06f3cb578ae7f | [
"MIT"
] | null | null | null | lib/phoenix_sample_web/controllers/user_reset_password_controller.ex | gotoeveryone/phoenix_sample | 8e53f1d1a0c9bf37e474755c60d06f3cb578ae7f | [
"MIT"
] | null | null | null | defmodule PhoenixSampleWeb.UserResetPasswordController do
use PhoenixSampleWeb, :controller
alias PhoenixSample.Accounts
plug :get_user_by_reset_password_token when action in [:edit, :update]
def new(conn, _params) do
render(conn, "new.html")
end
def create(conn, %{"user" => %{"email" => email}}) do... | 28.728814 | 101 | 0.660177 |
3344d2ab3d630186f777ad2687aa9ec76019def2 | 1,883 | exs | Elixir | mix.exs | fiodorbaczynski/ev | bc7867dc8b42cfa79ad4bd9f049bcc08f9880dc2 | [
"MIT"
] | 2 | 2021-12-29T15:37:34.000Z | 2022-01-12T23:52:47.000Z | mix.exs | fiodorbaczynski/ev | bc7867dc8b42cfa79ad4bd9f049bcc08f9880dc2 | [
"MIT"
] | null | null | null | mix.exs | fiodorbaczynski/ev | bc7867dc8b42cfa79ad4bd9f049bcc08f9880dc2 | [
"MIT"
] | 1 | 2022-01-31T11:07:57.000Z | 2022-01-31T11:07:57.000Z | defmodule EV.MixProject do
use Mix.Project
def project do
[
app: :ev,
version: "0.1.1",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: description(),
package: packa... | 25.794521 | 96 | 0.550186 |
3344e42f76042b7ee3d76f8e5c1acd7dc2a70034 | 161 | ex | Elixir | lib/cheerland_reservas_web/controllers/page_controller.ex | fskinner/cheerland-reservas | 48a782d7e49736a89b4fd2136c98906269b6351e | [
"MIT"
] | 2 | 2019-03-14T20:03:44.000Z | 2019-08-30T13:30:42.000Z | lib/cheerland_reservas_web/controllers/page_controller.ex | fskinner/cheerland-reservas | 48a782d7e49736a89b4fd2136c98906269b6351e | [
"MIT"
] | 1 | 2021-05-08T08:23:18.000Z | 2021-05-08T08:23:18.000Z | lib/cheerland_reservas_web/controllers/page_controller.ex | fskinner/cheerland-reservas | 48a782d7e49736a89b4fd2136c98906269b6351e | [
"MIT"
] | null | null | null | defmodule CheerlandReservasWeb.PageController do
use CheerlandReservasWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 20.125 | 48 | 0.770186 |
3344e970042a4648d4022c53c18c1e9e838dfa10 | 2,227 | exs | Elixir | apps/emporium_api/test/controllers/product_controller_test.exs | impressarix/Phoenix-Webstore | 31376183b853e594b224fb1051897a00cd20b6ec | [
"Apache-2.0"
] | null | null | null | apps/emporium_api/test/controllers/product_controller_test.exs | impressarix/Phoenix-Webstore | 31376183b853e594b224fb1051897a00cd20b6ec | [
"Apache-2.0"
] | null | null | null | apps/emporium_api/test/controllers/product_controller_test.exs | impressarix/Phoenix-Webstore | 31376183b853e594b224fb1051897a00cd20b6ec | [
"Apache-2.0"
] | null | null | null | defmodule EmporiumApi.ProductControllerTest do
use EmporiumApi.ConnCase
alias Emporium.Product
@valid_attrs %{category_id: 1, description: "some content", is_digital: false, name: "some content", permalink: "some content"}
@invalid_attrs %{}
setup do
conn = conn() |> put_req_header("accept", "applicatio... | 36.508197 | 129 | 0.686125 |
3344f3ef11267761018e0f84c3d10bad211beb90 | 53 | exs | Elixir | .medic/require.exs | geometerio/tangent | c3e7b64f6ec88c2938176b1e4aba856a2eefa706 | [
"MIT"
] | null | null | null | .medic/require.exs | geometerio/tangent | c3e7b64f6ec88c2938176b1e4aba856a2eefa706 | [
"MIT"
] | null | null | null | .medic/require.exs | geometerio/tangent | c3e7b64f6ec88c2938176b1e4aba856a2eefa706 | [
"MIT"
] | null | null | null | Mix.install([
{:medic, "~> 0.8.0", force: true}
])
| 13.25 | 35 | 0.509434 |
33450c11c1d4b5a62703381669261f006a985145 | 6,934 | exs | Elixir | apps/omg/test/omg/fees_test.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | 1 | 2020-10-06T03:07:47.000Z | 2020-10-06T03:07:47.000Z | apps/omg/test/omg/fees_test.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | 9 | 2020-09-16T15:31:17.000Z | 2021-03-17T07:12:35.000Z | apps/omg/test/omg/fees_test.exs | boolafish/elixir-omg | 46b568404972f6e4b4da3195d42d4fb622edb934 | [
"Apache-2.0"
] | 1 | 2020-09-30T17:17:27.000Z | 2020-09-30T17:17:27.000Z | # Copyright 2019-2020 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 ... | 35.742268 | 122 | 0.644217 |
334512e500dae96345b71e5c78d2b089d7ed6af5 | 1,583 | ex | Elixir | lib/elirc/plugin/sound.ex | rockerBOO/elirc_twitch | 6399f717c012df10df7914c216f5d3f9c425844c | [
"MIT"
] | 20 | 2015-06-18T03:30:58.000Z | 2021-01-11T19:55:00.000Z | lib/elirc/plugin/sound.ex | rockerBOO/elirc_twitch | 6399f717c012df10df7914c216f5d3f9c425844c | [
"MIT"
] | 1 | 2015-06-24T01:03:31.000Z | 2015-06-24T12:41:21.000Z | lib/elirc/plugin/sound.ex | rockerBOO/elirc_twitch | 6399f717c012df10df7914c216f5d3f9c425844c | [
"MIT"
] | 7 | 2015-06-22T14:25:12.000Z | 2016-01-21T03:39:02.000Z | defmodule Elirc.Sound do
@doc """
Sends a request to play the sound in the SoundPool
## Examples
play("xfiles")
"""
def play(sound) do
pool_name = Elirc.SoundPool.Supervisor.pool_name()
:poolboy.transaction(
pool_name,
fn(pid) -> :gen_server.call(pid, {:play, sound}, 15000) end
)
... | 20.558442 | 76 | 0.617183 |
334515e8386bfc7fcee673c464d56359f7c4d59f | 6,875 | ex | Elixir | lib/jamdb_oracle_ecto.ex | lemenkov/jamdb_oracle | 7f64267a670b5f185fce5ccc29d99983ae0182d0 | [
"MIT"
] | null | null | null | lib/jamdb_oracle_ecto.ex | lemenkov/jamdb_oracle | 7f64267a670b5f185fce5ccc29d99983ae0182d0 | [
"MIT"
] | null | null | null | lib/jamdb_oracle_ecto.ex | lemenkov/jamdb_oracle | 7f64267a670b5f185fce5ccc29d99983ae0182d0 | [
"MIT"
] | null | null | null | defmodule Ecto.Adapters.Jamdb.Oracle do
@moduledoc """
Adapter module for Oracle. `Ecto.Adapters.SQL` callbacks implementation.
It uses `jamdb_oracle` for communicating to the database.
## Features
* Using prepared statement functionality, the SQL statement you want
to run is precompiled and stored i... | 34.547739 | 107 | 0.616727 |
334527f37244d6f4d13efdc168a000e0e9709415 | 861 | ex | Elixir | lib/scrip/util.ex | maartenvanvliet/scrip | cb2a69f12a6a086b03cc131902014241392901c4 | [
"MIT"
] | 2 | 2021-03-24T11:51:53.000Z | 2021-05-16T14:13:20.000Z | lib/scrip/util.ex | maartenvanvliet/scrip | cb2a69f12a6a086b03cc131902014241392901c4 | [
"MIT"
] | 14 | 2020-12-28T04:13:47.000Z | 2022-03-24T04:04:53.000Z | lib/scrip/util.ex | maartenvanvliet/scrip | cb2a69f12a6a086b03cc131902014241392901c4 | [
"MIT"
] | null | null | null | defmodule Scrip.Util do
@moduledoc false
@spec to_boolean(String.t() | nil) :: boolean | nil
def to_boolean(nil), do: nil
def to_boolean("true"), do: true
def to_boolean("1"), do: true
def to_boolean("false"), do: false
def to_boolean("0"), do: false
@spec to_datetime(timestamp :: Scripp.timestamp() |... | 35.875 | 94 | 0.699187 |
334529ad39f79a119f5df223e328d1ac2591374a | 137 | ex | Elixir | lib/valvex/api/stats_game.ex | aguxez/kronos | feb2aef994b609efee6122c917ebeaca73da648e | [
"MIT"
] | null | null | null | lib/valvex/api/stats_game.ex | aguxez/kronos | feb2aef994b609efee6122c917ebeaca73da648e | [
"MIT"
] | null | null | null | lib/valvex/api/stats_game.ex | aguxez/kronos | feb2aef994b609efee6122c917ebeaca73da648e | [
"MIT"
] | null | null | null | defmodule Valvex.Api.GlobalStatsGame do
@moduledoc false
# TODO: Do this module because I didn't understand the Endpoint, hehe.
end
| 22.833333 | 72 | 0.773723 |
3345458b6fee371563e10a14a373be79c4cf22a3 | 1,396 | ex | Elixir | Microsoft.Azure.Management.Advisor/lib/microsoft/azure/management/advisor/api/operations.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.Advisor/lib/microsoft/azure/management/advisor/api/operations.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Advisor/lib/microsoft/azure/management/advisor/api/operations.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.Advisor.Api.Operations do
@moduledoc """
API calls for all endpoints tagged `Operations`.
"""
alias Microsoft.... | 35.794872 | 165 | 0.727794 |
33457a1baa89785c1df01e8e08eed31563ae69c0 | 539 | ex | Elixir | activelearnbackend/roomcodes/lib/roomcodes_web/views/error_view.ex | braydentam/activelearn | 8ff573b263f2ed698b10a40c6421f1616b624b74 | [
"MIT"
] | 5 | 2021-03-27T22:17:10.000Z | 2021-07-12T03:48:57.000Z | activelearnbackend/roomcodes/lib/roomcodes_web/views/error_view.ex | braydentam/activelearn | 8ff573b263f2ed698b10a40c6421f1616b624b74 | [
"MIT"
] | null | null | null | activelearnbackend/roomcodes/lib/roomcodes_web/views/error_view.ex | braydentam/activelearn | 8ff573b263f2ed698b10a40c6421f1616b624b74 | [
"MIT"
] | null | null | null | defmodule RoomcodesWeb.ErrorView do
use RoomcodesWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.json", _assigns) do
# %{errors: %{detail: "Internal Server Error"}}
# end
# By default, Phoenix returns the status message ... | 31.705882 | 83 | 0.721707 |
334584119a531e945f452bf9b3dd929a08546597 | 5,435 | ex | Elixir | lib/ethereum/aggregates.ex | alanwilhelm/elixir-ethereum | 42aba002e485524be2981ae05b6f7134f8439dc4 | [
"MIT"
] | null | null | null | lib/ethereum/aggregates.ex | alanwilhelm/elixir-ethereum | 42aba002e485524be2981ae05b6f7134f8439dc4 | [
"MIT"
] | null | null | null | lib/ethereum/aggregates.ex | alanwilhelm/elixir-ethereum | 42aba002e485524be2981ae05b6f7134f8439dc4 | [
"MIT"
] | null | null | null | defmodule Ethereum.Aggregates do
@moduledoc """
Functions to return metadata and other more useful stats/data than the node returns natively.
"""
require IEx
@doc """
Return recent average difficulty, blocktime, and nethash for last N blocks
## Example:
iex> Ethereum.get_recent_averages(20)
""... | 30.027624 | 143 | 0.661822 |
3345b2d58a1b7ec05d82040d69e1f39416fcda05 | 54,131 | ex | Elixir | lib/faker/name/en.ex | theabrad/faker | 7bf54d15f127a2fb845335967b5b601e67960ef0 | [
"MIT"
] | 1 | 2019-02-11T20:46:52.000Z | 2019-02-11T20:46:52.000Z | lib/faker/name/en.ex | echenim/faker | 15172b7d9c2b7711173a5faf3e45bfc4e45d6a97 | [
"MIT"
] | 57 | 2018-12-24T10:39:32.000Z | 2020-12-28T10:13:00.000Z | lib/faker/name/en.ex | echenim/faker | 15172b7d9c2b7711173a5faf3e45bfc4e45d6a97 | [
"MIT"
] | 1 | 2019-02-03T17:04:21.000Z | 2019-02-03T17:04:21.000Z | defmodule Faker.Name.En do
import Faker, only: [sampler: 2]
@moduledoc """
Functions for name data in English
"""
@doc """
Returns a complete name (may include a suffix/prefix or both)
## Examples
iex> Faker.Name.En.name()
"Mrs. Abe Rolfson MD"
iex> Faker.Name.En.name()
"Conor ... | 14.404204 | 76 | 0.441651 |
3345bf934ec94dff13fc1555487da88d1969af12 | 1,014 | ex | Elixir | elixir/binary-search/lib/binary_search.ex | herminiotorres/exercism | 82173fcf1f09c27da0134f746a799840aa5eac05 | [
"MIT"
] | null | null | null | elixir/binary-search/lib/binary_search.ex | herminiotorres/exercism | 82173fcf1f09c27da0134f746a799840aa5eac05 | [
"MIT"
] | null | null | null | elixir/binary-search/lib/binary_search.ex | herminiotorres/exercism | 82173fcf1f09c27da0134f746a799840aa5eac05 | [
"MIT"
] | 1 | 2021-03-15T11:02:40.000Z | 2021-03-15T11:02:40.000Z | defmodule BinarySearch do
@doc """
Searches for a key in the tuple using the binary search algorithm.
It returns :not_found if the key is not in the tuple.
Otherwise returns {:ok, index}.
## Examples
iex> BinarySearch.search({}, 2)
:not_found
iex> BinarySearch.search({1, 3, 5}, 2)... | 21.125 | 70 | 0.561144 |
3345c7b6e7aef9415dd62663ee9573937fcb1c7a | 14,877 | exs | Elixir | installer/test/phx_new_test.exs | coderberry/phoenix | 9abaa84ea675d3db97cfba77745e76300acb6fd2 | [
"MIT"
] | null | null | null | installer/test/phx_new_test.exs | coderberry/phoenix | 9abaa84ea675d3db97cfba77745e76300acb6fd2 | [
"MIT"
] | null | null | null | installer/test/phx_new_test.exs | coderberry/phoenix | 9abaa84ea675d3db97cfba77745e76300acb6fd2 | [
"MIT"
] | null | null | null | Code.require_file "mix_helper.exs", __DIR__
defmodule Mix.Tasks.Phx.NewTest do
use ExUnit.Case, async: false
import MixHelper
import ExUnit.CaptureIO
@app_name "phx_blog"
setup do
# The shell asks to install deps.
# We will politely say not.
send self(), {:mix_shell_input, :yes?, false}
:ok... | 41.325 | 156 | 0.657458 |
3345ca19d0ed7170f52250c0708c9eb4285a3356 | 261 | ex | Elixir | apps/shell/lib/bash.ex | lowlandresearch/kudzu | f65da5061c436afb114a2e95bc6d115b6ec7be53 | [
"MIT"
] | null | null | null | apps/shell/lib/bash.ex | lowlandresearch/kudzu | f65da5061c436afb114a2e95bc6d115b6ec7be53 | [
"MIT"
] | 4 | 2020-05-16T16:05:33.000Z | 2020-05-16T19:52:12.000Z | apps/shell/lib/bash.ex | lowlandresearch/kudzu | f65da5061c436afb114a2e95bc6d115b6ec7be53 | [
"MIT"
] | null | null | null | defmodule Shell.Bash do
use Shell.Command, command: "bash"
@impl true
def command_args(%{args: args}) do
with {:ok, arglist} <- args |> Args.from_list do
command = arglist
|> Enum.join(" ")
{:ok, ["-c", command]}
end
end
end
| 18.642857 | 52 | 0.582375 |
3345d17afb662bb692443e8b03f076fac93b1ad7 | 1,145 | exs | Elixir | config/config.exs | merqlove/redix_pubsub_fastlane | a41854663ec66628ed4622eb4d17d91b0ecb6f22 | [
"MIT"
] | null | null | null | config/config.exs | merqlove/redix_pubsub_fastlane | a41854663ec66628ed4622eb4d17d91b0ecb6f22 | [
"MIT"
] | null | null | null | config/config.exs | merqlove/redix_pubsub_fastlane | a41854663ec66628ed4622eb4d17d91b0ecb6f22 | [
"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.935484 | 73 | 0.757205 |
3345d8387300078d85e9ed9e22b9f86b331e2cf1 | 1,676 | ex | Elixir | lib/exblockchain/blockchain.ex | et/ex_blockchain | c8713e84caff72a88a9db34ed4a8d55711698ebb | [
"MIT"
] | 1 | 2016-09-28T01:07:06.000Z | 2016-09-28T01:07:06.000Z | lib/exblockchain/blockchain.ex | et/ex_blockchain | c8713e84caff72a88a9db34ed4a8d55711698ebb | [
"MIT"
] | null | null | null | lib/exblockchain/blockchain.ex | et/ex_blockchain | c8713e84caff72a88a9db34ed4a8d55711698ebb | [
"MIT"
] | 2 | 2017-03-14T13:09:18.000Z | 2021-01-18T00:19:36.000Z | defmodule ExBlockchain.Blockchain.Block do
defstruct [
:hash,
:ver,
:prev_block,
:mrkl_root,
:time,
:bits,
:nonce,
:n_tx,
:size,
:block_index,
:main_chain,
:height,
:received_time,
:relayed_by,
:tx
]
end
defmodule ExBlockchain.Blockchain.Transaction do
... | 18.217391 | 111 | 0.662888 |
3345e9b64db74b67b1c6ccff25763b7eaf086fef | 5,778 | ex | Elixir | lib/cadet_web/controllers/auth_controller.ex | seanlowjk/cadet | 52b55cc0f777cb0d55a78fe1693f762085ab36c2 | [
"Apache-2.0"
] | null | null | null | lib/cadet_web/controllers/auth_controller.ex | seanlowjk/cadet | 52b55cc0f777cb0d55a78fe1693f762085ab36c2 | [
"Apache-2.0"
] | 10 | 2022-02-24T17:57:38.000Z | 2022-03-31T07:43:05.000Z | lib/cadet_web/controllers/auth_controller.ex | seanlowjk/cadet | 52b55cc0f777cb0d55a78fe1693f762085ab36c2 | [
"Apache-2.0"
] | 1 | 2019-07-17T15:51:58.000Z | 2019-07-17T15:51:58.000Z | defmodule CadetWeb.AuthController do
use CadetWeb, :controller
use PhoenixSwagger
alias Cadet.Accounts
alias Cadet.Accounts.User
alias Cadet.Auth.{Guardian, Provider}
@doc """
Receives a /login request with valid attributes (`Login form`).
If the user is already registered in our database, simply ret... | 29.035176 | 97 | 0.63188 |
3345f841751d2a7f91199fc2b454c1a2efbefd81 | 2,848 | exs | Elixir | test/groupher_server_web/mutation/accounts/mailbox_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | test/groupher_server_web/mutation/accounts/mailbox_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | test/groupher_server_web/mutation/accounts/mailbox_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Test.Mutaion.Accounts.Mailbox do
use GroupherServer.TestTools
alias GroupherServer.Delivery
setup do
{:ok, user} = db_insert(:user)
{:ok, user2} = db_insert(:user)
{:ok, user3} = db_insert(:user)
user_conn = simu_conn(:user, user)
guest_conn = simu_conn(:guest)
... | 31.296703 | 98 | 0.623244 |
3346613754aee8326147337d6b24b90d8d6d697c | 17 | exs | Elixir | apps/feedex_job/test/test_helper.exs | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | null | null | null | apps/feedex_job/test/test_helper.exs | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | 10 | 2021-02-08T00:01:41.000Z | 2021-05-27T12:54:28.000Z | apps/feedex_job/test/test_helper.exs | andyl/ragged | 2baab0849e2dfc068652ecb2fe88a7c6fe5437d0 | [
"MIT"
] | null | null | null | # ExUnit.start()
| 8.5 | 16 | 0.647059 |
334661ee9d5a055c289d4fd81bd7d7705d50b245 | 10,766 | ex | Elixir | lib/elixir/lib/partition_supervisor.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 19,291 | 2015-01-01T02:42:49.000Z | 2022-03-31T21:01:40.000Z | lib/elixir/lib/partition_supervisor.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 8,082 | 2015-01-01T04:16:23.000Z | 2022-03-31T22:08:02.000Z | lib/elixir/lib/partition_supervisor.ex | doughsay/elixir | 7356a47047d0b54517bd6886603f09b1121dde2b | [
"Apache-2.0"
] | 3,472 | 2015-01-03T04:11:56.000Z | 2022-03-29T02:07:30.000Z | defmodule PartitionSupervisor do
@moduledoc """
A supervisor that starts multiple partitions of the same child.
Certain processes may become bottlenecks in large systems.
If those processes can have their state trivially partitioned,
in a way there is no dependency between them, then they can use
the `Part... | 33.749216 | 103 | 0.690693 |
33466b89e835392fa0eb92174db19204df938106 | 455 | ex | Elixir | lib/co2_offset/calculators/calculators.ex | styx/co2_offset | ac4b2bce8142e2d33ea089322c8dade34839448b | [
"Apache-2.0"
] | null | null | null | lib/co2_offset/calculators/calculators.ex | styx/co2_offset | ac4b2bce8142e2d33ea089322c8dade34839448b | [
"Apache-2.0"
] | null | null | null | lib/co2_offset/calculators/calculators.ex | styx/co2_offset | ac4b2bce8142e2d33ea089322c8dade34839448b | [
"Apache-2.0"
] | null | null | null | defmodule Co2Offset.Calculators do
alias Co2Offset.Calculators.Calculator
alias Co2Offset.Repo
@moduledoc """
This module is a root Calculator context.
"""
def change_calculator(calculator, attrs \\ %{}) do
Calculator.changeset(calculator, attrs)
end
def create_calculator(attrs \\ %{}) do
%Ca... | 21.666667 | 56 | 0.698901 |
3346ab674bdb7218a51ca1dc290e0fa572d15300 | 751 | ex | Elixir | lib/adyen_checkout_ex/model/company.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | 1 | 2021-05-30T20:45:10.000Z | 2021-05-30T20:45:10.000Z | lib/adyen_checkout_ex/model/company.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | lib/adyen_checkout_ex/model/company.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule AdyenCheckoutEx.Model.Company do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"homepage",
:"name",
:"registrationN... | 20.861111 | 91 | 0.627164 |
3346b748f2a2bbb5a8794f422f643bc26ec3b754 | 2,433 | exs | Elixir | test/mojito/pool/single_test.exs | amberbit/mojito | e4d1aefae722991f5b92f4df9fa8aa693777a674 | [
"MIT"
] | null | null | null | test/mojito/pool/single_test.exs | amberbit/mojito | e4d1aefae722991f5b92f4df9fa8aa693777a674 | [
"MIT"
] | null | null | null | test/mojito/pool/single_test.exs | amberbit/mojito | e4d1aefae722991f5b92f4df9fa8aa693777a674 | [
"MIT"
] | null | null | null | defmodule Mojito.Pool.SingleTest do
use ExSpec, async: true
doctest Mojito.Pool.Single
doctest Mojito.ConnServer
context "Mojito.Pool.Single" do
@http_port Application.get_env(:mojito, :test_server_http_port)
@https_port Application.get_env(:mojito, :test_server_https_port)
defp with_pool(fun) do
... | 27.647727 | 73 | 0.57501 |
3346b90eebfecf9ec1513d843c23133b23628a0d | 22,502 | ex | Elixir | lib/elixir/lib/record.ex | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/record.ex | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/record.ex | Nicd/elixir | e62ef92a4be1b562033d35b2d822cc9d6c661077 | [
"Apache-2.0"
] | null | null | null | defmodule Record do
@moduledoc %B"""
Functions to define Elixir records
A record is a tagged tuple which contains one or more elements and the first
element is a module. One creates a record by calling `defrecord` or
`defrecordp` which are documented in `Kernel`.
## Examples
defrecord FileInfo, ati... | 27.883519 | 122 | 0.640787 |
3346bb4e618a8956d13ece1faf0328dd2cc113a2 | 1,965 | ex | Elixir | lib/ex_admin/repo.ex | andriybohdan/ex_admin | e31c725078ac4e7390204a87d96360a21ffe7b90 | [
"MIT"
] | null | null | null | lib/ex_admin/repo.ex | andriybohdan/ex_admin | e31c725078ac4e7390204a87d96360a21ffe7b90 | [
"MIT"
] | null | null | null | lib/ex_admin/repo.ex | andriybohdan/ex_admin | e31c725078ac4e7390204a87d96360a21ffe7b90 | [
"MIT"
] | 1 | 2020-06-06T18:08:16.000Z | 2020-06-06T18:08:16.000Z | defmodule ExAdmin.Repo do
@moduledoc false
require Logger
def repo(resource \\ nil) do
repo = Application.get_env(:ex_admin, :repo)
case resource do
nil -> repo
_ -> get_repo_for_resource(resource, repo)
end
end
defp get_repo_for_resource(resource, default_repo) do
case Applicati... | 26.917808 | 87 | 0.653944 |
3346bcb72be5b9d5f3c45ac4e496dff71032769c | 593 | ex | Elixir | lib/bot/discord_api.ex | dustinrouillard/lanyard-redis | c1bed07df9501c5d8c2373741088b824c3b61331 | [
"MIT"
] | null | null | null | lib/bot/discord_api.ex | dustinrouillard/lanyard-redis | c1bed07df9501c5d8c2373741088b824c3b61331 | [
"MIT"
] | 1 | 2021-11-26T01:07:32.000Z | 2021-11-26T01:07:32.000Z | lib/bot/discord_api.ex | dustinrouillard/lanyard-redis | c1bed07df9501c5d8c2373741088b824c3b61331 | [
"MIT"
] | null | null | null | defmodule Lanyard.DiscordBot.DiscordApi do
@api_host "https://discord.com/api/v9"
def send_message(channel_id, content) when is_binary(content) do
Lanyard.Metrics.Collector.inc(:counter, :lanyard_discord_messages_sent)
sanitized_content =
content
|> String.replace("@", "@\u200b")
HTTPois... | 28.238095 | 79 | 0.655987 |
3346c22748f527e2d59b061fd838aaceb6397023 | 2,608 | exs | Elixir | test/elixir/test/erlang_views_test.exs | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | null | null | null | test/elixir/test/erlang_views_test.exs | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | null | null | null | test/elixir/test/erlang_views_test.exs | mtenrero/couchdb-vetcontrol | b7ede3ededdf0072c73f08d8f1217cb723b03f7a | [
"Apache-2.0"
] | null | null | null | defmodule ErlangViewsTest do
use CouchTestCase
@moduletag :erlang_views
@moduledoc """
basic 'smoke tests' of erlang views.
This is a port of the erlang_views.js test suite.
"""
@doc1 %{:_id => "1", :integer => 1, :string => "str1", :array => [1, 2, 3]}
@erlang_map_fun """
fun({Doc}) ->
K =... | 22.101695 | 77 | 0.576304 |
3346c53600b8c6f595221f433e566e584da0af44 | 3,887 | ex | Elixir | lib/phoenix/endpoint/cowboy_handler.ex | manukall/phoenix | 5ce19ebb63b1b31e37da5fe6465edb6c4850772e | [
"MIT"
] | null | null | null | lib/phoenix/endpoint/cowboy_handler.ex | manukall/phoenix | 5ce19ebb63b1b31e37da5fe6465edb6c4850772e | [
"MIT"
] | null | null | null | lib/phoenix/endpoint/cowboy_handler.ex | manukall/phoenix | 5ce19ebb63b1b31e37da5fe6465edb6c4850772e | [
"MIT"
] | null | null | null | defmodule Phoenix.Endpoint.CowboyHandler do
@moduledoc """
The Cowboy adapter for Phoenix.
It implements the required `child_spec/3` function as well
as the handler for the WebSocket transport.
## Custom dispatch options
*NOTE*: This feature depends on the internals of Cowboy 1.0 API
and how it integra... | 34.39823 | 103 | 0.649087 |
3346d9d6964f38f2c9a501e332139b9c2092966a | 2,455 | exs | Elixir | test/disc_based/read_only_file_test.exs | eldelto/chunker | 7a598d84f45448bac013a384e6811d9c3f872548 | [
"Apache-2.0"
] | null | null | null | test/disc_based/read_only_file_test.exs | eldelto/chunker | 7a598d84f45448bac013a384e6811d9c3f872548 | [
"Apache-2.0"
] | null | null | null | test/disc_based/read_only_file_test.exs | eldelto/chunker | 7a598d84f45448bac013a384e6811d9c3f872548 | [
"Apache-2.0"
] | null | null | null | defmodule Chunker.DiscBased.ReadOnlyFileTest do
use ExUnit.Case
alias Chunker.DiscBased
alias Chunker.DiscBased.ReadOnlyFile
alias Chunker.ReadOnlyError
doctest ReadOnlyFile
@readable_file_path "test/resources/tmp/test_file.txt"
setup do
File.write(@readable_file_path, "This is a test file which c... | 25.572917 | 97 | 0.716497 |
3346e73b9774dc9c412403c22dce32394f964d7b | 1,909 | ex | Elixir | lib/new_relixir/instrumenters/phoenix.ex | nikhilbelchada/new-relixir | 6595b7ef713617e4c69ff414371c01c0e168a706 | [
"MIT"
] | 192 | 2016-03-18T23:58:14.000Z | 2022-02-04T13:41:32.000Z | lib/new_relixir/instrumenters/phoenix.ex | nikhilbelchada/new-relixir | 6595b7ef713617e4c69ff414371c01c0e168a706 | [
"MIT"
] | 53 | 2016-05-06T17:57:06.000Z | 2019-01-25T21:11:52.000Z | lib/new_relixir/instrumenters/phoenix.ex | nikhilbelchada/new-relixir | 6595b7ef713617e4c69ff414371c01c0e168a706 | [
"MIT"
] | 55 | 2016-04-29T09:45:36.000Z | 2020-05-27T23:35:04.000Z | defmodule NewRelixir.Instrumenters.Phoenix do
@moduledoc """
New Relic instrumenter for Phoenix controllers.
It relies on the instrumentation API provided by `Phoenix.Endpoint`. To set it up,
include this module in the list of `instrumenters` of your Endpoint config:
config :my_app, MyAppWeb.Endpoint,
... | 40.617021 | 90 | 0.751179 |
3347729ddc7160bb7fd50c432e91fde9d8117506 | 1,061 | ex | Elixir | backend/lib/spades_chat/chat_supervisor.ex | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 9 | 2019-10-28T08:48:50.000Z | 2021-03-05T09:44:46.000Z | backend/lib/spades_chat/chat_supervisor.ex | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 227 | 2019-10-28T08:52:58.000Z | 2022-02-27T04:31:42.000Z | backend/lib/spades_chat/chat_supervisor.ex | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 4 | 2020-04-18T19:38:37.000Z | 2021-08-02T19:43:03.000Z | defmodule SpadesChat.ChatSupervisor do
@moduledoc """
A supervisor that starts `ChatServer` processes dynamically.
"""
use DynamicSupervisor
alias SpadesChat.ChatServer
def start_link(_arg) do
DynamicSupervisor.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
DynamicSupervi... | 21.653061 | 70 | 0.697455 |
33478add428cdfa677de8be381af415ef0f11713 | 178 | ex | Elixir | lib/beam_to_ex_ast/integer.ex | olafura/beam_to_ex_ast | 5451d189105c3a4b52aedbf4fbc4f0beca3b9b80 | [
"Apache-2.0"
] | 16 | 2016-02-12T15:15:58.000Z | 2021-08-24T21:48:34.000Z | lib/beam_to_ex_ast/integer.ex | olafura/beam_to_ex_ast | 5451d189105c3a4b52aedbf4fbc4f0beca3b9b80 | [
"Apache-2.0"
] | 1 | 2016-02-17T04:58:38.000Z | 2016-02-17T04:58:38.000Z | lib/beam_to_ex_ast/integer.ex | olafura/beam_to_ex_ast | 5451d189105c3a4b52aedbf4fbc4f0beca3b9b80 | [
"Apache-2.0"
] | 2 | 2016-02-17T03:21:23.000Z | 2016-03-08T09:23:27.000Z | import ProtocolEx
alias BeamToExAst.Translate
defimplEx BeamToExAst.Integer, {:integer, _ln, _i1}, for: Translate do
def to_elixir({:integer, _ln, i1}, _) do
i1
end
end
| 19.777778 | 70 | 0.730337 |
3347b541f01e6a70875c8187a31074ce369b644d | 247 | ex | Elixir | lib/commanded/scheduler/schedule/schedule_cancelled.ex | utrustdev/commanded-scheduler | 7532f192d39df2d0b7d1d500973ceaa8ec987ed3 | [
"MIT"
] | 31 | 2017-11-25T00:18:12.000Z | 2022-03-03T20:11:17.000Z | lib/commanded/scheduler/schedule/schedule_cancelled.ex | utrustdev/commanded-scheduler | 7532f192d39df2d0b7d1d500973ceaa8ec987ed3 | [
"MIT"
] | 12 | 2018-01-09T21:18:30.000Z | 2021-09-06T10:35:43.000Z | lib/commanded/scheduler/schedule/schedule_cancelled.ex | utrustdev/commanded-scheduler | 7532f192d39df2d0b7d1d500973ceaa8ec987ed3 | [
"MIT"
] | 13 | 2018-02-08T15:15:11.000Z | 2020-08-13T12:25:18.000Z | defmodule Commanded.Scheduler.ScheduleCancelled do
@moduledoc false
@type t :: %__MODULE__{
schedule_uuid: String.t(),
name: String.t()
}
@derive Jason.Encoder
defstruct [
:schedule_uuid,
:name
]
end
| 17.642857 | 50 | 0.619433 |
3347c250e855042d2ad6b5d96d9bb9b7cdd5fe9e | 26,303 | ex | Elixir | lib/elixir/lib/exception.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/exception.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/exception.ex | xtian/elixir | c680eb1a3992309c272e8f808e15990ea5318d6e | [
"Apache-2.0"
] | null | null | null | defmodule Exception do
@moduledoc """
Functions to format throw/catch/exit and exceptions.
Note that stacktraces in Elixir are updated on throw,
errors and exits. For example, at any given moment,
`System.stacktrace/0` will return the stacktrace for the
last throw/error/exit that occurred in the current pr... | 28.131551 | 153 | 0.667376 |
3347dff30b72c09e07d148ff3922440ff0c75f5b | 56 | ex | Elixir | testData/org/elixir_lang/parser_definition/hexadecimal_whole_number_parsing_test_case/ObsoleteValidDigits.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/hexadecimal_whole_number_parsing_test_case/ObsoleteValidDigits.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/hexadecimal_whole_number_parsing_test_case/ObsoleteValidDigits.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | # all valid hexadecimal digits
0X0123456789ABCDEFabcdef
| 18.666667 | 30 | 0.875 |
3347fafb8c1f17371134691bef1b8fdba084551b | 978 | ex | Elixir | apps/ex_wire/lib/ex_wire/tcp_listening_supervisor.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 152 | 2018-10-27T04:52:03.000Z | 2022-03-26T10:34:00.000Z | apps/ex_wire/lib/ex_wire/tcp_listening_supervisor.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 270 | 2018-04-14T07:34:57.000Z | 2018-10-25T18:10:45.000Z | apps/ex_wire/lib/ex_wire/tcp_listening_supervisor.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 25 | 2018-10-27T12:15:13.000Z | 2022-01-25T20:31:14.000Z | defmodule ExWire.TCPListeningSupervisor do
@moduledoc """
Top level supervisor for all incoming TCP communications. When a new
connection comes in, we accept and hand it off to a new `P2P.Server`
child.
"""
use Supervisor
require Logger
alias ExWire.Config
alias ExWire.TCP.InboundConnectionsSuperviso... | 29.636364 | 88 | 0.735174 |
3347fe0fc1fa09ddeee7aee05e7e37517fa06613 | 2,079 | ex | Elixir | apps/andi/lib/andi/dataset_cache.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/andi/lib/andi/dataset_cache.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/andi/lib/andi/dataset_cache.ex | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule Andi.DatasetCache do
@moduledoc false
use GenServer
require Logger
alias Andi.Services.DatasetStore
def start_link(_) do
GenServer.start_link(__MODULE__, [], name: __MODULE__)
end
def put(datasets) when is_list(datasets) do
Enum.each(datasets, &put/1)
end
def put(%SmartCity.Data... | 24.174419 | 127 | 0.633478 |
33480774662c0b916a68c7b5765973b5e688b973 | 2,009 | exs | Elixir | test/thrift/parser/parse_error_test.exs | CultivateHQ/elixir-thrift | d285ddc0f134afc6f7d8c5d0b504a8d27157da9a | [
"Apache-2.0"
] | null | null | null | test/thrift/parser/parse_error_test.exs | CultivateHQ/elixir-thrift | d285ddc0f134afc6f7d8c5d0b504a8d27157da9a | [
"Apache-2.0"
] | 1 | 2018-03-08T18:17:35.000Z | 2021-06-10T15:34:13.000Z | test/thrift/parser/parse_error_test.exs | CultivateHQ/elixir-thrift | d285ddc0f134afc6f7d8c5d0b504a8d27157da9a | [
"Apache-2.0"
] | null | null | null | defmodule Thrift.Parser.ParseErrorTest do
use ExUnit.Case
@project_root Path.expand("../..", __DIR__)
@test_file_dir Path.join([@project_root, "tmp", "parse_error_test"])
import Thrift.Parser, only: [parse: 1, parse_file: 1]
setup do
File.rm_rf!(@test_file_dir)
File.mkdir_p!(@test_file_dir)
on_... | 22.829545 | 74 | 0.62668 |
3348081343f5c98e6c7ca2d03eef4a5380349eea | 312 | ex | Elixir | lib/notified/email.ex | fremantle-industries/notified | f8566676dbf6b17f85964941ee1cf533c8393890 | [
"MIT"
] | 13 | 2021-05-13T22:29:17.000Z | 2021-11-21T09:57:12.000Z | lib/notified/email.ex | fremantle-industries/notified | f8566676dbf6b17f85964941ee1cf533c8393890 | [
"MIT"
] | 14 | 2021-09-01T14:01:36.000Z | 2022-03-01T14:02:44.000Z | lib/notified/email.ex | fremantle-industries/notified | f8566676dbf6b17f85964941ee1cf533c8393890 | [
"MIT"
] | 2 | 2021-05-20T18:03:50.000Z | 2022-01-25T23:07:18.000Z | defmodule Notified.Email do
import Bamboo.Email
def base_email(to, notification) do
from = Notified.Config.fetch_env!(:from)
new_email(
to: to,
from: from,
subject: notification.subject,
html_body: notification.message,
text_body: notification.message
)
end
end
| 19.5 | 44 | 0.673077 |
33482e822d982e3cb71a8947dfbb271d5f28c489 | 1,205 | ex | Elixir | lib/ash/registry/extensions/resource_validations/transformers/ensure_resources_compiled.ex | joshprice/ash | e452c4091918a88d51063000f7dc44b2f54f5f96 | [
"MIT"
] | null | null | null | lib/ash/registry/extensions/resource_validations/transformers/ensure_resources_compiled.ex | joshprice/ash | e452c4091918a88d51063000f7dc44b2f54f5f96 | [
"MIT"
] | null | null | null | lib/ash/registry/extensions/resource_validations/transformers/ensure_resources_compiled.ex | joshprice/ash | e452c4091918a88d51063000f7dc44b2f54f5f96 | [
"MIT"
] | null | null | null | defmodule Ash.Registry.ResourceValidations.Transformers.EnsureResourcesCompiled do
@moduledoc """
Ensures that all resources for a given registry are compiled.
"""
use Ash.Dsl.Transformer
require Logger
@impl true
def after_compile?, do: true
@impl true
def transform(registry, dsl) do
registry
... | 23.627451 | 93 | 0.587552 |
3348449934c06fa14923dde41ea3ff259dd94b5e | 1,754 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/write_instruction.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/write_instruction.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/write_instruction.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... | 34.392157 | 78 | 0.743444 |
33484c9a96c754cbd9360bfdb1a8eabccf94d61e | 2,116 | ex | Elixir | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/diagnostics.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/diagnostics.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/model/diagnostics.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... | 38.472727 | 244 | 0.73535 |
33484f5b4f978dbb88508f68e371f33c35af8b04 | 3,967 | ex | Elixir | lib/tz_world/backend/dets.ex | LostKobrakai/tz_world | 65e138301adc0c9e6d6135897d2607ef6c361bca | [
"MIT"
] | null | null | null | lib/tz_world/backend/dets.ex | LostKobrakai/tz_world | 65e138301adc0c9e6d6135897d2607ef6c361bca | [
"MIT"
] | null | null | null | lib/tz_world/backend/dets.ex | LostKobrakai/tz_world | 65e138301adc0c9e6d6135897d2607ef6c361bca | [
"MIT"
] | null | null | null | defmodule TzWorld.Backend.Dets do
@moduledoc false
@behaviour TzWorld.Backend
use GenServer
alias Geo.Point
@timeout 10_000
@tz_world_version :tz_world_version
@doc false
def start_link(options \\ []) do
GenServer.start_link(__MODULE__, options, name: __MODULE__)
end
def init(_state) do
... | 25.429487 | 79 | 0.616839 |
3348562fbc3ca8ae0a81b0060f26865544de54c8 | 69 | exs | Elixir | test/neural_net_test.exs | knewter/neural_net | bbef6172cc285c83ba0ba4df21c164688537e207 | [
"MIT"
] | null | null | null | test/neural_net_test.exs | knewter/neural_net | bbef6172cc285c83ba0ba4df21c164688537e207 | [
"MIT"
] | null | null | null | test/neural_net_test.exs | knewter/neural_net | bbef6172cc285c83ba0ba4df21c164688537e207 | [
"MIT"
] | null | null | null | defmodule NeuralNetTest do
use ExUnit.Case
doctest NeuralNet
end
| 13.8 | 26 | 0.811594 |
33488d9e32893955bf1500ccf36a84dfabb8de26 | 1,587 | exs | Elixir | priv/repo/migrations/20170209174603_create_account.exs | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 60 | 2017-05-09T19:08:26.000Z | 2021-01-20T11:09:42.000Z | priv/repo/migrations/20170209174603_create_account.exs | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 6 | 2017-05-10T15:43:16.000Z | 2020-07-15T07:14:41.000Z | priv/repo/migrations/20170209174603_create_account.exs | smpallen99/ucx_chat | 0dd98d0eb5e0537521844520ea2ba63a08fd3f19 | [
"MIT"
] | 10 | 2017-05-10T04:13:54.000Z | 2020-12-28T10:30:27.000Z | defmodule UcxChat.Repo.Migrations.CreateAccount do
use Ecto.Migration
def change do
create table(:accounts, primary_key: false) do
add :id, :binary_id, primary_key: true
add :language, :string, default: "en"
add :desktop_notification_enabled, :boolean, default: true, null: false
add :de... | 45.342857 | 77 | 0.695652 |
334899550194aaa13a234ac7cd220edadfbba565 | 604 | exs | Elixir | day16/mix.exs | bjorng/advent-of-code-2016 | fb3e40ae2fd52d761f6c0bf55e7634277917ba25 | [
"Apache-2.0"
] | 1 | 2021-05-12T11:30:15.000Z | 2021-05-12T11:30:15.000Z | day16/mix.exs | bjorng/advent-of-code-2016 | fb3e40ae2fd52d761f6c0bf55e7634277917ba25 | [
"Apache-2.0"
] | null | null | null | day16/mix.exs | bjorng/advent-of-code-2016 | fb3e40ae2fd52d761f6c0bf55e7634277917ba25 | [
"Apache-2.0"
] | null | null | null | defmodule Day16.MixProject do
use Mix.Project
def project do
[
app: :day16,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applic... | 20.133333 | 87 | 0.56457 |
3348b39c796565bae567982604679014c806dba7 | 2,137 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/data_filter.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sheets/lib/google_api/sheets/v4/model/data_filter.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sheets/lib/google_api/sheets/v4/model/data_filter.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.320755 | 232 | 0.739354 |
3348b696ca99855ff1502cfcaa29c199673dae67 | 396 | ex | Elixir | priv/catalogue/button/example01.ex | joerichsen/surface_bootstrap | 14a8b57126ead9a6593d628b9962e167fc01030d | [
"MIT"
] | null | null | null | priv/catalogue/button/example01.ex | joerichsen/surface_bootstrap | 14a8b57126ead9a6593d628b9962e167fc01030d | [
"MIT"
] | null | null | null | priv/catalogue/button/example01.ex | joerichsen/surface_bootstrap | 14a8b57126ead9a6593d628b9962e167fc01030d | [
"MIT"
] | null | null | null | defmodule SurfaceBootstrap.Catalogue.Button.Example01 do
use Surface.Catalogue.Example,
subject: SurfaceBootstrap.Button,
catalogue: SurfaceBootstrap.Catalogue,
title: "Label",
height: "90px",
container: {:div, class: "buttons"}
def render(assigns) do
~H"""
<Button color="secondary" lab... | 24.75 | 56 | 0.679293 |
3348bf6263ae274533ac1b3a6655a097c7916f5f | 1,333 | exs | Elixir | test/geo_point_test.exs | 3vangelos/GeoPoint | d2df54f5de1ba12b51832e3591606edddc7ff6a2 | [
"MIT"
] | null | null | null | test/geo_point_test.exs | 3vangelos/GeoPoint | d2df54f5de1ba12b51832e3591606edddc7ff6a2 | [
"MIT"
] | null | null | null | test/geo_point_test.exs | 3vangelos/GeoPoint | d2df54f5de1ba12b51832e3591606edddc7ff6a2 | [
"MIT"
] | null | null | null | defmodule GeoPointTest do
use ExUnit.Case
doctest GeoPoint
test "create GeoPoint" do
point = %GeoPoint{lat: 1.0, lng: 2.0}
assert point.lat == 1.0
assert point.lng == 2.0
end
test "create GeoPoint from String" do
point = GeoPoint.from("1.0,2.0")
assert point.lat == 1.0
assert point.l... | 24.685185 | 42 | 0.614404 |
3348d480c70aa961b7fa26cf6e1aa944c8637a9e | 630 | exs | Elixir | spec/error_pipe/without_error_pipe_spec.exs | antonmi/flowex | 7597e2ae1bf53033679ba65e0be13a50ad6f1e5e | [
"Apache-2.0"
] | 422 | 2017-01-20T13:38:13.000Z | 2022-02-08T14:07:11.000Z | spec/error_pipe/without_error_pipe_spec.exs | antonmi/flowex | 7597e2ae1bf53033679ba65e0be13a50ad6f1e5e | [
"Apache-2.0"
] | 11 | 2017-01-26T15:40:36.000Z | 2020-07-02T21:02:18.000Z | spec/error_pipe/without_error_pipe_spec.exs | antonmi/flowex | 7597e2ae1bf53033679ba65e0be13a50ad6f1e5e | [
"Apache-2.0"
] | 20 | 2017-01-25T07:56:00.000Z | 2021-11-29T16:19:34.000Z | defmodule WithoutErrorPipeSpec do
use ESpec, async: true
defmodule Pipeline do
use Flowex.Pipeline
defstruct data: nil
pipe :one
pipe :two
pipe :three
def one(_struct, _opts), do: raise "error"
def two(struct, _opts), do: struct
def three(struct, _opts), do: struct
end
descri... | 19.6875 | 65 | 0.655556 |
3348d71e17af54143bae1b8d3075d75126a2a85b | 245 | ex | Elixir | lib/prop.ex | nolantait/prop | d68d87d623b1d5352ba1b0f1d44e17bd7a119a3e | [
"MIT"
] | 22 | 2021-06-29T09:25:52.000Z | 2022-03-16T09:17:24.000Z | lib/prop.ex | nolantait/prop | d68d87d623b1d5352ba1b0f1d44e17bd7a119a3e | [
"MIT"
] | 54 | 2021-06-28T19:54:17.000Z | 2022-03-27T06:49:30.000Z | lib/prop.ex | nolantait/prop | d68d87d623b1d5352ba1b0f1d44e17bd7a119a3e | [
"MIT"
] | 2 | 2022-01-08T10:16:30.000Z | 2022-02-20T09:45:50.000Z | defmodule Prop do
@moduledoc """
Prop keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
if it comes from the database, an external API or others.
"""
end
| 24.5 | 66 | 0.746939 |
3348dc11aaa823fd9d9cfebe5d241e5bfaa0503e | 123 | ex | Elixir | lib/nats.ex | aforward-oss/elixir-nats | f41f8181e8e98fab0b6ce95ebbff8db54a6a4037 | [
"MIT"
] | 82 | 2016-01-27T20:43:50.000Z | 2022-01-31T20:27:18.000Z | lib/nats.ex | aforward-oss/elixir-nats | f41f8181e8e98fab0b6ce95ebbff8db54a6a4037 | [
"MIT"
] | 21 | 2016-01-28T16:49:55.000Z | 2019-04-17T16:46:32.000Z | lib/nats.ex | aforward-oss/elixir-nats | f41f8181e8e98fab0b6ce95ebbff8db54a6a4037 | [
"MIT"
] | 17 | 2016-01-28T16:14:51.000Z | 2021-04-07T11:00:07.000Z | # Copyright 2016 Apcera Inc. All rights reserved.
defmodule Nats do
@moduledoc """
NATS framework for Elixir
"""
end
| 17.571429 | 49 | 0.715447 |
3348e0e8b0dd1e46d71ce581dc70a1e87e038fb3 | 478 | exs | Elixir | eSalud/test/models/diagnostic_test.exs | ret16339/BaseDeDatosES | 0a6daa40be857c5a31d4fa5afba22c764bf9f044 | [
"Apache-2.0"
] | null | null | null | eSalud/test/models/diagnostic_test.exs | ret16339/BaseDeDatosES | 0a6daa40be857c5a31d4fa5afba22c764bf9f044 | [
"Apache-2.0"
] | null | null | null | eSalud/test/models/diagnostic_test.exs | ret16339/BaseDeDatosES | 0a6daa40be857c5a31d4fa5afba22c764bf9f044 | [
"Apache-2.0"
] | null | null | null | defmodule ESalud.DiagnosticTest do
use ESalud.ModelCase
alias ESalud.Diagnostic
@valid_attrs %{description: "some content", treatment: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Diagnostic.changeset(%Diagnostic{}, @valid_attrs)
assert changeset.valid?
... | 25.157895 | 72 | 0.742678 |
3348e84d28372dca06a9646ceecdf5adcd162c80 | 14,446 | ex | Elixir | lib/phoenix/view.ex | bhicks/phoenix | 2c43d798c184f6085cd2765d6cb2b463c87edac7 | [
"MIT"
] | null | null | null | lib/phoenix/view.ex | bhicks/phoenix | 2c43d798c184f6085cd2765d6cb2b463c87edac7 | [
"MIT"
] | null | null | null | lib/phoenix/view.ex | bhicks/phoenix | 2c43d798c184f6085cd2765d6cb2b463c87edac7 | [
"MIT"
] | null | null | null | defmodule Phoenix.View do
@moduledoc """
Defines the view layer of a Phoenix application.
This module is used to define the application's main view, which
serves as the base for all other views and templates.
The view layer also contains conveniences for rendering templates,
including support for layouts ... | 32.317673 | 100 | 0.684134 |
33490eb1a553370eac9ed3b4c0fb51038f241da7 | 1,603 | ex | Elixir | apps/omg_watcher/lib/omg_watcher/api/transaction.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 177 | 2018-08-24T03:51:02.000Z | 2020-05-30T13:29:25.000Z | apps/omg_watcher/lib/omg_watcher/api/transaction.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 1,042 | 2018-08-25T00:52:39.000Z | 2020-06-01T05:15:17.000Z | apps/omg_watcher/lib/omg_watcher/api/transaction.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 47 | 2018-08-24T12:06:33.000Z | 2020-04-28T11:49:25.000Z | # Copyright 2019-2020 OMG Network 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... | 32.06 | 86 | 0.72801 |
3349123c15e62b35403ae45557b5220534e69764 | 3,193 | exs | Elixir | niex/test/niex/state_test.exs | rellen/elixir_nx_demo | a0334e5f3b76f09421bf9c5bcb4c85bb3e929aad | [
"Apache-2.0"
] | 1 | 2021-04-10T01:02:29.000Z | 2021-04-10T01:02:29.000Z | test/niex/state_test.exs | team-alembic/elixir_nx_demo | a0334e5f3b76f09421bf9c5bcb4c85bb3e929aad | [
"Apache-2.0"
] | null | null | null | test/niex/state_test.exs | team-alembic/elixir_nx_demo | a0334e5f3b76f09421bf9c5bcb4c85bb3e929aad | [
"Apache-2.0"
] | 1 | 2021-03-24T23:04:57.000Z | 2021-03-24T23:04:57.000Z | defmodule Niex.StateTest do
use Niex.DataCase
test "creates a new with defaults" do
state = Niex.State.new()
assert(state.notebook.metadata[:name] == "Untitled Notebook")
end
test "loads from file" do
state = Niex.State.from_file("test/fixtures/notebook.niex")
assert(
%Niex.Notebook{
... | 27.765217 | 209 | 0.587535 |
334926fa9e46ade2564675c65225ac02d5e3a80b | 734 | ex | Elixir | lib/grizzly/zwave/commands/multi_channel_association_groupings_get.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | lib/grizzly/zwave/commands/multi_channel_association_groupings_get.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | lib/grizzly/zwave/commands/multi_channel_association_groupings_get.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.MultiChannelAssociationGroupingsGet do
@moduledoc """
This command is used to request the number of association groups that this node supports.
Params: -none-
"""
@behaviour Grizzly.ZWave.Command
alias Grizzly.ZWave.Command
alias Grizzly.ZWave.CommandClasses.MultiChann... | 19.837838 | 91 | 0.697548 |
33492c445541cd43cf3c40b5a0ba0e0a311bb84a | 61 | ex | Elixir | lib/otp_demo_web/views/page_view.ex | moroz/phoenix-totp-demo | b07b1925a1116ecbade15cb37764e4aebf442b5b | [
"MIT"
] | null | null | null | lib/otp_demo_web/views/page_view.ex | moroz/phoenix-totp-demo | b07b1925a1116ecbade15cb37764e4aebf442b5b | [
"MIT"
] | null | null | null | lib/otp_demo_web/views/page_view.ex | moroz/phoenix-totp-demo | b07b1925a1116ecbade15cb37764e4aebf442b5b | [
"MIT"
] | null | null | null | defmodule OtpDemoWeb.PageView do
use OtpDemoWeb, :view
end
| 15.25 | 32 | 0.803279 |
334959dd3d0835ddc5421201f720a7dd69e21f08 | 1,176 | ex | Elixir | lib/membrane/rtcp/header.ex | simoexpo/membrane_rtp_plugin | 925053eb6ad0befbfe79ab1dad51e40f3b68ae69 | [
"Apache-2.0"
] | null | null | null | lib/membrane/rtcp/header.ex | simoexpo/membrane_rtp_plugin | 925053eb6ad0befbfe79ab1dad51e40f3b68ae69 | [
"Apache-2.0"
] | null | null | null | lib/membrane/rtcp/header.ex | simoexpo/membrane_rtp_plugin | 925053eb6ad0befbfe79ab1dad51e40f3b68ae69 | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.RTCP.Header do
@moduledoc """
Struct describing 32-bit header common to all RTCP packets
"""
@enforce_keys [:packet_type, :packet_specific]
defstruct @enforce_keys
@type packet_type_t :: 200..204
@type packet_specific_t :: non_neg_integer()
@type t :: %__MODULE__{
packet... | 26.727273 | 86 | 0.607993 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.