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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1dd0d16859ca6f351fb67acb472f54774b3105bf | 968 | exs | Elixir | react/tutorials/trello/phoenix_trello/config/config.exs | VPashkov/learning | 0146fe15b6e7cec728885b0790a0e17b07a5905b | [
"MIT"
] | null | null | null | react/tutorials/trello/phoenix_trello/config/config.exs | VPashkov/learning | 0146fe15b6e7cec728885b0790a0e17b07a5905b | [
"MIT"
] | null | null | null | react/tutorials/trello/phoenix_trello/config/config.exs | VPashkov/learning | 0146fe15b6e7cec728885b0790a0e17b07a5905b | [
"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 :phoenix_trello,
ecto_repos: [PhoenixTre... | 34.571429 | 86 | 0.769628 |
1dd0f627c6580898101d6c448cdc4cf2317d55f7 | 3,031 | exs | Elixir | test/receptar/ingredients_test.exs | johannes-mueller/receptar | 6ab2cbf93c5da01409a9d8ed3d56a825e8350a1e | [
"Apache-2.0"
] | null | null | null | test/receptar/ingredients_test.exs | johannes-mueller/receptar | 6ab2cbf93c5da01409a9d8ed3d56a825e8350a1e | [
"Apache-2.0"
] | null | null | null | test/receptar/ingredients_test.exs | johannes-mueller/receptar | 6ab2cbf93c5da01409a9d8ed3d56a825e8350a1e | [
"Apache-2.0"
] | null | null | null | defmodule Receptar.IngredientsTest do
use Receptar.DataCase
alias Receptar.Ingredients
alias Receptar.Ingredients.Ingredient
alias Receptar.Substances
alias Receptar.Recipes
alias Receptar.Units
import Receptar.Seeder
describe "ingredients" do
setup do
insert_test_data()
end
defp ... | 27.0625 | 92 | 0.647641 |
1dd114e82c98aa59714fa59cd635be40d0d5fede | 641 | ex | Elixir | lib/mix/tasks/compiler.ex | NetonD/alguma-elixir | f618b8febf2792381151a19632f8ca7221fd2bb4 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/compiler.ex | NetonD/alguma-elixir | f618b8febf2792381151a19632f8ca7221fd2bb4 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/compiler.ex | NetonD/alguma-elixir | f618b8febf2792381151a19632f8ca7221fd2bb4 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Algumac do
use Mix.Task
import AlgumaElixir.Translate
@shortdoc "testando o mix"
def run(args) do
{output_file, _} = args |> List.pop_at(1)
args
|> List.first()
|> lexer()
|> parser()
|> take_tree()
|> translate(output_file)
binary_name = output_file |> Strin... | 20.677419 | 66 | 0.606864 |
1dd13935bb27960283dbecb59c5a1fde91e45f55 | 2,128 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1__celebrity_recognition_annotation.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1__celebrity_recognition_annotation.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1__celebrity_recognition_annotation.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.885246 | 228 | 0.767857 |
1dd142233f824c679920f1d4cd1c3a89658030ae | 6,404 | exs | Elixir | .credo.exs | NFIBrokerage/slipstream_telemetry_honeycomb | 2a8ecbb008dd403668a531bc1149aa2d4cdf825b | [
"Apache-2.0"
] | null | null | null | .credo.exs | NFIBrokerage/slipstream_telemetry_honeycomb | 2a8ecbb008dd403668a531bc1149aa2d4cdf825b | [
"Apache-2.0"
] | 2 | 2021-02-03T23:44:23.000Z | 2021-02-04T23:59:53.000Z | .credo.exs | NFIBrokerage/slipstream_telemetry_honeycomb | 2a8ecbb008dd403668a531bc1149aa2d4cdf825b | [
"Apache-2.0"
] | null | null | null | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 37.670588 | 92 | 0.634291 |
1dd17e208d37c1a73190b7e4974295b968671807 | 5,988 | ex | Elixir | apps/fares/lib/format.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/fares/lib/format.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/fares/lib/format.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defmodule Fares.Format do
@moduledoc """
Formatting functions for fare data.
"""
alias Fares.{Fare, Summary}
@type mode_type :: :bus_subway | :commuter_rail | :ferry
@doc "Formats the price of a fare as a traditional $dollar.cents value"
@spec price(Fare.t() | non_neg_integer | nil) :: String.t()
def ... | 34.022727 | 97 | 0.650468 |
1dd191f70e79692e10ba53d068b18f0c3be82753 | 1,852 | exs | Elixir | tutorials/phoenix/jwt_api/mix.exs | idfumg/ElixirSynopsis | 74c668d84300812dd41eb18772aecfb89bc7628b | [
"MIT"
] | null | null | null | tutorials/phoenix/jwt_api/mix.exs | idfumg/ElixirSynopsis | 74c668d84300812dd41eb18772aecfb89bc7628b | [
"MIT"
] | null | null | null | tutorials/phoenix/jwt_api/mix.exs | idfumg/ElixirSynopsis | 74c668d84300812dd41eb18772aecfb89bc7628b | [
"MIT"
] | null | null | null | defmodule JwtApi.Mixfile do
use Mix.Project
# Guardian (Elixir Authentication): https://hexdocs.pm/guardian/tutorial-start.html
# Comeonin (Password hashing): https://github.com/riverrun/comeonin
# Tutorial: https://medium.com/@pamit/building-a-restful-backend-with-elixir-phoenix-84fe390975c
def project do
... | 28.060606 | 98 | 0.604212 |
1dd1b8c2f9e1deb7b87c47d60507ecf86822fc08 | 6,035 | ex | Elixir | lib/mix/tasks/setup.ex | CMcDonald82/phoenix-api-starter | c3ece669ea047dc523c867e7609486f1a1818a1f | [
"MIT"
] | null | null | null | lib/mix/tasks/setup.ex | CMcDonald82/phoenix-api-starter | c3ece669ea047dc523c867e7609486f1a1818a1f | [
"MIT"
] | null | null | null | lib/mix/tasks/setup.ex | CMcDonald82/phoenix-api-starter | c3ece669ea047dc523c867e7609486f1a1818a1f | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Setup do
use Mix.Task
@shortdoc "Sets up a new clean-slate project using the phoenix-api-starter project as a base template"
@doc """
The main function that runs all the necessary functions to setup the new app from the phoenix-api-starter project
"""
def run([name, otp_name]) do
... | 30.326633 | 118 | 0.659486 |
1dd1beadd2fd0b36ccd3c8fdb46b2c54e376dd84 | 1,852 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/mobile_carriers_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/mobile_carriers_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/mobile_carriers_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 36.313725 | 162 | 0.75486 |
1dd1bfd49eea05d689612039505c44f00d030f76 | 451 | ex | Elixir | lib/converter/eu.ex | mwmiller/exoddic | dd590668a84079fb2eb0bb89f4599165abed9b54 | [
"MIT"
] | 3 | 2016-05-13T16:52:46.000Z | 2021-02-05T23:00:16.000Z | lib/converter/eu.ex | mwmiller/exoddic | dd590668a84079fb2eb0bb89f4599165abed9b54 | [
"MIT"
] | null | null | null | lib/converter/eu.ex | mwmiller/exoddic | dd590668a84079fb2eb0bb89f4599165abed9b54 | [
"MIT"
] | null | null | null | defmodule Exoddic.Converter.Eu do
@behaviour Exoddic.Converter
@moduledoc """
.eu-style decimal odds
"""
def from_prob(amount) when amount == 0, do: 0.0
def from_prob(amount) when amount != 0, do: 1 / amount
def to_prob(amount) when amount == 0, do: 0.0
def to_prob(amount) when amount != 0, do: 1 / ... | 28.1875 | 75 | 0.691796 |
1dd1c5334721c61d7dba6e5c7896a98f7b093e1c | 381 | exs | Elixir | testapp/priv/repo/migrations/20210319192104_create_invoices.exs | lukebakken/ecto-test | 7677c8ac925eb324cd1381a4bb21f8e3f320fe84 | [
"Unlicense"
] | null | null | null | testapp/priv/repo/migrations/20210319192104_create_invoices.exs | lukebakken/ecto-test | 7677c8ac925eb324cd1381a4bb21f8e3f320fe84 | [
"Unlicense"
] | null | null | null | testapp/priv/repo/migrations/20210319192104_create_invoices.exs | lukebakken/ecto-test | 7677c8ac925eb324cd1381a4bb21f8e3f320fe84 | [
"Unlicense"
] | null | null | null | defmodule TestApp.Repo.Migrations.CreateInvoices do
use Ecto.Migration
def change do
create table(:invoices, primary_key: false) do
add(:id, :uuid, primary_key: true)
add(:customer, :text)
add(:amount, :decimal, precision: 12, scale: 2)
add(:balance, :decimal, precision: 12, scale: 2)
... | 23.8125 | 54 | 0.645669 |
1dd1d4c45fa10bf4e11a28630d99e7fe6fe9b9c1 | 1,509 | ex | Elixir | lib/examples_web/live/bar_live.ex | iodevs/chart_example | 69202596fbf8a7b802c21d45d021f0021406ad39 | [
"MIT"
] | null | null | null | lib/examples_web/live/bar_live.ex | iodevs/chart_example | 69202596fbf8a7b802c21d45d021f0021406ad39 | [
"MIT"
] | null | null | null | lib/examples_web/live/bar_live.ex | iodevs/chart_example | 69202596fbf8a7b802c21d45d021f0021406ad39 | [
"MIT"
] | null | null | null | defmodule ExamplesWeb.BarLive do
use ExamplesWeb, :live_view
alias Chart.Bar
@impl true
def mount(_params, _session, socket) do
Phoenix.PubSub.subscribe(Examples.PubSub, "line_chart")
generate_bar_values()
{:ok, assign(socket, bar: bar_setup())}
end
@impl true
def handle_info({:gen, _x}, so... | 24.33871 | 81 | 0.62558 |
1dd1f9411c09fafe7608dbf281af1b9a25bcba78 | 86 | exs | Elixir | test/pdftotext_web/views/layout_view_test.exs | MSP95/pdftotext | f68fb0c661d76c0a14fd8c3c6d831a1d32675cbe | [
"MIT"
] | 5 | 2018-07-19T09:29:54.000Z | 2019-08-04T18:37:15.000Z | test/pdftotext_web/views/layout_view_test.exs | MSP95/pdftotext | f68fb0c661d76c0a14fd8c3c6d831a1d32675cbe | [
"MIT"
] | 1 | 2021-11-01T08:43:41.000Z | 2021-11-01T08:43:41.000Z | test/pdftotext_web/views/layout_view_test.exs | MSP95/pdftotext | f68fb0c661d76c0a14fd8c3c6d831a1d32675cbe | [
"MIT"
] | null | null | null | defmodule PdftotextWeb.LayoutViewTest do
use PdftotextWeb.ConnCase, async: true
end
| 21.5 | 40 | 0.837209 |
1dd2518d0abd2ecd96775cba79aacd5cca5f23cb | 6,741 | ex | Elixir | lib/oled/display.ex | pappersverk/oled | bae090796bc289268b06b7db58eb62111c422690 | [
"Apache-2.0"
] | 11 | 2019-12-06T10:32:33.000Z | 2022-02-03T19:28:06.000Z | lib/oled/display.ex | pappersverk/oled | bae090796bc289268b06b7db58eb62111c422690 | [
"Apache-2.0"
] | 7 | 2020-03-04T19:36:07.000Z | 2021-12-26T01:23:36.000Z | lib/oled/display.ex | pappersverk/oled | bae090796bc289268b06b7db58eb62111c422690 | [
"Apache-2.0"
] | 1 | 2022-01-12T05:04:53.000Z | 2022-01-12T05:04:53.000Z | defmodule OLED.Display do
@moduledoc """
Defines a display module
When used, the displaly expects an `:app` as option.
The `:app` should be the app that has the configuration.
Example:
defmodule MyApp.MyDisplay do
use OLED.Display, app: :my_app
end
Could be configured with:
con... | 26.332031 | 125 | 0.544726 |
1dd2717f72263ab975bfaa97d5d3282c110f0a3a | 377 | ex | Elixir | lib/lifx/supervisor.ex | brianmay/lifx | 64299668ef7beac6b71e19ca1479106eb3474933 | [
"Apache-2.0"
] | 1 | 2020-12-26T21:59:20.000Z | 2020-12-26T21:59:20.000Z | lib/lifx/supervisor.ex | brianmay/lifx | 64299668ef7beac6b71e19ca1479106eb3474933 | [
"Apache-2.0"
] | 9 | 2019-05-26T08:09:49.000Z | 2021-03-17T20:58:14.000Z | lib/lifx/supervisor.ex | brianmay/lifx | 64299668ef7beac6b71e19ca1479106eb3474933 | [
"Apache-2.0"
] | 2 | 2020-05-29T01:24:44.000Z | 2020-11-18T17:46:07.000Z | defmodule Lifx.Supervisor do
@moduledoc false
use Supervisor
require Logger
def start_link do
Supervisor.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
children = [
{Lifx.Client.Server, []},
{Lifx.Poller.Server, []},
{Lifx.DeviceSupervisor, []}
]
Sup... | 17.952381 | 60 | 0.655172 |
1dd27b18c67bd6555ad7c8ab2a42c17de09e816c | 306 | exs | Elixir | priv/repo/migrations/20210506222834_create_likes.exs | elixirprogrammer/InstagramClonePETAL | 5710f89de32a95b0416a960a46d081e7ad4833ab | [
"MIT"
] | 69 | 2021-04-11T21:57:26.000Z | 2022-03-30T01:09:40.000Z | priv/repo/migrations/20210506222834_create_likes.exs | hminy572/InstagramClonePETAL | 577cdad0e17399e47ef9d3f8e789bd07e33012b9 | [
"MIT"
] | 1 | 2021-04-16T17:38:11.000Z | 2021-04-16T17:38:11.000Z | priv/repo/migrations/20210506222834_create_likes.exs | hminy572/InstagramClonePETAL | 577cdad0e17399e47ef9d3f8e789bd07e33012b9 | [
"MIT"
] | 4 | 2021-04-16T10:45:18.000Z | 2021-07-23T15:08:08.000Z | defmodule InstagramClone.Repo.Migrations.CreatePostLikes do
use Ecto.Migration
def change do
create table(:likes) do
add :liked_id, :integer
add :user_id, references(:users, on_delete: :delete_all)
timestamps()
end
create index(:likes, [:user_id, :liked_id])
end
end
| 20.4 | 62 | 0.689542 |
1dd282e9087707f51480556830fd05a996175333 | 3,943 | exs | Elixir | apps/artemis/test/artemis/contexts/machine/list_machines_test.exs | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis/test/artemis/contexts/machine/list_machines_test.exs | chrislaskey/atlas_dashboard | 9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis/test/artemis/contexts/machine/list_machines_test.exs | chrislaskey/atlas_dashboard | 9009ef5aac8fefba126fa7d3e3b82d1b610ee6fe | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule Artemis.ListMachinesTest do
use Artemis.DataCase
import Artemis.Factories
alias Artemis.ListMachines
alias Artemis.Repo
alias Artemis.Machine
setup do
Repo.delete_all(Machine)
{:ok, []}
end
describe "call" do
test "returns empty list when no machines exist" do
assert Lis... | 22.531429 | 78 | 0.624144 |
1dd2c59523beac35808268a78f0a72d8805cf94d | 1,172 | ex | Elixir | web/channels/user_socket.ex | bionikspoon/classroom-dashboard | c324eeab568335591daf83ae0bdd9a60d25f4595 | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | bionikspoon/classroom-dashboard | c324eeab568335591daf83ae0bdd9a60d25f4595 | [
"MIT"
] | null | null | null | web/channels/user_socket.ex | bionikspoon/classroom-dashboard | c324eeab568335591daf83ae0bdd9a60d25f4595 | [
"MIT"
] | null | null | null | defmodule Dashboard.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", Dashboard.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and aut... | 30.842105 | 83 | 0.703072 |
1dd2e699b8b57a337034965c38381ab05c5b9ba9 | 109 | exs | Elixir | test/test_helper.exs | lukebakken/db_connection | aa53f2d9c78aa6b5f6a9c0615459e97ec89f0c32 | [
"Apache-2.0"
] | 227 | 2016-06-16T13:56:02.000Z | 2022-03-09T23:03:58.000Z | test/test_helper.exs | lukebakken/db_connection | aa53f2d9c78aa6b5f6a9c0615459e97ec89f0c32 | [
"Apache-2.0"
] | 198 | 2016-06-20T08:08:15.000Z | 2022-03-06T17:54:37.000Z | test/test_helper.exs | lukebakken/db_connection | aa53f2d9c78aa6b5f6a9c0615459e97ec89f0c32 | [
"Apache-2.0"
] | 110 | 2016-06-20T03:50:39.000Z | 2022-03-03T20:53:01.000Z | ExUnit.start(capture_log: true, assert_receive_timeout: 500)
Code.require_file("test_support.exs", __DIR__)
| 27.25 | 60 | 0.816514 |
1dd2ea54347a72f512b7bb052c00802fdb654930 | 55 | ex | Elixir | dash/lib/dash_web/views/page_view.ex | bhaveshpoddar94/BitcoinRealtime | e9a60ae80596271048c81cbb2c3be7e3428d2a8f | [
"MIT"
] | null | null | null | dash/lib/dash_web/views/page_view.ex | bhaveshpoddar94/BitcoinRealtime | e9a60ae80596271048c81cbb2c3be7e3428d2a8f | [
"MIT"
] | null | null | null | dash/lib/dash_web/views/page_view.ex | bhaveshpoddar94/BitcoinRealtime | e9a60ae80596271048c81cbb2c3be7e3428d2a8f | [
"MIT"
] | null | null | null | defmodule DashWeb.PageView do
use DashWeb, :view
end
| 13.75 | 29 | 0.781818 |
1dd2f56304f45257a1fe8c252ad13ec33ff6dc0d | 1,057 | ex | Elixir | lib/queries/outliers.ex | aseigo/ecto_psql_extras | 7050708dfd5a8b8ba522e9606ddb3caeac714e93 | [
"MIT"
] | null | null | null | lib/queries/outliers.ex | aseigo/ecto_psql_extras | 7050708dfd5a8b8ba522e9606ddb3caeac714e93 | [
"MIT"
] | null | null | null | lib/queries/outliers.ex | aseigo/ecto_psql_extras | 7050708dfd5a8b8ba522e9606ddb3caeac714e93 | [
"MIT"
] | null | null | null | defmodule EctoPSQLExtras.Outliers do
@behaviour EctoPSQLExtras
def info do
%{
title: "10 queries that have longest execution time in aggregate",
order_by: [exec_time: :desc],
limit: 10,
columns: [
%{name: :query, type: :string},
%{name: :exec_time, type: :interval},
... | 30.2 | 110 | 0.654683 |
1dd32466e9cbaaa6f003b7118789ef860c17276f | 2,707 | exs | Elixir | test/avast_test.exs | DarkMarmot/avast | 1c8294cba77b5b7ea9b98030c29d06ee723e3e77 | [
"Apache-2.0"
] | null | null | null | test/avast_test.exs | DarkMarmot/avast | 1c8294cba77b5b7ea9b98030c29d06ee723e3e77 | [
"Apache-2.0"
] | null | null | null | test/avast_test.exs | DarkMarmot/avast | 1c8294cba77b5b7ea9b98030c29d06ee723e3e77 | [
"Apache-2.0"
] | null | null | null | defmodule DaggerTest do
use ExUnit.Case
require Logger
doctest Dagger
import Dagger.Schema
test "greets the world" do
# d =
# %Dagger{}
# |> Dagger.state(:x, 0)
# |> Dagger.state(:y, 0)
# |> Dagger.state(:z, 0)
# |> Dagger.target(:prod, [:x, :y], fn %{x: x,... | 22.940678 | 77 | 0.45253 |
1dd343589b9848511a02b02afa97144e84f530a9 | 795 | exs | Elixir | test/window_test.exs | elcritch/matrex_numerix | 5835a9b477d8ea41bb9b862272a0997fe37c1236 | [
"MIT"
] | 8 | 2020-01-08T06:55:36.000Z | 2021-03-10T15:44:46.000Z | test/window_test.exs | elcritch/matrex_numerix | 5835a9b477d8ea41bb9b862272a0997fe37c1236 | [
"MIT"
] | null | null | null | test/window_test.exs | elcritch/matrex_numerix | 5835a9b477d8ea41bb9b862272a0997fe37c1236 | [
"MIT"
] | null | null | null | defmodule MatrexNumerix.WindowTest do
use ExUnit.Case, async: true
import ListHelper
alias MatrexNumerix.Window
test "gaussian is correct for specific examples" do
[
{0.0, 1.0},
{0.1, 0.99501247919268232},
{1.0, 0.60653065971263342},
{3.0, 0.01110899653824231}
]
|> Enum.ea... | 25.645161 | 69 | 0.623899 |
1dd3abb55ac23bead2a305d7f9f074c4adf96d6a | 345 | ex | Elixir | lib/mix/tasks/eye_drops.ex | rkotze/eye_drops | 3c435a672bf59195b8c475f9d7e004fa3cf37507 | [
"MIT"
] | 55 | 2016-01-24T02:18:41.000Z | 2021-12-14T06:05:27.000Z | lib/mix/tasks/eye_drops.ex | rkotze/eye_drops | 3c435a672bf59195b8c475f9d7e004fa3cf37507 | [
"MIT"
] | 4 | 2016-02-10T09:16:25.000Z | 2017-11-06T18:42:22.000Z | lib/mix/tasks/eye_drops.ex | rkotze/eye_drops | 3c435a672bf59195b8c475f9d7e004fa3cf37507 | [
"MIT"
] | 8 | 2016-01-20T22:55:37.000Z | 2019-07-29T00:51:13.000Z | defmodule Mix.Tasks.EyeDrops do
use Mix.Task
alias EyeDrops.EyeBall
alias EyeDrops.Commands
def run(args) do
:ok = Application.start :fs, :permanent
IO.puts "Eye drops applied"
{:ok, switches} = Commands.parse(args)
{:ok, server} = EyeBall.open(switches)
EyeBall.run_on_start(server)
C... | 19.166667 | 43 | 0.689855 |
1dd3e0de3cecd3aa6a51d3312619e47aeb47eda9 | 10,513 | exs | Elixir | test/soap/wsdl_test.exs | alectower/soap | f38309591072dbda5b8c0dbd951200930ee570f6 | [
"MIT"
] | 1 | 2020-01-19T04:44:14.000Z | 2020-01-19T04:44:14.000Z | test/soap/wsdl_test.exs | alectower/soap | f38309591072dbda5b8c0dbd951200930ee570f6 | [
"MIT"
] | null | null | null | test/soap/wsdl_test.exs | alectower/soap | f38309591072dbda5b8c0dbd951200930ee570f6 | [
"MIT"
] | 1 | 2021-11-01T09:43:35.000Z | 2021-11-01T09:43:35.000Z | defmodule Soap.WsdlTest do
use ExUnit.Case
doctest Soap.Wsdl
alias Soap.Wsdl
import Mock
@wsdl Fixtures.load_wsdl("SendService.wsdl")
@parsed_wsdl %{
complex_types: [
%{
name: "sendMessageMultipleRecipientsResponse",
type: "tns:sendMessageMultipleRecipientsResponse"
},
... | 35.278523 | 104 | 0.574812 |
1dd3ee0da61fb9a154134a48677e402351a2bdd9 | 2,338 | exs | Elixir | test/plug/logger_test.exs | geemus/plug | 5b6a47754017c641fe9c7027365baa8d5a336c2d | [
"Apache-2.0"
] | 1 | 2018-04-09T16:40:02.000Z | 2018-04-09T16:40:02.000Z | test/plug/logger_test.exs | geemus/plug | 5b6a47754017c641fe9c7027365baa8d5a336c2d | [
"Apache-2.0"
] | null | null | null | test/plug/logger_test.exs | geemus/plug | 5b6a47754017c641fe9c7027365baa8d5a336c2d | [
"Apache-2.0"
] | null | null | null | defmodule Plug.LoggerTest do
use ExUnit.Case
use Plug.Test
import ExUnit.CaptureIO
require Logger
defmodule MyPlug do
use Plug.Builder
plug Plug.Logger
plug :passthrough
defp passthrough(conn, _) do
Plug.Conn.send_resp(conn, 200, "Passthrough")
end
end
defp call(conn) do
... | 28.512195 | 110 | 0.627032 |
1dd44f9480013e963161e15bf78275067210bfde | 894 | ex | Elixir | mindcrunch/lib/mindcrunch/application.ex | dtangster/cmpe210-project | bdc482e6dde315316d9aa05d13be7b0fe6959786 | [
"MIT"
] | null | null | null | mindcrunch/lib/mindcrunch/application.ex | dtangster/cmpe210-project | bdc482e6dde315316d9aa05d13be7b0fe6959786 | [
"MIT"
] | null | null | null | mindcrunch/lib/mindcrunch/application.ex | dtangster/cmpe210-project | bdc482e6dde315316d9aa05d13be7b0fe6959786 | [
"MIT"
] | null | null | null | defmodule Mindcrunch.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Start the endpoint when the application starts
... | 29.8 | 69 | 0.725951 |
1dd45a7f91b47ae99255decb0dfd5040873eada9 | 13,025 | ex | Elixir | lib/zitadel/org.pb.ex | jshmrtn/zitadel_api | 10601b7382df92a4c8f2a3ad1e083634dcaf6243 | [
"Apache-2.0"
] | 3 | 2020-11-11T15:24:21.000Z | 2022-02-04T20:40:36.000Z | lib/zitadel/org.pb.ex | jshmrtn/zitadel_api | 10601b7382df92a4c8f2a3ad1e083634dcaf6243 | [
"Apache-2.0"
] | 2 | 2020-11-11T15:15:36.000Z | 2020-11-11T15:19:00.000Z | lib/zitadel/org.pb.ex | jshmrtn/zitadel_api | 10601b7382df92a4c8f2a3ad1e083634dcaf6243 | [
"Apache-2.0"
] | null | null | null | defmodule Zitadel.Org.V1.OrgState do
use Protobuf, enum: true, syntax: :proto3
@type org_state_unspecified :: :ORG_STATE_UNSPECIFIED
@type org_state_active :: :ORG_STATE_ACTIVE
@type org_state_inactive :: :ORG_STATE_INACTIVE
@type t :: integer | org_state_unspecified() | org_state_active() | org_state_inactiv... | 41.881029 | 98 | 0.585336 |
1dd474a03373c758368848062e356ec4c9d2a618 | 187 | ex | Elixir | lib/grpc/admin/common.pb.ex | rockneurotiko/bigtable | a83d0c3e513a212265b2f6fc775407fa71ac049c | [
"MIT"
] | 17 | 2019-01-22T12:59:38.000Z | 2021-12-13T10:41:52.000Z | lib/grpc/admin/common.pb.ex | rockneurotiko/bigtable | a83d0c3e513a212265b2f6fc775407fa71ac049c | [
"MIT"
] | 17 | 2019-01-27T18:11:33.000Z | 2020-02-24T10:16:08.000Z | lib/grpc/admin/common.pb.ex | rockneurotiko/bigtable | a83d0c3e513a212265b2f6fc775407fa71ac049c | [
"MIT"
] | 3 | 2019-02-04T17:08:09.000Z | 2021-04-07T07:13:53.000Z | defmodule Google.Bigtable.Admin.V2.StorageType do
@moduledoc false
use Protobuf, enum: true, syntax: :proto3
field :STORAGE_TYPE_UNSPECIFIED, 0
field :SSD, 1
field :HDD, 2
end
| 20.777778 | 49 | 0.743316 |
1dd477b8b5cf062802ace3670c7df4fa0b9f243f | 7,349 | ex | Elixir | apps/ewallet_db/test/support/factory.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/ewallet_db/test/support/factory.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_db/test/support/factory.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | defmodule EWalletDB.Factory do
@moduledoc """
Factories used for testing.
"""
use ExMachina.Ecto, repo: EWalletDB.Repo
alias ExMachina.Strategy
alias EWalletConfig.{Types.WalletAddress, Helpers.Crypto}
alias EWalletConfig.System
alias EWalletDB.{
Account,
AccountUser,
APIKey,
Audit,
... | 22.612308 | 84 | 0.629065 |
1dd492d8d7de48d5d47fd0719c1fb080103d2456 | 426 | exs | Elixir | apps/blog/test/models/category_test.exs | richeterre/phoenix-example | cd01a3401387c63dc11e64ca89e500e8eabd5fb0 | [
"MIT"
] | null | null | null | apps/blog/test/models/category_test.exs | richeterre/phoenix-example | cd01a3401387c63dc11e64ca89e500e8eabd5fb0 | [
"MIT"
] | null | null | null | apps/blog/test/models/category_test.exs | richeterre/phoenix-example | cd01a3401387c63dc11e64ca89e500e8eabd5fb0 | [
"MIT"
] | null | null | null | defmodule Blog.CategoryTest do
use Blog.ModelCase
alias Blog.Category
@valid_attrs %{name: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Category.changeset(%Category{}, @valid_attrs)
assert changeset.valid?
end
test "changeset with invalid attributes"... | 22.421053 | 63 | 0.7277 |
1dd496c24fdad4aa5fcd72c242418b1b4fb0e4fd | 4,547 | ex | Elixir | lib/clickhousex/codec/binary.ex | hissssst/clickhousex | 76af47440408ca9280bcb7c07d0b33e249e1295d | [
"Apache-2.0"
] | null | null | null | lib/clickhousex/codec/binary.ex | hissssst/clickhousex | 76af47440408ca9280bcb7c07d0b33e249e1295d | [
"Apache-2.0"
] | null | null | null | lib/clickhousex/codec/binary.ex | hissssst/clickhousex | 76af47440408ca9280bcb7c07d0b33e249e1295d | [
"Apache-2.0"
] | 2 | 2019-12-10T14:12:40.000Z | 2020-03-23T13:32:18.000Z | defmodule Clickhousex.Codec.Binary do
@compile {:bin_opt_info, true}
use Bitwise
def encode(:varint, num) when num < 128, do: <<num>>
def encode(:varint, num), do: <<1::1, num::7, encode(:varint, num >>> 7)::binary>>
def encode(:string, str) when is_bitstring(str) do
[encode(:varint, byte_size(str)), st... | 24.846995 | 91 | 0.615571 |
1dd4c9a34e50512c3bb4cf90c5984f85c43534d4 | 8,617 | ex | Elixir | lib/ex_dhcp/packet.ex | ityonemo/ExDhcp | 9a7f47da61a93b4fb9efaa62bbdb362e3b467b2b | [
"MIT"
] | null | null | null | lib/ex_dhcp/packet.ex | ityonemo/ExDhcp | 9a7f47da61a93b4fb9efaa62bbdb362e3b467b2b | [
"MIT"
] | 16 | 2019-12-16T04:56:50.000Z | 2020-03-11T20:18:56.000Z | lib/ex_dhcp/packet.ex | ityonemo/ex_dhcp | 9a7f47da61a93b4fb9efaa62bbdb362e3b467b2b | [
"MIT"
] | null | null | null | defmodule ExDhcp.Packet do
@moduledoc """
Provides a structure for the DHCP UDP packet, according to _[RFC 1531](https://tools.ietf.org/html/rfc1531)_ specifications.
For a simpler reference on the DHCP protocol's binary layout, refer to
[Wikipedia](https://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Prot... | 33.27027 | 126 | 0.633399 |
1dd4d3aac96bbce454848bdbc14895ce5fc104ea | 858 | ex | Elixir | lib/hl7/2.2/segments/rxo.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.2/segments/rxo.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.2/segments/rxo.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_2.Segments.RXO do
@moduledoc false
require Logger
alias HL7.V2_2.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
requested_give_code: DataTypes.Ce,
requested_give_amount_minimum: nil,
requested_give_amount_maximum: nil,
requested_give_units: DataTypes.Ce... | 29.586207 | 58 | 0.729604 |
1dd4d467e87d042a8c14c89793f90bd6f641f56a | 1,547 | exs | Elixir | test/xdr/types/variable_opaque64_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 3 | 2021-08-17T20:32:45.000Z | 2022-03-13T20:26:02.000Z | test/xdr/types/variable_opaque64_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 45 | 2021-08-12T20:19:41.000Z | 2022-03-27T21:00:10.000Z | test/xdr/types/variable_opaque64_test.exs | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 2 | 2021-09-22T23:11:13.000Z | 2022-01-23T03:19:11.000Z | defmodule StellarBase.XDR.VariableOpaque64Test do
use ExUnit.Case
alias StellarBase.XDR.VariableOpaque64
describe "VariableOpaque64" do
setup do
%{
variable_opaque64: VariableOpaque64.new("GCIZ3GSM5"),
binary: <<0, 0, 0, 9, 71, 67, 73, 90, 51, 71, 83, 77, 53, 0, 0, 0>>
}
end
... | 31.571429 | 89 | 0.671622 |
1dd4d66a347b0ea9f41b4d174929351f6bcfc184 | 1,853 | exs | Elixir | clients/workflows/mix.exs | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/workflows/mix.exs | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/workflows/mix.exs | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"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... | 27.656716 | 124 | 0.657312 |
1dd4d7716f68af748e50047cb52111e52cca3936 | 420 | ex | Elixir | lib/noted_web/live/components/note_list.ex | lawik/noted | a51b5d79cf44abfc2463560f83f1a8d65e6af85e | [
"BSD-3-Clause"
] | 28 | 2021-02-20T22:22:49.000Z | 2022-03-24T21:07:39.000Z | lib/noted_web/live/components/note_list.ex | gerhard/noted | c83bfd2e8e2950187268a2e3ba0904ae8a9773e5 | [
"BSD-3-Clause"
] | 5 | 2021-05-06T11:37:11.000Z | 2021-08-31T11:38:14.000Z | lib/noted_web/live/components/note_list.ex | gerhard/noted | c83bfd2e8e2950187268a2e3ba0904ae8a9773e5 | [
"BSD-3-Clause"
] | 7 | 2021-02-24T19:18:28.000Z | 2021-09-13T16:07:08.000Z | defmodule NotedWeb.Live.Components.NoteList do
use NotedWeb, :live_component
def render(assigns) do
~L"""
<form phx-change="selection">
<ul role="list" class="bg-white p-b-4 md:rounded-b-md">
<%= for note <- @notes do %>
<%= live_component @socket, NotedWeb.Live.Components.NoteListItem,... | 26.25 | 115 | 0.611905 |
1dd4e751f2f45498276bbbe7e1df5700cda3c942 | 1,117 | exs | Elixir | config/config.exs | keathley/drax | a2b37aefcebe694c0dcbd4e059bafddb500314ae | [
"MIT"
] | 10 | 2019-02-28T05:52:15.000Z | 2021-11-08T15:19:06.000Z | config/config.exs | keathley/drax | a2b37aefcebe694c0dcbd4e059bafddb500314ae | [
"MIT"
] | null | null | null | config/config.exs | keathley/drax | a2b37aefcebe694c0dcbd4e059bafddb500314ae | [
"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.032258 | 73 | 0.750224 |
1dd4fe2e01ad7e51b6ec53ad711161359d8841f9 | 780 | ex | Elixir | lib/grapevine/statistics.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | null | null | null | lib/grapevine/statistics.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | null | null | null | lib/grapevine/statistics.ex | sb8244/grapevine | effaaa01294d30114090c20f9cc40b8665d834f2 | [
"MIT"
] | null | null | null | defmodule Grapevine.Statistics do
@moduledoc """
Statistics context
"""
import Ecto.Query
alias GrapevineData.Repo
alias GrapevineData.Statistics.Session
@doc """
Find a list of games with active web clients
Returns three games with the most recently closed web client. If one
is open, it is retu... | 22.941176 | 70 | 0.641026 |
1dd50420bfa22ffdf3ce82994dabcc0c73e2a99e | 2,389 | ex | Elixir | lib/janus_client/plugin/audio_bridge/room.ex | anujmiddha/janus-elixir-client | 206b0169144f0fb4d60e3a09ed1e5f5394a03e61 | [
"MIT"
] | null | null | null | lib/janus_client/plugin/audio_bridge/room.ex | anujmiddha/janus-elixir-client | 206b0169144f0fb4d60e3a09ed1e5f5394a03e61 | [
"MIT"
] | null | null | null | lib/janus_client/plugin/audio_bridge/room.ex | anujmiddha/janus-elixir-client | 206b0169144f0fb4d60e3a09ed1e5f5394a03e61 | [
"MIT"
] | null | null | null | defmodule JanusClient.Plugin.AudioBridge.Room do
@moduledoc """
Represents a room from the AudioBridge plugin
"""
alias JanusClient.Plugin.AudioBridge.Room
@type t :: %Room{
room_id: integer(),
permanent: boolean(),
secret: String.t() | nil,
pin: String.t() | nil,
record: boolean(),
... | 30.628205 | 141 | 0.602763 |
1dd51f13f5d7d151f837ee2bb5973552d5491024 | 2,664 | exs | Elixir | test/dogma/rule/module_name_test.exs | lpil/dogma | e0f55c27ec3053be0313ac93f3d036437ee590a1 | [
"MIT"
] | 558 | 2015-06-21T18:20:59.000Z | 2021-12-30T16:25:47.000Z | test/dogma/rule/module_name_test.exs | lpil/dogma | e0f55c27ec3053be0313ac93f3d036437ee590a1 | [
"MIT"
] | 252 | 2015-06-19T13:00:47.000Z | 2021-04-21T08:04:16.000Z | test/dogma/rule/module_name_test.exs | lpil/dogma | e0f55c27ec3053be0313ac93f3d036437ee590a1 | [
"MIT"
] | 79 | 2015-06-21T14:18:30.000Z | 2021-12-30T16:26:09.000Z | defmodule Dogma.Rule.ModuleNameTest do
use RuleCase, for: ModuleName
test "not error with a valid module name" do
script = """
defmodule HelloWorld do
end
""" |> Script.parse!("")
assert [] == Rule.test( @rule, script )
end
test "a valid module name as a symbol" do
script = """
def... | 22.386555 | 57 | 0.56006 |
1dd57927015966ec5f8af307a09900552f467801 | 1,332 | ex | Elixir | lib/toby/app/views/node_select.ex | ndreynolds/toby | fc2e6960d8d5b366c0ecf130349659fc33ac2e2a | [
"MIT"
] | 82 | 2019-01-14T20:35:16.000Z | 2022-02-22T11:19:43.000Z | lib/toby/app/views/node_select.ex | ndreynolds/toby | fc2e6960d8d5b366c0ecf130349659fc33ac2e2a | [
"MIT"
] | 3 | 2019-01-20T17:17:44.000Z | 2019-01-24T08:51:55.000Z | lib/toby/app/views/node_select.ex | ndreynolds/toby | fc2e6960d8d5b366c0ecf130349659fc33ac2e2a | [
"MIT"
] | 5 | 2020-03-27T16:54:18.000Z | 2021-07-26T18:24:00.000Z | defmodule Toby.App.Views.NodeSelect do
@moduledoc """
Builds a panel for managing the selected Erlang node.
"""
import Ratatouille.View
import Ratatouille.Constants, only: [color: 1]
@style_selected [
color: color(:black),
background: color(:white)
]
def render(%{
data: %{
c... | 24.218182 | 82 | 0.56006 |
1dd57d4fe418bcbd954d1932ae3f7f2faac9beb7 | 2,403 | ex | Elixir | test/support/cluster.ex | commanded/commanded-swarm-registry | b2ed22c79326104974e02801f4ff05c5e9dcc89f | [
"MIT"
] | 17 | 2017-09-28T09:09:59.000Z | 2022-02-10T07:58:30.000Z | test/support/cluster.ex | commanded/commanded-swarm-registry | b2ed22c79326104974e02801f4ff05c5e9dcc89f | [
"MIT"
] | 2 | 2019-07-04T02:23:10.000Z | 2021-09-23T02:33:37.000Z | test/support/cluster.ex | commanded/commanded-swarm-registry | b2ed22c79326104974e02801f4ff05c5e9dcc89f | [
"MIT"
] | 5 | 2018-04-22T10:08:46.000Z | 2020-02-29T10:23:53.000Z | defmodule Commanded.Cluster do
def spawn do
# Turn node into a distributed node with the given long name
:net_kernel.start([:"primary@127.0.0.1"])
# Allow spawned nodes to fetch all code from this node
:erl_boot_server.start([])
allow_boot(to_charlist("127.0.0.1"))
case Application.load(:swa... | 26.119565 | 98 | 0.657095 |
1dd5b5d8eeca7254f450ce4fef4136b8bdde941d | 2,152 | ex | Elixir | clients/webmaster/lib/google_api/webmaster/v3/deserializer.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/webmaster/lib/google_api/webmaster/v3/deserializer.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/webmaster/lib/google_api/webmaster/v3/deserializer.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... | 35.866667 | 139 | 0.688197 |
1dd5ca3c4daa0c1842ffad09a715ee99c74b4cee | 3,092 | exs | Elixir | lib/mix/test/mix/tasks/run_test.exs | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:25.000Z | 2017-07-25T21:46:25.000Z | lib/mix/test/mix/tasks/run_test.exs | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/run_test.exs | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | 1 | 2017-07-25T21:46:48.000Z | 2017-07-25T21:46:48.000Z | Code.require_file "../../test_helper.exs", __DIR__
defmodule Mix.Tasks.RunTest do
use MixTest.Case
import ExUnit.CaptureIO
@moduletag apps: [:sample]
setup do
Mix.Project.push MixTest.Case.Sample
end
test "loads configuration", context do
in_tmp context.test, fn ->
assert capture_io(fn ->... | 28.897196 | 102 | 0.594437 |
1dd5cf2da86e92de8d668a9c8723b7fc1499ef26 | 1,624 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/category_targeting_option_details.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/category_targeting_option_details.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/category_targeting_option_details.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... | 32.48 | 107 | 0.756158 |
1dd5db8ee7e54bc198e248571a5d639f1ed3aec2 | 2,479 | exs | Elixir | test/controllers/post_controller_test.exs | rockerBOO/rockerboo.net | 13716f3c0ac6bac370919c3d6f2394a9dbdd4b3b | [
"MIT"
] | null | null | null | test/controllers/post_controller_test.exs | rockerBOO/rockerboo.net | 13716f3c0ac6bac370919c3d6f2394a9dbdd4b3b | [
"MIT"
] | null | null | null | test/controllers/post_controller_test.exs | rockerBOO/rockerboo.net | 13716f3c0ac6bac370919c3d6f2394a9dbdd4b3b | [
"MIT"
] | null | null | null | defmodule Personal.PostControllerTest do
use Personal.ConnCase
alias Personal.Post
@valid_attrs %{body: "some content", created_at: %{day: 17, hour: 14, min: 0, month: 4, year: 2010}, status: "some content", title: "some content"}
@invalid_attrs %{}
setup do
conn = conn()
{:ok, conn: conn}
end
... | 34.430556 | 149 | 0.671642 |
1dd5e02ae0fc057233a0295491c160d8f80e5603 | 3,831 | ex | Elixir | lib/mailgun_logger/users/users.ex | jackjoe/mailgun_logger | 7d5a1989afdeb215bcd3753671c61bc25ed4e522 | [
"MIT"
] | 64 | 2020-02-10T20:42:46.000Z | 2021-11-16T10:47:50.000Z | lib/mailgun_logger/users/users.ex | jackjoe/mailgun_logger | 7d5a1989afdeb215bcd3753671c61bc25ed4e522 | [
"MIT"
] | 16 | 2020-02-10T20:45:57.000Z | 2022-03-04T12:53:34.000Z | lib/mailgun_logger/users/users.ex | jackjoe/mailgun_logger | 7d5a1989afdeb215bcd3753671c61bc25ed4e522 | [
"MIT"
] | 4 | 2020-04-03T17:13:19.000Z | 2020-07-17T12:56:31.000Z | defmodule MailgunLogger.Users do
import Ecto.Query, warn: false
alias MailgunLogger.Repo
alias MailgunLogger.User
alias MailgunLogger.Roles
@spec assign_role(User.t(), String.t()) :: {:ok, User.t()} | {:error, Ecto.Changeset.t()} | nil
def assign_role(user, role_name) do
case Roles.get_role_by_name(ro... | 23.503067 | 97 | 0.572696 |
1dd5e048963181dcdb23abf4c04886e5827db4c6 | 448 | exs | Elixir | test/shenu/message/time_test.exs | jsdelivrbot/shenu | 98acf65b915b62528eccd824020e8007931ee01c | [
"MIT"
] | 3 | 2016-06-19T00:21:54.000Z | 2021-09-28T22:04:07.000Z | test/shenu/message/time_test.exs | jsdelivrbot/shenu | 98acf65b915b62528eccd824020e8007931ee01c | [
"MIT"
] | null | null | null | test/shenu/message/time_test.exs | jsdelivrbot/shenu | 98acf65b915b62528eccd824020e8007931ee01c | [
"MIT"
] | 1 | 2018-12-06T22:51:26.000Z | 2018-12-06T22:51:26.000Z | defmodule Test.Shenu.Message.Time do
use Test.Shenu.Message.Case
test "default schema" do
create_parser()
|> parse(%{"hour" => 3, "minute" => 5, "second" => 40})
|> assert_message(%Time{hour: 3, minute: 5, second: 40})
end
test "default schema error" do
parser = create_parser()
parser
... | 20.363636 | 60 | 0.589286 |
1dd63474d21748bd86bd43fa7d6d5762e2174402 | 1,112 | ex | Elixir | lib/bart_scrape/endpoint.ex | cdale77/bart_scrape | 8696b303f1111a29cfdbea80f15823da3ea5747d | [
"MIT"
] | null | null | null | lib/bart_scrape/endpoint.ex | cdale77/bart_scrape | 8696b303f1111a29cfdbea80f15823da3ea5747d | [
"MIT"
] | null | null | null | lib/bart_scrape/endpoint.ex | cdale77/bart_scrape | 8696b303f1111a29cfdbea80f15823da3ea5747d | [
"MIT"
] | null | null | null | defmodule BartScrape.Endpoint do
use Phoenix.Endpoint, otp_app: :bart_scrape
socket "/socket", BartScrape.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 Plug... | 27.121951 | 65 | 0.713129 |
1dd64845fadaf8e4454bd794649c4ebce365b7de | 4,789 | exs | Elixir | test/worker_test.exs | odo/poll_proxy | e14efdeccf238f72a0a78fec02ca31d9441839b9 | [
"MIT"
] | null | null | null | test/worker_test.exs | odo/poll_proxy | e14efdeccf238f72a0a78fec02ca31d9441839b9 | [
"MIT"
] | null | null | null | test/worker_test.exs | odo/poll_proxy | e14efdeccf238f72a0a78fec02ca31d9441839b9 | [
"MIT"
] | null | null | null | defmodule PollProxyWorkerTest do
use ExUnit.Case
alias PollProxy.Worker
defmodule TestPoller do
@behaviour PollProxy.Poller
def interval, do: 10
def init(mode) do
{:ok, mode}
end
def poll(:always_update = mode) do
{:update, :next_value, mode}
end
def poll(:never_update ... | 43.93578 | 126 | 0.692838 |
1dd671b0ec099bac64e8a17ffce83759d721786e | 2,231 | ex | Elixir | lib/mix/tasks/fake_source.ex | mbta/trike | d82955a6c866d1b44a3cb2310aab06bb122c4050 | [
"MIT"
] | 1 | 2022-02-03T01:30:31.000Z | 2022-02-03T01:30:31.000Z | lib/mix/tasks/fake_source.ex | mbta/trike | d82955a6c866d1b44a3cb2310aab06bb122c4050 | [
"MIT"
] | 9 | 2021-09-07T21:05:08.000Z | 2022-03-09T18:59:31.000Z | lib/mix/tasks/fake_source.ex | mbta/trike | d82955a6c866d1b44a3cb2310aab06bb122c4050 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.FakeSource do
@moduledoc """
A fake source of OCS messages that reads in canned messages from
priv/ocs_data.csv and sends them to Trike on the specified port (8001 by
default). Also sends bad data if you ask it to.
"""
use Mix.Task
require Logger
@eot <<4>>
@doc """
Ex: mix fak... | 27.8875 | 98 | 0.579113 |
1dd70a5857ae4eb01c24e1356e04d2a62bbc8dcf | 4,972 | exs | Elixir | test/joi/type/number_test.exs | diegosouza/joi | 0cfef6a5be13e13734988e88379b97080165e04f | [
"MIT"
] | null | null | null | test/joi/type/number_test.exs | diegosouza/joi | 0cfef6a5be13e13734988e88379b97080165e04f | [
"MIT"
] | null | null | null | test/joi/type/number_test.exs | diegosouza/joi | 0cfef6a5be13e13734988e88379b97080165e04f | [
"MIT"
] | null | null | null | defmodule Joi.Type.NumberTest do
use ExUnit.Case, async: true
alias Joi.Type
describe "validate_field/3" do
@tag :unit
test "success: validates Type.Number fields in a schema" do
data = %{id: 1}
field = :id
schema = %{id: [:number]}
[_type | options] = schema[field]
asser... | 24.736318 | 97 | 0.485318 |
1dd746a512f36538c35bc4a94caf4a76a42982e6 | 1,679 | ex | Elixir | apps/snitch_core/lib/core/tools/helpers/stock.ex | VeryBigThings/avia | 7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9 | [
"MIT"
] | 1 | 2021-04-08T22:29:19.000Z | 2021-04-08T22:29:19.000Z | apps/snitch_core/lib/core/tools/helpers/stock.ex | VeryBigThings/avia | 7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9 | [
"MIT"
] | null | null | null | apps/snitch_core/lib/core/tools/helpers/stock.ex | VeryBigThings/avia | 7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9 | [
"MIT"
] | null | null | null | defmodule Snitch.Tools.Helper.Stock do
@moduledoc """
Test helpers to insert stock items and locations.
## Sample manifests
```
stock_item_sample_manifest = %{
"default" => [
%{count_on_hand: 3, backorderable: true},
%{count_on_hand: 3, backorderable: true},
%{count_on_hand: 3, backorde... | 23.985714 | 69 | 0.609291 |
1dd768775972793828676560c5cebf9c9162108e | 1,183 | ex | Elixir | lib/ex_aws/auth/utils.ex | Frameio/ex_aws | 3b335b6ed7932b5cf991323d26cf5497e1e6c122 | [
"Unlicense",
"MIT"
] | null | null | null | lib/ex_aws/auth/utils.ex | Frameio/ex_aws | 3b335b6ed7932b5cf991323d26cf5497e1e6c122 | [
"Unlicense",
"MIT"
] | null | null | null | lib/ex_aws/auth/utils.ex | Frameio/ex_aws | 3b335b6ed7932b5cf991323d26cf5497e1e6c122 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule ExAws.Auth.Utils do
@moduledoc false
def uri_encode(url) do
url
|> String.replace("+", " ")
|> URI.encode(&valid_path_char?/1)
end
# Space character
def valid_path_char?(?\ ), do: false
def valid_path_char?(?/), do: true
def valid_path_char?(c) do
URI.char_unescaped?(c) && !UR... | 19.080645 | 58 | 0.622147 |
1dd777aca60032ff707099f2341e05908ff5561c | 1,731 | ex | Elixir | deps/makeup/lib/makeup/styles/html/pygments/emacs.ex | arduino-man/fona_modern | 61845bbbbc46a61a50e59a97c68709f2722078a6 | [
"MIT"
] | null | null | null | deps/makeup/lib/makeup/styles/html/pygments/emacs.ex | arduino-man/fona_modern | 61845bbbbc46a61a50e59a97c68709f2722078a6 | [
"MIT"
] | null | null | null | deps/makeup/lib/makeup/styles/html/pygments/emacs.ex | arduino-man/fona_modern | 61845bbbbc46a61a50e59a97c68709f2722078a6 | [
"MIT"
] | null | null | null |
defmodule Makeup.Styles.HTML.EmacsStyle do
@moduledoc false
@styles %{
:error => "border:#FF0000",
:keyword => "bold #AA22FF",
:keyword_pseudo => "nobold",
:keyword_type => "bold #00BB00",
:name_attribute => "#BB4444",
:name_builtin => "#AA22FF",
:name_class => "#0000FF",
... | 28.85 | 43 | 0.576545 |
1dd77eee36ff5d90549c0c95fba2a73da1b497e4 | 1,072 | exs | Elixir | mix.exs | ohyecloudy/gitlab-straw | f7307d474ee1118f9c930007bcb969809b92b5a6 | [
"MIT"
] | 11 | 2018-07-02T02:18:46.000Z | 2021-08-23T06:48:43.000Z | mix.exs | ohyecloudy/gitlab-straw | f7307d474ee1118f9c930007bcb969809b92b5a6 | [
"MIT"
] | null | null | null | mix.exs | ohyecloudy/gitlab-straw | f7307d474ee1118f9c930007bcb969809b92b5a6 | [
"MIT"
] | 1 | 2020-10-18T09:13:10.000Z | 2020-10-18T09:13:10.000Z | defmodule Slab.MixProject do
use Mix.Project
def project do
[
app: :slab,
version: "0.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
dialyzer: [ignore_warnings: ".dialyzer_ignore.exs"]
]
end
# Run "mix help compi... | 23.822222 | 66 | 0.537313 |
1dd7a00338d73a3d3c3803bd8475cd60bfaf9dae | 1,617 | exs | Elixir | test/bitcoin/block_test.exs | anthdm/bitcoin-elixir | 5ca9f8bf4e9b2b38527670e80568a85e0aa612c0 | [
"Apache-2.0"
] | 81 | 2017-04-20T17:42:59.000Z | 2022-02-08T03:49:22.000Z | test/bitcoin/block_test.exs | anthdm/bitcoin-elixir | 5ca9f8bf4e9b2b38527670e80568a85e0aa612c0 | [
"Apache-2.0"
] | 2 | 2017-09-07T13:58:57.000Z | 2018-01-13T10:38:07.000Z | test/bitcoin/block_test.exs | anthdm/bitcoin-elixir | 5ca9f8bf4e9b2b38527670e80568a85e0aa612c0 | [
"Apache-2.0"
] | 22 | 2017-08-16T14:19:44.000Z | 2021-12-22T04:36:57.000Z | defmodule Bitcoin.BlockTest do
use ExUnit.Case
alias Bitcoin.Protocol.Messages
test "merkle root 100_000" do
{:ok, payload} = File.read("test/data/blk_100000.dat")
block = Messages.Block.parse(payload)
assert block.merkle_root == block |> Bitcoin.Block.merkle_root
end
test "merkle root 460_281"... | 35.933333 | 152 | 0.717378 |
1dd7a253ead7b3aaf07f075eacc6c113a2a4dae5 | 2,962 | ex | Elixir | lib/mongooseice/auth.ex | MarkESDR/MongooseICE | 77f14106ccbf4716bbf25e4db7d92ea9c33f200e | [
"Apache-2.0"
] | null | null | null | lib/mongooseice/auth.ex | MarkESDR/MongooseICE | 77f14106ccbf4716bbf25e4db7d92ea9c33f200e | [
"Apache-2.0"
] | null | null | null | lib/mongooseice/auth.ex | MarkESDR/MongooseICE | 77f14106ccbf4716bbf25e4db7d92ea9c33f200e | [
"Apache-2.0"
] | null | null | null | defmodule MongooseICE.Auth do
@moduledoc false
# This module implements authentication and authorization of
# the STUN and TURN protocol.
alias Jerboa.Format.Body.Attribute
alias Jerboa.Format.Body.Attribute.{Username, Nonce, Realm}
alias Jerboa.Params
alias MongooseICE.TURN
@nonce_bytes 48
@nonce_l... | 32.549451 | 78 | 0.659014 |
1dd7ad372625fbc420be22953cf1cae2ceb57ea1 | 534 | ex | Elixir | lib/daily_meals/inputs/update_user.ex | vinolivae/daily_meals | 8f375cbb7eaf54abfa6b683705bb8075067f9078 | [
"MIT"
] | null | null | null | lib/daily_meals/inputs/update_user.ex | vinolivae/daily_meals | 8f375cbb7eaf54abfa6b683705bb8075067f9078 | [
"MIT"
] | null | null | null | lib/daily_meals/inputs/update_user.ex | vinolivae/daily_meals | 8f375cbb7eaf54abfa6b683705bb8075067f9078 | [
"MIT"
] | null | null | null | defmodule DailyMeals.Inputs.UpdateUser do
@moduledoc """
This module is used to update a user.
"""
use DailyMeals.ValueObjectSchema
@required ~w(id)a
@optional ~w(name cpf email)a
embedded_schema do
field :id, Ecto.UUID
field :name, :string
field :cpf, :string
field :email, :string
en... | 20.538462 | 50 | 0.659176 |
1dd7b37ce8f651bc18424f6335e3fd9116f896a1 | 14,326 | ex | Elixir | lib/docusign/api/account_brands.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 4 | 2020-12-21T12:50:13.000Z | 2022-01-12T16:50:43.000Z | lib/docusign/api/account_brands.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 12 | 2018-09-18T15:26:34.000Z | 2019-09-28T15:29:39.000Z | lib/docusign/api/account_brands.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 15 | 2020-04-29T21:50:16.000Z | 2022-02-11T18:01:51.000Z | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule DocuSign.Api.AccountBrands do
@moduledoc """
API calls for all endpoints tagged `AccountBrands`.
"""
alias DocuSign.Connection
import D... | 31.906459 | 614 | 0.642747 |
1dd7c2dad07aaf9a46ce1859cb0455419ff56e5c | 57,363 | ex | Elixir | lib/explorer/data_frame.ex | amferraboli/explorer | 65c56803666e94fe60e8b0a461104a6857096ac4 | [
"MIT"
] | null | null | null | lib/explorer/data_frame.ex | amferraboli/explorer | 65c56803666e94fe60e8b0a461104a6857096ac4 | [
"MIT"
] | null | null | null | lib/explorer/data_frame.ex | amferraboli/explorer | 65c56803666e94fe60e8b0a461104a6857096ac4 | [
"MIT"
] | null | null | null | defmodule Explorer.DataFrame do
@moduledoc """
The DataFrame struct and API.
"""
alias __MODULE__, as: DataFrame
alias Explorer.Series
import Explorer.Shared, only: [impl!: 1]
import Nx.Defn.Kernel, only: [keyword!: 2]
@type data :: Explorer.Backend.DataFrame.t()
@type t :: %DataFrame{data: data}
... | 33.9627 | 359 | 0.588916 |
1dd7edf97cbad2cf24adceae6c8b4d845205d876 | 1,071 | ex | Elixir | apps/demon_spirit_game/lib/demon_spirit_game/chat_supervisor.ex | mreishus/demon_spirit_umbrella | 1ab9161427361ac7d35132fce2aed36923896a4b | [
"MIT"
] | 12 | 2019-09-17T13:47:57.000Z | 2021-12-11T17:11:11.000Z | apps/demon_spirit_game/lib/demon_spirit_game/chat_supervisor.ex | mreishus/demon_spirit_umbrella | 1ab9161427361ac7d35132fce2aed36923896a4b | [
"MIT"
] | 181 | 2019-10-15T01:21:44.000Z | 2021-08-31T19:26:54.000Z | apps/demon_spirit_game/lib/demon_spirit_game/chat_supervisor.ex | mreishus/demon_spirit_umbrella | 1ab9161427361ac7d35132fce2aed36923896a4b | [
"MIT"
] | 2 | 2020-07-11T02:18:46.000Z | 2021-05-31T10:46:39.000Z | defmodule DemonSpiritGame.ChatSupervisor do
@moduledoc """
A supervisor that starts `ChatServer` processes dynamically.
"""
use DynamicSupervisor
alias DemonSpiritGame.ChatServer
def start_link(_arg) do
DynamicSupervisor.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
Dyna... | 21.857143 | 70 | 0.70028 |
1dd8071ae0982ef715808af60ac32bf9d09ecd7a | 6,063 | ex | Elixir | lib/absinthe/blueprint.ex | RadekMolenda/absinthe | 9ca4d391c76df701174b3b306a9dec021c74008e | [
"MIT"
] | null | null | null | lib/absinthe/blueprint.ex | RadekMolenda/absinthe | 9ca4d391c76df701174b3b306a9dec021c74008e | [
"MIT"
] | null | null | null | lib/absinthe/blueprint.ex | RadekMolenda/absinthe | 9ca4d391c76df701174b3b306a9dec021c74008e | [
"MIT"
] | null | null | null | defmodule Absinthe.Blueprint do
@moduledoc """
Represents the graphql document to be executed.
Please see the code itself for more information on individual blueprint sub
modules.
"""
alias __MODULE__
defstruct operations: [],
directives: [],
fragments: [],
name: nil... | 28.069444 | 100 | 0.600528 |
1dd821bf4aa60bd3bef5aa049f7854de5738239a | 905 | exs | Elixir | hello_naked/config/config.exs | playgd/learning-elixir | 3909b540ccd7f54b174de9c6c6f258e94865ba6b | [
"MIT"
] | 16 | 2021-11-08T12:15:27.000Z | 2022-02-11T01:00:20.000Z | hello_naked/config/config.exs | playgd/learning-elixir | 3909b540ccd7f54b174de9c6c6f258e94865ba6b | [
"MIT"
] | null | null | null | hello_naked/config/config.exs | playgd/learning-elixir | 3909b540ccd7f54b174de9c6c6f258e94865ba6b | [
"MIT"
] | 2 | 2021-11-19T11:32:58.000Z | 2022-01-16T00:36:32.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
# Configures the endpoint
config :hello_naked, HelloN... | 32.321429 | 83 | 0.766851 |
1dd823c747e0ee7e84f58deaba771ded8395d934 | 1,870 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_categorical_stats_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_categorical_stats_config.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_categorical_stats_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... | 39.787234 | 312 | 0.769519 |
1dd84ca60dc3306005dcba486c932c1c4e26890a | 836 | ex | Elixir | lib/Sdws.TCP.Supervisor/sdws_tcp_supervisor.ex | truoko/sdws | 24d5de4d4c02b3fa8045e504380621839baa3de8 | [
"MIT"
] | null | null | null | lib/Sdws.TCP.Supervisor/sdws_tcp_supervisor.ex | truoko/sdws | 24d5de4d4c02b3fa8045e504380621839baa3de8 | [
"MIT"
] | null | null | null | lib/Sdws.TCP.Supervisor/sdws_tcp_supervisor.ex | truoko/sdws | 24d5de4d4c02b3fa8045e504380621839baa3de8 | [
"MIT"
] | null | null | null | # Top supervisor. Supervises worker processes and listens the TCP socket
defmodule Sdws.TCP.Supervisor do
use Supervisor
@name Sdws.TCP.Supervisor
def start_link(port) do
Supervisor.start_link(__MODULE__, port, name: @name)
end
def init(port) do
IO.puts("Supervisor: TCP supervisor ... | 32.153846 | 99 | 0.656699 |
1dd85555c3f647afe76f31ce23b760447a208536 | 6,052 | exs | Elixir | test/thrift/parser/resolver_test.exs | dnlserrano/elixir-thrift | 568de9f7bdfa43279c819cb50e16c33b4dc09146 | [
"Apache-2.0"
] | 209 | 2015-12-19T09:56:39.000Z | 2022-03-22T04:43:16.000Z | test/thrift/parser/resolver_test.exs | dnlserrano/elixir-thrift | 568de9f7bdfa43279c819cb50e16c33b4dc09146 | [
"Apache-2.0"
] | 312 | 2016-01-05T04:04:58.000Z | 2021-11-15T17:59:57.000Z | test/thrift/parser/resolver_test.exs | CultivateHQ/elixir-thrift | d285ddc0f134afc6f7d8c5d0b504a8d27157da9a | [
"Apache-2.0"
] | 40 | 2015-12-21T19:46:03.000Z | 2022-02-10T08:34:58.000Z | defmodule ResolverTest do
use ExUnit.Case
alias Thrift.AST.{
Field,
Service,
Struct,
TEnum,
Union
}
alias Thrift.Parser.FileGroup
use ThriftTestHelpers
test "it should be able resolve Struct Refs and fields" do
with_thrift_files(
"core/shared.thrift": """
struct User ... | 26.313043 | 94 | 0.596993 |
1dd8701ee5b62e94c083794be47a602821bc7ea3 | 1,326 | exs | Elixir | test/sealax/accounts/user_tfa_test.exs | sealas/sealax | 3f11b7f649972a43f4812ea959bd2be2e0151baa | [
"MIT"
] | null | null | null | test/sealax/accounts/user_tfa_test.exs | sealas/sealax | 3f11b7f649972a43f4812ea959bd2be2e0151baa | [
"MIT"
] | 9 | 2021-08-19T01:09:55.000Z | 2022-03-08T01:18:45.000Z | test/sealax/accounts/user_tfa_test.exs | sealas/sealax | 3f11b7f649972a43f4812ea959bd2be2e0151baa | [
"MIT"
] | null | null | null | defmodule Sealax.UserTfaTest do
use Sealax.DataCase
alias Sealax.Repo
alias Sealax.Accounts.User
alias Sealax.Accounts.UserTfa
@create_user_attrs %{email: "some email", password: "some password"}
@valid_attrs %{type: "yubikey", auth_key: "cccccccccccccccccccccccccccccccfilnhluinrjhl"}
@invalid_attrs %{... | 27.061224 | 100 | 0.686275 |
1dd8707defc405aa3a567786374b883314b435df | 330 | ex | Elixir | lib/fragment/structured_text/block/text/preformatted.ex | TheRealReal/prismic-elixir | 0850b922be6d2f2d541add8426fe27f8ce5f63eb | [
"MIT"
] | 10 | 2018-01-12T18:52:53.000Z | 2022-02-17T06:00:21.000Z | lib/fragment/structured_text/block/text/preformatted.ex | TheRealReal/prismic-elixir | 0850b922be6d2f2d541add8426fe27f8ce5f63eb | [
"MIT"
] | 12 | 2018-02-14T23:08:08.000Z | 2021-11-22T15:55:41.000Z | lib/fragment/structured_text/block/text/preformatted.ex | TheRealReal/prismic-elixir | 0850b922be6d2f2d541add8426fe27f8ce5f63eb | [
"MIT"
] | 8 | 2018-05-08T14:02:21.000Z | 2021-12-15T08:19:55.000Z | alias Prismic.Fragment.StructuredText.Block
defmodule Block.Text.Preformatted do
defstruct [:text, :label, spans: []]
@type t :: %__MODULE__{text: String.t(), spans: [Span.t()], label: String.t()}
end
defimpl Block, for: Block.Text.Preformatted do
# TODO
def as_html(_pre, _link_resolver, _html_serializer), d... | 25.384615 | 80 | 0.715152 |
1dd8725617fbbe761a939f6e0932d52becbbfb82 | 4,446 | ex | Elixir | lib/gen_aggregate.ex | x3m-ex/system | 22e24a21b1eb716c4a69c629bd27ad98c720a6d5 | [
"MIT"
] | 3 | 2019-11-05T22:05:46.000Z | 2021-08-10T12:06:47.000Z | lib/gen_aggregate.ex | x3m-ex/system | 22e24a21b1eb716c4a69c629bd27ad98c720a6d5 | [
"MIT"
] | null | null | null | lib/gen_aggregate.ex | x3m-ex/system | 22e24a21b1eb716c4a69c629bd27ad98c720a6d5 | [
"MIT"
] | 2 | 2020-03-19T21:24:32.000Z | 2020-08-26T20:49:02.000Z | defmodule X3m.System.GenAggregate do
use GenServer, restart: :transient
alias X3m.System.Message
@behaviour X3m.System.GenAggregateMod
defmodule State do
@enforce_keys ~w(aggregate_mod aggregate_state commit_timeout)a
defstruct @enforce_keys
end
def start_link(aggregate_mod, opts \\ []),
do: ... | 33.938931 | 99 | 0.67049 |
1dd882af57500d1c0b7686ec02a3092b29a54e95 | 2,445 | ex | Elixir | lib/api.ex | kingdomcoding/telegram | 6b8e6997fb744fa56692eb9ed1ead3e593a85cc9 | [
"MIT"
] | 87 | 2017-10-24T17:52:13.000Z | 2022-03-30T19:31:43.000Z | lib/api.ex | kingdomcoding/telegram | 6b8e6997fb744fa56692eb9ed1ead3e593a85cc9 | [
"MIT"
] | 115 | 2017-09-16T20:01:34.000Z | 2021-08-05T09:20:02.000Z | lib/api.ex | kingdomcoding/telegram | 6b8e6997fb744fa56692eb9ed1ead3e593a85cc9 | [
"MIT"
] | 19 | 2018-01-27T20:11:43.000Z | 2022-03-19T14:08:53.000Z | defmodule Telegram.Api do
@moduledoc File.read!("README.md")
@type parameters :: Keyword.t()
@type request_result :: {:ok, term()} | {:error, term()}
@doc """
Send a Telegram Bot API request.
Reference: [BOT Api](https://core.telegram.org/bots/api)
"""
@spec request(Telegram.Types.token(), Telegram.T... | 28.430233 | 108 | 0.64908 |
1dd8881ae7f63e7d1910f8bc89e5d073aae63928 | 2,716 | exs | Elixir | mix.exs | devtayls/ex_doc | 0319ace1782c9a6cd4ade57a5df6f8649d9b2683 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | mix.exs | devtayls/ex_doc | 0319ace1782c9a6cd4ade57a5df6f8649d9b2683 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | mix.exs | devtayls/ex_doc | 0319ace1782c9a6cd4ade57a5df6f8649d9b2683 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | defmodule ExDoc.Mixfile do
use Mix.Project
@source_url "https://github.com/elixir-lang/ex_doc"
@version "0.25.2"
def project do
[
app: :ex_doc,
version: @version,
elixir: "~> 1.10",
deps: deps(),
aliases: aliases(),
package: package(),
escript: escript(),
el... | 23.824561 | 89 | 0.552651 |
1dd8911ca006eb5e4a49dd5cb63467758d820a2b | 733 | exs | Elixir | config/admin.exs | votiakov/petal | ec03551da6dadc0c3482b25a5f5dcd400c36db43 | [
"MIT"
] | null | null | null | config/admin.exs | votiakov/petal | ec03551da6dadc0c3482b25a5f5dcd400c36db43 | [
"MIT"
] | null | null | null | config/admin.exs | votiakov/petal | ec03551da6dadc0c3482b25a5f5dcd400c36db43 | [
"MIT"
] | null | null | null | use Mix.Config
config :kaffy,
otp_app: :admin,
ecto_repo: Legendary.Admin.Repo,
extensions: [
Legendary.Admin.Kaffy.EditorExtension,
],
router: Legendary.Admin.Router,
resources: &Legendary.Admin.Kaffy.Config.create_resources/1
config :admin, Legendary.Admin,
resources: [
auth: [
name: "Au... | 26.178571 | 127 | 0.653479 |
1dd8f11ced29d2a37ae42f516aa31bb43f7694cc | 735 | ex | Elixir | lib/bitcoin_price_scraper.ex | ohyecloudy/bitcoin_price_scraper | 888eca9641c555e961739f9292d0ddd3d3172b92 | [
"MIT"
] | 1 | 2021-09-06T06:09:11.000Z | 2021-09-06T06:09:11.000Z | lib/bitcoin_price_scraper.ex | data-miner00/bitcoin_price_scraper | 888eca9641c555e961739f9292d0ddd3d3172b92 | [
"MIT"
] | null | null | null | lib/bitcoin_price_scraper.ex | data-miner00/bitcoin_price_scraper | 888eca9641c555e961739f9292d0ddd3d3172b92 | [
"MIT"
] | 2 | 2021-06-27T03:35:27.000Z | 2022-03-28T17:38:51.000Z | defmodule BitcoinPriceScraper do
alias BitcoinPriceScraper.{QuotationDemander, RateLimiter, Metrics}
def scrap() do
Metrics.start()
to = NaiveDateTime.utc_now()
from =
NaiveDateTime.add(
to,
-60 * 60 * 24 * Application.get_env(:bitcoin_price_scraper, :scrap_days)
)
# ... | 25.344828 | 80 | 0.653061 |
1dd8f5c563fba63e3b2dc3f6a4b47da71ea74c67 | 753 | ex | Elixir | lib/rmc/parse_packet.ex | robbyronk/race-control | f44922cb151c04ccf0e30fa226e49323c537ce2b | [
"Apache-2.0"
] | null | null | null | lib/rmc/parse_packet.ex | robbyronk/race-control | f44922cb151c04ccf0e30fa226e49323c537ce2b | [
"Apache-2.0"
] | null | null | null | lib/rmc/parse_packet.ex | robbyronk/race-control | f44922cb151c04ccf0e30fa226e49323c537ce2b | [
"Apache-2.0"
] | null | null | null | defmodule Rmc.ParsePacket do
alias Rmc.FOne2018
@moduledoc """
Sends the packet to the correct parser
"""
def parse_packet(
<<
2018::unsigned-little-size(16),
1::unsigned-size(8),
packet_id::unsigned-size(8),
_rest::binary
>> = data
) do
cas... | 26.892857 | 51 | 0.620186 |
1dd90af1c4da00457a8743d7f7021386649bca57 | 12,235 | ex | Elixir | lib/faker/lorem.ex | joshillian/faker | eeede9d7c35c543dcf6abe72dc476e755c80415b | [
"MIT"
] | 540 | 2015-01-05T16:31:49.000Z | 2019-09-25T00:40:27.000Z | lib/faker/lorem.ex | joshillian/faker | eeede9d7c35c543dcf6abe72dc476e755c80415b | [
"MIT"
] | 172 | 2015-01-06T03:55:17.000Z | 2019-10-03T12:58:02.000Z | lib/faker/lorem.ex | joshillian/faker | eeede9d7c35c543dcf6abe72dc476e755c80415b | [
"MIT"
] | 163 | 2015-01-05T21:24:54.000Z | 2019-10-03T07:59:42.000Z | defmodule Faker.Lorem do
import Faker, only: [sampler: 2]
alias Faker.Util
@moduledoc """
Functions for generating Lorem Ipsum data
"""
@doc """
Returns a random word from @data
## Examples
iex> Faker.Lorem.word()
"aliquam"
iex> Faker.Lorem.word()
"ut"
iex> Faker.Lorem... | 24.227723 | 698 | 0.612914 |
1dd90c585a693e3a207b0f7cb55d50a1d3f0d9ce | 789 | ex | Elixir | deps/absinthe/lib/absinthe/language/input_value_definition.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | 3 | 2017-06-22T16:33:58.000Z | 2021-07-07T15:21:09.000Z | lib/absinthe/language/input_value_definition.ex | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | null | null | null | lib/absinthe/language/input_value_definition.ex | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | null | null | null | defmodule Absinthe.Language.InputValueDefinition do
@moduledoc false
alias Absinthe.{Blueprint, Language}
@enforce_keys [:name, :type]
defstruct [
:name,
:type,
default_value: nil,
directives: [],
loc: %{start_line: nil}
]
@type t :: %__MODULE__{
name: String.t,
type: Language... | 22.542857 | 72 | 0.662864 |
1dd99f63ab97a3a19e31d175af12cab39cb4984c | 2,061 | ex | Elixir | elixir/lib/homework_web/resolvers/transactions_resolver.ex | Eliottmor/web-homework | ed5265e21cee26194476826f2d071b1d529400fd | [
"MIT"
] | null | null | null | elixir/lib/homework_web/resolvers/transactions_resolver.ex | Eliottmor/web-homework | ed5265e21cee26194476826f2d071b1d529400fd | [
"MIT"
] | 2 | 2021-01-09T21:30:33.000Z | 2021-01-11T04:19:55.000Z | elixir/lib/homework_web/resolvers/transactions_resolver.ex | Eliottmor/web-homework | ed5265e21cee26194476826f2d071b1d529400fd | [
"MIT"
] | null | null | null | defmodule HomeworkWeb.Resolvers.TransactionsResolver do
alias Homework.Merchants
alias Homework.Transactions
alias Homework.Users
@doc """
Get a list of transcations
"""
def transactions(_root, args, _info) do
{:ok, Enum.map(Transactions.list_transactions(args), &convert_to_decimal/1)}
end
@doc ... | 24.535714 | 80 | 0.661329 |
1dd9a4f8fd06d7f10b4c835d43b3b1270fa2f3ca | 337 | exs | Elixir | lib/elixir/test/elixir/process_test.exs | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/process_test.exs | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/process_test.exs | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule ProcessTest do
use ExUnit.Case, async: true
test :self do
assert is_pid(Process.self)
end
test :group_leader do
another = spawn_link(fn -> :timer.sleep(1000) end)
assert Process.group_leader(self, another)
assert Process.group_leader == a... | 21.0625 | 54 | 0.727003 |
1dd9b4a6311254932071359ab0df0d723e390ffc | 963 | ex | Elixir | concurrency.ex | kalashnikov/elixir_script | 64ecbe5878d7c7cdc5392a1e6b83b08697c8f9b4 | [
"MIT"
] | null | null | null | concurrency.ex | kalashnikov/elixir_script | 64ecbe5878d7c7cdc5392a1e6b83b08697c8f9b4 | [
"MIT"
] | null | null | null | concurrency.ex | kalashnikov/elixir_script | 64ecbe5878d7c7cdc5392a1e6b83b08697c8f9b4 | [
"MIT"
] | null | null | null |
## ---------------------------
## -- 並發(Concurrency)
## ---------------------------
# Elixir 依賴於 actor並發模型。在Elixir編寫並發程序的三要素:
# 創建進程,發送消息,接收消息
# 啟動一個新的進程使用`spawn`函數,接收一個函數作為參數
f = fn -> 2 * 2 end #=> #Function<erl_eval.20.80484245>
spawn(f) #=> #PID<0.40.0>
# `spawn` 函數返回一個pid(進程標識符),你可以使用pid向進程發送消息。
# 使用 `<-` 操作... | 20.0625 | 55 | 0.573209 |
1dd9bcef4dc5cea950ef891d0f0178443ccda6de | 177 | exs | Elixir | priv/repo/migrations/20181107033509_create_sets.exs | the-mikedavis/mole | 73d884b5dca4e5371b1b399d7e65c0f4a0229851 | [
"BSD-3-Clause"
] | 1 | 2020-07-15T14:39:10.000Z | 2020-07-15T14:39:10.000Z | priv/repo/migrations/20181107033509_create_sets.exs | the-mikedavis/mole | 73d884b5dca4e5371b1b399d7e65c0f4a0229851 | [
"BSD-3-Clause"
] | 59 | 2018-11-05T23:09:10.000Z | 2020-07-11T20:44:14.000Z | priv/repo/migrations/20181107033509_create_sets.exs | the-mikedavis/mole | 73d884b5dca4e5371b1b399d7e65c0f4a0229851 | [
"BSD-3-Clause"
] | null | null | null | defmodule Mole.Repo.Migrations.CreateSets do
use Ecto.Migration
def change do
create table(:sets) do
add :number, :integer
timestamps()
end
end
end
| 13.615385 | 44 | 0.666667 |
1dd9be9b333153a24dcbea188defcc15ce8ad6db | 4,129 | ex | Elixir | apps/gitrekt/lib/gitrekt/wire_protocol/upload_pack.ex | chulkilee/gitgud | 7a9b1023ff986ca08fb821a5e7658904a6061ba3 | [
"MIT"
] | null | null | null | apps/gitrekt/lib/gitrekt/wire_protocol/upload_pack.ex | chulkilee/gitgud | 7a9b1023ff986ca08fb821a5e7658904a6061ba3 | [
"MIT"
] | null | null | null | apps/gitrekt/lib/gitrekt/wire_protocol/upload_pack.ex | chulkilee/gitgud | 7a9b1023ff986ca08fb821a5e7658904a6061ba3 | [
"MIT"
] | null | null | null | defmodule GitRekt.WireProtocol.UploadPack do
@moduledoc """
Module implementing the `git-upload-pack` command.
"""
@behaviour GitRekt.WireProtocol.Service
alias GitRekt.Git
import GitRekt.Packfile, only: [create: 2]
import GitRekt.WireProtocol, only: [reference_discovery: 2]
defstruct [:repo, state:... | 31.280303 | 98 | 0.618067 |
1dd9db7cf46c7012da2e97f207e8dc91ced503b9 | 1,041 | ex | Elixir | lib/hexpm/repository/package_metadata.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/repository/package_metadata.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/repository/package_metadata.ex | hubertpompecki/hexpm | 5cd4208b07a70bf2e1490930bf5d577978793b50 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Repository.PackageMetadata do
use Hexpm.Web, :schema
@derive Hexpm.Web.Stale
embedded_schema do
field :description, :string
field :licenses, {:array, :string}
field :links, {:map, :string}
field :maintainers, {:array, :string}
field :extra, :map
end
def changeset(meta, p... | 23.659091 | 73 | 0.653218 |
1dd9eb665d87e6446f0eb24e6980416e90487ed1 | 2,564 | ex | Elixir | lib/ex_appointment_web/router.ex | amalgamated-tools/ex_appointment | 095237f0bd6746afd8ec93d92540158aa1934075 | [
"MIT"
] | 1 | 2021-03-28T17:41:37.000Z | 2021-03-28T17:41:37.000Z | lib/ex_appointment_web/router.ex | amalgamated-tools/ex_appointment | 095237f0bd6746afd8ec93d92540158aa1934075 | [
"MIT"
] | null | null | null | lib/ex_appointment_web/router.ex | amalgamated-tools/ex_appointment | 095237f0bd6746afd8ec93d92540158aa1934075 | [
"MIT"
] | null | null | null | defmodule ExAppointmentWeb.Router do
use ExAppointmentWeb, :router
import ExAppointmentWeb.UserAuth
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {ExAppointmentWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_sec... | 31.268293 | 86 | 0.728549 |
1dda0b44f1d77566791f787a59382a67939d6f7d | 2,059 | ex | Elixir | lib/mix/tasks/calcinator/ecto/wait.ex | Decisiv/calcinator | 0d161e8d89c98514e146ae79afeae65215b94388 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/calcinator/ecto/wait.ex | Decisiv/calcinator | 0d161e8d89c98514e146ae79afeae65215b94388 | [
"Apache-2.0"
] | 1 | 2018-09-24T21:48:46.000Z | 2018-09-24T21:48:46.000Z | lib/mix/tasks/calcinator/ecto/wait.ex | Decisiv/calcinator | 0d161e8d89c98514e146ae79afeae65215b94388 | [
"Apache-2.0"
] | null | null | null | if Code.ensure_loaded?(Ecto.Adapters.Postgres.Connection) do
defmodule Mix.Tasks.Calcinator.Ecto.Wait do
@moduledoc """
Waits for connection to work to the given repository.
The repositry must be set under `:ecto_repos` in the
current app configuration.
## Example
mix do calcinator.ecto... | 21.010204 | 101 | 0.572608 |
1dda1917fc7d8c12098158f8e233f0883277d2a4 | 139 | ex | Elixir | lib/ecto_crdt_types/types/pure/gset.ex | ExpressApp/ecto_crdt_types | cf18557cf888b3d50a44640997507cff6caf2b93 | [
"MIT"
] | 8 | 2018-09-20T13:05:16.000Z | 2021-09-22T08:40:40.000Z | lib/ecto_crdt_types/types/pure/gset.ex | ExpressApp/ecto_crdt_types | cf18557cf888b3d50a44640997507cff6caf2b93 | [
"MIT"
] | null | null | null | lib/ecto_crdt_types/types/pure/gset.ex | ExpressApp/ecto_crdt_types | cf18557cf888b3d50a44640997507cff6caf2b93 | [
"MIT"
] | null | null | null | defmodule EctoCrdtTypes.Types.Pure.GSet do
@crdt_type :pure_gset
@crdt_value_type {:array, :string}
use EctoCrdtTypes.Types.CRDT
end
| 23.166667 | 42 | 0.784173 |
1dda50b7b53e642a03bd735aaabf000a4ee1ceff | 1,757 | exs | Elixir | mix.exs | mithereal/elixir_license_server | 51a8383d4686c7cc7924763d85b9930e91138d2f | [
"MIT"
] | 2 | 2020-01-26T23:26:40.000Z | 2020-04-22T15:53:55.000Z | mix.exs | mithereal/elixir_license_server | 51a8383d4686c7cc7924763d85b9930e91138d2f | [
"MIT"
] | 1 | 2019-05-27T02:13:05.000Z | 2019-05-27T02:13:05.000Z | mix.exs | mithereal/elixir_license_server | 51a8383d4686c7cc7924763d85b9930e91138d2f | [
"MIT"
] | null | null | null | defmodule Drm.MixProject do
use Mix.Project
@source_url "https://github.com/mithereal/ex_drm.git"
@version "0.2.1"
def project do
[
app: :drm,
version: @version,
build_path: "./_build",
config_path: "./config/config.exs",
deps_path: "./deps",
lockfile: "./mix.lock",
... | 21.691358 | 72 | 0.54354 |
1dda57b8303ec120a172ee4bca2f81832cd9c019 | 221 | ex | Elixir | lib/sneex/pipeline.ex | NickMcG/SNEEX | 901215dea41fa21314a4f4db46b51648158f1544 | [
"MIT"
] | 1 | 2019-11-16T00:33:02.000Z | 2019-11-16T00:33:02.000Z | lib/sneex/pipeline.ex | NickMcG/SNEEX | 901215dea41fa21314a4f4db46b51648158f1544 | [
"MIT"
] | 1 | 2019-08-11T23:02:15.000Z | 2019-08-11T23:02:15.000Z | lib/sneex/pipeline.ex | NickMcG/SNEEX | 901215dea41fa21314a4f4db46b51648158f1544 | [
"MIT"
] | null | null | null | defmodule Sneex.Pipeline do
@moduledoc """
This module handles the pipeline.
The pipeline consists of:
* Fetch (1 tick)
* Decode (1 tick)
* Execute (variable ticks)
* Writeback (1 tick, optional)
"""
end
| 18.416667 | 35 | 0.669683 |
1dda76b4fbc27b2fa8500ab6ac46f7dfd3640e5a | 519 | ex | Elixir | lib/sample/test_attributes.ex | skylerparr/doc_spec | 2b390923483e7ef545e470e4937ec7d216ef8f07 | [
"MIT"
] | null | null | null | lib/sample/test_attributes.ex | skylerparr/doc_spec | 2b390923483e7ef545e470e4937ec7d216ef8f07 | [
"MIT"
] | null | null | null | lib/sample/test_attributes.ex | skylerparr/doc_spec | 2b390923483e7ef545e470e4937ec7d216ef8f07 | [
"MIT"
] | null | null | null | defmodule Sample.TestAttributes do
use DocSpec
@docspec """
Description:
Does special things to a user
Case:
When invoked it returns id when given a user
Given:
user = %{id: 100}
Example:
iex> TestAttributes.my_func(user)
100
"""
def my_func(arg) do
IO.inspect arg
arg.id
end
... | 13.657895 | 46 | 0.643545 |
1dda913127014d2b4d1214527e488bd1123ee55f | 1,405 | exs | Elixir | test/elixir_sense/core/normalized/tokenizer_test.exs | BartOtten/elixir_sense | 4a857f2c262b9f8ac2d72e31f4806cecc740192a | [
"MIT",
"Unlicense"
] | 216 | 2019-01-05T02:08:51.000Z | 2022-03-23T23:59:56.000Z | test/elixir_sense/core/normalized/tokenizer_test.exs | BartOtten/elixir_sense | 4a857f2c262b9f8ac2d72e31f4806cecc740192a | [
"MIT",
"Unlicense"
] | 102 | 2019-01-18T04:59:06.000Z | 2022-01-10T14:21:24.000Z | test/elixir_sense/core/normalized/tokenizer_test.exs | BartOtten/elixir_sense | 4a857f2c262b9f8ac2d72e31f4806cecc740192a | [
"MIT",
"Unlicense"
] | 31 | 2019-01-16T08:19:34.000Z | 2022-03-07T08:06:22.000Z | defmodule ElixirSense.Core.Normalized.TokenizerTest do
use ExUnit.Case, async: true
alias ElixirSense.Core.Normalized.Tokenizer
test "tokenizes valid elixir source" do
buffer = """
defmodule Abc do
def fun(a), do: :ok
end
"""
assert [
{:eol, {3, 4, 1}},
{:en... | 29.270833 | 54 | 0.423488 |
1dda9db594d9e1f000319de50fa9ac23f3bd799f | 66,985 | ex | Elixir | lib/aws/generated/cloud_front.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/cloud_front.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/cloud_front.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.CloudFront do
@moduledoc """
Amazon CloudFront
This is the *Amazon CloudFront API Reference*.
This guide is for developers who need detailed information about CloudFront API
actions, d... | 24.735968 | 224 | 0.626752 |
1ddaa4889f7ceb563513165b6a90d93d88136f15 | 2,213 | ex | Elixir | apps/authenticator/lib/authenticator.ex | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 9 | 2020-10-13T14:11:37.000Z | 2021-08-12T18:40:08.000Z | apps/authenticator/lib/authenticator.ex | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 28 | 2020-10-04T14:43:48.000Z | 2021-12-07T16:54:22.000Z | apps/authenticator/lib/authenticator.ex | lcpojr/watcher_ex | bd5a9210b5b41a6c9b5d4255de19fc6967d29fb7 | [
"Apache-2.0"
] | 3 | 2020-11-25T20:59:47.000Z | 2021-08-30T10:36:58.000Z | defmodule Authenticator do
@moduledoc """
Application to deal with request's to authenticator server.
"""
alias Authenticator.Crypto.Commands.{FakeVerifyHash, GenerateHash, VerifyHash}
alias Authenticator.Sessions.Commands.GetSession
alias Authenticator.Sessions.Tokens.AccessToken
alias Authenticator.Si... | 36.883333 | 89 | 0.766832 |
1ddaad4c4ce5ff8f3047df21ce60a13eb5d855fc | 213 | ex | Elixir | lib/elixir_lokalise_api/models/payment_card.ex | kianmeng/elixir-lokalise-api | fca59438cbd8ee960adbbce8b13cef12ddc68ef6 | [
"BSD-3-Clause"
] | 3 | 2021-06-24T14:30:31.000Z | 2021-09-06T11:30:17.000Z | lib/elixir_lokalise_api/models/payment_card.ex | kianmeng/elixir-lokalise-api | fca59438cbd8ee960adbbce8b13cef12ddc68ef6 | [
"BSD-3-Clause"
] | 8 | 2021-09-15T07:30:59.000Z | 2022-02-01T17:40:17.000Z | lib/elixir_lokalise_api/models/payment_card.ex | kianmeng/elixir-lokalise-api | fca59438cbd8ee960adbbce8b13cef12ddc68ef6 | [
"BSD-3-Clause"
] | 2 | 2021-09-07T11:10:51.000Z | 2021-09-26T07:37:39.000Z | defmodule ElixirLokaliseApi.Model.PaymentCard do
@moduledoc false
defstruct card_id: nil,
last4: nil,
brand: nil,
created_at: nil,
created_at_timestamp: nil
end
| 23.666667 | 48 | 0.619718 |
1ddac1cd5e69b876c73ee71098c543a9c4157a48 | 243,010 | ex | Elixir | lib/calendar_recurrence/rrule_parser.ex | lafka/calendar_recurrence | 62238f6f63a354f2ccfe21618b98998d771dcd7b | [
"Apache-2.0"
] | 23 | 2018-05-21T13:55:50.000Z | 2021-03-25T12:33:50.000Z | lib/calendar_recurrence/rrule_parser.ex | wojtekmach/recurrence | 62238f6f63a354f2ccfe21618b98998d771dcd7b | [
"Apache-2.0"
] | 1 | 2018-12-20T09:52:06.000Z | 2018-12-20T09:52:06.000Z | lib/calendar_recurrence/rrule_parser.ex | wojtekmach/recurrence | 62238f6f63a354f2ccfe21618b98998d771dcd7b | [
"Apache-2.0"
] | 6 | 2018-10-13T20:51:06.000Z | 2020-11-29T15:16:54.000Z | # Generated from lib/calendar_recurrence/rrule_parser.ex.exs, do not edit.
# Generated at 2018-05-16 23:42:45Z.
if Code.ensure_loaded?(NimbleParsec) do
defmodule CalendarRecurrence.RRULE.ParserHelpers do
@moduledoc false
import NimbleParsec
def part(name, combinator) do
string(name)
|> igno... | 43.722562 | 5,947 | 0.665359 |
1ddacb617d5551bd7ca8e51e636e5d6aefd0c92f | 3,429 | ex | Elixir | clients/pub_sub/lib/google_api/pub_sub/v1/model/pubsub_message.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/pub_sub/lib/google_api/pub_sub/v1/model/pubsub_message.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/pub_sub/lib/google_api/pub_sub/v1/model/pubsub_message.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... | 58.118644 | 483 | 0.732283 |
1ddae1a6e8f7a41da78fbdffb1bce9a54c459bd3 | 403 | exs | Elixir | priv/repo/migrations/20200629135234_add_pickup_location_to_campaign.exs | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 28 | 2021-10-11T01:53:53.000Z | 2022-03-24T17:45:55.000Z | priv/repo/migrations/20200629135234_add_pickup_location_to_campaign.exs | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | 20 | 2021-10-21T08:12:31.000Z | 2022-03-31T13:35:53.000Z | priv/repo/migrations/20200629135234_add_pickup_location_to_campaign.exs | bikebrigade/dispatch | eb622fe4f6dab7c917d678d3d7a322a01f97da44 | [
"Apache-2.0"
] | null | null | null | defmodule BikeBrigade.Repo.Migrations.AddPickupLocationToCampaign do
use Ecto.Migration
def change do
alter table(:campaigns) do
add :pickup_address, :string
add :pickup_address2, :string
add :pickup_city, :string
add :pickup_province, :string
add :pickup_postal, :string
add... | 25.1875 | 68 | 0.702233 |
1ddae6815f254bfdb2cc2aff86e073e70d38fdbe | 1,921 | exs | Elixir | server/mix.exs | felixwolter/idai-field | 146ab8dbdedb23035a4ba19eac95f02a1fa2329f | [
"Apache-2.0"
] | null | null | null | server/mix.exs | felixwolter/idai-field | 146ab8dbdedb23035a4ba19eac95f02a1fa2329f | [
"Apache-2.0"
] | null | null | null | server/mix.exs | felixwolter/idai-field | 146ab8dbdedb23035a4ba19eac95f02a1fa2329f | [
"Apache-2.0"
] | null | null | null | defmodule IdaiFieldServer.MixProject do
use Mix.Project
def project do
[
app: :idai_field_server,
version: "0.1.0",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
alia... | 28.25 | 84 | 0.579386 |
1ddaf175028429f88939a3e6f378bfa1c9bddf3b | 489 | ex | Elixir | lib/mix/lib/mix/tasks/archive.uninstall.ex | kenichi/elixir | 8c27da88c70623cbe516d5310c885943395a82a2 | [
"Apache-2.0"
] | 2 | 2018-11-15T06:38:14.000Z | 2018-11-17T18:03:14.000Z | lib/mix/lib/mix/tasks/archive.uninstall.ex | kenichi/elixir | 8c27da88c70623cbe516d5310c885943395a82a2 | [
"Apache-2.0"
] | 1 | 2015-06-09T15:52:43.000Z | 2015-06-09T15:52:43.000Z | lib/mix/lib/mix/tasks/archive.uninstall.ex | kenichi/elixir | 8c27da88c70623cbe516d5310c885943395a82a2 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Archive.Uninstall do
use Mix.Task
@shortdoc "Uninstalls archives"
@moduledoc """
Uninstalls local archives.
mix archive.uninstall archive.ez
## Command line options
* `--force` - forces uninstallation without a shell prompt; primarily
intended for automation
"""
@s... | 19.56 | 91 | 0.689162 |
1ddb0c8ab6da029d695580fd4803603af7c95925 | 1,934 | ex | Elixir | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/sequence_segment.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/sequence_segment.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/analytics_reporting/lib/google_api/analytics_reporting/v4/model/sequence_segment.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... | 38.68 | 186 | 0.774043 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.