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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
91fa93c41a0325cdd759f4c0fae1658ecfa5ac2d | 2,419 | exs | Elixir | test/app/github/repository_fetcher_test.exs | vsyrovat/awesome_elixir | cfac2de5402c13f86f99032477daee883b31c020 | [
"MIT"
] | 2 | 2019-12-17T11:40:54.000Z | 2019-12-22T17:15:29.000Z | test/app/github/repository_fetcher_test.exs | vsyrovat/funbox_awesome_elixir | cfac2de5402c13f86f99032477daee883b31c020 | [
"MIT"
] | 5 | 2020-10-08T20:36:07.000Z | 2020-10-08T21:27:28.000Z | test/app/github/repository_fetcher_test.exs | vsyrovat/awesome-elixir | cfac2de5402c13f86f99032477daee883b31c020 | [
"MIT"
] | null | null | null | defmodule App.Github.RepositoryFetcherTest do
use ExUnit.Case
import Tesla.Mock
alias App.Github.RepositoryFetcher
alias App.Github.RepositoryFetcher.Repo
alias App.Github.RepositoryFetcher.Limit
test "retrieve repo info" do
mock(fn %{method: :get, url: "https://api.github.com/repos/foo/bar"} ->
... | 28.127907 | 92 | 0.56511 |
91fa9e2b31e09abf5b07ef4160b0e7a7011a4f13 | 1,522 | ex | Elixir | lib/open_pantry/web/channels/facility_channel.ex | neilfulwiler/open_pantry | 4b705f2282c7b2365a784503c9f1bdd34c741798 | [
"MIT"
] | 41 | 2017-10-04T00:33:46.000Z | 2021-04-09T01:33:34.000Z | lib/open_pantry/web/channels/facility_channel.ex | openpantry/open_pantry | 27d898a65dd6f44b325f48d41bc448bb486d9c6f | [
"MIT"
] | 74 | 2017-09-20T03:36:17.000Z | 2018-11-20T20:46:16.000Z | lib/open_pantry/web/channels/facility_channel.ex | neilfulwiler/open_pantry | 4b705f2282c7b2365a784503c9f1bdd34c741798 | [
"MIT"
] | 12 | 2017-10-04T10:02:49.000Z | 2021-12-28T22:57:20.000Z | defmodule OpenPantry.Web.FacilityChannel do
use OpenPantry.Web, :channel
alias OpenPantry.FoodSelection
alias OpenPantry.Stock
alias OpenPantry.User
alias OpenPantry.Web.SharedView
def join("facility:" <> facility_id_string, _, socket) do
facility_id = String.to_integer(facility_id_string)
socket ... | 40.052632 | 143 | 0.71682 |
91faa1f4cc1981246b9276b2a94cef96492da682 | 5,453 | ex | Elixir | lib/nifsy.ex | antipax/read_nif | 795709bdf7d20ec8a841bccdd39a1c9d5b9360ad | [
"Apache-2.0"
] | 9 | 2018-04-06T07:48:12.000Z | 2021-09-09T11:23:09.000Z | lib/nifsy.ex | antipax/read_nif | 795709bdf7d20ec8a841bccdd39a1c9d5b9360ad | [
"Apache-2.0"
] | 1 | 2018-11-18T08:41:15.000Z | 2018-11-18T09:34:13.000Z | lib/nifsy.ex | ericentin/nifsy | 795709bdf7d20ec8a841bccdd39a1c9d5b9360ad | [
"Apache-2.0"
] | null | null | null | defmodule Nifsy do
@moduledoc """
The Nifsy API.
"""
alias Nifsy.{Handle, Native}
@default_buffer_bytes 64 * 1024
@options [:append, :create, :dsync, :exclusive, :lock, :sync, :truncate]
@type option ::
:append |
{:buffer_bytes, pos_integer} |
:create |
:dsync |
:exclusive |
:l... | 32.266272 | 99 | 0.672474 |
91faa620ec89b97edae9cc63d2dfff9c550a2a38 | 65 | exs | Elixir | test/bno055_test.exs | TattdCodeMonkey/bno055 | 195f072521834be2416453a1f2ee41280d07d3a3 | [
"MIT"
] | 1 | 2016-02-05T14:23:57.000Z | 2016-02-05T14:23:57.000Z | test/bno055_test.exs | TattdCodeMonkey/bno055 | 195f072521834be2416453a1f2ee41280d07d3a3 | [
"MIT"
] | null | null | null | test/bno055_test.exs | TattdCodeMonkey/bno055 | 195f072521834be2416453a1f2ee41280d07d3a3 | [
"MIT"
] | null | null | null | defmodule BNO055Test do
use ExUnit.Case
doctest BNO055
end
| 13 | 23 | 0.769231 |
91fae1dc7c1a04088d3f4d54b3ea86e2d2f9f63b | 2,563 | ex | Elixir | apps/tai/lib/tai/venue_adapters/bitmex/stream/process_optional_channels.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 276 | 2018-01-16T06:36:06.000Z | 2021-03-20T21:48:01.000Z | apps/tai/lib/tai/venue_adapters/bitmex/stream/process_optional_channels.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 73 | 2018-10-05T18:45:06.000Z | 2021-02-08T05:46:33.000Z | apps/tai/lib/tai/venue_adapters/bitmex/stream/process_optional_channels.ex | ccamateur/tai | 41c4b3e09dafc77987fa3f6b300c15461d981e16 | [
"MIT"
] | 43 | 2018-06-09T09:54:51.000Z | 2021-03-07T07:35:17.000Z | defmodule Tai.VenueAdapters.Bitmex.Stream.ProcessOptionalChannels do
use GenServer
alias Tai.VenueAdapters.Bitmex.Stream
defmodule State do
@type venue_id :: Tai.Venue.id()
@type t :: %State{venue: venue_id}
@enforce_keys ~w(venue)a
defstruct ~w(venue)a
end
@type venue_id :: Tai.Venue.id()
... | 23.3 | 96 | 0.624659 |
91faf04d041b53e3e6443a954378464a0dbc4192 | 17,108 | ex | Elixir | clients/slides/lib/google_api/slides/v1/api/presentations.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/api/presentations.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/api/presentations.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 ... | 45.259259 | 196 | 0.636544 |
91fafc8050391d82ebdea2c50d8d544d2cd9af37 | 1,396 | ex | Elixir | lib/go_champs_api_web/views/draw_view.ex | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | null | null | null | lib/go_champs_api_web/views/draw_view.ex | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | 5 | 2021-09-29T04:01:54.000Z | 2021-11-02T03:11:52.000Z | lib/go_champs_api_web/views/draw_view.ex | lairjr/tournamentsapi | dde8f8f659074527d3861391af3ab29f070179f2 | [
"MIT"
] | 1 | 2021-11-02T14:43:15.000Z | 2021-11-02T14:43:15.000Z | defmodule GoChampsApiWeb.DrawView do
use GoChampsApiWeb, :view
alias GoChampsApiWeb.DrawView
def render("index.json", %{draws: draws}) do
%{data: render_many(draws, DrawView, "draw.json")}
end
def render("batch_list.json", %{draws: draws}) do
draws_view =
draws
|> Map.keys()
|> Enu... | 26.339623 | 68 | 0.643983 |
91fafff6e8251e1cebc3aa0bebc8c1308daa2557 | 12,882 | ex | Elixir | lib/accent/scopes/translation.ex | suryatmodulus/accent | 6aaf34075c33f3d9d84d38237af4a39b594eb808 | [
"BSD-3-Clause"
] | null | null | null | lib/accent/scopes/translation.ex | suryatmodulus/accent | 6aaf34075c33f3d9d84d38237af4a39b594eb808 | [
"BSD-3-Clause"
] | null | null | null | lib/accent/scopes/translation.ex | suryatmodulus/accent | 6aaf34075c33f3d9d84d38237af4a39b594eb808 | [
"BSD-3-Clause"
] | null | null | null | defmodule Accent.Scopes.Translation do
import Ecto.Query
alias Ecto.Queryable
alias Accent.{Operation, Repo, Translation}
@doc """
Default ordering is by ascending key
## Examples
iex> Accent.Scopes.Translation.parse_order(Accent.Translation, nil)
#Ecto.Query<from t0 in Accent.Translation, order... | 37.666667 | 154 | 0.688868 |
91fb3969527c2a21e038fae279ed7321616a56e5 | 10,077 | ex | Elixir | lib/live_phone/component.ex | workwithmax/live_phone | 1a5482a9032735dd201f2468643145f1ee0a3588 | [
"MIT"
] | null | null | null | lib/live_phone/component.ex | workwithmax/live_phone | 1a5482a9032735dd201f2468643145f1ee0a3588 | [
"MIT"
] | 14 | 2021-08-02T16:16:22.000Z | 2022-03-25T16:14:20.000Z | lib/live_phone/component.ex | workwithmax/live_phone | 1a5482a9032735dd201f2468643145f1ee0a3588 | [
"MIT"
] | null | null | null | defmodule LivePhone.Component do
@moduledoc """
The `LivePhone.Component` is a Phoenix LiveView component that can be used
to prompt users for their phone numbers, and try to make it as simple as possible.
Usage is pretty simple, and there is an example Phoenix project included in the
`./example`/ directory... | 30.170659 | 98 | 0.626476 |
91fb3fc6a5d705c8dcdb9b4717182467f4a53ca4 | 1,866 | ex | Elixir | clients/drive_activity/lib/google_api/drive_activity/v2/model/team_drive.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/drive_activity/lib/google_api/drive_activity/v2/model/team_drive.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/drive_activity/lib/google_api/drive_activity/v2/model/team_drive.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... | 35.207547 | 148 | 0.713826 |
91fb7e2161f03b262c13bbe5212087f18ebb1c84 | 149 | exs | Elixir | config/prod.exs | mattiaslundberg/home_display | ce571e37090398cfb15a508cf9758c174efa3d5e | [
"MIT"
] | null | null | null | config/prod.exs | mattiaslundberg/home_display | ce571e37090398cfb15a508cf9758c174efa3d5e | [
"MIT"
] | null | null | null | config/prod.exs | mattiaslundberg/home_display | ce571e37090398cfb15a508cf9758c174efa3d5e | [
"MIT"
] | null | null | null | import Config
config :home_display, :main_scene, HomeDisplay.Scene.Main
config :home_display, :influx_module, HomeDisplay.Reporters.InfluxConnection
| 37.25 | 76 | 0.852349 |
91fb856c18e8477eba71f74caf1099888e35ca6f | 3,759 | ex | Elixir | coherence_demo_confirm_members/lib/coherence_demo_web/controllers/user_controller.ex | hotpyn/coherence-setup | fc10bb15d993ae0dd13a19fd178bdfb4ee13d6b6 | [
"MIT"
] | null | null | null | coherence_demo_confirm_members/lib/coherence_demo_web/controllers/user_controller.ex | hotpyn/coherence-setup | fc10bb15d993ae0dd13a19fd178bdfb4ee13d6b6 | [
"MIT"
] | null | null | null | coherence_demo_confirm_members/lib/coherence_demo_web/controllers/user_controller.ex | hotpyn/coherence-setup | fc10bb15d993ae0dd13a19fd178bdfb4ee13d6b6 | [
"MIT"
] | null | null | null | defmodule CoherenceDemoWeb.UserController do
use CoherenceDemoWeb, :controller
use Timex
alias Coherence.Controller
alias CoherenceDemo.Coherence.User
def index(conn, _params) do
users = Repo.all(User)
render(conn, "index.html", users: users)
end
def new(conn, _params) do
changeset = User.c... | 25.06 | 67 | 0.559457 |
91fb8b07bd0cc0c2249a361862e994bf503e8e59 | 1,447 | ex | Elixir | lib/music_sync/application.ex | ZucchiniZe/music_sync | 23550e5aa71503dfdbad39f49cfcd83bd98ce457 | [
"MIT"
] | 2 | 2021-07-27T10:39:02.000Z | 2021-12-18T06:55:42.000Z | lib/music_sync/application.ex | ZucchiniZe/music_sync | 23550e5aa71503dfdbad39f49cfcd83bd98ce457 | [
"MIT"
] | null | null | null | lib/music_sync/application.ex | ZucchiniZe/music_sync | 23550e5aa71503dfdbad39f49cfcd83bd98ce457 | [
"MIT"
] | null | null | null | defmodule MusicSync.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@cache_name Application.compile_env!(:music_sync, [MusicSync.Spotify, :cache])
def start(_type, _args) do
children = [
# Start the prom... | 32.886364 | 82 | 0.700069 |
91fb9364823e3f1ef4d87b6d07c9800b07e41d51 | 287 | exs | Elixir | test/command/output_settings_test.exs | smartrent/jeff | 1cd2e418207579c338cdbdcaa331da8e17585b28 | [
"Apache-2.0"
] | null | null | null | test/command/output_settings_test.exs | smartrent/jeff | 1cd2e418207579c338cdbdcaa331da8e17585b28 | [
"Apache-2.0"
] | null | null | null | test/command/output_settings_test.exs | smartrent/jeff | 1cd2e418207579c338cdbdcaa331da8e17585b28 | [
"Apache-2.0"
] | null | null | null | defmodule CommandOutputSettingsTest do
use ExUnit.Case
alias Jeff.Command.OutputSettings
test "encode" do
[output, code, timer] = [0x01, 0x00, 2]
assert OutputSettings.encode(output: output, code: code, timer: timer) ==
<<0x01, 0x00, 0x02, 0x00>>
end
end
| 22.076923 | 77 | 0.672474 |
91fba0975c9bf5920369fab654167fe9860808fe | 3,629 | ex | Elixir | lib/aws/mobile_analytics.ex | xflagstudio/aws-elixir | 2b6444181793f3e5665bcafb4333a3bab9e8d3a8 | [
"Apache-2.0"
] | null | null | null | lib/aws/mobile_analytics.ex | xflagstudio/aws-elixir | 2b6444181793f3e5665bcafb4333a3bab9e8d3a8 | [
"Apache-2.0"
] | null | null | null | lib/aws/mobile_analytics.ex | xflagstudio/aws-elixir | 2b6444181793f3e5665bcafb4333a3bab9e8d3a8 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/jkakar/aws-codegen for more details.
defmodule AWS.MobileAnalytics do
@moduledoc """
Amazon Mobile Analytics is a service for collecting, visualizing, and
understanding app usage data at scale.
"""
@doc """
The PutEvents operation recor... | 39.021505 | 91 | 0.650041 |
91fbad0518f3cddeee81a2988279ed2085f141dc | 131 | exs | Elixir | apps/model/test/model/stop_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 62 | 2019-01-17T12:34:39.000Z | 2022-03-20T21:49:47.000Z | apps/model/test/model/stop_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 375 | 2019-02-13T15:30:50.000Z | 2022-03-30T18:50:41.000Z | apps/model/test/model/stop_test.exs | fjlanasa/api | c39bc393aea572bfb81754b2ea1adf9dda9ce24a | [
"MIT"
] | 14 | 2019-01-16T19:35:57.000Z | 2022-02-26T18:55:54.000Z | defmodule Model.StopTest do
@moduledoc false
use ExUnit.Case, async: true
alias Model.Stop
import Stop
doctest Stop
end
| 14.555556 | 30 | 0.748092 |
91fbb4c91437ad5c345e4b6d6cb3427062973337 | 796 | exs | Elixir | src/dguweb/config/prod.secret.exs | datagovuk/dgu2 | 3e24bdf27b30c22791efc19029ead05488c8f571 | [
"MIT"
] | 2 | 2016-08-09T16:46:52.000Z | 2016-08-09T16:46:59.000Z | src/dguweb/config/prod.secret.exs | datagovuk/dgu2 | 3e24bdf27b30c22791efc19029ead05488c8f571 | [
"MIT"
] | 48 | 2016-07-14T15:12:41.000Z | 2016-09-27T16:19:54.000Z | src/dguweb/config/prod.secret.exs | datagovuk/dgu2 | 3e24bdf27b30c22791efc19029ead05488c8f571 | [
"MIT"
] | 1 | 2021-04-10T21:23:44.000Z | 2021-04-10T21:23:44.000Z | use Mix.Config
# In this file, we keep production configuration that
# you likely want to automate and keep it away from
# your version control system.
#
# You should document the content of this
# file or create a script for recreating it, since it's
# kept out of version control and might be hard to recover
# or rec... | 33.166667 | 100 | 0.767588 |
91fbb7cb09a435f318062554895a39f03d15df54 | 4,056 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/monitored_resource_descriptor.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/monitored_resource_descriptor.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/monitored_resource_descriptor.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 63.375 | 570 | 0.747535 |
91fbbb3e2e4cb635576742e1f00aec728a5fcf01 | 1,116 | ex | Elixir | elixir/lib/homework_web/controllers/user_controller.ex | neilybilly/web-homework | da6efb6a6740975c42591e4afebfaa92d4a90f01 | [
"MIT"
] | null | null | null | elixir/lib/homework_web/controllers/user_controller.ex | neilybilly/web-homework | da6efb6a6740975c42591e4afebfaa92d4a90f01 | [
"MIT"
] | null | null | null | elixir/lib/homework_web/controllers/user_controller.ex | neilybilly/web-homework | da6efb6a6740975c42591e4afebfaa92d4a90f01 | [
"MIT"
] | null | null | null | defmodule HomeworkWeb.UserController do
use HomeworkWeb, :controller
alias Homework.Users
alias Homework.Users.User
# Params include first_name & last_name for filtering
def index(conn, _params) do
users = Users.list_users(conn.query_params)
render(conn, "index.json", users: users)
end
def show... | 26.571429 | 73 | 0.630824 |
91fbd7cce702b8f1ae932be53a8060774de615cd | 13,802 | ex | Elixir | lib/livebook_web/live/home_live.ex | howard0su/livebook | 6b7825871338af0ec3f4196ec3e17d2670e6a92c | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/home_live.ex | howard0su/livebook | 6b7825871338af0ec3f4196ec3e17d2670e6a92c | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/home_live.ex | howard0su/livebook | 6b7825871338af0ec3f4196ec3e17d2670e6a92c | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.HomeLive do
use LivebookWeb, :live_view
import LivebookWeb.SessionHelpers
import LivebookWeb.UserHelpers
alias LivebookWeb.{SidebarHelpers, ExploreHelpers}
alias Livebook.{Sessions, Session, LiveMarkdown, Notebook, FileSystem}
@impl true
def mount(params, _session, socket) do
... | 33.418886 | 118 | 0.616432 |
91fbd9e1716fb55393109465a26ebee14846e636 | 1,731 | ex | Elixir | lib/grizzly/command_class/zip_nd/inv_node_solicitation.ex | ryanwinchester/grizzly | 86002e01debe63c18f85270ddc948e3875f25043 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/command_class/zip_nd/inv_node_solicitation.ex | ryanwinchester/grizzly | 86002e01debe63c18f85270ddc948e3875f25043 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/command_class/zip_nd/inv_node_solicitation.ex | ryanwinchester/grizzly | 86002e01debe63c18f85270ddc948e3875f25043 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.CommandClass.ZipNd.InvNodeSolicitation do
@moduledoc """
Command module for working with ZIP_ND INV_NODE_SOLICITATION command
Request the IPv6 address of a device on the Z/IP Gateway network
command options:
* `:node_id` - The node id for the request
"""
@behaviour Grizzly.Command
... | 26.227273 | 91 | 0.612363 |
91fbfe222cabf17cfe007d824aca9492c483236c | 1,115 | exs | Elixir | config/config.exs | christhekeele/anansi | 4f4c0e9eb5961cf902b9ec1797d44d371c1b7257 | [
"MIT"
] | null | null | null | config/config.exs | christhekeele/anansi | 4f4c0e9eb5961cf902b9ec1797d44d371c1b7257 | [
"MIT"
] | null | null | null | config/config.exs | christhekeele/anansi | 4f4c0e9eb5961cf902b9ec1797d44d371c1b7257 | [
"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.967742 | 73 | 0.750673 |
91fc004b1a80c8e7134047cc7e963b5dd83a4cab | 2,940 | exs | Elixir | redis_proxy/test/redis_proxy/cache_test.exs | the-kid89/redis_proxy | b232194fa690b3e72eeaef199e05f2d0c3016f19 | [
"BSD-2-Clause"
] | null | null | null | redis_proxy/test/redis_proxy/cache_test.exs | the-kid89/redis_proxy | b232194fa690b3e72eeaef199e05f2d0c3016f19 | [
"BSD-2-Clause"
] | 1 | 2018-09-17T19:08:00.000Z | 2018-09-19T18:20:04.000Z | redis_proxy/test/redis_proxy/cache_test.exs | the-kid89/redis_proxy | b232194fa690b3e72eeaef199e05f2d0c3016f19 | [
"BSD-2-Clause"
] | null | null | null | defmodule RedisProxy.CacheTest do
use ExUnit.Case, async: false
test "add and update state" do
testState = %{size: 1, max_size: 2, order: [{"test", "hello"}], cache: %{"test"=> "hello"}}
{newState} = RedisProxy.Cache.add({"test", "hello"}, %{size: 0, max_size: 2, order: [], cache: Map.new() })
assert ... | 48.196721 | 177 | 0.585374 |
91fc033c5572d8fef834fd4bd45b768d0b9cdc3c | 202 | ex | Elixir | lib/postscript/retry.ex | malomohq/postscript-elixir | 580a0be4c455ed6cc332df8e80344e8cff8610c9 | [
"MIT"
] | null | null | null | lib/postscript/retry.ex | malomohq/postscript-elixir | 580a0be4c455ed6cc332df8e80344e8cff8610c9 | [
"MIT"
] | 2 | 2021-03-16T21:16:04.000Z | 2021-03-18T07:04:35.000Z | lib/postscript/retry.ex | malomohq/postscript-elixir | 580a0be4c455ed6cc332df8e80344e8cff8610c9 | [
"MIT"
] | null | null | null | defmodule Postscript.Retry do
alias Postscript.{ Config, Request }
@callback wait_for(
request :: Request.t(),
config :: Config.t()
) :: non_neg_integer
end
| 22.444444 | 38 | 0.574257 |
91fc3e733ca58201fc392667389d088696289e91 | 2,522 | exs | Elixir | config/prod.exs | ramortegui/pdf_calendar | 38f367aa505c7f7374cedc34c51e6640f6f983ee | [
"MIT"
] | null | null | null | config/prod.exs | ramortegui/pdf_calendar | 38f367aa505c7f7374cedc34c51e6640f6f983ee | [
"MIT"
] | 2 | 2021-03-08T23:54:52.000Z | 2021-05-08T00:14:57.000Z | config/prod.exs | ramortegui/pdf_calendar | 38f367aa505c7f7374cedc34c51e6640f6f983ee | [
"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.081081 | 69 | 0.716891 |
91fc4353febd83ff77f8408ca4a7cf30ccb49e04 | 512 | ex | Elixir | test/support/file_helpers.ex | LaxisB/neo4_ecto | dd41935463c71b611d989fa10cbad9d8522cc1dd | [
"Apache-2.0"
] | 58 | 2021-05-14T13:38:44.000Z | 2022-02-07T16:59:33.000Z | test/support/file_helpers.ex | LaxisB/neo4_ecto | dd41935463c71b611d989fa10cbad9d8522cc1dd | [
"Apache-2.0"
] | 6 | 2021-05-13T19:31:15.000Z | 2021-10-14T00:00:54.000Z | test/support/file_helpers.ex | LaxisB/neo4_ecto | dd41935463c71b611d989fa10cbad9d8522cc1dd | [
"Apache-2.0"
] | 4 | 2021-06-18T16:29:52.000Z | 2021-11-06T05:46:22.000Z | defmodule Support.FileHelpers do
@moduledoc false
def tmp_path do
Path.expand("../tmp", __DIR__)
end
# ToDo to really get advantage of this macro
# path should come from config and not to be
# hardcoded. So a further change could be
# related to this path
defmacro in_tmp(fun) do
path = Path.abs... | 23.272727 | 51 | 0.658203 |
91fc48bc96057f4f3763bec6d74acce875fc09a3 | 6,039 | ex | Elixir | lib/credo/check/runner.ex | jonnystoten/credo | 03879f4ec6987e03401d8553572804cfa5c19130 | [
"MIT"
] | null | null | null | lib/credo/check/runner.ex | jonnystoten/credo | 03879f4ec6987e03401d8553572804cfa5c19130 | [
"MIT"
] | null | null | null | lib/credo/check/runner.ex | jonnystoten/credo | 03879f4ec6987e03401d8553572804cfa5c19130 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Runner do
@moduledoc false
# This module is responsible for running checks based on the context represented
# by the current `Credo.Execution`.
alias Credo.CLI.Output.UI
alias Credo.Execution
alias Credo.Execution.ExecutionIssues
alias Credo.Execution.ExecutionTiming
alias Credo.... | 27.575342 | 101 | 0.668819 |
91fc8ff0d5a985acf2b23e4c37088ff2cd696b46 | 1,599 | exs | Elixir | apps/andi/config/dev.exs | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/andi/config/dev.exs | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/andi/config/dev.exs | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | 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 webpack to recompile .js and .css sources.
host = "localhost"
redix_args = [host: host]
config :an... | 27.101695 | 68 | 0.677298 |
91fcab228aa11c550ac69f6ffec1dea6ca2c9cfd | 195 | ex | Elixir | test/support/comment.ex | Tanbits/scrivener_ecto | 78776e1981f8ec8c25df054ab32b7f8ac9a4be5d | [
"MIT"
] | null | null | null | test/support/comment.ex | Tanbits/scrivener_ecto | 78776e1981f8ec8c25df054ab32b7f8ac9a4be5d | [
"MIT"
] | null | null | null | test/support/comment.ex | Tanbits/scrivener_ecto | 78776e1981f8ec8c25df054ab32b7f8ac9a4be5d | [
"MIT"
] | null | null | null | defmodule Scrivener.Ecto.Comment do
@moduledoc false
use Ecto.Schema
schema "comments" do
field(:body, :string)
belongs_to(:post, Scrivener.Ecto.Post)
timestamps()
end
end
| 15 | 42 | 0.697436 |
91fcf46b5fcd4d4b9007d8e068b31baef241e8e2 | 887 | ex | Elixir | lib/crawly/engine_sup.ex | vermaxik/crawly | 7e09e53c673ac8fc3be388e4e8bd8512a8c1a155 | [
"Apache-2.0"
] | null | null | null | lib/crawly/engine_sup.ex | vermaxik/crawly | 7e09e53c673ac8fc3be388e4e8bd8512a8c1a155 | [
"Apache-2.0"
] | null | null | null | lib/crawly/engine_sup.ex | vermaxik/crawly | 7e09e53c673ac8fc3be388e4e8bd8512a8c1a155 | [
"Apache-2.0"
] | null | null | null | defmodule Crawly.EngineSup do
# Engine supervisor responsible for spider subtrees
@moduledoc false
use DynamicSupervisor
def start_link do
DynamicSupervisor.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
DynamicSupervisor.init(strategy: :one_for_one)
end
def start_spider(s... | 22.74359 | 71 | 0.640361 |
91fcffe9def01f703c03b2ed64c41a40b2e7d6bf | 1,442 | ex | Elixir | Elixir-Examples/examplemix/lib/Server/server.ex | shubhamagiwal/DOSFall2017 | 3c1522c4163f57402f147b50614d4051b05a080f | [
"MIT"
] | 3 | 2019-10-28T21:02:55.000Z | 2020-10-01T02:29:37.000Z | Elixir-Examples/examplemix/lib/Server/server.ex | shubhamagiwal/DOSFall2017 | 3c1522c4163f57402f147b50614d4051b05a080f | [
"MIT"
] | null | null | null | Elixir-Examples/examplemix/lib/Server/server.ex | shubhamagiwal/DOSFall2017 | 3c1522c4163f57402f147b50614d4051b05a080f | [
"MIT"
] | 4 | 2019-10-12T19:41:58.000Z | 2021-09-24T20:24:47.000Z | defmodule Examplemix.Server do
def start_link do
{:ok,[{ipadd1,_,_},{_,_,_}]}=:inet.getif()
ipaddress= ipadd1|> Tuple.to_list |> Enum.join(".")
{:ok,pid}=Node.start(String.to_atom("awesome@"<>to_string(ipaddress)))
Node.set_cookie(Node.self(),String.to_atom("awesome"))
IO.p... | 34.333333 | 84 | 0.608877 |
91fd1b71ee90b7e06007ae78919b536901d9b318 | 17,537 | ex | Elixir | lib/rdf/literal/datatype.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | lib/rdf/literal/datatype.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | lib/rdf/literal/datatype.ex | pukkamustard/rdf-ex | c459d8e7fa548fdfad82643338b68decf380a296 | [
"MIT"
] | null | null | null | defmodule RDF.Literal.Datatype do
@moduledoc """
A behaviour for datatypes for `RDF.Literal`s.
An implementation of this behaviour defines a struct for a datatype IRI and the semantics of its
values via the functions defined by this behaviour.
There are three important groups of `RDF.Literal.Datatype` imple... | 38.041215 | 132 | 0.662314 |
91fd55b4bba2df54a111b68ae50b7ba666e40841 | 407 | ex | Elixir | lib/rockelivery_web/views/users_view.ex | cassiofariasmachado/rockelivery | 3d88d4d8af1cdc3f2988edc69162d848009babbd | [
"MIT"
] | 1 | 2021-09-27T06:15:08.000Z | 2021-09-27T06:15:08.000Z | lib/rockelivery_web/views/users_view.ex | cassiofariasmachado/rockelivery | 3d88d4d8af1cdc3f2988edc69162d848009babbd | [
"MIT"
] | null | null | null | lib/rockelivery_web/views/users_view.ex | cassiofariasmachado/rockelivery | 3d88d4d8af1cdc3f2988edc69162d848009babbd | [
"MIT"
] | 1 | 2021-12-21T12:47:59.000Z | 2021-12-21T12:47:59.000Z | defmodule RockeliveryWeb.UsersView do
use RockeliveryWeb, :view
alias Rockelivery.User
def render("sign_in.json", %{token: token}), do: %{access_token: token}
def render("create.json", %{user: %User{} = user, token: token}) do
%{
message: "User created",
user: user,
access_token: token
... | 22.611111 | 73 | 0.626536 |
91fd64fbcf38cc7db7f468724c5a8eb087b68171 | 1,660 | exs | Elixir | mix.exs | christhekeele/anansi | 4f4c0e9eb5961cf902b9ec1797d44d371c1b7257 | [
"MIT"
] | null | null | null | mix.exs | christhekeele/anansi | 4f4c0e9eb5961cf902b9ec1797d44d371c1b7257 | [
"MIT"
] | null | null | null | mix.exs | christhekeele/anansi | 4f4c0e9eb5961cf902b9ec1797d44d371c1b7257 | [
"MIT"
] | null | null | null | defmodule Anansi.Mixfile do
use Mix.Project
def project, do: [
name: "Anansi",
app: :anansi,
version: "0.0.3",
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
docs: docs(),
package: package(),
source_url: package()[:... | 21.012658 | 83 | 0.542169 |
91fd651dfb2d06742c2e30742b985116557dafeb | 1,543 | ex | Elixir | lib/ekeko_web/views/error_helpers.ex | sergiotapia/ekeko | e7b8ea523a8ae7dd6983d099021c9790504bcc0c | [
"MIT"
] | 8 | 2022-02-21T00:34:21.000Z | 2022-03-12T08:13:26.000Z | lib/ekeko_web/views/error_helpers.ex | sergiotapia/ekeko | e7b8ea523a8ae7dd6983d099021c9790504bcc0c | [
"MIT"
] | null | null | null | lib/ekeko_web/views/error_helpers.ex | sergiotapia/ekeko | e7b8ea523a8ae7dd6983d099021c9790504bcc0c | [
"MIT"
] | null | null | null | defmodule EkekoWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag(:s... | 32.145833 | 74 | 0.66429 |
91fda9dce8c593a0dc2163469a12f3a1e59eb1e7 | 2,441 | exs | Elixir | test/exlasticlb_test.exs | samble/exlastic-load-balancer | 55d5e85657567896f9ea1471f9b3f053d8dacc05 | [
"MIT"
] | 2 | 2016-06-30T00:19:48.000Z | 2021-02-14T18:05:09.000Z | test/exlasticlb_test.exs | samble/exlastic-load-balancer | 55d5e85657567896f9ea1471f9b3f053d8dacc05 | [
"MIT"
] | null | null | null | test/exlasticlb_test.exs | samble/exlastic-load-balancer | 55d5e85657567896f9ea1471f9b3f053d8dacc05 | [
"MIT"
] | 1 | 2016-06-28T13:46:16.000Z | 2016-06-28T13:46:16.000Z | import Mock
defmodule TestCommon do
def noop(args \\ nil) do args end
end
defmodule AWSTests do
use ExUnit.Case
# run only these tests with "mix test --only aws"
@moduletag :aws
@real_instance "i-12363f8e"
test "get AWS cpu usage percent" do
Application.ensure_all_started(:erlcloud)
IO.puts i... | 22.190909 | 73 | 0.663253 |
91fdeaed06c6baa73602a59475f8c7e8c34f5720 | 1,217 | exs | Elixir | test/mojiex_test.exs | enpedasi/Mojiex | 97b08253f532204918c4c65fad4ee214a7384b94 | [
"MIT"
] | 18 | 2018-04-03T15:49:15.000Z | 2021-09-14T16:44:25.000Z | test/mojiex_test.exs | enpedasi/Mojiex | 97b08253f532204918c4c65fad4ee214a7384b94 | [
"MIT"
] | null | null | null | test/mojiex_test.exs | enpedasi/Mojiex | 97b08253f532204918c4c65fad4ee214a7384b94 | [
"MIT"
] | 1 | 2018-07-22T04:58:06.000Z | 2018-07-22T04:58:06.000Z | defmodule MojiexTest do
use PowerAssert
# use ExUnit.Case
# doctest Mojiex
test "Basic" do
assert Mojiex.convert("ABCD 01234あいうアイウABCD 01234アイウ", {:ze, :he}) ==
"ABCD 01234あいうアイウABCD 01234アイウ"
assert Mojiex.convert("ABCD 01234あいうアイウABCD 01234アイウ", {:he, :ze}) ==
"ABCD 01234あい... | 34.771429 | 75 | 0.647494 |
91fdfdbb15e23f01f7f8a00ae8d6831f44b1282e | 3,803 | ex | Elixir | lib/eth/transaction/builder.ex | derekbrown/eth | f23403f8ea9b870d493b94a334c75347c985803d | [
"MIT"
] | null | null | null | lib/eth/transaction/builder.ex | derekbrown/eth | f23403f8ea9b870d493b94a334c75347c985803d | [
"MIT"
] | null | null | null | lib/eth/transaction/builder.ex | derekbrown/eth | f23403f8ea9b870d493b94a334c75347c985803d | [
"MIT"
] | null | null | null | defmodule ETH.Transaction.Builder do
import ETH.Transaction.Parser
@moduledoc """
This module converts transaction parameters as a list or map to
Ethereum Transaction map. The result map is encoded with default ethereum hex encodings for
every value so you can sign and send it to any Ethereum client. I... | 26.047945 | 98 | 0.601893 |
91fe1d26c96ef61f8df1094f4a9e175a2b5f3133 | 12,387 | exs | Elixir | test/plug/csrf_protection_test.exs | jshmrtn/plug | fdfce10e6cf07414e55cb56ff843c45682c85d22 | [
"Apache-2.0"
] | 1,218 | 2017-07-14T15:13:32.000Z | 2022-03-30T16:42:42.000Z | test/plug/csrf_protection_test.exs | jshmrtn/plug | fdfce10e6cf07414e55cb56ff843c45682c85d22 | [
"Apache-2.0"
] | 502 | 2017-07-19T15:36:44.000Z | 2022-03-31T06:47:36.000Z | test/plug/csrf_protection_test.exs | jshmrtn/plug | fdfce10e6cf07414e55cb56ff843c45682c85d22 | [
"Apache-2.0"
] | 376 | 2017-07-17T15:47:55.000Z | 2022-03-23T19:24:30.000Z | defmodule Plug.CSRFProtectionTest do
use ExUnit.Case, async: true
use Plug.Test
alias Plug.CSRFProtection
alias Plug.CSRFProtection.InvalidCSRFTokenError
alias Plug.CSRFProtection.InvalidCrossOriginRequestError
@default_opts Plug.Session.init(
store: :cookie,
key: "foob... | 31.359494 | 96 | 0.661177 |
91fe297dd49e15c0644974695a02a70d0f3e93d8 | 720 | exs | Elixir | apps/snitch_core/priv/repo/migrations/20180709190111_create_product_table.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_core/priv/repo/migrations/20180709190111_create_product_table.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_core/priv/repo/migrations/20180709190111_create_product_table.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule Snitch.Repo.Migrations.CreateProductTable do
use Ecto.Migration
def change do
create table("snitch_products") do
add :name, :string, null: false, default: ""
add :description, :text
add :available_on, :utc_datetime
add :deleted_at, :utc_datetime
add :discontinue_on, :ut... | 26.666667 | 76 | 0.675 |
91fe3dfd38c7926ccaef612b416fa2d493ab2b98 | 1,486 | exs | Elixir | config/dev.exs | Conceptx/absinthe-example | 369fbeaf2e688767240e2ec961a2029359580afa | [
"MIT"
] | null | null | null | config/dev.exs | Conceptx/absinthe-example | 369fbeaf2e688767240e2ec961a2029359580afa | [
"MIT"
] | null | null | null | config/dev.exs | Conceptx/absinthe-example | 369fbeaf2e688767240e2ec961a2029359580afa | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :gazol, GazolWeb.Endpoint,
http: [port: 6000],... | 31.617021 | 170 | 0.731494 |
91fe5c119d984270c723e2a85a421336708fb4e7 | 1,053 | ex | Elixir | web/channels/room_channel.ex | wlodarczykj/yacht | 31a4199555a1e5e14b3cbed8a0d960477f4a5bd0 | [
"Apache-2.0"
] | null | null | null | web/channels/room_channel.ex | wlodarczykj/yacht | 31a4199555a1e5e14b3cbed8a0d960477f4a5bd0 | [
"Apache-2.0"
] | null | null | null | web/channels/room_channel.ex | wlodarczykj/yacht | 31a4199555a1e5e14b3cbed8a0d960477f4a5bd0 | [
"Apache-2.0"
] | null | null | null | defmodule Yacht.RoomChannel do
use Phoenix.Channel
import Yacht.ChannelHelper
def join("room:lobby", _message, socket) do
{:ok, socket}
end
def join("room:" <> _private_room_id, _params, _socket) do
{:error, %{reason: "unauthorized"}}
end
def handle_in("drawline", %{"from" => %{"x" => fromX, "y... | 30.970588 | 135 | 0.5717 |
91fe7569daec7b2b64eb741ec955584fc21a48ef | 1,228 | ex | Elixir | lib/composers/ota_hotel_avail_query/request.ex | EevanW/ex_open_travel | cc52155dd0dbf7e9a305c07890c2de47e87e3585 | [
"Apache-2.0"
] | null | null | null | lib/composers/ota_hotel_avail_query/request.ex | EevanW/ex_open_travel | cc52155dd0dbf7e9a305c07890c2de47e87e3585 | [
"Apache-2.0"
] | null | null | null | lib/composers/ota_hotel_avail_query/request.ex | EevanW/ex_open_travel | cc52155dd0dbf7e9a305c07890c2de47e87e3585 | [
"Apache-2.0"
] | null | null | null | defmodule ExOpenTravel.Composers.OtaHotelAvailQuery.Request do
alias ExOpenTravel.Meta
alias ExOpenTravel.Request
alias ExOpenTravel.Request.Document
@action "OTA_HotelAvailRQ"
@type credentials :: %{user: String.t(), password: String.t(), endpoint: String.t()}
@type t :: %{hotel_code: String.t()}
@type... | 37.212121 | 91 | 0.668567 |
91fe80c6ff4fad4bae719f696ad0350600ec5932 | 1,141 | exs | Elixir | short-long-short/config/config.exs | crsanti/codewars-elixir | 7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0 | [
"MIT"
] | 2 | 2021-08-18T11:31:31.000Z | 2021-08-24T00:25:08.000Z | short-long-short/config/config.exs | crsanti/codewars-elixir | 7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0 | [
"MIT"
] | null | null | null | short-long-short/config/config.exs | crsanti/codewars-elixir | 7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.806452 | 73 | 0.755478 |
91fe8ba1d498f1ae9cb8df240d824359e728b51c | 106 | ex | Elixir | lib/futibas/repo.ex | caironoleto/futibas | 5e827211ed91621ce5fe1fe99829f567bc7acb20 | [
"MIT"
] | null | null | null | lib/futibas/repo.ex | caironoleto/futibas | 5e827211ed91621ce5fe1fe99829f567bc7acb20 | [
"MIT"
] | null | null | null | lib/futibas/repo.ex | caironoleto/futibas | 5e827211ed91621ce5fe1fe99829f567bc7acb20 | [
"MIT"
] | null | null | null | defmodule Futibas.Repo do
use Ecto.Repo,
otp_app: :futibas,
adapter: Ecto.Adapters.Postgres
end
| 17.666667 | 35 | 0.726415 |
91fe9e450a75ac36d2942acd6be5054263fefe54 | 1,907 | exs | Elixir | test/scenic/primitive/ellipse_test.exs | zacck/scenic | 5f2170b7fba63b0af597ddeb3107fb1ffb79c2fe | [
"Apache-2.0"
] | null | null | null | test/scenic/primitive/ellipse_test.exs | zacck/scenic | 5f2170b7fba63b0af597ddeb3107fb1ffb79c2fe | [
"Apache-2.0"
] | null | null | null | test/scenic/primitive/ellipse_test.exs | zacck/scenic | 5f2170b7fba63b0af597ddeb3107fb1ffb79c2fe | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on June 29, 2018
# Copyright © 2018 Kry10 Industries. All rights reserved.
#
defmodule Scenic.Primitive.EllipseTest do
use ExUnit.Case, async: true
doctest Scenic
alias Scenic.Primitive
alias Scenic.Primitive.Ellipse
@data {100, 200}
# =====================================... | 28.893939 | 80 | 0.525957 |
91feb1b8e68b32014119ad0a6c4a26a49e310534 | 23,401 | ex | Elixir | lib/hangman/pass_stub.ex | brpandey/elixir-hangman | 458502af766b42e492ebb9ca543fc8b855687b09 | [
"MIT"
] | 1 | 2016-12-19T00:10:34.000Z | 2016-12-19T00:10:34.000Z | lib/hangman/pass_stub.ex | brpandey/elixir-hangman | 458502af766b42e492ebb9ca543fc8b855687b09 | [
"MIT"
] | null | null | null | lib/hangman/pass_stub.ex | brpandey/elixir-hangman | 458502af766b42e492ebb9ca543fc8b855687b09 | [
"MIT"
] | null | null | null | defmodule Hangman.Pass.Stub do
@moduledoc false
# Stub module to mimic `Pass` functionality
# Provides a scaffold implementation
# to provide simple, predictable behavior
alias Hangman.{Pass, Reduction, Counter}
@doc """
Stub Routine retrieves stub pass tally given game start pass key
"""
@spec ... | 19.915745 | 966 | 0.414769 |
91feb5f982dd94a9d48ede10ed817c8c96869592 | 16,780 | exs | Elixir | bricks/test/connectors/connector_tcp_test.exs | jjl/bricks.ex | 318db55c0b316fe88c701a962d8a3fd24019130e | [
"Apache-2.0"
] | null | null | null | bricks/test/connectors/connector_tcp_test.exs | jjl/bricks.ex | 318db55c0b316fe88c701a962d8a3fd24019130e | [
"Apache-2.0"
] | null | null | null | bricks/test/connectors/connector_tcp_test.exs | jjl/bricks.ex | 318db55c0b316fe88c701a962d8a3fd24019130e | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2018 James Laver
#
# 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 wr... | 40.336538 | 95 | 0.553039 |
91fecd0bf0eb5e25bc55c05bbb2e2592f077f1ad | 11,509 | ex | Elixir | clients/policy_simulator/lib/google_api/policy_simulator/v1/api/organizations.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/policy_simulator/lib/google_api/policy_simulator/v1/api/organizations.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/policy_simulator/lib/google_api/policy_simulator/v1/api/organizations.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... | 45.133333 | 390 | 0.63559 |
91fed476fba38fb3420518c56b002969f527e806 | 3,927 | ex | Elixir | lib/konvex/implementation/riak/text_bucket_with_key_aggregate.ex | KosyanMedia/konvex | 03f538a7223bbfa85a82ebdbd77f1fd70dc23c2a | [
"MIT"
] | 1 | 2022-03-08T08:30:24.000Z | 2022-03-08T08:30:24.000Z | lib/konvex/implementation/riak/text_bucket_with_key_aggregate.ex | KosyanMedia/konvex | 03f538a7223bbfa85a82ebdbd77f1fd70dc23c2a | [
"MIT"
] | 1 | 2022-01-28T16:45:57.000Z | 2022-01-28T16:56:22.000Z | lib/konvex/implementation/riak/text_bucket_with_key_aggregate.ex | KosyanMedia/konvex | 03f538a7223bbfa85a82ebdbd77f1fd70dc23c2a | [
"MIT"
] | null | null | null | defmodule Konvex.Implementation.Riak.TextBucketWithKeyAggregate do
@doc """
Regular Riak bucket with text values CRUD-client extended with get-all-keys ability
implemented using two-bucket-setup (second one is used for key aggregation of the first one)
"""
defmacro __using__(
[
buc... | 42.684783 | 109 | 0.672778 |
91fee212b6cc72aba14a9dce416462431af64cb4 | 1,233 | exs | Elixir | mix.exs | bdeak4/ex_njuskalo | 2208c3c4c77437c4c128abaf74c2a6d52592a976 | [
"MIT"
] | null | null | null | mix.exs | bdeak4/ex_njuskalo | 2208c3c4c77437c4c128abaf74c2a6d52592a976 | [
"MIT"
] | null | null | null | mix.exs | bdeak4/ex_njuskalo | 2208c3c4c77437c4c128abaf74c2a6d52592a976 | [
"MIT"
] | null | null | null | defmodule ExNjuskalo.MixProject do
use Mix.Project
def project do
[
app: :ex_njuskalo,
version: "0.1.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
package: package(),
deps: deps(),
name: "ExNjuskalo",
description:
"ExNjuskalo is unofficial e... | 22.017857 | 115 | 0.557178 |
91feee25bccc60d37822f58dfed8820a3127180b | 93 | exs | Elixir | apps/kv/test/test_helper.exs | rockerBOO/kv_umbrella | 1dbf121b48022c0aaaf1b75d29085d9d2130451d | [
"MIT"
] | null | null | null | apps/kv/test/test_helper.exs | rockerBOO/kv_umbrella | 1dbf121b48022c0aaaf1b75d29085d9d2130451d | [
"MIT"
] | null | null | null | apps/kv/test/test_helper.exs | rockerBOO/kv_umbrella | 1dbf121b48022c0aaaf1b75d29085d9d2130451d | [
"MIT"
] | null | null | null |
exclude = if Node.alive?, do: [], else: [distributed: true]
ExUnit.start(exclude: exclude)
| 18.6 | 59 | 0.688172 |
91ff2a855e5224e0528b875e443c7bfb963697d7 | 13,624 | ex | Elixir | clients/content/lib/google_api/content/v21/api/returnaddress.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/api/returnaddress.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/api/returnaddress.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.977918 | 187 | 0.633588 |
91ff2bed40289131d344890ebb52326ef0f04d36 | 2,617 | ex | Elixir | clients/display_video/lib/google_api/display_video/v1/model/campaign_flight.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/campaign_flight.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/display_video/lib/google_api/display_video/v1/model/campaign_flight.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 40.261538 | 172 | 0.7329 |
91ff2c4dac32edc3c59a1ee677fd4505d573f975 | 1,151 | ex | Elixir | sandbox/animal/lib/pets.ex | techgaun/dumpster | c2a5394afe759fb99041aea677e9b0bc4bf91aec | [
"Unlicense"
] | 1 | 2019-12-10T22:25:31.000Z | 2019-12-10T22:25:31.000Z | sandbox/animal/lib/pets.ex | techgaun/dumpster | c2a5394afe759fb99041aea677e9b0bc4bf91aec | [
"Unlicense"
] | 3 | 2020-10-25T04:40:05.000Z | 2020-10-25T04:48:10.000Z | sandbox/animal/lib/pets.ex | techgaun/dumpster | c2a5394afe759fb99041aea677e9b0bc4bf91aec | [
"Unlicense"
] | null | null | null | defmodule Pet do
@callback pet(String.t) :: :atom
@callback feed(String.t, String.t) :: :any
def checkup(pet, food \\ :fish) do
IO.puts "is #{pet.name} friendly? #{Animal.friendly?(pet)}"
IO.puts "does #{pet.name} eat #{food}? #{Animal.feed(pet, food)}"
end
end
defmodule Cat do
@behaviour Pet
defstruct age:... | 15.346667 | 67 | 0.650738 |
91ff31c32d5c7f71322cc47a07ec732c29d31084 | 499 | ex | Elixir | webrtc_to_hls/lib/webrtc_to_hls_web/views/error_view.ex | membraneframework/videoroom_advanced | d5bfbcec7558bb7ddd4f74742c0d842e5d759b21 | [
"Apache-2.0"
] | 84 | 2020-08-01T14:57:29.000Z | 2022-03-27T13:28:23.000Z | webrtc_to_hls/lib/webrtc_to_hls_web/views/error_view.ex | membraneframework/videoroom_advanced | d5bfbcec7558bb7ddd4f74742c0d842e5d759b21 | [
"Apache-2.0"
] | 75 | 2020-08-24T08:01:53.000Z | 2022-03-17T10:41:22.000Z | webrtc_to_hls/lib/webrtc_to_hls_web/views/error_view.ex | membraneframework/videoroom_advanced | d5bfbcec7558bb7ddd4f74742c0d842e5d759b21 | [
"Apache-2.0"
] | 17 | 2020-09-15T21:04:23.000Z | 2022-03-31T07:43:48.000Z | defmodule WebRTCToHLSWeb.ErrorView do
use WebRTCToHLSWeb, :view
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.html", _assigns) do
# "Internal Server Error"
# end
# By default, Phoenix returns the status message from
# the templ... | 29.352941 | 61 | 0.739479 |
91ff7a8979e6439a77ca451a6f41368a0fa60d6e | 2,373 | exs | Elixir | test/grizzly/zwave/commands/firmware_update_activation_set_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | test/grizzly/zwave/commands/firmware_update_activation_set_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | test/grizzly/zwave/commands/firmware_update_activation_set_test.exs | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.FirmwareUpdateActivationSetTest do
use ExUnit.Case, async: true
alias Grizzly.ZWave.Commands.FirmwareUpdateActivationSet
alias Grizzly.ZWave.Command
test "creates the command and validates params" do
{:ok, command} =
FirmwareUpdateActivationSet.new(
manufactu... | 32.958333 | 86 | 0.683944 |
91ff81ebd01288c79bc18abe15a6de728b1360af | 471 | ex | Elixir | lib/oli/delivery/sections/author_section.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | lib/oli/delivery/sections/author_section.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | lib/oli/delivery/sections/author_section.ex | ChristianMurphy/oli-torus | ffeee4996b66b7c6c6eb3e0082d030b8cc6cea97 | [
"MIT"
] | null | null | null | defmodule Oli.Delivery.Sections.AuthorSection do
use Ecto.Schema
import Ecto.Changeset
@primary_key false
schema "authors_sections" do
timestamps(type: :utc_datetime)
belongs_to :author, Oli.Accounts.Author
belongs_to :section, Oli.Delivery.Sections.Section
end
@doc false
def changeset(user_... | 24.789474 | 54 | 0.723992 |
91ff958beeddfafeb3f57cff80b480e717290233 | 632 | exs | Elixir | code/control/case1.exs | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | null | null | null | code/control/case1.exs | alvarocamillont/introdu-o_elixir | 1d72d4f4b01d9312c4b066ce3c0fe8d9bfaaade1 | [
"MIT"
] | 1 | 2021-03-09T16:27:25.000Z | 2021-03-09T16:27:25.000Z | programming-elixir-book/code/control/case1.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | null | null | null | #---
# Excerpted from "Programming Elixir ≥ 1.6",
# published by The Pragmatic Bookshelf.
# Copyrights apply to this code. It may not be used to create training material,
# courses, books, articles, and the like. Contact us if you are in doubt.
# We make no guarantees that this code is fit for any purpose.
# Visit http... | 35.111111 | 85 | 0.689873 |
91ff9bb1e53538b2146f22e6683a91885f0da3dd | 1,849 | ex | Elixir | farmbot_firmware/lib/farmbot_firmware/transports/uart_transport.ex | kant/farmbot_os | f497cc1fde3960dc5507e4da89e85411a8f776f3 | [
"MIT"
] | 1 | 2021-04-22T10:18:50.000Z | 2021-04-22T10:18:50.000Z | farmbot_firmware/lib/farmbot_firmware/transports/uart_transport.ex | kant/farmbot_os | f497cc1fde3960dc5507e4da89e85411a8f776f3 | [
"MIT"
] | null | null | null | farmbot_firmware/lib/farmbot_firmware/transports/uart_transport.ex | kant/farmbot_os | f497cc1fde3960dc5507e4da89e85411a8f776f3 | [
"MIT"
] | null | null | null | defmodule FarmbotFirmware.UARTTransport do
@moduledoc """
Handles sending/receiving GCODEs over UART.
This is the mechanism that official Farmbot's communicate with
official Farmbot-Arduino-Firmware's over.
"""
alias FarmbotFirmware.{GCODE, UartDefaultAdapter}
use GenServer
require Logger
@error_retr... | 24.986486 | 75 | 0.648459 |
91ffa53ff6320b4efef98e7747344510c62cdd97 | 3,554 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_table_card.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_table_card.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_table_card.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-03-04T13:43:47.000Z | 2021-03-04T13:43:47.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... | 39.488889 | 212 | 0.725661 |
91ffbfa6ec5aed25697f1d1c0b79cf0cf5245cee | 13,609 | ex | Elixir | lib/aws/cognito_identity.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | lib/aws/cognito_identity.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | lib/aws/cognito_identity.ex | ahsandar/aws-elixir | 25de8b6c3a1401bde737cfc26b0679b14b058f23 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.CognitoIdentity do
@moduledoc """
Amazon Cognito Federated Identities
Amazon Cognito Federated Identities is a web service that delivers scoped
temporary credentials to mobile devices and... | 38.552408 | 95 | 0.729297 |
91ffc7c5cc795c3b35a64caf8abf55ed14934c47 | 519 | ex | Elixir | lib/graphql/type/string.ex | seanabrahams/graphql-elixir | 568a07da317e19621cc0c931d738b4eda75f0a35 | [
"BSD-3-Clause"
] | null | null | null | lib/graphql/type/string.ex | seanabrahams/graphql-elixir | 568a07da317e19621cc0c931d738b4eda75f0a35 | [
"BSD-3-Clause"
] | null | null | null | lib/graphql/type/string.ex | seanabrahams/graphql-elixir | 568a07da317e19621cc0c931d738b4eda75f0a35 | [
"BSD-3-Clause"
] | null | null | null | defmodule GraphQL.Type.String do
defstruct name: "String", description:
"""
The `String` scalar type represents textual data, represented as UTF-8
character sequences. The String type is most often used by GraphQL to
represent free-form human-readable text.
"""
def coerce(value), do: to_string(... | 32.4375 | 74 | 0.734104 |
91ffce50a916f73952d79d89b117f8564232eddf | 942 | ex | Elixir | lib/scenic/primitive/transform/translate.ex | PragTob/scenic | 7e5193c2a0b86768937e5bbd7c22f00544d26048 | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/transform/translate.ex | PragTob/scenic | 7e5193c2a0b86768937e5bbd7c22f00544d26048 | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/transform/translate.ex | PragTob/scenic | 7e5193c2a0b86768937e5bbd7c22f00544d26048 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 10/03/17.
# Copyright © 2017 Kry10 Industries. All rights reserved.
#
defmodule Scenic.Primitive.Transform.Translate do
use Scenic.Primitive.Transform
# ============================================================================
# data verification and serialization
# -----... | 28.545455 | 80 | 0.467091 |
91ffda02484dcc8551c1e8154e218da295dcea4d | 3,103 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1beta2__track.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1beta2__track.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1beta2__track.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... | 36.940476 | 222 | 0.730261 |
91fff1f5bdd837218f6e9869bb523ed6b11fcb20 | 2,430 | exs | Elixir | config/prod.exs | sean-clayton/taskr | e56ac59662fb8c246803a36ebe288f55a4a0cbf9 | [
"0BSD"
] | null | null | null | config/prod.exs | sean-clayton/taskr | e56ac59662fb8c246803a36ebe288f55a4a0cbf9 | [
"0BSD"
] | null | null | null | config/prod.exs | sean-clayton/taskr | e56ac59662fb8c246803a36ebe288f55a4a0cbf9 | [
"0BSD"
] | 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,
# ... | 33.75 | 69 | 0.711111 |
62000c3c968f197c2b201cee9ed7354eb6a377b5 | 5,656 | ex | Elixir | src/lib/changelog/data/podcast/podcast.ex | thenets/docker-chocoquest | 856fa5ff41a5831ed67b1ef865cd8951df5af023 | [
"MIT"
] | null | null | null | src/lib/changelog/data/podcast/podcast.ex | thenets/docker-chocoquest | 856fa5ff41a5831ed67b1ef865cd8951df5af023 | [
"MIT"
] | null | null | null | src/lib/changelog/data/podcast/podcast.ex | thenets/docker-chocoquest | 856fa5ff41a5831ed67b1ef865cd8951df5af023 | [
"MIT"
] | null | null | null | defmodule Changelog.Podcast do
use Changelog.Data
alias Changelog.{Episode, EpisodeStat, Files, NewsItem, PodcastTopic,
PodcastHost, Regexp}
defenum Status, draft: 0, soon: 1, published: 2, retired: 3
schema "podcasts" do
field :name, :string
field :slug, :string
field :status,... | 29.305699 | 167 | 0.669731 |
62009283e03a887e12cbb443025c939c09d0626b | 2,090 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/i18n_region.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/i18n_region.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/i18n_region.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.321429 | 204 | 0.710526 |
6200b32918a7aa0f9371b94760f4dc22429c03c1 | 284 | ex | Elixir | lib/payment_api/accounts/transactions/response.ex | LuizFelipeM/PaymentApi | 72c42a563e97d2c994eab24cbee4931e97dee37f | [
"MIT"
] | null | null | null | lib/payment_api/accounts/transactions/response.ex | LuizFelipeM/PaymentApi | 72c42a563e97d2c994eab24cbee4931e97dee37f | [
"MIT"
] | null | null | null | lib/payment_api/accounts/transactions/response.ex | LuizFelipeM/PaymentApi | 72c42a563e97d2c994eab24cbee4931e97dee37f | [
"MIT"
] | null | null | null | defmodule PaymentApi.Accounts.Transactions.Response do
alias PaymentApi.Account
defstruct [:from_account, :to_account]
def build(%Account{} = from_account, %Account{} = to_account), do:
%__MODULE__{
from_account: from_account,
to_account: to_account
}
end
| 23.666667 | 68 | 0.721831 |
6200b60cae8fc8a32d8afc847fe43754ebd31748 | 343 | ex | Elixir | lib/ironman/utils/file/default_impl.ex | TheEndIsNear/ironman | 769e6777e93759810b168e7b6819ef7cb9ab5f80 | [
"MIT"
] | null | null | null | lib/ironman/utils/file/default_impl.ex | TheEndIsNear/ironman | 769e6777e93759810b168e7b6819ef7cb9ab5f80 | [
"MIT"
] | null | null | null | lib/ironman/utils/file/default_impl.ex | TheEndIsNear/ironman | 769e6777e93759810b168e7b6819ef7cb9ab5f80 | [
"MIT"
] | null | null | null | defmodule Ironman.Utils.File.DefaultImpl do
@moduledoc false
@behaviour Ironman.Utils.File.Impl
def exists?(path), do: File.exists?(path)
def read!(path), do: File.read!(path)
def write!(path, contents), do: File.write!(path, contents)
def mkdir!(path), do: File.mkdir!(path)
def touch!(filename), do: Fil... | 31.181818 | 61 | 0.708455 |
6200d52002cd96eb5234934ef044ab2ef655ebc1 | 8,612 | ex | Elixir | lib/mix/lib/mix/compilers/erlang.ex | jfornoff/elixir | 4ed5e8e66973ae7b0e52ead00f65117ab0d600e0 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/compilers/erlang.ex | jfornoff/elixir | 4ed5e8e66973ae7b0e52ead00f65117ab0d600e0 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/compilers/erlang.ex | jfornoff/elixir | 4ed5e8e66973ae7b0e52ead00f65117ab0d600e0 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Compilers.Erlang do
@moduledoc false
@manifest_vsn 1
@doc """
Compiles the files in `mappings` with given extensions into
the destination, automatically invoking the callback for each
stale input and output pair (or for all if `force` is `true`) and
removing files that no longer have a sou... | 30.431095 | 95 | 0.636902 |
6200e9077d6f1636c8ca58c01112c711c1233432 | 1,182 | ex | Elixir | apps/bbq_ui/lib/bbq_ui/endpoint.ex | easco/ex_bbq | d736204bb124ea256907629f5025c3abaf08c0bb | [
"BSD-3-Clause"
] | 2 | 2016-09-22T13:32:35.000Z | 2017-02-17T20:26:50.000Z | apps/bbq_ui/lib/bbq_ui/endpoint.ex | easco/ex_bbq | d736204bb124ea256907629f5025c3abaf08c0bb | [
"BSD-3-Clause"
] | null | null | null | apps/bbq_ui/lib/bbq_ui/endpoint.ex | easco/ex_bbq | d736204bb124ea256907629f5025c3abaf08c0bb | [
"BSD-3-Clause"
] | null | null | null | defmodule BbqUi.Endpoint do
use Phoenix.Endpoint, otp_app: :bbq_ui
socket "/socket", BbqUi.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static,
at... | 27.488372 | 69 | 0.712352 |
62010994562b33c2cf8fa5c4a5ff46593dc042f3 | 1,486 | ex | Elixir | lib/oli/rendering/activity.ex | DevShashi1993/oli-torus | e6e0b66f0973f9790a5785731b22db6fb1c50a73 | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | lib/oli/rendering/activity.ex | DevShashi1993/oli-torus | e6e0b66f0973f9790a5785731b22db6fb1c50a73 | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | lib/oli/rendering/activity.ex | DevShashi1993/oli-torus | e6e0b66f0973f9790a5785731b22db6fb1c50a73 | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule Oli.Rendering.Activity do
@moduledoc """
This modules defines the rendering functionality for an Oli activity. Rendering is
extensibile to any format which implements the behavior defined in this module, then specifying
that format at render time. For an example of how exactly to extend this, see `act... | 35.380952 | 99 | 0.70323 |
62010e4e45cf2021d95d0d74de15b30f66a3d7cd | 172 | exs | Elixir | config/test.exs | byjord/MapRewire | ff5087288e2300f87862297c3af5eb9edf2c392e | [
"MIT"
] | 7 | 2018-08-21T23:11:22.000Z | 2018-09-03T15:49:01.000Z | config/test.exs | byjpr/MapRewire | ff5087288e2300f87862297c3af5eb9edf2c392e | [
"MIT"
] | 27 | 2020-07-25T10:53:23.000Z | 2022-02-24T14:16:26.000Z | config/test.exs | byjpr/MapRewire | ff5087288e2300f87862297c3af5eb9edf2c392e | [
"MIT"
] | 1 | 2021-10-21T15:56:06.000Z | 2021-10-21T15:56:06.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
config :map_rewire, debug?: false
| 28.666667 | 61 | 0.790698 |
620114b0ae4ae48ad86f1765dc2c956648c3786b | 736 | ex | Elixir | Microsoft.Azure.Management.Preview.Advisor/lib/microsoft/azure/management/preview/advisor/model/operation_display_info.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Preview.Advisor/lib/microsoft/azure/management/preview/advisor/model/operation_display_info.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Preview.Advisor/lib/microsoft/azure/management/preview/advisor/model/operation_display_info.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Preview.Advisor.Model.OperationDisplayInfo do
@moduledoc """
The operation supported by Advisor.
"""
@derive [... | 23 | 101 | 0.690217 |
620167f4a066867daf19a54d9d0966fba5d8c826 | 2,723 | ex | Elixir | lib/statistics/distributions/f.ex | alanvardy/elixir-statistics | 21a923bbf84a3e71a133868abe5d3610864b130e | [
"Apache-2.0"
] | 118 | 2015-03-31T18:57:57.000Z | 2022-02-25T18:14:06.000Z | lib/statistics/distributions/f.ex | alanvardy/elixir-statistics | 21a923bbf84a3e71a133868abe5d3610864b130e | [
"Apache-2.0"
] | 13 | 2015-08-10T14:28:27.000Z | 2021-11-23T06:44:40.000Z | lib/statistics/distributions/f.ex | alanvardy/elixir-statistics | 21a923bbf84a3e71a133868abe5d3610864b130e | [
"Apache-2.0"
] | 32 | 2015-06-01T01:50:20.000Z | 2021-11-19T16:00:44.000Z | defmodule Statistics.Distributions.F do
alias Statistics.Math
alias Statistics.Math.Functions
alias Statistics.Distributions.Beta
@moduledoc """
The F distribution
Note that `ppf/2` and `rand/2` here are very slow.
"""
@doc """
The probability density function
## Examples
iex> Statistics.... | 22.691667 | 98 | 0.620639 |
6201708b9c159592a5c6586c4f10d5e4eb318f9f | 1,353 | ex | Elixir | lib/vispana_web/router.ex | williamflynt/vispana | 0754514f769e675543d9ffd5b6acf6965e640632 | [
"MIT"
] | 30 | 2022-02-16T13:02:14.000Z | 2022-03-24T12:47:35.000Z | lib/vispana_web/router.ex | williamflynt/vispana | 0754514f769e675543d9ffd5b6acf6965e640632 | [
"MIT"
] | 5 | 2022-02-16T02:21:01.000Z | 2022-03-13T09:29:56.000Z | lib/vispana_web/router.ex | williamflynt/vispana | 0754514f769e675543d9ffd5b6acf6965e640632 | [
"MIT"
] | null | null | null | defmodule VispanaWeb.Router do
use VispanaWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {VispanaWeb.LayoutView, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug... | 28.1875 | 70 | 0.704361 |
620181d4ad39a450bab2a9a6b86382fa85205f17 | 2,137 | ex | Elixir | lib/codes/codes_r63.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_r63.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | lib/codes/codes_r63.ex | badubizzle/icd_code | 4c625733f92b7b1d616e272abc3009bb8b916c0c | [
"Apache-2.0"
] | null | null | null | defmodule IcdCode.ICDCode.Codes_R63 do
alias IcdCode.ICDCode
def _R630 do
%ICDCode{full_code: "R630",
category_code: "R63",
short_code: "0",
full_name: "Anorexia",
short_name: "Anorexia",
category_name: "Anorexia"
}
end
def _R631 do
%ICDCode{full_c... | 27.050633 | 84 | 0.571362 |
620185559257af2060f02322b79e2d5b4e590914 | 202 | ex | Elixir | lib/phone/tm.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/tm.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | lib/phone/tm.ex | net/phone | 18e1356d2f8d32fe3f95638c3c44bceab0164fb2 | [
"Apache-2.0"
] | null | null | null | defmodule Phone.TM do
@moduledoc false
use Helper.Country
def regex, do: ~r/^(993)()(.+)/
def country, do: "Turkmenistan"
def a2, do: "TM"
def a3, do: "TKM"
matcher :regex, ["993"]
end
| 15.538462 | 33 | 0.608911 |
62019937d2a45ba3020c49a89671e462fe7ef8a0 | 1,993 | ex | Elixir | lib/mix/tasks/phx.gen.channel.ex | arkgil/phoenix | b5d82814154b5fb87c0870e25c1c2243c9384d9e | [
"MIT"
] | null | null | null | lib/mix/tasks/phx.gen.channel.ex | arkgil/phoenix | b5d82814154b5fb87c0870e25c1c2243c9384d9e | [
"MIT"
] | null | null | null | lib/mix/tasks/phx.gen.channel.ex | arkgil/phoenix | b5d82814154b5fb87c0870e25c1c2243c9384d9e | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Phx.Gen.Channel do
@shortdoc "Generates a Phoenix channel"
@moduledoc """
Generates a Phoenix channel.
mix phx.gen.channel Room
Accepts the module name for the channel
The generated files will contain:
For a regular application:
* a channel in lib/my_app_web/channels
... | 26.573333 | 115 | 0.680883 |
6201ae34fc8565a23a9b784a0b16107b9dd8573f | 6,841 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/attached_disk.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/compute/lib/google_api/compute/v1/model/attached_disk.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/attached_disk.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 ... | 69.10101 | 490 | 0.730156 |
6201ce27536f7677ad66bc442270b812728b799e | 865 | ex | Elixir | lib/hal/io.ex | axelson/inky | f9112e239040010b5336f144d407bd1492cae387 | [
"Apache-2.0"
] | 51 | 2019-06-23T21:03:59.000Z | 2022-03-17T04:57:57.000Z | lib/hal/io.ex | axelson/inky | f9112e239040010b5336f144d407bd1492cae387 | [
"Apache-2.0"
] | 24 | 2019-06-17T05:56:34.000Z | 2021-12-05T15:06:37.000Z | lib/hal/io.ex | axelson/inky | f9112e239040010b5336f144d407bd1492cae387 | [
"Apache-2.0"
] | 9 | 2019-07-26T13:06:13.000Z | 2021-11-27T13:12:24.000Z | defmodule Inky.InkyIO do
@moduledoc """
A behaviour for defining how IO is performed on a specific platform.
"""
@type init_opt :: {:pin_mappings, map()}
@type io_state :: any()
@type io_bit :: 0 | 1
@type io_command :: non_neg_integer()
@type io_data :: integer() | binary() | [integer() | binary()]
... | 37.608696 | 94 | 0.620809 |
6201ec47097d76514597368917be504e07e439a7 | 2,286 | ex | Elixir | lib/bookpile_web/telemetry.ex | bitboxer/bookpile | eabdb0c9dd5859621512b0af7b516ab11ac34825 | [
"MIT"
] | 4 | 2021-08-23T19:27:00.000Z | 2021-12-24T14:22:10.000Z | lib/bookpile_web/telemetry.ex | bitboxer/bookpile | eabdb0c9dd5859621512b0af7b516ab11ac34825 | [
"MIT"
] | 16 | 2021-08-23T16:48:07.000Z | 2022-02-28T17:25:37.000Z | lib/bookpile_web/telemetry.ex | bitboxer/bookpile | eabdb0c9dd5859621512b0af7b516ab11ac34825 | [
"MIT"
] | 2 | 2021-08-23T16:18:42.000Z | 2021-08-23T16:35:41.000Z | defmodule BookpileWeb.Telemetry do
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# every 10_000ms. Learn... | 31.75 | 88 | 0.654418 |
62021275893d9bce5ffb028ea466fab647adc922 | 1,795 | ex | Elixir | clients/content/lib/google_api/content/v2/model/carriers_carrier.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/content/lib/google_api/content/v2/model/carriers_carrier.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/carriers_carrier.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 33.867925 | 158 | 0.698607 |
620225308d78fa2fc2a099294c0c01c76c1fc9fc | 602 | ex | Elixir | apps/ping_monitor/lib/ping_monitor/application.ex | insprac/ping | 26943f171b2df6f009a0c3241449a988d4636c96 | [
"MIT"
] | null | null | null | apps/ping_monitor/lib/ping_monitor/application.ex | insprac/ping | 26943f171b2df6f009a0c3241449a988d4636c96 | [
"MIT"
] | null | null | null | apps/ping_monitor/lib/ping_monitor/application.ex | insprac/ping | 26943f171b2df6f009a0c3241449a988d4636c96 | [
"MIT"
] | null | null | null | defmodule Ping.Monitor.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 = [
# Starts a worker by calling: Ping.Monitor.Work... | 28.666667 | 71 | 0.712625 |
62025a4bae57a07d4c82048fb3dce37daa5c2557 | 84 | exs | Elixir | test/test_helper.exs | britto/table_rex | 78d1fe182ed5f5938fb90d704eeae1c9352e86d4 | [
"MIT"
] | 187 | 2015-12-30T13:33:22.000Z | 2022-03-15T07:56:32.000Z | test/test_helper.exs | geolessel/table_rex | af8f5b421215e53921d212185b60be7b03b524b1 | [
"MIT"
] | 42 | 2015-12-18T17:23:30.000Z | 2022-02-03T14:47:43.000Z | test/test_helper.exs | geolessel/table_rex | af8f5b421215e53921d212185b60be7b03b524b1 | [
"MIT"
] | 23 | 2016-01-04T14:44:10.000Z | 2022-03-31T22:37:54.000Z | # Deliberately short timeout to surface slow tests.
ExUnit.start(timeout: 2 * 1000)
| 28 | 51 | 0.77381 |
62028ad0a6e26ff66079d9d4d902eccec769a75d | 24 | ex | Elixir | language-practice/Elixir/elixir-pdx/potato/lib/potato.ex | cjschneider2/practice_code | 5d9b793eccca39262fb452fa1f3f53e6b54bc7aa | [
"Unlicense"
] | null | null | null | language-practice/Elixir/elixir-pdx/potato/lib/potato.ex | cjschneider2/practice_code | 5d9b793eccca39262fb452fa1f3f53e6b54bc7aa | [
"Unlicense"
] | null | null | null | language-practice/Elixir/elixir-pdx/potato/lib/potato.ex | cjschneider2/practice_code | 5d9b793eccca39262fb452fa1f3f53e6b54bc7aa | [
"Unlicense"
] | null | null | null | defmodule Potato do
end
| 8 | 19 | 0.833333 |
6202dbb2eb972be9120cc9ad27f75416ca722567 | 1,906 | ex | Elixir | lib/figgis_web/views/metric_view.ex | jherdman/figgis | 4eae5d0fc48d550c3585c088ff5ac74d97efa7d4 | [
"MIT"
] | null | null | null | lib/figgis_web/views/metric_view.ex | jherdman/figgis | 4eae5d0fc48d550c3585c088ff5ac74d97efa7d4 | [
"MIT"
] | null | null | null | lib/figgis_web/views/metric_view.ex | jherdman/figgis | 4eae5d0fc48d550c3585c088ff5ac74d97efa7d4 | [
"MIT"
] | null | null | null | defmodule FiggisWeb.MetricView do
use FiggisWeb, :view
@doc """
Returns a list of tuples to be used with Phoenix.HTML.Form.select/4
## Examples
iex> FiggisWeb.MetricView.axis_type_options()
[{"Date", "date"}, {"Number", "number"}]
"""
def axis_type_options do
AxisTypes.__enum_map__()
... | 24.753247 | 89 | 0.617524 |
6202f2e5a0c959c3e85d6d9d0cebb33afba79a83 | 967 | ex | Elixir | lib/exorch/ec2.ex | leg100/exorch | b324875b676faeffcf4855af14ba5b3cce0d2438 | [
"Apache-2.0"
] | null | null | null | lib/exorch/ec2.ex | leg100/exorch | b324875b676faeffcf4855af14ba5b3cce0d2438 | [
"Apache-2.0"
] | null | null | null | lib/exorch/ec2.ex | leg100/exorch | b324875b676faeffcf4855af14ba5b3cce0d2438 | [
"Apache-2.0"
] | null | null | null | defmodule Exorch.EC2 do
@behaviour Exorch.Cloud
alias Exorch.Instance
def configure(region: region) do
{:ok, conf} = :erlcloud_aws.profile()
:erlcloud_aws.service_config(:ec2, region, conf)
end
def get_instances(conf, filters) do
case :erlcloud_ec2.describe_instances([], convert_filters(filters... | 27.628571 | 80 | 0.698035 |
6202f65b08b9db518754c2005238cdc484d366f3 | 2,106 | ex | Elixir | lib/credo/check/refactor/function_arity.ex | jlgeering/credo | b952190ed758c262aa0d9bbee01227f9b1f0c63b | [
"MIT"
] | null | null | null | lib/credo/check/refactor/function_arity.ex | jlgeering/credo | b952190ed758c262aa0d9bbee01227f9b1f0c63b | [
"MIT"
] | null | null | null | lib/credo/check/refactor/function_arity.ex | jlgeering/credo | b952190ed758c262aa0d9bbee01227f9b1f0c63b | [
"MIT"
] | null | null | null | defmodule Credo.Check.Refactor.FunctionArity do
@moduledoc """
A function can take as many parameters as needed, but even in a functional
language there can be too many parameters.
Can optionally ignore private functions (check configuration options).
"""
@explanation [
check: @moduledoc,
params: ... | 27 | 94 | 0.640551 |
6202fdf48895770b7faa31c1b9cf9767efdd057a | 1,799 | ex | Elixir | backend/lib/kjer_si_web/controllers/subscription_controller.ex | danesjenovdan/kjer.si | 185410ede2d42892e4d91c000099283254c5dc7a | [
"Unlicense"
] | 2 | 2019-11-02T21:28:34.000Z | 2019-11-28T18:01:08.000Z | backend/lib/kjer_si_web/controllers/subscription_controller.ex | danesjenovdan/kjer.si | 185410ede2d42892e4d91c000099283254c5dc7a | [
"Unlicense"
] | 17 | 2019-11-29T16:23:38.000Z | 2022-02-14T05:11:41.000Z | backend/lib/kjer_si_web/controllers/subscription_controller.ex | danesjenovdan/kjer.si | 185410ede2d42892e4d91c000099283254c5dc7a | [
"Unlicense"
] | null | null | null | defmodule KjerSiWeb.SubscriptionController do
use KjerSiWeb, :controller
use Params
alias KjerSi.Accounts
alias KjerSi.Accounts.Subscription
alias KjerSi.Rooms
action_fallback KjerSiWeb.FallbackController
def index(conn, _params) do
user = conn.assigns[:current_user]
subscriptions = Accounts.li... | 29.016129 | 96 | 0.667593 |
620321aaec886933e5804223a313f3be78a8d59f | 635 | exs | Elixir | mix.exs | zacky1972/nx_micro_bench | e31ae6c9b8a8c75aa831c08b167f4be95581d66f | [
"Apache-2.0"
] | 2 | 2021-12-19T18:26:50.000Z | 2021-12-19T22:46:53.000Z | mix.exs | zacky1972/nx_micro_bench | e31ae6c9b8a8c75aa831c08b167f4be95581d66f | [
"Apache-2.0"
] | null | null | null | mix.exs | zacky1972/nx_micro_bench | e31ae6c9b8a8c75aa831c08b167f4be95581d66f | [
"Apache-2.0"
] | null | null | null | defmodule NxMicroBench.MixProject do
use Mix.Project
def project do
[
app: :nx_micro_bench,
version: "0.1.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
... | 21.166667 | 82 | 0.562205 |
62032d65ca7b351b12cdb27233615858a5da211b | 1,202 | exs | Elixir | config/config.exs | amravazzi/nlw-inmana | ce46d245a87aff994c942ce365c19bfdbec54f15 | [
"MIT"
] | null | null | null | config/config.exs | amravazzi/nlw-inmana | ce46d245a87aff994c942ce365c19bfdbec54f15 | [
"MIT"
] | null | null | null | config/config.exs | amravazzi/nlw-inmana | ce46d245a87aff994c942ce365c19bfdbec54f15 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :inmana,
ecto_repos: [Inmana.Repo]
con... | 31.631579 | 86 | 0.769551 |
62036d8241fa23e50b541f4515288f68ddd03b4d | 3,379 | ex | Elixir | lib/kafka_gen_stage/consumer_logic.ex | altworx/kafka_gen_stage | 8b2c6c6fb6c823db541fed2e8886402b2fe82fe5 | [
"Apache-2.0"
] | 6 | 2018-11-20T09:46:53.000Z | 2021-04-19T14:18:52.000Z | lib/kafka_gen_stage/consumer_logic.ex | altworx/kafka_gen_stage | 8b2c6c6fb6c823db541fed2e8886402b2fe82fe5 | [
"Apache-2.0"
] | 2 | 2019-09-02T08:57:37.000Z | 2019-10-24T07:29:12.000Z | lib/kafka_gen_stage/consumer_logic.ex | altworx/kafka_gen_stage | 8b2c6c6fb6c823db541fed2e8886402b2fe82fe5 | [
"Apache-2.0"
] | 4 | 2019-06-28T08:38:04.000Z | 2019-10-22T13:08:24.000Z | defmodule KafkaGenStage.ConsumerLogic do
@moduledoc """
Separates pure logic of consumer genstage to be unit tested.
"""
@typedoc "Format of read messages."
@type msg_tuple ::
{offset :: non_neg_integer(), timestamp :: non_neg_integer(), key :: binary(),
value :: binary()}
@typedoc "A... | 32.490385 | 100 | 0.636579 |
62037c10c3c0eabbc1df37dabe5a24cb9a1e3f23 | 1,287 | ex | Elixir | clients/memcache/lib/google_api/memcache/v1/model/cancel_operation_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/memcache/lib/google_api/memcache/v1/model/cancel_operation_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/memcache/lib/google_api/memcache/v1/model/cancel_operation_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 30.642857 | 82 | 0.7669 |
6203921b393e88a92aae83b62a18f55d8a8d0967 | 3,789 | ex | Elixir | lib/koans/13_functions.ex | aaronmgdr/elixir-koans | d0b1b82d393227ebd830e358da26ab0e200c8cfd | [
"MIT"
] | null | null | null | lib/koans/13_functions.ex | aaronmgdr/elixir-koans | d0b1b82d393227ebd830e358da26ab0e200c8cfd | [
"MIT"
] | null | null | null | lib/koans/13_functions.ex | aaronmgdr/elixir-koans | d0b1b82d393227ebd830e358da26ab0e200c8cfd | [
"MIT"
] | null | null | null | defmodule Functions do
use Koans
@intro "Functions"
def greet(name) do
"Hello, #{name}!"
end
koan "Functions map arguments to outputs" do
assert greet("World") == "Hello, World!"
end
def multiply(a, b), do: a * b
koan "Single line functions are cool, but mind the comma and the colon!" do
... | 30.071429 | 104 | 0.643705 |
62039b3e0130be45cd05d2b0397f9ada95d06b18 | 2,085 | ex | Elixir | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/test_ruleset_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/test_ruleset_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/test_ruleset_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... | 41.7 | 255 | 0.748201 |
62039f49f37b62e19193f12a1b8a09685eff5e23 | 1,982 | ex | Elixir | lib/xdr/uint.ex | kommitters/xdr | 41f8bcbb62c70a37a8ae7e861a473053f712fb67 | [
"MIT"
] | 7 | 2020-06-30T22:52:23.000Z | 2022-02-18T22:13:43.000Z | lib/xdr/uint.ex | kommitters/xdr | 41f8bcbb62c70a37a8ae7e861a473053f712fb67 | [
"MIT"
] | 22 | 2020-05-22T15:24:52.000Z | 2021-09-01T16:56:53.000Z | lib/xdr/uint.ex | kommitters/xdr | 41f8bcbb62c70a37a8ae7e861a473053f712fb67 | [
"MIT"
] | 1 | 2021-08-17T12:34:15.000Z | 2021-08-17T12:34:15.000Z | defmodule XDR.UInt do
@moduledoc """
This module manages the `Unsigned Integer` type based on the RFC4506 XDR Standard.
"""
@behaviour XDR.Declaration
alias XDR.UIntError
defstruct [:datum]
@type datum :: integer() | binary()
@typedoc """
`XDR.UInt` structure type specification.
"""
@type t :... | 27.150685 | 96 | 0.651362 |
6203d2576dc80da599e7474e556b795f0fb90d86 | 1,181 | exs | Elixir | test/mix/tasks/phoenix.digest_test.exs | scrogson/phoenix | e5745b9360fa1163246eb507490f1ce760cc0219 | [
"MIT"
] | null | null | null | test/mix/tasks/phoenix.digest_test.exs | scrogson/phoenix | e5745b9360fa1163246eb507490f1ce760cc0219 | [
"MIT"
] | null | null | null | test/mix/tasks/phoenix.digest_test.exs | scrogson/phoenix | e5745b9360fa1163246eb507490f1ce760cc0219 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Phoenix.DigestTest do
use ExUnit.Case, async: true
test "fails when the given paths are invalid" do
assert_raise Mix.Error, "The input path 'invalid_path' does not exist.", fn ->
Mix.Tasks.Phoenix.Digest.run(["invalid_path"])
end
end
test "digests and compress files" do
o... | 35.787879 | 108 | 0.711262 |
6203efa4b6a7f39d0e486a5ff8ada25ac35afbfd | 310 | exs | Elixir | config/prod.exs | jinjagit/api | c1a176d8c318e05810bc1635706c56395819191e | [
"MIT"
] | null | null | null | config/prod.exs | jinjagit/api | c1a176d8c318e05810bc1635706c56395819191e | [
"MIT"
] | 10 | 2020-09-28T06:37:48.000Z | 2021-12-22T15:04:38.000Z | config/prod.exs | jinjagit/api | c1a176d8c318e05810bc1635706c56395819191e | [
"MIT"
] | null | null | null | use Mix.Config
config :liquid_voting, LiquidVotingWeb.Endpoint,
url: [
host: System.get_env("APP_HOSTNAME") || "localhost",
port: String.to_integer(System.get_env("APP_PORT") || "4000")
],
server: true
config :logger, level: :info
config :liquid_voting, LiquidVotingWeb.Endpoint, server: true
| 23.846154 | 65 | 0.719355 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.