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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
934234e37975d7bfde07b4e6d5ca733fa4c6e327 | 877 | ex | Elixir | lib/challenge_gov/reports/reports.ex | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 9 | 2020-02-26T20:24:38.000Z | 2022-03-22T21:14:52.000Z | lib/challenge_gov/reports/reports.ex | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 15 | 2020-04-22T19:33:24.000Z | 2022-03-26T15:11:17.000Z | lib/challenge_gov/reports/reports.ex | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 4 | 2020-04-27T22:58:57.000Z | 2022-01-14T13:42:09.000Z | defmodule ChallengeGov.Reports.Report do
@moduledoc """
Reportschema
"""
use Ecto.Schema
import Ecto.Changeset
@type t :: %__MODULE__{}
schema "" do
field :year, :integer, virtual: true
field :month, :integer, virtual: true
field :day, :integer, virtual: true
end
def changeset(struct, p... | 20.880952 | 62 | 0.606613 |
93426221656fd9fabc211782162116e379dbe361 | 6,114 | ex | Elixir | test/elixir/lib/couch.ex | popojargo/couchdb | e97f0297234b03b9b4a9904c7403b703a2a9a735 | [
"Apache-2.0"
] | null | null | null | test/elixir/lib/couch.ex | popojargo/couchdb | e97f0297234b03b9b4a9904c7403b703a2a9a735 | [
"Apache-2.0"
] | null | null | null | test/elixir/lib/couch.ex | popojargo/couchdb | e97f0297234b03b9b4a9904c7403b703a2a9a735 | [
"Apache-2.0"
] | null | null | null | defmodule Couch.Session do
@moduledoc """
CouchDB session helpers.
"""
@enforce_keys [:cookie]
defstruct [:cookie]
def new(cookie) do
%Couch.Session{cookie: cookie}
end
def logout(sess) do
headers = [
"Content-Type": "application/x-www-form-urlencoded",
"X-CouchDB-WWW-Authenticate... | 27.173333 | 90 | 0.618253 |
93427ff9b905e6ac9fb77b727a250b8b9c64f627 | 5,601 | ex | Elixir | lib/jumubase_web/controllers/internal/participant_controller.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 2 | 2019-01-20T07:03:30.000Z | 2019-04-11T10:20:14.000Z | lib/jumubase_web/controllers/internal/participant_controller.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 6 | 2018-09-20T05:52:14.000Z | 2019-04-23T19:27:39.000Z | lib/jumubase_web/controllers/internal/participant_controller.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | null | null | null | defmodule JumubaseWeb.Internal.ParticipantController do
use JumubaseWeb, :controller
import JumubaseWeb.Internal.ParticipantView, only: [full_name: 1]
alias Ecto.Changeset
alias Jumubase.Foundation.Contest
alias Jumubase.Showtime
alias Jumubase.Showtime.Participant
alias Jumubase.Mailer
alias Jumubase.U... | 32.005714 | 98 | 0.69809 |
9342c2af33040045e93e7fb8ab8cdd5864242466 | 1,166 | ex | Elixir | lib/absinthe/schema/rule/query_type_must_be_object.ex | dmarkow/absinthe | 707690bf06189b3a4b13959908a2eb52a3951179 | [
"MIT"
] | null | null | null | lib/absinthe/schema/rule/query_type_must_be_object.ex | dmarkow/absinthe | 707690bf06189b3a4b13959908a2eb52a3951179 | [
"MIT"
] | 2 | 2018-08-02T13:35:38.000Z | 2018-08-02T13:36:42.000Z | lib/absinthe/schema/rule/query_type_must_be_object.ex | se-apc/absinthe | a95f8d7658091f99e2ebf5af659bfcfaecc97423 | [
"MIT"
] | null | null | null | defmodule Absinthe.Schema.Rule.QueryTypeMustBeObject do
use Absinthe.Schema.Rule
alias Absinthe.Schema
require IEx
@moduledoc false
@description """
#Example
defmodule MyApp.Schema do
use Absinthe.Schema
query do
#Fields go here
end
end
--------------------------------------
... | 22.862745 | 80 | 0.662093 |
93431041f1a78cf19d0689baa5b94bd77d839ade | 2,284 | ex | Elixir | clients/tool_results/lib/google_api/tool_results/v1beta3/model/test_issue.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/test_issue.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/test_issue.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.711864 | 179 | 0.746497 |
93432e29145c8e44f4c1aa96ea2b874cc786ed96 | 2,787 | exs | Elixir | config/config.exs | dlederle/tilex | 63520eeb013a2a18174de0b6e41e8b99977dbc20 | [
"MIT"
] | null | null | null | config/config.exs | dlederle/tilex | 63520eeb013a2a18174de0b6e41e8b99977dbc20 | [
"MIT"
] | null | null | null | config/config.exs | dlederle/tilex | 63520eeb013a2a18174de0b6e41e8b99977dbc20 | [
"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 :tilex, ecto_repos: [Tilex.Repo]
# Use Ja... | 37.16 | 90 | 0.764621 |
934330a62ca0ff9836b9492ec2fdfaa04bb7f0ea | 7,382 | ex | Elixir | lib/parse/datetime/tokenizers/strftime.ex | shahryarjb/timex | d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a | [
"MIT"
] | 1,623 | 2015-01-03T16:53:19.000Z | 2022-03-27T01:25:50.000Z | lib/parse/datetime/tokenizers/strftime.ex | shahryarjb/timex | d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a | [
"MIT"
] | 654 | 2015-01-04T23:59:47.000Z | 2022-03-08T01:02:01.000Z | lib/parse/datetime/tokenizers/strftime.ex | shahryarjb/timex | d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a | [
"MIT"
] | 428 | 2015-01-04T19:37:37.000Z | 2022-03-31T10:48:44.000Z | defmodule Timex.Parse.DateTime.Tokenizers.Strftime do
@moduledoc """
Implements the parser for strftime-style datetime format strings.
"""
import Combine.Parsers.Base
import Combine.Parsers.Text
use Timex.Parse.DateTime.Tokenizer
@doc """
Tokenizes the given format string and returns an error or a lis... | 23.06875 | 98 | 0.515849 |
9343429489b88f56d75bc4c250b3a1cdec14a55b | 1,113 | exs | Elixir | config/config.exs | hueho-daniel/forth | a2c155f727c7f1fc04bd2fc667459e97bcf99fd4 | [
"MIT"
] | null | null | null | config/config.exs | hueho-daniel/forth | a2c155f727c7f1fc04bd2fc667459e97bcf99fd4 | [
"MIT"
] | null | null | null | config/config.exs | hueho-daniel/forth | a2c155f727c7f1fc04bd2fc667459e97bcf99fd4 | [
"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... | 35.903226 | 73 | 0.750225 |
93437380449dbdf6ba119b0223ede3d4f1adf056 | 45,924 | ex | Elixir | lib/simple_pool/monitoring_framework/environment_manager/pool.ex | Prodev2017/Simple_Elixir | e210071df8a6ac7cc8de2ed3360fcdb1ba440785 | [
"MIT"
] | null | null | null | lib/simple_pool/monitoring_framework/environment_manager/pool.ex | Prodev2017/Simple_Elixir | e210071df8a6ac7cc8de2ed3360fcdb1ba440785 | [
"MIT"
] | null | null | null | lib/simple_pool/monitoring_framework/environment_manager/pool.ex | Prodev2017/Simple_Elixir | e210071df8a6ac7cc8de2ed3360fcdb1ba440785 | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Author: Keith Brings
# Copyright (C) 2018 Noizu Labs, Inc. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Noizu.MonitoringFramework.EnvironmentPool do
#alias Noizu.Scaff... | 43.904398 | 224 | 0.587079 |
93438651c022cc2dd4e4dde235736679f09ea0e8 | 2,026 | ex | Elixir | plugins/ucc_chat/lib/ucc_chat/message_agent.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_chat/lib/ucc_chat/message_agent.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_chat/lib/ucc_chat/message_agent.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | defmodule UccChat.MessageAgent do
@moduledoc """
An Agent to handle fetching url previews in the background.
"""
use GenServer
alias UcxUcc.UccPubSub
alias UccChat.Subscription
require Logger
@name __MODULE__
# require Logger
############
# Public API
def start_link do
GenServer.start_l... | 19.862745 | 83 | 0.621422 |
9343a6146bb58bb3eb75d6c09039155711e3ed3d | 2,503 | ex | Elixir | lib/events_web/controllers/user_controller.ex | jacrdn/web_dev_hw08 | 1727810bb56a9a30733cb93cd77a8db7f5f747ed | [
"MIT"
] | null | null | null | lib/events_web/controllers/user_controller.ex | jacrdn/web_dev_hw08 | 1727810bb56a9a30733cb93cd77a8db7f5f747ed | [
"MIT"
] | null | null | null | lib/events_web/controllers/user_controller.ex | jacrdn/web_dev_hw08 | 1727810bb56a9a30733cb93cd77a8db7f5f747ed | [
"MIT"
] | null | null | null | defmodule EventsWeb.UserController do
use EventsWeb, :controller
alias Events.Users
alias Events.Users.User
alias Events.Photos
alias EventsWeb.Plugs
plug Plugs.RequireUser when action
not in [:index, :show, :new, :create, :delete]
@spec index(Plug.Conn.t(), any) :: Plug.Conn.t()
def index(conn, ... | 27.811111 | 67 | 0.622054 |
9343aca88689539387723aba6aa11825e02f30c8 | 498 | ex | Elixir | nevernote/lib/nevernote/content/blocknote.ex | dreamingechoes/create-an-mvp-with-phoenix-framework | 2a75582fdece9c8f0931f6322e27db5467ae96a4 | [
"MIT"
] | 4 | 2019-01-07T09:15:23.000Z | 2021-06-18T02:56:14.000Z | nevernote/lib/nevernote/content/blocknote.ex | dreamingechoes/create-an-mvp-with-phoenix-framework | 2a75582fdece9c8f0931f6322e27db5467ae96a4 | [
"MIT"
] | null | null | null | nevernote/lib/nevernote/content/blocknote.ex | dreamingechoes/create-an-mvp-with-phoenix-framework | 2a75582fdece9c8f0931f6322e27db5467ae96a4 | [
"MIT"
] | null | null | null | defmodule Nevernote.Content.Blocknote do
use Ecto.Schema
import Ecto.Changeset
alias Nevernote.Accounts.User
alias Nevernote.Content.Note
schema "blocknotes" do
field(:title, :string)
timestamps()
# Associations
belongs_to(:user, User)
has_many(:notes, Note, on_delete: :delete_all)
... | 18.444444 | 50 | 0.682731 |
9343cefbd03709143d78a9f5a914f964e8fa2d4c | 2,641 | ex | Elixir | lib/mix/tasks/release.plugins.ex | smpallen99/exrm | 2e67d3b3bc1fcb0a7ec9a223da247a6ce9d607ad | [
"MIT"
] | null | null | null | lib/mix/tasks/release.plugins.ex | smpallen99/exrm | 2e67d3b3bc1fcb0a7ec9a223da247a6ce9d607ad | [
"MIT"
] | null | null | null | lib/mix/tasks/release.plugins.ex | smpallen99/exrm | 2e67d3b3bc1fcb0a7ec9a223da247a6ce9d607ad | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Release.Plugins do
@moduledoc """
View information about active release plugins
## Examples
# View all active plugins
mix release.plugins
# View detailed info about a plugin, if available
mix release.plugins <plugin_name>
"""
@shortdoc "View information about ac... | 27.8 | 105 | 0.638773 |
9343e785dd4dae16dfe0a39df22d31774b5c2f2a | 492 | ex | Elixir | lib/exrabbit/application.ex | velimir0xff/exrabbit | 95a4332741bb42a355a0e6963e5a48794414be43 | [
"MIT"
] | null | null | null | lib/exrabbit/application.ex | velimir0xff/exrabbit | 95a4332741bb42a355a0e6963e5a48794414be43 | [
"MIT"
] | null | null | null | lib/exrabbit/application.ex | velimir0xff/exrabbit | 95a4332741bb42a355a0e6963e5a48794414be43 | [
"MIT"
] | null | null | null | defmodule Exrabbit.Application do
use Application
@doc false
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
# Define workers and child supervisors to be supervised
# worker(Exrabbit.Worker, [])
]
# See http://elixir-lang.org/docs/stable/elixir/Supervisor... | 23.428571 | 67 | 0.70122 |
9343f8c8750f7b3e4136ec4c94a9100664fa09aa | 5,016 | ex | Elixir | lib/scrivener/paginater/ecto/query.ex | Brianvdb/scrivener_ecto | 8590e7506697fcc122568de813d40f41511756f8 | [
"MIT"
] | null | null | null | lib/scrivener/paginater/ecto/query.ex | Brianvdb/scrivener_ecto | 8590e7506697fcc122568de813d40f41511756f8 | [
"MIT"
] | null | null | null | lib/scrivener/paginater/ecto/query.ex | Brianvdb/scrivener_ecto | 8590e7506697fcc122568de813d40f41511756f8 | [
"MIT"
] | null | null | null | defimpl Scrivener.Paginater, for: Ecto.Query do
import Ecto.Query
alias Scrivener.{Config, Page}
@moduledoc false
@spec paginate(Ecto.Query.t, Scrivener.Config.t) :: Scrivener.Page.t
def paginate(%{joins: joins, group_bys: group_bys} = query,
%Config{
page_size: page_size,
page_number: pa... | 27.712707 | 94 | 0.610247 |
934402d56ae21c4c5467ac558ee127019b8c49bd | 1,320 | exs | Elixir | test/redirect_handler_test.exs | qgadrian/httparrot | 5b3409d5b17f1772a1e503ce9da6b7b8390c0537 | [
"MIT"
] | 68 | 2015-01-07T20:29:02.000Z | 2022-03-03T16:44:31.000Z | test/redirect_handler_test.exs | qgadrian/httparrot | 5b3409d5b17f1772a1e503ce9da6b7b8390c0537 | [
"MIT"
] | 29 | 2015-01-11T05:12:46.000Z | 2021-12-23T13:07:47.000Z | test/redirect_handler_test.exs | qgadrian/httparrot | 5b3409d5b17f1772a1e503ce9da6b7b8390c0537 | [
"MIT"
] | 29 | 2015-01-08T22:33:15.000Z | 2022-03-16T00:31:31.000Z | defmodule HTTParrot.RedirectHandlerTest do
use ExUnit.Case
import :meck
import HTTParrot.RedirectHandler
setup do
new(:cowboy_req)
on_exit(fn -> unload() end)
:ok
end
test "malformed_request returns true if it's not an integer" do
expect(:cowboy_req, :binding, [{[:n, :req1], "a2B="}])
... | 25.384615 | 81 | 0.653788 |
934406d9cb47ba5bbd5feb494bbd24681a83b4bc | 52 | ex | Elixir | lib/ueberauth_flickr.ex | christopheradams/ueberauth_flickr | cd8fcf3a608945f691e2db05a558950e501566e7 | [
"MIT"
] | 1 | 2019-11-19T11:53:49.000Z | 2019-11-19T11:53:49.000Z | lib/ueberauth_flickr.ex | christopheradams/ueberauth_flickr | cd8fcf3a608945f691e2db05a558950e501566e7 | [
"MIT"
] | null | null | null | lib/ueberauth_flickr.ex | christopheradams/ueberauth_flickr | cd8fcf3a608945f691e2db05a558950e501566e7 | [
"MIT"
] | null | null | null | defmodule UeberauthFlickr do
@moduledoc false
end
| 13 | 28 | 0.826923 |
93444969aeccd6c619c4e4292f4e2005e15c3213 | 4,619 | ex | Elixir | lib/webdriver/keys.ex | bosko/elixir-webdriver | e7037312decab6646b2107b7345f2974b24a9d15 | [
"MIT"
] | 104 | 2015-02-11T02:57:53.000Z | 2022-01-12T14:28:12.000Z | lib/webdriver/keys.ex | bosko/elixir-webdriver | e7037312decab6646b2107b7345f2974b24a9d15 | [
"MIT"
] | 3 | 2015-07-23T18:48:11.000Z | 2016-10-12T14:28:43.000Z | lib/webdriver/keys.ex | bosko/elixir-webdriver | e7037312decab6646b2107b7345f2974b24a9d15 | [
"MIT"
] | 28 | 2015-01-09T22:05:27.000Z | 2021-04-29T13:55:13.000Z | defmodule WebDriver.Keys do
@moduledoc """
This provides symbols to represent various non-printable keystrokes that
can be sent to a web browser.
The codes are defined in: https://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/element/:id/value
"""
@non_text_keys [
{ :key_n... | 31.209459 | 124 | 0.455726 |
93445556bb0a190f344a366e3913cace90b294f8 | 2,838 | exs | Elixir | mix.exs | isaacsanders/quantum-core | 1387b539ca66ec1b4fd2da6f3bb22554e88b590f | [
"Apache-2.0"
] | 1,092 | 2018-03-23T02:29:33.000Z | 2022-03-30T19:17:30.000Z | mix.exs | isaacsanders/quantum-core | 1387b539ca66ec1b4fd2da6f3bb22554e88b590f | [
"Apache-2.0"
] | 168 | 2018-03-22T12:52:28.000Z | 2022-03-19T22:49:17.000Z | mix.exs | isaacsanders/quantum-core | 1387b539ca66ec1b4fd2da6f3bb22554e88b590f | [
"Apache-2.0"
] | 79 | 2018-03-22T12:50:24.000Z | 2022-03-07T08:40:50.000Z | defmodule Quantum.Mixfile do
@moduledoc false
use Mix.Project
@source_url "https://github.com/quantum-elixir/quantum-core"
@version "3.4.0"
def project do
[
app: :quantum,
build_embedded: Mix.env() == :prod,
deps: deps(),
description: "Cron-like job scheduler for Elixir.",
... | 25.567568 | 85 | 0.525722 |
93449ec219c9ce15fa0c1c750f6c578a05bfa7fe | 306 | ex | Elixir | lib/backroll/application.ex | ulfurinn/backroll | 6328e495a8c0d680a5e3840e9a7ae9271f0b6b90 | [
"Apache-2.0"
] | 1 | 2020-01-13T19:56:02.000Z | 2020-01-13T19:56:02.000Z | lib/backroll/application.ex | ulfurinn/backroll | 6328e495a8c0d680a5e3840e9a7ae9271f0b6b90 | [
"Apache-2.0"
] | null | null | null | lib/backroll/application.ex | ulfurinn/backroll | 6328e495a8c0d680a5e3840e9a7ae9271f0b6b90 | [
"Apache-2.0"
] | null | null | null | defmodule Backroll.Application do
@moduledoc false
use Application
def start(_type, _args) do
import Supervisor.Spec
children = [
worker(Backroll.Registry, []),
]
opts = [strategy: :one_for_one, name: Backroll.Supervisor]
Supervisor.start_link(children, opts)
end
end
| 18 | 62 | 0.689542 |
9344a7c56cbdb7adb98f34d38c3a6fdcb8a4b3fc | 4,576 | ex | Elixir | lib/elixir/lib/gen_event/stream.ex | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/gen_event/stream.ex | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/gen_event/stream.ex | elkinsd/elixir | 810965e193cb57b82363e7c0c97b719743b7964f | [
"Apache-2.0"
] | null | null | null | defmodule GenEvent.Stream do
@moduledoc """
Defines a `GenEvent` stream.
This is a struct returned by `GenEvent.stream/2`. The struct is public and
contains the following fields:
* `:manager` - the manager reference given to `GenEvent.stream/2`
* `:timeout` - the timeout between events, defaults to ... | 26.604651 | 100 | 0.588724 |
9344d99f297b9e0ac380258e00aa200991b83833 | 761 | exs | Elixir | mix.exs | faineance/tonic | 24140da47d9ccdfc3dd18b215d712b491157f3ec | [
"MIT"
] | null | null | null | mix.exs | faineance/tonic | 24140da47d9ccdfc3dd18b215d712b491157f3ec | [
"MIT"
] | null | null | null | mix.exs | faineance/tonic | 24140da47d9ccdfc3dd18b215d712b491157f3ec | [
"MIT"
] | null | null | null | defmodule Tonic.Mixfile do
use Mix.Project
def project do
[app: :tonic,
version: "0.0.1",
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for mor... | 22.382353 | 77 | 0.596583 |
9344f8dc5fb24a4fdaffc405b932ff110528695e | 2,319 | ex | Elixir | lib/game/command/debug.ex | nomicflux/ex_venture | 3e87dc8802c24067256d99856198c814d0bae4d6 | [
"MIT"
] | 1 | 2019-02-10T10:22:39.000Z | 2019-02-10T10:22:39.000Z | lib/game/command/debug.ex | lorecrafting/ex_venture | 5de6a2eac19d8c6069868d34318f07ee714f9c98 | [
"MIT"
] | null | null | null | lib/game/command/debug.ex | lorecrafting/ex_venture | 5de6a2eac19d8c6069868d34318f07ee714f9c98 | [
"MIT"
] | null | null | null | defmodule Game.Command.Debug do
@moduledoc """
The "afk" command
"""
use Game.Command
alias Game.Session.Registry, as: SessionRegistry
commands(["debug"], parse: false)
@required_flags ["admin"]
@impl Game.Command
def help(:topic), do: "Debug"
def help(:short), do: "Look up debug information"
... | 20.522124 | 82 | 0.566192 |
9344fea84b99b84e046e6c915857e0c176594e77 | 7,766 | ex | Elixir | lib/sum_mag.ex | pdgonzalez872/pelemay | e6a588387cd6877cb0aaabc9c74fe21909a35fe9 | [
"Apache-2.0"
] | null | null | null | lib/sum_mag.ex | pdgonzalez872/pelemay | e6a588387cd6877cb0aaabc9c74fe21909a35fe9 | [
"Apache-2.0"
] | null | null | null | lib/sum_mag.ex | pdgonzalez872/pelemay | e6a588387cd6877cb0aaabc9c74fe21909a35fe9 | [
"Apache-2.0"
] | null | null | null | defmodule SumMag do
@moduledoc """
SumMag: a meta-programming library for Pelemay and Cockatorice.
"""
@doc """
## Examples
iex> quote do end |> SumMag.parse(%{target: :pelemay})
[]
iex> (quote do: def func(a), do: a) |> SumMag.parse(%{target: :pelemay})
[[function_name: :func, i... | 24.811502 | 251 | 0.531033 |
934541a92bb42195f939f72144149155186a8bbc | 2,421 | ex | Elixir | lib/changelog_web/controllers/auth_controller.ex | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | 1 | 2020-05-20T16:58:17.000Z | 2020-05-20T16:58:17.000Z | lib/changelog_web/controllers/auth_controller.ex | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | null | null | null | lib/changelog_web/controllers/auth_controller.ex | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | null | null | null | defmodule ChangelogWeb.AuthController do
use ChangelogWeb, :controller
alias Changelog.{Person, Mailer}
alias ChangelogWeb.Email
plug RequireGuest, "before signing in" when action in [:new, :create]
plug Ueberauth
def new(conn, %{"auth" => %{"email" => email}}) do
if person = Repo.get_by(Person, em... | 31.441558 | 90 | 0.665428 |
934560ee9a561cdd3cee0f303d963ac47cc859b8 | 16,608 | ex | Elixir | lib/twinklyhaha_web/controllers/oc2_controller.ex | TraceyOnim/TwinklyHaHa | 4dc66c6701bc351847f6ec1677da8cd752c27a86 | [
"MIT"
] | null | null | null | lib/twinklyhaha_web/controllers/oc2_controller.ex | TraceyOnim/TwinklyHaHa | 4dc66c6701bc351847f6ec1677da8cd752c27a86 | [
"MIT"
] | 22 | 2021-12-02T09:16:30.000Z | 2022-03-21T06:33:29.000Z | lib/twinklyhaha_web/controllers/oc2_controller.ex | TraceyOnim/TwinklyHaHa | 4dc66c6701bc351847f6ec1677da8cd752c27a86 | [
"MIT"
] | null | null | null | defmodule TwinklyhahaWeb.OC2Controller do
require Logger
use TwinklyhahaWeb, :controller
@topic "leds"
@on "on"
@off "off"
def command(conn, params) do
Logger.debug("oc2_controller command #{inspect(params)}")
## check top level components of command json
tops = Map.keys(params)
cond do
... | 42.584615 | 4,503 | 0.717245 |
93456409366d31a362cb54f790a164f8036cf903 | 360 | exs | Elixir | priv/old_repo/migrations/20160806214048_create_old_procedure_description.exs | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 10 | 2016-07-15T15:57:33.000Z | 2018-06-09T00:40:46.000Z | priv/old_repo/migrations/20160806214048_create_old_procedure_description.exs | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | null | null | null | priv/old_repo/migrations/20160806214048_create_old_procedure_description.exs | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 6 | 2016-07-15T15:57:41.000Z | 2018-03-22T16:38:00.000Z | defmodule Eecrit.OldRepo.Migrations.CreateOldProcedureDescription do
use Ecto.Migration
def change do
create table(:procedure_descriptions) do
add :animal_kind, :text
add :description, :text
add :procedure_id, references(:procedures, on_delete: :nothing)
end
create index(:procedure_de... | 25.714286 | 69 | 0.738889 |
93456ec5215e3d9a61715ea1a361b881109fd5f3 | 1,720 | exs | Elixir | mix.exs | Raiszo/chatzExs | 6321f8b8f46b5c86cdbc80ab0d24d5f97ca7ebfd | [
"MIT"
] | null | null | null | mix.exs | Raiszo/chatzExs | 6321f8b8f46b5c86cdbc80ab0d24d5f97ca7ebfd | [
"MIT"
] | null | null | null | mix.exs | Raiszo/chatzExs | 6321f8b8f46b5c86cdbc80ab0d24d5f97ca7ebfd | [
"MIT"
] | null | null | null | defmodule ChatzExs.Mixfile do
use Mix.Project
def project do
[app: :chatzExs,
version: "0.0.1",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
alia... | 30.175439 | 89 | 0.596512 |
934570584c4e3cdb84577b19a397da6775a4052c | 674 | ex | Elixir | lib/state_chart/configuration.ex | johnnyt/ex_statechart | 54b4df032700917df578b0a4543338a96864d2e5 | [
"MIT"
] | null | null | null | lib/state_chart/configuration.ex | johnnyt/ex_statechart | 54b4df032700917df578b0a4543338a96864d2e5 | [
"MIT"
] | null | null | null | lib/state_chart/configuration.ex | johnnyt/ex_statechart | 54b4df032700917df578b0a4543338a96864d2e5 | [
"MIT"
] | 1 | 2020-11-11T15:57:52.000Z | 2020-11-11T15:57:52.000Z | defmodule StateChart.Configuration do
alias StateChart.{Interpreter,Document.State}
def active_states(%Interpreter{configuration: conf}) do
active_states(conf)
end
def active_states(conf) do
conf
|> Stream.map(fn(%State{id: id}) -> id end)
|> Enum.into(MapSet.new())
end
def all_active_stat... | 22.466667 | 61 | 0.667656 |
9345738c1af6628423f21973bc7ba10aee715033 | 1,072 | ex | Elixir | lib/atbash_cipher.ex | jchartsell/atbash_cipher | 707d8efa97fc36794c9e69717d8786e26da4d479 | [
"MIT"
] | null | null | null | lib/atbash_cipher.ex | jchartsell/atbash_cipher | 707d8efa97fc36794c9e69717d8786e26da4d479 | [
"MIT"
] | null | null | null | lib/atbash_cipher.ex | jchartsell/atbash_cipher | 707d8efa97fc36794c9e69717d8786e26da4d479 | [
"MIT"
] | null | null | null | defmodule AtbashCipher do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the Ecto reposi... | 33.5 | 90 | 0.722015 |
934581775534d641c568b8de5331075b6528a8a9 | 1,790 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_card_button.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_card_button.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_card_button.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 31.964286 | 123 | 0.732402 |
93458c0edc624ae6f29fbdabd1e4ab13b35953ea | 2,104 | ex | Elixir | plug_signature_example/lib/plug_signature_example/middleware/http_signature_auth.ex | wojtekmach/plug_signature | f31c0c83c2adb85e82c40547c46131634e83e49c | [
"BSD-3-Clause"
] | 14 | 2020-01-01T14:44:38.000Z | 2021-09-07T08:15:13.000Z | plug_signature_example/lib/plug_signature_example/middleware/http_signature_auth.ex | wojtekmach/plug_signature | f31c0c83c2adb85e82c40547c46131634e83e49c | [
"BSD-3-Clause"
] | 2 | 2020-05-14T09:19:50.000Z | 2021-06-15T06:24:05.000Z | plug_signature_example/lib/plug_signature_example/middleware/http_signature_auth.ex | wojtekmach/plug_signature | f31c0c83c2adb85e82c40547c46131634e83e49c | [
"BSD-3-Clause"
] | 3 | 2020-03-05T13:53:42.000Z | 2021-06-10T10:24:07.000Z | defmodule PlugSignatureExample.Middleware.HttpSignatureAuth do
@moduledoc """
Tesla middleware for HTTP request signing according to
https://tools.ietf.org/html/draft-cavage-http-signatures-11
Supports the hs2019 algorithm only.
"""
alias PlugSignature.Crypto
@behaviour Tesla.Middleware
def call(env... | 25.349398 | 91 | 0.610266 |
9345bfbe9001c6fe81739e595e353847f59eb690 | 969 | exs | Elixir | elixir/phoenix/mix.exs | djones6/web-frameworks | 3ccdadccfba60b41fdb3753e161b15f6c862ff86 | [
"MIT"
] | 1 | 2020-06-03T07:07:48.000Z | 2020-06-03T07:07:48.000Z | elixir/phoenix/mix.exs | armando170A/web-fraworks | 7efa26caa29edb93cc475e5b5b5942a815090f75 | [
"MIT"
] | null | null | null | elixir/phoenix/mix.exs | armando170A/web-fraworks | 7efa26caa29edb93cc475e5b5b5942a815090f75 | [
"MIT"
] | null | null | null | defmodule MyPhoenix.Mixfile do
use Mix.Project
def project do
[app: :my_phoenix,
version: "0.0.1",
elixir: "~> 1.7.1",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
... | 26.189189 | 63 | 0.608875 |
9345c4b9c418d3ae56df1ec06ae9d611bf5a94ce | 5,866 | exs | Elixir | test/battle_box/game_engine/bot_server/bot_supervisor_test.exs | GrantJamesPowell/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | 2 | 2020-10-17T05:48:49.000Z | 2020-11-11T02:34:15.000Z | test/battle_box/game_engine/bot_server/bot_supervisor_test.exs | FlyingDutchmanGames/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | 3 | 2020-05-18T05:52:21.000Z | 2020-06-09T07:24:14.000Z | test/battle_box/game_engine/bot_server/bot_supervisor_test.exs | FlyingDutchmanGames/battle_box | 301091955b68cd4672f6513d645eca4e3c4e17d0 | [
"Apache-2.0"
] | null | null | null | defmodule BattleBox.GameEngine.BotServer.BotSupervisorTest do
alias BattleBox.{GameEngine, ApiKey, Bot, User, GameEngine.BotServer.BotSupervisor}
use BattleBox.DataCase, async: true
@user_id Ecto.UUID.generate()
setup %{test: name} do
{:ok, _} = GameEngine.start_link(name: name)
{:ok, GameEngine.names... | 33.712644 | 93 | 0.551824 |
9346220223da3e9577cc46ae1967dec5417a965d | 933 | ex | Elixir | test/support/channel_case.ex | hex337/bendpr | 503db8f510ff94826e948710fe95bb830eb96a3b | [
"MIT"
] | null | null | null | test/support/channel_case.ex | hex337/bendpr | 503db8f510ff94826e948710fe95bb830eb96a3b | [
"MIT"
] | 3 | 2018-04-23T16:58:06.000Z | 2018-05-07T17:07:37.000Z | test/support/channel_case.ex | hex337/bendpr | 503db8f510ff94826e948710fe95bb830eb96a3b | [
"MIT"
] | null | null | null | defmodule BendprWeb.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 datastructures and query the data layer.
Finally, if the test case interacts wit... | 24.552632 | 68 | 0.714898 |
9346235f8bf3f48a27db7270d6d43be86cc05189 | 2,304 | ex | Elixir | lib/membrane/rtp/header.ex | membraneframework/membrane_rtp | 1df5f0bdb66d5c89bc63122c8b29af6cd4e600aa | [
"Apache-2.0"
] | null | null | null | lib/membrane/rtp/header.ex | membraneframework/membrane_rtp | 1df5f0bdb66d5c89bc63122c8b29af6cd4e600aa | [
"Apache-2.0"
] | 2 | 2020-04-01T14:06:34.000Z | 2020-04-08T11:48:59.000Z | lib/membrane/rtp/header.ex | membraneframework/membrane_rtp | 1df5f0bdb66d5c89bc63122c8b29af6cd4e600aa | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.RTP.Header do
@moduledoc """
Describes RTP Header defined in [RFC3550](https://tools.ietf.org/html/rfc3550#page-13)
```
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-... | 31.561644 | 112 | 0.450521 |
934624a7a3ea87b501bf6212a3795a72e959a830 | 76 | exs | Elixir | lesson_07/demo/auth_umbrella/apps/auth_web/test/auth_web/views/layout_view_test.exs | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 1 | 2021-09-22T09:56:35.000Z | 2021-09-22T09:56:35.000Z | lesson_07/demo/auth_umbrella/apps/auth_web/test/auth_web/views/layout_view_test.exs | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 7 | 2020-03-14T19:30:29.000Z | 2022-02-27T01:20:40.000Z | lesson_07/demo/auth_umbrella/apps/auth_web/test/auth_web/views/layout_view_test.exs | martijnmeeldijk/ip_major | 867f09975aa8db0b308081216ace639c5677446b | [
"BSD-3-Clause"
] | 11 | 2020-02-13T14:52:45.000Z | 2020-08-03T12:18:56.000Z | defmodule AuthWeb.LayoutViewTest do
use AuthWeb.ConnCase, async: true
end
| 19 | 35 | 0.815789 |
9346316cfad7743295aa0fe0bb26e01b38dc712d | 2,016 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/creative_fields_list_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/creative_fields_list_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/creative_fields_list_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.037736 | 162 | 0.737599 |
934658d1b65bfbdf22cd6d8953bf36a51980a952 | 3,792 | ex | Elixir | lib/eximap/imap/client.ex | flussonic/eximap | 3829a004f7ff503165f4e18b3bb9308c8ea1ab81 | [
"Apache-2.0"
] | null | null | null | lib/eximap/imap/client.ex | flussonic/eximap | 3829a004f7ff503165f4e18b3bb9308c8ea1ab81 | [
"Apache-2.0"
] | null | null | null | lib/eximap/imap/client.ex | flussonic/eximap | 3829a004f7ff503165f4e18b3bb9308c8ea1ab81 | [
"Apache-2.0"
] | 6 | 2018-11-14T06:17:36.000Z | 2020-12-20T05:03:51.000Z | defmodule Eximap.Imap.Client do
use GenServer
alias Eximap.Imap.Request
alias Eximap.Imap.Response
alias Eximap.Socket
alias Eximap.Imap.Buffer
@moduledoc """
Imap Client GenServer
"""
@initial_state %{socket: nil, tag_number: 1, buff: "", conn_opts: nil}
@recv_timeout 20_000
@total_timeout 30_0... | 28.727273 | 120 | 0.61788 |
93465aae56296d0da572bd50b2e32db1ccc9c000 | 431 | ex | Elixir | lib/captcha.ex | gh520/elixir-captcha | 439c05b32315cb0d71a75168fd97cab80fbb9035 | [
"MIT"
] | null | null | null | lib/captcha.ex | gh520/elixir-captcha | 439c05b32315cb0d71a75168fd97cab80fbb9035 | [
"MIT"
] | null | null | null | lib/captcha.ex | gh520/elixir-captcha | 439c05b32315cb0d71a75168fd97cab80fbb9035 | [
"MIT"
] | null | null | null | defmodule Captcha do
# allow customize receive timeout, default: 10_000
def get(timeout \\ 1_000) do
Port.open({:spawn, Path.join(Application.app_dir(:captcha), "/priv/captcha")}, [:binary])
# Allow set receive timeout
receive do
{_, {:data, data}} ->
<<text::bytes-size(5), img::binary>> ... | 23.944444 | 93 | 0.593968 |
93466c94dc371bf77e87293cfb0a0f5d90e61ae2 | 3,758 | ex | Elixir | lib/ex_aws/config/defaults.ex | W-Games/ex_aws | 34167f5f5a87730e224d92b64f11cf062f99e722 | [
"MIT"
] | null | null | null | lib/ex_aws/config/defaults.ex | W-Games/ex_aws | 34167f5f5a87730e224d92b64f11cf062f99e722 | [
"MIT"
] | null | null | null | lib/ex_aws/config/defaults.ex | W-Games/ex_aws | 34167f5f5a87730e224d92b64f11cf062f99e722 | [
"MIT"
] | null | null | null | defmodule ExAws.Config.Defaults do
@moduledoc """
Defaults for each service
"""
@common %{
access_key_id: [{:system, "AWS_ACCESS_KEY_ID"}, :instance_role],
secret_access_key: [{:system, "AWS_SECRET_ACCESS_KEY"}, :instance_role],
http_client: ExAws.Request.Hackney,
json_codec: Jason,
retries... | 25.053333 | 93 | 0.584087 |
9346899fd14ec8242fcac2e9008b5c3bdfbfb040 | 603 | ex | Elixir | lib/plausible_web/views/billing_view.ex | lizlam/plausible | 886ba62cd814e5ca2d05c51a375bccc753c7c6ff | [
"MIT"
] | null | null | null | lib/plausible_web/views/billing_view.ex | lizlam/plausible | 886ba62cd814e5ca2d05c51a375bccc753c7c6ff | [
"MIT"
] | null | null | null | lib/plausible_web/views/billing_view.ex | lizlam/plausible | 886ba62cd814e5ca2d05c51a375bccc753c7c6ff | [
"MIT"
] | null | null | null | defmodule PlausibleWeb.BillingView do
use PlausibleWeb, :view
def admin_email do
Application.get_env(:plausible, :admin_email)
end
def base_domain do
PlausibleWeb.Endpoint.host()
end
def plausible_url do
PlausibleWeb.Endpoint.clean_url()
end
def present_date(date) do
Date.from_iso860... | 17.735294 | 49 | 0.610282 |
93469b766a642549a14de08d34ac6812b3f00749 | 966 | ex | Elixir | lib/foo_api.ex | matthewphilyaw/basic_auth_test | 9bd6b62c8680ec603314adab940b8840e50b240c | [
"MIT"
] | null | null | null | lib/foo_api.ex | matthewphilyaw/basic_auth_test | 9bd6b62c8680ec603314adab940b8840e50b240c | [
"MIT"
] | null | null | null | lib/foo_api.ex | matthewphilyaw/basic_auth_test | 9bd6b62c8680ec603314adab940b8840e50b240c | [
"MIT"
] | null | null | null | defmodule FooApi do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
# Start the endpoint when the application starts
supervisor(FooApi.End... | 31.16129 | 71 | 0.708075 |
9346aefb71e7f40f6dfd81845a8dc4a7b12798d9 | 130 | ex | Elixir | lib/cometoid_web/issue_live/context/list/item_component.ex | danielmarreirosdeoliveira/cometoid | 7a1c4f7700eb4dbb5f4c44fdc5185d048a429e50 | [
"Apache-2.0"
] | null | null | null | lib/cometoid_web/issue_live/context/list/item_component.ex | danielmarreirosdeoliveira/cometoid | 7a1c4f7700eb4dbb5f4c44fdc5185d048a429e50 | [
"Apache-2.0"
] | null | null | null | lib/cometoid_web/issue_live/context/list/item_component.ex | danielmarreirosdeoliveira/cometoid | 7a1c4f7700eb4dbb5f4c44fdc5185d048a429e50 | [
"Apache-2.0"
] | null | null | null | defmodule CometoidWeb.IssueLive.Context.List.ItemComponent do
use CometoidWeb, :live_component
import CometoidWeb.Helpers
end
| 26 | 61 | 0.846154 |
9346cbbc4dde9c0c4757022a8790952d23cb09c1 | 11,849 | ex | Elixir | lib/spf.ex | kbrw/mailibex | 035a0949fb518c6a84fb9a8501362d6d4743c78f | [
"MIT"
] | 30 | 2017-05-25T11:39:13.000Z | 2021-12-10T01:40:59.000Z | lib/spf.ex | kbrw/mailibex | 035a0949fb518c6a84fb9a8501362d6d4743c78f | [
"MIT"
] | 16 | 2017-05-23T13:16:54.000Z | 2022-01-14T11:03:33.000Z | lib/spf.ex | kbrw/mailibex | 035a0949fb518c6a84fb9a8501362d6d4743c78f | [
"MIT"
] | 18 | 2017-06-02T18:56:57.000Z | 2022-03-10T08:17:02.000Z | defmodule SPF do
@doc """
params:
- sender: sender mail to check
- ip: check authorization for this ip, ip in erlang format so
ipv4:{1,1,1,1}, ipv6:{1,1,1,1,1,1,1,1}
- param_list: optional kw parameters :helo and :server_domain, if :spf is
given, then the :spf value is used for SPF inst... | 40.030405 | 139 | 0.6225 |
9346e91f43cad9c40d839d0da1546249cb2f2f23 | 947 | ex | Elixir | lib/modules/parity.ex | mcaneris/snowtracex | 38e95f4efc92facd1eff86e62d21a1ba7df81150 | [
"MIT"
] | null | null | null | lib/modules/parity.ex | mcaneris/snowtracex | 38e95f4efc92facd1eff86e62d21a1ba7df81150 | [
"MIT"
] | null | null | null | lib/modules/parity.ex | mcaneris/snowtracex | 38e95f4efc92facd1eff86e62d21a1ba7df81150 | [
"MIT"
] | null | null | null | defmodule Snowtracex.Parity do
@moduledoc """
Provides access to Snowtrace GETH/Parity Proxy API.
[API Documentation](https://snowtrace.io/apis#proxy)
"""
use Snowtracex.APIModule
@module :proxy
@spec call(binary(), binary()) :: {:ok, any()} | {:error, any()}
def call(address, data) do
action = "... | 23.675 | 83 | 0.644139 |
9346eee725f0da49ad7b044220051d2f08b0ccf0 | 3,899 | ex | Elixir | lib/bolt/events/handler.ex | CyberFlameGO/bolt | 225e6276983bec646e7f13519df066e8e1e770ed | [
"ISC"
] | 31 | 2018-12-06T23:12:33.000Z | 2022-03-29T18:34:25.000Z | lib/bolt/events/handler.ex | CyberFlameGO/bolt | 225e6276983bec646e7f13519df066e8e1e770ed | [
"ISC"
] | 18 | 2021-06-14T19:03:26.000Z | 2022-03-15T17:46:22.000Z | lib/bolt/events/handler.ex | CyberFlameGO/bolt | 225e6276983bec646e7f13519df066e8e1e770ed | [
"ISC"
] | 4 | 2018-11-07T18:52:28.000Z | 2022-03-16T00:14:38.000Z | defmodule Bolt.Events.Handler do
@moduledoc """
Handles scheduled infractions persisted to the `infractions` table.
Infraction IDs are mapped to timers internally.
"""
alias Bolt.ErrorFormatters
alias Bolt.Events.Deserializer
alias Bolt.Repo
alias Bolt.Schema.Infraction
import Ecto.Query, only: [from... | 27.652482 | 85 | 0.615799 |
934739a8c1f70c89af6a5b239df5eb8444cf96e1 | 82 | exs | Elixir | plugins/one_chat/test/ucc_chat/web/views/layout_view_test.exs | smpallen99/ucx_ucc | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 11 | 2017-05-15T18:35:05.000Z | 2018-02-05T18:27:40.000Z | plugins/one_chat/test/ucc_chat/web/views/layout_view_test.exs | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 15 | 2017-11-27T10:38:05.000Z | 2018-02-09T20:42:08.000Z | plugins/one_chat/test/ucc_chat/web/views/layout_view_test.exs | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule OneChatWeb.LayoutViewTest do
use OneChatWeb.ConnCase, async: true
end
| 20.5 | 38 | 0.829268 |
93475079dc53dd42b388251c7c0b2c4961f27de0 | 2,006 | ex | Elixir | lib/url_fetcher.ex | gorkaio/url_fetcher | 2c7d6cfa2df32e07628024b2eec49a87ffeb6751 | [
"MIT"
] | 1 | 2020-08-14T06:56:44.000Z | 2020-08-14T06:56:44.000Z | lib/url_fetcher.ex | gorkaio/url_fetcher | 2c7d6cfa2df32e07628024b2eec49a87ffeb6751 | [
"MIT"
] | null | null | null | lib/url_fetcher.ex | gorkaio/url_fetcher | 2c7d6cfa2df32e07628024b2eec49a87ffeb6751 | [
"MIT"
] | null | null | null | defmodule UrlFetcher do
@moduledoc """
Fetches asset and link URLs from a given page URL.
"""
alias UrlFetcher.Http.Client, as: HttpClient
alias UrlFetcher.Parser
alias UrlFetcher.SiteData
@default_opts [
http_client: UrlFetcher.Http.Adapter.Poison,
unique: true,
normalize: :original,
int... | 31.84127 | 141 | 0.631605 |
934764bc1d538c7b90327be14cee3e0423701843 | 10,254 | exs | Elixir | apps/omg_watcher/test/omg_watcher/exit_processor/core/state_interaction_test.exs | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | 1 | 2020-05-01T12:30:09.000Z | 2020-05-01T12:30:09.000Z | apps/omg_watcher/test/omg_watcher/exit_processor/core/state_interaction_test.exs | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/test/omg_watcher/exit_processor/core/state_interaction_test.exs | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 45.776786 | 117 | 0.684806 |
93477ca178a5353fb126b2dc58d3126f220e0fd8 | 3,298 | ex | Elixir | generated-sources/elixir/mojang-api/lib/com/github/asyncmc/mojang/api/elixir/server/api/skin_operations.ex | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | generated-sources/elixir/mojang-api/lib/com/github/asyncmc/mojang/api/elixir/server/api/skin_operations.ex | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | generated-sources/elixir/mojang-api/lib/com/github/asyncmc/mojang/api/elixir/server/api/skin_operations.ex | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | 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 com.github.asyncmc.mojang.api.elixir.server.Api.SkinOperations do
@moduledoc """
API calls for all endpoints tagged `SkinOperations`.
"""
ali... | 33.313131 | 148 | 0.668587 |
934782f104b911b2ca7e91d88dbecf2956eea48c | 487 | ex | Elixir | lib/score_web/views/error_view.ex | JulianaHelena5/score | 153122d88586d00c11c73ac447fd14cf95599805 | [
"MIT"
] | 3 | 2021-08-09T14:17:42.000Z | 2022-03-01T17:31:03.000Z | lib/score_web/views/error_view.ex | JulianaHelena5/score | 153122d88586d00c11c73ac447fd14cf95599805 | [
"MIT"
] | 3 | 2021-08-09T12:27:01.000Z | 2021-08-10T08:54:22.000Z | lib/score_web/views/error_view.ex | JulianaHelena5/score | 153122d88586d00c11c73ac447fd14cf95599805 | [
"MIT"
] | null | null | null | defmodule ScoreWeb.ErrorView do
use ScoreWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the template name. Fo... | 28.647059 | 61 | 0.73306 |
934795f61e3ee8d66c914d59251abe5d96527403 | 2,073 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1__celebrity.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1__celebrity.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1__celebrity.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.741379 | 258 | 0.735649 |
9347a6122a62921aa884f6e093015af19e94854c | 1,305 | exs | Elixir | test/handler_test.exs | lcr0815/pcw | 17b3b86059fa5e7fac41e28b2b54e4011491c3f9 | [
"MIT"
] | null | null | null | test/handler_test.exs | lcr0815/pcw | 17b3b86059fa5e7fac41e28b2b54e4011491c3f9 | [
"MIT"
] | null | null | null | test/handler_test.exs | lcr0815/pcw | 17b3b86059fa5e7fac41e28b2b54e4011491c3f9 | [
"MIT"
] | null | null | null | defmodule HandlerTest do
use ExUnit.Case
import Servy.Handler, only: [handle: 1]
#import Servy.Handler
test "GET /wildthings" do
request = """
GET /wildthings HTTP/1.1\r
Host: example.com\r
User-Agent: ExamplesBrowser/1.0\r
Accept: */*\r
\r
"""
response = handle(request)
as... | 19.477612 | 78 | 0.575479 |
9347cd5e0428f521a873a9c4669302a7d4175956 | 6,388 | ex | Elixir | lib/bank/accounts/accounts.ex | oPauloChaves/elixir-checking-account-api | 1fb5d241b40ecbaf11bb4fcbdb5ccabafd635acd | [
"MIT"
] | 3 | 2017-10-16T14:35:46.000Z | 2017-12-13T22:35:43.000Z | lib/bank/accounts/accounts.ex | oPauloChaves/elixir-checking-account-api | 1fb5d241b40ecbaf11bb4fcbdb5ccabafd635acd | [
"MIT"
] | null | null | null | lib/bank/accounts/accounts.ex | oPauloChaves/elixir-checking-account-api | 1fb5d241b40ecbaf11bb4fcbdb5ccabafd635acd | [
"MIT"
] | null | null | null | defmodule Bank.Accounts do
@moduledoc """
The Accounts context.
"""
alias Bank.Bucket.{Bucket, Registry}
alias Bank.Accounts.Operation
@bucket_name "operations"
@debit_types ["purchase", "withdrawal", "debits"]
@credit_types ["deposit", "salary", "credits"]
def get_operations_by_account(number) do
... | 31.46798 | 149 | 0.607702 |
9347fbcb6304d1224c6cc14b89deaf90a0fe5dd9 | 4,323 | ex | Elixir | lib/appsignal/phoenix/live_view.ex | fekle/appsignal-elixir | 350d8db1b3943456aa6f987afac8831cdad4f094 | [
"MIT"
] | null | null | null | lib/appsignal/phoenix/live_view.ex | fekle/appsignal-elixir | 350d8db1b3943456aa6f987afac8831cdad4f094 | [
"MIT"
] | null | null | null | lib/appsignal/phoenix/live_view.ex | fekle/appsignal-elixir | 350d8db1b3943456aa6f987afac8831cdad4f094 | [
"MIT"
] | null | null | null | if Appsignal.live_view?() do
defmodule Appsignal.Phoenix.LiveView do
alias Appsignal.{ErrorHandler, Stacktrace, Transaction, TransactionRegistry, Utils.MapFilter}
import Appsignal.Utils
require Appsignal.Stacktrace
@transaction Application.get_env(:appsignal, :appsignal_transaction, Transaction)
... | 35.146341 | 97 | 0.644691 |
934808ae6f7e5d286e81cdf74fe57d83bb474f91 | 3,408 | ex | Elixir | apps/discovery_api/lib/discovery_api_web/controllers/data_controller.ex | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/discovery_api/lib/discovery_api_web/controllers/data_controller.ex | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/discovery_api/lib/discovery_api_web/controllers/data_controller.ex | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule DiscoveryApiWeb.DataController do
use DiscoveryApiWeb, :controller
use Properties, otp_app: :discovery_api
alias DiscoveryApi.Services.PrestoService
alias DiscoveryApiWeb.Plugs.{GetModel, Restrictor, RecordMetrics}
alias DiscoveryApiWeb.DataView
alias DiscoveryApiWeb.Utilities.QueryAccessUtils
... | 37.043478 | 134 | 0.714202 |
934843f2db79d51db656d003c5d8bc9f1c2bd311 | 2,228 | ex | Elixir | clients/script/lib/google_api/script/v1/connection.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/script/lib/google_api/script/v1/connection.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/script/lib/google_api/script/v1/connection.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"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... | 41.259259 | 77 | 0.708259 |
93486f7bfbfec7e1b366bd57164d8358459f3b37 | 22,222 | exs | Elixir | test/ex_azure_key_vault_test.exs | MaartenFaddegon/ex_azure_key_vault | 7aa8d4787543e0e9c4408c5bb4d01af75d806d1a | [
"MIT"
] | null | null | null | test/ex_azure_key_vault_test.exs | MaartenFaddegon/ex_azure_key_vault | 7aa8d4787543e0e9c4408c5bb4d01af75d806d1a | [
"MIT"
] | null | null | null | test/ex_azure_key_vault_test.exs | MaartenFaddegon/ex_azure_key_vault | 7aa8d4787543e0e9c4408c5bb4d01af75d806d1a | [
"MIT"
] | null | null | null | defmodule ExAzureKeyVault.ClientTest do
use ExUnit.Case, async: false
doctest ExAzureKeyVault.Client, except: [
connect: 0, connect: 4,
get_secret: 2, get_secret: 3,
get_secrets: 1, get_secrets: 2,
get_secrets_next: 2,
create_secret: 3
]
import Mock
@client_id "690c027a-9b60-11e8-98d0-52... | 39.330973 | 157 | 0.645441 |
9348727f601b5b775d78c833392fc94cd53ba0f0 | 1,101 | exs | Elixir | test/pair_date_calculator_test.exs | shaolang/vdatex | 50c462c7b7692b6dd4fa0d993397fe2427add37d | [
"Apache-2.0"
] | null | null | null | test/pair_date_calculator_test.exs | shaolang/vdatex | 50c462c7b7692b6dd4fa0d993397fe2427add37d | [
"Apache-2.0"
] | null | null | null | test/pair_date_calculator_test.exs | shaolang/vdatex | 50c462c7b7692b6dd4fa0d993397fe2427add37d | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Shaolang Ai
#
# 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, ... | 36.7 | 81 | 0.724796 |
9348775ab8c695dc12a2252e63d25ecee1739165 | 2,870 | ex | Elixir | lib/event_store/notifications/supervisor.ex | MichalDolata/eventstore | 2a6725fcb4c398d81a74455b6077901189b75386 | [
"MIT"
] | null | null | null | lib/event_store/notifications/supervisor.ex | MichalDolata/eventstore | 2a6725fcb4c398d81a74455b6077901189b75386 | [
"MIT"
] | null | null | null | lib/event_store/notifications/supervisor.ex | MichalDolata/eventstore | 2a6725fcb4c398d81a74455b6077901189b75386 | [
"MIT"
] | null | null | null | defmodule EventStore.Notifications.Supervisor do
@moduledoc false
# Supervises the individual `GenStage` stages used to listen to and broadcast
# all events appended to storage.
#
# Erlang's global module is used to ensure only a single instance of this
# supervisor process, and its children including the ... | 33.764706 | 93 | 0.680488 |
93487d880edfb4146ed6a1e11319385f0d992f70 | 447 | ex | Elixir | lib/hl7/2.4/segments/lrl.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/segments/lrl.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.4/segments/lrl.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_4.Segments.LRL do
@moduledoc false
require Logger
alias HL7.V2_4.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
primary_key_value_lrl: DataTypes.Pl,
segment_action_code: nil,
segment_unique_key: DataTypes.Ei,
location_relationship_id: DataTypes.Ce,
... | 24.833333 | 64 | 0.731544 |
93487e51941bac04c8e15de1c32f05e715966d8b | 1,996 | exs | Elixir | config/dev.exs | mazz/shopix | 65af0b892eaeb33a08379f75b1fd72846286832d | [
"MIT"
] | null | null | null | config/dev.exs | mazz/shopix | 65af0b892eaeb33a08379f75b1fd72846286832d | [
"MIT"
] | null | null | null | config/dev.exs | mazz/shopix | 65af0b892eaeb33a08379f75b1fd72846286832d | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :shopix, ShopixWeb.Endpoint,
http: [port: 4000... | 29.791045 | 170 | 0.700401 |
93489069ae03381d54016811142488f1e0cded0a | 1,845 | ex | Elixir | hacker_news/lib/hacker_news_web/telemetry.ex | suulcoder/ElixirStories | 6aaf8cdaf834b019d02f8c82461f0f7825540629 | [
"MIT"
] | null | null | null | hacker_news/lib/hacker_news_web/telemetry.ex | suulcoder/ElixirStories | 6aaf8cdaf834b019d02f8c82461f0f7825540629 | [
"MIT"
] | null | null | null | hacker_news/lib/hacker_news_web/telemetry.ex | suulcoder/ElixirStories | 6aaf8cdaf834b019d02f8c82461f0f7825540629 | [
"MIT"
] | null | null | null | defmodule HackerNewsWeb.Telemetry do
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# every 10_000ms. Lea... | 32.946429 | 86 | 0.676423 |
934891c9b636f65ab7b089113793b6435cbab7bb | 959 | ex | Elixir | lib/mix/tasks/phx.gen.auth/hashing_library.ex | samkenxstream/phoenix | 18433f95a90fc948e1d6d0f5606dfa339fdc6d61 | [
"MIT"
] | 1 | 2022-02-05T13:37:59.000Z | 2022-02-05T13:37:59.000Z | lib/mix/tasks/phx.gen.auth/hashing_library.ex | samkenxstream/phoenix | 18433f95a90fc948e1d6d0f5606dfa339fdc6d61 | [
"MIT"
] | null | null | null | lib/mix/tasks/phx.gen.auth/hashing_library.ex | samkenxstream/phoenix | 18433f95a90fc948e1d6d0f5606dfa339fdc6d61 | [
"MIT"
] | 1 | 2018-10-01T19:42:35.000Z | 2018-10-01T19:42:35.000Z | defmodule Mix.Tasks.Phx.Gen.Auth.HashingLibrary do
@moduledoc false
defstruct [:name, :module, :mix_dependency, :test_config]
def build("bcrypt") do
lib = %__MODULE__{
name: :bcrypt,
module: Bcrypt,
mix_dependency: ~s|{:bcrypt_elixir, "~> 2.0"}|,
test_config: """
config :bcrypt... | 19.571429 | 59 | 0.558916 |
934896827dbe043f8e5f5d98fdb0d2ed9425c950 | 34 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_qualified_multiple_aliases_parsing_test_case/UnknownBaseWholeNumber.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/matched_qualified_multiple_aliases_parsing_test_case/UnknownBaseWholeNumber.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/matched_qualified_multiple_aliases_parsing_test_case/UnknownBaseWholeNumber.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | 0zZ.{}
0zZ.{Two}
0zZ.{Two, Three}
| 8.5 | 16 | 0.588235 |
934897b4fe9d498302bf9ae2a3816fad403bf9da | 2,689 | ex | Elixir | lib/quick_fs_public_api/api/companies.ex | nrrso/ex_quickfs | 912ea7a5ebb34ceebd9460608758716952c60752 | [
"MIT"
] | null | null | null | lib/quick_fs_public_api/api/companies.ex | nrrso/ex_quickfs | 912ea7a5ebb34ceebd9460608758716952c60752 | [
"MIT"
] | null | null | null | lib/quick_fs_public_api/api/companies.ex | nrrso/ex_quickfs | 912ea7a5ebb34ceebd9460608758716952c60752 | [
"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 QuickFSPublicAPI.Api.Companies do
@moduledoc """
API calls for all endpoints tagged `Companies`.
"""
alias QuickFSPublicAPI.Connection
impo... | 37.347222 | 211 | 0.693566 |
9348b86854f03e483410eaccd5fb9045ba6e516a | 1,553 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/streaming_stage_location.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/streaming_stage_location.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/streaming_stage_location.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 31.693878 | 120 | 0.746297 |
9348d2d351cbe648f9e4a0d4d9e28d73b9569547 | 1,393 | ex | Elixir | apps/ae_backend_service/lib/backend_service_manager.ex | nikita-fuchs/ae-channel-service | ae757a65d4ccaf553faa6703324f4e9953d0640e | [
"ISC"
] | null | null | null | apps/ae_backend_service/lib/backend_service_manager.ex | nikita-fuchs/ae-channel-service | ae757a65d4ccaf553faa6703324f4e9953d0640e | [
"ISC"
] | null | null | null | apps/ae_backend_service/lib/backend_service_manager.ex | nikita-fuchs/ae-channel-service | ae757a65d4ccaf553faa6703324f4e9953d0640e | [
"ISC"
] | null | null | null | defmodule BackendServiceManager do
@moduledoc """
ChannelInterface 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.
"""
use GenServer
require Logger
defstruct pid_... | 22.836066 | 101 | 0.666188 |
9348dc92c7ea1f6385787600484d9a7b24bf885f | 2,557 | ex | Elixir | elixir/lasagna/lib/lasagna.ex | agschaid/exercism | bd9f731bf12427d440820a6c7c8d580d395a205e | [
"MIT"
] | null | null | null | elixir/lasagna/lib/lasagna.ex | agschaid/exercism | bd9f731bf12427d440820a6c7c8d580d395a205e | [
"MIT"
] | null | null | null | elixir/lasagna/lib/lasagna.ex | agschaid/exercism | bd9f731bf12427d440820a6c7c8d580d395a205e | [
"MIT"
] | null | null | null | defmodule Lasagna do
@moduledoc """
API for creating a tasty dish made of stacked layers of lasgane and filling.
"""
@doc """
Returns the total time in minutes that a lasagna is expected to remain in the oven.
## Examples
iex> Lasagna.expected_minutes_in_oven()
40
"""
@spec expected_minutes_i... | 28.411111 | 91 | 0.731717 |
9348f300a69220180fb1da3a8cda43d2eb43aa69 | 23,813 | exs | Elixir | test/lib/crawler/limetorrents_test.exs | milandzo/milandzotorismo | 51e92afbc776b8a60d8f9e79fc44d6669724dcf9 | [
"MIT"
] | null | null | null | test/lib/crawler/limetorrents_test.exs | milandzo/milandzotorismo | 51e92afbc776b8a60d8f9e79fc44d6669724dcf9 | [
"MIT"
] | null | null | null | test/lib/crawler/limetorrents_test.exs | milandzo/milandzotorismo | 51e92afbc776b8a60d8f9e79fc44d6669724dcf9 | [
"MIT"
] | 1 | 2021-09-24T12:32:05.000Z | 2021-09-24T12:32:05.000Z | defmodule Magnetissimo.Crawler.LimeTorrentsTest do
use ExUnit.Case, async: true
test "scrapes torrent information from detail page" do
torrent = Magnetissimo.Crawler.LimeTorrents.torrent_information(detail_sample)
assert torrent != nil
end
def detail_sample do
"""
<!DOCTYPE html PUBLIC "-//W3C... | 71.510511 | 3,654 | 0.631294 |
934906c72c41a4d014edf4c7ca4a1e1eab44b9ba | 4,433 | ex | Elixir | lib/guardian/claims.ex | elixir-twister/guardian | c9ad4042cf3181a353f83dacdccb7af8306c45e3 | [
"MIT"
] | null | null | null | lib/guardian/claims.ex | elixir-twister/guardian | c9ad4042cf3181a353f83dacdccb7af8306c45e3 | [
"MIT"
] | null | null | null | lib/guardian/claims.ex | elixir-twister/guardian | c9ad4042cf3181a353f83dacdccb7af8306c45e3 | [
"MIT"
] | null | null | null | defmodule Guardian.Claims do
@moduledoc false
import Guardian.Utils
@doc false
def app_claims, do: %{"iss" => Guardian.issuer} |> iat |> jti
@doc false
def app_claims(existing_claims) do
Map.merge(app_claims(), Enum.into(existing_claims, %{}))
end
@doc """
Encodes permissions into the claims se... | 27.364198 | 77 | 0.649673 |
934909f3097f7ca5cbccc04ec97f9b6607cb14d5 | 702 | ex | Elixir | debian/preinst.ex | Arquivotheca/OpenCDE | 4bb0f65dab345790bcf8d8422a05dda495990cd1 | [
"BSD-2-Clause-FreeBSD"
] | 11 | 2015-05-30T14:58:42.000Z | 2021-10-12T04:50:00.000Z | debian/preinst.ex | idunham/opencde | 376f7ba54f8b384a5a0b2104ff2b26f9c8ab3582 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2021-11-30T08:11:39.000Z | 2021-11-30T08:11:39.000Z | debian/preinst.ex | idunham/opencde | 376f7ba54f8b384a5a0b2104ff2b26f9c8ab3582 | [
"BSD-2-Clause-FreeBSD"
] | 3 | 2015-05-30T14:58:44.000Z | 2017-09-28T21:58:50.000Z | #!/bin/sh
# preinst script for opencde-0.6.2.0+cvs
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <new-preinst> `install'
# * <new-preinst> `install' <old-version>
# * <new-preinst> `upgrade' <old-version>
# * <old-preinst> `abort-upgrade' <new-version>
# ... | 19.5 | 63 | 0.626781 |
934917eb48c95ea640d7080fa5c0a797d1027468 | 226 | exs | Elixir | config/config.exs | Chervychnyk/geocoder | 8b566b42dda4d75228e2a52a62fd1b3f2208f135 | [
"MIT"
] | null | null | null | config/config.exs | Chervychnyk/geocoder | 8b566b42dda4d75228e2a52a62fd1b3f2208f135 | [
"MIT"
] | null | null | null | config/config.exs | Chervychnyk/geocoder | 8b566b42dda4d75228e2a52a62fd1b3f2208f135 | [
"MIT"
] | null | null | null | use Mix.Config
config :geocoder, :worker_pool_config,
size: 5,
max_overflow: 2
config :geocoder, :worker, provider: Geocoder.Providers.OpenStreetMaps
config :geocoder, Geocoder.Cache,
n_shards: 3,
gc_interval: 3600
| 18.833333 | 70 | 0.761062 |
93491d60b1263d42dddac69f61dd697aed533803 | 64 | ex | Elixir | web/views/session_view.ex | av-ast/scrawler | 4fe7e59dd35aad977fa0d73b400461bcccfe727e | [
"MIT"
] | null | null | null | web/views/session_view.ex | av-ast/scrawler | 4fe7e59dd35aad977fa0d73b400461bcccfe727e | [
"MIT"
] | null | null | null | web/views/session_view.ex | av-ast/scrawler | 4fe7e59dd35aad977fa0d73b400461bcccfe727e | [
"MIT"
] | null | null | null | defmodule Scrawler.SessionView do
use Scrawler.Web, :view
end
| 16 | 33 | 0.796875 |
93492b4518c2474a82fe0323d28c2adcb6530fc7 | 2,260 | exs | Elixir | apps/rig/mix.exs | arana3/reactive-interaction-gateway | 793648bcc5b8b05fc53df1f5f97818fb40ca84be | [
"Apache-2.0"
] | null | null | null | apps/rig/mix.exs | arana3/reactive-interaction-gateway | 793648bcc5b8b05fc53df1f5f97818fb40ca84be | [
"Apache-2.0"
] | 132 | 2018-11-26T14:00:54.000Z | 2022-03-11T04:17:54.000Z | apps/rig/mix.exs | arana3/reactive-interaction-gateway | 793648bcc5b8b05fc53df1f5f97818fb40ca84be | [
"Apache-2.0"
] | null | null | null | defmodule Rig.MixProject do
@moduledoc false
use Mix.Project
def project do
%{rig: rig_version, elixir: elixir_version} = versions()
[
app: :rig,
version: rig_version,
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfil... | 27.228916 | 74 | 0.561504 |
934931e216d353486bc95d588a548bf17e52164b | 44,171 | exs | Elixir | test/http_client_test.exs | nested-tech/closex | 1711f54478c6c90021de0edc5e939f3eb00f3c1d | [
"MIT"
] | 8 | 2017-10-10T16:50:07.000Z | 2020-03-27T19:32:22.000Z | test/http_client_test.exs | nested-tech/closex | 1711f54478c6c90021de0edc5e939f3eb00f3c1d | [
"MIT"
] | 110 | 2017-10-13T12:16:01.000Z | 2021-08-03T05:15:29.000Z | test/http_client_test.exs | nested-tech/closex | 1711f54478c6c90021de0edc5e939f3eb00f3c1d | [
"MIT"
] | 2 | 2018-02-20T03:53:24.000Z | 2019-03-07T18:34:08.000Z | defmodule Closex.HTTPClientTest do
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
setup_all do
HTTPoison.start()
end
setup do
ExVCR.Config.cassette_library_dir("test/fixtures/vcr_cassettes")
end
import Closex.HTTPClient
@valid_lead_id "lead_ibiNeZe7yE0ZoJZQUKm0Ey... | 36.932274 | 240 | 0.524688 |
9349459b7cbbf4672b2947871d4d92657f45f73c | 209 | ex | Elixir | lib/matchalert/web/views/player_view.ex | troelsim/matchalert | 9379796b3046e0ce28674432568f9cb5b01aab6f | [
"Apache-2.0"
] | null | null | null | lib/matchalert/web/views/player_view.ex | troelsim/matchalert | 9379796b3046e0ce28674432568f9cb5b01aab6f | [
"Apache-2.0"
] | null | null | null | lib/matchalert/web/views/player_view.ex | troelsim/matchalert | 9379796b3046e0ce28674432568f9cb5b01aab6f | [
"Apache-2.0"
] | null | null | null | defmodule Matchalert.Web.PlayerView do
use Matchalert.Web, :view
def render("index.json", %{players: players}) do
%{
players: players |> Enum.map(&(%{id: &1.id, name: &1.name}))
}
end
end
| 20.9 | 66 | 0.617225 |
9349462ca05a03d1c5984b41f4189635e3562064 | 637 | exs | Elixir | elixir/hello-world/hello_world.exs | agorf/exercism | 10bab8c9fa114eaebb1c7de791014bdf23c447d3 | [
"MIT"
] | 1 | 2016-02-25T16:43:39.000Z | 2016-02-25T16:43:39.000Z | elixir/hello-world/hello_world.exs | agorf/exercism | 10bab8c9fa114eaebb1c7de791014bdf23c447d3 | [
"MIT"
] | null | null | null | elixir/hello-world/hello_world.exs | agorf/exercism | 10bab8c9fa114eaebb1c7de791014bdf23c447d3 | [
"MIT"
] | null | null | null | defmodule HelloWorld do
@moduledoc """
Elixir counts the number of arguments as part of the function name.
For instance;
def hello() do
end
would be a completely different function from
def hello(name) do
end
Can you find a way to make all the tests pass with just one
function?
... | 21.233333 | 71 | 0.66405 |
93494c778a666ae08c1cca7487ee78bc38d63c5f | 4,898 | ex | Elixir | lib/bmp280/comm/bme680_comm.ex | dkuku/bmp280 | e7cb8fcef0043a354a9c2dde0946ab1d033c0b59 | [
"Apache-2.0"
] | 11 | 2020-09-17T08:03:11.000Z | 2021-04-28T16:20:13.000Z | lib/bmp280/comm/bme680_comm.ex | dkuku/bmp280 | e7cb8fcef0043a354a9c2dde0946ab1d033c0b59 | [
"Apache-2.0"
] | 13 | 2021-01-31T23:08:26.000Z | 2021-03-27T23:08:42.000Z | lib/bmp280/comm/bme680_comm.ex | dkuku/bmp280 | e7cb8fcef0043a354a9c2dde0946ab1d033c0b59 | [
"Apache-2.0"
] | 3 | 2021-09-05T08:48:27.000Z | 2021-10-21T17:14:43.000Z | defmodule BMP280.BME680Comm do
@moduledoc false
alias BMP280.Transport
@coeff1_register 0x8A
@coeff2_register 0xE1
@coeff3_register 0x00
@config_register 0x75
@ctrl_gas1_register 0x71
@ctrl_hum_register 0x72
@ctrl_meas_register 0x74
@gas_r_msb_register 0x2A
@gas_wait0_register 0x64
@meas_statu... | 33.547945 | 98 | 0.673132 |
934963d64fa940654eeaa5b6cb67ae7201c38055 | 772 | ex | Elixir | lib/fizz_buzz.ex | danielsalles/fizz_buzz | d17a18288864500e5e072a81ed5a0648a9691b0c | [
"MIT"
] | null | null | null | lib/fizz_buzz.ex | danielsalles/fizz_buzz | d17a18288864500e5e072a81ed5a0648a9691b0c | [
"MIT"
] | null | null | null | lib/fizz_buzz.ex | danielsalles/fizz_buzz | d17a18288864500e5e072a81ed5a0648a9691b0c | [
"MIT"
] | null | null | null | defmodule FizzBuzz do
def build(file_name) do
file_name
|> File.read()
|> handle_file_read()
end
defp handle_file_read({:ok, result}) do
result =
result
|> String.split(",")
|> Enum.map(&convert_evaluate_numbers/1)
{:ok, result}
end
defp handle_file_read({:error, reaso... | 25.733333 | 95 | 0.660622 |
9349859c18f8e5ce5ab0370c075dfbce63a23b7c | 527 | exs | Elixir | test/web_push_encryption/vapid_test.exs | mruoss/elixir-web-push-encryption | f7040e13e2c9d6bcb84615173a07eed4898bc8de | [
"MIT"
] | null | null | null | test/web_push_encryption/vapid_test.exs | mruoss/elixir-web-push-encryption | f7040e13e2c9d6bcb84615173a07eed4898bc8de | [
"MIT"
] | 1 | 2021-08-11T11:56:43.000Z | 2021-08-11T12:02:38.000Z | test/web_push_encryption/vapid_test.exs | mruoss/elixir-web-push-encryption | f7040e13e2c9d6bcb84615173a07eed4898bc8de | [
"MIT"
] | null | null | null | defmodule WebPushEncryption.VapidTest do
use ExUnit.Case
alias WebPushEncryption.Vapid
test "get_headers" do
assert %{"Authorization" => "WebPush " <> jwt, "Crypto-Key" => "p256ecdsa=" <> public_key} =
Vapid.get_headers("http://localhost/", "aesgcm")
jwk =
{:ECPrivateKey, 1, <<>>, {:... | 29.277778 | 96 | 0.620493 |
93499c213ad123c8cbefac1fdcd014c32f52e2a6 | 1,397 | ex | Elixir | lib/dgraph_ex/core/alter.ex | sunny-g/dgraph_ex | fab9f1fd684538758ed211537c3b0869233e7ce4 | [
"MIT"
] | 1 | 2019-05-01T15:18:41.000Z | 2019-05-01T15:18:41.000Z | lib/dgraph_ex/core/alter.ex | sunny-g/dgraph_ex | fab9f1fd684538758ed211537c3b0869233e7ce4 | [
"MIT"
] | null | null | null | lib/dgraph_ex/core/alter.ex | sunny-g/dgraph_ex | fab9f1fd684538758ed211537c3b0869233e7ce4 | [
"MIT"
] | 1 | 2019-05-01T15:18:48.000Z | 2019-05-01T15:18:48.000Z | defmodule DgraphEx.Core.Alter do
@moduledoc false
alias DgraphEx.Core.{Alter, Field}
defstruct fields: []
defmacro __using__(_) do
quote do
def alter(), do: %Alter{}
end
end
@doc """
Returns a DgraphEx.Core.Alter struct with the given fields (defaults to []).
## Examples:
iex> ... | 26.358491 | 106 | 0.639943 |
9349b37fec6be0a197f8f8c2559cc2437ef66ac2 | 1,512 | exs | Elixir | apps/ewallet_db/priv/repo/seeds_sample/00_key.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet_db/priv/repo/seeds_sample/00_key.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet_db/priv/repo/seeds_sample/00_key.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-2019 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 ... | 29.076923 | 76 | 0.652778 |
9349c5370271ee4d05f901e4020b66723024cff5 | 3,309 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_cloud_storage_options.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_cloud_storage_options.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_cloud_storage_options.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 50.907692 | 344 | 0.74796 |
9349e5d87244372e77eabf3208adb41b302163a1 | 1,680 | ex | Elixir | clients/elixir/generated/lib/swaggy_jenkins/model/hudson.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 23 | 2017-08-01T12:25:26.000Z | 2022-01-25T03:44:11.000Z | clients/elixir/generated/lib/swaggy_jenkins/model/hudson.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 35 | 2017-06-14T03:28:15.000Z | 2022-02-14T10:25:54.000Z | clients/elixir/generated/lib/swaggy_jenkins/model/hudson.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 11 | 2017-08-31T19:00:20.000Z | 2021-12-19T12:04:12.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule SwaggyJenkins.Model.Hudson do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"_class",
:"assignedLabels",
:"mode",
... | 28 | 99 | 0.64881 |
9349e9643e2173f66ed67eca535477904babbbb1 | 507 | ex | Elixir | lib/exzeitable/html/filter.ex | e-fu/exzeitable | 195da90e7fbab867c4964acab717e1ccb68ab226 | [
"MIT"
] | null | null | null | lib/exzeitable/html/filter.ex | e-fu/exzeitable | 195da90e7fbab867c4964acab717e1ccb68ab226 | [
"MIT"
] | null | null | null | lib/exzeitable/html/filter.ex | e-fu/exzeitable | 195da90e7fbab867c4964acab717e1ccb68ab226 | [
"MIT"
] | null | null | null | defmodule Exzeitable.HTML.Filter do
@moduledoc "Filtering data"
@doc "All fields where a key value is true"
@spec fields_where(keyword, atom) :: keyword
def fields_where(fields, attribute) do
Enum.filter(fields, fn {_k, field} -> Map.get(field, attribute) end)
end
@doc "All fields where a key value is... | 31.6875 | 72 | 0.715976 |
9349ef9f988a0dcf685dd10da9b78efb6e508009 | 7,332 | ex | Elixir | apps/snitch_core/lib/core/data/schema/product.ex | VeryBigThings/avia | 7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9 | [
"MIT"
] | 1 | 2021-04-08T22:29:19.000Z | 2021-04-08T22:29:19.000Z | apps/snitch_core/lib/core/data/schema/product.ex | VeryBigThings/avia | 7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9 | [
"MIT"
] | null | null | null | apps/snitch_core/lib/core/data/schema/product.ex | VeryBigThings/avia | 7ce5d5b244ae0dfddc30c09c17efe27f1718a4c9 | [
"MIT"
] | null | null | null | defmodule Snitch.Data.Schema.Product do
@moduledoc """
Models a Product.
"""
use Snitch.Data.Schema
use Rummage.Ecto
import Ecto.Query
alias Snitch.Data.Model.Product, as: ProductModel
alias Snitch.Data.Schema.Product.NameSlug
alias Snitch.Domain.Taxonomy
alias Snitch.Data.Schema.{
Variation... | 28.752941 | 92 | 0.695717 |
934a09638e348ee91651b68824849c9634db388b | 6,441 | ex | Elixir | lib/config_cat/rollout.ex | kianmeng/elixir-sdk | 89fb73f6249f82ac8415246519c17ad4ade54760 | [
"MIT"
] | 14 | 2020-10-15T09:15:12.000Z | 2022-03-18T19:42:28.000Z | lib/config_cat/rollout.ex | kianmeng/elixir-sdk | 89fb73f6249f82ac8415246519c17ad4ade54760 | [
"MIT"
] | 54 | 2020-10-14T05:08:21.000Z | 2021-05-28T13:00:22.000Z | lib/config_cat/rollout.ex | kianmeng/elixir-sdk | 89fb73f6249f82ac8415246519c17ad4ade54760 | [
"MIT"
] | 5 | 2020-10-13T10:24:17.000Z | 2021-11-30T17:47:11.000Z | defmodule ConfigCat.Rollout do
@moduledoc false
alias ConfigCat.{Config, Constants, User}
alias ConfigCat.Rollout.Comparator
require Logger
require ConfigCat.Constants
@spec evaluate(Config.key(), User.t() | nil, Config.value(), Config.variation_id(), Config.t()) ::
{Config.value(), Config.vari... | 32.862245 | 201 | 0.660456 |
934a48722b1e5fc92be350d41af926e8f62605d1 | 445 | ex | Elixir | lib/protocols/dasher_protocol.ex | Ventup-IT/digger | 60e4cf70ac5f4ab712d45448f8c7971a1db929b2 | [
"MIT"
] | null | null | null | lib/protocols/dasher_protocol.ex | Ventup-IT/digger | 60e4cf70ac5f4ab712d45448f8c7971a1db929b2 | [
"MIT"
] | null | null | null | lib/protocols/dasher_protocol.ex | Ventup-IT/digger | 60e4cf70ac5f4ab712d45448f8c7971a1db929b2 | [
"MIT"
] | 1 | 2021-11-09T14:20:08.000Z | 2021-11-09T14:20:08.000Z | defprotocol Digger.Dasher do
@moduledoc """
Documentation for Digger.Dasher Protocol
"""
@fallback_to_any true
alias Digger.Types
@doc """
'Dasherize' a valid Types.data_type according to the protocol implementation
"""
@spec dasherize(Types.data_type(), keyword()) :: Types.valid_return_type()
d... | 22.25 | 79 | 0.685393 |
934a5eb4428e373fa63fdcd71c11883e15e53421 | 1,348 | exs | Elixir | 05-KataPotter/elixir/javimolla/test/potter_test.exs | ccsw-csd/codingDojo | e0f0d10df4dfd1eb6aa210ec09f06fd6476257a8 | [
"MIT"
] | 6 | 2017-10-06T12:01:30.000Z | 2021-03-27T11:36:06.000Z | 05-KataPotter/elixir/javimolla/test/potter_test.exs | ccsw-csd/codingDojo | e0f0d10df4dfd1eb6aa210ec09f06fd6476257a8 | [
"MIT"
] | 10 | 2017-11-13T10:05:25.000Z | 2018-04-11T07:24:51.000Z | 05-KataPotter/elixir/javimolla/test/potter_test.exs | ccsw-csd/codingDojo | e0f0d10df4dfd1eb6aa210ec09f06fd6476257a8 | [
"MIT"
] | 7 | 2017-10-26T17:21:37.000Z | 2019-10-24T07:23:43.000Z | defmodule PotterTest do
use ExUnit.Case
doctest Potter
test "testBasics" do
assert 0 == Potter.price([])
assert 8 == Potter.price([0])
assert 8 == Potter.price([1])
assert 8 == Potter.price([2])
assert 8 == Potter.price([3])
assert 8 == Potter.price([4])
assert 8 * 2 == Potter.price([... | 32.095238 | 77 | 0.477745 |
934a88be4dec20369ad01deac4f9b8a6e8116435 | 1,243 | exs | Elixir | config/config.exs | TiagoBani/rocketpay | 52b10d90160926eb506135ae0b251e2ed859d958 | [
"MIT"
] | null | null | null | config/config.exs | TiagoBani/rocketpay | 52b10d90160926eb506135ae0b251e2ed859d958 | [
"MIT"
] | null | null | null | config/config.exs | TiagoBani/rocketpay | 52b10d90160926eb506135ae0b251e2ed859d958 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :rocketpay,
ecto_repos: [Rocketpay.Repo... | 31.871795 | 86 | 0.768302 |
934a8c18cf1eb482ceded6b5dc3a33535600e5d3 | 6,051 | exs | Elixir | .credo.exs | alejandrodnm/ranking_poller | f7d231e928f1c467bfbffd8bab2b6947bdb0b87a | [
"MIT"
] | null | null | null | .credo.exs | alejandrodnm/ranking_poller | f7d231e928f1c467bfbffd8bab2b6947bdb0b87a | [
"MIT"
] | null | null | null | .credo.exs | alejandrodnm/ranking_poller | f7d231e928f1c467bfbffd8bab2b6947bdb0b87a | [
"MIT"
] | 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.583851 | 91 | 0.633284 |
934a90d54aabd4ac0618a8a93ea74637bad61f7b | 568 | exs | Elixir | aoc-2020/day14/mix.exs | danurna/elixir-playground | 6acb40e513d8ab324368b3ec5151b0a4fd88f849 | [
"MIT"
] | null | null | null | aoc-2020/day14/mix.exs | danurna/elixir-playground | 6acb40e513d8ab324368b3ec5151b0a4fd88f849 | [
"MIT"
] | null | null | null | aoc-2020/day14/mix.exs | danurna/elixir-playground | 6acb40e513d8ab324368b3ec5151b0a4fd88f849 | [
"MIT"
] | null | null | null | defmodule Day14.MixProject do
use Mix.Project
def project do
[
app: :day14,
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... | 19.586207 | 87 | 0.573944 |
934aabb450b0b9de5a150747c997ad574200f7de | 844 | ex | Elixir | Microsoft.Azure.Management.Authorization/lib/microsoft/azure/management/authorization/model/management_lock_properties.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.Authorization/lib/microsoft/azure/management/authorization/model/management_lock_properties.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Authorization/lib/microsoft/azure/management/authorization/model/management_lock_properties.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.Authorization.Model.ManagementLockProperties do
@moduledoc """
The lock properties.
"""
@derive [Poison.Encode... | 26.375 | 113 | 0.721564 |
934aaf37273377573169e261515dd723412a855d | 247 | ex | Elixir | lib/naboo.ex | DaveMuirhead/naboo-server | daf15d9b92ad6a3f85eb42bdbe7125c489a079c1 | [
"Apache-2.0"
] | 16 | 2021-12-14T12:25:59.000Z | 2021-12-16T21:56:27.000Z | lib/naboo.ex | DaveMuirhead/naboo-server | daf15d9b92ad6a3f85eb42bdbe7125c489a079c1 | [
"Apache-2.0"
] | 19 | 2021-12-06T08:35:30.000Z | 2022-03-23T18:20:46.000Z | lib/naboo.ex | ARKultur/naboo | ab26c2e82cdc485e23d428fbb1d4798f1fb1388b | [
"MIT"
] | null | null | null | defmodule Naboo do
@moduledoc """
Naboo 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.7 | 66 | 0.748988 |
934ab451be378473433859913106ef2686f33ce0 | 2,477 | exs | Elixir | mix.exs | oliver-kriska/cloak | db9cbdb23e3a39b7e36e0868c4da876ebbb0ccd9 | [
"MIT"
] | null | null | null | mix.exs | oliver-kriska/cloak | db9cbdb23e3a39b7e36e0868c4da876ebbb0ccd9 | [
"MIT"
] | null | null | null | mix.exs | oliver-kriska/cloak | db9cbdb23e3a39b7e36e0868c4da876ebbb0ccd9 | [
"MIT"
] | null | null | null | defmodule Cloak.Mixfile do
use Mix.Project
def project do
[
app: :cloak,
version: "1.1.1",
elixir: "~> 1.11",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
... | 27.831461 | 78 | 0.534114 |
934ad933751162300e5efa823175cde417ecf902 | 409 | exs | Elixir | apps/roll35_bot/test/roll35_bot/commands/ping_test.exs | Ferroin/Roll35 | f9cda65b33105638884acd33d950d54e38c5d9fd | [
"MITNFA"
] | 1 | 2021-08-07T09:43:28.000Z | 2021-08-07T09:43:28.000Z | apps/roll35_bot/test/roll35_bot/commands/ping_test.exs | Ferroin/Roll35 | f9cda65b33105638884acd33d950d54e38c5d9fd | [
"MITNFA"
] | 24 | 2020-11-24T19:18:46.000Z | 2022-02-28T08:03:36.000Z | apps/roll35_bot/test/roll35_bot/commands/ping_test.exs | Ferroin/Roll35 | f9cda65b33105638884acd33d950d54e38c5d9fd | [
"MITNFA"
] | null | null | null | defmodule Roll35Bot.Commands.PingTest do
use Roll35Bot.TestHarness, async: true
alias Roll35Bot.Commands.Ping
test "Short description is a valid string." do
assert String.valid?(Ping.short_desc())
end
test "Extra help text is a valid string." do
assert String.valid?(Ping.extra_help())
end
test... | 22.722222 | 48 | 0.740831 |
934adaef69778fa507d17254808c8f24ecbad254 | 1,880 | ex | Elixir | clients/books/lib/google_api/books/v1/model/books_annotations_range.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/books/lib/google_api/books/v1/model/books_annotations_range.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/books_annotations_range.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 33.571429 | 99 | 0.705851 |
934b06f08b15259d2449c4745b8e0609cddae024 | 153 | exs | Elixir | examples/change_stream/test/change_stream_test.exs | aenglisc/elixir-mongodb-driver | a8a72fbb8690f44ac349e0449616ac2cfbf50640 | [
"Apache-2.0"
] | 140 | 2019-04-10T09:23:53.000Z | 2022-03-27T12:37:02.000Z | examples/change_stream/test/change_stream_test.exs | aenglisc/elixir-mongodb-driver | a8a72fbb8690f44ac349e0449616ac2cfbf50640 | [
"Apache-2.0"
] | 99 | 2019-04-11T07:46:45.000Z | 2022-03-31T07:23:28.000Z | examples/change_stream/test/change_stream_test.exs | aenglisc/elixir-mongodb-driver | a8a72fbb8690f44ac349e0449616ac2cfbf50640 | [
"Apache-2.0"
] | 45 | 2019-07-15T07:06:21.000Z | 2021-11-24T09:23:21.000Z | defmodule ChangeStreamTest do
use ExUnit.Case
doctest ChangeStream
test "greets the world" do
assert ChangeStream.hello() == :world
end
end
| 17 | 41 | 0.738562 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.