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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33954afdb9afc1763a7bf91c06201be681ae0a35 | 50 | ex | Elixir | lib/ui/controls/selectable_item.ex | afronski/potion | d892787acd59ef14610f60d0ebf1cde8cdace0da | [
"MIT"
] | null | null | null | lib/ui/controls/selectable_item.ex | afronski/potion | d892787acd59ef14610f60d0ebf1cde8cdace0da | [
"MIT"
] | null | null | null | lib/ui/controls/selectable_item.ex | afronski/potion | d892787acd59ef14610f60d0ebf1cde8cdace0da | [
"MIT"
] | null | null | null | defmodule Potion.UI.Controls.SelectableItem do
end | 25 | 46 | 0.88 |
33954f2bc6de16d6d52e3caa0014a69f3fffa54b | 13,651 | exs | Elixir | apps/omg_eth/test/omg_eth/release_tasks/set_contract_test.exs | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | 1 | 2020-05-01T12:30:09.000Z | 2020-05-01T12:30:09.000Z | apps/omg_eth/test/omg_eth/release_tasks/set_contract_test.exs | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | null | null | null | apps/omg_eth/test/omg_eth/release_tasks/set_contract_test.exs | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 45.503333 | 117 | 0.737748 |
33955fddf73f87ba857ed5dbe27eb4dc3fcdac9e | 3,911 | ex | Elixir | web/models/person.ex | kentcdodds/changelog.com | e1c0d7ee5d47dc83dd443d623adb0f07e4acb28d | [
"MIT"
] | null | null | null | web/models/person.ex | kentcdodds/changelog.com | e1c0d7ee5d47dc83dd443d623adb0f07e4acb28d | [
"MIT"
] | null | null | null | web/models/person.ex | kentcdodds/changelog.com | e1c0d7ee5d47dc83dd443d623adb0f07e4acb28d | [
"MIT"
] | null | null | null | defmodule Changelog.Person do
use Changelog.Web, :model
use Arc.Ecto.Schema
alias Changelog.{EpisodeHost, EpisodeGuest, PodcastHost, Regexp}
schema "people" do
field :name, :string
field :email, :string
field :handle, :string
field :github_handle, :string
field :twitter_handle, :string
... | 32.057377 | 100 | 0.706213 |
33956ab1cffec05856602fae9ce865541cb03d86 | 968 | ex | Elixir | debian/postinst.ex | mingw-deb/libtiff | 62149f1b78a3cfdf6b7e3d62018aef6ddde4d952 | [
"libtiff"
] | null | null | null | debian/postinst.ex | mingw-deb/libtiff | 62149f1b78a3cfdf6b7e3d62018aef6ddde4d952 | [
"libtiff"
] | null | null | null | debian/postinst.ex | mingw-deb/libtiff | 62149f1b78a3cfdf6b7e3d62018aef6ddde4d952 | [
"libtiff"
] | null | null | null | #!/bin/sh
# postinst script for mingw-w64-libtiff
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <pac... | 24.2 | 71 | 0.641529 |
33958ba24713ec029b9fd2b85bcde1b805049d60 | 198 | ex | Elixir | testData/org/elixir_lang/parser_definition/at_bracket_operation_parsing_test_case/DualOperator.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/at_bracket_operation_parsing_test_case/DualOperator.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/at_bracket_operation_parsing_test_case/DualOperator.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | @Module.+[key: value]
@Module.+ [key: value]
@Module.+[()]
@Module.+ [()]
@Module.+[matched_expression]
@Module.+ [matched_expression]
@Module.+[matched_expression,]
@Module.+ [matched_expression,]
| 22 | 31 | 0.686869 |
3395956a811ee9f10846624fc43f234721137097 | 1,023 | ex | Elixir | elixir-example/server/lib/tictactoe/application.ex | Limenius/tittactoe | e896dcb6ed2e75d3b5a2e6fb38b1a0c4861404bc | [
"MIT"
] | 9 | 2017-10-09T20:26:23.000Z | 2020-10-27T15:50:28.000Z | elixir-example/server/lib/tictactoe/application.ex | Limenius/tittactoe | e896dcb6ed2e75d3b5a2e6fb38b1a0c4861404bc | [
"MIT"
] | null | null | null | elixir-example/server/lib/tictactoe/application.ex | Limenius/tittactoe | e896dcb6ed2e75d3b5a2e6fb38b1a0c4861404bc | [
"MIT"
] | 2 | 2017-10-25T01:32:21.000Z | 2018-12-21T21:44:01.000Z | defmodule Tictactoe.Application do
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the endpoint when the ... | 33 | 87 | 0.726295 |
3395a9b5b1966bb253a95ae933012a155dd3f504 | 1,297 | exs | Elixir | apps/artemis/test/artemis/workers/artemis_key_value_cleaner_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/workers/artemis_key_value_cleaner_test.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 7 | 2019-07-12T21:41:01.000Z | 2020-08-17T21:29:22.000Z | apps/artemis/test/artemis/workers/artemis_key_value_cleaner_test.exs | chrislaskey/artemis_teams | 9930c3d9528e37b76f0525390e32b66eed7eadde | [
"MIT"
] | 2 | 2019-07-05T22:51:47.000Z | 2019-08-19T19:56:37.000Z | defmodule Artemis.KeyValueCleanerTest do
use Artemis.DataCase
import Artemis.Factories
alias Artemis.KeyValue
alias Artemis.Worker.KeyValueCleaner
@data []
@config []
describe "call" do
test "returns empty list tuple when no records exist" do
assert KeyValueCleaner.call(@data, @config) == {:... | 29.477273 | 79 | 0.669237 |
3395bcb38ff9f72f673e1f956e0c44339c8e3b19 | 36,420 | ex | Elixir | lib/phoenix_live_view/engine.ex | Zurga/phoenix_live_view | c888d910b4fcce8374eaa102d124d7cb84bf9785 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/engine.ex | Zurga/phoenix_live_view | c888d910b4fcce8374eaa102d124d7cb84bf9785 | [
"MIT"
] | null | null | null | lib/phoenix_live_view/engine.ex | Zurga/phoenix_live_view | c888d910b4fcce8374eaa102d124d7cb84bf9785 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.Component do
@moduledoc """
The struct returned by components in .heex templates.
This component is never meant to be output directly
into the template. It should always be handled by
the diffing algorithm.
"""
defstruct [:id, :component, :assigns]
@type t :: %__MODULE__{
... | 31.128205 | 100 | 0.6257 |
3395d564014b7745e8e184c03ab7c645874cd838 | 1,891 | exs | Elixir | test/account/get_secret_test.exs | ksherman/nexmo-elixir | b907abced1f7eb297819cd5b9256e04e6f06bc96 | [
"MIT"
] | 4 | 2020-01-31T03:34:25.000Z | 2022-02-25T07:05:30.000Z | test/account/get_secret_test.exs | ksherman/nexmo-elixir | b907abced1f7eb297819cd5b9256e04e6f06bc96 | [
"MIT"
] | 10 | 2019-08-29T06:58:02.000Z | 2020-01-27T13:26:05.000Z | test/account/get_secret_test.exs | ksherman/nexmo-elixir | b907abced1f7eb297819cd5b9256e04e6f06bc96 | [
"MIT"
] | 2 | 2020-03-23T03:02:13.000Z | 2021-09-03T23:18:45.000Z | defmodule Nexmo.Account.GetSecretTest do
use ExUnit.Case
setup do
api_key = "a123456"
api_secret = "b123456"
# setup test responses
valid_response =
%{
"_embedded" => %{
"secrets" => [
%{
"_links" => %{
"self" => %{
... | 30.5 | 110 | 0.607086 |
3395e5ac7def723e83e3fc49431c156e79debb7c | 278 | exs | Elixir | apps/omg_eth/config/dev.exs | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | apps/omg_eth/config/dev.exs | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | null | null | null | apps/omg_eth/config/dev.exs | PinkDiamond1/elixir-omg | 70dfd24a0a1ddf5d1d9d71aab61ea25300f889f7 | [
"Apache-2.0"
] | 2 | 2020-06-07T11:14:54.000Z | 2020-08-02T07:36:32.000Z | use Mix.Config
# bumping because otherwise import/unlock of accounts will fail in some of use cases (perf tests)
config :ethereumex,
http_options: [recv_timeout: 60_000]
config :omg_eth,
exit_period_seconds: {:system, "EXIT_PERIOD_SECONDS", 4 * 60, {String, :to_integer}}
| 30.888889 | 97 | 0.76259 |
339618591447f564e0503abcd891131ef6ec1f80 | 1,826 | ex | Elixir | src/lib/changelog/data/news/news_source.ex | thenets/docker-chocoquest | 856fa5ff41a5831ed67b1ef865cd8951df5af023 | [
"MIT"
] | 1 | 2018-01-22T20:07:10.000Z | 2018-01-22T20:07:10.000Z | lib/changelog/data/news/news_source.ex | joebew42/changelog.com | da4ec68d15f3a2b4b6c29033443d7e7afe814d18 | [
"MIT"
] | null | null | null | lib/changelog/data/news/news_source.ex | joebew42/changelog.com | da4ec68d15f3a2b4b6c29033443d7e7afe814d18 | [
"MIT"
] | null | null | null | defmodule Changelog.NewsSource do
use Changelog.Data
alias Changelog.{Files, NewsItem, Regexp}
schema "news_sources" do
field :name, :string
field :slug, :string
field :website, :string
field :twitter_handle, :string
field :description, :string
field :feed, :string
field :regex, :str... | 28.53125 | 127 | 0.674699 |
33963a1cfb1aaf4b82961f733faf9adce6b74f33 | 537 | ex | Elixir | lib/bson/binary_utils.ex | szTheory/bsoneach | deb0a6721518ed9712cef4fc952df5ae3ba23c69 | [
"MIT"
] | 8 | 2016-08-05T19:28:16.000Z | 2021-07-15T22:00:30.000Z | lib/bson/binary_utils.ex | szTheory/bsoneach | deb0a6721518ed9712cef4fc952df5ae3ba23c69 | [
"MIT"
] | 5 | 2016-08-29T13:07:15.000Z | 2016-11-24T16:58:01.000Z | lib/bson/binary_utils.ex | szTheory/bsoneach | deb0a6721518ed9712cef4fc952df5ae3ba23c69 | [
"MIT"
] | 5 | 2018-06-19T02:43:46.000Z | 2021-07-15T22:00:36.000Z | defmodule BSON.BinaryUtils do
@moduledoc false
defmacro int64 do
quote do: signed-little-64
end
defmacro int32 do
quote do: signed-little-32
end
defmacro int16 do
quote do: signed-little-16
end
defmacro uint16 do
quote do: unsigned-little-16
end
defmacro int8 do
quote do: si... | 14.916667 | 40 | 0.689013 |
339650320fd759cdae0e794798c81f0f2c01a625 | 1,386 | ex | Elixir | test/support/data_case.ex | Yoosuke/shopmap | 5a1892850d2c79b4732e3ee0c40a8b7c7c55d20d | [
"MIT"
] | null | null | null | test/support/data_case.ex | Yoosuke/shopmap | 5a1892850d2c79b4732e3ee0c40a8b7c7c55d20d | [
"MIT"
] | null | null | null | test/support/data_case.ex | Yoosuke/shopmap | 5a1892850d2c79b4732e3ee0c40a8b7c7c55d20d | [
"MIT"
] | null | null | null | defmodule Shopmap.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, every test... | 25.666667 | 77 | 0.680375 |
33968dd9e328f728d75de5e63cb87aa5d17b6e88 | 5,407 | ex | Elixir | apps/ewallet/lib/ewallet/seeders/cli_seeder.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/seeders/cli_seeder.ex | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/seeders/cli_seeder.ex | 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... | 24.802752 | 95 | 0.630109 |
3396a3a7fa3024db6bd7ee7ddd70df81ac842525 | 868 | ex | Elixir | lib/umbrella.ex | pragdave/gen_umbrella | 8cdc33850590c821db36bc25185432f4dce3c09e | [
"Apache-2.0"
] | null | null | null | lib/umbrella.ex | pragdave/gen_umbrella | 8cdc33850590c821db36bc25185432f4dce3c09e | [
"Apache-2.0"
] | null | null | null | lib/umbrella.ex | pragdave/gen_umbrella | 8cdc33850590c821db36bc25185432f4dce3c09e | [
"Apache-2.0"
] | null | null | null | defmodule Umbrella do
@moduledoc File.read!(Path.join([__DIR__, "../README.md"]))
use MixTemplates,
name: :umbrella,
short_desc: "Template for umbrella projects",
source_dir: "../template",
options: [
# sup: [
# to: :is_supervisor?,
# default: false,
# ... | 24.8 | 81 | 0.511521 |
3396a86704ab3133174c4ca4913ce30ed14cf84e | 364 | exs | Elixir | apps/core/priv/prm_repo/migrations/20170420110826_create_dictionaries_dictionary.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 8 | 2019-06-14T11:34:49.000Z | 2021-08-05T19:14:24.000Z | apps/core/priv/prm_repo/migrations/20170420110826_create_dictionaries_dictionary.exs | edenlabllc/ehealth.api.public | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 1 | 2019-07-08T15:20:22.000Z | 2019-07-08T15:20:22.000Z | apps/core/priv/prm_repo/migrations/20170420110826_create_dictionaries_dictionary.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.PRMRepo.Migrations.CreatePRM.Dictionaries.Dictionary do
use Ecto.Migration
def change do
create table(:dictionaries, primary_key: false) do
add(:name, :string, primary_key: true)
add(:values, :map, null: false)
add(:labels, :map, null: false)
add(:is_active, :boolean, def... | 28 | 70 | 0.686813 |
3396aa14dfbfc57eaf99baa58350a0f4a29956bf | 614 | exs | Elixir | test/views/error_view_test.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 123 | 2017-04-04T18:15:48.000Z | 2021-04-26T08:04:22.000Z | test/views/error_view_test.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | null | null | null | test/views/error_view_test.exs | usecanvas/api-v2 | 59214db3a2cf12eb939f22fed320fd10cb47cdfe | [
"Apache-2.0"
] | 17 | 2017-04-04T18:58:29.000Z | 2021-05-10T21:39:16.000Z | defmodule CanvasAPI.ErrorViewTest do
use CanvasAPI.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.json" do
assert render(CanvasAPI.ErrorView, "404.json", []) ==
%{errors: %{detail: "Page not found"}}
end
test "re... | 27.909091 | 66 | 0.651466 |
3396b736d04f538654f3aa62e928c7816c6c5dd8 | 1,576 | ex | Elixir | lib/multiple_products_web/views/error_helpers.ex | manojsamanta/stripe-multiple-products | 746895c2a4ef375c74bf0a643cbd3db7a8e19bcc | [
"MIT"
] | null | null | null | lib/multiple_products_web/views/error_helpers.ex | manojsamanta/stripe-multiple-products | 746895c2a4ef375c74bf0a643cbd3db7a8e19bcc | [
"MIT"
] | null | null | null | lib/multiple_products_web/views/error_helpers.ex | manojsamanta/stripe-multiple-products | 746895c2a4ef375c74bf0a643cbd3db7a8e19bcc | [
"MIT"
] | null | null | null | defmodule MultipleProductsWeb.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 ->
con... | 32.833333 | 85 | 0.67132 |
3396beb7f0dd906dcdcaea01b3f4119fd8b01452 | 2,779 | exs | Elixir | lib/elixir/test/elixir/float_test.exs | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/float_test.exs | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/float_test.exs | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule FloatTest do
use ExUnit.Case, async: true
test :parse do
assert Float.parse("12") === {12.0, ""}
assert Float.parse("-12") === {-12.0, ""}
assert Float.parse("-0.1") === {-0.1, ""}
assert Float.parse("123456789") === {123456789.0, ""}
asse... | 37.053333 | 62 | 0.571429 |
3396cb03bedff6312857b005cce5f367b8ec30d9 | 798 | ex | Elixir | lib/ex_aws/operation/query/parser.ex | sivsushruth/ex_aws | 45a6fa6b6ed539066d1a5be0b04ef43d8305c4d0 | [
"MIT"
] | null | null | null | lib/ex_aws/operation/query/parser.ex | sivsushruth/ex_aws | 45a6fa6b6ed539066d1a5be0b04ef43d8305c4d0 | [
"MIT"
] | null | null | null | lib/ex_aws/operation/query/parser.ex | sivsushruth/ex_aws | 45a6fa6b6ed539066d1a5be0b04ef43d8305c4d0 | [
"MIT"
] | null | null | null | if Code.ensure_loaded?(SweetXml) do
# TODO: Extract this.
defmodule ExAws.Operation.Query.Parser do
@moduledoc false
defmacro __using__(_opts) do
quote do
import SweetXml, only: [sigil_x: 2]
def parse({:error, {type, http_status_code, %{body: xml}}}, _) do
parsed_body =
... | 27.517241 | 73 | 0.522556 |
3396db568e1dbc1aa95b689bd7cbcf811095d2aa | 1,713 | ex | Elixir | clients/partners/lib/google_api/partners/v2/model/ad_words_manager_account_info.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/partners/lib/google_api/partners/v2/model/ad_words_manager_account_info.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/partners/lib/google_api/partners/v2/model/ad_words_manager_account_info.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... | 33.588235 | 120 | 0.744892 |
339727520bc6fd57890c1ca80774f7bd51a62322 | 199 | ex | Elixir | lib/brando_admin/components/badge.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 1 | 2020-04-26T09:53:02.000Z | 2020-04-26T09:53:02.000Z | lib/brando_admin/components/badge.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 198 | 2019-08-20T16:16:07.000Z | 2020-07-03T15:42:07.000Z | lib/brando_admin/components/badge.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | null | null | null | defmodule BrandoAdmin.Components.Badge do
use BrandoAdmin, :component
def language(assigns) do
~H"""
<div class="circle circle-flag">
<%= @language %>
</div>
"""
end
end
| 16.583333 | 41 | 0.613065 |
3397a1e9908981ded38d19528359e7835b4aa58a | 439 | exs | Elixir | test/usps/operation_test.exs | christopherlai/usps | 2eb9c110bedb3edaa8f661129caaa3fc8e4f6af6 | [
"MIT",
"Unlicense"
] | null | null | null | test/usps/operation_test.exs | christopherlai/usps | 2eb9c110bedb3edaa8f661129caaa3fc8e4f6af6 | [
"MIT",
"Unlicense"
] | null | null | null | test/usps/operation_test.exs | christopherlai/usps | 2eb9c110bedb3edaa8f661129caaa3fc8e4f6af6 | [
"MIT",
"Unlicense"
] | null | null | null | defmodule Usps.OperationTest do
use ExUnit.Case, async: true
alias Usps.Configuration
alias Usps.Operation
describe "new/4" do
test "returns a Operation struct" do
config = Configuration.new()
parser = & &1
op = Operation.new("Track", {}, parser, config)
assert op.api == "Track"
... | 23.105263 | 53 | 0.637813 |
3397ad1995a6ddb9eacdb2b81e96424818c1538a | 1,157 | exs | Elixir | mix.exs | aseigo/geo | 327d6df8e16cb68a3ad295707e5215d5a2153ae2 | [
"MIT"
] | null | null | null | mix.exs | aseigo/geo | 327d6df8e16cb68a3ad295707e5215d5a2153ae2 | [
"MIT"
] | null | null | null | mix.exs | aseigo/geo | 327d6df8e16cb68a3ad295707e5215d5a2153ae2 | [
"MIT"
] | null | null | null | defmodule Geo.Mixfile do
use Mix.Project
def project do
[
app: :geo,
version: "3.2.0",
elixir: "~> 1.6",
deps: deps(),
description: description(),
package: package(),
name: "Geo",
source_url: "https://github.com/bryanjos/geo",
test_coverage: [tool: ExCovera... | 21.036364 | 61 | 0.54624 |
3397bac6f3a773e675d741dbcc7488e809797db7 | 2,827 | ex | Elixir | test/support/integration_helpers.ex | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | 1 | 2019-04-27T15:39:20.000Z | 2019-04-27T15:39:20.000Z | test/support/integration_helpers.ex | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | 11 | 2020-07-16T11:40:53.000Z | 2021-08-16T07:03:33.000Z | test/support/integration_helpers.ex | topherhunt/reassembling-the-line | c6823b3394ee98d9b0149fa3d09448928ac5c0db | [
"MIT"
] | null | null | null | defmodule RTLWeb.IntegrationHelpers do
use ExUnit.CaseTemplate
# See https://github.com/HashNuke/hound for docs
use Hound.Helpers
alias RTL.Factory
alias RTLWeb.Router.Helpers, as: Routes
#
# High-level
#
def login(user) do
navigate_to Routes.auth_url(RTLWeb.Endpoint, :login)
find_element("#... | 26.175926 | 105 | 0.681995 |
3397d681520e0a687b890375d677c361d4dcde6c | 1,048 | ex | Elixir | lib/bureaucrat/util.ex | Whatnot-Inc/bureaucrat | d0634c6017dc68f8a23078cbc8c181a4b2d3e6db | [
"Unlicense"
] | 326 | 2015-08-19T10:05:07.000Z | 2022-03-28T08:49:33.000Z | lib/bureaucrat/util.ex | Whatnot-Inc/bureaucrat | d0634c6017dc68f8a23078cbc8c181a4b2d3e6db | [
"Unlicense"
] | 64 | 2015-08-19T06:44:19.000Z | 2022-03-29T06:23:34.000Z | lib/bureaucrat/util.ex | Whatnot-Inc/bureaucrat | d0634c6017dc68f8a23078cbc8c181a4b2d3e6db | [
"Unlicense"
] | 66 | 2016-01-08T20:40:40.000Z | 2022-03-03T02:15:15.000Z | defmodule Bureaucrat.Util do
@moduledoc """
Some functions used across Bureaucrat internally
"""
@doc """
Takes a list of pre-sorted entries and groups them by given function,
but returns a list of tuples `[{k, v}, ...]` instead of a Map to preserve
key sort order, which can be given to Enum functions id... | 32.75 | 85 | 0.642176 |
3397f404ed0b86ed0d13d2aeb33156d2f797a95d | 1,412 | ex | Elixir | lib/ex_signal.ex | siafulabs/ex_signal | 20d7982d00e0c141c200858cf54db5f91e1a86e0 | [
"MIT"
] | 3 | 2020-10-04T19:02:58.000Z | 2022-02-03T10:41:47.000Z | lib/ex_signal.ex | siafulabs/ex_signal | 20d7982d00e0c141c200858cf54db5f91e1a86e0 | [
"MIT"
] | 1 | 2021-02-16T02:33:23.000Z | 2021-02-16T02:37:00.000Z | lib/ex_signal.ex | siafulabs/ex_signal | 20d7982d00e0c141c200858cf54db5f91e1a86e0 | [
"MIT"
] | 3 | 2020-06-22T22:56:30.000Z | 2021-02-03T17:01:06.000Z | defmodule ExSignal do
@moduledoc """
Wrapper for the OneSignal REST API.
## Installation
1. Add ex_signal to your list of dependencies in mix.exs:
```
def deps do
[{:ex_signal, "~> 0.1.0"}]
end
```
2. Add this to your config.exs:
```
config :ex_signal,
app_id: "your app id",
api_k... | 23.932203 | 116 | 0.659348 |
33980edba3d231e11220cf484ced1c6f199e4042 | 1,617 | ex | Elixir | test/support/router.ex | joshprice/phoenix_live_view | 26a9d5729709b3bcc88937cefbd006a9f28e9d93 | [
"MIT"
] | null | null | null | test/support/router.ex | joshprice/phoenix_live_view | 26a9d5729709b3bcc88937cefbd006a9f28e9d93 | [
"MIT"
] | null | null | null | test/support/router.ex | joshprice/phoenix_live_view | 26a9d5729709b3bcc88937cefbd006a9f28e9d93 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveViewTest.Controller do
use Phoenix.Controller
import Phoenix.LiveView.Controller
plug :put_layout, false
def incoming(conn, %{"type" => "live-render-2"}) do
live_render(conn, Phoenix.LiveViewTest.DashboardLive)
end
def incoming(conn, %{"type" => "live-render-3"}) do
live_ren... | 29.4 | 94 | 0.701917 |
3398489c07076252e7988b957fee15ea23c047ac | 49 | exs | Elixir | config/test.exs | Chlorophytus/exfwghtblog | 4508cf1368bfe8ea809acbef3f0abb31702169d5 | [
"MIT"
] | null | null | null | config/test.exs | Chlorophytus/exfwghtblog | 4508cf1368bfe8ea809acbef3f0abb31702169d5 | [
"MIT"
] | null | null | null | config/test.exs | Chlorophytus/exfwghtblog | 4508cf1368bfe8ea809acbef3f0abb31702169d5 | [
"MIT"
] | null | null | null | import Config
config :exfwghtblog,
port: 8080
| 9.8 | 20 | 0.755102 |
3398805db26d634e65882e6823c9301b0a06cd2a | 913 | exs | Elixir | apps/snitch_core/test/domain/calculator/default_calculator_test.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 456 | 2018-09-20T02:40:59.000Z | 2022-03-07T08:53:48.000Z | apps/snitch_core/test/domain/calculator/default_calculator_test.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 273 | 2018-09-19T06:43:43.000Z | 2021-08-07T12:58:26.000Z | apps/snitch_core/test/domain/calculator/default_calculator_test.exs | Acrecio/avia | 54d264fc179b5b5f17d174854bdca063e1d935e9 | [
"MIT"
] | 122 | 2018-09-26T16:32:46.000Z | 2022-03-13T11:44:19.000Z | defmodule Snitch.Domain.DefaultCalculatorTest do
use ExUnit.Case, async: true
use Snitch.DataCase
alias Snitch.Domain.Calculator.DefaultTaxCalculator
@tax_percent 50
@amount Money.new!(:USD, 15)
describe "compute/2" do
test "tax, isn't included in price" do
assert %{amount: amount, tax: tax} =
... | 28.53125 | 85 | 0.618839 |
3398c4c73a1320a4802e8e43fb696e96d20bb4ca | 2,068 | exs | Elixir | config/prod.exs | neilfulwiler/open_pantry | 4b705f2282c7b2365a784503c9f1bdd34c741798 | [
"MIT"
] | 41 | 2017-10-04T00:33:46.000Z | 2021-04-09T01:33:34.000Z | config/prod.exs | openpantry/open_pantry | 27d898a65dd6f44b325f48d41bc448bb486d9c6f | [
"MIT"
] | 74 | 2017-09-20T03:36:17.000Z | 2018-11-20T20:46:16.000Z | config/prod.exs | neilfulwiler/open_pantry | 4b705f2282c7b2365a784503c9f1bdd34c741798 | [
"MIT"
] | 12 | 2017-10-04T10:02:49.000Z | 2021-12-28T22:57:20.000Z | use Mix.Config
# For production, we configure the host to read the PORT
# from the system environment. Therefore, you will need
# to set PORT=80 before running your server.
#
# You should also configure the url host to something
# meaningful, we use this information when generating URLs.
#
# Finally, we also include t... | 32.825397 | 67 | 0.718569 |
3398c8f690fa5b94555427fbcd68ec0c2519e4d7 | 1,560 | ex | Elixir | clients/you_tube/lib/google_api/you_tube/v3/model/channel_content_details.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/channel_content_details.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/you_tube/lib/google_api/you_tube/v3/model/channel_content_details.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... | 30 | 83 | 0.754487 |
3398e2d5eea7e3ed0205064cd4e2b32f53bf138f | 559 | ex | Elixir | lib/planga_web/controllers/fallback_controller.ex | ResiliaDev/Planga | b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e | [
"MIT"
] | 37 | 2018-07-13T14:08:16.000Z | 2021-04-09T15:00:22.000Z | lib/planga_web/controllers/fallback_controller.ex | ResiliaDev/Planga | b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e | [
"MIT"
] | 9 | 2018-07-16T15:24:39.000Z | 2021-09-01T14:21:20.000Z | lib/planga_web/controllers/fallback_controller.ex | ResiliaDev/Planga | b21d290dd7c2c7fa30571d0a5124d63bd09c0c9e | [
"MIT"
] | 3 | 2018-10-05T20:19:25.000Z | 2019-12-05T00:30:01.000Z | defmodule PlangaWeb.FallbackController do
@moduledoc """
Translates controller action results into valid `Plug.Conn` responses.
See `Phoenix.Controller.action_fallback/1` for more details.
"""
use PlangaWeb, :controller
def call(conn, {:error, %Ecto.Changeset{} = changeset}) do
conn
|> put_status(... | 26.619048 | 74 | 0.703041 |
33990919b2e659157770ebe3d45b45b592c7d33e | 81 | ex | Elixir | turtle_pose_phoenix/lib/turtle_pose_phoenix_web/views/page_view.ex | rclex/rclex_examples | 1ad49e9d917c015161992836ad8d4e8d028615da | [
"Apache-2.0"
] | null | null | null | turtle_pose_phoenix/lib/turtle_pose_phoenix_web/views/page_view.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/views/page_view.ex | rclex/rclex_examples | 1ad49e9d917c015161992836ad8d4e8d028615da | [
"Apache-2.0"
] | null | null | null | defmodule TurtlePosePhoenixWeb.PageView do
use TurtlePosePhoenixWeb, :view
end
| 20.25 | 42 | 0.851852 |
33990a49ed53728d4b24cbcb51ba4fff2b3b5d4e | 1,257 | ex | Elixir | debian_nonhdfs/emacsen-install.ex | sreedishps/scribe | 033b701f665b195229b8b93505ccb4cd2f8ac0f7 | [
"Apache-2.0"
] | 7 | 2015-01-29T14:41:28.000Z | 2021-03-09T01:29:58.000Z | debian_nonhdfs/emacsen-install.ex | sreedishps/scribe | 033b701f665b195229b8b93505ccb4cd2f8ac0f7 | [
"Apache-2.0"
] | 2 | 2015-03-23T03:59:12.000Z | 2015-03-27T07:12:41.000Z | debian_nonhdfs/emacsen-install.ex | sreedishps/scribe | 033b701f665b195229b8b93505ccb4cd2f8ac0f7 | [
"Apache-2.0"
] | 5 | 2015-03-03T06:54:00.000Z | 2018-10-16T21:08:02.000Z | #! /bin/sh -e
# /usr/lib/emacsen-common/packages/install/scribe-server-orig
# Written by Jim Van Zandt <jrv@debian.org>, borrowing heavily
# from the install scripts for gettext by Santiago Vila
# <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.
FLAVOR=$1
PACKAGE=scribe-server-orig
if [ ${FLAVOR} =... | 27.326087 | 102 | 0.689737 |
33991261c7d99ffcb92ee249ba5b54510bbd92e5 | 2,495 | ex | Elixir | lib/ex_aws/config/defaults.ex | bettyblocks/ex_aws | 0c9b43b5a1afbfb5fb26131be7f80f69de4431d1 | [
"MIT",
"Unlicense"
] | null | null | null | lib/ex_aws/config/defaults.ex | bettyblocks/ex_aws | 0c9b43b5a1afbfb5fb26131be7f80f69de4431d1 | [
"MIT",
"Unlicense"
] | null | null | null | lib/ex_aws/config/defaults.ex | bettyblocks/ex_aws | 0c9b43b5a1afbfb5fb26131be7f80f69de4431d1 | [
"MIT",
"Unlicense"
] | 1 | 2021-01-22T12:16:23.000Z | 2021-01-22T12:16:23.000Z | defmodule ExAws.Config.Defaults do
@moduledoc """
Defaults for each service
"""
@common %{
access_key_id: [{:system, "AWS_ACCESS_KEY_ID"}, :instance_role],
secret_access_key: [{:system, "AWS_SECRET_ACCESS_KEY"}, :instance_role],
s3_auth_version: [{:system, "S3_AUTH_VERSION"}, :instance_role],
h... | 26.827957 | 76 | 0.539479 |
3399776c80b9196af2ce59b8da3559fd61361ae7 | 208 | ex | Elixir | test/support/conn_case.ex | matrinox/absinthe_phoenix | e0ae14c04a55550f9cd7a6845583ad0bcce79305 | [
"MIT"
] | 263 | 2016-05-12T21:26:08.000Z | 2022-03-29T04:06:46.000Z | test/support/conn_case.ex | matrinox/absinthe_phoenix | e0ae14c04a55550f9cd7a6845583ad0bcce79305 | [
"MIT"
] | 79 | 2017-06-25T08:18:46.000Z | 2021-12-14T15:13:06.000Z | test/support/conn_case.ex | matrinox/absinthe_phoenix | e0ae14c04a55550f9cd7a6845583ad0bcce79305 | [
"MIT"
] | 86 | 2016-05-19T09:52:32.000Z | 2022-03-26T13:46:52.000Z | defmodule Absinthe.Phoenix.ConnCase do
use ExUnit.CaseTemplate
using do
quote do
import Plug.Conn
import Phoenix.ConnTest
@endpoint Absinthe.Phoenix.TestEndpoint
end
end
end
| 16 | 45 | 0.711538 |
33997a7c3f1f4d138f0f55c6e1989758676a112d | 942 | ex | Elixir | test/support/channel_case.ex | BryanJBryce/Get-Together | 7c6a5456e849a48d3575bf2caa957974228f1126 | [
"MIT"
] | 1 | 2019-10-23T16:02:08.000Z | 2019-10-23T16:02:08.000Z | test/support/channel_case.ex | BryanJBryce/Get-Together | 7c6a5456e849a48d3575bf2caa957974228f1126 | [
"MIT"
] | 1 | 2021-03-09T20:59:56.000Z | 2021-03-09T20:59:56.000Z | test/support/channel_case.ex | BryanJBryce/Get-Together | 7c6a5456e849a48d3575bf2caa957974228f1126 | [
"MIT"
] | 1 | 2019-10-22T15:07:36.000Z | 2019-10-22T15:07:36.000Z | defmodule TogetherWeb.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 data structures and query the data layer.
Finally, if the test case interacts ... | 24.789474 | 70 | 0.716561 |
3399840251261f63eb749b1303977cef66c9b3d8 | 2,336 | exs | Elixir | test/hashring_utils_test.exs | bitwalker/libring | f1eaaad48f5d1e989590b15856b07ef212a06cc9 | [
"MIT"
] | 181 | 2016-09-29T12:57:03.000Z | 2022-02-12T12:50:55.000Z | test/hashring_utils_test.exs | bitwalker/libring | f1eaaad48f5d1e989590b15856b07ef212a06cc9 | [
"MIT"
] | 26 | 2016-12-12T22:22:43.000Z | 2021-12-15T15:52:06.000Z | test/hashring_utils_test.exs | bitwalker/libring | f1eaaad48f5d1e989590b15856b07ef212a06cc9 | [
"MIT"
] | 22 | 2017-04-28T08:08:44.000Z | 2022-01-27T16:18:20.000Z | defmodule HashRingUtilsTest do
use ExUnit.Case, async: true
doctest HashRing.Utils
alias HashRing.Utils
test "ignore_node?/3 with blacklist" do
blacklist = [
~r/^.+_maint_.*$/
]
# in blacklist
assert Utils.ignore_node?(:"disp1_maint_18090@127.0.0.1", blacklist, [])
# not in blacklist... | 31.567568 | 84 | 0.666524 |
339993d68753fbb215306360d24d40b8f77a12e4 | 262 | ex | Elixir | lib/madari_web/controllers/page_controller.ex | yoossaland/yoossa | 1e1ab968d12c7690a76fc670c47c91c29efb2979 | [
"BSD-2-Clause"
] | null | null | null | lib/madari_web/controllers/page_controller.ex | yoossaland/yoossa | 1e1ab968d12c7690a76fc670c47c91c29efb2979 | [
"BSD-2-Clause"
] | null | null | null | lib/madari_web/controllers/page_controller.ex | yoossaland/yoossa | 1e1ab968d12c7690a76fc670c47c91c29efb2979 | [
"BSD-2-Clause"
] | null | null | null | defmodule MadariWeb.PageController do
use MadariWeb, :controller
import Phoenix.LiveView.Helpers
def index(conn, _params) do
if conn.assigns.current_user do
redirect(conn, to: "/home")
else
render(conn, "index.html")
end
end
end
| 20.153846 | 37 | 0.694656 |
3399b5d426b35e09c63610286138bd583b4e550f | 2,188 | ex | Elixir | clients/game_services/lib/google_api/game_services/v1beta/model/list_game_server_clusters_response.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/list_game_server_clusters_response.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/list_game_server_clusters_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.724138 | 157 | 0.736289 |
3399be8293c0693b5987a6bc4edef51aac9edbcb | 2,797 | exs | Elixir | config/dev.exs | Oliv4945/console | fd7b85c8ff3b0702c8a524eb888104612946934c | [
"Apache-2.0"
] | null | null | null | config/dev.exs | Oliv4945/console | fd7b85c8ff3b0702c8a524eb888104612946934c | [
"Apache-2.0"
] | null | null | null | config/dev.exs | Oliv4945/console | fd7b85c8ff3b0702c8a524eb888104612946934c | [
"Apache-2.0"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :console, ConsoleWeb.Endpoint,
http: [port: 40... | 26.894231 | 170 | 0.715052 |
3399c670827e23453064844f4e0d9553909c714d | 1,681 | exs | Elixir | mix.exs | garrettmichaelgeorge/zip_zip | 193eada8b983bfef6e01996085a967b82e5b4344 | [
"MIT"
] | 1 | 2022-02-14T16:46:55.000Z | 2022-02-14T16:46:55.000Z | mix.exs | garrettmichaelgeorge/zip_zip | 193eada8b983bfef6e01996085a967b82e5b4344 | [
"MIT"
] | 6 | 2022-02-14T15:14:26.000Z | 2022-03-28T12:21:27.000Z | mix.exs | garrettmichaelgeorge/zip_zip | 193eada8b983bfef6e01996085a967b82e5b4344 | [
"MIT"
] | null | null | null | defmodule ElixirStartingPoint.MixProject do
use Mix.Project
@version "0.1.1"
def project do
[
app: :zip_zip,
version: @version,
description: description(),
name: "ZipZip",
docs: docs(),
build_path: "_build",
deps_path: "deps",
lockfile: "mix.lock",
elixi... | 23.027397 | 77 | 0.554432 |
3399cdb57230fd9ed7a5815a9852a56af80d31ed | 6,299 | ex | Elixir | lib/mastani_server/cms/cms.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:03:54.000Z | 2019-05-07T15:03:54.000Z | lib/mastani_server/cms/cms.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | lib/mastani_server/cms/cms.ex | DavidAlphaFox/coderplanets_server | 3fd47bf3bba6cc04c9a34698201a60ad2f3e8254 | [
"Apache-2.0"
] | null | null | null | defmodule MastaniServer.CMS do
@moduledoc """
this module defined basic method to handle [CMS] content [CURD] ..
[CMS]: post, job, ...
[CURD]: create, update, delete ...
"""
alias MastaniServer.CMS.Delegate.{
ArticleCURD,
ArticleOperation,
ArticleReaction,
FavoritedContents,
CommentCURD,... | 46.316176 | 94 | 0.782823 |
3399d8922f7209c74587114e2d28bf5b1b1b4a89 | 1,237 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/list_constraint.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/list_constraint.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/list_constraint.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... | 33.432432 | 170 | 0.755861 |
3399d9c7280014aef4c776dbaa1d4a35d01d8cef | 1,734 | ex | Elixir | lib/ecto_extract_migrations/parsers/create_view.ex | jonseaberg/ecto_extract_migrations | 6372825495b702386c291a5dda2f63ad1c8317ca | [
"Apache-2.0"
] | 7 | 2020-09-02T14:50:12.000Z | 2021-11-12T20:07:36.000Z | lib/ecto_extract_migrations/parsers/create_view.ex | jonseaberg/ecto_extract_migrations | 6372825495b702386c291a5dda2f63ad1c8317ca | [
"Apache-2.0"
] | 2 | 2020-10-31T12:17:25.000Z | 2020-11-05T13:13:13.000Z | lib/ecto_extract_migrations/parsers/create_view.ex | jonseaberg/ecto_extract_migrations | 6372825495b702386c291a5dda2f63ad1c8317ca | [
"Apache-2.0"
] | 3 | 2020-10-31T11:46:31.000Z | 2022-02-11T15:23:10.000Z | defmodule EctoExtractMigrations.Parsers.CreateView do
@moduledoc "Parser for CREATE VIEW."
import NimbleParsec
alias EctoExtractMigrations.Parsers.Common
# https://www.postgresql.org/docs/current/sql-createview.html
whitespace = Common.whitespace()
name = Common.name()
schema_name = name
bare_table... | 25.5 | 73 | 0.601499 |
3399f8da65277f88eb3e6807ffd6376ab5997f1c | 491 | exs | Elixir | config/test.exs | billstclair/readerl | bd81d17109a1fb207d98f1ba1c498f66b195d1ba | [
"BSD-3-Clause"
] | 3 | 2015-10-31T02:33:29.000Z | 2016-07-19T06:25:03.000Z | config/test.exs | billstclair/readerl | bd81d17109a1fb207d98f1ba1c498f66b195d1ba | [
"BSD-3-Clause"
] | null | null | null | config/test.exs | billstclair/readerl | bd81d17109a1fb207d98f1ba1c498f66b195d1ba | [
"BSD-3-Clause"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :readerl, Readerl.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :readerl, Readerl.Repo,... | 24.55 | 56 | 0.733198 |
339a0ca505458916c84c19e2a34e85f36ace4ba6 | 3,030 | ex | Elixir | clients/my_business_lodging/lib/google_api/my_business_lodging/v1/model/families.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/my_business_lodging/lib/google_api/my_business_lodging/v1/model/families.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/my_business_lodging/lib/google_api/my_business_lodging/v1/model/families.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... | 48.870968 | 494 | 0.722112 |
339a0e3d8ab522728456fe3ad7261b3a0f28e964 | 12,307 | ex | Elixir | lib/ets/key_value_set.ex | APB9785/ets | aff22bfab89e24ecb24f9a5e8cbf411fd28ec730 | [
"MIT"
] | null | null | null | lib/ets/key_value_set.ex | APB9785/ets | aff22bfab89e24ecb24f9a5e8cbf411fd28ec730 | [
"MIT"
] | null | null | null | lib/ets/key_value_set.ex | APB9785/ets | aff22bfab89e24ecb24f9a5e8cbf411fd28ec730 | [
"MIT"
] | null | null | null | defmodule ETS.KeyValueSet do
@moduledoc """
The Key Value Set is an extension of `ETS.Set` which abstracts the concept of tuple records
away, replacing it with the standard concept of key/value. Behind the scenes, the set stores
its records as {key, value}.
## Examples
iex> {:ok, kvset} = KeyValueSet.... | 30.387654 | 100 | 0.612334 |
339a15ac8c706aa493373d1a0ffe6044546063cb | 82 | exs | Elixir | config/config.exs | br/ecto_cursor_pagination | 90f80bdf4273482d084641755dec66a0694219dd | [
"Apache-2.0"
] | 7 | 2017-01-15T13:09:44.000Z | 2019-12-28T17:08:33.000Z | config/config.exs | br/ecto_cursor_pagination | 90f80bdf4273482d084641755dec66a0694219dd | [
"Apache-2.0"
] | null | null | null | config/config.exs | br/ecto_cursor_pagination | 90f80bdf4273482d084641755dec66a0694219dd | [
"Apache-2.0"
] | 1 | 2021-11-11T10:16:02.000Z | 2021-11-11T10:16:02.000Z | use Mix.Config
config :ecto_cursor_pagination,
per_page: 15,
cursor_id: :id
| 11.714286 | 31 | 0.743902 |
339a428340a967fc4e89170eb1ec0cfcfb72d185 | 103 | exs | Elixir | config/config.exs | hauleth/phoenix_brotli_compressor | 34a6f15cfff7b6b5a0215fae3bdf39450edbc70f | [
"MIT"
] | 1 | 2021-09-10T14:10:33.000Z | 2021-09-10T14:10:33.000Z | config/config.exs | hauleth/phoenix_brotli_compressor | 34a6f15cfff7b6b5a0215fae3bdf39450edbc70f | [
"MIT"
] | null | null | null | config/config.exs | hauleth/phoenix_brotli_compressor | 34a6f15cfff7b6b5a0215fae3bdf39450edbc70f | [
"MIT"
] | null | null | null | import Config
config :phoenix,
json_library: Jason,
static_compressors: [PhoenixBrotliCompressor]
| 17.166667 | 47 | 0.805825 |
339a4d2b63aecf7fa405a13dd7c608f455dc6d0b | 1,285 | ex | Elixir | lib/membrane_mp4/segment_index_box.ex | membraneframework/membrane-element-mp4 | 5a1f088b0f22569e4de60c352b2d2cd337b12d02 | [
"Apache-2.0"
] | null | null | null | lib/membrane_mp4/segment_index_box.ex | membraneframework/membrane-element-mp4 | 5a1f088b0f22569e4de60c352b2d2cd337b12d02 | [
"Apache-2.0"
] | null | null | null | lib/membrane_mp4/segment_index_box.ex | membraneframework/membrane-element-mp4 | 5a1f088b0f22569e4de60c352b2d2cd337b12d02 | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.MP4.SegmentIndexBox do
@moduledoc """
A module containing a function for assembling a CMAF segment index box.
The segment index box (`sidx` atom) contains information related to presentation
time and byte-range locations of other boxes belonging to its segment.
For more information about ... | 29.883721 | 82 | 0.617899 |
339a50634c953bf3c8f3ac09923d01bac0134901 | 976 | ex | Elixir | lib/accent/scopes/version.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | lib/accent/scopes/version.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | lib/accent/scopes/version.ex | leonardocouy/accent | 29fb324395ff998cc5cdc6947c60070ffabe647c | [
"BSD-3-Clause"
] | null | null | null | defmodule Accent.Scopes.Version do
import Ecto.Query, only: [from: 2]
@doc """
## Examples
iex> Accent.Scopes.Version.from_project(Accent.Version, "test")
#Ecto.Query<from v in Accent.Version, where: v.project_id == ^"test">
iex> Accent.Scopes.Version.from_project(Accent.Version, nil)
Accent.Ver... | 28.705882 | 73 | 0.671107 |
339a602b1a13f6a15d5934db7e1472276b9d4d1d | 756 | ex | Elixir | deps/postgrex/lib/postgrex/extensions/date.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | 1 | 2016-08-17T11:39:26.000Z | 2016-08-17T11:39:26.000Z | deps/postgrex/lib/postgrex/extensions/date.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | deps/postgrex/lib/postgrex/extensions/date.ex | hallebadkapp/rumbl-ms | ae2ef9975658115f8c4d5c49c28d8bde00a74b83 | [
"MIT"
] | null | null | null | defmodule Postgrex.Extensions.Date do
@moduledoc false
import Postgrex.BinaryUtils
use Postgrex.BinaryExtension, send: "date_send"
@gd_epoch :calendar.date_to_gregorian_days({2000, 1, 1})
@date_max_year 5874897
def encode(_, %Postgrex.Date{year: year, month: month, day: day}, _, _)
when year <= @date_ma... | 31.5 | 75 | 0.698413 |
339a60961fb5084822ea3be330fbb991ca45cf2c | 564 | ex | Elixir | apps/splatoon_data/lib/splatoon_data/weapons/weapon.ex | ndac-todoroki/DiscordSplatoonBot | 6a082b0352684cb64d36fe9116e7f060691cba37 | [
"MIT"
] | 6 | 2017-08-10T13:57:06.000Z | 2019-01-17T08:48:40.000Z | apps/splatoon_data/lib/splatoon_data/weapons/weapon.ex | ndac-todoroki/DiscordSplatoonBot | 6a082b0352684cb64d36fe9116e7f060691cba37 | [
"MIT"
] | 14 | 2017-08-08T13:07:00.000Z | 2019-02-28T15:10:18.000Z | apps/splatoon_data/lib/splatoon_data/weapons/weapon.ex | ndac-todoroki/DiscordSplatoonBot | 6a082b0352684cb64d36fe9116e7f060691cba37 | [
"MIT"
] | null | null | null | defmodule SplatoonData.Weapons.Weapon do
use Ecto.Schema
import Ecto.Changeset
alias SplatoonData.Weapons.{Tag, Weapon, TagWeapon}
schema "weapons_weapons" do
field(:name, :string)
field(:get_rank, :integer)
timestamps()
many_to_many(:tags, Tag, join_through: TagWeapon)
end
@doc false
... | 23.5 | 62 | 0.693262 |
339a6433b736dd68eecceb954a5e09f9616c309e | 1,899 | ex | Elixir | apps/tai/lib/tai/venue_adapters/gdax/stream/route_order_books.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | 1 | 2019-12-19T05:16:26.000Z | 2019-12-19T05:16:26.000Z | apps/tai/lib/tai/venue_adapters/gdax/stream/route_order_books.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/venue_adapters/gdax/stream/route_order_books.ex | ihorkatkov/tai | 09f9f15d2c385efe762ae138a8570f1e3fd41f26 | [
"MIT"
] | null | null | null | defmodule Tai.VenueAdapters.Gdax.Stream.RouteOrderBooks do
use GenServer
alias Tai.VenueAdapters.Gdax.Stream.ProcessOrderBook
defmodule State do
@type venue_id :: Tai.Venues.Adapter.venue_id()
@type venue_symbol :: Tai.Venues.Product.symbol()
@type store_name :: atom
@type stores :: %{optional(ve... | 26.013699 | 90 | 0.638231 |
339aadcbce9018099fd8c1c5b91277b596ef06b1 | 1,997 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/merge_table_cells_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/slides/lib/google_api/slides/v1/model/merge_table_cells_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/merge_table_cells_request.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 ... | 36.309091 | 151 | 0.729594 |
339aaf015525b4f4f39b26b339a21a49d599474f | 584 | ex | Elixir | web/models/post.ex | mwindholtz/has_many_blog | 521f13c8b91620713a305f44040581276d162abc | [
"Apache-2.0"
] | 7 | 2016-12-15T00:33:22.000Z | 2019-04-24T20:42:17.000Z | web/models/post.ex | mwindholtz/has_many_blog | 521f13c8b91620713a305f44040581276d162abc | [
"Apache-2.0"
] | 1 | 2017-07-19T16:41:35.000Z | 2017-07-19T16:41:35.000Z | web/models/post.ex | mwindholtz/has_many_blog | 521f13c8b91620713a305f44040581276d162abc | [
"Apache-2.0"
] | 2 | 2017-04-28T21:52:38.000Z | 2020-04-24T14:41:31.000Z | defmodule Blog.Post do
use Blog.Web, :model
schema "posts" do
has_many :comments, Blog.Comment
many_to_many :tags, Blog.Tag, join_through: Blog.PostTag
field :title, :string
field :body, :string
timestamps
end
@required_fields ~w(title body)
@optional_fields ~w()
@doc """
Creates a ... | 22.461538 | 61 | 0.683219 |
339b3ce88220294194a244045e75e6ef53f67f19 | 422 | exs | Elixir | test/pummpcomm/history/change_reservoir_warning_time_test.exs | infinity-aps/pummpcomm | 7380585ecd110ab1c19d2aea3880e51e3f433050 | [
"MIT"
] | 15 | 2017-08-31T00:58:47.000Z | 2020-01-12T03:53:13.000Z | test/pummpcomm/history/change_reservoir_warning_time_test.exs | vladhj38/pummpcomm | 7380585ecd110ab1c19d2aea3880e51e3f433050 | [
"MIT"
] | 1 | 2017-09-15T02:09:31.000Z | 2017-09-15T02:09:31.000Z | test/pummpcomm/history/change_reservoir_warning_time_test.exs | vladhj38/pummpcomm | 7380585ecd110ab1c19d2aea3880e51e3f433050 | [
"MIT"
] | 3 | 2017-09-10T17:24:59.000Z | 2019-09-10T19:41:49.000Z | defmodule Pummpcomm.History.ChangeReservoirWarningTimeTest do
use ExUnit.Case
test "Change Reservoir Warning Time" do
{:ok, history_page} = Base.decode16("65500040008108")
decoded_events = Pummpcomm.History.decode_records(history_page, %{})
assert {:change_reservoir_warning_time,
%{timesta... | 32.461538 | 72 | 0.708531 |
339b45c8f51adc6d7b99de867402a2ad549dca14 | 1,415 | ex | Elixir | clients/consumer_surveys/lib/google_api/consumer_surveys/v2/model/page_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/consumer_surveys/lib/google_api/consumer_surveys/v2/model/page_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/consumer_surveys/lib/google_api/consumer_surveys/v2/model/page_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.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... | 29.479167 | 79 | 0.74417 |
339b6dc5dd7b1b352bec159e114b9d3d51831c34 | 77 | ex | Elixir | apps/montreal_elixir_web/lib/montreal_elixir_web/views/layout_view.ex | noircir/website-1 | bfe43f5a7b022dfc009802d9d068d438e83e73f9 | [
"MIT"
] | null | null | null | apps/montreal_elixir_web/lib/montreal_elixir_web/views/layout_view.ex | noircir/website-1 | bfe43f5a7b022dfc009802d9d068d438e83e73f9 | [
"MIT"
] | null | null | null | apps/montreal_elixir_web/lib/montreal_elixir_web/views/layout_view.ex | noircir/website-1 | bfe43f5a7b022dfc009802d9d068d438e83e73f9 | [
"MIT"
] | null | null | null | defmodule MontrealElixirWeb.LayoutView do
use MontrealElixirWeb, :view
end
| 19.25 | 41 | 0.844156 |
339b6e4072ea49ea6cbd2f4033d4c14960af05bc | 203 | exs | Elixir | config/dev.exs | nabbisen/journey-planner | 82aa6e081504dfe3a9b2b191b40819404b9fd26b | [
"MIT"
] | null | null | null | config/dev.exs | nabbisen/journey-planner | 82aa6e081504dfe3a9b2b191b40819404b9fd26b | [
"MIT"
] | null | null | null | config/dev.exs | nabbisen/journey-planner | 82aa6e081504dfe3a9b2b191b40819404b9fd26b | [
"MIT"
] | null | null | null | use Mix.Config
config :jrny_plnr, JrnyPlnr.Endpoint,
http: [port: System.get_env("PORT") || 4000],
debug_errors: true
# Enables code reloading for development
config :phoenix, :code_reloader, true
| 22.555556 | 47 | 0.748768 |
339b725eb910a04debb9fa11826e2c4a8431e58f | 1,758 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/transcode_setting.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/transcode_setting.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/transcode_setting.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... | 35.16 | 193 | 0.732082 |
339b777e9b70ee307908c5233e8737ab4e6bffa9 | 465 | ex | Elixir | QWindowManager/debian/emacsen-remove.ex | rkoyama1623/Quantum | 429d11f0b2c737164005ba70c98611baef69d1c5 | [
"Unlicense"
] | 35 | 2015-01-13T00:57:17.000Z | 2022-03-16T20:39:56.000Z | QWindowManager/debian/emacsen-remove.ex | KR8T3R/Quantum | 429d11f0b2c737164005ba70c98611baef69d1c5 | [
"Unlicense"
] | null | null | null | QWindowManager/debian/emacsen-remove.ex | KR8T3R/Quantum | 429d11f0b2c737164005ba70c98611baef69d1c5 | [
"Unlicense"
] | 31 | 2015-01-29T03:59:52.000Z | 2022-03-16T20:40:43.000Z | #!/bin/sh -e
# /usr/lib/emacsen-common/packages/remove/eggwm
FLAVOR=$1
PACKAGE=eggwm
if [ ${FLAVOR} != emacs ]; then
if test -x /usr/sbin/install-info-altdir; then
echo remove/${PACKAGE}: removing Info links for ${FLAVOR}
install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/share/info/egg... | 29.0625 | 94 | 0.664516 |
339b7f6e020e070bf966c78931c9845b7e473a6b | 3,337 | ex | Elixir | lib/mix/phoenix.ex | parkerl/phoenix | 3dc207222877ce1876a07b8dd8d67fcd0325f7e1 | [
"MIT"
] | null | null | null | lib/mix/phoenix.ex | parkerl/phoenix | 3dc207222877ce1876a07b8dd8d67fcd0325f7e1 | [
"MIT"
] | null | null | null | lib/mix/phoenix.ex | parkerl/phoenix | 3dc207222877ce1876a07b8dd8d67fcd0325f7e1 | [
"MIT"
] | null | null | null | defmodule Mix.Phoenix do
# Conveniences for Phoenix tasks.
@moduledoc false
@doc """
Copies files from source dir to target dir
according to the given map.
Files are evaluated against EEx according to
the given binding.
"""
def copy_from(source_dir, target_dir, binding, mapping) when is_list(mapping... | 26.91129 | 98 | 0.574468 |
339ba5fd9b8ff56c751c58e3c2a40df02ea344f9 | 1,936 | exs | Elixir | mix.exs | jshmrtn/phoenix-client-ssl | 60055f6b7a54d38d006732ad72a48f7aa55c5c08 | [
"MIT"
] | 17 | 2017-12-01T09:12:41.000Z | 2021-04-16T07:53:37.000Z | mix.exs | jshmrtn/phoenix-client-ssl | 60055f6b7a54d38d006732ad72a48f7aa55c5c08 | [
"MIT"
] | 2 | 2018-01-29T13:04:26.000Z | 2018-05-24T11:03:55.000Z | mix.exs | jshmrtn/phoenix-client-ssl | 60055f6b7a54d38d006732ad72a48f7aa55c5c08 | [
"MIT"
] | 6 | 2018-05-24T07:42:22.000Z | 2020-11-14T17:41:35.000Z | defmodule PhoenixClientSsl.Mixfile do
@moduledoc false
use Mix.Project
def project do
[
app: :phoenix_client_ssl,
version: "0.5.0",
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
description: description(),
package: package(),
build_embedded: Mix.env() =... | 26.888889 | 85 | 0.541839 |
339bc2536f0467c86379d30c677bf8d1e89f4de2 | 1,723 | exs | Elixir | apps/service_acquire/mix.exs | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 12 | 2020-01-27T19:43:02.000Z | 2021-07-28T19:46:29.000Z | apps/service_acquire/mix.exs | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 81 | 2020-01-28T18:07:23.000Z | 2021-11-22T02:12:13.000Z | apps/service_acquire/mix.exs | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 10 | 2020-02-13T21:24:09.000Z | 2020-05-21T18:39:35.000Z | defmodule Acquire.MixProject do
use Mix.Project
def project do
[
app: :service_acquire,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.5",
elixirc_paths: eli... | 28.716667 | 57 | 0.535694 |
339bd6e335ede79c5f201bc1b2d3db87a255b9fd | 177 | exs | Elixir | test/day17_test.exs | azuline/aoc2019 | 78fe38d0dc6d2d2c5ca7fc6286cff1dd165c604a | [
"Apache-2.0"
] | null | null | null | test/day17_test.exs | azuline/aoc2019 | 78fe38d0dc6d2d2c5ca7fc6286cff1dd165c604a | [
"Apache-2.0"
] | null | null | null | test/day17_test.exs | azuline/aoc2019 | 78fe38d0dc6d2d2c5ca7fc6286cff1dd165c604a | [
"Apache-2.0"
] | null | null | null | defmodule Day17Test do
use ExUnit.Case, async: true
import Day17
alias Day17.{Part1, Part2}
test "part 1" do
assert 3336 == get_program() |> Part1.run()
end
end
| 16.090909 | 47 | 0.672316 |
339c0ef478fefbebe5113c5aba9df8a81459f03f | 396 | exs | Elixir | mix.exs | choestelus/try-ex | 0f4e09996eaf07f3bbba6402012893f48cd4edde | [
"MIT"
] | null | null | null | mix.exs | choestelus/try-ex | 0f4e09996eaf07f3bbba6402012893f48cd4edde | [
"MIT"
] | null | null | null | mix.exs | choestelus/try-ex | 0f4e09996eaf07f3bbba6402012893f48cd4edde | [
"MIT"
] | null | null | null | defmodule TryEx.MixProject do
use Mix.Project
def project do
[
apps_path: "apps",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Dependencies listed here are available only for this
# project and cannot be accessed from applications inside
# the apps folder.
#
# Ru... | 18.857143 | 59 | 0.64899 |
339c277749c748b8ed3de9909b7ee687cf5163ab | 210 | ex | Elixir | lib/ucl/structs.ex | skunkwerks/ucl-elixir | 059183f107db4997958e8cd57ae5a2e1557835a7 | [
"MIT"
] | null | null | null | lib/ucl/structs.ex | skunkwerks/ucl-elixir | 059183f107db4997958e8cd57ae5a2e1557835a7 | [
"MIT"
] | null | null | null | lib/ucl/structs.ex | skunkwerks/ucl-elixir | 059183f107db4997958e8cd57ae5a2e1557835a7 | [
"MIT"
] | null | null | null | defmodule UCL.Section do
defstruct [:key, :block]
end
defmodule UCL.Block do
defstruct [:data]
end
defmodule UCL.Value do
defstruct [:key, :value]
end
defmodule UCL.Comments do
defstruct [:text]
end
| 13.125 | 26 | 0.728571 |
339c2b9b20c6a0e36c3f6569c605873a178bfad1 | 113 | ex | Elixir | lib/dstreams/repo.ex | vegabook/dstreams | 9a2919b36ba2901522a61737a593fea28a655777 | [
"MIT"
] | null | null | null | lib/dstreams/repo.ex | vegabook/dstreams | 9a2919b36ba2901522a61737a593fea28a655777 | [
"MIT"
] | null | null | null | lib/dstreams/repo.ex | vegabook/dstreams | 9a2919b36ba2901522a61737a593fea28a655777 | [
"MIT"
] | null | null | null | defmodule Dstreams.Repo do
use Ecto.Repo,
otp_app: :dstreams,
adapter: Ecto.Adapters.Postgres
end
| 18.833333 | 36 | 0.699115 |
339ca229761a4aec17c26b3139d8698603e5dc32 | 4,098 | ex | Elixir | lib/cachex/services/janitor.ex | botwerk/cachex | d37996d3be35b0d8281e347d44c024ecf2735131 | [
"MIT"
] | 946 | 2017-06-26T00:36:58.000Z | 2022-03-29T19:52:31.000Z | lib/cachex/services/janitor.ex | botwerk/cachex | d37996d3be35b0d8281e347d44c024ecf2735131 | [
"MIT"
] | 152 | 2017-06-28T10:01:24.000Z | 2022-03-24T18:46:13.000Z | lib/cachex/services/janitor.ex | botwerk/cachex | d37996d3be35b0d8281e347d44c024ecf2735131 | [
"MIT"
] | 84 | 2017-06-30T05:30:31.000Z | 2022-03-01T20:23:16.000Z | defmodule Cachex.Services.Janitor do
@moduledoc """
Expiration service to clean up expired cache records periodically.
The Janitor provides the main expiration cleanup for Cachex, providing a
very basic scheduler to repeatedly cleanup cache tables for all expired
entries.
This runs in a separate process t... | 30.58209 | 81 | 0.676672 |
339ce0d624e15439f32c8ed9e46e67448ccfc81b | 1,196 | ex | Elixir | apps/alert_processor/lib/rules_engine/active_period_filter.ex | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | null | null | null | apps/alert_processor/lib/rules_engine/active_period_filter.ex | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 21 | 2021-03-12T17:05:30.000Z | 2022-02-16T21:48:35.000Z | apps/alert_processor/lib/rules_engine/active_period_filter.ex | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 1 | 2021-12-09T15:09:53.000Z | 2021-12-09T15:09:53.000Z | defmodule AlertProcessor.ActivePeriodFilter do
@moduledoc """
Filter subscriptions based on matching an active period in an alert
"""
alias AlertProcessor.{Model, TimeFrameComparison}
alias Model.{Alert, Subscription}
@doc """
filter/1 takes a tuple including a subquery which represents the remaining
s... | 32.324324 | 93 | 0.719064 |
339cef8226d1885f16997d39a467123e31270fac | 1,617 | ex | Elixir | lib/zaryn_web/endpoint.ex | Arvandazr/zaryn | 748805297b399358d28fbcb7ced7588e40f90f03 | [
"Apache-2.0"
] | 1 | 2020-01-04T11:24:44.000Z | 2020-01-04T11:24:44.000Z | lib/zaryn_web/endpoint.ex | Arvandazr/zaryn | 748805297b399358d28fbcb7ced7588e40f90f03 | [
"Apache-2.0"
] | null | null | null | lib/zaryn_web/endpoint.ex | Arvandazr/zaryn | 748805297b399358d28fbcb7ced7588e40f90f03 | [
"Apache-2.0"
] | null | null | null | defmodule ZarynWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :zaryn
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_zaryn_key",
... | 29.4 | 97 | 0.716759 |
339d0bee9d341081dd77ba4338177ecb866cc96d | 5,950 | exs | Elixir | test/livebook_web/live/home_live_test.exs | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | test/livebook_web/live/home_live_test.exs | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | test/livebook_web/live/home_live_test.exs | rodrigues/livebook | 9822735bcf0b5bffbbc2bd59a7b942e81276ffe3 | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.HomeLiveTest do
use LivebookWeb.ConnCase
import Phoenix.LiveViewTest
alias Livebook.{SessionSupervisor, Session}
test "disconnected and connected render", %{conn: conn} do
{:ok, view, disconnected_html} = live(conn, "/")
assert disconnected_html =~ "Running sessions"
assert ... | 26.801802 | 93 | 0.561513 |
339d29bdb86dd48914f963be6a05b7efb027da29 | 3,674 | ex | Elixir | clients/genomics/lib/google_api/genomics/v1/model/variant_call.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/genomics/lib/google_api/genomics/v1/model/variant_call.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/genomics/lib/google_api/genomics/v1/model/variant_call.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... | 65.607143 | 813 | 0.742243 |
339d3aa4fa73f9afa568b918c8bfc5098ab05427 | 61 | exs | Elixir | apps/server/test/token_test.exs | skystar-p/watchcat | bf21dd04ba025fdc3914c6d4c1e9ad1a723dbad5 | [
"MIT"
] | 3 | 2018-02-02T12:06:55.000Z | 2018-02-04T22:23:00.000Z | apps/server/test/token_test.exs | skystar-p/watchcat | bf21dd04ba025fdc3914c6d4c1e9ad1a723dbad5 | [
"MIT"
] | 8 | 2018-03-04T08:34:36.000Z | 2018-04-03T02:17:30.000Z | apps/server/test/token_test.exs | skystar-p/watchcat | bf21dd04ba025fdc3914c6d4c1e9ad1a723dbad5 | [
"MIT"
] | null | null | null | defmodule TokenTest do
use ExUnit.Case
doctest Token
end
| 12.2 | 22 | 0.786885 |
339d46013c2736368a89ee4dea4084dbeb2d18a9 | 7,111 | exs | Elixir | .credo.exs | kianmeng/brex | f9758e0e8684404d7552597aac9e436aa8063532 | [
"MIT"
] | 487 | 2020-06-08T03:04:21.000Z | 2022-03-31T14:51:36.000Z | .credo.exs | kianmeng/brex | f9758e0e8684404d7552597aac9e436aa8063532 | [
"MIT"
] | 334 | 2019-10-15T22:14:20.000Z | 2022-03-31T06:07:26.000Z | .credo.exs | kianmeng/brex | f9758e0e8684404d7552597aac9e436aa8063532 | [
"MIT"
] | 61 | 2020-06-10T05:25:03.000Z | 2022-03-23T15:54:26.000Z | # 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.231183 | 97 | 0.611166 |
339d861804418b05fbbebea5807c326ad7df02b7 | 730 | ex | Elixir | apps/core/lib/core/models/ability.ex | iporaitech/phoenix-webpack-react-docker | c454db0b851b9d00db868a64b96e567d4a0cc3d9 | [
"MIT"
] | 25 | 2016-08-09T15:04:37.000Z | 2021-11-15T12:20:27.000Z | apps/core/lib/core/models/ability.ex | iporaitech/phoenix-webpack-react-docker | c454db0b851b9d00db868a64b96e567d4a0cc3d9 | [
"MIT"
] | 62 | 2016-05-23T20:16:40.000Z | 2017-04-18T18:36:29.000Z | apps/core/lib/core/models/ability.ex | iporaitech/phoenix-webpack-react-docker | c454db0b851b9d00db868a64b96e567d4a0cc3d9 | [
"MIT"
] | 10 | 2016-08-17T15:29:21.000Z | 2017-02-28T07:58:30.000Z | alias Core.User
alias Core.Company
alias Core.Person
#check is Core.Repo
defimpl Canada.Can, for: User do
#
# User abilities
#
def can?(%User{id: user_id}, action, %User{id: user_id})
when action in [:update, :read, :show, :edit], do: true
def can?(%User{}, action, Company)
when action in [:read, :in... | 22.121212 | 59 | 0.621918 |
339d999356032718815d1f5b533f7cb85f5e5bfc | 2,082 | ex | Elixir | lib/hexpm/web/views/api/package_view.ex | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/web/views/api/package_view.ex | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/web/views/api/package_view.ex | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Web.API.PackageView do
use Hexpm.Web, :view
import Ecto
def render("index." <> _, %{packages: packages}),
do: render_many(packages, __MODULE__, "package/index")
def render("show." <> _, %{package: package}),
do: render_one(package, __MODULE__, "package/show")
def render("package/" <>... | 32.030769 | 113 | 0.6561 |
339dcff804262de8374e0872e3f086c3374d00ab | 1,946 | exs | Elixir | mix.exs | gerred/bonny | e33b35924bc4dc8b0d87eb8890fa130a8f3c1a48 | [
"MIT"
] | null | null | null | mix.exs | gerred/bonny | e33b35924bc4dc8b0d87eb8890fa130a8f3c1a48 | [
"MIT"
] | null | null | null | mix.exs | gerred/bonny | e33b35924bc4dc8b0d87eb8890fa130a8f3c1a48 | [
"MIT"
] | null | null | null | defmodule Bonny.MixProject do
use Mix.Project
def project do
[
app: :bonny,
description: description(),
version: "0.4.0-rc3",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: [tool: ExCov... | 24.024691 | 96 | 0.549846 |
339dd7e4320e0abdbce5563402ee0ef9a26748b9 | 466 | exs | Elixir | test/tablespoon_web/views/error_view_test.exs | paulswartz/tablespoon | 3637ee22cce16755fa50461058a079fa18d33b1b | [
"MIT"
] | 2 | 2020-04-03T14:39:23.000Z | 2020-12-17T23:12:58.000Z | test/tablespoon_web/views/error_view_test.exs | mbta/tablespoon | 4303ad8498f3e619b081ffbd6892156e0214b61e | [
"MIT"
] | 107 | 2019-09-16T12:52:17.000Z | 2022-02-28T10:25:15.000Z | test/tablespoon_web/views/error_view_test.exs | mbta/tablespoon | 4303ad8498f3e619b081ffbd6892156e0214b61e | [
"MIT"
] | null | null | null | defmodule TablespoonWeb.ErrorViewTest do
use TablespoonWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.json" do
assert render(TablespoonWeb.ErrorView, "404.json", []) == %{errors: %{detail: "Not Found"}}
end
test "render... | 29.125 | 95 | 0.690987 |
339df052b1a8e4901ca554357d23499c5401eb64 | 239 | ex | Elixir | lib/application.ex | michalmuskala/debounce | 1b6f8afab533fda89f26063a7276dce7a90a2c31 | [
"Apache-2.0"
] | 20 | 2017-01-11T21:05:25.000Z | 2021-06-25T14:05:49.000Z | lib/application.ex | michalmuskala/debounce | 1b6f8afab533fda89f26063a7276dce7a90a2c31 | [
"Apache-2.0"
] | 1 | 2020-09-18T11:12:28.000Z | 2020-09-18T19:17:30.000Z | lib/application.ex | michalmuskala/debounce | 1b6f8afab533fda89f26063a7276dce7a90a2c31 | [
"Apache-2.0"
] | 1 | 2019-02-28T21:24:52.000Z | 2019-02-28T21:24:52.000Z | defmodule Debounce.Application do
@moduledoc false
use Application
def start(_, _) do
children = [
{Task.Supervisor, name: Debounce.Supervisor}
]
Supervisor.start_link(children, strategy: :one_for_one)
end
end
| 17.071429 | 59 | 0.698745 |
339df489ba702d53f4269b44784b9b234360d488 | 1,746 | ex | Elixir | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/clear_org_policy_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/clear_org_policy_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/cloud_resource_manager/lib/google_api/cloud_resource_manager/v1/model/clear_org_policy_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 34.235294 | 121 | 0.731386 |
339e0514c23ee6d59ea79a26899ff861fe33bf50 | 3,377 | ex | Elixir | lib/aws/generated/sage_maker_runtime.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 341 | 2018-04-04T19:06:19.000Z | 2022-03-25T21:34:23.000Z | lib/aws/generated/sage_maker_runtime.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 82 | 2018-04-04T17:32:33.000Z | 2022-03-24T15:12:04.000Z | lib/aws/generated/sage_maker_runtime.ex | kw7oe/aws-elixir | 4ba60502dde270c83143822c9964018c7770bad7 | [
"Apache-2.0"
] | 76 | 2018-04-10T20:19:44.000Z | 2022-03-15T13:49:19.000Z | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.SageMakerRuntime do
@moduledoc """
The Amazon SageMaker runtime API.
"""
alias AWS.Client
alias AWS.Request
def metadata do
%AWS.ServiceMetadata{
abbreviation: nil,
a... | 31.560748 | 159 | 0.672786 |
339e0c7b56a2b6520a32d62f8989fc7641732f89 | 1,854 | ex | Elixir | test/support/conn_case.ex | FabriDamazio/mibli | 853fe5e7575040fdbade5ed5997465a68bcc529d | [
"MIT"
] | null | null | null | test/support/conn_case.ex | FabriDamazio/mibli | 853fe5e7575040fdbade5ed5997465a68bcc529d | [
"MIT"
] | null | null | null | test/support/conn_case.ex | FabriDamazio/mibli | 853fe5e7575040fdbade5ed5997465a68bcc529d | [
"MIT"
] | null | null | null | defmodule MibliWeb.ConnCase do
@moduledoc """
This module defines the test case to be used by
tests that require setting up a connection.
Such tests rely on `Phoenix.ConnTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the ... | 28.090909 | 86 | 0.71521 |
339e1c89d32c80ec89a2a2f2d3b370542d456396 | 385 | exs | Elixir | hacker_news/priv/repo/migrations/20210923084209_create_hackernews.exs | suulcoder/ElixirStories | 6aaf8cdaf834b019d02f8c82461f0f7825540629 | [
"MIT"
] | null | null | null | hacker_news/priv/repo/migrations/20210923084209_create_hackernews.exs | suulcoder/ElixirStories | 6aaf8cdaf834b019d02f8c82461f0f7825540629 | [
"MIT"
] | null | null | null | hacker_news/priv/repo/migrations/20210923084209_create_hackernews.exs | suulcoder/ElixirStories | 6aaf8cdaf834b019d02f8c82461f0f7825540629 | [
"MIT"
] | null | null | null | defmodule HackerNews.Repo.Migrations.CreateHackernews do
use Ecto.Migration
def change do
create table(:hackernews) do
add :by, :string
add :descendants, :decimal
add :kids, {:array, :decimal}
add :score, :decimal
add :time, :decimal
add :title, :text
add :type, :strin... | 19.25 | 56 | 0.615584 |
339e51d05a67ee8570d7d36a74f790d3e8626661 | 651 | exs | Elixir | config/test.exs | nidhindamodaran/colly | aaf5076afa24ea69ec084f19c5617f6808b40ade | [
"MIT"
] | null | null | null | config/test.exs | nidhindamodaran/colly | aaf5076afa24ea69ec084f19c5617f6808b40ade | [
"MIT"
] | 4 | 2020-05-30T13:25:44.000Z | 2021-05-11T13:32:44.000Z | config/test.exs | nidhinnambiar/colly | aaf5076afa24ea69ec084f19c5617f6808b40ade | [
"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 :colly, Colly.Repo,
username: "postgres",
password: "postgres",
database: "colly_test#{System.get_env(... | 28.304348 | 64 | 0.745008 |
339e759fd84e3b8c32761799a321b33105714856 | 1,255 | ex | Elixir | parser/lib/object/server.ex | yidaoit/quenya | 45fe42c32829a1a2499d325e592553061b876ef8 | [
"MIT"
] | 143 | 2020-12-01T06:53:36.000Z | 2022-03-24T02:33:01.000Z | parser/lib/object/server.ex | yidaoit/quenya | 45fe42c32829a1a2499d325e592553061b876ef8 | [
"MIT"
] | 2 | 2020-11-30T05:30:42.000Z | 2020-12-17T06:33:17.000Z | parser/lib/object/server.ex | tyrchen/quenya | b9e8ef9e71e0e52b010b930eee66942e30c62ddd | [
"MIT"
] | 12 | 2020-12-07T01:22:17.000Z | 2020-12-27T12:49:39.000Z | defmodule QuenyaParser.Object.Server do
@moduledoc """
Server object. We do not process server variables for now.
"""
use TypedStruct
alias QuenyaParser.Object.{Server, ServerVariable}
typedstruct do
@typedoc "Server object from the spec"
field(:url, String.t(), enforce: true)
field(:descriptio... | 26.145833 | 122 | 0.640637 |
339e7639b45103cc2d2b17f005ef7af779a5f4e2 | 2,177 | ex | Elixir | lib/http/simplate_dispatch.ex | clone1018/experimental-elixir-aspen | 1dd36700fe534994e5ca7e6964ce94e1f6c7369f | [
"MIT"
] | 2 | 2017-02-13T05:39:43.000Z | 2017-11-01T23:34:39.000Z | lib/http/simplate_dispatch.ex | clone1018/experimental-elixir-aspen | 1dd36700fe534994e5ca7e6964ce94e1f6c7369f | [
"MIT"
] | 10 | 2017-02-06T13:10:21.000Z | 2017-11-05T00:17:33.000Z | lib/http/simplate_dispatch.ex | LawfulGood/infuse | 1dd36700fe534994e5ca7e6964ce94e1f6c7369f | [
"MIT"
] | null | null | null | defmodule Infuse.HTTP.SimplateDispatch do
@moduledoc """
Handle the Simplate HTTP Dispatch
The Infuse.HTTP.SimplateRouter is used for determining if the simplate is
valid and sending it here
"""
import Plug.Conn
require Logger
def init(opts) do
opts
end
def call(pre_conn, opts) do
Logg... | 27.910256 | 134 | 0.666514 |
339e7dc790cda4b6d9ff90ef71843bdbe7d10d8d | 2,622 | exs | Elixir | 2017/21/fractal_two.exs | bbridges/advent | f2724f39ca82aa3d2a6f3de7a6ea91222d511e00 | [
"MIT"
] | null | null | null | 2017/21/fractal_two.exs | bbridges/advent | f2724f39ca82aa3d2a6f3de7a6ea91222d511e00 | [
"MIT"
] | null | null | null | 2017/21/fractal_two.exs | bbridges/advent | f2724f39ca82aa3d2a6f3de7a6ea91222d511e00 | [
"MIT"
] | null | null | null | defmodule FractalTwo do
@start [
[false, true, false],
[false, false, true ],
[true, true, true ]
]
def count_on_pixels(input, iter) do
input
|> _parse_input
|> _count_on_pixels(iter)
end
defp _count_on_pixels(rules, iter),
do: _count_on_pixels rules, iter, 0, @start
defp _... | 24.055046 | 74 | 0.566743 |
339e828477278df2c6d25fb8295229ed1dbee1da | 872 | exs | Elixir | test/kiq/identity_test.exs | locaweb/kiq | fa561b9a1a2361e99b4af5eafc4d3c7ece576ea9 | [
"MIT"
] | 59 | 2018-07-13T23:17:00.000Z | 2021-12-21T07:03:03.000Z | test/kiq/identity_test.exs | locaweb/kiq | fa561b9a1a2361e99b4af5eafc4d3c7ece576ea9 | [
"MIT"
] | 5 | 2019-08-05T13:14:42.000Z | 2022-03-09T12:38:46.000Z | test/kiq/identity_test.exs | locaweb/kiq | fa561b9a1a2361e99b4af5eafc4d3c7ece576ea9 | [
"MIT"
] | 6 | 2018-09-24T13:16:21.000Z | 2021-05-03T08:26:52.000Z | defmodule Kiq.IdentityTest do
use ExUnit.Case, async: true
alias Kiq.Identity
describe "hostname/1" do
test "the system's DYNO value is favored when available" do
assert Identity.hostname(%{"DYNO" => "worker.1"}) == "worker.1"
end
test "the local hostname is used without a DYNO variable" do
... | 25.647059 | 74 | 0.643349 |
339eb38fc5c43ab46cc03f6873d0a2a142f53292 | 160 | exs | Elixir | implementations/elixir/config/test.exs | nondejus/ockam | 4dba6c3b9d377643cc8a0e46a8c0e632e8aa48ad | [
"Apache-2.0"
] | null | null | null | implementations/elixir/config/test.exs | nondejus/ockam | 4dba6c3b9d377643cc8a0e46a8c0e632e8aa48ad | [
"Apache-2.0"
] | null | null | null | implementations/elixir/config/test.exs | nondejus/ockam | 4dba6c3b9d377643cc8a0e46a8c0e632e8aa48ad | [
"Apache-2.0"
] | null | null | null | import Config
config :logger,
level: :warn
config :fluxter, Ockam.Services.Influx.Fluxter,
host: "127.0.0.1",
port: 8089,
pool_size: 5,
prefix: nil
| 14.545455 | 47 | 0.68125 |
339ee8346767ad0349697b974d764872fee7339a | 1,070 | exs | Elixir | test/dynamodb_local_get_item_test.exs | hirokazumiyaji/dynamodb | f8a3fdc64b954aae99e4281fc28c8ca6886e5876 | [
"MIT"
] | 1 | 2017-02-01T12:42:45.000Z | 2017-02-01T12:42:45.000Z | test/dynamodb_local_get_item_test.exs | hirokazumiyaji/dynamodb-elixir | f8a3fdc64b954aae99e4281fc28c8ca6886e5876 | [
"MIT"
] | null | null | null | test/dynamodb_local_get_item_test.exs | hirokazumiyaji/dynamodb-elixir | f8a3fdc64b954aae99e4281fc28c8ca6886e5876 | [
"MIT"
] | null | null | null | defmodule DynamoDBLocalGetItemTest do
use ExUnit.Case, async: true
setup_all do
table_name = "GetItem"
config = DynamoDB.Config.new(System.get_env("DYNAMODB_HOST"), System.get_env("DYNAMODB_PORT"), false)
DynamoDB.create_table(
config,
[
%{AttributeName: "Id", AttributeType: "S"},
... | 23.26087 | 116 | 0.594393 |
339f12b251a2813738091f3c08e846a062239d82 | 842 | exs | Elixir | mix.exs | ElusiveSpirit/test-elixir-2017 | 03489a0d7f2dcefe49c44e218f1d877ca99e47f6 | [
"MIT"
] | null | null | null | mix.exs | ElusiveSpirit/test-elixir-2017 | 03489a0d7f2dcefe49c44e218f1d877ca99e47f6 | [
"MIT"
] | null | null | null | mix.exs | ElusiveSpirit/test-elixir-2017 | 03489a0d7f2dcefe49c44e218f1d877ca99e47f6 | [
"MIT"
] | null | null | null | defmodule KVstore.Mixfile do
use Mix.Project
def project do
[app: :kvstore,
version: "0.1.0",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for mo... | 20.536585 | 77 | 0.555819 |
339f2f8ffd9f847bb29dff8a6b4a16c892753398 | 1,287 | exs | Elixir | test/real_world_web/controllers/session_controller_test.exs | nenjotsu/elixir-phoenix-realworld-example-app | 46ab9c7f971ccf2fdf52c52983803d567ff86b4c | [
"MIT"
] | 1 | 2019-09-28T05:50:46.000Z | 2019-09-28T05:50:46.000Z | test/real_world_web/controllers/session_controller_test.exs | nenjotsu/elixir-phoenix-realworld-example-app | 46ab9c7f971ccf2fdf52c52983803d567ff86b4c | [
"MIT"
] | null | null | null | test/real_world_web/controllers/session_controller_test.exs | nenjotsu/elixir-phoenix-realworld-example-app | 46ab9c7f971ccf2fdf52c52983803d567ff86b4c | [
"MIT"
] | null | null | null | defmodule RealWorldWeb.SessionControllerTest do
@moduledoc false
use RealWorldWeb.ConnCase
@user_default_attrs %{email: "john@jacob.com", username: "john", password: "some password", bio: "some bio", image: "some image"}
@user_login_attrs %{email: "john@jacob.com", password: "some password"}
def fixture(:us... | 29.25 | 131 | 0.635587 |
339f490c272e5db7146f754338fb13b52d78b3ef | 59 | ex | Elixir | lib/mudkip_web/views/page_view.ex | KaiaHa/MUDkip | 10c1208d117d3426474c9b39b864972b7c41d65d | [
"MIT"
] | null | null | null | lib/mudkip_web/views/page_view.ex | KaiaHa/MUDkip | 10c1208d117d3426474c9b39b864972b7c41d65d | [
"MIT"
] | null | null | null | lib/mudkip_web/views/page_view.ex | KaiaHa/MUDkip | 10c1208d117d3426474c9b39b864972b7c41d65d | [
"MIT"
] | null | null | null | defmodule MudkipWeb.PageView do
use MudkipWeb, :view
end
| 14.75 | 31 | 0.79661 |
339f59776a8fab4735ebce84dfdc5c36d950e774 | 99 | exs | Elixir | lab4/test/lab4_test.exs | AlexandruBurlacu/NetworkProgrammingLabs | 289720c6bcf2ce4bcdb22b5f57ec03a2c1200891 | [
"MIT"
] | null | null | null | lab4/test/lab4_test.exs | AlexandruBurlacu/NetworkProgrammingLabs | 289720c6bcf2ce4bcdb22b5f57ec03a2c1200891 | [
"MIT"
] | null | null | null | lab4/test/lab4_test.exs | AlexandruBurlacu/NetworkProgrammingLabs | 289720c6bcf2ce4bcdb22b5f57ec03a2c1200891 | [
"MIT"
] | null | null | null | defmodule Lab4Test do
use ExUnit.Case
test "always true" do
assert true == true
end
end
| 12.375 | 23 | 0.686869 |
339f5a2eb16a61cd959e7e3d29ef1ad1fc95361f | 1,079 | ex | Elixir | lib/tasks/release_tasks.ex | vertico/vertico-test | af68000ff99450cf5686d7c5b803931f267c8e19 | [
"MIT"
] | 3 | 2021-11-23T23:07:34.000Z | 2021-11-24T01:40:01.000Z | lib/tasks/release_tasks.ex | vertico/vertico-test | af68000ff99450cf5686d7c5b803931f267c8e19 | [
"MIT"
] | null | null | null | lib/tasks/release_tasks.ex | vertico/vertico-test | af68000ff99450cf5686d7c5b803931f267c8e19 | [
"MIT"
] | 1 | 2021-07-19T11:48:30.000Z | 2021-07-19T11:48:30.000Z | defmodule Shikoba.ReleaseTasks do
@moduledoc """
Tasks to facilitate deployment and management in production.
"""
alias Ecto.Migrator
@application :shikoba
def migrate do
for repo <- repos() do
{:ok, _, _} = Migrator.with_repo(repo, &Migrator.run(&1, :up, all: true))
end
end
def seed d... | 21.58 | 79 | 0.647822 |
339f6bd07d57baf59dab4d163d8d121adb7c5a99 | 1,052 | ex | Elixir | lib/surgex/surgeries/patient.ex | fiqus/surgex | af3ec37459abd3f17c7e9a826ca1abef1dd5fb44 | [
"MIT"
] | 8 | 2019-05-11T19:41:06.000Z | 2020-01-20T07:01:53.000Z | lib/surgex/surgeries/patient.ex | fiqus/surgex | af3ec37459abd3f17c7e9a826ca1abef1dd5fb44 | [
"MIT"
] | 12 | 2019-05-10T22:00:40.000Z | 2019-07-05T19:20:56.000Z | lib/surgex/surgeries/patient.ex | fiqus/surgex | af3ec37459abd3f17c7e9a826ca1abef1dd5fb44 | [
"MIT"
] | 1 | 2019-07-18T15:58:41.000Z | 2019-07-18T15:58:41.000Z | defmodule Surgex.Surgeries.Patient do
use Ecto.Schema
import Ecto.Changeset
alias Surgex.Surgeries.Surgery
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "patients" do
field :social_id, :string
field :medical_history, :string
field :first_name, :string
... | 22.382979 | 52 | 0.647338 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.