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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
857cc3ab9fa6efd83505831814b4f522fd8a5579 | 9,343 | exs | Elixir | test/ecto/repo/embedded_test.exs | DavidAlphaFox/ecto | a3eae38d1d05c440893f724c2f04a8332e32d7ac | [
"Apache-2.0"
] | 1 | 2019-05-07T15:05:52.000Z | 2019-05-07T15:05:52.000Z | test/ecto/repo/embedded_test.exs | DavidAlphaFox/ecto | a3eae38d1d05c440893f724c2f04a8332e32d7ac | [
"Apache-2.0"
] | null | null | null | test/ecto/repo/embedded_test.exs | DavidAlphaFox/ecto | a3eae38d1d05c440893f724c2f04a8332e32d7ac | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Repo.EmbeddedTest do
use ExUnit.Case, async: true
alias Ecto.TestRepo, as: TestRepo
defmodule SubEmbed do
use Ecto.Schema
@primary_key {:id, :binary_id, autogenerate: true}
schema "" do
field :y, :string
end
end
defmodule MyEmbed do
use Ecto.Schema
@primary_ke... | 29.015528 | 106 | 0.652253 |
857ce705b53da23edd2f20b0410114857b7a23c6 | 1,070 | exs | Elixir | mix.exs | kianmeng/uri_query | a0358d56bc5154922bee3366717b752d3be3327c | [
"MIT"
] | 11 | 2016-10-05T15:47:46.000Z | 2020-01-26T18:37:48.000Z | mix.exs | kianmeng/uri_query | a0358d56bc5154922bee3366717b752d3be3327c | [
"MIT"
] | 4 | 2016-10-09T12:48:27.000Z | 2017-02-20T15:42:50.000Z | mix.exs | kianmeng/uri_query | a0358d56bc5154922bee3366717b752d3be3327c | [
"MIT"
] | 6 | 2016-10-09T09:49:13.000Z | 2021-12-16T01:43:37.000Z | defmodule UriQuery.Mixfile do
use Mix.Project
def project do
[app: :uri_query,
version: "0.1.2",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
description: description(),
package: package()]
end
# Configuration for t... | 22.291667 | 77 | 0.606542 |
857ceb6b40b48883d94a9562b0aa5fc3e1fb72e0 | 3,895 | exs | Elixir | mix.exs | cw789/phoenix_live_view | bd581d966a023de632136b1c6ba166f85ea27f64 | [
"MIT"
] | null | null | null | mix.exs | cw789/phoenix_live_view | bd581d966a023de632136b1c6ba166f85ea27f64 | [
"MIT"
] | null | null | null | mix.exs | cw789/phoenix_live_view | bd581d966a023de632136b1c6ba166f85ea27f64 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.MixProject do
use Mix.Project
@version "0.17.7"
def project do
[
app: :phoenix_live_view,
version: @version,
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
compilers: compilers(Mix.env()),
p... | 26.496599 | 99 | 0.595635 |
857d025867451adf8f2f34a454b556c39f54132c | 3,841 | ex | Elixir | lib/geo/json/decoder.ex | FlorianGerhardt/geo | 81cd1ff897ef422f46ec1b8cc9f3e2584dbe213a | [
"MIT"
] | null | null | null | lib/geo/json/decoder.ex | FlorianGerhardt/geo | 81cd1ff897ef422f46ec1b8cc9f3e2584dbe213a | [
"MIT"
] | null | null | null | lib/geo/json/decoder.ex | FlorianGerhardt/geo | 81cd1ff897ef422f46ec1b8cc9f3e2584dbe213a | [
"MIT"
] | null | null | null | defmodule Geo.JSON.Decoder do
@moduledoc false
alias Geo.{
Point,
PointZ,
LineString,
Polygon,
MultiPoint,
MultiLineString,
MultiPolygon,
GeometryCollection
}
defmodule DecodeError do
@type t :: %__MODULE__{message: String.t(), value: any}
defexception [:message, :valu... | 26.489655 | 91 | 0.620672 |
857d03620c5798023528c72a5ff5bcca2fb0be2c | 6,120 | exs | Elixir | elixir/clock/test/clock_test.exs | paulfioravanti/exercism | b3bf15814b89b0ef50b9bf062b3c800e80e37e75 | [
"MIT"
] | 6 | 2019-06-19T15:43:20.000Z | 2020-07-17T19:46:09.000Z | elixir/clock/test/clock_test.exs | paulfioravanti/exercism | b3bf15814b89b0ef50b9bf062b3c800e80e37e75 | [
"MIT"
] | 10 | 2021-05-10T21:02:55.000Z | 2021-05-11T20:29:41.000Z | elixir/clock/test/clock_test.exs | paulfioravanti/exercism | b3bf15814b89b0ef50b9bf062b3c800e80e37e75 | [
"MIT"
] | 1 | 2019-06-25T10:42:14.000Z | 2019-06-25T10:42:14.000Z | defmodule ClockTest do
use ExUnit.Case
test "to_string" do
try do
to_string(%Clock{})
rescue
Protocol.UndefinedError ->
refute(true, """
Can't convert Clock to string.
Hint: implement the String.Chars protocol for Clock.
http://elixir-lang.org/getting-started/pro... | 27.321429 | 73 | 0.599673 |
857d704a39cf5b9107ee17cc9b4b48ab8fb1c258 | 1,485 | exs | Elixir | mix.exs | CraigCottingham/abbrev | 31afedd2a22d51c193209e771b3aa9218da10733 | [
"Apache-2.0"
] | null | null | null | mix.exs | CraigCottingham/abbrev | 31afedd2a22d51c193209e771b3aa9218da10733 | [
"Apache-2.0"
] | 26 | 2019-07-10T22:08:36.000Z | 2021-08-02T11:17:24.000Z | mix.exs | CraigCottingham/abbrev | 31afedd2a22d51c193209e771b3aa9218da10733 | [
"Apache-2.0"
] | null | null | null | defmodule Abbrev.MixProject do
use Mix.Project
def project do
[
app: :abbrev,
version: "0.1.0",
name: "Abbrev",
description: description(),
source_url: "http://github.com/CraigCottingham/abbrev",
homepage_url: "http://github.com/CraigCottingham/abbrev",
package: packag... | 24.344262 | 81 | 0.592593 |
857d724f6850b6aaf96930277de891b2da30d362 | 2,161 | ex | Elixir | apps/tai/lib/tai/venue_adapters/gdax/stream/connection.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/venue_adapters/gdax/stream/connection.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/lib/tai/venue_adapters/gdax/stream/connection.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | defmodule Tai.VenueAdapters.Gdax.Stream.Connection do
use Tai.Venues.Streams.ConnectionAdapter
alias Tai.VenueAdapters.Gdax.Stream
@type stream :: Tai.Venues.Stream.t()
@type venue_id :: Tai.Venue.id()
@type credential_id :: Tai.Venue.credential_id()
@type credential :: Tai.Venue.credential()
@spec star... | 30.871429 | 95 | 0.673299 |
857d87f752876b112117f334df98a64b4f457b76 | 7,726 | ex | Elixir | lib/mix/lib/mix/compilers/elixir.ex | hamiltop/elixir | 3b601660d4d4eb0c69f824fcebbbe93a3f2ba463 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/compilers/elixir.ex | hamiltop/elixir | 3b601660d4d4eb0c69f824fcebbbe93a3f2ba463 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/compilers/elixir.ex | hamiltop/elixir | 3b601660d4d4eb0c69f824fcebbbe93a3f2ba463 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Compilers.Elixir do
@moduledoc false
@manifest_vsn :v2
@doc """
Compiles stale Elixir files.
It expects a manifest file, the source directories, the extensions
to read in sources, the destination directory, a flag to know if
compilation is being forced or not and a callback to be invoked
... | 29.045113 | 98 | 0.616619 |
857d91d7dbadf900054a40bdbb2b1367a6a642e4 | 4,772 | ex | Elixir | lib/weddell/client/publisher.ex | W-Games/weddell | 618221495ca3c65f18b463970bd6c40f36ffae71 | [
"MIT"
] | 1 | 2018-05-18T15:47:34.000Z | 2018-05-18T15:47:34.000Z | lib/weddell/client/publisher.ex | timuryan/weddell | 98d31c183a03d786b804af4b8698e7956c653685 | [
"MIT"
] | 1 | 2020-06-24T18:52:41.000Z | 2020-06-24T18:52:41.000Z | lib/weddell/client/publisher.ex | W-Games/weddell | 618221495ca3c65f18b463970bd6c40f36ffae71 | [
"MIT"
] | 1 | 2018-05-18T15:46:51.000Z | 2018-05-18T15:46:51.000Z | defmodule Weddell.Client.Publisher do
@moduledoc false
alias Google.Protobuf.Empty
alias Google.Pubsub.V1.{Topic,
Publisher.Stub,
PubsubMessage,
PublishRequest,
PublishResponse,
ListTo... | 38.483871 | 95 | 0.605197 |
857d93751a3de3f61b81336825cdd3450b0a2c8a | 1,173 | ex | Elixir | lib/kindler_web/channels/user_socket.ex | hbogaeus/kindler | 0745ca9eed91f378cf605f808645b301f78f8676 | [
"MIT"
] | null | null | null | lib/kindler_web/channels/user_socket.ex | hbogaeus/kindler | 0745ca9eed91f378cf605f808645b301f78f8676 | [
"MIT"
] | null | null | null | lib/kindler_web/channels/user_socket.ex | hbogaeus/kindler | 0745ca9eed91f378cf605f808645b301f78f8676 | [
"MIT"
] | null | null | null | defmodule KindlerWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", KindlerWeb.RoomChannel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client and can
# be used to verify and a... | 30.868421 | 83 | 0.703325 |
857d9bd6d9faf31dbd9b44e91a0c01831b06786e | 48,276 | ex | Elixir | lib/aws/generated/dynamodb.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/dynamodb.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/dynamodb.ex | benmmari/aws-elixir | b97477498a9e8ba0d46a09255302d88c6a1c8573 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.DynamoDB do
@moduledoc """
Amazon DynamoDB
Amazon DynamoDB is a fully managed NoSQL database service that provides
fast and predictable performance with seamless scalability. DynamoDB let... | 41.474227 | 131 | 0.744966 |
857db349e53a07e0f2b4aa863a25cc34ea4b8a32 | 19,250 | ex | Elixir | lib/aws/logs.ex | tylerpearson/aws-elixir | 09b7d3a3b9da1d775249cca291ab42ec5a081ff2 | [
"Apache-2.0"
] | null | null | null | lib/aws/logs.ex | tylerpearson/aws-elixir | 09b7d3a3b9da1d775249cca291ab42ec5a081ff2 | [
"Apache-2.0"
] | null | null | null | lib/aws/logs.ex | tylerpearson/aws-elixir | 09b7d3a3b9da1d775249cca291ab42ec5a081ff2 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/jkakar/aws-codegen for more details.
defmodule AWS.Logs do
@moduledoc """
You can use Amazon CloudWatch Logs to monitor, store, and access your log
files from Amazon EC2 instances, AWS CloudTrail, or other sources. You can
then retrieve the ... | 38.270378 | 87 | 0.722338 |
857de7d15f62d29eff846b29884164c334f3cb9d | 90 | exs | Elixir | statusboard/test/statusboard_web/views/layout_view_test.exs | olanko/statusboard | ee5135b04ebc1492e9f0a0a96cdfb822bda62763 | [
"MIT"
] | null | null | null | statusboard/test/statusboard_web/views/layout_view_test.exs | olanko/statusboard | ee5135b04ebc1492e9f0a0a96cdfb822bda62763 | [
"MIT"
] | null | null | null | statusboard/test/statusboard_web/views/layout_view_test.exs | olanko/statusboard | ee5135b04ebc1492e9f0a0a96cdfb822bda62763 | [
"MIT"
] | null | null | null | defmodule StatusboardWeb.LayoutViewTest do
use StatusboardWeb.ConnCase, async: true
end
| 22.5 | 42 | 0.844444 |
857df410540937897944dc672001dfedea843c08 | 74 | exs | Elixir | test/test_helper.exs | jordyvanvorselen/leaderboards | 0087c756a157f0e9ccbee3ec02a21d0c813e40a9 | [
"MIT"
] | null | null | null | test/test_helper.exs | jordyvanvorselen/leaderboards | 0087c756a157f0e9ccbee3ec02a21d0c813e40a9 | [
"MIT"
] | null | null | null | test/test_helper.exs | jordyvanvorselen/leaderboards | 0087c756a157f0e9ccbee3ec02a21d0c813e40a9 | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Leaderboards.Repo, :manual)
| 24.666667 | 58 | 0.797297 |
857df5bc01a40abfd48a629b7d0b85f3e4e10f92 | 3,008 | ex | Elixir | lib/exfmt/ast/infix.ex | securingsincity/exfmt | 4fbd403abfc71df92ee67037804d6310bb45b272 | [
"Apache-2.0"
] | null | null | null | lib/exfmt/ast/infix.ex | securingsincity/exfmt | 4fbd403abfc71df92ee67037804d6310bb45b272 | [
"Apache-2.0"
] | null | null | null | lib/exfmt/ast/infix.ex | securingsincity/exfmt | 4fbd403abfc71df92ee67037804d6310bb45b272 | [
"Apache-2.0"
] | null | null | null | defmodule Exfmt.Ast.Infix do
@moduledoc """
Handling the conversion of infix operators to Algebgra.
We need to be especially careful when rendering infix
operators because we may need to render them differently
depending on what the parent call is.
For example, if we had the AST `{:*, [], [{:+, [] [1, 2},... | 21.333333 | 82 | 0.492686 |
857dff1e84a27504d87aaa287cf849c2ab70316a | 1,831 | ex | Elixir | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_table_spec.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_table_spec.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_table_spec.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.211538 | 378 | 0.752048 |
857e0f1fc80027f014a15ea0c7818f602b744f17 | 17,834 | ex | Elixir | lib/membrane/pipeline.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | null | null | null | lib/membrane/pipeline.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | null | null | null | lib/membrane/pipeline.ex | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Pipeline do
@moduledoc """
Module containing functions for constructing and supervising pipelines.
Pipelines are units that make it possible to instantiate, link and manage
elements and bins in convenient way (actually they should always be used inside
a pipeline). Linking pipeline childre... | 33.712665 | 109 | 0.633789 |
857e61d4fa990a78d93ab9ba6525bf9fa9222475 | 5,501 | exs | Elixir | lib/elixir/test/elixir/record_test.exs | MSch/elixir | fc42dc9bb76ec1fdcfcbdbfb11fea6a845a62fca | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/record_test.exs | MSch/elixir | fc42dc9bb76ec1fdcfcbdbfb11fea6a845a62fca | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/record_test.exs | MSch/elixir | fc42dc9bb76ec1fdcfcbdbfb11fea6a845a62fca | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defrecord RecordTest.FileInfo,
Record.extract(:file_info, from_lib: "kernel/include/file.hrl")
defrecord RecordTest.SomeRecord, a: 0, b: 1
defrecord RecordTest.WithNoField, []
## Record import
defmodule RecordTest.FileInfo.Helper do
Record.import RecordTest.FileInfo,... | 27.643216 | 140 | 0.690602 |
857e638a344da733d7486de396b7ecd2fe34282d | 1,062 | exs | Elixir | WorkingWithMultipleProcesses/14.5.exs | miguelcoba/ProgrammingElixir | c3aee9151ab2346fbd31a5411c473b1a4e626e36 | [
"MIT"
] | 2 | 2015-11-14T21:35:01.000Z | 2017-07-12T07:09:40.000Z | WorkingWithMultipleProcesses/14.5.exs | miguelcoba/ProgrammingElixir | c3aee9151ab2346fbd31a5411c473b1a4e626e36 | [
"MIT"
] | null | null | null | WorkingWithMultipleProcesses/14.5.exs | miguelcoba/ProgrammingElixir | c3aee9151ab2346fbd31a5411c473b1a4e626e36 | [
"MIT"
] | null | null | null | defmodule MonitoredMessage do
import :timer, only: [sleep: 1]
def sad_function(parent_pid) do
send parent_pid, "bye bye!"
exit(:boom)
end
def receive_messages do
receive do
msg ->
IO.puts "MESSAGE_RECEIVED: #{inspect msg}"
receive_messages
after 1000 ->
IO.puts "Nothing happened as far as I a... | 26.55 | 81 | 0.728814 |
857e646925f1ff8f14867dcba0af99bf02a6f4f8 | 1,951 | ex | Elixir | lib/docusign/model/user_signatures.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 4 | 2020-12-21T12:50:13.000Z | 2022-01-12T16:50:43.000Z | lib/docusign/model/user_signatures.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 12 | 2018-09-18T15:26:34.000Z | 2019-09-28T15:29:39.000Z | lib/docusign/model/user_signatures.ex | gaslight/docusign_elixir | d9d88d53dd85d32a39d537bade9db28d779414e6 | [
"MIT"
] | 15 | 2020-04-29T21:50:16.000Z | 2022-02-11T18:01:51.000Z | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule DocuSign.Model.UserSignatures do
@moduledoc """
Users' signatures
"""
@derive [Poison.Encoder]
defstruct [
:adoptedDateTime,
... | 28.275362 | 94 | 0.62122 |
857e67bc9bb46baefc7e75878f32435f28ddb395 | 3,158 | ex | Elixir | clients/translate/lib/google_api/translate/v3/model/operation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/translate/lib/google_api/translate/v3/model/operation.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/translate/lib/google_api/translate/v3/model/operation.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... | 53.525424 | 543 | 0.720076 |
857e8c484c5b1e84f81a3091a3e5e85db4bd18a9 | 852 | ex | Elixir | lib/shopix_web/plugs/translations.ex | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 196 | 2019-05-05T15:59:32.000Z | 2022-03-15T02:37:19.000Z | lib/shopix_web/plugs/translations.ex | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 105 | 2019-05-04T19:04:40.000Z | 2021-07-28T11:21:45.000Z | lib/shopix_web/plugs/translations.ex | gsarwate/shopix | 21d0e85294ee92cb7573d1b5a5746af6824b9355 | [
"MIT"
] | 26 | 2019-05-05T19:40:52.000Z | 2021-11-16T00:32:46.000Z | defmodule ShopixWeb.Plug.Translations do
alias Shopix.Front
import Plug.Conn
def init(opts), do: opts
def call(conn, _opts) do
translation_key = "#{controller_key(conn)}.#{action_key(conn)}"
conn
|> assign(:translations, Front.get_translations(translation_key))
|> assign(:translation_key, tra... | 24.342857 | 89 | 0.671362 |
857eec431a5c5ff0a8927dad542199c7ae8bd76d | 1,634 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_basic_card_button_open_uri_action.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_basic_card_button_open_uri_action.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2beta1_intent_message_basic_card_button_open_uri_action.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... | 30.259259 | 112 | 0.752754 |
857eee19fe761eac9ccfd025e3ec834c8025d150 | 321 | ex | Elixir | lib/Expt/Const.ex | M47CH4N/expt | c38412dab7bb412957e2b2fdb40636f88d357c40 | [
"MIT"
] | null | null | null | lib/Expt/Const.ex | M47CH4N/expt | c38412dab7bb412957e2b2fdb40636f88d357c40 | [
"MIT"
] | null | null | null | lib/Expt/Const.ex | M47CH4N/expt | c38412dab7bb412957e2b2fdb40636f88d357c40 | [
"MIT"
] | null | null | null | defmodule Constant do
defmacro const(name, value) do
quote do
def unquote(name), do: unquote(value)
end
end
end
defmodule Expt.Const do
require Constant
import Constant
const black, {0.0, 0.0, 0.0}
const white, {1.0, 1.0, 1.0}
const eps, 1.0e-6
const inf, 1.0e128
const max_depth, 5
end... | 16.894737 | 43 | 0.660436 |
857ef124750685c1276f869c793521e594a1ea20 | 384 | ex | Elixir | lib/la_famiglia_web/views/error_view.ex | cruessler/lafamiglia | 084915a2d44a5e69fb6ad9321eac08ced0e3016a | [
"MIT"
] | 5 | 2016-10-20T10:00:59.000Z | 2017-11-19T08:14:18.000Z | lib/la_famiglia_web/views/error_view.ex | cruessler/lafamiglia | 084915a2d44a5e69fb6ad9321eac08ced0e3016a | [
"MIT"
] | 39 | 2020-04-22T05:27:32.000Z | 2022-03-13T17:22:26.000Z | lib/la_famiglia_web/views/error_view.ex | cruessler/lafamiglia | 084915a2d44a5e69fb6ad9321eac08ced0e3016a | [
"MIT"
] | null | null | null | defmodule LaFamigliaWeb.ErrorView do
use LaFamiglia.Web, :view
def render("404.html", _assigns) do
"Page not found"
end
def render("500.html", _assigns) do
"Server internal error"
end
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_... | 21.333333 | 47 | 0.703125 |
857f00725bac80e303ce50c42bc975ec45e75929 | 3,305 | ex | Elixir | lib/credo_report_card/formatter.ex | TreyE/credo_report_card | 6f5936657a618f6cb6a9eb2cf8e8d4f7ed4f1ec2 | [
"MIT"
] | 1 | 2022-03-14T17:31:03.000Z | 2022-03-14T17:31:03.000Z | lib/credo_report_card/formatter.ex | TreyE/credo_report_card | 6f5936657a618f6cb6a9eb2cf8e8d4f7ed4f1ec2 | [
"MIT"
] | null | null | null | lib/credo_report_card/formatter.ex | TreyE/credo_report_card | 6f5936657a618f6cb6a9eb2cf8e8d4f7ed4f1ec2 | [
"MIT"
] | null | null | null | defmodule CredoReportCard.Formatter do
@moduledoc false
def categorize_module(issue, module_map) do
Map.update(
module_map,
issue.filename,
[issue],
fn v ->
[issue | v]
end
)
end
def grade(adjusted_score) do
case adjusted_score do
adjusted_score when adj... | 31.179245 | 94 | 0.677458 |
857f1e14d883882091daa3c349e83a478912bf38 | 1,031 | ex | Elixir | test/support/case/assertions/result.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 4,101 | 2016-03-02T03:49:20.000Z | 2022-03-31T05:46:01.000Z | test/support/case/assertions/result.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 889 | 2016-03-02T16:06:59.000Z | 2022-03-31T20:24:12.000Z | test/support/case/assertions/result.ex | zoldar/absinthe | 72ff9f91fcc0a261f9965cf8120c7c72ff6e4c7c | [
"MIT"
] | 564 | 2016-03-02T07:49:59.000Z | 2022-03-06T14:40:59.000Z | defmodule Absinthe.Case.Assertions.Result do
import ExUnit.Assertions
def assert_result({lflag, lhs}, {rflag, rhs}) do
assert clean(lhs) == clean(rhs)
assert lflag == rflag
end
def assert_data(expected, result) do
assert_result({:ok, %{data: expected}}, result)
end
def assert_error_message_li... | 24.547619 | 67 | 0.659554 |
857f3b92799fce66b168a022d53645f1f2ee8ff1 | 1,880 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/price.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/price.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/price.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... | 33.571429 | 115 | 0.698936 |
857f63d47fcb9bd990caba3eeafa5da667642e59 | 408 | ex | Elixir | apps/auction/lib/auction/application.ex | kendru/auctions-for-adoption | 1cc470d7b79b175be4490ff007b97e7df1e6d484 | [
"Apache-2.0"
] | null | null | null | apps/auction/lib/auction/application.ex | kendru/auctions-for-adoption | 1cc470d7b79b175be4490ff007b97e7df1e6d484 | [
"Apache-2.0"
] | null | null | null | apps/auction/lib/auction/application.ex | kendru/auctions-for-adoption | 1cc470d7b79b175be4490ff007b97e7df1e6d484 | [
"Apache-2.0"
] | null | null | null | defmodule Auction.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
{Auction.Repo, []}
]
opts = [strategy: :one... | 22.666667 | 61 | 0.70098 |
857f892acde263b580b94c42ff50a094a3a074fd | 1,183 | ex | Elixir | lib/pow_assent/strategies/basecamp.ex | danhunsaker/pow_assent | c572883b5c8f89561faee0a220ddf06de98f7415 | [
"MIT"
] | null | null | null | lib/pow_assent/strategies/basecamp.ex | danhunsaker/pow_assent | c572883b5c8f89561faee0a220ddf06de98f7415 | [
"MIT"
] | null | null | null | lib/pow_assent/strategies/basecamp.ex | danhunsaker/pow_assent | c572883b5c8f89561faee0a220ddf06de98f7415 | [
"MIT"
] | null | null | null | defmodule PowAssent.Strategy.Basecamp do
@moduledoc """
Basecamp OAuth 2.0 strategy.
## Usage
config :my_app, :pow_assent,
providers: [
basecamp: [
client_id: "REPLACE_WITH_CLIENT_ID",
client_secret: "REPLACE_WITH_CLIENT_SECRET",
strategy: PowAssent.St... | 28.853659 | 91 | 0.584108 |
857fa211a928fd5560b8b74daddc0f149d9fa10e | 593 | exs | Elixir | mix.exs | joaoeliandro/traveling_salesman_elx | 293422b51a5867d103125711e3702627ae053278 | [
"MIT"
] | null | null | null | mix.exs | joaoeliandro/traveling_salesman_elx | 293422b51a5867d103125711e3702627ae053278 | [
"MIT"
] | null | null | null | mix.exs | joaoeliandro/traveling_salesman_elx | 293422b51a5867d103125711e3702627ae053278 | [
"MIT"
] | null | null | null | defmodule TravelingSalesman.MixProject do
use Mix.Project
def project do
[
app: :traveling_salesman,
version: "0.1.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do... | 20.448276 | 87 | 0.591906 |
857fe27ea50c5d4649fbd0aa1d5dc200fca027a8 | 517 | ex | Elixir | projects/pronk/lib/pronk.ex | erik/sketches | 0a454ada58dee6db576e93cb2216dd750290329e | [
"MIT"
] | 1 | 2020-02-11T06:00:11.000Z | 2020-02-11T06:00:11.000Z | projects/pronk/lib/pronk.ex | erik/sketches | 0a454ada58dee6db576e93cb2216dd750290329e | [
"MIT"
] | 1 | 2017-09-23T19:41:29.000Z | 2017-09-25T05:12:38.000Z | projects/pronk/lib/pronk.ex | erik/sketches | 0a454ada58dee6db576e93cb2216dd750290329e | [
"MIT"
] | null | null | null | defmodule Pronk do
require Logger
use Application
def start(_type, _args) do
import Supervisor.Spec
children = [
Pronk.ServerSupervisor,
supervisor(Task.Supervisor, [[name: Pronk.TaskSupervisor]]),
worker(Task, [Pronk.ClientConnection, :listen, [9999]]),
worker(Pronk.UserRegistry... | 23.5 | 66 | 0.67118 |
857fe54fb42da258480a7f3125b30d327fe72b4e | 415 | ex | Elixir | test_app/lib/absinthe_test_app_web/middlewares/map_fetch.ex | loldlm1/anise | 5208510a37ef423b402f86fe753f4d5ba7c88483 | [
"MIT"
] | 20 | 2018-11-04T17:55:55.000Z | 2021-05-15T13:00:57.000Z | test_app/lib/absinthe_test_app_web/middlewares/map_fetch.ex | loldlm1/anise | 5208510a37ef423b402f86fe753f4d5ba7c88483 | [
"MIT"
] | 1 | 2020-06-10T01:10:57.000Z | 2021-01-22T13:35:38.000Z | test_app/lib/absinthe_test_app_web/middlewares/map_fetch.ex | loldlm1/anise | 5208510a37ef423b402f86fe753f4d5ba7c88483 | [
"MIT"
] | 4 | 2018-11-09T10:28:53.000Z | 2022-03-06T13:36:43.000Z | defmodule AbsintheTestAppWeb.Middleware.MapFetch do
@moduledoc """
A stricter default resolver.
"""
@behaviour Absinthe.Middleware
@spec call(%{source: map(), state: any(), value: any()}, any()) :: %{
source: map(),
state: :resolved,
value: any()
}
def call(%{source: ... | 24.411765 | 71 | 0.587952 |
85801c33848a115765897d4e543282d7e292caa5 | 715 | ex | Elixir | Microsoft.Azure.Management.Storage/lib/microsoft/azure/management/storage/model/usage_list_result.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.Storage/lib/microsoft/azure/management/storage/model/usage_list_result.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.Storage/lib/microsoft/azure/management/storage/model/usage_list_result.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.Storage.Model.UsageListResult do
@moduledoc """
The response from the List Usages operation.
"""
@derive [Pois... | 25.535714 | 92 | 0.73007 |
8580316a32ebde483db1beaab8e6ff96eca48193 | 333 | exs | Elixir | spawn/link2.exs | nickveys/elixir-play | 1cb3249e3dfc4df6eb7a84b7a57042931a2e8e86 | [
"Unlicense"
] | null | null | null | spawn/link2.exs | nickveys/elixir-play | 1cb3249e3dfc4df6eb7a84b7a57042931a2e8e86 | [
"Unlicense"
] | null | null | null | spawn/link2.exs | nickveys/elixir-play | 1cb3249e3dfc4df6eb7a84b7a57042931a2e8e86 | [
"Unlicense"
] | null | null | null | defmodule Link2 do
import :timer, only: [ sleep: 1 ]
def sad_function do
sleep 500
exit :boom
end
def run do
spawn_link(Link2, :sad_function, [])
receive do
msg ->
IO.puts "Message received: #{inspect(msg)}"
after 1000 ->
IO.puts "Nothing happened"
end
end
en... | 15.857143 | 51 | 0.594595 |
85804b0341be397c8132230b4f4abdd6490d76e2 | 171 | ex | Elixir | lib/pelemay/generator.ex | mobileoverlord/pelemay | 294b127e85f5d81be16c173ed8edb36ab191b00b | [
"Apache-2.0"
] | null | null | null | lib/pelemay/generator.ex | mobileoverlord/pelemay | 294b127e85f5d81be16c173ed8edb36ab191b00b | [
"Apache-2.0"
] | null | null | null | lib/pelemay/generator.ex | mobileoverlord/pelemay | 294b127e85f5d81be16c173ed8edb36ab191b00b | [
"Apache-2.0"
] | null | null | null | defmodule Pelemay.Generator do
alias Pelemay.Generator.Interface
alias Pelemay.Generator.Native
def generate do
Interface.generate
Native.generate
end
end | 19 | 35 | 0.783626 |
8580705f9c92611bb575300294cdcd3cb23e28a6 | 126 | exs | Elixir | test/emdr_consumer_test.exs | EVE-Tools/emdr_consumer | d212f658e8fcec82b44dbf601347a1c9519f031a | [
"BSD-3-Clause"
] | null | null | null | test/emdr_consumer_test.exs | EVE-Tools/emdr_consumer | d212f658e8fcec82b44dbf601347a1c9519f031a | [
"BSD-3-Clause"
] | null | null | null | test/emdr_consumer_test.exs | EVE-Tools/emdr_consumer | d212f658e8fcec82b44dbf601347a1c9519f031a | [
"BSD-3-Clause"
] | null | null | null | defmodule EMDRConsumerTest do
use ExUnit.Case
doctest EMDRConsumer
test "the truth" do
assert 1 + 1 == 2
end
end
| 14 | 29 | 0.698413 |
8580868e16923108279837555b35ed6db169ccbf | 8,293 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_intent.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... | 48.782353 | 219 | 0.705414 |
8580973d3809e2015a2cf8f6b53edcd5a9105b77 | 2,253 | exs | Elixir | config/scrapers_config.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 1 | 2022-01-30T19:51:39.000Z | 2022-01-30T19:51:39.000Z | config/scrapers_config.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | config/scrapers_config.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | null | null | null | # and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
import Config
config :sanbase, Sanbase.ExternalServices.Coinmarketcap,
update_interval: 5 * 1000 * 60,
api_url: "https://sandbox-api.coinmarketcap.com/",
... | 40.232143 | 89 | 0.753662 |
8580b5b86814c1f09e42efe94f52abba5d2b3511 | 1,785 | ex | Elixir | lib/blog_phx/accounts.ex | brandaoplaster/blog_phx | 354b6af8c5727e483884713d969d4452b9592774 | [
"MIT"
] | 2 | 2021-09-28T13:06:31.000Z | 2021-10-03T14:41:14.000Z | lib/blog_phx/accounts.ex | brandaoplaster/blog_phx | 354b6af8c5727e483884713d969d4452b9592774 | [
"MIT"
] | 8 | 2021-09-05T00:40:16.000Z | 2021-12-04T22:41:00.000Z | lib/blog_phx/accounts.ex | brandaoplaster/blog_phx | 354b6af8c5727e483884713d969d4452b9592774 | [
"MIT"
] | null | null | null | defmodule BlogPhx.Accounts do
@moduledoc """
The Accounts context.
"""
import Ecto.Query, warn: false
alias BlogPhx.Repo
alias BlogPhx.Accounts.User
@doc """
Returns the list of users.
## Examples
iex> list_users()
[%User{}, ...]
"""
def list_users do
Repo.all(User)
end
... | 16.081081 | 59 | 0.558543 |
8580c2623f55174d1e455d9d95a5ae17122de478 | 1,997 | ex | Elixir | web/views/layout_view.ex | devonestes/ex_admin | e135ae7c28de78fc87baf519ff8a32da12e8bf66 | [
"MIT"
] | 1,347 | 2015-10-05T18:23:49.000Z | 2022-01-09T18:38:36.000Z | web/views/layout_view.ex | fanduel/ex_admin | 05806a718859a0e155d3447c3ffde8a536fd676a | [
"MIT"
] | 402 | 2015-10-03T13:53:32.000Z | 2021-07-08T09:52:22.000Z | web/views/layout_view.ex | fanduel/ex_admin | 05806a718859a0e155d3447c3ffde8a536fd676a | [
"MIT"
] | 333 | 2015-10-12T22:56:57.000Z | 2021-05-26T18:40:24.000Z | defmodule ExAdmin.LayoutView do
@moduledoc false
use ExAdmin.Web, :view
def favicon do
if File.exists? "priv/static/favicon.ico" do
Phoenix.HTML.Tag.tag :link, rel: "icon", href: "/favicon.ico", type: "image/x-icon"
else
""
end
end
def site_title do
case Application.get_env(:ex_a... | 25.602564 | 101 | 0.627942 |
8580eba20de45d1ffeaf5ac3eedd4ef34c284391 | 863 | exs | Elixir | mix.exs | yasuhiro-okada-aktsk/sample_yahoo_category | 3b263cf34db39958676bf1ee61dcc1153c6fd13b | [
"MIT"
] | null | null | null | mix.exs | yasuhiro-okada-aktsk/sample_yahoo_category | 3b263cf34db39958676bf1ee61dcc1153c6fd13b | [
"MIT"
] | null | null | null | mix.exs | yasuhiro-okada-aktsk/sample_yahoo_category | 3b263cf34db39958676bf1ee61dcc1153c6fd13b | [
"MIT"
] | null | null | null | defmodule SampleYahooCategory.Mixfile do
use Mix.Project
def project do
[app: :sample_yahoo_category,
version: "0.0.1",
elixir: "~> 1.1",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
# Configuration for the OTP application
#
# Type "mix ... | 22.128205 | 77 | 0.570104 |
85810b09703b56dd6a92f03d56d1dbfdbee55662 | 67 | exs | Elixir | test/blob_font_test.exs | ScrimpyCat/BlobFont | 0629aa9e1cc9ae3e7c2e30fd2fde3f917e8fa024 | [
"BSD-2-Clause"
] | null | null | null | test/blob_font_test.exs | ScrimpyCat/BlobFont | 0629aa9e1cc9ae3e7c2e30fd2fde3f917e8fa024 | [
"BSD-2-Clause"
] | null | null | null | test/blob_font_test.exs | ScrimpyCat/BlobFont | 0629aa9e1cc9ae3e7c2e30fd2fde3f917e8fa024 | [
"BSD-2-Clause"
] | null | null | null | defmodule BlobFontTest do
use ExUnit.Case
doctest BlobFont
end
| 13.4 | 25 | 0.80597 |
858117438cbef012203ef0ac2d00cd14246516ef | 3,483 | exs | Elixir | test/neo4j_sips_transaction_test.exs | szTheory/neo4j_sips | 1d455fa98d9aaef9fa12d49b380d8a74c7e60903 | [
"MIT"
] | 90 | 2015-10-12T17:57:11.000Z | 2021-04-26T06:29:00.000Z | test/neo4j_sips_transaction_test.exs | szTheory/neo4j_sips | 1d455fa98d9aaef9fa12d49b380d8a74c7e60903 | [
"MIT"
] | 23 | 2015-12-04T01:56:03.000Z | 2019-10-08T23:23:37.000Z | test/neo4j_sips_transaction_test.exs | szTheory/neo4j_sips | 1d455fa98d9aaef9fa12d49b380d8a74c7e60903 | [
"MIT"
] | 36 | 2016-01-06T16:07:56.000Z | 2021-02-18T09:29:48.000Z | defmodule Neo4j.Sips.Transaction.Test do
use ExUnit.Case, async: true
alias Neo4j.Sips, as: Neo4j
test "there is a valid commit link at the beginning of a transaction" do
conn = Neo4j.conn
assert String.length(conn.commit_url) == 0,
"this is not a new connection. Its: commit_url, must be empty"
... | 39.579545 | 98 | 0.664657 |
85811b4c65ba7decd803ef861097a6d07a6147fd | 941 | ex | Elixir | lib/el_monads/base.ex | Twizty/elmonads | 96f61f1aa2b39cc9091eaccfae342d478621ce7d | [
"MIT"
] | null | null | null | lib/el_monads/base.ex | Twizty/elmonads | 96f61f1aa2b39cc9091eaccfae342d478621ce7d | [
"MIT"
] | null | null | null | lib/el_monads/base.ex | Twizty/elmonads | 96f61f1aa2b39cc9091eaccfae342d478621ce7d | [
"MIT"
] | null | null | null | defmodule ElMonads.Base do
defmacro __using__(_params) do
quote do
@spec m(function) :: [any]
def m(f) do
[f]
end
@spec m([any], function) :: [any]
def m(computations, f) when is_list(computations) do
computations ++ [f]
end
@spec m(any, function) :: [an... | 20.456522 | 61 | 0.513284 |
85812beebdf894d35816881fab11aaedc1852b17 | 1,083 | exs | Elixir | test/lib/code_corps/policy/stripe_platform_card_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | test/lib/code_corps/policy/stripe_platform_card_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | test/lib/code_corps/policy/stripe_platform_card_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorps.Policy.StripePlatformCardTest do
use CodeCorps.PolicyCase
import CodeCorps.Policy.StripePlatformCard, only: [create?: 2, show?: 2]
describe "create?" do
test "returns true if user is creating their own record" do
user = insert(:user)
stripe_platform_card = insert(:stripe_plat... | 28.5 | 74 | 0.708218 |
85812fa4a996e4004d7423c5b5d51af2ccdc9445 | 23,077 | ex | Elixir | lib/mix/lib/mix/tasks/xref.ex | bryanhunter/elixir | 9e232a60a12bd3f9762156fef2ba1454de094205 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/xref.ex | bryanhunter/elixir | 9e232a60a12bd3f9762156fef2ba1454de094205 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/xref.ex | bryanhunter/elixir | 9e232a60a12bd3f9762156fef2ba1454de094205 | [
"Apache-2.0"
] | 8 | 2018-02-20T18:30:53.000Z | 2019-06-18T14:23:31.000Z | defmodule Mix.Tasks.Xref do
use Mix.Task
import Mix.Compilers.Elixir,
only: [read_manifest: 2, source: 0, source: 1, source: 2, module: 1]
@shortdoc "Performs cross reference checks"
@recursive true
@manifest "compile.elixir"
@moduledoc """
Performs cross reference checks between modules.
The un... | 29.585897 | 100 | 0.636781 |
8581475fe4b9ed3dd8e346dc749255af9f0c0ac3 | 115 | exs | Elixir | test/phoenix/controller/views/render_view.exs | fishcakez/phoenix | 97fbd73a475ae918ef29a87ad580ab2ab6d967d2 | [
"MIT"
] | null | null | null | test/phoenix/controller/views/render_view.exs | fishcakez/phoenix | 97fbd73a475ae918ef29a87ad580ab2ab6d967d2 | [
"MIT"
] | null | null | null | test/phoenix/controller/views/render_view.exs | fishcakez/phoenix | 97fbd73a475ae918ef29a87ad580ab2ab6d967d2 | [
"MIT"
] | null | null | null | defmodule MyApp.RenderView do
use MyApp.Views
def render("show.json", _) do
"{\"foo\":\"bar\"}"
end
end
| 14.375 | 31 | 0.617391 |
85815846030a0146904f46c3dc5d43bd5f8ab3f5 | 231 | ex | Elixir | lib/linkedin_pdf_to_json.ex | r26D/linkedin_pdf_to_json | 2c4ad6917cfe3f653d6df6efe6008e24038c3b0d | [
"MIT"
] | null | null | null | lib/linkedin_pdf_to_json.ex | r26D/linkedin_pdf_to_json | 2c4ad6917cfe3f653d6df6efe6008e24038c3b0d | [
"MIT"
] | null | null | null | lib/linkedin_pdf_to_json.ex | r26D/linkedin_pdf_to_json | 2c4ad6917cfe3f653d6df6efe6008e24038c3b0d | [
"MIT"
] | null | null | null | defmodule LinkedinPdfToJson do
@moduledoc """
Documentation for `LinkedinPdfToJson`.
"""
@doc """
Hello world.
## Examples
iex> LinkedinPdfToJson.hello()
:world
"""
def hello do
:world
end
end
| 12.157895 | 40 | 0.614719 |
85819bcac8f0e1280ef4c8b85c8f839052c052fe | 67 | exs | Elixir | test/test_helper.exs | brunorafa/rumbl | 910e6ecfaae8da8e54da9e67871a02885c2f383f | [
"MIT"
] | 1 | 2021-05-30T20:57:51.000Z | 2021-05-30T20:57:51.000Z | test/test_helper.exs | brunorafa/rumbl | 910e6ecfaae8da8e54da9e67871a02885c2f383f | [
"MIT"
] | null | null | null | test/test_helper.exs | brunorafa/rumbl | 910e6ecfaae8da8e54da9e67871a02885c2f383f | [
"MIT"
] | null | null | null | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Rumbl.Repo, :manual)
| 22.333333 | 51 | 0.776119 |
8581ba692f8a0e933e6b718bee2804a04fb2908c | 2,147 | ex | Elixir | lib/mix/lib/mix/tasks/cmd.ex | oskarkook/elixir | 2ddd291c533cdc2b1b1f02153d94c0b248cb9836 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/cmd.ex | oskarkook/elixir | 2ddd291c533cdc2b1b1f02153d94c0b248cb9836 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/cmd.ex | oskarkook/elixir | 2ddd291c533cdc2b1b1f02153d94c0b248cb9836 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Cmd do
use Mix.Task
@shortdoc "Executes the given command"
@recursive true
@moduledoc """
Executes the given command.
For example, you can invoke an external command such as make:
mix cmd make
By passing the `--cd` flag before the command, you can also force
the command to... | 26.506173 | 77 | 0.676293 |
8581c8c7416556e89c612ec6b1ff1b1e8de91945 | 231 | exs | Elixir | test/stripe_post_test.exs | aforward/stripe-post | 2aa29bab7c69495bd43d53202589b7af48c9fa8c | [
"MIT"
] | null | null | null | test/stripe_post_test.exs | aforward/stripe-post | 2aa29bab7c69495bd43d53202589b7af48c9fa8c | [
"MIT"
] | 1 | 2021-07-22T19:32:28.000Z | 2021-07-22T20:04:03.000Z | test/stripe_post_test.exs | aforward/stripe-post | 2aa29bab7c69495bd43d53202589b7af48c9fa8c | [
"MIT"
] | null | null | null | defmodule StripePostTest do
use ExUnit.Case
doctest StripePost
doctest StripePost.Url
doctest StripePost.Opts
doctest StripePost.Content
doctest StripePost.Request
test "the truth" do
assert 1 + 1 == 2
end
end
| 17.769231 | 28 | 0.748918 |
8581d9248769f9f287de7adfea0b1941dd519218 | 4,115 | ex | Elixir | lib/mix/lib/mix/task.compiler.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 1 | 2021-04-28T21:35:01.000Z | 2021-04-28T21:35:01.000Z | lib/mix/lib/mix/task.compiler.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/task.compiler.ex | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 8 | 2018-02-20T18:30:53.000Z | 2019-06-18T14:23:31.000Z | defmodule Mix.Task.Compiler do
@moduledoc """
This module defines the behaviour for a Mix task that does compilation.
A Mix compiler task can be defined by simply using `Mix.Task.Compiler`
in a module whose name starts with `Mix.Tasks.Compile.` and defining
the `run/1` function:
defmodule Mix.Tasks.Co... | 30.257353 | 91 | 0.638396 |
8582000d4d55fc2de3a8b2656477698894c81a0e | 1,176 | ex | Elixir | lib/web/controllers/batch_controller.ex | m4ta1l/bors-ng | a4d04fd740e24d03833cd46a76f0f9e5be96f818 | [
"Apache-2.0"
] | 1 | 2020-04-23T20:37:43.000Z | 2020-04-23T20:37:43.000Z | lib/web/controllers/batch_controller.ex | m4ta1l/bors-ng | a4d04fd740e24d03833cd46a76f0f9e5be96f818 | [
"Apache-2.0"
] | 71 | 2021-07-06T15:27:45.000Z | 2021-07-07T14:20:40.000Z | lib/web/controllers/batch_controller.ex | m4ta1l/bors-ng | a4d04fd740e24d03833cd46a76f0f9e5be96f818 | [
"Apache-2.0"
] | 5 | 2020-11-18T23:38:29.000Z | 2021-09-30T17:45:56.000Z | defmodule BorsNG.BatchController do
@moduledoc """
The controller for the batches
This will either show a batch detail page
"""
use BorsNG.Web, :controller
alias BorsNG.Database.Batch
alias BorsNG.Database.Context.Permission
alias BorsNG.Database.Repo
alias BorsNG.Database.Patch
alias BorsNG.Data... | 26.133333 | 99 | 0.678571 |
85824832208ba507e6a51c62b9f1da79409d8015 | 2,053 | exs | Elixir | test/live_view_gallery/accounts_test.exs | clarkware/live_view_covid_19 | dfe6ec0cb0ecf91ef30a58b549acc82d4614916a | [
"MIT"
] | 4 | 2020-03-20T13:37:51.000Z | 2020-03-27T23:53:55.000Z | test/live_view_gallery/accounts_test.exs | clarkware/live_view_covid_19 | dfe6ec0cb0ecf91ef30a58b549acc82d4614916a | [
"MIT"
] | 2 | 2021-03-10T11:22:03.000Z | 2021-05-11T07:08:43.000Z | test/live_view_gallery/accounts_test.exs | clarkware/live_view_covid_19 | dfe6ec0cb0ecf91ef30a58b549acc82d4614916a | [
"MIT"
] | null | null | null | defmodule Covid19.AccountsTest do
use Covid19.DataCase
alias Covid19.Accounts
describe "users" do
alias Covid19.Accounts.User
@valid_attrs %{email: "some email", username: "some username"}
@update_attrs %{email: "some updated email", username: "some updated username"}
@invalid_attrs %{email: ni... | 30.641791 | 85 | 0.6566 |
85824e6730473b5653bb10e1612358c5089fdfa1 | 1,419 | exs | Elixir | mix.exs | JordanCheney/gforce | 44b2862e3a4aacb13316922431f22f0889c5fa99 | [
"MIT"
] | null | null | null | mix.exs | JordanCheney/gforce | 44b2862e3a4aacb13316922431f22f0889c5fa99 | [
"MIT"
] | 2 | 2021-05-11T10:59:37.000Z | 2021-06-17T00:54:44.000Z | mix.exs | JordanCheney/gforce | 44b2862e3a4aacb13316922431f22f0889c5fa99 | [
"MIT"
] | null | null | null | defmodule Gforce.MixProject do
use Mix.Project
def project do
[
app: :gforce,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 24.894737 | 67 | 0.587033 |
858285eebc6d567cc61dd5db8fc3c11cd5218bcf | 41,077 | exs | Elixir | machine_translation/MorpHIN/Learned/Resources/Set4/TrainingInstances/104.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set4/TrainingInstances/104.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set4/TrainingInstances/104.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | **EXAMPLE FILE**
noun verb verb verb_aux verb_aux;
verb_aux verb conj noun verb_aux;
adjective verb SYM adjective verb_aux;
SYM adjective conj adjective verb;
noun verb SYM pnoun verb_aux;
noun verb verb_aux SYM verb_aux;
adjective noun demonstrative cm verb;
adjective verb verb_aux SYM verb_aux;
verb verb co... | 33.020096 | 48 | 0.788349 |
85828e3c43336791c3881abbf6374cfb229ffcbc | 622 | ex | Elixir | clients/elixir/generated/lib/swaggy_jenkins/model/github_repositorypermissions.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 23 | 2017-08-01T12:25:26.000Z | 2022-01-25T03:44:11.000Z | clients/elixir/generated/lib/swaggy_jenkins/model/github_repositorypermissions.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 35 | 2017-06-14T03:28:15.000Z | 2022-02-14T10:25:54.000Z | clients/elixir/generated/lib/swaggy_jenkins/model/github_repositorypermissions.ex | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 11 | 2017-08-31T19:00:20.000Z | 2021-12-19T12:04:12.000Z | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule SwaggyJenkins.Model.GithubRepositorypermissions do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"admin",
:"push",
... | 19.4375 | 91 | 0.64791 |
8582bdb1ff10cc78977bbe919ccc2f913130307f | 1,301 | exs | Elixir | test/ee_test.exs | joekain/ecto-experiments | f64a8dff9b3af1b15eb568edeb1ff10a13bcafb9 | [
"MIT"
] | 1 | 2017-04-21T22:28:42.000Z | 2017-04-21T22:28:42.000Z | test/ee_test.exs | joekain/ecto-experiments | f64a8dff9b3af1b15eb568edeb1ff10a13bcafb9 | [
"MIT"
] | null | null | null | test/ee_test.exs | joekain/ecto-experiments | f64a8dff9b3af1b15eb568edeb1ff10a13bcafb9 | [
"MIT"
] | null | null | null | defmodule EeTest do
use ExUnit.Case
doctest Ee
test "the truth" do
assert 1 + 1 == 2
end
test "we can create and insert object records" do
Ee.Repo.insert! %Ee.Object{
title: "Test Object",
description: "And object for the test"
}
end
test "we can insert object records and query ... | 23.654545 | 71 | 0.624904 |
8582bf9e8a9d45e20c5e0b2a9cf13b9c9947f862 | 7,988 | ex | Elixir | kousa/lib/beef/users.ex | gitaumoses4/dogehouse | 7570fccd827047111c555e318c969bf750166317 | [
"MIT"
] | null | null | null | kousa/lib/beef/users.ex | gitaumoses4/dogehouse | 7570fccd827047111c555e318c969bf750166317 | [
"MIT"
] | null | null | null | kousa/lib/beef/users.ex | gitaumoses4/dogehouse | 7570fccd827047111c555e318c969bf750166317 | [
"MIT"
] | null | null | null | defmodule Beef.Users do
@moduledoc """
Context module for Users.
Contains database access and mutation functions for User.
"""
import Ecto.Query, warn: false
alias Beef.Repo
alias Beef.Rooms
alias Beef.Schemas.Room
alias Beef.Schemas.User
@fetch_limit 16
def edit_profile(user_id, data) do
%... | 22.628895 | 95 | 0.520781 |
8582cd7849f3f8032d662156a5c3b5b92f69d35a | 584 | ex | Elixir | lib/jungle_inflexor/ordinalize.ex | themgt/jungle_inflexor | d3aa1e86b96f04c99bd2df4f5302528fe644b5ca | [
"MIT"
] | 6 | 2018-04-16T11:38:57.000Z | 2020-05-09T00:52:30.000Z | lib/jungle_inflexor/ordinalize.ex | themgt/jungle_inflexor | d3aa1e86b96f04c99bd2df4f5302528fe644b5ca | [
"MIT"
] | null | null | null | lib/jungle_inflexor/ordinalize.ex | themgt/jungle_inflexor | d3aa1e86b96f04c99bd2df4f5302528fe644b5ca | [
"MIT"
] | 1 | 2021-01-29T13:05:08.000Z | 2021-01-29T13:05:08.000Z | defmodule Jungle.Inflexor.Ordinalize do
@doc """
Turns a number into an ordinal string used to denote the position in an ordered sequence such as 1st, 2nd, 3rd, 4th.
## Examples
iex> Jungle.Inflexor.ordinalize(1)
"1st"
"""
def ordinalize(number) do
"#{number}#{ordinal(number)}"
end
de... | 20.137931 | 118 | 0.59589 |
85831933bce10e08e965aff53fda19a834ace19a | 2,169 | exs | Elixir | test/lib/web_authn_lite/authenticator_data_test.exs | tashirosota/elixir-web_authn_lite | 6135d9295cf1184a02a184385b1ef46cff94464c | [
"MIT"
] | 10 | 2018-11-21T03:17:05.000Z | 2022-03-10T17:17:00.000Z | test/lib/web_authn_lite/authenticator_data_test.exs | tashirosota/elixir-web_authn_lite | 6135d9295cf1184a02a184385b1ef46cff94464c | [
"MIT"
] | 6 | 2018-11-08T15:12:59.000Z | 2022-03-09T08:57:10.000Z | test/lib/web_authn_lite/authenticator_data_test.exs | tashirosota/elixir-web_authn_lite | 6135d9295cf1184a02a184385b1ef46cff94464c | [
"MIT"
] | 2 | 2019-01-14T09:18:09.000Z | 2022-03-08T04:15:03.000Z | defmodule WebAuthnLite.ClientDataJSONTest do
use ExUnit.Case, async: false
alias WebAuthnLite.AuthenticatorData
alias WebAuthnLite.AuthenticatorData.Flags
doctest AuthenticatorData
doctest Flags
@valid_encoded_authenticator_data "SZYN5YgOjGh0NBcPZHZgW4_krrmihjLHmVzzuoMdl2MBAAAAGw"
@invalid_encoded_auth... | 36.762712 | 260 | 0.685108 |
858357b52504df7437d77387f37b38cbc3bb18e5 | 65 | ex | Elixir | src/frontend/lib/frontend_web/views/search_view.ex | wbpascal/statuswebsite | 7a81e530a9176c53abeab0582cb710113101b716 | [
"MIT"
] | 1 | 2021-04-18T20:21:03.000Z | 2021-04-18T20:21:03.000Z | src/frontend/lib/frontend_web/views/search_view.ex | wbpascal/statuswebsite | 7a81e530a9176c53abeab0582cb710113101b716 | [
"MIT"
] | null | null | null | src/frontend/lib/frontend_web/views/search_view.ex | wbpascal/statuswebsite | 7a81e530a9176c53abeab0582cb710113101b716 | [
"MIT"
] | 1 | 2021-04-18T20:21:08.000Z | 2021-04-18T20:21:08.000Z | defmodule FrontendWeb.SearchView do
use FrontendWeb, :view
end
| 16.25 | 35 | 0.815385 |
85836d78192bb77f99b350c8c63f7af3c8f12419 | 1,534 | ex | Elixir | lib/Overseer.ex | Sandbergo/distributed-elevator-controller | 5b82858110b8e47e445e26aefd1d55a2dced9957 | [
"MIT"
] | null | null | null | lib/Overseer.ex | Sandbergo/distributed-elevator-controller | 5b82858110b8e47e445e26aefd1d55a2dced9957 | [
"MIT"
] | null | null | null | lib/Overseer.ex | Sandbergo/distributed-elevator-controller | 5b82858110b8e47e445e26aefd1d55a2dced9957 | [
"MIT"
] | 1 | 2019-03-13T11:46:35.000Z | 2019-03-13T11:46:35.000Z | defmodule Overseer do
@moduledoc """
A Supervisor that keeps track and restarts entire program upon request or crash, using the one_for_all
strategy, as well as being the entry point for the entire program
"""
use Supervisor
@receive_port 20086
@broadcast_port 20087
def start_link() do
Supervisor... | 26.448276 | 104 | 0.657757 |
8583723ceb8c6a09b061c04b4b1471768623f74d | 469 | exs | Elixir | example/test/mix.exs | luochen52/mapd-charting | 88e3f049dc10921c5eff63a3b1b539af2a2a71d0 | [
"Apache-2.0"
] | 123 | 2018-10-08T01:05:11.000Z | 2022-02-20T12:06:24.000Z | example/test/mix.exs | luochen52/mapd-charting | 88e3f049dc10921c5eff63a3b1b539af2a2a71d0 | [
"Apache-2.0"
] | 63 | 2018-10-04T18:47:00.000Z | 2022-02-11T18:35:15.000Z | example/test/mix.exs | luochen52/mapd-charting | 88e3f049dc10921c5eff63a3b1b539af2a2a71d0 | [
"Apache-2.0"
] | 28 | 2018-11-02T07:19:56.000Z | 2022-02-27T14:26:28.000Z | defmodule Test.Mixfile do
use Mix.Project
def project do
[app: :test,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
def application do
[extra_applications: [:logger, :whippet, :beagle]]
end
defp ... | 18.76 | 54 | 0.573561 |
858375b9f16114dc56d29e4b9212a835b0bed3a9 | 5,650 | ex | Elixir | lib/components/sensor_view.ex | brsg/telluride_sensor | 65936295777c2d3edca767ac018af68495e8a775 | [
"Apache-2.0"
] | 1 | 2021-02-21T15:18:25.000Z | 2021-02-21T15:18:25.000Z | lib/components/sensor_view.ex | brsg/telluride_sensor | 65936295777c2d3edca767ac018af68495e8a775 | [
"Apache-2.0"
] | null | null | null | lib/components/sensor_view.ex | brsg/telluride_sensor | 65936295777c2d3edca767ac018af68495e8a775 | [
"Apache-2.0"
] | 1 | 2021-02-21T15:18:51.000Z | 2021-02-21T15:18:51.000Z | defmodule TellurideSensor.Component.SensorView do
use Scenic.Component
alias Scenic.Graph
alias Scenic.Sensor
import Scenic.Primitives #, only: [{:text, 3}, {:rect, 3}]
import Scenic.Components
@font_size 14
@radius 10
@button_height 35
@rrect_id_suffix "_rrect"
@update_id_suffix "_update"
... | 34.45122 | 98 | 0.634867 |
8583782c0ee62c7dd9e23007317762b7ee03f696 | 32 | ex | Elixir | lib/libcluster_etcd.ex | dkataskin/libcluster_etcd | 598ef42035893dd083c286ff2cc1508e6a196a5d | [
"MIT"
] | 1 | 2019-06-10T11:48:26.000Z | 2019-06-10T11:48:26.000Z | lib/libcluster_etcd.ex | dkataskin/libcluster_etcd | 598ef42035893dd083c286ff2cc1508e6a196a5d | [
"MIT"
] | null | null | null | lib/libcluster_etcd.ex | dkataskin/libcluster_etcd | 598ef42035893dd083c286ff2cc1508e6a196a5d | [
"MIT"
] | null | null | null | defmodule LibclusterEtcd do
end
| 10.666667 | 27 | 0.875 |
8583c5afb8f0894457ac6ed470e952dac4ac521d | 608 | exs | Elixir | test/events_tools_web/views/error_view_test.exs | Apps-Team/conferencetools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | null | null | null | test/events_tools_web/views/error_view_test.exs | Apps-Team/conferencetools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | 6 | 2017-10-05T20:16:34.000Z | 2017-10-05T20:36:11.000Z | test/events_tools_web/views/error_view_test.exs | apps-team/events-tools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | null | null | null | defmodule EventsTools.Web.ErrorViewTest do
use EventsTools.Web.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.html" do
assert render_to_string(EventsTools.Web.ErrorView, "404.html", []) ==
"Page not found"
end
te... | 27.636364 | 73 | 0.689145 |
8583d948a314bb88330bb388ce5c2bb9dbc23b05 | 953 | ex | Elixir | lib/web_chat/application.ex | xiongxin/web_chat | 4123887993083058a358358595c06970a5ac873f | [
"MIT"
] | null | null | null | lib/web_chat/application.ex | xiongxin/web_chat | 4123887993083058a358358595c06970a5ac873f | [
"MIT"
] | null | null | null | lib/web_chat/application.ex | xiongxin/web_chat | 4123887993083058a358358595c06970a5ac873f | [
"MIT"
] | null | null | null | defmodule WebChat.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 ap... | 31.766667 | 85 | 0.720881 |
8583f2406f617dcd6498a3257dc4fbc4fb7f78e8 | 17,612 | ex | Elixir | apps/evm/lib/block/header.ex | atoulme/ethereum | cebb0756c7292ac266236636d2ab5705cb40a52e | [
"MIT"
] | 105 | 2017-08-02T07:55:17.000Z | 2021-12-23T21:49:57.000Z | apps/evm/lib/block/header.ex | atoulme/ethereum | cebb0756c7292ac266236636d2ab5705cb40a52e | [
"MIT"
] | 19 | 2017-08-21T22:28:39.000Z | 2018-05-01T13:33:12.000Z | apps/evm/lib/block/header.ex | atoulme/ethereum | cebb0756c7292ac266236636d2ab5705cb40a52e | [
"MIT"
] | 17 | 2017-08-10T15:50:47.000Z | 2021-11-19T04:29:59.000Z | defmodule Block.Header do
@moduledoc """
This structure codifies the header of a block in the blockchain.
"""
@empty_trie MerklePatriciaTree.Trie.empty_trie_root_hash
@empty_keccak [] |> ExRLP.encode |> :keccakf1600.sha3_256
defstruct [
parent_hash: nil, # Hp P(BH)Hr
ommers_hash: @e... | 38.622807 | 352 | 0.646945 |
858433dbcde9ac44e5223a119e35cf584bc97432 | 918 | ex | Elixir | plugins/one_chat/lib/one_chat_web/admin/users.ex | smpallen99/ucx_ucc | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 11 | 2017-05-15T18:35:05.000Z | 2018-02-05T18:27:40.000Z | plugins/one_chat/lib/one_chat_web/admin/users.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 15 | 2017-11-27T10:38:05.000Z | 2018-02-09T20:42:08.000Z | plugins/one_chat/lib/one_chat_web/admin/users.ex | anndream/infinity_one | 47225f205a6ac4aacdb9bb4f7512dcf4092576ad | [
"MIT"
] | 4 | 2017-09-13T11:34:16.000Z | 2018-02-26T13:37:06.000Z | defmodule OneChatWeb.Admin.Page.Users do
use OneAdmin.Page
import Ecto.Query
alias InfinityOne.{Repo, Hooks, Accounts.User}
# alias InfinityOne.Repo
# alias OneChat.{Message, Channel, UserService}
def add_page do
new(
"admin_users",
__MODULE__,
~g(Users),
OneChatWeb.AdminVie... | 20.4 | 70 | 0.636166 |
85843fc0ac6a5db2432f69504437921f6bef12e8 | 135 | ex | Elixir | test/helpers/connections/invalid_db_connection.ex | qgadrian/instream | 3dc828fe476817d442b83dc5da58ceca56e9886f | [
"Apache-2.0"
] | null | null | null | test/helpers/connections/invalid_db_connection.ex | qgadrian/instream | 3dc828fe476817d442b83dc5da58ceca56e9886f | [
"Apache-2.0"
] | null | null | null | test/helpers/connections/invalid_db_connection.ex | qgadrian/instream | 3dc828fe476817d442b83dc5da58ceca56e9886f | [
"Apache-2.0"
] | null | null | null | defmodule Instream.TestHelpers.Connections.InvalidDbConnection do
@moduledoc false
use Instream.Connection, otp_app: :instream
end
| 27 | 65 | 0.837037 |
85845003e1716cad2dd4c238765e1a302f500203 | 1,253 | ex | Elixir | test/support/conn_case.ex | gissandrogama/challenge_elixir | bf0c2dd3b82857cfc7f39fefbd2be75a5b5d52dd | [
"MIT"
] | null | null | null | test/support/conn_case.ex | gissandrogama/challenge_elixir | bf0c2dd3b82857cfc7f39fefbd2be75a5b5d52dd | [
"MIT"
] | 4 | 2021-01-18T22:25:19.000Z | 2021-01-20T17:36:23.000Z | test/support/conn_case.ex | gissandrogama/challenge_elixir | bf0c2dd3b82857cfc7f39fefbd2be75a5b5d52dd | [
"MIT"
] | null | null | null | defmodule ChallengeWeb.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 ... | 27.844444 | 63 | 0.726257 |
85845299699b9f3a42f3367831cf184523695bb0 | 102 | exs | Elixir | test/rest/endpoint_test.exs | jbosse/crux_rest | d99fff0d39efc4574504084b62fb57ef27d748bc | [
"MIT"
] | 6 | 2018-05-22T07:13:48.000Z | 2021-05-04T14:10:11.000Z | test/rest/endpoint_test.exs | jbosse/crux_rest | d99fff0d39efc4574504084b62fb57ef27d748bc | [
"MIT"
] | 1 | 2021-05-05T17:02:36.000Z | 2021-05-05T21:10:54.000Z | test/rest/endpoint_test.exs | jbosse/crux_rest | d99fff0d39efc4574504084b62fb57ef27d748bc | [
"MIT"
] | 1 | 2021-05-04T14:10:14.000Z | 2021-05-04T14:10:14.000Z | defmodule Crux.Rest.EndpointsTest do
use ExUnit.Case, async: true
doctest Crux.Rest.Endpoints
end
| 20.4 | 36 | 0.794118 |
85845b69becdf947d97b9101dab898b5d24a8fb0 | 565 | exs | Elixir | test/service_provider_test.exs | lincolnf/pact_elixir | 21e5f473e3c30173881e577ffda8df1e1419d47d | [
"MIT"
] | 27 | 2018-02-28T22:42:14.000Z | 2022-03-20T00:30:08.000Z | test/service_provider_test.exs | lincolnf/pact_elixir | 21e5f473e3c30173881e577ffda8df1e1419d47d | [
"MIT"
] | 180 | 2017-12-04T09:42:53.000Z | 2022-03-28T09:33:23.000Z | test/service_provider_test.exs | lincolnf/pact_elixir | 21e5f473e3c30173881e577ffda8df1e1419d47d | [
"MIT"
] | 8 | 2018-08-01T17:14:52.000Z | 2022-01-26T12:46:46.000Z | defmodule PactElixir.ServiceProviderTest do
use ExUnit.Case
alias PactElixir.ServiceProvider
test "default constructor values" do
provider = ServiceProvider.new()
assert 0 = provider.port
assert "pacts/" = provider.pact_output_dir_path
end
test "constructor parameters" do
provider = Service... | 23.541667 | 66 | 0.746903 |
85845baa4286d1f7c5664eb60456b340ac988210 | 1,891 | ex | Elixir | clients/people/lib/google_api/people/v1/model/residence.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-10-01T09:20:41.000Z | 2021-10-01T09:20:41.000Z | clients/people/lib/google_api/people/v1/model/residence.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/people/lib/google_api/people/v1/model/residence.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.679245 | 158 | 0.711793 |
858472347dba51104e5b72c4765cabb3c1079668 | 2,648 | exs | Elixir | test/components/form/time_input_test.exs | jshmrtn/surface | 5ddbbc67b2c165ba53a85c68c0da8fce491472f2 | [
"MIT"
] | 1 | 2021-05-13T10:47:44.000Z | 2021-05-13T10:47:44.000Z | test/components/form/time_input_test.exs | davydog187/surface | 6547e015a70d06fe20548b5618d0666c4f7481d1 | [
"MIT"
] | null | null | null | test/components/form/time_input_test.exs | davydog187/surface | 6547e015a70d06fe20548b5618d0666c4f7481d1 | [
"MIT"
] | null | null | null | defmodule Surface.Components.Form.TimeInputTest do
use Surface.ConnCase, async: true
alias Surface.Components.Form.TimeInput
test "empty input" do
html =
render_surface do
~H"""
<TimeInput form="user" field="time" />
"""
end
assert html =~ """
<input id="u... | 21.528455 | 85 | 0.540408 |
8584942222ea70d36489259a5219955896016854 | 257 | exs | Elixir | priv/repo/migrations/20210101034558_add_buffer_fields_to_event_types.exs | guanghuizeng/papercups | 0d7ca893edddea0d23f0772ccc5694edd407fc63 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210101034558_add_buffer_fields_to_event_types.exs | guanghuizeng/papercups | 0d7ca893edddea0d23f0772ccc5694edd407fc63 | [
"MIT"
] | null | null | null | priv/repo/migrations/20210101034558_add_buffer_fields_to_event_types.exs | guanghuizeng/papercups | 0d7ca893edddea0d23f0772ccc5694edd407fc63 | [
"MIT"
] | null | null | null | defmodule ChatApi.Repo.Migrations.AddBufferFieldsToEventTypes do
use Ecto.Migration
def change do
alter table(:event_types) do
add :before_buffer_time, :integer, default: 0
add :after_buffer_time, :integer, default: 0
end
end
end
| 23.363636 | 64 | 0.735409 |
8584ad20b878f27bc926f37f65483843476606a7 | 2,197 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_response_message_human_agent_handoff.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_response_message_human_agent_handoff.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_response_message_human_agent_handoff.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... | 33.287879 | 124 | 0.755121 |
8584b58337188ac69ade4b6840f6fd499a52ee28 | 564 | ex | Elixir | lib/conv_claim_web/views/changeset_view.ex | turnhub/turnio-conversation-claiming-replit | 0af9c9dd8ed920f79b8bdaa5fbf6f0e7f9a92f8b | [
"Apache-2.0"
] | null | null | null | lib/conv_claim_web/views/changeset_view.ex | turnhub/turnio-conversation-claiming-replit | 0af9c9dd8ed920f79b8bdaa5fbf6f0e7f9a92f8b | [
"Apache-2.0"
] | null | null | null | lib/conv_claim_web/views/changeset_view.ex | turnhub/turnio-conversation-claiming-replit | 0af9c9dd8ed920f79b8bdaa5fbf6f0e7f9a92f8b | [
"Apache-2.0"
] | null | null | null | defmodule ConvClaimWeb.ChangesetView do
use ConvClaimWeb, :view
@doc """
Traverses and translates changeset errors.
See `Ecto.Changeset.traverse_errors/2` and
`ConvClaimWeb.ErrorHelpers.translate_error/1` for more details.
"""
def translate_errors(changeset) do
Ecto.Changeset.traverse_errors(changes... | 28.2 | 65 | 0.741135 |
8584b81d5824d0c56d94ac6f2dd95aae090cde5a | 343 | exs | Elixir | priv/repo/migrations/20190104195830_create_users.exs | fiqus/surgex | af3ec37459abd3f17c7e9a826ca1abef1dd5fb44 | [
"MIT"
] | 8 | 2019-05-11T19:41:06.000Z | 2020-01-20T07:01:53.000Z | priv/repo/migrations/20190104195830_create_users.exs | fiqus/surgex | af3ec37459abd3f17c7e9a826ca1abef1dd5fb44 | [
"MIT"
] | 12 | 2019-05-10T22:00:40.000Z | 2019-07-05T19:20:56.000Z | priv/repo/migrations/20190104195830_create_users.exs | fiqus/surgex | af3ec37459abd3f17c7e9a826ca1abef1dd5fb44 | [
"MIT"
] | 1 | 2019-07-18T15:58:41.000Z | 2019-07-18T15:58:41.000Z | defmodule Surgex.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users, primary_key: false) do
add :id, :binary_id, primary_key: true
add :password_hash, :string
add :is_admin, :boolean, default: false
add :disabled, :boolean, default: false
timestam... | 22.866667 | 47 | 0.6793 |
8584c1161e3d96b4726b3d56f3102d2fc9ee2a1c | 3,397 | ex | Elixir | clients/content/lib/google_api/content/v21/model/orders_update_shipment_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/orders_update_shipment_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v21/model/orders_update_shipment_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 44.697368 | 222 | 0.690315 |
8585125138c77c2f716a602fc9fc4bb86a3c6698 | 4,116 | ex | Elixir | lib/phoenix/live_dashboard/live/applications_live.ex | Blond11516/phoenix_live_dashboard | 9b70670d4ad1dc49ebe2eef45f2f082ff6b03a1b | [
"MIT"
] | null | null | null | lib/phoenix/live_dashboard/live/applications_live.ex | Blond11516/phoenix_live_dashboard | 9b70670d4ad1dc49ebe2eef45f2f082ff6b03a1b | [
"MIT"
] | null | null | null | lib/phoenix/live_dashboard/live/applications_live.ex | Blond11516/phoenix_live_dashboard | 9b70670d4ad1dc49ebe2eef45f2f082ff6b03a1b | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveDashboard.ApplicationsLive do
use Phoenix.LiveDashboard.Web, :live_view
import Phoenix.LiveDashboard.TableHelpers
alias Phoenix.LiveDashboard.SystemInfo
@sort_by ~w(name state)
@sort_dir ~w(asc desc)
@temporary_assigns [applications: [], total: 0]
@impl true
def mount(%{"node" =... | 33.463415 | 156 | 0.554422 |
858532d6cd7c0c103b6611763d94465e6e5b28aa | 734 | ex | Elixir | lib/wunderground/almanac/almanac.ex | optikfluffel/wunderground | 67ebd8fbb83f2f0d1eb1a6fba1273afa3cec8233 | [
"Unlicense"
] | 2 | 2017-08-23T21:48:07.000Z | 2017-10-16T21:35:36.000Z | lib/wunderground/almanac/almanac.ex | optikfluffel/wunderground | 67ebd8fbb83f2f0d1eb1a6fba1273afa3cec8233 | [
"Unlicense"
] | 8 | 2017-08-23T10:02:35.000Z | 2017-09-03T11:35:36.000Z | lib/wunderground/almanac/almanac.ex | optikfluffel/wunderground | 67ebd8fbb83f2f0d1eb1a6fba1273afa3cec8233 | [
"Unlicense"
] | 1 | 2021-06-22T15:02:15.000Z | 2021-06-22T15:02:15.000Z | defmodule Wunderground.Almanac do
@moduledoc """
Handles API requests for getting the almanac of a given place.
"""
alias Wunderground.Query
alias Wunderground.API
alias Wunderground.Almanac.Temperature
@derive [Poison.Encoder]
defstruct ~w(airport_code temp_high temp_low)a
@type t :: %__MODULE__{... | 23.677419 | 84 | 0.700272 |
85854bee31042470f3a0bb7c3c716a700053135d | 2,407 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/backend_rule.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/backend_rule.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/backend_rule.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 40.116667 | 194 | 0.734109 |
85855fbc9e4fa4cc7d6045ce7b1020372c957380 | 720 | ex | Elixir | lib/proxir/application.ex | troelsim/proxir | fc897bc4ce551a92cba68caedf8f7debe1e90df9 | [
"Apache-2.0"
] | null | null | null | lib/proxir/application.ex | troelsim/proxir | fc897bc4ce551a92cba68caedf8f7debe1e90df9 | [
"Apache-2.0"
] | null | null | null | lib/proxir/application.ex | troelsim/proxir | fc897bc4ce551a92cba68caedf8f7debe1e90df9 | [
"Apache-2.0"
] | null | null | null | defmodule Proxir.Application do
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
use Application
def start(_type, [port: port, host: host, remote_port: remote_port]) do
import Supervisor.Spec, warn: false
children = [
supervisor(Proxir.... | 34.285714 | 104 | 0.690278 |
858570686e9274d31430d9b12e8687b0d5df6157 | 1,030 | ex | Elixir | lib/pxblog.ex | Ellocsys/kedo | 81626082952bfc63c382d015cffaa1ebd80e1f67 | [
"MIT"
] | 1 | 2016-10-07T14:36:21.000Z | 2016-10-07T14:36:21.000Z | lib/pxblog.ex | jgunnink/phoenix_blog | 15017cdbca1da3ef5338c819b265cca3997aebe5 | [
"MIT"
] | null | null | null | lib/pxblog.ex | jgunnink/phoenix_blog | 15017cdbca1da3ef5338c819b265cca3997aebe5 | [
"MIT"
] | null | null | null | defmodule Pxblog do
use Application
# See http://elixir-lang.org/docs/stable/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 Ecto repository
... | 32.1875 | 84 | 0.71068 |
8585785072da7a80ea3d218e02030ba8bda28662 | 3,760 | exs | Elixir | test/skeleton/exceptions/definetype_test.exs | haskric/map_schema | 615d6428e168a0d3991d334cba76c2d8e5c417b6 | [
"MIT"
] | 3 | 2020-12-15T09:04:57.000Z | 2021-06-11T02:01:09.000Z | test/skeleton/exceptions/definetype_test.exs | haskric/map_schema | 615d6428e168a0d3991d334cba76c2d8e5c417b6 | [
"MIT"
] | null | null | null | test/skeleton/exceptions/definetype_test.exs | haskric/map_schema | 615d6428e168a0d3991d334cba76c2d8e5c417b6 | [
"MIT"
] | null | null | null | defmodule MapSchema.DefineTypeTest do
@moduledoc false
use ExUnit.Case
alias MapSchema.Exceptions
test "Define type_name with less 3 lenght" do
try do
defmodule ShortTypeName do
@moduledoc false
use MapSchema,
type_name: "1",
schema: %{
"field" => :str... | 23.209877 | 94 | 0.55984 |
858582c44afb7deebda0c6e48eea65049a789670 | 395 | exs | Elixir | test/gorpo_test.exs | dgvncsz0f/exul | ce989851d8237f38a422c16122ca0affa17f9a3b | [
"BSD-2-Clause"
] | 3 | 2017-01-06T03:28:00.000Z | 2022-01-04T01:10:13.000Z | test/gorpo_test.exs | dgvncsz0f/exul | ce989851d8237f38a422c16122ca0affa17f9a3b | [
"BSD-2-Clause"
] | 2 | 2017-11-28T17:13:33.000Z | 2017-11-28T19:54:28.000Z | test/gorpo_test.exs | dgvncsz0f/exul | ce989851d8237f38a422c16122ca0affa17f9a3b | [
"BSD-2-Clause"
] | 1 | 2017-11-28T14:20:33.000Z | 2017-11-28T14:20:33.000Z | defmodule GorpoTest do
use ExUnit.Case, async: true
test "application gets started" do
apps = Application.started_applications
|> Enum.map(fn {k, _, _} -> k end)
|> Enum.filter(& &1 == :gorpo)
assert [:gorpo] == apps
end
test "gorpo.announce is running" do
assert Process.alive?(Process.whe... | 23.235294 | 58 | 0.670886 |
85858f6818ccf533599644f38ba09bc2edf96b57 | 3,368 | exs | Elixir | exercises/queen-attack/test/queen_attack_test.exs | filalex77/exercism-elixir | df6beeea3fe8b003a0f761aa3f02b66a8a5e83ff | [
"MIT"
] | null | null | null | exercises/queen-attack/test/queen_attack_test.exs | filalex77/exercism-elixir | df6beeea3fe8b003a0f761aa3f02b66a8a5e83ff | [
"MIT"
] | null | null | null | exercises/queen-attack/test/queen_attack_test.exs | filalex77/exercism-elixir | df6beeea3fe8b003a0f761aa3f02b66a8a5e83ff | [
"MIT"
] | null | null | null | defmodule QueenAttackTest do
use ExUnit.Case
# @tag :pending
test "default positions" do
queens = Queens.new()
assert queens.white == {0, 3}
assert queens.black == {7, 3}
end
@tag :pending
test "specific placement" do
queens = Queens.new({3, 7}, {6, 1})
assert queens.white == {3, 7}
... | 20.790123 | 58 | 0.538599 |
8585e02b6bdf6d85752eddd9abbde084c82d499e | 8,316 | exs | Elixir | spec/membrane/core/input_buffer_spec.exs | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | null | null | null | spec/membrane/core/input_buffer_spec.exs | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | null | null | null | spec/membrane/core/input_buffer_spec.exs | eboskma/membrane_core | e216994fe1ba99c5d228a4b0959faa5fabb13b1c | [
"Apache-2.0"
] | null | null | null | defmodule Membrane.Core.InputBufferSpec do
use ESpec, async: true
alias Membrane.Buffer
alias Membrane.Core.{InputBuffer, Message}
alias Membrane.Testing.Event
require Message
def flush do
receive do
_ -> flush()
after
10 -> nil
end
end
describe ".init/6" do
let :log_tag,... | 27.812709 | 96 | 0.550024 |
8585f5c5c65bfa7449040e6abd414528a2fa62e9 | 23,236 | ex | Elixir | deps/ecto/lib/ecto/query/planner.ex | Thrashmandicoot/my-first-phoenix-app | 7cdfe34a1d874cbce8dba17e9824a5c91e3b47da | [
"MIT"
] | 1 | 2015-08-24T06:01:51.000Z | 2015-08-24T06:01:51.000Z | deps/ecto/lib/ecto/query/planner.ex | Thrashmandicoot/my-first-phoenix-app | 7cdfe34a1d874cbce8dba17e9824a5c91e3b47da | [
"MIT"
] | null | null | null | deps/ecto/lib/ecto/query/planner.ex | Thrashmandicoot/my-first-phoenix-app | 7cdfe34a1d874cbce8dba17e9824a5c91e3b47da | [
"MIT"
] | null | null | null | defmodule Ecto.Query.Planner do
# Normalizes a query and its parameters.
@moduledoc false
alias Ecto.Query.SelectExpr
alias Ecto.Query.JoinExpr
if map_size(%Ecto.Query{}) != 17 do
raise "Ecto.Query match out of date in builder"
end
@doc """
Validates and cast the given fields belonging to the giv... | 33.052632 | 102 | 0.620847 |
8585f8cb46581e5171378e1cfeab77df714d937a | 2,025 | ex | Elixir | lib/ex_aws/cloudwatch/parsers.ex | Frameio/ex_aws | 3b335b6ed7932b5cf991323d26cf5497e1e6c122 | [
"Unlicense",
"MIT"
] | null | null | null | lib/ex_aws/cloudwatch/parsers.ex | Frameio/ex_aws | 3b335b6ed7932b5cf991323d26cf5497e1e6c122 | [
"Unlicense",
"MIT"
] | null | null | null | lib/ex_aws/cloudwatch/parsers.ex | Frameio/ex_aws | 3b335b6ed7932b5cf991323d26cf5497e1e6c122 | [
"Unlicense",
"MIT"
] | null | null | null | if Code.ensure_loaded?(SweetXml) do
defmodule ExAws.Cloudwatch.Parsers do
use ExAws.Operation.Query.Parser
def parse({:ok, %{body: xml}=resp}, :describe_alarms) do
parsed_body = xml
|> SweetXml.xpath(~x"//DescribeAlarmsResponse",
alarms: alarm_xml_description(),
next_tok... | 36.818182 | 96 | 0.626173 |
85860f3dc0e3d466564e0277e3ef46ceae338eb2 | 27,647 | exs | Elixir | lib/mix/test/mix/tasks/deps_test.exs | gordalina/elixir | 9c99bc28a39ec289dc5602d6022586cdd844c736 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/deps_test.exs | gordalina/elixir | 9c99bc28a39ec289dc5602d6022586cdd844c736 | [
"Apache-2.0"
] | null | null | null | lib/mix/test/mix/tasks/deps_test.exs | gordalina/elixir | 9c99bc28a39ec289dc5602d6022586cdd844c736 | [
"Apache-2.0"
] | null | null | null | Code.require_file("../../test_helper.exs", __DIR__)
defmodule Mix.Tasks.DepsTest do
use MixTest.Case
defmodule DepsApp do
def project do
[
app: :deps,
version: "0.1.0",
deps: [
{:ok, "0.1.0", github: "elixir-lang/ok"},
{:invalidvsn, "0.2.0", path: "deps/invali... | 29.568984 | 133 | 0.606286 |
85869fd31af9135325c07e1c1a6b6242d5200651 | 1,624 | ex | Elixir | clients/page_speed_online/lib/google_api/page_speed_online/v5/model/pagespeed_version.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/page_speed_online/lib/google_api/page_speed_online/v5/model/pagespeed_version.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/page_speed_online/lib/google_api/page_speed_online/v5/model/pagespeed_version.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... | 32.48 | 124 | 0.728448 |
8586dfe11488d9a1114a66c30922cf13de23c49a | 985 | exs | Elixir | db_server/test/db_server_web/schema/news_feed_schema_test.exs | Graveyardillon/db_server | ce5a5884d7d1f0eacb3c5cc27066203424594cf4 | [
"MIT"
] | null | null | null | db_server/test/db_server_web/schema/news_feed_schema_test.exs | Graveyardillon/db_server | ce5a5884d7d1f0eacb3c5cc27066203424594cf4 | [
"MIT"
] | null | null | null | db_server/test/db_server_web/schema/news_feed_schema_test.exs | Graveyardillon/db_server | ce5a5884d7d1f0eacb3c5cc27066203424594cf4 | [
"MIT"
] | null | null | null | defmodule DbServerWeb.NewsFeedSchemaTest do
use ExUnit.Case, async: true
use DbServer.DataCase
use DbServer.AroundRepo
# The news feed is addressed by only admins.
describe "news feed schema test." do
@insert_params %{
title: "test_title",
image_path: "~/Documents",
text: "This is a ne... | 28.142857 | 89 | 0.664975 |
858706bc00eb0212043e2b2bf4807a1e6710bb63 | 2,636 | exs | Elixir | test/credo/check/readability/space_after_commas_test.exs | elixir-twister/credo | 619e0ec6e244c5e0c12eeeb58ed9de97e1571d99 | [
"MIT"
] | null | null | null | test/credo/check/readability/space_after_commas_test.exs | elixir-twister/credo | 619e0ec6e244c5e0c12eeeb58ed9de97e1571d99 | [
"MIT"
] | null | null | null | test/credo/check/readability/space_after_commas_test.exs | elixir-twister/credo | 619e0ec6e244c5e0c12eeeb58ed9de97e1571d99 | [
"MIT"
] | null | null | null | defmodule Credo.Check.Readability.SpaceAfterCommasTest do
use Credo.TestHelper
@described_check Credo.Check.Readability.SpaceAfterCommas
#
# cases NOT raising issues
#
test "it should NOT report when commas have spaces" do
"""
# comments should not matter [[[,]]]
defmodule CredoSampleModule do
@attribu... | 22.151261 | 82 | 0.669575 |
8587162af0baa3289664f7bf1a5ae047c54017d5 | 144 | ex | Elixir | web/controllers/page_controller.ex | Angarsk8/microscope.ex | dc4572ba8b9f1c7b7c94ee78f387e332ac0d936c | [
"MIT"
] | 342 | 2017-01-10T16:13:45.000Z | 2022-02-26T13:55:38.000Z | web/controllers/page_controller.ex | Angarsk8/microscope.ex | dc4572ba8b9f1c7b7c94ee78f387e332ac0d936c | [
"MIT"
] | 6 | 2017-01-14T17:59:48.000Z | 2018-03-25T21:35:50.000Z | web/controllers/page_controller.ex | Angarsk8/microscope.ex | dc4572ba8b9f1c7b7c94ee78f387e332ac0d936c | [
"MIT"
] | 38 | 2017-01-11T00:18:21.000Z | 2021-07-11T11:28:12.000Z | defmodule Microscope.PageController do
use Microscope.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 18 | 38 | 0.743056 |
858743ac5081ab1572bd645085c3a91e5b311b3f | 5,749 | ex | Elixir | lib/logger_file_backend_with_formatters.ex | fremantle-capital/logger_file_backend_with_formatters | 0ee15df9fa3dc838f99c89f6a0474f339fa1c9fa | [
"MIT"
] | null | null | null | lib/logger_file_backend_with_formatters.ex | fremantle-capital/logger_file_backend_with_formatters | 0ee15df9fa3dc838f99c89f6a0474f339fa1c9fa | [
"MIT"
] | null | null | null | lib/logger_file_backend_with_formatters.ex | fremantle-capital/logger_file_backend_with_formatters | 0ee15df9fa3dc838f99c89f6a0474f339fa1c9fa | [
"MIT"
] | 1 | 2019-02-23T19:13:15.000Z | 2019-02-23T19:13:15.000Z | defmodule LoggerFileBackendWithFormatters do
@moduledoc """
"""
defmodule State do
defstruct ~w(format formatter inode io_device level metadata metadata_filter name path rotate)a
end
@behaviour :gen_event
@type path :: String.t()
@type file :: :file.io_device()
@type inode :: File.Stat.t()
@typ... | 26.251142 | 99 | 0.594886 |
85877ecee863910109ef3abb3eff86a1458fdf80 | 416 | ex | Elixir | lib/dailymeal/users/get_meals.ex | LuizFerK/DailyMealRelations | 57f9cc60bf263267fb8c5a3da8e25e86a0e0aca4 | [
"MIT"
] | null | null | null | lib/dailymeal/users/get_meals.ex | LuizFerK/DailyMealRelations | 57f9cc60bf263267fb8c5a3da8e25e86a0e0aca4 | [
"MIT"
] | null | null | null | lib/dailymeal/users/get_meals.ex | LuizFerK/DailyMealRelations | 57f9cc60bf263267fb8c5a3da8e25e86a0e0aca4 | [
"MIT"
] | null | null | null | defmodule Dailymeal.Users.GetMeals do
import Ecto.Query
alias Dailymeal.{Error, Meal, Repo}
def by_id(id) do
query = from meal in Meal, where: meal.user_id in ^[id]
query
|> Repo.all()
|> handle_get()
end
defp handle_get([]) do
{:error, Error.build(:not_found, "User does not exist or h... | 20.8 | 77 | 0.646635 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.