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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
acb2f2630f710499d3266fe724975eb28b91123c | 1,787 | ex | Elixir | apps/service_receive/lib/receive/event/handler.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/service_receive/lib/receive/event/handler.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | apps/service_receive/lib/receive/event/handler.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | null | null | null | defmodule Receive.Event.Handler do
use Brook.Event.Handler
use Properties, otp_app: :service_receive
require Logger
alias Receive.SocketManager
import Events, only: [accept_start: 0, accept_end: 0, dataset_delete: 0]
import Definition, only: [identifier: 1]
getter(:endpoints, required: true)
def hand... | 29.783333 | 97 | 0.682708 |
acb31704ca68a1938b51ac354c0cc23a28b4749e | 5,031 | ex | Elixir | lib/ash/dsl/transformer.ex | ash-project/ash | 63c240ebbdda6efc2ba8b24547f143cb8bd8c57e | [
"MIT"
] | 528 | 2019-12-08T01:51:54.000Z | 2022-03-30T10:09:45.000Z | lib/ash/dsl/transformer.ex | ash-project/ash | 63c240ebbdda6efc2ba8b24547f143cb8bd8c57e | [
"MIT"
] | 278 | 2019-12-04T15:25:06.000Z | 2022-03-31T03:40:51.000Z | lib/ash/dsl/transformer.ex | ash-project/ash | 63c240ebbdda6efc2ba8b24547f143cb8bd8c57e | [
"MIT"
] | 53 | 2020-08-17T22:08:09.000Z | 2022-03-24T01:58:59.000Z | defmodule Ash.Dsl.Transformer do
@moduledoc """
A transformer manipulates and/or validates the entire DSL state of a resource.
It's `transform/2` takes a `map`, which is just the values/configurations at each point
of the DSL. Don't manipulate it directly, if possible, instead use functions like
`get_entitie... | 29.25 | 101 | 0.643013 |
acb31c828fc48abada4ffa5be0c907a3095df969 | 511 | ex | Elixir | lib/serve_elm_web/views/layout_view.ex | robotarmy/serve_elm | 931787a55acbe076eac0c0b199c5cfc63425197e | [
"MIT"
] | null | null | null | lib/serve_elm_web/views/layout_view.ex | robotarmy/serve_elm | 931787a55acbe076eac0c0b199c5cfc63425197e | [
"MIT"
] | null | null | null | lib/serve_elm_web/views/layout_view.ex | robotarmy/serve_elm | 931787a55acbe076eac0c0b199c5cfc63425197e | [
"MIT"
] | null | null | null | defmodule ServeElmWeb.LayoutView do
use ServeElmWeb, :view
def script(conn, path) do
path = static_path(conn,path)
content_tag(:script, "", src: path)
end
def inline_script(conn, path) do
path = Path.expand(
"../../../priv/static/#{path}",
__DIR__
)
content_tag(:script, "", src: ... | 23.227273 | 55 | 0.616438 |
acb31e7b21db553a337eab5e73e8aa0299c3c9f4 | 1,169 | ex | Elixir | lib/trademark_free_strategic_land_warfare_web/channels/user_socket.ex | WizardOfOgz/trademark_free_strategic_land_warfare | a14287eab1f60c13d43f70ac2309391c291a6704 | [
"MIT"
] | 1 | 2020-06-30T16:37:50.000Z | 2020-06-30T16:37:50.000Z | lib/trademark_free_strategic_land_warfare_web/channels/user_socket.ex | WizardOfOgz/trademark_free_strategic_land_warfare | a14287eab1f60c13d43f70ac2309391c291a6704 | [
"MIT"
] | null | null | null | lib/trademark_free_strategic_land_warfare_web/channels/user_socket.ex | WizardOfOgz/trademark_free_strategic_land_warfare | a14287eab1f60c13d43f70ac2309391c291a6704 | [
"MIT"
] | 13 | 2020-06-04T23:10:19.000Z | 2020-06-05T01:25:26.000Z | defmodule TrademarkFreeStrategicLandWarfareWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", TrademarkFreeStrategicLandWarfareWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns... | 32.472222 | 108 | 0.715141 |
acb3215e4c1ddfbcccbe9bc686a1d0e9badf5bb8 | 1,739 | exs | Elixir | mix.exs | astoica1986/inflator | ca0e99a8e114956edae0b0456eb8b8d97c67a342 | [
"Apache-2.0"
] | null | null | null | mix.exs | astoica1986/inflator | ca0e99a8e114956edae0b0456eb8b8d97c67a342 | [
"Apache-2.0"
] | null | null | null | mix.exs | astoica1986/inflator | ca0e99a8e114956edae0b0456eb8b8d97c67a342 | [
"Apache-2.0"
] | null | null | null | defmodule Inflator.Mixfile do
use Mix.Project
def project do
[
app: :inflator,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
aliases: aliases(),
deps... | 26.753846 | 79 | 0.568143 |
acb32d903ce06e6cd895c977176e81eefb24bf77 | 455 | ex | Elixir | apps/dockup/lib/dockup/default_callback.ex | rudydydy/dockup | 0d05d1ef65cc5523800bd852178361521cd3e7d8 | [
"MIT"
] | null | null | null | apps/dockup/lib/dockup/default_callback.ex | rudydydy/dockup | 0d05d1ef65cc5523800bd852178361521cd3e7d8 | [
"MIT"
] | null | null | null | apps/dockup/lib/dockup/default_callback.ex | rudydydy/dockup | 0d05d1ef65cc5523800bd852178361521cd3e7d8 | [
"MIT"
] | null | null | null | defmodule Dockup.DefaultCallback do
require Logger
def update_status(event, deployment_id) do
Logger.info "#{event} event was triggered for deployment: #{deployment_id}"
end
def set_urls(deployment_id, urls) do
Logger.info "URLs : #{inspect urls} to be set for deployment : #{deployment_id}"
end
d... | 28.4375 | 84 | 0.727473 |
acb37457e3f8cdae90bf2713a58775743f55c41d | 2,297 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta2_document_label.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta2_document_label.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/document_ai/lib/google_api/document_ai/v1/model/google_cloud_documentai_v1beta2_document_label.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... | 41.763636 | 253 | 0.740966 |
acb37ce51ae25ede7f968e5de7a4d65e9bde58e7 | 36,553 | ex | Elixir | apps/mishka_api/lib/mishka_api/protocols/content_protocol.ex | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 35 | 2021-06-26T09:05:50.000Z | 2022-03-30T15:41:22.000Z | apps/mishka_api/lib/mishka_api/protocols/content_protocol.ex | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 101 | 2021-01-01T09:54:07.000Z | 2022-03-28T10:02:24.000Z | apps/mishka_api/lib/mishka_api/protocols/content_protocol.ex | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 8 | 2021-01-17T17:08:07.000Z | 2022-03-11T16:12:06.000Z | defprotocol MishkaApi.ContentProtocol do
@fallback_to_any true
def posts(parametr, conn)
def post(parametr, conn, type)
def create_post(parametr, conn, allowed_fields)
def create_category(parametr, conn, allowed_fields)
def like_post(parametr, conn, allowed_fields)
def delete_post_like(parametr, con... | 37.839545 | 164 | 0.711269 |
acb3a2dcacf11b53f3febcc457b2e6dd257b18f8 | 2,715 | exs | Elixir | 2017/day_01/elixir/solution.exs | nicbet/advent-of-code | a44a16c777081bdc9fabdfee72541a95c291ef18 | [
"MIT"
] | null | null | null | 2017/day_01/elixir/solution.exs | nicbet/advent-of-code | a44a16c777081bdc9fabdfee72541a95c291ef18 | [
"MIT"
] | null | null | null | 2017/day_01/elixir/solution.exs | nicbet/advent-of-code | a44a16c777081bdc9fabdfee72541a95c291ef18 | [
"MIT"
] | null | null | null | defmodule Day1 do
def sum_part1(input) do
digits = Integer.digits(input)
digits
|> shift(1)
|> Enum.zip(digits)
|> Enum.filter( fn({a,b}) -> a == b end )
|> Enum.reduce(0, fn({a,_}, acc) -> acc + a end )
end
def sum_part2(input) do
digits = Integer.digits(input)
digits
|> s... | 87.580645 | 2,087 | 0.897238 |
acb3cae24e7566931c30cda1ece64341f93b9780 | 76 | ex | Elixir | test/support/constructs/user.ex | dvjoness/construct | e07ec8e776b0ef1a8fea94691d912cef03d76573 | [
"MIT"
] | 32 | 2017-12-26T18:08:41.000Z | 2022-03-24T21:18:11.000Z | test/support/constructs/user.ex | ExpressApp/struct | 301df7388b9283f39ee43bb209c06f3aa055c8e7 | [
"MIT"
] | 4 | 2018-01-17T11:56:08.000Z | 2022-03-24T21:16:27.000Z | test/support/constructs/user.ex | dvjoness/construct | e07ec8e776b0ef1a8fea94691d912cef03d76573 | [
"MIT"
] | 7 | 2017-12-29T13:06:31.000Z | 2022-03-24T05:56:56.000Z | defmodule User do
use Construct
structure do
field :name
end
end
| 9.5 | 17 | 0.697368 |
acb3cb4436bac2db95d0e612f2d531edc7340bed | 31,639 | ex | Elixir | clients/storage/lib/google_api/storage/v1/api/buckets.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/api/buckets.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/storage/lib/google_api/storage/v1/api/buckets.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... | 49.513302 | 247 | 0.638389 |
acb4250a7d02f4bad19083bfbdca639fa1b639c6 | 1,361 | ex | Elixir | chapter_13/todo_release/lib/todo/database.ex | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | 3 | 2021-04-22T11:55:58.000Z | 2021-08-22T13:19:56.000Z | chapter_12/todo_distributed/lib/todo/database.ex | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | null | null | null | chapter_12/todo_distributed/lib/todo/database.ex | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | 3 | 2021-04-22T21:19:45.000Z | 2021-08-22T13:20:03.000Z | defmodule Todo.Database do
alias Todo.Database.Worker
alias Todo.Database.Worker.Client, as: WorkerClient
def child_spec(_) do
IO.puts("Starting Todo.Database")
{db_folder, pool_size} = fetch_configs()
File.mkdir_p!(db_folder)
:poolboy.child_spec(
__MODULE__,
[
name: {:local... | 21.951613 | 74 | 0.64144 |
acb42dafab1bf916ffbdcd484284c9d1bc492453 | 3,152 | ex | Elixir | experiments/elixir_middleman_server/lib/rm_server.ex | cjschneider2/Novluno | b1cbc13d1a0c83e81abf01ba1e2f257ad7a5a025 | [
"Unlicense"
] | 12 | 2017-07-05T03:05:56.000Z | 2021-04-30T23:17:36.000Z | experiments/elixir_middleman_server/lib/rm_server.ex | cjschneider2/Novluno | b1cbc13d1a0c83e81abf01ba1e2f257ad7a5a025 | [
"Unlicense"
] | 4 | 2017-06-29T05:41:45.000Z | 2021-03-17T00:23:55.000Z | experiments/elixir_middleman_server/lib/rm_server.ex | cjschneider2/Novluno | b1cbc13d1a0c83e81abf01ba1e2f257ad7a5a025 | [
"Unlicense"
] | 5 | 2019-02-07T04:15:37.000Z | 2021-03-10T03:16:29.000Z | require Logger
defmodule RmServer do
@moduledoc """
Documentation for RmServer.
"""
@port 10101
@client_addr {192,168,56,1}
@server_addr {198,24,149,46} # NOTE: using `rm.redmoonclassic.com` *sorry*
def accept() do
Logger.info(fn -> "Using port:#{@port}, addr:#{inspect(@client_addr)}" end)
{:ok... | 30.601942 | 89 | 0.633566 |
acb4314bdd224e0d912df9eb451d73a1c9c34580 | 4,682 | ex | Elixir | test/support/assert_helper.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:03:54.000Z | 2019-05-07T15:03:54.000Z | test/support/assert_helper.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | test/support/assert_helper.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | defmodule MastaniServer.Test.AssertHelper do
@moduledoc """
This module defines some helper function used by
tests that require check from graphql response
"""
import Phoenix.ConnTest
import Helper.Utils, only: [map_key_stringify: 1, get_config: 2]
@endpoint MastaniServerWeb.Endpoint
@page_size get_c... | 26.011111 | 97 | 0.621743 |
acb43f07458ed7a63221bc963b9929f8435b071e | 21,300 | exs | Elixir | test/ecto/migrator_test.exs | jeroenvisser101/ecto_sql | f189802129ac866b2d376ce073b07809a3317238 | [
"Apache-2.0"
] | null | null | null | test/ecto/migrator_test.exs | jeroenvisser101/ecto_sql | f189802129ac866b2d376ce073b07809a3317238 | [
"Apache-2.0"
] | null | null | null | test/ecto/migrator_test.exs | jeroenvisser101/ecto_sql | f189802129ac866b2d376ce073b07809a3317238 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.MigratorTest do
use ExUnit.Case
import Support.FileHelpers
import Ecto.Migrator
import ExUnit.CaptureLog
alias EctoSQL.TestRepo
alias Ecto.Migration.SchemaMigration
defmodule Migration do
use Ecto.Migration
def up do
execute "up"
end
def down do
execute "dow... | 30.869565 | 148 | 0.655446 |
acb464dd15a3a84c53b80391c6a0b1070fce2de9 | 8,649 | exs | Elixir | test/phoenix_component_test.exs | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | test/phoenix_component_test.exs | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | test/phoenix_component_test.exs | gaslight/live_element | 78d4ab0a2daab470f2ffd25d446fbabb0d746afe | [
"MIT"
] | null | null | null | defmodule Phoenix.ComponentTest do
use ExUnit.Case, async: true
use Phoenix.Component
defp h2s(template) do
template
|> Phoenix.HTML.Safe.to_iodata()
|> IO.iodata_to_binary()
end
describe "rendering" do
defp hello(assigns) do
~H"""
Hello <%= @name %>
"""
end
test ... | 35.887967 | 179 | 0.496011 |
acb4b677ff20e13fc925267e5fca3219ca84e955 | 585 | exs | Elixir | mix.exs | SirJosh3917/message_bounce_benchmark | 70cb0654acfb12b01bc67da661532955f84d69de | [
"MIT"
] | null | null | null | mix.exs | SirJosh3917/message_bounce_benchmark | 70cb0654acfb12b01bc67da661532955f84d69de | [
"MIT"
] | null | null | null | mix.exs | SirJosh3917/message_bounce_benchmark | 70cb0654acfb12b01bc67da661532955f84d69de | [
"MIT"
] | null | null | null | defmodule MessageBounceBenchmark.MixProject do
use Mix.Project
def project do
[
app: :message_bounce_benchmark,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def app... | 19.5 | 59 | 0.6 |
acb5063fb8b8c80b34c9a47445f063950e7e3f8d | 2,064 | ex | Elixir | lib/instagram_clone_web/live/post_live/bookmark_component.ex | elixirprogrammer/InstagramClonePETAL | 5710f89de32a95b0416a960a46d081e7ad4833ab | [
"MIT"
] | 69 | 2021-04-11T21:57:26.000Z | 2022-03-30T01:09:40.000Z | lib/instagram_clone_web/live/post_live/bookmark_component.ex | hminy572/InstagramClonePETAL | 577cdad0e17399e47ef9d3f8e789bd07e33012b9 | [
"MIT"
] | 1 | 2021-04-16T17:38:11.000Z | 2021-04-16T17:38:11.000Z | lib/instagram_clone_web/live/post_live/bookmark_component.ex | hminy572/InstagramClonePETAL | 577cdad0e17399e47ef9d3f8e789bd07e33012b9 | [
"MIT"
] | 4 | 2021-04-16T10:45:18.000Z | 2021-07-23T15:08:08.000Z | defmodule InstagramCloneWeb.PostLive.BookmarkComponent do
use InstagramCloneWeb, :live_component
alias InstagramClone.Posts
@impl true
def update(assigns, socket) do
get_btn_status(socket, assigns)
end
@impl true
def render(assigns) do
~L"""
<button
phx-target="<%= @myself %>"
p... | 24 | 132 | 0.656492 |
acb513c5dbe58d1ee1462506a3f9d5154485ddc8 | 27,475 | exs | Elixir | test/surface/compiler/tokenizer_test.exs | RudolfMan/surface | ee8c1546b77c91fe08e7360e64666c613bc5a900 | [
"MIT"
] | null | null | null | test/surface/compiler/tokenizer_test.exs | RudolfMan/surface | ee8c1546b77c91fe08e7360e64666c613bc5a900 | [
"MIT"
] | null | null | null | test/surface/compiler/tokenizer_test.exs | RudolfMan/surface | ee8c1546b77c91fe08e7360e64666c613bc5a900 | [
"MIT"
] | null | null | null | defmodule Surface.Compiler.TokenizerTest do
use ExUnit.Case, async: true
import Surface.Compiler.Tokenizer
alias Surface.Compiler.ParseError
describe "text" do
test "represented as {:text, value}" do
assert tokenize!("Hello") == [{:text, "Hello"}]
end
test "with multiple lines" do
tok... | 27.365538 | 114 | 0.466497 |
acb51ef54c3418b48934ed6ab2829c37c9972f65 | 299 | exs | Elixir | config/dev.exs | sntran/gen_spider | 7afb0ce00c6ac761e1c40f6e231340bc001807ee | [
"Apache-2.0"
] | 4 | 2018-09-18T11:28:11.000Z | 2019-08-08T23:11:36.000Z | config/dev.exs | sntran/gen_spider | 7afb0ce00c6ac761e1c40f6e231340bc001807ee | [
"Apache-2.0"
] | null | null | null | config/dev.exs | sntran/gen_spider | 7afb0ce00c6ac761e1c40f6e231340bc001807ee | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :git_hooks,
verbose: true,
hooks: [
pre_commit: [
mix_tasks: [
"format --check-formatted",
"test"
]
],
pre_push: [
verbose: false,
mix_tasks: [
"dialyzer"
]
]
]
config :mix_test_watch,
clear: true
| 13.590909 | 35 | 0.508361 |
acb520ea05ec12339fcc73509d9fe4fcecd4a450 | 1,199 | exs | Elixir | config/config.exs | alejandronanez/phoenix-absinthe-auth-template | e4e72f52247cb4c880ddc058beaa7b5eecb68980 | [
"MIT"
] | 8 | 2020-06-25T03:15:06.000Z | 2021-12-10T10:52:26.000Z | config/config.exs | alejandronanez/phoenix-absinthe-auth-template | e4e72f52247cb4c880ddc058beaa7b5eecb68980 | [
"MIT"
] | null | null | null | config/config.exs | alejandronanez/phoenix-absinthe-auth-template | e4e72f52247cb4c880ddc058beaa7b5eecb68980 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :ticketo,
ecto_repos: [Ticketo.Repo]
#... | 32.405405 | 86 | 0.77231 |
acb53611182e0369ac8a01f24520f8dfc73ee0a3 | 1,208 | ex | Elixir | web/views/dashboard_view.ex | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 2 | 2019-03-05T16:29:10.000Z | 2020-01-17T14:11:48.000Z | web/views/dashboard_view.ex | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 3 | 2019-03-18T20:26:48.000Z | 2020-06-25T14:31:13.000Z | web/views/dashboard_view.ex | crosscloudci/ci_status_repository | 335e8b89bbf59e6cf63e49541ce3ea6b60167e52 | [
"Apache-2.0"
] | 1 | 2018-06-16T15:32:25.000Z | 2018-06-16T15:32:25.000Z | require IEx;
defmodule CncfDashboardApi.DashboardView do
use CncfDashboardApi.Web, :view
def render("index.json", %{dashboard: dashboard}) do
%{dashboard: render_one(dashboard, CncfDashboardApi.DashboardView, "dashboard.json")}
end
def render("dashboard.json", %{dashboard: dashboard}) do
kubernetes_r... | 48.32 | 188 | 0.721854 |
acb54c75d1f1698eaec10537f23d8b6c8b8489a8 | 1,532 | ex | Elixir | clients/content/lib/google_api/content/v21/model/product_shipping_weight.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/product_shipping_weight.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v21/model/product_shipping_weight.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.64 | 128 | 0.718668 |
acb57ffbdc297313945032de2fa6f0c84e34eced | 1,327 | ex | Elixir | lib/kamleague_web/controllers/admin/team_controller.ex | mzavoloka/kamleague | ba29263ed54cac5c67b537c4b7d1dbc522215341 | [
"MIT"
] | null | null | null | lib/kamleague_web/controllers/admin/team_controller.ex | mzavoloka/kamleague | ba29263ed54cac5c67b537c4b7d1dbc522215341 | [
"MIT"
] | 2 | 2021-11-04T21:05:24.000Z | 2021-11-04T21:51:48.000Z | lib/kamleague_web/controllers/admin/team_controller.ex | mzavoloka/kamleague | ba29263ed54cac5c67b537c4b7d1dbc522215341 | [
"MIT"
] | 1 | 2021-11-04T18:40:26.000Z | 2021-11-04T18:40:26.000Z | defmodule KamleagueWeb.Admin.TeamController do
use KamleagueWeb, :controller
alias Kamleague.Leagues
def index(conn, _params) do
teams = Leagues.list_teams()
render(conn, "index.html", teams: teams)
end
def edit(conn, %{"id" => id}) do
team = Leagues.get_team!(id)
changeset = Leagues.change... | 27.645833 | 67 | 0.620196 |
acb6214b7ff7dd7a1e9a2a5d598743b0c067f3ac | 233 | ex | Elixir | lib/repo/patch_type.ex | scripbox/ex_audit | 6478d72816e9357c9ba4eb5eeafd0244010133b4 | [
"MIT"
] | null | null | null | lib/repo/patch_type.ex | scripbox/ex_audit | 6478d72816e9357c9ba4eb5eeafd0244010133b4 | [
"MIT"
] | null | null | null | lib/repo/patch_type.ex | scripbox/ex_audit | 6478d72816e9357c9ba4eb5eeafd0244010133b4 | [
"MIT"
] | null | null | null | defmodule ExAudit.Type.Patch do
@behaviour Ecto.Type
def cast(a), do: {:ok, a}
def dump(patch), do: {:ok, :erlang.term_to_binary(patch)}
def load(binary), do: {:ok, :erlang.binary_to_term(binary)}
def type, do: :binary
end | 29.125 | 61 | 0.682403 |
acb6250ee950bc28236ec15b2d14bd621dd90d6e | 1,690 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/backend.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/backend.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/backend.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... | 34.489796 | 168 | 0.74497 |
acb646d03e8944a1a762a3201c737cb84807efd0 | 9,027 | exs | Elixir | test/themes/filter_test.exs | spunkedy/ex_admin | a576bead2a030f3dfe7abec0ff610809eb0db06f | [
"MIT"
] | 23 | 2018-04-10T07:45:48.000Z | 2019-12-31T01:11:07.000Z | test/themes/filter_test.exs | leonardzhou/ex_admin | c241e956503c548a472e3ee89751e64a16477638 | [
"MIT"
] | 115 | 2018-04-15T14:11:18.000Z | 2021-08-01T11:20:34.000Z | test/themes/filter_test.exs | leonardzhou/ex_admin | c241e956503c548a472e3ee89751e64a16477638 | [
"MIT"
] | 15 | 2018-10-04T19:09:00.000Z | 2020-06-25T16:02:30.000Z | defmodule ExAdmin.ThemeFilterTest do
use ExUnit.Case
alias ExAdmin.Theme.{ActiveAdmin, AdminLte2}
def all(TestExAdmin.User = model) do
[struct(model.__struct__, id: 1, name: "test")]
end
def all(TestExAdmin.UUIDSchema = model) do
[struct(model.__struct__, key: Ecto.UUID.generate(), name: "test")]
... | 41.791667 | 98 | 0.687493 |
acb66311baf963c6ef8b2869c41b8d3761ba4ed6 | 20,939 | ex | Elixir | lib/elixir/lib/protocol.ex | Zanadar/elixir | ef967b3e07f189b9cae37d5b12bd7258619b3e15 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/protocol.ex | Zanadar/elixir | ef967b3e07f189b9cae37d5b12bd7258619b3e15 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/protocol.ex | Zanadar/elixir | ef967b3e07f189b9cae37d5b12bd7258619b3e15 | [
"Apache-2.0"
] | null | null | null | 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... | 31.066766 | 135 | 0.626773 |
acb67595c061d005c703bd21de6d3f7e799410d0 | 2,813 | ex | Elixir | lib/ast/ast.ex | Ajwah/ex-gherkin | 401ee551312b72aa059c7f4621f014b111049acf | [
"Apache-2.0"
] | 8 | 2020-07-27T09:11:24.000Z | 2020-09-21T20:57:45.000Z | lib/ast/ast.ex | Ajwah/ex-gherkin | 401ee551312b72aa059c7f4621f014b111049acf | [
"Apache-2.0"
] | 1 | 2021-05-14T13:30:27.000Z | 2021-05-14T13:30:27.000Z | lib/ast/ast.ex | Ajwah/ex-gherkin | 401ee551312b72aa059c7f4621f014b111049acf | [
"Apache-2.0"
] | null | null | null | defmodule ExGherkin.Ast do
@moduledoc false
def r(:empty), do: :empty
def r(s), do: s |> traverse("", &print/4)
def traverse({token, {:meta, meta, {:type, :singular}}, value}, acc, fun) do
value
|> case do
{_, {:meta, _, {:type, :multiples}}, _} -> fun.(token, meta, value, acc)
_ -> fun.(to... | 27.851485 | 97 | 0.564522 |
acb67912735c807e54691a46e19124cb2618d76c | 2,885 | exs | Elixir | test/day_12_n_body_problem_test.exs | scmx/advent-of-code-2019-elixir | f3022efb422e15abead6b882c78855b26b138443 | [
"MIT"
] | 1 | 2019-12-02T16:27:06.000Z | 2019-12-02T16:27:06.000Z | test/day_12_n_body_problem_test.exs | scmx/advent-of-code-2019-elixir | f3022efb422e15abead6b882c78855b26b138443 | [
"MIT"
] | null | null | null | test/day_12_n_body_problem_test.exs | scmx/advent-of-code-2019-elixir | f3022efb422e15abead6b882c78855b26b138443 | [
"MIT"
] | 1 | 2020-12-10T10:47:21.000Z | 2020-12-10T10:47:21.000Z | defmodule Adventofcode.Day12NBodyProblemTest do
use Adventofcode.FancyCase
alias Adventofcode.Day12NBodyProblem.{Parser, Simulation, Printer}
import Adventofcode.Day12NBodyProblem
import ExUnit.CaptureIO
describe "suppose your scan reveals the following positions" do
@input """
<x=-1, y=0, z=2>
... | 26.962617 | 96 | 0.522357 |
acb6848bc31f055968dab029c5e37c397c838e70 | 98 | exs | Elixir | apps/astarte_trigger_engine/.formatter.exs | Spidey20202022/astarte | 3950855c592b34363af0cf7f8a921762ce64e512 | [
"Apache-2.0"
] | 178 | 2016-10-17T09:47:02.000Z | 2022-03-22T09:39:02.000Z | apps/astarte_trigger_engine/.formatter.exs | Spidey20202022/astarte | 3950855c592b34363af0cf7f8a921762ce64e512 | [
"Apache-2.0"
] | 28 | 2016-12-14T09:01:56.000Z | 2022-03-22T16:16:46.000Z | apps/astarte_trigger_engine/.formatter.exs | Spidey20202022/astarte | 3950855c592b34363af0cf7f8a921762ce64e512 | [
"Apache-2.0"
] | 35 | 2017-01-24T23:06:43.000Z | 2021-11-17T14:43:30.000Z | [
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"],
import_deps: [:plug]
]
| 19.6 | 70 | 0.55102 |
acb692cc2fd639871ce6e19389eab57955479315 | 2,127 | ex | Elixir | clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/artifact.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/artifact.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/artifact.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... | 40.132075 | 376 | 0.716032 |
acb6944ea3e252850bf79048fa7860cf30c43b8e | 753 | ex | Elixir | lib/flowr/behaviour/filter.ex | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | 2 | 2021-08-01T04:38:08.000Z | 2021-08-01T06:52:29.000Z | lib/flowr/behaviour/filter.ex | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | 3 | 2021-08-01T08:20:13.000Z | 2021-08-01T08:22:07.000Z | lib/flowr/behaviour/filter.ex | flowr-app/flowr | 1e88bc917da32df2878e13c9bb1998dbbe61cd62 | [
"0BSD"
] | null | null | null | defmodule Flowr.Behaviour.FilterBehaviour do
@moduledoc """
Filter an `Ecto.Query` by a map of parameters. Modules
that use this should follow it's behaviour.
"""
@doc """
This will be reduced from the query params that are
passed into `filter/3`.
"""
@callback filter_on_attribute(
{att... | 26.892857 | 63 | 0.612218 |
acb6ae5e82598d130e9ea6a1df0aefd1826e73ca | 63 | ex | Elixir | web/views/layout_view.ex | InoMurko/perentie | d63167e909439bf4b16f2fbe97d20fb178e53463 | [
"Apache-2.0"
] | 1 | 2016-07-15T20:33:08.000Z | 2016-07-15T20:33:08.000Z | web/views/layout_view.ex | InoMurko/perentie | d63167e909439bf4b16f2fbe97d20fb178e53463 | [
"Apache-2.0"
] | null | null | null | web/views/layout_view.ex | InoMurko/perentie | d63167e909439bf4b16f2fbe97d20fb178e53463 | [
"Apache-2.0"
] | null | null | null | defmodule Perentie.LayoutView do
use Perentie.Web, :view
end
| 15.75 | 32 | 0.793651 |
acb6b5c295030af304a689b6b2668ff111466fb5 | 207 | exs | Elixir | priv/repo/migrations/20170813172745_add_uuid_to_routines.exs | mcousillas6/BioMonitor | 312a903fe19751b6896aca9346340ea502397350 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170813172745_add_uuid_to_routines.exs | mcousillas6/BioMonitor | 312a903fe19751b6896aca9346340ea502397350 | [
"MIT"
] | null | null | null | priv/repo/migrations/20170813172745_add_uuid_to_routines.exs | mcousillas6/BioMonitor | 312a903fe19751b6896aca9346340ea502397350 | [
"MIT"
] | null | null | null | defmodule BioMonitor.Repo.Migrations.AddUuidToRoutines do
use Ecto.Migration
def change do
alter table(:routines) do
add :uuid, :string
end
create index(:routines, [:uuid])
end
end
| 17.25 | 57 | 0.695652 |
acb6bd3b5528a55253a87dffd1a9b0527f35d707 | 2,254 | exs | Elixir | test/day_02_inventory_management_system_test.exs | scmx/advent-of-code-2018-elixir | bad5a125fdc98519c29cbca1e5b7f64d61da5869 | [
"MIT"
] | 2 | 2019-01-16T16:10:31.000Z | 2019-05-14T04:41:15.000Z | test/day_02_inventory_management_system_test.exs | scmx/advent-of-code-2018-elixir | bad5a125fdc98519c29cbca1e5b7f64d61da5869 | [
"MIT"
] | null | null | null | test/day_02_inventory_management_system_test.exs | scmx/advent-of-code-2018-elixir | bad5a125fdc98519c29cbca1e5b7f64d61da5869 | [
"MIT"
] | 1 | 2019-01-02T18:13:23.000Z | 2019-01-02T18:13:23.000Z | defmodule Adventofcode.Day02InventoryManagementSystemTest do
use Adventofcode.FancyCase
import Adventofcode.Day02InventoryManagementSystem
describe "letter_counts/1" do
test "abcdef contains no letters that appear exactly two or three times." do
input = "abcdef"
assert %{} == input |> letter_cou... | 26.833333 | 81 | 0.627329 |
acb6c2752df1244ce9905627ff0a5219196e610c | 1,019 | ex | Elixir | lib/types/const_type.ex | dragonwasrobot/json_schema | 00363b64ebadbb885ff8eb01433cb0f36d54caaa | [
"MIT"
] | 3 | 2019-01-07T20:11:40.000Z | 2021-02-03T22:24:07.000Z | lib/types/const_type.ex | dragonwasrobot/json_schema | 00363b64ebadbb885ff8eb01433cb0f36d54caaa | [
"MIT"
] | 13 | 2018-07-27T12:39:01.000Z | 2022-03-28T20:16:15.000Z | lib/types/const_type.ex | dragonwasrobot/json_schema | 00363b64ebadbb885ff8eb01433cb0f36d54caaa | [
"MIT"
] | null | null | null | defmodule JsonSchema.Types.ConstType do
@moduledoc """
Represents a custom `const` type definition in a JSON schema.
JSON Schema:
"favoriteNumber": {
"type": "integer",
"const": 42
}
or
"testStruct": {
"const": {
"name": "Test",
"foo": 43
}
}
Resulting in the Elixir re... | 21.229167 | 73 | 0.554465 |
acb71c66a325d5cc6e504f5d0ce9eb8f72dabfcd | 12,643 | ex | Elixir | lib/aws/generated/elastic_transcoder.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/elastic_transcoder.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/elastic_transcoder.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.ElasticTranscoder do
@moduledoc """
AWS Elastic Transcoder Service
The AWS Elastic Transcoder Service.
"""
alias AWS.Client
alias AWS.Request
def metadata do
%AWS.ServiceMetad... | 24.407336 | 95 | 0.630467 |
acb71cebea911f7fb8ed1d023ef7e8b1ad789506 | 73 | exs | Elixir | test/test_helper.exs | BailianBlockchain/Bailian_Supply_Chain | 8341e974b133c86f48488cb52ec4b3b281a99eb5 | [
"MIT"
] | 5 | 2020-12-10T07:24:18.000Z | 2021-12-15T08:26:05.000Z | test/test_helper.exs | BailianBlockchain/Bailian_Supply_Chain | 8341e974b133c86f48488cb52ec4b3b281a99eb5 | [
"MIT"
] | null | null | null | test/test_helper.exs | BailianBlockchain/Bailian_Supply_Chain | 8341e974b133c86f48488cb52ec4b3b281a99eb5 | [
"MIT"
] | 2 | 2020-12-12T17:06:13.000Z | 2021-04-09T02:12:31.000Z | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(SupplyChain.Repo, :manual)
| 24.333333 | 57 | 0.794521 |
acb78419aeb5cd37beb40cbc75d5fb98e9f1ed9c | 1,381 | ex | Elixir | lib/erlnote/accounts/credential.ex | alchexmist/erlnote | e1f164e63616316e1d3869ebfae5ed2ae96c3ccd | [
"Apache-2.0"
] | null | null | null | lib/erlnote/accounts/credential.ex | alchexmist/erlnote | e1f164e63616316e1d3869ebfae5ed2ae96c3ccd | [
"Apache-2.0"
] | 1 | 2019-11-02T13:46:12.000Z | 2019-11-02T13:46:12.000Z | lib/erlnote/accounts/credential.ex | alchexmist/erlnote | e1f164e63616316e1d3869ebfae5ed2ae96c3ccd | [
"Apache-2.0"
] | null | null | null | defmodule Erlnote.Accounts.Credential do
use Ecto.Schema
import Ecto.Changeset
alias Erlnote.Accounts.User
@email_regex ~r/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/
schema "credentials" do
field :email, :string
field :password, :string, virtual: true
field :password_hash, :string
#... | 26.557692 | 81 | 0.651702 |
acb796273f414f0a8d8276313c3cae036f7762cd | 115 | exs | Elixir | test/test_helper.exs | lucaslencinas/iasc-subastas | ef431a0820bff3f87d89f6f7bdcfaf2101e3002e | [
"MIT"
] | null | null | null | test/test_helper.exs | lucaslencinas/iasc-subastas | ef431a0820bff3f87d89f6f7bdcfaf2101e3002e | [
"MIT"
] | null | null | null | test/test_helper.exs | lucaslencinas/iasc-subastas | ef431a0820bff3f87d89f6f7bdcfaf2101e3002e | [
"MIT"
] | null | null | null | ExUnit.start
# Mix.Task.run "ecto.reset", ["--quiet"]
Ecto.Adapters.SQL.begin_test_transaction(IascSubastas.Repo)
| 23 | 59 | 0.765217 |
acb7b3d025c84b4e5337b49668bc10f698b3913c | 1,480 | ex | Elixir | lib/jack_rabbit.ex | norbu09/jack_rabbit | e46ca0ed9bec1e879a3e0edce616b79e436e4b50 | [
"BSD-2-Clause"
] | null | null | null | lib/jack_rabbit.ex | norbu09/jack_rabbit | e46ca0ed9bec1e879a3e0edce616b79e436e4b50 | [
"BSD-2-Clause"
] | null | null | null | lib/jack_rabbit.ex | norbu09/jack_rabbit | e46ca0ed9bec1e879a3e0edce616b79e436e4b50 | [
"BSD-2-Clause"
] | null | null | null | defmodule JackRabbit do
@moduledoc """
JackRabbit iexs a worker framework for RabbitMQ based worker
"""
@doc """
A `call` is blocking request that goes out to a worker and comes back with an
answer.
## Examples
iex> JackRabbit.call(%{queue: "foo", exchange: "bar", host: "localhost"}, %{"foo" => "... | 27.407407 | 103 | 0.644595 |
acb7d567e24394543a1a63f7f1f69618656db7ed | 4,015 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_cloud_storage_regex_file_set.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_cloud_storage_regex_file_set.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_cloud_storage_regex_file_set.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... | 75.754717 | 1,442 | 0.746451 |
acb7d7f8f450b72d155915ea4a90fec3afe183c1 | 976 | ex | Elixir | throwaway/hello/deps/db_connection/lib/db_connection/sojourn/starter.ex | BryanJBryce/programming-phoenix | ced3b5c383ada2575237d377430ef0a2743da0a2 | [
"MIT"
] | 1 | 2016-08-17T11:39:26.000Z | 2016-08-17T11:39:26.000Z | deps/db_connection/lib/db_connection/sojourn/starter.ex | superbogy/pande | 30ebb683febd1cd10711e562863fc73b87827c53 | [
"MIT"
] | null | null | null | deps/db_connection/lib/db_connection/sojourn/starter.ex | superbogy/pande | 30ebb683febd1cd10711e562863fc73b87827c53 | [
"MIT"
] | null | null | null | defmodule DBConnection.Sojourn.Starter do
@moduledoc false
use Connection
def start_link(broker, opts) do
Connection.start_link(__MODULE__, {self(), broker, opts})
end
def init(args), do: {:connect, :init, args}
def connect(:init, {sup, broker, opts}) do
size = Keyword.get(opts, :pool_size, 10)
... | 26.378378 | 73 | 0.661885 |
acb7e3e2c9d910d15c6a2641cd53479b602e73d2 | 634 | ex | Elixir | lib/anchore_engine_api_server/model/subscription_update.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | lib/anchore_engine_api_server/model/subscription_update.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | lib/anchore_engine_api_server/model/subscription_update.ex | michaeljguarino/anchore-elixir-client | 156a44f429ecb62433729a2b4c52de5dc0ef44d2 | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule AnchoreEngineAPIServer.Model.SubscriptionUpdate do
@moduledoc """
A modification to a subscription entry to change its status or value
"""
... | 22.642857 | 79 | 0.727129 |
acb7ed5fbaeedf2e26cd9db64dcaeb5e38869d71 | 4,253 | ex | Elixir | lib/exq/mock.ex | mitchellhenke/exq | fe1b102e54906363d209f70849161db717883b01 | [
"Apache-2.0"
] | null | null | null | lib/exq/mock.ex | mitchellhenke/exq | fe1b102e54906363d209f70849161db717883b01 | [
"Apache-2.0"
] | null | null | null | lib/exq/mock.ex | mitchellhenke/exq | fe1b102e54906363d209f70849161db717883b01 | [
"Apache-2.0"
] | null | null | null | defmodule Exq.Mock do
alias Exq.Support.Config
alias Exq.Adapters.Queue.Redis
alias Exq.Support.Job
alias Exq.Support.Coercion
use GenServer
@timeout 30000
defmodule State do
@moduledoc false
defstruct default_mode: :redis, jobs: %{}, modes: %{}
end
### Public api
@doc """
Start Mock se... | 24.028249 | 86 | 0.601928 |
acb7ef67b6af3397752b9e5b038d037882590930 | 147 | ex | Elixir | lib/cache/emoji.ex | SpaceEEC/crux_cache | 359194162b3c12da16e44fb29dacd02f99eb0148 | [
"MIT"
] | 2 | 2018-05-22T07:13:50.000Z | 2018-07-05T13:51:42.000Z | lib/cache/emoji.ex | SpaceEEC/crux_cache | 359194162b3c12da16e44fb29dacd02f99eb0148 | [
"MIT"
] | null | null | null | lib/cache/emoji.ex | SpaceEEC/crux_cache | 359194162b3c12da16e44fb29dacd02f99eb0148 | [
"MIT"
] | null | null | null | defmodule Crux.Cache.Emoji do
@moduledoc """
Default `Crux.Structs.Emoji` cache.
"""
use Crux.Cache.Base, struct: Crux.Structs.Emoji
end
| 21 | 49 | 0.70068 |
acb805ee0b9ac29651b1d499ebcef5e8c7c242e6 | 624 | exs | Elixir | 2-fizzbuzz/test/fizzbuzz_test.exs | rawkode/pair-programming-glasgow-elixir | 0f44797f903371a6f5d871cc8bd92ebf97935e41 | [
"MIT"
] | null | null | null | 2-fizzbuzz/test/fizzbuzz_test.exs | rawkode/pair-programming-glasgow-elixir | 0f44797f903371a6f5d871cc8bd92ebf97935e41 | [
"MIT"
] | null | null | null | 2-fizzbuzz/test/fizzbuzz_test.exs | rawkode/pair-programming-glasgow-elixir | 0f44797f903371a6f5d871cc8bd92ebf97935e41 | [
"MIT"
] | null | null | null | defmodule FizzBuzzTest do
use ExUnit.Case, async: true
import FizzBuzz
test "it will return the original number when it is not divisable by 3 or 5" do
assert fizzbuzz(1) == 1
assert fizzbuzz(2) == 2
end
@tag :pending
test "it will return :fizz when a number is cleanly divisable by 3" do
asser... | 24 | 82 | 0.6875 |
acb818a9d0b734582d4be7ea7b2365414301ea81 | 697 | ex | Elixir | deps/absinthe/lib/absinthe/blueprint/document/fragment/inline.ex | JoakimEskils/elixir-absinthe | d81e24ec7c7b1164e6d152101dd50422f192d7e9 | [
"MIT"
] | 3 | 2017-06-22T16:33:58.000Z | 2021-07-07T15:21:09.000Z | lib/absinthe/blueprint/document/fragment/inline.ex | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | null | null | null | lib/absinthe/blueprint/document/fragment/inline.ex | bruce/absinthe | 19b63d3aaa9fb75aad01ffd5e91d89e0b30d7f91 | [
"MIT"
] | null | null | null | defmodule Absinthe.Blueprint.Document.Fragment.Inline do
@moduledoc false
alias Absinthe.Blueprint
@enforce_keys [:type_condition]
defstruct [
:type_condition,
selections: [],
directives: [],
source_location: nil,
# Populated by phases
schema_node: nil,
complexity: nil,
flags:... | 22.483871 | 63 | 0.684362 |
acb859ae91acc4a726deb59ac3e164d910d655c6 | 1,192 | exs | Elixir | test/ptr/lots/part_test.exs | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | null | null | null | test/ptr/lots/part_test.exs | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | 2 | 2021-03-09T01:59:47.000Z | 2022-02-10T17:08:54.000Z | test/ptr/lots/part_test.exs | francocatena/ptr | 4c8a960cdcb1c8523334fcc0cddba6b7fb3b3e60 | [
"MIT"
] | null | null | null | defmodule Ptr.Lots.PartTest do
use Ptr.DataCase
describe "part" do
alias Ptr.Lots.Part
@valid_attrs %{amount: "100.0", lot_id: 1, vessel_id: 1}
@invalid_attrs %{amount: nil, vessel_id: nil}
test "changeset with valid attributes" do
{:ok, vessel, _account} = fixture(:vessel)
attrs = %{... | 29.8 | 77 | 0.662752 |
acb85db96ac3174c550f0c7bdc9d13c413bae526 | 4,270 | ex | Elixir | lib/bamboo/adapters/mandrill_adapter.ex | njwest/bamboo | 024286443a4e1aae57cbaa87dbcafe62c9a5755a | [
"MIT"
] | null | null | null | lib/bamboo/adapters/mandrill_adapter.ex | njwest/bamboo | 024286443a4e1aae57cbaa87dbcafe62c9a5755a | [
"MIT"
] | null | null | null | lib/bamboo/adapters/mandrill_adapter.ex | njwest/bamboo | 024286443a4e1aae57cbaa87dbcafe62c9a5755a | [
"MIT"
] | 1 | 2018-08-14T13:02:18.000Z | 2018-08-14T13:02:18.000Z | defmodule Bamboo.MandrillAdapter do
@moduledoc """
Sends email using Mandrill's JSON API.
Use this adapter to send emails through Mandrill's API. Requires that an API
key is set in the config. See `Bamboo.MandrillHelper` for extra functions that
can be used by `Bamboo.MandrillAdapter` (tagging, merge vars, e... | 28.851351 | 124 | 0.674239 |
acb86ccac7cf45155ae8263c0ed4f6f070d2f159 | 340 | exs | Elixir | config/test.exs | drewfravert/2048 | cbe6b75635f7d2713277c3c60fb5147e256e73e3 | [
"MIT"
] | null | null | null | config/test.exs | drewfravert/2048 | cbe6b75635f7d2713277c3c60fb5147e256e73e3 | [
"MIT"
] | 1 | 2021-10-18T21:44:37.000Z | 2021-10-18T21:44:37.000Z | config/test.exs | drewfravert/2048 | cbe6b75635f7d2713277c3c60fb5147e256e73e3 | [
"MIT"
] | null | null | null | use Mix.Config
# Repo
config :game, Game.Repo,
username: "postgres",
password: "postgres",
database: "game_test#{System.get_env("MIX_TEST_PARTITION")}",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox
# Endpoint
config :game, GameWeb.Endpoint,
http: [port: 4002],
server: false
# Logger
config :l... | 18.888889 | 63 | 0.705882 |
acb879a178688dcf2fc622efa481c0d5bb228fc3 | 106 | exs | Elixir | config/config.exs | tableturn/poly_amory | e468f9621b89be13b24885d28f8e22f1075e910d | [
"MIT"
] | null | null | null | config/config.exs | tableturn/poly_amory | e468f9621b89be13b24885d28f8e22f1075e910d | [
"MIT"
] | null | null | null | config/config.exs | tableturn/poly_amory | e468f9621b89be13b24885d28f8e22f1075e910d | [
"MIT"
] | null | null | null | use Mix.Config
config :poly_amory, ecto_repos: []
if Mix.env == :test do
import_config "test.exs"
end
| 13.25 | 34 | 0.707547 |
acb899c3cd79e3dd0bc2cf3015f810579589c92e | 12,865 | ex | Elixir | lib/surface/translator/component_translator_helper.ex | zamith/surface | 1597bd2b2490eacea2a7ab659a7c95863e73985b | [
"MIT"
] | null | null | null | lib/surface/translator/component_translator_helper.ex | zamith/surface | 1597bd2b2490eacea2a7ab659a7c95863e73985b | [
"MIT"
] | null | null | null | lib/surface/translator/component_translator_helper.ex | zamith/surface | 1597bd2b2490eacea2a7ab659a7c95863e73985b | [
"MIT"
] | 1 | 2020-04-21T18:49:15.000Z | 2020-04-21T18:49:15.000Z | defmodule Surface.Translator.ComponentTranslatorHelper do
@moduledoc false
alias Surface.Translator.SlotTranslator
def add_render_call(renderer, args, has_children? \\ false) do
["<%= ", renderer, "(", Enum.join(args, ", "), ") ", maybe_add("do ", has_children?), "%>"]
end
def maybe_add(value, conditio... | 28.337004 | 112 | 0.586708 |
acb8c6b65d1e9fd099c35c0a8e4c4d6af4260356 | 825 | exs | Elixir | mix.exs | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | mix.exs | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | mix.exs | jesteracer/ytb | 67e3cab899e4f69e586383f7be2c3855c6beea49 | [
"Apache-2.0"
] | null | null | null | defmodule GoogleApi.YouTube.V3.Mixfile do
use Mix.Project
def project do
[app: :google_api_you_tube,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix... | 22.297297 | 79 | 0.608485 |
acb8d223e0bfaacdbf17582fcda3220f0074dbf3 | 649 | exs | Elixir | test/api_test.exs | m4hi2/crawly | b9e1bfffcc97e978023924e7aad53fc8a223aebf | [
"Apache-2.0"
] | 486 | 2019-05-30T09:19:59.000Z | 2021-04-28T07:51:31.000Z | test/api_test.exs | m4hi2/crawly | b9e1bfffcc97e978023924e7aad53fc8a223aebf | [
"Apache-2.0"
] | 131 | 2019-06-29T12:43:24.000Z | 2021-04-24T19:40:07.000Z | test/api_test.exs | m4hi2/crawly | b9e1bfffcc97e978023924e7aad53fc8a223aebf | [
"Apache-2.0"
] | 52 | 2019-06-24T10:13:41.000Z | 2021-03-28T07:36:42.000Z | defmodule APITest do
use ExUnit.Case
use Plug.Test
@opts Crawly.API.Router.init([])
test "returns welcome" do
conn =
:get
|> conn("/spiders", "")
|> Crawly.API.Router.call(@opts)
assert conn.resp_body == "No spiders are currently running"
end
test "scheduling spiders" do
co... | 19.088235 | 63 | 0.594761 |
acb8e25dc3a3fb58615a6b6e26325fc27e5a6789 | 48 | exs | Elixir | .iex.exs | elixir-makeup/makeup_c | d5028d5e20a36a2f862ff9e6b5b9aae90186707b | [
"Apache-2.0"
] | 1 | 2020-09-28T13:38:00.000Z | 2020-09-28T13:38:00.000Z | .iex.exs | boydm/makeup_c | d5028d5e20a36a2f862ff9e6b5b9aae90186707b | [
"Apache-2.0"
] | null | null | null | .iex.exs | boydm/makeup_c | d5028d5e20a36a2f862ff9e6b5b9aae90186707b | [
"Apache-2.0"
] | 1 | 2021-03-23T12:39:12.000Z | 2021-03-23T12:39:12.000Z | import_if_available Makeup.Lexers.CLexer.Testing | 48 | 48 | 0.916667 |
acb8e34254383166a14ec166b055bba01b4c1ea6 | 4,472 | ex | Elixir | lib/materia_batch/job_schedules/job_schedules.ex | karabiner-inc/materia_batch | 92508508e2cfcdf8c938093e5cdc5b11b730ca67 | [
"Apache-2.0"
] | null | null | null | lib/materia_batch/job_schedules/job_schedules.ex | karabiner-inc/materia_batch | 92508508e2cfcdf8c938093e5cdc5b11b730ca67 | [
"Apache-2.0"
] | 1 | 2019-12-13T06:26:50.000Z | 2019-12-13T06:26:55.000Z | lib/materia_batch/job_schedules/job_schedules.ex | karabiner-inc/materia_batch | 92508508e2cfcdf8c938093e5cdc5b11b730ca67 | [
"Apache-2.0"
] | null | null | null | defmodule MateriaBatch.JobSchedules do
@moduledoc """
The JobSchedules context.
"""
import Ecto.Query, warn: false
alias MateriaBatch.JobSchedules.JobSchedule
alias MateriaUtils.Ecto.EctoUtil
@repo Application.get_env(:materia, :repo)
@doc """
Returns the list of job_schedules.
## Examples
i... | 30.421769 | 269 | 0.700581 |
acb90b417973b8b1b07af1740be44b9045f8a839 | 3,482 | exs | Elixir | test/smppsend/pdu_helpers_test.exs | galina/smppsend | 8ab15487a11b1c968e9f160515025e2c670f0521 | [
"Apache-2.0"
] | 11 | 2017-06-09T06:55:31.000Z | 2019-09-17T07:05:37.000Z | test/smppsend/pdu_helpers_test.exs | galina/smppsend | 8ab15487a11b1c968e9f160515025e2c670f0521 | [
"Apache-2.0"
] | 11 | 2017-07-14T10:03:58.000Z | 2019-11-15T09:22:30.000Z | test/smppsend/pdu_helpers_test.exs | galina/smppsend | 8ab15487a11b1c968e9f160515025e2c670f0521 | [
"Apache-2.0"
] | 9 | 2017-06-19T07:10:06.000Z | 2019-11-14T11:03:56.000Z | defmodule SMPPSend.PduHelpersTest do
use ExUnit.Case
use Bitwise
alias SMPPEX.Pdu
import SMPPSend.PduHelpers
@bind_common_opts [
system_id: "sid",
password: "pwd",
system_type: "conn",
interface_version: 1,
addr_ton: 1,
addr_npi: 1,
address_range: "range"
]
@submit_sm_commo... | 24.521127 | 93 | 0.631534 |
acb95c7e0ce3a616addaf6686cb3e29af7206651 | 19,364 | exs | Elixir | test/date_test.exs | pma/timex | 80f13fe5cdf56f5f8beb980f0131c9d134becd08 | [
"MIT"
] | 2 | 2018-05-25T17:19:19.000Z | 2020-11-21T06:54:33.000Z | test/date_test.exs | pma/timex | 80f13fe5cdf56f5f8beb980f0131c9d134becd08 | [
"MIT"
] | null | null | null | test/date_test.exs | pma/timex | 80f13fe5cdf56f5f8beb980f0131c9d134becd08 | [
"MIT"
] | null | null | null | defmodule DateTests do
use ExUnit.Case, async: true
use Timex
alias Timex.Date, as: D
test :now do
# We cannot assert matching to a specific value. However, we can still do
# some sanity checks
now = D.now
assert {{_, _, _}, {_, _, _}, {_, _}} = DateConvert.to_gregorian(now)
{_, _, tz} = ... | 41.112527 | 158 | 0.615834 |
acb9608f39f04dd9b3b6650ea85477659dc730ea | 2,081 | ex | Elixir | triangles/lib/transpose.ex | seanohue/advent-of-code-2016 | f0f387e90e5115573ef9bca0278132eef04c9fd2 | [
"Fair"
] | null | null | null | triangles/lib/transpose.ex | seanohue/advent-of-code-2016 | f0f387e90e5115573ef9bca0278132eef04c9fd2 | [
"Fair"
] | null | null | null | triangles/lib/transpose.ex | seanohue/advent-of-code-2016 | f0f387e90e5115573ef9bca0278132eef04c9fd2 | [
"Fair"
] | null | null | null | # Shamelessly taken from http://langintro.com/elixir/article2/transpose1.ex
defmodule Transpose1 do
def transpose(m) do
attach_row(m, [])
end
@doc """
Given a matrix and a result, make the first row into a column,
attach it to the result, and then recursively attach the
remaining rows to that new r... | 29.309859 | 96 | 0.686209 |
acb969623b59ecd175215b0665994b04d125c13a | 7,657 | ex | Elixir | deps/timex/lib/parse/datetime/tokenizers/default.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | 1 | 2020-01-31T10:23:37.000Z | 2020-01-31T10:23:37.000Z | deps/timex/lib/parse/datetime/tokenizers/default.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | null | null | null | deps/timex/lib/parse/datetime/tokenizers/default.ex | robot-overlord/starter_kit | 254153221d0a3a06324c65ad8e89d610de2429c3 | [
"MIT"
] | 1 | 2019-11-23T12:09:14.000Z | 2019-11-23T12:09:14.000Z | defmodule Timex.Parse.DateTime.Tokenizers.Default do
@moduledoc """
Implements the parser for the default DateTime format strings.
"""
import Combine.Parsers.Base
import Combine.Parsers.Text
use Timex.Parse.DateTime.Tokenizer
@doc """
Tokenizes the given format string and returns an error or a list of... | 44.517442 | 100 | 0.600888 |
acb972d43901d7d3d4b8d086cc0f727af8e8f85c | 6,240 | exs | Elixir | test/lib/bamboo/adapters/mailgun_adapter_test.exs | speeddragon/bamboo | b7bc9df132c7710ac3344be677b22a156e4eecd3 | [
"MIT"
] | null | null | null | test/lib/bamboo/adapters/mailgun_adapter_test.exs | speeddragon/bamboo | b7bc9df132c7710ac3344be677b22a156e4eecd3 | [
"MIT"
] | null | null | null | test/lib/bamboo/adapters/mailgun_adapter_test.exs | speeddragon/bamboo | b7bc9df132c7710ac3344be677b22a156e4eecd3 | [
"MIT"
] | null | null | null | defmodule Bamboo.MailgunAdapterTest do
use ExUnit.Case
alias Bamboo.Email
alias Bamboo.MailgunAdapter
@config %{adapter: MailgunAdapter, api_key: "dummyapikey", domain: "test.tt"}
defmodule FakeMailgun do
use Plug.Router
plug(
Plug.Parsers,
parsers: [:urlencoded, :multipart, :json],
... | 31.044776 | 168 | 0.644071 |
acb99c83ca8c4235dd047a9378576468023012a2 | 7,779 | ex | Elixir | clients/content/lib/google_api/content/v21/api/settlementreports.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/api/settlementreports.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/content/lib/google_api/content/v21/api/settlementreports.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.758824 | 224 | 0.638257 |
acb9f180656351391be83617d04d8d843e6c8951 | 126 | exs | Elixir | 2016/day13/test/day13_test.exs | matt-thomson/advent-of-code | feff903151284240a9d3f0c84cdfe52d8d11ef06 | [
"MIT"
] | null | null | null | 2016/day13/test/day13_test.exs | matt-thomson/advent-of-code | feff903151284240a9d3f0c84cdfe52d8d11ef06 | [
"MIT"
] | null | null | null | 2016/day13/test/day13_test.exs | matt-thomson/advent-of-code | feff903151284240a9d3f0c84cdfe52d8d11ef06 | [
"MIT"
] | null | null | null | defmodule Day13Test do
use ExUnit.Case
test "solves part one" do
assert Day13.part_one("10", {7, 4}) == 11
end
end
| 15.75 | 45 | 0.65873 |
acba01dca646bba04f17e86c4481007f6515c1c1 | 3,332 | ex | Elixir | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_cache_capabilities.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_cache_capabilities.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_cache_capabilities.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.643836 | 285 | 0.765606 |
acba1519e920428275c1da3935d76b997ddb14c4 | 1,336 | ex | Elixir | scratchpad/decorators.ex | BenSchZA/cadex | 4cb5e98aeeb6df96fa665a23b5cc881f5783cbb9 | [
"MIT"
] | 4 | 2020-08-19T18:43:45.000Z | 2021-05-19T07:49:48.000Z | scratchpad/decorators.ex | BenSchZA/cadex | 4cb5e98aeeb6df96fa665a23b5cc881f5783cbb9 | [
"MIT"
] | null | null | null | scratchpad/decorators.ex | BenSchZA/cadex | 4cb5e98aeeb6df96fa665a23b5cc881f5783cbb9 | [
"MIT"
] | null | null | null | defmodule Cadex.Decorators do
@moduledoc """
Decorate Cadex policy and state update functions
"""
use Decorator.Define, [state_update: 1]
def state_update(variable, body, context) do
quote do
IO.puts("State update function called: " <> Atom.to_string(unquote(context.name)) <> " on " <> to_string(u... | 26.72 | 130 | 0.567365 |
acba462f92ea5771d9aafa6332cd5f6003018d81 | 13,280 | exs | Elixir | test/credo/code_test.exs | sascha-wolf/credo | 7f51b45406968d28b7435ddcfb52745e9575e1fc | [
"MIT"
] | null | null | null | test/credo/code_test.exs | sascha-wolf/credo | 7f51b45406968d28b7435ddcfb52745e9575e1fc | [
"MIT"
] | null | null | null | test/credo/code_test.exs | sascha-wolf/credo | 7f51b45406968d28b7435ddcfb52745e9575e1fc | [
"MIT"
] | 1 | 2020-09-25T11:48:49.000Z | 2020-09-25T11:48:49.000Z | defmodule Credo.CodeTest do
use Credo.TestHelper
test "it should NOT report expected code" do
lines =
"""
defmodule CredoSampleModule do
def some_function(parameter1, parameter2) do
some_value = parameter1 + parameter2
end
end
"""
|> Credo.Code.to_lines()... | 27.957895 | 141 | 0.471461 |
acba5c6930d136c35bcb9f84233e4535201f407d | 1,243 | ex | Elixir | lib/nostrum/struct/event/guild_integration_delete.ex | mckethanor/nostrum | 13a3927c872c1540266e9f1ba4bcad4182baa9bf | [
"MIT"
] | null | null | null | lib/nostrum/struct/event/guild_integration_delete.ex | mckethanor/nostrum | 13a3927c872c1540266e9f1ba4bcad4182baa9bf | [
"MIT"
] | null | null | null | lib/nostrum/struct/event/guild_integration_delete.ex | mckethanor/nostrum | 13a3927c872c1540266e9f1ba4bcad4182baa9bf | [
"MIT"
] | null | null | null | defmodule Nostrum.Struct.Event.GuildIntegrationDelete do
@moduledoc """
Event fired when a guild integration is deleted.
"""
@moduledoc since: "0.5.1"
alias Nostrum.Struct.Guild
alias Nostrum.Struct.Guild.Integration
alias Nostrum.Struct.Guild.Integration.Application, as: IntegrationApplication
alias N... | 25.895833 | 80 | 0.651649 |
acba63edb71faa3cc4571751f149741588d842cb | 1,648 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/health_check_reference.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/health_check_reference.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/health_check_reference.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.06383 | 289 | 0.748786 |
acba6de5e082360af48168eb21254b919bbd0be5 | 214 | ex | Elixir | lib/code_corps_web/views/user_role_view.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | lib/code_corps_web/views/user_role_view.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | lib/code_corps_web/views/user_role_view.ex | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorpsWeb.UserRoleView do
@moduledoc false
use CodeCorpsWeb, :view
use JaSerializer.PhoenixView
has_one :user, type: "user", field: :user_id
has_one :role, type: "role", field: :role_id
end
| 23.777778 | 46 | 0.742991 |
acbaa91fec9cfde4652eabf16d1f1f0eeab8e22d | 500 | ex | Elixir | lib/rocketpay_web/views/users_view.ex | nnmuniz/rocketpay | 3174bcb6bed1578a1cd96e3be90499cc87382b21 | [
"MIT"
] | 2 | 2021-03-09T22:58:09.000Z | 2021-03-28T12:22:11.000Z | lib/rocketpay_web/views/users_view.ex | nnmuniz/rocketpay | 3174bcb6bed1578a1cd96e3be90499cc87382b21 | [
"MIT"
] | 9 | 2021-02-28T20:29:58.000Z | 2021-03-26T01:28:01.000Z | lib/rocketpay_web/views/users_view.ex | nnmuniz/rocketpay | 3174bcb6bed1578a1cd96e3be90499cc87382b21 | [
"MIT"
] | 1 | 2021-03-28T11:56:37.000Z | 2021-03-28T11:56:37.000Z | defmodule RocketpayWeb.UsersView do
alias Rocketpay.{Account, User}
def render("create.json", %{
user: %User{
account: %Account{id: account_id, balance: balance},
id: id,
name: name,
nickname: nickname
}
}) do
%{
message: "User created",
... | 19.230769 | 62 | 0.486 |
acbacf3d4a852f291bbdb92370167a7aad9963ec | 2,547 | ex | Elixir | lib/off_broadway/kafka.ex | bbalser/off_broadway_kafka | 5d8a4ece71d198bab36c60f57ca497a0a3b4b7a5 | [
"Apache-2.0"
] | 16 | 2019-07-30T19:17:38.000Z | 2021-05-06T18:50:36.000Z | lib/off_broadway/kafka.ex | bbalser/off_broadway_kafka | 5d8a4ece71d198bab36c60f57ca497a0a3b4b7a5 | [
"Apache-2.0"
] | 4 | 2019-08-08T13:40:54.000Z | 2020-03-06T10:14:33.000Z | lib/off_broadway/kafka.ex | bbalser/off_broadway_kafka | 5d8a4ece71d198bab36c60f57ca497a0a3b4b7a5 | [
"Apache-2.0"
] | 3 | 2019-08-16T22:37:47.000Z | 2020-01-28T08:07:49.000Z | defmodule OffBroadway.Kafka do
@moduledoc ~S"""
Defines a macro to easily define a Kafka Broadway pipeline in your
application, configuring Broadway and Kafka via callbacks.
It starts a Broadway pipeline for each topic and partition for increased
concurrency processing events, receiving partition assignments... | 27.989011 | 85 | 0.648999 |
acbaf8fa5d85459ae93765123c930f6d2a0f183c | 2,419 | ex | Elixir | lib/cocktail/validation/day_of_month.ex | gadabout/cocktail | 3dd3b6ee60d6f99b640f092c974d067338dd589b | [
"MIT"
] | 117 | 2017-09-09T00:02:32.000Z | 2022-02-10T15:36:28.000Z | lib/cocktail/validation/day_of_month.ex | gadabout/cocktail | 3dd3b6ee60d6f99b640f092c974d067338dd589b | [
"MIT"
] | 193 | 2017-09-09T22:49:18.000Z | 2022-03-30T13:05:25.000Z | lib/cocktail/validation/day_of_month.ex | gadabout/cocktail | 3dd3b6ee60d6f99b640f092c974d067338dd589b | [
"MIT"
] | 20 | 2018-01-04T14:58:42.000Z | 2021-11-25T13:59:10.000Z | defmodule Cocktail.Validation.DayOfMonth do
@moduledoc false
import Cocktail.Validation.Shift
import Cocktail.Util, only: [next_gte: 2]
# assumed that DST can not "take" more than 4 hours between any 2 consecutive days
@min_dst_resultant_hours 20
@type t :: %__MODULE__{days: [Cocktail.day_of_month()]}
... | 29.864198 | 110 | 0.704837 |
acbb15a9b7223058343f5839cc5e3845731ff5ec | 1,816 | ex | Elixir | lib/telemetry_metrics_statsd/packet.ex | hkrutzer/telemetry_metrics_statsd | dc5dfa823e0afcad81bb6386ccaf42192cbecbb7 | [
"MIT"
] | null | null | null | lib/telemetry_metrics_statsd/packet.ex | hkrutzer/telemetry_metrics_statsd | dc5dfa823e0afcad81bb6386ccaf42192cbecbb7 | [
"MIT"
] | null | null | null | lib/telemetry_metrics_statsd/packet.ex | hkrutzer/telemetry_metrics_statsd | dc5dfa823e0afcad81bb6386ccaf42192cbecbb7 | [
"MIT"
] | null | null | null | defmodule TelemetryMetricsStatsd.Packet do
@moduledoc false
@spec build_packets([binary()], size :: non_neg_integer(), joiner :: binary()) :: [binary()]
def build_packets(binaries, max_size, joiner)
when is_integer(max_size) and max_size > 0 and is_binary(joiner) do
build_packets(binaries, max_size, {j... | 33.018182 | 94 | 0.667952 |
acbb169960ee60836e6808b434ae7090b2127a22 | 3,691 | ex | Elixir | data/web/deps/tzdata/lib/tzdata/data_loader.ex | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | data/web/deps/tzdata/lib/tzdata/data_loader.ex | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | null | null | null | data/web/deps/tzdata/lib/tzdata/data_loader.ex | lydiadwyer/trains_elixir | 16da18d4582307f4967b6cce7320e9aa08a849c3 | [
"Apache-2.0"
] | 1 | 2019-11-23T12:09:14.000Z | 2019-11-23T12:09:14.000Z | defmodule Tzdata.DataLoader do
require Logger
@compile :nowarn_deprecated_function
# Can poll for newest version of tz data and can download
# and extract it.
@download_url "https://www.iana.org/time-zones/repository/tzdata-latest.tar.gz"
def download_new(url\\@download_url) do
Logger.debug "Tzdata down... | 36.91 | 167 | 0.703874 |
acbb556f39c639063f769194871eed1eab79e1c8 | 55 | ex | Elixir | apps/merkle_patricia_tree/lib/merkle_patricia_tree/merkle_patricia_tree.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 152 | 2018-10-27T04:52:03.000Z | 2022-03-26T10:34:00.000Z | apps/merkle_patricia_tree/lib/merkle_patricia_tree/merkle_patricia_tree.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 270 | 2018-04-14T07:34:57.000Z | 2018-10-25T18:10:45.000Z | apps/merkle_patricia_tree/lib/merkle_patricia_tree/merkle_patricia_tree.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 25 | 2018-10-27T12:15:13.000Z | 2022-01-25T20:31:14.000Z | defmodule MerklePatriciaTree do
@moduledoc false
end
| 13.75 | 31 | 0.836364 |
acbbe1fed23f5765ac1392cb08483ec91c2a7169 | 638 | ex | Elixir | apps/buzzcms_web/lib/buzzcms_web/document_providers/persisted_queries.ex | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | null | null | null | apps/buzzcms_web/lib/buzzcms_web/document_providers/persisted_queries.ex | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | 41 | 2020-02-12T07:53:14.000Z | 2020-03-30T02:18:14.000Z | apps/buzzcms_web/lib/buzzcms_web/document_providers/persisted_queries.ex | buzzcms/buzzcms | 8ca8e6dea381350f94cc4a666448b5dba6676520 | [
"Apache-2.0"
] | null | null | null | defmodule BuzzcmsWeb.Schema.DocumentProvider.PersistedQueries do
@behaviour Absinthe.Plug.DocumentProvider
# TODO: Store this into database
@documents %{}
def process(request, _) do
do_process(request)
end
defp do_process(%{params: %{"id" => document_key}} = request) do
case Map.get(@documents, d... | 23.62963 | 85 | 0.680251 |
acbc0d9b9dfdc50c7724670ba177d74c61fa7d53 | 3,951 | ex | Elixir | test/test_package_manager.ex | xecronix/euanyrepo | c8e9285c733cc97d7912fd5c733b1a8a5bfd7b9f | [
"Unlicense"
] | null | null | null | test/test_package_manager.ex | xecronix/euanyrepo | c8e9285c733cc97d7912fd5c733b1a8a5bfd7b9f | [
"Unlicense"
] | 1 | 2015-08-31T10:54:57.000Z | 2015-08-31T10:54:57.000Z | test/test_package_manager.ex | xecronix/euanyrepo | c8e9285c733cc97d7912fd5c733b1a8a5bfd7b9f | [
"Unlicense"
] | null | null | null | #!/usr/bin/env eui
include package_manager.e
include std/pretty.e
include eushouldtest.e
function confirm_getPackageManagers()
sequence packMan = getPackageManagers()
sequence prettyPackMan = pretty_sprint(packMan,{3})
sequence should
sequence but
atom results
atom pass = 1
should = "packMan should have a l... | 31.357143 | 101 | 0.760567 |
acbc28840c5a8a57d5db7829576974fbe714acc2 | 10,098 | ex | Elixir | lib/spandex_datadog/api_server.ex | dnlserrano/spandex_datadog | 47646cbb870c1a6e83b42e18a97f2daf0a80e5ad | [
"MIT"
] | null | null | null | lib/spandex_datadog/api_server.ex | dnlserrano/spandex_datadog | 47646cbb870c1a6e83b42e18a97f2daf0a80e5ad | [
"MIT"
] | null | null | null | lib/spandex_datadog/api_server.ex | dnlserrano/spandex_datadog | 47646cbb870c1a6e83b42e18a97f2daf0a80e5ad | [
"MIT"
] | null | null | null | defmodule SpandexDatadog.ApiServer do
@moduledoc """
Implements worker for sending spans to datadog as GenServer in order to send traces async.
"""
use GenServer
require Logger
alias Spandex.{
Span,
Trace
}
defmodule State do
@moduledoc false
@type t :: %State{}
defstruct [
... | 28.851429 | 126 | 0.586057 |
acbc349dc48336d025bf579e0ebf26106c00d410 | 407 | ex | Elixir | lib/aspekt_web/controllers/password_controller.ex | wjanssens/aspekt-elixir | 3b4926fa37cc056cafe7204589e0cac11289c6a8 | [
"Apache-2.0"
] | null | null | null | lib/aspekt_web/controllers/password_controller.ex | wjanssens/aspekt-elixir | 3b4926fa37cc056cafe7204589e0cac11289c6a8 | [
"Apache-2.0"
] | null | null | null | lib/aspekt_web/controllers/password_controller.ex | wjanssens/aspekt-elixir | 3b4926fa37cc056cafe7204589e0cac11289c6a8 | [
"Apache-2.0"
] | null | null | null | defmodule AspektWeb.PasswordController do
use AspektWeb, :controller
alias Aspekt.Repo
alias Aspekt.Accounts.Password
def update(conn, params) do
Password.delete_all(params.subject_id)
changeset = Password.changeset(params)
if changeset.valid? do
changeset
|> Ecto.Changeset.apply_changes
|> Passw... | 19.380952 | 41 | 0.742015 |
acbc8e3ba9f7b49403f61b0b6f93d8b1ff439065 | 193 | exs | Elixir | test/controllers/page_controller_test.exs | josephyi/hextech | ae892029a424aa52655152af1f0660ea77a5d8e1 | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | josephyi/hextech | ae892029a424aa52655152af1f0660ea77a5d8e1 | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | josephyi/hextech | ae892029a424aa52655152af1f0660ea77a5d8e1 | [
"MIT"
] | null | null | null | defmodule Hextech.PageControllerTest do
use Hextech.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 21.444444 | 60 | 0.673575 |
acbca17155667308106693b31bb5368729ae8314 | 364 | ex | Elixir | lib/storage.ex | capsule-ex/capsule | 2ffcdf5f0c4f7596af392aad56f2da6913eda9bf | [
"Apache-2.0"
] | null | null | null | lib/storage.ex | capsule-ex/capsule | 2ffcdf5f0c4f7596af392aad56f2da6913eda9bf | [
"Apache-2.0"
] | null | null | null | lib/storage.ex | capsule-ex/capsule | 2ffcdf5f0c4f7596af392aad56f2da6913eda9bf | [
"Apache-2.0"
] | null | null | null | defmodule Capsule.Storage do
alias Capsule.{Upload, Encapsulation}
@type option :: {atom(), any()}
@callback read(Encapsulation.t(), [option]) :: {:ok, binary()} | {:error, String.t()}
@callback put(Upload.t(), [option]) :: {:ok, Encapsulation.t()} | {:error, String.t()}
@callback delete(Encapsulation.t(), ... | 36.4 | 88 | 0.626374 |
acbcaee649615737281eddb9e90f7ca95dd078bb | 1,858 | exs | Elixir | clients/source_repo/mix.exs | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/source_repo/mix.exs | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/source_repo/mix.exs | 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... | 27.731343 | 102 | 0.659311 |
acbce0ffaae2089891df87f90ae60fd598a3f304 | 2,419 | ex | Elixir | clients/gmail/lib/google_api/gmail/v1/model/smtp_msa.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/model/smtp_msa.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/gmail/lib/google_api/gmail/v1/model/smtp_msa.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... | 39.655738 | 252 | 0.723026 |
acbce41e92309568c2ed394bba3b62fc9de75350 | 1,191 | ex | Elixir | example/web/channels/user_socket.ex | smeevil/phoenix-jsroutes | b5351527302acff6258acd321a4f055e6fc71371 | [
"MIT"
] | null | null | null | example/web/channels/user_socket.ex | smeevil/phoenix-jsroutes | b5351527302acff6258acd321a4f055e6fc71371 | [
"MIT"
] | null | null | null | example/web/channels/user_socket.ex | smeevil/phoenix-jsroutes | b5351527302acff6258acd321a4f055e6fc71371 | [
"MIT"
] | null | null | null | defmodule JsRoutesExample.UserSocket do
use Phoenix.Socket
## Channels
# channel "rooms:*", JsRoutesExample.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to v... | 31.342105 | 88 | 0.707809 |
acbce6624293888cc38d287bc957d04d4ca64a6a | 155 | ex | Elixir | lib/esi/api.ex | bmartin2015/esi | 6463d444b01c4373fbed23dad70a4206cd855153 | [
"MIT"
] | 15 | 2017-11-25T09:10:35.000Z | 2021-04-26T03:09:51.000Z | lib/esi/api.ex | bmartin2015/esi | 6463d444b01c4373fbed23dad70a4206cd855153 | [
"MIT"
] | 6 | 2018-01-19T20:14:20.000Z | 2019-08-03T12:58:39.000Z | lib/esi/api.ex | bmartin2015/esi | 6463d444b01c4373fbed23dad70a4206cd855153 | [
"MIT"
] | 13 | 2017-12-09T16:30:30.000Z | 2021-12-22T21:27:37.000Z | defmodule ESI.API do
@doc """
The ESI Swagger Specification version number.
"""
@spec version :: String.t()
def version do
"0.8.6"
end
end
| 15.5 | 47 | 0.632258 |
acbd2a80fc2f6c0788e9cccb1e80b6653ddc7070 | 1,890 | ex | Elixir | clients/recommender/lib/google_api/recommender/v1beta1/model/google_cloud_recommender_v1beta1_mark_insight_accepted_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/recommender/lib/google_api/recommender/v1beta1/model/google_cloud_recommender_v1beta1_mark_insight_accepted_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/recommender/lib/google_api/recommender/v1beta1/model/google_cloud_recommender_v1beta1_mark_insight_accepted_request.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... | 33.75 | 145 | 0.743915 |
acbd4471f2583c04e0493cd4cee1af26ae93a74b | 345 | ex | Elixir | lib/brew_ex/formula.ex | wingyplus/brew_ex | d6c616c40435fad8b4c99475242ba4c91560b263 | [
"MIT"
] | null | null | null | lib/brew_ex/formula.ex | wingyplus/brew_ex | d6c616c40435fad8b4c99475242ba4c91560b263 | [
"MIT"
] | null | null | null | lib/brew_ex/formula.ex | wingyplus/brew_ex | d6c616c40435fad8b4c99475242ba4c91560b263 | [
"MIT"
] | null | null | null | defmodule BrewEx.Formula do
@callback install() :: no_return()
@doc false
defmacro __using__(_opts) do
quote do
import Kernel, except: [/: 2]
import BrewEx.Operator
import BrewEx.Command, only: [system: 2, cd: 2, pwd: 0, mkdir: 1, bash: 1]
import BrewEx.Path
@behaviour BrewEx.F... | 21.5625 | 80 | 0.64058 |
acbd44bd7c6999651b4e01cd5b3ffda7db1f2087 | 3,444 | ex | Elixir | lib/liquor/whitelist.ex | polyfox/liquor | 20be9ce4dc887c5298cee380e32a37f6b3eeb073 | [
"MIT"
] | 2 | 2019-07-28T16:19:17.000Z | 2019-07-31T10:34:01.000Z | lib/liquor/whitelist.ex | polyfox/liquor | 20be9ce4dc887c5298cee380e32a37f6b3eeb073 | [
"MIT"
] | null | null | null | lib/liquor/whitelist.ex | polyfox/liquor | 20be9ce4dc887c5298cee380e32a37f6b3eeb073 | [
"MIT"
] | 2 | 2019-07-28T16:19:20.000Z | 2021-12-06T15:19:28.000Z | defmodule Liquor.Whitelist do
@moduledoc """
Whitelist takes a list of search items and attempts to filter them
"""
@type filter_func :: ((atom, atom, term) -> {:ok, {atom, atom, term} | {atom, term}} | :reject)
@type filter_item ::
nil |
boolean |
atom |
{:apply, module, atom, list} |
fil... | 37.032258 | 97 | 0.654181 |
acbd5bbfe633f7ce911a7fc6f8faa504f791a40c | 1,828 | exs | Elixir | clients/file/mix.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/file/mix.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/file/mix.exs | 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... | 27.283582 | 117 | 0.652079 |
acbd6aaa69c893b05de74cf4fc6c07f4a0099361 | 1,228 | ex | Elixir | lib/exiban/ecto_validator.ex | coders51/exiban | 7d9f1f0c5092ce2deba8ffca49b6feb49d007df2 | [
"MIT"
] | null | null | null | lib/exiban/ecto_validator.ex | coders51/exiban | 7d9f1f0c5092ce2deba8ffca49b6feb49d007df2 | [
"MIT"
] | null | null | null | lib/exiban/ecto_validator.ex | coders51/exiban | 7d9f1f0c5092ce2deba8ffca49b6feb49d007df2 | [
"MIT"
] | null | null | null | defmodule ExIban.EctoValidator do
@moduledoc """
Validator for Ecto
"""
@doc """
Validate Ecto changeset. Returns changeset or tuple in format `{field, {error_msg, []}}` which can be useful for Phoenix.
## Examples
defmodule User do
use Ecto.Schema
use Ecto.Model
schema "us... | 26.695652 | 123 | 0.54316 |
acbd6e73088c06e97a4fd00ed21b41d42e81fb26 | 1,601 | ex | Elixir | apps/mishka_html/lib/mishka_html_web/live/home_live.ex | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 35 | 2021-06-26T09:05:50.000Z | 2022-03-30T15:41:22.000Z | apps/mishka_html/lib/mishka_html_web/live/home_live.ex | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 101 | 2021-01-01T09:54:07.000Z | 2022-03-28T10:02:24.000Z | apps/mishka_html/lib/mishka_html_web/live/home_live.ex | mishka-group/mishka-cms | 4e34ed646f807687f4ae809e862acb6f2c5aacef | [
"Apache-2.0"
] | 8 | 2021-01-17T17:08:07.000Z | 2022-03-11T16:12:06.000Z | defmodule MishkaHtmlWeb.HomeLive do
use MishkaHtmlWeb, :live_view
alias MishkaContent.Blog.Post
@impl true
def render(assigns) do
Phoenix.View.render(MishkaHtmlWeb.ClientHomeView, "home_live.html", assigns)
end
@impl true
def mount(_params, session, socket) do
Process.send_after(self(), :menu, ... | 32.673469 | 127 | 0.658339 |
acbd86de9ff5c451f642dc94928ab1bd527fe9ca | 1,386 | exs | Elixir | test/hui_httpoison_test.exs | boonious/hui_httpoison | 99edb666440a416e0ba4ee3e3373db5d83af59a7 | [
"Apache-2.0"
] | null | null | null | test/hui_httpoison_test.exs | boonious/hui_httpoison | 99edb666440a416e0ba4ee3e3373db5d83af59a7 | [
"Apache-2.0"
] | null | null | null | test/hui_httpoison_test.exs | boonious/hui_httpoison | 99edb666440a416e0ba4ee3e3373db5d83af59a7 | [
"Apache-2.0"
] | null | null | null | defmodule Hui.HttpoisonTest do
use ExUnit.Case, async: true
alias Hui.Httpoison
alias Hui.Http
setup do
bypass = Bypass.open()
bypass_url = "http://localhost:#{bypass.port}"
%{bypass: bypass, bypass_url: bypass_url}
end
test "get/1", %{bypass: bypass, bypass_url: bypass_url} do
Bypass.ex... | 27.176471 | 80 | 0.648629 |
acbd9271ae4bac76a35291325f3355b7a060cf86 | 16 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_three_operation_parsing_test_case/CharListLine.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_three_operation_parsing_test_case/CharListLine.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_three_operation_parsing_test_case/CharListLine.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | 'One' ^^^ 'Two'
| 8 | 15 | 0.375 |
acbda37db3e9243ce38a8dac14665160449e04cb | 13,428 | ex | Elixir | lib/elixir/lib/inspect/algebra.ex | jeregrine/elixir | 080201477955bcd2d755fb4162966dc6882b1521 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/inspect/algebra.ex | jeregrine/elixir | 080201477955bcd2d755fb4162966dc6882b1521 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/inspect/algebra.ex | jeregrine/elixir | 080201477955bcd2d755fb4162966dc6882b1521 | [
"Apache-2.0"
] | null | null | null | defmodule Inspect.Algebra do
@moduledoc %S"""
A set of functions for creating and manipulating algebra
documents, as described in ["Strictly Pretty" (2000) by Christian Lindig][0].
An algebra document is represented by an `Inspect.Algebra` node
or a regular string.
iex> Inspect.Algebra.empty
:do... | 30.940092 | 111 | 0.612824 |
acbdab1d770bca8ae5fe7c1157f5fdc39b95103e | 1,714 | ex | Elixir | lib/exq/support/mode.ex | neslinesli93/exq | c1caff8052c5176b716715a8bf813d6e87d98f37 | [
"Apache-2.0"
] | null | null | null | lib/exq/support/mode.ex | neslinesli93/exq | c1caff8052c5176b716715a8bf813d6e87d98f37 | [
"Apache-2.0"
] | null | null | null | lib/exq/support/mode.ex | neslinesli93/exq | c1caff8052c5176b716715a8bf813d6e87d98f37 | [
"Apache-2.0"
] | null | null | null | defmodule Exq.Support.Mode do
@moduledoc """
This module defines several modes in which Exq can be used. These modes are:
* `default` - starts the default processes
* `enqueuer` - starts processes which are responsible for job enqueueing
* `api` - starts processes which are responsible for API usage
"""
... | 27.206349 | 78 | 0.659277 |
acbdc5e3457150c9cfcb80fefd54d0cc35fd6c45 | 3,670 | ex | Elixir | lib/phoenix/param.ex | arkgil/phoenix | b5d82814154b5fb87c0870e25c1c2243c9384d9e | [
"MIT"
] | null | null | null | lib/phoenix/param.ex | arkgil/phoenix | b5d82814154b5fb87c0870e25c1c2243c9384d9e | [
"MIT"
] | null | null | null | lib/phoenix/param.ex | arkgil/phoenix | b5d82814154b5fb87c0870e25c1c2243c9384d9e | [
"MIT"
] | null | null | null | defprotocol Phoenix.Param do
@moduledoc """
A protocol that converts data structures into URL parameters.
This protocol is used by URL helpers and other parts of the
Phoenix stack. For example, when you write:
user_path(conn, :edit, @user)
Phoenix knows how to extract the `:id` from `@user` thanks
... | 28.897638 | 95 | 0.667302 |
acbdd0b1fba39daa6ab41d30b20ee88c4cd2a660 | 1,505 | exs | Elixir | mix.exs | aforward-oss/elixir-nats | f41f8181e8e98fab0b6ce95ebbff8db54a6a4037 | [
"MIT"
] | null | null | null | mix.exs | aforward-oss/elixir-nats | f41f8181e8e98fab0b6ce95ebbff8db54a6a4037 | [
"MIT"
] | null | null | null | mix.exs | aforward-oss/elixir-nats | f41f8181e8e98fab0b6ce95ebbff8db54a6a4037 | [
"MIT"
] | null | null | null | # Copyright 2016 Apcera Inc. All rights reserved.
defmodule Nats.Mixfile do
use Mix.Project
@name "Nats"
@git_url "https://github.com/nats-io/elixir-nats"
@nats_io_url "https://nats.io/"
@home_url @git_url
@doc_url "https://nats-io.github.com/elixir-nats/"
@description "NATS framework for Elixir"
@v... | 25.508475 | 71 | 0.552159 |
acbdd8f32a2b5aa00a28b1903e17a6b4881a5077 | 877 | ex | Elixir | lib/registries/custom_registry.ex | weareyipyip/CachedContentful | b967d46a65af529a453262c076d964f7ae6a57aa | [
"MIT"
] | 2 | 2018-06-08T02:35:18.000Z | 2018-06-08T02:35:33.000Z | lib/registries/custom_registry.ex | weareyipyip/CachedContentful | b967d46a65af529a453262c076d964f7ae6a57aa | [
"MIT"
] | null | null | null | lib/registries/custom_registry.ex | weareyipyip/CachedContentful | b967d46a65af529a453262c076d964f7ae6a57aa | [
"MIT"
] | null | null | null | defmodule CachedContentful.CustomRegistry do
use GenServer
def start_link(name) do
GenServer.start_link(__MODULE__, [], name: via_tuple(name))
end
defp via_tuple(result_name) do
{:via, :gproc, {:n, :l, {:result, result_name}}}
end
# API
def add_result(result_name, result) do
GenServer.cast(via_tuple(r... | 21.390244 | 63 | 0.72634 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.