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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c8b14531ef775aaeabe8da41c94f168d6c6425b5 | 4,264 | ex | Elixir | lib/porcelain/drivers/basic_driver.ex | walkr/porcelain | 4a497495beb8cab7af0d47ae50f720d31a13f039 | [
"MIT"
] | null | null | null | lib/porcelain/drivers/basic_driver.ex | walkr/porcelain | 4a497495beb8cab7af0d47ae50f720d31a13f039 | [
"MIT"
] | null | null | null | lib/porcelain/drivers/basic_driver.ex | walkr/porcelain | 4a497495beb8cab7af0d47ae50f720d31a13f039 | [
"MIT"
] | null | null | null | defmodule Porcelain.Driver.Basic do
@moduledoc """
Porcelain driver that offers basic functionality for interacting with
external programs.
Users are not supposed to call functions in this module directly. Use
functions in `Porcelain` instead.
This driver has two major limitations compared to `Porcelain.D... | 24.227273 | 79 | 0.642355 |
c8b171e73907fa8405f1d79ea09d34c6b680d5af | 5,800 | ex | Elixir | lib/ssh_subsystem_fwup.ex | axelson/ssh_subsystem_fwup | f04e45cfb81e74c0ea2c0581c1ea3fcf378f5543 | [
"Apache-2.0"
] | null | null | null | lib/ssh_subsystem_fwup.ex | axelson/ssh_subsystem_fwup | f04e45cfb81e74c0ea2c0581c1ea3fcf378f5543 | [
"Apache-2.0"
] | null | null | null | lib/ssh_subsystem_fwup.ex | axelson/ssh_subsystem_fwup | f04e45cfb81e74c0ea2c0581c1ea3fcf378f5543 | [
"Apache-2.0"
] | null | null | null | defmodule SSHSubsystemFwup do
@moduledoc """
SSH subsystem for upgrading Nerves devices
This module provides an SSH subsystem for Erlang's `ssh` application. This
makes it possible to send firmware updates to Nerves devices using plain old
`ssh` like this:
```shell
cat $firmware | ssh -s $ip_address fwu... | 28.712871 | 94 | 0.652759 |
c8b174cb12abde447218ce0e5d4c4df46644d0f0 | 25,434 | ex | Elixir | lib/parse/datetime/parser.ex | Adzz/timex | a9c97e2dd9cb5bed286d5a1d688f3eea8e73e6ea | [
"MIT"
] | null | null | null | lib/parse/datetime/parser.ex | Adzz/timex | a9c97e2dd9cb5bed286d5a1d688f3eea8e73e6ea | [
"MIT"
] | null | null | null | lib/parse/datetime/parser.ex | Adzz/timex | a9c97e2dd9cb5bed286d5a1d688f3eea8e73e6ea | [
"MIT"
] | null | null | null | defmodule Timex.Parse.DateTime.Parser do
@moduledoc """
This is the base plugin behavior for all Timex date/time string parsers.
"""
import Combine.Parsers.Base, only: [eof: 0, map: 2, pipe: 2]
alias Timex.{Timezone, TimezoneInfo, AmbiguousDateTime, AmbiguousTimezoneInfo}
alias Timex.Parse.ParseError
ali... | 30.791768 | 134 | 0.478257 |
c8b194b206bc51ad52a3a267d2961e56b0ecd7b6 | 3,741 | ex | Elixir | lib/ucx_ucc/config.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | lib/ucx_ucc/config.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | lib/ucx_ucc/config.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | defmodule UcxUcc.Config do
@moduledoc """
Handle general configuration.
"""
@doc """
Handle config items that may return :system tuple.
"""
@spec get_env(atom, atom, any) :: any
def get_env(app, item, default \\ nil) do
case Application.get_env app, item, default do
{:system, env} -> System... | 27.306569 | 109 | 0.629244 |
c8b1ba78e2918559cd771e65a8852fd3bcd15c70 | 696 | ex | Elixir | web/gettext.ex | soarpatriot/flour | 52a57c553da84bd3abad5834014e06370f40a20b | [
"MIT"
] | 1 | 2016-08-05T07:03:43.000Z | 2016-08-05T07:03:43.000Z | web/gettext.ex | soarpatriot/flour | 52a57c553da84bd3abad5834014e06370f40a20b | [
"MIT"
] | null | null | null | web/gettext.ex | soarpatriot/flour | 52a57c553da84bd3abad5834014e06370f40a20b | [
"MIT"
] | null | null | null | defmodule Flour.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import Flour.Gettext
# Simple translation
gettext "Here is the string ... | 27.84 | 72 | 0.675287 |
c8b1c36e4806dc7be98f3c21e0a56266269ad5c6 | 179 | exs | Elixir | apps/bookmarker/priv/repo/migrations/20161013012651_create_tag.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/bookmarker/priv/repo/migrations/20161013012651_create_tag.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | apps/bookmarker/priv/repo/migrations/20161013012651_create_tag.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | null | null | null | defmodule Bookmarker.Repo.Migrations.CreateTag do
use Ecto.Migration
def change do
create table(:tags) do
add :name, :string
timestamps()
end
end
end
| 13.769231 | 49 | 0.670391 |
c8b1efdb5d652625c65e8a1b3de5421232acf6bf | 1,184 | exs | Elixir | test/integration/prometheus_endpoint_test.exs | 4nirmall/MongoosePush | 6c8c53234f8623a1abeb115c8fbdab691a95ed2f | [
"Apache-2.0"
] | 107 | 2017-02-10T00:26:05.000Z | 2022-02-23T00:50:07.000Z | test/integration/prometheus_endpoint_test.exs | 4nirmall/MongoosePush | 6c8c53234f8623a1abeb115c8fbdab691a95ed2f | [
"Apache-2.0"
] | 109 | 2017-02-09T14:40:20.000Z | 2021-04-30T22:01:20.000Z | test/integration/prometheus_endpoint_test.exs | 4nirmall/MongoosePush | 6c8c53234f8623a1abeb115c8fbdab691a95ed2f | [
"Apache-2.0"
] | 25 | 2017-08-21T20:55:33.000Z | 2022-03-06T10:01:13.000Z | defmodule MongoosePush.API.PrometheusEndpointTest do
use ExUnit.Case, async: false
use AssertEventually, timeout: 5000, interval: 10
alias MongoosePush.Support.API, as: Tools
@url "/v1/notification/f534534543"
setup do
Tools.reset(:fcm)
:ok
end
test "Metrics can be correctly received from Prom... | 28.190476 | 154 | 0.673986 |
c8b228b6d4392cf431cb0f5ebe4cc9712d2076bf | 1,991 | ex | Elixir | apps/theta_web/lib/theta_web/endpoint.ex | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | null | null | null | apps/theta_web/lib/theta_web/endpoint.ex | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | 11 | 2020-07-21T09:34:54.000Z | 2021-08-29T07:38:02.000Z | apps/theta_web/lib/theta_web/endpoint.ex | LangPham/thetaproject | c6479d1b761ff58fe6ae5f82e2d9de87a8658883 | [
"MIT"
] | null | null | null | defmodule ThetaWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :theta_web
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_theta_web... | 26.546667 | 69 | 0.676544 |
c8b299eb5257a63d02e17eeafaa27eb085884466 | 2,286 | ex | Elixir | lib/tinkoff_invest/historical_data.ex | reetou/tinkoff-invest-elixir | 5eeb27a89c65be6cb2b34d965332bbcc17f3f244 | [
"MIT"
] | 1 | 2021-05-26T11:38:42.000Z | 2021-05-26T11:38:42.000Z | lib/tinkoff_invest/historical_data.ex | reetou/tinkoff-invest-elixir | 5eeb27a89c65be6cb2b34d965332bbcc17f3f244 | [
"MIT"
] | null | null | null | lib/tinkoff_invest/historical_data.ex | reetou/tinkoff-invest-elixir | 5eeb27a89c65be6cb2b34d965332bbcc17f3f244 | [
"MIT"
] | null | null | null | defmodule TinkoffInvest.HistoricalData do
@moduledoc """
Module for getting historical data for a security.
Useful when testing your algo or just need some insight on past prices
"""
alias TinkoffInvest.Market
alias TinkoffInvest.Model.Candle
require Logger
@intervals [
"1min",
"2min",
"3m... | 22.194175 | 87 | 0.597988 |
c8b2b1cb3b4facddf7de76a116b4448f850d2135 | 790 | ex | Elixir | lib/groupher_server/cms/constant.ex | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 2 | 2018-03-26T08:56:21.000Z | 2018-07-02T22:34:51.000Z | lib/groupher_server/cms/constant.ex | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2018-03-21T03:40:50.000Z | 2018-07-10T06:33:10.000Z | lib/groupher_server/cms/constant.ex | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | null | null | null | defmodule GroupherServer.CMS.Constant do
@moduledoc """
constant used for CMS
NOTE: DO NOT modify, unless you know what you are doing
"""
@artiment_legal 0
@artiment_illegal 1
@artiment_audit_failed 2
@community_normal 0
@community_applying 1
@apply_public "PUBLIC"
@apply_city "CITY"
@apply_w... | 25.483871 | 57 | 0.736709 |
c8b2c9412d052808a106f255f409f51d377aaecf | 2,506 | ex | Elixir | clients/double_click_search/lib/google_api/double_click_search/v2/model/availability.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/double_click_search/lib/google_api/double_click_search/v2/model/availability.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/double_click_search/lib/google_api/double_click_search/v2/model/availability.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 40.419355 | 162 | 0.714685 |
c8b2d6f62aa253893c263e0dd392f660c565400b | 2,155 | exs | Elixir | myApp/config/prod.exs | CaptainAwesomeDi/unnamedproject | 1b2bbdbc9774a073e70eb8fcd255339d7a36df70 | [
"MIT"
] | null | null | null | myApp/config/prod.exs | CaptainAwesomeDi/unnamedproject | 1b2bbdbc9774a073e70eb8fcd255339d7a36df70 | [
"MIT"
] | null | null | null | myApp/config/prod.exs | CaptainAwesomeDi/unnamedproject | 1b2bbdbc9774a073e70eb8fcd255339d7a36df70 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# MyAppWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
# Don'... | 33.153846 | 67 | 0.719258 |
c8b3007978aacd4c0847014b6d21a894d3b591a2 | 1,483 | ex | Elixir | lib/scenic/primitive/style/stroke.ex | tiger808/scenic | 77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f | [
"Apache-2.0"
] | 1,716 | 2018-09-07T21:55:43.000Z | 2022-03-31T16:16:30.000Z | lib/scenic/primitive/style/stroke.ex | tiger808/scenic | 77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f | [
"Apache-2.0"
] | 220 | 2018-09-08T01:28:00.000Z | 2022-03-22T03:55:17.000Z | lib/scenic/primitive/style/stroke.ex | tiger808/scenic | 77abc6d891b7a1a9262cdc47d7c5fac3c8609d1f | [
"Apache-2.0"
] | 137 | 2018-09-07T21:55:56.000Z | 2022-03-26T04:07:27.000Z | #
# Created by Boyd Multerer on 2017-05-06.
# Copyright © 2017 Kry10 Industries. All rights reserved.
#
defmodule Scenic.Primitive.Style.Stroke do
@moduledoc """
Draw an outline around a primitive with the given paint.
Example:
graph
|> triangle( {{0,40},{40,40},{40,0}}
miter_limit: 2,
... | 23.171875 | 80 | 0.500337 |
c8b31e9cab37054080043b7331bb3dee79aa83c4 | 8,624 | ex | Elixir | lib/elixir/lib/kernel/lexical_tracker.ex | wstrinz/elixir | 1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95 | [
"Apache-2.0"
] | 1 | 2021-04-28T21:35:01.000Z | 2021-04-28T21:35:01.000Z | lib/elixir/lib/kernel/lexical_tracker.ex | wstrinz/elixir | 1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/lexical_tracker.ex | wstrinz/elixir | 1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95 | [
"Apache-2.0"
] | 1 | 2018-04-18T11:25:33.000Z | 2018-04-18T11:25:33.000Z | # This is an Elixir module responsible for tracking references
# to modules, remote dispatches, and the usage of
# aliases/imports/requires in the Elixir scope.
#
# Note that since this is required for bootstrap, we can't use
# any of the `GenServer.Behaviour` conveniences.
defmodule Kernel.LexicalTracker do
@moduled... | 27.641026 | 98 | 0.6657 |
c8b329dc191bd263dd9f4b36bd6e3f5d30a4b251 | 1,133 | exs | Elixir | config/config.exs | tfwright/mr_badger | e9b76341fa8d52f7bd098526fd2b95b0e488fb8e | [
"MIT"
] | 2 | 2020-05-25T08:46:02.000Z | 2021-06-22T19:05:27.000Z | config/config.exs | tfwright/mr_badger | e9b76341fa8d52f7bd098526fd2b95b0e488fb8e | [
"MIT"
] | null | null | null | config/config.exs | tfwright/mr_badger | e9b76341fa8d52f7bd098526fd2b95b0e488fb8e | [
"MIT"
] | 1 | 2020-05-25T07:51:01.000Z | 2020-05-25T07:51:01.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.548387 | 73 | 0.751986 |
c8b33f92db84ecf8a637a408a998382e42899053 | 834 | exs | Elixir | test/eigr_functions_controller/controllers/v1alpha1/function_test.exs | eigr/eigr-functions-controller | e14a3b68c9c5e9daf46dd3f1c9cc4583bea955fb | [
"Apache-2.0"
] | null | null | null | test/eigr_functions_controller/controllers/v1alpha1/function_test.exs | eigr/eigr-functions-controller | e14a3b68c9c5e9daf46dd3f1c9cc4583bea955fb | [
"Apache-2.0"
] | 3 | 2022-01-25T23:34:42.000Z | 2022-02-10T13:45:23.000Z | test/eigr_functions_controller/controllers/v1alpha1/function_test.exs | eigr/eigr-functions-controller | e14a3b68c9c5e9daf46dd3f1c9cc4583bea955fb | [
"Apache-2.0"
] | null | null | null | defmodule Eigr.FunctionsController.Controllers.V1.FunctionTest do
@moduledoc false
use ExUnit.Case, async: false
alias Eigr.FunctionsController.Controllers.V1.Function
describe "add/1" do
@tag :skip
test "returns :ok" do
event = %{}
result = Function.add(event)
assert result == :ok
... | 19.857143 | 65 | 0.604317 |
c8b38065d743ce469491444f3182096c9e230e14 | 207 | ex | Elixir | web/models/users_roles.ex | albertchan/phoenix_admin | 74a9bbb01d7574db887b19a13f2934b7372f7d20 | [
"MIT"
] | 1 | 2018-03-07T17:21:58.000Z | 2018-03-07T17:21:58.000Z | web/models/users_roles.ex | albertchan/phoenix_admin | 74a9bbb01d7574db887b19a13f2934b7372f7d20 | [
"MIT"
] | null | null | null | web/models/users_roles.ex | albertchan/phoenix_admin | 74a9bbb01d7574db887b19a13f2934b7372f7d20 | [
"MIT"
] | null | null | null | defmodule PhoenixAdmin.UsersRoles do
use PhoenixAdmin.Web, :model
@primary_key false
schema "users_roles" do
belongs_to :user, PhoenixAdmin.User
belongs_to :role, PhoenixAdmin.Role
end
end
| 18.818182 | 39 | 0.758454 |
c8b3ae45f29b72f43f34f35abf658600caecf881 | 2,545 | ex | Elixir | lib/cotoami_web/controllers/cotonoma_controller.ex | reallinfo/cotoami | faaee71710019fa55a8215ea60d1d3bafc30d506 | [
"Apache-2.0"
] | null | null | null | lib/cotoami_web/controllers/cotonoma_controller.ex | reallinfo/cotoami | faaee71710019fa55a8215ea60d1d3bafc30d506 | [
"Apache-2.0"
] | null | null | null | lib/cotoami_web/controllers/cotonoma_controller.ex | reallinfo/cotoami | faaee71710019fa55a8215ea60d1d3bafc30d506 | [
"Apache-2.0"
] | null | null | null | defmodule CotoamiWeb.CotonomaController do
use CotoamiWeb, :controller
require Logger
import Cotoami.CotonomaService, only: [increment_timeline_revision: 1]
alias Cotoami.{Cotonoma, CotoService, CotonomaService}
alias CotoamiWeb.CotoView
plug :scrub_params, "cotonoma" when action in [:create]
def action... | 28.595506 | 82 | 0.637328 |
c8b3b56cb2a998e7751ecfafc0bc5b9ad6a76634 | 380 | ex | Elixir | web/views/error_view.ex | damonkelley/requestbin | 1f59df73ad3e47e74ba18a2987bd0b0cce262a13 | [
"MIT"
] | 4 | 2016-05-20T04:40:21.000Z | 2017-12-20T12:54:55.000Z | web/views/error_view.ex | damonkelley/requestbin | 1f59df73ad3e47e74ba18a2987bd0b0cce262a13 | [
"MIT"
] | null | null | null | web/views/error_view.ex | damonkelley/requestbin | 1f59df73ad3e47e74ba18a2987bd0b0cce262a13 | [
"MIT"
] | null | null | null | defmodule RequestBin.ErrorView do
use RequestBin.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Server internal error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_tem... | 21.111111 | 47 | 0.702632 |
c8b3cdbdce3ccf2614d2426294475f2d1b4997b5 | 3,241 | ex | Elixir | web/controllers/marker_controller.ex | tomfbiz/enhanced_map | 86bb5525dc58e8cb17926ce829659b817949266a | [
"MIT"
] | 2 | 2017-08-28T12:20:28.000Z | 2017-08-29T18:50:36.000Z | web/controllers/marker_controller.ex | tomfbiz/enhanced_map | 86bb5525dc58e8cb17926ce829659b817949266a | [
"MIT"
] | null | null | null | web/controllers/marker_controller.ex | tomfbiz/enhanced_map | 86bb5525dc58e8cb17926ce829659b817949266a | [
"MIT"
] | null | null | null | defmodule EnhancedMap.MarkerController do
use EnhancedMap.Web, :controller
plug Addict.Plugs.Authenticated
alias EnhancedMap.Marker
plug :assign_map
def new(conn, _params) do
changeset = conn.assigns[:map]
|> build_assoc(:markers)
|> Marker.changeset()
render(conn, "... | 28.681416 | 124 | 0.587164 |
c8b3f4e2f7d0c59893c9e1b5848971c9371e6f39 | 4,216 | ex | Elixir | apps/omg_performance/lib/omg_performance/byzantine_events/generators.ex | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | 1 | 2020-05-01T12:30:09.000Z | 2020-05-01T12:30:09.000Z | apps/omg_performance/lib/omg_performance/byzantine_events/generators.ex | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | null | null | null | apps/omg_performance/lib/omg_performance/byzantine_events/generators.ex | 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... | 31 | 88 | 0.693311 |
c8b3f5c3ebeba5be4f63dedc6c315e7cf505ab85 | 3,422 | ex | Elixir | test/support/helper.ex | yknx4/event_bus | 49027b459afc325ebf71a1e5001fb8718b4e7d80 | [
"MIT"
] | 557 | 2018-01-24T13:34:57.000Z | 2022-03-31T20:19:09.000Z | test/support/helper.ex | yknx4/event_bus | 49027b459afc325ebf71a1e5001fb8718b4e7d80 | [
"MIT"
] | 62 | 2018-02-05T05:14:11.000Z | 2022-02-26T13:04:24.000Z | test/support/helper.ex | yknx4/event_bus | 49027b459afc325ebf71a1e5001fb8718b4e7d80 | [
"MIT"
] | 37 | 2018-02-23T16:49:15.000Z | 2021-09-03T18:11:06.000Z | defmodule EventBus.Support.Helper do
alias EventBus.Model.Event
defmodule InputLogger do
@moduledoc """
I am the logger
"""
require Logger
@doc false
def process({config, topic, id}) do
event = EventBus.fetch_event({topic, id})
Logger.info(fn -> "Event log for #{inspect(event)... | 23.93007 | 79 | 0.62858 |
c8b3f763696b95ac405037857cfaecc1b2299ffa | 1,461 | ex | Elixir | lib/potato.ex | ausimian/potato | cb559c9d889b66bc262002c4b4f80be7424542f0 | [
"MIT"
] | null | null | null | lib/potato.ex | ausimian/potato | cb559c9d889b66bc262002c4b4f80be7424542f0 | [
"MIT"
] | null | null | null | lib/potato.ex | ausimian/potato | cb559c9d889b66bc262002c4b4f80be7424542f0 | [
"MIT"
] | null | null | null | defmodule Potato do
@moduledoc false
def check_exists(path) do
unless File.exists?(path) do
Mix.raise("Could not find #{path}. Have you run 'mix release'?")
end
end
def check_releases(root_path, rel_name, versions, rel_ver \\ nil) do
lib_path = Path.join([root_path, "lib"])
rel_path = Pa... | 33.204545 | 94 | 0.598905 |
c8b3f7f376b2534c30cc5e7ab99f36f1e75638aa | 5,704 | exs | Elixir | test/fusion_jwt_auth_plug_test.exs | nulian/fusion_jwt_authentication | 293965ff94fe84fef7a422c21c6ef7e5a6e475cf | [
"MIT"
] | null | null | null | test/fusion_jwt_auth_plug_test.exs | nulian/fusion_jwt_authentication | 293965ff94fe84fef7a422c21c6ef7e5a6e475cf | [
"MIT"
] | null | null | null | test/fusion_jwt_auth_plug_test.exs | nulian/fusion_jwt_authentication | 293965ff94fe84fef7a422c21c6ef7e5a6e475cf | [
"MIT"
] | 1 | 2021-03-25T14:46:52.000Z | 2021-03-25T14:46:52.000Z | defmodule FusionJWTAuthentication.FusionJWTAuthPlugTest do
use ExUnit.Case
use Plug.Test
import Plug.Conn
alias FusionJWTAuthentication.FusionJWTAuthPlug
alias FusionJWTAuthentication.Support.FusionGlobalAppCertificate
alias FusionJWTAuthentication.Token
alias FusionJWTAuthentication.TokenCertificateSto... | 29.863874 | 93 | 0.639201 |
c8b42bc69d1cb13d0393c5779904f985a6529cc7 | 1,428 | ex | Elixir | integration_test/support/session_case.ex | shiroyasha/wallaby | a81c66c143cd4827735c0d708ceae8bde91668c0 | [
"MIT"
] | 1 | 2019-01-30T12:08:17.000Z | 2019-01-30T12:08:17.000Z | integration_test/support/session_case.ex | shiroyasha/wallaby | a81c66c143cd4827735c0d708ceae8bde91668c0 | [
"MIT"
] | 2 | 2019-04-10T08:23:27.000Z | 2021-01-25T16:37:23.000Z | integration_test/support/session_case.ex | shiroyasha/wallaby | a81c66c143cd4827735c0d708ceae8bde91668c0 | [
"MIT"
] | 1 | 2019-01-29T16:03:55.000Z | 2019-01-29T16:03:55.000Z | defmodule Wallaby.Integration.SessionCase do
@moduledoc false
use ExUnit.CaseTemplate
using do
quote do
use Wallaby.DSL
import Wallaby.Integration.SessionCase
end
end
setup :inject_test_session
@doc """
Starts a test session with the default opts for the given driver
"""
def sta... | 23.032258 | 83 | 0.634454 |
c8b43779d1796098926d2abf266fb146820490fe | 319 | ex | Elixir | lib/polyglot_watcher.ex | mbernerslee/ployglot_watcher | 61497899cf4974012e2bae03a7ee58838b846ae0 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | lib/polyglot_watcher.ex | mbernerslee/ployglot_watcher | 61497899cf4974012e2bae03a7ee58838b846ae0 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 9 | 2020-12-10T20:33:59.000Z | 2020-12-11T12:06:59.000Z | lib/polyglot_watcher.ex | mbernerslee/polyglot_watcher | 61497899cf4974012e2bae03a7ee58838b846ae0 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | defmodule PolyglotWatcher do
alias PolyglotWatcher.Server
def main(command_line_args \\ []) do
run(command_line_args)
:timer.sleep(:infinity)
end
defp run(command_line_args) do
children = [Server.child_spec(command_line_args)]
Supervisor.start_link(children, strategy: :one_for_one)
end
end
| 22.785714 | 59 | 0.749216 |
c8b47c151df0f0a180f6290af2e3d30c1c03fa63 | 1,511 | ex | Elixir | lib/graphql_server_web.ex | MThomassen/graphql-server-benchmark-absinthe- | b2e0bdeeb135ffc2d83d67fe4aea19025dc9a6e6 | [
"Apache-2.0"
] | null | null | null | lib/graphql_server_web.ex | MThomassen/graphql-server-benchmark-absinthe- | b2e0bdeeb135ffc2d83d67fe4aea19025dc9a6e6 | [
"Apache-2.0"
] | null | null | null | lib/graphql_server_web.ex | MThomassen/graphql-server-benchmark-absinthe- | b2e0bdeeb135ffc2d83d67fe4aea19025dc9a6e6 | [
"Apache-2.0"
] | null | null | null | defmodule GraphqlServerWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use GraphqlServerWeb, :controller
use GraphqlServerWeb, :view
The definitions below will be executed for every vi... | 23.609375 | 83 | 0.701522 |
c8b4cc6be56e11eb2761eabd043a42e79f59a8ef | 1,060 | exs | Elixir | elixir/test/shunt_test.exs | Juzley/DSA | 9e0fd97375f02f993d94dfa7d0a0372dd0bcd1de | [
"MIT"
] | null | null | null | elixir/test/shunt_test.exs | Juzley/DSA | 9e0fd97375f02f993d94dfa7d0a0372dd0bcd1de | [
"MIT"
] | null | null | null | elixir/test/shunt_test.exs | Juzley/DSA | 9e0fd97375f02f993d94dfa7d0a0372dd0bcd1de | [
"MIT"
] | null | null | null | defmodule ShuntingYardTest do
use ExUnit.Case
import DSA.ShuntingYard
test "Simple binary operations" do
assert shunt("1 + 2") == "1 2 +"
assert shunt("2 - 1") == "2 1 -"
assert shunt("2 * 3") == "2 3 *"
assert shunt("4 / 2") == "4 2 /"
end
test "Operator precedence" do
assert shunt("1 ... | 29.444444 | 56 | 0.453774 |
c8b4f8eac3feee4f3db982605ce7493955fc9d06 | 1,434 | ex | Elixir | test/support/data_case.ex | joshprice/groundstation | ef08065f32c6389d87c84cd36f14052fafe0e3ee | [
"Apache-2.0"
] | 23 | 2019-10-03T05:40:57.000Z | 2021-09-29T17:03:59.000Z | test/support/data_case.ex | joshprice/groundstation | ef08065f32c6389d87c84cd36f14052fafe0e3ee | [
"Apache-2.0"
] | 6 | 2019-10-12T02:17:34.000Z | 2021-05-10T07:01:55.000Z | test/support/data_case.ex | joshprice/groundstation | ef08065f32c6389d87c84cd36f14052fafe0e3ee | [
"Apache-2.0"
] | 3 | 2019-10-17T04:13:38.000Z | 2020-07-11T02:18:03.000Z | defmodule GroundStation.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, ever... | 26.555556 | 77 | 0.686192 |
c8b50a6995a557a9cff01dd1d525abfde80cf0c5 | 2,468 | ex | Elixir | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/pull_message.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/pull_message.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/pull_message.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... | 48.392157 | 799 | 0.747164 |
c8b51c55a6303746f9a9d95cce8b68479e45eff1 | 4,050 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/basic_chart_spec.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/basic_chart_spec.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/basic_chart_spec.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... | 52.597403 | 299 | 0.700741 |
c8b524faf3163bb17d50c8680a95ed3ac79b4cf0 | 1,040 | ex | Elixir | apps/collabex/lib/collabex/editor_session/sessions_supervisor.ex | mugimaru73/collabex | 69bac8058d6ee1a70620488e802d30a34eaebfb4 | [
"MIT"
] | null | null | null | apps/collabex/lib/collabex/editor_session/sessions_supervisor.ex | mugimaru73/collabex | 69bac8058d6ee1a70620488e802d30a34eaebfb4 | [
"MIT"
] | 2 | 2021-03-10T20:18:59.000Z | 2021-05-11T16:07:46.000Z | apps/collabex/lib/collabex/editor_session/sessions_supervisor.ex | mugimaru/collabex | 69bac8058d6ee1a70620488e802d30a34eaebfb4 | [
"MIT"
] | null | null | null | defmodule Collabex.EditorSession.SessionsSupervisor do
use DynamicSupervisor
@spec start_link(term) :: :ignore | {:error, any} | {:ok, pid}
def start_link(event_store) do
DynamicSupervisor.start_link(__MODULE__, event_store, name: __MODULE__)
end
@impl DynamicSupervisor
@spec init(any) :: {:ok, Dynami... | 29.714286 | 96 | 0.686538 |
c8b52a383a765a0041b5c6251161f06935d3f609 | 2,054 | exs | Elixir | 18-temperature-converter.exs | floriank/57-exercises-elixir | fcbaa547d0d0a6b447b0df88e1fc42e0cffcc08f | [
"MIT"
] | 1 | 2016-04-23T17:03:02.000Z | 2016-04-23T17:03:02.000Z | 18-temperature-converter.exs | floriank/57-exercises-elixir | fcbaa547d0d0a6b447b0df88e1fc42e0cffcc08f | [
"MIT"
] | null | null | null | 18-temperature-converter.exs | floriank/57-exercises-elixir | fcbaa547d0d0a6b447b0df88e1fc42e0cffcc08f | [
"MIT"
] | 1 | 2021-06-07T21:21:41.000Z | 2021-06-07T21:21:41.000Z | defmodule TemperatureConverter do
@moduledoc """
converts from fahrenheit to celsius and vise-versa
"""
import IO, only: [puts: 1, gets: 1, read: 2]
import String, only: [rstrip: 1, downcase: 1]
def choose_temperature do
puts "Choose c for Celsius to Fahrenheit"
puts "Choose f for Fahrenheit to Ce... | 23.078652 | 72 | 0.598345 |
c8b56fee501b1e83428607ddcb49488b84d02555 | 3,175 | exs | Elixir | test/groupher_server/accounts/published/published_work_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | test/groupher_server/accounts/published/published_work_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | test/groupher_server/accounts/published/published_work_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Test.Accounts.Published.Works do
use GroupherServer.TestTools
alias GroupherServer.{Accounts, CMS}
alias Accounts.Model.User
alias Helper.ORM
@publish_count 10
setup do
{:ok, user} = db_insert(:user)
{:ok, user2} = db_insert(:user)
{:ok, works} = db_insert(:works)
... | 33.776596 | 92 | 0.637165 |
c8b5aa861ddc5dabb97d2291d018f730ab941c4f | 648 | ex | Elixir | lib/fontais/codi/codi.ex | ianrumford/plymio_fontais | 828d6726223d2fa038f2c1374fcd2f4b67371544 | [
"MIT"
] | null | null | null | lib/fontais/codi/codi.ex | ianrumford/plymio_fontais | 828d6726223d2fa038f2c1374fcd2f4b67371544 | [
"MIT"
] | null | null | null | lib/fontais/codi/codi.ex | ianrumford/plymio_fontais | 828d6726223d2fa038f2c1374fcd2f4b67371544 | [
"MIT"
] | null | null | null | defmodule Plymio.Fontais.Codi do
@moduledoc false
@vekil_basics %{
doc_false:
quote do
@doc false
end,
def_minimal_types:
quote do
@type kv :: Plymio.Fontais.kv()
@type opts :: Plymio.Fontais.opts()
@type error :: Plymio.Fontais.error()
@type result... | 21.6 | 74 | 0.584877 |
c8b5b2d69485b3c36b0c26fbdb31ae243cdfb39d | 75 | ex | Elixir | example/web/views/page_view.ex | smeevil/phoenix-jsroutes | b5351527302acff6258acd321a4f055e6fc71371 | [
"MIT"
] | null | null | null | example/web/views/page_view.ex | smeevil/phoenix-jsroutes | b5351527302acff6258acd321a4f055e6fc71371 | [
"MIT"
] | null | null | null | example/web/views/page_view.ex | smeevil/phoenix-jsroutes | b5351527302acff6258acd321a4f055e6fc71371 | [
"MIT"
] | null | null | null | defmodule JsRoutesExample.PageView do
use JsRoutesExample.Web, :view
end
| 18.75 | 37 | 0.826667 |
c8b609f7d107ae4d981aec64ffc7c0c7017396ad | 1,187 | ex | Elixir | lib/router_tester.ex | coby-spotim/plug-body-validator | 6b9f0912c6cd3d654e374358f3141496093b5034 | [
"MIT"
] | null | null | null | lib/router_tester.ex | coby-spotim/plug-body-validator | 6b9f0912c6cd3d654e374358f3141496093b5034 | [
"MIT"
] | null | null | null | lib/router_tester.ex | coby-spotim/plug-body-validator | 6b9f0912c6cd3d654e374358f3141496093b5034 | [
"MIT"
] | null | null | null | defmodule ParamsValidation.RouterTester do
use Plug.Router
plug(:match)
plug(:dispatch)
import ParamsValidation
get "/get-with-query-param/:query_thing", expect(path_params: %{thing: :string}) do
conn
|> put_resp_content_type("application/json")
|> send_resp(200, Poison.encode!(query_thing))
... | 28.95122 | 100 | 0.689975 |
c8b60a170f09fead273dcf6a6c4d013643f668a3 | 1,439 | ex | Elixir | clients/content/lib/google_api/content/v21/model/accounts_link_response.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/content/lib/google_api/content/v21/model/accounts_link_response.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/accounts_link_response.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.617021 | 151 | 0.738013 |
c8b6198b06397353e75a0d077440049a1e7a40b5 | 2,720 | ex | Elixir | lib/google/protobuf/field_mask.ex | ahamez/protox | 1966fb5f26b546f95033fbe18850b6c69eb6617d | [
"MIT"
] | 176 | 2017-02-01T13:09:25.000Z | 2022-03-18T02:36:17.000Z | lib/google/protobuf/field_mask.ex | ahamez/protox | 1966fb5f26b546f95033fbe18850b6c69eb6617d | [
"MIT"
] | 94 | 2020-07-20T05:54:51.000Z | 2022-03-09T04:13:03.000Z | lib/google/protobuf/field_mask.ex | ahamez/protox | 1966fb5f26b546f95033fbe18850b6c69eb6617d | [
"MIT"
] | 19 | 2017-02-13T09:17:14.000Z | 2022-02-22T09:29:18.000Z | # This implementation has been developed by making the conformance tests happy. However, I'm not sure
# they cover everything, and the specification is a little light on details.
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#json-encoding-of-field-masks
defmodule Protox.Google.Protobu... | 24.954128 | 108 | 0.594853 |
c8b62bd47976a643228c13b4e03245768ec17879 | 6,503 | ex | Elixir | lib/graphql/lang/ast/type_info_visitor.ex | marvinhagemeister/graphql | 43bccc041438f05d14c8c6f40f193c3d7957ca9d | [
"BSD-3-Clause"
] | 719 | 2016-03-18T03:10:46.000Z | 2022-02-02T10:07:29.000Z | lib/graphql/lang/ast/type_info_visitor.ex | marvinhagemeister/graphql | 43bccc041438f05d14c8c6f40f193c3d7957ca9d | [
"BSD-3-Clause"
] | 51 | 2015-08-30T03:15:17.000Z | 2016-03-02T07:13:26.000Z | lib/graphql/lang/ast/type_info_visitor.ex | marvinhagemeister/graphql | 43bccc041438f05d14c8c6f40f193c3d7957ca9d | [
"BSD-3-Clause"
] | 34 | 2016-03-30T12:56:11.000Z | 2021-08-30T09:21:54.000Z |
defmodule GraphQL.Lang.AST.TypeInfoVisitor do
@moduledoc ~S"""
A Visitor implementation that adds type information to the accumulator, so that subsequent
visitors can use the information to perform validations.
NOTE: this file is mostly a straight clone from the graphql-js implementation.
There were no test... | 39.412121 | 129 | 0.634784 |
c8b66799b01622df73c79664eb11c4205b2ac85d | 27,562 | ex | Elixir | lib/odd_job.ex | msimonborg/odd_job | 99c662b21e7a6ed34ebae6bdd79cb6ad997e9724 | [
"MIT"
] | 3 | 2022-02-01T13:49:51.000Z | 2022-02-04T05:56:34.000Z | lib/odd_job.ex | msimonborg/odd_job | 99c662b21e7a6ed34ebae6bdd79cb6ad997e9724 | [
"MIT"
] | null | null | null | lib/odd_job.ex | msimonborg/odd_job | 99c662b21e7a6ed34ebae6bdd79cb6ad997e9724 | [
"MIT"
] | null | null | null | defmodule OddJob do
@external_resource readme = Path.join([__DIR__, "../README.md"])
@moduledoc readme
|> File.read!()
|> String.split("<!-- MDOC -->")
|> Enum.fetch!(1)
|> String.replace("#usage", "#module-usage")
|> String.replace("#supervising-job... | 36.457672 | 124 | 0.6813 |
c8b6a9b11d403e31622ba668c45564386a31bd29 | 873 | ex | Elixir | lib/strong_migrations.ex | joaothallis/strong_migrations | 8b0beb9a37659c1d310a633b320a0d7eb1040f78 | [
"MIT"
] | null | null | null | lib/strong_migrations.ex | joaothallis/strong_migrations | 8b0beb9a37659c1d310a633b320a0d7eb1040f78 | [
"MIT"
] | null | null | null | lib/strong_migrations.ex | joaothallis/strong_migrations | 8b0beb9a37659c1d310a633b320a0d7eb1040f78 | [
"MIT"
] | null | null | null | defmodule StrongMigrations do
@moduledoc """
Documentation for `StrongMigrations`.
"""
alias StrongMigrations.Loader
alias StrongMigrations.Parser
alias StrongMigrations.ReasonsTranslator
alias StrongMigrations.Validator
@type migration_path() :: String.t()
@type migration_file() :: String.t()
@ty... | 21.825 | 59 | 0.67583 |
c8b6ba74794abd9b5416206c4330573314443965 | 3,604 | ex | Elixir | lib/kv/storage.ex | dmitrydprog/kv | 80c222505b530fc3f370ef199a3a5d050a9689de | [
"MIT"
] | null | null | null | lib/kv/storage.ex | dmitrydprog/kv | 80c222505b530fc3f370ef199a3a5d050a9689de | [
"MIT"
] | null | null | null | lib/kv/storage.ex | dmitrydprog/kv | 80c222505b530fc3f370ef199a3a5d050a9689de | [
"MIT"
] | null | null | null | defmodule KV.Storage do
@moduledoc false
@type table() :: String.t()
@dets_path Application.get_env(:kv, :dets_path, :storage)
@auto_save Application.get_env(:kv, :auto_save, 1_000)
@clear_timeout Application.get_env(:kv, :clear_timeout, 10_000)
use GenServer
require Logger
# ---------------- API --... | 23.402597 | 80 | 0.56687 |
c8b6bc000477ff1dc410c209e8de630da694b974 | 2,049 | ex | Elixir | lib/debug.ex | aruki-delivery/quaff | 3538bec660642398537488377d57f5212b44414a | [
"Apache-2.0"
] | null | null | null | lib/debug.ex | aruki-delivery/quaff | 3538bec660642398537488377d57f5212b44414a | [
"Apache-2.0"
] | null | null | null | lib/debug.ex | aruki-delivery/quaff | 3538bec660642398537488377d57f5212b44414a | [
"Apache-2.0"
] | 1 | 2019-12-03T15:46:32.000Z | 2019-12-03T15:46:32.000Z | # Copyright 2014 Josh Burroughs <josh@qhool.com>
# 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... | 26.960526 | 97 | 0.669107 |
c8b6cb23ad67483bb5bd33cd83d3d8ac6c7ef2ba | 44,742 | ex | Elixir | lib/type.ex | kianmeng/mavis | 6ba154efdfadcce1aca92ac735dadb209380c25b | [
"MIT"
] | null | null | null | lib/type.ex | kianmeng/mavis | 6ba154efdfadcce1aca92ac735dadb209380c25b | [
"MIT"
] | null | null | null | lib/type.ex | kianmeng/mavis | 6ba154efdfadcce1aca92ac735dadb209380c25b | [
"MIT"
] | null | null | null | defmodule Type do
@moduledoc """
Type analysis system for Elixir.
Mavis implements the `Type` module, which contains a type analysis system
specifically tailored for the BEAM VM. The following considerations went
into its design.
- Must be compatible with the exisiting dialyzer/typespec system
- May e... | 31.776989 | 97 | 0.634236 |
c8b6d5141ecc13228023fa67c12e977735da0e68 | 1,197 | exs | Elixir | poc_elixir/config/prod.secret.exs | fcevado/minha-receita | ebd5cca95115d878934a0f762a8e92d3f8f5b495 | [
"MIT"
] | null | null | null | poc_elixir/config/prod.secret.exs | fcevado/minha-receita | ebd5cca95115d878934a0f762a8e92d3f8f5b495 | [
"MIT"
] | null | null | null | poc_elixir/config/prod.secret.exs | fcevado/minha-receita | ebd5cca95115d878934a0f762a8e92d3f8f5b495 | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
envi... | 30.692308 | 76 | 0.724311 |
c8b6d78a8a90359399b7954681ee8c9792b513d9 | 1,903 | ex | Elixir | samples/elixir.ex | yashguptaz/vim-nightfly-guicolors | 085abe45c9c24d5f5979699add034092770ba8cd | [
"MIT"
] | 431 | 2020-01-31T01:00:33.000Z | 2022-03-31T19:27:22.000Z | samples/elixir.ex | yashguptaz/vim-nightfly-guicolors | 085abe45c9c24d5f5979699add034092770ba8cd | [
"MIT"
] | 30 | 2020-01-31T14:53:12.000Z | 2022-03-21T04:19:59.000Z | samples/elixir.ex | yashguptaz/vim-nightfly-guicolors | 085abe45c9c24d5f5979699add034092770ba8cd | [
"MIT"
] | 46 | 2020-01-31T13:23:10.000Z | 2022-03-25T07:21:29.000Z | defmodule Cards do
@moduledoc """
Provides methods for creating and handling a deck of cards.
"""
@doc """
Returns a list of strings representing a deck of playing cards.
"""
def create_deck do
values = ["Ace", "Two", "Three", "Four", "Five"]
suits = ["Spades", "Clubs", "Hearts", "Diamonds"]
... | 20.912088 | 75 | 0.62743 |
c8b6de1f089abd8785153a9a237977395eca321f | 326 | ex | Elixir | lib/rustler_live_view_toy/game/types/entity.ex | supernintendo/rustler_live_view_toy | 4faeb662daae4238142d3f560ef22d5cd26bb3c6 | [
"Apache-2.0"
] | 1 | 2019-10-07T09:30:16.000Z | 2019-10-07T09:30:16.000Z | lib/rustler_live_view_toy/game/types/entity.ex | supernintendo/rustler_live_view_toy | 4faeb662daae4238142d3f560ef22d5cd26bb3c6 | [
"Apache-2.0"
] | 2 | 2021-03-09T19:17:39.000Z | 2021-05-10T16:30:30.000Z | lib/rustler_live_view_toy/game/types/entity.ex | supernintendo/rustler_live_view_toy | 4faeb662daae4238142d3f560ef22d5cd26bb3c6 | [
"Apache-2.0"
] | null | null | null | defmodule RustlerLiveViewToy.Game.Entity do
use TypedStruct
@typedoc """
A human player playing the game.
"""
typedstruct do
field :high_score, integer(), default: 0
field :id, String.t(), enforce: true
field :name, String.t()
field :process, pid()
field :score, integer(), default: 0
en... | 21.733333 | 44 | 0.662577 |
c8b6faf8f0a11485d7ead3e12d49001bc959e372 | 2,384 | ex | Elixir | lib/chopperbot/split/parser/input_transformer.ex | flipay/chopperbot | 29d81a343442bdd8eae7627bc6eb3c7d83cd0151 | [
"MIT"
] | 5 | 2019-12-14T03:12:28.000Z | 2020-03-04T12:58:44.000Z | lib/chopperbot/split/parser/input_transformer.ex | flipay/chopperbot | 29d81a343442bdd8eae7627bc6eb3c7d83cd0151 | [
"MIT"
] | 12 | 2020-01-07T09:31:33.000Z | 2020-03-27T06:11:21.000Z | lib/chopperbot/split/parser/input_transformer.ex | flipay/chopperbot | 29d81a343442bdd8eae7627bc6eb3c7d83cd0151 | [
"MIT"
] | 1 | 2020-01-09T10:35:37.000Z | 2020-01-09T10:35:37.000Z | defmodule Chopperbot.Split.InputTransformer do
alias Chopperbot.Split.Order
@doc """
Transform inputs to a list of orders.
## Examples
iex> transform(["turbo", "10", "kendo", "200"])
{:ok, [{"turbo", 10.0}, {"kendo", 200.0}]}
iex> transform(["ant", "200", "pipe", "100", "share", "-30"])
... | 29.073171 | 94 | 0.588926 |
c8b71e5f350b47260277c0add680bc81220d53e7 | 2,101 | ex | Elixir | clients/run/lib/google_api/run/v1/model/env_var_source.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/run/lib/google_api/run/v1/model/env_var_source.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/run/lib/google_api/run/v1/model/env_var_source.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... | 31.833333 | 112 | 0.730604 |
c8b723c72755c3e9a7742a001735148a3cd824c1 | 977 | ex | Elixir | lib/spotify/models/users/user_public.ex | chippers/spotify_web_api | 221a197dbac4971f87e9917d02cb335e6a42b726 | [
"MIT"
] | null | null | null | lib/spotify/models/users/user_public.ex | chippers/spotify_web_api | 221a197dbac4971f87e9917d02cb335e6a42b726 | [
"MIT"
] | null | null | null | lib/spotify/models/users/user_public.ex | chippers/spotify_web_api | 221a197dbac4971f87e9917d02cb335e6a42b726 | [
"MIT"
] | null | null | null | defmodule Spotify.Users.UserPublic do
@moduledoc """
A public User object.
[Spotify Docs](https://beta.developer.spotify.com/documentation/web-api/reference/object-model/#user-object-public)
"""
@behaviour Spotify.ObjectModel
alias Spotify.Users
alias Spotify.Image
alias Spotify.Followers
defst... | 22.72093 | 119 | 0.57523 |
c8b74b2fd4cf4191e16650d3f9aaaab5d9aa0d86 | 4,114 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/instance_template.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/instance_template.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/instance_template.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 54.853333 | 490 | 0.720467 |
c8b7961be7aa0c931b8859a380231702d18cf655 | 4,159 | exs | Elixir | test/sftp_client/operations/open_file_test.exs | zoten/sftp_client | 814d06e36915f60bf98149d790051d03bee189f5 | [
"MIT"
] | 21 | 2019-08-06T01:39:15.000Z | 2021-04-15T20:08:04.000Z | test/sftp_client/operations/open_file_test.exs | zoten/sftp_client | 814d06e36915f60bf98149d790051d03bee189f5 | [
"MIT"
] | 19 | 2019-07-10T17:10:34.000Z | 2021-04-18T11:16:58.000Z | test/sftp_client/operations/open_file_test.exs | zoten/sftp_client | 814d06e36915f60bf98149d790051d03bee189f5 | [
"MIT"
] | 11 | 2019-07-04T14:56:37.000Z | 2021-04-26T19:09:22.000Z | defmodule SFTPClient.Operations.OpenFileTest do
use ExUnit.Case, async: true
import Mox
import SFTPClient.ConnHelper
alias SFTPClient.Adapter.SFTP.Mock, as: SFTPMock
alias SFTPClient.Handle
alias SFTPClient.OperationError
alias SFTPClient.Operations.OpenFile
@conn build_conn()
@path "my/remote/file... | 27.912752 | 76 | 0.488339 |
c8b7a2351faf9b0bfc4a80ffb184a615d3b3f6e7 | 767 | ex | Elixir | lib/blaine/google/auth_token.ex | eeng/blaine | d91d94034925d64632789925ef90a198c0a1d8ea | [
"MIT"
] | null | null | null | lib/blaine/google/auth_token.ex | eeng/blaine | d91d94034925d64632789925ef90a198c0a1d8ea | [
"MIT"
] | null | null | null | lib/blaine/google/auth_token.ex | eeng/blaine | d91d94034925d64632789925ef90a198c0a1d8ea | [
"MIT"
] | null | null | null | defmodule Blaine.Google.AuthToken do
defstruct [:access_token, :refresh_token, :token_type, :generated_at, :expires_at]
alias __MODULE__
alias Blaine.Util.Clock
@type t :: %AuthToken{
access_token: String.t(),
refresh_token: String.t(),
expires_at: integer()
}
def from... | 26.448276 | 84 | 0.66884 |
c8b7a302f265fe6be27d0a96ddb10f8868c5ed72 | 7,508 | ex | Elixir | clients/reseller/lib/google_api/reseller/v1/api/resellernotify.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/reseller/lib/google_api/reseller/v1/api/resellernotify.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/reseller/lib/google_api/reseller/v1/api/resellernotify.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 ... | 44.690476 | 187 | 0.660362 |
c8b7c100c14aaa3b05bc0b2c6494bb26d0ba6c9b | 772 | ex | Elixir | memory-master/test/support/channel_case.ex | Wycode-fish/WEBDEV-MEMORY-GAME | 1b04f995fb1a545781206a7fd01de0a1bb75d86c | [
"MIT"
] | null | null | null | memory-master/test/support/channel_case.ex | Wycode-fish/WEBDEV-MEMORY-GAME | 1b04f995fb1a545781206a7fd01de0a1bb75d86c | [
"MIT"
] | null | null | null | memory-master/test/support/channel_case.ex | Wycode-fish/WEBDEV-MEMORY-GAME | 1b04f995fb1a545781206a7fd01de0a1bb75d86c | [
"MIT"
] | null | null | null | defmodule MemoryWeb.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... | 22.705882 | 58 | 0.725389 |
c8b7dce7528976441acab4af1158dc055bda00b5 | 302 | ex | Elixir | lib/oddsshark/play_by_play.ex | krmannix/oddsshark | 384d4a88a681504b61a6b734968163321ec04e49 | [
"MIT"
] | 2 | 2017-12-05T01:00:36.000Z | 2018-10-19T17:20:49.000Z | lib/oddsshark/play_by_play.ex | krmannix/oddsshark | 384d4a88a681504b61a6b734968163321ec04e49 | [
"MIT"
] | null | null | null | lib/oddsshark/play_by_play.ex | krmannix/oddsshark | 384d4a88a681504b61a6b734968163321ec04e49 | [
"MIT"
] | null | null | null | defmodule OddsShark.PlayByPlay do
@base_path "play_by_play"
def get(league, id) do
make_request(league, id)
end
defp make_request(league, id) do
get_path(league, id)
|> OddsShark.get_request
end
defp get_path(league, id) do
Path.join([@base_path, league, id])
end
end
| 16.777778 | 39 | 0.688742 |
c8b8102a1f3f57c695e68b9b65e5db9bca9fe591 | 794 | exs | Elixir | test/task/compile_test.exs | Joe-noh/declaimer | b120e9c1367f42084abe06d5e753578fe768fff8 | [
"MIT"
] | null | null | null | test/task/compile_test.exs | Joe-noh/declaimer | b120e9c1367f42084abe06d5e753578fe768fff8 | [
"MIT"
] | 2 | 2017-10-09T15:19:46.000Z | 2017-10-09T15:19:46.000Z | test/task/compile_test.exs | Joe-noh/declaimer | b120e9c1367f42084abe06d5e753578fe768fff8 | [
"MIT"
] | null | null | null | defmodule CompileTest do
use ExUnit.Case
setup_all do
tmp_dir = TestHelper.prepare_test_project
TestHelper.run(:init, tmp_dir)
TestHelper.run(:compile, tmp_dir)
on_exit fn -> (File.rm_rf! tmp_dir) end
end
test "generated files" do
assert File.exists?("presentation.html")
assert Fil... | 23.352941 | 46 | 0.668766 |
c8b83a600c93ba319562e30329b8075bc1479d14 | 141 | exs | Elixir | config/config.exs | sabiwara/aja | cde91e4263e54a11a1685a777dbffd4912fe3864 | [
"MIT"
] | 95 | 2020-10-18T09:27:46.000Z | 2022-03-29T20:03:16.000Z | config/config.exs | sabiwara/aja | cde91e4263e54a11a1685a777dbffd4912fe3864 | [
"MIT"
] | 1 | 2021-09-22T20:30:08.000Z | 2021-10-13T23:55:34.000Z | config/config.exs | sabiwara/aja | cde91e4263e54a11a1685a777dbffd4912fe3864 | [
"MIT"
] | 1 | 2020-12-15T12:36:16.000Z | 2020-12-15T12:36:16.000Z | import Config
config_file = "#{Mix.env()}.exs"
if config_file |> Path.expand(__DIR__) |> File.exists?() do
import_config config_file
end
| 17.625 | 59 | 0.716312 |
c8b83b39356db06bd3785578f297680b7f83e206 | 22,490 | ex | Elixir | lib/aws/generated/emr.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 341 | 2018-04-04T19:06:19.000Z | 2022-03-25T21:34:23.000Z | lib/aws/generated/emr.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 82 | 2018-04-04T17:32:33.000Z | 2022-03-24T15:12:04.000Z | lib/aws/generated/emr.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 76 | 2018-04-10T20:19:44.000Z | 2022-03-15T13:49:19.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.EMR do
@moduledoc """
Amazon EMR is a web service that makes it easier to process large amounts of
data efficiently.
Amazon EMR uses Hadoop processing combined with several AWS services t... | 40.522523 | 164 | 0.734638 |
c8b8460082aab2b7a1391be94ebc06469dc32920 | 4,897 | ex | Elixir | lib/codes/codes_z02.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_z02.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_z02.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_Z02 do
alias IcdCode.ICDCode
def _Z020 do
%ICDCode{full_code: "Z020",
category_code: "Z02",
short_code: "0",
full_name: "Encounter for examination for admission to educational institution",
short_name: "Encounter for examination for admissio... | 36.819549 | 93 | 0.644476 |
c8b859d63acd807e06a3b450527283d85bc367f8 | 345 | ex | Elixir | spec/support/user_module_test.ex | yanovitchsky/karibu_ex | 85349c6dcda74c90db7fda8b9164680c6103eb49 | [
"MIT"
] | null | null | null | spec/support/user_module_test.ex | yanovitchsky/karibu_ex | 85349c6dcda74c90db7fda8b9164680c6103eb49 | [
"MIT"
] | null | null | null | spec/support/user_module_test.ex | yanovitchsky/karibu_ex | 85349c6dcda74c90db7fda8b9164680c6103eb49 | [
"MIT"
] | null | null | null | defmodule UserModuleTest do
def echo(str) do
:timer.sleep(100)
str
end
def sort(list) do
Enum.sort(list, &(&1 > &2))
end
def slow do
:timer.sleep(10000)
:ok
end
def lol do
:ok
end
def throws do
throw "bad error"
end
def raises do
raise "plop"
end
defp priv... | 10.78125 | 31 | 0.576812 |
c8b86c7f0bbcef9fa03a87c542aed125927842a6 | 31,203 | exs | Elixir | lib/elixir/test/elixir/kernel/typespec_test.exs | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/typespec_test.exs | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/typespec_test.exs | tmbb/exdocs_makedown_demo | 6a0039c54d2fa10d79c080efcef8d70d359678f8 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule Kernel.TypespecTest do
use ExUnit.Case
import ExUnit.CaptureIO
alias Kernel.TypespecTest.TestTypespec
defstruct [:hello]
# This macro allows us to focus on the result of the
# definition and not on the hassles of handling test
# module.
defm... | 33.95321 | 240 | 0.560523 |
c8b8742b7893473b63dbecbeb9f1d3560fdbb39d | 32,569 | exs | Elixir | test/ecto/changeset/embedded_test.exs | mfrasca/ecto | e5d9d4a05956cfcf65735916bc2478b791acf541 | [
"Apache-2.0"
] | null | null | null | test/ecto/changeset/embedded_test.exs | mfrasca/ecto | e5d9d4a05956cfcf65735916bc2478b791acf541 | [
"Apache-2.0"
] | null | null | null | test/ecto/changeset/embedded_test.exs | mfrasca/ecto | e5d9d4a05956cfcf65735916bc2478b791acf541 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Changeset.EmbeddedTest do
use ExUnit.Case, async: true
alias Ecto.Changeset
alias Ecto.Changeset.Relation
alias Ecto.Embedded
alias Ecto.TestRepo
alias __MODULE__.Author
alias __MODULE__.Profile
alias __MODULE__.Post
defmodule Author do
use Ecto.Schema
schema "authors" do
... | 37.010227 | 128 | 0.643495 |
c8b87e8d9a1823b1f7c99abb68be8efe06134228 | 144 | ex | Elixir | apps/authorizer/test/support/mocks.ex | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | 9 | 2020-10-13T14:11:37.000Z | 2021-08-12T18:40:08.000Z | apps/authorizer/test/support/mocks.ex | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | 28 | 2020-10-04T14:43:48.000Z | 2021-12-07T16:54:22.000Z | apps/authorizer/test/support/mocks.ex | dcdourado/watcher_ex | ce80df81610a6e9b77612911aac2a6d6cf4de8d5 | [
"Apache-2.0"
] | 3 | 2020-11-25T20:59:47.000Z | 2021-08-30T10:36:58.000Z | for module <- [
# ResourceManager domain
Authorizer.Ports.ResourceManager
] do
Mox.defmock(:"#{module}Mock", for: module)
end
| 20.571429 | 44 | 0.652778 |
c8b88a8eb09c02d61171a8641f2bf688cab788c1 | 2,523 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/domain_mapping.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/domain_mapping.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/domain_mapping.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 ... | 42.762712 | 143 | 0.726912 |
c8b88cf957f64cb4c008391390743dc1080b5c74 | 1,291 | ex | Elixir | clients/testing/lib/google_api/testing/v1/model/launcher_activity_intent.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/testing/lib/google_api/testing/v1/model/launcher_activity_intent.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/testing/lib/google_api/testing/v1/model/launcher_activity_intent.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.738095 | 81 | 0.765298 |
c8b8926d8a96e6b2161c87183856a8d778b94381 | 2,411 | ex | Elixir | web/plugs/session_plugs.ex | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 10 | 2016-07-15T15:57:33.000Z | 2018-06-09T00:40:46.000Z | web/plugs/session_plugs.ex | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | null | null | null | web/plugs/session_plugs.ex | marick/eecrit | 50b1ebeadc5cf21ea9f9df6add65e4d7037e2482 | [
"MIT"
] | 6 | 2016-07-15T15:57:41.000Z | 2018-03-22T16:38:00.000Z | defmodule Eecrit.SessionPlugs do
import Plug.Conn
import Phoenix.Controller
import Ecto.Query
alias Eecrit.User
alias Eecrit.Repo
alias Eecrit.AbilityGroupChooser
alias Eecrit.AbilityGroup
alias Eecrit.Router.Helpers
def v2_add_current_user(conn, _opts) do
assign(conn, :v2_current_user, get_sessi... | 25.114583 | 80 | 0.68063 |
c8b8968ff98b228b246178d0b17fa5df5b4bcdea | 2,338 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_list_api_categories_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_list_api_categories_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_list_api_categories_response.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... | 38.327869 | 136 | 0.714713 |
c8b8b81043d034e0ce746ca44b5fe8021eb8d622 | 2,058 | exs | Elixir | config/prod.exs | shanesveller/grapevine | fe74ade1adff88dfe4c1ab55fee3902dbb4664fe | [
"MIT"
] | null | null | null | config/prod.exs | shanesveller/grapevine | fe74ade1adff88dfe4c1ab55fee3902dbb4664fe | [
"MIT"
] | null | null | null | config/prod.exs | shanesveller/grapevine | fe74ade1adff88dfe4c1ab55fee3902dbb4664fe | [
"MIT"
] | null | null | null | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# Web.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
# Don't for... | 32.666667 | 67 | 0.712828 |
c8b8df945d014425e1301c5f6da343e9be199bfc | 3,709 | exs | Elixir | test/club/brands/commands/unique_brand_name_test.exs | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | null | null | null | test/club/brands/commands/unique_brand_name_test.exs | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | 34 | 2019-11-10T11:31:37.000Z | 2019-11-27T21:26:48.000Z | test/club/brands/commands/unique_brand_name_test.exs | vheathen/club.wallprint.pro | d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d | [
"MIT"
] | null | null | null | defmodule Club.Brands.Commands.UniqueBrandNameTest do
use Club.DataCase
alias Club.ReadRepo, as: Repo
require Cachex.Spec
alias Club.Brands
alias Club.Brands.Projections.Brand, as: BrandProjection
@uniqueness_key Club.Support.Unique
@cachex_adapter Module.concat(@uniqueness_key, Cachex)
@topic "doma... | 31.168067 | 94 | 0.667296 |
c8b8e0bd3f073a7f17421271c7983e17753e34e7 | 313 | ex | Elixir | lib/copan_web/schema/user.ex | GabrielMalakias/Copan | cdf4dec19d9f9cefca59aa9f01fe33060fe7e019 | [
"MIT"
] | 1 | 2019-01-19T00:53:07.000Z | 2019-01-19T00:53:07.000Z | lib/copan_web/schema/user.ex | dkuku/copan | cdf4dec19d9f9cefca59aa9f01fe33060fe7e019 | [
"MIT"
] | null | null | null | lib/copan_web/schema/user.ex | dkuku/copan | cdf4dec19d9f9cefca59aa9f01fe33060fe7e019 | [
"MIT"
] | 1 | 2020-01-29T21:46:16.000Z | 2020-01-29T21:46:16.000Z | defmodule CopanWeb.Schema.User do
use Absinthe.Schema.Notation
object :user do
field :id, non_null(:id)
field :name, :string
field :email, :string
end
object :user_queries do
field :users, non_null(list_of(non_null(:user))) do
resolve &Copan.Resolvers.User.all/3
end
end
end
| 19.5625 | 55 | 0.683706 |
c8b8f4f4b13413a984c5df3352393dbd0b7e031b | 6,056 | ex | Elixir | lib/regexp.ex | tlossen/elixir | 38567f7f84bfce69a58c0be0ee6959cc7c6b3d6b | [
"MIT"
] | 1 | 2015-10-25T11:30:13.000Z | 2015-10-25T11:30:13.000Z | lib/regexp.ex | tlossen/elixir | 38567f7f84bfce69a58c0be0ee6959cc7c6b3d6b | [
"MIT"
] | null | null | null | lib/regexp.ex | tlossen/elixir | 38567f7f84bfce69a58c0be0ee6959cc7c6b3d6b | [
"MIT"
] | null | null | null | % Regular expressions for Elixir built on top of the re module
% in the Erlang Standard Library. More information can be found
% on re documentation: http://www.erlang.org/doc/man/re.html
%
% Regular expressions in Elixir can be created using Regexp.new,
% Regexp.compile (check their documentation) or using the special... | 37.382716 | 97 | 0.646631 |
c8b904490dc340e8b05bab4e6a5d776a52c299f6 | 4,636 | ex | Elixir | lib/seedex.ex | kommitters/seedex | 5c9a4ce70288488724a6059930b1b31f0f9dd5ed | [
"MIT"
] | null | null | null | lib/seedex.ex | kommitters/seedex | 5c9a4ce70288488724a6059930b1b31f0f9dd5ed | [
"MIT"
] | null | null | null | lib/seedex.ex | kommitters/seedex | 5c9a4ce70288488724a6059930b1b31f0f9dd5ed | [
"MIT"
] | null | null | null | defmodule Seedex do
@moduledoc """
Functions to populate database with seed data.
"""
require Logger
@doc """
`seed/3` inserts data in the given table
## Arguments
* `module` - The module containing the Ecto schema.
* `contraints` - The fields used to idenfity a record. The record will be upda... | 29.909677 | 100 | 0.624029 |
c8b90850345a54163134585dea21759fb8ffb80e | 1,827 | ex | Elixir | backend/lib/getaways_web/resolvers/vacation.ex | Prumme/Projet_phx_ex_gql | 6324af91f94f96ee1f8403d5397ab930347e3e4f | [
"Unlicense"
] | null | null | null | backend/lib/getaways_web/resolvers/vacation.ex | Prumme/Projet_phx_ex_gql | 6324af91f94f96ee1f8403d5397ab930347e3e4f | [
"Unlicense"
] | 6 | 2020-01-31T19:44:15.000Z | 2021-09-02T04:26:49.000Z | backend/lib/getaways_web/resolvers/vacation.ex | Prumme/Projet_phx_ex_gql | 6324af91f94f96ee1f8403d5397ab930347e3e4f | [
"Unlicense"
] | null | null | null | defmodule GetawaysWeb.Resolvers.Vacation do
alias Getaways.Vacation
alias GetawaysWeb.Schema.ChangesetErrors
def place(_, %{slug: slug}, _) do
{:ok, Vacation.get_place_by_slug!(slug)}
end
def places(_, args, _) do
{:ok, Vacation.list_places(args)}
end
def create_booking(_, args, %{context: %{cu... | 24.689189 | 67 | 0.601533 |
c8b917271649476840f176095a36d06c0727aac0 | 2,506 | exs | Elixir | test/poker/besthand/same_category_best_hand_test.exs | Dogzhou/poker | 614c4ecd4edc844f003ee3cb723191e159dbacde | [
"MIT"
] | null | null | null | test/poker/besthand/same_category_best_hand_test.exs | Dogzhou/poker | 614c4ecd4edc844f003ee3cb723191e159dbacde | [
"MIT"
] | null | null | null | test/poker/besthand/same_category_best_hand_test.exs | Dogzhou/poker | 614c4ecd4edc844f003ee3cb723191e159dbacde | [
"MIT"
] | null | null | null | defmodule Poker.BestHand.SameCategoryBestHandTest do
use ExUnit.Case, async: true
alias Poker.Hand
alias Poker.BestHand.SameCategoryBestHand
test "straight_flush" do
straight_flush = Hand.init(~w(2D 3D 4D 5D 6D))
lower_straight_flush = Hand.init(~w(AS 2S 3S 4S 5S))
result = SameCategoryBestHand.fin... | 29.139535 | 78 | 0.704709 |
c8b94e83b06bf27c066ce027776db3cb71465c5f | 1,374 | ex | Elixir | lib/mix/tasks/eqc.ex | tony612/eqc_ex | c71b2b3cae6d0973ee79dd05ac8bf86fdb51bf05 | [
"BSD-3-Clause"
] | 86 | 2015-04-11T13:19:36.000Z | 2021-01-21T02:23:16.000Z | lib/mix/tasks/eqc.ex | tony612/eqc_ex | c71b2b3cae6d0973ee79dd05ac8bf86fdb51bf05 | [
"BSD-3-Clause"
] | 8 | 2015-05-25T08:10:54.000Z | 2021-09-10T12:52:04.000Z | lib/mix/tasks/eqc.ex | tony612/eqc_ex | c71b2b3cae6d0973ee79dd05ac8bf86fdb51bf05 | [
"BSD-3-Clause"
] | 14 | 2015-04-11T13:19:42.000Z | 2021-07-23T16:08:24.000Z | defmodule Mix.Tasks.Eqc do
use Mix.Task
@shortdoc "Test QuickCheck properties"
@moduledoc """
A Mix task for running QuickCheck properties. At the moment, this basically calls `mix test` with the given options.
## Options
* `--only property` - Default is to run all tests, also ExUnit tests,
but... | 27.48 | 127 | 0.642649 |
c8b959288f3c00062748e8bfdc1594a38c4b0e14 | 852 | ex | Elixir | lib/searchex/command/catalog.ex | andyl/searchex | aae186cddd14f0415b116fca198b8cc95eb2c379 | [
"MIT"
] | 91 | 2016-11-22T23:52:01.000Z | 2022-02-12T13:06:24.000Z | lib/searchex/command/catalog.ex | andyl/searchex | aae186cddd14f0415b116fca198b8cc95eb2c379 | [
"MIT"
] | 11 | 2016-11-23T17:37:57.000Z | 2018-03-07T13:40:48.000Z | lib/searchex/command/catalog.ex | andyl/searchex | aae186cddd14f0415b116fca198b8cc95eb2c379 | [
"MIT"
] | 9 | 2016-11-24T01:44:40.000Z | 2020-05-15T04:16:19.000Z | defmodule Searchex.Command.Catalog do
@moduledoc false
use Shake.Module
alias Searchex.Command.Build.Catalog
@doc """
The API for the module - takes a config name and returns
a frame with the Params and Catalog slots filled.
"""
def exec(cfg_snip) do
call(%Frame{cfg_snip: cfg_snip}, [])
end
... | 24.342857 | 79 | 0.698357 |
c8b981762595b29d027070b251f0631b392ab049 | 4,741 | ex | Elixir | lib/ueberauth/strategy/evesso/oauth.ex | lukasni/ueberauth-eve-sso | d0ebf3e37317f0482df0258a02089d0559c8995a | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/evesso/oauth.ex | lukasni/ueberauth-eve-sso | d0ebf3e37317f0482df0258a02089d0559c8995a | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/evesso/oauth.ex | lukasni/ueberauth-eve-sso | d0ebf3e37317f0482df0258a02089d0559c8995a | [
"MIT"
] | null | null | null | defmodule Ueberauth.Strategy.EVESSO.OAuth do
@moduledoc """
Implements OAuth2 for EVE SSO v2 with JWT.
Include your `client_id` and `secret_key` in your config:
```elixir
config :ueberauth, Ueberauth.Strategy.EVESSO.OAuth,
client_id: System.get_env("EVE_SSO_CLIENT_ID"),
client_secret: System.get_env... | 31.397351 | 107 | 0.67876 |
c8b996f0a5e98061a1b8b4d4d202e97d48b0bd50 | 2,420 | ex | Elixir | apps/web_api/test/support/instances_controller_case.ex | makerdao/qa_backend_gateway | 38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809 | [
"Apache-2.0"
] | 1 | 2020-10-23T19:25:27.000Z | 2020-10-23T19:25:27.000Z | apps/web_api/test/support/instances_controller_case.ex | makerdao/qa_backend_gateway | 38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809 | [
"Apache-2.0"
] | 5 | 2019-01-11T11:48:08.000Z | 2019-01-16T17:29:23.000Z | apps/web_api/test/support/instances_controller_case.ex | makerdao/qa_backend_gateway | 38e9a3f3f4b66212f1ee9d38b3b698a2a1f9a809 | [
"Apache-2.0"
] | 7 | 2019-10-09T05:49:52.000Z | 2022-03-23T16:48:45.000Z | defmodule Staxx.WebApiWeb.InstancesControllerCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data laye... | 25.744681 | 89 | 0.647107 |
c8b9e289389bb82f2d5902067094490267cf7f2a | 2,549 | ex | Elixir | lib/darknet_to_onnx/cli.ex | stefkohub/darknet_to_onnx | 1d378a4dd33452e7eba7a6174e4a13a210fa8cb6 | [
"MIT"
] | 1 | 2021-12-05T10:52:26.000Z | 2021-12-05T10:52:26.000Z | lib/darknet_to_onnx/cli.ex | stefkohub/darknet_to_onnx | 1d378a4dd33452e7eba7a6174e4a13a210fa8cb6 | [
"MIT"
] | 3 | 2021-12-17T10:12:22.000Z | 2022-02-28T12:17:21.000Z | lib/darknet_to_onnx/cli.ex | stefkohub/darknet_to_onnx | 1d378a4dd33452e7eba7a6174e4a13a210fa8cb6 | [
"MIT"
] | null | null | null | defmodule DarknetToOnnx.CLI do
def main(args) do
args |> parse_args |> do_process
end
def parse_args(args) do
optparseargs = [
aliases: [m: :model, h: :help, r: :force_raw],
strict: [model: :string, help: :boolean, force_raw: :boolean]
]
options = [force_raw: false]
{opts, args,... | 34.917808 | 237 | 0.590428 |
c8b9f71970763c28dfaf93a53f79aae9de2fbc91 | 1,501 | ex | Elixir | clients/managed_identities/lib/google_api/managed_identities/v1/model/reset_admin_password_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/managed_identities/lib/google_api/managed_identities/v1/model/reset_admin_password_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/managed_identities/lib/google_api/managed_identities/v1/model/reset_admin_password_response.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... | 31.270833 | 108 | 0.751499 |
c8ba67dc4e70bdb7f2487310179c9b991e5ed0be | 195 | exs | Elixir | priv/repo/migrations/20210314113429_add_spotify_img_url.exs | Future-Made/demand-upon-tune-web | 87c37721fb478fcd9bb655d5e4a76ca5506883d1 | [
"MIT"
] | 1 | 2021-07-09T11:57:41.000Z | 2021-07-09T11:57:41.000Z | priv/repo/migrations/20210314113429_add_spotify_img_url.exs | Future-Made/demand-upon-tune-web | 87c37721fb478fcd9bb655d5e4a76ca5506883d1 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210314113429_add_spotify_img_url.exs | Future-Made/demand-upon-tune-web | 87c37721fb478fcd9bb655d5e4a76ca5506883d1 | [
"MIT"
] | 2 | 2021-07-09T11:57:45.000Z | 2022-01-06T23:37:19.000Z | defmodule Tune.Repo.Migrations.AddSpotifyImgUrl do
use Ecto.Migration
def change do
alter table(:online_concert_demands) do
add :spotify_profile_img_url, :string
end
end
end
| 19.5 | 50 | 0.753846 |
c8ba74a51e35dcb04dfe844a913739ac75a70712 | 1,012 | ex | Elixir | lib/bio/world/registry/cache/refresher.ex | xire28/bio | c3266b551f8ac855653d6de7f13fd566f2daa549 | [
"MIT"
] | null | null | null | lib/bio/world/registry/cache/refresher.ex | xire28/bio | c3266b551f8ac855653d6de7f13fd566f2daa549 | [
"MIT"
] | null | null | null | lib/bio/world/registry/cache/refresher.ex | xire28/bio | c3266b551f8ac855653d6de7f13fd566f2daa549 | [
"MIT"
] | null | null | null | defmodule Bio.World.Registry.Cache.Refresher do
alias Bio.World
use GenServer
@interval 1000
# Client
def start_link(_) do
GenServer.start_link(__MODULE__, %{}, name: __MODULE__)
end
defp schedule_refresh() do
Process.send_after(self(), :refresh, @interval)
end
# Server (callbacks)
@i... | 19.843137 | 59 | 0.586957 |
c8ba783b825e0cf5f4c5949cab78193ea591f70c | 129 | exs | Elixir | test/iris_test.exs | bradleyd/iris | 31438c46d4fc78bbea2d387a077db43a443426b2 | [
"MIT"
] | 3 | 2020-09-06T22:07:11.000Z | 2020-12-01T12:03:14.000Z | test/iris_test.exs | bradleyd/iris | 31438c46d4fc78bbea2d387a077db43a443426b2 | [
"MIT"
] | null | null | null | test/iris_test.exs | bradleyd/iris | 31438c46d4fc78bbea2d387a077db43a443426b2 | [
"MIT"
] | null | null | null | defmodule IrisTest do
use ExUnit.Case
doctest Iris
test "greets the world" do
assert Iris.hello() == :world
end
end
| 14.333333 | 33 | 0.689922 |
c8ba7a1bac431cea0c34c295f71bb6e3ad527aa1 | 13,207 | ex | Elixir | lib/ex_doc/formatter/html/autolink.ex | Steams/ex-doc-Elm-Frontend | f7478d9eeed1f6e22649292e9c8c26aee533db09 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | lib/ex_doc/formatter/html/autolink.ex | Steams/ex-doc-Elm-Frontend | f7478d9eeed1f6e22649292e9c8c26aee533db09 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | lib/ex_doc/formatter/html/autolink.ex | Steams/ex-doc-Elm-Frontend | f7478d9eeed1f6e22649292e9c8c26aee533db09 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | defmodule ExDoc.Formatter.HTML.Autolink do
@moduledoc """
Conveniences for autolinking locals, types and more.
"""
import ExDoc.Formatter.HTML.Templates, only: [h: 1, enc_h: 1]
@elixir_docs "https://hexdocs.pm/"
@erlang_docs "http://www.erlang.org/doc/man/"
@doc """
Receives a list of module nodes an... | 33.100251 | 119 | 0.603165 |
c8ba7d0a2f7c7ad9d0c1f6b5f02e3c2ed6060187 | 2,692 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_auxiliary_table.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_auxiliary_table.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_auxiliary_table.ex | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"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... | 49.851852 | 425 | 0.774517 |
c8ba81fd1a496a563a19a4e6bf9edaa32f561ccb | 1,616 | ex | Elixir | lib/relay/tester.ex | cybrox/elixir-udp-ws-streaming-testsuite | 5718cbe3af927825668aae46ddb9aa0e2060b0dd | [
"MIT"
] | 2 | 2019-01-29T09:50:59.000Z | 2020-12-09T10:39:56.000Z | lib/relay/tester.ex | cybrox/elixir-udp-ws-streaming-testsuite | 5718cbe3af927825668aae46ddb9aa0e2060b0dd | [
"MIT"
] | null | null | null | lib/relay/tester.ex | cybrox/elixir-udp-ws-streaming-testsuite | 5718cbe3af927825668aae46ddb9aa0e2060b0dd | [
"MIT"
] | null | null | null | defmodule Relay.Tester do
use GenServer
@chars "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvxzy" |> String.split("", trim: true)
def start_link(_opts) do
GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init (:ok) do
receiver_port = get_port_from_env("RELAY_OUT")
target_port ... | 24.861538 | 94 | 0.656559 |
c8bab28f98aa746c91e17eb50a9c359161cdc9b3 | 533 | ex | Elixir | apps/podder_web/lib/podder_web/views/error_view.ex | chattes/podder_umbrella | a2662a21a067fd3f0cd02b98cb63afd958c895db | [
"MIT"
] | null | null | null | apps/podder_web/lib/podder_web/views/error_view.ex | chattes/podder_umbrella | a2662a21a067fd3f0cd02b98cb63afd958c895db | [
"MIT"
] | null | null | null | apps/podder_web/lib/podder_web/views/error_view.ex | chattes/podder_umbrella | a2662a21a067fd3f0cd02b98cb63afd958c895db | [
"MIT"
] | null | null | null | defmodule PodderWeb.ErrorView do
use PodderWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.json", _assigns) do
# %{errors: %{detail: "Internal Server Error"}}
# end
# By default, Phoenix returns the status message from
... | 31.352941 | 83 | 0.718574 |
c8bab8fce1fb067ffe793eaccb2af8821eb34f58 | 122,759 | ex | Elixir | lib/elixir/lib/enum.ex | hansihe/elixir | e5fa840b1cf9888e8a5bc53fe3bf6ba270033144 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/enum.ex | hansihe/elixir | e5fa840b1cf9888e8a5bc53fe3bf6ba270033144 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/enum.ex | hansihe/elixir | e5fa840b1cf9888e8a5bc53fe3bf6ba270033144 | [
"Apache-2.0"
] | null | null | null | defprotocol Enumerable do
@moduledoc """
Enumerable protocol used by `Enum` and `Stream` modules.
When you invoke a function in the `Enum` module, the first argument
is usually a collection that must implement this protocol.
For example, the expression `Enum.map([1, 2, 3], &(&1 * 2))`
invokes `Enumerable.r... | 28.455957 | 112 | 0.615083 |
c8bacb073664f55299aa8d8bd199e22154f30899 | 390 | exs | Elixir | test/unit/hologram/compiler/js_encoders/atom_type_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | test/unit/hologram/compiler/js_encoders/atom_type_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | test/unit/hologram/compiler/js_encoders/atom_type_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Compiler.JSEncoder.AtomTyperTest do
use Hologram.Test.UnitCase, async: true
alias Hologram.Compiler.{Context, JSEncoder, Opts}
alias Hologram.Compiler.IR.AtomType
test "encode/3" do
ir = %AtomType{value: :test}
result = JSEncoder.encode(ir, %Context{}, %Opts{})
expected = "{ ty... | 24.375 | 54 | 0.692308 |
c8bad2ff12657c604a9287909a275ed5c5c81056 | 3,700 | ex | Elixir | apps/graphql/lib/graphql/schema/legal_entities/legal_entity_merge_job_types.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/graphql/lib/graphql/schema/legal_entities/legal_entity_merge_job_types.ex | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/graphql/lib/graphql/schema/legal_entities/legal_entity_merge_job_types.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule GraphQL.Schema.LegalEntityMergeJobTypes do
@moduledoc false
use Absinthe.Schema.Notation
use Absinthe.Relay.Schema.Notation, :modern
alias Absinthe.Relay.Node.ParseIDs
alias GraphQL.Middleware.{Filtering, TransformInput}
alias GraphQL.Resolvers.LegalEntityMergeJob, as: LegalEntityMergeJobResolve... | 28.461538 | 87 | 0.695135 |
c8bb56d2d9d0fdede017fd33a1bb03b3d5e35144 | 20,507 | exs | Elixir | lib/elixir/test/elixir/module/types/pattern_test.exs | fmterrorf/elixir | eafb7b87756179adac5dc2bc11edcb04c1f187cc | [
"Apache-2.0"
] | 1 | 2019-06-27T08:47:13.000Z | 2019-06-27T08:47:13.000Z | lib/elixir/test/elixir/module/types/pattern_test.exs | fmterrorf/elixir | eafb7b87756179adac5dc2bc11edcb04c1f187cc | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/module/types/pattern_test.exs | fmterrorf/elixir | eafb7b87756179adac5dc2bc11edcb04c1f187cc | [
"Apache-2.0"
] | null | null | null | Code.require_file("type_helper.exs", __DIR__)
defmodule Module.Types.PatternTest do
use ExUnit.Case, async: true
alias Module.Types
alias Module.Types.{Unify, Pattern}
defmacrop quoted_pattern(patterns) do
quote do
{patterns, true} = unquote(Macro.escape(expand_head(patterns, true)))
Pattern... | 38.1171 | 100 | 0.476618 |
c8bb60a55fa1b0be7d003d11894001013247ba85 | 706 | ex | Elixir | lib/neo4j_sips_models/delete_method.ex | szTheory/neo4j_sips_models | 70c7ad45da4aec97dc56dcf951df878b9e801e47 | [
"MIT"
] | 8 | 2016-04-22T03:13:02.000Z | 2021-01-01T02:49:28.000Z | lib/neo4j_sips_models/delete_method.ex | szTheory/neo4j_sips_models | 70c7ad45da4aec97dc56dcf951df878b9e801e47 | [
"MIT"
] | 2 | 2016-10-06T07:20:19.000Z | 2020-03-05T02:04:52.000Z | lib/neo4j_sips_models/delete_method.ex | szTheory/neo4j_sips_models | 70c7ad45da4aec97dc56dcf951df878b9e801e47 | [
"MIT"
] | 5 | 2016-07-21T04:31:24.000Z | 2020-03-03T20:23:01.000Z | defmodule Neo4j.Sips.Models.DeleteMethod do
def generate(_metadata) do
quote do
def delete(%__MODULE__{}=model) do
cypher = """
MATCH (n) where ID(n) = #{model.id}
OPTIONAL MATCH (n)-[r]-()
DELETE n,r
"""
case Neo4j.Sips.tx_commit(Neo4j.Sips.conn, cypher) d... | 23.533333 | 64 | 0.491501 |
c8bb711647c5be097ea442370cc01454af18b883 | 754 | exs | Elixir | apps/elixir_ls_debugger/mix.exs | atdrendel/elixir-ls | 794ed49a571f7943d478ef0a87ed94ab07b30c67 | [
"Apache-2.0"
] | null | null | null | apps/elixir_ls_debugger/mix.exs | atdrendel/elixir-ls | 794ed49a571f7943d478ef0a87ed94ab07b30c67 | [
"Apache-2.0"
] | null | null | null | apps/elixir_ls_debugger/mix.exs | atdrendel/elixir-ls | 794ed49a571f7943d478ef0a87ed94ab07b30c67 | [
"Apache-2.0"
] | null | null | null | defmodule ElixirLS.Debugger.Mixfile do
use Mix.Project
def project do
[
app: :elixir_ls_debugger,
version: "0.6.5",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: ">= 1.8.0",
build_... | 22.848485 | 71 | 0.590186 |
c8bb809f5c05f2af41e60a3fd0f7da5a483f6f2c | 482 | exs | Elixir | test/parsers/png_test.exs | tchoutri/Eikon | dd5821680d969003f8bcf55dfe0fb421a644aad2 | [
"MIT"
] | 12 | 2016-05-08T21:26:23.000Z | 2021-09-06T00:57:58.000Z | test/parsers/png_test.exs | tchoutri/Eikon | dd5821680d969003f8bcf55dfe0fb421a644aad2 | [
"MIT"
] | null | null | null | test/parsers/png_test.exs | tchoutri/Eikon | dd5821680d969003f8bcf55dfe0fb421a644aad2 | [
"MIT"
] | null | null | null | defmodule Eikon.PNGTest do
alias Eikon.PNG.Parser
use ExUnit.Case
test "PNG Magic number" do
assert true == File.read!("priv/mandelbrot.png") |> Parser.magic?
assert false == File.read!("priv/foobarlol.dat") |> Parser.magic?
end
test "PNG Informations" do
assert File.read!("priv/mandelbrot.png")... | 30.125 | 77 | 0.672199 |
c8bbaeb34d65c62d770d6d5b0a7486deaaab0733 | 1,036 | ex | Elixir | lib/event_store/snapshots/snapshot_data.ex | jsmestad/eventstore | 93660ce316ca174ff4694e211a7ac420253e4dac | [
"MIT"
] | 576 | 2017-11-03T14:11:07.000Z | 2022-03-29T06:18:47.000Z | lib/event_store/snapshots/snapshot_data.ex | jsmestad/eventstore | 93660ce316ca174ff4694e211a7ac420253e4dac | [
"MIT"
] | 129 | 2017-11-08T06:10:20.000Z | 2021-09-15T16:18:14.000Z | lib/event_store/snapshots/snapshot_data.ex | jsmestad/eventstore | 93660ce316ca174ff4694e211a7ac420253e4dac | [
"MIT"
] | 118 | 2017-11-14T14:10:09.000Z | 2022-03-28T13:13:56.000Z | defmodule EventStore.Snapshots.SnapshotData do
@moduledoc """
Snapshot data.
"""
alias EventStore.Snapshots.SnapshotData
defstruct [:source_uuid, :source_version, :source_type, :data, :metadata, :created_at]
@type t :: %SnapshotData{
source_uuid: String.t(),
source_version: non_neg_in... | 26.564103 | 88 | 0.659266 |
c8bbfc8885acf2ff9e5d0fd9073123cf434d501c | 2,010 | ex | Elixir | clients/content/lib/google_api/content/v2/model/accounts_auth_info_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/accounts_auth_info_response.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v2/model/accounts_auth_info_response.ex | 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... | 40.2 | 379 | 0.746766 |
c8bc0d3c68b973639c5dad66b4b4db6d0b6b2647 | 629 | ex | Elixir | test/support/languages_helper.ex | alpcanaydin/githubist-api | 6481f8177c5b8573da2d5df52ffaff41340b25d0 | [
"MIT"
] | 33 | 2018-10-13T16:40:36.000Z | 2021-05-23T14:13:34.000Z | test/support/languages_helper.ex | 5l1v3r1/githubist-api | 6481f8177c5b8573da2d5df52ffaff41340b25d0 | [
"MIT"
] | 1 | 2018-12-23T19:59:05.000Z | 2018-12-24T18:08:00.000Z | test/support/languages_helper.ex | 5l1v3r1/githubist-api | 6481f8177c5b8573da2d5df52ffaff41340b25d0 | [
"MIT"
] | 3 | 2018-10-13T22:18:38.000Z | 2020-03-29T23:41:23.000Z | defmodule Githubist.TestSupport.LanguagesHelper do
@moduledoc """
Test helper for language related logic
"""
alias Githubist.Languages
alias Githubist.Languages.Language
@language_attrs %{
name: "Elixir",
slug: "elixir",
score: 100.0,
total_stars: 100,
total_repositories: 100,
tota... | 20.966667 | 82 | 0.691574 |
c8bc0e9a22dee8ad3d183e88eab799f6a245bc6e | 65 | ex | Elixir | events/apps/daniel_web/web/views/shared_view.ex | MrCeleryman/elixirtute | 797e3cb29a68a54728258329b49ac4ae0787cc76 | [
"MIT"
] | null | null | null | events/apps/daniel_web/web/views/shared_view.ex | MrCeleryman/elixirtute | 797e3cb29a68a54728258329b49ac4ae0787cc76 | [
"MIT"
] | null | null | null | events/apps/daniel_web/web/views/shared_view.ex | MrCeleryman/elixirtute | 797e3cb29a68a54728258329b49ac4ae0787cc76 | [
"MIT"
] | null | null | null | defmodule DanielWeb.SharedView do
use DanielWeb.Web, :view
end
| 16.25 | 34 | 0.8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.