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
ab21105c56263980d75d2b1bb1e9d7beba919be5
884
py
Python
tqcli/config/config.py
Tranquant/tqcli
0cc12e0d80129a14cec8117cd73e2ca69fb25214
[ "Apache-2.0" ]
null
null
null
tqcli/config/config.py
Tranquant/tqcli
0cc12e0d80129a14cec8117cd73e2ca69fb25214
[ "Apache-2.0" ]
null
null
null
tqcli/config/config.py
Tranquant/tqcli
0cc12e0d80129a14cec8117cd73e2ca69fb25214
[ "Apache-2.0" ]
1
2016-08-16T03:43:36.000Z
2016-08-16T03:43:36.000Z
import logging from os.path import expanduser #TQ_API_ROOT_URL = 'http://127.0.1.1:8090/dataset' TQ_API_ROOT_URL = 'http://elb-tranquant-ecs-cluster-tqapi-1919110681.us-west-2.elb.amazonaws.com/dataset' LOG_PATH = expanduser('~/tqcli.log') # the chunk size must be at least 5MB for multipart upload DEFAULT_CHUNK_SIZE ...
30.482759
105
0.745475
0
0
0
0
0
0
0
0
478
0.540724
ab21d266138fcacadbe38aeb0f70a2986ce949b2
8,564
py
Python
fqf_iqn_qrdqn/agent/base_agent.py
rainwangphy/fqf-iqn-qrdqn.pytorch
351e9c4722c8b1ed411cd8c1bbf46c93c07f0893
[ "MIT" ]
null
null
null
fqf_iqn_qrdqn/agent/base_agent.py
rainwangphy/fqf-iqn-qrdqn.pytorch
351e9c4722c8b1ed411cd8c1bbf46c93c07f0893
[ "MIT" ]
null
null
null
fqf_iqn_qrdqn/agent/base_agent.py
rainwangphy/fqf-iqn-qrdqn.pytorch
351e9c4722c8b1ed411cd8c1bbf46c93c07f0893
[ "MIT" ]
1
2022-02-14T02:55:01.000Z
2022-02-14T02:55:01.000Z
from abc import ABC, abstractmethod import os import numpy as np import torch from torch.utils.tensorboard import SummaryWriter from fqf_iqn_qrdqn.memory import LazyMultiStepMemory, \ LazyPrioritizedMultiStepMemory from fqf_iqn_qrdqn.utils import RunningMeanStats, LinearAnneaer class BaseAgent(ABC): def __i...
34.119522
79
0.599603
8,277
0.966488
0
0
49
0.005722
0
0
955
0.111513
ab224c0b7dd96b0783239d1ab27b2b04825a3e94
4,122
py
Python
Python/libraries/recognizers-date-time/recognizers_date_time/date_time/italian/timeperiod_extractor_config.py
felaray/Recognizers-Text
f514fd61c8d472ed92565261162712409f655312
[ "MIT" ]
null
null
null
Python/libraries/recognizers-date-time/recognizers_date_time/date_time/italian/timeperiod_extractor_config.py
felaray/Recognizers-Text
f514fd61c8d472ed92565261162712409f655312
[ "MIT" ]
6
2021-12-20T17:13:35.000Z
2022-03-29T08:54:11.000Z
Python/libraries/recognizers-date-time/recognizers_date_time/date_time/italian/timeperiod_extractor_config.py
felaray/Recognizers-Text
f514fd61c8d472ed92565261162712409f655312
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from typing import List, Pattern from recognizers_text.utilities import RegExpUtility from recognizers_text.extractor import Extractor from recognizers_number.number.italian.extractors import ItalianIntegerExtractor from ....
37.816514
96
0.743328
3,326
0.80689
0
0
965
0.23411
0
0
94
0.022804
ab2324a100ecb32532716cd76301eba78659a0c1
3,012
py
Python
quartet_condor.py
BotanyHunter/QuartetAnalysis
c9b21aac267718be5ea8a8a76632fc0a3feb8403
[ "MIT" ]
null
null
null
quartet_condor.py
BotanyHunter/QuartetAnalysis
c9b21aac267718be5ea8a8a76632fc0a3feb8403
[ "MIT" ]
null
null
null
quartet_condor.py
BotanyHunter/QuartetAnalysis
c9b21aac267718be5ea8a8a76632fc0a3feb8403
[ "MIT" ]
null
null
null
#quartet_condor.py #version 2.0.2 import random, sys def addToDict(d): ''' Ensures each quartet has three concordance factors (CFs) a dictionary d has less than three CFs, add CFs with the value 0 until there are three Input: a dictionary containing CFs, a counter of how many CFs are in the dictionar...
33.466667
98
0.537849
2,499
0.829681
0
0
0
0
0
0
1,250
0.415007
ab24554d8fbfa3bde2693fe79ec073ac02c9f577
177
py
Python
src/profiles/forms.py
rahulroshan96/CloudVisual
aa33709d88442bcdbe3229234b4eb4f9abb4481e
[ "MIT", "Unlicense" ]
null
null
null
src/profiles/forms.py
rahulroshan96/CloudVisual
aa33709d88442bcdbe3229234b4eb4f9abb4481e
[ "MIT", "Unlicense" ]
4
2020-06-05T19:43:52.000Z
2021-06-01T23:15:44.000Z
src/profiles/forms.py
rahulroshan96/CloudVisual
aa33709d88442bcdbe3229234b4eb4f9abb4481e
[ "MIT", "Unlicense" ]
null
null
null
from django import forms from models import UserInputModel class UserInputForm(forms.ModelForm): class Meta: model = UserInputModel fields = ['user_input']
22.125
37
0.717514
116
0.655367
0
0
0
0
0
0
12
0.067797
ab253b2fa27d701106a981880d15472309de60c1
2,379
py
Python
tests_oval_graph/test_arf_xml_parser/test_arf_xml_parser.py
Honny1/oval-graph
96472a9d2b08c2afce620c54f229ce95ad019d1f
[ "Apache-2.0" ]
21
2019-08-01T09:09:25.000Z
2020-09-27T10:00:09.000Z
tests_oval_graph/test_arf_xml_parser/test_arf_xml_parser.py
Honny1/oval-graph
96472a9d2b08c2afce620c54f229ce95ad019d1f
[ "Apache-2.0" ]
129
2019-08-04T19:06:24.000Z
2020-10-03T10:02:26.000Z
tests_oval_graph/test_arf_xml_parser/test_arf_xml_parser.py
Honny1/oval-graph
96472a9d2b08c2afce620c54f229ce95ad019d1f
[ "Apache-2.0" ]
11
2019-08-07T08:53:54.000Z
2020-10-02T22:02:38.000Z
from pathlib import Path import pytest from oval_graph.arf_xml_parser.arf_xml_parser import ARFXMLParser def get_arf_report_path(src="global_test_data/ssg-fedora-ds-arf.xml"): return str(Path(__file__).parent.parent / src) @pytest.mark.parametrize("rule_id, result", [ ( "xccdf_org.ssgproject.conte...
30.896104
93
0.721732
0
0
0
0
1,584
0.665826
0
0
1,048
0.440521
ab2601bcecd2c5b5f36345a106f14a3b9c2ff88d
5,668
py
Python
main.py
scottjr632/trump-twitter-bot
484b1324d752395338b0a9e5850acf294089b26f
[ "MIT" ]
null
null
null
main.py
scottjr632/trump-twitter-bot
484b1324d752395338b0a9e5850acf294089b26f
[ "MIT" ]
null
null
null
main.py
scottjr632/trump-twitter-bot
484b1324d752395338b0a9e5850acf294089b26f
[ "MIT" ]
null
null
null
import os import logging import argparse import sys import signal import subprocess from functools import wraps from dotenv import load_dotenv load_dotenv(verbose=True) from app.config import configure_app from app.bot import TrumpBotScheduler from app.sentimentbot import SentimentBot parser = argparse.ArgumentParse...
27.64878
106
0.657728
448
0.07904
0
0
1,999
0.352682
0
0
1,004
0.177135
ab27a7af29a41d40eec1afd58d05fca20bfc3c8b
691
py
Python
010-summation-of-primes.py
dendi239/euler
71fcdca4a80f9e586aab05eb8acadf1a296dda90
[ "MIT" ]
null
null
null
010-summation-of-primes.py
dendi239/euler
71fcdca4a80f9e586aab05eb8acadf1a296dda90
[ "MIT" ]
null
null
null
010-summation-of-primes.py
dendi239/euler
71fcdca4a80f9e586aab05eb8acadf1a296dda90
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import itertools import typing as tp def primes() -> tp.Generator[int, None, None]: primes_ = [] d = 2 while True: is_prime = True for p in primes_: if p * p > d: break if d % p == 0: is_prime = False ...
16.452381
62
0.51809
0
0
359
0.519537
0
0
0
0
33
0.047757
ab27ed4a158779f6beba16216ad31870fa98bf95
11,368
py
Python
setup.py
letmaik/lensfunpy
ddadb6bfd5f3acde5640210aa9f575501e5c0914
[ "MIT" ]
94
2016-08-24T21:52:40.000Z
2022-03-05T07:17:21.000Z
setup.py
letmaik/lensfunpy
ddadb6bfd5f3acde5640210aa9f575501e5c0914
[ "MIT" ]
22
2016-10-21T07:15:21.000Z
2021-09-20T13:41:02.000Z
setup.py
letmaik/lensfunpy
ddadb6bfd5f3acde5640210aa9f575501e5c0914
[ "MIT" ]
11
2016-12-12T03:14:07.000Z
2021-05-06T17:47:30.000Z
from setuptools import setup, Extension, find_packages import subprocess import errno import re import os import shutil import sys import zipfile from urllib.request import urlretrieve import numpy from Cython.Build import cythonize isWindows = os.name == 'nt' isMac = sys.platform == 'darwin' is64Bit = sys.maxsize...
37.518152
125
0.616555
0
0
0
0
0
0
0
0
4,314
0.379486
ab2a38bd32faf647f78849a772f13ad447eb6e18
2,144
py
Python
chapter_13/mailtools/__init__.py
bimri/programming_python
ba52ccd18b9b4e6c5387bf4032f381ae816b5e77
[ "MIT" ]
null
null
null
chapter_13/mailtools/__init__.py
bimri/programming_python
ba52ccd18b9b4e6c5387bf4032f381ae816b5e77
[ "MIT" ]
null
null
null
chapter_13/mailtools/__init__.py
bimri/programming_python
ba52ccd18b9b4e6c5387bf4032f381ae816b5e77
[ "MIT" ]
null
null
null
"The mailtools Utility Package" 'Initialization File' """ ################################################################################## mailtools package: interface to mail server transfers, used by pymail2, PyMailGUI, and PyMailCGI; does loads, sends, parsing, composing, and deleting, with part attachments, e...
51.047619
83
0.718284
0
0
0
0
0
0
0
0
2,019
0.941698
ab2add18b201d727e235b13fba3fa52b34c35680
404
py
Python
TreeModelLib/BelowgroundCompetition/__init__.py
jvollhueter/pyMANGA-1
414204a394d44405225b4b8224b19464c1006f1d
[ "MIT" ]
null
null
null
TreeModelLib/BelowgroundCompetition/__init__.py
jvollhueter/pyMANGA-1
414204a394d44405225b4b8224b19464c1006f1d
[ "MIT" ]
null
null
null
TreeModelLib/BelowgroundCompetition/__init__.py
jvollhueter/pyMANGA-1
414204a394d44405225b4b8224b19464c1006f1d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Nov 8 15:25:03 2018 @author: bathmann """ from .BelowgroundCompetition import BelowgroundCompetition from .SimpleTest import SimpleTest from .FON import FON from .OGSWithoutFeedback import OGSWithoutFeedback from .OGSLargeScale3D import OGSLargeScale3...
25.25
58
0.799505
0
0
0
0
0
0
0
0
107
0.264851
ab2b3845336cbc9c2cd653a367ec0d03b0cfffa6
223
py
Python
server.py
SDelhey/websocket-chat
c7b83583007a723baee25acedbceddd55c12ffec
[ "MIT" ]
null
null
null
server.py
SDelhey/websocket-chat
c7b83583007a723baee25acedbceddd55c12ffec
[ "MIT" ]
null
null
null
server.py
SDelhey/websocket-chat
c7b83583007a723baee25acedbceddd55c12ffec
[ "MIT" ]
null
null
null
from flask import Flask, render_template from flask_socketio import SocketIO, send, emit app = Flask(__name__) app.config['SECRET_KEY'] = 'secret!' socketio = SocketIO(app) if __name__ == '__main__': socketio.run(app)
24.777778
47
0.748879
0
0
0
0
0
0
0
0
31
0.139013
ab2c89bde44269f1533806cfa45910e25d77ed66
2,771
py
Python
services/postprocess/src/postprocess.py
hadarohana/myCosmos
6e4682a2af822eb828180658aaa6d3e304cc85bf
[ "Apache-2.0" ]
null
null
null
services/postprocess/src/postprocess.py
hadarohana/myCosmos
6e4682a2af822eb828180658aaa6d3e304cc85bf
[ "Apache-2.0" ]
5
2020-01-28T23:13:10.000Z
2022-02-10T00:28:15.000Z
services/postprocess/src/postprocess.py
hadarohana/myCosmos
6e4682a2af822eb828180658aaa6d3e304cc85bf
[ "Apache-2.0" ]
1
2021-03-10T19:25:44.000Z
2021-03-10T19:25:44.000Z
""" Post processing on detected objects """ import pymongo from pymongo import MongoClient import time import logging logging.basicConfig(format='%(levelname)s :: %(asctime)s :: %(message)s', level=logging.DEBUG) from joblib import Parallel, delayed import click from xgboost_model.inference import run_inference, Postpr...
37.445946
111
0.616745
0
0
339
0.122339
236
0.085168
0
0
651
0.234933
ab2d00e90fa00656e5b245ed372443c5a0686b39
2,619
py
Python
model-optimizer/mo/front/common/partial_infer/multi_box_prior_test.py
calvinfeng/openvino
11f591c16852637506b1b40d083b450e56d0c8ac
[ "Apache-2.0" ]
null
null
null
model-optimizer/mo/front/common/partial_infer/multi_box_prior_test.py
calvinfeng/openvino
11f591c16852637506b1b40d083b450e56d0c8ac
[ "Apache-2.0" ]
19
2021-03-26T08:11:00.000Z
2022-02-21T13:06:26.000Z
model-optimizer/mo/front/common/partial_infer/multi_box_prior_test.py
calvinfeng/openvino
11f591c16852637506b1b40d083b450e56d0c8ac
[ "Apache-2.0" ]
1
2021-07-28T17:30:46.000Z
2021-07-28T17:30:46.000Z
""" Copyright (C) 2018-2021 Intel Corporation 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 i...
44.389831
112
0.583047
1,524
0.581901
0
0
0
0
0
0
929
0.354716
ab2d830b247e5d1c87b1cc476939c72b7371cdbc
10,997
py
Python
bin/mem_monitor.py
Samahu/ros-system-monitor
5376eba046ac38cfe8fe9ff8b385fa2637015eda
[ "BSD-3-Clause" ]
68
2016-02-07T00:35:25.000Z
2022-03-22T11:14:16.000Z
bin/mem_monitor.py
Samahu/ros-system-monitor
5376eba046ac38cfe8fe9ff8b385fa2637015eda
[ "BSD-3-Clause" ]
5
2016-04-12T14:29:51.000Z
2021-08-04T12:55:59.000Z
bin/mem_monitor.py
Samahu/ros-system-monitor
5376eba046ac38cfe8fe9ff8b385fa2637015eda
[ "BSD-3-Clause" ]
62
2015-08-09T23:17:16.000Z
2022-02-11T18:24:30.000Z
#!/usr/bin/env python ############################################################################ # Copyright (C) 2009, Willow Garage, Inc. # # Copyright (C) 2013 by Ralf Kaestner # # ralf.kaestner@gmail.com ...
41.973282
102
0.555606
5,489
0.499136
0
0
0
0
0
0
3,875
0.352369
ab2dd4e23245d0ab9d1e255dfa3fc732936ba5f1
4,557
py
Python
cmake/utils/gen-ninja-deps.py
stamhe/bitcoin-abc
a1ba303c6b4f164ae94612e83b824e564405a96e
[ "MIT" ]
1,266
2017-05-02T07:02:29.000Z
2022-03-31T17:15:44.000Z
cmake/utils/gen-ninja-deps.py
EGYVOICE/bitcoin-abc-avalanche
e0f1fe857e1fc85f01903f1c323c2d5c54aecc1c
[ "MIT" ]
426
2017-05-07T12:40:52.000Z
2022-03-29T18:12:01.000Z
cmake/utils/gen-ninja-deps.py
EGYVOICE/bitcoin-abc-avalanche
e0f1fe857e1fc85f01903f1c323c2d5c54aecc1c
[ "MIT" ]
721
2017-05-07T10:36:11.000Z
2022-03-15T09:07:48.000Z
#!/usr/bin/env python3 import argparse import os import subprocess parser = argparse.ArgumentParser(description='Produce a dep file from ninja.') parser.add_argument( '--build-dir', help='The build directory.', required=True) parser.add_argument( '--base-dir', help='The directory for which depende...
25.038462
79
0.577354
0
0
0
0
0
0
0
0
1,119
0.245556
ab30352abcf50690534a3f85202149cd132e631c
46
py
Python
src/webpy1/src/manage/checkPic.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
1
2020-02-17T08:18:29.000Z
2020-02-17T08:18:29.000Z
src/webpy1/src/manage/checkPic.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
null
null
null
src/webpy1/src/manage/checkPic.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
null
null
null
''' Created on 2011-6-22 @author: dholer '''
7.666667
20
0.608696
0
0
0
0
0
0
0
0
45
0.978261
ab30973f8a964fee614a5ec7df1f83c6a91d145f
122
py
Python
tests/__init__.py
coleb/sendoff
fc1b38ba7571254a88ca457f6f618ae4572f30b6
[ "MIT" ]
2
2021-09-28T09:53:53.000Z
2021-10-01T17:45:29.000Z
tests/__init__.py
coleb/sendoff
fc1b38ba7571254a88ca457f6f618ae4572f30b6
[ "MIT" ]
10
2021-09-17T22:14:37.000Z
2022-03-21T16:25:39.000Z
tests/__init__.py
coleb/sendoff
fc1b38ba7571254a88ca457f6f618ae4572f30b6
[ "MIT" ]
1
2021-09-27T15:55:40.000Z
2021-09-27T15:55:40.000Z
"""Tests for the `sendoff` library.""" """ The `sendoff` library tests validate the expected function of the library. """
24.4
74
0.704918
0
0
0
0
0
0
0
0
120
0.983607
ab30b98300e549b0e8401f690d6ee36c03180fdb
2,493
py
Python
sysinv/sysinv/sysinv/sysinv/helm/garbd.py
Wind-River/starlingx-config
96b92e5179d54dde10cb84c943eb239adf26b958
[ "Apache-2.0" ]
null
null
null
sysinv/sysinv/sysinv/sysinv/helm/garbd.py
Wind-River/starlingx-config
96b92e5179d54dde10cb84c943eb239adf26b958
[ "Apache-2.0" ]
null
null
null
sysinv/sysinv/sysinv/sysinv/helm/garbd.py
Wind-River/starlingx-config
96b92e5179d54dde10cb84c943eb239adf26b958
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2018-2019 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # from sysinv.common import constants from sysinv.common import exception from sysinv.common import utils from sysinv.helm import common from sysinv.helm import base class GarbdHelm(base.BaseHelm): """Class to encapsulat...
37.208955
80
0.649017
2,230
0.894505
0
0
0
0
0
0
661
0.265142
ab313db7c6b7e6135aaa8212f15c08dfe29e2372
1,280
py
Python
dataloader/frame_counter/frame_counter.py
aaron-zou/pretraining-twostream
5aa2f4bafb731e61f8f671e2500a6dfa8436be57
[ "MIT" ]
null
null
null
dataloader/frame_counter/frame_counter.py
aaron-zou/pretraining-twostream
5aa2f4bafb731e61f8f671e2500a6dfa8436be57
[ "MIT" ]
null
null
null
dataloader/frame_counter/frame_counter.py
aaron-zou/pretraining-twostream
5aa2f4bafb731e61f8f671e2500a6dfa8436be57
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Generate frame counts dict for a dataset. Usage: frame_counter.py [options] Options: -h, --help Print help message --root=<str> Path to root of dataset (should contain video folders that contain images) [default: /vision/vision_users/azou/data/hmdb5...
27.826087
102
0.625
0
0
0
0
0
0
0
0
638
0.498438
ab32101612714ab2b6b04c378a7a5646daa96906
155
py
Python
Problem_30/main.py
jdalzatec/EulerProject
2f2f4d9c009be7fd63bb229bb437ea75db77d891
[ "MIT" ]
1
2022-03-28T05:32:58.000Z
2022-03-28T05:32:58.000Z
Problem_30/main.py
jdalzatec/EulerProject
2f2f4d9c009be7fd63bb229bb437ea75db77d891
[ "MIT" ]
null
null
null
Problem_30/main.py
jdalzatec/EulerProject
2f2f4d9c009be7fd63bb229bb437ea75db77d891
[ "MIT" ]
null
null
null
total = 0 for n in range(1000, 1000000): suma = 0 for i in str(n): suma += int(i)**5 if (n == suma): total += n print(total)
14.090909
30
0.483871
0
0
0
0
0
0
0
0
0
0
ab33de96dbc34b33ac4aed99648c2c63749addef
8,913
py
Python
armi/physics/fuelCycle/settings.py
celikten/armi
4e100dd514a59caa9c502bd5a0967fd77fdaf00e
[ "Apache-2.0" ]
1
2021-05-29T16:02:31.000Z
2021-05-29T16:02:31.000Z
armi/physics/fuelCycle/settings.py
celikten/armi
4e100dd514a59caa9c502bd5a0967fd77fdaf00e
[ "Apache-2.0" ]
null
null
null
armi/physics/fuelCycle/settings.py
celikten/armi
4e100dd514a59caa9c502bd5a0967fd77fdaf00e
[ "Apache-2.0" ]
null
null
null
"""Settings for generic fuel cycle code.""" import re import os from armi.settings import setting from armi.operators import settingsValidation CONF_ASSEMBLY_ROTATION_ALG = "assemblyRotationAlgorithm" CONF_ASSEM_ROTATION_STATIONARY = "assemblyRotationStationary" CONF_CIRCULAR_RING_MODE = "circularRingMode" CONF_CIRCU...
39.092105
106
0.574554
0
0
0
0
0
0
0
0
3,965
0.444856
ab36c71fdbd365804953a57202728144c1db7c55
628
py
Python
nl/predictor.py
jclosure/donkus
b3384447094b2ecbaff5ee9d970818313b6ee8b0
[ "MIT" ]
1
2015-01-16T01:04:39.000Z
2015-01-16T01:04:39.000Z
nl/predictor.py
jclosure/donkus
b3384447094b2ecbaff5ee9d970818313b6ee8b0
[ "MIT" ]
null
null
null
nl/predictor.py
jclosure/donkus
b3384447094b2ecbaff5ee9d970818313b6ee8b0
[ "MIT" ]
null
null
null
from nltk.corpus import gutenberg from nltk import ConditionalFreqDist from random import choice #create the distribution object cfd = ConditionalFreqDist() ## for each token count the current word given the previous word prev_word = None for word in gutenberg.words('austen-persuasion.txt'): cfd[prev_word][word]...
22.428571
73
0.716561
0
0
0
0
0
0
0
0
252
0.401274
ab36d85f43aaa15a75066ac03e9bf9c7135fde35
893
py
Python
eve/workers/pykmip/bin/run_server.py
mmg-3/cloudserver
9ff6364b2ed4f33a5135d86311a72de4caff51c1
[ "Apache-2.0" ]
762
2016-06-08T19:51:51.000Z
2018-08-02T09:05:38.000Z
eve/workers/pykmip/bin/run_server.py
mmg-3/cloudserver
9ff6364b2ed4f33a5135d86311a72de4caff51c1
[ "Apache-2.0" ]
1,252
2018-08-03T18:27:31.000Z
2022-03-31T20:22:55.000Z
eve/workers/pykmip/bin/run_server.py
mmg-3/cloudserver
9ff6364b2ed4f33a5135d86311a72de4caff51c1
[ "Apache-2.0" ]
170
2016-06-14T17:09:39.000Z
2018-06-30T12:48:19.000Z
#!/usr/bin/env python # Copyright (c) 2016 The Johns Hopkins University/Applied Physics Laboratory # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.ap...
33.074074
76
0.75252
0
0
0
0
0
0
0
0
726
0.81299
ab37e16ef4016e52fa0dab454a286037abc7c623
889
py
Python
tests/test_tempo_event.py
yokaze/crest-python
c246b16ade6fd706f0e18aae797660064bddd555
[ "MIT" ]
null
null
null
tests/test_tempo_event.py
yokaze/crest-python
c246b16ade6fd706f0e18aae797660064bddd555
[ "MIT" ]
null
null
null
tests/test_tempo_event.py
yokaze/crest-python
c246b16ade6fd706f0e18aae797660064bddd555
[ "MIT" ]
null
null
null
# # test_tempo_event.py # crest-python # # Copyright (C) 2017 Rue Yokaze # Distributed under the MIT License. # import crest_loader import unittest from crest.events.meta import TempoEvent class TestTempoEvent(unittest.TestCase): def test_ctor(self): TempoEvent() TempoEvent(120) def t...
24.694444
75
0.662542
638
0.71766
0
0
0
0
0
0
123
0.138358
ab386b22c54d5affe44957aab20ea4dc3913a866
1,159
py
Python
tensorflow_quantum/python/differentiators/__init__.py
PyJedi/quantum
3f4a3c320e048b8a8faf3a10339975d2d5366fb6
[ "Apache-2.0" ]
1,501
2020-03-09T00:40:31.000Z
2022-03-28T19:59:57.000Z
tensorflow_quantum/python/differentiators/__init__.py
tappinganalytics/quantum
ef3a34341d997d485a7e43335a8ed61a8e7c6ea6
[ "Apache-2.0" ]
381
2020-03-09T18:31:04.000Z
2022-03-28T18:47:32.000Z
tensorflow_quantum/python/differentiators/__init__.py
tappinganalytics/quantum
ef3a34341d997d485a7e43335a8ed61a8e7c6ea6
[ "Apache-2.0" ]
410
2020-03-09T03:05:48.000Z
2022-03-31T12:08:14.000Z
# Copyright 2020 The TensorFlow Quantum Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
37.387097
80
0.729077
0
0
0
0
0
0
0
0
731
0.630716
ab38ae2d8c17a7a5df07314f47034bda8a636085
3,845
py
Python
tests/test_color_background.py
erykoff/redmapper
23fb66c7369de784c67ce6c41ada2f1f51a84acb
[ "Apache-2.0" ]
17
2016-03-06T07:51:02.000Z
2022-02-03T15:17:26.000Z
tests/test_color_background.py
erykoff/redmapper
23fb66c7369de784c67ce6c41ada2f1f51a84acb
[ "Apache-2.0" ]
42
2016-07-27T20:48:20.000Z
2022-01-31T20:47:51.000Z
tests/test_color_background.py
erykoff/redmapper
23fb66c7369de784c67ce6c41ada2f1f51a84acb
[ "Apache-2.0" ]
8
2017-01-26T01:38:41.000Z
2020-11-14T07:41:53.000Z
import unittest import numpy.testing as testing import numpy as np import fitsio import tempfile import os from redmapper import ColorBackground from redmapper import ColorBackgroundGenerator from redmapper import Configuration class ColorBackgroundTestCase(unittest.TestCase): """ Tests for the redmapper.Colo...
34.954545
98
0.635371
3,568
0.927958
0
0
0
0
0
0
1,265
0.328999
ab392fd8e80c256d42ff5f34b47b1e8775e1c4cb
33,538
py
Python
src/metpy/calc/basic.py
Exi666/MetPy
c3cf8b9855e0ce7c14347e9d000fc3d531a18e1c
[ "BSD-3-Clause" ]
null
null
null
src/metpy/calc/basic.py
Exi666/MetPy
c3cf8b9855e0ce7c14347e9d000fc3d531a18e1c
[ "BSD-3-Clause" ]
null
null
null
src/metpy/calc/basic.py
Exi666/MetPy
c3cf8b9855e0ce7c14347e9d000fc3d531a18e1c
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2008,2015,2016,2017,2018,2019 MetPy Developers. # Distributed under the terms of the BSD 3-Clause License. # SPDX-License-Identifier: BSD-3-Clause """Contains a collection of basic calculations. These include: * wind components * heat index * windchill """ import warnings import numpy as np from scip...
33.945344
94
0.653706
0
0
0
0
32,132
0.958077
0
0
24,225
0.722315
ab3a2dd3958eeed0683e138275086ab9243b7a2e
1,525
py
Python
burl/core/api/views.py
wryfi/burl
664878ce9a31695456be89c8e10e8bb612074ef6
[ "MIT" ]
1
2021-02-07T21:48:59.000Z
2021-02-07T21:48:59.000Z
burl/core/api/views.py
wryfi/burl
664878ce9a31695456be89c8e10e8bb612074ef6
[ "MIT" ]
16
2020-03-24T16:53:30.000Z
2022-03-15T17:46:59.000Z
burl/core/api/views.py
wryfi/burl
664878ce9a31695456be89c8e10e8bb612074ef6
[ "MIT" ]
null
null
null
from rest_framework.response import Response from rest_framework.decorators import api_view from rest_framework.reverse import reverse from rest_framework_simplejwt.tokens import RefreshToken @api_view(['GET']) def root(request, fmt=None): return Response({ 'v1': reverse('api_v1:root', request=request, fo...
29.901961
92
0.688525
0
0
0
0
1,318
0.864262
0
0
278
0.182295
ab3b3b45e085df872dae2584e5093ac10afc0c16
1,296
py
Python
ITmeetups_back/api/serializers.py
RomulusGwelt/AngularProject
acc7083f30b1edf002da8d156be023d2432a05e4
[ "MIT" ]
3
2019-02-28T15:20:24.000Z
2019-03-02T18:33:23.000Z
ITmeetups_back/api/serializers.py
RomulusGwelt/AngularProject
acc7083f30b1edf002da8d156be023d2432a05e4
[ "MIT" ]
7
2020-07-17T01:18:53.000Z
2022-02-17T22:49:16.000Z
ITmeetups_back/api/serializers.py
RomulusGwelt/AngularProject
acc7083f30b1edf002da8d156be023d2432a05e4
[ "MIT" ]
1
2019-03-03T02:45:55.000Z
2019-03-03T02:45:55.000Z
from rest_framework import serializers from .models import Post, Comment, Like from django.contrib.auth.models import User class CurrentUserSerializer(serializers.ModelSerializer): class Meta: model = User fields = ('id', 'username', 'email') class PostSerializer(serializers.ModelSerializer): ...
24
62
0.655864
1,152
0.888889
0
0
0
0
0
0
187
0.14429
ab3e250f158b4ed0173fe7715ee2559fe186d522
1,879
py
Python
qurator/sbb_ned/embeddings/bert.py
qurator-spk/sbb_ned
d4cfe249f72e48913f254a58fbe0dbe6e47bd168
[ "Apache-2.0" ]
6
2020-09-05T16:08:59.000Z
2022-03-05T00:54:47.000Z
qurator/sbb_ned/embeddings/bert.py
qurator-spk/sbb_ned
d4cfe249f72e48913f254a58fbe0dbe6e47bd168
[ "Apache-2.0" ]
6
2020-09-23T17:58:37.000Z
2022-03-10T14:02:09.000Z
qurator/sbb_ned/embeddings/bert.py
qurator-spk/sbb_ned
d4cfe249f72e48913f254a58fbe0dbe6e47bd168
[ "Apache-2.0" ]
2
2021-03-22T00:12:51.000Z
2022-01-31T10:04:08.000Z
from ..embeddings.base import Embeddings from flair.data import Sentence class BertEmbeddings(Embeddings): def __init__(self, model_path, layers="-1, -2, -3, -4", pooling_operation='first', use_scalar_mix=True, no_cuda=False, *args, **kwargs): super(BertEmbeddings, self).__init__(*args...
29.359375
122
0.585418
1,802
0.959021
962
0.511974
0
0
0
0
129
0.068654
ab3e8587e5794a9e3b079ba7743bbea191efe88d
66,791
py
Python
Arbitrage_Future/Arbitrage_Future/test.py
ronaldzgithub/CryptoArbitrage
b4b7a12b7b11f3dcf950f9d2039dad4f1388530b
[ "MIT" ]
1
2021-11-03T06:16:16.000Z
2021-11-03T06:16:16.000Z
Arbitrage_Future/Arbitrage_Future/test.py
benno0810/CryptoArbitrage
b4b7a12b7b11f3dcf950f9d2039dad4f1388530b
[ "MIT" ]
null
null
null
Arbitrage_Future/Arbitrage_Future/test.py
benno0810/CryptoArbitrage
b4b7a12b7b11f3dcf950f9d2039dad4f1388530b
[ "MIT" ]
2
2021-05-07T09:11:54.000Z
2021-11-27T16:29:10.000Z
# !/usr/local/bin/python # -*- coding:utf-8 -*- import YunBi import CNBTC import json import threading import Queue import time import logging import numpy import message import random open_platform = [True,True,True,True] numpy.set_printoptions(suppress=True) # logging.basicConfig(level=logging.DEBUG, # ...
45.74726
245
0.561558
0
0
0
0
0
0
0
0
25,134
0.375768
ab3ea1f161bcea5311f9766c4b23a51c645e6437
1,174
py
Python
startuptweet.py
cudmore/startupnotify
76b61b295ae7049e597fa05457a6696e624c4955
[ "MIT" ]
null
null
null
startuptweet.py
cudmore/startupnotify
76b61b295ae7049e597fa05457a6696e624c4955
[ "MIT" ]
null
null
null
startuptweet.py
cudmore/startupnotify
76b61b295ae7049e597fa05457a6696e624c4955
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ Author: Robert Cudmore Date: 20181013 Purpose: Send a Tweet with IP and MAC address of a Raspberry Pi Install: pip3 install tweepy Usage: python3 startuptweet.py 'this is my tweet' """ import tweepy import sys import socket import subprocess from uuid import getnode as get_mac from datetime i...
22.576923
88
0.736797
0
0
0
0
0
0
0
0
374
0.318569
ab3f43a17d20a3de43fa762a19edf3462b4252f3
1,307
py
Python
distributed/db.py
VW-Stephen/pySpiderScrape
861d7289743d5b65916310448526a58b381fde8d
[ "WTFPL" ]
null
null
null
distributed/db.py
VW-Stephen/pySpiderScrape
861d7289743d5b65916310448526a58b381fde8d
[ "WTFPL" ]
null
null
null
distributed/db.py
VW-Stephen/pySpiderScrape
861d7289743d5b65916310448526a58b381fde8d
[ "WTFPL" ]
null
null
null
#!/usr/bin/python from bs4 import BeautifulSoup import sqlite3 class DB: """ Abstraction for the profile database """ def __init__(self, filename): """ Creates a new connection to the database filename - The name of the database file to use """ self.Filename = ...
35.324324
397
0.582249
1,241
0.949503
0
0
0
0
0
0
712
0.544759
ab4054d837b64d6cdc4bc55d34e29e751e8dc8d5
4,427
py
Python
private/scripts/recheck-invalid-handles.py
bansal-shubham/stopstalk-deployment
6392eace490311be103292fdaff9ae215e4db7e6
[ "MIT" ]
null
null
null
private/scripts/recheck-invalid-handles.py
bansal-shubham/stopstalk-deployment
6392eace490311be103292fdaff9ae215e4db7e6
[ "MIT" ]
null
null
null
private/scripts/recheck-invalid-handles.py
bansal-shubham/stopstalk-deployment
6392eace490311be103292fdaff9ae215e4db7e6
[ "MIT" ]
null
null
null
""" Copyright (c) 2015-2019 Raj Patel(raj454raj@gmail.com), StopStalk Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights ...
41.373832
106
0.639259
0
0
0
0
0
0
0
0
1,779
0.401852
ab41670d17acae57b54990c3a25815a2ee40eb19
9,225
py
Python
onnxmltools/convert/keras/_parse.py
gpminsuk/onnxmltools
4e88929a79a1018183f58e2d5e032dd639839dd2
[ "MIT" ]
1
2018-04-10T02:30:47.000Z
2018-04-10T02:30:47.000Z
onnxmltools/convert/keras/_parse.py
gpminsuk/onnxmltools
4e88929a79a1018183f58e2d5e032dd639839dd2
[ "MIT" ]
null
null
null
onnxmltools/convert/keras/_parse.py
gpminsuk/onnxmltools
4e88929a79a1018183f58e2d5e032dd639839dd2
[ "MIT" ]
1
2018-06-27T18:16:20.000Z
2018-06-27T18:16:20.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import te...
51.825843
125
0.714363
0
0
0
0
0
0
0
0
2,820
0.305691
ab41d11daca6d1b31e59637bf18b9f99a383f86f
24,575
py
Python
src/scenic/core/regions.py
cahartsell/Scenic
2e7979011aef426108687947668d9ba6f5439136
[ "BSD-3-Clause" ]
null
null
null
src/scenic/core/regions.py
cahartsell/Scenic
2e7979011aef426108687947668d9ba6f5439136
[ "BSD-3-Clause" ]
null
null
null
src/scenic/core/regions.py
cahartsell/Scenic
2e7979011aef426108687947668d9ba6f5439136
[ "BSD-3-Clause" ]
null
null
null
"""Objects representing regions in space.""" import math import random import itertools import numpy import scipy.spatial import shapely.geometry import shapely.ops from scenic.core.distributions import Samplable, RejectionException, needsSampling from scenic.core.lazy_eval import valueInContext from scenic.core.vec...
33.896552
96
0.722238
22,991
0.935544
0
0
1,279
0.052045
0
0
4,560
0.185554
ab42204ebfa5ee7790165df748eb621656c602f4
6,525
py
Python
orangery/cli/cutfill.py
mrahnis/orangery
69afe0057bd61163eb8e026e58d648dfa1e73b94
[ "BSD-3-Clause" ]
2
2015-11-30T02:46:28.000Z
2021-06-26T15:01:45.000Z
orangery/cli/cutfill.py
mrahnis/orangery
69afe0057bd61163eb8e026e58d648dfa1e73b94
[ "BSD-3-Clause" ]
18
2017-06-18T03:23:05.000Z
2022-03-18T00:14:05.000Z
orangery/cli/cutfill.py
mrahnis/orangery
69afe0057bd61163eb8e026e58d648dfa1e73b94
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import logging import time import json import click import matplotlib.pyplot as plt import orangery as o from orangery.cli import defaults, util from orangery.tools.plotting import get_scale_factor @click.command(options_metavar='<options>') @click.argument(...
45
225
0.66728
0
0
0
0
6,264
0.96
0
0
2,779
0.4259
ab42719d063612a8629ae16074131965d4bb9222
1,397
py
Python
src/ice_g2p/dictionaries.py
cadia-lvl/ice-g2p
5a6cc55f45282e8a656ea0742e2f373189c9a912
[ "Apache-2.0" ]
null
null
null
src/ice_g2p/dictionaries.py
cadia-lvl/ice-g2p
5a6cc55f45282e8a656ea0742e2f373189c9a912
[ "Apache-2.0" ]
null
null
null
src/ice_g2p/dictionaries.py
cadia-lvl/ice-g2p
5a6cc55f45282e8a656ea0742e2f373189c9a912
[ "Apache-2.0" ]
null
null
null
import os, sys DICTIONARY_FILE = os.path.join(sys.prefix, 'dictionaries/ice_pron_dict_standard_clear.csv') HEAD_FILE = os.path.join(sys.prefix, 'data/head_map.csv') MODIFIER_FILE = os.path.join(sys.prefix, 'data/modifier_map.csv') VOWELS_FILE = os.path.join(sys.prefix, 'data/vowels_sampa.txt') CONS_CLUSTERS_FILE = os.p...
24.086207
91
0.670007
0
0
0
0
0
0
0
0
150
0.107373
ab42c6179a77692e03a58e9d6335af55ec3cb46d
385
py
Python
tests/test_annotations_notebook.py
jeromedockes/pylabelbuddy
26be00db679e94117968387aa7010dab2739b517
[ "BSD-3-Clause" ]
null
null
null
tests/test_annotations_notebook.py
jeromedockes/pylabelbuddy
26be00db679e94117968387aa7010dab2739b517
[ "BSD-3-Clause" ]
null
null
null
tests/test_annotations_notebook.py
jeromedockes/pylabelbuddy
26be00db679e94117968387aa7010dab2739b517
[ "BSD-3-Clause" ]
null
null
null
from pylabelbuddy import _annotations_notebook def test_annotations_notebook(root, annotations_mock, dataset_mock): nb = _annotations_notebook.AnnotationsNotebook( root, annotations_mock, dataset_mock ) nb.change_database() assert nb.notebook.index(nb.notebook.select()) == 2 nb.go_to_annot...
32.083333
68
0.750649
0
0
0
0
0
0
0
0
0
0
ab434ed80b4187ec898e721a32ff14b67e16c48a
1,669
py
Python
py/solns/wordSearch/wordSearch.py
zcemycl/algoTest
9518fb2b60fd83c85aeb2ab809ff647aaf643f0a
[ "MIT" ]
1
2022-01-26T16:33:45.000Z
2022-01-26T16:33:45.000Z
py/solns/wordSearch/wordSearch.py
zcemycl/algoTest
9518fb2b60fd83c85aeb2ab809ff647aaf643f0a
[ "MIT" ]
null
null
null
py/solns/wordSearch/wordSearch.py
zcemycl/algoTest
9518fb2b60fd83c85aeb2ab809ff647aaf643f0a
[ "MIT" ]
1
2022-01-26T16:35:44.000Z
2022-01-26T16:35:44.000Z
class Solution: @staticmethod def naive(board,word): rows,cols,n = len(board),len(board[0]),len(word) visited = set() def dfs(i,j,k): idf = str(i)+','+str(j) if i<0 or j<0 or i>cols-1 or j>rows-1 or \ board[j][i]!=word[k] or idf in visited: ...
37.088889
67
0.461953
1,669
1
0
0
1,644
0.985021
0
0
182
0.109047
ab4374fa18ea29af4960ad145950b9d2672ecb83
1,257
py
Python
middleware/run.py
natedogg484/react-flask-authentication
5000685d35471b03f72e0b07dfbdbf6d5fc296d2
[ "MIT" ]
null
null
null
middleware/run.py
natedogg484/react-flask-authentication
5000685d35471b03f72e0b07dfbdbf6d5fc296d2
[ "MIT" ]
4
2021-03-09T21:12:06.000Z
2022-02-26T19:17:31.000Z
middleware/run.py
natedogg484/vue-authentication
ab087e238d98606ffb73167cb9a16648812ac3e5
[ "MIT" ]
null
null
null
from flask import Flask from flask_cors import CORS from flask_restful import Api from flask_sqlalchemy import SQLAlchemy from flask_jwt_extended import JWTManager app = Flask(__name__) CORS(app) api = Api(app) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///app.db' app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] =...
27.933333
64
0.791567
0
0
0
0
239
0.190135
0
0
304
0.241846
ab43951bf5dc988e3a4948ac307ca905f1536445
223
py
Python
Programas do Curso/Desafio 2.py
carvalhopedro22/Programas-em-python-cursos-e-geral-
970e1ebe6cdd1e31f52dfd60328c2203d4de3ef1
[ "MIT" ]
null
null
null
Programas do Curso/Desafio 2.py
carvalhopedro22/Programas-em-python-cursos-e-geral-
970e1ebe6cdd1e31f52dfd60328c2203d4de3ef1
[ "MIT" ]
null
null
null
Programas do Curso/Desafio 2.py
carvalhopedro22/Programas-em-python-cursos-e-geral-
970e1ebe6cdd1e31f52dfd60328c2203d4de3ef1
[ "MIT" ]
null
null
null
nome = input('Qual o seu nome? ') dia = input('Que dia do mês você nasceu? ') mes = input('Qual o mês em que você nasceu? ') ano = input('Qual o ano em que você nasceu? ') print(nome, 'nasceu em', dia,'de',mes,'do ano',ano)
44.6
51
0.650224
0
0
0
0
0
0
0
0
143
0.627193
ab450e026b0907e8b838f6f9a3e2ba1d4218dd25
5,065
py
Python
cmibs/cisco_vlan_membership_mib.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
cmibs/cisco_vlan_membership_mib.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
cmibs/cisco_vlan_membership_mib.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# ---------------------------------------------------------------------- # CISCO-VLAN-MEMBERSHIP-MIB # Compiled MIB # Do not modify this file directly # Run ./noc mib make-cmib instead # ---------------------------------------------------------------------- # Copyright (C) 2007-2020 The NOC Project # See LICENSE for de...
64.113924
98
0.62231
0
0
0
0
0
0
0
0
4,536
0.895558
ab453c7b64fdd47b4cf51bb569f233871fe2b337
4,118
py
Python
harbor/tests/test_unit.py
tdimnet/integrations-core
a78133a3b71a1b8377fa214d121a98647031ab06
[ "BSD-3-Clause" ]
663
2016-08-23T05:23:45.000Z
2022-03-29T00:37:23.000Z
harbor/tests/test_unit.py
tdimnet/integrations-core
a78133a3b71a1b8377fa214d121a98647031ab06
[ "BSD-3-Clause" ]
6,642
2016-06-09T16:29:20.000Z
2022-03-31T22:24:09.000Z
harbor/tests/test_unit.py
tdimnet/integrations-core
a78133a3b71a1b8377fa214d121a98647031ab06
[ "BSD-3-Clause" ]
1,222
2017-01-27T15:51:38.000Z
2022-03-31T18:17:51.000Z
# (C) Datadog, Inc. 2019-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import pytest from mock import MagicMock from requests import HTTPError from datadog_checks.base import AgentCheck from datadog_checks.dev.http import MockResponse from .common import HARBOR_COMPONENTS, ...
43.347368
120
0.753035
0
0
0
0
2,260
0.54881
0
0
771
0.187227
ab47866bdd7f779d52254d019f551b3dccc349a3
2,649
py
Python
M-SPRING/template/adapter.py
CN-UPB/SPRING
1cb74919689e832987cb2c9b490eec7f09a64f52
[ "Apache-2.0" ]
3
2019-09-27T08:07:11.000Z
2021-11-19T11:27:39.000Z
M-SPRING/template/adapter.py
CN-UPB/SPRING
1cb74919689e832987cb2c9b490eec7f09a64f52
[ "Apache-2.0" ]
null
null
null
M-SPRING/template/adapter.py
CN-UPB/SPRING
1cb74919689e832987cb2c9b490eec7f09a64f52
[ "Apache-2.0" ]
null
null
null
# module for adapting templates on the fly if components are reused # check that all reused components are defined consistently -> else: exception def check_consistency(components): for j1 in components: for j2 in components: # compare all components if j1 == j2 and j1.__dict__ != j2.__dict__: # same n...
36.791667
116
0.690449
0
0
0
0
0
0
0
0
1,227
0.463194
ab4821f304dd37c05424c887f3d045a73e2c92fa
4,369
py
Python
column_completer.py
AllanLRH/column_completer
c1a0e1915256a4e3825c5c3b9863d78fdaf50be1
[ "Unlicense" ]
null
null
null
column_completer.py
AllanLRH/column_completer
c1a0e1915256a4e3825c5c3b9863d78fdaf50be1
[ "Unlicense" ]
null
null
null
column_completer.py
AllanLRH/column_completer
c1a0e1915256a4e3825c5c3b9863d78fdaf50be1
[ "Unlicense" ]
null
null
null
class ColumnCompleter(object): """Complete Pandas DataFrame column names""" def __init__(self, df, space_filler='_', silence_warnings=False): """ Once instantiated with a Pandas DataFrame, it will expose the column names as attributes which maps to their string counterparts. Au...
44.581633
101
0.610895
4,370
0.999771
0
0
1,246
0.285061
0
0
2,170
0.496454
ab4824ab4c800c1d309f147567a8700135e66f6b
1,483
py
Python
source/vsm-dashboard/vsm_dashboard/test/test_data/swift_data.py
ramkrsna/virtual-storage-manager
78125bfb4dd4d78ff96bc3274c8919003769c545
[ "Apache-2.0" ]
172
2015-01-07T08:40:17.000Z
2019-02-18T07:01:11.000Z
source/vsm-dashboard/vsm_dashboard/test/test_data/swift_data.py
ramkrsna/virtual-storage-manager
78125bfb4dd4d78ff96bc3274c8919003769c545
[ "Apache-2.0" ]
83
2015-03-06T07:47:03.000Z
2018-07-05T15:10:19.000Z
source/vsm-dashboard/vsm_dashboard/test/test_data/swift_data.py
ramkrsna/virtual-storage-manager
78125bfb4dd4d78ff96bc3274c8919003769c545
[ "Apache-2.0" ]
125
2015-01-05T12:22:15.000Z
2019-02-18T07:01:39.000Z
# Copyright 2012 Nebula, 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 agree...
38.025641
78
0.645988
0
0
0
0
0
0
0
0
741
0.499663
ab48693089ba2d51e690249090e8808f1456a30c
17,971
py
Python
cinder/backup/driver.py
liangintel/stx-cinder
f4c43797a3f8c0caebfd8fb67244c084d26d9741
[ "Apache-2.0" ]
null
null
null
cinder/backup/driver.py
liangintel/stx-cinder
f4c43797a3f8c0caebfd8fb67244c084d26d9741
[ "Apache-2.0" ]
2
2018-10-25T13:04:01.000Z
2019-08-17T13:15:24.000Z
cinder/backup/driver.py
liangintel/stx-cinder
f4c43797a3f8c0caebfd8fb67244c084d26d9741
[ "Apache-2.0" ]
2
2018-10-17T13:32:50.000Z
2018-11-08T08:39:39.000Z
# Copyright (C) 2013 Deutsche Telekom AG # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
40.566591
79
0.615492
16,163
0.899393
0
0
4,554
0.253408
0
0
8,390
0.466863
ab48971329305ae9b948d764b897a02b20e65a2f
67
py
Python
__init__.py
ENDERZOMBI102/chained
d01f04d1eb9a913f64cea9da52e61d91300315ff
[ "MIT" ]
null
null
null
__init__.py
ENDERZOMBI102/chained
d01f04d1eb9a913f64cea9da52e61d91300315ff
[ "MIT" ]
null
null
null
__init__.py
ENDERZOMBI102/chained
d01f04d1eb9a913f64cea9da52e61d91300315ff
[ "MIT" ]
null
null
null
from .chainOpen import chainOpen __all__ = [ 'chainOpen' ]
13.4
33
0.656716
0
0
0
0
0
0
0
0
11
0.164179
ab4a651d98707257763d7fecd97ef8404192f74c
1,146
py
Python
code/reasoningtool/tests/QuerySciGraphTests.py
andrewsu/RTX
dd1de262d0817f7e6d2f64e5bec7d5009a3a2740
[ "MIT" ]
31
2018-03-05T20:01:10.000Z
2022-02-01T03:31:22.000Z
code/reasoningtool/tests/QuerySciGraphTests.py
andrewsu/RTX
dd1de262d0817f7e6d2f64e5bec7d5009a3a2740
[ "MIT" ]
1,774
2018-03-06T01:55:03.000Z
2022-03-31T03:09:04.000Z
code/reasoningtool/tests/QuerySciGraphTests.py
andrewsu/RTX
dd1de262d0817f7e6d2f64e5bec7d5009a3a2740
[ "MIT" ]
19
2018-05-10T00:43:19.000Z
2022-03-08T19:26:16.000Z
import unittest from QuerySciGraph import QuerySciGraph class QuerySciGraphTestCase(unittest.TestCase): def test_get_disont_ids_for_mesh_id(self): disont_ids = QuerySciGraph.get_disont_ids_for_mesh_id('MESH:D005199') known_ids = {'DOID:13636'} self.assertSetEqual(disont_ids, known_ids) ...
44.076923
101
0.620419
1,038
0.905759
0
0
0
0
0
0
363
0.316754
ab4c81650d8bacd66796cfc5a7b9384015825cae
1,342
py
Python
ledis/cli.py
gianghta/Ledis
a6b31617621746344408ee411cf510ef3cfb2e7b
[ "MIT" ]
null
null
null
ledis/cli.py
gianghta/Ledis
a6b31617621746344408ee411cf510ef3cfb2e7b
[ "MIT" ]
null
null
null
ledis/cli.py
gianghta/Ledis
a6b31617621746344408ee411cf510ef3cfb2e7b
[ "MIT" ]
null
null
null
from typing import Any from ledis import Ledis from ledis.exceptions import InvalidUsage class CLI: __slots__ = {"ledis", "commands"} def __init__(self): self.ledis = Ledis() self.commands = { "set": self.ledis.set, "get": self.ledis.get, "sadd": self.ledi...
29.173913
78
0.520119
1,249
0.9307
0
0
0
0
0
0
208
0.154993
ab4cd7dafdbec4a4f671b37357e68833614883fc
866
py
Python
ClosedLoopTF.py
nazhanshaberi/miniature-octo-barnacle
eb1a8b5366003bf2d0f7e89af9d9dea120965f4f
[ "MIT" ]
null
null
null
ClosedLoopTF.py
nazhanshaberi/miniature-octo-barnacle
eb1a8b5366003bf2d0f7e89af9d9dea120965f4f
[ "MIT" ]
null
null
null
ClosedLoopTF.py
nazhanshaberi/miniature-octo-barnacle
eb1a8b5366003bf2d0f7e89af9d9dea120965f4f
[ "MIT" ]
null
null
null
#group 1: Question 1(b) # A control system for positioning the head of a laser printer has the closed loop transfer function: # !pip install control import matplotlib.pyplot as plt import control a=10 #Value for a b=50 #value for b sys1 = control.tf(20*b,[1,20+a,b+20*a,20*b]) print('3rd order system transfer funct...
29.862069
101
0.725173
0
0
0
0
0
0
0
0
411
0.474596
ab4d5adf0a4cf40d756ef93b4de1fbf8fed57093
1,953
py
Python
example_project/test_messages/bbcode_tags.py
bastiedotorg/django-precise-bbcode
567a8a7f104fb7f2c9d59f304791e53d2d8f4dea
[ "BSD-3-Clause" ]
30
2015-01-02T13:43:56.000Z
2021-02-08T18:43:09.000Z
example_project/test_messages/bbcode_tags.py
bastiedotorg/django-precise-bbcode
567a8a7f104fb7f2c9d59f304791e53d2d8f4dea
[ "BSD-3-Clause" ]
31
2015-01-16T00:25:19.000Z
2021-12-11T16:40:03.000Z
example_project/test_messages/bbcode_tags.py
bastiedotorg/django-precise-bbcode
567a8a7f104fb7f2c9d59f304791e53d2d8f4dea
[ "BSD-3-Clause" ]
13
2015-07-16T23:25:10.000Z
2020-08-23T20:12:24.000Z
import re from precise_bbcode.bbcode.tag import BBCodeTag from precise_bbcode.tag_pool import tag_pool color_re = re.compile(r'^([a-z]+|#[0-9abcdefABCDEF]{3,6})$') class SubTag(BBCodeTag): name = 'sub' def render(self, value, option=None, parent=None): return '<sub>%s</sub>' % value class PreTag...
27.125
97
0.673835
1,526
0.781362
0
0
0
0
0
0
557
0.285202
ab4de19d0181da877a10411de0bdd3a02265b4f5
1,567
py
Python
tests/test_vmtkScripts/test_vmtksurfacescaling.py
ramtingh/vmtk
4d6f58ce65d73628353ba2b110cbc29a2e7aa7b3
[ "Apache-2.0" ]
null
null
null
tests/test_vmtkScripts/test_vmtksurfacescaling.py
ramtingh/vmtk
4d6f58ce65d73628353ba2b110cbc29a2e7aa7b3
[ "Apache-2.0" ]
null
null
null
tests/test_vmtkScripts/test_vmtksurfacescaling.py
ramtingh/vmtk
4d6f58ce65d73628353ba2b110cbc29a2e7aa7b3
[ "Apache-2.0" ]
1
2019-06-18T23:41:11.000Z
2019-06-18T23:41:11.000Z
## Program: VMTK ## Language: Python ## Date: January 10, 2018 ## Version: 1.4 ## Copyright (c) Richard Izzo, Luca Antiga, All rights reserved. ## See LICENSE file for details. ## This software is distributed WITHOUT ANY WARRANTY; without even ## the implied warranty of MERCHANTABILITY or FITNES...
31.34
75
0.678366
0
0
0
0
677
0.432036
0
0
615
0.39247
ab4e0820c560508db4fbda99cab044003f105f34
155,374
py
Python
tencentcloud/vpc/v20170312/models.py
yangyimincn/tencentcloud-sdk-python
1d4f1bd83bb57a91bb6d2631131a339bc1f9b91d
[ "Apache-2.0" ]
null
null
null
tencentcloud/vpc/v20170312/models.py
yangyimincn/tencentcloud-sdk-python
1d4f1bd83bb57a91bb6d2631131a339bc1f9b91d
[ "Apache-2.0" ]
null
null
null
tencentcloud/vpc/v20170312/models.py
yangyimincn/tencentcloud-sdk-python
1d4f1bd83bb57a91bb6d2631131a339bc1f9b91d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf8 -*- # Copyright 1999-2017 Tencent Ltd. # # 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 l...
29.914132
366
0.643827
175,429
0.992728
0
0
0
0
0
0
96,686
0.547133
ab4e7cdf2bacce34a3021f862bd5b5457c0c010e
3,677
py
Python
mlcsim/dist.py
nobodywasishere/MLCSim
a3eb3d39b6970a4e706e292c6a283531fb44350c
[ "MIT" ]
null
null
null
mlcsim/dist.py
nobodywasishere/MLCSim
a3eb3d39b6970a4e706e292c6a283531fb44350c
[ "MIT" ]
null
null
null
mlcsim/dist.py
nobodywasishere/MLCSim
a3eb3d39b6970a4e706e292c6a283531fb44350c
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Distribution functions This module provides functions for dealing with normal distributions and generating error maps. When called directly as main, it allows for converting a threshold map into an error map. ``` $ python -m mlcsim.dist --help usage: dist.py [-h] [-b {1,2,3,4}] -f F [-o O]...
27.856061
93
0.627142
0
0
0
0
0
0
0
0
1,755
0.477291
ab4ecc2d3d04743c00cc721399cf77a91c741662
2,063
py
Python
Pr-Lab5/lab5.py
JackShen1/pr-labs
c84df379d8f7b26ccff30248dfb23ae38e0ce7c2
[ "MIT" ]
2
2021-02-25T11:42:06.000Z
2021-03-08T20:43:44.000Z
Pr-Lab5/lab5.py
JackShen1/pr-labs
c84df379d8f7b26ccff30248dfb23ae38e0ce7c2
[ "MIT" ]
null
null
null
Pr-Lab5/lab5.py
JackShen1/pr-labs
c84df379d8f7b26ccff30248dfb23ae38e0ce7c2
[ "MIT" ]
null
null
null
earth = { "Asia": {'Japan': ("Tokyo", 377975, 125620000)}, "Europe": {'Austria': ("Vienna", 83800, 8404000), 'Germany': ("Berlin", 357000, 81751000), 'Great Britain': ("London", 244800, 62700000), 'Iceland': ("Reykjavík", 103000, 317630), 'Italy': ("Rome", 301...
38.203704
125
0.49491
1,419
0.686502
0
0
0
0
0
0
451
0.218191
ab4efdf65ad735b02d6de387aa7fd48994cd82b2
1,507
bzl
Python
vue/repositories.bzl
ubiquitoustech/rules_vue
759786eae1b6caf647b1c6018e16030a66e486e2
[ "Apache-2.0" ]
null
null
null
vue/repositories.bzl
ubiquitoustech/rules_vue
759786eae1b6caf647b1c6018e16030a66e486e2
[ "Apache-2.0" ]
null
null
null
vue/repositories.bzl
ubiquitoustech/rules_vue
759786eae1b6caf647b1c6018e16030a66e486e2
[ "Apache-2.0" ]
null
null
null
"""Declare runtime dependencies These are needed for local dev, and users must install them as well. See https://docs.bazel.build/versions/main/skylark/deploying.html#dependencies """ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") #...
45.666667
126
0.7286
0
0
0
0
0
0
0
0
1,220
0.809555
ab4f57f26ec8e3a5f4f9c3add8fa33115729abc3
3,956
py
Python
endpoints/api/test/test_tag.py
kwestpharedhat/quay
a0df895005bcd3e53847046f69f6a7add87c88fd
[ "Apache-2.0" ]
null
null
null
endpoints/api/test/test_tag.py
kwestpharedhat/quay
a0df895005bcd3e53847046f69f6a7add87c88fd
[ "Apache-2.0" ]
null
null
null
endpoints/api/test/test_tag.py
kwestpharedhat/quay
a0df895005bcd3e53847046f69f6a7add87c88fd
[ "Apache-2.0" ]
null
null
null
import pytest from playhouse.test_utils import assert_query_count from data.registry_model import registry_model from data.database import Manifest from endpoints.api.test.shared import conduct_api_call from endpoints.test.shared import client_with_identity from endpoints.api.tag import RepositoryTag, RestoreTag, Li...
34.4
146
0.654954
0
0
0
0
2,890
0.730536
0
0
901
0.227755
ab4f80a6a89a2ba8ed869ff8442a2bb12f645322
8,541
py
Python
inventory.py
Jongerr/vendor_receiving
f69f09a5b41d38b45e9ea0bf82590bb27ce913f6
[ "MIT" ]
null
null
null
inventory.py
Jongerr/vendor_receiving
f69f09a5b41d38b45e9ea0bf82590bb27ce913f6
[ "MIT" ]
null
null
null
inventory.py
Jongerr/vendor_receiving
f69f09a5b41d38b45e9ea0bf82590bb27ce913f6
[ "MIT" ]
null
null
null
import json import os import random import requests from passlib.hash import pbkdf2_sha256 as pbk from PyQt5.QtSql import QSqlDatabase, QSqlQuery from pprint import pprint ENCODING = 'utf-8' DB_PATH = os.path.join(os.path.curdir, 'inventory.db') def scrambleWord(word): """Randomize the letters in word and retur...
37.296943
143
0.583772
0
0
0
0
0
0
0
0
3,143
0.36799
ab4fc96f582ec2e7dbdc6b88ad13480fe26a5ca3
1,749
py
Python
lnbits/core/views/lnurl.py
frennkie/lnbits
5fe64d324dc7ac05d1d0fc25eb5ad6a5a414ea8a
[ "MIT" ]
null
null
null
lnbits/core/views/lnurl.py
frennkie/lnbits
5fe64d324dc7ac05d1d0fc25eb5ad6a5a414ea8a
[ "MIT" ]
null
null
null
lnbits/core/views/lnurl.py
frennkie/lnbits
5fe64d324dc7ac05d1d0fc25eb5ad6a5a414ea8a
[ "MIT" ]
null
null
null
import requests from flask import abort, redirect, request, url_for from lnurl import LnurlWithdrawResponse, handle as handle_lnurl from lnurl.exceptions import LnurlException from time import sleep from lnbits.core import core_app from lnbits.helpers import Status from lnbits.settings import WALLET from ..crud impo...
30.155172
108
0.70669
0
0
0
0
1,367
0.781589
0
0
138
0.078902
ab5224dab7764f41af318140ad4ebc3291d1cf50
1,507
py
Python
driver_training/driver_training.py
munishm/MLOpsPython
e3ee31f6a0cac645a2b3ad945b8263e07d3085e4
[ "MIT" ]
null
null
null
driver_training/driver_training.py
munishm/MLOpsPython
e3ee31f6a0cac645a2b3ad945b8263e07d3085e4
[ "MIT" ]
null
null
null
driver_training/driver_training.py
munishm/MLOpsPython
e3ee31f6a0cac645a2b3ad945b8263e07d3085e4
[ "MIT" ]
null
null
null
# Import libraries import argparse from azureml.core import Run import joblib import json import os import pandas as pd import shutil # Import functions from train.py from train import split_data, train_model, get_model_metrics # Get the output folder for the model from the '--output_folder' parameter parser = argpar...
27.4
89
0.780358
0
0
0
0
0
0
0
0
575
0.381553
ab52d48313f3351abea75bf8f470d2befb8d9c79
62
py
Python
tests/__init__.py
madman-bob/python-lua-imports
76d3765b03a0478544214022118e5a4a13f6e36a
[ "MIT" ]
3
2020-04-15T00:00:42.000Z
2021-03-07T19:58:44.000Z
tests/__init__.py
madman-bob/python-lua-imports
76d3765b03a0478544214022118e5a4a13f6e36a
[ "MIT" ]
null
null
null
tests/__init__.py
madman-bob/python-lua-imports
76d3765b03a0478544214022118e5a4a13f6e36a
[ "MIT" ]
1
2020-10-05T16:21:53.000Z
2020-10-05T16:21:53.000Z
from lua_imports import lua_importer lua_importer.register()
15.5
36
0.854839
0
0
0
0
0
0
0
0
0
0
ab5634ebc042f640696c7b2e6eb9efb69e3e48b5
258
py
Python
app/models/product.py
VyachAp/SalesFABackend
dcbe1b5106c030ee07535795dfd7b97613a1203d
[ "MIT" ]
80
2020-10-06T00:35:57.000Z
2022-03-31T19:56:24.000Z
app/models/product.py
VyachAp/SalesFABackend
dcbe1b5106c030ee07535795dfd7b97613a1203d
[ "MIT" ]
1
2021-03-28T06:17:41.000Z
2021-04-03T06:41:09.000Z
app/models/product.py
VyachAp/SalesFABackend
dcbe1b5106c030ee07535795dfd7b97613a1203d
[ "MIT" ]
24
2020-11-14T03:04:43.000Z
2022-03-11T15:44:44.000Z
from sqlalchemy import Column, Integer, String, Float from app.database.base_class import Base class Product(Base): id = Column(Integer, primary_key=True, index=True) name = Column(String, nullable=False) price = Column(Float, nullable=False)
25.8
54
0.744186
159
0.616279
0
0
0
0
0
0
0
0
ab57b93b87294fbdfc94236ad38a6b407c2435a8
7,463
py
Python
katana/utils/directory_traversal_utils.py
warriorframework/Katanaframework
9dc78df9d0c8f19ef5eaaa8690fbfa1ad885b323
[ "Apache-2.0" ]
1
2020-09-30T11:14:14.000Z
2020-09-30T11:14:14.000Z
katana/utils/directory_traversal_utils.py
warriorframework/Katanaframework
9dc78df9d0c8f19ef5eaaa8690fbfa1ad885b323
[ "Apache-2.0" ]
4
2020-06-06T01:55:04.000Z
2021-06-10T22:57:50.000Z
katana/utils/directory_traversal_utils.py
warriorframework/Katanaframework
9dc78df9d0c8f19ef5eaaa8690fbfa1ad885b323
[ "Apache-2.0" ]
1
2020-09-17T08:20:09.000Z
2020-09-17T08:20:09.000Z
import glob import os import re import errno import shutil def get_sub_dirs_and_files(path, abs_path=False): """ Gets the direct child sub-files and sub-folders of the given directory Args: path: Absolute path to the directory abs_path: If set to True, it returns a list of absolute paths ...
29.498024
100
0.643307
0
0
0
0
0
0
0
0
3,910
0.523918
ab58cf0f15e7f5253d551ed9c21fd93da300dfec
8,381
py
Python
alignment.py
LucaOnline/theanine-synthetase
75a9d1f6d853409e12bf9f3b6e5948b594a03217
[ "MIT" ]
null
null
null
alignment.py
LucaOnline/theanine-synthetase
75a9d1f6d853409e12bf9f3b6e5948b594a03217
[ "MIT" ]
1
2021-04-28T21:34:45.000Z
2021-05-11T23:29:59.000Z
alignment.py
LucaOnline/theanine-synthetase
75a9d1f6d853409e12bf9f3b6e5948b594a03217
[ "MIT" ]
null
null
null
"""The `alignment` module provides an implementation of the Needleman-Wunsch alignment algorithm.""" from typing import Tuple, Literal, List from math import floor import numpy as np from stats import variance MOVE_DIAGONAL = 0 MOVE_RIGHT = 1 MOVE_DOWN = 2 EditMove = Literal[MOVE_DIAGONAL, MOVE_RIGHT, MOVE_DOWN] ...
32.111111
106
0.595752
4,923
0.5874
0
0
0
0
0
0
2,516
0.300203
ab58dbf2a732c20f8c5b6f7ff7869c6f7c00ca41
2,348
py
Python
examples/the-feeling-of-success/mock_grasp_object_op.py
yujialuo/erdos
7a631b55895f1a473b0f4d38a0d6053851e65b5d
[ "Apache-2.0" ]
null
null
null
examples/the-feeling-of-success/mock_grasp_object_op.py
yujialuo/erdos
7a631b55895f1a473b0f4d38a0d6053851e65b5d
[ "Apache-2.0" ]
null
null
null
examples/the-feeling-of-success/mock_grasp_object_op.py
yujialuo/erdos
7a631b55895f1a473b0f4d38a0d6053851e65b5d
[ "Apache-2.0" ]
null
null
null
from mock_gripper_op import MockGripType from std_msgs.msg import Bool from erdos.op import Op from erdos.data_stream import DataStream from erdos.message import Message class MockGraspObjectOperator(Op): """ Sends a "close" action to the gripper. """ gripper_stream = "gripper-output-stream" acti...
34.028986
79
0.663969
2,174
0.925894
0
0
842
0.358603
0
0
636
0.270869
ab58e931b2be617a8f028a51f43ae40e92333614
3,683
py
Python
src/pyfsa/lib/fsa.py
taliamax/pyfsa
d92faa96c1e17e4016df7b367c7d405a07f1253b
[ "Apache-2.0" ]
1
2021-01-21T21:48:26.000Z
2021-01-21T21:48:26.000Z
src/pyfsa/lib/fsa.py
taliamax/pyfsa
d92faa96c1e17e4016df7b367c7d405a07f1253b
[ "Apache-2.0" ]
null
null
null
src/pyfsa/lib/fsa.py
taliamax/pyfsa
d92faa96c1e17e4016df7b367c7d405a07f1253b
[ "Apache-2.0" ]
4
2021-01-22T04:04:22.000Z
2021-11-01T14:43:09.000Z
# -*- coding: utf-8 -*- import pygraphviz as gv # type: ignore import itertools as it from typing import ( List, Optional, ) from pyfsa.lib.types import TransitionsTable def get_state_graph( transitions: TransitionsTable, start: Optional[str] = None, end: Optional[str] = None, nodes: Option...
27.485075
65
0.620961
0
0
0
0
0
0
0
0
1,055
0.286451
ab59b426727f7713efb93b6855597da219efc0be
1,695
py
Python
examples/multimedia/mmimdb_MFM.py
kapikantzari/MultiBench
44ab6ea028682040a0c04de68239ce5cdf15123f
[ "MIT" ]
148
2021-03-06T06:54:13.000Z
2022-03-29T19:27:21.000Z
examples/multimedia/mmimdb_MFM.py
kapikantzari/MultiBench
44ab6ea028682040a0c04de68239ce5cdf15123f
[ "MIT" ]
10
2021-07-19T22:57:49.000Z
2022-02-04T03:12:29.000Z
examples/multimedia/mmimdb_MFM.py
kapikantzari/MultiBench
44ab6ea028682040a0c04de68239ce5cdf15123f
[ "MIT" ]
18
2021-07-22T07:17:27.000Z
2022-03-27T16:11:40.000Z
import torch import sys import os sys.path.append(os.getcwd()) from utils.helper_modules import Sequential2 from unimodals.common_models import Linear, MLP, MaxOut_MLP from datasets.imdb.get_data import get_dataloader from fusions.common_fusions import Concat from objective_functions.objectives_for_supervised_learnin...
42.375
175
0.746313
0
0
0
0
0
0
0
0
131
0.077286
ab5a9e198509b5652d8bbadee3e63897c02a6e94
1,461
py
Python
subeana/migrations/0001_initial.py
izumin2000/izuminapp
3464cebe1d98c85c2cd95c6fac779ec1f42ef930
[ "MIT" ]
null
null
null
subeana/migrations/0001_initial.py
izumin2000/izuminapp
3464cebe1d98c85c2cd95c6fac779ec1f42ef930
[ "MIT" ]
null
null
null
subeana/migrations/0001_initial.py
izumin2000/izuminapp
3464cebe1d98c85c2cd95c6fac779ec1f42ef930
[ "MIT" ]
null
null
null
# Generated by Django 4.0.2 on 2022-06-01 04:43 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Channel', fields=[ ...
40.583333
169
0.600274
1,335
0.913758
0
0
0
0
0
0
207
0.141684
ab5b1e3328548b4d29719e9eabea190e03a2dd78
78,836
py
Python
bifacialvf/vf.py
shirubana/bifacialvf
7cd1c4c658bb7a68f0815b2bd1a6d5c492ca7300
[ "BSD-3-Clause" ]
1
2020-05-20T06:19:40.000Z
2020-05-20T06:19:40.000Z
bifacialvf/vf.py
shirubana/bifacialvf
7cd1c4c658bb7a68f0815b2bd1a6d5c492ca7300
[ "BSD-3-Clause" ]
null
null
null
bifacialvf/vf.py
shirubana/bifacialvf
7cd1c4c658bb7a68f0815b2bd1a6d5c492ca7300
[ "BSD-3-Clause" ]
1
2020-12-30T08:05:49.000Z
2020-12-30T08:05:49.000Z
# -*- coding: utf-8 -*- """ ViewFactor module - VF calculation helper files for bifacial-viewfactor @author Bill Marion @translated to python by sayala 06/09/17 """ # ensure python3 compatible division and printing from __future__ import division, print_function, absolute_import import math import numpy as np fr...
50.374441
203
0.534692
0
0
0
0
0
0
0
0
36,148
0.458521
ab5be15bbc59ecc18cf93a6170b0dd272f33cfd6
833
py
Python
tests/test_slison.py
Habidatum/slisonner
488be30a199a5d29271e24377c37a7ad83d52e3e
[ "MIT" ]
2
2017-02-06T17:15:11.000Z
2017-04-17T13:18:18.000Z
tests/test_slison.py
Habidatum/slisonner
488be30a199a5d29271e24377c37a7ad83d52e3e
[ "MIT" ]
null
null
null
tests/test_slison.py
Habidatum/slisonner
488be30a199a5d29271e24377c37a7ad83d52e3e
[ "MIT" ]
null
null
null
from slisonner import decoder, encoder from tests import mocker from tempfile import mkdtemp from shutil import rmtree def test_full_encode_decode_cycle(): temp_out_dir = mkdtemp() slice_id = '2015-01-02 00:00:00' x_size, y_size = 10, 16 temp_slice_path = mocker.generate_slice(x_size, y_size, 'float3...
29.75
75
0.716687
0
0
0
0
0
0
0
0
47
0.056423
ab5da7ec6af05a22fe8ff59c25c22325724698fc
403
py
Python
cartrade/cartrade/doctype/category/category.py
vignesharumainayagam/cartrade
81349bc3cd9dbd441491304734077aab10dca56f
[ "MIT" ]
null
null
null
cartrade/cartrade/doctype/category/category.py
vignesharumainayagam/cartrade
81349bc3cd9dbd441491304734077aab10dca56f
[ "MIT" ]
null
null
null
cartrade/cartrade/doctype/category/category.py
vignesharumainayagam/cartrade
81349bc3cd9dbd441491304734077aab10dca56f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2018, Tridots Tech Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.website.website_generator import WebsiteGenerator class Category(WebsiteGenerator): def validate(self): if ' '...
28.785714
61
0.751861
149
0.369727
0
0
0
0
0
0
141
0.349876
ab5e4dfefa5bc8fdcbff9af5c74dd0475612065f
372
py
Python
exercises/pyfiles/ex812_polarsincos.py
TUDelft-AE-Python/ae1205-exercises
342d1d567b64d3ccb3371ce9826c02a87a155fa8
[ "MIT" ]
1
2021-10-05T04:49:54.000Z
2021-10-05T04:49:54.000Z
exercises/pyfiles/ex812_polarsincos.py
TUDelft-AE1205/ae1205-exercises
342d1d567b64d3ccb3371ce9826c02a87a155fa8
[ "MIT" ]
null
null
null
exercises/pyfiles/ex812_polarsincos.py
TUDelft-AE1205/ae1205-exercises
342d1d567b64d3ccb3371ce9826c02a87a155fa8
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import math xtab = [] ytab = [] for i in range(0, 628): # Calculate polar coordinates for provided equation phi = float(i) / 100.0 r = 4 * math.cos(2 * phi) # Convert to Cartesian and store in lists x = r * math.cos(phi) y = r * math.sin(phi) xtab.append(x)...
19.578947
55
0.620968
0
0
0
0
0
0
0
0
92
0.247312
ab5ff68a9733a875c0aeb19f8b19c6f3ac7260b4
3,108
py
Python
vendor/packages/logilab-astng/__pkginfo__.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
2
2019-08-19T17:08:47.000Z
2019-10-05T11:37:02.000Z
vendor/packages/logilab-astng/__pkginfo__.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
vendor/packages/logilab-astng/__pkginfo__.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2003-2010 LOGILAB S.A. (Paris, FRANCE). # http://www.logilab.fr/ -- mailto:contact@logilab.fr # # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free Software # Foundation; either version 2 of the Lic...
40.363636
87
0.740991
0
0
0
0
0
0
0
0
2,688
0.864865
ab60f9944d5fde6a7550fbbfc9b1e8fd43e10b50
1,518
py
Python
W-DCGAN/model.py
lmyybh/pytorch-networks
8da055f5042c3803b275734afc89d33d239d7585
[ "MulanPSL-1.0" ]
null
null
null
W-DCGAN/model.py
lmyybh/pytorch-networks
8da055f5042c3803b275734afc89d33d239d7585
[ "MulanPSL-1.0" ]
null
null
null
W-DCGAN/model.py
lmyybh/pytorch-networks
8da055f5042c3803b275734afc89d33d239d7585
[ "MulanPSL-1.0" ]
null
null
null
import torch import torch.nn as nn class Generator(nn.Module): def __init__(self, signal_size, out_channels=3): super(Generator, self).__init__() self.linear = nn.Linear(signal_size, 1024*4*4) convs = [] channels = [1024, 512, 256, 128] for i in range(1, len(channel...
33
87
0.563241
1,473
0.970356
0
0
0
0
0
0
22
0.014493
ab617d4c442405b9219d3fa02f66e3a525d82e42
4,339
py
Python
bioinformatics/analysis/rnaseq/prepare/split_gtf_by_type.py
bioShaun/omsCabinet
741179a06cbd5200662cd03bc2e0115f4ad06917
[ "MIT" ]
null
null
null
bioinformatics/analysis/rnaseq/prepare/split_gtf_by_type.py
bioShaun/omsCabinet
741179a06cbd5200662cd03bc2e0115f4ad06917
[ "MIT" ]
null
null
null
bioinformatics/analysis/rnaseq/prepare/split_gtf_by_type.py
bioShaun/omsCabinet
741179a06cbd5200662cd03bc2e0115f4ad06917
[ "MIT" ]
null
null
null
import fire import gtfparse from pathlib import Path GENCODE_CATEGORY_MAP = { 'IG_C_gene': 'protein_coding', 'IG_D_gene': 'protein_coding', 'IG_J_gene': 'protein_coding', 'IG_V_gene': 'protein_coding', 'IG_LV_gene': 'protein_coding', 'TR_C_gene': 'protein_coding', 'TR_J_gene': 'protein_cod...
30.77305
59
0.63563
0
0
0
0
0
0
0
0
2,067
0.476377
ab61967196abc0b2e677bfd1d2c054cef2f1f32b
792
py
Python
rational.py
navel0810/chibi
d2e9a791492352c3c1b76c841a3ad30df2f444fd
[ "MIT" ]
null
null
null
rational.py
navel0810/chibi
d2e9a791492352c3c1b76c841a3ad30df2f444fd
[ "MIT" ]
null
null
null
rational.py
navel0810/chibi
d2e9a791492352c3c1b76c841a3ad30df2f444fd
[ "MIT" ]
null
null
null
import math class Q(object): def __init__(self,a,b=1): gcd=math.gcd(a,b) self.a=a//gcd self.b=b//gcd def __repr__(self): if self.b==1: return str(self.a) return f'{self.a}/{self.b}' def __add__(self,q): a=self.a b=self.b...
17.217391
36
0.412879
737
0.930556
0
0
0
0
0
0
20
0.025253
ab6209870d287fc20132452f64da2ca39e9ab140
1,890
py
Python
cities_light/tests/test_import.py
jsandovalc/django-cities-light
a1c6af08938b7b01d4e12555bd4cb5040905603d
[ "MIT" ]
null
null
null
cities_light/tests/test_import.py
jsandovalc/django-cities-light
a1c6af08938b7b01d4e12555bd4cb5040905603d
[ "MIT" ]
null
null
null
cities_light/tests/test_import.py
jsandovalc/django-cities-light
a1c6af08938b7b01d4e12555bd4cb5040905603d
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import glob import os from dbdiff.fixture import Fixture from .base import TestImportBase, FixtureDir from ..settings import DATA_DIR class TestImport(TestImportBase): """Load test.""" def test_single_city(self): """Load single city.""" fixture_dir = ...
29.53125
84
0.607937
1,710
0.904762
0
0
0
0
0
0
519
0.274603
ab6246c7ab7820986e2418ba286e6e0d8c06092b
574
py
Python
custom_components/hoymiles/__init__.py
Cosik/HAHoymiles
e956f8fafc4ae59d4c05755c6e8a5d5d7caa37f9
[ "MIT" ]
null
null
null
custom_components/hoymiles/__init__.py
Cosik/HAHoymiles
e956f8fafc4ae59d4c05755c6e8a5d5d7caa37f9
[ "MIT" ]
null
null
null
custom_components/hoymiles/__init__.py
Cosik/HAHoymiles
e956f8fafc4ae59d4c05755c6e8a5d5d7caa37f9
[ "MIT" ]
null
null
null
import datetime import logging import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import CONF_PASSWORD, CONF_USERNAME import homeassistant.helpers.config_validation as cv from .const import ( CONF_PLANT_ID, ) _LOGGER = logging.getLogger(__name__) MIN_T...
23.916667
60
0.775261
0
0
0
0
0
0
0
0
0
0
db3b69e3c4b3003f7bdcfee2a7ee4c426c44a37d
5,738
py
Python
views/auth.py
bluebibi/flask_rest
9b1ee876060bca5d97459bb894c73530f66c4c15
[ "MIT" ]
null
null
null
views/auth.py
bluebibi/flask_rest
9b1ee876060bca5d97459bb894c73530f66c4c15
[ "MIT" ]
1
2022-02-11T03:43:51.000Z
2022-02-11T03:43:51.000Z
views/auth.py
bluebibi/flask_rest
9b1ee876060bca5d97459bb894c73530f66c4c15
[ "MIT" ]
2
2019-11-19T02:09:03.000Z
2020-04-04T06:55:14.000Z
from flask import Blueprint, redirect, render_template, request, flash, session from database import base from database.base import User from forms import UserForm, LoginForm, MyPageUserForm from flask_login import login_required, login_user, logout_user, current_user import requests auth_blueprint = Blueprint('auth'...
32.977011
104
0.648832
0
0
0
0
3,396
0.570373
0
0
1,804
0.30299
db3d773e3532da7f969a86616e27db866a72624c
3,500
py
Python
doc/.src/book/exer/cable_sin.py
hplgit/fem-book
c23099715dc3cb72e7f4d37625e6f9614ee5fc4e
[ "MIT" ]
86
2015-12-17T12:57:11.000Z
2022-03-26T01:53:47.000Z
doc/.src/book/exer/cable_sin.py
hplgit/fem-book
c23099715dc3cb72e7f4d37625e6f9614ee5fc4e
[ "MIT" ]
9
2017-04-16T21:57:29.000Z
2021-04-17T08:09:30.000Z
doc/.src/book/exer/cable_sin.py
hplgit/fem-book
c23099715dc3cb72e7f4d37625e6f9614ee5fc4e
[ "MIT" ]
43
2016-03-11T19:33:14.000Z
2022-03-05T00:21:57.000Z
import matplotlib.pyplot as plt def model(): """Solve u'' = -1, u(0)=0, u'(1)=0.""" import sympy as sym x, c_0, c_1, = sym.symbols('x c_0 c_1') u_x = sym.integrate(1, (x, 0, x)) + c_0 u = sym.integrate(u_x, (x, 0, x)) + c_1 r = sym.solve([u.subs(x,0) - 0, sym.diff(u,x).subs(x...
28.92562
60
0.512571
0
0
0
0
0
0
0
0
524
0.149714
db3dd00adedd165108fb972c0f4e5656055ffd1d
1,196
py
Python
skgmm.py
liuliu663/speaker-recognition-py3
8fd0f77ac011e4a11c7cac751dc985b9cd1f2c4d
[ "Apache-2.0" ]
null
null
null
skgmm.py
liuliu663/speaker-recognition-py3
8fd0f77ac011e4a11c7cac751dc985b9cd1f2c4d
[ "Apache-2.0" ]
null
null
null
skgmm.py
liuliu663/speaker-recognition-py3
8fd0f77ac011e4a11c7cac751dc985b9cd1f2c4d
[ "Apache-2.0" ]
null
null
null
from sklearn.mixture import GaussianMixture import operator import numpy as np import math class GMMSet: def __init__(self, gmm_order = 32): self.gmms = [] self.gmm_order = gmm_order self.y = [] def fit_new(self, x, label): self.y.append(label) gmm = GaussianM...
27.813953
81
0.601171
1,103
0.922241
0
0
185
0.154682
0
0
0
0
db3df0c689b2c97c43cbf7385cac4c429ebf9bf0
2,440
py
Python
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/12_features/numtrees_20/rule_6.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/12_features/numtrees_20/rule_6.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/12_features/numtrees_20/rule_6.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
def findDecision(obj): #obj[0]: Passanger, obj[1]: Time, obj[2]: Coupon, obj[3]: Gender, obj[4]: Age, obj[5]: Education, obj[6]: Occupation, obj[7]: Bar, obj[8]: Coffeehouse, obj[9]: Restaurant20to50, obj[10]: Direction_same, obj[11]: Distance # {"feature": "Age", "instances": 51, "metric_value": 0.9662, "depth": 1} ...
35.882353
243
0.547951
0
0
0
0
0
0
0
0
1,391
0.570082
db3fb84bca4d1b9ce63dca5f602d76eb7650bd3f
106
py
Python
lib/loss/__init__.py
kennethwdk/PINet
3a0abbd653146c56e39612384891c94c3fb49b35
[ "MIT" ]
10
2021-12-22T11:31:53.000Z
2022-01-18T11:52:17.000Z
lib/loss/__init__.py
kennethwdk/PINet
3a0abbd653146c56e39612384891c94c3fb49b35
[ "MIT" ]
null
null
null
lib/loss/__init__.py
kennethwdk/PINet
3a0abbd653146c56e39612384891c94c3fb49b35
[ "MIT" ]
null
null
null
from .heatmaploss import HeatmapLoss from .offsetloss import OffsetLoss from .refineloss import RefineLoss
35.333333
36
0.867925
0
0
0
0
0
0
0
0
0
0
db40a9951b31f74580005898f3f6b78a4f2c461b
1,080
py
Python
eth2/beacon/types/historical_batch.py
AndrewBezold/trinity
bc656da4dece431a0c929a99349d45faf75decf8
[ "MIT" ]
null
null
null
eth2/beacon/types/historical_batch.py
AndrewBezold/trinity
bc656da4dece431a0c929a99349d45faf75decf8
[ "MIT" ]
null
null
null
eth2/beacon/types/historical_batch.py
AndrewBezold/trinity
bc656da4dece431a0c929a99349d45faf75decf8
[ "MIT" ]
null
null
null
from typing import Sequence from eth.constants import ZERO_HASH32 from eth_typing import Hash32 import ssz from ssz.sedes import Vector, bytes32 from eth2.configs import Eth2Config from .defaults import default_tuple, default_tuple_of_size class HistoricalBatch(ssz.Serializable): fields = [("block_roots", Vec...
30
87
0.649074
834
0.772222
0
0
0
0
0
0
56
0.051852
db42ec903108c18c60147d1092a12cae13582379
186
py
Python
app/settings.py
nikosk/fastAPI-microservice-example-
a1a61ab4e521bc0c48eee5b3a755db134c098546
[ "MIT" ]
null
null
null
app/settings.py
nikosk/fastAPI-microservice-example-
a1a61ab4e521bc0c48eee5b3a755db134c098546
[ "MIT" ]
null
null
null
app/settings.py
nikosk/fastAPI-microservice-example-
a1a61ab4e521bc0c48eee5b3a755db134c098546
[ "MIT" ]
null
null
null
import os from pydantic import BaseSettings class Settings(BaseSettings): DEBUG: bool DATABASE_URL: str class Config: env_file = os.getenv("CONFIG_FILE", ".env")
15.5
51
0.688172
138
0.741935
0
0
0
0
0
0
19
0.102151
db434cf2f9b45ff5f3690a75cc12bde4fd9cb6aa
1,354
py
Python
ADVECTOR/io_tools/create_bathymetry.py
john-science/ADVECTOR
5c5ca7595c2c051f1a088b1f0e694936c3da3610
[ "MIT" ]
7
2021-09-07T02:32:00.000Z
2022-01-15T11:35:02.000Z
ADVECTOR/io_tools/create_bathymetry.py
TheOceanCleanupAlgorithms/ADVECT
e27ce15da6a2fcbccbe363f8c2415b0122696d1f
[ "MIT" ]
1
2021-12-24T15:16:26.000Z
2021-12-24T15:16:26.000Z
ADVECTOR/io_tools/create_bathymetry.py
TheOceanCleanupAlgorithms/ADVECT
e27ce15da6a2fcbccbe363f8c2415b0122696d1f
[ "MIT" ]
1
2021-12-12T15:13:52.000Z
2021-12-12T15:13:52.000Z
import numpy as np import xarray as xr def create_bathymetry_from_land_mask(land_mask: xr.DataArray) -> xr.DataArray: """Method: identifies the lower depth bound of the shallowest ocean cell (non-null) in each vertical grid column. :param land_mask: dimensions {time, depth, lat, lon}, boloean array, T...
34.717949
99
0.637371
0
0
0
0
0
0
0
0
607
0.448301
db446d4b90633693172c23acd329f858502b3ec2
712
py
Python
unitconvert/distance.py
cr2630git/unitconvert
64a530f53b27a9412988877c7ae1b3b34f9ce8a6
[ "MIT" ]
null
null
null
unitconvert/distance.py
cr2630git/unitconvert
64a530f53b27a9412988877c7ae1b3b34f9ce8a6
[ "MIT" ]
null
null
null
unitconvert/distance.py
cr2630git/unitconvert
64a530f53b27a9412988877c7ae1b3b34f9ce8a6
[ "MIT" ]
2
2017-11-16T15:11:09.000Z
2021-08-19T19:34:23.000Z
""" A simple python module for converting kilometers to miles or vice versa. So simple that it doesn't even have any dependencies. """ def kilometers_to_miles(dist_in_km): """ Actually does the conversion of distance from km to mi. PARAMETERS -------- dist_in_km: float A distance in kilometers. RETURNS -...
17.365854
72
0.703652
0
0
0
0
0
0
0
0
566
0.794944
db44a6bdcd485ae98f0bcb11e91bddb17022662f
1,456
py
Python
contacts/migrations_old/0006_data_status.py
I-TECH-UW/mwachx
e191755c3369208d678fceec68dbb4f5f51c453a
[ "Apache-2.0" ]
3
2015-05-27T14:35:49.000Z
2016-02-26T21:04:32.000Z
contacts/migrations/0006_data_status.py
tperrier/mwachx
94616659dc29843e661b2ecc9a2e7f1d4e81b5a4
[ "Apache-2.0" ]
375
2015-01-31T10:08:34.000Z
2021-06-10T19:44:21.000Z
contacts/migrations_old/0006_data_status.py
I-TECH-UW/mwachx
e191755c3369208d678fceec68dbb4f5f51c453a
[ "Apache-2.0" ]
6
2016-01-10T19:52:41.000Z
2020-06-15T22:07:24.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import itertools as it from django.db import models, migrations def convert_status(apps, schema_editor): ''' Migrate Visit.skipped and ScheduledPhoneCall.skipped -> status (pending,missed,deleted,attended) ''' Visit = apps.get_model(...
30.333333
79
0.643544
207
0.14217
0
0
0
0
0
0
377
0.258929
db4545f1a4dfa83103a39912add856795ff6a347
813
py
Python
core/tests/test_base_time_range_controller.py
One-Green/plant-keeper-master
67101a4cc7070d26fd1685631a710ae9a60fc5e8
[ "CC0-1.0" ]
2
2022-02-04T17:52:38.000Z
2022-02-04T17:52:40.000Z
core/tests/test_base_time_range_controller.py
shanisma/plant-keeper
3ca92ae2d55544a301e1398496a08a45cca6d15b
[ "CC0-1.0" ]
4
2021-06-16T20:01:50.000Z
2022-03-09T20:17:53.000Z
core/tests/test_base_time_range_controller.py
shanisma/plant-keeper
3ca92ae2d55544a301e1398496a08a45cca6d15b
[ "CC0-1.0" ]
1
2021-06-27T10:45:36.000Z
2021-06-27T10:45:36.000Z
import os import sys from datetime import time import unittest sys.path.append( os.path.dirname( os.path.dirname(os.path.join("..", "..", "..", os.path.dirname("__file__"))) ) ) from core.controller import BaseTimeRangeController class TestTimeRangeController(unittest.TestCase): def test_time_ran...
26.225806
84
0.688807
514
0.632226
0
0
0
0
0
0
32
0.03936
db45d8bc1a8d49e33721d418ba06b6f827c48c0b
4,098
py
Python
generator_code/mp3_generator.py
jurganson/spingen
f8421a26356d0cd1d94a0692846791eb45fce6f5
[ "MIT" ]
null
null
null
generator_code/mp3_generator.py
jurganson/spingen
f8421a26356d0cd1d94a0692846791eb45fce6f5
[ "MIT" ]
null
null
null
generator_code/mp3_generator.py
jurganson/spingen
f8421a26356d0cd1d94a0692846791eb45fce6f5
[ "MIT" ]
null
null
null
from gtts import gTTS as ttos from pydub import AudioSegment import os def generate_mp3 (segments, fade_ms, speech_gain, comment_fade_ms, language = "en", output_file_name = "generated_program_sound") : def apply_comments (exercise_audio, segment) : new_exercise_audio = exercise_audio for comment ...
54.64
175
0.708394
0
0
0
0
0
0
0
0
383
0.09346
db4793142f42cba39f558b2249770456a14a7e8a
600
py
Python
relaax/algorithms/ddpg/parameter_server.py
deeplearninc/relaax
a0cf280486dc74dca3857c85ec0e4c34e88d6b2b
[ "MIT" ]
71
2017-01-25T00:26:20.000Z
2021-02-17T12:39:20.000Z
relaax/algorithms/ddpg/parameter_server.py
deeplearninc/relaax
a0cf280486dc74dca3857c85ec0e4c34e88d6b2b
[ "MIT" ]
69
2017-01-23T19:29:23.000Z
2018-08-21T13:26:39.000Z
relaax/algorithms/ddpg/parameter_server.py
deeplearninc/relaax
a0cf280486dc74dca3857c85ec0e4c34e88d6b2b
[ "MIT" ]
13
2017-01-23T21:18:09.000Z
2019-01-29T23:48:30.000Z
from __future__ import absolute_import from relaax.server.parameter_server import parameter_server_base from relaax.server.common import session from . import ddpg_model class ParameterServer(parameter_server_base.ParameterServerBase): def init_session(self): self.session = session.Session(ddpg_model.Sha...
27.272727
69
0.745
426
0.71
0
0
0
0
0
0
0
0
db49fa274fd584b7dd27d84ca85b94655d65a8a2
6,946
py
Python
scripts/make_VFS.py
nvoron23/brython
b1ce5fa39b5d38c0dde138b4e75723fbb3e574ab
[ "BSD-3-Clause" ]
1
2015-11-06T09:32:34.000Z
2015-11-06T09:32:34.000Z
scripts/make_VFS.py
nvoron23/brython
b1ce5fa39b5d38c0dde138b4e75723fbb3e574ab
[ "BSD-3-Clause" ]
null
null
null
scripts/make_VFS.py
nvoron23/brython
b1ce5fa39b5d38c0dde138b4e75723fbb3e574ab
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import json import os import pyminifier try: import io as StringIO except ImportError: import cStringIO as StringIO # lint:ok # Check to see if slimit or some other minification library is installed and # Set minify equal to slimit's minify function. try: import slimit js_mi...
36.177083
91
0.512093
0
0
0
0
0
0
0
0
1,900
0.273539
db4a6abf2a3e16936115e864f7caf11878e6ba2c
9,659
py
Python
main.py
rcox771/spectrum_scanner
71559d62ca9dc9f66d66b7ada4491de42c6cdd52
[ "MIT" ]
null
null
null
main.py
rcox771/spectrum_scanner
71559d62ca9dc9f66d66b7ada4491de42c6cdd52
[ "MIT" ]
null
null
null
main.py
rcox771/spectrum_scanner
71559d62ca9dc9f66d66b7ada4491de42c6cdd52
[ "MIT" ]
null
null
null
from rtlsdr import RtlSdr from contextlib import closing from matplotlib import pyplot as plt import numpy as np from scipy.signal import spectrogram, windows from scipy import signal from skimage.io import imsave, imread from datetime import datetime import json import os from tqdm import tqdm import time from queue i...
27.997101
104
0.576871
0
0
0
0
0
0
601
0.062222
1,469
0.152086
db4a75d192569c27cd0ea38a505083fba87c919d
67
py
Python
test/__init__.py
donbowman/rdflib
c1be731c8e6bbe997cc3f25890bbaf685499c517
[ "BSD-3-Clause" ]
1,424
2015-01-04T13:10:22.000Z
2022-03-29T15:12:38.000Z
test/__init__.py
donbowman/rdflib
c1be731c8e6bbe997cc3f25890bbaf685499c517
[ "BSD-3-Clause" ]
1,148
2015-01-01T18:26:18.000Z
2022-03-31T21:51:53.000Z
test/__init__.py
jjon/rdflib
4c2ab7b392b353bf3c6088017ec9351ce8ac3db6
[ "BSD-3-Clause" ]
459
2015-01-03T14:41:34.000Z
2022-03-14T22:06:47.000Z
# import os TEST_DIR = os.path.abspath(os.path.dirname(__file__))
13.4
53
0.746269
0
0
0
0
0
0
0
0
1
0.014925
db4a91969cbd0645d892f196740aa9b468c864c7
7,333
py
Python
examples/mnist1.py
braingineer/pyromancy
7a7ab1a6835fd63b9153463dd08bb53630f15c62
[ "MIT" ]
null
null
null
examples/mnist1.py
braingineer/pyromancy
7a7ab1a6835fd63b9153463dd08bb53630f15c62
[ "MIT" ]
1
2021-03-25T22:13:53.000Z
2021-03-25T22:13:53.000Z
examples/mnist1.py
braingineer/pyromancy
7a7ab1a6835fd63b9153463dd08bb53630f15c62
[ "MIT" ]
null
null
null
from __future__ import print_function import argparse import os import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from torchvision import datasets, transforms from tqdm import tqdm from pyromancy import pyromq from pyromancy.losses import LossGroup, NegativeLogLik...
33.949074
92
0.571799
615
0.083867
0
0
0
0
0
0
1,017
0.138688
db4b0c2266fee61af6dfa6c16082c9e18c028c39
4,345
py
Python
selfdrive/locationd/calibrationd.py
matthewklinko/openpilot
b0563a59684d0901f99abbb58ac1fbd729ded1f9
[ "MIT" ]
3
2019-06-29T08:32:58.000Z
2019-09-06T15:58:03.000Z
selfdrive/locationd/calibrationd.py
matthewklinko/openpilot
b0563a59684d0901f99abbb58ac1fbd729ded1f9
[ "MIT" ]
1
2019-09-22T06:44:10.000Z
2019-09-22T06:44:10.000Z
selfdrive/locationd/calibrationd.py
matthewklinko/openpilot
b0563a59684d0901f99abbb58ac1fbd729ded1f9
[ "MIT" ]
2
2020-03-18T02:56:23.000Z
2020-05-12T16:22:31.000Z
#!/usr/bin/env python import os import copy import json import numpy as np import selfdrive.messaging as messaging from selfdrive.locationd.calibration_helpers import Calibration from selfdrive.swaglog import cloudlog from common.params import Params from common.transformations.model import model_height from common.tra...
35.325203
105
0.711853
2,524
0.580898
0
0
0
0
0
0
594
0.136709
db4b58f91ffeef6d5055943e105969fe3018f79e
24,453
py
Python
hunter/main.py
datastax-labs/hunter
3631cc3fa529991297a8b631bbae15b138cce307
[ "Apache-2.0" ]
17
2021-09-03T07:32:40.000Z
2022-03-24T21:56:22.000Z
hunter/main.py
datastax-labs/hunter
3631cc3fa529991297a8b631bbae15b138cce307
[ "Apache-2.0" ]
1
2021-12-02T14:05:07.000Z
2021-12-02T14:05:07.000Z
hunter/main.py
datastax-labs/hunter
3631cc3fa529991297a8b631bbae15b138cce307
[ "Apache-2.0" ]
2
2022-01-18T18:40:41.000Z
2022-03-11T15:33:25.000Z
import argparse import copy import logging import sys from dataclasses import dataclass from datetime import datetime, timedelta from slack_sdk import WebClient from typing import Dict, Optional, List import pytz from hunter import config from hunter.attributes import get_back_links from hunter.config import ConfigEr...
38.630332
117
0.613953
11,729
0.479655
0
0
57
0.002331
0
0
5,166
0.211262