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
40d79aca453e61a44a47162edc53655dda9e02f5
852
py
Python
click.py
guillaumep/three-colors
181603b5f5ab3e090033f38d7af2d5b098e35c7d
[ "MIT", "Unlicense" ]
null
null
null
click.py
guillaumep/three-colors
181603b5f5ab3e090033f38d7af2d5b098e35c7d
[ "MIT", "Unlicense" ]
null
null
null
click.py
guillaumep/three-colors
181603b5f5ab3e090033f38d7af2d5b098e35c7d
[ "MIT", "Unlicense" ]
null
null
null
#!/usr/bin/python # This Python CGI script will write the color into a log file # The log data will be agregated in a separate program and be sent to graphite import os import sys import time import fcntl import socket import urlparse #import cgitb #cgitb.enable() print "Content-Type: text/html" # end of headers pr...
21.3
78
0.692488
#!/usr/bin/python # This Python CGI script will write the color into a log file # The log data will be agregated in a separate program and be sent to graphite import os import sys import time import fcntl import socket import urlparse #import cgitb #cgitb.enable() print "Content-Type: text/html" # end of headers pr...
0
0
0
0
0
0
0
0
0
f5a3c926acbc8ae68134c696bbed7354c43c69fe
1,108
py
Python
underworld/swarm/__init__.py
longgangfan/underworld2
5c8acc17fa4d97e86a62b13b8bfb2af6e81a8ee4
[ "CC-BY-4.0" ]
116
2015-09-28T10:30:55.000Z
2022-03-22T04:12:38.000Z
underworld/swarm/__init__.py
longgangfan/underworld2
5c8acc17fa4d97e86a62b13b8bfb2af6e81a8ee4
[ "CC-BY-4.0" ]
561
2015-09-29T06:05:50.000Z
2022-03-22T23:37:29.000Z
underworld/swarm/__init__.py
longgangfan/underworld2
5c8acc17fa4d97e86a62b13b8bfb2af6e81a8ee4
[ "CC-BY-4.0" ]
68
2015-12-14T21:57:46.000Z
2021-08-25T04:54:26.000Z
##~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~## ## ## ## This file forms part of the Underworld geophysics modelling application. ## ## ...
52.761905
125
0.462996
##~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~## ## ## ## This file forms part of the Underworld geophysics modelling application. ## ## ...
0
0
0
0
0
0
0
178
155
50b7f44c5e96b695b170a3718f8a136408174db5
2,293
py
Python
originscript.py
angelacarver/python-file-io
dbc796bcfafb51af8d7539dd0b8c0d2d3056e76e
[ "CC-BY-4.0" ]
null
null
null
originscript.py
angelacarver/python-file-io
dbc796bcfafb51af8d7539dd0b8c0d2d3056e76e
[ "CC-BY-4.0" ]
null
null
null
originscript.py
angelacarver/python-file-io
dbc796bcfafb51af8d7539dd0b8c0d2d3056e76e
[ "CC-BY-4.0" ]
null
null
null
#! /usr/bin/env python3 import re def record_all_occurences(in_stream, out_stream, target_regex): """ Uses find_iter function to find all occurrences of target_regex in in_stream and writes them to out_stream with the line index. Parameters ---------- in_stream The text to search ...
27.963415
93
0.66027
#! /usr/bin/env python3 import sys import re def find_iter(target_regex, in_stream, out_stream): """ Iterates over all matches of 'target_regex' found in origin.txt. Parameters ---------- target_regex the regular expression that is searched for in in_stream in_stream the ...
0
0
0
0
746
0
0
-11
46
906fe8862d239a5f3b51deb6a113aeba4f83476d
1,240
py
Python
tests/test_convnet.py
MaggieQi/spartan
24b9f977d0a9ae99e672bf90d80a0f22ac41d133
[ "Apache-2.0" ]
null
null
null
tests/test_convnet.py
MaggieQi/spartan
24b9f977d0a9ae99e672bf90d80a0f22ac41d133
[ "Apache-2.0" ]
null
null
null
tests/test_convnet.py
MaggieQi/spartan
24b9f977d0a9ae99e672bf90d80a0f22ac41d133
[ "Apache-2.0" ]
null
null
null
N_COLORS = 3 IMG_SIZE = (N_COLORS, 16, 16) FILTER_SIZE = (5, 5) N_IMGS = 1 N_FILTERS = 1 ONE_TILE = (10000, 10000, 10000, 10000)
27.555556
74
0.632258
from spartan import expr, util from test_common import with_ctx from math import sqrt import parakeet from spartan.expr import stencil N_COLORS = 3 IMG_SIZE = (N_COLORS, 16, 16) FILTER_SIZE = (5, 5) N_IMGS = 1 N_FILTERS = 1 ONE_TILE = (10000, 10000, 10000, 10000) @with_ctx def test_convnet(ctx): hint = util.divup(...
0
951
0
0
0
0
0
25
133
08188d8fcebb711b9c37a0e1f04ef30897443009
2,123
py
Python
app/auth/apis.py
fnkr/POSS
792369f95eb46227d5a4a78ac7d952f70c3c0799
[ "MIT" ]
2
2015-03-27T11:52:38.000Z
2017-03-13T01:14:41.000Z
app/auth/apis.py
fnkr/poss
792369f95eb46227d5a4a78ac7d952f70c3c0799
[ "MIT" ]
24
2019-09-27T20:44:06.000Z
2021-11-12T04:12:06.000Z
app/auth/apis.py
fnkr/POSS
792369f95eb46227d5a4a78ac7d952f70c3c0799
[ "MIT" ]
2
2019-10-22T22:12:39.000Z
2020-07-06T12:18:03.000Z
# SQLAlchemy # POSS Models
27.571429
100
0.577956
# SQLAlchemy from app import db # POSS Models from .models import User from .models import ApiKey class AuthError(): auth_error = True def __init__(self, reason, auth_method): self.auth_method = auth_method self.auth_error_reason = reason def auth_error_nouser(self): if self.aut...
0
0
0
516
0
1,460
0
5
112
e056aa88bacedc63a2af2ecac62ddbc78e496656
2,017
py
Python
tests/python_ref/pad_nchw.py
T-head-Semi/csi-nn2
bca6d703fa9d87d6f47c1182f0c3834f5d75b935
[ "Apache-2.0" ]
9
2021-10-18T09:04:47.000Z
2022-03-17T22:54:58.000Z
tests/python_ref/pad_nchw.py
T-head-Semi/csi-nn2
bca6d703fa9d87d6f47c1182f0c3834f5d75b935
[ "Apache-2.0" ]
null
null
null
tests/python_ref/pad_nchw.py
T-head-Semi/csi-nn2
bca6d703fa9d87d6f47c1182f0c3834f5d75b935
[ "Apache-2.0" ]
5
2021-10-20T18:29:21.000Z
2022-03-17T22:55:02.000Z
#!/usr/bin/python #-*- coding:utf-8 -*- if __name__ == '__main__': pad_f32() print("end")
32.015873
124
0.642043
#!/usr/bin/python #-*- coding:utf-8 -*- import sys import struct import numpy as np from torch import tensor from torch.nn import functional as fn def pad_f32(): para = [] # init the input data and parameters batch = int(np.random.randint(1, high=4, size=1)) in_size_x = int(np.random.randint(3...
0
0
0
0
0
1,786
0
-3
134
72559ca891207005e68986e01b7a6851760f0796
13,547
py
Python
libraries/openstackcli/openstackcli.py
akraino-edge-stack/ta-cloudtaf
af5eb3ff36b92ab1d9c156ffa0391eadc73eb6ba
[ "Apache-2.0" ]
null
null
null
libraries/openstackcli/openstackcli.py
akraino-edge-stack/ta-cloudtaf
af5eb3ff36b92ab1d9c156ffa0391eadc73eb6ba
[ "Apache-2.0" ]
1
2020-10-27T22:19:50.000Z
2020-10-27T22:19:51.000Z
libraries/openstackcli/openstackcli.py
akraino-edge-stack/ta-cloudtaf
af5eb3ff36b92ab1d9c156ffa0391eadc73eb6ba
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Nokia # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softwa...
33.449383
86
0.575773
# Copyright 2019 Nokia # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softwa...
0
1,551
0
11,089
0
0
0
-3
271
444dd7f260ff02e4a47747089147a93ac0ba9000
492
py
Python
examples/parse-text.py
nicolamelluso/graphbrain
c0740ab89df60d709ee2914beb5379619e4e1470
[ "MIT" ]
1
2021-04-24T04:52:31.000Z
2021-04-24T04:52:31.000Z
examples/parse-text.py
nicolamelluso/graphbrain
c0740ab89df60d709ee2914beb5379619e4e1470
[ "MIT" ]
null
null
null
examples/parse-text.py
nicolamelluso/graphbrain
c0740ab89df60d709ee2914beb5379619e4e1470
[ "MIT" ]
1
2020-12-23T11:20:43.000Z
2020-12-23T11:20:43.000Z
if __name__ == '__main__': text = """ Satellites from NASA and other agencies have been tracking sea ice changes since 1979. """ parser = create_parser('en', lemmas=True) parses = parser.parse(text) for parse in parses: print_tree(parse['spacy_sentence'].root) print(parse...
24.6
78
0.630081
from graphbrain import * from graphbrain.parsers import * if __name__ == '__main__': text = """ Satellites from NASA and other agencies have been tracking sea ice changes since 1979. """ parser = create_parser('en', lemmas=True) parses = parser.parse(text) for parse in parses: pr...
0
0
0
0
0
0
0
14
44
deb9f4682efd7656071046eb7e1f6915050a46b1
1,089
py
Python
spinner.py
DevDito/HACKTOBERFEST2021_PATTERN
99fe7fb38fb49580341501034164c730c4a88592
[ "MIT" ]
null
null
null
spinner.py
DevDito/HACKTOBERFEST2021_PATTERN
99fe7fb38fb49580341501034164c730c4a88592
[ "MIT" ]
null
null
null
spinner.py
DevDito/HACKTOBERFEST2021_PATTERN
99fe7fb38fb49580341501034164c730c4a88592
[ "MIT" ]
null
null
null
# import object from module turtle # initial state of spinner is null (stable) state= {'turn':0 } # Draw fidget spinner # Animate fidget spinner # Flick fidget spinner # setup window screen setup(600, 400, 370, 0) bgcolor("black") tracer(False) # wing of fidget spinner width(60) color("orange") # keyboard key ...
15.557143
49
0.694215
# import object from module turtle from turtle import * # initial state of spinner is null (stable) state= {'turn':0 } # Draw fidget spinner def spin(): clear() # Angle of fidget spinner angle = state['turn']/10 # To rotate in clock wise we use right # for Anticlockwise rotation we use left right(angle) # m...
0
0
0
0
0
606
0
-1
88
4ee170bb1f619b21907927deddab695109cc5241
3,004
py
Python
homeassistant/components/proxmox/binary_sensor.py
erangaj/home-assistant
4e39c643a36b2be12b0fe13f047886c5f6f5c471
[ "Apache-2.0" ]
null
null
null
homeassistant/components/proxmox/binary_sensor.py
erangaj/home-assistant
4e39c643a36b2be12b0fe13f047886c5f6f5c471
[ "Apache-2.0" ]
1
2019-06-19T07:45:55.000Z
2019-06-19T08:00:42.000Z
homeassistant/components/proxmox/binary_sensor.py
erangaj/home-assistant
4e39c643a36b2be12b0fe13f047886c5f6f5c471
[ "Apache-2.0" ]
1
2019-06-19T07:43:11.000Z
2019-06-19T07:43:11.000Z
"""Support for binary sensors to display Proxmox VE data.""" import homeassistant.components.proxmox as proxmox DEVICE_CLASS = 'connectivity' ATTRIBUTION = 'Data provided by Proxmox'
29.742574
72
0.608522
"""Support for binary sensors to display Proxmox VE data.""" import homeassistant.components.proxmox as proxmox from homeassistant.components.binary_sensor import BinarySensorDevice from homeassistant.const import ATTR_ATTRIBUTION DEVICE_CLASS = 'connectivity' ATTRIBUTION = 'Data provided by Proxmox' async def async...
0
912
651
1,090
0
0
0
75
90
a356e157c28b14b0caff7bb4f123ce15992b510e
1,909
py
Python
checkers/terms.py
SpiroResearchGroup/twitter-capture-client
a43c82445da07a2b75be2c9762de9e7edca0454a
[ "BSD-3-Clause" ]
null
null
null
checkers/terms.py
SpiroResearchGroup/twitter-capture-client
a43c82445da07a2b75be2c9762de9e7edca0454a
[ "BSD-3-Clause" ]
null
null
null
checkers/terms.py
SpiroResearchGroup/twitter-capture-client
a43c82445da07a2b75be2c9762de9e7edca0454a
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """Term checker helper."""
27.666667
69
0.599267
#!/usr/bin/env python """Term checker helper.""" import logging class TermChecker(object): """Term Checker""" def __init__(self, server_messenger): """Initialize the termchecker.""" self.server_messenger = server_messenger self.current_terms = [] self.current_terms_set = se...
0
43
0
1,777
0
0
0
-7
46
a4c2f52474d04df443b356d5a6cb421781f75923
1,347
py
Python
DataStructures-Algorithms/Udacity-Python-DSA/Projects/Project0-Intro-to-CS/Task2.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
1
2020-11-14T18:28:13.000Z
2020-11-14T18:28:13.000Z
DataStructures-Algorithms/Udacity-Python-DSA/Projects/Project0-Intro-to-CS/Task2.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
null
null
null
DataStructures-Algorithms/Udacity-Python-DSA/Projects/Project0-Intro-to-CS/Task2.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
null
null
null
""" Read file into texts and calls. It's ok if you don't understand how to read files """ import csv with open('texts.csv', 'r') as f: reader = csv.reader(f) texts = list(reader) with open('calls.csv', 'r') as f: reader = csv.reader(f) calls = list(reader) """ TASK 2: Which telephone number spent the ...
31.325581
119
0.689681
""" Read file into texts and calls. It's ok if you don't understand how to read files """ import csv with open('texts.csv', 'r') as f: reader = csv.reader(f) texts = list(reader) with open('calls.csv', 'r') as f: reader = csv.reader(f) calls = list(reader) """ TASK 2: Which telephone number spent the ...
0
0
0
0
0
403
0
0
23
ed8c0410b4d66bb564bcb8e27b898525a80a0b35
10,688
py
Python
tests/conftest.py
lboclboc/k8s-gerrit
acc963c1b6e36b61ad266054f8f9ef86c23ee31d
[ "Apache-2.0" ]
11
2019-11-21T19:08:17.000Z
2022-03-22T11:15:29.000Z
tests/conftest.py
lboclboc/k8s-gerrit
acc963c1b6e36b61ad266054f8f9ef86c23ee31d
[ "Apache-2.0" ]
13
2020-07-01T03:12:13.000Z
2022-01-24T07:35:01.000Z
tests/conftest.py
lboclboc/k8s-gerrit
acc963c1b6e36b61ad266054f8f9ef86c23ee31d
[ "Apache-2.0" ]
11
2019-03-02T22:17:24.000Z
2022-02-15T03:28:21.000Z
# pylint: disable=W0613, W0212 # Copyright (C) 2018 The Android Open Source Project # # 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 ...
29.282192
87
0.654659
# pylint: disable=W0613, W0212 # Copyright (C) 2018 The Android Open Source Project # # 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 ...
0
4,967
0
664
0
3,560
0
-40
663
1f09bb7ac42201bc1936c02c5890666f923aacca
1,581
py
Python
server/manual.py
vadimpk/clash-royale-stats
bc47191681778a32d84241b0e7874192d436bdef
[ "Apache-2.0" ]
7
2020-11-29T19:51:04.000Z
2022-01-14T21:26:23.000Z
server/manual.py
vadimpk/clash-royale-stats
bc47191681778a32d84241b0e7874192d436bdef
[ "Apache-2.0" ]
null
null
null
server/manual.py
vadimpk/clash-royale-stats
bc47191681778a32d84241b0e7874192d436bdef
[ "Apache-2.0" ]
1
2020-12-29T01:14:45.000Z
2020-12-29T01:14:45.000Z
if __name__ == "__main__": main()
21.657534
162
0.534472
from manual_functions import add_player, start_new_season, delete_all, delete_one_player from get_data import get_clan_members from connect_db import db def main(): print("Choose an option:\nstart new season (sns)\nadd player (ap)\nadd clan (ac)\ndelete player (dp)\ndelete clan (dc)\ndelete all (da)\nparse unpars...
0
0
0
0
0
1,365
0
87
89
ac1d4abab170bf879fb5756b72bef4b16fa6125d
9,468
py
Python
mlflow/utils/autologging_utils.py
garciparedes/mlflow
b8e108351b6cc7aa449d4b06bf717930d8615f68
[ "Apache-2.0" ]
1
2020-12-24T19:22:34.000Z
2020-12-24T19:22:34.000Z
mlflow/utils/autologging_utils.py
garciparedes/mlflow
b8e108351b6cc7aa449d4b06bf717930d8615f68
[ "Apache-2.0" ]
null
null
null
mlflow/utils/autologging_utils.py
garciparedes/mlflow
b8e108351b6cc7aa449d4b06bf717930d8615f68
[ "Apache-2.0" ]
null
null
null
import inspect import functools import warnings import mlflow from mlflow.utils import gorilla INPUT_EXAMPLE_SAMPLE_ROWS = 5 ENSURE_AUTOLOGGING_ENABLED_TEXT = ( "please ensure that autologging is enabled before constructing the dataset." ) def try_mlflow_log(fn, *args, **kwargs): """ Catch exceptions a...
39.615063
99
0.689586
import inspect import functools import warnings import time import contextlib import mlflow from mlflow.utils import gorilla from mlflow.entities import Metric from mlflow.tracking.client import MlflowClient from mlflow.utils.validation import MAX_METRICS_PER_BATCH INPUT_EXAMPLE_SAMPLE_ROWS = 5 ENSURE_AUTOLOGGING_EN...
0
913
0
2,467
0
0
0
61
179
00bbbbadf59a555bb8ebf694c3a71485e56154f8
2,369
py
Python
nappy/espresso/espresso_in.py
ryokbys/nap
ddd0b5a5a956f7c335a22adb4f8e00f1d38a7804
[ "MIT" ]
27
2015-10-05T06:21:28.000Z
2021-10-04T17:08:23.000Z
nappy/espresso/espresso_in.py
ryokbys/nap
ddd0b5a5a956f7c335a22adb4f8e00f1d38a7804
[ "MIT" ]
4
2020-11-08T12:39:38.000Z
2021-01-10T22:31:36.000Z
nappy/espresso/espresso_in.py
ryokbys/nap
ddd0b5a5a956f7c335a22adb4f8e00f1d38a7804
[ "MIT" ]
4
2015-01-29T23:10:34.000Z
2022-01-08T05:20:13.000Z
#!/usr/bin/env python """ Convert Quantum Espresso output to fitpot data. Usage: espresso_in.py [options] FILE Options: -h, --help Show this message and help. --specorder=SPECORDER Specify the order of species needed to convert to pos. [default: Al,Mg,Si] """ from __future__ import print_functio...
23.929293
88
0.570283
#!/usr/bin/env python """ Convert Quantum Espresso output to fitpot data. Usage: espresso_in.py [options] FILE Options: -h, --help Show this message and help. --specorder=SPECORDER Specify the order of species needed to convert to pos. [default: Al,Mg,Si] """ from __future__ import print_functio...
0
0
0
0
0
0
0
-1
0
6a5c627529e2683de70c5b0638876c18d484f971
7,855
py
Python
MultiCast.py
mbuckaway/CrossMgr
4c64e429eb3215fda1b685c5e684c56f5d0c02cf
[ "MIT" ]
1
2020-02-05T11:22:03.000Z
2020-02-05T11:22:03.000Z
MultiCast.py
mbuckaway/CrossMgr
4c64e429eb3215fda1b685c5e684c56f5d0c02cf
[ "MIT" ]
null
null
null
MultiCast.py
mbuckaway/CrossMgr
4c64e429eb3215fda1b685c5e684c56f5d0c02cf
[ "MIT" ]
null
null
null
import sys import time from six.moves.queue import Queue import threading from datetime import datetime now = datetime.now multicast_group = '225.3.14.15' multicast_port = 10083 qTrigger = None sender = None #----------------------------------------------------------------------- if __name__ == '__main__': if len...
26.627119
126
0.663654
import six import socket import struct import sys import time import json from six.moves.queue import Queue, Empty from collections import deque import threading from datetime import datetime, timedelta now = datetime.now multicast_group = '225.3.14.15' multicast_port = 10083 def ToJson( v ): return json.dumps( v, ...
0
0
0
5,657
0
1,060
0
-11
324
b44de859739a979052fc2ee7e26b317e2777afa0
1,859
py
Python
PlanIt/tests/test_location_handling.py
awoodwa/PlanIt
91f952c67a127ca786affd49da0557e6a5132816
[ "MIT" ]
null
null
null
PlanIt/tests/test_location_handling.py
awoodwa/PlanIt
91f952c67a127ca786affd49da0557e6a5132816
[ "MIT" ]
5
2020-03-09T18:08:18.000Z
2020-03-18T22:33:18.000Z
PlanIt/tests/test_location_handling.py
awoodwa/PlanIt
91f952c67a127ca786affd49da0557e6a5132816
[ "MIT" ]
null
null
null
from .. import location_handling import h5pyd import numpy as np def test_get_loc(): ''' This function tests the get_loc(city, state) function to make sure the output is a tuple containing floats and that the output matches the working state output of inputs 'Salem' and 'OR'. ''' test = locati...
32.614035
76
0.627219
from .. import location_handling import h5pyd import numpy as np def test_get_loc(): ''' This function tests the get_loc(city, state) function to make sure the output is a tuple containing floats and that the output matches the working state output of inputs 'Salem' and 'OR'. ''' test = locati...
0
0
0
0
0
0
0
0
0
c55273773ee632f857fea50c08d1765a80ba630e
3,008
py
Python
funsor/montecarlo.py
fritzo/funsor
1d07af18c21894dd56e2f4f877c7845430c3b729
[ "Apache-2.0" ]
198
2019-02-04T19:13:14.000Z
2022-03-26T18:33:47.000Z
funsor/montecarlo.py
fritzo/funsor
1d07af18c21894dd56e2f4f877c7845430c3b729
[ "Apache-2.0" ]
334
2019-02-14T19:33:32.000Z
2022-03-18T00:55:40.000Z
funsor/montecarlo.py
fritzo/funsor
1d07af18c21894dd56e2f4f877c7845430c3b729
[ "Apache-2.0" ]
19
2019-05-18T01:58:10.000Z
2022-03-04T16:40:00.000Z
# Copyright Contributors to the Pyro project. # SPDX-License-Identifier: Apache-2.0 __all__ = [ "MonteCarlo", ]
29.490196
84
0.746011
# Copyright Contributors to the Pyro project. # SPDX-License-Identifier: Apache-2.0 import functools from collections import OrderedDict from funsor.cnf import Contraction from funsor.delta import Delta from funsor.gaussian import Gaussian from funsor.integrate import Integrate from funsor.interpretations import Stat...
0
1,920
0
393
0
0
0
164
406
83ca03ed09951291080cd9ed96d5eba91c2e3500
261
py
Python
python_task_planning/scripts/test_gen.py
jonbinney/python-planning
0f5698bc806fa0dd223891c787bebb812d550088
[ "MIT" ]
8
2015-04-30T20:46:07.000Z
2018-10-14T18:17:54.000Z
python_task_planning/scripts/test_gen.py
jonbinney/python-planning
0f5698bc806fa0dd223891c787bebb812d550088
[ "MIT" ]
null
null
null
python_task_planning/scripts/test_gen.py
jonbinney/python-planning
0f5698bc806fa0dd223891c787bebb812d550088
[ "MIT" ]
null
null
null
for vals in iter_cross([xrange(3), xrange(2)]): print vals
23.727273
48
0.547893
def iter_cross(iters): if len(iters) == 0: yield [] else: for v_first in iters[0]: for v_rest in iter_cross(iters[1:]): yield [v_first] + v_rest for vals in iter_cross([xrange(3), xrange(2)]): print vals
0
0
0
0
175
0
0
0
22
67a05d5e14495b1a7c2c996bc9498da34a20aae3
662
py
Python
examples/port2psid.py
ejordangottlieb/pyswmap
60df74b249eeeda87e23be9cad3c736757e9f72f
[ "MIT" ]
12
2015-02-02T01:32:28.000Z
2022-02-23T15:52:06.000Z
examples/port2psid.py
ejordangottlieb/pyswmap
60df74b249eeeda87e23be9cad3c736757e9f72f
[ "MIT" ]
null
null
null
examples/port2psid.py
ejordangottlieb/pyswmap
60df74b249eeeda87e23be9cad3c736757e9f72f
[ "MIT" ]
2
2020-01-14T22:02:08.000Z
2021-11-13T21:31:46.000Z
#!/usr/bin/env python import sys sys.path.append('..') from pyswmap import MapCalc # This script prints out the PSID for any given port and BMR. # Syntax is as follows: # ./port2psid.py [port number] # Define MAP domain characteristics. The values may be changed to suite # a alternate MAP domain configurations. ...
23.642857
72
0.640483
#!/usr/bin/env python import sys sys.path.append('..') from pyswmap import MapCalc # This script prints out the PSID for any given port and BMR. # Syntax is as follows: # ./port2psid.py [port number] # Define MAP domain characteristics. The values may be changed to suite # a alternate MAP domain configurations. ...
0
0
0
0
0
0
0
0
0
cfdd5bf7815ba83cefc8b234d0fb9ccea98ca917
687
py
Python
load_text_file.py
pieroit/python-base
5e72854ef94e082a7c0bf757ce231a5031fd4017
[ "MIT" ]
null
null
null
load_text_file.py
pieroit/python-base
5e72854ef94e082a7c0bf757ce231a5031fd4017
[ "MIT" ]
null
null
null
load_text_file.py
pieroit/python-base
5e72854ef94e082a7c0bf757ce231a5031fd4017
[ "MIT" ]
null
null
null
file_name = 'testo.txt' # load opening and closing resource by hand f = open(file_name, 'r') content = f.read() f.close() print(content) # load all lines in a single string with open(file_name, 'r') as f: content = f.read() print(content) # load all lines as a list content = [] with open(file_name, 'r') as f: ...
19.628571
43
0.656477
file_name = 'testo.txt' # load opening and closing resource by hand f = open(file_name, 'r') content = f.read() f.close() print(content) # load all lines in a single string with open(file_name, 'r') as f: content = f.read() print(content) # load all lines as a list content = [] with open(file_name, 'r') as f: ...
0
0
0
0
0
0
0
0
0
b8741e2eae354cfd0670ecc827817e22448d08b3
4,344
py
Python
2018/13/mine_cart_madness.py
GeoffRiley/AdventOfCode
27fe8670a1923cb3b0675784f5e855ad18c29c93
[ "Unlicense" ]
2
2020-12-12T03:18:45.000Z
2021-12-17T00:35:33.000Z
2018/13/mine_cart_madness.py
GeoffRiley/AdventOfCode
27fe8670a1923cb3b0675784f5e855ad18c29c93
[ "Unlicense" ]
null
null
null
2018/13/mine_cart_madness.py
GeoffRiley/AdventOfCode
27fe8670a1923cb3b0675784f5e855ad18c29c93
[ "Unlicense" ]
null
null
null
NORTH = '^' SOUTH = 'v' EAST = '>' WEST = '<' DIRECTIONS = (NORTH, SOUTH, EAST, WEST) DIR_NAMES = {NORTH: 'NORTH', WEST: 'WEST', SOUTH: 'SOUTH', EAST: 'EAST'} LEFT = {NORTH: WEST, WEST: SOUTH, SOUTH: EAST, EAST: NORTH} FORWARD = {NORTH: SOUTH, SOUTH: NORTH, EAST: WEST, WEST: EAST} RIGHT = {NORTH: EAST, EAST: SOUTH, SO...
30.808511
112
0.57988
from collections import defaultdict from dataclasses import dataclass from itertools import cycle from typing import List NORTH = '^' SOUTH = 'v' EAST = '>' WEST = '<' DIRECTIONS = (NORTH, SOUTH, EAST, WEST) DIR_NAMES = {NORTH: 'NORTH', WEST: 'WEST', SOUTH: 'SOUTH', EAST: 'EAST'} LEFT = {NORTH: WEST, WEST: SOUTH, SOUT...
0
1,312
0
1,320
0
313
0
34
180
2800dedbd1f0f15c9ad23e9d7402392c425db000
678
py
Python
app/views.py
wikky2012/NewsPreview
5799f684d6ca1fd77e9343010f5ca10b3bf4b5a1
[ "MIT" ]
null
null
null
app/views.py
wikky2012/NewsPreview
5799f684d6ca1fd77e9343010f5ca10b3bf4b5a1
[ "MIT" ]
null
null
null
app/views.py
wikky2012/NewsPreview
5799f684d6ca1fd77e9343010f5ca10b3bf4b5a1
[ "MIT" ]
null
null
null
# @app.route('/') # def index(): # popular_news = get_news('popular') # print(popular_news) # title = 'Home - Welcome to The best News Preview Website Online' # return render_template('index.html', title = title,popular = popular_news)
28.25
81
0.685841
from flask import render_template from .request import get_news from app import app # @app.route('/') # def index(): # popular_news = get_news('popular') # print(popular_news) # title = 'Home - Welcome to The best News Preview Website Online' # return render_template('index.html', title = title,popula...
0
318
0
0
0
0
0
18
89
730c08219416cffafebc25d23590c241143ae4b3
768
py
Python
antibodies/embl/determine_igm_mad.py
hci-unihd/batchlib
e7e4ce34228346c5dcf1d1f01c512d5fad5ba5c1
[ "MIT" ]
3
2020-04-14T21:37:10.000Z
2020-07-29T00:16:28.000Z
antibodies/embl/determine_igm_mad.py
hci-unihd/batchlib
e7e4ce34228346c5dcf1d1f01c512d5fad5ba5c1
[ "MIT" ]
104
2020-04-08T08:23:23.000Z
2020-06-15T10:40:17.000Z
antibodies/embl/determine_igm_mad.py
hci-unihd/batchlib
e7e4ce34228346c5dcf1d1f01c512d5fad5ba5c1
[ "MIT" ]
null
null
null
determine_igm_mad('/g/kreshuk/data/covid/_')
25.6
69
0.627604
import os from glob import glob import numpy as np from batchlib.util import open_file, read_table def determine_igm_mad(root): plates = glob(os.path.join(root, '*IgM*')) print(plates) mads = [] mad_key = 'serum_IgM_mad' for plate in plates: plate_name = os.path.split(plate)[1] ta...
0
0
0
0
0
597
0
11
112
368fc9b17ad1dd40c906e86ee49eadc0e2174526
7,963
py
Python
utilities.py
gregvanhoudt/AITIA-PM
994ba40c0fba6cb8c509ace19a4ac1593aa943c2
[ "MIT" ]
null
null
null
utilities.py
gregvanhoudt/AITIA-PM
994ba40c0fba6cb8c509ace19a4ac1593aa943c2
[ "MIT" ]
null
null
null
utilities.py
gregvanhoudt/AITIA-PM
994ba40c0fba6cb8c509ace19a4ac1593aa943c2
[ "MIT" ]
null
null
null
def get_true_times(obs_times_hash, variable): """ Get the timepoints where the variable is true in the form of a dictionary. Parameters: obs_times_hash: the dictionary containing all observations by variable as a tuple (case, time). variable: the system state to look for. Returns: ...
33.041494
146
0.627778
def get_true_times(obs_times_hash, variable): """ Get the timepoints where the variable is true in the form of a dictionary. Parameters: obs_times_hash: the dictionary containing all observations by variable as a tuple (case, time). variable: the system state to look for. Returns: ...
0
0
0
0
0
0
0
0
0
84ceb2e0079139376d664e16efc76dc4c79d219c
3,951
py
Python
root/mldl/MLDLPrj/SnakeAI/snake_game.py
ChyiYaqing/chyidlTutorial
77e7f6f84f21537a58a8a8a42e31cf2e3dd31996
[ "MIT" ]
null
null
null
root/mldl/MLDLPrj/SnakeAI/snake_game.py
ChyiYaqing/chyidlTutorial
77e7f6f84f21537a58a8a8a42e31cf2e3dd31996
[ "MIT" ]
null
null
null
root/mldl/MLDLPrj/SnakeAI/snake_game.py
ChyiYaqing/chyidlTutorial
77e7f6f84f21537a58a8a8a42e31cf2e3dd31996
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- """ curses -- Terminal hamdling for character-cell displays """ from random import randint if __name__ == "__main__": game = SnakeGame(gui=True) game.start() for _ in range(200): game.step(randint(0, 3))
31.110236
114
0.533283
#!/usr/bin/env python3 # -*- coding:utf-8 -*- """ curses -- Terminal hamdling for character-cell displays """ import curses from random import randint class SnakeGame: """Snake Game by Python Language""" def __init__(self, board_width=20, board_height=20, gui=False): self.win = None self.food...
12
0
0
3,638
0
0
0
-8
45
a3e1b673f1ee277f1a4f711336471509be0230b8
522
py
Python
tests/test_tf/lib/cudaprofile.py
SymbioticLab/Salus
b2a194e7e4654b51dbd8d8fc1577fb1e9915ca6f
[ "Apache-2.0" ]
104
2019-02-12T20:41:07.000Z
2022-03-07T16:58:47.000Z
tests/test_tf/lib/cudaprofile.py
SymbioticLab/Salus
b2a194e7e4654b51dbd8d8fc1577fb1e9915ca6f
[ "Apache-2.0" ]
9
2019-08-24T03:23:21.000Z
2021-06-06T17:59:07.000Z
tests/test_tf/lib/cudaprofile.py
SymbioticLab/Salus
b2a194e7e4654b51dbd8d8fc1577fb1e9915ca6f
[ "Apache-2.0" ]
18
2019-03-04T07:45:41.000Z
2021-09-15T22:13:07.000Z
import ctypes _cudart = ctypes.CDLL('libcudart.so')
27.473684
92
0.676245
import ctypes _cudart = ctypes.CDLL('libcudart.so') def start(): # As shown at http://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__PROFILER.html, # the return value will unconditionally be 0. This check is just in case it changes in # the future. ret = _cudart.cudaProfilerStart() if ret !...
0
0
0
0
0
421
0
0
46
f73a592611389f9da17baf034519e5d46934b979
166
py
Python
postproc/ml_tools/pod.py
J-Massey/postproc
4552b0ad79072f5d217cf62632c08617ea3d2d82
[ "MIT" ]
null
null
null
postproc/ml_tools/pod.py
J-Massey/postproc
4552b0ad79072f5d217cf62632c08617ea3d2d82
[ "MIT" ]
null
null
null
postproc/ml_tools/pod.py
J-Massey/postproc
4552b0ad79072f5d217cf62632c08617ea3d2d82
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: Jonathan Massey @description: Compute the PCA of a flow field @contact: jmom1n15@soton.ac.uk """
16.6
45
0.698795
# -*- coding: utf-8 -*- """ @author: Jonathan Massey @description: Compute the PCA of a flow field @contact: jmom1n15@soton.ac.uk """ from torch import pca_lowrank
0
0
0
0
0
0
0
8
23
c71d02e1adad7d4fb4f882d12828a38bc26ed5d4
1,392
py
Python
Python/StandaloneExercises/ClassAndStaticMethods.py
TacPhoto/Learning
28fb3c6469164c57d0ccb973732168f01b685113
[ "MIT" ]
null
null
null
Python/StandaloneExercises/ClassAndStaticMethods.py
TacPhoto/Learning
28fb3c6469164c57d0ccb973732168f01b685113
[ "MIT" ]
null
null
null
Python/StandaloneExercises/ClassAndStaticMethods.py
TacPhoto/Learning
28fb3c6469164c57d0ccb973732168f01b685113
[ "MIT" ]
null
null
null
print("Before modification:") obj1 = SomeClass('4', .5, 'Me') obj1.showSomeVal() print(" Run class method from the instance") print("After:") obj1.someVal = 4 #will remain in instance obj1.set_someVal(40) obj1.showSomeVal() print(" Run class methon on the class") obj2 = SomeClass('4', .5, 'Me') obj1.someVal = 4...
25.777778
79
0.625718
class SomeClass: someVal = 3 def __init__(self, first, second, name): self.first = float(first) self.second = float(second) self.name = name def printName(self): print(self.name) def sum(self): return self.first + self.second def showSomeVal(self): ...
0
253
0
536
0
0
0
0
22
2198d2477e4efb38295604c5dc5eb94088416446
2,478
py
Python
vulcan/data/_addressbook.py
v0idzz/vulcan-api
1ae83d90236e678042a9f85f6c34b6bd82bf279f
[ "MIT" ]
49
2019-01-10T22:10:19.000Z
2022-01-10T17:07:51.000Z
vulcan/data/_addressbook.py
Antoni-Czaplicki/vulcan-api
a1d9127ce156013a7a803f31b55591989f05ba5a
[ "MIT" ]
47
2019-01-08T21:04:17.000Z
2022-03-21T04:02:37.000Z
vulcan/data/_addressbook.py
Antoni-Czaplicki/vulcan-api
a1d9127ce156013a7a803f31b55591989f05ba5a
[ "MIT" ]
31
2019-05-04T14:05:33.000Z
2021-11-01T18:51:16.000Z
# -*- coding: utf-8 -*-
34.416667
88
0.684423
# -*- coding: utf-8 -*- from typing import AsyncIterator, List, Union from related import IntegerField, SequenceField, StringField, immutable from .._api_helper import FilterType from .._endpoints import DATA_ADDRESSBOOK from ..model import Serializable @immutable class Role(Serializable): """A role of addresse...
0
2,174
0
0
0
0
0
120
158
df3ef43f6c1ff44004b793624548d43ec1288df5
1,212
py
Python
datascientist/model/classification/skl/linear_model/nearestneighbors.py
kritikaparmar-programmer/DataScientist
b70f25b4afe28a2862a4ebfba163d162f645fba1
[ "MIT" ]
1
2020-12-05T11:09:13.000Z
2020-12-05T11:09:13.000Z
datascientist/model/classification/skl/linear_model/nearestneighbors.py
kritikaparmar-programmer/DataScientist
b70f25b4afe28a2862a4ebfba163d162f645fba1
[ "MIT" ]
null
null
null
datascientist/model/classification/skl/linear_model/nearestneighbors.py
kritikaparmar-programmer/DataScientist
b70f25b4afe28a2862a4ebfba163d162f645fba1
[ "MIT" ]
null
null
null
from sklearn.metrics import f1_score from sklearn.metrics import jaccard_score from sklearn.metrics import accuracy_score from sklearn.neighbors import NearestNeighbors def _nearestneighbors(*, train, test, x_predict=None, metrics, n_neighbors=5, radius=1.0, algorithm='auto', leaf_size=30, metric='minkowski', p=2, m...
35.647059
180
0.724422
from sklearn.metrics import f1_score from sklearn.metrics import jaccard_score from sklearn.metrics import accuracy_score from sklearn.neighbors import NearestNeighbors import numpy as np def _nearestneighbors(*, train, test, x_predict=None, metrics, n_neighbors=5, radius=1.0, algorithm='auto', leaf_size=30, metric=...
0
0
0
0
0
0
0
-3
22
ad22dfe3a8d687226ed05a79e1c0de236d9ca672
922
py
Python
solutions/141. Linked List Cycle.py
JacopoPan/leetcode-top100-liked-questions
03dc05f087d05805d54b7585ce740338f3128833
[ "MIT" ]
null
null
null
solutions/141. Linked List Cycle.py
JacopoPan/leetcode-top100-liked-questions
03dc05f087d05805d54b7585ce740338f3128833
[ "MIT" ]
null
null
null
solutions/141. Linked List Cycle.py
JacopoPan/leetcode-top100-liked-questions
03dc05f087d05805d54b7585ce740338f3128833
[ "MIT" ]
null
null
null
""" Runtime: 4552 ms, faster than 5.04% of Python3 online submissions for Linked List Cycle. Memory Usage: 17.7 MB, less than 24.84% of Python3 online submissions for Linked List Cycle. """ if __name__ == "__main__": main()
23.641026
92
0.578091
""" Runtime: 4552 ms, faster than 5.04% of Python3 online submissions for Linked List Cycle. Memory Usage: 17.7 MB, less than 24.84% of Python3 online submissions for Linked List Cycle. """ from typing import List from typing import Optional class ListNode: def __init__(self, x): self.val = x self....
0
0
0
341
0
231
0
8
113
81625add2a8c69a3b0d66c3a96bb46f8dc4766fd
4,880
py
Python
var/spack/repos/builtin/packages/gtkplus/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2015-10-04T02:17:46.000Z
2018-02-07T18:23:00.000Z
var/spack/repos/builtin/packages/gtkplus/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
22
2017-08-01T22:45:10.000Z
2022-03-10T07:46:31.000Z
var/spack/repos/builtin/packages/gtkplus/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2016-06-10T17:57:39.000Z
2018-09-11T04:59:38.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT)
37.538462
114
0.62623
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Gtkplus(MesonPackage): """The GTK+ package contains libraries used for creating graphical ...
0
179
0
4,459
0
0
0
-2
46
f4e13eb234b4331124ac935dc88424980a0e8c61
3,137
py
Python
classify/ann.py
marctheshark3/NLP
a2db2db255e9f7a1cfee1e7ab374c485c98d51bc
[ "MIT" ]
1
2021-03-27T07:12:40.000Z
2021-03-27T07:12:40.000Z
classify/ann.py
marctheshark3/NLP
a2db2db255e9f7a1cfee1e7ab374c485c98d51bc
[ "MIT" ]
null
null
null
classify/ann.py
marctheshark3/NLP
a2db2db255e9f7a1cfee1e7ab374c485c98d51bc
[ "MIT" ]
2
2021-03-27T07:12:46.000Z
2021-03-27T07:12:54.000Z
import numpy as np import tensorflow as tf import keras from sklearn.metrics import confusion_matrix, classification_report def ann_train_and_evaluate(training_set_samples, training_set_labels, test_set_samples, test_set_labels, xmit_conn): """ Functional unit that accepts training and test sets, creates a full...
36.476744
116
0.755818
import numpy as np import tensorflow as tf import keras from sklearn.metrics import confusion_matrix, classification_report from . import Metrics def ann_train_and_evaluate(training_set_samples, training_set_labels, test_set_samples, test_set_labels, xmit_conn): """ Functional unit that accepts training and test ...
0
0
0
0
0
0
0
0
22
a17558e53109ba5256d3cee189eb8e607ad860e2
26,657
py
Python
core/models.py
mprof2018/locadora-cin
ea673a49110a6498dca3ed281d84e019ff9cc2d3
[ "MIT" ]
null
null
null
core/models.py
mprof2018/locadora-cin
ea673a49110a6498dca3ed281d84e019ff9cc2d3
[ "MIT" ]
80
2018-12-14T18:37:46.000Z
2022-03-11T23:39:57.000Z
core/models.py
mprof2018/locadora-cin
ea673a49110a6498dca3ed281d84e019ff9cc2d3
[ "MIT" ]
5
2018-12-14T19:35:28.000Z
2019-01-09T23:10:00.000Z
# Create your models here.
40.146084
155
0.66898
from django.db import models from django.urls import reverse from multiselectfield import MultiSelectField from core.choices import * from django.contrib.auth.models import PermissionsMixin from django.contrib.auth.base_user import AbstractBaseUser from django.core.exceptions import ValidationError from django.utils.tr...
258
192
0
24,965
0
0
0
366
969
72a511618645e707d6dd0ee0028f350f8e20eb04
13,780
py
Python
functions/main.py
alexbruf/canvoice
48cbb4d9189df0b1bcf968639e3a616805a42390
[ "MIT" ]
1
2020-11-26T21:45:52.000Z
2020-11-26T21:45:52.000Z
functions/main.py
alexbruf/canvoice
48cbb4d9189df0b1bcf968639e3a616805a42390
[ "MIT" ]
null
null
null
functions/main.py
alexbruf/canvoice
48cbb4d9189df0b1bcf968639e3a616805a42390
[ "MIT" ]
null
null
null
# Copyright 2019 Google LLC # # 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 wr...
37.650273
151
0.624238
# Copyright 2019 Google LLC # # 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 wr...
0
0
0
0
0
9,963
0
36
411
cb73c02970e77c2fb6f0bd5ae701919c6d2e2b1b
2,149
py
Python
LipidFinder/PeakFilter/MassReassignment.py
s-andrews/LipidFinder
c91d6caa8008e0a67188914e48f30913deff888d
[ "MIT" ]
12
2018-03-12T06:43:29.000Z
2021-12-30T03:01:12.000Z
LipidFinder/PeakFilter/MassReassignment.py
s-andrews/LipidFinder
c91d6caa8008e0a67188914e48f30913deff888d
[ "MIT" ]
6
2019-05-07T02:40:19.000Z
2022-01-25T18:58:16.000Z
LipidFinder/PeakFilter/MassReassignment.py
s-andrews/LipidFinder
c91d6caa8008e0a67188914e48f30913deff888d
[ "MIT" ]
12
2019-01-15T10:48:17.000Z
2021-12-30T03:01:13.000Z
# Copyright (c) 2019 J. Alvarez-Jarreta and C.J. Brasher # # This file is part of the LipidFinder software tool and governed by the # 'MIT License'. Please see the LICENSE file that should have been # included as part of this software. """Set of methods aimed to reassign a m/z value to every feature in a cluster: >...
40.54717
76
0.672871
# Copyright (c) 2019 J. Alvarez-Jarreta and C.J. Brasher # # This file is part of the LipidFinder software tool and governed by the # 'MIT License'. Please see the LICENSE file that should have been # included as part of this software. """Set of methods aimed to reassign a m/z value to every feature in a cluster: >...
0
0
0
0
0
0
0
0
0
29b9ac4b02627950e518fbbdb126a46f0c0514b8
1,178
py
Python
prequests/utils.py
aljeshishe/prequests
14be11f8e31b4f5200653ce246a20563146c4f05
[ "Apache-1.1" ]
null
null
null
prequests/utils.py
aljeshishe/prequests
14be11f8e31b4f5200653ce246a20563146c4f05
[ "Apache-1.1" ]
null
null
null
prequests/utils.py
aljeshishe/prequests
14be11f8e31b4f5200653ce246a20563146c4f05
[ "Apache-1.1" ]
null
null
null
import logging log = logging.getLogger(__name__)
33.657143
107
0.693548
import logging from contextlib import contextmanager log = logging.getLogger(__name__) def as_tuple(list_tuple_item_or_none): if list_tuple_item_or_none is None: return () if not isinstance(list_tuple_item_or_none, (list, tuple)): return (list_tuple_item_or_none,) return list_tuple_item_...
0
826
0
0
0
216
0
16
68
1ecf6d41a693bad9bbc2dfc4d76f59db52954634
4,079
py
Python
sdk/python/pulumi_aws_native/pinpoint/get_email_channel.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/pinpoint/get_email_channel.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/pinpoint/get_email_channel.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import pulumi import pulumi.runtime from typing import Optional from .. import _utilities __all__ = [ 'GetEmailChannelResult', 'AwaitableGetEma...
35.780702
128
0.671488
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** 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 _utilities __a...
0
2,334
0
413
0
0
0
35
92
e0a78422c59b01cc49695b1a1a5a81a2069cd7df
2,837
py
Python
githubutils/clone_projects.py
fastluca/szz-mpi
3ebc266cb98080f2c7d34ca6cdcc03b6ac0902ae
[ "MIT" ]
1
2019-03-21T23:27:31.000Z
2019-03-21T23:27:31.000Z
githubutils/clone_projects.py
fastluca/szz-mpi
3ebc266cb98080f2c7d34ca6cdcc03b6ac0902ae
[ "MIT" ]
null
null
null
githubutils/clone_projects.py
fastluca/szz-mpi
3ebc266cb98080f2c7d34ca6cdcc03b6ac0902ae
[ "MIT" ]
1
2019-02-17T12:10:20.000Z
2019-02-17T12:10:20.000Z
import sys from loggingcfg import initialize_logger if __name__ == '__main__': logger = initialize_logger(name='SZZ:CLONE') start(sys.argv[1:])
37.826667
109
0.551287
import getopt import logging import os import sys from gitutils.repo import RepoCloner from loggingcfg import initialize_logger from utils import utility def start(argv): project_file = 'project-list.txt' destination_dir = './git_repos' symlink_dir = None try: if not argv: raise ...
0
0
0
0
0
2,556
0
-8
134
4ee508d089f0ab1213ee578c8a902b486ddb2203
17,908
py
Python
module/repro.article/module.py
reproindex/ck-reproindex
a45ba57f320537af4ea6bc5e2457c39b3eddcc13
[ "CC-BY-4.0", "BSD-3-Clause" ]
6
2019-06-20T08:34:08.000Z
2019-09-20T16:44:22.000Z
module/repro.article/module.py
reproindex/ck-reproindex
a45ba57f320537af4ea6bc5e2457c39b3eddcc13
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
module/repro.article/module.py
reproindex/ck-reproindex
a45ba57f320537af4ea6bc5e2457c39b3eddcc13
[ "CC-BY-4.0", "BSD-3-Clause" ]
4
2019-06-25T07:16:57.000Z
2019-09-20T16:44:30.000Z
# # Collective Knowledge (index of reproducible articles) # # See CK LICENSE.txt for licensing details # See CK COPYRIGHT.txt for copyright details # # Developer: Grigori Fursin # cfg={} # Will be updated by CK (meta description of this module) work={} # Will be updated by CK (temporal data) ck=None # Will be updated...
32.678832
231
0.474648
# # Collective Knowledge (index of reproducible articles) # # See CK LICENSE.txt for licensing details # See CK COPYRIGHT.txt for copyright details # # Developer: Grigori Fursin # cfg={} # Will be updated by CK (meta description of this module) work={} # Will be updated by CK (temporal data) ck=None # Will be updated...
0
0
0
0
0
0
0
0
0
40227002083c02792496f4e2ca7491ec7b6adb4a
3,696
py
Python
evaluation/vqrl/hist2.py
kasimte/QARC
0aec7ea3331a912e36ea8003a7f92cee148ed913
[ "BSD-3-Clause" ]
40
2018-12-03T01:49:15.000Z
2022-03-20T03:57:03.000Z
evaluation/vqrl/hist2.py
kasimte/QARC
0aec7ea3331a912e36ea8003a7f92cee148ed913
[ "BSD-3-Clause" ]
7
2020-03-11T09:36:40.000Z
2021-12-14T01:53:22.000Z
evaluation/vqrl/hist2.py
kasimte/QARC
0aec7ea3331a912e36ea8003a7f92cee148ed913
[ "BSD-3-Clause" ]
19
2018-11-02T08:07:25.000Z
2021-09-23T09:57:13.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division import numpy as np import matplotlib.pyplot as plt import matplotlib from matplotlib.colors import LinearSegmentedColormap import sys FILENAME = sys.argv[1] _f = open(FILENAME + '.csv', 'r') u_dp = [[] for i in range(4)] u_l = [[] for i in...
35.883495
118
0.622835
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division import numpy as np import matplotlib.pyplot as plt import matplotlib from matplotlib.colors import LinearSegmentedColormap import sys FILENAME = sys.argv[1] _f = open(FILENAME + '.csv', 'r') u_dp = [[] for i in range(4)] u_l = [[] for i in...
0
0
0
0
0
0
0
0
0
b7a0179957b058a576a6de8d0f6f4edd4967ce49
18,486
py
Python
test/test_ipip.py
ydy1234/vpp
9f9e969f149e40044fee9d2e47b7dd96f3ae4dfa
[ "Apache-2.0" ]
null
null
null
test/test_ipip.py
ydy1234/vpp
9f9e969f149e40044fee9d2e47b7dd96f3ae4dfa
[ "Apache-2.0" ]
null
null
null
test/test_ipip.py
ydy1234/vpp
9f9e969f149e40044fee9d2e47b7dd96f3ae4dfa
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """IP{4,6} over IP{v,6} tunnel functional tests""" import unittest from framework import VppTestRunner """ Testipip is a subclass of VPPTestCase classes. IPIP tests. """ # Replace by deframent from scapy. if __name__ == '__main__': unittest.main(testRunner=VppTestRunner)
35.278626
78
0.581197
#!/usr/bin/env python """IP{4,6} over IP{v,6} tunnel functional tests""" import unittest from scapy.layers.inet6 import IPv6, Ether, IP, UDP, IPv6ExtHdrFragment from scapy.all import fragment, fragment6, RandShort, defragment6 from framework import VppTestCase, VppTestRunner from vpp_ip import DpoProto from vpp_ip_rou...
0
301
0
17,124
0
379
0
173
200
678ec8cddd3fa2ef9b4cbb3bb7078084ee328967
2,784
py
Python
audioformat.py
ch-pat/SimplyT
9cb7854ec8ba0ffacefc4b7170ad1c622b9833d1
[ "MIT" ]
null
null
null
audioformat.py
ch-pat/SimplyT
9cb7854ec8ba0ffacefc4b7170ad1c622b9833d1
[ "MIT" ]
null
null
null
audioformat.py
ch-pat/SimplyT
9cb7854ec8ba0ffacefc4b7170ad1c622b9833d1
[ "MIT" ]
null
null
null
#! /bin/env python import sys ########################################################################3 # Simple audio encoder # ---------------------------------------------------------------------------------- # Change the format of your compressed audio files to something different # http://pymedia.org/ if ...
30.26087
99
0.413434
#! /bin/env python import sys, time, traceback ########################################################################3 # Simple audio encoder def recodeAudio(fName, fOutput, type, bitrate=None): # ------------------------------------ import pymedia.audio.acodec as acodec import pymedia.muxer as muxer...
0
0
0
0
0
2,033
0
17
22
cfbd90ab77c586cdeba06bd524194d75990ee744
173
py
Python
data types and variables exerscise/7. Water Overflow.py
nrgxtra/fundamentals
d9f35eb040c0e1009aad2f7305c035fda207a147
[ "MIT" ]
null
null
null
data types and variables exerscise/7. Water Overflow.py
nrgxtra/fundamentals
d9f35eb040c0e1009aad2f7305c035fda207a147
[ "MIT" ]
null
null
null
data types and variables exerscise/7. Water Overflow.py
nrgxtra/fundamentals
d9f35eb040c0e1009aad2f7305c035fda207a147
[ "MIT" ]
null
null
null
n = int(input()) cc = 0 for i in range(n): cl = int(input()) cc += cl if cc > 255: print('Insufficient capacity!') cc -= cl print(cc)
15.727273
40
0.468208
n = int(input()) cc = 0 for i in range(n): cl = int(input()) cc += cl if cc > 255: print('Insufficient capacity!') cc -= cl print(cc)
0
0
0
0
0
0
0
0
0
a484567525def82f364ec05a6c88d40c416a9788
974
py
Python
geeksw/utils/filesystem.py
guitargeek/geeksw
d6e774824eae713e68cf23ae242933be9df52fcf
[ "MIT" ]
2
2019-04-11T22:26:29.000Z
2021-06-23T19:59:36.000Z
geeksw/utils/filesystem.py
guitargeek/geeksw
d6e774824eae713e68cf23ae242933be9df52fcf
[ "MIT" ]
null
null
null
geeksw/utils/filesystem.py
guitargeek/geeksw
d6e774824eae713e68cf23ae242933be9df52fcf
[ "MIT" ]
null
null
null
import shutil import os def copy_into(source, destination): """ Copy all files from source into destination recursively. Overwrites existing files. """ files = [] for r, d, f in os.walk(source): for file in f: full_filename = os.path.join(r, file) files.append("/"....
29.515152
89
0.61807
import shutil import os def copy_into(source, destination): """ Copy all files from source into destination recursively. Overwrites existing files. """ files = [] for r, d, f in os.walk(source): for file in f: full_filename = os.path.join(r, file) files.append("/"....
0
0
0
0
0
361
0
0
23
eef30dfa39f0354815590e34ecd07c6c13356b9e
3,266
py
Python
workbench/workers/vt_query.py
Ayub-Khan/workbench
710232756dd717f734253315e3d0b33c9628dafb
[ "MIT" ]
61
2015-01-04T01:23:49.000Z
2021-06-22T14:41:10.000Z
workbench/workers/vt_query.py
Ayub-Khan/workbench
710232756dd717f734253315e3d0b33c9628dafb
[ "MIT" ]
3
2015-01-02T23:26:59.000Z
2015-01-03T19:28:36.000Z
workbench/workers/vt_query.py
Ayub-Khan/workbench
710232756dd717f734253315e3d0b33c9628dafb
[ "MIT" ]
17
2015-08-25T23:57:22.000Z
2020-05-30T02:36:05.000Z
''' VTQuery worker ''' import os import requests import collections import ConfigParser import pprint # Unit test: Create the class, the proper input and run the execute() method for a test def test(): ''' -- vt_query.py test -- ''' # This worker test requires a local server running import zerorpc w...
34.744681
103
0.602878
''' VTQuery worker ''' import os import requests import collections import ConfigParser import pprint class VTQuery(object): ''' This worker query Virus Total, an apikey needs to be provided ''' dependencies = ['meta'] def __init__(self): ''' VTQuery Init''' # Grab API key from confi...
0
0
0
2,147
0
0
0
0
23
43aa04766b1377908b0bf2eeea76fbb688f28245
5,124
py
Python
test_streamlit/Lib/site-packages/streamlit/proto/DeckGlChart_pb2.py
Ha-Huynh-Anh/test_streamlit
9816517bedbb2ba1f4884c8ac9743b5de9f780c0
[ "MIT" ]
null
null
null
test_streamlit/Lib/site-packages/streamlit/proto/DeckGlChart_pb2.py
Ha-Huynh-Anh/test_streamlit
9816517bedbb2ba1f4884c8ac9743b5de9f780c0
[ "MIT" ]
5
2021-04-30T21:25:13.000Z
2022-03-12T00:43:14.000Z
venv/lib/python3.7/site-packages/streamlit/proto/DeckGlChart_pb2.py
sbassam/nub-summarizer
4798d13d5a959b41b769c1a0ef2ccc994eed6737
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: streamlit/proto/DeckGlChart.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 symbol_d...
36.340426
456
0.753123
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: streamlit/proto/DeckGlChart.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 symbol_d...
0
0
0
0
0
0
0
0
0
6683893833e4afc82fe0b319baa5c753f8d5bafd
2,334
py
Python
BFS/main.py
Devyadav1994/PyHack
a6b666d8ce0663df9c2ed8479988ba682e1f0a0f
[ "MIT" ]
1
2021-10-03T15:50:26.000Z
2021-10-03T15:50:26.000Z
BFS/main.py
Devyadav1994/PyHack
a6b666d8ce0663df9c2ed8479988ba682e1f0a0f
[ "MIT" ]
8
2021-09-30T18:30:38.000Z
2021-10-03T15:33:40.000Z
BFS/main.py
Devyadav1994/PyHack
a6b666d8ce0663df9c2ed8479988ba682e1f0a0f
[ "MIT" ]
5
2021-09-30T20:00:45.000Z
2021-10-30T17:54:39.000Z
import sys import time from Node import Node from utils import read_input from bfs import best_first_search from heuristic import heuristic1 from heuristic import heuristic2 from heuristic import heuristic3 from hill import hill_climb if len(sys.argv) != 4: print("Usage: ./run.sh [INPUT TEXT FILE] [ALGO...
37.645161
85
0.684662
import sys import time from Node import Node from utils import read_input from bfs import best_first_search from heuristic import heuristic1 from heuristic import heuristic2 from heuristic import heuristic3 from hill import hill_climb if len(sys.argv) != 4: print("Usage: ./run.sh [INPUT TEXT FILE] [ALGO...
0
0
0
0
0
0
0
0
0
7add913572dab6aa965813722b95547e25bae2fd
248
py
Python
uts/session_py/5.py
viad00/code_olymp
90f20f9fd075e8967d02baf7554fcf24f4ae089c
[ "MIT" ]
null
null
null
uts/session_py/5.py
viad00/code_olymp
90f20f9fd075e8967d02baf7554fcf24f4ae089c
[ "MIT" ]
null
null
null
uts/session_py/5.py
viad00/code_olymp
90f20f9fd075e8967d02baf7554fcf24f4ae089c
[ "MIT" ]
null
null
null
import sys sys.stdin = open("input.txt", "r") sys.stdout = open("output.txt", "w") n, m = map(int, input().split()) n_mas = [0 for i in range(n)] for i in range(m): for j in list(map(int, input().split())): n_mas[j-1] += 1 print(*n_mas)
27.555556
45
0.584677
import sys sys.stdin = open("input.txt", "r") sys.stdout = open("output.txt", "w") n, m = map(int, input().split()) n_mas = [0 for i in range(n)] for i in range(m): for j in list(map(int, input().split())): n_mas[j-1] += 1 print(*n_mas)
0
0
0
0
0
0
0
0
0
a9a89dfdc3cffb03730c7afd8a96943ca2b2729b
1,923
py
Python
api/opennews/celery.py
spamz23/OpenNews
ccf5cdf6213137e93fbbac45e356ba6ad7498bc9
[ "BSD-3-Clause" ]
1
2022-01-16T03:35:03.000Z
2022-01-16T03:35:03.000Z
api/opennews/celery.py
spamz23/OpenNews
ccf5cdf6213137e93fbbac45e356ba6ad7498bc9
[ "BSD-3-Clause" ]
34
2021-11-01T00:33:46.000Z
2022-03-29T00:05:36.000Z
api/opennews/celery.py
spamz23/OpenNews
ccf5cdf6213137e93fbbac45e356ba6ad7498bc9
[ "BSD-3-Clause" ]
null
null
null
""" Module to define Celery instance Tutorial: https://docs.celeryproject.org/en/stable/django/first-steps-with-django.html """ import os from celery import Celery # Set the default Django settings module for the 'celery' program. os.environ.setdefault("DJANGO_SETTINGS_MODULE", "opennews.settings.dev") app = Celery("...
35.611111
86
0.74779
""" Module to define Celery instance Tutorial: https://docs.celeryproject.org/en/stable/django/first-steps-with-django.html """ import os from celery import Celery # Set the default Django settings module for the 'celery' program. os.environ.setdefault("DJANGO_SETTINGS_MODULE", "opennews.settings.dev") app = Celery("...
0
942
0
0
0
0
0
33
68
d6f4ff30890d9d2f9c0803359fb89409af164500
18,537
py
Python
TLI_scripts/NPS_bands.py
Data-to-Knowledge/TLI
c6e5bec531ad98a0287d44219dc0911ce4a04450
[ "Apache-2.0" ]
null
null
null
TLI_scripts/NPS_bands.py
Data-to-Knowledge/TLI
c6e5bec531ad98a0287d44219dc0911ce4a04450
[ "Apache-2.0" ]
null
null
null
TLI_scripts/NPS_bands.py
Data-to-Knowledge/TLI
c6e5bec531ad98a0287d44219dc0911ce4a04450
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Aug 02 10:31:06 2019 @author: TinaB """ ## Script to calculate NOF / NPS bands for HCL ########################################################### ############################################## ## define path where graphs are saved #datapath_out = 'C:\\data\\TLI\\SQ\\HTnew\...
30.792359
289
0.580838
# -*- coding: utf-8 -*- """ Created on Fri Aug 02 10:31:06 2019 @author: TinaB """ ## Script to calculate NOF / NPS bands for HCL ########################################################### import pandas as pd import matplotlib.pyplot as plt import numpy from hilltoppy.web_service import measurement_list, measuremen...
0
0
0
0
0
12,761
0
105
155
041d401242927bfbb4f3bfc5d1dd29d5204acfc7
1,867
py
Python
base/urls.py
zhoufan170/wcl_analysis
9a014512831e978f7904dd71de3aa1c27b5b7f7a
[ "Apache-2.0" ]
2
2020-09-15T07:36:13.000Z
2020-10-22T06:00:57.000Z
base/urls.py
zhoufan170/wcl_analysis
9a014512831e978f7904dd71de3aa1c27b5b7f7a
[ "Apache-2.0" ]
3
2020-09-09T09:10:36.000Z
2020-12-24T12:51:09.000Z
base/urls.py
zhoufan170/wcl_analysis
9a014512831e978f7904dd71de3aa1c27b5b7f7a
[ "Apache-2.0" ]
3
2020-09-28T01:35:32.000Z
2020-12-21T09:35:13.000Z
from django.urls import re_path, path from file_upload import views from base.views import load_report, log_detail, log_list, scan_viscidus_poison_tick, viscidus_poison_tick_info, scan_boss_nature_protection, boss_nature_protection_info, gold_run_detail # namespace app_name = "base" urlpatterns = [ # Upload File...
38.102041
132
0.719336
from django.urls import re_path, path from file_upload import views from base.views import load_report, log_detail, log_list, scan_viscidus_poison_tick, viscidus_poison_tick_info,\ scan_boss_nature_protection, boss_nature_protection_info, gold_run_detail # namespace app_name = "base" urlpatterns = [ # Upload...
0
0
0
0
0
0
0
5
0
48368e7040373996ab6c66069ca0d1f35c6f7de9
430
py
Python
tests/passenger_data_test.py
hubin111/Time-series-prediction
ce8c7383e3550d222b24d47ccae26b1df590e3ba
[ "MIT" ]
1
2021-03-30T06:47:34.000Z
2021-03-30T06:47:34.000Z
tests/passenger_data_test.py
MohsenSharifi1991/Time-series-prediction
ec6fbd99e9f575074b3211feadd1710387be7b15
[ "MIT" ]
null
null
null
tests/passenger_data_test.py
MohsenSharifi1991/Time-series-prediction
ec6fbd99e9f575074b3211feadd1710387be7b15
[ "MIT" ]
null
null
null
import sys import os filePath = os.path.abspath(os.path.dirname(__file__)) sys.path.append(os.path.split(filePath)[0]) from examples.data import read_data data_dir = '../data/international-airline-passengers.csv' prepare_data = read_data.PassengerData(params={'input_seq_length':15,'output_seq_length':5}) x,y=prepare...
28.666667
92
0.786047
import sys import os filePath = os.path.abspath(os.path.dirname(__file__)) sys.path.append(os.path.split(filePath)[0]) import pytest from examples.data import read_data data_dir = '../data/international-airline-passengers.csv' prepare_data = read_data.PassengerData(params={'input_seq_length':15,'output_seq_length':...
0
0
0
0
0
0
0
-8
23
9177313e8835808a19d1bdf64a1646e88c42b34f
8,173
py
Python
tests/test_layers_linear.py
ronmoore3/aihwkit
f49bc0a782e4b131429c1abcc4a7c14828b716c3
[ "Apache-2.0" ]
null
null
null
tests/test_layers_linear.py
ronmoore3/aihwkit
f49bc0a782e4b131429c1abcc4a7c14828b716c3
[ "Apache-2.0" ]
null
null
null
tests/test_layers_linear.py
ronmoore3/aihwkit
f49bc0a782e4b131429c1abcc4a7c14828b716c3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # (C) Copyright 2020, 2021 IBM. All Rights Reserved. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modificatio...
31.925781
88
0.602472
# -*- coding: utf-8 -*- # (C) Copyright 2020, 2021 IBM. All Rights Reserved. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modificatio...
0
6,995
0
0
0
0
0
359
291
124531970730d34bf32e528e1c12b2ac5474926e
9,682
py
Python
InplusTrader/dataEngine/cons.py
zhengwsh/InplusTrader_Linux
5f7eb17004da0b76ceafb93cb314de7a6009cd04
[ "MIT" ]
17
2017-04-20T05:17:25.000Z
2020-09-30T08:58:03.000Z
InplusTrader/dataEngine/cons.py
vladhj38/InplusTrader_Linux
5f7eb17004da0b76ceafb93cb314de7a6009cd04
[ "MIT" ]
1
2017-11-12T01:24:06.000Z
2019-09-19T08:50:38.000Z
InplusTrader/dataEngine/cons.py
vladhj38/InplusTrader_Linux
5f7eb17004da0b76ceafb93cb314de7a6009cd04
[ "MIT" ]
17
2017-04-17T08:17:00.000Z
2020-10-25T01:56:49.000Z
# -*- coding: utf-8 -*- """ Create on 2017/01/18 @author: vinson zheng @group: inpluslab @contact: 1530820222@qq.com """ VERSION = '1.0' K_LABELS = ['D', 'W', 'M'] K_MIN_LABELS = ['1', '5', '15', '30', '60'] K_TYPE = {'D': 'akdaily', 'W': 'akweekly', 'M': 'akmonthly'} TT_K_TYPE = {'D': 'day', 'W': 'week', 'M': 'month...
65.418919
402
0.642636
# -*- coding: utf-8 -*- """ Create on 2017/01/18 @author: vinson zheng @group: inpluslab @contact: 1530820222@qq.com """ import sys VERSION = '1.0' K_LABELS = ['D', 'W', 'M'] K_MIN_LABELS = ['1', '5', '15', '30', '60'] K_TYPE = {'D': 'akdaily', 'W': 'akweekly', 'M': 'akmonthly'} TT_K_TYPE = {'D': 'day', 'W': 'week',...
333
0
0
0
0
0
0
-11
23
2ae26ddbe02d3bb88c421da990a844aa035a1a0f
2,075
py
Python
Patrick Sanders/elections_scraper.py
ArtezGDA/MappingTheCity-Maps
a29377af7878907d30b4199d0859f007ba08b5e6
[ "MIT" ]
null
null
null
Patrick Sanders/elections_scraper.py
ArtezGDA/MappingTheCity-Maps
a29377af7878907d30b4199d0859f007ba08b5e6
[ "MIT" ]
null
null
null
Patrick Sanders/elections_scraper.py
ArtezGDA/MappingTheCity-Maps
a29377af7878907d30b4199d0859f007ba08b5e6
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup import urllib import json import os jaren = [str("2012"),str("2010"),str("2006"),str("2003"),str("2002"),str("1998"),str("1994"),str("1989"),str("1986")] DESIRED_COLUMNS = {1, 2, 5} #scrapes only afk, aantal & zetels verkiezingsData = [] filename = raw_input('Enter a filename: ') or 'data...
37.053571
117
0.600964
from bs4 import BeautifulSoup import urllib import json import os jaren = [str("2012"),str("2010"),str("2006"),str("2003"),str("2002"),str("1998"),str("1994"),str("1989"),str("1986")] DESIRED_COLUMNS = {1, 2, 5} #scrapes only afk, aantal & zetels verkiezingsData = [] filename = raw_input('Enter a filename: ') or 'data...
0
0
0
0
0
0
0
0
0
11245b0f0e036e7b46dc2b7b7beaabdc8db4c3e0
2,807
py
Python
rkd/GUI/eje_rotacion_animacion.py
iro-upgto/rkd
7823781ddc81a9dac18fed55080205e8ed68b57b
[ "MIT" ]
null
null
null
rkd/GUI/eje_rotacion_animacion.py
iro-upgto/rkd
7823781ddc81a9dac18fed55080205e8ed68b57b
[ "MIT" ]
null
null
null
rkd/GUI/eje_rotacion_animacion.py
iro-upgto/rkd
7823781ddc81a9dac18fed55080205e8ed68b57b
[ "MIT" ]
null
null
null
#!/usr/bin/env python if __name__ == "__main__": main()
28.353535
96
0.662985
#!/usr/bin/env python import vtk class vtkTimerCallback(): def __init__(self, steps, actor, iren): self.timer_count = 0 self.steps = steps self.actor = actor self.iren = iren self.timerId = None def execute(self, obj, event): step = 0 while step < self....
0
0
0
735
0
1,950
0
-11
69
a1eaf9e0bb2abbe0e2dd6827cb3705f0c4df1206
6,984
py
Python
spikesorters/herdingspikes/herdingspikes.py
Shawn-Guo-CN/spikesorters
e67831289bfefb356c3fd8e5700934fdeaf2b894
[ "MIT" ]
null
null
null
spikesorters/herdingspikes/herdingspikes.py
Shawn-Guo-CN/spikesorters
e67831289bfefb356c3fd8e5700934fdeaf2b894
[ "MIT" ]
null
null
null
spikesorters/herdingspikes/herdingspikes.py
Shawn-Guo-CN/spikesorters
e67831289bfefb356c3fd8e5700934fdeaf2b894
[ "MIT" ]
null
null
null
try: HAVE_HS = True except ImportError: HAVE_HS = False HerdingspikesSorter._default_params = { # core params 'clustering_bandwidth': 5.0, 'clustering_alpha': 6.0, 'clustering_n_jobs': -1, 'clustering_bin_seeding': True, 'clustering_min_bin_freq': 8, 'clustering_subset': None, ...
36.375
88
0.604525
from pathlib import Path import copy import spikeextractors as se import spiketoolkit as st from ..basesorter import BaseSorter try: import herdingspikes as hs HAVE_HS = True except ImportError: HAVE_HS = False class HerdingspikesSorter(BaseSorter): """ HerdingSpikes is a sorter based on estima...
0
175
0
5,552
0
0
0
23
161
fe89c331caa25e115830f180858dc02d0f3122b7
1,298
py
Python
Chapter_6/PygameDemo7_SimpleButton/Main_SimpleButton.py
IrvKalb/Object-Oriented-Python-Code
6e1ac88594d2e051064e63f39de27a21f365aa64
[ "BSD-2-Clause" ]
38
2021-11-16T03:04:42.000Z
2022-03-27T05:57:50.000Z
Chapter_6/PygameDemo7_SimpleButton/Main_SimpleButton.py
sthagen/Object-Oriented-Python-Code
6e1ac88594d2e051064e63f39de27a21f365aa64
[ "BSD-2-Clause" ]
null
null
null
Chapter_6/PygameDemo7_SimpleButton/Main_SimpleButton.py
sthagen/Object-Oriented-Python-Code
6e1ac88594d2e051064e63f39de27a21f365aa64
[ "BSD-2-Clause" ]
22
2021-11-11T15:57:58.000Z
2022-03-18T12:58:07.000Z
# pygame demo 7 SimpleButton test # 1 - Import packages import pygame import sys # Define constants GRAY = (200, 200, 200) WINDOW_WIDTH = 400 WINDOW_HEIGHT = 100 FRAMES_PER_SECOND = 30 # 2 - Initialize the world pygame.init() window = pygame.display.set_mode((WINDOW_WIDTH, WINDOW_HEIGHT)) clock = pygame.time.Clock...
24.037037
69
0.637134
# pygame demo 7 SimpleButton test # 1 - Import packages import pygame from pygame.locals import * from SimpleButton import * import sys # Define constants GRAY = (200, 200, 200) WINDOW_WIDTH = 400 WINDOW_HEIGHT = 100 FRAMES_PER_SECOND = 30 # 2 - Initialize the world pygame.init() window = pygame.display.set_mode((...
0
0
0
0
0
0
0
11
44
9ed36a3420127f537a481aeccdabca63c1bb676d
697
py
Python
setup.py
bitmazk/django-brutebuster-signals
2e62641307eec85b9d5bf959ea5d9ec12936262b
[ "Unlicense" ]
null
null
null
setup.py
bitmazk/django-brutebuster-signals
2e62641307eec85b9d5bf959ea5d9ec12936262b
[ "Unlicense" ]
null
null
null
setup.py
bitmazk/django-brutebuster-signals
2e62641307eec85b9d5bf959ea5d9ec12936262b
[ "Unlicense" ]
null
null
null
from setuptools import setup, find_packages import brutebuster_signals setup( name="django-brutebuster-signals", version=brutebuster_signals.__version__, description=read('DESCRIPTION'), long_description=read('README.rst'), keywords='brutebuster signals email', packages=find_packages(), a...
24.892857
74
0.701578
import os from setuptools import setup, find_packages import brutebuster_signals def read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except IOError: return '' setup( name="django-brutebuster-signals", version=brutebuster_signals.__version__, d...
0
0
0
0
0
117
0
-12
45
3bd0dedd849d4954781981897833fb30a605fd41
954
py
Python
Python&Flask/main.py
AesthicEthics/Authenticated-TorSite
92b7cf02f979d27009543abfa582f9e99c1a2eae
[ "MIT" ]
null
null
null
Python&Flask/main.py
AesthicEthics/Authenticated-TorSite
92b7cf02f979d27009543abfa582f9e99c1a2eae
[ "MIT" ]
null
null
null
Python&Flask/main.py
AesthicEthics/Authenticated-TorSite
92b7cf02f979d27009543abfa582f9e99c1a2eae
[ "MIT" ]
null
null
null
#!/usr/bin/python from flask import Flask import requests import subprocess networks = subprocess.check_output('sudo iwlist wlan0 scanning | grep ESSID',shell=True) networks = networks.decode('ascii') networks = networks.replace('\r','') ssid = networks.split('\n') ssid = ssid[4:] app = Flask(__name__) apikey = "R...
19.469388
88
0.689727
#!/usr/bin/python from flask import Flask from flask import render_template import time import requests import random from random import randint import json import subprocess networks = subprocess.check_output('sudo iwlist wlan0 scanning | grep ESSID',shell=True) networks = networks.decode('ascii') networks = networ...
0
103
0
0
0
0
0
-11
133
3bf78e6e56c8b78020d0da38b7b07f1c7c71330a
8,459
py
Python
ironic_inspector_client/test/test_common_http.py
mail2nsrajesh/python-ironic-inspector-client
d4659c10aab2101b0c25a898c7e6ce55f39aa9ba
[ "Apache-2.0" ]
null
null
null
ironic_inspector_client/test/test_common_http.py
mail2nsrajesh/python-ironic-inspector-client
d4659c10aab2101b0c25a898c7e6ce55f39aa9ba
[ "Apache-2.0" ]
null
null
null
ironic_inspector_client/test/test_common_http.py
mail2nsrajesh/python-ironic-inspector-client
d4659c10aab2101b0c25a898c7e6ce55f39aa9ba
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
38.625571
79
0.620995
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
0
3,133
0
4,453
0
0
0
1
181
b284f535f45bc09f2c715950f8a2c915b677089d
486
py
Python
ezstruct/__init__.py
matthewg/EzStruct
5ae842354171997311fb68ad55b8d1a9440beb99
[ "Apache-2.0" ]
null
null
null
ezstruct/__init__.py
matthewg/EzStruct
5ae842354171997311fb68ad55b8d1a9440beb99
[ "Apache-2.0" ]
null
null
null
ezstruct/__init__.py
matthewg/EzStruct
5ae842354171997311fb68ad55b8d1a9440beb99
[ "Apache-2.0" ]
null
null
null
"""Expressive syntax for working with binary formats and network protocols.""" __author__ = "Matthew Sachs (matthewg@zevils.com)" __copyright__ = "Copyright (c) 2013 Matthew Sachs" __license__ = "Apache License v2.0" __vcs_id__ = "$Revision$" __version__ = "0.1.0" from . import delimiter from . import field from . im...
27
78
0.77572
"""Expressive syntax for working with binary formats and network protocols.""" __author__ = "Matthew Sachs (matthewg@zevils.com)" __copyright__ = "Copyright (c) 2013 Matthew Sachs" __license__ = "Apache License v2.0" __vcs_id__ = "$Revision$" __version__ = "0.1.0" from . import delimiter from . import field from . im...
0
0
0
0
0
0
0
0
0
228d1254b4cf7bb56b4d9b38b1593eb8098d50c0
742
py
Python
Desafios/Desafio 88.py
blopah/python3-curso-em-video-gustavo-guanabara-exercicios
d86c613ea8bb335c4dd888a34bda456055e4d82e
[ "MIT" ]
2
2021-02-06T04:35:44.000Z
2021-02-08T02:37:33.000Z
Desafios/Desafio 88.py
blopah/python3-curso-em-video-gustavo-guanabara-exercicios
d86c613ea8bb335c4dd888a34bda456055e4d82e
[ "MIT" ]
null
null
null
Desafios/Desafio 88.py
blopah/python3-curso-em-video-gustavo-guanabara-exercicios
d86c613ea8bb335c4dd888a34bda456055e4d82e
[ "MIT" ]
null
null
null
print('''Faa um programa que ajude um jogador da MEGA SENA a criar palpites. O programa vai perguntar quantos jogos sero gerados e vai sortear 6 nmeros entre 1 e 60 para cada jogo, cadastrando tudo em uma lista composta.''') from random import randint from time import sleep li = [] num = int(input('Quantos jogos de...
32.26087
78
0.606469
print('''Faça um programa que ajude um jogador da MEGA SENA a criar palpites. O programa vai perguntar quantos jogos serão gerados e vai sortear 6 números entre 1 e 60 para cada jogo, cadastrando tudo em uma lista composta.''') from random import randint from time import sleep li = [] num = int(input('Quantos jogos...
6
0
0
0
0
0
0
0
0
dca2f25c84de7d539a2e8e305977628fb7cfe3c2
3,873
py
Python
esmtools/composite.py
luke-gregor/esmtools
27e58176ce8f00d1fd94279bdcfba242fd9c8de3
[ "MIT" ]
20
2019-10-02T12:02:49.000Z
2022-01-28T23:08:23.000Z
esmtools/composite.py
luke-gregor/esmtools
27e58176ce8f00d1fd94279bdcfba242fd9c8de3
[ "MIT" ]
84
2018-09-20T21:28:59.000Z
2021-08-17T16:21:22.000Z
esmtools/composite.py
luke-gregor/esmtools
27e58176ce8f00d1fd94279bdcfba242fd9c8de3
[ "MIT" ]
6
2018-09-21T05:04:22.000Z
2020-11-11T18:51:07.000Z
import xarray as xr def _create_composites(anomaly_field, index, threshold=1, dim="time"): """Creates composite from some variable's anomaly field and a climate index""" index_comp = xr.full_like(index, "none", dtype="U4") index_comp[index >= threshold] = "pos" index_comp[index <= -threshold] = "...
36.885714
80
0.635425
import warnings import xarray as xr from .checks import is_xarray from .stats import standardize from .testing import ttest_ind_from_stats def _create_composites(anomaly_field, index, threshold=1, dim="time"): """Creates composite from some variable's anomaly field and a climate index""" index_comp = xr...
0
3,317
0
0
0
0
0
31
112
4db2a8bc7e50509555bfa2a7893ed5d5ae69e41c
9,694
py
Python
knn_main.py
kimsunwiub/BLSH-TASLP
98b268c1463de39f6f8e04e47588a00daf1ff521
[ "MIT" ]
null
null
null
knn_main.py
kimsunwiub/BLSH-TASLP
98b268c1463de39f6f8e04e47588a00daf1ff521
[ "MIT" ]
null
null
null
knn_main.py
kimsunwiub/BLSH-TASLP
98b268c1463de39f6f8e04e47588a00daf1ff521
[ "MIT" ]
null
null
null
import torch torch.set_num_threads(1) if __name__ == "__main__": main()
36.719697
113
0.538477
from argparse import ArgumentParser import numpy as np import librosa import pickle import torch torch.set_num_threads(1) import os from utils import SDR, get_mir_scores, load_pkl def parse_arguments(): parser = ArgumentParser() parser.add_argument("-p", "--is_proj", action='store_true', ...
0
0
0
0
0
9,421
0
10
180
0796405858c5b43599b23bf2f01bdb3878370cdf
11,323
py
Python
tools/test_epoch.py
Giveupfree/Maker
34c53ae0790720e4064fd48ddec87e4f72db9966
[ "Unlicense" ]
null
null
null
tools/test_epoch.py
Giveupfree/Maker
34c53ae0790720e4064fd48ddec87e4f72db9966
[ "Unlicense" ]
null
null
null
tools/test_epoch.py
Giveupfree/Maker
34c53ae0790720e4064fd48ddec87e4f72db9966
[ "Unlicense" ]
null
null
null
# Copyright (c) SenseTime. All Rights Reserved. from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import argparse import os import torch import sys sys.path.append('../') parser = argparse.ArgumentParser(description='s...
47.376569
115
0.480526
# Copyright (c) SenseTime. All Rights Reserved. from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import argparse import os import cv2 import torch import numpy as np import math import sys import shutil sys.path.appen...
0
0
0
0
0
9,563
0
161
268
684ff2a6b2611103c149c62ae442223b08d3f16c
208
py
Python
listen1/handlers/home.py
xielutian/listen
15bfff8f688fca2a3a807f11ae7ba4acd133b83c
[ "MIT" ]
4,515
2016-04-23T02:13:11.000Z
2022-03-31T05:58:11.000Z
listen1/handlers/home.py
xielutian/listen
15bfff8f688fca2a3a807f11ae7ba4acd133b83c
[ "MIT" ]
85
2016-04-23T14:14:04.000Z
2022-03-03T15:00:46.000Z
listen1/handlers/home.py
xielutian/listen
15bfff8f688fca2a3a807f11ae7ba4acd133b83c
[ "MIT" ]
844
2016-04-25T06:42:40.000Z
2022-03-23T02:02:20.000Z
# coding=utf8 import logging logger = logging.getLogger('listenone.' + __name__)
17.333333
51
0.725962
# coding=utf8 import logging from handlers.base import BaseHandler logger = logging.getLogger('listenone.' + __name__) class HomeHandler(BaseHandler): def get(self): self.render("index.html")
0
0
0
63
0
0
0
16
46
223bff3b210742fc262c5961b23933e6b3fca7b4
3,883
py
Python
comparison_viz.py
ahartikainen/ArviZ_stats_comparison
f87cfc333e2793373bd17d86d0635403c1734a48
[ "Apache-2.0" ]
1
2020-04-12T13:59:41.000Z
2020-04-12T13:59:41.000Z
comparison_viz.py
ahartikainen/ArviZ_stats_comparison
f87cfc333e2793373bd17d86d0635403c1734a48
[ "Apache-2.0" ]
null
null
null
comparison_viz.py
ahartikainen/ArviZ_stats_comparison
f87cfc333e2793373bd17d86d0635403c1734a48
[ "Apache-2.0" ]
null
null
null
import os from datetime import datetime import holoviews as hv import numpy as np import pandas as pd from bokeh.models import HoverTool hv.extension("bokeh") if os.environ.get("USEGIT") == "true": env_name = "git" else: env_name = "pypi-cran" df_r = pd.read_csv( f"reference_posterior_{env_name}.csv", i...
26.77931
88
0.640227
import os from datetime import datetime import holoviews as hv import numpy as np import pandas as pd from bokeh.models import HoverTool hv.extension("bokeh") if os.environ.get("USEGIT") == "true": env_name = "git" else: env_name = "pypi-cran" df_r = pd.read_csv( f"reference_posterior_{env_name}.csv", i...
0
0
0
0
0
0
0
0
0
4c3c33a7373ea7a97dbd6c2831f2a160fb344025
96,028
py
Python
tests/EVM/test_EVMBYTE.py
mroll/manticore
d731562f7761ed9437cce406b24c815303de370c
[ "Apache-2.0" ]
null
null
null
tests/EVM/test_EVMBYTE.py
mroll/manticore
d731562f7761ed9437cce406b24c815303de370c
[ "Apache-2.0" ]
null
null
null
tests/EVM/test_EVMBYTE.py
mroll/manticore
d731562f7761ed9437cce406b24c815303de370c
[ "Apache-2.0" ]
null
null
null
import unittest if __name__ == '__main__': unittest.main()
41.624621
143
0.562419
import struct import unittest import json from manticore.platforms import evm from manticore.core import state from manticore.core.smtlib import Operators, ConstraintSet import os class EVMTest_BYTE(unittest.TestCase): _multiprocess_can_split_ = True maxDiff=None def _execute(self, new_vm): last...
0
0
0
95,775
0
0
0
32
156
155b22c09e54d1f12d1fda4ffcb9b9b6888a86c7
417
py
Python
auctions/migrations/0014_listing_num_bids.py
jaewoochung/commerce
78a5b63bf3a049fed813e12218bf72ff96eabef8
[ "MIT" ]
null
null
null
auctions/migrations/0014_listing_num_bids.py
jaewoochung/commerce
78a5b63bf3a049fed813e12218bf72ff96eabef8
[ "MIT" ]
null
null
null
auctions/migrations/0014_listing_num_bids.py
jaewoochung/commerce
78a5b63bf3a049fed813e12218bf72ff96eabef8
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2020-11-25 02:54
20.85
49
0.592326
# Generated by Django 3.1.3 on 2020-11-25 02:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('auctions', '0013_listing_user'), ] operations = [ migrations.AddField( model_name='listing', name='num_bids', ...
0
0
0
303
0
0
0
19
46
3e016b290125a12da411315e29e710d8a69837f9
1,402
py
Python
2021/11/p2.py
jo3-l/advent
22c0e8feb594bcb1d9f36b464bd735c6a8ab4ea0
[ "MIT" ]
null
null
null
2021/11/p2.py
jo3-l/advent
22c0e8feb594bcb1d9f36b464bd735c6a8ab4ea0
[ "MIT" ]
null
null
null
2021/11/p2.py
jo3-l/advent
22c0e8feb594bcb1d9f36b464bd735c6a8ab4ea0
[ "MIT" ]
null
null
null
adj8 = ((1, 0), (-1, 0), (0, 1), (0, -1), (1, -1), (1, 1), (-1, 1), (-1, -1))
22.612903
77
0.411555
import itertools adj8 = ((1, 0), (-1, 0), (0, 1), (0, -1), (1, -1), (1, 1), (-1, 1), (-1, -1)) def lmap(f, it): return list(map(f, it)) def ints(it): return lmap(int, it) def make_indexer(lst, default=None): def get(*indices): cur = lst for i in indices: if 0 <= i < len(cu...
0
0
0
0
0
1,210
0
-5
114
7d4261ff40f787aba49865f9ccabf8a3bfd3c4dc
752
py
Python
ledger/payments/bpoint/migrations/0003_auto_20160726_1416.py
jawaidm/ledger
7094f3320d6a409a2a0080e70fa7c2b9dba4a715
[ "Apache-2.0" ]
5
2018-02-12T03:16:36.000Z
2019-09-07T20:36:37.000Z
ledger/payments/bpoint/migrations/0003_auto_20160726_1416.py
jawaidm/ledger
7094f3320d6a409a2a0080e70fa7c2b9dba4a715
[ "Apache-2.0" ]
162
2018-02-16T05:13:03.000Z
2021-05-14T02:47:37.000Z
ledger/payments/bpoint/migrations/0003_auto_20160726_1416.py
jawaidm/ledger
7094f3320d6a409a2a0080e70fa7c2b9dba4a715
[ "Apache-2.0" ]
14
2018-02-15T05:22:36.000Z
2022-02-15T08:24:43.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-07-26 06:16 from __future__ import unicode_literals
28.923077
191
0.587766
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-07-26 06:16 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('bpoint', '0002_bpointtoken'), ] operations = [ migrations.AddField( ...
0
0
0
574
0
0
0
19
46
22e7e08ee38265c78202eb7920e49c17223d3862
2,306
py
Python
ngraph/python/tests/test_ngraph/test_node_factory.py
Andruxin52rus/openvino
d824e371fe7dffb90e6d3d58e4e34adecfce4606
[ "Apache-2.0" ]
1
2022-01-19T15:36:45.000Z
2022-01-19T15:36:45.000Z
ngraph/python/tests/test_ngraph/test_node_factory.py
Andruxin52rus/openvino
d824e371fe7dffb90e6d3d58e4e34adecfce4606
[ "Apache-2.0" ]
22
2021-02-03T12:41:51.000Z
2022-02-21T13:04:48.000Z
ngraph/python/tests/test_ngraph/test_node_factory.py
mmakridi/openvino
769bb7709597c14debdaa356dd60c5a78bdfa97e
[ "Apache-2.0" ]
1
2021-07-28T17:30:46.000Z
2021-07-28T17:30:46.000Z
# ****************************************************************************** # Copyright 2017-2021 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apa...
36.03125
80
0.647875
# ****************************************************************************** # Copyright 2017-2021 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apa...
0
0
0
0
0
1,347
0
51
157
4775be150a9720e1ed03aa59864fa166434735f0
6,241
py
Python
bench/dask_setup.py
vibhatha/cylon_applications
6af9bdf3b4738c6cc4cf2c3c181a5c60f049d113
[ "Apache-2.0" ]
5
2021-01-12T17:18:31.000Z
2022-02-23T05:37:14.000Z
bench/dask_setup.py
vibhatha/cylon_applications
6af9bdf3b4738c6cc4cf2c3c181a5c60f049d113
[ "Apache-2.0" ]
13
2021-01-06T12:49:14.000Z
2021-03-20T16:50:16.000Z
bench/dask_setup.py
vibhatha/cylon_applications
6af9bdf3b4738c6cc4cf2c3c181a5c60f049d113
[ "Apache-2.0" ]
null
null
null
import time import argparse import math """ >>> python dask_setup.py --start_size 100_000_000 \ --step_size 100_000_000 \ --end_size 500_000_000 \ --num_cols 2 \ ...
38.763975
155
0.54879
import os import dask import dask.dataframe as dd from dask.distributed import Client, SSHCluster import time import argparse import math import subprocess """ >>> python dask_setup.py --start_size 100_000_000 \ --step_size 100_000_000 \ ...
0
0
0
0
0
2,343
0
6
203
834ba283b724d8a2426e973c43b2c2eaf14788eb
5,656
py
Python
Assets/WebGLTemplates/Default2/booth_ga_short.py
morikatron/AxSample
3509f54258cbb574318cf982f48135a17432221a
[ "MIT" ]
null
null
null
Assets/WebGLTemplates/Default2/booth_ga_short.py
morikatron/AxSample
3509f54258cbb574318cf982f48135a17432221a
[ "MIT" ]
null
null
null
Assets/WebGLTemplates/Default2/booth_ga_short.py
morikatron/AxSample
3509f54258cbb574318cf982f48135a17432221a
[ "MIT" ]
null
null
null
import numpy as np # Ax PARAMETERS = [ { "name": "x1", "type": "range", "bounds": [-10.0, 10.0], "value_type": "float", }, { "name": "x2", "type": "range", "bounds": [-10.0, 10.0], "value_type": "float", }, ] LOCUS = np.array([128, 64, 3...
27.192308
101
0.507603
import array import random import numpy as np from deap import algorithms from deap import base from deap import creator from deap import tools # パラメータ定義テーブル(Ax仕様) PARAMETERS = [ { "name": "x1", "type": "range", "bounds": [-10.0, 10.0], "value_type": "float", }, { ...
1,395
0
0
4,459
0
0
0
-7
155
8988e07304c4d3bd103c4a99df61722845dec054
859
py
Python
logicqubit/synthesis.py
clnrp/logicqubit-gpu
5de45887e95d3bd5d9316d594ab7049604f52962
[ "Apache-2.0" ]
null
null
null
logicqubit/synthesis.py
clnrp/logicqubit-gpu
5de45887e95d3bd5d9316d594ab7049604f52962
[ "Apache-2.0" ]
null
null
null
logicqubit/synthesis.py
clnrp/logicqubit-gpu
5de45887e95d3bd5d9316d594ab7049604f52962
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- # Author Cleoner S. Pietralonga # e-mail: cleonerp@gmail.com # Apache License
26.030303
79
0.569267
#!/usr/bin/python # -*- coding: UTF-8 -*- # Author Cleoner S. Pietralonga # e-mail: cleonerp@gmail.com # Apache License import sympy as sp from sympy.physics.quantum import TensorProduct import numpy as np import cupy as cp from logicqubit.utils import * from logicqubit.hilbert import * class PauliDecomposition: ...
0
0
0
546
0
0
0
36
157
0ec86b0367f30d3ddd6805696810a55c7828cf64
1,280
py
Python
upt/exceptions.py
bish0polis/upt
6f3acbc9961481863f9ead36a09f0417b4e88d64
[ "BSD-3-Clause" ]
null
null
null
upt/exceptions.py
bish0polis/upt
6f3acbc9961481863f9ead36a09f0417b4e88d64
[ "BSD-3-Clause" ]
null
null
null
upt/exceptions.py
bish0polis/upt
6f3acbc9961481863f9ead36a09f0417b4e88d64
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2018 Cyril Roelandt # # Licensed under the 3-clause BSD license. See the LICENSE file.
32.820513
78
0.652344
# Copyright 2018 Cyril Roelandt # # Licensed under the 3-clause BSD license. See the LICENSE file. class InvalidPackageNameError(Exception): """Invalid package name or non-existing package.""" def __init__(self, frontend, pkg_name): self.frontend = frontend self.pkg_name = pkg_name d...
0
0
0
1,104
0
0
0
0
69
8c3009ea9e2a6cbd0ab6802ae8becc0e1e6c7763
2,618
py
Python
tools/pdf_split_tool/pdf_splitter.py
aaros-pl/pdf-utility
793adccc813e8ea25116b01f9926ffba425685de
[ "MIT" ]
5
2020-07-25T12:19:41.000Z
2020-12-30T06:37:15.000Z
tools/pdf_split_tool/pdf_splitter.py
aaros-pl/pdf-utility
793adccc813e8ea25116b01f9926ffba425685de
[ "MIT" ]
54
2020-05-23T15:34:33.000Z
2021-01-21T05:09:48.000Z
tools/pdf_split_tool/pdf_splitter.py
aaros-pl/pdf-utility
793adccc813e8ea25116b01f9926ffba425685de
[ "MIT" ]
1
2020-07-05T08:56:03.000Z
2020-07-05T08:56:03.000Z
"""PDF operations module."""
30.8
85
0.540489
"""PDF operations module.""" import os import sys import tempfile import PyPDF4 class PdfSplitter: """Pdf Splitter class.""" def __init__(self, filepath: str) -> None: """Constructor.""" self.filepath = filepath self.input_pdf = PyPDF4.PdfFileReader(filepath, "rb") self.total...
0
0
0
2,513
0
0
0
-37
112
a8740028d51b6feacb14aae85cdfe2d393239914
11,630
py
Python
src/ensae_projects/hackathon/image_knn.py
sdpython/ensae_projects
9647751da053c09fa35402527b294e02a4e6e2ad
[ "MIT" ]
1
2020-11-22T10:24:54.000Z
2020-11-22T10:24:54.000Z
src/ensae_projects/hackathon/image_knn.py
sdpython/ensae_projects
9647751da053c09fa35402527b294e02a4e6e2ad
[ "MIT" ]
13
2017-11-20T00:20:45.000Z
2021-01-05T14:13:51.000Z
src/ensae_projects/hackathon/image_knn.py
sdpython/ensae_projects
9647751da053c09fa35402527b294e02a4e6e2ad
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @file @brief Builds a knn classifier for image in order to find close images. """
41.684588
116
0.559587
# -*- coding: utf-8 -*- """ @file @brief Builds a knn classifier for image in order to find close images. """ import os import numpy from PIL.Image import Image from sklearn.neighbors import NearestNeighbors from .image_helper import img2gray, enumerate_image_class, read_image, image_zoom class ImageNearestNeighbors(...
0
0
0
11,316
0
0
0
70
133
7b1f50e03320a2b6307498d925914c22f0812c5d
3,389
py
Python
app/grandchallenge/serving/views.py
Tommos0/grand-challenge.org
187cd857f6a7c9651b7bda8c42c54801f071dd7c
[ "Apache-2.0" ]
null
null
null
app/grandchallenge/serving/views.py
Tommos0/grand-challenge.org
187cd857f6a7c9651b7bda8c42c54801f071dd7c
[ "Apache-2.0" ]
null
null
null
app/grandchallenge/serving/views.py
Tommos0/grand-challenge.org
187cd857f6a7c9651b7bda8c42c54801f071dd7c
[ "Apache-2.0" ]
null
null
null
import posixpath from django.conf import settings from django.http import Http404 from django.shortcuts import get_object_or_404 from django.utils._os import safe_join from grandchallenge.challenges.models import Challenge from grandchallenge.serving.permissions import (can_access) def serve_folder(request, *, chal...
31.091743
79
0.696371
import os import posixpath from django.conf import settings from django.core.files import File from django.core.files.storage import DefaultStorage from django.http import Http404 from django.shortcuts import get_object_or_404 from django.utils._os import safe_join from django.views.generic import RedirectView from re...
0
0
0
224
0
1,052
0
225
246
f0e47fd1a53422cf90dbba15e431774a2781fadf
402
py
Python
ex038.py
vinisantos7/PythonExercicios
bc8f38e03a606d6b0216632a93affeab0792e534
[ "MIT" ]
2
2021-11-04T21:09:11.000Z
2021-11-08T09:42:10.000Z
ex038.py
vinisantos7/PythonExercicios
bc8f38e03a606d6b0216632a93affeab0792e534
[ "MIT" ]
null
null
null
ex038.py
vinisantos7/PythonExercicios
bc8f38e03a606d6b0216632a93affeab0792e534
[ "MIT" ]
null
null
null
print("*"*20) print("Comparando Numeros") print("*"*20) primeiro_valor = int(input("Digite o primeiro valor: ")) segundo_valor = int(input("Digite o segundo valor: ")) if primeiro_valor > segundo_valor: print(f"O nmero {primeiro_valor} MAIOR!") elif segundo_valor > primeiro_valor: print(f"O nmero {segundo_va...
28.714286
56
0.711443
print("*"*20) print("Comparando Numeros") print("*"*20) primeiro_valor = int(input("Digite o primeiro valor: ")) segundo_valor = int(input("Digite o segundo valor: ")) if primeiro_valor > segundo_valor: print(f"O número {primeiro_valor} é MAIOR!") elif segundo_valor > primeiro_valor: print(f"O número {segundo...
12
0
0
0
0
0
0
0
0
2aa9ffcbc0a8526f8b4e677b125a51bce119fac9
9,205
py
Python
demo.py
GatorSense/DREN
c84bc57b00d9b44e240f56ade4e6beab4d449288
[ "MIT" ]
4
2021-03-09T14:19:21.000Z
2022-03-01T17:52:06.000Z
demo.py
GatorSense/DREN
c84bc57b00d9b44e240f56ade4e6beab4d449288
[ "MIT" ]
null
null
null
demo.py
GatorSense/DREN
c84bc57b00d9b44e240f56ade4e6beab4d449288
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Main script for divergence regulated encoder network (DREN) demo.py @author: jpeeples """ ## Python standard libraries from __future__ import print_function from __future__ import division import numpy as np import os import pdb ## PyTorch dependencies import torch import torch.nn as nn im...
53.208092
128
0.525801
# -*- coding: utf-8 -*- """ Main script for divergence regulated encoder network (DREN) demo.py @author: jpeeples """ ## Python standard libraries from __future__ import print_function from __future__ import division import numpy as np import os import pdb ## PyTorch dependencies import torch import torch.nn as nn im...
0
0
0
0
0
0
0
-11
22
94cc2b405196f5eaf77ead2e2d6b1fcdcc1be3e3
429
py
Python
validated/migrations/0005_auto_20191118_1359.py
andrewbird2/validated
82f8dddcc88f78e1d1678eb65cc99740ed195553
[ "MIT" ]
null
null
null
validated/migrations/0005_auto_20191118_1359.py
andrewbird2/validated
82f8dddcc88f78e1d1678eb65cc99740ed195553
[ "MIT" ]
null
null
null
validated/migrations/0005_auto_20191118_1359.py
andrewbird2/validated
82f8dddcc88f78e1d1678eb65cc99740ed195553
[ "MIT" ]
null
null
null
# Generated by Django 2.2.7 on 2019-11-18 19:59
22.578947
84
0.624709
# Generated by Django 2.2.7 on 2019-11-18 19:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('validated', '0004_auto_20191118_1323'), ] operations = [ migrations.AlterField( model_name='testresult', name='objec...
0
0
0
315
0
0
0
19
46
4a9a1f9d2ead3f7df022281789905df2554e9cbb
15,330
py
Python
foil/sweepEg.py
pdgilbert/3D-CAD
745c88f7dfff865327b97ff0ac4047f68615742b
[ "CC0-1.0" ]
null
null
null
foil/sweepEg.py
pdgilbert/3D-CAD
745c88f7dfff865327b97ff0ac4047f68615742b
[ "CC0-1.0" ]
null
null
null
foil/sweepEg.py
pdgilbert/3D-CAD
745c88f7dfff865327b97ff0ac4047f68615742b
[ "CC0-1.0" ]
null
null
null
# see surf_foil.py for an improved version of this #from __future__ import unicode_literals from FreeCAD import Base #import Draft, Part import Part, math z = foil(file_profile="/home/paul/CAD/foil/H105Coord.dat", file_LeadTrail="/home/paul/CAD/foil/test.sweepPath") z.show() #z.showfoil() #z.showProfile...
35.568445
129
0.615786
# see surf_foil.py for an improved version of this #from __future__ import unicode_literals from FreeCAD import Base #import Draft, Part import Part, math class foil(): class profile(): def __init__(self, profileDAT, doc = None, source = None): self.profileDAT = profileDAT self.do...
0
0
0
7,298
0
192
0
0
49
89047dcf1628e3693802a619a18a4059665fefa9
12,801
py
Python
test/unit/extensions/omci/test_me_frame.py
nsharma70/pyvoltha
ea01eb85f45e3cd0bed12b4b446e5af7f66c16db
[ "Apache-2.0" ]
2
2019-04-18T17:40:04.000Z
2020-12-27T21:52:57.000Z
test/unit/extensions/omci/test_me_frame.py
nsharma70/pyvoltha
ea01eb85f45e3cd0bed12b4b446e5af7f66c16db
[ "Apache-2.0" ]
7
2019-11-20T23:32:46.000Z
2022-02-11T03:43:06.000Z
test/unit/extensions/omci/test_me_frame.py
rohan-agra/VOL-2311-pyvoltha
54ac9266cf4fc27a7583ba08ada779ad107e9cfe
[ "Apache-2.0" ]
4
2019-05-08T21:44:26.000Z
2020-07-13T12:57:37.000Z
# # Copyright 2017 the original author or authors. # # 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...
40.128527
84
0.604328
# # Copyright 2017 the original author or authors. # # 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...
0
0
0
11,716
0
0
0
125
111
5c0c371c45a933f64406d814a1a630c8ba042818
7,553
py
Python
tests/webinspect/proxy_unit_test.py
matt-fevold/webbreaker
b500fc620ebba03a27321c8f832ab77bb760b9c5
[ "MIT" ]
7
2018-12-20T19:18:43.000Z
2019-12-10T15:03:41.000Z
tests/webinspect/proxy_unit_test.py
matt-fevold/webbreaker
b500fc620ebba03a27321c8f832ab77bb760b9c5
[ "MIT" ]
5
2019-04-02T17:07:44.000Z
2020-02-17T07:08:11.000Z
tests/webinspect/proxy_unit_test.py
matt-fevold/webbreaker
b500fc620ebba03a27321c8f832ab77bb760b9c5
[ "MIT" ]
7
2019-01-10T10:40:55.000Z
2022-03-13T14:08:37.000Z
import logging try: import ConfigParser as configparser config = configparser.SafeConfigParser() except ImportError: # Python3 import configparser config = configparser.ConfigParser() # Disable debugging for log clarity in testing logging.disable(logging.DEBUG) # proxy --start # proxy --list...
38.340102
121
0.761155
import mock import pytest import logging import re from testfixtures import LogCapture from mock import mock_open from webbreaker.webinspect.proxy import WebInspectProxy from webinspectapi.webinspect import WebInspectResponse try: import ConfigParser as configparser config = configparser.SafeConfigParser() e...
0
5,161
0
1,624
0
0
0
57
334
aba377cb3c1f15ed5f1f8b7ade1a9446d6456c14
2,418
py
Python
index_tracking/compute_tracking_error.py
alvarorga/index_tracking
763923a869c96b7db2709d6ce28f0c3df05b04b0
[ "MIT" ]
1
2022-02-22T17:50:45.000Z
2022-02-22T17:50:45.000Z
index_tracking/compute_tracking_error.py
aarongilman/index_tracking
763923a869c96b7db2709d6ce28f0c3df05b04b0
[ "MIT" ]
null
null
null
index_tracking/compute_tracking_error.py
aarongilman/index_tracking
763923a869c96b7db2709d6ce28f0c3df05b04b0
[ "MIT" ]
2
2021-07-19T05:25:55.000Z
2021-11-26T14:41:15.000Z
"""Compute tracking error from quantum circuit results.""" import numpy as np def compute_mean_terr(res, N, d, , g, 0): """Compute mean tracking error from a set of quantum measurements. Parameters ---------- res: dict Measurements from a quantum circuit in Qiskit format. N: int ...
21.981818
70
0.513648
"""Compute tracking error from quantum circuit results.""" import numpy as np def compute_mean_terr(res, N, d, Σ, g, ε0): """Compute mean tracking error from a set of quantum measurements. Parameters ---------- res: dict Measurements from a quantum circuit in Qiskit format. N: int ...
26
0
0
0
0
0
0
0
0
078953282723695c6718715d7f7d699f9620e2bd
156
py
Python
elephant detection using tenserflow api/checklight.py
HiranyaRavinath/project_elefante
80c13a5fd4c5a44efeeeab4b7098e1332e14c02a
[ "MIT" ]
null
null
null
elephant detection using tenserflow api/checklight.py
HiranyaRavinath/project_elefante
80c13a5fd4c5a44efeeeab4b7098e1332e14c02a
[ "MIT" ]
null
null
null
elephant detection using tenserflow api/checklight.py
HiranyaRavinath/project_elefante
80c13a5fd4c5a44efeeeab4b7098e1332e14c02a
[ "MIT" ]
3
2020-10-17T05:25:12.000Z
2021-04-02T08:36:31.000Z
import time mytime = time.localtime() if mytime.tm_hour < 6 or mytime.tm_hour > 18: a = 0 else: a = 1
10.4
45
0.634615
import time mytime = time.localtime() if mytime.tm_hour < 6 or mytime.tm_hour > 18: a = 0 else: a = 1 def checklightcondition(): return a
0
0
0
0
0
18
0
0
23
17c4c27a1388ff64f1e5766aa41b0bba28c2be56
452
py
Python
Commands/refreshAllCommand.py
ScorchChamp/Telofik
a5992c89a8552065ab115710585545ad272cf412
[ "MIT" ]
null
null
null
Commands/refreshAllCommand.py
ScorchChamp/Telofik
a5992c89a8552065ab115710585545ad272cf412
[ "MIT" ]
null
null
null
Commands/refreshAllCommand.py
ScorchChamp/Telofik
a5992c89a8552065ab115710585545ad272cf412
[ "MIT" ]
null
null
null
import Utilities.Weights.playerStore as playerStore
45.2
101
0.756637
from scorch_api.bot import * import Utilities.Weights.playerStore as playerStore def discordMessage(username): return BMC.newMessage(title=minecraftMessage(username)) def minecraftMessage(username): if username.lower() != "scorchchamp": return f'Im sorry {username}, I dont think you can do that' else: ...
0
0
0
0
0
326
0
7
67
db5debd52a3fed5b96924779b10426c208902b4b
3,584
py
Python
object_detection/color_labeler/core.py
aira/.public_object_detector_app
30185b79749ec121c1b395571f22e395427cff4e
[ "MIT" ]
null
null
null
object_detection/color_labeler/core.py
aira/.public_object_detector_app
30185b79749ec121c1b395571f22e395427cff4e
[ "MIT" ]
null
null
null
object_detection/color_labeler/core.py
aira/.public_object_detector_app
30185b79749ec121c1b395571f22e395427cff4e
[ "MIT" ]
null
null
null
""" Assigns a human understandable label to a color value TODO: in python there's rarely a need for generic file or folder names like core.py or main.py """ import pandas as pd import numpy as np import cv2 from object_detection.constants import COLOR_KEYS def estimate_color(img, box=None): """ Args: ...
28.903226
109
0.624163
""" Assigns a human understandable label to a color value TODO: in python there's rarely a need for generic file or folder names like core.py or main.py """ from collections import OrderedDict import pandas as pd import numpy as np import cv2 from object_detection.constants import COLOR_KEYS def estimate_color(img...
0
0
0
0
0
0
0
14
22
deec041103d809be5b1cbbf9f2f94ff0dc121f49
5,074
py
Python
resources/libraries/python/honeycomb/IPv6Management.py
preym17/csit
3151c98618c78e3782e48bbe4d9c8f906c126f69
[ "Apache-2.0" ]
null
null
null
resources/libraries/python/honeycomb/IPv6Management.py
preym17/csit
3151c98618c78e3782e48bbe4d9c8f906c126f69
[ "Apache-2.0" ]
null
null
null
resources/libraries/python/honeycomb/IPv6Management.py
preym17/csit
3151c98618c78e3782e48bbe4d9c8f906c126f69
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 Cisco and/or its affiliates. # 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...
34.283784
79
0.612337
# Copyright (c) 2017 Cisco and/or its affiliates. # 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
4,095
0
217
0
0
0
25
46
0164e30781ae5a67fab59b6ddf895e2404583bb7
711
py
Python
alembic/versions/43a5cdca0a62_node_feature.py
AngelLiang/hacking-june
35791a2329bae2599505f64d75cac8758f61c6e5
[ "BSD-3-Clause" ]
680
2015-01-02T01:41:43.000Z
2022-03-04T16:28:51.000Z
alembic/versions/43a5cdca0a62_node_feature.py
xzhxq/june
36e6c402d877024839ea7a402f39c36d30901162
[ "BSD-3-Clause" ]
12
2015-01-25T13:54:22.000Z
2018-10-01T09:51:06.000Z
alembic/versions/43a5cdca0a62_node_feature.py
xzhxq/june
36e6c402d877024839ea7a402f39c36d30901162
[ "BSD-3-Clause" ]
288
2015-01-04T08:10:14.000Z
2021-12-06T09:35:10.000Z
"""Node feature Revision ID: 43a5cdca0a62 Revises: f08sa66d495 Create Date: 2013-12-09 12:09:41.969339 """ # revision identifiers, used by Alembic. revision = '43a5cdca0a62' down_revision = 'f08sa66d495'
24.517241
76
0.683544
"""Node feature Revision ID: 43a5cdca0a62 Revises: f08sa66d495 Create Date: 2013-12-09 12:09:41.969339 """ # revision identifiers, used by Alembic. revision = '43a5cdca0a62' down_revision = 'f08sa66d495' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ple...
0
0
0
0
0
408
0
3
91
83ffe5bd3d8eddb53bdff6b40071b22b1e21ae76
843
py
Python
Aulas/06TiposPrimitivosSaidas.py
GabrielMendesMelo/CursoEmVideo-Python
74e3a4df29406a9fc6859e3f3e9b824ee8a997b2
[ "Unlicense" ]
null
null
null
Aulas/06TiposPrimitivosSaidas.py
GabrielMendesMelo/CursoEmVideo-Python
74e3a4df29406a9fc6859e3f3e9b824ee8a997b2
[ "Unlicense" ]
null
null
null
Aulas/06TiposPrimitivosSaidas.py
GabrielMendesMelo/CursoEmVideo-Python
74e3a4df29406a9fc6859e3f3e9b824ee8a997b2
[ "Unlicense" ]
null
null
null
EX01() EX02()
35.125
66
0.570581
def EX01(): n1 = int(input("Numero 1: ")) n2 = int(input("Numero 2: ")) res = n1 + n2 print("A soma entre {} e {} é igual a {}".format(n1, n2, res)) def EX02(): var = input("Digite: ") print(type(var)) print("Alfanumérico: {};".format(var.isalnum())) print("Alfa: {};".format(var.isalpha...
12
0
0
0
0
778
0
0
45
e6b2ac5d7b886f4bd0f1523e1b72c010493d8db6
2,993
py
Python
ClassifiedProject/backend/tasks/apis/task_api.py
PatrickHXH/Test-Development
f7a24dceb136597f7a59440299eb3184f98f7a92
[ "Apache-2.0" ]
null
null
null
ClassifiedProject/backend/tasks/apis/task_api.py
PatrickHXH/Test-Development
f7a24dceb136597f7a59440299eb3184f98f7a92
[ "Apache-2.0" ]
null
null
null
ClassifiedProject/backend/tasks/apis/task_api.py
PatrickHXH/Test-Development
f7a24dceb136597f7a59440299eb3184f98f7a92
[ "Apache-2.0" ]
null
null
null
from ninja import Router import os from backend.settings import BASE_DIR data_dir = os.path.join(BASE_DIR,'tasks', '../task_running', 'test_data.json') test_dir = os.path.join(BASE_DIR,'tasks', '../task_running', 'test_case.py') router = Router(tags=["tasks_router"]) #
30.85567
95
0.692616
from ninja import Router from django.forms.models import model_to_dict from django.db.utils import IntegrityError from backend.common import response,Error from tasks.apis.api_schema import TaskIn from projects.models import Project from cases.models import TestCase from tasks.models import TestTask,TaskCaseRelevance f...
102
2,184
0
0
0
0
0
192
312
549e30bab69b2cce8dfdd8432ba20966bb47bea6
596
py
Python
pythontoolbox_templates/config.py
brian32768/visual_studio_templates
3bd1c61d60f637e46212a0b8435045d306eafa66
[ "MIT" ]
1
2018-08-15T18:33:18.000Z
2018-08-15T18:33:18.000Z
pythontoolbox_templates/config.py
brian32768/visual_studio_templates
3bd1c61d60f637e46212a0b8435045d306eafa66
[ "MIT" ]
null
null
null
pythontoolbox_templates/config.py
brian32768/visual_studio_templates
3bd1c61d60f637e46212a0b8435045d306eafa66
[ "MIT" ]
null
null
null
""" $project$ common configuration properties @author: $author$ @date: $time$ """ import os LOGFORMAT = '%(asctime)s %(message)s' # You need to change these, most likely. GIS_FILESERVER = "\\\\cc-storage\\GIS" # Normally mapped as the "K:" LISDATA = os.path.join(GIS_FILESERVER, "LISData") LOCAL_GDB = ...
39.733333
111
0.723154
""" $project$ common configuration properties @author: $author$ @date: $time$ """ import os LOGFORMAT = '%(asctime)s %(message)s' # You need to change these, most likely. GIS_FILESERVER = "\\\\cc-storage\\GIS" # Normally mapped as the "K:" LISDATA = os.path.join(GIS_FILESERVER, "LISData") LOCAL_GDB = ...
0
0
0
0
0
0
0
0
0
1d6a8fb315b4f911b8705cb8dd52cb71a0b0c656
1,707
py
Python
recruitment.py
jgabrielfreitas/recruitment-api
7da73ce7c6af3970e2144b06ab260cb40adaa497
[ "MIT" ]
2
2017-09-23T18:57:46.000Z
2017-11-01T19:33:42.000Z
recruitment.py
jgabrielfreitas/recruitment-api
7da73ce7c6af3970e2144b06ab260cb40adaa497
[ "MIT" ]
null
null
null
recruitment.py
jgabrielfreitas/recruitment-api
7da73ce7c6af3970e2144b06ab260cb40adaa497
[ "MIT" ]
1
2018-03-29T22:26:37.000Z
2018-03-29T22:26:37.000Z
from flask import Flask from flask.ext.cors import CORS app = Flask(__name__) cors = CORS(app) app.config['CORS_HEADERS'] = 'Content-Type' OK = 200 CREATED = 201 NOT_FOUND = 404 INTERNAL_SERVER_ERROR = 500 SERVICE_UNAVAILABLE = 503 # Error handlers if __name__ == '__main__': app.run(debug=True)
28.45
102
0.765085
from flask import Flask, jsonify, request from flask.ext.cors import CORS, cross_origin from database.database import ApplicationDao app = Flask(__name__) cors = CORS(app) app.config['CORS_HEADERS'] = 'Content-Type' OK = 200 CREATED = 201 NOT_FOUND = 404 INTERNAL_SERVER_ERROR = 500 SERVICE_UNAVAILABLE = 503 @app.r...
0
1,181
0
0
0
0
0
55
160
3d1789c852505e5c7150eed82d2b403ef083eb44
2,129
py
Python
buildin_class/property_of_class/sample.py
Mason-Lin/python_playground
f6d3f194d48c94d43c0e416baa249755f4388bc9
[ "MIT" ]
null
null
null
buildin_class/property_of_class/sample.py
Mason-Lin/python_playground
f6d3f194d48c94d43c0e416baa249755f4388bc9
[ "MIT" ]
4
2020-09-18T11:49:14.000Z
2021-07-13T11:20:47.000Z
buildin_class/property_of_class/sample.py
Mason-Lin/python_playground
f6d3f194d48c94d43c0e416baa249755f4388bc9
[ "MIT" ]
null
null
null
f = foo() f.init_api('.', 123)
24.471264
60
0.624237
import logging from pathlib import Path class foo(object): def __init__(self, folder_path=None, number=None): super().__init__() self.init_api(folder_path, number) self.initialized = False def init_api(self, folder_path, number): if not folder_path or not number: r...
0
848
0
1,186
0
0
0
-4
67