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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9381384d0502508e35e3a3593d17ea1a5db60f2a | 1,544 | exs | Elixir | config/config.exs | timgestson/vern | 89948ef59a5cc44f385fd53631a6d637a0ebec92 | [
"MIT"
] | null | null | null | config/config.exs | timgestson/vern | 89948ef59a5cc44f385fd53631a6d637a0ebec92 | [
"MIT"
] | null | null | null | config/config.exs | timgestson/vern | 89948ef59a5cc44f385fd53631a6d637a0ebec92 | [
"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 :vern, Vern.Robot,
adapter: Hedwig.Adapters.Console,
name: "vern",
aka: "/",
responders: [
{Hedwig.Responders.Help, []},
{Vern.Responders.Define, []},
{Ver... | 29.132075 | 73 | 0.692358 |
93814688a3d4de6aad18731a1d7ad18188735b16 | 395 | ex | Elixir | dungeon_crawl/lib/dungeon_crawl/room.ex | lebm/MyElixirTests | 4221012296c913179cdda278290263bfc1141454 | [
"Apache-2.0"
] | null | null | null | dungeon_crawl/lib/dungeon_crawl/room.ex | lebm/MyElixirTests | 4221012296c913179cdda278290263bfc1141454 | [
"Apache-2.0"
] | null | null | null | dungeon_crawl/lib/dungeon_crawl/room.ex | lebm/MyElixirTests | 4221012296c913179cdda278290263bfc1141454 | [
"Apache-2.0"
] | null | null | null | defmodule DungeonCrawl.Room do
alias DungeonCrawl.Room
alias DungeonCrawl.Room.Triggers
import DungeonCrawl.Room.Action
defstruct description: nil, actions: [], trigger: nil
def all, do: [
%Room{
description: "You can see the light of day. You found the exit!",
act... | 23.235294 | 77 | 0.610127 |
93814d770507097e2debdc546f669002c65e63b7 | 2,048 | ex | Elixir | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1alpha1_label_video_object_detection_operation_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1alpha1_label_video_object_detection_operation_metadata.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1alpha1_label_video_object_detection_operation_metadata.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.310345 | 199 | 0.778809 |
93815c74a3278b8218905a733c4b7726f64872fc | 6,327 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/uptime_check_config.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/uptime_check_config.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/uptime_check_config.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"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... | 76.228916 | 449 | 0.736684 |
93817b131ba22711e076af627ac374cda95ad196 | 1,148 | ex | Elixir | lib/i18next_backend.ex | vizlegal/i18next_backend | 22411dfcd9da4c53b2554c750bfd891140e46c1c | [
"MIT"
] | 1 | 2022-03-31T18:18:17.000Z | 2022-03-31T18:18:17.000Z | lib/i18next_backend.ex | vizlegal/i18next_backend | 22411dfcd9da4c53b2554c750bfd891140e46c1c | [
"MIT"
] | null | null | null | lib/i18next_backend.ex | vizlegal/i18next_backend | 22411dfcd9da4c53b2554c750bfd891140e46c1c | [
"MIT"
] | null | null | null | defmodule I18nextBackend do
@moduledoc """
`I18nextBackend` is a simple Plug to serve PO files in json format
all locales files are parsed in a Genserver
"""
use Application
@impl true
@spec start(any, any) :: {:error, any} | {:ok, pid}
@doc """
Starts the I18nextBacked Application
"""
def sta... | 26.090909 | 98 | 0.667247 |
93819d597a74821943c95ea53d842c327670d60a | 1,156 | exs | Elixir | mix.exs | jonklein/ueberauth_strava | 8be1e56c6e52b4c006c9909f3a3e1fea2903c9f4 | [
"MIT"
] | null | null | null | mix.exs | jonklein/ueberauth_strava | 8be1e56c6e52b4c006c9909f3a3e1fea2903c9f4 | [
"MIT"
] | null | null | null | mix.exs | jonklein/ueberauth_strava | 8be1e56c6e52b4c006c9909f3a3e1fea2903c9f4 | [
"MIT"
] | null | null | null | defmodule UeberauthStrava.Mixfile do
use Mix.Project
@version "0.4.0"
@url "https://github.com/andrewhao/ueberauth_strava"
def project do
[app: :ueberauth_strava,
version: @version,
name: "Ueberauth Strava Strategy",
package: package(),
elixir: "~> 1.3",
build_embedded: Mix.env ==... | 21.811321 | 55 | 0.58218 |
9381a557bc8034bf68f12dce35ac33c567961a0f | 1,165 | exs | Elixir | test/runlet_process_test.exs | msantos/runlet | d9cb44b113295387c296ab4576a09ca4a7ce0f7b | [
"ISC"
] | 4 | 2020-01-12T19:04:46.000Z | 2021-09-20T14:37:22.000Z | test/runlet_process_test.exs | msantos/runlet | d9cb44b113295387c296ab4576a09ca4a7ce0f7b | [
"ISC"
] | null | null | null | test/runlet_process_test.exs | msantos/runlet | d9cb44b113295387c296ab4576a09ca4a7ce0f7b | [
"ISC"
] | 1 | 2021-09-20T14:37:25.000Z | 2021-09-20T14:37:25.000Z | defmodule RunletProcessTest do
use ExUnit.Case
doctest Runlet.Process
test "Job control" do
run("runlet_process_test")
end
test "Job control: percent encoded name" do
run("runlet_process_@#$%^")
end
defp run(name) do
assert [] = Runlet.Process.all(name)
cmd = "test"
{:ok, child} =... | 20.438596 | 65 | 0.570815 |
9381c468676894305bfdb68b9bcf5dd6aa82dea7 | 55,599 | ex | Elixir | lib/phoenix_html/form.ex | jtormey/phoenix_html | 69c863907dc1077b9ac7b3c2b74c787909efa390 | [
"MIT"
] | null | null | null | lib/phoenix_html/form.ex | jtormey/phoenix_html | 69c863907dc1077b9ac7b3c2b74c787909efa390 | [
"MIT"
] | null | null | null | lib/phoenix_html/form.ex | jtormey/phoenix_html | 69c863907dc1077b9ac7b3c2b74c787909efa390 | [
"MIT"
] | null | null | null | defmodule Phoenix.HTML.Form do
@moduledoc ~S"""
Helpers related to producing HTML forms.
The functions in this module can be used in three
distinct scenarios:
* with changeset data - when information to populate
the form comes from a changeset
* with limited data - when a form is created withou... | 31.095638 | 112 | 0.634382 |
9381d7916e2149e464bb52a162348e91f500443d | 48,529 | ex | Elixir | clients/eventarc/lib/google_api/eventarc/v1beta1/api/projects.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/eventarc/lib/google_api/eventarc/v1beta1/api/projects.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/eventarc/lib/google_api/eventarc/v1beta1/api/projects.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... | 46.6625 | 802 | 0.618826 |
9381e338b860c77a36e8d30024584d979e3ed31b | 1,119 | exs | Elixir | config/config.exs | marioluigiman/elixirpasswordgen | 93f815e5741ae2cc839e0f254f4449dbc8481491 | [
"MIT"
] | null | null | null | config/config.exs | marioluigiman/elixirpasswordgen | 93f815e5741ae2cc839e0f254f4449dbc8481491 | [
"MIT"
] | null | null | null | config/config.exs | marioluigiman/elixirpasswordgen | 93f815e5741ae2cc839e0f254f4449dbc8481491 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.096774 | 73 | 0.751564 |
9381f48cef6f94deac677f4ddf2ab2968ed0ed85 | 1,324 | exs | Elixir | test/channels/lobby_test.exs | cazrin/stranger | 887dfe52c8b934cf6fd0d598d64c3735da96d4e1 | [
"MIT"
] | 50 | 2016-01-24T11:45:47.000Z | 2016-08-26T20:20:20.000Z | test/channels/lobby_test.exs | dnlgrv/stranger | 887dfe52c8b934cf6fd0d598d64c3735da96d4e1 | [
"MIT"
] | 1 | 2016-01-24T20:21:19.000Z | 2016-01-28T11:26:10.000Z | test/channels/lobby_test.exs | dnlgrv/stranger | 887dfe52c8b934cf6fd0d598d64c3735da96d4e1 | [
"MIT"
] | 3 | 2017-03-17T12:46:09.000Z | 2021-01-14T19:41:01.000Z | defmodule Stranger.Channel.LobbyTest do
use Stranger.ChannelCase
alias Stranger.{Lobby, Room}
@id "my-test-id"
@id2 "other-test-id"
setup do
{:ok, socket} = connect(Stranger.Socket, %{"id" => @id})
{:ok, %{socket: socket}}
end
test "joining the lobby", %{socket: socket} do
{:ok, _, socket}... | 26.48 | 63 | 0.630665 |
9381f5320c2cab6029d7be3b55e6f6464a94d017 | 1,015 | ex | Elixir | clients/safe_browsing/lib/google_api/safe_browsing/v4/connection.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/safe_browsing/lib/google_api/safe_browsing/v4/connection.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/safe_browsing/lib/google_api/safe_browsing/v4/connection.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 ... | 33.833333 | 77 | 0.749754 |
938219a2a26e4251b2b3c864762c03ecda19395f | 10,112 | ex | Elixir | clients/content/lib/google_api/content/v21/model/promotion.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/promotion.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/promotion.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"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... | 66.526316 | 548 | 0.693532 |
93823181e4da0b5447f64a8165d49743681b7204 | 947 | exs | Elixir | config/test.exs | snamiki1212/example-elixir-phoenix-nuron-graphql | 57b7f255db683a880d1b31f65a4328606d4d0009 | [
"MIT"
] | null | null | null | config/test.exs | snamiki1212/example-elixir-phoenix-nuron-graphql | 57b7f255db683a880d1b31f65a4328606d4d0009 | [
"MIT"
] | null | null | null | config/test.exs | snamiki1212/example-elixir-phoenix-nuron-graphql | 57b7f255db683a880d1b31f65a4328606d4d0009 | [
"MIT"
] | null | null | null | import Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :gh, Gh.Repo,
username: "postgres",
password: "postgres",
database: "gh_test#{System.get_env("MIX_TEST_... | 30.548387 | 86 | 0.751848 |
9382424ce72863cdf83a345cefb0a5b43e18d664 | 22,665 | ex | Elixir | lib/phoenix/router.ex | bitgamma/phoenix | c06fc0fa03a95f2c863c49711da58fedfa56c374 | [
"MIT"
] | null | null | null | lib/phoenix/router.ex | bitgamma/phoenix | c06fc0fa03a95f2c863c49711da58fedfa56c374 | [
"MIT"
] | null | null | null | lib/phoenix/router.ex | bitgamma/phoenix | c06fc0fa03a95f2c863c49711da58fedfa56c374 | [
"MIT"
] | null | null | null | defmodule Phoenix.Router do
defmodule NoRouteError do
@moduledoc """
Exception raised when no route is found.
"""
defexception plug_status: 404, message: "no route found", conn: nil, router: nil
def exception(opts) do
conn = Keyword.fetch!(opts, :conn)
router = Keyword.fetch!(opts, ... | 29.057692 | 98 | 0.633091 |
93825c68d83ac1bd0da35edc091de999b135e8a3 | 2,007 | ex | Elixir | clients/genomics/lib/google_api/genomics/v1/model/delayed_event.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/genomics/lib/google_api/genomics/v1/model/delayed_event.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/genomics/lib/google_api/genomics/v1/model/delayed_event.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... | 40.14 | 322 | 0.733433 |
93825d39010d57d455cc62eefd11a137a0aeb8a4 | 149,185 | ex | Elixir | lib/elixir/lib/kernel.ex | vgsantoniazzi/elixir | b792ae50c3a61ff8b56c27b3ba63fc20ff151c77 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel.ex | vgsantoniazzi/elixir | b792ae50c3a61ff8b56c27b3ba63fc20ff151c77 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel.ex | vgsantoniazzi/elixir | b792ae50c3a61ff8b56c27b3ba63fc20ff151c77 | [
"Apache-2.0"
] | null | null | null | # Use elixir_bootstrap module to be able to bootstrap Kernel.
# The bootstrap module provides simpler implementations of the
# functions removed, simple enough to bootstrap.
import Kernel,
except: [@: 1, defmodule: 2, def: 1, def: 2, defp: 2, defmacro: 1, defmacro: 2, defmacrop: 2]
import :elixir_bootstrap
defmodul... | 26.860821 | 111 | 0.634742 |
938294d351149a982800723335bf00fdc6b93733 | 1,793 | ex | Elixir | day04/el.ex | mason-bially/aoc-2021 | 866ffc7e85f690c2ad9195da2304bfb515819023 | [
"MIT"
] | null | null | null | day04/el.ex | mason-bially/aoc-2021 | 866ffc7e85f690c2ad9195da2304bfb515819023 | [
"MIT"
] | null | null | null | day04/el.ex | mason-bially/aoc-2021 | 866ffc7e85f690c2ad9195da2304bfb515819023 | [
"MIT"
] | null | null | null | Code.require_file("../util/util.ex", __DIR__)
defmodule Day04 do
def parse_draw(line) do
String.split(line, ",", trim: true)
end
def parse_boardline(line) do
String.split(line, " ", trim: true)
end
def parse_board(lines) do
lines
|> Enum.map(&parse_boardline/1)
end
def parse_bingo(list... | 25.614286 | 102 | 0.579476 |
9382bada61e21dd5d84e7619fd737fb8f468fe4f | 1,511 | exs | Elixir | config/dev.exs | dwarvesf/changelog.com | 37019263b71616a21887ff67bbfdda1c6ac05979 | [
"MIT"
] | null | null | null | config/dev.exs | dwarvesf/changelog.com | 37019263b71616a21887ff67bbfdda1c6ac05979 | [
"MIT"
] | null | null | null | config/dev.exs | dwarvesf/changelog.com | 37019263b71616a21887ff67bbfdda1c6ac05979 | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :changelog, ChangelogWeb.Endpoint,
http: [port... | 30.836735 | 92 | 0.710788 |
9382bb58d566b63f045063933f737ba4066db53f | 289 | ex | Elixir | test/test_handlers/data.ex | maxneuvians/pique | 1f153d98e18cf58736abadf6efa73386eedb077c | [
"MIT"
] | 13 | 2020-03-02T03:30:04.000Z | 2022-02-21T10:29:59.000Z | test/test_handlers/data.ex | maxneuvians/pique | 1f153d98e18cf58736abadf6efa73386eedb077c | [
"MIT"
] | null | null | null | test/test_handlers/data.ex | maxneuvians/pique | 1f153d98e18cf58736abadf6efa73386eedb077c | [
"MIT"
] | null | null | null | defmodule Pique.TestHandlers.DataFail do
@behaviour Pique.Behaviours.Handler
def handle(_state) do
{:error, "Failed to pass DATA handler"}
end
end
defmodule Pique.TestHandlers.DataPass do
@behaviour Pique.Behaviours.Handler
def handle(state) do
{:ok, state}
end
end
| 18.0625 | 43 | 0.740484 |
9382c2b80fbe0fc7fd118ad1cf55efbacccde929 | 4,939 | ex | Elixir | lib/bonny_plug/webhook_handler.ex | ufirstgroup/bonny_plug | 4f2b49fd6d3db245745a9b1073be7328721cdb53 | [
"MIT"
] | 6 | 2020-11-09T15:02:45.000Z | 2021-04-17T12:50:25.000Z | lib/bonny_plug/webhook_handler.ex | ufirstgroup/bonny_plug | 4f2b49fd6d3db245745a9b1073be7328721cdb53 | [
"MIT"
] | 44 | 2020-12-14T06:55:48.000Z | 2022-03-28T02:04:08.000Z | lib/bonny_plug/webhook_handler.ex | ufirstgroup/bonny_plug | 4f2b49fd6d3db245745a9b1073be7328721cdb53 | [
"MIT"
] | null | null | null | defmodule BonnyPlug.WebhookHandler do
@moduledoc """
This module dispatches the admission webhook requests to the handlers. You can `use` this module in your webhook
handler to connect it to the Plug.
## Options
When `use`-ing this module, you have to tell it about the resource you want to act upon:
### ... | 36.316176 | 215 | 0.694473 |
9382cc985cdc01c18563229441ab3798e3a798dd | 864 | ex | Elixir | lib/hello/application.ex | youknowcast/aiit_sp_challenge4 | a5811675b77f4c496c9456a74e986ba1cfd8ef2f | [
"MIT"
] | 4 | 2019-04-07T17:43:10.000Z | 2020-07-07T21:32:44.000Z | lib/hello/application.ex | youknowcast/aiit_sp_challenge4 | a5811675b77f4c496c9456a74e986ba1cfd8ef2f | [
"MIT"
] | 10 | 2020-07-17T03:55:57.000Z | 2022-01-09T18:33:29.000Z | lib/hello/application.ex | youknowcast/aiit_sp_challenge4 | a5811675b77f4c496c9456a74e986ba1cfd8ef2f | [
"MIT"
] | 3 | 2019-09-09T15:21:41.000Z | 2020-07-07T21:35:07.000Z | defmodule Hello.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Start the endpoint when the application starts
... | 28.8 | 64 | 0.716435 |
9382f6b5a5f21b9252e3163be614265faea9fb54 | 344 | exs | Elixir | test/ble_live_sample_web/live/page_live_test.exs | khamada611/ble_live_sample | 058fa90048e5ef474f9185d370e7e3202e649041 | [
"Apache-2.0"
] | 4 | 2019-04-06T15:36:48.000Z | 2019-10-20T05:55:10.000Z | test/ble_live_sample_web/live/page_live_test.exs | khamada611/ble_live_sample | 058fa90048e5ef474f9185d370e7e3202e649041 | [
"Apache-2.0"
] | null | null | null | test/ble_live_sample_web/live/page_live_test.exs | khamada611/ble_live_sample | 058fa90048e5ef474f9185d370e7e3202e649041 | [
"Apache-2.0"
] | 1 | 2021-05-04T10:59:57.000Z | 2021-05-04T10:59:57.000Z | defmodule BleLiveSampleWeb.PageLiveTest do
use BleLiveSampleWeb.ConnCase
import Phoenix.LiveViewTest
test "disconnected and connected render", %{conn: conn} do
{:ok, page_live, disconnected_html} = live(conn, "/")
assert disconnected_html =~ "Welcome to Phoenix!"
assert render(page_live) =~ "Welcome... | 28.666667 | 60 | 0.735465 |
938300744906a4c58c6835202749982e91afa1fd | 296 | exs | Elixir | priv/repo/migrations/20180105152248_add_lobby_stage.exs | octosteve/remote_retro | 3385b0db3c2daab934ce12a2f7642a5f10ac5147 | [
"MIT"
] | 523 | 2017-03-15T15:21:11.000Z | 2022-03-14T03:04:18.000Z | priv/repo/migrations/20180105152248_add_lobby_stage.exs | octosteve/remote_retro | 3385b0db3c2daab934ce12a2f7642a5f10ac5147 | [
"MIT"
] | 524 | 2017-03-16T18:31:09.000Z | 2022-02-26T10:02:06.000Z | priv/repo/migrations/20180105152248_add_lobby_stage.exs | octosteve/remote_retro | 3385b0db3c2daab934ce12a2f7642a5f10ac5147 | [
"MIT"
] | 60 | 2017-05-01T18:02:28.000Z | 2022-03-04T21:04:56.000Z | defmodule RemoteRetro.Repo.Migrations.AddLobbyStage do
use Ecto.Migration
def up do
alter table(:retros) do
modify :stage, :string, default: "lobby"
end
end
def down do
alter table(:retros) do
modify :stage, :string, default: "prime-directive"
end
end
end
| 18.5 | 56 | 0.672297 |
9383072892fafac759ec5a823e955deec5bf3de0 | 381 | ex | Elixir | lib/ttrss/client.ex | svistoi/ttrss-broadway | a606a7cd64356cb25480f87b3dd8cb51b4e1c7fa | [
"MIT"
] | null | null | null | lib/ttrss/client.ex | svistoi/ttrss-broadway | a606a7cd64356cb25480f87b3dd8cb51b4e1c7fa | [
"MIT"
] | null | null | null | lib/ttrss/client.ex | svistoi/ttrss-broadway | a606a7cd64356cb25480f87b3dd8cb51b4e1c7fa | [
"MIT"
] | null | null | null | defmodule TTRSS.Client do
@moduledoc false
@client Application.compile_env(:ttrss_broadway, :ttrss_client, TTRSS.HTTPClient)
defdelegate login(api_url, user, pass), to: @client
defdelegate get_all_unread_articles(api_url, sid), to: @client
defdelegate mark_article_read(articles, api_url, sid), to: @client
... | 34.636364 | 83 | 0.782152 |
93831866f46c9a0158abe90556663d349b003fd0 | 2,522 | ex | Elixir | programming/elixir/conduit/test/support/fixture.ex | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | programming/elixir/conduit/test/support/fixture.ex | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | programming/elixir/conduit/test/support/fixture.ex | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | defmodule Conduit.Fixture do
import Conduit.Factory
alias Conduit.{Accounts,Blog}
def register_user(_context) do
{:ok, user} = fixture(:user)
[
user: user,
]
end
def create_author(%{user: user}) do
{:ok, author} = fixture(:author, user_uuid: user.uuid)
[
author: author,
... | 21.741379 | 142 | 0.634021 |
93831e10d84c63f63f1a0b93b023af37b0998ad5 | 678 | exs | Elixir | mix.exs | philals/elixero | fd75fe4a6f0a93b1d2ff94adbb307d20f014d458 | [
"MIT"
] | 84 | 2016-11-09T01:15:17.000Z | 2022-01-06T02:55:35.000Z | mix.exs | philals/elixero | fd75fe4a6f0a93b1d2ff94adbb307d20f014d458 | [
"MIT"
] | 14 | 2017-03-10T04:16:07.000Z | 2021-11-10T16:39:19.000Z | mix.exs | philals/elixero | fd75fe4a6f0a93b1d2ff94adbb307d20f014d458 | [
"MIT"
] | 18 | 2017-03-11T21:12:15.000Z | 2022-02-22T20:07:10.000Z | defmodule EliXero.Mixfile do
use Mix.Project
def project do
[app: :elixero,
version: "0.1.1",
elixir: "~> 1.3",
description: description(),
package: package(),
deps: deps()]
end
def application do
[applications: [:logger, :httpoison]]
end
defp deps do
[
{:httpoi... | 16.95 | 67 | 0.522124 |
93833df251a4a0100804f5d4678d197b920cee29 | 298 | exs | Elixir | test/elixir_performance_tool_test.exs | tubone24/elixir_performance_tool | d7d8bb44b276ed349c4c3f3d188d15111aabbee0 | [
"MIT"
] | null | null | null | test/elixir_performance_tool_test.exs | tubone24/elixir_performance_tool | d7d8bb44b276ed349c4c3f3d188d15111aabbee0 | [
"MIT"
] | null | null | null | test/elixir_performance_tool_test.exs | tubone24/elixir_performance_tool | d7d8bb44b276ed349c4c3f3d188d15111aabbee0 | [
"MIT"
] | null | null | null | defmodule ElixirPerformanceToolTest do
use ExUnit.Case
# doctest ElixirPerformanceTool
test "convert imagefile to base64" do
image = File.read!("./test.png")
encoded_png = :base64.encode(image)
assert ElixirPerformanceTool.create_base64png("./test.png") == encoded_png
end
end
| 27.090909 | 78 | 0.744966 |
93834172e993fca4d3ce62dcad02d432fd9e2511 | 54 | exs | Elixir | test/test_helper.exs | nroi/jerry | 77b7e1371f5323a2e8956d58e7a16e458d2c6170 | [
"MIT"
] | 1 | 2018-01-25T22:43:19.000Z | 2018-01-25T22:43:19.000Z | test/test_helper.exs | nroi/jerry | 77b7e1371f5323a2e8956d58e7a16e458d2c6170 | [
"MIT"
] | 6 | 2017-09-17T11:33:24.000Z | 2017-10-08T21:16:26.000Z | test/test_helper.exs | nroi/jerry | 77b7e1371f5323a2e8956d58e7a16e458d2c6170 | [
"MIT"
] | null | null | null | ExUnit.start()
ExUnit.configure exclude: [wip: true]
| 18 | 38 | 0.740741 |
93834ab472e77d92367b969febe474ef3f467f5d | 63 | exs | Elixir | config/dev.exs | a6cexz/eprox | e5d6d95603bca89eac123d6ccf40acfc68cfb493 | [
"MIT"
] | null | null | null | config/dev.exs | a6cexz/eprox | e5d6d95603bca89eac123d6ccf40acfc68cfb493 | [
"MIT"
] | null | null | null | config/dev.exs | a6cexz/eprox | e5d6d95603bca89eac123d6ccf40acfc68cfb493 | [
"MIT"
] | null | null | null | use Mix.Config
config :eprox, route_table: "priv/routes.json"
| 15.75 | 46 | 0.761905 |
93839be5642c56c30b58a1926fb38c551e695e74 | 3,755 | exs | Elixir | test/phone/e_countries/es_test.exs | ajmath/phone | 0c7c7033ea93d028d3bd2a9e445d3aa93a6bc2fa | [
"Apache-2.0"
] | null | null | null | test/phone/e_countries/es_test.exs | ajmath/phone | 0c7c7033ea93d028d3bd2a9e445d3aa93a6bc2fa | [
"Apache-2.0"
] | null | null | null | test/phone/e_countries/es_test.exs | ajmath/phone | 0c7c7033ea93d028d3bd2a9e445d3aa93a6bc2fa | [
"Apache-2.0"
] | null | null | null | defmodule Phone.ESTest do
use ExUnit.Case, async: true
main_module = Phone.ES
all_modules = [
Phone.ES.A,
Phone.ES.AB,
Phone.ES.AL,
Phone.ES.AV,
Phone.ES.B,
Phone.ES.BA,
Phone.ES.BI,
Phone.ES.BU,
Phone.ES.C,
Phone.ES.CA,
Phone.ES.CC,
Phone.ES.CO,
Phone.ES.CR,
... | 28.44697 | 87 | 0.623968 |
93839f7241d54d95d7a95689eacc3bec3b7123bf | 1,943 | exs | Elixir | clients/iam/mix.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/iam/mix.exs | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/iam/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... | 29 | 242 | 0.660834 |
9383e89fef7ceb4f6e1e2ad86d07209e6be4144c | 529 | ex | Elixir | lib/edgedb/protocol/codecs/builtin/null.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | lib/edgedb/protocol/codecs/builtin/null.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | lib/edgedb/protocol/codecs/builtin/null.ex | f0lio/edgedb-elixir | b285bd8037b0b951aabfa1d1733889880f8bfd66 | [
"MIT"
] | null | null | null | defmodule EdgeDB.Protocol.Codecs.Builtin.Null do
@moduledoc false
use EdgeDB.Protocol.Codec
alias EdgeDB.Protocol.Datatypes
defbuiltinscalarcodec(
type_id: Datatypes.UUID.from_string("00000000-0000-0000-0000-000000000000"),
type: nil,
calculate_size: false
)
@impl EdgeDB.Protocol.Codec
def... | 22.041667 | 80 | 0.746692 |
9383fc7d6860f68dd1045e5b59b7e5239e7771af | 1,697 | ex | Elixir | lib/sunshines_battleacademy/web/endpoint.ex | djdduty/sunshines_battleacademy | bcc085a3a6a519fc1591d00a39783523644f87a0 | [
"Apache-2.0"
] | null | null | null | lib/sunshines_battleacademy/web/endpoint.ex | djdduty/sunshines_battleacademy | bcc085a3a6a519fc1591d00a39783523644f87a0 | [
"Apache-2.0"
] | null | null | null | lib/sunshines_battleacademy/web/endpoint.ex | djdduty/sunshines_battleacademy | bcc085a3a6a519fc1591d00a39783523644f87a0 | [
"Apache-2.0"
] | null | null | null | defmodule SunshinesBattleacademy.Web.Endpoint do
use Phoenix.Endpoint, otp_app: :sunshines_battleacademy
socket "/socket", SunshinesBattleacademy.Web.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying ... | 30.854545 | 93 | 0.73188 |
9384027128a3f4f5dff2374cd3f1a0c1c1ebc203 | 330 | exs | Elixir | test/key_info_test.exs | danpantry/ueberauth_saml | 03f094bd9190fc3bce6cfbf84e78da9d6ab2d7d3 | [
"MIT"
] | 9 | 2017-06-29T00:03:42.000Z | 2021-06-22T14:17:37.000Z | test/key_info_test.exs | danpantry/ueberauth_saml | 03f094bd9190fc3bce6cfbf84e78da9d6ab2d7d3 | [
"MIT"
] | 4 | 2017-06-29T00:16:18.000Z | 2018-06-19T03:49:08.000Z | test/key_info_test.exs | danpantry/ueberauth_saml | 03f094bd9190fc3bce6cfbf84e78da9d6ab2d7d3 | [
"MIT"
] | 6 | 2018-01-16T08:57:57.000Z | 2019-11-08T17:03:16.000Z | defmodule SAML.KeyInfoTest do
use ExUnit.Case
alias SAML.KeyInfo
test "encode to xml" do
xml = File.read!("./test/fixtures/x509_cert.pem")
|> KeyInfo.init
|> KeyInfo.to_xml
|> String.replace("\t", "")
|> String.replace("\n", "")
assert xml == File.read!("./test/fixtures/key_info.xml")
... | 22 | 60 | 0.621212 |
9384107978e70b107186aa7b4bbb8b6f77e7e13e | 264 | ex | Elixir | backend/lib/backend/repo.ex | ericgroom/gatorgoods | c78af60f463c6c8c6762101a2d8e7102d43bd804 | [
"MIT"
] | 3 | 2018-03-16T06:26:39.000Z | 2019-12-17T19:30:24.000Z | backend/lib/backend/repo.ex | s6o/elm-msgpack | 71e095eed28ae9803be6cb22f7ccc9f82d717c3d | [
"MIT"
] | 9 | 2020-02-12T00:40:03.000Z | 2021-12-09T01:11:33.000Z | backend/lib/backend/repo.ex | s6o/elm-msgpack | 71e095eed28ae9803be6cb22f7ccc9f82d717c3d | [
"MIT"
] | null | null | null | defmodule Backend.Repo do
use Ecto.Repo, otp_app: :backend
@doc """
Dynamically loads the repository url from the
DATABASE_URL environment variable.
"""
def init(_, opts) do
{:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))}
end
end
| 22 | 66 | 0.69697 |
938439f50081569851dbaea21028ad6a31feb595 | 1,266 | ex | Elixir | lib/sanbase/alerts.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase/alerts.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase/alerts.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Application.Alerts do
import Sanbase.ApplicationUtils
def init(), do: :ok
@doc ~s"""
Return the children and options that will be started in the scrapers container.
Along with these children all children from `Sanbase.Application.common_children/0`
will be started, too.
"""
def child... | 26.375 | 85 | 0.6406 |
93843a96bca957e29b019749e67957e16d30444a | 471 | ex | Elixir | lib/election/voting/voter.ex | manojsamanta/election | e4eca4f2813011954d08eb04d057f84a9f6bda90 | [
"MIT"
] | null | null | null | lib/election/voting/voter.ex | manojsamanta/election | e4eca4f2813011954d08eb04d057f84a9f6bda90 | [
"MIT"
] | null | null | null | lib/election/voting/voter.ex | manojsamanta/election | e4eca4f2813011954d08eb04d057f84a9f6bda90 | [
"MIT"
] | null | null | null | defmodule Election.Voting.Voter do
use Ecto.Schema
import Ecto.Changeset
schema "voters" do
field :first, :string
field :middle, :string
field :last, :string
field :street, :string
field :city, :string
field :county, :string
field :precinct, :string
field :v_2014, :boolean, defaul... | 24.789474 | 43 | 0.675159 |
93844982562407f9cb7471973bbc11b74e37c45e | 2,944 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_document_revision.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_document_revision.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta3_document_revision.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... | 40.328767 | 233 | 0.715353 |
93846fd6260a29c2616bea923f005d7d873f3161 | 1,035 | ex | Elixir | lib/changelog_web/views/post_view.ex | d-m-u/changelog.com | bb0d6ac6d29a3d64dbeb44892f9a8a1ff3ba6325 | [
"MIT"
] | 2,599 | 2016-10-25T15:02:53.000Z | 2022-03-26T02:34:42.000Z | lib/changelog_web/views/post_view.ex | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | 253 | 2016-10-25T20:29:24.000Z | 2022-03-29T21:52:36.000Z | lib/changelog_web/views/post_view.ex | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | 298 | 2016-10-25T15:18:31.000Z | 2022-01-18T21:25:52.000Z | defmodule ChangelogWeb.PostView do
use ChangelogWeb, :public_view
alias Changelog.{Files, ListKit}
alias ChangelogWeb.{Endpoint, NewsItemView, PersonView}
def admin_edit_link(conn, %{admin: true}, post) do
path = Routes.admin_post_path(conn, :edit, post, next: SharedHelpers.current_path(conn))
link("[... | 27.972973 | 92 | 0.681159 |
9384814516f89fb00b303234dad63467cf1bc7c1 | 2,003 | ex | Elixir | lib/membrane/rtcp/packet.ex | simoexpo/membrane_rtp_plugin | 925053eb6ad0befbfe79ab1dad51e40f3b68ae69 | [
"Apache-2.0"
] | null | null | null | lib/membrane/rtcp/packet.ex | simoexpo/membrane_rtp_plugin | 925053eb6ad0befbfe79ab1dad51e40f3b68ae69 | [
"Apache-2.0"
] | null | null | null | lib/membrane/rtcp/packet.ex | simoexpo/membrane_rtp_plugin | 925053eb6ad0befbfe79ab1dad51e40f3b68ae69 | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.RTCP.Packet do
@moduledoc """
Functions common to all RTCP Packets
"""
alias Membrane.RTCP.{
AppPacket,
ByePacket,
Header,
ReceiverReportPacket,
SdesPacket,
SenderReportPacket
}
@type t ::
AppPacket.t()
| ByePacket.t()
| ReceiverRepo... | 30.815385 | 88 | 0.643535 |
938498d3ea718b1614fb486ccc77e0ea3c6e84aa | 29,635 | ex | Elixir | lib/baiji/service/data_pipeline.ex | wrren/baiji | d3d9e1cad875c6e1ddb47bf52511c3a07321764a | [
"MIT"
] | null | null | null | lib/baiji/service/data_pipeline.ex | wrren/baiji | d3d9e1cad875c6e1ddb47bf52511c3a07321764a | [
"MIT"
] | null | null | null | lib/baiji/service/data_pipeline.ex | wrren/baiji | d3d9e1cad875c6e1ddb47bf52511c3a07321764a | [
"MIT"
] | null | null | null | defmodule Baiji.DataPipeline do
@moduledoc """
AWS Data Pipeline configures and manages a data-driven workflow called a
pipeline. AWS Data Pipeline handles the details of scheduling and ensuring
that data dependencies are met so that your application can focus on
processing the data.
AWS Data Pipeline pr... | 67.505695 | 13,328 | 0.590181 |
9384c0e50762f545bf664f10a8d43c3290439972 | 216 | exs | Elixir | farmbot_core/priv/config/migrations/20171130004447_add_gpio_registry.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | 1 | 2021-08-23T13:36:14.000Z | 2021-08-23T13:36:14.000Z | farmbot_core/priv/config/migrations/20171130004447_add_gpio_registry.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | farmbot_core/priv/config/migrations/20171130004447_add_gpio_registry.exs | adamswsk/farmbot_os | d177d3b74888c1e7bcbf8f8595818708ee97f73b | [
"MIT"
] | null | null | null | defmodule FarmbotCore.Config.Repo.Migrations.AddGpioRegistry do
use Ecto.Migration
def change do
create table(:gpio_registry) do
add(:pin, :integer)
add(:sequence_id, :integer)
end
end
end
| 19.636364 | 63 | 0.708333 |
9384da766f337c4ff874dbc25cc2511cad922e4d | 183 | exs | Elixir | test/redis_helper.exs | securingsincity/molasses | a9758184c026fa69038a204c113934506929e9e7 | [
"MIT"
] | 76 | 2016-12-06T17:56:26.000Z | 2022-01-11T21:17:56.000Z | test/redis_helper.exs | securingsincity/molasses | a9758184c026fa69038a204c113934506929e9e7 | [
"MIT"
] | 13 | 2017-01-05T10:22:51.000Z | 2017-02-05T03:05:25.000Z | test/redis_helper.exs | securingsincity/molasses | a9758184c026fa69038a204c113934506929e9e7 | [
"MIT"
] | 4 | 2017-01-05T10:10:17.000Z | 2021-05-31T05:22:11.000Z | Application.put_env(:exredis,:host, "127.0.0.1")
Application.put_env(:exredis,:port, 6379)
Application.put_env(:exredis,:password, "")
Application.put_env(:molasses,:adapter, "redis") | 45.75 | 48 | 0.759563 |
9385324dec3c50288e96ec7a3295ef9a8d8dafb7 | 1,233 | ex | Elixir | lib/webbkoll_web/views/error_helpers.ex | vaginessa/webbkoll | 9a0be0cdc2eaeac9e577589b35a63a81f68655d7 | [
"MIT"
] | null | null | null | lib/webbkoll_web/views/error_helpers.ex | vaginessa/webbkoll | 9a0be0cdc2eaeac9e577589b35a63a81f68655d7 | [
"MIT"
] | null | null | null | lib/webbkoll_web/views/error_helpers.ex | vaginessa/webbkoll | 9a0be0cdc2eaeac9e577589b35a63a81f68655d7 | [
"MIT"
] | null | null | null | defmodule WebbkollWeb.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
if error = form.errors[field] do
content_tag(:span, translate_error(erro... | 30.073171 | 74 | 0.668289 |
93853597a8e49e453c8663f8a7ace5cfce42fc27 | 1,546 | ex | Elixir | lib/portal_web/views/error_helpers.ex | anirudhsama/phoenix-starter | caa0a71ce087e42d389ee1cdccd9ff7b74922571 | [
"MIT"
] | null | null | null | lib/portal_web/views/error_helpers.ex | anirudhsama/phoenix-starter | caa0a71ce087e42d389ee1cdccd9ff7b74922571 | [
"MIT"
] | null | null | null | lib/portal_web/views/error_helpers.ex | anirudhsama/phoenix-starter | caa0a71ce087e42d389ee1cdccd9ff7b74922571 | [
"MIT"
] | null | null | null | defmodule PortalWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag(:... | 32.208333 | 75 | 0.664942 |
93853f2066b40b7defbb15f7491aebba5e2e2766 | 15,261 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/targeting_templates.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/targeting_templates.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/targeting_templates.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... | 42.041322 | 480 | 0.627416 |
9385478f94c80b985e723d644b412d3348399666 | 5,516 | ex | Elixir | lib/ankh/http2/frame.ex | lucacorti/http2 | d78217c1e4709976da7be7d914ffce7e03ec84d2 | [
"MIT"
] | 18 | 2016-09-06T20:35:42.000Z | 2020-04-28T12:51:47.000Z | lib/ankh/http2/frame.ex | lucacorti/http2 | d78217c1e4709976da7be7d914ffce7e03ec84d2 | [
"MIT"
] | 16 | 2017-11-26T21:59:41.000Z | 2020-08-17T11:27:56.000Z | lib/ankh/http2/frame.ex | lucacorti/http2 | d78217c1e4709976da7be7d914ffce7e03ec84d2 | [
"MIT"
] | 1 | 2020-04-24T07:53:00.000Z | 2020-04-24T07:53:00.000Z | defmodule Ankh.HTTP2.Frame do
@moduledoc """
HTTP/2 frame struct
The __using__ macro injects the frame struct needed by `Ankh.HTTP2.Frame`.
"""
require Logger
alias Ankh.HTTP2.Frame.Encodable
@typedoc "Struct injected by the `Ankh.HTTP2.Frame` __using__ macro."
@type t :: struct()
@typedoc "Frame... | 30.988764 | 97 | 0.598985 |
93855bac682c855c8daf48571acc28d2f0ff75b0 | 8,763 | exs | Elixir | test/plotex_test.exs | elcritch/plotter | ab3947fd17bd117f6185a4790c63e0c304bd1c6d | [
"Apache-2.0"
] | 75 | 2019-06-09T07:08:45.000Z | 2022-03-23T16:11:55.000Z | test/plotex_test.exs | elcritch/plotter | ab3947fd17bd117f6185a4790c63e0c304bd1c6d | [
"Apache-2.0"
] | 6 | 2020-01-12T08:40:01.000Z | 2021-08-02T20:55:36.000Z | test/plotex_test.exs | elcritch/plotter | ab3947fd17bd117f6185a4790c63e0c304bd1c6d | [
"Apache-2.0"
] | 5 | 2020-03-30T20:38:57.000Z | 2021-04-02T15:52:28.000Z | defmodule PlotexTest do
require Logger
use ExUnit.Case
alias Plotex.Axis
alias Plotex.Axis.Units
alias Plotex.Output.Options
alias Plotex.Output.Formatter
# @default_css
doctest Plotex
test "simple plot" do
xdata = 1..4 |> Enum.map(& &1)
ydata = xdata |> Enum.map(&:math.sin(&1 / 10.0))
... | 23.305851 | 96 | 0.516946 |
9385879b113ef269057452f26e6318fc1a6c0d7c | 773 | ex | Elixir | lib/etl/type/float.ex | bbalser/etl | 24791047ca0ce8066ec73c4196e54e954b1a1471 | [
"Apache-2.0"
] | 1 | 2020-06-15T22:41:37.000Z | 2020-06-15T22:41:37.000Z | lib/etl/type/float.ex | inhindsight/etl | 24791047ca0ce8066ec73c4196e54e954b1a1471 | [
"Apache-2.0"
] | 1 | 2020-09-11T12:24:12.000Z | 2020-09-12T11:14:27.000Z | lib/etl/type/float.ex | bbalser/etl | 24791047ca0ce8066ec73c4196e54e954b1a1471 | [
"Apache-2.0"
] | null | null | null | defmodule Etl.Type.Float do
@type t :: %__MODULE__{
name: String.t(),
description: String.t(),
nils: boolean()
}
defstruct name: nil, description: nil, nils: true
defimpl Etl.Type do
import Brex.Result.Base, only: [ok: 1, error: 1]
def name(%{name: name}) do
... | 20.891892 | 66 | 0.583441 |
93858b87d268cf1097f75ddc71233eea44130916 | 1,157 | ex | Elixir | lib/shenu/parser.ex | jsdelivrbot/shenu | 98acf65b915b62528eccd824020e8007931ee01c | [
"MIT"
] | 3 | 2016-06-19T00:21:54.000Z | 2021-09-28T22:04:07.000Z | lib/shenu/parser.ex | jsdelivrbot/shenu | 98acf65b915b62528eccd824020e8007931ee01c | [
"MIT"
] | null | null | null | lib/shenu/parser.ex | jsdelivrbot/shenu | 98acf65b915b62528eccd824020e8007931ee01c | [
"MIT"
] | 1 | 2018-12-06T22:51:26.000Z | 2018-12-06T22:51:26.000Z | defmodule Shenu.Parser do
defstruct message_type: Shenu.Message.Text,
schema: nil
alias __MODULE__.Group
def new(message_type)
def new(message_type) when is_atom(message_type) do
new(message_type, message_type.schema())
end
def new(parsers) when is_map(parsers) do
Group.new(parsers)
... | 24.617021 | 78 | 0.665514 |
9385b4383416f82167441c7d976c1877c21cdc34 | 710 | ex | Elixir | lib/util/request.ex | starbuildr/ex_lemonway | ebd39244d0ff20968666957bcedd36ef46963dd9 | [
"MIT"
] | null | null | null | lib/util/request.ex | starbuildr/ex_lemonway | ebd39244d0ff20968666957bcedd36ef46963dd9 | [
"MIT"
] | null | null | null | lib/util/request.ex | starbuildr/ex_lemonway | ebd39244d0ff20968666957bcedd36ef46963dd9 | [
"MIT"
] | null | null | null | defmodule ExLemonway.Util.Request do
@moduledoc """
Utility wrapper for making HTTP requests.
Delegates to the configured HTTP client module.
"""
use ExLemonway.Behaviour.HttpClient
@doc """
Add default variables to payload.
"""
@spec enhance_payload(map(), nil | String.t()) :: map()
def enhance_p... | 30.869565 | 65 | 0.667606 |
9385b633c9c49037c053a6e5344ffe1a132b9629 | 480 | exs | Elixir | test/acceptance/html1/utf8_test.exs | ZeLarpMaster/earmark | 35c9661d6647059e507c0278347e21d92351c417 | [
"Apache-1.1"
] | null | null | null | test/acceptance/html1/utf8_test.exs | ZeLarpMaster/earmark | 35c9661d6647059e507c0278347e21d92351c417 | [
"Apache-1.1"
] | null | null | null | test/acceptance/html1/utf8_test.exs | ZeLarpMaster/earmark | 35c9661d6647059e507c0278347e21d92351c417 | [
"Apache-1.1"
] | null | null | null | defmodule Acceptance.Html1.Utf8Test do
use ExUnit.Case, async: true
import Support.Html1Helpers
@moduletag :html1
describe "valid rendering" do
test "pure link" do
markdown = " foo (http://test.com)… bar"
html = para([
" foo (",
{:a, ~s{href="http://test.com"},"http://test... | 24 | 59 | 0.566667 |
9385bfb730083d85d72b9d0f1121125ab448ba22 | 2,160 | ex | Elixir | clients/drive/lib/google_api/drive/v3/model/comment_list.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/model/comment_list.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/drive/lib/google_api/drive/v3/model/comment_list.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... | 40.754717 | 310 | 0.724074 |
9385d2d868ff8365dc71f10cc95cb16204f907d1 | 371 | ex | Elixir | lib/takso/sales/allocation.ex | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | null | null | null | lib/takso/sales/allocation.ex | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | null | null | null | lib/takso/sales/allocation.ex | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | null | null | null | defmodule Takso.Sales.Allocation do
use Ecto.Schema
import Ecto.Changeset
schema "allocations" do
field :status, :string
belongs_to :booking, Takso.Sales.Booking
belongs_to :taxi, Takso.Sales.Taxi
timestamps()
end
def changeset(struct, params \\ %{}) do
struct
|> cast(params, [:stat... | 19.526316 | 44 | 0.67655 |
9385d760e6a7c7214aff5769010c744a68919a6a | 501 | ex | Elixir | lib/philopets/files/images/image.ex | audacioustux/philopets | 9380416937d635d4b1f5e13fa6f8b52ee603addf | [
"blessing"
] | null | null | null | lib/philopets/files/images/image.ex | audacioustux/philopets | 9380416937d635d4b1f5e13fa6f8b52ee603addf | [
"blessing"
] | null | null | null | lib/philopets/files/images/image.ex | audacioustux/philopets | 9380416937d635d4b1f5e13fa6f8b52ee603addf | [
"blessing"
] | null | null | null | defmodule Philopets.Files.Images.Image do
use Philopets.Schema
import Ecto.Changeset
alias Philopets.Accounts.Profile
schema "images" do
field(:name, :string)
field(:size, :integer)
belongs_to(:profile, Profile)
timestamps()
end
@required_fields ~w[name size profile_id]a
@optional_fie... | 19.269231 | 56 | 0.706587 |
9385e2453eb93c8104dfe0e53ed842926457fc52 | 1,285 | ex | Elixir | phoenix_backend/lib/phoenix_backend_web/controllers/user_controller.ex | raphaklaus/opentelemetry-examples | 099fc6cf52bdd337f359530e12007050aa835b35 | [
"Apache-2.0"
] | 4 | 2020-07-12T18:39:07.000Z | 2021-04-09T12:58:54.000Z | phoenix_backend/lib/phoenix_backend_web/controllers/user_controller.ex | raphaklaus/opentelemetry-examples | 099fc6cf52bdd337f359530e12007050aa835b35 | [
"Apache-2.0"
] | 8 | 2020-06-27T22:05:24.000Z | 2022-02-16T09:23:41.000Z | phoenix_backend/lib/phoenix_backend_web/controllers/user_controller.ex | raphaklaus/opentelemetry-examples | 099fc6cf52bdd337f359530e12007050aa835b35 | [
"Apache-2.0"
] | 5 | 2020-10-27T00:59:26.000Z | 2021-11-23T17:22:23.000Z | defmodule PhoenixBackendWeb.UserController do
use PhoenixBackendWeb, :controller
alias PhoenixBackend.Accounts
alias PhoenixBackend.Accounts.User
action_fallback PhoenixBackendWeb.FallbackController
def index(conn, _params) do
users = Accounts.list_users()
render(conn, "index.json", users: users)
... | 26.22449 | 76 | 0.652918 |
9385e4522efefd8a8c7a08994fb90e1fc5925d78 | 2,082 | ex | Elixir | lib/trunk/storage.ex | kianmeng/trunk | fe09011a0a35a1abf7346912698479bc5b6b4d54 | [
"MIT"
] | null | null | null | lib/trunk/storage.ex | kianmeng/trunk | fe09011a0a35a1abf7346912698479bc5b6b4d54 | [
"MIT"
] | null | null | null | lib/trunk/storage.ex | kianmeng/trunk | fe09011a0a35a1abf7346912698479bc5b6b4d54 | [
"MIT"
] | null | null | null | defmodule Trunk.Storage do
@moduledoc """
This is a behaviour that can be implemented by any storage module to make sure it supports all required functions.
"""
@type opts :: Keyword.t()
@doc ~S"""
Save the `source_file` to the storage system on path `Path.join(directory, filename)`
- `directory` - The... | 34.7 | 149 | 0.636888 |
93861019f155b0c02d604ffb1393dac865b47e5a | 4,135 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/access_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/compute/lib/google_api/compute/v1/model/access_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/access_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... | 58.239437 | 482 | 0.721161 |
938611194cf39ad3d1fc203cfb044548b1a5e7f6 | 534 | ex | Elixir | web/models/tag_article.ex | NorifumiKawamoto/ginjyo | 8e28438db4675bb55ba090614c6834190adb61b1 | [
"MIT"
] | null | null | null | web/models/tag_article.ex | NorifumiKawamoto/ginjyo | 8e28438db4675bb55ba090614c6834190adb61b1 | [
"MIT"
] | null | null | null | web/models/tag_article.ex | NorifumiKawamoto/ginjyo | 8e28438db4675bb55ba090614c6834190adb61b1 | [
"MIT"
] | null | null | null | defmodule Ginjyo.TagArticle do
use Ginjyo.Web, :model
schema "tag_articles" do
belongs_to :tag, Ginjyo.Tag
belongs_to :article, Ginjyo.Article
timestamps
end
@required_fields ~w(tag_id article_id)
@optional_fields ~w()
@doc """
Creates a changeset based on the `model` and `params`.
If n... | 21.36 | 61 | 0.70412 |
9386bd58fb6a36c7ba40c7f431dc899dda36f247 | 201 | exs | Elixir | brains/common.exs | doawoo/elixir_rpg | 4dcd0eb717bd1d654b3e6a06be31aba4c3254fb3 | [
"MIT"
] | 23 | 2021-10-24T00:21:13.000Z | 2022-03-13T12:33:38.000Z | brains/common.exs | doawoo/elixir_rpg | 4dcd0eb717bd1d654b3e6a06be31aba4c3254fb3 | [
"MIT"
] | null | null | null | brains/common.exs | doawoo/elixir_rpg | 4dcd0eb717bd1d654b3e6a06be31aba4c3254fb3 | [
"MIT"
] | 3 | 2021-11-04T02:42:25.000Z | 2022-02-02T14:22:52.000Z | ## COMMON SCRIPT CODE
self = get_components.(entity)
player_characters = EntityStore.get_entities_with([ActionList], world)
enemies = EntityStore.get_entities_with([Enemy], world)
## END COMMON CODE
| 25.125 | 70 | 0.78607 |
9386c7a0c8980847e81aa91e0191ab814e0a4ae0 | 370 | ex | Elixir | lib/changelog_web/views/auth_view.ex | gustavoarmoa/changelog.com | e898a9979a237ae66962714821ed8633a4966f37 | [
"MIT"
] | 2,599 | 2016-10-25T15:02:53.000Z | 2022-03-26T02:34:42.000Z | lib/changelog_web/views/auth_view.ex | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | 253 | 2016-10-25T20:29:24.000Z | 2022-03-29T21:52:36.000Z | lib/changelog_web/views/auth_view.ex | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | 298 | 2016-10-25T15:18:31.000Z | 2022-01-18T21:25:52.000Z | defmodule ChangelogWeb.AuthView do
use ChangelogWeb, :public_view
alias Changelog.Person
def auth_path(conn, person) do
{:ok, encoded} = Person.encoded_auth(person)
Routes.sign_in_path(conn, :create, encoded)
end
def auth_url(conn, person) do
{:ok, encoded} = Person.encoded_auth(person)
Rou... | 23.125 | 48 | 0.724324 |
9386cab02ad8018bb888ef8696b7a7612bd8a675 | 2,231 | ex | Elixir | apps/common/lib/oauth.ex | jfis/ex-gulp | 806d305ede7df3c2b42d21c2e7b574987832c8d6 | [
"MIT"
] | null | null | null | apps/common/lib/oauth.ex | jfis/ex-gulp | 806d305ede7df3c2b42d21c2e7b574987832c8d6 | [
"MIT"
] | null | null | null | apps/common/lib/oauth.ex | jfis/ex-gulp | 806d305ede7df3c2b42d21c2e7b574987832c8d6 | [
"MIT"
] | null | null | null | defmodule Oauth do
def sign(verb, url, params, consumer_key, consumer_secret, token \\ nil, token_secret \\ nil) do
params = make_params(params, consumer_key, token)
sig = get_signature(verb, url, params, consumer_secret, token_secret)
[{"oauth_signature", sig} | params]
end
def as_header(signed_para... | 33.80303 | 98 | 0.652174 |
9386f33a108d2b7acbb164e950ec6a4a9000d806 | 179 | ex | Elixir | test/skeleton/app/user.ex | skeleton-elixir/skeleton_service | 321b000003ef60db83b1d3619aca0cfc7b3f373d | [
"MIT"
] | null | null | null | test/skeleton/app/user.ex | skeleton-elixir/skeleton_service | 321b000003ef60db83b1d3619aca0cfc7b3f373d | [
"MIT"
] | 5 | 2020-06-27T20:13:33.000Z | 2021-12-17T22:34:23.000Z | test/skeleton/app/user.ex | skeleton-elixir/skeleton_service | 321b000003ef60db83b1d3619aca0cfc7b3f373d | [
"MIT"
] | null | null | null | defmodule Skeleton.App.User do
@moduledoc false
use Skeleton.App, :schema
schema "users" do
field :name, :string
field :email, :string
timestamps()
end
end
| 13.769231 | 30 | 0.670391 |
93871f25561061983c2d3b200404a4f39a5befb3 | 629 | exs | Elixir | test/real_world_web/views/error_view_test.exs | codefordenver/new-code-for-denver-site | af6cc232c898a197601b4d37e0cd217d0503fd9b | [
"MIT"
] | 1 | 2019-09-28T05:50:46.000Z | 2019-09-28T05:50:46.000Z | test/real_world_web/views/error_view_test.exs | codefordenver/new-code-for-denver-site | af6cc232c898a197601b4d37e0cd217d0503fd9b | [
"MIT"
] | null | null | null | test/real_world_web/views/error_view_test.exs | codefordenver/new-code-for-denver-site | af6cc232c898a197601b4d37e0cd217d0503fd9b | [
"MIT"
] | null | null | null | defmodule RealWorldWeb.ErrorViewTest do
use RealWorldWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.json" do
assert render(RealWorldWeb.ErrorView, "404.json", []) ==
%{errors: %{detail: "Page not found"}}
end
... | 28.590909 | 66 | 0.659777 |
938727f213ad56044a0d09deae0269f96f1e91d9 | 1,365 | exs | Elixir | mix.exs | szTheory/plug-session-memcached | 7aab2a0930b6d1fd98ef8e71bdbdb02c3ee93400 | [
"MIT"
] | 14 | 2015-04-13T23:23:31.000Z | 2020-01-26T06:14:01.000Z | mix.exs | szTheory/plug-session-memcached | 7aab2a0930b6d1fd98ef8e71bdbdb02c3ee93400 | [
"MIT"
] | 10 | 2015-12-28T23:52:44.000Z | 2017-08-09T08:46:55.000Z | mix.exs | szTheory/plug-session-memcached | 7aab2a0930b6d1fd98ef8e71bdbdb02c3ee93400 | [
"MIT"
] | 13 | 2015-08-28T10:35:59.000Z | 2019-12-18T03:43:57.000Z | defmodule PlugSessionMemcached.Mixfile do
use Mix.Project
def project do
[app: :plug_session_memcached,
version: "0.3.4",
elixir: "~> 1.0",
package: package,
description: description,
deps: deps]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for m... | 23.534483 | 77 | 0.589011 |
9387372fe28fd35bdefe5a87309ebff28111c6fe | 549 | ex | Elixir | templates/phoenix/lib/web/gates/initial_gate.ex | Nebo15/enew | 9a6ff3993b3be38943023df8d9f6e6a23dcbd8e2 | [
"MIT"
] | 34 | 2016-08-13T17:05:32.000Z | 2019-10-21T07:11:21.000Z | templates/phoenix/lib/web/gates/initial_gate.ex | Nebo15/enew | 9a6ff3993b3be38943023df8d9f6e6a23dcbd8e2 | [
"MIT"
] | 7 | 2016-08-18T11:33:44.000Z | 2017-10-03T12:28:27.000Z | templates/phoenix/lib/web/gates/initial_gate.ex | Nebo15/enew | 9a6ff3993b3be38943023df8d9f6e6a23dcbd8e2 | [
"MIT"
] | 6 | 2016-10-12T08:57:25.000Z | 2021-05-26T04:18:21.000Z | defmodule <%= @module_name %>.Web.InitialGate do
@moduledoc """
Sample compatibility layer for generated application.
See https://github.com/Nebo15/multiverse for more information.
"""
@behaviour MultiverseGate
require Logger
def mutate_request(%Plug.Conn{} = conn) do
Logger.debug "Multiverse: Initia... | 26.142857 | 64 | 0.71949 |
93873798dc6dd74cb7e98cef1be3283881c56029 | 1,487 | ex | Elixir | lib/lle_cymraeg_web/controllers/business_type_controller.ex | danielcavanagh/lle-cymraeg | 01aebc939254e0dd76427cb460722b830c232e82 | [
"MIT"
] | null | null | null | lib/lle_cymraeg_web/controllers/business_type_controller.ex | danielcavanagh/lle-cymraeg | 01aebc939254e0dd76427cb460722b830c232e82 | [
"MIT"
] | null | null | null | lib/lle_cymraeg_web/controllers/business_type_controller.ex | danielcavanagh/lle-cymraeg | 01aebc939254e0dd76427cb460722b830c232e82 | [
"MIT"
] | null | null | null | defmodule LleCymraegWeb.BusinessTypeController do
use LleCymraegWeb, :controller
alias LleCymraeg.BusinessTypes
alias LleCymraeg.BusinessTypes.BusinessType
action_fallback LleCymraegWeb.FallbackController
def index(conn, _params) do
business_types = BusinessTypes.list_business_types()
render(conn, ... | 34.581395 | 125 | 0.728312 |
93873802788ab55c58719cd2c55c18ca0dfd2096 | 148 | exs | Elixir | demoapp/test/helloworld_test.exs | OliverLeitner/elixirdemo | 4d2f9e4908974e99026dd36df2c23a426ee972b7 | [
"Apache-2.0"
] | null | null | null | demoapp/test/helloworld_test.exs | OliverLeitner/elixirdemo | 4d2f9e4908974e99026dd36df2c23a426ee972b7 | [
"Apache-2.0"
] | null | null | null | demoapp/test/helloworld_test.exs | OliverLeitner/elixirdemo | 4d2f9e4908974e99026dd36df2c23a426ee972b7 | [
"Apache-2.0"
] | null | null | null | defmodule HelloappTest do
use ExUnit.Case
doctest Helloapp
test "greets the world again" do
assert Helloapp.sample() == :hello
end
end
| 16.444444 | 38 | 0.722973 |
93875dbcfb2dc843fa553714bc5864ea718f330b | 1,727 | ex | Elixir | lib/oli_web/live/system_message_live/show_view.ex | candert1/oli-torus | b7408f7d7c04cc3e9cf537873d98c3a586ec3a66 | [
"MIT"
] | null | null | null | lib/oli_web/live/system_message_live/show_view.ex | candert1/oli-torus | b7408f7d7c04cc3e9cf537873d98c3a586ec3a66 | [
"MIT"
] | null | null | null | lib/oli_web/live/system_message_live/show_view.ex | candert1/oli-torus | b7408f7d7c04cc3e9cf537873d98c3a586ec3a66 | [
"MIT"
] | null | null | null | defmodule OliWeb.SystemMessageLive.ShowView do
use Surface.LiveView, layout: {OliWeb.LayoutView, "live.html"}
alias Oli.Notifications
alias Oli.Notifications.PubSub
data messages, :list, default: []
def mount(
_params,
session,
socket
) do
PubSub.subscribe_to_system_messag... | 28.783333 | 189 | 0.683845 |
93878689bd7240f9d266ef03416c78fcac5d24c9 | 78 | exs | Elixir | apps/meeple_web/test/meeple_web/views/page_view_test.exs | grrrisu/meeple | 428762a58a94306a6643b09c08d72fb2883a0309 | [
"MIT"
] | null | null | null | apps/meeple_web/test/meeple_web/views/page_view_test.exs | grrrisu/meeple | 428762a58a94306a6643b09c08d72fb2883a0309 | [
"MIT"
] | 13 | 2021-12-24T23:44:10.000Z | 2022-03-04T20:56:28.000Z | apps/meeple_web/test/meeple_web/views/page_view_test.exs | grrrisu/meeple | 428762a58a94306a6643b09c08d72fb2883a0309 | [
"MIT"
] | null | null | null | defmodule MeepleWeb.PageViewTest do
use MeepleWeb.ConnCase, async: true
end
| 19.5 | 37 | 0.820513 |
93878c5d7f8a9ac6556736b4d67b83f1e33082c2 | 4,875 | ex | Elixir | lib/oban/config.ex | doorgan/oban | b77f3d577c00f4107d42efe62c2c640c5231efbc | [
"Apache-2.0"
] | null | null | null | lib/oban/config.ex | doorgan/oban | b77f3d577c00f4107d42efe62c2c640c5231efbc | [
"Apache-2.0"
] | null | null | null | lib/oban/config.ex | doorgan/oban | b77f3d577c00f4107d42efe62c2c640c5231efbc | [
"Apache-2.0"
] | null | null | null | defmodule Oban.Config do
@moduledoc false
use Agent
@type prune :: :disabled | {:maxlen, pos_integer()} | {:maxage, pos_integer()}
@type t :: %__MODULE__{
name: atom(),
node: binary(),
poll_interval: pos_integer(),
prefix: binary(),
prune: prune(),
... | 29.36747 | 91 | 0.629333 |
938791890dc98c56a8793edecfb07b8f40b97880 | 493 | ex | Elixir | lib/admin/characters.ex | skylerparr/playfab_ex | b6a049511bc3466cea5959797425bffc099239de | [
"MIT"
] | 1 | 2021-12-21T14:22:12.000Z | 2021-12-21T14:22:12.000Z | lib/admin/characters.ex | skylerparr/playfab_ex | b6a049511bc3466cea5959797425bffc099239de | [
"MIT"
] | null | null | null | lib/admin/characters.ex | skylerparr/playfab_ex | b6a049511bc3466cea5959797425bffc099239de | [
"MIT"
] | null | null | null | defmodule PlayfabEx.Admin.Characters do
use Interface
@doc """
Completely removes all statistics for the specified character, for the current game
[online docs](https://api.playfab.com/documentation/admin/method/ResetCharacterStatistics)
"""
@spec reset_character_statistics(map()) :: {:ok, map} | {:error,... | 41.083333 | 155 | 0.768763 |
9387a687e1764729120c827057119f40b929dbb0 | 79 | exs | Elixir | test/helpers_test.exs | djquan/cryptopals-elixir | a38722a2d66c1000795b361c61a330ff44e755c6 | [
"MIT"
] | 3 | 2016-08-21T21:19:25.000Z | 2019-10-11T14:00:15.000Z | test/helpers_test.exs | djquan/cryptopals-elixir | a38722a2d66c1000795b361c61a330ff44e755c6 | [
"MIT"
] | null | null | null | test/helpers_test.exs | djquan/cryptopals-elixir | a38722a2d66c1000795b361c61a330ff44e755c6 | [
"MIT"
] | 2 | 2016-01-19T06:22:38.000Z | 2019-10-11T13:38:46.000Z | defmodule Helpers.Test do
use ExUnit.Case, async: true
doctest Helpers
end
| 15.8 | 30 | 0.772152 |
9387bdf4f51b4bffe1950f97921e0d28bae1385a | 1,111 | ex | Elixir | lib/event_store/tasks/init.ex | lorenzosinisi/eventstore | 62d83981ca4292a4f38d9413bed95974db528abe | [
"MIT"
] | null | null | null | lib/event_store/tasks/init.ex | lorenzosinisi/eventstore | 62d83981ca4292a4f38d9413bed95974db528abe | [
"MIT"
] | null | null | null | lib/event_store/tasks/init.ex | lorenzosinisi/eventstore | 62d83981ca4292a4f38d9413bed95974db528abe | [
"MIT"
] | null | null | null | defmodule EventStore.Tasks.Init do
@moduledoc """
Task to initalize the EventStore database
"""
import EventStore.Tasks.Output
alias EventStore.Storage.Initializer
@is_events_table_exists """
SELECT EXISTS (
SELECT 1
FROM information_schema.tables
WHERE table_schema = 'public'
... | 23.638298 | 81 | 0.646265 |
9387f654ca1df0c2667a85273838fd59365126e9 | 882 | ex | Elixir | apps/podder_web/lib/podder_web/application.ex | chattes/podder_umbrella | a2662a21a067fd3f0cd02b98cb63afd958c895db | [
"MIT"
] | null | null | null | apps/podder_web/lib/podder_web/application.ex | chattes/podder_umbrella | a2662a21a067fd3f0cd02b98cb63afd958c895db | [
"MIT"
] | null | null | null | apps/podder_web/lib/podder_web/application.ex | chattes/podder_umbrella | a2662a21a067fd3f0cd02b98cb63afd958c895db | [
"MIT"
] | null | null | null | defmodule PodderWeb.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Start the endpoint when the application starts
... | 29.4 | 68 | 0.722222 |
93880c1df46d1db563f41e30698d297d400387a5 | 2,604 | exs | Elixir | config/prod.exs | areski/freeswitch_realtime | aca5d07341b6e3d8a2bebab0475ba77c23f301ff | [
"MIT"
] | 14 | 2016-12-19T23:16:44.000Z | 2021-07-08T02:22:01.000Z | config/prod.exs | areski/freeswitch_realtime | aca5d07341b6e3d8a2bebab0475ba77c23f301ff | [
"MIT"
] | null | null | null | config/prod.exs | areski/freeswitch_realtime | aca5d07341b6e3d8a2bebab0475ba77c23f301ff | [
"MIT"
] | 4 | 2017-08-15T10:44:10.000Z | 2020-03-09T17:07:33.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 31.373494 | 78 | 0.735023 |
93881c173223bfb21037a76f61418086f969be63 | 390 | ex | Elixir | apps/neoscan/lib/neoscan/repo.ex | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 75 | 2017-07-23T02:45:32.000Z | 2021-12-13T11:04:17.000Z | apps/neoscan/lib/neoscan/repo.ex | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 252 | 2017-07-13T19:36:00.000Z | 2021-07-28T18:40:00.000Z | apps/neoscan/lib/neoscan/repo.ex | vincentgeneste/neo-scan | 4a654575331eeb3eb12d4fd61696a7bd6dbca3ce | [
"MIT"
] | 87 | 2017-07-23T02:45:34.000Z | 2022-03-02T14:54:27.000Z | defmodule Neoscan.Repo do
use Ecto.Repo, otp_app: :neoscan
use Scrivener
@doc """
Dynamically loads the repository url from the
DATABASE_URL environment variable.
"""
def init(_, opts) do
pool_size = System.get_env("POOL_SIZE")
pool_size = if is_nil(pool_size), do: 10, else: String.to_integer(poo... | 26 | 80 | 0.707692 |
938856abef471210781bf7665da58f77d1870c3e | 639 | exs | Elixir | test/samly_test.exs | Michelin-Service-Solutions/samly | 4e7f9ca8858596198e03f9a688c196d3f4bd1820 | [
"MIT"
] | null | null | null | test/samly_test.exs | Michelin-Service-Solutions/samly | 4e7f9ca8858596198e03f9a688c196d3f4bd1820 | [
"MIT"
] | null | null | null | test/samly_test.exs | Michelin-Service-Solutions/samly | 4e7f9ca8858596198e03f9a688c196d3f4bd1820 | [
"MIT"
] | null | null | null | defmodule SamlyTest do
use ExUnit.Case, async: true
use Plug.Test
alias Samly.{Assertion, State}
setup do
conn =
conn(:get, "/")
|> init_test_session(%{"samly_assertion" => {'test@example.com', %Assertion{}}})
{:ok, conn: conn}
end
test "get active assertion returns assertion in sess... | 23.666667 | 86 | 0.665102 |
938890ec2b0ad6ca566d3f6797c5f064c8e52bd6 | 3,350 | ex | Elixir | lib/excov.ex | mrinalwadhwa/excov | b3ada2c435e62d4a292c46e95c6f170953383802 | [
"MIT"
] | 3 | 2017-01-26T16:36:22.000Z | 2018-10-17T17:13:51.000Z | lib/excov.ex | mrinalwadhwa/excov | b3ada2c435e62d4a292c46e95c6f170953383802 | [
"MIT"
] | 1 | 2018-10-18T06:31:18.000Z | 2020-11-02T10:29:57.000Z | lib/excov.ex | mrinalwadhwa/excov | b3ada2c435e62d4a292c46e95c6f170953383802 | [
"MIT"
] | null | null | null | defmodule ExCov do
@moduledoc """
Provides Code Coverage Reports for Elixir code.
ExCov is a lightweight, dependency-free, drop-in replacement for the code
coverage tool that is invoked by Mix when `mix test --cover` is invoked.
ExCov supports **Pluggable Reporters** for integration with external services a... | 32.524272 | 105 | 0.720597 |
93889fb5fbb8c5d978715401f4e9b3a1559dd7c0 | 1,208 | ex | Elixir | lib/koans/02_strings.ex | joeldarling/elixir_koans | 215f5a80007013ca2b33ea5c3da2af82cc629747 | [
"MIT"
] | null | null | null | lib/koans/02_strings.ex | joeldarling/elixir_koans | 215f5a80007013ca2b33ea5c3da2af82cc629747 | [
"MIT"
] | null | null | null | lib/koans/02_strings.ex | joeldarling/elixir_koans | 215f5a80007013ca2b33ea5c3da2af82cc629747 | [
"MIT"
] | null | null | null | defmodule Strings do
use Koans
@intro "Strings"
koan "Strings are there to represent text" do
assert "hello" == "hello"
end
koan "Values may be inserted into strings by interpolation" do
assert "1 + 1 = #{1 + 1}" == "1 + 1 = 2"
end
koan "They can be put together" do
assert "hello world" ==... | 26.26087 | 87 | 0.653974 |
9388ba08737f0aa066e30fe99cc6612c0901b0a4 | 427 | ex | Elixir | apps/util/lib/position.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 42 | 2019-05-29T16:05:30.000Z | 2021-08-09T16:03:37.000Z | apps/util/lib/position.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 872 | 2019-05-29T17:55:50.000Z | 2022-03-30T09:28:43.000Z | apps/util/lib/position.ex | noisecapella/dotcom | d5ef869412102d2230fac3dcc216f01a29726227 | [
"MIT"
] | 12 | 2019-07-01T18:33:21.000Z | 2022-03-10T02:13:57.000Z | defprotocol Util.Position do
@doc "The latitude of the item"
def latitude(item)
@doc "The longitude of the item"
def longitude(item)
end
defimpl Util.Position, for: Map do
def latitude(%{latitude: latitude}), do: latitude
def longitude(%{longitude: longitude}), do: longitude
end
defimpl Util.Position, fo... | 23.722222 | 55 | 0.723653 |
9388bc17a2f36448b53268f1ed5e8a7532c5c096 | 800 | ex | Elixir | lib/rexdit/mapper.ex | gabrielgatu/rexdit | 1911cb8b5399e16c94912e4b3cbb1210f4818031 | [
"MIT"
] | 1 | 2016-05-19T05:05:55.000Z | 2016-05-19T05:05:55.000Z | lib/rexdit/mapper.ex | gabrielgatu/rexdit | 1911cb8b5399e16c94912e4b3cbb1210f4818031 | [
"MIT"
] | null | null | null | lib/rexdit/mapper.ex | gabrielgatu/rexdit | 1911cb8b5399e16c94912e4b3cbb1210f4818031 | [
"MIT"
] | null | null | null | defmodule Rexdit.Mapper do
alias Rexdit.Post
@doc """
Given a data block, result from a httpoison call,
it parses the content and returns an array contaning
the posts, or an empty one.
"""
@spec map_posts(map()) :: [Rexdit.Post.t]
def map_posts(data) do
data
|> Map.get("data")
|> Map.get("c... | 23.529412 | 75 | 0.6425 |
938910afb2ae2e8345e476de41569f3fc3e90599 | 5,201 | exs | Elixir | test/models/book_test.exs | cedretaber/bibliotheca | 642ec9908d6d98f16e25b6a482c52e9cbaa21ad2 | [
"MIT"
] | null | null | null | test/models/book_test.exs | cedretaber/bibliotheca | 642ec9908d6d98f16e25b6a482c52e9cbaa21ad2 | [
"MIT"
] | 22 | 2017-05-15T07:34:08.000Z | 2018-02-25T07:26:18.000Z | test/models/book_test.exs | cedretaber/bibliotheca | 642ec9908d6d98f16e25b6a482c52e9cbaa21ad2 | [
"MIT"
] | null | null | null | defmodule Bibliotheca.BookTest do
use Bibliotheca.ModelCase
alias Bibliotheca.{Repo, Account, Author, Book, BookLent, BookRemoved}
@valid_attrs %{
title: "title",
authors: ["someone", "another one"],
description: "lorem ipsum...",
publisher: "some content",
image_url: "http://example.com/sam... | 27.088542 | 93 | 0.573928 |
93896bf07383084916ea424b611094ae7c162c7e | 264 | ex | Elixir | test/support/test_plug_router.ex | QuiqUpLTD/ueberauth_token | 4536bc4a401477334c8fd869aa84501efe4ed97c | [
"MIT"
] | 2 | 2018-05-15T19:38:27.000Z | 2020-09-10T11:15:54.000Z | test/support/test_plug_router.ex | quiqupltd/ueberauth_token | 4536bc4a401477334c8fd869aa84501efe4ed97c | [
"MIT"
] | 13 | 2018-05-15T10:09:52.000Z | 2018-09-24T10:59:49.000Z | test/support/test_plug_router.ex | quiqupltd/ueberauth_token | 4536bc4a401477334c8fd869aa84501efe4ed97c | [
"MIT"
] | 1 | 2018-05-13T23:34:19.000Z | 2018-05-13T23:34:19.000Z | defmodule UeberauthToken.TestPlugRouter do
@moduledoc false
use Plug.Router
alias Plug.Conn
plug(:match)
plug(:dispatch)
plug(UeberauthToken.Plug, provider: UeberauthToken.TestProvider)
get "/api" do
Conn.resp(conn, 200, "responded")
end
end
| 18.857143 | 66 | 0.734848 |
9389913f8c177eee11330eb17abd62c50fe0ee96 | 1,486 | exs | Elixir | mix.exs | mrcnkoba/pushex | ed5d365ff767d70c6b3f0f6c65f5c91e763295ac | [
"MIT"
] | null | null | null | mix.exs | mrcnkoba/pushex | ed5d365ff767d70c6b3f0f6c65f5c91e763295ac | [
"MIT"
] | null | null | null | mix.exs | mrcnkoba/pushex | ed5d365ff767d70c6b3f0f6c65f5c91e763295ac | [
"MIT"
] | 1 | 2018-12-14T08:19:28.000Z | 2018-12-14T08:19:28.000Z | defmodule Pushex.Mixfile do
use Mix.Project
@version "0.2.0"
def project do
[app: :pushex,
version: @version,
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env),
description: "Mobile push notification library",
source_url: "https://github.com/tuvistavie/pushex",
build_emb... | 27.518519 | 78 | 0.550471 |
93899bfce651489c74f1501da6377ad34c0cc8b0 | 2,960 | ex | Elixir | lib/webhooks/plugs/dbl.ex | TheDragonProject/webhooks | 5e0fc3fd53e439321ab65a99f06b31596ddce8ed | [
"MIT"
] | null | null | null | lib/webhooks/plugs/dbl.ex | TheDragonProject/webhooks | 5e0fc3fd53e439321ab65a99f06b31596ddce8ed | [
"MIT"
] | null | null | null | lib/webhooks/plugs/dbl.ex | TheDragonProject/webhooks | 5e0fc3fd53e439321ab65a99f06b31596ddce8ed | [
"MIT"
] | null | null | null | defmodule Webhooks.Plugs.DBL do
@moduledoc """
Plug listening specifically for Webhooks from [Discord Bot List](http://discordbots.org)
See their [Docs](https://discordbots.org/api/docs#webhooks) for more informations.
Required for this to run are:
An entry in the config.exs or an environment varia... | 32.173913 | 102 | 0.624324 |
9389eb67cc2346c042137cd864f55a158ed06b24 | 1,845 | ex | Elixir | lib/watch_faces_web/telemetry.ex | DaniruKun/watchfaces-ex | 699e345596000ec3e50141e44217b155400261d6 | [
"MIT"
] | null | null | null | lib/watch_faces_web/telemetry.ex | DaniruKun/watchfaces-ex | 699e345596000ec3e50141e44217b155400261d6 | [
"MIT"
] | null | null | null | lib/watch_faces_web/telemetry.ex | DaniruKun/watchfaces-ex | 699e345596000ec3e50141e44217b155400261d6 | [
"MIT"
] | null | null | null | defmodule WatchFacesWeb.Telemetry do
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
# every 10_000ms. Lea... | 32.946429 | 86 | 0.676423 |
9389edeaa61e96d57c6bf50b589110bf1485ae2d | 3,527 | ex | Elixir | clients/dataflow/lib/google_api/dataflow/v1b3/model/template_version.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dataflow/lib/google_api/dataflow/v1b3/model/template_version.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dataflow/lib/google_api/dataflow/v1b3/model/template_version.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... | 49.676056 | 586 | 0.681032 |
938a58e470925fbb7fb9a2349c3e2bcd62c71e66 | 6,610 | ex | Elixir | lib/goldie/components/mover_comm.ex | scatterbrain/goldie | db649f9555d453541d01d0707d86b41f41156640 | [
"MIT"
] | null | null | null | lib/goldie/components/mover_comm.ex | scatterbrain/goldie | db649f9555d453541d01d0707d86b41f41156640 | [
"MIT"
] | null | null | null | lib/goldie/components/mover_comm.ex | scatterbrain/goldie | db649f9555d453541d01d0707d86b41f41156640 | [
"MIT"
] | null | null | null | defmodule Goldie.Component.MoverComm do
use Goldie.Component
require Logger
@doc """
Communicate to client information about movements in the player's view area.
This component is run after Mover component
"""
def handle_event({:moved, msg} = event, _from, %{ :entity => entity} = state) do
moved_en... | 37.344633 | 248 | 0.637519 |
938a64ccbbab2bd6bd176b8865c142c57524fd25 | 579 | exs | Elixir | mix.exs | Lazarus404/xturn-cache | faa9e04f3d1b3089289efb9e26d2fe3a003127e6 | [
"Apache-2.0"
] | null | null | null | mix.exs | Lazarus404/xturn-cache | faa9e04f3d1b3089289efb9e26d2fe3a003127e6 | [
"Apache-2.0"
] | null | null | null | mix.exs | Lazarus404/xturn-cache | faa9e04f3d1b3089289efb9e26d2fe3a003127e6 | [
"Apache-2.0"
] | null | null | null | defmodule XturnCache.MixProject do
use Mix.Project
def project do
[
app: :xturn_cache,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
ex... | 19.965517 | 88 | 0.580311 |
938a77d058021a8a9aa4ebb7997152c65a4755f5 | 912 | ex | Elixir | farmbot_core/lib/farmbot_core/asset/sequence.ex | kant/farmbot_os | f497cc1fde3960dc5507e4da89e85411a8f776f3 | [
"MIT"
] | 1 | 2021-04-22T10:18:50.000Z | 2021-04-22T10:18:50.000Z | farmbot_core/lib/farmbot_core/asset/sequence.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | farmbot_core/lib/farmbot_core/asset/sequence.ex | SeppPenner/farmbot_os | 39ba5c5880f8aef71792e2c009514bed1177089c | [
"MIT"
] | null | null | null | defmodule FarmbotCore.Asset.Sequence do
@moduledoc """
Sequences are "code" that FarmbotCoreOS can Execute.
"""
use FarmbotCore.Asset.Schema, path: "/api/sequences"
schema "sequences" do
field(:id, :id)
has_one(:local_meta, FarmbotCore.Asset.Private.LocalMeta,
on_delete: :delete_all,
re... | 22.243902 | 90 | 0.625 |
938a8792ab2808c60d8b83c14f1607962a5f156b | 678 | ex | Elixir | lib/layers/builder_queries/queries/insert_one.ex | haskric/mongo_agile | 393e1e96f706e3580f6bac9ff7bcc081b0a2e4eb | [
"MIT"
] | 1 | 2020-12-30T18:30:32.000Z | 2020-12-30T18:30:32.000Z | lib/layers/builder_queries/queries/insert_one.ex | haskric/mongo_agile | 393e1e96f706e3580f6bac9ff7bcc081b0a2e4eb | [
"MIT"
] | null | null | null | lib/layers/builder_queries/queries/insert_one.ex | haskric/mongo_agile | 393e1e96f706e3580f6bac9ff7bcc081b0a2e4eb | [
"MIT"
] | null | null | null | defmodule MongoAgile.BuilderQueries.InsertOneBuilder do
@moduledoc """
Macro InsertOne
## Base
* `document` - Document to insert
"""
defmodule Schema do
@moduledoc false
use MapSchema,
atomize: true,
schema: %{
:document => :map
}
end
alias MongoAgile.BuilderQueri... | 21.1875 | 74 | 0.710914 |
938a8deda9ff604b98ffb79fa99cf13140f7f382 | 1,948 | exs | Elixir | mix.exs | conradwt/zero-to-graphql-using-phoenix | 3e448df2c7f23dfad33c9768104c183a48b43724 | [
"MIT"
] | 9 | 2019-03-26T22:16:08.000Z | 2021-09-27T12:42:34.000Z | mix.exs | conradwt/zero-to-graphql-using-phoenix | 3e448df2c7f23dfad33c9768104c183a48b43724 | [
"MIT"
] | 3 | 2020-06-08T23:03:49.000Z | 2020-06-09T03:11:12.000Z | mix.exs | conradwt/zero-to-graphql-using-phoenix | 3e448df2c7f23dfad33c9768104c183a48b43724 | [
"MIT"
] | 7 | 2019-01-15T17:00:07.000Z | 2021-07-18T23:30:29.000Z | defmodule ZeroPhoenix.Mixfile do
use Mix.Project
def project do
[
app: :zero_phoenix,
version: "2.5.0",
elixir: "~> 1.13.0-dev",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 28.231884 | 79 | 0.572382 |
938a9b46d223eb6a432f77316c79918e224d8cc0 | 17,337 | ex | Elixir | lib/aws/generated/machinelearning.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/machinelearning.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/machinelearning.ex | qyon-brazil/aws-elixir | f7f21bebffc6776f95ffe9ef563cf368773438af | [
"Apache-2.0"
] | 1 | 2020-10-28T08:56:54.000Z | 2020-10-28T08:56:54.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.Machinelearning do
@moduledoc """
Definition of the public APIs exposed by Amazon Machine Learning
"""
alias AWS.Client
alias AWS.Request
def metadata do
%AWS.ServiceMetadata{
... | 41.876812 | 119 | 0.733806 |
938ac1a92c82bf2a6eeb7d6d4a1cec3018ed3b39 | 1,158 | ex | Elixir | lib/deco/core.ex | vic/deco | 89bce9501a1abf9fa9f79810110eef38a8f04546 | [
"Apache-2.0"
] | 23 | 2018-03-07T07:40:28.000Z | 2020-10-06T03:35:20.000Z | lib/deco/core.ex | vic/deco | 89bce9501a1abf9fa9f79810110eef38a8f04546 | [
"Apache-2.0"
] | 1 | 2018-03-07T19:12:00.000Z | 2019-04-28T06:59:10.000Z | lib/deco/core.ex | vic/deco | 89bce9501a1abf9fa9f79810110eef38a8f04546 | [
"Apache-2.0"
] | null | null | null | defmodule Deco.Core do
@moduledoc false
defmacro deco({:in, _, [{a, b}, head]}, rest) do
deco([a, b], head, rest, __CALLER__)
end
defmacro deco({:in, _, [{:{}, _, decos}, head]}, rest) do
deco(decos, head, rest, __CALLER__)
end
defp deco(decos, head, rest, env) do
expr = add_args(:append, hea... | 27.571429 | 83 | 0.594991 |
938ada2db7f59bbb8c5777929b4fa2bb0237537c | 681 | exs | Elixir | priv/scripts/add_install.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 691 | 2017-03-08T09:15:45.000Z | 2022-03-23T22:04:47.000Z | priv/scripts/add_install.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 491 | 2017-03-07T12:58:42.000Z | 2022-03-29T23:32:54.000Z | priv/scripts/add_install.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 200 | 2017-03-12T23:03:39.000Z | 2022-03-05T17:55:52.000Z | case System.argv() do
[hex | elixirs] ->
IO.puts("Hex: " <> hex)
IO.puts("Elixirs: " <> Enum.join(elixirs, ", "))
Hexpm.Repository.Install.build(hex, elixirs) |> Hexpm.Repo.insert!()
_ ->
:ok
end
all = Hexpm.Repository.Install.all() |> Hexpm.Repo.all()
csv =
Enum.map_join(all, "\n", fn inst... | 23.482759 | 72 | 0.63583 |
938ae4ebcc661749557822a5b4df663b65c8001c | 9,461 | exs | Elixir | apps/astarte_data_updater_plant/test/astarte_data_updater_plant/value_match_operators_test.exs | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 191 | 2018-03-30T13:23:08.000Z | 2022-03-02T12:05:32.000Z | apps/astarte_data_updater_plant/test/astarte_data_updater_plant/value_match_operators_test.exs | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 402 | 2018-03-30T13:37:00.000Z | 2022-03-31T16:47:10.000Z | apps/astarte_data_updater_plant/test/astarte_data_updater_plant/value_match_operators_test.exs | Annopaolo/astarte | f8190e8bf044759a9b84bdeb5786a55b6f793a4f | [
"Apache-2.0"
] | 24 | 2018-03-30T13:29:48.000Z | 2022-02-28T11:10:26.000Z | #
# This file is part of Astarte.
#
# Copyright 2018 Ispirata Srl
#
# 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 appl... | 53.451977 | 94 | 0.742945 |
938ae84dc084627a5362c1d9305015ebc8a958b8 | 1,111 | ex | Elixir | lib/mldht/server/utils.ex | cit/MLDHT | 3ada20ab01cf1eb312bf673f7ddd244f45319744 | [
"MIT"
] | 49 | 2015-11-24T12:12:48.000Z | 2017-06-14T05:18:51.000Z | lib/mldht/server/utils.ex | faried/MlDHT | 3ada20ab01cf1eb312bf673f7ddd244f45319744 | [
"MIT"
] | 4 | 2019-07-03T15:18:51.000Z | 2019-12-01T07:25:14.000Z | lib/mldht/server/utils.ex | faried/MlDHT | 3ada20ab01cf1eb312bf673f7ddd244f45319744 | [
"MIT"
] | 7 | 2017-07-14T03:19:00.000Z | 2022-01-25T23:02:01.000Z | defmodule MlDHT.Server.Utils do
@moduledoc false
@doc ~S"""
This function gets a tuple as IP address and a port and returns a
string which contains the IPv4 or IPv6 address and port in the following
format: "127.0.0.1:6881".
## Example
iex> MlDHT.Server.Utils.tuple_to_ipstr({127, 0, 0, 1}, 6881)
... | 24.152174 | 74 | 0.628263 |
938b15779ebd2b079989c84f096d113e90f6072a | 283 | ex | Elixir | example/example/lib/foo.ex | bradleyd/external_config | bc32170dd565cd70bef7254e719778219a00edb7 | [
"MIT"
] | 6 | 2016-08-22T09:03:00.000Z | 2019-04-05T02:06:09.000Z | example/example/lib/foo.ex | bradleyd/external_config | bc32170dd565cd70bef7254e719778219a00edb7 | [
"MIT"
] | null | null | null | example/example/lib/foo.ex | bradleyd/external_config | bc32170dd565cd70bef7254e719778219a00edb7 | [
"MIT"
] | 1 | 2018-09-12T05:50:11.000Z | 2018-09-12T05:50:11.000Z | defmodule Example.Foo do
## this is a silly example but want to show how you could use it
def start do
config = Example.Config.lookup(:tcp_host)
{:ok, socket} = :gen_tcp.connect(to_char_list(config.host), config.port, [:binary, {:packet, 0}])
socket
end
end
| 25.727273 | 102 | 0.674912 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.