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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
65709d04c9c7fd8cb2f123a6d715187bd84bc4bc | 1,618 | py | Python | example/re_extract.py | alex/httpfuzz | 299712fb6eaa2326f9d31e62dce69498814f6ba1 | [
"BSD-3-Clause"
] | 12 | 2020-12-21T18:34:38.000Z | 2021-02-03T08:59:53.000Z | example/re_extract.py | alex/httpfuzz | 299712fb6eaa2326f9d31e62dce69498814f6ba1 | [
"BSD-3-Clause"
] | null | null | null | example/re_extract.py | alex/httpfuzz | 299712fb6eaa2326f9d31e62dce69498814f6ba1 | [
"BSD-3-Clause"
] | 1 | 2020-12-25T05:39:19.000Z | 2020-12-25T05:39:19.000Z | import sre_parse
import re
import pytest
def extract_literals(r):
ops = sre_parse.parse(r.pattern)
results = []
extract_literals_from_ops(ops, results)
return results
def extract_literals_from_ops(ops, results):
i = 0
while i < len(ops):
op, val = ops[i]
if op == sre_parse.L... | 28.385965 | 70 | 0.524104 | 202 | 1,618 | 3.955446 | 0.252475 | 0.090113 | 0.061327 | 0.165207 | 0.379224 | 0.339174 | 0.259074 | 0.239049 | 0.239049 | 0.239049 | 0 | 0.005396 | 0.312732 | 1,618 | 57 | 71 | 28.385965 | 0.71313 | 0 | 0 | 0.14 | 0 | 0 | 0.069179 | 0 | 0 | 0 | 0 | 0 | 0.04 | 1 | 0.06 | false | 0 | 0.06 | 0 | 0.16 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
65736c85de22e4a6962e443a33364da213fdc7a0 | 920 | py | Python | Day05/py_password_generator.py | MHKomeili/100DaysofCode | a5799011a43f777ddc5ac9e649aa27291313b62b | [
"MIT"
] | null | null | null | Day05/py_password_generator.py | MHKomeili/100DaysofCode | a5799011a43f777ddc5ac9e649aa27291313b62b | [
"MIT"
] | null | null | null | Day05/py_password_generator.py | MHKomeili/100DaysofCode | a5799011a43f777ddc5ac9e649aa27291313b62b | [
"MIT"
] | null | null | null | import random
letters = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L",
"M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]
numbers = ["1", "2", "3", "4", "5", "6", "7", "8", "9",]
symbols = ["@", "#", "%", "&", "*", "?", "-", "_"]
print("Welcome to PyPasswordGenerator")
nr_letters... | 32.857143 | 78 | 0.606522 | 143 | 920 | 3.811189 | 0.475524 | 0.121101 | 0.06055 | 0.082569 | 0.387156 | 0.155963 | 0.155963 | 0.106422 | 0 | 0 | 0 | 0.011524 | 0.151087 | 920 | 27 | 79 | 34.074074 | 0.6863 | 0 | 0 | 0 | 0 | 0 | 0.301087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.315789 | 0.052632 | 0 | 0.052632 | 0.105263 | 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 | 0 | 0 | 0 | 1 |
657679c47a32a882fe44be56f86bcf68c76e2f9d | 608 | py | Python | pybarst/core/__init__.py | matham/pybarst | 93e5d3a8b2c16b8edd8efc57a685703553eff19a | [
"MIT"
] | 2 | 2016-02-22T13:38:42.000Z | 2020-03-31T14:10:20.000Z | pybarst/core/__init__.py | matham/pybarst | 93e5d3a8b2c16b8edd8efc57a685703553eff19a | [
"MIT"
] | null | null | null | pybarst/core/__init__.py | matham/pybarst | 93e5d3a8b2c16b8edd8efc57a685703553eff19a | [
"MIT"
] | null | null | null |
__all__ = ('join', 'default_server_timeout', 'BarstException')
from pybarst.core.exception import BarstException
default_server_timeout = 2000
'''
The default time a pipe waits when trying to open a connection to the
server before returning a timeout error.
'''
def join(*args):
'''
Joins a pipe name with ... | 23.384615 | 75 | 0.661184 | 85 | 608 | 4.635294 | 0.588235 | 0.06599 | 0.101523 | 0.076142 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020921 | 0.213816 | 608 | 25 | 76 | 24.32 | 0.803347 | 0.407895 | 0 | 0 | 0 | 0 | 0.208122 | 0.111675 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
657abaf5f7fe91a8ab11a2bab59733e7ec5e894a | 27,182 | py | Python | src/oci/core/models/public_ip.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/core/models/public_ip.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/core/models/public_ip.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 36.982313 | 245 | 0.661099 | 3,564 | 27,182 | 4.871773 | 0.079125 | 0.026263 | 0.060473 | 0.026954 | 0.764902 | 0.708173 | 0.661349 | 0.602949 | 0.576053 | 0.567068 | 0 | 0.004616 | 0.266757 | 27,182 | 734 | 246 | 37.032698 | 0.86654 | 0.637517 | 0 | 0.08427 | 0 | 0 | 0.140264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.191011 | false | 0 | 0.011236 | 0.011236 | 0.393258 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 |
657b04f7f5ddab80074c59385f0fb13d8166ef1b | 1,751 | py | Python | installDatapack.py | IronHeart7334/Various-Minecraft-Programs | 00aa60c94acce1e8391c7e2fd782179bf94518fb | [
"MIT"
] | null | null | null | installDatapack.py | IronHeart7334/Various-Minecraft-Programs | 00aa60c94acce1e8391c7e2fd782179bf94518fb | [
"MIT"
] | null | null | null | installDatapack.py | IronHeart7334/Various-Minecraft-Programs | 00aa60c94acce1e8391c7e2fd782179bf94518fb | [
"MIT"
] | null | null | null | from os import listdir
from os.path import isdir, exists
from shutil import copyfile, copytree, rmtree
from tkinter import Tk, filedialog
done = False
ip = ""
packs = listdir("./datapacks")
target = ""
Tk().withdraw()
print("Welcome to Matt's Minecraft Datapack install utility")
print("First, choose the 'datapacks' f... | 36.479167 | 179 | 0.635066 | 237 | 1,751 | 4.691983 | 0.459916 | 0.024281 | 0.032374 | 0.05036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003067 | 0.255283 | 1,751 | 48 | 180 | 36.479167 | 0.849693 | 0.060537 | 0 | 0.05 | 0 | 0.05 | 0.443431 | 0.042579 | 0 | 0 | 0 | 0.020833 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.225 | 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 | 0 | 0 | 0 | 1 |
658d8faf00572e315d94c904b59013b8546bee68 | 271 | py | Python | backend/urlshortener/models.py | bright2227/URLShortener | a03ba1a1def999b62d75e5b79dc6b876f9c349c2 | [
"MIT"
] | null | null | null | backend/urlshortener/models.py | bright2227/URLShortener | a03ba1a1def999b62d75e5b79dc6b876f9c349c2 | [
"MIT"
] | null | null | null | backend/urlshortener/models.py | bright2227/URLShortener | a03ba1a1def999b62d75e5b79dc6b876f9c349c2 | [
"MIT"
] | null | null | null | from django.db import models
class Shortener(models.Model):
long_url = models.URLField(max_length=200)
class PurgeRecord(models.Model):
marked = models.OneToOneField("Shortener", on_delete=models.CASCADE)
created = models.DateTimeField(auto_now_add=True)
| 24.636364 | 72 | 0.771218 | 35 | 271 | 5.828571 | 0.742857 | 0.107843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0.125461 | 271 | 10 | 73 | 27.1 | 0.848101 | 0 | 0 | 0 | 0 | 0 | 0.03321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
658ef5aacfee3f155e5cb8525f00dd69b010c7fa | 2,321 | py | Python | src/tashi/aws/trans.py | apache/tashi | 87f55e4d30800c085ea786bf40c9412b816969e6 | [
"Apache-2.0"
] | 6 | 2015-02-26T22:52:15.000Z | 2021-11-10T16:04:40.000Z | src/tashi/aws/trans.py | stroucki/tashi | 6888a865c184ea80f10e70981addc73a262a81b7 | [
"Apache-2.0"
] | null | null | null | src/tashi/aws/trans.py | stroucki/tashi | 6888a865c184ea80f10e70981addc73a262a81b7 | [
"Apache-2.0"
] | 6 | 2015-06-29T19:03:20.000Z | 2021-11-10T16:04:30.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 34.132353 | 98 | 0.710039 | 315 | 2,321 | 5.228571 | 0.450794 | 0.029751 | 0.019429 | 0.023679 | 0.055859 | 0.055859 | 0.055859 | 0.055859 | 0.040073 | 0.040073 | 0 | 0.011765 | 0.157691 | 2,321 | 67 | 99 | 34.641791 | 0.830691 | 0.32486 | 0 | 0.23913 | 0 | 0 | 0.135188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.021739 | 0.021739 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6591e15bf6f13066e39b392fd85a7dac8c6fa462 | 1,006 | py | Python | Alertor/Alertor.py | bourdibay/EbayAlertor | 97845783984b492fbc4a5b6fd144eeeaa0b54357 | [
"MIT"
] | 2 | 2018-06-17T12:55:53.000Z | 2018-10-16T17:47:00.000Z | Alertor/Alertor.py | bourdibay/EbayAlertor | 97845783984b492fbc4a5b6fd144eeeaa0b54357 | [
"MIT"
] | null | null | null | Alertor/Alertor.py | bourdibay/EbayAlertor | 97845783984b492fbc4a5b6fd144eeeaa0b54357 | [
"MIT"
] | null | null | null |
import sys
from PyQt5.QtWidgets import QApplication
from PyQt5.QtWidgets import QStyle
from PyQt5.QtCore import Qt
import MainWindow
if __name__ == '__main__':
app = QApplication(sys.argv)
# Got a lot of errors related to Gtk on Linux:
# Gtk-CRITICAL **: IA__gtk_widget_style_get: assertion 'GTK_IS_WIDGE... | 37.259259 | 125 | 0.632207 | 119 | 1,006 | 5.210084 | 0.563025 | 0.043548 | 0.058065 | 0.077419 | 0.16129 | 0.16129 | 0.16129 | 0.16129 | 0.16129 | 0.16129 | 0 | 0.017663 | 0.26839 | 1,006 | 26 | 126 | 38.692308 | 0.824728 | 0.341948 | 0 | 0 | 0 | 0 | 0.048855 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 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 | 0 | 0 | 0 | 1 |
65963e28006ea24394057c1ed047219129d109df | 470 | py | Python | FirstPython/syntax/syntax_basic.py | cxMax/Python-practise-sample | 23fa9b2bec785b19555cb2ffef359d03a8765af4 | [
"MIT"
] | null | null | null | FirstPython/syntax/syntax_basic.py | cxMax/Python-practise-sample | 23fa9b2bec785b19555cb2ffef359d03a8765af4 | [
"MIT"
] | null | null | null | FirstPython/syntax/syntax_basic.py | cxMax/Python-practise-sample | 23fa9b2bec785b19555cb2ffef359d03a8765af4 | [
"MIT"
] | null | null | null | print 'hello world'
__doc__
__name__
if True:
print 'android'
print 'ios'
else:
print 'c++'
print 'python'
total = 'hello' \
'world'
process = "these are" \
"multi" \
"line"
single = '''this is a''' \
'''simple'''
print total
# this is an annotation
'''
multi... | 11.75 | 47 | 0.570213 | 55 | 470 | 4.709091 | 0.672727 | 0.104247 | 0.15444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.274468 | 470 | 39 | 48 | 12.051282 | 0.759531 | 0.044681 | 0 | 0 | 0 | 0 | 0.268293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
659e7e32ab416ec36f3f67d69bad8250bec0a010 | 14,447 | py | Python | original_version/page_parser.py | xuerenlv/PaperWork | f096b57a80e8d771f080a02b925a22edbbee722a | [
"Apache-2.0"
] | 1 | 2015-10-15T12:26:07.000Z | 2015-10-15T12:26:07.000Z | original_version/page_parser.py | xuerenlv/PaperWork | f096b57a80e8d771f080a02b925a22edbbee722a | [
"Apache-2.0"
] | null | null | null | original_version/page_parser.py | xuerenlv/PaperWork | f096b57a80e8d771f080a02b925a22edbbee722a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
@author Jiajun Huang
created on 2013/10/19
'''
import traceback
try:
import storage
from errors import UnsuspectedPageStructError, JsonDataParsingError
from bs4 import BeautifulSoup
from datetime import datetime
import re
import json
except:
s = traceback.for... | 39.258152 | 140 | 0.507372 | 1,677 | 14,447 | 4.234347 | 0.15802 | 0.045064 | 0.019011 | 0.014083 | 0.316434 | 0.224335 | 0.179693 | 0.150401 | 0.096324 | 0.085199 | 0 | 0.018529 | 0.376133 | 14,447 | 367 | 141 | 39.365123 | 0.769333 | 0.047207 | 0 | 0.213287 | 0 | 0 | 0.06207 | 0.005185 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013986 | 0.048951 | null | null | 0.101399 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
65a7178cda054c9252d89bcf6a7adb9993d10728 | 482 | py | Python | pcapkit/protocols/data/protocol.py | binref/PyPCAPKit | 7c5ba2cfa95bdc80a95b53b6669340a8783d2ad9 | [
"BSD-3-Clause"
] | 3 | 2018-01-21T15:22:21.000Z | 2018-06-22T01:27:59.000Z | pcapkit/protocols/data/protocol.py | binref/PyPCAPKit | 7c5ba2cfa95bdc80a95b53b6669340a8783d2ad9 | [
"BSD-3-Clause"
] | null | null | null | pcapkit/protocols/data/protocol.py | binref/PyPCAPKit | 7c5ba2cfa95bdc80a95b53b6669340a8783d2ad9 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""data modules for root protocol"""
from typing import TYPE_CHECKING
from pcapkit.corekit.infoclass import Info
__all__ = ['Packet']
class Packet(Info):
"""Header and payload data."""
#: packet header
header: 'bytes'
#: packet payload
payload: 'bytes'
if TYPE_CHEC... | 22.952381 | 155 | 0.659751 | 57 | 482 | 5.403509 | 0.666667 | 0.077922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002571 | 0.192946 | 482 | 20 | 156 | 24.1 | 0.789203 | 0.383817 | 0 | 0 | 0 | 0 | 0.106007 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
65b189f6b1b1d0bfddbfd1847fc5d51b570eeb25 | 2,361 | py | Python | test_project/settings.py | pctSW1/django-url-filter | 42fc1c3aa71f51081cafdb5fcf39f082538eea1a | [
"MIT"
] | null | null | null | test_project/settings.py | pctSW1/django-url-filter | 42fc1c3aa71f51081cafdb5fcf39f082538eea1a | [
"MIT"
] | null | null | null | test_project/settings.py | pctSW1/django-url-filter | 42fc1c3aa71f51081cafdb5fcf39f082538eea1a | [
"MIT"
] | null | null | null | # Bare ``settings.py`` for running tests for url_filter
import os
from sqlalchemy import create_engine
DEBUG = True
INTERNAL_IPS = ['127.0.0.1']
if os.environ.get('USE_POSTGRES') == 'True':
SQLALCHEMY_ENGINE = create_engine('postgresql://postgres:test@localhost:5432', echo=True)
DATABASES = {
'defau... | 25.945055 | 93 | 0.669632 | 243 | 2,361 | 6.263374 | 0.427984 | 0.141919 | 0.153745 | 0.007884 | 0.098555 | 0.060447 | 0.060447 | 0.060447 | 0 | 0 | 0 | 0.011012 | 0.192291 | 2,361 | 90 | 94 | 26.233333 | 0.7871 | 0.022448 | 0 | 0.054054 | 0 | 0 | 0.57719 | 0.454467 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.013514 | 0.027027 | 0 | 0.027027 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
65b517f4fe469a99ab892bbbf3301c379385b312 | 1,586 | py | Python | conflate/parsers/parse_flickr.py | topomancy/gazetteer | 726fdb258c30c95cf309d07ecad1c159bdfd57a9 | [
"CC-BY-3.0",
"Apache-2.0"
] | 13 | 2015-01-07T14:37:01.000Z | 2019-01-17T04:46:35.000Z | conflate/parsers/parse_flickr.py | NYPL/gazetteer | 708035e8d2299e70a6d3cecce40970242673426c | [
"CC-BY-4.0"
] | 1 | 2019-05-22T13:36:06.000Z | 2019-05-22T13:51:25.000Z | conflate/parsers/parse_flickr.py | LibraryOfCongress/gazetteer | 34c7f368c5ae51a167d698dbd3a092644eee4c0c | [
"MIT"
] | 6 | 2016-12-17T22:29:55.000Z | 2018-03-01T19:50:19.000Z | import demjson #flickr geojson is not quite valid json, suffers from trailing commas
import sys
from shapely.geometry import asShape
import codecs
#python parse_flickr.py /path/to/flickrShapeFile.geojson | psql gaztest
#continents , counties, countries, localities, neighbourhoods, regions
def parse_flickr_geojson(fli... | 34.478261 | 134 | 0.65826 | 201 | 1,586 | 5.00995 | 0.482587 | 0.049652 | 0.038729 | 0.047666 | 0.125124 | 0.069513 | 0.069513 | 0 | 0 | 0 | 0 | 0.024155 | 0.216898 | 1,586 | 45 | 135 | 35.244444 | 0.786634 | 0.222573 | 0 | 0 | 0 | 0 | 0.2031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.137931 | null | null | 0.172414 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
65b778960c9182d93b052f8d9413c84fd428d53a | 828 | py | Python | x509_pki/migrations/0010_auto_20211017_0936.py | repleo/bounca | 3054a15953f66031329a29e85359e28c3df53cfd | [
"Apache-2.0"
] | 142 | 2016-06-01T18:53:31.000Z | 2022-01-29T10:22:02.000Z | x509_pki/migrations/0010_auto_20211017_0936.py | repleo/bounca | 3054a15953f66031329a29e85359e28c3df53cfd | [
"Apache-2.0"
] | 32 | 2016-06-12T13:53:05.000Z | 2022-03-22T21:09:40.000Z | x509_pki/migrations/0010_auto_20211017_0936.py | repleo/bounca | 3054a15953f66031329a29e85359e28c3df53cfd | [
"Apache-2.0"
] | 22 | 2017-12-19T21:29:38.000Z | 2022-01-29T10:45:25.000Z | # Generated by Django 3.2.7 on 2021-10-17 07:36
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('x509_pki', '0009_auto_20211017_0921'),
]
operations = [
migrations.RemoveField(
model_name='key... | 30.666667 | 126 | 0.607488 | 87 | 828 | 5.655172 | 0.62069 | 0.04878 | 0.056911 | 0.089431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060755 | 0.264493 | 828 | 26 | 127 | 31.846154 | 0.747126 | 0.054348 | 0 | 0.1 | 1 | 0 | 0.145967 | 0.029449 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
65b81e2670507dde832cc0fe0f7a9e67a01d9d70 | 1,327 | py | Python | src/phemex.py | ruiwynt/l3_data_collection | 8f4773a7fc36ad04982045247505cc4f00b25821 | [
"MIT"
] | 2 | 2022-01-17T23:18:49.000Z | 2022-01-17T23:18:58.000Z | src/phemex.py | ruiwynt/l3_data_collection | 8f4773a7fc36ad04982045247505cc4f00b25821 | [
"MIT"
] | null | null | null | src/phemex.py | ruiwynt/l3_data_collection | 8f4773a7fc36ad04982045247505cc4f00b25821 | [
"MIT"
] | 1 | 2022-01-21T06:01:04.000Z | 2022-01-21T06:01:04.000Z | import websockets
import asyncio
import time
import json
from normalise.phemex_normalisation import NormalisePhemex
from helpers.read_config import get_symbols
from sink_connector.kafka_producer import KafkaProducer
from sink_connector.ws_to_kafka import produce_messages
from source_connector.websocket_connec... | 36.861111 | 112 | 0.715147 | 147 | 1,327 | 6.190476 | 0.37415 | 0.048352 | 0.089011 | 0.095604 | 0.240659 | 0.240659 | 0.240659 | 0 | 0 | 0 | 0 | 0.003766 | 0.199699 | 1,327 | 36 | 113 | 36.861111 | 0.853107 | 0.006782 | 0 | 0.068966 | 0 | 0 | 0.099064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.310345 | 0 | 0.310345 | 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 | 0 | 0 | 0 | 1 |
65c2f29de0f4c2850114c6e3ea434753155e8762 | 3,877 | py | Python | tests/test_argument_resolver.py | EvgenySmekalin/winter | 24b6a02f958478547a4a120324823743a1f7e1a1 | [
"MIT"
] | 1 | 2020-03-28T14:54:28.000Z | 2020-03-28T14:54:28.000Z | tests/test_argument_resolver.py | EvgenySmekalin/winter | 24b6a02f958478547a4a120324823743a1f7e1a1 | [
"MIT"
] | null | null | null | tests/test_argument_resolver.py | EvgenySmekalin/winter | 24b6a02f958478547a4a120324823743a1f7e1a1 | [
"MIT"
] | null | null | null | import pytest
from mock import Mock
from winter import ArgumentsResolver
from winter import GenericArgumentResolver
from winter.argument_resolver import ArgumentNotSupported
from winter.core import ComponentMethod
from winter.core import ComponentMethodArgument
@pytest.mark.parametrize('arg_name, arg_type, resolver_... | 32.579832 | 116 | 0.746969 | 426 | 3,877 | 6.42723 | 0.152582 | 0.070124 | 0.050402 | 0.04748 | 0.685902 | 0.577429 | 0.48393 | 0.48393 | 0.433528 | 0.409788 | 0 | 0.002807 | 0.173072 | 3,877 | 118 | 117 | 32.855932 | 0.851216 | 0.016766 | 0 | 0.371795 | 0 | 0 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.128205 | false | 0.051282 | 0.089744 | 0 | 0.217949 | 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 | 0 | 0 | 0 | 1 |
65ceed752ed1a09a4b604a7057f658eea2b9a0e6 | 402 | py | Python | base/views.py | Antonio-Neves/My-Portfolio | 6b6d7d414c1c5e62b48ccf37a6379822dc9a520a | [
"MIT"
] | 1 | 2021-08-06T18:33:21.000Z | 2021-08-06T18:33:21.000Z | base/views.py | Antonio-Neves/My-Portfolio | 6b6d7d414c1c5e62b48ccf37a6379822dc9a520a | [
"MIT"
] | null | null | null | base/views.py | Antonio-Neves/My-Portfolio | 6b6d7d414c1c5e62b48ccf37a6379822dc9a520a | [
"MIT"
] | 2 | 2021-08-09T11:39:09.000Z | 2021-09-03T23:51:06.000Z | from django.urls import reverse_lazy
from django.views.generic import FormView
from principal.forms import ContactForm
class ContactFormView(FormView):
form_class = ContactForm
success_url = reverse_lazy('index')
def form_valid(self, form, *args, **kwargs):
form.send_mail()
return super().form_valid(form)
d... | 25.125 | 47 | 0.768657 | 55 | 402 | 5.454545 | 0.509091 | 0.066667 | 0.08 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121891 | 402 | 15 | 48 | 26.8 | 0.849858 | 0 | 0 | 0 | 0 | 0 | 0.012438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0.090909 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
65d67a3bc5f045e8d73091cccac804c4d71eeaa5 | 3,485 | py | Python | plays/add_test_data.py | shchigi/lfl | 457d1ead4c1ab33ed32d74558e5fc105e15a9cfc | [
"Apache-2.0"
] | null | null | null | plays/add_test_data.py | shchigi/lfl | 457d1ead4c1ab33ed32d74558e5fc105e15a9cfc | [
"Apache-2.0"
] | null | null | null | plays/add_test_data.py | shchigi/lfl | 457d1ead4c1ab33ed32d74558e5fc105e15a9cfc | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = 'rakot'
import datetime
from models import Person, Team, Match, Card, Goal
def add_test_data():
mipt_team = Team(name=u"Физтех", start_date=datetime.date.today())
mipt_team.save()
anytime_team = Team(name=u"Энитайм", start_date=datetime.date.today())
anytime_tea... | 31.396396 | 74 | 0.537159 | 380 | 3,485 | 4.657895 | 0.236842 | 0.087006 | 0.072316 | 0.094915 | 0.548023 | 0.462147 | 0.388701 | 0.331073 | 0.331073 | 0.293785 | 0 | 0.032258 | 0.368436 | 3,485 | 111 | 75 | 31.396396 | 0.771922 | 0.006026 | 0 | 0.408602 | 0 | 0 | 0.041871 | 0.007797 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.021505 | null | null | 0.043011 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
65d72272580aebaafde81bdd2e9cd1c4327592b1 | 1,978 | py | Python | tests/test_find_recipes.py | y4izus/recipe-manager | b7161148e87a03459dd9ff3764b5ebb846813814 | [
"MIT"
] | null | null | null | tests/test_find_recipes.py | y4izus/recipe-manager | b7161148e87a03459dd9ff3764b5ebb846813814 | [
"MIT"
] | 2 | 2021-03-31T19:18:16.000Z | 2021-12-13T20:00:58.000Z | tests/test_find_recipes.py | y4izus/recipe-manager | b7161148e87a03459dd9ff3764b5ebb846813814 | [
"MIT"
] | null | null | null | import unittest
from bs4 import BeautifulSoup
from find_recipes import get_recipes_with, get_recipes_info
class TestFindRecipesMethods(unittest.TestCase):
def test_get_recipes_with_food(self):
'''should show the first 10 recipe <a> links for berenjenas'''
food = 'berenjenas'
recipes_ancho... | 46 | 139 | 0.63549 | 237 | 1,978 | 5.14346 | 0.345992 | 0.098441 | 0.11813 | 0.091879 | 0.374897 | 0.307629 | 0.267432 | 0.231337 | 0.196883 | 0.114848 | 0 | 0.015162 | 0.233064 | 1,978 | 42 | 140 | 47.095238 | 0.788398 | 0.054601 | 0 | 0 | 0 | 0.205882 | 0.459387 | 0.300699 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.058824 | false | 0 | 0.088235 | 0 | 0.176471 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
65d86394e80c5a213de374bc3141fb7f1a86ad3e | 3,412 | py | Python | pronto/xref.py | flying-sheep/pronto | 37126293472293b4bb3f406b41198a351fec4542 | [
"MIT"
] | 182 | 2016-07-23T00:04:30.000Z | 2022-03-31T13:42:03.000Z | pronto/xref.py | flying-sheep/pronto | 37126293472293b4bb3f406b41198a351fec4542 | [
"MIT"
] | 160 | 2016-08-11T19:12:48.000Z | 2022-03-28T07:22:42.000Z | pronto/xref.py | flying-sheep/pronto | 37126293472293b4bb3f406b41198a351fec4542 | [
"MIT"
] | 44 | 2016-11-02T10:57:06.000Z | 2021-11-05T11:30:23.000Z | """Cross-reference object definition.
"""
import typing
import fastobo
from .utils.meta import roundrepr, typechecked
__all__ = ["Xref"]
@roundrepr
class Xref(object):
"""A cross-reference to another document or resource.
Cross-references (xrefs for short) can be used to back-up definitions of
entit... | 33.126214 | 78 | 0.657972 | 435 | 3,412 | 5.057471 | 0.429885 | 0.021818 | 0.034091 | 0.043182 | 0.208636 | 0.208636 | 0.178636 | 0.178636 | 0.178636 | 0.178636 | 0 | 0.007943 | 0.262016 | 3,412 | 102 | 79 | 33.45098 | 0.865766 | 0.557151 | 0 | 0.243243 | 0 | 0 | 0.037622 | 0 | 0 | 0 | 0 | 0.009804 | 0 | 1 | 0.189189 | false | 0 | 0.081081 | 0.027027 | 0.675676 | 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 | 0 | 1 | 0 | 0 | 1 |
65db5b96466fb38f9d3ca477ae2471976a2c087f | 1,923 | py | Python | bin/old/mapview2tiling.py | PapenfussLab/Srtools | 6dff62cd8d1615d4f7d4e5b8a0de9ba8eebab90e | [
"Artistic-2.0"
] | null | null | null | bin/old/mapview2tiling.py | PapenfussLab/Srtools | 6dff62cd8d1615d4f7d4e5b8a0de9ba8eebab90e | [
"Artistic-2.0"
] | null | null | null | bin/old/mapview2tiling.py | PapenfussLab/Srtools | 6dff62cd8d1615d4f7d4e5b8a0de9ba8eebab90e | [
"Artistic-2.0"
] | null | null | null | #!/usr/bin/env python
"""
mapview2tiling.py
Convert mapview format to a tiling
Author: Tony Papenfuss
Date: Mon Jun 16 15:17:20 EST 2008
"""
import os, sys, copy
from useful import progressMessage
from gff import Feature
if '-h' in sys.argv:
sys.exit(__doc__)
def loadChrSizes(filename):
data = {}
f... | 24.0375 | 98 | 0.628705 | 245 | 1,923 | 4.889796 | 0.444898 | 0.025042 | 0.027546 | 0.033389 | 0.116861 | 0.043406 | 0 | 0 | 0 | 0 | 0 | 0.028436 | 0.231929 | 1,923 | 79 | 99 | 24.341772 | 0.782668 | 0.016641 | 0 | 0.072727 | 0 | 0 | 0.104638 | 0.066742 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018182 | 0.054545 | null | null | 0.054545 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
65e304f36345e22be83deccd9f067f5aa32b6c8c | 611 | py | Python | bk/SensorReading.py | racheliurui/vscode-hello-python | de4da54b2787fe1d0a1c624864e2773f2ec99e77 | [
"MIT"
] | null | null | null | bk/SensorReading.py | racheliurui/vscode-hello-python | de4da54b2787fe1d0a1c624864e2773f2ec99e77 | [
"MIT"
] | null | null | null | bk/SensorReading.py | racheliurui/vscode-hello-python | de4da54b2787fe1d0a1c624864e2773f2ec99e77 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# https://sites.google.com/site/ev3python/learn_ev3_python/using-sensors/sensor-modes
speedReading=0
# Color Sensor Readings
# COL-REFLECT COL-AMBIENT COL-COLOR RGB-RAW
colorSensor_mode_default = "COL-COLOR"
colorSensor_mode_lt = colorSensor_mode_default
colorSensor_mode_rt = colorSensor_mo... | 21.068966 | 85 | 0.860884 | 90 | 611 | 5.477778 | 0.4 | 0.219067 | 0.141988 | 0.133874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026408 | 0.070376 | 611 | 28 | 86 | 21.821429 | 0.841549 | 0.276596 | 0 | 0 | 0 | 0 | 0.020548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
65e5526e84d3a15b91a656dd05996af2d43d2948 | 993 | py | Python | edau/dataset.py | Hiromi-nee/edau | 58e31b208f52cc5443ab331a917c46b451059768 | [
"MIT"
] | null | null | null | edau/dataset.py | Hiromi-nee/edau | 58e31b208f52cc5443ab331a917c46b451059768 | [
"MIT"
] | null | null | null | edau/dataset.py | Hiromi-nee/edau | 58e31b208f52cc5443ab331a917c46b451059768 | [
"MIT"
] | null | null | null | import torch
import torch.utils.data
from PIL import Image
import os
import pandas as pd
class CSVImageDataset(torch.utils.data.Dataset):
def __init__(self, csv_path, names=None, header=None, sep=",", root=None, transforms=None):
if transforms is not None:
self.transforms = transforms
e... | 31.03125 | 95 | 0.632427 | 133 | 993 | 4.578947 | 0.413534 | 0.052545 | 0.045977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006739 | 0.252769 | 993 | 31 | 96 | 32.032258 | 0.814016 | 0 | 0 | 0 | 0 | 0 | 0.004028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.230769 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
65e5d42d10fd906d9047930bcbc526b2fb9eb24e | 494 | py | Python | aries_cloudagent/protocols/issue_credential/v1_1/message_types.py | krzosa/aries-cloudagent-python | 6b3117f30dc63df66fc8afc5b1fb101e02e6bd4a | [
"Apache-2.0"
] | null | null | null | aries_cloudagent/protocols/issue_credential/v1_1/message_types.py | krzosa/aries-cloudagent-python | 6b3117f30dc63df66fc8afc5b1fb101e02e6bd4a | [
"Apache-2.0"
] | null | null | null | aries_cloudagent/protocols/issue_credential/v1_1/message_types.py | krzosa/aries-cloudagent-python | 6b3117f30dc63df66fc8afc5b1fb101e02e6bd4a | [
"Apache-2.0"
] | 1 | 2020-04-30T08:22:22.000Z | 2020-04-30T08:22:22.000Z | """Message types to register."""
PROTOCOL_URI = "https://didcomm.org/issue-credential/1.1"
PROTOCOL_PACKAGE = "aries_cloudagent.protocols.issue_credential.v1_1"
CREDENTIAL_ISSUE = f"{PROTOCOL_URI}/issue-credential"
CREDENTIAL_REQUEST = f"{PROTOCOL_URI}/request-credential"
MESSAGE_TYPES = {
CREDENTIAL_ISSUE: (f"{... | 32.933333 | 88 | 0.773279 | 56 | 494 | 6.535714 | 0.392857 | 0.098361 | 0.087432 | 0.131148 | 0.185792 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008989 | 0.09919 | 494 | 14 | 89 | 35.285714 | 0.813483 | 0.052632 | 0 | 0 | 0 | 0 | 0.597403 | 0.510823 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
65e9cedbd7248871ead07a5fff16ee66c9f0a3ab | 217,265 | py | Python | lredit_mainwindow.py | crftwr/lredit | 3d12912c34cf65d632fbded7dcebac1aa54e874c | [
"BSD-2-Clause",
"bzip2-1.0.6",
"MIT"
] | 1 | 2021-04-25T22:28:34.000Z | 2021-04-25T22:28:34.000Z | lredit_mainwindow.py | crftwr/lredit | 3d12912c34cf65d632fbded7dcebac1aa54e874c | [
"BSD-2-Clause",
"bzip2-1.0.6",
"MIT"
] | 36 | 2016-12-02T21:34:12.000Z | 2021-04-24T23:04:58.000Z | lredit_mainwindow.py | crftwr/lredit | 3d12912c34cf65d632fbded7dcebac1aa54e874c | [
"BSD-2-Clause",
"bzip2-1.0.6",
"MIT"
] | null | null | null | import os
import sys
import time
import gc
import re
import cProfile
import threading
import fnmatch
import difflib
import configparser
import json
import traceback
import ctypes
import msvcrt
import locale
import pyauto
import ckit
from ckit.ckit_const import *
import lredit_mode
import lredit_... | 35.734375 | 327 | 0.54376 | 21,541 | 217,265 | 5.307414 | 0.072977 | 0.01096 | 0.009866 | 0.011476 | 0.493453 | 0.419516 | 0.351492 | 0.298906 | 0.263507 | 0.236742 | 0 | 0.009334 | 0.353568 | 217,265 | 6,079 | 328 | 35.740253 | 0.804681 | 0.055195 | 0 | 0.464487 | 0 | 0 | 0.041879 | 0.006617 | 0 | 0 | 0.00005 | 0.000329 | 0.001881 | 0 | null | null | 0.007291 | 0.008702 | null | null | 0.011524 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
65ee96df2a24d3987bd3a07c2725c2d67b3e1084 | 1,226 | py | Python | Pacote de Conteudo/Mundo 02/Exercicios/ex045.py | Michelle-On/ExerciciosPython_2020-21 | 61615237a310c15923138575ebc65f6a15b301ab | [
"MIT"
] | null | null | null | Pacote de Conteudo/Mundo 02/Exercicios/ex045.py | Michelle-On/ExerciciosPython_2020-21 | 61615237a310c15923138575ebc65f6a15b301ab | [
"MIT"
] | null | null | null | Pacote de Conteudo/Mundo 02/Exercicios/ex045.py | Michelle-On/ExerciciosPython_2020-21 | 61615237a310c15923138575ebc65f6a15b301ab | [
"MIT"
] | null | null | null | from random import randint
from time import sleep
print('-=-'*5)
print(' JOKENPO')
print('-=-'*5)
ops = ('Pedra','Papel','Tesoura')
print('\033[1;36mSuas opções:\033[m')
print('[ 0 ] PEDRA')
print('[ 1 ] PAPEL')
print('[ 2 ] TESOURA')
j1=int(input('Qual é a sua \033[1;32mjogada\033[m? '))
jc= randint(0,2)
print('\033... | 24.52 | 65 | 0.574225 | 204 | 1,226 | 3.45098 | 0.240196 | 0.085227 | 0.153409 | 0.056818 | 0.505682 | 0.497159 | 0.372159 | 0.372159 | 0.237216 | 0.105114 | 0 | 0.174668 | 0.201468 | 1,226 | 49 | 66 | 25.020408 | 0.544433 | 0 | 0 | 0.466667 | 0 | 0 | 0.439444 | 0.072831 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.044444 | 0 | 0.044444 | 0.533333 | 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 | 0 | 0 | 1 | 0 | 1 |
65ef102c3ad15ffa20618c7e2675f716965ea49f | 62,904 | py | Python | lib/addr/AddressStandardizationSolution.py | apilloud/supportertracker | 2dd42831649118fd302b08014bc93943e8298e09 | [
"MIT"
] | null | null | null | lib/addr/AddressStandardizationSolution.py | apilloud/supportertracker | 2dd42831649118fd302b08014bc93943e8298e09 | [
"MIT"
] | null | null | null | lib/addr/AddressStandardizationSolution.py | apilloud/supportertracker | 2dd42831649118fd302b08014bc93943e8298e09 | [
"MIT"
] | null | null | null | import re
#**
#* A python port of the
#* Address Standardization Solution, PHP Edition.
#*
#* Address Standardization Solution is a trademark of The Analysis
#* and Solutions Company.
#*
#* @package AddressStandardizationSolution
#* @author Daniel Convissor <danielc@analysisandsolutions.com>
#* @copyright The Analysis... | 39.913706 | 153 | 0.294608 | 4,493 | 62,904 | 4.119297 | 0.272869 | 0.035498 | 0.005835 | 0.011671 | 0.305544 | 0.274692 | 0.254106 | 0.22855 | 0.211314 | 0.188405 | 0 | 0.011868 | 0.551285 | 62,904 | 1,575 | 154 | 39.939048 | 0.643839 | 0.049011 | 0 | 0.114407 | 0 | 0.009181 | 0.196933 | 0.005039 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002119 | false | 0.012006 | 0.000706 | 0 | 0.024011 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 1 |
028dfbf5afb4166b8f1420c0e1e500a7997e1723 | 368 | py | Python | setup.py | trevorcampbell/ubvi | a71c14c9a1d588702f157f83a50619647856fd8b | [
"MIT"
] | 5 | 2019-07-22T14:40:19.000Z | 2020-10-15T13:23:08.000Z | setup.py | trevorcampbell/ubvi | a71c14c9a1d588702f157f83a50619647856fd8b | [
"MIT"
] | 3 | 2019-10-02T20:22:56.000Z | 2019-10-04T20:34:44.000Z | setup.py | trevorcampbell/ubvi | a71c14c9a1d588702f157f83a50619647856fd8b | [
"MIT"
] | 2 | 2019-07-23T02:11:49.000Z | 2019-10-24T06:57:23.000Z | from setuptools import setup, find_packages
setup(
name='ubvi',
url='https://github.com/trevorcampbell/ubvi',
author='Trevor Campbell',
author_email='trevor@stat.ubc.ca',
version='0.2',
packages=find_packages(),
license='MIT License',
long_description=open('README.md').read(),
insta... | 26.285714 | 54 | 0.668478 | 44 | 368 | 5.477273 | 0.818182 | 0.099585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006472 | 0.160326 | 368 | 13 | 55 | 28.307692 | 0.773463 | 0 | 0 | 0 | 0 | 0 | 0.315217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 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 | 0 | 0 | 0 | 1 |
02961d8ce8543c1f15fdf769a891223bbdd63761 | 249 | py | Python | intermediate_class_notes/src/dayone/map_demo.py | kmad1729/python_notes | 8d94c504fcd9a1adf61788efc0fbe6e7513bbaf4 | [
"Unlicense"
] | null | null | null | intermediate_class_notes/src/dayone/map_demo.py | kmad1729/python_notes | 8d94c504fcd9a1adf61788efc0fbe6e7513bbaf4 | [
"Unlicense"
] | null | null | null | intermediate_class_notes/src/dayone/map_demo.py | kmad1729/python_notes | 8d94c504fcd9a1adf61788efc0fbe6e7513bbaf4 | [
"Unlicense"
] | null | null | null | 'simple demo of using map to create instances of objects'
class Dog:
def __init__(self, name):
self.name = name
def bark(self):
print("Woof! %s is barking!" % self.name)
dogs = list(map(Dog, ['rex', 'rover', 'ranger']))
| 19.153846 | 57 | 0.606426 | 36 | 249 | 4.083333 | 0.722222 | 0.163265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24498 | 249 | 12 | 58 | 20.75 | 0.781915 | 0.220884 | 0 | 0 | 0 | 0 | 0.360324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.428571 | 0.142857 | 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 | 0 | 0 | 0 | 1 |
02970a143d96415043729ddbded3c52d33133e43 | 29,864 | py | Python | maad/rois/rois_2d.py | scikit-maad/scikit-maad | 2052c6f5ffc2a973fa1676364cc1663d7da1715a | [
"BSD-3-Clause"
] | 31 | 2019-06-27T11:30:09.000Z | 2022-03-14T22:07:34.000Z | maad/rois/rois_2d.py | scikit-maad/scikit-maad | 2052c6f5ffc2a973fa1676364cc1663d7da1715a | [
"BSD-3-Clause"
] | 9 | 2019-03-29T20:45:09.000Z | 2022-03-18T12:25:53.000Z | maad/rois/rois_2d.py | scikit-maad/scikit-maad | 2052c6f5ffc2a973fa1676364cc1663d7da1715a | [
"BSD-3-Clause"
] | 7 | 2019-07-29T13:26:40.000Z | 2022-03-24T00:44:47.000Z | #!/usr/bin/env python
"""
Segmentation methods to find regions of interest in the time and frequency domain.
"""
#
# Authors: Juan Sebastian ULLOA <lisofomia@gmail.com>
# Sylvain HAUPERT <sylvain.haupert@mnhn.fr>
#
# License: New BSD License
# ==================================================... | 41.826331 | 235 | 0.540048 | 3,523 | 29,864 | 4.484246 | 0.152143 | 0.045575 | 0.027978 | 0.004558 | 0.679643 | 0.662995 | 0.650019 | 0.641917 | 0.624383 | 0.614888 | 0 | 0.020298 | 0.345064 | 29,864 | 714 | 236 | 41.826331 | 0.787412 | 0.581034 | 0 | 0.630769 | 0 | 0.005128 | 0.153292 | 0.03435 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.030769 | 0 | 0.082051 | 0.087179 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
0297dd59758e1346959f2bc6cfaa4c3047cbc761 | 4,954 | py | Python | training/train.py | CMSAachen3B/Machine-Learning | 9675f6094c3d7c48fa8521f84406b7a93378238e | [
"MIT"
] | 3 | 2017-10-24T19:29:02.000Z | 2018-03-28T04:54:40.000Z | training/train.py | CMSAachen3B/Machine-Learning | 9675f6094c3d7c48fa8521f84406b7a93378238e | [
"MIT"
] | 2 | 2017-10-27T09:07:09.000Z | 2018-06-28T08:01:28.000Z | training/train.py | CMSAachen3B/Machine-Learning | 9675f6094c3d7c48fa8521f84406b7a93378238e | [
"MIT"
] | 2 | 2017-12-20T12:30:33.000Z | 2018-03-26T17:24:25.000Z | #!/usr/bin/env python
import numpy as np
np.random.seed(1234)
from collections import Counter
import argparse
import yaml
import os
import sys
from sklearn import model_selection
base = os.path.normpath(os.path.join(os.path.abspath(__file__), "../.."))
sys.path.append(base)
from utils.model import KerasModel, Conf... | 36.970149 | 126 | 0.651191 | 624 | 4,954 | 5.004808 | 0.342949 | 0.034582 | 0.023055 | 0.034582 | 0.07877 | 0.056996 | 0 | 0 | 0 | 0 | 0 | 0.017034 | 0.229713 | 4,954 | 133 | 127 | 37.24812 | 0.801363 | 0.100525 | 0 | 0 | 0 | 0 | 0.197245 | 0.014925 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.120879 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0298a1f9fb26e0801abbedad2e9751724eb239e3 | 5,623 | py | Python | modules/Logger.py | snroptimus/BitfinexLendingBot | 0970fc33212bf232e15e4d31ea4067514aef6091 | [
"MIT"
] | null | null | null | modules/Logger.py | snroptimus/BitfinexLendingBot | 0970fc33212bf232e15e4d31ea4067514aef6091 | [
"MIT"
] | null | null | null | modules/Logger.py | snroptimus/BitfinexLendingBot | 0970fc33212bf232e15e4d31ea4067514aef6091 | [
"MIT"
] | 2 | 2018-04-27T08:16:33.000Z | 2020-01-18T03:59:30.000Z | # coding=utf-8
import atexit
import datetime
import io
import json
import sys
import time
import ConsoleUtils
import modules.Configuration as Config
from RingBuffer import RingBuffer
from Notify import send_notification
class ConsoleOutput(object):
def __init__(self):
self._status = ''
atexit.reg... | 33.272189 | 98 | 0.603237 | 609 | 5,623 | 5.464696 | 0.244663 | 0.054087 | 0.015024 | 0.028546 | 0.226262 | 0.154147 | 0.113582 | 0.06851 | 0.06851 | 0.06851 | 0 | 0.003148 | 0.265694 | 5,623 | 168 | 99 | 33.470238 | 0.802858 | 0.016006 | 0 | 0.189781 | 0 | 0 | 0.052812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014599 | 0.072993 | null | null | 0.051095 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
029f54fbe79aaa766eef7d9a1131811b889081e3 | 352 | py | Python | radical_translations/core/migrations/0032_delete_instance.py | kingsdigitallab/radical_translations | c18ca1ccc0ab2d88ae472dc2eda58e2ff9dcc76a | [
"MIT"
] | 3 | 2022-02-08T18:03:44.000Z | 2022-03-18T18:10:43.000Z | radical_translations/core/migrations/0032_delete_instance.py | kingsdigitallab/radical_translations | c18ca1ccc0ab2d88ae472dc2eda58e2ff9dcc76a | [
"MIT"
] | 19 | 2020-05-11T15:36:35.000Z | 2022-02-08T11:26:40.000Z | radical_translations/core/migrations/0032_delete_instance.py | kingsdigitallab/radical_translations | c18ca1ccc0ab2d88ae472dc2eda58e2ff9dcc76a | [
"MIT"
] | null | null | null | # Generated by Django 2.2.10 on 2020-05-18 10:48
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('events', '0008_alter_field_classification_on_event'),
('core', '0031_delete_item'),
]
operations = [
migrations.DeleteModel(
na... | 19.555556 | 63 | 0.616477 | 38 | 352 | 5.526316 | 0.815789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 0.267045 | 352 | 17 | 64 | 20.705882 | 0.72093 | 0.130682 | 0 | 0 | 1 | 0 | 0.243421 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
029f7515bf396f121daa2b8bf5a80857df968b36 | 1,993 | py | Python | linkml_model_enrichment/utils/schemautils.py | noelmcloughlin/linkml-model-enrichment | 529f1623af9cc766b1fd119ba704445fc21e9846 | [
"BSD-3-Clause"
] | null | null | null | linkml_model_enrichment/utils/schemautils.py | noelmcloughlin/linkml-model-enrichment | 529f1623af9cc766b1fd119ba704445fc21e9846 | [
"BSD-3-Clause"
] | null | null | null | linkml_model_enrichment/utils/schemautils.py | noelmcloughlin/linkml-model-enrichment | 529f1623af9cc766b1fd119ba704445fc21e9846 | [
"BSD-3-Clause"
] | null | null | null | import copy
import logging
from typing import Union
from deprecated.classic import deprecated
import yaml
from linkml_runtime.dumpers import yaml_dumper
from linkml_runtime.linkml_model import SchemaDefinition
@deprecated("Replaced by linkml.runtime.utils.schema_as_dict")
def minify_schema(obj: Union[dict, SchemaDef... | 33.216667 | 80 | 0.532865 | 252 | 1,993 | 4.126984 | 0.277778 | 0.015385 | 0.019231 | 0.026923 | 0.2 | 0.073077 | 0 | 0 | 0 | 0 | 0 | 0.00077 | 0.348721 | 1,993 | 60 | 81 | 33.216667 | 0.800462 | 0.026593 | 0 | 0.211538 | 0 | 0 | 0.115702 | 0.018079 | 0 | 0 | 0 | 0.016667 | 0 | 1 | 0.038462 | false | 0 | 0.134615 | 0 | 0.211538 | 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 | 0 | 0 | 0 | 1 |
02a605ee5c94ff02083819af7671fa78bd8e7f0c | 4,668 | py | Python | commands/help.py | AndreyCortez/Telegram-Bot | 46f5c3044460812ee4b57e53b48eeab1ccf80404 | [
"MIT"
] | null | null | null | commands/help.py | AndreyCortez/Telegram-Bot | 46f5c3044460812ee4b57e53b48eeab1ccf80404 | [
"MIT"
] | null | null | null | commands/help.py | AndreyCortez/Telegram-Bot | 46f5c3044460812ee4b57e53b48eeab1ccf80404 | [
"MIT"
] | null | null | null | from telegram import Update
from telegram.ext import CallbackContext
from commands.general import send_message
# Dictionary containing available commands
available_commands = {
"help": ("Lista informações a respeito dos comandos disponíveis"),
"planilha": (
"Envia o link da planilha de comandos do Tup... | 51.866667 | 104 | 0.684233 | 645 | 4,668 | 4.927132 | 0.289922 | 0.010069 | 0.031466 | 0.013845 | 0.452801 | 0.431403 | 0.409062 | 0.409062 | 0.368156 | 0.368156 | 0 | 0.00055 | 0.221294 | 4,668 | 89 | 105 | 52.449438 | 0.873728 | 0.05934 | 0 | 0.180556 | 0 | 0.027778 | 0.73425 | 0.059336 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.041667 | 0.027778 | 0.111111 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02a6ce1f1cb5c2fc8d6aa1b08b5bb0f9596c89e9 | 483 | py | Python | tcfcli/common/scf_client/scf_report_client.py | Juliiii/scfcli | 1ae5acdc7a01cd5547870c91713027f389384ab7 | [
"Apache-2.0"
] | 1 | 2019-11-01T05:59:45.000Z | 2019-11-01T05:59:45.000Z | tcfcli/common/scf_client/scf_report_client.py | Juliiii/scfcli | 1ae5acdc7a01cd5547870c91713027f389384ab7 | [
"Apache-2.0"
] | null | null | null | tcfcli/common/scf_client/scf_report_client.py | Juliiii/scfcli | 1ae5acdc7a01cd5547870c91713027f389384ab7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from tcfcli.cmds.cli import __version__
from . import ScfBaseClient
class ScfReportClient(ScfBaseClient):
CLOUD_API_REQ_TIMEOUT = 3
def __init__(self):
super(ScfReportClient, self).__init__("ap-guangzhou")
def report(self):
try:
params = {'Downl... | 23 | 84 | 0.6294 | 50 | 483 | 5.68 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0.254658 | 483 | 20 | 85 | 24.15 | 0.780556 | 0.043478 | 0 | 0 | 0 | 0 | 0.123913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.083333 | 0.166667 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
02ab01278c9b2ee98ea5cdc68cfb3b4eefae3f36 | 620 | py | Python | AntShares/Exceptions.py | OTCGO/sync_antshares | 5724a5a820ec5f59e0c886a3c1646db2d07b4d78 | [
"MIT"
] | 10 | 2017-03-28T05:44:35.000Z | 2021-02-17T03:51:39.000Z | AntShares/Exceptions.py | OTCGO/sync_antshares | 5724a5a820ec5f59e0c886a3c1646db2d07b4d78 | [
"MIT"
] | 2 | 2017-07-06T10:00:25.000Z | 2017-08-09T10:14:34.000Z | AntShares/Exceptions.py | OTCGO/sync_antshares | 5724a5a820ec5f59e0c886a3c1646db2d07b4d78 | [
"MIT"
] | 3 | 2017-03-28T05:44:39.000Z | 2018-02-09T09:56:03.000Z | # -*- coding:utf-8 -*-
"""
Description:
Exceptions
Usage:
from AntShares.Exceptions import *
"""
class WorkIdError(Exception):
"""Work Id Error"""
def __init__(self, info):
super(Exception, self).__init__(info)
self.error_code = 0x0002
class OutputError(Exception):
"""Output Error... | 22.962963 | 45 | 0.648387 | 67 | 620 | 5.597015 | 0.447761 | 0.064 | 0.096 | 0.128 | 0.472 | 0.472 | 0.472 | 0.472 | 0.472 | 0.472 | 0 | 0.033058 | 0.219355 | 620 | 26 | 46 | 23.846154 | 0.741736 | 0.246774 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 1 |
02b21c9f07c06381d62cb74ec84084686f6994c6 | 463 | py | Python | test/testMain.py | yakumo-saki/zabbix-getdata | fd72600d260e524ce81980189307513a281948f9 | [
"MIT"
] | null | null | null | test/testMain.py | yakumo-saki/zabbix-getdata | fd72600d260e524ce81980189307513a281948f9 | [
"MIT"
] | null | null | null | test/testMain.py | yakumo-saki/zabbix-getdata | fd72600d260e524ce81980189307513a281948f9 | [
"MIT"
] | null | null | null | import unittest
import sys
sys.path.append("../")
class TestMain(unittest.TestCase):
"""test class of mqtt_zabbix_gateway.py
"""
def test_parse_value(self):
"""test method for mqtt_zabbix_gateway.py
"""
# self.assertEqual(1234.567, parse_value("b'1234.567'"))
# self.assertE... | 24.368421 | 64 | 0.637149 | 58 | 463 | 4.793103 | 0.482759 | 0.143885 | 0.118705 | 0.136691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059459 | 0.200864 | 463 | 18 | 65 | 25.722222 | 0.691892 | 0.520518 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 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 | 0 | 1 | 0 | 0 | 1 |
02bb60f75aee6baf2d1e0dd592edc5591aeca92b | 13,406 | py | Python | MessageConverters/MCF.py | meberli/mqtt-relais | b0de69d6da6119e9c09601355ea4de1b525402b9 | [
"Apache-2.0"
] | null | null | null | MessageConverters/MCF.py | meberli/mqtt-relais | b0de69d6da6119e9c09601355ea4de1b525402b9 | [
"Apache-2.0"
] | null | null | null | MessageConverters/MCF.py | meberli/mqtt-relais | b0de69d6da6119e9c09601355ea4de1b525402b9 | [
"Apache-2.0"
] | 1 | 2022-01-02T23:14:21.000Z | 2022-01-02T23:14:21.000Z | #!/usr/bin/python3
from MessageConverters.MessageConverter import MessageConverter
import logging
from datetime import datetime
from datetime import timezone
class MCF(MessageConverter):
msg_types = {
0x01: "time_sync_request",
0x04: "t_p_rh",
0x05: "uart",
0x09: "... | 33.598997 | 76 | 0.477547 | 1,389 | 13,406 | 4.511159 | 0.157667 | 0.163262 | 0.160868 | 0.172359 | 0.588414 | 0.580594 | 0.552665 | 0.534791 | 0.502075 | 0.497127 | 0 | 0.029732 | 0.397882 | 13,406 | 398 | 77 | 33.683417 | 0.746531 | 0.063927 | 0 | 0.601246 | 0 | 0 | 0.122475 | 0 | 0 | 0 | 0.00509 | 0.002513 | 0 | 1 | 0.056075 | false | 0 | 0.012461 | 0.006231 | 0.168224 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
02bf03ebf56d6530d8741a9394693d1612153800 | 10,678 | py | Python | src/impurity/ctqmc/cix_compress.py | dmft-wien2k/dmft-wien2k-v2 | 83481be27e8a9ff14b9635d6cc1cd9d96f053487 | [
"Apache-2.0"
] | 7 | 2018-04-03T06:37:42.000Z | 2021-11-08T11:44:06.000Z | src/impurity/ctqmc/cix_compress.py | dmft-wien2k/dmft-wien2k-v2 | 83481be27e8a9ff14b9635d6cc1cd9d96f053487 | [
"Apache-2.0"
] | 2 | 2016-07-12T21:37:53.000Z | 2016-07-12T21:42:01.000Z | src/impurity/ctqmc/cix_compress.py | dmft-wien2k/dmft-wien2k | 83481be27e8a9ff14b9635d6cc1cd9d96f053487 | [
"Apache-2.0"
] | 3 | 2016-10-27T20:23:34.000Z | 2019-12-13T13:54:11.000Z | #!/usr/bin/env python
from scipy import *
import sys, glob
import operator
def cmp_small_large(wlarge_small):
nsize = len(wlarge_small)
large_small = []
for i in range(nsize): large_small.append(-1)
ii=0
for i in range(nsize):
if len(wlarge_small[i])>0:
large_small[i] = ii
... | 27.032911 | 112 | 0.517419 | 1,489 | 10,678 | 3.632639 | 0.128946 | 0.064707 | 0.022185 | 0.038639 | 0.468294 | 0.399704 | 0.360325 | 0.291181 | 0.253097 | 0.214457 | 0 | 0.035113 | 0.343885 | 10,678 | 394 | 113 | 27.101523 | 0.73694 | 0.090279 | 0 | 0.341365 | 0 | 0 | 0.072712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.012048 | null | null | 0.180723 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02c495dcb0ee6464a8c88d4fe8aadb5636d4ec70 | 2,504 | py | Python | profetch/profetch/pipelines.py | doge-search/webdoge | 443e758b5c1f962d5c2fe792cdbed01e1208b1cb | [
"Unlicense"
] | null | null | null | profetch/profetch/pipelines.py | doge-search/webdoge | 443e758b5c1f962d5c2fe792cdbed01e1208b1cb | [
"Unlicense"
] | null | null | null | profetch/profetch/pipelines.py | doge-search/webdoge | 443e758b5c1f962d5c2fe792cdbed01e1208b1cb | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import os
import urllib
import xml.dom.minidom as minidom
class writePipeline(object):
def __init__(self):
self.fou... | 41.733333 | 113 | 0.623403 | 270 | 2,504 | 5.744444 | 0.311111 | 0.085751 | 0.116054 | 0.144423 | 0.292714 | 0.034816 | 0.034816 | 0 | 0 | 0 | 0 | 0.005699 | 0.229233 | 2,504 | 59 | 114 | 42.440678 | 0.797927 | 0.071885 | 0 | 0 | 0 | 0 | 0.097498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068182 | null | null | 0.022727 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02c65667f0c7581d2ba1dafec4fe2a6df1a0e8ca | 3,134 | py | Python | affiliates/base/views.py | glogiotatidis/affiliates | 34d0ded8e24be9dd207d6419a5157dc8ce34bc06 | [
"BSD-3-Clause"
] | 15 | 2015-01-01T07:17:44.000Z | 2020-11-09T06:28:29.000Z | affiliates/base/views.py | glogiotatidis/affiliates | 34d0ded8e24be9dd207d6419a5157dc8ce34bc06 | [
"BSD-3-Clause"
] | 16 | 2015-02-25T23:17:27.000Z | 2015-08-20T10:28:18.000Z | affiliates/base/views.py | glogiotatidis/affiliates | 34d0ded8e24be9dd207d6419a5157dc8ce34bc06 | [
"BSD-3-Clause"
] | 12 | 2015-01-17T20:57:03.000Z | 2019-11-03T15:04:31.000Z | from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.shortcuts import render
from django.views.decorators.http import require_POST
from django.views.defaults import page_not_found, server_error
import basket
import commonw... | 31.979592 | 98 | 0.688577 | 377 | 3,134 | 5.59947 | 0.35809 | 0.03316 | 0.063003 | 0.054477 | 0.109901 | 0.067267 | 0.067267 | 0.067267 | 0.067267 | 0.067267 | 0 | 0.006863 | 0.209636 | 3,134 | 97 | 99 | 32.309278 | 0.845377 | 0.033504 | 0 | 0.123288 | 0 | 0 | 0.137806 | 0.016193 | 0 | 0 | 0 | 0 | 0 | 1 | 0.123288 | false | 0 | 0.219178 | 0.041096 | 0.534247 | 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 | 0 | 1 | 0 | 0 | 1 |
02cb2195fa8b91978a4e8399a14d90920befa83f | 2,758 | py | Python | layouts/window_history.py | TkfleBR/PyManager | d57f6cced4932d03b51902cbcf4d9b217c67bd3c | [
"MIT"
] | null | null | null | layouts/window_history.py | TkfleBR/PyManager | d57f6cced4932d03b51902cbcf4d9b217c67bd3c | [
"MIT"
] | null | null | null | layouts/window_history.py | TkfleBR/PyManager | d57f6cced4932d03b51902cbcf4d9b217c67bd3c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'window_history.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import QMainWindow
class History(QMainWindow):
d... | 43.777778 | 79 | 0.711385 | 257 | 2,758 | 7.579767 | 0.354086 | 0.110883 | 0.071869 | 0.067762 | 0.086242 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015111 | 0.184191 | 2,758 | 62 | 80 | 44.483871 | 0.850667 | 0.067803 | 0 | 0 | 1 | 0 | 0.069813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.04 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02d09f87989816139ffc376e0438fb2b5c3d6b11 | 1,325 | py | Python | code_scanner/tests/test_data_model.py | stargrep/rmm-utils | 55725cb117015bbe35653120779c53ff39a999bc | [
"MIT"
] | null | null | null | code_scanner/tests/test_data_model.py | stargrep/rmm-utils | 55725cb117015bbe35653120779c53ff39a999bc | [
"MIT"
] | null | null | null | code_scanner/tests/test_data_model.py | stargrep/rmm-utils | 55725cb117015bbe35653120779c53ff39a999bc | [
"MIT"
] | null | null | null | from pathlib import Path
import pytest
from code_scanner.enums import FileType
from code_scanner.file_info import FileInfo
@pytest.fixture
def file_info():
"""
Returns a test python file info
"""
return FileInfo(Path('/tmp/test.py'), FileType.SOURCE_CODE)
@pytest.fixture
def another_file_info():
... | 27.604167 | 71 | 0.725283 | 193 | 1,325 | 4.694301 | 0.243523 | 0.220751 | 0.115894 | 0.092715 | 0.335541 | 0.275938 | 0.139073 | 0.139073 | 0.139073 | 0.139073 | 0 | 0 | 0.160755 | 1,325 | 47 | 72 | 28.191489 | 0.814748 | 0.077736 | 0 | 0.142857 | 0 | 0 | 0.13686 | 0.086482 | 0 | 0 | 0 | 0 | 0.357143 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.357143 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
02d3ece2eaf05108794fe5d98900a1d2b83a9d53 | 16,435 | py | Python | gan_ae.py | shenberg/neural_compressor | 995c2b10c6528af1553cfff08edb2063d38b9699 | [
"MIT"
] | null | null | null | gan_ae.py | shenberg/neural_compressor | 995c2b10c6528af1553cfff08edb2063d38b9699 | [
"MIT"
] | null | null | null | gan_ae.py | shenberg/neural_compressor | 995c2b10c6528af1553cfff08edb2063d38b9699 | [
"MIT"
] | null | null | null | import os, sys, time
sys.path.append(os.getcwd())
import torch
import torchvision
from torch import nn
from torch import autograd
from torch import optim
import torch.nn.functional as F
#torch.set_default_tensor_type('torch.cuda.HalfTensor')
import time
import tflib as lib
import tflib.save_images
import tflib.mnist
... | 34.7463 | 148 | 0.66334 | 2,261 | 16,435 | 4.595312 | 0.182663 | 0.023099 | 0.010395 | 0.00847 | 0.361598 | 0.329644 | 0.296054 | 0.26872 | 0.232146 | 0.19615 | 0 | 0.023365 | 0.223973 | 16,435 | 473 | 149 | 34.7463 | 0.791281 | 0.286462 | 0 | 0.19708 | 0 | 0 | 0.050057 | 0.017498 | 0 | 0 | 0 | 0.002114 | 0 | 0 | null | null | 0 | 0.076642 | null | null | 0.007299 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02d5414a8a046ddef8a33b6b5f07a3b51f609ffb | 6,384 | py | Python | worker/LinkedIn/service1/Extractor.py | LamriAli/remote-extraction-proxy-and-worker | 6e402efbd94298b015797183934fc10744ea0ded | [
"MIT"
] | null | null | null | worker/LinkedIn/service1/Extractor.py | LamriAli/remote-extraction-proxy-and-worker | 6e402efbd94298b015797183934fc10744ea0ded | [
"MIT"
] | null | null | null | worker/LinkedIn/service1/Extractor.py | LamriAli/remote-extraction-proxy-and-worker | 6e402efbd94298b015797183934fc10744ea0ded | [
"MIT"
] | null | null | null |
from asyncio.windows_events import NULL
from selenium import webdriver
from bs4 import BeautifulSoup
import time
import pandas as pd
from bot_studio import *
import re as re
from selenium.webdriver.common.by import By
import win32clipboard
import os
from bs4 import BeautifulSoup as bs
from connect import connect
fro... | 30.84058 | 273 | 0.509085 | 639 | 6,384 | 4.885759 | 0.261346 | 0.054452 | 0.049968 | 0.024023 | 0.080717 | 0.051249 | 0.017297 | 0 | 0 | 0 | 0 | 0.004911 | 0.393954 | 6,384 | 206 | 274 | 30.990291 | 0.802016 | 0.074248 | 0 | 0.036697 | 0 | 0 | 0.081393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055046 | false | 0.073395 | 0.174312 | 0.009174 | 0.302752 | 0.06422 | 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 | 0 | 0 | 0 | 1 |
02d7850fc5dffa2325add5010ac8065d9ef11cb2 | 2,681 | py | Python | src/python/nimbusml/internal/entrypoints/transforms_columnselector.py | michaelgsharp/NimbusML | 50031157265f49eec85d27fe67582d9ddaf01ef9 | [
"MIT"
] | 134 | 2018-11-01T22:15:24.000Z | 2019-05-04T11:30:08.000Z | src/python/nimbusml/internal/entrypoints/transforms_columnselector.py | michaelgsharp/NimbusML | 50031157265f49eec85d27fe67582d9ddaf01ef9 | [
"MIT"
] | 226 | 2019-05-07T19:00:44.000Z | 2021-01-06T07:59:48.000Z | src/python/nimbusml/internal/entrypoints/transforms_columnselector.py | michaelgsharp/NimbusML | 50031157265f49eec85d27fe67582d9ddaf01ef9 | [
"MIT"
] | 43 | 2019-05-15T20:19:42.000Z | 2022-03-30T10:26:07.000Z | # - Generated by tools/entrypoint_compiler.py: do not edit by hand
"""
Transforms.ColumnSelector
"""
from ..utils.entrypoints import EntryPoint
from ..utils.utils import try_set, unlist
def transforms_columnselector(
data,
output_data=None,
model=None,
keep_columns=None,
drop... | 30.123596 | 67 | 0.611339 | 316 | 2,681 | 4.993671 | 0.25 | 0.030418 | 0.039924 | 0.047529 | 0.299113 | 0.243346 | 0.215463 | 0.196451 | 0.110266 | 0.064639 | 0 | 0 | 0.299888 | 2,681 | 88 | 68 | 30.465909 | 0.840703 | 0.22044 | 0 | 0.290323 | 1 | 0 | 0.044894 | 0.012334 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016129 | false | 0 | 0.032258 | 0 | 0.064516 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
02df3801f9671e12500ef0f4a8e6c1a6d7f22673 | 1,194 | py | Python | armulator/armv6/opcodes/thumb_instruction_set/thumb_instruction_set_encoding_32_bit/thumb_store_single_data_item/strh_register_t2.py | matan1008/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 16 | 2018-01-22T14:36:49.000Z | 2021-12-17T15:39:52.000Z | armulator/armv6/opcodes/thumb_instruction_set/thumb_instruction_set_encoding_32_bit/thumb_store_single_data_item/strh_register_t2.py | AhmedMounir/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 3 | 2019-02-19T17:51:47.000Z | 2022-03-31T20:45:21.000Z | armulator/armv6/opcodes/thumb_instruction_set/thumb_instruction_set_encoding_32_bit/thumb_store_single_data_item/strh_register_t2.py | AhmedMounir/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 4 | 2020-06-18T23:51:03.000Z | 2022-02-09T17:43:13.000Z | from armulator.armv6.opcodes.abstract_opcodes.strh_register import StrhRegister
from armulator.armv6.opcodes.opcode import Opcode
from armulator.armv6.arm_exceptions import UndefinedInstructionException
from armulator.armv6.shift import SRType
class StrhRegisterT2(StrhRegister, Opcode):
def __init__(self, instruc... | 38.516129 | 115 | 0.629816 | 148 | 1,194 | 4.905405 | 0.405405 | 0.071625 | 0.099174 | 0.068871 | 0.077135 | 0.077135 | 0.077135 | 0.077135 | 0.077135 | 0.077135 | 0 | 0.041903 | 0.260469 | 1,194 | 30 | 116 | 39.8 | 0.780294 | 0 | 0 | 0 | 0 | 0 | 0.041039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0.038462 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02ea1f926d3409753afb99653731e30eec7e549c | 955 | py | Python | util/utilities.py | umbertov/SpicyArbs | 509d40d7fafc70d34b9f39c9ea6877a6e03bf96c | [
"Apache-2.0"
] | null | null | null | util/utilities.py | umbertov/SpicyArbs | 509d40d7fafc70d34b9f39c9ea6877a6e03bf96c | [
"Apache-2.0"
] | null | null | null | util/utilities.py | umbertov/SpicyArbs | 509d40d7fafc70d34b9f39c9ea6877a6e03bf96c | [
"Apache-2.0"
] | null | null | null | """
Utility functions go here.
SpiceBucks
"""
# ------------------------------------------------------------------
import sys
import numpy as np
from util.message import message
# ------------------------------------------------------------------
# -----------------------------------------------------------------... | 25.810811 | 92 | 0.406283 | 79 | 955 | 4.911392 | 0.544304 | 0.115979 | 0.139175 | 0.149485 | 0.170103 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0.193717 | 955 | 36 | 93 | 26.527778 | 0.497403 | 0.436649 | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.1875 | 0 | 0.25 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
02ecac6ee76c0a27480a9c535043a3daeeab6e45 | 732 | py | Python | seqcluster/libs/seqviz.py | kkarolis/seqcluster | 774e23add8cd4fdc83d626cea3bd1f458e7d060d | [
"MIT"
] | 33 | 2015-01-26T23:18:01.000Z | 2022-01-07T21:40:49.000Z | seqcluster/libs/seqviz.py | kkarolis/seqcluster | 774e23add8cd4fdc83d626cea3bd1f458e7d060d | [
"MIT"
] | 44 | 2015-01-21T17:43:42.000Z | 2021-08-25T15:49:18.000Z | seqcluster/libs/seqviz.py | kkarolis/seqcluster | 774e23add8cd4fdc83d626cea3bd1f458e7d060d | [
"MIT"
] | 18 | 2015-05-18T15:34:32.000Z | 2021-02-10T17:58:24.000Z | JSVIZ1='''<script type="text/javascript">
function go() {
var zoomCanvas = document.getElementById('canvas');
origZoomChart = new Scribl(zoomCanvas, 100);
//origZoomChart.scale.min = 0;
// origZoomChart.scale.max = 12000;
'''
JSVIZ2='''
origZoomChart.scrollable =... | 26.142857 | 119 | 0.579235 | 75 | 732 | 5.653333 | 0.653333 | 0.084906 | 0.042453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039286 | 0.234973 | 732 | 27 | 120 | 27.111111 | 0.717857 | 0 | 0 | 0.142857 | 0 | 0.047619 | 0.846995 | 0.345628 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0 | 0.047619 | 0.047619 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02efb2c6d5f0e4cd8d96076e82e5d0450c7f086a | 1,912 | py | Python | keywords.py | ChinaKevinLi/PixivURLs | 4a1df3f29654e5098bb54cba7b580ee6ffef96ff | [
"Apache-2.0"
] | null | null | null | keywords.py | ChinaKevinLi/PixivURLs | 4a1df3f29654e5098bb54cba7b580ee6ffef96ff | [
"Apache-2.0"
] | null | null | null | keywords.py | ChinaKevinLi/PixivURLs | 4a1df3f29654e5098bb54cba7b580ee6ffef96ff | [
"Apache-2.0"
] | null | null | null | import sys
from pixivpy3 import AppPixivAPI
username="pixiv username"
password="pixiv passowrd"
def get_imageUrls(aapi, keyword, minbook):
json_result = aapi.search_illust(keyword)
while 1:
try:
nLen = len(json_result.illusts)
except Exception as e:
print(e)
fo... | 30.83871 | 80 | 0.518305 | 211 | 1,912 | 4.488152 | 0.369668 | 0.052798 | 0.063358 | 0.042239 | 0.318902 | 0.263992 | 0.135164 | 0.059134 | 0.059134 | 0 | 0 | 0.005983 | 0.388075 | 1,912 | 61 | 81 | 31.344262 | 0.803419 | 0.006276 | 0 | 0.24 | 0 | 0 | 0.04792 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.06 | 0.04 | 0 | 0.1 | 0.14 | 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 | 0 | 0 | 0 | 1 |
02f12c2644044568b2de865684b1aaeba408ce90 | 6,563 | py | Python | anasymod/sources.py | SubjeBilisim/anasymod | d93f656c21e2aa238f7a5ada50955cc7dc615df1 | [
"BSD-3-Clause"
] | null | null | null | anasymod/sources.py | SubjeBilisim/anasymod | d93f656c21e2aa238f7a5ada50955cc7dc615df1 | [
"BSD-3-Clause"
] | null | null | null | anasymod/sources.py | SubjeBilisim/anasymod | d93f656c21e2aa238f7a5ada50955cc7dc615df1 | [
"BSD-3-Clause"
] | null | null | null | import os
from anasymod.generators.codegen import CodeGenerator
from anasymod.util import back2fwd, expand_searchpaths
from typing import Union
class ConfigFileObj(CodeGenerator):
def __init__(self, files, config_path, name):
super().__init__()
self.files = None
""" type(str) : m... | 44.952055 | 131 | 0.672254 | 863 | 6,563 | 4.872538 | 0.178447 | 0.111772 | 0.049465 | 0.057075 | 0.627348 | 0.582878 | 0.55648 | 0.551011 | 0.543401 | 0.534126 | 0 | 0.000388 | 0.214688 | 6,563 | 146 | 132 | 44.952055 | 0.815483 | 0.160445 | 0 | 0.385542 | 0 | 0.012048 | 0.05697 | 0 | 0.012048 | 0 | 0 | 0.006849 | 0 | 1 | 0.289157 | false | 0.012048 | 0.048193 | 0 | 0.53012 | 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 | 0 | 0 | 0 | 1 |
02fbc88c873f878bcb96d84e839ce2de8b62af46 | 474 | py | Python | DFT_1d/constants.py | Chriscrosser3310/Kohn_Sham_DFT_1d | 042aa05fafe4a3350f15fb872fc0a26b4edf5391 | [
"Apache-2.0"
] | 2 | 2020-07-18T05:12:45.000Z | 2022-01-13T16:16:37.000Z | DFT_1d/constants.py | Chriscrosser3310/Kohn_Sham_DFT_1d | 042aa05fafe4a3350f15fb872fc0a26b4edf5391 | [
"Apache-2.0"
] | null | null | null | DFT_1d/constants.py | Chriscrosser3310/Kohn_Sham_DFT_1d | 042aa05fafe4a3350f15fb872fc0a26b4edf5391 | [
"Apache-2.0"
] | 1 | 2020-12-16T07:52:59.000Z | 2020-12-16T07:52:59.000Z | """Default constants used in this library.
Exponential Coulomb interaction.
v(x) = amplitude * exp(-abs(x) * kappa)
See also ext_potentials.exp_hydrogenic. Further details in:
Thomas E Baker, E Miles Stoudenmire, Lucas O Wagner, Kieron Burke,
and Steven R White. One-dimensional mimicking of electronic structure:... | 29.625 | 73 | 0.774262 | 68 | 474 | 5.308824 | 0.838235 | 0.149584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071253 | 0.14135 | 474 | 15 | 74 | 31.6 | 0.815725 | 0.808017 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02fbdd5d1411152e4b3fbb9168d16823f1941ae1 | 2,673 | py | Python | src/foolscap/eventual.py | exarkun/foolscap | ee746896bb56a93e7b43ec537acf3927d08f0415 | [
"MIT"
] | 29 | 2015-01-05T19:37:27.000Z | 2021-03-03T21:59:13.000Z | src/foolscap/eventual.py | exarkun/foolscap | ee746896bb56a93e7b43ec537acf3927d08f0415 | [
"MIT"
] | 65 | 2015-03-01T03:18:03.000Z | 2022-03-24T16:00:48.000Z | src/foolscap/eventual.py | exarkun/foolscap | ee746896bb56a93e7b43ec537acf3927d08f0415 | [
"MIT"
] | 22 | 2015-01-28T10:51:46.000Z | 2022-01-26T07:56:25.000Z | # -*- test-case-name: foolscap.test.test_eventual -*-
from twisted.internet import reactor, defer
from twisted.python import log
class _SimpleCallQueue(object):
# XXX TODO: merge epsilon.cooperator in, and make this more complete.
def __init__(self):
self._events = []
self._flushObservers = []... | 34.714286 | 77 | 0.654695 | 354 | 2,673 | 4.867232 | 0.415254 | 0.034823 | 0.041788 | 0.020894 | 0.088218 | 0.066164 | 0.032501 | 0 | 0 | 0 | 0 | 0.000509 | 0.264871 | 2,673 | 76 | 78 | 35.171053 | 0.876336 | 0.465769 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0 | 1 | 0.184211 | false | 0 | 0.052632 | 0 | 0.368421 | 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 | 0 | 0 | 0 | 1 |
02fceed1816fba940518694f70424450564343a0 | 330 | py | Python | setup.py | ViTalityGH/KivMob | 265785205d7f5795c1c3d32762ec20dc932ea371 | [
"MIT"
] | null | null | null | setup.py | ViTalityGH/KivMob | 265785205d7f5795c1c3d32762ec20dc932ea371 | [
"MIT"
] | null | null | null | setup.py | ViTalityGH/KivMob | 265785205d7f5795c1c3d32762ec20dc932ea371 | [
"MIT"
] | 1 | 2018-03-12T13:39:45.000Z | 2018-03-12T13:39:45.000Z | from setuptools import setup
setup(name='kivmob',
version='2.0',
description='Provides AdMob support for Kivy.',
url='http://github.com/MichaelStott/KivMob',
author='Michael Stott',
license='MIT',
py_modules=['kivmob'],
install_requires=[
'kivy'
],
zip_sa... | 23.571429 | 53 | 0.6 | 36 | 330 | 5.416667 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008163 | 0.257576 | 330 | 13 | 54 | 25.384615 | 0.787755 | 0 | 0 | 0 | 0 | 0 | 0.315152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 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 | 0 | 0 | 0 | 1 |
02fdf32f64b9a2dd5c5e9f607bbefd996f737da3 | 5,489 | py | Python | articlequality/extractors/tests/test_ptwiki.py | he7d3r/articlequality | 4aba6c085adb308f3f54f247ee00baee39d03192 | [
"MIT"
] | null | null | null | articlequality/extractors/tests/test_ptwiki.py | he7d3r/articlequality | 4aba6c085adb308f3f54f247ee00baee39d03192 | [
"MIT"
] | null | null | null | articlequality/extractors/tests/test_ptwiki.py | he7d3r/articlequality | 4aba6c085adb308f3f54f247ee00baee39d03192 | [
"MIT"
] | null | null | null | from collections import namedtuple
from mwtypes import Timestamp
from .. import ptwiki
def test_extractor():
Revision = namedtuple("Revision", ['id', 'timestamp', 'sha1', 'text'])
class Page:
def __init__(self, title, namespace, revisions):
self.title = title
self.namespac... | 32.672619 | 78 | 0.42157 | 490 | 5,489 | 4.7 | 0.208163 | 0.115502 | 0.231003 | 0.071646 | 0.521494 | 0.468085 | 0.428137 | 0.396005 | 0.333478 | 0.317412 | 0 | 0.049244 | 0.433959 | 5,489 | 167 | 79 | 32.868263 | 0.691986 | 0.036983 | 0 | 0.594937 | 0 | 0 | 0.256775 | 0.069547 | 0 | 0 | 0 | 0 | 0.006329 | 1 | 0.018987 | false | 0 | 0.044304 | 0.006329 | 0.075949 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f305b0aa130fdf09c42521dd182d07e6d7f8cb9e | 730 | py | Python | python/geeksforgeeks/dp/catalan.py | othonreyes/code_problems | 6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf | [
"MIT"
] | null | null | null | python/geeksforgeeks/dp/catalan.py | othonreyes/code_problems | 6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf | [
"MIT"
] | null | null | null | python/geeksforgeeks/dp/catalan.py | othonreyes/code_problems | 6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf | [
"MIT"
] | null | null | null |
def catalan_rec(n):
if n <= 1:
return 1
res = 0
for i in range(n):
res += catalan_rec(i) * catalan_rec(n-i-1)
return res
def catalan_rec_td(n, arr):
if n <= 1:
return 1
if arr[n] > 0:
return arr[n]
res = 0
for i in range(n):
res += catalan_rec_td(i, arr) * catalan_rec_td(n-i-1,... | 17.380952 | 62 | 0.557534 | 136 | 730 | 2.838235 | 0.154412 | 0.233161 | 0.07772 | 0.142487 | 0.388601 | 0.150259 | 0.150259 | 0.150259 | 0.150259 | 0.150259 | 0 | 0.046243 | 0.289041 | 730 | 41 | 63 | 17.804878 | 0.697495 | 0 | 0 | 0.375 | 0 | 0 | 0.010989 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0 | 0 | 0.28125 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f3066c4ee3f171a9de6f4739e08e718422357250 | 567 | py | Python | Python 3 - Mundo 2/Desafio das Aulas - Mundo 2/Desafio63-SequenciaDeFibonacciV1.py | Pedro0901/python3-curso-em-video | 2e8995a5352c1918e5da68e7868a613b938e9c29 | [
"MIT"
] | 1 | 2021-07-05T03:13:33.000Z | 2021-07-05T03:13:33.000Z | Python 3 - Mundo 2/Desafio das Aulas - Mundo 2/Desafio63-SequenciaDeFibonacciV1.py | Pedro0901/python3-curso-em-video | 2e8995a5352c1918e5da68e7868a613b938e9c29 | [
"MIT"
] | null | null | null | Python 3 - Mundo 2/Desafio das Aulas - Mundo 2/Desafio63-SequenciaDeFibonacciV1.py | Pedro0901/python3-curso-em-video | 2e8995a5352c1918e5da68e7868a613b938e9c29 | [
"MIT"
] | null | null | null | '''
Exercício Python 63: Escreva um programa que leia um número N inteiro qualquer e
mostre na tela os N primeiros elementos de uma Sequência de Fibonacci. Exemplo:
0 – 1 – 1 – 2 – 3 – 5 – 8
'''
print('------------------------------')
print('Sequencia de Fibonacci')
print('------------------------------')
n = int(in... | 21.807692 | 81 | 0.539683 | 90 | 567 | 3.5 | 0.555556 | 0.057143 | 0.019048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062907 | 0.186949 | 567 | 25 | 82 | 22.68 | 0.600868 | 0.33157 | 0 | 0.235294 | 0 | 0 | 0.366577 | 0.161725 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.470588 | 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 | 0 | 0 | 1 | 0 | 1 |
f30b88ce82d4c101583c9fed7a2b3ff5a201f1c9 | 30,424 | py | Python | scripts/generate_report.py | 3ideas/config_tracker | fa556198fb170ac36ff14c55606035fd5c080aba | [
"Apache-2.0"
] | null | null | null | scripts/generate_report.py | 3ideas/config_tracker | fa556198fb170ac36ff14c55606035fd5c080aba | [
"Apache-2.0"
] | null | null | null | scripts/generate_report.py | 3ideas/config_tracker | fa556198fb170ac36ff14c55606035fd5c080aba | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2.7
# AUTOGENERATED! DO NOT EDIT! File to edit: 04_generate_report.ipynb (unless otherwise specified).
__all__ = ['get_output_from_cmd', 'run_subprocess', 'verbose', 'show_progress', 'GitRepositoryReader',
'parse_commitstr_to_datetime', 'copyfile_fullpath', 'mkdir_for_fullpath', 'remove... | 36.699638 | 146 | 0.591244 | 3,567 | 30,424 | 4.825624 | 0.124755 | 0.030849 | 0.009295 | 0.009876 | 0.365247 | 0.303201 | 0.26114 | 0.218614 | 0.190089 | 0.170859 | 0 | 0.007283 | 0.282376 | 30,424 | 828 | 147 | 36.743961 | 0.781111 | 0.167138 | 0 | 0.300797 | 1 | 0.007968 | 0.154194 | 0.033923 | 0 | 0 | 0 | 0.006039 | 0 | 1 | 0.071713 | false | 0 | 0.017928 | 0.005976 | 0.155378 | 0.013944 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f30c81ddce7e9cc9e19220090c1f26d6701e123b | 1,222 | py | Python | setup.py | ebsaral/writable | 0c09cf6736553b2e2d6c28eaabaa323df5c7b34a | [
"BSD-3-Clause"
] | null | null | null | setup.py | ebsaral/writable | 0c09cf6736553b2e2d6c28eaabaa323df5c7b34a | [
"BSD-3-Clause"
] | null | null | null | setup.py | ebsaral/writable | 0c09cf6736553b2e2d6c28eaabaa323df5c7b34a | [
"BSD-3-Clause"
] | null | null | null | from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(name='filewriter',
version='2.0.2',
description='json supported easy debugger for python, in files. can also read.',
long_description=readme(),
long_description_content_type='text/markdown... | 34.914286 | 86 | 0.631751 | 129 | 1,222 | 5.906977 | 0.658915 | 0.057743 | 0.073491 | 0.110236 | 0.251969 | 0.089239 | 0 | 0 | 0 | 0 | 0 | 0.004264 | 0.232406 | 1,222 | 34 | 87 | 35.941176 | 0.808102 | 0 | 0 | 0 | 0 | 0 | 0.511457 | 0.017185 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | true | 0 | 0.03125 | 0 | 0.09375 | 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 | 0 | 0 | 0 | 1 |
f30d641c35e045d7983b4bcb28013a954c668aaa | 367 | py | Python | src/utils/url_checker.py | rafa-leao/site_mapper_challenge | 7650945efe0a918a7203d6b61f90aac32d5bf02c | [
"MIT"
] | null | null | null | src/utils/url_checker.py | rafa-leao/site_mapper_challenge | 7650945efe0a918a7203d6b61f90aac32d5bf02c | [
"MIT"
] | null | null | null | src/utils/url_checker.py | rafa-leao/site_mapper_challenge | 7650945efe0a918a7203d6b61f90aac32d5bf02c | [
"MIT"
] | null | null | null | from urllib.parse import urlparse
def url_checker(url_site,
url_site_disallowed_path):
validator = False
for site_path in url_site_disallowed_path:
if site_path not in urlparse(url_site).path:
validator = True
continue
else:
validator =... | 16.681818 | 52 | 0.604905 | 42 | 367 | 5.02381 | 0.52381 | 0.132701 | 0.161137 | 0.199052 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.356948 | 367 | 21 | 53 | 17.47619 | 0.894068 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f30d741517f30418230aa3ea3573d3575701f9f8 | 269 | py | Python | article_85/use_so7C.py | tisnik/go-fedora | 53243bc4c84209cc9ab582ccf5ef3b73e53fe676 | [
"Apache-2.0"
] | null | null | null | article_85/use_so7C.py | tisnik/go-fedora | 53243bc4c84209cc9ab582ccf5ef3b73e53fe676 | [
"Apache-2.0"
] | null | null | null | article_85/use_so7C.py | tisnik/go-fedora | 53243bc4c84209cc9ab582ccf5ef3b73e53fe676 | [
"Apache-2.0"
] | null | null | null | import ctypes
import time
so7 = ctypes.CDLL("./so7.so")
t1 = ("ěščř ЩжΛλ"*10000).encode("utf-8")
t2 = ("<foobar>"*10000).encode("utf-8")
so7.concat.restype = ctypes.c_char_p
for i in range(100000):
t = so7.concat(t1, t2)
print(len(t))
time.sleep(0.001)
| 17.933333 | 40 | 0.635688 | 46 | 269 | 3.673913 | 0.673913 | 0.130178 | 0.16568 | 0.177515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132743 | 0.159851 | 269 | 14 | 41 | 19.214286 | 0.615044 | 0 | 0 | 0 | 0 | 0 | 0.130112 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.1 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f30d80aa056a7109b6d17923299c92b428241502 | 447 | py | Python | 1.0/api_server-1.0.5/controllers/src/geo.py | concurrentlabs/laguna | d8036889885217881da686eb54bf8419e06d8ce4 | [
"Apache-2.0"
] | 31 | 2015-10-09T16:04:10.000Z | 2020-12-28T12:18:26.000Z | 1.0/api_server-1.0.5/controllers/src/geo.py | concurrentlabs/laguna | d8036889885217881da686eb54bf8419e06d8ce4 | [
"Apache-2.0"
] | 1 | 2015-11-04T16:23:22.000Z | 2015-11-04T16:23:22.000Z | 1.0/api_server-1.0.5/controllers/src/geo.py | concurrentlabs/laguna | d8036889885217881da686eb54bf8419e06d8ce4 | [
"Apache-2.0"
] | 11 | 2015-11-09T21:33:30.000Z | 2019-09-04T14:41:28.000Z | #!/usr/bin/env python
#
import config
def geo_restrict(ip):
passed = False
if config.geoip is not None and config.geo_country_codes_count > 0:
country = config.geoip.country_code_by_addr(ip)
for code in config.geo_country_codes:
if country == code:
passed = True
... | 21.285714 | 75 | 0.621924 | 60 | 447 | 4.483333 | 0.633333 | 0.081784 | 0.118959 | 0.156134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003268 | 0.315436 | 447 | 20 | 76 | 22.35 | 0.875817 | 0.158837 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.333333 | 0.083333 | 0 | 0.25 | 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 | 0 | 0 | 0 | 1 |
f313161f1cff4100d46b5a9b452758ea5deb3ce0 | 3,727 | py | Python | students/k3343/laboratory_works/Bogdanova Elizaveta/laboratory_work_1/tour_agency/migrations/0001_initial.py | TonikX/ITMO_ICT_-WebProgramming_2020 | ba566c1b3ab04585665c69860b713741906935a0 | [
"MIT"
] | 10 | 2020-03-20T09:06:12.000Z | 2021-07-27T13:06:02.000Z | students/k3343/laboratory_works/Bogdanova Elizaveta/laboratory_work_1/tour_agency/migrations/0001_initial.py | TonikX/ITMO_ICT_-WebProgramming_2020 | ba566c1b3ab04585665c69860b713741906935a0 | [
"MIT"
] | 134 | 2020-03-23T09:47:48.000Z | 2022-03-12T01:05:19.000Z | students/k3343/laboratory_works/Bogdanova Elizaveta/laboratory_work_1/tour_agency/migrations/0001_initial.py | TonikX/ITMO_ICT_-WebProgramming_2020 | ba566c1b3ab04585665c69860b713741906935a0 | [
"MIT"
] | 71 | 2020-03-20T12:45:56.000Z | 2021-10-31T19:22:25.000Z | # Generated by Django 3.0.4 on 2020-04-19 07:08
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 49.039474 | 263 | 0.59458 | 378 | 3,727 | 5.653439 | 0.298942 | 0.144127 | 0.08423 | 0.112307 | 0.494619 | 0.457183 | 0.423491 | 0.299485 | 0.23912 | 0.23912 | 0 | 0.016111 | 0.267239 | 3,727 | 75 | 264 | 49.693333 | 0.766386 | 0.012074 | 0 | 0.352941 | 1 | 0 | 0.198098 | 0.013587 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.044118 | 0 | 0.102941 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f316d276c568c7f8edc1d1a769c4a1bd8cc48b4b | 425 | py | Python | requests_example.py | guilhermej/web_requests | 84d6ed205e16a771f16216c128661e1d191c407a | [
"MIT"
] | 4 | 2016-08-21T15:40:35.000Z | 2021-11-08T08:56:17.000Z | requests_example.py | guilhermej/web_requests | 84d6ed205e16a771f16216c128661e1d191c407a | [
"MIT"
] | null | null | null | requests_example.py | guilhermej/web_requests | 84d6ed205e16a771f16216c128661e1d191c407a | [
"MIT"
] | 1 | 2019-09-17T16:10:35.000Z | 2019-09-17T16:10:35.000Z | #####################################
# Python para Pentesters #
# https://solyd.com.br/treinamentos #
#####################################
import requests
url = 'https://solyd.com.br'
cabecalho = {'user-agent': 'Mozilla/5.0 (X11; Linux i686; rv:43.0) Gecko/20100101 Firefox/43.0 Iceweasel/43.0.4',
... | 25 | 113 | 0.536471 | 48 | 425 | 4.75 | 0.729167 | 0.039474 | 0.114035 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075209 | 0.155294 | 425 | 16 | 114 | 26.5625 | 0.559889 | 0.16 | 0 | 0 | 0 | 0.142857 | 0.422383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f31ed2522233a505a61578f141c03006d358d0a9 | 3,816 | py | Python | hooks/webkitpy/common/net/failuremap_unittest.py | nizovn/luna-sysmgr | 48b7e2546e81d6ad1604353f2e5ab797a7d1667c | [
"Apache-2.0"
] | 3 | 2018-11-16T14:51:17.000Z | 2019-11-21T10:55:24.000Z | hooks/webkitpy/common/net/failuremap_unittest.py | nizovn/luna-sysmgr | 48b7e2546e81d6ad1604353f2e5ab797a7d1667c | [
"Apache-2.0"
] | 1 | 2021-02-20T13:12:15.000Z | 2021-02-20T13:12:15.000Z | hooks/webkitpy/common/net/failuremap_unittest.py | ericblade/luna-sysmgr | 82d5d7ced4ba21d3802eb2c8ae063236b6562331 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2010 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the ... | 47.111111 | 95 | 0.761792 | 505 | 3,816 | 5.570297 | 0.358416 | 0.092428 | 0.049769 | 0.038393 | 0.347672 | 0.305012 | 0.266619 | 0.250267 | 0.247067 | 0.247067 | 0 | 0.027188 | 0.161426 | 3,816 | 80 | 96 | 47.7 | 0.851875 | 0.386268 | 0 | 0.2 | 0 | 0 | 0.017718 | 0 | 0 | 0 | 0 | 0 | 0.15 | 1 | 0.175 | false | 0 | 0.125 | 0 | 0.55 | 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 | 0 | 1 | 0 | 0 | 1 |
b82a442c473d62bfaa0be8c7b13cb1e5140e22aa | 3,039 | py | Python | third_party/rules_pkg-0.7.0/tests/zip/zip_test.py | Vertexwahn/FlatlandRT | 37d09fde38b25eff5f802200b43628efbd1e3198 | [
"Apache-2.0"
] | 62 | 2021-09-21T18:58:02.000Z | 2022-03-07T02:17:43.000Z | third_party/rules_pkg-0.7.0/tests/zip/zip_test.py | Vertexwahn/FlatlandRT | 37d09fde38b25eff5f802200b43628efbd1e3198 | [
"Apache-2.0"
] | null | null | null | third_party/rules_pkg-0.7.0/tests/zip/zip_test.py | Vertexwahn/FlatlandRT | 37d09fde38b25eff5f802200b43628efbd1e3198 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 The Bazel 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 applicable la... | 32.329787 | 86 | 0.673906 | 376 | 3,039 | 5.255319 | 0.348404 | 0.053138 | 0.1417 | 0.161943 | 0.428644 | 0.298077 | 0.218117 | 0.125 | 0.107794 | 0.107794 | 0 | 0.028237 | 0.184271 | 3,039 | 93 | 87 | 32.677419 | 0.768858 | 0.189207 | 0 | 0.206349 | 0 | 0 | 0.303673 | 0.10898 | 0 | 0 | 0 | 0 | 0.15873 | 1 | 0.15873 | false | 0 | 0.095238 | 0 | 0.269841 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
b840cb9ceb8321ea35a8a8ff5002ac6ac899c462 | 1,080 | py | Python | day2/day2.py | ohaz/adventofcode2020 | f04645627ed42cf346b4dbcd1ae0896d8a7d6304 | [
"Apache-2.0"
] | null | null | null | day2/day2.py | ohaz/adventofcode2020 | f04645627ed42cf346b4dbcd1ae0896d8a7d6304 | [
"Apache-2.0"
] | null | null | null | day2/day2.py | ohaz/adventofcode2020 | f04645627ed42cf346b4dbcd1ae0896d8a7d6304 | [
"Apache-2.0"
] | 1 | 2020-12-06T08:00:42.000Z | 2020-12-06T08:00:42.000Z | import re
from file_reader import get_file_entries
regex = re.compile(r'(?P<min>\d+)-(?P<max>\d+)\s(?P<policy>\w):\s(?P<password>.*)')
def is_valid_sub1_password(line):
parsed = regex.match(line)
amount = parsed.group('password').count(parsed.group('policy'))
return int(parsed.group('min')) <= amount <= i... | 31.764706 | 83 | 0.655556 | 153 | 1,080 | 4.503268 | 0.287582 | 0.127721 | 0.081277 | 0.055152 | 0.426705 | 0.281567 | 0.188679 | 0.188679 | 0.188679 | 0.188679 | 0 | 0.022831 | 0.188889 | 1,080 | 34 | 84 | 31.764706 | 0.763699 | 0 | 0 | 0.37931 | 0 | 0.034483 | 0.122109 | 0.055504 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0.310345 | 0.068966 | 0 | 0.275862 | 0.068966 | 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 | 0 | 0 | 0 | 1 |
b841ae52d0b58fb7e799ef5523e90cda1f322001 | 786 | py | Python | flogger/blog/forms.py | jcromerohdz/FlaskDev | 29539259cba3a0e18c205fb439ee916fb12e5318 | [
"MIT"
] | null | null | null | flogger/blog/forms.py | jcromerohdz/FlaskDev | 29539259cba3a0e18c205fb439ee916fb12e5318 | [
"MIT"
] | null | null | null | flogger/blog/forms.py | jcromerohdz/FlaskDev | 29539259cba3a0e18c205fb439ee916fb12e5318 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import validators, StringField, TextAreaField, SelectField, FileField
from wtforms.ext.sqlalchemy.fields import QuerySelectField
from flask_wtf.file import FileAllowed
from blog.models import Category
def categories():
return Category.query
class PostForm(FlaskForm):
... | 35.727273 | 82 | 0.71883 | 82 | 786 | 6.829268 | 0.560976 | 0.032143 | 0.042857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003106 | 0.180662 | 786 | 22 | 83 | 35.727273 | 0.86646 | 0 | 0 | 0.105263 | 0 | 0 | 0.095299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.263158 | 0.052632 | 0.684211 | 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 | 0 | 1 | 0 | 0 | 1 |
b843ca132f523796e0c566e520e7331651d75c0d | 939 | py | Python | fts/tests.py | Edmonton-Public-Library/centennial | b67283c579038a0ab0d991f0ca3f8178913a8692 | [
"MIT"
] | null | null | null | fts/tests.py | Edmonton-Public-Library/centennial | b67283c579038a0ab0d991f0ca3f8178913a8692 | [
"MIT"
] | null | null | null | fts/tests.py | Edmonton-Public-Library/centennial | b67283c579038a0ab0d991f0ca3f8178913a8692 | [
"MIT"
] | null | null | null | import re
import json
from django.test import LiveServerTestCase
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
BROWSER_WAIT = 10
class APITest(LiveServerTestCase):
fixtures = ['demo.json']
def setUp(self):
self.browser = webdriver.Firefox()
self.browser.impli... | 26.083333 | 78 | 0.690096 | 120 | 939 | 5.216667 | 0.458333 | 0.087859 | 0.071885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009247 | 0.193823 | 939 | 35 | 79 | 26.828571 | 0.817701 | 0 | 0 | 0 | 0 | 0 | 0.074547 | 0.028754 | 0 | 0 | 0 | 0 | 0.115385 | 1 | 0.192308 | false | 0 | 0.192308 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
b84c913c1dee8a763552ce9f0ce4bb4f2ba2d842 | 1,004 | py | Python | Python/Samples/Builder/UtBuilder.py | plasroom46/DesignPattern.Sample | 86c05c5ae356cb01f3d075f248c45da3e6534d07 | [
"MIT"
] | 9 | 2019-03-14T01:54:31.000Z | 2021-11-26T13:00:32.000Z | Python/Samples/Builder/UtBuilder.py | plasroom46/DesignPattern.Sample | 86c05c5ae356cb01f3d075f248c45da3e6534d07 | [
"MIT"
] | null | null | null | Python/Samples/Builder/UtBuilder.py | plasroom46/DesignPattern.Sample | 86c05c5ae356cb01f3d075f248c45da3e6534d07 | [
"MIT"
] | 2 | 2019-08-19T06:00:04.000Z | 2021-07-15T01:23:52.000Z | import unittest
from abc import ABC, abstractmethod
from Builder_models import MainData, Report, LeaveRecord
from Builders import Builder, BuilderFI,BuilderIT
from Directors import Director, DirectorCEO
class UtBuilder(unittest.TestCase):
def test_director(self):
myBuilder = BuilderFI()
director =... | 33.466667 | 72 | 0.715139 | 101 | 1,004 | 7 | 0.39604 | 0.127298 | 0.195191 | 0.082037 | 0.387553 | 0.387553 | 0.387553 | 0.229137 | 0.229137 | 0.229137 | 0 | 0.009864 | 0.192231 | 1,004 | 29 | 73 | 34.62069 | 0.861899 | 0 | 0 | 0.173913 | 0 | 0 | 0.050797 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 1 | 0.086957 | false | 0 | 0.217391 | 0 | 0.347826 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b8528e71df50556c8bb7f7708c5b7502f4a7441a | 10,534 | py | Python | tests/test_types.py | smartwaivercom/python-sdk | 04ff5d1ec682802b214bc67f95a8077f0fee96a5 | [
"Apache-2.0"
] | null | null | null | tests/test_types.py | smartwaivercom/python-sdk | 04ff5d1ec682802b214bc67f95a8077f0fee96a5 | [
"Apache-2.0"
] | 2 | 2018-04-06T21:41:45.000Z | 2018-06-11T21:05:18.000Z | tests/test_types.py | smartwaivercom/python-sdk | 04ff5d1ec682802b214bc67f95a8077f0fee96a5 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Smartwaiver
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 42.647773 | 118 | 0.740744 | 1,145 | 10,534 | 6.6 | 0.169432 | 0.142914 | 0.119492 | 0.095938 | 0.476909 | 0.323673 | 0.266111 | 0.17282 | 0.109567 | 0.083896 | 0 | 0.001579 | 0.158155 | 10,534 | 246 | 119 | 42.821138 | 0.850586 | 0.052022 | 0 | 0.236842 | 0 | 0 | 0.124047 | 0.013337 | 0 | 0 | 0 | 0 | 0.572368 | 1 | 0.092105 | false | 0 | 0.026316 | 0 | 0.164474 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b858551cb3e2aa2302bfea09d6aff6037ff299f5 | 1,529 | py | Python | utils/loss.py | gjy3035/WSAL_released | fad6490d032eb37dfb62bc0a1eb30fc062dc27a4 | [
"MIT"
] | 22 | 2019-08-19T09:58:29.000Z | 2021-11-15T09:35:17.000Z | utils/loss.py | gjy3035/WSAL_released | fad6490d032eb37dfb62bc0a1eb30fc062dc27a4 | [
"MIT"
] | null | null | null | utils/loss.py | gjy3035/WSAL_released | fad6490d032eb37dfb62bc0a1eb30fc062dc27a4 | [
"MIT"
] | 4 | 2020-07-03T01:08:09.000Z | 2021-12-02T16:02:54.000Z | import torch.nn.functional as F
from torch import nn
import pdb
class CrossEntropyLoss2d(nn.Module):
def __init__(self, weight=None, size_average=True):
super(CrossEntropyLoss2d, self).__init__()
self.nll_loss = nn.NLLLoss2d(weight, size_average)
def forward(self, inputs, targets):
re... | 35.55814 | 86 | 0.659908 | 196 | 1,529 | 4.897959 | 0.290816 | 0.091667 | 0.066667 | 0.046875 | 0.397917 | 0.258333 | 0.214583 | 0.214583 | 0.214583 | 0.214583 | 0 | 0.016949 | 0.228254 | 1,529 | 43 | 87 | 35.55814 | 0.79661 | 0.009156 | 0 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.060606 | 0.454545 | 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 | 0 | 0 | 0 | 1 |
b858ad0bd95057bfa6ad7b52ae9a125a980a274d | 1,610 | py | Python | angular_scaffold/management/commands/helpers/_generate_view.py | juanfe/django-angular-scaffold | 6425880d2198df22966e05509a01f09ec8f43e1a | [
"MIT"
] | 4 | 2015-02-03T06:48:43.000Z | 2015-05-27T15:31:56.000Z | angular_scaffold/management/commands/helpers/_generate_view.py | juanfe/django-angular-scaffold | 6425880d2198df22966e05509a01f09ec8f43e1a | [
"MIT"
] | 13 | 2015-01-08T14:12:38.000Z | 2021-06-10T17:44:37.000Z | angular_scaffold/management/commands/helpers/_generate_view.py | juanfe/django-angular-scaffold | 6425880d2198df22966e05509a01f09ec8f43e1a | [
"MIT"
] | 1 | 2018-02-25T17:50:55.000Z | 2018-02-25T17:50:55.000Z | import os
def _touch(fname):
try:
os.utime(fname, None)
except Exception:
open(fname, 'a').close()
return fname
def _build(path, pwd=None):
current = path.pop(0)
if pwd:
here = os.path.join(pwd, current)
else:
here = current
if not path:
return _to... | 29.814815 | 96 | 0.578882 | 221 | 1,610 | 4.176471 | 0.276018 | 0.071506 | 0.086674 | 0.102925 | 0.27519 | 0.215601 | 0.186349 | 0.186349 | 0.186349 | 0.186349 | 0 | 0.002506 | 0.256522 | 1,610 | 54 | 97 | 29.814815 | 0.768588 | 0.029193 | 0 | 0.095238 | 0 | 0 | 0.136538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.047619 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b86a7224b8659ab57462dbcb117577063eb332d1 | 1,197 | py | Python | newslytics/urls.py | rangertaha/newslytics | 204561507816c5daf3b8c5b89afd56d487b23311 | [
"MIT"
] | null | null | null | newslytics/urls.py | rangertaha/newslytics | 204561507816c5daf3b8c5b89afd56d487b23311 | [
"MIT"
] | null | null | null | newslytics/urls.py | rangertaha/newslytics | 204561507816c5daf3b8c5b89afd56d487b23311 | [
"MIT"
] | null | null | null | """crawlytics URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class... | 41.275862 | 79 | 0.705931 | 178 | 1,197 | 4.696629 | 0.342697 | 0.033493 | 0.07177 | 0.028708 | 0.221292 | 0.221292 | 0.171053 | 0.089713 | 0 | 0 | 0 | 0.008867 | 0.152047 | 1,197 | 28 | 80 | 42.75 | 0.814778 | 0.531328 | 0 | 0 | 0 | 0 | 0.17509 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 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 | 0 | 0 | 0 | 1 |
b86b31b186782e4a231beb3a5936c0fa1a7e18c6 | 2,333 | py | Python | tests/test_get_media.py | waider/gopro-py-api | b18b5458f5bbe689f468842d6888104317786de8 | [
"MIT"
] | 1 | 2019-05-06T21:48:54.000Z | 2019-05-06T21:48:54.000Z | tests/test_get_media.py | waider/gopro-py-api | b18b5458f5bbe689f468842d6888104317786de8 | [
"MIT"
] | null | null | null | tests/test_get_media.py | waider/gopro-py-api | b18b5458f5bbe689f468842d6888104317786de8 | [
"MIT"
] | null | null | null | from .conftest import GoProCameraTest
from goprocam import GoProCamera
from socket import timeout
class GetMediaTest(GoProCameraTest):
def test_get_media_FS(self):
with self.monkeypatch.context() as m:
m.setattr(GoProCamera.GoPro, 'infoCamera', lambda s, x: 'FS')
m.setattr(GoProCam... | 37.629032 | 74 | 0.510073 | 236 | 2,333 | 4.966102 | 0.241525 | 0.047782 | 0.113481 | 0.143345 | 0.709044 | 0.65273 | 0.65273 | 0.624573 | 0.624573 | 0.622867 | 0 | 0.010067 | 0.361337 | 2,333 | 61 | 75 | 38.245902 | 0.77651 | 0.023146 | 0 | 0.45283 | 0 | 0 | 0.125604 | 0 | 0 | 0 | 0 | 0 | 0.113208 | 1 | 0.113208 | false | 0 | 0.056604 | 0 | 0.188679 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
b86e64ee4fa8fb78da3d068832946b4103f91a6e | 346 | py | Python | Chapter03/Arista/eapi_1.py | stavsta/Mastering-Python-Networking-Second-Edition | 9999d2e415a1eb9c653ac3507500da7ddac2b556 | [
"MIT"
] | 107 | 2017-03-31T09:39:47.000Z | 2022-01-10T17:43:12.000Z | Chapter03/Arista/eapi_1.py | stavsta/Mastering-Python-Networking-Second-Edition | 9999d2e415a1eb9c653ac3507500da7ddac2b556 | [
"MIT"
] | 3 | 2020-03-29T14:14:43.000Z | 2020-10-29T18:21:09.000Z | Chapter03/Arista/eapi_1.py | stavsta/Mastering-Python-Networking-Second-Edition | 9999d2e415a1eb9c653ac3507500da7ddac2b556 | [
"MIT"
] | 98 | 2017-02-25T17:55:43.000Z | 2022-02-20T19:06:06.000Z | #!/usr/bin/python2
from __future__ import print_function
from jsonrpclib import Server
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
switch = Server("https://admin:arista@192.168.199.158/command-api")
response = switch.runCmds( 1, [ "show version" ] )
print('Serial Number: ' + res... | 26.615385 | 68 | 0.763006 | 46 | 346 | 5.478261 | 0.73913 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048701 | 0.109827 | 346 | 12 | 69 | 28.833333 | 0.769481 | 0.049133 | 0 | 0 | 0 | 0 | 0.265244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0.285714 | 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 | 0 | 0 | 0 | 1 |
b876f17e885e9b34aa1cf65d0e7064e738fd752d | 782 | py | Python | patch_extractor.py | StephenKyiMa/project_implementation | b9147788bd8752c399b7ac6dcd91bd2de82f4f38 | [
"MIT"
] | null | null | null | patch_extractor.py | StephenKyiMa/project_implementation | b9147788bd8752c399b7ac6dcd91bd2de82f4f38 | [
"MIT"
] | null | null | null | patch_extractor.py | StephenKyiMa/project_implementation | b9147788bd8752c399b7ac6dcd91bd2de82f4f38 | [
"MIT"
] | null | null | null | class PatchExtractor:
def __init__(self, img, patch_size, stride):
self.img = img
self.size = patch_size
self.stride = stride
def extract_patches(self):
wp, hp = self.shape()
return [self.extract_patch((w, h)) for h in range(hp) for w in range(wp)]
def... | 27.928571 | 82 | 0.530691 | 102 | 782 | 3.980392 | 0.294118 | 0.172414 | 0.103448 | 0.078818 | 0.093596 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011696 | 0.34399 | 782 | 27 | 83 | 28.962963 | 0.779727 | 0.023018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0 | 0.052632 | 0.421053 | 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 | 0 | 0 | 0 | 1 |
b882c8ade79995838f077896004a90b5ac80033e | 1,081 | py | Python | tpcdsDataGenerator/dataParser/web_returns.py | bomeng/smartbench | 349f202cedacc96bb66c2306bb22beb8ab7112b5 | [
"Apache-2.0"
] | null | null | null | tpcdsDataGenerator/dataParser/web_returns.py | bomeng/smartbench | 349f202cedacc96bb66c2306bb22beb8ab7112b5 | [
"Apache-2.0"
] | null | null | null | tpcdsDataGenerator/dataParser/web_returns.py | bomeng/smartbench | 349f202cedacc96bb66c2306bb22beb8ab7112b5 | [
"Apache-2.0"
] | null | null | null | from pyspark.sql import Row
from pyspark import SparkConf, SparkContext
from pyspark.sql import SparkSession
from pyspark.sql import HiveContext
import os
conf = SparkConf()
sc = SparkContext(conf=conf)
spark = HiveContext(sc)
textDataRDD = sc.textFile(os.environ["DATA_HDFS"] + "web_returns.dat")
textDataDF = textDat... | 77.214286 | 694 | 0.768733 | 196 | 1,081 | 3.913265 | 0.454082 | 0.050847 | 0.054759 | 0.078227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.086031 | 1,081 | 13 | 695 | 83.153846 | 0.737854 | 0 | 0 | 0 | 0 | 0 | 0.053654 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 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 | 0 | 0 | 0 | 1 |
b889f942415fb339431d1101b01af18beb7f9a0f | 609 | py | Python | tests/basic_tests/test_player.py | sriteja777/My_Mario | ee90abb1f40d42805cf6a92f9773aa04a1743a44 | [
"MIT"
] | 1 | 2021-03-24T13:52:15.000Z | 2021-03-24T13:52:15.000Z | tests/basic_tests/test_player.py | sriteja777/My_Mario | ee90abb1f40d42805cf6a92f9773aa04a1743a44 | [
"MIT"
] | null | null | null | tests/basic_tests/test_player.py | sriteja777/My_Mario | ee90abb1f40d42805cf6a92f9773aa04a1743a44 | [
"MIT"
] | 1 | 2018-12-18T13:59:29.000Z | 2018-12-18T13:59:29.000Z | # from path import mymario as m
import sys
sys.path.append('/home/sriteja/PycharmProjects/My_Mario/mymario')
# sys.path.insert(0, '../mymario/')
import motion as m
import config as c
import old_game as g
player = m.Player({'max_x': 4, 'max_y': 5, 'min_x': 6, 'min_y': 7}, c.PLAYER)
def test_init():
assert (playe... | 25.375 | 106 | 0.692939 | 102 | 609 | 3.95098 | 0.431373 | 0.079404 | 0.104218 | 0.099256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017476 | 0.154351 | 609 | 23 | 107 | 26.478261 | 0.765049 | 0.103448 | 0 | 0 | 0 | 0 | 0.121547 | 0.084715 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.214286 | false | 0 | 0.285714 | 0 | 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 | 0 | 0 | 0 | 0 | 1 |
b88bfa9cf5a8e525b1eb7f373067b3099712cb0c | 698 | py | Python | event_rsvp/cms_plugins.py | django-cms-plugins/django-event-rsvp | 1f288599a268646bddc4c87e7ec17c7c1ec5df11 | [
"MIT"
] | 5 | 2018-02-01T08:45:41.000Z | 2021-11-10T07:57:43.000Z | event_rsvp/cms_plugins.py | bitmazk/django-event-rsvp | 1f288599a268646bddc4c87e7ec17c7c1ec5df11 | [
"MIT"
] | 9 | 2017-09-25T00:33:35.000Z | 2022-03-11T23:12:46.000Z | event_rsvp/cms_plugins.py | bitlabstudio/django-event-rsvp | 1f288599a268646bddc4c87e7ec17c7c1ec5df11 | [
"MIT"
] | 6 | 2017-08-12T08:39:09.000Z | 2019-09-30T19:28:31.000Z | """CMS Plugins for the ``event_rsvp`` app."""
from django.utils.timezone import now
from django.utils.translation import ugettext as _
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from .models import Event
class CMSEventPlugin(CMSPluginBase):
name = _('Upcoming Events')
... | 29.083333 | 66 | 0.676218 | 78 | 698 | 5.871795 | 0.576923 | 0.065502 | 0.065502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001862 | 0.230659 | 698 | 23 | 67 | 30.347826 | 0.851024 | 0.055874 | 0 | 0 | 0 | 0 | 0.096478 | 0.047473 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.625 | 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 | 0 | 0 | 0 | 1 |
b8952832b559f527aee402420f72fa5336c982a6 | 607 | py | Python | SemanticParsing/parsing_vkapi.py | yeltayzhastay/Semantic-Analisis | 2984be7496878bccdb21691421f094f497eae975 | [
"MIT"
] | null | null | null | SemanticParsing/parsing_vkapi.py | yeltayzhastay/Semantic-Analisis | 2984be7496878bccdb21691421f094f497eae975 | [
"MIT"
] | null | null | null | SemanticParsing/parsing_vkapi.py | yeltayzhastay/Semantic-Analisis | 2984be7496878bccdb21691421f094f497eae975 | [
"MIT"
] | null | null | null | import Vk_parser as parser
import time
def main():
first_time = time.time()
access_token = "0a93bf3e5e613f7f8330cccc4df8fba77079c92d520a615a4cd7897ebb7d1808ad3e379a25ee58e681fbb"
getter = parser.Vk_parser(access_token)
ids = getter.SearchGroup('қылмыс')
token = "2002bd1a2002bd1a2002bd1a5d20767dff... | 31.947368 | 106 | 0.759473 | 64 | 607 | 6.84375 | 0.53125 | 0.054795 | 0.063927 | 0.091324 | 0.114155 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203455 | 0.14168 | 607 | 19 | 107 | 31.947368 | 0.637236 | 0 | 0 | 0 | 0 | 0 | 0.356908 | 0.292763 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.214286 | 0.071429 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b89a0c36847fb9e9f99cf8397ef946a7ea556fd1 | 2,565 | py | Python | click_man/__main__.py | berthin/click-man | 3e5a73bda22a8a6ae2e169385173723a11b17409 | [
"MIT"
] | null | null | null | click_man/__main__.py | berthin/click-man | 3e5a73bda22a8a6ae2e169385173723a11b17409 | [
"MIT"
] | null | null | null | click_man/__main__.py | berthin/click-man | 3e5a73bda22a8a6ae2e169385173723a11b17409 | [
"MIT"
] | null | null | null | """
click-man - Generate man pages for click application
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This module provides a click CLI command to
generate man pages from a click application.
:copyright: (c) 2016 by Timo Furrer.
:license: MIT, see LICENSE for more details.
"""
import os
import click
from pkg_... | 36.642857 | 101 | 0.676803 | 357 | 2,565 | 4.72549 | 0.333333 | 0.042679 | 0.047421 | 0.04505 | 0.061648 | 0.042679 | 0 | 0 | 0 | 0 | 0 | 0.007741 | 0.194152 | 2,565 | 69 | 102 | 37.173913 | 0.808418 | 0.272125 | 0 | 0 | 1 | 0 | 0.181967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0.027778 | 0.194444 | 0 | 0.222222 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
b89ab422b047be1245074c020ffd0fd335d8ec89 | 1,155 | py | Python | corruptions/gaussian_noise_model_torch.py | m43/PointNav-VO | 8e1a950dc929effdc3e1bff683547fece7ad2a23 | [
"Apache-2.0"
] | null | null | null | corruptions/gaussian_noise_model_torch.py | m43/PointNav-VO | 8e1a950dc929effdc3e1bff683547fece7ad2a23 | [
"Apache-2.0"
] | null | null | null | corruptions/gaussian_noise_model_torch.py | m43/PointNav-VO | 8e1a950dc929effdc3e1bff683547fece7ad2a23 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import attr
import torch
from habitat_sim.registry import registry
from habitat_sim.sensor import SensorType
from habitat_sim.sensors.noise_models.sensor_noise_model import SensorNoiseModel
@registry.register_noise_model
@attr.s(auto_attribs=True, kw_only=True, slots=True)
class GaussianNoise... | 36.09375 | 117 | 0.690909 | 153 | 1,155 | 5.104575 | 0.424837 | 0.084507 | 0.053777 | 0.051216 | 0.079385 | 0.079385 | 0 | 0 | 0 | 0 | 0 | 0.021598 | 0.198268 | 1,155 | 31 | 118 | 37.258065 | 0.821814 | 0.073593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.227273 | 0.045455 | 0.681818 | 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 | 0 | 1 | 0 | 0 | 1 |
b89e78d321c792a69f5fe79d46dd45514d9ee537 | 4,027 | py | Python | plotting/plot_dlogp_selective.py | sjforeman/RadioFisher | fe25f969de9a700c5697168ba9e0d2645c55ed81 | [
"AFL-3.0"
] | 3 | 2020-12-05T11:28:47.000Z | 2021-07-09T02:42:21.000Z | plotting/plot_dlogp_selective.py | sjforeman/RadioFisher | fe25f969de9a700c5697168ba9e0d2645c55ed81 | [
"AFL-3.0"
] | null | null | null | plotting/plot_dlogp_selective.py | sjforeman/RadioFisher | fe25f969de9a700c5697168ba9e0d2645c55ed81 | [
"AFL-3.0"
] | 2 | 2021-07-09T02:42:23.000Z | 2021-11-30T06:37:47.000Z | #!/usr/bin/python
"""
Process EOS Fisher matrices and plot P(k).
"""
import numpy as np
import pylab as P
from rfwrapper import rf
import matplotlib.patches
import matplotlib.cm
from units import *
from mpi4py import MPI
import os
import euclid
cosmo = rf.experiments.cosmo
names = ['SKAMID_PLUS', 'SKAMID_PLUS2', 'i... | 33.280992 | 86 | 0.565185 | 630 | 4,027 | 3.55873 | 0.379365 | 0.013381 | 0.028546 | 0.021409 | 0.295272 | 0.28992 | 0.251561 | 0.221231 | 0.221231 | 0.221231 | 0 | 0.051365 | 0.236156 | 4,027 | 120 | 87 | 33.558333 | 0.677503 | 0.33772 | 0 | 0 | 0 | 0 | 0.16492 | 0.008537 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.163636 | null | null | 0.036364 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b8a627a2bf276eb349850acf1138e974204c26f4 | 3,369 | py | Python | lambda/bibot_config.py | bhupeshwar/bp-amazon-lex-bi-bot | 3bb2fc97e8395c926f16f3aa8e1aee9e8eda28d9 | [
"MIT-0"
] | null | null | null | lambda/bibot_config.py | bhupeshwar/bp-amazon-lex-bi-bot | 3bb2fc97e8395c926f16f3aa8e1aee9e8eda28d9 | [
"MIT-0"
] | null | null | null | lambda/bibot_config.py | bhupeshwar/bp-amazon-lex-bi-bot | 3bb2fc97e8395c926f16f3aa8e1aee9e8eda28d9 | [
"MIT-0"
] | null | null | null | #
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this
# software and associated documentation files (the "Software"), to deal in the Software
# without restriction, including without limitation the right... | 59.105263 | 123 | 0.632829 | 407 | 3,369 | 5.110565 | 0.336609 | 0.09375 | 0.114423 | 0.168269 | 0.437981 | 0.389423 | 0.1875 | 0.1875 | 0.174038 | 0.174038 | 0 | 0.002243 | 0.205996 | 3,369 | 56 | 124 | 60.160714 | 0.775327 | 0.276046 | 0 | 0 | 0 | 0 | 0.360254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.029412 | 0 | 0 | 0.029412 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
b8a70473d24861315130519b4a1fd53803a0a944 | 1,860 | py | Python | sydent/http/servlets/hashdetailsservlet.py | callahad/sydent | 7eb4b147d27d2e670551aca8315bbf83f37f8b9a | [
"Apache-2.0"
] | null | null | null | sydent/http/servlets/hashdetailsservlet.py | callahad/sydent | 7eb4b147d27d2e670551aca8315bbf83f37f8b9a | [
"Apache-2.0"
] | null | null | null | sydent/http/servlets/hashdetailsservlet.py | callahad/sydent | 7eb4b147d27d2e670551aca8315bbf83f37f8b9a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2019 The Matrix.org Foundation C.I.C.
#
# 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 requir... | 30.491803 | 80 | 0.68871 | 243 | 1,860 | 5.164609 | 0.534979 | 0.047809 | 0.020717 | 0.025498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 0.241935 | 1,860 | 60 | 81 | 31 | 0.879433 | 0.52957 | 0 | 0.086957 | 0 | 0 | 0.041772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.217391 | 0 | 0.565217 | 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 | 0 | 1 | 0 | 0 | 1 |
b8afb82910c2035c67b7742a030ca4d03afeba81 | 2,830 | py | Python | tools/convert_old_preshow_to_new.py | MattDietz/lightshowpi | b8c8798b7e9944295889e39ff470db185579a842 | [
"BSD-2-Clause"
] | 3 | 2016-10-13T20:47:13.000Z | 2018-11-30T00:53:26.000Z | tools/convert_old_preshow_to_new.py | bradowen2011/lightshowpi | 15713bdd64dd4e7be52abee3b1aac9286eebaf9a | [
"BSD-2-Clause"
] | 2 | 2021-03-26T00:38:54.000Z | 2021-06-02T03:33:44.000Z | tools/convert_old_preshow_to_new.py | MattDietz/lightshowpi | b8c8798b7e9944295889e39ff470db185579a842 | [
"BSD-2-Clause"
] | 8 | 2015-10-10T05:08:59.000Z | 2021-01-31T15:57:27.000Z | # This tool will allow you to convert your old preshow config to the
# new preshow_configuration.
# usage
# python convert_old_preshow_to_new.py
import collections
import json
import os
import sys
print "This will generate a new config file with the old style preshow removed"
print "It will not change any of your exi... | 31.797753 | 82 | 0.732509 | 438 | 2,830 | 4.650685 | 0.374429 | 0.029455 | 0.022091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004288 | 0.175972 | 2,830 | 88 | 83 | 32.159091 | 0.869211 | 0.237809 | 0 | 0.098039 | 0 | 0 | 0.405431 | 0.032303 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.098039 | null | null | 0.235294 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b8b3c45f76ab3a4d3f3afee1bf336e1e7296b7f2 | 174 | py | Python | notebooks/_solutions/11-xarray-intro25.py | jorisvandenbossche/DS-python-geospatial | 893a12edc5c203a75815f6dcb5f1e18c577c8cd5 | [
"BSD-3-Clause"
] | 58 | 2020-10-09T10:10:59.000Z | 2022-03-07T14:58:07.000Z | notebooks/_solutions/11-xarray-intro25.py | jorisvandenbossche/DS-python-geospatial | 893a12edc5c203a75815f6dcb5f1e18c577c8cd5 | [
"BSD-3-Clause"
] | 24 | 2020-09-30T19:57:14.000Z | 2021-10-05T07:21:09.000Z | notebooks/_solutions/11-xarray-intro25.py | jorisvandenbossche/DS-python-geospatial | 893a12edc5c203a75815f6dcb5f1e18c577c8cd5 | [
"BSD-3-Clause"
] | 19 | 2020-10-05T09:32:18.000Z | 2022-03-20T00:09:14.000Z | # As a quick reference, plot using the `"Greens"` colormap as such:
fig, ax = plt.subplots(figsize=(14, 5))
ll = ndvi.plot.imshow(ax=ax, cmap="Greens")
ax.set_aspect("equal") | 43.5 | 67 | 0.701149 | 30 | 174 | 4.033333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.12069 | 174 | 4 | 68 | 43.5 | 0.771242 | 0.373563 | 0 | 0 | 0 | 0 | 0.101852 | 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 | 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 | 1 |
b212836d43feee6a4add5fe353881a88c5b24a29 | 2,264 | py | Python | biothings/utils/serializer.py | newgene/biothings.api | e3278695ac15a55fe420aa49c464946f81ec019d | [
"Apache-2.0"
] | null | null | null | biothings/utils/serializer.py | newgene/biothings.api | e3278695ac15a55fe420aa49c464946f81ec019d | [
"Apache-2.0"
] | 2 | 2022-03-18T23:12:02.000Z | 2022-03-18T23:59:42.000Z | biothings/utils/serializer.py | newgene/biothings.api | e3278695ac15a55fe420aa49c464946f81ec019d | [
"Apache-2.0"
] | null | null | null | import datetime
from collections import OrderedDict, UserString, UserDict, UserList
from urllib.parse import parse_qs, unquote_plus, urlencode, urlparse, urlunparse
import orjson
import yaml
def to_json_0(data):
'''deprecated'''
import json
from biothings.utils.common import BiothingsJSONEncoder
ret... | 31.444444 | 88 | 0.70053 | 292 | 2,264 | 5.243151 | 0.40411 | 0.013063 | 0.029393 | 0.016982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001114 | 0.206714 | 2,264 | 71 | 89 | 31.887324 | 0.851336 | 0.135159 | 0 | 0 | 0 | 0 | 0.037571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.020833 | 0.166667 | 0.020833 | 0.5625 | 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 | 0 | 1 | 0 | 0 | 1 |
b2161d89a27f487118f12e43e794822d15b915c7 | 528 | py | Python | backend/src/accounts/migrations/0003_auto_20180623_0213.py | rcmiskin10/mob_files | dd4932c15c96bea914ffa99b72c83d471a4bfaff | [
"MIT"
] | null | null | null | backend/src/accounts/migrations/0003_auto_20180623_0213.py | rcmiskin10/mob_files | dd4932c15c96bea914ffa99b72c83d471a4bfaff | [
"MIT"
] | null | null | null | backend/src/accounts/migrations/0003_auto_20180623_0213.py | rcmiskin10/mob_files | dd4932c15c96bea914ffa99b72c83d471a4bfaff | [
"MIT"
] | null | null | null | # Generated by Django 2.0.4 on 2018-06-23 02:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0002_adminprofile_businessprofile_eventprofile_participantprofile'),
]
operations = [
migrations.AlterField(
model_n... | 27.789474 | 148 | 0.63447 | 54 | 528 | 6.092593 | 0.814815 | 0.048632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056373 | 0.227273 | 528 | 18 | 149 | 29.333333 | 0.75 | 0.085227 | 0 | 0 | 1 | 0 | 0.237006 | 0.135135 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
b2201d299d75ca82bc83ec12de1b38ec3caf4eda | 339 | py | Python | pengrixio/k8s/__init__.py | iorchard/pengrixio | 65d01799296fce043e87ba58106f8fa8c1d8aa98 | [
"MIT"
] | null | null | null | pengrixio/k8s/__init__.py | iorchard/pengrixio | 65d01799296fce043e87ba58106f8fa8c1d8aa98 | [
"MIT"
] | null | null | null | pengrixio/k8s/__init__.py | iorchard/pengrixio | 65d01799296fce043e87ba58106f8fa8c1d8aa98 | [
"MIT"
] | null | null | null | import kubernetes.config
import logging
import logging.config
from pengrixio.config import KUBECONFIG
logging.config.fileConfig('logging.conf')
log = logging.getLogger('pengrixio')
# load kubernetes config file.
try:
kubernetes.config.load_kube_config(KUBECONFIG)
except:
log.warn('kubernetes cluster config ... | 21.1875 | 58 | 0.79351 | 42 | 339 | 6.357143 | 0.47619 | 0.179775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117994 | 339 | 15 | 59 | 22.6 | 0.892977 | 0.082596 | 0 | 0 | 0 | 0 | 0.203884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 0 | 0 | 0 | 1 |
b2285a30624eec952bce14f5fc912a00c8b5b3f7 | 1,653 | py | Python | tomes_darcmail/lib/eaxs_helpers/Render.py | StateArchivesOfNorthCarolina/docker_dmc | c387a4bcd91346bedf3a4c4f242fb7f35d5a81c1 | [
"MIT"
] | null | null | null | tomes_darcmail/lib/eaxs_helpers/Render.py | StateArchivesOfNorthCarolina/docker_dmc | c387a4bcd91346bedf3a4c4f242fb7f35d5a81c1 | [
"MIT"
] | 1 | 2018-11-23T17:04:52.000Z | 2018-11-23T17:04:52.000Z | tomes_darcmail/lib/eaxs_helpers/Render.py | StateArchivesOfNorthCarolina/docker_dmc | c387a4bcd91346bedf3a4c4f242fb7f35d5a81c1 | [
"MIT"
] | null | null | null | #############################################################
# 2016-09-22: Render.py
# Author: Jeremy M. Gibson (State Archives of North Carolina)
#
# Description: Renders a single Element and its children
##############################################################
from xml.etree.ElementTree import Element
from xml... | 33.06 | 89 | 0.577737 | 181 | 1,653 | 5.20442 | 0.486188 | 0.050955 | 0.038217 | 0.073248 | 0.092357 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009046 | 0.264368 | 1,653 | 49 | 90 | 33.734694 | 0.765625 | 0.197217 | 0 | 0.137931 | 0 | 0 | 0.059432 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.137931 | false | 0 | 0.172414 | 0 | 0.413793 | 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 | 0 | 0 | 0 | 1 |
b2288d0333c104a64760da04f0809ed5c5809274 | 687 | py | Python | smart-lamp/modes/terminal.py | semspanhaak/making-things-smart | c042cc314232953c32a0eb789d345471169b7d92 | [
"MIT"
] | 1 | 2021-04-08T10:00:00.000Z | 2021-04-08T10:00:00.000Z | smart-lamp/modes/terminal.py | semspanhaak/making-things-smart | c042cc314232953c32a0eb789d345471169b7d92 | [
"MIT"
] | null | null | null | smart-lamp/modes/terminal.py | semspanhaak/making-things-smart | c042cc314232953c32a0eb789d345471169b7d92 | [
"MIT"
] | null | null | null | #!/use/bin/python
import sys
from sense_hat import SenseHat
import variables.colors as c
import variables.mode as m
from libs.set_color import *
def set_color_terminal():
sense = SenseHat()
try:
color = input("Type an rgb color: ")
except (KeyboardInterrupt, SystemExit):
sys.exit()
ex... | 23.689655 | 98 | 0.596798 | 85 | 687 | 4.752941 | 0.529412 | 0.059406 | 0.138614 | 0.188119 | 0.277228 | 0.277228 | 0.277228 | 0.277228 | 0 | 0 | 0 | 0.020367 | 0.285298 | 687 | 28 | 99 | 24.535714 | 0.802444 | 0.02329 | 0 | 0.347826 | 0 | 0.043478 | 0.185075 | 0.038806 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.217391 | 0 | 0.26087 | 0.086957 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
b22940dd2c6da05bd71fb81c7948ce2083fb6de5 | 4,550 | py | Python | abintb/qn.py | abyellow/abin-tight-binding | 538aef632937b1840d5ffd184f162858637b01f5 | [
"MIT"
] | 1 | 2018-02-22T19:13:24.000Z | 2018-02-22T19:13:24.000Z | abintb/qn.py | abyellow/abin-tight-binding | 538aef632937b1840d5ffd184f162858637b01f5 | [
"MIT"
] | null | null | null | abintb/qn.py | abyellow/abin-tight-binding | 538aef632937b1840d5ffd184f162858637b01f5 | [
"MIT"
] | 1 | 2017-09-14T17:25:09.000Z | 2017-09-14T17:25:09.000Z | import numpy as np
from scipy.linalg import expm
import matplotlib.pyplot as plt
from time import time
class QnModel:
"""
Initial data/conditions of Quantum Hamiltonian and initial states.
"""
def __init__(self, QnIni, tb_model=False):
self.QnIni = QnIni
self.k = QnIni.k
self.ctrlt = QnIni.ctrlt #np.a... | 20.967742 | 83 | 0.597363 | 821 | 4,550 | 3.204629 | 0.175396 | 0.031927 | 0.033447 | 0.026606 | 0.261117 | 0.234512 | 0.202204 | 0.162296 | 0.107184 | 0.107184 | 0 | 0.034877 | 0.212308 | 4,550 | 216 | 84 | 21.064815 | 0.699219 | 0.124396 | 0 | 0.143939 | 0 | 0 | 0.014427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030303 | null | null | 0.015152 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b22d230ddf1b0bd821065d2ff67e9b13396a7ab5 | 1,624 | py | Python | seata/core/model/BranchStatus.py | opentrx/seata-python | 66fb3382217a43effa3d1bc5ec2b62204d499dba | [
"Apache-2.0"
] | 8 | 2021-09-09T06:28:08.000Z | 2022-03-06T04:58:40.000Z | seata/core/model/BranchStatus.py | opentrx/seata-python | 66fb3382217a43effa3d1bc5ec2b62204d499dba | [
"Apache-2.0"
] | null | null | null | seata/core/model/BranchStatus.py | opentrx/seata-python | 66fb3382217a43effa3d1bc5ec2b62204d499dba | [
"Apache-2.0"
] | 4 | 2021-08-23T07:44:27.000Z | 2022-02-11T08:42:54.000Z | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# @author jsbxyyx
# @since 1.0
from enum import Enum
class BranchStatus(Enum):
"""
The Unknown.
description: Unknown branch status.
"""
Unknown = 0,
"""
The Registered.
description: Registered to TC.
"""
Registered = 1,
"""
... | 22.246575 | 66 | 0.64532 | 184 | 1,624 | 5.625 | 0.320652 | 0.069565 | 0.063768 | 0.069565 | 0.362319 | 0.224155 | 0.079227 | 0.079227 | 0 | 0 | 0 | 0.013445 | 0.267241 | 1,624 | 73 | 67 | 22.246575 | 0.856303 | 0.07266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
b2312be74673f9956784730e25f93fd895c8043a | 3,964 | py | Python | app/main/forms.py | lihuii/fanxiangce | c6eb8410867c7a743d1ede920b0858158fec961c | [
"MIT"
] | 79 | 2017-02-10T13:19:31.000Z | 2022-01-23T07:58:57.000Z | app/main/forms.py | wensonger/fanxiangce | c6eb8410867c7a743d1ede920b0858158fec961c | [
"MIT"
] | null | null | null | app/main/forms.py | wensonger/fanxiangce | c6eb8410867c7a743d1ede920b0858158fec961c | [
"MIT"
] | 40 | 2017-02-14T03:41:38.000Z | 2022-01-23T07:58:59.000Z | # -*-coding: utf-8-*-
from flask_wtf import Form
from wtforms import StringField, SubmitField, RadioField, PasswordField, BooleanField, FileField, \
TextAreaField, SelectField, IntegerField, SelectMultipleField
from wtforms.validators import DataRequired, Length, Email, Regexp, EqualTo, URL, Optiona... | 40.44898 | 103 | 0.606963 | 446 | 3,964 | 5.325112 | 0.325112 | 0.055579 | 0.050105 | 0.056 | 0.422737 | 0.299368 | 0.210947 | 0.157895 | 0.132211 | 0.132211 | 0 | 0.012701 | 0.245207 | 3,964 | 97 | 104 | 40.865979 | 0.781083 | 0.004793 | 0 | 0.282051 | 0 | 0 | 0.101471 | 0.020802 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0.012821 | 0.102564 | 0 | 0.653846 | 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 | 0 | 1 | 0 | 0 | 1 |
b233e1f58a252d0821ccd3f1efdb4c70da8c7d39 | 966 | py | Python | tests/kyu_8_tests/test_my_head_is_at_the_wrong_end.py | the-zebulan/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 40 | 2016-03-09T12:26:20.000Z | 2022-03-23T08:44:51.000Z | tests/kyu_8_tests/test_my_head_is_at_the_wrong_end.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | null | null | null | tests/kyu_8_tests/test_my_head_is_at_the_wrong_end.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 36 | 2016-11-07T19:59:58.000Z | 2022-03-31T11:18:27.000Z | import unittest
from katas.kyu_8.my_head_is_at_the_wrong_end import fix_the_meerkat
class FixTheMeerkatTestCase(unittest.TestCase):
def test_equals(self):
self.assertEqual(
fix_the_meerkat(['tail', 'body', 'head']),
['head', 'body', 'tail']
)
def test_equals_2(self):
... | 26.833333 | 67 | 0.544513 | 104 | 966 | 4.788462 | 0.394231 | 0.072289 | 0.156627 | 0.220884 | 0.321285 | 0.321285 | 0 | 0 | 0 | 0 | 0 | 0.007386 | 0.299172 | 966 | 35 | 68 | 27.6 | 0.728213 | 0 | 0 | 0.178571 | 0 | 0 | 0.169772 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 1 | 0.178571 | false | 0 | 0.071429 | 0 | 0.285714 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
b237dad3b6467b42eaaee14eb913636259017f9b | 591 | py | Python | assignments/solutions/11_run_length/rle.py | zchen1-ua/be434-fall-2021 | 65e39e48371d511cb1fd505eeaaed6e628eddd18 | [
"MIT"
] | null | null | null | assignments/solutions/11_run_length/rle.py | zchen1-ua/be434-fall-2021 | 65e39e48371d511cb1fd505eeaaed6e628eddd18 | [
"MIT"
] | null | null | null | assignments/solutions/11_run_length/rle.py | zchen1-ua/be434-fall-2021 | 65e39e48371d511cb1fd505eeaaed6e628eddd18 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
def encode(message):
encoded_message = ""
i = 0
while (i <= len(message) - 1):
count = 1
ch = message[i]
j = i
while (j < len(message) - 1):
if (message[j] == message[j + 1]):
count = count + 1
j = j + 1
... | 23.64 | 59 | 0.529611 | 71 | 591 | 4.323944 | 0.43662 | 0.273616 | 0.136808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024 | 0.365482 | 591 | 24 | 60 | 24.625 | 0.794667 | 0.133672 | 0 | 0 | 0 | 0 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.111111 | 0.055556 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
b2397a2e34cf64e56eb335dcadf4f225cd417260 | 262 | py | Python | building/smallCrater.py | cssidy/minecraft-hacks | 84aeef7c4658a048babcd7c7f900775dd8db41fa | [
"MIT"
] | 1 | 2017-02-06T16:59:51.000Z | 2017-02-06T16:59:51.000Z | building/smallCrater.py | cssidy/minecraft | 84aeef7c4658a048babcd7c7f900775dd8db41fa | [
"MIT"
] | null | null | null | building/smallCrater.py | cssidy/minecraft | 84aeef7c4658a048babcd7c7f900775dd8db41fa | [
"MIT"
] | null | null | null | from mcpi.minecraft import Minecraft
mc = Minecraft.create()
answer = input("Create a crater? Y/N ")
if answer == "Y":
pos = mc.player.getPos()
mc.setBlocks(pos.x + 1, pos.y + 1, pos.z + 1, pos.x - 1, pos.y - 1, pos.z - 1, 0)
mc.postToChat("Boom!")
| 29.111111 | 85 | 0.60687 | 46 | 262 | 3.456522 | 0.5 | 0.125786 | 0.062893 | 0.100629 | 0.188679 | 0.188679 | 0.188679 | 0.188679 | 0.188679 | 0 | 0 | 0.033654 | 0.206107 | 262 | 8 | 86 | 32.75 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0.103053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.