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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1af2b81540be73adbcbbd83368d90391593a2caa | 1,750 | ex | Elixir | backend/lib/windshield_web.ex | EOS-CSX/windshield-docker | 77769dfd16a0b2da09fef2a62b5d393647f0aa6b | [
"MIT"
] | 19 | 2018-06-07T23:28:34.000Z | 2019-04-23T18:57:43.000Z | backend/lib/windshield_web.ex | EOS-CSX/windshield-docker | 77769dfd16a0b2da09fef2a62b5d393647f0aa6b | [
"MIT"
] | 27 | 2018-06-10T14:38:55.000Z | 2018-10-10T23:28:43.000Z | backend/lib/windshield_web.ex | EOS-CSX/windshield-docker | 77769dfd16a0b2da09fef2a62b5d393647f0aa6b | [
"MIT"
] | 7 | 2018-06-08T01:38:46.000Z | 2022-01-12T18:25:34.000Z | defmodule WindshieldWeb 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 WindshieldWeb, :controller
use WindshieldWeb, :view
The definitions below will be executed for every view,
con... | 23.333333 | 69 | 0.687429 |
1af2b8ea7c530ad9f002cf7771f45f054533541b | 611 | ex | Elixir | test/support/review.ex | clszzyh/flexflow | 93df67c41278c2ca89c680dd8badb7a1f9f86cdf | [
"MIT"
] | 2 | 2021-02-05T02:07:17.000Z | 2021-07-31T22:38:54.000Z | test/support/review.ex | clszzyh/flexflow | 93df67c41278c2ca89c680dd8badb7a1f9f86cdf | [
"MIT"
] | 79 | 2021-01-14T02:39:36.000Z | 2022-03-31T02:06:27.000Z | test/support/review.ex | clszzyh/flexflow | 93df67c41278c2ca89c680dd8badb7a1f9f86cdf | [
"MIT"
] | null | null | null | defmodule FlexflowReviewTest do
@moduledoc false
@external_resource Path.join([__DIR__, "../../README.md"])
@external_resource
|> File.read!()
|> String.split("<!-- MDOC -->")
|> Enum.fetch!(1)
|> EarmarkParser.as_ast()
|> case do
{:ok, ast, _} ->
ast
|> Enum.find_value(fn x ->
... | 21.821429 | 76 | 0.512275 |
1af2d0f4be17c7ecff34385d41f23bca8cafad0c | 1,192 | ex | Elixir | lib/groupher_server/cms/models/guide_document.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | lib/groupher_server/cms/models/guide_document.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | lib/groupher_server/cms/models/guide_document.ex | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.CMS.Model.GuideDocument do
@moduledoc """
mainly for full-text search
"""
alias __MODULE__
use Ecto.Schema
use Accessible
import Ecto.Changeset
import Helper.Utils, only: [get_config: 2]
alias GroupherServer.CMS
alias CMS.Model.Guide
@timestamps_opts [type: :utc_dateti... | 24.833333 | 75 | 0.711409 |
1af2eef15d7c039616ce2137b07a7706d8e515c0 | 367 | exs | Elixir | priv/repo/seeds.exs | Skoda091/dobble-generator | 6dd084d6af55beeac4369772a3cba1be76ec8d41 | [
"MIT"
] | 4 | 2020-04-11T23:00:13.000Z | 2022-02-07T14:51:18.000Z | priv/repo/seeds.exs | Skoda091/dobble-generator | 6dd084d6af55beeac4369772a3cba1be76ec8d41 | [
"MIT"
] | 2 | 2021-03-10T13:32:34.000Z | 2021-05-11T09:27:10.000Z | priv/repo/seeds.exs | Skoda091/dobble-generator | 6dd084d6af55beeac4369772a3cba1be76ec8d41 | [
"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:
#
# DobbleGenerator.Repo.insert!(%DobbleGenerator.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so ... | 30.583333 | 65 | 0.719346 |
1af3026fe38ffa1e5249dd382fa5889a64f182e1 | 647 | ex | Elixir | web/models/comment.ex | drdean/jelly | 44ca6d90e0c7ce62ccd458795f54dac4d10e8cfc | [
"MIT"
] | null | null | null | web/models/comment.ex | drdean/jelly | 44ca6d90e0c7ce62ccd458795f54dac4d10e8cfc | [
"MIT"
] | null | null | null | web/models/comment.ex | drdean/jelly | 44ca6d90e0c7ce62ccd458795f54dac4d10e8cfc | [
"MIT"
] | null | null | null | defmodule JellyBoard.Comment do
use JellyBoard.Web, :model
@derive {Poison.Encoder, only: [:id, :user, :card_id, :text, :inserted_at]}
schema "comments" do
field :text, :string
belongs_to :user, JellyBoard.User
belongs_to :card, JellyBoard.Card
timestamps
end
@required_fields ~w(user_id c... | 22.310345 | 77 | 0.693972 |
1af31324de43efd92f63919d9e32593c2ab6b35d | 1,266 | ex | Elixir | lib/veil/cache.ex | optikfluffel/veil | 9c22a0370e9ea9fa6f1c7f04666d91109a7dff97 | [
"MIT"
] | 164 | 2018-02-10T21:33:40.000Z | 2022-03-15T06:10:50.000Z | lib/veil/cache.ex | optikfluffel/veil | 9c22a0370e9ea9fa6f1c7f04666d91109a7dff97 | [
"MIT"
] | 21 | 2018-02-15T02:31:40.000Z | 2021-04-04T07:16:43.000Z | lib/veil/cache.ex | optikfluffel/veil | 9c22a0370e9ea9fa6f1c7f04666d91109a7dff97 | [
"MIT"
] | 14 | 2018-03-24T11:15:07.000Z | 2020-06-28T12:33:38.000Z | defmodule Veil.Cache do
@moduledoc """
A cache to store sessions, to reduce database calls
"""
@doc """
If the changeset provided is valid, saves it in the cache under it's identifier, and executes the repo function
"""
def put(changeset, cache, repo_function, identifier \\ & &1.id) do
if changeset.v... | 26.375 | 113 | 0.620853 |
1af327b4004c5a176bc581c9a26547a986ce42d7 | 522 | ex | Elixir | lib/ex_doc_dash/util.ex | jsmestad/ExDocDash | 8dd309b57b4970ff5465d7c11dc1fa963dbadb1d | [
"MIT"
] | null | null | null | lib/ex_doc_dash/util.ex | jsmestad/ExDocDash | 8dd309b57b4970ff5465d7c11dc1fa963dbadb1d | [
"MIT"
] | null | null | null | lib/ex_doc_dash/util.ex | jsmestad/ExDocDash | 8dd309b57b4970ff5465d7c11dc1fa963dbadb1d | [
"MIT"
] | null | null | null | defmodule ExDocDash.Util do
def templates_path(other) do
Path.expand(other, Application.app_dir(:ex_doc_dash, "priv/templates"))
end
def assets do
[
{templates_path("stylesheets/*.css"), "stylesheets"},
{templates_path("javascripts/*.js"), "javascripts"},
{templates_path("fonts/*"), "fo... | 23.727273 | 75 | 0.655172 |
1af34600b04e2d4bebd49f780c0274171ed8cc08 | 7,462 | ex | Elixir | lib/fxnk/logic.ex | matthewsecrist/fxnk | 3f489f6069ba09b959bb3e8f22c7b9f1fa1d5e45 | [
"MIT"
] | 2 | 2020-10-16T19:05:07.000Z | 2020-12-30T19:59:40.000Z | lib/fxnk/logic.ex | matthewsecrist/fxnk | 3f489f6069ba09b959bb3e8f22c7b9f1fa1d5e45 | [
"MIT"
] | 1 | 2020-10-16T19:09:55.000Z | 2020-10-16T21:31:30.000Z | lib/fxnk/logic.ex | matthewsecrist/fxnk | 3f489f6069ba09b959bb3e8f22c7b9f1fa1d5e45 | [
"MIT"
] | null | null | null | defmodule Fxnk.Logic do
@moduledoc """
`Fxnk.Logic` are functions for dealing with booleans.
"""
import Fxnk.Functions, only: [curry: 1]
@doc """
Curried `and?/2`.
## Examples
iex> isTwo? = Fxnk.Logic.and?(2)
iex> isTwo?.(2)
true
iex> isTwo?.(3)
false
"""
@spec and?(any... | 23.173913 | 127 | 0.56446 |
1af367a4061147aa573ac60c75a0a3c5e75d292a | 1,283 | ex | Elixir | ros/ros_ui_admin/lib/ros_ui_admin_web/endpoint.ex | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | 1 | 2019-07-01T18:47:28.000Z | 2019-07-01T18:47:28.000Z | ros/ros_ui_admin/lib/ros_ui_admin_web/endpoint.ex | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | 4 | 2020-07-17T16:57:18.000Z | 2021-05-09T23:50:52.000Z | ros/ros_ui_admin/lib/ros_ui_admin_web/endpoint.ex | kujua/elixir-handbook | 4185ad8da7f652fdb59c799dc58bcb33fda10475 | [
"Apache-2.0"
] | null | null | null | defmodule Ros.AdminWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :ros_ui_admin
socket "/socket", Ros.AdminWeb.UserSocket,
websocket: true,
longpoll: false
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.digest
# when deploying y... | 27.297872 | 69 | 0.711613 |
1af369d2463742161e8ca7f26281738938ab4493 | 513 | exs | Elixir | priv/repo/migrations/20180616180556_rework_unique_indexes_on_exits.exs | stevegrossi/ex_venture | e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | priv/repo/migrations/20180616180556_rework_unique_indexes_on_exits.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | priv/repo/migrations/20180616180556_rework_unique_indexes_on_exits.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Data.Repo.Migrations.ReworkUniqueIndexesOnExits do
use Ecto.Migration
def up do
drop index(:exits, [:direction, :start_room_id, :finish_room_id], name: :exits_direction_start_id_finish_id_index)
create index(:exits, [:direction, :start_room_id], unique: true)
create index(:exits, [:direction... | 39.461538 | 118 | 0.744639 |
1af3744911ade154a414bac2648ba26f530769e1 | 1,678 | ex | Elixir | apps/graphql/lib/graphql/resolvers/version.ex | michaeljguarino/forge | 50ee583ecb4aad5dee4ef08fce29a8eaed1a0824 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/graphql/lib/graphql/resolvers/version.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/graphql/lib/graphql/resolvers/version.ex | svilenkov/plural | ac6c6cc15ac4b66a3b5e32ed4a7bee4d46d1f026 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | defmodule GraphQl.Resolvers.Version do
use GraphQl.Resolvers.Base, model: Core.Schema.Version
alias Core.Services.{Versions}
alias Core.Schema.{VersionTag, PackageScan, ScanViolation, ScanError}
def query(VersionTag, _), do: VersionTag
def query(PackageScan, _), do: PackageScan
def query(ScanViolation, _),... | 34.958333 | 98 | 0.675805 |
1af39325d6287334afb3826ba7a4682f72db6ce8 | 748 | ex | Elixir | lib/inventory_management_web/gettext.ex | web2solutions/inventory_management | 5ade39c983e344caa53db5fe4eb0684ba08b5dd1 | [
"MIT"
] | null | null | null | lib/inventory_management_web/gettext.ex | web2solutions/inventory_management | 5ade39c983e344caa53db5fe4eb0684ba08b5dd1 | [
"MIT"
] | null | null | null | lib/inventory_management_web/gettext.ex | web2solutions/inventory_management | 5ade39c983e344caa53db5fe4eb0684ba08b5dd1 | [
"MIT"
] | null | null | null | defmodule InventoryManagementWeb.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](https://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import InventoryManagementWeb.Gettext
# Simple translation
... | 29.92 | 72 | 0.69385 |
1af3a42a936d38a294d50d78753f0f408c1a4994 | 3,546 | ex | Elixir | lib/music_sync/sync.ex | ZucchiniZe/music_sync | 23550e5aa71503dfdbad39f49cfcd83bd98ce457 | [
"MIT"
] | 2 | 2021-07-27T10:39:02.000Z | 2021-12-18T06:55:42.000Z | lib/music_sync/sync.ex | ZucchiniZe/music_sync | 23550e5aa71503dfdbad39f49cfcd83bd98ce457 | [
"MIT"
] | null | null | null | lib/music_sync/sync.ex | ZucchiniZe/music_sync | 23550e5aa71503dfdbad39f49cfcd83bd98ce457 | [
"MIT"
] | null | null | null | defmodule MusicSync.Sync do
@moduledoc """
The module that actually takes all the code from everywhere and starts to sync
things between places.
Each function should mark what outside services it interacts with for quick
reference.
## Reference
Here is how the flow of operations should work.
iex... | 30.834783 | 97 | 0.681049 |
1af3ae64f6392dc8747de271609274d39a67c5b8 | 1,233 | ex | Elixir | lib/nostrum/application.ex | defnorep/nostrum | daf869afc0f98fd132460296a2c999fea033fd63 | [
"MIT"
] | null | null | null | lib/nostrum/application.ex | defnorep/nostrum | daf869afc0f98fd132460296a2c999fea033fd63 | [
"MIT"
] | null | null | null | lib/nostrum/application.ex | defnorep/nostrum | daf869afc0f98fd132460296a2c999fea033fd63 | [
"MIT"
] | null | null | null | defmodule Nostrum.Application do
@moduledoc false
use Application
@doc false
def start(_, _) do
import Supervisor.Spec
if !Application.get_env(:nostrum, :token), do: raise("Please supply a token")
num_shards = Application.get_env(:nostrum, :num_shards)
corrected_num_shards = if num_shards, d... | 29.357143 | 88 | 0.678832 |
1af3c6c763cca782e40e0c498be3fc29499eccf9 | 2,025 | ex | Elixir | lib/cloudfront_signer.ex | qstream/cloudfront-signer | 515dafb4408a85439aa56a5deccd6cf17def2e11 | [
"MIT"
] | null | null | null | lib/cloudfront_signer.ex | qstream/cloudfront-signer | 515dafb4408a85439aa56a5deccd6cf17def2e11 | [
"MIT"
] | 1 | 2022-01-31T15:05:07.000Z | 2022-01-31T15:05:07.000Z | lib/cloudfront_signer.ex | qstream/cloudfront-signer | 515dafb4408a85439aa56a5deccd6cf17def2e11 | [
"MIT"
] | null | null | null | defmodule CloudfrontSigner do
@moduledoc """
Elixir implementation of cloudfront's signed url algorithm. Basic usage is:
```
CloudfrontSigner.Distribution.from_config(:scope, :key)
|> CloudfrontSigner.sign("some/path", [arg: "val"], some_expiry)
```
"""
alias CloudfrontSigner.{Distribution, Policy, Si... | 38.207547 | 118 | 0.701235 |
1af3f43f37613857ed7dab94b019aa30a96b29b3 | 1,096 | exs | Elixir | config/test.exs | cristineguadelupe/tapebas | 5f8c70d5ac36b2a606fe4630cc659161b2f4d7bf | [
"MIT"
] | 3 | 2022-03-24T16:48:38.000Z | 2022-03-24T16:50:04.000Z | config/test.exs | cristineguadelupe/tapebas | 5f8c70d5ac36b2a606fe4630cc659161b2f4d7bf | [
"MIT"
] | null | null | null | config/test.exs | cristineguadelupe/tapebas | 5f8c70d5ac36b2a606fe4630cc659161b2f4d7bf | [
"MIT"
] | 1 | 2022-03-20T01:11:12.000Z | 2022-03-20T01:11:12.000Z | import Config
# Only in tests, remove the complexity from the password hashing algorithm
config :bcrypt_elixir, :log_rounds, 1
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
co... | 32.235294 | 86 | 0.761861 |
1af4452dc3f285d35efaa26b6c37f0fc5ee98d9c | 3,028 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_intent_training_phrase.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_intent_training_phrase.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_intent_training_phrase.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.878788 | 941 | 0.745376 |
1af46cfeb92f5b788dd812250e4e9cae683943ec | 1,602 | ex | Elixir | lib/expr/ops.ex | arago/expr | 0a3f9414f8f2334822af1d5933c648952dd38138 | [
"MIT"
] | null | null | null | lib/expr/ops.ex | arago/expr | 0a3f9414f8f2334822af1d5933c648952dd38138 | [
"MIT"
] | null | null | null | lib/expr/ops.ex | arago/expr | 0a3f9414f8f2334822af1d5933c648952dd38138 | [
"MIT"
] | 1 | 2021-07-01T09:00:35.000Z | 2021-07-01T09:00:35.000Z | defmodule Expr.Ops do
alias __MODULE__
def __struct__ do
%{
:p => nil,
:f => nil,
:a => :r
}
end
def oprs do
%{"#" => %Ops{:p => 4, :f => &(&1 * - 1)},
"!" => %Ops{:p => 4, :f => &fact/1},
"abs" => %Ops{:p => 4, :f => &abs/1},
"sin" => %Ops{:p =>... | 29.127273 | 62 | 0.34769 |
1af47d50cad937bf0d974c2acec921daaceda900 | 336 | ex | Elixir | test/commands/support/identity/identity_aggregate.ex | mquickform/commanded | 260b1ec28c2fb3c1fcbb61b8c4abacabd7dc7ed2 | [
"MIT"
] | null | null | null | test/commands/support/identity/identity_aggregate.ex | mquickform/commanded | 260b1ec28c2fb3c1fcbb61b8c4abacabd7dc7ed2 | [
"MIT"
] | 1 | 2018-12-05T18:17:08.000Z | 2018-12-05T18:17:08.000Z | test/commands/support/identity/identity_aggregate.ex | mquickform/commanded | 260b1ec28c2fb3c1fcbb61b8c4abacabd7dc7ed2 | [
"MIT"
] | 1 | 2018-12-05T18:15:03.000Z | 2018-12-05T18:15:03.000Z | defmodule Commanded.Commands.IdentityAggregate do
@moduledoc false
defstruct [uuid: nil]
defmodule IdentityCommand, do: defstruct [:uuid]
defmodule IdentityEvent, do: defstruct [:uuid]
def execute(%__MODULE__{}, %IdentityCommand{uuid: uuid}), do: %IdentityEvent{uuid: uuid}
def apply(aggregate, _event), do... | 30.545455 | 90 | 0.755952 |
1af48cc6c812449b4b87f7b7d7314061fe7ba7c3 | 2,919 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__video_annotation_progress.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__video_annotation_progress.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__video_annotation_progress.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... | 39.445946 | 225 | 0.729359 |
1af49d5523e2eaa223acb998ecadd2c51f311d6a | 3,326 | ex | Elixir | clients/partners/lib/google_api/partners/v2/model/user_profile.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/partners/lib/google_api/partners/v2/model/user_profile.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/partners/lib/google_api/partners/v2/model/user_profile.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 44.346667 | 212 | 0.729405 |
1af4e5f6213c0b46ae218cc24748d40970719016 | 6,266 | exs | Elixir | test/ex_ical_daily_test.exs | rhumbertgz/ex_ical | b445d09edcc92b83cc50b891e0eb9c83c6508135 | [
"MIT"
] | 23 | 2016-03-18T11:30:24.000Z | 2019-05-27T17:23:35.000Z | test/ex_ical_daily_test.exs | rhumbertgz/ex_ical | b445d09edcc92b83cc50b891e0eb9c83c6508135 | [
"MIT"
] | 16 | 2016-06-11T05:15:00.000Z | 2019-05-10T11:57:50.000Z | test/ex_ical_daily_test.exs | rhumbertgz/ex_ical | b445d09edcc92b83cc50b891e0eb9c83c6508135 | [
"MIT"
] | 17 | 2016-05-20T11:59:37.000Z | 2021-01-24T07:14:14.000Z | defmodule ExIcalDailyTest do
use ExUnit.Case
alias ExIcal.DateParser
doctest ExIcal
test "daily reccuring event with until" do
ical = """
BEGIN:VCALENDAR
CALSCALE:GREGORIAN
VERSION:2.0
BEGIN:VEVENT
RRULE:FREQ=DAILY;UNTIL=20151231T083000Z
DESCRIPTION:Let's go see Star Wars.
DTEN... | 33.153439 | 126 | 0.697574 |
1af4e8949fbea4906d17fc49c2f781dbaa949f9c | 1,436 | ex | Elixir | apps/omg_watcher_rpc/lib/web/controllers/account.ex | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | 1 | 2020-05-01T12:30:09.000Z | 2020-05-01T12:30:09.000Z | apps/omg_watcher_rpc/lib/web/controllers/account.ex | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher_rpc/lib/web/controllers/account.ex | karmonezz/elixir-omg | 3b26fc072fa553992277e1b9c4bad37b3d61ec6a | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 28.156863 | 74 | 0.692201 |
1af51d0d2037578aebc230010cc8e748fc015ce6 | 2,499 | ex | Elixir | clients/secret_manager/lib/google_api/secret_manager/v1/model/secret_version.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/secret_manager/lib/google_api/secret_manager/v1/model/secret_version.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/secret_manager/lib/google_api/secret_manager/v1/model/secret_version.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... | 42.355932 | 258 | 0.719888 |
1af5389db205c7be2eee465773f3c98b302dd434 | 988 | ex | Elixir | lib/contai_web/views/error_view.ex | AkioCode/calculatorAPI_ex | e4fc9e8d4df69f8a50c021b6fb7cd55dfb9436e2 | [
"MIT"
] | null | null | null | lib/contai_web/views/error_view.ex | AkioCode/calculatorAPI_ex | e4fc9e8d4df69f8a50c021b6fb7cd55dfb9436e2 | [
"MIT"
] | null | null | null | lib/contai_web/views/error_view.ex | AkioCode/calculatorAPI_ex | e4fc9e8d4df69f8a50c021b6fb7cd55dfb9436e2 | [
"MIT"
] | null | null | null | defmodule ContaiWeb.ErrorView do
use ContaiWeb, :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 returns the... | 30.875 | 83 | 0.683198 |
1af56efa3fc7178199564faed3d0a101e90eb26b | 45 | ex | Elixir | lib/exq_limit.ex | ananthakumaran/exq_limit | d5ccd0ee5da97f1b1e4a7a267be8c21d048f6f5b | [
"MIT"
] | 8 | 2020-07-11T14:43:05.000Z | 2021-07-21T15:10:36.000Z | lib/exq_limit.ex | ananthakumaran/exq_limit | d5ccd0ee5da97f1b1e4a7a267be8c21d048f6f5b | [
"MIT"
] | null | null | null | lib/exq_limit.ex | ananthakumaran/exq_limit | d5ccd0ee5da97f1b1e4a7a267be8c21d048f6f5b | [
"MIT"
] | null | null | null | defmodule ExqLimit do
@moduledoc false
end
| 11.25 | 21 | 0.8 |
1af5a4216014e0734e5e6e1fe435a827de0a1497 | 859 | exs | Elixir | test/absinthe/schema/hydrate_dynamic_values_test.exs | arturs678/absinthe | 0d842c46e5d21399d66919cdaadfa8927fbca74d | [
"MIT"
] | 4,101 | 2016-03-02T03:49:20.000Z | 2022-03-31T05:46:01.000Z | test/absinthe/schema/hydrate_dynamic_values_test.exs | arturs678/absinthe | 0d842c46e5d21399d66919cdaadfa8927fbca74d | [
"MIT"
] | 889 | 2016-03-02T16:06:59.000Z | 2022-03-31T20:24:12.000Z | test/absinthe/schema/hydrate_dynamic_values_test.exs | arturs678/absinthe | 0d842c46e5d21399d66919cdaadfa8927fbca74d | [
"MIT"
] | 564 | 2016-03-02T07:49:59.000Z | 2022-03-06T14:40:59.000Z | defmodule HydrateDynamicValuesTest do
use ExUnit.Case, async: true
defmodule Schema do
use Absinthe.Schema
enum :color do
value :red
value :blue
value :green
end
query do
field :all, list_of(:color) do
resolve fn _, _, _ -> {:ok, [1, 2, 3]} end
end
end
... | 22.025641 | 98 | 0.594878 |
1af5aee5d260a179d6d9a4cbb367d8544bd26d97 | 2,300 | ex | Elixir | lib/playground_web/controllers/article_controller.ex | EasterPeanut/phoenix-playground | 391e52c7cf805d8acabb265989c801923438c624 | [
"MIT"
] | null | null | null | lib/playground_web/controllers/article_controller.ex | EasterPeanut/phoenix-playground | 391e52c7cf805d8acabb265989c801923438c624 | [
"MIT"
] | null | null | null | lib/playground_web/controllers/article_controller.ex | EasterPeanut/phoenix-playground | 391e52c7cf805d8acabb265989c801923438c624 | [
"MIT"
] | null | null | null | defmodule PlaygroundWeb.ArticleController do
use PlaygroundWeb, :controller
alias Playground.Learnables
alias Playground.Learnables.Article
def index(conn, _params) do
articles = Learnables.list_articles()
render(conn, "index.html", articles: articles)
end
def new(conn, _params) do
changeset ... | 29.87013 | 78 | 0.661304 |
1af5b3c95d2355f81ae5e1fbc072865d7894843f | 791 | ex | Elixir | lib/nerves_hub/client/default.ex | danielspofford/nerves_hub | b58430be163fd84988900cab3225538bd4e0520a | [
"Apache-2.0"
] | null | null | null | lib/nerves_hub/client/default.ex | danielspofford/nerves_hub | b58430be163fd84988900cab3225538bd4e0520a | [
"Apache-2.0"
] | null | null | null | lib/nerves_hub/client/default.ex | danielspofford/nerves_hub | b58430be163fd84988900cab3225538bd4e0520a | [
"Apache-2.0"
] | null | null | null | defmodule NervesHub.Client.Default do
@moduledoc """
Default Client implementation.
Always applies an update. Never Reschedules
"""
@behaviour NervesHub.Client
require Logger
@impl NervesHub.Client
def update_available(_), do: :apply
@impl NervesHub.Client
def handle_fwup_message({:progress, perc... | 22.6 | 77 | 0.704172 |
1af5c165269e9e1438b64ded3ae4edc0b5ee95ce | 3,206 | ex | Elixir | apps/neoscan_sync/lib/neoscan_sync/syncer.ex | ephdtrg/neo-scan | 100966b6dd10476b9162d01a782e30a8ceb7a88a | [
"MIT"
] | 1 | 2019-12-16T17:21:21.000Z | 2019-12-16T17:21:21.000Z | apps/neoscan_sync/lib/neoscan_sync/syncer.ex | ephdtrg/neo-scan | 100966b6dd10476b9162d01a782e30a8ceb7a88a | [
"MIT"
] | null | null | null | apps/neoscan_sync/lib/neoscan_sync/syncer.ex | ephdtrg/neo-scan | 100966b6dd10476b9162d01a782e30a8ceb7a88a | [
"MIT"
] | null | null | null | defmodule NeoscanSync.Syncer do
alias Ecto.ConstraintError
alias NeoscanSync.Converter
alias Neoscan.Repo
alias Neoscan.Blocks
use GenServer
require Logger
@parallelism 16
@update_interval 1_000
@block_chunk_size 500
def start_link do
GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
... | 26.941176 | 96 | 0.66781 |
1af5c93d341420536d3dbcc40083de9f07558e59 | 1,094 | exs | Elixir | test/upload/adapters/test_test.exs | artemeff/upload | ab495e79caed499c0c80d273e581887b7df51b9d | [
"MIT"
] | 30 | 2017-12-23T15:00:30.000Z | 2021-09-29T19:33:09.000Z | test/upload/adapters/test_test.exs | artemeff/upload | ab495e79caed499c0c80d273e581887b7df51b9d | [
"MIT"
] | 6 | 2018-05-03T18:44:36.000Z | 2021-04-21T17:15:25.000Z | test/upload/adapters/test_test.exs | artemeff/upload | ab495e79caed499c0c80d273e581887b7df51b9d | [
"MIT"
] | 5 | 2019-09-27T16:37:58.000Z | 2021-10-04T21:04:35.000Z | defmodule Upload.Adapters.TestTest do
use ExUnit.Case, async: true
alias Upload.Adapters.Test, as: Adapter
doctest Upload.Adapters.Test
@fixture Path.expand("../../fixtures/text.txt", __DIR__)
@upload %Upload{path: @fixture, filename: "text.txt", key: "foo/text.txt"}
setup do
{:ok, _} = start_superv... | 27.35 | 89 | 0.665448 |
1af5d8d089ce2fffb3660e5de900c72c9896ede2 | 255 | ex | Elixir | lib/course_planner_web/views/teacher_view.ex | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 38 | 2017-04-11T13:37:38.000Z | 2021-05-22T19:35:36.000Z | lib/course_planner_web/views/teacher_view.ex | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 226 | 2017-04-07T13:14:14.000Z | 2018-03-08T16:50:11.000Z | lib/course_planner_web/views/teacher_view.ex | digitalnatives/course_planner | 27b1c8067edc262685e9c4dcbfcf82633bc8b8dc | [
"MIT"
] | 7 | 2017-08-30T23:58:13.000Z | 2021-03-28T11:50:45.000Z | defmodule CoursePlannerWeb.TeacherView do
@moduledoc false
use CoursePlannerWeb, :view
alias CoursePlanner.Accounts.Teachers
def teacher_courses(teacher_id) do
Teachers.courses(teacher_id)
end
def page_title do
"Teachers"
end
end
| 17 | 41 | 0.768627 |
1af5f94296a6dfada9a8ff596322222c8014d8cc | 5,650 | exs | Elixir | test/controllers/cards_controller_test.exs | StabbyMcDuck/elixir_ravelry | c503fc019842bb82ad58673a1b6867e3214fc7e1 | [
"Apache-2.0"
] | 21 | 2017-08-27T13:59:18.000Z | 2020-10-07T03:35:22.000Z | test/controllers/cards_controller_test.exs | StabbyMcDuck/elixir_ravelry | c503fc019842bb82ad58673a1b6867e3214fc7e1 | [
"Apache-2.0"
] | 2 | 2017-09-02T15:49:47.000Z | 2017-09-02T17:43:29.000Z | test/controllers/cards_controller_test.exs | StabbyMcDuck/elixir_ravelry | c503fc019842bb82ad58673a1b6867e3214fc7e1 | [
"Apache-2.0"
] | 7 | 2017-09-02T15:11:49.000Z | 2019-08-20T19:00:48.000Z | defmodule ElixirRavelryWeb.CardsControllerTest do
use ElixirRavelryWeb.ConnCase
use ElixirRavelry.Neo4jConnCase
import ElixirRavelry.{CardsCase, DyedRovingCase, DyesCase, KnitsCase, MaterialForCase, ProjectCase, RovingCase,
SpinsCase, UserCase, WoolCase, YarnCase}
import Phoenix.Channel... | 43.461538 | 139 | 0.70354 |
1af5fa59cd676550e7a0a76755c5bfcf29a1a9d4 | 5,733 | ex | Elixir | tutorials/official-tutorial/processes.ex | josiah14/elixir-exploration | c16f1eedbe0f223964df2bd51e0889be266f3b3a | [
"MIT"
] | null | null | null | tutorials/official-tutorial/processes.ex | josiah14/elixir-exploration | c16f1eedbe0f223964df2bd51e0889be266f3b3a | [
"MIT"
] | null | null | null | tutorials/official-tutorial/processes.ex | josiah14/elixir-exploration | c16f1eedbe0f223964df2bd51e0889be266f3b3a | [
"MIT"
] | null | null | null | # All code in Elixir runs inside 1 or more processes. Unlike threads, which may share memory, processes are totally isolated from each other. Processes form the basis for concurrent, distributed, and fault-tolerant applications in Elixir (after the Erlang model).
# Elixir processes are not the same as OS processes; ... | 30.657754 | 265 | 0.607884 |
1af613621a7df6b950a1a20edb90a6b40a866c06 | 124 | exs | Elixir | test/adapters/postgres/decoder/oid_database_test.exs | nicksanford/realtime | cd772710916f12824312b66e7fe7c4bb539ed716 | [
"Apache-2.0"
] | 4,609 | 2019-10-25T12:28:35.000Z | 2022-03-31T23:05:06.000Z | test/adapters/postgres/decoder/oid_database_test.exs | nicksanford/realtime | cd772710916f12824312b66e7fe7c4bb539ed716 | [
"Apache-2.0"
] | 223 | 2019-09-27T03:21:45.000Z | 2022-03-29T23:04:03.000Z | test/adapters/postgres/decoder/oid_database_test.exs | nicksanford/realtime | cd772710916f12824312b66e7fe7c4bb539ed716 | [
"Apache-2.0"
] | 187 | 2019-10-27T07:44:15.000Z | 2022-03-29T19:34:52.000Z | defmodule Realtime.OidDatabaseTest do
use ExUnit.Case
doctest Realtime.Adapters.Postgres.OidDatabase, import: true
end
| 20.666667 | 62 | 0.822581 |
1af623a4ae6c4112dc7cebf6306cdcdbb033d85a | 1,661 | ex | Elixir | lib/maxmind_csv/schema/country_block_cidr.ex | elixir-geolix/adapter_maxmind_csv | 0ef4109ef23cc61c62134b7bef4a8249d1a7c37e | [
"Apache-2.0"
] | 1 | 2020-06-20T14:40:16.000Z | 2020-06-20T14:40:16.000Z | lib/maxmind_csv/schema/country_block_cidr.ex | elixir-geolix/adapter_maxmind_csv | 0ef4109ef23cc61c62134b7bef4a8249d1a7c37e | [
"Apache-2.0"
] | null | null | null | lib/maxmind_csv/schema/country_block_cidr.ex | elixir-geolix/adapter_maxmind_csv | 0ef4109ef23cc61c62134b7bef4a8249d1a7c37e | [
"Apache-2.0"
] | null | null | null | if Code.ensure_loaded?(EctoNetwork.CIDR) do
defmodule Geolix.Adapter.MaxMindCSV.Schema.CountryBlockCIDR do
@moduledoc """
Sample `Ecto.Schema` to use with the adapter for country databases (blocks).
Table name: `geolix_maxmind_csv_country_blocks`.
Preloads: `Geolix.Adapter.MaxMindCSV.Schema.CountryL... | 29.140351 | 80 | 0.685129 |
1af62bbc042cc4e332a3a23a53ab7a235b0a7df7 | 2,319 | ex | Elixir | clients/data_fusion/lib/google_api/data_fusion/v1/model/location.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/data_fusion/lib/google_api/data_fusion/v1/model/location.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/data_fusion/lib/google_api/data_fusion/v1/model/location.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 39.305085 | 186 | 0.694265 |
1af660b1485712181c24e06d74e75c30e62cf7db | 1,285 | exs | Elixir | test/straw_hat_review/review_reactions_test.exs | straw-hat-team/straw_hat_review | 342dbbfac0ac96287111babd59b5321efdd8728d | [
"MIT"
] | 11 | 2018-04-09T06:32:02.000Z | 2019-09-11T14:18:21.000Z | test/straw_hat_review/review_reactions_test.exs | straw-hat-labs/straw_hat_review | 342dbbfac0ac96287111babd59b5321efdd8728d | [
"MIT"
] | 64 | 2018-03-30T06:21:49.000Z | 2019-11-01T13:57:34.000Z | test/straw_hat_review/review_reactions_test.exs | straw-hat-labs/straw_hat_review | 342dbbfac0ac96287111babd59b5321efdd8728d | [
"MIT"
] | 1 | 2018-06-21T23:00:00.000Z | 2018-06-21T23:00:00.000Z | defmodule StrawHat.Review.ReviewReactionsTest do
use StrawHat.Review.Test.DataCase, async: true
alias StrawHat.Review.ReviewReactions
describe "find_review_reaction/1" do
test "with valid id" do
review_reaction = insert(:review_reaction)
assert {:ok, _review_reaction} = ReviewReactions.find_revi... | 33.815789 | 95 | 0.761868 |
1af6ad2804e95e967be65d8b5d48f3da8d0c68af | 4,726 | exs | Elixir | test/airbrakex/notifier_test.exs | jhalmeida/airbrakex | 7c1026aa90a57f7b40675091e3543e8b0423fa18 | [
"MIT"
] | null | null | null | test/airbrakex/notifier_test.exs | jhalmeida/airbrakex | 7c1026aa90a57f7b40675091e3543e8b0423fa18 | [
"MIT"
] | null | null | null | test/airbrakex/notifier_test.exs | jhalmeida/airbrakex | 7c1026aa90a57f7b40675091e3543e8b0423fa18 | [
"MIT"
] | null | null | null | defmodule Airbrakex.NotifierTest do
use ExUnit.Case
@project_id "project_id"
@project_key "project_key"
setup do
bypass = Bypass.open()
Application.put_env(:airbrakex, :endpoint, "http://localhost:#{bypass.port}")
Application.put_env(:airbrakex, :project_id, @project_id)
Application.put_env(:a... | 31.718121 | 97 | 0.66314 |
1af6d06b62cc646896ff44ba521ebade27f08492 | 1,925 | exs | Elixir | test/game/command/listen_test.exs | jgsmith/ex_venture | 546adaa8fe80d45a72fde6de8d8d6906902c12d4 | [
"MIT"
] | 2 | 2019-05-14T11:36:44.000Z | 2020-07-01T08:54:04.000Z | test/game/command/listen_test.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | null | null | null | test/game/command/listen_test.exs | nickwalton/ex_venture | d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb | [
"MIT"
] | 1 | 2021-01-29T14:12:40.000Z | 2021-01-29T14:12:40.000Z | defmodule Game.Command.ListenTest do
use ExVenture.CommandCase
alias Game.Command.Listen
doctest Listen
setup do
save = base_save()
%{state: %{socket: :socket, user: %{save: save}, save: save}}
end
describe "listening to the current room" do
setup do
room = %{
listen: "Sounds o... | 22.383721 | 80 | 0.575584 |
1af6f312db6dcbac40b7f0f08c9b748e3a855239 | 86 | exs | Elixir | learning/craft_graphql/PlateSlate/test/plate_slate_web/views/page_view_test.exs | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | 2 | 2020-01-20T20:15:20.000Z | 2020-02-27T11:08:42.000Z | learning/craft_graphql/PlateSlate/test/plate_slate_web/views/page_view_test.exs | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | learning/craft_graphql/PlateSlate/test/plate_slate_web/views/page_view_test.exs | Mdlkxzmcp/various_elixir | c87527b7118a0c74a042073c04d2228025888ddf | [
"MIT"
] | null | null | null | defmodule PlateSlateWeb.PageViewTest do
use PlateSlateWeb.ConnCase, async: true
end
| 21.5 | 41 | 0.837209 |
1af701bab40312a8fb36159f7aac30f37e1c4155 | 2,165 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1__explicit_content_annotation.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1__explicit_content_annotation.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p3beta1__explicit_content_annotation.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.365079 | 204 | 0.762587 |
1af7257bcbb1088e28a3901fb3d02db6d923b695 | 3,039 | ex | Elixir | lib/xtb_client/messages/candle.ex | dsienkiewicz/xtb_client_ex | 550f1144eace28ce9bdb2fa3bcc27e891231487b | [
"MIT"
] | null | null | null | lib/xtb_client/messages/candle.ex | dsienkiewicz/xtb_client_ex | 550f1144eace28ce9bdb2fa3bcc27e891231487b | [
"MIT"
] | null | null | null | lib/xtb_client/messages/candle.ex | dsienkiewicz/xtb_client_ex | 550f1144eace28ce9bdb2fa3bcc27e891231487b | [
"MIT"
] | null | null | null | defmodule XtbClient.Messages.Candle do
alias XtbClient.Messages.QuoteId
@moduledoc """
Info representing aggregated price & volume values for candle.
Default interval for one candle is one minute.
## Parameters
- `open` open price in base currency,
- `high` highest value in the given period in base... | 25.974359 | 90 | 0.552813 |
1af7308008617be94f94176fe81a9d7fa9f46b2d | 633 | ex | Elixir | lib/rasa_api/model/evaluation_stories_result_actions.ex | whitedr/rasa-api-elixir | 3ff932ee4cb4d04f0dd5ea66ec4b8f83195a003a | [
"Apache-2.0"
] | null | null | null | lib/rasa_api/model/evaluation_stories_result_actions.ex | whitedr/rasa-api-elixir | 3ff932ee4cb4d04f0dd5ea66ec4b8f83195a003a | [
"Apache-2.0"
] | null | null | null | lib/rasa_api/model/evaluation_stories_result_actions.ex | whitedr/rasa-api-elixir | 3ff932ee4cb4d04f0dd5ea66ec4b8f83195a003a | [
"Apache-2.0"
] | 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 RasaApi.Model.EvaluationStoriesResultActions do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:action,
:predicted,
:... | 19.78125 | 91 | 0.684044 |
1af73a5b31108d93a39acb595842a95cec66344d | 97 | exs | Elixir | test/docopt_test.exs | gabrielelana/docopt.ex | f077e1c3e926590d34d806b3730630072ef3c108 | [
"MIT"
] | null | null | null | test/docopt_test.exs | gabrielelana/docopt.ex | f077e1c3e926590d34d806b3730630072ef3c108 | [
"MIT"
] | null | null | null | test/docopt_test.exs | gabrielelana/docopt.ex | f077e1c3e926590d34d806b3730630072ef3c108 | [
"MIT"
] | null | null | null | defmodule DocoptTest do
use ExUnit.Case
test "the truth" do
assert 1 + 1 == 2
end
end
| 12.125 | 23 | 0.649485 |
1af782bdd6b52bac5fb9aad89eba84af6918f16b | 227 | ex | Elixir | lib/bonfire/pushes/events/push_created.ex | qhwa/bonfire | 4a368d6d5300539399dcaff167ac69e3165c2bff | [
"MIT"
] | 71 | 2020-03-09T02:09:30.000Z | 2022-03-09T06:10:23.000Z | lib/bonfire/pushes/events/push_created.ex | qhwa/bonfire | 4a368d6d5300539399dcaff167ac69e3165c2bff | [
"MIT"
] | null | null | null | lib/bonfire/pushes/events/push_created.ex | qhwa/bonfire | 4a368d6d5300539399dcaff167ac69e3165c2bff | [
"MIT"
] | 4 | 2020-04-03T02:28:05.000Z | 2021-11-24T20:07:25.000Z | defmodule Bonfire.Pushes.Events.PushCreated do
@moduledoc "A struct representing push created event"
@derive Jason.Encoder
@enforce_keys [:id, :user_id]
defstruct [:id, :user_id, :content, :actions, :allow_dismiss]
end
| 32.428571 | 63 | 0.757709 |
1af782e6505400b4b9ae0dc0af001eb9a0a2f209 | 1,118 | ex | Elixir | clients/url_shortener/lib/google_api/url_shortener/v1/connection.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/url_shortener/lib/google_api/url_shortener/v1/connection.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/url_shortener/lib/google_api/url_shortener/v1/connection.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 ... | 33.878788 | 77 | 0.739714 |
1af7d1e97aced03eb1dfad634494f22973f6b8aa | 1,739 | ex | Elixir | lib/mix/tasks/yacto.gen.migration.ex | h1u2i3/yacto | 4070107b86a83f2a39f5441a3397b58f2d978db5 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/yacto.gen.migration.ex | h1u2i3/yacto | 4070107b86a83f2a39f5441a3397b58f2d978db5 | [
"Apache-2.0"
] | null | null | null | lib/mix/tasks/yacto.gen.migration.ex | h1u2i3/yacto | 4070107b86a83f2a39f5441a3397b58f2d978db5 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Yacto.Gen.Migration do
use Mix.Task
@shortdoc "Generate migration file"
@switches [version: :integer]
def run(args) do
Mix.Task.run("loadpaths", args)
Mix.Task.run("app.start", args)
case OptionParser.parse(args, switches: @switches) do
{opts, [], _} ->
app = Ke... | 27.171875 | 95 | 0.572168 |
1af7e844793ad3853b4ecbb2cf5b961562af1575 | 4,941 | exs | Elixir | test/html_tag_test.exs | alexandrubagu/surface | b8ef74444e53f8325fb793fa1399966c2a4b1e7a | [
"MIT"
] | null | null | null | test/html_tag_test.exs | alexandrubagu/surface | b8ef74444e53f8325fb793fa1399966c2a4b1e7a | [
"MIT"
] | null | null | null | test/html_tag_test.exs | alexandrubagu/surface | b8ef74444e53f8325fb793fa1399966c2a4b1e7a | [
"MIT"
] | 1 | 2020-04-21T18:49:15.000Z | 2020-04-21T18:49:15.000Z | defmodule HtmlTagTest do
use ExUnit.Case
import Surface
import ComponentTestHelper
test "raise runtime error for invalid attributes values" do
assert_raise(RuntimeError, ~r/invalid value for attribute "title"/, fn ->
assigns = %{}
code = ~H"""
<div title={{ {1, 2} }}/>
"""
... | 22.058036 | 101 | 0.487148 |
1af7ecc19f8c05fc632fbe32f9e49b05dea0eef3 | 5,511 | exs | Elixir | mix.exs | qdentity/phoenix | 04466484d30019c1bf4a45f24519730d02f26600 | [
"MIT"
] | null | null | null | mix.exs | qdentity/phoenix | 04466484d30019c1bf4a45f24519730d02f26600 | [
"MIT"
] | null | null | null | mix.exs | qdentity/phoenix | 04466484d30019c1bf4a45f24519730d02f26600 | [
"MIT"
] | null | null | null | defmodule Phoenix.MixProject do
use Mix.Project
@version "1.6.0-dev"
@scm_url "https://github.com/phoenixframework/phoenix"
# If the elixir requirement is updated, we need to make the installer
# use at least the minimum requirement used here. Although often the
# installer is ahead of Phoenix itself.
@... | 27.147783 | 100 | 0.583742 |
1af8075e803b2c8b18e737e6048697224c6daabe | 79 | exs | Elixir | test/nx/type_test.exs | erlsci/nx | 4b99478523da55d65bd9e5f568d9a639cc568e26 | [
"Apache-2.0"
] | null | null | null | test/nx/type_test.exs | erlsci/nx | 4b99478523da55d65bd9e5f568d9a639cc568e26 | [
"Apache-2.0"
] | null | null | null | test/nx/type_test.exs | erlsci/nx | 4b99478523da55d65bd9e5f568d9a639cc568e26 | [
"Apache-2.0"
] | 1 | 2022-03-26T12:13:19.000Z | 2022-03-26T12:13:19.000Z | defmodule Nx.TypeTest do
use ExUnit.Case, async: true
doctest Nx.Type
end
| 13.166667 | 30 | 0.746835 |
1af8184f05f357bb30926b8eeafe8d2cbd184c1c | 3,109 | ex | Elixir | clients/surveys/lib/google_api/surveys/v2/api/results.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/surveys/lib/google_api/surveys/v2/api/results.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/surveys/lib/google_api/surveys/v2/api/results.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"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.907895 | 187 | 0.699582 |
1af861a9e9c5dc97937266afa83fc2d3818d18ab | 2,548 | exs | Elixir | test/pos/menu_test.exs | ancarvalho/backend-elixir | e42c22ae0881d80336a60dc6c87d4786db97c7a8 | [
"MIT"
] | null | null | null | test/pos/menu_test.exs | ancarvalho/backend-elixir | e42c22ae0881d80336a60dc6c87d4786db97c7a8 | [
"MIT"
] | null | null | null | test/pos/menu_test.exs | ancarvalho/backend-elixir | e42c22ae0881d80336a60dc6c87d4786db97c7a8 | [
"MIT"
] | null | null | null | defmodule Pos.MenuTest do
use Pos.DataCase
alias Pos.Menu
describe "dishes" do
alias Pos.Menu.Dish
@valid_attrs %{category: "some category", code: 42, description: "some description", name: "some name", need_prepare: true, price: "120.5"}
@update_attrs %{category: "some updated category", code: 43,... | 33.973333 | 169 | 0.651099 |
1af88480a9658f23e7bfa3157841b3e584c822d8 | 129 | ex | Elixir | test/support/postgrex_types.ex | olafura/ecto_ip_range | 44c06ca26aafc942a8173941a907c138ae2213bc | [
"Apache-2.0"
] | 3 | 2019-11-14T00:10:40.000Z | 2022-01-20T18:12:44.000Z | test/support/postgrex_types.ex | olafura/ecto_ip_range | 44c06ca26aafc942a8173941a907c138ae2213bc | [
"Apache-2.0"
] | 1 | 2022-01-10T19:27:05.000Z | 2022-01-23T12:31:41.000Z | test/support/postgrex_types.ex | olafura/ecto_ip_range | 44c06ca26aafc942a8173941a907c138ae2213bc | [
"Apache-2.0"
] | 2 | 2020-11-23T07:51:22.000Z | 2022-01-09T22:15:20.000Z | Postgrex.Types.define(
EctoIPRange.PostgrexTypes,
EctoIPRange.Postgrex.extensions() ++ Ecto.Adapters.Postgres.extensions()
)
| 25.8 | 74 | 0.790698 |
1af8992eb876961509904fc8de67476ea5763d58 | 1,240 | ex | Elixir | lib/commanded/subscriptions/registry.ex | jwilger/commanded | 2d9950fd3ce76a23a3c410c99857b812f5705d66 | [
"MIT"
] | 1 | 2020-02-19T01:07:32.000Z | 2020-02-19T01:07:32.000Z | lib/commanded/subscriptions/registry.ex | jwilger/commanded | 2d9950fd3ce76a23a3c410c99857b812f5705d66 | [
"MIT"
] | null | null | null | lib/commanded/subscriptions/registry.ex | jwilger/commanded | 2d9950fd3ce76a23a3c410c99857b812f5705d66 | [
"MIT"
] | 1 | 2020-02-18T20:53:39.000Z | 2020-02-18T20:53:39.000Z | defmodule Commanded.Subscriptions.Registry do
@moduledoc false
# Provides read/write access to a public ETS table used to track event store
# subscriptions. This process' only use is as the owner of the ETS table and
# should never crash.
use GenServer
def start_link(opts) do
{start_opts, registry_op... | 24.8 | 92 | 0.7 |
1af8b005c960de308a664b98ed105a6a9cc0cf65 | 3,371 | ex | Elixir | lib/assoc/schema.ex | chrislaskey/assoc | 7bee95e7f5bc6222cd7c2a63e3f955d0db89b2b7 | [
"MIT"
] | 6 | 2019-01-31T23:31:42.000Z | 2020-10-06T20:05:34.000Z | lib/assoc/schema.ex | chrislaskey/assoc | 7bee95e7f5bc6222cd7c2a63e3f955d0db89b2b7 | [
"MIT"
] | 2 | 2021-11-09T14:35:51.000Z | 2021-11-09T18:04:15.000Z | lib/assoc/schema.ex | chrislaskey/assoc | 7bee95e7f5bc6222cd7c2a63e3f955d0db89b2b7 | [
"MIT"
] | 2 | 2019-01-31T23:53:33.000Z | 2021-11-05T21:47:26.000Z | defmodule Assoc.Schema do
@moduledoc """
## Usage
```
defmodule MyApp.User do
use MyApp.Schema
use Assoc.Schema, repo: MyApp.Repo
schema "users" do
field :email, :string
field :name, :string
has_many :user_roles, MyApp.UserRole, on_delete: :delete_all, on_replace: :delete
t... | 27.631148 | 100 | 0.608128 |
1af8f43da24b59274124fd09ecc64a480949d520 | 9,314 | ex | Elixir | lib/absinthe/execution/arguments.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | 1 | 2019-05-07T15:05:52.000Z | 2019-05-07T15:05:52.000Z | lib/absinthe/execution/arguments.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | null | null | null | lib/absinthe/execution/arguments.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | null | null | null | defmodule Absinthe.Execution.Arguments do
# Handles the logic around building and validating argument values for a field.
@moduledoc false
alias Absinthe.Execution
alias Absinthe.Type
alias Absinthe.Language
alias Absinthe.Execution.Input
alias Absinthe.Execution.Input.Meta
# Build an arguments map f... | 39.299578 | 131 | 0.700558 |
1af8fd35cb5507056f28ce858083e1b48d4772df | 1,025 | exs | Elixir | test/users/create_or_update_test.exs | riosvictor/exlivery | c5f869511a998169528d9a5e07a5d8fbf00b4cc3 | [
"MIT"
] | 1 | 2022-03-16T20:41:39.000Z | 2022-03-16T20:41:39.000Z | test/users/create_or_update_test.exs | riosvictor/exlivery | c5f869511a998169528d9a5e07a5d8fbf00b4cc3 | [
"MIT"
] | null | null | null | test/users/create_or_update_test.exs | riosvictor/exlivery | c5f869511a998169528d9a5e07a5d8fbf00b4cc3 | [
"MIT"
] | null | null | null | defmodule Exlivery.Users.CreateOrUpdateTest do
use ExUnit.Case
alias Exlivery.Users.Agent, as: UserAgent
alias Exlivery.Users.CreateOrUpdate
setup do
UserAgent.start_link(%{})
{:ok, %{}}
end
describe "call/1" do
test "when all params are valid, save the user" do
params = %{
nam... | 21.808511 | 71 | 0.610732 |
1af900826590563531ffbdb3710ce4f5278ad1a4 | 4,508 | ex | Elixir | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/binding.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/binding.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/cloud_billing/lib/google_api/cloud_billing/v1/model/binding.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... | 41.740741 | 140 | 0.70142 |
1af91479921216c640e82fc639e5a890107fe644 | 55,608 | ex | Elixir | lib/ecto/repo.ex | ramondelemos/ecto | ca4358533ce06b1048e5bf9603f9fbbd5169fb05 | [
"Apache-2.0"
] | null | null | null | lib/ecto/repo.ex | ramondelemos/ecto | ca4358533ce06b1048e5bf9603f9fbbd5169fb05 | [
"Apache-2.0"
] | null | null | null | lib/ecto/repo.ex | ramondelemos/ecto | ca4358533ce06b1048e5bf9603f9fbbd5169fb05 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Repo do
@moduledoc """
Defines a repository.
A repository maps to an underlying data store, controlled by the
adapter. For example, Ecto ships with a Postgres adapter that
stores data into a PostgreSQL database.
When used, the repository expects the `:otp_app` and `:adapter` as
option. Th... | 37.90593 | 114 | 0.673554 |
1af94531cd95ddfc19b34d20dca3320ca76d3201 | 2,130 | exs | Elixir | test/off_broadway_beanstalkd/beanstix_client_test.exs | fitronics/off_broadway_beanstalkd | 59f2eccee858892061a8ae5af2237ab696b58e4d | [
"MIT"
] | null | null | null | test/off_broadway_beanstalkd/beanstix_client_test.exs | fitronics/off_broadway_beanstalkd | 59f2eccee858892061a8ae5af2237ab696b58e4d | [
"MIT"
] | null | null | null | test/off_broadway_beanstalkd/beanstix_client_test.exs | fitronics/off_broadway_beanstalkd | 59f2eccee858892061a8ae5af2237ab696b58e4d | [
"MIT"
] | null | null | null | defmodule OffBroadwayBeanstalkd.BeanstixClientTest do
use ExUnit.Case
alias Broadway.Message
alias OffBroadwayBeanstalkd.BeanstixClient
describe "receive_messages/2" do
setup do
{m, s, ms} = :os.timestamp()
tube = "BeanstixClient_#{m}_#{s}_#{ms}"
%{opts: [tube: tube]}
end
test "... | 30 | 113 | 0.625822 |
1af94766039a73f6a798439b27fdba42c063c26d | 1,091 | ex | Elixir | test/support/conn_case.ex | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 2 | 2020-05-16T13:48:44.000Z | 2020-05-22T09:52:36.000Z | test/support/conn_case.ex | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 2 | 2020-07-09T21:44:35.000Z | 2020-07-14T07:06:10.000Z | test/support/conn_case.ex | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | null | null | null | defmodule PlausibleWeb.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.275 | 71 | 0.72044 |
1af94856a7704cfd2421db5b429658c63815102d | 515 | ex | Elixir | lib/oli/interop/custom_activities/launch_attributes.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 1 | 2022-03-17T20:35:47.000Z | 2022-03-17T20:35:47.000Z | lib/oli/interop/custom_activities/launch_attributes.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | 9 | 2021-11-02T16:52:09.000Z | 2022-03-25T15:14:01.000Z | lib/oli/interop/custom_activities/launch_attributes.ex | malav2110/oli-torus | 8af64e762a7c8a2058bd27a7ab8e96539ffc055f | [
"MIT"
] | null | null | null | defmodule Oli.Interop.CustomActivities.LaunchAttributes do
import XmlBuilder
alias Oli.Interop.CustomActivities.{Attribute}
def setup(
%{
context: _context
}
) do
element(
:launch_attributes,
[
Attribute.setup(
%{
attribute_id: "height... | 17.758621 | 58 | 0.471845 |
1af94e7a441c28e0f073f934fab0c2e0716fa90f | 84 | ex | Elixir | phoenix/lib/mehr_schulferien_web/views/admin/month_view.ex | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | phoenix/lib/mehr_schulferien_web/views/admin/month_view.ex | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | phoenix/lib/mehr_schulferien_web/views/admin/month_view.ex | komlanvi/www.mehr-schulferien.de | fe74772f2cc8ce430e04adf6e66023971456ce57 | [
"MIT"
] | null | null | null | defmodule MehrSchulferienWeb.Admin.MonthView do
use MehrSchulferienWeb, :view
end
| 21 | 47 | 0.845238 |
1af9918e1eaa49bbea031277c272be5a169bbc6e | 3,311 | ex | Elixir | lib/elixir/unicode/security.ex | tnascimento/elixir | 9a4d10e702f33d2fa47718cde05375b506b4a3d6 | [
"Apache-2.0"
] | null | null | null | lib/elixir/unicode/security.ex | tnascimento/elixir | 9a4d10e702f33d2fa47718cde05375b506b4a3d6 | [
"Apache-2.0"
] | null | null | null | lib/elixir/unicode/security.ex | tnascimento/elixir | 9a4d10e702f33d2fa47718cde05375b506b4a3d6 | [
"Apache-2.0"
] | null | null | null | defmodule String.Tokenizer.Security do
@moduledoc false
# UTS39 security checks that operate on all tokens in a file,
# like Confusables. If we add whole-file mixed-script-confusable-characters
# checks we can add them to the list of lints here
def unicode_lint_warnings(tokens) do
for warning <- confusab... | 29.300885 | 94 | 0.623377 |
1af994d8422842e55662e88a1f538ee779e9fcf1 | 62 | exs | Elixir | test/prime_test.exs | sato11/prime | ce64ea6bf3ff74b335a509f1fe4d756534cafd8f | [
"MIT"
] | null | null | null | test/prime_test.exs | sato11/prime | ce64ea6bf3ff74b335a509f1fe4d756534cafd8f | [
"MIT"
] | null | null | null | test/prime_test.exs | sato11/prime | ce64ea6bf3ff74b335a509f1fe4d756534cafd8f | [
"MIT"
] | null | null | null | defmodule Prime.Test do
use ExUnit.Case
doctest Prime
end
| 12.4 | 23 | 0.774194 |
1af9f6cf6317093b346da7d2a301577d6f4c555e | 3,634 | ex | Elixir | lib/tensorflow/core/framework/cost_graph.pb.ex | pylon/extensor | 57eba1660952d94416152531e159abd6b1faaee9 | [
"Apache-2.0"
] | 58 | 2018-06-12T00:01:51.000Z | 2022-01-30T17:29:42.000Z | lib/tensorflow/core/framework/cost_graph.pb.ex | pylon/extensor | 57eba1660952d94416152531e159abd6b1faaee9 | [
"Apache-2.0"
] | 9 | 2018-06-13T19:33:39.000Z | 2020-02-17T17:24:15.000Z | lib/tensorflow/core/framework/cost_graph.pb.ex | pylon/extensor | 57eba1660952d94416152531e159abd6b1faaee9 | [
"Apache-2.0"
] | 3 | 2018-06-13T19:45:36.000Z | 2021-05-16T17:40:08.000Z | defmodule Tensorflow.CostGraphDef.Node.InputInfo do
@moduledoc false
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
preceding_node: integer,
preceding_port: integer
}
defstruct [:preceding_node, :preceding_port]
field(:preceding_node, 1, type: :int32)
field(:preceding_po... | 28.170543 | 79 | 0.665658 |
1afa34631f1d48dfd3e5ac09950ed7d34ed069df | 581 | exs | Elixir | mix.exs | ohr486/hello_pubsub | 34b3c6690b8cc3463f4021245e71575dcab36f7d | [
"MIT"
] | null | null | null | mix.exs | ohr486/hello_pubsub | 34b3c6690b8cc3463f4021245e71575dcab36f7d | [
"MIT"
] | null | null | null | mix.exs | ohr486/hello_pubsub | 34b3c6690b8cc3463f4021245e71575dcab36f7d | [
"MIT"
] | null | null | null | defmodule HelloPubsub.MixProject do
use Mix.Project
def project do
[
app: :hello_pubsub,
version: "0.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
... | 20.034483 | 88 | 0.581756 |
1afa475168da7a15844984e9131bbd7c9bb34998 | 880 | ex | Elixir | apps/astarte_housekeeping_api/lib/astarte_housekeeping_api/auth/auth.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 1 | 2020-02-04T13:15:22.000Z | 2020-02-04T13:15:22.000Z | apps/astarte_housekeeping_api/lib/astarte_housekeeping_api/auth/auth.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 5 | 2019-11-18T17:06:34.000Z | 2019-12-19T10:03:59.000Z | apps/astarte_housekeeping_api/lib/astarte_housekeeping_api/auth/auth.ex | matt-mazzucato/astarte | 34d84941a5019efc42321052f7f34b7d907a38f2 | [
"Apache-2.0"
] | 2 | 2018-02-05T19:23:18.000Z | 2019-11-19T11:44:40.000Z | #
# This file is part of Astarte.
#
# Copyright 2018 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... | 27.5 | 74 | 0.728409 |
1afa5c1e42cfda96e05c4e6ae7da08fbc43a3c45 | 2,166 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_path_element.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_path_element.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dlp/lib/google_api/dlp/v2/model/google_privacy_dlp_v2_path_element.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... | 40.867925 | 212 | 0.710988 |
1afa67c5ca53de995c3f6512aaf6675b0f5b3413 | 56 | ex | Elixir | lib/monero/error.ex | cwc/monero_ex | 6c63513ef2770c74c0bd840877732c54ad8678d8 | [
"Unlicense",
"MIT"
] | 7 | 2017-09-08T18:17:55.000Z | 2021-07-11T01:03:40.000Z | lib/monero/error.ex | cwc/monero_ex | 6c63513ef2770c74c0bd840877732c54ad8678d8 | [
"Unlicense",
"MIT"
] | 11 | 2017-09-08T10:23:34.000Z | 2018-08-24T16:10:09.000Z | lib/monero/error.ex | cwc/monero_ex | 6c63513ef2770c74c0bd840877732c54ad8678d8 | [
"Unlicense",
"MIT"
] | 2 | 2018-11-12T06:42:31.000Z | 2021-07-11T01:33:34.000Z | defmodule Monero.Error do
defexception [:message]
end
| 14 | 25 | 0.785714 |
1afa8e6a990ebc104cda9d855244f48228663cc7 | 4,389 | ex | Elixir | lib/events_tools_web/controllers/profile_controller.ex | community-tools/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 2 | 2017-10-06T01:14:35.000Z | 2017-11-18T16:44:44.000Z | lib/events_tools_web/controllers/profile_controller.ex | community-tools/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 6 | 2017-10-06T00:04:59.000Z | 2017-10-06T00:09:27.000Z | lib/events_tools_web/controllers/profile_controller.ex | apps-team/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 1 | 2017-10-06T01:17:35.000Z | 2017-10-06T01:17:35.000Z | defmodule CommunityToolsWeb.ProfileController do
use CommunityToolsWeb, :controller
alias CommunityTools.Accounts
alias CommunityTools.Accounts.Profile
alias CommunityTools.Status
alias CommunityTools.Repo
def index(conn, _params, current_user, claims) do
profiles = Accounts.list_profiles()
render... | 39.9 | 144 | 0.692413 |
1afa97f149ed7d8d89abba72c91342290f9ac473 | 3,093 | exs | Elixir | mix.exs | kbrw/mailibex | 035a0949fb518c6a84fb9a8501362d6d4743c78f | [
"MIT"
] | 30 | 2017-05-25T11:39:13.000Z | 2021-12-10T01:40:59.000Z | mix.exs | kbrw/mailibex | 035a0949fb518c6a84fb9a8501362d6d4743c78f | [
"MIT"
] | 16 | 2017-05-23T13:16:54.000Z | 2022-01-14T11:03:33.000Z | mix.exs | kbrw/mailibex | 035a0949fb518c6a84fb9a8501362d6d4743c78f | [
"MIT"
] | 18 | 2017-06-02T18:56:57.000Z | 2022-03-10T08:17:02.000Z | defmodule Mix.Tasks.Compile.Iconv do
@shortdoc "Compiles Iconv"
use Mix.Task
@doc """
For Linux:
1. Install gcc and libconv via your distro's package manager.
For Mac OS X / macOS:
1. Install gcc and libiconv via homebrew.
For Windows:
1. Install (MSYS2)[https://msys2.github.io], then open MSYS2 S... | 28.376147 | 133 | 0.607177 |
1afac959ceb38e324f444df8119c8f4564dc1f0e | 196 | exs | Elixir | priv/repo/migrations/20200812004451_remove_sent_to_column_from_users_tokens.exs | RatioPBC/epi-locator | 58c90500c4e0071ce365d76ec9812f9051d6a9f9 | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20200812004451_remove_sent_to_column_from_users_tokens.exs | RatioPBC/epi-locator | 58c90500c4e0071ce365d76ec9812f9051d6a9f9 | [
"Apache-2.0"
] | 6 | 2021-10-19T01:55:57.000Z | 2022-02-15T01:04:19.000Z | priv/repo/migrations/20200812004451_remove_sent_to_column_from_users_tokens.exs | RatioPBC/epi-locator | 58c90500c4e0071ce365d76ec9812f9051d6a9f9 | [
"Apache-2.0"
] | 2 | 2022-01-21T08:38:50.000Z | 2022-01-21T08:42:04.000Z | defmodule EpiLocator.Repo.Migrations.RemoveSendToColumnFromUsersTokens do
use Ecto.Migration
def change do
alter table(:users_tokens) do
remove(:sent_to, :string)
end
end
end
| 19.6 | 73 | 0.75 |
1afaee0c31dc168b2927ccca4d8729bc0f3505de | 1,319 | exs | Elixir | mix.exs | mikalv/chroxy | d0368a4e5b0d2fc8ac58784dff7e5179d1cdc8f3 | [
"MIT"
] | null | null | null | mix.exs | mikalv/chroxy | d0368a4e5b0d2fc8ac58784dff7e5179d1cdc8f3 | [
"MIT"
] | null | null | null | mix.exs | mikalv/chroxy | d0368a4e5b0d2fc8ac58784dff7e5179d1cdc8f3 | [
"MIT"
] | null | null | null | defmodule Chroxy.MixProject do
use Mix.Project
def project do
[
app: :chroxy,
version: "0.6.2",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
docs: [main: "Chroxy", logo: "logo.png", extras: [... | 24.886792 | 116 | 0.55345 |
1afb350e30bb195ce2a174a7b7ad6102f8bd26e9 | 1,256 | exs | Elixir | test/liblink/endpoint_test.exs | Xerpa/liblink | 7b983431c5b391bb8cf182edd9ca4937601eea35 | [
"Apache-2.0"
] | 3 | 2018-10-26T12:55:15.000Z | 2019-05-03T22:41:34.000Z | test/liblink/endpoint_test.exs | Xerpa/liblink | 7b983431c5b391bb8cf182edd9ca4937601eea35 | [
"Apache-2.0"
] | 4 | 2018-08-26T14:43:57.000Z | 2020-09-23T21:14:56.000Z | test/liblink/endpoint_test.exs | Xerpa/liblink | 7b983431c5b391bb8cf182edd9ca4937601eea35 | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2018 Xerpa
# 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, soft... | 31.4 | 94 | 0.698248 |
1afb885a7b63bdb5830efcd4d444f23f79cb0059 | 924 | ex | Elixir | lib/gen_util/date.ex | elbow-jason/gen_util | d62355f0ca7b0ec8fb46df57faf5f25ecaca6bff | [
"MIT"
] | 1 | 2020-01-13T21:38:26.000Z | 2020-01-13T21:38:26.000Z | lib/gen_util/date.ex | elbow-jason/gen_util | d62355f0ca7b0ec8fb46df57faf5f25ecaca6bff | [
"MIT"
] | null | null | null | lib/gen_util/date.ex | elbow-jason/gen_util | d62355f0ca7b0ec8fb46df57faf5f25ecaca6bff | [
"MIT"
] | null | null | null | defmodule GenUtil.Date do
@moduledoc """
A few functions for dealing with dates.
"""
@doc """
Miles, cups, dates, and politicians. Come on America...
Here is a function that will parse dates of format `4/12/2014`.
Probably better to use the Timex library though.
iex> GenUtil.Date.from_american("06... | 25.666667 | 65 | 0.598485 |
1afbc5f5149c82755df10cd9e6c552fc6cc11109 | 1,568 | ex | Elixir | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/upload_line_items_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/upload_line_items_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/double_click_bid_manager/lib/google_api/double_click_bid_manager/v1/model/upload_line_items_response.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 32.666667 | 108 | 0.771684 |
1afbc8ef7169c48c1e88e05b79eee89597136232 | 324 | exs | Elixir | priv/repo/migrations/20170201025454_add_default_colors.exs | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | priv/repo/migrations/20170201025454_add_default_colors.exs | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | priv/repo/migrations/20170201025454_add_default_colors.exs | superdev999/Phoenix-project | ab13ac9366cdd0aa9581da7faf993b11aaa5344c | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorps.Repo.Migrations.AddDefaultColors do
use Ecto.Migration
def change do
alter table(:organizations) do
add :default_color, :string
end
alter table(:projects) do
add :default_color, :string
end
alter table(:users) do
add :default_color, :string
end
end
... | 18 | 55 | 0.679012 |
1afbd3d4b740faf606bed10e6383a77f3735ad9e | 3,500 | ex | Elixir | clients/games/lib/google_api/games/v1/api/revisions.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/api/revisions.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/api/revisions.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 42.168675 | 187 | 0.665714 |
1afbdc026ee86980bc6a92f645f806ba979f63f0 | 758 | exs | Elixir | mix.exs | spreedly/sample-hyperdrives | ab6d2ff055c574bfb215531d3c523242666c52d9 | [
"MIT"
] | null | null | null | mix.exs | spreedly/sample-hyperdrives | ab6d2ff055c574bfb215531d3c523242666c52d9 | [
"MIT"
] | null | null | null | mix.exs | spreedly/sample-hyperdrives | ab6d2ff055c574bfb215531d3c523242666c52d9 | [
"MIT"
] | null | null | null | defmodule Hyperdrives.Mixfile do
use Mix.Project
def project do
[app: :hyperdrives,
version: "0.0.1",
elixir: "~> 1.0",
elixirc_paths: ["lib", "web"],
compilers: [:phoenix] ++ Mix.compilers,
deps: deps]
end
# Configuration for the OTP application
#
# Type `mix help compile.app... | 23.6875 | 63 | 0.617414 |
1afc089042dd64d5b16acaa83f2651f56d2651fa | 3,412 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_analyze_content_request.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"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_v2_analyze_content_request.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_analyze_content_request.ex | kyleVsteger/elixir-google-api | 3a0dd498af066a4361b5b0fd66ffc04a57539488 | [
"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.056338 | 385 | 0.757913 |
1afc16718e586f53adca981a9cfa129c1ea776f7 | 361 | exs | Elixir | mix.exs | HarryET/postgrest-ex | 1d209ebc9432f136ed7e1d3a0a8f1bf7dc24a6c8 | [
"MIT"
] | 1 | 2021-10-15T10:11:16.000Z | 2021-10-15T10:11:16.000Z | mix.exs | HarryET/postgrest-ex | 1d209ebc9432f136ed7e1d3a0a8f1bf7dc24a6c8 | [
"MIT"
] | null | null | null | mix.exs | HarryET/postgrest-ex | 1d209ebc9432f136ed7e1d3a0a8f1bf7dc24a6c8 | [
"MIT"
] | null | null | null | defmodule Postgrest.MixProject do
use Mix.Project
def project do
[
app: :postgrest_ex,
version: "0.0.1",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application do
[
extra_applications: []
]
end
defp deps do
[
... | 13.884615 | 42 | 0.523546 |
1afc303995d0a1df5086b154713d55830470b6c6 | 64 | exs | Elixir | test/test_helper.exs | pcorey/rfx | db5be95d93b7aba0cf9799db273d8583c21bfc26 | [
"MIT"
] | 31 | 2021-05-29T22:57:04.000Z | 2022-03-13T16:24:57.000Z | test/test_helper.exs | pcorey/rfx | db5be95d93b7aba0cf9799db273d8583c21bfc26 | [
"MIT"
] | 4 | 2021-06-04T23:34:38.000Z | 2021-07-16T16:01:20.000Z | test/test_helper.exs | pcorey/rfx | db5be95d93b7aba0cf9799db273d8583c21bfc26 | [
"MIT"
] | 4 | 2021-06-11T13:10:04.000Z | 2022-02-11T13:33:16.000Z | alias Rfx.Util.Tst
File.rm_rf(Tst.base_dir())
ExUnit.start()
| 9.142857 | 26 | 0.71875 |
1afc3b1409552c69ae75599eb98605e76b2a51c8 | 965 | exs | Elixir | test/predicator/evaluator_operations/equal_test.exs | riddler/predicator-ex | afe4130c2fbe6ef1503c124f4db8d34fe544569c | [
"MIT"
] | null | null | null | test/predicator/evaluator_operations/equal_test.exs | riddler/predicator-ex | afe4130c2fbe6ef1503c124f4db8d34fe544569c | [
"MIT"
] | null | null | null | test/predicator/evaluator_operations/equal_test.exs | riddler/predicator-ex | afe4130c2fbe6ef1503c124f4db8d34fe544569c | [
"MIT"
] | null | null | null | defmodule Predicator.EvaluatorOperation.EqualTest do
use ExUnit.Case
import Predicator.Evaluator
@moduletag :parsed
defmodule TestUser, do: defstruct [age: 29]
describe "[\"EQ\"] operation" do
test "lit integer EQ integer" do
inst = [["lit", 1], ["lit", 1], ["comparator", "EQ"]]
assert exe... | 28.382353 | 97 | 0.584456 |
1afc3f8bc5d42e4bb888d38e6cc70283d3917292 | 878 | ex | Elixir | clients/slides/lib/google_api/slides/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/metadata.ex | yoshi-code-bot/elixir-google-api | cdb6032f01fac5ab704803113c39f2207e9e019d | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.518519 | 74 | 0.757403 |
1afc411aee73bf48dc473237d6785113d2d1fb8f | 7,369 | ex | Elixir | apps/ewallet/lib/ewallet/gates/transaction_request_gate.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/gates/transaction_request_gate.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/gates/transaction_request_gate.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | defmodule EWallet.TransactionRequestGate do
@moduledoc """
Business logic to manage transaction requests. This module is responsible
for creating new requests, retrieving existing ones and handles the logic
of picking the right wallet when inserting a new request.
It is basically an interface to the EWalletD... | 32.320175 | 99 | 0.628579 |
1afc4ddbf95ec5ddc89eaddd35daf9d8dd6ddff4 | 1,004 | ex | Elixir | frontiers_site/lib/frontiers_site/application.ex | wasmCloud/frontiers | 20eb6f4f7e59332341cd3973869758c670b54e2c | [
"Apache-2.0"
] | 1 | 2021-06-13T22:12:50.000Z | 2021-06-13T22:12:50.000Z | frontiers_site/lib/frontiers_site/application.ex | wasmCloud/frontiers | 20eb6f4f7e59332341cd3973869758c670b54e2c | [
"Apache-2.0"
] | null | null | null | frontiers_site/lib/frontiers_site/application.ex | wasmCloud/frontiers | 20eb6f4f7e59332341cd3973869758c670b54e2c | [
"Apache-2.0"
] | null | null | null | defmodule FrontiersSite.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
# Start the Telemetry supervisor
FrontiersSiteWeb.Telemetry,
# Start the PubSub sy... | 30.424242 | 71 | 0.721116 |
1afc50ea45fb0c87c86b22cef373699620555527 | 120 | exs | Elixir | test/_support/testbench.exs | ityonemo/multiverses | 24b65367b369cc8122d24836816340ff2072c501 | [
"MIT"
] | 4 | 2020-06-27T02:15:42.000Z | 2020-12-21T14:24:42.000Z | test/_support/testbench.exs | ityonemo/multiverses | 24b65367b369cc8122d24836816340ff2072c501 | [
"MIT"
] | 4 | 2020-06-03T16:51:55.000Z | 2020-09-08T19:28:55.000Z | test/_support/testbench.exs | ityonemo/multiverses | 24b65367b369cc8122d24836816340ff2072c501 | [
"MIT"
] | 1 | 2020-12-21T14:24:47.000Z | 2020-12-21T14:24:47.000Z | defmodule TestBench do
@moduledoc false
@callback foo() :: atom
end
import Mox
defmock MockBench, for: TestBench
| 12 | 33 | 0.741667 |
1afc5c6acbc4e6f12e275371d187950a985b70b6 | 154 | ex | Elixir | web/controllers/page_controller.ex | gilacost/task_manager | 550d8ce603b555f017dd689a2db6819b85ddbbd1 | [
"MIT"
] | null | null | null | web/controllers/page_controller.ex | gilacost/task_manager | 550d8ce603b555f017dd689a2db6819b85ddbbd1 | [
"MIT"
] | null | null | null | web/controllers/page_controller.ex | gilacost/task_manager | 550d8ce603b555f017dd689a2db6819b85ddbbd1 | [
"MIT"
] | null | null | null | defmodule HomeWorkManager.PageController do
use HomeWorkManager.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 19.25 | 43 | 0.75974 |
1afc5d479197460a36a97eb8d8e796d53a5eb455 | 186 | exs | Elixir | test/test_helper.exs | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 71 | 2019-07-02T18:06:15.000Z | 2022-03-09T15:30:08.000Z | test/test_helper.exs | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 157 | 2019-07-02T01:21:16.000Z | 2022-03-30T16:08:12.000Z | test/test_helper.exs | joaquinalcerro/website | 52dc89c70cd0b42127ab233a4c0d10f626d2b698 | [
"Apache-2.0"
] | 45 | 2019-07-04T05:51:11.000Z | 2022-02-27T11:56:02.000Z | Application.ensure_started(Erlef.WildApricot.Cache)
Application.ensure_started(Erlef.Test.S3)
ExUnit.start()
Faker.start()
Ecto.Adapters.SQL.Sandbox.mode(Erlef.Repo, {:shared, self()})
| 26.571429 | 61 | 0.795699 |
1afc92616fe832ada366c361d560f37e1a5d6546 | 1,086 | exs | Elixir | mix.exs | KazuCocoa/react_phoenix | 7cd2fe0bdcddf8a0fdd876517232893783bf21e5 | [
"MIT"
] | null | null | null | mix.exs | KazuCocoa/react_phoenix | 7cd2fe0bdcddf8a0fdd876517232893783bf21e5 | [
"MIT"
] | null | null | null | mix.exs | KazuCocoa/react_phoenix | 7cd2fe0bdcddf8a0fdd876517232893783bf21e5 | [
"MIT"
] | null | null | null | defmodule ReactPhoenix.Mixfile do
use Mix.Project
def project do
[app: :react_phonenix,
version: "0.0.1",
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps... | 27.15 | 63 | 0.604052 |
1afcbbc193a50ae4d90e8f286f9e435eb9341985 | 248 | ex | Elixir | apps/concierge_site/lib/views/error_view.ex | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | null | null | null | apps/concierge_site/lib/views/error_view.ex | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 21 | 2021-03-12T17:05:30.000Z | 2022-02-16T21:48:35.000Z | apps/concierge_site/lib/views/error_view.ex | mbta/alerts_concierge | d8e643445ef06f80ca273f2914c6959daea146f6 | [
"MIT"
] | 1 | 2021-12-09T15:09:53.000Z | 2021-12-09T15:09:53.000Z | defmodule ConciergeSite.ErrorView do
use ConciergeSite.Web, :view
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_template, assigns) do
render("500.html", assigns)
end
end
| 24.8 | 47 | 0.741935 |
1afce555de4ce5cb91f7f3df8234d583fb027f27 | 360 | exs | Elixir | lib/euler_001.exs | sorentwo/euler | 76244a0ef3dcfa17d6b9571daa5d0b46f09057f4 | [
"MIT"
] | 8 | 2015-11-04T05:03:05.000Z | 2022-01-25T19:34:46.000Z | lib/euler_001.exs | sorentwo/euler | 76244a0ef3dcfa17d6b9571daa5d0b46f09057f4 | [
"MIT"
] | null | null | null | lib/euler_001.exs | sorentwo/euler | 76244a0ef3dcfa17d6b9571daa5d0b46f09057f4 | [
"MIT"
] | null | null | null | defmodule EulerOne do
@doc """
If we list all the natural numbers below 10 that are multiples of 3 or 5, we
get 3, 5, 6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.
"""
def solve(n) do
Enum.reduce(Enum.filter(0..(n - 1), fn(x) -> rem(x, 3) == 0 or rem... | 30 | 99 | 0.616667 |
1afd137f47b2e44ee9d9c20ec0d35aba57ddd77c | 2,101 | ex | Elixir | apps/legion/lib/messaging/templatization/template.ex | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 1 | 2021-01-04T11:06:12.000Z | 2021-01-04T11:06:12.000Z | apps/legion/lib/messaging/templatization/template.ex | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | 3 | 2021-01-30T06:40:37.000Z | 2021-01-30T06:41:08.000Z | apps/legion/lib/messaging/templatization/template.ex | i386-64/legion | 41ae99af9be962d7fb38726ddf4bb0456edb5ca4 | [
"Apache-2.0"
] | null | null | null | defmodule Legion.Messaging.Templatization.Template do
@moduledoc """
Provides persistence logic for templatization of parametric messages sent to the platform users.
"""
use Legion.Stereotype, :model
alias Legion.Identity.Information.Registration, as: User
@env Application.get_env(:legion, Legion.Messagin... | 36.859649 | 98 | 0.730604 |
1afd29c65a881d2b2bb318519e7dcad3058de13c | 8,380 | ex | Elixir | clients/iam/lib/google_api/iam/v1/api/locations.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/iam/lib/google_api/iam/v1/api/locations.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/iam/lib/google_api/iam/v1/api/locations.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... | 43.195876 | 196 | 0.62136 |
1afd2ba915cee8e835591bfe65ac4bfed0006829 | 1,110 | ex | Elixir | lib/conduit_web/controllers/comment_controller.ex | rudyyazdi/conduit | 8defa60962482fb81f5093ea5d58b71a160db3c4 | [
"MIT"
] | 298 | 2017-06-05T14:28:23.000Z | 2022-03-30T16:53:44.000Z | lib/conduit_web/controllers/comment_controller.ex | rudyyazdi/conduit | 8defa60962482fb81f5093ea5d58b71a160db3c4 | [
"MIT"
] | 28 | 2017-07-21T01:06:47.000Z | 2021-03-07T12:32:56.000Z | lib/conduit_web/controllers/comment_controller.ex | rudyyazdi/conduit | 8defa60962482fb81f5093ea5d58b71a160db3c4 | [
"MIT"
] | 77 | 2017-08-14T20:12:03.000Z | 2021-12-08T22:24:59.000Z | defmodule ConduitWeb.CommentController do
use ConduitWeb, :controller
alias Conduit.Blog
alias Conduit.Blog.Projections.Comment
plug(Guardian.Plug.EnsureAuthenticated when action in [:create, :delete])
action_fallback(ConduitWeb.FallbackController)
def index(%{assigns: %{article: article}} = conn, _para... | 30 | 99 | 0.698198 |
1afd418550e45258e586e839175f2b514cd05e12 | 627 | ex | Elixir | lib/parser/get_parameter_attributes_response.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 3 | 2017-11-29T05:07:35.000Z | 2019-12-18T17:16:41.000Z | lib/parser/get_parameter_attributes_response.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 1 | 2021-12-02T19:35:28.000Z | 2022-03-29T09:40:52.000Z | lib/parser/get_parameter_attributes_response.ex | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 2 | 2017-11-29T05:07:30.000Z | 2020-11-10T07:10:42.000Z | defmodule CWMP.Protocol.Parser.Messages.GetParameterAttributesResponse do
use CWMP.Protocol.ParserHelpers
alias CWMP.Protocol.Messages.GetParameterAttributesResponse
def initial_acc do
%GetParameterAttributesResponse{}
end
def start_element(state, ['ParameterAttributeStruct', 'ParameterList'], _attribs... | 33 | 122 | 0.792663 |
1afd4234b15f21b52b12726cfe1bbc518ebaeb21 | 962 | ex | Elixir | lib/app_api/fetchers/game_fetcher.ex | turbo-play/phoenix-services | 9d3318c6b5d5ce6dead441758fc86ec34892b0f6 | [
"Apache-2.0"
] | 2 | 2018-07-05T15:13:12.000Z | 2021-12-16T08:58:56.000Z | lib/app_api/fetchers/game_fetcher.ex | turbo-play/phoenix-services | 9d3318c6b5d5ce6dead441758fc86ec34892b0f6 | [
"Apache-2.0"
] | null | null | null | lib/app_api/fetchers/game_fetcher.ex | turbo-play/phoenix-services | 9d3318c6b5d5ce6dead441758fc86ec34892b0f6 | [
"Apache-2.0"
] | 2 | 2018-08-13T21:37:00.000Z | 2021-11-10T04:08:26.000Z | defmodule AppApi.GameFetcher do
@moduledoc """
Handles the retrieval and formatting of users from the local storage.
"""
alias AppApi.{User, Repo, EWallet, Randomizer, Game, Blockchain}
def get(id) do
Game |> Repo.get(id)
end
def get_from_blockchain_id(id) do
Game |> Repo.get_by(blockchain_id: i... | 21.377778 | 97 | 0.609148 |
1afd459c4b3d62d6722f733e97656fdb10157f0c | 2,281 | exs | Elixir | exercism/elixir/sieve/test/sieve_test.exs | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/sieve/test/sieve_test.exs | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | exercism/elixir/sieve/test/sieve_test.exs | Tyyagoo/studies | f8fcc3a539cfb6d04a149174c88bf2208e220b96 | [
"Unlicense"
] | null | null | null | defmodule SieveTest do
use ExUnit.Case
test "no primes under two" do
assert Sieve.primes_to(1) == []
end
test "find first prime" do
assert Sieve.primes_to(2) == [2]
end
test "primes up to 10" do
assert Sieve.primes_to(10) == [2, 3, 5, 7]
end
test "limit is prime" do
assert Sieve.prim... | 11.697436 | 54 | 0.331872 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.