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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ffa23c93773b6edb4e9c0fb895fd9f2ccd06f2d7 | 1,996 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/parent_entity_filter.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/parent_entity_filter.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/display_video/lib/google_api/display_video/v1/model/parent_entity_filter.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... | 37.660377 | 221 | 0.721443 |
ffa245dcd4de9f8c6d7ed3f506b8c25f64f3d4c8 | 13,947 | ex | Elixir | lib/event/event.ex | aeturnum/twitch_discord_connector | b965ba1164540c92a925d2bd08e3fa299dfd457a | [
"MIT"
] | null | null | null | lib/event/event.ex | aeturnum/twitch_discord_connector | b965ba1164540c92a925d2bd08e3fa299dfd457a | [
"MIT"
] | null | null | null | lib/event/event.ex | aeturnum/twitch_discord_connector | b965ba1164540c92a925d2bd08e3fa299dfd457a | [
"MIT"
] | null | null | null | defmodule TwitchDiscordConnector.Event do
@moduledoc """
Event System
Simple messaging system used to allow different elements of the server to communicate with each other.
Required functions to be a listener:
init({your_address, args}) -> state
channel() -> channel atom
handle_event(from, event, ... | 29.486258 | 112 | 0.584068 |
ffa249e55107ab7244f96b5361c8129b9563ee1a | 719 | ex | Elixir | lib/cat_show/auth/error_handler.ex | kemm/cat_show | 42f47f93ecec48700a4d5373be27138cf907d6cb | [
"BSD-3-Clause"
] | null | null | null | lib/cat_show/auth/error_handler.ex | kemm/cat_show | 42f47f93ecec48700a4d5373be27138cf907d6cb | [
"BSD-3-Clause"
] | 1 | 2021-05-11T15:49:58.000Z | 2021-05-11T15:49:58.000Z | lib/cat_show/auth/error_handler.ex | kemm/cat_show | 42f47f93ecec48700a4d5373be27138cf907d6cb | [
"BSD-3-Clause"
] | null | null | null | defmodule CatShow.Auth.ErrorHandler do
import Plug.Conn
def auth_error(conn, {:invalid_token, _reason}, _opts) do
response(conn, :unauthorized, "Invalid Token")
end
def auth_error(conn, {:unauthenticated, _reason}, _opts) do
response(conn, :unauthorized, "Not Authenticated")
end
def auth_error(co... | 25.678571 | 63 | 0.703755 |
ffa254ff9f016933fef11059585d51207bc2a154 | 65 | ex | Elixir | lib/colorify_web/views/layout_view.ex | ashkan18/colorify | e4da2bc54a60199c411afc696086689d825b7a13 | [
"MIT"
] | 1 | 2020-03-12T18:44:10.000Z | 2020-03-12T18:44:10.000Z | lib/colorify_web/views/layout_view.ex | ashkan18/colorify | e4da2bc54a60199c411afc696086689d825b7a13 | [
"MIT"
] | 1 | 2021-03-10T10:22:38.000Z | 2021-03-10T10:22:38.000Z | lib/colorify_web/views/layout_view.ex | ashkan18/colorify | e4da2bc54a60199c411afc696086689d825b7a13 | [
"MIT"
] | 1 | 2020-03-12T18:41:42.000Z | 2020-03-12T18:41:42.000Z | defmodule ColorifyWeb.LayoutView do
use ColorifyWeb, :view
end
| 16.25 | 35 | 0.815385 |
ffa2631365876aa5671993b5938714939bd58977 | 493 | ex | Elixir | zombie-driver/test/support/fixtures.ex | akrisanov/microservices_in_elixir | 55829d5e53c8e77f3fb468419a29f1f1f9fa8db0 | [
"MIT"
] | null | null | null | zombie-driver/test/support/fixtures.ex | akrisanov/microservices_in_elixir | 55829d5e53c8e77f3fb468419a29f1f1f9fa8db0 | [
"MIT"
] | null | null | null | zombie-driver/test/support/fixtures.ex | akrisanov/microservices_in_elixir | 55829d5e53c8e77f3fb468419a29f1f1f9fa8db0 | [
"MIT"
] | null | null | null | defmodule Fixtures do
@moduledoc false
def empty_driver_locations_fixture() do
[]
end
def driver_locations_fixture() do
[
%{
latitude: "48.86419237673293736",
longitude: "2.35050016641616821",
updated_at: DateTime.utc_now() |> Timex.shift(minutes: -3)
},
%{
... | 21.434783 | 66 | 0.608519 |
ffa2668d17248bd982c26a027caee1a30ed76e79 | 662 | exs | Elixir | test/onehundredsixtyeight_hours/csv_test.exs | Sgoettschkes/168-hours | fd9895b2b3b8fd1dcce0283f03fe46cd0a5c454b | [
"MIT"
] | null | null | null | test/onehundredsixtyeight_hours/csv_test.exs | Sgoettschkes/168-hours | fd9895b2b3b8fd1dcce0283f03fe46cd0a5c454b | [
"MIT"
] | null | null | null | test/onehundredsixtyeight_hours/csv_test.exs | Sgoettschkes/168-hours | fd9895b2b3b8fd1dcce0283f03fe46cd0a5c454b | [
"MIT"
] | null | null | null | defmodule OnehundredsixtyeightHours.CsvTest do
use ExUnit.Case
describe "parse/1" do
test "csv parses file" do
result =
File.stream!("priv/test/data.csv")
|> OnehundredsixtyeightHours.Csv.parse()
assert List.flatten(result) == result
assert List.first(result) == "Task 1"
... | 25.461538 | 68 | 0.626888 |
ffa28202fa8fd9562a9660c86ccfc9dc17f75b84 | 1,041 | exs | Elixir | apps/tai/test/tai/venue_adapters/binance/stream/route_order_books_test.exs | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | apps/tai/test/tai/venue_adapters/binance/stream/route_order_books_test.exs | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/test/tai/venue_adapters/binance/stream/route_order_books_test.exs | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | defmodule Tai.VenueAdapters.Binance.Stream.RouteOrderBooksTest do
use ExUnit.Case, async: false
alias Tai.VenueAdapters.Binance.Stream.{ProcessOrderBook, RouteOrderBooks}
@venue :venue_a
@venue_symbol "BTC_USD"
@product struct(Tai.Venues.Product, venue_id: @venue, venue_symbol: @venue_symbol)
@received_at ... | 28.916667 | 94 | 0.650336 |
ffa28276738cb139b570f7ee926add475f75f53a | 3,408 | ex | Elixir | deps/postgrex/lib/postgrex/stream.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/postgrex/lib/postgrex/stream.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | deps/postgrex/lib/postgrex/stream.ex | rpillar/Top5_Elixir | 9c450d2e9b291108ff1465dc066dfe442dbca822 | [
"MIT"
] | null | null | null | defmodule Postgrex.Stream do
@moduledoc false
defstruct [:conn, :query, :params, :options]
@type t :: %Postgrex.Stream{}
end
defmodule Postgrex.Cursor do
@moduledoc false
defstruct [:portal, :ref, :connection_id, :mode]
@type t :: %Postgrex.Cursor{}
end
defmodule Postgrex.Copy do
@moduledoc fal... | 28.4 | 95 | 0.632923 |
ffa2c6232323ff2e8d1b179e7fbe2ae6c2153c98 | 61 | ex | Elixir | web/views/html_server_type_view.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | 2 | 2016-11-16T17:24:21.000Z | 2019-02-15T05:38:27.000Z | web/views/html_server_type_view.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | web/views/html_server_type_view.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | defmodule Tox.HtmlServerTypeView do
use Tox.Web, :view
end
| 15.25 | 35 | 0.786885 |
ffa2cf01e3ae87d3655f1bfef542452225db955b | 636 | ex | Elixir | lib/whistler_news_reader/feed_url_extractor.ex | fdietz/whistler_news_reader | 501f3f95e1ba3a684da8b34b60e426da85e7852d | [
"MIT"
] | 8 | 2016-06-12T20:11:26.000Z | 2017-05-02T04:36:41.000Z | lib/whistler_news_reader/feed_url_extractor.ex | fdietz/whistler_news_reader | 501f3f95e1ba3a684da8b34b60e426da85e7852d | [
"MIT"
] | 2 | 2016-06-12T15:49:06.000Z | 2016-06-12T20:00:02.000Z | lib/whistler_news_reader/feed_url_extractor.ex | fdietz/whistler_news_reader | 501f3f95e1ba3a684da8b34b60e426da85e7852d | [
"MIT"
] | null | null | null | defmodule WhistlerNewsReader.FeedUrlExtractor do
# extract the following
# <link rel="alternate" type="application/rss+xml" href="http://example.com"/>
# <link rel="alternate" type="application/atom+xml" href="http://example.com"/>
def extract(html) do
rss_match = Floki.find(html, "link[type='application/r... | 28.909091 | 81 | 0.658805 |
ffa2d1ef1c8d69c252b1826ab0f9fe7a08a7a801 | 209 | ex | Elixir | lib/home_display/reporters/temperature_series.ex | mattiaslundberg/home_display | ce571e37090398cfb15a508cf9758c174efa3d5e | [
"MIT"
] | null | null | null | lib/home_display/reporters/temperature_series.ex | mattiaslundberg/home_display | ce571e37090398cfb15a508cf9758c174efa3d5e | [
"MIT"
] | null | null | null | lib/home_display/reporters/temperature_series.ex | mattiaslundberg/home_display | ce571e37090398cfb15a508cf9758c174efa3d5e | [
"MIT"
] | null | null | null | defmodule HomeDisplay.Reporters.TemperatureSeries do
use Instream.Series
series do
database("home")
measurement("temperature")
tag(:location)
tag(:sensor_id)
field(:value)
end
end
| 14.928571 | 52 | 0.698565 |
ffa2d4e4199cda140f8e26ae82d71befaae13632 | 1,807 | exs | Elixir | mix.exs | MattIII/CastBug | aad9eabce5af4a80dd0f4383683746a1f518e377 | [
"MIT"
] | 1 | 2019-03-14T03:48:29.000Z | 2019-03-14T03:48:29.000Z | mix.exs | MattIII/CastBug | aad9eabce5af4a80dd0f4383683746a1f518e377 | [
"MIT"
] | null | null | null | mix.exs | MattIII/CastBug | aad9eabce5af4a80dd0f4383683746a1f518e377 | [
"MIT"
] | null | null | null | defmodule CastBug.MixProject do
use Mix.Project
def project do
[
app: :castbug,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 26.573529 | 79 | 0.558937 |
ffa2d5ccad0d143d57ac416cb6c4c54bf5c98c3d | 563 | ex | Elixir | web/controllers/user_controller.ex | AbdullahDahmash/peep-stack-api-tutorial | 3e6d98be33fbee0ae79022e6a74940e0ea70cc96 | [
"MIT"
] | 1 | 2020-12-23T18:28:54.000Z | 2020-12-23T18:28:54.000Z | web/controllers/user_controller.ex | AbdullahDahmash/peep-stack-api-tutorial | 3e6d98be33fbee0ae79022e6a74940e0ea70cc96 | [
"MIT"
] | null | null | null | web/controllers/user_controller.ex | AbdullahDahmash/peep-stack-api-tutorial | 3e6d98be33fbee0ae79022e6a74940e0ea70cc96 | [
"MIT"
] | null | null | null | defmodule Peepchat.UserController do
use Peepchat.Web, :controller
alias Peepchat.User
plug Guardian.Plug.EnsureAuthenticated, handler: Peepchat.AuthErrorHandler
def index(conn, _params) do
users = Repo.all(User)
render(conn, "index.json-api", data: users)
end
def show(conn, %{"id" => id}) do
... | 22.52 | 76 | 0.676732 |
ffa2df28cd0ad8d8e9f705711f2de5817dc43721 | 37 | ex | Elixir | apps/gingerbread_shop_api/lib/gingerbread_shop.api.ex | ScrimpyCat/gingerbread_shop | ce01f5599fd1d39c79df461373c8f4f73bc144f2 | [
"BSD-2-Clause"
] | null | null | null | apps/gingerbread_shop_api/lib/gingerbread_shop.api.ex | ScrimpyCat/gingerbread_shop | ce01f5599fd1d39c79df461373c8f4f73bc144f2 | [
"BSD-2-Clause"
] | null | null | null | apps/gingerbread_shop_api/lib/gingerbread_shop.api.ex | ScrimpyCat/gingerbread_shop | ce01f5599fd1d39c79df461373c8f4f73bc144f2 | [
"BSD-2-Clause"
] | null | null | null | defmodule GingerbreadShop.API do
end
| 12.333333 | 32 | 0.864865 |
ffa2e108a70968167977747b5fad9c0fdca5c38c | 819 | exs | Elixir | mix.exs | shouya/natural-time | b5da363106c14bf5a674c8d2013e8134677a7719 | [
"MIT"
] | 3 | 2021-07-10T09:25:55.000Z | 2021-07-10T12:38:27.000Z | mix.exs | shouya/natural-time | b5da363106c14bf5a674c8d2013e8134677a7719 | [
"MIT"
] | null | null | null | mix.exs | shouya/natural-time | b5da363106c14bf5a674c8d2013e8134677a7719 | [
"MIT"
] | null | null | null | defmodule NaturalTime.MixProject do
use Mix.Project
def project do
[
app: :natural_time,
version: "0.1.1",
elixir: "~> 1.8",
description: "A simple parser for datetime in natural language",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package()
]
e... | 19.5 | 70 | 0.542125 |
ffa2f896302bb7ce4f45400cbab901d8e4ffa4eb | 3,735 | exs | Elixir | test/liblink/cluster/database_test.exs | Xerpa/liblink | 7b983431c5b391bb8cf182edd9ca4937601eea35 | [
"Apache-2.0"
] | 3 | 2018-10-26T12:55:15.000Z | 2019-05-03T22:41:34.000Z | test/liblink/cluster/database_test.exs | Xerpa/liblink | 7b983431c5b391bb8cf182edd9ca4937601eea35 | [
"Apache-2.0"
] | 4 | 2018-08-26T14:43:57.000Z | 2020-09-23T21:14:56.000Z | test/liblink/cluster/database_test.exs | Xerpa/liblink | 7b983431c5b391bb8cf182edd9ca4937601eea35 | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2018 Xerpa
# 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, soft... | 33.648649 | 74 | 0.640964 |
ffa3210d301c433a782fe6fc5e06e4a99ec13f6e | 11,925 | ex | Elixir | lib/nerves_grove/oled_display.ex | Manolets/nerves_grove | 7a67a34ab9d897214ce78814aebb56b346edc726 | [
"Unlicense"
] | null | null | null | lib/nerves_grove/oled_display.ex | Manolets/nerves_grove | 7a67a34ab9d897214ce78814aebb56b346edc726 | [
"Unlicense"
] | null | null | null | lib/nerves_grove/oled_display.ex | Manolets/nerves_grove | 7a67a34ab9d897214ce78814aebb56b346edc726 | [
"Unlicense"
] | null | null | null | # This is free and unencumbered software released into the public domain.
defmodule Nerves.Grove.OLED.Display do
@moduledoc """
Seeed Studio [Grove OLED Display 96×96](http://wiki.seeedstudio.com/wiki/Grove_-_OLED_Display_1.12%22)
## Datasheet
http://garden.seeedstudio.com/images/8/82/SSD1327_datasheet.pdf
... | 37.149533 | 104 | 0.545744 |
ffa333cfaa81e30054e76679b5327ae5ec968c64 | 6,874 | exs | Elixir | test/station_test.exs | Quanttek/noaa_cli | c9ba3bac9c9fc552cf85e9674875062585ab9601 | [
"Apache-2.0"
] | null | null | null | test/station_test.exs | Quanttek/noaa_cli | c9ba3bac9c9fc552cf85e9674875062585ab9601 | [
"Apache-2.0"
] | null | null | null | test/station_test.exs | Quanttek/noaa_cli | c9ba3bac9c9fc552cf85e9674875062585ab9601 | [
"Apache-2.0"
] | null | null | null | defmodule StationTest do
use ExUnit.Case
#doctest Noaa
import Noaa.Station, only: [parse_keywords: 2,
get_key_matching: 2,
get_fully_matching: 2]
alias Noaa.Station
def station_list do
[%Station{id: "CWAV", state: "AB", name: "Sundre",
la... | 42.695652 | 105 | 0.586122 |
ffa3495c4e456c6850df97a9baa59e6719c0e80c | 1,100 | ex | Elixir | repository_summary/lib/repository_summary/application.ex | joabehenrique/repository-summary | 6a7c28098a9faf11386b43996bf5ad33b50cddf2 | [
"MIT"
] | null | null | null | repository_summary/lib/repository_summary/application.ex | joabehenrique/repository-summary | 6a7c28098a9faf11386b43996bf5ad33b50cddf2 | [
"MIT"
] | null | null | null | repository_summary/lib/repository_summary/application.ex | joabehenrique/repository-summary | 6a7c28098a9faf11386b43996bf5ad33b50cddf2 | [
"MIT"
] | null | null | null | defmodule RepositorySummary.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Ecto repository
RepositorySummary.Repo,
# Start the Telemetry supe... | 31.428571 | 75 | 0.726364 |
ffa36c621099686a473dd052d8a13d854f57cb6a | 1,761 | exs | Elixir | clients/apigee/mix.exs | MShaffar19/elixir-google-api | aac92cd85f423e6d08c9571ee97cf21545df163f | [
"Apache-2.0"
] | null | null | null | clients/apigee/mix.exs | MShaffar19/elixir-google-api | aac92cd85f423e6d08c9571ee97cf21545df163f | [
"Apache-2.0"
] | null | null | null | clients/apigee/mix.exs | MShaffar19/elixir-google-api | aac92cd85f423e6d08c9571ee97cf21545df163f | [
"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... | 26.283582 | 97 | 0.646224 |
ffa3a257b167aecb58044eac518b34bd0edd9838 | 1,649 | exs | Elixir | elixir/auction_umbrella/config/config.exs | kendru/darwin | 67096eb900bc36d30bf5ce36d38aaa6db86a29a2 | [
"MIT"
] | 5 | 2021-11-17T04:37:39.000Z | 2022-01-02T06:43:23.000Z | elixir/auction_umbrella/config/config.exs | kendru/darwin | 67096eb900bc36d30bf5ce36d38aaa6db86a29a2 | [
"MIT"
] | 3 | 2021-05-21T21:50:11.000Z | 2021-11-21T14:34:53.000Z | elixir/auction_umbrella/config/config.exs | kendru/darwin | 67096eb900bc36d30bf5ce36d38aaa6db86a29a2 | [
"MIT"
] | 2 | 2021-11-16T14:14:05.000Z | 2021-12-31T02:01:06.000Z | # This file is responsible for configuring your umbrella
# and **all applications** and their dependencies with the
# help of the Config module.
#
# Note that all applications in your umbrella share the
# same configuration and dependencies, which is why they
# all use the same configuration file. If you want different... | 30.537037 | 86 | 0.741055 |
ffa3bc0d93e817f50ccba77eede495916e347bed | 2,454 | exs | Elixir | config/prod.exs | jeyemwey/radiator-spark | 2fba0a84eb43ab1d58e8ec58c6a07f64adf9cb9d | [
"MIT"
] | 1 | 2021-03-02T16:59:40.000Z | 2021-03-02T16:59:40.000Z | config/prod.exs | optikfluffel/radiator | b1a1b966296fa6bf123e3a2455009ff52099ace6 | [
"MIT"
] | null | null | null | config/prod.exs | optikfluffel/radiator | b1a1b966296fa6bf123e3a2455009ff52099ace6 | [
"MIT"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 34.083333 | 69 | 0.713936 |
ffa4174b555c56415ef05fbea444c707183cc06a | 6,000 | ex | Elixir | lib/astarte_flow/blocks/sorter.ex | matt-mazzucato/astarte_flow | e8644b5a27edf325977f5bced9a919f20e289ee2 | [
"Apache-2.0"
] | null | null | null | lib/astarte_flow/blocks/sorter.ex | matt-mazzucato/astarte_flow | e8644b5a27edf325977f5bced9a919f20e289ee2 | [
"Apache-2.0"
] | null | null | null | lib/astarte_flow/blocks/sorter.ex | matt-mazzucato/astarte_flow | e8644b5a27edf325977f5bced9a919f20e289ee2 | [
"Apache-2.0"
] | null | null | null | #
# This file is part of Astarte.
#
# Copyright 2020 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... | 26.785714 | 104 | 0.620833 |
ffa41a25a7c4b3c11c4bfcdbdbb9ff4d124935be | 1,723 | ex | Elixir | test/support/conn_case.ex | imsoulfly/local_hex_repo | 18fca51c44b3dd01d27684877b3c7bc13471f548 | [
"Apache-2.0"
] | 5 | 2021-11-13T13:58:06.000Z | 2022-03-26T03:47:57.000Z | test/support/conn_case.ex | imsoulfly/local_hex_repo | 18fca51c44b3dd01d27684877b3c7bc13471f548 | [
"Apache-2.0"
] | 3 | 2021-11-16T18:45:45.000Z | 2021-12-05T13:58:25.000Z | test/support/conn_case.ex | imsoulfly/local_hex_repo | 18fca51c44b3dd01d27684877b3c7bc13471f548 | [
"Apache-2.0"
] | null | null | null | defmodule LocalHexWeb.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 data structures and query the data layer.
Finally, if t... | 27.790323 | 79 | 0.714452 |
ffa41a38b8695208d5967a8876069492269058a4 | 878 | exs | Elixir | mix.exs | smeevil/phoenix-jsroutes | b5351527302acff6258acd321a4f055e6fc71371 | [
"MIT"
] | null | null | null | mix.exs | smeevil/phoenix-jsroutes | b5351527302acff6258acd321a4f055e6fc71371 | [
"MIT"
] | null | null | null | mix.exs | smeevil/phoenix-jsroutes | b5351527302acff6258acd321a4f055e6fc71371 | [
"MIT"
] | null | null | null | defmodule PhoenixJsroutes.Mixfile do
use Mix.Project
def project do
[
app: :phoenix_jsroutes,
version: "0.0.4",
elixir: "~> 1.2",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps()... | 21.414634 | 77 | 0.571754 |
ffa41b4997acba06f15d18e5c663cd9e5ed9947f | 1,546 | exs | Elixir | test/blue_jet_web/controllers/storefront/order_controller_test.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 44 | 2018-05-09T01:08:57.000Z | 2021-01-19T07:25:26.000Z | test/blue_jet_web/controllers/storefront/order_controller_test.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 36 | 2018-05-08T23:59:54.000Z | 2018-09-28T13:50:30.000Z | test/blue_jet_web/controllers/storefront/order_controller_test.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 9 | 2018-05-09T14:09:19.000Z | 2021-03-21T21:04:04.000Z | # defmodule BlueJetWeb.OrderControllerTest do
# use BlueJetWeb.ConnCase
# import BlueJet.Identity.TestHelper
# setup do
# conn =
# build_conn()
# |> put_req_header("accept", "application/vnd.api+json")
# |> put_req_header("content-type", "application/vnd.api+json")
# %{conn: conn}
# ... | 22.735294 | 69 | 0.548512 |
ffa4264f487e1bc1791799dcd18ebedc9f0343e1 | 592 | exs | Elixir | exercises/practice/rotational-cipher/mix.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/practice/rotational-cipher/mix.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/practice/rotational-cipher/mix.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule RotationalCipher.MixProject do
use Mix.Project
def project do
[
app: :rotational_cipher,
version: "0.1.0",
# elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
... | 20.413793 | 87 | 0.587838 |
ffa45bd5242da95f13ee2299e08c5d29c20c3671 | 13,477 | ex | Elixir | lib/sobelow.ex | tmecklem/sobelow | 76b441da408b0156a05fa208a8426c63f3536fe5 | [
"Apache-2.0"
] | null | null | null | lib/sobelow.ex | tmecklem/sobelow | 76b441da408b0156a05fa208a8426c63f3536fe5 | [
"Apache-2.0"
] | null | null | null | lib/sobelow.ex | tmecklem/sobelow | 76b441da408b0156a05fa208a8426c63f3536fe5 | [
"Apache-2.0"
] | null | null | null | defmodule Sobelow do
@moduledoc """
Sobelow is a static analysis tool for discovering
vulnerabilities in Phoenix applications.
"""
@v Mix.Project.config()[:version]
@submodules [
Sobelow.XSS,
Sobelow.SQL,
Sobelow.Traversal,
Sobelow.RCE,
Sobelow.Misc,
Sobelow.Config,
Sobelow.CI,
... | 26.168932 | 96 | 0.607183 |
ffa4714f051685f5b581d64b7678d50b75d41746 | 282 | ex | Elixir | lib/json.ex | sergiotapia/magnex | 37f5024fa6eabf4b790f1e7aa508bfda9e7cb5a2 | [
"Apache-2.0"
] | 8 | 2019-01-08T15:34:49.000Z | 2021-05-25T08:25:26.000Z | lib/json.ex | sergiotapia/magnex | 37f5024fa6eabf4b790f1e7aa508bfda9e7cb5a2 | [
"Apache-2.0"
] | null | null | null | lib/json.ex | sergiotapia/magnex | 37f5024fa6eabf4b790f1e7aa508bfda9e7cb5a2 | [
"Apache-2.0"
] | 5 | 2019-02-01T03:44:54.000Z | 2021-05-25T08:25:32.000Z | defmodule JSON do
@json Application.get_env(:magnex, :json_library) ||
raise("You must set your json library config for magnex.json_library")
def decode(json) do
@json.decode(json)
end
def encode_to_iodata(json) do
@json.encode_to_iodata(json)
end
end
| 21.692308 | 80 | 0.705674 |
ffa4bae6fbc536c01d24d5c5689d995855ff696e | 83 | exs | Elixir | test/akd/helpers/deploy_helper_test.exs | corroded/akd | ed15b8929b6d110552a19522f8a17edf75452e87 | [
"MIT"
] | 51 | 2018-01-07T03:41:05.000Z | 2021-06-17T21:39:27.000Z | test/akd/helpers/deploy_helper_test.exs | corroded/akd | ed15b8929b6d110552a19522f8a17edf75452e87 | [
"MIT"
] | 42 | 2017-12-24T04:36:39.000Z | 2019-05-21T01:32:00.000Z | test/akd/helpers/deploy_helper_test.exs | corroded/akd | ed15b8929b6d110552a19522f8a17edf75452e87 | [
"MIT"
] | 2 | 2018-06-15T11:46:28.000Z | 2018-08-22T16:03:56.000Z | defmodule Akd.DeployHelperTest do
use ExUnit.Case
doctest Akd.DeployHelper
end
| 16.6 | 33 | 0.819277 |
ffa4c0731d4b0b9f53cc51251a0a42b59b54d464 | 674 | ex | Elixir | daniel/almeida/ch6/dungeon_crawl/lib/dungeon_crawl/room.ex | jdashton/glowing-succotash | 44580c2d4cb300e33156d42e358e8a055948a079 | [
"MIT"
] | null | null | null | daniel/almeida/ch6/dungeon_crawl/lib/dungeon_crawl/room.ex | jdashton/glowing-succotash | 44580c2d4cb300e33156d42e358e8a055948a079 | [
"MIT"
] | 1 | 2020-02-26T14:55:23.000Z | 2020-02-26T14:55:23.000Z | daniel/almeida/ch6/dungeon_crawl/lib/dungeon_crawl/room.ex | jdashton/glowing-succotash | 44580c2d4cb300e33156d42e358e8a055948a079 | [
"MIT"
] | 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 find a quiet place. Looks safe for a little nap.",
# actions: [... | 24.962963 | 78 | 0.586053 |
ffa4cbc53f30661c5786d8527674014ce20b2682 | 6,367 | ex | Elixir | lib/storage/client.ex | kianmeng/elixir_wechat | cc838f0930fd6d26d903e4c3535bdfc263d628d6 | [
"MIT"
] | null | null | null | lib/storage/client.ex | kianmeng/elixir_wechat | cc838f0930fd6d26d903e4c3535bdfc263d628d6 | [
"MIT"
] | null | null | null | lib/storage/client.ex | kianmeng/elixir_wechat | cc838f0930fd6d26d903e4c3535bdfc263d628d6 | [
"MIT"
] | null | null | null | defmodule WeChat.Storage.Client do
@moduledoc """
The storage adapter specification for WeChat common application.
Since we need to temporarily storage some key data(e.g. `access_token`) for invoking WeChat APIs, this module
is used for customizing the persistence when use `elixir_wechat` in a client side of W... | 35.372222 | 148 | 0.656196 |
ffa4e26c71dc7d6ecfe828983923ef713c19eaac | 1,651 | ex | Elixir | apps/mishka_html/lib/mishka_html_web/views/layout_view.ex | mojtaba-naserei/mishka-cms | 1f31f61347bab1aae6ba0d47c5515a61815db6c9 | [
"Apache-2.0"
] | 35 | 2021-06-26T09:05:50.000Z | 2022-03-30T15:41:22.000Z | apps/mishka_html/lib/mishka_html_web/views/layout_view.ex | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 101 | 2021-01-01T09:54:07.000Z | 2022-03-28T10:02:24.000Z | apps/mishka_html/lib/mishka_html_web/views/layout_view.ex | iArazar/mishka-cms | 8b579101d607d91e80834527c1508fe5f4ceefef | [
"Apache-2.0"
] | 8 | 2021-01-17T17:08:07.000Z | 2022-03-11T16:12:06.000Z | defmodule MishkaHtmlWeb.LayoutView do
use MishkaHtmlWeb, :view
# SEO tags function should have all required fields
def seo_tags(%{image: _image, title: _title, description: _description, type: _type, keywords: _keywords, link: _link} = tags) do
raw ("#{seo_tags_converter(tags, :basic_tag)} #{seo_tags_convert... | 41.275 | 131 | 0.62447 |
ffa522f2aea1c7ca01a6edf44a1f55eca1258743 | 1,598 | ex | Elixir | clients/speech/lib/google_api/speech/v1/model/speech_adaptation.ex | read-with-simbi/elixir-google-api | 2f4cefa653dff06c59391189fc7783ca096c51e5 | [
"Apache-2.0"
] | null | null | null | clients/speech/lib/google_api/speech/v1/model/speech_adaptation.ex | read-with-simbi/elixir-google-api | 2f4cefa653dff06c59391189fc7783ca096c51e5 | [
"Apache-2.0"
] | null | null | null | clients/speech/lib/google_api/speech/v1/model/speech_adaptation.ex | read-with-simbi/elixir-google-api | 2f4cefa653dff06c59391189fc7783ca096c51e5 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34 | 83 | 0.737797 |
ffa5244d16416fb218cd5d24c2f63cea3f5d8afa | 471 | exs | Elixir | tooling/pbt/mix.exs | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | 1 | 2019-02-17T11:54:17.000Z | 2019-02-17T11:54:17.000Z | tooling/pbt/mix.exs | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | null | null | null | tooling/pbt/mix.exs | sfat/programming-elixir-exercises | 19e62e3f3344ec044e1eb1b39b195f4dad3dff1c | [
"Apache-2.0"
] | null | null | null | defmodule Pbt.MixProject do
use Mix.Project
def project do
[
app: :pbt,
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
[
extra_application... | 16.821429 | 59 | 0.56051 |
ffa536313e422ee409cc0e23862566a47cf757b4 | 1,706 | ex | Elixir | api/lib/router_utils.ex | lucas-angermann/idai-field-web | 788c9c9505b6fd12d591345b23053e934f1022d1 | [
"Apache-2.0"
] | null | null | null | api/lib/router_utils.ex | lucas-angermann/idai-field-web | 788c9c9505b6fd12d591345b23053e934f1022d1 | [
"Apache-2.0"
] | null | null | null | api/lib/router_utils.ex | lucas-angermann/idai-field-web | 788c9c9505b6fd12d591345b23053e934f1022d1 | [
"Apache-2.0"
] | null | null | null | defmodule Api.RouterUtils do
import Plug.Conn, only: [put_resp_content_type: 2, send_resp: 3, get_req_header: 2]
alias Api.Core.Config
alias Api.Auth.Rights
def send_json(conn, %{error: "bad_request"} = error) do
conn
|> put_resp_content_type("application/json")
|> send_resp(400, Poison.encode!(err... | 26.65625 | 85 | 0.690504 |
ffa53ff8243ac388f34830e2e0241c9c2ffc3c32 | 6,227 | exs | Elixir | lib/elixir/test/elixir/string_io_test.exs | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | 1 | 2019-06-11T20:22:20.000Z | 2019-06-11T20:22:20.000Z | lib/elixir/test/elixir/string_io_test.exs | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/string_io_test.exs | pap/elixir | c803afe90c766663823c74397fb23ed40ec52c5b | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule StringIOTest do
use ExUnit.Case, async: true
test "open and close" do
{:ok, pid} = StringIO.open("")
assert StringIO.close(pid) == {:ok, {"", ""}}
end
test "contents" do
{:ok, pid} = StringIO.open("abc")
IO.write(pid, "edf")
assert St... | 26.385593 | 73 | 0.548418 |
ffa54453b277d4e987b5bccda03c2c00afcd2499 | 256 | ex | Elixir | chapter_7/todo_worker_pool/lib/todo/database/worker/client.ex | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | 3 | 2021-04-22T11:55:58.000Z | 2021-08-22T13:19:56.000Z | chapter_7/todo_worker_pool/lib/todo/database/worker/client.ex | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | null | null | null | chapter_7/todo_worker_pool/lib/todo/database/worker/client.ex | librity/elixir_in_action | d2df441ceb7e6a0d3f18bc3ab3c59570125fcdec | [
"MIT"
] | 3 | 2021-04-22T21:19:45.000Z | 2021-08-22T13:20:03.000Z | defmodule Todo.Database.Worker.Client do
def start(db_folder), do: GenServer.start(Todo.Database.Worker, db_folder)
def store(pid, key, data), do: GenServer.cast(pid, {:store, key, data})
def get(pid, key), do: GenServer.call(pid, {:get, key})
end
| 32 | 76 | 0.710938 |
ffa546e3ac939b0a143d75162135b8d484062ebf | 356 | exs | Elixir | config/cypress.exs | thelastinuit/akkad | 08df3f51daeada737c53d07663c166a5e6cc297e | [
"MIT"
] | 1 | 2022-03-05T00:05:26.000Z | 2022-03-05T00:05:26.000Z | config/cypress.exs | thelastinuit/akkad | 08df3f51daeada737c53d07663c166a5e6cc297e | [
"MIT"
] | null | null | null | config/cypress.exs | thelastinuit/akkad | 08df3f51daeada737c53d07663c166a5e6cc297e | [
"MIT"
] | null | null | null | import Config
config :akkad, Akkad.Repo,
username: "postgres",
password: "postgres",
hostname: "localhost",
database: "akkad_test#{System.get_env("MIX_TEST_PARTITION")}",
pool: Ecto.Adapters.SQL.Sandbox,
pool_size: 10
config :akkad, AkkadWeb.Endpoint,
check_origin: false,
http: [port: 4000],
server:... | 20.941176 | 64 | 0.713483 |
ffa54f5d2d8b4b1cb30dee2e047ce92c2c1cfc4c | 1,709 | ex | Elixir | lib/entice/logic/maps/map.ex | hoodaly/logic | 6737f644129c16e83479bc76286624d5d54b197b | [
"WTFPL"
] | null | null | null | lib/entice/logic/maps/map.ex | hoodaly/logic | 6737f644129c16e83479bc76286624d5d54b197b | [
"WTFPL"
] | null | null | null | lib/entice/logic/maps/map.ex | hoodaly/logic | 6737f644129c16e83479bc76286624d5d54b197b | [
"WTFPL"
] | null | null | null | defmodule Entice.Logic.Map do
@moduledoc """
Top-level map macros for convenient access to all defined maps.
Is mainly used in area.ex where all the maps are defined.
"""
import Inflex
alias Geom.Shape.Vector2D
defmacro __using__(_) do
quote do
import Entice.Logic.Map
@maps []
@bef... | 24.070423 | 91 | 0.623171 |
ffa5599573956ce5bfe9e6c91a44dc37cb542a8e | 888 | exs | Elixir | mix.exs | sylv3r/katalyst | 562b53f5a403a9fe1978ab3c3210937aac9b7ffd | [
"Apache-2.0"
] | null | null | null | mix.exs | sylv3r/katalyst | 562b53f5a403a9fe1978ab3c3210937aac9b7ffd | [
"Apache-2.0"
] | null | null | null | mix.exs | sylv3r/katalyst | 562b53f5a403a9fe1978ab3c3210937aac9b7ffd | [
"Apache-2.0"
] | null | null | null | defmodule KatalystFramework.Mixfile do
use Mix.Project
def project, do: [
build_path: System.get_env("BUILD_PATH") || "_build",
deps_path: System.get_env("DEPS_PATH") || "_deps",
config_path: "config/config.exs",
apps_path: "apps",
elixirc_paths: elixirc_paths(Mix.env),
lockfile: "mix.lock"... | 27.75 | 63 | 0.681306 |
ffa55b85912313774bfe7d6c1f9fb2562e49ee05 | 1,123 | exs | Elixir | mix.exs | squaretwo/amplitude_ex | 846dfa41fee5702e812ae6c4ce1f35a2bba049d0 | [
"BSD-3-Clause"
] | null | null | null | mix.exs | squaretwo/amplitude_ex | 846dfa41fee5702e812ae6c4ce1f35a2bba049d0 | [
"BSD-3-Clause"
] | null | null | null | mix.exs | squaretwo/amplitude_ex | 846dfa41fee5702e812ae6c4ce1f35a2bba049d0 | [
"BSD-3-Clause"
] | 2 | 2020-04-26T22:17:11.000Z | 2021-08-16T14:38:44.000Z | defmodule Amplitude.Mixfile do
use Mix.Project
def project do
[
app: :amplitude,
version: "0.3.0",
elixir: "~> 1.3",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
description: "Supports the Track and Identiy Amplitude API",
... | 21.596154 | 77 | 0.558326 |
ffa56b58643eb3cbdc99fbc6125d2e7bbc1aed90 | 596 | ex | Elixir | lib/todo_app_web/controllers/fallback_controller.ex | pghildiy/phoenix-todoapp | 4ba8e75e2a88a9c7f5756bc579e6763423bfaa42 | [
"MIT"
] | 20 | 2017-07-18T14:51:28.000Z | 2021-11-15T11:40:24.000Z | lib/todo_app_web/controllers/fallback_controller.ex | pghildiy/phoenix-todoapp | 4ba8e75e2a88a9c7f5756bc579e6763423bfaa42 | [
"MIT"
] | 4 | 2016-08-12T07:00:15.000Z | 2017-11-09T20:35:13.000Z | lib/todo_app_web/controllers/fallback_controller.ex | pghildiy/phoenix-todoapp | 4ba8e75e2a88a9c7f5756bc579e6763423bfaa42 | [
"MIT"
] | 5 | 2017-11-09T13:33:22.000Z | 2020-05-24T16:36:27.000Z | defmodule TodoAppWeb.FallbackController do
@moduledoc """
Translates controller action results into valid `Plug.Conn` responses.
See `Phoenix.Controller.action_fallback/1` for more details.
"""
use TodoAppWeb, :controller
def call(conn, {:error, %Ecto.Changeset{} = changeset}) do
conn
|> put_stat... | 24.833333 | 72 | 0.692953 |
ffa5ac62ceab3574e33cdb1d659da19fc6771f3a | 34,231 | ex | Elixir | lib/elixir/lib/kernel/typespec.ex | oskarkook/elixir | 2ddd291c533cdc2b1b1f02153d94c0b248cb9836 | [
"Apache-2.0"
] | 1 | 2019-06-27T08:47:13.000Z | 2019-06-27T08:47:13.000Z | lib/elixir/lib/kernel/typespec.ex | oskarkook/elixir | 2ddd291c533cdc2b1b1f02153d94c0b248cb9836 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/kernel/typespec.ex | oskarkook/elixir | 2ddd291c533cdc2b1b1f02153d94c0b248cb9836 | [
"Apache-2.0"
] | 1 | 2021-12-09T11:36:07.000Z | 2021-12-09T11:36:07.000Z | defmodule Kernel.Typespec do
@moduledoc false
## Deprecated API moved to Code.Typespec
@doc false
@deprecated "Use Code.Typespec.spec_to_quoted/2 instead"
def spec_to_ast(name, spec) do
Code.Typespec.spec_to_quoted(name, spec)
end
@doc false
@deprecated "Use Code.Typespec.type_to_quoted/1 instead... | 32.600952 | 118 | 0.614969 |
ffa5c2e875765b20fc69c1c3cb4fc1321db10714 | 4,253 | exs | Elixir | test/attempt_test.exs | kipcole9/attempt | 4f085702982b591cc258f703b345aa038d35db8d | [
"Apache-2.0"
] | 2 | 2018-01-04T07:48:49.000Z | 2018-01-06T10:20:46.000Z | test/attempt_test.exs | kipcole9/attempt | 4f085702982b591cc258f703b345aa038d35db8d | [
"Apache-2.0"
] | 1 | 2018-01-12T22:28:00.000Z | 2018-01-12T22:28:00.000Z | test/attempt_test.exs | kipcole9/attempt | 4f085702982b591cc258f703b345aa038d35db8d | [
"Apache-2.0"
] | null | null | null | defmodule AttemptTest do
use ExUnit.Case
import ExUnit.CaptureIO
alias Attempt.Bucket
setup do
on_exit(fn ->
Bucket.Token.stop(:test)
end)
end
test "create a token bucket" do
assert Attempt.Bucket.Token.new(:test) ==
{:ok, %Attempt.Bucket.Token{
burst_size: 10... | 26.416149 | 111 | 0.484129 |
ffa5c6e3f32f08db591c32745a3b6657006253c4 | 2,632 | ex | Elixir | lib/xdr/types/variable_array.ex | revelrylabs/exdr | 4a3a5d65e2d0ba2daba32c5f648cbe401176e2e1 | [
"MIT"
] | 3 | 2020-01-12T03:16:38.000Z | 2020-09-06T03:37:03.000Z | lib/xdr/types/variable_array.ex | revelrylabs/exdr | 4a3a5d65e2d0ba2daba32c5f648cbe401176e2e1 | [
"MIT"
] | 7 | 2019-10-14T14:27:31.000Z | 2020-05-01T22:27:52.000Z | lib/xdr/types/variable_array.ex | revelrylabs/exdr | 4a3a5d65e2d0ba2daba32c5f648cbe401176e2e1 | [
"MIT"
] | 1 | 2020-02-06T23:19:24.000Z | 2020-02-06T23:19:24.000Z | defmodule XDR.Type.VariableArray do
@moduledoc """
A variable-length array of some other type
"""
alias XDR.Size
defstruct type_name: "VariableArray", data_type: nil, max_length: Size.max(), values: []
@type t() :: %__MODULE__{
type_name: String.t(),
data_type: XDR.Type.t(),
... | 28.923077 | 96 | 0.602964 |
ffa5dd4f89d9b7f2251197652e762150ec982d72 | 6,872 | ex | Elixir | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v11/api/lineitems.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v11/api/lineitems.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v11/api/lineitems.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... | 42.95 | 196 | 0.64188 |
ffa62614f02e583213fec771f8a067e91a9f4c30 | 1,853 | ex | Elixir | lib/telegramex/http_client.ex | thiamsantos/telegramex | 475595aca8df02122579236b3a021b5349a77f7a | [
"Apache-2.0"
] | 1 | 2021-02-17T13:30:06.000Z | 2021-02-17T13:30:06.000Z | lib/telegramex/http_client.ex | thiamsantos/telegramex | 475595aca8df02122579236b3a021b5349a77f7a | [
"Apache-2.0"
] | 1 | 2021-03-14T21:39:33.000Z | 2021-03-14T21:39:33.000Z | lib/telegramex/http_client.ex | thiamsantos/telegramex | 475595aca8df02122579236b3a021b5349a77f7a | [
"Apache-2.0"
] | null | null | null | defmodule Telegramex.HTTPClient do
@moduledoc """
Specifies the behaviour of a HTTP Client.
You can switch the default HTTP client which uses [finch](https://github.com/keathley/finch) underneath
by defining a different implementation by setting the `:http_client`
configuration in `Telegramex.Client`:
... | 28.953125 | 105 | 0.594711 |
ffa66762c1ac78308904ece8db698dab08afe41c | 6,022 | ex | Elixir | lib/timezone/timezone_info.ex | shahryarjb/timex | d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a | [
"MIT"
] | 1,623 | 2015-01-03T16:53:19.000Z | 2022-03-27T01:25:50.000Z | lib/timezone/timezone_info.ex | shahryarjb/timex | d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a | [
"MIT"
] | 654 | 2015-01-04T23:59:47.000Z | 2022-03-08T01:02:01.000Z | lib/timezone/timezone_info.ex | shahryarjb/timex | d7cc4728c4275fba5ff23cf2fb50b8a46cfd9b0a | [
"MIT"
] | 428 | 2015-01-04T19:37:37.000Z | 2022-03-31T10:48:44.000Z | defmodule Timex.TimezoneInfo do
@moduledoc """
All relevant timezone information for a given period, i.e. Europe/Moscow on March 3rd, 2013
Notes:
- `full_name` is the name of the zone, but does not indicate anything about the current period (i.e. CST vs CDT)
- `abbreviation` is the abbreviated name for t... | 36.719512 | 123 | 0.641979 |
ffa673ec07ae17f750a2ec335d54702d309320ba | 2,296 | exs | Elixir | packages/elixir/test/interceptor_test.exs | venomnert/riptide | 39a50047bb51cd30a93ff7022bb01385c28a4f03 | [
"MIT"
] | 11 | 2020-01-20T16:42:00.000Z | 2021-09-18T11:36:45.000Z | packages/elixir/test/interceptor_test.exs | venomnert/riptide | 39a50047bb51cd30a93ff7022bb01385c28a4f03 | [
"MIT"
] | 16 | 2020-04-05T19:26:14.000Z | 2020-05-21T14:50:59.000Z | packages/elixir/test/interceptor_test.exs | venomnert/riptide | 39a50047bb51cd30a93ff7022bb01385c28a4f03 | [
"MIT"
] | 2 | 2020-10-16T11:01:57.000Z | 2021-01-20T21:11:52.000Z | defmodule Riptide.Test.Interceptor do
defmodule Example do
use Riptide.Interceptor
def mutation_before(["creatures", key], %{merge: %{"key" => _}}, _mut, _state) do
{:combine,
Riptide.Mutation.put_merge(["creatures", key, "created"], :os.system_time(:millisecond))}
end
def mutation_afte... | 21.457944 | 96 | 0.53223 |
ffa68587516db8a730c231b612e2498d5d0d765f | 406 | exs | Elixir | clients/text_to_speech/test/test_helper.exs | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/text_to_speech/test/test_helper.exs | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/text_to_speech/test/test_helper.exs | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | ExUnit.start()
defmodule GoogleApi.TextToSpeech.V1beta1.TestHelper do
defmacro __using__(opts) do
quote do
use ExUnit.Case, unquote(opts)
import GoogleApi.TextToSpeech.V1beta1.TestHelper
end
end
def for_scope(scopes) when is_list(scopes), do: for_scope(Enum.join(scopes, " "))
def for_scop... | 21.368421 | 83 | 0.711823 |
ffa688427ba6fbd8872e1b0dbbf155b330fed0f0 | 166 | ex | Elixir | lib/ex_keccak/impl.ex | alanwilhelm/ex_keccak | 49e722f4ddc6f7723d9612f51cd2dd6b97771886 | [
"Apache-2.0"
] | null | null | null | lib/ex_keccak/impl.ex | alanwilhelm/ex_keccak | 49e722f4ddc6f7723d9612f51cd2dd6b97771886 | [
"Apache-2.0"
] | null | null | null | lib/ex_keccak/impl.ex | alanwilhelm/ex_keccak | 49e722f4ddc6f7723d9612f51cd2dd6b97771886 | [
"Apache-2.0"
] | null | null | null | defmodule ExKeccak.Impl do
@moduledoc false
use Rustler, otp_app: :ex_keccak, crate: :exkeccak
def hash_256(_data), do: :erlang.nif_error(:nif_not_loaded)
end
| 23.714286 | 61 | 0.759036 |
ffa6abd34d301e6044e76e82faa38ed56257efc5 | 675 | ex | Elixir | lib/graphql/type/float.ex | seanabrahams/graphql-elixir | 568a07da317e19621cc0c931d738b4eda75f0a35 | [
"BSD-3-Clause"
] | null | null | null | lib/graphql/type/float.ex | seanabrahams/graphql-elixir | 568a07da317e19621cc0c931d738b4eda75f0a35 | [
"BSD-3-Clause"
] | null | null | null | lib/graphql/type/float.ex | seanabrahams/graphql-elixir | 568a07da317e19621cc0c931d738b4eda75f0a35 | [
"BSD-3-Clause"
] | null | null | null | defmodule GraphQL.Type.Float do
defstruct name: "Float", description:
"""
The `Float` scalar type represents signed double-precision fractional
values as specified by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point).
"""
def coerce(false), do: 0
def coerce(true), do: 1
def coerce(va... | 27 | 88 | 0.682963 |
ffa6bf72505a3945dcf2afa185880ee6481b161a | 7,293 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_type_postal_address.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_type_postal_address.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_type_postal_address.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... | 94.714286 | 1,279 | 0.739613 |
ffa6e42eccf3c77da476cff91a85a4676e403b3b | 2,421 | ex | Elixir | lib/bsv/crypto/rsa/public_key.ex | afomi/bsv-ex | a31db1e9d223aa4ac9cc00e86b1e6344a0037805 | [
"Apache-2.0"
] | null | null | null | lib/bsv/crypto/rsa/public_key.ex | afomi/bsv-ex | a31db1e9d223aa4ac9cc00e86b1e6344a0037805 | [
"Apache-2.0"
] | null | null | null | lib/bsv/crypto/rsa/public_key.ex | afomi/bsv-ex | a31db1e9d223aa4ac9cc00e86b1e6344a0037805 | [
"Apache-2.0"
] | null | null | null | defmodule BSV.Crypto.RSA.PublicKey do
@moduledoc """
RSA Public Key module.
"""
defstruct [:modulus, :public_exponent]
@typedoc "RSA Public Key"
@type t :: %__MODULE__{
modulus: integer,
public_exponent: integer
}
@typedoc "Erlang RSA Public Key sequence"
@type sequence :: {
:RSAPublicK... | 26.032258 | 90 | 0.672036 |
ffa6f2a5524b64d479d9770b42e96cb652eee929 | 435 | ex | Elixir | lib/recipient_4_genserver.ex | ianrumford/siariwyd_examples | 73eecc80b3f21f175a767bbf03c18acbc32a84f3 | [
"MIT"
] | null | null | null | lib/recipient_4_genserver.ex | ianrumford/siariwyd_examples | 73eecc80b3f21f175a767bbf03c18acbc32a84f3 | [
"MIT"
] | null | null | null | lib/recipient_4_genserver.ex | ianrumford/siariwyd_examples | 73eecc80b3f21f175a767bbf03c18acbc32a84f3 | [
"MIT"
] | null | null | null | defmodule Recipient4GenServer do
use GenServer
# client API functions
defdelegate donor_b_genserver_state_get(pid), to: DonorBGenServer
defdelegate donor_c_genserver_state_put(pid, new_state), to: DonorCGenServer
# handle_call functions
defdelegate handle_call(pid, fromref, state), to: DonorBGenServer
# t... | 39.545455 | 78 | 0.809195 |
ffa6f91c340f4ba489d563c73f1ec8f174d4c74c | 1,729 | ex | Elixir | clients/android_publisher/lib/google_api/android_publisher/v3/model/bundles_list_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/android_publisher/lib/google_api/android_publisher/v3/model/bundles_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/android_publisher/lib/google_api/android_publisher/v3/model/bundles_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... | 34.58 | 121 | 0.735685 |
ffa70dbe9d0ba7975f8839e097f09f7cd8d4731b | 1,206 | exs | Elixir | bench/witchcraft/ord/integer_bench.exs | doma-engineering/witchcraft | c84fa6b2146e7de745105e21f672ed413df93ad3 | [
"MIT"
] | 454 | 2019-06-05T22:56:45.000Z | 2022-03-27T23:03:02.000Z | bench/witchcraft/ord/integer_bench.exs | doma-engineering/witchcraft | c84fa6b2146e7de745105e21f672ed413df93ad3 | [
"MIT"
] | 26 | 2019-07-08T09:29:08.000Z | 2022-02-04T02:40:48.000Z | bench/witchcraft/ord/integer_bench.exs | doma-engineering/witchcraft | c84fa6b2146e7de745105e21f672ed413df93ad3 | [
"MIT"
] | 36 | 2019-06-25T17:45:27.000Z | 2022-03-21T01:53:42.000Z | defmodule Witchcraft.Ord.IntegerBench do
use Benchfella
use Witchcraft.Ord
#########
# Setup #
#########
# ---------- #
# Data Types #
# ---------- #
@int_a 10
@int_b -45
##########
# Kernel #
##########
bench "Kernel.>/2", do: Kernel.>(@int_a, @int_b)
bench "Kernel.</2", do: Kernel... | 20.440678 | 62 | 0.504975 |
ffa71172414afdfbdf4d653c4bff68cd3e5af23a | 12,298 | ex | Elixir | lib/saucexages.ex | nocursor/saucexages | 33e986a652306b2c54ad4891db7a27d78ed0d7cf | [
"MIT"
] | 7 | 2018-11-01T15:47:05.000Z | 2021-05-19T10:07:23.000Z | lib/saucexages.ex | nocursor/saucexages | 33e986a652306b2c54ad4891db7a27d78ed0d7cf | [
"MIT"
] | null | null | null | lib/saucexages.ex | nocursor/saucexages | 33e986a652306b2c54ad4891db7a27d78ed0d7cf | [
"MIT"
] | null | null | null | defmodule Saucexages do
@moduledoc """
Saucexages is a library that provides functionality for reading, writing, interrogating, and fixing [SAUCE](http://www.acid.org/info/sauce/sauce.htm) – Standard Architecture for Universal Comment Extensions.
The primary use of SAUCE is to add or augment metadata for files.... | 54.657778 | 615 | 0.734347 |
ffa755003524bf447a50653a8f5302f62d1cf227 | 2,588 | ex | Elixir | clients/binary_authorization/lib/google_api/binary_authorization/v1/model/admission_rule.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/binary_authorization/lib/google_api/binary_authorization/v1/model/admission_rule.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/binary_authorization/lib/google_api/binary_authorization/v1/model/admission_rule.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... | 48.830189 | 508 | 0.750773 |
ffa75ff6fc5db67393849fc239bfacce7beb5006 | 333 | ex | Elixir | lib/ex_nrel/utils.ex | techgaun/ex_nrel | 6a6509903f9340e0d48b88b985ef2aa0eaae4594 | [
"Apache-2.0"
] | null | null | null | lib/ex_nrel/utils.ex | techgaun/ex_nrel | 6a6509903f9340e0d48b88b985ef2aa0eaae4594 | [
"Apache-2.0"
] | null | null | null | lib/ex_nrel/utils.ex | techgaun/ex_nrel | 6a6509903f9340e0d48b88b985ef2aa0eaae4594 | [
"Apache-2.0"
] | null | null | null | defmodule ExNrel.Utils do
@moduledoc false
def api_key, do: Application.get_env(:ex_nrel, :api_key)
def output_format, do: Application.get_env(:ex_nrel, :format)
def user_agent, do: [{"User-agent", "ExNrel"}]
def compression, do: [{"Content-Encoding", "gzip"}]
def request_headers, do: user_agent() ++ compr... | 33.3 | 63 | 0.714715 |
ffa77232482f76ef39d12662ff801b291d289bfa | 67 | ex | Elixir | web/views/layout_view.ex | Juanchote/elixir-phoenix | d00411c8b30ea5fafca00f95d58f258a025c9338 | [
"MIT"
] | 8 | 2016-09-16T15:03:51.000Z | 2019-06-19T02:25:57.000Z | web/views/layout_view.ex | Juanchote/elixir-phoenix | d00411c8b30ea5fafca00f95d58f258a025c9338 | [
"MIT"
] | 13 | 2016-08-09T01:32:04.000Z | 2020-01-27T14:11:45.000Z | web/views/layout_view.ex | Juanchote/elixir-phoenix | d00411c8b30ea5fafca00f95d58f258a025c9338 | [
"MIT"
] | 13 | 2016-08-03T21:11:32.000Z | 2019-07-04T15:33:57.000Z | defmodule HelloWorld.LayoutView do
use HelloWorld.Web, :view
end
| 16.75 | 34 | 0.80597 |
ffa7d474d333d074b763c84030ca56acb306aaae | 1,132 | ex | Elixir | lib/spotify/models/pagings/paging_cursor.ex | chippers/spotify_web_api | 221a197dbac4971f87e9917d02cb335e6a42b726 | [
"MIT"
] | null | null | null | lib/spotify/models/pagings/paging_cursor.ex | chippers/spotify_web_api | 221a197dbac4971f87e9917d02cb335e6a42b726 | [
"MIT"
] | null | null | null | lib/spotify/models/pagings/paging_cursor.ex | chippers/spotify_web_api | 221a197dbac4971f87e9917d02cb335e6a42b726 | [
"MIT"
] | null | null | null | defmodule Spotify.Pagings.PagingCursor do
@moduledoc """
The cursor-based paging object is a container for a set of objects.
It contains a key called `items` (whose value is an array of the requested objects)
along with other keys like `next` and `cursors` that can be useful in future calls.
[Spotif... | 28.3 | 127 | 0.573322 |
ffa8332984b083f2786519175ccb2652099524b5 | 22 | ex | Elixir | lib/yaps/yaps.ex | keichan34/YAPS | 908ab1c1b8913b5acef5c4bf634f8879709fb0b9 | [
"MIT"
] | 1 | 2015-06-17T03:47:45.000Z | 2015-06-17T03:47:45.000Z | lib/yaps/yaps.ex | keichan34/YAPS | 908ab1c1b8913b5acef5c4bf634f8879709fb0b9 | [
"MIT"
] | null | null | null | lib/yaps/yaps.ex | keichan34/YAPS | 908ab1c1b8913b5acef5c4bf634f8879709fb0b9 | [
"MIT"
] | null | null | null | defmodule Yaps do
end
| 7.333333 | 17 | 0.818182 |
ffa8481f9b209be8653e19e94bd2ff3e5e290caa | 63 | exs | Elixir | test/sammal_test.exs | epiphone/sammal | 0058359f62fcdf048743fdd62bd84913b98b7773 | [
"MIT"
] | 2 | 2017-05-02T14:15:11.000Z | 2021-12-11T11:13:15.000Z | test/sammal_test.exs | epiphone/sammal | 0058359f62fcdf048743fdd62bd84913b98b7773 | [
"MIT"
] | null | null | null | test/sammal_test.exs | epiphone/sammal | 0058359f62fcdf048743fdd62bd84913b98b7773 | [
"MIT"
] | null | null | null | defmodule SammalTest do
use ExUnit.Case
doctest Sammal
end
| 12.6 | 23 | 0.793651 |
ffa85d9265a64a0b81108a746fb5c755a4909949 | 67 | exs | Elixir | test/upstream_test.exs | artellectual/blazay | 0c5f58514cc2417931786b5cd482978fa5bfd9c0 | [
"MIT"
] | 5 | 2018-02-16T15:32:41.000Z | 2020-03-31T10:55:24.000Z | test/upstream_test.exs | artellectual/blazay | 0c5f58514cc2417931786b5cd482978fa5bfd9c0 | [
"MIT"
] | 8 | 2017-07-12T04:27:31.000Z | 2017-12-26T06:30:47.000Z | test/upstream_test.exs | upmaru/blazay | 0c5f58514cc2417931786b5cd482978fa5bfd9c0 | [
"MIT"
] | 2 | 2018-02-16T15:32:45.000Z | 2018-03-04T12:11:57.000Z | defmodule UpstreamTest do
use ExUnit.Case
doctest Upstream
end
| 13.4 | 25 | 0.80597 |
ffa887f6b1ed9397c7ba48ba3e8bfd781de9276c | 3,803 | exs | Elixir | lib/elixir/test/elixir/kernel/lexical_tracker_test.exs | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/lexical_tracker_test.exs | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/kernel/lexical_tracker_test.exs | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../test_helper.exs", __DIR__
defmodule Kernel.LexicalTrackerTest do
use ExUnit.Case, async: true
alias Kernel.LexicalTracker, as: D
setup do
{:ok, pid} = D.start_link("dest")
{:ok, [pid: pid]}
end
test "gets the destination", config do
assert D.dest(config[:pid]) == "dest"
... | 33.069565 | 93 | 0.651854 |
ffa88a2759272ab1dce43b5e963793657ba129dd | 498 | exs | Elixir | config/test.exs | deanbrophy/fantastic-garbanzo | 2649c3ddb915a8e3e589be21cbfa1c79c59ed9b4 | [
"MIT"
] | 1 | 2017-03-08T18:46:17.000Z | 2017-03-08T18:46:17.000Z | config/test.exs | deanbrophy/fantastic-garbanzo | 2649c3ddb915a8e3e589be21cbfa1c79c59ed9b4 | [
"MIT"
] | null | null | null | config/test.exs | deanbrophy/fantastic-garbanzo | 2649c3ddb915a8e3e589be21cbfa1c79c59ed9b4 | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :elixircast, Elixircast.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :elixircast, Elix... | 24.9 | 56 | 0.736948 |
ffa88af3b45b6192c832d3882724591fe8378bba | 397 | ex | Elixir | lib/stripi/ephemeral_keys.ex | goalves/stripi | 1d9865103efb69cd69d7a418bcb53cfd355df37c | [
"MIT"
] | 7 | 2018-03-20T14:18:01.000Z | 2019-10-02T22:40:02.000Z | lib/stripi/ephemeral_keys.ex | goalves/stripi | 1d9865103efb69cd69d7a418bcb53cfd355df37c | [
"MIT"
] | 2 | 2019-03-12T16:37:39.000Z | 2019-03-12T18:28:03.000Z | lib/stripi/ephemeral_keys.ex | goalves/stripi | 1d9865103efb69cd69d7a418bcb53cfd355df37c | [
"MIT"
] | 2 | 2019-10-04T17:35:44.000Z | 2019-12-04T20:27:52.000Z | defmodule Stripi.EphemeralKeys do
use Stripi.Api
@url Application.get_env(:stripi, :base_url, "https://api.stripe.com/v1") <> "/ephemeral_keys"
def create(customer_id, opts \\ [headers: [{"Stripe-Version", api_version()}]]),
do: Stripi.request(&post/3, [@url, %{customer: customer_id}, opts])
def remove(ke... | 39.7 | 96 | 0.65995 |
ffa899123843e5b938dc10caf7a657a1789bd6e3 | 621 | ex | Elixir | lib/ex_component_schema/schema/root.ex | lenra-io/ex_component_schema | a051ba94057cdd3218c4625e24f56a834a586aa6 | [
"MIT"
] | 2 | 2022-03-18T08:52:29.000Z | 2022-03-18T08:52:33.000Z | lib/ex_component_schema/schema/root.ex | lenra-io/ex_component_schema | a051ba94057cdd3218c4625e24f56a834a586aa6 | [
"MIT"
] | 8 | 2021-09-15T11:52:45.000Z | 2022-01-10T13:13:53.000Z | lib/ex_component_schema/schema/root.ex | lenra-io/ex_component_schema | a051ba94057cdd3218c4625e24f56a834a586aa6 | [
"MIT"
] | null | null | null | defmodule ExComponentSchema.Schema.Root do
defstruct schema: %{},
refs: %{},
definitions: %{},
location: :root,
version: nil,
custom_format_validator: nil
@type t :: %ExComponentSchema.Schema.Root{
schema: ExComponentSchema.Schema.resolved(),
... | 34.5 | 76 | 0.5781 |
ffa8d2fddd6b83daf556a70dc16d9ad7af7c832e | 1,069 | exs | Elixir | mix.exs | thommay/bakeoff | 4c6cca860c45371f04021c3afceb4fe2e0b8d380 | [
"MIT"
] | null | null | null | mix.exs | thommay/bakeoff | 4c6cca860c45371f04021c3afceb4fe2e0b8d380 | [
"MIT"
] | null | null | null | mix.exs | thommay/bakeoff | 4c6cca860c45371f04021c3afceb4fe2e0b8d380 | [
"MIT"
] | null | null | null | defmodule Bakeoff.Mixfile do
use Mix.Project
def project do
[app: :bakeoff,
version: "0.0.1",
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
en... | 26.725 | 63 | 0.597755 |
ffa90007645dcff684a14d9f395e1f61d1647d02 | 778 | ex | Elixir | lib/virgo/thrift/client.ex | GinShio/AstraeaVirgo | 92804cbae01f67e21b8f421009fa37fddc9054e1 | [
"BSD-2-Clause"
] | null | null | null | lib/virgo/thrift/client.ex | GinShio/AstraeaVirgo | 92804cbae01f67e21b8f421009fa37fddc9054e1 | [
"BSD-2-Clause"
] | null | null | null | lib/virgo/thrift/client.ex | GinShio/AstraeaVirgo | 92804cbae01f67e21b8f421009fa37fddc9054e1 | [
"BSD-2-Clause"
] | null | null | null | defmodule AstraeaVirgo.Thrift.Client do
use GenServer
@host Application.get_env(:virgo, :rpc)[:host]
@port Application.get_env(:virgo, :rpc)[:port]
def start_link(opts \\ []) do
GenServer.start_link(__MODULE__, opts, name: __MODULE__)
end
def init(_opts) do
:thrift_client_util.new(
@host |>... | 25.933333 | 66 | 0.660668 |
ffa90758971656f9f08056182aad30a5626e8339 | 2,349 | exs | Elixir | test/hex/repo_test.exs | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 824 | 2015-01-05T09:12:36.000Z | 2022-03-28T12:02:29.000Z | test/hex/repo_test.exs | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 737 | 2015-01-01T05:48:46.000Z | 2022-03-29T12:56:12.000Z | test/hex/repo_test.exs | hrzndhrn/hex | f74e2ed979e74130bdc4a6974660aa986333f33f | [
"Apache-2.0"
] | 220 | 2015-03-14T17:55:11.000Z | 2022-03-23T22:17:07.000Z | defmodule Hex.RepoTest do
use HexTest.IntegrationCase
@private_key File.read!(Path.join(__DIR__, "../fixtures/test_priv.pem"))
test "get_package" do
assert {:ok, {200, _, _}} = Hex.Repo.get_package("hexpm", "postgrex", "")
assert_raise Mix.Error, ~r"Unknown repository \"bad\"", fn ->
Hex.Repo.get... | 31.743243 | 98 | 0.642401 |
ffa9b1cafc1cbe612f6740f2d5958cea82397fdf | 1,599 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_quote_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_quote_info.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_quote_info.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... | 34.021277 | 138 | 0.754221 |
ffa9ff444518fbe8544a0fc8bd1248d89ec1eeb6 | 861 | ex | Elixir | lib/trento/application/read_models/database_read_model.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-22T16:59:34.000Z | 2022-03-22T16:59:34.000Z | lib/trento/application/read_models/database_read_model.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 24 | 2022-03-22T16:45:25.000Z | 2022-03-31T13:00:02.000Z | lib/trento/application/read_models/database_read_model.ex | trento-project/web | 3260b30c781bffbbb0e5205cd650966c4026b9ac | [
"Apache-2.0"
] | 1 | 2022-03-30T14:16:16.000Z | 2022-03-30T14:16:16.000Z | defmodule Trento.DatabaseReadModel do
@moduledoc """
Database read model
"""
use Ecto.Schema
import Ecto.Changeset
alias Trento.DatabaseInstanceReadModel
@type t :: %__MODULE__{}
@derive {Jason.Encoder, except: [:__meta__, :__struct__]}
@primary_key {:id, :binary_id, autogenerate: false}
schema... | 26.090909 | 79 | 0.70151 |
ffaa1fc258daae7a6876a1a17f3e1dc95ea45992 | 7,240 | ex | Elixir | farmbot_core/lib/firmware/uart_core.ex | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | 1 | 2021-08-23T13:36:14.000Z | 2021-08-23T13:36:14.000Z | farmbot_core/lib/firmware/uart_core.ex | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | null | null | null | farmbot_core/lib/firmware/uart_core.ex | gdwb/farmbot_os | 0ef2697c580c9fbf37a22daa063a64addfcb778d | [
"MIT"
] | null | null | null | defmodule FarmbotCore.Firmware.UARTCore do
@moduledoc """
UARTCore is the central logic and processing module for all
inbound and outbound UART data (GCode).
Guiding Principles:
* No cached state - Delay data fetching. Never duplicate.
* No timeouts - Push data, don't pull.
* No polling - Pus... | 32.035398 | 78 | 0.671961 |
ffaa25455e2c0886c35bcd0ac68e13f49f96d888 | 7,545 | ex | Elixir | lib/sanbase_web/graphql/resolvers/user/user_resolver.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 1 | 2022-01-30T19:51:39.000Z | 2022-01-30T19:51:39.000Z | lib/sanbase_web/graphql/resolvers/user/user_resolver.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | lib/sanbase_web/graphql/resolvers/user/user_resolver.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | defmodule SanbaseWeb.Graphql.Resolvers.UserResolver do
require Logger
import Sanbase.Utils.ErrorHandling, only: [changeset_errors: 1]
import Absinthe.Resolution.Helpers, except: [async: 1]
alias Sanbase.InternalServices.Ethauth
alias Sanbase.Accounts.{User, UserFollower}
alias SanbaseWeb.Graphql.SanbaseDa... | 29.357977 | 102 | 0.616037 |
ffaa4aa33d1c8a7314fd7f2b53bea820272ba3ba | 10,318 | ex | Elixir | lib/exfsm.ex | tableturn/exfsm | 38083f1524a8a66e05c99ab6d024c369b9c83726 | [
"MIT"
] | 6 | 2015-01-23T17:44:28.000Z | 2016-09-04T04:00:01.000Z | lib/exfsm.ex | tableturn/exfsm | 38083f1524a8a66e05c99ab6d024c369b9c83726 | [
"MIT"
] | 1 | 2021-08-25T13:28:11.000Z | 2021-08-25T13:28:11.000Z | lib/exfsm.ex | tableturn/exfsm | 38083f1524a8a66e05c99ab6d024c369b9c83726 | [
"MIT"
] | 3 | 2019-02-27T16:54:08.000Z | 2021-03-03T16:28:41.000Z | defmodule ExFSM do
@type fsm_spec :: %{{state_name :: atom, event_name :: atom} => {exfsm_module :: atom,[dest_statename :: atom]}}
@moduledoc """
After `use ExFSM` : define FSM transition handler with `deftrans fromstate({action_name,params},state)`.
A function `fsm` will be created returning a map of the `fsm... | 41.272 | 147 | 0.640628 |
ffaa53a3553ae68f30501c0d54313cd9b3831c76 | 8,979 | ex | Elixir | lib/ecto/adapters/postgres.ex | IcyEagle/ecto | 26237057d4ffff2daf5258e181eccc3238b71490 | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/postgres.ex | IcyEagle/ecto | 26237057d4ffff2daf5258e181eccc3238b71490 | [
"Apache-2.0"
] | null | null | null | lib/ecto/adapters/postgres.ex | IcyEagle/ecto | 26237057d4ffff2daf5258e181eccc3238b71490 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Adapters.Postgres do
@moduledoc """
Adapter module for PostgreSQL.
It uses `postgrex` for communicating to the database
and a connection pool, such as `poolboy`.
## Features
* Full query support (including joins, preloads and associations)
* Support for transactions
* Support for... | 32.067857 | 102 | 0.63281 |
ffaa6ad5af8a38bfd1984bb9aef34b480a13bd89 | 161 | ex | Elixir | apps/wechat_mp/lib/wechat_mp/api/model/media_id.ex | secretworry/exwechat | 2d3a8bf03135eebd58452122c2f7b3718b5f5b3d | [
"Apache-2.0"
] | null | null | null | apps/wechat_mp/lib/wechat_mp/api/model/media_id.ex | secretworry/exwechat | 2d3a8bf03135eebd58452122c2f7b3718b5f5b3d | [
"Apache-2.0"
] | null | null | null | apps/wechat_mp/lib/wechat_mp/api/model/media_id.ex | secretworry/exwechat | 2d3a8bf03135eebd58452122c2f7b3718b5f5b3d | [
"Apache-2.0"
] | null | null | null | defmodule WechatMP.Api.Model.MediaId do
use WechatBase.Api.Model.JsonResponse
model do
field :type
field :media_id
field :created_at
end
end
| 14.636364 | 39 | 0.726708 |
ffaa947b276a9459ee8f2636da418489053c03c4 | 189 | exs | Elixir | priv/repo/migrations/20201111234045_criar_tarefas.exs | tarcisiooliveira/todo_app | 2a5291390c64cc6a0a593b8d0f671ad899dea034 | [
"MIT"
] | null | null | null | priv/repo/migrations/20201111234045_criar_tarefas.exs | tarcisiooliveira/todo_app | 2a5291390c64cc6a0a593b8d0f671ad899dea034 | [
"MIT"
] | null | null | null | priv/repo/migrations/20201111234045_criar_tarefas.exs | tarcisiooliveira/todo_app | 2a5291390c64cc6a0a593b8d0f671ad899dea034 | [
"MIT"
] | null | null | null | defmodule TodoApp.Repo.Migrations.CriarTarefas do
use Ecto.Migration
def change do
create table(:tarefas) do
add :titulo, :text
add :pronta, :boolean
end
end
end
| 17.181818 | 49 | 0.68254 |
ffaaa9539e05ad91b3986aefa93ab94984b434de | 894 | ex | Elixir | src/schnapps-ex/apps/schnapps_web/lib/schnapps_web/application.ex | korczis/dj-schnapps | 7128988695855161f22d0ef2dd9ef61b46ba6f9a | [
"MIT"
] | null | null | null | src/schnapps-ex/apps/schnapps_web/lib/schnapps_web/application.ex | korczis/dj-schnapps | 7128988695855161f22d0ef2dd9ef61b46ba6f9a | [
"MIT"
] | null | null | null | src/schnapps-ex/apps/schnapps_web/lib/schnapps_web/application.ex | korczis/dj-schnapps | 7128988695855161f22d0ef2dd9ef61b46ba6f9a | [
"MIT"
] | null | null | null | defmodule SchnappsWeb.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.8 | 70 | 0.725951 |
ffaab1211f0bf0d4ab2231355b47055cc8f34d8b | 6,938 | ex | Elixir | lib/codes/codes_q64.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_q64.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_q64.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_Q64 do
alias IcdCode.ICDCode
def _Q640 do
%ICDCode{full_code: "Q640",
category_code: "Q64",
short_code: "0",
full_name: "Epispadias",
short_name: "Epispadias",
category_name: "Epispadias"
}
end
def _Q6410 do
%ICDCode... | 33.843902 | 85 | 0.619343 |
ffaad5e5653cf69587d40882dfa4f872ea7a9380 | 4,259 | ex | Elixir | lib/changelog/data/news/news_queue.ex | theafricanengineer/changelog.com | 4954d0df516c0a325667ec6c1fbbf02d68c9b953 | [
"MIT"
] | null | null | null | lib/changelog/data/news/news_queue.ex | theafricanengineer/changelog.com | 4954d0df516c0a325667ec6c1fbbf02d68c9b953 | [
"MIT"
] | null | null | null | lib/changelog/data/news/news_queue.ex | theafricanengineer/changelog.com | 4954d0df516c0a325667ec6c1fbbf02d68c9b953 | [
"MIT"
] | null | null | null | defmodule Changelog.NewsQueue do
use Changelog.Data
require Logger
alias Changelog.{Buffer, NewsItem, NewsQueue, Notifier, Search}
schema "news_queue" do
field :position, :float
belongs_to :item, NewsItem
end
def queued(query \\ NewsQueue) do
from(q in query,
left_join: i in assoc(q, :... | 26.290123 | 108 | 0.629021 |
ffaaddba1ed93a6c2b29251bd94c5a198fee2a48 | 2,833 | exs | Elixir | test/crit/users/user_api_test.exs | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 6 | 2019-07-16T19:31:23.000Z | 2021-06-05T19:01:05.000Z | test/crit/users/user_api_test.exs | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | null | null | null | test/crit/users/user_api_test.exs | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 3 | 2020-02-24T23:38:27.000Z | 2020-08-01T23:50:17.000Z | defmodule Crit.Users.UserApiTest do
use Crit.DataCase
alias Crit.Users.UserApi
alias Crit.Users.UserHavingToken
alias Crit.Users.Schemas.PermissionList
alias Crit.Exemplars.Minimal
# Factor out verbosity. Is also a handy list of what's tested here
def t_fresh_user_changeset(),
do: UserApi.fresh_user_... | 29.821053 | 76 | 0.619485 |
ffaae86db636510e7dc8fedc014c4fcf60a4382d | 20,556 | exs | Elixir | test/ex_doc/language/elixir_test.exs | cristineguadelupe/ex_doc | d152fe92739dbc5372eef936f4a24fbacdf7cc1e | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | test/ex_doc/language/elixir_test.exs | cristineguadelupe/ex_doc | d152fe92739dbc5372eef936f4a24fbacdf7cc1e | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | test/ex_doc/language/elixir_test.exs | cristineguadelupe/ex_doc | d152fe92739dbc5372eef936f4a24fbacdf7cc1e | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | defmodule ExDoc.Language.ElixirTest do
use ExUnit.Case, async: true
doctest ExDoc.Autolink
import ExUnit.CaptureIO
defp sigil_m(text, []) do
[{:p, _, [ast], _}] = ExDoc.Markdown.to_ast(text, [])
ast
end
setup do
ExDoc.Refs.clear()
:ok
end
describe "autolink_doc/2" do
test "elixir ... | 37.23913 | 260 | 0.569663 |
ffab15d9653ab5899e95ecf37a04597b16f25f28 | 803 | exs | Elixir | config/test.exs | RubyFireStudio/phoenix-api-scaffold | 231c11fe6008a47d51e24b8e26fb6f5dc7a24ca6 | [
"MIT"
] | null | null | null | config/test.exs | RubyFireStudio/phoenix-api-scaffold | 231c11fe6008a47d51e24b8e26fb6f5dc7a24ca6 | [
"MIT"
] | null | null | null | config/test.exs | RubyFireStudio/phoenix-api-scaffold | 231c11fe6008a47d51e24b8e26fb6f5dc7a24ca6 | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :reanix, ReanixWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Reduce number of rounds
config :bcrypt_elixir, log_ro... | 29.740741 | 80 | 0.770859 |
ffab1b5176f3a2a5d362d073474c2ff97737df8f | 913 | ex | Elixir | apps/management/lib/management/registry.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/management/lib/management/registry.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/management/lib/management/registry.ex | rucker/hindsight | 876a5d344c5d8eebbea37684ee07e0a91e4430f0 | [
"Apache-2.0"
] | 10 | 2020-02-13T21:24:09.000Z | 2020-05-21T18:39:35.000Z | defmodule Management.Registry do
@moduledoc """
Folds helper functions around `Registry` usage into a
custom `Registry` module.
"""
defmacro __using__(opts) do
name = Keyword.fetch!(opts, :name)
quote location: :keep do
def child_spec(_init_arg) do
Supervisor.child_spec({Registry, keys:... | 26.852941 | 81 | 0.579409 |
ffab3091c3def38e4eb422fd1a6ccbabe9ecb651 | 892 | exs | Elixir | apps/robby_web/test/controllers/settings_profile_controller_test.exs | puppetlabs/openrobby | a4b70939ee1b878d44cb09d757b7f72e7109ac5d | [
"Apache-2.0"
] | 3 | 2021-04-16T21:54:55.000Z | 2021-04-30T22:15:41.000Z | apps/robby_web/test/controllers/settings_profile_controller_test.exs | puppetlabs/openrobby | a4b70939ee1b878d44cb09d757b7f72e7109ac5d | [
"Apache-2.0"
] | 1 | 2021-06-29T15:54:19.000Z | 2021-06-29T15:54:19.000Z | apps/robby_web/test/controllers/settings_profile_controller_test.exs | puppetlabs/openrobby | a4b70939ee1b878d44cb09d757b7f72e7109ac5d | [
"Apache-2.0"
] | 2 | 2021-04-16T22:23:16.000Z | 2021-05-26T15:52:55.000Z | defmodule RobbyWeb.SettingsProfileControllerTest do
use RobbyWeb.ConnCase
alias RobbyWeb.User
setup do
{:ok, conn: build_conn()}
end
test "should not render profile page if not logged in", %{conn: conn} do
conn = get(conn, settings_profile_path(conn, :show))
assert html_response(conn, 302) =~ "r... | 27.875 | 78 | 0.644619 |
ffab4c9e031f0d841e570fbba8eedd8873453473 | 904 | exs | Elixir | messages/elixir/mix.exs | plavcik/cucumber | 8559082eaa668c0d5ddb3594666a8966efddfdc3 | [
"MIT"
] | null | null | null | messages/elixir/mix.exs | plavcik/cucumber | 8559082eaa668c0d5ddb3594666a8966efddfdc3 | [
"MIT"
] | null | null | null | messages/elixir/mix.exs | plavcik/cucumber | 8559082eaa668c0d5ddb3594666a8966efddfdc3 | [
"MIT"
] | null | null | null | defmodule CucumberMessages.MixProject do
@moduledoc false
use Mix.Project
@vsn "15.0.0"
@github "https://github.com/cucumber/cucumber/tree/master/messages/elixir"
@name "CucumberMessages"
def project do
[
app: :cucumber_messages,
version: @vsn,
name: @name,
description: descrip... | 18.833333 | 76 | 0.575221 |
ffab752c04bbb8c6d5a179b78a88c01040b9163a | 916 | ex | Elixir | lib/sitemap/alternates.ex | isavita/sitemap | 0fa66869646e1bace12f2e60bb08aeaa0f713f38 | [
"MIT",
"Unlicense"
] | 3 | 2019-05-17T00:57:02.000Z | 2020-04-03T12:38:53.000Z | lib/sitemap/alternates.ex | isavita/sitemap | 0fa66869646e1bace12f2e60bb08aeaa0f713f38 | [
"MIT",
"Unlicense"
] | 1 | 2020-02-18T14:15:48.000Z | 2020-02-18T14:15:48.000Z | lib/sitemap/alternates.ex | isavita/sitemap | 0fa66869646e1bace12f2e60bb08aeaa0f713f38 | [
"MIT",
"Unlicense"
] | 1 | 2020-02-18T11:29:25.000Z | 2020-02-18T11:29:25.000Z | defmodule Sitemap.Alternate do
@moduledoc false
@doc false
@spec new(keyword()) :: iodata()
def new(alternates), do: create(Map.new(alternates), 4, ["\n\s\s<xhtml:link"])
defp create(_alt, 0, ["\n\s\s<xhtml:link"]), do: []
defp create(_alt, 0, acc), do: [acc | "/>"]
defp create(%{href: value} = alt, 4, ... | 31.586207 | 80 | 0.582969 |
ffab96b3937c267341ccaa89c8929b94a4598ed5 | 1,660 | ex | Elixir | web/controllers/session_controller.ex | olsv/phoenix_app_template | f55b1faddd32b09ce7c11e667bbc9e73e2c80fbf | [
"MIT"
] | null | null | null | web/controllers/session_controller.ex | olsv/phoenix_app_template | f55b1faddd32b09ce7c11e667bbc9e73e2c80fbf | [
"MIT"
] | null | null | null | web/controllers/session_controller.ex | olsv/phoenix_app_template | f55b1faddd32b09ce7c11e667bbc9e73e2c80fbf | [
"MIT"
] | null | null | null | defmodule PhoenixAppTemplate.SessionController do
use PhoenixAppTemplate.Web, :controller
plug Ueberauth
plug :scrub_params, "user" when action in [:create]
alias PhoenixAppTemplate.User
def callback(%{assigns: %{ueberauth_failure: _fails}} = conn, _params) do
conn
|> handle_authentication_error("Fa... | 27.666667 | 80 | 0.658434 |
ffabe2edfa271e43b17e09907e581aec068f8cf6 | 2,843 | ex | Elixir | lib/absinthe/phase/schema/populate_persistent_term.ex | derekbrown/absinthe | 20b6d6970173dcf8d262cad952563e3b0e856289 | [
"MIT"
] | null | null | null | lib/absinthe/phase/schema/populate_persistent_term.ex | derekbrown/absinthe | 20b6d6970173dcf8d262cad952563e3b0e856289 | [
"MIT"
] | null | null | null | lib/absinthe/phase/schema/populate_persistent_term.ex | derekbrown/absinthe | 20b6d6970173dcf8d262cad952563e3b0e856289 | [
"MIT"
] | null | null | null | case Code.ensure_loaded(:persistent_term) do
{:module, _mod} ->
defmodule Absinthe.Phase.Schema.PopulatePersistentTerm do
@moduledoc false
alias Absinthe.Blueprint.Schema
def run(blueprint, opts) do
%{schema_definitions: [schema]} = blueprint
type_list =
Map.new(sche... | 29.926316 | 92 | 0.614843 |
ffabe72562a15e232b6155476cd83a1e04a31a3b | 3,335 | ex | Elixir | lib/chat_api_web/controllers/widget_settings_controller.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 4,942 | 2020-07-20T22:35:28.000Z | 2022-03-31T15:38:51.000Z | lib/chat_api_web/controllers/widget_settings_controller.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 552 | 2020-07-22T01:39:04.000Z | 2022-02-01T00:26:35.000Z | lib/chat_api_web/controllers/widget_settings_controller.ex | ZmagoD/papercups | dff9a5822b809edc4fd8ecf198566f9b14ab613f | [
"MIT"
] | 396 | 2020-07-22T19:27:48.000Z | 2022-03-31T05:25:24.000Z | defmodule ChatApiWeb.WidgetSettingsController do
use ChatApiWeb, :controller
alias ChatApi.{Accounts, WidgetSettings}
alias ChatApi.WidgetSettings.WidgetSetting
action_fallback(ChatApiWeb.FallbackController)
@spec show(Plug.Conn.t(), map()) :: Plug.Conn.t()
def show(conn, %{"account_id" => account_id} = ... | 30.87963 | 98 | 0.663268 |
ffabf95720b8f5931c2e243b686ba9204f6e4225 | 1,425 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_announcement_data.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_announcement_data.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_announcement_data.ex | EVLedger/elixir-google-api | 61edef19a5e2c7c63848f7030c6d8d651e4593d4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.319149 | 93 | 0.746667 |
ffac17d77084eb67cbf0ed62aeb9db0405d6397b | 598 | exs | Elixir | nerves.exs | evokly/evokly_things_system | d951f4f2d8e0f5b4f29896ca3c460b4c4f58cd13 | [
"Apache-2.0"
] | null | null | null | nerves.exs | evokly/evokly_things_system | d951f4f2d8e0f5b4f29896ca3c460b4c4f58cd13 | [
"Apache-2.0"
] | null | null | null | nerves.exs | evokly/evokly_things_system | d951f4f2d8e0f5b4f29896ca3c460b4c4f58cd13 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
version =
Path.join(__DIR__, "VERSION")
|> File.read!
|> String.strip
config :nerves_system_evokly_thing, :nerves_env,
type: :system,
version: version,
mirrors: [
"https://github.com/evokly/evokly_things_system/releases/download/v#{version}/nerves_system_evokly_thing-v#{version}.tar.gz"... | 23 | 128 | 0.660535 |
ffac68a315ea91380ba9133a369c9d9992e092e9 | 286 | exs | Elixir | calc/calc.exs | ryuichi1208/rand_w_exs | e3d2264ed8065e2b6e63cbc02e479bb795ea2bc6 | [
"MIT"
] | null | null | null | calc/calc.exs | ryuichi1208/rand_w_exs | e3d2264ed8065e2b6e63cbc02e479bb795ea2bc6 | [
"MIT"
] | null | null | null | calc/calc.exs | ryuichi1208/rand_w_exs | e3d2264ed8065e2b6e63cbc02e479bb795ea2bc6 | [
"MIT"
] | null | null | null | defmodule IntegerSamples do
require Integer
def exec do
print_exec(Integer.is_odd(1))
print_exec(Integer.is_odd(2))
print_exec(Integer.is_even(1))
print_exec(Integer.is_even(2))
end
defp print_exec(value) do
IO.inspect value
end
end
IntegerSamples.exec
| 17.875 | 34 | 0.727273 |
ffac6b6a05d860bd83f8eb5a0bfa9125bc213de8 | 257 | exs | Elixir | apps/andi/priv/repo/migrations/20201022192734_change_extract_column_to_action.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/andi/priv/repo/migrations/20201022192734_change_extract_column_to_action.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/andi/priv/repo/migrations/20201022192734_change_extract_column_to_action.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule Andi.Repo.Migrations.ChangeExtractColumnToAction do
use Ecto.Migration
def change do
rename table("extract_http_step"), :method, to: :action
alter table(:extract_http_step) do
add :protocol, {:array, :string}
end
end
end
| 21.416667 | 61 | 0.719844 |
ffac880c85b4161995174e8f6b8f337cf80dce5a | 516 | ex | Elixir | lib/mastani_server/cms/repo_contributor.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:03:54.000Z | 2019-05-07T15:03:54.000Z | lib/mastani_server/cms/repo_contributor.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | lib/mastani_server/cms/repo_contributor.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | defmodule MastaniServer.CMS.RepoContributor do
@moduledoc false
alias __MODULE__
use Ecto.Schema
import Ecto.Changeset
@required_fields ~w(avatar nickname html_url)a
@type t :: %RepoContributor{}
embedded_schema do
field(:avatar, :string)
field(:nickname, :string)
field(:html_url, :string)
... | 21.5 | 64 | 0.722868 |
ffacbb5664fc9ec93aa11ea06481da24f7ee9df4 | 1,916 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/list_location_lists_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/list_location_lists_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/display_video/lib/google_api/display_video/v1/model/list_location_lists_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.32 | 239 | 0.74739 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.