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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
74c3295f6dbede7b407b4186273dab9e4a935648 | 252 | ex | Elixir | lib/uro_web/views/api/v1/shard_view.ex | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | 1 | 2022-01-11T04:05:39.000Z | 2022-01-11T04:05:39.000Z | lib/uro_web/views/api/v1/shard_view.ex | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | 35 | 2021-02-10T08:18:57.000Z | 2021-05-06T17:19:50.000Z | lib/uro_web/views/api/v1/shard_view.ex | V-Sekai/uro | 0b23da65d5c7e459efcd6b2c3d9bdf91c533b737 | [
"MIT"
] | null | null | null | defmodule UroWeb.API.V1.ShardView do
use UroWeb, :view
def render("index.json", %{shard: shard}) do
shard
end
def render("show.json", %{shard: shard}) do
shard
end
def render("shard.json", %{shard: shard}) do
shard
end
end
| 15.75 | 46 | 0.634921 |
74c32ec083cba82f7a4eedcf0941d0fdcd5e9d11 | 844 | exs | Elixir | elixir-in-action/ch-9/supervised_todo_cache/test/todo_server_test.exs | danurna/elixir-playground | 6acb40e513d8ab324368b3ec5151b0a4fd88f849 | [
"MIT"
] | null | null | null | elixir-in-action/ch-9/supervised_todo_cache/test/todo_server_test.exs | danurna/elixir-playground | 6acb40e513d8ab324368b3ec5151b0a4fd88f849 | [
"MIT"
] | null | null | null | elixir-in-action/ch-9/supervised_todo_cache/test/todo_server_test.exs | danurna/elixir-playground | 6acb40e513d8ab324368b3ec5151b0a4fd88f849 | [
"MIT"
] | null | null | null | defmodule TodoServerTests do
use ExUnit.Case
setup_all do
Todo.System.start_link()
{:ok, context: nil}
end
test "Write and read from server" do
{:ok, server_id} = Todo.Server.start_link("AliceList")
Todo.Server.add_entry(server_id, %{date: ~D[2018-01-01], title: "Alpha"})
entries = Todo.Se... | 31.259259 | 77 | 0.650474 |
74c369e239e4c583f1cd32d6e51c9d538a3ce0c6 | 1,009 | ex | Elixir | lib/square_up/resources/v1/refund.ex | beaver21/SquareUp | c9791d96ed9335926933403a966eba5076fbc15b | [
"MIT"
] | 4 | 2020-10-21T18:34:50.000Z | 2022-03-16T06:25:44.000Z | lib/square_up/resources/v1/refund.ex | beaver21/SquareUp | c9791d96ed9335926933403a966eba5076fbc15b | [
"MIT"
] | 5 | 2020-10-21T23:16:32.000Z | 2021-05-13T13:42:44.000Z | lib/square_up/resources/v1/refund.ex | beaver21/SquareUp | c9791d96ed9335926933403a966eba5076fbc15b | [
"MIT"
] | 3 | 2020-10-21T21:20:36.000Z | 2021-03-15T18:00:30.000Z | defmodule SquareUp.V1.Refund do
import Norm
import SquareUp.Client, only: [call: 2]
@spec create(
SquareUp.Client.t(),
%{required(:location_id) => binary()},
SquareUp.TypeSpecs.v1_create_refund_request(),
%{}
) :: SquareUp.Client.response(SquareUp.TypeSpecs.v1_refu... | 32.548387 | 89 | 0.663033 |
74c3885d7bdeeed6d615ae2da509909dd64531f9 | 2,420 | ex | Elixir | clients/transcoder/lib/google_api/transcoder/v1beta1/model/animation_fade.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/transcoder/lib/google_api/transcoder/v1beta1/model/animation_fade.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/transcoder/lib/google_api/transcoder/v1beta1/model/animation_fade.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... | 43.214286 | 389 | 0.722727 |
74c3b846cf8df3b921db515162434028c2b84984 | 86 | exs | Elixir | test/web/views/layout_view_test.exs | theSuess/bifroest-web | fc25d4e827546b2e1a08719962f0e161d622eded | [
"BSD-3-Clause"
] | 1 | 2017-03-29T06:48:06.000Z | 2017-03-29T06:48:06.000Z | test/web/views/layout_view_test.exs | theSuess/bifroest-web | fc25d4e827546b2e1a08719962f0e161d622eded | [
"BSD-3-Clause"
] | null | null | null | test/web/views/layout_view_test.exs | theSuess/bifroest-web | fc25d4e827546b2e1a08719962f0e161d622eded | [
"BSD-3-Clause"
] | null | null | null | defmodule Bifroest.Web.LayoutViewTest do
use Bifroest.Web.ConnCase, async: true
end
| 21.5 | 40 | 0.813953 |
74c3c8056964d28b816e7c24b955ac7735339abc | 1,206 | ex | Elixir | oeml-sdk/elixir/lib/oeml_restapi/model/order_execution_report_all_of.ex | scorninpc/coinapi-sdk | e4ff6b79a26bb412ab9ac5f2d1e4a7cef560b1e7 | [
"MIT"
] | null | null | null | oeml-sdk/elixir/lib/oeml_restapi/model/order_execution_report_all_of.ex | scorninpc/coinapi-sdk | e4ff6b79a26bb412ab9ac5f2d1e4a7cef560b1e7 | [
"MIT"
] | null | null | null | oeml-sdk/elixir/lib/oeml_restapi/model/order_execution_report_all_of.ex | scorninpc/coinapi-sdk | e4ff6b79a26bb412ab9ac5f2d1e4a7cef560b1e7 | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule OEML-RESTAPI.Model.OrderExecutionReportAllOf do
@moduledoc """
The order execution report message.
"""
@derive [Poison.Encoder]
defstruct [... | 26.8 | 91 | 0.658375 |
74c3da1aa04773dbb3457ae200c3f0b20d311dc1 | 240 | ex | Elixir | elixir/little-elixir-otp/metex/lib/metex/worker.ex | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | 1 | 2018-12-11T14:09:14.000Z | 2018-12-11T14:09:14.000Z | elixir/little-elixir-otp/metex/lib/metex/worker.ex | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | null | null | null | elixir/little-elixir-otp/metex/lib/metex/worker.ex | marcinbiegun/exercises | 36ad942e8d40d6471136326a3f6d09285bbd90aa | [
"MIT"
] | null | null | null | defmodule Metex.Worker do
def loop do
receive do
{sender_pid, location} ->
send(sender_pid, {:ok, Metex.API.Weather.temperature_of(location)})
_ ->
IO.puts("Unknown message")
end
loop()
end
end
| 17.142857 | 75 | 0.604167 |
74c3e9b69289f1147c5bf3a1742ecbf6649f3d2c | 1,341 | ex | Elixir | lib/asciinema_web/views/api/asciicast_view.ex | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | 893 | 2017-09-14T14:18:29.000Z | 2022-03-31T21:45:08.000Z | lib/asciinema_web/views/api/asciicast_view.ex | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | 103 | 2017-09-29T22:15:33.000Z | 2022-03-27T21:47:43.000Z | lib/asciinema_web/views/api/asciicast_view.ex | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | 152 | 2017-09-07T12:43:15.000Z | 2022-03-10T18:47:47.000Z | defmodule AsciinemaWeb.Api.AsciicastView do
use AsciinemaWeb, :view
def render("created.text", assigns) do
message(assigns)
end
def render("created.json", assigns) do
%{
url: assigns.url,
message: message(assigns)
}
end
def render("error.json", %{changeset: changeset}) do
%{er... | 25.788462 | 83 | 0.679344 |
74c3ecf46c2271981b7986a7b6a3e7164c829d06 | 965 | exs | Elixir | test/models/deck_test.exs | Pianist038801/SprintPoker | ae14f79b8cd4254a1c5f5fef698db1cf2d20cf9c | [
"MIT"
] | null | null | null | test/models/deck_test.exs | Pianist038801/SprintPoker | ae14f79b8cd4254a1c5f5fef698db1cf2d20cf9c | [
"MIT"
] | null | null | null | test/models/deck_test.exs | Pianist038801/SprintPoker | ae14f79b8cd4254a1c5f5fef698db1cf2d20cf9c | [
"MIT"
] | null | null | null | defmodule SprintPoker.DeckTest do
use SprintPoker.ModelCase
alias SprintPoker.Deck
alias SprintPoker.Repo
test "don't create empty deck" do
assert_raise Postgrex.Error, fn ->
%Deck{} |> Repo.insert!
end
end
test "don't create deck without name" do
assert_raise Postgrex.Error, fn ->
... | 21.444444 | 76 | 0.627979 |
74c3f1995afb9a31422c7da71389429c2d9e12cc | 571 | exs | Elixir | mix.exs | jvoegele/railway | 563351c377b64c94630ed0aebb4324c14ab09b60 | [
"MIT"
] | null | null | null | mix.exs | jvoegele/railway | 563351c377b64c94630ed0aebb4324c14ab09b60 | [
"MIT"
] | null | null | null | mix.exs | jvoegele/railway | 563351c377b64c94630ed0aebb4324c14ab09b60 | [
"MIT"
] | null | null | null | defmodule Railway.MixProject do
use Mix.Project
def project do
[
app: :railway,
version: "0.1.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_app... | 19.689655 | 87 | 0.576182 |
74c4104c24c656657b13b011577ddfe9bd5fc3da | 6,639 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/live_broadcast_content_details.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/live_broadcast_content_details.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/live_broadcast_content_details.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"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... | 64.456311 | 412 | 0.731435 |
74c43dc6eb8a74f9b0654bd3911563d27b222f72 | 8,873 | exs | Elixir | test/icalendar_test.exs | lpil/icalendar | c2b62edaf7b37bcf1f504f1150fe867d5979b1d1 | [
"MIT"
] | 82 | 2016-05-13T10:13:10.000Z | 2022-02-23T04:11:12.000Z | test/icalendar_test.exs | lpil/icalendar | c2b62edaf7b37bcf1f504f1150fe867d5979b1d1 | [
"MIT"
] | 50 | 2015-12-24T12:30:55.000Z | 2022-03-22T18:13:19.000Z | test/icalendar_test.exs | lpil/icalendar | c2b62edaf7b37bcf1f504f1150fe867d5979b1d1 | [
"MIT"
] | 43 | 2016-05-25T15:11:18.000Z | 2022-03-19T16:54:58.000Z | defmodule ICalendarTest do
use ExUnit.Case
@vendor "ICalendar Test"
test "ICalendar.to_ics/1 of empty calendar" do
ics = %ICalendar{} |> ICalendar.to_ics()
assert ics == """
BEGIN:VCALENDAR
CALSCALE:GREGORIAN
VERSION:2.0
PRODID:-//Elixir ICalendar//Elixir ICa... | 31.024476 | 86 | 0.561591 |
74c45cf4d656b4810464d0ab65add506f24cde46 | 1,462 | exs | Elixir | apps/trial/mix.exs | losttime/commanded_poc | 9b1101924e8b9918666d565d12119dcd448fd040 | [
"MIT"
] | null | null | null | apps/trial/mix.exs | losttime/commanded_poc | 9b1101924e8b9918666d565d12119dcd448fd040 | [
"MIT"
] | null | null | null | apps/trial/mix.exs | losttime/commanded_poc | 9b1101924e8b9918666d565d12119dcd448fd040 | [
"MIT"
] | null | null | null | defmodule Trial.MixProject do
use Mix.Project
def project do
[
app: :trial,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(M... | 27.074074 | 131 | 0.625171 |
74c48e9313c6f30258eaeed510631cb984ba4b7e | 2,571 | ex | Elixir | clients/fcm/lib/google_api/fcm/v1/model/apns_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/fcm/lib/google_api/fcm/v1/model/apns_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/fcm/lib/google_api/fcm/v1/model/apns_config.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... | 48.509434 | 547 | 0.744846 |
74c493e4a4858b3f6ea4ac400894de3f73a23536 | 480 | ex | Elixir | apps/emporium_api/lib/emporium/modules_manager.ex | impressarix/Phoenix-Webstore | 31376183b853e594b224fb1051897a00cd20b6ec | [
"Apache-2.0"
] | null | null | null | apps/emporium_api/lib/emporium/modules_manager.ex | impressarix/Phoenix-Webstore | 31376183b853e594b224fb1051897a00cd20b6ec | [
"Apache-2.0"
] | null | null | null | apps/emporium_api/lib/emporium/modules_manager.ex | impressarix/Phoenix-Webstore | 31376183b853e594b224fb1051897a00cd20b6ec | [
"Apache-2.0"
] | null | null | null | defmodule Emporium.ModulesManager do
alias EmporiumApi.Repo
import Ecto.Query
def start_link do
{:ok, self}
end
def active_modules do
query = from m in Emporium.Module,
where: m.is_active,
select: m
Repo.all(query)
end
def active_plugs do
active_modules |> Enum.map(
... | 20.869565 | 117 | 0.616667 |
74c49c77917fd8eb6d1cf722dce0121fd36c9db1 | 1,864 | ex | Elixir | lib/ohio_elixir_web/telemetry.ex | davemenninger/ohio_elixir | 9472b71fa906e30a2a5fdc013256a5e80caedc2f | [
"MIT"
] | 7 | 2021-01-22T00:20:04.000Z | 2022-03-30T22:07:32.000Z | lib/ohio_elixir_web/telemetry.ex | davemenninger/ohio_elixir | 9472b71fa906e30a2a5fdc013256a5e80caedc2f | [
"MIT"
] | 11 | 2021-10-05T03:59:28.000Z | 2022-03-20T21:54:44.000Z | lib/ohio_elixir_web/telemetry.ex | davemenninger/ohio_elixir | 9472b71fa906e30a2a5fdc013256a5e80caedc2f | [
"MIT"
] | 3 | 2021-06-10T02:48:54.000Z | 2021-10-09T03:43:06.000Z | defmodule OhioElixirWeb.Telemetry do
@moduledoc false
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# ... | 32.701754 | 86 | 0.677039 |
74c4ef26a802ebb7988da390d5ebca8a9abc0549 | 479 | exs | Elixir | config/test.exs | Miradorn/absinthe_tutorial | fbe63be1d4acc92c7a85d4a04fd259ac6b5ef072 | [
"MIT"
] | 69 | 2017-11-15T17:26:57.000Z | 2022-01-25T16:37:40.000Z | config/test.exs | Miradorn/absinthe_tutorial | fbe63be1d4acc92c7a85d4a04fd259ac6b5ef072 | [
"MIT"
] | 24 | 2020-01-27T20:44:40.000Z | 2020-10-29T05:48:31.000Z | config/test.exs | Miradorn/absinthe_tutorial | fbe63be1d4acc92c7a85d4a04fd259ac6b5ef072 | [
"MIT"
] | 35 | 2017-11-12T22:04:10.000Z | 2021-07-22T18:00:39.000Z | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :blog, BlogWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :blog, Blog.Repo,
adapte... | 23.95 | 56 | 0.726514 |
74c4fbb28c1fa7aa3aafce54c741807bc8f2e21b | 1,038 | ex | Elixir | lib/kata_anagram/struct.ex | pascal-p/elixir-progr-kata-anagram | b1286441928089d6611caa58faff5851c3cd7a54 | [
"BSD-2-Clause"
] | null | null | null | lib/kata_anagram/struct.ex | pascal-p/elixir-progr-kata-anagram | b1286441928089d6611caa58faff5851c3cd7a54 | [
"BSD-2-Clause"
] | null | null | null | lib/kata_anagram/struct.ex | pascal-p/elixir-progr-kata-anagram | b1286441928089d6611caa58faff5851c3cd7a54 | [
"BSD-2-Clause"
] | null | null | null | defmodule KataAnagram.Struct do
defstruct map: %{}, list: []
def get_map(ds = %KataAnagram.Struct{}) do
ds.map
end
def get_list(ds = %KataAnagram.Struct{}) do
ds.list
end
def set_list(ds = %KataAnagram.Struct{}, list) do
%KataAnagram.Struct{ ds | list: list}
end
def set_map(ds = %KataAn... | 23.066667 | 67 | 0.604046 |
74c532ac535fe5cf57d0069dc2e86ba4babe7e49 | 4,762 | ex | Elixir | lib/sdk/comment.ex | edragonconnect/wechat_sdk | d1f08ec34937df8de2c31d472458c1682bf4db32 | [
"MIT"
] | 4 | 2020-06-05T09:30:59.000Z | 2021-05-08T11:35:22.000Z | lib/sdk/comment.ex | edragonconnect/wechat_sdk | d1f08ec34937df8de2c31d472458c1682bf4db32 | [
"MIT"
] | null | null | null | lib/sdk/comment.ex | edragonconnect/wechat_sdk | d1f08ec34937df8de2c31d472458c1682bf4db32 | [
"MIT"
] | 1 | 2020-06-05T16:05:27.000Z | 2020-06-05T16:05:27.000Z | defmodule WeChat.SDK.Comment do
@moduledoc """
图文消息留言管理
[API Docs Link](https://developers.weixin.qq.com/doc/offiaccount/Comments_management/Image_Comments_Management_Interface.html){:target="_blank"}
"""
import Jason.Helpers
alias WeChat.SDK
@doc_link "#{SDK.doc_link_prefix()}/offiaccount/Comments_mana... | 24.295918 | 146 | 0.581268 |
74c535617dacc71625ba97924f5d3b90bdabe0ec | 210 | exs | Elixir | test/demo_fixtures_web/controllers/page_controller_test.exs | Aridjar/demo_fixtures | 3f427c3bd9aa6debab21b75122e0ba164f7fc217 | [
"MIT"
] | null | null | null | test/demo_fixtures_web/controllers/page_controller_test.exs | Aridjar/demo_fixtures | 3f427c3bd9aa6debab21b75122e0ba164f7fc217 | [
"MIT"
] | 2 | 2021-03-09T19:18:16.000Z | 2021-05-10T16:10:11.000Z | test/demo_fixtures_web/controllers/page_controller_test.exs | Aridjar/demo_fixtures | 3f427c3bd9aa6debab21b75122e0ba164f7fc217 | [
"MIT"
] | null | null | null | defmodule DemoFixturesWeb.PageControllerTest do
use DemoFixturesWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get(conn, "/")
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 23.333333 | 60 | 0.695238 |
74c54228b82246f97c3ff4e699ec5f0cf524a526 | 3,399 | exs | Elixir | test/plug/parsers_test.exs | geemus/plug | 5b6a47754017c641fe9c7027365baa8d5a336c2d | [
"Apache-2.0"
] | 1 | 2018-04-09T16:40:02.000Z | 2018-04-09T16:40:02.000Z | test/plug/parsers_test.exs | geemus/plug | 5b6a47754017c641fe9c7027365baa8d5a336c2d | [
"Apache-2.0"
] | null | null | null | test/plug/parsers_test.exs | geemus/plug | 5b6a47754017c641fe9c7027365baa8d5a336c2d | [
"Apache-2.0"
] | null | null | null | defmodule Plug.ParsersTest do
use ExUnit.Case, async: true
import Plug.Test
def parse(conn, opts \\ []) do
opts = Keyword.put_new(opts, :parsers, [Plug.Parsers.URLENCODED, Plug.Parsers.MULTIPART])
Plug.Parsers.call(conn, Plug.Parsers.init(opts))
end
test "raises when no parsers is given" do
ass... | 36.159574 | 93 | 0.629891 |
74c5866c4a865c44fabb919f14f698c96749baa0 | 33,110 | ex | Elixir | lib/ash/flow/executor/ash_engine.ex | joshprice/ash | e452c4091918a88d51063000f7dc44b2f54f5f96 | [
"MIT"
] | null | null | null | lib/ash/flow/executor/ash_engine.ex | joshprice/ash | e452c4091918a88d51063000f7dc44b2f54f5f96 | [
"MIT"
] | null | null | null | lib/ash/flow/executor/ash_engine.ex | joshprice/ash | e452c4091918a88d51063000f7dc44b2f54f5f96 | [
"MIT"
] | null | null | null | defmodule Ash.Flow.Executor.AshEngine do
@moduledoc """
Executes the requests using the Ash engine, which can parallelize individual steps when possible.
"""
use Ash.Flow.Executor
defmodule Step do
@moduledoc false
defstruct [:step, :input]
end
defmodule Flow do
@moduledoc false
defstruc... | 28.967629 | 110 | 0.500755 |
74c5f973cb3f60eeee6cb4b768e0a339d2e0696d | 23,617 | ex | Elixir | clients/life_sciences/lib/google_api/life_sciences/v2beta/api/projects.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/life_sciences/lib/google_api/life_sciences/v2beta/api/projects.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/life_sciences/lib/google_api/life_sciences/v2beta/api/projects.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 44.309568 | 196 | 0.626201 |
74c616f8d2e5cf0bc805247d79b0c9c9ac294a9a | 2,699 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/user_profile.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/user_profile.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/user_profile.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.691176 | 169 | 0.68581 |
74c64898d46f7ccc8bd718d3285eb787837c5407 | 3,551 | ex | Elixir | lib/mix/lib/mix/tasks/deps.ex | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/deps.ex | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/deps.ex | sunaku/elixir | 8aa43eaedd76be8ac0d495049eb9ecd56971f4fe | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Deps do
use Mix.Task
import Mix.Dep, only: [loaded: 1, format_dep: 1, format_status: 1, check_lock: 2]
@shortdoc "List dependencies and their status"
@moduledoc ~S"""
List all dependencies and their status.
Dependencies must be specified in the `mix.exs` file in one of
the followin... | 29.347107 | 88 | 0.665446 |
74c65c4ba0c177975ce2b56190dfe7579dd707ff | 2,431 | ex | Elixir | lib/service/reg.ex | andrzej-mag/meshx_consul | 8287b0db3124e366b1359da24b4f2e804be375ee | [
"Apache-2.0"
] | 1 | 2021-05-20T07:09:29.000Z | 2021-05-20T07:09:29.000Z | lib/service/reg.ex | andrzej-mag/meshx_consul | 8287b0db3124e366b1359da24b4f2e804be375ee | [
"Apache-2.0"
] | null | null | null | lib/service/reg.ex | andrzej-mag/meshx_consul | 8287b0db3124e366b1359da24b4f2e804be375ee | [
"Apache-2.0"
] | null | null | null | defmodule MeshxConsul.Service.Reg do
@moduledoc false
alias MeshxConsul.Service.{Endpoint, Ets}
def config(service_id), do: Endpoint.get("/agent/service/#{service_id}")
def passing?(service_id) do
case Endpoint.get("/agent/health/service/id/#{service_id}") do
{:ok, _response} -> true
_ -> fals... | 32.413333 | 126 | 0.638009 |
74c6683c979e3b7f7c7c46331e4f58d1f0487a0a | 100 | exs | Elixir | test/influxql/sanitize_test.exs | hrzndhrn/influxql | 7b4970dc9c956978420a0601c75746bab0824704 | [
"Apache-2.0"
] | 1 | 2020-01-14T00:01:30.000Z | 2020-01-14T00:01:30.000Z | test/influxql/sanitize_test.exs | hrzndhrn/influxql | 7b4970dc9c956978420a0601c75746bab0824704 | [
"Apache-2.0"
] | 3 | 2018-10-26T15:05:42.000Z | 2019-05-25T14:00:47.000Z | test/influxql/sanitize_test.exs | hrzndhrn/influxql | 7b4970dc9c956978420a0601c75746bab0824704 | [
"Apache-2.0"
] | 2 | 2018-10-24T18:10:01.000Z | 2019-05-24T13:29:19.000Z | defmodule InfluxQL.SanitizeTest do
use ExUnit.Case
doctest InfluxQL.Sanitize, import: true
end
| 16.666667 | 41 | 0.8 |
74c69dfd7fc8acb3489e2fb664220a5ee267018e | 1,435 | exs | Elixir | test/oban/queue/executor_test.exs | smaximov/oban | 096e9f6b5a397f7863243466dbe002d1aba0d57e | [
"Apache-2.0"
] | null | null | null | test/oban/queue/executor_test.exs | smaximov/oban | 096e9f6b5a397f7863243466dbe002d1aba0d57e | [
"Apache-2.0"
] | null | null | null | test/oban/queue/executor_test.exs | smaximov/oban | 096e9f6b5a397f7863243466dbe002d1aba0d57e | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Queue.ExecutorTest do
use Oban.Case, async: true
import ExUnit.CaptureLog
alias Oban.Queue.Executor
defmodule Worker do
use Oban.Worker
@impl Worker
def perform(%{"mode" => "ok"}, _job), do: :ok
def perform(%{"mode" => "warn"}, _job), do: {:bad, :this_will_warn}
def perfor... | 30.531915 | 82 | 0.627875 |
74c6ac8afff6926a95902f851ec27064794b2317 | 534 | exs | Elixir | priv/repo/migrations/20180608202908_create_notifications.exs | helium/roaming-console | 0157d0f1666f50259d2887ed23f6bc5138ce67b6 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20180608202908_create_notifications.exs | helium/roaming-console | 0157d0f1666f50259d2887ed23f6bc5138ce67b6 | [
"Apache-2.0"
] | 14 | 2022-03-02T17:01:59.000Z | 2022-03-30T17:45:47.000Z | priv/repo/migrations/20180608202908_create_notifications.exs | helium/roaming-console | 0157d0f1666f50259d2887ed23f6bc5138ce67b6 | [
"Apache-2.0"
] | null | null | null | defmodule Console.Repo.Migrations.CreateAlerts do
use Ecto.Migration
def change do
create table(:alerts) do
add :team_id, references(:teams)
add :title, :string, null: false
add :body, :string
add :url, :string
add :category, :string
timestamps()
end
create table(:... | 21.36 | 66 | 0.655431 |
74c6b39494753140e1ab77380b129288275c3734 | 3,345 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/report_schedule.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/report_schedule.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/report_schedule.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 48.478261 | 233 | 0.698954 |
74c6be614f8867caeb91a1a8432ee316665861c2 | 631 | ex | Elixir | lib/lab42/simple_state_machine/types.ex | RobertDober/lab42_simple_state_machine | 947c092212fefea18c512a881c7ff25a898b9177 | [
"Apache-2.0"
] | null | null | null | lib/lab42/simple_state_machine/types.ex | RobertDober/lab42_simple_state_machine | 947c092212fefea18c512a881c7ff25a898b9177 | [
"Apache-2.0"
] | null | null | null | lib/lab42/simple_state_machine/types.ex | RobertDober/lab42_simple_state_machine | 947c092212fefea18c512a881c7ff25a898b9177 | [
"Apache-2.0"
] | null | null | null | defmodule Lab42.SimpleStateMachine.Types do
alias Lab42.SimpleStateMachine.Data
@moduledoc false
defmacro __using__(_opts \\ []) do
quote do
@type maybe(t) :: t | nil
@type function_t :: (any() -> any())
@type transition_fn_t :: ( Data.t ) :: any()
@type state_t :: atom()
... | 27.434783 | 80 | 0.570523 |
74c6c11fd10a57d3d10266057742fc264e7d4446 | 1,476 | ex | Elixir | lib/cryptex_web/views/error_helpers.ex | Skoda091/cryptex | 60ccbc900fbb7424addd9f56ad5b32266b28636d | [
"MIT"
] | null | null | null | lib/cryptex_web/views/error_helpers.ex | Skoda091/cryptex | 60ccbc900fbb7424addd9f56ad5b32266b28636d | [
"MIT"
] | null | null | null | lib/cryptex_web/views/error_helpers.ex | Skoda091/cryptex | 60ccbc900fbb7424addd9f56ad5b32266b28636d | [
"MIT"
] | 1 | 2018-12-26T19:46:25.000Z | 2018-12-26T19:46:25.000Z | defmodule CryptexWeb.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_ta... | 32.8 | 76 | 0.670732 |
74c6ca6ebe0d3ac80f42ad6a7787f240098898be | 878 | exs | Elixir | elixir/elixir-sips/samples/OTP/supervised_list_server/mix.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 2 | 2015-12-09T02:16:51.000Z | 2021-07-26T22:53:43.000Z | elixir/elixir-sips/samples/OTP/supervised_list_server/mix.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | null | null | null | elixir/elixir-sips/samples/OTP/supervised_list_server/mix.exs | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 1 | 2016-05-08T18:40:31.000Z | 2016-05-08T18:40:31.000Z | Code.append_path "_build/shared/lib/relex/ebin"
Code.append_path "_build/shared/lib/pogo/ebin"
if Code.ensure_loaded?(Relex.Release) do
defmodule SupervisedListServer.Release do
use Relex.Release
use Pogo.Release
def name, do: "supervised_list_server"
def applications, do: [:pogo, :supervised_list_s... | 21.414634 | 67 | 0.656036 |
74c6cd391b5d51d0479b6ea5e75d4b4ef475e80d | 561 | ex | Elixir | lib/radiator_web/views/changeset_view.ex | bhtabor/radiator | 39c137a18d36d6f418f9d1ffb7aa2c99011d66cf | [
"MIT"
] | 92 | 2019-01-03T11:46:23.000Z | 2022-02-19T21:28:44.000Z | lib/radiator_web/views/changeset_view.ex | bhtabor/radiator | 39c137a18d36d6f418f9d1ffb7aa2c99011d66cf | [
"MIT"
] | 350 | 2019-04-11T07:55:51.000Z | 2021-08-03T11:19:05.000Z | lib/radiator_web/views/changeset_view.ex | bhtabor/radiator | 39c137a18d36d6f418f9d1ffb7aa2c99011d66cf | [
"MIT"
] | 10 | 2019-04-18T12:47:27.000Z | 2022-01-25T20:49:15.000Z | defmodule RadiatorWeb.ChangesetView do
use RadiatorWeb, :view
@doc """
Traverses and translates changeset errors.
See `Ecto.Changeset.traverse_errors/2` and
`RadiatorWeb.ErrorHelpers.translate_error/1` for more details.
"""
def translate_errors(changeset) do
Ecto.Changeset.traverse_errors(changeset,... | 28.05 | 65 | 0.73975 |
74c6e3e5d7032dc902ae3e0bfae0dc378d45b2eb | 8,163 | exs | Elixir | test/groupher_server/cms/articles/meetup_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/cms/articles/meetup_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/cms/articles/meetup_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.Articles.Meetup do
use GroupherServer.TestTools
import Helper.Utils, only: [get_config: 2]
alias GroupherServer.{CMS, Repo}
alias Helper.Converter.{EditorToHTML, HtmlSanitizer}
alias EditorToHTML.{Class, Validator}
alias CMS.Model.{Author, Meetup, Community, ArticleDocument,... | 38.504717 | 98 | 0.681735 |
74c7216314fb277c608ae65a45975198ae994dec | 1,647 | exs | Elixir | exercises/05-supervisors/04-a-dynamic-environment/solution.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 1 | 2021-09-22T09:52:11.000Z | 2021-09-22T09:52:11.000Z | exercises/05-supervisors/04-a-dynamic-environment/solution.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 22 | 2019-06-19T18:58:13.000Z | 2020-03-16T14:43:06.000Z | exercises/05-supervisors/04-a-dynamic-environment/solution.exs | DennisWinnepenninckx/distributed-applications | 06743e4e2a09dc52ff52be831e486bb073916173 | [
"BSD-3-Clause"
] | 32 | 2019-09-19T03:25:11.000Z | 2020-10-06T15:01:47.000Z | workers = [A, B, C]
supervisor = SUP
defmodule Employee do
use GenServer
require IEx
def start_link(name: n), do: GenServer.start_link(__MODULE__, 0, name: n)
def init(work) when is_integer(work), do: {:ok, %{work: 0}, {:continue, :start}}
def add_work(emp, amount), do: GenServer.cast(emp, {:addwork, amount... | 26.142857 | 82 | 0.630237 |
74c7458ae70b6b4a93e73ec7253ce8ef904e300d | 2,148 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/generate_config_report_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/generate_config_report_request.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/generate_config_report_request.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... | 42.117647 | 270 | 0.777933 |
74c7b8aa1c81585dcab60e6edd8ef47f68ef2bb0 | 382 | ex | Elixir | lib/membrane/core/child/lifecycle_controller.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | null | null | null | lib/membrane/core/child/lifecycle_controller.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | null | null | null | lib/membrane/core/child/lifecycle_controller.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Core.Child.LifecycleController do
@moduledoc false
use Bunch
alias Membrane.Core.{Child, Message}
alias Membrane.Core.Child.PadModel
require Message
require PadModel
@spec unlink(Child.state_t()) :: :ok
def unlink(state) do
state.pads.data
|> Map.values()
|> Enum.each(&... | 21.222222 | 69 | 0.709424 |
74c7f64bdf4904aa5227c4313f4b6660690727b6 | 87 | ex | Elixir | getting-started/lib/getting_started_elixir_web/views/page_view.ex | renovate-bot/elixir-samples | 91da795ecdfac83eb6fcac63bc532da98c69d520 | [
"Apache-2.0"
] | 274 | 2017-08-25T06:39:51.000Z | 2022-03-15T21:03:27.000Z | getting-started/lib/getting_started_elixir_web/views/page_view.ex | renovate-bot/elixir-samples | 91da795ecdfac83eb6fcac63bc532da98c69d520 | [
"Apache-2.0"
] | 15 | 2017-10-03T17:05:48.000Z | 2021-11-23T00:33:23.000Z | getting-started/lib/getting_started_elixir_web/views/page_view.ex | renovate-bot/elixir-samples | 91da795ecdfac83eb6fcac63bc532da98c69d520 | [
"Apache-2.0"
] | 42 | 2017-08-28T20:08:47.000Z | 2022-01-18T07:51:02.000Z | defmodule GettingStartedElixirWeb.PageView do
use GettingStartedElixirWeb, :view
end
| 21.75 | 45 | 0.862069 |
74c8313a4b8c5d2f53ae5ff06e15f6ecbc87c0fa | 6,017 | exs | Elixir | test/changelog/buffer/content_test.exs | lawik/changelog.com | 3f0b6ceb6ba723df9b21164114fbc208509e9c12 | [
"MIT"
] | null | null | null | test/changelog/buffer/content_test.exs | lawik/changelog.com | 3f0b6ceb6ba723df9b21164114fbc208509e9c12 | [
"MIT"
] | null | null | null | test/changelog/buffer/content_test.exs | lawik/changelog.com | 3f0b6ceb6ba723df9b21164114fbc208509e9c12 | [
"MIT"
] | null | null | null | defmodule Changelog.Buffer.ContentTest do
use Changelog.SchemaCase
import Mock
alias Changelog.Buffer.Content
alias ChangelogWeb.{Endpoint, NewsItemView, Router}
describe "episode_link" do
test "defaults to nil" do
assert is_nil(Content.episode_link(nil))
end
test "returns the item's url... | 36.246988 | 96 | 0.663786 |
74c84c17d9933b1a98691b4e9479369998317663 | 1,115 | ex | Elixir | lib/mix/tasks/freddie.server.ex | kernelgarden/freddie | ec8bce295bc9b74ff5364708d04b1346184cf6e4 | [
"MIT"
] | 8 | 2019-03-16T04:13:37.000Z | 2020-03-16T01:57:41.000Z | lib/mix/tasks/freddie.server.ex | kernelgarden/freddie | ec8bce295bc9b74ff5364708d04b1346184cf6e4 | [
"MIT"
] | null | null | null | lib/mix/tasks/freddie.server.ex | kernelgarden/freddie | ec8bce295bc9b74ff5364708d04b1346184cf6e4 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Freddie.Server do
use Mix.Task
@impl true
@shortdoc "Starts current freddie server application."
def run(args) do
case args do
["start"] ->
start()
_ ->
print_guide()
end
end
def start do
run_by_enviroment()
renew()
end
def renew do
... | 19.561404 | 89 | 0.621525 |
74c867f50fe6d90f33503c3cb01342e59812b251 | 1,028 | ex | Elixir | config/dispatcher/dispatcher.ex | mu-semtech/app-mu-info | b253a23f5b4faecae5ba4669cb7a5faf6d8bdcff | [
"MIT"
] | 1 | 2020-02-04T22:55:12.000Z | 2020-02-04T22:55:12.000Z | config/dispatcher/dispatcher.ex | mu-semtech/app-mu-info | b253a23f5b4faecae5ba4669cb7a5faf6d8bdcff | [
"MIT"
] | null | null | null | config/dispatcher/dispatcher.ex | mu-semtech/app-mu-info | b253a23f5b4faecae5ba4669cb7a5faf6d8bdcff | [
"MIT"
] | null | null | null | defmodule Dispatcher do
use Plug.Router
def start(_argv) do
port = 80
IO.puts "Starting Plug with Cowboy on port #{port}"
Plug.Adapters.Cowboy.http __MODULE__, [], port: port
:timer.sleep(:infinity)
end
plug Plug.Logger
plug :match
plug :dispatch
# In order to forward the 'themes' resou... | 24.47619 | 84 | 0.688716 |
74c8687b150994a1dbc8c9fb896c3ed8833e9746 | 1,463 | ex | Elixir | lib/procore/resources/punch_items.ex | procore/elixir-sdk | abff2935702a5e9f0290a072e90c2f219bca3cb8 | [
"MIT"
] | 6 | 2018-02-01T01:34:16.000Z | 2020-08-31T15:15:08.000Z | lib/procore/resources/punch_items.ex | procore/elixir-sdk | abff2935702a5e9f0290a072e90c2f219bca3cb8 | [
"MIT"
] | 6 | 2018-02-03T03:01:48.000Z | 2021-06-08T18:39:40.000Z | lib/procore/resources/punch_items.ex | procore/elixir-sdk | abff2935702a5e9f0290a072e90c2f219bca3cb8 | [
"MIT"
] | 3 | 2018-08-12T03:51:52.000Z | 2020-02-27T14:29:14.000Z | defmodule Procore.Resources.PunchItems do
@moduledoc """
Available actions for the punch item resource.
"""
alias Procore.ErrorResult
alias Procore.Request
alias Procore.ResponseResult
@doc """
Lists all punch items in a project.
"""
@spec list(Tesla.Client.t(), %{
required(project_id ::... | 34.023256 | 94 | 0.648667 |
74c8935aa1ff7c583dd9f4932eaef2777755819e | 71 | exs | Elixir | test/gatekeeper_test.exs | samfrench/gatekeeper | 6286ed16360e0d538e7f4c802a866b2cd83d5514 | [
"MIT"
] | null | null | null | test/gatekeeper_test.exs | samfrench/gatekeeper | 6286ed16360e0d538e7f4c802a866b2cd83d5514 | [
"MIT"
] | null | null | null | test/gatekeeper_test.exs | samfrench/gatekeeper | 6286ed16360e0d538e7f4c802a866b2cd83d5514 | [
"MIT"
] | null | null | null | defmodule GatekeeperTest do
use ExUnit.Case
doctest Gatekeeper
end
| 14.2 | 27 | 0.816901 |
74c8bafe18a874710b4d62359357d3357611b931 | 7,778 | exs | Elixir | mix.exs | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | mix.exs | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | mix.exs | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2018 ACCESS CO., LTD. All rights reserved.
# Change in `mix_common.exs` should trigger full compilation of the antikythera project
# (see also `Mix.Tasks.Compile.PropagateFileModifications`)
mix_path = Path.join(__DIR__, "mix.exs" )
mix_common_path = Path.join(__DIR__, "mix_common.exs"... | 44.701149 | 148 | 0.586783 |
74c8be1a5fb1c1eeb272f10f6092171962e5cff9 | 21,313 | ex | Elixir | lib/elixir/lib/protocol.ex | basdirks/elixir | 2cb058ba32e410e8ea073970ef52d6476ef7b4d3 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/protocol.ex | basdirks/elixir | 2cb058ba32e410e8ea073970ef52d6476ef7b4d3 | [
"Apache-2.0"
] | 1 | 2018-09-10T23:36:45.000Z | 2018-09-10T23:36:45.000Z | lib/elixir/lib/protocol.ex | basdirks/elixir | 2cb058ba32e410e8ea073970ef52d6476ef7b4d3 | [
"Apache-2.0"
] | 1 | 2018-09-10T23:32:56.000Z | 2018-09-10T23:32:56.000Z | defmodule Protocol do
@moduledoc """
Functions for working with protocols.
"""
@doc """
Defines a new protocol function.
Protocols do not allow functions to be defined directly, instead, the
regular `Kernel.def/*` macros are replaced by this macro which
defines the protocol functions with the appropri... | 30.060649 | 97 | 0.637592 |
74c8bef39d9b4efbea6f6377f226cd5a709bda79 | 1,466 | ex | Elixir | test/support/user_retro_case.ex | codyduval/remote_retro_crd | b3a4adda7503b4e1ca5ec135cd34e1e71ec8d247 | [
"MIT"
] | null | null | null | test/support/user_retro_case.ex | codyduval/remote_retro_crd | b3a4adda7503b4e1ca5ec135cd34e1e71ec8d247 | [
"MIT"
] | null | null | null | test/support/user_retro_case.ex | codyduval/remote_retro_crd | b3a4adda7503b4e1ca5ec135cd34e1e71ec8d247 | [
"MIT"
] | null | null | null | defmodule RemoteRetro.UserRetroCase do
use ExUnit.CaseTemplate
alias RemoteRetro.{Repo, Retro, User, Participation, TestHelpers}
import Ecto.Query, only: [from: 2]
import TestHelpers
setup_all _tags do
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Repo)
# we are setting :auto here so that the data persist... | 35.756098 | 90 | 0.710095 |
74c8c6b3577b1d148dad49aa67f7f2aa2eb5ca60 | 1,156 | ex | Elixir | lib/format_parser/font.ex | antoniskalou/format_parser.ex | bce7f1cdae5ec4be198c49b6f5ef303d43135e33 | [
"Apache-2.0"
] | null | null | null | lib/format_parser/font.ex | antoniskalou/format_parser.ex | bce7f1cdae5ec4be198c49b6f5ef303d43135e33 | [
"Apache-2.0"
] | null | null | null | lib/format_parser/font.ex | antoniskalou/format_parser.ex | bce7f1cdae5ec4be198c49b6f5ef303d43135e33 | [
"Apache-2.0"
] | null | null | null | defmodule FormatParser.Font do
alias __MODULE__
@moduledoc """
A Font struct and functions.
The Font struct contains the fields format and nature.
"""
defstruct [:format, nature: :font]
@doc """
Parses a file and extracts some information from it.
Takes a `binary file` as argument.
Returns a s... | 21.018182 | 114 | 0.638408 |
74c8cefe908b25f6f087606e0ccc8739225635e5 | 308 | ex | Elixir | elixir/hacker_rank_fp/hello-world-ntimes-03.ex | jglord/fp-study | 65362e2a540595522e596acbb4b910576f9f7f80 | [
"MIT"
] | null | null | null | elixir/hacker_rank_fp/hello-world-ntimes-03.ex | jglord/fp-study | 65362e2a540595522e596acbb4b910576f9f7f80 | [
"MIT"
] | null | null | null | elixir/hacker_rank_fp/hello-world-ntimes-03.ex | jglord/fp-study | 65362e2a540595522e596acbb4b910576f9f7f80 | [
"MIT"
] | null | null | null | defmodule Solution do
#Enter your code here. Read input from STDIN. Print output to STDOUT
def hello_worlds(n) do
if n > 0 do
IO.puts("Hello World")
hello_worlds(n-1)
end
end
end
n = IO.gets("") |> String.to_integer
Solution.hello_worlds n
| 25.666667 | 70 | 0.584416 |
74c8dac78870bedb25f07107494f849fb185e73b | 1,423 | ex | Elixir | lib/mix_test_iex/ex_unit_observer.ex | marciol/mix_test_iex | 865fcc9eb4f7c7e686d714c5f19700418d4a1a0d | [
"MIT"
] | null | null | null | lib/mix_test_iex/ex_unit_observer.ex | marciol/mix_test_iex | 865fcc9eb4f7c7e686d714c5f19700418d4a1a0d | [
"MIT"
] | null | null | null | lib/mix_test_iex/ex_unit_observer.ex | marciol/mix_test_iex | 865fcc9eb4f7c7e686d714c5f19700418d4a1a0d | [
"MIT"
] | null | null | null | defmodule MixTestIEx.ExUnitObserver do
use GenServer
@impl true
def init(config) do
{:ok, config}
end
def handle_cast({:test_finished, %ExUnit.Test{state: nil} = _test}, config) do
MixTestIEx.Controller.test_notify(success("."))
{:noreply, config}
end
def handle_cast({:test_finished, %ExUn... | 21.560606 | 97 | 0.666198 |
74c8f760dfb02f125ac9069faf55b67093d17ea8 | 2,123 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/super_chat_event.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/super_chat_event.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/super_chat_event.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... | 36.603448 | 170 | 0.710787 |
74c954cff58e8520f6248fc64c3735d663443234 | 4,007 | ex | Elixir | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/api/media.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/api/media.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/you_tube_reporting/lib/google_api/you_tube_reporting/v1/api/media.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... | 41.309278 | 196 | 0.646119 |
74c9634608bcf90938331271006bef2a7e9ce510 | 1,774 | ex | Elixir | lib/bejo/cli.ex | fossabot/bejo | 7d25d68ef97bd77b7d53fc9a9546261fdc99bfba | [
"Apache-2.0"
] | null | null | null | lib/bejo/cli.ex | fossabot/bejo | 7d25d68ef97bd77b7d53fc9a9546261fdc99bfba | [
"Apache-2.0"
] | null | null | null | lib/bejo/cli.ex | fossabot/bejo | 7d25d68ef97bd77b7d53fc9a9546261fdc99bfba | [
"Apache-2.0"
] | null | null | null | defmodule Bejo.Cli do
use Bakeware.Script
require Logger
@impl Bakeware.Script
def main(args) do
parse_args(args)
end
defp parse_args([]) do
IO.puts("""
Usage:
bejo start <directory>
Starts the router.bejo file inside <directory>.
bejo exec [<filename> [--function <functi... | 23.972973 | 91 | 0.614994 |
74c96930621d7fbfe5cdf8325de818240648e24c | 1,922 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v3/model/device_group.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v3/model/device_group.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v3/model/device_group.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.44 | 213 | 0.738814 |
74c96ba55b5f68003c2dc6379f5e9c105d67f5da | 23,736 | ex | Elixir | lib/bno055.ex | TattdCodeMonkey/bno055 | 195f072521834be2416453a1f2ee41280d07d3a3 | [
"MIT"
] | 1 | 2016-02-05T14:23:57.000Z | 2016-02-05T14:23:57.000Z | lib/bno055.ex | TattdCodeMonkey/bno055 | 195f072521834be2416453a1f2ee41280d07d3a3 | [
"MIT"
] | null | null | null | lib/bno055.ex | TattdCodeMonkey/bno055 | 195f072521834be2416453a1f2ee41280d07d3a3 | [
"MIT"
] | null | null | null | defmodule BNO055 do
use BNO055.SensorInterface
@moduledoc """
This module is used to create commands for interacting with a Bosch BNO055 sensor. This
module is intended to be an unopinionated collection of functions to created data for
communicating with the sensor, but does not handle actual communication.
... | 30.548263 | 187 | 0.648593 |
74c978558407cf52234238bb69861f09137d4ef9 | 605 | ex | Elixir | lib/mix/tasks/import.ex | msawka/ccb_import | da9dfb22fdf016c6bcfc19f4e9b00e67f4137a20 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/import.ex | msawka/ccb_import | da9dfb22fdf016c6bcfc19f4e9b00e67f4137a20 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/import.ex | msawka/ccb_import | da9dfb22fdf016c6bcfc19f4e9b00e67f4137a20 | [
"Apache-2.0"
] | null | null | null | require Logger
defmodule Mix.Tasks.Import do
use Mix.Task
alias CcbImport.Importers.TouchPoint
@shortdoc "Import a CSV and generate an output"
def run(args) do
parsed_args = parse_args(args)
import_from(parsed_args[:input_system], parsed_args)
end
def import_from("touchpoint", opts) do
Touch... | 24.2 | 56 | 0.687603 |
74c980418c603d1ac79df6c471c8ddf90a2b4780 | 569 | ex | Elixir | lib/eagle/language.ex | nitkagoshima-sysken/Eagle | 11597dafff00e82153f9fafe25be756e1361358e | [
"MIT"
] | 1 | 2015-11-15T08:07:48.000Z | 2015-11-15T08:07:48.000Z | lib/eagle/language.ex | nitkagoshima-sysken/Eagle | 11597dafff00e82153f9fafe25be756e1361358e | [
"MIT"
] | null | null | null | lib/eagle/language.ex | nitkagoshima-sysken/Eagle | 11597dafff00e82153f9fafe25be756e1361358e | [
"MIT"
] | null | null | null | defmodule Eagle.Language do
defmacro __using__(_opts) do
quote do
import Eagle.Language
end
end
defmacro language(name, display, clauses) do
build_language(name, display, clauses)
end
defp build_language(name, display, do: execute) do
build_language(name, display, do: execute, compile... | 23.708333 | 131 | 0.711775 |
74c98cf01b213d7199a432643919d32448a7c406 | 802 | ex | Elixir | lib/poxa/auth_signature.ex | pkdcryptos/edgurgel-poxa | d99fbd3ac54317a180349ee91d8e20cdc8270a63 | [
"MIT"
] | null | null | null | lib/poxa/auth_signature.ex | pkdcryptos/edgurgel-poxa | d99fbd3ac54317a180349ee91d8e20cdc8270a63 | [
"MIT"
] | null | null | null | lib/poxa/auth_signature.ex | pkdcryptos/edgurgel-poxa | d99fbd3ac54317a180349ee91d8e20cdc8270a63 | [
"MIT"
] | null | null | null | defmodule Poxa.AuthSignature do
@moduledoc """
This module encapsulates the signature validation described at:
http://pusher.com/docs/auth_signatures
"""
require Logger
alias Poxa.CryptoHelper
@doc """
Validate auth signature as described at: http://pusher.com/docs/auth_signatures .
Returns true or ... | 27.655172 | 84 | 0.701995 |
74c99de0bd625040bf3b8438108b47ee83992806 | 928 | ex | Elixir | lib/extractors/http.ex | serverboards/exosql | cb15305a1aecc97d9946bd32501f03c7894cfcd0 | [
"Apache-2.0"
] | 60 | 2018-01-12T12:53:13.000Z | 2022-02-23T23:32:59.000Z | lib/extractors/http.ex | serverboards/exosql | cb15305a1aecc97d9946bd32501f03c7894cfcd0 | [
"Apache-2.0"
] | 1 | 2018-02-22T13:09:08.000Z | 2018-02-22T18:33:53.000Z | lib/extractors/http.ex | serverboards/exosql | cb15305a1aecc97d9946bd32501f03c7894cfcd0 | [
"Apache-2.0"
] | null | null | null | require Logger
defmodule ExoSQL.HTTP do
@moduledoc """
Example Extractor that performs HTTP requests
This is a virtual extractor that requires an `url` to operate with.
"""
def schema(_db) do
{:ok, ["request"]}
end
def schema(_db, "request"), do: {:ok, %{columns: ["url", "status_code", "body"]}}
... | 20.622222 | 83 | 0.539871 |
74c9afd4715fc5ad1bc3a1493c910503814327a9 | 46 | exs | Elixir | elixir/131.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | elixir/131.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | elixir/131.exs | merxer/kata | 5dbbca8b4173029f9311398148de9437a329cf9a | [
"MIT"
] | null | null | null | :application.which_applications
|> IO.inspect
| 15.333333 | 31 | 0.826087 |
74c9bc87aa41e7a152edaaa5950835eed2d50a03 | 1,649 | ex | Elixir | lib/cotoami/services/gravatar_service.ex | cruatta/cotoami | 29b7ef66c053cf4e381c6ff65d5fd599066ebabe | [
"Apache-2.0"
] | 337 | 2016-11-28T15:46:58.000Z | 2022-03-01T06:21:25.000Z | lib/cotoami/services/gravatar_service.ex | cruatta/cotoami | 29b7ef66c053cf4e381c6ff65d5fd599066ebabe | [
"Apache-2.0"
] | 79 | 2017-02-27T05:44:36.000Z | 2021-12-09T00:28:11.000Z | lib/cotoami/services/gravatar_service.ex | cruatta/cotoami | 29b7ef66c053cf4e381c6ff65d5fd599066ebabe | [
"Apache-2.0"
] | 47 | 2018-02-03T01:32:13.000Z | 2021-11-08T07:54:43.000Z | defmodule Cotoami.GravatarService do
@moduledoc """
Provides Gravatar related functions.
"""
require Logger
alias Cotoami.EmailUser
@gravatar_url_prefix "https://secure.gravatar.com/"
@gravatar_user_agent "Cotoami"
def get_user(email) do
gravatar_profile = get_gravatar_profile(email) || %{}
%... | 25.765625 | 81 | 0.645846 |
74c9c089592be6b44a8de3ae48c10509713cee1e | 851 | ex | Elixir | lib/template_processors/colors.ex | operable/template_processors | b3a06bd95870ea8f9fcfb180929e2aed163f76dc | [
"Apache-2.0"
] | null | null | null | lib/template_processors/colors.ex | operable/template_processors | b3a06bd95870ea8f9fcfb180929e2aed163f76dc | [
"Apache-2.0"
] | null | null | null | lib/template_processors/colors.ex | operable/template_processors | b3a06bd95870ea8f9fcfb180929e2aed163f76dc | [
"Apache-2.0"
] | null | null | null | defmodule TemplateProcessors.Colors do
@external_resource "priv/css-color-names.json"
hex_codes = File.read!(@external_resource) |> Poison.decode!
names = Enum.reduce(hex_codes, %{}, fn({name, code}, acc) -> Map.put(acc, code, name) end)
def name_to_hex(<<?#, _::binary>>=color), do: color
Enum.each(hex_cod... | 32.730769 | 96 | 0.678026 |
74ca14c9c23e84466b1f5daf6b4bf32cfe9de751 | 4,678 | ex | Elixir | lib/phoenix/code_reloader.ex | wojtekmach/phoenix | a6b3bf301c7088b8824a39a165582dc85dfdd2a4 | [
"MIT"
] | null | null | null | lib/phoenix/code_reloader.ex | wojtekmach/phoenix | a6b3bf301c7088b8824a39a165582dc85dfdd2a4 | [
"MIT"
] | null | null | null | lib/phoenix/code_reloader.ex | wojtekmach/phoenix | a6b3bf301c7088b8824a39a165582dc85dfdd2a4 | [
"MIT"
] | null | null | null | defmodule Phoenix.CodeReloader do
@moduledoc """
A plug and module to handle automatic code reloading.
For each request, Phoenix checks if any of the modules previously
compiled requires recompilation via `__phoenix_recompile__?/0` and then
calls `mix compile` for sources exclusive to the `web` directory.
... | 25.150538 | 147 | 0.523728 |
74ca76ca5c019d39d507fa2198749e2e40873306 | 258 | ex | Elixir | test/support/factory.ex | cesium/safira | 07a02f54f9454db1cfb5a510da68f40c47dcd916 | [
"MIT"
] | 40 | 2018-07-04T19:13:45.000Z | 2021-12-16T23:53:43.000Z | test/support/factory.ex | cesium/safira | 10dd45357c20e8afc22563f114f49ccb74008114 | [
"MIT"
] | 94 | 2018-07-25T13:13:39.000Z | 2022-02-15T04:09:42.000Z | test/support/factory.ex | cesium/safira | 10dd45357c20e8afc22563f114f49ccb74008114 | [
"MIT"
] | 5 | 2018-11-26T17:19:03.000Z | 2021-02-23T08:09:37.000Z | defmodule Safira.Factory do
use ExMachina.Ecto, repo: Safira.Repo
use Safira.UserStrategy
use Safira.UserFactory
use Safira.AttendeeFactory
use Safira.BadgeFactory
use Safira.RedeemFactory
use Safira.PrizeStrategy
use Safira.PrizeFactory
end
| 23.454545 | 39 | 0.806202 |
74ca9362eda309eca7374ec6b84d0381ab53e397 | 1,570 | ex | Elixir | lib/vaccine_tracker_web/views/error_helpers.ex | uralfrkn/covid19asi | 7fd8839980234cb78f4949c84efad6930210cade | [
"MIT"
] | null | null | null | lib/vaccine_tracker_web/views/error_helpers.ex | uralfrkn/covid19asi | 7fd8839980234cb78f4949c84efad6930210cade | [
"MIT"
] | null | null | null | lib/vaccine_tracker_web/views/error_helpers.ex | uralfrkn/covid19asi | 7fd8839980234cb78f4949c84efad6930210cade | [
"MIT"
] | null | null | null | defmodule VaccineTrackerWeb.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 ->
conte... | 32.708333 | 83 | 0.670064 |
74ca9a89fc99ed610a9af8a33115c185553fb286 | 945 | exs | Elixir | mix.exs | fbeline/copeiro | c35752599875181c774d6f8f389e190af55c5e84 | [
"MIT"
] | 4 | 2021-05-03T12:38:34.000Z | 2021-07-06T13:02:43.000Z | mix.exs | fbeline/copeiro | c35752599875181c774d6f8f389e190af55c5e84 | [
"MIT"
] | 1 | 2021-05-06T03:07:42.000Z | 2021-05-06T03:07:42.000Z | mix.exs | fbeline/copeiro | c35752599875181c774d6f8f389e190af55c5e84 | [
"MIT"
] | 1 | 2021-05-06T02:54:05.000Z | 2021-05-06T02:54:05.000Z | defmodule Copeiro.MixProject do
use Mix.Project
def project do
[
app: :copeiro,
version: "0.1.1",
elixir: "~> 1.9",
deps: deps(),
name: "Copeiro",
source_url: "https://github.com/fbeline/copeiro",
description:
"The Copeiro package provides assertion functions t... | 24.868421 | 111 | 0.546032 |
74ca9fde90c254cf3736ea95ed525c2944c347bf | 304 | ex | Elixir | test/support/schemas/postgres/tenant.ex | elixir-garage/ex_tenant | 2336ab92d4cf0e826fdd6bf6ce5fb0206095f007 | [
"Apache-2.0"
] | 1 | 2022-02-09T23:17:09.000Z | 2022-02-09T23:17:09.000Z | test/support/schemas/postgres/tenant.ex | elixir-garage/ex_tenant | 2336ab92d4cf0e826fdd6bf6ce5fb0206095f007 | [
"Apache-2.0"
] | null | null | null | test/support/schemas/postgres/tenant.ex | elixir-garage/ex_tenant | 2336ab92d4cf0e826fdd6bf6ce5fb0206095f007 | [
"Apache-2.0"
] | null | null | null | defmodule ExTenant.Test.Support.Schemas.Postgres.Tenant do
use Ecto.Schema
import Ecto.Changeset
@primary_key {:tenant_id, :id, autogenerate: true}
schema "tenants" do
field(:name, :string)
end
def changeset(params \\ :empty) do
%__MODULE__{}
|> cast(params, [:name])
end
end
| 20.266667 | 58 | 0.6875 |
74cab527ef0727d84215385b461ef0145de36e3a | 22,715 | exs | Elixir | test/timely_test.exs | midas/timely | c6c131cac64d14877e43c01cbf0ac22ee748edc8 | [
"MIT"
] | null | null | null | test/timely_test.exs | midas/timely | c6c131cac64d14877e43c01cbf0ac22ee748edc8 | [
"MIT"
] | null | null | null | test/timely_test.exs | midas/timely | c6c131cac64d14877e43c01cbf0ac22ee748edc8 | [
"MIT"
] | null | null | null | defmodule Timely.TimelyTest do
use ExUnit.Case, async: true
describe "as/2 when providing nil" do
setup do
{:ok, %{date: nil}}
end
test "should be able to convert it to an :date_tuple", %{date: date} do
assert is_nil(Timely.as(date, :date_tuple))
end
test "should be able to conv... | 35.884676 | 97 | 0.619503 |
74cae03c5487acf69867fc48c20fb33dcb3bad7e | 886 | ex | Elixir | clients/cloud_asset/lib/google_api/cloud_asset/v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_asset/lib/google_api/cloud_asset/v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_asset/lib/google_api/cloud_asset/v1/metadata.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.814815 | 74 | 0.759594 |
74cae89a24e96c542fe398f23e04e8fe90f9be62 | 14,008 | exs | Elixir | apps/ello_v2/test/controllers/artist_invite_submission_controller_test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 16 | 2017-06-21T21:31:20.000Z | 2021-05-09T03:23:26.000Z | apps/ello_v2/test/controllers/artist_invite_submission_controller_test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 25 | 2017-06-07T12:18:28.000Z | 2018-06-08T13:27:43.000Z | apps/ello_v2/test/controllers/artist_invite_submission_controller_test.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 3 | 2018-06-14T15:34:07.000Z | 2022-02-28T21:06:13.000Z | defmodule Ello.V2.ArtistInviteSubmissionControllerTest do
use Ello.V2.ConnCase
alias Ello.Core.Repo
setup %{conn: conn} do
Ecto.Adapters.SQL.Sandbox.mode(Repo, {:shared, self()})
brand = Factory.insert(:user)
staff = Factory.insert(:user, is_staff: true)
invite = Factory.insert(:artist_invite, %{... | 45.187097 | 201 | 0.685537 |
74cb13be09a2a97f299a805cf924718046f47ae9 | 3,785 | exs | Elixir | .credo.exs | MajAhd/elx_validation | 4146a86bf16ea1154d391bde1aa847fe5cc79c4e | [
"MIT"
] | 3 | 2021-07-03T08:27:46.000Z | 2021-08-18T06:00:38.000Z | .credo.exs | MajAhd/elx_validation | 4146a86bf16ea1154d391bde1aa847fe5cc79c4e | [
"MIT"
] | 1 | 2021-06-21T19:27:35.000Z | 2021-06-30T18:24:39.000Z | .credo.exs | MajAhd/elx_validation | 4146a86bf16ea1154d391bde1aa847fe5cc79c4e | [
"MIT"
] | 1 | 2021-08-13T16:14:13.000Z | 2021-08-13T16:14:13.000Z | # This file contains the configuration for Credo and you are probably reading
%{
configs: [
%{
name: "default",
files: %{
included: ["lib/", "src/", "web/", "apps/"],
excluded: [~r"/_build/", ~r"/deps/"]
},
plugins: [],
requires: [],
strict: false,
parse_... | 43.011364 | 79 | 0.676618 |
74cb2628ba5047ac9063e589a7ef9912aa874c60 | 557 | ex | Elixir | lib/ex_audit.ex | scripbox/ex_audit | 6478d72816e9357c9ba4eb5eeafd0244010133b4 | [
"MIT"
] | 277 | 2017-10-18T13:19:40.000Z | 2022-03-24T17:11:47.000Z | lib/ex_audit.ex | scripbox/ex_audit | 6478d72816e9357c9ba4eb5eeafd0244010133b4 | [
"MIT"
] | 68 | 2017-10-27T01:54:21.000Z | 2022-02-22T16:34:48.000Z | lib/ex_audit.ex | scripbox/ex_audit | 6478d72816e9357c9ba4eb5eeafd0244010133b4 | [
"MIT"
] | 81 | 2018-02-11T07:00:11.000Z | 2022-03-29T21:10:15.000Z | defmodule ExAudit do
use Application
def start(_, _) do
import Supervisor.Spec
children = [
worker(ExAudit.CustomData, [])
]
opts = [strategy: :one_for_one, name: ExAudit.Supervisor]
Supervisor.start_link(children, opts)
end
@doc """
Tracks the given keyword list of data for the ... | 19.206897 | 63 | 0.664273 |
74cb49804faba979d53902ef0880c280e507fe9f | 41,662 | ex | Elixir | lib/elixir/lib/stream.ex | michaelkschmidt/elixir | 805efd071d220b7431269b9716c5f7ce44ca36e8 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/stream.ex | michaelkschmidt/elixir | 805efd071d220b7431269b9716c5f7ce44ca36e8 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/stream.ex | michaelkschmidt/elixir | 805efd071d220b7431269b9716c5f7ce44ca36e8 | [
"Apache-2.0"
] | null | null | null | defmodule Stream do
@moduledoc """
Module for creating and composing streams.
Streams are composable, lazy enumerables. Any enumerable that generates
items one by one during enumeration is called a stream. For example,
Elixir's `Range` is a stream:
iex> range = 1..5
1..5
iex> Enum.map rang... | 30.189855 | 108 | 0.61082 |
74cb4ce505c6df3b25be057d11b40ea46aad5586 | 3,667 | ex | Elixir | lib/stripe/connect/external_account.ex | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 555 | 2016-11-29T05:02:27.000Z | 2022-03-30T00:47:59.000Z | lib/stripe/connect/external_account.ex | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 532 | 2016-11-28T18:22:25.000Z | 2022-03-30T17:04:32.000Z | lib/stripe/connect/external_account.ex | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 296 | 2016-12-05T14:04:09.000Z | 2022-03-28T20:39:37.000Z | defmodule Stripe.ExternalAccount do
@moduledoc """
Work with Stripe external account objects.
You can:
- Create an external account
- Retrieve an external account
- Update an external account
- Delete an external account
Stripe API reference: https://stripe.com/docs/api#external_accounts
"""
imp... | 28.648438 | 97 | 0.609217 |
74cb7251854ff751c03ebaf70c647675c15c4571 | 2,548 | exs | Elixir | test/elixir/fxml_test.exs | boshra-pardaz/fast_xml | 6a11b828c7053afaaa60ea6cad30a5ec5f27bea7 | [
"Apache-2.0"
] | 1 | 2019-05-14T11:36:42.000Z | 2019-05-14T11:36:42.000Z | test/elixir/fxml_test.exs | DavidAlphaFox/fast_xml | c9459e498f822aede71a5a389d11416a3ecc85ee | [
"Apache-2.0"
] | null | null | null | test/elixir/fxml_test.exs | DavidAlphaFox/fast_xml | c9459e498f822aede71a5a389d11416a3ecc85ee | [
"Apache-2.0"
] | null | null | null | #
# Test XML module with Quviq Quickcheck
#
# Copyright (C) 2002-2019 ProcessOne, SARL. All Rights Reserved.
#
# 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/lice... | 26.541667 | 81 | 0.64325 |
74cbacf324bcb6ee6f764159f22d0e9669563182 | 1,473 | exs | Elixir | test/furlex/parser_test.exs | technicalcapt/furlex | 361a8cd76a666e9e9a504ca4d0ab3b3154d63e8d | [
"Apache-2.0"
] | null | null | null | test/furlex/parser_test.exs | technicalcapt/furlex | 361a8cd76a666e9e9a504ca4d0ab3b3154d63e8d | [
"Apache-2.0"
] | null | null | null | test/furlex/parser_test.exs | technicalcapt/furlex | 361a8cd76a666e9e9a504ca4d0ab3b3154d63e8d | [
"Apache-2.0"
] | 1 | 2019-12-12T07:21:31.000Z | 2019-12-12T07:21:31.000Z | defmodule Furlex.ParserTest do
use ExUnit.Case
alias Furlex.Parser
doctest Parser
setup do
Application.put_env(:furlex, :group_keys?, true)
end
test "extracts tags from html" do
html = """
<html><head><meta name=\"foobar\" content=\"foobaz\" /></head></html>
"""
tags = Parser.extra... | 24.966102 | 74 | 0.501018 |
74cc36ca20ca0899a44fff90ee3ed8a8dea7da52 | 1,183 | ex | Elixir | clients/data_migration/lib/google_api/data_migration/v1beta1/connection.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/data_migration/lib/google_api/data_migration/v1beta1/connection.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/data_migration/lib/google_api/data_migration/v1beta1/connection.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... | 35.848485 | 114 | 0.744717 |
74cc3d328fb3bedeceb887d50d30c21cfd8a6b8a | 1,607 | ex | Elixir | clients/plus_domains/lib/google_api/plus_domains/v1/model/activity_actor_image.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/plus_domains/lib/google_api/plus_domains/v1/model/activity_actor_image.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/plus_domains/lib/google_api/plus_domains/v1/model/activity_actor_image.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 33.479167 | 212 | 0.744244 |
74cc3e1617987cbd72e51fb9261fdebf6b14434c | 473 | ex | Elixir | web/models/user.ex | hvnsweeting/hphoenix | 5e0a93f12af64e8be2ccff7f15feab7f9e20be48 | [
"MIT"
] | null | null | null | web/models/user.ex | hvnsweeting/hphoenix | 5e0a93f12af64e8be2ccff7f15feab7f9e20be48 | [
"MIT"
] | null | null | null | web/models/user.ex | hvnsweeting/hphoenix | 5e0a93f12af64e8be2ccff7f15feab7f9e20be48 | [
"MIT"
] | null | null | null | defmodule Hphoenix.User do
use Hphoenix.Web, :model
schema "users" do
field :name, :string
field :email, :string
field :bio, :string
field :number_of_pets, :integer
timestamps()
end
@doc """
Builds a changeset based on the `struct` and `params`.
"""
def changeset(struct, params \\ %... | 21.5 | 64 | 0.634249 |
74cc44f2d3f3292775daf7bbd038e024940c8f7a | 144 | exs | Elixir | 14-aws/s3_example/test/s3_example_test.exs | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | null | null | null | 14-aws/s3_example/test/s3_example_test.exs | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | null | null | null | 14-aws/s3_example/test/s3_example_test.exs | kranfix/elixir-playground | 28f1314b137eb591946f501647e76d8017070ffa | [
"MIT"
] | 1 | 2020-11-17T07:06:17.000Z | 2020-11-17T07:06:17.000Z | defmodule S3ExampleTest do
use ExUnit.Case
doctest S3Example
test "greets the world" do
assert S3Example.hello() == :world
end
end
| 16 | 38 | 0.722222 |
74cc4d0447305d4d917cea492a5318e0c493aae4 | 685 | exs | Elixir | mix.exs | anthonyoconnor/my_little_schemer | fc835c6bf4e02f375091e4b0a164fcf197971df0 | [
"MIT"
] | null | null | null | mix.exs | anthonyoconnor/my_little_schemer | fc835c6bf4e02f375091e4b0a164fcf197971df0 | [
"MIT"
] | null | null | null | mix.exs | anthonyoconnor/my_little_schemer | fc835c6bf4e02f375091e4b0a164fcf197971df0 | [
"MIT"
] | null | null | null | defmodule MyLittleSchemer.Mixfile do
use Mix.Project
def project do
[app: :my_little_schemer,
version: "0.0.1",
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type "mix help com... | 20.757576 | 77 | 0.618978 |
74cc5e2cbc3aae3521c9f1ee55fa7a92242ba4a6 | 1,180 | exs | Elixir | config/dev.exs | IdahoEv/collidex | ef86928ef264723db8129a9de94acce8183d01bc | [
"MIT"
] | 4 | 2018-08-19T23:05:06.000Z | 2021-01-17T09:17:45.000Z | config/dev.exs | IdahoEv/collidex | ef86928ef264723db8129a9de94acce8183d01bc | [
"MIT"
] | 2 | 2016-09-14T19:47:17.000Z | 2016-09-14T19:49:17.000Z | config/dev.exs | IdahoEv/collidex | ef86928ef264723db8129a9de94acce8183d01bc | [
"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
config :ex_doc, :markdown_processor, ExDoc.Markdown.Hoedown
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on t... | 35.757576 | 73 | 0.755085 |
74cc773ea624f0e94a28ac6f48a825c8bce710dc | 928 | ex | Elixir | apps/service_profile/lib/profile/event/handler.ex | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 12 | 2020-01-27T19:43:02.000Z | 2021-07-28T19:46:29.000Z | apps/service_profile/lib/profile/event/handler.ex | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 81 | 2020-01-28T18:07:23.000Z | 2021-11-22T02:12:13.000Z | apps/service_profile/lib/profile/event/handler.ex | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 10 | 2020-02-13T21:24:09.000Z | 2020-05-21T18:39:35.000Z | defmodule Profile.Event.Handler do
@moduledoc """
Callbacks for handling events from `Brook`.
"""
use Brook.Event.Handler
require Logger
import Events, only: [extract_start: 0, profile_update: 0]
import Definition, only: [identifier: 1]
def handle_event(%Brook.Event{
type: extract_start(),
... | 27.294118 | 93 | 0.675647 |
74cc84822629ea2dd52217c7657dcef41891aae5 | 30,982 | exs | Elixir | test/oli/sections_test.exs | argos-education/oli-torus | cff73a277f80c8071217a074d9d8b650a9c068e5 | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | test/oli/sections_test.exs | argos-education/oli-torus | cff73a277f80c8071217a074d9d8b650a9c068e5 | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | test/oli/sections_test.exs | marc-hughes/oli-torus-1 | aa3c9bb2d91b678a365be839761eaf86c60ee35c | [
"MIT"
] | null | null | null | defmodule Oli.SectionsTest do
use Oli.DataCase
import Oli.Factory
alias Oli.Delivery.Sections
alias Oli.Delivery.Sections.Section
alias Oli.Delivery.Sections.SectionResource
alias Lti_1p3.Tool.ContextRoles
alias Oli.Publishing
alias Oli.Publishing.DeliveryResolver
alias Oli.Delivery.Hierarchy
des... | 34.61676 | 100 | 0.632819 |
74cc974a0c34f724df964b21ce0dc6f550fa4235 | 457 | ex | Elixir | lib/sftp_client/operations/disconnect.ex | zoten/sftp_client | 814d06e36915f60bf98149d790051d03bee189f5 | [
"MIT"
] | 21 | 2019-08-06T01:39:15.000Z | 2021-04-15T20:08:04.000Z | lib/sftp_client/operations/disconnect.ex | zoten/sftp_client | 814d06e36915f60bf98149d790051d03bee189f5 | [
"MIT"
] | 19 | 2019-07-10T17:10:34.000Z | 2021-04-18T11:16:58.000Z | lib/sftp_client/operations/disconnect.ex | zoten/sftp_client | 814d06e36915f60bf98149d790051d03bee189f5 | [
"MIT"
] | 11 | 2019-07-04T14:56:37.000Z | 2021-04-26T19:09:22.000Z | defmodule SFTPClient.Operations.Disconnect do
@moduledoc """
A module containing operations to disconnect from an SSH/SFTP server.
"""
import SFTPClient.OperationUtil
alias SFTPClient.Conn
@doc """
Stops an SFTP channel and closes the SSH connection.
"""
@spec disconnect(Conn.t()) :: :ok
def disc... | 24.052632 | 71 | 0.706783 |
74cc98efd5053d4ec7b0a124cc344acadb525848 | 2,618 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_detect_intent_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2019-01-03T22:30:36.000Z | 2019-01-03T22:30:36.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_detect_intent_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_detect_intent_request.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 44.372881 | 327 | 0.763942 |
74ccabde7a172c4cf6455a1568b036e98024d770 | 917 | exs | Elixir | test/websocket/parser_test.exs | cjfreeze/Flux | ea1eb29932db806c06fcd6cdcc625df04b83f8bc | [
"MIT"
] | 1 | 2021-10-05T02:22:22.000Z | 2021-10-05T02:22:22.000Z | test/websocket/parser_test.exs | cjfreeze/Flux | ea1eb29932db806c06fcd6cdcc625df04b83f8bc | [
"MIT"
] | null | null | null | test/websocket/parser_test.exs | cjfreeze/Flux | ea1eb29932db806c06fcd6cdcc625df04b83f8bc | [
"MIT"
] | null | null | null | defmodule Flux.Websocket.ParserTest do
use ExUnit.Case
alias Flux.Websocket.Parser
alias WebSockex.Frame
alias Flux.Support.Transport
setup do
{:ok, listen_socket} = Transport.listen(1234, [])
{:ok, socket} = Transport.accept(listen_socket, [])
{:ok, %{socket: socket}}
end
describe "parse/1"... | 29.580645 | 70 | 0.63904 |
74ccb71bf9e96bdcdee7df82fe19a21f5bcc439b | 1,082 | exs | Elixir | mix.exs | delight-data/crux | d2a84a3f80690b557a5f0213f5aa55ffc6e921a2 | [
"MIT"
] | null | null | null | mix.exs | delight-data/crux | d2a84a3f80690b557a5f0213f5aa55ffc6e921a2 | [
"MIT"
] | null | null | null | mix.exs | delight-data/crux | d2a84a3f80690b557a5f0213f5aa55ffc6e921a2 | [
"MIT"
] | null | null | null | defmodule EctoCrux.MixProject do
use Mix.Project
def project do
[
app: :ecto_crux,
name: "EctoCrux",
version: "1.2.13",
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
description: "Generate basics and common repo calls w... | 24.044444 | 93 | 0.600739 |
74cd0b12a423277f1390ab1ff28430a219ad4e6e | 1,153 | ex | Elixir | lib/clex/utils.ex | arpieb/clex | b3cbc52d8dd87c30cbbc8a0ae06cfac957fc62a1 | [
"Apache-2.0"
] | 11 | 2019-08-15T00:10:39.000Z | 2021-12-24T10:27:58.000Z | lib/clex/utils.ex | arpieb/clex | b3cbc52d8dd87c30cbbc8a0ae06cfac957fc62a1 | [
"Apache-2.0"
] | 1 | 2020-02-18T06:33:10.000Z | 2020-02-18T06:33:10.000Z | lib/clex/utils.ex | arpieb/clex | b3cbc52d8dd87c30cbbc8a0ae06cfac957fc62a1 | [
"Apache-2.0"
] | null | null | null | defmodule Clex.Utils do
@moduledoc ~S"""
This module contains a collection of utility functions that work across all OpenCL versions, but do not exist in the
formal OpenCL specifications.
"""
alias Clex.CL
@doc ~S"""
Used to set multiple argument values for a kernel, starting at index zero.
Passing t... | 30.342105 | 123 | 0.697311 |
74cd15a8cd2ec5f5dfaea45f6e6a114c68f2d35e | 2,657 | ex | Elixir | lib/calypte/compiler.ex | liveforeverx/calypte | 161e137ace124647b005c4d92ed5fe8014072556 | [
"Apache-2.0"
] | 7 | 2019-07-17T22:48:57.000Z | 2021-04-14T20:22:46.000Z | lib/calypte/compiler.ex | liveforeverx/calypte | 161e137ace124647b005c4d92ed5fe8014072556 | [
"Apache-2.0"
] | null | null | null | lib/calypte/compiler.ex | liveforeverx/calypte | 161e137ace124647b005c4d92ed5fe8014072556 | [
"Apache-2.0"
] | 1 | 2019-08-06T11:26:11.000Z | 2019-08-06T11:26:11.000Z | defmodule Calypte.Compiler do
@moduledoc """
Compiler for rules. Implements any sanity checks and optimization (till compilation to Elixir
code in a future).
"""
alias Calypte.Ast.{Expr, Var, Value}
alias Calypte.{Rule, Traverse, Utils}
import Utils
defstruct types: %{}, vars: %{}, key: nil, current_... | 32.402439 | 97 | 0.648476 |
74cd19eb72d994f33d8c9cd6cdc7cf9002ada4b1 | 2,155 | ex | Elixir | lib/chat_api/emails/debounce.ex | hakerspeak/hakerspeak.com | efd9e75f4854fdd19fc1873300deae0b160fb629 | [
"MIT"
] | null | null | null | lib/chat_api/emails/debounce.ex | hakerspeak/hakerspeak.com | efd9e75f4854fdd19fc1873300deae0b160fb629 | [
"MIT"
] | null | null | null | lib/chat_api/emails/debounce.ex | hakerspeak/hakerspeak.com | efd9e75f4854fdd19fc1873300deae0b160fb629 | [
"MIT"
] | null | null | null | defmodule ChatApi.Emails.Debounce do
@moduledoc """
A module to handle email verifications with debounce.io
"""
require Logger
use Tesla
plug Tesla.Middleware.BaseUrl, "https://api.debounce.io/v1"
plug Tesla.Middleware.Headers, [
{"content-type", "application/json; charset=utf-8"}
]
plug Tesl... | 24.488636 | 90 | 0.614849 |
74cd54a07317c12c51442a03301d066940fde7c3 | 1,302 | exs | Elixir | apps/rtc/test/rtc_web/channels/upgrade_channel_test.exs | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/rtc/test/rtc_web/channels/upgrade_channel_test.exs | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/rtc/test/rtc_web/channels/upgrade_channel_test.exs | michaeljguarino/chartmart | a34c949cc29d6a1ab91c04c5e4f797e6f0daabfc | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | defmodule RtcWeb.UpgradeChannelTest do
use RtcWeb.ChannelCase, async: false
describe "upgrade queue" do
test "it can send and ack the next upgrade through the socket" do
user = insert(:user)
q = insert(:upgrade_queue, user: user)
up = insert(:upgrade, queue: q)
{:ok, socket} = mk_... | 27.702128 | 90 | 0.596006 |
74cd5ea624d3c2e49986d69959c323db0d840d23 | 1,524 | ex | Elixir | lib/pong/game.ex | Serneum/expong-oop | a2beafaceb957cd6f924257eb9799cdb5d2555e4 | [
"WTFPL"
] | 2 | 2016-08-25T13:55:53.000Z | 2016-08-27T23:54:38.000Z | lib/pong/game.ex | Serneum/ex-pong | 75a990a672099f4eae0ca1782b3a40f8e244730a | [
"WTFPL"
] | null | null | null | lib/pong/game.ex | Serneum/ex-pong | 75a990a672099f4eae0ca1782b3a40f8e244730a | [
"WTFPL"
] | null | null | null | defmodule Pong.Game do
use GenServer
alias Pong.Game.AIPaddle
alias Pong.Game.Ball
alias Pong.Game.Interaction
alias Pong.Game.Paddle
alias Pong.Game.State
@width 500
@height 500
def start_link(opts \\ []) do
GenServer.start_link(__MODULE__, :ok, opts)
end
def stop(pid) do
GenServer.ca... | 19.792208 | 54 | 0.649606 |
74cd71f94c5b8db277dfbd993770f8ff8e26f96d | 1,570 | ex | Elixir | web/web.ex | rchervin/phoenixportfolio | a5a6a60168d7261647a10a8dbd395b440db8a4f9 | [
"MIT"
] | null | null | null | web/web.ex | rchervin/phoenixportfolio | a5a6a60168d7261647a10a8dbd395b440db8a4f9 | [
"MIT"
] | null | null | null | web/web.ex | rchervin/phoenixportfolio | a5a6a60168d7261647a10a8dbd395b440db8a4f9 | [
"MIT"
] | null | null | null | defmodule Rlc.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use Rlc.Web, :controller
use Rlc.Web, :view
The definitions below will be executed for every view,
controller, etc, so keep them short and clean... | 19.146341 | 88 | 0.656688 |
74cd97b22d33dbe4254441dcfbdc375c257df644 | 950 | ex | Elixir | lib/location/city.ex | plausible/location | ca240782e98adcbb7470ef37c5f5ebb3619528b8 | [
"MIT"
] | null | null | null | lib/location/city.ex | plausible/location | ca240782e98adcbb7470ef37c5f5ebb3619528b8 | [
"MIT"
] | null | null | null | lib/location/city.ex | plausible/location | ca240782e98adcbb7470ef37c5f5ebb3619528b8 | [
"MIT"
] | null | null | null | defmodule Location.City do
@ets_table :geonames
defstruct [:id, :name, :country_code]
def load(heir) do
tab = :binary.compile_pattern("\t")
ets = :ets.new(@ets_table, [:named_table, :compressed, {:heir, heir, []}])
File.stream!(source_file())
|> Stream.map(&String.split(&1, tab))
|> Enum.ea... | 27.941176 | 86 | 0.662105 |
74cd9901cee068ca2ed9dcea9baf7a4faf4bcf03 | 713 | exs | Elixir | test/ex_pool/state/factory_test.exs | jcabotc/ex_pool | ec5acab0e16aa7b7d5c58abba8aa1ebcf8c5c6e4 | [
"Apache-2.0"
] | 6 | 2015-11-29T10:43:02.000Z | 2016-04-07T17:32:17.000Z | test/ex_pool/state/factory_test.exs | jcabotc/ex_pool | ec5acab0e16aa7b7d5c58abba8aa1ebcf8c5c6e4 | [
"Apache-2.0"
] | null | null | null | test/ex_pool/state/factory_test.exs | jcabotc/ex_pool | ec5acab0e16aa7b7d5c58abba8aa1ebcf8c5c6e4 | [
"Apache-2.0"
] | null | null | null | defmodule ExPool.State.FactoryTest do
use ExUnit.Case
alias ExPool.State.Factory
defmodule TestWorker do
def start_link(_opts \\ []), do: Agent.start_link(fn -> :ok end)
end
setup do
factory = Factory.new(worker_mod: TestWorker)
{:ok, %{factory: factory}}
end
test "create/1, destroy/2, re... | 23.766667 | 68 | 0.687237 |
74cd99a17dc4eb7828ba597645f199a851b21cee | 1,337 | ex | Elixir | lib/still/compiler/file.ex | mrmicahcooper/still | ba785b0b068d998d0343f73a1fd1795edbe9831c | [
"0BSD"
] | 2 | 2021-02-15T07:55:38.000Z | 2021-03-05T18:04:53.000Z | lib/still/compiler/file.ex | mrmicahcooper/still | ba785b0b068d998d0343f73a1fd1795edbe9831c | [
"0BSD"
] | null | null | null | lib/still/compiler/file.ex | mrmicahcooper/still | ba785b0b068d998d0343f73a1fd1795edbe9831c | [
"0BSD"
] | null | null | null | defmodule Still.Compiler.File do
@moduledoc """
Responsible for compiling or rendering a given file.
The difference between compilation and renderisation is that the former
outputs the source file's contents, after being processed, to the correct
destination, while the latter only runs the content through th... | 26.74 | 80 | 0.67988 |
74cdcc9b4d94a67b96175f63b4651b1238b8bc05 | 533 | ex | Elixir | web/views/sale_view.ex | GoberInfinity/ExamplePhoenix | 4f2e016000a55dd4dbc28409dd214f0923e38e32 | [
"MIT"
] | null | null | null | web/views/sale_view.ex | GoberInfinity/ExamplePhoenix | 4f2e016000a55dd4dbc28409dd214f0923e38e32 | [
"MIT"
] | null | null | null | web/views/sale_view.ex | GoberInfinity/ExamplePhoenix | 4f2e016000a55dd4dbc28409dd214f0923e38e32 | [
"MIT"
] | null | null | null | defmodule Otherpool.SaleView do
use Otherpool.Web, :view
def render("index.json", %{sales: sales}) do
%{data: render_many(sales, Otherpool.SaleView, "sale.json")}
end
def render("show.json", %{sale: sale}) do
%{data: render_one(sale, Otherpool.SaleView, "sale.json")}
end
def render("sale.json", %... | 25.380952 | 64 | 0.658537 |
74ce05da63e7175b07e14dd7c276821de127c3d2 | 7,697 | exs | Elixir | test/cloud_watch_test.exs | kuiro5/cloud_watch | ed7261d4448bbb4f7b04ff0f33a248eed3044a4b | [
"MIT"
] | 23 | 2016-11-19T22:23:51.000Z | 2021-05-05T17:02:36.000Z | test/cloud_watch_test.exs | kuiro5/cloud_watch | ed7261d4448bbb4f7b04ff0f33a248eed3044a4b | [
"MIT"
] | 16 | 2017-12-20T21:38:20.000Z | 2021-05-18T18:19:53.000Z | test/cloud_watch_test.exs | kuiro5/cloud_watch | ed7261d4448bbb4f7b04ff0f33a248eed3044a4b | [
"MIT"
] | 22 | 2018-01-26T01:50:41.000Z | 2021-03-04T02:13:51.000Z | defmodule CloudWatchTest do
@backend CloudWatch
alias CloudWatch.Cycler
import Mock
require Logger
use ExUnit.Case, async: false
setup_all do
start_supervised(Cycler)
Logger.add_backend(@backend)
:ok =
Logger.configure_backend(@backend,
format: "$message",
level: :inf... | 32.893162 | 129 | 0.580616 |
74ce0e2be82ff4462beac8d9cfa8eaacd2ebcd91 | 2,328 | ex | Elixir | lib/accent/auth/role_abilities.ex | samuelnygaard/accent | db753badab1d885397b48a42ac3fb43024345467 | [
"BSD-3-Clause"
] | null | null | null | lib/accent/auth/role_abilities.ex | samuelnygaard/accent | db753badab1d885397b48a42ac3fb43024345467 | [
"BSD-3-Clause"
] | 2 | 2021-09-28T05:37:00.000Z | 2022-02-26T10:10:15.000Z | lib/accent/auth/role_abilities.ex | samuelnygaard/accent | db753badab1d885397b48a42ac3fb43024345467 | [
"BSD-3-Clause"
] | null | null | null | defmodule Accent.RoleAbilities do
@owner_role "owner"
@admin_role "admin"
@bot_role "bot"
@developer_role "developer"
@reviewer_role "reviewer"
@any_actions ~w(
index_permissions
index_versions
create_version
update_version
export_version
index_translations
index_comments
cr... | 23.28 | 78 | 0.736254 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.