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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2868d449eb4f0eadfa79a0982aef1cd656918fbb | 1,009 | ex | Elixir | lib/kwerk/application.ex | johndavedecano/kwerk | a9e5928c2c5eb7a9a8dfaba30450627c257832a3 | [
"MIT"
] | 2 | 2018-09-23T08:45:07.000Z | 2020-01-20T15:47:45.000Z | lib/kwerk/application.ex | johndavedecano/kwerk | a9e5928c2c5eb7a9a8dfaba30450627c257832a3 | [
"MIT"
] | null | null | null | lib/kwerk/application.ex | johndavedecano/kwerk | a9e5928c2c5eb7a9a8dfaba30450627c257832a3 | [
"MIT"
] | null | null | null | defmodule Kwerk.Application do
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the Ecto repository
... | 31.53125 | 83 | 0.709613 |
2868dd0cf77cc324ab240a24f4645b6dde3b32ac | 55 | ex | Elixir | lib/sema_web/views/post_view.ex | edwinthinks/semaphore-demo-elixir-phoenix | 16c60f1a37f204156a17628947a7dda552a76ee0 | [
"MIT"
] | 1 | 2020-03-19T13:26:01.000Z | 2020-03-19T13:26:01.000Z | lib/sema_web/views/post_view.ex | edwinthinks/semaphore-demo-elixir-phoenix | 16c60f1a37f204156a17628947a7dda552a76ee0 | [
"MIT"
] | 6 | 2019-05-29T16:34:19.000Z | 2021-09-01T02:10:43.000Z | lib/sema_web/views/post_view.ex | edwinthinks/semaphore-demo-elixir-phoenix | 16c60f1a37f204156a17628947a7dda552a76ee0 | [
"MIT"
] | 68 | 2019-05-16T15:40:51.000Z | 2022-03-20T06:30:53.000Z | defmodule SemaWeb.PostView do
use SemaWeb, :view
end
| 13.75 | 29 | 0.781818 |
2868e71c674236b5bb1ae6580c191ff1051ff2e1 | 4,942 | ex | Elixir | lib/mix/tasks/compile/surface.ex | inspired-consulting/surface | 3a6a3a454704a9aaf83cd23a6393cbd09bdca8bd | [
"MIT"
] | null | null | null | lib/mix/tasks/compile/surface.ex | inspired-consulting/surface | 3a6a3a454704a9aaf83cd23a6393cbd09bdca8bd | [
"MIT"
] | null | null | null | lib/mix/tasks/compile/surface.ex | inspired-consulting/surface | 3a6a3a454704a9aaf83cd23a6393cbd09bdca8bd | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Compile.Surface do
@moduledoc """
Generate CSS and JS assets for components.
"""
use Mix.Task
@recursive true
@default_hooks_output_dir "assets/js/_hooks"
@hooks_extension ".hooks.js"
@doc false
def run(args) do
build_time = Keyword.get(args, :build_time)
case get_coloc... | 27.303867 | 107 | 0.61635 |
2868ecc8a359a0638d8ae427ba809f99d1b04aa1 | 2,947 | ex | Elixir | lib/derivco/helpers/request_filter.ex | AdolfodelSel/Derivco | ad3090208dfc9e11415825f5ce1374ef3f8c2985 | [
"MIT"
] | null | null | null | lib/derivco/helpers/request_filter.ex | AdolfodelSel/Derivco | ad3090208dfc9e11415825f5ce1374ef3f8c2985 | [
"MIT"
] | 2 | 2021-03-09T15:53:17.000Z | 2021-05-10T09:50:18.000Z | lib/derivco/helpers/request_filter.ex | AdolfodelSel/Derivco | ad3090208dfc9e11415825f5ce1374ef3f8c2985 | [
"MIT"
] | null | null | null | defmodule Derivco.Helpers.RequestFilter do
require Logger
@doc """
To filter the request params to get only the available ones and check if are well formed
"""
def filter_request_params(params) do
params_map =
Enum.map(params, fn {key, value} ->
result =
case key do
... | 24.764706 | 90 | 0.460468 |
2868f1034674058da4fa7d5b3100b1d709fda09d | 77 | exs | Elixir | test/views/layout_view_test.exs | erickgnavar/tweet_map | 4c8839e35dc96cd8d6ca12fb2895496f2a0c100e | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | erickgnavar/tweet_map | 4c8839e35dc96cd8d6ca12fb2895496f2a0c100e | [
"MIT"
] | null | null | null | test/views/layout_view_test.exs | erickgnavar/tweet_map | 4c8839e35dc96cd8d6ca12fb2895496f2a0c100e | [
"MIT"
] | null | null | null | defmodule TweetMap.LayoutViewTest do
use TweetMap.ConnCase, async: true
end | 25.666667 | 36 | 0.831169 |
286902cd3976ce2c5077c1327fbf0bdcc8a7e574 | 2,000 | ex | Elixir | clients/assured_workloads/lib/google_api/assured_workloads/v1beta1/model/google_cloud_assuredworkloads_v1beta1_workload_cjis_settings.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/assured_workloads/lib/google_api/assured_workloads/v1beta1/model/google_cloud_assuredworkloads_v1beta1_workload_cjis_settings.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/assured_workloads/lib/google_api/assured_workloads/v1beta1/model/google_cloud_assuredworkloads_v1beta1_workload_cjis_settings.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... | 34.482759 | 224 | 0.774 |
286911f5986015aaffc2d0cb3c1fff6eb6a8e051 | 221 | exs | Elixir | priv/repo/migrations/20210207205711_add_terms_acceptance.exs | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 9 | 2020-02-26T20:24:38.000Z | 2022-03-22T21:14:52.000Z | priv/repo/migrations/20210207205711_add_terms_acceptance.exs | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 15 | 2020-04-22T19:33:24.000Z | 2022-03-26T15:11:17.000Z | priv/repo/migrations/20210207205711_add_terms_acceptance.exs | smartlogic/Challenge_gov | b4203d1fcfb742dd17ecfadb9e9c56ad836d4254 | [
"CC0-1.0"
] | 4 | 2020-04-27T22:58:57.000Z | 2022-01-14T13:42:09.000Z | defmodule ChallengeGov.Repo.Migrations.AddTermsAcceptance do
use Ecto.Migration
def change do
alter table(:solutions) do
add :terms_accepted, :boolean
add :review_verified, :boolean
end
end
end
| 20.090909 | 60 | 0.728507 |
28691dbbb67aae08aa2b91b4c6129f8ef97eb34c | 1,238 | exs | Elixir | mix.exs | Havvy/phoenix | 37c4053bba75beca5dabf7c1b8cb71cd7e371674 | [
"MIT"
] | null | null | null | mix.exs | Havvy/phoenix | 37c4053bba75beca5dabf7c1b8cb71cd7e371674 | [
"MIT"
] | null | null | null | mix.exs | Havvy/phoenix | 37c4053bba75beca5dabf7c1b8cb71cd7e371674 | [
"MIT"
] | null | null | null | defmodule Phoenix.Mixfile do
use Mix.Project
def project do
[app: :phoenix,
version: "0.7.0-dev",
elixir: "~> 1.0.2 or ~> 1.1-dev",
deps: deps,
package: [
contributors: ["Chris McCord", "Darko Fabijan", "José Valim"],
licenses: ["MIT"],
links: %{github: "https://github.... | 29.47619 | 78 | 0.575121 |
286929576551064e810a78945b159615c40bfaf8 | 615 | exs | Elixir | apps/day02/mix.exs | jochumb/aoc2017 | 813851fcab9270adea1bc532335f2228f5c015be | [
"MIT"
] | null | null | null | apps/day02/mix.exs | jochumb/aoc2017 | 813851fcab9270adea1bc532335f2228f5c015be | [
"MIT"
] | null | null | null | apps/day02/mix.exs | jochumb/aoc2017 | 813851fcab9270adea1bc532335f2228f5c015be | [
"MIT"
] | null | null | null | defmodule Day02.Mixfile do
use Mix.Project
def project do
[
app: :day02,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod... | 19.21875 | 59 | 0.554472 |
2869335a6f266e803748f653718c009a1259e7e4 | 108 | ex | Elixir | lib/antikythera_instance_example.ex | naru-hiyoko/antikythera_instance_example | a8a54151f02c22c88d4a7d38877bcaf968516666 | [
"Apache-2.0"
] | null | null | null | lib/antikythera_instance_example.ex | naru-hiyoko/antikythera_instance_example | a8a54151f02c22c88d4a7d38877bcaf968516666 | [
"Apache-2.0"
] | null | null | null | lib/antikythera_instance_example.ex | naru-hiyoko/antikythera_instance_example | a8a54151f02c22c88d4a7d38877bcaf968516666 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2020 ACCESS CO., LTD. All rights reserved.
defmodule AntikytheraInstanceExample do
end
| 21.6 | 62 | 0.796296 |
286945bf4b2a0c9d3572cba4df1cae59a667e287 | 2,076 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/purge_products_request.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/purge_products_request.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/purge_products_request.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... | 39.169811 | 173 | 0.737476 |
2869532842a8ee6d3a7df1324a3192187038fa3f | 2,661 | exs | Elixir | test/firmware_service_test.exs | ghitchens/nerves_firmware_http | 4fad039d4a5b7eaeef871d0f138bcf1022718336 | [
"Apache-2.0"
] | 14 | 2016-08-03T10:45:44.000Z | 2021-11-08T11:19:24.000Z | test/firmware_service_test.exs | ghitchens/nerves_firmware_http | 4fad039d4a5b7eaeef871d0f138bcf1022718336 | [
"Apache-2.0"
] | 1 | 2019-10-10T17:30:26.000Z | 2019-10-15T11:55:31.000Z | test/firmware_service_test.exs | ghitchens/nerves_firmware_http | 4fad039d4a5b7eaeef871d0f138bcf1022718336 | [
"Apache-2.0"
] | 1 | 2019-10-08T18:05:01.000Z | 2019-10-08T18:05:01.000Z | defmodule Nerves.Firmware.HTTP.Test do
@moduledoc false
use ExUnit.Case
doctest Nerves.Firmware.HTTP
require Logger
@app_id :nerves_firmware_http
@http_port Application.get_env(:nerves_firmware_http, :port, 8988)
@http_path Application.get_env(:nerves_firmware_http, :port, "/firmware")
@http_uri Path.j... | 31.305882 | 89 | 0.701992 |
2869555c54a2c3b0d8a4b30065d31aa0fad925ba | 2,302 | ex | Elixir | clients/os_config/lib/google_api/os_config/v1/model/os_policy_resource_file.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/os_config/lib/google_api/os_config/v1/model/os_policy_resource_file.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/os_config/lib/google_api/os_config/v1/model/os_policy_resource_file.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... | 41.107143 | 251 | 0.727194 |
2869839376fe7e01cbc7b7c070a60df687fec107 | 1,476 | exs | Elixir | config/config.exs | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | config/config.exs | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | null | null | null | config/config.exs | nuxlli/elixir-google-api | ecb8679ac7282b7dd314c3e20c250710ec6a7870 | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.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... | 37.846154 | 73 | 0.762195 |
2869b06f4262eb660bd4f5dbae2331581433f21b | 1,607 | ex | Elixir | lib/op_api_web.ex | operate-bsv/api.operatebsv.org | c31a5d2a050cd88d99a94ed2a0e3bcc987114220 | [
"MIT"
] | 3 | 2019-11-06T23:40:55.000Z | 2020-06-20T22:33:25.000Z | lib/op_api_web.ex | operate-bsv/api.operatebsv.org | c31a5d2a050cd88d99a94ed2a0e3bcc987114220 | [
"MIT"
] | null | null | null | lib/op_api_web.ex | operate-bsv/api.operatebsv.org | c31a5d2a050cd88d99a94ed2a0e3bcc987114220 | [
"MIT"
] | null | null | null | defmodule OpApiWeb 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 OpApiWeb, :controller
use OpApiWeb, :view
The definitions below will be executed for every view,
controller, etc, s... | 22.957143 | 83 | 0.684505 |
2869b6c6e4861aa2862e47fab2f305162d7490f4 | 250 | ex | Elixir | lib/phone/br/ms.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 97 | 2016-04-05T13:08:41.000Z | 2021-12-25T13:08:34.000Z | lib/phone/br/ms.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 70 | 2016-06-14T00:56:00.000Z | 2022-02-10T19:43:14.000Z | lib/phone/br/ms.ex | davidkovsky/phone | 83108ab1042efe62778c7363f5d02ef888883408 | [
"Apache-2.0"
] | 31 | 2016-04-21T22:26:12.000Z | 2022-01-24T21:40:00.000Z | defmodule Phone.BR.MS do
@moduledoc false
use Helper.Area
def regex, do: ~r/^(55)(67)([2-5|89].{7}|9[89].{7})$/
def area_name, do: "Mato Grosso do Sul"
def area_type, do: "state"
def area_abbreviation, do: "MS"
matcher(["5567"])
end
| 19.230769 | 55 | 0.628 |
2869bea5b5bfad946d99d3551abfd297e37150f5 | 1,446 | exs | Elixir | test/test_helper.exs | thefuture2092/coherence | 377d91ff01622773b5a9ec39fadf1f8c27328879 | [
"MIT"
] | 8 | 2019-01-15T08:57:07.000Z | 2020-08-26T13:43:01.000Z | test/test_helper.exs | thefuture2092/coherence | 377d91ff01622773b5a9ec39fadf1f8c27328879 | [
"MIT"
] | 2 | 2019-05-29T17:49:10.000Z | 2019-06-18T21:39:22.000Z | test/test_helper.exs | thefuture2092/coherence | 377d91ff01622773b5a9ec39fadf1f8c27328879 | [
"MIT"
] | 22 | 2018-12-10T02:15:18.000Z | 2020-10-06T08:42:22.000Z | ExUnit.start()
Application.ensure_all_started(:coherence)
Code.require_file("./support/gettext.exs", __DIR__)
Code.require_file("./support/messages.exs", __DIR__)
Code.require_file("./support/view_helpers.exs", __DIR__)
Code.require_file("./support/web.exs", __DIR__)
Code.require_file("./support/dummy_controller.exs",... | 42.529412 | 81 | 0.783541 |
2869d0975aaf6cb2490f7165f08d7f2c73ed7f5a | 2,449 | exs | Elixir | test/unit/hologram/template/transformers/component_transformer_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | test/unit/hologram/template/transformers/component_transformer_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | test/unit/hologram/template/transformers/component_transformer_test.exs | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Template.ComponentTransformerTest do
use Hologram.Test.UnitCase, async: true
alias Hologram.Compiler.Context
alias Hologram.Compiler.IR.{
AdditionOperator,
AliasDirective,
IntegerType,
ModuleAttributeOperator,
ModuleDefinition,
TupleType
}
alias Hologram.Template.... | 23.548077 | 86 | 0.595753 |
2869f7f52daa7eab373e3a9fd53ecb19eeb049a8 | 412 | exs | Elixir | rna-transcription/dna.exs | myrridin/exercism-elixir | 45edff443759bb3e23e5c9746e04927d9fa40f3f | [
"MIT"
] | null | null | null | rna-transcription/dna.exs | myrridin/exercism-elixir | 45edff443759bb3e23e5c9746e04927d9fa40f3f | [
"MIT"
] | null | null | null | rna-transcription/dna.exs | myrridin/exercism-elixir | 45edff443759bb3e23e5c9746e04927d9fa40f3f | [
"MIT"
] | null | null | null | defmodule DNA do
@mapping %{?G => ?C, ?C => ?G, ?T => ?A, ?A => ?U}
@doc """
Transcribes a character list representing DNA nucleotides to RNA
## Examples
iex> DNA.to_rna('ACTG')
'UGAC'
"""
@spec to_rna([char]) :: [char]
def to_rna(dna) do
_to_rna(dna, [])
end
defp _to_rna([], rna), do: rna... | 18.727273 | 66 | 0.570388 |
286a259059aa53f9dbfa0d265a2777cb9b96a934 | 619 | ex | Elixir | test/support/gen/plug/pre_test_header.ex | feng19/oasis | 36e81db1413f24f153f960b1ee3706858ec1f952 | [
"MIT"
] | 11 | 2021-02-24T09:21:11.000Z | 2021-12-26T03:51:25.000Z | test/support/gen/plug/pre_test_header.ex | feng19/oasis | 36e81db1413f24f153f960b1ee3706858ec1f952 | [
"MIT"
] | 5 | 2021-03-18T14:15:37.000Z | 2022-03-02T09:53:42.000Z | test/support/gen/plug/pre_test_header.ex | feng19/oasis | 36e81db1413f24f153f960b1ee3706858ec1f952 | [
"MIT"
] | 6 | 2021-02-24T09:21:01.000Z | 2021-11-16T08:45:03.000Z | defmodule Oasis.Gen.Plug.PreTestHeader do
use Oasis.Controller
use Plug.ErrorHandler
# Notice:
# all header name are downcased when generate `pre-*` handler module
plug(
Oasis.Plug.RequestValidator,
header_schema: %{
"items" => %{
"required" => true,
"schema" => %ExJsonSchema.S... | 22.925926 | 73 | 0.609047 |
286a53338804b120c058eaeec148e08c3c46a756 | 3,316 | ex | Elixir | lib/weber/http/params.ex | Mendor/weber | 3c4fceff2bc6cf6ce38138b7e1c042c3f2536221 | [
"MIT"
] | 1 | 2018-02-21T07:56:22.000Z | 2018-02-21T07:56:22.000Z | lib/weber/http/params.ex | Mendor/weber | 3c4fceff2bc6cf6ce38138b7e1c042c3f2536221 | [
"MIT"
] | null | null | null | lib/weber/http/params.ex | Mendor/weber | 3c4fceff2bc6cf6ce38138b7e1c042c3f2536221 | [
"MIT"
] | null | null | null | defmodule Weber.Http.Params do
@moduledoc """
API for getting request params
## Example
defmodule Simplechat.Main.Login do
import Weber.Http.Params
def render_login("GET", []) do
# get body request
body = get_body()
#
# Do something with para... | 19.391813 | 63 | 0.475573 |
286a5906e3a5b7a83c3e28d62f76969a0f62ccf6 | 2,080 | ex | Elixir | clients/iap/lib/google_api/iap/v1/model/access_settings.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/iap/lib/google_api/iap/v1/model/access_settings.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"Apache-2.0"
] | null | null | null | clients/iap/lib/google_api/iap/v1/model/access_settings.ex | kaaboaye/elixir-google-api | 1896784c4342151fd25becd089a5beb323eff567 | [
"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... | 39.245283 | 157 | 0.735577 |
286a7c50a70b16eb290a174a217f7229b144bd2e | 25,638 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/api/floodlight_activities.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/floodlight_activities.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/floodlight_activities.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... | 45.137324 | 569 | 0.621148 |
286a7ef3929db22444f17aa25a29f4cbc473b405 | 2,112 | ex | Elixir | lib/uploadcare_ex/api/upload/url.ex | EevanW/uploadcare_ex | a9ad604285a9abb517420a1fec7b5c589ab9417a | [
"MIT"
] | null | null | null | lib/uploadcare_ex/api/upload/url.ex | EevanW/uploadcare_ex | a9ad604285a9abb517420a1fec7b5c589ab9417a | [
"MIT"
] | null | null | null | lib/uploadcare_ex/api/upload/url.ex | EevanW/uploadcare_ex | a9ad604285a9abb517420a1fec7b5c589ab9417a | [
"MIT"
] | null | null | null | defmodule UploadcareEx.API.Upload.Url do
use Retry
import UploadcareEx.API.Urls
require Logger
@moduledoc false
alias UploadcareEx.{Request, Config}
@spec upload(binary()) :: {:ok, binary()} | {:error, any()}
def upload(url) do
with {:ok, token} <- url |> try_to_upload(),
{:ok, result} <-... | 26.734177 | 98 | 0.601326 |
286a8cd800e3d55575e9e612109a1f614331b258 | 1,309 | ex | Elixir | web/views/error_helpers.ex | tizpuppi/kickstart | aabd3032859bf78ffb1eee46c955c6ecc126a603 | [
"MIT"
] | null | null | null | web/views/error_helpers.ex | tizpuppi/kickstart | aabd3032859bf78ffb1eee46c955c6ecc126a603 | [
"MIT"
] | null | null | null | web/views/error_helpers.ex | tizpuppi/kickstart | aabd3032859bf78ffb1eee46c955c6ecc126a603 | [
"MIT"
] | null | null | null | defmodule Kickstart.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field, opts \\ []) do
{class_name, _opts} = Keyword.pop(opts, :class, "help-block")
i... | 30.44186 | 75 | 0.666157 |
286aadbe2fbbc1fa82c35abc9d45644c2bb2b026 | 294 | ex | Elixir | lib/postpone/application.ex | marcinwysocki/postpone | e57e3fb78ac40273eb6f1a90267deabca2f5f3ba | [
"MIT"
] | null | null | null | lib/postpone/application.ex | marcinwysocki/postpone | e57e3fb78ac40273eb6f1a90267deabca2f5f3ba | [
"MIT"
] | null | null | null | lib/postpone/application.ex | marcinwysocki/postpone | e57e3fb78ac40273eb6f1a90267deabca2f5f3ba | [
"MIT"
] | null | null | null | defmodule Postpone.Application do
@moduledoc false
use Application
def start(_type, _args) do
children = if Mix.env() === :test, do: [Postpone.Mock.Server], else: []
opts = [strategy: :one_for_one, name: Postpone.Supervisor]
Supervisor.start_link(children, opts)
end
end
| 22.615385 | 75 | 0.697279 |
286aebd27b1b022e5c0fba627cb1455aa29a0377 | 893 | exs | Elixir | test/ex_cli/normalizer_test.exs | KTSCode/ex_cli | 3103ae5ef339c4d3b894eaa031484839369212b5 | [
"MIT"
] | 126 | 2016-05-10T23:59:19.000Z | 2018-09-23T07:29:49.000Z | test/ex_cli/normalizer_test.exs | KTSCode/ex_cli | 3103ae5ef339c4d3b894eaa031484839369212b5 | [
"MIT"
] | 11 | 2016-05-11T12:34:29.000Z | 2018-08-30T10:14:32.000Z | test/ex_cli/normalizer_test.exs | KTSCode/ex_cli | 3103ae5ef339c4d3b894eaa031484839369212b5 | [
"MIT"
] | 11 | 2016-05-11T21:17:14.000Z | 2018-05-12T22:01:56.000Z | defmodule ExCLI.NormalizerTest do
use ExUnit.Case
alias ExCLI.Normalizer
test "normalize error" do
assert Normalizer.normalize(["-", "bar"]) == {:error, :empty_option, []}
assert Normalizer.normalize(["--", "bar"]) == {:error, :empty_option, []}
end
test "normalize args" do
assert Normalizer.no... | 31.892857 | 119 | 0.611422 |
286af3decaf2ad8c509fbd634c2b93e00422806a | 54 | exs | Elixir | elixir/20.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | elixir/20.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | elixir/20.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | %{ "one" => 1, :two => 2, {1,1,1} => 3}
|> IO.inspect
| 18 | 39 | 0.388889 |
286af83f92acf41c49ca9b1d22d40e9f274e7f1d | 757 | ex | Elixir | lib/chatter/conversation_user.ex | lucasmelin/Chatter | 023595dab54bc86d94062a61628c344fa5d7f56d | [
"MIT"
] | null | null | null | lib/chatter/conversation_user.ex | lucasmelin/Chatter | 023595dab54bc86d94062a61628c344fa5d7f56d | [
"MIT"
] | 1 | 2020-07-16T23:18:36.000Z | 2020-07-16T23:18:36.000Z | lib/chatter/conversation_user.ex | lucasmelin/Chatter | 023595dab54bc86d94062a61628c344fa5d7f56d | [
"MIT"
] | null | null | null | defmodule Chatter.ConversationUser do
use Ecto.Schema
import Ecto.Changeset
alias Chatter.{Conversation, User, Repo}
schema "conversation_users" do
belongs_to :conversation, Conversation
belongs_to :user, User
timestamps()
end
def find_by(conds) do
Repo.get_by(__MODULE__, conds)
end
... | 23.65625 | 91 | 0.730515 |
286b08ab10cbd901696eef00a112ae242e6b8208 | 1,362 | exs | Elixir | exercises/practice/darts/test/darts_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/practice/darts/test/darts_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/practice/darts/test/darts_test.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule DartsTest do
use ExUnit.Case
# @tag :pending
test "Missed target" do
assert Darts.score({-9, 9}) == 0
end
@tag :pending
test "On the outer circle" do
assert Darts.score({0, 10}) == 1
end
@tag :pending
test "On the middle circle" do
assert Darts.score({-5, 0}) == 5
end
@ta... | 19.73913 | 68 | 0.614537 |
286b0995ecfa42eb401f61b456cd2fe8b797a880 | 3,268 | ex | Elixir | lib/livebook_web/live/session_live/attached_live.ex | romkor/livebook | ac4bb63d924148c0b21376d635d47470c56cfad1 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/session_live/attached_live.ex | romkor/livebook | ac4bb63d924148c0b21376d635d47470c56cfad1 | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/session_live/attached_live.ex | romkor/livebook | ac4bb63d924148c0b21376d635d47470c56cfad1 | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.SessionLive.AttachedLive do
use LivebookWeb, :live_view
alias Livebook.{Session, Runtime, Utils}
@impl true
def mount(_params, %{"session_id" => session_id, "current_runtime" => current_runtime}, socket) do
{:ok,
assign(socket,
session_id: session_id,
error_message... | 33.346939 | 105 | 0.597613 |
286b75d3940be9bc457e10007a83dea050414e7d | 2,494 | ex | Elixir | apps/nectar/web/models/product.ex | saurabharch/nectarcommerce | 3497ab8f0c3fcf5a679dc112d905fea9e6df45ac | [
"MIT"
] | 356 | 2016-03-16T12:37:28.000Z | 2021-12-18T03:22:39.000Z | apps/nectar/web/models/product.ex | sshyran/elixir-nectar-commerce | 87f846ef1bc5cd2d675165b468ae7014dd4fe354 | [
"MIT"
] | 30 | 2016-03-16T09:19:10.000Z | 2021-01-12T08:10:52.000Z | apps/nectar/web/models/product.ex | sshyran/nectarcommerce | 3497ab8f0c3fcf5a679dc112d905fea9e6df45ac | [
"MIT"
] | 72 | 2016-03-16T13:32:14.000Z | 2021-03-23T11:27:43.000Z | defmodule Nectar.Product do
use Nectar.Web, :model
use Arc.Ecto.Model
schema "products" do
field :name, :string
field :description, :string
field :available_on, Ecto.Date
field :discontinue_on, Ecto.Date
field :slug, :string
has_one :master, Nectar.Variant, on_delete: :nilify_all # As th... | 34.164384 | 121 | 0.736969 |
286bc398491447c5c6a571c6ca54f33a57603104 | 2,086 | exs | Elixir | mix.exs | infer-beam/infer | de8bec47635ffdcdefc2ef6ff298101c62681ae5 | [
"MIT"
] | 5 | 2022-01-24T10:08:53.000Z | 2022-03-09T10:15:14.000Z | mix.exs | infer-beam/infer | de8bec47635ffdcdefc2ef6ff298101c62681ae5 | [
"MIT"
] | 1 | 2022-03-15T09:58:33.000Z | 2022-03-15T09:58:33.000Z | mix.exs | infer-beam/infer | de8bec47635ffdcdefc2ef6ff298101c62681ae5 | [
"MIT"
] | 1 | 2022-02-22T11:42:25.000Z | 2022-02-22T11:42:25.000Z | defmodule Infer.MixProject do
use Mix.Project
@source_url "https://github.com/infer-beam/infer"
@version "0.3.0"
def project do
[
app: :infer,
version: @version,
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
package: pa... | 23.177778 | 77 | 0.551294 |
286bd6fb157d934610f218999b3488cfb45ee834 | 4,888 | ex | Elixir | lib/money/exchange_rates/exchange_rates_supervisor.ex | jeremyjh/money | 236d14eb7bcf1ef96982bd65081cf676287d5560 | [
"Apache-2.0"
] | null | null | null | lib/money/exchange_rates/exchange_rates_supervisor.ex | jeremyjh/money | 236d14eb7bcf1ef96982bd65081cf676287d5560 | [
"Apache-2.0"
] | null | null | null | lib/money/exchange_rates/exchange_rates_supervisor.ex | jeremyjh/money | 236d14eb7bcf1ef96982bd65081cf676287d5560 | [
"Apache-2.0"
] | null | null | null | defmodule Money.ExchangeRates.Supervisor do
@moduledoc """
Functions to manage the starting, stopping,
deleting and restarting of the Exchange
Rates Retriever.
"""
use Supervisor
alias Money.ExchangeRates
@child_name ExchangeRates.Retriever
@doc """
Starts the Exchange Rates supervisor and
opti... | 27.615819 | 89 | 0.724223 |
286be6e535c103b21e31084111757599a884345a | 1,119 | exs | Elixir | config/config.exs | sgtpepper43/namex | 902a2e140d16838fd40ab6c5cc58775747937b81 | [
"MIT"
] | 1 | 2021-09-24T22:40:00.000Z | 2021-09-24T22:40:00.000Z | config/config.exs | dabaer/namerx | 5d4ce29dcba87c2273fe5f274937ab5357ffd352 | [
"Unlicense"
] | null | null | null | config/config.exs | dabaer/namerx | 5d4ce29dcba87c2273fe5f274937ab5357ffd352 | [
"Unlicense"
] | 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.096774 | 73 | 0.75067 |
286bedc6b5466623a819552372e2b6b0c55b0148 | 1,546 | ex | Elixir | server/satori/lib/satori_web/views/error_helpers.ex | lastmeta/Satori | cb321ee53a15fe8cba8fcdd483eeb6acc8dab3ea | [
"MIT"
] | 3 | 2022-02-16T17:25:53.000Z | 2022-02-25T05:24:15.000Z | server/satori/lib/satori_web/views/error_helpers.ex | lastmeta/Satori | cb321ee53a15fe8cba8fcdd483eeb6acc8dab3ea | [
"MIT"
] | 9 | 2022-02-16T20:23:55.000Z | 2022-03-26T17:27:23.000Z | server/satori/lib/satori_web/views/error_helpers.ex | lastmeta/Satori | cb321ee53a15fe8cba8fcdd483eeb6acc8dab3ea | [
"MIT"
] | null | null | null | defmodule SatoriWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag(:... | 32.208333 | 75 | 0.664942 |
286bf34418618dcdcb46327fa84c2a8302d733d1 | 165 | ex | Elixir | web/views/analytics_view.ex | twined/brando_analytics | 19a3a687f9eee52aa75b7c2926566a3a27f5caa3 | [
"MIT"
] | 1 | 2020-01-13T23:45:34.000Z | 2020-01-13T23:45:34.000Z | web/views/analytics_view.ex | twined/brando_analytics | 19a3a687f9eee52aa75b7c2926566a3a27f5caa3 | [
"MIT"
] | null | null | null | web/views/analytics_view.ex | twined/brando_analytics | 19a3a687f9eee52aa75b7c2926566a3a27f5caa3 | [
"MIT"
] | null | null | null | defmodule Brando.Admin.AnalyticsView do
@moduledoc """
View for the Brando Analytics module.
"""
use Brando.Web, :view
import Brando.Analytics.Gettext
end
| 20.625 | 39 | 0.739394 |
286c1cfa39ea33338fbb3ac0a307b180d9d479f9 | 1,191 | ex | Elixir | run-length-encoding/lib/run_length_encoder.ex | wasi0013/exercism | e00800e63cfb4024ce965fa49365acc5dd04a87b | [
"MIT"
] | 1 | 2020-04-06T19:41:50.000Z | 2020-04-06T19:41:50.000Z | run-length-encoding/lib/run_length_encoder.ex | wasi0013/exercism | e00800e63cfb4024ce965fa49365acc5dd04a87b | [
"MIT"
] | null | null | null | run-length-encoding/lib/run_length_encoder.ex | wasi0013/exercism | e00800e63cfb4024ce965fa49365acc5dd04a87b | [
"MIT"
] | null | null | null | defmodule RunLengthEncoder do
@doc """
Generates a string where consecutive elements are represented as a data value and count.
"AABBBCCCC" => "2A3B4C"
For this example, assume all input are strings, that are all uppercase letters.
It should also be able to reconstruct the data into its original form.
"2A3B... | 36.090909 | 99 | 0.619647 |
286c5f234e5fcf10265b96a1eecd0254b7f78643 | 13,995 | exs | Elixir | test/oli/publishing_test.exs | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | test/oli/publishing_test.exs | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | test/oli/publishing_test.exs | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | defmodule Oli.PublishingTest do
use Oli.DataCase
alias Oli.Authoring.Course
alias Oli.Publishing
alias Oli.Publishing.Publication
alias Oli.Publishing.PublishedResource
alias Oli.Resources
alias Oli.Delivery.Sections
alias Oli.Delivery.Sections.Section
alias Oli.Authoring.Editing.PageEditor
alias O... | 35.976864 | 178 | 0.659307 |
286c7a4a1073f0cd4636993b738e7daf98bbaafa | 2,192 | ex | Elixir | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_execution_policy.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_execution_policy.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_execution_policy.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... | 42.153846 | 664 | 0.76688 |
286c891f783e3d54df34845d139b6817a6e7a310 | 1,876 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_request_rows.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_request_rows.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_request_rows.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.784314 | 183 | 0.749467 |
286ce786f95a704125f8e8cd92b79f5d74bd8645 | 1,881 | ex | Elixir | implementations/elixir/ockam/ockam/lib/ockam/stream/client/bi_directional/publisher_proxy.ex | psinghal20/ockam | 55c2787eb2392c919156c6dded9f31a5249541e1 | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam/lib/ockam/stream/client/bi_directional/publisher_proxy.ex | psinghal20/ockam | 55c2787eb2392c919156c6dded9f31a5249541e1 | [
"Apache-2.0"
] | null | null | null | implementations/elixir/ockam/ockam/lib/ockam/stream/client/bi_directional/publisher_proxy.ex | psinghal20/ockam | 55c2787eb2392c919156c6dded9f31a5249541e1 | [
"Apache-2.0"
] | null | null | null | defmodule Ockam.Stream.Client.BiDirectional.PublisherProxy do
@moduledoc """
Publisher proxy worker to add return_stream and encode Ockam messages to binary
Uses internal Stream.Client.Publisher through which it sends messages
"""
use Ockam.Worker
alias Ockam.Message
alias Ockam.Stream.Client.Publisher
... | 29.390625 | 85 | 0.710792 |
286d317e52897ed11e395559b41df47ab07ff646 | 171 | ex | Elixir | dungeon_crawl/lib/dungeon_crawl/room/triggers/exit.ex | obsessedyouth/potions-and-stuff | 7e179187efead98e65c1ecf0aa7a3b810d36108c | [
"MIT"
] | null | null | null | dungeon_crawl/lib/dungeon_crawl/room/triggers/exit.ex | obsessedyouth/potions-and-stuff | 7e179187efead98e65c1ecf0aa7a3b810d36108c | [
"MIT"
] | null | null | null | dungeon_crawl/lib/dungeon_crawl/room/triggers/exit.ex | obsessedyouth/potions-and-stuff | 7e179187efead98e65c1ecf0aa7a3b810d36108c | [
"MIT"
] | null | null | null | defmodule DungeonCrawl.Room.Triggers.Exit do
@behaviour DungeonCrawl.Room.Trigger
@impl DungeonCrawl.Room.Trigger
def run(character, _), do: {character, :exit}
end
| 24.428571 | 47 | 0.77193 |
286d5e0f0b9eabbf848742482a1f9074f5c60adf | 985 | ex | Elixir | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/deserializer.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/deserializer.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/proximity_beacon/lib/google_api/proximity_beacon/v1beta1/deserializer.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... | 37.884615 | 77 | 0.768528 |
286d6c348d109bb0b5d9311cfe0865dc43bf5229 | 819 | ex | Elixir | lib/bus_kiosk_web/router.ex | mitchellhenke/bus_kiosk | 9814b0b10190bb06c823b00315616391100c5bfa | [
"BSD-3-Clause"
] | 2 | 2020-02-21T15:40:27.000Z | 2020-12-06T21:50:39.000Z | lib/bus_kiosk_web/router.ex | mitchellhenke/bus_kiosk | 9814b0b10190bb06c823b00315616391100c5bfa | [
"BSD-3-Clause"
] | 3 | 2020-02-19T17:06:24.000Z | 2020-04-20T14:33:07.000Z | lib/bus_kiosk_web/router.ex | mitchellhenke/bus_kiosk | 9814b0b10190bb06c823b00315616391100c5bfa | [
"BSD-3-Clause"
] | null | null | null | defmodule BusKioskWeb.Router do
use BusKioskWeb, :router
import Phoenix.LiveView.Router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :fetch_live_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug ... | 20.475 | 58 | 0.680098 |
286d8ee3865a4af228f6922fe24bdae6dff6975a | 449 | ex | Elixir | lib/logi_std/filter/severity.ex | sile/logi_stdlib_ex | 452d952332383e7b95b279950596959af69fae5f | [
"MIT"
] | null | null | null | lib/logi_std/filter/severity.ex | sile/logi_stdlib_ex | 452d952332383e7b95b279950596959af69fae5f | [
"MIT"
] | null | null | null | lib/logi_std/filter/severity.ex | sile/logi_stdlib_ex | 452d952332383e7b95b279950596959af69fae5f | [
"MIT"
] | null | null | null | defmodule LogiStd.Filter.Severity do
@moduledoc """
A `Logi.Filter` implementation which filters log messages by given severity condition.
"""
@doc """
Creates a new filter instance.
If a log message does not match `severity_condition`, it is discarded by the filter.
"""
@spec new(Logi.Condition.sever... | 28.0625 | 88 | 0.746102 |
286d9600873a83e080c98aa5fd445cd68b66c12f | 702 | ex | Elixir | lib/pagarmex.ex | gullitmiranda/pagarmex | 7d7072c9aa9ffda64ac24e38e6b108ef25530939 | [
"MIT"
] | 2 | 2018-10-02T14:16:13.000Z | 2021-12-18T15:03:57.000Z | lib/pagarmex.ex | gullitmiranda/pagarmex | 7d7072c9aa9ffda64ac24e38e6b108ef25530939 | [
"MIT"
] | 2 | 2017-11-29T22:52:56.000Z | 2018-12-06T09:07:43.000Z | lib/pagarmex.ex | gullitmiranda/pagarmex | 7d7072c9aa9ffda64ac24e38e6b108ef25530939 | [
"MIT"
] | null | null | null | defmodule Pagarmex do
@moduledoc """
A PagarMe Library for Elixir.
### Configuration
use Mix.Config
config :pagarmex, api_key: System.get_env("PAGARME_API_KEY")
# optional
# endpoint: "https://api.pagar.me/1"
"""
def version do
Mix.Project.config
|> Dict.get(... | 21.9375 | 101 | 0.633903 |
286ecbacc3f72c674fb03ec482536d5d85fb6538 | 1,200 | ex | Elixir | hacker_news/lib/hacker_news_web/router.ex | suulcoder/ElixirStories | 6aaf8cdaf834b019d02f8c82461f0f7825540629 | [
"MIT"
] | null | null | null | hacker_news/lib/hacker_news_web/router.ex | suulcoder/ElixirStories | 6aaf8cdaf834b019d02f8c82461f0f7825540629 | [
"MIT"
] | null | null | null | hacker_news/lib/hacker_news_web/router.ex | suulcoder/ElixirStories | 6aaf8cdaf834b019d02f8c82461f0f7825540629 | [
"MIT"
] | null | null | null | defmodule HackerNewsWeb.Router do
use HackerNewsWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", HackerNewsWeb do
... | 26.086957 | 70 | 0.703333 |
286f46ed412586a316fe59c7553f31eafc42a0a3 | 793 | ex | Elixir | lib/packages_bot/application.ex | thiamsantos/packages_bot | 4e3e3f942c075876c93fc901b3034355a26bd627 | [
"Apache-2.0"
] | 4 | 2019-07-08T15:46:38.000Z | 2021-03-29T12:05:25.000Z | lib/packages_bot/application.ex | thiamsantos/packages_bot | 4e3e3f942c075876c93fc901b3034355a26bd627 | [
"Apache-2.0"
] | 13 | 2021-03-14T21:31:28.000Z | 2021-12-20T11:56:45.000Z | lib/packages_bot/application.ex | thiamsantos/packages_bot | 4e3e3f942c075876c93fc901b3034355a26bd627 | [
"Apache-2.0"
] | 1 | 2019-07-08T18:40:23.000Z | 2019-07-08T18:40:23.000Z | defmodule PackagesBot.Application do
@moduledoc false
use Application
def start(_type, _args) do
children = children(env())
{:ok, _} = Logger.add_backend(Sentry.LoggerBackend)
opts = [strategy: :one_for_one, name: PackagesBot.Supervisor]
Supervisor.start_link(children, opts)
end
defp chil... | 22.027778 | 65 | 0.689786 |
286f82a9986353b10ef5f9523c3d5255ab6528f6 | 1,061 | ex | Elixir | apps/nerves_hub_api/lib/nerves_hub_api_web/views/device_view.ex | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 111 | 2018-07-25T01:07:51.000Z | 2022-01-25T17:03:01.000Z | apps/nerves_hub_api/lib/nerves_hub_api_web/views/device_view.ex | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 361 | 2018-07-22T12:53:00.000Z | 2022-03-31T18:50:34.000Z | apps/nerves_hub_api/lib/nerves_hub_api_web/views/device_view.ex | tonnenpinguin/nerves_hub_web | 9d36921eb7e20d20a3e3bd308cc98ad7b60cfa72 | [
"Apache-2.0"
] | 54 | 2018-08-26T02:58:04.000Z | 2022-03-09T10:12:19.000Z | defmodule NervesHubAPIWeb.DeviceView do
use NervesHubAPIWeb, :view
alias NervesHubAPIWeb.DeviceView
alias NervesHubDevice.Presence
defdelegate device_status(device), to: Presence
def render("index.json", %{devices: devices}) do
%{data: render_many(devices, DeviceView, "device.json")}
end
def render... | 30.314286 | 71 | 0.707823 |
286f85ef22244705d9f2e2c7e44dd5cd8e536400 | 35,403 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/target_pools.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/target_pools.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/target_pools.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... | 52.604755 | 1,213 | 0.694235 |
286f8fa274afad8f7946451b14c446c92e0514a2 | 1,185 | ex | Elixir | lib/quick_polls/web/channels/user_socket.ex | awochna/quick_polls | b599918b795728feda338e6a00f295a97faba08a | [
"MIT"
] | null | null | null | lib/quick_polls/web/channels/user_socket.ex | awochna/quick_polls | b599918b795728feda338e6a00f295a97faba08a | [
"MIT"
] | 6 | 2017-04-10T05:01:04.000Z | 2017-04-21T06:02:03.000Z | lib/quick_polls/web/channels/user_socket.ex | awochna/quick_polls | b599918b795728feda338e6a00f295a97faba08a | [
"MIT"
] | null | null | null | defmodule QuickPolls.Web.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", QuickPolls.Web.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to veri... | 31.184211 | 86 | 0.703797 |
286fb424ea0e286acfc3756e478e4dd3038079b0 | 8,033 | exs | Elixir | test/twilio_signature_plug_test.exs | dershodan/twilio_signature_plug | 2f0a9a2bdca6747c9198aca52e0cba0abbef8ad0 | [
"MIT"
] | 2 | 2021-09-21T19:37:17.000Z | 2021-11-24T12:14:59.000Z | test/twilio_signature_plug_test.exs | dershodan/twilio_signature_plug | 2f0a9a2bdca6747c9198aca52e0cba0abbef8ad0 | [
"MIT"
] | null | null | null | test/twilio_signature_plug_test.exs | dershodan/twilio_signature_plug | 2f0a9a2bdca6747c9198aca52e0cba0abbef8ad0 | [
"MIT"
] | 1 | 2021-11-24T12:44:41.000Z | 2021-11-24T12:44:41.000Z | defmodule TwilioSignaturePlugTest do
use ExUnit.Case
defmodule TestTwilioSignatureErrorHandler do
@moduledoc """
This is just a ErrorHandler that won't cause Responses
so in our tests the conn remains easy to check
"""
alias Plug.Conn
@spec call(Conn.t(), :not_authenticated) :: Conn.t()
... | 29.751852 | 96 | 0.528819 |
286fb6fd333ba32babc815bf6b81cf5f55bc2a51 | 1,456 | ex | Elixir | lib/furlex/parser/html.ex | chrisalmeida/furlex | 28a2f1eb68e829b98ad805a5113a2a942213c778 | [
"Apache-2.0"
] | 1 | 2019-01-23T13:39:18.000Z | 2019-01-23T13:39:18.000Z | lib/furlex/parser/html.ex | alexcastano/furlex | c8e4e474aa2494285fdc19b133d3ad1ea348add9 | [
"Apache-2.0"
] | null | null | null | lib/furlex/parser/html.ex | alexcastano/furlex | c8e4e474aa2494285fdc19b133d3ad1ea348add9 | [
"Apache-2.0"
] | 1 | 2019-01-11T09:52:03.000Z | 2019-01-11T09:52:03.000Z | defmodule Furlex.Parser.HTML do
@behaviour Furlex.Parser
alias Furlex.Parser.{Facebook, Twitter}
@spec parse(String.t) :: nil | {:ok, Map.t}
def parse(html) do
case Floki.find(html, "meta[name]") do
nil -> {:ok, %{}}
elements ->
content =
elements
|> filter_oth... | 24.677966 | 76 | 0.566621 |
286fd0b737810d087e81c636c9f362ef225b8b6e | 68 | ex | Elixir | lib/speak.ex | ConnorRigby/elixir_speak | d800864f2aeeaf7440d81045185ca37913e96e0a | [
"MIT"
] | 1 | 2018-03-08T23:46:40.000Z | 2018-03-08T23:46:40.000Z | lib/speak.ex | ConnorRigby/elixir_speak | d800864f2aeeaf7440d81045185ca37913e96e0a | [
"MIT"
] | null | null | null | lib/speak.ex | ConnorRigby/elixir_speak | d800864f2aeeaf7440d81045185ca37913e96e0a | [
"MIT"
] | null | null | null | defmodule Speak do
@moduledoc """
Speak to the world!
"""
end
| 11.333333 | 21 | 0.632353 |
287001bdda36c5f3745488e88bedf46bf4d12765 | 2,083 | ex | Elixir | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/counter_options.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/counter_options.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/cloud_kms/lib/google_api/cloud_kms/v1/model/counter_options.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... | 57.861111 | 1,040 | 0.74748 |
28700f0c77ffe7c4270e2d7aaa83843a4f8cc705 | 2,081 | ex | Elixir | lib/teslamate/vehicles.ex | normalfaults/teslamate | 9c61150bd5614728447e21789ab6edc5169b631e | [
"MIT"
] | null | null | null | lib/teslamate/vehicles.ex | normalfaults/teslamate | 9c61150bd5614728447e21789ab6edc5169b631e | [
"MIT"
] | null | null | null | lib/teslamate/vehicles.ex | normalfaults/teslamate | 9c61150bd5614728447e21789ab6edc5169b631e | [
"MIT"
] | null | null | null | defmodule TeslaMate.Vehicles do
use Supervisor
require Logger
alias __MODULE__.Vehicle
alias TeslaMate.Log.Car
alias TeslaMate.Log
@name __MODULE__
def start_link(opts) do
Supervisor.start_link(__MODULE__, opts, name: @name)
end
defdelegate summary(id), to: Vehicle
defdelegate resume_loggin... | 23.647727 | 86 | 0.629505 |
28703a1e6be82efcf79a17143ebcf173ca376137 | 2,840 | ex | Elixir | lib/yaml_elixir/mapper.ex | kianmeng/yaml-elixir | 09d2838f69e5b17f2fa6477e5b85755347c8e293 | [
"MIT"
] | null | null | null | lib/yaml_elixir/mapper.ex | kianmeng/yaml-elixir | 09d2838f69e5b17f2fa6477e5b85755347c8e293 | [
"MIT"
] | null | null | null | lib/yaml_elixir/mapper.ex | kianmeng/yaml-elixir | 09d2838f69e5b17f2fa6477e5b85755347c8e293 | [
"MIT"
] | null | null | null | defmodule YamlElixir.Mapper do
def process(nil, options), do: empty_container(options)
def process(yaml, options) when is_list(yaml), do: Enum.map(yaml, &process(&1, options))
def process(yaml, options) do
yaml
|> _to_map(options)
|> extract_map(options)
end
defp extract_map(nil, options), do: e... | 29.278351 | 93 | 0.660915 |
2870439c8e5bdeec8a25d04cc59fa51166bdc3e6 | 175 | exs | Elixir | priv/repo/migrations/20210523174345_performer_images.exs | codevictory/runosaari.net | 2462409ccf49987fa562b0ae189247c1fe6f1ccc | [
"MIT"
] | 1 | 2021-11-02T07:43:13.000Z | 2021-11-02T07:43:13.000Z | priv/repo/migrations/20210523174345_performer_images.exs | codevictory/runosaari.net | 2462409ccf49987fa562b0ae189247c1fe6f1ccc | [
"MIT"
] | null | null | null | priv/repo/migrations/20210523174345_performer_images.exs | codevictory/runosaari.net | 2462409ccf49987fa562b0ae189247c1fe6f1ccc | [
"MIT"
] | 1 | 2021-05-19T18:43:09.000Z | 2021-05-19T18:43:09.000Z | defmodule Runosaari.Repo.Migrations.PerformerImages do
use Ecto.Migration
def change do
alter table("performers") do
add :photo_path, :string
end
end
end
| 17.5 | 54 | 0.72 |
287074302d246594bf7166193c47e5ef36c93756 | 1,436 | ex | Elixir | lib/day_08_space_image_format.ex | scmx/advent-of-code-2019-elixir | f3022efb422e15abead6b882c78855b26b138443 | [
"MIT"
] | 1 | 2019-12-02T16:27:06.000Z | 2019-12-02T16:27:06.000Z | lib/day_08_space_image_format.ex | scmx/advent-of-code-2019-elixir | f3022efb422e15abead6b882c78855b26b138443 | [
"MIT"
] | null | null | null | lib/day_08_space_image_format.ex | scmx/advent-of-code-2019-elixir | f3022efb422e15abead6b882c78855b26b138443 | [
"MIT"
] | 1 | 2020-12-10T10:47:21.000Z | 2020-12-10T10:47:21.000Z | defmodule Adventofcode.Day08SpaceImageFormat do
use Adventofcode
@black 0
@white 1
@transparent 2
def part_1(input, {width, height}) do
input
|> least_corrupted_layer({width, height})
end
def part_2(input, {width, height}) do
input
|> render_pixels({width, height})
end
def least_co... | 22.092308 | 54 | 0.643454 |
2870764dea21832876ace52f094ab9fa9989af07 | 1,344 | exs | Elixir | mix.exs | mveytsman/linkify | 42c1aca5da2c2ab28abf8f304b211c2a5d2c89c7 | [
"MIT"
] | null | null | null | mix.exs | mveytsman/linkify | 42c1aca5da2c2ab28abf8f304b211c2a5d2c89c7 | [
"MIT"
] | null | null | null | mix.exs | mveytsman/linkify | 42c1aca5da2c2ab28abf8f304b211c2a5d2c89c7 | [
"MIT"
] | null | null | null | defmodule Linkify.Mixfile do
use Mix.Project
@version "0.5.0"
def project do
[
app: :linkify,
version: @version,
elixir: "~> 1.8",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
docs: [extras: ["READM... | 22.4 | 123 | 0.575893 |
28707f0992dc9fa47f0f3223c5f58de6a67a8e19 | 1,138 | exs | Elixir | test/cog/chat/hipchat/templates/embedded/user_detach_handle_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | test/cog/chat/hipchat/templates/embedded/user_detach_handle_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | test/cog/chat/hipchat/templates/embedded/user_detach_handle_test.exs | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.Chat.HipChat.Templates.Embedded.UserDetachHandleTest do
use Cog.TemplateCase
test "user-detach-handle template" do
data = %{"results" => [%{"chat_provider" => %{"name" => "HipChat"},
"username" => "cog"}]}
expected = "Removed HipChat handle from Cog user 'cog'"
... | 43.769231 | 87 | 0.557996 |
28708c2cfee8e949284ad020f79a289e6fd128a5 | 63 | ex | Elixir | projects/standup/lib/standup_web/views/layout_view.ex | erik/sketches | 0a454ada58dee6db576e93cb2216dd750290329e | [
"MIT"
] | 1 | 2020-02-11T06:00:11.000Z | 2020-02-11T06:00:11.000Z | projects/standup/lib/standup_web/views/layout_view.ex | erik/sketches | 0a454ada58dee6db576e93cb2216dd750290329e | [
"MIT"
] | 1 | 2017-09-23T19:41:29.000Z | 2017-09-25T05:12:38.000Z | projects/standup/lib/standup_web/views/layout_view.ex | erik/sketches | 0a454ada58dee6db576e93cb2216dd750290329e | [
"MIT"
] | null | null | null | defmodule StandupWeb.LayoutView do
use StandupWeb, :view
end
| 15.75 | 34 | 0.809524 |
28708ed0dae33cb1f170ad4ba31fa2a5b962944d | 6,296 | exs | Elixir | test/controllers/admin/episode_controller_test.exs | kentcdodds/changelog.com | e1c0d7ee5d47dc83dd443d623adb0f07e4acb28d | [
"MIT"
] | null | null | null | test/controllers/admin/episode_controller_test.exs | kentcdodds/changelog.com | e1c0d7ee5d47dc83dd443d623adb0f07e4acb28d | [
"MIT"
] | null | null | null | test/controllers/admin/episode_controller_test.exs | kentcdodds/changelog.com | e1c0d7ee5d47dc83dd443d623adb0f07e4acb28d | [
"MIT"
] | null | null | null | defmodule Changelog.Admin.EpisodeControllerTest do
use Changelog.ConnCase
use Bamboo.Test
alias Changelog.Episode
@valid_attrs %{title: "The one where we win", slug: "181-win"}
@invalid_attrs %{title: ""}
@tag :as_admin
test "lists all podcast episodes on index", %{conn: conn} do
p = insert(:podcas... | 36.818713 | 127 | 0.68202 |
2870a7f83a5c89297ee172a2cd6fa095a64acbe3 | 1,129 | exs | Elixir | config/config.exs | wolf4ood/sled_ex | 1652a1cf37f9a6079995e723248751c5935ee7d5 | [
"MIT"
] | null | null | null | config/config.exs | wolf4ood/sled_ex | 1652a1cf37f9a6079995e723248751c5935ee7d5 | [
"MIT"
] | null | null | null | config/config.exs | wolf4ood/sled_ex | 1652a1cf37f9a6079995e723248751c5935ee7d5 | [
"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.419355 | 73 | 0.751107 |
2870ed6aa09394c77e548fb92156627f990d81b8 | 1,115 | exs | Elixir | config/config.exs | jackweinbender/bibtex-elixir | 15f496d3bc1ea2e2f6b812478ec19425b50b5f59 | [
"MIT"
] | null | null | null | config/config.exs | jackweinbender/bibtex-elixir | 15f496d3bc1ea2e2f6b812478ec19425b50b5f59 | [
"MIT"
] | null | null | null | config/config.exs | jackweinbender/bibtex-elixir | 15f496d3bc1ea2e2f6b812478ec19425b50b5f59 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.967742 | 73 | 0.750673 |
28710e29d71a46934a69d4be887a4cf48ed3cd90 | 797 | ex | Elixir | lib/utils.ex | esl/elixometer | 6678c97f64ac8a4cf7ecbf32a4d342576d466b69 | [
"Apache-2.0"
] | 1 | 2021-03-11T23:38:37.000Z | 2021-03-11T23:38:37.000Z | lib/utils.ex | esl/elixometer | 6678c97f64ac8a4cf7ecbf32a4d342576d466b69 | [
"Apache-2.0"
] | null | null | null | lib/utils.ex | esl/elixometer | 6678c97f64ac8a4cf7ecbf32a4d342576d466b69 | [
"Apache-2.0"
] | 2 | 2021-03-11T23:58:01.000Z | 2022-03-06T10:48:34.000Z | defmodule Elixometer.Utils do
@moduledoc false
# Name may already have been converted elsewhere.
def name_to_exometer(_metric_type, name) when is_list(name) do
name
end
def name_to_exometer(metric_type, name) when is_bitstring(name) do
config = Application.get_all_env(:elixometer)
prefix = confi... | 27.482759 | 68 | 0.604768 |
28710f38f26b2321e61ae8167a41412e8ac7b361 | 1,415 | exs | Elixir | test/layout_test.exs | bengtson/layout | 6c795c74708c98ba8a23a359a2310b5894ae79e3 | [
"Apache-2.0"
] | null | null | null | test/layout_test.exs | bengtson/layout | 6c795c74708c98ba8a23a359a2310b5894ae79e3 | [
"Apache-2.0"
] | null | null | null | test/layout_test.exs | bengtson/layout | 6c795c74708c98ba8a23a359a2310b5894ae79e3 | [
"Apache-2.0"
] | null | null | null | defmodule LayoutTest do
use ExUnit.Case
doctest Layout
test "layout create" do
state = Layout.create "hello", 10.0
assert state.name == "hello"
end
test "add element" do
state = Layout.create "hello", 10.0
state = Layout.add_element state, "Element One", 5.0
assert length(state.elements)... | 28.3 | 59 | 0.634629 |
28711443b3d477fee92bffa851389be2a0069dd7 | 7,141 | ex | Elixir | apps/tanx/lib/tanx/game/walls.ex | 4eek/tanx | 32750c15966d6272db9d96fa620fb277a61520e4 | [
"MIT"
] | 112 | 2016-05-10T17:17:08.000Z | 2022-01-25T22:41:29.000Z | apps/tanx/lib/tanx/game/walls.ex | 4eek/tanx | 32750c15966d6272db9d96fa620fb277a61520e4 | [
"MIT"
] | 3 | 2016-05-10T04:39:02.000Z | 2019-07-19T12:50:07.000Z | apps/tanx/lib/tanx/game/walls.ex | 4eek/tanx | 32750c15966d6272db9d96fa620fb277a61520e4 | [
"MIT"
] | 22 | 2016-05-17T01:51:51.000Z | 2022-03-15T03:21:02.000Z | defmodule Tanx.Game.Walls do
@moduledoc """
Computes force on tanks due to walls.
"""
@doc """
Given a wall, returns a "decomposed" form of the wall that is preprocessed to
make force computation efficient.
The decomposed form is a list of tuples representing, in order, concave corners,
convex corners... | 30.780172 | 98 | 0.625543 |
2871210fb49849ceeae81a86a557e93447f334cb | 3,951 | ex | Elixir | lib/trademark_free_strategic_land_warfare_web/live/stratego_live.ex | WizardOfOgz/trademark_free_strategic_land_warfare | a14287eab1f60c13d43f70ac2309391c291a6704 | [
"MIT"
] | null | null | null | lib/trademark_free_strategic_land_warfare_web/live/stratego_live.ex | WizardOfOgz/trademark_free_strategic_land_warfare | a14287eab1f60c13d43f70ac2309391c291a6704 | [
"MIT"
] | null | null | null | lib/trademark_free_strategic_land_warfare_web/live/stratego_live.ex | WizardOfOgz/trademark_free_strategic_land_warfare | a14287eab1f60c13d43f70ac2309391c291a6704 | [
"MIT"
] | null | null | null | defmodule TrademarkFreeStrategicLandWarfareWeb.StrategoLive do
use TrademarkFreeStrategicLandWarfareWeb, :live_view
alias TrademarkFreeStrategicLandWarfare.Board
@impl true
def mount(_params, _session, socket) do
{:ok, modules} = :application.get_key(:trademark_free_strategic_land_warfare, :modules)
p... | 25.165605 | 91 | 0.584662 |
287122087e2050dc20e22d18a1b065b2546479b4 | 209 | ex | Elixir | interop/lib/interop/endpoint.ex | sleipnir/grpc | 5d4a2e3e721af4be64ad64fe473de4e584c2c0da | [
"Apache-2.0"
] | 5 | 2022-02-08T13:51:08.000Z | 2022-02-09T14:12:47.000Z | interop/lib/interop/endpoint.ex | sleipnir/grpc | 5d4a2e3e721af4be64ad64fe473de4e584c2c0da | [
"Apache-2.0"
] | 1 | 2022-02-08T15:46:07.000Z | 2022-02-08T15:46:07.000Z | interop/lib/interop/endpoint.ex | sleipnir/grpc | 5d4a2e3e721af4be64ad64fe473de4e584c2c0da | [
"Apache-2.0"
] | null | null | null | defmodule Interop.Endpoint do
use Falco.Endpoint
intercept Falco.Logger.Server
intercept Falco.Observability.Prometheus.ServerInterceptor
intercept Interop.ServerInterceptor
run Interop.Server
end
| 20.9 | 60 | 0.832536 |
2871704bafade5438b35ba0320790cbc88676c87 | 1,641 | ex | Elixir | lib/slacketon_chat/resolvers/muted_resolver.ex | matthewoden/slackerton | 0604122884cf08087432f2e32d80eca42a878c37 | [
"MIT"
] | 1 | 2022-02-19T17:49:37.000Z | 2022-02-19T17:49:37.000Z | lib/slacketon_chat/resolvers/muted_resolver.ex | matthewoden/slackerton | 0604122884cf08087432f2e32d80eca42a878c37 | [
"MIT"
] | 4 | 2018-07-14T16:30:17.000Z | 2022-02-10T16:23:23.000Z | lib/slacketon_chat/resolvers/muted_resolver.ex | matthewoden/slackerton | 0604122884cf08087432f2e32d80eca42a878c37 | [
"MIT"
] | null | null | null | defmodule SlackertonChat.MutedResolver do
use SlackertonChat
alias SlackertonChat.Helpers
alias Slackerton.Accounts.{Admin,Muted}
def mute_user(msg, %{ "User" => user}) do
team = Helpers.team_id(msg)
caller = Helpers.user_id(msg.user)
user = String.trim_leading(user, "@")
if Admin.is_admin?(c... | 24.132353 | 83 | 0.600853 |
28719aae8cbac3570a70a55c4ad327546d3e8e81 | 1,478 | ex | Elixir | lib/observables/combineLatest.ex | macoene/observables | 6e43ab9b7ea2afa60160a13ef5c37eb20dc597b7 | [
"MIT"
] | 4 | 2018-04-16T20:43:37.000Z | 2019-07-18T21:50:49.000Z | lib/observables/combineLatest.ex | macoene/observables | 6e43ab9b7ea2afa60160a13ef5c37eb20dc597b7 | [
"MIT"
] | null | null | null | lib/observables/combineLatest.ex | macoene/observables | 6e43ab9b7ea2afa60160a13ef5c37eb20dc597b7 | [
"MIT"
] | 1 | 2021-03-18T18:37:11.000Z | 2021-03-18T18:37:11.000Z | defmodule Observables.Operator.CombineLatest do
@moduledoc false
use Observables.GenObservable
def init([left_initial, right_initial]) do
Logger.debug("CombineLatest: #{inspect(self())}")
{:ok, {:left, left_initial, :right, right_initial}}
end
def handle_event(value, state) do
case {value, state... | 31.446809 | 88 | 0.543302 |
2871d22acb770ba20719f80248458cb0abffd6f8 | 1,573 | ex | Elixir | test/support/google.ex | redink/protobuf | 9f3e443ba2f0e808aae8ae075ffb7abeeca75483 | [
"MIT"
] | 4 | 2021-01-16T02:21:44.000Z | 2022-03-04T18:42:18.000Z | test/support/google.ex | redink/protobuf | 9f3e443ba2f0e808aae8ae075ffb7abeeca75483 | [
"MIT"
] | 5 | 2020-04-07T20:22:38.000Z | 2020-09-23T02:28:36.000Z | test/support/google.ex | redink/protobuf | 9f3e443ba2f0e808aae8ae075ffb7abeeca75483 | [
"MIT"
] | 4 | 2020-07-22T23:38:34.000Z | 2021-03-26T18:52:54.000Z | defmodule Google.Protobuf.Struct do
@moduledoc false
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
fields: %{String.t() => Google.Protobuf.Value.t()}
}
defstruct [:fields]
field :fields, 1, repeated: true, type: Google.Protobuf.Struct.FieldsEntry, map: true
end
defmodule Google.Pr... | 24.968254 | 87 | 0.670693 |
2871dbdd2e40f6ce2eba6bad1cdd33149d4dcb9e | 473 | ex | Elixir | lib/changelog/data/podcast/podcast_topic.ex | boneskull/changelog.com | 2fa2e356bb0e8fcf038c46a4a947fef98822e37d | [
"MIT"
] | null | null | null | lib/changelog/data/podcast/podcast_topic.ex | boneskull/changelog.com | 2fa2e356bb0e8fcf038c46a4a947fef98822e37d | [
"MIT"
] | null | null | null | lib/changelog/data/podcast/podcast_topic.ex | boneskull/changelog.com | 2fa2e356bb0e8fcf038c46a4a947fef98822e37d | [
"MIT"
] | null | null | null | defmodule Changelog.PodcastTopic do
use Changelog.Data
alias Changelog.{Topic, Podcast}
schema "podcast_topics" do
field :position, :integer
field :delete, :boolean, virtual: true
belongs_to :podcast, Podcast
belongs_to :topic, Topic
timestamps()
end
def changeset(struct, params \\ %{... | 20.565217 | 60 | 0.687104 |
2871e24aa631e77e37aba7551367940192eb82e9 | 276 | ex | Elixir | lib/pushex/gcm/exceptions.ex | mrcnkoba/pushex | ed5d365ff767d70c6b3f0f6c65f5c91e763295ac | [
"MIT"
] | null | null | null | lib/pushex/gcm/exceptions.ex | mrcnkoba/pushex | ed5d365ff767d70c6b3f0f6c65f5c91e763295ac | [
"MIT"
] | null | null | null | lib/pushex/gcm/exceptions.ex | mrcnkoba/pushex | ed5d365ff767d70c6b3f0f6c65f5c91e763295ac | [
"MIT"
] | 1 | 2018-12-14T08:19:28.000Z | 2018-12-14T08:19:28.000Z | defmodule Pushex.GCM.HTTPError do
@moduledoc """
`Pushex.GCM.HTTPError` represents a failed request to GCM API.
"""
defexception [:status_code, :reason]
def message(err) do
"HTTP request failed with status #{err.status_code}: #{inspect(err.reason)}"
end
end
| 23 | 80 | 0.706522 |
2871e8536aac858b8fff70245172de004d276d39 | 5,919 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/platform_types.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/platform_types.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/platform_types.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.541096 | 187 | 0.642 |
2871ed2deb597e8e5771e456385b86b9dd6df428 | 1,458 | exs | Elixir | apps/firestorm_data/test/firestorm_data/commands/create_post_test.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 10 | 2017-06-28T08:06:52.000Z | 2022-03-19T17:49:21.000Z | apps/firestorm_data/test/firestorm_data/commands/create_post_test.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | null | null | null | apps/firestorm_data/test/firestorm_data/commands/create_post_test.exs | CircleCI-Public/firestorm | 9ca2c46a2b2377370347ad94d6003eeb77be38d6 | [
"MIT"
] | 2 | 2017-10-21T12:01:02.000Z | 2021-01-29T10:26:22.000Z | defmodule FirestormData.Commands.CreatePostTest do
use ExUnit.Case
alias FirestormData.Commands.{CreatePost, CreateThread, CreateCategory}
alias FirestormData.{User, Repo, Thread, Post}
use FirestormData.UnitCase
setup do
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Repo)
end
describe "creating a post" ... | 27 | 119 | 0.674211 |
2871f734fde6530f00cd83fe472bbb3c59b23af7 | 2,724 | ex | Elixir | lib/database/attempt.ex | andrewlobos-argo/bors-ng | 1f15a9318b8111cb5cb440e9f0bcd1ab7647817a | [
"Apache-2.0"
] | null | null | null | lib/database/attempt.ex | andrewlobos-argo/bors-ng | 1f15a9318b8111cb5cb440e9f0bcd1ab7647817a | [
"Apache-2.0"
] | null | null | null | lib/database/attempt.ex | andrewlobos-argo/bors-ng | 1f15a9318b8111cb5cb440e9f0bcd1ab7647817a | [
"Apache-2.0"
] | null | null | null | defmodule BorsNG.Database.Attempt do
@moduledoc """
The database-level representation of a "attempt".
When a patch is tried, it gets merged with master individually
and it's CI result is reported, but it is not pushed to master.
"""
use BorsNG.Database.Model
alias BorsNG.Database.AttemptState
schema ... | 25.698113 | 76 | 0.670338 |
2871f7e4ec71fdb214f26fc6e226887aac1df0c5 | 1,119 | exs | Elixir | config/config.exs | techgaun/portscan | d2e9c313207b86be36c6dae5054cdd857cf775ce | [
"Apache-2.0"
] | null | null | null | config/config.exs | techgaun/portscan | d2e9c313207b86be36c6dae5054cdd857cf775ce | [
"Apache-2.0"
] | null | null | null | config/config.exs | techgaun/portscan | d2e9c313207b86be36c6dae5054cdd857cf775ce | [
"Apache-2.0"
] | 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.096774 | 73 | 0.751564 |
2871fa025edb322e8ae88b327effc990582674f6 | 331 | exs | Elixir | code examples/example-7-9.exs | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 8 | 2016-08-14T12:35:16.000Z | 2021-01-26T04:05:31.000Z | code examples/example-7-9.exs | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | null | null | null | code examples/example-7-9.exs | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 5 | 2016-08-18T22:12:19.000Z | 2020-02-17T18:52:41.000Z | defmodule ExUnitAssertions do
use ExUnit.Case, async: true
@tag :wip
test "assert" do
assert 1 + 1 == 2
end
test "refute" do
refute 1 + 1 == 3
end
test "assert_in_delta" do
assert_in_delta 1,4,5
end
test "refute_in_delta" do
refute_in_delta 1,4,3
... | 15.761905 | 32 | 0.574018 |
2871fe2aa0f80b30bc4dc0be7874f8881669c4b5 | 1,935 | exs | Elixir | farmbot_firmware/test/package_utils_test.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_firmware/test/package_utils_test.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_firmware/test/package_utils_test.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | defmodule FarmbotFirmware.PackageUtilsTest do
use ExUnit.Case
use Mimic
setup :verify_on_exit!
alias FarmbotFirmware.PackageUtils
test "package to string" do
assert PackageUtils.package_to_string("arduino") ==
"Arduino/RAMPS (Genesis v1.2)"
assert PackageUtils.package_to_string("farmdu... | 32.79661 | 80 | 0.69199 |
2872053acc13d94ae656920761de8990be528373 | 2,851 | exs | Elixir | elixir/list-ops/list_ops_test.exs | dtcristo/exercism-solutions | 312922ff1bedc51e9273f746eb90af71644cb971 | [
"MIT"
] | 1 | 2017-08-24T07:34:14.000Z | 2017-08-24T07:34:14.000Z | elixir/list-ops/list_ops_test.exs | dtcristo/exercism-solutions | 312922ff1bedc51e9273f746eb90af71644cb971 | [
"MIT"
] | 7 | 2020-02-26T00:34:39.000Z | 2022-02-11T23:16:54.000Z | elixir/list-ops/list_ops_test.exs | dtcristo/exercism-solutions | 312922ff1bedc51e9273f746eb90af71644cb971 | [
"MIT"
] | null | null | null | if System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("example.exs")
else
Code.load_file("list_ops.exs")
end
ExUnit.start
defmodule ListOpsTest do
alias ListOps, as: L
use ExUnit.Case, async: true
defp odd?(n), do: rem(n, 2) == 1
test "count of empty list" do
assert L.count([]) == 0
end
... | 23.368852 | 87 | 0.597334 |
28724eab8e7b96e158a7f5ccbb7d5cbd65d66dd4 | 1,619 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/instances_clone_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/instances_clone_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/lib/google_api/sql_admin/v1beta4/model/instances_clone_request.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... | 33.729167 | 97 | 0.762199 |
287262ee6948e5f2fbca9735bdf001d032191c8f | 694 | ex | Elixir | debian/preinst.ex | isis-project/AdapterBase | 5b8e6086950f6e3938691e6fe0d591fb5e675575 | [
"Apache-2.0"
] | 1 | 2015-07-19T20:11:07.000Z | 2015-07-19T20:11:07.000Z | debian/preinst.ex | isis-project/AdapterBase | 5b8e6086950f6e3938691e6fe0d591fb5e675575 | [
"Apache-2.0"
] | null | null | null | debian/preinst.ex | isis-project/AdapterBase | 5b8e6086950f6e3938691e6fe0d591fb5e675575 | [
"Apache-2.0"
] | null | null | null | #!/bin/sh
# preinst script for adapterbase
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <new-preinst> `install'
# * <new-preinst> `install' <old-version>
# * <new-preinst> `upgrade' <old-version>
# * <old-preinst> `abort-upgrade' <new-version>
# for deta... | 19.277778 | 63 | 0.629683 |
28726cd0d430f79d043f2b33650ffdbdbb2e8979 | 1,194 | exs | Elixir | mix.exs | h3poteto/ecs_erlang_cluster | 38270e08ef667c4b0cb00b753b7c16685f459d3c | [
"MIT"
] | 2 | 2019-01-19T07:37:01.000Z | 2022-01-03T19:15:37.000Z | mix.exs | h3poteto/ecs_erlang_cluster | 38270e08ef667c4b0cb00b753b7c16685f459d3c | [
"MIT"
] | null | null | null | mix.exs | h3poteto/ecs_erlang_cluster | 38270e08ef667c4b0cb00b753b7c16685f459d3c | [
"MIT"
] | null | null | null | defmodule EcsErlangCluster.MixProject do
use Mix.Project
def project do
[
app: :ecs_erlang_cluster,
version: "0.1.0",
elixir: "~> 1.7",
escript: [main_module: EcsErlangCluster],
start_permanent: Mix.env() == :prod,
deps: deps(),
description: "This is a command line too... | 27.136364 | 90 | 0.554439 |
2872900001db5a0d1c9e9f371acc18542b611aef | 1,708 | ex | Elixir | clients/composer/lib/google_api/composer/v1beta1/model/web_server_network_access_control.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/composer/lib/google_api/composer/v1beta1/model/web_server_network_access_control.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/composer/lib/google_api/composer/v1beta1/model/web_server_network_access_control.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... | 36.340426 | 164 | 0.762881 |
2872d922ff0a92449d808b1cb0bfbdf24746c096 | 1,156 | exs | Elixir | mix.exs | benknowles/libsalty | 38a10812865cb855bfa46cf266bb68d51a296f39 | [
"Apache-2.0"
] | 23 | 2017-07-04T19:29:43.000Z | 2021-02-16T19:44:38.000Z | mix.exs | benknowles/libsalty | 38a10812865cb855bfa46cf266bb68d51a296f39 | [
"Apache-2.0"
] | 16 | 2017-08-13T15:31:25.000Z | 2019-06-19T14:44:13.000Z | mix.exs | benknowles/libsalty | 38a10812865cb855bfa46cf266bb68d51a296f39 | [
"Apache-2.0"
] | 19 | 2017-08-10T19:01:49.000Z | 2021-06-20T01:34:59.000Z | defmodule Salty.Mixfile do
use Mix.Project
@github "https://github.com/ArteMisc/libsalty"
def project do
[
app: :salty,
version: "0.1.3",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
compilers: [:elixir_make] ++ Mix.compilers(),
... | 22.230769 | 84 | 0.568339 |
287307d3fa84a2566b69b15f9e6baab6f29aa3de | 1,129 | exs | Elixir | lib/euler_035.exs | sorentwo/euler | 76244a0ef3dcfa17d6b9571daa5d0b46f09057f4 | [
"MIT"
] | 8 | 2015-11-04T05:03:05.000Z | 2022-01-25T19:34:46.000Z | lib/euler_035.exs | sorentwo/euler | 76244a0ef3dcfa17d6b9571daa5d0b46f09057f4 | [
"MIT"
] | null | null | null | lib/euler_035.exs | sorentwo/euler | 76244a0ef3dcfa17d6b9571daa5d0b46f09057f4 | [
"MIT"
] | null | null | null | defmodule EulerThirtyFive do
import NumHelpers, only: [digits: 1]
@moduledoc """
The number, 197, is called a circular prime because all rotations of the
digits: 197, 971, and 719, are themselves prime.
There are thirteen such primes below 100: 2, 3, 5, 7, 11, 13, 17, 31, 37, 71,
73, 79, and 97.
How ma... | 25.659091 | 97 | 0.630647 |
28731748b74872f38485a0dd596b7dcc16e05282 | 1,273 | exs | Elixir | apps/ello_core/test/ello_core/content/asset/attachment_test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 16 | 2017-06-21T21:31:20.000Z | 2021-05-09T03:23:26.000Z | apps/ello_core/test/ello_core/content/asset/attachment_test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 25 | 2017-06-07T12:18:28.000Z | 2018-06-08T13:27:43.000Z | apps/ello_core/test/ello_core/content/asset/attachment_test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 3 | 2018-06-14T15:34:07.000Z | 2022-02-28T21:06:13.000Z | defmodule Ello.Core.AttachmentTest do
use Ello.Core.Case
alias Ello.Core.{Content.Asset.Attachment, Image}
test "Attachment.from_asset/1 - builds an Image" do
asset = Factory.build(:asset)
image = Attachment.from_asset(asset)
assert %Image{versions: versions} = image
optimized_test = asset.attac... | 36.371429 | 80 | 0.687353 |
28731e9daabd1af9ec3c2bc6ec150c3851d27a53 | 913 | ex | Elixir | lib/potionx/plugs/maybe_disable_introspection_plug.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 31 | 2021-02-16T20:50:46.000Z | 2022-02-03T10:38:07.000Z | lib/potionx/plugs/maybe_disable_introspection_plug.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 6 | 2021-04-07T21:50:20.000Z | 2022-02-06T21:54:04.000Z | lib/potionx/plugs/maybe_disable_introspection_plug.ex | shuv1824/potionx | a5888413b13a520d8ddf79fb26b7483e441737c3 | [
"MIT"
] | 4 | 2021-03-25T17:59:44.000Z | 2021-04-25T16:28:22.000Z | defmodule Potionx.Plug.MaybeDisableIntrospection do
@behaviour Plug
alias Plug.Conn
alias Potionx.Context.Service
@doc false
def init(config) do
Keyword.merge(
[roles: [:admin]],
config
)
|> Enum.into(%{})
end
def call(%Plug.Conn{params: %{"query" => q}} = conn, config) do
if... | 19.847826 | 129 | 0.593647 |
287337ab1ae3a98badca51cda69e990fd130c17f | 968 | ex | Elixir | lib/softwaremaxims/application.ex | DianaOlympos/dianao-softwaremaxims | c153908fb6abe90487a05c64fd806c88b3414295 | [
"MIT"
] | null | null | null | lib/softwaremaxims/application.ex | DianaOlympos/dianao-softwaremaxims | c153908fb6abe90487a05c64fd806c88b3414295 | [
"MIT"
] | 7 | 2018-10-13T20:45:27.000Z | 2018-10-29T12:42:22.000Z | lib/softwaremaxims/application.ex | DianaOlympos/dianao-softwaremaxims | c153908fb6abe90487a05c64fd806c88b3414295 | [
"MIT"
] | null | null | null | defmodule Softwaremaxims.Application do
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the endpoint when... | 31.225806 | 68 | 0.741736 |
287340478228daa3cd5d41842aa4d17cf6d5efe7 | 71 | ex | Elixir | lib/matrix/content.ex | DylanGriffith/bender | 336fb92c3ed80bb8e330abfa7628df7ccbc04c84 | [
"MIT"
] | 27 | 2015-10-29T21:43:12.000Z | 2021-08-14T06:33:13.000Z | lib/matrix/content.ex | DylanGriffith/bender | 336fb92c3ed80bb8e330abfa7628df7ccbc04c84 | [
"MIT"
] | 2 | 2016-01-04T20:39:42.000Z | 2019-05-22T05:18:10.000Z | lib/matrix/content.ex | DylanGriffith/bender | 336fb92c3ed80bb8e330abfa7628df7ccbc04c84 | [
"MIT"
] | 3 | 2017-10-17T10:33:53.000Z | 2018-11-19T15:07:50.000Z | defmodule Matrix.Content do
defstruct [:users, :body, :msg_type]
end
| 17.75 | 38 | 0.746479 |
2873409341ace3f4ebe495aa8eb1d756e5e1665c | 14,411 | ex | Elixir | lib/mix/lib/mix/tasks/compile.app.ex | tnascimento/elixir | 9a4d10e702f33d2fa47718cde05375b506b4a3d6 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/compile.app.ex | tnascimento/elixir | 9a4d10e702f33d2fa47718cde05375b506b4a3d6 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/compile.app.ex | tnascimento/elixir | 9a4d10e702f33d2fa47718cde05375b506b4a3d6 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Compile.App do
use Mix.Task.Compiler
@recursive true
@moduledoc """
Writes an .app file.
An `.app` file is a file containing Erlang terms that defines
your application. Mix automatically generates this file based on
your `mix.exs` configuration.
In order to generate the `.app` fi... | 33.281755 | 121 | 0.643189 |
287349a380ce528d56bb8fcc3586d208b7868bdc | 669 | ex | Elixir | lib/lob/bulk_us_verification.ex | pdgonzalez872/lob-elixir | 4b4b24f267144b15ab1cb19e37eb861ff2a1acc0 | [
"MIT"
] | 11 | 2018-02-07T17:59:17.000Z | 2021-11-21T14:11:15.000Z | lib/lob/bulk_us_verification.ex | pdgonzalez872/lob-elixir | 4b4b24f267144b15ab1cb19e37eb861ff2a1acc0 | [
"MIT"
] | 34 | 2018-02-13T19:59:27.000Z | 2022-03-02T19:50:41.000Z | lib/lob/bulk_us_verification.ex | pdgonzalez872/lob-elixir | 4b4b24f267144b15ab1cb19e37eb861ff2a1acc0 | [
"MIT"
] | 8 | 2019-01-30T00:39:36.000Z | 2022-03-01T15:32:17.000Z | defmodule Lob.BulkUSVerification do
@moduledoc """
Module implementing the Lob bulk US verifications API.
"""
use Lob.ResourceBase, endpoint: "bulk/us_verifications", methods: []
# The @spec for the function does not match the success typing of the function.
# Function:
# Lob.BulkUSVerification.verify/2
# ... | 31.857143 | 93 | 0.671151 |
287354ee47da054d530cbbee8a8bd39a3c0686dc | 2,015 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/order_documents_list_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/order_documents_list_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/order_documents_list_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.018868 | 162 | 0.737965 |
28735e783c5ebaf2d9b9c60a908766da6908faf8 | 3,070 | ex | Elixir | clients/container/lib/google_api/container/v1/model/master_auth.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/master_auth.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/model/master_auth.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... | 48.730159 | 286 | 0.752769 |
28736fc723d4c02546137785f2f530ddef0045b2 | 997 | exs | Elixir | test/issues/test/cli_test.exs | dannyh79/issues_cli | 407d47ca1e25c217daedf18f395e5328187baae0 | [
"MIT"
] | null | null | null | test/issues/test/cli_test.exs | dannyh79/issues_cli | 407d47ca1e25c217daedf18f395e5328187baae0 | [
"MIT"
] | null | null | null | test/issues/test/cli_test.exs | dannyh79/issues_cli | 407d47ca1e25c217daedf18f395e5328187baae0 | [
"MIT"
] | null | null | null | defmodule CliTest do
use ExUnit.Case
import Issues.CLI,
only: [parse_args: 1, sort_into_ascending_order: 1, convert_to_list_of_maps: 1]
test ":help returned by option parsing with -h and --help options" do
assert parse_args(["-h", "anything"]) == :help
assert parse_args(["--help", "anything"]) == :h... | 29.323529 | 83 | 0.651956 |
2873b100e075988a22cac2c2b63872f8ad2ef7a7 | 534 | exs | Elixir | samples/deactivate_output.exs | gomoripeti/benchee | bd5185bcfdc8320c237959505e63a89d31e044a9 | [
"MIT"
] | 636 | 2016-06-06T07:58:36.000Z | 2019-03-19T15:27:37.000Z | samples/deactivate_output.exs | gomoripeti/benchee | bd5185bcfdc8320c237959505e63a89d31e044a9 | [
"MIT"
] | 198 | 2016-06-18T08:19:15.000Z | 2019-03-19T15:32:37.000Z | samples/deactivate_output.exs | gomoripeti/benchee | bd5185bcfdc8320c237959505e63a89d31e044a9 | [
"MIT"
] | 43 | 2016-06-08T08:04:30.000Z | 2019-02-13T17:10:24.000Z | # Deactivate the fast warnings if they annoy you
# You can also deactivate the comparison report
Benchee.run(
%{
"something" => fn -> Enum.map([1, 2, 3], fn i -> i * i end) end
},
time: 2,
warmup: 1,
print: [
benchmarking: false,
configuration: false,
fast_warning: false
],
formatters: [{B... | 28.105263 | 81 | 0.576779 |
28741fcea0ff13065ef754d87eeeb51b2814a8ac | 607 | exs | Elixir | spec/domain/accounts/user_settings_spec.exs | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | spec/domain/accounts/user_settings_spec.exs | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | spec/domain/accounts/user_settings_spec.exs | Squadster/squadster-api | cf04af79317148d7a08c649d5b5d0197722acb7a | [
"MIT"
] | null | null | null | defmodule Squadster.Domain.Accounts.UserSettingsSpec do
use ESpec.Phoenix, async: true
use ESpec.Phoenix.Extend, :domain
alias Squadster.Accounts.UserSettings
describe "changeset functions" do
context "when params are valid" do
it "is valid" do
%{valid?: is_valid} = %{user_id: Enum.random(1.... | 24.28 | 87 | 0.650741 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.