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
ce180e43d46becf624d008e39e079151236a0da8
4,286
py
Python
contrail_api_cli_extra/clean/orphaned_acl.py
Ya-S/contrail-api-cli-extra
2ebe996523d2eb22991a9078d8997a52ccd1af38
[ "MIT" ]
1
2020-03-08T12:15:01.000Z
2020-03-08T12:15:01.000Z
contrail_api_cli_extra/clean/orphaned_acl.py
Ya-S/contrail-api-cli-extra
2ebe996523d2eb22991a9078d8997a52ccd1af38
[ "MIT" ]
1
2017-03-28T09:33:26.000Z
2017-03-28T10:18:37.000Z
contrail_api_cli_extra/clean/orphaned_acl.py
Ya-S/contrail-api-cli-extra
2ebe996523d2eb22991a9078d8997a52ccd1af38
[ "MIT" ]
2
2017-03-28T09:13:42.000Z
2019-01-16T14:06:26.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import logging logger = logging.getLogger(__name__)
42.435644
106
0.581195
# -*- coding: utf-8 -*- from __future__ import unicode_literals import logging from pycassa import ConnectionPool, ColumnFamily from urllib import unquote_plus from contrail_api_cli.command import Command, Option from contrail_api_cli.resource import Resource, Collection from contrail_api_cli.exceptions import Resour...
2
0
0
3,406
0
428
0
150
181
e357e63bcfded532be84f882eaccb2bece267b9c
301
py
Python
wmfdata/metadata.py
pkannetwork/wmfdata
a5620af60322f165fb97e655f37309ccdabc48e8
[ "BSD-3-Clause" ]
1
2022-02-26T00:50:29.000Z
2022-02-26T00:50:29.000Z
wmfdata/metadata.py
pkannetwork/wmfdata
a5620af60322f165fb97e655f37309ccdabc48e8
[ "BSD-3-Clause" ]
null
null
null
wmfdata/metadata.py
pkannetwork/wmfdata
a5620af60322f165fb97e655f37309ccdabc48e8
[ "BSD-3-Clause" ]
null
null
null
# This file holds metadata about the project. It should import only from standard library modules # (this includes not importing other modules in the package) so that it can be loaded # by setup.py before dependencies are installed. source = "https://github.com/neilpquinn/wmfdata" version = "0.1.0"
50.166667
97
0.774086
# This file holds metadata about the project. It should import only from standard library modules # (this includes not importing other modules in the package) so that it can be loaded # by setup.py before dependencies are installed. source = "https://github.com/neilpquinn/wmfdata" version = "0.1.0"
0
0
0
0
0
0
0
0
0
b97ff469e74478d33a637df38144b7389b7a2fb6
2,486
py
Python
lib/ReferenceLoader.py
HCBravoLab/yanagi
2d94096d45780458bf692e863433c400be3c2799
[ "MIT" ]
4
2019-08-20T13:06:10.000Z
2020-01-09T15:48:56.000Z
lib/ReferenceLoader.py
HCBravoLab/yanagi
2d94096d45780458bf692e863433c400be3c2799
[ "MIT" ]
4
2020-03-03T19:37:51.000Z
2020-07-16T12:43:22.000Z
lib/ReferenceLoader.py
HCBravoLab/yanagi
2d94096d45780458bf692e863433c400be3c2799
[ "MIT" ]
2
2020-05-25T01:21:27.000Z
2020-06-13T13:54:32.000Z
# A disjoint exonic bin. This class holds disjoint exonic bin data prepared # in the preprocessing step ####################### ####################### # Transcript class
29.951807
100
0.565969
from collections import defaultdict import os # A disjoint exonic bin. This class holds disjoint exonic bin data prepared # in the preprocessing step class DExon: chrome = "" exonID = 0 start = 0 end = 0 width = 0 strand = "" seq = "" def __init__(self, chrome, exonID, start, end, stra...
0
0
0
1,056
0
1,118
0
2
135
edc6b31072eccca21c6f738952f909e1fa8b4455
4,310
py
Python
mcdwld/mcdwld.py
Couapy/mc-downloader
8cc407423304b8878560de59172fb6570f3d966f
[ "MIT" ]
null
null
null
mcdwld/mcdwld.py
Couapy/mc-downloader
8cc407423304b8878560de59172fb6570f3d966f
[ "MIT" ]
null
null
null
mcdwld/mcdwld.py
Couapy/mc-downloader
8cc407423304b8878560de59172fb6570f3d966f
[ "MIT" ]
null
null
null
import hashlib import logging import os import requests MOJANG_MANIFEST_URL = 'https://launchermeta.mojang.com/mc/game/version_manifest.json' DOWNLOADS_VERSIONS_FILENAME = 'servers-infos.txt' def get_versions(manifest_url: str, types=['snapshot', 'release', 'old_beta', 'old_alpha']): """Get manifest of mojang...
33.671875
120
0.624362
import configparser import hashlib import logging import os import sys import requests MOJANG_MANIFEST_URL = 'https://launchermeta.mojang.com/mc/game/version_manifest.json' DOWNLOADS_VERSIONS_FILENAME = 'servers-infos.txt' class IntegrityCheckError(Exception): """Throwed if the file signature doesn't match wit...
0
0
0
104
0
0
0
-13
67
de71e49358f44b26debcb1c47e220896d363186e
3,464
py
Python
py_client/udp_client.py
Dagefoerde/connect-four-tobininajan
5b163fd0bcc51adea55c723d24c0138f2aa31f5f
[ "MIT" ]
null
null
null
py_client/udp_client.py
Dagefoerde/connect-four-tobininajan
5b163fd0bcc51adea55c723d24c0138f2aa31f5f
[ "MIT" ]
null
null
null
py_client/udp_client.py
Dagefoerde/connect-four-tobininajan
5b163fd0bcc51adea55c723d24c0138f2aa31f5f
[ "MIT" ]
null
null
null
""" UDP client in python. """ import logging logging.basicConfig(level=logging.DEBUG)
33.631068
81
0.613741
""" UDP client in python. """ import logging import socket import threading from py_client.players import Player logging.basicConfig(level=logging.DEBUG) class UdpClient: """UDP client for playing Connect-N""" def __init__(self, username: str, ip: str, port: int, player: Player): self._username: s...
0
0
0
3,283
0
0
0
2
90
f3d4b758ba991a5a9c377245c07f54299adfc9e3
8,350
py
Python
framework/extract.py
miniskar/deffe
9d919248b954af4ded9cd69e95b770dab2941e23
[ "BSD-3-Clause" ]
2
2021-10-12T02:24:12.000Z
2022-02-21T16:01:58.000Z
framework/extract.py
miniskar/deffe
9d919248b954af4ded9cd69e95b770dab2941e23
[ "BSD-3-Clause" ]
null
null
null
framework/extract.py
miniskar/deffe
9d919248b954af4ded9cd69e95b770dab2941e23
[ "BSD-3-Clause" ]
null
null
null
## Copyright 2020 UT-Battelle, LLC. See LICENSE.txt for more information. ### # @author Narasinga Rao Miniskar, Frank Liu, Dwaipayan Chakraborty, Jeffrey Vetter # miniskarnr@ornl.gov # # Modification: # Baseline code # Date: Apr, 2020 # ******************************************************...
41.336634
113
0.553293
## Copyright 2020 UT-Battelle, LLC. See LICENSE.txt for more information. ### # @author Narasinga Rao Miniskar, Frank Liu, Dwaipayan Chakraborty, Jeffrey Vetter # miniskarnr@ornl.gov # # Modification: # Baseline code # Date: Apr, 2020 # ******************************************************...
0
0
0
7,581
0
45
0
-20
221
757bb0985512f48dd273c86a2bfbda6a3f460268
201
py
Python
pokr/cache.py
minsukkahng/pokr.kr
169475778c998b4198ac7d6a1cebbc3c389e41b8
[ "Apache-2.0" ]
76
2015-01-19T12:39:43.000Z
2021-10-14T06:10:25.000Z
pokr/cache.py
minsukkahng/pokr.kr
169475778c998b4198ac7d6a1cebbc3c389e41b8
[ "Apache-2.0" ]
22
2015-01-03T01:00:53.000Z
2019-09-14T11:55:06.000Z
pokr/cache.py
minsukkahng/pokr.kr
169475778c998b4198ac7d6a1cebbc3c389e41b8
[ "Apache-2.0" ]
28
2015-01-14T15:45:00.000Z
2020-06-03T13:29:41.000Z
# -*- coding: utf-8 -*- # TODO: remove this from flask.ext.cache import Cache cache = Cache()
13.4
44
0.706468
# -*- coding: utf-8 -*- # TODO: remove this from flask.ext.cache import Cache from settings import CACHE_CONFIG cache = Cache() def init_cache(app): cache.init_app(app, config=CACHE_CONFIG)
0
0
0
0
0
44
0
12
46
1e587cb8a1831a6386188b4caa2e0f241c8522aa
13,314
py
Python
test/sasrealspace/test/utest_realspace.py
andyfaff/sasview
c00a797ab9c4ddc60f0fa8a64ae8a2067c225921
[ "BSD-3-Clause" ]
null
null
null
test/sasrealspace/test/utest_realspace.py
andyfaff/sasview
c00a797ab9c4ddc60f0fa8a64ae8a2067c225921
[ "BSD-3-Clause" ]
null
null
null
test/sasrealspace/test/utest_realspace.py
andyfaff/sasview
c00a797ab9c4ddc60f0fa8a64ae8a2067c225921
[ "BSD-3-Clause" ]
null
null
null
""" Unit tests for specific models @author: Mathieu Doucet / UTK """ from __future__ import print_function import unittest # Disable "missing docstring" complaint # pylint: disable-msg=C0111 # Disable "too many methods" complaint # pylint: disable-msg=R0904 # Disable "could be a function" complaint # pylin...
35.222222
85
0.596665
""" Unit tests for specific models @author: Mathieu Doucet / UTK """ from __future__ import print_function import unittest, math, time # Disable "missing docstring" complaint # pylint: disable-msg=C0111 # Disable "too many methods" complaint # pylint: disable-msg=R0904 # Disable "could be a function" compla...
0
0
0
12,529
0
0
0
12
105
0efaa7ad290c5c6ceea403d290fa2bc69f0efbec
4,110
py
Python
test/chemistry/test_readme_sample.py
hushaohan/aqua
8512bc6ce246a8b3cca1e5edb1703b6885aa7c5d
[ "Apache-2.0" ]
1
2020-08-01T21:07:54.000Z
2020-08-01T21:07:54.000Z
test/chemistry/test_readme_sample.py
hushaohan/aqua
8512bc6ce246a8b3cca1e5edb1703b6885aa7c5d
[ "Apache-2.0" ]
null
null
null
test/chemistry/test_readme_sample.py
hushaohan/aqua
8512bc6ce246a8b3cca1e5edb1703b6885aa7c5d
[ "Apache-2.0" ]
1
2022-01-25T07:09:10.000Z
2022-01-25T07:09:10.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2020. # # 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 modif...
37.706422
99
0.649878
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2020. # # 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 modif...
0
0
0
3,228
0
0
0
57
68
951924130a891c959df6409764796422e30f7ed6
3,567
py
Python
Graphs/GraphAlt.py
ketansahils/Algorithms_One
7322048975c8c76f1d00e11d7cf94f72a9312901
[ "BSD-3-Clause" ]
null
null
null
Graphs/GraphAlt.py
ketansahils/Algorithms_One
7322048975c8c76f1d00e11d7cf94f72a9312901
[ "BSD-3-Clause" ]
null
null
null
Graphs/GraphAlt.py
ketansahils/Algorithms_One
7322048975c8c76f1d00e11d7cf94f72a9312901
[ "BSD-3-Clause" ]
null
null
null
import os, sys sys.path.insert(0, os.path.abspath('..')) from WeekX.LinkedList import LinkedList from WeekX.Stack import Stack if __name__ == '__main__': graph = Graph(13) graph.addEdge(0,1) graph.addEdge(0,5) graph.addEdge(0,2) graph.addEdge(0,6) graph.addEdge(3,4) graph.addEdge(5,3) graph.addEdge(5,4) gra...
21.232143
58
0.587048
import os, sys sys.path.insert(0, os.path.abspath('..')) from WeekX.LinkedList import LinkedList from WeekX.Stack import Stack class Bag(LinkedList): def __init__(self,val): LinkedList.__init__(self,val) def addBefore(self,a,b): pass def addAfter(self,a,b): pass def addFirst(self,val): pass def addLas...
0
0
0
1,676
0
0
0
0
92
fa28cc51ef782e8ba203033401f9a9590c7d59f0
3,663
py
Python
config.py
aidenkihyunkim/cloudwatch-metric-to-csv
dbcffbf37f9a4ff230983c00fe2a3612107d2b42
[ "MIT" ]
null
null
null
config.py
aidenkihyunkim/cloudwatch-metric-to-csv
dbcffbf37f9a4ff230983c00fe2a3612107d2b42
[ "MIT" ]
null
null
null
config.py
aidenkihyunkim/cloudwatch-metric-to-csv
dbcffbf37f9a4ff230983c00fe2a3612107d2b42
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ############################################## # Export CloudWatch metric data to csv file # Configuration file ############################################## METRICS = { 'CPUUtilization': ['AWS/EC2', 'AWS/RDS'], 'CPUCreditUsage': ['AWS/EC2', 'AWS/RDS'], 'CPUCreditBalance': ['AWS/EC2', 'AWS/...
40.7
76
0.678679
# -*- coding: utf-8 -*- ############################################## # Export CloudWatch metric data to csv file # Configuration file ############################################## METRICS = { 'CPUUtilization': ['AWS/EC2', 'AWS/RDS'], 'CPUCreditUsage': ['AWS/EC2', 'AWS/RDS'], 'CPUCreditBalance': ['AWS/EC2', 'AWS/...
0
0
0
0
0
0
0
0
0
0ae2a5eb0ae50370f1a90e2f17773c95b8a9aa0a
7,087
py
Python
youtube_dl/postprocessor/embedthumbnail.py
Harry567899561/youtube-dl
9196dc509a217e18dc95fa889f89ec1d1b0bb659
[ "Unlicense" ]
null
null
null
youtube_dl/postprocessor/embedthumbnail.py
Harry567899561/youtube-dl
9196dc509a217e18dc95fa889f89ec1d1b0bb659
[ "Unlicense" ]
null
null
null
youtube_dl/postprocessor/embedthumbnail.py
Harry567899561/youtube-dl
9196dc509a217e18dc95fa889f89ec1d1b0bb659
[ "Unlicense" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals
44.018634
127
0.626499
# coding: utf-8 from __future__ import unicode_literals import os import shutil import subprocess from .ffmpeg import FFmpegPostProcessor from ..utils import ( check_executable, encodeArgument, encodeFilename, PostProcessingError, prepend_extension, replace_extension, shell_quote, ba...
0
0
0
6,712
0
0
0
157
159
b6723d5aee0d5258236a4ddb3bd3b8aabd586b41
1,492
py
Python
test.py
YougoLuck/Lip_Discriminate
bde1ca7f6aefc500e34bd06fcfef5158819d1c63
[ "MIT" ]
null
null
null
test.py
YougoLuck/Lip_Discriminate
bde1ca7f6aefc500e34bd06fcfef5158819d1c63
[ "MIT" ]
null
null
null
test.py
YougoLuck/Lip_Discriminate
bde1ca7f6aefc500e34bd06fcfef5158819d1c63
[ "MIT" ]
null
null
null
import tensorflow as tf import RecordLoader as rloader MAX_EPOCH = 1 REPEAT = 1 BATCH_SIZE = 200 TEST_TFRECORD = '' MODEL_GRAPH = '' MODEL_PATH = '' with tf.Session() as sess: saver = tf.train.import_meta_graph(MODEL_GRAPH) saver.restore(sess, tf.train.latest_checkpoint(MODEL_PATH)) filenam...
38.25641
104
0.688338
import tensorflow as tf import RecordLoader as rloader import numpy as np import time MAX_EPOCH = 1 REPEAT = 1 BATCH_SIZE = 200 TEST_TFRECORD = '' MODEL_GRAPH = '' MODEL_PATH = '' with tf.Session() as sess: saver = tf.train.import_meta_graph(MODEL_GRAPH) saver.restore(sess, tf.train.latest_check...
0
0
0
0
0
0
0
-13
46
8dbd7b9d0cfcd5b316ab81b96170fde18f2d4d83
1,159
py
Python
setup.py
gagneurlab/py_outrider
190ea2a79659da9bc8f6f877e18d942ffbb53ad6
[ "MIT" ]
null
null
null
setup.py
gagneurlab/py_outrider
190ea2a79659da9bc8f6f877e18d942ffbb53ad6
[ "MIT" ]
null
null
null
setup.py
gagneurlab/py_outrider
190ea2a79659da9bc8f6f877e18d942ffbb53ad6
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name="py_outrider", version="0.1.0", author="Stefan Loipfinger, Ines Scheller", author_email="scheller@in.tum.de", description="Python backend package for OUTRIDER2 R package", ...
33.114286
70
0.55824
from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name="py_outrider", version="0.1.0", author="Stefan Loipfinger, Ines Scheller", author_email="scheller@in.tum.de", description="Python backend package for OUTRIDER2 R package", ...
0
0
0
0
0
0
0
0
0
83696b7d64b52fd232b8a72085f0a23f61cea6f2
1,415
py
Python
examples/basic_pyspark_crag/repo.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
4,606
2018-06-21T17:45:20.000Z
2022-03-31T23:39:42.000Z
examples/basic_pyspark_crag/repo.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
6,221
2018-06-12T04:36:01.000Z
2022-03-31T21:43:05.000Z
examples/basic_pyspark_crag/repo.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
619
2018-08-22T22:43:09.000Z
2022-03-31T22:48:06.000Z
# start_repo_marker_0 make_and_filter_data_job = make_and_filter_data.to_job( resource_defs={"io_manager": local_parquet_store} ) # end_repo_marker_0
25.727273
95
0.739929
# start_repo_marker_0 import os from dagster import IOManager, graph, io_manager, op, repository from pyspark.sql import DataFrame, Row, SparkSession from pyspark.sql.types import IntegerType, StringType, StructField, StructType class LocalParquetStore(IOManager): def _get_path(self, context): return os....
0
524
0
381
0
0
0
119
227
df4f7b1cb85b0931b5af6d38ff9dede832c7f20c
1,168
py
Python
pytfa/redgem/utils.py
12rambau/pytfa
fae4f94fd3f39303ef41305a33850b5cd0809543
[ "Apache-2.0" ]
30
2017-08-17T09:10:39.000Z
2022-03-08T20:38:40.000Z
pytfa/redgem/utils.py
12rambau/pytfa
fae4f94fd3f39303ef41305a33850b5cd0809543
[ "Apache-2.0" ]
40
2018-03-21T14:45:01.000Z
2022-03-04T12:50:38.000Z
pytfa/redgem/utils.py
12rambau/pytfa
fae4f94fd3f39303ef41305a33850b5cd0809543
[ "Apache-2.0" ]
27
2018-03-03T10:34:35.000Z
2022-03-01T23:58:13.000Z
# from cobra.flux_analysis import flux_variability_analysis
27.809524
66
0.688356
import numpy as np # from cobra.flux_analysis import flux_variability_analysis from pytfa.analysis.variability import variability_analysis def remove_blocked_reactions(model): epsilon = model.solver.configuration.tolerances.feasibility # fva = flux_variability_analysis(model) fva = variability_analysis(mod...
0
0
0
0
0
960
0
35
113
7c53d25be86a3379610aae697e82908a7463a9a5
42,873
py
Python
src/metpy/calc/basic.py
Marilyth/MetPy
5ab290b30b2ca88fd655089395dd61186c2c1883
[ "BSD-3-Clause" ]
1
2021-08-16T13:13:17.000Z
2021-08-16T13:13:17.000Z
src/metpy/calc/basic.py
Marilyth/MetPy
5ab290b30b2ca88fd655089395dd61186c2c1883
[ "BSD-3-Clause" ]
null
null
null
src/metpy/calc/basic.py
Marilyth/MetPy
5ab290b30b2ca88fd655089395dd61186c2c1883
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2008,2015,2016,2017,2018,2019 MetPy Developers. # Distributed under the terms of the BSD 3-Clause License. # SPDX-License-Identifier: BSD-3-Clause """Contains a collection of basic calculations. These include: * wind components * heat index * windchill """ import contextlib import warnings import num...
35.315486
95
0.666737
# Copyright (c) 2008,2015,2016,2017,2018,2019 MetPy Developers. # Distributed under the terms of the BSD 3-Clause License. # SPDX-License-Identifier: BSD-3-Clause """Contains a collection of basic calculations. These include: * wind components * heat index * windchill """ import contextlib from itertools import produ...
0
40,926
0
0
0
0
0
74
549
d3fdbbae59878e18b70ff73944c9c31692768a4f
956
py
Python
binarytree/q11.py
pengfei-chen/algorithm_qa
c2ccdcb77004e88279d61e4e433ee49527fc34d6
[ "MIT" ]
79
2018-03-27T12:37:49.000Z
2022-01-21T10:18:17.000Z
binarytree/q11.py
pengfei-chen/algorithm_qa
c2ccdcb77004e88279d61e4e433ee49527fc34d6
[ "MIT" ]
null
null
null
binarytree/q11.py
pengfei-chen/algorithm_qa
c2ccdcb77004e88279d61e4e433ee49527fc34d6
[ "MIT" ]
27
2018-04-08T03:07:06.000Z
2021-10-30T00:01:50.000Z
""" t1t2t1t2 """ from binarytree.toolcls import Node if __name__ == '__main__': t1 = Node(1) t1.left = Node(2) t1.right = Node(3) t1.left.left = Node(4) t1.left.right = Node(5) t1.right.left = Node(6) t1.right.right = Node(7) t1.left.left.left = Node(8) t1.left.left.right = Node(...
23.317073
102
0.612971
""" 问题描述:给定彼此独立的两棵树头结点分别为t1和t2,判断t1树是否包含t2树全部的拓扑结构。 """ from binarytree.toolcls import Node class BSTTop: @classmethod def is_bst_top(cls, t1, t2): return cls.visit_in_pre(t1, t2) or cls.is_bst_top(t1.left, t2) or cls.is_bst_top(t1.right, t2) @classmethod def visit_in_pre(cls, t1, t2): ...
117
365
0
-8
0
0
0
0
76
b6dc69f1f67252d3037e2a0a8330ae2de3d44c88
805
py
Python
Python/example8/run.py
djulcac/Miscellaneous
6b1facb23417161735f794e98f5f1e2e14872bde
[ "MIT" ]
null
null
null
Python/example8/run.py
djulcac/Miscellaneous
6b1facb23417161735f794e98f5f1e2e14872bde
[ "MIT" ]
null
null
null
Python/example8/run.py
djulcac/Miscellaneous
6b1facb23417161735f794e98f5f1e2e14872bde
[ "MIT" ]
null
null
null
import pymongo config = { # "mongo" : "mongodb://usuario:pass@localhost/admin" # "mongo" : "mongodb://usuario:pass@localhost:27100/admin" "mongo" : "mongodb://localhost:27100/admin" } myclient = pymongo.MongoClient(config['mongo']) print('bases de datos',myclient.list_database_names()) db = myclient["tes...
21.184211
62
0.657143
import pymongo config = { # "mongo" : "mongodb://usuario:pass@localhost/admin" # "mongo" : "mongodb://usuario:pass@localhost:27100/admin" "mongo" : "mongodb://localhost:27100/admin" } myclient = pymongo.MongoClient(config['mongo']) print('bases de datos',myclient.list_database_names()) db = myclient["tes...
0
0
0
0
0
0
0
0
0
c78c13858c793507f53b83c75ffd8e1ffe241366
21,356
py
Python
base_model.py
KnightZhang625/NMT_Model
06dc049b1124f1ae72552d883a73f67ebf7426c8
[ "Apache-2.0" ]
2
2019-08-05T10:59:25.000Z
2019-08-12T01:32:32.000Z
base_model.py
KnightZhang625/NMT_Model
06dc049b1124f1ae72552d883a73f67ebf7426c8
[ "Apache-2.0" ]
1
2019-08-29T09:59:42.000Z
2019-08-29T10:31:18.000Z
base_model.py
KnightZhang625/NMT_Model
06dc049b1124f1ae72552d883a73f67ebf7426c8
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 # Produced by Andysin Zhang # 06_Aug_2019 # Inspired By Google, Appreciate for the wonderful work # # Copyright 2019 TCL Inc. All Rights Reserverd. # 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 ...
36.319728
137
0.727477
# coding:utf-8 # Produced by Andysin Zhang # 06_Aug_2019 # Inspired By Google, Appreciate for the wonderful work # # Copyright 2019 TCL Inc. All Rights Reserverd. # 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 ...
0
2,104
0
16,826
0
0
0
24
227
4afe86c8b9924953d2ba1a048009b5d74b630a92
317
py
Python
src/kgmk/io/types/fmt/__init__.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
src/kgmk/io/types/fmt/__init__.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
src/kgmk/io/types/fmt/__init__.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
# from .. import ( # PathManager, # Path_, # )
10.566667
20
0.643533
# from .. import ( # PathManager, # Path_, # ) from .base import ( BaseFormat, BaseFormats, ) from .df import ( DFFormat, DFFormats, ) from .audio import ( AudioFormat, AudioFormats, ) from .video import ( VideoFormat, VideoFormats, FourCC, ) from .img import ( ImgFormat, ImgFormats, )
0
0
0
0
0
0
0
152
115
bbc78c0c4d3a037a7bded3a5fa6ff4f82e4bcb2a
1,616
py
Python
preprocess.py
iamvigneshwars/annotate-unstructured-medical-abstracts
8a71f96c2e9490729f80458e1aeca0c8f7cabda3
[ "Apache-2.0" ]
null
null
null
preprocess.py
iamvigneshwars/annotate-unstructured-medical-abstracts
8a71f96c2e9490729f80458e1aeca0c8f7cabda3
[ "Apache-2.0" ]
null
null
null
preprocess.py
iamvigneshwars/annotate-unstructured-medical-abstracts
8a71f96c2e9490729f80458e1aeca0c8f7cabda3
[ "Apache-2.0" ]
null
null
null
from nltk import sent_tokenize import pandas as pd import numpy as np import joblib def createData(abstract): """ This function extracts the text from all the sentences and extracts the positional information of the sentences in an unstructract. Args: abstract - raw text of unstructured abst...
28.350877
86
0.616955
from nltk import sent_tokenize import pandas as pd import numpy as np import joblib def createData(abstract): """ This function extracts the text from all the sentences and extracts the positional information of the sentences in an unstructract. Args: abstract - raw text of unstructured abst...
0
0
0
0
0
0
0
0
0
0ed338d79d438a03e85244e2d4d2f67c2e810cf0
14,502
py
Python
code/AcousticDataGenerator.py
madhurkashyap/boundary_detection
f7fb98c8bcbc204b1fcd0eb34a8699f16a8725a3
[ "MIT" ]
null
null
null
code/AcousticDataGenerator.py
madhurkashyap/boundary_detection
f7fb98c8bcbc204b1fcd0eb34a8699f16a8725a3
[ "MIT" ]
null
null
null
code/AcousticDataGenerator.py
madhurkashyap/boundary_detection
f7fb98c8bcbc204b1fcd0eb34a8699f16a8725a3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Apr 22 16:58:07 2018 @author: Madhur Kashyap 2016EEZ8350 """
44.213415
84
0.564129
# -*- coding: utf-8 -*- """ Created on Sun Apr 22 16:58:07 2018 @author: Madhur Kashyap 2016EEZ8350 """ import math import logging import numpy as np import pandas as pd from Utils import gen_bidi_map, is_array_or_list, is_dataframe from AudioUtils import read_sph, extract_features from TrainUtils import...
0
0
0
14,122
0
0
0
75
188
e127bca0ece139ffe8f89cfc56ba89818edc2826
4,939
py
Python
drl_negotiation/train.py
YueNing/tn_source_code
515713c9349a2444021fdc9b02fd483f5ffd3e56
[ "MIT" ]
null
null
null
drl_negotiation/train.py
YueNing/tn_source_code
515713c9349a2444021fdc9b02fd483f5ffd3e56
[ "MIT" ]
null
null
null
drl_negotiation/train.py
YueNing/tn_source_code
515713c9349a2444021fdc9b02fd483f5ffd3e56
[ "MIT" ]
null
null
null
MODEL_NEGOTIATION = [ "DQN", "PPO1", "PPO2", "GAIL", "A2C", "ACER", "DDPG", ]
34.538462
145
0.633934
from .env import NEnv from datetime import datetime MODEL_NEGOTIATION = [ "DQN", "PPO1", "PPO2", "GAIL", "A2C", "ACER", "DDPG", ] def train_negotiation(plot=True, model="DQN", env=None, monitor=True, num_timesteps=1000, eval_freq=100, eval_episodes=2, seed=721, LOGDIR=None): if mo...
0
0
0
0
0
4,758
0
8
67
091bc58e9929f5c72767c6e14faf10762cdaa004
2,353
py
Python
main.py
cjensen506/fs-road-status-scraper
f28904f9e92fb9bf743909fc244db8bfa949253e
[ "MIT" ]
null
null
null
main.py
cjensen506/fs-road-status-scraper
f28904f9e92fb9bf743909fc244db8bfa949253e
[ "MIT" ]
null
null
null
main.py
cjensen506/fs-road-status-scraper
f28904f9e92fb9bf743909fc244db8bfa949253e
[ "MIT" ]
null
null
null
if __name__ == "__main__": hello_pubsub(event="", context="")
39.881356
121
0.579686
from bs4 import BeautifulSoup import requests from google.cloud import firestore from google.cloud import secretmanager def hello_pubsub(event, context): # Scrape the webpage page = requests.get('https://www.fs.usda.gov/detailfull/mthood/alerts-notices/?cid=stelprdb5191108&width=full') if (page.status_co...
0
0
0
0
0
2,143
0
32
111
22ddd800ff097b601d2ebe58ef4dfe86ae54b563
84
py
Python
tests/conftest.py
RainingComputers/syncgit
a5627fd73f30d64078496473047b89321899d6d5
[ "MIT" ]
null
null
null
tests/conftest.py
RainingComputers/syncgit
a5627fd73f30d64078496473047b89321899d6d5
[ "MIT" ]
null
null
null
tests/conftest.py
RainingComputers/syncgit
a5627fd73f30d64078496473047b89321899d6d5
[ "MIT" ]
null
null
null
import os os.environ["SYNCGIT_REPOS_DIR_NAME"] = os.path.join("tests", "fixtures")
21
72
0.738095
import os os.environ["SYNCGIT_REPOS_DIR_NAME"] = os.path.join("tests", "fixtures")
0
0
0
0
0
0
0
0
0
b5c43504df894a8c31fda3525fe3b99bd19d7cd3
2,661
py
Python
dataset/hcp/tools/reprocess_tensors.py
cassianobecker/dnn
bb2ea04f77733de9df10f795bb049ac3b9d30478
[ "MIT" ]
3
2020-02-21T21:35:07.000Z
2020-09-29T15:20:00.000Z
dataset/hcp/tools/reprocess_tensors.py
cassianobecker/dnn
bb2ea04f77733de9df10f795bb049ac3b9d30478
[ "MIT" ]
27
2020-02-20T21:00:23.000Z
2020-05-22T15:23:25.000Z
dataset/hcp/tools/reprocess_tensors.py
cassianobecker/dnn
bb2ea04f77733de9df10f795bb049ac3b9d30478
[ "MIT" ]
null
null
null
if __name__ == '__main__': # path = '~/.dnn/datasets/hcp/processing_odf/HCP_1200_tensor' # process_all_odf_tensors(path) path = '~/.dnn/datasets/hcp/processing/HCP_1200_tensor' process_all_dti_tensors(path)
28.308511
70
0.669673
import os import numpy as np import re def process_odf_tensor(abs_path, subject): print(f'loading odf tensor for subject {subject}:') tensor_name = 'odf_tensor_' + subject + '.npz' tensor_url = os.path.join(abs_path, subject, tensor_name) if not os.path.isfile(tensor_url): print(f'tensor fi...
0
0
0
0
0
2,299
0
-27
158
b38521703df9d907859779eddc42fc924cef9bfa
28,699
py
Python
deep_hipsc_tracking/tracking/traces.py
JackToppen/deep-hipsc-tracking
9d7e07814f26e3f76603bba1a945ae05e88733db
[ "BSD-3-Clause" ]
2
2021-05-19T02:10:04.000Z
2021-05-27T01:26:54.000Z
deep_hipsc_tracking/tracking/traces.py
JackToppen/deep-hipsc-tracking
9d7e07814f26e3f76603bba1a945ae05e88733db
[ "BSD-3-Clause" ]
1
2021-05-17T23:17:32.000Z
2021-05-19T15:17:21.000Z
deep_hipsc_tracking/tracking/traces.py
JackToppen/deep-hipsc-tracking
9d7e07814f26e3f76603bba1a945ae05e88733db
[ "BSD-3-Clause" ]
1
2021-05-17T22:51:17.000Z
2021-05-17T22:51:17.000Z
""" Tools for ploting individual traces * :py:class:`TraceDB`: Store a map between individual traces and image stacks """ # Imports # 3rd party imports # Our own imports # Classes
38.677898
137
0.535907
""" Tools for ploting individual traces * :py:class:`TraceDB`: Store a map between individual traces and image stacks """ # Imports import pathlib from typing import Dict, Optional, Tuple, List # 3rd party imports import numpy as np import matplotlib.pyplot as plt from skimage.feature import peak_local_max # Our...
0
3,288
0
24,850
0
0
0
172
201
aa4306490ace87be3c5a955088bf99b76ee0c817
2,625
py
Python
bioestrutural.py
EulleSA/Bioinformatics-PSSM
38737551ef80a1ceb4410f2b732a0b62ee747d9d
[ "MIT" ]
null
null
null
bioestrutural.py
EulleSA/Bioinformatics-PSSM
38737551ef80a1ceb4410f2b732a0b62ee747d9d
[ "MIT" ]
null
null
null
bioestrutural.py
EulleSA/Bioinformatics-PSSM
38737551ef80a1ceb4410f2b732a0b62ee747d9d
[ "MIT" ]
null
null
null
#/bin/envs python3 #-*- encoding: utf-8 -*- # if(re.findall(r"^>[a-zA-Z0-9]{6}$",line)): try: except ImportError: raise ImportError("pip3 install numpy") try: except ImportError: raise ImportError("pip3 install pandas") # Criar uma lista com as letras do dicionario e armazenar o valor global keys #keys = ['A', ...
23.026316
119
0.639619
#/bin/envs python3 #-*- encoding: utf-8 -*- # if(re.findall(r"^>[a-zA-Z0-9]{6}$",line)): try: import numpy as np except ImportError: raise ImportError("pip3 install numpy") try: import pandas as pd except ImportError: raise ImportError("pip3 install pandas") import os, argparse, math , re from decimal import ...
6
0
0
0
0
1,971
0
10
162
b914002f80ab547d5de8296f55af5c8545bf32aa
1,230
py
Python
sdk/search/microsoft/bing/commerce/search/models/boost_expression_py3.py
microsoft/bing-commerce-sdk-for-python
cf555ea0bb14792708617d2435dd5aab1c4cbe90
[ "MIT" ]
1
2020-05-04T09:58:07.000Z
2020-05-04T09:58:07.000Z
sdk/search/microsoft/bing/commerce/search/models/boost_expression_py3.py
microsoft/bing-commerce-sdk-for-python
cf555ea0bb14792708617d2435dd5aab1c4cbe90
[ "MIT" ]
2
2020-04-21T02:32:32.000Z
2020-04-21T19:37:54.000Z
sdk/search/microsoft/bing/commerce/search/models/boost_expression_py3.py
microsoft/bing-commerce-sdk-for-python
cf555ea0bb14792708617d2435dd5aab1c4cbe90
[ "MIT" ]
4
2020-07-31T10:39:22.000Z
2021-11-10T08:14:07.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. # coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. #...
36.176471
80
0.581301
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. # coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. #...
0
0
0
764
0
0
0
17
50
61c0d26878b388f9fd01da94fecdfae9fa012545
200
py
Python
src/clientConfig.py
copyninja17/UNO
79bf8bd0a9cff6a1ba98e14a1d94b7dedb85077e
[ "MIT" ]
2
2021-09-12T18:05:15.000Z
2022-03-23T18:11:47.000Z
src/clientConfig.py
copyninja17/UNO
79bf8bd0a9cff6a1ba98e14a1d94b7dedb85077e
[ "MIT" ]
null
null
null
src/clientConfig.py
copyninja17/UNO
79bf8bd0a9cff6a1ba98e14a1d94b7dedb85077e
[ "MIT" ]
null
null
null
top_card = None player_hand = None eventID = None drawn_cards = None playerTurn = None winner = None chosenColour = None playable_cards = None currentChoice = None okPrompt = None colourChange = None
18.181818
21
0.78
top_card = None player_hand = None eventID = None drawn_cards = None playerTurn = None winner = None chosenColour = None playable_cards = None currentChoice = None okPrompt = None colourChange = None
0
0
0
0
0
0
0
0
0
293c725999cf0cc94e12255914a2f69c3063d0c4
12,606
py
Python
mod/onboardingapi/dcae_cli/util/run.py
onap/dcaegen2-platform
9e930892d28fc4a3378fad8f942c9f91cffe4698
[ "Apache-2.0", "CC-BY-4.0" ]
1
2021-10-15T19:41:32.000Z
2021-10-15T19:41:32.000Z
dcae-cli/dcae_cli/util/run.py
onap/dcaegen2-platform-cli
ed5efaa5c5eb09023a61814ea8d73f962be0471e
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
dcae-cli/dcae_cli/util/run.py
onap/dcaegen2-platform-cli
ed5efaa5c5eb09023a61814ea8d73f962be0471e
[ "Apache-2.0", "CC-BY-4.0" ]
1
2021-10-15T15:02:20.000Z
2021-10-15T15:02:20.000Z
# ============LICENSE_START======================================================= # org.onap.dcae # ================================================================================ # Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved. # =============================================================...
42.877551
127
0.660083
# ============LICENSE_START======================================================= # org.onap.dcae # ================================================================================ # Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved. # =============================================================...
0
0
0
0
0
1,943
0
46
23
4aef0db373c98b1dcac8a61c363c26c3ff65e502
1,354
py
Python
tpdatasrc/tpgamefiles/rules/char_class/class028_horizon_walker.py
mercurier/TemplePlus
244f83346d1f1afb64017ee2a8d6e3639e43320d
[ "MIT" ]
null
null
null
tpdatasrc/tpgamefiles/rules/char_class/class028_horizon_walker.py
mercurier/TemplePlus
244f83346d1f1afb64017ee2a8d6e3639e43320d
[ "MIT" ]
null
null
null
tpdatasrc/tpgamefiles/rules/char_class/class028_horizon_walker.py
mercurier/TemplePlus
244f83346d1f1afb64017ee2a8d6e3639e43320d
[ "MIT" ]
null
null
null
################################################### classEnum = stat_level_horizon_walker ################################################### class_feats = { } class_skills = (skill_balance, skill_climb, skill_diplomacy, skill_handle_animal, skill_hide, skill_knowledge_nature, skill_listen, skill_move_silently,...
19.070423
217
0.733383
from toee import * import char_class_utils ################################################### def GetConditionName(): return "Horizon Walker" def GetCategory(): return "Core 3.5 Ed Prestige Classes" def GetClassDefinitionFlags(): return CDF_CoreClass def GetClassHelpTopic(): return "TAG_HORIZON_WALKERS" clas...
0
0
0
0
0
531
0
-1
438
64f5b461b4159a50fbf61321a0fcec6d2f7ef65f
1,032
py
Python
pyhandy/test/test_txt_utils.py
jaredpeterson/pyhandy
ca75b34bf0de5584446328d72ec42dc84e1d07df
[ "Apache-2.0" ]
1
2021-12-31T20:25:46.000Z
2021-12-31T20:25:46.000Z
pyhandy/test/test_txt_utils.py
jaredpeterson/pyhandy
ca75b34bf0de5584446328d72ec42dc84e1d07df
[ "Apache-2.0" ]
null
null
null
pyhandy/test/test_txt_utils.py
jaredpeterson/pyhandy
ca75b34bf0de5584446328d72ec42dc84e1d07df
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Unit tests for txt_utils.py. """
13.945946
91
0.645349
#!/usr/bin/env python # -*- coding: utf-8 -*- """Unit tests for txt_utils.py. """ from pyhandy import remove_multiple_newlines_in_txt, trim_spaces_and_tabs_from_lines_in_txt def test_remove_multiple_newlines_in_txt(): # create a simple txt str with multiple newlines in it. test_txt = """This is a test ...
0
0
0
0
0
808
0
70
69
fafe4ee4b58bbf3c8b3680042023effb9df8364e
122
py
Python
report/run.py
Kellel/reports
975e99396301e87176a38dd440a273c9319b3e22
[ "BSD-3-Clause" ]
null
null
null
report/run.py
Kellel/reports
975e99396301e87176a38dd440a273c9319b3e22
[ "BSD-3-Clause" ]
null
null
null
report/run.py
Kellel/reports
975e99396301e87176a38dd440a273c9319b3e22
[ "BSD-3-Clause" ]
null
null
null
import sys from parser import parser parser.parse(sys.argv[1], sys.argv[2])
12.2
38
0.778689
import argparse import sys import os import importlib from parser import parser parser.parse(sys.argv[1], sys.argv[2])
0
0
0
0
0
0
0
-23
66
cc54dbc6db490febe954c750dc0da30a9a9aef96
6,435
py
Python
allocation_service/annotation_events.py
VEuPathDB/stable_identifier_authority
fabde7fd18f0c4c4951eeb118a39ad87fc9769a5
[ "Apache-2.0" ]
null
null
null
allocation_service/annotation_events.py
VEuPathDB/stable_identifier_authority
fabde7fd18f0c4c4951eeb118a39ad87fc9769a5
[ "Apache-2.0" ]
3
2021-02-16T14:23:57.000Z
2021-07-14T10:53:23.000Z
allocation_service/annotation_events.py
VEuPathDB/stable_identifier_authority
fabde7fd18f0c4c4951eeb118a39ad87fc9769a5
[ "Apache-2.0" ]
1
2022-03-11T15:03:58.000Z
2022-03-11T15:03:58.000Z
""" Copyright [2019-2020] EMBL-European Bioinformatics Institute 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 ...
43.187919
119
0.660917
""" Copyright [2019-2020] EMBL-European Bioinformatics Institute 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
5,559
0
0
0
44
115
21b19d50dd83000f90cc46a61107e0a38ad3d33a
93
py
Python
URI/Problems/sphere.py
BlackDereker/Universidade
bfd96689df0aab0905ddcc7ef6fff2098f838e51
[ "MIT" ]
1
2018-02-27T11:47:34.000Z
2018-02-27T11:47:34.000Z
URI/Problems/sphere.py
BlackDereker/Universidade
bfd96689df0aab0905ddcc7ef6fff2098f838e51
[ "MIT" ]
null
null
null
URI/Problems/sphere.py
BlackDereker/Universidade
bfd96689df0aab0905ddcc7ef6fff2098f838e51
[ "MIT" ]
null
null
null
pi = 3.14159 r = int(input()) volume = (4/3) * pi * r ** 3 print("VOLUME = %.3f" % volume)
13.285714
31
0.516129
pi = 3.14159 r = int(input()) volume = (4/3) * pi * r ** 3 print("VOLUME = %.3f" % volume)
0
0
0
0
0
0
0
0
0
559fb8d9efcadef90a57f8b226f9a0ae7992311f
2,180
py
Python
src/evesrp/migrate/versions/5795c29b2c7a_.py
paxswill/evesrp
01e3658007b19e25f6fe0622389ed4f23b7f95a2
[ "BSD-2-Clause" ]
17
2015-01-19T18:44:17.000Z
2021-07-26T19:15:28.000Z
src/evesrp/migrate/versions/5795c29b2c7a_.py
bravecollective/evesrp
01e3658007b19e25f6fe0622389ed4f23b7f95a2
[ "BSD-2-Clause" ]
44
2015-04-11T00:52:24.000Z
2021-05-06T16:18:43.000Z
src/evesrp/migrate/versions/5795c29b2c7a_.py
paxswill/evesrp
01e3658007b19e25f6fe0622389ed4f23b7f95a2
[ "BSD-2-Clause" ]
12
2015-03-26T23:02:19.000Z
2018-07-27T08:10:46.000Z
"""Change RelativeModifier.value to a Numeric/Decimal Revision ID: 5795c29b2c7a Revises: 19506187e7aa Create Date: 2014-07-23 14:43:45.748696 """ # revision identifiers, used by Alembic. revision = '5795c29b2c7a' down_revision = '19506187e7aa'
37.586207
76
0.672018
"""Change RelativeModifier.value to a Numeric/Decimal Revision ID: 5795c29b2c7a Revises: 19506187e7aa Create Date: 2014-07-23 14:43:45.748696 """ # revision identifiers, used by Alembic. revision = '5795c29b2c7a' down_revision = '19506187e7aa' from alembic import op import sqlalchemy as sa from sqlalchemy.sql impor...
0
0
0
0
0
1,752
0
44
135
89e9e25a69157cf239dcd5cbc3251698a56e0514
3,807
py
Python
agora_graphql/gql/__init__.py
fserena/agora-graphql
fa91337850d0e6668c7b1a6c9eed0395e02c0f9f
[ "Apache-2.0" ]
null
null
null
agora_graphql/gql/__init__.py
fserena/agora-graphql
fa91337850d0e6668c7b1a6c9eed0395e02c0f9f
[ "Apache-2.0" ]
null
null
null
agora_graphql/gql/__init__.py
fserena/agora-graphql
fa91337850d0e6668c7b1a6c9eed0395e02c0f9f
[ "Apache-2.0" ]
null
null
null
""" #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# Copyright (C) 2018 Fernando Serena. #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the ...
35.579439
114
0.58051
""" #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# Copyright (C) 2018 Fernando Serena. #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the ...
0
227
0
2,359
0
0
0
207
156
40fd4879dc2b7e4a608576106f8e7864570d7fb5
783
py
Python
util/avg_sim_and_prop.py
aI-area/T-S-polish
1bffdee11b486f199dcb798cea090892521c9123
[ "MIT" ]
1
2021-11-17T00:52:18.000Z
2021-11-17T00:52:18.000Z
util/avg_sim_and_prop.py
aI-area/T-S-polish
1bffdee11b486f199dcb798cea090892521c9123
[ "MIT" ]
null
null
null
util/avg_sim_and_prop.py
aI-area/T-S-polish
1bffdee11b486f199dcb798cea090892521c9123
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: Yijia Zheng # @email : yj.zheng@siat.ac.cn # @Time : 2020/04/11 17:40:28
31.32
82
0.614304
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: Yijia Zheng # @email : yj.zheng@siat.ac.cn # @Time : 2020/04/11 17:40:28 import logging import numpy as np def count_avg_sim_and_prop(data, num_decode, prop_name): logger = logging.getLogger('logger') data = [line.split() for line in dat...
0
0
0
0
0
582
0
-10
73
5c40ba85d81d7a60daa1e300b043501581b10cd3
466
py
Python
web/app/syzygy/wishlist/__init__.py
aaronSchanck/SepTech
323b7db183928b43576b0f13477fccdd192fd3fa
[ "Apache-2.0" ]
1
2021-09-10T17:51:40.000Z
2021-09-10T17:51:40.000Z
web/app/syzygy/wishlist/__init__.py
ItsmeCurly/SepTech
323b7db183928b43576b0f13477fccdd192fd3fa
[ "Apache-2.0" ]
2
2021-04-30T15:57:12.000Z
2021-05-01T17:55:51.000Z
web/app/syzygy/wishlist/__init__.py
ItsmeCurly/SepTech
323b7db183928b43576b0f13477fccdd192fd3fa
[ "Apache-2.0" ]
1
2021-09-10T17:51:10.000Z
2021-09-10T17:51:10.000Z
"""/web/app/syzygy/wishlist/__init__.py Author: Adam Green (adam.green1@maine.edu) [Description] Classes: [ClassesList] Functions: [FunctionsList] """ import logging BASE_ROUTE = "wishlist" log = logging.getLogger(__name__)
15.032258
65
0.729614
"""/web/app/syzygy/wishlist/__init__.py Author: Adam Green (adam.green1@maine.edu) [Description] Classes: [ClassesList] Functions: [FunctionsList] """ import logging from .model import Wishlist from .schema import WishlistSchema BASE_ROUTE = "wishlist" log = logging.getLogger(__name__) def register...
0
0
0
0
0
136
0
19
68
b89df968c0fffaf176c7b55ec6d35fc2f50176bd
194
py
Python
pyf/_nr.py
snoopyjc/pythonizer
6b3683084f41f0aa06b1b4e652a0f00b19cceac1
[ "Artistic-2.0" ]
1
2022-03-13T22:08:25.000Z
2022-03-13T22:08:25.000Z
pyf/_nr.py
snoopyjc/pythonizer
6b3683084f41f0aa06b1b4e652a0f00b19cceac1
[ "Artistic-2.0" ]
21
2022-03-17T16:53:04.000Z
2022-03-31T23:55:24.000Z
pyf/_nr.py
snoopyjc/pythonizer
6b3683084f41f0aa06b1b4e652a0f00b19cceac1
[ "Artistic-2.0" ]
null
null
null
def _nr(): """Get the current INPUT_LINE_NUMBER""" global INPUT_LINE_NUMBER try: return fileinput.lineno() except RuntimeError: return INPUT_LINE_NUMBER
21.555556
44
0.639175
def _nr(): """Get the current INPUT_LINE_NUMBER""" global INPUT_LINE_NUMBER try: return fileinput.lineno() except RuntimeError: return INPUT_LINE_NUMBER
0
0
0
0
0
0
0
0
0
92481eb2cbcd324ddd48f66610626dc7646d1fbe
797
py
Python
simplegan/losses/infogan_loss.py
grohith327/EasyGAN
cbbff0283eda08f2d056215574f798e976d3ece0
[ "MIT" ]
23
2020-03-10T16:16:34.000Z
2022-01-09T11:04:21.000Z
simplegan/losses/infogan_loss.py
grohith327/EasyGAN
cbbff0283eda08f2d056215574f798e976d3ece0
[ "MIT" ]
3
2020-03-09T01:43:45.000Z
2020-05-19T14:52:28.000Z
simplegan/losses/infogan_loss.py
grohith327/EasyGAN
cbbff0283eda08f2d056215574f798e976d3ece0
[ "MIT" ]
1
2020-05-19T15:22:39.000Z
2020-05-19T15:22:39.000Z
import tensorflow as tf __all__ = ["auxillary_loss"] def auxillary_loss(disc_target, disc_preds, cont_trg, cont_pred): r""" Args: disc_target (tensor): a tensor representing the discriminator target ouput disc_preds (tensor): a tensor representing the prediction of discriminator con...
29.518519
86
0.716437
import tensorflow as tf __all__ = ["auxillary_loss"] def auxillary_loss(disc_target, disc_preds, cont_trg, cont_pred): r""" Args: disc_target (tensor): a tensor representing the discriminator target ouput disc_preds (tensor): a tensor representing the prediction of discriminator con...
0
0
0
0
0
0
0
0
0
b5a1692a4d6fb8394b0879308963be327e6e6828
2,711
py
Python
cow/urls.py
narfman0/cow
b2392749f1be75c5cb6e3147e9e8d6c378a0af6d
[ "MIT" ]
4
2017-04-25T10:31:46.000Z
2018-07-26T17:34:46.000Z
cow/urls.py
narfman0/cow
b2392749f1be75c5cb6e3147e9e8d6c378a0af6d
[ "MIT" ]
1
2017-04-07T01:30:12.000Z
2017-04-10T03:23:41.000Z
cow/urls.py
narfman0/cow
b2392749f1be75c5cb6e3147e9e8d6c378a0af6d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf.urls import include, url from django.contrib.auth import views as auth_views from django.contrib.auth.decorators import login_required from rest_framework import routers from . import views from . import api router = routers.DefaultRouter() router.register(r'pages', api.PageVi...
30.122222
104
0.598672
# -*- coding: utf-8 -*- from django.conf.urls import include, url from django.contrib.auth import views as auth_views from django.contrib.auth.decorators import login_required from rest_framework import routers from . import views from . import api router = routers.DefaultRouter() router.register(r'pages', api.PageVi...
0
0
0
0
0
0
0
0
0
915e9c410fac56b508aa9642ee5370673367eb75
472
py
Python
Python/Problem003.py
SethDeVries/My-Project-Euler
b91663f06857b259f9eb3026adb7066cb2f4c00b
[ "MIT" ]
1
2015-05-07T00:11:42.000Z
2015-05-07T00:11:42.000Z
Python/Problem003.py
Praenomen/My-Project-Euler
b91663f06857b259f9eb3026adb7066cb2f4c00b
[ "MIT" ]
null
null
null
Python/Problem003.py
Praenomen/My-Project-Euler
b91663f06857b259f9eb3026adb7066cb2f4c00b
[ "MIT" ]
null
null
null
import math big = 600851475143 for i in range (3, 150000000000): factor = big/i if (math.floor(factor) * i == big and math.ceil(factor) * i == big): for j in range (3, i+1): factor2 = i/j if (math.floor(factor2) *j == i and math.ceil(factor2) * j == i): print("Not...
33.714286
77
0.54661
import math big = 600851475143 for i in range (3, 150000000000): factor = big/i if (math.floor(factor) * i == big and math.ceil(factor) * i == big): for j in range (3, i+1): factor2 = i/j if (math.floor(factor2) *j == i and math.ceil(factor2) * j == i): print("Not...
0
0
0
0
0
0
0
0
0
8cc6c6fb936d28f4be9de52ebf28df31d095ed75
22
py
Python
login.py
w5020c/mygittest
405d7a57b07a3a876282cb6eb3c123d6998fbf0c
[ "MIT" ]
null
null
null
login.py
w5020c/mygittest
405d7a57b07a3a876282cb6eb3c123d6998fbf0c
[ "MIT" ]
null
null
null
login.py
w5020c/mygittest
405d7a57b07a3a876282cb6eb3c123d6998fbf0c
[ "MIT" ]
null
null
null
#login.py #
7.333333
14
0.772727
#初始化login.py文件 #第一次修改
30
0
0
0
0
0
0
0
0
53c0c2b492f8e7cc07af968b004b90471a4ac41d
25,922
py
Python
pybamm/parameters/parameter_values.py
danieljtait/PyBaMM
f9d6143770e4a01099f06e3574142424730f731a
[ "BSD-3-Clause" ]
null
null
null
pybamm/parameters/parameter_values.py
danieljtait/PyBaMM
f9d6143770e4a01099f06e3574142424730f731a
[ "BSD-3-Clause" ]
null
null
null
pybamm/parameters/parameter_values.py
danieljtait/PyBaMM
f9d6143770e4a01099f06e3574142424730f731a
[ "BSD-3-Clause" ]
null
null
null
# # Dimensional and dimensionless parameter values, and scales #
41.27707
88
0.572872
# # Dimensional and dimensionless parameter values, and scales # import pybamm import pandas as pd import os import numbers import numpy as np from pprint import pformat class ParameterValues: """ The parameter values for a simulation. Note that this class does not inherit directly from the python dictio...
0
0
0
25,680
0
0
0
-27
201
b1571343a170c76f13c914d8242aac882397dce8
1,644
py
Python
source/preprocess/make_image_set.py
Onegold11/mask_checker_dataset
5213665cf4f52858b60541841e4cec1da0e15889
[ "Apache-2.0" ]
null
null
null
source/preprocess/make_image_set.py
Onegold11/mask_checker_dataset
5213665cf4f52858b60541841e4cec1da0e15889
[ "Apache-2.0" ]
null
null
null
source/preprocess/make_image_set.py
Onegold11/mask_checker_dataset
5213665cf4f52858b60541841e4cec1da0e15889
[ "Apache-2.0" ]
null
null
null
from sklearn.model_selection import train_test_split import numpy as np # SOURCE_PATH = "../../image/" # CLASSES = ["mask", "no_mask"] # image_w = 128 image_h = 128 # DATASET_PATH = "../dataset/" # mask, no_mask if __name__ == "__main__": x, y = [], [] get_data_set(x, y) X = np.array(...
25.292308
105
0.582117
from sklearn.model_selection import train_test_split import numpy as np import os from keras.preprocessing.image import load_img from keras.preprocessing.image import img_to_array from keras.applications.mobilenet_v2 import preprocess_input # 이미지 원본 경로 SOURCE_PATH = "../../image/" # 이미지 타입 CLASSES = ["mask", "no_mask"...
390
0
0
0
0
627
0
81
110
2b5dc67a3beb7d7464975e34cb780230b272ebd7
639
py
Python
cog/migrations/0002_auto_20150706_1045.py
downiec/COG
cea8ceac701958b6af8e272698bfb08d89f62bf4
[ "BSD-3-Clause" ]
6
2016-03-10T19:38:17.000Z
2021-02-23T09:34:59.000Z
cog/migrations/0002_auto_20150706_1045.py
downiec/COG
cea8ceac701958b6af8e272698bfb08d89f62bf4
[ "BSD-3-Clause" ]
602
2015-01-05T16:30:08.000Z
2021-02-02T21:44:38.000Z
cog/migrations/0002_auto_20150706_1045.py
cedadev/COG
6167f9114c7cf0422b34fb9f5f3f07f9657a7dbe
[ "BSD-3-Clause" ]
18
2015-02-12T15:50:17.000Z
2021-04-27T16:40:36.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals
24.576923
94
0.604069
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import cog.models.dbutils class Migration(migrations.Migration): dependencies = [ ('cog', '0001_initial'), ] operations = [ migrations.AlterField( model_name='folder', ...
0
0
0
483
0
0
0
23
68
ae7658a28317a1a3434e49d0d99a8baa475d820b
834
py
Python
haskpy/utils.py
jluttine/haskpy
79fca70b5f46d8551ed61b4bbd040de5f5ba0440
[ "MIT" ]
2
2021-04-08T18:34:39.000Z
2022-02-24T18:02:45.000Z
haskpy/utils.py
jluttine/haskpy
79fca70b5f46d8551ed61b4bbd040de5f5ba0440
[ "MIT" ]
null
null
null
haskpy/utils.py
jluttine/haskpy
79fca70b5f46d8551ed61b4bbd040de5f5ba0440
[ "MIT" ]
null
null
null
"""Functions .. autosummary:: :toctree: identity const match """ # # Pattern matching related functions # # NOTE: Currying doesn't work as expected for this function, because this is a # generic function and we don't know how many arguments are required. We would # first like to get all the required ...
20.85
79
0.702638
"""Functions .. autosummary:: :toctree: identity const match """ from haskpy.types.function import function @function def identity(x): """a -> a""" return x @function def const(x, y): """a -> b -> a""" return x # # Pattern matching related functions # # NOTE: Currying doesn't work ...
0
75
0
0
0
38
0
21
91
9a04e61b3e0009d9b296e3140320050b8f4ffd29
7,788
py
Python
mybbnotif/mybbnotif.py
frawhst/gooncogs
2301ba28b58c4d039c5064a9a014503e224578a4
[ "MIT" ]
2
2021-10-06T08:05:01.000Z
2021-10-06T15:25:40.000Z
mybbnotif/mybbnotif.py
frawhst/gooncogs
2301ba28b58c4d039c5064a9a014503e224578a4
[ "MIT" ]
null
null
null
mybbnotif/mybbnotif.py
frawhst/gooncogs
2301ba28b58c4d039c5064a9a014503e224578a4
[ "MIT" ]
5
2021-09-11T23:44:44.000Z
2022-03-26T09:54:13.000Z
import discord import logging log = logging.getLogger("red.goon.mybbnotif")
37.442308
110
0.595403
import asyncio import aiohttp import discord from redbot.core import commands, Config, checks import discord.errors from redbot.core.bot import Red from typing import * import logging import datetime import re from redbot.core.utils.chat_formatting import pagify, box, quote import markdownify log = logging.getLogger("...
0
2,516
3,772
1,135
0
0
0
44
243
a9ea2902bb821e22a95d11f042b1c7367f8f8b45
17,149
py
Python
SAC/SAC_aumc.py
LQNew/AUMC
c3ce9c289bc8c0912431d68ec4fe260f640df3bc
[ "MIT" ]
5
2021-04-16T05:25:32.000Z
2021-05-17T09:08:02.000Z
SAC/SAC_aumc.py
LQNew/AUMC
c3ce9c289bc8c0912431d68ec4fe260f640df3bc
[ "MIT" ]
null
null
null
SAC/SAC_aumc.py
LQNew/AUMC
c3ce9c289bc8c0912431d68ec4fe260f640df3bc
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn as nn # Implementation of Soft Actor-Critic (SAC) # Paper: https://arxiv.org/abs/1801.01290 # Soft Actor-Critic Algorithms and Applications # https://arxiv.org/abs/1812.05905 # Implemetation of Attentive Update of Multi-Critic for Deep Reinforcement Learning (AUMC) devi...
39.152968
136
0.686746
import copy import numpy as np import torch import torch.nn as nn import torch.nn.functional as F # Implementation of Soft Actor-Critic (SAC) # Paper: https://arxiv.org/abs/1801.01290 # Soft Actor-Critic Algorithms and Applications # https://arxiv.org/abs/1812.05905 # Implemetation of Attentive Update of Multi-Critic ...
0
36
0
15,801
0
0
0
0
112
84867d37380b57fdfa05bdcc0a36e67b7a2d877b
14,346
py
Python
src/main.py
Smendowski/Vehicle-Detection-OpenCV
641ebfc8144d7ef6b8adaa553aaca340487bd0d5
[ "MIT" ]
2
2021-02-03T04:58:56.000Z
2022-03-10T20:17:09.000Z
src/main.py
Smendowski/Vehicle-Detection-OpenCV
641ebfc8144d7ef6b8adaa553aaca340487bd0d5
[ "MIT" ]
null
null
null
src/main.py
Smendowski/Vehicle-Detection-OpenCV
641ebfc8144d7ef6b8adaa553aaca340487bd0d5
[ "MIT" ]
3
2020-12-08T10:11:12.000Z
2021-11-30T02:49:56.000Z
####################################### # Project: IO_Vehicle_Detection Project # Authors: Mateusz Smendowski, Piotr Sladowski, Adam Twardosz # Copyright (C) Mateusz Smendowski, Piotr Sladowski, Adam Twardosz 2020 ####################################### import sys import os if os.name == 'nt': os.add_dll_directo...
36.13602
139
0.619058
####################################### # Project: IO_Vehicle_Detection Project # Authors: Mateusz Smendowski, Piotr Sladowski, Adam Twardosz # Copyright (C) Mateusz Smendowski, Piotr Sladowski, Adam Twardosz 2020 ####################################### import sys import os import platform import time from PySide2 im...
0
0
0
13,347
0
0
0
86
243
3ebcdd4c8b4012fdde1d67281bf5eee8888db851
87,443
py
Python
BEV_visualization.py
hungchristine/ReDyFEV
b40d9df43c7b2611fba9f34501e69c2df6b5b5b2
[ "BSD-3-Clause" ]
null
null
null
BEV_visualization.py
hungchristine/ReDyFEV
b40d9df43c7b2611fba9f34501e69c2df6b5b5b2
[ "BSD-3-Clause" ]
null
null
null
BEV_visualization.py
hungchristine/ReDyFEV
b40d9df43c7b2611fba9f34501e69c2df6b5b5b2
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # # Mapping of production and consumption mixes in Europe and their effect on carbon footprint of electric vehicles # This code plots the following: # - CF of production vs consumption mixes of each country with visual indication of relative contribution to total European electricity production] ...
49.740046
316
0.600128
# coding: utf-8 # # Mapping of production and consumption mixes in Europe and their effect on carbon footprint of electric vehicles # This code plots the following: # - CF of production vs consumption mixes of each country with visual indication of relative contribution to total European electricity production] ...
0
0
0
733
0
59,517
0
68
540
29443522eabc9f48e8036fd2e39907ce362e03d0
655
py
Python
iobio/qnorm/__init__.py
jason-weirather/io-bio
fe5bd96cf11bd0a3458b1bd03987ad2896f767df
[ "Apache-2.0" ]
null
null
null
iobio/qnorm/__init__.py
jason-weirather/io-bio
fe5bd96cf11bd0a3458b1bd03987ad2896f767df
[ "Apache-2.0" ]
null
null
null
iobio/qnorm/__init__.py
jason-weirather/io-bio
fe5bd96cf11bd0a3458b1bd03987ad2896f767df
[ "Apache-2.0" ]
null
null
null
# Adapted from: https://stackoverflow.com/questions/37935920/quantile-normalization-on-pandas-dataframe # Citing: https://en.wikipedia.org/wiki/Quantile_normalization
36.388889
103
0.680916
# Adapted from: https://stackoverflow.com/questions/37935920/quantile-normalization-on-pandas-dataframe # Citing: https://en.wikipedia.org/wiki/Quantile_normalization class QNorm: def __init__(self): return def fit(self,df): return _QNormFit(self,df.stack().groupby(df.rank(method='first').stack(...
0
0
0
443
0
0
0
0
44
7cdfe2999ea1755ad9eda421d33ff6f63e7f5ecc
163
py
Python
sonar/boards/ad_8k5/__init__.py
sharm294/sonar
99de16dd16d0aa77734584e67263c78a37abef86
[ "MIT" ]
5
2018-11-21T02:33:38.000Z
2020-10-30T12:22:05.000Z
sonar/boards/ad_8k5/__init__.py
sharm294/sonar
99de16dd16d0aa77734584e67263c78a37abef86
[ "MIT" ]
2
2018-12-28T18:31:45.000Z
2020-06-12T19:24:57.000Z
sonar/boards/ad_8k5/__init__.py
sharm294/sonar
99de16dd16d0aa77734584e67263c78a37abef86
[ "MIT" ]
1
2019-03-10T13:48:50.000Z
2019-03-10T13:48:50.000Z
""" The board definition should define the following variables: PART (str): The part name of the FPGA according to the tool """ PART = "xcku115-flva1517-2-e"
23.285714
63
0.717791
""" The board definition should define the following variables: PART (str): The part name of the FPGA according to the tool """ PART = "xcku115-flva1517-2-e"
0
0
0
0
0
0
0
0
0
651dd7c95964e7f7ebf447bea39af72de08044e2
1,166
py
Python
pixel_get_and_set.py
GarvTambi/OpenCV-Beginners-to-Expert
1b07bc264546d91f8c1644c9ba31a5ae745b4064
[ "MIT" ]
2
2019-11-04T18:10:19.000Z
2019-12-11T12:41:39.000Z
pixel_get_and_set.py
GarvTambi/OpenCV-Beginners-to-Expert
1b07bc264546d91f8c1644c9ba31a5ae745b4064
[ "MIT" ]
null
null
null
pixel_get_and_set.py
GarvTambi/OpenCV-Beginners-to-Expert
1b07bc264546d91f8c1644c9ba31a5ae745b4064
[ "MIT" ]
null
null
null
import argparse # to pass the argument import cv2 # to import the openCV library # fetching the arguments and save in dictionary ap = argparse.ArgumentParser() ap.add_argument("-i", "--image", required = True, help = "Enter path to the image") args = vars(ap.parse_args()) # loading and converting the image into n...
31.513514
83
0.671527
import argparse # to pass the argument import cv2 # to import the openCV library # fetching the arguments and save in dictionary ap = argparse.ArgumentParser() ap.add_argument("-i", "--image", required = True, help = "Enter path to the image") args = vars(ap.parse_args()) # loading and converting the image into n...
0
0
0
0
0
0
0
0
0
fe8743f002fd001c6c85e2742b23ddab458f7b43
1,365
py
Python
Sparse array.py
mdhasan8/Problem_Solving
ac18f30ecc7d1baa4cea382c53aec16a544530be
[ "MIT" ]
null
null
null
Sparse array.py
mdhasan8/Problem_Solving
ac18f30ecc7d1baa4cea382c53aec16a544530be
[ "MIT" ]
null
null
null
Sparse array.py
mdhasan8/Problem_Solving
ac18f30ecc7d1baa4cea382c53aec16a544530be
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Dec 30 13:09:07 2021 @author: Easin """ print(matchingStrings([1,2,3,4],[1,2,2,3])) ''' There is a collection of input strings and a collection of query strings. For each query string, determine how many times it occurs in the list of input strings. Return an array ...
30.333333
194
0.673993
# -*- coding: utf-8 -*- """ Created on Thu Dec 30 13:09:07 2021 @author: Easin """ def matchingStrings(strings, queries): list1 = [] for elem in range(len(queries)): count = 0 #list1 = [] for val in range(len(strings)): if queries[elem] == strings[val]: ...
0
0
0
0
0
274
0
0
26
4d26460d5cf3bb3bc77c7e935c3ed31d99e37524
127
py
Python
4_FlaskApp/utils/config.py
sai-krishna-msk/SmartFeed.ai
31e18e2baf248d79037a5ab575813109c3216dcf
[ "Apache-2.0" ]
1
2021-11-12T22:54:09.000Z
2021-11-12T22:54:09.000Z
4_FlaskApp/utils/config.py
sai-krishna-msk/SmartFeed.ai
31e18e2baf248d79037a5ab575813109c3216dcf
[ "Apache-2.0" ]
18
2021-02-08T20:48:35.000Z
2022-03-12T00:32:29.000Z
4_FlaskApp/utils/config.py
sai-krishna-msk/SmartFeed.ai
31e18e2baf248d79037a5ab575813109c3216dcf
[ "Apache-2.0" ]
null
null
null
cloud_config = { "<cloud_config>" } email_config = { "SEND_GRID_KEY":'<SEND_GRID_KEY>' } invite_url = "<invite_url>"
9.769231
37
0.645669
cloud_config = { "<cloud_config>" } email_config = { "SEND_GRID_KEY":'<SEND_GRID_KEY>' } invite_url = "<invite_url>"
0
0
0
0
0
0
0
0
0
d4ddf44a875097248b591778dbbc387c520aac5d
597
py
Python
labler/api/imager.py
thenetcircle/coop-labler
43798facfc5488e3c081b3401406a3fb30cb82e3
[ "MIT" ]
1
2019-04-15T08:20:19.000Z
2019-04-15T08:20:19.000Z
labler/api/imager.py
thenetcircle/coop-labler
43798facfc5488e3c081b3401406a3fb30cb82e3
[ "MIT" ]
3
2021-09-08T00:57:18.000Z
2022-03-11T23:45:24.000Z
labler/api/imager.py
thenetcircle/coop-labler
43798facfc5488e3c081b3401406a3fb30cb82e3
[ "MIT" ]
null
null
null
from PIL import ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True
25.956522
73
0.675042
from labler.api import IImager from PIL import Image from PIL import ImageFile import base64 import os ImageFile.LOAD_TRUNCATED_IMAGES = True class Imager(IImager): def __init__(self, env): self.env = env def load_b64_and_dims(self, file_path, file_name) -> (str, int, int): full_path = os.pa...
0
0
0
430
0
0
0
-11
111
32a3ad850c7f55b2254eb31d51aba256cb720cad
19,543
py
Python
mapclientplugins/meshmergerstep/view/ui_meshmergerwidget.py
rchristie/mapclientplugins.meshmergerstep
c035d6b971541dcb16f92e06c97c57d35e70acf6
[ "Apache-2.0" ]
null
null
null
mapclientplugins/meshmergerstep/view/ui_meshmergerwidget.py
rchristie/mapclientplugins.meshmergerstep
c035d6b971541dcb16f92e06c97c57d35e70acf6
[ "Apache-2.0" ]
null
null
null
mapclientplugins/meshmergerstep/view/ui_meshmergerwidget.py
rchristie/mapclientplugins.meshmergerstep
c035d6b971541dcb16f92e06c97c57d35e70acf6
[ "Apache-2.0" ]
1
2019-05-15T22:42:25.000Z
2019-05-15T22:42:25.000Z
# -*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file 'meshmergerwidget.ui' ## ## Created by: Qt User Interface Compiler version 5.15.2 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! #########...
54.286111
246
0.761296
# -*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file 'meshmergerwidget.ui' ## ## Created by: Qt User Interface Compiler version 5.15.2 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! #########...
0
0
0
18,965
0
0
0
71
113
582d1a26a41b68ab2059eb17ed586815710983ec
1,495
py
Python
extra/pb/python/chat_pb2.py
Addision/ProtoExcelTool
17eaa08c08312e59c5a8f6114a121177ca65508a
[ "MIT" ]
null
null
null
extra/pb/python/chat_pb2.py
Addision/ProtoExcelTool
17eaa08c08312e59c5a8f6114a121177ca65508a
[ "MIT" ]
null
null
null
extra/pb/python/chat_pb2.py
Addision/ProtoExcelTool
17eaa08c08312e59c5a8f6114a121177ca65508a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: chat.proto """Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import symbol_database as _symbol_database # @@p...
27.181818
101
0.783946
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: chat.proto """Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf ...
0
0
0
0
0
0
0
58
44
b2179efc21ea41bcaf191812fd44fce09978dce1
5,554
py
Python
polharmonic/tfcoeffs.py
talonchandler/polharmonic
2aa3ca984e11050f901579b8eaa45a3a61d07957
[ "MIT" ]
null
null
null
polharmonic/tfcoeffs.py
talonchandler/polharmonic
2aa3ca984e11050f901579b8eaa45a3a61d07957
[ "MIT" ]
null
null
null
polharmonic/tfcoeffs.py
talonchandler/polharmonic
2aa3ca984e11050f901579b8eaa45a3a61d07957
[ "MIT" ]
null
null
null
import numpy as np import os P = np.load(os.path.join(os.path.dirname(__file__), 'chcoeff_n2.npy')) G = np.load(os.path.join(os.path.dirname(__file__), 'gaunt_l4.npy'))
36.300654
98
0.539611
import numpy as np import subprocess from polharmonic import util, gaunt import polharmonic.shcoeffs as sh import matplotlib.pyplot as plt from PIL import Image import os P = np.load(os.path.join(os.path.dirname(__file__), 'chcoeff_n2.npy')) G = np.load(os.path.join(os.path.dirname(__file__), 'gaunt_l4.npy')) class ...
0
0
0
5,218
0
0
0
32
133
226c711843882ea6cb2ab5d459667c33699e60c9
3,466
py
Python
quota_pub/quotapub.py
mhpx/cc-quota-publisher
db01437cf90bd5b1bf7474ae26ec79a5eae3f71e
[ "Apache-2.0" ]
null
null
null
quota_pub/quotapub.py
mhpx/cc-quota-publisher
db01437cf90bd5b1bf7474ae26ec79a5eae3f71e
[ "Apache-2.0" ]
null
null
null
quota_pub/quotapub.py
mhpx/cc-quota-publisher
db01437cf90bd5b1bf7474ae26ec79a5eae3f71e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Main application that will monitor TenantUpdate threads. """ """ TenantUpdate is used for updating the tenant quota list every set interval. """ """ Webpy webserver used to serve up tenant quotas and API calls. Can run as either the development server or under mod_wsgi. """
23.903448
125
0.555107
#!/usr/bin/env python import sys import os import web import json import urllib import logging import socket import uuid from time import time, sleep from threading import Thread """ Main application that will monitor TenantUpdate threads. """ class ThreadMonitor(Thread): def __init__(self, tenants): ...
0
0
0
2,922
0
0
0
-63
287
09e56ef45508d4f22943a06d156ff68a305226e1
77
py
Python
Configuration/DataProcessing/python/Impl/__init__.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
6
2017-09-08T14:12:56.000Z
2022-03-09T23:57:01.000Z
Configuration/DataProcessing/python/Impl/__init__.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
545
2017-09-19T17:10:19.000Z
2022-03-07T16:55:27.000Z
Configuration/DataProcessing/python/Impl/__init__.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
14
2017-10-04T09:47:21.000Z
2019-10-23T18:04:45.000Z
#!/usr/bin/env python """ _Impl_ Scenario Implementations """ __all__ = []
8.555556
24
0.662338
#!/usr/bin/env python """ _Impl_ Scenario Implementations """ __all__ = []
0
0
0
0
0
0
0
0
0
e36428f0824759ea8f6d585a8e89ca12f753300e
12,642
py
Python
lib/eco/indentmanager.py
softdevteam/eco
fdca886f13e9487f8293f50bf1fd5f02389e0fd3
[ "MIT" ]
54
2015-01-19T14:54:28.000Z
2022-02-06T14:55:03.000Z
lib/eco/indentmanager.py
softdevteam/eco
fdca886f13e9487f8293f50bf1fd5f02389e0fd3
[ "MIT" ]
228
2015-01-27T15:53:13.000Z
2020-01-16T10:35:15.000Z
lib/eco/indentmanager.py
softdevteam/eco
fdca886f13e9487f8293f50bf1fd5f02389e0fd3
[ "MIT" ]
12
2015-05-15T01:49:01.000Z
2020-01-11T10:19:39.000Z
# Copyright (c) 2013--2014 King's College London # Created by the Software Development Team <http://soft-dev.org/> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, inclu...
36.327586
137
0.570479
# Copyright (c) 2013--2014 King's College London # Created by the Software Development Team <http://soft-dev.org/> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, inclu...
0
0
0
11,116
0
209
0
54
91
ef30896dba7bfdbcc42d6b4b57055f7df5717252
12,718
py
Python
ViscoIndent.py
yu-efremov/ViscoIndent
b9658509fdf9ed232cf682cb554f668572735e4d
[ "MIT" ]
3
2020-12-02T16:19:46.000Z
2021-12-21T13:26:53.000Z
ViscoIndent.py
yu-efremov/ViscoIndent
b9658509fdf9ed232cf682cb554f668572735e4d
[ "MIT" ]
null
null
null
ViscoIndent.py
yu-efremov/ViscoIndent
b9658509fdf9ed232cf682cb554f668572735e4d
[ "MIT" ]
1
2022-03-03T15:17:58.000Z
2022-03-03T15:17:58.000Z
# -*- coding: utf-8 -*- """ gui for viscoindent, v. May-2021 with images for viscomodels gui_Viscoindent """ import sys from PyQt5.QtWidgets import QApplication # import matplotlib.pyplot as plt # import csv if __name__ == '__main__': try: del app except: print('noapp...
36.028329
131
0.577292
# -*- coding: utf-8 -*- """ gui for viscoindent, v. May-2021 with images for viscomodels gui_Viscoindent """ import sys from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtWidgets import QMainWindow, QApplication, QWidget, QSizePolicy,\ QVBoxLayout, QHBoxLayout, QLabel,\ ...
0
0
0
11,541
0
152
0
357
267
bd4e021ab6a9296e8c2a456af9642111191b0a27
2,054
py
Python
common.py
indeedops/estail
363004dc53e2ae516f3fc4b153e778799e873920
[ "Apache-2.0" ]
5
2015-12-31T12:57:09.000Z
2020-01-06T06:33:53.000Z
common.py
indeedops/estail
363004dc53e2ae516f3fc4b153e778799e873920
[ "Apache-2.0" ]
null
null
null
common.py
indeedops/estail
363004dc53e2ae516f3fc4b153e778799e873920
[ "Apache-2.0" ]
2
2016-01-14T15:56:32.000Z
2016-08-08T18:21:30.000Z
#!/usr/bin/env python # Copyright (C) 2015 Indeed Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
32.09375
98
0.644596
#!/usr/bin/env python # Copyright (C) 2015 Indeed Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
0
0
0
610
0
740
0
-29
136
a2b26dc6ff0b2a80798fe01e377267d2957689ea
37,234
py
Python
code/qamr-graphs/data_structures.py
julianmichael/qamr
956b0eb2d5857f4aafa1af257ba06fa6cb683b99
[ "MIT" ]
43
2017-11-16T05:11:44.000Z
2021-11-30T11:38:17.000Z
code/qamr-graphs/data_structures.py
julianmichael/qamr
956b0eb2d5857f4aafa1af257ba06fa6cb683b99
[ "MIT" ]
4
2018-06-25T23:43:29.000Z
2022-02-17T23:09:06.000Z
code/qamr-graphs/data_structures.py
julianmichael/qamr
956b0eb2d5857f4aafa1af257ba06fa6cb683b99
[ "MIT" ]
9
2018-01-23T03:25:11.000Z
2020-04-27T16:13:13.000Z
# External imports import pandas as pd import numpy as np from collections import defaultdict import networkx as nx import logging from operator import itemgetter import logging import random import pandas as pd from stop_words import get_stop_words from unidecode import unidecode from fuzzywuzzy.utils import asciidamm...
35.093308
137
0.517591
# External imports import pandas as pd import numpy as np from collections import defaultdict import networkx as nx import logging from operator import itemgetter import logging import random import pandas as pd from stop_words import get_stop_words from unidecode import unidecode from fuzzywuzzy.utils import asciidamm...
0
1,616
0
32,458
0
0
0
0
184
1c2395c5cb76cd01afde4559ea196d053f7dd883
5,428
py
Python
source/sphinxext/tab.py
artyom-stv/understanding-json-schema
9ee09ff692ea7f12f041434191890405b4a2041c
[ "BSD-3-Clause" ]
1
2021-03-24T19:53:08.000Z
2021-03-24T19:53:08.000Z
source/sphinxext/tab.py
artyom-stv/understanding-json-schema
9ee09ff692ea7f12f041434191890405b4a2041c
[ "BSD-3-Clause" ]
null
null
null
source/sphinxext/tab.py
artyom-stv/understanding-json-schema
9ee09ff692ea7f12f041434191890405b4a2041c
[ "BSD-3-Clause" ]
null
null
null
latex_preamble = r""" \usepackage{mdframed} \usepackage{tikz} \newenvironment{jsonframe}[2]{% \ifstrempty{#1}% {}% {\mdfsetup{% skipabove=10pt, frametitle={% \tikz[baseline=(current bounding box.east),outer sep=0pt,text=white] \node[anchor=east,rectangle,fill=#2] {...
24.232143
77
0.60538
from docutils import nodes from docutils import statemachine from docutils.parsers.rst import Directive class AttrDict(dict): def __init__(self, *args, **kwargs): super(AttrDict, self).__init__(*args, **kwargs) self.__dict__ = self def split_content(l): parts = [] part = [] label = N...
0
0
0
1,134
0
3,130
0
38
526
d2b204e20c0db32a06e34b71fd424811d4821ebe
262
py
Python
Acronym.py
ConnorAnderson29/verbose-guacamole_autocompete
721ca37da6950b5bdf676618c8a088c705d26c28
[ "MIT" ]
null
null
null
Acronym.py
ConnorAnderson29/verbose-guacamole_autocompete
721ca37da6950b5bdf676618c8a088c705d26c28
[ "MIT" ]
null
null
null
Acronym.py
ConnorAnderson29/verbose-guacamole_autocompete
721ca37da6950b5bdf676618c8a088c705d26c28
[ "MIT" ]
null
null
null
#!/usr/bin/env python import fileinput import re acronym = "" for line in fileinput.input(): words = re.split('\s+', line) for word in words: if (len(word) > 0 and word[0] == word[0].upper()): acronym += word[0] print(acronym)
18.714286
58
0.576336
#!/usr/bin/env python import fileinput import re acronym = "" for line in fileinput.input(): words = re.split('\s+', line) for word in words: if (len(word) > 0 and word[0] == word[0].upper()): acronym += word[0] print(acronym)
0
0
0
0
0
0
0
0
0
fa88b64e8e4f21d4ca415252997b21d859fe03e9
4,444
py
Python
reservoirpy/welllogspy/petrophysics/plotrecipes.py
scuervo91/reservoirpy
a4db620baf3ff66a85c7f61b1919713a8642e6fc
[ "MIT" ]
16
2020-05-07T01:57:04.000Z
2021-11-27T12:45:59.000Z
reservoirpy/welllogspy/petrophysics/plotrecipes.py
scuervo91/reservoirpy
a4db620baf3ff66a85c7f61b1919713a8642e6fc
[ "MIT" ]
null
null
null
reservoirpy/welllogspy/petrophysics/plotrecipes.py
scuervo91/reservoirpy
a4db620baf3ff66a85c7f61b1919713a8642e6fc
[ "MIT" ]
5
2020-05-12T07:28:24.000Z
2021-12-10T21:24:59.000Z
import numpy as np import matplotlib.pyplot as plt from scipy.interpolate import interp1d def cutoff(log,phi=None,sw=None,vsh=None,elbow=0.9,swaq=0.7,ax=None, plot=True): """cutoff [summary] Parameters ---------- log : [type] [description] phi : [type], optional [description], by ...
28.126582
114
0.560306
import numpy as np import pandas as pd import matplotlib.pyplot as plt from scipy.interpolate import interp1d def cutoff(log,phi=None,sw=None,vsh=None,elbow=0.9,swaq=0.7,ax=None, plot=True): """cutoff [summary] Parameters ---------- log : [type] [description] phi : [type], optional ...
0
0
0
0
0
0
0
-2
23
73b484a7c6450a850e386a032b9661152c035b42
76,234
py
Python
serial_scripts/vm_regression/test_vm_serial.py
hkgopal/tf-test
dfb00ce26fb159ab5a91726f9647b68d905cfbad
[ "Apache-2.0" ]
5
2020-09-29T00:36:57.000Z
2022-02-16T06:51:32.000Z
serial_scripts/vm_regression/test_vm_serial.py
hkgopal/tf-test
dfb00ce26fb159ab5a91726f9647b68d905cfbad
[ "Apache-2.0" ]
27
2019-11-02T02:18:34.000Z
2022-02-24T18:49:08.000Z
serial_scripts/vm_regression/test_vm_serial.py
hkgopal/tf-test
dfb00ce26fb159ab5a91726f9647b68d905cfbad
[ "Apache-2.0" ]
20
2019-11-28T16:02:25.000Z
2022-01-06T05:56:58.000Z
from __future__ import absolute_import sys.path.append(os.path.realpath('tcutils/pkgs/Traffic')) # end test_bring_up_vm_with_control_node_down # end test_multistep_vm_add_delete_with_stop_start_service # end test_multistep_vm_delete_with_stop_start_service # end test_nova_com_sch_restart_with_multiple_...
47.350311
140
0.626873
from __future__ import absolute_import from builtins import str from builtins import range from .base import BaseVnVmTest import traffic_tests from vn_test import * from vm_test import * from floating_ip import * from policy_test import * from compute_node_test import ComputeNodeFixture from user_test import UserFixtur...
0
68,137
0
6,137
0
0
0
388
930
5e82e47519cd47811d5bbbd5b78b21cbce9ec15c
3,143
py
Python
src/client/userclient.py
MuShMe/MuShMe
dbc9b940c827039016d7917d535882b47d7d8e5b
[ "Unlicense", "MIT" ]
1
2015-07-10T06:14:29.000Z
2015-07-10T06:14:29.000Z
src/client/userclient.py
MuShMe/MuShMe
dbc9b940c827039016d7917d535882b47d7d8e5b
[ "Unlicense", "MIT" ]
2
2016-01-10T04:27:12.000Z
2016-01-10T10:47:57.000Z
src/client/userclient.py
MuShMe/MuShMe
dbc9b940c827039016d7917d535882b47d7d8e5b
[ "Unlicense", "MIT" ]
null
null
null
# This is a client to readtags data from ID3 tags and POST the data to the mushme database # @Author rootavish, copyright the DBMS team, 2014 #To create a json to throw at the server #To encode the image into the json #For the network capabilities #For parsing the ID3 tags #for reading passwords #For hashing said p...
29.650943
124
0.575247
# This is a client to readtags data from ID3 tags and POST the data to the mushme database # @Author rootavish, copyright the DBMS team, 2014 import os import sys #To create a json to throw at the server import json #To encode the image into the json import base64 #For the network capabilities import urllib2 import ...
0
0
0
0
0
2,494
0
-54
310
6d08a77fe0af1b7b79512c4c82e3893d0d981298
5,504
py
Python
brick/hardware/mcp/mcp230xx.py
madron/brick-iot
47b52a2f5fa9cf46e048fab773a58876fd984062
[ "MIT" ]
null
null
null
brick/hardware/mcp/mcp230xx.py
madron/brick-iot
47b52a2f5fa9cf46e048fab773a58876fd984062
[ "MIT" ]
null
null
null
brick/hardware/mcp/mcp230xx.py
madron/brick-iot
47b52a2f5fa9cf46e048fab773a58876fd984062
[ "MIT" ]
null
null
null
MCP230XX_DEFAULT_ADDRESS = 0x20 MCP23017_DIRECTION_REGISTER = dict(a=0x00, b=0x01) # bit 1=in 0=out MCP23017_PULL_UP_REGISTER = dict(a=0x0C, b=0x0D) # bit 1 -> pup 100k MCP23017_INPUT_REGISTER = dict(a=0x12, b=0x13) MCP23017_OUTPUT_REGISTER = dict(a=0x14, b=0x15)
40.175182
117
0.626999
import asyncio from copy import copy from time import time_ns from brick.exceptions import ValidationError from brick.hardware import Hardware, register_hardware from brick.hardware.i2c import i2c_manager from brick.hardware.base import DigitalInput, DigitalOutput from brick.hardware.mcp import mcp230xx MCP230XX_DEFA...
0
3,767
464
628
0
0
0
129
245
f9c29a5316243a04a4d603d2c3331d5498f0c3a3
1,465
py
Python
data_utils/get_visible_object_map.py
SgtVincent/Robothor-2020---VIPL-ICT
5eee00c077c07e69120fb8108f574c2339688f34
[ "Apache-2.0" ]
null
null
null
data_utils/get_visible_object_map.py
SgtVincent/Robothor-2020---VIPL-ICT
5eee00c077c07e69120fb8108f574c2339688f34
[ "Apache-2.0" ]
1
2022-03-14T03:34:49.000Z
2022-03-14T03:34:49.000Z
data_utils/get_visible_object_map.py
SgtVincent/Robothor-2020---VIPL-ICT
5eee00c077c07e69120fb8108f574c2339688f34
[ "Apache-2.0" ]
null
null
null
import json import sys sys.path.append('.') if __name__ == '__main__': args = parse_arguments() scenes = args.scenes for scene in scenes: try: with open('{}/{}/metadata.json'.format(args.data_dir, scene), 'r') as f: metadata_list = json.load(f) visible_map...
32.555556
110
0.542662
import os import h5py import json import sys sys.path.append('.') import argparse def parse_arguments(): parser = argparse.ArgumentParser(description="scrape all possible images from ai2thor scene") parser.add_argument("--data_dir", type=str, required=True) parser.add_argument("--scenes", ...
0
0
0
0
0
428
0
-28
89
6dd945764d19c17f8f4014d0985932fbf17c9841
2,343
py
Python
src/products/views.py
kittiman55555/ecommerce
84331fe1b0afb9c93835f47612d0bb3b0533516d
[ "bzip2-1.0.6" ]
null
null
null
src/products/views.py
kittiman55555/ecommerce
84331fe1b0afb9c93835f47612d0bb3b0533516d
[ "bzip2-1.0.6" ]
null
null
null
src/products/views.py
kittiman55555/ecommerce
84331fe1b0afb9c93835f47612d0bb3b0533516d
[ "bzip2-1.0.6" ]
null
null
null
# Create your views here.
33
82
0.641912
from django.shortcuts import render, get_object_or_404 from django.views.generic import ListView, DetailView from .models import Product from django.http import Http404 # Create your views here. class ProductListView(ListView): #queryset = Product.objects.all() tempalte_name = "products/list.html" # def g...
0
0
0
1,371
0
639
0
81
226
c5b658f4a9fe883cf1ecd6edac8e03b864f39b1f
2,682
py
Python
T1 Week 2/Will's Version/Practical_2_Will.py
WillGreen98/University-INTPROG-Python
93c4f8227a28e09ece0adcebc0fbe499c4b62753
[ "MIT" ]
1
2017-12-31T14:29:47.000Z
2017-12-31T14:29:47.000Z
T1 Week 2/Will's Version/Practical_2_Will.py
WillGreen98/University-Year-One
93c4f8227a28e09ece0adcebc0fbe499c4b62753
[ "MIT" ]
4
2018-10-01T07:59:20.000Z
2021-06-25T15:16:45.000Z
T1 Week 2/Will's Version/Practical_2_Will.py
WillGreen98/University
93c4f8227a28e09ece0adcebc0fbe499c4b62753
[ "MIT" ]
1
2018-05-01T17:42:46.000Z
2018-05-01T17:42:46.000Z
__auther__ = "Will" __project__ = "Prac 2" if __name__ == '__main__': main()
24.833333
127
0.546234
__auther__ = "Will" __project__ = "Prac 2" import math import matplotlib.pyplot as mpl def getRadius(): return int(input("Enter radius of circle: ")) def getCircleArea(r): return math.pi * (r ** 2) def circumOfCircle(): radius = getRadius() print("Circumfrence of circle is: ", 2 * math.pi * radius) ...
0
0
0
0
0
2,279
0
0
321
bcaf278ef5df4be54d3c9d5bd1e87f069efb5c03
1,838
py
Python
src/cranet/nn/modules/loss.py
shizuku/cranet
4c86ad16029ed76a74e22b5e5e4c21267d6b9996
[ "MIT" ]
4
2021-10-31T13:31:13.000Z
2021-12-11T08:45:36.000Z
src/cranet/nn/modules/loss.py
Azathoth1729/cranet
4c86ad16029ed76a74e22b5e5e4c21267d6b9996
[ "MIT" ]
null
null
null
src/cranet/nn/modules/loss.py
Azathoth1729/cranet
4c86ad16029ed76a74e22b5e5e4c21267d6b9996
[ "MIT" ]
2
2021-10-31T13:34:28.000Z
2021-11-21T09:11:46.000Z
from .. import functional as F
27.432836
89
0.659956
from abc import ABC from .module import Module from .. import functional as F from cranet import Tensor from typing import ( Optional, ) class _Loss(Module, ABC): reduction: str def __init__(self, reduction: str = 'mean') -> None: super().__init__() self.reduction = reduction def _...
0
0
0
1,551
0
0
0
22
228
f8cdc8d2555a0ccff9a4c2e11fe6c1b69c948844
3,727
py
Python
megfile/lib/_fakefs.py
HugoAhoy/megfile
0f18745d409b82295bf52c8b8d2de5b443c8f724
[ "Apache-2.0" ]
null
null
null
megfile/lib/_fakefs.py
HugoAhoy/megfile
0f18745d409b82295bf52c8b8d2de5b443c8f724
[ "Apache-2.0" ]
null
null
null
megfile/lib/_fakefs.py
HugoAhoy/megfile
0f18745d409b82295bf52c8b8d2de5b443c8f724
[ "Apache-2.0" ]
null
null
null
import inspect try: import fuse # pytype: disable=import-error except ImportError: # pragma: no cover raise ImportError( inspect.cleandoc( ''' Failed to import fuse, the following steps show you how to install it: sudo apt install -y fuse libfuse-dev ...
29.117188
82
0.590555
import atexit import errno import inspect import os import stat import subprocess from threading import Thread from uuid import uuid4 try: import fuse # pytype: disable=import-error except ImportError: # pragma: no cover raise ImportError( inspect.cleandoc( ''' Failed to impor...
0
0
0
2,473
0
472
0
-35
223
d1b2a3aaf9345e8c0301d48cd2c271deb650e725
2,509
py
Python
baekjoon/14499.py
GihwanKim/Baekjoon
52eb2bf80bb1243697858445e5b5e2d50d78be4e
[ "MIT" ]
null
null
null
baekjoon/14499.py
GihwanKim/Baekjoon
52eb2bf80bb1243697858445e5b5e2d50d78be4e
[ "MIT" ]
null
null
null
baekjoon/14499.py
GihwanKim/Baekjoon
52eb2bf80bb1243697858445e5b5e2d50d78be4e
[ "MIT" ]
null
null
null
""" 14499 : URL : https://www.acmicpc.net/problem/14499 Input #1 : 4 2 0 0 8 0 2 3 4 5 6 7 8 4 4 4 1 3 3 3 2 Output #1 : 0 0 3 0 0 8 6 3 Input #2 : 3 3 1 1 9 1 2 3 ...
17.068027
47
0.410522
""" 14499 : 주사위 굴리기 URL : https://www.acmicpc.net/problem/14499 Input #1 : 4 2 0 0 8 0 2 3 4 5 6 7 8 4 4 4 1 3 3 3 2 Output #1 : 0 0 3 0 0 8 6 3 Input #2 : 3 3 1 1 9 1 2 3 ...
18
0
0
0
0
0
0
0
0
e0a82afe0fe6b874c02aa0318a5a8d1ec96d4d2d
3,144
py
Python
impacket/testcases/dot11/test_RadioTapDecoder.py
z3v2cicidi/impacket
d8da712c3dea013c61fe019a7efc7e1289ebb891
[ "Apache-1.1" ]
7
2018-06-06T05:19:36.000Z
2022-03-16T02:04:47.000Z
impacket/impacket/testcases/dot11/test-RadioTapDecoder.py
Aliced3645/DataCenterMarketing
67bc485e73cf538498a89b28465afb822717affb
[ "Apache-2.0" ]
null
null
null
impacket/impacket/testcases/dot11/test-RadioTapDecoder.py
Aliced3645/DataCenterMarketing
67bc485e73cf538498a89b28465afb822717affb
[ "Apache-2.0" ]
4
2015-02-25T20:08:18.000Z
2021-07-06T12:31:29.000Z
#!/usr/bin/env python # sorry, this is very ugly, but I'm in python 2.5 import sys sys.path.insert(0,"../..") import unittest suite = unittest.TestLoader().loadTestsFromTestCase(TestRadioTapDecoder) unittest.TextTestRunner(verbosity=2).run(suite)
37.879518
396
0.665394
#!/usr/bin/env python # sorry, this is very ugly, but I'm in python 2.5 import sys sys.path.insert(0,"../..") from ImpactDecoder import RadioTapDecoder import dot11, ImpactPacket from binascii import hexlify import unittest class TestRadioTapDecoder(unittest.TestCase): def setUp(self): self.RadioTapData...
0
0
0
2,766
0
0
0
32
90
68b97222db599b1507d08b5c671fb4ab8d135ee6
3,527
py
Python
apps/subject/views.py
pjpv/python_django_video
0cfa5c568ed2e1b6adea2b2c27aa0dd4f74b417f
[ "MIT" ]
null
null
null
apps/subject/views.py
pjpv/python_django_video
0cfa5c568ed2e1b6adea2b2c27aa0dd4f74b417f
[ "MIT" ]
null
null
null
apps/subject/views.py
pjpv/python_django_video
0cfa5c568ed2e1b6adea2b2c27aa0dd4f74b417f
[ "MIT" ]
null
null
null
# rest framework # # Create your views here.
36.739583
120
0.658917
from django.shortcuts import render, reverse from django.views import View from subject.models import subjectModel from django.shortcuts import get_object_or_404 from video.models import videoModel from line.models import lineModel # rest framework from django.http import Http404 from rest_framework.views import APIVie...
144
0
0
2,652
0
0
0
355
421
93bbe2eb2fc9fa9934f095944a14391aa0d71f90
1,187
py
Python
Kapitel_6/_E1_Meta_ConventionCheck.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
1
2020-12-24T15:42:54.000Z
2020-12-24T15:42:54.000Z
Kapitel_6/_E1_Meta_ConventionCheck.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
null
null
null
Kapitel_6/_E1_Meta_ConventionCheck.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
null
null
null
# Klasse die gegen die Conventionen verstt. mc = MyClass(1) print(mc.__class__.__mro__)
35.969697
116
0.680708
class MyMeta(type): """ Diese Metaklasse soll die Conventionen der Libary überwachen. Conventionen: Alle Methoden und Attribute müssen klein geschrieben sein""" def __new__(metacls, clsname, bases, clsdict): # Regel 1: Alle Methoden sollen klein geschrieben sein methods = [method for me...
14
0
0
1,043
0
0
0
0
44
251db34e028f99f3e78cb5a7215e24b1ac3f8344
851
py
Python
tests/test_track_decoding.py
imkeines/envirocar-py
257e640c910cad710aac2648cad529d69a11944a
[ "MIT" ]
6
2020-05-01T18:46:29.000Z
2021-11-25T19:32:38.000Z
tests/test_track_decoding.py
imkeines/envirocar-py
257e640c910cad710aac2648cad529d69a11944a
[ "MIT" ]
2
2020-04-17T12:39:28.000Z
2020-07-02T19:36:16.000Z
tests/test_track_decoding.py
imkeines/envirocar-py
257e640c910cad710aac2648cad529d69a11944a
[ "MIT" ]
29
2020-04-07T07:54:55.000Z
2021-09-27T03:09:23.000Z
import unittest if __name__ == '__main__': unittest.main()
32.730769
81
0.655699
import unittest from envirocar.client.api.track_api import _parse_track_df, _parse_tracks_list_df class TestDecoding(unittest.TestCase): def setUp(self): with open('tests/files/tracks.json', 'r') as myfile: self.tracks_list_json = myfile.read() self.tracks = [] with o...
0
0
0
682
0
0
0
60
46
c5c2943393d1eef9bc24e6cde099034ba157bf19
2,876
py
Python
tests/providers/google/suite/transfers/test_gcs_to_sheets.py
ChaseKnowlden/airflow
6b71eac1997a7c0db3b8e3aed6b4e65d01871440
[ "Apache-2.0" ]
15,947
2019-01-05T13:51:02.000Z
2022-03-31T23:33:16.000Z
tests/providers/google/suite/transfers/test_gcs_to_sheets.py
ChaseKnowlden/airflow
6b71eac1997a7c0db3b8e3aed6b4e65d01871440
[ "Apache-2.0" ]
14,603
2019-01-05T09:43:19.000Z
2022-03-31T23:11:59.000Z
tests/providers/google/suite/transfers/test_gcs_to_sheets.py
ChaseKnowlden/airflow
6b71eac1997a7c0db3b8e3aed6b4e65d01871440
[ "Apache-2.0" ]
8,429
2019-01-05T19:45:47.000Z
2022-03-31T22:13:01.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
38.864865
92
0.720445
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
0
1,723
0
7
0
0
0
75
95
be72f1d392abfd18b4817580638bc2618795c021
4,452
py
Python
lib/surface/resource_config/terraform/init_provider.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/surface/resource_config/terraform/init_provider.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/surface/resource_config/terraform/init_provider.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2021 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
38.051282
129
0.719227
# -*- coding: utf-8 -*- # # Copyright 2021 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
0
1,937
0
0
0
0
0
182
200
7ceb5bd0df3855a6aa8b7e814bc38a4297bd03ae
2,895
py
Python
napari/layers/image/_image_utils.py
mrocklin/napari
b61d9ae570e30091a97b6c76e37cd95fe5b296b6
[ "BSD-3-Clause" ]
1
2022-03-01T19:38:06.000Z
2022-03-01T19:38:06.000Z
napari/layers/image/_image_utils.py
mrocklin/napari
b61d9ae570e30091a97b6c76e37cd95fe5b296b6
[ "BSD-3-Clause" ]
17
2020-06-11T21:02:03.000Z
2021-02-02T19:10:19.000Z
napari/layers/image/_image_utils.py
mrocklin/napari
b61d9ae570e30091a97b6c76e37cd95fe5b296b6
[ "BSD-3-Clause" ]
null
null
null
"""guess_rgb, guess_multiscale, guess_labels. """ import numpy as np def guess_rgb(shape): """Guess if the passed shape comes from rgb data. If last dim is 3 or 4 assume the data is rgb, including rgba. Parameters ---------- shape : list of int Shape of the data that should be checked. ...
31.129032
79
0.604145
"""guess_rgb, guess_multiscale, guess_labels. """ import numpy as np def guess_rgb(shape): """Guess if the passed shape comes from rgb data. If last dim is 3 or 4 assume the data is rgb, including rgba. Parameters ---------- shape : list of int Shape of the data that should be checked. ...
0
0
0
0
0
0
0
0
0
b9e7799d6e929ef3e4a043fe47a4fa5f7477e187
735
py
Python
xsf_checker/library/xsf_check.py
giumas/xsf-checker
783e0a06d14b2a4e5e50fc8137e47554f6cdd9ea
[ "Apache-2.0" ]
null
null
null
xsf_checker/library/xsf_check.py
giumas/xsf-checker
783e0a06d14b2a4e5e50fc8137e47554f6cdd9ea
[ "Apache-2.0" ]
null
null
null
xsf_checker/library/xsf_check.py
giumas/xsf-checker
783e0a06d14b2a4e5e50fc8137e47554f6cdd9ea
[ "Apache-2.0" ]
null
null
null
import logging logger = logging.getLogger(__name__)
22.272727
66
0.653061
from compliance_checker.base import BaseCheck, BaseNCCheck, Result import logging logger = logging.getLogger(__name__) from xsf_checker import __version__ class XSFCheck(BaseNCCheck): register_checker = True _cc_spec = 'xsf' _cc_spec_version = '1.0' _cc_checker_version = __version__ _cc_url = '...
0
177
0
376
0
0
0
59
68
7c3fefe9d879ca15256c6bea7a73ed59d7ecdd03
5,459
py
Python
tests/providers/gcp/internal/test_cloudresourcemanager.py
google/cloud-forensics-utls
719093b4a229e5e97c30d93faabb1ccf3b6ee422
[ "Apache-2.0" ]
null
null
null
tests/providers/gcp/internal/test_cloudresourcemanager.py
google/cloud-forensics-utls
719093b4a229e5e97c30d93faabb1ccf3b6ee422
[ "Apache-2.0" ]
null
null
null
tests/providers/gcp/internal/test_cloudresourcemanager.py
google/cloud-forensics-utls
719093b4a229e5e97c30d93faabb1ccf3b6ee422
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2021 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
41.045113
112
0.673567
# -*- coding: utf-8 -*- # Copyright 2021 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
0
4,473
0
219
0
0
0
-4
113
c6d3578497990ac2dbc9a4d0fad6a003a094b8b9
3,345
py
Python
32.2/csv_analyse.py
vinigofr/computer-science-exercises
b60ef1c5e3be09ff4c4241afc4279250c1e7129a
[ "MIT" ]
null
null
null
32.2/csv_analyse.py
vinigofr/computer-science-exercises
b60ef1c5e3be09ff4c4241afc4279250c1e7129a
[ "MIT" ]
null
null
null
32.2/csv_analyse.py
vinigofr/computer-science-exercises
b60ef1c5e3be09ff4c4241afc4279250c1e7129a
[ "MIT" ]
null
null
null
#Podemos fazer uma anlise agrupando a balneabilidade por campanha e depois salvamos o resultado tambm no formato csv: import csv # l os dados with open("balneabilidade.csv") as file: beach_status_reader = csv.reader(file, delimiter=",", quotechar='"') header, vinicius, *data = beach_status_reader # agrupa cam...
35.210526
291
0.623617
#Podemos fazer uma análise agrupando a balneabilidade por campanha e depois salvamos o resultado também no formato csv: import csv # lê os dados with open("balneabilidade.csv") as file: beach_status_reader = csv.reader(file, delimiter=",", quotechar='"') header, vinicius, *data = beach_status_reader # agrupa ...
76
0
0
0
0
0
0
0
0
9185bf5f8503a32b01250a5710a4fea8ee6cb4c0
5,995
py
Python
messages/generate_response.py
Team-Vadim/virtual_person
9f42c32d25e49ed84c6453229ce64d843a22c446
[ "Apache-2.0" ]
null
null
null
messages/generate_response.py
Team-Vadim/virtual_person
9f42c32d25e49ed84c6453229ce64d843a22c446
[ "Apache-2.0" ]
10
2020-06-11T13:39:25.000Z
2022-02-10T02:01:25.000Z
messages/generate_response.py
Team-Vadim/virtual_person
9f42c32d25e49ed84c6453229ce64d843a22c446
[ "Apache-2.0" ]
null
null
null
from markov_sentence_generator import SentenceGenerator from error_correction import correct_spelling from sentences import Message import random import socket import sys def parce_input(): """ :return: :rtype: list """ file = open('/home/website/virtual-person/messages/korpus.txt', "r", encoding="...
29.53202
118
0.615847
from markov_sentence_generator import MarkovModel from markov_sentence_generator import SentenceGenerator from error_correction import API_URL_BASE, correct_spelling from sentences import Message from itertools import chain import random import os import socket import sys def parce_input(): """ Чтение копуса сообще...
958
0
0
0
0
0
0
36
66
6a934453bfcff5e7dc1d7e90ce3766be8301e19b
4,160
py
Python
test/wecall_acceptance/output_representations/test_indels_next_to_snps.py
dylex/wecall
35d24cefa4fba549e737cd99329ae1b17dd0156b
[ "MIT" ]
8
2018-10-08T15:47:21.000Z
2021-11-09T07:13:05.000Z
test/wecall_acceptance/output_representations/test_indels_next_to_snps.py
dylex/wecall
35d24cefa4fba549e737cd99329ae1b17dd0156b
[ "MIT" ]
4
2018-11-05T09:16:27.000Z
2020-04-09T12:32:56.000Z
test/wecall_acceptance/output_representations/test_indels_next_to_snps.py
dylex/wecall
35d24cefa4fba549e737cd99329ae1b17dd0156b
[ "MIT" ]
4
2019-09-03T15:46:39.000Z
2021-06-04T07:28:33.000Z
# All content Copyright (C) 2018 Genomics plc
37.142857
91
0.578125
# All content Copyright (C) 2018 Genomics plc from wecall_test_drivers.base_test import BaseTest from wecall_test_drivers.svc_driver import SVCDriver class TestComplexIndelOutputRepresentations(BaseTest): def test_converts_del_plus_ins_to_snps(self): sample_name = "a_sample" chrom = "1" s...
0
0
0
3,986
0
0
0
60
67
d987b010c7cfd57d7453b3bd3ff77a15d36f608e
1,752
py
Python
ddc_scripts/p1.py
cp4cds/cmip6_range_check_2
6fca2632029a2adb9736bfc1382b39f82d8a27e1
[ "Apache-2.0" ]
null
null
null
ddc_scripts/p1.py
cp4cds/cmip6_range_check_2
6fca2632029a2adb9736bfc1382b39f82d8a27e1
[ "Apache-2.0" ]
1
2021-09-27T15:18:39.000Z
2021-09-27T15:18:39.000Z
ddc_scripts/p1.py
cp4cds/cmip6_range_check_2
6fca2632029a2adb9736bfc1382b39f82d8a27e1
[ "Apache-2.0" ]
null
null
null
p = p1()
27.809524
89
0.45605
import collections, sys, glob class p1(object): def __init__(self): idir = '/home/ubuntu/mjuckes/Desktop/svn/ipcc-data.org/trunk/html/auto/ar4/' fl = glob.glob( '%s/*.html' % idir ) self.head = ''.join( open( 'jhead' ).readlines() ) for f in fl: self.run(f) def run(self,ifile): fn = if...
0
0
0
1,679
0
0
0
8
46
36cba27347546152740e1907fb91a3379042360a
627
py
Python
tests/integration/api/conftest.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
null
null
null
tests/integration/api/conftest.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
null
null
null
tests/integration/api/conftest.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
null
null
null
""" :Copyright: 2006-2021 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) API-specific fixtures """ API_TOKEN = 'testing-TESTING'
20.225806
54
0.749601
""" :Copyright: 2006-2021 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) API-specific fixtures """ import pytest from .helpers import assemble_authorization_header API_TOKEN = 'testing-TESTING' @pytest.fixture(scope='package') def api_app(admin_app): return admin_app @pytest.fi...
0
327
0
0
0
0
0
21
115
58b7ef2bace702396cf38d63975ec37184a406ea
222
py
Python
keras_transformer_xl/__init__.py
CyberZHG/keras-transformer-xl
2df161a05d0eb8e11591d246cf71dbc3629c5e38
[ "MIT" ]
68
2019-06-26T05:44:39.000Z
2022-03-03T10:41:34.000Z
keras_transformer_xl/__init__.py
CyberZHG/keras-transformer-xl
2df161a05d0eb8e11591d246cf71dbc3629c5e38
[ "MIT" ]
8
2019-06-26T11:07:06.000Z
2020-05-05T04:22:00.000Z
keras_transformer_xl/__init__.py
CyberZHG/keras-transformer-xl
2df161a05d0eb8e11591d246cf71dbc3629c5e38
[ "MIT" ]
13
2019-07-23T10:33:14.000Z
2021-08-04T08:25:29.000Z
__version__ = '0.13.0'
20.181818
29
0.743243
from .pos_embed import * from .rel_multi_head import * from .rel_bias import * from .memory import * from .scale import * from .transformer_xl import * from .loader import * from .sequence import * __version__ = '0.13.0'
0
0
0
0
0
0
0
22
176
f2451cb36f954f005a76ed3d5205b62f8c702d4c
206
py
Python
articles/api/urls.py
Mathieu604/car-scraping
57f14d0d86b183d2554569a83ced03b3f823a588
[ "MIT" ]
null
null
null
articles/api/urls.py
Mathieu604/car-scraping
57f14d0d86b183d2554569a83ced03b3f823a588
[ "MIT" ]
null
null
null
articles/api/urls.py
Mathieu604/car-scraping
57f14d0d86b183d2554569a83ced03b3f823a588
[ "MIT" ]
null
null
null
from articles.api.views import ArticleViewSet from rest_framework.routers import DefaultRouter router = DefaultRouter() router.register(r'', ArticleViewSet, base_name='articles') urlpatterns = router.urls
29.428571
58
0.825243
from articles.api.views import ArticleViewSet from rest_framework.routers import DefaultRouter router = DefaultRouter() router.register(r'', ArticleViewSet, base_name='articles') urlpatterns = router.urls
0
0
0
0
0
0
0
0
0
80048cc04a7629acdf231e07d03c5f379632d170
33
py
Python
os_migrate/plugins/module_utils/const.py
jfrancoa/os-migrate
3c48ef8f5a42edf5d0afd20b8fea969b287f8b46
[ "Apache-2.0" ]
null
null
null
os_migrate/plugins/module_utils/const.py
jfrancoa/os-migrate
3c48ef8f5a42edf5d0afd20b8fea969b287f8b46
[ "Apache-2.0" ]
null
null
null
os_migrate/plugins/module_utils/const.py
jfrancoa/os-migrate
3c48ef8f5a42edf5d0afd20b8fea969b287f8b46
[ "Apache-2.0" ]
null
null
null
FILE_PREFIX_NETWORK = 'network-'
16.5
32
0.787879
FILE_PREFIX_NETWORK = 'network-'
0
0
0
0
0
0
0
0
0
221e0644254ce585fd755ab84d018fa8bdbe4210
6,240
py
Python
sparc_se.py
wuh90/sparc_public
fef5e73af3ff56ec24d2eaf42e8dfa02c737f1f6
[ "MIT" ]
1
2021-03-22T03:40:14.000Z
2021-03-22T03:40:14.000Z
sparc_se.py
wuh90/sparc_public
fef5e73af3ff56ec24d2eaf42e8dfa02c737f1f6
[ "MIT" ]
null
null
null
sparc_se.py
wuh90/sparc_public
fef5e73af3ff56ec24d2eaf42e8dfa02c737f1f6
[ "MIT" ]
null
null
null
# Python code to run State Evolution (SE) related functions for # Sparse Regression Codes (SPARCs) # # 1. State evolution for general base matrix W. # 2. Asymptotic state evolution for general base matrix W. # # Copyright (c) 2020 Kuan Hsieh import numpy as np from sparc import create_base_matrix, is_power_of_2 from c...
33.72973
80
0.587179
# Python code to run State Evolution (SE) related functions for # Sparse Regression Codes (SPARCs) # # 1. State evolution for general base matrix W. # 2. Asymptotic state evolution for general base matrix W. # # Copyright (c) 2020 Kuan Hsieh import numpy as np from sparc import create_base_matrix, is_power_of_2, psk_c...
0
0
0
0
0
1,404
0
13
50
d850446fe3c65b8b929f6bf47967c3410a481476
5,406
py
Python
Projects/SpringAutumnFair/src/analysis/clean.py
ShipJ/Code
6ee1e207381447d0427cce4121f2e40ce65c13fa
[ "MIT" ]
null
null
null
Projects/SpringAutumnFair/src/analysis/clean.py
ShipJ/Code
6ee1e207381447d0427cce4121f2e40ce65c13fa
[ "MIT" ]
null
null
null
Projects/SpringAutumnFair/src/analysis/clean.py
ShipJ/Code
6ee1e207381447d0427cce4121f2e40ce65c13fa
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np def clean(df): """ Takes a dataframe of salesforce data and maps values to a more usable format, returning a clean data set. :param df: pandas DataFrame containing raw data :return: df: cleaned data set - i.e. mapped to correct values """ # Replace ...
54.06
124
0.54569
import pandas as pd import numpy as np import sys def clean(df): """ Takes a dataframe of salesforce data and maps values to a more usable format, returning a clean data set. :param df: pandas DataFrame containing raw data :return: df: cleaned data set - i.e. mapped to correct values """ ...
0
0
0
0
0
0
0
-11
22