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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
540d0390caf1f8e117f920ebb698ff905927b528 | 1,239 | py | Python | hms2deg.py | jacob975/TATIRP | 2d81fa280e039aa931c6f8456632a23ef123282a | [
"MIT"
] | null | null | null | hms2deg.py | jacob975/TATIRP | 2d81fa280e039aa931c6f8456632a23ef123282a | [
"MIT"
] | 4 | 2017-08-22T03:15:22.000Z | 2017-12-19T17:55:31.000Z | hms2deg.py | jacob975/TATIRP | 2d81fa280e039aa931c6f8456632a23ef123282a | [
"MIT"
] | null | null | null | #!/usr/bin/python
'''
Program:
This is a script to convert the unit from h:m:s/d:m:s to degree/degree
Usage:
hms2deg.py
Output:
1. The number in degree.
Editor:
Jacob975
20190805
#################################
update log
20190805 version alpha 1:
1. The code works.
'''
from sys import argv
imp... | 26.361702 | 76 | 0.514931 | 154 | 1,239 | 4.012987 | 0.474026 | 0.012945 | 0.009709 | 0.012945 | 0.019417 | 0.019417 | 0 | 0 | 0 | 0 | 0 | 0.029661 | 0.238095 | 1,239 | 46 | 77 | 26.934783 | 0.625 | 0.19209 | 0 | 0 | 0 | 0 | 0.163866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.238095 | null | null | 0.190476 | 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 |
540d9f3fb48d660c9c5a3409208ea6720422a3ed | 5,556 | py | Python | ucscsdk/mometa/firmware/FirmwarePolicy.py | parag-may4/ucscsdk | 2ea762fa070330e3a4e2c21b46b157469555405b | [
"Apache-2.0"
] | 9 | 2016-12-22T08:39:25.000Z | 2019-09-10T15:36:19.000Z | ucscsdk/mometa/firmware/FirmwarePolicy.py | parag-may4/ucscsdk | 2ea762fa070330e3a4e2c21b46b157469555405b | [
"Apache-2.0"
] | 10 | 2017-01-31T06:59:56.000Z | 2021-11-09T09:14:37.000Z | ucscsdk/mometa/firmware/FirmwarePolicy.py | parag-may4/ucscsdk | 2ea762fa070330e3a4e2c21b46b157469555405b | [
"Apache-2.0"
] | 13 | 2016-11-14T07:42:58.000Z | 2022-02-10T17:32:05.000Z | """This module contains the general information for FirmwarePolicy ManagedObject."""
from ...ucscmo import ManagedObject
from ...ucsccoremeta import UcscVersion, MoPropertyMeta, MoMeta
from ...ucscmeta import VersionMeta
class FirmwarePolicyConsts():
DEPLOYMENT_MODE_IMMEDIATE = "immediate"
DEPLOYMENT_MODE_MA... | 59.741935 | 249 | 0.658027 | 599 | 5,556 | 5.866444 | 0.21202 | 0.061468 | 0.163916 | 0.179283 | 0.319294 | 0.291975 | 0.21827 | 0.21827 | 0.170746 | 0.136027 | 0 | 0.030061 | 0.167747 | 5,556 | 92 | 250 | 60.391304 | 0.729888 | 0.019438 | 0 | 0 | 0 | 0.038462 | 0.281641 | 0.07156 | 0 | 0 | 0.003863 | 0 | 0 | 1 | 0.012821 | false | 0 | 0.038462 | 0 | 0.358974 | 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 |
540ebb54cf2d05fac9ab028064bd23615a382f18 | 4,340 | py | Python | tf_semseg/model/esanet.py | fferflo/tf-semseg | b392cac2e8cca5389e7a099e8f7a87d72f4a70fc | [
"MIT"
] | null | null | null | tf_semseg/model/esanet.py | fferflo/tf-semseg | b392cac2e8cca5389e7a099e8f7a87d72f4a70fc | [
"MIT"
] | null | null | null | tf_semseg/model/esanet.py | fferflo/tf-semseg | b392cac2e8cca5389e7a099e8f7a87d72f4a70fc | [
"MIT"
] | null | null | null | import tensorflow as tf
from .util import *
from . import resnet, erfnet, pspnet, config, senet, shortcut
def stem(rgb, depth, se_reduction=16, name=None, config=config.Config()):
def resnet_stem_b_no_pool(x, name):
x = conv_norm_act(x, filters=64, kernel_size=7, stride=2, name=name, config=config)
... | 56.363636 | 277 | 0.658065 | 620 | 4,340 | 4.416129 | 0.187097 | 0.113952 | 0.087655 | 0.040906 | 0.471147 | 0.375822 | 0.333455 | 0.299854 | 0.295471 | 0.224982 | 0 | 0.026202 | 0.19977 | 4,340 | 76 | 278 | 57.105263 | 0.762165 | 0.0447 | 0 | 0.087719 | 0 | 0 | 0.10064 | 0 | 0 | 0 | 0 | 0.013158 | 0 | 1 | 0.087719 | false | 0 | 0.052632 | 0.017544 | 0.22807 | 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 |
5416ec11550b0e727d94c931261ae35eaeb25bb3 | 27,249 | py | Python | lib/enthought/traits/ui/group.py | mattfoster/matplotlib | 0b47697b19b77226c633ec6a3d74a2199a153315 | [
"PSF-2.0",
"BSD-3-Clause"
] | 1 | 2016-05-08T18:33:12.000Z | 2016-05-08T18:33:12.000Z | lib/enthought/traits/ui/group.py | mattfoster/matplotlib | 0b47697b19b77226c633ec6a3d74a2199a153315 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | lib/enthought/traits/ui/group.py | mattfoster/matplotlib | 0b47697b19b77226c633ec6a3d74a2199a153315 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | #------------------------------------------------------------------------------
# Copyright (c) 2005, Enthought, Inc.
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in enthought/LICENSE.txt and may be redistributed only
# under the conditions describe... | 40.131075 | 81 | 0.46688 | 2,561 | 27,249 | 4.908629 | 0.158922 | 0.028001 | 0.010341 | 0.002546 | 0.371331 | 0.297749 | 0.257657 | 0.21653 | 0.157346 | 0.128311 | 0 | 0.002022 | 0.255899 | 27,249 | 678 | 82 | 40.190265 | 0.617972 | 0.506624 | 0 | 0.132159 | 0 | 0.004405 | 0.040652 | 0.002274 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008811 | 0.030837 | 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 |
5424fe414fa72d1ebf3ee7a9f779e442c60d522a | 589 | py | Python | setup.py | bjpop/cnvcanon | 8d38a70edd14a126a27da494b5f18429b144a4e6 | [
"BSD-2-Clause"
] | null | null | null | setup.py | bjpop/cnvcanon | 8d38a70edd14a126a27da494b5f18429b144a4e6 | [
"BSD-2-Clause"
] | null | null | null | setup.py | bjpop/cnvcanon | 8d38a70edd14a126a27da494b5f18429b144a4e6 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
from distutils.core import setup
LONG_DESCRIPTION = \
'''XXX fixme'''
setup(
name='cnvcanon',
version='0.1.0.0',
author='Bernie Pope',
author_email='bjpope@unimelb.edu.au',
packages=['cnvcanon'],
package_dir={'cnvcanon': 'cnvcanon'},
entry_points={
'console_... | 22.653846 | 64 | 0.633277 | 64 | 589 | 5.703125 | 0.703125 | 0.123288 | 0.10411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008386 | 0.190153 | 589 | 25 | 65 | 23.56 | 0.756813 | 0.033956 | 0 | 0 | 0 | 0 | 0.345389 | 0.077758 | 0 | 0 | 0 | 0.04 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 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 |
54286f5c7754c57779fadb78c31a9f13af1dd7d0 | 645 | py | Python | web/base.py | heavenbeing/stock | 1bf1e78a96321e2ab8b5505de606878168daa128 | [
"Apache-2.0"
] | 4 | 2020-09-25T16:16:32.000Z | 2021-07-07T09:39:16.000Z | web/base.py | heavenbeing/stock | 1bf1e78a96321e2ab8b5505de606878168daa128 | [
"Apache-2.0"
] | 1 | 2021-09-29T08:21:20.000Z | 2021-09-29T08:21:28.000Z | web/base.py | heavenbeing/stock | 1bf1e78a96321e2ab8b5505de606878168daa128 | [
"Apache-2.0"
] | 2 | 2020-11-29T07:23:40.000Z | 2021-04-03T16:24:07.000Z | #!/usr/local/bin/python3
# -*- coding: utf-8 -*-
import tornado.web
import libs.stock_web_dic as stock_web_dic
#基础handler,主要负责检查mysql的数据库链接。
class BaseHandler(tornado.web.RequestHandler):
@property
def db(self):
try:
# check every time。
self.application.db.query("SELECT 1 ")
... | 23.888889 | 61 | 0.651163 | 80 | 645 | 5.075 | 0.575 | 0.078818 | 0.081281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006173 | 0.246512 | 645 | 26 | 62 | 24.807692 | 0.829218 | 0.151938 | 0 | 0 | 0 | 0 | 0.016605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.117647 | 0.058824 | 0.529412 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
542bffc87b0983cc379547bff059db2e5ac759c4 | 273 | py | Python | Teacher/DigitalHistory/Assignments_To_Be_Graded/123456789/Week_Two/Now_Try_This/5.py | ShayanRiyaz/BitUGrading | ecc069de292d371cf6805df70be94408d5c7894b | [
"MIT"
] | null | null | null | Teacher/DigitalHistory/Assignments_To_Be_Graded/123456789/Week_Two/Now_Try_This/5.py | ShayanRiyaz/BitUGrading | ecc069de292d371cf6805df70be94408d5c7894b | [
"MIT"
] | null | null | null | Teacher/DigitalHistory/Assignments_To_Be_Graded/123456789/Week_Two/Now_Try_This/5.py | ShayanRiyaz/BitUGrading | ecc069de292d371cf6805df70be94408d5c7894b | [
"MIT"
] | null | null | null | # Please note that if you uncomment and press multiple times, the program will keep appending to the file.
def cap_four(name):
new_name = name[0].upper() + name[1:3] + name[3].upper() + name[4:]
return new_name
# Check
answer = cap_four('macdonald')
print(answer) | 30.333333 | 106 | 0.703297 | 45 | 273 | 4.177778 | 0.711111 | 0.074468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022124 | 0.172161 | 273 | 9 | 107 | 30.333333 | 0.809735 | 0.40293 | 0 | 0 | 0 | 0 | 0.055901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0.2 | 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 |
5808b6c0b79c742c4d143ff097a66c7d2f706d39 | 4,105 | py | Python | build_es_index_passages.py | singletongue/wikipedia-utils | b5d0d9eb8f67ef6d82dec9eb41a679c846a113fa | [
"Apache-2.0"
] | 29 | 2022-01-20T15:14:04.000Z | 2022-03-15T01:40:27.000Z | build_es_index_passages.py | singletongue/wikipedia-utils | b5d0d9eb8f67ef6d82dec9eb41a679c846a113fa | [
"Apache-2.0"
] | null | null | null | build_es_index_passages.py | singletongue/wikipedia-utils | b5d0d9eb8f67ef6d82dec9eb41a679c846a113fa | [
"Apache-2.0"
] | 2 | 2022-01-22T10:53:12.000Z | 2022-03-11T02:07:37.000Z | # Copyright 2022 Masatoshi Suzuki (@singletongue)
#
# 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 a... | 35.387931 | 101 | 0.540317 | 414 | 4,105 | 5.154589 | 0.381643 | 0.041237 | 0.032802 | 0.025305 | 0.123711 | 0.074039 | 0.074039 | 0.05717 | 0 | 0 | 0 | 0.005134 | 0.335688 | 4,105 | 115 | 102 | 35.695652 | 0.777411 | 0.138611 | 0 | 0.021978 | 0 | 0 | 0.227428 | 0.02527 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021978 | false | 0.131868 | 0.076923 | 0 | 0.098901 | 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 |
581abb3f12a21864d9d89c1b6142e92f54ad02c6 | 1,119 | py | Python | packratt/url.py | sjperkins/packratt | f2033003b9ae08bc6ab74d9640098e434692a179 | [
"BSD-3-Clause"
] | null | null | null | packratt/url.py | sjperkins/packratt | f2033003b9ae08bc6ab74d9640098e434692a179 | [
"BSD-3-Clause"
] | null | null | null | packratt/url.py | sjperkins/packratt | f2033003b9ae08bc6ab74d9640098e434692a179 | [
"BSD-3-Clause"
] | 1 | 2020-06-05T09:04:49.000Z | 2020-06-05T09:04:49.000Z | # -*- coding: utf-8 -*-
from pathlib import Path
import requests
from packratt.cache import CacheEntry
class UrlCacheEntry(CacheEntry):
def __init__(self, url, sha_hash, filename):
self.url = url
self.sha_hash = sha_hash
self.filename = filename
def download(self, destination: Path) -... | 30.243243 | 69 | 0.582663 | 134 | 1,119 | 4.708955 | 0.410448 | 0.066561 | 0.052298 | 0.044374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005298 | 0.32529 | 1,119 | 37 | 70 | 30.243243 | 0.830464 | 0.048257 | 0 | 0 | 0 | 0 | 0.004704 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.107143 | 0.107143 | 0.464286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
581ae642c59625b6620f64b11fde0c7a7180d534 | 323 | py | Python | build_week/rooms/migrations/0004_remove_room_rooms.py | cs19-build-week-1/backend | 94cedf2595d2008eff31e1e72f92a93d5383911c | [
"MIT"
] | null | null | null | build_week/rooms/migrations/0004_remove_room_rooms.py | cs19-build-week-1/backend | 94cedf2595d2008eff31e1e72f92a93d5383911c | [
"MIT"
] | 11 | 2019-07-29T21:00:59.000Z | 2022-02-10T09:33:26.000Z | build_week/rooms/migrations/0004_remove_room_rooms.py | pymaze/backend | cab7db52b8406fdc446d3fca44a73a6a7f052a13 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.3 on 2019-07-31 06:55
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('rooms', '0003_auto_20190731_0206'),
]
operations = [
migrations.RemoveField(
model_name='room',
name='rooms',
),
... | 17.944444 | 47 | 0.585139 | 35 | 323 | 5.285714 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137168 | 0.30031 | 323 | 17 | 48 | 19 | 0.681416 | 0.139319 | 0 | 0 | 1 | 0 | 0.134058 | 0.083333 | 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 |
581fcb1e28a8222c1c923ad33ee4dbba16083752 | 966 | py | Python | tweety_pi_emailer/read_file.py | s-simpson/cssu_door | a91e1f51df54e01a9f960f35eb4236dc18172eb3 | [
"MIT"
] | null | null | null | tweety_pi_emailer/read_file.py | s-simpson/cssu_door | a91e1f51df54e01a9f960f35eb4236dc18172eb3 | [
"MIT"
] | null | null | null | tweety_pi_emailer/read_file.py | s-simpson/cssu_door | a91e1f51df54e01a9f960f35eb4236dc18172eb3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#############################################################
# test program to read and print a random line from a text file
# program also indicates if the line is over 140 characters
# which is the maximum length of a tweet.
#############################################################
#re... | 22.465116 | 101 | 0.60766 | 127 | 966 | 4.590551 | 0.551181 | 0.066895 | 0.034305 | 0.044597 | 0.078902 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023047 | 0.191511 | 966 | 42 | 102 | 23 | 0.723432 | 0.379917 | 0 | 0.24 | 0 | 0 | 0.049041 | 0.046908 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.12 | 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 |
58244a57b49026a5c0ee8e4db7a080a0eb31096c | 1,275 | py | Python | ex05_confidence_intervals.py | yinchi/simpy-examples | bb9f2d8ab009f7089d50d63aa699aebfce29ace3 | [
"MIT"
] | 3 | 2021-09-09T02:32:39.000Z | 2022-01-26T12:20:22.000Z | ex05_confidence_intervals.py | yinchi/simpy-examples | bb9f2d8ab009f7089d50d63aa699aebfce29ace3 | [
"MIT"
] | null | null | null | ex05_confidence_intervals.py | yinchi/simpy-examples | bb9f2d8ab009f7089d50d63aa699aebfce29ace3 | [
"MIT"
] | null | null | null | # 05 Confidence intervals
'''
If we assume that a particular distribution is normal, then
the Student's t-distribution can be used to compute
the confidence interval for the mean of the distribution.
A n% confidence interval means that the
true mean of a distribution falls within the
computed confidence interval with... | 26.020408 | 104 | 0.689412 | 207 | 1,275 | 4.207729 | 0.463768 | 0.082664 | 0.050517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02719 | 0.221176 | 1,275 | 48 | 105 | 26.5625 | 0.84995 | 0.487843 | 0 | 0 | 0 | 0 | 0.132605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.105263 | 0.105263 | 0.421053 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
5826586bd05b6fcf82a421172ff00c06f0844612 | 357 | py | Python | chat/migrations/0004_auto_20180108_1141.py | SafetyGuardians/SafetyGuardiansApp | aa53aeda3974e3de73fea32b598fbd15a2f46fd5 | [
"MIT"
] | null | null | null | chat/migrations/0004_auto_20180108_1141.py | SafetyGuardians/SafetyGuardiansApp | aa53aeda3974e3de73fea32b598fbd15a2f46fd5 | [
"MIT"
] | 1 | 2021-03-10T00:53:05.000Z | 2021-03-10T00:53:05.000Z | chat/migrations/0004_auto_20180108_1141.py | SafetyGuardians/SafetyGuardiansApp | aa53aeda3974e3de73fea32b598fbd15a2f46fd5 | [
"MIT"
] | null | null | null | # Generated by Django 2.0 on 2018-01-08 11:41
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('chat', '0003_auto_20180108_1123'),
]
operations = [
migrations.RenameField(
model_name='chatsession',
old_name='url',
... | 18.789474 | 45 | 0.579832 | 38 | 357 | 5.289474 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121457 | 0.308123 | 357 | 18 | 46 | 19.833333 | 0.692308 | 0.120448 | 0 | 0 | 1 | 0 | 0.141026 | 0.073718 | 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 |
582a2c04ab923c385712e14b682c2e54b8e44eb2 | 29,371 | py | Python | images/mariadb-galera/src/entrypoint.py | makr17/docker-tools | 3df644091e0240993b0d31035955e471c79875d6 | [
"Apache-2.0"
] | 180 | 2017-07-15T23:49:12.000Z | 2022-03-19T14:33:08.000Z | images/mariadb-galera/src/entrypoint.py | makr17/docker-tools | 3df644091e0240993b0d31035955e471c79875d6 | [
"Apache-2.0"
] | 70 | 2018-01-11T19:37:40.000Z | 2022-03-24T05:53:04.000Z | images/mariadb-galera/src/entrypoint.py | makr17/docker-tools | 3df644091e0240993b0d31035955e471c79875d6 | [
"Apache-2.0"
] | 76 | 2017-07-16T00:01:30.000Z | 2022-01-30T00:49:05.000Z | #!/usr/bin/env python
# MariaDB cluster startup
# This script upon startup waits for a specified number of nodes
# (environment variable CLUSTER_SIZE) to report state of files
# in /var/lib/mysql to etcd. It will halt if the cluster is
# degraded, with fewer than that number of nodes. It follows the
# Galera docu... | 39.636977 | 79 | 0.570324 | 3,340 | 29,371 | 4.817964 | 0.154192 | 0.02001 | 0.016779 | 0.017897 | 0.273739 | 0.207805 | 0.137149 | 0.097005 | 0.078424 | 0.056923 | 0 | 0.008137 | 0.318001 | 29,371 | 740 | 80 | 39.690541 | 0.795217 | 0.099179 | 0 | 0.228873 | 0 | 0 | 0.145956 | 0.022116 | 0.001761 | 0 | 0 | 0.002703 | 0.017606 | 1 | 0.059859 | false | 0.054577 | 0.017606 | 0.001761 | 0.172535 | 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 |
583246a3f5f100c6269dd3a82826998f2d20772f | 6,703 | py | Python | tests/models.py | wearefair/seperman-polymorphic-sqlalchemy | 807f7e4fe3aef96eb24700ca35babc4f9a496295 | [
"MIT"
] | 10 | 2018-02-26T22:43:35.000Z | 2019-11-12T19:10:24.000Z | tests/models.py | wearefair/seperman-polymorphic-sqlalchemy | 807f7e4fe3aef96eb24700ca35babc4f9a496295 | [
"MIT"
] | 3 | 2018-07-23T17:36:44.000Z | 2019-05-20T18:07:46.000Z | tests/models.py | wearefair/seperman-polymorphic-sqlalchemy | 807f7e4fe3aef96eb24700ca35babc4f9a496295 | [
"MIT"
] | 1 | 2019-05-20T13:25:50.000Z | 2019-05-20T13:25:50.000Z | import logging
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from polymorphic_sqlalchemy import (create_polymorphic_base, Relation,
PolyField, NetRelationship, NetModel, BaseInitializer)
from sqlalchemy import Column, Integer, String, ForeignKey
from sqlalchemy.orm ... | 32.857843 | 118 | 0.71192 | 705 | 6,703 | 6.421277 | 0.205674 | 0.037111 | 0.049702 | 0.063177 | 0.476474 | 0.399602 | 0.308593 | 0.240998 | 0.180031 | 0.134084 | 0 | 0.004742 | 0.182008 | 6,703 | 203 | 119 | 33.019704 | 0.820901 | 0.052215 | 0 | 0.259843 | 0 | 0 | 0.115044 | 0.052623 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03937 | false | 0 | 0.055118 | 0.031496 | 0.755906 | 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 |
583afc23f15536752fe1eb2819a913381709e566 | 1,395 | py | Python | venv/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/zxjdbc.py | banianlabs/Stash-Prototype | 6a90817b7dd2e8eb6abf8fa0ac1c60ac09aa7936 | [
"MIT"
] | 5 | 2015-01-18T01:47:56.000Z | 2016-01-30T14:58:58.000Z | venv/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/zxjdbc.py | banianlabs/Stash-Prototype | 6a90817b7dd2e8eb6abf8fa0ac1c60ac09aa7936 | [
"MIT"
] | null | null | null | venv/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/zxjdbc.py | banianlabs/Stash-Prototype | 6a90817b7dd2e8eb6abf8fa0ac1c60ac09aa7936 | [
"MIT"
] | 1 | 2015-02-09T22:15:14.000Z | 2015-02-09T22:15:14.000Z | # postgresql/zxjdbc.py
# Copyright (C) 2005-2013 the SQLAlchemy authors and contributors <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""
.. dialect:: postgresql+zxjdbc
:name: zxJDBC for Jython
:dbapi: zxjdb... | 30.326087 | 84 | 0.737634 | 159 | 1,395 | 6.295597 | 0.534591 | 0.047952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006879 | 0.166308 | 1,395 | 45 | 85 | 31 | 0.853826 | 0.298208 | 0 | 0 | 0 | 0 | 0.033161 | 0.021762 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.15 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
584136bf920801f815010523d669a0120da34dd5 | 7,289 | py | Python | tarea_mapreduce.py | ERM88/mapreduce-hadoop-dumbo-python | 45eaa1dbaccb3ff4840ff723f396b0dbe6b9ffb9 | [
"Apache-2.0"
] | null | null | null | tarea_mapreduce.py | ERM88/mapreduce-hadoop-dumbo-python | 45eaa1dbaccb3ff4840ff723f396b0dbe6b9ffb9 | [
"Apache-2.0"
] | null | null | null | tarea_mapreduce.py | ERM88/mapreduce-hadoop-dumbo-python | 45eaa1dbaccb3ff4840ff723f396b0dbe6b9ffb9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import csv
import sys
from dumbo import main, identitymapper, identityreducer
__author__ = "Enrique Rodriguez Moron"
__doc__ = """
Este fichero de Python obtiene las comunidades autonomas que han hecho mas contratos a mujeres que a hombres.
Para ello se utilizara map&reduce donde el fichero d... | 49.924658 | 118 | 0.716834 | 994 | 7,289 | 5.133803 | 0.256539 | 0.056633 | 0.029982 | 0.029394 | 0.24515 | 0.198903 | 0.132667 | 0.12718 | 0.115422 | 0.115422 | 0 | 0.001247 | 0.230073 | 7,289 | 145 | 119 | 50.268966 | 0.908054 | 0.552202 | 0 | 0.072727 | 0 | 0 | 0.147795 | 0.020408 | 0 | 0 | 0 | 0.013793 | 0 | 1 | 0.090909 | false | 0.018182 | 0.054545 | 0 | 0.218182 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
584c1d40ff1875856600d4af49b19d72f406fb3c | 214 | py | Python | chill/examples/chill/testcases/unroll2a.script.py | CompOpt4Apps/Artifact-DataDepSimplify | 4fa1bf2bda2902fec50a54ee79ae405a554fc9f4 | [
"MIT"
] | 5 | 2019-05-20T03:35:41.000Z | 2021-09-16T22:22:13.000Z | chill/examples/chill/testcases/unroll2a.script.py | CompOpt4Apps/Artifact-DataDepSimplify | 4fa1bf2bda2902fec50a54ee79ae405a554fc9f4 | [
"MIT"
] | null | null | null | chill/examples/chill/testcases/unroll2a.script.py | CompOpt4Apps/Artifact-DataDepSimplify | 4fa1bf2bda2902fec50a54ee79ae405a554fc9f4 | [
"MIT"
] | null | null | null | #
# Test unroll
#
from chill import *
source('unroll2.c')
destination('unroll2amodified.c')
procedure('foo')
# fully unroll a loop with known iteration count
loop(0)
original()
unroll(0,1,0)
#print
#print space
| 12.588235 | 48 | 0.724299 | 31 | 214 | 5 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032609 | 0.140187 | 214 | 16 | 49 | 13.375 | 0.809783 | 0.345794 | 0 | 0 | 0 | 0 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 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 |
584c4123aa275c67dc0491bdfd0972aa934a30a2 | 669 | py | Python | tests/model/test_settings.py | dmyersturnbull/chembler | b1b54a5f4fe7939e012c0cc8b227fcea60d6e744 | [
"Apache-2.0"
] | null | null | null | tests/model/test_settings.py | dmyersturnbull/chembler | b1b54a5f4fe7939e012c0cc8b227fcea60d6e744 | [
"Apache-2.0"
] | null | null | null | tests/model/test_settings.py | dmyersturnbull/chembler | b1b54a5f4fe7939e012c0cc8b227fcea60d6e744 | [
"Apache-2.0"
] | null | null | null | import pytest
from pocketutils.core.dot_dict import NestedDotDict
from mandos.model.settings import Settings
from .. import get_test_resource
class TestSettings:
def test_settings(self):
toml = NestedDotDict.read_toml(get_test_resource("settings.toml"))
x = Settings.load(toml)
assert str... | 25.730769 | 80 | 0.687593 | 87 | 669 | 4.977011 | 0.471264 | 0.064665 | 0.103926 | 0.115473 | 0.337182 | 0.240185 | 0.240185 | 0.240185 | 0.240185 | 0 | 0 | 0.007634 | 0.216741 | 669 | 25 | 81 | 26.76 | 0.818702 | 0.005979 | 0 | 0.117647 | 0 | 0 | 0.06184 | 0 | 0 | 0 | 0 | 0.04 | 0.235294 | 1 | 0.117647 | false | 0 | 0.235294 | 0 | 0.411765 | 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 |
584ca52b2cfec8146cf9e8cedf6119157e4cd9b0 | 4,760 | py | Python | searchlight-6.0.0/searchlight/notifier.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | null | null | null | searchlight-6.0.0/searchlight/notifier.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | searchlight-6.0.0/searchlight/notifier.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 2 | 2020-03-15T01:24:15.000Z | 2020-07-22T20:34:26.000Z | # Copyright 2011, OpenStack Foundation
# Copyright 2012, Red Hat, Inc.
# Copyright 2013 IBM Corp.
#
# 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/li... | 31.733333 | 79 | 0.683193 | 561 | 4,760 | 5.565062 | 0.292335 | 0.038437 | 0.03075 | 0.036835 | 0.258808 | 0.258808 | 0.21845 | 0.21845 | 0.209481 | 0.186099 | 0 | 0.004944 | 0.235084 | 4,760 | 149 | 80 | 31.946309 | 0.852513 | 0.148319 | 0 | 0.329787 | 0 | 0 | 0.136589 | 0.010659 | 0 | 0 | 0 | 0 | 0 | 1 | 0.191489 | false | 0.053191 | 0.042553 | 0.031915 | 0.340426 | 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 |
58540fce218a138e58aa5a6acf739b015bf82f05 | 2,576 | py | Python | sample.py | shirobu2400/mmdpipy | e65ab31abbe817b63801e5c0f98567ebf752521b | [
"MIT"
] | 6 | 2019-05-04T03:21:11.000Z | 2022-01-02T03:28:18.000Z | sample.py | shirobu2400/mmdpipy | e65ab31abbe817b63801e5c0f98567ebf752521b | [
"MIT"
] | null | null | null | sample.py | shirobu2400/mmdpipy | e65ab31abbe817b63801e5c0f98567ebf752521b | [
"MIT"
] | 1 | 2021-05-22T09:17:35.000Z | 2021-05-22T09:17:35.000Z | #!/usr/bin/python
#-*-coding:utf-8-*-
from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GLUT import *
import sys
import mmdpipy
pmm = mmdpipy.mmdpipy()
RotationAxis = [0,0,0]
def IdentityMatrix():
m = [0] * 16
m[ 0] = 1
m[ 5] = 1
m[10] = 1
m[15] = 1
return m
def display():
""" display """
glClea... | 23.851852 | 83 | 0.619177 | 348 | 2,576 | 4.494253 | 0.362069 | 0.030691 | 0.030691 | 0.028133 | 0.071611 | 0.068414 | 0.068414 | 0.068414 | 0.056266 | 0.056266 | 0 | 0.066863 | 0.210404 | 2,576 | 108 | 84 | 23.851852 | 0.702065 | 0.098214 | 0 | 0.121622 | 0 | 0 | 0.029067 | 0 | 0 | 0 | 0.005626 | 0 | 0 | 0 | null | null | 0 | 0.067568 | null | null | 0.027027 | 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 |
5854a4372bd5f833649a2b0a01018f03de2c5213 | 96,838 | py | Python | tests/unit_tests/iolibs/test_export_cpp.py | valassi/mg5amc_test | 2e04f23353051f64e1604b23105fe3faabd32869 | [
"NCSA"
] | 1 | 2016-07-09T00:05:56.000Z | 2016-07-09T00:05:56.000Z | tests/unit_tests/iolibs/test_export_cpp.py | valassi/mg5amc_test | 2e04f23353051f64e1604b23105fe3faabd32869 | [
"NCSA"
] | 4 | 2022-03-10T09:13:31.000Z | 2022-03-30T16:15:01.000Z | tests/unit_tests/iolibs/test_export_cpp.py | valassi/mg5amc_test | 2e04f23353051f64e1604b23105fe3faabd32869 | [
"NCSA"
] | 1 | 2016-07-09T00:06:15.000Z | 2016-07-09T00:06:15.000Z | ################################################################################
#
# Copyright (c) 2009 The MadGraph5_aMC@NLO Development team and Contributors
#
# This file is a part of the MadGraph5_aMC@NLO project, an application which
# automatically generates Feynman diagrams and matrix elements for arbitrary
# h... | 43.289227 | 651 | 0.535885 | 11,534 | 96,838 | 4.252558 | 0.068927 | 0.033436 | 0.050154 | 0.058513 | 0.76024 | 0.678933 | 0.515423 | 0.467431 | 0.432364 | 0.413627 | 0 | 0.052749 | 0.273312 | 96,838 | 2,236 | 652 | 43.308587 | 0.644257 | 0.032529 | 0 | 0.764631 | 0 | 0.001272 | 0.115085 | 0.004045 | 0 | 0 | 0 | 0 | 0.030534 | 1 | 0.017812 | false | 0.001272 | 0.038168 | 0 | 0.071247 | 0.003817 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
585c35fca0e8ec08ddef6d595328c8bcde295a6e | 404 | py | Python | app/migrations/0004_category_image.py | mirsazzathossain/PizzaRoma-Project | b5e7ccaa53810fadd9a94fcb80e52de09d3386a0 | [
"MIT"
] | null | null | null | app/migrations/0004_category_image.py | mirsazzathossain/PizzaRoma-Project | b5e7ccaa53810fadd9a94fcb80e52de09d3386a0 | [
"MIT"
] | null | null | null | app/migrations/0004_category_image.py | mirsazzathossain/PizzaRoma-Project | b5e7ccaa53810fadd9a94fcb80e52de09d3386a0 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-09-08 22:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0003_alter_banner_offer'),
]
operations = [
migrations.AddField(
model_name='category',
name='image',
... | 21.263158 | 73 | 0.596535 | 45 | 404 | 5.244444 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065292 | 0.279703 | 404 | 18 | 74 | 22.444444 | 0.745704 | 0.111386 | 0 | 0 | 1 | 0 | 0.109244 | 0.064426 | 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 |
5867c9d48aa21a216d7128d9d3559c836d6ba4e7 | 685 | gyp | Python | Check_out/subdir.gyp | gmright2-Coller/Gmright2.bucket.QA | fe5300a0d5919d72d7655c7133a89f4cd5dda61c | [
"MIT"
] | null | null | null | Check_out/subdir.gyp | gmright2-Coller/Gmright2.bucket.QA | fe5300a0d5919d72d7655c7133a89f4cd5dda61c | [
"MIT"
] | 172 | 2020-04-18T14:21:24.000Z | 2022-03-14T02:00:23.000Z | Check_out/subdir.gyp | https-github-com-Gmright2-coll/Gmright2.bucket.QA | c0aacc4a5cb87c4138598dc18aa38b815e1cb4ba | [
"MIT"
] | 5 | 2020-05-01T22:22:09.000Z | 2020-09-06T19:19:14.000Z | # Copyright (c) 2009 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
'target_name': 'subdir_file',
'type': 'none',
'msvs_cygwin_shell': 0,
'actions': [
{
'... | 23.62069 | 73 | 0.455474 | 65 | 685 | 4.615385 | 0.784615 | 0.133333 | 0.093333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014423 | 0.392701 | 685 | 28 | 74 | 24.464286 | 0.706731 | 0.217518 | 0 | 0.208333 | 0 | 0 | 0.416667 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
587dfbcf3d1ee0359cd8e47f74527e26ba9b291a | 794 | py | Python | String Functions/more_String_Functions.py | Jadams29/Coding_Problems | 780af79cfa3933922a06b571e13322ff517b87ef | [
"MIT"
] | null | null | null | String Functions/more_String_Functions.py | Jadams29/Coding_Problems | 780af79cfa3933922a06b571e13322ff517b87ef | [
"MIT"
] | null | null | null | String Functions/more_String_Functions.py | Jadams29/Coding_Problems | 780af79cfa3933922a06b571e13322ff517b87ef | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Jun 24 16:26:56 2018
@author: joshu
"""
letter_z = 'z'
num_3 = '3'
a_space = ' '
# Check if all characters are numbers
print("Is z a letter or number: ", letter_z.isalnum())
# Checks if all characters are alphabetical
print("Is z a letter: ", letter_z.isalpha())
# Check... | 20.358974 | 54 | 0.657431 | 133 | 794 | 3.81203 | 0.398496 | 0.096647 | 0.063116 | 0.071006 | 0.126233 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033546 | 0.211587 | 794 | 39 | 55 | 20.358974 | 0.776358 | 0.343829 | 0 | 0 | 0 | 0 | 0.253937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.1875 | 0.4375 | 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 |
588bc4725caa1603df97b351faac8f68c4748d83 | 2,540 | py | Python | unifuncnet/biological_components/utils/unique_details.py | PedroMTQ/DRAX | d4574a0292b5ddbf5201bd20ba4dba45b4cdd43b | [
"MIT"
] | 7 | 2021-09-27T13:15:02.000Z | 2022-02-03T10:19:52.000Z | unifuncnet/biological_components/utils/unique_details.py | PedroMTQ/DRAX | d4574a0292b5ddbf5201bd20ba4dba45b4cdd43b | [
"MIT"
] | null | null | null | unifuncnet/biological_components/utils/unique_details.py | PedroMTQ/DRAX | d4574a0292b5ddbf5201bd20ba4dba45b4cdd43b | [
"MIT"
] | null | null | null | from unifuncnet.utils.util import get_instance_type, SCRAPPABLE_DBS
###############GENERAL FUNCTION###############
def generate_details_dict(bio_instance):
return {i: None for i in get_details_list(bio_instance)}
def get_details_list(bio_instances, remove_from_list=[], append_to_list=[]):
details = set()
... | 26.458333 | 76 | 0.584252 | 306 | 2,540 | 4.509804 | 0.202614 | 0.087681 | 0.104348 | 0.068841 | 0.215942 | 0.162319 | 0.043478 | 0.043478 | 0.043478 | 0 | 0 | 0 | 0.315354 | 2,540 | 95 | 77 | 26.736842 | 0.79356 | 0.006299 | 0 | 0.139241 | 1 | 0 | 0.069767 | 0.009222 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088608 | false | 0 | 0.012658 | 0.012658 | 0.189873 | 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 |
588bf4ce1a5aafe346a85dc04237a448bd65ded1 | 2,750 | py | Python | editSTL.py | proverbialsunrise/pySTL | 6afb180e14ee13fe313028cc9d9efa9104f7b1fe | [
"MIT"
] | 7 | 2016-02-23T10:34:35.000Z | 2021-10-16T14:08:05.000Z | editSTL.py | proverbialsunrise/pySTL | 6afb180e14ee13fe313028cc9d9efa9104f7b1fe | [
"MIT"
] | null | null | null | editSTL.py | proverbialsunrise/pySTL | 6afb180e14ee13fe313028cc9d9efa9104f7b1fe | [
"MIT"
] | 3 | 2016-10-28T02:50:38.000Z | 2021-01-24T22:56:20.000Z | #!/usr/bin/python
import pySTL
import argparse
parser = argparse.ArgumentParser(description='Process a given STL file and perform rotation, translation, and scaling on it. Actions happen in the order given here. Scaling, then translation, then rotation. If selected, centroid translation happens last.')
parser.add... | 37.671233 | 258 | 0.704 | 379 | 2,750 | 5.073879 | 0.403694 | 0.032761 | 0.061882 | 0.017681 | 0.040562 | 0.040562 | 0.040562 | 0.040562 | 0 | 0 | 0 | 0.01349 | 0.164364 | 2,750 | 72 | 259 | 38.194444 | 0.823325 | 0.063273 | 0 | 0.045455 | 0 | 0.090909 | 0.383956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045455 | null | null | 0.227273 | 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 |
589586d8c5a652f10212a9628157ff0263438a03 | 29,394 | py | Python | src/hangar/cli/cli.py | KarenImmanuel/hangar-py | 2a5caff259ad699db56676f14a70cb94e75d8a5b | [
"Apache-2.0"
] | null | null | null | src/hangar/cli/cli.py | KarenImmanuel/hangar-py | 2a5caff259ad699db56676f14a70cb94e75d8a5b | [
"Apache-2.0"
] | null | null | null | src/hangar/cli/cli.py | KarenImmanuel/hangar-py | 2a5caff259ad699db56676f14a70cb94e75d8a5b | [
"Apache-2.0"
] | null | null | null | """Module that contains the command line app.
Why does this file exist, and why not put this in __main__?
You might be tempted to import things from __main__ later, but that will cause
problems: the code will get executed twice:
- When you run `python -mhangar` python will execute
``__main__.py``... | 38.93245 | 110 | 0.655372 | 3,823 | 29,394 | 4.939576 | 0.155375 | 0.019064 | 0.010061 | 0.013345 | 0.416914 | 0.377992 | 0.336211 | 0.31434 | 0.300837 | 0.27653 | 0 | 0.006421 | 0.215826 | 29,394 | 754 | 111 | 38.984085 | 0.812842 | 0.241648 | 0 | 0.434043 | 0 | 0 | 0.159239 | 0.001562 | 0 | 0 | 0 | 0.001326 | 0 | 1 | 0.057447 | false | 0.07234 | 0.074468 | 0 | 0.138298 | 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 |
58973e3c6863993ace071d0b20604fb55c307ee4 | 2,469 | py | Python | core/misc/bin/config.py | YunLemon/android-messengerpp | 29a71dafe1d069fe3a9ab2d0c8a6ed26a3bc6d6c | [
"Apache-2.0"
] | 54 | 2015-01-04T10:30:36.000Z | 2022-03-05T10:31:24.000Z | core/misc/bin/config.py | YunLemon/android-messengerpp | 29a71dafe1d069fe3a9ab2d0c8a6ed26a3bc6d6c | [
"Apache-2.0"
] | 7 | 2015-01-11T11:29:37.000Z | 2020-10-31T00:11:22.000Z | core/misc/bin/config.py | YunLemon/android-messengerpp | 29a71dafe1d069fe3a9ab2d0c8a6ed26a3bc6d6c | [
"Apache-2.0"
] | 21 | 2015-01-02T09:08:20.000Z | 2022-03-19T00:47:06.000Z | from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
from com.android.monkeyrunner.easy import EasyMonkeyDevice
from com.android.monkeyrunner.easy import By
import time
def get_package():
return 'org.solovyev.android.messenger'
def get_start_activity():
return '.StartActivity'
def get_actions(d... | 28.056818 | 115 | 0.72013 | 290 | 2,469 | 5.893103 | 0.282759 | 0.083675 | 0.088941 | 0.087771 | 0.268578 | 0.087771 | 0 | 0 | 0 | 0 | 0 | 0.006816 | 0.168084 | 2,469 | 87 | 116 | 28.37931 | 0.825219 | 0.0081 | 0 | 0.090909 | 0 | 0 | 0.163123 | 0.066231 | 0 | 0 | 0 | 0 | 0 | 1 | 0.218182 | false | 0 | 0.072727 | 0.090909 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5898db686f2c4cdb361c2ac3c1b9d6c1e532ad85 | 334 | py | Python | data/gener_rdat.py | eldipa/termgraph | c40b86454d380d685785b98834364b111734c163 | [
"MIT"
] | 2,790 | 2015-01-15T18:21:46.000Z | 2022-03-30T07:49:28.000Z | data/gener_rdat.py | eldipa/termgraph | c40b86454d380d685785b98834364b111734c163 | [
"MIT"
] | 71 | 2015-01-01T13:02:29.000Z | 2022-03-07T00:14:35.000Z | data/gener_rdat.py | eldipa/termgraph | c40b86454d380d685785b98834364b111734c163 | [
"MIT"
] | 172 | 2015-04-16T05:37:42.000Z | 2022-03-24T18:13:27.000Z | #!/usr/bin/env python
import random
b = [2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018]
a = [1, 40, 24, 26, 29, 80, 100, 36]
BASE = 1990
YEARS = 28
f = open('random.dat', 'w')
for offset in range(YEARS):
date = BASE + offset
value = random.randint(-500, 500)
f.write('{} {}\n'.format(date, int(value)))... | 15.904762 | 52 | 0.58982 | 55 | 334 | 3.581818 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228137 | 0.212575 | 334 | 20 | 53 | 16.7 | 0.520913 | 0.05988 | 0 | 0 | 0 | 0 | 0.058065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58a698f348c12dc053bf5db68ace68e20e405c25 | 697 | py | Python | enif_app/migrations/0008_auto_20210116_1648.py | aejsi5/Enif | 60c82cfe5272ee748d2c10dbd21b6c52cd674d5b | [
"MIT"
] | null | null | null | enif_app/migrations/0008_auto_20210116_1648.py | aejsi5/Enif | 60c82cfe5272ee748d2c10dbd21b6c52cd674d5b | [
"MIT"
] | null | null | null | enif_app/migrations/0008_auto_20210116_1648.py | aejsi5/Enif | 60c82cfe5272ee748d2c10dbd21b6c52cd674d5b | [
"MIT"
] | null | null | null | # Generated by Django 3.1.5 on 2021-01-16 15:48
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('enif_app', '0007_auto_20210116_1546'),
]
operations = [
migrations.AlterField(
model_name='enif_re... | 27.88 | 126 | 0.595409 | 75 | 697 | 5.373333 | 0.653333 | 0.099256 | 0.124069 | 0.143921 | 0.163772 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103239 | 0.291248 | 697 | 24 | 127 | 29.041667 | 0.712551 | 0.064562 | 0 | 0.222222 | 1 | 0 | 0.14377 | 0.036741 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 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 |
58a8acc32883b9684211cb44c882e919660c3ae0 | 13,647 | py | Python | ahl_xgf_sql_accuracy.py | r-wisniewski/AHL-xG | df1175fdb8d54f38a1d81de666b374b6c3463a1f | [
"MIT"
] | 3 | 2020-12-02T05:20:02.000Z | 2022-01-01T10:13:42.000Z | ahl_xgf_sql_accuracy.py | r-wisniewski/AHL-xG | df1175fdb8d54f38a1d81de666b374b6c3463a1f | [
"MIT"
] | null | null | null | ahl_xgf_sql_accuracy.py | r-wisniewski/AHL-xG | df1175fdb8d54f38a1d81de666b374b6c3463a1f | [
"MIT"
] | null | null | null | """
Usage: python ahl_xgf_sql_accuracy.py
Calculate how accurate the xG caluclation is compared to an actual game result
"""
import requests
import json
import psycopg2
import sys
import numpy as np
import tkinter
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
import pandas
#build dataset... | 41.861963 | 114 | 0.547153 | 1,708 | 13,647 | 4.294496 | 0.212529 | 0.025903 | 0.007362 | 0.013088 | 0.448534 | 0.430402 | 0.422359 | 0.413633 | 0.413633 | 0.397819 | 0 | 0.031411 | 0.360812 | 13,647 | 326 | 115 | 41.861963 | 0.809469 | 0.249066 | 0 | 0.461538 | 0 | 0.014423 | 0.127957 | 0.008584 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.019231 | 0.043269 | null | null | 0.043269 | 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 |
542e5315deae6b1a0f8d9b28dd2ab9ad52e9a3c1 | 8,342 | py | Python | quant/pointcloud.py | WhoIsJack/chemokine_buffering_paper | 50a7db3ac6c2f1d5821daa8c6bb0fc6194849d72 | [
"MIT"
] | 1 | 2021-03-12T23:05:58.000Z | 2021-03-12T23:05:58.000Z | quant/pointcloud.py | WhoIsJack/chemokine_buffering_paper | 50a7db3ac6c2f1d5821daa8c6bb0fc6194849d72 | [
"MIT"
] | null | null | null | quant/pointcloud.py | WhoIsJack/chemokine_buffering_paper | 50a7db3ac6c2f1d5821daa8c6bb0fc6194849d72 | [
"MIT"
] | 1 | 2021-03-11T10:24:57.000Z | 2021-03-11T10:24:57.000Z | # -*- coding: utf-8 -*-
"""
Created on Sun May 14 13:54:22 2017
@author: Jonas Hartmann @ Gilmour group @ EMBL Heidelberg
@descript: Functions for converting fluorescence intensity distributions
into a point cloud representation and then register them to
the image frame.
"""
#-----------... | 33.23506 | 85 | 0.563654 | 1,042 | 8,342 | 4.411708 | 0.300384 | 0.028714 | 0.019143 | 0.019578 | 0.257124 | 0.230803 | 0.193605 | 0.137263 | 0.105286 | 0.094844 | 0 | 0.013612 | 0.260249 | 8,342 | 250 | 86 | 33.368 | 0.731324 | 0.305442 | 0 | 0.188889 | 0 | 0 | 0.095723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.077778 | null | null | 0.077778 | 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 |
54320e7643f62a51fadc15e39c2b9e1784c11820 | 758 | py | Python | exercise/sort_dict_List_by_key.py | Jackson-Y/Machine-Learning | ea0a8c65ce93501d51fad2d73300dc0a37e2c1d8 | [
"MIT"
] | 4 | 2017-08-17T02:11:45.000Z | 2017-09-25T00:46:13.000Z | exercise/sort_dict_List_by_key.py | Jackson-Y/Machine-Learning | ea0a8c65ce93501d51fad2d73300dc0a37e2c1d8 | [
"MIT"
] | null | null | null | exercise/sort_dict_List_by_key.py | Jackson-Y/Machine-Learning | ea0a8c65ce93501d51fad2d73300dc0a37e2c1d8 | [
"MIT"
] | null | null | null | #-*- coding: utf-8 -*-
""" 通过某个关键字排序一个字典列表 """
from operator import itemgetter
rows = [
{'fname': 'Brian', 'lname': 'Jones', 'uid': 1003},
{'fname': 'David', 'lname': 'Beazley', 'uid': 1002},
{'fname': 'John', 'lname': 'Cleese', 'uid': 1002},
{'fname': 'Big', 'lname': 'Jones', 'uid': 1004}
]
rows_by_f... | 30.32 | 64 | 0.643799 | 105 | 758 | 4.514286 | 0.266667 | 0.07384 | 0.179325 | 0.14557 | 0.179325 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025797 | 0.130607 | 758 | 24 | 65 | 31.583333 | 0.693475 | 0.050132 | 0 | 0 | 0 | 0 | 0.276297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0.5 | 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 |
543776375246b303570eaa240c6021528db2b077 | 1,167 | py | Python | BitTornado/ConnChoice.py | weedy/BitTornado | 73abe68ac13bda31db5307db8c2d0ba9e58bbfac | [
"MIT"
] | null | null | null | BitTornado/ConnChoice.py | weedy/BitTornado | 73abe68ac13bda31db5307db8c2d0ba9e58bbfac | [
"MIT"
] | null | null | null | BitTornado/ConnChoice.py | weedy/BitTornado | 73abe68ac13bda31db5307db8c2d0ba9e58bbfac | [
"MIT"
] | 1 | 2018-12-28T07:33:42.000Z | 2018-12-28T07:33:42.000Z | connChoices = (
{'name': 'automatic',
'rate': {'min': 0, 'max': 5000, 'def': 0},
'conn': {'min': 0, 'max': 100, 'def': 0},
'automatic': 1},
{'name': 'unlimited',
'rate': {'min': 0, 'max': 5000, 'def': 0, 'div': 50},
'conn': {'min': 4, 'max': 100, 'def': 4}},
{'name': 'dialup/isdn'... | 36.46875 | 58 | 0.425021 | 155 | 1,167 | 3.2 | 0.316129 | 0.112903 | 0.090726 | 0.110887 | 0.217742 | 0.217742 | 0.163306 | 0.125 | 0.125 | 0.125 | 0 | 0.114025 | 0.2485 | 1,167 | 31 | 59 | 37.645161 | 0.451539 | 0 | 0 | 0.066667 | 0 | 0 | 0.307626 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
54379a568210fa007755fc563da0b02232d13068 | 3,794 | py | Python | UI/log_in_window.py | Wuziyi616/Computer_Network_Project | e4987c32b1f1ca28666e3cd69eb7525b9c45cc8b | [
"MIT"
] | null | null | null | UI/log_in_window.py | Wuziyi616/Computer_Network_Project | e4987c32b1f1ca28666e3cd69eb7525b9c45cc8b | [
"MIT"
] | null | null | null | UI/log_in_window.py | Wuziyi616/Computer_Network_Project | e4987c32b1f1ca28666e3cd69eb7525b9c45cc8b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'log_in_window.ui'
#
# Created by: PyQt5 UI code generator 5.12.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(self, Form):
... | 41.23913 | 90 | 0.641539 | 455 | 3,794 | 5.226374 | 0.250549 | 0.090833 | 0.074012 | 0.060555 | 0.372161 | 0.274601 | 0.207317 | 0.207317 | 0.207317 | 0.207317 | 0 | 0.04701 | 0.23748 | 3,794 | 91 | 91 | 41.692308 | 0.774974 | 0.049288 | 0 | 0.285714 | 1 | 0 | 0.081836 | 0.006558 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025974 | false | 0.025974 | 0.012987 | 0 | 0.051948 | 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 |
543b3ff1aff4aef6d589948766ba0fafbd66f228 | 877 | py | Python | code/the_millionth_number_with_at_least_one_million_prime_factors/sol_615.py | bhavinjawade/project-euler-solutions | 56bf6a282730ed4b9b875fa081cf4509d9939d98 | [
"Apache-2.0"
] | 2 | 2020-07-16T08:16:32.000Z | 2020-10-01T07:16:48.000Z | code/the_millionth_number_with_at_least_one_million_prime_factors/sol_615.py | Psingh12354/project-euler-solutions | 56bf6a282730ed4b9b875fa081cf4509d9939d98 | [
"Apache-2.0"
] | null | null | null | code/the_millionth_number_with_at_least_one_million_prime_factors/sol_615.py | Psingh12354/project-euler-solutions | 56bf6a282730ed4b9b875fa081cf4509d9939d98 | [
"Apache-2.0"
] | 1 | 2021-05-07T18:06:08.000Z | 2021-05-07T18:06:08.000Z |
# -*- coding: utf-8 -*-
'''
File name: code\the_millionth_number_with_at_least_one_million_prime_factors\sol_615.py
Author: Vaidic Joshi
Date created: Oct 20, 2018
Python Version: 3.x
'''
# Solution to Project Euler Problem #615 :: The millionth number with at least one million prime factors
#
# For ... | 23.702703 | 156 | 0.712657 | 183 | 877 | 3.502732 | 0.448087 | 0.078003 | 0.098284 | 0.118565 | 0.386895 | 0.324493 | 0.324493 | 0.313573 | 0.301092 | 0.269891 | 0 | 0.102493 | 0.176739 | 877 | 36 | 157 | 24.361111 | 0.749307 | 0.449259 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
54419d136c6d6d8943e932fe11d7a851718ef2e8 | 1,200 | py | Python | stream_frame/admin.py | pizzapanther/one-stream-frame | ca561e2c48f2cc2285dd5c81e00336d7b73fd363 | [
"MIT"
] | null | null | null | stream_frame/admin.py | pizzapanther/one-stream-frame | ca561e2c48f2cc2285dd5c81e00336d7b73fd363 | [
"MIT"
] | null | null | null | stream_frame/admin.py | pizzapanther/one-stream-frame | ca561e2c48f2cc2285dd5c81e00336d7b73fd363 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.utils.html import mark_safe, escape
from stream_frame.models import OAuthCredentials, Channel, VideoEmbedOn
@admin.register(OAuthCredentials)
class OAuthAdmin(admin.ModelAdmin):
list_display = ('name', 'modified', 'authorize')
list_filter = ('modified',)
def author... | 30 | 92 | 0.6875 | 160 | 1,200 | 5.01875 | 0.38125 | 0.039851 | 0.070984 | 0.097136 | 0.16812 | 0.146949 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145833 | 1,200 | 39 | 93 | 30.769231 | 0.783415 | 0 | 0 | 0.172414 | 0 | 0.068966 | 0.263333 | 0.136667 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.103448 | 0 | 0.689655 | 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 |
544371acdcb6a2f456ae0679272613f6ac32021d | 5,063 | py | Python | src/utils/net.py | atr000/Limnoria | 1f60a9487ca4114f040135fb14cabc155a041918 | [
"BSD-3-Clause"
] | null | null | null | src/utils/net.py | atr000/Limnoria | 1f60a9487ca4114f040135fb14cabc155a041918 | [
"BSD-3-Clause"
] | null | null | null | src/utils/net.py | atr000/Limnoria | 1f60a9487ca4114f040135fb14cabc155a041918 | [
"BSD-3-Clause"
] | 1 | 2021-01-23T21:20:57.000Z | 2021-01-23T21:20:57.000Z | ###
# Copyright (c) 2002-2005, Jeremiah Fincher
# Copyright (c) 2011, James Vega
# 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 copyri... | 33.753333 | 87 | 0.581276 | 675 | 5,063 | 4.339259 | 0.345185 | 0.034141 | 0.021509 | 0.010925 | 0.269375 | 0.227723 | 0.173097 | 0.155685 | 0.141345 | 0.141345 | 0 | 0.03485 | 0.314241 | 5,063 | 149 | 88 | 33.979866 | 0.808756 | 0.357891 | 0 | 0.397436 | 0 | 0 | 0.024236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025641 | 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 |
545061e26b2728507404fe6e9e1fef6d543545ee | 15,202 | py | Python | generate/lib/run-firefox/cuddlefish/runner.py | flamencist/browser-extensions | cc2424ce69c718f9f6b1fb0e6cd19759ba384591 | [
"BSD-3-Clause"
] | 102 | 2015-01-09T22:12:00.000Z | 2021-04-21T01:18:51.000Z | generate/lib/run-firefox/cuddlefish/runner.py | flamencist/browser-extensions | cc2424ce69c718f9f6b1fb0e6cd19759ba384591 | [
"BSD-3-Clause"
] | 17 | 2015-01-24T22:30:47.000Z | 2020-11-19T01:13:32.000Z | generate/lib/run-firefox/cuddlefish/runner.py | flamencist/browser-extensions | cc2424ce69c718f9f6b1fb0e6cd19759ba384591 | [
"BSD-3-Clause"
] | 33 | 2015-01-15T16:11:15.000Z | 2021-06-11T12:15:29.000Z | import os
import sys
import time
import tempfile
import atexit
import shutil
import shlex
import subprocess
import re
import simplejson as json
import mozrunner
from cuddlefish.prefs import DEFAULT_COMMON_PREFS
from cuddlefish.prefs import DEFAULT_FIREFOX_PREFS
from cuddlefish.prefs import DEFAULT_THUNDERBIRD_PREFS
d... | 36.455635 | 131 | 0.617748 | 1,861 | 15,202 | 4.915099 | 0.266523 | 0.010495 | 0.015306 | 0.010714 | 0.112496 | 0.081557 | 0.068219 | 0.052914 | 0.052914 | 0.033235 | 0 | 0.003418 | 0.287923 | 15,202 | 416 | 132 | 36.543269 | 0.84157 | 0.201092 | 0 | 0.191011 | 0 | 0 | 0.137348 | 0.026517 | 0 | 0 | 0 | 0.002404 | 0 | 0 | null | null | 0 | 0.052434 | null | null | 0.033708 | 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 |
5451784cd70973f4a584382c99ed8b262852d0e9 | 4,798 | py | Python | src/landing_zone.py | abroniewski/IdleCompute-Data-Management-Architecture | 55259b3afcdcf4d874a1c93afc38eeb635f307f3 | [
"MIT"
] | 1 | 2022-03-27T20:01:13.000Z | 2022-03-27T20:01:13.000Z | src/landing_zone.py | abroniewski/IdleCompute-Data-Management-Architecture | 55259b3afcdcf4d874a1c93afc38eeb635f307f3 | [
"MIT"
] | null | null | null | src/landing_zone.py | abroniewski/IdleCompute-Data-Management-Architecture | 55259b3afcdcf4d874a1c93afc38eeb635f307f3 | [
"MIT"
] | 1 | 2022-03-30T22:08:21.000Z | 2022-03-30T22:08:21.000Z | import os
import re
from pyarrow import json, csv
import pyarrow.parquet as pq
from hdfs import InsecureClient
from tqdm import tqdm
# Define our global variables. TEMPORAL_DIR is the temporary landing zone where raw files will be placed that need
# to be processed PERSISTENT_DIR will be the location of files converte... | 55.149425 | 124 | 0.710713 | 665 | 4,798 | 4.912782 | 0.234586 | 0.014692 | 0.022039 | 0.030609 | 0.459443 | 0.40955 | 0.368534 | 0.309152 | 0.298745 | 0.298745 | 0 | 0.008241 | 0.190704 | 4,798 | 87 | 125 | 55.149425 | 0.833119 | 0.352022 | 0 | 0.230769 | 0 | 0 | 0.201578 | 0.170339 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.076923 | false | 0 | 0.115385 | 0 | 0.192308 | 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 |
5451b87b30448bb89fb2e8c86f0815b9d1cede7f | 507 | py | Python | pythonFiles/testing_tools/adapter/pytest/_cli.py | JesterOrNot/vscode-python | f51b0bbf0e21bd6f9becc89ebfcb383f8e840e76 | [
"MIT"
] | 404 | 2019-05-07T02:21:57.000Z | 2022-03-31T17:03:04.000Z | pythonFiles/testing_tools/adapter/pytest/_cli.py | JesterOrNot/vscode-python | f51b0bbf0e21bd6f9becc89ebfcb383f8e840e76 | [
"MIT"
] | 1,672 | 2019-05-06T21:09:38.000Z | 2022-03-31T23:16:04.000Z | pythonFiles/testing_tools/adapter/pytest/_cli.py | JesterOrNot/vscode-python | f51b0bbf0e21bd6f9becc89ebfcb383f8e840e76 | [
"MIT"
] | 186 | 2019-05-13T03:17:37.000Z | 2022-03-31T16:24:05.000Z | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from __future__ import absolute_import
from ..errors import UnsupportedCommandError
def add_subparser(cmd, name, parent):
"""Add a new subparser to the given parent and add args to it."""
parser = parent.add_parser... | 28.166667 | 69 | 0.706114 | 68 | 507 | 5.161765 | 0.720588 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220907 | 507 | 17 | 70 | 29.823529 | 0.888608 | 0.414201 | 0 | 0 | 0 | 0 | 0.027682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.222222 | 0 | 0.444444 | 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 |
54583604fbff7cc2fc9fe33555ae96ca46eef4de | 574 | py | Python | pylaas_core/abstract/abstract_service_integration_test.py | Agi-dev/pylaas_core | c44866b5e57eb6f05f5b2b8d731f22d62a8c01c2 | [
"MIT"
] | null | null | null | pylaas_core/abstract/abstract_service_integration_test.py | Agi-dev/pylaas_core | c44866b5e57eb6f05f5b2b8d731f22d62a8c01c2 | [
"MIT"
] | 2 | 2021-03-25T21:30:41.000Z | 2021-06-01T21:25:37.000Z | pylaas_core/abstract/abstract_service_integration_test.py | Agi-dev/pylaas_core | c44866b5e57eb6f05f5b2b8d731f22d62a8c01c2 | [
"MIT"
] | null | null | null | from pylaas_core.abstract.abstract_test_case import AbstractTestCase
from pylaas_core.pylaas_core import PylaasCore
class AbstractServiceIntegrationTest(AbstractTestCase):
_service = None
_service_id = None
def setup_method(self, method):
if not self._service_id:
raise RuntimeError('A... | 30.210526 | 71 | 0.740418 | 67 | 574 | 6.014925 | 0.462687 | 0.111663 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196864 | 574 | 18 | 72 | 31.888889 | 0.874187 | 0.038328 | 0 | 0 | 0 | 0 | 0.067273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.083333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
545bd8590b9c4e458ca3bbe8a23041c43f5968be | 2,992 | py | Python | mingh_tmp/auto_replacement_test.py | mingxu1067/paddle_sparse_dev | 53b4e82b04d1df8a86c183a226911b2c4966629e | [
"Apache-2.0"
] | 1 | 2021-01-23T16:49:36.000Z | 2021-01-23T16:49:36.000Z | mingh_tmp/auto_replacement_test.py | mingxu1067/paddle_sparse_dev | 53b4e82b04d1df8a86c183a226911b2c4966629e | [
"Apache-2.0"
] | null | null | null | mingh_tmp/auto_replacement_test.py | mingxu1067/paddle_sparse_dev | 53b4e82b04d1df8a86c183a226911b2c4966629e | [
"Apache-2.0"
] | null | null | null | import paddle
import paddle.fluid as fluid
from paddle.fluid.contrib import sparsity
import numpy as np
paddle.enable_static()
def main():
train_program = fluid.Program()
startup_prog = fluid.Program()
with fluid.program_guard(train_program, startup_prog):
input_data = fluid.layers.data(
... | 37.4 | 104 | 0.650067 | 454 | 2,992 | 4.015419 | 0.268722 | 0.010971 | 0.030719 | 0.019748 | 0.366429 | 0.310477 | 0.274273 | 0.174438 | 0.107515 | 0.107515 | 0 | 0.021492 | 0.206885 | 2,992 | 80 | 105 | 37.4 | 0.746734 | 0 | 0 | 0.126984 | 0 | 0 | 0.099566 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 1 | 0.015873 | false | 0.095238 | 0.063492 | 0 | 0.079365 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5460a5ec43949628c06340c907ae6f0d4a340f83 | 1,050 | py | Python | src/database_connections/Connections/athena.py | jameskabbes/database_connections | 06b60ba1528b41632a6dc543b83940c73b6f5928 | [
"MIT"
] | null | null | null | src/database_connections/Connections/athena.py | jameskabbes/database_connections | 06b60ba1528b41632a6dc543b83940c73b6f5928 | [
"MIT"
] | null | null | null | src/database_connections/Connections/athena.py | jameskabbes/database_connections | 06b60ba1528b41632a6dc543b83940c73b6f5928 | [
"MIT"
] | null | null | null | import pyathena
import pandas as pd
from database_connections.DatabaseConnection import DatabaseConnection
def get_DatabaseConnection( **kwargs ):
'''returns the class instance of the said object'''
return Athena( **kwargs )
class Athena( DatabaseConnection ):
'''Need the following attributes to be sto... | 30 | 70 | 0.550476 | 103 | 1,050 | 5.349515 | 0.572816 | 0.072595 | 0.047187 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004399 | 0.350476 | 1,050 | 34 | 71 | 30.882353 | 0.803519 | 0.464762 | 0 | 0 | 0 | 0 | 0.084942 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.25 | 0 | 0.75 | 0.083333 | 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 |
5464104208a4314edec03de99450f65aaf058b5e | 573 | py | Python | dev_stuff/misc/curses_colors.py | ismet55555/exam-terminal | 2d17cc3ccc71c17c8eb37e3adc23a52f8bc56e57 | [
"Apache-2.0"
] | 14 | 2020-11-25T22:16:35.000Z | 2022-01-08T20:41:44.000Z | dev_stuff/misc/curses_colors.py | ismet55555/exam-terminal | 2d17cc3ccc71c17c8eb37e3adc23a52f8bc56e57 | [
"Apache-2.0"
] | 23 | 2021-02-10T01:37:38.000Z | 2022-03-31T10:22:16.000Z | dev_stuff/misc/curses_colors.py | ismet55555/exam-terminal | 2d17cc3ccc71c17c8eb37e3adc23a52f8bc56e57 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import curses
def main(stdscr):
print(curses.has_colors())
curses.start_color()
curses.use_default_colors()
for i in range(0, 255):
# (color index, font color number, background color number)
curses.init_pair(i + 1, i, -1)
try:
for i in range(0, 25... | 19.758621 | 67 | 0.574171 | 76 | 573 | 4.25 | 0.565789 | 0.024768 | 0.037152 | 0.068111 | 0.092879 | 0.092879 | 0 | 0 | 0 | 0 | 0 | 0.0275 | 0.30192 | 573 | 28 | 68 | 20.464286 | 0.78 | 0.176265 | 0 | 0.117647 | 0 | 0 | 0.004264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.058824 | 0.058824 | 0 | 0.117647 | 0.117647 | 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 |
54650078bf6cc59bbc23ba53d0c305946d7b27c1 | 1,617 | py | Python | tests/clients/test_account_api_client.py | dakimura/coincheck_api | 936b98f3c193e78a22a342773987413074ff8986 | [
"BSD-2-Clause"
] | null | null | null | tests/clients/test_account_api_client.py | dakimura/coincheck_api | 936b98f3c193e78a22a342773987413074ff8986 | [
"BSD-2-Clause"
] | null | null | null | tests/clients/test_account_api_client.py | dakimura/coincheck_api | 936b98f3c193e78a22a342773987413074ff8986 | [
"BSD-2-Clause"
] | null | null | null | import logging
import unittest
from coincheck_api import settings
from coincheck_api.clients.account_api_client import AccountApiClient
from coincheck_api.exception import CoinCheckApiException
class TestAccountApi(unittest.TestCase):
"""Test class of account_api_client.py
"""
def setUp(self):
l... | 35.933333 | 83 | 0.713049 | 194 | 1,617 | 5.695876 | 0.278351 | 0.072398 | 0.101357 | 0.139367 | 0.530317 | 0.465158 | 0.436199 | 0.298643 | 0.246154 | 0.097738 | 0 | 0.002262 | 0.179963 | 1,617 | 45 | 84 | 35.933333 | 0.831071 | 0.021645 | 0 | 0.21875 | 0 | 0 | 0.069338 | 0 | 0 | 0 | 0 | 0 | 0.21875 | 1 | 0.25 | false | 0 | 0.15625 | 0 | 0.4375 | 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 |
546da1aa13ed64bc98f8c5a9936e506ad2cdd057 | 670 | py | Python | drf_admin/routing.py | guohaihan/myproject | 0ec105d0bd48477faddf93bd62a8ede800419ae6 | [
"MIT"
] | null | null | null | drf_admin/routing.py | guohaihan/myproject | 0ec105d0bd48477faddf93bd62a8ede800419ae6 | [
"MIT"
] | null | null | null | drf_admin/routing.py | guohaihan/myproject | 0ec105d0bd48477faddf93bd62a8ede800419ae6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author : Wang Meng
@github : https://github.com/tianpangji
@software : PyCharm
@file : routing.py
@create : 2020/7/29 20:21
"""
import os
import django
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'drf_admin.settings.dev')
from channels.routing import ProtocolTypeRouter, UR... | 23.928571 | 73 | 0.716418 | 77 | 670 | 6.142857 | 0.636364 | 0.05074 | 0.05074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021467 | 0.165672 | 670 | 27 | 74 | 24.814815 | 0.824687 | 0.237313 | 0 | 0 | 0 | 0 | 0.137177 | 0.087475 | 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 |
54784562ca0f7d20128b73a43b7e14fcda4a5f6d | 918 | py | Python | string/komand_string/actions/upper/schema.py | xhennessy-r7/insightconnect-plugins | 59268051313d67735b5dd3a30222eccb92aca8e9 | [
"MIT"
] | null | null | null | string/komand_string/actions/upper/schema.py | xhennessy-r7/insightconnect-plugins | 59268051313d67735b5dd3a30222eccb92aca8e9 | [
"MIT"
] | null | null | null | string/komand_string/actions/upper/schema.py | xhennessy-r7/insightconnect-plugins | 59268051313d67735b5dd3a30222eccb92aca8e9 | [
"MIT"
] | null | null | null | # GENERATED BY KOMAND SDK - DO NOT EDIT
import komand
import json
class Input:
STRING = "string"
class Output:
UPPER = "upper"
class UpperInput(komand.Input):
schema = json.loads("""
{
"type": "object",
"title": "Variables",
"properties": {
"string": {
"type": "string",
... | 16.690909 | 57 | 0.54902 | 91 | 918 | 5.274725 | 0.417582 | 0.066667 | 0.0625 | 0.079167 | 0.383333 | 0.383333 | 0.383333 | 0.383333 | 0.179167 | 0.179167 | 0 | 0.003008 | 0.275599 | 918 | 54 | 58 | 17 | 0.718797 | 0.040305 | 0 | 0.418605 | 1 | 0 | 0.54835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.046512 | 0 | 0.27907 | 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 |
54802dde7cfffd66055754179e830611d330e156 | 258 | py | Python | exercicios/exe018.py | wendelsilva/Python | d502949040dac5b7dd7e19e59b0fb2022b2b3dab | [
"MIT"
] | null | null | null | exercicios/exe018.py | wendelsilva/Python | d502949040dac5b7dd7e19e59b0fb2022b2b3dab | [
"MIT"
] | null | null | null | exercicios/exe018.py | wendelsilva/Python | d502949040dac5b7dd7e19e59b0fb2022b2b3dab | [
"MIT"
] | null | null | null | from math import sin, cos, tan
angulo = float(input("Digite o valor do ângulo: "))
seno = sin(angulo)
cosseno = cos(angulo)
tangente = tan(angulo)
print(f'O seno, cosseno e tangente de {angulo}° são respectivamente {seno:.2f}, {cosseno:.2f}, {tangente:.2f}') | 43 | 111 | 0.709302 | 41 | 258 | 4.487805 | 0.609756 | 0.097826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013393 | 0.131783 | 258 | 6 | 111 | 43 | 0.803571 | 0 | 0 | 0 | 0 | 0.166667 | 0.490347 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 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 |
54819dc4b0bbfdfcb2194d1d774250eff61bf367 | 312 | py | Python | com/obs/models/lifecycle.py | xunmeibuyue/IntelligentPeephole | c3bebf8792f019c859539607846971f33fee7cc2 | [
"Apache-2.0"
] | null | null | null | com/obs/models/lifecycle.py | xunmeibuyue/IntelligentPeephole | c3bebf8792f019c859539607846971f33fee7cc2 | [
"Apache-2.0"
] | null | null | null | com/obs/models/lifecycle.py | xunmeibuyue/IntelligentPeephole | c3bebf8792f019c859539607846971f33fee7cc2 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding:utf-8 -*-
from com.obs.models.base_model import BaseModel,BASESTRING
class Lifecycle(BaseModel):
'''
classdocs
'''
allowedAttr = {'rule': list}
def __init__(self, rule=None):
'''
Constructor
'''
self.rule = rule | 19.5 | 59 | 0.544872 | 31 | 312 | 5.322581 | 0.83871 | 0.09697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00463 | 0.307692 | 312 | 16 | 60 | 19.5 | 0.759259 | 0.189103 | 0 | 0 | 0 | 0 | 0.020101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5481d8ca644b48c0a7474e6ab60a2ecf83fcfc69 | 470 | py | Python | setup.py | sdd031215/FoolNLTK | 76166d5f7cac1f70e697bcac4b0b1a1fdd128da9 | [
"Apache-2.0"
] | 2 | 2017-12-28T08:21:37.000Z | 2017-12-28T08:21:39.000Z | setup.py | sdd031215/FoolNLTK | 76166d5f7cac1f70e697bcac4b0b1a1fdd128da9 | [
"Apache-2.0"
] | null | null | null | setup.py | sdd031215/FoolNLTK | 76166d5f7cac1f70e697bcac4b0b1a1fdd128da9 | [
"Apache-2.0"
] | 1 | 2018-03-01T14:39:00.000Z | 2018-03-01T14:39:00.000Z | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from distutils.core import setup
setup(name = 'foolnltk',
version = '0.0.8',
description = 'Fool Nature Language toolkit ',
author = 'wu.zheng',
author_email = 'rocky.zheng314@gmail.com',
url = 'https://github.com/rockyzhengwu/FoolNLTK',
packages ... | 26.111111 | 95 | 0.608511 | 61 | 470 | 4.622951 | 0.721311 | 0.056738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018277 | 0.185106 | 470 | 17 | 96 | 27.647059 | 0.718016 | 0.087234 | 0 | 0 | 0 | 0 | 0.421546 | 0.056206 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 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 |
5485de89c360da1e4f9044da62e84145af114885 | 224 | py | Python | factor.py | manpreet115/Python_while_loop | fb850b216aec76756294253934a64be32708cfdd | [
"MIT"
] | null | null | null | factor.py | manpreet115/Python_while_loop | fb850b216aec76756294253934a64be32708cfdd | [
"MIT"
] | null | null | null | factor.py | manpreet115/Python_while_loop | fb850b216aec76756294253934a64be32708cfdd | [
"MIT"
] | null | null | null | # x=int(input("enter the number"))
# print("factors of ",x,"is:")
# for i in range (1,x+1):
# if X%i==0:
# print(i)
n=int(input("enter factors number="))
i=1
while i<=n:
if n%i==0:
print(i)
i+=1 | 17.230769 | 37 | 0.508929 | 43 | 224 | 2.651163 | 0.44186 | 0.140351 | 0.22807 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036145 | 0.258929 | 224 | 13 | 38 | 17.230769 | 0.650602 | 0.522321 | 0 | 0 | 0 | 0 | 0.205882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
548c20b049914de3a083220877e21196c21986dc | 38,703 | py | Python | src/keymon/key_mon.py | jorgeartware/key-mon | 2be716bb9cf38c1373e27eae6895616f854a68d6 | [
"Apache-2.0"
] | 97 | 2016-03-03T19:18:47.000Z | 2022-03-10T15:12:04.000Z | src/keymon/key_mon.py | jorgeartware/key-mon | 2be716bb9cf38c1373e27eae6895616f854a68d6 | [
"Apache-2.0"
] | 2 | 2018-02-06T10:14:47.000Z | 2019-05-10T12:04:13.000Z | src/keymon/key_mon.py | jorgeartware/key-mon | 2be716bb9cf38c1373e27eae6895616f854a68d6 | [
"Apache-2.0"
] | 10 | 2017-03-27T21:16:21.000Z | 2022-02-22T20:49:18.000Z | #!/usr/bin/python
#
# Copyright 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 37.142994 | 111 | 0.631656 | 5,240 | 38,703 | 4.462405 | 0.130534 | 0.020656 | 0.029637 | 0.021896 | 0.374588 | 0.31416 | 0.253218 | 0.221357 | 0.178805 | 0.143138 | 0 | 0.006036 | 0.233754 | 38,703 | 1,041 | 112 | 37.178674 | 0.782439 | 0.042994 | 0 | 0.243932 | 0 | 0 | 0.165795 | 0.003945 | 0 | 0 | 0 | 0.000961 | 0 | 0 | null | null | 0.001214 | 0.021845 | null | null | 0.018204 | 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 |
548c521486d580dd4af5e41211084a411bfdc530 | 87,469 | py | Python | croparray/rSNAPsim_IP.py | Colorado-State-University-Stasevich-Lab/croparray | 65a38117fbf95c150324a5aa9707677b2aa82cc9 | [
"BSD-3-Clause"
] | null | null | null | croparray/rSNAPsim_IP.py | Colorado-State-University-Stasevich-Lab/croparray | 65a38117fbf95c150324a5aa9707677b2aa82cc9 | [
"BSD-3-Clause"
] | 3 | 2022-01-25T05:07:34.000Z | 2022-01-29T20:45:48.000Z | croparray/rSNAPsim_IP.py | Colorado-State-University-Stasevich-Lab/croparray | 65a38117fbf95c150324a5aa9707677b2aa82cc9 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Jun 26 22:10:24 2020
@author: luisaguilera
"""
# https://stackoverflow.com/questions/18418664/python-inherit-reuse-specific-methods-from-classes
# https://stackoverflow.com/questions/32284568/how-to-create-multiple-class-with-same-function
# THIS IS THE LIST OF LIBRARIES N... | 62.255516 | 1,053 | 0.661068 | 11,671 | 87,469 | 4.654443 | 0.072916 | 0.02695 | 0.048341 | 0.049151 | 0.640477 | 0.590994 | 0.539487 | 0.494017 | 0.449947 | 0.4167 | 0 | 0.018762 | 0.237113 | 87,469 | 1,404 | 1,054 | 62.299858 | 0.795276 | 0.124158 | 0 | 0.384475 | 0 | 0 | 0.032513 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049315 | false | 0.011872 | 0.027397 | 0 | 0.121461 | 0.010046 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
548dd9d0746f5de7adc52fc9114bdc14d9f8be3e | 4,979 | py | Python | oe/bitbake/lib/bb/fetch/osc.py | quby-energy/QB2-OSS | 836643e5113b28825ec668fc946fc99b1ce16596 | [
"MIT"
] | 2 | 2019-12-28T12:12:34.000Z | 2020-06-29T20:24:11.000Z | oe/bitbake/lib/bb/fetch/osc.py | quby-energy/QB2-OSS | 836643e5113b28825ec668fc946fc99b1ce16596 | [
"MIT"
] | 1 | 2020-09-07T15:33:56.000Z | 2020-09-07T15:33:56.000Z | oe/bitbake/lib/bb/fetch/osc.py | quby-io/QB2-OSS | 836643e5113b28825ec668fc946fc99b1ce16596 | [
"MIT"
] | 1 | 2019-04-05T06:08:40.000Z | 2019-04-05T06:08:40.000Z | # ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
"""
Bitbake "Fetch" implementation for osc (Opensuse build service client).
Based on the svn "Fetch" implementation.
"""
import os
import sys
import bb
from bb import data
from bb.fetch import Fetch
from bb.fetc... | 32.97351 | 132 | 0.539667 | 652 | 4,979 | 4.092025 | 0.303681 | 0.024738 | 0.026237 | 0.033733 | 0.14093 | 0.116942 | 0.106447 | 0.106447 | 0.063718 | 0.063718 | 0 | 0.004965 | 0.312312 | 4,979 | 150 | 133 | 33.193333 | 0.774241 | 0.058044 | 0 | 0.063158 | 0 | 0.010526 | 0.138013 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.021053 | 0.084211 | 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 |
5492206648e76a076582441e7b2244b583e9e5de | 375 | py | Python | src/issue_app/migrations/0003_auto_20191223_0533.py | fahmihidayah/bugs-reporter-django | 0d9645bc806afb072939994e0d92bef3e4de4448 | [
"MIT"
] | null | null | null | src/issue_app/migrations/0003_auto_20191223_0533.py | fahmihidayah/bugs-reporter-django | 0d9645bc806afb072939994e0d92bef3e4de4448 | [
"MIT"
] | 11 | 2020-06-06T01:29:11.000Z | 2022-03-12T00:17:55.000Z | src/issue_app/migrations/0003_auto_20191223_0533.py | fahmihidayah/bugs-reporter-django | 0d9645bc806afb072939994e0d92bef3e4de4448 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.9 on 2019-12-23 05:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('issue_app', '0002_auto_20191223_0530'),
]
operations = [
migrations.RenameField(
model_name='issue',
old_name='target_issue'... | 19.736842 | 49 | 0.597333 | 42 | 375 | 5.119048 | 0.785714 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116981 | 0.293333 | 375 | 18 | 50 | 20.833333 | 0.69434 | 0.12 | 0 | 0 | 1 | 0 | 0.182927 | 0.070122 | 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 |
5498ca3066f593450d84d8f96b5dca5826734034 | 1,901 | py | Python | dsnap_rules/migrations/0003_auto_20190221_1726.py | lisac-usds/dsnap_rules | c0db0385038d6791597417f8fa28490abafa3b3c | [
"CC0-1.0"
] | 4 | 2018-12-03T20:47:01.000Z | 2019-10-11T20:38:57.000Z | dsnap_rules/migrations/0003_auto_20190221_1726.py | lisac-usds/dsnap_rules | c0db0385038d6791597417f8fa28490abafa3b3c | [
"CC0-1.0"
] | 10 | 2018-10-26T16:18:26.000Z | 2018-10-29T20:10:42.000Z | dsnap_rules/migrations/0003_auto_20190221_1726.py | 18F/new_rules | 85870c33cb61292869e12c4391f0781264b2ceac | [
"CC0-1.0"
] | 2 | 2020-04-06T01:44:11.000Z | 2021-02-14T09:52:44.000Z | # Generated by Django 2.1.7 on 2019-02-21 17:26
from django.db import migrations
def create_florida_counties(apps, schema_editor):
County = apps.get_model('dsnap_rules', 'County')
FLORIDA_COUNTIES = [
"Alachua",
"Baker",
"Bay",
"Bradford",
"Brevard",
"Broward"... | 20.223404 | 54 | 0.465544 | 149 | 1,901 | 5.838926 | 0.785235 | 0.068966 | 0.048276 | 0.03908 | 0.050575 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026701 | 0.389269 | 1,901 | 93 | 55 | 20.44086 | 0.722653 | 0.023672 | 0 | 0 | 1 | 0 | 0.289644 | 0.012406 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011905 | false | 0 | 0.011905 | 0 | 0.059524 | 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 |
5499c0cad8fb9f7f9475752319d6b5c784798f0f | 1,667 | py | Python | Lesson 1. Introduction to Python/example.py | jonblower/python-viz-intro | 2d366fb864d53cd0f17b484089cb08747888bcb1 | [
"BSD-3-Clause"
] | 51 | 2015-06-19T19:28:21.000Z | 2021-12-15T23:37:13.000Z | Lesson 1. Introduction to Python/example.py | jonblower/python-viz-intro | 2d366fb864d53cd0f17b484089cb08747888bcb1 | [
"BSD-3-Clause"
] | null | null | null | Lesson 1. Introduction to Python/example.py | jonblower/python-viz-intro | 2d366fb864d53cd0f17b484089cb08747888bcb1 | [
"BSD-3-Clause"
] | 24 | 2015-11-30T16:59:30.000Z | 2022-03-10T06:22:29.000Z | # A simple Python script that illustrates some of the concepts of
# variable assignment, loops, conditionals, functions and testing
# Load into SciTE and run by pressing F5
# Or rwith "python example.py"
# Variable assignment
temperature = 5.0 # a floating-point (decimal) number
numberOfLegs = 2 # an inte... | 28.741379 | 89 | 0.645471 | 252 | 1,667 | 4.269841 | 0.5 | 0.013941 | 0.01487 | 0.016729 | 0.031599 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06068 | 0.258548 | 1,667 | 57 | 90 | 29.245614 | 0.809871 | 0.496101 | 0 | 0.137931 | 0 | 0 | 0.235526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.275862 | 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 |
549aa2a636203464249b19620bd2d409f7ac8f39 | 651 | py | Python | examples/apply_classifier.py | s-horiguchi/ecc | faaabe4b9cb1a05474401e119b2629a747af07de | [
"MIT"
] | 2 | 2020-11-10T12:40:39.000Z | 2022-03-23T13:32:02.000Z | examples/apply_classifier.py | s-horiguchi/ecc | faaabe4b9cb1a05474401e119b2629a747af07de | [
"MIT"
] | 3 | 2021-05-20T11:31:44.000Z | 2022-02-26T06:06:11.000Z | examples/apply_classifier.py | s-horiguchi/ecc | faaabe4b9cb1a05474401e119b2629a747af07de | [
"MIT"
] | 4 | 2020-08-13T10:15:58.000Z | 2022-03-23T13:37:57.000Z | from ecc.ilastik_wrapper import PixelClassifier
# create a new instance
pc = PixelClassifier()
# force it print detailed progress
pc.set_verbose(True)
# set ilastik path
pc.set_ilastik_executable_path('/home/users/mano/softwares/ilastik-1.3.0-Linux/')
# set path to ilastik project
pc.set_project_file('/home/users/m... | 25.038462 | 111 | 0.780338 | 104 | 651 | 4.701923 | 0.634615 | 0.071575 | 0.05317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020374 | 0.095238 | 651 | 26 | 112 | 25.038462 | 0.809847 | 0.281106 | 0 | 0 | 0 | 0.1 | 0.400871 | 0.400871 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 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 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
54a0351a6897cf719226c167838ab35713bfd51e | 1,868 | py | Python | pock/helpers.py | atbentley/pock | d7cefee40dd967707948d7253857629767f2599b | [
"MIT"
] | 1 | 2017-10-13T15:05:50.000Z | 2017-10-13T15:05:50.000Z | pock/helpers.py | atbentley/pock | d7cefee40dd967707948d7253857629767f2599b | [
"MIT"
] | null | null | null | pock/helpers.py | atbentley/pock | d7cefee40dd967707948d7253857629767f2599b | [
"MIT"
] | null | null | null | from .matchers import AnyValueMatcher, AnyArgumentsMatcher, AnyKeywordArgumentsMatcher, AnyValuesMatcher
from .behaviour import BehaviourBuilder
from .verification import VerificationBuilder
try:
import asyncio
from .async_mock import AsyncMock as Mock
except ImportError:
asyncio = None
from .mock impo... | 32.77193 | 104 | 0.74197 | 235 | 1,868 | 5.67234 | 0.302128 | 0.084021 | 0.094524 | 0.066017 | 0.301575 | 0.234059 | 0.234059 | 0.196549 | 0.164291 | 0.164291 | 0 | 0.0019 | 0.154711 | 1,868 | 56 | 105 | 33.357143 | 0.842305 | 0 | 0 | 0 | 0 | 0 | 0.15364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179487 | false | 0 | 0.179487 | 0.051282 | 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 |
54a39a558dbdd3ae1028bbef6d957a23acbd5c3a | 770 | py | Python | setup.py | TigerND/djangocms-ace | fe861acf9720e365ff3e16013e2e5d4a7329ccfb | [
"MIT"
] | 1 | 2016-08-04T07:27:04.000Z | 2016-08-04T07:27:04.000Z | setup.py | TigerND/djangocms-ace | fe861acf9720e365ff3e16013e2e5d4a7329ccfb | [
"MIT"
] | null | null | null | setup.py | TigerND/djangocms-ace | fe861acf9720e365ff3e16013e2e5d4a7329ccfb | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup
setup(
name='djangocms-ace',
version='0.3.4',
description='Ace Editor plugin for Django CMS',
author='Aleksandr Zykov',
author_email='tiger@vilijavis.lt',
url='https://github.com/TigerND/djangocms-ace',
packages=[
'djangocms_ace',
... | 24.0625 | 51 | 0.601299 | 82 | 770 | 5.536585 | 0.780488 | 0.132159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013962 | 0.255844 | 770 | 31 | 52 | 24.83871 | 0.77836 | 0.025974 | 0 | 0.142857 | 0 | 0 | 0.463284 | 0.066756 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.035714 | 0 | 0.035714 | 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 |
54a9d03ae4a2776d05f0a6b528b0bfa3a0fe863d | 1,676 | py | Python | sigec/urls.py | lucaslucyk/sigec | cdf65868e2f8ead35b005603611fcd20446633c7 | [
"MIT"
] | null | null | null | sigec/urls.py | lucaslucyk/sigec | cdf65868e2f8ead35b005603611fcd20446633c7 | [
"MIT"
] | 7 | 2020-02-12T03:10:01.000Z | 2021-06-10T19:30:50.000Z | sigec/urls.py | lucaslucyk/sigec | cdf65868e2f8ead35b005603611fcd20446633c7 | [
"MIT"
] | null | null | null | """sigec URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based v... | 44.105263 | 143 | 0.722554 | 243 | 1,676 | 4.864198 | 0.345679 | 0.042301 | 0.01269 | 0.020305 | 0.2022 | 0.2022 | 0.166667 | 0.103215 | 0.103215 | 0.103215 | 0 | 0.005506 | 0.133055 | 1,676 | 37 | 144 | 45.297297 | 0.807983 | 0.569212 | 0 | 0 | 0 | 0 | 0.18118 | 0.106742 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 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 |
54ac41b580d5994064c07bab5b38c49cf5b6eb40 | 421 | py | Python | Code Forces/Round 643/sequence_and_digits.py | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | 2 | 2020-06-25T21:10:32.000Z | 2020-12-10T06:53:45.000Z | Code Forces/Round 643/sequence_and_digits.py | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | null | null | null | Code Forces/Round 643/sequence_and_digits.py | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | 3 | 2020-05-15T14:17:09.000Z | 2021-07-25T13:18:20.000Z | import math
for t in range(int(input())):
a,k = map(int,input().split())
j = 0
ai = 0
while j < k:
if j == 0:
ai = a
else:
mx = 0
mi = 9
for i in str(ai):
mx = max(mx,int(i))
mi = min(mi,int(i))
i... | 21.05 | 35 | 0.339667 | 60 | 421 | 2.383333 | 0.466667 | 0.111888 | 0.055944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034653 | 0.52019 | 421 | 19 | 36 | 22.157895 | 0.673267 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0.052632 | 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 |
54ac7fc017dd92dda44cce0186574c8a702636d7 | 504 | py | Python | setup.py | Python3pkg/ImageSocket_Python | 7b7f7e9df81464135441b1be60dff40c11e5c057 | [
"MIT"
] | null | null | null | setup.py | Python3pkg/ImageSocket_Python | 7b7f7e9df81464135441b1be60dff40c11e5c057 | [
"MIT"
] | null | null | null | setup.py | Python3pkg/ImageSocket_Python | 7b7f7e9df81464135441b1be60dff40c11e5c057 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name = 'ImageSocket',
packages = ['ImageSocket'],
version = '1.0.0',
description = 'The python plugin to receive the image socket',
author = 'Sunner Li',
author_email = 'a6214123@gmail.com',
url = 'https://github.com/SunnerLi/ImageSocket_Python', # use the URL to the githu... | 36 | 89 | 0.708333 | 65 | 504 | 5.430769 | 0.584615 | 0.011331 | 0.016997 | 0.096317 | 0.23796 | 0.23796 | 0.23796 | 0 | 0 | 0 | 0 | 0.029885 | 0.136905 | 504 | 13 | 90 | 38.769231 | 0.781609 | 0.097222 | 0 | 0 | 0 | 0 | 0.50885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 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 |
54aff4e0c28172f0ec31fdd5ba449abe15eff23a | 2,158 | py | Python | tools/check_output_test.py | ameerthehacker/deno | 8c0eb45265ff4f2cf180eb5331e2cd0eb2ec8453 | [
"MIT"
] | null | null | null | tools/check_output_test.py | ameerthehacker/deno | 8c0eb45265ff4f2cf180eb5331e2cd0eb2ec8453 | [
"MIT"
] | null | null | null | tools/check_output_test.py | ameerthehacker/deno | 8c0eb45265ff4f2cf180eb5331e2cd0eb2ec8453 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Given a deno executable, this script execute several integration tests
# with it. The tests are stored in //tests/ and each script has a corresponding
# .out file which specifies what the stdout should be.
#
# Usage: check_output_test.py [path to deno executable]
import os
import sys
import subp... | 34.253968 | 79 | 0.625579 | 282 | 2,158 | 4.570922 | 0.343972 | 0.037238 | 0.034911 | 0.037238 | 0.16059 | 0.080683 | 0.046548 | 0.046548 | 0 | 0 | 0 | 0.005175 | 0.283596 | 2,158 | 62 | 80 | 34.806452 | 0.82859 | 0.127896 | 0 | 0.106383 | 0 | 0 | 0.082623 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 0 | null | null | 0 | 0.085106 | null | null | 0.191489 | 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 |
54aff8dc93c0519952ac691c95dfac9edaa292e3 | 4,790 | py | Python | test/aws.py | coalfire/carvajal | d1f36f840629835ce52b3005ca7d38093c6abead | [
"MIT"
] | null | null | null | test/aws.py | coalfire/carvajal | d1f36f840629835ce52b3005ca7d38093c6abead | [
"MIT"
] | null | null | null | test/aws.py | coalfire/carvajal | d1f36f840629835ce52b3005ca7d38093c6abead | [
"MIT"
] | null | null | null | # This test code was written by the `hypothesis.extra.ghostwriter` module
# and is provided under the Creative Commons Zero public domain dedication.
import carvajal.aws
from collections import ChainMap
from hypothesis import given, strategies as st
from re import compile
# TODO: replace st.nothing() with appropriate... | 32.147651 | 85 | 0.775992 | 685 | 4,790 | 5.166423 | 0.138686 | 0.072337 | 0.071489 | 0.050862 | 0.679853 | 0.564566 | 0.488274 | 0.4295 | 0.404069 | 0.382594 | 0 | 0 | 0.098747 | 4,790 | 148 | 86 | 32.364865 | 0.819782 | 0.041754 | 0 | 0.239583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006757 | 0 | 1 | 0.239583 | false | 0 | 0.041667 | 0 | 0.28125 | 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 |
54b0473776306dd4681460d4096efe31f9eb7251 | 2,245 | py | Python | Project/src/uff/ic/mell/sentimentembedding/datasets/preprocessar.py | MeLL-UFF/tuning_sentiment | cb8683be115f694e02c12f8e1a90529a08c7d1d6 | [
"MIT"
] | 2 | 2021-09-23T18:06:10.000Z | 2021-09-23T18:15:11.000Z | Project/src/uff/ic/mell/sentimentembedding/datasets/preprocessar.py | MeLL-UFF/tuning_sentiment | cb8683be115f694e02c12f8e1a90529a08c7d1d6 | [
"MIT"
] | null | null | null | Project/src/uff/ic/mell/sentimentembedding/datasets/preprocessar.py | MeLL-UFF/tuning_sentiment | cb8683be115f694e02c12f8e1a90529a08c7d1d6 | [
"MIT"
] | null | null | null | from uff.ic.mell.sentimentembedding.datasets.dataset_loader import DataSetLoader
import os
import sys, getopt
import numpy as np
import random
import pandas as pd
import datetime as dt
ts_now = dt.datetime.now()
from time import time
from uff.ic.mell.sentimentembedding.datasets.dataset import DataSet
def inputsFromC... | 33.507463 | 158 | 0.589755 | 263 | 2,245 | 4.961977 | 0.34981 | 0.050575 | 0.078161 | 0.045977 | 0.449808 | 0.449808 | 0.449808 | 0.202299 | 0.202299 | 0.202299 | 0 | 0.003641 | 0.265924 | 2,245 | 67 | 159 | 33.507463 | 0.788228 | 0.014254 | 0 | 0.150943 | 0 | 0 | 0.260255 | 0.027347 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0.037736 | false | 0 | 0.169811 | 0 | 0.226415 | 0.132075 | 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 |
54b0dd672573efe2344d25d5ba763fef01f1e6f4 | 2,735 | py | Python | passenger_census_api/serializers.py | hackoregon/provisional-transportation-api | 15a74f82f751e9bc60c00eacbe6f16bb2d8905e0 | [
"MIT"
] | 2 | 2018-05-30T18:07:16.000Z | 2019-05-06T10:01:54.000Z | passenger_census_api/serializers.py | hackoregon/provisional-transportation-api | 15a74f82f751e9bc60c00eacbe6f16bb2d8905e0 | [
"MIT"
] | 33 | 2018-05-24T05:00:58.000Z | 2020-06-05T18:16:32.000Z | passenger_census_api/serializers.py | hackoregon/provisional-transportation-api | 15a74f82f751e9bc60c00eacbe6f16bb2d8905e0 | [
"MIT"
] | 3 | 2018-05-24T03:38:59.000Z | 2019-07-10T18:35:31.000Z |
from rest_framework import serializers
from rest_framework_gis import serializers
from rest_framework.serializers import CharField, IntegerField, BooleanField
from passenger_census_api.models import PassengerCensus, AnnualRouteRidership, OrCensusBlockPolygons, WaCensusBlockPolygons, AnnualCensusBlockRidership, Censu... | 34.620253 | 217 | 0.729799 | 219 | 2,735 | 8.744292 | 0.292237 | 0.046997 | 0.073107 | 0.140992 | 0.393211 | 0.148303 | 0.090862 | 0.090862 | 0.052219 | 0.052219 | 0 | 0.009238 | 0.20841 | 2,735 | 78 | 218 | 35.064103 | 0.875289 | 0 | 0 | 0.415385 | 0 | 0 | 0.07425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.107692 | 0.061538 | 0 | 0.369231 | 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 |
54b309f1780894d1a46d176857a53e6fbe388a0b | 1,813 | py | Python | 2018/myio.py | suracefm/exactdiag | 756aef9426e05940f6aa744d564b807961441756 | [
"MIT"
] | null | null | null | 2018/myio.py | suracefm/exactdiag | 756aef9426e05940f6aa744d564b807961441756 | [
"MIT"
] | null | null | null | 2018/myio.py | suracefm/exactdiag | 756aef9426e05940f6aa744d564b807961441756 | [
"MIT"
] | null | null | null | import re
import numpy as np
# Read commented lines of the format '# NAME value' from file .out and return a structured array
def dt(lenarr):
return np.dtype([('JZZ', np.float64), ('hZ', np.float64), ('hX', np.float64),
('FILENAME', np.unicode_, 32), ('phi', np.float64), ('dim_loc', np.int32),
... | 50.361111 | 148 | 0.47711 | 236 | 1,813 | 3.601695 | 0.338983 | 0.222353 | 0.158824 | 0.061176 | 0.272941 | 0.272941 | 0.182353 | 0.103529 | 0.103529 | 0.103529 | 0 | 0.056836 | 0.281853 | 1,813 | 35 | 149 | 51.8 | 0.596006 | 0.051296 | 0 | 0.225806 | 0 | 0 | 0.157833 | 0.013395 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.032258 | 0.064516 | 0.032258 | 0.193548 | 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 |
54b3cefc234f85890e6a0b6226e72bc1f80392b3 | 4,135 | py | Python | data_layer/test/test_encryptor.py | xyla-io/data_layer | 8d10aab6cae7f63eacf4e139e09576dd14a87354 | [
"MIT"
] | null | null | null | data_layer/test/test_encryptor.py | xyla-io/data_layer | 8d10aab6cae7f63eacf4e139e09576dd14a87354 | [
"MIT"
] | null | null | null | data_layer/test/test_encryptor.py | xyla-io/data_layer | 8d10aab6cae7f63eacf4e139e09576dd14a87354 | [
"MIT"
] | null | null | null | import pytest
from ..encryptor import Encryptor, Decryptor
from secrets import token_bytes, randbelow
@pytest.fixture
def private_key_bytes():
private_key_bytes = Decryptor.generate_private_key(
password=None
)
yield private_key_bytes
@pytest.fixture
def decryptor(private_key_bytes):
decryptor = Decrypt... | 29.535714 | 129 | 0.775091 | 478 | 4,135 | 6.40795 | 0.16318 | 0.093373 | 0.048972 | 0.029383 | 0.411035 | 0.295788 | 0.245511 | 0.16683 | 0.130591 | 0.130591 | 0 | 0.004507 | 0.141475 | 4,135 | 139 | 130 | 29.748201 | 0.85831 | 0 | 0 | 0.347107 | 1 | 0 | 0.013543 | 0 | 0 | 0 | 0 | 0 | 0.140496 | 1 | 0.132231 | false | 0.041322 | 0.024793 | 0 | 0.157025 | 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 |
54b43a38296f4ae359f45cc3cc4b55ecd06989b0 | 608 | py | Python | diventi/accounts/migrations/0006_auto_20180226_1601.py | flavoi/diven | 3173ca3ca3fbedc191b8eab3639a6bceb3c442c4 | [
"Apache-2.0"
] | 2 | 2019-06-27T16:00:17.000Z | 2020-08-14T07:46:05.000Z | diventi/accounts/migrations/0006_auto_20180226_1601.py | flavoi/diven | 3173ca3ca3fbedc191b8eab3639a6bceb3c442c4 | [
"Apache-2.0"
] | 26 | 2020-02-15T22:39:35.000Z | 2022-02-19T21:09:01.000Z | diventi/accounts/migrations/0006_auto_20180226_1601.py | flavoi/diven | 3173ca3ca3fbedc191b8eab3639a6bceb3c442c4 | [
"Apache-2.0"
] | 1 | 2021-11-12T22:30:15.000Z | 2021-11-12T22:30:15.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2018-02-26 15:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0005_auto_20180226_0925'),
]
operations = [
migrations.RemoveFi... | 24.32 | 90 | 0.610197 | 60 | 608 | 6 | 0.733333 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074492 | 0.271382 | 608 | 24 | 91 | 25.333333 | 0.738149 | 0.111842 | 0 | 0.117647 | 1 | 0 | 0.176909 | 0.042831 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 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 |
54b4a82158b7a336f5aae077b85e9a05aaa73743 | 2,133 | py | Python | test.py | KwanYu/Airbnb-Backend | 61b4c89f891378181447fc251fa0d1c2c5f435de | [
"MIT"
] | null | null | null | test.py | KwanYu/Airbnb-Backend | 61b4c89f891378181447fc251fa0d1c2c5f435de | [
"MIT"
] | null | null | null | test.py | KwanYu/Airbnb-Backend | 61b4c89f891378181447fc251fa0d1c2c5f435de | [
"MIT"
] | null | null | null | import properties as properties
from neo4j import GraphDatabase
from pypher.builder import Pypher
import pytest
from py2neo import Graph
def testPy2():
graph = Graph("bolt://localhost:7687", auth=("neo4j", "harry"))
res = graph.run("MATCH (n) return n")
data = res.data()
result_data = dict()
for ... | 29.219178 | 102 | 0.593061 | 252 | 2,133 | 4.888889 | 0.313492 | 0.048701 | 0.064935 | 0.037338 | 0.237013 | 0.237013 | 0.237013 | 0.237013 | 0.175325 | 0.175325 | 0 | 0.013522 | 0.271917 | 2,133 | 72 | 103 | 29.625 | 0.779781 | 0.155181 | 0 | 0.326087 | 0 | 0.043478 | 0.203466 | 0.076579 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0.108696 | 0.108696 | 0 | 0.282609 | 0.108696 | 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 |
54b9bd1c098238f13c848eb806a163a286a23ea9 | 2,508 | py | Python | orchestrator/plugins/sentinel2/maja_sentinel2_l1_angles.py | spacebel/MAJA | 3e5d20bc9c744c610e608cfcf1f4c5c738d4de9e | [
"Apache-2.0"
] | 57 | 2020-09-30T08:51:22.000Z | 2021-12-19T20:28:30.000Z | orchestrator/plugins/sentinel2/maja_sentinel2_l1_angles.py | spacebel/MAJA | 3e5d20bc9c744c610e608cfcf1f4c5c738d4de9e | [
"Apache-2.0"
] | 34 | 2020-09-29T21:27:22.000Z | 2022-02-03T09:56:45.000Z | orchestrator/plugins/sentinel2/maja_sentinel2_l1_angles.py | spacebel/MAJA | 3e5d20bc9c744c610e608cfcf1f4c5c738d4de9e | [
"Apache-2.0"
] | 14 | 2020-10-11T13:17:59.000Z | 2022-03-09T15:58:19.000Z | # -*- coding: utf-8 -*-
#
# Copyright (C) 2020 Centre National d'Etudes Spatiales (CNES)
#
# 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
#
# ... | 36.347826 | 99 | 0.573764 | 296 | 2,508 | 4.652027 | 0.439189 | 0.043573 | 0.054466 | 0.066812 | 0.092229 | 0.092229 | 0.092229 | 0.02106 | 0.02106 | 0.02106 | 0 | 0.008999 | 0.24681 | 2,508 | 68 | 100 | 36.882353 | 0.719958 | 0.635566 | 0 | 0 | 0 | 0 | 0.046243 | 0 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
49b365b9ec6445049ada9b87b984665f15ccbe8a | 1,089 | py | Python | python/hls2srt.py | AngusF22/toolbox | a8bda9052f3b1195957ad0eba6f217fe5f2add28 | [
"MIT"
] | 182 | 2019-03-19T19:39:33.000Z | 2022-02-28T01:50:24.000Z | python/hls2srt.py | AngusF22/toolbox | a8bda9052f3b1195957ad0eba6f217fe5f2add28 | [
"MIT"
] | 10 | 2020-01-17T03:53:04.000Z | 2022-03-30T16:00:03.000Z | python/hls2srt.py | AngusF22/toolbox | a8bda9052f3b1195957ad0eba6f217fe5f2add28 | [
"MIT"
] | 39 | 2019-03-19T19:40:12.000Z | 2022-03-23T16:48:52.000Z | #!/usr/bin/python2.7
#
# Copyright 2019 Eyevinn Technology. All rights reserved
# Use of this source code is governed by a MIT License
# that can be found in the LICENSE file.
# Author: Jonas Rydholm Birme (Eyevinn Technology)
#
# Receive HLS and stream over SRT
#
import argparse
import subprocess
from os.path import b... | 29.432432 | 114 | 0.730028 | 157 | 1,089 | 5.019108 | 0.611465 | 0.045685 | 0.086294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0138 | 0.134986 | 1,089 | 36 | 115 | 30.25 | 0.822718 | 0.226814 | 0 | 0 | 0 | 0.047619 | 0.319328 | 0.028812 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.238095 | null | null | 0.095238 | 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 |
49b51a3dc1e8be0954e81dc55eac3f529e6eaecd | 346 | py | Python | traffic_control/migrations/0038_remove_plan_planner_legacy.py | City-of-Helsinki/city-infrastructure-platform | c14513a9e54405412085f1047f91ec58b263eac0 | [
"CC0-1.0"
] | 2 | 2020-11-23T22:08:58.000Z | 2022-03-02T13:13:20.000Z | traffic_control/migrations/0038_remove_plan_planner_legacy.py | City-of-Helsinki/city-infrastructure-platform | c14513a9e54405412085f1047f91ec58b263eac0 | [
"CC0-1.0"
] | 170 | 2019-12-31T13:37:04.000Z | 2022-03-12T14:03:35.000Z | traffic_control/migrations/0038_remove_plan_planner_legacy.py | City-of-Helsinki/city-infrastructure-platform | c14513a9e54405412085f1047f91ec58b263eac0 | [
"CC0-1.0"
] | 3 | 2020-05-08T05:58:02.000Z | 2022-03-15T16:07:25.000Z | # Generated by Django 2.2.16 on 2020-11-04 08:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("traffic_control", "0037_migrate_plan_planners"),
]
operations = [
migrations.RemoveField(
model_name="plan",
name="planner_... | 19.222222 | 58 | 0.612717 | 37 | 346 | 5.567568 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080321 | 0.280347 | 346 | 17 | 59 | 20.352941 | 0.746988 | 0.132948 | 0 | 0 | 1 | 0 | 0.197987 | 0.087248 | 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 |
49b54f0f2d8a2e241516bfbf1b5d19236d74c30c | 8,065 | py | Python | tools/create_dist.py | kripken/intensityengine | 9ae352b4f526ecb180004ae4968db7f64f140762 | [
"MIT"
] | 31 | 2015-01-18T20:27:31.000Z | 2021-07-03T03:58:47.000Z | tools/create_dist.py | JamesLinus/intensityengine | 9ae352b4f526ecb180004ae4968db7f64f140762 | [
"MIT"
] | 4 | 2015-07-05T21:09:37.000Z | 2019-09-06T14:34:59.000Z | tools/create_dist.py | JamesLinus/intensityengine | 9ae352b4f526ecb180004ae4968db7f64f140762 | [
"MIT"
] | 11 | 2015-02-03T19:24:10.000Z | 2019-09-20T10:59:50.000Z |
#=============================================================================
# Copyright (C) 2008 Alon Zakai ('Kripken') kripkensteiner@gmail.com
#
# This file is part of the Intensity Engine project,
# http://www.intensityengine.com
#
# The Intensity Engine is free software: you can redistribute it and/or modify... | 34.465812 | 123 | 0.583013 | 847 | 8,065 | 5.456907 | 0.318772 | 0.048464 | 0.063609 | 0.03981 | 0.172869 | 0.080917 | 0.031155 | 0.016443 | 0.016443 | 0 | 0 | 0.004169 | 0.256541 | 8,065 | 233 | 124 | 34.613734 | 0.766678 | 0.145691 | 0 | 0.085562 | 0 | 0 | 0.422348 | 0.298514 | 0 | 0 | 0 | 0 | 0.010695 | 0 | null | null | 0 | 0.016043 | null | null | 0.032086 | 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 |
49b698615e93d6b918f8c52343d5e48ca11717f7 | 2,934 | py | Python | misc/run-deprecations.py | jaraco/foolscap | 845bea550447991b194ef884713a7b3be4b4a6c2 | [
"MIT"
] | 29 | 2015-01-05T19:37:27.000Z | 2021-03-03T21:59:13.000Z | misc/run-deprecations.py | jaraco/foolscap | 845bea550447991b194ef884713a7b3be4b4a6c2 | [
"MIT"
] | 65 | 2015-03-01T03:18:03.000Z | 2022-03-24T16:00:48.000Z | misc/run-deprecations.py | jaraco/foolscap | 845bea550447991b194ef884713a7b3be4b4a6c2 | [
"MIT"
] | 22 | 2015-01-28T10:51:46.000Z | 2022-01-26T07:56:25.000Z | import sys, os, io
from twisted.internet import reactor, protocol, task, defer
from twisted.python.procutils import which
from twisted.python import usage
# run the command with python's deprecation warnings turned on, capturing
# stderr. When done, scan stderr for warnings, write them to a separate
# logfile (so the ... | 29.938776 | 109 | 0.622018 | 362 | 2,934 | 5.035912 | 0.40884 | 0.019748 | 0.018651 | 0.013165 | 0.063631 | 0.063631 | 0.046078 | 0 | 0 | 0 | 0 | 0.002305 | 0.260736 | 2,934 | 97 | 110 | 30.247423 | 0.838174 | 0.130539 | 0 | 0.053333 | 0 | 0 | 0.171058 | 0.036178 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.053333 | null | null | 0.053333 | 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 |
49b78a552e3550e68bc479487e991e5755a49406 | 2,415 | py | Python | MimeTypeItem.py | nuxeo-cps/zope2--PortalTransforms | 753f67202b016d0b07edd3bc65fd827cb39e50db | [
"BSD-3-Clause"
] | null | null | null | MimeTypeItem.py | nuxeo-cps/zope2--PortalTransforms | 753f67202b016d0b07edd3bc65fd827cb39e50db | [
"BSD-3-Clause"
] | null | null | null | MimeTypeItem.py | nuxeo-cps/zope2--PortalTransforms | 753f67202b016d0b07edd3bc65fd827cb39e50db | [
"BSD-3-Clause"
] | null | null | null | from os.path import dirname, join, exists
from Products.PortalTransforms.interfaces import imimetype
from Products.PortalTransforms.utils import HAS_ZOPE
__revision__ = '$Id$'
class MimeTypeException(Exception): pass
class mimetype:
__implements__ = (imimetype,)
#XXX __slots__
def __init__(self, name=... | 28.411765 | 77 | 0.623602 | 302 | 2,415 | 4.764901 | 0.301325 | 0.061154 | 0.018763 | 0.027102 | 0.161223 | 0.161223 | 0.161223 | 0.143155 | 0.143155 | 0.143155 | 0 | 0.01028 | 0.274948 | 2,415 | 84 | 78 | 28.75 | 0.811536 | 0.157764 | 0 | 0.074074 | 0 | 0 | 0.032274 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0.037037 | 0.074074 | 0.055556 | 0.518519 | 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 |
49b9c1345cfdb608e615a9e2f2061da1408fa4f4 | 294 | py | Python | postmin.py | dobisel/postmin | cb7b13a91fcfaf01c065cd92491c8e610ba38557 | [
"MIT"
] | null | null | null | postmin.py | dobisel/postmin | cb7b13a91fcfaf01c065cd92491c8e610ba38557 | [
"MIT"
] | null | null | null | postmin.py | dobisel/postmin | cb7b13a91fcfaf01c065cd92491c8e610ba38557 | [
"MIT"
] | null | null | null | from json import load as jsonload
from os.path import join, dirname
from yhttp import Application, json, validate, statuses
__version__ = '0.1.0'
app = Application(version=__version__)
app.settings.debug = False
app.staticdirectory('/', 'public', default=True, fallback=True)
app.ready()
| 19.6 | 63 | 0.758503 | 40 | 294 | 5.375 | 0.675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011719 | 0.129252 | 294 | 14 | 64 | 21 | 0.828125 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
49bf6af60b79e7a4ca5d1c4f25aa89ad9976249e | 664 | py | Python | indexer/src/files/tar_file.py | alliance-genome/agr_archive_initial_prototype | 8559303de20e55886cc5bc7c2153f9357fc0ca2f | [
"MIT"
] | 9 | 2016-10-03T16:10:39.000Z | 2016-10-10T16:22:52.000Z | indexer/src/files/tar_file.py | alliance-genome/agr | 8559303de20e55886cc5bc7c2153f9357fc0ca2f | [
"MIT"
] | 168 | 2017-02-06T17:07:20.000Z | 2017-08-23T21:23:55.000Z | indexer/src/files/tar_file.py | alliance-genome/agr_prototype | 8559303de20e55886cc5bc7c2153f9357fc0ca2f | [
"MIT"
] | 12 | 2016-10-04T22:01:48.000Z | 2017-02-01T21:17:33.000Z | import tarfile
import os
class TARFile:
def __init__(self, path, tarfilename):
self.path = path
self.tarfilename = tarfilename
def extract_all(self):
print "Extracting files from (" + self.path + "/" + self.tarfilename + ") ..."
tfile = tarfile.open(self.path + "/" + self.tar... | 31.619048 | 97 | 0.555723 | 70 | 664 | 5.2 | 0.414286 | 0.153846 | 0.156593 | 0.126374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.305723 | 664 | 20 | 98 | 33.2 | 0.789588 | 0 | 0 | 0 | 0 | 0 | 0.075301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.125 | 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 |
49c0367ea08a5dbf6c68a044d29fd638d39c9158 | 2,045 | py | Python | Wards/models.py | HabeshaQueen/Awards | 956fad404d9910660266eb8e1819418b78a788b6 | [
"Unlicense"
] | null | null | null | Wards/models.py | HabeshaQueen/Awards | 956fad404d9910660266eb8e1819418b78a788b6 | [
"Unlicense"
] | 2 | 2021-03-19T00:53:00.000Z | 2021-06-08T19:56:23.000Z | Wards/models.py | HabeshaQueen/Awards | 956fad404d9910660266eb8e1819418b78a788b6 | [
"Unlicense"
] | null | null | null | from django.shortcuts import render,redirect
from django.db import models
from django.contrib.auth.models import User
import datetime as dt
from django.dispatch import receiver
from django.db.models.signals import post_save
from django.core.validators import MinValueValidator, MaxValueValidator
# Create your models he... | 31.953125 | 79 | 0.731051 | 254 | 2,045 | 5.732283 | 0.362205 | 0.041209 | 0.049451 | 0.065934 | 0.29739 | 0.269918 | 0.269918 | 0 | 0 | 0 | 0 | 0.012903 | 0.166259 | 2,045 | 64 | 80 | 31.953125 | 0.841056 | 0.011736 | 0 | 0.108696 | 0 | 0 | 0.014851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152174 | false | 0 | 0.152174 | 0.043478 | 0.782609 | 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 |
49c2adccabac4cec356edd0418bdcb48f9218ced | 2,708 | py | Python | test/tests/builtins.py | jonco3/dynamic | 76d10b012a7860595c7d9abbdf542c7d8f2a4d53 | [
"MIT"
] | 1 | 2020-11-26T23:37:19.000Z | 2020-11-26T23:37:19.000Z | test/tests/builtins.py | jonco3/dynamic | 76d10b012a7860595c7d9abbdf542c7d8f2a4d53 | [
"MIT"
] | null | null | null | test/tests/builtins.py | jonco3/dynamic | 76d10b012a7860595c7d9abbdf542c7d8f2a4d53 | [
"MIT"
] | null | null | null | # output: ok
assert(max(1, 2, 3) == 3)
assert(max(1, 3, 2) == 3)
assert(max(3, 2, 1) == 3)
assert(min([1]) == 1)
assert(min([1, 2, 3]) == 1)
assert(min([1, 3, 2]) == 1)
assert(min([3, 2, 1]) == 1)
exception = False
try:
min()
except TypeError:
exception = True
assert(exception)
exception = False
try:
max... | 19.482014 | 80 | 0.574225 | 416 | 2,708 | 3.71875 | 0.242788 | 0.014221 | 0.013575 | 0.007757 | 0.254686 | 0.21978 | 0.135747 | 0.113769 | 0.102133 | 0.032321 | 0 | 0.059249 | 0.233383 | 2,708 | 138 | 81 | 19.623188 | 0.685934 | 0.075702 | 0 | 0.288462 | 0 | 0 | 0.02486 | 0 | 0 | 0 | 0 | 0.007246 | 0.403846 | 1 | 0.105769 | false | 0 | 0 | 0.038462 | 0.201923 | 0.009615 | 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 |
49c85bc515ce6ed48242914653959c16d2bb76ea | 3,926 | py | Python | ngxpy/ngxpy.py | 0snug0/ngxpy | 09b94599ed38f362db0263c1260cb477075c714c | [
"Apache-2.0"
] | null | null | null | ngxpy/ngxpy.py | 0snug0/ngxpy | 09b94599ed38f362db0263c1260cb477075c714c | [
"Apache-2.0"
] | null | null | null | ngxpy/ngxpy.py | 0snug0/ngxpy | 09b94599ed38f362db0263c1260cb477075c714c | [
"Apache-2.0"
] | null | null | null | import requests, json, ConfigParser, os
## TODOs
## 1. Add several common ways to add authentication
## * Basic Auth
## * Custom Headers (X-Auth-Key/X-Auth-User)
# Defaults for .ngxpy.ini if parameters missing
safecfg = { 'schema': 'http',
'host': '127.0.0.1',
'port': '8080',
'status': 'status',
'upstr... | 24.848101 | 76 | 0.673204 | 554 | 3,926 | 4.65704 | 0.265343 | 0.040698 | 0.043411 | 0.048837 | 0.240698 | 0.175969 | 0.144186 | 0.11938 | 0.11938 | 0.11938 | 0 | 0.006567 | 0.18543 | 3,926 | 158 | 77 | 24.848101 | 0.800188 | 0.070301 | 0 | 0.25 | 0 | 0 | 0.102236 | 0 | 0 | 0 | 0 | 0.006329 | 0 | 0 | null | null | 0.008929 | 0.008929 | null | null | 0.008929 | 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 |
49d11b9bde8daef5def40d90156124b0863f55d8 | 5,253 | py | Python | Par8/Par8.py | Zhao-Jichao/Python_DL_based_PyTorch | 34a5ba011e56bb6ab1dd19770706e83dd0d1b6ef | [
"MIT"
] | 1 | 2021-11-15T13:29:19.000Z | 2021-11-15T13:29:19.000Z | Par8/Par8.py | Jichao-Zhao/Python_DL_based_PyTorch | 34a5ba011e56bb6ab1dd19770706e83dd0d1b6ef | [
"MIT"
] | null | null | null | Par8/Par8.py | Jichao-Zhao/Python_DL_based_PyTorch | 34a5ba011e56bb6ab1dd19770706e83dd0d1b6ef | [
"MIT"
] | null | null | null | # ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# 程序选择框
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
ParX =('Par8.1.2', 'Par8.1.3', 'Par8.3')
ParX_val = ParX[1]
print("正在运行第 "+ParX_val+" 节程序......")
# ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Pa... | 34.788079 | 94 | 0.505235 | 633 | 5,253 | 4.045814 | 0.341232 | 0.034362 | 0.018743 | 0.02499 | 0.22335 | 0.163217 | 0.163217 | 0.147599 | 0.123389 | 0.075752 | 0 | 0.029716 | 0.282505 | 5,253 | 150 | 95 | 35.02 | 0.649774 | 0.214544 | 0 | 0.163265 | 0 | 0 | 0.044765 | 0.013699 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.102041 | null | null | 0.010204 | 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 |
49d33183411332e7aca86579b39f9d1a335a56b5 | 738 | py | Python | armulator/armv6/opcodes/thumb_instruction_set/thumb_instruction_set_encoding_32_bit/thumb_data_processing_plain_binary_immediate/usat16_t1.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_data_processing_plain_binary_immediate/usat16_t1.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_data_processing_plain_binary_immediate/usat16_t1.py | AhmedMounir/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 4 | 2020-06-18T23:51:03.000Z | 2022-02-09T17:43:13.000Z | from armulator.armv6.opcodes.abstract_opcodes.usat16 import Usat16
from armulator.armv6.opcodes.opcode import Opcode
class Usat16T1(Usat16, Opcode):
def __init__(self, instruction, saturate_to, d, n):
Opcode.__init__(self, instruction)
Usat16.__init__(self, saturate_to, d, n)
def is_pc_changi... | 32.086957 | 94 | 0.640921 | 100 | 738 | 4.49 | 0.47 | 0.111359 | 0.073497 | 0.111359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066547 | 0.246612 | 738 | 22 | 95 | 33.545455 | 0.741007 | 0 | 0 | 0 | 0 | 0 | 0.03523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.055556 | 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 |
49d57f7a5686a1c8ff5b22c95b5766686b1ea483 | 8,030 | py | Python | molecules/models/supervised/layer_output/layer_output.py | yngtodd/molecules-deprecated | adf9477e6122fa4e92cedbbba26a358ea903e3a4 | [
"MIT"
] | null | null | null | molecules/models/supervised/layer_output/layer_output.py | yngtodd/molecules-deprecated | adf9477e6122fa4e92cedbbba26a358ea903e3a4 | [
"MIT"
] | null | null | null | molecules/models/supervised/layer_output/layer_output.py | yngtodd/molecules-deprecated | adf9477e6122fa4e92cedbbba26a358ea903e3a4 | [
"MIT"
] | 1 | 2021-11-19T01:57:35.000Z | 2021-11-19T01:57:35.000Z | #%matplotlib inline
from __future__ import print_function
import numpy as np
import gzip
from six.moves import cPickle
import sys
from keras import backend as K
from keras.utils import np_utils
#import matplotlib.pyplot as plt
from scipy.stats import norm
from keras.layers import Input, Dense, Lambda, Flatten, Re... | 39.752475 | 145 | 0.616189 | 1,129 | 8,030 | 4.178919 | 0.195748 | 0.02819 | 0.030521 | 0.049597 | 0.307122 | 0.256253 | 0.180797 | 0.132471 | 0.071852 | 0.047902 | 0 | 0.022821 | 0.274222 | 8,030 | 201 | 146 | 39.950249 | 0.786719 | 0.157036 | 0 | 0.042017 | 0 | 0 | 0.133945 | 0.024203 | 0 | 0 | 0 | 0.00995 | 0 | 0 | null | null | 0 | 0.134454 | null | null | 0.10084 | 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 |
49d5c4d8f6a0ea51267826fd50fd133ce3b17f9a | 503 | py | Python | setup.py | leonliu/promotion-calc | 7ef84635e847ceba8df11adae650ba0aa49a15ce | [
"MIT"
] | null | null | null | setup.py | leonliu/promotion-calc | 7ef84635e847ceba8df11adae650ba0aa49a15ce | [
"MIT"
] | null | null | null | setup.py | leonliu/promotion-calc | 7ef84635e847ceba8df11adae650ba0aa49a15ce | [
"MIT"
] | null | null | null | import os
import setuptools
setuptools.setup(
name='promotion-calculator',
version='0.0.1',
keywords='promotion calculator',
description='A calculator for promotion strategy of out-of-store food delivery',
long_description=open(
os.path.join(os.path.dirname(__file__), 'README.rst')
).re... | 29.588235 | 84 | 0.691849 | 64 | 503 | 5.328125 | 0.703125 | 0.111437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007109 | 0.161034 | 503 | 17 | 85 | 29.588235 | 0.800948 | 0 | 0 | 0 | 0 | 0 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 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 |
49da11dfcebadd6742e1afa67c585d820ebac8a5 | 378 | py | Python | src/products/pagination.py | ervinpepic/E-commerce | 2c15255d1730728cf35c166b9f88cffcb99f5323 | [
"MIT"
] | 1 | 2019-06-09T12:09:21.000Z | 2019-06-09T12:09:21.000Z | src/products/pagination.py | ervinpepic/E-commerce | 2c15255d1730728cf35c166b9f88cffcb99f5323 | [
"MIT"
] | 7 | 2019-12-19T05:29:16.000Z | 2022-03-11T23:49:05.000Z | src/products/pagination.py | ervinpepic/E-commerce | 2c15255d1730728cf35c166b9f88cffcb99f5323 | [
"MIT"
] | null | null | null | from rest_framework.pagination import LimitOffsetPagination, PageNumberPagination
class ProductPagination(LimitOffsetPagination):
default_limit = 10
max_limit = 500
limit_query_param = "limit"
offset_query_param = "offset"
class CategoryPagination(LimitOffsetPagination):
default_limit = 20
max_limit = 20
... | 21 | 81 | 0.812169 | 41 | 378 | 7.170732 | 0.463415 | 0.136054 | 0.22449 | 0.136054 | 0.285714 | 0.285714 | 0.285714 | 0.285714 | 0 | 0 | 0 | 0.02719 | 0.124339 | 378 | 18 | 82 | 21 | 0.861027 | 0 | 0 | 0.363636 | 0 | 0 | 0.058047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 1 | 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 |
49dbde4f6e98ff7acb650a0aa0855c579bcff260 | 838 | py | Python | drivers/migrations/0004_booking.py | jonnygovish/car-poolers | 7f470e603beacf14cd2eab9e7ccc7428c93ae8f7 | [
"MIT"
] | null | null | null | drivers/migrations/0004_booking.py | jonnygovish/car-poolers | 7f470e603beacf14cd2eab9e7ccc7428c93ae8f7 | [
"MIT"
] | null | null | null | drivers/migrations/0004_booking.py | jonnygovish/car-poolers | 7f470e603beacf14cd2eab9e7ccc7428c93ae8f7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-12-11 15:47
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('rider', '0001_initial'),
('drivers', '0003_driver_p... | 32.230769 | 124 | 0.636038 | 94 | 838 | 5.478723 | 0.606383 | 0.062136 | 0.081553 | 0.128155 | 0.213592 | 0.213592 | 0.213592 | 0.213592 | 0.213592 | 0.213592 | 0 | 0.03864 | 0.227924 | 838 | 25 | 125 | 33.52 | 0.757342 | 0.081146 | 0 | 0 | 1 | 0 | 0.159061 | 0.039113 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 |
49dea2206b5bb17a70d2b50301f709578ea1371f | 1,186 | py | Python | trifinger_simulation/gym_wrapper/data_logger.py | 42jaylonw/rrc_2021_three_wolves | f5b8c1589f14c6b8455f438cbb62ed74e9ad8551 | [
"BSD-3-Clause"
] | 25 | 2020-08-15T12:11:10.000Z | 2022-03-18T12:43:49.000Z | trifinger_simulation/gym_wrapper/data_logger.py | 42jaylonw/rrc_2021_three_wolves | f5b8c1589f14c6b8455f438cbb62ed74e9ad8551 | [
"BSD-3-Clause"
] | 12 | 2020-08-14T09:39:05.000Z | 2021-12-15T16:26:53.000Z | trifinger_simulation/gym_wrapper/data_logger.py | 42jaylonw/rrc_2021_three_wolves | f5b8c1589f14c6b8455f438cbb62ed74e9ad8551 | [
"BSD-3-Clause"
] | 10 | 2020-08-17T12:13:29.000Z | 2022-02-01T18:28:05.000Z | import pickle
class EpisodeData:
"""
The structure in which the data from each episode
will be logged.
"""
def __init__(self, joint_goal, tip_goal):
self.joint_goal = joint_goal
self.tip_goal = tip_goal
self.joint_positions = []
self.tip_positions = []
self... | 26.355556 | 71 | 0.640809 | 151 | 1,186 | 4.754967 | 0.364238 | 0.087744 | 0.061281 | 0.066852 | 0.239554 | 0.111421 | 0.111421 | 0.111421 | 0.111421 | 0 | 0 | 0 | 0.267285 | 1,186 | 44 | 72 | 26.954545 | 0.826237 | 0.142496 | 0 | 0.08 | 0 | 0 | 0.002037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.04 | 0 | 0.36 | 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 |
49e292fc3db8bc5f65b504f1d26e868914e87030 | 897 | py | Python | themachine/workers/github/fetch_repos.py | tiagoad/wth2017 | 252a8335e70a4174afe2bbc4afb918751e715a94 | [
"MIT"
] | null | null | null | themachine/workers/github/fetch_repos.py | tiagoad/wth2017 | 252a8335e70a4174afe2bbc4afb918751e715a94 | [
"MIT"
] | null | null | null | themachine/workers/github/fetch_repos.py | tiagoad/wth2017 | 252a8335e70a4174afe2bbc4afb918751e715a94 | [
"MIT"
] | null | null | null | from themachine.core import consumer, publish
from themachine import log
from themachine import util
from themachine.db.github import Repository
import git
@consumer(topic='github.fetch_repo', name='fetch_repo')
def fetch_repo(data):
"""
Fetches a repository from github into a temporary directory and stores ... | 26.382353 | 78 | 0.71126 | 131 | 897 | 4.763359 | 0.419847 | 0.048077 | 0.064103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204013 | 897 | 33 | 79 | 27.181818 | 0.87395 | 0.354515 | 0 | 0 | 0 | 0 | 0.137931 | 0.038113 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 0 | 0.428571 | 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 |
49eb5e77bd96bd92d19bbc928bbfd247a98bb449 | 321 | py | Python | yandex/yandex_algorithms/2/A.py | andrey19972004/algorithms_structures | 77060790211182cf9d9f9c50682a771ffaee9e96 | [
"MIT"
] | null | null | null | yandex/yandex_algorithms/2/A.py | andrey19972004/algorithms_structures | 77060790211182cf9d9f9c50682a771ffaee9e96 | [
"MIT"
] | null | null | null | yandex/yandex_algorithms/2/A.py | andrey19972004/algorithms_structures | 77060790211182cf9d9f9c50682a771ffaee9e96 | [
"MIT"
] | null | null | null | def is_growth(numbers):
for i in range(1, len(numbers)):
if numbers[i] <= numbers[i - 1]:
return False
return True
def main():
numbers = list(map(int, input().split()))
if is_growth(numbers):
print('YES')
else:
print('NO')
if __name__ == '__main__':
main()... | 17.833333 | 45 | 0.542056 | 42 | 321 | 3.904762 | 0.595238 | 0.097561 | 0.182927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.302181 | 321 | 17 | 46 | 18.882353 | 0.723214 | 0 | 0 | 0 | 0 | 0 | 0.040498 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0 | 0.307692 | 0.153846 | 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 |
49eba00a5dcf795f200bd3c24683a36de82b25d0 | 1,194 | py | Python | DATA2NPY/dicom2npy.py | twni2016/OrganSegRSTN_PyTorch | bf571320e718c8f138e04d48645e3b4dfe75801d | [
"MIT"
] | 100 | 2018-08-01T04:42:36.000Z | 2022-03-23T07:01:21.000Z | DATA2NPY/dicom2npy.py | bharat3012/OrganSegRSTN_PyTorch | aff23489b1f3006761e3270178adfcccb63d0de9 | [
"MIT"
] | 12 | 2018-08-07T10:35:47.000Z | 2022-02-21T09:09:42.000Z | DATA2NPY/dicom2npy.py | bharat3012/OrganSegRSTN_PyTorch | aff23489b1f3006761e3270178adfcccb63d0de9 | [
"MIT"
] | 35 | 2018-08-06T21:27:36.000Z | 2021-11-03T10:20:16.000Z | import numpy as np
import os
import dicom
N = 82
W = 512
H = 512
path1 = 'DOI'
path2 = 'images'
if not os.path.exists(path2):
os.makedirs(path2)
for n in range(N):
volumeID = '{:0>4}'.format(n + 1)
print 'Processing File ' + volumeID
filename1 = 'PANCREAS_' + volumeID
directory1 = os.path.join(pa... | 33.166667 | 97 | 0.551089 | 159 | 1,194 | 4.062893 | 0.465409 | 0.04644 | 0.04644 | 0.06192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048603 | 0.31072 | 1,194 | 35 | 98 | 34.114286 | 0.736331 | 0 | 0 | 0 | 0 | 0 | 0.125733 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.096774 | null | null | 0.096774 | 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 |
49f084f0e5f7303a79b037dbe50cf44b0cf28529 | 2,339 | py | Python | pyclass/week4/exercise_1_and_2.py | jbutler42/pynet_class | 837cd0782213036aaf0985105bdd86b0a1c7b547 | [
"Apache-2.0"
] | null | null | null | pyclass/week4/exercise_1_and_2.py | jbutler42/pynet_class | 837cd0782213036aaf0985105bdd86b0a1c7b547 | [
"Apache-2.0"
] | null | null | null | pyclass/week4/exercise_1_and_2.py | jbutler42/pynet_class | 837cd0782213036aaf0985105bdd86b0a1c7b547 | [
"Apache-2.0"
] | null | null | null | from pyclass.common.entities import entities
from pyclass.week4.shell import shellConnection
from time import sleep
def get_supported_device_types():
types = [
'ios',
'junos',
]
return types
def concrete(dev_type, thing_to_decode, **kwargs):
decoded_things = {}
dev_type = dev_typ... | 24.621053 | 80 | 0.617785 | 288 | 2,339 | 4.791667 | 0.270833 | 0.045652 | 0.069565 | 0.054348 | 0.125362 | 0.118116 | 0.118116 | 0.055072 | 0.055072 | 0 | 0 | 0.005272 | 0.270201 | 2,339 | 94 | 81 | 24.882979 | 0.803163 | 0 | 0 | 0.121622 | 0 | 0 | 0.118427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.040541 | null | null | 0.040541 | 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 |
49f7d4805f6d40b6394c230071fd5bac2a3ca64c | 694 | py | Python | models/apps/game/models.py | metinberkkaratas/ProjectMagic-MightofHeroes | 578697e637aba0f18b4f83762bf1c87fb20db2ee | [
"MIT"
] | null | null | null | models/apps/game/models.py | metinberkkaratas/ProjectMagic-MightofHeroes | 578697e637aba0f18b4f83762bf1c87fb20db2ee | [
"MIT"
] | 4 | 2021-03-19T02:37:45.000Z | 2022-02-10T11:18:04.000Z | models/apps/game/models.py | metinberkkaratas/ProjectMagic-MightofHeroes | 578697e637aba0f18b4f83762bf1c87fb20db2ee | [
"MIT"
] | 1 | 2019-10-21T20:32:20.000Z | 2019-10-21T20:32:20.000Z | from django.db import models
from apps.game.map.models import Map
from apps.game.chat.models import ChatMessage
from apps.game.resources.models import Resources
class Game(models.Model):
VICTORY_CHOICES = (
('SCORE', 'Score'),
('WONDER', 'Wonder'),
('DOMINATION', 'Domination')
)
nu... | 36.526316 | 80 | 0.731988 | 84 | 694 | 5.940476 | 0.452381 | 0.048096 | 0.072144 | 0.126253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006826 | 0.15562 | 694 | 18 | 81 | 38.555556 | 0.84471 | 0 | 0 | 0 | 0 | 0 | 0.060519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 |
b701725dd1743c3e3d6b17aed764a06be2ad0f5b | 2,968 | py | Python | libgraph/bfs.py | panyam/libgraph | 566d25f08728f2c94335345c739f4cf985787b0d | [
"Apache-2.0"
] | null | null | null | libgraph/bfs.py | panyam/libgraph | 566d25f08728f2c94335345c739f4cf985787b0d | [
"Apache-2.0"
] | null | null | null | libgraph/bfs.py | panyam/libgraph | 566d25f08728f2c94335345c739f4cf985787b0d | [
"Apache-2.0"
] | null | null | null |
import itertools
from collections import deque, defaultdict
DISCOVERED = 0
PROCESSED = 1
class Traversal(object):
"""
A class that provides delegate methods to assist in graph traversal.
"""
def __init__(self, graph):
self.graph = graph
# The parent nodes for each of the nodes
... | 37.1 | 111 | 0.659704 | 400 | 2,968 | 4.8125 | 0.3225 | 0.015584 | 0.026494 | 0.018701 | 0.06961 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001862 | 0.27628 | 2,968 | 79 | 112 | 37.56962 | 0.89432 | 0.510445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.066667 | 0.133333 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
b70343b51c963ef92a665c8d1874eec8ad5e74f5 | 2,091 | py | Python | api/migrations/0003_auto_20210722_1829.py | msoedov/dpu-srv | 151ff4487fab7690a736bfd7f6dfa3782c8f3ac2 | [
"MIT"
] | null | null | null | api/migrations/0003_auto_20210722_1829.py | msoedov/dpu-srv | 151ff4487fab7690a736bfd7f6dfa3782c8f3ac2 | [
"MIT"
] | null | null | null | api/migrations/0003_auto_20210722_1829.py | msoedov/dpu-srv | 151ff4487fab7690a736bfd7f6dfa3782c8f3ac2 | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2021-07-22 18:29
import api.models
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("api", "0002_auto_20210721_1654"),
]
operations = [
migrations.AddField(
model_n... | 29.871429 | 88 | 0.446676 | 161 | 2,091 | 5.664596 | 0.409938 | 0.035088 | 0.100877 | 0.114035 | 0.470395 | 0.470395 | 0.404605 | 0.404605 | 0.404605 | 0.404605 | 0 | 0.030461 | 0.450502 | 2,091 | 69 | 89 | 30.304348 | 0.763272 | 0.020564 | 0 | 0.571429 | 1 | 0 | 0.075269 | 0.011241 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.095238 | 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 |
b70d8b889ca9c132874aabeb681b56ad8f10ad6b | 8,296 | py | Python | karesansui/gadget/guestby1graphics.py | Kairiw/karesansui | d5a3acfe40b3953fb4f8d6f51e30d0307309a6ee | [
"MIT"
] | 54 | 2015-01-09T16:49:34.000Z | 2022-02-03T10:08:30.000Z | karesansui/gadget/guestby1graphics.py | Kairiw/karesansui | d5a3acfe40b3953fb4f8d6f51e30d0307309a6ee | [
"MIT"
] | 2 | 2016-02-22T08:23:36.000Z | 2021-05-10T04:13:01.000Z | karesansui/gadget/guestby1graphics.py | Kairiw/karesansui | d5a3acfe40b3953fb4f8d6f51e30d0307309a6ee | [
"MIT"
] | 27 | 2015-08-21T13:33:49.000Z | 2021-11-19T02:56:20.000Z | # -*- coding: utf-8 -*-
#
# This file is part of Karesansui.
#
# Copyright (C) 2009-2012 HDE, Inc.
#
# 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 lim... | 35.758621 | 128 | 0.592936 | 953 | 8,296 | 4.997901 | 0.26128 | 0.025194 | 0.022045 | 0.020155 | 0.276506 | 0.229687 | 0.198614 | 0.183918 | 0.168801 | 0.114634 | 0 | 0.007476 | 0.306654 | 8,296 | 231 | 129 | 35.91342 | 0.820584 | 0.146215 | 0 | 0.286624 | 0 | 0 | 0.1011 | 0.009853 | 0 | 0 | 0 | 0.004329 | 0 | 1 | 0.019108 | false | 0.070064 | 0.082803 | 0 | 0.140127 | 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 |
b7199987a626ff88a5caa72e9b55e6cf7d614f5e | 2,389 | py | Python | src/LG.py | yingcuhk/Distributed-and-Asynchronos-SGD | f45758082d1d8e0908c9f1978a7ee607a861c21e | [
"MIT"
] | 3 | 2017-06-16T05:50:56.000Z | 2020-06-07T11:04:49.000Z | src/LG.py | yingcuhk/Distributed-and-Asynchronos-SGD | f45758082d1d8e0908c9f1978a7ee607a861c21e | [
"MIT"
] | null | null | null | src/LG.py | yingcuhk/Distributed-and-Asynchronos-SGD | f45758082d1d8e0908c9f1978a7ee607a861c21e | [
"MIT"
] | 1 | 2020-02-13T22:47:38.000Z | 2020-02-13T22:47:38.000Z | mport gzip
import os
import sys
import numpy as np
import cPickle
import tensorflow as tf
class LogisticRegression(object):
def __init__(self):
self.X = tf.placeholder("float", [None, 784])
self.Y = tf.placeholder("float", [None, 10])
self.W = tf.Variable(tf.random_normal([28 * 28, 1... | 31.434211 | 125 | 0.627459 | 354 | 2,389 | 4.008475 | 0.370057 | 0.02537 | 0.027484 | 0.033827 | 0.117689 | 0.117689 | 0.043693 | 0 | 0 | 0 | 0 | 0.020636 | 0.249477 | 2,389 | 75 | 126 | 31.853333 | 0.770775 | 0 | 0 | 0 | 0 | 0 | 0.008815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.116279 | null | null | 0.023256 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.