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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1ab598923ea7d3c0086cdc8daaba97a65721335f | 4,093 | exs | Elixir | test/exshome_player/variables_test.exs | exshome/exshome | ef6b7a89f11dcd2016856dd49517b74aeebb6513 | [
"MIT"
] | 2 | 2021-12-21T16:32:56.000Z | 2022-02-22T17:06:39.000Z | test/exshome_player/variables_test.exs | exshome/exshome | ef6b7a89f11dcd2016856dd49517b74aeebb6513 | [
"MIT"
] | null | null | null | test/exshome_player/variables_test.exs | exshome/exshome | ef6b7a89f11dcd2016856dd49517b74aeebb6513 | [
"MIT"
] | null | null | null | defmodule ExshomePlayerTest.VariablesTest do
use Exshome.DataCase, async: true
import ExshomeTest.Fixtures
alias Exshome.Dependency
alias ExshomePlayer.Services.PlayerState
alias ExshomePlayer.Variables
alias ExshomeTest.TestRegistry
describe "Variables.Duration" do
setup do
TestRegistry.star... | 29.446043 | 92 | 0.701686 |
1ab5b01bfadc1b5d582bbd3f56cc59acdc3818bc | 22,810 | exs | Elixir | test/changeset/changeset_test.exs | michaelst/ash | 650b256b2a4396cf068ca31d5364e43fa3c10032 | [
"MIT"
] | null | null | null | test/changeset/changeset_test.exs | michaelst/ash | 650b256b2a4396cf068ca31d5364e43fa3c10032 | [
"MIT"
] | null | null | null | test/changeset/changeset_test.exs | michaelst/ash | 650b256b2a4396cf068ca31d5364e43fa3c10032 | [
"MIT"
] | null | null | null | defmodule Ash.Test.Changeset.ChangesetTest do
@moduledoc false
use ExUnit.Case, async: true
alias Ash.Changeset
require Ash.Query
defmodule Category do
use Ash.Resource, data_layer: Ash.DataLayer.Ets
ets do
private?(true)
end
actions do
read :read
create :create, primary... | 26.835294 | 121 | 0.582332 |
1ab5bf334e02f6bd7a190fd1825f4d3b00b7f72e | 1,490 | ex | Elixir | clients/poly/lib/google_api/poly/v1/model/remix_info.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/poly/lib/google_api/poly/v1/model/remix_info.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/poly/lib/google_api/poly/v1/model/remix_info.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 31.702128 | 143 | 0.727517 |
1ab5c5d8762417ee4ad0ff4b5cb44c2240a0423a | 1,412 | exs | Elixir | config/config.exs | matt-mazzucato/astarte_rpc | b38f2a0d4673d74ec90150f61200c3b124d6d1b5 | [
"Apache-2.0"
] | null | null | null | config/config.exs | matt-mazzucato/astarte_rpc | b38f2a0d4673d74ec90150f61200c3b124d6d1b5 | [
"Apache-2.0"
] | null | null | null | config/config.exs | matt-mazzucato/astarte_rpc | b38f2a0d4673d74ec90150f61200c3b124d6d1b5 | [
"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
# lager is used by rabbit_common.
# Silent it by setting the higher loglevel.
config :lager,
error_logger_redirect: false,
handlers: [level: :critical]
# make amqp supervisors l... | 32.090909 | 73 | 0.759915 |
1ab5ed5a4f9981800f46279c12c94d89b0edb9e0 | 238 | exs | Elixir | priv/repo/migrations/20160905171336_rename_teacher_fore_and_family_names.exs | deerob4/salop-teaching-school | 5c4c4a15232859b5b3bdc84ec9874689891ca9d8 | [
"MIT"
] | null | null | null | priv/repo/migrations/20160905171336_rename_teacher_fore_and_family_names.exs | deerob4/salop-teaching-school | 5c4c4a15232859b5b3bdc84ec9874689891ca9d8 | [
"MIT"
] | null | null | null | priv/repo/migrations/20160905171336_rename_teacher_fore_and_family_names.exs | deerob4/salop-teaching-school | 5c4c4a15232859b5b3bdc84ec9874689891ca9d8 | [
"MIT"
] | null | null | null | defmodule TeachingSchool.Repo.Migrations.RenameTeacherForeAndFamilyNames do
use Ecto.Migration
def change do
rename table(:teachers), :forename, to: :first_name
rename table(:teachers), :family_name, to: :last_name
end
end
| 26.444444 | 75 | 0.768908 |
1ab603107f593e6cf348d32392a0fee7925b6e3a | 572 | ex | Elixir | lib/mastering_bitcoin/satoshi_words.ex | paulfioravanti/mastering_bitcoin | 1cf2eb230d4c04cfca6829ea60c045fe4b0d1756 | [
"MIT"
] | 6 | 2018-01-15T06:54:18.000Z | 2018-07-12T17:50:29.000Z | lib/mastering_bitcoin/satoshi_words.ex | paulfioravanti/mastering_bitcoin | 1cf2eb230d4c04cfca6829ea60c045fe4b0d1756 | [
"MIT"
] | null | null | null | lib/mastering_bitcoin/satoshi_words.ex | paulfioravanti/mastering_bitcoin | 1cf2eb230d4c04cfca6829ea60c045fe4b0d1756 | [
"MIT"
] | null | null | null | defmodule MasteringBitcoin.SatoshiWords do
@moduledoc """
Example 10-6. Extract the coinbase data from the genesis block.
Port over of `satoshi-words.cpp` file.
"""
alias Cure.Server, as: Cure
@cpp_executable "priv/satoshi-words"
def run do
with {:ok, pid} <- Cure.start_link(@cpp_executable),
... | 19.724138 | 65 | 0.643357 |
1ab613a887aa45cd3e5b39bf38c17127ca86d62f | 71 | ex | Elixir | apps/faqcheck_web/lib/faqcheck_web/views/organization_view.ex | csboling/faqcheck | bc182c365d466c8dcacc6b1a5fe9186a2c912cd4 | [
"CC0-1.0"
] | null | null | null | apps/faqcheck_web/lib/faqcheck_web/views/organization_view.ex | csboling/faqcheck | bc182c365d466c8dcacc6b1a5fe9186a2c912cd4 | [
"CC0-1.0"
] | 20 | 2021-09-08T04:07:31.000Z | 2022-03-10T21:52:24.000Z | apps/faqcheck_web/lib/faqcheck_web/views/organization_view.ex | csboling/faqcheck | bc182c365d466c8dcacc6b1a5fe9186a2c912cd4 | [
"CC0-1.0"
] | null | null | null | defmodule FaqcheckWeb.OrganizationView do
use FaqcheckWeb, :view
end
| 17.75 | 41 | 0.830986 |
1ab61e4cc2676ae7d9150055b19aca6f1423f1aa | 560 | ex | Elixir | lib/elixir_boilerplate_graphql/router.ex | zenbaku/calibur | dd7412fc93491ae1e86adaae0e683e5192ab5e11 | [
"BSD-3-Clause"
] | null | null | null | lib/elixir_boilerplate_graphql/router.ex | zenbaku/calibur | dd7412fc93491ae1e86adaae0e683e5192ab5e11 | [
"BSD-3-Clause"
] | 13 | 2020-07-19T02:33:09.000Z | 2021-06-16T04:39:04.000Z | lib/elixir_boilerplate_graphql/router.ex | togmund/elixir-boilerplate | 087254495773cd58d53a02c7c186b5678d60c757 | [
"BSD-3-Clause"
] | null | null | null | defmodule ElixirBoilerplateGraphQL.Router do
use Plug.Router
@absinthe_configuration [
document_providers: {ElixirBoilerplateGraphQL, :document_providers},
json_codec: Jason,
schema: ElixirBoilerplateGraphQL.Schema
]
plug(ElixirBoilerplateGraphQL.Plugs.Context)
plug(:match)
plug(:dispatch)
... | 20.740741 | 72 | 0.730357 |
1ab624645525110811f0bd03bc159408f35c10b5 | 561 | exs | Elixir | test/server_check_state_test.exs | Plangora/ex_green_yet_core | 7fcf7b816dfd1d6fe0c127e59c3ea28e3ed1d29f | [
"MIT"
] | null | null | null | test/server_check_state_test.exs | Plangora/ex_green_yet_core | 7fcf7b816dfd1d6fe0c127e59c3ea28e3ed1d29f | [
"MIT"
] | null | null | null | test/server_check_state_test.exs | Plangora/ex_green_yet_core | 7fcf7b816dfd1d6fe0c127e59c3ea28e3ed1d29f | [
"MIT"
] | null | null | null | defmodule ServerCheckStateText do
use ExUnit.Case, async: true
doctest ExGreenYetCore.ServerCheckState
alias ExGreenYetCore.ServerCheckState
setup do: {:ok, %{identifier: "app", url: "http://localhost", poll_time: 5}}
describe "creating server check state" do
test "requires identifier, url, and poll t... | 26.714286 | 83 | 0.679144 |
1ab63b95bfb8ffa413fdb2a3fd79eaa86f88f3ea | 4,844 | ex | Elixir | lib/callisto/graph_db/queryable.ex | mkompanets/callisto | a6dd6eabdd561feb7a8d727cc4890ba891ae5b62 | [
"Apache-2.0"
] | null | null | null | lib/callisto/graph_db/queryable.ex | mkompanets/callisto | a6dd6eabdd561feb7a8d727cc4890ba891ae5b62 | [
"Apache-2.0"
] | null | null | null | lib/callisto/graph_db/queryable.ex | mkompanets/callisto | a6dd6eabdd561feb7a8d727cc4890ba891ae5b62 | [
"Apache-2.0"
] | null | null | null | defmodule Callisto.GraphDB.Queryable do
alias Callisto.{Edge, Query, Triple, Vertex}
def query(adapter, cypher, parser \\ nil) do
do_query(adapter, cypher, parser)
end
# Straight up cypher string, no parser...
defp do_query(adapter, cypher, parser)
when is_binary(cypher) and is_nil(parser) do
... | 33.638889 | 124 | 0.58237 |
1ab6714e5ee51695b0eeb62338c898db18f262cc | 1,715 | ex | Elixir | clients/content/lib/google_api/content/v2/model/orders_update_merchant_order_id_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/content/lib/google_api/content/v2/model/orders_update_merchant_order_id_request.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/orders_update_merchant_order_id_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.3 | 144 | 0.739359 |
1ab675e409e277babe1a7c3a9754f8850c679792 | 676 | ex | Elixir | lib/cms/v2/entities/article/image/resolution.ex | noizu/KitchenSink | 34f51fb93dfa913ba7be411475d02520d537e676 | [
"MIT"
] | 2 | 2019-04-15T22:17:59.000Z | 2022-01-03T15:35:36.000Z | lib/cms/v2/entities/article/image/resolution.ex | noizu/KitchenSink | 34f51fb93dfa913ba7be411475d02520d537e676 | [
"MIT"
] | null | null | null | lib/cms/v2/entities/article/image/resolution.ex | noizu/KitchenSink | 34f51fb93dfa913ba7be411475d02520d537e676 | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Author: Keith Brings
# Copyright (C) 2019 Noizu Labs, Inc. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Noizu.Cms.V2.Article.Image.Resolution do
@vsn 1.0
@t... | 28.166667 | 81 | 0.387574 |
1ab67ab6bd264fae8364e89cbbbc4e09fc5f63df | 1,605 | ex | Elixir | apps/tfcon_web/lib/tfcon_web.ex | shtanaka/elixir-transfer-control | 1b325a4c0c5ee10551515d7a440e503ed68d4ddf | [
"MIT"
] | null | null | null | apps/tfcon_web/lib/tfcon_web.ex | shtanaka/elixir-transfer-control | 1b325a4c0c5ee10551515d7a440e503ed68d4ddf | [
"MIT"
] | 2 | 2021-03-10T02:00:57.000Z | 2021-05-10T21:22:39.000Z | apps/tfcon_web/lib/tfcon_web.ex | shtanaka/elixir-transfer-control | 1b325a4c0c5ee10551515d7a440e503ed68d4ddf | [
"MIT"
] | null | null | null | defmodule TfconWeb 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 TfconWeb, :controller
use TfconWeb, :view
The definitions below will be executed for every view,
controller, etc, s... | 23.26087 | 83 | 0.684735 |
1ab67cfc2c4edb89d90d7dacf05eac89733e8f32 | 1,280 | exs | Elixir | test/rendering/comments_test.exs | thepeoplesbourgeois/slime | 55c4d738632ed6540a0a03e0a4022b02e398c2d9 | [
"MIT"
] | 312 | 2015-12-28T05:25:47.000Z | 2022-02-16T05:18:16.000Z | test/rendering/comments_test.exs | thepeoplesbourgeois/slime | 55c4d738632ed6540a0a03e0a4022b02e398c2d9 | [
"MIT"
] | 105 | 2015-12-27T21:20:58.000Z | 2022-02-24T05:23:38.000Z | test/rendering/comments_test.exs | thepeoplesbourgeois/slime | 55c4d738632ed6540a0a03e0a4022b02e398c2d9 | [
"MIT"
] | 45 | 2016-01-12T04:02:01.000Z | 2021-09-14T16:19:18.000Z | defmodule RenderCommentsTest do
use ExUnit.Case, async: true
import Slime, only: [render: 1, render: 2]
test "lines indented deeper than / are commented out" do
slime = """
/ Code comment
that spans over multiple lines
/
Code comment started
on another line
p.test
/ One-liner... | 22.45614 | 82 | 0.574219 |
1ab6ec141f2a5aa287cc989eba5a0bbc661d5fa1 | 372 | ex | Elixir | lib/stripe_app_web/controllers/plan_controller.ex | hotpyn/stripe_demo | 2a0ac3ab34a616ffcd6d7e979c25517b5f1636b5 | [
"MIT"
] | null | null | null | lib/stripe_app_web/controllers/plan_controller.ex | hotpyn/stripe_demo | 2a0ac3ab34a616ffcd6d7e979c25517b5f1636b5 | [
"MIT"
] | null | null | null | lib/stripe_app_web/controllers/plan_controller.ex | hotpyn/stripe_demo | 2a0ac3ab34a616ffcd6d7e979c25517b5f1636b5 | [
"MIT"
] | null | null | null | defmodule StripeAppWeb.PlanController do
use StripeAppWeb, :controller
alias StripeApp.Products
alias StripeApp.Products.Plan
def index(conn, _params) do
plans = Products.list_plans()
render(conn, "index.html", plans: plans)
end
def show(conn, %{"id" => id}) do
plan = Products.get_plan!(id)
... | 20.666667 | 44 | 0.69086 |
1ab727e14ba69236a3d0a7455bbdaf0409593b34 | 836 | ex | Elixir | apps/snitch_api/lib/snitch_api_web/controllers/taxonomy_controller.ex | gridgentoo/avia | 139b68f4b3ccd830c4db296d81132680e253b731 | [
"MIT"
] | null | null | null | apps/snitch_api/lib/snitch_api_web/controllers/taxonomy_controller.ex | gridgentoo/avia | 139b68f4b3ccd830c4db296d81132680e253b731 | [
"MIT"
] | null | null | null | apps/snitch_api/lib/snitch_api_web/controllers/taxonomy_controller.ex | gridgentoo/avia | 139b68f4b3ccd830c4db296d81132680e253b731 | [
"MIT"
] | null | null | null | defmodule SnitchApiWeb.TaxonomyController do
use SnitchApiWeb, :controller
alias Snitch.Data.Schema.Taxonomy
alias Snitch.Core.Tools.MultiTenancy.Repo
alias Snitch.Domain.Taxonomy, as: TaxonomyDomain
alias Snitch.Tools.Cache
action_fallback(SnitchApiWeb.FallbackController)
plug(SnitchApiWeb.Plug.DataTo... | 20.390244 | 54 | 0.632775 |
1ab72a2fce67d824827ad04aa0d1f9091c8b5db0 | 519 | exs | Elixir | config/test.exs | rhnonose/url_shortener | 511bd659b4a516ee89caa5c17d700461d137cebf | [
"MIT"
] | null | null | null | config/test.exs | rhnonose/url_shortener | 511bd659b4a516ee89caa5c17d700461d137cebf | [
"MIT"
] | null | null | null | config/test.exs | rhnonose/url_shortener | 511bd659b4a516ee89caa5c17d700461d137cebf | [
"MIT"
] | 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 :url_shortener, UrlShortener.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :url_shorten... | 25.95 | 56 | 0.747592 |
1ab75a3be5f9ea5009ce13955f090c3dd0cfdb1f | 5,763 | exs | Elixir | test/joken_config_test.exs | chulkilee/joken | 8ce829f98c365fdf6bb75ad9dfdb5ea8482907eb | [
"Apache-2.0"
] | null | null | null | test/joken_config_test.exs | chulkilee/joken | 8ce829f98c365fdf6bb75ad9dfdb5ea8482907eb | [
"Apache-2.0"
] | null | null | null | test/joken_config_test.exs | chulkilee/joken | 8ce829f98c365fdf6bb75ad9dfdb5ea8482907eb | [
"Apache-2.0"
] | null | null | null | defmodule Joken.Config.Test do
use ExUnit.Case, async: true
use ExUnitProperties
alias Joken.{Config, CurrentTime.Mock, Error}
setup do
{:ok, _pid} = start_supervised(Mock)
:ok
end
describe "Joken.Config.default_claims/1" do
property "any given issuer will be validated" do
check all issu... | 29.553846 | 96 | 0.590491 |
1ab7679a3a6368e39cb24868a6d6e41d78c19f17 | 301 | exs | Elixir | test/moebius/date_test.exs | KritR/moebius | fc242bfd474ed4c030487749fe0354469fa7d5b8 | [
"BSD-3-Clause"
] | 609 | 2015-10-13T23:42:14.000Z | 2022-03-29T21:11:25.000Z | test/moebius/date_test.exs | KritR/moebius | fc242bfd474ed4c030487749fe0354469fa7d5b8 | [
"BSD-3-Clause"
] | 82 | 2015-10-20T02:18:00.000Z | 2021-12-14T19:17:57.000Z | test/moebius/date_test.exs | KritR/moebius | fc242bfd474ed4c030487749fe0354469fa7d5b8 | [
"BSD-3-Clause"
] | 62 | 2015-10-20T01:14:15.000Z | 2021-11-26T19:02:00.000Z | defmodule Moebius.DateTests do
use ExUnit.Case
setup_all do
{:ok, res} = "select * from date_night" |> TestDb.run
{:ok, data: res}
end
test "Dates are returned as Elixir structs", %{data: [ %{id: _id, date: date} | _rest]} do
assert (date.month > 0 && date.month < 13)
end
end
| 23.153846 | 92 | 0.627907 |
1ab77e2a194ae5885fafe9c4e3e452d721f6c837 | 2,421 | ex | Elixir | apps/omg_watcher/lib/omg_watcher/web/views/transaction.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/omg_watcher/web/views/transaction.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/omg_watcher/web/views/transaction.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"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... | 29.168675 | 97 | 0.698885 |
1ab7a700b06c1f59ce026baeddb739253b10bd8f | 6,245 | ex | Elixir | clients/my_business_lodging/lib/google_api/my_business_lodging/v1/model/sustainable_sourcing.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/my_business_lodging/lib/google_api/my_business_lodging/v1/model/sustainable_sourcing.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/my_business_lodging/lib/google_api/my_business_lodging/v1/model/sustainable_sourcing.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"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... | 67.880435 | 475 | 0.741233 |
1ab7aa4dfb1feb4741234662984ca21b652eadb8 | 80 | exs | Elixir | apps/xee2018_web/test/xee2018_web/views/page_view_test.exs | RyoheiHayashi/xee2018 | 3b9ff03b13817563a5c7c75db1da360879a8a8d4 | [
"MIT"
] | 1 | 2018-09-05T10:31:50.000Z | 2018-09-05T10:31:50.000Z | apps/xee2018_web/test/xee2018_web/views/page_view_test.exs | RyoheiHayashi/xee2018 | 3b9ff03b13817563a5c7c75db1da360879a8a8d4 | [
"MIT"
] | null | null | null | apps/xee2018_web/test/xee2018_web/views/page_view_test.exs | RyoheiHayashi/xee2018 | 3b9ff03b13817563a5c7c75db1da360879a8a8d4 | [
"MIT"
] | null | null | null | defmodule Xee2018Web.PageViewTest do
use Xee2018Web.ConnCase, async: true
end
| 20 | 38 | 0.825 |
1ab7b39a5501da6940312d994a2f96d4f84505ec | 708 | ex | Elixir | lib/hayago_web/gettext.ex | jeffkreeftmeijer/hayago | f80e3204efc70fb4c144a75952534ef143ab584d | [
"Apache-2.0"
] | 60 | 2019-06-14T02:38:33.000Z | 2022-02-27T22:08:36.000Z | lib/hayago_web/gettext.ex | jeffkreeftmeijer/hayago | f80e3204efc70fb4c144a75952534ef143ab584d | [
"Apache-2.0"
] | 2 | 2020-01-05T09:09:58.000Z | 2020-12-31T09:54:13.000Z | lib/hayago_web/gettext.ex | jeffkreeftmeijer/hayago | f80e3204efc70fb4c144a75952534ef143ab584d | [
"Apache-2.0"
] | 15 | 2019-06-14T02:38:39.000Z | 2021-10-30T21:53:08.000Z | defmodule HayagoWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import HayagoWeb.Gettext
# Simple translation
gettext("Here is the... | 28.32 | 72 | 0.676554 |
1ab7bf093dd970bbacf5493a59132875bbd3d987 | 235 | ex | Elixir | 02-chapter/10_imports_and_aliases.ex | herminiotorres/elixir-in-action | 25db6f50ce4d2587d5a8e44a0362a3dd8981741c | [
"MIT"
] | null | null | null | 02-chapter/10_imports_and_aliases.ex | herminiotorres/elixir-in-action | 25db6f50ce4d2587d5a8e44a0362a3dd8981741c | [
"MIT"
] | null | null | null | 02-chapter/10_imports_and_aliases.ex | herminiotorres/elixir-in-action | 25db6f50ce4d2587d5a8e44a0362a3dd8981741c | [
"MIT"
] | null | null | null | defmodule Geometry do
defmodule Rectangle do
def area(a, b) do
a * a + b * b
end
end
end
defmodule MyModule do
alias Geometry.Rectangle, as: Rectangle
def my_function(a, b) do
Rectangle.area(a, b)
end
end
| 14.6875 | 41 | 0.655319 |
1ab7dd7fdd4fe6fe49d1a34a922c0469323cc87c | 2,603 | exs | Elixir | config/prod.exs | w0rd-driven/scratch_phoenix | 465e01af6e7d649bfb308edf91247e9d6c6a5876 | [
"MIT"
] | null | null | null | config/prod.exs | w0rd-driven/scratch_phoenix | 465e01af6e7d649bfb308edf91247e9d6c6a5876 | [
"MIT"
] | null | null | null | config/prod.exs | w0rd-driven/scratch_phoenix | 465e01af6e7d649bfb308edf91247e9d6c6a5876 | [
"MIT"
] | null | null | null | 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... | 34.706667 | 75 | 0.727238 |
1ab7de35d1e0d014e1fd2d6d2418123cb079feb7 | 2,024 | ex | Elixir | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_google_signals_settings.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_google_signals_settings.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_google_signals_settings.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... | 34.896552 | 201 | 0.730237 |
1ab7e22a1ae51117be731c8ff222393ff0a487e2 | 1,464 | ex | Elixir | lib/hologram/template/renderers/page.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | lib/hologram/template/renderers/page.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | lib/hologram/template/renderers/page.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | alias Hologram.Compiler.{Helpers, Serializer}
alias Hologram.Runtime.{PageDigestStore, TemplateStore}
alias Hologram.Template.Renderer
defimpl Renderer, for: Atom do
@state_placeholder "###STATE###"
def render(page_module, conn, _bindings, _slots) do
context = init_context(page_module)
layout_module = pa... | 28.705882 | 90 | 0.713115 |
1ab7ece23dbd0ae8353b1788797e4d4e1377b1f6 | 1,017 | ex | Elixir | lib/oli_web/pow/author_identities_context.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | lib/oli_web/pow/author_identities_context.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | lib/oli_web/pow/author_identities_context.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule OliWeb.Pow.AuthorIdentities do
use PowAssent.Ecto.UserIdentities.Context,
repo: Oli.Repo,
user: Oli.Accounts.Author
alias Oli.Accounts
# Handle the case where a user signs in with a social account but that email already exists.
# This will only be allowed to execute if the email given by the... | 35.068966 | 101 | 0.704031 |
1ab8101386afa5000b3799db141ee8bcb044ded2 | 12,167 | ex | Elixir | lib/ex_doc/formatter/html.ex | ityonemo/ex_doc | bdc9063c6aabe92201926bb98ce91d9d7f636cde | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | lib/ex_doc/formatter/html.ex | ityonemo/ex_doc | bdc9063c6aabe92201926bb98ce91d9d7f636cde | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | lib/ex_doc/formatter/html.ex | ityonemo/ex_doc | bdc9063c6aabe92201926bb98ce91d9d7f636cde | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | defmodule ExDoc.Formatter.HTML do
@moduledoc false
alias __MODULE__.{Assets, Autolink, Templates, SearchItems}
alias ExDoc.{Markdown, GroupMatcher}
@main "api-reference"
@assets_dir "assets"
@doc """
Generate HTML documentation for the given modules.
"""
@spec run(list, ExDoc.Config.t()) :: String.... | 28.361305 | 97 | 0.648804 |
1ab8443ddad2915566f69176a58559e4303447b8 | 60 | ex | Elixir | lib/mgp_web/views/user_session_view.ex | imprest/mgp | 61457315243d0e0c26713601b9930ca34a116a16 | [
"MIT"
] | null | null | null | lib/mgp_web/views/user_session_view.ex | imprest/mgp | 61457315243d0e0c26713601b9930ca34a116a16 | [
"MIT"
] | 2 | 2020-12-22T12:30:58.000Z | 2021-05-19T10:07:26.000Z | lib/mgp_web/views/user_session_view.ex | imprest/mgp | 61457315243d0e0c26713601b9930ca34a116a16 | [
"MIT"
] | null | null | null | defmodule MgpWeb.UserSessionView do
use MgpWeb, :view
end
| 15 | 35 | 0.8 |
1ab846b3810e8d0d3e14bf7b841277b537b04f00 | 729 | ex | Elixir | lib/credo/check/consistency/space_in_parentheses/without_space.ex | rodrigues/credo | b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23 | [
"MIT"
] | null | null | null | lib/credo/check/consistency/space_in_parentheses/without_space.ex | rodrigues/credo | b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23 | [
"MIT"
] | null | null | null | lib/credo/check/consistency/space_in_parentheses/without_space.ex | rodrigues/credo | b4e08477a2141d5537d8fc9c5cc08ebf93a5ee23 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Consistency.SpaceInParentheses.WithoutSpace do
use Credo.Check.CodePattern
alias Credo.Check.CodeHelper
alias Credo.Code
@regex ~r/[^\?]([\{\[\(]\S|\S[\)\]\}])/
def property_value, do: :without_space
def property_value_for(source_file, _params) do
source_file
|> CodeHelper.... | 27 | 82 | 0.702332 |
1ab85aff68198adbbac67c4dc00a54cefc6e7610 | 5,148 | exs | Elixir | test/jsonapi/plugs/query_parser_test.exs | NarrativeApp/jsonapi | 2eccca1dba8216009f441d94d88fec237cbd27ba | [
"MIT"
] | 1 | 2020-10-29T19:28:23.000Z | 2020-10-29T19:28:23.000Z | test/jsonapi/plugs/query_parser_test.exs | NarrativeApp/jsonapi | 2eccca1dba8216009f441d94d88fec237cbd27ba | [
"MIT"
] | null | null | null | test/jsonapi/plugs/query_parser_test.exs | NarrativeApp/jsonapi | 2eccca1dba8216009f441d94d88fec237cbd27ba | [
"MIT"
] | null | null | null | defmodule JSONAPI.QueryParserTest do
use ExUnit.Case
import JSONAPI.QueryParser
alias JSONAPI.Exceptions.InvalidQuery
alias JSONAPI.Config
defmodule MyView do
use JSONAPI.View
def fields, do: [:id, :text, :body]
def type, do: "mytype"
def relationships do
[
author: JSONAPI.Que... | 34.550336 | 95 | 0.676962 |
1ab86dba465d5e2dca4013801c860a519ea6294c | 1,483 | ex | Elixir | clients/sheets/lib/google_api/sheets/v4/model/candlestick_series.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/sheets/lib/google_api/sheets/v4/model/candlestick_series.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/sheets/lib/google_api/sheets/v4/model/candlestick_series.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.553191 | 117 | 0.740391 |
1ab86ed85c90c118dcd60c0f6b6fd95b0ea2f214 | 1,050 | exs | Elixir | app/config/dev.exs | florinpatrascu/elixir_grafana_loki_tempo | 6c3df19641c2aa40f1b1172fe31bb7b16dd3937a | [
"MIT"
] | null | null | null | app/config/dev.exs | florinpatrascu/elixir_grafana_loki_tempo | 6c3df19641c2aa40f1b1172fe31bb7b16dd3937a | [
"MIT"
] | null | null | null | app/config/dev.exs | florinpatrascu/elixir_grafana_loki_tempo | 6c3df19641c2aa40f1b1172fe31bb7b16dd3937a | [
"MIT"
] | 1 | 2022-01-26T02:57:38.000Z | 2022-01-26T02:57:38.000Z | import 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 esbuild to bundle .js and .css sources.
config :fish_finder, FFWeb.Endpoint,
# Binding to loopback ... | 37.5 | 86 | 0.765714 |
1ab87367cbc40ce9ccceceee7a99edfdbc10981d | 4,411 | ex | Elixir | data/auto_generated/video/87865183e535d4b77ff441f99f55abde.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 12 | 2018-06-15T10:18:43.000Z | 2022-01-24T12:50:54.000Z | data/auto_generated/video/87865183e535d4b77ff441f99f55abde.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 15 | 2018-06-21T18:04:12.000Z | 2021-10-16T12:54:39.000Z | data/auto_generated/video/87865183e535d4b77ff441f99f55abde.ex | breunigs/veloroute | ac3b1eeb2ef2369c27186a138f6ffd8284652dab | [
"0BSD"
] | 2 | 2020-03-09T19:21:36.000Z | 2022-01-16T03:29:51.000Z | defmodule(Data.AutoGenerated.Video.Rendered_87865183e535d4b77ff441f99f55abde) do
@moduledoc "#{"St. Benedictstraße (Klosterstern bis Streekbrücke): St. Benedictstraße Fahrtrichtung Osten"}
AUTOGENERATED. To update this file, run mix velo.videos.generate.
See Video.Rendered for functionality.
"
@behaviour V... | 53.144578 | 109 | 0.698028 |
1ab88864f2d820c737f6528a190c29f074772fb9 | 1,609 | ex | Elixir | lib/mailchimp/config.ex | maximemenager/mailchimp | 2dc382e9d404a0a99c2b8f21f788153e53ea620b | [
"MIT"
] | 1 | 2020-07-17T02:52:34.000Z | 2020-07-17T02:52:34.000Z | lib/mailchimp/config.ex | maximemenager/mailchimp | 2dc382e9d404a0a99c2b8f21f788153e53ea620b | [
"MIT"
] | 1 | 2020-01-09T18:59:39.000Z | 2020-01-09T18:59:39.000Z | lib/mailchimp/config.ex | maximemenager/mailchimp | 2dc382e9d404a0a99c2b8f21f788153e53ea620b | [
"MIT"
] | 1 | 2019-09-10T10:19:10.000Z | 2019-09-10T10:19:10.000Z | defmodule Mailchimp.Config do
@moduledoc """
Mailchimp Config Module
"""
@default_api_version "3.0"
@doc """
Return configured API Key
### Examples
iex> Application.put_env(:mailchimp, :api_key, "your apikey-us12")
iex> Mailchimp.Config.api_key!()
"your apikey-us12"
"""
@spec ap... | 22.661972 | 90 | 0.635177 |
1ab89102c67df7c63b68ac7e95d95c18524af9d4 | 3,197 | exs | Elixir | test/store_card_web/controllers/user_session_controller_test.exs | manojsamanta/stripe-store-card | 5acc474240fe0eb85cfa8a3ef1d696d12694ad14 | [
"MIT"
] | null | null | null | test/store_card_web/controllers/user_session_controller_test.exs | manojsamanta/stripe-store-card | 5acc474240fe0eb85cfa8a3ef1d696d12694ad14 | [
"MIT"
] | null | null | null | test/store_card_web/controllers/user_session_controller_test.exs | manojsamanta/stripe-store-card | 5acc474240fe0eb85cfa8a3ef1d696d12694ad14 | [
"MIT"
] | null | null | null | defmodule StoreCardWeb.UserSessionControllerTest do
use StoreCardWeb.ConnCase, async: true
import StoreCard.AccountsFixtures
setup do
%{user: user_fixture()}
end
describe "GET /users/log_in" do
test "renders log in page", %{conn: conn} do
conn = get(conn, Routes.user_session_path(conn, :new))... | 32.292929 | 89 | 0.601814 |
1ab899acd977f506e01ca1ff5c6d762c426f6183 | 374 | ex | Elixir | lib/type_check/default_overrides/range.ex | 0urobor0s/elixir-type_check | 6bac178f4a55798034b12c1dcfb219eabcfb35c0 | [
"MIT"
] | null | null | null | lib/type_check/default_overrides/range.ex | 0urobor0s/elixir-type_check | 6bac178f4a55798034b12c1dcfb219eabcfb35c0 | [
"MIT"
] | null | null | null | lib/type_check/default_overrides/range.ex | 0urobor0s/elixir-type_check | 6bac178f4a55798034b12c1dcfb219eabcfb35c0 | [
"MIT"
] | null | null | null | defmodule TypeCheck.DefaultOverrides.Range do
use TypeCheck
@type! limit() :: integer()
if Version.compare(System.version(), "1.12.0") == :lt do
@type! t(first, last) :: %Elixir.Range{first: first, last: last}
else
@type! step() :: pos_integer() | neg_integer()
@type! t(first, last) :: %Elixir.Ran... | 26.714286 | 82 | 0.641711 |
1ab8a38c888d47c1498d6148aeeaa8fa2d8a7ef8 | 405 | ex | Elixir | src/lib/inmana_web/controllers/restaurants_controller.ex | igormaraujo/inmana-NLW5-elixir | 819209fd6af6556d941b4a142d8d614b2a05d585 | [
"MIT"
] | null | null | null | src/lib/inmana_web/controllers/restaurants_controller.ex | igormaraujo/inmana-NLW5-elixir | 819209fd6af6556d941b4a142d8d614b2a05d585 | [
"MIT"
] | null | null | null | src/lib/inmana_web/controllers/restaurants_controller.ex | igormaraujo/inmana-NLW5-elixir | 819209fd6af6556d941b4a142d8d614b2a05d585 | [
"MIT"
] | null | null | null | defmodule InmanaWeb.RestaurantsController do
use InmanaWeb, :controller
alias Inmana.Restaurant
alias InmanaWeb.FallbackController
action_fallback FallbackController
def create(conn, params) do
with {:ok, %Restaurant{} = restaurant} <- Inmana.create_restaurante(params) do
conn
|> put_statu... | 22.5 | 82 | 0.725926 |
1ab8a79b1b304b3ec1ac231ce77185ab114674e2 | 225 | exs | Elixir | apps/core/priv/repo/migrations/20181118192548_set_contractor_rmsp_amount_default_value.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/repo/migrations/20181118192548_set_contractor_rmsp_amount_default_value.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/repo/migrations/20181118192548_set_contractor_rmsp_amount_default_value.exs | ehealth-ua/ehealth.api | 4ffe26a464fe40c95fb841a4aa2e147068f65ca2 | [
"Apache-2.0"
] | 6 | 2018-05-11T13:59:32.000Z | 2022-01-19T20:15:22.000Z | defmodule Core.Repo.Migrations.SetContractorRmspAmountDefaultValue do
use Ecto.Migration
def change do
alter table(:contract_requests) do
modify(:contractor_rmsp_amount, :integer, null: true)
end
end
end
| 22.5 | 69 | 0.764444 |
1ab8b32647d2ef907950ec4a4b1834b33a5621f6 | 371 | exs | Elixir | test/mix_test_iex/controller_test.exs | marciol/mix_test_iex | 865fcc9eb4f7c7e686d714c5f19700418d4a1a0d | [
"MIT"
] | null | null | null | test/mix_test_iex/controller_test.exs | marciol/mix_test_iex | 865fcc9eb4f7c7e686d714c5f19700418d4a1a0d | [
"MIT"
] | null | null | null | test/mix_test_iex/controller_test.exs | marciol/mix_test_iex | 865fcc9eb4f7c7e686d714c5f19700418d4a1a0d | [
"MIT"
] | null | null | null | defmodule MixTestIEx.ControllerTest do
use ExUnit.Case
doctest MixTestIEx.ControllerTest
test "must raise an error if fswatch isn't installed" do
assert_raise RuntimeError, "fswatch must be installed!", fn ->
Process.put(:shell_command, fn _cmd -> {"", 1} end)
MixTestIEx.Controller.init(%{})
... | 28.538462 | 66 | 0.708895 |
1ab8d911f9a40c0c543ffe14d388d534c37d1471 | 599 | ex | Elixir | web/views/view_helpers.ex | beccanelson/8th-light-library | d0aa70371ca7645abf8609b53202ebb1808ca633 | [
"MIT"
] | null | null | null | web/views/view_helpers.ex | beccanelson/8th-light-library | d0aa70371ca7645abf8609b53202ebb1808ca633 | [
"MIT"
] | 9 | 2016-09-22T20:30:22.000Z | 2016-09-22T21:00:53.000Z | web/views/view_helpers.ex | beccanelson/library | d0aa70371ca7645abf8609b53202ebb1808ca633 | [
"MIT"
] | null | null | null | defmodule Bookish.ViewHelpers do
def get_class_name(book) do
if book.checked_out do
"checked-out"
else
"available"
end
end
def get_number_class(n, current_page) when n == current_page do
"disabled"
end
def get_number_class(_, _) do
"enabled"
end
def char_to_string(char... | 15.358974 | 65 | 0.617696 |
1ab8ddc8a5d72aba3005d3b08f509f00da9ca3b8 | 1,857 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p5beta1_async_batch_annotate_images_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p5beta1_async_batch_annotate_images_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p5beta1_async_batch_annotate_images_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 35.711538 | 190 | 0.775983 |
1ab8ea4b9b2fec5b82dce4c77700fba4046a4be3 | 266 | ex | Elixir | lib/gh/gh_web/user.ex | snamiki1212/example-elixir-phoenix-nuron-graphql | 57b7f255db683a880d1b31f65a4328606d4d0009 | [
"MIT"
] | null | null | null | lib/gh/gh_web/user.ex | snamiki1212/example-elixir-phoenix-nuron-graphql | 57b7f255db683a880d1b31f65a4328606d4d0009 | [
"MIT"
] | null | null | null | lib/gh/gh_web/user.ex | snamiki1212/example-elixir-phoenix-nuron-graphql | 57b7f255db683a880d1b31f65a4328606d4d0009 | [
"MIT"
] | null | null | null | defmodule Gh.GhWeb.User do
use Ecto.Schema
import Ecto.Changeset
schema "users" do
field :name, :string
timestamps()
end
@doc false
def changeset(user, attrs) do
user
|> cast(attrs, [:name])
|> validate_required([:name])
end
end
| 14.777778 | 33 | 0.639098 |
1ab8ea6ac8cd385e8138b098b96b4afe271fb533 | 109 | ex | Elixir | web/views/home_view.ex | PeerRails/phkite | aeb46305e57ed42513e165d10048b3044c43e3cf | [
"MIT"
] | null | null | null | web/views/home_view.ex | PeerRails/phkite | aeb46305e57ed42513e165d10048b3044c43e3cf | [
"MIT"
] | null | null | null | web/views/home_view.ex | PeerRails/phkite | aeb46305e57ed42513e165d10048b3044c43e3cf | [
"MIT"
] | null | null | null | defmodule Phkite.HomeView do
use Phkite.Web, :view
def decode_url(uri) do
URI.decode(uri)
end
end
| 13.625 | 28 | 0.706422 |
1ab8fcde38079cb963b36115fff1be3ee6804bf6 | 1,889 | exs | Elixir | apps/gitgud_web/test/gitgud_web/views/pagination_helpers_test.exs | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | null | null | null | apps/gitgud_web/test/gitgud_web/views/pagination_helpers_test.exs | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | null | null | null | apps/gitgud_web/test/gitgud_web/views/pagination_helpers_test.exs | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | null | null | null | defmodule GitGud.Web.PaginationHelpersTest do
use GitGud.Web.ConnCase, async: true
import Phoenix.HTML.Safe
import GitGud.Web.PaginationHelpers
test "paginates list of items from first page", %{conn: conn} do
conn = get(conn, "/user/repo/branches")
list = Enum.to_list(1..100)
page = paginate(conn... | 35.641509 | 395 | 0.653256 |
1ab91b8326213dcee62ef638fdd755178099d27f | 3,997 | ex | Elixir | lib/ueberauth/strategy/microsoft.ex | bismark/ueberauth_microsoft | aa9c4e21a1900e59652f34fe4b3d661fc297d96c | [
"MIT"
] | 17 | 2017-06-21T09:01:10.000Z | 2022-01-20T08:34:24.000Z | lib/ueberauth/strategy/microsoft.ex | bismark/ueberauth_microsoft | aa9c4e21a1900e59652f34fe4b3d661fc297d96c | [
"MIT"
] | 22 | 2017-06-19T10:50:26.000Z | 2022-03-29T18:09:18.000Z | lib/ueberauth/strategy/microsoft.ex | bismark/ueberauth_microsoft | aa9c4e21a1900e59652f34fe4b3d661fc297d96c | [
"MIT"
] | 24 | 2017-05-11T14:09:57.000Z | 2022-03-14T19:59:05.000Z | defmodule Ueberauth.Strategy.Microsoft do
use Ueberauth.Strategy,
default_scope: "https://graph.microsoft.com/user.read openid email offline_access",
uid_field: :id
alias OAuth2.{Response, Error}
alias Ueberauth.Auth.{Info, Credentials, Extra}
alias Ueberauth.Strategy.Microsoft.OAuth
@doc """
Hand... | 26.646667 | 93 | 0.639229 |
1ab94e8e9b3b942adf7af3929bcda6fab8b8c478 | 4,451 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/image_family_views.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/api/image_family_views.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/api/image_family_views.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... | 41.212963 | 196 | 0.62705 |
1ab9532f55ecd6a2a1eaa9459f7694ade1db7bdb | 207 | ex | Elixir | test/support/mock/ssh/behaviour.ex | kianmeng/sftp_ex | 0ae0cf4a18f530f975b3041de589533f7de4bbf5 | [
"MIT"
] | 22 | 2017-01-03T17:05:21.000Z | 2021-06-17T21:28:38.000Z | test/support/mock/ssh/behaviour.ex | kianmeng/sftp_ex | 0ae0cf4a18f530f975b3041de589533f7de4bbf5 | [
"MIT"
] | 14 | 2017-02-10T03:55:08.000Z | 2021-11-19T03:46:03.000Z | test/support/mock/ssh/behaviour.ex | kianmeng/sftp_ex | 0ae0cf4a18f530f975b3041de589533f7de4bbf5 | [
"MIT"
] | 20 | 2017-05-25T23:30:15.000Z | 2021-12-15T02:18:53.000Z | defmodule SftpEx.Ssh.Behaviour do
@moduledoc false
# a contract for ssh to fufil, for Mox
@callback start() :: :ok | {:error, any()}
@callback close_connection(Conn.t()) :: :ok | {:error, any()}
end
| 29.571429 | 63 | 0.657005 |
1ab9b03574b1f947bdee18dde51a36d8a9b63cb3 | 10,554 | ex | Elixir | lib/mix/lib/mix/tasks/profile.fprof.ex | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | 243 | 2020-02-03T03:48:51.000Z | 2021-11-08T12:56:25.000Z | lib/mix/lib/mix/tasks/profile.fprof.ex | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | 6 | 2021-03-19T12:33:21.000Z | 2021-04-02T17:52:45.000Z | lib/mix/lib/mix/tasks/profile.fprof.ex | jwarwick/elixir | de103c0f4e3240aa38967298ccb5f483a9e40c16 | [
"Apache-2.0"
] | 1 | 2020-12-18T19:20:35.000Z | 2020-12-18T19:20:35.000Z | defmodule Mix.Tasks.Profile.Fprof do
use Mix.Task
@shortdoc "Profiles the given file or expression with fprof"
@moduledoc """
Profiles the given file or expression using Erlang's `fprof` tool.
`fprof` can be useful when you want to discover the bottlenecks of a
sequential code.
Before running the code... | 34.94702 | 92 | 0.639663 |
1ab9c4f55c539dda9f193df9f84eb81d7e168554 | 2,454 | exs | Elixir | backend/config/prod.exs | Prumme/Projet_phx_ex_gql | 6324af91f94f96ee1f8403d5397ab930347e3e4f | [
"Unlicense"
] | null | null | null | backend/config/prod.exs | Prumme/Projet_phx_ex_gql | 6324af91f94f96ee1f8403d5397ab930347e3e4f | [
"Unlicense"
] | 2 | 2020-07-17T17:34:46.000Z | 2021-03-09T11:31:50.000Z | backend/config/prod.exs | Prumme/Projet_phx_ex_gql | 6324af91f94f96ee1f8403d5397ab930347e3e4f | [
"Unlicense"
] | null | null | null | use Mix.Config
# For production, don't forget to configure the url host
# to something meaningful, Phoenix uses this information
# when generating URLs.
#
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix phx.digest` task,
# ... | 34.083333 | 69 | 0.713936 |
1ab9c9b8417b50f0569cac67660aa235b25aa8c5 | 7,434 | ex | Elixir | lib/yacto/migration/structure.ex | pumbaacave/yacto | 6bb98a7d156ff49aa18756b6cf7ce9d1ee89bf23 | [
"Apache-2.0"
] | null | null | null | lib/yacto/migration/structure.ex | pumbaacave/yacto | 6bb98a7d156ff49aa18756b6cf7ce9d1ee89bf23 | [
"Apache-2.0"
] | 1 | 2019-03-06T20:05:53.000Z | 2019-03-06T20:05:54.000Z | lib/yacto/migration/structure.ex | pumbaacave/yacto | 6bb98a7d156ff49aa18756b6cf7ce9d1ee89bf23 | [
"Apache-2.0"
] | 1 | 2019-03-06T20:03:49.000Z | 2019-03-06T20:03:49.000Z | defmodule Yacto.Migration.Structure do
defstruct source: nil,
prefix: nil,
primary_key: [:id],
fields: [:id],
field_sources: %{id: :id},
types: %{id: :id},
associations: [],
embeds: [],
read_after_writes: [],
a... | 29.61753 | 96 | 0.626581 |
1ab9cf99932fa5e0acd79f7df187d532f75c6075 | 395 | exs | Elixir | config/prod.exs | hecflores/ex_azure_key_vault | 0fcb942ca4c6cfe18c7248cfba119d96cd668e99 | [
"MIT"
] | 5 | 2018-08-15T13:33:36.000Z | 2020-04-29T18:57:59.000Z | config/prod.exs | hecflores/ex_azure_key_vault | 0fcb942ca4c6cfe18c7248cfba119d96cd668e99 | [
"MIT"
] | 67 | 2018-08-21T02:26:47.000Z | 2022-03-31T08:14:33.000Z | config/prod.exs | hecflores/ex_azure_key_vault | 0fcb942ca4c6cfe18c7248cfba119d96cd668e99 | [
"MIT"
] | 4 | 2019-02-13T10:05:19.000Z | 2021-03-20T22:18:53.000Z | use Mix.Config
config :ex_azure_key_vault,
azure_client_id: {:system, "AZURE_CLIENT_ID"},
azure_client_secret: {:system, "AZURE_CLIENT_SECRET"},
azure_tenant_id: {:system, "AZURE_TENANT_ID"},
azure_vault_name: {:system, "AZURE_VAULT_NAME"},
azure_cert_base64_thumbprint: {:system, "AZURE_CERT_BASE64_THUMBPRIN... | 39.5 | 74 | 0.78481 |
1ab9e30cbc54be8daeeb3fb79fae9d7e957c09d9 | 2,253 | ex | Elixir | clients/people/lib/google_api/people/v1/model/modify_contact_group_members_request.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/people/lib/google_api/people/v1/model/modify_contact_group_members_request.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/people/lib/google_api/people/v1/model/modify_contact_group_members_request.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... | 45.06 | 303 | 0.751886 |
1ab9f10606c9a7bcf77ffdf01026e4aeb3d82bf6 | 9,915 | ex | Elixir | lib/elixir/lib/module/locals_tracker.ex | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | 4 | 2015-12-22T02:46:39.000Z | 2016-04-26T06:11:09.000Z | lib/elixir/lib/module/locals_tracker.ex | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/module/locals_tracker.ex | mk/elixir | 2b2c66ecf7b1cc2167cae9cc3e88f950994223f1 | [
"Apache-2.0"
] | null | null | null | # This is an Elixir module responsible for tracking
# calls in order to extract Elixir modules' behaviour
# during compilation time.
#
# ## Implementation
#
# The implementation uses the digraph module to track
# all dependencies. The graph starts with one main vertex:
#
# * `:local` - points to local functions
#
# We ... | 27.465374 | 99 | 0.650126 |
1ab9fb63754d21b9521cb5843ac698e8c5a6e111 | 483 | exs | Elixir | apps/discovery_streams/config/test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 18 | 2020-11-13T15:38:24.000Z | 2021-05-26T00:40:08.000Z | apps/discovery_streams/config/test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 365 | 2020-09-21T12:31:40.000Z | 2021-09-25T14:54:21.000Z | apps/discovery_streams/config/test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 3 | 2020-10-06T16:17:49.000Z | 2021-09-03T17:11:41.000Z | use Mix.Config
host = "127.0.0.1"
endpoints = [{String.to_atom(host), 9092}]
config :discovery_streams, DiscoveryStreamsWeb.Endpoint,
http: [port: 4001],
server: false
config :discovery_streams, endpoints: [localhost: 9092]
config :discovery_streams, :brook,
instance: :discovery_streams,
handlers: [Discover... | 21 | 56 | 0.699793 |
1aba0f7dc74fb57d0915125c288bf3d6feba3964 | 2,726 | ex | Elixir | clients/memcache/lib/google_api/memcache/v1beta2/model/operation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/memcache/lib/google_api/memcache/v1beta2/model/operation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/memcache/lib/google_api/memcache/v1beta2/model/operation_metadata.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... | 41.938462 | 298 | 0.701394 |
1aba2170602312def2db6079006ab58cb13a4000 | 81 | ex | Elixir | lib/component/definitions/grid_position.ex | doawoo/elixir_rpg | 4dcd0eb717bd1d654b3e6a06be31aba4c3254fb3 | [
"MIT"
] | 23 | 2021-10-24T00:21:13.000Z | 2022-03-13T12:33:38.000Z | lib/component/definitions/grid_position.ex | doawoo/elixir_rpg | 4dcd0eb717bd1d654b3e6a06be31aba4c3254fb3 | [
"MIT"
] | null | null | null | lib/component/definitions/grid_position.ex | doawoo/elixir_rpg | 4dcd0eb717bd1d654b3e6a06be31aba4c3254fb3 | [
"MIT"
] | 3 | 2021-11-04T02:42:25.000Z | 2022-02-02T14:22:52.000Z | use ElixirRPG.DSL.Component
defcomponent GridPosition do
member :index, 0
end
| 13.5 | 28 | 0.802469 |
1aba53b50184c0fa586a8deec15018ac36cd82e1 | 5,198 | ex | Elixir | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/big_query_destination.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/big_query_destination.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_asset/lib/google_api/cloud_asset/v1/model/big_query_destination.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... | 88.101695 | 1,647 | 0.763948 |
1aba5d67990ead2b7bf19174ab5d09d33cd1c5bc | 722 | ex | Elixir | backend/lib/spades_chat/chat_message.ex | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 9 | 2019-10-28T08:48:50.000Z | 2021-03-05T09:44:46.000Z | backend/lib/spades_chat/chat_message.ex | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 227 | 2019-10-28T08:52:58.000Z | 2022-02-27T04:31:42.000Z | backend/lib/spades_chat/chat_message.ex | mreishus/spades | 3e06fa5c2415ff43258ec4c231f8d6c49c683fe0 | [
"MIT"
] | 4 | 2020-04-18T19:38:37.000Z | 2021-08-02T19:43:03.000Z | defmodule SpadesChat.ChatMessage do
@moduledoc """
Represents a seat at a table.
The integers here are user ids.
"""
alias SpadesChat.{ChatMessage}
@derive Jason.Encoder
defstruct [:text, :sent_by, :when, :shortcode]
use Accessible
@type t :: %ChatMessage{
text: String.t(),
sen... | 20.628571 | 57 | 0.610803 |
1aba8f630c5b2570449f67c9950de65a1ebb85ce | 801 | exs | Elixir | test/cubdb/store/test_store_test.exs | SoCal-Software-Labs/cubdb | 20ee343ad1abedc6a3c66df152983e6530840ba9 | [
"Apache-2.0"
] | 318 | 2019-06-17T16:54:25.000Z | 2022-03-09T07:37:23.000Z | test/cubdb/store/test_store_test.exs | SoCal-Software-Labs/cubdb | 20ee343ad1abedc6a3c66df152983e6530840ba9 | [
"Apache-2.0"
] | 29 | 2019-07-03T13:46:28.000Z | 2022-02-15T10:44:58.000Z | test/cubdb/store/test_store_test.exs | SoCal-Software-Labs/cubdb | 20ee343ad1abedc6a3c66df152983e6530840ba9 | [
"Apache-2.0"
] | 18 | 2019-06-29T04:40:22.000Z | 2022-01-18T16:30:15.000Z | defmodule CubDB.Store.TestStoreTest do
use ExUnit.Case, async: true
use CubDB.StoreExamples
alias CubDB.Store.TestStore
setup do
{:ok, store} = TestStore.create()
{:ok, store: store}
end
test "start_link/0 starts a Store.TestStore" do
{:ok, store} = TestStore.create()
assert %TestStore{ag... | 22.25 | 88 | 0.669164 |
1abaa849d60bbff0c343f42923706b8183fd0dc1 | 85 | ex | Elixir | lib/balalaika_bear/fave.ex | ayrat-playground/balalaika_bear | bcccdd4a0caf075e133ef4f162eb13e3d28b2d65 | [
"MIT"
] | 5 | 2018-04-30T09:48:17.000Z | 2020-05-01T10:20:15.000Z | lib/balalaika_bear/fave.ex | BalalaikaIndustries/balalaika_bear | bcccdd4a0caf075e133ef4f162eb13e3d28b2d65 | [
"MIT"
] | 7 | 2018-04-28T06:39:10.000Z | 2018-04-28T07:31:59.000Z | lib/balalaika_bear/fave.ex | ayrat-playground/balalaika_bear | bcccdd4a0caf075e133ef4f162eb13e3d28b2d65 | [
"MIT"
] | 2 | 2018-04-27T19:42:04.000Z | 2020-05-01T10:20:02.000Z | defmodule BalalaikaBear.Fave do
use BalalaikaBear.Macro.API, namespace: "fave"
end
| 21.25 | 48 | 0.8 |
1abadcead1933aec940e7deae004513a0eac4be5 | 1,459 | exs | Elixir | config/config.exs | akoutmos/ex_server | 9daffd543e67c27c7c5b5a1a55bade925ab416b3 | [
"MIT"
] | 24 | 2022-02-18T01:13:32.000Z | 2022-03-18T17:57:57.000Z | config/config.exs | akoutmos/ex_server | 9daffd543e67c27c7c5b5a1a55bade925ab416b3 | [
"MIT"
] | null | null | null | config/config.exs | akoutmos/ex_server | 9daffd543e67c27c7c5b5a1a55bade925ab416b3 | [
"MIT"
] | 1 | 2022-02-25T20:31:39.000Z | 2022-02-25T20:31:39.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
import Config
# Configures the endpoint
config :ex_server, ExServer... | 29.77551 | 117 | 0.699109 |
1abae61418942457cd1716ce003ab597aaa9dfc9 | 126 | ex | Elixir | debian/menu.ex | dg14/airwave | df6bc2606046bde33afc68b06ad183954d87f365 | [
"MIT"
] | null | null | null | debian/menu.ex | dg14/airwave | df6bc2606046bde33afc68b06ad183954d87f365 | [
"MIT"
] | null | null | null | debian/menu.ex | dg14/airwave | df6bc2606046bde33afc68b06ad183954d87f365 | [
"MIT"
] | null | null | null | ?package(airwave):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\
title="airwave" command="/usr/bin/airwave"
| 42 | 80 | 0.746032 |
1abae83ab91d3bbdf1a5bd32fa95fc064c6dfa9f | 7,450 | ex | Elixir | deps/phoenix/lib/phoenix/router/helpers.ex | Hajto/hangmanelixir | a05cc0b73e0a5d464405f63d274ae622565728ca | [
"MIT"
] | null | null | null | deps/phoenix/lib/phoenix/router/helpers.ex | Hajto/hangmanelixir | a05cc0b73e0a5d464405f63d274ae622565728ca | [
"MIT"
] | null | null | null | deps/phoenix/lib/phoenix/router/helpers.ex | Hajto/hangmanelixir | a05cc0b73e0a5d464405f63d274ae622565728ca | [
"MIT"
] | null | null | null | defmodule Phoenix.Router.Helpers do
# Module that generates the routing helpers.
@moduledoc false
alias Phoenix.Router.Route
alias Phoenix.Socket
alias Plug.Conn
@doc """
Callback invoked by url generated in each helper module.
"""
def url(_router, %Conn{private: private}) do
private.phoenix_end... | 30.532787 | 124 | 0.637047 |
1abafb4ef199103e6f68d49a39b6da1765d71744 | 1,031 | exs | Elixir | backend/test/edgehog/astarte/device/os_info_test.exs | harlem88/edgehog | 7a278d119c3d592431fdbba406207376e194f7eb | [
"Apache-2.0"
] | null | null | null | backend/test/edgehog/astarte/device/os_info_test.exs | harlem88/edgehog | 7a278d119c3d592431fdbba406207376e194f7eb | [
"Apache-2.0"
] | null | null | null | backend/test/edgehog/astarte/device/os_info_test.exs | harlem88/edgehog | 7a278d119c3d592431fdbba406207376e194f7eb | [
"Apache-2.0"
] | null | null | null | #
# This file is part of Edgehog.
#
# Copyright 2021 SECO Mind Srl
#
# 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 app... | 27.131579 | 74 | 0.673133 |
1abb0dd87f4166babba82b0104c276b0a9cbd1b4 | 207 | exs | Elixir | priv/repo/migrations/20190125004017_add_arguments_to_attempts.exs | m4ta1l/bors-ng | a4d04fd740e24d03833cd46a76f0f9e5be96f818 | [
"Apache-2.0"
] | 1,223 | 2017-01-11T19:25:08.000Z | 2022-03-21T12:31:28.000Z | priv/repo/migrations/20190125004017_add_arguments_to_attempts.exs | seanpm2001/bors-ng | 2482df1c2f4680b33534620571f04075b6b4390a | [
"Apache-2.0"
] | 1,428 | 2017-01-09T16:36:18.000Z | 2022-03-28T14:19:40.000Z | priv/repo/migrations/20190125004017_add_arguments_to_attempts.exs | seanpm2001/bors-ng | 2482df1c2f4680b33534620571f04075b6b4390a | [
"Apache-2.0"
] | 184 | 2017-01-10T18:08:06.000Z | 2022-03-14T18:53:24.000Z | defmodule BorsNG.Database.Repo.Migrations.AddArgumentsToPatch do
use Ecto.Migration
def change do
alter table(:attempts) do
add :arguments, :string, null: false, default: ""
end
end
end
| 20.7 | 64 | 0.714976 |
1abb827108d94e2bad097ad78cb565e853b84cab | 1,985 | ex | Elixir | lib/remote_retro_web/endpoint.ex | octosteve/remote_retro | 3385b0db3c2daab934ce12a2f7642a5f10ac5147 | [
"MIT"
] | 523 | 2017-03-15T15:21:11.000Z | 2022-03-14T03:04:18.000Z | lib/remote_retro_web/endpoint.ex | octosteve/remote_retro | 3385b0db3c2daab934ce12a2f7642a5f10ac5147 | [
"MIT"
] | 524 | 2017-03-16T18:31:09.000Z | 2022-02-26T10:02:06.000Z | lib/remote_retro_web/endpoint.ex | octosteve/remote_retro | 3385b0db3c2daab934ce12a2f7642a5f10ac5147 | [
"MIT"
] | 60 | 2017-05-01T18:02:28.000Z | 2022-03-04T21:04:56.000Z | defmodule RemoteRetroWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :remote_retro
socket("/socket", RemoteRetroWeb.UserSocket, websocket: [timeout: 45_000], longpoll: false)
socket "/live", Phoenix.LiveView.Socket
if Application.get_env(:remote_retro, :sql_sandbox) do
plug(Phoenix.Ecto.SQL.Sandbox)
end
... | 26.118421 | 93 | 0.695718 |
1abbb8410ff56c49975174dd93c01a60a1480c10 | 850 | ex | Elixir | lib/phantomchain/crypto/transactions/deserializers/transfer.ex | PhantomChain/elixir-crypto | d842920d91a9bcbe997736b487f4e74ba0bf2fe3 | [
"MIT"
] | null | null | null | lib/phantomchain/crypto/transactions/deserializers/transfer.ex | PhantomChain/elixir-crypto | d842920d91a9bcbe997736b487f4e74ba0bf2fe3 | [
"MIT"
] | null | null | null | lib/phantomchain/crypto/transactions/deserializers/transfer.ex | PhantomChain/elixir-crypto | d842920d91a9bcbe997736b487f4e74ba0bf2fe3 | [
"MIT"
] | null | null | null | defmodule PhantomChain.Crypto.Transactions.Deserializers.Transfer do
alias PhantomChain.Crypto.Transactions.Transaction
def deserialize(data) do
[transaction, asset_offset, serialized, bytes] = data
offset = div(asset_offset, 2)
<<
_::binary-size(offset),
amount::little-unsigned-integer-s... | 24.285714 | 68 | 0.671765 |
1abbbcc926a1a9a3c4261eb35a8bf5e1e06149e2 | 879 | exs | Elixir | test/acceptance/w3c-test-suites/bnode_coreference_test.exs | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | 23 | 2018-09-25T21:09:35.000Z | 2020-05-14T16:28:22.000Z | test/acceptance/w3c-test-suites/bnode_coreference_test.exs | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | 2 | 2018-06-01T20:47:48.000Z | 2019-03-05T23:20:34.000Z | test/acceptance/w3c-test-suites/bnode_coreference_test.exs | pukkamustard/sparql-ex | 4f8907ddbd15215c9b6c40edac19362c92e34d91 | [
"MIT"
] | 2 | 2019-12-13T19:20:54.000Z | 2019-12-20T08:23:21.000Z | defmodule SPARQL.W3C.TestSuite.BnodeCoreferenceTest do
@moduledoc """
The W3C SPARQL 1.0 test cases on bnode co-reference.
<https://www.w3.org/2001/sw/DataAccess/tests/data-r2/bnode-coreference/>
"""
use SPARQL.W3C.TestSuite.Case, async: false
@test_suite {"1.0", "bnode-coreference"}
@manifest_graph Te... | 33.807692 | 123 | 0.713311 |
1abbc23606b49ace134ba7f0d295e2915f6870ad | 1,886 | ex | Elixir | apps/exth_crypto/lib/ecies/ecdh.ex | InoMurko/ethereum | 282ca2a23a897c5b9684ddf9abae2bf65691b039 | [
"MIT"
] | 22 | 2017-06-22T02:50:34.000Z | 2022-01-26T20:43:21.000Z | apps/exth_crypto/lib/ecies/ecdh.ex | InoMurko/ethereum | 282ca2a23a897c5b9684ddf9abae2bf65691b039 | [
"MIT"
] | 9 | 2018-10-08T22:56:56.000Z | 2018-10-18T20:41:55.000Z | apps/exth_crypto/lib/ecies/ecdh.ex | InoMurko/ethereum | 282ca2a23a897c5b9684ddf9abae2bf65691b039 | [
"MIT"
] | 5 | 2018-10-06T16:30:48.000Z | 2022-01-26T20:43:26.000Z | defmodule ExthCrypto.ECIES.ECDH do
@moduledoc """
Implements Elliptic Curve Diffie-Hellman, as it pertains to Exthereum.
"""
@default_curve :secp256k1
@doc """
Generates a new key_pair for elliptic curve diffie-hellman.
These keys should be used as ephemeral keys in the key-exchange protocol.
## Exa... | 37.72 | 153 | 0.685578 |
1abbea08090eb06390837fae844132404f578516 | 709 | exs | Elixir | test/asciinema/vt_test.exs | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | 893 | 2017-09-14T14:18:29.000Z | 2022-03-31T21:45:08.000Z | test/asciinema/vt_test.exs | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | 103 | 2017-09-29T22:15:33.000Z | 2022-03-27T21:47:43.000Z | test/asciinema/vt_test.exs | remerle/asciinema-server | 895bf5a7ffb7db1b418c97cfd2ac9136c46dfb57 | [
"Apache-2.0"
] | 152 | 2017-09-07T12:43:15.000Z | 2022-03-10T18:47:47.000Z | defmodule Asciinema.VtTest do
use ExUnit.Case
alias Asciinema.Vt
@moduletag :vt
describe "vt" do
test "basic usage" do
result =
Vt.with_vt(8, 3, fn vt ->
:ok = Vt.feed(vt, "foobar\r\n")
:ok = Vt.feed(vt, "baz")
:ok = Vt.feed(vt, "qux")
Vt.dump_screen(v... | 20.852941 | 57 | 0.495063 |
1abc06bc18ec451e0bfef0e56de9e694df50940c | 889 | exs | Elixir | apps/grpc_service/test/test_helper.exs | niclaslind/signalbroker-server | afb80514dcbabe561ac2da42adc08843a15c37c5 | [
"Apache-2.0"
] | 17 | 2020-06-20T11:29:43.000Z | 2022-03-21T05:53:06.000Z | apps/grpc_service/test/test_helper.exs | niclaslind/signalbroker-server | afb80514dcbabe561ac2da42adc08843a15c37c5 | [
"Apache-2.0"
] | 2 | 2020-07-09T10:22:50.000Z | 2020-09-01T14:46:40.000Z | apps/grpc_service/test/test_helper.exs | niclaslind/signalbroker-server | afb80514dcbabe561ac2da42adc08843a15c37c5 | [
"Apache-2.0"
] | 3 | 2020-07-17T20:04:36.000Z | 2022-01-24T14:19:46.000Z | # Copyright 2019 Volvo Cars
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (t... | 40.409091 | 62 | 0.776153 |
1abc149427d48c969ba9fda5778a6c8e14a94354 | 2,121 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_bounding_poly.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_bounding_poly.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_bounding_poly.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... | 38.563636 | 177 | 0.761433 |
1abc1bf914fa80fd7560b44b0f579fdd142f79b5 | 225 | ex | Elixir | lib/yamlix.ex | malgasm/yamlix | 3176bc1a16f0f00572a2479c6547e17182fe9adb | [
"MIT"
] | 2 | 2016-08-30T07:16:28.000Z | 2019-09-25T22:46:40.000Z | lib/yamlix.ex | malgasm/yamlix | 3176bc1a16f0f00572a2479c6547e17182fe9adb | [
"MIT"
] | 13 | 2015-07-15T03:36:29.000Z | 2021-08-05T08:59:35.000Z | lib/yamlix.ex | malgasm/yamlix | 3176bc1a16f0f00572a2479c6547e17182fe9adb | [
"MIT"
] | 4 | 2017-05-05T03:29:08.000Z | 2021-08-04T14:04:58.000Z | defmodule Yamlix do
alias RepresentationGraph, as: R
alias Serialize, as: S
alias Presentation, as: P
@spec dump(any) :: String.t
def dump(scalar) do
scalar |> R.represent |> S.serialize |> P.present
end
end
| 20.454545 | 53 | 0.684444 |
1abc24e7869c1afc119d20d35a7a94c12a28ca9a | 9,162 | exs | Elixir | test/middlewares/object_scope_authorization_test.exs | davidssand/rajska | 9b591e5d83eb6dde6b8b46f3bb67c7e217a1cf1e | [
"MIT"
] | null | null | null | test/middlewares/object_scope_authorization_test.exs | davidssand/rajska | 9b591e5d83eb6dde6b8b46f3bb67c7e217a1cf1e | [
"MIT"
] | null | null | null | test/middlewares/object_scope_authorization_test.exs | davidssand/rajska | 9b591e5d83eb6dde6b8b46f3bb67c7e217a1cf1e | [
"MIT"
] | null | null | null | defmodule Rajska.ObjectScopeAuthorizationTest do
use ExUnit.Case, async: true
defmodule User do
defstruct [
id: 1,
name: "User",
email: "email@user.com"
]
def __schema__(:source), do: "users"
end
defmodule Authorization do
use Rajska,
roles: [:user, :admin]
def ha... | 24.829268 | 116 | 0.55239 |
1abc32d210393573f3f6cb304c8610d367ed114a | 1,636 | ex | Elixir | lib/comment/models/installation.ex | mijailr/CommentEX | 942749f3723c0fcca616b2e3459876b328a72411 | [
"MIT"
] | 1 | 2019-11-18T07:01:13.000Z | 2019-11-18T07:01:13.000Z | lib/comment/models/installation.ex | mijailr/CommentEX | 942749f3723c0fcca616b2e3459876b328a72411 | [
"MIT"
] | 4 | 2019-11-18T08:38:19.000Z | 2019-11-25T00:58:06.000Z | lib/comment/models/installation.ex | mijailr/CommentEX | 942749f3723c0fcca616b2e3459876b328a72411 | [
"MIT"
] | null | null | null | defmodule Comment.Installation do
@moduledoc """
The schema of a app installation, store the information necesary for
use the app.
"""
use Ecto.Schema
import Ecto.Changeset
import Ecto.Query
alias Comment.{Installation, Repo, Repository}
schema "installations" do
field(:installation, :integer)
... | 24.058824 | 85 | 0.682152 |
1abc424352cc63d364eda1025333007ce1bdb9e2 | 748 | ex | Elixir | lib/fika/cli.ex | v0idpwn/fika | 4453d1c9222f7c2ab09f03d436f2222c7e325344 | [
"Apache-2.0"
] | null | null | null | lib/fika/cli.ex | v0idpwn/fika | 4453d1c9222f7c2ab09f03d436f2222c7e325344 | [
"Apache-2.0"
] | null | null | null | lib/fika/cli.ex | v0idpwn/fika | 4453d1c9222f7c2ab09f03d436f2222c7e325344 | [
"Apache-2.0"
] | null | null | null | defmodule Fika.Cli do
require Logger
def main(args) do
parse_args(args)
end
defp parse_args(["exec" | rest]) do
options = [
strict: [function: :string],
aliases: [f: :function]
]
{opts, rest} = OptionParser.parse!(rest, options)
main_file = List.first(rest) || "main.fi"
f... | 22 | 71 | 0.604278 |
1abc5e8a9a2e66400a2ea1b8a93386bfd8171ab8 | 4,460 | ex | Elixir | lib/rex2048/board.ex | rexikan/rex2048 | 751a127384c71e5aa7ddd3779115974aa8bd6004 | [
"MIT"
] | 1 | 2015-12-02T23:03:22.000Z | 2015-12-02T23:03:22.000Z | lib/rex2048/board.ex | rexikan/rex2048 | 751a127384c71e5aa7ddd3779115974aa8bd6004 | [
"MIT"
] | null | null | null | lib/rex2048/board.ex | rexikan/rex2048 | 751a127384c71e5aa7ddd3779115974aa8bd6004 | [
"MIT"
] | null | null | null | defmodule Rex2048.Board do
@doc """
iex> Rex2048.Board.can_move?([2, 4, 2, 8])
true
iex> Rex2048.Board.can_move?([2, 4, 8, 16])
false
"""
def can_move?(board) do
[:left, :right, :up, :down]
|> Enum.map(&({board, push(board, &1)}))
|> Enum.any?(fn {b1, b2} -> b1 != b2 end)
e... | 21.545894 | 76 | 0.521076 |
1abc6827eaccbd9eae3e95bd728f2796ce5755ba | 20,879 | exs | Elixir | test/fusion_auth/applications_test.exs | Cogility/fusion_auth | bb765849d6e1d6bc105c2316ea5fe5dd792bd49e | [
"MIT"
] | 10 | 2020-11-13T08:33:22.000Z | 2021-08-09T17:37:09.000Z | test/fusion_auth/applications_test.exs | Cogility/fusion_auth | bb765849d6e1d6bc105c2316ea5fe5dd792bd49e | [
"MIT"
] | 11 | 2021-01-06T21:30:14.000Z | 2021-09-08T09:04:51.000Z | test/fusion_auth/applications_test.exs | Cogility/fusion_auth | bb765849d6e1d6bc105c2316ea5fe5dd792bd49e | [
"MIT"
] | null | null | null | defmodule FusionAuth.ApplicationsTest do
use ExUnit.Case
alias FusionAuth.Applications
alias FusionAuth.Helpers.Mock
@applications_url "/api/application"
@valid_application_id "0dd9f903-7874-4a91-ab7d-000b8cc159eb"
@invalid_application_id "12345"
@valid_role_id "8bd3db07-8d98-455a-bd86-b802263114b1"
@... | 31.302849 | 487 | 0.582499 |
1abc6e7543694563a7dc157319814ae638b7ab70 | 2,643 | ex | Elixir | lib/crawly/requests_storage/requests_storage_worker.ex | aymanosman/crawly | 9b5dbcd1328a0d80380bbc8b8c869ce252ac29f5 | [
"Apache-2.0"
] | 1 | 2020-10-02T18:33:23.000Z | 2020-10-02T18:33:23.000Z | lib/crawly/requests_storage/requests_storage_worker.ex | aymanosman/crawly | 9b5dbcd1328a0d80380bbc8b8c869ce252ac29f5 | [
"Apache-2.0"
] | null | null | null | lib/crawly/requests_storage/requests_storage_worker.ex | aymanosman/crawly | 9b5dbcd1328a0d80380bbc8b8c869ce252ac29f5 | [
"Apache-2.0"
] | null | null | null | defmodule Crawly.RequestsStorage.Worker do
@moduledoc """
Requests Storage, is a module responsible for storing requests for a given
spider.
Automatically filters out already seen requests (uses `fingerprints` approach
to detect already visited pages).
Pipes all requests through a list of middlewares, whi... | 25.660194 | 79 | 0.63829 |
1abc8a280b9778ea8c0dd3e2a13a9d1e9910a7a6 | 1,009 | exs | Elixir | apps/local_ledger_db/priv/repo/migrations/20170919051314_create_balance.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/local_ledger_db/priv/repo/migrations/20170919051314_create_balance.exs | jimpeebles/ewallet | ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405 | [
"Apache-2.0"
] | null | null | null | apps/local_ledger_db/priv/repo/migrations/20170919051314_create_balance.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... | 32.548387 | 74 | 0.730426 |
1abc8ecf7b5ac76c2b06201c79409f3fc78df998 | 1,577 | ex | Elixir | lib/my_sensors.mysgw.ex | ConnorRigby/my_sensors_mysgw | f88c994f9e99641a96b9b16f175e8e18faa176b1 | [
"MIT"
] | 8 | 2017-12-30T04:33:00.000Z | 2020-04-27T11:52:45.000Z | lib/my_sensors.mysgw.ex | ConnorRigby/my_sensors_mysgw | f88c994f9e99641a96b9b16f175e8e18faa176b1 | [
"MIT"
] | 1 | 2018-02-09T21:29:49.000Z | 2018-03-18T18:37:51.000Z | lib/my_sensors.mysgw.ex | ConnorRigby/my_sensors_mysgw | f88c994f9e99641a96b9b16f175e8e18faa176b1 | [
"MIT"
] | 3 | 2018-02-09T21:10:11.000Z | 2020-12-22T16:02:46.000Z | defmodule MySensors.MySGW do
@moduledoc """
Wraps `mysgw`.
"""
use GenServer
require Logger
alias MySensors.MySGW.Logger, as: MyLogger
@doc "Start the gateway manually."
def start_gw(%MyLogger{} = logger) do
default = [
eeprom_file: "/tmp/mysensors.eeprom",
config_file: "/tmp/mysensors... | 24.261538 | 75 | 0.656944 |
1abc9d864a95d1eb811fdf2061e206a7db99f4ae | 2,663 | exs | Elixir | example.exs | motet-a/hyperex | 2f32de6ed12650a30e6306012ba9e19a62f877cc | [
"Apache-2.0"
] | 3 | 2018-04-09T14:49:53.000Z | 2019-02-18T14:08:02.000Z | example.exs | motet-a/hyperex | 2f32de6ed12650a30e6306012ba9e19a62f877cc | [
"Apache-2.0"
] | null | null | null | example.exs | motet-a/hyperex | 2f32de6ed12650a30e6306012ba9e19a62f877cc | [
"Apache-2.0"
] | null | null | null | defmodule HyperexExample do
require Hyperex
import Hyperex
# This thing is called a “function component” in the React world.
# A component is a function that generates renderable elements.
# This component outputs the markup for a link that points to the
# profile of someone.
defp user_link(%{user: user}... | 20.804688 | 76 | 0.547127 |
1abcae1b6ede72c00f8ec15e9559deb69829fcc6 | 3,313 | ex | Elixir | clients/big_query_reservation/lib/google_api/big_query_reservation/v1/model/capacity_commitment.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/big_query_reservation/lib/google_api/big_query_reservation/v1/model/capacity_commitment.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/big_query_reservation/lib/google_api/big_query_reservation/v1/model/capacity_commitment.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.474359 | 174 | 0.717778 |
1abcb878a1205324979c7c5966958bebbaeb6d75 | 892 | ex | Elixir | clients/eventarc/lib/google_api/eventarc/v1beta1/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/eventarc/lib/google_api/eventarc/v1beta1/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/eventarc/lib/google_api/eventarc/v1beta1/metadata.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"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... | 33.037037 | 74 | 0.761211 |
1abd215f5c8a4d7abe57fc583453b51974e82c94 | 3,512 | ex | Elixir | lib/identicon_generator/identicon.ex | moosch/identicon | 7cc9922708e8610315458820523f56b5b2a40cc3 | [
"MIT"
] | null | null | null | lib/identicon_generator/identicon.ex | moosch/identicon | 7cc9922708e8610315458820523f56b5b2a40cc3 | [
"MIT"
] | null | null | null | lib/identicon_generator/identicon.ex | moosch/identicon | 7cc9922708e8610315458820523f56b5b2a40cc3 | [
"MIT"
] | null | null | null | defmodule IdenticonGenerator.Identicon do
@doc """
Hashes a string input and returns the hash within the Image struct as hex
## Examples
iex> hash = IdenticonGenerator.Identicon.hash_input("banana")
iex> Map.get(hash, :hex)
[114, 179, 2, 191, 41, 122, 34, 138, 117, 115, 1, 35, 239, 239, 124, ... | 26.606061 | 159 | 0.626424 |
1abd25fd669fbb4f3f439febf7d0d4e6bc701fa1 | 997 | ex | Elixir | lib/phone/es.ex | mrjfernando/phone | 3febb243fcd8bdb1c333601a637f449a94caef88 | [
"Apache-2.0"
] | 97 | 2016-04-05T13:08:41.000Z | 2021-12-25T13:08:34.000Z | lib/phone/es.ex | mrjfernando/phone | 3febb243fcd8bdb1c333601a637f449a94caef88 | [
"Apache-2.0"
] | 70 | 2016-06-14T00:56:00.000Z | 2022-02-10T19:43:14.000Z | lib/phone/es.ex | mrjfernando/phone | 3febb243fcd8bdb1c333601a637f449a94caef88 | [
"Apache-2.0"
] | 31 | 2016-04-21T22:26:12.000Z | 2022-01-24T21:40:00.000Z | defmodule Phone.ES do
@moduledoc false
use Helper.Country
def country, do: "Spain"
def a2, do: "ES"
def a3, do: "ESP"
matcher(:modules, [
Phone.ES.A,
Phone.ES.AB,
Phone.ES.AL,
Phone.ES.AV,
Phone.ES.B,
Phone.ES.BA,
Phone.ES.BI,
Phone.ES.BU,
Phone.ES.C,
Phone.ES.CA,
... | 16.080645 | 26 | 0.539619 |
1abd321a200168dddb0e1e95f219f9a6304dff47 | 1,318 | exs | Elixir | mix.exs | sheb-gregor/elixir-exonum | 137e975c4f53f83b8e813e44feafda8936eb96d7 | [
"Apache-2.0"
] | null | null | null | mix.exs | sheb-gregor/elixir-exonum | 137e975c4f53f83b8e813e44feafda8936eb96d7 | [
"Apache-2.0"
] | null | null | null | mix.exs | sheb-gregor/elixir-exonum | 137e975c4f53f83b8e813e44feafda8936eb96d7 | [
"Apache-2.0"
] | null | null | null | defmodule ExonumClient.MixProject do
use Mix.Project
def project do
[
app: :exonum_client,
version: "0.0.1",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps()
]
end
defp package do
[
... | 22.338983 | 101 | 0.575114 |
1abd3b9bedca80c7f46f1e87cdc53d76b7c7fe4c | 1,229 | ex | Elixir | lib/glimesh_web/controllers/user_registration_controller.ex | Darkhax-Forked/glimesh.tv | 9566f0ec6909ecc5151f0e092f3e08b63d911fa8 | [
"MIT"
] | 1 | 2020-08-02T00:12:28.000Z | 2020-08-02T00:12:28.000Z | lib/glimesh_web/controllers/user_registration_controller.ex | Darkhax-Forked/glimesh.tv | 9566f0ec6909ecc5151f0e092f3e08b63d911fa8 | [
"MIT"
] | null | null | null | lib/glimesh_web/controllers/user_registration_controller.ex | Darkhax-Forked/glimesh.tv | 9566f0ec6909ecc5151f0e092f3e08b63d911fa8 | [
"MIT"
] | null | null | null | defmodule GlimeshWeb.UserRegistrationController do
use GlimeshWeb, :controller
alias Glimesh.Accounts
alias Glimesh.Accounts.User
alias GlimeshWeb.UserAuth
def new(conn, _params) do
changeset = Accounts.change_user_registration(%User{})
render(conn, "new.html", changeset: changeset)
end
def cre... | 29.261905 | 89 | 0.600488 |
1abd4897836b9280480b20518d3b48751588b918 | 7,515 | exs | Elixir | apps/admin_api/test/admin_api/v1/controllers/provider_auth/category_controller_test.exs | saturnial/ewallet | a0a6a7604fca0891d495b3aebaead37fe02aae2c | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/v1/controllers/provider_auth/category_controller_test.exs | saturnial/ewallet | a0a6a7604fca0891d495b3aebaead37fe02aae2c | [
"Apache-2.0"
] | null | null | null | apps/admin_api/test/admin_api/v1/controllers/provider_auth/category_controller_test.exs | saturnial/ewallet | a0a6a7604fca0891d495b3aebaead37fe02aae2c | [
"Apache-2.0"
] | null | null | null | defmodule AdminAPI.V1.ProviderAuth.CategoryControllerTest do
use AdminAPI.ConnCase, async: true
alias EWalletDB.Category
alias EWalletDB.Helpers.Preloader
describe "/category.all" do
test "returns a list of categories and pagination data" do
response = provider_request("/category.all")
# Asser... | 34.953488 | 95 | 0.607053 |
1abd7e5073ad18334449fdbc1bb76d3e4431efc7 | 3,045 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2_session_entity_type.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2_session_entity_type.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_v2_session_entity_type.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... | 50.75 | 480 | 0.755665 |
1abd8f87825bedc9761e1275dccabe597c055eb7 | 119 | exs | Elixir | test/day_one_challenge_one.exs | AJPcodes/advent_of_code_2018 | 1c24bd41cd3b8e556e91e7d1e8ff4bbb1edf5235 | [
"MIT"
] | 1 | 2018-12-04T19:54:13.000Z | 2018-12-04T19:54:13.000Z | test/day_one_challenge_one.exs | AJPcodes/advent_of_code_2018 | 1c24bd41cd3b8e556e91e7d1e8ff4bbb1edf5235 | [
"MIT"
] | null | null | null | test/day_one_challenge_one.exs | AJPcodes/advent_of_code_2018 | 1c24bd41cd3b8e556e91e7d1e8ff4bbb1edf5235 | [
"MIT"
] | null | null | null | defmodule AdventOfCode2018Test do
use ExUnit.Case
test "Reads the input file" do
assert true = true
end
end
| 14.875 | 33 | 0.731092 |
1abd9e6653342f9e229b01d37dffd7060b29b485 | 116 | ex | Elixir | lib/rogu_web/views/log_view.ex | aquarhead/rogu | 576c798d35bfb014d215c112bc52b6f0fdbc3797 | [
"MIT"
] | 3 | 2018-05-24T04:38:25.000Z | 2020-01-20T18:21:04.000Z | lib/rogu_web/views/log_view.ex | aquarhead/rogu | 576c798d35bfb014d215c112bc52b6f0fdbc3797 | [
"MIT"
] | 8 | 2018-05-30T23:11:27.000Z | 2020-07-16T04:54:34.000Z | lib/rogu_web/views/log_view.ex | aquarhead/rogu | 576c798d35bfb014d215c112bc52b6f0fdbc3797 | [
"MIT"
] | null | null | null | defmodule RoguWeb.LogView do
use RoguWeb, :view
def authed?(conn), do: Plug.Conn.get_session(conn, :login)
end
| 19.333333 | 60 | 0.732759 |
1abda639392bb93f700d5a5f91335c3ac47ea865 | 670 | exs | Elixir | test/absinthe/integration/execution/introspection/object_with_list.exs | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | null | null | null | test/absinthe/integration/execution/introspection/object_with_list.exs | maartenvanvliet/absinthe | ebe820717200f53756e225b3dffbfefe924a94d3 | [
"MIT"
] | 2 | 2018-08-02T13:35:38.000Z | 2018-08-02T13:36:42.000Z | test/absinthe/integration/execution/introspection/object_with_list.exs | jlgeering/absinthe | a3dbc29640d613928398626ad75a8f03203a1720 | [
"MIT"
] | null | null | null | {:ok,
%{
data: %{
"__type" => %{
"fields" => [
%{
"name" => "address",
"type" => %{"kind" => "SCALAR", "name" => "String", "ofType" => nil}
},
%{"name" => "age", "type" => %{"kind" => "SCALAR", "name" => "Int", "ofType" => nil}},
%{
"n... | 24.814815 | 95 | 0.291045 |
1abdd1f1e87caa9cfb0ae41e8a7b44a91165c03b | 2,133 | ex | Elixir | test/support/in_memory.ex | scottming/closure_table | 2b567ebe040a5ac5b539bfc3112fec181a025ebc | [
"Apache-2.0"
] | 16 | 2019-09-08T14:31:36.000Z | 2022-02-14T19:50:23.000Z | test/support/in_memory.ex | scottming/closure_table | 2b567ebe040a5ac5b539bfc3112fec181a025ebc | [
"Apache-2.0"
] | 6 | 2019-09-14T06:03:41.000Z | 2021-05-16T00:53:40.000Z | test/support/in_memory.ex | scottming/closure_table | 2b567ebe040a5ac5b539bfc3112fec181a025ebc | [
"Apache-2.0"
] | 7 | 2019-09-13T16:39:45.000Z | 2021-05-11T06:15:04.000Z | defmodule CTE.InMemory do
@moduledoc """
CT implementation using the memory adapter.
The good ol' friends Rolie, Olie and Polie, debating the usefulness of this implementation :)
You can watch them in action on: [youtube](https://www.youtube.com/watch?v=LTkmaE_QWMQ)
After seeding the data, we'll have this g... | 29.219178 | 96 | 0.564932 |
1abdeed8982d9171091435be3c554f673858d7c0 | 4,344 | exs | Elixir | examples/apa_example/benchee/bench_apa_add_strings.exs | razuf/apa | 1052973da9a726c2914182562fa1f433fe303c8d | [
"Apache-2.0"
] | 4 | 2020-04-22T05:31:13.000Z | 2020-06-23T08:20:17.000Z | examples/apa_example/benchee/bench_apa_add_strings.exs | razuf/apa | 1052973da9a726c2914182562fa1f433fe303c8d | [
"Apache-2.0"
] | null | null | null | examples/apa_example/benchee/bench_apa_add_strings.exs | razuf/apa | 1052973da9a726c2914182562fa1f433fe303c8d | [
"Apache-2.0"
] | null | null | null | inputs = %{
"606 Digits Integer as String" =>
{"12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789011234567890123456789012345678901234567890123456789012345678901234... | 66.830769 | 615 | 0.792127 |
1abe103916386baea881d76ed7c0569034093b3f | 716 | ex | Elixir | lib/state_machine/utils.ex | youroff/state_machine | 37ff18fa5dfc33d628b5409d721cc06087cdd56d | [
"MIT"
] | 16 | 2020-08-07T15:04:33.000Z | 2021-05-17T16:33:51.000Z | lib/state_machine/utils.ex | youroff/state_machine | 37ff18fa5dfc33d628b5409d721cc06087cdd56d | [
"MIT"
] | 4 | 2020-08-30T20:42:54.000Z | 2020-09-09T12:17:25.000Z | lib/state_machine/utils.ex | youroff/state_machine | 37ff18fa5dfc33d628b5409d721cc06087cdd56d | [
"MIT"
] | null | null | null | defmodule StateMachine.Utils do
@spec keyword_splat(keyword(), atom(), any) :: list(any)
def keyword_splat(keyword, key, default \\ []) do
case Keyword.get(keyword, key) do
xs when is_list(xs) -> xs
x when not is_nil(x) -> [x]
_ -> default
end
end
@spec normalize_function(module(), (... | 28.64 | 143 | 0.656425 |
1abe2b37c2594848d42cd84b7c8be917020e564e | 453 | exs | Elixir | test/validation/rules/mac_address_test.exs | adolfont/validation | 6288f5a5745f645c90b6f6241e14f0088c218f5b | [
"MIT"
] | 60 | 2019-09-13T13:37:01.000Z | 2021-01-06T05:20:32.000Z | test/validation/rules/mac_address_test.exs | adolfont/validation | 6288f5a5745f645c90b6f6241e14f0088c218f5b | [
"MIT"
] | 1 | 2019-12-16T13:57:22.000Z | 2019-12-16T13:57:22.000Z | test/validation/rules/mac_address_test.exs | adolfont/validation | 6288f5a5745f645c90b6f6241e14f0088c218f5b | [
"MIT"
] | 5 | 2019-09-13T19:14:24.000Z | 2019-11-26T17:33:08.000Z | defmodule Validation.Rules.MacAddressTest do
use ExUnit.Case
alias Validation.Rules.MacAddress, as: V
doctest Validation
test "valid mac address" do
assert V.validate?("00:11:22:33:44:55")
assert V.validate?("66-77-88-99-aa-bb")
assert V.validate?("AF:0F:bd:12:44:ba")
assert V.validate?("90-bc-... | 25.166667 | 44 | 0.675497 |
1abe68ba884fe3b9844ab795f47016f2465be401 | 3,989 | ex | Elixir | lib/dynamo_migration.ex | tashirosota/dynamo_db_migrator | 5f517df225fb64c60880491856e528af021cbafe | [
"Apache-2.0"
] | 7 | 2022-02-03T15:21:42.000Z | 2022-03-28T02:50:49.000Z | lib/dynamo_migration.ex | tashirosota/dynamo_db_migrator | 5f517df225fb64c60880491856e528af021cbafe | [
"Apache-2.0"
] | 1 | 2022-03-16T00:38:40.000Z | 2022-03-25T13:12:22.000Z | lib/dynamo_migration.ex | tashirosota/dynamo_db_migrator | 5f517df225fb64c60880491856e528af021cbafe | [
"Apache-2.0"
] | 1 | 2022-03-28T02:50:52.000Z | 2022-03-28T02:50:52.000Z | defmodule DynamoMigration do
@moduledoc """
Version management module for migration file of DynamoDB.
Dependes on ExAws and ExAws.Dynamo.
See also https://github.com/ex-aws/ex_aws_dynamo.
Usage:
1. $ mix dynamo.setup # Creates migrations table.
2. $ mix dynamo.gen.migration create_tests_table --table ... | 23.464706 | 94 | 0.588117 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.