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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2ae52fbd9d7c71404406ea56b06dc82802677412 | 6,415 | py | Python | PercentFallowInAnnualAec/src/generate_dynamic_aecs.py | bryanrcarlson/AgroecosystemClasses | 062c9f3ac64e12d4c72bc4c261e895113f04918d | [
"CC0-1.0"
] | null | null | null | PercentFallowInAnnualAec/src/generate_dynamic_aecs.py | bryanrcarlson/AgroecosystemClasses | 062c9f3ac64e12d4c72bc4c261e895113f04918d | [
"CC0-1.0"
] | null | null | null | PercentFallowInAnnualAec/src/generate_dynamic_aecs.py | bryanrcarlson/AgroecosystemClasses | 062c9f3ac64e12d4c72bc4c261e895113f04918d | [
"CC0-1.0"
] | null | null | null | #%%
import arcpy
from arcpy import env
from arcpy.sa import *
import os.path
import glob
import pathlib
import shutil
def create_majority_raster(
aecs,
aecPaths,
outputDirWorking):
print("Creating majority raster...")
print("... running cell statistics on {} rasters".format(len(aecs)))
maj... | 28.259912 | 128 | 0.682463 | 638 | 6,415 | 6.700627 | 0.289969 | 0.016842 | 0.025731 | 0.024327 | 0.330292 | 0.24117 | 0.170994 | 0.060819 | 0.019181 | 0.019181 | 0 | 0.00658 | 0.218239 | 6,415 | 227 | 129 | 28.259912 | 0.845862 | 0.089166 | 0 | 0.245283 | 0 | 0 | 0.137393 | 0.027616 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.056604 | null | null | 0.081761 | 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 |
2ae650f552f5e214155e01157398b6d67efdd3ea | 667 | py | Python | coremltools/converters/keras/__init__.py | LaudateCorpus1/coremltools | 777a4460d6823e5e91dea4fa3eacb0b11c7d5dfc | [
"BSD-3-Clause"
] | 11,356 | 2017-12-08T19:42:32.000Z | 2022-03-31T16:55:25.000Z | coremltools/converters/keras/__init__.py | holzschu/coremltools | 5ece9069a1487d5083f00f56afe07832d88e3dfa | [
"BSD-3-Clause"
] | 2,402 | 2017-12-08T22:31:01.000Z | 2022-03-28T19:25:52.000Z | coremltools/converters/keras/__init__.py | holzschu/coremltools | 5ece9069a1487d5083f00f56afe07832d88e3dfa | [
"BSD-3-Clause"
] | 1,343 | 2017-12-08T19:47:19.000Z | 2022-03-26T11:31:36.000Z | # Copyright (c) 2017, Apple Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-3-clause license that can be
# found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
from ..._deps import _HAS_KERAS_TF
from ..._deps import _HAS_KERAS2_TF
if _HAS_KERAS_TF or _HAS_KERAS2_... | 33.35 | 95 | 0.712144 | 100 | 667 | 4.49 | 0.59 | 0.053452 | 0.066815 | 0.075724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017274 | 0.218891 | 667 | 19 | 96 | 35.105263 | 0.84453 | 0.308846 | 0 | 0 | 0 | 0 | 0.199561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 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 |
2af24cde5444f14f5b9cd1bea340c484dc01b65d | 2,334 | py | Python | main.py | elsa9421/Project_504_CycleGAN_Sara_Elsa | ecdc9735e426992056c70e78f3143bb6d538e48c | [
"MIT"
] | 107 | 2018-11-16T14:31:43.000Z | 2022-03-21T12:17:36.000Z | main.py | elsa9421/Project_504_CycleGAN_Sara_Elsa | ecdc9735e426992056c70e78f3143bb6d538e48c | [
"MIT"
] | 10 | 2019-02-12T20:13:30.000Z | 2021-02-17T11:05:17.000Z | main.py | elsa9421/Project_504_CycleGAN_Sara_Elsa | ecdc9735e426992056c70e78f3143bb6d538e48c | [
"MIT"
] | 46 | 2018-11-18T17:59:40.000Z | 2022-03-25T01:24:21.000Z | import os
from argparse import ArgumentParser
import model as md
from utils import create_link
import test as tst
# To get arguments from commandline
def get_args():
parser = ArgumentParser(description='cycleGAN PyTorch')
parser.add_argument('--epochs', type=int, default=200)
parser.add_argument('--decay_... | 39.559322 | 117 | 0.699657 | 326 | 2,334 | 4.822086 | 0.325153 | 0.125954 | 0.237913 | 0.032443 | 0.212468 | 0.212468 | 0.184478 | 0.050891 | 0 | 0 | 0 | 0.018045 | 0.145244 | 2,334 | 59 | 118 | 39.559322 | 0.769925 | 0.014139 | 0 | 0 | 0 | 0 | 0.22 | 0.020435 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.1 | 0 | 0.16 | 0.06 | 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 |
2af6ab651b11d65aeb93839726171f4029c7bf5b | 357 | py | Python | app/core/migrations/0005_rename_time_minuts_recipe_time_minutes.py | Adamakk10/recepie-app-api | f0a989e571e8e9de8eed81768be3c11bff949832 | [
"MIT"
] | null | null | null | app/core/migrations/0005_rename_time_minuts_recipe_time_minutes.py | Adamakk10/recepie-app-api | f0a989e571e8e9de8eed81768be3c11bff949832 | [
"MIT"
] | null | null | null | app/core/migrations/0005_rename_time_minuts_recipe_time_minutes.py | Adamakk10/recepie-app-api | f0a989e571e8e9de8eed81768be3c11bff949832 | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-05-06 08:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0004_recipe'),
]
operations = [
migrations.RenameField(
model_name='recipe',
old_name='time_minuts',
new_n... | 18.789474 | 45 | 0.579832 | 38 | 357 | 5.289474 | 0.789474 | 0.079602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072874 | 0.308123 | 357 | 18 | 46 | 19.833333 | 0.740891 | 0.120448 | 0 | 0 | 1 | 0 | 0.141026 | 0 | 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 |
6301be26c61aa06c4ab820785e62ad82bcabd213 | 1,058 | py | Python | deeds/schema.py | kingsdigitallab/ec-django | bc3c37d73e2e8705c6e618e8decbcafaa4dcfe15 | [
"MIT"
] | null | null | null | deeds/schema.py | kingsdigitallab/ec-django | bc3c37d73e2e8705c6e618e8decbcafaa4dcfe15 | [
"MIT"
] | null | null | null | deeds/schema.py | kingsdigitallab/ec-django | bc3c37d73e2e8705c6e618e8decbcafaa4dcfe15 | [
"MIT"
] | null | null | null | from deeds.models import Origin, Person
from geonames_place.models import Place
from graphene import ObjectType, relay
from graphene_django import DjangoObjectType
from graphene_django.filter import DjangoFilterConnectionField
class OriginNode(DjangoObjectType):
class Meta:
model = Origin
filter_f... | 27.842105 | 67 | 0.713611 | 105 | 1,058 | 7.07619 | 0.361905 | 0.072678 | 0.100942 | 0.121131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196597 | 1,058 | 37 | 68 | 28.594595 | 0.874118 | 0 | 0 | 0.222222 | 0 | 0 | 0.058601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.185185 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6305c8f102ae24a472e49dd31955547004f078a9 | 4,077 | py | Python | sevenseconds/config/kms.py | jonathanbeber/sevenseconds | a8ba8f5fc5f7e658a928f807ab7905b56498f12e | [
"Apache-2.0"
] | null | null | null | sevenseconds/config/kms.py | jonathanbeber/sevenseconds | a8ba8f5fc5f7e658a928f807ab7905b56498f12e | [
"Apache-2.0"
] | null | null | null | sevenseconds/config/kms.py | jonathanbeber/sevenseconds | a8ba8f5fc5f7e658a928f807ab7905b56498f12e | [
"Apache-2.0"
] | null | null | null | from ..helper import ActionOnExit
from botocore.exceptions import ClientError
import json
# TODO:support reverting Drop:true operation by either cancelling deletion or recreating the keys
def configure_kms_keys(account: object, region):
keys_config = account.config.get('kms', {})
kms_client = account.session.... | 46.329545 | 106 | 0.535197 | 384 | 4,077 | 5.481771 | 0.28125 | 0.064608 | 0.066508 | 0.07791 | 0.241805 | 0.241805 | 0.171972 | 0.114014 | 0.059857 | 0 | 0 | 0.005068 | 0.370861 | 4,077 | 87 | 107 | 46.862069 | 0.815595 | 0.023301 | 0 | 0.158537 | 0 | 0 | 0.183668 | 0 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.02439 | false | 0.02439 | 0.036585 | 0 | 0.097561 | 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 |
6310d0916cf16b3c4d112d1808d3ef91446572ed | 6,088 | py | Python | Views/ui_dialog_cbind.py | bibsian/lter | 5e5ac08b62e031ddabad490cc59db4a945ea20f6 | [
"MIT"
] | 5 | 2016-05-02T22:56:01.000Z | 2016-08-18T23:03:05.000Z | Views/ui_dialog_cbind.py | bibsian/lter | 5e5ac08b62e031ddabad490cc59db4a945ea20f6 | [
"MIT"
] | 11 | 2016-08-03T20:39:42.000Z | 2016-10-18T22:03:38.000Z | Views/ui_dialog_cbind.py | bibsian/database-development | 5e5ac08b62e031ddabad490cc59db4a945ea20f6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/Users/bibsian/Desktop/git/database-development/Views/ui_dialog_cbind.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.Q... | 41.69863 | 127 | 0.69366 | 661 | 6,088 | 6.288956 | 0.223903 | 0.110657 | 0.035362 | 0.026943 | 0.226846 | 0.129901 | 0.102959 | 0.102959 | 0.102959 | 0.102959 | 0 | 0.025871 | 0.174606 | 6,088 | 145 | 128 | 41.986207 | 0.801393 | 0.039915 | 0 | 0.19084 | 1 | 0 | 0.185541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038168 | false | 0 | 0.007634 | 0.022901 | 0.076336 | 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 |
63138c6fcfae7cf1dcb62b886316cc000935218a | 1,202 | py | Python | app/ctrls/login.py | niyoufa/tnd_bsp | a5d44b2c1cbebbb5c5849933235809d515bd1ef8 | [
"BSD-3-Clause"
] | null | null | null | app/ctrls/login.py | niyoufa/tnd_bsp | a5d44b2c1cbebbb5c5849933235809d515bd1ef8 | [
"BSD-3-Clause"
] | null | null | null | app/ctrls/login.py | niyoufa/tnd_bsp | a5d44b2c1cbebbb5c5849933235809d515bd1ef8 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: UTF-8 -*-
from basic import BasicCtrl
import pdb
class LoginCtrl(BasicCtrl):
def get(self):
self.render('login.html', next = self.input('next', '/shell'))
def post(self):
pdb.set_trace()
if not self.human_valid():
self.flash(0, {'msg': '验证码错误'})
r... | 29.317073 | 112 | 0.520799 | 133 | 1,202 | 4.62406 | 0.496241 | 0.073171 | 0.04878 | 0.063415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009938 | 0.330283 | 1,202 | 40 | 113 | 30.05 | 0.754037 | 0.017471 | 0 | 0.103448 | 0 | 0 | 0.122986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.103448 | 0.068966 | 0 | 0.275862 | 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 |
63142930e6bbaccf919768fa8bc7bd3a713565f9 | 1,616 | py | Python | mp_scripts/arming2_sendrc.py | slm-sum/droneschool | d2d086f12162ae2c2ddeadaa55fbea45c5138a05 | [
"MIT"
] | 4 | 2019-12-07T07:18:56.000Z | 2022-02-18T06:09:42.000Z | mp_scripts/arming2_sendrc.py | slm-sum/droneschool | d2d086f12162ae2c2ddeadaa55fbea45c5138a05 | [
"MIT"
] | null | null | null | mp_scripts/arming2_sendrc.py | slm-sum/droneschool | d2d086f12162ae2c2ddeadaa55fbea45c5138a05 | [
"MIT"
] | 10 | 2019-11-23T11:00:20.000Z | 2022-01-15T04:46:03.000Z | # -*- ecoding: utf-8 -*-
####################################################
# サンプルコード
# スティックアーミング~離陸~着陸をスクリプトで実装
####################################################
print('Start Script')
# 1~9チャンネルをニュートラルに
for chan in range(1,9):
Script.SendRC(chan,1500,False)
# スロットルをローに設定
Script.SendRC(3,Script.... | 22.136986 | 53 | 0.654084 | 199 | 1,616 | 5.306533 | 0.371859 | 0.193182 | 0.086174 | 0.048295 | 0.217803 | 0.176136 | 0.176136 | 0.176136 | 0.107955 | 0 | 0 | 0.096798 | 0.149752 | 1,616 | 73 | 54 | 22.136986 | 0.671761 | 0.227104 | 0 | 0.3 | 0 | 0 | 0.101905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.15 | 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 |
631a762ab39ef41070a9aa8c7390e96219b7ab72 | 1,070 | py | Python | General_Sorting/mergesort.py | 1170300802/Advanced_Algorithms | c1e1563995cb91f02e5f54726a63c29c538c60f5 | [
"ISC"
] | 87 | 2016-08-09T12:01:34.000Z | 2020-08-02T04:01:58.000Z | General_Sorting/mergesort.py | 1170300802/Advanced_Algorithms | c1e1563995cb91f02e5f54726a63c29c538c60f5 | [
"ISC"
] | 3 | 2016-08-09T14:22:34.000Z | 2019-08-01T07:31:22.000Z | General_Sorting/mergesort.py | 1170300802/Advanced_Algorithms | c1e1563995cb91f02e5f54726a63c29c538c60f5 | [
"ISC"
] | 12 | 2016-08-09T12:48:48.000Z | 2019-07-26T15:02:22.000Z | #!/usr/bin/python2
# -*- coding: utf-8 -*-
"""
Mergesort. Not much to explain here...
"""
__author__ = "Maurice Tollmien"
__maintainer__ = "Maurice Tollmien"
__email__ = "maurice.tollmien@gmail.com"
import random
import time
def merge (l1, l2):
i = 0
j = 0
newList = []
while i < len(l1) and j < len(l2... | 18.448276 | 41 | 0.553271 | 140 | 1,070 | 4.085714 | 0.392857 | 0.090909 | 0.031469 | 0.038462 | 0.185315 | 0.132867 | 0.132867 | 0 | 0 | 0 | 0 | 0.042895 | 0.302804 | 1,070 | 57 | 42 | 18.77193 | 0.723861 | 0.101869 | 0 | 0.228571 | 0 | 0 | 0.072607 | 0.028603 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057143 | null | null | 0.028571 | 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 |
631cdd1252ae810b493a131a0a61772450214f3b | 1,023 | py | Python | src/hyperloop/Python/tests/test_pod_mach.py | jcchin/Hyperloop_v2 | 73861d2207af8738425c1d484909ed0433b9653f | [
"Apache-2.0"
] | 1 | 2021-04-29T00:23:03.000Z | 2021-04-29T00:23:03.000Z | src/hyperloop/Python/tests/test_pod_mach.py | jcchin/Hyperloop_v2 | 73861d2207af8738425c1d484909ed0433b9653f | [
"Apache-2.0"
] | 9 | 2016-11-23T09:10:34.000Z | 2016-12-06T01:10:09.000Z | src/hyperloop/Python/tests/test_pod_mach.py | jcchin/Hyperloop_v2 | 73861d2207af8738425c1d484909ed0433b9653f | [
"Apache-2.0"
] | 11 | 2016-01-19T20:26:35.000Z | 2021-02-13T11:16:20.000Z | import numpy as np
from openmdao.api import Group, Problem
from hyperloop.Python.pod import pod_mach
def create_problem(component):
root = Group()
prob = Problem(root)
prob.root.add('comp', component)
return prob
class TestPodMach(object):
def test_case1_vs_npss(self):
component = pod_m... | 24.95122 | 68 | 0.568915 | 150 | 1,023 | 3.78 | 0.486667 | 0.22575 | 0.079365 | 0.035273 | 0.081129 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087131 | 0.270772 | 1,023 | 40 | 69 | 25.575 | 0.672922 | 0 | 0 | 0 | 0 | 0 | 0.14956 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.1 | 0 | 0.233333 | 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 |
6322086ab5488ec06cb77cfc0a70d908283fa9c8 | 641 | py | Python | module/link_list_node.py | qimanchen/Algorithm_Python | 72eabb5fcc9fafb17172879c1250d3c9553e583d | [
"Apache-2.0"
] | null | null | null | module/link_list_node.py | qimanchen/Algorithm_Python | 72eabb5fcc9fafb17172879c1250d3c9553e583d | [
"Apache-2.0"
] | null | null | null | module/link_list_node.py | qimanchen/Algorithm_Python | 72eabb5fcc9fafb17172879c1250d3c9553e583d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
class LNode(object):
"""
单链表节点类
使用:
node_object = LNode(elem, next_)
elem: 该节点的值
next_: 该节点的下一节点,默认为None
"""
def __init__(self, elem, next_=None):
self.elem = elem
self.next = next_
class LinkedListUnderflow(ValueError):
"""
链表的异常定制类
"""
... | 16.868421 | 50 | 0.642746 | 79 | 641 | 4.873418 | 0.417722 | 0.083117 | 0.093506 | 0.077922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00396 | 0.212168 | 641 | 38 | 51 | 16.868421 | 0.758416 | 0.550702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.1 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
63283de594d772e5212f9a59fe5ecc4127b4310d | 3,772 | py | Python | fullcyclepy/backend/when_restart.py | dfoderick/fullcyclemining | b53a35b1b051db27d947f2768c96712ad01f2328 | [
"MIT"
] | 26 | 2018-05-01T15:25:09.000Z | 2021-12-16T20:48:19.000Z | fullcyclepy/backend/when_restart.py | dfoderick/fullcyclemining | b53a35b1b051db27d947f2768c96712ad01f2328 | [
"MIT"
] | 13 | 2018-04-23T13:45:31.000Z | 2018-12-20T16:13:06.000Z | fullcyclepy/backend/when_restart.py | dfoderick/fullcyclemining | b53a35b1b051db27d947f2768c96712ad01f2328 | [
"MIT"
] | 12 | 2018-05-01T20:34:05.000Z | 2021-12-16T20:48:20.000Z | '''
#listens for restart command
'''
import datetime
import json
from threading import Thread
from queue import Queue
from colorama import Fore
from helpers import antminerhelper
from helpers.queuehelper import QueueName
from domain.mining import MinerCommand
from domain.logging import MinerLog
import backend.fcmutils ... | 46 | 150 | 0.721898 | 417 | 3,772 | 6.472422 | 0.386091 | 0.15339 | 0.023342 | 0.047795 | 0.19674 | 0.152649 | 0.110411 | 0.076325 | 0.076325 | 0.076325 | 0 | 0.001945 | 0.182132 | 3,772 | 81 | 151 | 46.567901 | 0.872934 | 0.236479 | 0 | 0.035714 | 0 | 0 | 0.041418 | 0 | 0 | 0 | 0 | 0.012346 | 0 | 1 | 0.089286 | false | 0 | 0.196429 | 0 | 0.303571 | 0.035714 | 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 |
632e77a655b4425cf9a7ff3029864fe0ea70b4cd | 5,765 | py | Python | chb/app/BDictionary.py | kestreltechnology/CodeHawk-Binary | aa0b2534e0318e5fb3770ec7b4d78feb0feb2394 | [
"MIT"
] | null | null | null | chb/app/BDictionary.py | kestreltechnology/CodeHawk-Binary | aa0b2534e0318e5fb3770ec7b4d78feb0feb2394 | [
"MIT"
] | null | null | null | chb/app/BDictionary.py | kestreltechnology/CodeHawk-Binary | aa0b2534e0318e5fb3770ec7b4d78feb0feb2394 | [
"MIT"
] | null | null | null | # ------------------------------------------------------------------------------
# CodeHawk Binary Analyzer
# Author: Henny Sipma
# ------------------------------------------------------------------------------
# The MIT License (MIT)
#
# Copyright (c) 2016-2020 Kestrel Technology LLC
# Copyright (c) 2020 Henny Si... | 37.927632 | 80 | 0.639896 | 655 | 5,765 | 5.500763 | 0.305344 | 0.049958 | 0.083264 | 0.05995 | 0.188177 | 0.169858 | 0.157369 | 0.08937 | 0.08937 | 0.068276 | 0 | 0.005342 | 0.220642 | 5,765 | 151 | 81 | 38.178808 | 0.796572 | 0.298179 | 0 | 0.054945 | 0 | 0 | 0.067082 | 0.027681 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.010989 | 0.10989 | 0.10989 | 0.395604 | 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 |
63329e60f95b113de936cfb1df7dddcb0215b64e | 1,836 | py | Python | isles/api/lighthouseTracking.py | michael-ranieri/Misty | d2ed038e20ea7753401eea0c8d60bfa75f0b5a65 | [
"MIT"
] | 1 | 2017-02-13T13:22:40.000Z | 2017-02-13T13:22:40.000Z | isles/api/lighthouseTracking.py | michael-ranieri/Misty | d2ed038e20ea7753401eea0c8d60bfa75f0b5a65 | [
"MIT"
] | null | null | null | isles/api/lighthouseTracking.py | michael-ranieri/Misty | d2ed038e20ea7753401eea0c8d60bfa75f0b5a65 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Copyright (C) 2011 Michael Ranieri <michael.d.ranieri at gmail.com>
# System imports
import urllib2
import json
import sys
import re
from xml.dom import minidom
# Misty imports
import settings_local as settings
def main(params):
msg, user, channel, users = params
searchTerm... | 29.142857 | 99 | 0.582244 | 203 | 1,836 | 5.197044 | 0.46798 | 0.030332 | 0.056872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016845 | 0.288671 | 1,836 | 63 | 100 | 29.142857 | 0.790965 | 0.063725 | 0 | 0 | 0 | 0 | 0.11014 | 0.023893 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0.025641 | 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 |
2d47085b794898a4f4b1d962a2e5476734a64f9e | 2,768 | py | Python | latentgan/visualize_generation.py | AdamWang00/pointnet.pytorch | b92c3916cf9f84c35861790e8d9cdc6170a9afd5 | [
"MIT"
] | null | null | null | latentgan/visualize_generation.py | AdamWang00/pointnet.pytorch | b92c3916cf9f84c35861790e8d9cdc6170a9afd5 | [
"MIT"
] | null | null | null | latentgan/visualize_generation.py | AdamWang00/pointnet.pytorch | b92c3916cf9f84c35861790e8d9cdc6170a9afd5 | [
"MIT"
] | null | null | null | import trimesh
from pyrender import Mesh, Node, Scene, Viewer, PerspectiveCamera
import numpy as np
import json
import os
from latentgan.config import *
NUM_GENERATIONS = 8
OFFSET = 0
viewport_w = 900
viewport_h = 900
def get_trimesh_and_uv(scene_or_mesh):
if isinstance(scene_or_mesh, trimesh.Scene):
mes... | 35.037975 | 139 | 0.634393 | 388 | 2,768 | 4.283505 | 0.31701 | 0.028881 | 0.036101 | 0.038508 | 0.126955 | 0.054152 | 0.054152 | 0.054152 | 0.016847 | 0.016847 | 0 | 0.029923 | 0.251445 | 2,768 | 79 | 140 | 35.037975 | 0.772201 | 0.053468 | 0 | 0 | 0 | 0 | 0.025258 | 0 | 0 | 0 | 0 | 0.012658 | 0.033333 | 1 | 0.016667 | false | 0 | 0.1 | 0 | 0.133333 | 0.033333 | 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 |
2d4b5157547b93bed4df662f96fc7c7644f19ac5 | 754 | py | Python | bin/coverage_estimator.py | brianlee99/UVP | 5b7ff26c09d84760d4220268f34fb4814848eb4a | [
"MIT"
] | null | null | null | bin/coverage_estimator.py | brianlee99/UVP | 5b7ff26c09d84760d4220268f34fb4814848eb4a | [
"MIT"
] | null | null | null | bin/coverage_estimator.py | brianlee99/UVP | 5b7ff26c09d84760d4220268f34fb4814848eb4a | [
"MIT"
] | null | null | null | #! /usr/bin/python
import sys
""" This reads the output file from samtools depth command """
""" and iterates over all the base position to calculate """
""" the average coverage depth and width """
"""
Author: Matthew Ezewudo
CPTR ReSeqTB Project - Critical Path Institute
"""
input1 = sys.argv[1]
depth = 0
coun... | 23.5625 | 63 | 0.693634 | 115 | 754 | 4.478261 | 0.652174 | 0.054369 | 0.038835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046105 | 0.165782 | 754 | 31 | 64 | 24.322581 | 0.772655 | 0.022546 | 0 | 0 | 0 | 0 | 0.267347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.1875 | 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 |
2d52abf4c19fae9c6e75bb8697ff28bc3ba27a78 | 684 | py | Python | code/Chapter2_upper_lower.py | mrsyi/Learn_python | 1bf4b60a312062dd8f41fa6f4c5c525b99569036 | [
"MIT"
] | 1 | 2019-02-11T10:08:33.000Z | 2019-02-11T10:08:33.000Z | code/Chapter2_upper_lower.py | mrsyi/Learn_python | 1bf4b60a312062dd8f41fa6f4c5c525b99569036 | [
"MIT"
] | null | null | null | code/Chapter2_upper_lower.py | mrsyi/Learn_python | 1bf4b60a312062dd8f41fa6f4c5c525b99569036 | [
"MIT"
] | null | null | null | #Chapter-3_upper_lower.py
first_name = "Karry";
last_name = "Yee"
full_name = first_name + " " + last_name;
"""
print(full_name.upper());
print(full_name.lower());
print(full_name.title());
"""
celebrated_dictum = '"A person who never made a mistake never tried anything new."';
famous_person = "\tAlbert Einstein\n";
p... | 32.571429 | 84 | 0.70614 | 94 | 684 | 4.925532 | 0.404255 | 0.172786 | 0.103672 | 0.155508 | 0.149028 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001647 | 0.112573 | 684 | 20 | 85 | 34.2 | 0.76112 | 0.092105 | 0 | 0.25 | 0 | 0 | 0.262172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.583333 | 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 |
2d53566b3e9ca1e126b8a27a3d263095943b138e | 435 | py | Python | eva/utils/time.py | taehyun-h/eva_server | 6976f77cc8ca21c731adc8d77e0cdafc9c4c4d82 | [
"MIT"
] | null | null | null | eva/utils/time.py | taehyun-h/eva_server | 6976f77cc8ca21c731adc8d77e0cdafc9c4c4d82 | [
"MIT"
] | null | null | null | eva/utils/time.py | taehyun-h/eva_server | 6976f77cc8ca21c731adc8d77e0cdafc9c4c4d82 | [
"MIT"
] | null | null | null | from datetime import datetime
import time
def get_current_time():
return int(time.time())
def is_today_milliseconds(timestamp):
timestamp = int(timestamp / 1000)
return is_today(timestamp)
def is_today(timestamp):
today = datetime.now()
dt_object = datetime.fromtimestamp(timestamp)
return ... | 21.75 | 49 | 0.703448 | 57 | 435 | 5.192982 | 0.385965 | 0.108108 | 0.067568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0.2 | 435 | 19 | 50 | 22.894737 | 0.83908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0.076923 | 0.615385 | 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 |
2d5a8ddc38ad486882ad329d405b762f680b4529 | 315 | py | Python | samples/spawn_testnodes.py | contractvm/libcontractvm | d2b2e642bb8840dcac7bed9690eed17a9a561b73 | [
"MIT"
] | null | null | null | samples/spawn_testnodes.py | contractvm/libcontractvm | d2b2e642bb8840dcac7bed9690eed17a9a561b73 | [
"MIT"
] | 5 | 2015-11-18T09:18:24.000Z | 2016-03-23T14:01:12.000Z | samples/spawn_testnodes.py | contractvm/libcontractvm | d2b2e642bb8840dcac7bed9690eed17a9a561b73 | [
"MIT"
] | null | null | null | # Copyright (c) 2015 Davide Gessa
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
import time
import cvmutils
if __name__ == "__main__":
cvmutils.spawn (3)
while True:
time.sleep (5)
sys.exit ()
| 22.5 | 69 | 0.685714 | 42 | 315 | 4.952381 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024292 | 0.215873 | 315 | 13 | 70 | 24.230769 | 0.817814 | 0.520635 | 0 | 0 | 0 | 0 | 0.054422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 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 |
2d5f37bdef9ae308cd254c019bdbe36b09090d4c | 1,774 | py | Python | eggs/ZODB-4.1.0-py2.7.egg/ZODB/tests/test_doctest_files.py | salayhin/talkofacta | 8b5a14245dd467bb1fda75423074c4840bd69fb7 | [
"MIT"
] | null | null | null | eggs/ZODB-4.1.0-py2.7.egg/ZODB/tests/test_doctest_files.py | salayhin/talkofacta | 8b5a14245dd467bb1fda75423074c4840bd69fb7 | [
"MIT"
] | null | null | null | eggs/ZODB-4.1.0-py2.7.egg/ZODB/tests/test_doctest_files.py | salayhin/talkofacta | 8b5a14245dd467bb1fda75423074c4840bd69fb7 | [
"MIT"
] | null | null | null | ##############################################################################
#
# Copyright (c) 2004 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | 33.471698 | 78 | 0.560879 | 195 | 1,774 | 5.020513 | 0.558974 | 0.036772 | 0.039837 | 0.030644 | 0.055158 | 0.055158 | 0 | 0 | 0 | 0 | 0 | 0.020528 | 0.231116 | 1,774 | 52 | 79 | 34.115385 | 0.697214 | 0.256483 | 0 | 0 | 0 | 0 | 0.655951 | 0.166811 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.09375 | 0 | 0.15625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2d653b211d5bb350b04adb1eec473c6650fa0bd1 | 87,211 | py | Python | blender/.blender/scripts/wizard_bolt_factory.py | visnz/sketchfab_download | 976f667d5c2c2864b2bad65aceac0dab5ce51b74 | [
"Apache-2.0"
] | 41 | 2021-02-18T05:56:26.000Z | 2021-12-06T07:58:15.000Z | blender/.blender/scripts/wizard_bolt_factory.py | visnz/sketchfab_download | 976f667d5c2c2864b2bad65aceac0dab5ce51b74 | [
"Apache-2.0"
] | 19 | 2021-02-18T05:59:03.000Z | 2022-01-13T01:00:52.000Z | blender/.blender/scripts/wizard_bolt_factory.py | visnz/sketchfab_download | 976f667d5c2c2864b2bad65aceac0dab5ce51b74 | [
"Apache-2.0"
] | 18 | 2021-02-22T13:32:56.000Z | 2022-01-22T12:38:29.000Z | #!BPY
# -*- coding: latin-1 -*-
"""
Name: 'Bolt Factory'
Blender: 248
Group: 'Wizards'
Tooltip: 'Create models of various types of screw fasteners.'
"""
__author__ = " Aaron Keith (Spudmn) "
__version__ = "2.02 2009/06/10"
__url__ = ["Author's site,http://sourceforge.net/projects/boltfactory/", "Blender,http://wiki.bl... | 31.013869 | 304 | 0.575489 | 12,346 | 87,211 | 3.821724 | 0.053864 | 0.006697 | 0.026196 | 0.030519 | 0.72382 | 0.66933 | 0.62211 | 0.597906 | 0.562724 | 0.545281 | 0 | 0.039905 | 0.263533 | 87,211 | 2,811 | 305 | 31.024902 | 0.694713 | 0.060784 | 0 | 0.603458 | 0 | 0.001081 | 0.031104 | 0.000555 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.00054 | 0.003241 | null | null | 0.003782 | 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 |
2d6f92753e719e5ab80d42240969bce506759a87 | 5,445 | py | Python | sample_setups/external-setups/NCAR/transform_ncar_clims_to_CMIP5_structure.py | tomvothecoder/pcmdi_metrics | 34cdd56a78859db6417cbc7018c8ae8bbf2f09b5 | [
"BSD-3-Clause"
] | 47 | 2015-03-18T22:44:51.000Z | 2022-01-30T04:35:05.000Z | sample_setups/external-setups/NCAR/transform_ncar_clims_to_CMIP5_structure.py | tomvothecoder/pcmdi_metrics | 34cdd56a78859db6417cbc7018c8ae8bbf2f09b5 | [
"BSD-3-Clause"
] | 524 | 2015-01-01T04:00:34.000Z | 2022-03-31T15:06:46.000Z | sample_setups/external-setups/NCAR/transform_ncar_clims_to_CMIP5_structure.py | tomvothecoder/pcmdi_metrics | 34cdd56a78859db6417cbc7018c8ae8bbf2f09b5 | [
"BSD-3-Clause"
] | 30 | 2015-06-05T17:19:43.000Z | 2021-11-02T15:22:21.000Z | #####
# CONVERT NCAR CLIMATOLOGIES TO BE CONSISTENT WITH CMIP STRUCTURE FOR PMP USE
# PLANNED IMPROVEMENTS:
# CURRENTLY ASSUMES cdscan XML FILES HAVE BEEN CREATED IN ADVANCE
# CURRENTLY ASSUMES LOCATION OF XML FILES AND PRODUCES CLIMS FOR ALL SIMULATIONS WITH XMLS
# CURRENTLY HAS OUTPUT "data" DIRECTORY
# ... | 31.114286 | 272 | 0.557943 | 745 | 5,445 | 4.022819 | 0.371812 | 0.016016 | 0.030697 | 0.034701 | 0.330998 | 0.296296 | 0.284952 | 0.262262 | 0.222222 | 0.222222 | 0 | 0.066921 | 0.278237 | 5,445 | 174 | 273 | 31.293103 | 0.695674 | 0.188062 | 0 | 0.355372 | 0 | 0 | 0.176403 | 0.018713 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016529 | 0.041322 | null | null | 0.066116 | 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 |
2d73262850128b63a1a0ea8919874a524d1e57b8 | 565 | py | Python | mtpm/modules/mtpm.py | Gregory-Eales/mban | d8b35db51c7e601b1db777d9a80343600374250b | [
"Apache-2.0"
] | 1 | 2021-04-01T13:56:38.000Z | 2021-04-01T13:56:38.000Z | mtpm/modules/mtpm.py | Gregory-Eales/multi-task-policy-modularization | d8b35db51c7e601b1db777d9a80343600374250b | [
"Apache-2.0"
] | null | null | null | mtpm/modules/mtpm.py | Gregory-Eales/multi-task-policy-modularization | d8b35db51c7e601b1db777d9a80343600374250b | [
"Apache-2.0"
] | null | null | null | import torch
from .actor import Actor
from .critic import Critic
from .router import Router
from .encoder import Encoder
from .decoder import Decoder
class MTPM(torch.nn.Module):
def __init__(self):
self.actor = Actor()
self.critic = Critic() # needs to be a q function
self.router = Router()
self.encode... | 16.617647 | 51 | 0.669027 | 85 | 565 | 4.376471 | 0.388235 | 0.016129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210619 | 565 | 34 | 52 | 16.617647 | 0.834081 | 0.129204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2d7651ab957e917873660c431ca4df7d357e6498 | 11,583 | py | Python | src/main/java/nl/Ipsen5Server/Service/kik-bot-api-unofficial/examples/kik_unofficial/protobuf/group_search_service_pb2.py | anthonyscheeres/Ipen5BackendGroep11 | e2675c2ac6580f0a6f1d9e5f755f19405d17e514 | [
"Apache-2.0"
] | null | null | null | src/main/java/nl/Ipsen5Server/Service/kik-bot-api-unofficial/examples/kik_unofficial/protobuf/group_search_service_pb2.py | anthonyscheeres/Ipen5BackendGroep11 | e2675c2ac6580f0a6f1d9e5f755f19405d17e514 | [
"Apache-2.0"
] | null | null | null | src/main/java/nl/Ipsen5Server/Service/kik-bot-api-unofficial/examples/kik_unofficial/protobuf/group_search_service_pb2.py | anthonyscheeres/Ipen5BackendGroep11 | e2675c2ac6580f0a6f1d9e5f755f19405d17e514 | [
"Apache-2.0"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: group_search_service.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import ... | 37.244373 | 979 | 0.733402 | 1,345 | 11,583 | 6.004461 | 0.144238 | 0.046558 | 0.042348 | 0.038138 | 0.500619 | 0.458519 | 0.432764 | 0.432764 | 0.428058 | 0.428058 | 0 | 0.035526 | 0.149443 | 11,583 | 310 | 980 | 37.364516 | 0.784206 | 0.038159 | 0 | 0.605839 | 1 | 0.00365 | 0.180298 | 0.126513 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021898 | 0 | 0.021898 | 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 |
2d7eec290455c5780d66c7c08e75d0dab8c08ffc | 2,583 | py | Python | remove_in_frame.py | AnneliektH/EVEs_arthropod | 62f54c9db85d3ea6d7d78c319aa03e7eff733bb2 | [
"MIT"
] | null | null | null | remove_in_frame.py | AnneliektH/EVEs_arthropod | 62f54c9db85d3ea6d7d78c319aa03e7eff733bb2 | [
"MIT"
] | null | null | null | remove_in_frame.py | AnneliektH/EVEs_arthropod | 62f54c9db85d3ea6d7d78c319aa03e7eff733bb2 | [
"MIT"
] | null | null | null | #Anneliek ter Horst, 2017
# load pandas
import sys
import csv
import pandas as pd
from collections import defaultdict
import time
# load dataframe
df = pd.DataFrame.from_csv(open(sys.argv[1]))
print len(df)
# list to store index that are either unique enough or have highest evalue
results = []
# list to save those... | 27.478723 | 89 | 0.598142 | 364 | 2,583 | 4.195055 | 0.376374 | 0.035363 | 0.036018 | 0.022266 | 0.169614 | 0.149312 | 0.092993 | 0.092993 | 0.062868 | 0.062868 | 0 | 0.030286 | 0.309717 | 2,583 | 93 | 90 | 27.774194 | 0.826136 | 0.328688 | 0 | 0.111111 | 0 | 0 | 0.005841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.044444 | 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 |
2d86892ab854c71af0ba6952cf58b8eeb5b7561a | 583 | py | Python | houses/migrations/0016_auto_20190929_1520.py | xNovax/RoomScout | 287240a9d13f2b8f6ce9abdc95cf611671970fc3 | [
"MIT"
] | 24 | 2020-02-01T17:22:47.000Z | 2020-10-24T19:49:36.000Z | houses/migrations/0016_auto_20190929_1520.py | xNovax/RoomScout | 287240a9d13f2b8f6ce9abdc95cf611671970fc3 | [
"MIT"
] | 16 | 2020-02-01T14:30:15.000Z | 2020-08-13T20:49:56.000Z | houses/migrations/0016_auto_20190929_1520.py | aaronspindler/RoomScout | 287240a9d13f2b8f6ce9abdc95cf611671970fc3 | [
"MIT"
] | 6 | 2020-02-01T22:07:46.000Z | 2021-03-05T14:05:27.000Z | # Generated by Django 2.2.4 on 2019-09-29 19:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('houses', '0015_house_is_accessible'),
]
operations = [
migrations.AddField(
model_name='house',
name='open_to_student... | 25.347826 | 80 | 0.598628 | 59 | 583 | 5.762712 | 0.644068 | 0.070588 | 0.082353 | 0.105882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045783 | 0.288165 | 583 | 22 | 81 | 26.5 | 0.773494 | 0.077187 | 0 | 0.235294 | 1 | 0 | 0.147388 | 0.044776 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 |
2d8cae183fe99e1d2ad43eb0412de50f93db5746 | 1,935 | py | Python | shape_reconstruction/src/plot_statistics.py | tu-rbo/omip | 825442774d1a9712937b535e5ced4e4c1aa32fcc | [
"MIT"
] | 27 | 2016-11-10T16:11:28.000Z | 2021-12-21T20:11:39.000Z | shape_reconstruction/src/plot_statistics.py | tu-rbo/omip | 825442774d1a9712937b535e5ced4e4c1aa32fcc | [
"MIT"
] | 2 | 2017-11-28T13:22:02.000Z | 2019-10-22T22:01:58.000Z | shape_reconstruction/src/plot_statistics.py | tu-rbo/omip | 825442774d1a9712937b535e5ced4e4c1aa32fcc | [
"MIT"
] | 9 | 2016-11-25T18:24:12.000Z | 2020-05-24T03:20:33.000Z | #!/usr/bin/python
##############
# View the statistics for a single experiment (bag file)
#
# Statistics are plotted separately, i.e. one window per object per variant,
# showing precision and recall.
import numpy as np
import matplotlib.pylab as plt
import matplotlib
matplotlib.rcParams['ps.useafm'] = True
matplotli... | 28.043478 | 79 | 0.61447 | 291 | 1,935 | 4.020619 | 0.408935 | 0.030769 | 0.051282 | 0.030769 | 0.088889 | 0.030769 | 0 | 0 | 0 | 0 | 0 | 0.024158 | 0.18708 | 1,935 | 68 | 80 | 28.455882 | 0.719644 | 0.095607 | 0 | 0 | 0 | 0 | 0.135917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.139535 | null | null | 0.069767 | 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 |
2d8dc8e8dca15d113d49e4ebb63ecf7b59db9b21 | 2,333 | py | Python | tests/test_0user.py | jiazifa/sky_main | f95b254af51f2fb8fa7eb1ab4ff6495b206538a7 | [
"MIT"
] | 1 | 2020-01-18T07:59:15.000Z | 2020-01-18T07:59:15.000Z | tests/test_0user.py | jiazifa/sky_main | f95b254af51f2fb8fa7eb1ab4ff6495b206538a7 | [
"MIT"
] | 3 | 2019-12-16T02:28:59.000Z | 2021-06-02T00:47:07.000Z | tests/test_0user.py | jiazifa/sky_main | f95b254af51f2fb8fa7eb1ab4ff6495b206538a7 | [
"MIT"
] | null | null | null | import sys
from os import path
import json
import pytest
import random
from flask import Flask
from .helper import *
# 将路径添加到 sys.path
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))))
class TestUser:
def setup_method(self):
from app.utils import getmd5
self._email = DEFAULT_LO... | 33.328571 | 128 | 0.598371 | 291 | 2,333 | 4.632302 | 0.226804 | 0.067507 | 0.106083 | 0.047478 | 0.488131 | 0.458457 | 0.458457 | 0.431751 | 0.378338 | 0.339763 | 0 | 0.019009 | 0.255894 | 2,333 | 69 | 129 | 33.811594 | 0.757488 | 0.006429 | 0 | 0.327586 | 0 | 0 | 0.123489 | 0 | 0 | 0 | 0 | 0 | 0.258621 | 1 | 0.086207 | false | 0.103448 | 0.137931 | 0 | 0.241379 | 0.034483 | 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 |
2d8fffd97e4eaabaa763cc47d3763c857eb2792d | 8,623 | py | Python | scalable-ML/explore_h2o.py | QuantFinEcon/py-learn | 7151f01df9f7f096312e43434fe8026d1d7d7828 | [
"Apache-2.0"
] | 2 | 2021-03-07T17:13:49.000Z | 2022-03-29T08:55:17.000Z | scalable-ML/explore_h2o.py | QuantFinEcon/py-learn | 7151f01df9f7f096312e43434fe8026d1d7d7828 | [
"Apache-2.0"
] | 1 | 2021-06-10T20:17:55.000Z | 2021-06-10T20:17:55.000Z | scalable-ML/explore_h2o.py | QuantFinEcon/py-learn | 7151f01df9f7f096312e43434fe8026d1d7d7828 | [
"Apache-2.0"
] | null | null | null |
import h2o
import numpy as np
dir(h2o)
# open FLOW at http://localhost:54321/flow/index.html
h2o.init(ip="127.0.0.1", port=54321)
help(h2o.estimators.glm.H2OGeneralizedLinearEstimator)
h2o.estimators.glm.H2OGeneralizedLinearEstimator?
#h2o.demo("glm")
#l=[[1, 2, 3], ['a','b','c'], [0.1, 0.2, 0.3]]
#df = h2o.H2OFr... | 26.862928 | 114 | 0.569175 | 879 | 8,623 | 5.415245 | 0.31058 | 0.02416 | 0.027731 | 0.010924 | 0.262395 | 0.179832 | 0.179832 | 0.179832 | 0.155252 | 0.155252 | 0 | 0.026545 | 0.161197 | 8,623 | 320 | 115 | 26.946875 | 0.63155 | 0.294097 | 0 | 0.213333 | 0 | 0 | 0.0733 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.146667 | 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 |
2d939e68d0a952f475481e96edf506812cac9e85 | 1,106 | py | Python | setup.py | thijstriemstra/tower | 63b31dd3b5f0ba0679343c6894ad3ed7377a5d66 | [
"BSD-3-Clause"
] | null | null | null | setup.py | thijstriemstra/tower | 63b31dd3b5f0ba0679343c6894ad3ed7377a5d66 | [
"BSD-3-Clause"
] | null | null | null | setup.py | thijstriemstra/tower | 63b31dd3b5f0ba0679343c6894ad3ed7377a5d66 | [
"BSD-3-Clause"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='tower',
version='0.4.1',
description='Pull strings from a variety of sources, collapse whitespace, '
'support context (msgctxt), and merging .pot files.',
long_description=open('README.rst').read(),
author='Wil Clouser',
a... | 35.677419 | 79 | 0.622061 | 118 | 1,106 | 5.771186 | 0.771186 | 0.0837 | 0.110132 | 0.076358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009604 | 0.246835 | 1,106 | 30 | 80 | 36.866667 | 0.807923 | 0.045208 | 0 | 0 | 0 | 0 | 0.55408 | 0 | 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 |
2d9ad105e2a7344772ab221928b78e7c2da2f1fc | 543 | py | Python | actualPlanner/migrations/0008_auto_20200607_1623.py | OneUne/weltrip-web | b0557a83a6798d75cf7a3504db0a9f8952803d5b | [
"MIT"
] | 1 | 2021-02-02T14:39:31.000Z | 2021-02-02T14:39:31.000Z | actualPlanner/migrations/0008_auto_20200607_1623.py | OneUne/weltrip-web | b0557a83a6798d75cf7a3504db0a9f8952803d5b | [
"MIT"
] | 1 | 2020-10-19T07:34:39.000Z | 2020-10-19T07:34:39.000Z | actualPlanner/migrations/0008_auto_20200607_1623.py | OneUne/weltrip-web | b0557a83a6798d75cf7a3504db0a9f8952803d5b | [
"MIT"
] | 1 | 2020-11-05T16:13:16.000Z | 2020-11-05T16:13:16.000Z | # Generated by Django 3.0.6 on 2020-06-07 07:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('actualPlanner', '0007_planner_rating'),
]
operations = [
migrations.RenameField(
model_name='rating',
old_name='user... | 22.625 | 61 | 0.574586 | 54 | 543 | 5.648148 | 0.740741 | 0.059016 | 0.098361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05615 | 0.311234 | 543 | 23 | 62 | 23.608696 | 0.759358 | 0.082873 | 0 | 0.235294 | 1 | 0 | 0.141129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 |
2da093e0c13916fb99d8d995673800c6452369cf | 2,366 | py | Python | sorts/insertion.py | un33k/problems | 2696b5f1a4292f4b58e65b1c51ffd9239b6cc738 | [
"BSD-2-Clause"
] | null | null | null | sorts/insertion.py | un33k/problems | 2696b5f1a4292f4b58e65b1c51ffd9239b6cc738 | [
"BSD-2-Clause"
] | null | null | null | sorts/insertion.py | un33k/problems | 2696b5f1a4292f4b58e65b1c51ffd9239b6cc738 | [
"BSD-2-Clause"
] | null | null | null | """
Properties
Stable
O(1) extra space
O(n^2) comparisons and swaps
Adaptive: O(n) time when nearly sorted
Very low overhead
"""
"""
Although it is one of the elementary sorting algorithms
with O(n2) worst-case time, insertion sort is the algorithm
of choice either when the data is nearly sorted
(b... | 25.44086 | 61 | 0.598056 | 365 | 2,366 | 3.810959 | 0.30137 | 0.056075 | 0.008627 | 0.011503 | 0.237239 | 0.237239 | 0.201294 | 0.201294 | 0.201294 | 0.201294 | 0 | 0.046767 | 0.267963 | 2,366 | 92 | 62 | 25.717391 | 0.756351 | 0 | 0 | 0.117647 | 0 | 0 | 0.133984 | 0.037267 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2da9919d0ee9017e466bbd25d306718b13693c2b | 1,147 | py | Python | python_awair_local_sensors/exceptions.py | bpowers/python_awair | f1f5bead9340c52fae70a23477fadeea18d94fbf | [
"MIT"
] | 8 | 2019-04-07T13:14:19.000Z | 2020-10-24T08:22:33.000Z | python_awair_local_sensors/exceptions.py | bpowers/python_awair | f1f5bead9340c52fae70a23477fadeea18d94fbf | [
"MIT"
] | 14 | 2019-04-06T00:07:36.000Z | 2022-03-30T15:05:27.000Z | python_awair_local_sensors/exceptions.py | bpowers/python_awair | f1f5bead9340c52fae70a23477fadeea18d94fbf | [
"MIT"
] | 5 | 2019-04-06T00:02:10.000Z | 2022-03-30T14:22:38.000Z | """Various exceptions for the Awair API."""
from typing import Optional
class AwairError(Exception):
"""Base awair exception class."""
message = "Error querying the Awair API."
def __init__(self, extra_message: Optional[str] = None) -> None:
"""Add extra messages to our base message."""
... | 24.404255 | 88 | 0.659983 | 134 | 1,147 | 5.544776 | 0.552239 | 0.043069 | 0.059219 | 0.037685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003432 | 0.238012 | 1,147 | 46 | 89 | 24.934783 | 0.846682 | 0.219704 | 0 | 0.095238 | 0 | 0 | 0.329453 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2daa7fedc79319dba4758e8ce84b071f07081e9e | 1,846 | py | Python | Utils/Password.py | dobrosketchkun/MOI | 9e9907a443319f022acad61a92a4792574a77a5f | [
"Unlicense"
] | 3 | 2018-12-18T20:08:48.000Z | 2018-12-25T00:52:57.000Z | Utils/Password.py | dobrosketchkun/MOI | 9e9907a443319f022acad61a92a4792574a77a5f | [
"Unlicense"
] | null | null | null | Utils/Password.py | dobrosketchkun/MOI | 9e9907a443319f022acad61a92a4792574a77a5f | [
"Unlicense"
] | null | null | null | from Crypto.Cipher import AES
from Crypto.Hash import SHA256
from Crypto.Protocol.KDF import PBKDF2
try:
from .Sup import sha000
except:
from Sup import sha000
try:
from .eff_long import words
#from .words6 import words
#from .usrsharedictwords6 import words
except:
from eff_long import words
#from words6 impor... | 28.4 | 101 | 0.635428 | 246 | 1,846 | 4.678862 | 0.430894 | 0.057341 | 0.052129 | 0.03649 | 0.191138 | 0.132059 | 0.132059 | 0.132059 | 0.132059 | 0.132059 | 0 | 0.028629 | 0.186349 | 1,846 | 64 | 102 | 28.84375 | 0.737683 | 0.20585 | 0 | 0.139535 | 0 | 0.023256 | 0.071182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0.325581 | 0.232558 | 0 | 0.348837 | 0.069767 | 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 |
2dae9fae4d2e6a648514c2b500ebb345e00038ee | 6,560 | py | Python | Code/OpenBCIPy/src/biosignals/ECG.py | neurotechuoft/Wall-EEG | ee7c86d49a6be8fb2d16c766ace9fc33e8bcdbf5 | [
"MIT"
] | 6 | 2016-08-10T17:05:37.000Z | 2019-09-01T08:00:16.000Z | Code/OpenBCIPy/src/biosignals/ECG.py | neurotechuoft/Wall-EEG | ee7c86d49a6be8fb2d16c766ace9fc33e8bcdbf5 | [
"MIT"
] | 17 | 2016-02-11T06:22:25.000Z | 2017-03-18T03:52:20.000Z | Code/OpenBCIPy/src/biosignals/ECG.py | neurotechuoft/Wall-EEG | ee7c86d49a6be8fb2d16c766ace9fc33e8bcdbf5 | [
"MIT"
] | 5 | 2016-02-29T17:55:51.000Z | 2021-06-09T04:59:09.000Z | import csv
from biosppy.signals import tools as st
from biosignals.BioSignal import BioSignal
from scipy.signal import butter, lfilter
import numpy as np
#from scipy.fftpack import rfft, irfft
class ECG(BioSignal):
# CONSTRUCTORS--------------------------------------------------------------
def __init__(self,... | 32 | 82 | 0.503354 | 739 | 6,560 | 4.235453 | 0.201624 | 0.038019 | 0.061342 | 0.024601 | 0.476677 | 0.440895 | 0.440895 | 0.398722 | 0.376358 | 0.376358 | 0 | 0.01498 | 0.338567 | 6,560 | 204 | 83 | 32.156863 | 0.706384 | 0.451524 | 0 | 0.28125 | 0 | 0 | 0.019653 | 0.006358 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0.09375 | 0.078125 | 0 | 0.234375 | 0.046875 | 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 |
2db8fcad6ceb7bd6a03c204ffe221535a36eedda | 572 | py | Python | var/spack/repos/builtin/packages/py-olefile/package.py | kkauder/spack | 6ae8d5c380c1f42094b05d38be26b03650aafb39 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2,360 | 2017-11-06T08:47:01.000Z | 2022-03-31T14:45:33.000Z | var/spack/repos/builtin/packages/py-olefile/package.py | kkauder/spack | 6ae8d5c380c1f42094b05d38be26b03650aafb39 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 13,838 | 2017-11-04T07:49:45.000Z | 2022-03-31T23:38:39.000Z | var/spack/repos/builtin/packages/py-olefile/package.py | kkauder/spack | 6ae8d5c380c1f42094b05d38be26b03650aafb39 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 1,793 | 2017-11-04T07:45:50.000Z | 2022-03-30T14:31:53.000Z | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyOlefile(PythonPackage):
"""Python package to parse, read and write Microsoft OLE2 files"... | 31.777778 | 94 | 0.73951 | 71 | 572 | 5.943662 | 0.859155 | 0.014218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123984 | 0.13986 | 572 | 17 | 95 | 33.647059 | 0.73374 | 0.437063 | 0 | 0 | 0 | 0 | 0.488818 | 0.28115 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2dbb55ba56f434918d6b853bc70c06aab2ea1f2d | 1,700 | py | Python | appium_automation/Basic/driver.py | 3143ylc279144/python | 14ad939d3c93e29465f931c53b4bab2375a55aa5 | [
"Apache-2.0"
] | null | null | null | appium_automation/Basic/driver.py | 3143ylc279144/python | 14ad939d3c93e29465f931c53b4bab2375a55aa5 | [
"Apache-2.0"
] | null | null | null | appium_automation/Basic/driver.py | 3143ylc279144/python | 14ad939d3c93e29465f931c53b4bab2375a55aa5 | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
from selenium import webdriver
# apk参数
def init_driver():
desired_caps = {}
# 手机 系统信息
desired_caps['platformName'] = 'Android' # 设置平台
desired_caps['platformVersion'] = '10.0' # 系统版本
# 设备号
desired_caps['deviceName'] = '61359515231666' # 设备id
# 包名
desired_caps['a... | 32.075472 | 78 | 0.657059 | 174 | 1,700 | 6.247126 | 0.385057 | 0.283349 | 0.096596 | 0.031279 | 0.537259 | 0.356946 | 0.356946 | 0.356946 | 0.206072 | 0.206072 | 0 | 0.040293 | 0.197059 | 1,700 | 52 | 79 | 32.692308 | 0.756044 | 0.299412 | 0 | 0.4 | 0 | 0 | 0.314655 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.04 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2dbd1fa46bd1aec1bdc6fb30ac075b061ed84829 | 8,100 | py | Python | toivonen.py | ZwEin27/Apriori-and-its-improvements | 704dbc86439265761e52eb208ad0ca513b88c210 | [
"MIT"
] | 19 | 2017-01-22T20:28:22.000Z | 2022-03-16T02:50:00.000Z | toivonen.py | ZwEin27/Apriori-and-its-improvements | 704dbc86439265761e52eb208ad0ca513b88c210 | [
"MIT"
] | null | null | null | toivonen.py | ZwEin27/Apriori-and-its-improvements | 704dbc86439265761e52eb208ad0ca513b88c210 | [
"MIT"
] | 11 | 2017-02-09T01:24:35.000Z | 2022-03-16T02:50:01.000Z |
"""
Problem 1: Toivonen Algorithm
Executing code:
1) $ python toivonen.py input.txt 4
2) $ python toivonen.py input1.txt 20
"""
# note: error existing inside apriori
import sys
import re
import random
def toivonen(inputfile, support):
iterations = 0
result = []
ck = True
while ck:
ans_... | 29.136691 | 98 | 0.581605 | 918 | 8,100 | 4.970588 | 0.135076 | 0.096866 | 0.017751 | 0.023669 | 0.301994 | 0.250274 | 0.212141 | 0.124918 | 0.124918 | 0.067061 | 0 | 0.010042 | 0.323827 | 8,100 | 277 | 99 | 29.241877 | 0.823078 | 0.040864 | 0 | 0.402597 | 0 | 0 | 0.008153 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.034632 | 0.012987 | null | null | 0.012987 | 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 |
2dcd2678e5c7a4141dd7c187009e51de4869da7f | 502 | py | Python | app2/migrations/0005_alter_ticket_status.py | BethanyFolino/bugtracker | fd4868d52a7479b83a44e692fb268e325dc8cfde | [
"MIT"
] | null | null | null | app2/migrations/0005_alter_ticket_status.py | BethanyFolino/bugtracker | fd4868d52a7479b83a44e692fb268e325dc8cfde | [
"MIT"
] | null | null | null | app2/migrations/0005_alter_ticket_status.py | BethanyFolino/bugtracker | fd4868d52a7479b83a44e692fb268e325dc8cfde | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-09-02 02:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app2', '0004_alter_ticket_filed_by'),
]
operations = [
migrations.AlterField(
model_name='ticket',
name='status',
... | 26.421053 | 166 | 0.593625 | 56 | 502 | 5.196429 | 0.732143 | 0.068729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060367 | 0.241036 | 502 | 18 | 167 | 27.888889 | 0.703412 | 0.089641 | 0 | 0 | 1 | 0 | 0.208791 | 0.057143 | 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 |
2dd064e43bd049d4ac5c2714d0206b61f3e00bfb | 359 | py | Python | AtCoder/ABC/000-159/ABC150_C.py | sireline/PyCode | 8578467710c3c1faa89499f5d732507f5d9a584c | [
"MIT"
] | null | null | null | AtCoder/ABC/000-159/ABC150_C.py | sireline/PyCode | 8578467710c3c1faa89499f5d732507f5d9a584c | [
"MIT"
] | null | null | null | AtCoder/ABC/000-159/ABC150_C.py | sireline/PyCode | 8578467710c3c1faa89499f5d732507f5d9a584c | [
"MIT"
] | null | null | null | N = int(input())
P = (int(n) for n in input().split())
Q = (int(n) for n in input().split())
def kaijyou(n):
if n <= 1: return 1
return n * kaijyou(n-1)
def pos(n):
l = [n for n in range(1,N+1)]
a = sum([l.index(p)*kaijyou(N-i) for i,p in enumerate(P, start=1)])
b = sum([l.index(q)*kaijyou(N-i) for i,q in e... | 22.4375 | 67 | 0.579387 | 80 | 359 | 2.6 | 0.3125 | 0.153846 | 0.072115 | 0.100962 | 0.317308 | 0.192308 | 0.192308 | 0 | 0 | 0 | 0 | 0.023973 | 0.18663 | 359 | 15 | 68 | 23.933333 | 0.688356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.090909 | 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 |
2ddafecca09421f7c613c81ec2a965ca98b321eb | 3,859 | py | Python | AveragedTimeOfTravel.py | ShawnJSavoie2/Working | 0ac1dd6d404f8a6028af84895c6ece5734e9f9cf | [
"MIT"
] | null | null | null | AveragedTimeOfTravel.py | ShawnJSavoie2/Working | 0ac1dd6d404f8a6028af84895c6ece5734e9f9cf | [
"MIT"
] | null | null | null | AveragedTimeOfTravel.py | ShawnJSavoie2/Working | 0ac1dd6d404f8a6028af84895c6ece5734e9f9cf | [
"MIT"
] | null | null | null | # Python 3.9.0
# AveragedTimeOfTravel
def AveragedTimeOfTravel(
P1FractionOfPeriodPerPeriod,
P1BPeriod,
P1BDistance,
P1APeriod,
P1ADistance,
P2FractionOfPeriodPerPeriod,
P2BPeriod,
P2BDistance,
P2APeriod,
P2ADistance,
P3FractionOfPeriodPerPeriod,
P3BPeriod,
P3BDi... | 29.914729 | 87 | 0.652501 | 217 | 3,859 | 11.603687 | 0.299539 | 0.045274 | 0.013106 | 0.02502 | 0.138205 | 0.138205 | 0.081811 | 0.081811 | 0.081811 | 0 | 0 | 0.036829 | 0.261208 | 3,859 | 128 | 88 | 30.148438 | 0.84637 | 0.008551 | 0 | 0.075472 | 0 | 0 | 0.212805 | 0.086591 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009434 | false | 0 | 0 | 0 | 0.018868 | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 1 |
2de145415eebfba7f2601ca2baa8b4b2bb28dd9c | 1,987 | py | Python | code/lib/nemo/nemo_parser.py | superfluidity/RDCL3D | 3c5717941bd4046aa1be178e9004db1dc1c469a0 | [
"Apache-2.0"
] | 8 | 2017-03-13T16:34:28.000Z | 2021-11-16T11:35:56.000Z | code/lib/nemo/nemo_parser.py | superfluidity/RDCL3D | 3c5717941bd4046aa1be178e9004db1dc1c469a0 | [
"Apache-2.0"
] | null | null | null | code/lib/nemo/nemo_parser.py | superfluidity/RDCL3D | 3c5717941bd4046aa1be178e9004db1dc1c469a0 | [
"Apache-2.0"
] | 3 | 2017-03-28T09:26:40.000Z | 2020-12-08T14:16:12.000Z | import json
import pyaml
import yaml
from lib.util import Util
from lib.parser import Parser
import logging
import traceback
import glob
import os
logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger('NemoParser')
class NemoParser(Parser):
"""Parser methods for nemo project type
"""
def __in... | 27.597222 | 109 | 0.593357 | 231 | 1,987 | 4.935065 | 0.341991 | 0.063158 | 0.038596 | 0.031579 | 0.140351 | 0.042105 | 0.042105 | 0 | 0 | 0 | 0 | 0.001441 | 0.301459 | 1,987 | 71 | 110 | 27.985915 | 0.819885 | 0 | 0 | 0.266667 | 0 | 0 | 0.067336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.266667 | null | null | 0.022222 | 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 |
2de180a3650fdd6da3ee7a65413a64d7cb5285f4 | 2,375 | py | Python | tests/test_named_tuples.py | jddixon/optionz | 2234b2427df02cb40da293d8dd75ea984ec75282 | [
"MIT"
] | null | null | null | tests/test_named_tuples.py | jddixon/optionz | 2234b2427df02cb40da293d8dd75ea984ec75282 | [
"MIT"
] | null | null | null | tests/test_named_tuples.py | jddixon/optionz | 2234b2427df02cb40da293d8dd75ea984ec75282 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# testNamedTuples.py
""" Test named tuples. """
import unittest
from collections import namedtuple
class TestNamedTuples(unittest.TestCase):
""" Test behavior of named tuples. """
def test_functionality(self):
"""
Nested named tuples work more or less as expected. L... | 30.448718 | 77 | 0.570947 | 271 | 2,375 | 4.756458 | 0.365314 | 0.15128 | 0.191621 | 0.073701 | 0.316524 | 0.274632 | 0.229635 | 0.229635 | 0.193949 | 0.193949 | 0 | 0.026188 | 0.308632 | 2,375 | 77 | 78 | 30.844156 | 0.758831 | 0.247579 | 0 | 0.418605 | 0 | 0 | 0.122106 | 0 | 0 | 0 | 0 | 0 | 0.302326 | 1 | 0.023256 | false | 0 | 0.046512 | 0 | 0.093023 | 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 |
2de80ead78b108cfd0e1103e2ac6d18e97d4519f | 676 | py | Python | python101/code/pil_demo.py | nirmeshk/mase | c31fb41f39bb7a333f6fd33aa43fa0b23531030a | [
"Unlicense"
] | 9 | 2015-08-23T01:46:56.000Z | 2019-04-25T00:48:21.000Z | python101/code/pil_demo.py | sadiaTab/mase | 95339dbb045c0613b40d69de9774368c0a2eb5ae | [
"Unlicense"
] | 20 | 2015-08-08T03:39:25.000Z | 2015-11-03T22:22:56.000Z | python101/code/pil_demo.py | sadiaTab/mase | 95339dbb045c0613b40d69de9774368c0a2eb5ae | [
"Unlicense"
] | 43 | 2015-05-08T05:55:41.000Z | 2020-04-27T14:13:26.000Z | """Solution to an exercise from
Think Python: An Introduction to Software Design
Copyright 2010 Allen B. Downey
License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html
This program requires Gui.py, which is part of
Swampy; you can download it from thinkpython.com/swampy.
"""
import os, sys
from swampy.Gui import *
... | 22.533333 | 62 | 0.730769 | 104 | 676 | 4.730769 | 0.701923 | 0.036585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 0.186391 | 676 | 29 | 63 | 23.310345 | 0.885455 | 0.578402 | 0 | 0 | 0 | 0 | 0.032847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.416667 | 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 |
2deb0d46c6859d64ebdb87d8c4af426f47b8bb67 | 10,051 | py | Python | agents.py | A-Jacobson/Rainbow | 9adfa24e78200a65c4bcae9bf5e17416c6c006f3 | [
"MIT"
] | 8 | 2018-01-14T10:29:12.000Z | 2020-02-13T20:15:34.000Z | agents.py | A-Jacobson/Rainbow | 9adfa24e78200a65c4bcae9bf5e17416c6c006f3 | [
"MIT"
] | null | null | null | agents.py | A-Jacobson/Rainbow | 9adfa24e78200a65c4bcae9bf5e17416c6c006f3 | [
"MIT"
] | 5 | 2018-06-19T14:43:01.000Z | 2020-06-30T01:46:55.000Z | import math
import os
import random
import torch
from tensorboardX import SummaryWriter
from torch import nn
from torch.autograd import Variable
from torch.backends import cudnn
from torch.optim import Adam
from tqdm import tqdm
from memory import ReplayMemory
from utils import process_state
class DQAgent:
"""
... | 38.957364 | 123 | 0.591682 | 1,133 | 10,051 | 5.070609 | 0.168579 | 0.02785 | 0.03342 | 0.013925 | 0.694169 | 0.663708 | 0.646823 | 0.641253 | 0.631158 | 0.631158 | 0 | 0.014779 | 0.320068 | 10,051 | 257 | 124 | 39.108949 | 0.825871 | 0.119292 | 0 | 0.691429 | 0 | 0 | 0.023735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.068571 | 0 | 0.154286 | 0.011429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2df0adfd2af4ae07e8474aae4ac9967bb3522481 | 730 | py | Python | boatsandjoy_api/bookings/urls.py | bertini36/boatsandjoy-api | b22d82eb02947218d924b381160d622ded9e1d98 | [
"MIT"
] | null | null | null | boatsandjoy_api/bookings/urls.py | bertini36/boatsandjoy-api | b22d82eb02947218d924b381160d622ded9e1d98 | [
"MIT"
] | 12 | 2021-04-08T21:18:37.000Z | 2022-03-12T00:39:39.000Z | boatsandjoy_api/bookings/urls.py | bertini36/boatsandjoy-api | b22d82eb02947218d924b381160d622ded9e1d98 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import (
create_booking,
generate_payment,
mark_booking_as_error,
register_booking_event,
get_booking_by_session,
)
app_name = 'bookings'
urlpatterns = [
path(r'generate/payment/', generate_payment, name='generate-payment'),
path(r'create/booking/'... | 22.8125 | 74 | 0.645205 | 87 | 730 | 5.172414 | 0.264368 | 0.055556 | 0.115556 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231507 | 730 | 31 | 75 | 23.548387 | 0.802139 | 0 | 0 | 0.392857 | 1 | 0 | 0.278082 | 0.182192 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 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 |
2df21e53dde31ef752612dbba5a5b897c06b21c1 | 358 | py | Python | mdp/baseline_agent.py | PhilippeW83440/mcts-nnet | 163982c48199d999a9350572535b474fa328b649 | [
"MIT"
] | 14 | 2020-08-03T09:05:46.000Z | 2022-03-30T16:20:09.000Z | mdp/baseline_agent.py | PhilippeW83440/mcts-nnet | 163982c48199d999a9350572535b474fa328b649 | [
"MIT"
] | null | null | null | mdp/baseline_agent.py | PhilippeW83440/mcts-nnet | 163982c48199d999a9350572535b474fa328b649 | [
"MIT"
] | 5 | 2020-08-27T13:58:37.000Z | 2021-11-03T08:27:28.000Z | import numpy as np
import pdb
class BaselineAgent():
def __init__(self, mdp):
self.mdp = mdp
self.DECELERATE = -4. # in actions [-2., -1., 0, 1., 2.]
self.ACCELERATE = 1 # in actions [-2., -1., 0, 1., 2.]
def act(self, state):
ttc, _ = self.mdp._get_smallest_TTC(state)
if ttc <= 10:
return self.DECELER... | 22.375 | 58 | 0.634078 | 56 | 358 | 3.910714 | 0.5 | 0.09589 | 0.091324 | 0.100457 | 0.127854 | 0.127854 | 0.127854 | 0 | 0 | 0 | 0 | 0.049296 | 0.206704 | 358 | 15 | 59 | 23.866667 | 0.721831 | 0.181564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2df30b525cee4b39bdde3612b0ad7b4caecf2f50 | 24,300 | py | Python | assets/lib/shaka-player/build/stats.py | amitrai1095/uFaberTemp | 279ba03e507ac0b4b7a87ea5c39e2c9d1fe67e29 | [
"CC0-1.0"
] | 1 | 2017-02-19T12:13:20.000Z | 2017-02-19T12:13:20.000Z | assets/lib/shaka-player/build/stats.py | amitrai1095/uFaberTemp | 279ba03e507ac0b4b7a87ea5c39e2c9d1fe67e29 | [
"CC0-1.0"
] | null | null | null | assets/lib/shaka-player/build/stats.py | amitrai1095/uFaberTemp | 279ba03e507ac0b4b7a87ea5c39e2c9d1fe67e29 | [
"CC0-1.0"
] | 1 | 2022-03-19T01:47:54.000Z | 2022-03-19T01:47:54.000Z | #!/usr/bin/python
#
# Copyright 2016 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 ag... | 30.527638 | 80 | 0.652099 | 3,350 | 24,300 | 4.707164 | 0.169552 | 0.006342 | 0.010844 | 0.011668 | 0.198681 | 0.164817 | 0.1463 | 0.114338 | 0.09747 | 0.086562 | 0 | 0.008089 | 0.247078 | 24,300 | 795 | 81 | 30.566038 | 0.853793 | 0.179012 | 0 | 0.280285 | 0 | 0.002375 | 0.116588 | 0.00577 | 0 | 0 | 0 | 0 | 0.016627 | 0 | null | null | 0.004751 | 0.014252 | null | null | 0.114014 | 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 |
2df594511da3ca427974a0ac4f4f79b75fa4e6d2 | 366 | py | Python | server/app/auth/schemas.py | aryaniyaps/todos | 06e18717dfc1139d5ab2fdd71f8baf0d08548c33 | [
"BSD-3-Clause"
] | 2 | 2021-11-05T05:19:55.000Z | 2021-11-05T07:07:50.000Z | server/app/auth/schemas.py | aryaniyaps/todos | 06e18717dfc1139d5ab2fdd71f8baf0d08548c33 | [
"BSD-3-Clause"
] | 184 | 2021-11-11T04:34:30.000Z | 2022-03-28T08:25:51.000Z | server/app/auth/schemas.py | aryaniyaps/todos | 06e18717dfc1139d5ab2fdd71f8baf0d08548c33 | [
"BSD-3-Clause"
] | null | null | null | from marshmallow import Schema
from marshmallow.fields import String
from marshmallow.validate import Length
class AuthenticateSchema(Schema):
email = String(required=True)
password = String(
required=True,
load_only=True,
validate=(
Length(min=8, max=255)
),
... | 21.529412 | 42 | 0.674863 | 37 | 366 | 6.621622 | 0.567568 | 0.183673 | 0.146939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014545 | 0.248634 | 366 | 17 | 42 | 21.529412 | 0.876364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.230769 | 0 | 0.461538 | 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 |
2df6cd35f8b4dc389c1b4f452b56bb802f7e8171 | 981 | py | Python | hash-tables/ex2/ex2.py | atonymartin20/Sprint-Challenge-Hash-Theory-Python | 0dde7d7bedfbdd2cd518f0c8c372796adeeb05bb | [
"MIT"
] | null | null | null | hash-tables/ex2/ex2.py | atonymartin20/Sprint-Challenge-Hash-Theory-Python | 0dde7d7bedfbdd2cd518f0c8c372796adeeb05bb | [
"MIT"
] | null | null | null | hash-tables/ex2/ex2.py | atonymartin20/Sprint-Challenge-Hash-Theory-Python | 0dde7d7bedfbdd2cd518f0c8c372796adeeb05bb | [
"MIT"
] | null | null | null | # Hint: You may not need all of these. Remove the unused functions.
from hashtables import (HashTable,
hash_table_insert,
hash_table_remove,
hash_table_retrieve,
hash_table_resize)
class Ticket:
def __init__(self, s... | 27.25 | 78 | 0.608563 | 117 | 981 | 4.931624 | 0.470085 | 0.093588 | 0.051993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004471 | 0.316004 | 981 | 35 | 79 | 28.028571 | 0.85544 | 0.250765 | 0 | 0 | 0 | 0 | 0.005739 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 1 | 0.1 | false | 0 | 0.05 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2dfb89f4eeff2581cb236adbf39f76d8bcf6ecc8 | 464 | py | Python | backend/questions/models/questioncase.py | carlosasj/fair-contest | 38ff99b3cbeb56c185255f96bce529d38fe333c1 | [
"MIT"
] | null | null | null | backend/questions/models/questioncase.py | carlosasj/fair-contest | 38ff99b3cbeb56c185255f96bce529d38fe333c1 | [
"MIT"
] | null | null | null | backend/questions/models/questioncase.py | carlosasj/fair-contest | 38ff99b3cbeb56c185255f96bce529d38fe333c1 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.translation import gettext as _
class QuestionCase(models.Model):
input = models.TextField(
_('Question Case\'s Input'),
)
output = models.TextField(
_('Question Case\'s Output'),
)
question = models.ForeignKey(
'questions.Qu... | 21.090909 | 49 | 0.637931 | 49 | 464 | 5.857143 | 0.612245 | 0.069686 | 0.160279 | 0.188153 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256466 | 464 | 21 | 50 | 22.095238 | 0.831884 | 0 | 0 | 0 | 0 | 0 | 0.133621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2dff348f7acae342db5e22ab579229148fe2b6a7 | 242 | py | Python | cc_to_json.py | msgoff/cc_2018_urls | 060a1e8433e6baabf6c879134e7f821d9bf0ec80 | [
"CC-BY-4.0"
] | null | null | null | cc_to_json.py | msgoff/cc_2018_urls | 060a1e8433e6baabf6c879134e7f821d9bf0ec80 | [
"CC-BY-4.0"
] | null | null | null | cc_to_json.py | msgoff/cc_2018_urls | 060a1e8433e6baabf6c879134e7f821d9bf0ec80 | [
"CC-BY-4.0"
] | null | null | null | import json
from tqdm import tqdm
import re
from sys import argv
f = open(argv[1])
data = f.read()
rows = re.findall('{.*?}',data)
f = open('{}.json'.format(argv[1]),'w')
for row in tqdm(rows):
f.write(row)
f.write('\n')
f.close()
| 15.125 | 39 | 0.61157 | 43 | 242 | 3.44186 | 0.511628 | 0.135135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0.173554 | 242 | 15 | 40 | 16.133333 | 0.73 | 0 | 0 | 0 | 0 | 0 | 0.061983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9303456b1c567536bd813147c493dc7b6c2c2697 | 3,344 | py | Python | Genetic algorithm/genetic_algorithm.py | astraszab/TSP-algorithms | ac67bf13b38b636a5b3eb01e354d1f9d74147bdd | [
"MIT"
] | 1 | 2021-04-21T06:34:12.000Z | 2021-04-21T06:34:12.000Z | Genetic algorithm/genetic_algorithm.py | astraszab/TSP-algorithms | ac67bf13b38b636a5b3eb01e354d1f9d74147bdd | [
"MIT"
] | null | null | null | Genetic algorithm/genetic_algorithm.py | astraszab/TSP-algorithms | ac67bf13b38b636a5b3eb01e354d1f9d74147bdd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 8 14:43:01 2019
@author: astar
"""
import random
import math
import matplotlib.pyplot as plt
from time import clock
def generate_random_nodes(size):
return [(random.uniform(0, size), random.uniform(0, size)) for i in range(size)]
def read_map(source):
with ... | 28.581197 | 110 | 0.580144 | 470 | 3,344 | 4.053191 | 0.259574 | 0.020997 | 0.018898 | 0.034646 | 0.173228 | 0.140682 | 0.075591 | 0 | 0 | 0 | 0 | 0.033773 | 0.273923 | 3,344 | 117 | 111 | 28.581197 | 0.750824 | 0.057715 | 0 | 0.141176 | 1 | 0 | 0.092038 | 0.007962 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.047059 | 0.011765 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
930500165cd8684e338f066b0252358bd9842f00 | 423 | py | Python | cli/clean_env.py | cms-sw/SCRAM | ca2e2b7293390df18556f1f2571f02e25cf57cd0 | [
"MIT"
] | 5 | 2015-09-15T15:07:43.000Z | 2021-11-15T08:07:47.000Z | cli/clean_env.py | cms-sw/SCRAM | ca2e2b7293390df18556f1f2571f02e25cf57cd0 | [
"MIT"
] | 24 | 2015-01-07T08:16:28.000Z | 2022-03-26T08:20:27.000Z | cli/clean_env.py | cms-sw/SCRAM | ca2e2b7293390df18556f1f2571f02e25cf57cd0 | [
"MIT"
] | 2 | 2018-10-08T11:31:44.000Z | 2021-11-15T08:01:12.000Z | import os
from subprocess import getstatusoutput as cmd
from __main__ import args
def clean_env():
for var in [e for e in os.environ.keys() if e.startswith("_SCRAM_SYSVAR_")]:
val = os.environ[var]
del os.environ[var]
var = var[14:]
if val:
os.environ[var] = val
... | 21.15 | 80 | 0.588652 | 61 | 423 | 3.934426 | 0.47541 | 0.1875 | 0.2 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0.295508 | 423 | 19 | 81 | 22.263158 | 0.798658 | 0 | 0 | 0.133333 | 0 | 0 | 0.035461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.2 | 0 | 0.333333 | 0.133333 | 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 |
930c7ddabf408fa1656229d274d5376cf0bc75f7 | 1,717 | py | Python | legion/sdk/legion/sdk/models/training_configuration.py | legion-platform/legion | db3a1d99f1005cb881b16af6075a806725123031 | [
"ECL-2.0",
"Apache-2.0"
] | 19 | 2018-05-20T17:06:55.000Z | 2022-01-04T14:15:09.000Z | legion/sdk/legion/sdk/models/training_configuration.py | legion-platform/legion | db3a1d99f1005cb881b16af6075a806725123031 | [
"ECL-2.0",
"Apache-2.0"
] | 917 | 2018-05-18T18:54:54.000Z | 2021-09-01T10:41:56.000Z | legion/sdk/legion/sdk/models/training_configuration.py | legion-platform/legion | db3a1d99f1005cb881b16af6075a806725123031 | [
"ECL-2.0",
"Apache-2.0"
] | 13 | 2018-07-23T18:09:51.000Z | 2019-08-05T15:37:30.000Z | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from legion.sdk.models.base_model_ import Model
from legion.sdk.models import util
class TrainingConfiguration(Model):
"""NOTE: This class is auto generated by th... | 26.415385 | 87 | 0.645894 | 200 | 1,717 | 5.35 | 0.335 | 0.176636 | 0.151402 | 0.065421 | 0.343925 | 0.208411 | 0.099065 | 0.099065 | 0.099065 | 0 | 0 | 0.012841 | 0.274316 | 1,717 | 64 | 88 | 26.828125 | 0.845907 | 0.430402 | 0 | 0.086957 | 0 | 0 | 0.06068 | 0.025485 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.217391 | 0 | 0.521739 | 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 |
930df3cf669463624d015240d16d919a2fa015ba | 9,839 | py | Python | genomicode/antibodypedialib.py | jefftc/changlab | 11da8c415afefcba0b0216238387c75aeb3a56ac | [
"MIT"
] | 9 | 2017-01-13T02:38:41.000Z | 2021-04-08T00:44:39.000Z | genomicode/antibodypedialib.py | jefftc/changlab | 11da8c415afefcba0b0216238387c75aeb3a56ac | [
"MIT"
] | null | null | null | genomicode/antibodypedialib.py | jefftc/changlab | 11da8c415afefcba0b0216238387c75aeb3a56ac | [
"MIT"
] | 4 | 2017-01-05T16:25:25.000Z | 2019-12-12T20:07:38.000Z | """
Functions:
search_gene
find_antibodies
"""
# _search_gene_raw
# _parse_gene_search
#
# _parse_gene_page_keyvalue
# _parse_gene_page_table
# _group_keyvalue_by_antibody
def search_gene(gene_name, wait=5):
# Return a URL or None if gene not found.
import urlparse
html = _search_gene_raw(gene_name, w... | 34.402098 | 76 | 0.577193 | 1,118 | 9,839 | 4.954383 | 0.22093 | 0.03033 | 0.012638 | 0.017332 | 0.217007 | 0.144791 | 0.127099 | 0.116628 | 0.083409 | 0.067521 | 0 | 0.013638 | 0.306942 | 9,839 | 285 | 77 | 34.522807 | 0.798651 | 0.265169 | 0 | 0.194969 | 0 | 0 | 0.146218 | 0 | 0 | 0 | 0 | 0 | 0.125786 | 0 | null | null | 0.006289 | 0.069182 | 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 |
930fb2deb30fda0401db4534a5584acb7b8fffed | 502 | py | Python | nbquestions/setup.py | callysto/nbplus | 030161f12b00d5305635d9311c6fcb080fe739b4 | [
"MIT"
] | 5 | 2019-08-02T16:36:53.000Z | 2020-04-24T16:17:11.000Z | nbquestions/setup.py | callysto/nbplus | 030161f12b00d5305635d9311c6fcb080fe739b4 | [
"MIT"
] | 9 | 2018-05-30T02:56:29.000Z | 2019-03-21T21:05:21.000Z | nbquestions/setup.py | callysto/nbplus | 030161f12b00d5305635d9311c6fcb080fe739b4 | [
"MIT"
] | 2 | 2018-08-01T21:59:47.000Z | 2021-09-30T10:38:29.000Z | from setuptools import setup
with open("README.md", "r") as f:
long_description = f.read()
setup(name='nbquestions',
version='0.0.1',
description='Helper functions for creating questions',
long_description=long_description,
long_description_content_type="text/markdown",
url='http://g... | 29.529412 | 60 | 0.673307 | 59 | 502 | 5.59322 | 0.762712 | 0.181818 | 0.115152 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007353 | 0.187251 | 502 | 16 | 61 | 31.375 | 0.801471 | 0 | 0 | 0 | 0 | 0 | 0.316733 | 0.043825 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 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 |
931c3ac99ba765aa06b4fb637e44da0ba4e448fe | 412 | py | Python | todovoodoo/core/tests/test_models.py | jlehker/bestlists | f560c14a057c4742146fd7ca4de71b96cdbb9e4c | [
"MIT"
] | null | null | null | todovoodoo/core/tests/test_models.py | jlehker/bestlists | f560c14a057c4742146fd7ca4de71b96cdbb9e4c | [
"MIT"
] | 6 | 2019-10-27T07:34:52.000Z | 2021-06-04T21:55:25.000Z | todovoodoo/core/tests/test_models.py | jlehker/bestlists | f560c14a057c4742146fd7ca4de71b96cdbb9e4c | [
"MIT"
] | null | null | null | import pytest
from datetime import date
from django.conf import settings
from todovoodoo.core.tests.factories import TodoListFactory
pytestmark = pytest.mark.django_db
def test_mark_complete(user: settings.AUTH_USER_MODEL):
today = date.today()
todo_list = TodoListFactory.create(owner=user)
todo = todo_... | 25.75 | 59 | 0.774272 | 57 | 412 | 5.421053 | 0.526316 | 0.07767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145631 | 412 | 15 | 60 | 27.466667 | 0.877841 | 0 | 0 | 0 | 0 | 0 | 0.021845 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
931e72e07d25f6d4e263024c1346ce6621a13d92 | 621 | py | Python | day10-1.py | RafaelOda/AdventOfCode2020 | ef6d85f7557667df627f10d1a35a0fc30cc83d2c | [
"MIT"
] | null | null | null | day10-1.py | RafaelOda/AdventOfCode2020 | ef6d85f7557667df627f10d1a35a0fc30cc83d2c | [
"MIT"
] | null | null | null | day10-1.py | RafaelOda/AdventOfCode2020 | ef6d85f7557667df627f10d1a35a0fc30cc83d2c | [
"MIT"
] | null | null | null | # Day 10 - Part 1
print "Day 10 - Part 1"
with open("./day10-input.txt") as f:
content = f.read().splitlines()
try:
numbers = [int(number_as_string) for number_as_string in content]
except TypeError as e:
print "Something was not a number"
raise e
# Append device
numbers.append(max(numbers) + 3)
numbers.sort(... | 15.525 | 66 | 0.703704 | 92 | 621 | 4.706522 | 0.51087 | 0.023095 | 0.04157 | 0.046189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0.198068 | 621 | 39 | 67 | 15.923077 | 0.821285 | 0.086957 | 0 | 0 | 0 | 0 | 0.10302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.217391 | 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 |
931f972ab8afe6a1ad6682b34afc3455b8c12d48 | 521 | py | Python | tests/test_math.py | TensorX/tensorx | 11d7727b055fbee29e122ffbfc7a39057aeeae40 | [
"Apache-2.0"
] | 5 | 2017-09-21T22:12:19.000Z | 2021-02-22T10:42:28.000Z | tests/test_math.py | TensorX/tensorx | 11d7727b055fbee29e122ffbfc7a39057aeeae40 | [
"Apache-2.0"
] | null | null | null | tests/test_math.py | TensorX/tensorx | 11d7727b055fbee29e122ffbfc7a39057aeeae40 | [
"Apache-2.0"
] | 2 | 2018-04-02T09:26:41.000Z | 2022-01-06T15:41:06.000Z | import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
import tensorx as tx
import numpy as np
import pytest
import tensorflow as tf
def test_sparse_dense_mul():
x = tf.random.uniform([2, 4])
s = tx.to_sparse(x)
v = tf.random.uniform([4, 3])
# matmul
mul0 = tf.matmul(x, v)
mul1 = tf.sparse.spar... | 19.296296 | 46 | 0.667946 | 88 | 521 | 3.772727 | 0.465909 | 0.099398 | 0.090361 | 0.10241 | 0.13253 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03163 | 0.211132 | 521 | 26 | 47 | 20.038462 | 0.776156 | 0.036468 | 0 | 0 | 0 | 0 | 0.042084 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.0625 | false | 0 | 0.3125 | 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 |
9329d2c9e84b50300ff333699eb7fcd43cd0e4a2 | 400 | py | Python | setup.py | jscott6/greengraph | bf745e78485f0acc1a95f27c0f391f3aba80f42e | [
"MIT"
] | null | null | null | setup.py | jscott6/greengraph | bf745e78485f0acc1a95f27c0f391f3aba80f42e | [
"MIT"
] | null | null | null | setup.py | jscott6/greengraph | bf745e78485f0acc1a95f27c0f391f3aba80f42e | [
"MIT"
] | null | null | null |
from setuptools import setup, find_packages
setup(
name = "Greengraph",
description = "A package to compute proportion og green land between two locations",
version = "0.1.0",
author = "James Scott",
author_email = "jas15@ic.ac.uk",
packages = find_packages(exclude = ['*test']),
scripts =... | 25 | 88 | 0.65 | 47 | 400 | 5.446809 | 0.851064 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015924 | 0.215 | 400 | 15 | 89 | 26.666667 | 0.799363 | 0 | 0 | 0 | 0 | 0 | 0.344221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
932fd7865007ceb3d0b812996b4851f213632487 | 2,513 | py | Python | tests/unittests/test_genes.py | alessandropalla/CoViD-19-risk-analysis | a7b9c83ca9fc525cb1e41bf429200bce171af8d1 | [
"Apache-2.0"
] | 7 | 2020-03-18T06:32:24.000Z | 2020-11-04T03:13:56.000Z | tests/unittests/test_genes.py | alessandropalla/CoViD-19-risk-analysis | a7b9c83ca9fc525cb1e41bf429200bce171af8d1 | [
"Apache-2.0"
] | null | null | null | tests/unittests/test_genes.py | alessandropalla/CoViD-19-risk-analysis | a7b9c83ca9fc525cb1e41bf429200bce171af8d1 | [
"Apache-2.0"
] | 4 | 2020-03-28T22:45:47.000Z | 2020-06-05T20:25:12.000Z | from algorithms.genetic.genes import PoissonGene, NormalGene, UniformGene, UniformIntGene
import numpy as np
import pytest
@pytest.mark.parametrize("value", np.linspace(0, 20, 10))
@pytest.mark.parametrize("min_value", np.linspace(0, 10, 10))
@pytest.mark.parametrize("delta", np.linspace(0, 10, 10))
def test_sample_p... | 49.27451 | 93 | 0.709908 | 386 | 2,513 | 4.471503 | 0.134715 | 0.12978 | 0.206837 | 0.106605 | 0.714368 | 0.662804 | 0.623986 | 0.623986 | 0.582851 | 0.582851 | 0 | 0.043876 | 0.129328 | 2,513 | 51 | 94 | 49.27451 | 0.744973 | 0 | 0 | 0.439024 | 0 | 0 | 0.054893 | 0 | 0 | 0 | 0 | 0 | 0.121951 | 1 | 0.121951 | false | 0 | 0.073171 | 0 | 0.195122 | 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 |
933035e80040936db95eaba43d0e53ebc7623c0c | 3,173 | py | Python | src/common/functools/__init__.py | atsu-kan/quml | 174fb68ef10c75307865a6af546d39c899a266cf | [
"Apache-2.0"
] | null | null | null | src/common/functools/__init__.py | atsu-kan/quml | 174fb68ef10c75307865a6af546d39c899a266cf | [
"Apache-2.0"
] | 1 | 2020-04-14T12:50:26.000Z | 2020-04-14T12:50:26.000Z | src/common/functools/__init__.py | atsu-kan/quml | 174fb68ef10c75307865a6af546d39c899a266cf | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 AIST
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softwar... | 34.48913 | 110 | 0.658683 | 356 | 3,173 | 5.570225 | 0.353933 | 0.083207 | 0.075643 | 0.062532 | 0.110439 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003219 | 0.21683 | 3,173 | 91 | 111 | 34.868132 | 0.794769 | 0.170501 | 0 | 0.090909 | 0 | 0 | 0.078678 | 0.009048 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.181818 | 0.022727 | 0.659091 | 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 |
9332a5544995897446771a5239ba71e9fdc6e676 | 4,142 | py | Python | laygo/generators/adc_sar/sampler_nmos_layout_generator.py | tinapiao/Software-IC-Automation | 74b23cd94aa6e4658b110e93b5deb635e014f3a6 | [
"BSD-3-Clause"
] | 26 | 2017-07-07T08:06:31.000Z | 2021-11-25T06:41:24.000Z | laygo/generators/adc_sar/sampler_nmos_layout_generator.py | tinapiao/Software-IC-Automation | 74b23cd94aa6e4658b110e93b5deb635e014f3a6 | [
"BSD-3-Clause"
] | 9 | 2016-12-28T03:08:29.000Z | 2019-01-30T16:00:28.000Z | laygo/generators/adc_sar/sampler_nmos_layout_generator.py | tinapiao/Software-IC-Automation | 74b23cd94aa6e4658b110e93b5deb635e014f3a6 | [
"BSD-3-Clause"
] | 10 | 2018-07-14T01:31:28.000Z | 2021-08-21T10:18:30.000Z | # -*- coding: utf-8 -*-
from __future__ import (absolute_import, division,
print_function, unicode_literals)
# noinspection PyUnresolvedReferences,PyCompatibility
from builtins import *
import cProfile
import pprint
import yaml
import bag
from bag.layout import RoutingGrid, TemplateDB
from abs... | 33.403226 | 102 | 0.621197 | 554 | 4,142 | 4.379061 | 0.312274 | 0.029678 | 0.062655 | 0.021022 | 0.189613 | 0.136026 | 0.11789 | 0.093982 | 0.075021 | 0.075021 | 0 | 0.031152 | 0.232738 | 4,142 | 123 | 103 | 33.674797 | 0.732222 | 0.124095 | 0 | 0 | 0 | 0 | 0.169573 | 0.022222 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.111111 | 0 | 0.111111 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
93462fcd861faf397feedad63174f680e861a41b | 1,608 | py | Python | mapped_drives.py | mrwizard82d1/pyutils | 42a4a563ffe6521893b99a1dee5ac046b9b4512a | [
"Apache-2.0"
] | null | null | null | mapped_drives.py | mrwizard82d1/pyutils | 42a4a563ffe6521893b99a1dee5ac046b9b4512a | [
"Apache-2.0"
] | null | null | null | mapped_drives.py | mrwizard82d1/pyutils | 42a4a563ffe6521893b99a1dee5ac046b9b4512a | [
"Apache-2.0"
] | null | null | null | """Manages mapped Windows drives."""
import win32net
class MappedDrives(object):
def __init__(self):
"""MappedDrives() -> o."""
def add(self, **kwargs):
"""o.add(**kwargs) -> None
Adds a mapping between drive (local) and share (remote).
The required keyword argume... | 29.236364 | 70 | 0.570896 | 176 | 1,608 | 5.142045 | 0.380682 | 0.092818 | 0.029834 | 0.037569 | 0.137017 | 0.137017 | 0.070718 | 0 | 0 | 0 | 0 | 0.015219 | 0.305348 | 1,608 | 54 | 71 | 29.777778 | 0.794987 | 0.28296 | 0 | 0.076923 | 0 | 0 | 0.085526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0.076923 | 0.038462 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9347efa7de33de00143b02c69920718906c0e681 | 563 | py | Python | gaphor/UML/states/copypaste.py | Texopolis/gaphor | 3b190620075fd413258af1e7a007b4b2167a7564 | [
"Apache-2.0"
] | 867 | 2018-01-09T00:19:09.000Z | 2022-03-31T02:49:23.000Z | gaphor/UML/states/copypaste.py | burakozturk16/gaphor | 86267a5200ac4439626d35d306dbb376c3800107 | [
"Apache-2.0"
] | 790 | 2018-01-13T23:47:07.000Z | 2022-03-31T16:04:27.000Z | gaphor/UML/states/copypaste.py | burakozturk16/gaphor | 86267a5200ac4439626d35d306dbb376c3800107 | [
"Apache-2.0"
] | 117 | 2018-01-09T02:24:49.000Z | 2022-03-23T08:07:42.000Z | from gaphor.diagram.copypaste import copy, copy_named_element
from gaphor.UML import State, Transition
@copy.register
def copy_state(element: State):
yield element.id, copy_named_element(element)
if element.entry:
yield from copy(element.entry)
if element.exit:
yield from copy(element.exit... | 26.809524 | 61 | 0.735346 | 75 | 563 | 5.413333 | 0.266667 | 0.08867 | 0.128079 | 0.197044 | 0.226601 | 0.226601 | 0.226601 | 0.226601 | 0.226601 | 0 | 0 | 0 | 0.184725 | 563 | 20 | 62 | 28.15 | 0.884532 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
934fb5908194fe404050696368dd01ea2833e70e | 1,800 | py | Python | selia/views/list_views/sampling_event_device_items.py | IslasGECI/selia | 9863c32cd45db13053a1d2add67f5bdc1871b791 | [
"BSD-4-Clause"
] | null | null | null | selia/views/list_views/sampling_event_device_items.py | IslasGECI/selia | 9863c32cd45db13053a1d2add67f5bdc1871b791 | [
"BSD-4-Clause"
] | 13 | 2020-01-07T21:53:50.000Z | 2022-01-13T01:53:50.000Z | selia/views/list_views/sampling_event_device_items.py | IslasGECI/selia | 9863c32cd45db13053a1d2add67f5bdc1871b791 | [
"BSD-4-Clause"
] | 1 | 2021-05-06T19:38:09.000Z | 2021-05-06T19:38:09.000Z | from irekua_database.models import SamplingEventDevice
from django.views.generic.detail import SingleObjectMixin
from django.utils.translation import gettext as _
from irekua_database.models import Item
from irekua_filters.items import items
from irekua_permissions.items import (
items as item_permissions)
from se... | 38.297872 | 81 | 0.750556 | 220 | 1,800 | 5.909091 | 0.295455 | 0.1 | 0.102308 | 0.070769 | 0.279231 | 0.167692 | 0.167692 | 0.083077 | 0.083077 | 0 | 0 | 0 | 0.163889 | 1,800 | 46 | 82 | 39.130435 | 0.863787 | 0 | 0 | 0.057143 | 0 | 0 | 0.129444 | 0.086667 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.2 | 0.028571 | 0.742857 | 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 |
9352f23e7dcb8cca4225fbb9fd609c9b372ec97d | 8,643 | py | Python | packages/taucmdr/cli/commands/trial/tests/test_create.py | jlinford/taucmdr | 6dbcf355bb62a048e0a3f29f0f04536a95a1e664 | [
"BSD-3-Clause"
] | null | null | null | packages/taucmdr/cli/commands/trial/tests/test_create.py | jlinford/taucmdr | 6dbcf355bb62a048e0a3f29f0f04536a95a1e664 | [
"BSD-3-Clause"
] | 9 | 2015-01-07T17:32:03.000Z | 2015-01-14T13:53:48.000Z | packages/taucmdr/cli/commands/trial/tests/test_create.py | jlinford/taucmdr | 6dbcf355bb62a048e0a3f29f0f04536a95a1e664 | [
"BSD-3-Clause"
] | 4 | 2015-02-04T17:50:43.000Z | 2015-04-14T04:46:17.000Z | # -*- coding: utf-8 -*-
#
# Copyright (c) 2016, ParaTools, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# (1) Redistributions of source code must retain the above copyright notice,
# t... | 55.050955 | 116 | 0.694666 | 1,012 | 8,643 | 5.809289 | 0.241107 | 0.042864 | 0.083858 | 0.081647 | 0.629019 | 0.59585 | 0.544821 | 0.50927 | 0.502466 | 0.502466 | 0 | 0.008335 | 0.19484 | 8,643 | 156 | 117 | 55.403846 | 0.836471 | 0.225616 | 0 | 0.616822 | 0 | 0 | 0.221803 | 0.05187 | 0 | 0 | 0 | 0 | 0.654206 | 1 | 0.074766 | false | 0 | 0.093458 | 0 | 0.17757 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9367da1a9968d0e60dec429363f45a67feae13c9 | 265 | py | Python | Curso-em-video/115-exerciciospython/d049_tabuada2.py | FabianoBill/Estudos-em-python | 32c3f9e37b83630c923ff7c0c77aa7d80fbc3174 | [
"MIT"
] | 1 | 2021-05-24T19:44:04.000Z | 2021-05-24T19:44:04.000Z | Curso-em-video/115-exerciciospython/d049_tabuada2.py | FabianoBill/Estudos-em-python | 32c3f9e37b83630c923ff7c0c77aa7d80fbc3174 | [
"MIT"
] | null | null | null | Curso-em-video/115-exerciciospython/d049_tabuada2.py | FabianoBill/Estudos-em-python | 32c3f9e37b83630c923ff7c0c77aa7d80fbc3174 | [
"MIT"
] | null | null | null | # Exercício Python 49: Refaça o DESAFIO 9, mostrando a tabuada de um número que o usuário escolher, só que agora utilizando um laço for.
n = int(input("Quer saber a tabuada de qual número? "))
for c in range(1, 11):
print(f"{n} x {c:2} = {n * c:2}")
c += 1 | 44.166667 | 136 | 0.656604 | 51 | 265 | 3.411765 | 0.705882 | 0.091954 | 0.114943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.218868 | 265 | 6 | 137 | 44.166667 | 0.797101 | 0.50566 | 0 | 0 | 0 | 0 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
9369ba7dacae939fc5810c635c4a7bd183714302 | 4,175 | py | Python | fpga/myhdl/regfile.py | wingel/sds7102 | 77d85533d2ddfd26a0fb45f3ceff4cf8e6ff447a | [
"MIT"
] | 47 | 2016-07-16T20:03:19.000Z | 2021-12-21T03:35:41.000Z | fpga/myhdl/regfile.py | wingel/sds7102 | 77d85533d2ddfd26a0fb45f3ceff4cf8e6ff447a | [
"MIT"
] | null | null | null | fpga/myhdl/regfile.py | wingel/sds7102 | 77d85533d2ddfd26a0fb45f3ceff4cf8e6ff447a | [
"MIT"
] | 15 | 2016-07-29T08:10:11.000Z | 2020-11-28T15:49:55.000Z | #! /usr/bin/python
from myhdl import Signal, SignalType, always_comb, always_seq, intbv
from common.timebase import sec
from common.util import rename_interface
from wb import WbSlave
class Port(object):
def __init__(self, value):
self.STB = Signal(False)
self.WE = Signal(False)
self.DAT_I = Signa... | 27.11039 | 80 | 0.577725 | 561 | 4,175 | 4.124777 | 0.163993 | 0.020743 | 0.028522 | 0.029386 | 0.321953 | 0.228176 | 0.114952 | 0.08038 | 0.043215 | 0 | 0 | 0.006606 | 0.311138 | 4,175 | 153 | 81 | 27.287582 | 0.797983 | 0.11018 | 0 | 0.19802 | 0 | 0 | 0.011348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.039604 | null | null | 0.049505 | 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 |
936e1abab9adf4651be46ace11b264390a9ad2a2 | 671 | py | Python | pypipe-gui/widgets/combobox.py | ctlab/pypipe | f20da66d915a0503ff367b648987c75620814b33 | [
"MIT"
] | 2 | 2015-02-19T14:25:31.000Z | 2017-07-18T20:49:28.000Z | pypipe-gui/widgets/combobox.py | ctlab/pypipe | f20da66d915a0503ff367b648987c75620814b33 | [
"MIT"
] | null | null | null | pypipe-gui/widgets/combobox.py | ctlab/pypipe | f20da66d915a0503ff367b648987c75620814b33 | [
"MIT"
] | null | null | null | import inspect
from PyQt4.QtGui import *
class ComboBox(QComboBox):
def __init__(self, parent=None):
super(ComboBox, self).__init__(parent)
self.data = []
def add_classes_from_module(self, module):
for name, obj in inspect.getmembers(module):
if inspect.isclass(obj):
... | 24.851852 | 52 | 0.61699 | 85 | 671 | 4.682353 | 0.4 | 0.080402 | 0.085427 | 0.105528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004082 | 0.269747 | 671 | 26 | 53 | 25.807692 | 0.808163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.105263 | 0.052632 | 0.578947 | 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 |
936eca64dee02568567ff2a7ba1ceaa4d7dc5ef8 | 2,183 | py | Python | mobox/mesos.py | caesar0301/python-mobox | 3761c021228417b3e473508e5584e2c3c0f0ceee | [
"MIT"
] | 2 | 2018-01-20T11:42:44.000Z | 2018-01-20T14:18:33.000Z | mobox/mesos.py | caesar0301/python-mobox | 3761c021228417b3e473508e5584e2c3c0f0ceee | [
"MIT"
] | null | null | null | mobox/mesos.py | caesar0301/python-mobox | 3761c021228417b3e473508e5584e2c3c0f0ceee | [
"MIT"
] | null | null | null | import graphsim as gs
from munkres import Munkres
import networkx as nx
import numpy as np
__all__ = ['Mesos']
class Mesos(object):
""" Extract mesostructure for two mobility graphs.
"""
def __init__(self, G1, G2, nattr='weight', eattr='weight', lamb = 0.5):
G1, G2 = sorted([G1, G2], key=lambda x... | 31.637681 | 112 | 0.548328 | 333 | 2,183 | 3.474474 | 0.285285 | 0.036301 | 0.013829 | 0.034572 | 0.150389 | 0.117545 | 0.091616 | 0.063959 | 0.063959 | 0.063959 | 0 | 0.070521 | 0.278974 | 2,183 | 68 | 113 | 32.102941 | 0.664549 | 0.087952 | 0 | 0 | 0 | 0 | 0.020374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9374aa1adf593bdaded32912b4fc82b736052215 | 2,868 | py | Python | src/amqencode/video.py | ayyu/amq-encoding | a5ad8d2fd77868d62c00c9172f5ebbb4ab0a6609 | [
"MIT"
] | null | null | null | src/amqencode/video.py | ayyu/amq-encoding | a5ad8d2fd77868d62c00c9172f5ebbb4ab0a6609 | [
"MIT"
] | null | null | null | src/amqencode/video.py | ayyu/amq-encoding | a5ad8d2fd77868d62c00c9172f5ebbb4ab0a6609 | [
"MIT"
] | null | null | null | __all__ = [
'vp9_settings',
'resolutions',
'probe_dimensions',
'encode_webm'
]
from os import devnull
from fractions import Fraction
import subprocess
from typing import Dict
import ffmpeg
from . import common
vp9_settings = {
'c:v': 'libvpx-vp9',
'b:v': 0,
'g': 119,
'crf': 20,
'pix_fmt': 'yuv4... | 24.93913 | 78 | 0.639819 | 404 | 2,868 | 4.430693 | 0.346535 | 0.040223 | 0.02514 | 0.020112 | 0.118436 | 0.118436 | 0.082682 | 0.082682 | 0.082682 | 0.04581 | 0 | 0.022807 | 0.205021 | 2,868 | 114 | 79 | 25.157895 | 0.762281 | 0.301953 | 0 | 0 | 0 | 0 | 0.161438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029851 | false | 0.119403 | 0.089552 | 0 | 0.134328 | 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 |
93755e276c601cf811bcdc31d9bed27531977d37 | 20,743 | py | Python | Pseudo Code/pis-Psudocode.py | tanujit/Patient-Information-System | 41a408553d00e575d3206cc6f33b1b0ac9baf3fc | [
"MIT"
] | 1 | 2020-12-07T07:38:35.000Z | 2020-12-07T07:38:35.000Z | Pseudo Code/pis-Psudocode.py | tanujit/Patient-Information-System | 41a408553d00e575d3206cc6f33b1b0ac9baf3fc | [
"MIT"
] | null | null | null | Pseudo Code/pis-Psudocode.py | tanujit/Patient-Information-System | 41a408553d00e575d3206cc6f33b1b0ac9baf3fc | [
"MIT"
] | null | null | null | # PIS
import tkinter
import tkinter.ttk
import tkinter.messagebox
import sqlite3
CLASS Database:
FUNCTION __init__(self):
dbConnection <- sqlite3.connect("dbFile.db")
dbCursor <- dbConnection.cursor()
ENDFUNCTION
FUNCTION __del__(self):
dbCursor.close()
dbConnection.clo... | 51.217284 | 303 | 0.57846 | 2,324 | 20,743 | 5.148451 | 0.08864 | 0.05817 | 0.051149 | 0.082741 | 0.695194 | 0.665775 | 0.585875 | 0.558713 | 0.52102 | 0.496699 | 0 | 0.038144 | 0.259365 | 20,743 | 404 | 304 | 51.344059 | 0.740676 | 0 | 0 | 0.573487 | 0 | 0 | 0.056143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011527 | 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 |
937a77bd90d4f55c40cc2ccc553371a67452ca21 | 10,114 | py | Python | flashbake/commit.py | gadgetechie/flashbake | c96a942a98a338b3e91d5ccb0a24cca5be8bb442 | [
"BSD-2-Clause"
] | 1 | 2016-05-09T14:02:14.000Z | 2016-05-09T14:02:14.000Z | flashbake/commit.py | gadgetechie/flashbake | c96a942a98a338b3e91d5ccb0a24cca5be8bb442 | [
"BSD-2-Clause"
] | null | null | null | flashbake/commit.py | gadgetechie/flashbake | c96a942a98a338b3e91d5ccb0a24cca5be8bb442 | [
"BSD-2-Clause"
] | null | null | null | #
# commit.py
# Parses a project's control file and wraps git operations, calling the context
# script to build automatic commit messages as needed.
import os
import sys
import re
import datetime
import time
import logging
import context
# this import is only valid for Linux
import commands
# Import smtplib for the... | 35.738516 | 109 | 0.636346 | 1,336 | 10,114 | 4.671407 | 0.255988 | 0.037174 | 0.021311 | 0.016824 | 0.106714 | 0.058004 | 0.042301 | 0.025957 | 0.013459 | 0 | 0 | 0.002988 | 0.2719 | 10,114 | 282 | 110 | 35.865248 | 0.844514 | 0.147024 | 0 | 0.179894 | 0 | 0.010582 | 0.179365 | 0.003804 | 0 | 0 | 0.00107 | 0 | 0 | 0 | null | null | 0 | 0.068783 | 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 |
9380a4dd0500ea2d6e3ba404f8cbe8bf50bd3619 | 779 | py | Python | 2018/02/2018_02.py | tobiasvl/adventofcode2017 | 2acc1d30cafb6b73f1cb29335fd790e3864df8fc | [
"CC0-1.0"
] | 3 | 2018-12-03T06:42:01.000Z | 2020-04-12T09:49:45.000Z | 2018/02/2018_02.py | tobiasvl/adventofcode2017 | 2acc1d30cafb6b73f1cb29335fd790e3864df8fc | [
"CC0-1.0"
] | null | null | null | 2018/02/2018_02.py | tobiasvl/adventofcode2017 | 2acc1d30cafb6b73f1cb29335fd790e3864df8fc | [
"CC0-1.0"
] | null | null | null | import string
from itertools import combinations
with open('input.txt') as f:
ids = [line.strip() for line in f]
twos = 0
threes = 0
for idx in ids:
idx_list = [a for a in idx]
twos_found = False
threes_found = False
for x in string.ascii_lowercase:
if idx_list.count(x) == 2 and not twos_... | 24.34375 | 55 | 0.585366 | 122 | 779 | 3.639344 | 0.385246 | 0.045045 | 0.040541 | 0.063063 | 0.148649 | 0.081081 | 0.081081 | 0 | 0 | 0 | 0 | 0.052434 | 0.314506 | 779 | 31 | 56 | 25.129032 | 0.779026 | 0 | 0 | 0 | 0 | 0 | 0.011553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.08 | 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 |
fa7c2b52ee1b18a1f626b1951b99b4e6f395fbb1 | 3,311 | py | Python | backend/main.py | QEDK/clarity | cca58cce33e273b77190de50a5bdde3f5a199c4c | [
"Apache-2.0"
] | 4 | 2020-11-11T11:37:31.000Z | 2021-09-26T12:14:59.000Z | backend/main.py | Ajitesh13/clarity | cca58cce33e273b77190de50a5bdde3f5a199c4c | [
"Apache-2.0"
] | 25 | 2020-11-09T14:26:41.000Z | 2022-02-10T02:35:25.000Z | backend/main.py | Ajitesh13/clarity | cca58cce33e273b77190de50a5bdde3f5a199c4c | [
"Apache-2.0"
] | 3 | 2020-11-09T16:22:53.000Z | 2021-09-26T12:15:01.000Z | import databases
import os
import sqlalchemy
import sys
import urllib
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from nanoid import generate
from pathlib import Path
from pydantic import BaseModel
sys.path.append(str(Path(__file__).resolve().parents[1].joinpath("ml")))
from processte... | 29.300885 | 96 | 0.717306 | 441 | 3,311 | 5.179138 | 0.29932 | 0.043345 | 0.031524 | 0.030648 | 0.181699 | 0.144921 | 0.144921 | 0.144921 | 0.058231 | 0 | 0 | 0.003233 | 0.159166 | 3,311 | 112 | 97 | 29.5625 | 0.81717 | 0.046814 | 0 | 0.119048 | 1 | 0 | 0.107902 | 0.039035 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.02381 | 0.130952 | 0 | 0.297619 | 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 |
fa7ce44620b199bcbaec079c91926b6134ace663 | 2,813 | py | Python | cory_blog/urls.py | akindele214/181hub_2 | 48b8814b5f66ad87f9a54721506076ddf70fe9bc | [
"MIT"
] | 1 | 2020-05-20T08:42:49.000Z | 2020-05-20T08:42:49.000Z | cory_blog/urls.py | akindele214/181hub_2 | 48b8814b5f66ad87f9a54721506076ddf70fe9bc | [
"MIT"
] | 14 | 2020-03-24T17:31:08.000Z | 2022-03-11T23:59:30.000Z | cory_blog/urls.py | akindele214/181hub_2 | 48b8814b5f66ad87f9a54721506076ddf70fe9bc | [
"MIT"
] | 1 | 2020-04-13T12:37:37.000Z | 2020-04-13T12:37:37.000Z | from django.contrib import admin
from django.urls import path, include
from user import views as user_views
from django.contrib.auth import views as auth_views
from django.conf import settings
from django.conf.urls.static import static
import notifications.urls
from django.conf.urls import url
# from chat import views ... | 55.156863 | 178 | 0.728759 | 371 | 2,813 | 5.32345 | 0.229111 | 0.078987 | 0.042532 | 0.054684 | 0.118481 | 0.070886 | 0.070886 | 0 | 0 | 0 | 0 | 0.00079 | 0.099538 | 2,813 | 50 | 179 | 56.26 | 0.778918 | 0.218272 | 0 | 0 | 0 | 0 | 0.304984 | 0.146319 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.121212 | 0.242424 | 0 | 0.242424 | 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 |
fa857f246900a75f3d94408449b87ca8ce9643f1 | 357 | py | Python | marketing/migrations/0012_auto_20190909_1621.py | madhu0309/Django-Crm | a07b250372d996a29bd567cf7aa365cf66fb9c05 | [
"MIT"
] | 2 | 2020-07-28T12:32:57.000Z | 2020-08-20T11:47:07.000Z | marketing/migrations/0012_auto_20190909_1621.py | madhu0309/Django-Crm | a07b250372d996a29bd567cf7aa365cf66fb9c05 | [
"MIT"
] | 1 | 2020-03-27T17:02:11.000Z | 2020-04-03T17:21:24.000Z | marketing/migrations/0012_auto_20190909_1621.py | madhu0309/Django-Crm | a07b250372d996a29bd567cf7aa365cf66fb9c05 | [
"MIT"
] | 5 | 2020-03-21T09:55:05.000Z | 2020-04-03T06:51:02.000Z | # Generated by Django 2.2.4 on 2019-09-09 10:51
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('marketing', '0011_auto_20190904_1143'),
]
operations = [
migrations.AlterModelOptions(
name='duplicatecontacts',
options={'o... | 19.833333 | 49 | 0.59944 | 35 | 357 | 6.028571 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119691 | 0.27451 | 357 | 17 | 50 | 21 | 0.694981 | 0.12605 | 0 | 0 | 1 | 0 | 0.190323 | 0.074194 | 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 |
fa8987957cc661dd80286585e71c702651c4f394 | 4,516 | py | Python | nel/model/store/redis.py | psyML/nel | 5ce1f0b2ef6246f27113ffe2d80d9b95f05f884e | [
"MIT"
] | 196 | 2015-03-17T15:39:00.000Z | 2021-01-07T00:26:17.000Z | nel/model/store/redis.py | psyML/nel | 5ce1f0b2ef6246f27113ffe2d80d9b95f05f884e | [
"MIT"
] | 28 | 2015-03-17T23:55:38.000Z | 2019-11-12T14:10:02.000Z | nel/model/store/redis.py | psyML/nel | 5ce1f0b2ef6246f27113ffe2d80d9b95f05f884e | [
"MIT"
] | 52 | 2015-03-06T21:28:03.000Z | 2020-12-06T22:26:15.000Z | from __future__ import absolute_import
import redis
import re
import ujson as json
from itertools import islice, izip
from ..data import Store, ObjectStore, FieldStore, SetStore
from nel import logging
log = logging.getLogger()
class RedisStore(Store):
""" Abstract base class for stores built on redis """
de... | 31.144828 | 75 | 0.60186 | 609 | 4,516 | 4.302135 | 0.206897 | 0.042748 | 0.037786 | 0.036641 | 0.307252 | 0.188168 | 0.126718 | 0.126718 | 0.126718 | 0.080153 | 0 | 0.005793 | 0.273694 | 4,516 | 144 | 76 | 31.361111 | 0.792988 | 0.009965 | 0 | 0.162162 | 0 | 0.009009 | 0.056912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.27027 | false | 0 | 0.063063 | 0.099099 | 0.468468 | 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 |
fa89dcfb7a47bc2cdfada56578550f8bf6de3b0c | 9,885 | py | Python | comm.py | yalidu/ic3net | 6edcbe606ba2191467e80edeafe97d3bdaf0e17f | [
"MIT"
] | null | null | null | comm.py | yalidu/ic3net | 6edcbe606ba2191467e80edeafe97d3bdaf0e17f | [
"MIT"
] | null | null | null | comm.py | yalidu/ic3net | 6edcbe606ba2191467e80edeafe97d3bdaf0e17f | [
"MIT"
] | null | null | null | import torch
import torch.nn.functional as F
from torch import nn
from models import MLP
from action_utils import select_action, translate_action
class CommNetMLP(nn.Module):
"""
MLP based CommNet. Uses communication vector to communicate info
between agents
"""
def __init__(self, args, num_inputs... | 38.613281 | 107 | 0.58432 | 1,288 | 9,885 | 4.302795 | 0.180901 | 0.039156 | 0.041682 | 0.022735 | 0.252797 | 0.189101 | 0.147781 | 0.108625 | 0.103212 | 0.089498 | 0 | 0.005701 | 0.325645 | 9,885 | 255 | 108 | 38.764706 | 0.825683 | 0.289631 | 0 | 0.229008 | 0 | 0 | 0.009603 | 0 | 0 | 0 | 0 | 0.003922 | 0 | 1 | 0.045802 | false | 0.053435 | 0.038168 | 0.007634 | 0.129771 | 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 |
fa95963739702e54ae221d79a35f0cbd42d8aa44 | 4,583 | py | Python | tests/test_dlna.py | danielschenk/simpletr64 | 31081139f4e6c85084a56de1617df73927135466 | [
"Apache-2.0"
] | 12 | 2016-03-27T11:49:13.000Z | 2021-03-13T14:23:01.000Z | tests/test_dlna.py | tobyp/simpletr64 | 168ba8b50d830d44a6c48c7d71033ba1939c42a8 | [
"Apache-2.0"
] | 4 | 2016-01-11T20:18:20.000Z | 2021-03-13T20:40:46.000Z | tests/test_dlna.py | tobyp/simpletr64 | 168ba8b50d830d44a6c48c7d71033ba1939c42a8 | [
"Apache-2.0"
] | 11 | 2016-01-11T15:49:44.000Z | 2021-03-13T22:56:29.000Z |
import unittest
from simpletr64.devicetr64 import DeviceTR64
class TestLan(unittest.TestCase):
def test_AmountOfHostsConnected(self):
data = """<?xml version="10"?>
<root
xmlns="urn:schemas-upnp-org:device-1-0"
xmlns:ms="urn:microsoft-com:wmc-1-0"
xmlns:pnpx="http://schemasmicrosoftcom/windows/pnp... | 43.647619 | 411 | 0.611826 | 439 | 4,583 | 6.280182 | 0.300683 | 0.035546 | 0.02539 | 0.030831 | 0.281103 | 0.236126 | 0.213275 | 0.154516 | 0.134929 | 0.134929 | 0 | 0.027631 | 0.257691 | 4,583 | 105 | 412 | 43.647619 | 0.782775 | 0 | 0 | 0.306122 | 0 | 0.020408 | 0.925158 | 0.38861 | 0 | 0 | 0 | 0 | 0.010204 | 1 | 0.010204 | false | 0 | 0.020408 | 0 | 0.040816 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fa9a2d478cdea5927f9d92920d0860abfe6de780 | 1,979 | py | Python | code/00_7_summarise_cleaned_ABS_csv_files.py | carlhiggs/urban_liveability_index | 61decb632e0b0db28c181fe62c548f2b338cc47c | [
"MIT"
] | null | null | null | code/00_7_summarise_cleaned_ABS_csv_files.py | carlhiggs/urban_liveability_index | 61decb632e0b0db28c181fe62c548f2b338cc47c | [
"MIT"
] | null | null | null | code/00_7_summarise_cleaned_ABS_csv_files.py | carlhiggs/urban_liveability_index | 61decb632e0b0db28c181fe62c548f2b338cc47c | [
"MIT"
] | null | null | null | # Purpose: Following clean up and preparation of downloaded ABS data, this script will provide a summary
# Display on screen and write a csv file with summary data for input csv file(s)
# SUMMARY OUTPUT FIELDS, by variable excluding index (col 1):
# count mean std min 25% 50% 75% max
# Author... | 33.542373 | 133 | 0.699343 | 274 | 1,979 | 5 | 0.49635 | 0.030657 | 0.043796 | 0.043796 | 0.065693 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013068 | 0.187974 | 1,979 | 58 | 134 | 34.12069 | 0.839452 | 0.321374 | 0 | 0.137931 | 0 | 0.034483 | 0.260181 | 0.03997 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.344828 | 0 | 0.344828 | 0.103448 | 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 |
faa4a910e4eca5242d2746e710e0575ad2329e2a | 629 | py | Python | network.py | iamsushanth/system-health-check | 13fd1a7c18fc614c1a71402825bbdc717d94c06d | [
"MIT"
] | null | null | null | network.py | iamsushanth/system-health-check | 13fd1a7c18fc614c1a71402825bbdc717d94c06d | [
"MIT"
] | null | null | null | network.py | iamsushanth/system-health-check | 13fd1a7c18fc614c1a71402825bbdc717d94c06d | [
"MIT"
] | null | null | null | import requests
import socket
import shutil
import psutil
def check_localhost():
localhost = socket.gethostbyname('localhost')
return localhost == '127.0.0.1'
def connectivity_check():
request = requests.get('https://www.google.com')
return request.ok
def check_disk_usage(disk):
du = shutil.disk_usage(disk)
f... | 20.290323 | 54 | 0.736089 | 91 | 629 | 4.934066 | 0.461538 | 0.053452 | 0.062361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025735 | 0.135135 | 629 | 30 | 55 | 20.966667 | 0.799632 | 0 | 0 | 0 | 0 | 0 | 0.130573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.173913 | 0 | 0.521739 | 0.130435 | 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 |
faa511d764f3f5873f589de492a9b8dbe7076f28 | 686 | py | Python | src/ros_vision_interaction/setup.py | HaaaO/vision-project | 72256af07834195cfe52ac344aee5effcd0da978 | [
"MIT"
] | null | null | null | src/ros_vision_interaction/setup.py | HaaaO/vision-project | 72256af07834195cfe52ac344aee5effcd0da978 | [
"MIT"
] | 21 | 2020-09-09T18:55:58.000Z | 2021-07-26T19:42:46.000Z | src/ros_vision_interaction/setup.py | HaaaO/vision-project | 72256af07834195cfe52ac344aee5effcd0da978 | [
"MIT"
] | 6 | 2020-12-20T17:19:29.000Z | 2021-08-09T22:33:04.000Z | #!/usr/bin/env python
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
import os
package_dirs = {
'controllers': os.path.join('src', 'vision-interaction', 'controllers'),
'interaction_builder': os.path.join('src', 'vision-interaction', 'interaction_builder'),
'... | 34.3 | 94 | 0.734694 | 84 | 686 | 5.77381 | 0.357143 | 0.061856 | 0.103093 | 0.134021 | 0.247423 | 0.247423 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107872 | 686 | 19 | 95 | 36.105263 | 0.792484 | 0.029155 | 0 | 0 | 1 | 0 | 0.392481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
faab8bded40d32e1f73e0e4b940ee30ecd215504 | 3,938 | py | Python | backend/cart/models.py | sud0su/django-ecommerce-api | cfd5d9d94965759c9c0130ade345f24c36fd96ee | [
"MIT"
] | null | null | null | backend/cart/models.py | sud0su/django-ecommerce-api | cfd5d9d94965759c9c0130ade345f24c36fd96ee | [
"MIT"
] | 3 | 2020-02-12T00:16:45.000Z | 2021-06-10T21:31:15.000Z | backend/cart/models.py | sud0su/django-ecommerce-api | cfd5d9d94965759c9c0130ade345f24c36fd96ee | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.translation import gettext as _
from django.conf import settings
from decimal import Decimal
from product.models import Product, ProductGroup
from reference.models import Currency, Category
# Create your models here.
class CartRule(models.Model):
name = models.CharFie... | 53.945205 | 134 | 0.762316 | 500 | 3,938 | 5.742 | 0.222 | 0.078022 | 0.068269 | 0.078022 | 0.458725 | 0.449321 | 0.449321 | 0.429119 | 0.429119 | 0.402647 | 0 | 0.008708 | 0.12519 | 3,938 | 72 | 135 | 54.694444 | 0.824673 | 0.006094 | 0 | 0.258065 | 0 | 0 | 0.098926 | 0.006902 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016129 | false | 0 | 0.096774 | 0.016129 | 0.903226 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
fab0f724283a7c18f2cc97b35fcf160eb6626f39 | 329 | py | Python | test/test_foreach.py | FacelessLord/FINQ | 6498d8136fd78b1834b7ac265353b49da4c1cb73 | [
"Apache-2.0"
] | null | null | null | test/test_foreach.py | FacelessLord/FINQ | 6498d8136fd78b1834b7ac265353b49da4c1cb73 | [
"Apache-2.0"
] | null | null | null | test/test_foreach.py | FacelessLord/FINQ | 6498d8136fd78b1834b7ac265353b49da4c1cb73 | [
"Apache-2.0"
] | null | null | null | from finq import FINQ
def collector(l: list):
def write(s: str):
l.append(s)
write.collector = l
return write
def test_foreach():
a = [1, 2, 5, 7]
expected = ['1', '2', '5', '7']
mock = collector([])
a_f = FINQ(a)
a_f.map(str).for_each(mock)
assert mock.collector == ... | 14.304348 | 37 | 0.553191 | 50 | 329 | 3.56 | 0.52 | 0.11236 | 0.033708 | 0.044944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034043 | 0.285714 | 329 | 22 | 38 | 14.954545 | 0.723404 | 0 | 0 | 0 | 0 | 0 | 0.012158 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.384615 | 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 |
fac29404b92e979e437c53435e72f31783afabc1 | 5,103 | py | Python | lib/tc.py | timbarnes/PyRoaster | b55fd84bdd6991345232a7b976a5743555807f62 | [
"BSD-2-Clause"
] | null | null | null | lib/tc.py | timbarnes/PyRoaster | b55fd84bdd6991345232a7b976a5743555807f62 | [
"BSD-2-Clause"
] | 5 | 2021-12-14T05:51:16.000Z | 2021-12-14T05:58:18.000Z | lib/tc.py | timbarnes/PyRoaster | b55fd84bdd6991345232a7b976a5743555807f62 | [
"BSD-2-Clause"
] | null | null | null | """
Thermocouple library.
Configure ADC, read ambient, read thermocouples, and calculate temperatures.
"""
from mcp9800 import MCP9800
class OutOfRangeError(Exception):
pass
class TC(object):
"""
Thermocouple interface using MCP3428
"""
_temps = [None, None, None, None]
_count = 0 # ... | 38.08209 | 151 | 0.568489 | 845 | 5,103 | 3.395266 | 0.433136 | 0.013942 | 0.008365 | 0.00488 | 0.094109 | 0.085047 | 0.064134 | 0.064134 | 0.054374 | 0.054374 | 0 | 0.24679 | 0.29806 | 5,103 | 134 | 152 | 38.08209 | 0.55416 | 0.334705 | 0 | 0.03125 | 0 | 0 | 0.04813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0.03125 | 0.015625 | 0 | 0.3125 | 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 |
fac6390e7daf3418b7aba583f661544ce5986aa3 | 713 | py | Python | startifact/parameters/latest_version.py | cariad/startifact | ef0b855ca2061f9e6982ed28c63b3da4c5d1464d | [
"MIT"
] | null | null | null | startifact/parameters/latest_version.py | cariad/startifact | ef0b855ca2061f9e6982ed28c63b3da4c5d1464d | [
"MIT"
] | 15 | 2021-11-09T13:22:57.000Z | 2021-12-17T12:24:27.000Z | startifact/parameters/latest_version.py | cariad/startifact | ef0b855ca2061f9e6982ed28c63b3da4c5d1464d | [
"MIT"
] | null | null | null | from typing import Optional
from boto3.session import Session
from startifact.parameters.parameter import Parameter
class LatestVersionParameter(Parameter[str]):
"""
Systems Manager parameter that holds the latest version number of an
artifact.
"""
def __init__(
self,
project: s... | 23.766667 | 72 | 0.639551 | 83 | 713 | 5.325301 | 0.493976 | 0.054299 | 0.067873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001894 | 0.259467 | 713 | 29 | 73 | 24.586207 | 0.835227 | 0.109397 | 0 | 0 | 0 | 0 | 0.050407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.111111 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
fac647e99eb4b232d4eadd14c023c139c8f4ebc4 | 5,786 | py | Python | modules/VoiceAssistent/voice_assistent.py | drillby/voice_assistent | 237f7a17fe2a08e4cb80f2c74ef3dd719487c5be | [
"MIT"
] | null | null | null | modules/VoiceAssistent/voice_assistent.py | drillby/voice_assistent | 237f7a17fe2a08e4cb80f2c74ef3dd719487c5be | [
"MIT"
] | null | null | null | modules/VoiceAssistent/voice_assistent.py | drillby/voice_assistent | 237f7a17fe2a08e4cb80f2c74ef3dd719487c5be | [
"MIT"
] | null | null | null | import datetime
import json
import os
import platform
import subprocess
from typing import List
import playsound
import speech_recognition as sr
from gtts import gTTS
from ..Spotify import Album, Artist, Playlist, Track
track = Track.Track()
playlist = Playlist.Playlist()
album = Album.Album()
artist = Artist.Artist... | 25.830357 | 84 | 0.52627 | 664 | 5,786 | 4.48494 | 0.228916 | 0.028207 | 0.021491 | 0.030557 | 0.307253 | 0.271995 | 0.248489 | 0.175621 | 0.119208 | 0.119208 | 0 | 0.007979 | 0.350156 | 5,786 | 223 | 85 | 25.946188 | 0.784043 | 0.133598 | 0 | 0.379562 | 0 | 0 | 0.110901 | 0.040748 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145985 | false | 0.051095 | 0.072993 | 0 | 0.343066 | 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 |
fade879ff8f99a9c55357829aa65c270a8eaafed | 927 | py | Python | models/mututal_info.py | Rufaim/Deep-InfoMax | 39d754d4fa388b79d17ef7c12c82d5da21787cc0 | [
"MIT"
] | null | null | null | models/mututal_info.py | Rufaim/Deep-InfoMax | 39d754d4fa388b79d17ef7c12c82d5da21787cc0 | [
"MIT"
] | null | null | null | models/mututal_info.py | Rufaim/Deep-InfoMax | 39d754d4fa388b79d17ef7c12c82d5da21787cc0 | [
"MIT"
] | null | null | null | import tensorflow as tf
from enum import Enum
# Note all functions below represent negative scores.
# Thus minimization of a score means maximization of the corresponding entropy
class MutualInfoType(Enum):
JS = "Jensen-Shannon"
DV = "Donsker-Varadhan"
def get_mutual_info_scorer(type: MutualInfoType):
... | 28.090909 | 78 | 0.745415 | 135 | 927 | 4.933333 | 0.42963 | 0.054054 | 0.072072 | 0.096096 | 0.141141 | 0.114114 | 0.114114 | 0.114114 | 0.114114 | 0 | 0 | 0 | 0.170442 | 927 | 32 | 79 | 28.96875 | 0.86606 | 0.13808 | 0 | 0.090909 | 0 | 0 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.090909 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
faeaeb1aa2f53c04a59c5b1f1497f0c7f7be818e | 4,322 | py | Python | tests/test_auth.py | Windfarer/mongokit-ng | 52844c9242c4483694d4f3f65cf0d70a13df1c35 | [
"MIT"
] | 14 | 2019-10-23T04:24:35.000Z | 2020-12-10T03:50:20.000Z | tests/test_auth.py | Windfarer/mongokit-ng | 52844c9242c4483694d4f3f65cf0d70a13df1c35 | [
"MIT"
] | 152 | 2019-11-24T17:41:03.000Z | 2022-03-28T11:22:20.000Z | tests/test_auth.py | Windfarer/mongokit-ng | 52844c9242c4483694d4f3f65cf0d70a13df1c35 | [
"MIT"
] | 3 | 2019-12-05T08:48:12.000Z | 2020-01-08T02:20:54.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2009-2011, Nicolas Clairon
# 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 abov... | 37.582609 | 79 | 0.653401 | 536 | 4,322 | 5.220149 | 0.367537 | 0.046462 | 0.038599 | 0.037527 | 0.356683 | 0.283417 | 0.258756 | 0.258756 | 0.258756 | 0.258756 | 0 | 0.006442 | 0.24572 | 4,322 | 114 | 80 | 37.912281 | 0.84908 | 0.363026 | 0 | 0.333333 | 0 | 0 | 0.106055 | 0 | 0 | 0 | 0 | 0 | 0.275362 | 1 | 0.072464 | false | 0.231884 | 0.072464 | 0 | 0.202899 | 0.014493 | 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 |
faf5d10ff401b0f566bd0617df0421a7fd13d49e | 2,071 | py | Python | assignments/prac3.py | aspratyush/pycaffe-examples | eec1808d9dc305249bc80af7bd68a608a8ec172e | [
"Apache-2.0"
] | 2 | 2016-08-19T14:32:21.000Z | 2016-11-03T18:11:01.000Z | assignments/prac3.py | aspratyush/pycaffe-examples | eec1808d9dc305249bc80af7bd68a608a8ec172e | [
"Apache-2.0"
] | null | null | null | assignments/prac3.py | aspratyush/pycaffe-examples | eec1808d9dc305249bc80af7bd68a608a8ec172e | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 Pratyush Sahay
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 29.585714 | 74 | 0.671173 | 295 | 2,071 | 4.698305 | 0.464407 | 0.04329 | 0.025253 | 0.021645 | 0.040404 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013326 | 0.166586 | 2,071 | 69 | 75 | 30.014493 | 0.789687 | 0.428778 | 0 | 0.066667 | 0 | 0 | 0.235091 | 0.145203 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
faf93225986f74a96128a61b0ac96c89651f2f35 | 7,674 | py | Python | Player/strategy.py | markolazic261/bc18-scaffold | 0b026b30c5ab1ca6e1077ce01491598c697684e9 | [
"MIT"
] | null | null | null | Player/strategy.py | markolazic261/bc18-scaffold | 0b026b30c5ab1ca6e1077ce01491598c697684e9 | [
"MIT"
] | 5 | 2019-04-11T08:20:29.000Z | 2019-04-15T19:58:41.000Z | Player/strategy.py | markolazic261/bc18-scaffold | 0b026b30c5ab1ca6e1077ce01491598c697684e9 | [
"MIT"
] | null | null | null | import battlecode as bc
from enum import Enum
class BattleStrategy(Enum):
Deffensive = 0
Offensive = 1
class Strategy:
__instance = None
battle_strategy = None
min_nr_units_for_offense = None
enemy_start_close = False
research_strategy = [
bc.UnitType.Worker,
bc.UnitTy... | 37.617647 | 165 | 0.601903 | 826 | 7,674 | 5.424939 | 0.136804 | 0.104887 | 0.182325 | 0.12274 | 0.696719 | 0.637358 | 0.588262 | 0.537603 | 0.533363 | 0.516849 | 0 | 0.010101 | 0.277561 | 7,674 | 203 | 166 | 37.802956 | 0.79816 | 0.076622 | 0 | 0.347826 | 0 | 0 | 0.14188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.080745 | false | 0 | 0.012422 | 0 | 0.267081 | 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 |
4f0225dbcc0e5b935419bd8a707cf5a838a6e7fa | 4,403 | py | Python | pypy/rpython/memory/test/snippet.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | 12 | 2016-01-06T07:10:28.000Z | 2021-05-13T23:02:02.000Z | pypy/rpython/memory/test/snippet.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | null | null | null | pypy/rpython/memory/test/snippet.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | 2 | 2016-07-29T07:09:50.000Z | 2016-10-16T08:50:26.000Z | from pypy.rpython.lltypesystem import lltype
from pypy.rpython.lltypesystem.lloperation import llop
class SemiSpaceGCTests:
large_tests_ok = False
def test_finalizer_order(self):
import random
from pypy.tool.algo import graphlib
examples = []
if self.large_tests_ok:
... | 36.090164 | 76 | 0.439473 | 456 | 4,403 | 4.201754 | 0.285088 | 0.037578 | 0.015658 | 0.02714 | 0.058455 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005625 | 0.475131 | 4,403 | 121 | 77 | 36.38843 | 0.823453 | 0.084488 | 0 | 0.096154 | 0 | 0 | 0.048981 | 0.006464 | 0 | 0 | 0 | 0 | 0.028846 | 0 | null | null | 0.009615 | 0.048077 | null | null | 0.057692 | 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 |
4f02bad3b3ddc4a7518cdf3b2d1606dcf09a3dac | 403 | py | Python | tacos/signals.py | mauricio-chavez/django_tacos_ecommerce | 6213f095f787e12a6c21d3c32eadefacea32cdc9 | [
"MIT"
] | 1 | 2020-01-11T18:23:33.000Z | 2020-01-11T18:23:33.000Z | tacos/signals.py | mauricio-chavez/django_tacos_ecommerce | 6213f095f787e12a6c21d3c32eadefacea32cdc9 | [
"MIT"
] | null | null | null | tacos/signals.py | mauricio-chavez/django_tacos_ecommerce | 6213f095f787e12a6c21d3c32eadefacea32cdc9 | [
"MIT"
] | null | null | null | """Taco app signals"""
from django.db.models.signals import pre_save
from django.dispatch import receiver
from .models import Order
@receiver(pre_save, sender=Order)
def update_subtotal(sender, instance, **kwargs):
taco_price = instance.taco.price
quantity = instance.quantity
instance.subtotal = taco_pric... | 28.785714 | 48 | 0.756824 | 52 | 403 | 5.769231 | 0.442308 | 0.09 | 0.113333 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143921 | 403 | 13 | 49 | 31 | 0.869565 | 0.039702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.4 | 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 |
4f091544cabaabeb03beda974ed46319e1fe889a | 11,001 | py | Python | lira/src/old_codebase/generate_display_results.py | DarkElement75/lira | 9c4a2c99e305bbed3018534dcb21019e30d83da8 | [
"MIT"
] | 3 | 2019-06-20T16:06:50.000Z | 2019-07-10T02:36:18.000Z | lira/src/old_codebase/generate_display_results.py | DarkElement75/lira | 9c4a2c99e305bbed3018534dcb21019e30d83da8 | [
"MIT"
] | null | null | null | lira/src/old_codebase/generate_display_results.py | DarkElement75/lira | 9c4a2c99e305bbed3018534dcb21019e30d83da8 | [
"MIT"
] | null | null | null | """
This file is mainly for generating human-viewable images from completed predictions, given greyscale images.
Usually run after generate_predictions.py.
Further documentation can be found in each method / main function documentation.
-Blake Edwards / Dark Element
"""
import os, sys, h5py, pickle, cv2
import numpy... | 52.636364 | 296 | 0.618126 | 1,491 | 11,001 | 4.471496 | 0.266935 | 0.031498 | 0.019799 | 0.010799 | 0.084596 | 0.070496 | 0.044398 | 0.023999 | 0.023999 | 0.013199 | 0 | 0.007435 | 0.327607 | 11,001 | 208 | 297 | 52.889423 | 0.893876 | 0.317789 | 0 | 0 | 1 | 0 | 0.046672 | 0.035195 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.142857 | 0 | 0.171429 | 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 |
4f09a6b547b0a0a3d9d291decaac9a1e32715e27 | 3,540 | py | Python | core/addons.py | knightops/knightops | 3bf103c18232dc0be0a03ee183bc790d12330af9 | [
"Apache-2.0"
] | 2 | 2022-02-09T09:47:51.000Z | 2022-03-04T08:55:35.000Z | core/addons.py | knightops/knightops | 3bf103c18232dc0be0a03ee183bc790d12330af9 | [
"Apache-2.0"
] | null | null | null | core/addons.py | knightops/knightops | 3bf103c18232dc0be0a03ee183bc790d12330af9 | [
"Apache-2.0"
] | null | null | null | import json
import os
from pathlib import Path
from fishbase.fish_logger import logger
from pydantic import BaseModel, Field
class AddonsError(Exception):
pass
class AddonsInfo(BaseModel):
identifier: str = Field(...)
name: str = Field(default='', title='', description='')
title: str = Field(...)
... | 33.396226 | 87 | 0.627966 | 421 | 3,540 | 5.092637 | 0.380048 | 0.041978 | 0.04431 | 0.015858 | 0.033582 | 0.033582 | 0.033582 | 0.033582 | 0 | 0 | 0 | 0.001195 | 0.290678 | 3,540 | 105 | 88 | 33.714286 | 0.852648 | 0.338983 | 0 | 0.137931 | 0 | 0 | 0.043135 | 0.014378 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12069 | false | 0.068966 | 0.086207 | 0 | 0.448276 | 0.034483 | 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 |
4f0b34cb34d329cfcf86314d3360abb52d7c7be3 | 9,377 | py | Python | morse3.py | dotimothy/RPiMorse | a54ab8459e44a7b84ecbd8694ff571d699a6e21e | [
"MIT"
] | 2 | 2020-09-24T07:19:54.000Z | 2021-08-29T06:08:30.000Z | morse3.py | dotimothy/RPiMorse | a54ab8459e44a7b84ecbd8694ff571d699a6e21e | [
"MIT"
] | null | null | null | morse3.py | dotimothy/RPiMorse | a54ab8459e44a7b84ecbd8694ff571d699a6e21e | [
"MIT"
] | null | null | null | #author Timothy Do
#RPiMorse Console: Prints Input in Morse Code to Console
#Note: Only works with Python3, For Python2, run morse2.py
from time import sleep
import sys
#Functions for Dots, Dashes
def dot():
print(".\a", end="")
sleep(0.1)
sys.stdout.flush()
def dash():
print("-\a\a\a", end="")
... | 18.791583 | 1,232 | 0.459955 | 1,064 | 9,377 | 4.055451 | 0.158835 | 0.158517 | 0.053766 | 0.071379 | 0.252144 | 0.21066 | 0.179143 | 0.167323 | 0.114484 | 0.052839 | 0 | 0.014495 | 0.367282 | 9,377 | 498 | 1,233 | 18.829317 | 0.712119 | 0.059294 | 0 | 0.507317 | 0 | 0 | 0.074861 | 0 | 0.002439 | 0 | 0 | 0 | 0 | 1 | 0.15122 | false | 0 | 0.004878 | 0 | 0.156098 | 0.031707 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.