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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21aafa830117abcac46455775acbd0fdea12dea0 | 937 | ex | Elixir | lib/ueberauth/strategy/trello/internal.ex | wm/ueberauth_trello | 0b49266a7af7cbad011af70b5bf0d5beed0067c8 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/trello/internal.ex | wm/ueberauth_trello | 0b49266a7af7cbad011af70b5bf0d5beed0067c8 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/trello/internal.ex | wm/ueberauth_trello | 0b49266a7af7cbad011af70b5bf0d5beed0067c8 | [
"MIT"
] | null | null | null | defmodule Ueberauth.Strategy.Trello.OAuth.Internal do
@moduledoc """
A layer to handle OAuth signing, etc.
"""
def get(url, extraparams, {consumer_key, consumer_secret, _}, token \\ "", token_secret \\ "") do
creds = OAuther.credentials(
consumer_key: consumer_key,
consumer_secret: consumer_sec... | 24.657895 | 99 | 0.6254 |
21ab2e6f2841dcc36f6f9b61151a02cc367c8e98 | 745 | exs | Elixir | test/inflections_test.exs | nathanfaucett/ex-inflections | 465ec4a3d108061d6ba615096d7bcd2d81c2f007 | [
"MIT"
] | null | null | null | test/inflections_test.exs | nathanfaucett/ex-inflections | 465ec4a3d108061d6ba615096d7bcd2d81c2f007 | [
"MIT"
] | null | null | null | test/inflections_test.exs | nathanfaucett/ex-inflections | 465ec4a3d108061d6ba615096d7bcd2d81c2f007 | [
"MIT"
] | null | null | null | defmodule InflectionsTest do
use ExUnit.Case
doctest Inflections
test "should return en inflector or create new one if not present" do
assert Inflections.get() == %Inflector{}
assert Inflections.get(:en) == %Inflector{}
assert Inflections.get(:es) == %Inflector{}
end
test "s... | 33.863636 | 73 | 0.642953 |
21ab32b89c235e1ac3b4e975966b3dd7e70b0e7f | 1,686 | exs | Elixir | test/gateway/command_test.exs | SpaceEEC/crux_gateway | cd6e3dd661f39047fd1499bfa3d96f9f1f324d5a | [
"MIT"
] | 7 | 2018-05-22T07:13:45.000Z | 2020-08-16T19:24:38.000Z | test/gateway/command_test.exs | SpaceEEC/crux_gateway | cd6e3dd661f39047fd1499bfa3d96f9f1f324d5a | [
"MIT"
] | 1 | 2020-10-08T16:59:47.000Z | 2020-10-10T20:18:00.000Z | test/gateway/command_test.exs | SpaceEEC/crux_gateway | cd6e3dd661f39047fd1499bfa3d96f9f1f324d5a | [
"MIT"
] | null | null | null | defmodule Crux.Gateway.CommandTest do
use ExUnit.Case, async: true
doctest Crux.Gateway.Command
# Since the commands directly make it WebSocket friendly
defp unfinalize({:binary, data}) do
%{"d" => d} = :erlang.binary_to_term(data)
d
end
describe "request_guild_members/1,2" do
# Get the guild... | 26.761905 | 96 | 0.635824 |
21ab33850a41276532aac57f74edfea9a5de53a9 | 1,724 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/grid_coordinate.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/sheets/lib/google_api/sheets/v4/model/grid_coordinate.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/grid_coordinate.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 ... | 31.925926 | 97 | 0.706497 |
21ab3d299fe7425fa13933eae711827cf2047b66 | 1,109 | exs | Elixir | config/config.exs | elpddev/fusion | 7106ba4922786e1d79310074e46e6996d0c2f4aa | [
"MIT"
] | 2 | 2020-02-02T20:22:28.000Z | 2020-12-10T18:25:03.000Z | config/config.exs | elpddev/fusion | 7106ba4922786e1d79310074e46e6996d0c2f4aa | [
"MIT"
] | null | null | null | config/config.exs | elpddev/fusion | 7106ba4922786e1d79310074e46e6996d0c2f4aa | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.774194 | 73 | 0.754734 |
21ab578306ffb969e721bd2ba9e4c8540cf384cb | 584 | ex | Elixir | lib/wabanex/training.ex | Sensacioles/ElixirNLWTogether2021 | 97f72b4fda4367693755dedabf7ee86b63978221 | [
"MIT"
] | null | null | null | lib/wabanex/training.ex | Sensacioles/ElixirNLWTogether2021 | 97f72b4fda4367693755dedabf7ee86b63978221 | [
"MIT"
] | null | null | null | lib/wabanex/training.ex | Sensacioles/ElixirNLWTogether2021 | 97f72b4fda4367693755dedabf7ee86b63978221 | [
"MIT"
] | null | null | null | defmodule Wabanex.Training do
use Ecto.Schema
import Ecto.Changeset
alias Wabanex.{User, Exercise}
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
@fields [:start_date, :end_date, :user_id]
schema "trainings" do
field :start_date, :date
field :end_date, :date
... | 22.461538 | 52 | 0.686644 |
21ab6a43be08166f3ccea9562e9e7e86fc731aab | 296 | exs | Elixir | mix.exs | masonforest/ex_mod_exp | 7e78386cf9ac5996b527312d01a8bc98efbc3d94 | [
"Unlicense"
] | null | null | null | mix.exs | masonforest/ex_mod_exp | 7e78386cf9ac5996b527312d01a8bc98efbc3d94 | [
"Unlicense"
] | null | null | null | mix.exs | masonforest/ex_mod_exp | 7e78386cf9ac5996b527312d01a8bc98efbc3d94 | [
"Unlicense"
] | null | null | null | defmodule OpenSSL.Mixfile do
use Mix.Project
@version "0.1.0"
def project do
[app: :ex_mod_exp,
version: @version,
elixir: ">= 0.14.3 and < 2.0.0",
compilers: [:elixir, :app],
deps: deps()]
end
def application do
[]
end
defp deps do
[]
end
end
| 13.454545 | 37 | 0.564189 |
21ab6fafd8b3a60bfdcfd337c7206b71214b9604 | 511 | ex | Elixir | lib/farmbot/system/updates/update_handler.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 2 | 2018-08-01T23:07:52.000Z | 2018-10-17T12:49:21.000Z | lib/farmbot/system/updates/update_handler.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | null | null | null | lib/farmbot/system/updates/update_handler.ex | pdgonzalez872/farmbot_os | a444248f05ee8f4fe57f6a4865b942131960f76c | [
"MIT"
] | 1 | 2017-07-22T21:51:14.000Z | 2017-07-22T21:51:14.000Z | defmodule Farmbot.System.UpdateHandler do
@moduledoc "Behaviour for setting up OTA updates."
@doc "Called before and update."
@callback before_update :: :ok | {:error, term}
@doc "Called after a reboot."
@callback post_update :: :ok | {:error, term}
@doc "Apply a fw update."
@callback apply_firmware(Pa... | 26.894737 | 58 | 0.67319 |
21abac22779b27980afb9ce77b4ad7a2bb8476db | 1,369 | ex | Elixir | rumbl/lib/rumbl_web/router.ex | arilsonsouza/programming_phoenix | 71a2a44e8cf84b6b133422899324363a09ccc07c | [
"MIT"
] | null | null | null | rumbl/lib/rumbl_web/router.ex | arilsonsouza/programming_phoenix | 71a2a44e8cf84b6b133422899324363a09ccc07c | [
"MIT"
] | null | null | null | rumbl/lib/rumbl_web/router.ex | arilsonsouza/programming_phoenix | 71a2a44e8cf84b6b133422899324363a09ccc07c | [
"MIT"
] | null | null | null | defmodule RumblWeb.Router do
use RumblWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug RumblWeb.Auth
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", Rumb... | 26.843137 | 76 | 0.693937 |
21abaf5821b026d12fa04e3b0c16e52411838b17 | 459 | exs | Elixir | config/prod.exs | thomasvolk/gatehouse | 81632172ff48c41b3a701cd80ff7cd826d21dbac | [
"Apache-2.0"
] | 1 | 2019-07-21T03:48:31.000Z | 2019-07-21T03:48:31.000Z | config/prod.exs | thomasvolk/gatehouse | 81632172ff48c41b3a701cd80ff7cd826d21dbac | [
"Apache-2.0"
] | 1 | 2021-03-07T17:54:41.000Z | 2021-03-07T17:54:41.000Z | config/prod.exs | thomasvolk/gatehouse | 81632172ff48c41b3a701cd80ff7cd826d21dbac | [
"Apache-2.0"
] | 2 | 2019-06-14T06:25:25.000Z | 2019-07-21T03:48:33.000Z | use Mix.Config
config :gatehouse, GatehouseWeb.Endpoint,
load_from_system_env: true,
root: "."
# Do not print debug messages in production
config :logger, level: :info
# cookies
config :gatehouse, GatehouseWeb.Endpoint,
secret_key_base: "..............................."
# database
config :gatehouse, Gatehouse... | 20.863636 | 52 | 0.697168 |
21abbc2ef907d87fd9ec218a7aaf101b10edeeb3 | 2,953 | ex | Elixir | clients/drive/lib/google_api/drive/v3/model/team_drive_background_image_file.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/drive/lib/google_api/drive/v3/model/team_drive_background_image_file.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/drive/lib/google_api/drive/v3/model/team_drive_background_image_file.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 ... | 52.732143 | 364 | 0.735523 |
21abc492c280d5947b6d6587e0b3c8c7fddeb605 | 251 | ex | Elixir | lib/teslamate_web/health_check.ex | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 2,602 | 2019-07-24T23:19:12.000Z | 2022-03-31T15:03:48.000Z | lib/teslamate_web/health_check.ex | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 1,547 | 2019-07-26T22:02:09.000Z | 2022-03-31T15:39:41.000Z | lib/teslamate_web/health_check.ex | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 524 | 2019-07-26T17:31:33.000Z | 2022-03-29T15:16:36.000Z | defmodule TeslaMateWeb.HealthCheck do
import Plug.Conn
def init(opts), do: opts
def call(%Plug.Conn{request_path: "/health_check"} = conn, _opts) do
conn
|> send_resp(200, "")
|> halt()
end
def call(conn, _opts), do: conn
end
| 17.928571 | 70 | 0.649402 |
21abcae21c0d8e740f0e4534eb519544764fbc5a | 4,679 | exs | Elixir | mix.exs | alexfreska/ash | b7ffc5495fd6d956199fb74cfc1f72f58bf8505a | [
"MIT"
] | null | null | null | mix.exs | alexfreska/ash | b7ffc5495fd6d956199fb74cfc1f72f58bf8505a | [
"MIT"
] | null | null | null | mix.exs | alexfreska/ash | b7ffc5495fd6d956199fb74cfc1f72f58bf8505a | [
"MIT"
] | null | null | null | defmodule Ash.MixProject do
@moduledoc false
use Mix.Project
@description """
A resource declaration and interaction library. Built with pluggable data layers, and
designed to be used by multiple front ends.
"""
@version "1.26.5"
def project do
[
app: :ash,
version: @version,
el... | 29.062112 | 124 | 0.555247 |
21abe66a84c132ed835cf26e208662fe05ad547c | 728 | exs | Elixir | config/prod.exs | jfcloutier/andy | 74b93f734d6f6353356041a603a96ad5aed4b5dc | [
"MIT"
] | 7 | 2019-05-29T22:55:25.000Z | 2021-08-22T18:38:29.000Z | config/prod.exs | jfcloutier/andy | 74b93f734d6f6353356041a603a96ad5aed4b5dc | [
"MIT"
] | null | null | null | config/prod.exs | jfcloutier/andy | 74b93f734d6f6353356041a603a96ad5aed4b5dc | [
"MIT"
] | 1 | 2020-01-25T20:46:43.000Z | 2020-01-25T20:46:43.000Z | use Mix.Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# AndyWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
# Don't... | 38.315789 | 65 | 0.782967 |
21ac5f163e072f0ba90063e9d52e508c0e0d89aa | 4,018 | exs | Elixir | test/groupher_server/cms/search_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | test/groupher_server/cms/search_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | test/groupher_server/cms/search_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Test.CMS.Search do
use GroupherServer.TestTools
# alias Helper.ORM
alias GroupherServer.CMS
setup do
{:ok, user} = db_insert(:user)
{:ok, _community} = db_insert(:community, %{title: "react"})
{:ok, _community} = db_insert(:community, %{title: "php"})
{:ok, _community}... | 40.18 | 78 | 0.629667 |
21ac6be35220f82dc3737c62f518c660fb5b7140 | 1,108 | exs | Elixir | apps/bbq_ui/config/rpi3/dev.exs | easco/ex_bbq | d736204bb124ea256907629f5025c3abaf08c0bb | [
"BSD-3-Clause"
] | 2 | 2016-09-22T13:32:35.000Z | 2017-02-17T20:26:50.000Z | apps/bbq_ui/config/rpi3/dev.exs | easco/ex_bbq | d736204bb124ea256907629f5025c3abaf08c0bb | [
"BSD-3-Clause"
] | null | null | null | apps/bbq_ui/config/rpi3/dev.exs | easco/ex_bbq | d736204bb124ea256907629f5025c3abaf08c0bb | [
"BSD-3-Clause"
] | 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 :bbq_ui, BbqUi.Endpoint,
http: [port: 4000],
... | 31.657143 | 94 | 0.683213 |
21ac6c719bfadf14117c48b971134b9705ef388e | 1,563 | ex | Elixir | clients/security_center/lib/google_api/security_center/v1/model/test_iam_permissions_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/security_center/lib/google_api/security_center/v1/model/test_iam_permissions_response.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/security_center/lib/google_api/security_center/v1/model/test_iam_permissions_response.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... | 32.5625 | 134 | 0.74856 |
21ac6ddbd15310b65d7888b8a7941985af848135 | 339 | exs | Elixir | config/test.exs | elpddev/fusion | 7106ba4922786e1d79310074e46e6996d0c2f4aa | [
"MIT"
] | 2 | 2020-02-02T20:22:28.000Z | 2020-12-10T18:25:03.000Z | config/test.exs | elpddev/fusion | 7106ba4922786e1d79310074e46e6996d0c2f4aa | [
"MIT"
] | null | null | null | config/test.exs | elpddev/fusion | 7106ba4922786e1d79310074e46e6996d0c2f4aa | [
"MIT"
] | null | null | null | use Mix.Config
config :dockerex,
#host: "https://10.10.10.1:2376/",
host: "http+unix://%2Fvar%2Frun%2Fdocker.sock/",
options: [
# ssl: [
# {:certfile, "/path/to/your/cert.pem"},
# {:keyfile, "/path/to/your/ke... | 28.25 | 50 | 0.40708 |
21acb1fabbf5194bb09f2ec9549e00b30119cedf | 58 | exs | Elixir | test/zxcvbn/data/parser_test.exs | ayonix/zxcvbn-ex | ce5f1a9f5ca3b7b17c895fc237e12cdede85da38 | [
"MIT"
] | null | null | null | test/zxcvbn/data/parser_test.exs | ayonix/zxcvbn-ex | ce5f1a9f5ca3b7b17c895fc237e12cdede85da38 | [
"MIT"
] | null | null | null | test/zxcvbn/data/parser_test.exs | ayonix/zxcvbn-ex | ce5f1a9f5ca3b7b17c895fc237e12cdede85da38 | [
"MIT"
] | null | null | null | defmodule Zxcvbn.Data.ParserTest do
use ExUnit.Case
end
| 14.5 | 35 | 0.810345 |
21accd055187bf3e6508d9abba2fe3692170a2ca | 74 | ex | Elixir | lib/example_web/mailer.ex | BenSchZA/kawapi-phoenix | 5ed91b1d30d91bcc85c5f120d18691d236a41e88 | [
"MIT"
] | 1 | 2020-12-18T17:23:31.000Z | 2020-12-18T17:23:31.000Z | lib/example_web/mailer.ex | BenSchZA/kawapi-phoenix | 5ed91b1d30d91bcc85c5f120d18691d236a41e88 | [
"MIT"
] | null | null | null | lib/example_web/mailer.ex | BenSchZA/kawapi-phoenix | 5ed91b1d30d91bcc85c5f120d18691d236a41e88 | [
"MIT"
] | null | null | null | defmodule ExampleWeb.Mailer do
use Bamboo.Mailer, otp_app: :example
end
| 18.5 | 38 | 0.797297 |
21acf804c84ede32fa22fd7816b2de1bb2df3c9f | 1,717 | ex | Elixir | apps/snitch_core/lib/core/data/schema/line_item.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_core/lib/core/data/schema/line_item.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_core/lib/core/data/schema/line_item.ex | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule Snitch.Data.Schema.LineItem do
@moduledoc """
Models a LineItem.
"""
use Snitch.Data.Schema
alias Snitch.Data.Schema.{Order, Product}
@type t :: %__MODULE__{}
schema "snitch_line_items" do
field(:quantity, :integer)
field(:unit_price, Money.Ecto.Composite.Type)
belongs_to(:produ... | 25.626866 | 78 | 0.682003 |
21acf86c8e61e3873a3d4094ee94c2624ed58e42 | 3,742 | ex | Elixir | lib/elixir/lib/record/extractor.ex | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/record/extractor.ex | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/record/extractor.ex | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | defmodule Record.Extractor do
@moduledoc false
# Retrieve a record definition from an Erlang file using
# the same lookup as the *include* attribute from Erlang modules.
def extract(name, from: file) when is_binary(file) do
extract_record(name, from_file(file))
end
# Retrieve a record definition from ... | 31.711864 | 94 | 0.673169 |
21ad0e32aa396bc35cbb19ec51c751f25368ddc3 | 1,702 | ex | Elixir | lib/wannabe_bool.ex | prodis/wannabe_bool_elixir | 3fb7a0e3812610ba0d8725596d248a1283121431 | [
"Apache-2.0"
] | 7 | 2018-12-09T10:47:01.000Z | 2019-08-20T17:39:47.000Z | lib/wannabe_bool.ex | prodis/wannabe_bool_elixir | 3fb7a0e3812610ba0d8725596d248a1283121431 | [
"Apache-2.0"
] | 2 | 2020-10-19T21:02:52.000Z | 2021-11-04T11:35:22.000Z | lib/wannabe_bool.ex | prodis/wannabe_bool_elixir | 3fb7a0e3812610ba0d8725596d248a1283121431 | [
"Apache-2.0"
] | null | null | null | defprotocol WannabeBool do
@moduledoc """
`WannabeBool` protocol is responsible for converting a structure to a boolean value.
The only function required to be implemented is `to_boolean/1`, which does the conversion.
The `is_boolean/1` function is implemented for `Atom`, `BitString`, `Integer` and `Float`.
... | 20.756098 | 92 | 0.643948 |
21ad241c82622324c80f2a9706d9b4907b5c28e8 | 7,083 | ex | Elixir | config/dispatcher/dispatcher.ex | nathanielrb/yds-rewriter-dev | 8951eae5360d97b82997203bd103e7e349582ce6 | [
"MIT"
] | 1 | 2020-02-05T00:59:25.000Z | 2020-02-05T00:59:25.000Z | config/dispatcher/dispatcher.ex | nathanielrb/yds-rewriter-dev | 8951eae5360d97b82997203bd103e7e349582ce6 | [
"MIT"
] | null | null | null | config/dispatcher/dispatcher.ex | nathanielrb/yds-rewriter-dev | 8951eae5360d97b82997203bd103e7e349582ce6 | [
"MIT"
] | null | null | null | defmodule Dispatcher do
use Plug.Router
def start(_argv) do
port = 80
IO.puts "Starting Plug with Cowboy on port #{port}"
Plug.Adapters.Cowboy.http __MODULE__, [], port: port
:timer.sleep(:infinity)
end
plug Plug.Logger
plug :match
plug :dispatch
match "/catalogs/*path" do
Proxy.for... | 26.52809 | 80 | 0.670196 |
21ad2f5b78d702819bab1c27f9242b67db41f4ef | 363 | ex | Elixir | lib/foreperson/formatter.ex | cschiewek/foreperson | 68f06ee90816666d33c3832200affd6612c2dfa5 | [
"MIT"
] | 3 | 2021-11-25T19:48:53.000Z | 2022-02-07T11:04:34.000Z | lib/foreperson/formatter.ex | cschiewek/foreperson | 68f06ee90816666d33c3832200affd6612c2dfa5 | [
"MIT"
] | null | null | null | lib/foreperson/formatter.ex | cschiewek/foreperson | 68f06ee90816666d33c3832200affd6612c2dfa5 | [
"MIT"
] | null | null | null | defmodule Foreperson.Formatter do
@moduledoc false
defstruct prefix: nil
defimpl Collectable do
def into(%{prefix: prefix} = formatter) do
{:ok, into(formatter, prefix)}
end
defp into(formatter, prefix) do
fn
:ok, {:cont, x} -> IO.write(:stdio, "👷[#{prefix}] " <> x)
:ok,... | 20.166667 | 65 | 0.586777 |
21ad4bac513dbd4bf353df2a7b860e7c72bdbc68 | 148 | ex | Elixir | Demo/server/lib/godot_server_web/controllers/page_controller.ex | ShalokShalom/GodotPhoenixChannels | 7de1ce8ef2f69078b82a0180426826429706b522 | [
"MIT"
] | 180 | 2019-05-12T21:07:59.000Z | 2022-03-11T13:48:35.000Z | Demo/server/lib/godot_server_web/controllers/page_controller.ex | ShalokShalom/GodotPhoenixChannels | 7de1ce8ef2f69078b82a0180426826429706b522 | [
"MIT"
] | 21 | 2019-05-07T20:40:31.000Z | 2021-08-04T05:41:33.000Z | Demo/server/lib/godot_server_web/controllers/page_controller.ex | ShalokShalom/GodotPhoenixChannels | 7de1ce8ef2f69078b82a0180426826429706b522 | [
"MIT"
] | 15 | 2019-05-12T21:26:49.000Z | 2021-11-19T19:59:52.000Z | defmodule GodotServerWeb.PageController do
use GodotServerWeb, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 18.5 | 42 | 0.756757 |
21ad60c0f3e18f94244b7ea26b12f3d1d595dc61 | 1,213 | exs | Elixir | mix.exs | turboladen/egdal | f4888978996c89b0f5658eb85d4239e3dbb25752 | [
"MIT"
] | null | null | null | mix.exs | turboladen/egdal | f4888978996c89b0f5658eb85d4239e3dbb25752 | [
"MIT"
] | null | null | null | mix.exs | turboladen/egdal | f4888978996c89b0f5658eb85d4239e3dbb25752 | [
"MIT"
] | null | null | null | defmodule Egdal.Mixfile do
use Mix.Project
def project do
[app: :egdal,
version: "0.0.1",
elixir: "~> 1.2",
compilers: [:make, :elixir, :app],
aliases: aliases,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
defp aliases do
[clea... | 19.885246 | 81 | 0.624897 |
21ad70d46da7789558bb6f0b78966776a6299de9 | 1,952 | ex | Elixir | lib/helios/plugs/helios_logger.ex | exponentially/helios | 3a7b66bd95a8c53c500272eb8a269a73e6de6d8a | [
"Apache-2.0"
] | 12 | 2018-09-20T21:33:07.000Z | 2020-01-14T19:31:11.000Z | lib/helios/plugs/helios_logger.ex | exponentially/helios | 3a7b66bd95a8c53c500272eb8a269a73e6de6d8a | [
"Apache-2.0"
] | null | null | null | lib/helios/plugs/helios_logger.ex | exponentially/helios | 3a7b66bd95a8c53c500272eb8a269a73e6de6d8a | [
"Apache-2.0"
] | null | null | null | defmodule Helios.Plugs.Logger do
@moduledoc """
Logs execution request to logger.
"""
require Logger
@behaviour Helios.Pipeline.Plug
def init(opts),
do: [
log_level: Keyword.get(opts, :log_level, :debug)
]
def call(ctx, opts) do
log_level = Keyword.get(opts, :log_level)
Elixir.Log... | 26.026667 | 94 | 0.640881 |
21adc957f20764c451dc115bbcde43da64430559 | 2,926 | exs | Elixir | test/soap/request/params_test.exs | elixir-soap/soap | cb0d22aefe3a81be7467f9691878794a4f5e040b | [
"MIT"
] | 74 | 2019-02-15T14:00:24.000Z | 2022-03-27T06:02:43.000Z | test/soap/request/params_test.exs | elixir-soap/soap | cb0d22aefe3a81be7467f9691878794a4f5e040b | [
"MIT"
] | 23 | 2019-02-14T15:18:59.000Z | 2022-01-13T10:27:44.000Z | test/soap/request/params_test.exs | elixir-soap/soap | cb0d22aefe3a81be7467f9691878794a4f5e040b | [
"MIT"
] | 49 | 2019-04-17T12:29:45.000Z | 2022-03-16T11:45:46.000Z | defmodule Soap.Request.ParamsTest do
use ExUnit.Case
doctest Soap.Request.Params
alias Soap.{Request.Params, Wsdl}
@wsdl_path Fixtures.get_file_path("wsdl/SendService.wsdl")
@operation "SendMessage"
test "#build_body converts map to Xml-like string successful" do
xml_body = Fixtures.load_xml("send_ser... | 38 | 153 | 0.693096 |
21ade79a79ae628316cfdcf7729bf3d01dfccdc3 | 1,549 | ex | Elixir | test/support/data_case.ex | cassiofariasmachado/daily-meals | fa1965fa1190818e8f74382635b5174ab1e19eee | [
"MIT"
] | null | null | null | test/support/data_case.ex | cassiofariasmachado/daily-meals | fa1965fa1190818e8f74382635b5174ab1e19eee | [
"MIT"
] | null | null | null | test/support/data_case.ex | cassiofariasmachado/daily-meals | fa1965fa1190818e8f74382635b5174ab1e19eee | [
"MIT"
] | null | null | null | defmodule DailyMeals.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes done t... | 26.706897 | 77 | 0.690768 |
21ade900a85946ece44565531e572ff2e09e44ea | 1,186 | ex | Elixir | lib/lle_cymraeg_web/controllers/meetup_controller.ex | danielcavanagh/lle-cymraeg | 01aebc939254e0dd76427cb460722b830c232e82 | [
"MIT"
] | null | null | null | lib/lle_cymraeg_web/controllers/meetup_controller.ex | danielcavanagh/lle-cymraeg | 01aebc939254e0dd76427cb460722b830c232e82 | [
"MIT"
] | null | null | null | lib/lle_cymraeg_web/controllers/meetup_controller.ex | danielcavanagh/lle-cymraeg | 01aebc939254e0dd76427cb460722b830c232e82 | [
"MIT"
] | null | null | null | defmodule LleCymraegWeb.MeetupController do
use LleCymraegWeb, :controller
alias LleCymraeg.Meetups
alias LleCymraeg.Meetups.Meetup
action_fallback LleCymraegWeb.FallbackController
def index(conn, _params) do
meetups = Meetups.list_meetups()
render(conn, "index.json", meetups: meetups)
end
def... | 27.581395 | 85 | 0.659359 |
21adfe42e8938a9b802447aaa73d20858577e542 | 182 | exs | Elixir | config/dev.exs | edraut/blitz | fa6b645e943f36ba40b7104ff4f8df6110aa7645 | [
"MIT"
] | null | null | null | config/dev.exs | edraut/blitz | fa6b645e943f36ba40b7104ff4f8df6110aa7645 | [
"MIT"
] | null | null | null | config/dev.exs | edraut/blitz | fa6b645e943f36ba40b7104ff4f8df6110aa7645 | [
"MIT"
] | null | null | null | import Config
config :blitz, :riot,
key: System.get_env("RIOT_KEY"),
key_type: System.get_env("RIOT_KEY_TYPE")
config :blitz, :terminal_input,
handler: Blitz.TerminalHandler
| 20.222222 | 43 | 0.752747 |
21ae16f5b5654ce3d62f1451f9fbbdeeaf79ac5c | 723 | ex | Elixir | api/lib/responda_me_web/gettext.ex | mendes13/responda.me | 42facc3de1c5cc503459457b2bb452f0ad6fac37 | [
"MIT"
] | null | null | null | api/lib/responda_me_web/gettext.ex | mendes13/responda.me | 42facc3de1c5cc503459457b2bb452f0ad6fac37 | [
"MIT"
] | null | null | null | api/lib/responda_me_web/gettext.ex | mendes13/responda.me | 42facc3de1c5cc503459457b2bb452f0ad6fac37 | [
"MIT"
] | null | null | null | defmodule Responda.MeWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import Responda.MeWeb.Gettext
# Simple translation
gettext("H... | 28.92 | 72 | 0.680498 |
21ae26eecf5036b5cde0d22af63d374352b12e70 | 374 | ex | Elixir | lib/acmex/resource/account.ex | Wynteres/acmex | 3ec899673320d14fc127a80531adc8a54a7a3450 | [
"MIT"
] | null | null | null | lib/acmex/resource/account.ex | Wynteres/acmex | 3ec899673320d14fc127a80531adc8a54a7a3450 | [
"MIT"
] | null | null | null | lib/acmex/resource/account.ex | Wynteres/acmex | 3ec899673320d14fc127a80531adc8a54a7a3450 | [
"MIT"
] | null | null | null | defmodule Acmex.Resource.Account do
@moduledoc """
This structure represents an account.
"""
@enforce_keys ~w(contact status url)a
defstruct @enforce_keys
@type t :: %__MODULE__{contact: [String.t()], status: String.t(), url: String.t()}
@doc """
Builds an account.
"""
@spec new(map()) :: t()
... | 20.777778 | 84 | 0.65508 |
21ae46bf6bbc25994176982bafde21fbbd11bb95 | 616 | ex | Elixir | lib/instream/data/write.ex | coder-from-hell/instream | f062e924b74a403e0f41b5374d9ed0e00ae59507 | [
"Apache-2.0"
] | 204 | 2015-06-04T06:38:57.000Z | 2022-01-30T08:56:33.000Z | lib/instream/data/write.ex | coder-from-hell/instream | f062e924b74a403e0f41b5374d9ed0e00ae59507 | [
"Apache-2.0"
] | 71 | 2015-05-24T02:08:28.000Z | 2022-01-10T17:13:27.000Z | lib/instream/data/write.ex | coder-from-hell/instream | f062e924b74a403e0f41b5374d9ed0e00ae59507 | [
"Apache-2.0"
] | 41 | 2015-09-05T21:24:04.000Z | 2021-11-10T02:52:48.000Z | defmodule Instream.Data.Write do
@moduledoc false
@doc """
Prepares a list of points for writing.
"""
@spec prepare(map | [map]) :: [map]
def prepare(points) when is_list(points), do: Enum.map(points, &maybe_unstruct/1)
def prepare(point) when is_map(point), do: [maybe_unstruct(point)]
defp maybe_unst... | 28 | 97 | 0.685065 |
21ae5ae65944947efee958b3b17e96267aab45ff | 88 | exs | Elixir | test/mathmatical_web/views/page_view_test.exs | shawnonthenet/mathmatical | d0f8d9e77dc71edfdc88776daca973fcd9cd106b | [
"Apache-2.0"
] | null | null | null | test/mathmatical_web/views/page_view_test.exs | shawnonthenet/mathmatical | d0f8d9e77dc71edfdc88776daca973fcd9cd106b | [
"Apache-2.0"
] | null | null | null | test/mathmatical_web/views/page_view_test.exs | shawnonthenet/mathmatical | d0f8d9e77dc71edfdc88776daca973fcd9cd106b | [
"Apache-2.0"
] | null | null | null | defmodule MathmaticalWeb.PageViewTest do
use MathmaticalWeb.ConnCase, async: true
end
| 22 | 42 | 0.840909 |
21ae6b693072bf290a4b1837bafe857b8122a5bd | 4,886 | ex | Elixir | lib/big_brother/storage/main/models/user.ex | luismasuelli/elixir-websockets-auth | 845b826c4f2b612565930771497188081e6af71c | [
"MIT"
] | null | null | null | lib/big_brother/storage/main/models/user.ex | luismasuelli/elixir-websockets-auth | 845b826c4f2b612565930771497188081e6af71c | [
"MIT"
] | null | null | null | lib/big_brother/storage/main/models/user.ex | luismasuelli/elixir-websockets-auth | 845b826c4f2b612565930771497188081e6af71c | [
"MIT"
] | null | null | null | defmodule BigBrother.Storage.Main.Models.User do
@moduledoc """
Users will perform many activities in the system
and will have permissions, belong to groups, and
perhaps be admins/staff.
"""
defmodule Error do
defexception [:message, :code]
end
alias BigBrother.Storage.Main.Models.Permission
... | 47.436893 | 122 | 0.658412 |
21ae9989827c1b47a2f90cebdbc31b13ca23fe3a | 545 | ex | Elixir | lib/amqp/channel.ex | rrrene/amqp | 46eb14f5d31f4cab3ec91984f5eae04f8066d5a2 | [
"MIT"
] | null | null | null | lib/amqp/channel.ex | rrrene/amqp | 46eb14f5d31f4cab3ec91984f5eae04f8066d5a2 | [
"MIT"
] | null | null | null | lib/amqp/channel.ex | rrrene/amqp | 46eb14f5d31f4cab3ec91984f5eae04f8066d5a2 | [
"MIT"
] | null | null | null | defmodule AMQP.Channel do
@moduledoc """
Functions to operate on Channels.
"""
alias __MODULE__
alias AMQP.Connection
defstruct [:conn, :pid]
@doc """
Opens a new Channel in a previously opened Connection.
"""
def open(%Connection{pid: pid} = conn) do
case :amqp_connection.open_channel(pid) d... | 20.961538 | 67 | 0.631193 |
21aec7b805d76dc57bd62cc8fa022a7e4423ad45 | 5,055 | exs | Elixir | test/ex_co2_mini/decoder_test.exs | wisq/ex_co2_mini | b949f6a13abcf27b78ec0cdeee16f746ab4b2360 | [
"Apache-2.0"
] | 1 | 2019-02-13T04:07:52.000Z | 2019-02-13T04:07:52.000Z | test/ex_co2_mini/decoder_test.exs | wisq/ex_co2_mini | b949f6a13abcf27b78ec0cdeee16f746ab4b2360 | [
"Apache-2.0"
] | null | null | null | test/ex_co2_mini/decoder_test.exs | wisq/ex_co2_mini | b949f6a13abcf27b78ec0cdeee16f746ab4b2360 | [
"Apache-2.0"
] | null | null | null | defmodule ExCO2Mini.DecoderTest do
use ExUnit.Case
doctest ExCO2Mini.Decoder
alias ExCO2Mini.Decoder
@sample_data [
{<<95, 228, 102, 32, 142, 70, 191, 186>>, {80, 701}},
{<<64, 228, 95, 32, 215, 70, 191, 66>>, {79, 7130}},
{<<187, 228, 119, 32, 181, 70, 191, 210>>, {82, 10009}},
{<<112, 228, 23... | 43.577586 | 61 | 0.490999 |
21aedb20e21ecc7d694e442ff759492ee0b2724e | 3,149 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/model/profile_filter_links.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/analytics/lib/google_api/analytics/v3/model/profile_filter_links.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/analytics/lib/google_api/analytics/v3/model/profile_filter_links.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... | 46.308824 | 300 | 0.708479 |
21aeee5970aa6ee08e38d8b926497ed4e7dac2a3 | 3,124 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_api_http_body.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_api_http_body.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_api_http_body.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.956522 | 136 | 0.707106 |
21af157d91153b711a87f1efdfd3fee8b1b7b835 | 517 | ex | Elixir | types/user_types.ex | blogsley/blogsley-absinthe | 7266f80a0638f8c30c37b37296ba5d78dcf8fb8b | [
"MIT"
] | 3 | 2020-01-23T06:37:18.000Z | 2020-12-05T08:31:00.000Z | types/user_types.ex | blogsley/blogsley-absinthe | 7266f80a0638f8c30c37b37296ba5d78dcf8fb8b | [
"MIT"
] | 16 | 2020-04-04T05:13:52.000Z | 2022-03-31T11:19:20.000Z | types/user_types.ex | blogsley/blogsley | 7266f80a0638f8c30c37b37296ba5d78dcf8fb8b | [
"MIT"
] | null | null | null | defmodule BlogsleyWeb.Types.UserTypes do
use Absinthe.Schema.Notation
object :user do
field :id, :id
field :username, :string
field :email, :string
#field(:posts, list_of(:blog_post), resolve: assoc(:blog_posts))
end
input_object :user_input do
field :username, :string
field :email, :s... | 19.148148 | 68 | 0.680851 |
21af22a7986217e4f078fcdda8f2bc90c7f01f7f | 139 | ex | Elixir | test/support/command_string.ex | tlux/fl_hook_client | 0cd74c1d8873eea8aa654710efe7aab97a1eec5c | [
"MIT"
] | 1 | 2022-01-26T21:06:26.000Z | 2022-01-26T21:06:26.000Z | test/support/command_string.ex | tlux/fl_hook_client | 0cd74c1d8873eea8aa654710efe7aab97a1eec5c | [
"MIT"
] | null | null | null | test/support/command_string.ex | tlux/fl_hook_client | 0cd74c1d8873eea8aa654710efe7aab97a1eec5c | [
"MIT"
] | null | null | null | defmodule FLHook.CommandString do
defstruct [:name]
defimpl FLHook.Command do
def to_cmd(cmd) do
cmd.name
end
end
end
| 13.9 | 33 | 0.683453 |
21af2df299331de19fe1ab81cb8f08899752b53e | 2,114 | exs | Elixir | test/phone/nanp_test.exs | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | test/phone/nanp_test.exs | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | test/phone/nanp_test.exs | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | defmodule Phone.NANPTest do
use ExUnit.Case, async: true
main_module = Phone.NANP
all_modules = [
Phone.NANP.AS, Phone.NANP.AI, Phone.NANP.AG, Phone.NANP.BS,
Phone.NANP.BB, Phone.NANP.BM, Phone.NANP.CA, Phone.NANP.DM,
Phone.NANP.DO, Phone.NANP.GD, Phone.NANP.GU, Phone.NANP.JM,
Phone.NANP.KN, Phon... | 37.087719 | 81 | 0.610691 |
21af31db307b84701d4d69274e7196c02c5eda4b | 667 | exs | Elixir | mix.exs | jamesmacaulay/channel | 978449a28a0e8298d8aa9ea17899bc8034b51933 | [
"MIT"
] | null | null | null | mix.exs | jamesmacaulay/channel | 978449a28a0e8298d8aa9ea17899bc8034b51933 | [
"MIT"
] | null | null | null | mix.exs | jamesmacaulay/channel | 978449a28a0e8298d8aa9ea17899bc8034b51933 | [
"MIT"
] | null | null | null | defmodule Channel.Mixfile do
use Mix.Project
def project do
[app: :channel,
version: "0.0.1",
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more... | 20.212121 | 77 | 0.608696 |
21af442c81c5f26dd77dcf581cae5f6f2bb33049 | 79 | ex | Elixir | elixir/elixir-sips/samples/twitter_playground/web/views/page_view.ex | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 2 | 2015-12-09T02:16:51.000Z | 2021-07-26T22:53:43.000Z | elixir/elixir-sips/samples/twitter_playground/web/views/page_view.ex | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | null | null | null | elixir/elixir-sips/samples/twitter_playground/web/views/page_view.ex | afronski/playground-erlang | 6ac4b58b2fd717260c22a33284547d44a9b5038e | [
"MIT"
] | 1 | 2016-05-08T18:40:31.000Z | 2016-05-08T18:40:31.000Z | defmodule TwitterPlayground.PageView do
use TwitterPlayground.Web, :view
end
| 19.75 | 39 | 0.835443 |
21af45488d5a6faa60e0173bca40184118539f43 | 784 | ex | Elixir | lib/blue_bird/route.ex | Bleachr/blue_bird | 5ea1d1f047ce379bc73b6d7892fdd44392b09569 | [
"MIT"
] | null | null | null | lib/blue_bird/route.ex | Bleachr/blue_bird | 5ea1d1f047ce379bc73b6d7892fdd44392b09569 | [
"MIT"
] | null | null | null | lib/blue_bird/route.ex | Bleachr/blue_bird | 5ea1d1f047ce379bc73b6d7892fdd44392b09569 | [
"MIT"
] | 1 | 2021-03-02T05:14:01.000Z | 2021-03-02T05:14:01.000Z | defmodule BlueBird.Route do
@moduledoc """
Defines the `Route` struct.
"""
defstruct [
:group,
:resource,
:title,
:description,
:note,
:warning,
method: "",
path: "",
parameters: [],
fields: [],
requests: []
]
@typedoc """
Type that represents the Route struct.... | 21.777778 | 47 | 0.506378 |
21af66046f70105a80dfeafc425e5152bb12d3e2 | 5,172 | ex | Elixir | clients/sql_admin/lib/google_api/sql_admin/v1/model/operation.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/sql_admin/lib/google_api/sql_admin/v1/model/operation.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/sql_admin/lib/google_api/sql_admin/v1/model/operation.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... | 56.217391 | 307 | 0.678654 |
21af7fb4d815be02f75f5245e03ce1699b223c34 | 402 | exs | Elixir | test/integration/imports/zigler_import_test.exs | jeremyowensboggs/zigler | d1ec07ae66db5c007ff7cfc8a820fb21c661bcea | [
"MIT"
] | 349 | 2019-10-02T07:21:17.000Z | 2022-03-21T17:50:06.000Z | test/integration/imports/zigler_import_test.exs | jeremyowensboggs/zigler | d1ec07ae66db5c007ff7cfc8a820fb21c661bcea | [
"MIT"
] | 223 | 2019-10-05T05:36:08.000Z | 2022-03-31T23:12:02.000Z | test/integration/imports/zigler_import_test.exs | jeremyowensboggs/zigler | d1ec07ae66db5c007ff7cfc8a820fb21c661bcea | [
"MIT"
] | 20 | 2019-10-08T16:29:39.000Z | 2022-03-31T15:07:20.000Z | defmodule ZiglerTest.Imports.ZiglerImportTest do
#
# test to make sure that "import" option syntax is correct.
#
use ExUnit.Case, async: true
use Zig, imports: [:defaults, test_import: "test_import.zig"]
~Z"""
/// nif: test_47/0
fn test_47() i64 {
return test_import.test_47();
}
"""
test "i... | 20.1 | 63 | 0.664179 |
21afa6346789283768a63f04c4eb0b90ab974708 | 5,786 | ex | Elixir | lib/mix/tasks/phx.gen.release.ex | aaronrenner/phoenix | 9148d0d3e248403a5a319d306826961db426fc32 | [
"MIT"
] | 1 | 2022-02-09T00:31:50.000Z | 2022-02-09T00:31:50.000Z | lib/mix/tasks/phx.gen.release.ex | aaronrenner/phoenix | 9148d0d3e248403a5a319d306826961db426fc32 | [
"MIT"
] | null | null | null | lib/mix/tasks/phx.gen.release.ex | aaronrenner/phoenix | 9148d0d3e248403a5a319d306826961db426fc32 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Phx.Gen.Release do
@shortdoc "Generates release files and optional Dockerfile for release-based deployments"
@moduledoc """
Generates release files and optional Dockerfile for release-based deployments.
The following release files are created:
* `lib/app_name/release.ex` - A release m... | 30.135417 | 97 | 0.65019 |
21afc57ae98d61564f76b676366c0bc27ffa696b | 1,513 | exs | Elixir | apps/astarte_housekeeping_api/config/config.exs | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | null | null | null | apps/astarte_housekeeping_api/config/config.exs | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 5 | 2019-11-18T17:06:34.000Z | 2019-12-19T10:03:59.000Z | apps/astarte_housekeeping_api/config/config.exs | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 2 | 2018-02-05T19:23:18.000Z | 2019-11-19T11:44:40.000Z | # 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.
use Mix.Config
# lager is used by rabbit_common.
# Silent it by setting the higher loglevel.
config ... | 36.02381 | 98 | 0.773959 |
21afcfecdb605ac4ed863f5cd8368c54e69bc0e0 | 1,518 | exs | Elixir | config/iex/beholder.exs | pacoguzman/dot-files | 316b9ad981667f2633081b8c830b4aed64a242c3 | [
"Unlicense"
] | null | null | null | config/iex/beholder.exs | pacoguzman/dot-files | 316b9ad981667f2633081b8c830b4aed64a242c3 | [
"Unlicense"
] | null | null | null | config/iex/beholder.exs | pacoguzman/dot-files | 316b9ad981667f2633081b8c830b4aed64a242c3 | [
"Unlicense"
] | null | null | null | # From: https://samuelmullen.com/articles/elixir-processes-observability/
defmodule Beholder do
defstruct memory: 0,
reductions: 0,
links: [],
monitors: [],
monitored_by: [],
registered_name: nil,
message_queue_len: 0,
messages: [],
... | 20.513514 | 94 | 0.555995 |
21b006a1f2e509646e385d28b423f4e0cd5a9e1c | 125 | ex | Elixir | lib/f1_calendar_bot.ex | evbogdanov/f1_calendar_bot | cc9fb51cea19062dde1cb1b1194406de4ff19938 | [
"BSD-3-Clause"
] | null | null | null | lib/f1_calendar_bot.ex | evbogdanov/f1_calendar_bot | cc9fb51cea19062dde1cb1b1194406de4ff19938 | [
"BSD-3-Clause"
] | null | null | null | lib/f1_calendar_bot.ex | evbogdanov/f1_calendar_bot | cc9fb51cea19062dde1cb1b1194406de4ff19938 | [
"BSD-3-Clause"
] | null | null | null | defmodule F1CalendarBot do
use Application
def start(_type, _args) do
F1CalendarBot.Supervisor.start_link
end
end
| 15.625 | 39 | 0.776 |
21b00a057f0c409c75aa52a144125e96f7d3d65b | 1,827 | ex | Elixir | lib/licensir/file_analyzer.ex | gerbal/licensir | 7b13ad14121e8646001d26f4fc0113d6e7d6a2c5 | [
"MIT"
] | null | null | null | lib/licensir/file_analyzer.ex | gerbal/licensir | 7b13ad14121e8646001d26f4fc0113d6e7d6a2c5 | [
"MIT"
] | null | null | null | lib/licensir/file_analyzer.ex | gerbal/licensir | 7b13ad14121e8646001d26f4fc0113d6e7d6a2c5 | [
"MIT"
] | null | null | null | defmodule Licensir.FileAnalyzer do
# The file names to check for licenses
@license_files ["LICENSE", "LICENSE.md", "LICENSE.txt"]
# The files that contain the actual text for each license
@files [
apache2: ["Apache2_text.txt", "Apache2_text.variant-2.txt", "Apache2_url.txt"],
bsd: ["BSD-3.txt", "BSD-3.... | 28.107692 | 83 | 0.589491 |
21b00a88a38cc1fead9a64ac262a5506a43651a1 | 143 | ex | Elixir | lib/platform_web/controllers/page_controller.ex | joseluis8906/platform | f1b4c49b5de60dd880f0075ec3020aef03c557af | [
"Apache-2.0"
] | null | null | null | lib/platform_web/controllers/page_controller.ex | joseluis8906/platform | f1b4c49b5de60dd880f0075ec3020aef03c557af | [
"Apache-2.0"
] | 1 | 2021-05-11T14:48:01.000Z | 2021-05-11T14:48:01.000Z | lib/platform_web/controllers/page_controller.ex | joseluis8906/platform | f1b4c49b5de60dd880f0075ec3020aef03c557af | [
"Apache-2.0"
] | null | null | null | defmodule PlatformWeb.PageController do
use PlatformWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 17.875 | 39 | 0.741259 |
21b0330eda21443069dc8039ec6cf64e62bb483d | 2,361 | ex | Elixir | lib/ex_vatcheck/countries.ex | mtanzi/ex_vatcheck | 936b6aa1d335fac788092d49c7729373188dd58c | [
"MIT"
] | 10 | 2020-01-13T18:56:34.000Z | 2022-03-23T14:52:55.000Z | lib/ex_vatcheck/countries.ex | mtanzi/ex_vatcheck | 936b6aa1d335fac788092d49c7729373188dd58c | [
"MIT"
] | 3 | 2021-03-19T16:31:59.000Z | 2021-12-10T10:18:53.000Z | lib/ex_vatcheck/countries.ex | mtanzi/ex_vatcheck | 936b6aa1d335fac788092d49c7729373188dd58c | [
"MIT"
] | 2 | 2020-09-24T16:39:42.000Z | 2021-03-19T20:48:15.000Z | defmodule ExVatcheck.Countries do
@moduledoc """
A module for checking to see whether or not a VAT matches one of the expected
patterns for EU countries. Countries handled include:
```
AT: Austria
BE: Belgium
BG: Bulgaria
CY: Cyprus
CZ: Czech Republic
DE: Germany
DK: Denmark
EE: Estonia
EL: G... | 26.233333 | 91 | 0.52266 |
21b04d2f8da3d681a4b68ba81dfc5a398a02874c | 894 | exs | Elixir | test/hashids_test.exs | kianmeng/hashids-elixir | aa938d7780e07dee80cc8e9f08e6c5d8a590632d | [
"MIT"
] | 239 | 2015-01-16T23:04:29.000Z | 2022-02-07T21:57:57.000Z | test/hashids_test.exs | kianmeng/hashids-elixir | aa938d7780e07dee80cc8e9f08e6c5d8a590632d | [
"MIT"
] | 14 | 2015-02-20T14:24:41.000Z | 2021-04-17T05:43:44.000Z | test/hashids_test.exs | kianmeng/hashids-elixir | aa938d7780e07dee80cc8e9f08e6c5d8a590632d | [
"MIT"
] | 19 | 2015-05-07T23:38:51.000Z | 2021-05-09T12:19:41.000Z | defmodule HashidsTest.Encode do
use ExUnit.Case
import HashidsTest.Helpers
testcase_from_fixture "default_salt"
testcase_from_fixture "default_salt_list"
testcase_from_fixture "min_length_3"
testcase_from_fixture "min_length_20"
testcase_from_fixture "custom_salt_1"
testcase_from_fixture "custom_salt_... | 30.827586 | 52 | 0.822148 |
21b09f666afe523ec733b45f3ef2aa5d1479e93f | 1,654 | ex | Elixir | clients/docs/lib/google_api/docs/v1/model/link.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/docs/lib/google_api/docs/v1/model/link.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/docs/lib/google_api/docs/v1/model/link.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... | 31.207547 | 98 | 0.695889 |
21b0c0a01d3b4d90eb0405b358920b5577d7d8ab | 124 | ex | Elixir | lib/google_fit/activity_type/running.ex | tsubery/google_fit | 7578b832c560b3b4a78059ac86af6e111812712e | [
"Apache-2.0"
] | 2 | 2017-02-01T13:51:26.000Z | 2019-04-12T11:37:25.000Z | lib/google_fit/activity_type/running.ex | tsubery/google_fit | 7578b832c560b3b4a78059ac86af6e111812712e | [
"Apache-2.0"
] | null | null | null | lib/google_fit/activity_type/running.ex | tsubery/google_fit | 7578b832c560b3b4a78059ac86af6e111812712e | [
"Apache-2.0"
] | null | null | null | defmodule GoogleFit.ActivityType.Running do
@moduledoc false
def code, do: GoogleFit.ActivityType.code(__MODULE__)
end
| 20.666667 | 55 | 0.806452 |
21b0c30fad5054ddee4de369fad71070c1ea6b24 | 1,438 | exs | Elixir | mix.exs | elixir-toniq/mentat | 8561171292af577d6d52f26f45b423dd6bd85db0 | [
"MIT"
] | 5 | 2021-10-14T19:38:10.000Z | 2022-02-15T19:37:15.000Z | mix.exs | elixir-toniq/mentat | 8561171292af577d6d52f26f45b423dd6bd85db0 | [
"MIT"
] | 1 | 2022-01-21T22:13:19.000Z | 2022-01-26T13:33:58.000Z | mix.exs | elixir-toniq/mentat | 8561171292af577d6d52f26f45b423dd6bd85db0 | [
"MIT"
] | 1 | 2022-01-24T17:21:19.000Z | 2022-01-24T17:21:19.000Z | defmodule Mentat.MixProject do
use Mix.Project
@source_url "https://github.com/keathley/mentat"
@version "0.7.1"
def project do
[
app: :mentat,
version: @version,
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(... | 20.542857 | 69 | 0.530598 |
21b10c93969952c2066d936b18fadcf23bfd8718 | 2,739 | exs | Elixir | exercises/simple-cipher/simple_cipher_test.exs | darktef/elixir-exercism | bcaae351486b1405f0a01cd33b4d39555546298e | [
"MIT"
] | null | null | null | exercises/simple-cipher/simple_cipher_test.exs | darktef/elixir-exercism | bcaae351486b1405f0a01cd33b4d39555546298e | [
"MIT"
] | null | null | null | exercises/simple-cipher/simple_cipher_test.exs | darktef/elixir-exercism | bcaae351486b1405f0a01cd33b4d39555546298e | [
"MIT"
] | null | null | null | if !System.get_env("EXERCISM_TEST_EXAMPLES") do
Code.load_file("simple_cipher.exs", __DIR__)
end
ExUnit.start
ExUnit.configure trace: true, exclude: :pending
defmodule SimpleCipherTest do
use ExUnit.Case
#@tag :pending
test "encoding with 'a' returns the original text" do
assert SimpleCipher.encode("a", ... | 30.433333 | 85 | 0.66046 |
21b111ea5be84135e7e3d391e79b96c53323c073 | 342 | exs | Elixir | priv/repo/migrations/20191026212050_create_artworks.exs | EhsanZ/artsy | de1cd2eb7f53ff33569223cb7d2561e39ea7a372 | [
"MIT"
] | 1 | 2019-10-26T07:17:24.000Z | 2019-10-26T07:17:24.000Z | priv/repo/migrations/20191026212050_create_artworks.exs | EhsanZ/artsy | de1cd2eb7f53ff33569223cb7d2561e39ea7a372 | [
"MIT"
] | 2 | 2021-03-09T21:15:44.000Z | 2021-05-10T17:59:48.000Z | priv/repo/migrations/20191026212050_create_artworks.exs | EhsanZ/artsy | de1cd2eb7f53ff33569223cb7d2561e39ea7a372 | [
"MIT"
] | null | null | null | defmodule Artsy.Repo.Migrations.CreateArtworks do
use Ecto.Migration
def change do
create table(:artworks, primary_key: false) do
add :id, :string, size: 100, primary_key: true, autogenerate: false
add :image_url, :text
add :display_name, :text
add :dimentions, :string
timestamps... | 21.375 | 73 | 0.675439 |
21b113e19910f16d7e157e909941ba69b49706ef | 3,430 | exs | Elixir | test/new_relic/plug/instrumentation_test.exs | romul/newrelic.ex | 6277ea8f158cf34638bd95c62d7d33758c7d4a0a | [
"MIT"
] | 67 | 2016-10-16T19:32:15.000Z | 2020-09-15T20:43:13.000Z | test/new_relic/plug/instrumentation_test.exs | romul/newrelic.ex | 6277ea8f158cf34638bd95c62d7d33758c7d4a0a | [
"MIT"
] | 15 | 2016-11-01T23:00:25.000Z | 2019-08-21T14:49:38.000Z | test/new_relic/plug/instrumentation_test.exs | romul/newrelic.ex | 6277ea8f158cf34638bd95c62d7d33758c7d4a0a | [
"MIT"
] | 25 | 2016-11-01T20:35:33.000Z | 2021-05-10T06:58:30.000Z | defmodule NewRelic.Plug.InstrumentationTest do
use ExUnit.Case, async: false
import TestHelpers.Assertions
import Plug.Conn
require Ecto.Query
alias NewRelic.Plug.Instrumentation
defmodule FakeModel do
use Ecto.Schema
schema "fake_models" do
end
end
@transaction_name "TestTransaction"
... | 32.358491 | 101 | 0.684548 |
21b12a088bff51a24c6c255baa7a206c16f8062c | 374 | ex | Elixir | web/views/error_view.ex | herald-it/goncord.ex | 2f58706231a28caa067509c5df43f5c915c46320 | [
"MIT"
] | null | null | null | web/views/error_view.ex | herald-it/goncord.ex | 2f58706231a28caa067509c5df43f5c915c46320 | [
"MIT"
] | 5 | 2017-03-31T06:48:29.000Z | 2018-12-20T03:40:59.000Z | web/views/error_view.ex | herald-it/goncord.ex | 2f58706231a28caa067509c5df43f5c915c46320 | [
"MIT"
] | 1 | 2019-01-20T10:01:27.000Z | 2019-01-20T10:01:27.000Z | defmodule Goncord.ErrorView do
use Goncord.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Internal server error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_template,... | 20.777778 | 47 | 0.697861 |
21b13356320c6e8eeebd0766eb855b2846b29172 | 132 | exs | Elixir | priv/repo/migrations/20200122220220_remove_audit_table.exs | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 83 | 2018-05-31T14:49:10.000Z | 2022-03-27T16:49:49.000Z | priv/repo/migrations/20200122220220_remove_audit_table.exs | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 267 | 2018-05-22T23:19:02.000Z | 2022-03-31T04:31:06.000Z | priv/repo/migrations/20200122220220_remove_audit_table.exs | maco2035/console | 2a9a65678b8c671c7d92cdb62dfcfc71b84957c5 | [
"Apache-2.0"
] | 18 | 2018-11-20T05:15:54.000Z | 2022-03-28T08:20:13.000Z | defmodule Console.Repo.Migrations.RemoveAuditTable do
use Ecto.Migration
def change do
drop table(:audit_trails)
end
end
| 16.5 | 53 | 0.772727 |
21b1473fefc1c6d3515cf8ba955972e94f064996 | 887 | ex | Elixir | apps/kv_rest_api/test/support/conn_case.ex | WhiteRookPL/production-debugging-workshop.ex | 26e81d14ba39c33764ddaee5d6d65a6061f4e823 | [
"MIT"
] | 5 | 2017-05-03T08:05:54.000Z | 2022-03-11T04:11:00.000Z | apps/kv_rest_api/test/support/conn_case.ex | WhiteRookPL/production-debugging-workshop.ex | 26e81d14ba39c33764ddaee5d6d65a6061f4e823 | [
"MIT"
] | null | null | null | apps/kv_rest_api/test/support/conn_case.ex | WhiteRookPL/production-debugging-workshop.ex | 26e81d14ba39c33764ddaee5d6d65a6061f4e823 | [
"MIT"
] | null | null | null | defmodule KV.RestAPI.Web.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if... | 25.342857 | 58 | 0.726043 |
21b1802c601214083eecef67b6001bfaf934efae | 683 | ex | Elixir | lib/ex_health/plug.ex | kianmeng/ex_health | f7311d5e23e8cfbb6dd91381a52a420345331535 | [
"MIT"
] | null | null | null | lib/ex_health/plug.ex | kianmeng/ex_health | f7311d5e23e8cfbb6dd91381a52a420345331535 | [
"MIT"
] | null | null | null | lib/ex_health/plug.ex | kianmeng/ex_health | f7311d5e23e8cfbb6dd91381a52a420345331535 | [
"MIT"
] | null | null | null | defmodule ExHealth.Plug do
@moduledoc """
A plug for integerating into a web application.
## Examples:
In Phoenix `router.ex`:
scope "/" do
forward("/_health", ExHealth.Plug)
end
Please ensure to use `scope/2`, otherwise the alias will not let you access
the ExHealth namespace
For ... | 22.032258 | 86 | 0.657394 |
21b1b32cd24bad48d0828827a392197328186097 | 983 | ex | Elixir | lib/majudge/sleeprds/keep_alive.ex | coltonw/majudge | 4f81a66abe6a2e82f42131982e7a9b26951b9124 | [
"MIT"
] | null | null | null | lib/majudge/sleeprds/keep_alive.ex | coltonw/majudge | 4f81a66abe6a2e82f42131982e7a9b26951b9124 | [
"MIT"
] | 1 | 2021-05-10T04:23:56.000Z | 2021-05-10T04:23:56.000Z | lib/majudge/sleeprds/keep_alive.ex | coltonw/majudge | 4f81a66abe6a2e82f42131982e7a9b26951b9124 | [
"MIT"
] | null | null | null | defmodule Majudge.SleepRDS.KeepAlive do
use GenServer
alias Majudge.SleepRDS
@impl true
def init(:ok) do
{:ok, DateTime.utc_now()}
end
def start_link(_arg) do
Process.send_after(Majudge.SleepRDS.KeepAlive, :check_date, 1_000)
GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
end
@i... | 22.860465 | 89 | 0.68057 |
21b1b92bbfda5c11df6f66691b052468cced0227 | 792 | ex | Elixir | test/support/channel_case.ex | marc-bouvier/eisenhower_matrix | 7de26eec4964e45ceab7cef3d6b14e1519d70a8e | [
"MIT"
] | null | null | null | test/support/channel_case.ex | marc-bouvier/eisenhower_matrix | 7de26eec4964e45ceab7cef3d6b14e1519d70a8e | [
"MIT"
] | null | null | null | test/support/channel_case.ex | marc-bouvier/eisenhower_matrix | 7de26eec4964e45ceab7cef3d6b14e1519d70a8e | [
"MIT"
] | null | null | null | defmodule EisenhowerMatrixWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if the test case int... | 23.294118 | 58 | 0.732323 |
21b1f9ac879d4e764742494429ce0f31dcab5dfa | 2,015 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/inventory_items_list_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/inventory_items_list_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/inventory_items_list_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.018868 | 162 | 0.737965 |
21b210277307417e30a99b8d98b8f7c7b14e15c1 | 1,706 | exs | Elixir | apps/util/test/enum_helpers_test.exs | paulswartz/dotcom | 73e43e7c61afd96b1928608ce8316a7ed0eb1440 | [
"MIT"
] | null | null | null | apps/util/test/enum_helpers_test.exs | paulswartz/dotcom | 73e43e7c61afd96b1928608ce8316a7ed0eb1440 | [
"MIT"
] | 65 | 2021-05-06T18:38:33.000Z | 2022-03-28T20:50:04.000Z | apps/util/test/enum_helpers_test.exs | paulswartz/dotcom | 73e43e7c61afd96b1928608ce8316a7ed0eb1440 | [
"MIT"
] | null | null | null | defmodule Util.EnumHelpersTest do
use ExUnit.Case, async: true
use Quixir
import Util.EnumHelpers
doctest Util.EnumHelpers
describe "with_first_last/1" do
test "doesn't change the order" do
ptest l: list(int()) do
assert l == l |> with_first_last() |> Enum.map(&elem(&1, 0))
end
e... | 29.413793 | 80 | 0.575029 |
21b2356244ee82ecbfed9510dffacc6251b0cb44 | 416 | ex | Elixir | lib/geonames/endpoints/siblings.ex | vheathen/geonames-elixir | b47ef0e38462c3bdbfb1a5b710f53993d9d3056d | [
"MIT"
] | null | null | null | lib/geonames/endpoints/siblings.ex | vheathen/geonames-elixir | b47ef0e38462c3bdbfb1a5b710f53993d9d3056d | [
"MIT"
] | null | null | null | lib/geonames/endpoints/siblings.ex | vheathen/geonames-elixir | b47ef0e38462c3bdbfb1a5b710f53993d9d3056d | [
"MIT"
] | null | null | null | defmodule Geonames.Endpoints.Siblings do
@moduledoc false
@behaviour Geonames.Endpoint
@default_arguments %{
geonameId: nil
}
def endpoint, do: "siblingsJSON"
def available_url_parameters, do: [:geonameId]
def required_url_parameters, do: [:geonameId]
def function_name, do: :siblings
def url_ar... | 21.894737 | 53 | 0.757212 |
21b23be33b67f267e306ce1d64c6622fd951b1a9 | 934 | ex | Elixir | elixir-in-action/ch-7/persistable_todo_cache/lib/todo/database_worker.ex | danurna/elixir-playground | 6acb40e513d8ab324368b3ec5151b0a4fd88f849 | [
"MIT"
] | null | null | null | elixir-in-action/ch-7/persistable_todo_cache/lib/todo/database_worker.ex | danurna/elixir-playground | 6acb40e513d8ab324368b3ec5151b0a4fd88f849 | [
"MIT"
] | null | null | null | elixir-in-action/ch-7/persistable_todo_cache/lib/todo/database_worker.ex | danurna/elixir-playground | 6acb40e513d8ab324368b3ec5151b0a4fd88f849 | [
"MIT"
] | null | null | null | defmodule Todo.DatabaseWorker do
use GenServer
def start(db_folder) do
GenServer.start(__MODULE__, db_folder)
end
def store(worker, key, data) do
GenServer.cast(worker, {:store, key, data})
end
def get(worker, key) do
GenServer.call(worker, {:get, key})
end
@impl GenServer
def init... | 19.458333 | 58 | 0.635974 |
21b247d1c8ee9bfe03a5fbb15ca75c7d2ae80ecb | 1,679 | ex | Elixir | lib/surface/directive/slot_props.ex | inspired-consulting/surface | 3a6a3a454704a9aaf83cd23a6393cbd09bdca8bd | [
"MIT"
] | 1,161 | 2019-12-12T02:30:52.000Z | 2021-03-11T17:55:44.000Z | lib/surface/directive/slot_props.ex | inspired-consulting/surface | 3a6a3a454704a9aaf83cd23a6393cbd09bdca8bd | [
"MIT"
] | 244 | 2019-12-12T14:05:07.000Z | 2021-03-11T07:04:17.000Z | lib/surface/directive/slot_props.ex | inspired-consulting/surface | 3a6a3a454704a9aaf83cd23a6393cbd09bdca8bd | [
"MIT"
] | 73 | 2019-12-12T13:57:41.000Z | 2021-03-11T21:46:10.000Z | defmodule Surface.Directive.SlotArgs do
use Surface.Directive
def extract({":args", {:attribute_expr, value, expr_meta}, attr_meta}, meta) do
%AST.Directive{
module: __MODULE__,
name: :args,
value: directive_value(value, Helpers.to_meta(expr_meta, meta)),
meta: Helpers.to_meta(attr_meta... | 31.092593 | 108 | 0.662895 |
21b27570174ce48b38709c64d17c166eaf0c76ea | 659 | ex | Elixir | lib/bot/commands/get.ex | iGalaxyYT/lanyard | ff9beca4cae2030bea97b9268fa0598465dbb10c | [
"MIT"
] | null | null | null | lib/bot/commands/get.ex | iGalaxyYT/lanyard | ff9beca4cae2030bea97b9268fa0598465dbb10c | [
"MIT"
] | null | null | null | lib/bot/commands/get.ex | iGalaxyYT/lanyard | ff9beca4cae2030bea97b9268fa0598465dbb10c | [
"MIT"
] | null | null | null | defmodule Lanyard.DiscordBot.Commands.Get do
alias Lanyard.DiscordBot.DiscordApi
def handle([key], payload) do
case Lanyard.KV.Interface.get(payload["author"]["id"], key) do
{:ok, v} ->
DiscordApi.send_message(
payload["channel_id"],
":white_check_mark: Key: `#{key}` | Value: ... | 25.346154 | 96 | 0.590288 |
21b2796d02403138071ee1c7b0f0a997612eb12f | 487 | ex | Elixir | lib/Easypost/pickup_rate.ex | Dania02525/easypost | bec95e2621ab31ecfb930607f83f5da15674ab77 | [
"MIT"
] | 7 | 2015-08-06T12:54:06.000Z | 2021-01-07T18:30:42.000Z | lib/Easypost/pickup_rate.ex | Dania02525/easypost | bec95e2621ab31ecfb930607f83f5da15674ab77 | [
"MIT"
] | 2 | 2016-07-12T13:40:59.000Z | 2018-09-01T00:12:20.000Z | lib/Easypost/pickup_rate.ex | Dania02525/easypost | bec95e2621ab31ecfb930607f83f5da15674ab77 | [
"MIT"
] | 5 | 2016-07-11T22:30:52.000Z | 2021-07-15T10:42:57.000Z | defmodule Easypost.PickupRate do
defstruct [
created_at: "",
currency: "",
mode: "",
rate: 0,
service: "",
updated_at: "",
carrier: "",
pickup_id: "",
id: "",
object: "PickupRate"
]
@type t :: %__MODULE__{
created_at: String.t,
currency: String.t,
mode: Strin... | 16.793103 | 33 | 0.554415 |
21b296b2325325bdf12570fb46084dc3ce6e54e7 | 1,085 | exs | Elixir | mix.exs | IanLuites/skoll | 65792aa5ea7e00aea3c55be843eacfb0771e6350 | [
"MIT"
] | null | null | null | mix.exs | IanLuites/skoll | 65792aa5ea7e00aea3c55be843eacfb0771e6350 | [
"MIT"
] | 1 | 2018-01-29T13:32:45.000Z | 2018-01-29T13:55:15.000Z | mix.exs | IanLuites/skoll | 65792aa5ea7e00aea3c55be843eacfb0771e6350 | [
"MIT"
] | null | null | null | defmodule Skoll.MixProject do
use Mix.Project
def project do
[
app: :skoll,
description: "Data driven API design.",
version: "0.0.1",
elixir: "~> 1.4",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
# Docs
name: "Skoll",
sourc... | 19.727273 | 59 | 0.522581 |
21b2b0eb1f6cf2ac21b5edc7fae3864364cb5396 | 131 | exs | Elixir | test/ip_checksum_test.exs | davaeron/icmp_ping | 2a6fa2ee69a6c5a995c030f88a1530ad187745f8 | [
"Apache-2.0"
] | null | null | null | test/ip_checksum_test.exs | davaeron/icmp_ping | 2a6fa2ee69a6c5a995c030f88a1530ad187745f8 | [
"Apache-2.0"
] | null | null | null | test/ip_checksum_test.exs | davaeron/icmp_ping | 2a6fa2ee69a6c5a995c030f88a1530ad187745f8 | [
"Apache-2.0"
] | null | null | null | # defmodule ICMPPing.IPChecksumTest do
# @moduledoc false
# use ExUnit.Case, async: true
# doctest ICMPPing.IPChecksum
# end
| 21.833333 | 38 | 0.740458 |
21b2c203541cffc2de9b55eda4d27ea5fa791687 | 1,735 | ex | Elixir | clients/books/lib/google_api/books/v1/model/discoveryclusters.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/discoveryclusters.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/discoveryclusters.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 32.12963 | 87 | 0.72853 |
21b2c7a968d2c4b27506af71f0be382cc47bd091 | 796 | ex | Elixir | lib/scrollable/utility/wheel.ex | vacarsu/flo_ui | 2605f2c826e8f21d16d11e84f0468bd823b5f5e1 | [
"MIT"
] | null | null | null | lib/scrollable/utility/wheel.ex | vacarsu/flo_ui | 2605f2c826e8f21d16d11e84f0468bd823b5f5e1 | [
"MIT"
] | null | null | null | lib/scrollable/utility/wheel.ex | vacarsu/flo_ui | 2605f2c826e8f21d16d11e84f0468bd823b5f5e1 | [
"MIT"
] | null | null | null | defmodule FloUI.Scrollable.Wheel do
@type wheel_state :: :idle | :scrolling
@type t :: %__MODULE__{
wheel_state: wheel_state,
offset: FloUI.Scrollable.Direction.t()
}
defstruct wheel_state: :idle,
offset: {:horizontal, 0}
@spec scrolling?(t) :: boolean
def scrolling?... | 25.677419 | 63 | 0.646985 |
21b334a5862eb8773c2237e53ebf680150a282e5 | 681 | ex | Elixir | lib/exfile/identify.ex | sreecodeslayer/exfile | c88288563d688fb47a6fcae190dbe1b8eb64bf9b | [
"MIT"
] | 100 | 2015-12-25T12:38:41.000Z | 2021-12-31T11:41:20.000Z | lib/exfile/identify.ex | sreecodeslayer/exfile | c88288563d688fb47a6fcae190dbe1b8eb64bf9b | [
"MIT"
] | 62 | 2015-12-26T01:43:54.000Z | 2019-09-15T16:16:35.000Z | lib/exfile/identify.ex | sreecodeslayer/exfile | c88288563d688fb47a6fcae190dbe1b8eb64bf9b | [
"MIT"
] | 22 | 2016-04-19T11:54:38.000Z | 2021-09-29T14:48:46.000Z | defmodule Exfile.Identify do
@moduledoc """
Identifies the mime type of a local file
"""
@doc """
Identifies the mime type of a local file
"""
@spec mime_type(Path.t) :: {:ok, String.t} | :error
def mime_type(path) do
case System.cmd(file_cmd(), ["--mime-type", "-b", path]) do
{out, 0} ->
... | 21.967742 | 63 | 0.596182 |
21b335fe7efcabdbdd8c471648c25eb050b038d6 | 222 | ex | Elixir | lib/obank_web/plugs/set_user.ex | o-marchi/o-bank-api | fd4595a6fbffb89a0ca4c2dd9aa8b4f92e700aa4 | [
"MIT"
] | null | null | null | lib/obank_web/plugs/set_user.ex | o-marchi/o-bank-api | fd4595a6fbffb89a0ca4c2dd9aa8b4f92e700aa4 | [
"MIT"
] | null | null | null | lib/obank_web/plugs/set_user.ex | o-marchi/o-bank-api | fd4595a6fbffb89a0ca4c2dd9aa8b4f92e700aa4 | [
"MIT"
] | null | null | null | defmodule ObankWeb.Plugs.SetUser do
import Plug.Conn
alias Obank.Guardian
def init(_params), do: _params
def call(conn, _params) do
user = Guardian.Plug.current_resource(conn)
assign(conn, :user, user)
end
end | 17.076923 | 45 | 0.747748 |
21b33ab0c4b1cc5a5996c8e36eb95fd018e804a0 | 1,757 | exs | Elixir | test/changelog/transcripts/parser_test.exs | d-m-u/changelog.com | bb0d6ac6d29a3d64dbeb44892f9a8a1ff3ba6325 | [
"MIT"
] | 1 | 2021-01-06T18:21:45.000Z | 2021-01-06T18:21:45.000Z | test/changelog/transcripts/parser_test.exs | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | null | null | null | test/changelog/transcripts/parser_test.exs | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | null | null | null | defmodule Changelog.Transcripts.ParserTest do
use ExUnit.Case
import Changelog.TestCase
alias Changelog.Person
alias Changelog.Transcripts.Parser
test "parsing an empty string" do
parsed = Parser.parse_text("")
assert Enum.empty?(parsed)
end
test "parsing nil" do
parsed = Parser.parse_text(... | 24.402778 | 79 | 0.611269 |
21b34c02832f8c0fa4dbceb50a285074c260fae3 | 1,111 | exs | Elixir | config/config.exs | rijavskii/ex_ari | 1fd5eabd9b4cb815e260867b0190a7fe635ee38a | [
"MIT"
] | 13 | 2020-04-17T16:48:00.000Z | 2022-03-25T19:16:51.000Z | config/config.exs | rijavskii/ex_ari | 1fd5eabd9b4cb815e260867b0190a7fe635ee38a | [
"MIT"
] | 1 | 2020-04-02T12:18:59.000Z | 2020-04-02T12:18:59.000Z | config/config.exs | rijavskii/ex_ari | 1fd5eabd9b4cb815e260867b0190a7fe635ee38a | [
"MIT"
] | 7 | 2020-04-28T19:45:50.000Z | 2022-03-25T21:42:03.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... | 35.83871 | 73 | 0.752475 |
21b3742ed66c06387829ad6c3429e28975dba813 | 4,178 | ex | Elixir | lib/plaid/utils.ex | mrhooray/plaid-elixir | 3fe1a3794c49cfa50af2b372990394f14c5b8054 | [
"MIT"
] | null | null | null | lib/plaid/utils.ex | mrhooray/plaid-elixir | 3fe1a3794c49cfa50af2b372990394f14c5b8054 | [
"MIT"
] | null | null | null | lib/plaid/utils.ex | mrhooray/plaid-elixir | 3fe1a3794c49cfa50af2b372990394f14c5b8054 | [
"MIT"
] | null | null | null | defmodule Plaid.Utils do
@moduledoc """
Utility functions.
"""
@doc """
Handles Plaid response and maps to the correct data structure.
"""
@spec handle_resp({:ok, HTTPoison.Response.t()} | {:error, HTTPoison.Error.t()}, atom) ::
{:ok, any} | {:error, Plaid.Error.t() | HTTPoison.Error.t()}
def... | 26.1125 | 91 | 0.570369 |
21b3771c5b2e352063049768564e0b1e1054d00e | 1,462 | ex | Elixir | apps/ewallet/lib/ewallet/policies/admin_user_policy.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/ewallet/lib/ewallet/policies/admin_user_policy.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/policies/admin_user_policy.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | defmodule EWallet.AdminUserPolicy do
@moduledoc """
The authorization policy for accounts.
"""
@behaviour Bodyguard.Policy
alias EWallet.PolicyHelper
alias EWalletDB.{Account, Membership, User}
# Allowed for any role, filtering is
# handled at the controller level to only return
# allowed records. Sh... | 31.106383 | 87 | 0.737346 |
21b396a7d85c9965a8f5e111659ea0cc162a305b | 447 | exs | Elixir | priv/repo/migrations/20140128213543_add_requirements_table.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 691 | 2017-03-08T09:15:45.000Z | 2022-03-23T22:04:47.000Z | priv/repo/migrations/20140128213543_add_requirements_table.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 491 | 2017-03-07T12:58:42.000Z | 2022-03-29T23:32:54.000Z | priv/repo/migrations/20140128213543_add_requirements_table.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 200 | 2017-03-12T23:03:39.000Z | 2022-03-05T17:55:52.000Z | defmodule Hexpm.Repo.Migrations.AddRequirementsTable do
use Ecto.Migration
def up() do
execute("""
CREATE TABLE requirements (
id serial PRIMARY KEY,
release_id integer REFERENCES releases,
dependency_id integer REFERENCES packages,
requirement text)
""")
execute(... | 22.35 | 56 | 0.682327 |
21b3f4c0f951f7e7b7cd0bf1f20000574163793b | 946 | ex | Elixir | debian_hdfs/postrm.ex | sreedishps/scribe | 033b701f665b195229b8b93505ccb4cd2f8ac0f7 | [
"Apache-2.0"
] | 7 | 2015-01-29T14:41:28.000Z | 2021-03-09T01:29:58.000Z | debian_hdfs/postrm.ex | sreedishps/scribe | 033b701f665b195229b8b93505ccb4cd2f8ac0f7 | [
"Apache-2.0"
] | 2 | 2015-03-23T03:59:12.000Z | 2015-03-27T07:12:41.000Z | debian_hdfs/postrm.ex | sreedishps/scribe | 033b701f665b195229b8b93505ccb4cd2f8ac0f7 | [
"Apache-2.0"
] | 5 | 2015-03-03T06:54:00.000Z | 2018-10-16T21:08:02.000Z | #!/bin/sh
# postrm script for scribe-server-hdfs-orig
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `ab... | 24.894737 | 78 | 0.631078 |
21b41e07266bb49c464a513d5f38790d498f92f3 | 130 | exs | Elixir | apps/ewallet_config/config/prod.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet_config/config/prod.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet_config/config/prod.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | use Mix.Config
config :ewallet_config, EWalletConfig.Repo,
url: {:system, "DATABASE_URL", "postgres://localhost/ewallet_prod"}
| 26 | 69 | 0.761538 |
21b43c2613ba0664960248aae722633de13eda09 | 5,739 | ex | Elixir | lib/surface/compiler/parse_tree_translator.ex | simonmcconnell/surface | 7a738639e6befed1db953fa71df67e1a4bbdcd28 | [
"MIT"
] | null | null | null | lib/surface/compiler/parse_tree_translator.ex | simonmcconnell/surface | 7a738639e6befed1db953fa71df67e1a4bbdcd28 | [
"MIT"
] | null | null | null | lib/surface/compiler/parse_tree_translator.ex | simonmcconnell/surface | 7a738639e6befed1db953fa71df67e1a4bbdcd28 | [
"MIT"
] | null | null | null | defmodule Surface.Compiler.ParseTreeTranslator do
@behaviour Surface.Compiler.NodeTranslator
alias Surface.IOHelper
alias Surface.Compiler.Helpers
def handle_init(state), do: state
def handle_expression(expression, meta, state) do
{{:expr, expression, to_meta(meta)}, state}
end
def handle_tagged_e... | 25.968326 | 93 | 0.624325 |
21b440edfe7e871b874eff9f9138f515eb234c4c | 1,881 | ex | Elixir | chapter_7/todo/lib/todo/list.ex | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | 3 | 2021-04-22T11:55:58.000Z | 2021-08-22T13:19:56.000Z | chapter_7/todo/lib/todo/list.ex | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | null | null | null | chapter_7/todo/lib/todo/list.ex | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | 3 | 2021-04-22T21:19:45.000Z | 2021-08-22T13:20:03.000Z | defmodule Todo.List do
alias Todo.Entry
defstruct auto_id: 1, entries: %{}
def new, do: %__MODULE__{}
def add_entry(
%__MODULE__{auto_id: auto_id, entries: old_entries} = todo_list,
%{date: date, title: title}
) do
entry = Entry.new(auto_id, date, title)
new_entries = Map.put(ol... | 33.589286 | 93 | 0.679426 |
21b45ee0e7750fdc08dbc63f55f501700eee15c9 | 1,276 | ex | Elixir | web/controllers/user_controller.ex | zhangsoledad/Doom | 37ddc696e7d71c742bfc90352d76e81f2c78f5b7 | [
"MIT"
] | 6 | 2016-03-17T08:45:34.000Z | 2016-10-10T01:20:37.000Z | web/controllers/user_controller.ex | zhangsoledad/doom | 37ddc696e7d71c742bfc90352d76e81f2c78f5b7 | [
"MIT"
] | null | null | null | web/controllers/user_controller.ex | zhangsoledad/doom | 37ddc696e7d71c742bfc90352d76e81f2c78f5b7 | [
"MIT"
] | 2 | 2016-04-01T06:28:56.000Z | 2016-04-28T09:35:07.000Z | defmodule Doom.UserController do
use Doom.Web, :controller
import Doom.Authorize
alias Openmaize.ConfirmEmail
alias Doom.{Mailer, User}
plug :put_layout, false
plug :scrub_params, "user" when action in [:create, :update]
plug Openmaize.ConfirmEmail, [] when action in [:confirm]
plug Openmaize.ResetP... | 25.019608 | 73 | 0.637147 |
21b4afb9ff57262b8b194653ca18ca0784945a88 | 670 | exs | Elixir | test/scenic/primitive/transform/rotate_test.exs | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | test/scenic/primitive/transform/rotate_test.exs | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | test/scenic/primitive/transform/rotate_test.exs | mikeover/scenic | 4b61c4996ed2d06b8cdf94f88c8a0522160e10b5 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 11/02/17
# Copyright © 2017 Kry10 Industries. All rights reserved.
#
defmodule Scenic.Primitive.Transform.RotateTest do
use ExUnit.Case, async: true
doctest Scenic
alias Scenic.Primitive.Transform.Rotate
# =====================================================================... | 25.769231 | 80 | 0.601493 |
21b4c4911e19ec0adf865aa8914efc22136a4bda | 965 | exs | Elixir | demo/sitBRU_Demo/config/config.exs | ceedee666/sitbru_2016 | b23b4a81a1daec87801c6435ff04d32be043e0b9 | [
"MIT"
] | null | null | null | demo/sitBRU_Demo/config/config.exs | ceedee666/sitbru_2016 | b23b4a81a1daec87801c6435ff04d32be043e0b9 | [
"MIT"
] | null | null | null | demo/sitBRU_Demo/config/config.exs | ceedee666/sitbru_2016 | b23b4a81a1daec87801c6435ff04d32be043e0b9 | [
"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.
use Mix.Config
# Configures the endpoint
config :sitBRU_Demo, SitBRU_Demo.Endpoint,
url: [host: "l... | 32.166667 | 86 | 0.757513 |
21b4e31fd2b3ed16c52bb38efd3663e5e9a7b64b | 890 | ex | Elixir | clients/chrome_policy/lib/google_api/chrome_policy/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/chrome_policy/lib/google_api/chrome_policy/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/chrome_policy/lib/google_api/chrome_policy/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.962963 | 74 | 0.760674 |
21b4efdd9b63edf5ff97c9f9bbe34357330463cb | 3,168 | ex | Elixir | clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/slsa_provenance_zero_two.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/slsa_provenance_zero_two.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/on_demand_scanning/lib/google_api/on_demand_scanning/v1/model/slsa_provenance_zero_two.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.270588 | 137 | 0.714015 |
21b4fc4f9a2736615314fd383f814f98b1b1fa58 | 4,319 | ex | Elixir | lib/compile.ex | sasagawa888/Elxlog | da32577c62590bfcf33485bbb3714e53054dd3d0 | [
"BSD-2-Clause"
] | 20 | 2019-08-20T03:43:03.000Z | 2021-11-14T17:10:17.000Z | lib/compile.ex | sasagawa888/Elxlog | da32577c62590bfcf33485bbb3714e53054dd3d0 | [
"BSD-2-Clause"
] | 3 | 2019-08-09T09:19:23.000Z | 2020-01-13T01:00:55.000Z | lib/compile.ex | sasagawa888/Elxlog | da32577c62590bfcf33485bbb3714e53054dd3d0 | [
"BSD-2-Clause"
] | 6 | 2019-12-02T08:47:30.000Z | 2021-04-23T04:51:59.000Z | defmodule Elxcomp do
@moduledoc """
generated compiled code
"""
def is_compiled([_, [name | _]]) do
Enum.member?([], name)
end
def prove_builtin(_, _, _, _, _) do
nil
end
end
defmodule Compile do
@moduledoc """
Compile module include compiler of Elxlog
"""
def compile(fname, def, elixir... | 22.262887 | 90 | 0.516323 |
21b5026ffdc2d99ad8e10310b914c6a93a81633d | 1,646 | exs | Elixir | mix.exs | benwoodward/elixir_svelte_render | 115c2eae453cf937087b4d47493dd92dc9a39ee1 | [
"MIT"
] | 32 | 2020-02-01T09:08:11.000Z | 2020-11-22T14:43:37.000Z | mix.exs | benwoodward/elixir_svelte_render | 115c2eae453cf937087b4d47493dd92dc9a39ee1 | [
"MIT"
] | 2 | 2020-03-21T20:02:53.000Z | 2020-05-09T12:44:02.000Z | mix.exs | benwoodward/elixir_svelte_render | 115c2eae453cf937087b4d47493dd92dc9a39ee1 | [
"MIT"
] | null | null | null | defmodule SvelteRender.MixProject do
use Mix.Project
def project do
[
app: :svelte_render,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
test_coverage: [tool: ExCoveralls],
... | 22.243243 | 74 | 0.544957 |
21b527cee92a8f504b659223c45921a96ba57c38 | 1,914 | ex | Elixir | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/modify_column_families_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/modify_column_families_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/bigtable_admin/lib/google_api/bigtable_admin/v2/model/modify_column_families_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... | 37.529412 | 191 | 0.761233 |
21b5399b40a06f23bae0db62c1111c0cee2d6c42 | 2,896 | ex | Elixir | lib/astarte_data_updater_plant/amqp_events_producer.ex | rbino/astarte_data_updater_plant | b1769207636fad9f91fdcad4ed768757af09683f | [
"Apache-2.0"
] | 5 | 2018-01-30T15:08:23.000Z | 2019-12-20T15:06:56.000Z | lib/astarte_data_updater_plant/amqp_events_producer.ex | rbino/astarte_data_updater_plant | b1769207636fad9f91fdcad4ed768757af09683f | [
"Apache-2.0"
] | 17 | 2018-01-31T15:50:22.000Z | 2019-12-05T17:26:06.000Z | lib/astarte_data_updater_plant/amqp_events_producer.ex | rbino/astarte_data_updater_plant | b1769207636fad9f91fdcad4ed768757af09683f | [
"Apache-2.0"
] | 2 | 2018-01-31T15:43:04.000Z | 2019-11-15T12:00:05.000Z | #
# This file is part of Astarte.
#
# Copyright 2017 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... | 27.846154 | 96 | 0.690262 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.