hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
d68b45e4e7a07123f8215b18f29f9f415483134c
219
py
Python
list.py
TomckySan/python-training
7d5214d01e8844a314d4a5aea6a4e35afa19f729
[ "MIT" ]
null
null
null
list.py
TomckySan/python-training
7d5214d01e8844a314d4a5aea6a4e35afa19f729
[ "MIT" ]
null
null
null
list.py
TomckySan/python-training
7d5214d01e8844a314d4a5aea6a4e35afa19f729
[ "MIT" ]
null
null
null
# coding: utf-8 sales= [255, 100, 353, 400] print len(sales) print sales[2] sales[2] = 100 print sales[2] # 含んでいるか否か print 100 in sales print 500 in sales # range print range(10) print range(3,10) print range(3,10,2)
13.6875
27
0.69863
0
0
0
0
0
0
0
0
48
0.204255
d68d945342e1ae0d7e7a7a1d0a9e54406e6ceb70
18,034
py
Python
booltest/battery.py
sobuch/polynomial-distinguishers
5a007abd222d00cbf99f1083c3b537343d2fff56
[ "MIT" ]
5
2017-03-03T13:53:51.000Z
2019-05-09T09:47:28.000Z
booltest/battery.py
sobuch/polynomial-distinguishers
5a007abd222d00cbf99f1083c3b537343d2fff56
[ "MIT" ]
5
2017-10-07T11:15:09.000Z
2021-01-25T17:03:59.000Z
booltest/battery.py
sobuch/polynomial-distinguishers
5a007abd222d00cbf99f1083c3b537343d2fff56
[ "MIT" ]
6
2017-03-26T17:06:20.000Z
2021-11-15T22:22:33.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse import coloredlogs import logging import json import itertools import shlex import time import queue import sys import os import collections import tempfile from jsonpath_ng import jsonpath, parse from .runner import AsyncRunner from .common import merge_p...
37.886555
182
0.523345
16,152
0.895642
2,518
0.139625
0
0
0
0
3,714
0.205944
d68e21dba61d5cbeb398194248f4e63acb8aae21
8,346
py
Python
traincifar224.py
iitm-sysdl/FuSeConv
04cdf54abfdbf359235d1b4c0848f188b1abbf2d
[ "Apache-2.0" ]
8
2021-02-08T22:12:53.000Z
2022-02-20T16:33:11.000Z
traincifar224.py
iitm-sysdl/FuSeConv
04cdf54abfdbf359235d1b4c0848f188b1abbf2d
[ "Apache-2.0" ]
null
null
null
traincifar224.py
iitm-sysdl/FuSeConv
04cdf54abfdbf359235d1b4c0848f188b1abbf2d
[ "Apache-2.0" ]
4
2021-03-04T11:21:42.000Z
2022-02-15T07:47:19.000Z
''' FuSeConv: Fully Separable Convolutions for Fast Inference on Systolic Arrays Authors: Surya Selvam, Vinod Ganesan, Pratyush Kumar Email ID: [email protected], [email protected], [email protected] ''' import os import torch import wandb import random import argparse import torchvision import torch.nn as ...
39.367925
149
0.606278
0
0
0
0
0
0
0
0
1,266
0.151689
d69171373efa977663e506a9e0cd4ffbf706ae5a
2,590
py
Python
fabfile.py
prezi/snakebasket
8e2e91ef2c7d034fa45c8005e5217fec333808ee
[ "MIT" ]
24
2015-02-03T00:04:06.000Z
2021-09-14T06:50:01.000Z
fabfile.py
prezi/snakebasket
8e2e91ef2c7d034fa45c8005e5217fec333808ee
[ "MIT" ]
1
2021-03-23T10:44:18.000Z
2021-03-23T15:38:38.000Z
fabfile.py
prezi/snakebasket
8e2e91ef2c7d034fa45c8005e5217fec333808ee
[ "MIT" ]
5
2015-08-16T11:31:09.000Z
2021-12-27T13:31:33.000Z
import os.path from fabric.api import local, env from fabric.utils import fastprint from prezi.fabric.s3 import CommonTasks, S3Deploy, NoopServiceManager env.forward_agent = True env.user = 'publisher' env.roledefs = {'production': [], 'stage': [], 'local': []} class SingleVirtualenvS3Deploy(S3Deploy): def __in...
35.479452
130
0.660232
2,195
0.84749
0
0
138
0.053282
0
0
676
0.261004
d69196f51793e1153bef57beef63e6af53ecc91a
706
py
Python
djstripe/__init__.py
TigerDX/dj-stripe
2fd4897abaedf2d9faa3dd5af86402dae3ab86a3
[ "BSD-3-Clause" ]
null
null
null
djstripe/__init__.py
TigerDX/dj-stripe
2fd4897abaedf2d9faa3dd5af86402dae3ab86a3
[ "BSD-3-Clause" ]
null
null
null
djstripe/__init__.py
TigerDX/dj-stripe
2fd4897abaedf2d9faa3dd5af86402dae3ab86a3
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import warnings from django import get_version as get_django_version __title__ = "dj-stripe" __summary__ = "Django + Stripe Made Easy" __uri__ = "https://github.com/pydanny/dj-stripe/" __version__ = "0.5.0" __author__ = "Daniel Greenfeld" __email__ = "[email protected]" __li...
29.416667
81
0.723796
0
0
0
0
0
0
0
0
378
0.535411
d6946eb298801b23fec7b4b5e6de31aae00f1e3a
10,283
py
Python
autolamella/milling.py
Chlanda-Lab/autolamella
ab135eefd56770f326f90747ef4dafebff4e8f71
[ "MIT" ]
null
null
null
autolamella/milling.py
Chlanda-Lab/autolamella
ab135eefd56770f326f90747ef4dafebff4e8f71
[ "MIT" ]
null
null
null
autolamella/milling.py
Chlanda-Lab/autolamella
ab135eefd56770f326f90747ef4dafebff4e8f71
[ "MIT" ]
null
null
null
import logging import os import time import numpy as np from autolamella.acquire import ( grab_images, save_reference_images, save_final_images, ) from autolamella.align import realign from autolamella.autoscript import reset_state def milling( microscope, settings, stage_setting...
38.950758
111
0.665565
0
0
0
0
0
0
0
0
2,895
0.281533
d6979012b22ac73cacf5e578b3aa216da2c78397
2,210
py
Python
robots/SlowRobot.py
theGitRory/RoboWars
6121f13e3569c4699a93900a8a6f45301f01a98c
[ "MIT" ]
null
null
null
robots/SlowRobot.py
theGitRory/RoboWars
6121f13e3569c4699a93900a8a6f45301f01a98c
[ "MIT" ]
null
null
null
robots/SlowRobot.py
theGitRory/RoboWars
6121f13e3569c4699a93900a8a6f45301f01a98c
[ "MIT" ]
1
2021-12-16T22:49:29.000Z
2021-12-16T22:49:29.000Z
import pygame from Robot import Robot class SlowRobot(Robot): moveState = -15 shootState = 0 def __init__(self, image, name): super().__init__(image, name) self.movingLeft = False self.movingRight = True self.movingUp = False self.movingDown = True def update(se...
32.5
70
0.466516
2,171
0.982353
0
0
0
0
0
0
0
0
d6997f85637504050677de593bfdc5dfb24a288e
934
py
Python
istype/__init__.py
Cologler/typing-instancecheck-python
b4dcea88468b1ee43ebb36413b099e3e8508b3ce
[ "MIT" ]
6
2018-07-08T09:38:35.000Z
2020-06-25T13:15:02.000Z
istype/__init__.py
Cologler/typing-instancecheck-python
b4dcea88468b1ee43ebb36413b099e3e8508b3ce
[ "MIT" ]
1
2018-07-08T10:12:49.000Z
2018-07-08T11:31:18.000Z
istype/__init__.py
Cologler/istype-python
b4dcea88468b1ee43ebb36413b099e3e8508b3ce
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2017~2999 - cologler <[email protected]> # ---------- # # ---------- from typing import Iterable from itertools import zip_longest from .internal import TypeMatcher from .g import isinstanceof, issubclassof def match(args: (list, tuple), types: Iterable...
19.87234
63
0.574946
0
0
0
0
0
0
0
0
330
0.353319
d69b51ad69fd05add04bf2431b9d7c7e537e89f6
3,669
py
Python
aetherling/space_time/ram_st.py
David-Durst/aetherling
91bcf0579608ccbf7d42a7bddf90ccd4257d6571
[ "MIT" ]
10
2018-04-03T01:51:16.000Z
2022-02-07T04:27:26.000Z
aetherling/space_time/ram_st.py
David-Durst/aetherling
91bcf0579608ccbf7d42a7bddf90ccd4257d6571
[ "MIT" ]
19
2018-05-20T00:43:31.000Z
2021-03-18T20:36:52.000Z
aetherling/space_time/ram_st.py
David-Durst/aetherling
91bcf0579608ccbf7d42a7bddf90ccd4257d6571
[ "MIT" ]
1
2018-07-11T23:36:43.000Z
2018-07-11T23:36:43.000Z
from aetherling.space_time.space_time_types import * from aetherling.space_time.nested_counters import * from aetherling.modules.ram_any_type import * from aetherling.modules.term_any_type import TermAnyType from aetherling.modules.mux_any_type import DefineMuxAnyType from aetherling.modules.map_fully_parallel_sequenti...
42.662791
121
0.67021
2,319
0.632052
0
0
2,907
0.792314
0
0
618
0.168438
d69d1551c5ade2888af4e328fc5206b21287212d
1,227
py
Python
yhteenlasku/Python/rose_images_plus.py
samuntiede/valokuvamatikka
adab47a93534bf0f83f39603a8744bf6e5923da4
[ "Apache-2.0" ]
null
null
null
yhteenlasku/Python/rose_images_plus.py
samuntiede/valokuvamatikka
adab47a93534bf0f83f39603a8744bf6e5923da4
[ "Apache-2.0" ]
null
null
null
yhteenlasku/Python/rose_images_plus.py
samuntiede/valokuvamatikka
adab47a93534bf0f83f39603a8744bf6e5923da4
[ "Apache-2.0" ]
null
null
null
# Process two rose images by summing them together # FIN Laske kaksi ruusukuvaa yhteen # # Samuli Siltanen April 2021 # Python-käännös Ville Tilvis 2021 import numpy as np import matplotlib.pyplot as plt # Read in the images # FIN Lue kuvat levyltä im1 = plt.imread('../_kuvat/ruusu1.png') im2 = plt.imread('../_kuvat...
22.309091
55
0.727791
0
0
0
0
0
0
0
0
622
0.502423
d69d44bd20dc95ec5fff8e1985bdab256e11040d
6,931
py
Python
src/test.fastaHeaderMapper.py
dentearl/assemblAnalysis
c8524456dff720d37356c55d7640687415bc1df6
[ "MIT" ]
1
2020-11-12T06:32:26.000Z
2020-11-12T06:32:26.000Z
src/test.fastaHeaderMapper.py
dentearl/assemblAnalysis
c8524456dff720d37356c55d7640687415bc1df6
[ "MIT" ]
null
null
null
src/test.fastaHeaderMapper.py
dentearl/assemblAnalysis
c8524456dff720d37356c55d7640687415bc1df6
[ "MIT" ]
null
null
null
############################## # Copyright (C) 2009-2011 by # Dent Earl ([email protected], [email protected]) # Benedict Paten ([email protected], [email protected]) # Mark Diekhans ([email protected]) # ... and other members of the Reconstruction Team of David Haussler's # lab (BME Dept. UCSC). # # ...
40.063584
87
0.578127
5,262
0.759198
0
0
0
0
0
0
2,996
0.432261
d69d82f810cb6e55ebc41352a4d82679e4b15e3c
5,712
py
Python
likebee/core/admin.py
klebercode/likebee
0a0dd6368ef43b53fb8315eb5eb14663067ef07c
[ "MIT" ]
1
2019-11-05T15:00:51.000Z
2019-11-05T15:00:51.000Z
likebee/core/admin.py
klebercode/likebee
0a0dd6368ef43b53fb8315eb5eb14663067ef07c
[ "MIT" ]
null
null
null
likebee/core/admin.py
klebercode/likebee
0a0dd6368ef43b53fb8315eb5eb14663067ef07c
[ "MIT" ]
null
null
null
from django.contrib import admin from django.db.models import Q from django.utils.translation import ugettext_lazy as _ from django.utils.html import format_html from datetime import date, datetime from django_summernote.admin import SummernoteModelAdmin from mptt.admin import MPTTModelAdmin, DraggableMPTTAdmin from .m...
31.558011
76
0.608193
4,620
0.808682
0
0
4,642
0.812533
0
0
1,028
0.17994
d69dfab5d31344b304dc626b4e7eed938aa556de
369
py
Python
fivetran_api/Fivetran-REST-API-examples/connectorDetails.py
leootrusa/fivetran_example
50931b9fa9638a743531aae2cb10137284d6df17
[ "MIT" ]
35
2018-06-27T20:46:26.000Z
2022-01-03T01:46:12.000Z
fivetran_api/Fivetran-REST-API-examples/connectorDetails.py
dsdorazio/functions
d694ab4d1d0e68d5eaab8fd34df8decc66931cb9
[ "MIT" ]
6
2018-06-27T18:59:23.000Z
2021-06-09T04:47:51.000Z
fivetran_api/Fivetran-REST-API-examples/connectorDetails.py
dsdorazio/functions
d694ab4d1d0e68d5eaab8fd34df8decc66931cb9
[ "MIT" ]
18
2019-03-08T00:00:00.000Z
2022-02-21T22:29:14.000Z
# connectorDetails # Returns a connector object if a valid identifier was provided. # Reference: https://fivetran.com/docs/rest-api/connectors#retrieveconnectordetails import fivetran_api # Fivetran API URL (Replace {connector_id} with a valid connector id). url = "https://api.fivetran.com/v1/connectors/{connector_i...
33.545455
83
0.796748
0
0
0
0
0
0
0
0
290
0.785908
d69f54878d575fc34023843ff11b4582ac0a48da
1,703
py
Python
shop/coreapp/admin.py
bsperezb/Django-Ecomerce
f061798fd6528997ec7c1874ab0a5bdec03137c6
[ "MIT" ]
1
2021-09-02T03:48:44.000Z
2021-09-02T03:48:44.000Z
shop/coreapp/admin.py
bsperezb/Django-Ecomerce
f061798fd6528997ec7c1874ab0a5bdec03137c6
[ "MIT" ]
null
null
null
shop/coreapp/admin.py
bsperezb/Django-Ecomerce
f061798fd6528997ec7c1874ab0a5bdec03137c6
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Address, Coupon, Item, Order, OrderItem, Payment, Session def make_refund_accepted(modeladmin, request, queryset): queryset.update(refund_requested=False, refund_granted=True) make_refund_accepted.short_description = "Update orders to refound granted" clas...
22.706667
78
0.63946
1,139
0.66882
0
0
0
0
0
0
522
0.306518
d69f649c3051f59f0608bb308dcfe5aa1166fc96
37,194
py
Python
src/pudl/metadata/codes.py
rohithdesikan/pudl
0009afc2b31031f6cd50e60aec096421f7a9d3c7
[ "MIT" ]
null
null
null
src/pudl/metadata/codes.py
rohithdesikan/pudl
0009afc2b31031f6cd50e60aec096421f7a9d3c7
[ "MIT" ]
null
null
null
src/pudl/metadata/codes.py
rohithdesikan/pudl
0009afc2b31031f6cd50e60aec096421f7a9d3c7
[ "MIT" ]
null
null
null
"""Metadata for cleaning, re-encoding, and documenting coded data columns. These dictionaries are used to create Encoder instances. They contain the following keys: 'df': A dataframe associating short codes with long descriptions and other information. 'code_fixes': A dictionary mapping non-standard codes to canonical...
36.89881
649
0.37256
0
0
0
0
0
0
0
0
16,376
0.440251
d6a2fa9382a12764e6a860268ebbd0f92fa8f439
1,179
py
Python
objectModel/Python/tests/utilities/test_storage_utils.py
rt112000/CDM
34bd34f9260140a8f8aa02bd87c23033f3daad4c
[ "CC-BY-4.0", "MIT" ]
884
2019-05-10T02:09:10.000Z
2022-03-31T14:02:00.000Z
objectModel/Python/tests/utilities/test_storage_utils.py
spbast/CDM
bf97a3720c97ee4c9df3625084cf8b3bc65ff9c7
[ "CC-BY-4.0", "MIT" ]
171
2019-06-10T11:34:37.000Z
2022-03-31T22:50:12.000Z
objectModel/Python/tests/utilities/test_storage_utils.py
spbast/CDM
bf97a3720c97ee4c9df3625084cf8b3bc65ff9c7
[ "CC-BY-4.0", "MIT" ]
340
2019-05-07T18:00:16.000Z
2022-03-31T12:00:15.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. import unittest from cdm.utilities import StorageUtils class StorageUtilsTest(unittest.TestCase): """Test to validate StorageUtils functions""" def test...
39.3
94
0.724343
964
0.817642
0
0
0
0
0
0
379
0.321459
d6a31066ae56fbab5790e025522ea654a924256a
36
py
Python
raguel/__init__.py
WireShoutLLC/piraguel
edbca6338d23735d7e1d6a63273f55851ef76518
[ "MIT" ]
null
null
null
raguel/__init__.py
WireShoutLLC/piraguel
edbca6338d23735d7e1d6a63273f55851ef76518
[ "MIT" ]
null
null
null
raguel/__init__.py
WireShoutLLC/piraguel
edbca6338d23735d7e1d6a63273f55851ef76518
[ "MIT" ]
null
null
null
import raguel.fptp import raguel.irv
18
18
0.861111
0
0
0
0
0
0
0
0
0
0
d6a34d6160e9405d0d8eb8de229e4504ff3e1406
18,624
py
Python
slugdetection/Data_Engineering.py
dapolak/acse-9-independent-research-project-dapolak
5ae2cfa7f63c739d419b1362c4aede451ae83eb1
[ "MIT" ]
null
null
null
slugdetection/Data_Engineering.py
dapolak/acse-9-independent-research-project-dapolak
5ae2cfa7f63c739d419b1362c4aede451ae83eb1
[ "MIT" ]
null
null
null
slugdetection/Data_Engineering.py
dapolak/acse-9-independent-research-project-dapolak
5ae2cfa7f63c739d419b1362c4aede451ae83eb1
[ "MIT" ]
2
2019-08-29T16:14:37.000Z
2019-08-30T08:52:03.000Z
# -*- coding: utf-8 -*- """ Part of slugdetection package @author: Deirdree A Polak github: dapolak """ import numpy as np import pandas as pd from datetime import datetime import matplotlib.pyplot as plt from pyspark.sql import functions as F from pyspark.sql.window import Window class Data_Engineering: """ ...
44.342857
120
0.574152
16,552
0.888746
0
0
0
0
0
0
9,738
0.522874
d6a35d2bfc2590a217cfcb8cbdd8bde2a6488383
2,632
py
Python
vietocr/predict.py
anhtv26062000/vietocr
b14a7d14cc37a969f73b27b2946b8680672c0fe5
[ "Apache-2.0" ]
null
null
null
vietocr/predict.py
anhtv26062000/vietocr
b14a7d14cc37a969f73b27b2946b8680672c0fe5
[ "Apache-2.0" ]
null
null
null
vietocr/predict.py
anhtv26062000/vietocr
b14a7d14cc37a969f73b27b2946b8680672c0fe5
[ "Apache-2.0" ]
null
null
null
import os import time import yaml import argparse from PIL import Image import matplotlib.pyplot as plt from vietocr.tool.predictor import Predictor from vietocr.tool.config import Cfg def main(): parser = argparse.ArgumentParser() parser.add_argument("--img", required=True, help="foo help") parser.add_a...
34.631579
111
0.665274
0
0
0
0
0
0
0
0
1,614
0.613222
d6a502bc2ef1837bff69e8101cd965f9cb6f8ad1
12,231
py
Python
com/vmware/esx/settings/depot_content/components_client.py
adammillerio/vsphere-automation-sdk-python
c07e1be98615201139b26c28db3aa584c4254b66
[ "MIT" ]
null
null
null
com/vmware/esx/settings/depot_content/components_client.py
adammillerio/vsphere-automation-sdk-python
c07e1be98615201139b26c28db3aa584c4254b66
[ "MIT" ]
null
null
null
com/vmware/esx/settings/depot_content/components_client.py
adammillerio/vsphere-automation-sdk-python
c07e1be98615201139b26c28db3aa584c4254b66
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #--------------------------------------------------------------------------- # Copyright 2020 VMware, Inc. All rights reserved. # AUTO GENERATED FILE -- DO NOT MODIFY! # # vAPI stub file for package com.vmware.esx.settings.depot_content.components. #--------------------------------------------...
33.509589
94
0.575178
11,025
0.901398
0
0
0
0
0
0
6,924
0.566103
d6a7a396afccca6f90d97a49c348647708bf30b9
9,790
py
Python
MultiAtlasSegmenter/MultiAtlasSegmentation/EvaluateSegmentation.py
mabelzunce/MuscleSegmentation
390737ca1853e3c142a4fb7e186bc8b33bc4ade4
[ "MIT" ]
null
null
null
MultiAtlasSegmenter/MultiAtlasSegmentation/EvaluateSegmentation.py
mabelzunce/MuscleSegmentation
390737ca1853e3c142a4fb7e186bc8b33bc4ade4
[ "MIT" ]
null
null
null
MultiAtlasSegmenter/MultiAtlasSegmentation/EvaluateSegmentation.py
mabelzunce/MuscleSegmentation
390737ca1853e3c142a4fb7e186bc8b33bc4ade4
[ "MIT" ]
null
null
null
#! python3 # Multi-atlas segmentation scheme trying to give a platform to do tests before translating them to the plugin. from __future__ import print_function from GetMetricFromElastixRegistration import GetFinalMetricFromElastixLogFile from MultiAtlasSegmentation import MultiAtlasSegmentation from ApplyBiasCorrection...
60.432099
229
0.81236
0
0
0
0
0
0
0
0
4,148
0.423698
d6a8326296ab6af0cd67cc06c386c30e1cff6c27
1,591
py
Python
jes/jes-v5.020-linux/jes/python/jes/gui/dialogs/intro.py
utv-teaching/foundations-computer-science
568e19fd83a3355dab2814229f335abf31bfd7e9
[ "MIT" ]
null
null
null
jes/jes-v5.020-linux/jes/python/jes/gui/dialogs/intro.py
utv-teaching/foundations-computer-science
568e19fd83a3355dab2814229f335abf31bfd7e9
[ "MIT" ]
null
null
null
jes/jes-v5.020-linux/jes/python/jes/gui/dialogs/intro.py
utv-teaching/foundations-computer-science
568e19fd83a3355dab2814229f335abf31bfd7e9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ jes.gui.dialogs.intro ===================== The "intro" dialog, which displays the JESIntroduction.txt file. :copyright: (C) 2014 Matthew Frazier and Mark Guzdial :license: GNU GPL v2 or later, see jes/help/JESCopyright.txt for details """ from __future__ import with_statement import JES...
28.927273
74
0.672533
978
0.614708
0
0
71
0.044626
0
0
468
0.294155
d6a8edcb5b2dcf22573395513ba3203eee17a175
15
py
Python
assist/__init__.py
jmlopez-rod/assist
6fb1c76dc3b0dc441faa7347285343e2e529651a
[ "BSD-2-Clause" ]
1
2015-10-30T23:33:11.000Z
2015-10-30T23:33:11.000Z
assist/__init__.py
jmlopez-rod/assist
6fb1c76dc3b0dc441faa7347285343e2e529651a
[ "BSD-2-Clause" ]
null
null
null
assist/__init__.py
jmlopez-rod/assist
6fb1c76dc3b0dc441faa7347285343e2e529651a
[ "BSD-2-Clause" ]
null
null
null
"""Assist """
3.75
9
0.4
0
0
0
0
0
0
0
0
14
0.933333
d6aa6ef6511d2d3e5cb122c0409356c3cc693f88
678
py
Python
clioude-server/app.py
ccw630/CliOuDE
743540c7c14d7f95455219efe8be01817e96f96b
[ "MIT" ]
3
2020-07-22T02:17:23.000Z
2021-03-10T12:48:46.000Z
app.py
ccw630/CLIOUDE-Server
4dc129e5bc57caead2df0107f02671d74c7808f1
[ "MIT" ]
5
2020-07-24T07:39:43.000Z
2022-02-27T08:32:49.000Z
app.py
ccw630/CLIOUDE-Server
4dc129e5bc57caead2df0107f02671d74c7808f1
[ "MIT" ]
null
null
null
import tornado.web import tornado.websocket import tornado.httpserver import tornado.ioloop from worker_gateway.server import WebSocketChannelHandler from heartbeat.handler import HeartbeatHandler from orm import Worker class Application(tornado.web.Application): def __init__(self): handlers = [ ...
25.111111
57
0.718289
258
0.380531
0
0
0
0
0
0
38
0.056047
d6ac10b06dc3d01a44335f8890a997f31547f906
1,536
py
Python
server.py
guoyunlong16/python-websocket-server
81ec842f750726f5e1044305fcabbba831eca098
[ "MIT" ]
null
null
null
server.py
guoyunlong16/python-websocket-server
81ec842f750726f5e1044305fcabbba831eca098
[ "MIT" ]
null
null
null
server.py
guoyunlong16/python-websocket-server
81ec842f750726f5e1044305fcabbba831eca098
[ "MIT" ]
null
null
null
import time from websocket_server import WebsocketServer # Called for every client connecting (after handshake) def new_client(client, server): print("New client connected and was given id %d" % client['id']) #server.send_message_to_all("Hey all, a new client has joined us") short_message = "" middle...
32
67
0.673828
0
0
0
0
0
0
0
0
386
0.251302
d6ac72939accd121f9983c21fee472c5729238d1
899
py
Python
36-valid-sudoku/36-valid-sudoku.py
MayaScarlet/leetcode-python
8ef0c5cadf2e975957085c0ef84a8c3d90a64b6a
[ "MIT" ]
null
null
null
36-valid-sudoku/36-valid-sudoku.py
MayaScarlet/leetcode-python
8ef0c5cadf2e975957085c0ef84a8c3d90a64b6a
[ "MIT" ]
null
null
null
36-valid-sudoku/36-valid-sudoku.py
MayaScarlet/leetcode-python
8ef0c5cadf2e975957085c0ef84a8c3d90a64b6a
[ "MIT" ]
null
null
null
import collections class Solution: def isValidSudoku(self, board: List[List[str]]) -> bool: cols = collections.defaultdict(set) rows = collections.defaultdict(set) grid = collections.defaultdict(set) for r in range(len(board)): for c in range(len(board)...
34.576923
103
0.463849
870
0.967742
0
0
0
0
0
0
110
0.122358
d6b10c402152179bd5b2001946c3c77a518e7627
9,375
py
Python
Crop Predictions With GUI.py
KRITGYA2001/Crop-Prediction-Model
81c2f0701c89ae6ed1f3b8ae48252c94670ee413
[ "Apache-2.0" ]
null
null
null
Crop Predictions With GUI.py
KRITGYA2001/Crop-Prediction-Model
81c2f0701c89ae6ed1f3b8ae48252c94670ee413
[ "Apache-2.0" ]
null
null
null
Crop Predictions With GUI.py
KRITGYA2001/Crop-Prediction-Model
81c2f0701c89ae6ed1f3b8ae48252c94670ee413
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: import numpy as np import pandas as pd import seaborn as sns get_ipython().run_line_magic('matplotlib', 'inline') import matplotlib.pyplot as plt # In[2]: from sklearn.preprocessing import LabelEncoder from sklearn.metrics import classification_report from sklearn.m...
22.865854
154
0.68192
0
0
0
0
0
0
0
0
2,831
0.301973
d6b123a5d8064301b36365941fb80c50a959742e
3,950
py
Python
alipay/aop/api/domain/ZhimaCreditOrderRepaymentApplyModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/ZhimaCreditOrderRepaymentApplyModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/ZhimaCreditOrderRepaymentApplyModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.constant.ParamConstants import * class ZhimaCreditOrderRepaymentApplyModel(object): def __init__(self): self._action_type = None self._category = None self._order_info = None self._out_ord...
30.152672
75
0.591899
3,819
0.966835
0
0
1,727
0.437215
0
0
496
0.12557
d6b14cabbd3bcb3a92d3115531acfa5bd337cbb3
36,170
py
Python
examples/tof-viewer/external/newton_host_driver/src/host_api/examples/python/generateBootImage.py
rick-yhchen1013/aditof-sdk-rework
911465dd1e05dd0b1c5107197b3b4dc3a10f77f9
[ "MIT" ]
5
2021-09-22T10:04:47.000Z
2022-02-08T17:55:09.000Z
examples/tof-viewer/external/newton_host_driver/src/host_api/examples/python/generateBootImage.py
rick-yhchen1013/aditof-sdk-rework
911465dd1e05dd0b1c5107197b3b4dc3a10f77f9
[ "MIT" ]
99
2021-02-01T12:45:09.000Z
2022-03-08T09:54:13.000Z
examples/tof-viewer/external/newton_host_driver/src/host_api/examples/python/generateBootImage.py
rick-yhchen1013/aditof-sdk-rework
911465dd1e05dd0b1c5107197b3b4dc3a10f77f9
[ "MIT" ]
4
2021-08-09T12:32:55.000Z
2021-12-13T05:38:55.000Z
#!/usr/bin/env python """ Newton Generate Boot Images Usage: generateBootImage.py <target> <file_name> [--sim][--frontdoor][--seed=<seed_value>][--count=<word_count>][--hsp_fw_0p97] Options: -h --help Shows this help message. Target is one of the following: useq_seq_ram : Microsequencer Sequence RAM ...
32.122558
161
0.617086
0
0
0
0
0
0
0
0
3,198
0.088416
d6b2ed2144802e9da93811adc368ed32fd611400
1,503
py
Python
chconsole/storage/json_storage.py
mincode/chconsole
ab8ca8a38bd47ecb1aa7ff90225f57e042aaad6e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
chconsole/storage/json_storage.py
mincode/chconsole
ab8ca8a38bd47ecb1aa7ff90225f57e042aaad6e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
chconsole/storage/json_storage.py
mincode/chconsole
ab8ca8a38bd47ecb1aa7ff90225f57e042aaad6e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import os, json __author__ = 'Manfred Minimair <[email protected]>' class JSONStorage: """ File storage for a dictionary. """ file = '' # file name of storage file data = None # data dict indent = ' ' # indent prefix for pretty printing json files def __init__(self, path, name): ...
28.358491
80
0.558217
1,428
0.9501
0
0
0
0
0
0
732
0.487026
d6b3222fc09c6aa5941c479f3ee01b911f781151
332
py
Python
scienz/setup.py
Vibrant-Planet/aorist
067e119ef4d0d40802ce74a8e47d882e557ce195
[ "MIT" ]
16
2021-08-14T10:20:16.000Z
2022-03-31T04:19:26.000Z
hub/setup.py
scie-nz/aorist
ac1e31251af7d851c4491a310b417de880b79d09
[ "MIT" ]
5
2021-08-15T23:19:10.000Z
2021-09-26T20:50:41.000Z
scienz/setup.py
Vibrant-Planet/aorist
067e119ef4d0d40802ce74a8e47d882e557ce195
[ "MIT" ]
1
2022-01-06T01:26:24.000Z
2022-01-06T01:26:24.000Z
from setuptools import setup setup( name="scienz", version="0.0.1", packages=["scienz"], zip_safe=False, include_package_data=True, package_data={"scienz": ["scienz/*"],}, long_description=""" Common dataset definitions for aorist package. """, long_description_content_type="tex...
20.75
50
0.656627
0
0
0
0
0
0
0
0
115
0.346386
d6b3ca6a1ac3ed90a5486b776195623690a10478
2,219
py
Python
Trabalho_02/Trabalho/ELM_Q01.py
gabriel-rc-201/Trabalhos-Inteligencia-Computacional
c334f2fd66a31bacab0470b390782ce38dc2a100
[ "MIT" ]
1
2021-07-09T19:32:16.000Z
2021-07-09T19:32:16.000Z
Trabalho_02/Trabalho/ELM_Q01.py
gabriel-rc-201/Trabalhos-Inteligencia-Computacional
c334f2fd66a31bacab0470b390782ce38dc2a100
[ "MIT" ]
null
null
null
Trabalho_02/Trabalho/ELM_Q01.py
gabriel-rc-201/Trabalhos-Inteligencia-Computacional
c334f2fd66a31bacab0470b390782ce38dc2a100
[ "MIT" ]
null
null
null
#!-*- conding: utf8 -*- #coding: utf-8 """ Aluno: Gabriel Ribeiro Camelo Matricula: 401091 """ import matplotlib.pyplot as pplt # gráficos import math # Matemática import re # expressões regulares import numpy as np # matrizes from statistics import p...
24.384615
75
0.633168
0
0
0
0
0
0
0
0
903
0.402945
d6b7e37b488f062925a4fc8dd11c3dc8a00b2e5d
4,424
py
Python
tools/weixin.py
GingerWWW/news_spider
51e1437cf9a58071cc5bd2c12f854ae84f96a5d5
[ "MIT" ]
208
2018-02-11T01:58:08.000Z
2022-03-28T07:15:12.000Z
tools/weixin.py
DeteMin/news_spider
9e29525a8bcb2310fca3bb4f9ca4b99b39ecfc9c
[ "MIT" ]
19
2018-04-17T11:03:28.000Z
2022-03-17T00:02:20.000Z
tools/weixin.py
DeteMin/news_spider
9e29525a8bcb2310fca3bb4f9ca4b99b39ecfc9c
[ "MIT" ]
44
2018-02-26T09:47:41.000Z
2022-03-22T13:34:27.000Z
#!/usr/bin/env python # encoding: utf-8 """ @author: zhanghe @software: PyCharm @file: weixin.py @time: 2018-02-10 17:55 """ import re import time import hashlib # from urlparse import urljoin # PY2 # from urllib.parse import urljoin # PY3 from future.moves.urllib.parse import urljoin ...
30.937063
141
0.614828
2,054
0.460952
0
0
0
0
0
0
1,372
0.307899
d6be2f5eba8bd47a690f4ce82ab27016a99d70c3
126
py
Python
Python/_16_Numpy/_02_Shape_and_Reshape/solution.py
avtomato/HackerRank
96f9cf770ac57d782bb05cccc23764a529bb27ae
[ "MIT" ]
null
null
null
Python/_16_Numpy/_02_Shape_and_Reshape/solution.py
avtomato/HackerRank
96f9cf770ac57d782bb05cccc23764a529bb27ae
[ "MIT" ]
null
null
null
Python/_16_Numpy/_02_Shape_and_Reshape/solution.py
avtomato/HackerRank
96f9cf770ac57d782bb05cccc23764a529bb27ae
[ "MIT" ]
2
2019-09-21T16:04:13.000Z
2020-03-25T09:07:47.000Z
import numpy arr = map(int, input().strip().split(' ')) d2_arr = numpy.array(list(arr)) d2_arr.shape = (3, 3) print(d2_arr)
15.75
42
0.650794
0
0
0
0
0
0
0
0
3
0.02381
d6bfbf2d051a74fc9be123eeb1ea06791a6a5509
1,359
py
Python
source/Objects/XTRA_Scaling_Parameters.py
afarahi/XTRA
6550b216264abaa3ed705835aca0981f2934e069
[ "MIT" ]
2
2018-11-01T12:38:56.000Z
2019-10-22T07:02:54.000Z
source/Objects/XTRA_Scaling_Parameters.py
afarahi/XTRA
6550b216264abaa3ed705835aca0981f2934e069
[ "MIT" ]
null
null
null
source/Objects/XTRA_Scaling_Parameters.py
afarahi/XTRA
6550b216264abaa3ed705835aca0981f2934e069
[ "MIT" ]
null
null
null
import os.path import json class Temprature_scaling: def __init__(self, label): fname = './parameters/Models/Txm/' + label + '_parameters.json' if os.path.isfile(fname) == False: print("Error: %s does not exists it uses Tx scaling default parameters."%s) exit(1) ...
22.278689
89
0.56365
1,318
0.969831
0
0
0
0
0
0
432
0.317881
d6c240b9e93cb9ac402108e702d6f69b681de912
545
py
Python
script_concurent_cpd_example.py
gmetsov/slow-momentum-fast-reversion
861c13ff2ea1d9e0b24523356c574c3ceaacf5bb
[ "MIT" ]
1
2022-03-25T11:37:31.000Z
2022-03-25T11:37:31.000Z
script_concurent_cpd_example.py
gmetsov/slow-momentum-fast-reversion
861c13ff2ea1d9e0b24523356c574c3ceaacf5bb
[ "MIT" ]
null
null
null
script_concurent_cpd_example.py
gmetsov/slow-momentum-fast-reversion
861c13ff2ea1d9e0b24523356c574c3ceaacf5bb
[ "MIT" ]
null
null
null
import multiprocessing import os from settings.default import QUANDL_TICKERS, CPD_QUANDL_OUTPUT_FOLDER_DEFAULT N_WORKERS = len(QUANDL_TICKERS) if not os.path.exists(CPD_QUANDL_OUTPUT_FOLDER_DEFAULT): os.mkdir(CPD_QUANDL_OUTPUT_FOLDER_DEFAULT) all_processes = [ f'python script_cpd_example.py "{ticker}" "{os....
32.058824
140
0.801835
0
0
0
0
0
0
0
0
136
0.249541
d6c44db13e9cf80092cf19bc3a381fd343fa5385
1,248
py
Python
events/migrations/0049_auto_20210308_1449.py
horacexd/clist
9759dfea97b86514bec9825d2430abc36decacf0
[ "Apache-2.0" ]
166
2019-05-16T23:46:08.000Z
2022-03-31T05:20:23.000Z
events/migrations/0049_auto_20210308_1449.py
horacexd/clist
9759dfea97b86514bec9825d2430abc36decacf0
[ "Apache-2.0" ]
92
2020-01-18T22:51:53.000Z
2022-03-12T01:23:57.000Z
events/migrations/0049_auto_20210308_1449.py
VadVergasov/clist
4afcdfe88250d224043b28efa511749347cec71c
[ "Apache-2.0" ]
23
2020-02-09T17:38:43.000Z
2021-12-09T14:39:07.000Z
# Generated by Django 3.1.7 on 2021-03-08 14:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('events', '0048_auto_20210307_1644'), ] operations = [ migrations.AlterField( model_name='event', name='email_conf', ...
28.363636
61
0.560897
1,155
0.925481
0
0
0
0
0
0
208
0.166667
d6c46aa5da8525586e87f2b472570c93ecfc9915
369
py
Python
cowin_settings/models/cowin_custom_model_data.py
shangdinvxu/cowinaddons
4e9d69894cd80e5427ccc9bac6c37b8bd67cadd0
[ "MIT" ]
null
null
null
cowin_settings/models/cowin_custom_model_data.py
shangdinvxu/cowinaddons
4e9d69894cd80e5427ccc9bac6c37b8bd67cadd0
[ "MIT" ]
null
null
null
cowin_settings/models/cowin_custom_model_data.py
shangdinvxu/cowinaddons
4e9d69894cd80e5427ccc9bac6c37b8bd67cadd0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from odoo import models, fields, api class Cowin_custom_model_data(models.Model): _name = 'cowin_settings.custome_model_data' # name = fields.Char(string=u'ID') model_name = fields.Char(string=u'model ID') _sql_constraints = [ ('model_name_key', 'UNIQ...
23.0625
75
0.639566
314
0.819843
0
0
0
0
0
0
179
0.467363
d6c7f2bc5030b6e6a1c3bad3cfc0eb72b6f4212f
172
py
Python
iex_parser_test/__init__.py
Cedric-Kram/iex_parser
b5aebe79b2125681ab0606f4f59ec325aadeebb9
[ "Apache-2.0" ]
15
2019-08-15T07:22:44.000Z
2022-01-18T20:52:22.000Z
iex_parser_test/__init__.py
Cedric-Kram/iex_parser
b5aebe79b2125681ab0606f4f59ec325aadeebb9
[ "Apache-2.0" ]
5
2020-05-29T04:58:34.000Z
2022-01-31T07:27:20.000Z
iex_parser_test/__init__.py
Cedric-Kram/iex_parser
b5aebe79b2125681ab0606f4f59ec325aadeebb9
[ "Apache-2.0" ]
4
2020-09-08T15:03:20.000Z
2022-01-18T13:33:56.000Z
"""iex_parser""" from .parser import Parser from .messages import DEEP_1_0, TOPS_1_6, TOPS_1_5 __all__ = [ 'Parser', 'DEEP_1_0', 'TOPS_1_5', 'TOPS_1_6' ]
14.333333
50
0.645349
0
0
0
0
0
0
0
0
54
0.313953
d6ca0b78e18a4bf98def2fc3af39ef75294bf852
14,129
py
Python
tweezers/io/TxtMpiSource.py
DollSimon/tweezers
7c9b3d781c53f7728526a8242aa9e1d671f15688
[ "BSD-2-Clause" ]
null
null
null
tweezers/io/TxtMpiSource.py
DollSimon/tweezers
7c9b3d781c53f7728526a8242aa9e1d671f15688
[ "BSD-2-Clause" ]
null
null
null
tweezers/io/TxtMpiSource.py
DollSimon/tweezers
7c9b3d781c53f7728526a8242aa9e1d671f15688
[ "BSD-2-Clause" ]
null
null
null
from pathlib import Path import json import re import numpy as np import os from collections import OrderedDict from .TxtMpiFile import TxtMpiFile from .BaseSource import BaseSource from tweezers.meta import MetaDict, UnitDict class TxtMpiSource(BaseSource): """ Data source for \*.txt files from the MPI with...
32.038549
119
0.55793
13,898
0.983651
0
0
3,552
0.251398
0
0
7,317
0.517871
d6ca2315271e77162aceabe261d43740120a7244
232
py
Python
nslocapysation/constants.py
resmio/nslocapysation
6643adf359b17212e2e2774de52904123ec2fcfd
[ "MIT" ]
1
2018-11-25T16:56:31.000Z
2018-11-25T16:56:31.000Z
nslocapysation/constants.py
resmio/nslocapysation
6643adf359b17212e2e2774de52904123ec2fcfd
[ "MIT" ]
null
null
null
nslocapysation/constants.py
resmio/nslocapysation
6643adf359b17212e2e2774de52904123ec2fcfd
[ "MIT" ]
null
null
null
# keys IMPLEMENTATION_FILE_PATHS_KEY = r'implementation_file_paths' LPROJ_DIR_PATHS_KEY = r'lproj_file_paths' KEY_KEY = r'key' TRANSLATION_KEY = r'translation' # file names LOCALIZABLE_STRINGS_FILE_NAME = r'Localizable.strings'
19.333333
60
0.818966
0
0
0
0
0
0
0
0
107
0.461207
d6ca4d4ba42af57fc033e9368f2ae8ef9b4d183f
6,482
py
Python
shexter_client/shexterd.py
tetchel/shexter-client
b1db3ac072fc9a53403a15b1f41188e0a09220f4
[ "MIT" ]
3
2017-12-18T06:37:50.000Z
2018-02-23T08:31:25.000Z
shexter_client/shexterd.py
tetchel/shexter-client
b1db3ac072fc9a53403a15b1f41188e0a09220f4
[ "MIT" ]
null
null
null
shexter_client/shexterd.py
tetchel/shexter-client
b1db3ac072fc9a53403a15b1f41188e0a09220f4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from threading import Thread from time import sleep import logging import shexter.requester import shexter.platform as platform import shexter.config """ This file is for the shexter daemon, which runs persistantly. Every 5 seconds, it polls the phone to see if there are unread messages. If t...
32.248756
149
0.631749
0
0
0
0
0
0
0
0
2,498
0.385375
d6caa6b944d454c9401a57591872b8b05ba06ad2
7,218
py
Python
info_epd/mixins/salah.py
ibnadam/info_epd
3838cc30187dc10fd2c79fba2d51357d3dbbf47a
[ "MIT" ]
null
null
null
info_epd/mixins/salah.py
ibnadam/info_epd
3838cc30187dc10fd2c79fba2d51357d3dbbf47a
[ "MIT" ]
null
null
null
info_epd/mixins/salah.py
ibnadam/info_epd
3838cc30187dc10fd2c79fba2d51357d3dbbf47a
[ "MIT" ]
null
null
null
import sys import os import logging import time import datetime from PIL import ( Image, ImageDraw, ImageFont ) from config import * from util import * from info_epd import praytimes DEBUG_PRAYTIMES = False class SalahMixin: """Uses praytimes library for calculating prayer times. Make sure s...
34.371429
87
0.541563
6,991
0.968551
0
0
0
0
0
0
1,486
0.205874
d6cba202761b7405679a5ca3b25903c5029105ec
5,871
py
Python
tests/test_denstatbank.py
gmohandas/denstatbank
c82cdbafb934de40d106c1f0f94ef58b0962e25c
[ "BSD-3-Clause-Clear" ]
1
2020-05-28T14:59:04.000Z
2020-05-28T14:59:04.000Z
tests/test_denstatbank.py
gmohandas/denstatbank
c82cdbafb934de40d106c1f0f94ef58b0962e25c
[ "BSD-3-Clause-Clear" ]
null
null
null
tests/test_denstatbank.py
gmohandas/denstatbank
c82cdbafb934de40d106c1f0f94ef58b0962e25c
[ "BSD-3-Clause-Clear" ]
null
null
null
import pandas as pd import pytest from denstatbank.denstatbank import StatBankClient from denstatbank.utils import data_dict_to_df, add_list_to_dict from .mock_responses import ( mock_sub_resp_default, mock_sub_resp_2401, mock_tables_resp, mock_tableinfo_resp, mock_tableinfo_variable_resp, mock_...
33.169492
93
0.69971
0
0
0
0
263
0.044781
0
0
696
0.118508
d6cc154da2b05275462754e08a6a4fdca86447f1
473
py
Python
258-add-digits/258-add-digits.py
e-lin/LeetCode
1a00e187b5ccea3bddabf93a29164bf0ad928b7d
[ "Apache-2.0" ]
null
null
null
258-add-digits/258-add-digits.py
e-lin/LeetCode
1a00e187b5ccea3bddabf93a29164bf0ad928b7d
[ "Apache-2.0" ]
null
null
null
258-add-digits/258-add-digits.py
e-lin/LeetCode
1a00e187b5ccea3bddabf93a29164bf0ad928b7d
[ "Apache-2.0" ]
null
null
null
class Solution(object): def addDigits(self, num): """ :type num: int :rtype: int """ s = str(num) l = list(s) sum = 0 for digit in l: sum += int(digit) if len(list(str(sum))) == 1: return sum else: r...
17.518519
38
0.46723
345
0.729387
0
0
0
0
0
0
68
0.143763
d6cc317a27628be12980edb90d20e0b73593f693
205
py
Python
data/copy_license.py
dashingsoft/pyarmor-server
8ac1995d3a0b4ca4592a2a9fa255a7a420f36bc7
[ "MIT" ]
28
2020-07-02T22:12:32.000Z
2022-03-30T03:21:34.000Z
data/copy_license.py
dashingsoft/pyarmor-server
8ac1995d3a0b4ca4592a2a9fa255a7a420f36bc7
[ "MIT" ]
3
2020-03-09T09:43:48.000Z
2020-10-19T05:23:37.000Z
data/copy_license.py
dashingsoft/pyarmor-server
8ac1995d3a0b4ca4592a2a9fa255a7a420f36bc7
[ "MIT" ]
13
2020-04-27T13:31:00.000Z
2022-01-16T05:49:06.000Z
import sys from os.path import join, dirname with open(join(dirname(sys.executable), 'license.lic'), 'rb') as fs: with open(join(sys._MEIPASS, 'license.lic'), 'wb') as fd: fd.write(fs.read())
29.285714
68
0.663415
0
0
0
0
0
0
0
0
34
0.165854
d6d00e0815efbd0fa8cd9dea45c88de5c7194783
2,689
py
Python
src/web/sistema/templatetags/number_to_text.py
fossabot/SIStema
1427dda2082688a9482c117d0e24ad380fdc26a6
[ "MIT" ]
5
2018-03-08T17:22:27.000Z
2018-03-11T14:20:53.000Z
src/web/sistema/templatetags/number_to_text.py
fossabot/SIStema
1427dda2082688a9482c117d0e24ad380fdc26a6
[ "MIT" ]
263
2018-03-08T18:05:12.000Z
2022-03-11T23:26:20.000Z
src/web/sistema/templatetags/number_to_text.py
fossabot/SIStema
1427dda2082688a9482c117d0e24ad380fdc26a6
[ "MIT" ]
6
2018-03-12T19:48:19.000Z
2022-01-14T04:58:52.000Z
from django.template import Library register = Library() hundreds = [ '', 'сто', 'двести', 'триста', 'четыреста', 'пятьсот', 'шестьсот', 'семьсот', 'восемьсот', 'девятьсот' ] first_decade = [ '', ('одна', 'один'), ('две', 'два'), 'три', 'четыре', 'пять...
22.040984
92
0.564522
0
0
0
0
1,689
0.562812
0
0
825
0.274908
d6d066071d6280fd212953aa9288f12b50467f48
1,577
py
Python
sympy/solvers.py
Fernal73/LearnPython3
5288017c0dbf95633b84f1e6324f00dec6982d36
[ "MIT" ]
1
2021-12-17T11:03:13.000Z
2021-12-17T11:03:13.000Z
sympy/solvers.py
Fernal73/LearnPython3
5288017c0dbf95633b84f1e6324f00dec6982d36
[ "MIT" ]
1
2020-02-05T00:14:43.000Z
2020-02-06T09:22:49.000Z
sympy/solvers.py
Fernal73/LearnPython3
5288017c0dbf95633b84f1e6324f00dec6982d36
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from sympy import * x, y, z = symbols('x y z') init_printing(use_unicode=True) print(Eq(x, y)) print(solveset(Eq(x**2, 1), x)) print(solveset(Eq(x**2 - 1, 0), x)) print(solveset(x**2 - 1, x)) print(solveset(x**2 - x, x)) print(solveset(x - x, x, domain=S.Reals)) print(so...
31.54
64
0.551046
0
0
0
0
0
0
0
0
115
0.072923
d6d18a1cdcb8a5f838db2879bdd4174a5798f34c
421
py
Python
setup.py
kelonye/python-twitter
9f8293b53c4f91de3f14510af8d18ad2ad7e8867
[ "MIT" ]
2
2015-05-29T02:10:56.000Z
2015-11-07T12:54:41.000Z
setup.py
kelonye/python-twitter
9f8293b53c4f91de3f14510af8d18ad2ad7e8867
[ "MIT" ]
null
null
null
setup.py
kelonye/python-twitter
9f8293b53c4f91de3f14510af8d18ad2ad7e8867
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='ptwitter', version='0.0.1', description="Tiny python library for Twitter's REST API.", author='Mitchel Kelonye', author_email='[email protected]', url='https://github.com/kelonye/python-twitter', packages...
26.3125
62
0.674584
0
0
0
0
0
0
0
0
207
0.491686
d6d4a59aaae6c52a8e517ab6fdf2ff853e934000
44
py
Python
python/testData/addImport/newFirstImportInBuiltinGroup/main.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/addImport/newFirstImportInBuiltinGroup/main.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/addImport/newFirstImportInBuiltinGroup/main.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
import sys import a print(datetime, sys, a)
11
23
0.75
0
0
0
0
0
0
0
0
0
0
d6d5022d562b8e05c89e7d039fdd54b153bdd856
10,444
py
Python
resdk/tests/unit/test_utils.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
resdk/tests/unit/test_utils.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
resdk/tests/unit/test_utils.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
""" Unit tests for resdk/resources/utils.py file. """ # pylint: disable=missing-docstring, protected-access import unittest import six from mock import MagicMock, call, patch from resdk.resources import Collection, Data, Process, Relation, Sample from resdk.resources.utils import ( _print_input_line, endswith_co...
37.035461
95
0.567503
9,366
0.896783
0
0
503
0.048162
0
0
2,768
0.265033
d6d7581ab54e0bc20bcf26b8c40b0005e45bc25c
1,136
py
Python
pa1-skeleton/submission/parse_block.py
yzhong94/cs276-spring-2019
a4780a9f88b8c535146040fe11bb513c91c5693b
[ "MIT" ]
null
null
null
pa1-skeleton/submission/parse_block.py
yzhong94/cs276-spring-2019
a4780a9f88b8c535146040fe11bb513c91c5693b
[ "MIT" ]
null
null
null
pa1-skeleton/submission/parse_block.py
yzhong94/cs276-spring-2019
a4780a9f88b8c535146040fe11bb513c91c5693b
[ "MIT" ]
null
null
null
class BSBIIndex(BSBIIndex): def parse_block(self, block_dir_relative): """Parses a tokenized text file into termID-docID pairs Parameters ---------- block_dir_relative : str Relative Path to the directory that contains the files for the block ...
39.172414
120
0.564261
1,135
0.99912
0
0
0
0
0
0
565
0.497359
d6d796c86f20ac0784cd2ab3c3a72578c896d385
1,674
py
Python
test/test_core_initializer.py
t-k-/tinynn
969eb96020406885d081a961084d9328e2939622
[ "MIT" ]
27
2019-09-16T01:54:19.000Z
2022-03-14T04:50:26.000Z
test/test_core_initializer.py
t-k-/tinynn
969eb96020406885d081a961084d9328e2939622
[ "MIT" ]
null
null
null
test/test_core_initializer.py
t-k-/tinynn
969eb96020406885d081a961084d9328e2939622
[ "MIT" ]
6
2019-09-16T01:54:33.000Z
2022-03-07T12:00:55.000Z
"""test unit for core/initializer.py""" import runtime_path # isort:skip from core.initializer import * TEST_SHAPE = (100000, 1) TOR = 1e-2 def test_get_fans(): fan_in, fan_out = get_fans(shape=(100, 10)) assert fan_in == 100 and fan_out == 10 fan_in, fan_out = get_fans(shape=(64, 5, 5, 128)) ass...
26.15625
65
0.643369
0
0
0
0
0
0
0
0
51
0.030466
d6db1b844a289657730452a636a61c698c02aa89
1,117
py
Python
varex/commons/VCFEntry.py
weiyi-bitw/varex
765e8876c0ced480a47c0e523736bd31b7897644
[ "MIT" ]
null
null
null
varex/commons/VCFEntry.py
weiyi-bitw/varex
765e8876c0ced480a47c0e523736bd31b7897644
[ "MIT" ]
null
null
null
varex/commons/VCFEntry.py
weiyi-bitw/varex
765e8876c0ced480a47c0e523736bd31b7897644
[ "MIT" ]
null
null
null
class VCFEntry(object): def __init__(self, vkey, ssid, pid, ac, passFilter=1, qual=-1, gq=-1, dp=-1, ad=-1): self.vkey = vkey if not ssid: self.ssid = "UNKNOWN" else: self.ssid = ssid self.pid = pid self.ac = ac self.passFilter = passFilter ...
32.852941
162
0.584602
1,110
0.993733
0
0
0
0
0
0
33
0.029543
d6dd795a3bd40d81aa9b1e2a17911949cba95e34
14,321
py
Python
inventory/nova.py
forgeservicelab/ansible.account-cleanup
14a855f57c5d06c1114f18f561199f9a1534f707
[ "MIT" ]
null
null
null
inventory/nova.py
forgeservicelab/ansible.account-cleanup
14a855f57c5d06c1114f18f561199f9a1534f707
[ "MIT" ]
null
null
null
inventory/nova.py
forgeservicelab/ansible.account-cleanup
14a855f57c5d06c1114f18f561199f9a1534f707
[ "MIT" ]
null
null
null
#!/usr/bin/env python # (c) 2012, Marco Vito Moscaritolo <[email protected]> # modified by Tomas Karasek <[email protected]> # # This file is part of Ansible, # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free S...
33.46028
79
0.649047
0
0
0
0
0
0
0
0
7,376
0.515048
d6de6584aa755891b400cead530c2e7d4744bf03
7,003
py
Python
mltc/evaluator.py
BonnierNews/lukas-ner-model
1f7f688f9b0f1e7b7cb66c42f188358d27a0be09
[ "MIT" ]
null
null
null
mltc/evaluator.py
BonnierNews/lukas-ner-model
1f7f688f9b0f1e7b7cb66c42f188358d27a0be09
[ "MIT" ]
null
null
null
mltc/evaluator.py
BonnierNews/lukas-ner-model
1f7f688f9b0f1e7b7cb66c42f188358d27a0be09
[ "MIT" ]
null
null
null
from datetime import date import numpy as np from sklearn.metrics import ( roc_curve, auc, ) import torch from torch.utils.data import DataLoader from .metrics import accuracy_thresh, fbeta, pairwise_confusion_matrix import pandas as pd from tqdm import tqdm class ModelEvaluator: """Class for evaluati...
34.497537
87
0.565472
6,729
0.960874
0
0
0
0
0
0
1,277
0.18235
d6df220a36694618699e66a95c74ab11a133b077
7,381
py
Python
synapse/lib/datapath.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
synapse/lib/datapath.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
synapse/lib/datapath.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
import collections import xml.etree.ElementTree as x_etree import synapse.common as s_common import synapse.lib.syntax as s_syntax class DataElem: def __init__(self, item, name=None, parent=None): self._d_name = name self._d_item = item self._d_parent = parent self._d_special = ...
25.898246
75
0.520661
6,850
0.928059
4,135
0.560222
0
0
0
0
1,916
0.259585
d6e3ab9d5ea800c6d75075d9a0c1f51418a5e6e8
1,851
py
Python
addon/blenderAddon/test.py
kazulagi/plantFEM
20bf2df8202d41aa5dc25d1cc820385dabbc604f
[ "MIT" ]
21
2020-06-21T08:21:44.000Z
2022-01-13T04:28:30.000Z
addon/blenderAddon/test.py
kazulagi/plantFEM_binary
32acf059a6d778307211718c2a512ff796b81c52
[ "MIT" ]
5
2021-05-08T05:20:06.000Z
2022-03-25T05:39:29.000Z
addon/blenderAddon/test.py
kazulagi/plantFEM_binary
32acf059a6d778307211718c2a512ff796b81c52
[ "MIT" ]
4
2020-10-20T18:28:59.000Z
2021-12-15T08:35:25.000Z
bl_info = { "name": "plantFEM (Seed)", "author": "Haruka Tomobe", "version": (1, 0), "blender": (2, 80, 0), "location": "View3D > Add > Mesh > plantFEM Object", "description": "Adds a new plantFEM Object", "warning": "", "wiki_url": "", "category": "Add Mesh", } import bpy from bp...
26.070423
68
0.670989
714
0.363729
0
0
0
0
0
0
585
0.298013
d6e3fe20726371350367db02dca201ae5e10d187
159
py
Python
ASSIGN-1/assignment_1/assignment_1/envs/__init__.py
ShivenTripathi/CS698-Deep-Reinforcement-Learning
184f7887cea3065d2bfa4ba05bfb249838c3dab4
[ "MIT" ]
null
null
null
ASSIGN-1/assignment_1/assignment_1/envs/__init__.py
ShivenTripathi/CS698-Deep-Reinforcement-Learning
184f7887cea3065d2bfa4ba05bfb249838c3dab4
[ "MIT" ]
null
null
null
ASSIGN-1/assignment_1/assignment_1/envs/__init__.py
ShivenTripathi/CS698-Deep-Reinforcement-Learning
184f7887cea3065d2bfa4ba05bfb249838c3dab4
[ "MIT" ]
null
null
null
from assignment_1.envs.gaussianBandit import gaussianBandit from assignment_1.envs.bernoulliBandit import bernoulliBandit from assignment_1.envs.RWE import RWE
53
61
0.893082
0
0
0
0
0
0
0
0
0
0
d6e576ee6650fb505b02888827826458811575c7
1,401
py
Python
tests/test_ftp_worker.py
BookOps-CAT/QCbotB
258a3dd4a0b346c0fee82fe332e368c0b5c91440
[ "MIT" ]
null
null
null
tests/test_ftp_worker.py
BookOps-CAT/QCbotB
258a3dd4a0b346c0fee82fe332e368c0b5c91440
[ "MIT" ]
15
2018-01-19T17:39:08.000Z
2020-12-16T17:57:12.000Z
tests/test_ftp_worker.py
BookOps-CAT/QCbotB
258a3dd4a0b346c0fee82fe332e368c0b5c91440
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unittest from datetime import datetime, timedelta from context import aged_out_report, find_todays_file class Test_FTP_worker(unittest.TestCase): """ Test FTP_worker module functionality""" def test_find_today_file(self): self.assertIsNone( find_todays_fil...
30.456522
83
0.577445
1,212
0.865096
0
0
0
0
0
0
210
0.149893
d6e578f9bf5ed9349829616902ed52c6a3a8e2e9
177
py
Python
get_version.py
sbacchio/tuneit
8d4771acbb56e07336e2aae66160a1f62777cb01
[ "BSD-3-Clause" ]
null
null
null
get_version.py
sbacchio/tuneit
8d4771acbb56e07336e2aae66160a1f62777cb01
[ "BSD-3-Clause" ]
null
null
null
get_version.py
sbacchio/tuneit
8d4771acbb56e07336e2aae66160a1f62777cb01
[ "BSD-3-Clause" ]
null
null
null
"Usage: python -m get_version ./setup.py" import setuptools import sys setuptools.setup = lambda *args, version=None, **kwargs: print(version) exec(open(sys.argv[1]).read())
19.666667
71
0.728814
0
0
0
0
0
0
0
0
41
0.231638
d6e603f00a28c8cca2ac1585a148b957b90cf6ad
4,815
py
Python
java/javaClass.py
skylarkgit/sql2java
befd55180969b0ec68e242991c3260272d755cc9
[ "MIT" ]
2
2019-10-23T08:27:30.000Z
2019-10-23T09:58:45.000Z
java/javaClass.py
skylarkgit/sql2java
befd55180969b0ec68e242991c3260272d755cc9
[ "MIT" ]
null
null
null
java/javaClass.py
skylarkgit/sql2java
befd55180969b0ec68e242991c3260272d755cc9
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from dialectUtil import * from java.javaProperty import JAVAProperty from java.javaSnippets import * from java.javaLink import JAVALink import constants as CONST JAVA_PROPERTIES = {} JAVA_PROPERTIES['JAVA_AUTO_IMPORTABLE'] = ['created_by','last_modified_by','created_date', 'last_modified_date'] clas...
51.223404
158
0.622638
4,499
0.934372
0
0
0
0
0
0
968
0.201038
d6e6226b3673f32b61f24bf4e754297739bd3b2c
1,295
py
Python
gui1.py
aseemk11/Attendance-system-using-Face-recognization-
b7ca08a868c8b41d776eaa8e0c6ada7ab23df040
[ "Apache-2.0" ]
null
null
null
gui1.py
aseemk11/Attendance-system-using-Face-recognization-
b7ca08a868c8b41d776eaa8e0c6ada7ab23df040
[ "Apache-2.0" ]
null
null
null
gui1.py
aseemk11/Attendance-system-using-Face-recognization-
b7ca08a868c8b41d776eaa8e0c6ada7ab23df040
[ "Apache-2.0" ]
null
null
null
from tkinter import * import os main = Tk() main.geometry('{}x{}'.format(550, 550)) main.wm_title("Welcome to Face Recognition Based Attendence System ") svalue3= StringVar() # defines the widget state as string svalue2 = StringVar() #imagePath = PhotoImage(file="facerec.png") #widgetf = Label(main, image=imagePath)....
26.428571
115
0.713514
0
0
0
0
0
0
0
0
467
0.360618
d6e6b0705f1fc5675687010c9694d9720c0c22e7
133
py
Python
app/extensions.py
vatsalag99/mapping_self-harm_risk_twitter
262c36f994c909714a738686b025633d832bc596
[ "MIT" ]
null
null
null
app/extensions.py
vatsalag99/mapping_self-harm_risk_twitter
262c36f994c909714a738686b025633d832bc596
[ "MIT" ]
1
2021-06-02T01:16:32.000Z
2021-06-02T01:16:32.000Z
app/extensions.py
vatsalag99/mapping_self-harm_risk_twitter
262c36f994c909714a738686b025633d832bc596
[ "MIT" ]
null
null
null
"""Extensions module - Set up for additional libraries can go in here.""" from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy()
26.6
73
0.766917
0
0
0
0
0
0
0
0
73
0.548872
d6e750c2e34d4d5c52e114e9bd8b810a1a5e2430
2,586
py
Python
src/tiden/apps/zookeeper/zookeeper_utils.py
mshonichev/example_pkg
556a703fe8ea4a7737b8cae9c5d4d19c1397a70b
[ "Apache-2.0" ]
14
2020-06-05T09:30:42.000Z
2022-01-19T00:26:48.000Z
src/tiden/apps/zookeeper/zookeeper_utils.py
mshonichev/example_pkg
556a703fe8ea4a7737b8cae9c5d4d19c1397a70b
[ "Apache-2.0" ]
6
2020-06-09T14:05:21.000Z
2021-03-18T13:55:15.000Z
src/tiden/apps/zookeeper/zookeeper_utils.py
mshonichev/example_pkg
556a703fe8ea4a7737b8cae9c5d4d19c1397a70b
[ "Apache-2.0" ]
1
2020-06-09T13:53:15.000Z
2020-06-09T13:53:15.000Z
#!/usr/bin/env python3 # # Copyright 2017-2020 GridGain Systems. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
34.026316
82
0.656999
1,840
0.711524
0
0
0
0
0
0
1,013
0.391725
d6e87832836db722cb4f55a3e89485349b743a75
859
py
Python
LaneTracking-master/main.py
cmflannery/openvision
884ae95325dba1db0d428179796efe03964d5f5b
[ "MIT" ]
null
null
null
LaneTracking-master/main.py
cmflannery/openvision
884ae95325dba1db0d428179796efe03964d5f5b
[ "MIT" ]
null
null
null
LaneTracking-master/main.py
cmflannery/openvision
884ae95325dba1db0d428179796efe03964d5f5b
[ "MIT" ]
null
null
null
from __future__ import division import cv2 import track import detect def main(video_path): cap = cv2.VideoCapture(video_path) ticks = 0 lt = track.LaneTracker(2, 0.1, 500) ld = detect.LaneDetector(180) while cap.isOpened(): precTick = ticks ticks = cv2.getTickCount() d...
23.861111
115
0.571595
0
0
0
0
0
0
0
0
5
0.005821
d6e8a2cccf8950f95f736755d08af27a34195960
368
py
Python
app_server/config.py
brdavs/faker-trader
6681bb65bab6d024e2f9dffec62a7decf64c76cd
[ "MIT" ]
null
null
null
app_server/config.py
brdavs/faker-trader
6681bb65bab6d024e2f9dffec62a7decf64c76cd
[ "MIT" ]
null
null
null
app_server/config.py
brdavs/faker-trader
6681bb65bab6d024e2f9dffec62a7decf64c76cd
[ "MIT" ]
null
null
null
SEECRET = 'Extremely secretive seecret. You could not guess this one if your life depended on it.' DATABASE = 'db/data.db' DATABASE_PRICES = 'db/prices.db' SESSION_TTL = 240 WEBSOCKETS_PORT= 7334 WEBSOCKETS_URI = 'ws://localhost:' + str(WEBSOCKETS_PORT) DEFAULT_LEDGER = { 'value': 10000, 'asset_id': 1 } DEFAU...
24.533333
98
0.73913
0
0
0
0
0
0
0
0
148
0.402174
d6e8aa9357aa361fc5853ac40c9c73710411ae7e
6,349
py
Python
telas/telaEditUser.py
JedersonLuz/BibWorld
c5638a57c35bdfcdaa6b66d7e2244e33afd5ae97
[ "MIT" ]
null
null
null
telas/telaEditUser.py
JedersonLuz/BibWorld
c5638a57c35bdfcdaa6b66d7e2244e33afd5ae97
[ "MIT" ]
null
null
null
telas/telaEditUser.py
JedersonLuz/BibWorld
c5638a57c35bdfcdaa6b66d7e2244e33afd5ae97
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'telas/telaEditUser.ui' # # Created by: PyQt5 UI code generator 5.13.0 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtWidgets import QMessageBox import PyrebaseConnector as P...
41.769737
113
0.673807
5,820
0.915958
0
0
0
0
0
0
1,063
0.167296
d6e9fedf25e708c35ea19099181ea08ee2952f97
1,303
py
Python
tests/unit/testing/test_scenarios.py
thoughteer/edera
c4ddb5d8a25906c3bd773c91afb3260fc0b704f2
[ "MIT" ]
3
2018-11-27T15:45:19.000Z
2018-12-21T20:32:10.000Z
tests/unit/testing/test_scenarios.py
thoughteer/edera
c4ddb5d8a25906c3bd773c91afb3260fc0b704f2
[ "MIT" ]
18
2018-12-02T18:38:59.000Z
2020-02-05T22:09:37.000Z
tests/unit/testing/test_scenarios.py
thoughteer/edera
c4ddb5d8a25906c3bd773c91afb3260fc0b704f2
[ "MIT" ]
null
null
null
import pytest from edera import Condition from edera import Task from edera.exceptions import TargetVerificationError from edera.testing import DefaultScenario from edera.testing import ScenarioWithProvidedStubs def test_default_scenario_works_correctly(): class A(Task): def execute(self): ...
19.742424
56
0.603991
493
0.378358
0
0
0
0
0
0
0
0
d6eb33dfcb899869dc176ac912f3e58fd02bafeb
1,604
py
Python
nova/tests/unit/conductor/tasks/test_base.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/tests/unit/conductor/tasks/test_base.py
woraser/nova
fc3890667e4971e3f0f35ac921c2a6c25f72adec
[ "Apache-2.0" ]
132
2017-03-27T11:31:52.000Z
2022-03-30T08:45:02.000Z
nova/tests/unit/conductor/tasks/test_base.py
woraser/nova
fc3890667e4971e3f0f35ac921c2a6c25f72adec
[ "Apache-2.0" ]
8
2017-03-27T07:50:38.000Z
2020-02-14T16:55:56.000Z
# 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, software # d...
29.703704
78
0.666459
952
0.593516
0
0
490
0.305486
0
0
581
0.362219
d6ec2af6465219bbbd1c415984736e30d5b7e368
2,160
py
Python
flarmfuncs.py
acasadoalonso/RealTimeScoring
843fd151a9a963851f79549b8c9117ac37779578
[ "MIT" ]
null
null
null
flarmfuncs.py
acasadoalonso/RealTimeScoring
843fd151a9a963851f79549b8c9117ac37779578
[ "MIT" ]
null
null
null
flarmfuncs.py
acasadoalonso/RealTimeScoring
843fd151a9a963851f79549b8c9117ac37779578
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import MySQLdb from ognddbfuncs import getognchk unkglider = [] def getflarmid(conn, registration): # get the FLARMID from the GLIDERS table on the database cursG = conn.cursor() # set the cursor for searching the devices try: cursG.execute("select idglider, flarmtype from...
44.081633
121
0.572685
0
0
0
0
0
0
0
0
960
0.444444
d6ec4b20c2057ab10ad8e413862f2137de3b2c8f
1,916
py
Python
sf2_webapp/__main__.py
EdinburghGenomics/sf2-webapp
7deab0a6513f8586646e16edacbc19bcfc3b18ad
[ "MIT" ]
null
null
null
sf2_webapp/__main__.py
EdinburghGenomics/sf2-webapp
7deab0a6513f8586646e16edacbc19bcfc3b18ad
[ "MIT" ]
null
null
null
sf2_webapp/__main__.py
EdinburghGenomics/sf2-webapp
7deab0a6513f8586646e16edacbc19bcfc3b18ad
[ "MIT" ]
null
null
null
"""Edinburgh Genomics Online SF2 web application. examples: To start the tornado server: $ start_sf2_webapp More information is available at: - http://gitlab.genepool.private/hdunnda/sf2-webapp """ __version__="0.0.1" import os import tornado.options from tornado.options import define, options import sf2...
34.214286
166
0.740605
0
0
0
0
0
0
0
0
749
0.390919
d6ed4a83976491832fc89d30d7ac8104322085ec
828
py
Python
tesseractApi/blur.py
MTES-MCT/Dossier-Facile-API
7b6dd5ae96b28fb1b2b3dffbd5e1bf9c92f2ae48
[ "MIT" ]
2
2021-05-31T10:14:08.000Z
2022-03-02T10:28:06.000Z
tesseractApi/blur.py
MTES-MCT/Dossier-Facile-API
7b6dd5ae96b28fb1b2b3dffbd5e1bf9c92f2ae48
[ "MIT" ]
6
2021-12-14T13:29:41.000Z
2022-02-17T10:33:13.000Z
tesseractApi/blur.py
MTES-MCT/Dossier-Facile-API
7b6dd5ae96b28fb1b2b3dffbd5e1bf9c92f2ae48
[ "MIT" ]
3
2021-05-31T10:14:20.000Z
2022-03-02T10:28:47.000Z
#!/usr/bin/env python # coding:utf-8 import cv2 from PIL import Image from PyPDF2 import PdfFileReader import logging Image.MAX_IMAGE_PIXELS = None log = logging.getLogger(__name__) def variance_of_laplacian(image): # compute the Laplacian of the image and then return the focus # measure, which is simply th...
26.709677
66
0.725845
0
0
0
0
0
0
0
0
284
0.342995
d6efdd858055997f80aafaaffde2d0f802fbcec1
216
py
Python
copyImage.py
MauricioQueiros/dealingWithFiles
1a99753f928e5dbc4202d93c61ecce3f235f2344
[ "MIT" ]
null
null
null
copyImage.py
MauricioQueiros/dealingWithFiles
1a99753f928e5dbc4202d93c61ecce3f235f2344
[ "MIT" ]
null
null
null
copyImage.py
MauricioQueiros/dealingWithFiles
1a99753f928e5dbc4202d93c61ecce3f235f2344
[ "MIT" ]
null
null
null
#Copy a image def copyImage(imagePathToCopy, imageNameToPaste): with open(imagePathToCopy, 'rb') as rf: with open(imageNameToPaste, 'wb') as wf: for line in rf: wf.write(line)
30.857143
49
0.62037
0
0
0
0
0
0
0
0
21
0.097222
d6f068d6c5eae56035d6b920c42bb8ee0fe1c621
1,705
py
Python
ppcd/utils/loss_compute.py
geoyee/PdRSCD
4a1a7256320f006c15e3e5b5b238fdfba8198853
[ "Apache-2.0" ]
44
2021-04-21T02:41:55.000Z
2022-03-09T03:01:16.000Z
ppcd/utils/loss_compute.py
MinZHANG-WHU/PdRSCD
612976225201d78adc7ff99529ada17b41fedc5d
[ "Apache-2.0" ]
2
2021-09-30T07:52:47.000Z
2022-02-12T09:05:35.000Z
ppcd/utils/loss_compute.py
MinZHANG-WHU/PdRSCD
612976225201d78adc7ff99529ada17b41fedc5d
[ "Apache-2.0" ]
6
2021-07-23T02:18:39.000Z
2022-01-14T01:15:50.000Z
# import paddle def check_logits_losses(logits_list, losses): # 自动权重和衰减 if 'ceof' not in losses.keys(): losses['ceof'] = [1] * len(losses['type']) if 'decay' not in losses.keys(): losses['decay'] = [1] * len(losses['type']) if len(losses['type']) == len(losses['ceof']) and \ ...
39.651163
96
0.567155
0
0
0
0
0
0
0
0
350
0.202429
d6f151a961ded81e75f0e5f337aec384c9bf1232
28,150
py
Python
aiida_bigdft/PyBigDFT/BigDFT/LRTDDFT.py
adegomme/aiida-bigdft-plugin
dfd17f166a8cd547d3e581c7c3c9f4eb32bd2aab
[ "MIT" ]
2
2020-06-10T02:45:59.000Z
2020-08-05T18:55:05.000Z
aiida_bigdft/PyBigDFT/BigDFT/LRTDDFT.py
mikiec84/aiida-bigdft-plugin
ce6ddc69def97977fe0209861ea7f1637090b60f
[ "MIT" ]
6
2019-12-15T19:35:34.000Z
2021-05-07T15:32:18.000Z
aiida_bigdft/PyBigDFT/BigDFT/LRTDDFT.py
mikiec84/aiida-bigdft-plugin
ce6ddc69def97977fe0209861ea7f1637090b60f
[ "MIT" ]
1
2020-08-05T18:55:21.000Z
2020-08-05T18:55:21.000Z
import numpy as np from futile.Utils import write HaeV = 27.21138386 def _occ_and_virt(log): """ Extract the number of occupied and empty orbitals from a logfile """ norb = log.log['Total Number of Orbitals'] if log.log['Spin treatment'] == 'Averaged': norbv = log.evals[0].info[0]-norb ...
37.383798
79
0.590515
24,751
0.879254
0
0
0
0
0
0
13,159
0.46746
d6f34e314e7e198246f5d865ff9cf3535ca580d5
1,290
py
Python
pi-pytorch/tutorials/sensor/eval.py
tongni1975/stackup-workshops
d83f1d5adcc0b133b10e22d1db295020af967bac
[ "MIT" ]
12
2018-07-21T14:38:55.000Z
2020-08-18T07:27:39.000Z
pi-pytorch/tutorials/sensor/eval.py
tongni1975/stackup-workshops
d83f1d5adcc0b133b10e22d1db295020af967bac
[ "MIT" ]
1
2019-07-28T03:17:44.000Z
2019-12-14T09:01:18.000Z
pi-pytorch/tutorials/sensor/eval.py
tongni1975/stackup-workshops
d83f1d5adcc0b133b10e22d1db295020af967bac
[ "MIT" ]
10
2018-06-12T07:54:07.000Z
2020-08-18T07:31:47.000Z
import torch from torch.autograd import Variable from sklearn.metrics import confusion_matrix, classification_report import numpy as np import time # import our model and data from rnn import RNN from data import get_data hidden_size = 10 learning_rate = 0.01 num_layers = 2 num_epochs = 1000 sequence_length = 10 batc...
24.807692
67
0.712403
0
0
0
0
0
0
0
0
234
0.181395
d6f3a4cb8ec73baf05b168d49488b8ba1e024e77
357
py
Python
semesterIII/FADP/Exp2.py
ShreerajRaul/ghriet
4ff8372ced0c871f019a61b735c60725b6d373d4
[ "MIT" ]
null
null
null
semesterIII/FADP/Exp2.py
ShreerajRaul/ghriet
4ff8372ced0c871f019a61b735c60725b6d373d4
[ "MIT" ]
null
null
null
semesterIII/FADP/Exp2.py
ShreerajRaul/ghriet
4ff8372ced0c871f019a61b735c60725b6d373d4
[ "MIT" ]
null
null
null
# Solve the quadratic equation ax**2 + bx + c = 0 # import complex math module import cmath a=int(input("Enter a:")) b=int(input("Enter b:")) c=int(input("Enter c:")) # calculate the discriminant d = (b**2) - (4*a*c) # find two solutions sol1 = (-b-cmath.sqrt(d))/(2*a) sol2 = (-b+cmath.sqrt(d))/(2*a) print('The solutio...
29.75
55
0.641457
0
0
0
0
0
0
0
0
185
0.518207
d6f3ad28cff5e5298f763872e2703f17b36665e5
712
py
Python
very_scratch/dl_vs_vbo.py
ibrahemesam/Fos
f2f284a2c7bdc24dafafebb8aa3141ebf225e451
[ "BSD-3-Clause" ]
2
2016-08-03T10:33:08.000Z
2021-06-23T18:50:14.000Z
scratch/very_scratch/dl_vs_vbo.py
fos/fos-legacy
db6047668781a0615abcebc7d55a7164f3105047
[ "BSD-3-Clause" ]
null
null
null
scratch/very_scratch/dl_vs_vbo.py
fos/fos-legacy
db6047668781a0615abcebc7d55a7164f3105047
[ "BSD-3-Clause" ]
1
2021-07-11T00:16:46.000Z
2021-07-11T00:16:46.000Z
import numpy as np from fos.core.scene import Scene from fos.core.plots import Plot from fos.core.tracks import Tracks from fos.core.points import Points #data=200*np.random.rand(1000000,3) #colors=np.random.rand(1000000,4) data=[200*np.random.rand(int(np.round(30*np.random.rand()))+1,3).astype('float32') for i in...
24.551724
106
0.698034
0
0
0
0
0
0
0
0
293
0.411517
d6f4d7ce78ee83568625e15f5b3230cc4dd9e69a
419
py
Python
src/ipyradiant/visualization/__init__.py
dfreeman06/ipyradiant
6298889eb0d28c0dda01c4fc9d422814b9858878
[ "BSD-3-Clause" ]
null
null
null
src/ipyradiant/visualization/__init__.py
dfreeman06/ipyradiant
6298889eb0d28c0dda01c4fc9d422814b9858878
[ "BSD-3-Clause" ]
7
2020-07-21T12:48:13.000Z
2020-07-24T15:27:26.000Z
src/ipyradiant/visualization/__init__.py
dfreeman06/ipyradiant
6298889eb0d28c0dda01c4fc9d422814b9858878
[ "BSD-3-Clause" ]
1
2020-07-20T20:45:49.000Z
2020-07-20T20:45:49.000Z
"""vis widgets """ # Copyright (c) 2020 ipyradiant contributors. # Distributed under the terms of the Modified BSD License. __all__ = [ "CytoscapeVisualizer", "DatashaderVisualizer", "VisualizerBase", "LayoutSelector", "NXBase", ] from .base import NXBase, VisualizerBase from .cytoscape import Cyto...
24.647059
58
0.75895
0
0
0
0
0
0
0
0
204
0.486874
d6f5093886a911828813b1cbd57ad326b9f81128
11,780
py
Python
src/cascade/stats/compartmental.py
adolgert/cascade
2084e07c9ee5e901dd407b817220de882c7246a3
[ "MIT" ]
null
null
null
src/cascade/stats/compartmental.py
adolgert/cascade
2084e07c9ee5e901dd407b817220de882c7246a3
[ "MIT" ]
null
null
null
src/cascade/stats/compartmental.py
adolgert/cascade
2084e07c9ee5e901dd407b817220de882c7246a3
[ "MIT" ]
null
null
null
r""" .. _compartmental-modeling-tools: Compartmental Modeling Tools ---------------------------- These functions build theoretical distributions with which to understand how Dismod-AT works, and how disease processes work. 1. Specify a disease process by making simple Python functions that return disease rates ...
29.672544
107
0.655178
0
0
0
0
0
0
0
0
8,227
0.698032
d6f5c1437a7d4728359f187da5b4e39080bc257e
722
py
Python
apps/badge/migrations/0010_auto_20161112_2017.py
lestrato/badgepack
7432c0ead1d5f63dd509620a0bb06bd76828b590
[ "MS-PL" ]
3
2016-10-21T01:35:46.000Z
2020-11-07T01:20:05.000Z
apps/badge/migrations/0010_auto_20161112_2017.py
lestrato/badgepack
7432c0ead1d5f63dd509620a0bb06bd76828b590
[ "MS-PL" ]
31
2016-10-31T19:28:53.000Z
2017-01-19T16:55:49.000Z
apps/badge/migrations/0010_auto_20161112_2017.py
lestrato/badgepack
7432c0ead1d5f63dd509620a0bb06bd76828b590
[ "MS-PL" ]
1
2020-11-07T01:20:07.000Z
2020-11-07T01:20:07.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-11-13 01:17 from __future__ import unicode_literals from django.db import migrations, models import randomslugfield.fields class Migration(migrations.Migration): dependencies = [ ('badge', '0009_auto_20161112_1649'), ] operations = [ ...
26.740741
122
0.628809
534
0.739612
0
0
0
0
0
0
157
0.217452
d6f5c7c92dd0905f3aec94fff3ac8b43d06bc4f8
2,084
py
Python
pynars/utils/tools.py
AIxer/PyNARS
443b6a5e1c9779a1b861df1ca51ce5a190998d2e
[ "MIT" ]
null
null
null
pynars/utils/tools.py
AIxer/PyNARS
443b6a5e1c9779a1b861df1ca51ce5a190998d2e
[ "MIT" ]
null
null
null
pynars/utils/tools.py
AIxer/PyNARS
443b6a5e1c9779a1b861df1ca51ce5a190998d2e
[ "MIT" ]
null
null
null
import sys from typing import Callable, List try: sys.getsizeof(0) getsizeof = lambda x: sys.getsizeof(x) except: # import resource getsizeof = lambda _: 1#resource.getrusage(resource.RUSAGE_SELF).ru_maxrss def get_size(obj, seen=None): """Recursively finds size of objects""" size = getsizeof(...
33.079365
374
0.640595
0
0
0
0
0
0
0
0
551
0.264395
d6f7adc0b1077f898d2e6f6848ac5efb072221fd
7,331
py
Python
funwalk/hyphae.py
cameronmartino/funwalk
24d4bcf6790322f53c0e066492303b4fd2e0980e
[ "MIT" ]
null
null
null
funwalk/hyphae.py
cameronmartino/funwalk
24d4bcf6790322f53c0e066492303b4fd2e0980e
[ "MIT" ]
null
null
null
funwalk/hyphae.py
cameronmartino/funwalk
24d4bcf6790322f53c0e066492303b4fd2e0980e
[ "MIT" ]
1
2019-12-16T19:45:03.000Z
2019-12-16T19:45:03.000Z
from __future__ import division import numpy as np import pandas as pd import math from tqdm import tqdm from matplotlib.colors import rgb2hex def MonodExt(k1,k2,kt,l,Stmp,ks=200): # source: Lejeune et al 1995, Morphology of Trichoderma reesei QM 9414 in Submerged Cultures return (k1+k2*(l/(l+kt)))*(Stmp/(Stmp...
47.915033
116
0.506343
7,007
0.955413
0
0
0
0
0
0
1,978
0.269703
d6f9290567678db771e6a8c50fd70341df8c77a3
1,636
py
Python
Tree/(CODECHEF) Binary_Operations.py
XitizVerma/Data-Structures-and-Algorithms-Advanced
610225eeb7e0b4ade229ec86355901ad1ca38784
[ "MIT" ]
1
2020-08-27T06:59:52.000Z
2020-08-27T06:59:52.000Z
Tree/(CODECHEF) Binary_Operations.py
XitizVerma/Data-Structures-and-Algorithms-Advanced
610225eeb7e0b4ade229ec86355901ad1ca38784
[ "MIT" ]
null
null
null
Tree/(CODECHEF) Binary_Operations.py
XitizVerma/Data-Structures-and-Algorithms-Advanced
610225eeb7e0b4ade229ec86355901ad1ca38784
[ "MIT" ]
null
null
null
import sys sys.setrecursionlimit(10**6) class Node: def __init__(self, val, pos): self.left = None self.right = None self.pos = pos self.val = val def insert(node, val, pos): if node is None: print(pos) return Node(val, pos) if val < node.val: # move to left...
27.266667
81
0.56846
142
0.086797
0
0
0
0
0
0
168
0.102689
d6fa1a37daf66eeb44908ffa65e9185aef668bb0
814
py
Python
kubernetes/generate.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
13
2020-01-04T07:37:38.000Z
2021-08-31T05:19:58.000Z
kubernetes/generate.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
3
2020-06-05T22:42:53.000Z
2020-08-24T07:18:54.000Z
kubernetes/generate.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
9
2020-10-19T04:53:06.000Z
2021-08-31T05:20:01.000Z
from kubernetes import client, config import json # 生成YML def main(): pod = create_pod("dev") print(json.dumps(client.ApiClient().sanitize_for_serialization(pod))) def create_pod(environment): return client.V1Pod( api_version="v1", kind="Pod", metadata=client.V1ObjectMeta( ...
22
73
0.443489
0
0
0
0
0
0
0
0
73
0.089242
d6fb376cc1a2cdba245a1630f216a970be324900
1,680
py
Python
manim/animation/update.py
philschatz/manim
e3359a571d9a02a08979b3e037ddada3e874eb7c
[ "MIT" ]
5
2019-02-22T14:10:08.000Z
2022-03-13T01:03:49.000Z
manim/animation/update.py
philschatz/manim
e3359a571d9a02a08979b3e037ddada3e874eb7c
[ "MIT" ]
17
2021-04-10T13:47:17.000Z
2021-05-17T21:25:30.000Z
manim/animation/update.py
philschatz/manim
e3359a571d9a02a08979b3e037ddada3e874eb7c
[ "MIT" ]
1
2021-03-31T20:46:51.000Z
2021-03-31T20:46:51.000Z
"""Animations that update mobjects.""" __all__ = ["UpdateFromFunc", "UpdateFromAlphaFunc", "MaintainPositionRelativeTo"] import operator as op import typing from ..animation.animation import Animation if typing.TYPE_CHECKING: from ..mobject.mobject import Mobject class UpdateFromFunc(Animation): """ ...
28.965517
81
0.674405
1,398
0.832143
0
0
0
0
0
0
313
0.18631
d6fb8c0182b842a2a3c6c84fa4f6e7466f61a46b
5,583
py
Python
nets/mobilenet.py
DanielWong0623/Dog-Face-Recognition-PyTorch
70920a65617d9b6de59919d8920e4a1a133d58d3
[ "MIT" ]
null
null
null
nets/mobilenet.py
DanielWong0623/Dog-Face-Recognition-PyTorch
70920a65617d9b6de59919d8920e4a1a133d58d3
[ "MIT" ]
null
null
null
nets/mobilenet.py
DanielWong0623/Dog-Face-Recognition-PyTorch
70920a65617d9b6de59919d8920e4a1a133d58d3
[ "MIT" ]
null
null
null
import torch import torch.nn as nn def _make_divisible(ch, divisor=8, min_ch=None): if min_ch is None: min_ch = divisor new_ch = max(min_ch, int(ch + divisor / 2) // divisor * divisor) if new_ch < 0.9 * ch: new_ch += divisor return new_ch # ---------------------- # Mobi...
30.675824
105
0.51818
4,443
0.794102
0
0
0
0
0
0
674
0.120465
d6fc1bb2c513a94df13f8c3502baea0cf10d6404
538
py
Python
xbrr/edinet/reader/aspects/stock.py
5laps2go/xbrr
4c0824b53bfe971111d60e6c1ff4e36f4f4845a3
[ "MIT" ]
null
null
null
xbrr/edinet/reader/aspects/stock.py
5laps2go/xbrr
4c0824b53bfe971111d60e6c1ff4e36f4f4845a3
[ "MIT" ]
null
null
null
xbrr/edinet/reader/aspects/stock.py
5laps2go/xbrr
4c0824b53bfe971111d60e6c1ff4e36f4f4845a3
[ "MIT" ]
null
null
null
from xbrr.base.reader.base_parser import BaseParser from xbrr.edinet.reader.element_value import ElementValue class Stock(BaseParser): def __init__(self, reader): tags = { "dividend_paid": "jpcrp_cor:DividendPaidPerShareSummaryOfBusinessResults", # 一株配当 "dividends_surplus": "jppf...
38.428571
96
0.665428
455
0.801056
0
0
0
0
0
0
233
0.410211
d6fc289ed39bfadb67662fbe1b9dc0d8849d8f8c
2,031
py
Python
ClusterAuthors.py
wjs018/JitaChat
0b289f7f6e65c1a8b0627e7c3573307580042d1c
[ "MIT" ]
null
null
null
ClusterAuthors.py
wjs018/JitaChat
0b289f7f6e65c1a8b0627e7c3573307580042d1c
[ "MIT" ]
null
null
null
ClusterAuthors.py
wjs018/JitaChat
0b289f7f6e65c1a8b0627e7c3573307580042d1c
[ "MIT" ]
null
null
null
"""This program first reads in the sqlite database made by ParseAuthors.py. Then, after just a little data cleaning, it undergoes PCA decomposition. After being decomposed via PCA, the author data is then clustered by way of a K-means clustering algorithm. The number of clusters can be set by changing the value of n_cl...
31.734375
89
0.690793
0
0
0
0
0
0
0
0
1,090
0.536681
d6fcc73481c40c481a1a9aa8423bcb41c20526de
718
py
Python
Leetcode/304. Range Sum Query 2D - Immutable/solution1.py
asanoviskhak/Outtalent
c500e8ad498f76d57eb87a9776a04af7bdda913d
[ "MIT" ]
51
2020-07-12T21:27:47.000Z
2022-02-11T19:25:36.000Z
Leetcode/304. Range Sum Query 2D - Immutable/solution1.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
null
null
null
Leetcode/304. Range Sum Query 2D - Immutable/solution1.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
32
2020-07-27T13:54:24.000Z
2021-12-25T18:12:50.000Z
class NumMatrix: def __init__(self, matrix: List[List[int]]): if not matrix or not matrix[0]: return None m, n = len(matrix), len(matrix[0]) self.dp = [[0] * (n + 1) for _ in range(m + 1)] for r in range(m): for c in range(n): self.dp[r + 1][c + 1] = self...
42.235294
116
0.568245
578
0.805014
0
0
0
0
0
0
135
0.188022
d6fd117c0e7ff9f0666672a6e3ed6dee73755e6c
2,951
py
Python
backend/app/ColorConsole.py
GJCav/thywy
3c458bccdd23bab78b6a8bd65603c7845e643d70
[ "MIT" ]
8
2022-01-23T07:30:06.000Z
2022-02-15T03:39:25.000Z
backend/app/ColorConsole.py
Dr-Left/thuwy
3c458bccdd23bab78b6a8bd65603c7845e643d70
[ "MIT" ]
5
2022-01-21T03:31:22.000Z
2022-03-04T00:01:59.000Z
backend/app/ColorConsole.py
Dr-Left/thuwy
3c458bccdd23bab78b6a8bd65603c7845e643d70
[ "MIT" ]
2
2022-01-23T08:09:46.000Z
2022-02-24T05:55:02.000Z
""" 格式: \033[0m -> 默认字体显示 \033[显示方式;前景色;背景色m -> 格式 三个参数顺序不敏感,因为值各不相同 显示方式列表: 0 - 默认值 1 - 高亮 4 - 下划线 5 - 闪烁 7 - 反显 8 - 不可见 前景色: 30 - 黑色 31 - 红色 32 - 绿色 33 - 黄色 34 - 蓝色 35 - 梅色 36 - 青色 37 - 白色 背景色: 40 - 黑色 前景色+10即可 """ from co...
22.18797
83
0.689597
748
0.238901
0
0
0
0
0
0
579
0.184925
ba334945cd720fa1ed44ce5324c0dde69e532940
5,765
py
Python
src/pnmol/kernels.py
schmidtjonathan/pnmol-experiments
e07396079e2f2038011f3a377022482991090c5a
[ "MIT" ]
1
2022-02-24T18:25:43.000Z
2022-02-24T18:25:43.000Z
src/pnmol/kernels.py
schmidtjonathan/pnmol-experiments
e07396079e2f2038011f3a377022482991090c5a
[ "MIT" ]
null
null
null
src/pnmol/kernels.py
schmidtjonathan/pnmol-experiments
e07396079e2f2038011f3a377022482991090c5a
[ "MIT" ]
null
null
null
import abc from functools import cached_property, partial import jax import jax.numpy as jnp class Kernel(abc.ABC): """Covariance kernel interface.""" @abc.abstractmethod def __call__(self, X, Y): raise NotImplementedError class _PairwiseKernel(Kernel): @partial(jax.jit, static_argnums=(0,...
27.193396
88
0.640937
4,460
0.773634
0
0
3,587
0.622203
0
0
733
0.127147
ba3469f6edcb9686d5729fdce8d6db4a402b74d8
148
py
Python
pkgs/ops-pkg/src/genie/libs/ops/msdp/ios/msdp.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
94
2018-04-30T20:29:15.000Z
2022-03-29T13:40:31.000Z
pkgs/ops-pkg/src/genie/libs/ops/msdp/ios/msdp.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
67
2018-12-06T21:08:09.000Z
2022-03-29T18:00:46.000Z
pkgs/ops-pkg/src/genie/libs/ops/msdp/ios/msdp.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
49
2018-06-29T18:59:03.000Z
2022-03-10T02:07:59.000Z
# super class from genie.libs.ops.msdp.iosxe.msdp import Msdp as MsdpXE class Msdp(MsdpXE): ''' Msdp Ops Object ''' pass
18.5
58
0.601351
72
0.486486
0
0
0
0
0
0
51
0.344595
ba3553670d430c80e3adc22fd5128171a993576f
740
py
Python
tests/api/fixtures.py
eroberts9789/virtool-workflow
18219eec2b9b934cedd3770ac319f40305c165f2
[ "MIT" ]
5
2020-09-24T20:29:08.000Z
2022-03-17T14:50:56.000Z
tests/api/fixtures.py
eroberts9789/virtool-workflow
18219eec2b9b934cedd3770ac319f40305c165f2
[ "MIT" ]
126
2020-10-01T23:38:34.000Z
2022-03-31T08:26:28.000Z
tests/api/fixtures.py
eroberts9789/virtool-workflow
18219eec2b9b934cedd3770ac319f40305c165f2
[ "MIT" ]
5
2020-09-29T21:29:46.000Z
2021-07-27T20:34:58.000Z
import aiohttp import pytest from aiohttp import web from virtool_workflow.api.client import JobApiHttpSession from tests.api.mocks.mock_api import mock_routes @pytest.fixture def loop(event_loop): return event_loop @pytest.fixture async def jobs_api_url(): return "/api" @pytest.fixture async def mock_jo...
21.764706
76
0.768919
0
0
0
0
567
0.766216
460
0.621622
68
0.091892
ba389c274378dda4739cb2b43943f78e0f632ed1
1,359
py
Python
src/pbn_api/migrations/0021_auto_20210808_1204.py
iplweb/django-bpp
85f183a99d8d5027ae4772efac1e4a9f21675849
[ "BSD-3-Clause" ]
1
2017-04-27T19:50:02.000Z
2017-04-27T19:50:02.000Z
src/pbn_api/migrations/0021_auto_20210808_1204.py
mpasternak/django-bpp
434338821d5ad1aaee598f6327151aba0af66f5e
[ "BSD-3-Clause" ]
41
2019-11-07T00:07:02.000Z
2022-02-27T22:09:39.000Z
src/pbn_api/migrations/0021_auto_20210808_1204.py
iplweb/bpp
f027415cc3faf1ca79082bf7bacd4be35b1a6fdf
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.0.14 on 2021-08-08 10:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("pbn_api", "0020_przemapuj"), ] operations = [ migrations.AlterField( model_name="scientist", name="lastName", ...
29.543478
74
0.557763
1,266
0.930882
0
0
0
0
0
0
203
0.149265
ba38dbf48279ca33d67ba94668726fa34f3bcd92
11,047
py
Python
all_functions/configs/proxy_scraper/pygoogle-0.6/googletest.py
Heroku-elasa/-heroku-buildpack-python-ieee-new
06ec2fda04d9e478ed2506400e460489b0ca91ab
[ "MIT" ]
null
null
null
all_functions/configs/proxy_scraper/pygoogle-0.6/googletest.py
Heroku-elasa/-heroku-buildpack-python-ieee-new
06ec2fda04d9e478ed2506400e460489b0ca91ab
[ "MIT" ]
15
2021-03-18T20:25:13.000Z
2022-03-02T14:54:33.000Z
all_functions/configs/proxy_scraper/pygoogle-0.6/googletest.py
Heroku-elasa/heroku-buildpack-python-ieee-new
06ec2fda04d9e478ed2506400e460489b0ca91ab
[ "MIT" ]
1
2017-03-04T16:48:55.000Z
2017-03-04T16:48:55.000Z
"""Unit test for google.py""" __author__ = "Mark Pilgrim ([email protected])" __version__ = "$Revision: 1.4 $" __date__ = "$Date: 2004/02/06 21:00:53 $" __copyright__ = "Copyright (c) 2002 Mark Pilgrim" __license__ = "Python" import google import unittest import sys, os import GoogleSOAPFacade from StringIO impor...
37.962199
111
0.650674
10,656
0.964606
0
0
0
0
0
0
1,766
0.159862
ba38dbf6245155e0bd5d6fb74ada7b2d40f61c9a
1,591
py
Python
services/processdata/processdata/server.py
matheusmercadante/space-hub
6956d4fad5c92f2ce5903852bdd77e124d7941ef
[ "RSA-MD" ]
null
null
null
services/processdata/processdata/server.py
matheusmercadante/space-hub
6956d4fad5c92f2ce5903852bdd77e124d7941ef
[ "RSA-MD" ]
null
null
null
services/processdata/processdata/server.py
matheusmercadante/space-hub
6956d4fad5c92f2ce5903852bdd77e124d7941ef
[ "RSA-MD" ]
null
null
null
import sys import asyncio import tornado.ioloop from classes.rabbitmq_tornado import TornadoAdapter from tornado import gen from services.read_sheet import read_sheet RABBIT_URI = "amqp://guest:guest@localhost:5672/" @gen.coroutine def handle_message(logger, message): logger.info("File request {}".format(messag...
30.596154
109
0.615336
0
0
0
0
193
0.121307
0
0
256
0.160905
ba3a19f10a71c2771193a02d9bae8cb86fc3ea41
16,428
py
Python
second-floor.py
levabd/smart-climat-daemon
8ff273eeb74fb03ea04fda11b0128fa13d35b500
[ "MIT" ]
null
null
null
second-floor.py
levabd/smart-climat-daemon
8ff273eeb74fb03ea04fda11b0128fa13d35b500
[ "MIT" ]
1
2021-06-02T03:55:13.000Z
2021-06-02T03:55:13.000Z
second-floor.py
levabd/smart-climat-daemon
8ff273eeb74fb03ea04fda11b0128fa13d35b500
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import json import argparse import re import datetime import paramiko import requests # cmd ['ssh', 'smart', # 'mkdir -p /home/levabd/smart-home-temp-humidity-monitor; # cat - > /home/levabd/smart-home-temp-humidity-monitor/lr.json'] from btlewrap import available_backends, Blu...
40.562963
126
0.623204
0
0
0
0
0
0
0
0
7,251
0.441381
ba3ad00158e6db261842bb50d50fbeca583ec7db
2,880
py
Python
swot_simulator/error/orbital.py
CNES/swot_simulator
92d0bb4a274ec9923265567968beea3be4283e61
[ "BSD-3-Clause" ]
17
2020-05-28T08:20:11.000Z
2022-03-25T07:40:48.000Z
swot_simulator/error/orbital.py
CNES/swot_simulator
92d0bb4a274ec9923265567968beea3be4283e61
[ "BSD-3-Clause" ]
7
2021-07-21T02:15:52.000Z
2021-11-14T10:46:41.000Z
swot_simulator/error/orbital.py
CNES/swot_simulator
92d0bb4a274ec9923265567968beea3be4283e61
[ "BSD-3-Clause" ]
8
2020-05-17T13:53:43.000Z
2022-03-25T07:40:58.000Z
# Copyright (c) 2021 CNES/JPL # # All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. """ Orbital error ------------- """ from typing import Dict, Tuple # import dask.array as da import numpy as np # from .. import random_signal from .. import setti...
30.315789
77
0.587847
1,375
0.477431
0
0
0
0
0
0
918
0.31875