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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1c34c4efe8df33bb644b7a0fc9c8aa2f64268b9c | 295 | exs | Elixir | config/config.exs | code-shoily/lotus | d14958956103f2376d51974f40bcc7d7c59c2ad9 | [
"MIT"
] | null | null | null | config/config.exs | code-shoily/lotus | d14958956103f2376d51974f40bcc7d7c59c2ad9 | [
"MIT"
] | null | null | null | config/config.exs | code-shoily/lotus | d14958956103f2376d51974f40bcc7d7c59c2ad9 | [
"MIT"
] | null | null | null | import Config
config :phoenix, :json_library, Jason
config :esbuild,
version: "0.14.0",
default: [
args: ~w(js/app.js --bundle --target=es2016 --outdir=../priv/catalogue/assets),
cd: Path.expand("../assets", __DIR__),
env: %{"NODE_PATH" => Path.expand("../deps", __DIR__)}
]
| 24.583333 | 83 | 0.630508 |
1c3507c17143148adff089dbe78079e590dc7264 | 74 | exs | Elixir | test/hub_web/views/layout_view_test.exs | Poeticode/hub | 39df28dd5f18fe61899b72f18935c1508dd166ee | [
"MIT"
] | null | null | null | test/hub_web/views/layout_view_test.exs | Poeticode/hub | 39df28dd5f18fe61899b72f18935c1508dd166ee | [
"MIT"
] | 5 | 2020-07-17T23:35:42.000Z | 2021-05-10T07:00:10.000Z | test/hub_web/views/layout_view_test.exs | Poeticode/hub | 39df28dd5f18fe61899b72f18935c1508dd166ee | [
"MIT"
] | null | null | null | defmodule HubWeb.LayoutViewTest do
use HubWeb.ConnCase, async: true
end
| 18.5 | 34 | 0.810811 |
1c354d62fa2c216118885f9a2a30ff6790a56efc | 1,727 | ex | Elixir | lib/weaver/absinthe/middleware/continue.ex | weaver-engine/weaver | b60a59673d7adb0ebfbb5f392d03fe09399054bc | [
"MIT"
] | null | null | null | lib/weaver/absinthe/middleware/continue.ex | weaver-engine/weaver | b60a59673d7adb0ebfbb5f392d03fe09399054bc | [
"MIT"
] | null | null | null | lib/weaver/absinthe/middleware/continue.ex | weaver-engine/weaver | b60a59673d7adb0ebfbb5f392d03fe09399054bc | [
"MIT"
] | null | null | null | defmodule Weaver.Absinthe.Middleware.Continue do
@moduledoc """
This plugin enables asynchronous execution of a field.
"""
# credo:disable-for-this-file Credo.Check.Consistency.ParameterPatternMatching
alias Weaver.{Marker, Ref, Step}
defstruct [
:prev_chunk_end,
next_chunk_start: :not_loaded,
... | 28.311475 | 93 | 0.616097 |
1c355dcfd1bfc57c3b3ed996409872a4ba462ace | 1,139 | ex | Elixir | apps/database/lib/database/services/account/open.ex | fschuindt/amethyst | 0e8d60f83693b3bdb2c05d461cc3a74fa8b88b30 | [
"MIT"
] | 2 | 2018-06-23T11:43:34.000Z | 2019-01-07T10:52:42.000Z | apps/database/lib/database/services/account/open.ex | fschuindt/amethyst | 0e8d60f83693b3bdb2c05d461cc3a74fa8b88b30 | [
"MIT"
] | 1 | 2018-06-21T01:20:04.000Z | 2018-06-21T01:20:04.000Z | apps/database/lib/database/services/account/open.ex | fschuindt/amethyst | 0e8d60f83693b3bdb2c05d461cc3a74fa8b88b30 | [
"MIT"
] | 1 | 2018-06-30T21:40:51.000Z | 2018-06-30T21:40:51.000Z | defmodule DataBase.Services.Account.Open do
@moduledoc """
Acts as a service to **open** a new bank account.
"""
alias DataBase.Repos.AmethystRepo, as: Repo
alias DataBase.Schemas.Account, as: Acc
alias Decimal, as: D
@credit 1000
@doc """
Given a `t:DataBase.Schemas.Account.t/0`, registers it in t... | 27.119048 | 66 | 0.627744 |
1c357c5f4b4196012a623e74d52ece883cf21500 | 3,305 | ex | Elixir | clients/run/lib/google_api/run/v1/model/expr.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/run/lib/google_api/run/v1/model/expr.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/run/lib/google_api/run/v1/model/expr.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... | 36.318681 | 129 | 0.704085 |
1c35ae3c10a62b9a1c8e9bc69fe4d1d5418de30d | 363 | exs | Elixir | priv/repo/migrations/20190717022653_create_post_tags.exs | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 309 | 2016-05-03T17:16:23.000Z | 2022-03-01T09:30:22.000Z | priv/repo/migrations/20190717022653_create_post_tags.exs | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 662 | 2016-04-27T07:45:18.000Z | 2022-01-05T07:29:19.000Z | priv/repo/migrations/20190717022653_create_post_tags.exs | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 40 | 2016-04-27T07:46:22.000Z | 2021-12-31T05:54:34.000Z | defmodule Vutuv.Repo.Migrations.CreatePostTags do
use Ecto.Migration
def change do
create table(:post_tags) do
add :post_id, references(:posts, on_delete: :delete_all)
add :tag_id, references(:tags, on_delete: :delete_all)
timestamps()
end
create unique_index(:post_tags, [:post_id, ... | 24.2 | 79 | 0.705234 |
1c35df281569e9071c6ca7dcffe091100d56e783 | 2,277 | ex | Elixir | lib/univrse/alg/aes_gcm.ex | libitx/univrse | de50baebd257e73e869be4a2e87a60283d1c8001 | [
"Apache-2.0"
] | 5 | 2021-08-03T12:10:21.000Z | 2022-03-08T12:30:50.000Z | lib/univrse/alg/aes_gcm.ex | libitx/univrse | de50baebd257e73e869be4a2e87a60283d1c8001 | [
"Apache-2.0"
] | 1 | 2021-08-04T10:28:31.000Z | 2021-08-04T10:28:31.000Z | lib/univrse/alg/aes_gcm.ex | libitx/univrse | de50baebd257e73e869be4a2e87a60283d1c8001 | [
"Apache-2.0"
] | null | null | null | defmodule Univrse.Alg.AES_GCM do
@moduledoc """
AES_GCM algorithm module.
Sign and encrypt messages using AES-GCM symetric encryption.
"""
alias Univrse.Key
@doc """
Decrypts the cyphertext with the key using the specified algorithm.
Accepted options:
* `aad` - Ephemeral public key
* `iv` - Agr... | 28.111111 | 88 | 0.619675 |
1c35e230f1a93f193e983c9df1f6220494705d83 | 981 | exs | Elixir | api_server/config/config.exs | Spippolo/wheredafuckRU | 4ff399532ab4847a390bfb0ce193ec5732c04595 | [
"MIT"
] | null | null | null | api_server/config/config.exs | Spippolo/wheredafuckRU | 4ff399532ab4847a390bfb0ce193ec5732c04595 | [
"MIT"
] | null | null | null | api_server/config/config.exs | Spippolo/wheredafuckRU | 4ff399532ab4847a390bfb0ce193ec5732c04595 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# General application configuration
config :wheredafuckru_api,
ecto_repos: [Whereda... | 35.035714 | 86 | 0.776758 |
1c35f8460e0b70878214659c51b660e824fd6353 | 486 | exs | Elixir | exercitando.exs/exercitando.exs | leninaveira/random-repository | 86cdef5689935c722d60c130359b5624e549ed6d | [
"MIT"
] | 1 | 2020-12-22T03:52:06.000Z | 2020-12-22T03:52:06.000Z | exercitando.exs/exercitando.exs | leninaveira/random-repository | 86cdef5689935c722d60c130359b5624e549ed6d | [
"MIT"
] | null | null | null | exercitando.exs/exercitando.exs | leninaveira/random-repository | 86cdef5689935c722d60c130359b5624e549ed6d | [
"MIT"
] | null | null | null | defmodule ModuloNovo do
def naming_convetion) (variable, _ignora, long_variable) do
return {:ok, variable, long_variable}
end
end
d1 = [1,2,3]++[4,6]
d = [1,2,3,4,5,6]--[1,2]
i = 1 in d
true
iex(2)> 1===1.0
false
iex(3)> 1===!1.0
false
iex(4)> 1!===1.0
line_no = 50
if (line_no == 50) do
IO.puts "new-page\f"... | 16.2 | 61 | 0.584362 |
1c35fef6b967ac00b18f491502aa4ed228f7daad | 24 | exs | Elixir | index.exs | matiasdelgado/sfdx-cli | ef3f37f6cd18afb09732bb9f33595ece56c08766 | [
"MIT"
] | null | null | null | index.exs | matiasdelgado/sfdx-cli | ef3f37f6cd18afb09732bb9f33595ece56c08766 | [
"MIT"
] | 1 | 2021-05-11T05:35:21.000Z | 2021-05-11T05:35:21.000Z | index.exs | matiasdelgado/sfdx-cli | ef3f37f6cd18afb09732bb9f33595ece56c08766 | [
"MIT"
] | null | null | null | #!/usr/bin/env elixir
| 6 | 21 | 0.625 |
1c366409a2b7d1237c3ac2dc00526699f2f67ef1 | 75 | ex | Elixir | lib/voxpop/production.ex | zovafit/voxpop | 0af5903c010eb1164cabfd468719468cc909fcf0 | [
"MIT"
] | 10 | 2016-03-06T01:57:44.000Z | 2021-02-05T02:01:10.000Z | lib/voxpop/production.ex | zovafit/voxpop | 0af5903c010eb1164cabfd468719468cc909fcf0 | [
"MIT"
] | 5 | 2016-03-06T00:59:21.000Z | 2016-03-07T05:00:26.000Z | lib/voxpop/production.ex | zovafit/voxpop | 0af5903c010eb1164cabfd468719468cc909fcf0 | [
"MIT"
] | 3 | 2016-03-06T22:56:49.000Z | 2017-10-10T05:37:29.000Z | defprotocol Voxpop.Production do
def evaluate(production, registry)
end
| 15 | 36 | 0.813333 |
1c367679f7df2874fcb001431ea2f015344b15b7 | 882 | exs | Elixir | apps/forklift/config/test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 26 | 2019-09-20T23:54:45.000Z | 2020-08-20T14:23:32.000Z | apps/forklift/config/test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 757 | 2019-08-15T18:15:07.000Z | 2020-09-18T20:55:31.000Z | apps/forklift/config/test.exs | calebcarroll1/smartcitiesdata | b0f03496f6c592c82ba14aebf6c5996311cf3cd0 | [
"Apache-2.0"
] | 9 | 2019-11-12T16:43:46.000Z | 2020-03-25T16:23:16.000Z | use Mix.Config
config :logger, :level, :info
config :forklift,
data_reader: MockReader,
topic_writer: MockTopic,
table_writer: MockTable,
retry_count: 5,
retry_initial_delay: 10,
retry_max_wait: 500,
# To ensure that MessageWriter never starts while testing
message_processing_cadence: 1_000_000_000,
... | 22.615385 | 61 | 0.707483 |
1c369a189ce0ccce6bd6c1bcf4426237c065c7b7 | 786 | ex | Elixir | lib/mix/lib/mix/tasks/local.hex.ex | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/local.hex.ex | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/local.hex.ex | Tica2/elixir | 6cf1dcbfe4572fc75619f05e40c10fd0844083ef | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Local.Hex do
use Mix.Task
@hex_s3 "https://s3.amazonaws.com/s3.hex.pm"
@hex_list_url @hex_s3 <> "/installs/hex-1.x.csv"
@hex_archive_url @hex_s3 <> "/installs/[VERSION]/hex.ez"
@shortdoc "Install hex locally"
@moduledoc """
Install Hex locally.
mix local.hex
... | 29.111111 | 101 | 0.680662 |
1c369e409e1edc68208aafcaf4cf020f91d3ca42 | 1,061 | exs | Elixir | mix.exs | san650/html_party | 416698d562e8b30f400fec8961f4541320ed1b22 | [
"MIT"
] | 1 | 2018-04-24T13:33:33.000Z | 2018-04-24T13:33:33.000Z | mix.exs | san650/html_party | 416698d562e8b30f400fec8961f4541320ed1b22 | [
"MIT"
] | null | null | null | mix.exs | san650/html_party | 416698d562e8b30f400fec8961f4541320ed1b22 | [
"MIT"
] | null | null | null | defmodule HtmlParty.Mixfile do
use Mix.Project
def project do
[
app: :html_party,
description: description(),
version: "1.0.0",
elixir: "~> 1.5",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
source_url: "https://github.com/san650/html_pa... | 22.104167 | 125 | 0.593779 |
1c36c6de25730dbe5bcbd3e850f16daf04fa583f | 1,448 | ex | Elixir | lib/cforum_web/views/admin/auditing_view.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | lib/cforum_web/views/admin/auditing_view.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | lib/cforum_web/views/admin/auditing_view.ex | campingrider/cforum_ex | cf27684c47d6dc26c9c37a946f1c729a79d27c70 | [
"MIT"
] | null | null | null | defmodule CforumWeb.Admin.AuditView do
use CforumWeb, :view
def page_title(:index, _), do: gettext("audit log")
def page_title(:show, _), do: gettext("audit log")
def page_heading(action, assigns), do: page_title(action, assigns)
def body_id(:index, _), do: "admin-audit-index"
def body_id(:show), do: "ad... | 33.674419 | 112 | 0.667818 |
1c36f883224a4c415b1bba36b2f0eb186398abcc | 4,544 | ex | Elixir | lib/kamex/interpreter/builtins.ex | Ovyerus/kamex | c6ac49c19e5b75a8d41db38cf7ae63665de02587 | [
"MIT"
] | 14 | 2022-01-01T14:40:55.000Z | 2022-01-07T12:59:05.000Z | lib/kamex/interpreter/builtins.ex | Ovyerus/kamex | c6ac49c19e5b75a8d41db38cf7ae63665de02587 | [
"MIT"
] | null | null | null | lib/kamex/interpreter/builtins.ex | Ovyerus/kamex | c6ac49c19e5b75a8d41db38cf7ae63665de02587 | [
"MIT"
] | null | null | null | defmodule Kamex.Interpreter.Builtins do
@moduledoc false
import Kamex.Interpreter, only: [compute_expr: 2]
alias Kamex.Exceptions
require __MODULE__.{Fold, Lists, Math}
alias __MODULE__.{Fold, Lists, Math}
@tru 1
@fals 0
@falsey [[], @fals]
@num_tokens [:int, :float, :complex]
@supported %{
... | 29.506494 | 114 | 0.59529 |
1c3723751bc65afaa9f94dd0d0d732c6f6365956 | 792 | exs | Elixir | test/pi_test.exs | versilov/pi | f81dc4b4a4b16920dfe9fc528533c7763813a1cd | [
"BSD-3-Clause"
] | 5 | 2021-03-05T09:03:31.000Z | 2021-03-20T04:45:09.000Z | test/pi_test.exs | versilov/pi | f81dc4b4a4b16920dfe9fc528533c7763813a1cd | [
"BSD-3-Clause"
] | null | null | null | test/pi_test.exs | versilov/pi | f81dc4b4a4b16920dfe9fc528533c7763813a1cd | [
"BSD-3-Clause"
] | null | null | null | defmodule PI.Test do
use ExUnit.Case, async: true
import ExUnit.CaptureIO, only: [capture_io: 1]
use PI
test "inspect with module, func, file & line number" do
object = %{some: "value", barcode: 123}
timestamp = PI.timestamp() |> String.replace(~r/\d{2}:\d{2}$/, "00:00")
expected =
"\n#{tim... | 34.434783 | 279 | 0.602273 |
1c372d112cfaca4ad3c621906ffb75b618984565 | 111,603 | ex | Elixir | test/support/stellar/Stellar.XDR_generated.ex | revelrylabs/exdr | 4a3a5d65e2d0ba2daba32c5f648cbe401176e2e1 | [
"MIT"
] | 3 | 2020-01-12T03:16:38.000Z | 2020-09-06T03:37:03.000Z | test/support/stellar/Stellar.XDR_generated.ex | revelrylabs/exdr | 4a3a5d65e2d0ba2daba32c5f648cbe401176e2e1 | [
"MIT"
] | 7 | 2019-10-14T14:27:31.000Z | 2020-05-01T22:27:52.000Z | test/support/stellar/Stellar.XDR_generated.ex | revelrylabs/exdr | 4a3a5d65e2d0ba2daba32c5f648cbe401176e2e1 | [
"MIT"
] | 1 | 2020-02-06T23:19:24.000Z | 2020-02-06T23:19:24.000Z | defmodule Stellar.XDR do
@moduledoc """
Automatically generated on 2019-11-06T08:55:43-06:00
DO NOT EDIT or your changes may be overwritten
Target implementation: exdr at https://hex.pm/packages/exdr
"""
use XDR.Base
comment(~S"""
=== xdr source =======================================================... | 27.015977 | 97 | 0.443097 |
1c376fa9abeaf67f3abd3b2ab3cc07b25066b8a1 | 2,100 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/conversions_batch_update_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/conversions_batch_update_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/conversions_batch_update_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"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... | 38.888889 | 166 | 0.751429 |
1c37760033320348a3f7f3644e18aa3447bcd263 | 1,990 | ex | Elixir | chat-api/web/controllers/api/room_controller.ex | antonpetkoff/smolltolk | 64c6d4a52e7624302ad87a072fc108fe4c1382ec | [
"MIT"
] | null | null | null | chat-api/web/controllers/api/room_controller.ex | antonpetkoff/smolltolk | 64c6d4a52e7624302ad87a072fc108fe4c1382ec | [
"MIT"
] | 3 | 2018-01-23T10:53:08.000Z | 2018-01-23T10:58:23.000Z | chat-api/web/controllers/api/room_controller.ex | antonpetkoff/smolltolk | 64c6d4a52e7624302ad87a072fc108fe4c1382ec | [
"MIT"
] | null | null | null | defmodule Chat.RoomController do
use Chat.Web, :controller
alias Chat.Room
plug Guardian.Plug.EnsureAuthenticated, handler: Chat.SessionController
def index(conn, params) do
page =
Chat.Room
|> order_by([asc: :id])
|> Chat.Repo.paginate(params)
render(conn, "index.json", page: page... | 26.184211 | 73 | 0.605025 |
1c379bd08ab40cc437dcb6af7259dcadec91359f | 232 | exs | Elixir | chapter3/challenges/mealcon/priv/repo/migrations/20210405213230_create_users_table.exs | mCodex/rocketseat-ignite-elixir | bdb48db778c36b2325c75a41b4d6f7ef77b03cf5 | [
"MIT"
] | 1 | 2021-07-23T19:48:27.000Z | 2021-07-23T19:48:27.000Z | chapter3/challenges/mealcon/priv/repo/migrations/20210405213230_create_users_table.exs | mCodex/rocketseat-ignite-elixir | bdb48db778c36b2325c75a41b4d6f7ef77b03cf5 | [
"MIT"
] | null | null | null | chapter3/challenges/mealcon/priv/repo/migrations/20210405213230_create_users_table.exs | mCodex/rocketseat-ignite-elixir | bdb48db778c36b2325c75a41b4d6f7ef77b03cf5 | [
"MIT"
] | null | null | null | defmodule Mealcon.Repo.Migrations.CreateUsersTable do
use Ecto.Migration
def change do
create table :users do
add :name, :string
add :cpf, :string
add :email, :string
timestamps()
end
end
end
| 16.571429 | 53 | 0.650862 |
1c37ab9aaf4cf53c56995f29c969e06b82b32f71 | 1,667 | exs | Elixir | mqtt/vernemq_iot_plugin/test/vernemq_mads_plugin_test.exs | arjun289/IoTMarketplaces | 5c569a62640fd5025f6a6ca3df2afb799a200423 | [
"Apache-2.0"
] | null | null | null | mqtt/vernemq_iot_plugin/test/vernemq_mads_plugin_test.exs | arjun289/IoTMarketplaces | 5c569a62640fd5025f6a6ca3df2afb799a200423 | [
"Apache-2.0"
] | null | null | null | mqtt/vernemq_iot_plugin/test/vernemq_mads_plugin_test.exs | arjun289/IoTMarketplaces | 5c569a62640fd5025f6a6ca3df2afb799a200423 | [
"Apache-2.0"
] | null | null | null | defmodule VernemqMadsPluginTest do
use ExUnit.Case
use AcqdatCore.DataCase
import AcqdatCore.Support.Factory
alias VernemqMadsPlugin.Account
alias AcqdatCore.Schema.IotManager.BrokerCredentials
alias AcqdatCore.Repo
test "authenticate a gateway client if correct uuid and password" do
gateway = inser... | 28.741379 | 93 | 0.718056 |
1c37bf2b265ad788a1f1aaf721f3908ab8089f5c | 2,096 | ex | Elixir | clients/big_query/lib/google_api/big_query/v2/model/multi_class_classification_metrics.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/big_query/lib/google_api/big_query/v2/model/multi_class_classification_metrics.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/big_query/lib/google_api/big_query/v2/model/multi_class_classification_metrics.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... | 38.814815 | 165 | 0.762405 |
1c37cde3871226c34eaca81ea41fab8fc835f4ba | 608 | exs | Elixir | priv/repo/migrations/20210923114515_create_images.exs | audacioustux/philopets | 9380416937d635d4b1f5e13fa6f8b52ee603addf | [
"blessing"
] | null | null | null | priv/repo/migrations/20210923114515_create_images.exs | audacioustux/philopets | 9380416937d635d4b1f5e13fa6f8b52ee603addf | [
"blessing"
] | null | null | null | priv/repo/migrations/20210923114515_create_images.exs | audacioustux/philopets | 9380416937d635d4b1f5e13fa6f8b52ee603addf | [
"blessing"
] | null | null | null | defmodule Philopets.Repo.Migrations.CreateImages do
use Ecto.Migration
def change do
create table(:images, primary_key: false) do
# files are typically directly accessible if the name is known.
# uuid v1mc is far less random than v4
add(:id, :binary_id,
primary_key: true,
de... | 27.636364 | 82 | 0.652961 |
1c37d05c15cdcb71fa8f0da515e7bfbb3f7581f4 | 10,104 | exs | Elixir | test/teslamate/vehicles/vehicle/suspend_logging_test.exs | Try2Fly/teslamate | 7ac8d5681231a494af288b0fb16adb1e775ffcec | [
"MIT"
] | null | null | null | test/teslamate/vehicles/vehicle/suspend_logging_test.exs | Try2Fly/teslamate | 7ac8d5681231a494af288b0fb16adb1e775ffcec | [
"MIT"
] | null | null | null | test/teslamate/vehicles/vehicle/suspend_logging_test.exs | Try2Fly/teslamate | 7ac8d5681231a494af288b0fb16adb1e775ffcec | [
"MIT"
] | null | null | null | defmodule TeslaMate.Vehicles.Vehicle.SuspendLoggingTest do
use TeslaMate.VehicleCase, async: true
alias TeslaMate.Vehicles.Vehicle
alias TeslaMate.Vehicles.Vehicle
test "immediately returns :ok if asleep", %{test: name} do
events = [
{:ok, %TeslaApi.Vehicle{state: "asleep"}}
]
:ok = start_... | 29.80531 | 97 | 0.63658 |
1c3811c892671cbc963ae599fc47fcd57558e380 | 789 | ex | Elixir | lib/etso/ets/table_structure.ex | phanmn/etso | 5b9929f6272b42c95f6fe16b12338335603e8d98 | [
"Apache-2.0"
] | 287 | 2019-08-30T21:19:09.000Z | 2022-03-19T04:34:00.000Z | lib/etso/ets/table_structure.ex | phanmn/etso | 5b9929f6272b42c95f6fe16b12338335603e8d98 | [
"Apache-2.0"
] | 17 | 2019-09-13T18:30:27.000Z | 2021-08-15T18:42:56.000Z | lib/etso/ets/table_structure.ex | phanmn/etso | 5b9929f6272b42c95f6fe16b12338335603e8d98 | [
"Apache-2.0"
] | 20 | 2019-09-08T15:29:32.000Z | 2022-03-20T08:51:28.000Z | defmodule Etso.ETS.TableStructure do
@moduledoc """
The ETS Table Structure module contains various convenience functions to aid the transformation
between Ecto Schemas (maps) and ETS entries (tuples). The primary key is moved to the head, in
accordance with ETS conventions. Composite primary keys can not be ac... | 30.346154 | 97 | 0.726236 |
1c38766133c0cd38bbd4b045aca92b4602422c89 | 72 | ex | Elixir | lib/chat_server/repo.ex | aswani521/chat_server | 9400a6137992a48e7bc2dd0aebf05ad56e430fe3 | [
"MIT"
] | null | null | null | lib/chat_server/repo.ex | aswani521/chat_server | 9400a6137992a48e7bc2dd0aebf05ad56e430fe3 | [
"MIT"
] | null | null | null | lib/chat_server/repo.ex | aswani521/chat_server | 9400a6137992a48e7bc2dd0aebf05ad56e430fe3 | [
"MIT"
] | null | null | null | defmodule ChatServer.Repo do
use Ecto.Repo, otp_app: :chat_server
end
| 18 | 38 | 0.791667 |
1c38951183a7f94bdb34265bdd5dbefe3a56144e | 1,541 | ex | Elixir | lib/phoenix/pubsub/rabbitmq_pub.ex | skunkwerks/phoenix_pubsub_rabbitmq | 3dc80ab94c27f6fe272c432d5cedf2cf682b7314 | [
"MIT"
] | null | null | null | lib/phoenix/pubsub/rabbitmq_pub.ex | skunkwerks/phoenix_pubsub_rabbitmq | 3dc80ab94c27f6fe272c432d5cedf2cf682b7314 | [
"MIT"
] | null | null | null | lib/phoenix/pubsub/rabbitmq_pub.ex | skunkwerks/phoenix_pubsub_rabbitmq | 3dc80ab94c27f6fe272c432d5cedf2cf682b7314 | [
"MIT"
] | 1 | 2020-12-22T05:38:26.000Z | 2020-12-22T05:38:26.000Z | defmodule Phoenix.PubSub.RabbitMQPub do
use GenServer
use AMQP
alias Phoenix.PubSub.RabbitMQ
@reconnect_after_ms 5_000
@moduledoc """
Worker for pooled publishers to RabbitMQ
"""
@doc """
Starts the server
"""
def start_link(conn_pool_name) do
GenServer.start_link(__MODULE__, [conn_pool_nam... | 24.460317 | 78 | 0.650876 |
1c3898f35d42d1cff973813936f286b4d6281f9c | 1,741 | ex | Elixir | chromoid_web/lib/chromoid/devices/device_token.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | 7 | 2020-11-18T11:29:20.000Z | 2022-01-16T03:16:14.000Z | chromoid_web/lib/chromoid/devices/device_token.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | null | null | null | chromoid_web/lib/chromoid/devices/device_token.ex | ConnorRigby/chromoid | 6424a9234227d18d7c287ded869caeb31511bb97 | [
"Apache-2.0"
] | 1 | 2021-01-06T15:40:46.000Z | 2021-01-06T15:40:46.000Z | defmodule Chromoid.Devices.DeviceToken do
use Ecto.Schema
import Ecto.Query
@hash_algorithm :sha256
@rand_size 32
# @reset_password_validity_in_days 1
# @confirm_validity_in_days 7
# @change_email_validity_in_days 7
@token_validity_in_days 60
schema "device_tokens" do
field :token, :binary
... | 25.985075 | 76 | 0.703619 |
1c38b3816b0939ec3f6ea81062666decb90bfa0f | 3,817 | ex | Elixir | lib/paper_trail/version_queries.ex | mihailacusteanu/paper_trail | 928f1dc422c752f194176d0ebe1932224e749d37 | [
"MIT"
] | null | null | null | lib/paper_trail/version_queries.ex | mihailacusteanu/paper_trail | 928f1dc422c752f194176d0ebe1932224e749d37 | [
"MIT"
] | null | null | null | lib/paper_trail/version_queries.ex | mihailacusteanu/paper_trail | 928f1dc422c752f194176d0ebe1932224e749d37 | [
"MIT"
] | null | null | null | defmodule PaperTrail.VersionQueries do
import Ecto.Query
alias PaperTrail.Version
@repo PaperTrail.RepoClient.repo
@doc """
Gets all the versions of a record.
"""
@spec get_versions(record :: Ecto.Schema.t) :: Ecto.Query.t
def get_versions(record), do: get_versions(record, [])
@doc """
Gets all th... | 34.387387 | 101 | 0.691381 |
1c38ecbbb4f3c651b8f4d422e35e170457f7c3c0 | 2,152 | ex | Elixir | lib/contracts_api/covenants.ex | gissandrogama/contracts_api | 13bcd292637d0e2bc4d2a6c05f5b3266e8bf28e1 | [
"MIT"
] | null | null | null | lib/contracts_api/covenants.ex | gissandrogama/contracts_api | 13bcd292637d0e2bc4d2a6c05f5b3266e8bf28e1 | [
"MIT"
] | 2 | 2021-03-16T06:43:04.000Z | 2021-03-16T06:54:55.000Z | lib/contracts_api/covenants.ex | gissandrogama/contracts_api | 13bcd292637d0e2bc4d2a6c05f5b3266e8bf28e1 | [
"MIT"
] | null | null | null | defmodule ContractsApi.Covenants do
@moduledoc """
Este modulo possui funções que persiste um contrato no banco.
Função `create_contract/1`
"""
import Ecto.Query
alias ContractsApi.Covenants.Contract
alias ContractsApi.Repo
@doc """
Função lista todos os contratos persistidas no banco de dados.
... | 27.240506 | 199 | 0.670539 |
1c393c0f6db50ffb0f742a46c24a07f8aa1abf2a | 28,584 | exs | Elixir | test/bsv_rpc/transaction_test.exs | slashrsm/bsv_rpc | 6ac717f4aefcd26045ad15796e4129fdc6a01434 | [
"MIT"
] | 4 | 2019-09-25T05:52:02.000Z | 2020-08-13T21:09:42.000Z | test/bsv_rpc/transaction_test.exs | slashrsm/bsv_rpc | 6ac717f4aefcd26045ad15796e4129fdc6a01434 | [
"MIT"
] | null | null | null | test/bsv_rpc/transaction_test.exs | slashrsm/bsv_rpc | 6ac717f4aefcd26045ad15796e4129fdc6a01434 | [
"MIT"
] | null | null | null | defmodule BsvRpc.TransactionTest do
use ExUnit.Case
import Mock
doctest BsvRpc.Transaction
test "transaction with multiple inputs is converted to binary" do
tx_hex =
"010000004A9CDCE8E0A7BE8895354D8B07DA452AF5BBBCB53FF3D1A16E3A426D98FF181531000000008B483045022100AB43E9076AA976FB89AA66F38B261E9A2720CD... | 107.05618 | 17,242 | 0.885915 |
1c393cdc8712cfbc7559fa64ebabc885e0ab550e | 535 | exs | Elixir | config/config.exs | sethforprivacy/farside | 720b049838d6af97c4f14faf454f3a9944f78a88 | [
"MIT"
] | null | null | null | config/config.exs | sethforprivacy/farside | 720b049838d6af97c4f14faf454f3a9944f78a88 | [
"MIT"
] | null | null | null | config/config.exs | sethforprivacy/farside | 720b049838d6af97c4f14faf454f3a9944f78a88 | [
"MIT"
] | null | null | null | import Config
config :farside,
port: 4001,
redis_conn: "redis://localhost:6379",
update_file: ".update-results",
service_prefix: "service-",
fallback_suffix: "-fallback",
previous_suffix: "-previous",
services_json: "services.json",
index: "index.eex",
headers: [
{"User-Agent", "Mozilla/5.0 (Linu... | 24.318182 | 86 | 0.628037 |
1c394d86eacd039111afb8b7c8922160a8684d54 | 1,513 | ex | Elixir | learn-phoenix/hello/lib/hello_web/endpoint.ex | atvaccaro/problems | 666b431b5489a5990a0f29d601c384c88e0e6132 | [
"MIT"
] | null | null | null | learn-phoenix/hello/lib/hello_web/endpoint.ex | atvaccaro/problems | 666b431b5489a5990a0f29d601c384c88e0e6132 | [
"MIT"
] | null | null | null | learn-phoenix/hello/lib/hello_web/endpoint.ex | atvaccaro/problems | 666b431b5489a5990a0f29d601c384c88e0e6132 | [
"MIT"
] | 1 | 2019-11-03T04:05:34.000Z | 2019-11-03T04:05:34.000Z | defmodule HelloWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :hello
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
@session_options [
store: :cookie,
key: "_hello_key",
... | 29.666667 | 97 | 0.719101 |
1c39570a8497d22260ce6b955f44bb9cb41a630d | 391 | exs | Elixir | dave-course/fibcache_proj/kvcache/test/kvcache_test.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | null | null | null | dave-course/fibcache_proj/kvcache/test/kvcache_test.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | 1 | 2021-03-09T16:27:25.000Z | 2021-03-09T16:27:25.000Z | dave-course/fibcache_proj/kvcache/test/kvcache_test.exs | jordanhubbard/elixir-projects | dee341d672e83a45a17a4a85abd54a480f95c506 | [
"BSD-2-Clause"
] | null | null | null | defmodule KVCacheTest do
use ExUnit.Case
doctest KVCache
test "set a value successfully" do
assert KVCache.set(:testKey, "hi there") == "hi there"
end
test "get a value successfully" do
KVCache.set(:testKey, "hi there")
assert KVCache.get(:testKey) == "hi there"
end
test "unknown value retu... | 20.578947 | 58 | 0.680307 |
1c39573606a94dc92bff8cc454df07f4852ce9c9 | 1,879 | ex | Elixir | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/v1_beta1_batch_create_producer_overrides_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/v1_beta1_batch_create_producer_overrides_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/v1_beta1_batch_create_producer_overrides_response.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 32.964912 | 156 | 0.76264 |
1c3960acc93f214572bcf82334787ab9c2c039e4 | 2,512 | ex | Elixir | insights/lib/insights_web/live/topology_live.ex | MillionIntegrals/elixir-mongodb-driver | 96c4cc3f21c4043323b8a9b33ad3a374760864c6 | [
"Apache-2.0"
] | null | null | null | insights/lib/insights_web/live/topology_live.ex | MillionIntegrals/elixir-mongodb-driver | 96c4cc3f21c4043323b8a9b33ad3a374760864c6 | [
"Apache-2.0"
] | null | null | null | insights/lib/insights_web/live/topology_live.ex | MillionIntegrals/elixir-mongodb-driver | 96c4cc3f21c4043323b8a9b33ad3a374760864c6 | [
"Apache-2.0"
] | null | null | null | defmodule InsightsWeb.TopologyLive do
use InsightsWeb, :live_view
alias Mongo.Monitor
alias Mongo.StreamingHelloMonitor
alias Mongo.Topology
require Logger
@impl true
def mount(_params, _session, socket) do
if connected?(socket) do
Phoenix.PubSub.subscribe(Insights.PubSub, "topology")
... | 27.010753 | 115 | 0.639729 |
1c3962998afc4654dd99a82c6ae46a9cd7b4f2e0 | 4,850 | ex | Elixir | lib/bson/encoder.ex | rafamedina/mongodb | 65bd68adbc2753c38d927ad0ba804fe8e66d50d7 | [
"Apache-2.0"
] | 1 | 2019-01-24T09:02:56.000Z | 2019-01-24T09:02:56.000Z | lib/bson/encoder.ex | rafamedina/mongodb | 65bd68adbc2753c38d927ad0ba804fe8e66d50d7 | [
"Apache-2.0"
] | 1 | 2021-09-23T18:21:31.000Z | 2021-09-28T14:39:42.000Z | lib/bson/encoder.ex | rafamedina/mongodb | 65bd68adbc2753c38d927ad0ba804fe8e66d50d7 | [
"Apache-2.0"
] | null | null | null | defmodule BSON.Encoder do
@moduledoc false
use BSON.Utils
def encode(true),
do: 0x01
def encode(false),
do: 0x00
def encode(nil),
do: ""
def encode(:BSON_min),
do: ""
def encode(:BSON_max),
do: ""
def encode(%BSON.Binary{binary: binary, subtype: subtype}) do
subtype = subty... | 30.124224 | 86 | 0.595464 |
1c39be448836c3e66279dff7c956bac7455c2eaa | 3,189 | ex | Elixir | clients/games/lib/google_api/games/v1/model/network_diagnostics.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/network_diagnostics.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/network_diagnostics.ex | leandrocp/elixir-google-api | a86e46907f396d40aeff8668c3bd81662f44c71e | [
"Apache-2.0"
] | 1 | 2020-11-10T16:58:27.000Z | 2020-11-10T16:58:27.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 48.318182 | 406 | 0.751646 |
1c39bf716550b64465240b1a3126e2b2604bfea2 | 251 | exs | Elixir | kousa/priv/repo/migrations/20210321141614_discord_login.exs | LeonardSSH/dogehouse | 584055ad407bc37fa35cdf36ebb271622e29d436 | [
"MIT"
] | 9 | 2021-03-17T03:56:18.000Z | 2021-09-24T22:45:14.000Z | kousa/priv/repo/migrations/20210321141614_discord_login.exs | ActuallyTomas/dogehouse | 8c3d2cd1d7e99e173f0658759467a391c4a90c4e | [
"MIT"
] | 12 | 2021-07-06T12:51:13.000Z | 2022-03-16T12:38:18.000Z | kousa/priv/repo/migrations/20210321141614_discord_login.exs | ActuallyTomas/dogehouse | 8c3d2cd1d7e99e173f0658759467a391c4a90c4e | [
"MIT"
] | 4 | 2021-07-15T20:33:50.000Z | 2022-03-27T12:46:47.000Z | defmodule Beef.Repo.Migrations.DiscordLogin do
use Ecto.Migration
def change do
alter table(:users) do
add :discordId, :string, null: true, default: nil
add :discordAccessToken, :string, null: true, default: nil
end
end
end
| 22.818182 | 64 | 0.697211 |
1c39c86e01f1e2be2b83559a47bc9a58e5d3e3c7 | 3,053 | ex | Elixir | elixir/lib/homework/merchants.ex | n7down/web-homework | 53a65cbd852fe0abd542ff1bd29ebbf450e87d5f | [
"MIT"
] | null | null | null | elixir/lib/homework/merchants.ex | n7down/web-homework | 53a65cbd852fe0abd542ff1bd29ebbf450e87d5f | [
"MIT"
] | null | null | null | elixir/lib/homework/merchants.ex | n7down/web-homework | 53a65cbd852fe0abd542ff1bd29ebbf450e87d5f | [
"MIT"
] | null | null | null | defmodule Homework.Merchants do
@moduledoc """
The Merchants context.
"""
import Ecto.Query, warn: false
alias Homework.Repo
alias Homework.Merchants.Merchant
@doc """
Returns the list of merchants.
## Examples
iex> list_merchants([])
[%Merchant{}, ...]
"""
def list_merchants(_ar... | 19.201258 | 95 | 0.61546 |
1c39d37e033290538130b62ce9d6d5ec0b8faf35 | 1,895 | ex | Elixir | elixir/otp_todo_app/lib/todo/cache.ex | raventid/coursera_learning | 115a03f08d30d8ba49f02c9692c289cbfb242358 | [
"MIT"
] | 1 | 2019-11-28T09:26:00.000Z | 2019-11-28T09:26:00.000Z | elixir/todo_app_with_metrics/lib/todo/cache.ex | raventid/coursera_learning | 115a03f08d30d8ba49f02c9692c289cbfb242358 | [
"MIT"
] | null | null | null | elixir/todo_app_with_metrics/lib/todo/cache.ex | raventid/coursera_learning | 115a03f08d30d8ba49f02c9692c289cbfb242358 | [
"MIT"
] | null | null | null | defmodule Todo.Cache do
use GenServer
# Rename this to start_link, so everyone
# understand that we are running with
# supervisor.
def start_link do
IO.puts("Starting supervised cache.")
DynamicSupervisor.start_link(
name: __MODULE__,
strategy: :one_for_one
)
end
def child_spec(... | 23.987342 | 72 | 0.659103 |
1c39f617b9197847f4d2c08ad79042dcc6e14c88 | 936 | ex | Elixir | apps/fz_http/lib/fz_http/oidc.ex | bhardwajRahul/firezone | 836bfda9e28350443f2093f810872f2bee7c6cdc | [
"Apache-2.0"
] | null | null | null | apps/fz_http/lib/fz_http/oidc.ex | bhardwajRahul/firezone | 836bfda9e28350443f2093f810872f2bee7c6cdc | [
"Apache-2.0"
] | null | null | null | apps/fz_http/lib/fz_http/oidc.ex | bhardwajRahul/firezone | 836bfda9e28350443f2093f810872f2bee7c6cdc | [
"Apache-2.0"
] | null | null | null | defmodule FzHttp.OIDC do
@moduledoc """
The OIDC context.
"""
import Ecto.Query, warn: false
alias FzHttp.{OIDC.Connection, Repo, Users.User}
def list_connections(%User{id: id}) do
Repo.all(from Connection, where: [user_id: ^id])
end
def get_connection!(user_id, provider) do
Repo.get_by!(Con... | 25.297297 | 80 | 0.69765 |
1c3a08287dddf0040588cdf02c3b6100bc2e13b5 | 4,285 | ex | Elixir | lib/oli_web/views/delivery_view.ex | AnkitKadamATS/oli-torus | 3f9d5e8d568684b28d2ed65e17f796ae4c27c072 | [
"MIT"
] | null | null | null | lib/oli_web/views/delivery_view.ex | AnkitKadamATS/oli-torus | 3f9d5e8d568684b28d2ed65e17f796ae4c27c072 | [
"MIT"
] | null | null | null | lib/oli_web/views/delivery_view.ex | AnkitKadamATS/oli-torus | 3f9d5e8d568684b28d2ed65e17f796ae4c27c072 | [
"MIT"
] | 1 | 2021-10-30T05:58:19.000Z | 2021-10-30T05:58:19.000Z | defmodule OliWeb.DeliveryView do
use OliWeb, :view
alias Oli.Delivery.Sections.Section
alias Oli.Accounts.User
alias Lti_1p3.Tool.ContextRoles
alias Lti_1p3.Tool.PlatformRoles
def source_id(source) do
case Map.get(source, :type, nil) do
nil -> "publication:#{source.id}"
_ -> "product:#{sou... | 20.600962 | 85 | 0.582497 |
1c3a1b94152c5260750f9b1d75edd240d786992a | 1,686 | ex | Elixir | ex_graphs_book/apps/native_graph/lib/native_graph/serializer.ex | NickMcG/ExGraphsBook | 89276d374dd21cc4605a4b1b5a05b177723680c2 | [
"Apache-2.0"
] | null | null | null | ex_graphs_book/apps/native_graph/lib/native_graph/serializer.ex | NickMcG/ExGraphsBook | 89276d374dd21cc4605a4b1b5a05b177723680c2 | [
"Apache-2.0"
] | null | null | null | ex_graphs_book/apps/native_graph/lib/native_graph/serializer.ex | NickMcG/ExGraphsBook | 89276d374dd21cc4605a4b1b5a05b177723680c2 | [
"Apache-2.0"
] | null | null | null | defmodule NativeGraph.Serializer do
@callback serialize(Graph.t()) :: {:ok, binary} | {:error, term}
defmacro __using__(_) do
quote do
@behaviour NativeGraph.Serializer
end
end
def get_vertex_label(%Graph{vertex_labels: vl}, id, v) do
case Map.get(vl, id) do
[] -> nil
label ->... | 28.1 | 80 | 0.637011 |
1c3a24fd5fc4129a09eb0a0dde5b14a14e056271 | 288 | ex | Elixir | lib/csp_report_collector/repo.ex | eoinkelly/csp_report_collector | 12e965cb5c23add1f2dbe6745c605a9cf0b42d75 | [
"Apache-2.0"
] | 2 | 2018-12-03T17:17:52.000Z | 2022-02-01T13:26:20.000Z | lib/csp_report_collector/repo.ex | eoinkelly/csp_report_collector | 12e965cb5c23add1f2dbe6745c605a9cf0b42d75 | [
"Apache-2.0"
] | null | null | null | lib/csp_report_collector/repo.ex | eoinkelly/csp_report_collector | 12e965cb5c23add1f2dbe6745c605a9cf0b42d75 | [
"Apache-2.0"
] | null | null | null | defmodule CspReportCollector.Repo do
use Ecto.Repo, otp_app: :csp_report_collector
@doc """
Dynamically loads the repository url from the
DATABASE_URL environment variable.
"""
def init(_, opts) do
{:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))}
end
end
| 24 | 66 | 0.722222 |
1c3a3199d64e86cee417dd16b6cea636d30c7ce8 | 1,028 | ex | Elixir | lib/elixero/core_api/tax_rates.ex | philals/elixero | fd75fe4a6f0a93b1d2ff94adbb307d20f014d458 | [
"MIT"
] | 84 | 2016-11-09T01:15:17.000Z | 2022-01-06T02:55:35.000Z | lib/elixero/core_api/tax_rates.ex | philals/elixero | fd75fe4a6f0a93b1d2ff94adbb307d20f014d458 | [
"MIT"
] | 14 | 2017-03-10T04:16:07.000Z | 2021-11-10T16:39:19.000Z | lib/elixero/core_api/tax_rates.ex | philals/elixero | fd75fe4a6f0a93b1d2ff94adbb307d20f014d458 | [
"MIT"
] | 18 | 2017-03-11T21:12:15.000Z | 2022-02-22T20:07:10.000Z | defmodule EliXero.CoreApi.TaxRates do
@resource "taxrates"
@model_module EliXero.CoreApi.Models.TaxRates
def find(client) do
EliXero.CoreApi.Common.find(client, @resource)
|> EliXero.CoreApi.Utils.ResponseHandler.handle_response(@model_module)
end
def find(client, identifier) do
EliXero.CoreApi.... | 35.448276 | 79 | 0.771401 |
1c3a4c5901e440f95a99aed633b10484749af6e9 | 1,908 | ex | Elixir | elixir/lib/homework_web/schemas/transactions_schema.ex | MitchellJeppson/DivvyPayHQ-web-homework | 01dc6a7ee0173c92633d93f7ba7e9162b1189985 | [
"MIT"
] | null | null | null | elixir/lib/homework_web/schemas/transactions_schema.ex | MitchellJeppson/DivvyPayHQ-web-homework | 01dc6a7ee0173c92633d93f7ba7e9162b1189985 | [
"MIT"
] | null | null | null | elixir/lib/homework_web/schemas/transactions_schema.ex | MitchellJeppson/DivvyPayHQ-web-homework | 01dc6a7ee0173c92633d93f7ba7e9162b1189985 | [
"MIT"
] | 1 | 2021-03-30T07:41:56.000Z | 2021-03-30T07:41:56.000Z | defmodule HomeworkWeb.Schemas.TransactionsSchema do
@moduledoc """
Defines the graphql schema for transactions.
"""
use Absinthe.Schema.Notation
alias HomeworkWeb.Resolvers.TransactionsResolver
object :transaction do
field(:id, non_null(:id))
field(:user_id, :id)
field(:amount, :integer)
f... | 28.058824 | 57 | 0.671384 |
1c3aa3be67002687f62f8da425098b8320ec45c2 | 7,676 | ex | Elixir | lib/groupher_server/delivery/delegates/notification.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | lib/groupher_server/delivery/delegates/notification.ex | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | lib/groupher_server/delivery/delegates/notification.ex | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Delivery.Delegate.Notification do
@moduledoc """
notification for upvote, comment, publish, collect, watch, follow an article or user
"""
import Ecto.Query, warn: false
import Helper.Utils,
only: [get_config: 2, done: 1, strip_struct: 1, atom_values_to_upcase: 1]
import ShortM... | 32.525424 | 127 | 0.65073 |
1c3aad6b48440e1472ab77ba74e3b976dd43bd1c | 74 | exs | Elixir | test/sibt_web/views/page_view_test.exs | amacgregor/sibt | 9819a9de4735612ee59de00f71ca1a6dfa275860 | [
"MIT"
] | null | null | null | test/sibt_web/views/page_view_test.exs | amacgregor/sibt | 9819a9de4735612ee59de00f71ca1a6dfa275860 | [
"MIT"
] | 2 | 2020-07-18T02:22:22.000Z | 2021-03-09T15:46:44.000Z | test/sibt_web/views/page_view_test.exs | amacgregor/shouldibuildthat | 572b0ba95f93f6ea0dc7b250baaa1bc90efd521b | [
"MIT"
] | null | null | null | defmodule SibtWeb.PageViewTest do
use SibtWeb.ConnCase, async: true
end
| 18.5 | 35 | 0.810811 |
1c3ae1535a295be038cd7a3fe98f11854646ce82 | 84 | exs | Elixir | test/views/page_view_test.exs | davidgrupp/Bucket-Island | 674bf0f8029a22b56fc245d8927561dca2d3cd0a | [
"Apache-2.0"
] | 1 | 2017-09-03T17:41:28.000Z | 2017-09-03T17:41:28.000Z | test/views/page_view_test.exs | davidgrupp/Bucket-Island | 674bf0f8029a22b56fc245d8927561dca2d3cd0a | [
"Apache-2.0"
] | null | null | null | test/views/page_view_test.exs | davidgrupp/Bucket-Island | 674bf0f8029a22b56fc245d8927561dca2d3cd0a | [
"Apache-2.0"
] | null | null | null | defmodule BucketIsland.PageViewTest do
use BucketIsland.ConnCase, async: true
end
| 21 | 40 | 0.833333 |
1c3b14e3d44f6ce95ce1739c49c7c70e8441c477 | 394 | exs | Elixir | mix.exs | ayonix/zxcvbn-ex | ce5f1a9f5ca3b7b17c895fc237e12cdede85da38 | [
"MIT"
] | 2 | 2018-10-09T20:17:08.000Z | 2018-10-18T23:30:49.000Z | mix.exs | ayonix/zxcvbn-ex | ce5f1a9f5ca3b7b17c895fc237e12cdede85da38 | [
"MIT"
] | 13 | 2018-10-06T08:03:23.000Z | 2019-10-02T18:50:43.000Z | mix.exs | ayonix/zxcvbn-ex | ce5f1a9f5ca3b7b17c895fc237e12cdede85da38 | [
"MIT"
] | 7 | 2018-10-06T10:14:41.000Z | 2019-10-01T09:29:44.000Z | defmodule Zxcvbn.MixProject do
use Mix.Project
def project do
[
app: :zxcvbn,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{... | 15.153846 | 64 | 0.522843 |
1c3b2b9992d1cb7d60167bd9ca639ad33d7ecfb3 | 213 | ex | Elixir | lib/absinthe/execution/resolution/enum.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | 1 | 2019-05-07T15:05:52.000Z | 2019-05-07T15:05:52.000Z | lib/absinthe/execution/resolution/enum.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | null | null | null | lib/absinthe/execution/resolution/enum.ex | scrogson/absinthe | aa7e9c83dc10603c72f80e09a60d12495bc1c6b7 | [
"Unlicense"
] | null | null | null | defimpl Absinthe.Execution.Resolution, for: Absinthe.Type.Enum do
def resolve(enum, %{resolution: %{target: target}} = execution) do
{:ok, Absinthe.Type.Enum.serialize!(enum, target), execution}
end
end
| 26.625 | 68 | 0.723005 |
1c3b41e323be3b54fecf0b3a39671354104241ae | 295 | exs | Elixir | test/dogma/util/lines_test.exs | lpil/dogma | e0f55c27ec3053be0313ac93f3d036437ee590a1 | [
"MIT"
] | 558 | 2015-06-21T18:20:59.000Z | 2021-12-30T16:25:47.000Z | test/dogma/util/lines_test.exs | lpil/dogma | e0f55c27ec3053be0313ac93f3d036437ee590a1 | [
"MIT"
] | 252 | 2015-06-19T13:00:47.000Z | 2021-04-21T08:04:16.000Z | test/dogma/util/lines_test.exs | lpil/dogma | e0f55c27ec3053be0313ac93f3d036437ee590a1 | [
"MIT"
] | 79 | 2015-06-21T14:18:30.000Z | 2021-12-30T16:26:09.000Z | defmodule Dogma.Util.LinesTest do
use ExUnit.Case, async: true
alias Dogma.Util.Lines
test "split a string into lines" do
result = """
Hello,
world!
""" |> Lines.get
expected = [
{1, "Hello,"},
{2, "world!"},
]
assert result == expected
end
end
| 16.388889 | 37 | 0.566102 |
1c3b4aa78db8ca362b05e7f640e388b6f50a1d14 | 104 | ex | Elixir | lib/hello_web/views/layout_view.ex | krzysztofmo/hello | 8d317fd168bec46de698268e6ffce752c9fa4c94 | [
"MIT"
] | null | null | null | lib/hello_web/views/layout_view.ex | krzysztofmo/hello | 8d317fd168bec46de698268e6ffce752c9fa4c94 | [
"MIT"
] | null | null | null | lib/hello_web/views/layout_view.ex | krzysztofmo/hello | 8d317fd168bec46de698268e6ffce752c9fa4c94 | [
"MIT"
] | null | null | null | defmodule HelloWeb.LayoutView do
use HelloWeb, :view
def node_name() do
Node.self()
end
end
| 11.555556 | 32 | 0.692308 |
1c3b4bc820e228d935094f68c18efbf4d65d96e2 | 60 | ex | Elixir | web/views/session_view.ex | NorifumiKawamoto/ginjyo | 8e28438db4675bb55ba090614c6834190adb61b1 | [
"MIT"
] | null | null | null | web/views/session_view.ex | NorifumiKawamoto/ginjyo | 8e28438db4675bb55ba090614c6834190adb61b1 | [
"MIT"
] | null | null | null | web/views/session_view.ex | NorifumiKawamoto/ginjyo | 8e28438db4675bb55ba090614c6834190adb61b1 | [
"MIT"
] | null | null | null | defmodule Ginjyo.SessionView do
use Ginjyo.Web, :view
end
| 15 | 31 | 0.783333 |
1c3b5bf77d5fd23fe85f113f531290e82bd86d82 | 364 | exs | Elixir | test/wallaby/phantom/driver/configuration_test.exs | schnittchen/wallaby | 30be89cc78087e53e5b47a86043c2bbe8566bbf4 | [
"MIT"
] | null | null | null | test/wallaby/phantom/driver/configuration_test.exs | schnittchen/wallaby | 30be89cc78087e53e5b47a86043c2bbe8566bbf4 | [
"MIT"
] | null | null | null | test/wallaby/phantom/driver/configuration_test.exs | schnittchen/wallaby | 30be89cc78087e53e5b47a86043c2bbe8566bbf4 | [
"MIT"
] | null | null | null | defmodule Wallaby.Phantom.Driver.ConfigurationTest do
use Wallaby.SessionCase, async: false
test "js errors can be disabled", %{session: session} do
Application.put_env(:wallaby, :js_errors, false)
session
|> visit("/errors.html")
|> click_button("Throw an Error")
|> assert
Application.pu... | 24.266667 | 58 | 0.700549 |
1c3b65e7699f236591a824a9e41ff6fafcea002a | 246 | ex | Elixir | apps/proxy/lib/supervisor.ex | nicolasbaer/thirsty_throttler | 04d68f94d97fa2a661e6c00898b3b140cdba9b4a | [
"Apache-2.0"
] | null | null | null | apps/proxy/lib/supervisor.ex | nicolasbaer/thirsty_throttler | 04d68f94d97fa2a661e6c00898b3b140cdba9b4a | [
"Apache-2.0"
] | null | null | null | apps/proxy/lib/supervisor.ex | nicolasbaer/thirsty_throttler | 04d68f94d97fa2a661e6c00898b3b140cdba9b4a | [
"Apache-2.0"
] | null | null | null | defmodule Proxy.Supervisor do
use Supervisor
def start_link(_) do
{:ok, _sup} = Supervisor.start_link(__MODULE__, [], name: :supervisor)
end
def init(_) do
processes = []
{:ok, {{:one_for_one, 10, 10}, processes}}
end
end | 18.923077 | 74 | 0.646341 |
1c3b9d59f0b1f0d812ceebc36e6ae2c9fed84c32 | 84 | exs | Elixir | test/lab42_html_test.exs | RobertDober/lab42_html | 8ec0bbce73e5e99964ec50e00d7d56c30b50b1fd | [
"Apache-2.0"
] | null | null | null | test/lab42_html_test.exs | RobertDober/lab42_html | 8ec0bbce73e5e99964ec50e00d7d56c30b50b1fd | [
"Apache-2.0"
] | 2 | 2019-10-14T08:50:28.000Z | 2019-10-16T11:09:08.000Z | test/lab42_html_test.exs | RobertDober/lab42_html | 8ec0bbce73e5e99964ec50e00d7d56c30b50b1fd | [
"Apache-2.0"
] | null | null | null | defmodule Lab42HtmlTest do
use ExUnit.Case
doctest Lab42.Html, import: true
end
| 16.8 | 34 | 0.785714 |
1c3be96a8bae5cd179ac89aaed674a636d87274b | 62,425 | ex | Elixir | clients/translate/lib/google_api/translate/v3/api/projects.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/translate/lib/google_api/translate/v3/api/projects.ex | kolorahl/elixir-google-api | 46bec1e092eb84c6a79d06c72016cb1a13777fa6 | [
"Apache-2.0"
] | null | null | null | clients/translate/lib/google_api/translate/v3/api/projects.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... | 43.837781 | 196 | 0.618791 |
1c3bf31056ee06a2048311926d72f0a977eedb16 | 1,844 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/date_range.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/date_range.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/date_range.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... | 32.928571 | 129 | 0.694143 |
1c3c01096ba50851581374cc3ad1285c8b6dfad6 | 274 | ex | Elixir | lib/plumbapius/coverage/coverage_tracker.ex | kuznetsov-v-spb/plumbapius | bd5f6b597417b5a28d7e9abb9bb3ef7b020c3f10 | [
"Apache-2.0"
] | null | null | null | lib/plumbapius/coverage/coverage_tracker.ex | kuznetsov-v-spb/plumbapius | bd5f6b597417b5a28d7e9abb9bb3ef7b020c3f10 | [
"Apache-2.0"
] | null | null | null | lib/plumbapius/coverage/coverage_tracker.ex | kuznetsov-v-spb/plumbapius | bd5f6b597417b5a28d7e9abb9bb3ef7b020c3f10 | [
"Apache-2.0"
] | null | null | null | defmodule Plumbapius.Coverage.CoverageTracker do
alias Plumbapius.Request
alias Plumbapius.Response
@type t :: module()
@type interaction :: {Request.Schema.t(), Response.Schema.t()}
@callback response_covered(Request.Schema.t(), Response.Schema.t()) :: :ok
end
| 27.4 | 76 | 0.737226 |
1c3c1bcd46a42fcc2c55d13565df1620a4b9622a | 1,262 | ex | Elixir | lib/elixir_xml_to_map.ex | szTheory/elixir-xml-to-map | f8d3023240e29152b242750a41c4dfad2478972a | [
"Apache-2.0"
] | null | null | null | lib/elixir_xml_to_map.ex | szTheory/elixir-xml-to-map | f8d3023240e29152b242750a41c4dfad2478972a | [
"Apache-2.0"
] | null | null | null | lib/elixir_xml_to_map.ex | szTheory/elixir-xml-to-map | f8d3023240e29152b242750a41c4dfad2478972a | [
"Apache-2.0"
] | null | null | null | defmodule XmlToMap do
@moduledoc """
Simple convenience module for getting a map out of an XML string.
"""
alias XmlToMap.NaiveMap
@doc """
naive_map(xml) utility is inspired by Rails Hash.from_xml()
but is "naive" in that it is convenient (requires no setup)
but carries the same drawbacks. For examp... | 32.358974 | 72 | 0.694136 |
1c3c236a5fda125eff8ec467c5715e5f7579587d | 2,447 | ex | Elixir | lib/excel.ex | imahiro-t/smallex | 5fbc7080fde7f63b3440d8325f45d61f5d1b5bc3 | [
"Apache-2.0"
] | 7 | 2020-01-13T21:17:28.000Z | 2021-11-15T12:10:55.000Z | lib/excel.ex | data-maestro/smallex | 5fbc7080fde7f63b3440d8325f45d61f5d1b5bc3 | [
"Apache-2.0"
] | 26 | 2021-02-25T09:22:28.000Z | 2021-06-11T02:59:11.000Z | lib/excel.ex | data-maestro/smallex | 5fbc7080fde7f63b3440d8325f45d61f5d1b5bc3 | [
"Apache-2.0"
] | 2 | 2018-01-02T17:59:40.000Z | 2018-01-12T17:16:02.000Z | defmodule Excel do
@moduledoc """
Excel library.
"""
@doc """
Load map
## Parameters
- `path` : Excel(.xlsx) file path
- `sheet_number` : Sheet number (0-origin)
## Examples
iex> Excel.load_map( "test/test.xlsx", "sheet1" )
[
%{ "age" => "49", "id" => "1", "name" => "John Smith" },
%{ "age" => "... | 23.084906 | 65 | 0.50756 |
1c3c852fdf29b8a0f71fc127e5da8e9e9fa3ce0a | 3,990 | exs | Elixir | test/custom_extensions_test.exs | ivan/postgrex | dd377695fbe469bc3823116b9e4e8f498996b9a3 | [
"Apache-2.0"
] | null | null | null | test/custom_extensions_test.exs | ivan/postgrex | dd377695fbe469bc3823116b9e4e8f498996b9a3 | [
"Apache-2.0"
] | null | null | null | test/custom_extensions_test.exs | ivan/postgrex | dd377695fbe469bc3823116b9e4e8f498996b9a3 | [
"Apache-2.0"
] | null | null | null | defmodule CustomExtensionsTest do
use ExUnit.Case, async: true
import Postgrex.TestHelper
import ExUnit.CaptureLog
alias Postgrex, as: P
@types CustomExtensionsTypes
defmodule BinaryExtension do
@behaviour Postgrex.Extension
def init([]),
do: []
def matching([]),
do: [send: "int4... | 23.333333 | 95 | 0.592481 |
1c3cb3c732928e5789c62b4a0e2f1fddb6b3cb98 | 1,465 | exs | Elixir | mix.exs | gumabe/metatags | e4098c26c7ef255412c1563c81493925d1e799dd | [
"MIT"
] | null | null | null | mix.exs | gumabe/metatags | e4098c26c7ef255412c1563c81493925d1e799dd | [
"MIT"
] | null | null | null | mix.exs | gumabe/metatags | e4098c26c7ef255412c1563c81493925d1e799dd | [
"MIT"
] | null | null | null | defmodule Metatags.Mixfile do
use Mix.Project
@version "0.3.0"
@description """
Metatags provides an easy to work with API to set default and
page specific metatags on a page.
"""
def project do
[
app: :metatags,
version: @version,
elixir: "~> 1.4",
deps: deps(),
descr... | 21.865672 | 72 | 0.530375 |
1c3cd49a35b765b034d5ce4fa53f4d95c4c4bd1b | 651 | exs | Elixir | config/test.exs | seent-app/seent | 6071a0f90f1cb5345faa0c9e476d3c64310a7be9 | [
"0BSD"
] | null | null | null | config/test.exs | seent-app/seent | 6071a0f90f1cb5345faa0c9e476d3c64310a7be9 | [
"0BSD"
] | 1 | 2020-07-04T17:19:38.000Z | 2020-07-04T17:19:38.000Z | config/test.exs | seent-app/seent | 6071a0f90f1cb5345faa0c9e476d3c64310a7be9 | [
"0BSD"
] | null | null | null | use Mix.Config
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
config :seent, Seent.Repo,
username: "postgres",
password: "postgres",
database: "seent_test#{System.get_env(... | 28.304348 | 64 | 0.745008 |
1c3ce4e0c56c35aa31787dfa76a6eb07fd7a82de | 693 | exs | Elixir | config/travis.exs | edgar971/built_with_elixir | 9837f986d33e83524167b68fc44ee36e84387747 | [
"MIT"
] | 8 | 2018-04-15T19:01:14.000Z | 2018-11-19T16:13:56.000Z | config/travis.exs | edgar971/built_with_elixir | 9837f986d33e83524167b68fc44ee36e84387747 | [
"MIT"
] | 8 | 2018-04-14T03:32:12.000Z | 2018-05-15T04:28:27.000Z | config/travis.exs | edgar971/built_with_elixir | 9837f986d33e83524167b68fc44ee36e84387747 | [
"MIT"
] | null | null | null | use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :built_with_elixir, BuiltWithElixirWeb.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure your database
config :b... | 23.896552 | 56 | 0.744589 |
1c3cefc068cffa677da5156fa2b41870cf90f16d | 1,879 | ex | Elixir | apps/omg_status/lib/omg_status/release_tasks/set_logger.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 177 | 2018-08-24T03:51:02.000Z | 2020-05-30T13:29:25.000Z | apps/omg_status/lib/omg_status/release_tasks/set_logger.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 1,042 | 2018-08-25T00:52:39.000Z | 2020-06-01T05:15:17.000Z | apps/omg_status/lib/omg_status/release_tasks/set_logger.ex | omisego/elixir-omg | 2c68973d8f29033d137f63a6e060f12e2a7dcd59 | [
"Apache-2.0"
] | 47 | 2018-08-24T12:06:33.000Z | 2020-04-28T11:49:25.000Z | # Copyright 2019-2019 OMG Network 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... | 29.359375 | 101 | 0.708356 |
1c3cfe89cfe2114dde55de70987a7e0a6167ba28 | 491 | ex | Elixir | lib/sobelow/ci/os.ex | kianmeng/sobelow | 40c5f12ed6801c1f9cca13201f7f6ff31c8a7660 | [
"Apache-2.0"
] | null | null | null | lib/sobelow/ci/os.ex | kianmeng/sobelow | 40c5f12ed6801c1f9cca13201f7f6ff31c8a7660 | [
"Apache-2.0"
] | null | null | null | lib/sobelow/ci/os.ex | kianmeng/sobelow | 40c5f12ed6801c1f9cca13201f7f6ff31c8a7660 | [
"Apache-2.0"
] | null | null | null | defmodule Sobelow.CI.OS do
use Sobelow.Finding
@finding_type "Command Injection in `:os.cmd`"
def run(fun, meta_file) do
confidence = if !meta_file.is_controller?, do: :low
Finding.init(@finding_type, meta_file.filename, confidence)
|> Finding.multi_from_def(fun, parse_def(fun))
|> Enum.each(&Pr... | 23.380952 | 63 | 0.698574 |
1c3d149bc92c1e9b176bf2ec2742e90b3c9fda01 | 725 | ex | Elixir | web/gettext.ex | Gronex/wishlist_manager | be240ebc85a737f31bd64bc913a2c3716827fd26 | [
"MIT"
] | null | null | null | web/gettext.ex | Gronex/wishlist_manager | be240ebc85a737f31bd64bc913a2c3716827fd26 | [
"MIT"
] | 7 | 2015-12-30T19:43:10.000Z | 2016-01-04T14:38:38.000Z | web/gettext.ex | Gronex/wishlist_manager | be240ebc85a737f31bd64bc913a2c3716827fd26 | [
"MIT"
] | null | null | null | defmodule WishlistManager.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.
By using [Gettext](http://hexdocs.pm/gettext),
your module gains a set of macros for translations, for example:
import WishlistManager.Gettext
# Simple translation
gettext "... | 29 | 71 | 0.688276 |
1c3d2389953d173a4eaa998e9b9b599b68e18c22 | 818 | ex | Elixir | lib/still/preprocessor/url_fingerprinting.ex | fmterrorf/still | fd316bcc38cdf618444dbd36ec9d259fe5256a3e | [
"0BSD"
] | 2 | 2021-02-15T07:55:38.000Z | 2021-03-05T18:04:53.000Z | lib/still/preprocessor/url_fingerprinting.ex | mrmicahcooper/still | ba785b0b068d998d0343f73a1fd1795edbe9831c | [
"0BSD"
] | null | null | null | lib/still/preprocessor/url_fingerprinting.ex | mrmicahcooper/still | ba785b0b068d998d0343f73a1fd1795edbe9831c | [
"0BSD"
] | null | null | null | defmodule Still.Preprocessor.URLFingerprinting do
@moduledoc """
Creates a hash based on the content of the file and generates a fingerprint
to replace the output file.
"""
alias Still.Preprocessor
import Still.Utils, only: [config: 2]
use Preprocessor
@impl true
def render(%{output_file: nil} = f... | 19.023256 | 84 | 0.651589 |
1c3d2df3c620df21371c4eb52b95a7f1adcc5134 | 21,022 | ex | Elixir | lib/mix/lib/mix/project.ex | farhadi/elixir | 0a37064fd5b67639afb845ff321d6c8ee61e5ee5 | [
"Apache-2.0"
] | 1 | 2021-07-11T16:52:47.000Z | 2021-07-11T16:52:47.000Z | lib/mix/lib/mix/project.ex | farhadi/elixir | 0a37064fd5b67639afb845ff321d6c8ee61e5ee5 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/project.ex | farhadi/elixir | 0a37064fd5b67639afb845ff321d6c8ee61e5ee5 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Project do
@moduledoc """
Defines and manipulates Mix projects.
A Mix project is defined by calling `use Mix.Project` in a module, usually
placed in `mix.exs`:
defmodule MyApp.MixProject do
use Mix.Project
def project do
[
app: :my_app,
ve... | 28.523745 | 105 | 0.65089 |
1c3d31ba496876b190ee6af721965ca54d887dd5 | 1,698 | exs | Elixir | installer/templates/phx_umbrella/apps/app_name_web/config/dev.exs | grigor-aramyan/phoenix | d377b2e8d90753f9ec02972532e20f6878da86ad | [
"MIT"
] | null | null | null | installer/templates/phx_umbrella/apps/app_name_web/config/dev.exs | grigor-aramyan/phoenix | d377b2e8d90753f9ec02972532e20f6878da86ad | [
"MIT"
] | null | null | null | installer/templates/phx_umbrella/apps/app_name_web/config/dev.exs | grigor-aramyan/phoenix | d377b2e8d90753f9ec02972532e20f6878da86ad | [
"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 webpack to recompile .js and .css sources.
config :<%= web_app_name %>, <%= endpoint_module %>,
ht... | 35.375 | 170 | 0.659011 |
1c3d33fd83a28a37ae1567760ea69476b5bfae23 | 2,683 | exs | Elixir | test/phoenix/live_dashboard/pages/request_logger_page_test.exs | uumo/phoenix_live_dashboard | cd07929341d9dca0f85b58c624c62d63cf7c2f07 | [
"MIT"
] | 1 | 2020-11-04T16:17:32.000Z | 2020-11-04T16:17:32.000Z | test/phoenix/live_dashboard/pages/request_logger_page_test.exs | uumo/phoenix_live_dashboard | cd07929341d9dca0f85b58c624c62d63cf7c2f07 | [
"MIT"
] | null | null | null | test/phoenix/live_dashboard/pages/request_logger_page_test.exs | uumo/phoenix_live_dashboard | cd07929341d9dca0f85b58c624c62d63cf7c2f07 | [
"MIT"
] | 1 | 2020-11-16T14:01:08.000Z | 2020-11-16T14:01:08.000Z | defmodule Phoenix.LiveDashboard.RequestLoggerPageTest do
use ExUnit.Case, async: true
require Logger
import Phoenix.ConnTest
import Phoenix.LiveViewTest
alias Phoenix.LiveDashboard.RequestLogger
alias Phoenix.LiveDashboardTest.PubSub
@endpoint Phoenix.LiveDashboardTest.Endpoint
test "menu_link/2" do
... | 35.302632 | 97 | 0.668654 |
1c3d41557910766bd5e3bc56a51c811f307e138d | 313 | ex | Elixir | lib/stranger/notification/supervisor.ex | cazrin/stranger | 887dfe52c8b934cf6fd0d598d64c3735da96d4e1 | [
"MIT"
] | 50 | 2016-01-24T11:45:47.000Z | 2016-08-26T20:20:20.000Z | lib/stranger/notification/supervisor.ex | dnlgrv/stranger | 887dfe52c8b934cf6fd0d598d64c3735da96d4e1 | [
"MIT"
] | 1 | 2016-01-24T20:21:19.000Z | 2016-01-28T11:26:10.000Z | lib/stranger/notification/supervisor.ex | dnlgrv/stranger | 887dfe52c8b934cf6fd0d598d64c3735da96d4e1 | [
"MIT"
] | 3 | 2017-03-17T12:46:09.000Z | 2021-01-14T19:41:01.000Z | defmodule Stranger.Notification.Supervisor do
@moduledoc false
use Supervisor
def start_link do
Supervisor.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
children = [
worker(Stranger.Notification, [])
]
supervise(children, strategy: :one_for_one)
end
end
| 17.388889 | 60 | 0.699681 |
1c3d5f359420823c59b0052374a1bd866fce1247 | 2,047 | ex | Elixir | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/audience_segment_group.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/audience_segment_group.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/audience_segment_group.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.622642 | 205 | 0.730337 |
1c3d63744182dce6c7864d5e906dda1db6938922 | 67 | exs | Elixir | dummy/test/test_helper.exs | zgohr/turbo_ecto | 2467be3f0923193349c08d18061efbc952523b21 | [
"MIT"
] | 4 | 2019-01-23T14:10:31.000Z | 2019-05-14T15:41:11.000Z | dummy/test/test_helper.exs | zgohr/turbo_ecto | 2467be3f0923193349c08d18061efbc952523b21 | [
"MIT"
] | 35 | 2019-02-19T02:11:33.000Z | 2021-09-01T07:09:42.000Z | dummy/test/test_helper.exs | zgohr/turbo_ecto | 2467be3f0923193349c08d18061efbc952523b21 | [
"MIT"
] | 4 | 2019-11-03T16:11:39.000Z | 2022-03-05T14:34:23.000Z | ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Dummy.Repo, :manual)
| 22.333333 | 51 | 0.776119 |
1c3d99a8b3778b2e8e484dfd7bedf734a357c760 | 200 | ex | Elixir | firmware/lib/firmware.ex | Jwsonic/cliff_swallow | 6ea69bcb10a844e10dd002a309eb4f48d0f0d1b8 | [
"MIT"
] | 25 | 2018-11-03T19:36:12.000Z | 2021-11-17T13:09:06.000Z | firmware/lib/firmware.ex | Jwsonic/cliff_swallow | 6ea69bcb10a844e10dd002a309eb4f48d0f0d1b8 | [
"MIT"
] | 4 | 2019-01-16T14:06:47.000Z | 2021-09-01T18:59:02.000Z | firmware/lib/firmware.ex | Jwsonic/cliff_swallow | 6ea69bcb10a844e10dd002a309eb4f48d0f0d1b8 | [
"MIT"
] | 8 | 2018-12-25T23:00:51.000Z | 2020-12-22T15:10:21.000Z | defmodule Firmware do
@moduledoc """
Documentation for Firmware.
"""
@doc """
Hello world.
## Examples
iex> Firmware.hello
:world
"""
def hello do
:world
end
end
| 10.526316 | 29 | 0.575 |
1c3da1d198f80ee5b31be18c7a9b85d62d2d2cfd | 2,482 | ex | Elixir | apps/tai/lib/tai/venue_adapters/binance/create_order.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | apps/tai/lib/tai/venue_adapters/binance/create_order.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | 78 | 2020-10-12T06:21:43.000Z | 2022-03-28T09:02:00.000Z | apps/tai/lib/tai/venue_adapters/binance/create_order.ex | yurikoval/tai | 94254b45d22fa0307b01577ff7c629c7280c0295 | [
"MIT"
] | null | null | null | defmodule Tai.VenueAdapters.Binance.CreateOrder do
@moduledoc """
Create orders for the Binance adapter
"""
alias Tai.VenueAdapters.Binance.OrderStatus
alias Tai.Orders
@limit "LIMIT"
def create_order(%Tai.Orders.Order{side: side, type: :limit} = order, credentials) do
venue_time_in_force = order.t... | 36.5 | 102 | 0.714343 |
1c3dac6090d0da699b2937fe0eb418b695e7f9cc | 1,004 | exs | Elixir | mix.exs | davejlong/logger_2k17 | 923e9b673dc201b61f287590ac97452a4c17d014 | [
"MIT"
] | 1 | 2017-03-10T06:59:47.000Z | 2017-03-10T06:59:47.000Z | mix.exs | davejlong/logger_2k17 | 923e9b673dc201b61f287590ac97452a4c17d014 | [
"MIT"
] | null | null | null | mix.exs | davejlong/logger_2k17 | 923e9b673dc201b61f287590ac97452a4c17d014 | [
"MIT"
] | null | null | null | defmodule Logger2k17.Mixfile do
use Mix.Project
def project do
[app: :logger_2k17,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
description: description(),
package: package()]
end
# Configuration f... | 22.818182 | 77 | 0.62749 |
1c3db14527540ace6d82a1411f4116a11864f269 | 1,123 | exs | Elixir | elixir/set1/challenge4/config/config.exs | sdball/matasano-crypto-challenges | c539a605b4f709c7c202216ecedd7355e6b4a1b9 | [
"MIT"
] | null | null | null | elixir/set1/challenge4/config/config.exs | sdball/matasano-crypto-challenges | c539a605b4f709c7c202216ecedd7355e6b4a1b9 | [
"MIT"
] | null | null | null | elixir/set1/challenge4/config/config.exs | sdball/matasano-crypto-challenges | c539a605b4f709c7c202216ecedd7355e6b4a1b9 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# 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.225806 | 73 | 0.752449 |
1c3e12a499f46b65d4d8672966b80da8f37c9a53 | 5,483 | exs | Elixir | test/actions/load_test.exs | MrFlorius/ash | 247abbb8333d252da5440a58ddf4f1b7f184342f | [
"MIT"
] | null | null | null | test/actions/load_test.exs | MrFlorius/ash | 247abbb8333d252da5440a58ddf4f1b7f184342f | [
"MIT"
] | null | null | null | test/actions/load_test.exs | MrFlorius/ash | 247abbb8333d252da5440a58ddf4f1b7f184342f | [
"MIT"
] | null | null | null | defmodule Ash.Test.Actions.LoadTest do
@moduledoc false
use ExUnit.Case, async: false
import Ash.Changeset
require Ash.Query
defmodule Author do
@moduledoc false
use Ash.Resource,
data_layer: Ash.DataLayer.Ets,
authorizers: [
Ash.Test.Authorizer
]
ets do
private?... | 21.251938 | 89 | 0.568302 |
1c3e1451ad74917fb000ef36015ab1fae9786c4f | 1,962 | exs | Elixir | examples/example-phx-1_3/config/dev.exs | devshane/thesis-phoenix | afe22a25542f91e15cfffb1e93ff8d833a64c25b | [
"MIT"
] | 681 | 2016-06-21T20:49:21.000Z | 2022-02-19T04:08:38.000Z | examples/example-phx-1_3/config/dev.exs | devshane/thesis-phoenix | afe22a25542f91e15cfffb1e93ff8d833a64c25b | [
"MIT"
] | 125 | 2016-06-21T21:14:49.000Z | 2020-12-12T20:15:48.000Z | examples/example-phx-1_3/config/dev.exs | devshane/thesis-phoenix | afe22a25542f91e15cfffb1e93ff8d833a64c25b | [
"MIT"
] | 76 | 2016-09-06T03:40:55.000Z | 2022-01-20T21:29:22.000Z | 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 :example_phx, ExamplePhxWeb.Endpoint,
http: [p... | 33.254237 | 170 | 0.707951 |
1c3e35f502b4e5df9de4975da30516354c5fc898 | 2,727 | ex | Elixir | lib/thin_notion_api/databases.ex | CodingZeal/thin_notion_api | e1f4081348300ab6c48adae8ebb4b2995cde59d1 | [
"MIT"
] | 1 | 2022-01-15T00:50:09.000Z | 2022-01-15T00:50:09.000Z | lib/thin_notion_api/databases.ex | CodingZeal/thin_notion_api | e1f4081348300ab6c48adae8ebb4b2995cde59d1 | [
"MIT"
] | null | null | null | lib/thin_notion_api/databases.ex | CodingZeal/thin_notion_api | e1f4081348300ab6c48adae8ebb4b2995cde59d1 | [
"MIT"
] | null | null | null | defmodule ThinNotionApi.Databases do
@moduledoc """
Module for interacting with the Notion Databases.
"""
import ThinNotionApi.Base
alias ThinNotionApi.{Properties, Types}
@spec retrieve_database(String.t()) :: Types.Response.t()
@doc """
Retrieves a Database object using the ID specified.
## Examp... | 27.826531 | 206 | 0.636597 |
1c3e3b616b7e1db8a127c76a3a269fffa713f45f | 213 | exs | Elixir | 09-application/example.exs | Markcial/essence | fcfc62a189c2cee1f07813d583edfaec2fb0167e | [
"MIT"
] | 2 | 2017-02-14T20:33:52.000Z | 2017-03-02T15:21:44.000Z | 09-application/example.exs | Markcial/essence | fcfc62a189c2cee1f07813d583edfaec2fb0167e | [
"MIT"
] | null | null | null | 09-application/example.exs | Markcial/essence | fcfc62a189c2cee1f07813d583edfaec2fb0167e | [
"MIT"
] | 1 | 2018-06-22T02:34:15.000Z | 2018-06-22T02:34:15.000Z |
Tasker.Client.add(fn -> File.ls(".") end)
{:ok, files} = Tasker.Client.run :first
IO.inspect files
Tasker.Client.add(fn -> IO.puts "first" end)
IO.inspect Tasker.Client.list
IO.inspect Tasker.Client.run :first
| 21.3 | 44 | 0.713615 |
1c3e47eb3ed5e6e598c9393d26834c7fe23743bb | 346 | exs | Elixir | peep_blog_api/priv/repo/seeds.exs | ultimatemonty/embloginator | b1b25374d56899e054e6df73a3841d388d095d83 | [
"MIT"
] | null | null | null | peep_blog_api/priv/repo/seeds.exs | ultimatemonty/embloginator | b1b25374d56899e054e6df73a3841d388d095d83 | [
"MIT"
] | null | null | null | peep_blog_api/priv/repo/seeds.exs | ultimatemonty/embloginator | b1b25374d56899e054e6df73a3841d388d095d83 | [
"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:
#
# PeepBlogApi.Repo.insert!(%SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fail... | 28.833333 | 61 | 0.705202 |
1c3e4e80f06952188516d9ee13b7d01505e600e7 | 1,690 | ex | Elixir | clients/analytics/lib/google_api/analytics/v3/model/mcf_data_rows_conversion_path_value.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/analytics/lib/google_api/analytics/v3/model/mcf_data_rows_conversion_path_value.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/analytics/lib/google_api/analytics/v3/model/mcf_data_rows_conversion_path_value.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.8 | 138 | 0.734911 |
1c3e58c38b4d9f2265d0ee02abd53a1007bb51be | 2,408 | ex | Elixir | lib/envio/backends/slack.ex | am-kantox/envio | ebcd4647b10265054267839fad8e31e25b3ec0e4 | [
"MIT"
] | 12 | 2018-07-25T08:38:05.000Z | 2020-05-16T07:29:11.000Z | lib/envio/backends/slack.ex | am-kantox/envio | ebcd4647b10265054267839fad8e31e25b3ec0e4 | [
"MIT"
] | 6 | 2018-07-26T17:09:44.000Z | 2021-10-19T06:39:44.000Z | lib/envio/backends/slack.ex | am-kantox/envio | ebcd4647b10265054267839fad8e31e25b3ec0e4 | [
"MIT"
] | null | null | null | defmodule Envio.Slack do
@moduledoc false
alias Envio.Utils
@behaviour Envio.Backend
@spec format(%{required(:atom) => term()}) :: binary()
defp format(%{} = message) do
with {title, message} <- Map.pop(message, :title),
{text, message} <- Map.pop(message, :text),
{body, message} <- M... | 27.363636 | 95 | 0.526163 |
1c3ec57e1e3e70da7e767f2e213e05e9b83702bb | 1,573 | ex | Elixir | lib/spider_man/producer/producer.ex | kianmeng/spider_man | 48941f42e901d03f7c6cc1f8aaf6f8a35d576614 | [
"Apache-2.0"
] | null | null | null | lib/spider_man/producer/producer.ex | kianmeng/spider_man | 48941f42e901d03f7c6cc1f8aaf6f8a35d576614 | [
"Apache-2.0"
] | null | null | null | lib/spider_man/producer/producer.ex | kianmeng/spider_man | 48941f42e901d03f7c6cc1f8aaf6f8a35d576614 | [
"Apache-2.0"
] | null | null | null | defmodule SpiderMan.Producer do
@moduledoc false
@type producer :: {module, keyword}
@callback producer_settings(arg :: term, options) :: {producer, options} when options: keyword
@optional_callbacks producer_settings: 2
def process_name(spider, component), do: :"#{spider}.#{Module.split(component) |> List.... | 31.46 | 97 | 0.699301 |
1c3eddcbb1b4cc6b700afe3655447c8e0aaff310 | 2,003 | exs | Elixir | test/ecto/query/builder/group_by_test.exs | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | 1 | 2019-07-25T17:42:33.000Z | 2019-07-25T17:42:33.000Z | test/ecto/query/builder/group_by_test.exs | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | null | null | null | test/ecto/query/builder/group_by_test.exs | larryweya/ecto | d0d1fd43f0f97856a119184163167a7e79574923 | [
"Apache-2.0"
] | null | null | null | defmodule Ecto.Query.Builder.GroupByTest do
use ExUnit.Case, async: true
import Ecto.Query.Builder.GroupBy
doctest Ecto.Query.Builder.GroupBy
import Ecto.Query
describe "escape" do
test "handles expressions and params" do
assert {Macro.escape(quote do [&0.y] end), {[], :acc}} ==
esca... | 34.534483 | 92 | 0.579131 |
1c3ee039c1346c895c036ea3a30d35a1c8db3c14 | 3,058 | ex | Elixir | clients/dns/lib/google_api/dns/v1/api/projects.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/dns/lib/google_api/dns/v1/api/projects.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/dns/lib/google_api/dns/v1/api/projects.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 40.236842 | 191 | 0.700131 |
1c3f2dfc9a80ebb18421fc7715b35d4b59d4b3d8 | 1,071 | exs | Elixir | test/http_parser/response_test.exs | minhajuddin/http_parser | c5aba3cde237bc66d9d88e1248ad052c8a488a67 | [
"MIT"
] | null | null | null | test/http_parser/response_test.exs | minhajuddin/http_parser | c5aba3cde237bc66d9d88e1248ad052c8a488a67 | [
"MIT"
] | null | null | null | test/http_parser/response_test.exs | minhajuddin/http_parser | c5aba3cde237bc66d9d88e1248ad052c8a488a67 | [
"MIT"
] | null | null | null | defmodule HttpParserTest do
use ExUnit.Case
doctest HttpParser
alias HttpParser.Response
describe "parse" do
setup do
{:ok, resp} =
Response.parse("HTTP/1.1 200 OK\r\nContent-Length: 6\r\nContent-Type: text/plain; charset=utf-8\r\nServer: Microsoft-IIS/8.0\r\nDate: Mon, 09 Oct 2017 12:59:28... | 25.5 | 194 | 0.604108 |
1c3f30adfc15c72c033e7d9f7f9212187afbc559 | 2,476 | exs | Elixir | backend/test/edgehog_web/schema/mutation/create_hardware_type_test.exs | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | 14 | 2021-12-02T16:31:16.000Z | 2022-03-18T17:40:44.000Z | backend/test/edgehog_web/schema/mutation/create_hardware_type_test.exs | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | 77 | 2021-11-03T15:14:41.000Z | 2022-03-30T14:13:32.000Z | backend/test/edgehog_web/schema/mutation/create_hardware_type_test.exs | szakhlypa/edgehog | b1193c26f403132dead6964c1c052e5dcae533af | [
"Apache-2.0"
] | 7 | 2021-11-03T10:58:37.000Z | 2022-02-28T14:00:03.000Z | #
# This file is part of Edgehog.
#
# Copyright 2021 SECO Mind Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 27.511111 | 86 | 0.577544 |
1c3f45c9813ef5ad141aa0e0d40c1c2bf932c468 | 553 | ex | Elixir | lib/radiator/task/worker_supervisor.ex | bhtabor/radiator | 39c137a18d36d6f418f9d1ffb7aa2c99011d66cf | [
"MIT"
] | 92 | 2019-01-03T11:46:23.000Z | 2022-02-19T21:28:44.000Z | lib/radiator/task/worker_supervisor.ex | bhtabor/radiator | 39c137a18d36d6f418f9d1ffb7aa2c99011d66cf | [
"MIT"
] | 350 | 2019-04-11T07:55:51.000Z | 2021-08-03T11:19:05.000Z | lib/radiator/task/worker_supervisor.ex | bhtabor/radiator | 39c137a18d36d6f418f9d1ffb7aa2c99011d66cf | [
"MIT"
] | 10 | 2019-04-18T12:47:27.000Z | 2022-01-25T20:49:15.000Z | defmodule Radiator.Task.WorkerSupervisor do
@moduledoc false
use DynamicSupervisor
alias Radiator.Task.TaskWorker
def start_link(opts \\ []),
do: DynamicSupervisor.start_link(__MODULE__, [], [name: __MODULE__] ++ opts)
@impl true
def init(_init_arg), do: DynamicSupervisor.init(strategy: :one_for_one)... | 24.043478 | 80 | 0.705244 |
1c3f48c94e6296ff2d64b1aa26135ed10fc96828 | 12,869 | exs | Elixir | test/groupher_server/cms/article_community/meetup_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 240 | 2018-11-06T09:36:54.000Z | 2022-02-20T07:12:36.000Z | test/groupher_server/cms/article_community/meetup_test.exs | coderplanets/coderplanets_server | 3663e56340d6d050e974c91f7e499d8424fc25e9 | [
"Apache-2.0"
] | 363 | 2018-07-11T03:38:14.000Z | 2021-12-14T01:42:40.000Z | test/groupher_server/cms/article_community/meetup_test.exs | mydearxym/mastani_server | f24034a4a5449200165cf4a547964a0961793eab | [
"Apache-2.0"
] | 22 | 2019-01-27T11:47:56.000Z | 2021-02-28T13:17:52.000Z | defmodule GroupherServer.Test.CMS.ArticleCommunity.Meetup do
use GroupherServer.TestTools
alias Helper.ORM
alias GroupherServer.CMS
alias CMS.Model.Meetup
setup do
{:ok, user} = db_insert(:user)
{:ok, user2} = db_insert(:user)
{:ok, meetup} = db_insert(:meetup)
{:ok, community} = db_insert(:... | 42.471947 | 98 | 0.692672 |
1c3f581847b2aebb0ec14cfa199b7200d41c5d26 | 3,032 | ex | Elixir | lib/asciinema_web/controllers/user_controller.ex | AnotherKamila/asciinema-server | cafdba3c0461eb77ca0d1b66de07aa943b91f700 | [
"Apache-2.0"
] | null | null | null | lib/asciinema_web/controllers/user_controller.ex | AnotherKamila/asciinema-server | cafdba3c0461eb77ca0d1b66de07aa943b91f700 | [
"Apache-2.0"
] | null | null | null | lib/asciinema_web/controllers/user_controller.ex | AnotherKamila/asciinema-server | cafdba3c0461eb77ca0d1b66de07aa943b91f700 | [
"Apache-2.0"
] | null | null | null | defmodule AsciinemaWeb.UserController do
use AsciinemaWeb, :controller
alias Asciinema.Accounts
alias Asciinema.Authorization, as: Authz
alias Asciinema.Asciicasts
alias AsciinemaWeb.Auth
plug :require_current_user when action in [:edit, :update]
def new(conn, %{"t" => signup_token}) do
conn
|> ... | 27.816514 | 80 | 0.630937 |
1c3f61fea2825de7bd9e2e907fc0b355211d0099 | 24,788 | exs | Elixir | test/rig_inbound_gateway/rig/proxy_test.exs | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 518 | 2017-11-09T13:10:49.000Z | 2022-03-28T14:29:50.000Z | test/rig_inbound_gateway/rig/proxy_test.exs | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 270 | 2017-11-10T00:11:34.000Z | 2022-02-27T13:08:16.000Z | test/rig_inbound_gateway/rig/proxy_test.exs | steveoliver/reactive-interaction-gateway | 59b6dc994fd0f098bed19b7bf1e699513ac87167 | [
"Apache-2.0"
] | 67 | 2017-12-19T20:16:37.000Z | 2022-03-31T10:43:04.000Z | defmodule RigInboundGateway.ProxyTest do
@moduledoc false
use ExUnit.Case, async: false
use RigApi.ConnCase
import RigInboundGateway.Proxy,
only: [
list_apis: 1,
get_api: 2,
add_api: 3,
replace_api: 4,
update_api: 3,
deactivate_api: 2,
handle_join_api: 3
]
i... | 30.452088 | 383 | 0.567775 |
1c3f63a4533437205c340e20aaea7a8bc1b0362c | 596 | exs | Elixir | 6453_06_03_Code/application-deck/mix.exs | PacktPublishing/Advanced-Elixir-and-OTP | 952fe654f1f91ec186a41d5ff4f09672ef5e7221 | [
"MIT"
] | 1 | 2021-10-01T22:06:12.000Z | 2021-10-01T22:06:12.000Z | 6453_06_03_Code/application-deck/mix.exs | PacktPublishing/Advanced-Elixir-and-OTP | 952fe654f1f91ec186a41d5ff4f09672ef5e7221 | [
"MIT"
] | null | null | null | 6453_06_03_Code/application-deck/mix.exs | PacktPublishing/Advanced-Elixir-and-OTP | 952fe654f1f91ec186a41d5ff4f09672ef5e7221 | [
"MIT"
] | 1 | 2020-06-10T10:40:37.000Z | 2020-06-10T10:40:37.000Z | defmodule Deck.Mixfile do
use Mix.Project
def project do
[
app: :deck,
version: "0.1.0",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: ... | 19.866667 | 88 | 0.567114 |
1c3f712db79b25101e3d4e58880e921228671b95 | 5,622 | ex | Elixir | deps/comeonin/lib/comeonin.ex | Abninho92/RocketseatNLW2021-Rocketpay | 3e492bf582148202a215f6a26e6c0890ed9a0e23 | [
"MIT"
] | 986 | 2016-06-29T09:47:32.000Z | 2022-03-22T00:05:20.000Z | deps/comeonin/lib/comeonin.ex | gleidsonduarte/rocketseat-rocketpay-phoenix-elixir-postgres | 300e0b34e0179380f56a8c6cae707722d9c4d8d0 | [
"MIT"
] | 75 | 2016-06-29T20:25:31.000Z | 2022-01-20T04:31:57.000Z | deps/comeonin/lib/comeonin.ex | gleidsonduarte/rocketseat-rocketpay-phoenix-elixir-postgres | 300e0b34e0179380f56a8c6cae707722d9c4d8d0 | [
"MIT"
] | 54 | 2016-06-30T06:22:09.000Z | 2021-08-07T02:53:40.000Z | defmodule Comeonin do
@moduledoc """
Defines a behaviour for higher-level password hashing functions.
"""
@type opts :: keyword
@type password :: binary
@type user_struct :: map | nil
@doc """
Hashes a password and returns the password hash in a map.
"""
@callback add_hash(password, opts) :: map
... | 32.877193 | 96 | 0.649769 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.