hexsha string | size int64 | ext string | lang string | max_stars_repo_path string | max_stars_repo_name string | max_stars_repo_head_hexsha string | max_stars_repo_licenses list | max_stars_count int64 | max_stars_repo_stars_event_min_datetime string | max_stars_repo_stars_event_max_datetime string | max_issues_repo_path string | max_issues_repo_name string | max_issues_repo_head_hexsha string | max_issues_repo_licenses list | max_issues_count int64 | max_issues_repo_issues_event_min_datetime string | max_issues_repo_issues_event_max_datetime string | max_forks_repo_path string | max_forks_repo_name string | max_forks_repo_head_hexsha string | max_forks_repo_licenses list | max_forks_count int64 | max_forks_repo_forks_event_min_datetime string | max_forks_repo_forks_event_max_datetime string | content string | avg_line_length float64 | max_line_length int64 | alphanum_fraction float64 | qsc_code_num_words_quality_signal int64 | qsc_code_num_chars_quality_signal float64 | qsc_code_mean_word_length_quality_signal float64 | qsc_code_frac_words_unique_quality_signal float64 | qsc_code_frac_chars_top_2grams_quality_signal float64 | qsc_code_frac_chars_top_3grams_quality_signal float64 | qsc_code_frac_chars_top_4grams_quality_signal float64 | qsc_code_frac_chars_dupe_5grams_quality_signal float64 | qsc_code_frac_chars_dupe_6grams_quality_signal float64 | qsc_code_frac_chars_dupe_7grams_quality_signal float64 | qsc_code_frac_chars_dupe_8grams_quality_signal float64 | qsc_code_frac_chars_dupe_9grams_quality_signal float64 | qsc_code_frac_chars_dupe_10grams_quality_signal float64 | qsc_code_frac_chars_replacement_symbols_quality_signal float64 | qsc_code_frac_chars_digital_quality_signal float64 | qsc_code_frac_chars_whitespace_quality_signal float64 | qsc_code_size_file_byte_quality_signal float64 | qsc_code_num_lines_quality_signal float64 | qsc_code_num_chars_line_max_quality_signal float64 | qsc_code_num_chars_line_mean_quality_signal float64 | qsc_code_frac_chars_alphabet_quality_signal float64 | qsc_code_frac_chars_comments_quality_signal float64 | qsc_code_cate_xml_start_quality_signal float64 | qsc_code_frac_lines_dupe_lines_quality_signal float64 | qsc_code_cate_autogen_quality_signal float64 | qsc_code_frac_lines_long_string_quality_signal float64 | qsc_code_frac_chars_string_length_quality_signal float64 | qsc_code_frac_chars_long_word_length_quality_signal float64 | qsc_code_frac_lines_string_concat_quality_signal float64 | qsc_code_cate_encoded_data_quality_signal float64 | qsc_code_frac_chars_hex_words_quality_signal float64 | qsc_code_frac_lines_prompt_comments_quality_signal float64 | qsc_code_frac_lines_assert_quality_signal float64 | qsc_codepython_cate_ast_quality_signal float64 | qsc_codepython_frac_lines_func_ratio_quality_signal float64 | qsc_codepython_cate_var_zero_quality_signal bool | qsc_codepython_frac_lines_pass_quality_signal float64 | qsc_codepython_frac_lines_import_quality_signal float64 | qsc_codepython_frac_lines_simplefunc_quality_signal float64 | qsc_codepython_score_lines_no_logic_quality_signal float64 | qsc_codepython_frac_lines_print_quality_signal float64 | qsc_code_num_words int64 | qsc_code_num_chars int64 | qsc_code_mean_word_length int64 | qsc_code_frac_words_unique null | qsc_code_frac_chars_top_2grams int64 | qsc_code_frac_chars_top_3grams int64 | qsc_code_frac_chars_top_4grams int64 | qsc_code_frac_chars_dupe_5grams int64 | qsc_code_frac_chars_dupe_6grams int64 | qsc_code_frac_chars_dupe_7grams int64 | qsc_code_frac_chars_dupe_8grams int64 | qsc_code_frac_chars_dupe_9grams int64 | qsc_code_frac_chars_dupe_10grams int64 | qsc_code_frac_chars_replacement_symbols int64 | qsc_code_frac_chars_digital int64 | qsc_code_frac_chars_whitespace int64 | qsc_code_size_file_byte int64 | qsc_code_num_lines int64 | qsc_code_num_chars_line_max int64 | qsc_code_num_chars_line_mean int64 | qsc_code_frac_chars_alphabet int64 | qsc_code_frac_chars_comments int64 | qsc_code_cate_xml_start int64 | qsc_code_frac_lines_dupe_lines int64 | qsc_code_cate_autogen int64 | qsc_code_frac_lines_long_string int64 | qsc_code_frac_chars_string_length int64 | qsc_code_frac_chars_long_word_length int64 | qsc_code_frac_lines_string_concat null | qsc_code_cate_encoded_data int64 | qsc_code_frac_chars_hex_words int64 | qsc_code_frac_lines_prompt_comments int64 | qsc_code_frac_lines_assert int64 | qsc_codepython_cate_ast int64 | qsc_codepython_frac_lines_func_ratio int64 | qsc_codepython_cate_var_zero int64 | qsc_codepython_frac_lines_pass int64 | qsc_codepython_frac_lines_import int64 | qsc_codepython_frac_lines_simplefunc int64 | qsc_codepython_score_lines_no_logic int64 | qsc_codepython_frac_lines_print int64 | effective string | hits int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e7020e502b035d2c5ae9e585989d70618297b9bb | 3,828 | py | Python | src/morphforge/simulation/neuron/objects/obj_cclamp.py | mikehulluk/morphforge | 2a95096f144ed4ea487decb735ce66706357d3c7 | [
"BSD-2-Clause"
] | 1 | 2021-01-21T11:31:59.000Z | 2021-01-21T11:31:59.000Z | src/morphforge/simulation/neuron/objects/obj_cclamp.py | mikehulluk/morphforge | 2a95096f144ed4ea487decb735ce66706357d3c7 | [
"BSD-2-Clause"
] | null | null | null | src/morphforge/simulation/neuron/objects/obj_cclamp.py | mikehulluk/morphforge | 2a95096f144ed4ea487decb735ce66706357d3c7 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# ---------------------------------------------------------------------
# Copyright (c) 2012 Michael Hull.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are m... | 40.294737 | 101 | 0.71395 | 419 | 3,828 | 6.427208 | 0.439141 | 0.057185 | 0.071296 | 0.06684 | 0.176012 | 0.098032 | 0.079465 | 0.079465 | 0.079465 | 0.079465 | 0 | 0.001601 | 0.183908 | 3,828 | 94 | 102 | 40.723404 | 0.860435 | 0.394723 | 0 | 0.136364 | 0 | 0 | 0.020988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0.045455 | 0.227273 | 0.068182 | 0.590909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e7192f643c7ed6cd39f57f6ea1446ff41dd9b806 | 157 | py | Python | loop control statements/break_statements.py | shashikant-sk/python_learning | 91059fe50c8f6a321d393680dc865c24c39a2a33 | [
"MIT"
] | null | null | null | loop control statements/break_statements.py | shashikant-sk/python_learning | 91059fe50c8f6a321d393680dc865c24c39a2a33 | [
"MIT"
] | null | null | null | loop control statements/break_statements.py | shashikant-sk/python_learning | 91059fe50c8f6a321d393680dc865c24c39a2a33 | [
"MIT"
] | null | null | null | # Break Transfers control to the statements right after the loops
x = "hey shashikant"
for i in x :
if i ==".":
break
print(i,end=" ")
| 19.625 | 65 | 0.585987 | 23 | 157 | 4 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.305732 | 157 | 8 | 66 | 19.625 | 0.844037 | 0.401274 | 0 | 0 | 0 | 0 | 0.172043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e71a9c5dba7b42898bca3e8c26d1a757bdd52147 | 960 | py | Python | quelfilm/engine.py | thomas-marquis/quelfilm-chatbot-app | 23cb612f10cb6635feff65025001b96c0ad23097 | [
"MIT"
] | null | null | null | quelfilm/engine.py | thomas-marquis/quelfilm-chatbot-app | 23cb612f10cb6635feff65025001b96c0ad23097 | [
"MIT"
] | null | null | null | quelfilm/engine.py | thomas-marquis/quelfilm-chatbot-app | 23cb612f10cb6635feff65025001b96c0ad23097 | [
"MIT"
] | null | null | null | import os
from nlp_tools.preprocessing import Preprocessing
from nlp_tools.loaders import MdLoader
from nlp_tools.representations import MergedMatrixRepresentation
from nlp_tools.classifiers import ClassificationProcessor, NaiveBayseTfIdfClassifier
from nlp_tools.utils import get_random_message
from quelfilm.settings ... | 33.103448 | 84 | 0.78125 | 100 | 960 | 7.31 | 0.43 | 0.04788 | 0.082079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153125 | 960 | 28 | 85 | 34.285714 | 0.899139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.318182 | 0 | 0.590909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
e75066d0247920352490016ec86a69f7eb23d67e | 397 | py | Python | accounts/views.py | edumaxsantos/ecommerceedu | ce164a8416c4ec5c81a10c34dc86a657fd4ed02a | [
"CC0-1.0"
] | null | null | null | accounts/views.py | edumaxsantos/ecommerceedu | ce164a8416c4ec5c81a10c34dc86a657fd4ed02a | [
"CC0-1.0"
] | null | null | null | accounts/views.py | edumaxsantos/ecommerceedu | ce164a8416c4ec5c81a10c34dc86a657fd4ed02a | [
"CC0-1.0"
] | null | null | null | from django.shortcuts import render
from django.views.generic import CreateView
from django.core.urlresolvers import reverse_lazy
from .models import User
from .forms import UserAdminCreationForm
class RegisterView(CreateView):
model = User
template_name = 'accounts/register.html'
form_class = UserAdminCreationFo... | 22.055556 | 49 | 0.816121 | 48 | 397 | 6.625 | 0.625 | 0.09434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118388 | 397 | 17 | 50 | 23.352941 | 0.908571 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
e784d6288dc2b5fa5e32d2c3d282b833b919a490 | 1,369 | py | Python | reviews/views.py | YaroslavChyhryn/EshopReviewAPI | da121dfd02e417ac15da246ef7bfad4912926f1f | [
"MIT"
] | null | null | null | reviews/views.py | YaroslavChyhryn/EshopReviewAPI | da121dfd02e417ac15da246ef7bfad4912926f1f | [
"MIT"
] | null | null | null | reviews/views.py | YaroslavChyhryn/EshopReviewAPI | da121dfd02e417ac15da246ef7bfad4912926f1f | [
"MIT"
] | null | null | null | from .serializers import ReviewSerializer, ShopSerializer, UserReviewSerializer
from rest_framework import viewsets
from rest_framework.pagination import LimitOffsetPagination
from .models import ReviewModel, ShopModel
from rest_framework.generics import ListAPIView
from rest_framework import filters
from django.db.mod... | 33.390244 | 107 | 0.792549 | 141 | 1,369 | 7.517731 | 0.432624 | 0.037736 | 0.080189 | 0.065094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133674 | 1,369 | 40 | 108 | 34.225 | 0.893761 | 0.013879 | 0 | 0 | 0 | 0 | 0.044978 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.357143 | 0 | 0.928571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
e7ac32117735a60506938d53cce0801b3da04a67 | 636 | py | Python | molecule/common/tests/test_containerd.py | incubateur-pe/containerd | ebb4736ad7d26bad6fbf01f1fc041b98e7da1ab6 | [
"BSD-3-Clause"
] | 1 | 2021-01-08T09:11:17.000Z | 2021-01-08T09:11:17.000Z | molecule/common/tests/test_containerd.py | incubateur-pe/containerd | ebb4736ad7d26bad6fbf01f1fc041b98e7da1ab6 | [
"BSD-3-Clause"
] | null | null | null | molecule/common/tests/test_containerd.py | incubateur-pe/containerd | ebb4736ad7d26bad6fbf01f1fc041b98e7da1ab6 | [
"BSD-3-Clause"
] | 1 | 2021-11-05T04:06:50.000Z | 2021-11-05T04:06:50.000Z | """Role testing files using testinfra."""
def test_containerd_installed(host):
containerd = host.file("/usr/bin/containerd")
assert containerd.exists
assert containerd.user == "root"
assert containerd.group == "root"
assert containerd.mode == 0o755
def test_containerd_service(host):
containe... | 27.652174 | 53 | 0.727987 | 78 | 636 | 5.807692 | 0.474359 | 0.211921 | 0.112583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026022 | 0.154088 | 636 | 22 | 54 | 28.909091 | 0.815985 | 0.055031 | 0 | 0 | 0 | 0 | 0.176471 | 0.045378 | 0 | 0 | 0 | 0 | 0.6 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e7b11cf42d83a04ced912787a4e8e28837a4880b | 926 | py | Python | arm_prosthesis/external_communication/models/dto/save_gesture_dto.py | paulrozhkin/arm_prosthesis_raspberry | a643dc84109f1d516fa2ca50414f95f408d6da7d | [
"MIT"
] | 2 | 2021-11-08T01:52:36.000Z | 2021-11-08T01:52:38.000Z | arm_prosthesis/external_communication/models/dto/save_gesture_dto.py | paulrozhkin/arm_prosthesis_raspberry | a643dc84109f1d516fa2ca50414f95f408d6da7d | [
"MIT"
] | null | null | null | arm_prosthesis/external_communication/models/dto/save_gesture_dto.py | paulrozhkin/arm_prosthesis_raspberry | a643dc84109f1d516fa2ca50414f95f408d6da7d | [
"MIT"
] | 1 | 2020-11-08T16:45:23.000Z | 2020-11-08T16:45:23.000Z | from arm_prosthesis.external_communication.models.dto.entity_dto import EntityDto
from arm_prosthesis.external_communication.models.dto.gesture_dto import GestureDto
from gestures_pb2 import SaveGesture
class SaveGestureDto(EntityDto):
def __init__(self):
self._time_sync = 0
self._gestur... | 30.866667 | 86 | 0.717063 | 106 | 926 | 5.877358 | 0.358491 | 0.096308 | 0.089888 | 0.080257 | 0.150883 | 0.150883 | 0.150883 | 0 | 0 | 0 | 0 | 0.002762 | 0.218143 | 926 | 29 | 87 | 31.931034 | 0.857735 | 0 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.142857 | 0.095238 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e7b1657bf0388f51ddf9f47fff6ecd8af0db703c | 552 | py | Python | soke-scripts/process/load.py | Wilfongjt/soke | cd65ca5b1258875b5b921ac518ad90abc5a69bd4 | [
"MIT"
] | null | null | null | soke-scripts/process/load.py | Wilfongjt/soke | cd65ca5b1258875b5b921ac518ad90abc5a69bd4 | [
"MIT"
] | 16 | 2019-06-27T11:00:18.000Z | 2022-01-22T08:43:34.000Z | soke-scripts/process/load.py | Wilfongjt/soke | cd65ca5b1258875b5b921ac518ad90abc5a69bd4 | [
"MIT"
] | null | null | null | from process.process import Process
class Load(Process):
def __init__(self, settings=None):
Process.__init__(self, settings=settings)
# import_file_name is full local file name or url to source
#self.import_file_list=import_file_list
#self.dataframe=None
#self.dictionary={}
... | 26.285714 | 68 | 0.634058 | 67 | 552 | 4.970149 | 0.373134 | 0.09009 | 0.126126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268116 | 552 | 21 | 69 | 26.285714 | 0.824257 | 0.286232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e7b93e12016619ebd7a19bb12d285c07dc278eab | 299 | py | Python | testing/micro-bench/server/app.py | jgrunert/Microservice-Fault-Injection | 805a79f590bc287f897c5ef43d067a694a29404a | [
"Apache-2.0"
] | 5 | 2017-07-24T14:48:03.000Z | 2021-04-14T08:09:47.000Z | testing/micro-bench/server/app.py | orcas-elite/Microservice-Fault-Injection | 805a79f590bc287f897c5ef43d067a694a29404a | [
"Apache-2.0"
] | null | null | null | testing/micro-bench/server/app.py | orcas-elite/Microservice-Fault-Injection | 805a79f590bc287f897c5ef43d067a694a29404a | [
"Apache-2.0"
] | 2 | 2017-04-16T03:48:28.000Z | 2019-06-11T13:24:05.000Z | import random
import string
from flask import Flask, jsonify
app = Flask(__name__)
@app.route('/')
def root():
return jsonify(result=''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(2 ** 10)))
if __name__ == '__main__':
app.run(debug=False, host='0.0.0.0')
| 18.6875 | 113 | 0.688963 | 44 | 299 | 4.363636 | 0.681818 | 0.03125 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027559 | 0.150502 | 299 | 15 | 114 | 19.933333 | 0.728346 | 0 | 0 | 0 | 0 | 0 | 0.053512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 2 |
e7d947805ddcfcbf8a9bc446871dcf27e6d31dfb | 992 | py | Python | webdriver_test_tools/testcase/ie.py | connordelacruz/webdriver-test-tools | fe6906839e4423562c6d4d0aa6b10b2ea90bff6b | [
"MIT"
] | 5 | 2018-07-02T13:18:59.000Z | 2019-10-14T04:55:31.000Z | webdriver_test_tools/testcase/ie.py | connordelacruz/webdriver-test-tools | fe6906839e4423562c6d4d0aa6b10b2ea90bff6b | [
"MIT"
] | 1 | 2019-10-16T20:54:25.000Z | 2019-10-16T20:54:25.000Z | webdriver_test_tools/testcase/ie.py | connordelacruz/webdriver-test-tools | fe6906839e4423562c6d4d0aa6b10b2ea90bff6b | [
"MIT"
] | 1 | 2019-09-03T05:29:41.000Z | 2019-09-03T05:29:41.000Z | from .webdriver import *
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
class IETestCase(WebDriverTestCase):
"""Implementation of :class:`WebDriverTestCase
<webdriver_test_tools.testcase.webdriver.WebDriverTestCase>` using Internet
Explorer webdriver
`Driver info
<... | 34.206897 | 79 | 0.728831 | 105 | 992 | 6.742857 | 0.647619 | 0.036723 | 0.050847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002451 | 0.177419 | 992 | 28 | 80 | 35.428571 | 0.865196 | 0.554435 | 0 | 0 | 0 | 0 | 0.071611 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
e7df1d86b3133521a08365288d46ec5fd8ca03a5 | 2,438 | py | Python | tests/functional/adapter/test_basic.py | dbt-labs/dbt-snowflake | e8124491efb9750b811bdef14ec4d1ecbebac5e8 | [
"Apache-2.0"
] | 51 | 2021-10-03T09:15:33.000Z | 2022-03-30T20:13:53.000Z | tests/functional/adapter/test_basic.py | dbt-labs/dbt-snowflake | e8124491efb9750b811bdef14ec4d1ecbebac5e8 | [
"Apache-2.0"
] | 69 | 2021-10-07T20:25:32.000Z | 2022-03-31T12:21:32.000Z | tests/functional/adapter/test_basic.py | dbt-labs/dbt-snowflake | e8124491efb9750b811bdef14ec4d1ecbebac5e8 | [
"Apache-2.0"
] | 25 | 2021-10-31T00:06:38.000Z | 2022-03-21T08:08:29.000Z | import pytest
from dbt.tests.adapter.basic.test_base import BaseSimpleMaterializations
from dbt.tests.adapter.basic.test_singular_tests import BaseSingularTests
from dbt.tests.adapter.basic.test_singular_tests_ephemeral import (
BaseSingularTestsEphemeral,
)
from dbt.tests.adapter.basic.test_empty import BaseEmpty... | 30.098765 | 84 | 0.771534 | 256 | 2,438 | 7.167969 | 0.328125 | 0.045777 | 0.078474 | 0.124251 | 0.246322 | 0.190736 | 0.083924 | 0.044687 | 0 | 0 | 0 | 0.000485 | 0.153815 | 2,438 | 80 | 85 | 30.475 | 0.888997 | 0 | 0 | 0.210526 | 0 | 0 | 0.036505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.157895 | 0.245614 | 0.052632 | 0.54386 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
e7dffaa7426c1df2aa7900970e78baa99254d658 | 703 | py | Python | example/todos/models.py | pawnhearts/django-reactive | 34d8a27e6b1ee1668e8dce78c5db9596f99f9fab | [
"MIT"
] | 21 | 2018-12-08T13:56:34.000Z | 2020-10-24T20:52:12.000Z | example/todos/models.py | pawnhearts/django-reactive | 34d8a27e6b1ee1668e8dce78c5db9596f99f9fab | [
"MIT"
] | 11 | 2021-03-01T05:25:11.000Z | 2022-03-11T03:26:17.000Z | example/todos/models.py | pawnhearts/django-reactive | 34d8a27e6b1ee1668e8dce78c5db9596f99f9fab | [
"MIT"
] | 5 | 2019-01-08T00:10:19.000Z | 2020-05-28T13:46:28.000Z | from django.db import models
from django_reactive.fields import ReactJSONSchemaField
from .constants import TODO_SCHEMA, TODO_UI_SCHEMA, set_task_types
class Todo(models.Model):
"""
A collection of task lists for a todo.
"""
name = models.CharField(max_length=255)
task_lists = ReactJSONSchemaFi... | 23.433333 | 79 | 0.684211 | 93 | 703 | 4.967742 | 0.462366 | 0.064935 | 0.051948 | 0.077922 | 0.134199 | 0.134199 | 0 | 0 | 0 | 0 | 0 | 0.010969 | 0.221906 | 703 | 29 | 80 | 24.241379 | 0.833638 | 0.162162 | 0 | 0.133333 | 0 | 0 | 0.060932 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
99da10e4a4341d3aae58e60c954bbc54436fbff8 | 109 | py | Python | Programmers/src/12934/solution.py | lstar2397/algorithms | 686ea882079e26111f86b5bd5a7ab1b14ccf0fa2 | [
"MIT"
] | null | null | null | Programmers/src/12934/solution.py | lstar2397/algorithms | 686ea882079e26111f86b5bd5a7ab1b14ccf0fa2 | [
"MIT"
] | null | null | null | Programmers/src/12934/solution.py | lstar2397/algorithms | 686ea882079e26111f86b5bd5a7ab1b14ccf0fa2 | [
"MIT"
] | null | null | null | def solution(n):
x = n ** 0.5
if x == int(x):
return (x + 1) ** 2
else:
return -1 | 18.166667 | 27 | 0.394495 | 18 | 109 | 2.388889 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080645 | 0.431193 | 109 | 6 | 28 | 18.166667 | 0.612903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
99dbce18e42c7fc6a776455c254a6db45fe5debd | 97 | py | Python | coders/curso_python/fundamentos_projeto/area_circulo_v2.py | flaviogf/Cursos | 2b120dbcd24a907121f58482fdcdfa01b164872c | [
"MIT"
] | 2 | 2021-02-20T23:50:07.000Z | 2021-08-15T03:04:35.000Z | coders/curso_python/fundamentos_projeto/area_circulo_v2.py | flaviogf/Cursos | 2b120dbcd24a907121f58482fdcdfa01b164872c | [
"MIT"
] | 18 | 2019-08-07T02:33:00.000Z | 2021-03-18T22:52:38.000Z | coders/curso_python/fundamentos_projeto/area_circulo_v2.py | flaviogf/Cursos | 2b120dbcd24a907121f58482fdcdfa01b164872c | [
"MIT"
] | 2 | 2020-09-28T13:00:09.000Z | 2021-12-30T12:21:08.000Z | #!/usr/local/bin/python3
from math import pi
raio = 15
area = pi * raio**2
print(f'Area {area}')
| 16.166667 | 24 | 0.670103 | 18 | 97 | 3.611111 | 0.777778 | 0.184615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0.154639 | 97 | 5 | 25 | 19.4 | 0.743902 | 0.237113 | 0 | 0 | 0 | 0 | 0.150685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
99eb610693bfd96ee9c96ac997f2d3f59ffdf7ad | 2,133 | py | Python | kratos/lib.py | IanBoyanZhang/kratos | 4865e71e657c770fdc86528fcd56918e6f2103a1 | [
"BSD-2-Clause"
] | 39 | 2019-10-07T16:42:00.000Z | 2022-03-31T20:33:28.000Z | kratos/lib.py | IanBoyanZhang/kratos | 4865e71e657c770fdc86528fcd56918e6f2103a1 | [
"BSD-2-Clause"
] | 164 | 2019-06-29T03:43:19.000Z | 2021-11-16T06:37:13.000Z | kratos/lib.py | IanBoyanZhang/kratos | 4865e71e657c770fdc86528fcd56918e6f2103a1 | [
"BSD-2-Clause"
] | 11 | 2019-07-13T19:24:30.000Z | 2022-01-21T22:52:18.000Z | import _kratos
from .generator import Generator
class SinglePortSRAM(Generator):
def __init__(self, macro_name: str, data_width: int, addr_width: int,
partial_write: bool = False, is_clone=False, sram_def=None):
if sram_def is None:
self.sram = _kratos.lib.SinglePortSRAM(Gener... | 29.219178 | 78 | 0.60572 | 246 | 2,133 | 4.99187 | 0.235772 | 0.078176 | 0.114007 | 0.131922 | 0.254072 | 0.074919 | 0.074919 | 0 | 0 | 0 | 0 | 0 | 0.319737 | 2,133 | 72 | 79 | 29.625 | 0.846313 | 0.061416 | 0 | 0.226415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 1 | 0.226415 | false | 0 | 0.037736 | 0.188679 | 0.490566 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
8204329e8a3b5a9adaf4fddfcbb18d252468850c | 55 | py | Python | codenames/models/yolov2/__init__.py | vladimir-tikhonov/codenames_ai | c8ebedda75024fd5b7a1e00500a22c08b6d0c4f7 | [
"ISC"
] | null | null | null | codenames/models/yolov2/__init__.py | vladimir-tikhonov/codenames_ai | c8ebedda75024fd5b7a1e00500a22c08b6d0c4f7 | [
"ISC"
] | 1 | 2022-03-19T09:45:56.000Z | 2022-03-19T10:06:20.000Z | codenames/models/yolov2/__init__.py | vladimir-tikhonov/codenames_ai | c8ebedda75024fd5b7a1e00500a22c08b6d0c4f7 | [
"ISC"
] | null | null | null | from .yolov2 import YoloV2
__all__ = [
'YoloV2'
]
| 9.166667 | 26 | 0.636364 | 6 | 55 | 5.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 0.254545 | 55 | 5 | 27 | 11 | 0.682927 | 0 | 0 | 0 | 0 | 0 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
822729fa8a13f2e0d83ac49e2ee2431c6dd8cb88 | 642 | py | Python | auditor/auditor/config.py | ravirahman/sancus | 6563852b98edeb1068574e2d99e1fc18b815bee3 | [
"MIT"
] | 2 | 2022-03-17T04:50:20.000Z | 2022-03-17T04:51:31.000Z | auditor/auditor/config.py | ravirahman/sancus | 6563852b98edeb1068574e2d99e1fc18b815bee3 | [
"MIT"
] | null | null | null | auditor/auditor/config.py | ravirahman/sancus | 6563852b98edeb1068574e2d99e1fc18b815bee3 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from decimal import Decimal
from common.config import (
BTCProxyConfig,
GRPCServerConfig,
IPFSConfig,
SQLAlchemyConfig,
W3Config,
)
@dataclass(frozen=True)
class WebauthnConfig:
rp_name: str
rp_id: str
origin: str
@dataclass(frozen=True)
class Audit... | 20.709677 | 45 | 0.764798 | 68 | 642 | 6.970588 | 0.573529 | 0.063291 | 0.080169 | 0.101266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005758 | 0.188474 | 642 | 30 | 46 | 21.4 | 0.904031 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.12 | 0 | 0.68 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
82318c0736a1177c13d055ac5dcc3f7479e697df | 2,928 | py | Python | log_generator/es_settings.py | DobyLov/loggenerator | d1889f38b2e8fc84a1f047d65f00db003d9ab0cd | [
"MIT"
] | null | null | null | log_generator/es_settings.py | DobyLov/loggenerator | d1889f38b2e8fc84a1f047d65f00db003d9ab0cd | [
"MIT"
] | 2 | 2020-05-01T19:51:20.000Z | 2020-05-01T20:59:38.000Z | log_generator/es_settings.py | DobyLov/loggenerator | d1889f38b2e8fc84a1f047d65f00db003d9ab0cd | [
"MIT"
] | null | null | null | # es_settings
index_template = {
"index_patterns": ["loggen-*"],
"settings": {
"number_of_shards": 1,
"number_of_replicas": 0,
"index.lifecycle.name": "ilm_loggen",
"index.lifecycle.rollover_alias": "loggen_rollov"
}
}
test_index_template = {
"index_patterns": ["loggen-*"],
"settings": {
... | 15.827027 | 53 | 0.414617 | 222 | 2,928 | 5.261261 | 0.27027 | 0.082192 | 0.143836 | 0.215753 | 0.708904 | 0.708904 | 0.640411 | 0.640411 | 0.585616 | 0.113014 | 0 | 0.025457 | 0.382855 | 2,928 | 184 | 54 | 15.913043 | 0.620919 | 0.013661 | 0 | 0.427746 | 0 | 0 | 0.376128 | 0.020819 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8233db2e2752fa0ac130b0f5f6c246a7b12432db | 491 | py | Python | puchkidb/puchkidb_cli/commands/show.py | triump0870/puchkidb | ddbf5aa981ea447bdccc80477e35ca8bf0c4d65f | [
"MIT"
] | null | null | null | puchkidb/puchkidb_cli/commands/show.py | triump0870/puchkidb | ddbf5aa981ea447bdccc80477e35ca8bf0c4d65f | [
"MIT"
] | 1 | 2021-06-01T23:17:09.000Z | 2021-06-01T23:17:09.000Z | puchkidb/puchkidb_cli/commands/show.py | triump0870/puchkidb | ddbf5aa981ea447bdccc80477e35ca8bf0c4d65f | [
"MIT"
] | null | null | null | from json import dumps
from .base import Base
class Show(Base):
"""Show the databases and the tables using this command.
Usage:
puchkidb show [options]
options:
dbs: show all the databases in the server
tables: show all the tables inside a database
Example:
puchki... | 22.318182 | 99 | 0.637475 | 65 | 491 | 4.8 | 0.6 | 0.076923 | 0.064103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002833 | 0.281059 | 491 | 21 | 100 | 23.380952 | 0.88102 | 0.466395 | 0 | 0 | 0 | 0 | 0.215247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
8240e6b8e649a664c9a346e0a54bb98dd97de851 | 2,921 | py | Python | cogs/admin.py | staciax/ValorantStoreChecker-discord-bot | 57e6ac9514e3a08e8f697b558e56a8c31d2b87c6 | [
"MIT"
] | 37 | 2022-01-25T11:48:03.000Z | 2022-03-31T00:45:46.000Z | cogs/admin.py | staciax/ValorantStoreChecker-discord-bot | 57e6ac9514e3a08e8f697b558e56a8c31d2b87c6 | [
"MIT"
] | 19 | 2022-01-26T04:23:32.000Z | 2022-03-30T11:58:21.000Z | cogs/admin.py | staciax/ValorantStoreChecker-discord-bot | 57e6ac9514e3a08e8f697b558e56a8c31d2b87c6 | [
"MIT"
] | 50 | 2022-01-24T20:55:18.000Z | 2022-03-29T03:40:20.000Z | import discord
from discord.ext import commands
class Admin(commands.Cog):
"""Error handler"""
def __init__(self, bot: commands.Bot) -> None:
self.bot = bot
@commands.command()
# @commands.is_owner()
async def sync(self, ctx: commands.Context, sync_type: str = None) -> None:
if s... | 42.955882 | 158 | 0.599795 | 362 | 2,921 | 4.754144 | 0.220994 | 0.052876 | 0.057525 | 0.037188 | 0.764672 | 0.761185 | 0.720511 | 0.676351 | 0.676351 | 0.591517 | 0 | 0.042636 | 0.293393 | 2,921 | 68 | 159 | 42.955882 | 0.791182 | 0.019172 | 0 | 0.444444 | 0 | 0.037037 | 0.20007 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0 | 0.037037 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8243d684d9321d16b30613bf6199c1a74702ccfa | 2,271 | py | Python | stubs.min/Autodesk/Revit/DB/__init___parts/Sweep.py | ricardyn/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | 1 | 2021-02-02T13:39:16.000Z | 2021-02-02T13:39:16.000Z | stubs.min/Autodesk/Revit/DB/__init___parts/Sweep.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | stubs.min/Autodesk/Revit/DB/__init___parts/Sweep.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | class Sweep(GenericForm,IDisposable):
""" A sweep solid or void form. """
def Dispose(self):
""" Dispose(self: Element,A_0: bool) """
pass
def getBoundingBox(self,*args):
""" getBoundingBox(self: Element,view: View) -> BoundingBoxXYZ """
pass
def ReleaseUnmanagedResources(self,*args):
""" Release... | 32.913043 | 215 | 0.699692 | 268 | 2,271 | 5.705224 | 0.279851 | 0.117724 | 0.070634 | 0.094179 | 0.293656 | 0.293656 | 0.293656 | 0.293656 | 0.293656 | 0.293656 | 0 | 0.002112 | 0.166006 | 2,271 | 68 | 216 | 33.397059 | 0.805174 | 0.259357 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
82447bef0ab34df2cafa1be7e992c44c57f26e31 | 191 | py | Python | hyk/information/models/info_rutine.py | morwen1/hack_your_body | d4156d4fbe2dd4123d5b5bceef451803a50a39f8 | [
"MIT"
] | null | null | null | hyk/information/models/info_rutine.py | morwen1/hack_your_body | d4156d4fbe2dd4123d5b5bceef451803a50a39f8 | [
"MIT"
] | null | null | null | hyk/information/models/info_rutine.py | morwen1/hack_your_body | d4156d4fbe2dd4123d5b5bceef451803a50a39f8 | [
"MIT"
] | null | null | null | #django
from django.db import models
#utils
from hyk.utils.models.abstract_hyb import HybModel
from .Info_abstract import Info
class Info_rutine (Info) :
reps = models.IntegerField()
| 17.363636 | 50 | 0.774869 | 27 | 191 | 5.37037 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151832 | 191 | 10 | 51 | 19.1 | 0.895062 | 0.057592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
8246705fa6dbe28c4a35d2c326e64997647b0659 | 1,637 | py | Python | setup.py | vvanholl/smsgateway | 556ec91ad56022db25540cfd8c2da18034d5f649 | [
"Apache-2.0"
] | 23 | 2017-08-22T17:02:58.000Z | 2022-02-27T19:34:41.000Z | setup.py | vvanholl/smsgateway | 556ec91ad56022db25540cfd8c2da18034d5f649 | [
"Apache-2.0"
] | 1 | 2020-05-02T09:20:03.000Z | 2021-05-14T19:15:59.000Z | setup.py | vvanholl/smsgateway | 556ec91ad56022db25540cfd8c2da18034d5f649 | [
"Apache-2.0"
] | 13 | 2017-07-21T06:20:58.000Z | 2022-02-27T19:36:41.000Z | #!/usr/bin/env python
from setuptools import setup
with open('VERSION') as version_file:
version = version_file.read()
with open('README.rst') as readme_file:
long_description = readme_file.read()
with open('requirements.txt') as requirements_file:
install_requires = requirements_file.read().splitlines(... | 29.232143 | 61 | 0.669517 | 179 | 1,637 | 6.03352 | 0.435754 | 0.175926 | 0.231481 | 0.192593 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01506 | 0.18876 | 1,637 | 55 | 62 | 29.763636 | 0.798193 | 0.012217 | 0 | 0 | 0 | 0 | 0.529703 | 0.013614 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021739 | 0 | 0.021739 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8246e2d0b8ae13da635fddf748c8ed80cf12cabe | 1,210 | py | Python | sponge-app/sponge-app-demo-service/sponge/sponge_demo_context_actions_active.py | mnpas/sponge | 7190f23ae888bbef49d0fbb85157444d6ea48bcd | [
"Apache-2.0"
] | 9 | 2017-12-16T21:48:57.000Z | 2022-01-06T12:22:24.000Z | sponge-app/sponge-app-demo-service/sponge/sponge_demo_context_actions_active.py | mnpas/sponge | 7190f23ae888bbef49d0fbb85157444d6ea48bcd | [
"Apache-2.0"
] | 3 | 2020-12-18T11:56:46.000Z | 2022-03-31T18:37:10.000Z | sponge-app/sponge-app-demo-service/sponge/sponge_demo_context_actions_active.py | mnpas/sponge | 7190f23ae888bbef49d0fbb85157444d6ea48bcd | [
"Apache-2.0"
] | 2 | 2019-12-29T16:08:32.000Z | 2020-06-15T14:05:34.000Z | """
Sponge Knowledge Base
Demo - Action - Active context actions
"""
class ContextActionsActiveInactive(Action):
def onConfigure(self):
self.withLabel("Action with active/inactive context actions").withArgs([
BooleanType("active").withLabel("Active").withDefaultValue(False)
]).withNonCa... | 41.724138 | 147 | 0.714876 | 113 | 1,210 | 7.619469 | 0.40708 | 0.114983 | 0.069686 | 0.083624 | 0.12892 | 0.12892 | 0 | 0 | 0 | 0 | 0 | 0.006951 | 0.167769 | 1,210 | 28 | 148 | 43.214286 | 0.848064 | 0.049587 | 0 | 0.238095 | 0 | 0 | 0.204028 | 0.075306 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.095238 | 0 | 0.047619 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
412fff4bb92c14ba00f8dfa79ac8cd73209d8a48 | 1,416 | py | Python | tensorflow/python/ops/filesystem_ops.py | wainshine/tensorflow | dc7a8dc8546c679b9c7b3df7494ce4506bfc1a6d | [
"Apache-2.0"
] | 54 | 2017-06-17T14:07:48.000Z | 2022-03-29T02:11:20.000Z | tensorflow/python/ops/filesystem_ops.py | wainshine/tensorflow | dc7a8dc8546c679b9c7b3df7494ce4506bfc1a6d | [
"Apache-2.0"
] | 19 | 2021-12-28T12:44:55.000Z | 2022-01-13T08:11:28.000Z | tensorflow/python/ops/filesystem_ops.py | wainshine/tensorflow | dc7a8dc8546c679b9c7b3df7494ce4506bfc1a6d | [
"Apache-2.0"
] | 11 | 2018-04-19T22:36:01.000Z | 2021-08-02T08:44:43.000Z | # Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# 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 applica... | 34.536585 | 80 | 0.721045 | 190 | 1,416 | 5.278947 | 0.515789 | 0.059821 | 0.047856 | 0.031904 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006661 | 0.151836 | 1,416 | 40 | 81 | 35.4 | 0.828476 | 0.69774 | 0 | 0 | 0 | 0 | 0.106494 | 0.106494 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4143d21521284f384b10a8b26c89f96eccf4d314 | 1,225 | py | Python | dask/context.py | epervago/dask | 958732ce6c51ef6af39db4727d948bfa66a0a8d6 | [
"BSD-3-Clause"
] | 2 | 2017-03-30T11:22:11.000Z | 2019-03-03T05:18:01.000Z | dask/context.py | epervago/dask | 958732ce6c51ef6af39db4727d948bfa66a0a8d6 | [
"BSD-3-Clause"
] | null | null | null | dask/context.py | epervago/dask | 958732ce6c51ef6af39db4727d948bfa66a0a8d6 | [
"BSD-3-Clause"
] | null | null | null | """
Control global computation context
"""
from __future__ import absolute_import, division, print_function
from collections import defaultdict
_globals = defaultdict(lambda: None)
_globals['callbacks'] = set()
class set_options(object):
""" Set global state within controled context
This lets you specify v... | 28.488372 | 79 | 0.67102 | 143 | 1,225 | 5.552448 | 0.65035 | 0.025189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244082 | 1,225 | 42 | 80 | 29.166667 | 0.857451 | 0.567347 | 0 | 0 | 0 | 0 | 0.01978 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0.076923 | 0.538462 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
414e2555918c02306011225e6b45195da9fe2ff8 | 2,908 | py | Python | kamrecsys/utils/kammath.py | tkamishima/kamrecsys | 62305312f7aaaa8c2985785983c1d2bf68b243c0 | [
"MIT"
] | 7 | 2016-11-01T13:19:16.000Z | 2022-02-23T17:48:49.000Z | kamrecsys/utils/kammath.py | tkamishima/kamrecsys | 62305312f7aaaa8c2985785983c1d2bf68b243c0 | [
"MIT"
] | 1 | 2017-09-03T13:08:48.000Z | 2017-09-20T04:32:55.000Z | kamrecsys/utils/kammath.py | tkamishima/kamrecsys | 62305312f7aaaa8c2985785983c1d2bf68b243c0 | [
"MIT"
] | 6 | 2016-04-21T16:13:23.000Z | 2022-02-25T00:58:16.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Summary of Mathematical Functions
"""
from __future__ import (
print_function,
division,
absolute_import,
unicode_literals)
from six.moves import xrange
# =============================================================================
# Imports
# =======... | 26.925926 | 79 | 0.325997 | 184 | 2,908 | 4.994565 | 0.565217 | 0.032644 | 0.03482 | 0.047878 | 0.102285 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028888 | 0.131018 | 2,908 | 107 | 80 | 27.17757 | 0.334784 | 0.746217 | 0 | 0 | 0 | 0 | 0.02707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.347826 | 0 | 0.478261 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
414eae384fa135450fd06ef901a358e30ce29b25 | 427 | py | Python | ponnobot/management/commands/daraz_crawl.py | ahmedshahriar/bd-ponno | 4ffd537d66ed05fe297a4d81d5ea414fbcdaa26c | [
"Apache-2.0"
] | 3 | 2022-03-09T19:29:36.000Z | 2022-03-17T03:01:50.000Z | ponnobot/management/commands/daraz_crawl.py | ahmedshahriar/bd-ponno | 4ffd537d66ed05fe297a4d81d5ea414fbcdaa26c | [
"Apache-2.0"
] | null | null | null | ponnobot/management/commands/daraz_crawl.py | ahmedshahriar/bd-ponno | 4ffd537d66ed05fe297a4d81d5ea414fbcdaa26c | [
"Apache-2.0"
] | null | null | null | from django.core.management.base import BaseCommand
from scrapy.crawler import CrawlerProcess
from scrapy.utils.project import get_project_settings
from ponnobot.spiders.daraz_spider import DarazSpider
class Command(BaseCommand):
help = "Release the Mke Crawler"
def handle(self, *args, **options):
p... | 28.466667 | 56 | 0.761124 | 50 | 427 | 6.4 | 0.66 | 0.0625 | 0.1125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161593 | 427 | 14 | 57 | 30.5 | 0.893855 | 0 | 0 | 0 | 0 | 0 | 0.053864 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
41552a664d87addf91db66629429ff78996f6484 | 437 | py | Python | utils/sundry_utils.py | czh513/RLs-for-TF2.0-Gym-Unity | a2b0ecb7ae4006bb3a6895207fc6a3c77a511317 | [
"Apache-2.0"
] | 1 | 2021-01-24T13:29:10.000Z | 2021-01-24T13:29:10.000Z | utils/sundry_utils.py | H0wardx/RLs | cdf4ddcb1559996a5740197bfc2ebb2f8c678871 | [
"Apache-2.0"
] | null | null | null | utils/sundry_utils.py | H0wardx/RLs | cdf4ddcb1559996a5740197bfc2ebb2f8c678871 | [
"Apache-2.0"
] | 1 | 2021-01-24T13:29:16.000Z | 2021-01-24T13:29:16.000Z |
class LinearAnnealing:
def __init__(self, x, x_, end):
'''
Params:
x: start value
x_: end value
end: annealing time
'''
assert end != 0, 'the time steps for annealing must larger than 0.'
self.x = x
self.x_ = x_
self.inter... | 25.705882 | 75 | 0.517162 | 54 | 437 | 3.925926 | 0.462963 | 0.117925 | 0.084906 | 0.09434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00738 | 0.379863 | 437 | 16 | 76 | 27.3125 | 0.774908 | 0.157895 | 0 | 0 | 0 | 0 | 0.15047 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
4167361539e4ba70f985aa40d821d38a216ae1a3 | 632 | py | Python | shhelper/paths.py | PowerSnail/PythonShellHelper | 4c06fc699bb9c499a01649ab777deb5614dcc677 | [
"MIT"
] | null | null | null | shhelper/paths.py | PowerSnail/PythonShellHelper | 4c06fc699bb9c499a01649ab777deb5614dcc677 | [
"MIT"
] | null | null | null | shhelper/paths.py | PowerSnail/PythonShellHelper | 4c06fc699bb9c499a01649ab777deb5614dcc677 | [
"MIT"
] | null | null | null | import typing as T
from pathlib import Path
import re
class Globals:
cwd = Path(".").absolute()
def cd(p: str):
Globals.cwd.joinpath(p).absolute()
def pwd() -> Path:
return Globals.cwd
def ls(p: str = ".") -> T.List[Path]:
path = Globals.cwd.joinpath(p)
return [p for p in path.iterdir()]
def ba... | 23.407407 | 68 | 0.612342 | 92 | 632 | 4.152174 | 0.456522 | 0.104712 | 0.094241 | 0.099476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253165 | 632 | 27 | 69 | 23.407407 | 0.809322 | 0.030063 | 0 | 0 | 0 | 0 | 0.003268 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0.190476 | false | 0 | 0.142857 | 0.047619 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4173ab30be589f793da2d02cf1b2b0392469a97b | 583 | py | Python | tests/event/beforeafter/modules/directcalls/__init__.py | da-h/miniflask | d5e594153cca4ce4d30db01b1d06d05afa9e7aaa | [
"MIT"
] | 5 | 2020-02-17T12:14:36.000Z | 2020-02-27T12:09:05.000Z | tests/event/beforeafter/modules/directcalls/__init__.py | da-h/miniflask | d5e594153cca4ce4d30db01b1d06d05afa9e7aaa | [
"MIT"
] | 69 | 2020-04-03T08:16:35.000Z | 2021-12-21T15:46:29.000Z | tests/event/beforeafter/modules/directcalls/__init__.py | da-h/miniflask | d5e594153cca4ce4d30db01b1d06d05afa9e7aaa | [
"MIT"
] | 1 | 2020-04-02T15:46:39.000Z | 2020-04-02T15:46:39.000Z |
# note that this function does not ask for any miniflask variables (state/event/mf)
def dosomething():
print("event called")
def before_dosomething():
print("before_-event called")
def after_dosomething():
print("after_-event called")
def main(event):
event.dosomething()
def register(mf):
m... | 24.291667 | 83 | 0.73928 | 73 | 583 | 5.739726 | 0.328767 | 0.095465 | 0.143198 | 0.171838 | 0.264916 | 0.264916 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142367 | 583 | 23 | 84 | 25.347826 | 0.838 | 0.138937 | 0 | 0 | 0 | 0 | 0.202405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0 | 0 | 0.384615 | 0.230769 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
41828bfa0c87a090f908db484f104501bee52ea0 | 852 | py | Python | main_cpu.py | vietbt/ViTextnormASR | 57444aa7247c67b2628d1802e9ed53dae4857ee4 | [
"Apache-2.0"
] | null | null | null | main_cpu.py | vietbt/ViTextnormASR | 57444aa7247c67b2628d1802e9ed53dae4857ee4 | [
"Apache-2.0"
] | null | null | null | main_cpu.py | vietbt/ViTextnormASR | 57444aa7247c67b2628d1802e9ed53dae4857ee4 | [
"Apache-2.0"
] | null | null | null | from utils.data import Data
from network.trainer import train
if __name__=="__main__":
config = "configs/config.norm.cpu.json"
mbert = "configs/config.mbert.json"
vibert = "configs/config.vibert.json"
velectra = "configs/config.velectra.json"
# for fold_id in range(5):
# config =... | 37.043478 | 85 | 0.676056 | 117 | 852 | 4.666667 | 0.299145 | 0.230769 | 0.24359 | 0.126374 | 0.461538 | 0.413919 | 0.304029 | 0.139194 | 0.139194 | 0 | 0 | 0.016012 | 0.193662 | 852 | 22 | 86 | 38.727273 | 0.778748 | 0.207746 | 0 | 0 | 0 | 0 | 0.28858 | 0.165123 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
418dfb5294d9863a19582d998d2279081ddbbe82 | 121 | py | Python | DS&Algo Programs in Python/inserting_heap.py | prathimacode-hub/HacktoberFest-2020 | c18bbb42a5e78f6a7dbfc15fbafd127e738f53f7 | [
"MIT"
] | 386 | 2020-05-08T16:05:16.000Z | 2021-10-05T17:39:14.000Z | DS&Algo Programs in Python/inserting_heap.py | prathimacode-hub/HacktoberFest-2020 | c18bbb42a5e78f6a7dbfc15fbafd127e738f53f7 | [
"MIT"
] | 830 | 2020-08-31T17:16:45.000Z | 2021-10-06T14:14:23.000Z | DS&Algo Programs in Python/inserting_heap.py | prathimacode-hub/HacktoberFest-2020 | c18bbb42a5e78f6a7dbfc15fbafd127e738f53f7 | [
"MIT"
] | 923 | 2020-05-29T15:04:29.000Z | 2021-10-06T15:18:01.000Z | import heapq
H = [21,1,45,78,3,5]
# Covert to a heap
heapq.heapify(H)
print(H)
# Add element
heapq.heappush(H,8)
print(H) | 15.125 | 20 | 0.694215 | 26 | 121 | 3.230769 | 0.730769 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 0.132231 | 121 | 8 | 21 | 15.125 | 0.704762 | 0.231405 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
419fe68f044bef914ba5771af8d03b013ce89516 | 3,539 | py | Python | scripts/generate-framework-agreement-signature-pages.py | jonodrew/digitalmarketplace-scripts | bb4b3f06b2da7b279ff875b9eb73604da643e524 | [
"MIT"
] | null | null | null | scripts/generate-framework-agreement-signature-pages.py | jonodrew/digitalmarketplace-scripts | bb4b3f06b2da7b279ff875b9eb73604da643e524 | [
"MIT"
] | 44 | 2018-11-27T15:33:44.000Z | 2019-01-10T12:43:24.000Z | scripts/generate-framework-agreement-signature-pages.py | jonodrew/digitalmarketplace-scripts | bb4b3f06b2da7b279ff875b9eb73604da643e524 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
PREREQUISITE: You'll need wkhtmltopdf installed for this to work (http://wkhtmltopdf.org/)
Generate framework agreement signature pages from supplier "about you" information for suppliers
who successfully applied to a framework.
This script supersedes the old "generate-agreement-signature-p... | 42.638554 | 120 | 0.772817 | 447 | 3,539 | 5.845638 | 0.393736 | 0.039801 | 0.026789 | 0.040184 | 0.189055 | 0.084194 | 0.034443 | 0.034443 | 0 | 0 | 0 | 0.011669 | 0.128285 | 3,539 | 82 | 121 | 43.158537 | 0.835332 | 0.491099 | 0 | 0 | 1 | 0 | 0.104969 | 0.035176 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
41b235319283e0210c3ad11cbf9f6b89920d856a | 114 | py | Python | File Handling/ReadLines.py | UgainJain/LearnPythonByDoing | 4784c334d7f485223a29592ab47c6c017ec67145 | [
"MIT"
] | 5 | 2018-11-06T11:15:35.000Z | 2020-07-29T21:54:28.000Z | File Handling/ReadLines.py | UgainJain/LearnPythonByDoing | 4784c334d7f485223a29592ab47c6c017ec67145 | [
"MIT"
] | 1 | 2018-11-13T13:22:11.000Z | 2018-11-13T13:22:11.000Z | File Handling/ReadLines.py | UgainJain/LearnPythonByDoing | 4784c334d7f485223a29592ab47c6c017ec67145 | [
"MIT"
] | 11 | 2018-11-06T11:12:21.000Z | 2019-07-12T11:43:05.000Z | f = open("Writelist.txt", "r")
lines = f.readlines()
for line in lines:
print(line , end = '')
f.close() | 16.285714 | 31 | 0.570175 | 17 | 114 | 3.823529 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22807 | 114 | 7 | 32 | 16.285714 | 0.738636 | 0 | 0 | 0 | 0 | 0 | 0.12844 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
41b89911dfe0aa87928f551b5e20d006a638edf0 | 4,924 | py | Python | pygameUoN-hy-dev/restructured/walldata.py | moumou666/collection | 905657b8aa6b5e4bdfe91a1a3f1b5dbc0d893c08 | [
"Apache-2.0"
] | null | null | null | pygameUoN-hy-dev/restructured/walldata.py | moumou666/collection | 905657b8aa6b5e4bdfe91a1a3f1b5dbc0d893c08 | [
"Apache-2.0"
] | null | null | null | pygameUoN-hy-dev/restructured/walldata.py | moumou666/collection | 905657b8aa6b5e4bdfe91a1a3f1b5dbc0d893c08 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 2 19:44:15 2020
@author: Zane
"""
# width = 50,height = 40
walls=[{"x":0,"y":430},
{"x":50,"y":430},
{"x":100,"y":430},
{"x":145,"y":385},
{"x":195,"y":385},
{"x":245,"y":385},
{"x":285,"y":345},
{"x":335,"y":3... | 27.355556 | 36 | 0.322908 | 711 | 4,924 | 2.236287 | 0.267229 | 0.133333 | 0.166667 | 0.010063 | 0.059748 | 0 | 0 | 0 | 0 | 0 | 0 | 0.356951 | 0.320674 | 4,924 | 179 | 37 | 27.50838 | 0.118386 | 0.019293 | 0 | 0 | 0 | 0 | 0.074553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
41c11e9da2ca44be0571959be3f678ac6b0121f3 | 280 | py | Python | pDESy/model/organization.py | swanaka/pDESy | 2a153e605be7572494d240c575a387f8d27b7943 | [
"MIT"
] | null | null | null | pDESy/model/organization.py | swanaka/pDESy | 2a153e605be7572494d240c575a387f8d27b7943 | [
"MIT"
] | null | null | null | pDESy/model/organization.py | swanaka/pDESy | 2a153e605be7572494d240c575a387f8d27b7943 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from .base_organization import BaseOrganization
from .base_team import BaseTeam
from typing import List
class Organization(BaseOrganization):
def __init__(self, team_list:List[BaseTeam]):
super().__init__(team_list) | 25.454545 | 49 | 0.735714 | 35 | 280 | 5.542857 | 0.6 | 0.082474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004219 | 0.153571 | 280 | 11 | 50 | 25.454545 | 0.814346 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
68b9d141605159293663eaf7a6b056b99d662563 | 16,939 | py | Python | rsatoolbox/data/noise.py | smazurchuk/rsatoolbox | 95408f38ba86d501485019d3669b7fcd45abf006 | [
"MIT"
] | 80 | 2015-03-02T15:11:37.000Z | 2022-03-21T17:25:36.000Z | rsatoolbox/data/noise.py | smazurchuk/rsatoolbox | 95408f38ba86d501485019d3669b7fcd45abf006 | [
"MIT"
] | 83 | 2015-03-03T10:04:22.000Z | 2022-03-31T03:50:45.000Z | rsatoolbox/data/noise.py | smazurchuk/rsatoolbox | 95408f38ba86d501485019d3669b7fcd45abf006 | [
"MIT"
] | 64 | 2015-03-02T15:11:17.000Z | 2022-03-28T12:05:32.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Functions for estimating the precision matrix based on the covariance of
either the residuals (temporal based precision matrix) or of the measurements
(instance based precision matrix)
"""
from collections.abc import Iterable
import numpy as np
from rsatoolbox.data im... | 37.065646 | 99 | 0.643958 | 2,263 | 16,939 | 4.703933 | 0.117985 | 0.058619 | 0.015031 | 0.025364 | 0.735275 | 0.703992 | 0.691686 | 0.680789 | 0.669047 | 0.650634 | 0 | 0.008522 | 0.272625 | 16,939 | 456 | 100 | 37.14693 | 0.85545 | 0.50003 | 0 | 0.54023 | 0 | 0 | 0.055082 | 0 | 0 | 0 | 0 | 0 | 0.028736 | 1 | 0.074713 | false | 0 | 0.022989 | 0 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
68ce00d9f7304f4c6f6691c2f14872c0fa2f3998 | 13,060 | py | Python | signal_ocean/vessels/models.py | SignalOceanSdk/SignalSDK | e21cf6026386bb46fde7582a10995cc7deff8a42 | [
"Apache-2.0"
] | 10 | 2020-09-29T06:36:45.000Z | 2022-03-14T18:15:50.000Z | signal_ocean/vessels/models.py | SignalOceanSdk/SignalSDK | e21cf6026386bb46fde7582a10995cc7deff8a42 | [
"Apache-2.0"
] | 53 | 2020-10-08T10:05:00.000Z | 2022-03-29T14:21:18.000Z | signal_ocean/vessels/models.py | SignalOceanSdk/SignalSDK | e21cf6026386bb46fde7582a10995cc7deff8a42 | [
"Apache-2.0"
] | 5 | 2020-09-25T07:48:04.000Z | 2021-11-23T07:08:56.000Z | """Models instantiated by the vessels api."""
from dataclasses import dataclass
from datetime import datetime
from typing import Optional
@dataclass(frozen=True)
class VesselClass:
"""Vessel class characteristics.
Detailed characteristics of each vessel class, including its defining
measurement and the r... | 51.215686 | 79 | 0.677489 | 1,743 | 13,060 | 4.996558 | 0.250143 | 0.03927 | 0.032725 | 0.01929 | 0.26375 | 0.233666 | 0.203697 | 0.162131 | 0.141463 | 0.118498 | 0 | 0.006936 | 0.27144 | 13,060 | 254 | 80 | 51.417323 | 0.90825 | 0.777182 | 0 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.043478 | 0 | 0.956522 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
68dece208bce3a369974c57278e90a5119cc12b0 | 362 | py | Python | examples/demo_purge.py | shirui-japina/tensorboardX | 366bc8ff960a1d674feb8a844da187222103251e | [
"MIT"
] | 5,378 | 2018-07-15T12:37:38.000Z | 2022-03-31T17:55:25.000Z | examples/demo_purge.py | kdongyi/tensorboardX | 9b9933aa6b614de32341142533e7cf9594cdc2c4 | [
"MIT"
] | 461 | 2018-07-19T02:48:05.000Z | 2022-03-02T17:56:43.000Z | examples/demo_purge.py | kdongyi/tensorboardX | 9b9933aa6b614de32341142533e7cf9594cdc2c4 | [
"MIT"
] | 753 | 2018-07-16T14:46:47.000Z | 2022-03-29T08:04:08.000Z | from time import sleep
from tensorboardX import SummaryWriter
with SummaryWriter(logdir='runs/purge') as w:
for i in range(100):
w.add_scalar('purgetest', i, i)
sleep(1.0)
with SummaryWriter(logdir='runs/purge', purge_step=42) as w:
# event 42~99 are removed (inclusively)
for i in range(42, 100):... | 25.857143 | 60 | 0.685083 | 57 | 362 | 4.298246 | 0.508772 | 0.138776 | 0.187755 | 0.220408 | 0.440816 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061644 | 0.19337 | 362 | 13 | 61 | 27.846154 | 0.777397 | 0.10221 | 0 | 0 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
68e9581e55de4c281db9153445ddf484a0031d20 | 238 | py | Python | test1.py | Aqua5lad/CDs-Sample-Python-Code | 63276020b706f26d9b523e5a31f3a6e3acd8dc58 | [
"Apache-2.0"
] | null | null | null | test1.py | Aqua5lad/CDs-Sample-Python-Code | 63276020b706f26d9b523e5a31f3a6e3acd8dc58 | [
"Apache-2.0"
] | null | null | null | test1.py | Aqua5lad/CDs-Sample-Python-Code | 63276020b706f26d9b523e5a31f3a6e3acd8dc58 | [
"Apache-2.0"
] | null | null | null | # testing commands & logic by Colm Doherty
# Using While, If, Else, Print.
n = 20
while n <= 100:
if (n % 2 == 0):
print("this number", n, "is even")
else:
print("this number", n, "is odd")
n = n + 1
| 18.307692 | 43 | 0.508403 | 36 | 238 | 3.361111 | 0.611111 | 0.14876 | 0.247934 | 0.264463 | 0.297521 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050955 | 0.340336 | 238 | 12 | 44 | 19.833333 | 0.719745 | 0.294118 | 0 | 0 | 0 | 0 | 0.212121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
68ea8b1ee079a57af712c82a4f9590360656ac36 | 316 | py | Python | src/biking/views.py | AlexDevelop/seen-movies | 95d83d3271258feb5c55544de1078f467c569bc5 | [
"MIT"
] | null | null | null | src/biking/views.py | AlexDevelop/seen-movies | 95d83d3271258feb5c55544de1078f467c569bc5 | [
"MIT"
] | null | null | null | src/biking/views.py | AlexDevelop/seen-movies | 95d83d3271258feb5c55544de1078f467c569bc5 | [
"MIT"
] | null | null | null | from rest_framework import viewsets
from rest_framework.viewsets import ModelViewSet
from biking.models import BikeRide
from biking.serializers import BikeRideSerializer
class BikeRideViewSet(viewsets.ViewSet, ModelViewSet):
serializer_class = BikeRideSerializer
queryset = BikeRide.objects.all() | 31.6 | 55 | 0.816456 | 33 | 316 | 7.727273 | 0.545455 | 0.062745 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139241 | 316 | 10 | 56 | 31.6 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
68f314b820e5b61981511d72e8a7321058948886 | 190 | py | Python | radiobear/Constituents/parameters.py | david-deboer/radiobear | aedc716c7acf0c69d278988842407545f1043c17 | [
"BSD-2-Clause"
] | 3 | 2019-05-13T21:03:57.000Z | 2021-04-22T05:33:33.000Z | radiobear/Constituents/parameters.py | david-deboer/radiobear | aedc716c7acf0c69d278988842407545f1043c17 | [
"BSD-2-Clause"
] | 1 | 2020-02-11T20:34:49.000Z | 2020-02-11T20:34:49.000Z | radiobear/Constituents/parameters.py | david-deboer/radiobear | aedc716c7acf0c69d278988842407545f1043c17 | [
"BSD-2-Clause"
] | null | null | null | from argparse import Namespace
def setpar(kwargs):
par = Namespace(units='dBperkm', path='./', verbose=False)
for p, v in kwargs.items():
setattr(par, p, v)
return par
| 21.111111 | 62 | 0.636842 | 26 | 190 | 4.653846 | 0.769231 | 0.033058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226316 | 190 | 8 | 63 | 23.75 | 0.823129 | 0 | 0 | 0 | 0 | 0 | 0.047368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
68fba9c618d3a2f3d923bbfdf6fca5d268a04496 | 319 | py | Python | src/validators.py | ostjen/kalendar | ac7985a532f7695918bac410e348d6b60c719b7f | [
"MIT"
] | null | null | null | src/validators.py | ostjen/kalendar | ac7985a532f7695918bac410e348d6b60c719b7f | [
"MIT"
] | null | null | null | src/validators.py | ostjen/kalendar | ac7985a532f7695918bac410e348d6b60c719b7f | [
"MIT"
] | null | null | null | from datetime import datetime
import argparse
from config.settings import DEFAULT_TIME_FORMAT
def valid_date(date):
try:
return datetime.strptime(date,DEFAULT_TIME_FORMAT)
except ValueError:
msg = "Not a valid date: '{0}'.".format(date)
raise argparse.ArgumentTypeError(msg)
| 18.764706 | 58 | 0.702194 | 39 | 319 | 5.615385 | 0.589744 | 0.127854 | 0.155251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004016 | 0.219436 | 319 | 16 | 59 | 19.9375 | 0.875502 | 0 | 0 | 0 | 0 | 0 | 0.076433 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ec015d31d48269f37f360bcd8409158d794dd205 | 306 | py | Python | conversation_data.py | Fortune-Adekogbe/Diary-bot | 4ba11a132647c7e39ab9d3bf7cda91a94e94d3b6 | [
"MIT"
] | null | null | null | conversation_data.py | Fortune-Adekogbe/Diary-bot | 4ba11a132647c7e39ab9d3bf7cda91a94e94d3b6 | [
"MIT"
] | null | null | null | conversation_data.py | Fortune-Adekogbe/Diary-bot | 4ba11a132647c7e39ab9d3bf7cda91a94e94d3b6 | [
"MIT"
] | null | null | null | class ConversationData:
def __init__(
self,
timestamp: str = None,
channel_id: str = None,
prompted_for_user_name: bool = False,
):
self.timestamp = timestamp
self.channel_id = channel_id
self.prompted_for_user_name = prompted_for_user_name
| 25.5 | 60 | 0.633987 | 35 | 306 | 5.085714 | 0.457143 | 0.151685 | 0.252809 | 0.320225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.300654 | 306 | 11 | 61 | 27.818182 | 0.831776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ec056d2c0accadc995d5bd70c163bf8fbec460d6 | 1,048 | py | Python | Picard_1_121.py | meissnert/StarCluster-Plugins | a84dc5f62b5a37e7843c0fb4ac69011ecd766e51 | [
"MIT"
] | 1 | 2016-05-27T19:58:53.000Z | 2016-05-27T19:58:53.000Z | Picard_1_121.py | meissnert/StarCluster-Plugins | a84dc5f62b5a37e7843c0fb4ac69011ecd766e51 | [
"MIT"
] | null | null | null | Picard_1_121.py | meissnert/StarCluster-Plugins | a84dc5f62b5a37e7843c0fb4ac69011ecd766e51 | [
"MIT"
] | null | null | null | from starcluster.clustersetup import ClusterSetup
from starcluster.logger import log
class PicardInstaller(ClusterSetup):
def run(self, nodes, master, user, user_shell, volumes):
for node in nodes:
log.info("Installing Picard tools 1.121 on %s" % (node.alias))
node.ssh.execute('wget -c -P /opt/software/picard... | 69.866667 | 142 | 0.744275 | 158 | 1,048 | 4.93038 | 0.405063 | 0.051348 | 0.125802 | 0.096277 | 0.487805 | 0.445443 | 0.445443 | 0.293967 | 0.21181 | 0.21181 | 0 | 0.044979 | 0.087786 | 1,048 | 15 | 143 | 69.866667 | 0.769874 | 0 | 0 | 0 | 0 | 0.461538 | 0.616778 | 0.35939 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ec15bd5a6b7f9c9be28e10f501099ad3bd1a9969 | 8,984 | py | Python | pysnmp/ARISTA-QUEUE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/ARISTA-QUEUE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/ARISTA-QUEUE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module ARISTA-QUEUE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ARISTA-QUEUE-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:09:20 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar ... | 108.240964 | 1,443 | 0.777605 | 902 | 8,984 | 7.742794 | 0.175166 | 0.014318 | 0.0189 | 0.014318 | 0.317869 | 0.276489 | 0.206042 | 0.206042 | 0.191438 | 0.189576 | 0 | 0.070482 | 0.084038 | 8,984 | 82 | 1,444 | 109.560976 | 0.778223 | 0.036287 | 0 | 0.098592 | 0 | 0 | 0.17609 | 0.044745 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.112676 | 0 | 0.28169 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ec1627fcd818dd5d5ebff5f655bdbcf47cb6d85b | 12,863 | py | Python | pta/migrations/0003_initial.py | cptdanko/ptaApp | 48d2e7ee8f2857d3a0b651dba2ead3684d2c3261 | [
"BSD-3-Clause"
] | null | null | null | pta/migrations/0003_initial.py | cptdanko/ptaApp | 48d2e7ee8f2857d3a0b651dba2ead3684d2c3261 | [
"BSD-3-Clause"
] | null | null | null | pta/migrations/0003_initial.py | cptdanko/ptaApp | 48d2e7ee8f2857d3a0b651dba2ead3684d2c3261 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Role'
db.create_table('pta_role', (
('id', se... | 58.73516 | 182 | 0.573972 | 1,362 | 12,863 | 5.301028 | 0.08884 | 0.114127 | 0.197784 | 0.282548 | 0.723407 | 0.692659 | 0.672161 | 0.630055 | 0.55554 | 0.444598 | 0 | 0.010068 | 0.204696 | 12,863 | 219 | 183 | 58.73516 | 0.695699 | 0.033507 | 0 | 0.222222 | 0 | 0 | 0.514781 | 0.310431 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011111 | false | 0.005556 | 0.022222 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ec1b91d42348f3ae0bf19c8bcd77e6316e4295ff | 118 | py | Python | main.py | jackyhobingo/QuestionnaireAddUp | 22279b3af04876996803b7758213660429311ef4 | [
"MIT"
] | null | null | null | main.py | jackyhobingo/QuestionnaireAddUp | 22279b3af04876996803b7758213660429311ef4 | [
"MIT"
] | null | null | null | main.py | jackyhobingo/QuestionnaireAddUp | 22279b3af04876996803b7758213660429311ef4 | [
"MIT"
] | null | null | null | from questionnaire import Questionnaire
if __name__ == "__main__":
question = Questionnaire()
question.run()
| 19.666667 | 39 | 0.728814 | 11 | 118 | 7.090909 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177966 | 118 | 5 | 40 | 23.6 | 0.804124 | 0 | 0 | 0 | 0 | 0 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ec1e9245c212305fe4fd2b762026505e77efa7ea | 201 | py | Python | tests/ezros/test_exception.py | achillesrasquinha/rosutils | f7617fadd1211528ceb1a0db5743c7d642d37f3c | [
"MIT"
] | null | null | null | tests/ezros/test_exception.py | achillesrasquinha/rosutils | f7617fadd1211528ceb1a0db5743c7d642d37f3c | [
"MIT"
] | null | null | null | tests/ezros/test_exception.py | achillesrasquinha/rosutils | f7617fadd1211528ceb1a0db5743c7d642d37f3c | [
"MIT"
] | null | null | null |
# imports - module imports
from ezros.exception import (
EzrosError
)
# imports - test imports
import pytest
def test_ezros_error():
with pytest.raises(EzrosError):
raise EzrosError | 15.461538 | 35 | 0.716418 | 23 | 201 | 6.173913 | 0.608696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21393 | 201 | 13 | 36 | 15.461538 | 0.898734 | 0.233831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.285714 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ec2045f0a2fd7a05faa6c3a3c6497278b51a1250 | 1,599 | py | Python | scripts/schema.py | FlowersOfChina/You-Money | b62de8cbc36e127940c282fa802186044b018208 | [
"MIT"
] | null | null | null | scripts/schema.py | FlowersOfChina/You-Money | b62de8cbc36e127940c282fa802186044b018208 | [
"MIT"
] | null | null | null | scripts/schema.py | FlowersOfChina/You-Money | b62de8cbc36e127940c282fa802186044b018208 | [
"MIT"
] | null | null | null | import MySQLdb
'''
数据库实例目前部署一台就可以了,然后通过这个脚本进行数据的同步操作
插入测试数据 每次开发完成新的模块 使用这个脚本 动态的添加数据
'''
# 重新创建模式 为 create 追加数据使用 append 删除并且重新添加 为 refresh
DB_OP_MODE = "append"
# 数据库链接用户名
MYSQL_CONN_NAME = "mysqlname"
#数据库远程链接地址
MYSQL_CONN_ADDR = "mysqllinkpath"
#数据库登录密码
MYSQL_CONN_PASSWORD = "mysqlpassword"
#数据库默认的链... | 16.65625 | 69 | 0.601001 | 182 | 1,599 | 4.989011 | 0.412088 | 0.079295 | 0.066079 | 0.059471 | 0.072687 | 0.072687 | 0 | 0 | 0 | 0 | 0 | 0.001784 | 0.298937 | 1,599 | 96 | 70 | 16.65625 | 0.808207 | 0.180738 | 0 | 0.171429 | 0 | 0 | 0.12124 | 0 | 0 | 0 | 0 | 0.010417 | 0 | 1 | 0.142857 | false | 0.171429 | 0.028571 | 0 | 0.228571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ec3f64f8541e63727fa388ab36b7b3210f917a12 | 120 | py | Python | src/api_segura/data/__init__.py | PythonistaMX/py261 | 614de0c8c78f26f10d485f1f46fc2c673fc79b6f | [
"MIT"
] | null | null | null | src/api_segura/data/__init__.py | PythonistaMX/py261 | 614de0c8c78f26f10d485f1f46fc2c673fc79b6f | [
"MIT"
] | null | null | null | src/api_segura/data/__init__.py | PythonistaMX/py261 | 614de0c8c78f26f10d485f1f46fc2c673fc79b6f | [
"MIT"
] | null | null | null | CARRERAS = ['Arquitectura',
'Diseño',
'Sistemas',
'Derecho',
'Actuaría'] | 24 | 27 | 0.408333 | 6 | 120 | 8.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.45 | 120 | 5 | 28 | 24 | 0.742424 | 0 | 0 | 0 | 0 | 0 | 0.338843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ec4b70ac18d92ab278dd2e181fe59f82cfe18bc9 | 181 | py | Python | notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/Interview-Problems/LeetCode/ReverseBits.py | side-projects-42/INTERVIEW-PREP-COMPLETE | 627a3315cee4bbc38a0e81c256f27f928eac2d63 | [
"MIT"
] | 13 | 2021-03-11T00:25:22.000Z | 2022-03-19T00:19:23.000Z | notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/Interview-Problems/LeetCode/ReverseBits.py | side-projects-42/INTERVIEW-PREP-COMPLETE | 627a3315cee4bbc38a0e81c256f27f928eac2d63 | [
"MIT"
] | 160 | 2021-04-26T19:04:15.000Z | 2022-03-26T20:18:37.000Z | notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/Interview-Problems/LeetCode/ReverseBits.py | side-projects-42/INTERVIEW-PREP-COMPLETE | 627a3315cee4bbc38a0e81c256f27f928eac2d63 | [
"MIT"
] | 12 | 2021-04-26T19:43:01.000Z | 2022-01-31T08:36:29.000Z | class Solution:
def reverseBits(self, n: int) -> int:
s = str(bin(n))
s = s[2:]
s = "0" * (32 - len(s)) + s
s = int(s[::-1], 2)
return s
| 22.625 | 41 | 0.39779 | 28 | 181 | 2.571429 | 0.571429 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.403315 | 181 | 7 | 42 | 25.857143 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0.005525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ec509778ff8ddf7507bdc992cf6c379c4781ea01 | 330 | py | Python | addons/network/model/digitalocean/Size.py | nhomar/odoo-network | e5006cedba3f927a3132df0329e67a4c0b65bb31 | [
"BSD-3-Clause"
] | null | null | null | addons/network/model/digitalocean/Size.py | nhomar/odoo-network | e5006cedba3f927a3132df0329e67a4c0b65bb31 | [
"BSD-3-Clause"
] | null | null | null | addons/network/model/digitalocean/Size.py | nhomar/odoo-network | e5006cedba3f927a3132df0329e67a4c0b65bb31 | [
"BSD-3-Clause"
] | 1 | 2019-12-05T19:04:15.000Z | 2019-12-05T19:04:15.000Z | class Size(object):
def __init__(self, client_id="", api_key=""):
self.client_id = client_id
self.api_key = api_key
self.name = None
self.id = None
self.memory = None
self.cpu = None
self.disk = None
self.cost_per_hour = None
self.cost_per_mon... | 25.384615 | 49 | 0.569697 | 45 | 330 | 3.866667 | 0.422222 | 0.275862 | 0.137931 | 0.172414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 330 | 12 | 50 | 27.5 | 0.790909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ec5857484fe4d8f3063be3551bf500943822d4f3 | 1,112 | py | Python | juggling_management/config/juggling_management.py | geniusupgrader/juggling_management | 97b0d77de5cc3eea53d6c42cc6dde429078ab7eb | [
"MIT"
] | 1 | 2020-01-11T08:39:00.000Z | 2020-01-11T08:39:00.000Z | juggling_management/config/juggling_management.py | geniusupgrader/juggling_management | 97b0d77de5cc3eea53d6c42cc6dde429078ab7eb | [
"MIT"
] | null | null | null | juggling_management/config/juggling_management.py | geniusupgrader/juggling_management | 97b0d77de5cc3eea53d6c42cc6dde429078ab7eb | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from frappe import _
def get_data():
return [
{
"label":_("Juggling Management"),
"items": [
{
"type": "doctype",
"name": "Jugglingtrick_juggling_management",
"label": _("Juggl... | 30.888889 | 64 | 0.414568 | 64 | 1,112 | 6.828125 | 0.421875 | 0.20595 | 0.1373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.456835 | 1,112 | 35 | 65 | 31.771429 | 0.72351 | 0 | 0 | 0.117647 | 0 | 0 | 0.351619 | 0.100719 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | true | 0 | 0.058824 | 0.029412 | 0.117647 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6b4d22a92604539f93ec74c6f6e6600fe2df855a | 151 | py | Python | Enhance Main Window (877182321) by Arthur-Milchior/consts.py | kb1900/Anki-Addons | 3b764af8657065c369d404025a3f11c964192a33 | [
"MIT"
] | 1 | 2019-06-23T04:46:24.000Z | 2019-06-23T04:46:24.000Z | Enhance Main Window (877182321) by Arthur-Milchior/consts.py | kb1900/Anki-Addons | 3b764af8657065c369d404025a3f11c964192a33 | [
"MIT"
] | null | null | null | Enhance Main Window (877182321) by Arthur-Milchior/consts.py | kb1900/Anki-Addons | 3b764af8657065c369d404025a3f11c964192a33 | [
"MIT"
] | null | null | null | QUEUE_SCHED_BURIED = -3
QUEUE_USER_BURIED = -2
QUEUE_SUSPENDED = -1
QUEUE_NEW_CRAM = 0
QUEUE_LRN = 1
QUEUE_REV = 2
QUEUE_DAY_LRN = 3
QUEUE_PREVIEW = 4
| 16.777778 | 23 | 0.768212 | 28 | 151 | 3.714286 | 0.571429 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062992 | 0.15894 | 151 | 8 | 24 | 18.875 | 0.755906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6b638493cfde7e844e8ba2205ae3bc5f93f5d88f | 602 | py | Python | graphscale/kvetch/create_db.py | schrockntemp/graphscaletemp | 59a0982f000dfbfe62f9773fb71204f2eadf73d4 | [
"MIT"
] | null | null | null | graphscale/kvetch/create_db.py | schrockntemp/graphscaletemp | 59a0982f000dfbfe62f9773fb71204f2eadf73d4 | [
"MIT"
] | null | null | null | graphscale/kvetch/create_db.py | schrockntemp/graphscaletemp | 59a0982f000dfbfe62f9773fb71204f2eadf73d4 | [
"MIT"
] | null | null | null | #import pymysql
#import pymysql.cursors;
#import pytest
#from kvetch_dbschema import create_kvetch_edges_table_sql
#
#
#
#if __name__ == "__main__":
# conn = pymysql.connect(host='localhost',
# user='magnus',
# password='magnus',
# db='uni... | 28.666667 | 67 | 0.551495 | 57 | 602 | 5.491228 | 0.614035 | 0.083067 | 0.108626 | 0.140575 | 0.159744 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004963 | 0.330565 | 602 | 20 | 68 | 30.1 | 0.771712 | 0.933555 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6b757362c1891545bbc05888d2551d115f84a5d6 | 1,367 | py | Python | LumiGAN/matplotlibstyle.py | acdc-pv-unsw/LumiGAN | 30a0007c2befe3d1556cfa5d6f76c5d5ce368633 | [
"MIT"
] | null | null | null | LumiGAN/matplotlibstyle.py | acdc-pv-unsw/LumiGAN | 30a0007c2befe3d1556cfa5d6f76c5d5ce368633 | [
"MIT"
] | null | null | null | LumiGAN/matplotlibstyle.py | acdc-pv-unsw/LumiGAN | 30a0007c2befe3d1556cfa5d6f76c5d5ce368633 | [
"MIT"
] | null | null | null | "Defines matplotlib stylesheet"
import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
# %%-- Matplotlib style sheet
mpl.style.use('seaborn-paper')
mpl.rcParams['font.family'] = 'serif'
mpl.rcParams['font.serif'] ='STIXGeneral'
mpl.rcParams['font.size'] = 14
mpl.rcParams['mathtext.default'] = 'rm... | 35.051282 | 107 | 0.713241 | 203 | 1,367 | 4.79803 | 0.399015 | 0.338809 | 0.107803 | 0.028747 | 0.055441 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038951 | 0.079737 | 1,367 | 38 | 108 | 35.973684 | 0.735294 | 0.046086 | 0 | 0 | 0 | 0 | 0.367117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.085714 | 0 | 0.085714 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6b7dc06d9fd066314aa01442cc63761cfc986f72 | 414 | py | Python | tests/base_tests/linear_tests/test_translate.py | lycantropos/gon | b3f811ece5989d1623b17d633a84071fbff6dd69 | [
"MIT"
] | 10 | 2020-07-18T12:55:52.000Z | 2022-03-20T07:09:10.000Z | tests/base_tests/linear_tests/test_translate.py | lycantropos/gon | b3f811ece5989d1623b17d633a84071fbff6dd69 | [
"MIT"
] | 52 | 2019-07-11T16:59:01.000Z | 2022-03-29T19:41:59.000Z | tests/base_tests/linear_tests/test_translate.py | lycantropos/gon | b3f811ece5989d1623b17d633a84071fbff6dd69 | [
"MIT"
] | 1 | 2020-03-22T12:56:07.000Z | 2020-03-22T12:56:07.000Z | from typing import Tuple
from hypothesis import given
from gon.base import Linear
from gon.hints import Scalar
from . import strategies
@given(strategies.linear_geometries_with_coordinates_pairs)
def test_isometry(linear_with_steps: Tuple[Linear, Scalar, Scalar]) -> None:
linear, step_x, step_y = linear_with_st... | 24.352941 | 76 | 0.78744 | 59 | 414 | 5.305085 | 0.474576 | 0.044728 | 0.095847 | 0.063898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142512 | 414 | 16 | 77 | 25.875 | 0.88169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.5 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6b7fa6b96f359bdd8b922d5758f352be04540589 | 8,699 | py | Python | cdrouter/users.py | qacafe/cdrouter.py | 34a1b031b0325ec5ed363bf3097f242c8535c824 | [
"MIT"
] | 4 | 2017-10-27T00:29:30.000Z | 2020-05-18T07:39:18.000Z | cdrouter/users.py | qacafe/cdrouter.py | 34a1b031b0325ec5ed363bf3097f242c8535c824 | [
"MIT"
] | 7 | 2017-07-28T19:29:25.000Z | 2020-09-02T14:44:35.000Z | cdrouter/users.py | qacafe/cdrouter.py | 34a1b031b0325ec5ed363bf3097f242c8535c824 | [
"MIT"
] | 5 | 2017-07-28T19:15:12.000Z | 2020-08-26T20:09:09.000Z | #
# Copyright (c) 2017-2020 by QA Cafe.
# All Rights Reserved.
#
"""Module for accessing CDRouter Users."""
import collections
from marshmallow import Schema, fields, post_load
from .cdr_error import CDRouterError
from .cdr_datetime import DateTime
from .filters import Field as field
class User(object):
"""Mode... | 39.184685 | 128 | 0.623865 | 1,095 | 8,699 | 4.908676 | 0.140639 | 0.050233 | 0.031256 | 0.042419 | 0.457488 | 0.424372 | 0.384558 | 0.355163 | 0.308651 | 0.283907 | 0 | 0.001669 | 0.242442 | 8,699 | 221 | 129 | 39.361991 | 0.813961 | 0.407058 | 0 | 0.179775 | 0 | 0 | 0.089026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.168539 | false | 0.146067 | 0.05618 | 0.011236 | 0.550562 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
6b859c42b7df16b9938ddf16799638bee483b3d0 | 603 | py | Python | examples/basic/hello_world_with_magic.py | osomdev/pyshrimp | 72f4425074a2f09a5f5630ca969472f4f5dcc85e | [
"MIT"
] | 6 | 2021-11-28T12:12:02.000Z | 2021-12-16T19:44:46.000Z | examples/basic/hello_world_with_magic.py | osomdev/pyshrimp | 72f4425074a2f09a5f5630ca969472f4f5dcc85e | [
"MIT"
] | null | null | null | examples/basic/hello_world_with_magic.py | osomdev/pyshrimp | 72f4425074a2f09a5f5630ca969472f4f5dcc85e | [
"MIT"
] | null | null | null | #!/usr/bin/env pyshrimp
# $opts: magic
from pyshrimp import log, shell_cmd
print('You can run this as any other script')
print('But then what is the point? :)')
log('You can use log with a bit more details!')
log('The log is initialized by run... but with magic it gets magically invoked!')
log('To do that just add m... | 37.6875 | 99 | 0.729685 | 105 | 603 | 4.171429 | 0.628571 | 0.041096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162521 | 603 | 15 | 100 | 40.2 | 0.867327 | 0.058043 | 0 | 0 | 0 | 0 | 0.756184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6b85d3977252babbda0a06aacc070876d920453c | 272 | py | Python | src/modules/agents/__init__.py | simsimiSION/pymarl-algorithm-extension | 79aff768db51e5454d35908f0ea325a89708a352 | [
"Apache-2.0"
] | 10 | 2020-09-26T02:30:13.000Z | 2022-02-27T14:03:03.000Z | src/modules/agents/__init__.py | simsimiSION/pymarl-algorithm-extension | 79aff768db51e5454d35908f0ea325a89708a352 | [
"Apache-2.0"
] | 1 | 2020-09-26T02:32:18.000Z | 2020-09-26T07:13:52.000Z | src/modules/agents/__init__.py | simsimiSION/pymarl-algorithm-extension-via-starcraft | 79aff768db51e5454d35908f0ea325a89708a352 | [
"Apache-2.0"
] | null | null | null | REGISTRY = {}
from .rnn_agent import RNNAgent
from .commnet_agent import CommAgent
from .g2a_agent import G2AAgent
from .maven_agent import MAVENAgent
REGISTRY["rnn"] = RNNAgent
REGISTRY['commnet'] = CommAgent
REGISTRY['g2a'] = G2AAgent
REGISTRY['maven'] = MAVENAgent
| 19.428571 | 36 | 0.772059 | 33 | 272 | 6.242424 | 0.363636 | 0.213592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016878 | 0.128676 | 272 | 13 | 37 | 20.923077 | 0.852321 | 0 | 0 | 0 | 0 | 0 | 0.066421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
6b88c942987b6d8246f39152e51718221fdb52a8 | 199 | py | Python | codigos-aula/cod3.py | maumneto/exercicio-python | bd57cd9f3b48c76ea3f8195544d347bc1b0c943e | [
"MIT"
] | null | null | null | codigos-aula/cod3.py | maumneto/exercicio-python | bd57cd9f3b48c76ea3f8195544d347bc1b0c943e | [
"MIT"
] | null | null | null | codigos-aula/cod3.py | maumneto/exercicio-python | bd57cd9f3b48c76ea3f8195544d347bc1b0c943e | [
"MIT"
] | 1 | 2020-04-27T15:01:10.000Z | 2020-04-27T15:01:10.000Z | # import math
peso = float(input('Qual o seu peso: '))
altura = float(input('Qual a sua altura: '))
imc = peso/(altura*altura)
# imc = peso/(math.pow(altura, 2))
print('O resultado do IMC é ', imc) | 24.875 | 44 | 0.653266 | 33 | 199 | 3.939394 | 0.545455 | 0.153846 | 0.215385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006024 | 0.165829 | 199 | 8 | 45 | 24.875 | 0.777108 | 0.221106 | 0 | 0 | 0 | 0 | 0.372549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6b8c5f79991a0d5d2b8da7b8042de4627a3732b1 | 116 | py | Python | run.py | Bidulman/bidoyon | d33652c6790c289be5704353dfb4b8e02572e7a3 | [
"MIT"
] | null | null | null | run.py | Bidulman/bidoyon | d33652c6790c289be5704353dfb4b8e02572e7a3 | [
"MIT"
] | null | null | null | run.py | Bidulman/bidoyon | d33652c6790c289be5704353dfb4b8e02572e7a3 | [
"MIT"
] | null | null | null | from app import app
HOST = "localhost"
PORT = 5000
if __name__ == '__main__':
app.run(HOST, PORT, debug=True)
| 14.5 | 35 | 0.672414 | 17 | 116 | 4.117647 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043011 | 0.198276 | 116 | 7 | 36 | 16.571429 | 0.709677 | 0 | 0 | 0 | 0 | 0 | 0.146552 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6b94893bc1a1acda900eb17417a12b27a6b1d7db | 11,869 | py | Python | interpreter/lexical_analysis/lexer.py | rand0musername/CInterpreter | 7874b934e158328f819795cafb2e8781539ec8ae | [
"MIT"
] | null | null | null | interpreter/lexical_analysis/lexer.py | rand0musername/CInterpreter | 7874b934e158328f819795cafb2e8781539ec8ae | [
"MIT"
] | null | null | null | interpreter/lexical_analysis/lexer.py | rand0musername/CInterpreter | 7874b934e158328f819795cafb2e8781539ec8ae | [
"MIT"
] | null | null | null | """ SCI - Simple C Interpreter """
from .token_type import *
from .token import Token
# maps strings that have a special meaning to corresponding tokens
RESERVED_KEYWORDS = {
'char': Token(CHAR, 'char'),
'int': Token(INT, 'int'),
'float': Token(FLOAT, 'float'),
'double': Token(DOUBLE, 'double'),
'... | 32.078378 | 106 | 0.484455 | 1,244 | 11,869 | 4.51045 | 0.139871 | 0.162716 | 0.216539 | 0.172696 | 0.590626 | 0.580289 | 0.534486 | 0.523793 | 0.406166 | 0.344502 | 0 | 0.007549 | 0.375011 | 11,869 | 369 | 107 | 32.165312 | 0.748854 | 0.080377 | 0 | 0.360595 | 0 | 0.007435 | 0.046648 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04461 | false | 0.003717 | 0.007435 | 0 | 0.267658 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6b9cb57765fd5a39b56b2f70b647844d8c77e45d | 218 | py | Python | _modules/utils/html/escape(text)/tests.py | looking-for-a-job/django-examples | dfafa450668cac5c0351f6c7238b8886511229bf | [
"Unlicense"
] | null | null | null | _modules/utils/html/escape(text)/tests.py | looking-for-a-job/django-examples | dfafa450668cac5c0351f6c7238b8886511229bf | [
"Unlicense"
] | null | null | null | _modules/utils/html/escape(text)/tests.py | looking-for-a-job/django-examples | dfafa450668cac5c0351f6c7238b8886511229bf | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
from django.utils.html import escape
"""
https://docs.djangoproject.com/en/dev/ref/utils/#django.utils.html.escape
escape(text)
"""
text = "<script>alert('test')</script>"
print(escape(text))
| 16.769231 | 73 | 0.711009 | 32 | 218 | 4.84375 | 0.6875 | 0.141935 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082569 | 218 | 12 | 74 | 18.166667 | 0.775 | 0.091743 | 0 | 0 | 0 | 0 | 0.29703 | 0.29703 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
6bbc7c8ad7ac01868f7a73cafde84aa8870bf6bb | 316 | py | Python | examples/load.py | KokaKiwi/ryaml | a668d6bbbdbfecc4a90678743e428c358efcd04b | [
"MIT"
] | 14 | 2021-07-14T21:02:14.000Z | 2022-01-28T19:35:05.000Z | examples/load.py | KokaKiwi/ryaml | a668d6bbbdbfecc4a90678743e428c358efcd04b | [
"MIT"
] | 1 | 2021-11-17T16:54:44.000Z | 2021-11-24T07:12:07.000Z | examples/load.py | KokaKiwi/ryaml | a668d6bbbdbfecc4a90678743e428c358efcd04b | [
"MIT"
] | 3 | 2021-07-23T12:31:28.000Z | 2021-11-17T13:28:54.000Z | SRC = """
---
- - college
- -380608299.3165369
- closely: 595052867
born: false
stomach: true
expression: true
chosen: 34749965
somebody: false
- positive
- true
- false
- price
- 2018186817
- average
- young
- -1447308110
"""
import ryaml
for _ in range(1000):
ryaml.loads(SRC)
| 12.153846 | 22 | 0.620253 | 33 | 316 | 5.909091 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244635 | 0.262658 | 316 | 25 | 23 | 12.64 | 0.592275 | 0 | 0 | 0 | 0 | 0 | 0.775316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6bcd91eaaab1cfba3cb590f9b6c1468a79dc76da | 4,231 | py | Python | Python/NeonOcean.S4.Main/NeonOcean/S4/Main/Director.py | NeonOcean/Main | 2d85e6d4428f01294d2d34f1807287b753f7490c | [
"CC-BY-4.0"
] | 1 | 2021-05-20T19:33:44.000Z | 2021-05-20T19:33:44.000Z | Python/NeonOcean.S4.Main/NeonOcean/S4/Main/Director.py | NeonOcean/Main | 2d85e6d4428f01294d2d34f1807287b753f7490c | [
"CC-BY-4.0"
] | 1 | 2020-06-24T22:50:05.000Z | 2020-06-24T22:50:05.000Z | Python/NeonOcean.S4.Main/NeonOcean/S4/Main/Director.py | NeonOcean/S4.Main | 2d85e6d4428f01294d2d34f1807287b753f7490c | [
"CC-BY-4.0"
] | null | null | null | from __future__ import annotations
import typing
import clock
import zone
from NeonOcean.S4.Main import Mods, This
from NeonOcean.S4.Main.Tools import Exceptions
from protocolbuffers import FileSerialization_pb2
from server import client as clientModule
from sims4 import service_manager
from sims4.tuning import insta... | 28.395973 | 167 | 0.769085 | 437 | 4,231 | 7.345538 | 0.292906 | 0.074143 | 0.082866 | 0.09595 | 0.300935 | 0.27757 | 0.257009 | 0.170093 | 0.105296 | 0 | 0 | 0.002479 | 0.142047 | 4,231 | 148 | 168 | 28.587838 | 0.881818 | 0.095486 | 0 | 0.377358 | 0 | 0 | 0.004723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.207547 | false | 0.141509 | 0.09434 | 0.018868 | 0.386792 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
6bcf6ea936d8dbffc14bdf2ee4fabe705cdbdd04 | 609 | py | Python | rest_models/backend/utils.py | matheusmatos/django-rest-models | 18da71bd921064279b03129aac38d3fbb9e29ae2 | [
"BSD-2-Clause"
] | 61 | 2016-12-05T09:09:49.000Z | 2022-03-09T13:23:06.000Z | rest_models/backend/utils.py | matheusmatos/django-rest-models | 18da71bd921064279b03129aac38d3fbb9e29ae2 | [
"BSD-2-Clause"
] | 51 | 2016-12-07T10:19:52.000Z | 2022-03-11T23:35:23.000Z | rest_models/backend/utils.py | matheusmatos/django-rest-models | 18da71bd921064279b03129aac38d3fbb9e29ae2 | [
"BSD-2-Clause"
] | 18 | 2017-03-11T18:07:17.000Z | 2022-03-09T13:14:40.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import logging
logger = logging.getLogger(__name__)
def message_from_response(response):
return "[%d]%s" % (
response.status_code,
response.text if '<!DOCTYPE html>' not in response.text[:30] else re... | 24.36 | 89 | 0.696223 | 72 | 609 | 5.666667 | 0.694444 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006198 | 0.205255 | 609 | 24 | 90 | 25.375 | 0.836777 | 0.034483 | 0 | 0 | 0 | 0 | 0.035836 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.235294 | 0.176471 | 0.647059 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
6bdfe86577897cd6d6d2f3cb9416925f907993ee | 1,395 | py | Python | src/opts.py | xdr940/som-TSP | 648229bef42612075c662f4fb702b4183a98f831 | [
"MIT"
] | null | null | null | src/opts.py | xdr940/som-TSP | 648229bef42612075c662f4fb702b4183a98f831 | [
"MIT"
] | null | null | null | src/opts.py | xdr940/som-TSP | 648229bef42612075c662f4fb702b4183a98f831 | [
"MIT"
] | null | null | null |
import argparse
class OPT:
def __init__(self):
self.parser = argparse.ArgumentParser(description='M2CT2020')
# -------------------------------
self.parser.add_argument('--wk_root', type=str, default='/home/roit/aws/aprojects/M2CT2020/proj')
self.parser.add_argument('--data_dir',def... | 32.44186 | 107 | 0.506093 | 176 | 1,395 | 3.875 | 0.414773 | 0.175953 | 0.190616 | 0.307918 | 0.234604 | 0.131965 | 0.131965 | 0 | 0 | 0 | 0 | 0.134515 | 0.312545 | 1,395 | 42 | 108 | 33.214286 | 0.576642 | 0.02509 | 0 | 0 | 0 | 0 | 0.132841 | 0.028044 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.04 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6bf278b29013b5a1c85aa361f2eb67264749bcc1 | 1,520 | py | Python | tests/test_system.py | adamzhang1987/bt-python-sdk | 00e9e096594df8e650e53b7625da764676ace3cb | [
"MIT"
] | 4 | 2021-12-25T05:06:49.000Z | 2022-03-23T02:43:54.000Z | tests/test_system.py | adamzhang1987/python-bt-sdk | 00e9e096594df8e650e53b7625da764676ace3cb | [
"MIT"
] | null | null | null | tests/test_system.py | adamzhang1987/python-bt-sdk | 00e9e096594df8e650e53b7625da764676ace3cb | [
"MIT"
] | null | null | null | import unittest
import warnings
from pybt.system import System
from pybt.exceptions import InvalidAPIKey
from .config import CONFIG
class ClientTestCase(unittest.TestCase):
def setUp(self):
warnings.simplefilter('ignore', ResourceWarning)
self.api = System(CONFIG.get("panel_address"), CONFIG.get(... | 38.974359 | 96 | 0.678289 | 195 | 1,520 | 5.041026 | 0.251282 | 0.092574 | 0.091556 | 0.142421 | 0.430315 | 0.225839 | 0 | 0 | 0 | 0 | 0 | 0.001635 | 0.195395 | 1,520 | 39 | 97 | 38.974359 | 0.802126 | 0 | 0 | 0 | 0 | 0 | 0.069034 | 0 | 0 | 0 | 0 | 0 | 0.433333 | 1 | 0.233333 | false | 0 | 0.166667 | 0 | 0.433333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6bfe75fcc21638c1d23812648fed589172104138 | 719 | py | Python | warning_exceptions.py | lmokto/allexceptions | 4cdbda52ea00d8022240530649ea85557c1621b2 | [
"MIT"
] | null | null | null | warning_exceptions.py | lmokto/allexceptions | 4cdbda52ea00d8022240530649ea85557c1621b2 | [
"MIT"
] | null | null | null | warning_exceptions.py | lmokto/allexceptions | 4cdbda52ea00d8022240530649ea85557c1621b2 | [
"MIT"
] | null | null | null | '''
Warning Categories
There are also several exceptions defined for use with the warnings module.
Warning
The base class for all warnings.
UserWarning
Base class for warnings coming from user code.
DeprecationWarning
Used for features no longer being maintained.
PendingDeprecationWarning
Used for f... | 21.787879 | 83 | 0.785814 | 96 | 719 | 5.885417 | 0.645833 | 0.049558 | 0.042478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191933 | 719 | 32 | 84 | 22.46875 | 0.972461 | 1.055633 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6bffafd8116223265f438b188d83e2f50ea59da7 | 409 | py | Python | khan/formatter/__init__.py | globocom/mongo-top | dfa7ebc70a61db2eba31562785a725b15322d659 | [
"MIT"
] | null | null | null | khan/formatter/__init__.py | globocom/mongo-top | dfa7ebc70a61db2eba31562785a725b15322d659 | [
"MIT"
] | null | null | null | khan/formatter/__init__.py | globocom/mongo-top | dfa7ebc70a61db2eba31562785a725b15322d659 | [
"MIT"
] | null | null | null | import sys
import inspect
from .table_top import TopTable
from .table_replication import ReplicationTable
def formatter_factory(command_name):
klasses = inspect.getmembers(sys.modules[__name__], inspect.isclass)
for klass in klasses:
if klass[1].__formatter_name__ == command_name:
return kl... | 31.461538 | 72 | 0.735941 | 49 | 409 | 5.836735 | 0.612245 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00597 | 0.180929 | 409 | 12 | 73 | 34.083333 | 0.847761 | 0 | 0 | 0 | 0 | 0 | 0.04401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d4057c06118aa5c88bf0d0371596faad4c4a2e23 | 351 | py | Python | app/lists/serializers.py | marcosvbras/inimex-api | 1d19289d23bc2cd08672aa6d052803149df7af3e | [
"WTFPL"
] | null | null | null | app/lists/serializers.py | marcosvbras/inimex-api | 1d19289d23bc2cd08672aa6d052803149df7af3e | [
"WTFPL"
] | null | null | null | app/lists/serializers.py | marcosvbras/inimex-api | 1d19289d23bc2cd08672aa6d052803149df7af3e | [
"WTFPL"
] | 3 | 2019-09-06T17:02:30.000Z | 2021-10-25T23:57:52.000Z | from rest_framework import serializers
from rest_framework.pagination import PageNumberPagination
from django.conf import settings
from .models import MyList
class MyListSerializer(serializers.ModelSerializer):
class Meta:
model = MyList
fields = '__all__'
class MyListPagination(PageNumberPagination):
page_si... | 25.071429 | 58 | 0.837607 | 39 | 351 | 7.307692 | 0.589744 | 0.05614 | 0.119298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11396 | 351 | 14 | 59 | 25.071429 | 0.916399 | 0 | 0 | 0 | 0 | 0 | 0.019886 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d4073af1665118661f9a408cb3cc54b627fb7698 | 1,450 | py | Python | hphp/tools/gdb/gdbutils.py | tmotyl/hiphop-php | 049793858aa930a0b8fc35ad3570f2d491f433eb | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2015-04-10T10:46:00.000Z | 2015-04-10T10:46:00.000Z | hphp/tools/gdb/gdbutils.py | tmotyl/hiphop-php | 049793858aa930a0b8fc35ad3570f2d491f433eb | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2017-04-10T11:50:15.000Z | 2017-04-10T11:50:15.000Z | hphp/tools/gdb/gdbutils.py | tmotyl/hiphop-php | 049793858aa930a0b8fc35ad3570f2d491f433eb | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | """
Assorted utilities for HHVM GDB bindings.
"""
# @lint-avoid-python-3-compatibility-imports
import collections
import functools
import gdb
#------------------------------------------------------------------------------
# Memoization.
def memoized(func):
"""Simple memoization decorator that ignores **kwargs."... | 21.014493 | 79 | 0.54069 | 155 | 1,450 | 4.987097 | 0.470968 | 0.046572 | 0.050453 | 0.073739 | 0.062096 | 0.062096 | 0 | 0 | 0 | 0 | 0 | 0.001736 | 0.205517 | 1,450 | 68 | 80 | 21.323529 | 0.669271 | 0.323448 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.085714 | 0.114286 | 0.514286 | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
d4097c39c8b8133e3ea7bc8604a227b08be7c9aa | 3,738 | py | Python | utility/massFractionsEagleXG.py | jrminter/dtsa2scripts | a7a4f3a63f47f0a8abe7ee13c72f5a27196c3a1b | [
"MIT"
] | 2 | 2018-04-19T12:25:29.000Z | 2018-11-24T12:55:46.000Z | utility/massFractionsEagleXG.py | jrminter/dtsa2Scripts | a7a4f3a63f47f0a8abe7ee13c72f5a27196c3a1b | [
"MIT"
] | null | null | null | utility/massFractionsEagleXG.py | jrminter/dtsa2Scripts | a7a4f3a63f47f0a8abe7ee13c72f5a27196c3a1b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
DTSA-II Script - J. R. Minter - 2018-07-30
massFractionsEagleXG.py
Date Who Comment
---------- --- -----------------------------------------------
2018-07-30 JRM Mass fractions the easy way for EagleXG rev sort
2018-10-02 JRM Change name to remove spaces. This made it easier
... | 30.145161 | 189 | 0.615302 | 477 | 3,738 | 4.811321 | 0.42348 | 0.073203 | 0.164706 | 0.183007 | 0.303704 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101541 | 0.235955 | 3,738 | 123 | 190 | 30.390244 | 0.702031 | 0.047887 | 0 | 0 | 0 | 0 | 0.102316 | 0.057726 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.220588 | null | null | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d42b330676d300e0e99fcf26904a014163f95307 | 4,530 | py | Python | ThreadFixProApi/Applications/_utils/_team.py | denimgroup/threadfix-python-api | 5a0a240583cbe4aa5f0813e41e17e9ed7bd61035 | [
"MIT"
] | 1 | 2020-09-18T15:21:39.000Z | 2020-09-18T15:21:39.000Z | ThreadFixProApi/Applications/_utils/_team.py | denimgroup/threadfix-python-api | 5a0a240583cbe4aa5f0813e41e17e9ed7bd61035 | [
"MIT"
] | 1 | 2021-07-02T20:46:59.000Z | 2021-07-15T20:15:08.000Z | ThreadFixProApi/Applications/_utils/_team.py | denimgroup/threadfix-python-api | 5a0a240583cbe4aa5f0813e41e17e9ed7bd61035 | [
"MIT"
] | 2 | 2020-09-18T15:21:47.000Z | 2021-06-13T09:07:30.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = "Evan Schlesinger"
__copyright__ = "(C) 2019 Denim group"
__contributors__ = ["Evan Schlesinger"]
__status__ = "Production"
__license__ = "MIT"
from ...API import API
class TeamsAPI(API):
def __init__(self, host, api_key, verify_ssl, timeout, headers, u... | 43.557692 | 196 | 0.635982 | 622 | 4,530 | 4.474277 | 0.287781 | 0.040963 | 0.058211 | 0.025153 | 0.314768 | 0.289616 | 0.213439 | 0.213439 | 0.213439 | 0.213439 | 0 | 0.008055 | 0.260044 | 4,530 | 104 | 197 | 43.557692 | 0.822196 | 0.470199 | 0 | 0 | 0 | 0 | 0.143073 | 0.010579 | 0 | 0 | 0 | 0.009615 | 0 | 1 | 0.277778 | false | 0 | 0.027778 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d43760c9d766f64d51be16d453462e00fca36cbd | 1,830 | py | Python | app/display_modules/beta_div/tests/test_module.py | MetaGenScope/metagenscope-server | 609cd57c626c857c8efde8237a1f22f4d1e6065d | [
"MIT"
] | null | null | null | app/display_modules/beta_div/tests/test_module.py | MetaGenScope/metagenscope-server | 609cd57c626c857c8efde8237a1f22f4d1e6065d | [
"MIT"
] | null | null | null | app/display_modules/beta_div/tests/test_module.py | MetaGenScope/metagenscope-server | 609cd57c626c857c8efde8237a1f22f4d1e6065d | [
"MIT"
] | null | null | null | """Test suite for Beta Diversity display module."""
from app.display_modules.beta_div import BetaDiversityDisplayModule
from app.display_modules.beta_div.models import BetaDiversityResult
from app.display_modules.beta_div import MODULE_NAME
from app.display_modules.display_module_base_test import BaseDisplayModuleTest... | 41.590909 | 89 | 0.718579 | 211 | 1,830 | 5.933649 | 0.322275 | 0.055911 | 0.044728 | 0.067093 | 0.209265 | 0.169329 | 0.054313 | 0 | 0 | 0 | 0 | 0.001386 | 0.211475 | 1,830 | 43 | 90 | 42.55814 | 0.866251 | 0.178689 | 0 | 0.076923 | 0 | 0 | 0.011549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.307692 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d44d856cef11ea1252375be29b14148b59e0e68b | 216 | py | Python | app/__init__.py | sd19surf/flask | 3369b3bd74ea7e0489f3c3ba14482aaf89d33a88 | [
"MIT"
] | null | null | null | app/__init__.py | sd19surf/flask | 3369b3bd74ea7e0489f3c3ba14482aaf89d33a88 | [
"MIT"
] | null | null | null | app/__init__.py | sd19surf/flask | 3369b3bd74ea7e0489f3c3ba14482aaf89d33a88 | [
"MIT"
] | null | null | null | from flask import Flask
def create_app():
app = Flask(__name__)
# register routes with app instead of current_app:
from app.main import bp as main_bp
app.register_blueprint(main_bp)
return app | 19.636364 | 54 | 0.717593 | 33 | 216 | 4.424242 | 0.545455 | 0.082192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226852 | 216 | 11 | 55 | 19.636364 | 0.874252 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d44d923af409bfb4bde17540fc340f4e190171bb | 1,156 | py | Python | newspaper_crawler/crawling_jobs/futurasciences_crawling_job.py | jeugregg/newspaper-crawler | 773ac538f723fe00c72b2838e99fda16b8c04aa6 | [
"MIT"
] | 8 | 2019-04-09T07:52:22.000Z | 2021-05-03T08:36:57.000Z | newspaper_crawler/crawling_jobs/futurasciences_crawling_job.py | jeugregg/newspaper-crawler | 773ac538f723fe00c72b2838e99fda16b8c04aa6 | [
"MIT"
] | null | null | null | newspaper_crawler/crawling_jobs/futurasciences_crawling_job.py | jeugregg/newspaper-crawler | 773ac538f723fe00c72b2838e99fda16b8c04aa6 | [
"MIT"
] | 3 | 2020-01-01T07:29:03.000Z | 2021-06-02T07:11:40.000Z | from .base_crawling_job import BaseCrawlingJob
from ..spiders import FuturaSciencesSpider
class FuturaSciencesCrawlingJob(BaseCrawlingJob):
def __init__(self, has_database):
BaseCrawlingJob.__init__(self, has_database)
self.newspaper = "futura-sciences"
self.NewspaperSpider = FuturaSc... | 48.166667 | 82 | 0.638408 | 123 | 1,156 | 5.894309 | 0.292683 | 0.212414 | 0.17931 | 0.289655 | 0.533793 | 0.533793 | 0.496552 | 0.496552 | 0 | 0 | 0 | 0 | 0.227509 | 1,156 | 23 | 83 | 50.26087 | 0.81187 | 0 | 0 | 0 | 0 | 0 | 0.50519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d4513f9836856b1e3c94093ffb48dde879857c46 | 82 | py | Python | dwconv1d/__init__.py | ashishpatel26/depthwiseconv1d | f03ac098993f19bb57994f77fc35af7754e48519 | [
"MIT"
] | 6 | 2020-09-17T13:14:03.000Z | 2021-11-08T09:30:24.000Z | dwconv1d/__init__.py | ashishpatel26/depthwiseconv1d | f03ac098993f19bb57994f77fc35af7754e48519 | [
"MIT"
] | 2 | 2020-09-21T14:12:47.000Z | 2020-09-21T15:04:54.000Z | dwconv1d/__init__.py | Doobrovskiy/depthwiseconv1d | f03ac098993f19bb57994f77fc35af7754e48519 | [
"MIT"
] | 2 | 2021-01-31T16:17:45.000Z | 2021-08-22T09:47:29.000Z | from .depthwiseconv1d import DepthwiseConv1D
__all__ = [
'DepthwiseConv1D'
]
| 13.666667 | 44 | 0.756098 | 6 | 82 | 9.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044118 | 0.170732 | 82 | 5 | 45 | 16.4 | 0.808824 | 0 | 0 | 0 | 0 | 0 | 0.182927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d45a189f7a67da4ee388e9d5a82353cf71c9a894 | 1,575 | py | Python | backend/posts/views.py | shakib609/django-redis-blog | 538f7dc3962600a985a97e26a778a1d42db98ae6 | [
"MIT"
] | null | null | null | backend/posts/views.py | shakib609/django-redis-blog | 538f7dc3962600a985a97e26a778a1d42db98ae6 | [
"MIT"
] | 6 | 2021-03-09T20:16:43.000Z | 2022-02-26T18:55:13.000Z | backend/posts/views.py | shakib609/django-redis-blog | 538f7dc3962600a985a97e26a778a1d42db98ae6 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.utils.decorators import method_decorator
from django.views.decorators.cache import cache_page
from django.core.cache.backends.base import DEFAULT_TIMEOUT
from rest_framework import viewsets
from rest_framework.permissions import IsAuthenticatedOrReadOnly, IsAdminUser
from re... | 37.5 | 77 | 0.793651 | 162 | 1,575 | 7.567901 | 0.364198 | 0.032626 | 0.055465 | 0.112561 | 0.249592 | 0.249592 | 0.156607 | 0.156607 | 0.156607 | 0.156607 | 0 | 0 | 0.126984 | 1,575 | 41 | 78 | 38.414634 | 0.891636 | 0 | 0 | 0.322581 | 0 | 0 | 0.013333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.322581 | 0.064516 | 0.903226 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d46242e8219ab0aebbf831d57a60c5ed25f0a96e | 381 | py | Python | tests/lupin/validators/test_in.py | Clustaar/lupin | 9ef73642d84a99adb80abf5a922a9422ddae9254 | [
"MIT"
] | 22 | 2017-10-18T08:27:20.000Z | 2022-03-25T18:53:43.000Z | tests/lupin/validators/test_in.py | Clustaar/lupin | 9ef73642d84a99adb80abf5a922a9422ddae9254 | [
"MIT"
] | 5 | 2019-09-16T15:31:55.000Z | 2022-02-10T08:29:14.000Z | tests/lupin/validators/test_in.py | Clustaar/lupin | 9ef73642d84a99adb80abf5a922a9422ddae9254 | [
"MIT"
] | null | null | null | import pytest
from lupin.errors import InvalidIn
from lupin.validators import In
@pytest.fixture
def validator():
return In({1, 2, 3})
class TestCall(object):
def test_raise_error_if_invalid_value(self, validator):
with pytest.raises(InvalidIn):
validator(4, [])
def test_does_nothi... | 20.052632 | 59 | 0.698163 | 50 | 381 | 5.12 | 0.62 | 0.070313 | 0.140625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016447 | 0.2021 | 381 | 18 | 60 | 21.166667 | 0.825658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.083333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d4788d540defaeb01a34cf6b825ae3c75322a5c4 | 733 | py | Python | setup.py | MiltFra/discord-exchange | 66764a22b74a09ab2f8704884164a5deadddb17a | [
"Apache-2.0"
] | null | null | null | setup.py | MiltFra/discord-exchange | 66764a22b74a09ab2f8704884164a5deadddb17a | [
"Apache-2.0"
] | null | null | null | setup.py | MiltFra/discord-exchange | 66764a22b74a09ab2f8704884164a5deadddb17a | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
setup(
name='discord-exchange',
version='0.0.1',
description='A Discord bot to trade on arbitrary quantities',
url='https://github.com/miltfra/discord-exchange',
author='Franz Miltz',
author_email='franz@miltz.me',
license='Apache License 2.0',
packages=['di... | 31.869565 | 65 | 0.622101 | 80 | 733 | 5.6625 | 0.675 | 0.099338 | 0.165563 | 0.172185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023091 | 0.231924 | 733 | 22 | 66 | 33.318182 | 0.781528 | 0 | 0 | 0 | 0 | 0 | 0.583902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.047619 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2e01d2e9a6b19ce006be2a1ffc90e405a57d99e2 | 3,025 | py | Python | monero_glue/protocol/tsx_sign_state.py | ph4r05/monero-agent | 0bac0e6f33142b2bb885565bfd1ef8ac04559280 | [
"MIT"
] | 20 | 2018-04-05T22:06:10.000Z | 2021-09-18T10:43:44.000Z | monero_glue/protocol/tsx_sign_state.py | ph4r05/monero-agent | 0bac0e6f33142b2bb885565bfd1ef8ac04559280 | [
"MIT"
] | null | null | null | monero_glue/protocol/tsx_sign_state.py | ph4r05/monero-agent | 0bac0e6f33142b2bb885565bfd1ef8ac04559280 | [
"MIT"
] | 5 | 2018-08-06T15:06:04.000Z | 2021-07-16T01:58:43.000Z | from monero_glue.compat.micropython import const
class TState(object):
"""
Transaction state
"""
START = const(0)
INIT = const(1)
INP_CNT = const(2)
INPUT = const(3)
INPUT_DONE = const(4)
INPUT_PERM = const(5)
INPUT_VINS = const(6)
INPUT_ALL_DONE = const(7)
OUTPUT = co... | 27.008929 | 69 | 0.592727 | 418 | 3,025 | 4.131579 | 0.155502 | 0.107122 | 0.187609 | 0.113492 | 0.62073 | 0.519398 | 0.420382 | 0.358425 | 0.254777 | 0.202664 | 0 | 0.010849 | 0.299174 | 3,025 | 111 | 70 | 27.252252 | 0.803774 | 0.00562 | 0 | 0.151163 | 0 | 0 | 0.056484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22093 | false | 0 | 0.011628 | 0.034884 | 0.465116 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2e09091319e05f999c1f20835dcd63cb7c9ff30b | 1,306 | py | Python | 002-V2rayPool/core/conf.py | xhunmon/PythonIsTools | 1ec9b8c658bde379929b112bcb0ea2a9601e2164 | [
"Apache-2.0"
] | 18 | 2021-09-23T09:41:38.000Z | 2022-03-31T15:42:06.000Z | 002-V2rayPool/core/conf.py | xhunmon/PythonIsTools | 1ec9b8c658bde379929b112bcb0ea2a9601e2164 | [
"Apache-2.0"
] | null | null | null | 002-V2rayPool/core/conf.py | xhunmon/PythonIsTools | 1ec9b8c658bde379929b112bcb0ea2a9601e2164 | [
"Apache-2.0"
] | 5 | 2021-09-24T18:33:26.000Z | 2022-03-12T14:30:52.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import configparser
import os
class Config:
__v2ray_core_path = None
__v2ray_node_path = None
def __init__(self):
self.config = configparser.ConfigParser()
parent_dir = os.path.dirname(os.path.abspath(__file__))
self.config_path = os... | 26.653061 | 80 | 0.651608 | 165 | 1,306 | 4.787879 | 0.272727 | 0.126582 | 0.098734 | 0.096203 | 0.192405 | 0.141772 | 0 | 0 | 0 | 0 | 0 | 0.016899 | 0.229709 | 1,306 | 48 | 81 | 27.208333 | 0.76839 | 0.143951 | 0 | 0.137931 | 0 | 0 | 0.030165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0 | 0.068966 | 0.068966 | 0.586207 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
2e10323e22e4aef7b5fddad7faf52e3501b3b95d | 150 | py | Python | kata/odds.py | PauloBernal/Codewars | b5db67d1b13168d3aae7310815b7de0894608e9c | [
"MIT"
] | null | null | null | kata/odds.py | PauloBernal/Codewars | b5db67d1b13168d3aae7310815b7de0894608e9c | [
"MIT"
] | null | null | null | kata/odds.py | PauloBernal/Codewars | b5db67d1b13168d3aae7310815b7de0894608e9c | [
"MIT"
] | null | null | null | # Solution by PauloBA
def odds(values):
oddNums = []
for i in values:
if i % 2 == 1:
oddNums.append(i)
return oddNums | 18.75 | 29 | 0.54 | 20 | 150 | 4.05 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.36 | 150 | 8 | 30 | 18.75 | 0.822917 | 0.126667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2e10c0fcdfc286e2ccc5f668b041bff504538057 | 5,778 | py | Python | mdso/data/gen_toeplitz_Rmat.py | artk2019/AISTAT_2019_107 | 31475dc9b54404a01e519111250377ed9bd85820 | [
"BSD-3-Clause"
] | null | null | null | mdso/data/gen_toeplitz_Rmat.py | artk2019/AISTAT_2019_107 | 31475dc9b54404a01e519111250377ed9bd85820 | [
"BSD-3-Clause"
] | null | null | null | mdso/data/gen_toeplitz_Rmat.py | artk2019/AISTAT_2019_107 | 31475dc9b54404a01e519111250377ed9bd85820 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Generate various Similarity matrix
through the MatrixGenerator methods
gen_matrix for synthetic data, and
gen_E_coli_matrix for DNA data.
"""
import numpy as np
# from scipy import sparse as sp
from scipy.linalg import toeplitz
def gen_lambdas(type_matrix, n):
''... | 34.189349 | 92 | 0.567497 | 779 | 5,778 | 4.056483 | 0.264442 | 0.037975 | 0.041139 | 0.024051 | 0.132911 | 0.11962 | 0.111392 | 0.093671 | 0.061392 | 0.061392 | 0 | 0.011881 | 0.315334 | 5,778 | 168 | 93 | 34.392857 | 0.786906 | 0.43856 | 0 | 0.217391 | 1 | 0 | 0.064998 | 0.00715 | 0 | 0 | 0 | 0.011905 | 0 | 1 | 0.072464 | false | 0 | 0.028986 | 0 | 0.15942 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2e13e6d8748374f8fa2e21a7c87cba505f770c89 | 1,031 | py | Python | 00_TrackerApp/backend/repositories/user.py | JADSN/ReactCodes | ddcf80dc9c0a218e8683b77f40b441fc2381692e | [
"MIT"
] | null | null | null | 00_TrackerApp/backend/repositories/user.py | JADSN/ReactCodes | ddcf80dc9c0a218e8683b77f40b441fc2381692e | [
"MIT"
] | null | null | null | 00_TrackerApp/backend/repositories/user.py | JADSN/ReactCodes | ddcf80dc9c0a218e8683b77f40b441fc2381692e | [
"MIT"
] | null | null | null | # from datetime import datetime, timezone
# from schemas import UserItem
# from models import UserItem
# from dependencies import Session, Depends, HTTPException, status, get_db, oauth2_scheme
# from tokenizer import TokenData, SECRET_KEY, ALGORITHM
# from hasher import hash_password
# from jose import jwt, JWTErro... | 27.131579 | 89 | 0.689622 | 134 | 1,031 | 5.141791 | 0.425373 | 0.040639 | 0.05225 | 0.055152 | 0.060958 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004884 | 0.205626 | 1,031 | 37 | 90 | 27.864865 | 0.836386 | 0.940834 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2e1a15227951c43934c04c79890491c3fdaeba31 | 894 | py | Python | azure-de10nano-document/sensor-aggregation-reference-design-for-azure/sw/software-code/modules/RfsModule/test/suite_test.py | daisukeiot/terasic-de10-nano-kit | 8f7d94ff68c06a9a7b70ec15d11529735723df54 | [
"MIT"
] | null | null | null | azure-de10nano-document/sensor-aggregation-reference-design-for-azure/sw/software-code/modules/RfsModule/test/suite_test.py | daisukeiot/terasic-de10-nano-kit | 8f7d94ff68c06a9a7b70ec15d11529735723df54 | [
"MIT"
] | null | null | null | azure-de10nano-document/sensor-aggregation-reference-design-for-azure/sw/software-code/modules/RfsModule/test/suite_test.py | daisukeiot/terasic-de10-nano-kit | 8f7d94ff68c06a9a7b70ec15d11529735723df54 | [
"MIT"
] | null | null | null | # Copyright (C) 2021 Intel Corporation
# Licensed under the MIT license. See LICENSE file in the project root for
# full license information.
import sys
sys.path.append('../')
import unittest
import gsensor_test as g_test
import rfssensor_test as rfs_test
import sensor_test as s_test
import threshold_test as th_test
... | 38.869565 | 89 | 0.828859 | 117 | 894 | 6.119658 | 0.401709 | 0.108939 | 0.160615 | 0.307263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004914 | 0.089485 | 894 | 23 | 90 | 38.869565 | 0.874693 | 0.152125 | 0 | 0 | 0 | 0 | 0.003974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4375 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
2e249eca670e1ccf3a49346d0dcfed7863c753e0 | 15,717 | py | Python | assessment_plan_modeling/ap_parsing/augmentation_lib_test.py | pedersor/google-research | 6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6 | [
"Apache-2.0"
] | null | null | null | assessment_plan_modeling/ap_parsing/augmentation_lib_test.py | pedersor/google-research | 6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6 | [
"Apache-2.0"
] | null | null | null | assessment_plan_modeling/ap_parsing/augmentation_lib_test.py | pedersor/google-research | 6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# 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 applicab... | 40.823377 | 104 | 0.577655 | 1,560 | 15,717 | 5.471154 | 0.137821 | 0.076977 | 0.099824 | 0.069361 | 0.753134 | 0.724897 | 0.684359 | 0.651318 | 0.612771 | 0.612771 | 0 | 0.015848 | 0.341605 | 15,717 | 384 | 105 | 40.929688 | 0.808949 | 0.044538 | 0 | 0.637982 | 0 | 0 | 0.032146 | 0 | 0 | 0 | 0 | 0 | 0.023739 | 1 | 0.032641 | false | 0 | 0.011869 | 0.005935 | 0.05638 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2e3a08ebc30217ca0e9016faa8042c54461fea78 | 1,080 | py | Python | matrix operation.py | Arjitg450/Python-Programs | 0630422c9002632a91b5ccf75f6cd02308c6e929 | [
"MIT"
] | null | null | null | matrix operation.py | Arjitg450/Python-Programs | 0630422c9002632a91b5ccf75f6cd02308c6e929 | [
"MIT"
] | null | null | null | matrix operation.py | Arjitg450/Python-Programs | 0630422c9002632a91b5ccf75f6cd02308c6e929 | [
"MIT"
] | null | null | null | import numpy as np
names=['arjit','brett','chetan','deval','farukh','govind','harshit']
ndict={'arjit':'0','brett':'1','chetan':'2','deval':'3','farukh':'4',
'govind':'5','harshit':'6'}
year=['2010','2011','2012','2013','2014','2015','2016']
ydict={'2010':'0','2011':'1','2012':'2','2013':'3','2014':'4','2015':... | 30 | 83 | 0.671296 | 207 | 1,080 | 3.444444 | 0.236715 | 0.067321 | 0.100982 | 0.134642 | 0.619916 | 0.619916 | 0.619916 | 0.563815 | 0.563815 | 0.431978 | 0 | 0.269006 | 0.05 | 1,080 | 35 | 84 | 30.857143 | 0.425926 | 0.042593 | 0 | 0.56 | 0 | 0 | 0.145773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2e56e95ba4a955c7f34adec8308d063127226372 | 320 | py | Python | blog/urls.py | shinnlove/datacheck | b2506e0f2ed0ca11cc6afb75512a44d163ab7aa6 | [
"Apache-2.0"
] | 1 | 2019-08-20T10:56:05.000Z | 2019-08-20T10:56:05.000Z | blog/urls.py | shinnlove/datacheck | b2506e0f2ed0ca11cc6afb75512a44d163ab7aa6 | [
"Apache-2.0"
] | null | null | null | blog/urls.py | shinnlove/datacheck | b2506e0f2ed0ca11cc6afb75512a44d163ab7aa6 | [
"Apache-2.0"
] | null | null | null | from django.urls import path,include
import blog.views
from django.conf.urls import url
urlpatterns=[
path('hello_world',blog.views.hello_world),
path('content',blog.views.article_content),
url(r'^index/', blog.views.index),
url(r'^index2/', blog.views.index2),
#url(r'all',blog.all,name='all'),
] | 26.666667 | 47 | 0.696875 | 48 | 320 | 4.583333 | 0.416667 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007168 | 0.128125 | 320 | 12 | 48 | 26.666667 | 0.781362 | 0.1 | 0 | 0 | 0 | 0 | 0.114583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
2e5836a2d219e7b90309c2ec82ede8aa020e069c | 648 | py | Python | apps/core/models/photos.py | CosmosTUe/Cosmos | cec2541d3f8ea1944edfaab2090916ba66f9d2f3 | [
"MIT"
] | 1 | 2021-02-01T19:27:07.000Z | 2021-02-01T19:27:07.000Z | apps/core/models/photos.py | CosmosTUe/Cosmos | cec2541d3f8ea1944edfaab2090916ba66f9d2f3 | [
"MIT"
] | 79 | 2020-08-05T09:01:00.000Z | 2022-03-24T11:27:21.000Z | apps/core/models/photos.py | CosmosTUe/Cosmos | cec2541d3f8ea1944edfaab2090916ba66f9d2f3 | [
"MIT"
] | 3 | 2021-02-22T18:36:52.000Z | 2021-10-13T17:05:44.000Z | from django.db import models
from django.urls import reverse
class PhotoAlbum(models.Model):
title = models.CharField(max_length=255)
date = models.DateField()
album_cover = models.ImageField(upload_to="photos")
def get_absolute_url(self):
return reverse("cosmos_core:photo_album-list")
d... | 28.173913 | 94 | 0.699074 | 79 | 648 | 5.493671 | 0.531646 | 0.069124 | 0.101382 | 0.110599 | 0.138249 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005618 | 0.175926 | 648 | 22 | 95 | 29.454545 | 0.807116 | 0 | 0 | 0.133333 | 0 | 0 | 0.121914 | 0.04321 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.133333 | 0.2 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
2e583b6566091f9885a8ea8fe59a2497871aa35b | 1,693 | py | Python | test_Reader.py | mgood13/bme590hrm | 5eb79e1cfea23386988a9e7e93f668fa15d889da | [
"MIT"
] | null | null | null | test_Reader.py | mgood13/bme590hrm | 5eb79e1cfea23386988a9e7e93f668fa15d889da | [
"MIT"
] | 2 | 2018-10-26T05:07:04.000Z | 2018-10-26T06:13:45.000Z | test_Reader.py | mgood13/bme590hrm | 5eb79e1cfea23386988a9e7e93f668fa15d889da | [
"MIT"
] | null | null | null | def test_csvfinder():
"""Tests that the finder finds all the correct files
:returns test_files: List of .csv files
"""
from Reader import csvfinder
test_files = csvfinder()
assert test_files.count('poorform') == 0
assert test_files.count('wrongend') == 0
assert test_files.count('false.... | 32.557692 | 76 | 0.69876 | 246 | 1,693 | 4.642276 | 0.203252 | 0.118214 | 0.131349 | 0.175131 | 0.52627 | 0.367776 | 0.070053 | 0.070053 | 0.070053 | 0 | 0 | 0.013393 | 0.206143 | 1,693 | 51 | 77 | 33.196078 | 0.83631 | 0.163024 | 0 | 0.057143 | 0 | 0 | 0.153232 | 0 | 0 | 0 | 0 | 0 | 0.628571 | 1 | 0.085714 | false | 0 | 0.085714 | 0 | 0.228571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2e750d34fb2e4c751b9b7f25e4a99b5eea48742c | 1,386 | py | Python | simple_model/utils.py | felipegr/simple-model | 02f435c98e47c8b46a1ab1715c4c0bf8753271b4 | [
"MIT"
] | 76 | 2017-01-31T13:18:10.000Z | 2021-09-11T17:26:23.000Z | simple_model/utils.py | felipegr/simple-model | 02f435c98e47c8b46a1ab1715c4c0bf8753271b4 | [
"MIT"
] | 37 | 2017-07-13T15:20:54.000Z | 2019-07-12T18:41:18.000Z | simple_model/utils.py | felipegr/simple-model | 02f435c98e47c8b46a1ab1715c4c0bf8753271b4 | [
"MIT"
] | 22 | 2017-10-01T20:03:18.000Z | 2021-09-11T17:26:25.000Z | import inspect
import re
import typing
NOT_WORD = re.compile(r'\W')
SNAKE_CASE = re.compile('([a-z0-9])([A-Z])')
SNAKE_CASE_AUX = re.compile('(.)([A-Z][a-z]+)')
_PRIVATE_ATTR_RE = re.compile(r'_[\w\d]+__[\w\d]')
def capitalize_first(string: str) -> str:
return string[0].upper() + string[1:] if string != '' else ... | 24.315789 | 88 | 0.635642 | 198 | 1,386 | 4.262626 | 0.353535 | 0.053318 | 0.056872 | 0.026066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007299 | 0.209235 | 1,386 | 56 | 89 | 24.75 | 0.762774 | 0 | 0 | 0 | 0 | 0 | 0.048341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205128 | false | 0 | 0.076923 | 0.153846 | 0.487179 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
2e8813a7183daea37efd736a6d6233815a40f99b | 255 | py | Python | CorbanDallas1982/Home_work_3/Ex-3.py | kolyasalubov/Lv-639.pythonCore | 06f10669a188318884adb00723127465ebdf2907 | [
"MIT"
] | null | null | null | CorbanDallas1982/Home_work_3/Ex-3.py | kolyasalubov/Lv-639.pythonCore | 06f10669a188318884adb00723127465ebdf2907 | [
"MIT"
] | null | null | null | CorbanDallas1982/Home_work_3/Ex-3.py | kolyasalubov/Lv-639.pythonCore | 06f10669a188318884adb00723127465ebdf2907 | [
"MIT"
] | null | null | null | var_1=int(input('Enter first variable:'))
var_2=int(input('Enter second variable:'))
print(f"First variable {var_1}, second variable {var_2}")
var_1,var_2=var_2,var_1
print(f"After change: The first variable is {var_1} and the second variable is {var_2}") | 51 | 88 | 0.756863 | 49 | 255 | 3.734694 | 0.326531 | 0.10929 | 0.114754 | 0.087432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.098039 | 255 | 5 | 88 | 51 | 0.752174 | 0 | 0 | 0 | 0 | 0 | 0.65625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5ceb9e9a22446e2e0ff56c12aa6233ba5d45f3cc | 39,068 | py | Python | genesys/genesys/simulation/sysarray_models.py | VeriGOOD-ML/public | 8a164a403f35a671ecb57583547229d6ce46a151 | [
"Apache-2.0"
] | 6 | 2021-04-20T06:33:25.000Z | 2022-02-24T06:46:13.000Z | genesys/genesys/simulation/sysarray_models.py | VeriGOOD-ML/public | 8a164a403f35a671ecb57583547229d6ce46a151 | [
"Apache-2.0"
] | 3 | 2021-04-20T04:28:51.000Z | 2021-05-24T05:14:31.000Z | genesys/genesys/simulation/sysarray_models.py | VeriGOOD-ML/public | 8a164a403f35a671ecb57583547229d6ce46a151 | [
"Apache-2.0"
] | 4 | 2021-04-08T16:38:46.000Z | 2021-04-30T05:51:30.000Z | # This file contains the functions for the data access and cycle count models for the Layers executed on the Systolic Array
import logging
import math
import numpy as np
from data_objects import HardwareObject, SAResult_Inflayer, SIMDResult_Inflayer
from layer_object import LayerObject
def conv_access_model(Hardware... | 46.454221 | 169 | 0.657699 | 5,388 | 39,068 | 4.495731 | 0.077951 | 0.023408 | 0.027536 | 0.00772 | 0.752013 | 0.702927 | 0.659621 | 0.646534 | 0.629072 | 0.607192 | 0 | 0.011395 | 0.256476 | 39,068 | 840 | 170 | 46.509524 | 0.822501 | 0.292285 | 0 | 0.654959 | 0 | 0 | 0.056843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014463 | false | 0 | 0.010331 | 0 | 0.028926 | 0.053719 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5cfa5e0dd53d4084a386db6cbe79ecb0285eab6a | 5,219 | py | Python | alembic/versions/3e59d406d707_update_waze_api_fields.py | shaysw/anyway | 35dec531fd4ac79c99d09e684027df017e989ddc | [
"MIT"
] | 69 | 2015-03-30T17:09:46.000Z | 2021-08-15T16:45:47.000Z | alembic/versions/3e59d406d707_update_waze_api_fields.py | shaysw/anyway | 35dec531fd4ac79c99d09e684027df017e989ddc | [
"MIT"
] | 1,368 | 2015-01-12T16:33:52.000Z | 2022-03-31T21:10:18.000Z | alembic/versions/3e59d406d707_update_waze_api_fields.py | shaysw/anyway | 35dec531fd4ac79c99d09e684027df017e989ddc | [
"MIT"
] | 277 | 2015-02-16T17:52:06.000Z | 2022-02-16T18:06:44.000Z | """update waze api fields
Revision ID: 3e59d406d707
Revises: dfac32ad28e9
Create Date: 2020-10-19 16:28:02.553501
"""
# revision identifiers, used by Alembic.
revision = '3e59d406d707'
down_revision = 'dfac32ad28e9'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
from sqlalchem... | 52.19 | 160 | 0.718145 | 708 | 5,219 | 5.077684 | 0.155367 | 0.095688 | 0.140195 | 0.189152 | 0.797497 | 0.732684 | 0.697914 | 0.512935 | 0.312935 | 0.111822 | 0 | 0.011884 | 0.11324 | 5,219 | 99 | 161 | 52.717172 | 0.764909 | 0.061123 | 0 | 0 | 0 | 0 | 0.238791 | 0.070958 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.052632 | 0 | 0.078947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5cff0aca7163752fafe4a968af02388522147750 | 284 | py | Python | main.py | INTJT/conway | 7d3165382b3a691163cae30e33db97c544c043a6 | [
"MIT"
] | null | null | null | main.py | INTJT/conway | 7d3165382b3a691163cae30e33db97c544c043a6 | [
"MIT"
] | null | null | null | main.py | INTJT/conway | 7d3165382b3a691163cae30e33db97c544c043a6 | [
"MIT"
] | null | null | null | if __name__ == "__main__":
from core.editor import Editor
from widgets.editor_window import EditorWindow
from PyQt5 import QtWidgets
editor = Editor()
application = QtWidgets.QApplication([])
window = EditorWindow()
window.show()
application.exec()
| 21.846154 | 50 | 0.693662 | 29 | 284 | 6.482759 | 0.551724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004505 | 0.21831 | 284 | 12 | 51 | 23.666667 | 0.842342 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.