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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1c9047d3cee1ec23211f8754f0d34d8d28a5f5d3 | 989 | exs | Elixir | config/config.exs | kawakami-o3/epcc | e0a102b5471e133580c92feb91ec9597f1cf7021 | [
"MIT"
] | null | null | null | config/config.exs | kawakami-o3/epcc | e0a102b5471e133580c92feb91ec9597f1cf7021 | [
"MIT"
] | 3 | 2020-07-17T03:56:23.000Z | 2021-05-09T00:04:45.000Z | config/config.exs | kawakami-o3/epcc | e0a102b5471e133580c92feb91ec9597f1cf7021 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
config :epcc,
ecto_repos: [Epcc.Repo]
# Confi... | 31.903226 | 86 | 0.76542 |
1c904972cad6a1bccd7d162708407a1dbe1a205d | 1,875 | exs | Elixir | test/json_schema_test_suite/draft4/optional/format/date_time_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 49 | 2018-06-05T09:42:19.000Z | 2022-02-15T12:50:51.000Z | test/json_schema_test_suite/draft4/optional/format/date_time_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 152 | 2017-06-11T13:43:06.000Z | 2022-01-09T17:13:45.000Z | test/json_schema_test_suite/draft4/optional/format/date_time_test.exs | kianmeng/xema | a990d64fb4bcd708249514daa55426ee003da25d | [
"MIT"
] | 6 | 2019-05-31T05:41:47.000Z | 2021-12-14T08:09:36.000Z | defmodule JsonSchemaTestSuite.Draft4.Optional.Format.DateTimeTest do
use ExUnit.Case
import Xema, only: [valid?: 2]
describe ~s|validation of date-time strings| do
setup do
%{
schema:
Xema.from_json_schema(
%{"format" => "date-time"},
draft: "draft4",
... | 29.761905 | 83 | 0.624 |
1c905c63901f8a88928209f91d93d6172272934c | 6,044 | exs | Elixir | test/phoenix_html/tag_test.exs | eksperimental/phoenix_html | 03fc1949bfc14802fc9fe924fd77f94359dbbcdf | [
"MIT"
] | null | null | null | test/phoenix_html/tag_test.exs | eksperimental/phoenix_html | 03fc1949bfc14802fc9fe924fd77f94359dbbcdf | [
"MIT"
] | null | null | null | test/phoenix_html/tag_test.exs | eksperimental/phoenix_html | 03fc1949bfc14802fc9fe924fd77f94359dbbcdf | [
"MIT"
] | null | null | null | defmodule Phoenix.HTML.TagTest do
use ExUnit.Case, async: true
import Phoenix.HTML
import Phoenix.HTML.Tag
doctest Phoenix.HTML.Tag
test "tag" do
assert tag(:br) |> safe_to_string() == ~s(<br>)
assert tag(:input, name: ~s("<3")) |> safe_to_string() == ~s(<input name=""<3"">)
assert... | 37.079755 | 129 | 0.560887 |
1c9074dff7013312c0cf4a74375096b95a78b104 | 6,891 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/health_check.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/health_check.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/health_check.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... | 58.897436 | 546 | 0.711218 |
1c908dc4c5a004a2e8f042df3ad386d27eac222e | 146 | exs | Elixir | test/ironman_test.exs | TheEndIsNear/ironman | 769e6777e93759810b168e7b6819ef7cb9ab5f80 | [
"MIT"
] | 39 | 2019-02-19T21:59:35.000Z | 2021-03-31T21:43:58.000Z | test/ironman_test.exs | TheEndIsNear/ironman | 769e6777e93759810b168e7b6819ef7cb9ab5f80 | [
"MIT"
] | 17 | 2019-03-13T15:02:52.000Z | 2020-11-09T20:33:44.000Z | test/ironman_test.exs | TheEndIsNear/ironman | 769e6777e93759810b168e7b6819ef7cb9ab5f80 | [
"MIT"
] | 5 | 2020-01-30T13:51:15.000Z | 2020-10-25T18:27:59.000Z | defmodule IronmanTest do
use ExUnit.Case
# doctest Ironman
# test "greets the world" do
# assert Ironman.hello() == :world
# end
end
| 16.222222 | 38 | 0.671233 |
1c908fa04993d1871ca94c33b306c65e6ee22d5e | 1,250 | exs | Elixir | priv/example-projects/foo_bar_umbrella/config/prod.secret.exs | c4710n/phx_custom | 19080ed8896be9ae846d12b2f631a1bc4aef5c78 | [
"MIT"
] | null | null | null | priv/example-projects/foo_bar_umbrella/config/prod.secret.exs | c4710n/phx_custom | 19080ed8896be9ae846d12b2f631a1bc4aef5c78 | [
"MIT"
] | null | null | null | priv/example-projects/foo_bar_umbrella/config/prod.secret.exs | c4710n/phx_custom | 19080ed8896be9ae846d12b2f631a1bc4aef5c78 | [
"MIT"
] | null | null | null | # In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
database_url =
System.get_env("DATABASE_URL") ||
raise """
envi... | 29.761905 | 67 | 0.72 |
1c90d3b0e7b17a8717f62d98b6aaa98d20f44cc2 | 1,183 | ex | Elixir | lib/mix/lib/mix/tasks/loadpaths.ex | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | 1 | 2015-11-12T19:23:45.000Z | 2015-11-12T19:23:45.000Z | lib/mix/lib/mix/tasks/loadpaths.ex | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/loadpaths.ex | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Loadpaths do
use Mix.Task
@moduledoc """
Load the application and its dependencies paths.
## Command line options
* `--no-elixir-version-check` - do not check elixir version
"""
def run(args) do
{ opts, _, _ } = OptionParser.parse(args)
unless opts[:no_elixir_version_check... | 29.575 | 97 | 0.593407 |
1c90ddcfa798e966fdd62577d9a159399f9663dc | 187 | ex | Elixir | test/support/post_with_nanoid.ex | chaitanyapandit/ecto_identifier | ca04e649064e1c2aa6b05d616031802636a9e18a | [
"Apache-2.0"
] | 15 | 2018-09-23T17:13:07.000Z | 2021-11-09T14:54:05.000Z | test/support/post_with_nanoid.ex | chaitanyapandit/ecto_identifier | ca04e649064e1c2aa6b05d616031802636a9e18a | [
"Apache-2.0"
] | 3 | 2021-05-17T16:01:18.000Z | 2021-06-13T20:29:18.000Z | test/support/post_with_nanoid.ex | chaitanyapandit/ecto_identifier | ca04e649064e1c2aa6b05d616031802636a9e18a | [
"Apache-2.0"
] | 5 | 2019-06-21T11:41:36.000Z | 2020-12-27T02:38:32.000Z | defmodule EctoIdentifier.PostWithNanoid do
@moduledoc false
use Ecto.Schema
alias Ecto.Nanoid
schema("posts_nanoid") do
field(:number, Nanoid, autogenerate: true)
end
end
| 17 | 46 | 0.748663 |
1c90de616800846e92621aaf615b34ae3064daa1 | 803 | exs | Elixir | apps/ewallet_config/test/ewallet_config/utils/helpers/input_attribute_test.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/ewallet_config/test/ewallet_config/utils/helpers/input_attribute_test.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_config/test/ewallet_config/utils/helpers/input_attribute_test.exs | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | defmodule EWalletConfig.Helpers.InputAttributeTest do
use ExUnit.Case
alias EWalletConfig.Helpers.InputAttribute
describe "get/2" do
test "returns the value if the map key is atom and argument is atom" do
assert InputAttribute.get(%{match: "matched"}, :match) == "matched"
end
test "returns the... | 34.913043 | 79 | 0.683686 |
1c911de7ec89f3b6ca4a46da6ba4549bdbffc8ea | 7,342 | exs | Elixir | .credo.exs | AkioCode/elxpro-blog | 236984915851b91058e091414deb70c5e8fed72a | [
"MIT"
] | null | null | null | .credo.exs | AkioCode/elxpro-blog | 236984915851b91058e091414deb70c5e8fed72a | [
"MIT"
] | 4 | 2021-08-11T03:19:33.000Z | 2021-09-26T01:29:58.000Z | .credo.exs | AkioCode/elxpro-blog | 236984915851b91058e091414deb70c5e8fed72a | [
"MIT"
] | null | null | null | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 38.642105 | 97 | 0.61441 |
1c91227b4e5bbdb7d517ee76b08ee668a7ddda2f | 2,307 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_stored_info_type.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_stored_info_type.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_stored_info_type.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... | 39.101695 | 202 | 0.742523 |
1c91291c4e6043c24616b7f05a26a87889138fea | 3,552 | exs | Elixir | test/scenic/view_port/tables_test.exs | zacck/scenic | 5f2170b7fba63b0af597ddeb3107fb1ffb79c2fe | [
"Apache-2.0"
] | null | null | null | test/scenic/view_port/tables_test.exs | zacck/scenic | 5f2170b7fba63b0af597ddeb3107fb1ffb79c2fe | [
"Apache-2.0"
] | null | null | null | test/scenic/view_port/tables_test.exs | zacck/scenic | 5f2170b7fba63b0af597ddeb3107fb1ffb79c2fe | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on August 22, 2018.
# Copyright © 2018 Kry10 Industries. All rights reserved.
#
# ==============================================================================
defmodule Scenic.ViewPort.TablesTest do
use ExUnit.Case, async: false
doctest Scenic.ViewPort.Tables
alias Scenic.Graph
... | 35.878788 | 91 | 0.626971 |
1c9150814b0226cd6eeb4c6f20f80763dd86c9dc | 1,506 | ex | Elixir | lib/tipalti/api/soap/response_parser.ex | dhedlund/tipalti-elixir | 8d351261234591bf328309b404324ebb2aa1c4b2 | [
"MIT"
] | null | null | null | lib/tipalti/api/soap/response_parser.ex | dhedlund/tipalti-elixir | 8d351261234591bf328309b404324ebb2aa1c4b2 | [
"MIT"
] | null | null | null | lib/tipalti/api/soap/response_parser.ex | dhedlund/tipalti-elixir | 8d351261234591bf328309b404324ebb2aa1c4b2 | [
"MIT"
] | null | null | null | defmodule Tipalti.API.SOAP.ResponseParser do
@moduledoc false
import SweetXml
alias Tipalti.ClientError
def parse(body, root_path, :empty, response_opts) do
with :ok <- is_ok?(body, root_path, response_opts) do
:ok
end
end
def parse(body, root_path, %SweetXpath{} = path, response_opts) do
... | 25.525424 | 80 | 0.658035 |
1c9178376fdc8ef0affa01915256bc37f5afa4bd | 1,648 | ex | Elixir | web/web.ex | openrowing/raceman2 | eee2d51c50bddf63b9c5b9b351424d4c056fa27d | [
"Apache-2.0"
] | null | null | null | web/web.ex | openrowing/raceman2 | eee2d51c50bddf63b9c5b9b351424d4c056fa27d | [
"Apache-2.0"
] | null | null | null | web/web.ex | openrowing/raceman2 | eee2d51c50bddf63b9c5b9b351424d4c056fa27d | [
"Apache-2.0"
] | null | null | null | defmodule Web.Web do
@moduledoc """
A module that keeps using definitions for controllers,
views and so on.
This can be used in your application as:
use Web.Web, :controller
use Web.Web, :view
The definitions below will be executed for every view,
controller, etc, so keep them short and clean... | 20.097561 | 88 | 0.651092 |
1c91811565727ad49e27f18ae81b681df968ba6f | 8,604 | ex | Elixir | lib/davis/stream.ex | jquadrino/davis | 28b405725855303b7e78ed5db22ded223dfb2dc8 | [
"Apache-2.0"
] | 1 | 2019-08-01T22:51:17.000Z | 2019-08-01T22:51:17.000Z | lib/davis/stream.ex | jquadrino/davis | 28b405725855303b7e78ed5db22ded223dfb2dc8 | [
"Apache-2.0"
] | null | null | null | lib/davis/stream.ex | jquadrino/davis | 28b405725855303b7e78ed5db22ded223dfb2dc8 | [
"Apache-2.0"
] | null | null | null | defmodule Davis.Stream do
@moduledoc false
import Davis.Frame.Flag, only: :macros
alias Davis.Headers
alias Davis.Frame
alias Davis.Stream.FSM
defstruct id: nil, state: :idle, window_size: nil, content_length: nil, buffered_content_length: 0
def log(msg) do
:error_logger.format('~p', [msg])
end... | 39.109091 | 136 | 0.681311 |
1c9187752fee2a601315b4b776f165c073d724a2 | 4,732 | exs | Elixir | test/printer/all_of_printer_test.exs | HenkPoley/json-schema-to-elm | 92230ac907d1eab27a0c8e4d969c5104f8e66383 | [
"MIT"
] | null | null | null | test/printer/all_of_printer_test.exs | HenkPoley/json-schema-to-elm | 92230ac907d1eab27a0c8e4d969c5104f8e66383 | [
"MIT"
] | null | null | null | test/printer/all_of_printer_test.exs | HenkPoley/json-schema-to-elm | 92230ac907d1eab27a0c8e4d969c5104f8e66383 | [
"MIT"
] | null | null | null | defmodule JS2ETest.Printer.AllOfPrinter do
use ExUnit.Case
require Logger
alias JS2E.Printer.AllOfPrinter
alias JsonSchema.Types.{
AllOfType,
EnumType,
ObjectType,
PrimitiveType,
SchemaDefinition,
TypeReference
}
test "print 'all of' type value" do
result =
all_of_type()
... | 28.166667 | 89 | 0.614328 |
1c9198b4944a758b36f4e838691ddd2ae02a5ec6 | 2,169 | ex | Elixir | clients/cloud_tasks/lib/google_api/cloud_tasks/v2/model/get_policy_options.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/cloud_tasks/lib/google_api/cloud_tasks/v2/model/get_policy_options.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/cloud_tasks/lib/google_api/cloud_tasks/v2/model/get_policy_options.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 46.148936 | 805 | 0.766252 |
1c91998331d92d3cdeb0d431bf6a2245e5473e3b | 6,295 | exs | Elixir | test/queuetopia_test.exs | annatel/queuetopia | dd4be7390382c203821ab88388f0c31ba5538edf | [
"MIT"
] | 7 | 2020-08-06T21:58:13.000Z | 2021-08-07T18:32:44.000Z | test/queuetopia_test.exs | annatel/queuetopia | dd4be7390382c203821ab88388f0c31ba5538edf | [
"MIT"
] | 2 | 2020-10-22T11:53:45.000Z | 2021-06-22T05:45:27.000Z | test/queuetopia_test.exs | annatel/queuetopia | dd4be7390382c203821ab88388f0c31ba5538edf | [
"MIT"
] | 2 | 2020-11-04T00:23:43.000Z | 2021-04-30T07:25:01.000Z | defmodule QueuetopiaTest do
use Queuetopia.DataCase
alias Queuetopia.{TestQueuetopia, TestQueuetopia_2}
alias Queuetopia.Queue.Job
setup do
Application.put_env(:queuetopia, TestQueuetopia, disable?: false)
:ok
end
test "multiple instances can coexist" do
start_supervised!(TestQueuetopia)
s... | 32.958115 | 105 | 0.654964 |
1c919a81d6f74024affe6a16448d8922e9b97f41 | 342 | exs | Elixir | test/acceptance/html/paragraphs_test.exs | maartenvanvliet/earmark | 6e0e4ae202728fa7b1f0e3e10ef982a167120450 | [
"Apache-1.1"
] | null | null | null | test/acceptance/html/paragraphs_test.exs | maartenvanvliet/earmark | 6e0e4ae202728fa7b1f0e3e10ef982a167120450 | [
"Apache-1.1"
] | null | null | null | test/acceptance/html/paragraphs_test.exs | maartenvanvliet/earmark | 6e0e4ae202728fa7b1f0e3e10ef982a167120450 | [
"Apache-1.1"
] | null | null | null | defmodule Acceptance.Html.ParagraphsTest do
use Support.AcceptanceTestCase
describe "Paragraphs" do
test "a para" do
markdown = "aaa\n\nbbb\n"
html = gen([{:p, "aaa"}, {:p, "bbb"}])
messages = []
assert as_html(markdown) == {:ok, html, messages}
end
end
end
# SPDX-License-I... | 20.117647 | 55 | 0.616959 |
1c91b5cb2ff325986415beb4d38b3d5e1822b52a | 2,910 | exs | Elixir | test/tableau_test.exs | adolfont/tableau | 2912685c718f00291430acff46948c4d9b463130 | [
"MIT"
] | 3 | 2020-02-29T22:43:52.000Z | 2021-02-18T13:38:45.000Z | test/tableau_test.exs | adolfont/tableau | 2912685c718f00291430acff46948c4d9b463130 | [
"MIT"
] | null | null | null | test/tableau_test.exs | adolfont/tableau | 2912685c718f00291430acff46948c4d9b463130 | [
"MIT"
] | null | null | null | defmodule TableauTest do
use ExUnit.Case
doctest Tableau
doctest Linear
test "apply all linear rules to a list" do
linear_example = [
{:t, {:not, :a}},
{:f, {:not, :a}},
{:t, {:c, :and, :d}},
{:f, {:e, :or, :g}},
{:f, {:h, :implies, :i}}
]
expected_result = [f: :a, t:... | 27.45283 | 101 | 0.365979 |
1c91da41438bf4921490d17ff9593b8cfbe9214d | 2,605 | exs | Elixir | .credo.exs | olafura/accent | b081bd96a816f5ffd79a1b28cd5ba022d5eda803 | [
"BSD-3-Clause"
] | 1 | 2020-07-01T16:08:34.000Z | 2020-07-01T16:08:34.000Z | .credo.exs | queer/accent | 43a0ab8b43c99a8f8b3bde7020eb615c39037ad5 | [
"BSD-3-Clause"
] | null | null | null | .credo.exs | queer/accent | 43a0ab8b43c99a8f8b3bde7020eb615c39037ad5 | [
"BSD-3-Clause"
] | null | null | null | %{
configs: [
%{
name: "default",
strict: true,
files: %{
included: ["lib/", "test/", "priv/"],
excluded: []
},
checks: [
{Credo.Check.Consistency.ExceptionNames},
{Credo.Check.Consistency.LineEndings},
{Credo.Check.Consistency.SpaceAroundOpera... | 44.152542 | 130 | 0.679846 |
1c9233ec18f973e1abe1ba070736f003dc4d1a10 | 688 | ex | Elixir | lib/server/pyserver.ex | sezaru/expyplot | 17dedaed998042d96293f5912d007d5ad3d0a4df | [
"MIT"
] | 30 | 2017-04-17T09:52:59.000Z | 2022-03-28T09:55:05.000Z | lib/server/pyserver.ex | sezaru/expyplot | 17dedaed998042d96293f5912d007d5ad3d0a4df | [
"MIT"
] | 1 | 2020-08-25T17:23:51.000Z | 2020-08-27T23:53:19.000Z | lib/server/pyserver.ex | sezaru/expyplot | 17dedaed998042d96293f5912d007d5ad3d0a4df | [
"MIT"
] | 4 | 2019-02-01T07:12:37.000Z | 2020-08-24T13:24:07.000Z | defmodule Server.Pyserver do
use GenServer
@pyport 9849
@pyserver_location "mat.py"
## Client API
@doc """
Starts the server.
"""
def start_link(name) do
GenServer.start_link(__MODULE__, :ok, name: name)
end
## Server Callbacks
def init(:ok) do
_pwd = File.cwd!()
system_python = g... | 19.111111 | 135 | 0.649709 |
1c9234fd8b3d43b493f03d6eca04fa32d450142f | 156 | ex | Elixir | lib/lazymaru/helper.ex | aforward-oss/lazymaru | e656a342e1dc2989b8e27ab399cb2f4c571aa502 | [
"BSD-3-Clause"
] | null | null | null | lib/lazymaru/helper.ex | aforward-oss/lazymaru | e656a342e1dc2989b8e27ab399cb2f4c571aa502 | [
"BSD-3-Clause"
] | null | null | null | lib/lazymaru/helper.ex | aforward-oss/lazymaru | e656a342e1dc2989b8e27ab399cb2f4c571aa502 | [
"BSD-3-Clause"
] | null | null | null | defmodule Lazymaru.Helper do
defmacro __using__(_) do
quote do
use Lazymaru.Helpers.Response
import unquote(__MODULE__)
end
end
end
| 17.333333 | 35 | 0.705128 |
1c9252e173205f86482d12cf26681bded22c84c1 | 1,510 | ex | Elixir | apps/ae_channel_interface/lib/ae_channel_interface_web/views/error_helpers.ex | davidyuk/ae-channel-service | bfde1d3e6ca4fc6bcc4a387381d4838cd3f1ec42 | [
"0BSD"
] | 9 | 2019-04-24T17:21:18.000Z | 2021-07-19T16:41:33.000Z | apps/ae_channel_interface/lib/ae_channel_interface_web/views/error_helpers.ex | davidyuk/ae-channel-service | bfde1d3e6ca4fc6bcc4a387381d4838cd3f1ec42 | [
"0BSD"
] | 68 | 2019-08-06T09:25:13.000Z | 2021-03-10T11:04:41.000Z | apps/ae_channel_interface/lib/ae_channel_interface_web/views/error_helpers.ex | isabella232/ae-channel-service | bfde1d3e6ca4fc6bcc4a387381d4838cd3f1ec42 | [
"ISC"
] | 6 | 2019-10-23T18:23:48.000Z | 2022-03-06T07:02:45.000Z | defmodule AeChannelInterfaceWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
c... | 33.555556 | 87 | 0.677483 |
1c929041801514c7e2c2ba5a4d3d1a5168b3cb39 | 434 | exs | Elixir | .formatter.exs | samhamilton/ex_country_data | 1fd103d2d942e72ea4e94ff49d0b387084c351b6 | [
"MIT"
] | 5 | 2017-11-02T13:39:38.000Z | 2021-01-04T00:07:19.000Z | .formatter.exs | samhamilton/ex_country_data | 1fd103d2d942e72ea4e94ff49d0b387084c351b6 | [
"MIT"
] | 1 | 2021-02-04T04:36:02.000Z | 2021-02-04T04:36:02.000Z | .formatter.exs | samhamilton/ex_country_data | 1fd103d2d942e72ea4e94ff49d0b387084c351b6 | [
"MIT"
] | 1 | 2020-10-08T05:54:33.000Z | 2020-10-08T05:54:33.000Z | [
inputs: [
"lib/**/*.{ex,exs}",
"test/**/*.{ex,exs}",
"mix.exs"
],
locals_without_parens: [
mount: 1,
swagger: 1,
helpers: 1,
version: 1,
plug: :*,
plug_overridable: :*,
requires: :*,
optional: :*,
group: :*,
given: :*,
mutually_exclusive: 1,
exactly_... | 16.074074 | 26 | 0.488479 |
1c92abc0a3b0ae53f0f29cc80ee16a7e5e6a8072 | 28,162 | exs | Elixir | test/floki/html/generated/tokenizer/namedEntities_part11_test.exs | nathanl/floki | 042b3f60f4d9a6218ec85d558d13cc6dac30c587 | [
"MIT"
] | 1,778 | 2015-01-07T14:12:31.000Z | 2022-03-29T22:42:48.000Z | test/floki/html/generated/tokenizer/namedEntities_part11_test.exs | nathanl/floki | 042b3f60f4d9a6218ec85d558d13cc6dac30c587 | [
"MIT"
] | 279 | 2015-01-01T15:54:50.000Z | 2022-03-28T18:06:03.000Z | test/floki/html/generated/tokenizer/namedEntities_part11_test.exs | nathanl/floki | 042b3f60f4d9a6218ec85d558d13cc6dac30c587 | [
"MIT"
] | 166 | 2015-04-24T20:48:02.000Z | 2022-03-28T17:29:05.000Z | defmodule Floki.HTML.Generated.Tokenizer.NamedentitiesPart11Test do
use ExUnit.Case, async: true
# NOTE: This file was generated by "mix generate_tokenizer_tests namedEntities.test".
# html5lib-tests rev: e52ff68cc7113a6ef3687747fa82691079bf9cc5
alias Floki.HTML.Tokenizer
test "tokenize/1 Bad named entity:... | 23.293631 | 87 | 0.628862 |
1c92c5099c4dd66fa97d818b64e64dda15107157 | 1,298 | ex | Elixir | lib/server2server_web/endpoint.ex | iboard/phxserver2server | 8c8d31be87dabdf846469492525d7bf6a61bccdd | [
"MIT"
] | null | null | null | lib/server2server_web/endpoint.ex | iboard/phxserver2server | 8c8d31be87dabdf846469492525d7bf6a61bccdd | [
"MIT"
] | null | null | null | lib/server2server_web/endpoint.ex | iboard/phxserver2server | 8c8d31be87dabdf846469492525d7bf6a61bccdd | [
"MIT"
] | null | null | null | defmodule Server2serverWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :server2server
socket "/socket", Server2serverWeb.UserSocket,
websocket: true,
longpoll: false
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.digest
# when de... | 27.617021 | 69 | 0.717257 |
1c92fee91fbf369c48afdd2457311f733d764d55 | 3,812 | ex | Elixir | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/relyingparty.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/relyingparty.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/relyingparty.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... | 42.355556 | 202 | 0.699895 |
1c93134f8de0e426f9b3589628f09075eea9a11b | 202 | exs | Elixir | machine_translation/MorpHIN/Learned/Resources/TrainingInstances/82.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/TrainingInstances/82.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/TrainingInstances/82.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | **EXAMPLE FILE**
pnoun * pnoun cardinal * cm * nst;
conj * verb noun * verb_aux * nst;
cm * verb pn * verb_aux * nst;
quantifier * particle particle * SYM * adjective;
verb * pnoun cm * cm * nst;
| 25.25 | 50 | 0.643564 |
1c9317eda9b17f1b6fe79e9f01bdb078b884f332 | 2,343 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1beta/model/location.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/game_services/lib/google_api/game_services/v1beta/model/location.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/game_services/lib/google_api/game_services/v1beta/model/location.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... | 39.711864 | 186 | 0.697397 |
1c9339b57bf997d7d84165e76c2c62913aac81c5 | 4,428 | ex | Elixir | apps/core/lib/core/black_list_users/black_list_users.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/lib/core/black_list_users/black_list_users.ex | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/lib/core/black_list_users/black_list_users.ex | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.BlackListUsers do
@moduledoc false
use Core.Search, Application.get_env(:core, :repos)[:read_prm_repo]
import Ecto.{Query, Changeset}, warn: false
import Core.API.Helpers.Connection, only: [get_consumer_id: 1]
alias Core.BlackListUsers.BlackListUser
alias Core.BlackListUsers.Search
alias... | 28.753247 | 114 | 0.659666 |
1c9341e50484de535579286052c3b85c54a8d91f | 1,476 | exs | Elixir | spec/routemaster/middleware/logger_spec.exs | deliveroo/routemaster-client-ex | 059ee64a54bc65b731bce1f8474dc8d907eb05d0 | [
"MIT"
] | 2 | 2017-09-20T08:33:20.000Z | 2018-08-17T11:57:09.000Z | spec/routemaster/middleware/logger_spec.exs | deliveroo/routemaster-client-ex | 059ee64a54bc65b731bce1f8474dc8d907eb05d0 | [
"MIT"
] | 5 | 2017-09-25T21:48:48.000Z | 2018-02-26T09:06:01.000Z | spec/routemaster/middleware/logger_spec.exs | deliveroo/routemaster-client-ex | 059ee64a54bc65b731bce1f8474dc8d907eb05d0 | [
"MIT"
] | null | null | null | defmodule Routemaster.Middleware.LoggerSpec do
use ESpec, async: true
alias Routemaster.Middleware.Logger, as: MidLogger
before do
original_log_level = Logger.level
Logger.configure(level: :info)
{:shared, original_log_level: original_log_level}
end
finally do
Logger.configure(level: shared... | 21.705882 | 71 | 0.607046 |
1c934ae48335bfdb024c66d8eda70693cbd3de71 | 1,304 | exs | Elixir | hitb_umbrella/apps/hitb_web/config/dev.exs | wang12580/hitb | b004aad92660541bcbae5a2af933f48fa6b14cd7 | [
"MIT"
] | 1 | 2020-09-08T10:59:14.000Z | 2020-09-08T10:59:14.000Z | hitb_umbrella/apps/hitb_web/config/dev.exs | wang12580/hitb | b004aad92660541bcbae5a2af933f48fa6b14cd7 | [
"MIT"
] | null | null | null | hitb_umbrella/apps/hitb_web/config/dev.exs | wang12580/hitb | b004aad92660541bcbae5a2af933f48fa6b14cd7 | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :hitb_web, HitbWeb.Endpoint,
# http: [port: 40... | 29.636364 | 170 | 0.690951 |
1c9383c650680c8b72aeb4ab262fe85d07760ee9 | 5,624 | ex | Elixir | lib/new_relic/distributed_trace.ex | alejandrodnm/elixir_agent | b2264d8f54244d136950cadd02f2533967a8e7cb | [
"Apache-2.0"
] | null | null | null | lib/new_relic/distributed_trace.ex | alejandrodnm/elixir_agent | b2264d8f54244d136950cadd02f2533967a8e7cb | [
"Apache-2.0"
] | null | null | null | lib/new_relic/distributed_trace.ex | alejandrodnm/elixir_agent | b2264d8f54244d136950cadd02f2533967a8e7cb | [
"Apache-2.0"
] | null | null | null | defmodule NewRelic.DistributedTrace do
@dt_header "newrelic"
@moduledoc false
alias NewRelic.DistributedTrace.{Context, Tracker}
alias NewRelic.Harvest.Collector.AgentRun
alias NewRelic.Transaction
def accept_distributed_trace_payload(:http, conn) do
case Plug.Conn.get_req_header(conn, @dt_header) do... | 26.280374 | 97 | 0.67123 |
1c938cf604a02dd359b890240a216f35053ab788 | 8,763 | ex | Elixir | lib/bsv/tx_builder.ex | libitx/bsv-ex | 95070d645fd61f9ea6ba8758e2e1b2367d0f9320 | [
"Apache-2.0"
] | 26 | 2019-08-31T13:39:50.000Z | 2022-01-18T10:23:26.000Z | lib/bsv/tx_builder.ex | libitx/bsv-ex | 95070d645fd61f9ea6ba8758e2e1b2367d0f9320 | [
"Apache-2.0"
] | 4 | 2020-04-24T18:24:01.000Z | 2021-06-15T10:59:33.000Z | lib/bsv/tx_builder.ex | libitx/bsv-ex | 95070d645fd61f9ea6ba8758e2e1b2367d0f9320 | [
"Apache-2.0"
] | 4 | 2020-05-21T15:27:31.000Z | 2021-06-13T05:26:47.000Z | defmodule BSV.TxBuilder do
@moduledoc """
A flexible and powerful transaction building module and API.
The TxBuilder accepts inputs and outputs that are modules implementing the
`BSV.Contract` behaviour. This abstraction makes for a succinct and elegant
approach to building transactions. The `BSV.Contract` b... | 33.833977 | 436 | 0.65788 |
1c940dacd73a756d18f90e2bbd77903f6edf0312 | 3,335 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/video_category_list_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/video_category_list_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/you_tube/lib/google_api/you_tube/v3/model/video_category_list_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 46.971831 | 275 | 0.706447 |
1c9415bebc739d79835bfa0c4d8b3871a79c01b4 | 745 | ex | Elixir | lib/leather_web/models/plaid_item.ex | nicksergeant/leather | 15b1c9403999737f7a6ee9a1c0349e047805bbe6 | [
"MIT"
] | 67 | 2016-10-24T04:11:40.000Z | 2021-11-25T16:46:51.000Z | lib/leather_web/models/plaid_item.ex | nicksergeant/leather | 15b1c9403999737f7a6ee9a1c0349e047805bbe6 | [
"MIT"
] | 6 | 2017-08-17T21:43:50.000Z | 2021-11-03T13:13:49.000Z | lib/leather_web/models/plaid_item.ex | nicksergeant/leather | 15b1c9403999737f7a6ee9a1c0349e047805bbe6 | [
"MIT"
] | 7 | 2017-08-13T01:43:37.000Z | 2022-01-11T04:38:27.000Z | defmodule Leather.Plaid.Item do
@moduledoc "The Plaid.Item model for Leather. https://plaid.com/docs/api/#retrieve-item"
alias Leather.Plaid.Item
import Ecto.Changeset
use Ecto.Schema
schema "plaid_items" do
field(:institution_name, :string)
field(:plaid_access_token, :string)
field(:plaid_ite... | 28.653846 | 92 | 0.726174 |
1c941a615f98f9c6934c5999b44a9207aaef024d | 3,451 | ex | Elixir | lib/unblock_me_solver/move.ex | aussiDavid/unblock_me_solver | 12d816b502f6f061444ed9ad6d62f6d9b1a039be | [
"MIT"
] | null | null | null | lib/unblock_me_solver/move.ex | aussiDavid/unblock_me_solver | 12d816b502f6f061444ed9ad6d62f6d9b1a039be | [
"MIT"
] | null | null | null | lib/unblock_me_solver/move.ex | aussiDavid/unblock_me_solver | 12d816b502f6f061444ed9ad6d62f6d9b1a039be | [
"MIT"
] | null | null | null | defmodule UnblockMeSolver.Move do
alias UnblockMeSolver.Move
@moduledoc false
@doc """
Determines if the problem is solvable
A problem is solvable when there are empty spaces to the right of the solution block ['A', 'A']
## Examples
iex> UnblockMeSolver.Move.solvable?([
...> ['B', 'B', nil,... | 25.189781 | 99 | 0.522457 |
1c942df65ea333256709c89716e0b132ed9c4b74 | 6,458 | exs | Elixir | test/mint/integration_test.exs | tcrossland/mint | 9575e41eeffb641814abec3fcf4f9f2eefcbe732 | [
"Apache-2.0"
] | null | null | null | test/mint/integration_test.exs | tcrossland/mint | 9575e41eeffb641814abec3fcf4f9f2eefcbe732 | [
"Apache-2.0"
] | null | null | null | test/mint/integration_test.exs | tcrossland/mint | 9575e41eeffb641814abec3fcf4f9f2eefcbe732 | [
"Apache-2.0"
] | null | null | null | defmodule Mint.IntegrationTest do
use ExUnit.Case, async: true
import Mint.HTTP1.TestHelpers
alias Mint.{TransportError, HTTP}
describe "httpstat.us" do
@describetag :integration
@describetag skip: "Seems like httpstat.us is down"
test "SSL - select HTTP1" do
assert {:ok, conn} =
... | 33.46114 | 94 | 0.548622 |
1c943a57fcd28c0089d2dd7c3daf3dc54a1a0276 | 8,735 | exs | Elixir | config/releases.exs | NathanielScottStevens/hindsight | 0dda1a931cff85b62eb53d623cc59cdb970ec33a | [
"Apache-2.0"
] | null | null | null | config/releases.exs | NathanielScottStevens/hindsight | 0dda1a931cff85b62eb53d623cc59cdb970ec33a | [
"Apache-2.0"
] | null | null | null | config/releases.exs | NathanielScottStevens/hindsight | 0dda1a931cff85b62eb53d623cc59cdb970ec33a | [
"Apache-2.0"
] | null | null | null | import Config
#
# Both compilation and runtime configuration should be set here across all apps.
# Non-prod specific environment configuration should reside in an app's config
# file for that Mix environment. For example: apps/my_app/config/test.exs.
#
# Configuration accessing environment variables should ALWAYS set a... | 27.211838 | 96 | 0.665484 |
1c9485688279cb5e5f0c73db579b6b7474a23dfc | 7,412 | exs | Elixir | test/scenic/component/input/dropdown_test.exs | fhunleth/scenic | 02fc61916ebe0cb01bf436832409226cad2d1f8b | [
"Apache-2.0"
] | null | null | null | test/scenic/component/input/dropdown_test.exs | fhunleth/scenic | 02fc61916ebe0cb01bf436832409226cad2d1f8b | [
"Apache-2.0"
] | null | null | null | test/scenic/component/input/dropdown_test.exs | fhunleth/scenic | 02fc61916ebe0cb01bf436832409226cad2d1f8b | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 2018-11-18.
# Copyright © 2018 Kry10 Industries. All rights reserved.
#
defmodule Scenic.Component.Input.DropdownTest do
use ExUnit.Case, async: true
doctest Scenic
# alias Scenic.Component
alias Scenic.Graph
alias Scenic.Primitive
alias Scenic.ViewPort
alias Scenic.Com... | 29.767068 | 98 | 0.60483 |
1c94c07463d82cd9e33de5cf34df5ad33058d26c | 258 | ex | Elixir | lib/membrane/element/base/sink.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | null | null | null | lib/membrane/element/base/sink.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | null | null | null | lib/membrane/element/base/sink.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Element.Base.Sink do
@moduledoc """
This module has been deprecated in favour of `Membrane.Sink`.
"""
@deprecated "Use `Membrane.Sink` instead"
defmacro __using__(_opts) do
quote do
use Membrane.Sink
end
end
end
| 19.846154 | 63 | 0.693798 |
1c94c9bb6c6c8893cd140935accf2bb5d33c6116 | 48,377 | exs | Elixir | lib/elixir/test/elixir/typespec_test.exs | britto/elixir | 1f6e7093cff4b68dada60b924399bc8404d39a7e | [
"Apache-2.0"
] | 1 | 2020-09-24T12:37:29.000Z | 2020-09-24T12:37:29.000Z | lib/elixir/test/elixir/typespec_test.exs | britto/elixir | 1f6e7093cff4b68dada60b924399bc8404d39a7e | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/typespec_test.exs | britto/elixir | 1f6e7093cff4b68dada60b924399bc8404d39a7e | [
"Apache-2.0"
] | null | null | null | Code.require_file("test_helper.exs", __DIR__)
# Holds tests for both Kernel.Typespec and Code.Typespec
defmodule TypespecTest do
use ExUnit.Case, async: true
alias TypespecTest.TypespecSample
defstruct [:hello]
defmacrop test_module(do: block) do
quote do
{:module, _, bytecode, _} =
defmodu... | 33.688719 | 110 | 0.534758 |
1c94ca8a1a512638b641ff7e4ffa8e5773e74cb9 | 2,026 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_contexts_1.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_contexts_1.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/creative_contexts_1.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... | 38.961538 | 281 | 0.758144 |
1c94d1601703330b88a62b22bd9a80307d41b539 | 6,613 | ex | Elixir | lib/transmission.ex | SparkPost/elixir-sparkpost | cf0b1b5300235b8b1c06b37b8db5e6b30f1f88f5 | [
"Apache-2.0"
] | 47 | 2016-01-30T07:24:10.000Z | 2021-05-29T13:47:49.000Z | lib/transmission.ex | SparkPost/elixir-sparkpost | cf0b1b5300235b8b1c06b37b8db5e6b30f1f88f5 | [
"Apache-2.0"
] | 48 | 2016-01-21T22:11:14.000Z | 2020-10-12T06:13:50.000Z | lib/transmission.ex | SparkPost/elixir-sparkpost | cf0b1b5300235b8b1c06b37b8db5e6b30f1f88f5 | [
"Apache-2.0"
] | 12 | 2016-02-27T23:04:13.000Z | 2018-05-03T15:34:04.000Z | defmodule SparkPost.Transmission do
@moduledoc """
The SparkPost Transmission API endpoint for sending email. Use `SparkPost.Transmission.send/1` to
send messages, `SparkPost.Transmission.list/1` to list previous sends and `SparkPost.Transmission.get/1` to
retrieve details on a given transmission.
Check out ... | 35.363636 | 109 | 0.672615 |
1c94fe52985f262f4c6d67e38267601173eafd08 | 1,861 | ex | Elixir | clients/authorized_buyers_marketplace/lib/google_api/authorized_buyers_marketplace/v1/model/uri_targeting.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/authorized_buyers_marketplace/lib/google_api/authorized_buyers_marketplace/v1/model/uri_targeting.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/authorized_buyers_marketplace/lib/google_api/authorized_buyers_marketplace/v1/model/uri_targeting.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.22 | 210 | 0.735626 |
1c95040e70afe9e9279a423ac7f7266a273fc109 | 721 | ex | Elixir | lib/networking/mssp.ex | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | lib/networking/mssp.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | lib/networking/mssp.ex | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Networking.MSSP do
@moduledoc """
Helpers for dealing with the MSSP protocol
http://tintin.sourceforge.net/mssp/
"""
@mssp_var 1
@mssp_val 2
alias Game.Config
alias Game.Server
alias Game.Session
def name() do
name = Config.game_name()
<<@mssp_var>> <> "NAME" <> <<@mssp_val>> <... | 18.973684 | 63 | 0.604716 |
1c9520bd1c39fa85781872e7d35c84066bf5b72f | 2,989 | exs | Elixir | config/target.exs | mtrudel/upstairsbox | 010da404a3b267188b35e72a3043681821274e4c | [
"MIT"
] | null | null | null | config/target.exs | mtrudel/upstairsbox | 010da404a3b267188b35e72a3043681821274e4c | [
"MIT"
] | null | null | null | config/target.exs | mtrudel/upstairsbox | 010da404a3b267188b35e72a3043681821274e4c | [
"MIT"
] | null | null | null | import Config
# Use shoehorn to start the main application. See the shoehorn
# docs for separating out critical OTP applications such as those
# involved with firmware updates.
config :shoehorn,
init: [:nerves_runtime, :nerves_pack],
app: Mix.Project.config()[:app]
# Nerves Runtime can enumerate hardware devices... | 29.019417 | 81 | 0.685848 |
1c9540be707509049c41a2c4fc61d59130a3c564 | 15,407 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/campaigns.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/campaigns.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/api/campaigns.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 46.267267 | 486 | 0.635425 |
1c956048ff0dfce7d103572b08d32a81548c2266 | 592 | ex | Elixir | spec/messages_enqueuers/dummy_modules_for_tests/dummy_enqueuer.ex | botsunit/wok_async | 466f16057ec6af1cb12990b2edd33a34aab7f8ec | [
"BSD-3-Clause"
] | null | null | null | spec/messages_enqueuers/dummy_modules_for_tests/dummy_enqueuer.ex | botsunit/wok_async | 466f16057ec6af1cb12990b2edd33a34aab7f8ec | [
"BSD-3-Clause"
] | null | null | null | spec/messages_enqueuers/dummy_modules_for_tests/dummy_enqueuer.ex | botsunit/wok_async | 466f16057ec6af1cb12990b2edd33a34aab7f8ec | [
"BSD-3-Clause"
] | null | null | null | defmodule WokAsyncMessageHandler.MessagesEnqueuers.DummyEnqueuer do
defmodule Serializers.TestEctoSchema do
def message_versions, do: [1]
def created(struct, _version), do: %{id: struct.id}
def partition_key(struct), do: struct.id
def message_route(event), do: "bot/resource/#{event}"
end
@datasto... | 37 | 81 | 0.793919 |
1c957be8b12991105b9a7cec58fd628dd3eac1d0 | 842 | ex | Elixir | lib/phoenix_events_live_web/schema/types.ex | D-D-ing/phoenix-events-live | b68bdfdac1afc241574a0a8ffce25cf43bb71abe | [
"MIT"
] | null | null | null | lib/phoenix_events_live_web/schema/types.ex | D-D-ing/phoenix-events-live | b68bdfdac1afc241574a0a8ffce25cf43bb71abe | [
"MIT"
] | null | null | null | lib/phoenix_events_live_web/schema/types.ex | D-D-ing/phoenix-events-live | b68bdfdac1afc241574a0a8ffce25cf43bb71abe | [
"MIT"
] | null | null | null | defmodule PhoenixEventsLiveWeb.Schema.Types do
use Absinthe.Schema.Notation
use Absinthe.Ecto, repo: PhoenixEventsLive.Repo
object :interaction do
field :id, non_null(:id)
field :name, non_null(:string)
field :type, non_null(:integer)
field :text, :string
field :value, :string
field :visi... | 23.388889 | 56 | 0.685273 |
1c9591cb492cf8ee310bd8f479456793e68cefad | 1,665 | ex | Elixir | lib/phoenix/router/route.ex | chvanikoff/phoenix | bf7011b9f87afff0e0012d5f7a3adf0463040765 | [
"MIT"
] | null | null | null | lib/phoenix/router/route.ex | chvanikoff/phoenix | bf7011b9f87afff0e0012d5f7a3adf0463040765 | [
"MIT"
] | null | null | null | lib/phoenix/router/route.ex | chvanikoff/phoenix | bf7011b9f87afff0e0012d5f7a3adf0463040765 | [
"MIT"
] | null | null | null | defmodule Phoenix.Router.Route do
# This module defines the Route struct that is used
# throughout Phoenix's router. This struct is private
# as it contains internal routing information.
@moduledoc false
alias Phoenix.Router.Route
@doc """
The `Phoenix.Router.Route` struct. It stores:
* :verb - the... | 35.425532 | 93 | 0.667868 |
1c95ba1c2bf983a12e4e00efb0152d26918c7054 | 4,806 | ex | Elixir | lib/mix/lib/mix/tasks/escript.install.ex | TurtleAI/elixir | 2fb41ebef4d06315dd6c05ee00899572b27ee50a | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/escript.install.ex | TurtleAI/elixir | 2fb41ebef4d06315dd6c05ee00899572b27ee50a | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/escript.install.ex | TurtleAI/elixir | 2fb41ebef4d06315dd6c05ee00899572b27ee50a | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Escript.Install do
use Mix.Task
@shortdoc "Installs an escript locally"
@moduledoc """
Installs an escript locally.
If no argument is supplied but there is an escript in the project's root directory
(created with `mix escript.build`), then the escript will be installed
locally. For ... | 33.608392 | 96 | 0.678527 |
1c95d5dd7bbbaa9fbbf10c940b583812becc7a2f | 2,049 | exs | Elixir | test/guardian/plug/ensure_not_authenticated_test.exs | cgorshing/guardian | b62f961e948dc518e6f767af08c2c5a9f1667702 | [
"MIT"
] | 3,135 | 2015-12-19T05:35:41.000Z | 2022-03-29T00:27:25.000Z | test/guardian/plug/ensure_not_authenticated_test.exs | cgorshing/guardian | b62f961e948dc518e6f767af08c2c5a9f1667702 | [
"MIT"
] | 536 | 2015-12-28T04:40:31.000Z | 2022-03-30T22:45:59.000Z | test/guardian/plug/ensure_not_authenticated_test.exs | cgorshing/guardian | b62f961e948dc518e6f767af08c2c5a9f1667702 | [
"MIT"
] | 451 | 2015-12-20T23:43:49.000Z | 2022-03-24T10:36:14.000Z | defmodule Guardian.Plug.EnsureNotAuthenticatedTest do
@moduledoc false
use Plug.Test
use ExUnit.Case, async: true
alias Guardian.Plug.EnsureNotAuthenticated
@resource %{id: "bobby"}
defmodule Handler do
@moduledoc false
import Plug.Conn
@behaviour Guardian.Plug.ErrorHandler
@impl Guard... | 26.960526 | 91 | 0.661786 |
1c95dd20c70f404fe8d458d1543dd542071a9caa | 2,292 | ex | Elixir | lib/surface/live_view.ex | jprincipe/surface | 011ff48401f6b3659f03fbd6a92e7028b0173547 | [
"MIT"
] | null | null | null | lib/surface/live_view.ex | jprincipe/surface | 011ff48401f6b3659f03fbd6a92e7028b0173547 | [
"MIT"
] | null | null | null | lib/surface/live_view.ex | jprincipe/surface | 011ff48401f6b3659f03fbd6a92e7028b0173547 | [
"MIT"
] | null | null | null | defmodule Surface.LiveView do
@moduledoc """
A wrapper component around `Phoenix.LiveView`.
Since this module is just a wrapper around `Phoenix.LiveView`, you
cannot define custom properties for it. Only `:id` and `:session`
are available. However, built-in directives like `:for` and `:if`
can be used norm... | 24.913043 | 88 | 0.602094 |
1c9609c7ae4b1df74ea93292e78dd5e7bd861dfd | 2,504 | exs | Elixir | test/acceptance/food_selection_test.exs | neilfulwiler/open_pantry | 4b705f2282c7b2365a784503c9f1bdd34c741798 | [
"MIT"
] | 41 | 2017-10-04T00:33:46.000Z | 2021-04-09T01:33:34.000Z | test/acceptance/food_selection_test.exs | openpantry/open_pantry | 27d898a65dd6f44b325f48d41bc448bb486d9c6f | [
"MIT"
] | 74 | 2017-09-20T03:36:17.000Z | 2018-11-20T20:46:16.000Z | test/acceptance/food_selection_test.exs | neilfulwiler/open_pantry | 4b705f2282c7b2365a784503c9f1bdd34c741798 | [
"MIT"
] | 12 | 2017-10-04T10:02:49.000Z | 2021-12-28T22:57:20.000Z | defmodule OpenPantry.FoodSelectionTest do
use OpenPantry.Web.AcceptanceCase, async: true
import OpenPantry.CompleteFacility
import OpenPantry.Web.UserSelectionView, only: [login_token: 1]
import OpenPantry.Web.DisplayLogic, only: [dasherize: 1]
import Wallaby.Query, only: [css: 2, button: 1, link: 1]
test... | 37.373134 | 98 | 0.70008 |
1c960d8419921fa65fa4a4598452ee839187584d | 96 | exs | Elixir | mix_ex/test/mix_ex_test.exs | QuirkOo/secret-elixir | ff707ecc34c84b3e1e32010d0d7f23ccacf486cc | [
"MIT"
] | 1 | 2018-05-16T16:54:31.000Z | 2018-05-16T16:54:31.000Z | mix_ex/test/mix_ex_test.exs | QuirkOo/secret-elixir | ff707ecc34c84b3e1e32010d0d7f23ccacf486cc | [
"MIT"
] | null | null | null | mix_ex/test/mix_ex_test.exs | QuirkOo/secret-elixir | ff707ecc34c84b3e1e32010d0d7f23ccacf486cc | [
"MIT"
] | null | null | null | defmodule MixExTest do
use ExUnit.Case
test "the truth" do
assert 1 + 1 == 2
end
end
| 12 | 22 | 0.645833 |
1c96185f695eddbd893c74f56d51d40e1244b141 | 452 | exs | Elixir | test/models/project_test.exs | philosodad/dashex | a3662d3b95e48fd3e7433b30c8a7505accf58e77 | [
"MIT"
] | null | null | null | test/models/project_test.exs | philosodad/dashex | a3662d3b95e48fd3e7433b30c8a7505accf58e77 | [
"MIT"
] | null | null | null | test/models/project_test.exs | philosodad/dashex | a3662d3b95e48fd3e7433b30c8a7505accf58e77 | [
"MIT"
] | null | null | null | defmodule Dashex.ProjectTest do
use Dashex.ModelCase
alias Dashex.Project
@valid_attrs %{homepage: "some content", name: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Project.changeset(%Project{}, @valid_attrs)
assert changeset.valid?
end
test "change... | 23.789474 | 64 | 0.727876 |
1c961f7746f0284afde615b51db809b38389a88f | 1,770 | exs | Elixir | test/ua_inspector/config_test.exs | elixir-twister/ua_inspector | 70642c66c9562d6879fd462e2f9993edb8ab4ce1 | [
"Apache-2.0"
] | null | null | null | test/ua_inspector/config_test.exs | elixir-twister/ua_inspector | 70642c66c9562d6879fd462e2f9993edb8ab4ce1 | [
"Apache-2.0"
] | null | null | null | test/ua_inspector/config_test.exs | elixir-twister/ua_inspector | 70642c66c9562d6879fd462e2f9993edb8ab4ce1 | [
"Apache-2.0"
] | null | null | null | defmodule UAInspector.ConfigTest do
use ExUnit.Case, async: false
alias UAInspector.Config
setup do
app_path = Application.get_env(:ua_inspector, :database_path)
on_exit fn ->
Application.put_env(:ua_inspector, :database_path, app_path)
end
end
test "application configuration" do
pa... | 26.029412 | 74 | 0.682486 |
1c9632dde083f5b3aa21dcdbbde94022935cc7df | 2,291 | ex | Elixir | apps/local_hex_web/lib/local_hex_web/telemetry.ex | FrancisMurillo/local_hex_mirror | 005ddaeeb1a004bc44fde92c8ede64e8a399f2c5 | [
"MIT"
] | null | null | null | apps/local_hex_web/lib/local_hex_web/telemetry.ex | FrancisMurillo/local_hex_mirror | 005ddaeeb1a004bc44fde92c8ede64e8a399f2c5 | [
"MIT"
] | null | null | null | apps/local_hex_web/lib/local_hex_web/telemetry.ex | FrancisMurillo/local_hex_mirror | 005ddaeeb1a004bc44fde92c8ede64e8a399f2c5 | [
"MIT"
] | null | null | null | defmodule LocalHexWeb.Telemetry do
use Supervisor
import Telemetry.Metrics
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end
@impl true
def init(_arg) do
children = [
# Telemetry poller will execute the given period measurements
# every 10_000ms. Learn... | 31.819444 | 88 | 0.655172 |
1c96335cb71ca3245be3b295065243287d648642 | 11,145 | exs | Elixir | test/scenic/component/input/text_field_test.exs | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | test/scenic/component/input/text_field_test.exs | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | test/scenic/component/input/text_field_test.exs | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 2018-09-18.
# Rewritten by Boyd Multerer on 2021-05-23
# Copyright © 2018-2021 Kry10 Limited. All rights reserved.
#
defmodule Scenic.Component.Input.TextFieldTest do
use ExUnit.Case, async: false
doctest Scenic.Component.Input.TextField
alias Scenic.Graph
alias Scenic.Scene... | 32.876106 | 99 | 0.621265 |
1c963938d27be31f8402586005a64abf2198ab41 | 16,933 | exs | Elixir | apps/mcam_server/test/mcam_server/accounts_test.exs | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | apps/mcam_server/test/mcam_server/accounts_test.exs | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | 8 | 2020-11-16T09:59:12.000Z | 2020-11-16T10:13:07.000Z | apps/mcam_server/test/mcam_server/accounts_test.exs | paulanthonywilson/mcam | df9c5aaae00b568749dff22613636f5cb92f905a | [
"MIT"
] | null | null | null | defmodule McamServer.AccountsTest do
use McamServer.DataCase
alias McamServer.Accounts
import McamServer.AccountsFixtures
alias McamServer.Accounts.{User, UserToken}
alias McamServer.Subscriptions
describe "get_user_by_email/1" do
test "does not return the user if the email does not exist" do
re... | 34.208081 | 102 | 0.661962 |
1c964707982a9dd158ffe0a762ecbb5803a144d6 | 545 | exs | Elixir | config/prod.exs | billsaysthis/fd-events | 3316e25565f4c4bca12d697b3614283689ff6807 | [
"MIT"
] | null | null | null | config/prod.exs | billsaysthis/fd-events | 3316e25565f4c4bca12d697b3614283689ff6807 | [
"MIT"
] | null | null | null | config/prod.exs | billsaysthis/fd-events | 3316e25565f4c4bca12d697b3614283689ff6807 | [
"MIT"
] | null | null | null | use Mix.Config
# ## SSL Support
#
# To get SSL working, you will need to set:
#
# https: [port: 443,
# keyfile: System.get_env("SOME_APP_SSL_KEY_PATH"),
# certfile: System.get_env("SOME_APP_SSL_CERT_PATH")]
#
# Where those two env variables point to a file on
# disk for the key and cert.
c... | 25.952381 | 85 | 0.695413 |
1c96516d77c999ee07108eca509a23f5e3a07956 | 5,286 | ex | Elixir | lib/ex_unit/lib/ex_unit/cli_formatter.ex | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | 1 | 2015-11-12T19:23:45.000Z | 2015-11-12T19:23:45.000Z | lib/ex_unit/lib/ex_unit/cli_formatter.ex | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/cli_formatter.ex | enokd/elixir | e39b32f235082b8a29fcb22d250c822cca98609f | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit.CLIFormatter do
@moduledoc false
use GenEvent.Behaviour
import ExUnit.Formatter, only: [format_time: 2, format_filters: 2, format_test_failure: 5, format_test_case_failure: 4]
defrecord Config, tests_counter: 0, invalids_counter: 0, failures_counter: 0,
skips_counter: 0, ... | 28.885246 | 121 | 0.639425 |
1c96a59936ffbdc168b75559e1e57f75f68916b8 | 63 | ex | Elixir | lib/sanbase_web/views/layout_view.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase_web/views/layout_view.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase_web/views/layout_view.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule SanbaseWeb.LayoutView do
use SanbaseWeb, :view
end
| 15.75 | 34 | 0.809524 |
1c96a9a65528eb8552d0a04dbf07896ca70f03dc | 3,123 | exs | Elixir | test/groupher_server/accounts/published/published_repos_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/accounts/published/published_repos_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/accounts/published/published_repos_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.Accounts.Published.Repo do
use GroupherServer.TestTools
alias GroupherServer.{Accounts, CMS}
alias Accounts.Model.User
alias Helper.ORM
@publish_count 10
setup do
{:ok, user} = db_insert(:user)
{:ok, user2} = db_insert(:user)
{:ok, repo} = db_insert(:repo)
{:... | 33.223404 | 91 | 0.631124 |
1c96a9c91874f0916c5560f138ee5c6931b44119 | 919 | ex | Elixir | lib/app_web/router.ex | mzgajner/smena | 6c0243ae1e8d1cef6e8a8e240f0f6b703ea638c9 | [
"Unlicense"
] | null | null | null | lib/app_web/router.ex | mzgajner/smena | 6c0243ae1e8d1cef6e8a8e240f0f6b703ea638c9 | [
"Unlicense"
] | null | null | null | lib/app_web/router.ex | mzgajner/smena | 6c0243ae1e8d1cef6e8a8e240f0f6b703ea638c9 | [
"Unlicense"
] | null | null | null | defmodule SmenaWeb.Router do
use SmenaWeb, :router
pipeline :api do
plug :accepts, ["json"]
end
scope "/", SmenaWeb do
get "/", IndexController, :self
end
scope "/api", SmenaWeb do
pipe_through :api
resources "/punches", PunchController, only: [:index, :create]
end
# Enables LiveDas... | 27.029412 | 70 | 0.700762 |
1c96c5f8443c90f1bef00cdeb1b4f6091f958995 | 1,580 | exs | Elixir | myApp/mix.exs | CaptainAwesomeDi/unnamedproject | 1b2bbdbc9774a073e70eb8fcd255339d7a36df70 | [
"MIT"
] | null | null | null | myApp/mix.exs | CaptainAwesomeDi/unnamedproject | 1b2bbdbc9774a073e70eb8fcd255339d7a36df70 | [
"MIT"
] | null | null | null | myApp/mix.exs | CaptainAwesomeDi/unnamedproject | 1b2bbdbc9774a073e70eb8fcd255339d7a36df70 | [
"MIT"
] | null | null | null | defmodule MyApp.Mixfile do
use Mix.Project
def project do
[
app: :myApp,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
aliases: aliases(),
deps: deps... | 25.901639 | 79 | 0.582278 |
1c96d866cc8e3c9d65bd8996cebd51e8f702ac0f | 674 | exs | Elixir | config/test.exs | Foxlabsdevelopers/cv_creator | c77d52cdc67180ed369a3dbd298ca2dea5131c60 | [
"MIT"
] | null | null | null | config/test.exs | Foxlabsdevelopers/cv_creator | c77d52cdc67180ed369a3dbd298ca2dea5131c60 | [
"MIT"
] | 2 | 2021-05-24T21:41:25.000Z | 2021-05-25T16:02:09.000Z | config/test.exs | Foxlabsdevelopers/cv_creator | c77d52cdc67180ed369a3dbd298ca2dea5131c60 | [
"MIT"
] | null | null | null | use Mix.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 :cv_creator, CvCreator.Repo,
username: "postgres",
password: "postgres",
database: "cv_creator_test#{S... | 29.304348 | 69 | 0.753709 |
1c96da1a0c3558e7563e10fda6f283e772bc7c57 | 990 | ex | Elixir | test/support/conn_case.ex | billstclair/readerl | bd81d17109a1fb207d98f1ba1c498f66b195d1ba | [
"BSD-3-Clause"
] | 3 | 2015-10-31T02:33:29.000Z | 2016-07-19T06:25:03.000Z | test/support/conn_case.ex | billstclair/readerl | bd81d17109a1fb207d98f1ba1c498f66b195d1ba | [
"BSD-3-Clause"
] | null | null | null | test/support/conn_case.ex | billstclair/readerl | bd81d17109a1fb207d98f1ba1c498f66b195d1ba | [
"BSD-3-Clause"
] | null | null | null | defmodule Readerl.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
imports other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the da... | 23.571429 | 66 | 0.706061 |
1c96ebeb231c9f94a8de1c3856223821d8908811 | 670 | ex | Elixir | lib/chat_api_web/views/group_message_view.ex | vbrazo/chat_elixir_api | f2595d123934014b3a7c1b3b63b987fa3df5b3ad | [
"MIT"
] | 2 | 2021-04-30T08:30:26.000Z | 2021-04-30T16:20:39.000Z | lib/chat_api_web/views/group_message_view.ex | vbrazo/chat_elixir_api | f2595d123934014b3a7c1b3b63b987fa3df5b3ad | [
"MIT"
] | null | null | null | lib/chat_api_web/views/group_message_view.ex | vbrazo/chat_elixir_api | f2595d123934014b3a7c1b3b63b987fa3df5b3ad | [
"MIT"
] | null | null | null | defmodule ChatApiWeb.GroupMessageView do
use ChatApiWeb, :view
alias ChatApiWeb.{GroupMessageView, FormatHelpers}
def render("show.json", %{group_message: group_message}) do
%{group_message: render_one(group_message, GroupMessageView, "group_message.json")}
end
def render("group_message.json", %{group_m... | 24.814815 | 87 | 0.683582 |
1c96f373e183ec31f8fa413b85e966410c8e7b9b | 1,134 | exs | Elixir | elixir/config/config.exs | XelaRellum/old_password | b461941069bc7f1187776a992f86c89317ab215e | [
"MIT"
] | null | null | null | elixir/config/config.exs | XelaRellum/old_password | b461941069bc7f1187776a992f86c89317ab215e | [
"MIT"
] | null | null | null | elixir/config/config.exs | XelaRellum/old_password | b461941069bc7f1187776a992f86c89317ab215e | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
import Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the parent... | 36.580645 | 73 | 0.753086 |
1c9737a86a4c7e698fa5db110c8e37f8c7052773 | 118 | exs | Elixir | test/faker/vehicle_test.exs | joshillian/faker | eeede9d7c35c543dcf6abe72dc476e755c80415b | [
"MIT"
] | 540 | 2015-01-05T16:31:49.000Z | 2019-09-25T00:40:27.000Z | test/faker/vehicle_test.exs | joshillian/faker | eeede9d7c35c543dcf6abe72dc476e755c80415b | [
"MIT"
] | 172 | 2015-01-06T03:55:17.000Z | 2019-10-03T12:58:02.000Z | test/faker/vehicle_test.exs | joshillian/faker | eeede9d7c35c543dcf6abe72dc476e755c80415b | [
"MIT"
] | 163 | 2015-01-05T21:24:54.000Z | 2019-10-03T07:59:42.000Z | defmodule Faker.VehicleTest do
use ExUnit.Case, async: true
doctest Faker.Vehicle
doctest Faker.Vehicle.En
end
| 16.857143 | 30 | 0.779661 |
1c975082925cc9c23579882f88c1c48819919e5b | 2,392 | ex | Elixir | samples/client/petstore/elixir/lib/swagger_petstore/api/fake.ex | dangthaison91/swagger-codegen-moya | d0f3a119f2af176cfad10a80c77dc9c77c9ed22f | [
"Apache-2.0"
] | 3 | 2017-09-07T16:18:04.000Z | 2020-11-05T02:20:50.000Z | samples/client/petstore/elixir/lib/swagger_petstore/api/fake.ex | dangthaison91/swagger-codegen-moya | d0f3a119f2af176cfad10a80c77dc9c77c9ed22f | [
"Apache-2.0"
] | null | null | null | samples/client/petstore/elixir/lib/swagger_petstore/api/fake.ex | dangthaison91/swagger-codegen-moya | d0f3a119f2af176cfad10a80c77dc9c77c9ed22f | [
"Apache-2.0"
] | 5 | 2017-05-01T15:47:40.000Z | 2021-12-29T03:23:06.000Z | defmodule SwaggerPetstore.Api.Fake do
@moduledoc """
Documentation for SwaggerPetstore.Api.Fake.
"""
use Tesla
plug Tesla.Middleware.BaseUrl, "http://petstore.swagger.io/v2"
plug Tesla.Middleware.JSON
def test_client_model(body) do
method = [method: :patch]
url = [url: "/fake"]
query_params... | 45.132075 | 415 | 0.674331 |
1c97541044363464af39b8619bd674899347a30d | 915 | ex | Elixir | lib/sendgrid/marketing_campaigns/contacts/recipient.ex | churcho/sendgrid_elixir | 1bb421d044e21e51bd761f14dfb61b9e431f2eb7 | [
"MIT"
] | 83 | 2016-02-28T22:41:34.000Z | 2022-03-29T12:20:53.000Z | lib/sendgrid/marketing_campaigns/contacts/recipient.ex | churcho/sendgrid_elixir | 1bb421d044e21e51bd761f14dfb61b9e431f2eb7 | [
"MIT"
] | 32 | 2016-07-05T14:11:11.000Z | 2021-12-15T05:39:58.000Z | lib/sendgrid/marketing_campaigns/contacts/recipient.ex | churcho/sendgrid_elixir | 1bb421d044e21e51bd761f14dfb61b9e431f2eb7 | [
"MIT"
] | 46 | 2016-02-29T12:39:21.000Z | 2021-06-22T13:55:14.000Z | defmodule SendGrid.Contacts.Recipient do
@moduledoc """
Struct to help with creating a recipient.
"""
alias SendGrid.Contacts.Recipient
@enforce_keys [:email]
defstruct [:custom_fields, :email]
@type t :: %Recipient{
email: String.t(),
custom_fields: nil | map()
}
@doc ""... | 24.72973 | 92 | 0.645902 |
1c9754b200221142dc28a104e16c79c55c037446 | 2,977 | ex | Elixir | lib/earmark/helpers/ast_helpers.ex | ZeLarpMaster/earmark | 35c9661d6647059e507c0278347e21d92351c417 | [
"Apache-1.1"
] | null | null | null | lib/earmark/helpers/ast_helpers.ex | ZeLarpMaster/earmark | 35c9661d6647059e507c0278347e21d92351c417 | [
"Apache-1.1"
] | null | null | null | lib/earmark/helpers/ast_helpers.ex | ZeLarpMaster/earmark | 35c9661d6647059e507c0278347e21d92351c417 | [
"Apache-1.1"
] | null | null | null | defmodule Earmark.Helpers.AstHelpers do
@moduledoc false
import Earmark.Helpers
import Earmark.Helpers.AttrParser
alias Earmark.Block
@doc false
def augment_tag_with_ial(tags, ial)
def augment_tag_with_ial([{t, a, c}|tags], atts) do
[{t, merge_attrs(a, atts), c}|tags]
end
@doc false
def c... | 26.580357 | 120 | 0.603628 |
1c9757ae0b25d78fd33e7b9971bce8a3c0c20667 | 2,254 | ex | Elixir | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/api/express_route_circuit_routes_table.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.Network/lib/microsoft/azure/management/network/api/express_route_circuit_routes_table.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Network/lib/microsoft/azure/management/network/api/express_route_circuit_routes_table.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.Network.Api.ExpressRouteCircuitRoutesTable do
@moduledoc """
API calls for all endpoints tagged `ExpressRouteCircui... | 51.227273 | 256 | 0.765306 |
1c9765e3b092cfc381ac4695d47e69e03b18595a | 17,303 | ex | Elixir | lib/mix/lib/mix/tasks/format.ex | NJichev/elixir | aef81d1aadfd9522ab4efb6d04103a73584ac9a1 | [
"Apache-2.0"
] | 2 | 2018-11-15T06:38:14.000Z | 2018-11-17T18:03:14.000Z | lib/mix/lib/mix/tasks/format.ex | NJichev/elixir | aef81d1aadfd9522ab4efb6d04103a73584ac9a1 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/format.ex | NJichev/elixir | aef81d1aadfd9522ab4efb6d04103a73584ac9a1 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Format do
use Mix.Task
@shortdoc "Formats the given files/patterns"
@moduledoc """
Formats the given files and patterns.
mix format mix.exs "lib/**/*.{ex,exs}" "test/**/*.{ex,exs}"
If any of the files is `-`, then the output is read from stdin
and written to stdout.
## Forma... | 34.399602 | 110 | 0.674392 |
1c979800173e7bd3f6c60a56423cb96c964d5751 | 12,920 | exs | Elixir | test/yesql_test.exs | zph/yesql | 08b3d83d01fa71da9e000896950d9a4c671e936a | [
"Apache-2.0"
] | null | null | null | test/yesql_test.exs | zph/yesql | 08b3d83d01fa71da9e000896950d9a4c671e936a | [
"Apache-2.0"
] | null | null | null | test/yesql_test.exs | zph/yesql | 08b3d83d01fa71da9e000896950d9a4c671e936a | [
"Apache-2.0"
] | 1 | 2020-02-04T17:48:37.000Z | 2020-02-04T17:48:37.000Z | defmodule YesqlTest do
use ExUnit.Case
doctest Yesql
import TestHelper
defmodule Query do
use Yesql, driver: Postgrex
Yesql.defquery("test/sql/select_older_cats.sql")
Yesql.defquery("test/sql/insert_cat.sql")
end
defmodule QueryConn do
use Yesql, driver: Postgrex, conn: YesqlTest.Postgrex... | 35.300546 | 101 | 0.578096 |
1c97b65df9c13785a2f39032f26a0ab30ea17da4 | 567 | ex | Elixir | lib/ueberauth/strategy/line/api.ex | LucidModules/ueberauth_line | 686e41ddeef83ecaf55e21ca0bf0337645deb9c1 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/line/api.ex | LucidModules/ueberauth_line | 686e41ddeef83ecaf55e21ca0bf0337645deb9c1 | [
"MIT"
] | null | null | null | lib/ueberauth/strategy/line/api.ex | LucidModules/ueberauth_line | 686e41ddeef83ecaf55e21ca0bf0337645deb9c1 | [
"MIT"
] | null | null | null | defmodule Ueberauth.Strategy.Line.Api do
@moduledoc """
TODO: this is a wrapper on the line actions like verify token, authorize requests etc
keeping all methods in the Line module reduces readability
to get profile, an openid permission is required
TODO: maybe separate library as LineApi?
- is there any ... | 21 | 87 | 0.744268 |
1c97dcb5103b1d0e8083e77adb5cfb9505fa30a2 | 1,516 | exs | Elixir | apps/ello_core/mix.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 16 | 2017-06-21T21:31:20.000Z | 2021-05-09T03:23:26.000Z | apps/ello_core/mix.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 25 | 2017-06-07T12:18:28.000Z | 2018-06-08T13:27:43.000Z | apps/ello_core/mix.exs | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 3 | 2018-06-14T15:34:07.000Z | 2022-02-28T21:06:13.000Z | defmodule Ello.Core.Mixfile do
use Mix.Project
def project do
[app: :ello_core,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
... | 27.563636 | 80 | 0.562005 |
1c982fb03f6b012a832a4800cba66766ed6b3cd4 | 1,854 | ex | Elixir | apps/ewallet/lib/ewallet/permissions/bouncer/scopes/membership_scope.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/ewallet/lib/ewallet/permissions/bouncer/scopes/membership_scope.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/ewallet/lib/ewallet/permissions/bouncer/scopes/membership_scope.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-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 ... | 31.965517 | 89 | 0.71575 |
1c98311b314129753e70ebe1234470dfdcd06b8d | 1,625 | ex | Elixir | lib/ElCloud/search/storage.ex | Sapfir0/elCloud | 3ef9e8d2400898250ee65d36870672e76006c263 | [
"Unlicense"
] | 2 | 2021-05-30T20:11:44.000Z | 2021-12-20T19:08:56.000Z | lib/ElCloud/search/storage.ex | Sapfir0/elCloud | 3ef9e8d2400898250ee65d36870672e76006c263 | [
"Unlicense"
] | null | null | null | lib/ElCloud/search/storage.ex | Sapfir0/elCloud | 3ef9e8d2400898250ee65d36870672e76006c263 | [
"Unlicense"
] | 1 | 2022-01-23T05:29:08.000Z | 2022-01-23T05:29:08.000Z | defmodule ElCloud.Search.Helper do
@moduledoc """
The Store context.
"""
import Ecto.Query, warn: false
@data_dir Application.get_env(:elCloud, ElCloudWeb.FileStorageController)[:data_dir]
@indexes_file Application.get_env(:elCloud, ElCloud.Search.Helper)[:indexes_file]
@spec not_indexed_search(String.t(... | 31.25 | 113 | 0.695385 |
1c983328ef58d3105a1c97d193ecee9d34f93ad3 | 264 | exs | Elixir | priv/repo/migrations/20200211155547_add_spotify_to_podcasts.exs | gustavoarmoa/changelog.com | e898a9979a237ae66962714821ed8633a4966f37 | [
"MIT"
] | 2,599 | 2016-10-25T15:02:53.000Z | 2022-03-26T02:34:42.000Z | priv/repo/migrations/20200211155547_add_spotify_to_podcasts.exs | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | 253 | 2016-10-25T20:29:24.000Z | 2022-03-29T21:52:36.000Z | priv/repo/migrations/20200211155547_add_spotify_to_podcasts.exs | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | 298 | 2016-10-25T15:18:31.000Z | 2022-01-18T21:25:52.000Z | defmodule Changelog.Repo.Migrations.AddSpotifyToPodcasts do
use Ecto.Migration
def change do
alter table(:podcasts) do
add(:spotify_url, :string)
add(:welcome, :text)
end
rename table(:podcasts), :itunes_url, to: :apple_url
end
end
| 20.307692 | 59 | 0.69697 |
1c98849c804cc77e4b56f509510349ac4b65380c | 1,469 | ex | Elixir | lib/honu/attachments/attachment.ex | elixir-honu/honu | e82cbc4c2457b3d64b929cc013c17cdb4fcc8f6c | [
"MIT"
] | 1 | 2021-08-08T10:33:42.000Z | 2021-08-08T10:33:42.000Z | lib/honu/attachments/attachment.ex | elixir-honu/honu | e82cbc4c2457b3d64b929cc013c17cdb4fcc8f6c | [
"MIT"
] | null | null | null | lib/honu/attachments/attachment.ex | elixir-honu/honu | e82cbc4c2457b3d64b929cc013c17cdb4fcc8f6c | [
"MIT"
] | null | null | null | defmodule Honu.Attachments.Attachment do
import Ecto.Changeset
alias Honu.Attachments.AttachmentMap
def attachments_changeset(changeset, attrs, attachments_names) do
# TODO: Support both atom and string in map
# Currently only string keys are supported
Enum.reduce(attachments_names, changeset,... | 34.162791 | 83 | 0.701157 |
1c98ac6b915f40f9a8f1db9dc427845af1b138ed | 1,151 | exs | Elixir | Microsoft.Azure.Management.Containers/config/config.exs | 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.Containers/config/config.exs | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Containers/config/config.exs | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 37.129032 | 73 | 0.758471 |
1c98cb481430fb6fbaf064a14f35299b73f42d6f | 1,931 | ex | Elixir | lib/stellar/trades.ex | revelrylabs/elixir-stellar-client | 5866fc43fdc86260e0719a4764e8dd9327ef4731 | [
"MIT"
] | 25 | 2018-01-23T13:56:28.000Z | 2021-11-08T08:10:53.000Z | lib/stellar/trades.ex | revelrylabs/elixir-stellar-client | 5866fc43fdc86260e0719a4764e8dd9327ef4731 | [
"MIT"
] | 91 | 2018-01-30T20:10:44.000Z | 2022-01-12T19:50:24.000Z | lib/stellar/trades.ex | revelrylabs/elixir-stellar-client | 5866fc43fdc86260e0719a4764e8dd9327ef4731 | [
"MIT"
] | 5 | 2018-04-17T15:08:26.000Z | 2019-08-07T19:08:49.000Z | defmodule Stellar.Trades do
@moduledoc """
Functions for interacting with Trades
"""
alias Stellar.Base
@doc """
Returns all trades
optional `params` can take any of the following.:
* `base_asset_type`: Type of base asset.
* `base_asset_code`: Code of base asset, not required if type is `native`.
... | 29.707692 | 86 | 0.695495 |
1c98e28067a6489d9106a6b9d6a63bcce8f90144 | 1,172 | exs | Elixir | config/config.exs | FloatingGhost/stixex | c3b012d0e8596fde6bd512f856f05b0187bb5273 | [
"MIT"
] | 1 | 2019-05-07T22:44:45.000Z | 2019-05-07T22:44:45.000Z | config/config.exs | FloatingGhost/stixex | c3b012d0e8596fde6bd512f856f05b0187bb5273 | [
"MIT"
] | null | null | null | config/config.exs | FloatingGhost/stixex | c3b012d0e8596fde6bd512f856f05b0187bb5273 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.515152 | 73 | 0.753413 |
1c98ecb766ecd017ac1fe10c7da5104174b0d769 | 6,536 | ex | Elixir | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/api/associationsessions.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/api/associationsessions.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/ad_sense_host/lib/google_api/ad_sense_host/v41/api/associationsessions.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... | 42.167742 | 198 | 0.642442 |
1c994619782834e5c0525c3121add43721bb1f9c | 10,427 | exs | Elixir | apps/ewallet/test/ewallet/fetchers/amount_fetcher_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/test/ewallet/fetchers/amount_fetcher_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/test/ewallet/fetchers/amount_fetcher_test.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 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... | 27.295812 | 129 | 0.545603 |
1c996d3c0ccbe99d7cc147a63aee0d359388d40a | 13,887 | ex | Elixir | lib/wallaby/query.ex | braynm/wallaby | bdc7716285ad657dca0847144213ed98fff3a63c | [
"MIT"
] | 926 | 2016-03-28T17:01:54.000Z | 2019-11-05T11:59:58.000Z | lib/wallaby/query.ex | braynm/wallaby | bdc7716285ad657dca0847144213ed98fff3a63c | [
"MIT"
] | 377 | 2016-03-17T00:35:56.000Z | 2019-11-03T07:15:24.000Z | lib/wallaby/query.ex | braynm/wallaby | bdc7716285ad657dca0847144213ed98fff3a63c | [
"MIT"
] | 144 | 2016-03-29T15:28:28.000Z | 2019-10-31T00:48:42.000Z | defmodule Wallaby.Query do
@moduledoc ~S"""
Provides the query DSL.
Queries are used to locate and retrieve DOM elements from a browser (see
`Wallaby.Browser`). You create queries like so:
```
Query.css(".some-css")
Query.xpath(".//input")
```
## Form elements
There are several custom finders fo... | 25.527574 | 130 | 0.631166 |
1c997f67a7fcac87853a4c3dd9636b2f543ffd87 | 151 | ex | Elixir | lib/apoc/hazmat/hash/sha.ex | auxesis/apoc | e650c21767f508a2720dad1bb3d14439bdcf39c4 | [
"Apache-2.0"
] | 6 | 2018-10-04T14:18:35.000Z | 2020-05-15T08:43:31.000Z | lib/apoc/hazmat/hash/sha.ex | auxesis/apoc | e650c21767f508a2720dad1bb3d14439bdcf39c4 | [
"Apache-2.0"
] | 3 | 2018-10-23T12:20:45.000Z | 2021-01-27T10:41:14.000Z | lib/apoc/hazmat/hash/sha.ex | auxesis/apoc | e650c21767f508a2720dad1bb3d14439bdcf39c4 | [
"Apache-2.0"
] | 2 | 2020-02-19T00:43:37.000Z | 2021-08-19T04:04:25.000Z | defmodule Apoc.Hazmat.Hash.SHA do
use Apoc.Adapter.Hash
@impl Apoc.Adapter.Hash
def hash!(message) do
:crypto.hash(:sha, message)
end
end
| 16.777778 | 33 | 0.708609 |
1c998a4dc3c5e751074f5637ca2ec9d1af9228f4 | 1,565 | ex | Elixir | clients/service_user/lib/google_api/service_user/v1/model/custom_http_pattern.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/service_user/lib/google_api/service_user/v1/model/custom_http_pattern.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/service_user/lib/google_api/service_user/v1/model/custom_http_pattern.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.3 | 91 | 0.719489 |
1c99956cbe983c20d73876f805916563d6789fd9 | 2,625 | ex | Elixir | lumberjack/lib/lumberjack.ex | lucas-larsson/ID1019 | b21a79bfa7fbbaaba0b4db88ec8b44fc5e9f291c | [
"MIT"
] | null | null | null | lumberjack/lib/lumberjack.ex | lucas-larsson/ID1019 | b21a79bfa7fbbaaba0b4db88ec8b44fc5e9f291c | [
"MIT"
] | null | null | null | lumberjack/lib/lumberjack.ex | lucas-larsson/ID1019 | b21a79bfa7fbbaaba0b4db88ec8b44fc5e9f291c | [
"MIT"
] | null | null | null | defmodule Lumberjack do
@moduledoc """
Documentation for `Lumberjack`.
"""
@doc """
Hello world.
## Examples
iex> Lumberjack.hello()
:world
"""
def hello do
:world
end
def split(seq) do split(seq, 0, [], []) end
def split([], l, left, right) do
[{left, right, l}]
... | 24.305556 | 78 | 0.459429 |
1c9999925985cf2c4fc667c88695e7aed37ae4fb | 817 | exs | Elixir | test/web/controllers/profile_controller_test.exs | rozerosie/heycake | d080531705c0402fa53696d02307d6c08d25a60a | [
"MIT"
] | 7 | 2019-12-13T19:23:47.000Z | 2022-01-22T23:02:42.000Z | test/web/controllers/profile_controller_test.exs | rozerosie/heycake | d080531705c0402fa53696d02307d6c08d25a60a | [
"MIT"
] | 11 | 2021-03-10T01:57:00.000Z | 2021-08-31T18:30:54.000Z | test/web/controllers/profile_controller_test.exs | rozerosie/heycake | d080531705c0402fa53696d02307d6c08d25a60a | [
"MIT"
] | 2 | 2020-06-03T22:08:06.000Z | 2022-03-11T22:13:36.000Z | defmodule Web.ProfileControllerTest do
use Web.ConnCase
describe "registering a new user" do
test "successful", %{conn: conn} do
{:ok, user} = TestHelpers.create_user()
params = %{
email: "user@example.com",
first_name: "John",
last_name: "Smith"
}
conn =
... | 22.694444 | 68 | 0.587515 |
1c99b657f6951093b26ec912e661eb2ccbc6c134 | 884 | ex | Elixir | clients/container/lib/google_api/container/v1/metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/container/lib/google_api/container/v1/metadata.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.740741 | 74 | 0.75905 |
1c99bba5d5324c8a648df92e1c9ed0faf327946f | 1,577 | ex | Elixir | lib/koala_web.ex | joonatank/koala | 71d613c2a1d26fb28078687b72522f0122a9e6ff | [
"MIT"
] | null | null | null | lib/koala_web.ex | joonatank/koala | 71d613c2a1d26fb28078687b72522f0122a9e6ff | [
"MIT"
] | null | null | null | lib/koala_web.ex | joonatank/koala | 71d613c2a1d26fb28078687b72522f0122a9e6ff | [
"MIT"
] | null | null | null | defmodule KoalaWeb 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 KoalaWeb, :controller
use KoalaWeb, :view
The definitions below will be executed for every view,
controller, etc, s... | 23.191176 | 69 | 0.681674 |
1c99ec142d3ef3f8c30801cc92098cc20e4b68fd | 210 | exs | Elixir | dharma_server/config/runtime.exs | Dharma-Network/dharma-server | 68f3ab108b38e9ef3149c9e8f0e6cd3147d931c1 | [
"MIT"
] | null | null | null | dharma_server/config/runtime.exs | Dharma-Network/dharma-server | 68f3ab108b38e9ef3149c9e8f0e6cd3147d931c1 | [
"MIT"
] | 8 | 2021-07-22T15:59:14.000Z | 2021-08-13T10:16:49.000Z | dharma_server/config/runtime.exs | Dharma-Network/dharma-server | 68f3ab108b38e9ef3149c9e8f0e6cd3147d931c1 | [
"MIT"
] | null | null | null | import Config
config :processor,
:source,
["github", "trello"]
config :extractor,
:source,
["github", "trello"]
config :rabbit,
:url,
"amqp://guest:guest@localhost"
| 15 | 37 | 0.552381 |
1c99f3eac86f7db5ed1a871bc745b8a36f9c9a57 | 1,119 | exs | Elixir | config/config.exs | sezaru/expyplot | 17dedaed998042d96293f5912d007d5ad3d0a4df | [
"MIT"
] | 30 | 2017-04-17T09:52:59.000Z | 2022-03-28T09:55:05.000Z | config/config.exs | sezaru/expyplot | 17dedaed998042d96293f5912d007d5ad3d0a4df | [
"MIT"
] | 1 | 2020-08-25T17:23:51.000Z | 2020-08-27T23:53:19.000Z | config/config.exs | sezaru/expyplot | 17dedaed998042d96293f5912d007d5ad3d0a4df | [
"MIT"
] | 4 | 2019-02-01T07:12:37.000Z | 2020-08-24T13:24:07.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.096774 | 73 | 0.751564 |
1c99ff8aca3a06ef9af56d8d860be67adad372db | 1,435 | exs | Elixir | mix.exs | kianmeng/microformats2-elixir | 5a48e7bc8bb82ca4b43986f8497a066b23baf6a4 | [
"MIT"
] | null | null | null | mix.exs | kianmeng/microformats2-elixir | 5a48e7bc8bb82ca4b43986f8497a066b23baf6a4 | [
"MIT"
] | null | null | null | mix.exs | kianmeng/microformats2-elixir | 5a48e7bc8bb82ca4b43986f8497a066b23baf6a4 | [
"MIT"
] | null | null | null | defmodule Microformats2.Mixfile do
use Mix.Project
def project do
[
app: :microformats2,
version: "0.7.4",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: description(),
... | 23.52459 | 83 | 0.576307 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.