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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
65c5fd69414562166ebd75e6917714a0125727fa | 1,482 | ex | Elixir | clients/vision/lib/google_api/vision/v1/model/location_info.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/vision/lib/google_api/vision/v1/model/location_info.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/vision/lib/google_api/vision/v1/model/location_info.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 ... | 31.531915 | 112 | 0.738866 |
65c608d8e1f846835ad08c0f0edb85f904223d64 | 955 | ex | Elixir | debian/postinst.ex | aindilis/sandbox-sigma | c68daa8af5688e08e9905224f4a6e35a4ae3f8e6 | [
"OLDAP-2.2.1"
] | 1 | 2015-02-16T00:58:05.000Z | 2015-02-16T00:58:05.000Z | debian/postinst.ex | aindilis/sandbox-sigma | c68daa8af5688e08e9905224f4a6e35a4ae3f8e6 | [
"OLDAP-2.2.1"
] | null | null | null | debian/postinst.ex | aindilis/sandbox-sigma | c68daa8af5688e08e9905224f4a6e35a4ae3f8e6 | [
"OLDAP-2.2.1"
] | null | null | null | #!/bin/sh
# postinst script for sigma
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# ... | 23.875 | 71 | 0.638743 |
65c639dd57303b973c5ddc2ec9872eda5376030e | 2,775 | ex | Elixir | minimal_server/deps/plug_crypto/lib/plug/crypto/key_generator.ex | dalmarcogd/test_elixir_minimal_restfull | 64ad5adbd6b9b39e70d4ed0a74615035d6ca246a | [
"Apache-2.0"
] | null | null | null | minimal_server/deps/plug_crypto/lib/plug/crypto/key_generator.ex | dalmarcogd/test_elixir_minimal_restfull | 64ad5adbd6b9b39e70d4ed0a74615035d6ca246a | [
"Apache-2.0"
] | 1 | 2020-07-17T10:07:44.000Z | 2020-07-17T10:07:44.000Z | minimal_server/deps/plug_crypto/lib/plug/crypto/key_generator.ex | dalmarcogd/test_elixir_minimal_restfull | 64ad5adbd6b9b39e70d4ed0a74615035d6ca246a | [
"Apache-2.0"
] | null | null | null | defmodule Plug.Crypto.KeyGenerator do
@moduledoc """
`KeyGenerator` implements PBKDF2 (Password-Based Key Derivation Function 2),
part of PKCS #5 v2.0 (Password-Based Cryptography Specification).
It can be used to derive a number of keys for various purposes from a given
secret. This lets applications have a... | 32.267442 | 99 | 0.658739 |
65c65e3513b8addf1f4af8fdd5f0d0550715ac9e | 331 | exs | Elixir | priv/templates/talon.new/config/talon.exs | talonframework/ex_admin | d164c065ac74c156c3abeca8437e184456db903c | [
"MIT"
] | 170 | 2017-05-25T15:09:53.000Z | 2021-07-09T04:04:14.000Z | priv/templates/talon.new/config/talon.exs | talonframework/ex_admin | d164c065ac74c156c3abeca8437e184456db903c | [
"MIT"
] | 78 | 2017-05-25T09:41:55.000Z | 2019-01-04T20:53:35.000Z | priv/templates/talon.new/config/talon.exs | talonframework/ex_admin | d164c065ac74c156c3abeca8437e184456db903c | [
"MIT"
] | 8 | 2017-06-24T12:28:06.000Z | 2018-09-17T16:11:56.000Z | use Mix.Config
config :<%= config.app %>, :talon,
module: <%= config.base %>,
themes: ["<%= theme %>"],
concerns: [<%= config.base %>.<%= config.concern %>],
<%= if config.web_namespace == "" do %>
web_namespace: nil
<% else %>
web_namespace: Web
<% end %>
<%= EEx.eval_file path, theme: theme, config:... | 23.642857 | 55 | 0.574018 |
65c66421a392b112630d640505444fa0d736473d | 2,564 | ex | Elixir | lib/wulfila/generate.ex | avoceteditors/wulfila | 0cc3b3264a6b1b94bf168d5953ea34d5a0a5194a | [
"BSD-3-Clause"
] | null | null | null | lib/wulfila/generate.ex | avoceteditors/wulfila | 0cc3b3264a6b1b94bf168d5953ea34d5a0a5194a | [
"BSD-3-Clause"
] | null | null | null | lib/wulfila/generate.ex | avoceteditors/wulfila | 0cc3b3264a6b1b94bf168d5953ea34d5a0a5194a | [
"BSD-3-Clause"
] | null | null | null | defmodule Wulfila.Generate do
def run(spec) do
phonemes = find_phonemes
syllabary = find_syllabary(phonemes)
IO.inspect syllabary
generate(phonemes, syllabary, spec)
|> Enum.join("\n")
|> IO.puts
end
@default_count 25
@default_min_syl 2
@default_max_syl 5
def generate(phonemes, s... | 20.512 | 87 | 0.533151 |
65c6a8134276d6fb0160826dff825f67ce8a4e6b | 24,178 | ex | Elixir | lib/advanced_pool/pool/management/worker/worker_management_provider.ex | noizu-labs/SimplePoolAdvanced | 9555071e42917d280c7ce4846c19ef208c77f14e | [
"MIT"
] | null | null | null | lib/advanced_pool/pool/management/worker/worker_management_provider.ex | noizu-labs/SimplePoolAdvanced | 9555071e42917d280c7ce4846c19ef208c77f14e | [
"MIT"
] | null | null | null | lib/advanced_pool/pool/management/worker/worker_management_provider.ex | noizu-labs/SimplePoolAdvanced | 9555071e42917d280c7ce4846c19ef208c77f14e | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Author: Keith Brings
# Copyright (C) 2019 Noizu Labs, Inc. All rights reserved.
#-------------------------------------------------------------------------------
# @todo should be renamed Default and moved into behaviour definition for c... | 38.561404 | 188 | 0.569071 |
65c6b2c6a5bccf8977809d562b4ee4dc7bfac0ce | 74 | exs | Elixir | examples/simple/test/views/layout_view_test.exs | noma4i/ecto_south | 0251b70a0afbd670e5bb86878d0fc098f7982407 | [
"MIT"
] | 1 | 2019-04-16T11:31:37.000Z | 2019-04-16T11:31:37.000Z | examples/simple/test/views/layout_view_test.exs | noma4i/ecto_south | 0251b70a0afbd670e5bb86878d0fc098f7982407 | [
"MIT"
] | null | null | null | examples/simple/test/views/layout_view_test.exs | noma4i/ecto_south | 0251b70a0afbd670e5bb86878d0fc098f7982407 | [
"MIT"
] | null | null | null | defmodule Simple.LayoutViewTest do
use Simple.ConnCase, async: true
end
| 18.5 | 34 | 0.810811 |
65c6bbf5202ff930e760f10532b05189497c34e9 | 1,081 | ex | Elixir | squitter/lib/squitter/decoding/utils.ex | electricshaman/squitter | 7a0dfbc125118b764d192f02b42b36596f6d4ac6 | [
"MIT"
] | 34 | 2017-08-30T02:29:41.000Z | 2021-05-29T20:21:43.000Z | squitter/lib/squitter/decoding/utils.ex | electricshaman/squitter | 7a0dfbc125118b764d192f02b42b36596f6d4ac6 | [
"MIT"
] | 7 | 2017-09-12T05:27:23.000Z | 2020-01-06T22:07:52.000Z | squitter/lib/squitter/decoding/utils.ex | electricshaman/squitter | 7a0dfbc125118b764d192f02b42b36596f6d4ac6 | [
"MIT"
] | 9 | 2017-09-11T22:17:55.000Z | 2022-01-31T03:07:58.000Z | defmodule Squitter.Decoding.Utils do
def to_bool(0), do: true
def to_bool(1), do: false
def to_bool(_), do: :error
def to_hex_string(data) when is_binary(data) do
btol(data)
|> to_hex_string
end
def to_hex_string(data) when is_integer(data) do
Integer.to_string(data, 16)
|> String.pad_lead... | 21.196078 | 64 | 0.616096 |
65c6c2b5009a2abd2c997ca7bd172f077905a3d6 | 748 | ex | Elixir | lib/teiserver_web/controllers/admin/general_controller.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | lib/teiserver_web/controllers/admin/general_controller.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 14 | 2021-08-01T02:36:14.000Z | 2022-01-30T21:15:03.000Z | lib/teiserver_web/controllers/admin/general_controller.ex | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 7 | 2021-05-13T12:55:28.000Z | 2022-01-14T06:39:06.000Z | defmodule TeiserverWeb.Admin.GeneralController do
use CentralWeb, :controller
plug(AssignPlug,
sidemenu_active: ["teiserver", "teiserver_admin"]
)
plug(Bodyguard.Plug.Authorize,
policy: Teiserver.Moderator,
action: {Phoenix.Controller, :action_name},
user: {Central.Account.AuthLib, :current_us... | 26.714286 | 68 | 0.68984 |
65c7056061e27c45b1b53924ac7faa93fc4a6354 | 7,818 | ex | Elixir | servers/exilp/apps/interledger/lib/packet.ex | cjimison/exilp | cb350c4dffe90d37607764e668e14e99bbad5428 | [
"MIT"
] | null | null | null | servers/exilp/apps/interledger/lib/packet.ex | cjimison/exilp | cb350c4dffe90d37607764e668e14e99bbad5428 | [
"MIT"
] | null | null | null | servers/exilp/apps/interledger/lib/packet.ex | cjimison/exilp | cb350c4dffe90d37607764e668e14e99bbad5428 | [
"MIT"
] | null | null | null | # MIT License
#
# Copyright (c) 2020 Chris Jimison
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge... | 37.406699 | 80 | 0.605526 |
65c73c8e9cd8d409030e80ff7e7f513218d5ef58 | 1,107 | ex | Elixir | lib/serum/themes/senescence/pagination.ex | eavc/serum-theme-senescence | d9630702f5b48a98e41ae4c03dbf2dc812821263 | [
"MIT"
] | 1 | 2020-05-08T21:18:37.000Z | 2020-05-08T21:18:37.000Z | lib/serum/themes/senescence/pagination.ex | eavc/serum-theme-senescence | d9630702f5b48a98e41ae4c03dbf2dc812821263 | [
"MIT"
] | null | null | null | lib/serum/themes/senescence/pagination.ex | eavc/serum-theme-senescence | d9630702f5b48a98e41ae4c03dbf2dc812821263 | [
"MIT"
] | null | null | null | defmodule Serum.Themes.Senescence.Pagination do
@moduledoc false
@spec page_link(binary(), integer()) :: binary()
def page_link(list_dir, page), do: Path.join(list_dir, "page-#{page}.html")
@spec get_page_nums(integer(), integer(), pos_integer()) :: {[integer()], [integer()]}
def get_page_nums(page, max_pag... | 35.709677 | 88 | 0.62692 |
65c749a7cecba1d4a60dc375bf9e7aa77288d358 | 7,327 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/operation.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/compute/lib/google_api/compute/v1/model/operation.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/operation.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 ... | 60.057377 | 357 | 0.688822 |
65c7719d29cef886b44823587b176cfc0f6c1ae7 | 1,874 | ex | Elixir | clients/firebase_dynamic_links/lib/google_api/firebase_dynamic_links/v1/model/social_meta_tag_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/firebase_dynamic_links/lib/google_api/firebase_dynamic_links/v1/model/social_meta_tag_info.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/firebase_dynamic_links/lib/google_api/firebase_dynamic_links/v1/model/social_meta_tag_info.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.703704 | 109 | 0.726788 |
65c77c9eca9c5046d0633f1242019f159f98e2ca | 3,658 | exs | Elixir | prag-programing/Part1/ProcessingCollections/EnumAndStream.exs | mpahrens/fun-with-elixir | 8e6720c7c2004421f674bb450045df0ab59b9c74 | [
"Apache-2.0"
] | 1 | 2017-03-29T04:10:50.000Z | 2017-03-29T04:10:50.000Z | prag-programing/Part1/ProcessingCollections/EnumAndStream.exs | mpahrens/fun-with-elixir | 8e6720c7c2004421f674bb450045df0ab59b9c74 | [
"Apache-2.0"
] | null | null | null | prag-programing/Part1/ProcessingCollections/EnumAndStream.exs | mpahrens/fun-with-elixir | 8e6720c7c2004421f674bb450045df0ab59b9c74 | [
"Apache-2.0"
] | null | null | null | """
Enum and Stream
Matthew Ahrens
Chapter 10
"""
#All collectionsa are iterable (implement the Enumerable protocol)
#Enum
#convert to list
list = Enum.to_list 1..5
#concatenate collections
Enum.concat([1,2,3],[4,5,6])
#generate collections based on function of original collection
Enum.map(list, &(&1 * 10))
Enum.ma... | 24.884354 | 101 | 0.631493 |
65c7906ef1dd251cb100c11e9e6bf17771d91560 | 1,451 | ex | Elixir | apps/ewallet_api/lib/ewallet_api/v1/controllers/transaction_request_controller.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_api/lib/ewallet_api/v1/controllers/transaction_request_controller.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | apps/ewallet_api/lib/ewallet_api/v1/controllers/transaction_request_controller.ex | vanmil/ewallet | 6c1aca95a83e0a9d93007670a40d8c45764a8122 | [
"Apache-2.0"
] | null | null | null | defmodule EWalletAPI.V1.TransactionRequestController do
use EWalletAPI, :controller
import EWalletAPI.V1.ErrorHandler
alias EWallet.{
TransactionRequestGate,
TransactionRequestFetcher,
TransactionRequestPolicy
}
@spec create_for_user(Plug.Conn.t(), map()) :: Plug.Conn.t()
def create_for_user(c... | 29.02 | 90 | 0.67195 |
65c794f76b76916d8935330fca40541a7f472f52 | 94 | ex | Elixir | lib/exwm.ex | ponyatov/exwm | c6be4a9c0c97346c9da9bb6d5935365143dc88f7 | [
"MIT"
] | null | null | null | lib/exwm.ex | ponyatov/exwm | c6be4a9c0c97346c9da9bb6d5935365143dc88f7 | [
"MIT"
] | null | null | null | lib/exwm.ex | ponyatov/exwm | c6be4a9c0c97346c9da9bb6d5935365143dc88f7 | [
"MIT"
] | null | null | null | # powered by metaL: https://github.com/ponyatov/metaL/wiki/metaL-manifest
defmodule W do
end
| 23.5 | 74 | 0.776596 |
65c7f76d2120ed44e1273605be29577ac9ea044c | 241 | exs | Elixir | test/support/router.exs | wnuqui/on_maintenance | 90bd211d0da77e0708d8f27adba0dd32399a8ca2 | [
"MIT"
] | 13 | 2017-04-13T05:36:56.000Z | 2020-07-19T02:40:09.000Z | test/support/router.exs | wnuqui/on_maintenance | 90bd211d0da77e0708d8f27adba0dd32399a8ca2 | [
"MIT"
] | null | null | null | test/support/router.exs | wnuqui/on_maintenance | 90bd211d0da77e0708d8f27adba0dd32399a8ca2 | [
"MIT"
] | 1 | 2021-09-03T19:31:05.000Z | 2021-09-03T19:31:05.000Z | defmodule Router do
use Plug.Router
plug Plug.OnMaintenance
plug :match
plug :dispatch
get "/test" do
conn
|> put_resp_content_type("text/html")
|> send_resp(200, "<html><body>Hello, World!</body></html>")
end
end
| 16.066667 | 64 | 0.655602 |
65c7f80b44d56625ab7e34c9afedaccd998e49c1 | 3,184 | exs | Elixir | test/mongo_crud_test.exs | LINKHA/elixir-mongo | f2e567675e2d9bdace0e6893e1e9bd424980ba75 | [
"MIT"
] | null | null | null | test/mongo_crud_test.exs | LINKHA/elixir-mongo | f2e567675e2d9bdace0e6893e1e9bd424980ba75 | [
"MIT"
] | null | null | null | test/mongo_crud_test.exs | LINKHA/elixir-mongo | f2e567675e2d9bdace0e6893e1e9bd424980ba75 | [
"MIT"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule Mongo.Crud.Test do
use ExUnit.Case, async: false
require Logger
# In order to run the tests a mongodb server must be listening locally on the default port
setup do
mongo = Mongo.connect!
db = Mongo.db(mongo, "test")
anycoll = Mongo.Db.collect... | 32.161616 | 130 | 0.599874 |
65c7ff78f02227f8665483512710a237cc27c6be | 3,494 | ex | Elixir | lib/credo/execution/task/validate_config.ex | kanmaniselvan/credo | 276e0fc24d1bf56c8fc2902a9e933c8f208ce391 | [
"MIT"
] | null | null | null | lib/credo/execution/task/validate_config.ex | kanmaniselvan/credo | 276e0fc24d1bf56c8fc2902a9e933c8f208ce391 | [
"MIT"
] | null | null | null | lib/credo/execution/task/validate_config.ex | kanmaniselvan/credo | 276e0fc24d1bf56c8fc2902a9e933c8f208ce391 | [
"MIT"
] | 1 | 2019-10-08T16:42:40.000Z | 2019-10-08T16:42:40.000Z | defmodule Credo.Execution.Task.ValidateConfig do
@moduledoc false
use Credo.Execution.Task
alias Credo.Check
alias Credo.Check.Params
alias Credo.CLI.Output.UI
def call(exec, _opts) do
exec
|> validate_checks()
|> validate_only_checks()
|> validate_ignore_checks()
|> remove_missing_ch... | 24.605634 | 96 | 0.630509 |
65c8017373deef42d0fdb764cfa637362757f07c | 626 | exs | Elixir | test/lib/code_corps_web/plugs/current_user_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 275 | 2015-06-23T00:20:51.000Z | 2021-08-19T16:17:37.000Z | test/lib/code_corps_web/plugs/current_user_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 1,304 | 2015-06-26T02:11:54.000Z | 2019-12-12T21:08:00.000Z | test/lib/code_corps_web/plugs/current_user_test.exs | fikape/code-corps-api | c21674b0b2a19fa26945c94268db8894420ca181 | [
"MIT"
] | 140 | 2016-01-01T18:19:47.000Z | 2020-11-22T06:24:47.000Z | defmodule CodeCorpsWeb.Plug.CurrentUserTest do
use CodeCorpsWeb.ConnCase
test "sets conn.assigns[:current_user] if user is authenticated" do
user = build(:user, first_name: "John");
conn = CodeCorps.Guardian.Plug.put_current_resource(build_conn(), user)
result_conn = CodeCorpsWeb.Plug.CurrentUser.call(... | 34.777778 | 75 | 0.741214 |
65c80a4ba3cb2ae545ca826c1dca76a7ff7ee5a0 | 1,879 | exs | Elixir | apps/admin_api/test/admin_api/v1/views/account_membership_deprecated_view_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/admin_api/test/admin_api/v1/views/account_membership_deprecated_view_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/admin_api/test/admin_api/v1/views/account_membership_deprecated_view_test.exs | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2018-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 ... | 34.163636 | 86 | 0.662054 |
65c846da322f2447cebfd04b715e12ac57099205 | 266 | ex | Elixir | api/lib/worker/services/gazetteer.ex | lucas-angermann/idai-field-web | 788c9c9505b6fd12d591345b23053e934f1022d1 | [
"Apache-2.0"
] | null | null | null | api/lib/worker/services/gazetteer.ex | lucas-angermann/idai-field-web | 788c9c9505b6fd12d591345b23053e934f1022d1 | [
"Apache-2.0"
] | null | null | null | api/lib/worker/services/gazetteer.ex | lucas-angermann/idai-field-web | 788c9c9505b6fd12d591345b23053e934f1022d1 | [
"Apache-2.0"
] | null | null | null | defmodule Api.Worker.Services.Gazetteer do
alias Api.Worker.Services.ResultHandler
require Logger
def get_place(gazetteer_id) do
HTTPoison.get("#{Api.Core.Config.get(:gazetteer_url)}/doc/#{gazetteer_id}.json")
|> ResultHandler.handle_result
end
end
| 26.6 | 84 | 0.763158 |
65c84b1c340bcfd34f127027ce9cfadc8adc3e7d | 596 | exs | Elixir | code/sieve.exs | jordan0day/fast_parallel_or_reliable_pick_three | d6c7f1c2724794c0205bc42c2a4e72f9234b6b39 | [
"MIT"
] | 1 | 2015-12-22T08:14:05.000Z | 2015-12-22T08:14:05.000Z | code/sieve.exs | jordan0day/fast_parallel_or_reliable_pick_three | d6c7f1c2724794c0205bc42c2a4e72f9234b6b39 | [
"MIT"
] | null | null | null | code/sieve.exs | jordan0day/fast_parallel_or_reliable_pick_three | d6c7f1c2724794c0205bc42c2a4e72f9234b6b39 | [
"MIT"
] | null | null | null | defmodule Eratosthenes do
def sieve([]) do
IO.puts "Got an empty list."
IO.puts "Returning []\n"
[]
end
def sieve([current | rest]) when current < 2 do
IO.puts "#{current} is less than 2, so it can't be prime."
IO.puts "Returning sieve(#{inspect rest})\n"
sieve(rest)
end
def sieve(... | 29.8 | 72 | 0.622483 |
65c86918d84be493a10229b84de71d46bdb3c3b0 | 3,689 | ex | Elixir | lib/utils.ex | weareyipyip/YipYipExAuth | 4c845f778dea3594c347236706e9963a338d4c74 | [
"Apache-2.0"
] | 2 | 2020-03-02T20:59:11.000Z | 2021-02-24T13:53:15.000Z | lib/utils.ex | weareyipyip/YipyipExAuth | 4c845f778dea3594c347236706e9963a338d4c74 | [
"Apache-2.0"
] | null | null | null | lib/utils.ex | weareyipyip/YipyipExAuth | 4c845f778dea3594c347236706e9963a338d4c74 | [
"Apache-2.0"
] | null | null | null | defmodule YipyipExAuth.Utils.Constants do
@moduledoc false
defmacro __using__(_opts) do
quote do
@private_session_key :yy_session_session
@private_tokens_key :yy_session_tokens
@private_access_token_payload_key :yy_session_access_token_payload
@private_refresh_token_payload_key :yy_sessi... | 38.030928 | 112 | 0.72784 |
65c86ae45a89b2d0b20c0baaec79164cc63725b7 | 1,089 | ex | Elixir | test/support/channel_case.ex | FreedomBen/malan | ec8cd6ed3694e33371f065f018b1169956f2accf | [
"MIT"
] | 3 | 2021-04-24T17:54:55.000Z | 2021-09-10T15:40:19.000Z | test/support/channel_case.ex | FreedomBen/malan | ec8cd6ed3694e33371f065f018b1169956f2accf | [
"MIT"
] | 57 | 2021-04-24T03:17:16.000Z | 2022-03-27T04:50:22.000Z | test/support/channel_case.ex | FreedomBen/malan | ec8cd6ed3694e33371f065f018b1169956f2accf | [
"MIT"
] | null | null | null | defmodule MalanWeb.ChannelCase do
@moduledoc """
This module defines the test case to be used by
channel tests.
Such tests rely on `Phoenix.ChannelTest` and also
import other functionality to make it easier
to build common data structures and query the data layer.
Finally, if the test case interacts wit... | 29.432432 | 86 | 0.734619 |
65c894a9e822b762e3467f92325fb4bb6f6349fb | 89 | ex | Elixir | test/fixtures/overlay/source/simple_app/src/inserted.ex | se-apc/shoehorn | 44879b0e8e798e9bb73dd065e20cf64c4b2de191 | [
"Apache-2.0"
] | 10 | 2017-06-13T00:20:01.000Z | 2019-08-02T13:52:51.000Z | test/fixtures/overlay/source/simple_app/src/inserted.ex | se-apc/shoehorn | 44879b0e8e798e9bb73dd065e20cf64c4b2de191 | [
"Apache-2.0"
] | 6 | 2017-06-12T18:49:21.000Z | 2017-09-20T16:31:26.000Z | test/fixtures/overlay/source/simple_app/src/inserted.ex | mobileoverlord/bootloader | 685ddff0641ee9287c8725bade822f9b5587b5a1 | [
"Apache-2.0"
] | 1 | 2021-01-10T01:09:45.000Z | 2021-01-10T01:09:45.000Z | defmodule SimpleApp.Inserted do
def ping do
{__MODULE__, :source, :pong}
end
end
| 14.833333 | 32 | 0.707865 |
65c90ad62843f54885196e0063772dd083527f61 | 2,538 | ex | Elixir | lib/livebook_web/live/output/stdout_component.ex | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/output/stdout_component.ex | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | null | null | null | lib/livebook_web/live/output/stdout_component.ex | aleDsz/livebook | 3ad817ac69b8459b684ff8d00c879ae7787b6dcc | [
"Apache-2.0"
] | null | null | null | defmodule LivebookWeb.Output.StdoutComponent do
use LivebookWeb, :live_component
@impl true
def mount(socket) do
{:ok, assign(socket, modifiers: [], last_line: nil, last_html_line: nil),
temporary_assigns: [html_lines: []]}
end
@impl true
def update(assigns, socket) do
{text, assigns} = Map.p... | 32.961039 | 123 | 0.606383 |
65c90fdf6dbb2389e84445e97696c4d841bfaa30 | 72 | exs | Elixir | test/test_helper.exs | mattferderer/phoenix-elm-contacts-tutorial | 4ca76524bca9906a8442de03b7b142a81a4e7b3d | [
"MIT"
] | null | null | null | test/test_helper.exs | mattferderer/phoenix-elm-contacts-tutorial | 4ca76524bca9906a8442de03b7b142a81a4e7b3d | [
"MIT"
] | null | null | null | test/test_helper.exs | mattferderer/phoenix-elm-contacts-tutorial | 4ca76524bca9906a8442de03b7b142a81a4e7b3d | [
"MIT"
] | null | null | null | ExUnit.start
Ecto.Adapters.SQL.Sandbox.mode(ContactApp.Repo, :manual)
| 14.4 | 56 | 0.791667 |
65c91651be88450a8799077a1100ce00006f25e7 | 1,747 | ex | Elixir | lib/go_champs_api_web/plugs/authorized_draw.ex | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | null | null | null | lib/go_champs_api_web/plugs/authorized_draw.ex | lairjr/go_champs_api | 01cb3ff2c655910839e5caf4282a8e50543e32a1 | [
"MIT"
] | 5 | 2021-09-29T04:01:54.000Z | 2021-11-02T03:11:52.000Z | lib/go_champs_api_web/plugs/authorized_draw.ex | lairjr/tournamentsapi | dde8f8f659074527d3861391af3ab29f070179f2 | [
"MIT"
] | 1 | 2021-11-02T14:43:15.000Z | 2021-11-02T14:43:15.000Z | defmodule GoChampsApiWeb.Plugs.AuthorizedDraw do
import Phoenix.Controller
import Plug.Conn
alias GoChampsApi.Phases
alias GoChampsApi.Draws
def init(default), do: default
def call(conn, :draw) do
{:ok, draw} = Map.fetch(conn.params, "draw")
{:ok, phase_id} = Map.fetch(draw, "phase_id")
orga... | 24.957143 | 100 | 0.621065 |
65c91f11c0c5a0a2f4a997159b4072e80a6cf1bf | 3,179 | ex | Elixir | lib/cased/publisher/http.ex | cased/cased-elixir | a19a4c5d6dec3374c1067a908b357db798cfb2c8 | [
"MIT"
] | 3 | 2021-02-06T01:41:33.000Z | 2021-07-09T21:19:06.000Z | lib/cased/publisher/http.ex | cased/cased-elixir | a19a4c5d6dec3374c1067a908b357db798cfb2c8 | [
"MIT"
] | 1 | 2021-07-09T20:34:35.000Z | 2021-07-09T20:35:29.000Z | lib/cased/publisher/http.ex | cased/cased-elixir | a19a4c5d6dec3374c1067a908b357db798cfb2c8 | [
"MIT"
] | 2 | 2021-03-05T22:52:16.000Z | 2021-03-18T13:18:30.000Z | defmodule Cased.Publisher.HTTP do
@moduledoc """
A publisher used to transmit audit events to Cased via HTTP/S.
"""
use GenServer
import Norm
require Logger
@typedoc """
Available options to initialize the publisher.
"""
@type init_opts :: [init_opt()]
@type init_opt ::
{:key, String.t... | 24.083333 | 97 | 0.582888 |
65c949ae228c3ae7f702971e3985754eb36e1d7b | 71 | ex | Elixir | test/sample_files/no_struct_spec_module.ex | kianmeng/doctor | 2b1eb4bc0698b96169f2ad0049010d5428b48c2e | [
"MIT"
] | 110 | 2018-10-03T06:44:31.000Z | 2022-03-06T20:20:10.000Z | test/sample_files/no_struct_spec_module.ex | kianmeng/doctor | 2b1eb4bc0698b96169f2ad0049010d5428b48c2e | [
"MIT"
] | 34 | 2019-06-05T18:47:10.000Z | 2022-03-11T00:11:54.000Z | test/sample_files/no_struct_spec_module.ex | kianmeng/doctor | 2b1eb4bc0698b96169f2ad0049010d5428b48c2e | [
"MIT"
] | 8 | 2019-06-16T22:10:00.000Z | 2022-02-23T19:30:33.000Z | defmodule Doctor.NoStructSpecModule do
defstruct ~w(name arity)a
end
| 17.75 | 38 | 0.816901 |
65c94b7dc713fca10e81edfd1970520a17ab2ce1 | 5,378 | exs | Elixir | test/observed/hosts_test.exs | wasmCloud/lattice-observer | 723fb0dfb57ba5aa831d8663ebd8df43cffd4e08 | [
"Apache-2.0"
] | null | null | null | test/observed/hosts_test.exs | wasmCloud/lattice-observer | 723fb0dfb57ba5aa831d8663ebd8df43cffd4e08 | [
"Apache-2.0"
] | 6 | 2021-11-22T12:51:35.000Z | 2022-02-10T21:29:28.000Z | test/observed/hosts_test.exs | wasmCloud/lattice-observer | 723fb0dfb57ba5aa831d8663ebd8df43cffd4e08 | [
"Apache-2.0"
] | 1 | 2021-11-27T01:16:42.000Z | 2021-11-27T01:16:42.000Z | defmodule LatticeObserverTest.Observed.HostsTest do
use ExUnit.Case
alias LatticeObserver.Observed.{Lattice, EventProcessor}
alias TestSupport.CloudEvents
@test_host "Nxxx"
@test_host2 "Nxxxy"
describe "Observed Lattice Monitors Host Events" do
test "Removing a host removes all instances on that host"... | 30.044693 | 86 | 0.476199 |
65c978199f657479b0f7d4abd1f4c65273eb2f3c | 308 | exs | Elixir | priv/repo/migrations/20200406115153_cascade_custom_domain_deletion.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 984 | 2019-09-02T11:36:41.000Z | 2020-06-08T06:25:48.000Z | priv/repo/migrations/20200406115153_cascade_custom_domain_deletion.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 24 | 2019-09-10T09:53:17.000Z | 2020-06-08T07:35:26.000Z | priv/repo/migrations/20200406115153_cascade_custom_domain_deletion.exs | wvffle/analytics | 2c0fd55bc67f74af1fe1e2641678d44e9fee61d5 | [
"MIT"
] | 51 | 2019-09-03T10:48:10.000Z | 2020-06-07T00:23:34.000Z | defmodule Plausible.Repo.Migrations.CascadeCustomDomainDeletion do
use Ecto.Migration
def change do
drop constraint("custom_domains", "custom_domains_site_id_fkey")
alter table(:custom_domains) do
modify :site_id, references(:sites, on_delete: :delete_all), null: false
end
end
end
| 25.666667 | 78 | 0.75974 |
65c98d8d5d9caed842092ce5a8234e4fe7f109be | 2,752 | ex | Elixir | lib/augur/transmission/cache.ex | elarkham/animu | 0f0c7b0b34168e69255943bdede60e03df057a44 | [
"MIT"
] | 1 | 2018-01-02T06:59:08.000Z | 2018-01-02T06:59:08.000Z | lib/augur/transmission/cache.ex | elarkham/Animu | 0f0c7b0b34168e69255943bdede60e03df057a44 | [
"MIT"
] | null | null | null | lib/augur/transmission/cache.ex | elarkham/Animu | 0f0c7b0b34168e69255943bdede60e03df057a44 | [
"MIT"
] | null | null | null | defmodule Augur.Transmission.Cache do
@moduledoc """
Serves as interface to internal ETS table that tracks torrent status
"""
require Logger
alias Augur.Transmission
alias Augur.Transmission.Torrent
alias Phoenix.PubSub
alias __MODULE__
###############
# General #
###############
@doc ""... | 21.84127 | 84 | 0.610102 |
65c9d2f8464b62f9161682608230ac7b733471de | 512 | ex | Elixir | biapp-frs-web/target/classes/biapp-nrt/sh-nrt/main/tmp_querybackfile.ex | JamesLoveCurry/bione_input | 6cb302439369bb364d4bb1de45d70b2b54d94a23 | [
"Apache-2.0"
] | null | null | null | biapp-frs-web/target/classes/biapp-nrt/sh-nrt/main/tmp_querybackfile.ex | JamesLoveCurry/bione_input | 6cb302439369bb364d4bb1de45d70b2b54d94a23 | [
"Apache-2.0"
] | null | null | null | biapp-frs-web/target/classes/biapp-nrt/sh-nrt/main/tmp_querybackfile.ex | JamesLoveCurry/bione_input | 6cb302439369bb364d4bb1de45d70b2b54d94a23 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/expect -f
#set port 22
#set user urrp
set user [lindex $argv 0]
set password [lindex $argv 1]
set host [lindex $argv 2]
set inckeystr [lindex $argv 3]
set getYtjGrzhBack [lindex $argv 4]
#set host 10.1.244.73
#set host 10.200.250.25
#set password urrp@123
#send "cd ${getYtjGrzhBack}\r"
set timeout -1
spa... | 15.058824 | 35 | 0.6875 |
65c9da67800ee7902f8ad249304265cc42176b58 | 488 | exs | Elixir | elixir/camp/alchemy_markdown/mix.exs | gilmoreg/learn | 0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2 | [
"MIT"
] | null | null | null | elixir/camp/alchemy_markdown/mix.exs | gilmoreg/learn | 0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2 | [
"MIT"
] | null | null | null | elixir/camp/alchemy_markdown/mix.exs | gilmoreg/learn | 0c4f34387f0d2235ecd88ac62fb86a51f87eb5c2 | [
"MIT"
] | null | null | null | defmodule AlchemyMarkdown.MixProject do
use Mix.Project
def project do
[
app: :alchemy_markdown,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
... | 17.428571 | 59 | 0.581967 |
65c9e309f8770f008a1cc17dcc5b418f25a8133d | 5,543 | exs | Elixir | apps/glayu_build/test/glayu/build/jobs/build_site_tree_test.exs | pmartinezalvarez/glayu | 8dc30eea4d04c38f5c7999b593c066828423a3dc | [
"MIT"
] | 51 | 2017-05-21T07:27:34.000Z | 2017-11-30T04:34:17.000Z | apps/glayu_build/test/glayu/build/jobs/build_site_tree_test.exs | doc22940/glayu | 8dc30eea4d04c38f5c7999b593c066828423a3dc | [
"MIT"
] | 17 | 2017-06-14T18:40:44.000Z | 2017-08-20T16:14:58.000Z | apps/glayu_build/test/glayu/build/jobs/build_site_tree_test.exs | doc22940/glayu | 8dc30eea4d04c38f5c7999b593c066828423a3dc | [
"MIT"
] | 5 | 2017-06-04T19:55:56.000Z | 2017-07-29T16:18:58.000Z | defmodule Glayu.Build.Jobs.BuildSiteTreeTest do
use ExUnit.Case
use Timex
setup_all do
Application.start(:yamerl)
Glayu.Supervisor.start_link
Glayu.Build.Supervisor.start_link
Glayu.Config.load_config_file("./test/fixtures/build_site_tree/_config.yml", "./test/fixtures/build_site_tree")
Si... | 43.304688 | 443 | 0.680859 |
65ca097411e8a7f7e3126785bad5d080718df819 | 272 | exs | Elixir | test/gotochgo_web/views/layout_view_test.exs | geolessel/GOTOchgo2021 | 4061a04647456712ba08e8f3c3fce6fb6e30751a | [
"Apache-2.0"
] | null | null | null | test/gotochgo_web/views/layout_view_test.exs | geolessel/GOTOchgo2021 | 4061a04647456712ba08e8f3c3fce6fb6e30751a | [
"Apache-2.0"
] | null | null | null | test/gotochgo_web/views/layout_view_test.exs | geolessel/GOTOchgo2021 | 4061a04647456712ba08e8f3c3fce6fb6e30751a | [
"Apache-2.0"
] | 2 | 2021-11-11T17:19:17.000Z | 2021-12-27T16:06:23.000Z | defmodule GotochgoWeb.LayoutViewTest do
use GotochgoWeb.ConnCase, async: true
# When testing helpers, you may want to import Phoenix.HTML and
# use functions such as safe_to_string() to convert the helper
# result into an HTML string.
# import Phoenix.HTML
end
| 30.222222 | 65 | 0.768382 |
65ca19847701805c80cbc92a0e18bc60ad453ddc | 397 | ex | Elixir | dictionary/lib/dictionary.ex | johncoleman83/elixir-for-programmers | 062d0a761e59b30909377694151655c946f48bb4 | [
"MIT"
] | null | null | null | dictionary/lib/dictionary.ex | johncoleman83/elixir-for-programmers | 062d0a761e59b30909377694151655c946f48bb4 | [
"MIT"
] | null | null | null | dictionary/lib/dictionary.ex | johncoleman83/elixir-for-programmers | 062d0a761e59b30909377694151655c946f48bb4 | [
"MIT"
] | null | null | null | defmodule Dictionary do
@moduledoc """
Documentation for Dictionary.
"""
alias Dictionary.Wordlist, as: Wordlist
@doc """
Hello world.
iex> Dictionary.name
"elixir for programmers method!"
"""
def name do
"Dictionary!"
end
defdelegate start(), to: Wordlist, as: :import_word_li... | 18.904762 | 68 | 0.675063 |
65ca3f2b7222b2f42cc6c5c70edd1d250acd5ba2 | 2,122 | ex | Elixir | lib/snmp/agent.ex | mattjg908/elixir-snmp | a888390e7d1a9d9595c9fc7a51ec19bdcabc63e9 | [
"MIT"
] | 6 | 2021-02-26T13:42:47.000Z | 2022-01-17T18:49:25.000Z | lib/snmp/agent.ex | mattjg908/elixir-snmp | a888390e7d1a9d9595c9fc7a51ec19bdcabc63e9 | [
"MIT"
] | 2 | 2021-02-26T14:09:00.000Z | 2021-04-22T10:49:25.000Z | lib/snmp/agent.ex | mattjg908/elixir-snmp | a888390e7d1a9d9595c9fc7a51ec19bdcabc63e9 | [
"MIT"
] | 1 | 2021-10-19T21:24:03.000Z | 2021-10-19T21:24:03.000Z | defmodule Snmp.Agent do
@moduledoc """
Use this module to generate an Agent module you can insert in your supervision
tree.
## DSL
See `Snmp.Agent.DSL`.
## Configuration
When using this module, you need to provide `:otp_app` option. Agent
environment will be get with: `Application.get_env(<otp_app>,... | 21.876289 | 88 | 0.60886 |
65ca65e7bcd2d6993ff7c8ef86e7aa86ce85a5bd | 1,082 | ex | Elixir | agma/lib/agma_web/channels/user_socket.ex | queer/mahou | 09b63a2f7431a7b3364ce81dac35114ea508942f | [
"BSD-3-Clause"
] | 37 | 2021-01-31T17:43:03.000Z | 2021-11-17T12:29:00.000Z | lib/agma_web/channels/user_socket.ex | queer/agma | f240a7bdf743049b8b1b994ee340b6cce47551bf | [
"BSD-3-Clause"
] | 4 | 2021-05-29T04:54:28.000Z | 2021-06-26T20:40:48.000Z | lib/agma_web/channels/user_socket.ex | queer/agma | f240a7bdf743049b8b1b994ee340b6cce47551bf | [
"BSD-3-Clause"
] | null | null | null | defmodule AgmaWeb.UserSocket do
use Phoenix.Socket
## Channels
# channel "room:*", AgmaWeb.RoomChannel
# Socket params are passed from the client and can
# be used to verify and authenticate a user. After
# verification, you can put default assigns into
# the socket that will be set for all channels, ie... | 30.055556 | 83 | 0.692237 |
65ca6abf8fccbd245cd268b78e738cd45c95aea9 | 1,266 | exs | Elixir | mix.exs | fremantle-industries/ex_huobi | 62d6e761d78aac3e0069eed59920aa3da06e75cd | [
"MIT"
] | 1 | 2021-06-29T19:47:22.000Z | 2021-06-29T19:47:22.000Z | mix.exs | fremantle-industries/ex_huobi | 62d6e761d78aac3e0069eed59920aa3da06e75cd | [
"MIT"
] | 6 | 2020-05-25T09:14:19.000Z | 2020-12-21T15:52:16.000Z | mix.exs | fremantle-industries/ex_huobi | 62d6e761d78aac3e0069eed59920aa3da06e75cd | [
"MIT"
] | 1 | 2021-02-24T05:02:52.000Z | 2021-02-24T05:02:52.000Z | defmodule ExHuobi.MixProject do
use Mix.Project
def project do
[
app: :ex_huobi,
version: "0.0.2",
elixir: "~> 1.7",
package: package(),
start_permanent: Mix.env() == :prod,
description: description(),
deps: deps(),
test_coverage: [tool: ExCoveralls],
prefe... | 22.607143 | 75 | 0.518167 |
65ca77a579ce82e0f21437c8d47764809f5061c7 | 2,606 | ex | Elixir | clients/drive/lib/google_api/drive/v3/model/team_drive_restrictions.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/drive/lib/google_api/drive/v3/model/team_drive_restrictions.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/drive/lib/google_api/drive/v3/model/team_drive_restrictions.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... | 46.535714 | 329 | 0.742134 |
65ca7d818baa5c672f9a5a610eed82d0040043cb | 1,634 | exs | Elixir | apps/potterhat_node/mix.exs | omisego/potterhat | 47635e5d061c76900bd0e42a19e5dfc2ae8c0253 | [
"Apache-2.0"
] | 6 | 2019-03-28T14:47:41.000Z | 2019-06-25T02:38:06.000Z | apps/potterhat_node/mix.exs | omisego/potterhat | 47635e5d061c76900bd0e42a19e5dfc2ae8c0253 | [
"Apache-2.0"
] | 30 | 2019-05-22T10:08:09.000Z | 2019-08-02T06:37:56.000Z | apps/potterhat_node/mix.exs | omisego/potterhat | 47635e5d061c76900bd0e42a19e5dfc2ae8c0253 | [
"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.172414 | 74 | 0.621787 |
65ca8abe48880df065f55252ab4a59221ecc9b28 | 1,847 | exs | Elixir | mix.exs | vahidabdi/escala_api | 84a4a3ef832180f12c6197683933d8cd0ab35ef4 | [
"MIT"
] | null | null | null | mix.exs | vahidabdi/escala_api | 84a4a3ef832180f12c6197683933d8cd0ab35ef4 | [
"MIT"
] | null | null | null | mix.exs | vahidabdi/escala_api | 84a4a3ef832180f12c6197683933d8cd0ab35ef4 | [
"MIT"
] | null | null | null | defmodule Escala.Mixfile do
use Mix.Project
def project do
[
app: :escala,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
de... | 25.30137 | 79 | 0.554954 |
65ca944f7cd6ceb9aeef8ce7ef712645983dcf84 | 32,193 | ex | Elixir | lib/teslamate/vehicles/vehicle/vehicle.ex | Try2Fly/teslamate | 7ac8d5681231a494af288b0fb16adb1e775ffcec | [
"MIT"
] | null | null | null | lib/teslamate/vehicles/vehicle/vehicle.ex | Try2Fly/teslamate | 7ac8d5681231a494af288b0fb16adb1e775ffcec | [
"MIT"
] | null | null | null | lib/teslamate/vehicles/vehicle/vehicle.ex | Try2Fly/teslamate | 7ac8d5681231a494af288b0fb16adb1e775ffcec | [
"MIT"
] | null | null | null | defmodule TeslaMate.Vehicles.Vehicle do
use GenStateMachine
require Logger
alias __MODULE__.Summary
alias TeslaMate.{Vehicles, Api, Log, Settings, Convert}
alias TeslaMate.Vehicles.Identification
alias TeslaApi.Vehicle.State.{Climate, VehicleState, Drive, Charge}
alias TeslaApi.Vehicle
import Core.D... | 35.690687 | 101 | 0.64806 |
65caa0f9a882767548189ff04d0f7ebbe6fa88cf | 1,008 | ex | Elixir | lib/changelog/files/logo.ex | PsOverflow/changelog.com | 53f4ecfc39b021c6b8cfcc0fa11f29aff8038a7f | [
"MIT"
] | 1 | 2021-03-14T21:12:49.000Z | 2021-03-14T21:12:49.000Z | lib/changelog/files/logo.ex | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | null | null | null | lib/changelog/files/logo.ex | type1fool/changelog.com | fbec3528cc3f5adfdc75b008bb92b17efc4f248f | [
"MIT"
] | 1 | 2018-10-03T20:55:52.000Z | 2018-10-03T20:55:52.000Z | defmodule Changelog.Files.Logo do
defmacro __using__(prefix) do
quote do
use Changelog.File, [:jpg, :jpeg, :png, :svg]
@versions [:original, :large, :medium, :small]
def storage_dir(_, {_, scope}), do: expanded_dir("/logos/#{hashed(scope.id)}")
def filename(version, _), do: "#{unquote(pr... | 26.526316 | 84 | 0.644841 |
65caa92398315426de9a8f461cb71b34a41cb8d2 | 1,244 | ex | Elixir | apps/customer/lib/customer/web/router.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 102 | 2017-05-21T18:24:04.000Z | 2022-03-10T12:53:20.000Z | apps/customer/lib/customer/web/router.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 2 | 2017-05-21T01:53:30.000Z | 2017-12-01T00:27:06.000Z | apps/customer/lib/customer/web/router.ex | JaiMali/job_search-1 | 5fe1afcd80aa5d55b92befed2780cd6721837c88 | [
"MIT"
] | 18 | 2017-05-22T09:51:36.000Z | 2021-09-24T00:57:01.000Z | defmodule Customer.Web.Router do
use Customer.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
plug Guardian.Plug.VerifyHeader, re... | 22.618182 | 81 | 0.655145 |
65cae1c5d070b41bc551b80457183d5db95344a8 | 1,398 | ex | Elixir | lib/xdr/transactions/muxed_account_med25519.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 3 | 2021-08-17T20:32:45.000Z | 2022-03-13T20:26:02.000Z | lib/xdr/transactions/muxed_account_med25519.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 45 | 2021-08-12T20:19:41.000Z | 2022-03-27T21:00:10.000Z | lib/xdr/transactions/muxed_account_med25519.ex | einerzg/stellar_base | 2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f | [
"MIT"
] | 2 | 2021-09-22T23:11:13.000Z | 2022-01-23T03:19:11.000Z | defmodule StellarBase.XDR.MuxedAccountMed25519 do
@moduledoc """
Representation of Stellar `MuxedAccountMed25519` type.
"""
alias StellarBase.XDR.{UInt64, UInt256}
@behaviour XDR.Declaration
@struct_spec XDR.Struct.new(id: UInt64, ed25519: UInt256)
@type t :: %__MODULE__{id: UInt64.t(), ed25519: UInt25... | 25.418182 | 90 | 0.642346 |
65caf236cd86ebe614ff026b574363e373e254fb | 1,075 | ex | Elixir | test/support/conn_case.ex | abinader89/Space-Raiders | d5e01a3200a54d22824b890238613a00f32a7d62 | [
"CC-BY-3.0"
] | null | null | null | test/support/conn_case.ex | abinader89/Space-Raiders | d5e01a3200a54d22824b890238613a00f32a7d62 | [
"CC-BY-3.0"
] | null | null | null | test/support/conn_case.ex | abinader89/Space-Raiders | d5e01a3200a54d22824b890238613a00f32a7d62 | [
"CC-BY-3.0"
] | null | null | null | defmodule SpaceRaidersWeb.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, ... | 27.564103 | 74 | 0.724651 |
65cb01971ae52985d707799f4b86adcfd71aab05 | 2,013 | ex | Elixir | lib/phoenix_component_folders_web.ex | kimlindholm/phoenix_component_folders | 2d07f4966fe473063183e97009955b82a93b181f | [
"MIT"
] | 30 | 2017-05-05T09:30:06.000Z | 2021-03-29T15:08:02.000Z | lib/phoenix_component_folders_web.ex | kimlindholm/phoenix_component_folders | 2d07f4966fe473063183e97009955b82a93b181f | [
"MIT"
] | 4 | 2017-05-01T18:53:57.000Z | 2020-11-22T06:46:55.000Z | lib/phoenix_component_folders_web.ex | kimlindholm/phoenix_component_folders | 2d07f4966fe473063183e97009955b82a93b181f | [
"MIT"
] | 7 | 2017-11-09T06:34:07.000Z | 2021-03-01T20:14:18.000Z | defmodule PhoenixComponentFoldersWeb 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 PhoenixComponentFoldersWeb, :controller
use PhoenixComponentFoldersWeb, :view
The definitions below... | 26.142857 | 69 | 0.71386 |
65cb32d13788f2d62e0a40f16c158348f65c240b | 1,740 | exs | Elixir | test/stripe/issuing/card_test.exs | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 555 | 2016-11-29T05:02:27.000Z | 2022-03-30T00:47:59.000Z | test/stripe/issuing/card_test.exs | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 532 | 2016-11-28T18:22:25.000Z | 2022-03-30T17:04:32.000Z | test/stripe/issuing/card_test.exs | Rutaba/stripity_stripe | 12c525301c781f9c8c7e578cc0d933f5d35183d5 | [
"BSD-3-Clause"
] | 296 | 2016-12-05T14:04:09.000Z | 2022-03-28T20:39:37.000Z | defmodule Stripe.Issuing.CardTest do
use Stripe.StripeCase, async: true
describe "create/2" do
test "is creatable" do
params = %{
currency: "usd",
type: :virtual
}
assert {:ok, %Stripe.Issuing.Card{}} = Stripe.Issuing.Card.create(params)
assert_stripe_requested(:post, ... | 26.769231 | 87 | 0.626437 |
65cb778065ee6f8c903d15f815822bd8d9179a02 | 677 | exs | Elixir | string_reverser.exs | pmarreck/elixir-snippets | 5f5ee26087bc2ded4e71c4c3eeff1231310ff358 | [
"BSD-3-Clause"
] | 34 | 2015-02-27T14:41:12.000Z | 2021-09-26T06:06:18.000Z | string_reverser.exs | pmarreck/elixir-snippets | 5f5ee26087bc2ded4e71c4c3eeff1231310ff358 | [
"BSD-3-Clause"
] | null | null | null | string_reverser.exs | pmarreck/elixir-snippets | 5f5ee26087bc2ded4e71c4c3eeff1231310ff358 | [
"BSD-3-Clause"
] | 3 | 2016-02-05T16:09:41.000Z | 2017-10-21T15:47:04.000Z | defmodule StringReverser do
# beginning case
def reverse(str) do
reverse("", str)
end
# end case
def reverse(reversed, "") do
reversed
end
# interim case
def reverse(reversed, <<first, rest :: binary>>) do
reverse(<<first, reversed :: binary>>, rest)
end
end
# run this inline suite wi... | 18.297297 | 58 | 0.638109 |
65cb8916cf58d1338d06094b9689d283bfad4ed2 | 878 | exs | Elixir | config/prod.exs | axelson/hexpm | 3608a9aa16d321f8f7d0890528676c0821d85686 | [
"Apache-2.0"
] | 2 | 2020-03-01T18:23:33.000Z | 2021-01-15T10:15:45.000Z | config/prod.exs | axelson/hexpm | 3608a9aa16d321f8f7d0890528676c0821d85686 | [
"Apache-2.0"
] | 3 | 2020-06-30T11:24:41.000Z | 2020-08-05T15:47:34.000Z | config/prod.exs | axelson/hexpm | 3608a9aa16d321f8f7d0890528676c0821d85686 | [
"Apache-2.0"
] | null | null | null | import Config
config :hexpm,
billing_impl: Hexpm.Billing.Hexpm,
cdn_impl: Hexpm.CDN.Fastly,
pwned_impl: Hexpm.Pwned.HaveIBeenPwned,
tmp_dir: "tmp"
config :hexpm, HexpmWeb.Endpoint,
http: [compress: true],
url: [scheme: "https", port: 443],
load_from_system_env: true,
cache_static_manifest: "priv/stati... | 20.904762 | 58 | 0.690205 |
65cbc4125dca935d0b4cebb6db980a891a9a53d5 | 2,463 | exs | Elixir | mix.exs | geometerio/medic | ce5245b468f443174cfd45953db74172ea23e1e4 | [
"MIT"
] | 3 | 2021-06-18T18:42:35.000Z | 2022-02-09T01:54:58.000Z | mix.exs | geometerio/medic | ce5245b468f443174cfd45953db74172ea23e1e4 | [
"MIT"
] | 3 | 2021-06-17T19:02:32.000Z | 2021-06-17T19:44:35.000Z | mix.exs | geometerio/medic | ce5245b468f443174cfd45953db74172ea23e1e4 | [
"MIT"
] | 1 | 2022-03-10T19:16:14.000Z | 2022-03-10T19:16:14.000Z | defmodule Medic.MixProject do
use Mix.Project
@gen_medic_url "https://hex.pm/packages/gen_medic"
@scm_url "https://github.com/geometerio/medic"
@version "1.3.0"
def project do
[
app: :medic,
deps: deps(),
description: "Checks for setting up development environments",
dialyzer: dia... | 23.235849 | 95 | 0.565976 |
65cbc97b20d8c443f5d2872901e31d826160f226 | 1,953 | exs | Elixir | ex_github/mix.exs | arilsonsouza/rocketseat-ignite-elixir | 93e32d52d589336dfd2d81e755d6dd7f05ee40b8 | [
"MIT"
] | null | null | null | ex_github/mix.exs | arilsonsouza/rocketseat-ignite-elixir | 93e32d52d589336dfd2d81e755d6dd7f05ee40b8 | [
"MIT"
] | null | null | null | ex_github/mix.exs | arilsonsouza/rocketseat-ignite-elixir | 93e32d52d589336dfd2d81e755d6dd7f05ee40b8 | [
"MIT"
] | null | null | null | defmodule ExGithub.MixProject do
use Mix.Project
def project do
[
app: :ex_github,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
... | 27.507042 | 84 | 0.557604 |
65cbd31658aba5843a204fb9b3e13a3c76a2a726 | 812 | ex | Elixir | lib/API/books.ex | gamezcua1/Toxin | fece5bb82ccc679c258ec9a26a633247cbe53691 | [
"MIT"
] | null | null | null | lib/API/books.ex | gamezcua1/Toxin | fece5bb82ccc679c258ec9a26a633247cbe53691 | [
"MIT"
] | null | null | null | lib/API/books.ex | gamezcua1/Toxin | fece5bb82ccc679c258ec9a26a633247cbe53691 | [
"MIT"
] | null | null | null | defmodule API.Books do
alias Models.Book, as: Book
def get_all("GET", "/books/", req) do
res = Book.get_all() |> Poison.encode!()
end
def create("POST", "/books/", req) do
do_save(req)
end
def create("PUT", "/books/" <> key, req) do
do_save(req)
end
def do_save(req) do
data = %{
... | 19.804878 | 75 | 0.54064 |
65cbd8ead0b507da911d5ddebac66e97419c805b | 1,022 | exs | Elixir | installer/templates/phx_umbrella/apps/app_name_web/config/config.exs | spapas/phoenix | 19ec3c6991d6c350b2045abe93d52310bbb9f8b9 | [
"MIT"
] | null | null | null | installer/templates/phx_umbrella/apps/app_name_web/config/config.exs | spapas/phoenix | 19ec3c6991d6c350b2045abe93d52310bbb9f8b9 | [
"MIT"
] | null | null | null | installer/templates/phx_umbrella/apps/app_name_web/config/config.exs | spapas/phoenix | 19ec3c6991d6c350b2045abe93d52310bbb9f8b9 | [
"MIT"
] | null | null | null | <%= if @namespaced? || @ecto || @generators do %>
config :<%= @web_app_name %><%= if @namespaced? do %>,
namespace: <%= @web_namespace %><% end %><%= if @ecto do %>,
ecto_repos: [<%= @app_module %>.Repo]<% end %><%= if @generators do %>,
generators: <%= inspect @generators %><% end %>
<% end %># Configures the e... | 44.434783 | 123 | 0.599804 |
65cbe2673fdd0a0185acb5a987576b966e9a2e51 | 137 | ex | Elixir | lib/dingo_web/controllers/page_controller.ex | madclaws/Dingo | f277671b7e0a33c6b9a181f1444175f1171e9ce6 | [
"MIT"
] | null | null | null | lib/dingo_web/controllers/page_controller.ex | madclaws/Dingo | f277671b7e0a33c6b9a181f1444175f1171e9ce6 | [
"MIT"
] | null | null | null | lib/dingo_web/controllers/page_controller.ex | madclaws/Dingo | f277671b7e0a33c6b9a181f1444175f1171e9ce6 | [
"MIT"
] | null | null | null | defmodule DingoWeb.PageController do
use DingoWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 17.125 | 36 | 0.729927 |
65cbe2f8325e9af31fca911b2e31e5bf81cff37a | 2,915 | ex | Elixir | lib/scenes/current/game4.ex | codecurious-bln/elixir_snake | b0021fa32180d328a0d5794f5d8984a27e213e51 | [
"MIT"
] | 9 | 2019-10-18T14:09:33.000Z | 2020-05-09T02:22:15.000Z | lib/scenes/current/game4.ex | codecurious-bln/elixir_snake | b0021fa32180d328a0d5794f5d8984a27e213e51 | [
"MIT"
] | 23 | 2019-10-26T11:09:04.000Z | 2020-03-02T08:17:28.000Z | lib/scenes/current/game4.ex | codecurious-bln/elixir_snake | b0021fa32180d328a0d5794f5d8984a27e213e51 | [
"MIT"
] | 1 | 2019-10-31T15:53:18.000Z | 2019-10-31T15:53:18.000Z | # Game at the end of Chapter 4
defmodule Snake.Scene.Game4 do
use Scenic.Scene
import Scenic.Primitives, only: [rounded_rectangle: 3]
alias Scenic.ViewPort
alias Scenic.Graph
@graph Graph.build(clear_color: :dark_sea_green)
@tile_size 32
@tile_radius 8
@frame_ms 192
def init(_arg, opts) do
vie... | 28.578431 | 96 | 0.65283 |
65cbfd06125ec6bf6710184bde8975bd60a0ed0f | 1,874 | ex | Elixir | lib/changelog/schema/news/news_source.ex | gustavoarmoa/changelog.com | e898a9979a237ae66962714821ed8633a4966f37 | [
"MIT"
] | 2,599 | 2016-10-25T15:02:53.000Z | 2022-03-26T02:34:42.000Z | lib/changelog/schema/news/news_source.ex | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | 253 | 2016-10-25T20:29:24.000Z | 2022-03-29T21:52:36.000Z | lib/changelog/schema/news/news_source.ex | codexn/changelog.com | 25ce501ee62eef76731c38d590667e8132096ba8 | [
"MIT"
] | 298 | 2016-10-25T15:18:31.000Z | 2022-01-18T21:25:52.000Z | defmodule Changelog.NewsSource do
use Changelog.Schema
alias Changelog.{Files, NewsItem, Regexp}
schema "news_sources" do
field :name, :string
field :slug, :string
field :website, :string
field :twitter_handle, :string
field :description, :string
field :feed, :string
field :regex, :s... | 26.771429 | 93 | 0.658485 |
65cbfd86a32d3c7cd05ca51b7f15a06ce3ca5380 | 564 | ex | Elixir | apps/ello_serve/lib/ello_serve/endpoint.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 16 | 2017-06-21T21:31:20.000Z | 2021-05-09T03:23:26.000Z | apps/ello_serve/lib/ello_serve/endpoint.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 25 | 2017-06-07T12:18:28.000Z | 2018-06-08T13:27:43.000Z | apps/ello_serve/lib/ello_serve/endpoint.ex | ello/apex | 4acb096b3ce172ff4ef9a51e5d068d533007b920 | [
"MIT"
] | 3 | 2018-06-14T15:34:07.000Z | 2022-02-28T21:06:13.000Z | # Note: When running in an umbrella we do not start this endpoint directly.
# Instead Ello.Dispatch.Endpoint is run.
defmodule Ello.Serve.Endpoint do
use Phoenix.Endpoint, otp_app: :ello_serve
# Code reloading can be explicitly enabled under the
# :code_reloader configuration of your endpoint.
if code_reloadin... | 23.5 | 75 | 0.730496 |
65cc47aba4b65fd81572139b2ac673bf10aecdc5 | 69 | exs | Elixir | test/test_helper.exs | bosko/mpdex | fe64ce453332770df99c12320bfeeb5ac8b801dc | [
"MIT"
] | null | null | null | test/test_helper.exs | bosko/mpdex | fe64ce453332770df99c12320bfeeb5ac8b801dc | [
"MIT"
] | null | null | null | test/test_helper.exs | bosko/mpdex | fe64ce453332770df99c12320bfeeb5ac8b801dc | [
"MIT"
] | null | null | null | Code.require_file "support/test_client.exs", __DIR__
ExUnit.start()
| 17.25 | 52 | 0.797101 |
65cc4bf35d721832495437db11e63ba272c12f55 | 7,459 | ex | Elixir | apps/ewallet/lib/ewallet/gates/transaction_request_gate.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | 1 | 2018-12-07T06:21:21.000Z | 2018-12-07T06:21:21.000Z | apps/ewallet/lib/ewallet/gates/transaction_request_gate.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"Apache-2.0"
] | null | null | null | apps/ewallet/lib/ewallet/gates/transaction_request_gate.ex | amadeobrands/ewallet | 505b7822721940a7b892a9b35c225e80cc8ac0b4 | [
"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.290043 | 99 | 0.628905 |
65cc52cb399a7b318611abb4f6e50d49fab71f23 | 151 | exs | Elixir | .formatter.exs | mathieuprog/absinthe_graphql_ws | d2a6be578459f7bb0dd81e64bb7e33cf6c580a01 | [
"MIT"
] | 26 | 2021-06-07T11:00:25.000Z | 2022-03-13T00:17:52.000Z | .formatter.exs | mathieuprog/absinthe_graphql_ws | d2a6be578459f7bb0dd81e64bb7e33cf6c580a01 | [
"MIT"
] | 9 | 2021-06-07T14:59:41.000Z | 2022-03-27T13:08:50.000Z | .formatter.exs | mathieuprog/absinthe_graphql_ws | d2a6be578459f7bb0dd81e64bb7e33cf6c580a01 | [
"MIT"
] | 7 | 2021-06-07T11:04:47.000Z | 2022-03-19T05:29:20.000Z | # Used by "mix format"
[
import_deps: [:phoenix],
inputs: ["{mix,.formatter}.exs", "{config,lib,test,.medic}/**/*.{ex,exs}"],
line_length: 150
]
| 21.571429 | 77 | 0.602649 |
65cc57e2b98dc38e47fac8e8ad3e023c7453b36c | 866 | exs | Elixir | test/sub_context_test.exs | ejscunha/white-bread | 1c2eed1c98545beeb70b590426ce9026a8455e97 | [
"MIT"
] | 209 | 2015-03-03T14:14:28.000Z | 2020-10-26T03:23:48.000Z | test/sub_context_test.exs | ejscunha/white-bread | 1c2eed1c98545beeb70b590426ce9026a8455e97 | [
"MIT"
] | 83 | 2015-03-23T11:46:51.000Z | 2020-11-04T09:47:06.000Z | test/sub_context_test.exs | ejscunha/white-bread | 1c2eed1c98545beeb70b590426ce9026a8455e97 | [
"MIT"
] | 46 | 2015-06-12T17:37:21.000Z | 2020-10-30T09:52:45.000Z | defmodule WhiteBread.SubContextTest do
use ExUnit.Case
alias WhiteBread.SubContextTest.ExampleContext
test "All 3 steps in the sub contexts are returned" do
assert Enum.count(ExampleContext.get_steps) == 3
end
end
defmodule WhiteBread.SubContextTest.ExampleContext do
use WhiteBread.Context
import_st... | 22.205128 | 67 | 0.772517 |
65cc7df967555055da9332064ad8e89d08e64a75 | 506 | exs | Elixir | apps/core/test/pubsub/fanout/repositories_test.exs | pluralsh/plural | d33d08dee6348126334810e044b3699ef3f74819 | [
"Apache-2.0"
] | 59 | 2021-09-16T19:29:39.000Z | 2022-03-31T20:44:24.000Z | apps/core/test/pubsub/fanout/repositories_test.exs | pluralsh/plural | d33d08dee6348126334810e044b3699ef3f74819 | [
"Apache-2.0"
] | 111 | 2021-08-15T09:56:37.000Z | 2022-03-31T23:59:32.000Z | apps/core/test/pubsub/fanout/repositories_test.exs | pluralsh/plural | d33d08dee6348126334810e044b3699ef3f74819 | [
"Apache-2.0"
] | 4 | 2021-12-13T09:43:01.000Z | 2022-03-29T18:08:44.000Z | defmodule Core.PubSub.Fanout.InstallationsTest do
use Core.SchemaCase, async: true
use Mimic
alias Core.PubSub
describe "InstallationDeleted" do
test "if a user no longer has a provider, it will nilify" do
%{user: user} = inst = insert(:installation, user: build(:user, provider: :gcp))
event =... | 28.111111 | 86 | 0.687747 |
65cca83c5b9038596daa122bf7746adaa9670a2a | 63 | ex | Elixir | lib/control_web/views/layout_view.ex | vheathen/esp32-simple-control-panel | f463c82927d05129614cadb81f7138c992b23d01 | [
"MIT"
] | 2 | 2020-06-24T22:13:10.000Z | 2021-01-07T18:01:14.000Z | lib/control_web/views/layout_view.ex | vheathen/esp32-simple-control-panel | f463c82927d05129614cadb81f7138c992b23d01 | [
"MIT"
] | null | null | null | lib/control_web/views/layout_view.ex | vheathen/esp32-simple-control-panel | f463c82927d05129614cadb81f7138c992b23d01 | [
"MIT"
] | null | null | null | defmodule ControlWeb.LayoutView do
use ControlWeb, :view
end
| 15.75 | 34 | 0.809524 |
65ccad57dd47c2ab3c415845fefa54cd5b8ecbee | 219 | exs | Elixir | test/day02_test.exs | h-j-k/advent20 | e14d0789987347ec3061302422e008dd5be852fd | [
"Apache-2.0"
] | null | null | null | test/day02_test.exs | h-j-k/advent20 | e14d0789987347ec3061302422e008dd5be852fd | [
"Apache-2.0"
] | null | null | null | test/day02_test.exs | h-j-k/advent20 | e14d0789987347ec3061302422e008dd5be852fd | [
"Apache-2.0"
] | null | null | null | defmodule AdventOfCode.Day02Test do
use ExUnit.Case
import AdventOfCode.{Day02, TestUtils}
@input test_file()
test "part1", do: assert part1(@input) == 556
test "part2", do: assert part2(@input) == 605
end | 19.909091 | 47 | 0.703196 |
65ccbbf62c9353aeb5ca24fd68b2d118a5a90b27 | 15,470 | exs | Elixir | test/adapters/mailgun_test.exs | cpursley/receivex | abbd463e75f7f23071f90649387bdaf64b19ca4b | [
"MIT"
] | null | null | null | test/adapters/mailgun_test.exs | cpursley/receivex | abbd463e75f7f23071f90649387bdaf64b19ca4b | [
"MIT"
] | null | null | null | test/adapters/mailgun_test.exs | cpursley/receivex | abbd463e75f7f23071f90649387bdaf64b19ca4b | [
"MIT"
] | null | null | null | defmodule Receivex.Adapter.MailgunTest do
use ExUnit.Case
use Plug.Test
alias Receivex.Adapter
@mailgun_standard_params %{
"Content-Type" => "multipart/mixed; boundary=\"------------020601070403020003080006\"",
"Date" => "Fri, 26 Apr 2013 11:50:29 -0700",
"From" => "Bob <bob@mg.example.com>",
... | 83.172043 | 3,953 | 0.619005 |
65ccdf909f9de34cf2e1a397604b96da5890a4f2 | 4,624 | ex | Elixir | clients/script/lib/google_api/script/v1/api/scripts.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/script/lib/google_api/script/v1/api/scripts.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/script/lib/google_api/script/v1/api/scripts.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... | 53.149425 | 803 | 0.675173 |
65cce6bb484b78cb7503e36ea39fe361b7a584f1 | 1,384 | exs | Elixir | test/ecto_sharding_test.exs | craig-day/ecto_sharding | 9a754bf2c0a6ba1ce480ee93685add5472308c2c | [
"Apache-2.0"
] | 9 | 2017-09-27T02:47:23.000Z | 2021-03-17T00:01:29.000Z | test/ecto_sharding_test.exs | craig-day/ecto_sharding | 9a754bf2c0a6ba1ce480ee93685add5472308c2c | [
"Apache-2.0"
] | 3 | 2018-02-24T19:25:41.000Z | 2018-09-17T18:39:20.000Z | test/ecto_sharding_test.exs | craig-day/ecto_sharding | 9a754bf2c0a6ba1ce480ee93685add5472308c2c | [
"Apache-2.0"
] | 2 | 2017-09-26T19:24:10.000Z | 2018-03-07T00:50:10.000Z | defmodule EctoSharding.Test do
use ExUnit.Case, async: true
defp start_supervisor(_context) do
{:ok, _pid} = EctoSharding.start_link
:ok
end
describe "start_link/0" do
test "it starts the supervisor" do
{:ok, _pid} = EctoSharding.start_link
end
end
describe "current_shard/0" do
... | 23.066667 | 72 | 0.697254 |
65cceaba296f99dc4b2815144b7fe46861aa7127 | 4,207 | ex | Elixir | lib/phoenix/live_dashboard/pages/ecto_stats_page.ex | uumo/phoenix_live_dashboard | cd07929341d9dca0f85b58c624c62d63cf7c2f07 | [
"MIT"
] | null | null | null | lib/phoenix/live_dashboard/pages/ecto_stats_page.ex | uumo/phoenix_live_dashboard | cd07929341d9dca0f85b58c624c62d63cf7c2f07 | [
"MIT"
] | null | null | null | lib/phoenix/live_dashboard/pages/ecto_stats_page.ex | uumo/phoenix_live_dashboard | cd07929341d9dca0f85b58c624c62d63cf7c2f07 | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveDashboard.EctoStatsPage do
@moduledoc false
use Phoenix.LiveDashboard.PageBuilder
@compile {:no_warn_undefined, [Decimal, EctoPSQLExtras]}
@disabled_link "https://hexdocs.pm/phoenix_live_dashboard/ecto_stats.html"
@impl true
def init(%{repo: nil}), do: {:ok, %{repo: nil}}
def init(... | 26.796178 | 87 | 0.608272 |
65cd04fe344b25a52cc1e6fada1cc6f955e19044 | 686 | ex | Elixir | test/elixir/lib/setup/common.ex | frapa/couchdb | 6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112 | [
"Apache-2.0"
] | 1 | 2022-01-14T20:52:55.000Z | 2022-01-14T20:52:55.000Z | test/elixir/lib/setup/common.ex | frapa/couchdb | 6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112 | [
"Apache-2.0"
] | 1 | 2021-07-28T02:13:39.000Z | 2021-07-28T02:13:39.000Z | test/elixir/lib/setup/common.ex | frapa/couchdb | 6c28960f0fe2eec06aca7d58fd73f3c7cdbe1112 | [
"Apache-2.0"
] | null | null | null | defmodule Couch.Test.Setup.Common do
@moduledoc """
A set of common setup pipelines for reuse
- httpd_with_admin - chttpd is started and new admin is created
- httpd_with_db - httpd_with_admin and new database is created
"""
alias Couch.Test.Setup.Step
def httpd_with_admin(setup) do
setup
|> S... | 25.407407 | 65 | 0.655977 |
65cd061fa51dbed471385dbca63ef8ebacd527b7 | 1,868 | ex | Elixir | clients/spanner/lib/google_api/spanner/v1/model/list_backups_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/spanner/lib/google_api/spanner/v1/model/list_backups_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/spanner/lib/google_api/spanner/v1/model/list_backups_response.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... | 37.36 | 231 | 0.735546 |
65cd2ac5c1a58ca9dc79741f56d0c420fa955f9e | 40,751 | ex | Elixir | lib/mix/tasks/coh.install.ex | StareIntoTheBeard/coherence | 96607cefb1b6269c6e8dea6fab897ed9489ad749 | [
"MIT"
] | null | null | null | lib/mix/tasks/coh.install.ex | StareIntoTheBeard/coherence | 96607cefb1b6269c6e8dea6fab897ed9489ad749 | [
"MIT"
] | null | null | null | lib/mix/tasks/coh.install.ex | StareIntoTheBeard/coherence | 96607cefb1b6269c6e8dea6fab897ed9489ad749 | [
"MIT"
] | 1 | 2019-09-11T10:21:21.000Z | 2019-09-11T10:21:21.000Z | defmodule Mix.Tasks.Coh.Install do
use Mix.Task
import Macro, only: [camelize: 1, underscore: 1]
import Mix.Generator
import Mix.Ecto
# import Coherence.Config, only: [use_binary_id?: 0]
import Coherence.Mix.Utils
@shortdoc "Configure the Coherence Package"
@moduledoc """
Configure the Coherence Us... | 31.961569 | 155 | 0.643935 |
65cd3a9f5c26ab607bd0fb16b97e741ca423e49d | 1,098 | ex | Elixir | lib/inmana/supply.ex | amravazzi/nlw-inmana | ce46d245a87aff994c942ce365c19bfdbec54f15 | [
"MIT"
] | null | null | null | lib/inmana/supply.ex | amravazzi/nlw-inmana | ce46d245a87aff994c942ce365c19bfdbec54f15 | [
"MIT"
] | null | null | null | lib/inmana/supply.ex | amravazzi/nlw-inmana | ce46d245a87aff994c942ce365c19bfdbec54f15 | [
"MIT"
] | null | null | null | defmodule Inmana.Supply do
use Ecto.Schema
import Ecto.Changeset
alias Inmana.Restaurant
# module variable, maybe aka private variable
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
@required_params [:description, :expiration_date, :responsible, :restaurant_id]
@deri... | 28.153846 | 81 | 0.704918 |
65cd81146f2fc93a0af4872e70f53bf100c4262d | 1,765 | ex | Elixir | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/html_content.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/html_content.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/html_content.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.301887 | 125 | 0.708782 |
65cd904ada9836df9327ce0420bc0048126b50af | 161 | ex | Elixir | lib/foundation_phoenix_web/controllers/page_controller.ex | PanyPy/foundation_phoenix | 571aaa0b274c1428b4cf8e370777ae82c9167eb2 | [
"MIT"
] | null | null | null | lib/foundation_phoenix_web/controllers/page_controller.ex | PanyPy/foundation_phoenix | 571aaa0b274c1428b4cf8e370777ae82c9167eb2 | [
"MIT"
] | 2 | 2021-03-10T11:28:36.000Z | 2021-05-11T07:00:39.000Z | lib/foundation_phoenix_web/controllers/page_controller.ex | PanyPy/foundation_phoenix | 571aaa0b274c1428b4cf8e370777ae82c9167eb2 | [
"MIT"
] | null | null | null | defmodule FoundationPhoenixWeb.PageController do
use FoundationPhoenixWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end
| 20.125 | 48 | 0.770186 |
65cda44831deff7ea8a51681ce88bb7cc5e12175 | 572 | exs | Elixir | welcome/mix.exs | crsanti/codewars-elixir | 7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0 | [
"MIT"
] | 2 | 2021-08-18T11:31:31.000Z | 2021-08-24T00:25:08.000Z | welcome/mix.exs | crsanti/codewars-elixir | 7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0 | [
"MIT"
] | null | null | null | welcome/mix.exs | crsanti/codewars-elixir | 7e7d9bceea5db8b965ecc1e17be52bc2aeafa4f0 | [
"MIT"
] | null | null | null | defmodule Welcome.MixProject do
use Mix.Project
def project do
[
app: :welcome,
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
[
extra_app... | 19.724138 | 88 | 0.575175 |
65cda7b579c7ca097295cc522cc24de9e7746570 | 1,521 | ex | Elixir | clients/testing/lib/google_api/testing/v1/model/file_reference.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/testing/lib/google_api/testing/v1/model/file_reference.ex | mocknen/elixir-google-api | dac4877b5da2694eca6a0b07b3bd0e179e5f3b70 | [
"Apache-2.0"
] | null | null | null | clients/testing/lib/google_api/testing/v1/model/file_reference.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... | 31.6875 | 148 | 0.74096 |
65cdb0dcd7fb367c139534cb45eb5c18d495df9c | 725 | ex | Elixir | lib/brando/traits/creator.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 1 | 2020-04-26T09:53:02.000Z | 2020-04-26T09:53:02.000Z | lib/brando/traits/creator.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | 198 | 2019-08-20T16:16:07.000Z | 2020-07-03T15:42:07.000Z | lib/brando/traits/creator.ex | univers-agency/brando | 69c3c52498a3f64518da3522cd9f27294a52cc68 | [
"Apache-2.0"
] | null | null | null | defmodule Brando.Trait.Creator do
@moduledoc """
Automatically sets creator to user
"""
use Brando.Trait
alias Ecto.Changeset
@type changeset :: Changeset.t()
@type config :: list()
relations do
relation :creator, :belongs_to, module: Brando.Users.User, required: true
end
@doc """
Add creat... | 25 | 77 | 0.718621 |
65cdb10fdf5b72c60f44105bf266c73dfbbee5cb | 367 | exs | Elixir | priv/repo/seeds.exs | documents-org/documents.design-el | 6976254e175232afe5e913c29b04c13a86d2e9a2 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | documents-org/documents.design-el | 6976254e175232afe5e913c29b04c13a86d2e9a2 | [
"MIT"
] | null | null | null | priv/repo/seeds.exs | documents-org/documents.design-el | 6976254e175232afe5e913c29b04c13a86d2e9a2 | [
"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:
#
# DocumentsDesign.Repo.insert!(%DocumentsDesign.SomeSchema{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so ... | 30.583333 | 65 | 0.719346 |
65cdb8808e107208c0ffffd39ece2aae8ef9316e | 1,035 | ex | Elixir | charts_live/lib/charts_live/views/bar_view.ex | Refined-Process/charts_ex | 6d23eff5903496b7a4518a3208486a15a3354ae2 | [
"MIT"
] | null | null | null | charts_live/lib/charts_live/views/bar_view.ex | Refined-Process/charts_ex | 6d23eff5903496b7a4518a3208486a15a3354ae2 | [
"MIT"
] | null | null | null | charts_live/lib/charts_live/views/bar_view.ex | Refined-Process/charts_ex | 6d23eff5903496b7a4518a3208486a15a3354ae2 | [
"MIT"
] | null | null | null | defmodule ChartsLive.BarView do
@moduledoc """
View functions for rendering Bar charts
"""
use ChartsLive.ChartBehavior
alias Charts.Gradient
@doc """
The function used to generate X Axis labels
"""
def x_axis_labels(chart, grid_lines, offsetter) do
lines = Enum.map(grid_lines, &x_axis_column_l... | 22.021277 | 73 | 0.556522 |
65cdb8c679263cde27a589a0031e49a9494351de | 81,953 | ex | Elixir | clients/compute/lib/google_api/compute/v1/api/region_instance_group_managers.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/region_instance_group_managers.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/api/region_instance_group_managers.ex | ukrbublik/elixir-google-api | 364cec36bc76f60bec94cbcad34844367a29d174 | [
"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... | 52.601412 | 582 | 0.658536 |
65cdcc4f9fedb09fc50ae64fe570f36d6453a07c | 33 | ex | Elixir | lib/discovery/data.ex | mikehelmick/dicovery-prototype | f79c160221c1a74ea1c89b6223d1815ec4c0df7d | [
"Apache-2.0"
] | null | null | null | lib/discovery/data.ex | mikehelmick/dicovery-prototype | f79c160221c1a74ea1c89b6223d1815ec4c0df7d | [
"Apache-2.0"
] | 1 | 2021-03-10T11:53:06.000Z | 2021-03-10T11:53:06.000Z | lib/discovery/data.ex | mikehelmick/dicovery-prototype | f79c160221c1a74ea1c89b6223d1815ec4c0df7d | [
"Apache-2.0"
] | null | null | null | defmodule Discovery.Data do
end
| 8.25 | 27 | 0.818182 |
65ce2b3b83323a3939fb6e0a4bee104e5a331840 | 580 | ex | Elixir | web/views/changeset_view.ex | max-konin/a2billing-rest-api | 3f8430caa2b9cbedfbe842e81030c861aa25dd89 | [
"MIT"
] | 1 | 2017-08-01T04:31:38.000Z | 2017-08-01T04:31:38.000Z | web/views/changeset_view.ex | max-konin/a2billing-rest-api | 3f8430caa2b9cbedfbe842e81030c861aa25dd89 | [
"MIT"
] | null | null | null | web/views/changeset_view.ex | max-konin/a2billing-rest-api | 3f8430caa2b9cbedfbe842e81030c861aa25dd89 | [
"MIT"
] | 1 | 2020-05-05T15:21:59.000Z | 2020-05-05T15:21:59.000Z | defmodule A2billingRestApi.ChangesetView do
use A2billingRestApi.Web, :view
@doc """
Traverses and translates changeset errors.
See `Ecto.Changeset.traverse_errors/2` and
`A2billingRestApi.ErrorHelpers.translate_error/1` for more details.
"""
def translate_errors(changeset) do
Ecto.Changeset.travers... | 29 | 69 | 0.746552 |
65ce411159f15f677173574d18778cdcdcf3a2e9 | 832 | exs | Elixir | priv/repo/migrations/20170825232115_add_versions.exs | Apps-Team/conferencetools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | 2 | 2017-10-06T01:14:35.000Z | 2017-11-18T16:44:44.000Z | priv/repo/migrations/20170825232115_add_versions.exs | Apps-Team/conferencetools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | 6 | 2017-10-06T00:04:59.000Z | 2017-10-06T00:09:27.000Z | priv/repo/migrations/20170825232115_add_versions.exs | apps-team/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 1 | 2017-10-06T01:17:35.000Z | 2017-10-06T01:17:35.000Z | defmodule Repo.Migrations.AddVersions do
use Ecto.Migration
def change do
create table(:versions) do
add :event, :string, null: false, size: 10
add :item_type, :string, null: false
add :item_id, :integer
add :item_changes, :map, null: false
add :originator_id, refer... | 34.666667 | 103 | 0.649038 |
65ce562380c1a80b623088d0d2fda24726fa99e8 | 9,725 | ex | Elixir | apps/gitgud/lib/gitgud/schemas/user.ex | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | null | null | null | apps/gitgud/lib/gitgud/schemas/user.ex | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | null | null | null | apps/gitgud/lib/gitgud/schemas/user.ex | EdmondFrank/gitgud | 1952c16130564357aa6f23e35f48f19e3a50d4dd | [
"MIT"
] | null | null | null | defmodule GitGud.User do
@moduledoc """
User account schema and helper functions.
A user is an individual's account that owns repositories and can make new content.
"""
use Ecto.Schema
use Waffle.Ecto.Schema
import Ecto.Changeset
alias Ecto.Multi
alias GitGud.DB
alias GitGud.Account
alias Gi... | 31.169872 | 182 | 0.656144 |
65ce5a919b538d114fa9488cbac02adf0d240307 | 2,592 | ex | Elixir | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1_text_segment.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1_text_segment.ex | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p1beta1_text_segment.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... | 36 | 170 | 0.755015 |
65ce7a730328115ed3895b7250ccfa00fc461c89 | 959 | ex | Elixir | lib/taper/channel/store.ex | justinmcp/taper | 43b2dbc200ddf06526b50858551ce16114709e3d | [
"MIT"
] | 8 | 2020-10-12T14:12:04.000Z | 2022-03-09T15:56:02.000Z | lib/taper/channel/store.ex | justinmcp/taper | 43b2dbc200ddf06526b50858551ce16114709e3d | [
"MIT"
] | null | null | null | lib/taper/channel/store.ex | justinmcp/taper | 43b2dbc200ddf06526b50858551ce16114709e3d | [
"MIT"
] | null | null | null | defmodule Taper.Channel.Store do
use Phoenix.Channel
def join("taper:store:connect", _params, %{assigns: %{session_id: session_id}} = socket) do
Taper.Store.Depo.connect(session_id)
{:ok, %{id: session_id}, socket}
end
def join("taper:store:" <> id, _params, %{assigns: %{session_id: session_id}} = soc... | 30.935484 | 93 | 0.674661 |
65ce85ef8ec33da2100d197c6e1d779d97619432 | 46 | exs | Elixir | lib/mix/test/fixtures/configs/imports_recursive.exs | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 2 | 2018-11-15T06:38:14.000Z | 2018-11-17T18:03:14.000Z | lib/mix/test/fixtures/configs/imports_recursive.exs | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 1 | 2018-09-10T23:36:45.000Z | 2018-09-10T23:36:45.000Z | lib/mix/test/fixtures/configs/imports_recursive.exs | chulkilee/elixir | 699231dcad52916a76f38856cbd7cf7c7bdadc51 | [
"Apache-2.0"
] | 8 | 2018-02-20T18:30:53.000Z | 2019-06-18T14:23:31.000Z | use Mix.Config
import_config "recursive.exs"
| 11.5 | 29 | 0.804348 |
65ce8a440d297573806ec9ca9a23059a98f78e20 | 4,937 | ex | Elixir | apps/omg_api/lib/omg_api/monitor.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg_api/lib/omg_api/monitor.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | apps/omg_api/lib/omg_api/monitor.ex | kendricktan/elixir-omg | 834c103fd5c4b9e063c1d32b9b4e5728abb64009 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 31.246835 | 118 | 0.681588 |
65cea1514b0060b92d8b88197a38eeaed6220db6 | 656 | exs | Elixir | config/test.exs | imrinzzzz/reborn | eedd5104264c9ade37907f20956c06fc03a80646 | [
"MIT"
] | null | null | null | config/test.exs | imrinzzzz/reborn | eedd5104264c9ade37907f20956c06fc03a80646 | [
"MIT"
] | null | null | null | config/test.exs | imrinzzzz/reborn | eedd5104264c9ade37907f20956c06fc03a80646 | [
"MIT"
] | 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 :reborn, Reborn.Repo,
username: "postgres",
password: "postgres",
database: "reborn_test#{System.get_e... | 28.521739 | 65 | 0.746951 |
65cebd018056fb45fe5eb485e961d4194454359d | 2,438 | ex | Elixir | clients/tag_manager/lib/google_api/tag_manager/v2/model/gallery_reference.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/gallery_reference.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/tag_manager/lib/google_api/tag_manager/v2/model/gallery_reference.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... | 38.09375 | 134 | 0.698113 |
65cef4c5d9f19a187d4cdc8fe1226096a47f2d8e | 235 | exs | Elixir | test/elhex_delivery_test.exs | PanyPy/genserver_example | c0e3b0be16741359e31c3b17c053e29d46393b31 | [
"MIT"
] | null | null | null | test/elhex_delivery_test.exs | PanyPy/genserver_example | c0e3b0be16741359e31c3b17c053e29d46393b31 | [
"MIT"
] | null | null | null | test/elhex_delivery_test.exs | PanyPy/genserver_example | c0e3b0be16741359e31c3b17c053e29d46393b31 | [
"MIT"
] | null | null | null |
defmodule ElhexDeliveryTest do
use ExUnit.Case
doctest ElhexDelivery
test "application start" do
response = Application.start(:elhex_delivery)
assert response == {:error, {:already_started, :elhex_delivery}}
end
end
| 19.583333 | 68 | 0.744681 |
65cf16595b5bab46f9fb1d3aef34f8e553dbc686 | 562 | exs | Elixir | test/vutuv_web/controllers/api/follower_controller_test.exs | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 309 | 2016-05-03T17:16:23.000Z | 2022-03-01T09:30:22.000Z | test/vutuv_web/controllers/api/follower_controller_test.exs | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 662 | 2016-04-27T07:45:18.000Z | 2022-01-05T07:29:19.000Z | test/vutuv_web/controllers/api/follower_controller_test.exs | vutuv/vutuv | 174706cdaf28cef24e1cc06bec0884c25f2412be | [
"MIT"
] | 40 | 2016-04-27T07:46:22.000Z | 2021-12-31T05:54:34.000Z | defmodule VutuvWeb.Api.FollowerControllerTest do
use VutuvWeb.ConnCase
alias Vutuv.UserConnections
test "lists all of a user's followers", %{conn: conn} do
user = insert(:user)
follower_ids = Enum.map(insert_list(12, :user), & &1.id)
Enum.each(
follower_ids,
&UserConnections.create_user... | 28.1 | 95 | 0.686833 |
65cf2398c983d82198a21ad57dbfe8bb2b451e74 | 2,911 | ex | Elixir | lib/hue_sdk/discovery.ex | connorlay/hue_sdk | f69e038c7f6527277f2ef13c92eb10c5d98b6ba8 | [
"MIT"
] | 4 | 2021-03-22T16:50:55.000Z | 2021-07-09T11:42:08.000Z | lib/hue_sdk/discovery.ex | connorlay/hue_sdk | f69e038c7f6527277f2ef13c92eb10c5d98b6ba8 | [
"MIT"
] | null | null | null | lib/hue_sdk/discovery.ex | connorlay/hue_sdk | f69e038c7f6527277f2ef13c92eb10c5d98b6ba8 | [
"MIT"
] | null | null | null | defmodule HueSDK.Discovery do
@moduledoc """
Automatic discovery of Hue Bridge devices available on the local network.
See `HueSDK.Discovery.discover/2` for examples.
"""
alias HueSDK.API.Configuration
alias HueSDK.Bridge
@opts_schema [
ip_address: [
doc: "The IP address of the Hue Bridge, re... | 27.462264 | 145 | 0.672965 |
65cf3ffc519101af5519463c4311c32c48b4a43f | 4,083 | ex | Elixir | clients/dataproc/lib/google_api/dataproc/v1/model/basic_yarn_autoscaling_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/dataproc/lib/google_api/dataproc/v1/model/basic_yarn_autoscaling_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/dataproc/lib/google_api/dataproc/v1/model/basic_yarn_autoscaling_config.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... | 69.20339 | 590 | 0.757776 |
65cf56f18af96f6c4e3a6eee21c37ab60c040344 | 708 | ex | Elixir | avatars/lib/avatars_web/gettext.ex | derailed/ex_ray_tracers | a687baedde8c472ce426afba02902a336a403a7f | [
"Apache-2.0"
] | 9 | 2017-10-29T17:35:14.000Z | 2020-04-19T14:06:50.000Z | avatars/lib/avatars_web/gettext.ex | derailed/ex_ray_tracers | a687baedde8c472ce426afba02902a336a403a7f | [
"Apache-2.0"
] | null | null | null | avatars/lib/avatars_web/gettext.ex | derailed/ex_ray_tracers | a687baedde8c472ce426afba02902a336a403a7f | [
"Apache-2.0"
] | null | null | null | defmodule AvatarsWeb.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 AvatarsWeb.Gettext
# Simple translation
gettext "Here is t... | 28.32 | 72 | 0.680791 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.