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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33ea4e5a666560caf8ce9d91c91129a484c1da77 | 882 | ex | Elixir | stack/lib/stack.ex | xymbol/otp-examples | daa9bc1392d4324d2aa9f37657b205f9b1dfa447 | [
"MIT"
] | 6 | 2017-04-17T22:19:53.000Z | 2019-05-14T09:49:22.000Z | stack/lib/stack.ex | xymbol/otp-examples | daa9bc1392d4324d2aa9f37657b205f9b1dfa447 | [
"MIT"
] | null | null | null | stack/lib/stack.ex | xymbol/otp-examples | daa9bc1392d4324d2aa9f37657b205f9b1dfa447 | [
"MIT"
] | null | null | null | defmodule Stack do
@default_state []
def start_link(state \\ @default_state) do
{:ok, spawn_link(__MODULE__, :loop, [state])}
end
def push(server, value) do
cast(server, {:push, value})
end
def pop(server) do
call(server, :pop)
end
def loop(state) do
new_state = receive do
{ter... | 18.765957 | 56 | 0.57483 |
33eaacc8229bee9363936cc339c6373141df741f | 8,711 | ex | Elixir | apps/aecore/lib/aecore/channel/tx/channel_close_mutual_tx.ex | aeternity/epoch-elixir | d35613f5541a9bbebe61f90b8503a9b3416fe8b4 | [
"0BSD"
] | 131 | 2018-03-10T01:35:56.000Z | 2021-12-27T13:44:41.000Z | apps/aecore/lib/aecore/channel/tx/channel_close_mutual_tx.ex | aeternity/elixir-node | d35613f5541a9bbebe61f90b8503a9b3416fe8b4 | [
"0BSD"
] | 445 | 2018-03-12T09:46:17.000Z | 2018-12-12T09:52:07.000Z | apps/aecore/lib/aecore/channel/tx/channel_close_mutual_tx.ex | aeternity/epoch-elixir | d35613f5541a9bbebe61f90b8503a9b3416fe8b4 | [
"0BSD"
] | 23 | 2018-03-12T12:01:28.000Z | 2022-03-06T09:22:17.000Z | defmodule Aecore.Channel.Tx.ChannelCloseMutualTx do
@moduledoc """
Module defining the ChannelCloseMutual transaction
"""
use Aecore.Tx.Transaction
alias Aecore.Account.{Account, AccountStateTree}
alias Aecore.Chain.{Chainstate, Identifier}
alias Aecore.Channel.{ChannelStateTree, ChannelStateOnChain}
... | 30.780919 | 160 | 0.652623 |
33eab4e55835a0f55fab0dc20183374b1bdc5953 | 296 | exs | Elixir | priv/repo/migrations/20191027221057_create_balances.exs | GunnarPDX/workbench | 11bcd762fd1b3bbfa5fefa1aac55c89cd7b2a7c7 | [
"MIT"
] | null | null | null | priv/repo/migrations/20191027221057_create_balances.exs | GunnarPDX/workbench | 11bcd762fd1b3bbfa5fefa1aac55c89cd7b2a7c7 | [
"MIT"
] | null | null | null | priv/repo/migrations/20191027221057_create_balances.exs | GunnarPDX/workbench | 11bcd762fd1b3bbfa5fefa1aac55c89cd7b2a7c7 | [
"MIT"
] | null | null | null | defmodule Monitor.Repo.Migrations.CreateBalances do
use Ecto.Migration
def change do
create table(:balances) do
add(:timestamp, :utc_datetime, null: false)
add(:usd, :decimal, null: false)
add(:btcusd_price, :decimal, null: false)
timestamps()
end
end
end
| 21.142857 | 51 | 0.672297 |
33eabbe5fd2178a62964c70a51be04a9a662b7b3 | 5,065 | ex | Elixir | lib/stripe/connect/oauth.ex | Mersecha/stripity_stripe | 4b15c8952bef6b6f03619898d6627a3c272ef20e | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/connect/oauth.ex | Mersecha/stripity_stripe | 4b15c8952bef6b6f03619898d6627a3c272ef20e | [
"BSD-3-Clause"
] | null | null | null | lib/stripe/connect/oauth.ex | Mersecha/stripity_stripe | 4b15c8952bef6b6f03619898d6627a3c272ef20e | [
"BSD-3-Clause"
] | null | null | null | defmodule Stripe.Connect.OAuth do
@moduledoc """
Work with Stripe Connect.
You can:
- generate the URL for starting the OAuth workflow
- authorize a new connected account with a token
- deauthorize an existing connected account
Stripe API reference: https://stripe.com/docs/connect/reference
"""
al... | 24.350962 | 148 | 0.642646 |
33eaef4c53fae8d901ecfb7bf460b1a787075594 | 957 | ex | Elixir | clients/plus/lib/google_api/plus/v1/request_builder.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/plus/lib/google_api/plus/v1/request_builder.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/plus/lib/google_api/plus/v1/request_builder.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 36.807692 | 77 | 0.7628 |
33eaf9f6992590bb641db001391b521a041673b0 | 1,667 | ex | Elixir | apps/core/test/support/conn_case.ex | votiakov/petal | ec03551da6dadc0c3482b25a5f5dcd400c36db43 | [
"MIT"
] | null | null | null | apps/core/test/support/conn_case.ex | votiakov/petal | ec03551da6dadc0c3482b25a5f5dcd400c36db43 | [
"MIT"
] | null | null | null | apps/core/test/support/conn_case.ex | votiakov/petal | ec03551da6dadc0c3482b25a5f5dcd400c36db43 | [
"MIT"
] | null | null | null | defmodule Legendary.CoreWeb.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... | 27.783333 | 76 | 0.677864 |
33eb0073e671fb41f323eab1b8e9e3aa54fe1fc8 | 107 | exs | Elixir | rummage_tester/test/test_helper.exs | acolin/rummage_ecto | 69b83579437c9d88de6b1951b6ee831424cfaec3 | [
"MIT"
] | 99 | 2018-08-19T10:31:42.000Z | 2021-10-31T03:36:53.000Z | rummage_tester/test/test_helper.exs | acolin/rummage_ecto | 69b83579437c9d88de6b1951b6ee831424cfaec3 | [
"MIT"
] | 43 | 2017-03-14T02:00:41.000Z | 2018-07-05T16:28:39.000Z | rummage_tester/test/test_helper.exs | acolin/rummage_ecto | 69b83579437c9d88de6b1951b6ee831424cfaec3 | [
"MIT"
] | 26 | 2018-08-23T06:13:42.000Z | 2021-10-19T06:57:18.000Z | ExUnit.start()
RummageTester.Repo.start_link()
Ecto.Adapters.SQL.Sandbox.mode(RummageTester.Repo, :manual)
| 26.75 | 59 | 0.813084 |
33eb4ba619ecbbeec39cff2cae265237ff4260e6 | 78 | exs | Elixir | backend/postgres_auth/test/postgres_auth_test.exs | jacruzca/elixir_auth | b2bb9da04270211a7d6aa7c9c160ab3ec2a12662 | [
"MIT"
] | null | null | null | backend/postgres_auth/test/postgres_auth_test.exs | jacruzca/elixir_auth | b2bb9da04270211a7d6aa7c9c160ab3ec2a12662 | [
"MIT"
] | null | null | null | backend/postgres_auth/test/postgres_auth_test.exs | jacruzca/elixir_auth | b2bb9da04270211a7d6aa7c9c160ab3ec2a12662 | [
"MIT"
] | null | null | null | defmodule PostgresAuthTest do
use ExUnit.Case
# doctest PostgresAuth
end
| 13 | 29 | 0.794872 |
33eb5e2f96093c272accb0d486445101af0f70d3 | 955 | exs | Elixir | config/config.exs | cruessler/exrss | 6ac17b7533d78460a1c34cabaae86fec317f460a | [
"MIT"
] | 4 | 2020-02-16T07:18:35.000Z | 2021-12-09T14:43:10.000Z | config/config.exs | cruessler/exrss | 6ac17b7533d78460a1c34cabaae86fec317f460a | [
"MIT"
] | 27 | 2019-10-16T18:35:19.000Z | 2022-03-13T16:39:57.000Z | config/config.exs | cruessler/exrss | 6ac17b7533d78460a1c34cabaae86fec317f460a | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# General application configuration
config :ex_rss,
ecto_repos: [ExRss.Repo]
# Con... | 31.833333 | 68 | 0.758115 |
33eb72c0d15f3b7d5edb9255b64f901704e9699b | 1,758 | ex | Elixir | web/web.ex | nihonjinrxs/VolunteerBase | e555ec9ae1d0b4401ae33c0a9fdc411b855f04a4 | [
"MIT"
] | null | null | null | web/web.ex | nihonjinrxs/VolunteerBase | e555ec9ae1d0b4401ae33c0a9fdc411b855f04a4 | [
"MIT"
] | 1 | 2016-06-24T03:43:06.000Z | 2016-06-24T03:43:06.000Z | web/web.ex | nihonjinrxs/VolunteerBase | e555ec9ae1d0b4401ae33c0a9fdc411b855f04a4 | [
"MIT"
] | null | null | null | defmodule Volunteerbase.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use Volunteerbase.Web, :controller
use Volunteerbase.Web, :view
The definitions below will be executed for every view,
controller, etc... | 21.439024 | 88 | 0.672924 |
33eb96059cd382dc4e41e408aa2112a32a113182 | 459 | exs | Elixir | integration_test/sojourn/test_helper.exs | ericentin/db_connection | 5a11383dd250e77b8475fddba92e26e2bf9efad8 | [
"Apache-2.0"
] | null | null | null | integration_test/sojourn/test_helper.exs | ericentin/db_connection | 5a11383dd250e77b8475fddba92e26e2bf9efad8 | [
"Apache-2.0"
] | null | null | null | integration_test/sojourn/test_helper.exs | ericentin/db_connection | 5a11383dd250e77b8475fddba92e26e2bf9efad8 | [
"Apache-2.0"
] | null | null | null | Code.require_file "../../test/test_support.exs", __DIR__
defmodule TestPool do
use TestConnection, [pool: DBConnection.Sojourn, pool_size: 1,
protector: false]
end
case :erlang.system_info(:otp_release) do
'17' ->
ExUnit.start([exclude: [:test]])
_ ->
ExUnit.start([capture_log: :true, assert_receive... | 27 | 73 | 0.686275 |
33ebd960c7175f66730fe63023a6e0f67b605558 | 5,045 | ex | Elixir | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_directory.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_directory.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_directory.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 60.783133 | 1,973 | 0.742121 |
33ebe628c5e1ebee818afb5030ee01f134b63fb2 | 2,107 | exs | Elixir | test/phoenix/live_dashboard/live/menu_live_test.exs | rupurt/phoenix_live_dashboard | f4d0c33c17619e2b37eb42c5e789d058922d5079 | [
"MIT"
] | null | null | null | test/phoenix/live_dashboard/live/menu_live_test.exs | rupurt/phoenix_live_dashboard | f4d0c33c17619e2b37eb42c5e789d058922d5079 | [
"MIT"
] | null | null | null | test/phoenix/live_dashboard/live/menu_live_test.exs | rupurt/phoenix_live_dashboard | f4d0c33c17619e2b37eb42c5e789d058922d5079 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveDashboard.MenuLiveTest do
use ExUnit.Case, async: true
import Phoenix.ConnTest
import Phoenix.LiveViewTest
alias Phoenix.LiveDashboard.MenuLive
@endpoint Phoenix.LiveDashboardTest.Endpoint
defp menu_live(menu) do
menu =
Enum.into(menu, %{
refresher?: false,
... | 30.1 | 99 | 0.607499 |
33ec254bd4570c5b069103d3b4dc7328f1773ec7 | 643 | ex | Elixir | lib/tune/spotify/schema/artist.ex | wojtekmach/tune | 8b38bc629eeafb35aae920ac59b986323de800eb | [
"MIT"
] | 1 | 2021-07-09T11:57:41.000Z | 2021-07-09T11:57:41.000Z | lib/tune/spotify/schema/artist.ex | wojtekmach/tune | 8b38bc629eeafb35aae920ac59b986323de800eb | [
"MIT"
] | null | null | null | lib/tune/spotify/schema/artist.ex | wojtekmach/tune | 8b38bc629eeafb35aae920ac59b986323de800eb | [
"MIT"
] | 2 | 2021-07-09T11:57:45.000Z | 2022-01-06T23:37:19.000Z | defmodule Tune.Spotify.Schema.Artist do
@moduledoc """
Represents an artist.
Depending on how the artist is retrieved, it may or may not include albums.
"""
alias Tune.Spotify.Schema
alias Schema.Album
@enforce_keys [:id, :uri, :name, :albums, :total_albums, :thumbnails]
defstruct [:id, :uri, :name, ... | 26.791667 | 77 | 0.615863 |
33ec32e163b6e55bda37c4fa40da2e3908171bef | 5,413 | exs | Elixir | test/dispenser/assignment_strategy/even_test.exs | LaudateCorpus1/dispenser | 5cdba1c0efa6b2c8cb2a878dc14ebee0717b8765 | [
"MIT"
] | 1 | 2021-12-05T20:55:40.000Z | 2021-12-05T20:55:40.000Z | test/dispenser/assignment_strategy/even_test.exs | LaudateCorpus1/dispenser | 5cdba1c0efa6b2c8cb2a878dc14ebee0717b8765 | [
"MIT"
] | null | null | null | test/dispenser/assignment_strategy/even_test.exs | LaudateCorpus1/dispenser | 5cdba1c0efa6b2c8cb2a878dc14ebee0717b8765 | [
"MIT"
] | 3 | 2022-01-25T14:15:52.000Z | 2022-03-17T09:38:04.000Z | defmodule Dispenser.AssignmentStrategy.EvenTest do
@moduledoc false
use ExUnit.Case
alias Dispenser.AssignmentStrategy
alias Dispenser.{Demands, Fakes}
describe "even assignment strategy" do
test "can assign events to meet demands of one subscriber" do
subscription1 = Fakes.create_subscription()
... | 41.007576 | 98 | 0.710512 |
33ec8db368c79eb1ed0aa695e4ff39324c56e616 | 1,334 | ex | Elixir | web/controllers/api/v1/city_controller.ex | mciastek/emotions-wheel-backend | 072a88b3ad15b2c6d2aad414e6b7cfc8fb4a70bf | [
"MIT"
] | null | null | null | web/controllers/api/v1/city_controller.ex | mciastek/emotions-wheel-backend | 072a88b3ad15b2c6d2aad414e6b7cfc8fb4a70bf | [
"MIT"
] | null | null | null | web/controllers/api/v1/city_controller.ex | mciastek/emotions-wheel-backend | 072a88b3ad15b2c6d2aad414e6b7cfc8fb4a70bf | [
"MIT"
] | null | null | null | defmodule EmotionsWheelBackend.CityController do
use EmotionsWheelBackend.Web, :controller
alias EmotionsWheelBackend.{Repo, City}
def index(conn, _params) do
cities = City |> Repo.all
render(conn, "index.json", cities: cities)
end
def show(conn, %{"id" => id}) do
city = City |> Repo.get(id)
... | 24.703704 | 71 | 0.583208 |
33eca0cb92aa805b47c60716b67660422052872e | 5,362 | exs | Elixir | test/groupher_server_web/query/accounts/colleced_articles_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | test/groupher_server_web/query/accounts/colleced_articles_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | test/groupher_server_web/query/accounts/colleced_articles_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Test.Query.Accounts.CollectedArticles do
use GroupherServer.TestTools
alias GroupherServer.Accounts
@total_count 20
setup do
{:ok, user} = db_insert(:user)
{:ok, posts} = db_insert_multi(:post, @total_count)
guest_conn = simu_conn(:guest)
user_conn = simu_conn(:user... | 34.593548 | 97 | 0.660015 |
33ecb5b24d53af7fcf5ab747d4b8fe6490b0844b | 201 | exs | Elixir | test/controllers/page_controller_test.exs | MWGitHub/focus-server | d2ebc36cfacd91f2db483aef444dfca7dc5b58a9 | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | MWGitHub/focus-server | d2ebc36cfacd91f2db483aef444dfca7dc5b58a9 | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | MWGitHub/focus-server | d2ebc36cfacd91f2db483aef444dfca7dc5b58a9 | [
"MIT"
] | null | null | null | defmodule FocusServer.PageControllerTest do
use FocusServer.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 22.333333 | 60 | 0.686567 |
33ecd2c2eb1cb15a526e18d23b988a25044f4864 | 73 | ex | Elixir | lib/excommerce_web/views/admin/zone_view.ex | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | 1 | 2019-04-01T19:14:16.000Z | 2019-04-01T19:14:16.000Z | lib/excommerce_web/views/admin/zone_view.ex | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | null | null | null | lib/excommerce_web/views/admin/zone_view.ex | roger120981/planet | a662006551d11427c08cf6cdbacd37d377bcd9c5 | [
"MIT"
] | 1 | 2019-03-24T01:50:48.000Z | 2019-03-24T01:50:48.000Z | defmodule ExcommerceWeb.Admin.ZoneView do
use ExcommerceWeb, :view
end
| 18.25 | 41 | 0.821918 |
33ecd40140330f32b0210a584540f028996c56cc | 1,948 | exs | Elixir | mix.exs | kianmeng/tds | 36f228275c2bfde2baa45fe70d29d1eb1d44379b | [
"Apache-2.0"
] | null | null | null | mix.exs | kianmeng/tds | 36f228275c2bfde2baa45fe70d29d1eb1d44379b | [
"Apache-2.0"
] | null | null | null | mix.exs | kianmeng/tds | 36f228275c2bfde2baa45fe70d29d1eb1d44379b | [
"Apache-2.0"
] | 1 | 2021-09-07T15:25:40.000Z | 2021-09-07T15:25:40.000Z | defmodule Tds.Mixfile do
@moduledoc false
use Mix.Project
@version "2.1.3"
def project do
[
app: :tds,
version: @version,
elixir: "~> 1.0",
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,... | 24.35 | 78 | 0.515914 |
33ece1ef68f61b90c39f7a8ad890af314ff95b24 | 209 | ex | Elixir | lib/countriex/geo.ex | gvl/countriex | 4d647f1e3347e9f7c6fe8ac32703aa77aff69bbe | [
"MIT"
] | null | null | null | lib/countriex/geo.ex | gvl/countriex | 4d647f1e3347e9f7c6fe8ac32703aa77aff69bbe | [
"MIT"
] | null | null | null | lib/countriex/geo.ex | gvl/countriex | 4d647f1e3347e9f7c6fe8ac32703aa77aff69bbe | [
"MIT"
] | null | null | null | defmodule Countriex.Geo do
defstruct [
:latitude,
:latitude_dec,
:longitude,
:longitude_dec,
:max_latitude,
:max_longitude,
:min_latitude,
:min_longitude,
:bounds
]
end
| 14.928571 | 26 | 0.636364 |
33ece707796d4adb445b994138cb46d1349c4114 | 3,631 | ex | Elixir | lib/bookmarker/runner.ex | lubien/bookmarker | ad3ca21e2531f1c75a909d971b4e0f67303e62cb | [
"MIT"
] | 50 | 2016-10-20T23:27:30.000Z | 2022-01-18T12:00:53.000Z | lib/bookmarker/runner.ex | lubien/bookmarker | ad3ca21e2531f1c75a909d971b4e0f67303e62cb | [
"MIT"
] | 23 | 2016-10-20T05:27:33.000Z | 2021-10-08T02:04:44.000Z | lib/bookmarker/runner.ex | lubien/bookmarker | ad3ca21e2531f1c75a909d971b4e0f67303e62cb | [
"MIT"
] | 19 | 2017-05-03T01:28:59.000Z | 2021-12-09T10:06:04.000Z | defmodule Bookmarker.Runner do
alias Bookmarker.{Bookmark, Template}
@valid_sort_strategies ~w(name-asc name-desc bookmark-count-asc bookmark-count-desc)
def valid_sort_strategies(), do: @valid_sort_strategies
def run(config) do
get_bookmarks(config.file)
|> ignore_paths(config.ignore)
|> restrict... | 30.258333 | 95 | 0.648306 |
33ed1577a3f2c8ce2abc2429243a68532e460dc3 | 133 | ex | Elixir | test/support/simple_callback.ex | starkeepers/ueberauth | 1e67842a41da850b8f671ac6a052acd8e2ce810d | [
"MIT"
] | 1,456 | 2015-11-18T05:27:24.000Z | 2022-03-24T15:07:59.000Z | test/support/simple_callback.ex | starkeepers/ueberauth | 1e67842a41da850b8f671ac6a052acd8e2ce810d | [
"MIT"
] | 139 | 2015-11-18T18:34:03.000Z | 2022-03-30T18:22:01.000Z | test/support/simple_callback.ex | starkeepers/ueberauth | 1e67842a41da850b8f671ac6a052acd8e2ce810d | [
"MIT"
] | 120 | 2015-11-19T16:25:02.000Z | 2022-02-06T01:31:45.000Z | defmodule Support.SimpleCallback do
@moduledoc false
use Ueberauth.Strategy, ignores_csrf_attack: true
use Support.Mixins
end
| 19 | 51 | 0.81203 |
33ed9222033aa45ffe93246023b8981e9ce4523d | 5,235 | exs | Elixir | test/ex_aws_es_test.exs | devato/ex_aws_es | 234dfa01561dfad59f4de1e83fbaf7331a9a4f2f | [
"MIT"
] | null | null | null | test/ex_aws_es_test.exs | devato/ex_aws_es | 234dfa01561dfad59f4de1e83fbaf7331a9a4f2f | [
"MIT"
] | null | null | null | test/ex_aws_es_test.exs | devato/ex_aws_es | 234dfa01561dfad59f4de1e83fbaf7331a9a4f2f | [
"MIT"
] | null | null | null | defmodule ExAws.ESTest do
use ExUnit.Case
doctest ExAws.ES
test "create_elasticsearch_domain" do
op = ExAws.ES.create_elasticsearch_domain("https://your.es.domain.com")
assert op == %ExAws.Operation.Query{
action: :create_elasticsearch_domain,
params: %{
"Action"... | 38.777778 | 92 | 0.583381 |
33edc68159195903944262b4204beacab234c8c7 | 1,852 | ex | Elixir | lib/farmbot/system/init/fs_checkup.ex | FarmBot-Labs/farmbot_os | 36d61b8e162655ac0c9a0d2bbb21459b4a82b4e3 | [
"MIT"
] | 2 | 2018-08-01T23:07:52.000Z | 2018-10-17T12:49:21.000Z | lib/farmbot/system/init/fs_checkup.ex | FarmBot-Labs/farmbot_os | 36d61b8e162655ac0c9a0d2bbb21459b4a82b4e3 | [
"MIT"
] | null | null | null | lib/farmbot/system/init/fs_checkup.ex | FarmBot-Labs/farmbot_os | 36d61b8e162655ac0c9a0d2bbb21459b4a82b4e3 | [
"MIT"
] | 1 | 2017-07-22T21:51:14.000Z | 2017-07-22T21:51:14.000Z | defmodule Farmbot.System.Init.FSCheckup do
@moduledoc false
use Supervisor
use Farmbot.Logger
@behaviour Farmbot.System.Init
@data_path Application.get_env(:farmbot, :data_path)
@data_path || Mix.raise("Unconfigured data path.")
@ref Farmbot.Project.commit()
@version Farmbot.Project.version()
@targe... | 23.74359 | 70 | 0.62473 |
33edc7a440f8985e30b24c6940366af2c8493560 | 1,538 | ex | Elixir | apps/jsonrpc2/lib/jsonrpc2/spec_handler/call_request.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 152 | 2018-10-27T04:52:03.000Z | 2022-03-26T10:34:00.000Z | apps/jsonrpc2/lib/jsonrpc2/spec_handler/call_request.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 270 | 2018-04-14T07:34:57.000Z | 2018-10-25T18:10:45.000Z | apps/jsonrpc2/lib/jsonrpc2/spec_handler/call_request.ex | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 25 | 2018-10-27T12:15:13.000Z | 2022-01-25T20:31:14.000Z | defmodule JSONRPC2.SpecHandler.CallRequest do
import JSONRPC2.Response.Helpers
defstruct [
:from,
:to,
:gas,
:gas_price,
:value,
:data
]
@type t :: %__MODULE__{
from: binary() | nil,
to: binary() | nil,
gas: non_neg_integer() | nil,
gas_price: no... | 26.982456 | 89 | 0.542263 |
33ede372ea4931fc8be4aca4474eb7ad84b62c5d | 1,487 | exs | Elixir | test/game_test.exs | Danwhy/blackjack | f4a39c4bf4311f10c85bc969711180bacabef992 | [
"MIT"
] | null | null | null | test/game_test.exs | Danwhy/blackjack | f4a39c4bf4311f10c85bc969711180bacabef992 | [
"MIT"
] | null | null | null | test/game_test.exs | Danwhy/blackjack | f4a39c4bf4311f10c85bc969711180bacabef992 | [
"MIT"
] | null | null | null | defmodule GameTest do
use ExUnit.Case
alias Blackjack.{Deck, Game}
test "hit" do
deck = Deck.create_deck()
{deck, hand} = Deck.deal(deck)
{deck, hand} = Game.hit(deck, hand)
assert length(hand) == 3
assert length(deck) == 49
end
test "Cannot hit when bust" do
deck = Deck.create_de... | 27.036364 | 78 | 0.560861 |
33ee4a72250e4d48d551276d4a1dffde14094bc0 | 381 | ex | Elixir | web/controllers/torrent_controller.ex | milandzo/milandzotorismo | 51e92afbc776b8a60d8f9e79fc44d6669724dcf9 | [
"MIT"
] | null | null | null | web/controllers/torrent_controller.ex | milandzo/milandzotorismo | 51e92afbc776b8a60d8f9e79fc44d6669724dcf9 | [
"MIT"
] | null | null | null | web/controllers/torrent_controller.ex | milandzo/milandzotorismo | 51e92afbc776b8a60d8f9e79fc44d6669724dcf9 | [
"MIT"
] | 1 | 2021-09-24T12:32:05.000Z | 2021-09-24T12:32:05.000Z | defmodule Magnetissimo.TorrentController do
use Magnetissimo.Web, :controller
alias Magnetissimo.Torrent
def summary(conn, _) do
tallies =
from t in Torrent,
group_by: t.website_source,
select: %{
name: t.website_source,
totals: count(t.id)
}
tallies = Repo.all(tal... | 21.166667 | 43 | 0.656168 |
33ee4b521f48a7d8d96bce031caeb462f14847bd | 990 | exs | Elixir | charts_live/test/live/line_live/chart_component_test.exs | Refined-Process/charts_ex | 6d23eff5903496b7a4518a3208486a15a3354ae2 | [
"MIT"
] | null | null | null | charts_live/test/live/line_live/chart_component_test.exs | Refined-Process/charts_ex | 6d23eff5903496b7a4518a3208486a15a3354ae2 | [
"MIT"
] | null | null | null | charts_live/test/live/line_live/chart_component_test.exs | Refined-Process/charts_ex | 6d23eff5903496b7a4518a3208486a15a3354ae2 | [
"MIT"
] | null | null | null | defmodule ChartsLive.Live.LineLive.ChartComponentTest do
@moduledoc false
import Phoenix.LiveViewTest
use ExUnit.Case
alias ChartsLive.Live.LineLive.ChartComponent
alias Charts.Axes.{MagnitudeAxis, XYAxes}
alias Charts.BaseChart
alias Charts.ColumnChart.Dataset
@endpoint Endpoint
test "renders car... | 23.571429 | 82 | 0.676768 |
33ee5165d6f979f9298fcc10a7bcf692eb55a269 | 5,703 | ex | Elixir | deps/ex_doc/lib/ex_doc/formatter/html/templates.ex | londoed/cards | 915a259073067c6e35ebe68d11313d2a78a62a10 | [
"Apache-2.0"
] | null | null | null | deps/ex_doc/lib/ex_doc/formatter/html/templates.ex | londoed/cards | 915a259073067c6e35ebe68d11313d2a78a62a10 | [
"Apache-2.0"
] | null | null | null | deps/ex_doc/lib/ex_doc/formatter/html/templates.ex | londoed/cards | 915a259073067c6e35ebe68d11313d2a78a62a10 | [
"Apache-2.0"
] | null | null | null | defmodule ExDoc.Formatter.HTML.Templates do
@moduledoc """
Handle all template interfaces for the HTML formatter.
"""
require EEx
@doc """
Generate content from the module template for a given `node`
"""
def module_page(node, modules, exceptions, protocols, config) do
types = group_types(node)
... | 28.515 | 94 | 0.607575 |
33ee59705b86b5726c928013db8d1d7b74fbfc1b | 4,456 | ex | Elixir | lib/opencensus/absinthe.ex | postmates/opencensus_absinthe | 0652d9e68acb5541c1d43a8b1eeb3d2d545be3f7 | [
"Apache-2.0"
] | null | null | null | lib/opencensus/absinthe.ex | postmates/opencensus_absinthe | 0652d9e68acb5541c1d43a8b1eeb3d2d545be3f7 | [
"Apache-2.0"
] | null | null | null | lib/opencensus/absinthe.ex | postmates/opencensus_absinthe | 0652d9e68acb5541c1d43a8b1eeb3d2d545be3f7 | [
"Apache-2.0"
] | null | null | null | defmodule Opencensus.Absinthe do
@moduledoc """
Extends `Absinthe` to automatically create `opencensus` spans. Designed to work with whatever
is producing spans upstream, e.g. `Opencensus.Plug`.
## Installation
Assuming you're using `Absinthe.Plug`:
Add `opencensus_absinthe` to your `deps` in `mix.exs`, ... | 29.90604 | 110 | 0.697935 |
33ee5ea81510165e5ee068f413588a36534a24dc | 327 | ex | Elixir | lib/makeup_js/application.ex | maartenvanvliet/makeup_js | ca88a5f9bd681cf2da209d24fb987c1a889124e4 | [
"MIT"
] | 1 | 2022-01-28T20:14:28.000Z | 2022-01-28T20:14:28.000Z | lib/makeup_js/application.ex | maartenvanvliet/makeup_js | ca88a5f9bd681cf2da209d24fb987c1a889124e4 | [
"MIT"
] | null | null | null | lib/makeup_js/application.ex | maartenvanvliet/makeup_js | ca88a5f9bd681cf2da209d24fb987c1a889124e4 | [
"MIT"
] | null | null | null | defmodule MakeupJs.Application do
@moduledoc false
use Application
alias Makeup.Registry
def start(_type, _args) do
Registry.register_lexer(Makeup.Lexers.JsLexer,
options: [],
names: ["js", "javascript"],
extensions: ["js"]
)
Supervisor.start_link([], strategy: :one_for_one)
e... | 19.235294 | 53 | 0.669725 |
33ee8f39d3f241810c83a7b4bca5ddab28c67bee | 698 | ex | Elixir | lib/db_info/router.ex | karlosmid/dbinfo | 30ef966f119eb1c8f93871b5557716cef022f3d7 | [
"MIT"
] | null | null | null | lib/db_info/router.ex | karlosmid/dbinfo | 30ef966f119eb1c8f93871b5557716cef022f3d7 | [
"MIT"
] | null | null | null | lib/db_info/router.ex | karlosmid/dbinfo | 30ef966f119eb1c8f93871b5557716cef022f3d7 | [
"MIT"
] | null | null | null | defmodule DbInfo.Router do
@moduledoc """
Provides View routing for DbInfo.
"""
@doc """
Defines a DbInfo route.
It expects the `path` the dashboard will be mounted at.
This will also generate a named helper called `db_info_path/2`
which you can use to link directly to the dashboard, such as:
<%... | 26.846154 | 74 | 0.661891 |
33ee99b3b39bb039f9c57e5711716cc698ef5d13 | 61 | ex | Elixir | web/views/page_view.ex | erickgnavarro/phoenix_demo_chat | 71749db3fb4e8012047e8d857b0a096a36dbe375 | [
"MIT"
] | 2 | 2015-05-12T04:00:03.000Z | 2016-05-02T06:05:25.000Z | web/views/page_view.ex | erickgnavarro/phoenix_demo_chat | 71749db3fb4e8012047e8d857b0a096a36dbe375 | [
"MIT"
] | null | null | null | web/views/page_view.ex | erickgnavarro/phoenix_demo_chat | 71749db3fb4e8012047e8d857b0a096a36dbe375 | [
"MIT"
] | null | null | null | defmodule DemoChat.PageView do
use DemoChat.Web, :view
end
| 15.25 | 30 | 0.786885 |
33eed283acb0cb9b79055c8b4d3ba751bcde3b8f | 234 | exs | Elixir | examples/helloworld/priv/status_details.exs | coingaming/grpc | 33b8b3ceec007ae530a33b49a7b302a1ee356b05 | [
"Apache-2.0"
] | null | null | null | examples/helloworld/priv/status_details.exs | coingaming/grpc | 33b8b3ceec007ae530a33b49a7b302a1ee356b05 | [
"Apache-2.0"
] | null | null | null | examples/helloworld/priv/status_details.exs | coingaming/grpc | 33b8b3ceec007ae530a33b49a7b302a1ee356b05 | [
"Apache-2.0"
] | 1 | 2022-01-19T22:21:04.000Z | 2022-01-19T22:21:04.000Z | {:ok, channel} = GRPC.Stub.connect("localhost:50051", interceptors: [GRPC.Logger.Client])
{:error, reason} =
channel |> Helloworld.Greeter.Stub.say_hello(Helloworld.HelloRequest.new(name: "quota_failure:word"))
IO.inspect(reason)
| 33.428571 | 103 | 0.747863 |
33eee45034e7814cfb08b10e6d00ebdeffd3153b | 446 | exs | Elixir | config/prod.exs | sbezugliy/couchdb_adapter | 01304052185405a6420d502c8f25164ced77f493 | [
"Apache-2.0"
] | null | null | null | config/prod.exs | sbezugliy/couchdb_adapter | 01304052185405a6420d502c8f25164ced77f493 | [
"Apache-2.0"
] | null | null | null | config/prod.exs | sbezugliy/couchdb_adapter | 01304052185405a6420d502c8f25164ced77f493 | [
"Apache-2.0"
] | null | null | null | use Mix.Config
config :couchdb_adapter,
protocol: "https",
hostname: "localhost",
port: "5984",
database: "couchdb_connector_prod",
auth_type: :basic,
server_admin: :true,
server_admin_username: "couchadmin",
server_admin_password: "supersecret",
db_admin: :true,
db_admin_user... | 20.272727 | 39 | 0.690583 |
33ef03e8b37330789cf279261802d11f00bc4515 | 374 | exs | Elixir | .credo.exs | Ovyerus/kamex | c6ac49c19e5b75a8d41db38cf7ae63665de02587 | [
"MIT"
] | 14 | 2022-01-01T14:40:55.000Z | 2022-01-07T12:59:05.000Z | .credo.exs | Ovyerus/kamex | c6ac49c19e5b75a8d41db38cf7ae63665de02587 | [
"MIT"
] | null | null | null | .credo.exs | Ovyerus/kamex | c6ac49c19e5b75a8d41db38cf7ae63665de02587 | [
"MIT"
] | null | null | null | %{
configs: [
%{
name: "default",
files: %{
included: ["lib/", "priv/", "test/"],
excluded: []
},
color: true,
checks: [
{Credo.Check.Refactor.Nesting, false},
{Credo.Check.Refactor.CyclomaticComplexity, false},
{Credo.Check.Readability.LargeNu... | 20.777778 | 73 | 0.518717 |
33ef06b2553c31cffd53bdd4e2653392b1481de8 | 805 | ex | Elixir | lib/game/actions/heal.ex | tarcisiooliveira/ExMon | 51e59d456c338ac051cd5acd37d02d57f771b251 | [
"MIT"
] | null | null | null | lib/game/actions/heal.ex | tarcisiooliveira/ExMon | 51e59d456c338ac051cd5acd37d02d57f771b251 | [
"MIT"
] | null | null | null | lib/game/actions/heal.ex | tarcisiooliveira/ExMon | 51e59d456c338ac051cd5acd37d02d57f771b251 | [
"MIT"
] | null | null | null | defmodule ExMon.Game.Actions.Heal do
alias ExMon.Game
alias ExMon.Game.Status
@heal_power 18..25
def heal_life(player) do
player
|> Game.fetch_player()
|> Map.get(:life)
|> calculate_total_life()
|> set_life(player)
end
defp calculate_total_life(life), do: Enum.random(@heal_power) + li... | 23.676471 | 80 | 0.686957 |
33ef59f2eaa08d68a50d412cf4a02824f9f52548 | 674 | exs | Elixir | programming/elixir/pingpong/ping_pong/mix.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | programming/elixir/pingpong/ping_pong/mix.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | programming/elixir/pingpong/ping_pong/mix.exs | NomikOS/learning | 268f94605214f6861ef476ca7573e68c068ccbe5 | [
"Unlicense"
] | null | null | null | defmodule PingPong.Mixfile do
use Mix.Project
def project do
[app: :ping_pong,
version: "0.0.1",
elixir: "~> 1.1-dev",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` f... | 20.424242 | 77 | 0.611276 |
33ef6176ae0e079d797cd75fd6e69342b246fce5 | 1,072 | ex | Elixir | lib/elixir_ecommerce_web/controllers/session_controller.ex | abmBispo/elixir-ecommerce | 0507f7621d68ba8f0f65409a1a503683b7c0d37b | [
"MIT"
] | 4 | 2020-05-29T03:33:02.000Z | 2021-08-21T23:01:48.000Z | lib/elixir_ecommerce_web/controllers/session_controller.ex | abmBispo/elixir-ecommerce | 0507f7621d68ba8f0f65409a1a503683b7c0d37b | [
"MIT"
] | 2 | 2020-07-29T01:50:46.000Z | 2021-08-31T20:10:47.000Z | lib/elixir_ecommerce_web/controllers/session_controller.ex | abmBispo/elixir-ecommerce | 0507f7621d68ba8f0f65409a1a503683b7c0d37b | [
"MIT"
] | 1 | 2022-03-21T18:13:21.000Z | 2022-03-21T18:13:21.000Z | defmodule ElixirEcommerceWeb.SessionController do
use ElixirEcommerceWeb, :controller
plug :put_layout, "login.html"
alias ElixirEcommerce.{
UserManager,
UserManager.User,
UserManager.Guardian
}
def new(conn, _) do
if Guardian.Plug.current_resource(conn) do
redirect(conn, to: "/index")... | 23.304348 | 78 | 0.614739 |
33ef8ec621230da2e5f804c1270eaba8acbf258f | 545 | ex | Elixir | lib/brando/images/operation.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 1 | 2020-04-26T09:53:02.000Z | 2020-04-26T09:53:02.000Z | lib/brando/images/operation.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 198 | 2019-08-20T16:16:07.000Z | 2020-07-03T15:42:07.000Z | lib/brando/images/operation.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | null | null | null | defmodule Brando.Images.Operation do
@moduledoc """
Struct for carrying info about an image transform
"""
alias Brando.Images
alias Brando.Type
defstruct image_id: nil,
user: nil,
total_operations: nil,
operation_index: nil,
processed_formats: nil,
... | 25.952381 | 51 | 0.576147 |
33efb055d15db978d799f26c61135cc1780509f6 | 4,920 | exs | Elixir | mix.exs | laurentqro/phoenix | 9ab31b40893fe2edddb0eb0cfa9e4ac2f65cff72 | [
"MIT"
] | 1 | 2018-07-26T10:42:26.000Z | 2018-07-26T10:42:26.000Z | mix.exs | laurentqro/phoenix | 9ab31b40893fe2edddb0eb0cfa9e4ac2f65cff72 | [
"MIT"
] | null | null | null | mix.exs | laurentqro/phoenix | 9ab31b40893fe2edddb0eb0cfa9e4ac2f65cff72 | [
"MIT"
] | null | null | null | defmodule Phoenix.MixProject do
use Mix.Project
@version "1.4.0-dev"
def project do
[
app: :phoenix,
version: @version,
elixir: "~> 1.4",
deps: deps(),
package: package(),
lockfile: lockfile(),
preferred_cli_env: [docs: :docs],
consolidate_protocols: Mix.env !... | 24.848485 | 96 | 0.578455 |
33efb56340924a449bb82a0f2aca7631d2a69ef3 | 2,101 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_update_error.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_update_error.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_update_error.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... | 37.517857 | 204 | 0.71109 |
33efc6f3f7511e758ab1473686f223dc6864c066 | 2,084 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/country.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/country.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/country.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... | 35.322034 | 143 | 0.691939 |
33efc797b044c61d8056ebbd6e123293b30a5d5f | 4,163 | ex | Elixir | lib/hitbtc/http/trading.ex | konstantinzolotarev/hitbtc | 40d6e5eeb0e7636c018d4ce12d11f91f81a96425 | [
"MIT"
] | 1 | 2019-04-26T08:28:49.000Z | 2019-04-26T08:28:49.000Z | lib/hitbtc/http/trading.ex | konstantinzolotarev/hitbtc | 40d6e5eeb0e7636c018d4ce12d11f91f81a96425 | [
"MIT"
] | null | null | null | lib/hitbtc/http/trading.ex | konstantinzolotarev/hitbtc | 40d6e5eeb0e7636c018d4ce12d11f91f81a96425 | [
"MIT"
] | null | null | null | defmodule Hitbtc.Http.Trading do
alias Hitbtc.Util.Api
@moduledoc """
Set of trading API methods
This set of methods requires auth information.
You could configure it into `config.exs` file of your application
"""
@doc """
List of your current orders
## Example:
```elixir
iex(1)> Hitbtc.Trad... | 30.386861 | 89 | 0.622628 |
33efe924c75bbf14a9116fa0f3cc409e40549139 | 1,659 | ex | Elixir | lib/rockelivery.ex | LuizFerK/Rockelivery | 4742d73027bcaa97c2fc7969c8d032edf73a28fd | [
"MIT"
] | null | null | null | lib/rockelivery.ex | LuizFerK/Rockelivery | 4742d73027bcaa97c2fc7969c8d032edf73a28fd | [
"MIT"
] | null | null | null | lib/rockelivery.ex | LuizFerK/Rockelivery | 4742d73027bcaa97c2fc7969c8d032edf73a28fd | [
"MIT"
] | null | null | null | defmodule Rockelivery do
alias Rockelivery.Items.Create, as: ItemCreate
alias Rockelivery.Items.Delete, as: ItemDelete
alias Rockelivery.Items.Get, as: ItemGet
alias Rockelivery.Items.GetAll, as: GetAllItems
alias Rockelivery.Items.Update, as: ItemUpdate
alias Rockelivery.Users.Create, as: UserCreate
ali... | 43.657895 | 62 | 0.768535 |
33eff45fe1c8b3a7021e6b5644cd434a8de5b629 | 65 | exs | Elixir | config/config.exs | mnishiguchi/sgp40 | cd59ceea8bc36ee6a8dd7d463b4c3d05067d94bd | [
"MIT"
] | 2 | 2021-06-13T21:09:19.000Z | 2021-06-16T13:20:14.000Z | config/config.exs | elixir-sensors/sgp40 | cd59ceea8bc36ee6a8dd7d463b4c3d05067d94bd | [
"MIT"
] | 3 | 2021-06-14T13:09:08.000Z | 2021-06-26T19:43:55.000Z | config/config.exs | mnishiguchi/sgp40 | cd59ceea8bc36ee6a8dd7d463b4c3d05067d94bd | [
"MIT"
] | null | null | null | import Config
config :sgp40, transport_mod: SGP40.MockTransport
| 16.25 | 49 | 0.830769 |
33eff76a298fb0b920377626b94371783c0eb65e | 742 | ex | Elixir | lib/ex_clubhouse/model/profile.ex | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 4 | 2020-03-17T00:42:10.000Z | 2021-04-11T16:39:52.000Z | lib/ex_clubhouse/model/profile.ex | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 7 | 2020-03-21T20:22:13.000Z | 2021-12-30T16:32:07.000Z | lib/ex_clubhouse/model/profile.ex | pootsbook/exclubhouse | 3b93cded0124e4e5df489db4f9262a560595bb8e | [
"MIT"
] | 4 | 2020-03-25T18:34:49.000Z | 2021-09-13T16:44:00.000Z | defmodule ExClubhouse.Model.Profile do
@moduledoc """
Profile model
"""
alias ExClubhouse.Model
@type t :: %__MODULE__{
deactivated: boolean(),
display_icon: Model.Icon.t(),
email_address: binary() | nil,
entity_type: binary(),
gravatar_hash: binary(),
... | 24.733333 | 46 | 0.541779 |
33f02afb0e8f48bd5e91648cede7e99bbf5f7a96 | 7,125 | ex | Elixir | lib/nostrum/constants.ex | chakrit/nostrum | f0ce383d06bb3bb1786ff0464c95cbd757d38f1f | [
"MIT"
] | null | null | null | lib/nostrum/constants.ex | chakrit/nostrum | f0ce383d06bb3bb1786ff0464c95cbd757d38f1f | [
"MIT"
] | null | null | null | lib/nostrum/constants.ex | chakrit/nostrum | f0ce383d06bb3bb1786ff0464c95cbd757d38f1f | [
"MIT"
] | null | null | null | defmodule Nostrum.Constants do
@moduledoc false
def base_url, do: "https://discord.com/api/v8"
def cdn_url, do: "https://cdn.discordapp.com"
def gateway, do: "/gateway"
def gateway_bot, do: "/gateway/bot"
def channel(channel_id), do: "/channels/#{channel_id}"
def channel_messages(channel_id), do: "/chan... | 38.934426 | 97 | 0.692491 |
33f02efea793392ce3653c7452f85f9e6c7ccf17 | 154 | ex | Elixir | lib/sneak.ex | mccraveiro/sneak | 9637167927b847440d354ce848f67cac4cdc582e | [
"MIT"
] | null | null | null | lib/sneak.ex | mccraveiro/sneak | 9637167927b847440d354ce848f67cac4cdc582e | [
"MIT"
] | null | null | null | lib/sneak.ex | mccraveiro/sneak | 9637167927b847440d354ce848f67cac4cdc582e | [
"MIT"
] | null | null | null | defmodule Sneak do
def start() do
base_url = "http://www.magazineluiza.com.br"
Sneak.Storage.start(base_url)
Sneak.Worker.start()
end
end
| 19.25 | 48 | 0.688312 |
33f06963f272f24a7a75b768c7a9bc25364817f9 | 672 | exs | Elixir | config/test.exs | Adsidera/adoptoposs | e06da0855fe8f06f4774f89a977201fb78d9dafb | [
"MIT"
] | 120 | 2020-03-30T13:58:40.000Z | 2022-03-30T10:17:50.000Z | config/test.exs | tsrandrei/adoptoposs | a18fb4b8062aa057e0578dc6e7b7bceef2b8a02e | [
"MIT"
] | 34 | 2020-04-01T23:11:59.000Z | 2022-03-13T08:14:37.000Z | config/test.exs | tsrandrei/adoptoposs | a18fb4b8062aa057e0578dc6e7b7bceef2b8a02e | [
"MIT"
] | 16 | 2020-04-24T17:14:23.000Z | 2022-03-27T22:32:48.000Z | use Mix.Config
# Configure your database
config :adoptoposs, Adoptoposs.Repo,
username: "postgres",
password: "postgres",
database: "adoptoposs_test",
hostname: "db",
pool: Ecto.Adapters.SQL.Sandbox
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :ad... | 25.846154 | 70 | 0.758929 |
33f07584d745fa90c49f87e95dfc66496787d33d | 1,027 | exs | Elixir | mix.exs | dannote/tongue | e287cc405548bb78cdc2a1da1d90697038aa8cfb | [
"Apache-2.0"
] | 8 | 2018-08-01T15:13:07.000Z | 2020-11-11T21:20:00.000Z | mix.exs | dannote/tongue | e287cc405548bb78cdc2a1da1d90697038aa8cfb | [
"Apache-2.0"
] | 2 | 2021-06-30T13:11:06.000Z | 2021-08-13T13:26:53.000Z | mix.exs | dannote/tongue | e287cc405548bb78cdc2a1da1d90697038aa8cfb | [
"Apache-2.0"
] | 1 | 2019-12-05T01:07:26.000Z | 2019-12-05T01:07:26.000Z | defmodule Tongue.MixProject do
use Mix.Project
def project do
[
app: :tongue,
version: "2.2.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
name: "Tongue",
dialyzer: [plt_add_apps: [:... | 21.851064 | 68 | 0.542356 |
33f0b72ef5746271365f8281aca532b8cc200b99 | 708 | ex | Elixir | lib/geonames/endpoints/postal_code_search.ex | vheathen/geonames-elixir | b47ef0e38462c3bdbfb1a5b710f53993d9d3056d | [
"MIT"
] | null | null | null | lib/geonames/endpoints/postal_code_search.ex | vheathen/geonames-elixir | b47ef0e38462c3bdbfb1a5b710f53993d9d3056d | [
"MIT"
] | null | null | null | lib/geonames/endpoints/postal_code_search.ex | vheathen/geonames-elixir | b47ef0e38462c3bdbfb1a5b710f53993d9d3056d | [
"MIT"
] | null | null | null | defmodule Geonames.Endpoints.PostalCodeSearch do
@moduledoc false
@behaviour Geonames.Endpoint
@default_arguments %{
postalcode: nil,
postalcode_startsWith: nil,
placename: nil,
placename_startsWith: nil,
country: nil,
countryBias: nil,
maxRows: 10,
style: nil,
operator: nil,
... | 22.125 | 64 | 0.710452 |
33f0be2cec3b8d3904b6ece69b65e1523e6ee6d9 | 2,372 | exs | Elixir | test/repg2/single_node_test.exs | jechol/repg2 | eba11a703104d52c349c864ca3d79c636c71542f | [
"Apache-2.0"
] | null | null | null | test/repg2/single_node_test.exs | jechol/repg2 | eba11a703104d52c349c864ca3d79c636c71542f | [
"Apache-2.0"
] | null | null | null | test/repg2/single_node_test.exs | jechol/repg2 | eba11a703104d52c349c864ca3d79c636c71542f | [
"Apache-2.0"
] | null | null | null | defmodule RePG2.SingleNodeTest do
@moduledoc false
use ExUnit.Case
doctest RePG2
setup do
ClusterUtil.restart_cur_node(:repg2)
end
test "initial state" do
assert RePG2.which_groups() == []
end
test "create group" do
:ok = RePG2.create(:test_group)
assert RePG2.which_groups() == [:te... | 25.505376 | 96 | 0.653457 |
33f0c434e0c2cf65c876fa625f77c5e12b3fbb27 | 1,875 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/replica_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/replica_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/spanner/lib/google_api/spanner/v1/model/replica_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.482143 | 145 | 0.709867 |
33f0f77d6a123a93d56dfe294fd8238b9581aa1b | 7,642 | ex | Elixir | clients/cloud_search/lib/google_api/cloud_search/v1/model/property_definition.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/cloud_search/lib/google_api/cloud_search/v1/model/property_definition.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/cloud_search/lib/google_api/cloud_search/v1/model/property_definition.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 76.42 | 639 | 0.741822 |
33f106e6d26206fde6cc1a665127bb0202b58ece | 532 | exs | Elixir | mix.exs | YodelTalk/iceland | 625f5dd94b1d3286248016bace5a95fc15cf6aba | [
"MIT"
] | null | null | null | mix.exs | YodelTalk/iceland | 625f5dd94b1d3286248016bace5a95fc15cf6aba | [
"MIT"
] | null | null | null | mix.exs | YodelTalk/iceland | 625f5dd94b1d3286248016bace5a95fc15cf6aba | [
"MIT"
] | null | null | null | defmodule Iceland.MixProject do
use Mix.Project
def project do
[
app: :iceland,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
escript: [
main_module: Iceland.CLI
]
]
end
# Run "mix help compile.app" to learn ab... | 17.16129 | 59 | 0.556391 |
33f117c260d861ec6556c2c18fb28ae4bef0e084 | 1,078 | ex | Elixir | lib/opt_web/live/page_live.ex | awwong1/opt | 8d84c5789b84e95e4825a7a49711263537933b56 | [
"Apache-2.0"
] | null | null | null | lib/opt_web/live/page_live.ex | awwong1/opt | 8d84c5789b84e95e4825a7a49711263537933b56 | [
"Apache-2.0"
] | null | null | null | lib/opt_web/live/page_live.ex | awwong1/opt | 8d84c5789b84e95e4825a7a49711263537933b56 | [
"Apache-2.0"
] | null | null | null | defmodule OptWeb.PageLive do
use OptWeb, :live_view
@impl true
def mount(_params, _session, socket) do
{:ok, assign(socket, query: "", results: %{})}
end
@impl true
def handle_event("suggest", %{"q" => query}, socket) do
{:noreply, assign(socket, results: search(query), query: query)}
end
@im... | 26.95 | 84 | 0.597403 |
33f13cc81f28cd2fef48c14775da5b36e57f88ed | 507 | exs | Elixir | apps/playground_db/config/test.exs | kimlindholm/elixir_playground | 2a44404996b98d88e40faaee4f6b3a546618a1fd | [
"MIT"
] | null | null | null | apps/playground_db/config/test.exs | kimlindholm/elixir_playground | 2a44404996b98d88e40faaee4f6b3a546618a1fd | [
"MIT"
] | null | null | null | apps/playground_db/config/test.exs | kimlindholm/elixir_playground | 2a44404996b98d88e40faaee4f6b3a546618a1fd | [
"MIT"
] | null | null | null | # Since configuration is shared in umbrella projects, this file
# should only configure the :playground_db application itself
# and only for organization purposes. All other config goes to
# the umbrella root.
use Mix.Config
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your da... | 29.823529 | 63 | 0.773176 |
33f15f5df30e970c21210dc3b8b1b6ec61ef4465 | 1,571 | ex | Elixir | lib/doctor_schedule_web/endpoint.ex | adrianomota/doctor_schedule | 626eef47df8f1ff082c7a7d76342cb9c361c75a2 | [
"MIT"
] | null | null | null | lib/doctor_schedule_web/endpoint.ex | adrianomota/doctor_schedule | 626eef47df8f1ff082c7a7d76342cb9c361c75a2 | [
"MIT"
] | null | null | null | lib/doctor_schedule_web/endpoint.ex | adrianomota/doctor_schedule | 626eef47df8f1ff082c7a7d76342cb9c361c75a2 | [
"MIT"
] | null | null | null | defmodule DoctorScheduleWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :doctor_schedule
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
k... | 30.803922 | 97 | 0.729472 |
33f18d042984f09d4a25317a3b9b05cb1dad2813 | 378 | ex | Elixir | web/views/error_view.ex | Redorb/SpeakEasy | ef9176ae9d9c9064abd3a287852ba897238e3516 | [
"MIT"
] | null | null | null | web/views/error_view.ex | Redorb/SpeakEasy | ef9176ae9d9c9064abd3a287852ba897238e3516 | [
"MIT"
] | null | null | null | web/views/error_view.ex | Redorb/SpeakEasy | ef9176ae9d9c9064abd3a287852ba897238e3516 | [
"MIT"
] | null | null | null | defmodule Speakeasy.ErrorView do
use Speakeasy.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Internal server error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_templ... | 21 | 47 | 0.701058 |
33f191826b203c175f0ef681e0e0fc0272689fa2 | 1,525 | ex | Elixir | example/lib/example_web/endpoint.ex | NduatiK/marker | a0af6f083feba029ae02221b0ab44cfe865c43bb | [
"Apache-2.0"
] | null | null | null | example/lib/example_web/endpoint.ex | NduatiK/marker | a0af6f083feba029ae02221b0ab44cfe865c43bb | [
"Apache-2.0"
] | null | null | null | example/lib/example_web/endpoint.ex | NduatiK/marker | a0af6f083feba029ae02221b0ab44cfe865c43bb | [
"Apache-2.0"
] | null | null | null | defmodule ExampleWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :example
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_example_k... | 29.901961 | 97 | 0.721311 |
33f1b4d7abac7d2f32645c6639b694b068df8be3 | 2,273 | ex | Elixir | exercises/practice/markdown/lib/markdown.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/practice/markdown/lib/markdown.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/practice/markdown/lib/markdown.ex | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule Markdown do
@doc """
Parses a given string with Markdown syntax and returns the associated HTML for that string.
## Examples
iex> Markdown.parse("This is a paragraph")
"<p>This is a paragraph</p>"
iex> Markdown.parse("# Header!\\n* __Bold Item__\\n* _Italic Item_")
"<h1>He... | 28.4125 | 97 | 0.572811 |
33f1cbeb7518b47d06ad2b9c2f14b4bc6550e03c | 1,054 | exs | Elixir | test/mars_rover_kata/instruction_test.exs | lucazulian/mars-rover-kata | 1c7e5ebfee09aca74dceb69f84a7e95aae6defce | [
"MIT"
] | 2 | 2021-05-10T09:47:22.000Z | 2022-02-20T10:41:24.000Z | test/mars_rover_kata/instruction_test.exs | lucazulian/mars-rover-kata | 1c7e5ebfee09aca74dceb69f84a7e95aae6defce | [
"MIT"
] | 2 | 2021-05-08T09:28:41.000Z | 2021-12-23T09:58:53.000Z | test/mars_rover_kata/instruction_test.exs | lucazulian/mars-rover-kata | 1c7e5ebfee09aca74dceb69f84a7e95aae6defce | [
"MIT"
] | 1 | 2021-05-07T08:54:50.000Z | 2021-05-07T08:54:50.000Z | defmodule MarsRoverKata.InstructionTest do
@moduledoc false
use ExUnit.Case, async: true
doctest MarsRoverKata.Instruction
alias MarsRoverKata.Instruction
alias MarsRoverKata.Planet
alias MarsRoverKata.Point
alias MarsRoverKata.Position
@planet %Planet{max_x: 5, max_y: 5}
@starting_point Point.new(... | 29.277778 | 111 | 0.63852 |
33f22054826d8b87078385d8f336594be90b8bd2 | 261 | exs | Elixir | priv/repo/migrations/20210625221135_create_trainings_table.exs | brunodantas/wabanex | 4d8e4258969203cf0adf5b6561fbd862085afed7 | [
"MIT"
] | 61 | 2021-06-22T00:15:59.000Z | 2022-01-31T15:13:51.000Z | priv/repo/migrations/20210625221135_create_trainings_table.exs | brunodantas/wabanex | 4d8e4258969203cf0adf5b6561fbd862085afed7 | [
"MIT"
] | 1 | 2021-06-21T18:42:41.000Z | 2021-06-21T18:42:41.000Z | priv/repo/migrations/20210625221135_create_trainings_table.exs | brunodantas/wabanex | 4d8e4258969203cf0adf5b6561fbd862085afed7 | [
"MIT"
] | 56 | 2021-06-21T17:17:36.000Z | 2022-03-15T02:48:59.000Z | defmodule Wabanex.Repo.Migrations.CreateTrainingsTable do
use Ecto.Migration
def change do
create table(:trainings) do
add :start_date, :date
add :end_date, :date
add :user_id, references(:users)
timestamps()
end
end
end
| 18.642857 | 57 | 0.678161 |
33f22609ab152da080637fd799c11af9ec6226b4 | 1,880 | exs | Elixir | config/dev.exs | blaedj/queryhub | 1605d29e1d2b8a2a66bf911945dab441682083dc | [
"Apache-2.0"
] | null | null | null | config/dev.exs | blaedj/queryhub | 1605d29e1d2b8a2a66bf911945dab441682083dc | [
"Apache-2.0"
] | null | null | null | config/dev.exs | blaedj/queryhub | 1605d29e1d2b8a2a66bf911945dab441682083dc | [
"Apache-2.0"
] | 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 :queryhub, QueryHubWeb.Endpoint,
http: [port: ... | 32.413793 | 170 | 0.710638 |
33f22bc99dd112f29beeb332e8be7720ccd1a0c5 | 2,586 | ex | Elixir | clients/custom_search/lib/google_api/custom_search/v1/model/promotion.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/custom_search/lib/google_api/custom_search/v1/model/promotion.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/custom_search/lib/google_api/custom_search/v1/model/promotion.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 41.709677 | 280 | 0.70263 |
33f26e22bb4dbdb7bb8f3bed9afc21233379e15a | 6,516 | ex | Elixir | lib/membrane/core/helper/fast_map.ex | membraneframework/membrane-core | 096c2546869824c49ad1d7412ffe02d050164611 | [
"Apache-2.0"
] | 515 | 2018-06-18T11:09:44.000Z | 2020-07-31T07:54:35.000Z | lib/membrane/core/helper/fast_map.ex | membraneframework/membrane-core | 096c2546869824c49ad1d7412ffe02d050164611 | [
"Apache-2.0"
] | 120 | 2018-06-07T08:34:06.000Z | 2020-07-30T07:09:50.000Z | lib/membrane/core/helper/fast_map.ex | membraneframework/membrane-core | 096c2546869824c49ad1d7412ffe02d050164611 | [
"Apache-2.0"
] | 13 | 2018-07-27T11:58:15.000Z | 2020-05-06T15:19:55.000Z | defmodule Membrane.Core.Helper.FastMap do
@moduledoc false
@doc """
Gets a value from a nested map structure
iex> require #{inspect(__MODULE__)}
iex> users = %{"john" => %{age: 27}, "meg" => %{age: 23}}
iex> #{inspect(__MODULE__)}.get_in!(users, ["john", :age])
27
Raises `MatchError` ... | 29.484163 | 97 | 0.623696 |
33f2892d1effd6de65728ea9a5b6a8ef874ffe50 | 345 | ex | Elixir | lib/mix/tasks/run_day.ex | jmolinski/advent-of-code-2015 | ec957ece55b0379626d5c336a7f7bbac4db29ef1 | [
"MIT"
] | null | null | null | lib/mix/tasks/run_day.ex | jmolinski/advent-of-code-2015 | ec957ece55b0379626d5c336a7f7bbac4db29ef1 | [
"MIT"
] | null | null | null | lib/mix/tasks/run_day.ex | jmolinski/advent-of-code-2015 | ec957ece55b0379626d5c336a7f7bbac4db29ef1 | [
"MIT"
] | null | null | null | defmodule Mix.Tasks.Aoc.Run do
use Mix.Task
@shortdoc "Execute the solution for a specific day"
@input_dir "./lib/aoc2015/inputs/"
def run([day]) do
{:ok, input_body} = File.read(@input_dir <> "day" <> day <> ".txt")
apply(String.to_existing_atom("Elixir.Aoc.Day" <> day), :run, [i... | 28.75 | 83 | 0.611594 |
33f2a218b2a16ff7538108ecf7c998d5be311ab1 | 708 | ex | Elixir | lib/txtshr_web/gettext.ex | Cyber28/txtshr | dce984329564c99d267f6e38898b479db4255d9d | [
"MIT"
] | 4 | 2020-09-26T19:40:57.000Z | 2021-05-16T15:16:31.000Z | lib/txtshr_web/gettext.ex | Cyber28/txtshr | dce984329564c99d267f6e38898b479db4255d9d | [
"MIT"
] | 1 | 2020-10-17T09:38:21.000Z | 2020-10-17T09:38:21.000Z | lib/txtshr_web/gettext.ex | Cyber28/txtshr | dce984329564c99d267f6e38898b479db4255d9d | [
"MIT"
] | null | null | null | defmodule TxtshrWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import TxtshrWeb.Gettext
# Simple translation
gettext("Here is the... | 28.32 | 72 | 0.676554 |
33f2ed8037b0d2f3ff12a744c461d36f1260b6b0 | 434 | exs | Elixir | config/test.exs | thomasbrus/phoenix-live-view-soccer-table | 60bff384a71fb9c08eb22600409e71fe25e54712 | [
"MIT"
] | 1 | 2020-05-09T02:09:21.000Z | 2020-05-09T02:09:21.000Z | config/test.exs | thomasbrus/phoenix-live-view-soccer-table | 60bff384a71fb9c08eb22600409e71fe25e54712 | [
"MIT"
] | null | null | null | config/test.exs | thomasbrus/phoenix-live-view-soccer-table | 60bff384a71fb9c08eb22600409e71fe25e54712 | [
"MIT"
] | 1 | 2020-07-07T21:38:33.000Z | 2020-07-07T21:38:33.000Z | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :soccer_table, SoccerTableWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :soccer_tab... | 25.529412 | 56 | 0.753456 |
33f2ee44eb3ab75c0e1cd192e63c7d2f325f84ac | 4,921 | ex | Elixir | lib/q.ex | piacerex/quantex | cdec15dd74617600eec8cbf9904e1c40c2c0aa9f | [
"Apache-2.0"
] | 10 | 2019-11-26T20:33:30.000Z | 2021-02-10T13:32:23.000Z | lib/q.ex | piacerex/quantex | cdec15dd74617600eec8cbf9904e1c40c2c0aa9f | [
"Apache-2.0"
] | null | null | null | lib/q.ex | piacerex/quantex | cdec15dd74617600eec8cbf9904e1c40c2c0aa9f | [
"Apache-2.0"
] | 5 | 2018-01-02T12:21:29.000Z | 2019-03-22T06:24:18.000Z | defmodule Q do
@moduledoc """
Documentation for Q ( Elixir Quantum module ).
"""
@doc """
|0> qubit = ( 1, 0 )
## Examples
iex> Q.q0.array
[ 1, 0 ]
"""
def q0, do: Numexy.new( [ 1, 0 ] )
@doc """
|1> qubit = ( 0, 1 )
## Examples
iex> Q.q1.array
[ 0, 1 ]
"""
def q1, do: Numexy.new( [ 0, 1 ] )
... | 27.960227 | 133 | 0.498882 |
33f2eefe25bb0f58bbc90444a36aaf139df5a2e2 | 7,646 | ex | Elixir | apps/omg_watcher/lib/omg_watcher/utxo_selection.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/omg_watcher/utxo_selection.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/omg_watcher/utxo_selection.ex | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 1 | 2021-12-04T00:37:46.000Z | 2021-12-04T00:37:46.000Z | # Copyright 2019 OmiseGO Pte Ltd
#
# 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 writi... | 33.243478 | 119 | 0.6147 |
33f2f024b4cfdcc3cf9323366d11fdb08dcb56ca | 199 | exs | Elixir | test/controllers/page_controller_test.exs | Fabian-Fynn/elixir-socket-test | a292d8397c331bdc988f32b601f85f477a20d58c | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | Fabian-Fynn/elixir-socket-test | a292d8397c331bdc988f32b601f85f477a20d58c | [
"MIT"
] | null | null | null | test/controllers/page_controller_test.exs | Fabian-Fynn/elixir-socket-test | a292d8397c331bdc988f32b601f85f477a20d58c | [
"MIT"
] | null | null | null | defmodule SocketTest.PageControllerTest do
use SocketTest.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 22.111111 | 60 | 0.683417 |
33f2fc70a15630ee1fa58e483c815fc7f7fd954b | 1,882 | ex | Elixir | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/enterprises_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/enterprises_list_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/android_enterprise/lib/google_api/android_enterprise/v1/model/enterprises_list_response.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 ... | 37.64 | 202 | 0.751328 |
33f2fe00a0bd7abaa4fca6a02fd76396550cac98 | 466 | exs | Elixir | test/absinthe/integration/execution/input_types/null/variable_to_type_list_of_T_test.exs | hauptbenutzer/absinthe | f1d76e5c249ca337187971b0c96b1870f53716ed | [
"MIT"
] | null | null | null | test/absinthe/integration/execution/input_types/null/variable_to_type_list_of_T_test.exs | hauptbenutzer/absinthe | f1d76e5c249ca337187971b0c96b1870f53716ed | [
"MIT"
] | null | null | null | test/absinthe/integration/execution/input_types/null/variable_to_type_list_of_T_test.exs | hauptbenutzer/absinthe | f1d76e5c249ca337187971b0c96b1870f53716ed | [
"MIT"
] | 1 | 2018-11-16T02:34:40.000Z | 2018-11-16T02:34:40.000Z | defmodule Elixir.Absinthe.Integration.Execution.InputTypes.Null.VariableToTypeListOf_TTest do
use ExUnit.Case, async: true
@query """
query ($value: [Int]) {
nullableList(input: $value) {
length
content
nonNullCount
nullCount
}
}
"""
test "scenario #1" do
assert {:ok, %... | 23.3 | 98 | 0.628755 |
33f32f1e414c01422e94b0054480c9b2613bbb28 | 1,386 | exs | Elixir | mix.exs | 8thlight/ex_state | eb1beb4fe5db271232cb24c6f54668e4f5307c92 | [
"MIT"
] | 99 | 2020-05-17T16:46:22.000Z | 2022-01-14T21:50:18.000Z | mix.exs | 8thlight/ex_state | eb1beb4fe5db271232cb24c6f54668e4f5307c92 | [
"MIT"
] | 2 | 2020-05-26T18:54:50.000Z | 2020-05-27T16:14:27.000Z | mix.exs | 8thlight/ex_state | eb1beb4fe5db271232cb24c6f54668e4f5307c92 | [
"MIT"
] | 2 | 2021-12-16T10:52:03.000Z | 2021-12-22T12:57:30.000Z | defmodule ExState.MixProject do
use Mix.Project
def project do
[
app: :ex_state,
version: "0.3.0",
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
... | 23.1 | 72 | 0.546898 |
33f34fad8c623689de78a0f8422f054313fd3c40 | 609 | ex | Elixir | Microsoft.Azure.Management.Storage/lib/microsoft/azure/management/storage/model/legal_hold.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.Storage/lib/microsoft/azure/management/storage/model/legal_hold.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Storage/lib/microsoft/azure/management/storage/model/legal_hold.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.Storage.Model.LegalHold do
@moduledoc """
The LegalHold property of a blob container.
"""
@derive [Poison.Enco... | 21.75 | 82 | 0.696223 |
33f37ef8a0708038f10c51ddfc3cf21fa3e95c66 | 1,918 | ex | Elixir | lib/hexpm/web/controllers/login_controller.ex | lau/hexpm | beee80f5358a356530debfea35ee65c3a0aa9b25 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/web/controllers/login_controller.ex | lau/hexpm | beee80f5358a356530debfea35ee65c3a0aa9b25 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/web/controllers/login_controller.ex | lau/hexpm | beee80f5358a356530debfea35ee65c3a0aa9b25 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Web.LoginController do
use Hexpm.Web, :controller
plug :nillify_params, ["return"]
def show(conn, _params) do
if logged_in?(conn) do
redirect_return(conn, conn.assigns.current_user)
else
render_show(conn)
end
end
def create(conn, %{"username" => username, "password" ... | 25.918919 | 85 | 0.611053 |
33f38b80b7926dcd3977139110b6815e60624f7c | 2,363 | ex | Elixir | lib/visualixir_web/channels/trace_channel.ex | markhu53/visualixir | 80ce8b75fe33476fe7d17110ffc0271f71bc1f91 | [
"MIT"
] | 1,311 | 2015-11-08T02:21:41.000Z | 2022-03-25T17:32:57.000Z | lib/visualixir_web/channels/trace_channel.ex | markhu53/visualixir | 80ce8b75fe33476fe7d17110ffc0271f71bc1f91 | [
"MIT"
] | 30 | 2015-11-09T17:07:50.000Z | 2022-02-10T17:13:50.000Z | lib/visualixir_web/channels/trace_channel.ex | markhu53/visualixir | 80ce8b75fe33476fe7d17110ffc0271f71bc1f91 | [
"MIT"
] | 58 | 2015-11-08T16:50:00.000Z | 2022-03-30T13:03:18.000Z | defmodule VisualixirWeb.TraceChannel do
use Visualixir.Web, :channel
alias Visualixir.Tracer
alias VisualixirWeb.Endpoint
alias Phoenix.Socket
@channel "trace"
def join(@channel, %{}, socket) do
{:ok, nil, socket}
end
def handle_in("msg_trace", pid_str, socket) do
pid_str |> pid_from_binary()... | 23.166667 | 109 | 0.669065 |
33f3d08cb8ff0ed29bce9f6bf7d950749e273411 | 1,240 | exs | Elixir | apps/url_dispatcher/mix.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/url_dispatcher/mix.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/url_dispatcher/mix.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | defmodule UrlDispatcher.Mixfile do
use Mix.Project
def project do
[
app: :url_dispatcher,
version: "2.0.0-dev",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.8",
start_perman... | 24.8 | 59 | 0.545968 |
33f42427d74c3cf43e6b0ed2aebad30b299cc419 | 3,258 | ex | Elixir | clients/plus_domains/lib/google_api/plus_domains/v1/model/comment.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/plus_domains/lib/google_api/plus_domains/v1/model/comment.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/plus_domains/lib/google_api/plus_domains/v1/model/comment.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 41.769231 | 181 | 0.703806 |
33f43f15a5845d83fcfc17fb5a9e78fd87534a6d | 1,915 | ex | Elixir | clients/civic_info/lib/google_api/civic_info/v2/model/point_proto.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/civic_info/lib/google_api/civic_info/v2/model/point_proto.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/civic_info/lib/google_api/civic_info/v2/model/point_proto.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 ... | 34.196429 | 99 | 0.70705 |
33f47947519f5fae4acdd01a9dd6a02d62a320df | 129 | exs | Elixir | apps/day6/test/day6_test.exs | at7heb/aoc2021 | ab31881b40354e28da0feaf5309c9648def85e77 | [
"MIT"
] | null | null | null | apps/day6/test/day6_test.exs | at7heb/aoc2021 | ab31881b40354e28da0feaf5309c9648def85e77 | [
"MIT"
] | null | null | null | apps/day6/test/day6_test.exs | at7heb/aoc2021 | ab31881b40354e28da0feaf5309c9648def85e77 | [
"MIT"
] | null | null | null | defmodule Day6Test do
use ExUnit.Case
doctest Day6
test "greets the world" do
assert Day6.hello() == :world
end
end
| 14.333333 | 33 | 0.689922 |
33f48e1f9e10b308726af59894d7cf87bb766a8b | 5,699 | ex | Elixir | lib/challenge_gov/messages/message_context.ex | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | 9 | 2020-02-26T20:24:38.000Z | 2022-03-22T21:14:52.000Z | lib/challenge_gov/messages/message_context.ex | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | 15 | 2020-04-22T19:33:24.000Z | 2022-03-26T15:11:17.000Z | lib/challenge_gov/messages/message_context.ex | jennstein2017/Challenge_gov | e0820df8b124a32ff8b78cb827ae43551492988b | [
"CC0-1.0"
] | 4 | 2020-04-27T22:58:57.000Z | 2022-01-14T13:42:09.000Z | defmodule ChallengeGov.Messages.MessageContext do
@moduledoc """
MessageContext schema
-----------------------------
- Types of Message Contexts -
-----------------------------
Gives a description of each context type and the relevant params, permissions, and reply functionality
If a param is not listed ... | 30.805405 | 115 | 0.705738 |
33f49589ca34c1327a1a2d1ce88424aa4e65f837 | 1,036 | exs | Elixir | apps/fz_vpn/test/fz_vpn/cli/sandbox_test.exs | jasonboukheir/firezone | 79d610b94f67ae25c8ca26f391c0edf288f6aaa5 | [
"Apache-2.0"
] | 1,429 | 2021-07-31T21:25:46.000Z | 2022-03-31T16:31:33.000Z | apps/fz_vpn/test/fz_vpn/cli/sandbox_test.exs | jasonboukheir/firezone | 79d610b94f67ae25c8ca26f391c0edf288f6aaa5 | [
"Apache-2.0"
] | 132 | 2021-07-10T14:23:36.000Z | 2022-03-29T18:36:37.000Z | apps/fz_vpn/test/fz_vpn/cli/sandbox_test.exs | jasonboukheir/firezone | 79d610b94f67ae25c8ca26f391c0edf288f6aaa5 | [
"Apache-2.0"
] | 48 | 2021-09-14T02:48:38.000Z | 2022-03-24T18:18:50.000Z | defmodule FzVpn.CLI.SandboxTest do
use ExUnit.Case, async: true
import FzVpn.CLI
@expected_returned ""
test "setup" do
assert cli().setup() == @expected_returned
end
test "teardown" do
assert cli().teardown() == @expected_returned
end
test "genkey" do
{privkey, pubkey} = cli().genkey()
... | 20.313725 | 71 | 0.665058 |
33f4a3dd4bb2b9fb594016980f81c227fc67d9ab | 1,729 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/image.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/image.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/image.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... | 32.622642 | 113 | 0.70214 |
33f4bfc227a692d4a4cec43a0808e85e062bf613 | 2,147 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/operating_system.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/operating_system.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/operating_system.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... | 36.389831 | 176 | 0.699115 |
33f4c0134ddf9305179def2a6e9fe69965d1b469 | 7,887 | ex | Elixir | lib/elixir/lib/uri.ex | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | 1 | 2015-11-12T19:23:45.000Z | 2015-11-12T19:23:45.000Z | lib/elixir/lib/uri.ex | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/uri.ex | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | defmodule URI do
@moduledoc """
Utilities for working with and creating URIs.
"""
defrecord Info, [scheme: nil, path: nil, query: nil,
fragment: nil, authority: nil,
userinfo: nil, host: nil, port: nil]
import Bitwise
@ports [
{ "ftp", 21 },
{ "http", 80 },
... | 27.010274 | 92 | 0.591733 |
33f4e96a4ee939cc7a9500a2449a3e3944899f73 | 2,116 | ex | Elixir | cp/lib/cpsim/cp/commands/change_configuration.ex | azhi/cpsim | a10a3e068a8a319e66cc9cf8a6c9c97457d9bf8b | [
"MIT"
] | null | null | null | cp/lib/cpsim/cp/commands/change_configuration.ex | azhi/cpsim | a10a3e068a8a319e66cc9cf8a6c9c97457d9bf8b | [
"MIT"
] | null | null | null | cp/lib/cpsim/cp/commands/change_configuration.ex | azhi/cpsim | a10a3e068a8a319e66cc9cf8a6c9c97457d9bf8b | [
"MIT"
] | null | null | null | defmodule CPSIM.CP.Commands.ChangeConfiguration do
alias CPSIM.CP.Connection.Messages.{Call, CallResult, CallError}
alias CPSIM.CP.OCPPConfig
def handle_call(%Call{payload: %{"key" => key, "value" => value}} = call, state) do
with :ok <- check_type(:key, key),
:ok <- check_type(:value, value),
... | 31.117647 | 116 | 0.64225 |
33f544696272a5803e9a175332a2c55223792553 | 701 | ex | Elixir | lib/from_the_ashes_web/router.ex | hazen/from_the_ashes | 05b4468b6ce5ff0225ff2fed5e27d6055bf3d852 | [
"MIT"
] | null | null | null | lib/from_the_ashes_web/router.ex | hazen/from_the_ashes | 05b4468b6ce5ff0225ff2fed5e27d6055bf3d852 | [
"MIT"
] | 1 | 2021-03-09T22:08:11.000Z | 2021-03-09T22:08:11.000Z | lib/from_the_ashes_web/router.ex | hazen/from_the_ashes | 05b4468b6ce5ff0225ff2fed5e27d6055bf3d852 | [
"MIT"
] | null | null | null | defmodule FromTheAshesWeb.Router do
use FromTheAshesWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
# Other scopes may use c... | 21.90625 | 56 | 0.690442 |
33f55c061c6d324154ca6e7e842ee4bae7c45f71 | 774 | ex | Elixir | lib/push_ex/push/item_producer.ex | pushex-project/push.ex | a6d4b18face39dd84d01a887dce60db2d0001d37 | [
"MIT"
] | 78 | 2018-12-02T23:58:37.000Z | 2021-09-30T18:52:45.000Z | lib/push_ex/push/item_producer.ex | pushex-project/push.ex | a6d4b18face39dd84d01a887dce60db2d0001d37 | [
"MIT"
] | 23 | 2018-11-27T14:57:20.000Z | 2021-09-24T16:14:43.000Z | lib/push_ex/push/item_producer.ex | pushex-project/push.ex | a6d4b18face39dd84d01a887dce60db2d0001d37 | [
"MIT"
] | 3 | 2019-01-30T02:08:37.000Z | 2021-09-03T20:53:35.000Z | defmodule PushEx.Push.ItemProducer do
@moduledoc false
use GenStage
def start_link(:nameless) do
GenStage.start_link(__MODULE__, :ok)
end
def start_link(_) do
GenStage.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
{:producer, [], [buffer_size: PushEx.Config.producer_ma... | 22.114286 | 71 | 0.662791 |
33f574107834270523d2fa3a7529f064efd69bdf | 661 | ex | Elixir | blog_data_writer_server/lib/service/message_flow.ex | xawe/elixir_micro_blog | eee893238a9647708336901f3ead4629067d590f | [
"MIT"
] | null | null | null | blog_data_writer_server/lib/service/message_flow.ex | xawe/elixir_micro_blog | eee893238a9647708336901f3ead4629067d590f | [
"MIT"
] | null | null | null | blog_data_writer_server/lib/service/message_flow.ex | xawe/elixir_micro_blog | eee893238a9647708336901f3ead4629067d590f | [
"MIT"
] | null | null | null | defmodule Service.MessageFlow do
require Logger
def process_data(payload) do
{status, data} =
payload
|> Jason.decode()
|> build_message_map
|> App.DataContext.Post.create_post()
id = Map.get(data, :id)
Logger.info("Dados armazenados com sucesso :: id #{id}")
{status, data}... | 24.481481 | 70 | 0.644478 |
33f5b5ffb4934d9132e037ad59c5b3501941fc44 | 507 | ex | Elixir | lib/hn/helpers.ex | joshrotenberg/hn_ex | 885bdf96063b6dc1cce3cd44795f04e4cc201feb | [
"MIT"
] | null | null | null | lib/hn/helpers.ex | joshrotenberg/hn_ex | 885bdf96063b6dc1cce3cd44795f04e4cc201feb | [
"MIT"
] | null | null | null | lib/hn/helpers.ex | joshrotenberg/hn_ex | 885bdf96063b6dc1cce3cd44795f04e4cc201feb | [
"MIT"
] | 1 | 2020-10-18T03:22:17.000Z | 2020-10-18T03:22:17.000Z | defmodule HN.Helpers do
@moduledoc false
def fetch_stories(ids, limit \\ nil) do
case ids do
{:ok, ids} -> fetch_all(ids, &HN.item!/1, limit)
ids -> fetch_all(ids, &HN.item!/1, limit)
end
end
defp fetch_all(ids, func, limit) do
ids
|> take_or_all(limit)
|> Enum.map(&Task.async(... | 20.28 | 54 | 0.585799 |
33f5c52dc11af8f570421e2bfe5af16970247637 | 3,305 | ex | Elixir | lib/core/asset_workers/fbos_config_worker.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | lib/core/asset_workers/fbos_config_worker.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | lib/core/asset_workers/fbos_config_worker.ex | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | defimpl FarmbotOS.AssetWorker, for: FarmbotOS.Asset.FbosConfig do
@moduledoc """
This asset worker does not get restarted. It inistead responds to GenServer
calls.
"""
use GenServer
require Logger
require FarmbotOS.Logger
alias FarmbotOS.{Asset.FbosConfig, BotState}
@impl FarmbotOS.AssetWorker
def... | 25.423077 | 80 | 0.657791 |
33f5e4041af0ab1919f6d309edb01db6b33c89c7 | 1,613 | ex | Elixir | web/models/variant_option_value.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 356 | 2016-03-16T12:37:28.000Z | 2021-12-18T03:22:39.000Z | web/models/variant_option_value.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 30 | 2016-03-16T09:19:10.000Z | 2021-01-12T08:10:52.000Z | web/models/variant_option_value.ex | harry-gao/ex-cart | 573e7f977bb3b710d11618dd215d4ddd8f819fb3 | [
"Apache-2.0"
] | 72 | 2016-03-16T13:32:14.000Z | 2021-03-23T11:27:43.000Z | defmodule Nectar.VariantOptionValue do
use Nectar.Web, :model
schema "variant_option_values" do
field :option_type_id, :integer
belongs_to :variant, Nectar.Variant
belongs_to :option_value, Nectar.OptionValue
timestamps()
extensions()
end
@required_fields ~w(variant_id option_value_id)a
... | 29.87037 | 96 | 0.709237 |
33f5ed567014687a845e190b4638e9260b8017ab | 586 | exs | Elixir | exercises/practice/roman-numerals/mix.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 343 | 2017-06-22T16:28:28.000Z | 2022-03-25T21:33:32.000Z | exercises/practice/roman-numerals/mix.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 583 | 2017-06-19T10:48:40.000Z | 2022-03-28T21:43:12.000Z | exercises/practice/roman-numerals/mix.exs | devtayls/elixir | 67824de8209ff1b6ed2f736deedfb5bd815130ca | [
"MIT"
] | 228 | 2017-07-05T07:09:32.000Z | 2022-03-27T08:59:08.000Z | defmodule RomanNumerals.MixProject do
use Mix.Project
def project do
[
app: :roman_numerals,
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.206897 | 87 | 0.583618 |
33f5f67a853743c1505b9239d976fc891f388e6f | 1,412 | ex | Elixir | apps/crawler/lib/crawler/cache.ex | rizafahmi/community_wall | 3cc99942ce9f73d1f520f53075da44a1c5a3356b | [
"MIT"
] | 6 | 2019-12-24T11:18:32.000Z | 2020-02-15T10:24:14.000Z | apps/crawler/lib/crawler/cache.ex | rizafahmi/community_wall | 3cc99942ce9f73d1f520f53075da44a1c5a3356b | [
"MIT"
] | null | null | null | apps/crawler/lib/crawler/cache.ex | rizafahmi/community_wall | 3cc99942ce9f73d1f520f53075da44a1c5a3356b | [
"MIT"
] | 2 | 2020-02-28T16:21:17.000Z | 2020-08-17T19:55:09.000Z | defmodule Crawler.Cache do
use GenServer
def start_link(default) do
GenServer.start_link(__MODULE__, default, name: CrawlerCache)
end
def init(state) do
:ets.new(:content_cache, [:set, :public, :named_table])
schedule_work()
{:ok, state}
end
def delete(key) do
GenServer.cast(CrawlerCa... | 23.147541 | 88 | 0.645892 |
33f6196fd58712b68bfaa6cd5183ea8f78862ee2 | 11,251 | ex | Elixir | lib/google_apis/generator/elixir_generator.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | lib/google_apis/generator/elixir_generator.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | lib/google_apis/generator/elixir_generator.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 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 writing, ... | 28.701531 | 113 | 0.668829 |
33f62078e182c8c59e4e8701aa516f87ece25970 | 989 | exs | Elixir | config/test.exs | joerichsen/live_view_cookbook | a211e6bcfaa872df120f186b3d65e0672f410365 | [
"MIT"
] | null | null | null | config/test.exs | joerichsen/live_view_cookbook | a211e6bcfaa872df120f186b3d65e0672f410365 | [
"MIT"
] | 11 | 2021-12-19T09:07:30.000Z | 2022-01-01T17:54:43.000Z | config/test.exs | joerichsen/live_view_cookbook | a211e6bcfaa872df120f186b3d65e0672f410365 | [
"MIT"
] | null | null | null | import Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :cookbook, Cookbook.Repo,
username: "postgres",
password: "postgres",
hostname: "localhost",
database... | 31.903226 | 86 | 0.761375 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.