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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1aab9f2e3cf9330755aa859427078c1088e2e3ed | 289 | ex | Elixir | web/plugs/pjax.ex | iboard/px.iboard.cc | f7df724931b977e47e60ab8cab822f69df7e77f8 | [
"MIT"
] | 2 | 2016-07-28T11:42:09.000Z | 2016-09-12T13:56:53.000Z | web/plugs/pjax.ex | iboard/px.iboard.cc | f7df724931b977e47e60ab8cab822f69df7e77f8 | [
"MIT"
] | null | null | null | web/plugs/pjax.ex | iboard/px.iboard.cc | f7df724931b977e47e60ab8cab822f69df7e77f8 | [
"MIT"
] | null | null | null | defmodule Pjax.Plugs.Pjax do
import Plug.Conn
use Phoenix.Controller
def init(default), do: default
def call(conn, default) do
use_pjax? = Enum.any?(conn.req_headers, fn(x) -> {"x-pjax", "true"} == x end)
if use_pjax?, do: conn |> put_layout(false), else: conn
end
end
| 24.083333 | 81 | 0.66436 |
1aaba96135985348e16ff96a02335b6d64f29785 | 911 | ex | Elixir | lib/mix/zam.create.link.ex | praxis-of-nines/zam-search | d58261f35a22b7fd84df83674e74d59c925461f5 | [
"MIT"
] | 11 | 2019-05-27T23:43:46.000Z | 2021-08-24T06:37:23.000Z | lib/mix/zam.create.link.ex | praxis-of-nines/zam-search | d58261f35a22b7fd84df83674e74d59c925461f5 | [
"MIT"
] | 1 | 2020-05-17T04:51:52.000Z | 2021-03-25T15:38:33.000Z | lib/mix/zam.create.link.ex | praxis-of-nines/zam-search | d58261f35a22b7fd84df83674e74d59c925461f5 | [
"MIT"
] | 2 | 2019-05-27T23:43:52.000Z | 2020-10-15T09:09:58.000Z | defmodule Mix.Tasks.Zam.Create.Link do
@moduledoc """
Create a weblink manually using the provided arguments.
## Example
iex> mix zam.create.link "TestSite: purveyors of yams" "https://yams4u.com" "Yam is great yes" "yam hotel rider yam heaven"
"""
use Mix.Task
alias Zam.Schema.{QueryWeblinks}
@... | 30.366667 | 127 | 0.673985 |
1aabbe63cf88d446e82ce316c618d973fdeb2977 | 5,800 | ex | Elixir | lib/noaa/station.ex | Quanttek/noaa_cli | c9ba3bac9c9fc552cf85e9674875062585ab9601 | [
"Apache-2.0"
] | null | null | null | lib/noaa/station.ex | Quanttek/noaa_cli | c9ba3bac9c9fc552cf85e9674875062585ab9601 | [
"Apache-2.0"
] | null | null | null | lib/noaa/station.ex | Quanttek/noaa_cli | c9ba3bac9c9fc552cf85e9674875062585ab9601 | [
"Apache-2.0"
] | null | null | null | defmodule Noaa.Station do
import Noaa.WebHandler, only: [fetch_list: 0,
decode_response: 1]
alias Noaa.XMLParser
alias Noaa.Station
require Logger
defstruct [:id, :name, :state, :latitude, :longitude]
#TODO: Refactor: Don't return partially filled station, but instead a ... | 28.712871 | 100 | 0.585172 |
1aabe6a42ae38fa4abe1b3bd3e4ccab35d0d39c0 | 1,141 | exs | Elixir | config/config.exs | h3poteto/ecs_erlang_cluster | 38270e08ef667c4b0cb00b753b7c16685f459d3c | [
"MIT"
] | 2 | 2019-01-19T07:37:01.000Z | 2022-01-03T19:15:37.000Z | config/config.exs | h3poteto/ecs_erlang_cluster | 38270e08ef667c4b0cb00b753b7c16685f459d3c | [
"MIT"
] | null | null | null | config/config.exs | h3poteto/ecs_erlang_cluster | 38270e08ef667c4b0cb00b753b7c16685f459d3c | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.806452 | 73 | 0.758983 |
1aabe8bea98c10fc76577967cf2aeea3f615350f | 3,810 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/regions.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/regions.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/regions.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... | 43.295455 | 196 | 0.653018 |
1aac0d45e2f8c85def2d7dfe9e869eee25a4ad09 | 539 | ex | Elixir | lib/is/validators/optional.ex | bydooweedoo/is | 2d6acf61b397f7297d42a83b09c1181e22cb5230 | [
"MIT"
] | 17 | 2018-06-23T11:16:17.000Z | 2021-11-17T18:28:37.000Z | lib/is/validators/optional.ex | bydooweedoo/is | 2d6acf61b397f7297d42a83b09c1181e22cb5230 | [
"MIT"
] | null | null | null | lib/is/validators/optional.ex | bydooweedoo/is | 2d6acf61b397f7297d42a83b09c1181e22cb5230 | [
"MIT"
] | 2 | 2018-10-24T20:12:54.000Z | 2019-12-25T17:45:41.000Z | defmodule Is.Validators.Optional do
@moduledoc """
Optional validator.
## Examples
iex> Is.validate(%{a: true}, :optional)
[]
iex> Is.validate(nil, :optional)
[]
iex> Is.validate(nil, optional: false)
[{:error, [], "is required"}]
"""
def validate(data, true) do
ca... | 17.387097 | 45 | 0.54731 |
1aac0eb9db3d1eca2cb8177ab05235e13eea81ca | 401 | exs | Elixir | mix.exs | nhpip/variadic-elixir | dba235f72636621ae5c85882a291fbd16070d56f | [
"MIT"
] | null | null | null | mix.exs | nhpip/variadic-elixir | dba235f72636621ae5c85882a291fbd16070d56f | [
"MIT"
] | null | null | null | mix.exs | nhpip/variadic-elixir | dba235f72636621ae5c85882a291fbd16070d56f | [
"MIT"
] | null | null | null | defmodule Variadic.MixProject do
use Mix.Project
def project do
[
app: :variadic,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[]
end
# ... | 16.708333 | 59 | 0.591022 |
1aac1495d7937a280cb2d398031dfe97eca15c62 | 2,208 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_participant.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_participant.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_participant.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... | 41.660377 | 277 | 0.740489 |
1aac18cdb2717167716422b602adb74739887be5 | 1,257 | exs | Elixir | config/prod.secret.exs | Bentheburrito/sacastats | 4ffcc165b67f03830f4fbf3516ab7ca7a90b0950 | [
"MIT"
] | null | null | null | config/prod.secret.exs | Bentheburrito/sacastats | 4ffcc165b67f03830f4fbf3516ab7ca7a90b0950 | [
"MIT"
] | 38 | 2021-07-09T06:13:30.000Z | 2022-03-30T20:22:43.000Z | config/prod.secret.exs | Bentheburrito/sacastats | 4ffcc165b67f03830f4fbf3516ab7ca7a90b0950 | [
"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... | 29.928571 | 67 | 0.721559 |
1aac2ac7a47c6b3d044a2c99e61b9c8c5e002f78 | 2,526 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/documentation_rule.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_management/lib/google_api/service_management/v1/model/documentation_rule.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_management/lib/google_api/service_management/v1/model/documentation_rule.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 47.660377 | 526 | 0.734363 |
1aac6de7637d0e304061a0dba02db6e985552f23 | 2,376 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/status.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container_analysis/lib/google_api/container_analysis/v1beta1/model/status.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... | 44.830189 | 427 | 0.725168 |
1aac7990f5b44cef04723e3b707ed9d49c40ba85 | 1,768 | exs | Elixir | test/plug_session_riak.exs | binarytemple/plug-session-riak | 12f6a24e7f2d6b3fc9a476cace7065f8b737f36e | [
"MIT"
] | null | null | null | test/plug_session_riak.exs | binarytemple/plug-session-riak | 12f6a24e7f2d6b3fc9a476cace7065f8b737f36e | [
"MIT"
] | null | null | null | test/plug_session_riak.exs | binarytemple/plug-session-riak | 12f6a24e7f2d6b3fc9a476cace7065f8b737f36e | [
"MIT"
] | null | null | null | defmodule Plug.Session.RIAK.Test do
use ExUnit.Case, async: true
use Plug.Test
defmodule AppRouter do
use Plug.Router
plug :match
plug :dispatch
get "/hello" do
conn = Plug.Conn.fetch_session( conn )
conn = Plug.Conn.put_session( conn, "foo", "bar" )
send_resp(conn, 200, "wor... | 26.38806 | 85 | 0.653281 |
1aac7ce98396f7e498746230b8ebdc71486ea384 | 1,080 | exs | Elixir | basic/mix.exs | varnit/membrane-demo | c22aefddca7719f5dc9041d2e016aec560a6ceae | [
"Apache-2.0"
] | null | null | null | basic/mix.exs | varnit/membrane-demo | c22aefddca7719f5dc9041d2e016aec560a6ceae | [
"Apache-2.0"
] | null | null | null | basic/mix.exs | varnit/membrane-demo | c22aefddca7719f5dc9041d2e016aec560a6ceae | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Demo.Basic.MixProject do
use Mix.Project
@version "0.5.0"
@github_url "https://github.com/membraneframework/membrane-demo"
def project do
[
app: :membrane_demo_basic,
version: @version,
elixir: "~> 1.7",
name: "Membrane Demo",
description: "Membrane Multime... | 26.341463 | 77 | 0.611111 |
1aac8e73eef52e4ce1ddc903c87f249726c853f1 | 8,334 | exs | Elixir | test/ecto/migrator_test.exs | timgestson/ecto | 1c1eb6d322db04cfa48a4fc81da1332e91adbc1f | [
"Apache-2.0"
] | null | null | null | test/ecto/migrator_test.exs | timgestson/ecto | 1c1eb6d322db04cfa48a4fc81da1332e91adbc1f | [
"Apache-2.0"
] | null | null | null | test/ecto/migrator_test.exs | timgestson/ecto | 1c1eb6d322db04cfa48a4fc81da1332e91adbc1f | [
"Apache-2.0"
] | null | null | null | Code.require_file "../support/mock_repo.exs", __DIR__
defmodule Ecto.MigratorTest do
use ExUnit.Case
import Support.FileHelpers
import Ecto.Migrator
alias Ecto.MockRepo
defmodule Migration do
use Ecto.Migration
def up do
execute "up"
end
def down do
execute "down"
end
en... | 28.155405 | 113 | 0.667387 |
1aacdd03ade4e28786f9b78b2574555af8a61579 | 3,720 | ex | Elixir | lib/Oracle/type.ex | epaulf/Oracledbex | 070604afb27bdc5cdfcef297e478418c9d79b307 | [
"Apache-2.0"
] | 8 | 2018-02-12T23:02:29.000Z | 2020-09-29T23:01:47.000Z | lib/Oracle/type.ex | epaulf/Oracledbex | 070604afb27bdc5cdfcef297e478418c9d79b307 | [
"Apache-2.0"
] | null | null | null | lib/Oracle/type.ex | epaulf/Oracledbex | 070604afb27bdc5cdfcef297e478418c9d79b307 | [
"Apache-2.0"
] | 3 | 2018-02-15T19:17:26.000Z | 2020-09-18T03:41:16.000Z | defmodule Oracle.Type do
@moduledoc """
Type conversions.
"""
@typedoc "Input param."
@type param :: bitstring()
| number()
| date()
| time()
| datetime()
| Decimal.t()
@typedoc "Output value."
@type return_value :: bitstring()
| integer()
| date()
| datetime()
| Deci... | 26.956522 | 86 | 0.626882 |
1aad13c0d2fddebfead30537c120c1e100f495e3 | 19,422 | ex | Elixir | lib/ecto/query/api.ex | revati/ecto | 75b4c4179724af8ae2582aa8adae21eeb111ec78 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/api.ex | revati/ecto | 75b4c4179724af8ae2582aa8adae21eeb111ec78 | [
"Apache-2.0"
] | null | null | null | lib/ecto/query/api.ex | revati/ecto | 75b4c4179724af8ae2582aa8adae21eeb111ec78 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.API do
@moduledoc """
Lists all functions allowed in the query API.
* Comparison operators: `==`, `!=`, `<=`, `>=`, `<`, `>`
* Arithmetic operators: `+`, `-`, `*`, `/`
* Boolean operators: `and`, `or`, `not`
* Inclusion operator: `in/2`
* Subquery operators: `any`, `all` an... | 30.828571 | 125 | 0.661672 |
1aad17e6bb8cb0681d007fbf0fe38e538f18c736 | 1,458 | ex | Elixir | web/web.ex | participateapp/participate-api | 35dab43fc456f7e8b8c8479195562baad881aa44 | [
"MIT"
] | 3 | 2015-01-29T19:11:05.000Z | 2015-10-19T02:12:02.000Z | web/web.ex | participateapp/participate-api | 35dab43fc456f7e8b8c8479195562baad881aa44 | [
"MIT"
] | 43 | 2015-05-31T00:28:45.000Z | 2017-02-06T20:06:19.000Z | web/web.ex | participateapp/participate-api | 35dab43fc456f7e8b8c8479195562baad881aa44 | [
"MIT"
] | 2 | 2015-07-11T14:48:04.000Z | 2015-07-13T06:51:37.000Z | defmodule ParticipateApi.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use ParticipateApi.Web, :controller
use ParticipateApi.Web, :view
The definitions below will be executed for every view,
controller, ... | 19.972603 | 61 | 0.670096 |
1aad2659ad42fa14001a7d281b51ee959c246c82 | 1,226 | exs | Elixir | mix.exs | alvinncx/ueberauth_linkedin | a91d3d2da8b13e3bfff5828a04f9489e6a9b7b36 | [
"MIT"
] | null | null | null | mix.exs | alvinncx/ueberauth_linkedin | a91d3d2da8b13e3bfff5828a04f9489e6a9b7b36 | [
"MIT"
] | null | null | null | mix.exs | alvinncx/ueberauth_linkedin | a91d3d2da8b13e3bfff5828a04f9489e6a9b7b36 | [
"MIT"
] | null | null | null | defmodule UeberauthLinkedin.Mixfile do
use Mix.Project
@url "https://github.com/fajarmf/ueberauth_linkedin"
def project do
[app: :ueberauth_linkedin,
version: "0.3.2",
name: "Ueberauth LinkedIn Strategy",
elixir: "~> 1.2",
package: package,
source_url: @url,
homepage_url: @url,... | 22.290909 | 55 | 0.600326 |
1aad295ea465c5fd8a17481c07a31d7c29234ece | 575 | ex | Elixir | apps/docker/lib/docker/container_supervisor.ex | vapordao/testchain-dockerservice | f3c3770682b2634a8d1f312ed65ab10ddaee48e7 | [
"Apache-2.0"
] | 1 | 2021-05-07T18:49:16.000Z | 2021-05-07T18:49:16.000Z | apps/docker/lib/docker/container_supervisor.ex | vapordao/testchain-dockerservice | f3c3770682b2634a8d1f312ed65ab10ddaee48e7 | [
"Apache-2.0"
] | null | null | null | apps/docker/lib/docker/container_supervisor.ex | vapordao/testchain-dockerservice | f3c3770682b2634a8d1f312ed65ab10ddaee48e7 | [
"Apache-2.0"
] | 5 | 2019-04-30T09:22:51.000Z | 2022-03-23T17:36:53.000Z | defmodule Docker.ContainerSupervisor do
# Automatically defines child_spec/1
use DynamicSupervisor
alias Docker.Struct.Container
def start_link(arg) do
DynamicSupervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
DynamicSupervisor.init(strategy: :one_for_one)... | 25 | 76 | 0.751304 |
1aad30e9bc404e2b04fa74f47b09351c6557eceb | 2,151 | exs | Elixir | test/groupher_server_web/mutation/cms/articles/meetup_emotion_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | test/groupher_server_web/mutation/cms/articles/meetup_emotion_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | test/groupher_server_web/mutation/cms/articles/meetup_emotion_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Test.Mutation.Articles.MeetupEmotion do
use GroupherServer.TestTools
alias GroupherServer.CMS
setup do
{:ok, user} = db_insert(:user)
{:ok, community} = db_insert(:community)
meetup_attrs = mock_attrs(:meetup, %{community_id: community.id})
guest_conn = simu_conn(:gues... | 29.067568 | 98 | 0.619712 |
1aad7bd3762dba3a0e6d86a05b5da908312f0c91 | 1,346 | exs | Elixir | config/config.exs | szTheory/neo4j_sips | 1d455fa98d9aaef9fa12d49b380d8a74c7e60903 | [
"MIT"
] | 90 | 2015-10-12T17:57:11.000Z | 2021-04-26T06:29:00.000Z | config/config.exs | szTheory/neo4j_sips | 1d455fa98d9aaef9fa12d49b380d8a74c7e60903 | [
"MIT"
] | 23 | 2015-12-04T01:56:03.000Z | 2019-10-08T23:23:37.000Z | config/config.exs | szTheory/neo4j_sips | 1d455fa98d9aaef9fa12d49b380d8a74c7e60903 | [
"MIT"
] | 36 | 2016-01-06T16:07:56.000Z | 2021-02-18T09:29:48.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.378378 | 74 | 0.712481 |
1aad8be07d853fa97032a0796f4708129c06186e | 3,411 | ex | Elixir | lib/openmaize/remember.ex | elixircnx/sanction | 5b270fd6eef980d37c06429271f64ec14e0f622d | [
"BSD-3-Clause"
] | 130 | 2016-06-21T07:58:46.000Z | 2022-01-01T21:45:23.000Z | lib/openmaize/remember.ex | elixircnx/sanction | 5b270fd6eef980d37c06429271f64ec14e0f622d | [
"BSD-3-Clause"
] | 50 | 2016-06-29T16:01:42.000Z | 2019-08-07T21:33:49.000Z | lib/openmaize/remember.ex | elixircnx/sanction | 5b270fd6eef980d37c06429271f64ec14e0f622d | [
"BSD-3-Clause"
] | 20 | 2016-07-02T11:37:33.000Z | 2018-10-26T19:12:41.000Z | defmodule Openmaize.Remember do
@moduledoc """
Module to help authenticate users who have persistent (remember me)
access enabled.
This needs to be run after `plug Openmaize.Authenticate`.
This Plug checks for a `remember_me` cookie, and if the current_user
is not set, authenticate the user using this coo... | 32.798077 | 85 | 0.708297 |
1aad9a512484796cdcad0f6577360cc551cfb70e | 5,720 | ex | Elixir | lib/credo/code/interpolation_helper.ex | jlgeering/credo | b952190ed758c262aa0d9bbee01227f9b1f0c63b | [
"MIT"
] | null | null | null | lib/credo/code/interpolation_helper.ex | jlgeering/credo | b952190ed758c262aa0d9bbee01227f9b1f0c63b | [
"MIT"
] | null | null | null | lib/credo/code/interpolation_helper.ex | jlgeering/credo | b952190ed758c262aa0d9bbee01227f9b1f0c63b | [
"MIT"
] | null | null | null | defmodule Credo.Code.InterpolationHelper do
@moduledoc false
alias Credo.Code.Token
@doc false
def replace_interpolations(source, char \\ " ") do
positions = interpolation_positions(source)
lines = String.split(source, "\n")
positions
|> Enum.reverse()
|> Enum.reduce(lines, &replace_line(... | 26.481481 | 88 | 0.625 |
1aada46e116f28694ac3346c1a0ab42431c15d84 | 587 | exs | Elixir | elixir/mix.exs | duianto/name-normalizer | f2d973b3b1bf1ff342a30d45ac8b8232316ad079 | [
"MIT"
] | 21 | 2018-01-29T20:43:40.000Z | 2021-07-30T20:11:48.000Z | elixir/mix.exs | duianto/name-normalizer | f2d973b3b1bf1ff342a30d45ac8b8232316ad079 | [
"MIT"
] | 13 | 2018-02-06T02:35:06.000Z | 2021-07-29T18:55:30.000Z | elixir/mix.exs | duianto/name-normalizer | f2d973b3b1bf1ff342a30d45ac8b8232316ad079 | [
"MIT"
] | 14 | 2018-02-01T23:11:55.000Z | 2021-07-29T18:30:44.000Z | defmodule NameNormalizer.MixProject do
use Mix.Project
def project do
[
app: :name_normalizer,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[... | 20.241379 | 87 | 0.587734 |
1aadb49c55de4bdc9206757630213a4387e13274 | 1,638 | ex | Elixir | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/dsse_attestation_note.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/dsse_attestation_note.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/container_analysis/lib/google_api/container_analysis/v1alpha1/model/dsse_attestation_note.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... | 34.851064 | 158 | 0.761294 |
1aadb84e049b40b8cbe9abd1b19367f312ee096e | 933 | ex | Elixir | lib/plaid/asset_report/item.ex | ethangunderson/elixir-plaid | 53aa0a87a4a837df6a2d15684870e7a58a003db6 | [
"MIT"
] | 16 | 2021-03-09T02:29:32.000Z | 2022-03-13T07:18:03.000Z | lib/plaid/asset_report/item.ex | ethangunderson/elixir-plaid | 53aa0a87a4a837df6a2d15684870e7a58a003db6 | [
"MIT"
] | 5 | 2021-04-24T20:38:14.000Z | 2022-03-19T22:03:09.000Z | lib/plaid/asset_report/item.ex | ethangunderson/elixir-plaid | 53aa0a87a4a837df6a2d15684870e7a58a003db6 | [
"MIT"
] | 2 | 2021-06-11T02:15:01.000Z | 2022-03-15T18:39:59.000Z | defmodule Plaid.AssetReport.Report.Item do
@moduledoc """
[Plaid Asset Report Item schema](https://plaid.com/docs/api/products/#asset_report-get-response-items)
"""
@behaviour Plaid.Castable
alias Plaid.Account
alias Plaid.Castable
@type t :: %__MODULE__{
item_id: String.t(),
instit... | 24.552632 | 104 | 0.660236 |
1aadd2a8271faf012b4d69007f8a60d5ad64d0f9 | 1,044 | exs | Elixir | mix.exs | tesseract-libs/tesseract-ext | 8b7e050a7eee4b6ba9a3ce4c9f398bbb8771fdbb | [
"MIT"
] | null | null | null | mix.exs | tesseract-libs/tesseract-ext | 8b7e050a7eee4b6ba9a3ce4c9f398bbb8771fdbb | [
"MIT"
] | null | null | null | mix.exs | tesseract-libs/tesseract-ext | 8b7e050a7eee4b6ba9a3ce4c9f398bbb8771fdbb | [
"MIT"
] | null | null | null | defmodule TesseractExt.MixProject do
use Mix.Project
def project do
[
app: :tesseract_ext,
version: "0.1.3",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
source_url: "https://github.com/tesse... | 21.75 | 72 | 0.573755 |
1aae158f995cd9e3dd1ad2cbd337cffb088b352f | 3,545 | ex | Elixir | clients/content/lib/google_api/content/v21/model/repricing_rule_eligible_offer_matcher.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/repricing_rule_eligible_offer_matcher.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/v21/model/repricing_rule_eligible_offer_matcher.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... | 49.236111 | 609 | 0.758533 |
1aae255914696a027cdf44e420b804e63bb34112 | 9,986 | ex | Elixir | lib/tailwind.ex | easink/tailwind | 578a0db670b3b5c91331ecd63867a74a0bf6fef4 | [
"MIT"
] | null | null | null | lib/tailwind.ex | easink/tailwind | 578a0db670b3b5c91331ecd63867a74a0bf6fef4 | [
"MIT"
] | null | null | null | lib/tailwind.ex | easink/tailwind | 578a0db670b3b5c91331ecd63867a74a0bf6fef4 | [
"MIT"
] | null | null | null | defmodule Tailwind do
# https://github.com/tailwindlabs/tailwindcss/releases
@latest_version "3.0.12"
@moduledoc """
Tailwind is an installer and runner for [tailwind](https://tailwind.github.io).
## Profiles
You can define multiple tailwind profiles. By default, there is a
profile called `:default` wh... | 28.695402 | 105 | 0.62868 |
1aae437a38bd2fb0ab5cd08115064a35d9bb187d | 5,180 | ex | Elixir | lib/new_relic/statman.ex | SalesLoft/newrelic.ex | e4e940420a732116073498d71630dbc74b894375 | [
"MIT"
] | null | null | null | lib/new_relic/statman.ex | SalesLoft/newrelic.ex | e4e940420a732116073498d71630dbc74b894375 | [
"MIT"
] | 1 | 2019-08-14T14:59:59.000Z | 2019-08-14T14:59:59.000Z | lib/new_relic/statman.ex | SalesLoft/newrelic.ex | e4e940420a732116073498d71630dbc74b894375 | [
"MIT"
] | null | null | null | defmodule NewRelic.Statman do
def poll do
[end_time, start_time, metrics, errors] = NewRelic.Collector.poll
transform_aggregated_metrics(metrics, errors, {start_time, end_time})
end
def transform_aggregated_metrics(metrics, errors, time) do
ms = metrics
|> Map.to_list
|> Enum.flat_map(fn(... | 28.777778 | 109 | 0.566409 |
1aae52db2d60746c79a0658d91b882a4696ea8b3 | 3,914 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/job_spec.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/job_spec.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/job_spec.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... | 63.129032 | 500 | 0.743485 |
1aae53dfa7a7023429fd5f68cd4722a68fb7110e | 251 | ex | Elixir | lib/todo_api.ex | Thrasolt/todo-api | 2ad53cbb68c1429fa248cc13da456225cd241602 | [
"Unlicense"
] | 1 | 2020-11-12T08:26:51.000Z | 2020-11-12T08:26:51.000Z | lib/todo_api.ex | westrik/todo-ex | 6ab0c61b91d3e76239e77e988e51aa0b06f30408 | [
"MIT"
] | 2 | 2021-03-09T14:57:40.000Z | 2021-05-10T08:05:24.000Z | lib/todo_api.ex | westrik/todo-ex | 6ab0c61b91d3e76239e77e988e51aa0b06f30408 | [
"MIT"
] | null | null | null | defmodule TodoApi do
@moduledoc """
TodoApi 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
| 25.1 | 66 | 0.752988 |
1aae7c53b6cf6e87dd5811b29b457d03e81929f7 | 1,643 | exs | Elixir | mix.exs | PeerRails/phkite | aeb46305e57ed42513e165d10048b3044c43e3cf | [
"MIT"
] | null | null | null | mix.exs | PeerRails/phkite | aeb46305e57ed42513e165d10048b3044c43e3cf | [
"MIT"
] | null | null | null | mix.exs | PeerRails/phkite | aeb46305e57ed42513e165d10048b3044c43e3cf | [
"MIT"
] | null | null | null | defmodule Phkite.Mixfile do
use Mix.Project
def project do
[app: :phkite,
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,
aliases:... | 29.872727 | 89 | 0.601339 |
1aae89bbb25d682364e7bca758122e3aee0711a0 | 850 | ex | Elixir | test/support/functional_case_helpers.ex | carterbryden/sshkit.ex | 871a8d29393e33406f541cf72d94eee9c22b5993 | [
"MIT"
] | 112 | 2017-01-26T14:03:49.000Z | 2022-02-23T18:36:23.000Z | test/support/functional_case_helpers.ex | carterbryden/sshkit.ex | 871a8d29393e33406f541cf72d94eee9c22b5993 | [
"MIT"
] | 129 | 2017-01-26T14:04:31.000Z | 2021-12-09T13:25:50.000Z | test/support/functional_case_helpers.ex | carterbryden/sshkit.ex | 871a8d29393e33406f541cf72d94eee9c22b5993 | [
"MIT"
] | 15 | 2017-03-09T17:11:33.000Z | 2021-11-25T10:47:03.000Z | defmodule SSHKit.FunctionalCaseHelpers do
@moduledoc false
def exec!(_host = %{id: id}, command, args \\ []) do
Docker.exec!([], id, command, args)
end
def adduser!(host, username) do
exec!(host, "adduser", ["-D", username])
end
def addgroup!(host, groupname) do
exec!(host, "addgroup", [group... | 28.333333 | 108 | 0.616471 |
1aae90032bab281892eaf1aeae2b8ead32bb5f1a | 141 | exs | Elixir | test/ricoping_test.exs | efcasado/ricoping | 1cad8edcfba66e4303390b40e7fb05a9fc8887fa | [
"Unlicense",
"MIT"
] | 1 | 2018-03-15T15:18:38.000Z | 2018-03-15T15:18:38.000Z | test/ricoping_test.exs | efcasado/rico_ping | 1cad8edcfba66e4303390b40e7fb05a9fc8887fa | [
"MIT",
"Unlicense"
] | null | null | null | test/ricoping_test.exs | efcasado/rico_ping | 1cad8edcfba66e4303390b40e7fb05a9fc8887fa | [
"MIT",
"Unlicense"
] | null | null | null | defmodule RicopingTest do
use ExUnit.Case
doctest Ricoping
test "greets the world" do
assert Ricoping.hello() == :world
end
end
| 15.666667 | 37 | 0.716312 |
1aaea5b2b00ff5f6812e3351d4ec5b8843ecc589 | 1,270 | ex | Elixir | lib/tentacat/projects.ex | hi-rustin/tentacat | be0b4a671f90faab2598b6d58a691d506f46cfb5 | [
"MIT"
] | 432 | 2015-01-19T20:38:35.000Z | 2022-01-11T14:32:28.000Z | lib/tentacat/projects.ex | hi-rustin/tentacat | be0b4a671f90faab2598b6d58a691d506f46cfb5 | [
"MIT"
] | 183 | 2015-01-19T08:55:29.000Z | 2022-03-01T20:26:03.000Z | lib/tentacat/projects.ex | hi-rustin/tentacat | be0b4a671f90faab2598b6d58a691d506f46cfb5 | [
"MIT"
] | 189 | 2015-01-04T14:56:59.000Z | 2021-12-14T20:48:18.000Z | defmodule Tentacat.Projects do
import Tentacat, [:except, :delete, 2]
alias Tentacat.Client
@doc """
Get a single `project`.
## Example
Tentacat.Projects.find client, 12345
More info at: https://developer.github.com/v3/projects/#get-a-project
"""
@spec find(Client.t(), binary) :: Tentacat.resp... | 23.090909 | 74 | 0.653543 |
1aaea76009a7214f14c65648254b1548c6af794b | 881 | ex | Elixir | test/support/conn_case.ex | kerlak/color_wars_server | a1f069eb110dcae3c519e4b85d64b5d13b9ffc4e | [
"MIT"
] | 1 | 2020-04-21T10:38:14.000Z | 2020-04-21T10:38:14.000Z | test/support/conn_case.ex | kerlak/color_wars_server | a1f069eb110dcae3c519e4b85d64b5d13b9ffc4e | [
"MIT"
] | null | null | null | test/support/conn_case.ex | kerlak/color_wars_server | a1f069eb110dcae3c519e4b85d64b5d13b9ffc4e | [
"MIT"
] | null | null | null | defmodule ColorWarsWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if t... | 25.171429 | 58 | 0.730988 |
1aaeb93d93454d1b3769c7f9604a4a46a54e8980 | 1,040 | ex | Elixir | test/support/conn_case.ex | sean-clayton/taskr | e56ac59662fb8c246803a36ebe288f55a4a0cbf9 | [
"0BSD"
] | null | null | null | test/support/conn_case.ex | sean-clayton/taskr | e56ac59662fb8c246803a36ebe288f55a4a0cbf9 | [
"0BSD"
] | null | null | null | test/support/conn_case.ex | sean-clayton/taskr | e56ac59662fb8c246803a36ebe288f55a4a0cbf9 | [
"0BSD"
] | null | null | null | defmodule TaskrWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the ... | 26.666667 | 67 | 0.715385 |
1aaec62c19e417cdcf2bd8c22032d21d9c4fe542 | 1,313 | ex | Elixir | lib/kerbal_maps_web/endpoint.ex | CraigCottingham/ksp-maps | ffd81c5e667cf6ca7770e717c736e51489c0c3d3 | [
"Apache-2.0"
] | 6 | 2019-01-25T12:07:43.000Z | 2021-09-09T20:31:39.000Z | lib/kerbal_maps_web/endpoint.ex | CraigCottingham/ksp-maps | ffd81c5e667cf6ca7770e717c736e51489c0c3d3 | [
"Apache-2.0"
] | 144 | 2019-01-26T02:20:07.000Z | 2021-07-21T06:28:23.000Z | lib/kerbal_maps_web/endpoint.ex | CraigCottingham/ksp-maps | ffd81c5e667cf6ca7770e717c736e51489c0c3d3 | [
"Apache-2.0"
] | 2 | 2019-07-31T21:11:00.000Z | 2020-04-15T19:51:14.000Z | defmodule KerbalMapsWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :kerbal_maps
socket "/socket", KerbalMapsWeb.UserSocket,
websocket: true,
longpoll: false
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.digest
# when deploying ... | 26.795918 | 69 | 0.719726 |
1aaee4a144feeff334a846a9ba1c42efa5aed4f4 | 463 | exs | Elixir | exercises/clock/clock.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | 1 | 2021-08-16T20:24:14.000Z | 2021-08-16T20:24:14.000Z | exercises/clock/clock.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | null | null | null | exercises/clock/clock.exs | jerith/elixir | 9a3f2a2fbee26a7b6a6b3ad74a9e6d1ff2495ed4 | [
"Apache-2.0"
] | 1 | 2018-07-19T23:43:56.000Z | 2018-07-19T23:43:56.000Z | defmodule Clock do
defstruct hour: 0, minute: 0
@doc """
Returns a string representation of a clock:
iex> Clock.new(8, 9) |> to_string
"08:09"
"""
@spec new(integer, integer) :: Clock
def new(hour, minute) do
end
@doc """
Adds two clock times:
iex> Clock.add(10, 0) |> Clock.add(3... | 19.291667 | 60 | 0.600432 |
1aaf0e26666afb8ee29e535d4b1433e6bbc6c82d | 88 | ex | Elixir | lib/elixir_google_scraper_web/views/keyword_view.ex | junan/elixir_google_scraper | d032f3a9d5a30e354f1e6d607434670334936630 | [
"MIT"
] | null | null | null | lib/elixir_google_scraper_web/views/keyword_view.ex | junan/elixir_google_scraper | d032f3a9d5a30e354f1e6d607434670334936630 | [
"MIT"
] | 25 | 2021-05-21T02:23:37.000Z | 2021-07-09T09:22:32.000Z | lib/elixir_google_scraper_web/views/keyword_view.ex | junan/elixir_google_scraper | d032f3a9d5a30e354f1e6d607434670334936630 | [
"MIT"
] | null | null | null | defmodule ElixirGoogleScraperWeb.KeywordView do
use ElixirGoogleScraperWeb, :view
end
| 22 | 47 | 0.863636 |
1aaf1aea2f5c90da3a26c870a130d878bfe041fe | 78 | exs | Elixir | config/config.exs | aitorlb/elixir_http_api | c8222902bafa971efa4aacc4a58a3d596a83e95c | [
"MIT"
] | null | null | null | config/config.exs | aitorlb/elixir_http_api | c8222902bafa971efa4aacc4a58a3d596a83e95c | [
"MIT"
] | null | null | null | config/config.exs | aitorlb/elixir_http_api | c8222902bafa971efa4aacc4a58a3d596a83e95c | [
"MIT"
] | null | null | null | import Config
config :http_api, port: 4000
import_config "#{Mix.env()}.exs"
| 13 | 32 | 0.717949 |
1aaf294f8cd826082d554ffd25b909ac9062c177 | 2,126 | ex | Elixir | lib/fixtures/time.ex | IanLuites/fixtures | f7fa066e35efd4cf2c05cebad49853f8f7cc6a9e | [
"MIT"
] | 1 | 2020-01-12T03:40:33.000Z | 2020-01-12T03:40:33.000Z | lib/fixtures/time.ex | IanLuites/fixtures | f7fa066e35efd4cf2c05cebad49853f8f7cc6a9e | [
"MIT"
] | null | null | null | lib/fixtures/time.ex | IanLuites/fixtures | f7fa066e35efd4cf2c05cebad49853f8f7cc6a9e | [
"MIT"
] | null | null | null | defmodule Fixtures.Time do
@moduledoc ~S"""
Time and date related generators.
"""
use Fixtures.Helper
@doc ~S"""
Generate a random date of birth up to a 100 years old.
## Options
- `:age` the following value formats are accepted:
- `from..to` a date of birth for someone with an age between from a... | 25.614458 | 89 | 0.544685 |
1aaf3d0af662282b8f83bfe6afe5421e653f8c4e | 1,060 | exs | Elixir | mix.exs | wojtekmach/kino | 9e12f949659ac1efa151659bec4753d76c29124f | [
"Apache-2.0"
] | null | null | null | mix.exs | wojtekmach/kino | 9e12f949659ac1efa151659bec4753d76c29124f | [
"Apache-2.0"
] | null | null | null | mix.exs | wojtekmach/kino | 9e12f949659ac1efa151659bec4753d76c29124f | [
"Apache-2.0"
] | null | null | null | defmodule Kino.MixProject do
use Mix.Project
@version "0.1.1"
@description "Interactive widgets for Livebook"
def project do
[
app: :kino,
version: @version,
description: @description,
name: "Kino",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: dep... | 18.596491 | 55 | 0.522642 |
1aaf5dc03ba8288c0149b1e3d09412c0f512d4a4 | 2,216 | ex | Elixir | lib/banchan_web/live/studio_live/new.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | lib/banchan_web/live/studio_live/new.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | lib/banchan_web/live/studio_live/new.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | defmodule BanchanWeb.StudioLive.New do
@moduledoc """
New studio creation page.
"""
use BanchanWeb, :surface_view
import Slug
alias Surface.Components.Form
alias Banchan.Studios
alias Banchan.Studios.Studio
alias BanchanWeb.Components.Form.{Submit, TextArea, TextInput}
alias BanchanWeb.Components... | 27.358025 | 97 | 0.594765 |
1aaf613d9b7a7fe4fa19ed0839c7e5bdb4c9961d | 1,309 | ex | Elixir | clients/vm_migration/lib/google_api/vm_migration/v1/model/add_group_migration_response.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/vm_migration/lib/google_api/vm_migration/v1/model/add_group_migration_response.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/vm_migration/lib/google_api/vm_migration/v1/model/add_group_migration_response.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.166667 | 88 | 0.770053 |
1aaf83491280c1b8b7d27cb7585bf31d4d46add5 | 150 | ex | Elixir | lib/exshome_player/events/player_file_end.ex | exshome/exshome | ef6b7a89f11dcd2016856dd49517b74aeebb6513 | [
"MIT"
] | 2 | 2021-12-21T16:32:56.000Z | 2022-02-22T17:06:39.000Z | lib/exshome_player/events/player_file_end.ex | exshome/exshome | ef6b7a89f11dcd2016856dd49517b74aeebb6513 | [
"MIT"
] | null | null | null | lib/exshome_player/events/player_file_end.ex | exshome/exshome | ef6b7a89f11dcd2016856dd49517b74aeebb6513 | [
"MIT"
] | null | null | null | defmodule ExshomePlayer.Events.PlayerFileEnd do
@moduledoc """
Shows that file has ended.
"""
use Exshome.Event, name: "player_file_end"
end
| 18.75 | 47 | 0.733333 |
1aaf992e6b1f3471c7c87805c44500860d8c98b6 | 2,499 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/billing.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/billing.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/billing.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 47.150943 | 660 | 0.739896 |
1aafc7a59fbc112c17e8312580ae4f543d9b3169 | 1,849 | ex | Elixir | lib/elixir_sense/server/request_handler.ex | J3RN/elixir_sense | 0e978dcfbf0a0602743917e3e71dfa40bf7467cf | [
"MIT",
"Unlicense"
] | null | null | null | lib/elixir_sense/server/request_handler.ex | J3RN/elixir_sense | 0e978dcfbf0a0602743917e3e71dfa40bf7467cf | [
"MIT",
"Unlicense"
] | null | null | null | lib/elixir_sense/server/request_handler.ex | J3RN/elixir_sense | 0e978dcfbf0a0602743917e3e71dfa40bf7467cf | [
"MIT",
"Unlicense"
] | null | null | null | defmodule ElixirSense.Server.RequestHandler do
@moduledoc """
Handles all requests received by the TCP Server and maps those requests to ElixirSense API calls.
"""
alias ElixirSense.Server.ContextLoader
def handle_request("signature", %{"buffer" => buffer, "line" => line, "column" => column}) do
ElixirS... | 29.349206 | 99 | 0.658734 |
1aafcc0039ebfe90289bd0777896e3004cc5cf7f | 1,242 | exs | Elixir | mix.exs | pmusyoki/ueberauth_microsoft | 066b4d736c479102f1ec1cfb1c745baadfb9423e | [
"MIT"
] | null | null | null | mix.exs | pmusyoki/ueberauth_microsoft | 066b4d736c479102f1ec1cfb1c745baadfb9423e | [
"MIT"
] | null | null | null | mix.exs | pmusyoki/ueberauth_microsoft | 066b4d736c479102f1ec1cfb1c745baadfb9423e | [
"MIT"
] | null | null | null | defmodule UeberauthMicrosoft.Mixfile do
use Mix.Project
def project do
[
app: :ueberauth_microsoft,
version: "0.8.0",
elixir: "~> 1.10",
description: description(),
package: package(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps:... | 22.581818 | 79 | 0.596618 |
1aafd0f49c650547ca7575b12192f8ff88372c69 | 737 | exs | Elixir | bench/create.exs | tinfoil/libgraph | 1b8fb6c2d29239af9058c487bc5d6298d8bb07ad | [
"MIT"
] | 366 | 2017-06-03T23:10:04.000Z | 2022-03-22T12:26:38.000Z | bench/create.exs | tinfoil/libgraph | 1b8fb6c2d29239af9058c487bc5d6298d8bb07ad | [
"MIT"
] | 50 | 2017-07-14T17:55:53.000Z | 2022-03-11T07:40:31.000Z | bench/create.exs | tinfoil/libgraph | 1b8fb6c2d29239af9058c487bc5d6298d8bb07ad | [
"MIT"
] | 64 | 2017-07-29T07:01:42.000Z | 2022-03-20T12:07:55.000Z | opts = %{
time: 10,
inputs: %{
"1M vertices, 500k edges" => 1_000_000,
"100k vertices, 50k edges" => 100_000,
"10k vertices, 5k edges" => 10_000
}
}
Benchee.run(opts, %{
"digraph" => fn size ->
dg = :digraph.new
for i <- 1..size, do: :digraph.add_vertex(dg, %{num: i})
for... | 28.346154 | 93 | 0.468114 |
1ab02423c5299bd17332491b89a5ad29ceeaebc2 | 708 | exs | Elixir | config/docs.exs | curator-ex/curator_confirmable | 8b9a000cad58f48987d6fe261b7bfa3c5af1bfbf | [
"MIT"
] | null | null | null | config/docs.exs | curator-ex/curator_confirmable | 8b9a000cad58f48987d6fe261b7bfa3c5af1bfbf | [
"MIT"
] | null | null | null | config/docs.exs | curator-ex/curator_confirmable | 8b9a000cad58f48987d6fe261b7bfa3c5af1bfbf | [
"MIT"
] | null | null | null | use Mix.Config
config :guardian, Guardian,
issuer: "MyApp",
ttl: { 1, :days },
verify_issuer: true,
secret_key: "woiuerojksldkjoierwoiejrlskjdf",
serializer: CuratorConfirmable.TestGuardianSerializer
# config :curator_confirmable, CuratorConfirmable,
# repo: CuratorConfirmable.Test.Repo,
# use... | 29.5 | 73 | 0.738701 |
1ab02d656d0b144a990a1147f11a87f290f1f16d | 1,638 | exs | Elixir | test/deque_test.exs | defacedvr/deque | 49076ecb0ea6283577edcb008cdf185dfb4a3f54 | [
"MIT"
] | 61 | 2017-09-21T05:56:48.000Z | 2020-03-10T11:43:19.000Z | test/deque_test.exs | defacedvr/deque | 49076ecb0ea6283577edcb008cdf185dfb4a3f54 | [
"MIT"
] | 3 | 2018-05-26T07:02:33.000Z | 2019-06-21T19:48:00.000Z | test/deque_test.exs | defacedvr/deque | 49076ecb0ea6283577edcb008cdf185dfb4a3f54 | [
"MIT"
] | 11 | 2017-09-21T05:56:52.000Z | 2019-11-23T13:37:13.000Z | defmodule DequeTest do
use ExUnit.Case
test "new" do
deque = Deque.new(5)
assert deque.size == 0
assert deque.max_size == 5
end
test "append/appendleft/pop/popleft" do
deque = Enum.reduce(1..6, Deque.new(5), &Deque.append(&2, &1))
assert deque.list1 == [2, 3, 4, 5]
assert deque.list2 =... | 27.3 | 82 | 0.598291 |
1ab03dd9057c57912e7a20cd1ffefe42e8989a8c | 6,171 | ex | Elixir | bidding_poc/lib/bidding_poc_web/channels/auction_channel.ex | KeenMate/phoenix-websocket-auction | 412148ad5621b511c0690b9395f4b6c9ce3a3352 | [
"MIT"
] | null | null | null | bidding_poc/lib/bidding_poc_web/channels/auction_channel.ex | KeenMate/phoenix-websocket-auction | 412148ad5621b511c0690b9395f4b6c9ce3a3352 | [
"MIT"
] | null | null | null | bidding_poc/lib/bidding_poc_web/channels/auction_channel.ex | KeenMate/phoenix-websocket-auction | 412148ad5621b511c0690b9395f4b6c9ce3a3352 | [
"MIT"
] | null | null | null | defmodule BiddingPocWeb.AuctionChannel do
use BiddingPocWeb, :channel
require Logger
import BiddingPocWeb.SocketHelpers
alias BiddingPoc.Database.{AuctionItem, AuctionBid, UserInAuction}
alias BiddingPoc.{AuctionManager}
alias BiddingPoc.AuctionPublisher
alias BiddingPoc.UserStoreAgent
@impl true
... | 26.371795 | 96 | 0.649814 |
1ab04d616de993ad60792866cf99caffcbaade92 | 622 | ex | Elixir | lib/reddit_wrapper/common/body_formatter.ex | barons03/reddit_wrapper | a696a6f99ce0f0c6a64dcd86b76fa3d68efee6df | [
"MIT"
] | 1 | 2018-11-26T21:40:40.000Z | 2018-11-26T21:40:40.000Z | lib/reddit_wrapper/common/body_formatter.ex | barons03/reddit_wrapper | a696a6f99ce0f0c6a64dcd86b76fa3d68efee6df | [
"MIT"
] | null | null | null | lib/reddit_wrapper/common/body_formatter.ex | barons03/reddit_wrapper | a696a6f99ce0f0c6a64dcd86b76fa3d68efee6df | [
"MIT"
] | null | null | null | defmodule RedditWrapper.Common.BodyFormatter do
def get_body(%HTTPoison.Response{} = response) do
response.body
end
def format_data(body) do
body.data
end
def format_children(body) do
format_data(body).children
end
def format_children_data(body) do
format_children(body)
|> Enum.map(... | 19.4375 | 64 | 0.684887 |
1ab054020239a5de444bb4e66a241649fc47cfa4 | 339 | ex | Elixir | dev/cldr_backend.ex | kianmeng/cldr | d0510a55b5406e4604d8823a98ff6b6aea2bb397 | [
"Apache-2.0"
] | null | null | null | dev/cldr_backend.ex | kianmeng/cldr | d0510a55b5406e4604d8823a98ff6b6aea2bb397 | [
"Apache-2.0"
] | null | null | null | dev/cldr_backend.ex | kianmeng/cldr | d0510a55b5406e4604d8823a98ff6b6aea2bb397 | [
"Apache-2.0"
] | null | null | null | require Cldr.Backend
require Cldr.Locale.Loader
defmodule MyApp.Cldr do
use Cldr,
gettext: MyApp.Gettext,
locales: ["en", "de", "ja", "en-AU", "th", "ar", "pl", "doi", "fr-CA", "nb", "no"],
generate_docs: true,
providers: []
def for_dialyzer do
Cldr.put_locale("en")
Cldr.put_locale(:... | 17.842105 | 87 | 0.59587 |
1ab05517d071f089a12962ba18939ab21ae25c56 | 224 | exs | Elixir | examples/demo/priv/repo/migrations/20170313083445_jobs_table.exs | mbuhot/farq | d9ec81c518f38f9194dd6162a8ffed562481635f | [
"MIT"
] | null | null | null | examples/demo/priv/repo/migrations/20170313083445_jobs_table.exs | mbuhot/farq | d9ec81c518f38f9194dd6162a8ffed562481635f | [
"MIT"
] | null | null | null | examples/demo/priv/repo/migrations/20170313083445_jobs_table.exs | mbuhot/farq | d9ec81c518f38f9194dd6162a8ffed562481635f | [
"MIT"
] | null | null | null | defmodule Demo.Repo.Migrations.JobsTable do
use Ecto.Migration
def change do
create table(:jobs) do
add :data, :map, null: false
add :in_progress, :boolean, default: false, null: false
end
end
end
| 20.363636 | 61 | 0.678571 |
1ab06149506565e2574d093d2d654728c65f40c5 | 707 | exs | Elixir | exercises/02-higher-order-functions/01-first-class-functions/08-closures-2/tests.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 1 | 2021-09-22T09:52:11.000Z | 2021-09-22T09:52:11.000Z | exercises/02-higher-order-functions/01-first-class-functions/08-closures-2/tests.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 22 | 2019-06-19T18:58:13.000Z | 2020-03-16T14:43:06.000Z | exercises/02-higher-order-functions/01-first-class-functions/08-closures-2/tests.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 32 | 2019-09-19T03:25:11.000Z | 2020-10-06T15:01:47.000Z | defmodule Functions do
def fixedpoint(f, x) do
y = f.(x)
if x == y, do: x, else: fixedpoint(f, y)
end
end
defmodule Setup do
@script "shared.exs"
def setup(directory \\ ".") do
path = Path.join(directory, @script)
if File.exists?(path) do
Code.require_file(path)
Shared.setup(__DI... | 19.638889 | 58 | 0.657709 |
1ab0bd690f9300353ed0106349bf2f1401c6df7d | 2,836 | ex | Elixir | clients/dns/lib/google_api/dns/v1/model/managed_zone.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dns/lib/google_api/dns/v1/model/managed_zone.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dns/lib/google_api/dns/v1/model/managed_zone.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... | 47.266667 | 259 | 0.742595 |
1ab10088ea1169a5c356caba36e406791786639f | 1,747 | ex | Elixir | lib/functions/fragment.ex | kernel-io/ash_postgres | e5b30d544f14737a9cf29eef220f1720051c3d0c | [
"MIT"
] | 13 | 2020-09-04T22:31:23.000Z | 2022-02-06T13:24:23.000Z | lib/functions/fragment.ex | kernel-io/ash_postgres | e5b30d544f14737a9cf29eef220f1720051c3d0c | [
"MIT"
] | 57 | 2019-12-04T15:23:41.000Z | 2022-02-14T22:55:16.000Z | lib/functions/fragment.ex | kernel-io/ash_postgres | e5b30d544f14737a9cf29eef220f1720051c3d0c | [
"MIT"
] | 15 | 2020-10-22T13:26:25.000Z | 2021-07-26T23:49:42.000Z | defmodule AshPostgres.Functions.Fragment do
@moduledoc """
A function that maps to ecto's `fragment` function
https://hexdocs.pm/ecto/Ecto.Query.API.html#fragment/1
This function is highly based off of that implementation.
"""
use Ash.Query.Function, name: :fragment
# Varargs is special, and should on... | 31.196429 | 107 | 0.657127 |
1ab110d53754fd11edc08ae70f18ecc761374f7a | 6,231 | exs | Elixir | test/recorder_hackney_test.exs | thbar/exvcr | ae8e8f72be8c11a1639c53ffbb22421820a5c6d5 | [
"MIT"
] | 608 | 2015-01-05T18:44:49.000Z | 2022-03-21T19:54:01.000Z | test/recorder_hackney_test.exs | thbar/exvcr | ae8e8f72be8c11a1639c53ffbb22421820a5c6d5 | [
"MIT"
] | 165 | 2015-01-04T13:01:01.000Z | 2022-03-16T08:31:48.000Z | test/recorder_hackney_test.exs | thbar/exvcr | ae8e8f72be8c11a1639c53ffbb22421820a5c6d5 | [
"MIT"
] | 130 | 2015-01-28T19:33:21.000Z | 2022-02-08T22:21:43.000Z | defmodule ExVCR.RecorderHackneyTest do
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
@dummy_cassette_dir "tmp/vcr_tmp/vcr_cassettes_hackney"
@port 34002
@url "http://localhost:#{@port}/server"
@url_with_query "http://localhost:#{@port}/server?password=sample"
setup_all do
... | 33.681081 | 98 | 0.696196 |
1ab16dc027eac277149d3cbfd3d5daf5af421fc2 | 1,875 | ex | Elixir | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_property_summary.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_property_summary.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_property_summary.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... | 34.090909 | 180 | 0.745067 |
1ab19b0bb8434b30257e626b0f91a048e73932fd | 5,679 | ex | Elixir | lib/elixir/lib/integer.ex | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | 4 | 2015-12-22T02:46:39.000Z | 2016-04-26T06:11:09.000Z | lib/elixir/lib/integer.ex | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/integer.ex | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | defmodule Integer do
@moduledoc """
Functions for working with integers.
"""
import Bitwise
@doc """
Determines if an integer is odd.
Returns `true` if `n` is an odd number, otherwise `false`.
Allowed in guard clauses.
## Examples
iex> Integer.is_odd(3)
true
iex> Integer.is_od... | 21.430189 | 88 | 0.61384 |
1ab1c7c1d668c4b07bbfd9018bd4f0faf4dbdb54 | 880 | ex | Elixir | lib/still/web/router.ex | fmterrorf/still | fd316bcc38cdf618444dbd36ec9d259fe5256a3e | [
"0BSD"
] | 2 | 2021-02-15T07:55:38.000Z | 2021-03-05T18:04:53.000Z | lib/still/web/router.ex | mrmicahcooper/still | ba785b0b068d998d0343f73a1fd1795edbe9831c | [
"0BSD"
] | null | null | null | lib/still/web/router.ex | mrmicahcooper/still | ba785b0b068d998d0343f73a1fd1795edbe9831c | [
"0BSD"
] | null | null | null | defmodule Still.Web.Router do
@moduledoc false
use Plug.Router
use Plug.Debugger
require Logger
import Still.Utils
plug(Plug.Logger, log: :debug)
plug(Plug.Static, from: "_site", at: "/")
plug(:match)
plug(:dispatch)
get "/" do
conn
|> put_resp_header("Content-Type", "text/html; charset=... | 21.463415 | 68 | 0.614773 |
1ab1d3015338ec4dd40c3cafecb705a452db5447 | 2,060 | exs | Elixir | implementations/elixir/ockam/ockam_node_web/mix.exs | digikata/ockam | 015a834ce0d34921b634439d965f726d877fd076 | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_node_web/mix.exs | digikata/ockam | 015a834ce0d34921b634439d965f726d877fd076 | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam_node_web/mix.exs | digikata/ockam | 015a834ce0d34921b634439d965f726d877fd076 | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.Node.Web.MixProject do
use Mix.Project
@version "0.10.0-dev"
@elixir_requirement "~> 1.10"
@ockam_github_repo "https://github.com/ockam-network/ockam"
@ockam_github_repo_path "implementations/elixir/applications/ockam_node_web"
def project do
[
app: :ockam_node_web,
versi... | 23.678161 | 93 | 0.571359 |
1ab1fed6787e2c375b7ab4d4128dbdd8ea182441 | 19,297 | ex | Elixir | lib/phoenix_integration/assertions.ex | roelandvanbatenburg/phoenix_integration | b05007fa987f1a072404ec7727988b7428c07711 | [
"Apache-2.0"
] | 218 | 2016-07-29T01:21:45.000Z | 2022-02-08T15:19:41.000Z | lib/phoenix_integration/assertions.ex | roelandvanbatenburg/phoenix_integration | b05007fa987f1a072404ec7727988b7428c07711 | [
"Apache-2.0"
] | 49 | 2016-08-06T20:57:43.000Z | 2022-01-24T23:46:10.000Z | lib/phoenix_integration/assertions.ex | roelandvanbatenburg/phoenix_integration | b05007fa987f1a072404ec7727988b7428c07711 | [
"Apache-2.0"
] | 29 | 2016-08-18T07:07:37.000Z | 2022-01-11T14:39:52.000Z | defmodule PhoenixIntegration.Assertions do
@moduledoc """
Functions to assert/refute the response content of a conn without interrupting the
chain of actions in an integration test.
Each function takes a conn and a set of conditions to test. Each condition is tested
and, if they all pass, the function return... | 33.854386 | 124 | 0.558481 |
1ab21824e4c4174321c3269379a3471535321825 | 8,785 | ex | Elixir | farmbot_core/lib/farmbot_core/asset_workers/farmware_installation_worker.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | 1 | 2019-08-06T11:51:48.000Z | 2019-08-06T11:51:48.000Z | farmbot_core/lib/farmbot_core/asset_workers/farmware_installation_worker.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | farmbot_core/lib/farmbot_core/asset_workers/farmware_installation_worker.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | defimpl FarmbotCore.AssetWorker, for: FarmbotCore.Asset.FarmwareInstallation do
use GenServer
require FarmbotCore.Logger
alias FarmbotCore.{Asset.Repo, BotState, JSON}
alias FarmbotCore.Asset.FarmwareInstallation, as: FWI
alias FarmbotCore.Asset.FarmwareInstallation.Manifest
config = Application.get_env(:... | 33.276515 | 103 | 0.630279 |
1ab2378a5d280560cb2c65285bbe57911b12aee6 | 83 | ex | Elixir | lib/harald.ex | mattludwigs/harald | 82e67a71d9940d8572fd217eaf29575e81533151 | [
"MIT"
] | 3 | 2020-08-07T02:09:09.000Z | 2020-08-28T12:25:48.000Z | lib/harald.ex | mattludwigs/harald | 82e67a71d9940d8572fd217eaf29575e81533151 | [
"MIT"
] | null | null | null | lib/harald.ex | mattludwigs/harald | 82e67a71d9940d8572fd217eaf29575e81533151 | [
"MIT"
] | null | null | null | defmodule Harald do
@moduledoc """
An Elixir Bluetooth Host library.
"""
end
| 13.833333 | 35 | 0.686747 |
1ab23d8c517509d1b14dc21d2e71f8536da38dc7 | 570 | ex | Elixir | lib/geonames/endpoints/find_nearby.ex | pareeohnos/geonames-elixir | d4ea326ed413ed2d8d07de491ab608923d959f30 | [
"MIT"
] | 18 | 2016-08-11T11:51:49.000Z | 2021-11-17T11:23:52.000Z | lib/geonames/endpoints/find_nearby.ex | pareeohnos/geonames-elixir | d4ea326ed413ed2d8d07de491ab608923d959f30 | [
"MIT"
] | 5 | 2016-11-13T10:48:29.000Z | 2022-01-10T11:06:22.000Z | lib/geonames/endpoints/find_nearby.ex | pareeohnos/geonames-elixir | d4ea326ed413ed2d8d07de491ab608923d959f30 | [
"MIT"
] | 8 | 2016-11-13T10:44:03.000Z | 2021-12-10T12:52:01.000Z | defmodule Geonames.Endpoints.FindNearby do
@moduledoc false
@behaviour Geonames.Endpoint
@default_arguments %{
lat: nil,
lng: nil,
featureClass: nil,
featureCode: nil,
radius: nil,
maxRows: 10,
style: "MEDIUM",
localCountry: true
}
def endpoint, do: "findNearbyJSON"
def ava... | 22.8 | 64 | 0.715789 |
1ab294901b586a86de53f7034a97027af4b6f5fc | 668 | ex | Elixir | apps/re_web/lib/views/error_view.ex | ruby2elixir/emcasa-backend | 70d7f4f233555417941ffa6ada84cf8740c21dd2 | [
"MIT"
] | 4 | 2019-11-01T16:29:31.000Z | 2020-10-10T21:20:12.000Z | apps/re_web/lib/views/error_view.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re_web/lib/views/error_view.ex | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 5 | 2019-11-04T21:25:45.000Z | 2020-02-13T23:49:36.000Z | defmodule ReWeb.ErrorView do
use ReWeb, :view
def render("400.json", _assigns) do
%{errors: %{detail: "Bad Request"}}
end
def render("401.json", _assigns) do
%{errors: %{detail: "Unauthenticated"}}
end
def render("403.json", _assigns) do
%{errors: %{detail: "Forbidden"}}
end
def render("... | 22.266667 | 49 | 0.651198 |
1ab29e9e6bf3388d27c270b63c1a587e39448a7d | 1,764 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/license_resource_requirements.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/license_resource_requirements.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/license_resource_requirements.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 34.588235 | 163 | 0.751134 |
1ab2a29c0b6450bd564df2dcdad7fd38318de45c | 2,442 | ex | Elixir | lib/grizzly/zwave/commands/zip_packet/header_extensions.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | lib/grizzly/zwave/commands/zip_packet/header_extensions.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | lib/grizzly/zwave/commands/zip_packet/header_extensions.ex | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.ZIPPacket.HeaderExtensions do
@moduledoc """
Functions for working with the header extension in a Z/IP Packet.
"""
alias Grizzly.ZWave.Command
alias Grizzly.ZWave.Commands.ZIPPacket.HeaderExtensions.{
ExpectedDelay,
BinaryParser,
InstallationAndMaintenanceReport,... | 30.148148 | 98 | 0.690418 |
1ab2ab100109824138214185ca875fadb4410be6 | 1,148 | exs | Elixir | mix.exs | svrdlans/ecto_atom | 2f6b6da370cabdec2066c44932e08daaf193e23e | [
"MIT"
] | null | null | null | mix.exs | svrdlans/ecto_atom | 2f6b6da370cabdec2066c44932e08daaf193e23e | [
"MIT"
] | null | null | null | mix.exs | svrdlans/ecto_atom | 2f6b6da370cabdec2066c44932e08daaf193e23e | [
"MIT"
] | null | null | null | defmodule Ecto.Atom.Mixfile do
use Mix.Project
def project do
[
app: :ecto_atom,
version: "1.0.0",
elixir: "~> 1.10",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
sour... | 22.96 | 72 | 0.593206 |
1ab2ae2e1d035b5b321af9188a3e19d6836d2c75 | 1,856 | exs | Elixir | test/glimesh/community_team_test.exs | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | null | null | null | test/glimesh/community_team_test.exs | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | null | null | null | test/glimesh/community_team_test.exs | itsUnsmart/glimesh.tv | 22c532184bb5046f6c6d8232e8bd66ba534c01c1 | [
"MIT"
] | null | null | null | defmodule Glimesh.CommunityTeamTest do
use Glimesh.DataCase
import Glimesh.AccountsFixtures
alias Glimesh.CommunityTeam
describe "community team permission check functions" do
test "access level returns correct title" do
user = gct_fixture(%{gct_level: 5, tfa_token: "Fake 2fa token"})
assert ... | 33.745455 | 98 | 0.677263 |
1ab2b3d216a6e8714b7411b83f3c76a7c8c0e27a | 4,027 | exs | Elixir | test/hook/consumers/websocket_test.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | test/hook/consumers/websocket_test.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | test/hook/consumers/websocket_test.exs | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | defmodule MockEndpoint do
def broadcast(channel, event, payload) do
send(self(), {:delivered_socket, channel, event, payload})
end
end
defmodule AccentTest.Hook.Consumers.Websocket do
use Accent.RepoCase
alias Accent.{
Repo,
Language,
Project,
Revision,
User,
Translation,
Comme... | 32.739837 | 132 | 0.640427 |
1ab2be56a4a811a8b8629eecb409a7d6e20b1899 | 911 | ex | Elixir | lib/level_web/schema/subscriptions.ex | davecremins/level | cc06b86d32e9bef954a199dc4a2b47561815fd4b | [
"Apache-2.0"
] | null | null | null | lib/level_web/schema/subscriptions.ex | davecremins/level | cc06b86d32e9bef954a199dc4a2b47561815fd4b | [
"Apache-2.0"
] | null | null | null | lib/level_web/schema/subscriptions.ex | davecremins/level | cc06b86d32e9bef954a199dc4a2b47561815fd4b | [
"Apache-2.0"
] | null | null | null | defmodule LevelWeb.Schema.Subscriptions do
@moduledoc false
use Absinthe.Schema.Notation
@desc "The payload for the group bookmarked event."
object :group_bookmarked_payload do
@desc "The bookmarked group."
field :group, :group
end
@desc "The payload for the group unbookmarked event."
object :g... | 25.305556 | 61 | 0.725576 |
1ab2c390b4d585f95fbcc5fa34d7f58a49178a8d | 274 | exs | Elixir | config/test.exs | alexander-lazarov/battleships | e35fcb1fc48281881f2976cd7ec8cf7a6cb1f707 | [
"MIT"
] | null | null | null | config/test.exs | alexander-lazarov/battleships | e35fcb1fc48281881f2976cd7ec8cf7a6cb1f707 | [
"MIT"
] | 2 | 2020-07-17T13:59:03.000Z | 2021-05-09T20:35:32.000Z | config/test.exs | alexander-lazarov/battleships | e35fcb1fc48281881f2976cd7ec8cf7a6cb1f707 | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :battleships, BattleshipsWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
| 24.909091 | 56 | 0.744526 |
1ab301a450563019472ccf044d32a21ab12bc2f2 | 74 | exs | Elixir | test/views/page_view_test.exs | tinenbruno/verk_web | 70911a77ba12efcafca495bb43e3074c6cad3cfb | [
"MIT"
] | 82 | 2016-02-08T04:33:54.000Z | 2022-03-29T07:17:36.000Z | test/views/page_view_test.exs | tinenbruno/verk_web | 70911a77ba12efcafca495bb43e3074c6cad3cfb | [
"MIT"
] | 81 | 2016-03-09T02:17:40.000Z | 2021-12-05T07:29:04.000Z | test/views/page_view_test.exs | tinenbruno/verk_web | 70911a77ba12efcafca495bb43e3074c6cad3cfb | [
"MIT"
] | 42 | 2016-04-05T21:35:31.000Z | 2021-11-09T11:58:26.000Z | defmodule VerkWeb.PageViewTest do
use VerkWeb.ConnCase, async: true
end
| 18.5 | 35 | 0.810811 |
1ab316b683f784d158a2665322efcb4035cf9b94 | 1,818 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_position.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_position.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p1beta1_position.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... | 34.301887 | 197 | 0.710121 |
1ab31fd9e5613b88c6e79bbf229894ff73246dee | 312 | ex | Elixir | web/controllers/history_relationship_controller.ex | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | 2 | 2016-02-25T20:12:35.000Z | 2018-01-03T00:03:12.000Z | web/controllers/history_relationship_controller.ex | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | 1 | 2016-01-11T04:50:39.000Z | 2016-01-12T05:00:08.000Z | web/controllers/history_relationship_controller.ex | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | null | null | null | defmodule Apiv4.HistoryRelationshipController do
use Apiv4.Web, :controller
plug :scrub_params, "data" when action in [:create, :update, :delete]
plug Autox.AutoParentPlug, Apiv4
plug Autox.AutoPaginatePlug, [limit: 75, max_limit: 125] when action in [:index]
use Autox.RelationshipController
end | 34.666667 | 82 | 0.762821 |
1ab36264d8a889979bac70fc8cf33ebe95c6829c | 1,726 | ex | Elixir | lib/jumubase_web/views/encoders/csv_encoder.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 2 | 2019-01-20T07:03:30.000Z | 2019-04-11T10:20:14.000Z | lib/jumubase_web/views/encoders/csv_encoder.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 6 | 2018-09-20T05:52:14.000Z | 2019-04-23T19:27:39.000Z | lib/jumubase_web/views/encoders/csv_encoder.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | null | null | null | NimbleCSV.define(CSVParser, separator: "\t", escape: "\"")
defmodule JumubaseWeb.CSVEncoder do
@moduledoc """
A tool to export registration data as comma-separated values.
"""
import JumubaseWeb.Internal.PerformanceView, only: [category_name: 1, predecessor_host_name: 1]
alias Jumubase.Showtime.{Participant... | 27.83871 | 112 | 0.683662 |
1ab37151fe503921d1414fcf2ffdac8b0ddc556b | 26,422 | ex | Elixir | lib/materia_commerce/products/products.ex | karabiner-inc/materia_commerce | e1abc1ac223ffd379360995d24a10021db036da1 | [
"Apache-2.0"
] | 1 | 2019-11-19T07:38:38.000Z | 2019-11-19T07:38:38.000Z | lib/materia_commerce/products/products.ex | karabiner-inc/materia_commerce | e1abc1ac223ffd379360995d24a10021db036da1 | [
"Apache-2.0"
] | 31 | 2018-12-26T02:05:55.000Z | 2021-05-14T03:33:07.000Z | lib/materia_commerce/products/products.ex | karabiner-inc/materia_commerce | e1abc1ac223ffd379360995d24a10021db036da1 | [
"Apache-2.0"
] | null | null | null | defmodule MateriaCommerce.Products do
@moduledoc """
The Products context.
"""
import Ecto.Query, warn: false
alias MateriaCommerce.Repo
alias MateriaCommerce.Products.Item
alias MateriaUtils.Calendar.CalendarUtil
@repo Application.get_env(:materia, :repo)
@doc """
Returns the list of items.
... | 28.198506 | 135 | 0.628567 |
1ab373ed96a50c80e1575b5b6663121bee5600f5 | 987 | ex | Elixir | lib/errol/middleware/json.ex | ceritium/errol | cf2d50795dc7278cca7a6d158aaaa39713cbe493 | [
"MIT"
] | 23 | 2018-04-16T20:03:54.000Z | 2018-09-03T20:08:19.000Z | lib/errol/middleware/json.ex | ceritium/errol | cf2d50795dc7278cca7a6d158aaaa39713cbe493 | [
"MIT"
] | null | null | null | lib/errol/middleware/json.ex | ceritium/errol | cf2d50795dc7278cca7a6d158aaaa39713cbe493 | [
"MIT"
] | 1 | 2018-09-21T09:56:13.000Z | 2018-09-21T09:56:13.000Z | defmodule Errol.Middleware.Json do
alias Errol.Message
@doc """
Parses json payload into an `%Errol.Message{}` struct.
This is thought to be used in your wiring as:
```elixir
pipe_before Errol.Middleware.Json.parse/2
```
This way the payload of every message consumed will be parsed before
executin... | 29.029412 | 96 | 0.641337 |
1ab3776c4932649c5c22b204c62f951fc45f4961 | 292 | ex | Elixir | lib/mcf.ex | impl/ex_crypto | 587aa8a63bd1768a361da207339b4a8d68560c22 | [
"Apache-2.0"
] | 2 | 2016-05-02T18:19:13.000Z | 2016-05-03T16:11:58.000Z | lib/mcf.ex | impl/ex_crypto | 587aa8a63bd1768a361da207339b4a8d68560c22 | [
"Apache-2.0"
] | null | null | null | lib/mcf.ex | impl/ex_crypto | 587aa8a63bd1768a361da207339b4a8d68560c22 | [
"Apache-2.0"
] | null | null | null | defmodule Cryptex.Mcf do
alias Cryptex.Mcf.Encoder
@spec encode(Encoder.t) :: String.t
def encode(kdf) do
{name, data} = Encoder.encode(kdf)
format(name, data)
end
defp format(name, data), do: "$#{name}$#{data}"
defprotocol Encoder do
def encode(kdf)
end
end
| 14.6 | 49 | 0.64726 |
1ab41aa0163e60b29af75cc4da0d8d437b02018b | 60,897 | ex | Elixir | lib/elixir/lib/code.ex | samgaw/elixir | 92e8263102d95281a5aa7850b747636805f13fc9 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/code.ex | samgaw/elixir | 92e8263102d95281a5aa7850b747636805f13fc9 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/code.ex | samgaw/elixir | 92e8263102d95281a5aa7850b747636805f13fc9 | [
"Apache-2.0"
] | null | null | null | defmodule Code do
@moduledoc ~S"""
Utilities for managing code compilation, code evaluation, and code loading.
This module complements Erlang's [`:code` module](`:code`)
to add behaviour which is specific to Elixir. Almost all of the functions in this module
have global side effects on the behaviour of Elixi... | 35.200578 | 145 | 0.68473 |
1ab423b48d24cde8e0b1d2090892857cb8eb24c4 | 291 | exs | Elixir | farmbot_ext/test/farmbot_ext/amqp/channel_supervisor_test.exs | kant/farmbot_os | f497cc1fde3960dc5507e4da89e85411a8f776f3 | [
"MIT"
] | null | null | null | farmbot_ext/test/farmbot_ext/amqp/channel_supervisor_test.exs | kant/farmbot_os | f497cc1fde3960dc5507e4da89e85411a8f776f3 | [
"MIT"
] | null | null | null | farmbot_ext/test/farmbot_ext/amqp/channel_supervisor_test.exs | kant/farmbot_os | f497cc1fde3960dc5507e4da89e85411a8f776f3 | [
"MIT"
] | null | null | null | defmodule FarmbotExt.AMQP.ChannelSupervisorTest do
use ExUnit.Case, async: false
use Mimic
alias FarmbotExt.AMQP.ChannelSupervisor
setup :verify_on_exit!
test "children" do
results = ChannelSupervisor.children(%{})
expected = []
assert results == expected
end
end
| 19.4 | 50 | 0.731959 |
1ab42bfe7e4b4bf32df235a3ea4c9fbcf2a25676 | 1,499 | ex | Elixir | lib/raft/supervisor.ex | lerencao/raft.ex | f8fc21874354073d1831f9ad0cc933128392935b | [
"MIT"
] | 5 | 2016-05-23T16:28:53.000Z | 2016-08-17T09:56:00.000Z | lib/raft/supervisor.ex | lerencao/raft.ex | f8fc21874354073d1831f9ad0cc933128392935b | [
"MIT"
] | 5 | 2016-05-27T03:01:11.000Z | 2016-07-06T15:22:19.000Z | lib/raft/supervisor.ex | lerencao/raft.ex | f8fc21874354073d1831f9ad0cc933128392935b | [
"MIT"
] | null | null | null | defmodule Raft.Supervisor do
use Supervisor
@typedoc """
server identity.
"""
@type id :: term
@typedoc """
number of leader's term of office
"""
@type rterm :: non_neg_integer
@typedoc """
index of log
"""
@type index :: non_neg_integer
@typedoc """
entry of log
"""
@type entry ::... | 18.506173 | 62 | 0.567045 |
1ab436225a1e37c7fa733f9c5ac6d8d185260a33 | 1,466 | ex | Elixir | lib/mix/tasks/sass.install.ex | sudokid-software/dart_sass | c6adf3e6fc655826ac96ac211cf900ccf5b904c0 | [
"MIT"
] | 45 | 2021-07-26T18:03:29.000Z | 2022-03-29T09:19:20.000Z | lib/mix/tasks/sass.install.ex | sudokid-software/dart_sass | c6adf3e6fc655826ac96ac211cf900ccf5b904c0 | [
"MIT"
] | 20 | 2021-08-28T12:31:29.000Z | 2022-03-28T18:15:15.000Z | lib/mix/tasks/sass.install.ex | sudokid-software/dart_sass | c6adf3e6fc655826ac96ac211cf900ccf5b904c0 | [
"MIT"
] | 13 | 2021-08-19T18:36:09.000Z | 2022-03-10T03:57:03.000Z | defmodule Mix.Tasks.Sass.Install do
@moduledoc """
Installs dart-sass under `_build`.
```bash
$ mix sass.install
$ mix sass.install --if-missing
```
By default, it installs #{DartSass.latest_version()} but you
can configure it in your config files, such as:
config :dart_sass, :version, "#{DartS... | 23.645161 | 68 | 0.610505 |
1ab43e1f9a0187957f833793a400885038d51c5c | 1,169 | ex | Elixir | lab-two-flooding-algorithms/ex4-data-collection-store-child-counts/lib/flooding.ex | HilliamT/distributed-algorithms | 788e8e0b9a6c60570ecf8336f2239fb1d1945b1c | [
"MIT"
] | null | null | null | lab-two-flooding-algorithms/ex4-data-collection-store-child-counts/lib/flooding.ex | HilliamT/distributed-algorithms | 788e8e0b9a6c60570ecf8336f2239fb1d1945b1c | [
"MIT"
] | null | null | null | lab-two-flooding-algorithms/ex4-data-collection-store-child-counts/lib/flooding.ex | HilliamT/distributed-algorithms | 788e8e0b9a6c60570ecf8336f2239fb1d1945b1c | [
"MIT"
] | null | null | null |
# distributed algorithms, n.dulay, 4 jan 21
# basic flooding, v1
# flood message through 1-hop (fully connected) network
defmodule Flooding do
def start do
config = Helper.node_init()
start(config.start_function, config)
end # start/0
defp start(:cluster_wait, _), do: :skip
defp start(:cluster_start, config) d... | 27.186047 | 120 | 0.637297 |
1ab458ee6b257de1c713ddb79deb446e672da22d | 161 | ex | Elixir | lib/oembed/resources/photo.ex | byoungdale/elixir-oembed | 4ac75443242fea8094e9633f7656135fa42fab5f | [
"MIT"
] | 35 | 2017-02-28T12:38:02.000Z | 2022-02-08T06:00:26.000Z | lib/oembed/resources/photo.ex | byoungdale/elixir-oembed | 4ac75443242fea8094e9633f7656135fa42fab5f | [
"MIT"
] | 27 | 2017-02-25T18:04:33.000Z | 2021-12-23T12:42:51.000Z | lib/oembed/resources/photo.ex | byoungdale/elixir-oembed | 4ac75443242fea8094e9633f7656135fa42fab5f | [
"MIT"
] | 11 | 2017-05-25T22:41:06.000Z | 2021-07-09T02:30:18.000Z | defmodule OEmbed.Photo do
@moduledoc """
oEmbed Photo resource.
"""
@keys [type: "photo", url: nil, width: nil, height: nil]
use OEmbed.Resource
end
| 16.1 | 58 | 0.658385 |
1ab46aca716853a25f6efaa5390245df5ad0dd7a | 25,935 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/api/tables.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/api/tables.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/big_query/lib/google_api/big_query/v2/api/tables.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.026042 | 351 | 0.627145 |
1ab48f1f9c63c2e6623dbf23631d9822bf04b1da | 897 | ex | Elixir | lib/jumubase_web/views/layout_view.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 2 | 2019-01-20T07:03:30.000Z | 2019-04-11T10:20:14.000Z | lib/jumubase_web/views/layout_view.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | 6 | 2018-09-20T05:52:14.000Z | 2019-04-23T19:27:39.000Z | lib/jumubase_web/views/layout_view.ex | richeterre/jumubase-phoenix | 7584f890af117d496971b5284bf9de798e22266f | [
"MIT"
] | null | null | null | defmodule JumubaseWeb.LayoutView do
use JumubaseWeb, :view
import JumubaseWeb.BreadcrumbHelpers
@doc """
Returns the page title.
"""
def title do
release_level() |> title()
end
@doc """
Returns an element to be shown in the navbar as the "brand" item.
"""
def nav_brand_element do
case re... | 23 | 80 | 0.683389 |
1ab4cfe402b07cbf56a930c92c743939d38a41b3 | 1,395 | ex | Elixir | lib/forecastr/renderer/giphy.ex | densefog/forecastr | 5b95b52ecd6a1324cac5e8616f693e929135a331 | [
"Apache-2.0"
] | 11 | 2018-03-26T07:09:17.000Z | 2020-01-12T21:52:03.000Z | lib/forecastr/renderer/giphy.ex | densefog/forecastr | 5b95b52ecd6a1324cac5e8616f693e929135a331 | [
"Apache-2.0"
] | 3 | 2018-03-27T09:10:54.000Z | 2018-04-10T19:08:03.000Z | lib/forecastr/renderer/giphy.ex | densefog/forecastr | 5b95b52ecd6a1324cac5e8616f693e929135a331 | [
"Apache-2.0"
] | 7 | 2018-03-26T07:09:20.000Z | 2021-03-06T14:43:44.000Z | defmodule Forecastr.Renderer.Giphy do
@moduledoc """
Giphy renderer
"""
@relevant_times %{
"09:00:00" => "Morning",
"12:00:00" => "Noon",
"18:00:00" => "Afternoon",
"21:00:00" => "Evening",
"00:00:00" => "Night"
}
alias __MODULE__
@spec render(map()) :: map()
def render(%{"descrip... | 24.473684 | 94 | 0.594265 |
1ab4fa0c6b5f8e44a8b81be4e26d571bc07df116 | 134 | exs | Elixir | test/badge_firmata_host_test.exs | nickveys/elixirconfig-2016-blinky-firmata-host | 8f55f74df33d6e192d057571806f2ce9c1033acc | [
"Unlicense"
] | null | null | null | test/badge_firmata_host_test.exs | nickveys/elixirconfig-2016-blinky-firmata-host | 8f55f74df33d6e192d057571806f2ce9c1033acc | [
"Unlicense"
] | null | null | null | test/badge_firmata_host_test.exs | nickveys/elixirconfig-2016-blinky-firmata-host | 8f55f74df33d6e192d057571806f2ce9c1033acc | [
"Unlicense"
] | null | null | null | defmodule BadgeFirmataHostTest do
use ExUnit.Case
doctest BadgeFirmataHost
test "the truth" do
assert 1 + 1 == 2
end
end
| 14.888889 | 33 | 0.716418 |
1ab5028400d62a6aed4c6855175ca6b5d241a6f6 | 1,371 | exs | Elixir | apps/artemis_web/test/artemis_web/controllers/wiki_revision_controller_test.exs | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis_web/test/artemis_web/controllers/wiki_revision_controller_test.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis_web/test/artemis_web/controllers/wiki_revision_controller_test.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2019-04-10T13:34:15.000Z | 2019-05-17T02:42:24.000Z | defmodule ArtemisWeb.WikiRevisionControllerTest do
use ArtemisWeb.ConnCase
import Artemis.Factories
setup %{conn: conn} do
{:ok, conn: sign_in(conn)}
end
describe "index" do
setup [:create_record]
test "lists all wiki revisions", %{conn: conn, parent: parent} do
conn = get(conn, Routes.w... | 28.5625 | 89 | 0.689278 |
1ab5079eeca4edea9461c335180aa9e70c61bda3 | 2,227 | exs | Elixir | test/triplex/plugs/plug_test.exs | felipe-kosouski/triplex | daa68037217a17eedf9eef4c9e8ca88da4ad8870 | [
"MIT"
] | 344 | 2017-07-03T11:30:26.000Z | 2022-03-30T19:11:41.000Z | test/triplex/plugs/plug_test.exs | felipe-kosouski/triplex | daa68037217a17eedf9eef4c9e8ca88da4ad8870 | [
"MIT"
] | 56 | 2017-06-29T01:55:35.000Z | 2022-03-15T22:09:47.000Z | test/triplex/plugs/plug_test.exs | felipe-kosouski/triplex | daa68037217a17eedf9eef4c9e8ca88da4ad8870 | [
"MIT"
] | 45 | 2017-08-15T18:59:41.000Z | 2022-03-17T17:00:50.000Z | defmodule Triplex.PlugTest do
use ExUnit.Case
import Plug.Conn
import Plug.Test
alias Triplex.Plug
alias Triplex.ParamPlugConfig
alias Triplex.EnsurePlugConfig
test "put_tenant/3 must set the tenant to the default assign" do
conn =
:get
|> conn("/")
|> Plug.put_tenant("power", %Par... | 24.472527 | 74 | 0.62326 |
1ab513e2fc7e66e8385091adb71a23473901e93d | 173 | exs | Elixir | priv/repo/migrations/20180223040774_create_shippment_unit.exs | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | 1 | 2019-04-01T19:14:16.000Z | 2019-04-01T19:14:16.000Z | priv/repo/migrations/20180223040774_create_shippment_unit.exs | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | null | null | null | priv/repo/migrations/20180223040774_create_shippment_unit.exs | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | 1 | 2019-03-24T01:50:48.000Z | 2019-03-24T01:50:48.000Z | defmodule Excommerce.Repo.Migrations.CreateShippmentUnit do
use Ecto.Migration
def change do
create table(:shipment_units) do
timestamps()
end
end
end
| 15.727273 | 59 | 0.734104 |
1ab522ce2cf38c29a88e3f354933650ae8e19b40 | 960 | ex | Elixir | clients/blogger/lib/google_api/blogger/v3/request_builder.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/blogger/lib/google_api/blogger/v3/request_builder.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/blogger/lib/google_api/blogger/v3/request_builder.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 36.923077 | 77 | 0.763542 |
1ab539b19bbc337437f4b18d75189e337634bd3c | 5,183 | ex | Elixir | farmbot_telemetry/lib/farmbot_telemetry.ex | elbow-jason/farmbot_os | f5dfc8f58a309285ca3d441b1b7272f15315b2a9 | [
"MIT"
] | null | null | null | farmbot_telemetry/lib/farmbot_telemetry.ex | elbow-jason/farmbot_os | f5dfc8f58a309285ca3d441b1b7272f15315b2a9 | [
"MIT"
] | null | null | null | farmbot_telemetry/lib/farmbot_telemetry.ex | elbow-jason/farmbot_os | f5dfc8f58a309285ca3d441b1b7272f15315b2a9 | [
"MIT"
] | null | null | null | defmodule FarmbotTelemetry do
@moduledoc """
Interface for farmbot system introspection and metrics
"""
@typedoc "Type of telemetry data"
@type kind() :: :event | :metric
@typedoc "UUID of the telemetry data"
@type uuid() :: String.t()
@typedoc "Classifier for telemetry data"
@type subsystem() :: a... | 29.282486 | 98 | 0.633224 |
1ab563b8a951e74496c3697e64afdb0d4bd4c7e1 | 1,673 | ex | Elixir | lib/axon/loop/state.ex | kianmeng/axon | 15e2ce547e98e20946f0b0091440baf3e5e0f2d6 | [
"Apache-2.0"
] | 922 | 2021-04-08T11:48:26.000Z | 2022-03-30T05:17:52.000Z | lib/axon/loop/state.ex | t-rutten/axon | 1ab69552e194bdaa4e5bc85ca116966be872f072 | [
"Apache-2.0"
] | 112 | 2021-04-08T20:27:37.000Z | 2022-03-31T21:22:09.000Z | lib/axon/loop/state.ex | t-rutten/axon | 1ab69552e194bdaa4e5bc85ca116966be872f072 | [
"Apache-2.0"
] | 56 | 2021-04-08T12:54:16.000Z | 2022-03-29T01:36:18.000Z | defmodule Axon.Loop.State do
@moduledoc """
Accumulated state in an Axon.Loop.
Loop state is a struct:
%State{
epoch: tensor(),
max_epoch: tensor(),
iteration: tensor(),
max_iteration: tensor(),
metrics: map(string(), container()),
times: list(number()),
... | 30.981481 | 95 | 0.66587 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.