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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9e2f8713940e4556ef84509dd9ed5988e094455d | 2,562 | ex | Elixir | turtle_pose_phoenix/lib/turtle_pose_phoenix_web.ex | rclex/rclex_examples | 1ad49e9d917c015161992836ad8d4e8d028615da | [
"Apache-2.0"
] | null | null | null | turtle_pose_phoenix/lib/turtle_pose_phoenix_web.ex | rclex/rclex_examples | 1ad49e9d917c015161992836ad8d4e8d028615da | [
"Apache-2.0"
] | 4 | 2022-01-25T00:53:34.000Z | 2022-03-26T15:28:18.000Z | turtle_pose_phoenix/lib/turtle_pose_phoenix_web.ex | rclex/rclex_examples | 1ad49e9d917c015161992836ad8d4e8d028615da | [
"Apache-2.0"
] | null | null | null | defmodule TurtlePosePhoenixWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use TurtlePosePhoenixWeb, :controller
use TurtlePosePhoenixWeb, :view
The definitions below will be executed ... | 23.081081 | 81 | 0.693599 |
9e2f8bffc393f9ba76e52e6ada80144e9e2137f1 | 21,933 | ex | Elixir | kousa/lib/broth/socket_handler.ex | Semro/dogehouse | da6ee5296b9d0ae2a55413f3783e9b2f8bd025c9 | [
"MIT"
] | null | null | null | kousa/lib/broth/socket_handler.ex | Semro/dogehouse | da6ee5296b9d0ae2a55413f3783e9b2f8bd025c9 | [
"MIT"
] | null | null | null | kousa/lib/broth/socket_handler.ex | Semro/dogehouse | da6ee5296b9d0ae2a55413f3783e9b2f8bd025c9 | [
"MIT"
] | null | null | null | defmodule Broth.SocketHandler do
require Logger
alias Kousa.Utils.RegUtils
alias Beef.Users
alias Beef.Rooms
alias Beef.Follows
alias Ecto.UUID
alias Beef.RoomPermissions
# TODO: just collapse this into its parent module.
defmodule State do
@type t :: %__MODULE__{
awaiting_init: bool... | 26.78022 | 99 | 0.548306 |
9e2fa93a9294f5bf043c8686b8123b8330ce4870 | 1,466 | ex | Elixir | lib/epi_locator/accounts/user_token.ex | RatioPBC/epi-locator | 58c90500c4e0071ce365d76ec9812f9051d6a9f9 | [
"Apache-2.0"
] | null | null | null | lib/epi_locator/accounts/user_token.ex | RatioPBC/epi-locator | 58c90500c4e0071ce365d76ec9812f9051d6a9f9 | [
"Apache-2.0"
] | 6 | 2021-10-19T01:55:57.000Z | 2022-02-15T01:04:19.000Z | lib/epi_locator/accounts/user_token.ex | RatioPBC/epi-locator | 58c90500c4e0071ce365d76ec9812f9051d6a9f9 | [
"Apache-2.0"
] | 2 | 2022-01-21T08:38:50.000Z | 2022-01-21T08:42:04.000Z | defmodule EpiLocator.Accounts.UserToken do
@moduledoc """
Simple auth model that generates/stores session tokens.
"""
use Ecto.Schema
import Ecto.Query
@hash_algorithm :sha256
@rand_size_session_token 32
@session_validity_in_days 1
schema "users_tokens" do
field(:token, :binary)
field(:user... | 23.269841 | 75 | 0.718281 |
9e2fb242e62523183a865869c9a24a580e84d6be | 495 | ex | Elixir | app/lib/noodl/events/event_bans.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | 1 | 2021-01-20T20:00:50.000Z | 2021-01-20T20:00:50.000Z | app/lib/noodl/events/event_bans.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | app/lib/noodl/events/event_bans.ex | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | defmodule Noodl.Events.EventBan do
use Ecto.Schema
import Ecto.Changeset
alias Noodl.Accounts.User
alias Noodl.Events.Event
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "event_bans" do
belongs_to :user, User
belongs_to :event, Event
timestamps()
e... | 20.625 | 52 | 0.694949 |
9e2fb9db91f644e8c16f09936d32fd5828c97a7b | 19,895 | exs | Elixir | old/test/blue_jet_web/controllers/product_controller_test.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 44 | 2018-05-09T01:08:57.000Z | 2021-01-19T07:25:26.000Z | old/test/blue_jet_web/controllers/product_controller_test.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 36 | 2018-05-08T23:59:54.000Z | 2018-09-28T13:50:30.000Z | old/test/blue_jet_web/controllers/product_controller_test.exs | freshcom/freshcom-api | 4f2083277943cf4e4e8fd4c4d443c7309f285ad7 | [
"BSD-3-Clause"
] | 9 | 2018-05-09T14:09:19.000Z | 2021-03-21T21:04:04.000Z | defmodule BlueJetWeb.ProductControllerTest do
use BlueJetWeb.ConnCase
alias BlueJet.Identity.User
alias BlueJet.Storefront.Product
alias BlueJet.FileStorage.File
alias BlueJet.FileStorage.FileCollection
alias BlueJet.Repo
@valid_attrs %{
"status" => "active",
"name" => "Apple",
"customData"... | 32.140549 | 136 | 0.558231 |
9e2fbf03a28607014629c0a87e03aa78c3e66105 | 13,576 | ex | Elixir | lib/mix/lib/mix/tasks/xref.ex | evalphobia/elixir | a07a2362e5827b09d8b27be2c1ad2980d25b9768 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/xref.ex | evalphobia/elixir | a07a2362e5827b09d8b27be2c1ad2980d25b9768 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/xref.ex | evalphobia/elixir | a07a2362e5827b09d8b27be2c1ad2980d25b9768 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Xref do
use Mix.Task
alias Mix.Tasks.Compile.Elixir, as: E
import Mix.Compilers.Elixir, only: [read_manifest: 2, source: 1, source: 2, module: 1]
@shortdoc "Performs cross reference checks"
@recursive true
@moduledoc """
Performs cross reference checks between modules.
## Xref mo... | 28.701903 | 108 | 0.632587 |
9e2fbff373380d397b15c1e3813adf08c680a1e6 | 7,332 | ex | Elixir | lib/webbkoll_web/controllers/site_controller.ex | vaginessa/webbkoll | 9a0be0cdc2eaeac9e577589b35a63a81f68655d7 | [
"MIT"
] | null | null | null | lib/webbkoll_web/controllers/site_controller.ex | vaginessa/webbkoll | 9a0be0cdc2eaeac9e577589b35a63a81f68655d7 | [
"MIT"
] | null | null | null | lib/webbkoll_web/controllers/site_controller.ex | vaginessa/webbkoll | 9a0be0cdc2eaeac9e577589b35a63a81f68655d7 | [
"MIT"
] | null | null | null | defmodule WebbkollWeb.SiteController do
use WebbkollWeb, :controller
alias WebbkollWeb.Site
@backends Application.get_env(:webbkoll, :backends)
@rate_limit_client Application.get_env(:webbkoll, :rate_limit_client)
@rate_limit_host Application.get_env(:webbkoll, :rate_limit_host)
@validate_urls Application.... | 27.984733 | 130 | 0.62575 |
9e2fc656d62f43bd124e8a78ee5760ef4120fd33 | 1,147 | exs | Elixir | mix.exs | schutm/enum_type | e97d937697886adb6046b5bd3502b6212f57bf9f | [
"Apache-2.0"
] | 10 | 2019-11-25T13:28:54.000Z | 2022-02-01T20:17:13.000Z | mix.exs | schutm/enum_type | e97d937697886adb6046b5bd3502b6212f57bf9f | [
"Apache-2.0"
] | 11 | 2019-03-08T01:44:39.000Z | 2022-02-17T16:29:10.000Z | mix.exs | schutm/enum_type | e97d937697886adb6046b5bd3502b6212f57bf9f | [
"Apache-2.0"
] | 9 | 2019-03-22T17:08:01.000Z | 2021-12-08T16:25:07.000Z | defmodule EnumType.MixProject do
use Mix.Project
@version "1.1.3"
def project do
[
app: :enum_type,
version: @version,
elixir: "~> 1.5",
start_permanent: Mix.env() == :prod,
deps: deps(),
description:
"An Elixir friendly Enum module generator that can be used by i... | 24.404255 | 92 | 0.562337 |
9e2fe5440fde97e1aefcc8db8c9c267f3b3d1fdb | 2,196 | ex | Elixir | clients/people/lib/google_api/people/v1/model/url.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/model/url.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/model/url.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.294118 | 136 | 0.673497 |
9e2fe767c0e78db0e19d315f0240606f15294afb | 1,712 | exs | Elixir | integration_test/sql/sandbox.exs | victorsolis/ecto | 6c0dbf1ee2afd9b5bdf1f3feee8d361c8197c99a | [
"Apache-2.0"
] | null | null | null | integration_test/sql/sandbox.exs | victorsolis/ecto | 6c0dbf1ee2afd9b5bdf1f3feee8d361c8197c99a | [
"Apache-2.0"
] | null | null | null | integration_test/sql/sandbox.exs | victorsolis/ecto | 6c0dbf1ee2afd9b5bdf1f3feee8d361c8197c99a | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Integration.SandboxTest do
use ExUnit.Case
alias Ecto.Adapters.SQL.Sandbox
alias Ecto.Integration.TestRepo
alias Ecto.Integration.Post
test "can use the repository when checked out" do
assert_raise RuntimeError, ~r"cannot find ownership process", fn ->
TestRepo.all(Post)
end
... | 27.612903 | 71 | 0.692173 |
9e302f2cf22461317b68beeb7d4a90b930afc9e6 | 1,148 | exs | Elixir | mix.exs | thekirinlab/bureaucrat | 5db4f283b111b08bfc09d6a14d733eca1d3fb8f5 | [
"Unlicense"
] | null | null | null | mix.exs | thekirinlab/bureaucrat | 5db4f283b111b08bfc09d6a14d733eca1d3fb8f5 | [
"Unlicense"
] | null | null | null | mix.exs | thekirinlab/bureaucrat | 5db4f283b111b08bfc09d6a14d733eca1d3fb8f5 | [
"Unlicense"
] | null | null | null | defmodule Bureaucrat.Mixfile do
use Mix.Project
def project do
[
app: :bureaucrat,
version: "0.2.9",
elixir: "~> 1.10",
description: "Generate Phoenix API documentation from tests",
deps: deps(),
package: package()
]
end
# Configuration for the OTP application
#
... | 22.509804 | 72 | 0.538328 |
9e304b4966ea42b7928d56d556ebdfaa2b243b60 | 554 | ex | Elixir | lib/hl7/2.2/segments/nk1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.2/segments/nk1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | lib/hl7/2.2/segments/nk1.ex | calvinb/elixir-hl7 | 5e953fa11f9184857c0ec4dda8662889f35a6bec | [
"Apache-2.0"
] | null | null | null | defmodule HL7.V2_2.Segments.NK1 do
@moduledoc false
require Logger
alias HL7.V2_2.{DataTypes}
use HL7.Segment,
fields: [
segment: nil,
set_id_next_of_kin: nil,
name: DataTypes.Pn,
relationship: DataTypes.Ce,
address: DataTypes.Ad,
phone_number: nil,
business_phone... | 22.16 | 39 | 0.658845 |
9e308582912a9d45334a1517e97ada748a07ca00 | 6,262 | exs | Elixir | test/groupher_server_web/mutation/cms/flags/guide_flag_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/mutation/cms/flags/guide_flag_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/mutation/cms/flags/guide_flag_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.Mutation.Flags.GuideFlag do
use GroupherServer.TestTools
alias GroupherServer.CMS
alias CMS.Model.Community
alias Helper.ORM
setup do
{:ok, user} = db_insert(:user)
{:ok, community} = db_insert(:community)
{:ok, guide} = CMS.create_article(community, :guide, mock_... | 34.98324 | 92 | 0.654104 |
9e30988383e4a8f5016b77b29d83a0bfb9912385 | 56 | ex | Elixir | lib/tnd/compendiums/skill.ex | tndrpg/tnd | a9a348ed7ce2f3d8f55046559f9551e2607f3236 | [
"0BSD"
] | null | null | null | lib/tnd/compendiums/skill.ex | tndrpg/tnd | a9a348ed7ce2f3d8f55046559f9551e2607f3236 | [
"0BSD"
] | 1 | 2021-05-11T14:31:58.000Z | 2021-05-11T14:31:58.000Z | lib/tnd/compendiums/skill.ex | tndrpg/tnd | a9a348ed7ce2f3d8f55046559f9551e2607f3236 | [
"0BSD"
] | null | null | null | defmodule Tnd.Compendiums.Skill do
use Tnd.Schema
end
| 14 | 34 | 0.803571 |
9e30a310953fc04c4efabfa416c0f967852e2050 | 656 | ex | Elixir | web/service_router.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 1,003 | 2016-02-23T17:21:12.000Z | 2022-02-20T14:39:35.000Z | web/service_router.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 906 | 2016-02-22T22:54:19.000Z | 2022-03-11T15:19:43.000Z | web/service_router.ex | matusf/cog | 71708301c7dc570fb0d3498a50f47a70ef957788 | [
"Apache-2.0"
] | 95 | 2016-02-23T13:42:31.000Z | 2021-11-30T14:39:55.000Z | defmodule Cog.ServiceRouter do
use Cog.Web, :router
pipeline :service do
plug Cog.Plug.Event
plug :accepts, ["json"]
end
scope "/v1/services", Cog do
pipe_through :service
get "/meta", V1.ServiceController, :index
get "/meta/deployed/:name", V1.ServiceController, :show
get "/memory/1... | 28.521739 | 76 | 0.693598 |
9e30a7ebc624b4197dd86ed7cad73bbbb1177482 | 512 | exs | Elixir | config/test.exs | DEvil0000/strichliste_elixir | 33efe808ced1dd3e3650212a506e8c3322277b2b | [
"MIT"
] | null | null | null | config/test.exs | DEvil0000/strichliste_elixir | 33efe808ced1dd3e3650212a506e8c3322277b2b | [
"MIT"
] | null | null | null | config/test.exs | DEvil0000/strichliste_elixir | 33efe808ced1dd3e3650212a506e8c3322277b2b | [
"MIT"
] | 1 | 2019-05-24T18:18:24.000Z | 2019-05-24T18:18:24.000Z | use Mix.Config
# Configure your database
config :strichliste_elixir, StrichlisteElixir.Repo,
username: "postgres",
password: "postgres",
database: "strichliste_elixir_test",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox
# We don't run a server during test. If one is required,
# you can enable the s... | 26.947368 | 58 | 0.759766 |
9e30bc6678cff96097fdaffffa9aedb07e65b1f4 | 1,271 | exs | Elixir | test/pay_nl/transaction_options_test.exs | smeevil/pay_nl | 8b62ed5c01405aba432e56e8c2b6c5774da1470a | [
"WTFPL"
] | 3 | 2017-10-03T12:30:57.000Z | 2020-01-06T00:23:59.000Z | test/pay_nl/transaction_options_test.exs | smeevil/pay_nl | 8b62ed5c01405aba432e56e8c2b6c5774da1470a | [
"WTFPL"
] | null | null | null | test/pay_nl/transaction_options_test.exs | smeevil/pay_nl | 8b62ed5c01405aba432e56e8c2b6c5774da1470a | [
"WTFPL"
] | 1 | 2019-02-11T11:12:17.000Z | 2019-02-11T11:12:17.000Z | defmodule PayNL.TransactionOptionsTest do
use ExUnit.Case, async: false
doctest PayNL
@valid_params [
remote_ip: "127.0.0.1",
amount_in_cents: 100,
return_url: "https://example.com/return",
notification_url: "https://example.com/ipn",
service_id: "123",
api_token: "abc"
]
test "creat... | 32.589744 | 94 | 0.598741 |
9e30d0180d62bc0da91139e624eb091af085a0a4 | 1,599 | exs | Elixir | test/harald/host/att/error_rsp_test.exs | RicardoTrindade/harald | 3f56003265c29af0780730eb538183b50e55df2f | [
"MIT"
] | 59 | 2019-02-16T00:09:58.000Z | 2020-03-29T23:37:36.000Z | test/harald/host/att/error_rsp_test.exs | RicardoTrindade/harald | 3f56003265c29af0780730eb538183b50e55df2f | [
"MIT"
] | 19 | 2019-02-15T22:41:43.000Z | 2020-02-15T19:20:57.000Z | test/harald/host/att/error_rsp_test.exs | RicardoTrindade/harald | 3f56003265c29af0780730eb538183b50e55df2f | [
"MIT"
] | 9 | 2020-05-07T00:02:36.000Z | 2021-09-17T18:17:46.000Z | defmodule Harald.Host.ATT.ErrorRspTest do
use ExUnit.Case, async: true
alias Harald.Host.ATT.{WriteReq, ErrorRsp, ErrorCodes}
test "encode/1" do
request_module_in_error = WriteReq
attribute_handle_in_error = 1
error_message = "Write Not Permitted"
parameters = %{
request_module_in_error: r... | 29.072727 | 82 | 0.722326 |
9e30d4c8168f2120941c8ab101d957ad81a52e01 | 61 | ex | Elixir | lib/rumbl/repo.ex | phensalves/rumbl | 4ecf962038774fa81c83f07b81f36266f86effaf | [
"MIT"
] | 1 | 2016-09-19T01:31:35.000Z | 2016-09-19T01:31:35.000Z | lib/rumbl/repo.ex | phensalves/rumbl | 4ecf962038774fa81c83f07b81f36266f86effaf | [
"MIT"
] | null | null | null | lib/rumbl/repo.ex | phensalves/rumbl | 4ecf962038774fa81c83f07b81f36266f86effaf | [
"MIT"
] | null | null | null | defmodule Rumbl.Repo do
use Ecto.Repo, otp_app: :rumbl
end
| 15.25 | 32 | 0.754098 |
9e30db77137037eb9baf2451d1ccf30e62e5a4f7 | 720 | ex | Elixir | lib/squarestore_web/gettext.ex | NinjaAnge/forksquare | ee9ea91e45e50b9f1ba4a8261ebdd99b7fe3333d | [
"MIT"
] | null | null | null | lib/squarestore_web/gettext.ex | NinjaAnge/forksquare | ee9ea91e45e50b9f1ba4a8261ebdd99b7fe3333d | [
"MIT"
] | null | null | null | lib/squarestore_web/gettext.ex | NinjaAnge/forksquare | ee9ea91e45e50b9f1ba4a8261ebdd99b7fe3333d | [
"MIT"
] | null | null | null | defmodule SquarestoreWeb.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 SquarestoreWeb.Gettext
# Simple translation
gettext "H... | 28.8 | 72 | 0.686111 |
9e30dcfb900e70378ad097eec8fd0ce3db0abe07 | 79 | exs | Elixir | config/config.exs | wayann/raxx | 4a192c9b5a9a483e93e2194f5039b9fa9ff92cc8 | [
"Apache-2.0"
] | null | null | null | config/config.exs | wayann/raxx | 4a192c9b5a9a483e93e2194f5039b9fa9ff92cc8 | [
"Apache-2.0"
] | null | null | null | config/config.exs | wayann/raxx | 4a192c9b5a9a483e93e2194f5039b9fa9ff92cc8 | [
"Apache-2.0"
] | 1 | 2021-01-12T09:57:58.000Z | 2021-01-12T09:57:58.000Z | use Mix.Config
config :raxx, :extra_statuses, [{422, "Unprocessable Entity"}]
| 19.75 | 62 | 0.734177 |
9e30dd0c46dc80821cf3b1bc8e274850d63f9b5e | 373 | exs | Elixir | test/async_server_test.exs | fhunleth/elixirport | 754634e3115cef04cd6a9dad8557cabedb2e0530 | [
"MIT"
] | null | null | null | test/async_server_test.exs | fhunleth/elixirport | 754634e3115cef04cd6a9dad8557cabedb2e0530 | [
"MIT"
] | null | null | null | test/async_server_test.exs | fhunleth/elixirport | 754634e3115cef04cd6a9dad8557cabedb2e0530 | [
"MIT"
] | null | null | null | defmodule AsyncServerTest do
use ExUnit.Case
setup do
{:ok, pid} = AsyncServer.start_link(:anything)
on_exit(fn() -> AsyncServer.stop(pid) end)
{:ok, server: pid}
end
test "ping/pong test", %{server: pid} do
assert :pong == AsyncServer.ping(pid)
end
test "add numbers", %{server: pid} do
... | 20.722222 | 50 | 0.640751 |
9e3102c0cb558869c58ed65e3d0a29e186192211 | 2,981 | ex | Elixir | clients/dataproc/lib/google_api/dataproc/v1/model/virtual_cluster_config.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/virtual_cluster_config.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/dataproc/lib/google_api/dataproc/v1/model/virtual_cluster_config.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 54.2 | 677 | 0.758806 |
9e31131f2f922fa138e52bbe65e96a3724ba256b | 2,735 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/batch_update_values_by_data_filter_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/sheets/lib/google_api/sheets/v4/model/batch_update_values_by_data_filter_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/batch_update_values_by_data_filter_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 ... | 42.734375 | 153 | 0.723949 |
9e3129ff88a4a92523428ca6b2bddd8670a18766 | 3,472 | ex | Elixir | lib/exnoops/fizzbot.ex | bfcarpio/exNoops-mirror | e9a08e8cfdc47da9ab3fef1cdd3bb1fd021b1cc5 | [
"MIT"
] | null | null | null | lib/exnoops/fizzbot.ex | bfcarpio/exNoops-mirror | e9a08e8cfdc47da9ab3fef1cdd3bb1fd021b1cc5 | [
"MIT"
] | null | null | null | lib/exnoops/fizzbot.ex | bfcarpio/exNoops-mirror | e9a08e8cfdc47da9ab3fef1cdd3bb1fd021b1cc5 | [
"MIT"
] | null | null | null | defmodule Exnoops.Fizzbot do
@moduledoc """
Module to interact with Github's Noop: Fizzbot
See the [official `noop` documentation](https://noopschallenge.com/challenges/fizzbot) for API information
"""
require Logger
import Exnoops.API
@noop "fizzbot"
@doc ~S"""
Query Fizzbot for a question
If ... | 39.908046 | 483 | 0.618664 |
9e313ffacee6acffc40156c735b9eccd054459b0 | 6,416 | ex | Elixir | lib/vintage_net_mobile/ex_chat.ex | jfcloutier/vintage_net_mobile | 55f4ebfcd2d5bd9da7759ab112325c3a261a0d12 | [
"Apache-2.0"
] | 2 | 2020-02-11T15:15:25.000Z | 2020-02-11T15:15:27.000Z | lib/vintage_net_mobile/ex_chat.ex | jfcloutier/vintage_net_mobile | 55f4ebfcd2d5bd9da7759ab112325c3a261a0d12 | [
"Apache-2.0"
] | 8 | 2020-01-28T21:02:56.000Z | 2020-02-24T16:13:38.000Z | lib/vintage_net_mobile/ex_chat.ex | jfcloutier/vintage_net_mobile | 55f4ebfcd2d5bd9da7759ab112325c3a261a0d12 | [
"Apache-2.0"
] | 1 | 2020-02-08T20:46:27.000Z | 2020-02-08T20:46:27.000Z | defmodule VintageNetMobile.ExChat do
@moduledoc """
Send commands to your modem and get notifications
This module is used by the "monitor" modules for reporting modem and
connection status.
It can be handy to debug modems too. If you'd like to send commands and
receive notifications from the IEx prompt, h... | 29.296804 | 98 | 0.668797 |
9e314803880f4283d1352d6bda6a7bb1bc9d024e | 2,217 | ex | Elixir | src/server/lib/api/websocket.ex | pedromykul/csb-wonhu1 | 5fe81fbc99d2b9859fbdb3c87c23e788264c0b9c | [
"MIT"
] | null | null | null | src/server/lib/api/websocket.ex | pedromykul/csb-wonhu1 | 5fe81fbc99d2b9859fbdb3c87c23e788264c0b9c | [
"MIT"
] | null | null | null | src/server/lib/api/websocket.ex | pedromykul/csb-wonhu1 | 5fe81fbc99d2b9859fbdb3c87c23e788264c0b9c | [
"MIT"
] | null | null | null | defmodule Api.Websocket do
@behaviour :cowboy_websocket
require Logger
def init(request, _state) do
parts = String.split(request.path, "/")
game_uuid = Enum.at(parts, 2)
user_uuid = Enum.at(parts, 3)
{:cowboy_websocket, request, {game_uuid, user_uuid}}
end
def websocket_init({game_uuid, us... | 28.423077 | 85 | 0.609382 |
9e3151843721ad7ec721035525f989fef8151e23 | 1,392 | ex | Elixir | skippy/bat/lib/sensor.ex | mashbytes/baby_zoo | 4554890242a2493d17d9b1c1f4cc90d7ad1e637e | [
"MIT"
] | null | null | null | skippy/bat/lib/sensor.ex | mashbytes/baby_zoo | 4554890242a2493d17d9b1c1f4cc90d7ad1e637e | [
"MIT"
] | 5 | 2020-07-17T23:35:42.000Z | 2021-05-10T07:00:10.000Z | skippy/bat/lib/sensor.ex | mashbytes/baby_zoo | 4554890242a2493d17d9b1c1f4cc90d7ad1e637e | [
"MIT"
] | null | null | null | defmodule Bat.Sensor do
use GenServer
require Logger
@input_pin Application.get_env(:skippy, :sound_input_pin, 4)
@timeout Application.get_env(:skippy, :sound_timout, 2000)
@name __MODULE__
def start_link(state) do
GenServer.start_link(@name, state, name: @name)
end
def init(_) do
Logge... | 29.617021 | 84 | 0.68319 |
9e315e0828ea7e29ca27b956a467da2fc193acb3 | 627 | exs | Elixir | mix.exs | wojtekmach/rebar3_ex_doc | 59b00b28acc17f22a887fa9274794f8ef7dcb7af | [
"Apache-2.0"
] | null | null | null | mix.exs | wojtekmach/rebar3_ex_doc | 59b00b28acc17f22a887fa9274794f8ef7dcb7af | [
"Apache-2.0"
] | null | null | null | mix.exs | wojtekmach/rebar3_ex_doc | 59b00b28acc17f22a887fa9274794f8ef7dcb7af | [
"Apache-2.0"
] | null | null | null | defmodule RebarHexDoc.MixProject do
use Mix.Project
def project do
[
app: :rebar_ex_doc,
version: "0.2.0",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps(),
escript: [main_module: ExDoc.CLI, name: "ex_doc", path: "priv/ex_doc"],
docs: [main: "readme... | 19.59375 | 77 | 0.575758 |
9e315ea576b9cca4dc3491d21514c08891ad2663 | 2,386 | ex | Elixir | clients/calendar/lib/google_api/calendar/v3/model/free_busy_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/calendar/lib/google_api/calendar/v3/model/free_busy_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/calendar/lib/google_api/calendar/v3/model/free_busy_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 ... | 39.114754 | 166 | 0.692372 |
9e3166dc6a0ae196c3bb7fe5d25f85a95bc6a981 | 6,012 | ex | Elixir | lib/nebulex/cache/entry.ex | amplifiedai/nebulex | fa788d9ae71ef0e4aba73f98953e98d8a7644a29 | [
"MIT"
] | 1 | 2021-03-01T16:14:07.000Z | 2021-03-01T16:14:07.000Z | lib/nebulex/cache/entry.ex | amplifiedai/nebulex | fa788d9ae71ef0e4aba73f98953e98d8a7644a29 | [
"MIT"
] | null | null | null | lib/nebulex/cache/entry.ex | amplifiedai/nebulex | fa788d9ae71ef0e4aba73f98953e98d8a7644a29 | [
"MIT"
] | null | null | null | defmodule Nebulex.Cache.Entry do
@moduledoc false
import Nebulex.Helpers
alias Nebulex.{Adapter, Time}
@doc """
Implementation for `c:Nebulex.Cache.get/2`.
"""
def get(name, key, opts) do
Adapter.with_meta(name, & &1.get(&2, key, opts))
end
@doc """
Implementation for `c:Nebulex.Cache.get!/2... | 23.857143 | 88 | 0.601464 |
9e316c15a6b694fab8b44689084a99e565503d63 | 1,021 | exs | Elixir | mix.exs | s-takada/elixir_github_issues_getter | 12332148c73a80f0c912e1883dc435fb761f112d | [
"MIT"
] | null | null | null | mix.exs | s-takada/elixir_github_issues_getter | 12332148c73a80f0c912e1883dc435fb761f112d | [
"MIT"
] | null | null | null | mix.exs | s-takada/elixir_github_issues_getter | 12332148c73a80f0c912e1883dc435fb761f112d | [
"MIT"
] | null | null | null | defmodule Issues.Mixfile do
use Mix.Project
def project do
[app: :issues,
escript: escript_config,
version: "0.1.0",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
name: "Issues",
source_... | 22.688889 | 77 | 0.5524 |
9e31b2ee1ce0e4b142014a12782ac45a529653ff | 2,968 | ex | Elixir | clients/surveys/lib/google_api/surveys/v2/model/survey_cost.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/surveys/lib/google_api/surveys/v2/model/survey_cost.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/surveys/lib/google_api/surveys/v2/model/survey_cost.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.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... | 57.076923 | 1,194 | 0.772911 |
9e31f29126e69606198bfc9adc3f3e53d1ed342b | 246 | exs | Elixir | apps/crm/priv/repo/migrations/20190821133523_create_contacts.exs | jdambron/phoenix_crm | 6d17280e3a6655990840f4714a338f58b7d0c756 | [
"MIT"
] | null | null | null | apps/crm/priv/repo/migrations/20190821133523_create_contacts.exs | jdambron/phoenix_crm | 6d17280e3a6655990840f4714a338f58b7d0c756 | [
"MIT"
] | 1 | 2020-04-06T07:42:36.000Z | 2020-04-06T07:42:36.000Z | apps/crm/priv/repo/migrations/20190821133523_create_contacts.exs | jdambron/phoenix_crm | 6d17280e3a6655990840f4714a338f58b7d0c756 | [
"MIT"
] | null | null | null | defmodule Crm.Repo.Migrations.CreateContacts do
use Ecto.Migration
def change do
create table("contacts") do
add :first_name, :string
add :last_name, :string
add :days_for_contact, :integer
timestamps()
end
end
end
| 18.923077 | 47 | 0.699187 |
9e31f77b07020c485742d01ef35fba691570b02a | 270 | exs | Elixir | test/mappers_web/views/layout_view_test.exs | evandiewald/mappers | 7359cfb39a4d9d26c42f5917ee04a7e41d3291bc | [
"Apache-2.0"
] | 32 | 2021-04-22T01:55:31.000Z | 2022-02-25T13:17:21.000Z | test/mappers_web/views/layout_view_test.exs | evandiewald/mappers | 7359cfb39a4d9d26c42f5917ee04a7e41d3291bc | [
"Apache-2.0"
] | 58 | 2021-06-04T18:42:59.000Z | 2022-03-31T07:17:01.000Z | test/mappers_web/views/layout_view_test.exs | evandiewald/mappers | 7359cfb39a4d9d26c42f5917ee04a7e41d3291bc | [
"Apache-2.0"
] | 13 | 2021-04-10T06:09:15.000Z | 2022-03-23T13:07:37.000Z | defmodule MappersWeb.LayoutViewTest do
use MappersWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 30 | 65 | 0.766667 |
9e32054251a931b11933c845f06caa4359928670 | 2,352 | exs | Elixir | test/lib/code_corps_web/controllers/password_reset_controller_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | test/lib/code_corps_web/controllers/password_reset_controller_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | test/lib/code_corps_web/controllers/password_reset_controller_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorpsWeb.PasswordResetControllerTest do
use CodeCorpsWeb.ApiCase, resource_name: :password_reset
import CodeCorps.TestEnvironmentHelper, only: [modify_env: 2]
alias CodeCorps.{AuthToken, User}
test "updates user password when data is valid and deletes auth token model", %{conn: conn} do
curre... | 46.117647 | 105 | 0.708759 |
9e321299654509e7ff14b42e2d3150e5d8f01f4c | 11,275 | exs | Elixir | test/teslamate/vehicles/vehicle/charging_test.exs | aishlai/teslamate | c736497d1972563c49e48f08f9c76dd08ce546e5 | [
"MIT"
] | 2,602 | 2019-07-24T23:19:12.000Z | 2022-03-31T15:03:48.000Z | test/teslamate/vehicles/vehicle/charging_test.exs | aishlai/teslamate | c736497d1972563c49e48f08f9c76dd08ce546e5 | [
"MIT"
] | 1,547 | 2019-07-26T22:02:09.000Z | 2022-03-31T15:39:41.000Z | test/teslamate/vehicles/vehicle/charging_test.exs | aishlai/teslamate | c736497d1972563c49e48f08f9c76dd08ce546e5 | [
"MIT"
] | 524 | 2019-07-26T17:31:33.000Z | 2022-03-29T15:16:36.000Z | defmodule TeslaMate.Vehicles.Vehicle.ChargingTest do
use TeslaMate.VehicleCase, async: true
alias TeslaMate.Vehicles.Vehicle.Summary
alias TeslaMate.Log.ChargingProcess
import ExUnit.CaptureLog
@log_opts format: "[$level] $message\n",
colors: [enabled: false]
test "logs a full charging cycle... | 40.851449 | 96 | 0.624922 |
9e3221494520c2f5c0ccf900ab5c4afbdd4b84c5 | 579 | ex | Elixir | lib/celery.ex | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 843 | 2016-10-05T23:46:05.000Z | 2022-03-14T04:31:55.000Z | lib/celery.ex | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 455 | 2016-10-15T08:49:16.000Z | 2022-03-15T12:23:04.000Z | lib/celery.ex | FarmBot/farmbot_os | 5ebdca3afd672eb6b0af5c71cfca02488b32569a | [
"MIT"
] | 261 | 2016-10-10T04:37:06.000Z | 2022-03-13T21:07:38.000Z | defmodule FarmbotCore.Celery do
@moduledoc """
Operations for Farmbot's internal scripting language.
"""
alias FarmbotCore.Celery.{AST, StepRunner, Scheduler}
require FarmbotCore.Logger
@doc "Schedule an AST to execute on a DateTime"
def schedule(%AST{} = ast, %DateTime{} = at, %{} = data) do
Schedu... | 26.318182 | 61 | 0.682211 |
9e3248a50e6809d61e169214cd8088153909d26f | 979 | ex | Elixir | lib/situation_room/sites.ex | mojotech/situation-room | d43b0e35376ec6fe1c2d69810b4eee8cb752f286 | [
"MIT"
] | 9 | 2015-10-04T11:47:19.000Z | 2019-12-09T16:02:23.000Z | lib/situation_room/sites.ex | mojotech/situation-room | d43b0e35376ec6fe1c2d69810b4eee8cb752f286 | [
"MIT"
] | 14 | 2015-07-28T04:41:57.000Z | 2022-03-31T18:12:51.000Z | lib/situation_room/sites.ex | mojotech/situation-room | d43b0e35376ec6fe1c2d69810b4eee8cb752f286 | [
"MIT"
] | 1 | 2017-07-26T03:17:02.000Z | 2017-07-26T03:17:02.000Z | defmodule SituationRoom.Sites do
@moduledoc """
Common repository methods for Sites
"""
alias SituationRoom.Repo
alias SituationRoom.Site
# Get a site from the database by one specific field
# param ex: (name: "mojotech") or (endpoint: "http://mojo.com")
def get_site(param) do
Repo.get_by(Site, pa... | 23.309524 | 66 | 0.663943 |
9e324e63d8061d38adadf31cb383b3db0317fdf0 | 814 | exs | Elixir | test/ex_ftx/wallet/air_drops_test.exs | RaghavSood/ex_ftx | 257ba35221abe4957836eb6e8312ecae0d9d51aa | [
"MIT"
] | 3 | 2021-09-27T17:19:41.000Z | 2022-03-16T09:28:13.000Z | test/ex_ftx/wallet/air_drops_test.exs | RaghavSood/ex_ftx | 257ba35221abe4957836eb6e8312ecae0d9d51aa | [
"MIT"
] | 3 | 2021-07-28T19:53:02.000Z | 2021-09-27T15:48:38.000Z | test/ex_ftx/wallet/air_drops_test.exs | RaghavSood/ex_ftx | 257ba35221abe4957836eb6e8312ecae0d9d51aa | [
"MIT"
] | 4 | 2021-08-01T11:25:58.000Z | 2021-10-11T22:15:44.000Z | defmodule ExFtx.Wallet.AirDropsTest do
use ExUnit.Case, async: false
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
doctest ExFtx.Wallet.AirDrops
setup_all do
HTTPoison.start()
:ok
end
@valid_credentials %ExFtx.Credentials{
api_key: System.get_env("FTX_API_KEY"),
api_secret: System.get_env... | 24.666667 | 78 | 0.69656 |
9e327fa972b26aa0f4012a30f46a2aebe7678d96 | 6,187 | exs | Elixir | test/sparql/query/result/tsv_decoder_test.exs | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | null | null | null | test/sparql/query/result/tsv_decoder_test.exs | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | null | null | null | test/sparql/query/result/tsv_decoder_test.exs | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | null | null | null | defmodule SPARQL.Query.Result.TSV.DecoderTest do
use ExUnit.Case
doctest SPARQL.Query.Result.TSV.Decoder
import RDF.Sigils
alias SPARQL.Query
describe "W3C tests" do
setup context do
{:ok,
result_string:
(context.test_case <> ".tsv")
|> SPARQL.W3C.TestSuite.file({"1.1... | 31.728205 | 104 | 0.419751 |
9e3285ac3db934f149990dac64517b19a148c851 | 564 | exs | Elixir | test/changelog_web/controllers/benefit_controller_test.exs | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | 1 | 2021-03-14T21:12:49.000Z | 2021-03-14T21:12:49.000Z | test/changelog_web/controllers/benefit_controller_test.exs | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | null | null | null | test/changelog_web/controllers/benefit_controller_test.exs | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | 1 | 2018-10-03T20:55:52.000Z | 2018-10-03T20:55:52.000Z | defmodule ChangelogWeb.BenefitControllerTest do
use ChangelogWeb.ConnCase
test "renders the benefits sans details", %{conn: conn} do
benefit = insert(:benefit, code: "ZOMG")
conn = get(conn, benefit_path(conn, :index))
assert conn.status == 200
refute conn.resp_body =~ benefit.code
end
@tag :a... | 29.684211 | 60 | 0.691489 |
9e32abe73f299a4721a755a3a0a8d069e8af35de | 383 | ex | Elixir | code examples/example-15-17.ex | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 8 | 2016-08-14T12:35:16.000Z | 2021-01-26T04:05:31.000Z | code examples/example-15-17.ex | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | null | null | null | code examples/example-15-17.ex | kujua/erlang-elixir-imperative-bookcompanion | 7bc9f033bacd0f8744ec6bcee3932794d594fe69 | [
"Apache-2.0"
] | 5 | 2016-08-18T22:12:19.000Z | 2020-02-17T18:52:41.000Z | iex(1)> s = %Stewtype{}
%Stewtype{ingredients: [], stewtype: :veg}
iex(2)> Stew.print(s)
"It's a vegetable stew"
iex(3)> sb = %{s|stewtype: :beef}
%Stewtype{ingredients: [], stewtype: :beef}
iex(4)> StewProtocol.what_is_it?(sb)
"It's a beef stew"
iex(5)> su = %{s|stewtype: :chicken}
%Stewtype{ingredients: [], stewtype:... | 29.461538 | 46 | 0.67624 |
9e32c0ae2655f49078a9b4c3b9cea0e9397227f9 | 1,829 | exs | Elixir | clients/recaptcha_enterprise/mix.exs | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/recaptcha_enterprise/mix.exs | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/recaptcha_enterprise/mix.exs | 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... | 27.298507 | 111 | 0.65883 |
9e32d58c565e92208d074a575da15f90264dfc61 | 1,978 | exs | Elixir | test/hexpm_web/controllers/version_controller_test.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 691 | 2017-03-08T09:15:45.000Z | 2022-03-23T22:04:47.000Z | test/hexpm_web/controllers/version_controller_test.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 491 | 2017-03-07T12:58:42.000Z | 2022-03-29T23:32:54.000Z | test/hexpm_web/controllers/version_controller_test.exs | Benjamin-Philip/hexpm | 6f38244f81bbabd234c660f46ea973849ba77a7f | [
"Apache-2.0"
] | 200 | 2017-03-12T23:03:39.000Z | 2022-03-05T17:55:52.000Z | defmodule HexpmWeb.VersionControllerTest do
use HexpmWeb.ConnCase, async: true
setup do
user1 = insert(:user)
repository1 = insert(:repository)
package1 = insert(:package)
package2 = insert(:package, repository_id: repository1.id)
insert(
:release,
package: package1,
versio... | 23.547619 | 83 | 0.602123 |
9e334545ffeda9183da7d025162ca42d702f92d8 | 1,559 | ex | Elixir | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/authorization_logging_options.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/authorization_logging_options.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/deployment_manager/lib/google_api/deployment_manager/v2/model/authorization_logging_options.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.170213 | 108 | 0.756895 |
9e33611b527bad74b6955008814f4ce139dc5742 | 69 | exs | Elixir | apps/artemis_notify/test/test_helper.exs | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis_notify/test/test_helper.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis_notify/test/test_helper.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Artemis.Repo, :manual)
| 23 | 53 | 0.782609 |
9e3376ae41d9316a5dca49ab605fcffa837898e2 | 916 | exs | Elixir | test/shippo/configuration_test.exs | christopherlai/shippo | 33d62242a5c3ad1d935888150d5cd630404d91f3 | [
"Unlicense",
"MIT"
] | null | null | null | test/shippo/configuration_test.exs | christopherlai/shippo | 33d62242a5c3ad1d935888150d5cd630404d91f3 | [
"Unlicense",
"MIT"
] | null | null | null | test/shippo/configuration_test.exs | christopherlai/shippo | 33d62242a5c3ad1d935888150d5cd630404d91f3 | [
"Unlicense",
"MIT"
] | null | null | null | defmodule Shippo.ConfigurationTest do
use ExUnit.Case, async: true
alias Shippo.ConfigHelpers
alias Shippo.Configuration
setup do
ConfigHelpers.put_envs(token: "token")
end
describe "new/0" do
test "returns a Configuration struct" do
assert %Configuration{
url: "https://api.go... | 26.941176 | 67 | 0.576419 |
9e33773e1a3c64e61a8aea75d3d0f13d8172f2eb | 1,791 | exs | Elixir | test/json_schema_test_suite_test.exs | imax-iva/nex_json_schema | 00838cd891937f938d731ddd733c64a29fb31c18 | [
"MIT"
] | null | null | null | test/json_schema_test_suite_test.exs | imax-iva/nex_json_schema | 00838cd891937f938d731ddd733c64a29fb31c18 | [
"MIT"
] | null | null | null | test/json_schema_test_suite_test.exs | imax-iva/nex_json_schema | 00838cd891937f938d731ddd733c64a29fb31c18 | [
"MIT"
] | null | null | null | defmodule NExJsonSchema.JsonSchemaTestSuiteTest.Helpers do
use ExUnit.Case, async: true
@schema_tests_path "test/JSON-Schema-Test-Suite/tests/draft4/"
def schema_tests_path do
@schema_tests_path
end
def schema_test_path(filename) do
Path.join(schema_tests_path(), filename)
end
def load_schema_... | 26.338235 | 105 | 0.591848 |
9e33acde122578e4dfb30ec0a641b12ade9f351e | 25,320 | ex | Elixir | lib/iex/lib/iex.ex | jfornoff/elixir | 4ed5e8e66973ae7b0e52ead00f65117ab0d600e0 | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex.ex | jfornoff/elixir | 4ed5e8e66973ae7b0e52ead00f65117ab0d600e0 | [
"Apache-2.0"
] | null | null | null | lib/iex/lib/iex.ex | jfornoff/elixir | 4ed5e8e66973ae7b0e52ead00f65117ab0d600e0 | [
"Apache-2.0"
] | 1 | 2021-09-30T01:21:02.000Z | 2021-09-30T01:21:02.000Z | defmodule IEx do
@moduledoc ~S"""
Elixir's interactive shell.
Some of the functionalities described here will not be available
depending on your terminal. In particular, if you get a message
saying that the smart terminal could not be run, some of the
features described here won't work.
## Helpers
IE... | 31.689612 | 105 | 0.684123 |
9e33ddb245324a3f38751d242cdb2ffe63f3cc88 | 1,599 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_conditions.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_conditions.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_conditions.ex | hauptbenutzer/elixir-google-api | 7b9e3a114a49cfc774a7afd03e299a0d43e4e6b2 | [
"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... | 33.3125 | 89 | 0.757348 |
9e33efcab864c5822f8e806b290afc67dea6f872 | 476 | ex | Elixir | lib/docusign/model/brand_request.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 4 | 2020-12-21T12:50:13.000Z | 2022-01-12T16:50:43.000Z | lib/docusign/model/brand_request.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 12 | 2018-09-18T15:26:34.000Z | 2019-09-28T15:29:39.000Z | lib/docusign/model/brand_request.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 15 | 2020-04-29T21:50:16.000Z | 2022-02-11T18:01:51.000Z | # 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 DocuSign.Model.BrandRequest do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:brandId
]
@type t :: %__MODULE__{
... | 19.04 | 75 | 0.678571 |
9e33f5d1fd10f5426f5d3e659157b62e7e3dbbef | 2,734 | ex | Elixir | lib/ex_slp/server.ex | 4pcbr/ex_slp_tk | 91a9f435cdc62224219409b9560a031d5ff4bb39 | [
"MIT"
] | 2 | 2016-03-01T22:16:18.000Z | 2016-04-14T23:10:01.000Z | lib/ex_slp/server.ex | 4pcbr/ex_slp_tk | 91a9f435cdc62224219409b9560a031d5ff4bb39 | [
"MIT"
] | null | null | null | lib/ex_slp/server.ex | 4pcbr/ex_slp_tk | 91a9f435cdc62224219409b9560a031d5ff4bb39 | [
"MIT"
] | null | null | null | defmodule ExSlp.Server do
alias ExSlp.Tool
import ExSlp.Util, only: [ format_servise_url: 1, format_args: 1, format_opts: 1 ]
@slpd "slpd"
@doc """
Checks the status of slpd daemon.
Returns:
{ :ok, pid } # in case of success,
{ :not_running, message } # otherwise.
"""
def status do
ca... | 34.175 | 91 | 0.631675 |
9e340f81aa9fd304a07feba22e6eacde32c1c8da | 642 | exs | Elixir | test/brando/i18n_test.exs | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 4 | 2020-10-30T08:40:38.000Z | 2022-01-07T22:21:37.000Z | test/brando/i18n_test.exs | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | 1,162 | 2020-07-05T11:20:15.000Z | 2022-03-31T06:01:49.000Z | test/brando/i18n_test.exs | brandocms/brando | 4198e0c0920031bd909969055064e4e2b7230d21 | [
"MIT"
] | null | null | null | defmodule Brando.I18nTest do
use ExUnit.Case, async: true
alias Brando.I18n
test "get_language" do
mock_conn = %{assigns: %{}}
assert I18n.get_language(mock_conn) == Brando.config(:default_admin_language)
mock_conn = %{assigns: %{language: "en"}}
assert I18n.get_language(mock_conn) == "en"
end
... | 32.1 | 81 | 0.610592 |
9e3417e9154aea5468b1c4f62f4ad4896c0a6202 | 1,115 | exs | Elixir | mix.exs | IanLuites/tidy | 8427986dd0261139a8e25a6fb6f9a938608500c6 | [
"MIT"
] | null | null | null | mix.exs | IanLuites/tidy | 8427986dd0261139a8e25a6fb6f9a938608500c6 | [
"MIT"
] | 1 | 2020-09-02T10:03:53.000Z | 2020-09-02T10:03:53.000Z | mix.exs | IanLuites/tidy | 8427986dd0261139a8e25a6fb6f9a938608500c6 | [
"MIT"
] | 1 | 2020-09-01T16:20:38.000Z | 2020-09-01T16:20:38.000Z | defmodule Tidy.MixProject do
use Mix.Project
@version "0.1.4"
def project do
[
app: :tidy,
version: @version,
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
description: "Checks documentation and specs of Elixir modules.",
... | 19.910714 | 71 | 0.550673 |
9e3421a2c5c03b2d31367b2d48d95243d91b4c6c | 2,451 | ex | Elixir | lib/nerves_rt_perf/base/all.ex | takasehideki/nerves_rt_perf | 2d189b24d02432632c5e4ec65fbb7421ac0b629e | [
"Apache-2.0"
] | 1 | 2020-10-18T03:21:47.000Z | 2020-10-18T03:21:47.000Z | lib/nerves_rt_perf/base/all.ex | takasehideki/nerves_rt_perf | 2d189b24d02432632c5e4ec65fbb7421ac0b629e | [
"Apache-2.0"
] | 1 | 2022-02-09T07:36:27.000Z | 2022-02-09T07:36:27.000Z | lib/nerves_rt_perf/base/all.ex | takasehideki/nerves_rt_perf | 2d189b24d02432632c5e4ec65fbb7421ac0b629e | [
"Apache-2.0"
] | null | null | null | defmodule NervesRtPerf.Base.All do
# macro setting for const value (defined by NervesRtPerf)
require NervesRtPerf
@eval_loop_num NervesRtPerf.eval_loop_num()
@sum_num NervesRtPerf.sum_num()
@fib_num NervesRtPerf.fib_num()
@sleep_interval NervesRtPerf.sleep_interval()
# obtain target name
@target System... | 29.178571 | 97 | 0.600571 |
9e3423b353320d747e92aabb100f0ad024bd1770 | 759 | ex | Elixir | apps/elixir_ls_debugger/test/fixtures/mix_project/lib/mix_project.ex | bottlenecked/elixir-ls | 99ab6e98ff181aae01ca3d119dee0ea9c49c727a | [
"Apache-2.0"
] | null | null | null | apps/elixir_ls_debugger/test/fixtures/mix_project/lib/mix_project.ex | bottlenecked/elixir-ls | 99ab6e98ff181aae01ca3d119dee0ea9c49c727a | [
"Apache-2.0"
] | null | null | null | apps/elixir_ls_debugger/test/fixtures/mix_project/lib/mix_project.ex | bottlenecked/elixir-ls | 99ab6e98ff181aae01ca3d119dee0ea9c49c727a | [
"Apache-2.0"
] | null | null | null | defmodule MixProject do
def quadruple(x) do
double(double(x))
end
def double(y) do
2 * y
end
def exit do
Task.start(fn ->
Task.start_link(fn ->
Process.sleep(1000)
raise "Fixture MixProject expected error"
end)
Process.sleep(:infinity)
end)
Process.sle... | 16.148936 | 71 | 0.635046 |
9e34335c9a976b8a7b41a5418a757dae5748a69e | 812 | ex | Elixir | lib/verk/stats.ex | coop/verk | cae9bea1426d5b340b3041b29453f17c709d70a8 | [
"MIT"
] | null | null | null | lib/verk/stats.ex | coop/verk | cae9bea1426d5b340b3041b29453f17c709d70a8 | [
"MIT"
] | null | null | null | lib/verk/stats.ex | coop/verk | cae9bea1426d5b340b3041b29453f17c709d70a8 | [
"MIT"
] | 1 | 2018-12-04T03:50:36.000Z | 2018-12-04T03:50:36.000Z | defmodule Verk.Stats do
@moduledoc """
Basic stats for Verk
"""
@doc """
Total amount of processed and failed jobs
"""
@spec total(GenServer.server) :: Map.t
def total(redis \\ Verk.Redis) do
[processed, failed] = Redix.command!(redis, ~w(MGET stat:processed stat:failed))
%{processed: to_int(pr... | 30.074074 | 102 | 0.684729 |
9e34410cc1423814d4dabb43fd191ec712d61e89 | 1,235 | ex | Elixir | web/views/error_helpers.ex | whenther/chopsticks | ec8d9f90cb4e9afc9e80322c734d9c6bfe5e14e1 | [
"MIT"
] | 2 | 2016-11-08T18:17:41.000Z | 2017-02-23T06:51:56.000Z | web/views/error_helpers.ex | will-wow/chopsticks | ec8d9f90cb4e9afc9e80322c734d9c6bfe5e14e1 | [
"MIT"
] | null | null | null | web/views/error_helpers.ex | will-wow/chopsticks | ec8d9f90cb4e9afc9e80322c734d9c6bfe5e14e1 | [
"MIT"
] | null | null | null | defmodule Chopsticks.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
if error = form.errors[field] do
content_tag :span, translate_error(error... | 30.121951 | 76 | 0.669636 |
9e347b3e1d006dc48cc3d9af569b21f22262779a | 1,863 | ex | Elixir | lib/grizzly/command_class/network_management_basic/default_set.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/command_class/network_management_basic/default_set.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | lib/grizzly/command_class/network_management_basic/default_set.ex | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.CommandClass.NetworkManagementBasic.DefaultSet do
@moduledoc """
Command module for working with the NetworkManagementBasic command class DEFAULT_SET command
Command Options:
* `:seq_number` - the sequence number used for the Z/IP packet
* `:retries` - the number of attempts to sen... | 28.661538 | 100 | 0.641975 |
9e34c3592c3e33c9fd23cbd362e6bb776bfbb6bf | 1,296 | exs | Elixir | mix.exs | axelson/live_attribute | 5935e58c922bbbc2961f2e574bd43668174685ef | [
"MIT"
] | null | null | null | mix.exs | axelson/live_attribute | 5935e58c922bbbc2961f2e574bd43668174685ef | [
"MIT"
] | null | null | null | mix.exs | axelson/live_attribute | 5935e58c922bbbc2961f2e574bd43668174685ef | [
"MIT"
] | null | null | null | defmodule LiveAttribute.MixProject do
use Mix.Project
@version "1.0.0"
@name "LiveAttribute"
@url "https://github.com/dominicletz/live_attribute"
@maintainers ["Dominic Letz"]
def project do
[
app: :live_attribute,
version: @version,
name: @name,
elixir: "~> 1.11",
start_... | 19.343284 | 77 | 0.552469 |
9e34c7f38bac79e2dfbd83de5e3dd7d0ecf5dc13 | 33,845 | ex | Elixir | lib/elixir/lib/inspect/algebra.ex | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | 2 | 2018-11-15T06:38:14.000Z | 2018-11-17T18:03:14.000Z | lib/elixir/lib/inspect/algebra.ex | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/inspect/algebra.ex | RyanBard/elixir | 3e0f3b47cf26aa121470141b9a1aa55a366c066e | [
"Apache-2.0"
] | null | null | null | defmodule Inspect.Opts do
@moduledoc """
Defines the options used by the `Inspect` protocol.
The following fields are available:
* `:structs` - when `false`, structs are not formatted by the inspect
protocol, they are instead printed as maps, defaults to `true`.
* `:binaries` - when `:as_strings`... | 33.051758 | 101 | 0.617373 |
9e34dad25322747f6b1f257784d4a96f4cff79b8 | 2,170 | exs | Elixir | apps/alchemist/mix.exs | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/alchemist/mix.exs | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/alchemist/mix.exs | smartcitiesdata/smartcitiesdata | c926c25003a8ee2d09b933c521c49f674841c0b6 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | defmodule Alchemist.MixProject do
use Mix.Project
def project do
[
app: :alchemist,
version: "0.2.9",
elixir: "~> 1.10",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
start_permanent: Mix.... | 28.933333 | 68 | 0.52212 |
9e350146324ef63114d1e85c8c387c1d1ddb0cbb | 1,854 | ex | Elixir | tests/path-test/keast.ex | mahyar-osn/scaffold-pathway-maker | b9249103c58f3d1e7d8ad6d36054e60e4904b2e9 | [
"Apache-2.0"
] | null | null | null | tests/path-test/keast.ex | mahyar-osn/scaffold-pathway-maker | b9249103c58f3d1e7d8ad6d36054e60e4904b2e9 | [
"Apache-2.0"
] | null | null | null | tests/path-test/keast.ex | mahyar-osn/scaffold-pathway-maker | b9249103c58f3d1e7d8ad6d36054e60e4904b2e9 | [
"Apache-2.0"
] | 1 | 2021-12-01T02:03:55.000Z | 2021-12-01T02:03:55.000Z | EX Version: 2
Region: /
!#nodeset nodes
Shape. Dimension=0
#Fields=1
1) coordinates, coordinate, rectangular cartesian, real, #Components=3
x. #Values=2 (value,d/ds1)
y. #Values=2 (value,d/ds1)
z. #Values=2 (value,d/ds1)
Node: 1
-1.479162494069713e+00 0.000000000000000e+00
-5.688841365188414e+00 0.00000000000000... | 25.39726 | 70 | 0.740022 |
9e3506513cf6a4e805634e8e44c4bd954fa23e28 | 1,472 | ex | Elixir | lib/mail_slurp_api/model/page_bounced_recipients.ex | mailslurp/mailslurp-client-elixir | 5b98b91bb327de5216e873cd45b4fbb3c1b55c90 | [
"MIT"
] | 1 | 2021-06-17T18:07:49.000Z | 2021-06-17T18:07:49.000Z | lib/mail_slurp_api/model/page_bounced_recipients.ex | mailslurp/mailslurp-client-elixir | 5b98b91bb327de5216e873cd45b4fbb3c1b55c90 | [
"MIT"
] | null | null | null | lib/mail_slurp_api/model/page_bounced_recipients.ex | mailslurp/mailslurp-client-elixir | 5b98b91bb327de5216e873cd45b4fbb3c1b55c90 | [
"MIT"
] | 1 | 2021-03-16T18:55:56.000Z | 2021-03-16T18:55:56.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule MailSlurpAPI.Model.PageBouncedRecipients do
@moduledoc """
Paginated bounced recipients. Page index starts at zero. Projection results may omit la... | 29.44 | 187 | 0.647418 |
9e3525f6c17222b6de1799b232c8da1e93178dd6 | 1,811 | ex | Elixir | lib/web/plug/session.ex | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | lib/web/plug/session.ex | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | lib/web/plug/session.ex | ikeyasu/antikythera | 544fdd22e46b1f34177053d87d9e2a9708c74113 | [
"Apache-2.0"
] | null | null | null | # Copyright(c) 2015-2018 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule Antikythera.Plug.Session do
@moduledoc """
Plug to automatically load/store session information using a specific session store.
Uses cookie store by default.
## Usage
Adding the following line in a controller module enables... | 31.77193 | 99 | 0.643843 |
9e353a7344017778584972a5219b7701e102e968 | 2,256 | ex | Elixir | lib/crit/users/password_api.ex | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 6 | 2019-07-16T19:31:23.000Z | 2021-06-05T19:01:05.000Z | lib/crit/users/password_api.ex | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | null | null | null | lib/crit/users/password_api.ex | brownt23/crit19 | c45c7b3ae580c193168d83144da0eeb9bc91c8a9 | [
"MIT"
] | 3 | 2020-02-24T23:38:27.000Z | 2020-08-01T23:50:17.000Z | defmodule Crit.Users.PasswordApi do
import Ecto.Query, warn: false
alias Crit.Users.UniqueId
alias Crit.Users.Schemas.{User, PasswordToken, Password}
alias Crit.Sql
alias Crit.Repo
def fresh_password_changeset(), do: Password.default_changeset()
def set_password(auth_id, params, institution) do
... | 30.08 | 78 | 0.672872 |
9e3554aa28b16b804b8a0e7660edab8218c24a76 | 13,518 | exs | Elixir | test/parser_test.exs | bwittenbrook3/surface | 8697032e907a349e195ff7c495e69e5a6fec6c78 | [
"MIT"
] | null | null | null | test/parser_test.exs | bwittenbrook3/surface | 8697032e907a349e195ff7c495e69e5a6fec6c78 | [
"MIT"
] | null | null | null | test/parser_test.exs | bwittenbrook3/surface | 8697032e907a349e195ff7c495e69e5a6fec6c78 | [
"MIT"
] | null | null | null | defmodule Surface.Compiler.ParserTest do
use ExUnit.Case, async: true
import Surface.Compiler.Parser
test "empty node" do
assert parse("") == {:ok, []}
end
test "only text" do
assert parse("Some text") == {:ok, ["Some text"]}
end
test "keep spaces before node" do
assert parse("\n<div></div... | 25.896552 | 98 | 0.383637 |
9e35c7f4072b6fa7da64750bc8a1d5cfa5770d43 | 1,280 | ex | Elixir | lib/rbmq/rpc_server.ex | Lean5/rbmq | c6e746c212e103fc4ada53969e88fc1f32a357a6 | [
"MIT"
] | null | null | null | lib/rbmq/rpc_server.ex | Lean5/rbmq | c6e746c212e103fc4ada53969e88fc1f32a357a6 | [
"MIT"
] | 1 | 2019-02-13T14:26:22.000Z | 2019-02-13T14:26:22.000Z | lib/rbmq/rpc_server.ex | Lean5/rbmq | c6e746c212e103fc4ada53969e88fc1f32a357a6 | [
"MIT"
] | null | null | null | defmodule RBMQ.RpcServer do
@moduledoc """
RPC Server
"""
@doc false
defmacro __using__(opts) do
quote do
use RBMQ.Consumer, unquote(opts)
def handle_delivery(payload, meta, state) do
safe_run fn(channel) ->
AMQP.Basic.ack(channel, meta.delivery_tag)
Task... | 26.666667 | 123 | 0.510938 |
9e35d0d796406def3097ec33f88627d602124420 | 9,225 | ex | Elixir | lib/keto_ex.ex | ControlGap/keto_ex | 84d1f3632cce6ad6322e52103b25a07468e0926a | [
"MIT"
] | 1 | 2021-06-22T04:43:16.000Z | 2021-06-22T04:43:16.000Z | lib/keto_ex.ex | ControlGap/keto_ex | 84d1f3632cce6ad6322e52103b25a07468e0926a | [
"MIT"
] | null | null | null | lib/keto_ex.ex | ControlGap/keto_ex | 84d1f3632cce6ad6322e52103b25a07468e0926a | [
"MIT"
] | null | null | null | defmodule KetoEx do
@moduledoc """
Ory Keto REST API client
https://www.ory.sh/keto/docs/reference/api
"""
alias KetoEx.{Role, Policy}
@base "/engines/acp/ory/"
@flavors [:exact, :glob, :regex]
@default_flavor :glob
@type flavor :: :exact | :glob | :regex
@type check_allowed_input :: %{
... | 31.701031 | 100 | 0.623957 |
9e35d8e5ee8439a5dfa7b60bfbc5a83173758857 | 1,347 | ex | Elixir | clients/tool_results/lib/google_api/tool_results/v1beta3/model/step_labels_entry.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/step_labels_entry.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/tool_results/lib/google_api/tool_results/v1beta3/model/step_labels_entry.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.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... | 28.0625 | 83 | 0.743133 |
9e35e004be07d7e5bd0092477663ecb18e19a9a8 | 1,040 | exs | Elixir | elixir/getting-started/8_recursion.exs | wesleyegberto/dojos-languages | 87170a722efac1247c713daa21cb3fcc39f5c5c1 | [
"MIT"
] | null | null | null | elixir/getting-started/8_recursion.exs | wesleyegberto/dojos-languages | 87170a722efac1247c713daa21cb3fcc39f5c5c1 | [
"MIT"
] | null | null | null | elixir/getting-started/8_recursion.exs | wesleyegberto/dojos-languages | 87170a722efac1247c713daa21cb3fcc39f5c5c1 | [
"MIT"
] | null | null | null | # Recursion
# === Loop through recursion ===
defmodule Recursion do
def print_multiple_times(msg, n) when n <= 1 do
IO.puts msg
end
def print_multiple_times(msg, n) do
IO.puts msg
print_multiple_times(msg, n - 1)
end
end
Recursion.print_multiple_times("Hi", 3)
# === Reduce a... | 20.392157 | 70 | 0.6125 |
9e35e37eb8d08334a84de99c2f3f21d98ccb68b9 | 1,662 | ex | Elixir | clients/books/lib/google_api/books/v1/model/volume2.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/volume2.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/books/lib/google_api/books/v1/model/volume2.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... | 31.358491 | 104 | 0.698556 |
9e35f3c6307309302c6bc9aacc433509e0201ee0 | 929 | ex | Elixir | roman-numerals/lib/roman_numerals.ex | koladilip/elixir-examples | 49553fe39bbff6e35d1cb2c26fcb6d87fe4e28d3 | [
"MIT"
] | null | null | null | roman-numerals/lib/roman_numerals.ex | koladilip/elixir-examples | 49553fe39bbff6e35d1cb2c26fcb6d87fe4e28d3 | [
"MIT"
] | null | null | null | roman-numerals/lib/roman_numerals.ex | koladilip/elixir-examples | 49553fe39bbff6e35d1cb2c26fcb6d87fe4e28d3 | [
"MIT"
] | null | null | null | defmodule RomanNumerals do
@doc """
Convert the number to a roman number.
"""
@spec numeral(pos_integer) :: String.t()
def numeral(number) do
cond do
number >= 1000 -> String.duplicate("M", div(number, 1000)) <> numeral(rem(number, 1000))
number >= 900 -> "CM" <> numeral(number-900)
numb... | 37.16 | 94 | 0.556512 |
9e36037c753f343cbdc19299ccf1b82611f9a289 | 201 | ex | Elixir | lib/synapse/registered_user.ex | Voronchuk/ex_matrix_api | fab0f162c84a7e72f3df257260487a977e4134d5 | [
"MIT"
] | 2 | 2020-09-02T23:10:09.000Z | 2021-03-29T09:19:15.000Z | lib/synapse/registered_user.ex | Voronchuk/ex_matrix_api | fab0f162c84a7e72f3df257260487a977e4134d5 | [
"MIT"
] | null | null | null | lib/synapse/registered_user.ex | Voronchuk/ex_matrix_api | fab0f162c84a7e72f3df257260487a977e4134d5 | [
"MIT"
] | null | null | null | defmodule ExMatrixApi.Synapse.RegisteredUser do
@moduledoc """
Newly registered user with auth token.
"""
defstruct user_id: nil,
device_id: nil,
access_token: nil
end
| 20.1 | 47 | 0.661692 |
9e36127f98e708f324a89e37c2815f223d198540 | 45,023 | ex | Elixir | lib/phoenix/endpoint.ex | zoosky/phoenix | 8c90262009652390286dd6150bed513f6a3e6150 | [
"MIT"
] | null | null | null | lib/phoenix/endpoint.ex | zoosky/phoenix | 8c90262009652390286dd6150bed513f6a3e6150 | [
"MIT"
] | null | null | null | lib/phoenix/endpoint.ex | zoosky/phoenix | 8c90262009652390286dd6150bed513f6a3e6150 | [
"MIT"
] | null | null | null | defmodule Phoenix.Endpoint do
@moduledoc ~S"""
Defines a Phoenix endpoint.
The endpoint is the boundary where all requests to your
web application start. It is also the interface your
application provides to the underlying web servers.
Overall, an endpoint has three responsibilities:
* to provide a w... | 46.130123 | 10,138 | 0.74191 |
9e36486ee4cff7214fbbbdabe8a75349cac2436e | 1,465 | ex | Elixir | clients/data_migration/lib/google_api/data_migration/v1beta1/model/vm_selection_config.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/data_migration/lib/google_api/data_migration/v1beta1/model/vm_selection_config.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/data_migration/lib/google_api/data_migration/v1beta1/model/vm_selection_config.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... | 31.170213 | 115 | 0.745392 |
9e3679d9311c39b1312d6c312e4fb312c6d9db18 | 588 | exs | Elixir | demo/sitBRU_Demo/test/views/error_view_test.exs | ceedee666/sitbru_2016 | b23b4a81a1daec87801c6435ff04d32be043e0b9 | [
"MIT"
] | null | null | null | demo/sitBRU_Demo/test/views/error_view_test.exs | ceedee666/sitbru_2016 | b23b4a81a1daec87801c6435ff04d32be043e0b9 | [
"MIT"
] | null | null | null | demo/sitBRU_Demo/test/views/error_view_test.exs | ceedee666/sitbru_2016 | b23b4a81a1daec87801c6435ff04d32be043e0b9 | [
"MIT"
] | null | null | null | defmodule SitBRU_Demo.ErrorViewTest do
use SitBRU_Demo.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(SitBRU_Demo.ErrorView, "404.html", []) ==
"Page not found"
end
test "render 5... | 26.727273 | 69 | 0.687075 |
9e36856550579601f7e146184fd71ded3aa133ad | 390 | ex | Elixir | web/concerns/company_concern.ex | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | 2 | 2016-02-25T20:12:35.000Z | 2018-01-03T00:03:12.000Z | web/concerns/company_concern.ex | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | 1 | 2016-01-11T04:50:39.000Z | 2016-01-12T05:00:08.000Z | web/concerns/company_concern.ex | simwms/apiv4 | c3da7407eaf3580b759f49726028439b4b8ea9d0 | [
"MIT"
] | null | null | null | defmodule Apiv4.CompanyConcern do
import Ecto.Changeset
alias Apiv4.Repo
alias Apiv4.Company
def punch_company_name(changeset) do
changeset
|> get_field(:company_id)
|> case do
nil -> nil
id -> Repo.get(Company, id)
end
|> case do
nil -> changeset
%{name: name} ->
... | 20.526316 | 52 | 0.623077 |
9e369c216368a9baac9efaf4169b41a9c7253655 | 4,049 | ex | Elixir | lib/ex_dimensions/math.ex | fast-radius/ex_dimensions | fe2c548d363cdce2dad9152e6ebc19fb0166efa3 | [
"BSD-3-Clause"
] | 5 | 2019-11-23T23:51:47.000Z | 2021-12-08T20:48:01.000Z | lib/ex_dimensions/math.ex | fast-radius/ex_dimensions | fe2c548d363cdce2dad9152e6ebc19fb0166efa3 | [
"BSD-3-Clause"
] | 2 | 2020-03-03T18:53:33.000Z | 2021-11-16T17:54:24.000Z | lib/ex_dimensions/math.ex | fast-radius/ex_dimensions | fe2c548d363cdce2dad9152e6ebc19fb0166efa3 | [
"BSD-3-Clause"
] | null | null | null | defmodule ExDimensions.Math do
@moduledoc """
This module contains the required macros to perform math on unit quantities.
It must be `use`d in the current scope for the math functions to work properly.
Math on standard values will still work as expected if this module is `use`d.
Using these math functions w... | 27.174497 | 83 | 0.527538 |
9e36a05254957c0e2aa285c4e8dc7fa5ea228515 | 10,209 | ex | Elixir | lib/farmbot/farm_event/manager.ex | defcon201/farmbot_os | acc22702afbb13be461c9d80591604958117ff75 | [
"MIT"
] | null | null | null | lib/farmbot/farm_event/manager.ex | defcon201/farmbot_os | acc22702afbb13be461c9d80591604958117ff75 | [
"MIT"
] | null | null | null | lib/farmbot/farm_event/manager.ex | defcon201/farmbot_os | acc22702afbb13be461c9d80591604958117ff75 | [
"MIT"
] | 1 | 2020-12-16T16:39:32.000Z | 2020-12-16T16:39:32.000Z | defmodule Farmbot.FarmEvent.Manager do
@moduledoc """
Manages execution of FarmEvents.
## Rules for FarmEvent execution.
* Regimen
* ignore `end_time`.
* ignore calendar.
* if start_time is more than 60 seconds passed due, assume it already started, and don't start it again.
* Sequence
* if `... | 35.447917 | 131 | 0.674209 |
9e36a2434555f26db8a7012aaf3f963fccb9fb19 | 459 | ex | Elixir | lib/subspace_product_api/model/v1_transport_type.ex | subspace-com/subspace_elixir_openapi_client | 9e52d31edb228de2d93f2f988c98207106241a32 | [
"MIT"
] | null | null | null | lib/subspace_product_api/model/v1_transport_type.ex | subspace-com/subspace_elixir_openapi_client | 9e52d31edb228de2d93f2f988c98207106241a32 | [
"MIT"
] | null | null | null | lib/subspace_product_api/model/v1_transport_type.ex | subspace-com/subspace_elixir_openapi_client | 9e52d31edb228de2d93f2f988c98207106241a32 | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule SubspaceProductAPI.Model.V1TransportType do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
]
@type t :: %__MODULE__{
... | 17.653846 | 91 | 0.703704 |
9e36a713f5c04bafbb2ad54757d70c1e938d4cf0 | 697 | ex | Elixir | apps/bbq_ui/web/gettext.ex | easco/ex_bbq | d736204bb124ea256907629f5025c3abaf08c0bb | [
"BSD-3-Clause"
] | 2 | 2016-09-22T13:32:35.000Z | 2017-02-17T20:26:50.000Z | apps/bbq_ui/web/gettext.ex | easco/ex_bbq | d736204bb124ea256907629f5025c3abaf08c0bb | [
"BSD-3-Clause"
] | null | null | null | apps/bbq_ui/web/gettext.ex | easco/ex_bbq | d736204bb124ea256907629f5025c3abaf08c0bb | [
"BSD-3-Clause"
] | null | null | null | defmodule BbqUi.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 BbqUi.Gettext
# Simple translation
gettext "Here is the string ... | 27.88 | 72 | 0.675753 |
9e36be1cccab28433ada802feef6749d43451de9 | 890 | ex | Elixir | lib/okr_app/analytics/okr_load_query.ex | sb8244/okr_app_pub | 933872107bd13390a0a5ea119d7997d4cb5ea7db | [
"MIT"
] | 12 | 2019-05-10T21:48:06.000Z | 2021-11-07T14:04:30.000Z | lib/okr_app/analytics/okr_load_query.ex | sb8244/okr_app_pub | 933872107bd13390a0a5ea119d7997d4cb5ea7db | [
"MIT"
] | 2 | 2019-05-14T19:07:10.000Z | 2019-05-20T21:06:27.000Z | lib/okr_app/analytics/okr_load_query.ex | sb8244/okr_app_pub | 933872107bd13390a0a5ea119d7997d4cb5ea7db | [
"MIT"
] | 3 | 2019-05-19T18:24:20.000Z | 2019-10-31T20:29:12.000Z | defmodule OkrApp.Analytics.OkrLoadQuery do
alias OkrApp.Repo
import Ecto.Query
alias OkrApp.Analytics.{AnalyticsEvent}
def distinct_okr_views(owner: %{id: owner_id}, days: days) when is_integer(days) do
date = Timex.now() |> Timex.shift(days: -days)
from(
a in AnalyticsEvent,
where: a.typ... | 26.969697 | 85 | 0.620225 |
9e36d5a837b9ff2cf446be87cf7a7c2c31830be8 | 4,966 | ex | Elixir | lib/elixir_script/compiler.ex | beadsland/elixirscript | cb9698ad96075fcbe87b3933009d7ab2a2c939de | [
"MIT"
] | 854 | 2017-02-19T01:50:45.000Z | 2022-03-14T18:55:38.000Z | lib/elixir_script/compiler.ex | beadsland/elixirscript | cb9698ad96075fcbe87b3933009d7ab2a2c939de | [
"MIT"
] | 210 | 2017-02-20T17:44:39.000Z | 2020-08-01T10:18:07.000Z | lib/elixir_script/compiler.ex | beadsland/elixirscript | cb9698ad96075fcbe87b3933009d7ab2a2c939de | [
"MIT"
] | 56 | 2017-02-19T14:50:05.000Z | 2022-02-25T17:25:30.000Z | defmodule ElixirScript.Compiler do
@moduledoc """
The entry point for the ElixirScript compilation process.
Takes the given module(s) and compiles them and all modules
and functions they use into JavaScript.
Will also take a path to Elixir files
"""
@doc """
Takes either a module name, list of module ... | 26.55615 | 85 | 0.60733 |
9e36f9db3cddad21338b49c38ae3c24e98474c59 | 502 | exs | Elixir | test/controllers/page_controller_test.exs | zcdunn/elixirstatus-web | 9df758dce01c676403effdeb3231db0529285e6c | [
"MIT"
] | 299 | 2015-06-24T09:14:27.000Z | 2022-03-03T13:31:59.000Z | test/controllers/page_controller_test.exs | zcdunn/elixirstatus-web | 9df758dce01c676403effdeb3231db0529285e6c | [
"MIT"
] | 63 | 2015-07-04T19:42:12.000Z | 2021-12-10T14:27:28.000Z | test/controllers/page_controller_test.exs | zcdunn/elixirstatus-web | 9df758dce01c676403effdeb3231db0529285e6c | [
"MIT"
] | 49 | 2015-07-06T13:42:43.000Z | 2021-12-22T21:38:04.000Z | defmodule ElixirStatus.PageControllerTest do
use ElixirStatus.ConnCase
use ElixirStatus.ConnLoginHelper
test "GET /" do
conn = get(build_conn(), "/")
assert html_response(conn, 200) =~ "elixirstatus"
end
test "GET / (logged in)" do
conn =
logged_in_conn()
|> get("/")
assert html... | 18.592593 | 53 | 0.631474 |
9e3716bed9a83dd00335ada4f8ffc55bbf81cc73 | 2,711 | ex | Elixir | lib/avrora/codec/object_container_file.ex | MichalDolata/avrora | 6c025da91530dff70714bdab18ceacbe432e84b5 | [
"MIT"
] | null | null | null | lib/avrora/codec/object_container_file.ex | MichalDolata/avrora | 6c025da91530dff70714bdab18ceacbe432e84b5 | [
"MIT"
] | null | null | null | lib/avrora/codec/object_container_file.ex | MichalDolata/avrora | 6c025da91530dff70714bdab18ceacbe432e84b5 | [
"MIT"
] | null | null | null | defmodule Avrora.Codec.ObjectContainerFile do
@moduledoc """
An Avro encoder/decoder working with an Object Container File formatted Avro messages.
It works with a binary format, which includes a required schema inside the message.
See more about [Object Container File](https://avro.apache.org/docs/1.8.1/spec.... | 30.122222 | 110 | 0.663224 |
9e37396e1474dba7737289a62f9948cccd6b493a | 2,781 | ex | Elixir | lib/mix/tasks/ecto.migrations.ex | hauleth/ecto_sql | 1d7f4b73bfa04e02a26bba8b3ea79a457850af0f | [
"Apache-2.0"
] | 1 | 2020-10-18T09:11:56.000Z | 2020-10-18T09:11:56.000Z | lib/mix/tasks/ecto.migrations.ex | hauleth/ecto_sql | 1d7f4b73bfa04e02a26bba8b3ea79a457850af0f | [
"Apache-2.0"
] | 3 | 2021-06-20T14:51:14.000Z | 2021-06-25T00:56:11.000Z | lib/mix/tasks/ecto.migrations.ex | hauleth/ecto_sql | 1d7f4b73bfa04e02a26bba8b3ea79a457850af0f | [
"Apache-2.0"
] | 1 | 2019-05-31T02:43:25.000Z | 2019-05-31T02:43:25.000Z | defmodule Mix.Tasks.Ecto.Migrations do
use Mix.Task
import Mix.Ecto
import Mix.EctoSQL
@shortdoc "Displays the repository migration status"
@aliases [
r: :repo
]
@switches [
repo: [:keep, :string],
no_compile: :boolean,
no_deps_check: :boolean,
migrations_path: :keep
]
@moduled... | 29.903226 | 100 | 0.627113 |
9e374318e708ad1fad2c0abd0dc751a8ae50478e | 959 | ex | Elixir | test/support/channel_case.ex | myobie/post_register | 924a832d7fa1693d655c34b0295affa8b3275f26 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | myobie/post_register | 924a832d7fa1693d655c34b0295affa8b3275f26 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | myobie/post_register | 924a832d7fa1693d655c34b0295affa8b3275f26 | [
"MIT"
] | null | null | null | defmodule PostRegister.Web.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if the test case intera... | 25.236842 | 74 | 0.720542 |
9e374f7122e5c6dd1e5eb3715df2dc5cdfbae34f | 4,581 | exs | Elixir | apps/artemis/test/artemis/contexts/key_value/update_key_value_test.exs | artemis-platform/artemis_dashboard | 5ab3f5ac4c5255478bbebf76f0e43b44992e3cab | [
"MIT"
] | 9 | 2019-08-19T19:56:34.000Z | 2022-03-22T17:56:38.000Z | apps/artemis/test/artemis/contexts/key_value/update_key_value_test.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis/test/artemis/contexts/key_value/update_key_value_test.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule Artemis.UpdateKeyValueTest do
use Artemis.DataCase
import Artemis.Factories
alias Artemis.UpdateKeyValue
describe "call!" do
test "raises an exception when id not found" do
invalid_id = 50_000_000
params = params_for(:key_value)
assert_raise Artemis.Context.Error, fn ->
... | 29.178344 | 85 | 0.666667 |
9e375f50d53cfc0c69c1de0497711dd13da08c82 | 4,443 | ex | Elixir | lib/ecto_enum.ex | altenwald/ecto_enum | add06bb6115d6055af3b6a3e905d8ceb6b5ea2ad | [
"MIT"
] | null | null | null | lib/ecto_enum.ex | altenwald/ecto_enum | add06bb6115d6055af3b6a3e905d8ceb6b5ea2ad | [
"MIT"
] | null | null | null | lib/ecto_enum.ex | altenwald/ecto_enum | add06bb6115d6055af3b6a3e905d8ceb6b5ea2ad | [
"MIT"
] | null | null | null | defmodule EctoEnum do
@moduledoc """
Provides `defenum/2` and `defenum/3` macro for defining an Enum Ecto type.
This module can also be `use`d to create an Ecto Enum like:
defmodule CustomEnum do
use EctoEnum, ready: 0, set: 1, go: 2
end
Or in place of using `EctoEnum.Postgres` like:
... | 31.735714 | 95 | 0.648436 |
9e37997b0497fe4a18612ae85b4fc517b5e0adbd | 1,354 | exs | Elixir | test/genome/genome_test.exs | ORBAT/mulix | 75503f79eb1832329afe96540cfd0e2dc9c01575 | [
"MIT"
] | null | null | null | test/genome/genome_test.exs | ORBAT/mulix | 75503f79eb1832329afe96540cfd0e2dc9c01575 | [
"MIT"
] | null | null | null | test/genome/genome_test.exs | ORBAT/mulix | 75503f79eb1832329afe96540cfd0e2dc9c01575 | [
"MIT"
] | null | null | null | defmodule GenomeTest do
use ExUnit.Case, async: true
doctest Genome
doctest Genome.Mush
alias Genome.Mush
describe "Mush.evaluate" do
test "with program that doesn't close all parens, has blocks and curr_block" do
# mush_env =
# ...> Genome.new_env()
# ...> |> Environment.update_stack(... | 35.631579 | 89 | 0.553176 |
9e37a3d71e723057a030dabe30abed9aca7b1b42 | 1,818 | ex | Elixir | web/channels/user_socket.ex | Poniverse/LunaTube-API | 433473f32ec04a636f6de60642e445fd2e478f98 | [
"Apache-2.0"
] | null | null | null | web/channels/user_socket.ex | Poniverse/LunaTube-API | 433473f32ec04a636f6de60642e445fd2e478f98 | [
"Apache-2.0"
] | null | null | null | web/channels/user_socket.ex | Poniverse/LunaTube-API | 433473f32ec04a636f6de60642e445fd2e478f98 | [
"Apache-2.0"
] | null | null | null | defmodule Lunatube.UserSocket do
use Phoenix.Socket
require Logger
import Guardian.Phoenix.Socket
alias Lunatube.User
## Channels
channel "room:*", Lunatube.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket pa... | 30.3 | 83 | 0.674917 |
9e37e00554f57c5b17c5e48d783b13131d164ecd | 708 | ex | Elixir | lib/sneex/address/helper.ex | NickMcG/SNEEX | 901215dea41fa21314a4f4db46b51648158f1544 | [
"MIT"
] | 1 | 2019-11-16T00:33:02.000Z | 2019-11-16T00:33:02.000Z | lib/sneex/address/helper.ex | NickMcG/SNEEX | 901215dea41fa21314a4f4db46b51648158f1544 | [
"MIT"
] | 1 | 2019-08-11T23:02:15.000Z | 2019-08-11T23:02:15.000Z | lib/sneex/address/helper.ex | NickMcG/SNEEX | 901215dea41fa21314a4f4db46b51648158f1544 | [
"MIT"
] | null | null | null | defmodule Sneex.Address.Helper do
@moduledoc """
This module defines common functions that are used by various addressing modes
Maybe this ends up going away?
"""
alias Sneex.Cpu
use Bitwise
def indexed(addr, cpu = %Cpu{}, :x), do: (addr + Cpu.x(cpu)) |> band(0xFFFFFF)
def indexed(addr, cpu = %Cpu{}, :... | 33.714286 | 97 | 0.675141 |
9e37f027fd43a91dfd917b03397a43a51019d730 | 1,382 | exs | Elixir | test/ex_binance/private/cancel_order_test.exs | arturictus/ex_binance | 9d1f51070a452e5e763a1d148d1151dddedd1956 | [
"MIT"
] | null | null | null | test/ex_binance/private/cancel_order_test.exs | arturictus/ex_binance | 9d1f51070a452e5e763a1d148d1151dddedd1956 | [
"MIT"
] | null | null | null | test/ex_binance/private/cancel_order_test.exs | arturictus/ex_binance | 9d1f51070a452e5e763a1d148d1151dddedd1956 | [
"MIT"
] | null | null | null | defmodule ExBinance.Private.CancelOrderTest do
use ExUnit.Case
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
setup_all do
HTTPoison.start()
end
@credentials %ExBinance.Credentials{
api_key: System.get_env("BINANCE_API_KEY"),
secret_key: System.get_env("BINANCE_API_SECRET")
}
describe ".can... | 31.409091 | 93 | 0.685239 |
9e37f8adccee5bf6b6c67f4de9704824e94d0368 | 250 | ex | Elixir | Destructuration.ex | hectorip/ErlangExercises | 4a1aa5de0504da1bfe5a6c31c1d20277524ab363 | [
"MIT"
] | 4 | 2016-09-22T03:47:56.000Z | 2017-02-02T17:42:57.000Z | Destructuration.ex | hectorip/ErlangExercises | 4a1aa5de0504da1bfe5a6c31c1d20277524ab363 | [
"MIT"
] | null | null | null | Destructuration.ex | hectorip/ErlangExercises | 4a1aa5de0504da1bfe5a6c31c1d20277524ab363 | [
"MIT"
] | null | null | null | {:module, _, binary, _} = contents
<< a :: utf8, rest :: binary>> = "This is a String"
# The equals symbol is called pattern matching, is not an assignment
:rpc.call :"node_two@MacBook-Pro-de-HectorIP", :code, :load_binary, [Hello, 'iex', binary]
| 31.25 | 90 | 0.676 |
9e380b489d451cd3d06f5c27e6a8928e25edaa04 | 1,483 | exs | Elixir | mix.exs | skeleton-elixir/skeleton_permission | 9d86d338cfcd5b0b9925cde139d03c225dc9e4ee | [
"MIT"
] | null | null | null | mix.exs | skeleton-elixir/skeleton_permission | 9d86d338cfcd5b0b9925cde139d03c225dc9e4ee | [
"MIT"
] | 1 | 2020-07-02T13:17:17.000Z | 2020-07-02T13:17:17.000Z | mix.exs | skeleton-elixir/skeleton_permission | 9d86d338cfcd5b0b9925cde139d03c225dc9e4ee | [
"MIT"
] | null | null | null | defmodule SkeletonPermission.MixProject do
use Mix.Project
@version "2.1.1"
@source_url "https://github.com/skeleton-elixir/skeleton_permission"
@maintainers [
"Diego Nogueira",
"Jhonathas Matos"
]
def project do
[
name: "SkeletonPermission",
app: :skeleton_permission,
versio... | 23.919355 | 86 | 0.616993 |
9e3838a6d07cedf3c09a48a2c3a798bae6886710 | 1,526 | ex | Elixir | lib/xdr/transactions/operations/revoke_sponsorship_result.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 3 | 2021-08-17T20:32:45.000Z | 2022-03-13T20:26:02.000Z | lib/xdr/transactions/operations/revoke_sponsorship_result.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 45 | 2021-08-12T20:19:41.000Z | 2022-03-27T21:00:10.000Z | lib/xdr/transactions/operations/revoke_sponsorship_result.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 2 | 2021-09-22T23:11:13.000Z | 2022-01-23T03:19:11.000Z | defmodule StellarBase.XDR.Operations.RevokeSponsorshipResult do
@moduledoc """
Representation of Stellar `RevokeSponsorshipResult` type.
"""
alias StellarBase.XDR.Void
alias StellarBase.XDR.Operations.RevokeSponsorshipResultCode
@behaviour XDR.Declaration
@arms [REVOKE_SPONSORSHIP_SUCCESS: Void, default... | 25.864407 | 78 | 0.673001 |
9e383d9aef5673eb7d4322eeea36c632bafece4e | 4,282 | ex | Elixir | lib/elixir/lib/bitwise.ex | kenichi/elixir | 8c27da88c70623cbe516d5310c885943395a82a2 | [
"Apache-2.0"
] | 2 | 2018-11-15T06:38:14.000Z | 2018-11-17T18:03:14.000Z | lib/elixir/lib/bitwise.ex | kenichi/elixir | 8c27da88c70623cbe516d5310c885943395a82a2 | [
"Apache-2.0"
] | 1 | 2018-09-10T23:36:45.000Z | 2018-09-10T23:36:45.000Z | lib/elixir/lib/bitwise.ex | kenichi/elixir | 8c27da88c70623cbe516d5310c885943395a82a2 | [
"Apache-2.0"
] | 1 | 2018-09-10T23:32:56.000Z | 2018-09-10T23:32:56.000Z | defmodule Bitwise do
@moduledoc """
A set of macros that perform calculations on bits.
The macros in this module come in two flavors: named or
operators. For example:
iex> use Bitwise
iex> bnot(1) # named
-2
iex> 1 &&& 1 # operator
1
If you prefer to use only operators or skip... | 18.456897 | 72 | 0.552312 |
9e3841f976fa4240dce645b994993efdfc09dac2 | 2,443 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/add_dimension_group_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/add_dimension_group_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sheets/lib/google_api/sheets/v4/model/add_dimension_group_request.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... | 51.978723 | 943 | 0.740074 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.