hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
4
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
4
247
max_forks_repo_name
stringlengths
4
130
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
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
22892635c988f34b654c60f02e026254afa31ea3
6,210
py
Python
hw/rmnist.py
vihari/CSD
9902cdc8ea54f2650cd1396f904a06598a864a76
[ "MIT" ]
41
2020-05-01T10:08:26.000Z
2021-12-21T12:47:53.000Z
hw/rmnist.py
kevinbro96/CSD
9902cdc8ea54f2650cd1396f904a06598a864a76
[ "MIT" ]
6
2020-07-10T03:48:16.000Z
2021-07-21T06:49:05.000Z
hw/rmnist.py
kevinbro96/CSD
9902cdc8ea54f2650cd1396f904a06598a864a76
[ "MIT" ]
6
2020-06-07T13:57:36.000Z
2021-12-09T11:52:39.000Z
# Copyright 2015 The TensorFlow 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 applica...
36.315789
114
0.703865
# Copyright 2015 The TensorFlow 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 applica...
0
0
0
0
0
4,503
0
-4
181
4395828f7160f986e3513ec5a042011bcc7933d9
5,193
py
Python
appimagebuilder/__main__.py
mssalvatore/appimage-builder
2ecb7973cedfff9d03a21258419e515c48cafe84
[ "MIT" ]
null
null
null
appimagebuilder/__main__.py
mssalvatore/appimage-builder
2ecb7973cedfff9d03a21258419e515c48cafe84
[ "MIT" ]
null
null
null
appimagebuilder/__main__.py
mssalvatore/appimage-builder
2ecb7973cedfff9d03a21258419e515c48cafe84
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2020 Alexis Lopez Zubieta # # 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 to use, cop...
32.867089
88
0.629886
#!/usr/bin/env python3 # Copyright 2020 Alexis Lopez Zubieta # # 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 to use, cop...
0
0
0
0
0
3,974
0
168
291
c3cc1bbc8361fb79bfc3929e7c307b0d7476fa52
8,616
py
Python
python/coursera_python/IBM/FakeAlbumCoverGame.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/IBM/FakeAlbumCoverGame.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/IBM/FakeAlbumCoverGame.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
# coding: utf-8 # <div class="alert alert-block alert-info" style="margin-top: 20px"> # <a href="http://cocl.us/NotebooksPython101"><img src = "https://ibm.box.com/shared/static/yfe6h4az47ktg2mm9h05wby2n7e8kei3.png" width = 750, align = "center"></a> # <a href="https://www.bigdatauniversity.com"><img src = "https:...
36.201681
520
0.709262
# coding: utf-8 # <div class="alert alert-block alert-info" style="margin-top: 20px"> # <a href="http://cocl.us/NotebooksPython101"><img src = "https://ibm.box.com/shared/static/yfe6h4az47ktg2mm9h05wby2n7e8kei3.png" width = 750, align = "center"></a> # <a href="https://www.bigdatauniversity.com"><img src = "https:...
0
0
0
0
0
0
0
0
0
5ac1a60094da7f7d24954f092d12c53c1fb20c08
1,915
py
Python
src/create_feature_descriptor.py
gmaher/cmd_tools
27f31eadca16e5fb7e4175ff3d6dd5881bfa3e27
[ "MIT" ]
null
null
null
src/create_feature_descriptor.py
gmaher/cmd_tools
27f31eadca16e5fb7e4175ff3d6dd5881bfa3e27
[ "MIT" ]
null
null
null
src/create_feature_descriptor.py
gmaher/cmd_tools
27f31eadca16e5fb7e4175ff3d6dd5881bfa3e27
[ "MIT" ]
null
null
null
import os import json import argparse from tqdm import tqdm parser = argparse.ArgumentParser() parser.add_argument('-input') parser.add_argument('-output_dir') parser.add_argument('-override_file',type=str,default="") args = parser.parse_args() input_ = os.path.abspath(args.input) files = os.listdir(input_) files =...
25.197368
66
0.627676
import os import json import argparse import pandas as pd from tqdm import tqdm from dateutil.parser import parse def is_date_func(string): try: parse(string) return True except: return False parser = argparse.ArgumentParser() parser.add_argument('-input') parser.add_argument('-output...
0
0
0
0
0
88
0
10
68
bfaf623c08a95eaf936f8bdf7d57dc7654bcf392
1,425
py
Python
src/utils.py
uvipen/QuickDraw-AirGesture-tensorflow
377f3344e37496306d12c753794b06ddca84c3f3
[ "MIT" ]
94
2021-07-12T13:02:40.000Z
2022-02-15T10:48:57.000Z
src/utils.py
haoict/QuickDraw-AirGesture-tensorflow
3e11cf12a08d3ebf012d20ff0ebb44afdfb17bad
[ "MIT" ]
null
null
null
src/utils.py
haoict/QuickDraw-AirGesture-tensorflow
3e11cf12a08d3ebf012d20ff0ebb44afdfb17bad
[ "MIT" ]
24
2021-07-12T13:02:03.000Z
2021-12-06T09:42:45.000Z
""" @author: Viet Nguyen <nhviet1009@gmail.com> """ from collections import OrderedDict # https://github.com/tensorflow/datasets/blob/master/tensorflow_datasets/image_classification/quickdraw_labels.txt # Rule: key of category = index -1, with index from the link above CLASS_IDS = OrderedDict() CLASS_IDS[8] = "apple"...
29.6875
114
0.698246
""" @author: Viet Nguyen <nhviet1009@gmail.com> """ import cv2 import numpy as np from collections import OrderedDict # https://github.com/tensorflow/datasets/blob/master/tensorflow_datasets/image_classification/quickdraw_labels.txt # Rule: key of category = index -1, with index from the link above CLASS_IDS = Ordere...
0
0
0
0
0
596
0
-14
90
a4c89ea15ba64b8b6f264c35fcaeb76de5ace39c
6,496
py
Python
reinvent-2019/connected-photo-booth/py_client/config.py
chriscoombs/aws-builders-fair-projects
eee405931030b833fa8c51e906c73d09ce051bcd
[ "Apache-2.0" ]
null
null
null
reinvent-2019/connected-photo-booth/py_client/config.py
chriscoombs/aws-builders-fair-projects
eee405931030b833fa8c51e906c73d09ce051bcd
[ "Apache-2.0" ]
null
null
null
reinvent-2019/connected-photo-booth/py_client/config.py
chriscoombs/aws-builders-fair-projects
eee405931030b833fa8c51e906c73d09ce051bcd
[ "Apache-2.0" ]
null
null
null
__CONFIG_FILE_PATH__ = "cerebro.config" __SSM_BASE_PATH__ = "/Cerebro"
26.406504
114
0.671952
import boto3 import botocore import os import glob import json import requests from datetime import datetime from time import sleep from time import gmtime, strftime import sys, getopt import argparse import subprocess from shutil import copyfile, rmtree import logging import configparser __CONFIG_FILE_PATH__ ...
0
3,153
0
2,949
0
0
0
-40
361
56e7ca0fc7489f5c223fc37faf7817929b1b8643
2,240
py
Python
convert_hdf52recordio.py
Helmholtz-AI-Energy/mlperf-deepcam
d4869bce18029cc9877d7ed04178d6e4ca73a411
[ "MIT" ]
3
2021-11-18T20:01:35.000Z
2021-12-17T17:47:23.000Z
convert_hdf52recordio.py
Helmholtz-AI-Energy/mlperf-deepcam
d4869bce18029cc9877d7ed04178d6e4ca73a411
[ "MIT" ]
1
2022-03-16T07:29:30.000Z
2022-03-31T10:19:07.000Z
convert_hdf52recordio.py
Helmholtz-AI-Energy/mlperf-deepcam
d4869bce18029cc9877d7ed04178d6e4ca73a411
[ "MIT" ]
1
2021-11-18T01:53:25.000Z
2021-11-18T01:53:25.000Z
import argparse as ap if __name__ == "__main__": AP = ap.ArgumentParser() AP.add_argument("--input_directory", type=str, help="Directory with input files", required = True) AP.add_argument("--output_directory", type=str, help="Directory for output files", required = True) AP.add_argumen...
29.473684
131
0.647768
import os import sys import glob import h5py as h5 import numpy as np import math import argparse as ap import mxnet as mx from mpi4py import MPI def filter_func(item, lst): item = os.path.basename(item).replace(".h5", ".npy") return item not in lst def read(ifname): with h5.File(ifname, 'r') as f: ...
0
0
0
0
0
1,594
0
-52
245
ea7ea6e4956da5520f3970ca5834c2b81388da01
754
py
Python
setup.py
nkennek/pytorch-cnn-visualizations
54699710b1beae1edae4bc12e9403080191c40ed
[ "MIT" ]
null
null
null
setup.py
nkennek/pytorch-cnn-visualizations
54699710b1beae1edae4bc12e9403080191c40ed
[ "MIT" ]
null
null
null
setup.py
nkennek/pytorch-cnn-visualizations
54699710b1beae1edae4bc12e9403080191c40ed
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name='pytorch-cnn-visualization', version='0.0', description='pytorch implementation of CNN visualization techniques', packages=find_packages(), include_package_data=True, install_requires=[ ...
21.542857
73
0.485411
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name='pytorch-cnn-visualization', version='0.0', description='pytorch implementation of CNN visualization techniques', packages=find_packages(), include_package_data=True, install_requires=[ ...
0
0
0
0
0
0
0
0
0
eef9139890c2b1751504590b390a2fe9c136409e
3,840
py
Python
replication_handler/models/mysql_dumps.py
ywlianghang/mysql_streamer
7fc85efaca3db6a387ea4b791632c2df2d04cb3e
[ "Apache-2.0" ]
419
2016-11-17T18:41:47.000Z
2022-03-14T02:50:02.000Z
replication_handler/models/mysql_dumps.py
ywlianghang/mysql_streamer
7fc85efaca3db6a387ea4b791632c2df2d04cb3e
[ "Apache-2.0" ]
19
2016-11-30T18:09:00.000Z
2019-04-02T06:20:02.000Z
replication_handler/models/mysql_dumps.py
ywlianghang/mysql_streamer
7fc85efaca3db6a387ea4b791632c2df2d04cb3e
[ "Apache-2.0" ]
90
2016-11-23T06:26:20.000Z
2022-01-22T09:24:42.000Z
# -*- coding: utf-8 -*- # Copyright 2016 Yelp Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
33.982301
81
0.654167
# -*- coding: utf-8 -*- # Copyright 2016 Yelp Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
0
2,381
0
455
0
0
0
58
181
38a4e46d7b35ffafb2edb463735f6e74a3e69b52
12,614
py
Python
mordred/_base/calculator.py
zhengfj1994/mordred
2848b088fd7b6735590242b5e22573babc724f10
[ "BSD-3-Clause" ]
1
2019-09-12T03:38:47.000Z
2019-09-12T03:38:47.000Z
mordred/_base/calculator.py
zhengfj1994/mordred
2848b088fd7b6735590242b5e22573babc724f10
[ "BSD-3-Clause" ]
null
null
null
mordred/_base/calculator.py
zhengfj1994/mordred
2848b088fd7b6735590242b5e22573babc724f10
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import warnings from types import ModuleType from .._util import DummyBar from .descriptor import is_descriptor_class try: from tqdm import tqdm from .._util import NotebookWrapper except ImportError: tqdm = NotebookWrapper = DummyBar def get_descriptors_from_module...
27.968958
99
0.570002
from __future__ import print_function import sys import warnings from types import ModuleType from contextlib import contextmanager from multiprocessing import cpu_count from distutils.version import StrictVersion from .result import Result from .._util import Capture, DummyBar from ..error import Error, Missing, Mul...
0
1,293
0
8,976
744
0
0
170
224
cea0480cc90d81ea261b1a8a170bb14ba568725e
584
py
Python
tests/type/any_type/test_equality.py
llambeau/finitio.py
27c2799709993c6edb9d9038290792ed90a97346
[ "0BSD" ]
1
2016-02-06T17:16:22.000Z
2016-02-06T17:16:22.000Z
tests/type/any_type/test_equality.py
llambeau/finitio.py
27c2799709993c6edb9d9038290792ed90a97346
[ "0BSD" ]
null
null
null
tests/type/any_type/test_equality.py
llambeau/finitio.py
27c2799709993c6edb9d9038290792ed90a97346
[ "0BSD" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_equality ---------------------------------- Tests for the `AnyType` __eq__ method """ import unittest if __name__ == '__main__': import sys sys.exit(unittest.main())
19.466667
73
0.672945
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_equality ---------------------------------- Tests for the `AnyType` __eq__ method """ import unittest from finitio.types import AnyType class TestAnyTypeEq(unittest.TestCase): _type = AnyType() _type2 = AnyType() def test_it_should_apply_structu...
0
0
0
292
0
0
0
12
46
7418a9ede9105dcc2f6808eb0451d86e1f5d6771
2,294
py
Python
PARAMETERS.py
sk-stm/banana_project
56423e0b516297652eb402a4a70559b2afd8c8a1
[ "MIT" ]
null
null
null
PARAMETERS.py
sk-stm/banana_project
56423e0b516297652eb402a4a70559b2afd8c8a1
[ "MIT" ]
null
null
null
PARAMETERS.py
sk-stm/banana_project
56423e0b516297652eb402a4a70559b2afd8c8a1
[ "MIT" ]
null
null
null
# # DQN agent # # agent hyper parameters # N_EPISODES = 2000 # how many episodes to train # MAX_T = 10000 # maximum steps per episode # EPS_START = 1.0 # start values of epsilon (for epsilon greedy exploration) # EPS_END = 0.01 # minimum value of epsilon # EPS_DECAY = 0.995 # decay rate of epsilon new_eps = old_ep...
34.757576
88
0.723627
# # DQN agent # # agent hyper parameters # N_EPISODES = 2000 # how many episodes to train # MAX_T = 10000 # maximum steps per episode # EPS_START = 1.0 # start values of epsilon (for epsilon greedy exploration) # EPS_END = 0.01 # minimum value of epsilon # EPS_DECAY = 0.995 # decay rate of epsilon new_eps = old_ep...
0
0
0
0
0
0
0
0
0
c08004c116c9dc2c7e5db2068d81bd9605d565f8
2,495
py
Python
dataset_scripts/xml_detects_creator.py
shpotes/self-driving-car
7329e6213c483a7695ab4e97cf16c93ce6d0b25f
[ "MIT" ]
1
2019-06-02T22:27:31.000Z
2019-06-02T22:27:31.000Z
dataset_scripts/xml_detects_creator.py
shpotes/self-driving-car
7329e6213c483a7695ab4e97cf16c93ce6d0b25f
[ "MIT" ]
null
null
null
dataset_scripts/xml_detects_creator.py
shpotes/self-driving-car
7329e6213c483a7695ab4e97cf16c93ce6d0b25f
[ "MIT" ]
null
null
null
# import dlib if __name__ == '__main__': main()
28.352273
105
0.644088
import imutils # import dlib import cv2 import datetime import glob import sys def main(): # construct the argument parser and parse the arguments # initialize dlib's face detector (HOG-based) and then create # the facial landmark predictor #detector = dlib.get_frontal_face_detector() #predictor = dlib.shape_pre...
0
0
0
0
0
2,356
0
-45
133
4014f038ccad19cb9b43c7a5f154e829057d1c39
443
py
Python
app.py
0xAurelius/playgrounds
510bea031df6079e060b1bf3ba7399d45d00e050
[ "MIT" ]
null
null
null
app.py
0xAurelius/playgrounds
510bea031df6079e060b1bf3ba7399d45d00e050
[ "MIT" ]
4
2021-11-17T20:18:55.000Z
2022-01-12T18:06:58.000Z
app.py
0xAurelius/playgrounds
510bea031df6079e060b1bf3ba7399d45d00e050
[ "MIT" ]
null
null
null
import dash import dash_bootstrap_components as dbc from utils import load_config config = load_config() protocol = config['protocol'] app = dash.Dash( __name__, external_stylesheets=[dbc.themes.DARKLY], suppress_callback_exceptions=True, title=f"{protocol} Playgrounds", meta_tags=[{ 'nam...
23.315789
97
0.69526
import dash import dash_bootstrap_components as dbc from utils import load_config config = load_config() protocol = config['protocol'] app = dash.Dash( __name__, external_stylesheets=[dbc.themes.DARKLY], suppress_callback_exceptions=True, title=f"{protocol} Playgrounds", meta_tags=[{ 'nam...
0
0
0
0
0
0
0
0
0
ccef29cabcdead762aa3b1c5fa4b620d44ce3602
337
py
Python
Codewars/8kyu/geometry-basics-circle-area-in-2d/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
7
2017-09-20T16:40:39.000Z
2021-08-31T18:15:08.000Z
Codewars/8kyu/geometry-basics-circle-area-in-2d/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
Codewars/8kyu/geometry-basics-circle-area-in-2d/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
# Python - 3.6.0 test.assert_equals(round(circle_area(Circle(Point(10, 10), 30)), 6), 2827.433388) test.assert_equals(round(circle_area(Circle(Point(25, -70), 30)), 6), 2827.433388) test.assert_equals(round(circle_area(Circle(Point(-15, 5), 0)), 6), 0) test.assert_equals(round(circle_area(Circle(Point(-15, 5), 12.5)),...
48.142857
82
0.715134
# Python - 3.6.0 test.assert_equals(round(circle_area(Circle(Point(10, 10), 30)), 6), 2827.433388) test.assert_equals(round(circle_area(Circle(Point(25, -70), 30)), 6), 2827.433388) test.assert_equals(round(circle_area(Circle(Point(-15, 5), 0)), 6), 0) test.assert_equals(round(circle_area(Circle(Point(-15, 5), 12.5)),...
0
0
0
0
0
0
0
0
0
2ecce8e6510586c097a7c41d462e2fca1a437b5d
1,663
py
Python
paddlenlp/taskflow/utils.py
a5116638/PaddleNLP
37a95ae3c0d317aff09f76f79484208354db1e36
[ "Apache-2.0" ]
1
2021-09-29T06:05:13.000Z
2021-09-29T06:05:13.000Z
paddlenlp/taskflow/utils.py
svs1984/PaddleNLP
9eb9e23b01d044706c789158ac6cf0d365aea848
[ "Apache-2.0" ]
null
null
null
paddlenlp/taskflow/utils.py
svs1984/PaddleNLP
9eb9e23b01d044706c789158ac6cf0d365aea848
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 # Copyright (c) 2021 PaddlePaddle 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 req...
39.595238
104
0.725195
# coding:utf-8 # Copyright (c) 2021 PaddlePaddle 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 req...
0
0
0
0
0
0
0
0
0
37932ce90f945a2abf6aae9ca6759bd8c18500f4
13,160
py
Python
build.py
secure-foundations/veri-titan
f7e4b434fd2ab85642aeb1fc4d7c34c28c678d3c
[ "MIT" ]
10
2020-06-26T17:14:49.000Z
2022-03-31T16:29:01.000Z
build.py
secure-foundations/veri-titan
f7e4b434fd2ab85642aeb1fc4d7c34c28c678d3c
[ "MIT" ]
2
2021-04-06T14:06:34.000Z
2022-03-09T00:01:14.000Z
build.py
secure-foundations/veri-titan
f7e4b434fd2ab85642aeb1fc4d7c34c28c678d3c
[ "MIT" ]
4
2020-06-11T02:39:15.000Z
2022-01-27T09:46:08.000Z
#!/usr/bin/env python import re TOOLS_DIR = "./tools" DAFNY_PATH = "./tools/dafny/dafny" VALE_PATH = "./tools/vale/bin/vale" DAFNY_LIB_DIR = "./std_lib" DAFNY_LIB_HASH = "84d160538b6442017a5401feb91265147bf34bfc" DAFNY_ZIP_LINUX = "dafny-3.0.0-x64-ubuntu-16.04.zip" DAFNY_ZIP_MACOS = "dafny-3.0.0-x64-osx-10.14.2.zip...
31.111111
150
0.629027
#!/usr/bin/env python import sys, os, subprocess, re, platform from subprocess import PIPE, Popen from os.path import exists TOOLS_DIR = "./tools" DAFNY_PATH = "./tools/dafny/dafny" VALE_PATH = "./tools/vale/bin/vale" DAFNY_LIB_DIR = "./std_lib" DAFNY_LIB_HASH = "84d160538b6442017a5401feb91265147bf34bfc" DAFNY_ZIP_...
0
0
0
2,447
0
8,955
0
49
481
c014c57708ea670205d0e1b85a67761597da2bbc
2,701
py
Python
test.py
emboiko/Socket_Singleton
e44e8230daa5167c92f9519c73a2374a3d279cbc
[ "MIT" ]
1
2021-08-01T06:12:49.000Z
2021-08-01T06:12:49.000Z
test.py
emboiko/Socket_Singleton
e44e8230daa5167c92f9519c73a2374a3d279cbc
[ "MIT" ]
null
null
null
test.py
emboiko/Socket_Singleton
e44e8230daa5167c92f9519c73a2374a3d279cbc
[ "MIT" ]
null
null
null
import unittest if __name__ == "__main__": unittest.main()
31.045977
86
0.670863
import unittest from time import sleep from subprocess import run from src.Socket_Singleton import Socket_Singleton, MultipleSingletonsError class TestMain(unittest.TestCase): def setUp(self): self.app = Socket_Singleton() self.traced_args = [] def test_default(self): result = run("t...
0
0
0
2,487
0
0
0
59
89
14c7ea14a7df31fd177851177e74b5d33195f582
533
py
Python
Wikipedia search.py
Behordeun/simple-python-projects
c2d088a2c1ebd842ca4d9817d569da4fd6b7f637
[ "Apache-2.0" ]
1
2021-09-09T10:55:23.000Z
2021-09-09T10:55:23.000Z
Wikipedia search.py
Behordeun/simple-python-projects
c2d088a2c1ebd842ca4d9817d569da4fd6b7f637
[ "Apache-2.0" ]
null
null
null
Wikipedia search.py
Behordeun/simple-python-projects
c2d088a2c1ebd842ca4d9817d569da4fd6b7f637
[ "Apache-2.0" ]
null
null
null
root = Tk() root.title("Wikipedia Search") root.geometry("400x400") frame = Frame(root) input = Entry(frame, width = 30) input.pack() result = "" text = Text(root, font = ("arial", 20)) button = Button(frame, text="Search", command=search) button.pack(side = RIGHT) frame.pack(side = TOP) text.pack() root.mainloop()
21.32
53
0.69606
from tensorboard import summary from tkinter import * import wikipedia root = Tk() root.title("Wikipedia Search") root.geometry("400x400") frame = Frame(root) input = Entry(frame, width = 30) input.pack() result = "" text = Text(root, font = ("arial", 20)) def search(): global result result = input.get() ...
0
0
0
0
0
120
0
5
89
7afd3df22ba47b8d1930eeb3a5534f705fbda846
456
py
Python
students/k3342/laboratory_works/Kocheshkova_Kseniia/laboratory_work_1/flights/migrations/0004_auto_20201101_2206.py
Derimeer/ITMO_ICT_WebProgramming_2020
afb4999d20d59c5d47e4f380e8ba06204a42c729
[ "MIT" ]
null
null
null
students/k3342/laboratory_works/Kocheshkova_Kseniia/laboratory_work_1/flights/migrations/0004_auto_20201101_2206.py
Derimeer/ITMO_ICT_WebProgramming_2020
afb4999d20d59c5d47e4f380e8ba06204a42c729
[ "MIT" ]
null
null
null
students/k3342/laboratory_works/Kocheshkova_Kseniia/laboratory_work_1/flights/migrations/0004_auto_20201101_2206.py
Derimeer/ITMO_ICT_WebProgramming_2020
afb4999d20d59c5d47e4f380e8ba06204a42c729
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-11-01 19:06
24
120
0.596491
# Generated by Django 3.1.2 on 2020-11-01 19:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('flights', '0003_flight_number_flight'), ] operations = [ migrations.AlterField( model_name='flight', name='type', ...
0
0
0
342
0
0
0
19
46
ed46fa2cc80b4b07d8ccd05414bb5d2f39219bbd
14,476
py
Python
ddnet/ddnet.py
fzqneo/DD-Net
bde4c01d7378582dfa84f98a3affa84931f64ca1
[ "MIT" ]
null
null
null
ddnet/ddnet.py
fzqneo/DD-Net
bde4c01d7378582dfa84f98a3affa84931f64ca1
[ "MIT" ]
null
null
null
ddnet/ddnet.py
fzqneo/DD-Net
bde4c01d7378582dfa84f98a3affa84931f64ca1
[ "MIT" ]
null
null
null
import numpy as np import scipy.ndimage.interpolation as inter from scipy.signal import medfilt from scipy.spatial.distance import cdist ####################################################### ## Public functions ####################################################### #################################################...
32.677201
133
0.579649
import numpy as np import scipy.ndimage.interpolation as inter import tensorflow as tf from keras import backend as K from keras import regularizers from keras.layers import * from keras.layers.convolutional import * from keras.layers.core import * from keras.models import Model, load_model from keras.optimizers import...
0
2,592
0
2,570
0
3,281
0
84
506
758c8e0bb0787b888692896184c923a6e803e43e
1,188
py
Python
tests/flask/test_template.py
odahu/odahuPackager
35839d257c7a471541026bb9418072110190d29f
[ "ECL-2.0", "Apache-2.0" ]
7
2020-01-27T12:44:54.000Z
2021-07-21T02:22:26.000Z
tests/flask/test_template.py
odahu/odahuPackager
35839d257c7a471541026bb9418072110190d29f
[ "ECL-2.0", "Apache-2.0" ]
19
2019-11-28T18:45:27.000Z
2022-01-14T08:41:09.000Z
tests/flask/test_template.py
odahu/odahuPackager
35839d257c7a471541026bb9418072110190d29f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2020 EPAM 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 applicable law or agreed to in writin...
36
80
0.740741
# Copyright 2020 EPAM 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 applicable law or agreed to in writin...
0
0
0
0
0
441
0
96
68
b4d3f9914e42a85151f9ba1a4493866d2ca72d28
536
py
Python
test/ResultsAndPrizes/zodiac/test_zodiac_results_of_the_last_draw.py
FearFactor1/SPA
a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7
[ "Apache-2.0" ]
1
2019-12-05T06:50:54.000Z
2019-12-05T06:50:54.000Z
test/ResultsAndPrizes/zodiac/test_zodiac_results_of_the_last_draw.py
FearFactor1/SPA
a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7
[ "Apache-2.0" ]
null
null
null
test/ResultsAndPrizes/zodiac/test_zodiac_results_of_the_last_draw.py
FearFactor1/SPA
a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7
[ "Apache-2.0" ]
null
null
null
# +
41.230769
82
0.826493
# зодиак + Результаты последнего тиража def test_zodiac_results_last_draw(app): app.ResultAndPrizes.open_page_results_and_prizes() app.ResultAndPrizes.click_game_zodiac() app.ResultAndPrizes.click_results_of_the_last_draw() app.ResultAndPrizes.button_get_report_winners() app.ResultAndPrizes.parse...
96
0
0
0
0
456
0
0
23
066863fb285e7985e22baf254e538f1c8ce1832e
2,082
py
Python
src/lobster.py
gdifiore/lobster
ca556ee70ad579b95ac78d525233e0b851cbeb53
[ "MIT" ]
null
null
null
src/lobster.py
gdifiore/lobster
ca556ee70ad579b95ac78d525233e0b851cbeb53
[ "MIT" ]
null
null
null
src/lobster.py
gdifiore/lobster
ca556ee70ad579b95ac78d525233e0b851cbeb53
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # lobster.py - lobster # # (c) gdifiore 2018 <difioregabe@gmail.com> # import sys type = sys.argv[1] file = sys.argv[2] theme = sys.argv[3] if type == "simple": lobster_data = readJSON(file) title = getTitle(lobster_data) header = getHeader(lobster_data) content= getContent(lo...
28.520548
62
0.612872
#!/usr/bin/env python # # lobster.py - lobster # # (c) gdifiore 2018 <difioregabe@gmail.com> # import os import sys import json from lobster_json import * from bs4 import BeautifulSoup type = sys.argv[1] file = sys.argv[2] theme = sys.argv[3] if type == "simple": def writeToHTML(title, header, content): ...
0
0
0
0
0
1,234
0
-9
141
b41b891967812c7db46e79974d3319938dfddaf5
573
py
Python
lib/nms_cython/setup.py
PJunhyuk/exercise-pose-guide
a2793ede6b150e5ae20185e14f8b4ad3a08f4196
[ "Apache-2.0" ]
161
2018-02-22T15:15:47.000Z
2022-02-10T16:40:06.000Z
Chapter04/lib/nms_cython/setup.py
mayurmorin/Computer-Vision-Projects-with-OpenCV-and-Python-3
bf9041d2804fd76d6a59a8b6f2feb8d50f80c9d3
[ "MIT" ]
15
2018-03-01T23:18:00.000Z
2021-05-15T06:23:15.000Z
Chapter04/lib/nms_cython/setup.py
mayurmorin/Computer-Vision-Projects-with-OpenCV-and-Python-3
bf9041d2804fd76d6a59a8b6f2feb8d50f80c9d3
[ "MIT" ]
41
2018-03-01T13:03:54.000Z
2022-02-17T14:32:22.000Z
from setuptools import setup from Cython.Build import cythonize from distutils.extension import Extension import numpy as np #openmp_arg = '-fopenmp' #if _platform == "win32": # openmp_arg = '-openmp' extensions = [ Extension( 'nms_grid', ['nms_grid.pyx'], language="c++", include_dirs=[np.get_include...
22.038462
69
0.673647
from setuptools import setup from Cython.Build import cythonize from distutils.extension import Extension from sys import platform as _platform import os import numpy as np #openmp_arg = '-fopenmp' #if _platform == "win32": # openmp_arg = '-openmp' extensions = [ Extension( 'nms_grid', ['nms_grid.pyx'], ...
0
0
0
0
0
0
0
4
44
85fd73311ab29b216fc7b92dd55084fe9aacf91e
9,815
py
Python
test/test_union.py
Mortal/scalgoproto
b9acfbdcf7cc75d6b673fde64ecd94dbe56738a8
[ "MIT" ]
null
null
null
test/test_union.py
Mortal/scalgoproto
b9acfbdcf7cc75d6b673fde64ecd94dbe56738a8
[ "MIT" ]
26
2018-11-18T19:38:09.000Z
2020-04-14T03:31:06.000Z
test/test_union.py
Mortal/scalgoproto
b9acfbdcf7cc75d6b673fde64ecd94dbe56738a8
[ "MIT" ]
2
2019-01-03T16:08:15.000Z
2019-09-23T05:16:55.000Z
# -*- mode: python: return False tab-width: 4: return False indent-tabs-mode: nil: return False python-indent-offset: 4: return False coding: utf-8 -*- if __name__ == "__main__": main()
30.576324
151
0.576872
# -*- mode: python: return False tab-width: 4: return False indent-tabs-mode: nil: return False python-indent-offset: 4: return False coding: utf-8 -*- import sys import scalgoproto import union from test_base import require2, require, read_in, validate_out, get_v, require_some def for_copy() -> union.Table3In: w...
0
0
0
0
0
9,400
0
39
180
77ed1d01a8b54b550a0d5ac17cedf2c08e1e0481
6,880
py
Python
rrc scripts/scripts/networkRGAN.py
wq13552463699/Real_Robot_Challenge_Phase2_AE_attemp
280736589077a2179254099ddaf2327752d9321c
[ "MIT" ]
1
2021-11-02T10:48:55.000Z
2021-11-02T10:48:55.000Z
rrc scripts/scripts/networkRGAN.py
wq13552463699/Real_Robot_Challenge_Phase2_AE_attemp
280736589077a2179254099ddaf2327752d9321c
[ "MIT" ]
null
null
null
rrc scripts/scripts/networkRGAN.py
wq13552463699/Real_Robot_Challenge_Phase2_AE_attemp
280736589077a2179254099ddaf2327752d9321c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Aug 12 05:31:02 2021 @author: 14488 """ import torch import torch.nn as nn import torch.nn.parallel import torch.optim as optim asize = 1 ''' Generator network for 128x128 RGB images ''' ''' Discriminator network for 128x128 RGB images ''' # class...
32
105
0.461483
# -*- coding: utf-8 -*- """ Created on Thu Aug 12 05:31:02 2021 @author: 14488 """ import torch import torch.nn as nn import torch.nn.parallel import torch.optim as optim from torch.autograd import Variable import torch import rrc_example_package.scripts.convolutional_rnn from torch.nn.utils.rnn impor...
0
0
0
5,321
0
246
0
66
325
f7a85f4ba484b62374b57b5478bfaa096d4ed62c
1,021
py
Python
Python/text_to_speech.py
BlackTimber-Labs/DemoPr
6495b5307323ce17be5071006f1de90a1120edf4
[ "MIT" ]
10
2021-10-01T15:11:27.000Z
2021-10-03T10:41:36.000Z
Python/text_to_speech.py
BlackTimber-Labs/DemoPr
6495b5307323ce17be5071006f1de90a1120edf4
[ "MIT" ]
102
2021-10-01T14:49:50.000Z
2021-10-31T17:30:15.000Z
Python/text_to_speech.py
BlackTimber-Labs/DemoPr
6495b5307323ce17be5071006f1de90a1120edf4
[ "MIT" ]
88
2021-10-01T14:28:10.000Z
2021-10-31T12:02:42.000Z
# Import the gTTS module for text # to speech conversion from gtts import gTTS # This module is imported so that we can # play the converted audio from playsound import playsound # It is a text value that we want to convert to audio text_val = 'Welcome to hacktoberfest 21.Hacktoberfest, in its 8t...
37.814815
313
0.740451
# Import the gTTS module for text # to speech conversion from gtts import gTTS # This module is imported so that we can # play the converted audio from playsound import playsound # It is a text value that we want to convert to audio text_val = 'Welcome to hacktoberfest 21.Hacktoberfest, in its 8t...
0
0
0
0
0
0
0
0
0
f224bda332d1ba774feb2b9787bb81d6d7f8b0a1
384
py
Python
pytmc/__init__.py
jsheppard95/pytmc
d9383d104393d67df54f5c43cb6a2d552405d5f8
[ "BSD-3-Clause-LBNL" ]
null
null
null
pytmc/__init__.py
jsheppard95/pytmc
d9383d104393d67df54f5c43cb6a2d552405d5f8
[ "BSD-3-Clause-LBNL" ]
null
null
null
pytmc/__init__.py
jsheppard95/pytmc
d9383d104393d67df54f5c43cb6a2d552405d5f8
[ "BSD-3-Clause-LBNL" ]
null
null
null
import logging from ._version import get_versions # noqa from .xml_obj import Symbol, DataType, SubItem # noqa from .xml_collector import TmcFile # noqa from . import epics # noqa logger = logging.getLogger(__name__) __version__ = get_versions()['version'] del get_versions __all__ = [ 'DataType', 'SubI...
17.454545
54
0.684896
import logging from ._version import get_versions # noqa from .xml_obj import Symbol, DataType, SubItem # noqa from .xml_collector import TmcFile # noqa from . import epics # noqa logger = logging.getLogger(__name__) __version__ = get_versions()['version'] del get_versions __all__ = [ 'DataType', 'SubI...
0
0
0
0
0
0
0
0
0
c065834fb36e57bb45b56bc2d41ed8afa0ca7ba6
15,194
py
Python
tests/test_plot.py
chrisburr/hist
d10132ab8d03f41152f0b934a18291ce699453b2
[ "BSD-3-Clause" ]
null
null
null
tests/test_plot.py
chrisburr/hist
d10132ab8d03f41152f0b934a18291ce699453b2
[ "BSD-3-Clause" ]
null
null
null
tests/test_plot.py
chrisburr/hist
d10132ab8d03f41152f0b934a18291ce699453b2
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from hist import Hist, NamedHist, axis import pytest import numpy as np unp = pytest.importorskip("uncertainties.unumpy") plt = pytest.importorskip("matplotlib.pyplot") def test_general_plot1d(): """ Test general plot1d -- whether 1d-Hist can be plotted properly. """ h = His...
25.97265
87
0.561735
# -*- coding: utf-8 -*- from hist import Hist, NamedHist, axis import pytest import numpy as np unp = pytest.importorskip("uncertainties.unumpy") plt = pytest.importorskip("matplotlib.pyplot") def test_general_plot1d(): """ Test general plot1d -- whether 1d-Hist can be plotted properly. """ h = His...
0
0
0
0
0
344
0
0
54
6a2d2f548e7bfb36954f0ec0ef6f275ccfc9aa16
1,966
py
Python
resources/PTZgrid/calcInitialCond.py
sebalander/sebaPhD
0260094bd5143843ef372ce52aceb568834f90f4
[ "BSD-3-Clause" ]
6
2017-10-03T15:10:14.000Z
2020-08-06T06:39:14.000Z
resources/PTZgrid/calcInitialCond.py
sebalander/sebaPhD
0260094bd5143843ef372ce52aceb568834f90f4
[ "BSD-3-Clause" ]
1
2017-02-09T21:13:13.000Z
2017-02-09T21:13:13.000Z
resources/PTZgrid/calcInitialCond.py
sebalander/sebaPhD
0260094bd5143843ef372ce52aceb568834f90f4
[ "BSD-3-Clause" ]
4
2017-02-09T19:46:00.000Z
2019-11-21T12:47:55.000Z
# -*- coding: utf-8 -*- """ Created on Wed Jul 20 20:21:33 2016 generate the camera's pose conditions by hand @author: sebalander """ # %% import cv2 import numpy as np import numpy.linalg as lin from scipy.linalg import sqrtm, inv import matplotlib.pyplot as plt # %% tVecFile = "PTZsheetTvecInitial.npy" rVecFile ...
21.844444
72
0.61648
# -*- coding: utf-8 -*- """ Created on Wed Jul 20 20:21:33 2016 generate the camera's pose conditions by hand @author: sebalander """ # %% import cv2 import numpy as np import numpy.linalg as lin from scipy.linalg import sqrtm, inv import matplotlib.pyplot as plt # %% tVecFile = "PTZsheetTvecInitial.npy" rVecFile ...
0
0
0
0
0
0
0
18
22
b6dd96934dde46ba7c8e268255f6ccb3b47bf7e8
985
py
Python
setup.py
MrIncredibuell/clerius
e3f482754892ae32b3862d2a283b54d4ed955b9a
[ "MIT" ]
null
null
null
setup.py
MrIncredibuell/clerius
e3f482754892ae32b3862d2a283b54d4ed955b9a
[ "MIT" ]
null
null
null
setup.py
MrIncredibuell/clerius
e3f482754892ae32b3862d2a283b54d4ed955b9a
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="clericus", version="0.0.3a27", author="Joseph L Buell V", author_email="jlrbuellv@gmail.com", description= "An async webserver focused on being predictable and self documenting.", ...
28.970588
76
0.59797
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="clericus", version="0.0.3a27", author="Joseph L Buell V", author_email="jlrbuellv@gmail.com", description= "An async webserver focused on being predictable and self documenting.", ...
0
0
0
0
0
0
0
0
0
b98e6632fd9bb96d3dde1a83e1c4c80e452a716a
1,433
py
Python
test/make_global_settings/env-wrapper/gyptest-wrapper.py
Herjar/gyp
4d467626b0b9f59a85fb81ca4d7ea9eca99b9d8f
[ "BSD-3-Clause" ]
75
2015-02-03T14:54:27.000Z
2022-03-24T06:44:38.000Z
test/make_global_settings/env-wrapper/gyptest-wrapper.py
Herjar/gyp
4d467626b0b9f59a85fb81ca4d7ea9eca99b9d8f
[ "BSD-3-Clause" ]
3
2016-08-22T10:35:24.000Z
2019-07-16T19:47:20.000Z
test/make_global_settings/env-wrapper/gyptest-wrapper.py
Herjar/gyp
4d467626b0b9f59a85fb81ca4d7ea9eca99b9d8f
[ "BSD-3-Clause" ]
43
2015-02-02T04:26:11.000Z
2021-09-07T06:06:58.000Z
#!/usr/bin/env python # Copyright (c) 2013 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Verifies *_wrapper in environment. """ import os import sys import TestGyp print "This test is currently disabled: https://crbug.com/4...
28.66
79
0.651779
#!/usr/bin/env python # Copyright (c) 2013 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Verifies *_wrapper in environment. """ import os import sys import TestGyp print "This test is currently disabled: https://crbug.com/4...
0
0
0
0
0
0
0
0
0
9ba00e9b29b3ca03c6563bbca721e5ab24550cd4
469
py
Python
mesonet/__init__.py
bf777/MesoNet
87cd631e72fc2af596f97aa2b73f8e57b0cc27e6
[ "CC-BY-4.0" ]
2
2021-08-02T21:04:52.000Z
2021-11-10T07:00:40.000Z
mesonet/__init__.py
bf777/MesoNet
87cd631e72fc2af596f97aa2b73f8e57b0cc27e6
[ "CC-BY-4.0" ]
2
2021-12-02T10:47:00.000Z
2022-03-07T20:28:11.000Z
mesonet/__init__.py
bf777/MesoNet
87cd631e72fc2af596f97aa2b73f8e57b0cc27e6
[ "CC-BY-4.0" ]
null
null
null
""" MesoNet Authors: Brandon Forys and Dongsheng Xiao, Murphy Lab https://github.com/bf777/MesoNet Licensed under the Creative Commons Attribution 4.0 International License (see LICENSE for details) """ # __init__.py
33.5
99
0.835821
""" MesoNet Authors: Brandon Forys and Dongsheng Xiao, Murphy Lab https://github.com/bf777/MesoNet Licensed under the Creative Commons Attribution 4.0 International License (see LICENSE for details) """ # __init__.py from mesonet.utils import * from mesonet.dlc_predict import predict_dlc from mesonet.predict_regions im...
0
0
0
0
0
0
0
120
132
a54e4fcb9e12dd8b283e1118efefe5930ce03899
3,362
py
Python
src/kayako/objects/custom_field.py
iXsystems/kayako-python-api-library
5c43ae331904eac1a66301e2f40d29a4e52fd49d
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/kayako/objects/custom_field.py
iXsystems/kayako-python-api-library
5c43ae331904eac1a66301e2f40d29a4e52fd49d
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/kayako/objects/custom_field.py
iXsystems/kayako-python-api-library
5c43ae331904eac1a66301e2f40d29a4e52fd49d
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- #----------------------------------------------------------------------------- # Copyright (c) 2014, Ravi Sharma # # Distributed under the terms of the Lesser GNU General Public License (LGPL) #----------------------------------------------------------------------------- ''' Created on Feb 26, 2...
35.020833
126
0.680845
# -*- coding: utf-8 -*- #----------------------------------------------------------------------------- # Copyright (c) 2014, Ravi Sharma # # Distributed under the terms of the Lesser GNU General Public License (LGPL) #----------------------------------------------------------------------------- ''' Created on Feb 26, 2...
0
1,418
0
1,396
0
0
0
91
113
d6b30d1e7120d3e587e3c5909ed90c9d5af02c07
10,584
py
Python
server/api/composer.py
notantony/Grid-Anchor-based-Image-Cropping-Pytorch
32a2dea9151c123c8e589bd196450f56cf3ef7d1
[ "MIT" ]
null
null
null
server/api/composer.py
notantony/Grid-Anchor-based-Image-Cropping-Pytorch
32a2dea9151c123c8e589bd196450f56cf3ef7d1
[ "MIT" ]
null
null
null
server/api/composer.py
notantony/Grid-Anchor-based-Image-Cropping-Pytorch
32a2dea9151c123c8e589bd196450f56cf3ef7d1
[ "MIT" ]
null
null
null
# # -*- coding: utf-8 -*- from PIL import Image from server.api.utils import read_image cat_data = read_image('./input/obj/cat.png') cat_obj = ObjImg(cat_data, "cat", "object;grounded", size_ratio=0.4, well_cropped=False) dog_data = read_image('./input/obj/dog.png') dog_obj = ObjImg(dog_data, "dog", "object;groun...
39.492537
123
0.614512
# # -*- coding: utf-8 -*- import math import random import numpy as np import heapq from io import BytesIO from PIL import Image, ImageOps from server.api.crop_suggestor import CropSuggestorModel from server.api.utils import compress_bg, read_image, nd_deserialize, np_isground, tiling_range, n_dim_iter, \ np_b...
0
0
0
6,186
0
1,107
0
113
315
9e2027a2a9cfcdbe7245e5fcb4e81bbb8703a867
3,726
py
Python
sims/s130/plot-double-shear-cmp.py
ammarhakim/ammar-simjournal
85b64ddc9556f01a4fab37977864a7d878eac637
[ "MIT", "Unlicense" ]
1
2019-12-19T16:21:13.000Z
2019-12-19T16:21:13.000Z
sims/s130/plot-double-shear-cmp.py
ammarhakim/ammar-simjournal
85b64ddc9556f01a4fab37977864a7d878eac637
[ "MIT", "Unlicense" ]
null
null
null
sims/s130/plot-double-shear-cmp.py
ammarhakim/ammar-simjournal
85b64ddc9556f01a4fab37977864a7d878eac637
[ "MIT", "Unlicense" ]
2
2020-01-08T06:23:33.000Z
2020-01-08T07:06:50.000Z
import pylab import tables import math import numpy fig = pylab.figure(2) tr_125 = pylab.loadtxt('../s125/s125-double-shear_totalEnergy') tr_129 = pylab.loadtxt('../s129/s129-double-shear_totalEnergy') tr_130 = pylab.loadtxt('../s130/s130-double-shear_totalEnergy') refTe = tr_125[0,1] pylab.plot(tr_125[:,0], tr_125[...
26.055944
107
0.506978
import pylab import tables import math import numpy def projectOnFinerGrid(Xc, Yc, q): dx = Xc[1]-Xc[0] dy = Yc[1]-Yc[0] nx = Xc.shape[0] ny = Yc.shape[0] # mesh coordinates Xn = pylab.zeros((2*Xc.shape[0],), float) Xn[0:nx] = Xc-0.25*dx Xn[nx:] = Xc+0.25*dx Xn.sort() Yn = pyl...
0
0
0
0
0
2,878
0
0
69
bf053ecb91b45e0f5471a68564e3344dd8799600
414
py
Python
Problem_04.py
Habbo3/Project-Euler
1a01d67f72b9cfb606d13df91af89159b588216e
[ "MIT" ]
null
null
null
Problem_04.py
Habbo3/Project-Euler
1a01d67f72b9cfb606d13df91af89159b588216e
[ "MIT" ]
null
null
null
Problem_04.py
Habbo3/Project-Euler
1a01d67f72b9cfb606d13df91af89159b588216e
[ "MIT" ]
null
null
null
""" A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 99. Find the largest palindrome made from the product of two 3-digit numbers. """ biggest_number = 0 for i in range(999): for n in range(999): number = i*n if str(number) == str(nu...
29.571429
133
0.717391
""" A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. Find the largest palindrome made from the product of two 3-digit numbers. """ biggest_number = 0 for i in range(999): for n in range(999): number = i*n if str(number) == str(n...
2
0
0
0
0
0
0
0
0
26992116356270d5c84cb8edcdb4c4bedbb9668c
3,065
py
Python
loss/image.py
RobinSandkuehler/r2n2
54fdedd4129a0d2f5c257f727afef9e3f6ab565b
[ "Apache-2.0" ]
13
2020-01-13T15:25:44.000Z
2022-02-21T10:56:51.000Z
loss/image.py
RobinSandkuehler/r2n2
54fdedd4129a0d2f5c257f727afef9e3f6ab565b
[ "Apache-2.0" ]
1
2021-12-15T17:40:44.000Z
2021-12-15T17:40:44.000Z
loss/image.py
RobinSandkuehler/r2n2
54fdedd4129a0d2f5c257f727afef9e3f6ab565b
[ "Apache-2.0" ]
2
2021-08-03T16:31:46.000Z
2022-03-16T22:00:37.000Z
# Copyright 2019 University of Basel, Center for medical Image Analysis and Navigation # # 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 # # U...
37.378049
114
0.669821
# Copyright 2019 University of Basel, Center for medical Image Analysis and Navigation # # 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 # # U...
0
0
0
2,153
0
0
0
-3
68
c4d993b225afa6543ad3c035e2ea0487b8abb0d0
6,755
py
Python
eva-usage-stats/ftp_usage.py
cyenyxe/eva-tools-standalone
813b219befe19c2609acb6d8def80b6de8f759f3
[ "Apache-2.0" ]
null
null
null
eva-usage-stats/ftp_usage.py
cyenyxe/eva-tools-standalone
813b219befe19c2609acb6d8def80b6de8f759f3
[ "Apache-2.0" ]
null
null
null
eva-usage-stats/ftp_usage.py
cyenyxe/eva-tools-standalone
813b219befe19c2609acb6d8def80b6de8f759f3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python from ebi_eva_common_pyutils.logger import logging_config logger = logging_config.get_logger(__name__) logging_config.add_stdout_handler() if __name__ == '__main__': main()
43.580645
120
0.682457
#!/usr/bin/python import os from argparse import ArgumentParser import psycopg2.extras import requests from requests.auth import HTTPBasicAuth from ebi_eva_common_pyutils.logger import logging_config from ebi_eva_common_pyutils.metadata_utils import get_metadata_connection_handle from ebi_eva_common_pyutils.pg_utils ...
0
1,302
0
0
0
4,795
0
139
315
7749d6332e7e48b335408d32acd46d623497b9b0
1,178
py
Python
data/bin/cms-trace-merge.py
openalto/network-simulator-data
09706e5ab6e266ee5ef5b71cd32f10eea5a1975e
[ "MIT" ]
null
null
null
data/bin/cms-trace-merge.py
openalto/network-simulator-data
09706e5ab6e266ee5ef5b71cd32f10eea5a1975e
[ "MIT" ]
null
null
null
data/bin/cms-trace-merge.py
openalto/network-simulator-data
09706e5ab6e266ee5ef5b71cd32f10eea5a1975e
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import json if __name__ == '__main__': import sys basedir = sys.argv[1] files, replicas = load_files_replicas(basedir) files_path = os.path.join(basedir, 'files.json') with open(files_path, 'w') as ff: ff.write(json.dumps(files, indent=4, sort_keys=True)) ...
31.837838
68
0.580645
#!/usr/bin/env python import os import json def load_files_replicas(basedir): files = [] replicas = [] for d in os.listdir(basedir): d = os.path.join(basedir, d) if os.path.isdir(d): files_path = os.path.join(d, 'files.json') with open(files_path) as ff: ...
0
0
0
0
0
670
0
0
23
0e3cbace0e9b47475844b5b00c2e3553be5c9459
829
py
Python
app/user/views.py
ethan-leba/flask-twitter
27785b88354679d853fe86e6e8629ee72b1d40a4
[ "MIT" ]
null
null
null
app/user/views.py
ethan-leba/flask-twitter
27785b88354679d853fe86e6e8629ee72b1d40a4
[ "MIT" ]
null
null
null
app/user/views.py
ethan-leba/flask-twitter
27785b88354679d853fe86e6e8629ee72b1d40a4
[ "MIT" ]
null
null
null
from .. import db
37.681818
109
0.706876
from flask import render_template, url_for, redirect, flash from flask_login import current_user from .. import db from ..models import User, Tweet from . import user from .forms import TweetForm from ..queries import get_all_tweets, send_tweet, get_user @user.route('/<username>', methods=['GET', 'POST']) def user(use...
0
551
0
0
0
0
0
105
155
a3bc022859e29b21627241b8ca4418a6d0d25fde
611
py
Python
setup.py
asdf-format/asdf-chunked
993c9e7203f9fd0125db79c43e41a3b16169a6c2
[ "BSD-3-Clause" ]
null
null
null
setup.py
asdf-format/asdf-chunked
993c9e7203f9fd0125db79c43e41a3b16169a6c2
[ "BSD-3-Clause" ]
null
null
null
setup.py
asdf-format/asdf-chunked
993c9e7203f9fd0125db79c43e41a3b16169a6c2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from setuptools import find_packages, setup packages = find_packages(where="asdf_chunked") packages.append("asdf_chunked.resources") package_dir = { "": "asdf_chunked", "asdf_chunked.resources": "resources", } package_data = {"asdf_chunked.resources": package_yaml_files("resources")}...
21.821429
74
0.736498
#!/usr/bin/env python from pathlib import Path from setuptools import find_packages, setup packages = find_packages(where="asdf_chunked") packages.append("asdf_chunked.resources") package_dir = { "": "asdf_chunked", "asdf_chunked.resources": "resources", } def package_yaml_files(directory): paths = sor...
0
0
0
0
0
123
0
3
45
ecfe7d6e82aad57a073e0bcca5d4e54e0ca8540e
2,645
py
Python
UI_dev/archive/app_dev_final/table.py
nimRobotics/BTP
2387764fc0c513e37b72b97889b4a1ee09f9014c
[ "MIT" ]
null
null
null
UI_dev/archive/app_dev_final/table.py
nimRobotics/BTP
2387764fc0c513e37b72b97889b4a1ee09f9014c
[ "MIT" ]
null
null
null
UI_dev/archive/app_dev_final/table.py
nimRobotics/BTP
2387764fc0c513e37b72b97889b4a1ee09f9014c
[ "MIT" ]
null
null
null
import sys from PyQt5.QtWidgets import QApplication if __name__ == '__main__': app = QApplication(sys.argv) ex = App() sys.exit(app.exec_())
34.802632
114
0.635161
import sys from PyQt5.QtWidgets import QMainWindow, QApplication, QWidget, QAction, QTableWidget,QTableWidgetItem,QVBoxLayout from PyQt5.QtGui import QIcon from PyQt5.QtCore import pyqtSlot class App(QWidget): def __init__(self): super().__init__() self.title = 'PyQt5 table - pythonspot.com' ...
0
0
0
2,327
0
0
0
94
67
1d2cae0db33f52060f5c4d93831d43614df1c77a
3,972
py
Python
cellDataClass.py
okraus/DeepLoc
ced324ee7dfb7f3965a17cf2a78ccec671fa7991
[ "BSD-3-Clause" ]
49
2017-04-19T08:29:12.000Z
2020-10-15T07:27:54.000Z
cellDataClass.py
okraus/DeepLoc
ced324ee7dfb7f3965a17cf2a78ccec671fa7991
[ "BSD-3-Clause" ]
6
2017-10-04T08:45:44.000Z
2018-07-26T05:06:31.000Z
cellDataClass.py
okraus/DeepLoc
ced324ee7dfb7f3965a17cf2a78ccec671fa7991
[ "BSD-3-Clause" ]
28
2017-04-22T06:32:10.000Z
2020-03-19T12:25:22.000Z
# Copyright (c) 2017, Oren Kraus All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of conditions and the follo...
41.810526
130
0.656848
# Copyright (c) 2017, Oren Kraus All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of conditions and the follo...
0
0
0
2,386
0
0
0
-13
68
22575a73bd860dd9485b3daa0bbc132d26217211
1,216
py
Python
0_Complete_Guide_To_Custom_Object_Detection_Model_With_Yolov5/WebScraping/src/util/image_downloader.py
CertifaiAI/classifai-blogs
23a3e7f5241c27f74ffeb614cc730f21c35e9e2f
[ "Apache-2.0" ]
3
2021-05-17T01:25:56.000Z
2021-05-31T01:12:53.000Z
0_Complete_Guide_To_Custom_Object_Detection_Model_With_Yolov5/WebScraping/src/util/image_downloader.py
CertifaiAI/classifai-blogs
23a3e7f5241c27f74ffeb614cc730f21c35e9e2f
[ "Apache-2.0" ]
1
2021-08-19T02:50:06.000Z
2021-08-19T02:50:18.000Z
0_Complete_Guide_To_Custom_Object_Detection_Model_With_Yolov5/WebScraping/src/util/image_downloader.py
CertifaiAI/classifai-blogs
23a3e7f5241c27f74ffeb614cc730f21c35e9e2f
[ "Apache-2.0" ]
2
2021-06-09T05:48:59.000Z
2021-06-10T06:29:53.000Z
from PIL import Image import requests from io import BytesIO import os def save_image(src, counter, path): """Method for saving a single image""" cur_dir = os.getcwd() image_root_path = os.path.join(cur_dir, "images") if not os.path.isdir(image_root_path): os.mkdir(image_root_path) i...
24.816327
81
0.596217
from PIL import Image import requests from io import BytesIO import base64 import os def save_image(src, counter, path): """Method for saving a single image""" cur_dir = os.getcwd() image_root_path = os.path.join(cur_dir, "images") if not os.path.isdir(image_root_path): os.mkdir(image_root_pa...
0
0
0
0
0
0
0
-8
22
4f1f7997e4d027884b195e0bb4bf1141ba0efaec
4,788
py
Python
sandbox/pyexprfield.py
turkeydonkey/nzmath3
a48ae9efcf0d9ad1485c2e9863c948a7f1b20311
[ "BSD-3-Clause" ]
1
2021-05-26T19:22:17.000Z
2021-05-26T19:22:17.000Z
sandbox/pyexprfield.py
turkeydonkey/nzmath3
a48ae9efcf0d9ad1485c2e9863c948a7f1b20311
[ "BSD-3-Clause" ]
null
null
null
sandbox/pyexprfield.py
turkeydonkey/nzmath3
a48ae9efcf0d9ad1485c2e9863c948a7f1b20311
[ "BSD-3-Clause" ]
null
null
null
""" Python Expression field, another finite prime field characteristic two definition. field element is defined by bool(Python Expression). This module is reference design for finite field characteristic two. but I recommend that this field should be used only checking Python syntax. """ import logging _log = loggi...
28
93
0.6368
""" Python Expression field, another finite prime field characteristic two definition. field element is defined by bool(Python Expression). This module is reference design for finite field characteristic two. but I recommend that this field should be used only checking Python syntax. """ import logging import operat...
0
0
0
4,327
0
0
0
-6
68
5cd80199edec3fb9faa21f7e2426eab3da37d240
73
py
Python
code/MPGenPython/motion_profile/__init__.py
shuqinlee/PedestrianDetection
eb3353e8d22fb855f5a233dd4c468933ced91022
[ "MIT" ]
4
2018-03-17T13:44:33.000Z
2018-12-28T02:59:28.000Z
code/MPGenPython/motion_profile/__init__.py
shuqinlee/PedestrianDetection
eb3353e8d22fb855f5a233dd4c468933ced91022
[ "MIT" ]
null
null
null
code/MPGenPython/motion_profile/__init__.py
shuqinlee/PedestrianDetection
eb3353e8d22fb855f5a233dd4c468933ced91022
[ "MIT" ]
null
null
null
# __init__: let python know this is a package
18.25
46
0.753425
# __init__: let python know this is a package from mpgen import mpgen
0
0
0
0
0
0
0
2
22
ec565786d077cf1223be311832047f6026c29ef5
9,833
py
Python
GunsApp/app.py
rabest265/Guns2
dce211b2494d5a130fd706ff76646365d9ef3e57
[ "CNRI-Python", "OML" ]
null
null
null
GunsApp/app.py
rabest265/Guns2
dce211b2494d5a130fd706ff76646365d9ef3e57
[ "CNRI-Python", "OML" ]
null
null
null
GunsApp/app.py
rabest265/Guns2
dce211b2494d5a130fd706ff76646365d9ef3e57
[ "CNRI-Python", "OML" ]
null
null
null
from flask import Flask from flask_pymongo import PyMongo from datetime import datetime import pandas as pd import os import numpy as np # function to save dataframe to collection_name in MongoDB 'wines' # In[2]: # Load CSV file csv_path = os.path.join('..',"rawdata", "gun-violence-data_01-2013_12-2015....
35.243728
215
0.73711
from flask import Flask, render_template, redirect, jsonify from flask_pymongo import PyMongo from datetime import datetime import json import pandas as pd import os import numpy as np import datetime import csv import pymongo import request # function to save dataframe to collection_name in MongoDB 'wines' d...
0
1,810
0
0
0
358
0
-5
365
1a21cf24460bf429e80572cc953d2defbc5d68f5
621
py
Python
ftpserver.py
miebach/py-simple-ftpd
8e02091a906fee342252a146054d5418db687303
[ "MIT" ]
5
2015-02-21T00:00:23.000Z
2020-05-07T04:21:03.000Z
ftpserver.py
miebach/py-simple-ftpd
8e02091a906fee342252a146054d5418db687303
[ "MIT" ]
null
null
null
ftpserver.py
miebach/py-simple-ftpd
8e02091a906fee342252a146054d5418db687303
[ "MIT" ]
null
null
null
import time import sha from pyftpdlib import ftpserver username="user" authorizer = ftpserver.DummyAuthorizer() password = mysha((str(time.time()) + "babble"))[:7] print "user:",username print "password:",password authorizer.add_user(username, password, "./data", perm="elradfmw") #authorizer.add_anonymous(".") ft...
23.884615
66
0.73752
import time import sha from pyftpdlib import ftpserver def mysha(x): hash = sha.new(x) return hash.hexdigest() username="user" authorizer = ftpserver.DummyAuthorizer() password = mysha((str(time.time()) + "babble"))[:7] print "user:",username print "password:",password authorizer.add_user(username, password,...
0
0
0
0
0
38
0
0
23
0a54a78b31e4be5894fa62d3e6f6f46c9905bd24
4,037
py
Python
Creator/macOS/marwale.py
rohitnishad613/Glitch
4f896d85f3de3c98e5c91823ae3a87c4d8fdc97f
[ "MIT" ]
5
2020-09-16T06:27:12.000Z
2020-09-21T11:14:14.000Z
Creator/macOS/marwale.py
rohitnishad613/Glitch
4f896d85f3de3c98e5c91823ae3a87c4d8fdc97f
[ "MIT" ]
null
null
null
Creator/macOS/marwale.py
rohitnishad613/Glitch
4f896d85f3de3c98e5c91823ae3a87c4d8fdc97f
[ "MIT" ]
null
null
null
import time while True: time.sleep(0.1) main()
29.903704
116
0.489225
import os import socket import subprocess import time import signal import sys import struct class Client(object): def __init__(self): HERE_IS_YOUR_HOST_AND_PORT self.socket = None def register_signal_handler(self): signal.signal(signal.SIGINT, self.do_notting) signal.signal(si...
0
0
0
3,563
0
289
0
-51
178
64343d013519933355c64587bf336eeec5a5ee82
1,884
py
Python
Module1/Day07/module1_day07_ranges.py
mollysaweikis/100DaysPython
464533eb52944fff8858c2e0e0f3b25f1bff7350
[ "MIT" ]
23
2019-05-31T18:00:26.000Z
2021-11-21T19:08:19.000Z
Module1/Day07/module1_day07_ranges.py
btruck552/100DaysPython
1e45a10387da6d4ebdf8aa5fe13843a4509c8b62
[ "MIT" ]
null
null
null
Module1/Day07/module1_day07_ranges.py
btruck552/100DaysPython
1e45a10387da6d4ebdf8aa5fe13843a4509c8b62
[ "MIT" ]
42
2019-05-31T17:54:28.000Z
2022-02-12T22:09:51.000Z
""" Author: CaptCorpMURICA Project: 100DaysPython File: module1_day07_ranges.py Creation Date: 6/2/2019, 8:55 AM Description: Basic instruction of ranges in python. """ # A range starts with an index of 0 and ends with the declared value. The endpoint of a range in not ...
50.918919
120
0.69586
""" Author: CaptCorpMURICA Project: 100DaysPython File: module1_day07_ranges.py Creation Date: 6/2/2019, 8:55 AM Description: Basic instruction of ranges in python. """ # A range starts with an index of 0 and ends with the declared value. The endpoint of a range in not ...
0
0
0
0
0
0
0
0
0
603451b8330fc6c53dc0f78f6b33e3feeec049e4
2,242
py
Python
env/lib/python3.7/site-packages/cleo/inputs/api.py
Kolawole39/masonite-guides-tutorial
9a21cc635291a42f0722f69925be1809bb20e01c
[ "MIT" ]
null
null
null
env/lib/python3.7/site-packages/cleo/inputs/api.py
Kolawole39/masonite-guides-tutorial
9a21cc635291a42f0722f69925be1809bb20e01c
[ "MIT" ]
null
null
null
env/lib/python3.7/site-packages/cleo/inputs/api.py
Kolawole39/masonite-guides-tutorial
9a21cc635291a42f0722f69925be1809bb20e01c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .input_argument import InputArgument from .input_option import InputOption def argument(name, description='', required=False, default=None, is_list=False, validator=None): """ Helper function to create a new argument. :param name: The name of the ar...
24.911111
69
0.67083
# -*- coding: utf-8 -*- from .input_argument import InputArgument from .input_option import InputOption def argument(name, description='', required=False, default=None, is_list=False, validator=None): """ Helper function to create a new argument. :param name: The name of the ar...
0
0
0
0
0
0
0
0
0
576fda55cc6908ed1c0d5f2b87e5c72699a1dbaa
1,786
py
Python
src/test.py
kumarnikhil936/MailClassification_NLTK_Sklearn_Flask_Docker
df919005e2ceafa1d90fb1ab0c302f2220e0906d
[ "MIT" ]
null
null
null
src/test.py
kumarnikhil936/MailClassification_NLTK_Sklearn_Flask_Docker
df919005e2ceafa1d90fb1ab0c302f2220e0906d
[ "MIT" ]
null
null
null
src/test.py
kumarnikhil936/MailClassification_NLTK_Sklearn_Flask_Docker
df919005e2ceafa1d90fb1ab0c302f2220e0906d
[ "MIT" ]
null
null
null
import yaml from joblib import load from nltk.corpus import stopwords from nltk.stem.snowball import SnowballStemmer from helpers import preprocess_single_text, load_mapping text = "ki_erstattung_test_topf2.txt Details Activity ki_erstattung_test_topf2.txt Sharing Info. Who has access M General Info. System properties...
57.612903
801
0.787794
import yaml from joblib import load from nltk.corpus import stopwords from nltk.stem.snowball import SnowballStemmer from helpers import preprocess_single_text, load_mapping text = "ki_erstattung_test_topf2.txt Details Activity ki_erstattung_test_topf2.txt Sharing Info. Who has access M General Info. System properties...
6
0
0
0
0
0
0
0
0
4f8e5b718a64351286c098419e412067fd72661c
290
py
Python
Lista3_11.py
AlessandroGoncalve/Lista3_Python
68f18d0d0243b19e596df1309c502ae72fbaca37
[ "MIT" ]
12
2019-09-13T22:01:05.000Z
2020-09-20T23:18:41.000Z
Lista3_11.py
AlessandroGoncalve/Lista3_Python
68f18d0d0243b19e596df1309c502ae72fbaca37
[ "MIT" ]
1
2020-04-04T03:36:44.000Z
2020-10-21T20:57:38.000Z
Lista3_11.py
AlessandroGoncalve/Lista3_Python
68f18d0d0243b19e596df1309c502ae72fbaca37
[ "MIT" ]
12
2019-09-10T18:48:25.000Z
2020-10-24T18:35:13.000Z
#Altere o programa anterior para mostrar no final a soma dos nmeros. n1 = int(input("Digite um nmero: ")) n2 = int(input("Digite outro nmero: ")) for i in range(n1 + 1, n2): print(i) for i in range(n2 + 1, n1): print(i) print("Soma dos nmeros: ", i + i)
22.307692
70
0.593103
#Altere o programa anterior para mostrar no final a soma dos números. n1 = int(input("Digite um número: ")) n2 = int(input("Digite outro número: ")) for i in range(n1 + 1, n2): print(i) for i in range(n2 + 1, n1): print(i) print("Soma dos números: ", i + i)
8
0
0
0
0
0
0
0
0
bf752a0fbeb6d507311d56e1f4e724814a0350b1
1,538
py
Python
packages/attitude.pkg/providers.py
GrahamCobb/maemo-mud-builder
7bc03f5a1734a2b256e31808032d079c3e1e5720
[ "ClArtistic" ]
null
null
null
packages/attitude.pkg/providers.py
GrahamCobb/maemo-mud-builder
7bc03f5a1734a2b256e31808032d079c3e1e5720
[ "ClArtistic" ]
null
null
null
packages/attitude.pkg/providers.py
GrahamCobb/maemo-mud-builder
7bc03f5a1734a2b256e31808032d079c3e1e5720
[ "ClArtistic" ]
null
null
null
# # Provider information sources for `Attitude' - a false horizon display using # accelerometer information. (c) Andrew Flegg 2009 # Released under the Artistic Licence
29.018868
79
0.574122
# # Provider information sources for `Attitude' - a false horizon display using # accelerometer information. (c) Andrew Flegg 2009 # Released under the Artistic Licence import os.path from math import sin, cos, pi class Dummy: """One of the simplest provide...
0
65
0
1,129
0
0
0
1
114
9611e85309601b1043038f0147966d80aa76dc29
4,953
py
Python
final_project.py
nikmoon/RecursiveStat
f1a31a70da3278ca4ada3dfa83875258170ce602
[ "MIT" ]
null
null
null
final_project.py
nikmoon/RecursiveStat
f1a31a70da3278ca4ada3dfa83875258170ce602
[ "MIT" ]
null
null
null
final_project.py
nikmoon/RecursiveStat
f1a31a70da3278ca4ada3dfa83875258170ce602
[ "MIT" ]
null
null
null
# IDE, """ """ metrics = { 'productType': { 'method': getProductType, 'name': 'productType', # }, 'productColor': { 'method': getProductColor, 'name': 'productColor', }, 'productCondition': { 'method': getProductCondition, ...
35.633094
112
0.592166
# эти строки введены для IDE, их нужно закомментировать или удалить def getProductType(): pass def getProductColor(): pass def getProductCondition(): pass def get_stat_api(list_of_queries): pass """ Список метрик и соответствующих им методов """ metrics = { 'productType': { 'method': getProductType, ...
2,372
0
0
0
0
39
0
0
88
8a5dc9f0ee9a0de84f2ecc9552a6e60c7b9fee48
1,466
py
Python
deploy2.py
JiajunZhou96/ML-for-LSD1
595630076928f0c0d0b78ce182478b7fb0d20ead
[ "MIT" ]
1
2021-12-20T11:50:06.000Z
2021-12-20T11:50:06.000Z
deploy2.py
JiajunZhou96/ML-for-LSD1
595630076928f0c0d0b78ce182478b7fb0d20ead
[ "MIT" ]
null
null
null
deploy2.py
JiajunZhou96/ML-for-LSD1
595630076928f0c0d0b78ce182478b7fb0d20ead
[ "MIT" ]
null
null
null
import pandas as pd import joblib from utils import save_dataset model_load = joblib.load('./models/model.pkl') database = pd.read_csv('./screening_base/in-vitro_zinc/in-vitro.csv') screen_database = pd.read_csv('./datasets/screen_results/in-vitro_zinc/in-vitro_bits.csv') screen_result = model_load.predict(screen_da...
35.756098
122
0.749659
import numpy as np import pandas as pd import matplotlib.pyplot as plt import re import time import os from sklearn.svm import SVR import joblib import rdkit from rdkit import Chem from rdkit.Chem import AllChem from rdkit_utils import smiles_dataset from utils import save_dataset model_load = joblib.load('./models...
0
0
0
0
0
0
0
-3
222
6fd6c18fabfe36ee89c947678a6f06714899f0c2
798
py
Python
core/migrations/0012_auto_20210813_0035.py
winny-/sillypaste
bf6125b35225046226328d1077d7bc7ea5e11c94
[ "Unlicense" ]
3
2021-05-21T03:45:59.000Z
2022-01-23T18:26:45.000Z
core/migrations/0012_auto_20210813_0035.py
winny-/sillypaste
bf6125b35225046226328d1077d7bc7ea5e11c94
[ "Unlicense" ]
13
2021-04-03T19:56:35.000Z
2022-01-23T18:39:47.000Z
core/migrations/0012_auto_20210813_0035.py
winny-/sillypaste
bf6125b35225046226328d1077d7bc7ea5e11c94
[ "Unlicense" ]
1
2021-10-03T18:22:55.000Z
2021-10-03T18:22:55.000Z
# Generated by Django 3.1.12 on 2021-08-13 00:35
27.517241
76
0.601504
# Generated by Django 3.1.12 on 2021-08-13 00:35 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [('core', '0011_auto_20201105_0203')] operations = [ migrations.RenameField( model_name='expirylog', old_name='cou...
0
0
0
654
0
0
0
26
68
4d693c50b234f4d287b9940411df75b8d66801fe
25,754
py
Python
src/sage/combinat/six_vertex_model.py
fredstro/sage
c936d2cda81ec7ec3552a3bdb29c994b40d1bb24
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/six_vertex_model.py
fredstro/sage
c936d2cda81ec7ec3552a3bdb29c994b40d1bb24
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/six_vertex_model.py
fredstro/sage
c936d2cda81ec7ec3552a3bdb29c994b40d1bb24
[ "BSL-1.0" ]
null
null
null
r""" Six Vertex Model """
33.017949
108
0.435117
r""" Six Vertex Model """ from sage.structure.parent import Parent from sage.structure.unique_representation import UniqueRepresentation from sage.structure.list_clone import ClonableArray from sage.categories.finite_enumerated_sets import FiniteEnumeratedSets from sage.combinat.combinatorial_map import combinatorial_...
0
2,487
0
22,873
0
0
0
187
180
eec8f79fbad64478516a5b0dade7f8244e1f9460
2,410
py
Python
test/test_unit/test_ga4gh/test_refget/test_http/test_response.py
ga4gh/refget-cloud
c39a65acba9818414789f004cced487562012bf0
[ "Apache-2.0" ]
null
null
null
test/test_unit/test_ga4gh/test_refget/test_http/test_response.py
ga4gh/refget-cloud
c39a65acba9818414789f004cced487562012bf0
[ "Apache-2.0" ]
3
2021-04-30T21:12:42.000Z
2021-06-02T02:11:45.000Z
test/test_unit/test_ga4gh/test_refget/test_http/test_response.py
ga4gh/refget-cloud
c39a65acba9818414789f004cced487562012bf0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Unit tests for Response class""" from ga4gh.refget.http.status_codes import StatusCodes as SC from ga4gh.refget.config.constants import CONTENT_TYPE_JSON_REFGET_VND, CONTENT_TYPE_TEXT_REFGET_VND testdata_body = [ ("ACGT"), ('{"message": "NOTFOUND"}'), ('''{"service": {"circular_s...
29.390244
73
0.69834
# -*- coding: utf-8 -*- """Unit tests for Response class""" import pytest from ga4gh.refget.http.response import Response from ga4gh.refget.http.status_codes import StatusCodes as SC from ga4gh.refget.config.constants import CONTENT_TYPE_JSON_REFGET_VND, \ CONTENT_TYPE_TEXT_REFGET_VND testdata_body = [ ("ACGT...
0
1,362
0
0
0
0
0
24
160
fba93487b51dcb4e56ba07626edfd9c3d910229c
2,356
py
Python
display.py
fginther/pi-experiments
bd9b18b9dad8ac48651a6a90fa234573b726e52d
[ "MIT" ]
null
null
null
display.py
fginther/pi-experiments
bd9b18b9dad8ac48651a6a90fa234573b726e52d
[ "MIT" ]
null
null
null
display.py
fginther/pi-experiments
bd9b18b9dad8ac48651a6a90fa234573b726e52d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import pygame CHECK_LATCHES_INTERVAL = 100 CHECK_LATCHES = pygame.USEREVENT + 1 if __name__ == '__main__': main()
25.89011
64
0.556027
#!/usr/bin/env python import time import pygame from pygame.locals import * def get_current_time(): return int(round(time.time() * 1000)) class Target(object): def __init__(self, value): self.value = value self.latched = False self.latch_time = 0 def trigger(self): if se...
0
0
0
397
0
1,705
0
-4
114
66302df5b876a90bd49810dc1235682c54d54b47
11,687
py
Python
OptMiniModule/diffcp/cones.py
markcx/DER_ControlPrivateTimeSeries
16f9ea14dc5146005c1c88e9b880c10c9b1a3361
[ "MIT" ]
null
null
null
OptMiniModule/diffcp/cones.py
markcx/DER_ControlPrivateTimeSeries
16f9ea14dc5146005c1c88e9b880c10c9b1a3361
[ "MIT" ]
null
null
null
OptMiniModule/diffcp/cones.py
markcx/DER_ControlPrivateTimeSeries
16f9ea14dc5146005c1c88e9b880c10c9b1a3361
[ "MIT" ]
null
null
null
import numpy as np # import _proj as proj_lib import scipy.sparse as sparse import scipy.sparse.linalg as splinalg ZERO = "f" POS = "l" SOC = "q" PSD = "s" EXP = "ep" EXP_DUAL = "ed" POWER = "p" # The ordering of CONES matches SCS. CONES = [ZERO, POS, SOC, PSD, EXP, EXP_DUAL, POWER] def parse_cone_dict(cone_dict): ...
35.740061
100
0.520151
import numpy as np # import _proj as proj_lib import scipy.sparse as sparse import scipy.sparse.linalg as splinalg ZERO = "f" POS = "l" SOC = "q" PSD = "s" EXP = "ep" EXP_DUAL = "ed" POWER = "p" # The ordering of CONES matches SCS. CONES = [ZERO, POS, SOC, PSD, EXP, EXP_DUAL, POWER] def parse_cone_dict(cone_dict): ...
0
0
0
0
0
1,314
0
0
204
df963607b23ba51f62d020e9b2d3d72b9c78d77a
1,025
py
Python
setup.py
simpleapples/flask-wtf-decorators
7fa5a26946d2fdb5b00d07251c0ca7d0e358fc1d
[ "MIT" ]
3
2018-07-02T14:39:44.000Z
2020-12-14T12:58:43.000Z
setup.py
simpleapples/flask-wtf-decorators
7fa5a26946d2fdb5b00d07251c0ca7d0e358fc1d
[ "MIT" ]
2
2020-07-02T17:26:05.000Z
2020-07-03T16:53:55.000Z
setup.py
simpleapples/flask-wtf-decorators
7fa5a26946d2fdb5b00d07251c0ca7d0e358fc1d
[ "MIT" ]
null
null
null
from os import path from setuptools import setup, find_packages here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='Flask-WTF-Decorators', version='0.1.2', license='MIT', url='https://github.com/simp...
31.060606
64
0.653659
from os import path from setuptools import setup, find_packages here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='Flask-WTF-Decorators', version='0.1.2', license='MIT', url='https://github.com/simp...
0
0
0
0
0
0
0
0
0
ed24c7e0cb89b766670c2e6075918647dc12e22a
1,070
py
Python
src/astrolib/solar_system/__init__.py
space-geek/integrationutils
384375702a6c053aa2e5aaca6b9d5c43d86a16ad
[ "MIT" ]
null
null
null
src/astrolib/solar_system/__init__.py
space-geek/integrationutils
384375702a6c053aa2e5aaca6b9d5c43d86a16ad
[ "MIT" ]
null
null
null
src/astrolib/solar_system/__init__.py
space-geek/integrationutils
384375702a6c053aa2e5aaca6b9d5c43d86a16ad
[ "MIT" ]
null
null
null
from astrolib.solar_system.celestial_objects import CelestialObject from astrolib.solar_system.motion_models import OriginFixedMotionModel from astrolib.solar_system.orientation_models import InertiallyFixedOrientationModel Sun = CelestialObject(OriginFixedMotionModel(),InertiallyFixedOrientationModel()) Mercury = Cel...
71.333333
85
0.879439
from astrolib.solar_system.celestial_objects import CelestialObject from astrolib.solar_system.motion_models import OriginFixedMotionModel from astrolib.solar_system.orientation_models import InertiallyFixedOrientationModel Sun = CelestialObject(OriginFixedMotionModel(),InertiallyFixedOrientationModel()) Mercury = Cel...
0
0
0
0
0
0
0
0
0
7c889c3645f09d24f1f01e75c97d332a09c86a9e
715
py
Python
Python/simple_calculator.py
snehnakrani14/HactoberFest21
1d387ff4efec1f17fe20d42f46490564c5a87b52
[ "Unlicense" ]
1
2021-10-04T14:39:02.000Z
2021-10-04T14:39:02.000Z
Python/simple_calculator.py
snehnakrani14/HactoberFest21
1d387ff4efec1f17fe20d42f46490564c5a87b52
[ "Unlicense" ]
1
2021-10-06T04:41:55.000Z
2021-10-06T04:41:55.000Z
Python/simple_calculator.py
snehnakrani14/HactoberFest21
1d387ff4efec1f17fe20d42f46490564c5a87b52
[ "Unlicense" ]
1
2021-10-08T12:31:04.000Z
2021-10-08T12:31:04.000Z
#python program - make simple calculator print("1. adiition") print("2. subtraction") print("3. multiplication") print("4. division") print("5. exit") choice = int(input("enter your choice: ")) if (choice>=1 and choice<=4): print("enter two numbers: ") num1 = int(input()) num2 = int(input()) if choice ...
21.666667
42
0.516084
#python program - make simple calculator print("1. adiition") print("2. subtraction") print("3. multiplication") print("4. division") print("5. exit") choice = int(input("enter your choice: ")) if (choice>=1 and choice<=4): print("enter two numbers: ") num1 = int(input()) num2 = int(input()) if choice ...
0
0
0
0
0
0
0
0
0
6a7cf670831b403d0054682d331d46306648544a
3,688
py
Python
ramjet/photometric_database/derived/moa_survey_none_single_and_binary_database.py
golmschenk/ramjet
77fb4481a15088923308fda09804d80455d1a9cf
[ "Apache-2.0" ]
3
2020-11-23T18:47:37.000Z
2021-08-05T17:45:51.000Z
ramjet/photometric_database/derived/moa_survey_none_single_and_binary_database.py
golmschenk/ramjet
77fb4481a15088923308fda09804d80455d1a9cf
[ "Apache-2.0" ]
5
2021-08-19T00:54:57.000Z
2022-02-10T00:15:40.000Z
ramjet/photometric_database/derived/moa_survey_none_single_and_binary_database.py
golmschenk/ramjet
77fb4481a15088923308fda09804d80455d1a9cf
[ "Apache-2.0" ]
3
2019-07-12T21:00:57.000Z
2020-06-03T22:18:13.000Z
""" Code for a database of MOA light curves including non-microlensing, single lensing, and binary lensing collcetions. """
59.483871
120
0.638015
""" Code for a database of MOA light curves including non-microlensing, single lensing, and binary lensing collcetions. """ from ramjet.data_interface.moa_data_interface import MoaDataInterface from ramjet.photometric_database.derived.moa_survey_light_curve_collection import MoaSurveyLightCurveCollection from ramjet.ph...
0
0
0
3,165
0
0
0
309
89
f0162ff4ea770a97740eab3aed1b1f3a2c45254f
1,576
py
Python
exercicios curso em video/ex071.py
Nilton-Miguel/Prog_Python3
4cabcb1a30dde6ababce3cb8d1fbb7d417cb1d8b
[ "MIT" ]
null
null
null
exercicios curso em video/ex071.py
Nilton-Miguel/Prog_Python3
4cabcb1a30dde6ababce3cb8d1fbb7d417cb1d8b
[ "MIT" ]
null
null
null
exercicios curso em video/ex071.py
Nilton-Miguel/Prog_Python3
4cabcb1a30dde6ababce3cb8d1fbb7d417cb1d8b
[ "MIT" ]
null
null
null
valor = str(input('Valor para saque: ').strip()) last = valor[len(valor) - 1] valor = int(valor) if last == '1': valor += 1 print(f'o valor precisou ser corrigido para R${valor},00 pois no h notas de R$ 1,00 disponveis') print() tot100 = tot50 = tot20 = tot10 = tot5 = tot2 = 0 while True: ...
19.7
104
0.425127
valor = str(input('Valor para saque: ').strip()) last = valor[len(valor) - 1] valor = int(valor) if last == '1': valor += 1 print(f'o valor precisou ser corrigido para R${valor},00 pois não há notas de R$ 1,00 disponíveis') print() tot100 = tot50 = tot20 = tot10 = tot5 = tot2 = 0 while True: ...
6
0
0
0
0
0
0
0
0
cfea1adda1cef4fa8dfdce519ed08e934086381e
4,414
py
Python
library/aos_cap_whitelist.py
jayp193/aos-wlan-ansible-role
0e8ef5d3a890bed6b0e402f92d6aaedf5d8bf9fb
[ "Apache-2.0" ]
2
2020-07-20T15:51:45.000Z
2022-02-22T12:23:48.000Z
library/aos_cap_whitelist.py
jayp193/aos-wlan-ansible-role
0e8ef5d3a890bed6b0e402f92d6aaedf5d8bf9fb
[ "Apache-2.0" ]
2
2020-06-23T20:58:22.000Z
2021-02-02T18:13:33.000Z
library/aos_cap_whitelist.py
jayp193/aos-wlan-ansible-role
0e8ef5d3a890bed6b0e402f92d6aaedf5d8bf9fb
[ "Apache-2.0" ]
2
2020-06-23T21:42:20.000Z
2021-06-04T04:20:59.000Z
#!/usr/bin/python3 ''' Module for Whitelisting Access Points ''' # -*- coding: utf-8 -*- # (C) Copyright 2020 Hewlett Packard Enterprise Development LP. # # 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 th...
31.084507
86
0.647938
#!/usr/bin/python3 ''' Module for Whitelisting Access Points ''' # -*- coding: utf-8 -*- # (C) Copyright 2020 Hewlett Packard Enterprise Development LP. # # 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 th...
0
0
0
0
0
1,395
0
58
68
9a22382029101b296f687c549cf395c5ad741718
497
py
Python
core/forms.py
igr-santos/merit-market
a7bf8cc00071f63e8e98826c2c19d93120dbece9
[ "MIT" ]
1
2021-07-07T14:18:29.000Z
2021-07-07T14:18:29.000Z
core/forms.py
igr-santos/merit-market
a7bf8cc00071f63e8e98826c2c19d93120dbece9
[ "MIT" ]
null
null
null
core/forms.py
igr-santos/merit-market
a7bf8cc00071f63e8e98826c2c19d93120dbece9
[ "MIT" ]
null
null
null
# coding: utf-8
27.611111
74
0.682093
# coding: utf-8 from django import forms from .models import Transaction from .models import Customer class TransactionForm(forms.ModelForm): receiver = forms.ModelChoiceField(queryset=Transaction.objects.none()) def __init__(self, user, *args, **kwargs): super(TransactionForm, self).__init__(*args, ...
0
0
0
371
0
0
0
20
89
28738d283bf4868349454e25d748bec7dc9a9c6f
33,650
py
Python
sdk/python/pulumi_gcp/dataloss/prevention_deidentify_template.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
121
2018-06-18T19:16:42.000Z
2022-03-31T06:06:48.000Z
sdk/python/pulumi_gcp/dataloss/prevention_deidentify_template.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
492
2018-06-22T19:41:03.000Z
2022-03-31T15:33:53.000Z
sdk/python/pulumi_gcp/dataloss/prevention_deidentify_template.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
43
2018-06-19T01:43:13.000Z
2022-03-23T22:43:37.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import pulumi from .. import _utilities __all__ = ['PreventionDeidentifyTemplateArgs', 'PreventionDeidentifyTemplate']
56.841216
422
0.624101
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
0
30,595
0
2,526
0
0
0
42
180
8507de2c30bd2745a0276ae3c30b8e452c32e14f
486
py
Python
processing/MinMaxScaler.py
lkhphuc/slack-visual-summary
59c88580d95222718dd5c260eb1eacd01e3eeb35
[ "MIT" ]
2
2018-08-14T09:11:33.000Z
2019-09-17T18:25:26.000Z
processing/MinMaxScaler.py
lkhphuc/slack-visual-summary
59c88580d95222718dd5c260eb1eacd01e3eeb35
[ "MIT" ]
null
null
null
processing/MinMaxScaler.py
lkhphuc/slack-visual-summary
59c88580d95222718dd5c260eb1eacd01e3eeb35
[ "MIT" ]
null
null
null
from sklearn.preprocessing import MinMaxScaler from numpy import loadtxt import numpy as np data = loadtxt('data-time.txt') print(data) #redata = np.reshape(-1,1) #print(redata) scaler = MinMaxScaler() print(scaler.fit(data)) MinMaxScaler(copy=True, feature_range=(0, 100)) print(scaler.data_max_) a = scaler.transform(...
23.142857
47
0.751029
from sklearn.preprocessing import MinMaxScaler from numpy import loadtxt import numpy as np import matplotlib as plt import pandas as pd from numpy import reshape data = loadtxt('data-time.txt') print(data) #redata = np.reshape(-1,1) #print(redata) scaler = MinMaxScaler() print(scaler.fit(data)) MinMaxScaler(copy=Tru...
0
0
0
0
0
0
0
5
67
0fe5f55b94767e2765b101413f36d3b004c94b0e
3,710
py
Python
roomInformationExport.py
ruornil/revitDynamoScripts
dc01db653a721136da4e3f99469df4e06becb767
[ "MIT" ]
null
null
null
roomInformationExport.py
ruornil/revitDynamoScripts
dc01db653a721136da4e3f99469df4e06becb767
[ "MIT" ]
null
null
null
roomInformationExport.py
ruornil/revitDynamoScripts
dc01db653a721136da4e3f99469df4e06becb767
[ "MIT" ]
null
null
null
#Copyright(c) 2015, Nathan Miller # The Proving Ground, http://theprovingground.org #Edited and modified by Mehmet Cenk Tunaboylu, to better suit his needs. Removed boundary curves extraction. Added department extraction. import clr # Import RevitAPI clr.AddReference("RevitAPI") # Import DocumentManager and...
28.538462
138
0.695957
#Copyright(c) 2015, Nathan Miller # The Proving Ground, http://theprovingground.org #Edited and modified by Mehmet Cenk Tunaboylu, to better suit his needs. Removed boundary curves extraction. Added department extraction. import clr # Import RevitAPI clr.AddReference("RevitAPI") import Autodesk from Autodesk...
0
0
0
0
0
0
0
62
115
4da836cc685f5c603b5df612aa13b9c3f035b149
14,627
py
Python
util.py
yinkaisheng/AgoraRteDemo
512769e299ac19601589b0c4c154e012aea27ffb
[ "Apache-2.0" ]
1
2022-03-03T14:40:53.000Z
2022-03-03T14:40:53.000Z
util.py
yinkaisheng/AgoraRteDemo
512769e299ac19601589b0c4c154e012aea27ffb
[ "Apache-2.0" ]
null
null
null
util.py
yinkaisheng/AgoraRteDemo
512769e299ac19601589b0c4c154e012aea27ffb
[ "Apache-2.0" ]
null
null
null
#!python3 # -*- coding: utf-8 -*- # author: yinkaisheng@foxmail.com import os import shutil # import socket from typing import Any, List, Tuple _SelfFileName = os.path.split(__file__)[1] def getStrBetween(src: str, left: str, right: str = None, start: int = 0, end: int = None) -> Tuple[str, int]: '''return t...
36.027094
162
0.569768
#!python3 # -*- coding: utf-8 -*- # author: yinkaisheng@foxmail.com import os import sys import json import ctypes import pickle import shutil # import socket import zipfile import datetime from typing import Any, Callable, Iterator, Dict, List, Tuple _SelfFileName = os.path.split(__file__)[1] def isPy38OrHigher():...
0
0
0
0
4,411
3,488
0
-24
550
bde34ca3526e7f51ff2fa0a0e40bdfa61e94305e
1,097
py
Python
src/psiz/utils/rotation_matrix.py
greenfieldvision/psiz
37068530a78e08792e827ee55cf55e627add115e
[ "Apache-2.0" ]
21
2020-04-03T21:10:05.000Z
2021-12-02T01:31:11.000Z
src/psiz/utils/rotation_matrix.py
greenfieldvision/psiz
37068530a78e08792e827ee55cf55e627add115e
[ "Apache-2.0" ]
14
2020-04-10T00:48:02.000Z
2021-05-25T18:06:55.000Z
psiz/utils/rotation_matrix.py
rgerkin/psiz
d540738462b6436a08a472d5e349ca2b813e6d47
[ "Apache-2.0" ]
4
2020-10-13T16:46:14.000Z
2021-11-10T00:08:47.000Z
# -*- coding: utf-8 -*- # Copyright 2020 The PsiZ 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 r...
29.648649
78
0.655424
# -*- coding: utf-8 -*- # Copyright 2020 The PsiZ 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 r...
0
0
0
0
0
0
0
0
0
a3b12a22896d70cbbefc9e7e1dafb2be8fc7279c
78
py
Python
tests/roots/test-maxlistdepth/conf.py
samdoran/sphinx
4c91c038b220d07bbdfe0c1680af42fe897f342c
[ "BSD-2-Clause" ]
4,973
2015-01-03T15:44:00.000Z
2022-03-31T03:11:51.000Z
tests/roots/test-maxlistdepth/conf.py
samdoran/sphinx
4c91c038b220d07bbdfe0c1680af42fe897f342c
[ "BSD-2-Clause" ]
7,850
2015-01-02T08:09:25.000Z
2022-03-31T18:57:40.000Z
tests/roots/test-maxlistdepth/conf.py
samdoran/sphinx
4c91c038b220d07bbdfe0c1680af42fe897f342c
[ "BSD-2-Clause" ]
2,179
2015-01-03T15:26:53.000Z
2022-03-31T12:22:44.000Z
exclude_patterns = ['_build'] latex_elements = { 'maxlistdepth': '10', }
13
29
0.641026
exclude_patterns = ['_build'] latex_elements = { 'maxlistdepth': '10', }
0
0
0
0
0
0
0
0
0
acdf93786f95a7945c8913e5d9f8076e4683bcb1
2,174
py
Python
disturbance/migrations/0267_auto_20210711_1208.py
jawaidm/disturbance
4188e816239b9447a58a987d16dd0f05bc6aad53
[ "Apache-2.0" ]
null
null
null
disturbance/migrations/0267_auto_20210711_1208.py
jawaidm/disturbance
4188e816239b9447a58a987d16dd0f05bc6aad53
[ "Apache-2.0" ]
16
2020-03-11T08:25:46.000Z
2022-03-02T08:14:40.000Z
disturbance/migrations/0267_auto_20210711_1208.py
jawaidm/disturbance
4188e816239b9447a58a987d16dd0f05bc6aad53
[ "Apache-2.0" ]
9
2020-01-30T17:37:38.000Z
2021-09-30T02:22:24.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2021-07-11 04:08 from __future__ import unicode_literals
32.939394
73
0.587856
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2021-07-11 04:08 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('disturbance', '0266_auto_20210708_1640'), ] operations = [ migrations.AddF...
0
0
0
1,994
0
0
0
19
46
d4975d812aa56d965dedc021abeae297e292f266
1,650
py
Python
build/android/adb_profile_xwalk.py
gaurangkumar/crosswalk
1b9b80835e83e77390bd6cdbc03beb63f2a6f550
[ "BSD-3-Clause" ]
2,211
2015-01-01T08:50:09.000Z
2022-03-30T02:48:16.000Z
build/android/adb_profile_xwalk.py
gaurangkumar/crosswalk
1b9b80835e83e77390bd6cdbc03beb63f2a6f550
[ "BSD-3-Clause" ]
1,269
2015-01-02T10:43:16.000Z
2020-01-17T00:58:09.000Z
build/android/adb_profile_xwalk.py
gaurangkumar/crosswalk
1b9b80835e83e77390bd6cdbc03beb63f2a6f550
[ "BSD-3-Clause" ]
585
2015-01-02T01:12:15.000Z
2022-03-09T07:07:18.000Z
#!/usr/bin/env python # # Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # Copyright (c) 2014 Intel Corporation. All rights reserved. # Use of this source code is governed by a BSD-style license that can b...
29.464286
78
0.749697
#!/usr/bin/env python # # Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # Copyright (c) 2014 Intel Corporation. All rights reserved. # Use of this source code is governed by a BSD-style license that can b...
0
0
0
0
0
449
0
4
68
97eac6d4984d6c7cf82f679600d677aae6b3f6a2
814
py
Python
setup.py
interactions-py/enhanced
d9799464bdab23c171fe790dd7a763ac9dd92eee
[ "MIT" ]
4
2022-03-12T03:14:12.000Z
2022-03-23T15:56:14.000Z
setup.py
interactions-py/enhanced
d9799464bdab23c171fe790dd7a763ac9dd92eee
[ "MIT" ]
2
2022-03-16T02:21:08.000Z
2022-03-29T03:18:59.000Z
setup.py
interactions-py/enhanced
d9799464bdab23c171fe790dd7a763ac9dd92eee
[ "MIT" ]
null
null
null
from setuptools import setup with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setup( name="enhanced", version="4.0.0", description="Enhanced interactions for interactions.py", long_description=long_description, long_description_content_type="text/markdown", ...
29.071429
60
0.644963
from setuptools import setup with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setup( name="enhanced", version="4.0.0", description="Enhanced interactions for interactions.py", long_description=long_description, long_description_content_type="text/markdown", ...
0
0
0
0
0
0
0
0
0
739a497ac7f435d24ff346cd7c79613e917bdbb4
5,308
py
Python
src/python/pull_requests/menu.py
bvdeenen/bitbar
4bd0876dacecc55f2cb60027510ba47ff7d84d12
[ "MIT" ]
null
null
null
src/python/pull_requests/menu.py
bvdeenen/bitbar
4bd0876dacecc55f2cb60027510ba47ff7d84d12
[ "MIT" ]
null
null
null
src/python/pull_requests/menu.py
bvdeenen/bitbar
4bd0876dacecc55f2cb60027510ba47ff7d84d12
[ "MIT" ]
null
null
null
from ..common.config import get_logger from ..common.util import get_absolute_path_to_repo_file logger = get_logger(__name__) open_multiple_urls = get_absolute_path_to_repo_file('src/open-multiple-urls.sh')
41.795276
118
0.683685
import itertools from typing import List, Dict from .config import PullRequestsConstants from .domain import PullRequest, PullRequestSort, PullRequestStatus, PullRequestsOverview, PullRequestException from .notification import send_notification_pr from ..common.config import get_logger from ..common.icons import Icon,...
4
0
0
0
0
4,691
0
155
248
fda7626c94b77811ec4a56e243a28182a9495ac4
4,598
py
Python
tests/posts_templatetags/tests.py
samuelmaudo/marchena
e9a522a9be66f7043aa61e316f7e733e8ccf1e32
[ "BSD-3-Clause" ]
null
null
null
tests/posts_templatetags/tests.py
samuelmaudo/marchena
e9a522a9be66f7043aa61e316f7e733e8ccf1e32
[ "BSD-3-Clause" ]
null
null
null
tests/posts_templatetags/tests.py
samuelmaudo/marchena
e9a522a9be66f7043aa61e316f7e733e8ccf1e32
[ "BSD-3-Clause" ]
null
null
null
# -*- coding:utf-8 -*- from __future__ import unicode_literals
28.036585
115
0.597434
# -*- coding:utf-8 -*- from __future__ import unicode_literals from django.test import SimpleTestCase from yepes.test_mixins import TemplateTagsMixin from marchena.modules.posts.templatetags.posts import ( CalendarTag, GetArchivesTag, GetCategoryTag, GetCategoriesTag, GetNextPostTag, GetPopu...
0
0
0
3,931
0
0
0
509
92
a6745ce4b94e00cc9b78ece31861fa3b258dc893
1,740
py
Python
setup.py
ysuter/DeepNeuro
f6a4a9d0960c696fb73dfcc1093bfd8496b0b6ed
[ "MIT" ]
113
2017-10-15T23:22:02.000Z
2022-01-22T19:33:39.000Z
setup.py
ysuter/DeepNeuro
f6a4a9d0960c696fb73dfcc1093bfd8496b0b6ed
[ "MIT" ]
39
2017-10-02T18:23:33.000Z
2021-01-10T03:02:43.000Z
setup.py
ysuter/DeepNeuro
f6a4a9d0960c696fb73dfcc1093bfd8496b0b6ed
[ "MIT" ]
39
2017-10-15T23:22:05.000Z
2021-08-31T14:02:56.000Z
"""DeepNeuro: A deep learning python package for neuroimaging data. Created by the Quantitative Tumor Imaging Lab at the Martinos Center (Harvard-MIT Program in Health, Sciences, and Technology / Massachussets General Hospital). """ DOCLINES = __doc__.split("\n") import sys from setuptools import setup, find_pack...
42.439024
262
0.659195
"""DeepNeuro: A deep learning python package for neuroimaging data. Created by the Quantitative Tumor Imaging Lab at the Martinos Center (Harvard-MIT Program in Health, Sciences, and Technology / Massachussets General Hospital). """ DOCLINES = __doc__.split("\n") import sys from setuptools import setup, find_pack...
0
0
0
0
0
0
0
0
44
fb1a8e971ff4bcd9956b2507666420e60420eb72
960
py
Python
coralquant/spider/bs_sz50_stocks.py
dabuc/CoralQuant
26ba2e0b39a897d8947166796c6a4e9f5ab202fa
[ "MIT" ]
null
null
null
coralquant/spider/bs_sz50_stocks.py
dabuc/CoralQuant
26ba2e0b39a897d8947166796c6a4e9f5ab202fa
[ "MIT" ]
null
null
null
coralquant/spider/bs_sz50_stocks.py
dabuc/CoralQuant
26ba2e0b39a897d8947166796c6a4e9f5ab202fa
[ "MIT" ]
null
null
null
from coralquant.models.odl_model import BS_SZ50_Stocks import baostock as bs import pandas as pd from coralquant.database import engine from coralquant.settings import CQ_Config def get_sz50_stocks(): """ 50 """ # BS_SZ50_Stocks.del_all_data() # lg = bs.login() # print('login res...
25.945946
108
0.690625
from coralquant.models.odl_model import BS_SZ50_Stocks import baostock as bs import pandas as pd from sqlalchemy import String from coralquant.database import engine from coralquant.settings import CQ_Config def get_sz50_stocks(): """ 获取上证50成分股数据 """ #删除数据 BS_SZ50_Stocks.del_all_data() # 登陆系统 ...
168
0
0
0
0
0
0
8
22
7eee30bb582ba5ab6b61fd5ba6e6d77feca738b4
235
py
Python
pyswarms/utils/search/__init__.py
goncalogteixeira/pyswarns
c18d61e40f582e54a3a23f0b55c1fff43ec6a5bd
[ "MIT" ]
959
2017-07-23T11:30:24.000Z
2022-03-30T14:10:55.000Z
pyswarms/utils/search/__init__.py
goncalogteixeira/pyswarns
c18d61e40f582e54a3a23f0b55c1fff43ec6a5bd
[ "MIT" ]
335
2017-07-22T07:22:46.000Z
2022-03-24T13:09:15.000Z
pyswarms/utils/search/__init__.py
goncalogteixeira/pyswarns
c18d61e40f582e54a3a23f0b55c1fff43ec6a5bd
[ "MIT" ]
363
2017-07-25T01:58:23.000Z
2022-03-28T17:19:11.000Z
""" The :mod:`pyswarms.utils.search` module implements various techniques in hyperparameter value optimization. """ from .grid_search import GridSearch from .random_search import RandomSearch __all__ = ["GridSearch", "RandomSearch"]
23.5
72
0.791489
""" The :mod:`pyswarms.utils.search` module implements various techniques in hyperparameter value optimization. """ from .grid_search import GridSearch from .random_search import RandomSearch __all__ = ["GridSearch", "RandomSearch"]
0
0
0
0
0
0
0
0
0
d2739cc17fbb8439caf847f29094b14cd0a43ae8
3,203
py
Python
analysis_data/AnalysisResult.py
solmannn/alu
1e31b8a39a4718f32b4a8d3f5614553744fd2aad
[ "MIT" ]
null
null
null
analysis_data/AnalysisResult.py
solmannn/alu
1e31b8a39a4718f32b4a8d3f5614553744fd2aad
[ "MIT" ]
null
null
null
analysis_data/AnalysisResult.py
solmannn/alu
1e31b8a39a4718f32b4a8d3f5614553744fd2aad
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------- # Copyright 2018-2020, Christian Pilato <christian.pilato@polimi.it> # # 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 Lic...
61.596154
291
0.55167
# ------------------------------------------------------------------------------- # Copyright 2018-2020, Christian Pilato <christian.pilato@polimi.it> # # 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 Lic...
0
0
0
2,379
0
0
0
0
46
0f1c48a7f94fc42da2ea79d6bd12b1264ea44199
313
py
Python
labs/04_conv_nets_2/solutions/geom_avg.py
souillade/Deep
3d79384638220376deb7c4c656cfb9cc497998ad
[ "MIT" ]
1
2017-11-30T17:25:08.000Z
2017-11-30T17:25:08.000Z
labs/04_conv_nets_2/solutions/geom_avg.py
souillade/Deep
3d79384638220376deb7c4c656cfb9cc497998ad
[ "MIT" ]
null
null
null
labs/04_conv_nets_2/solutions/geom_avg.py
souillade/Deep
3d79384638220376deb7c4c656cfb9cc497998ad
[ "MIT" ]
null
null
null
heatmap_1_r = imresize(heatmap_1, (50,80)).astype("float32") heatmap_2_r = imresize(heatmap_2, (50,80)).astype("float32") heatmap_3_r = imresize(heatmap_3, (50,80)).astype("float32") heatmap_geom_avg = np.power(heatmap_1_r * heatmap_2_r * heatmap_3_r, 0.333) display_img_and_heatmap("dog.jpg", heatmap_geom_avg)
44.714286
75
0.766773
heatmap_1_r = imresize(heatmap_1, (50,80)).astype("float32") heatmap_2_r = imresize(heatmap_2, (50,80)).astype("float32") heatmap_3_r = imresize(heatmap_3, (50,80)).astype("float32") heatmap_geom_avg = np.power(heatmap_1_r * heatmap_2_r * heatmap_3_r, 0.333) display_img_and_heatmap("dog.jpg", heatmap_geom_avg)
0
0
0
0
0
0
0
0
0
fd81f46f8c005602f66b88f3c0b86953d5e2ec77
33,356
py
Python
named-entity-recognizer.py
YNedderhoff/sentiment-classifier
13d28217f81c21562e5b79f0f85309a968ee534a
[ "MIT" ]
1
2017-06-26T15:43:23.000Z
2017-06-26T15:43:23.000Z
named-entity-recognizer.py
YNedderhoff/sentiment-classifier
13d28217f81c21562e5b79f0f85309a968ee534a
[ "MIT" ]
null
null
null
named-entity-recognizer.py
YNedderhoff/sentiment-classifier
13d28217f81c21562e5b79f0f85309a968ee534a
[ "MIT" ]
null
null
null
import codecs import time import cPickle import gzip import random import os import math import modules.token as tk import modules.perceptron as perceptron import modules.lmi as lmi from modules.evaluation import evaluate from modules.affixes import find_affixes if __name__ == '__main__': t0 = time.time() ...
50.770167
130
0.505067
import codecs import time import cPickle import gzip import random import os import math import modules.token as tk import modules.perceptron as perceptron import modules.lmi as lmi from modules.evaluation import evaluate from modules.affixes import find_affixes class posTagger: def __init__(self): p...
0
0
0
29,887
0
0
0
0
23
5f31560a74d5dfb63e7c3127102442b9295b9807
386
py
Python
src/python/pants/init/bootstrap_scheduler.py
rcuza/pants
0429258b181986eed856ae45af93b776727774a0
[ "Apache-2.0" ]
1,806
2015-01-05T07:31:00.000Z
2022-03-31T11:35:41.000Z
src/python/pants/init/bootstrap_scheduler.py
rcuza/pants
0429258b181986eed856ae45af93b776727774a0
[ "Apache-2.0" ]
9,565
2015-01-02T19:01:59.000Z
2022-03-31T23:25:16.000Z
src/python/pants/init/bootstrap_scheduler.py
rcuza/pants
0429258b181986eed856ae45af93b776727774a0
[ "Apache-2.0" ]
443
2015-01-06T20:17:57.000Z
2022-03-31T05:28:17.000Z
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE).
27.571429
85
0.784974
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from dataclasses import dataclass from pants.engine.internals.scheduler import Scheduler @dataclass(frozen=True) class BootstrapScheduler: """A Scheduler that has been configured wi...
0
140
0
0
0
0
0
45
69
20f7b957862e865fca511976b35c043c5e91e60d
756
py
Python
django_bootstrap_dynamic_formsets/templatetags/bootstrap_dynamic_formsets.py
AHouy/django-bootstrap-dynamic-formsets
d8b99a43b185c0cdf3137ebc25d6ba13d5032644
[ "MIT" ]
23
2015-06-15T20:24:33.000Z
2021-12-22T07:18:45.000Z
django_bootstrap_dynamic_formsets/templatetags/bootstrap_dynamic_formsets.py
AHouy/django-bootstrap-dynamic-formsets
d8b99a43b185c0cdf3137ebc25d6ba13d5032644
[ "MIT" ]
9
2015-06-16T18:11:16.000Z
2018-04-04T15:45:08.000Z
django_bootstrap_dynamic_formsets/templatetags/bootstrap_dynamic_formsets.py
AHouy/django-bootstrap-dynamic-formsets
d8b99a43b185c0cdf3137ebc25d6ba13d5032644
[ "MIT" ]
19
2015-06-16T08:04:29.000Z
2021-03-12T23:51:17.000Z
from django import template register = template.Library()
47.25
104
0.747354
from django import template from django.utils.html import format_html register = template.Library() @register.inclusion_tag('django_bootstrap_dynamic_formsets/dynamic_formsets.html') def bootstrap_dynamic_formset(formset, can_order=False, can_delete=False, form_wrapper="well", layout=""...
0
609
0
0
0
0
0
20
68
29b5f73253e00d865823d44734062de6df02df9d
22,805
py
Python
gen/acl_pb2.py
zizon/prpc
a075256eb55a31a535aa5e7fd0d00a78b3b44966
[ "MIT" ]
null
null
null
gen/acl_pb2.py
zizon/prpc
a075256eb55a31a535aa5e7fd0d00a78b3b44966
[ "MIT" ]
null
null
null
gen/acl_pb2.py
zizon/prpc
a075256eb55a31a535aa5e7fd0d00a78b3b44966
[ "MIT" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: acl.proto from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) import hdfs_pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='acl.proto', package='hadoop.hdfs', ...
34.500756
2,158
0.75979
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: acl.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) imp...
0
0
0
2,885
0
0
0
58
366
af81ed36e1f1184d64fb2de2e30627cacf0e71cb
8,288
py
Python
docs/generate_class1_pan.py
eyeshoe/mhcflurry
b87aac3cf1a782cb1235f9b724388bbdd933d9fb
[ "Apache-2.0" ]
1
2020-01-01T23:06:01.000Z
2020-01-01T23:06:01.000Z
docs/generate_class1_pan.py
eyeshoe/mhcflurry
b87aac3cf1a782cb1235f9b724388bbdd933d9fb
[ "Apache-2.0" ]
null
null
null
docs/generate_class1_pan.py
eyeshoe/mhcflurry
b87aac3cf1a782cb1235f9b724388bbdd933d9fb
[ "Apache-2.0" ]
null
null
null
""" Generate certain RST files used in documentation. """ from __future__ import print_function import sys import argparse from mhcflurry.downloads import get_path from mhcflurry.amino_acid import COMMON_AMINO_ACIDS AMINO_ACIDS = sorted(COMMON_AMINO_ACIDS) parser = argparse.ArgumentParser(usage=__doc__) parser.add_a...
30.470588
89
0.628016
""" Generate certain RST files used in documentation. """ from __future__ import print_function import sys import argparse from collections import OrderedDict, defaultdict import os from os.path import join, exists from os import mkdir import pandas import logomaker from matplotlib import pyplot from mhcflurry.downl...
0
0
0
0
0
6,353
0
20
248
8052c6f74b616a1d0ff9897edcd89cb694062362
25,872
py
Python
face_detector/face_detector_google3.py
michaelmurdock/py_ml_projects
fbfaa6e6b10f413f8810b642d2e6144f18e163a0
[ "BSD-2-Clause" ]
null
null
null
face_detector/face_detector_google3.py
michaelmurdock/py_ml_projects
fbfaa6e6b10f413f8810b642d2e6144f18e163a0
[ "BSD-2-Clause" ]
null
null
null
face_detector/face_detector_google3.py
michaelmurdock/py_ml_projects
fbfaa6e6b10f413f8810b642d2e6144f18e163a0
[ "BSD-2-Clause" ]
null
null
null
# face_detector_google3.py # # This version expects a source folder containing folders of images, # as you get with the LFW distribution. # Each folder is named for one person and that folder should contain # only photos of that person. # # Environment Variable: GOOGLE_APPLICATION_CREDENTIALS # C:\pyDev\__My Scripts\f...
35.933333
219
0.681548
# face_detector_google3.py # # This version expects a source folder containing folders of images, # as you get with the LFW distribution. # Each folder is named for one person and that folder should contain # only photos of that person. # # Environment Variable: GOOGLE_APPLICATION_CREDENTIALS # C:\pyDev\__My Scripts\f...
0
71
0
908
0
130
0
88
201
a4bc2186bb3e8677879261e010f1cfbd360c8359
1,502
py
Python
msoft-format.py
wallscope-research/incremental-asr-evaluation
d4e79b49b8b309888992ed96bd69d3d624098abf
[ "Apache-2.0" ]
null
null
null
msoft-format.py
wallscope-research/incremental-asr-evaluation
d4e79b49b8b309888992ed96bd69d3d624098abf
[ "Apache-2.0" ]
null
null
null
msoft-format.py
wallscope-research/incremental-asr-evaluation
d4e79b49b8b309888992ed96bd69d3d624098abf
[ "Apache-2.0" ]
null
null
null
from universal import process, clean_csv, add_trans_chunk import sys import re # The infile is the system trancript. infile = sys.argv[1] # Using the system output name, the relevant universal format and full transcripts are gathered. filename_prep = re.search(r"(?<=system-output\/)(.*?)(?=\.txt)", infile).group(0) o...
39.526316
96
0.654461
from universal import process, clean_csv, add_trans_chunk import sys import re # The infile is the system trancript. infile = sys.argv[1] # Using the system output name, the relevant universal format and full transcripts are gathered. filename_prep = re.search(r"(?<=system-output\/)(.*?)(?=\.txt)", infile).group(0) o...
0
0
0
0
0
0
0
0
0
8ab199c3c2b997aeba40c8874ef806a8674f8b19
49
py
Python
Flask-todolist-Sqlite3-master/venv/lib/python3.6/tokenize.py
IncredibleDraco/MyScholar
272aafa33f7227d1bc0d937d046788cbabede453
[ "Apache-2.0" ]
null
null
null
Flask-todolist-Sqlite3-master/venv/lib/python3.6/tokenize.py
IncredibleDraco/MyScholar
272aafa33f7227d1bc0d937d046788cbabede453
[ "Apache-2.0" ]
null
null
null
Flask-todolist-Sqlite3-master/venv/lib/python3.6/tokenize.py
IncredibleDraco/MyScholar
272aafa33f7227d1bc0d937d046788cbabede453
[ "Apache-2.0" ]
1
2019-11-25T10:25:21.000Z
2019-11-25T10:25:21.000Z
/home/sheldon/anaconda3/lib/python3.6/tokenize.py
49
49
0.836735
/home/sheldon/anaconda3/lib/python3.6/tokenize.py
0
0
0
0
0
0
0
0
0
6e510c7e69d1c10e4a1f13a06328e422101135ca
2,202
py
Python
tests/test_rebar.py
SurajDadral/pyconcrete
479cce3fbe6754243b1df7c555ed1ac66ab6b23e
[ "MIT" ]
19
2019-03-27T18:34:38.000Z
2021-10-29T23:44:04.000Z
tests/test_rebar.py
SurajDadral/pyconcrete
479cce3fbe6754243b1df7c555ed1ac66ab6b23e
[ "MIT" ]
1
2019-07-19T02:48:47.000Z
2019-07-23T04:40:54.000Z
tests/test_rebar.py
SurajDadral/pyconcrete
479cce3fbe6754243b1df7c555ed1ac66ab6b23e
[ "MIT" ]
7
2019-05-20T05:49:37.000Z
2021-12-27T23:41:23.000Z
# def test_real_length(r1, lr1, ur1): # assert r1.real_length == 5 # assert lr1.real_length == 200 # assert ur1.real_length == 250
17.902439
71
0.565395
import pytest import copy from pyconcrete import rebar @pytest.fixture def r1(): r = rebar.Rebar( length=5, diameter=20, count=1, insert=(0, 0)) return r @pytest.fixture def lr1(): r = rebar.LRebar( length=5, diameter=20, count=2, insert=(...
0
429
0
0
0
1,140
0
-11
481
e3d7dce2a490922ec373ed82c8d9594a8acddd24
3,212
py
Python
gui/qt_ui/EditGridQT.py
victorgabr/pps
dfe3fae64fd4dedde85204643f9c797c0373f96c
[ "BSD-3-Clause" ]
7
2018-11-18T07:11:05.000Z
2021-05-06T21:53:40.000Z
gui/qt_ui/EditGridQT.py
victorgabr/pps
dfe3fae64fd4dedde85204643f9c797c0373f96c
[ "BSD-3-Clause" ]
9
2019-09-23T16:34:09.000Z
2020-05-26T18:49:43.000Z
gui/qt_ui/EditGridQT.py
victorgabr/pps
dfe3fae64fd4dedde85204643f9c797c0373f96c
[ "BSD-3-Clause" ]
2
2019-04-18T14:34:31.000Z
2019-06-19T19:34:33.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'C:\Users\Victor\Dropbox\DFR\film2dose\qt_ui\edit_grid.ui' # # Created: Tue Sep 29 14:53:43 2015 # by: pyside-uic 0.2.15 running on PySide 1.2.2 # # WARNING! All changes made in this file will be lost!
48.666667
118
0.683064
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'C:\Users\Victor\Dropbox\DFR\film2dose\qt_ui\edit_grid.ui' # # Created: Tue Sep 29 14:53:43 2015 # by: pyside-uic 0.2.15 running on PySide 1.2.2 # # WARNING! All changes made in this file will be lost! from PySide import QtCore, QtGui ...
0
0
0
2,869
0
0
0
11
46
8971cf7bdc03885b5b25374ac539e3a70ab2dcbe
32,516
py
Python
pymwts/pymwtsio/tests/infiles/mwts_inputs_example/mwts_makedat.py
misken/pymwts
8e301b5badbd65f5dec8894ccbe0f0859785d20c
[ "MIT" ]
null
null
null
pymwts/pymwtsio/tests/infiles/mwts_inputs_example/mwts_makedat.py
misken/pymwts
8e301b5badbd65f5dec8894ccbe0f0859785d20c
[ "MIT" ]
null
null
null
pymwts/pymwtsio/tests/infiles/mwts_inputs_example/mwts_makedat.py
misken/pymwts
8e301b5badbd65f5dec8894ccbe0f0859785d20c
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------------- # Name: mwts_makedat # Purpose: mwts dat file creation # # Author: isken # # Created: 28/09/2011 # Copyright: (c) isken 2011 # Licence: <your licence> #-------------------------------------------------------------...
32.451098
164
0.605548
#------------------------------------------------------------------------------- # Name: mwts_makedat # Purpose: mwts dat file creation # # Author: isken # # Created: 28/09/2011 # Copyright: (c) isken 2011 # Licence: <your licence> #-------------------------------------------------------------...
0
0
0
0
0
5,173
0
-23
182
449d1fc3442d6fde6ba47c80a9453ec71f482f75
914
py
Python
11_gsflow/Check sagehen control file.py
pnorton-usgs/notebooks
17a38ecd3f3c052b9bd785c2e53e16a9082d1e71
[ "MIT" ]
null
null
null
11_gsflow/Check sagehen control file.py
pnorton-usgs/notebooks
17a38ecd3f3c052b9bd785c2e53e16a9082d1e71
[ "MIT" ]
null
null
null
11_gsflow/Check sagehen control file.py
pnorton-usgs/notebooks
17a38ecd3f3c052b9bd785c2e53e16a9082d1e71
[ "MIT" ]
null
null
null
# --- # jupyter: # jupytext: # formats: ipynb,py:percent # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.13.7 # kernelspec: # display_name: Python [conda env:bandit_38] # language: python # name: conda-env-bandi...
17.576923
91
0.666302
# --- # jupyter: # jupytext: # formats: ipynb,py:percent # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.13.7 # kernelspec: # display_name: Python [conda env:bandit_38] # language: python # name: conda-env-bandi...
0
0
0
0
0
0
0
0
0
909094cdb2b9de5d6070c452b32d0ee249e210c5
1,999
py
Python
Arithmetic Exam Application/arithmetic.py
andreimaftei28/projects-on-JetBrainAcademy
8c2b8ab7bab5757db94e9f0b6d55c33852f64ee1
[ "MIT" ]
null
null
null
Arithmetic Exam Application/arithmetic.py
andreimaftei28/projects-on-JetBrainAcademy
8c2b8ab7bab5757db94e9f0b6d55c33852f64ee1
[ "MIT" ]
null
null
null
Arithmetic Exam Application/arithmetic.py
andreimaftei28/projects-on-JetBrainAcademy
8c2b8ab7bab5757db94e9f0b6d55c33852f64ee1
[ "MIT" ]
null
null
null
level1 = "simple operations with numbers 2-9" level2 = "integral squares of 11-29" message = f"Which level do you want? Enter a number:\n1 - {level1}\n2 - {level2}\n " user_choice = choose_level(input(message)) while user_choice == "Incorrect format.": print(user_choice) user_choice = choose_level(input(me...
28.15493
102
0.563782
import random def operations(*args): if len(args) > 1: var1, oper, var2 = args if oper == "+": return var1 + var2 elif oper == "-": return var1 - var2 elif oper == "*": return var1 * var2 else: return args[0] ** 2 def int_or_float(v...
0
0
0
0
0
1,137
0
-8
114
6c8c72e97a9e8e3f052049a4d52baeae902f0f4a
700
py
Python
tests/vocab_test.py
samuela/happyentropy
be7ac0ef255ac4336c7903b9e4e3ad36065fda9d
[ "MIT" ]
null
null
null
tests/vocab_test.py
samuela/happyentropy
be7ac0ef255ac4336c7903b9e4e3ad36065fda9d
[ "MIT" ]
null
null
null
tests/vocab_test.py
samuela/happyentropy
be7ac0ef255ac4336c7903b9e4e3ad36065fda9d
[ "MIT" ]
null
null
null
import unittest if __name__ == '__main__': unittest.main()
29.166667
49
0.737143
import unittest from happyentropy import vocab def all_unique(lst): return len(set(lst)) == len(lst) class VocabTest(unittest.TestCase): def testLengths(self): self.assertEqual(len(vocab.COUNTS), 32) self.assertEqual(len(vocab.ADJECTIVES), 128) self.assertEqual(len(vocab.ANIMALS), 128) self.assert...
0
0
0
527
0
34
0
9
68