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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ac9ebaa0d6234923fc28801c7675814320644f08 | 7,508 | ex | Elixir | lib/ex_unit/lib/ex_unit/case.ex | carlosantoniodasilva/elixir | 0b7d1c9d4964cd6699b72298294844d8d7d694b5 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/case.ex | carlosantoniodasilva/elixir | 0b7d1c9d4964cd6699b72298294844d8d7d694b5 | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/case.ex | carlosantoniodasilva/elixir | 0b7d1c9d4964cd6699b72298294844d8d7d694b5 | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit.Case do
@moduledoc """
Sets up an ExUnit test case.
This module must be used in other modules as a way to configure
and prepare them for testing.
When used, it accepts the following options:
* :async - configure Elixir to run that specific test case in parallel with
others. Must ... | 28.547529 | 83 | 0.65317 |
ac9ec1794914bc5a569cd9e2dbf963760ef32970 | 1,072 | ex | Elixir | lib/set_1/challenge_3.ex | djquan/cryptopals-elixir | a38722a2d66c1000795b361c61a330ff44e755c6 | [
"MIT"
] | 3 | 2016-08-21T21:19:25.000Z | 2019-10-11T14:00:15.000Z | lib/set_1/challenge_3.ex | djquan/cryptopals-elixir | a38722a2d66c1000795b361c61a330ff44e755c6 | [
"MIT"
] | null | null | null | lib/set_1/challenge_3.ex | djquan/cryptopals-elixir | a38722a2d66c1000795b361c61a330ff44e755c6 | [
"MIT"
] | 2 | 2016-01-19T06:22:38.000Z | 2019-10-11T13:38:46.000Z | defmodule SetOne.ChallengeThree do
use Bitwise
@doc """
Decodes a given ciphertext that was encrypted with a single byte.
Iterates over every possible single byte cipher and tries XORing them.
Calculates a score based on letter frequency and returns a tuple with the highest score/plaintext
http://cryptopal... | 33.5 | 99 | 0.702425 |
ac9ec75504a99072bdb7c4a3f79093688686416e | 347 | exs | Elixir | priv/repo/migrations/20190925232123_create_orders.exs | mcrumm/mystex_pizza_on_broadway | 14d79c97086e55bf97464a41fef02e9e8e9d771f | [
"Apache-2.0"
] | 18 | 2019-10-16T23:08:37.000Z | 2021-11-17T10:46:20.000Z | priv/repo/migrations/20190925232123_create_orders.exs | okariFrankline/pizza_broadway | 8d95f25c890e8f64aa97107c96e568304caf78df | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20190925232123_create_orders.exs | okariFrankline/pizza_broadway | 8d95f25c890e8f64aa97107c96e568304caf78df | [
"Apache-2.0"
] | 4 | 2019-10-16T23:07:16.000Z | 2022-01-19T18:01:19.000Z | defmodule MystexPizza.Repo.Migrations.CreateOrders do
use Ecto.Migration
def change do
create table(:orders, primary_key: false) do
add :id, :string, primary_key: true
add :customer_id, references(:customers, type: :string)
add :amount, :integer, null: false
timestamps(type: :utc_dateti... | 26.692308 | 61 | 0.70317 |
ac9ed37328e819868de0b0854627591cf75335ef | 2,307 | ex | Elixir | lib/maxwell/adapter/hackney.ex | zhongwencool/maxwell | 0b04ec5d1aafedbeb00a4ec3e683c9b2216b7349 | [
"MIT"
] | 130 | 2016-03-24T02:48:26.000Z | 2021-04-10T19:29:06.000Z | lib/maxwell/adapter/hackney.ex | zhongwencool/maxwell | 0b04ec5d1aafedbeb00a4ec3e683c9b2216b7349 | [
"MIT"
] | 78 | 2016-06-28T06:33:01.000Z | 2021-12-15T01:37:54.000Z | lib/maxwell/adapter/hackney.ex | zhongwencool/maxwell | 0b04ec5d1aafedbeb00a4ec3e683c9b2216b7349 | [
"MIT"
] | 24 | 2016-04-09T16:44:19.000Z | 2020-12-01T10:57:22.000Z | if Code.ensure_loaded?(:hackney) do
defmodule Maxwell.Adapter.Hackney do
@moduledoc """
[`hackney`](https://github.com/benoitc/hackney) adapter
"""
use Maxwell.Adapter
@impl true
def send_direct(conn) do
%Conn{
url: url,
req_headers: req_headers,
path: path,
... | 27.464286 | 85 | 0.592111 |
ac9ede8ccde37becbc40fc9f0c50232ab24a46e2 | 673 | ex | Elixir | test_templates/project/template/$PROJECT_NAME$/lib/$PROJECT_NAME$/application.ex | mbramson/mix_generator | d0283fc43c3f873c370cdcd1939f18014da37528 | [
"Apache-2.0"
] | 123 | 2017-04-10T22:20:47.000Z | 2022-02-28T00:02:25.000Z | test_templates/project/template/$PROJECT_NAME$/lib/$PROJECT_NAME$/application.ex | grahamhay/mix_generator | cb5c60a94542fe0688f7fa10c8a2100c4d1cbf49 | [
"Apache-2.0"
] | 9 | 2017-04-20T06:57:47.000Z | 2021-01-21T19:49:08.000Z | test_templates/project/template/$PROJECT_NAME$/lib/$PROJECT_NAME$/application.ex | grahamhay/mix_generator | cb5c60a94542fe0688f7fa10c8a2100c4d1cbf49 | [
"Apache-2.0"
] | 17 | 2017-04-28T13:16:59.000Z | 2020-08-29T13:32:39.000Z | <%
# ------------------------------------------------------------
MixTemplates.ignore_file_and_directory_unless @is_supervisor?
# ------------------------------------------------------------
%>
defmodule <%= @project_name_camel_case %>.Application do
@moduledoc false
use Application # See http://elixir-... | 24.925926 | 84 | 0.539376 |
ac9eefe90f289ff7298a07d9b08b3165bada73e1 | 3,201 | ex | Elixir | lib/koans/03_numbers.ex | p-sdk/elixir-koans | 37b88051968140c2a24ab920824cb0276d1f61e9 | [
"MIT"
] | null | null | null | lib/koans/03_numbers.ex | p-sdk/elixir-koans | 37b88051968140c2a24ab920824cb0276d1f61e9 | [
"MIT"
] | null | null | null | lib/koans/03_numbers.ex | p-sdk/elixir-koans | 37b88051968140c2a24ab920824cb0276d1f61e9 | [
"MIT"
] | null | null | null | defmodule Numbers do
require Integer
use Koans
@intro "Why is the number six so scared? Because seven eight nine!\nWe should get to know numbers a bit more!"
koan "Is an integer equal to its float equivalent?" do
assert 1 == 1.0 == true
end
koan "Is an integer threequal to its float equivalent?" do
... | 23.88806 | 112 | 0.635114 |
ac9efbfb6d497870f2886fbb4618fea27a951f5a | 929 | ex | Elixir | apps/toniefy/lib/toniex/waitlist/entry.ex | benvp/toniefy.me | 9a432380e43f1c9a15ccd1910357d491d64a1dc0 | [
"MIT"
] | 17 | 2021-04-12T10:01:14.000Z | 2022-02-25T17:30:27.000Z | apps/toniefy/lib/toniex/waitlist/entry.ex | benvp/toniefy.me | 9a432380e43f1c9a15ccd1910357d491d64a1dc0 | [
"MIT"
] | 1 | 2022-03-09T09:35:00.000Z | 2022-03-09T11:46:14.000Z | apps/toniefy/lib/toniex/waitlist/entry.ex | benvp/toniefy | 9a432380e43f1c9a15ccd1910357d491d64a1dc0 | [
"MIT"
] | null | null | null | defmodule Toniex.Waitlist.Entry do
use Ecto.Schema
import Ecto.Changeset
@type t :: %__MODULE__{
id: integer(),
email: binary()
}
schema "waitlist_entries" do
field :email, :string
field :invite_code, :string
timestamps(type: :utc_datetime)
end
def changeset(entr... | 22.119048 | 79 | 0.635091 |
ac9f36ea6a4b10f3c760f6ad5bd27ef4618c5db3 | 532 | exs | Elixir | test/helpers_test.exs | mrapacz/latinizer | 7cf8a78e444d133cdaa143e21fcc45f6ff38a912 | [
"MIT"
] | 8 | 2017-11-18T10:17:13.000Z | 2021-04-13T19:32:18.000Z | test/helpers_test.exs | mrapacz/latinizer | 7cf8a78e444d133cdaa143e21fcc45f6ff38a912 | [
"MIT"
] | null | null | null | test/helpers_test.exs | mrapacz/latinizer | 7cf8a78e444d133cdaa143e21fcc45f6ff38a912 | [
"MIT"
] | null | null | null | defmodule HelpersTest do
use ExUnit.Case
alias Latinizer.Helpers
test "map_string should map characters correctly" do
assert Helpers.map_string("abcdef", fn _ -> "a" end) == "aaaaaa"
end
test "map_or_leave_unchanged should replace characters when present in the map" do
assert Helpers.map_or_leave_u... | 29.555556 | 99 | 0.718045 |
ac9f6d59a2d6270c60c3b9e4abc8a56ef7933217 | 529 | ex | Elixir | lib/telegex/marked/parser.ex | Hentioe/telegex_mark | 5c289404cff2c3f8ff4ef1157196886f5b81398c | [
"MIT"
] | 1 | 2020-07-13T00:07:19.000Z | 2020-07-13T00:07:19.000Z | lib/telegex/marked/parser.ex | Hentioe/telegex_mark | 5c289404cff2c3f8ff4ef1157196886f5b81398c | [
"MIT"
] | 12 | 2020-07-10T21:20:35.000Z | 2020-07-26T02:19:51.000Z | lib/telegex/marked/parser.ex | Hentioe/telegex_mark | 5c289404cff2c3f8ff4ef1157196886f5b81398c | [
"MIT"
] | null | null | null | defmodule Telegex.Marked.Parser do
@moduledoc """
Markdown parsing implementation.
"""
defmacro __using__(_) do
quote do
alias Telegex.Marked.Node
alias Telegex.Marked.{InlineState, BlockState}
import Telegex.Marked.Node
end
end
alias Telegex.Marked.BlockParser
@doc """
Con... | 21.16 | 65 | 0.68431 |
ac9f71fbdd7ba4e017bf3476d6d3e549b301310d | 2,710 | ex | Elixir | example_applications/web_app/lib/web_app/prom_ex.ex | mrjoelkemp/prom_ex | 69cbd7116c3a4f195bb913d500f2fa10af884070 | [
"MIT"
] | null | null | null | example_applications/web_app/lib/web_app/prom_ex.ex | mrjoelkemp/prom_ex | 69cbd7116c3a4f195bb913d500f2fa10af884070 | [
"MIT"
] | null | null | null | example_applications/web_app/lib/web_app/prom_ex.ex | mrjoelkemp/prom_ex | 69cbd7116c3a4f195bb913d500f2fa10af884070 | [
"MIT"
] | null | null | null | defmodule WebApp.PromEx do
@moduledoc """
Be sure to add the following to finish setting up PromEx:
1. Update your configuration (config.exs, dev.exs, prod.exs, releases.exs, etc) to
configure the necessary bit of PromEx. Be sure to check out `PromEx.Config` for
more details regarding configuring PromE... | 29.456522 | 91 | 0.652399 |
ac9f97c82e1cdff425abb995690ec0b510656ce6 | 15,285 | ex | Elixir | lib/elixir/lib/version.ex | fishcakez/elixir | 1b8ab9ae0b28ddbbb867a85f86fcdaa15ef522a0 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/version.ex | fishcakez/elixir | 1b8ab9ae0b28ddbbb867a85f86fcdaa15ef522a0 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/version.ex | fishcakez/elixir | 1b8ab9ae0b28ddbbb867a85f86fcdaa15ef522a0 | [
"Apache-2.0"
] | null | null | null | defmodule Version do
@moduledoc %S"""
Functions for parsing and matching versions against requirements.
A version is a string in a specific format or a `Version.Schema`
generated after parsing via `Version.parse/1`.
`Version` parsing and requirements follow
[SemVer 2.0 schema](http://semver.org/) and you ... | 28.731203 | 121 | 0.521688 |
ac9fac750b32768bbf861abfe5210d742c96198c | 2,820 | exs | Elixir | mix.exs | karabiner-inc/materia_file_transfer | d72f11d97a4ac87362225558aaf88909c9a10c64 | [
"Apache-2.0"
] | null | null | null | mix.exs | karabiner-inc/materia_file_transfer | d72f11d97a4ac87362225558aaf88909c9a10c64 | [
"Apache-2.0"
] | null | null | null | mix.exs | karabiner-inc/materia_file_transfer | d72f11d97a4ac87362225558aaf88909c9a10c64 | [
"Apache-2.0"
] | null | null | null | defmodule MateriaFileTransfer.Mixfile do
use Mix.Project
def project do
[
app: :materia_file_transfer,
version: "0.1.0",
elixir: "~> 1.6",
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [coveralls: :test, "coveralls.detail": :test, "coveralls.post": :test, "coveralls.html"... | 30.652174 | 121 | 0.569504 |
ac9fd2287b7568616fc2a3b448c33421e0c76afc | 1,154 | ex | Elixir | lib/central_web/controllers/logging/report_controller.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | lib/central_web/controllers/logging/report_controller.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/central_web/controllers/logging/report_controller.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule CentralWeb.Logging.ReportController do
use CentralWeb, :controller
plug :add_breadcrumb, name: 'Logging', url: '/logging'
plug :add_breadcrumb, name: 'Reports', url: '/logging/reports'
plug AssignPlug,
sidemenu_active: "logging"
plug Bodyguard.Plug.Authorize,
policy: Central.Logging.Loggi... | 25.644444 | 69 | 0.634315 |
aca020a19457ba0e1a1b6f42ab55602295981d3f | 3,660 | exs | Elixir | phoenix/test/mehr_schulferien_web/controllers/school_controller_test.exs | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | phoenix/test/mehr_schulferien_web/controllers/school_controller_test.exs | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | phoenix/test/mehr_schulferien_web/controllers/school_controller_test.exs | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | defmodule MehrSchulferienWeb.SchoolControllerTest do
use MehrSchulferienWeb.ConnCase
alias MehrSchulferien.Locations
@create_attrs %{address_city: "some address_city", address_line1: "some address_line1", address_line2: "some address_line2", address_street: "some address_street", address_zip_code: "some address... | 41.123596 | 472 | 0.700546 |
aca02b5b8c25473c789bbacc9fe49e9a3ea7a8d8 | 6,984 | ex | Elixir | lib/mix/tasks/hex.registry.ex | rafapaez/hex | 202307196331812ebea0026afeb63a793ab14451 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/hex.registry.ex | rafapaez/hex | 202307196331812ebea0026afeb63a793ab14451 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/hex.registry.ex | rafapaez/hex | 202307196331812ebea0026afeb63a793ab14451 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Hex.Registry do
use Mix.Task
@behaviour Hex.Mix.TaskDescription
@switches [
name: :string,
private_key: :string
]
@shortdoc "Manages local Hex registries"
@moduledoc """
Manages local Hex registries.
## Build a local registry
mix hex.registry build PUBLIC_DIR
To... | 27.28125 | 125 | 0.647623 |
aca02c5f59a5ea20aa9cecbf535e9d660bdc16a6 | 1,519 | exs | Elixir | config/dev.exs | matt-mazzucato/astarte_flow | e8644b5a27edf325977f5bced9a919f20e289ee2 | [
"Apache-2.0"
] | null | null | null | config/dev.exs | matt-mazzucato/astarte_flow | e8644b5a27edf325977f5bced9a919f20e289ee2 | [
"Apache-2.0"
] | null | null | null | config/dev.exs | matt-mazzucato/astarte_flow | e8644b5a27edf325977f5bced9a919f20e289ee2 | [
"Apache-2.0"
] | null | null | null | #
# This file is part of Astarte.
#
# Copyright 2019 Ispirata 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 appl... | 30.38 | 74 | 0.750494 |
aca040cafb58be3dc31141cd87defd50aeffa52a | 844 | ex | Elixir | lib/co2_offset/converters/car.ex | styx/co2_offset | ac4b2bce8142e2d33ea089322c8dade34839448b | [
"Apache-2.0"
] | 15 | 2018-12-26T10:31:16.000Z | 2020-12-01T09:27:01.000Z | lib/co2_offset/converters/car.ex | styx/co2_offset | ac4b2bce8142e2d33ea089322c8dade34839448b | [
"Apache-2.0"
] | 267 | 2018-12-26T07:46:17.000Z | 2020-04-04T17:05:47.000Z | lib/co2_offset/converters/car.ex | styx/co2_offset | ac4b2bce8142e2d33ea089322c8dade34839448b | [
"Apache-2.0"
] | 1 | 2019-07-12T13:53:25.000Z | 2019-07-12T13:53:25.000Z | defmodule Co2Offset.Converters.Car do
@moduledoc """
Converter CO2 <-> KM for cars
"""
@co2_per_km 0.132
@spec convert_and_structure(%{optional(any) => any, co2: co2}) :: %{
optional(any) => any,
co2: co2,
car: %{km: float()}
}
when co2: float
def convert_and_... | 23.444444 | 70 | 0.603081 |
aca043073d848815dfbd8a3bbb83cdbcb03aac8e | 2,314 | ex | Elixir | clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1beta1_common_metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1beta1_common_metadata.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/datastore/lib/google_api/datastore/v1/model/google_datastore_admin_v1beta1_common_metadata.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... | 37.934426 | 167 | 0.713483 |
aca0432df6e51834d1e95d328c0e583664bf0f4d | 1,312 | exs | Elixir | programming-phoenix/rumbl/config/dev.exs | josiah14/elixir-exploration | c16f1eedbe0f223964df2bd51e0889be266f3b3a | [
"MIT"
] | null | null | null | programming-phoenix/rumbl/config/dev.exs | josiah14/elixir-exploration | c16f1eedbe0f223964df2bd51e0889be266f3b3a | [
"MIT"
] | null | null | null | programming-phoenix/rumbl/config/dev.exs | josiah14/elixir-exploration | c16f1eedbe0f223964df2bd51e0889be266f3b3a | [
"MIT"
] | null | null | null | use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :rumbl, Rumbl.Endpoint,
http: [port: System.ge... | 29.818182 | 73 | 0.689787 |
aca052cb2d695f80357039879e7e8698c2fd0437 | 1,514 | ex | Elixir | apps/twitter/lib/twitter.ex | glv/revista | 00ecb0780c62a5525155a773b959b169e0e0500d | [
"MIT"
] | 17 | 2019-01-31T18:33:09.000Z | 2022-01-18T12:38:49.000Z | apps/twitter/lib/twitter.ex | glv/revista | 00ecb0780c62a5525155a773b959b169e0e0500d | [
"MIT"
] | null | null | null | apps/twitter/lib/twitter.ex | glv/revista | 00ecb0780c62a5525155a773b959b169e0e0500d | [
"MIT"
] | 4 | 2018-11-10T01:56:17.000Z | 2020-06-09T21:10:41.000Z | defmodule Twitter 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 Twitter, :controller
use Twitter, :view
The definitions below will be executed for every view,
controller, etc, so k... | 22.939394 | 83 | 0.684941 |
aca05bbc9175a73c6016d262b6b527346b8b95e3 | 4,513 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/auth_provider.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/auth_provider.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/auth_provider.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... | 72.790323 | 747 | 0.747396 |
aca069bc04c62304147bb08c7bf471dac3a06e97 | 2,141 | exs | Elixir | test/controllers/division_controller_test.exs | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | 2 | 2016-11-16T17:24:21.000Z | 2019-02-15T05:38:27.000Z | test/controllers/division_controller_test.exs | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | test/controllers/division_controller_test.exs | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | defmodule Tox.DivisionControllerTest do
use Tox.ConnCase
alias Tox.Division
@valid_attrs %{name: "some content"}
@invalid_attrs %{}
setup %{conn: conn} do
{:ok, conn: put_req_header(conn, "accept", "application/json")}
end
test "lists all entries on index", %{conn: conn} do
conn = get conn, div... | 35.098361 | 98 | 0.679589 |
aca06cc3fc3f15166c2e8cb01ff136bb8a331189 | 2,314 | ex | Elixir | lib/jsonrpc2/clients/tcp/protocol.ex | fanduel/jsonrpc2-elixir | 9b6f5c6472fa66885d7385e60d0b2f64c0e42e09 | [
"Apache-2.0"
] | 49 | 2016-07-14T01:12:59.000Z | 2022-03-22T02:13:50.000Z | lib/jsonrpc2/clients/tcp/protocol.ex | fanduel/jsonrpc2-elixir | 9b6f5c6472fa66885d7385e60d0b2f64c0e42e09 | [
"Apache-2.0"
] | 18 | 2016-09-02T18:08:37.000Z | 2021-06-10T21:28:11.000Z | lib/jsonrpc2/clients/tcp/protocol.ex | fanduel/jsonrpc2-elixir | 9b6f5c6472fa66885d7385e60d0b2f64c0e42e09 | [
"Apache-2.0"
] | 26 | 2016-09-07T21:46:16.000Z | 2021-10-09T13:52:16.000Z | defmodule JSONRPC2.Clients.TCP.Protocol do
@moduledoc false
if Code.ensure_loaded?(:shackle_client) do
@behaviour :shackle_client
end
require Logger
def init do
serializer = Application.get_env(:jsonrpc2, :serializer)
{:ok, %{request_counter: 0, serializer: serializer}}
end
def setup(_sock... | 24.104167 | 94 | 0.639153 |
aca0a40adb787e4f040b573f79f9d678cdbddfa4 | 883 | ex | Elixir | lib/hexa/h3_utils.ex | libreearth/hexa | 81938c3a5abc710eb16055d73c43cbf60dbf487e | [
"MIT"
] | null | null | null | lib/hexa/h3_utils.ex | libreearth/hexa | 81938c3a5abc710eb16055d73c43cbf60dbf487e | [
"MIT"
] | null | null | null | lib/hexa/h3_utils.ex | libreearth/hexa | 81938c3a5abc710eb16055d73c43cbf60dbf487e | [
"MIT"
] | null | null | null | defmodule Hexa.H3Utils do
def latlon_to_h3(%{"lat" => nil, "lon" => nil}, _level) do
nil
end
def latlon_to_h3(%{"lat" => lat, "lon" => lon}, level) do
:h3.from_geo({lat, lon}, level) |> Integer.to_string(16)
end
def exif_to_h3(%Exexif.Data.Gps{gps_latitude: nil, gps_latitude_ref: nil, gps_longitude... | 29.433333 | 170 | 0.653454 |
aca0bac7f7cec5abb227a5a410deb9c6d3547662 | 658 | exs | Elixir | priv/repo/migrations/20170425215620_create_ship.exs | lee-dohm/ship-designer | 641b6f44aa5efc676ee3f9251618eeafb2b89bad | [
"MIT"
] | 1 | 2020-01-26T18:06:25.000Z | 2020-01-26T18:06:25.000Z | priv/repo/migrations/20170425215620_create_ship.exs | lee-dohm/ship-designer | 641b6f44aa5efc676ee3f9251618eeafb2b89bad | [
"MIT"
] | null | null | null | priv/repo/migrations/20170425215620_create_ship.exs | lee-dohm/ship-designer | 641b6f44aa5efc676ee3f9251618eeafb2b89bad | [
"MIT"
] | null | null | null | defmodule ShipDesigner.Repo.Migrations.CreateShip do
use Ecto.Migration
def change do
create table(:ships, primary_key: false) do
add :id, :binary_id, primary_key: true
add :name, :string
add :manufacturer, :string
add :length, :float
add :width, :float
add :height, :float
... | 23.5 | 52 | 0.62462 |
aca0e186961f6c741ee6a37605792e23574017a7 | 119,773 | ex | Elixir | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/api/projects.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/api/projects.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/api/projects.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... | 49.574917 | 775 | 0.635177 |
aca11f4c180f3d43f36cb505c3fdf4cd381d497c | 835 | ex | Elixir | lib/blue_heron/att/requests/find_by_type_value_request.ex | amclain/blue_heron | e1802097ef6a845e28a8be56076f3b81ebb56206 | [
"Apache-2.0"
] | 45 | 2020-10-17T13:34:15.000Z | 2022-03-08T09:40:43.000Z | lib/blue_heron/att/requests/find_by_type_value_request.ex | amclain/blue_heron | e1802097ef6a845e28a8be56076f3b81ebb56206 | [
"Apache-2.0"
] | 20 | 2020-10-15T15:05:54.000Z | 2022-03-27T15:54:36.000Z | lib/blue_heron/att/requests/find_by_type_value_request.ex | amclain/blue_heron | e1802097ef6a845e28a8be56076f3b81ebb56206 | [
"Apache-2.0"
] | 11 | 2020-10-23T17:18:57.000Z | 2022-03-15T20:01:49.000Z | defmodule BlueHeron.ATT.FindByTypeValueRequest do
defstruct [:opcode, :starting_handle, :ending_handle, :attribute_type, :attribute_value]
def serialize(%{
starting_handle: starting_handle,
ending_handle: ending_handle,
attribute_type: attribute_type,
attribute_value: attribute_valu... | 30.925926 | 96 | 0.701796 |
aca11fa13521c488388cf855c1d67ccafaed89ff | 3,616 | ex | Elixir | lib/mix/lib/mix/tasks/compile.ex | kevsmith/elixir | 74825645e8cac770708f45139e651fd9d4e4264c | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/compile.ex | kevsmith/elixir | 74825645e8cac770708f45139e651fd9d4e4264c | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/compile.ex | kevsmith/elixir | 74825645e8cac770708f45139e651fd9d4e4264c | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Compile do
use Mix.Task
@shortdoc "Compiles source files"
@moduledoc """
A meta task that compiles source files.
It simply runs the compilers registered in your project.
## Configuration
* `:compilers` - compilers to run, defaults to:
`[:yecc, :leex, :erlang, :elixir, :xre... | 26.985075 | 101 | 0.637445 |
aca12daf6891fe9764cfa983ab514e344eface92 | 25,157 | ex | Elixir | lib/elixir_google_spreadsheets/spreadsheet.ex | FLEWID-AB/elixir_google_spreadsheets | 121337b9493ba27e5c4f4312c833126777c5b131 | [
"MIT"
] | null | null | null | lib/elixir_google_spreadsheets/spreadsheet.ex | FLEWID-AB/elixir_google_spreadsheets | 121337b9493ba27e5c4f4312c833126777c5b131 | [
"MIT"
] | null | null | null | lib/elixir_google_spreadsheets/spreadsheet.ex | FLEWID-AB/elixir_google_spreadsheets | 121337b9493ba27e5c4f4312c833126777c5b131 | [
"MIT"
] | null | null | null | defmodule GSS.Spreadsheet do
@moduledoc """
Model of Google Spreadsheet for external interaction.
"""
require Logger
use GenServer
alias GSS.Client
@typedoc """
State of currently active Google spreadsheet:
%{
spreadsheet_id => "16Wgt0fuoYDgEAtGtYKF4jdjAhZez0q77UhkKdeKI6B4",
... | 34.891817 | 113 | 0.656676 |
aca12f27a4bdb6d3f8cbfb30116b915af35d57cb | 4,923 | ex | Elixir | lib/redix/utils.ex | fenollp/redix | 0cb98cab41171c22e23abb603988aff57b349c97 | [
"MIT"
] | null | null | null | lib/redix/utils.ex | fenollp/redix | 0cb98cab41171c22e23abb603988aff57b349c97 | [
"MIT"
] | null | null | null | lib/redix/utils.ex | fenollp/redix | 0cb98cab41171c22e23abb603988aff57b349c97 | [
"MIT"
] | null | null | null | defmodule Redix.Utils do
@moduledoc false
@socket_opts [:binary, active: false]
@log_default_opts [
disconnection: :error,
failed_connection: :error,
reconnection: :info
]
@default_opts [
socket_opts: [],
ssl: false,
sync_connect: false,
backoff_initial: 500,
backoff_max: 30... | 30.388889 | 94 | 0.614666 |
aca17c6b8e42d32b037c8b409d22a709d50674bf | 56 | ex | Elixir | testData/org/elixir_lang/parser_definition/eol_to_whitespace/Type.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/eol_to_whitespace/Type.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/eol_to_whitespace/Type.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | defmodule A do
@type t
::
%{}
end
| 7 | 14 | 0.357143 |
aca17e1814e4522d6c37b7fe2a3c475f6793cd03 | 1,205 | ex | Elixir | apps/phx_web/web/channels/user_socket.ex | harmon25/roygbiv_cntrl | 77b056e26c3b3a1d2e49babb94ea6edefc5587f5 | [
"MIT"
] | null | null | null | apps/phx_web/web/channels/user_socket.ex | harmon25/roygbiv_cntrl | 77b056e26c3b3a1d2e49babb94ea6edefc5587f5 | [
"MIT"
] | null | null | null | apps/phx_web/web/channels/user_socket.ex | harmon25/roygbiv_cntrl | 77b056e26c3b3a1d2e49babb94ea6edefc5587f5 | [
"MIT"
] | null | null | null | defmodule PhxWeb.UserSocket do
use Phoenix.Socket
## Channels
channel "gql:query", PhxWeb.GQL.Channel
channel "led:data", PhxWeb.LED.Channel
## Transports
transport :websocket, Phoenix.Transports.WebSocket
# transport :longpoll, Phoenix.Transports.LongPoll
# Socket params are passed from the client a... | 30.897436 | 83 | 0.703734 |
aca1a953b77e88ed4db942d93a490a2641267f64 | 906 | ex | Elixir | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/metadata.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/metadata.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/remote_build_execution/lib/google_api/remote_build_execution/v2/metadata.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"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.555556 | 74 | 0.764901 |
aca1b30ef3a84f5c98cf4f49f5d9cd654bbd6ed5 | 92 | ex | Elixir | testData/org/elixir_lang/reference/callable/issue_480/direct_module_qualifier.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/reference/callable/issue_480/direct_module_qualifier.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/reference/callable/issue_480/direct_module_qualifier.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | defmodule DirectModuleQualifier do
%{}
|> MyNamespace.Referenced.<caret>changeset()
end
| 18.4 | 46 | 0.76087 |
aca1d77562259c01121a15fd19a950cfac6271e6 | 823 | ex | Elixir | lib/adyen_checkout_ex/model/card.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | 1 | 2021-05-30T20:45:10.000Z | 2021-05-30T20:45:10.000Z | lib/adyen_checkout_ex/model/card.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | lib/adyen_checkout_ex/model/card.ex | rsystem-se/adyen_checkout_ex | 4210f1c7150152e81f350dc6ca55aeb19665b85b | [
"MIT"
] | null | null | null | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule AdyenCheckoutEx.Model.Card do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"cvc",
:"expiryMonth",
:"expiryYear",
... | 20.575 | 91 | 0.611179 |
aca201953c8a1370ab3bc726f331d770e84e7ed9 | 77 | ex | Elixir | lib/spike/command/del.ex | thiamsantos/spike-kv | 9fc1a779ef335721b7181808537248fc19ac8c04 | [
"Apache-2.0"
] | 1 | 2019-04-16T22:13:23.000Z | 2019-04-16T22:13:23.000Z | lib/spike/command/del.ex | thiamsantos/spike-kv | 9fc1a779ef335721b7181808537248fc19ac8c04 | [
"Apache-2.0"
] | null | null | null | lib/spike/command/del.ex | thiamsantos/spike-kv | 9fc1a779ef335721b7181808537248fc19ac8c04 | [
"Apache-2.0"
] | null | null | null | defmodule Spike.Command.Del do
@enforce_keys [:key]
defstruct [:key]
end
| 15.4 | 30 | 0.727273 |
aca25ba20bf4f0293da0263fc50d7126ac0fabc4 | 2,577 | exs | Elixir | test/hello_web/controllers/role_controller_test.exs | suhaschitade/AppoRemind | 64ed7123e7e5e2c40e398597c61d0a45db0cae50 | [
"MIT"
] | null | null | null | test/hello_web/controllers/role_controller_test.exs | suhaschitade/AppoRemind | 64ed7123e7e5e2c40e398597c61d0a45db0cae50 | [
"MIT"
] | null | null | null | test/hello_web/controllers/role_controller_test.exs | suhaschitade/AppoRemind | 64ed7123e7e5e2c40e398597c61d0a45db0cae50 | [
"MIT"
] | null | null | null | defmodule HelloWeb.RoleControllerTest do
use HelloWeb.ConnCase
alias Hello.Accounts
@create_attrs %{active: true, name: "some name"}
@update_attrs %{active: false, name: "some updated name"}
@invalid_attrs %{active: nil, name: nil}
def fixture(:role) do
{:ok, role} = Accounts.create_role(@create_attr... | 28.955056 | 77 | 0.643772 |
aca2652520caec26f662053d1ad9fef3e45b9aa4 | 354 | ex | Elixir | lib/conduit/accounts/supervisor.ex | ThisisGurwinder/conduit | 5c618c71c9f1b4d911c3b497d8b165ae53887d41 | [
"MIT"
] | null | null | null | lib/conduit/accounts/supervisor.ex | ThisisGurwinder/conduit | 5c618c71c9f1b4d911c3b497d8b165ae53887d41 | [
"MIT"
] | null | null | null | lib/conduit/accounts/supervisor.ex | ThisisGurwinder/conduit | 5c618c71c9f1b4d911c3b497d8b165ae53887d41 | [
"MIT"
] | null | null | null | defmodule Conduit.Accounts.Supervisor do
use Supervisor
alias Conduit.Accounts
alias Conduit.Accounts.AccountSupervisor
def start_link do
Supervisor.start_link(__MODULE__, [], name: __MODULE__)
end
def init(_arg) do
Supervisor.init([
Accounts.Projectors.User,
AccountSupervisor
], ... | 19.666667 | 59 | 0.731638 |
aca29fdf5c0dc82f9851c16ff63317c786d4a41c | 69,633 | ex | Elixir | lib/calendar_translations/translations.ex | abradburne/calendar_translations | 6dead1fff19a2e5e4e4a1675dc18b777db3dcb67 | [
"MIT"
] | null | null | null | lib/calendar_translations/translations.ex | abradburne/calendar_translations | 6dead1fff19a2e5e4e4a1675dc18b777db3dcb67 | [
"MIT"
] | null | null | null | lib/calendar_translations/translations.ex | abradburne/calendar_translations | 6dead1fff19a2e5e4e4a1675dc18b777db3dcb67 | [
"MIT"
] | 1 | 2021-01-26T15:14:31.000Z | 2021-01-26T15:14:31.000Z | defmodule CalendarTranslations.Translations do
@moduledoc ~S"""
This module provides the functions used by the calendar library to fetch the
translations for a given language key.
"""
def month_names(:af), do: {:ok, ["Januarie", "Februarie", "Maart", "April", "Mai", "Junie", "Julie", "Augustus", "September",... | 92.229139 | 257 | 0.533569 |
aca2a70223f30b5c80cabf011381ceec62b81253 | 2,115 | exs | Elixir | apps/reaper/test/unit/reaper/collections/base_dataset_test.exs | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/reaper/test/unit/reaper/collections/base_dataset_test.exs | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | apps/reaper/test/unit/reaper/collections/base_dataset_test.exs | msomji/smartcitiesdata | fc96abc1ef1306f7af6bd42bbcb4ed041a6d922c | [
"Apache-2.0"
] | null | null | null | defmodule Reaper.Collections.BaseDatasetTest do
use ExUnit.Case
use Placebo
require Logger
@instance_name Reaper.instance_name()
alias Reaper.Collections.Extractions
alias SmartCity.TestDataGenerator, as: TDG
setup do
{:ok, brook} = Brook.start_link(Application.get_env(:reaper, :brook) |> Keyword.p... | 27.828947 | 132 | 0.678014 |
aca2baae46d6ae9218c574ef670b686851d5b36d | 957 | ex | Elixir | test/support/channel_case.ex | zzats/online-editor | 2532315b40c974fe766e960e0b0933773907906d | [
"MIT"
] | null | null | null | test/support/channel_case.ex | zzats/online-editor | 2532315b40c974fe766e960e0b0933773907906d | [
"MIT"
] | null | null | null | test/support/channel_case.ex | zzats/online-editor | 2532315b40c974fe766e960e0b0933773907906d | [
"MIT"
] | null | null | null | defmodule OnlineEditorWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common datastructures and query the data layer.
Finally, if the test case interac... | 25.184211 | 74 | 0.722048 |
aca2d73dc24092660350f8ffb12f784ac84672ea | 1,034 | exs | Elixir | apps/legion/test/messaging/localization/entry_test.exs | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 1 | 2021-01-04T11:06:12.000Z | 2021-01-04T11:06:12.000Z | apps/legion/test/messaging/localization/entry_test.exs | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 3 | 2021-01-30T06:40:37.000Z | 2021-01-30T06:41:08.000Z | apps/legion/test/messaging/localization/entry_test.exs | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | null | null | null | defmodule Legion.Messaging.Localization.EntryTest do
@moduledoc false
use Legion.DataCase
alias Legion.Messaging.Localization.Entry
@valid_attrs %{
user_id: 1,
template_id: 1,
engine: :liquid,
subject_template: random_string(25),
body_template: random_string(25)
}
test "changeset with... | 24.046512 | 76 | 0.712766 |
aca32035ab195382f098c2bb286c0736813e9193 | 4,284 | ex | Elixir | clients/data_fusion/lib/google_api/data_fusion/v1beta1/model/binding.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/data_fusion/lib/google_api/data_fusion/v1beta1/model/binding.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/data_fusion/lib/google_api/data_fusion/v1beta1/model/binding.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... | 80.830189 | 1,972 | 0.753501 |
aca33ea7db60b043e63e6389a14158d876e0f28f | 2,211 | exs | Elixir | test/grizzly/command_class/network_management_inclusion/node_add_dsk_set_test.exs | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | test/grizzly/command_class/network_management_inclusion/node_add_dsk_set_test.exs | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | test/grizzly/command_class/network_management_inclusion/node_add_dsk_set_test.exs | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.CommandClass.NetworkManagementInclusion.NodeAddDSKSet.Test do
use ExUnit.Case, async: true
alias Grizzly.Packet
alias Grizzly.CommandClass.NetworkManagementInclusion.NodeAddDSKSet
alias Grizzly.Command.EncodeError
test "initializes the command options" do
opts = [
seq_number: 0x0... | 26.321429 | 85 | 0.63365 |
aca33fdbfdff4fcff5142e9a4772e96c563667c0 | 413 | exs | Elixir | postgres/sample/test/sample_web/views/error_view_test.exs | penqen/phenix_db_samples | 4ae7211abb3cf66a120a78727641b3963a9aafe3 | [
"MIT"
] | 37 | 2021-01-31T17:43:03.000Z | 2021-11-17T12:29:00.000Z | postgres/sample/test/sample_web/views/error_view_test.exs | penqen/phenix_db_samples | 4ae7211abb3cf66a120a78727641b3963a9aafe3 | [
"MIT"
] | 4 | 2021-05-29T04:54:28.000Z | 2021-06-26T20:40:48.000Z | postgres/sample/test/sample_web/views/error_view_test.exs | penqen/phenix_db_samples | 4ae7211abb3cf66a120a78727641b3963a9aafe3 | [
"MIT"
] | null | null | null | defmodule SampleWeb.ErrorViewTest do
use SampleWeb.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(SampleWeb.ErrorView, "404.html", []) == "Not Found"
end
test "renders 500.html" do
asser... | 27.533333 | 91 | 0.731235 |
aca3a06597bcc8bb0a38ca865f50877c10e5f74b | 3,251 | ex | Elixir | clients/fusion_tables/lib/google_api/fusion_tables/v2/model/polygon_style.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/fusion_tables/lib/google_api/fusion_tables/v2/model/polygon_style.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/fusion_tables/lib/google_api/fusion_tables/v2/model/polygon_style.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... | 47.808824 | 217 | 0.716703 |
aca3a95cf584851c02863a149593fc43a7a63733 | 994 | ex | Elixir | lib/foodstock_web/views/error_view.ex | robertojnior/foodstock | 901bcf036949b9edce3690b5f56ac26f04f4f83e | [
"MIT"
] | null | null | null | lib/foodstock_web/views/error_view.ex | robertojnior/foodstock | 901bcf036949b9edce3690b5f56ac26f04f4f83e | [
"MIT"
] | null | null | null | lib/foodstock_web/views/error_view.ex | robertojnior/foodstock | 901bcf036949b9edce3690b5f56ac26f04f4f83e | [
"MIT"
] | null | null | null | defmodule FoodstockWeb.ErrorView do
use FoodstockWeb, :view
alias Ecto.Changeset
# If you want to customize a particular status code
# for a certain format, you may uncomment below.
# def render("500.json", _assigns) do
# %{errors: %{detail: "Internal Server Error"}}
# end
# By default, Phoenix ret... | 28.4 | 83 | 0.681087 |
aca3b6a9e220fe7dc478019561bee365127930d6 | 9,235 | exs | Elixir | apps/re/test/buyer_leads/job_queue_test.exs | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | 1 | 2021-01-19T05:01:15.000Z | 2021-01-19T05:01:15.000Z | apps/re/test/buyer_leads/job_queue_test.exs | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | apps/re/test/buyer_leads/job_queue_test.exs | caspg/backend | 34df9dc14ab8ed75de4578fefa2e087580c7e867 | [
"MIT"
] | null | null | null | defmodule Re.BuyerLeads.JobQueueTest do
use Re.ModelCase
import Re.Factory
alias Re.{
BuyerLead,
BuyerLeads.JobQueue,
Repo
}
alias Ecto.Multi
describe "grupozap_buyer_lead" do
test "process lead with existing user and listing" do
%{id: id, uuid: listing_uuid} =
insert(:list... | 33.581818 | 98 | 0.619816 |
aca3ef96023b6fc0011b1ace30d8381566b0e573 | 1,684 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3beta1_generic_knowledge_operation_metadata.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_cx_v3beta1_generic_knowledge_operation_metadata.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_cx_v3beta1_generic_knowledge_operation_metadata.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... | 31.185185 | 114 | 0.754751 |
aca3f0432194675c5d82138888f3a03ae90ca006 | 457 | ex | Elixir | lib/commanded/process_managers/supervisor.ex | beorc/commanded | 1330585f2c7397e1d4dd5d4789fea85a43ab031b | [
"MIT"
] | null | null | null | lib/commanded/process_managers/supervisor.ex | beorc/commanded | 1330585f2c7397e1d4dd5d4789fea85a43ab031b | [
"MIT"
] | null | null | null | lib/commanded/process_managers/supervisor.ex | beorc/commanded | 1330585f2c7397e1d4dd5d4789fea85a43ab031b | [
"MIT"
] | null | null | null | defmodule Commanded.ProcessManagers.Supervisor do
@moduledoc false
use Supervisor
def start_link do
Supervisor.start_link(__MODULE__, :ok)
end
def start_process_manager(supervisor, opts) do
Supervisor.start_child(supervisor, [opts])
end
def init(:ok) do
children = [
worker(Commanded.... | 20.772727 | 87 | 0.73523 |
aca40aecbdcbb91c0c0f691b78637281e9e6c975 | 278 | exs | Elixir | test/lib/web/views/layout_view_test.exs | irisTa56/sdo_elixir | de856596c462141477bb27aee5d63cb7b95a3b67 | [
"MIT"
] | null | null | null | test/lib/web/views/layout_view_test.exs | irisTa56/sdo_elixir | de856596c462141477bb27aee5d63cb7b95a3b67 | [
"MIT"
] | 2 | 2021-03-10T17:42:11.000Z | 2021-05-11T13:38:31.000Z | test/lib/web/views/layout_view_test.exs | irisTa56/sdo_elixir | de856596c462141477bb27aee5d63cb7b95a3b67 | [
"MIT"
] | null | null | null | defmodule SdoPhoenix.Web.LayoutViewTest do
use SdoPhoenix.Web.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 30.888889 | 65 | 0.766187 |
aca42bd43bb4aa4e4b209724517daf3accad439f | 1,099 | ex | Elixir | apps/website_web/test/support/channel_case.ex | zarynxyz/website | 6c833c78f83f7765286cdbf7b0aa2976ddcfac3f | [
"Apache-2.0"
] | null | null | null | apps/website_web/test/support/channel_case.ex | zarynxyz/website | 6c833c78f83f7765286cdbf7b0aa2976ddcfac3f | [
"Apache-2.0"
] | null | null | null | apps/website_web/test/support/channel_case.ex | zarynxyz/website | 6c833c78f83f7765286cdbf7b0aa2976ddcfac3f | [
"Apache-2.0"
] | null | null | null | defmodule WebsiteWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interacts w... | 29.702703 | 88 | 0.737034 |
aca4309ed0bf88d2827cfcbfb0d34821c6cdc55c | 146 | ex | Elixir | phoenix_test/web/controllers/page_controller.ex | mrk21/study_elixir | 1fb20f74f9f9e604ca0e757d0c45bf64b9193743 | [
"MIT"
] | null | null | null | phoenix_test/web/controllers/page_controller.ex | mrk21/study_elixir | 1fb20f74f9f9e604ca0e757d0c45bf64b9193743 | [
"MIT"
] | null | null | null | phoenix_test/web/controllers/page_controller.ex | mrk21/study_elixir | 1fb20f74f9f9e604ca0e757d0c45bf64b9193743 | [
"MIT"
] | null | null | null | defmodule PhoenixTest.PageController do
use PhoenixTest.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 18.25 | 39 | 0.746575 |
aca46dd00ad6ea9fb1b5ebe9436ac9b135708668 | 963 | ex | Elixir | test/support/channel_case.ex | kexoth/nlb-pipeline | 77d2c79b58e03f0326608162e9cee768362e2076 | [
"MIT"
] | 6 | 2017-06-13T19:35:05.000Z | 2020-05-05T06:50:34.000Z | test/support/channel_case.ex | kexoth/nlb-pipeline | 77d2c79b58e03f0326608162e9cee768362e2076 | [
"MIT"
] | null | null | null | test/support/channel_case.ex | kexoth/nlb-pipeline | 77d2c79b58e03f0326608162e9cee768362e2076 | [
"MIT"
] | 1 | 2021-09-27T11:58:11.000Z | 2021-09-27T11:58:11.000Z | defmodule NlbPipeline.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build and query models.
Finally, if the test case interacts with the database,
it cannot be async... | 21.886364 | 70 | 0.746625 |
aca471dbceeb05d49cfe6377d000974e9b4a68b7 | 22,472 | exs | Elixir | lib/elixir/test/elixir/task_test.exs | wstrinz/elixir | 1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/task_test.exs | wstrinz/elixir | 1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95 | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/task_test.exs | wstrinz/elixir | 1048b34d6c816f8e5dbd4fdbaaf9baa41b4f0d95 | [
"Apache-2.0"
] | 8 | 2018-02-20T18:30:53.000Z | 2019-06-18T14:23:31.000Z | Code.require_file("test_helper.exs", __DIR__)
defmodule TaskTest do
use ExUnit.Case
doctest Task
@moduletag :capture_log
def wait_and_send(caller, atom) do
send(caller, :ready)
receive do: (true -> true)
send(caller, atom)
end
defp create_task_in_other_process do
caller = self()
spawn... | 32.241033 | 100 | 0.58406 |
aca472f3d401b19d0a5fce64fe89688c47545a5b | 1,119 | exs | Elixir | config/config.exs | jessiahr/map_diff | 18277259e413962f084d30b88bdf42d54e9cc709 | [
"Apache-2.0"
] | 55 | 2019-08-19T04:14:39.000Z | 2022-03-28T08:10:04.000Z | config/config.exs | jessiahr/map_diff | 18277259e413962f084d30b88bdf42d54e9cc709 | [
"Apache-2.0"
] | 46 | 2019-08-17T20:52:52.000Z | 2022-03-25T11:15:12.000Z | config/config.exs | jessiahr/map_diff | 18277259e413962f084d30b88bdf42d54e9cc709 | [
"Apache-2.0"
] | 7 | 2016-12-20T20:39:16.000Z | 2019-08-05T19:05:49.000Z | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.096774 | 73 | 0.751564 |
aca48223c7eb1692fddb8036b71684e9e32039fd | 5,202 | ex | Elixir | lib/boxes/physical/physical.ex | mlgx/boxes | f6c8b786bd7188ad57c1e071722e8196d594a034 | [
"Unlicense"
] | null | null | null | lib/boxes/physical/physical.ex | mlgx/boxes | f6c8b786bd7188ad57c1e071722e8196d594a034 | [
"Unlicense"
] | 2 | 2021-03-08T23:24:09.000Z | 2021-05-07T22:42:15.000Z | lib/boxes/physical/physical.ex | mlgx/boxes | f6c8b786bd7188ad57c1e071722e8196d594a034 | [
"Unlicense"
] | null | null | null | defmodule Boxes.Physical do
@moduledoc """
The Physical context.
"""
import Ecto.Query, warn: false
alias Boxes.Repo
defp apply_params(query, params) do
from(q in query)
|> apply_preload(params[:preload])
|> apply_order_by(params[:order_by])
end
defp apply_preload(query, nil), do: query
... | 21.585062 | 93 | 0.663975 |
aca487defa4590efeca038b4f0b05904a149e0e4 | 37,638 | ex | Elixir | clients/firebase_rules/lib/google_api/firebase_rules/v1/api/projects.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/firebase_rules/lib/google_api/firebase_rules/v1/api/projects.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/firebase_rules/lib/google_api/firebase_rules/v1/api/projects.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 ... | 45.788321 | 196 | 0.622722 |
aca4a7e84b702c23303525fdc6a82f7d872e95af | 399 | ex | Elixir | lib/mitbits/MinerSupervisor.ex | siddhantmittal7/Mitbits_Cryptocurrency | b02060b1fa6ccc14730433bc4b078b8e5c752a8a | [
"MIT"
] | 2 | 2018-12-10T21:20:04.000Z | 2020-07-07T07:28:14.000Z | lib/mitbits/MinerSupervisor.ex | prafful13/Mitbits_Cryptocurrency | b02060b1fa6ccc14730433bc4b078b8e5c752a8a | [
"MIT"
] | null | null | null | lib/mitbits/MinerSupervisor.ex | prafful13/Mitbits_Cryptocurrency | b02060b1fa6ccc14730433bc4b078b8e5c752a8a | [
"MIT"
] | 1 | 2018-12-16T03:36:18.000Z | 2018-12-16T03:36:18.000Z | defmodule Mitbits.MinerSupervisor do
use DynamicSupervisor
@me MinerSupervisor
def start_link(_) do
DynamicSupervisor.start_link(__MODULE__, :no_args, name: @me)
end
def init(:no_args) do
DynamicSupervisor.init(strategy: :one_for_one)
end
def add_miner(pk, sk, hash_name) do
{:ok, pid} = Dyna... | 24.9375 | 89 | 0.729323 |
aca4fa497c22630bf7af55d8fbcbb85dd66a1e52 | 553 | ex | Elixir | apps/gitgud_web/lib/gitgud_web/views/user_view.ex | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | 449 | 2018-03-06T01:05:55.000Z | 2022-03-23T21:03:56.000Z | apps/gitgud_web/lib/gitgud_web/views/user_view.ex | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | 69 | 2018-03-06T09:26:41.000Z | 2022-03-21T22:43:09.000Z | apps/gitgud_web/lib/gitgud_web/views/user_view.ex | rogervezaro/gitgud | 6656f8c2df16817a6c5325fb4c18b03f9d3f7140 | [
"MIT"
] | 41 | 2018-03-06T01:06:07.000Z | 2021-11-21T17:55:04.000Z | defmodule GitGud.Web.UserView do
@moduledoc false
use GitGud.Web, :view
alias GitGud.User
@spec title(atom, map) :: binary
def title(:show, %{current_user: %User{id: user_id}, user: %User{id: user_id}}), do: "Your profile"
def title(:show, %{user: user}), do: "#{user.login} (#{user.name})"
def title(:ne... | 36.866667 | 101 | 0.683544 |
aca50601e442d502e1afcd643f149180ec518c06 | 3,071 | ex | Elixir | lib/groupher_server/cms/delegates/Seeds/threads.ex | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 2 | 2018-03-26T08:56:21.000Z | 2018-07-02T22:34:51.000Z | lib/groupher_server/cms/delegates/Seeds/threads.ex | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2018-03-21T03:40:50.000Z | 2018-07-10T06:33:10.000Z | lib/groupher_server/cms/delegates/Seeds/threads.ex | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | null | null | null | defmodule GroupherServer.CMS.Delegate.Seeds.Threads do
def get(:home) do
[
%{
title: "帖子",
raw: "post",
index: 1
},
%{
title: "雷达",
raw: "radar",
index: 2
},
%{
title: "博客",
raw: "blog",
index: 3
},
%... | 14.485849 | 54 | 0.298274 |
aca52b03357c26c4bde12c74d5d68ac3e90ce98f | 766 | exs | Elixir | test/type/literal_atom/order_test.exs | kianmeng/mavis | 6ba154efdfadcce1aca92ac735dadb209380c25b | [
"MIT"
] | null | null | null | test/type/literal_atom/order_test.exs | kianmeng/mavis | 6ba154efdfadcce1aca92ac735dadb209380c25b | [
"MIT"
] | null | null | null | test/type/literal_atom/order_test.exs | kianmeng/mavis | 6ba154efdfadcce1aca92ac735dadb209380c25b | [
"MIT"
] | null | null | null | defmodule TypeTest.LiteralAtom.OrderTest do
use ExUnit.Case, async: true
@moduletag :compare
import Type, only: [builtin: 1]
use Type.Operators
describe "an atom literal" do
test "is bigger than bottom and integers" do
assert :foo > builtin(:none)
assert :foo > builtin(:integer)
end
... | 21.277778 | 59 | 0.63577 |
aca5346e682e7e7e41d5dd7f3e4c27573d843779 | 3,694 | ex | Elixir | lib/chat_api/messages.ex | wmnnd/papercups | 1e6fdfaf343b95b8bd6853d1327d6123180d0ac7 | [
"MIT"
] | null | null | null | lib/chat_api/messages.ex | wmnnd/papercups | 1e6fdfaf343b95b8bd6853d1327d6123180d0ac7 | [
"MIT"
] | null | null | null | lib/chat_api/messages.ex | wmnnd/papercups | 1e6fdfaf343b95b8bd6853d1327d6123180d0ac7 | [
"MIT"
] | null | null | null | defmodule ChatApi.Messages do
@moduledoc """
The Messages context.
"""
import Ecto.Query, warn: false
alias ChatApi.Repo
alias ChatApi.Messages.{Message, MessageFile}
require Logger
@spec list_messages(binary(), map()) :: [Message.t()]
def list_messages(account_id, filters \\ %{}) do
Message
... | 28.198473 | 95 | 0.6183 |
aca57ac6d9e4e0f98f4f10dfd5946597e6699cad | 1,454 | ex | Elixir | lib/job_board_web/controllers/password_controller.ex | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | lib/job_board_web/controllers/password_controller.ex | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | lib/job_board_web/controllers/password_controller.ex | TDogVoid/job_board | 23793917bd1cc4e68bccce737b971093030a31eb | [
"MIT"
] | null | null | null | defmodule JobBoardWeb.PasswordController do
use JobBoardWeb, :controller
alias JobBoard.Accounts
alias JobBoard.Accounts.User
alias JobBoard.Repo
def new(conn, _params) do
changeset = User.changeset(%User{}, %{})
render(conn, "new.html", pagetitle: "Forgot Password", changeset: changeset)
end
d... | 30.291667 | 87 | 0.654058 |
aca57dfe3346f15eaf6815710f625753912dd7b4 | 517 | exs | Elixir | test/models/device_test.exs | helapu/gd_push | 4bfe17194a898232fe8e8a4d54d4f90934ba4125 | [
"MIT"
] | null | null | null | test/models/device_test.exs | helapu/gd_push | 4bfe17194a898232fe8e8a4d54d4f90934ba4125 | [
"MIT"
] | null | null | null | test/models/device_test.exs | helapu/gd_push | 4bfe17194a898232fe8e8a4d54d4f90934ba4125 | [
"MIT"
] | null | null | null | defmodule GdPush.DeviceTest do
use GdPush.ModelCase
alias GdPush.Device
@valid_attrs %{extra: "some content", nickname: "some content", platform: "some content", token: "some content", uid: "some content"}
@invalid_attrs %{}
test "changeset with valid attributes" do
changeset = Device.changeset(%Device... | 27.210526 | 135 | 0.72147 |
aca58ce6605d2d08b570cd3b31eb4997ad1a2ff5 | 6,169 | ex | Elixir | lib/tune/matcher.ex | pedromtavares/tune | b95bdb5038ccb8c7ae262ef5d0803e53565e192f | [
"MIT"
] | null | null | null | lib/tune/matcher.ex | pedromtavares/tune | b95bdb5038ccb8c7ae262ef5d0803e53565e192f | [
"MIT"
] | null | null | null | lib/tune/matcher.ex | pedromtavares/tune | b95bdb5038ccb8c7ae262ef5d0803e53565e192f | [
"MIT"
] | null | null | null | defmodule Tune.Matcher do
@limit 30
@limit_tracks_per_artist 5
@artist_score 5
@track_score 2.5
def basic_match(%{id: id}, %{id: id2}, _) when id == id2, do: %{}
def basic_match(
%{artists: origin_artists, tracks: origin_tracks},
%{artists: target_artists, tracks: target_tracks},
n... | 31.47449 | 98 | 0.66818 |
aca5a0bad18397a65e86ce3f2f06fcd0e7116d12 | 1,677 | exs | Elixir | mix.exs | capbash/dioex | 4aca1c01fd05917d41a98df4d0f0dab2347f28e8 | [
"MIT"
] | 5 | 2017-08-06T09:22:35.000Z | 2017-10-22T15:51:45.000Z | mix.exs | capbash/doex | 4aca1c01fd05917d41a98df4d0f0dab2347f28e8 | [
"MIT"
] | null | null | null | mix.exs | capbash/doex | 4aca1c01fd05917d41a98df4d0f0dab2347f28e8 | [
"MIT"
] | null | null | null | defmodule Doex.Mixfile do
use Mix.Project
@app :doex
@git_url "https://github.com/aforward/doex"
@home_url @git_url
@version "0.14.0"
@deps [
{:mix_test_watch, "~> 1.0", only: :dev, runtime: false},
{:jason, "~> 1.1"},
{:httpoison, "~> 1.6"},
{:fn_expr, "~> 0.3"},
{:version_tasks, "~> ... | 21.227848 | 81 | 0.526535 |
aca5b1a3a9163dc1e65dd04b57c1e64151b23be5 | 11,042 | ex | Elixir | lib/elixir/lib/map_set.ex | lanodan/elixir | 10ae66cda989f324bf76c402473fd5661a459100 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/map_set.ex | lanodan/elixir | 10ae66cda989f324bf76c402473fd5661a459100 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/map_set.ex | lanodan/elixir | 10ae66cda989f324bf76c402473fd5661a459100 | [
"Apache-2.0"
] | 1 | 2020-11-25T02:22:55.000Z | 2020-11-25T02:22:55.000Z | defmodule MapSet do
@moduledoc """
Functions that work on sets.
A set is a data structure that can contain unique elements of any kind,
without any particular order. `MapSet` is the "go to" set data structure in Elixir.
A set can be constructed using `MapSet.new/0`:
iex> MapSet.new()
#MapSet<[]... | 25.981176 | 100 | 0.613566 |
aca5ccb335c195de98e65eb542de2d3ed0c15a1b | 70 | exs | Elixir | test/views/page_view_test.exs | orsai-project/orsai-be | 31786c8f0c2e50b3586579c43400a84f83b0781d | [
"MIT"
] | null | null | null | test/views/page_view_test.exs | orsai-project/orsai-be | 31786c8f0c2e50b3586579c43400a84f83b0781d | [
"MIT"
] | 9 | 2017-06-18T00:45:12.000Z | 2017-07-12T22:08:27.000Z | test/views/page_view_test.exs | orsai-project/orsai-be | 31786c8f0c2e50b3586579c43400a84f83b0781d | [
"MIT"
] | null | null | null | defmodule Orsai.PageViewTest do
use Orsai.ConnCase, async: true
end
| 17.5 | 33 | 0.8 |
aca5e41977dbd99e49052e9a9c5ee806fd1f09ec | 1,371 | exs | Elixir | test/new_relixir/stats_test.exs | sergioaugrod/new-relixir | ebb32bcbb2c74b48227791648d70ad835b4cd5c1 | [
"MIT"
] | null | null | null | test/new_relixir/stats_test.exs | sergioaugrod/new-relixir | ebb32bcbb2c74b48227791648d70ad835b4cd5c1 | [
"MIT"
] | null | null | null | test/new_relixir/stats_test.exs | sergioaugrod/new-relixir | ebb32bcbb2c74b48227791648d70ad835b4cd5c1 | [
"MIT"
] | null | null | null | defmodule NewRelixir.StatsTest do
use ExUnit.Case, async: true
alias NewRelixir.Stats
describe "#transform_aggregated_metrics" do
import Stats, only: [transform_aggregated_metrics: 3]
test "returns empty data set" do
assert transform_aggregated_metrics(%{}, %{}, 100) == {[], [], 100}
end
... | 29.170213 | 81 | 0.611233 |
aca5e7146a784ebcfd00d683e1b5410463e3fda5 | 840 | exs | Elixir | config/test.exs | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | config/test.exs | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | config/test.exs | bahanni/custom_rpi4 | ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5 | [
"MIT"
] | null | null | null | import Config
data_path = Path.join(["/", "tmp", "farmbot"])
File.mkdir_p(data_path)
config :ex_unit, capture_logs: true
config :farmbot, data_path: data_path
config :farmbot, FarmbotOS.Celery.SysCallGlue,
sys_calls: FarmbotOS.Celery.SysCallGlue.Stubs
config :farmbot, FarmbotOS.Configurator,
data_layer: Farmbot... | 28 | 80 | 0.785714 |
aca5fb0d85628e8b1941c19fbadb500f7cec197c | 2,217 | ex | Elixir | lib/flash_web.ex | sickill/flash | 8797cb00b70c94b6f3bdd51e9cb456483f1c5741 | [
"Apache-2.0"
] | 1 | 2021-09-08T16:56:39.000Z | 2021-09-08T16:56:39.000Z | lib/flash_web.ex | sickill/flash | 8797cb00b70c94b6f3bdd51e9cb456483f1c5741 | [
"Apache-2.0"
] | null | null | null | lib/flash_web.ex | sickill/flash | 8797cb00b70c94b6f3bdd51e9cb456483f1c5741 | [
"Apache-2.0"
] | null | null | null | defmodule FlashWeb 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 FlashWeb, :controller
use FlashWeb, :view
The definitions below will be executed for every view,
controller, etc, s... | 21.950495 | 83 | 0.681552 |
aca6102cf619765a051eafb1474b9c1758d5e21f | 889 | ex | Elixir | lib/reuse_web/views/error_view.ex | riccardofelluga/reuse-checker | c57b824141ff28a05b8c065b401bbdae178f0259 | [
"MIT"
] | 2 | 2018-09-01T17:38:39.000Z | 2018-09-20T13:47:50.000Z | lib/reuse_web/views/error_view.ex | riccardofelluga/reuse-checker | c57b824141ff28a05b8c065b401bbdae178f0259 | [
"MIT"
] | null | null | null | lib/reuse_web/views/error_view.ex | riccardofelluga/reuse-checker | c57b824141ff28a05b8c065b401bbdae178f0259 | [
"MIT"
] | null | null | null | #
# Copyright (c) 2018 Andrea Janes <ajanes@unibz.it>, Riccardo Felluga <riccardo.felluga@stud-inf.unibz.it>, Max Schweigkofler <maxelia.schweigkofler@stud-inf.unibz.it>
#
# This file is part of the project reuse-checker which is released under the MIT license.
# See file LICENSE or go to https://github.com/riccardofel... | 34.192308 | 167 | 0.749156 |
aca6229c83b7e01aefb88a69cd4800832c909e0c | 1,489 | ex | Elixir | lib/tasks/runners/make.ex | esl/buildex_common | 90d9736a7c9cc9504f173c19dd2a70f412dfbdb2 | [
"Apache-2.0"
] | 1 | 2021-03-11T23:24:01.000Z | 2021-03-11T23:24:01.000Z | lib/tasks/runners/make.ex | esl/buildex_common | 90d9736a7c9cc9504f173c19dd2a70f412dfbdb2 | [
"Apache-2.0"
] | null | null | null | lib/tasks/runners/make.ex | esl/buildex_common | 90d9736a7c9cc9504f173c19dd2a70f412dfbdb2 | [
"Apache-2.0"
] | 2 | 2021-03-11T23:27:39.000Z | 2022-03-06T10:09:40.000Z | defmodule Buildex.Common.Tasks.Runners.Make do
alias Buildex.Common.Tasks.Runners.Runner
@behaviour Runner
@filename "Makefile"
@doc """
Executes the given task via `make`, if the task has a non empty list of commands
it will run each command secuentialy, and will stop if there is an error in
one of th... | 24.409836 | 83 | 0.618536 |
aca635cb626c5cf839d30b63e37656318bc3c10d | 817 | ex | Elixir | lib/inmana_web/controllers/restaurants_controller.ex | andrermartins/inmana | 19f36e3b7ab509ea72af2eff22981adf2ffcacab | [
"MIT"
] | null | null | null | lib/inmana_web/controllers/restaurants_controller.ex | andrermartins/inmana | 19f36e3b7ab509ea72af2eff22981adf2ffcacab | [
"MIT"
] | null | null | null | lib/inmana_web/controllers/restaurants_controller.ex | andrermartins/inmana | 19f36e3b7ab509ea72af2eff22981adf2ffcacab | [
"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_restaurant(params) do
conn
|> put_status(... | 24.757576 | 81 | 0.660955 |
aca6843267f7f121dad3734e502a46f62ce51a66 | 3,071 | ex | Elixir | lib/livebook/runtime/erl_dist.ex | danhuynhdev/livebook | d20d4f6bf123d58e4666c064027b55e3b300702f | [
"Apache-2.0"
] | null | null | null | lib/livebook/runtime/erl_dist.ex | danhuynhdev/livebook | d20d4f6bf123d58e4666c064027b55e3b300702f | [
"Apache-2.0"
] | null | null | null | lib/livebook/runtime/erl_dist.ex | danhuynhdev/livebook | d20d4f6bf123d58e4666c064027b55e3b300702f | [
"Apache-2.0"
] | null | null | null | defmodule Livebook.Runtime.ErlDist do
@moduledoc false
# This module allows for initializing nodes connected using
# Erlang Distribution with modules and processes necessary for evaluation.
#
# To ensure proper isolation between sessions,
# code evaluation may take place in a separate Elixir runtime,
# w... | 32.326316 | 86 | 0.730055 |
aca68f777df68a68137e97969294e5346a6c95a0 | 6,674 | ex | Elixir | lib/eex/lib/eex.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/eex/lib/eex.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | lib/eex/lib/eex.ex | diogovk/elixir | 7b8213affaad38b50afaa3dfc3a43717f35ba4e7 | [
"Apache-2.0"
] | null | null | null | defmodule EEx.SyntaxError do
defexception [:message, :file, :line]
def message(exception) do
"#{exception.file}:#{exception.line}: #{exception.message}"
end
end
defmodule EEx do
@moduledoc ~S"""
EEx stands for Embedded Elixir. It allows you to embed
Elixir code inside a string in a robust way.
... | 30.199095 | 83 | 0.651334 |
aca6b1e49aa8d5cd995008a85f9c21ed45ecfefa | 1,179 | ex | Elixir | lib/code_corps/stripe_service/adapters/stripe_connect_plan.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | lib/code_corps/stripe_service/adapters/stripe_connect_plan.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | lib/code_corps/stripe_service/adapters/stripe_connect_plan.ex | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorps.StripeService.Adapters.StripeConnectPlanAdapter do
@moduledoc """
Used for conversion between stripe api payload maps and maps
usable for creation of `StripeConnectPlan` records locally
"""
import CodeCorps.MapUtils, only: [rename: 3, keys_to_string: 1]
@doc """
Converts a map receiv... | 26.2 | 73 | 0.687871 |
aca6ef9c0f7b40ec0c32f56897caae10d5655860 | 5,724 | ex | Elixir | lib/ex_unit/lib/ex_unit/formatter.ex | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/formatter.ex | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | lib/ex_unit/lib/ex_unit/formatter.ex | guilleiguaran/elixir | 952052869ff7af0e293d2a7160b1aebc68fc46be | [
"Apache-2.0"
] | null | null | null | defmodule ExUnit.Formatter do
@moduledoc """
This module simply defines the callbacks
expected by an ExUnit.Formatter.
"""
use Behaviour
@type id :: term
@type test_case :: ExUnit.TestCase.t
@type test :: ExUnit.Test.t
@type run_us :: pos_integer
@type load_us :: pos_integer | nil
defcallback s... | 31.278689 | 119 | 0.650245 |
aca74c1f34f524c829dc80314035e518deb1b220 | 354 | exs | Elixir | priv/repo/seeds.exs | amohamedali/bbc_schedulor_phoenix | 0eb828ca7da4cfecd57e8ad8085acbd625a3c2fa | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | amohamedali/bbc_schedulor_phoenix | 0eb828ca7da4cfecd57e8ad8085acbd625a3c2fa | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | amohamedali/bbc_schedulor_phoenix | 0eb828ca7da4cfecd57e8ad8085acbd625a3c2fa | [
"MIT"
] | null | null | null | # Script for populating the database. You can run it as:
#
# mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
# BbcSchedulorPhoenix.Repo.insert!(%SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they w... | 29.5 | 61 | 0.711864 |
aca751c40625a2ec968fe4c97423a0b36da87569 | 2,846 | ex | Elixir | lib/credo/check/readability/prefer_unquoted_atoms.ex | egze/credo | 59ee836e9ee07c478421df3078a56230a86c3860 | [
"MIT"
] | 1 | 2021-12-01T13:37:43.000Z | 2021-12-01T13:37:43.000Z | deps/credo/lib/credo/check/readability/prefer_unquoted_atoms.ex | rwtrecs/rocketseat-nlw5-inmana | 8ce8bc32e0bdd005c423394bb163945747b557e2 | [
"MIT"
] | 3 | 2021-06-20T14:51:14.000Z | 2021-06-25T00:56:11.000Z | deps/credo/lib/credo/check/readability/prefer_unquoted_atoms.ex | rwtrecs/rocketseat-nlw5-inmana | 8ce8bc32e0bdd005c423394bb163945747b557e2 | [
"MIT"
] | 1 | 2020-06-28T00:36:07.000Z | 2020-06-28T00:36:07.000Z | defmodule Credo.Check.Readability.PreferUnquotedAtoms do
use Credo.Check,
run_on_all: true,
base_priority: :high,
elixir_version: "< 1.7.0-dev",
explanations: [
check: """
Prefer unquoted atoms unless quotes are necessary.
This is helpful because a quoted atom can be easily mistaken ... | 23.915966 | 92 | 0.599438 |
aca752c8eaf5bfd1368ef028bcb9223562dec63e | 2,669 | ex | Elixir | lib/zones/bfs.ex | pringlized/Elber | 81394ad29b7a67ac9b8d3e249cde252ec5c44697 | [
"MIT"
] | 1 | 2019-06-20T07:06:16.000Z | 2019-06-20T07:06:16.000Z | lib/zones/bfs.ex | pringlized/Elber | 81394ad29b7a67ac9b8d3e249cde252ec5c44697 | [
"MIT"
] | null | null | null | lib/zones/bfs.ex | pringlized/Elber | 81394ad29b7a67ac9b8d3e249cde252ec5c44697 | [
"MIT"
] | null | null | null | defmodule Elber.Zones.BFS do
def zone_map(name, parent \\ nil) do
%{
name: name,
distance: 0,
parent: nil
}
end
def search(start, goal) do
if start != goal do
from = zone_map(start)
to = zone_map(goal)
# searc... | 29.988764 | 89 | 0.519296 |
aca769284aeaf9599515cd362d78e7059714ecf6 | 748 | ex | Elixir | test/support/fixtures/favourites_fixtures.ex | midarrlabs/midarr-server | f12c6347e41a96517bbb5ed1ad12b65d10b8d30a | [
"MIT"
] | 538 | 2022-02-02T21:46:52.000Z | 2022-03-29T20:50:34.000Z | test/support/fixtures/favourites_fixtures.ex | midarrlabs/midarr-server | f12c6347e41a96517bbb5ed1ad12b65d10b8d30a | [
"MIT"
] | 48 | 2022-02-03T11:46:09.000Z | 2022-03-31T04:44:53.000Z | test/support/fixtures/favourites_fixtures.ex | midarrlabs/midarr-server | f12c6347e41a96517bbb5ed1ad12b65d10b8d30a | [
"MIT"
] | 15 | 2022-02-03T05:55:14.000Z | 2022-02-28T11:09:03.000Z | defmodule MediaServer.FavouritesFixtures do
@moduledoc """
This module defines test helpers for creating
entities via the `MediaServer.Favourites` context.
"""
@doc """
Generate a movie.
"""
def movie_fixture(attrs \\ %{}) do
{:ok, movie} =
attrs
|> Enum.into(%{
movie_id: 42,
... | 19.179487 | 52 | 0.568182 |
aca771673695ae5637caef775de418ed5811cf0c | 2,317 | exs | Elixir | test/grizzly/command_class/battery/get_test.exs | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | test/grizzly/command_class/battery/get_test.exs | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | test/grizzly/command_class/battery/get_test.exs | pragdave/grizzly | bcd7b46ab2cff1797dac04bc3cd12a36209dd579 | [
"Apache-2.0"
] | null | null | null | defmodule Grizzly.CommandClass.Battery.Get.Test do
use ExUnit.Case, async: true
alias Grizzly.Packet
alias Grizzly.CommandClass.Battery.Get
describe "implements Grizzly.Command correctly" do
test "initializes to command" do
assert {:ok, %Get{}} == Get.init([])
end
test "encodes correctly" d... | 31.310811 | 87 | 0.640052 |
aca77223694b0f7d1792699a926c6fbf613f6f9d | 222 | ex | Elixir | lib/calendar/calendar.ex | aforward-oss/timex | 1dc6d355c12f06b0250466b62ca001dd1dad8de0 | [
"MIT"
] | null | null | null | lib/calendar/calendar.ex | aforward-oss/timex | 1dc6d355c12f06b0250466b62ca001dd1dad8de0 | [
"MIT"
] | null | null | null | lib/calendar/calendar.ex | aforward-oss/timex | 1dc6d355c12f06b0250466b62ca001dd1dad8de0 | [
"MIT"
] | null | null | null | defmodule Timex.Calendar do
@moduledoc """
This module contains functions that are common across more than a single calendar
Currently it is empty, but that will change as multi-calendar support is added.
"""
end
| 27.75 | 83 | 0.761261 |
aca795455c5b3d9cbf0812cf095602589dc39168 | 1,776 | ex | Elixir | lib/quadquizaminos_web/live/contest_prizes.ex | sparrell/quizquadaminos | 6388252b7c32aa4101486cbf45d0d57d4e3a79da | [
"MIT"
] | 1 | 2022-01-11T20:06:31.000Z | 2022-01-11T20:06:31.000Z | lib/quadquizaminos_web/live/contest_prizes.ex | sFractal-Podii/quizquadaminos | 4c9023b9c6212a92741b0f21d9eb05871aa73916 | [
"MIT"
] | 484 | 2021-02-15T18:43:40.000Z | 2022-03-29T12:27:24.000Z | lib/quadquizaminos_web/live/contest_prizes.ex | sFractal-Podii/quizquadaminos | 4c9023b9c6212a92741b0f21d9eb05871aa73916 | [
"MIT"
] | 8 | 2021-02-15T19:12:51.000Z | 2021-12-15T03:02:46.000Z | defmodule QuadquizaminosWeb.ContestPrizes do
use Phoenix.LiveView
alias QuadquizaminosWeb.Router.Helpers, as: Routes
def render(assigns) do
~L"""
<h1>Contest Prizes</h1>
<p>
This is the prize page for the
AT&T Software Symposium Security Workshop
QuadBlockQuiz contest.
See
<a href... | 27.323077 | 117 | 0.663851 |
aca7af9804c69ccedcfa84a98fea3dbf5cc3d95f | 1,547 | exs | Elixir | config/releases.exs | lonamiaec/postoffice | 3a6f28ea0db94887faf427bf06df2b1504c00d02 | [
"Apache-2.0"
] | 15 | 2020-01-24T10:33:57.000Z | 2020-10-24T07:57:14.000Z | config/releases.exs | lonamiaec/postoffice | 3a6f28ea0db94887faf427bf06df2b1504c00d02 | [
"Apache-2.0"
] | 24 | 2020-01-24T09:52:56.000Z | 2021-02-19T09:15:12.000Z | config/releases.exs | mercadona/postoffice | 3a6f28ea0db94887faf427bf06df2b1504c00d02 | [
"Apache-2.0"
] | 5 | 2020-01-25T18:03:44.000Z | 2021-02-23T10:07:03.000Z | import Config
config :postoffice, PostofficeWeb.Endpoint,
secret_key_base: {:system, "SECRET_KEY_BASE", default: "12121212"}
config :postoffice, pubsub_project_name: {:system, "GCLOUD_PUBSUB_PROJECT_ID", default: "test"}
config :postoffice, max_bulk_messages: {:system, "MAX_BULK_MESSAGES", default: 3000}
config :po... | 41.810811 | 103 | 0.707175 |
aca7b4720b2308017f538e7aabd924e481a81d34 | 10,882 | ex | Elixir | clients/tag_manager/lib/google_api/tag_manager/v2/model/trigger.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/tag_manager/lib/google_api/tag_manager/v2/model/trigger.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/trigger.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 ... | 77.728571 | 474 | 0.720088 |
aca7bb02993eca0915db2b2b6c523c1c69024eed | 32 | ex | Elixir | lib/elixir_in_action.ex | tegon/elixir-in-action | 1bcb8fb0e1d32593a505dc634977c0ea3d4a56ba | [
"MIT"
] | 1 | 2017-09-07T14:36:47.000Z | 2017-09-07T14:36:47.000Z | lib/elixir_in_action.ex | tegon/elixir-in-action | 1bcb8fb0e1d32593a505dc634977c0ea3d4a56ba | [
"MIT"
] | null | null | null | lib/elixir_in_action.ex | tegon/elixir-in-action | 1bcb8fb0e1d32593a505dc634977c0ea3d4a56ba | [
"MIT"
] | null | null | null | defmodule ElixirInAction do
end
| 10.666667 | 27 | 0.875 |
aca7cfe4487d7bd3c528823e8a31f875ff1325eb | 3,050 | exs | Elixir | apps/sms_code/config/sms_code.schema.exs | puppetlabs/openrobby | a4b70939ee1b878d44cb09d757b7f72e7109ac5d | [
"Apache-2.0"
] | 3 | 2021-04-16T21:54:55.000Z | 2021-04-30T22:15:41.000Z | apps/sms_code/config/sms_code.schema.exs | puppetlabs/openrobby | a4b70939ee1b878d44cb09d757b7f72e7109ac5d | [
"Apache-2.0"
] | 1 | 2021-06-29T15:54:19.000Z | 2021-06-29T15:54:19.000Z | apps/sms_code/config/sms_code.schema.exs | puppetlabs/openrobby | a4b70939ee1b878d44cb09d757b7f72e7109ac5d | [
"Apache-2.0"
] | 2 | 2021-04-16T22:23:16.000Z | 2021-05-26T15:52:55.000Z | @moduledoc """
A schema is a keyword list which represents how to map, transform, and validate
configuration values parsed from the .conf file. The following is an explanation of
each key in the schema definition in order of appearance, and how to use them.
## Import
A list of application names (as atoms), which repr... | 36.746988 | 94 | 0.730164 |
aca7d52e7e14ca86c1b3a8fb271725ebe109895e | 2,829 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/owner_reference.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/owner_reference.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/owner_reference.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... | 45.629032 | 375 | 0.709084 |
aca7f8a0f6ded7b0ca38cd21d8768b9c30e3a5e0 | 3,781 | ex | Elixir | lib/petal_components/avatar.ex | c4710n/petal_components | 62392b067a4dec8ce76219eea0bfe6a6747925ce | [
"MIT"
] | 215 | 2021-11-04T23:47:18.000Z | 2022-03-31T11:53:15.000Z | lib/petal_components/avatar.ex | c4710n/petal_components | 62392b067a4dec8ce76219eea0bfe6a6747925ce | [
"MIT"
] | 22 | 2021-11-06T01:49:27.000Z | 2022-03-28T03:05:40.000Z | lib/petal_components/avatar.ex | c4710n/petal_components | 62392b067a4dec8ce76219eea0bfe6a6747925ce | [
"MIT"
] | 22 | 2021-11-16T20:44:33.000Z | 2022-03-28T11:46:33.000Z | defmodule PetalComponents.Avatar do
use Phoenix.Component
alias PetalComponents.Heroicons
import PetalComponents.Class
# prop src, :string
# prop size, :string
def avatar(assigns) do
assigns =
assigns
|> assign_new(:src, fn -> nil end)
|> assign_new(:size, fn -> "md" end)
|> as... | 26.256944 | 146 | 0.560169 |
aca801f8f3453658e7a0d3222abec41029e36d27 | 4,118 | ex | Elixir | lib/singyeong/metadata/update_queue.ex | queer/singyeong | 3d2f5c1052100ed70bb3a4dddd8e22e3ef0df15a | [
"BSD-3-Clause"
] | 70 | 2018-10-25T06:06:37.000Z | 2022-03-14T19:51:56.000Z | lib/singyeong/metadata/update_queue.ex | queer/singyeong | 3d2f5c1052100ed70bb3a4dddd8e22e3ef0df15a | [
"BSD-3-Clause"
] | 140 | 2019-02-19T06:52:59.000Z | 2022-03-01T11:13:41.000Z | lib/singyeong/metadata/update_queue.ex | queer/singyeong | 3d2f5c1052100ed70bb3a4dddd8e22e3ef0df15a | [
"BSD-3-Clause"
] | 9 | 2019-03-20T12:17:28.000Z | 2021-03-11T18:51:00.000Z | defmodule Singyeong.Metadata.UpdateQueue do
@moduledoc """
A non-WS-pid worker that processes metadata updates for connected clients.
A metadata queue worker will only process max(50, queue_size / 10) updates
per second, at most, for the sake of not abusing the CPU. This means that if
a single client is sendi... | 35.196581 | 132 | 0.640359 |
aca806069b5f2d62840ef7bb2136d8a5f78905f3 | 1,974 | exs | Elixir | test/Processmon/SubscriptionManager_test.exs | zzats/processmon | c22ce9b56b7ccb25511f3afbf59dc3abcb60add0 | [
"MIT"
] | 1 | 2018-07-04T11:07:07.000Z | 2018-07-04T11:07:07.000Z | test/Processmon/SubscriptionManager_test.exs | zzats/processmon | c22ce9b56b7ccb25511f3afbf59dc3abcb60add0 | [
"MIT"
] | null | null | null | test/Processmon/SubscriptionManager_test.exs | zzats/processmon | c22ce9b56b7ccb25511f3afbf59dc3abcb60add0 | [
"MIT"
] | null | null | null | defmodule Processmon.SubscriptionManager.Test do
use ExUnit.Case
alias Processmon.SubscriptionManager
defp handle_receive() do
receive do
something -> something
end
end
defp spawn_proxy(target) do
receive_once = fn ->
result = receive do
something -> send(target, something)... | 24.675 | 75 | 0.676292 |
aca82b8439348fe43cd04af3d43320cc4d665df3 | 1,447 | exs | Elixir | apps/publishing/test/publishing/interact/daily_impression_counter_test.exs | felipelincoln/branchpage | 6f3ca7dfafe884af40883f84f3eb825bb061c974 | [
"MIT"
] | 49 | 2021-06-06T05:40:30.000Z | 2021-08-23T04:50:46.000Z | apps/publishing/test/publishing/interact/daily_impression_counter_test.exs | felipelincoln/mvp | 6f3ca7dfafe884af40883f84f3eb825bb061c974 | [
"MIT"
] | 40 | 2021-01-09T16:50:50.000Z | 2021-10-01T16:27:35.000Z | apps/publishing/test/publishing/interact/daily_impression_counter_test.exs | felipelincoln/mvp | 6f3ca7dfafe884af40883f84f3eb825bb061c974 | [
"MIT"
] | 5 | 2021-02-20T12:58:39.000Z | 2022-02-01T02:23:23.000Z | defmodule Publishing.Interact.DailyImpressionCounterTest do
use Publishing.DataCase, async: true
import Publishing.ChangesetHelpers
alias Publishing.Factory
alias Publishing.Interact.DailyImpressionCounter
@invalid_cast_attrs %{count: "hum", article_id: 1}
setup do
article = Factory.insert(:article)
... | 31.456522 | 98 | 0.730477 |
aca843379ed3ffe501c55537e3a26b433fea2cb4 | 986 | ex | Elixir | lib/tcs34725/const.ex | sschneider1207/tcs34725 | c7711c1dcc613dc6333bcfca5e775fd3a6885632 | [
"MIT"
] | null | null | null | lib/tcs34725/const.ex | sschneider1207/tcs34725 | c7711c1dcc613dc6333bcfca5e775fd3a6885632 | [
"MIT"
] | null | null | null | lib/tcs34725/const.ex | sschneider1207/tcs34725 | c7711c1dcc613dc6333bcfca5e775fd3a6885632 | [
"MIT"
] | 1 | 2020-08-11T17:40:59.000Z | 2020-08-11T17:40:59.000Z | defmodule TCS34725.Const do
defmacro address, do: 0x29
defmacro command_bit, do: 0x80
defmacro id, do: 0x12
defmacro atime, do: 0x01
defmacro control, do: 0x0F
defmacro enable, do: 0x00
defmacro enable_pon, do: 0x01
defmacro enable_aen, do: 0x02
defmacro cdatal, do: 0x14
defmacro rdata... | 21.434783 | 75 | 0.710953 |
aca84c0fa0dda0873582617a122f98ef164d1069 | 593 | exs | Elixir | test/views/error_view_test.exs | wsmoak/my_app_810758 | 2fe9e2ed05f9df4577676e2029910ff59d6fce89 | [
"MIT"
] | null | null | null | test/views/error_view_test.exs | wsmoak/my_app_810758 | 2fe9e2ed05f9df4577676e2029910ff59d6fce89 | [
"MIT"
] | null | null | null | test/views/error_view_test.exs | wsmoak/my_app_810758 | 2fe9e2ed05f9df4577676e2029910ff59d6fce89 | [
"MIT"
] | null | null | null | defmodule MyApp_810758.ErrorViewTest do
use MyApp_810758.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(MyApp_810758.ErrorView, "404.html", []) ==
"Page not found"
end
test "rende... | 26.954545 | 70 | 0.689713 |
aca88b0903ce37eed2e70cf9912ed63d71cf37ed | 12,924 | exs | Elixir | test/ueberauth/strategy/cognito_test.exs | mdillavou/ueberauth_cognito | c0ea591d64590575b1c890a8488d5845a66465a8 | [
"MIT"
] | null | null | null | test/ueberauth/strategy/cognito_test.exs | mdillavou/ueberauth_cognito | c0ea591d64590575b1c890a8488d5845a66465a8 | [
"MIT"
] | null | null | null | test/ueberauth/strategy/cognito_test.exs | mdillavou/ueberauth_cognito | c0ea591d64590575b1c890a8488d5845a66465a8 | [
"MIT"
] | null | null | null | defmodule Ueberauth.Strategy.CognitoTest do
use ExUnit.Case
use Plug.Test
alias Ueberauth.Strategy.Cognito
defmodule FakeHackneySuccess do
def request(:post, _url, _headers, _body) do
{:ok, 200, [], :successful_post_ref}
end
def request(:get, "https://cognito-idp" <> _) do
{:ok, 200, [... | 29.574371 | 94 | 0.56662 |
aca88f85ead8e0fda1152f930dd9d93cba9aab2c | 8,020 | ex | Elixir | apps/tai/lib/tai/venue_adapters/deribit/stream/connection.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/venue_adapters/deribit/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/deribit/stream/connection.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | defmodule Tai.VenueAdapters.Deribit.Stream.Connection do
use WebSockex
alias Tai.VenueAdapters.Deribit.Stream
defmodule State do
@type product :: Tai.Venues.Product.t()
@type account :: Tai.Venues.Account.t()
@type venue :: Tai.Venue.id()
@type credential_id :: Tai.Venue.credential_id()
@type... | 24.906832 | 89 | 0.588903 |
aca892fa51e509917db47a88de16c1d9300cc1c6 | 1,380 | ex | Elixir | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/get_iam_policy_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/get_iam_policy_request.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/get_iam_policy_request.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... | 32.093023 | 86 | 0.766667 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.