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
6f0d98f861cf1ab649600130e35d9b2c7b05e334
12,676
py
Python
server/ignite_new/gym/gym_projection/envs/projection_env.py
cviaai/VEINCV-RL
ad7e35d72d091c978d43a9d667641f2fc58f29a5
[ "MIT" ]
8
2020-10-15T08:38:40.000Z
2021-11-04T13:00:52.000Z
server/ignite_new/gym/gym_projection/envs/projection_env.py
cviaai/VEINCV-RL
ad7e35d72d091c978d43a9d667641f2fc58f29a5
[ "MIT" ]
4
2021-04-05T14:59:07.000Z
2022-02-15T12:33:43.000Z
server/ignite_new/gym/gym_projection/envs/projection_env.py
cviaai/NIR-VISIBLE-IMAGING-WITH-CNN-RL
e1ddd0789ce2c2978481ed9355d3b832a9f69586
[ "MIT" ]
3
2021-01-12T09:34:38.000Z
2022-01-05T11:47:13.000Z
import numpy as np import cv2 import numpy.ma as ma import os def load_image_mask(path, img_path, msk_path): """ Load image and mask (in final prototype will be received from previous step in pipeline) Parameters: path: relative path to folder with image and mask files img_path: image file na...
32.924675
121
0.591275
import numpy as np import math import cv2 import matplotlib.pyplot as plt import time import numpy.ma as ma import gym from gym import spaces from gym.envs.toy_text import discrete from stable_baselines.common.policies import MlpPolicy from stable_baselines import PPO2 from stable_baselines.common.env_checker import ...
0
0
0
7,889
0
0
0
123
290
e670e1e18c1b9e0b05e59b52b0b2f648cfd32ce9
6,987
py
Python
examples/testsprite.py
sujeet3/pygame
f17913d36fef4e8dba2dda6eee6c756d511df866
[ "Python-2.0", "OLDAP-2.3" ]
1
2021-04-26T09:21:12.000Z
2021-04-26T09:21:12.000Z
examples/testsprite.py
sujeet3/pygame
f17913d36fef4e8dba2dda6eee6c756d511df866
[ "Python-2.0", "OLDAP-2.3" ]
null
null
null
examples/testsprite.py
sujeet3/pygame
f17913d36fef4e8dba2dda6eee6c756d511df866
[ "Python-2.0", "OLDAP-2.3" ]
null
null
null
#!/usr/bin/env python """ pg.examples.testsprite Like the testsprite.c that comes with libsdl, this pygame version shows lots of sprites moving around. It is an abomination of ugly code, and mostly used for testing. See pg.examples.aliens for some prettyier code. """ import sys import os from time import time impo...
26.56654
86
0.608845
#!/usr/bin/env python """ pg.examples.testsprite Like the testsprite.c that comes with libsdl, this pygame version shows lots of sprites moving around. It is an abomination of ugly code, and mostly used for testing. See pg.examples.aliens for some prettyier code. """ import sys import os from random import randint...
0
0
0
1,021
0
0
0
5
69
938a37dd951c52c91e506cbe2a947d538929db23
1,901
py
Python
bankinate/__init__.py
GTmmiller/bankinator
cbb333c3027778f76a52dc85590c4015fff2d1e3
[ "MIT" ]
1
2017-05-11T05:59:04.000Z
2017-05-11T05:59:04.000Z
bankinate/__init__.py
GTmmiller/bankinator
cbb333c3027778f76a52dc85590c4015fff2d1e3
[ "MIT" ]
null
null
null
bankinate/__init__.py
GTmmiller/bankinator
cbb333c3027778f76a52dc85590c4015fff2d1e3
[ "MIT" ]
null
null
null
import bankinator.bank
29.246154
100
0.631247
import pkgutil import sys import bankinator.bank import bankinator.output import getpass def ignore_base_walk(module_base_path): # Check available modules. Ignore modules with base in the name modules = [] for importer, modname, ispkg in pkgutil.walk_packages(path=module_base_path.__path__, ...
0
0
0
0
0
1,740
0
-22
157
b169fb9a208a671a5e9c47f0508607a7f37c309a
5,516
py
Python
train.py
kerengaiger/ai2v
55a71e1d5a91841b84356a9806889b37ec9c66e6
[ "MIT" ]
null
null
null
train.py
kerengaiger/ai2v
55a71e1d5a91841b84356a9806889b37ec9c66e6
[ "MIT" ]
null
null
null
train.py
kerengaiger/ai2v
55a71e1d5a91841b84356a9806889b37ec9c66e6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- if __name__ == '__main__': main()
37.780822
116
0.665881
# -*- coding: utf-8 -*- import datetime import pathlib import pickle import os import logging import numpy as np import torch as t from torch.optim import Adagrad, lr_scheduler from torch.utils.data import DataLoader from torch.utils.tensorboard import SummaryWriter from tqdm import tqdm from train_utils import save_...
0
0
0
0
0
4,882
0
96
469
43aae9cf7de8efd3e0f6d51c384249c34accfff7
10,846
py
Python
gamgmt.py
gamernetwork/gamgmt
05cef343c56c7c2773d123683c4861c37a483687
[ "MIT" ]
null
null
null
gamgmt.py
gamernetwork/gamgmt
05cef343c56c7c2773d123683c4861c37a483687
[ "MIT" ]
1
2016-08-15T13:43:59.000Z
2016-08-15T15:01:53.000Z
gamgmt.py
gamernetwork/gamgmt
05cef343c56c7c2773d123683c4861c37a483687
[ "MIT" ]
null
null
null
#!/usr/bin/python import argparse from apiclient.discovery import build import httplib2 from oauth2client import client from oauth2client import file from oauth2client import tools from config import CREDENTIALS_JSON def get_service(api_name, api_version, scope, client_secrets_path): """Get a service that communi...
37.143836
195
0.682832
#!/usr/bin/python import argparse from apiclient.discovery import build import httplib2 from oauth2client import client from oauth2client import file from oauth2client import tools from apiclient.errors import HttpError import pprint from config import CREDENTIALS_JSON def get_service(api_name, api_version, scope...
0
1,766
0
0
0
2,402
0
9
250
642ebfe3b9dce956b5e6b2068de6f148da636046
7,634
py
Python
cnswd/scripts/cninfo/units.py
huangzhangfeng/cnswd
e015c02fe21ef754c462227db30b52db846047a1
[ "Apache-2.0" ]
null
null
null
cnswd/scripts/cninfo/units.py
huangzhangfeng/cnswd
e015c02fe21ef754c462227db30b52db846047a1
[ "Apache-2.0" ]
null
null
null
cnswd/scripts/cninfo/units.py
huangzhangfeng/cnswd
e015c02fe21ef754c462227db30b52db846047a1
[ "Apache-2.0" ]
1
2020-03-10T14:46:44.000Z
2020-03-10T14:46:44.000Z
""" 1. "" -> "" "" -> "" 2. () -> __ -> _ 3. " " -> "_" 4. """_""" -> "_" """ import re import pandas as pd from .base import DB_DATE_FIELD, TS_DATE_FIELD DATE_COL_PAT = re.compile('$|$|A$|B$|$|$|$') UNIT_PAT = re.compile(r'[(]?()?(\w*[%])[)]?$') CODE_PAT = re.compile(r...
24.947712
74
0.504585
""" 列名称、数据类型、单位辅助转换工具 列名称规则: 1. 去除前导大写字符; 如"一、营业总收入" -> "营业总收入" "(一)基本每股收益" -> "基本每股收益" 2. 列名称 (上限) -> 列名称_上限_ -> 列名称_上限 3. 去除名称中的单位;如"分配股本基数(董 )万股" -> "分配股本基数_董" 4. 名称中含":",转换为"_";如"其中:营业收入" -> "其中_营业收入" """ import re import pandas as pd from .base import DB_DATE_FIELD, TS_...
2,835
0
0
0
0
3,680
0
0
353
03daf2f0480e5697efe89afcb8d5036645744414
1,116
py
Python
950.py
OmangRawat/Leetcode
6fa696367ef9c5e6b08940b11e2202382d1afc07
[ "MIT" ]
null
null
null
950.py
OmangRawat/Leetcode
6fa696367ef9c5e6b08940b11e2202382d1afc07
[ "MIT" ]
null
null
null
950.py
OmangRawat/Leetcode
6fa696367ef9c5e6b08940b11e2202382d1afc07
[ "MIT" ]
null
null
null
""" ---> Reveal Cards In Increasing Order ---> Medium """ in_deck = [17, 13, 11, 2, 3, 5, 7] a = Solution() # print(a.deckRevealedIncreasing(in_deck)) print(a.deckRevealedIncreasing_sol2(in_deck)) """ Reference - https://leetcode.com/problems/reveal-cards-in-increasing-order/discuss/200515/JavaC%2B%2BPython-Sim...
20.666667
137
0.638889
""" ---> Reveal Cards In Increasing Order ---> Medium """ import collections class Solution: def deckRevealedIncreasing(self, deck): d = [] for x in sorted(deck)[::-1]: d = [x] + d[-1:] + d[:-1] print(d) return d def deckRevealedIncreasing_sol2(self, deck): ...
0
0
0
390
0
0
0
-3
45
93bac67c27f5a1197d321876cdedb79048287c30
1,339
py
Python
ch11/AssignmentStatementForms.py
eroicaleo/LearningPython
297d46eddce6e43ce0c160d2660dff5f5d616800
[ "MIT" ]
1
2020-10-12T13:33:29.000Z
2020-10-12T13:33:29.000Z
ch11/AssignmentStatementForms.py
eroicaleo/LearningPython
297d46eddce6e43ce0c160d2660dff5f5d616800
[ "MIT" ]
null
null
null
ch11/AssignmentStatementForms.py
eroicaleo/LearningPython
297d46eddce6e43ce0c160d2660dff5f5d616800
[ "MIT" ]
1
2016-11-09T07:28:45.000Z
2016-11-09T07:28:45.000Z
#!/usr/local/bin/python3.3 a, *b = 'spam' print(a) print(b) nudge = 1 wink = 2 print(nudge, wink) A, B = nudge, wink print([A, B]) [C, D] = [nudge, wink] nudge, wink = wink, nudge print(nudge, wink) [a, b, c] = (1, 2, 3) print(a, c) (a, b, c, d) = "SPAM" print(a, c) D = {'a': 'lala', 'b': 'haha'} [g, y] = D print([...
12.632075
42
0.492158
#!/usr/local/bin/python3.3 a, *b = 'spam' print(a) print(b) nudge = 1 wink = 2 print(nudge, wink) A, B = nudge, wink print([A, B]) [C, D] = [nudge, wink] nudge, wink = wink, nudge print(nudge, wink) [a, b, c] = (1, 2, 3) print(a, c) (a, b, c, d) = "SPAM" print(a, c) D = {'a': 'lala', 'b': 'haha'} [g, y] = D print([...
0
0
0
0
0
0
0
0
0
b1428f58aa518bda1533f20480595e10d8c6b12e
15,522
py
Python
pyu2f/tests/customauthenticator_test.py
dilipped/pyu2f
80ad6253c613cfd21abd03c5f3c1f9219da30650
[ "Apache-2.0" ]
74
2017-02-09T15:52:09.000Z
2022-03-31T14:56:51.000Z
pyu2f/tests/customauthenticator_test.py
dilipped/pyu2f
80ad6253c613cfd21abd03c5f3c1f9219da30650
[ "Apache-2.0" ]
19
2017-02-04T03:58:46.000Z
2022-01-27T10:38:22.000Z
pyu2f/tests/customauthenticator_test.py
dilipped/pyu2f
80ad6253c613cfd21abd03c5f3c1f9219da30650
[ "Apache-2.0" ]
28
2017-03-03T23:54:00.000Z
2022-01-01T20:37:21.000Z
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
41.172414
80
0.692888
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
0
13,364
0
0
0
0
0
3
134
7dccdcaf2a6a83e19d7b75db5846a876ca5ddfc1
1,144
py
Python
src/wpipe/sqlintf/Input.py
benw1/WINGS
32d4bfd073da0b86d2340cde25a5601d0a1ec95e
[ "RSA-MD" ]
4
2022-01-04T18:24:56.000Z
2022-01-27T08:23:37.000Z
src/wpipe/sqlintf/Input.py
benw1/WINGS
32d4bfd073da0b86d2340cde25a5601d0a1ec95e
[ "RSA-MD" ]
null
null
null
src/wpipe/sqlintf/Input.py
benw1/WINGS
32d4bfd073da0b86d2340cde25a5601d0a1ec95e
[ "RSA-MD" ]
null
null
null
#!/usr/bin/env python """ Contains the sqlintf.Input class definition Please note that this module is private. The sqlintf.Input class is available in the ``wpipe.sqlintf`` namespace - use that instead. """ __all__ = ['Input']
33.647059
96
0.68007
#!/usr/bin/env python """ Contains the sqlintf.Input class definition Please note that this module is private. The sqlintf.Input class is available in the ``wpipe.sqlintf`` namespace - use that instead. """ from .core import sa, orm from .DPOwner import DPOwner __all__ = ['Input'] class Input(DPOwner): """ ...
0
0
0
836
0
0
0
11
67
37d473fd6b8a97bff9b50b5bc373b89c6be1383c
14,526
py
Python
src/p4p/client/asyncio.py
ajvignesh21/p4p
18807f9e2b0c7597a4e2072592481e16dfa6c928
[ "BSD-3-Clause" ]
null
null
null
src/p4p/client/asyncio.py
ajvignesh21/p4p
18807f9e2b0c7597a4e2072592481e16dfa6c928
[ "BSD-3-Clause" ]
null
null
null
src/p4p/client/asyncio.py
ajvignesh21/p4p
18807f9e2b0c7597a4e2072592481e16dfa6c928
[ "BSD-3-Clause" ]
1
2022-01-10T11:11:07.000Z
2022-01-10T11:11:07.000Z
import logging _log = logging.getLogger(__name__) from .raw import RemoteError from ..wrapper import Value, Type __all__ = [ 'Context', 'Value', 'Type', 'RemoteError', 'timeout', ] def timesout(deftimeout=5.0): """Decorate a coroutine to implement an overall timeout. The decorated corou...
36.315
125
0.582197
import logging _log = logging.getLogger(__name__) import asyncio from functools import partial, wraps from . import raw from .raw import Disconnected, RemoteError, Cancelled, Finished, LazyRepr from ..wrapper import Value, Type from .._p4p import (logLevelAll, logLevelTrace, logLevelDebug, logLe...
0
8,947
0
3,974
0
134
0
201
163
689557da3ec85d3ed7f59d51d81866d49303f93d
432
py
Python
examples/example.py
itsmewulf/py-carbon
6bc368182e453621026bed15d00d6deb22517ca0
[ "MIT" ]
4
2021-07-20T17:57:48.000Z
2021-08-30T17:10:15.000Z
examples/example.py
itsmewulf/py-carbon
6bc368182e453621026bed15d00d6deb22517ca0
[ "MIT" ]
null
null
null
examples/example.py
itsmewulf/py-carbon
6bc368182e453621026bed15d00d6deb22517ca0
[ "MIT" ]
null
null
null
import carbon import asyncio loop = asyncio.get_event_loop() # Setting up asyncio code = """ defmodule Something do def anything() do IO.puts "Hello, World" end end """ # Any kind of code-block in any language options = carbon.CarbonOptions(code) cb = carbon.Carbon() image = loop.run_until_complet...
22.736842
85
0.729167
import carbon import asyncio loop = asyncio.get_event_loop() # Setting up asyncio code = """ defmodule Something do def anything() do IO.puts "Hello, World" end end """ # Any kind of code-block in any language options = carbon.CarbonOptions(code) cb = carbon.Carbon() image = loop.run_until_complet...
0
0
0
0
0
0
0
0
0
2171de3b168a56ec969a5bd769934ba8e4d6d255
2,786
py
Python
mitos/MSA/MultipleSequenceAlignment.py
ecolell/MIToS
2aef18040216c80d4d08adfd6d99b18c1bc5fbb5
[ "MIT" ]
2
2016-10-02T17:31:44.000Z
2020-01-15T12:16:23.000Z
mitos/MSA/MultipleSequenceAlignment.py
rujinlong/MIToS
2aef18040216c80d4d08adfd6d99b18c1bc5fbb5
[ "MIT" ]
null
null
null
mitos/MSA/MultipleSequenceAlignment.py
rujinlong/MIToS
2aef18040216c80d4d08adfd6d99b18c1bc5fbb5
[ "MIT" ]
2
2016-10-02T17:31:47.000Z
2017-05-21T16:32:02.000Z
""" This functions deletes/filters sequences and columns/positions on the MSA on the following order: - Removes all the columns/position on the MSA with gaps on the reference sequence (first sequence) - Removes all the sequences with a coverage with respect to the number of columns/positions on the MSA **l...
36.657895
85
0.641062
from Annotations import annotate_modification def ncolumns(msa): return len(msa[0]) def coverage(sequence, reference): matchs = zip(sequence, reference) matchs = filter(lambda residues: residues[0] not in ['-', '.'], matchs) count = sum(map(lambda residues: residues[0].lower() == residues[1].lower()...
0
0
0
0
0
2,066
0
24
182
8052f7eb46d814278619fef18b177c97a688de23
23,450
py
Python
xmuda/data/NYU/nyu_dataset.py
anhquancao/xmuda-extend
4b670ec2f6766e3a624e81dbe5d97b209c1c4f76
[ "Apache-2.0" ]
null
null
null
xmuda/data/NYU/nyu_dataset.py
anhquancao/xmuda-extend
4b670ec2f6766e3a624e81dbe5d97b209c1c4f76
[ "Apache-2.0" ]
null
null
null
xmuda/data/NYU/nyu_dataset.py
anhquancao/xmuda-extend
4b670ec2f6766e3a624e81dbe5d97b209c1c4f76
[ "Apache-2.0" ]
null
null
null
import xmuda.common.utils.fusion as fusion seg_class_map = [0, 1, 2, 3, 4, 11, 5, 6, 7, 8, 8, 10, 10, 10, 11, 11, 9, 8, 11, 11, 11, 11, 11, 11, 11, 11, 11, 10, 10, 11, 8, 10, 11, 9, 11, 11, 11] # print(cnts[1:] * 100 / np.sum(cnts[1:])) if __name__ == '__main__': main()
42.32852
179
0.573475
import torch import os import glob from torch.utils.data import Dataset import numpy as np import scipy.stats as scipy_stats import numpy.matlib from PIL import Image from torchvision import transforms from xmuda.data.utils.preprocess import create_img_grid, create_voxel_grid, select_points_in_frustum, compute_local_fr...
12
6,207
0
14,500
0
1,726
0
249
464
16649966acfe8e067855e19826b5635423aedf7e
5,044
py
Python
venv/Lib/site-packages/pip/_internal/locations.py
RiccardoCherchi/Barcode-Stock
699b977fa70ea14a7ac4d33bb7bb2f107aa2ca20
[ "MIT" ]
1
2020-10-21T04:51:46.000Z
2020-10-21T04:51:46.000Z
venv/Lib/site-packages/pip/_internal/locations.py
RiccardoCherchi/Barcode-Stock
699b977fa70ea14a7ac4d33bb7bb2f107aa2ca20
[ "MIT" ]
2
2020-10-23T06:51:04.000Z
2020-11-12T07:03:37.000Z
venv/Lib/site-packages/pip/_internal/locations.py
RiccardoCherchi/Barcode-Stock
699b977fa70ea14a7ac4d33bb7bb2f107aa2ca20
[ "MIT" ]
1
2020-10-24T05:21:20.000Z
2020-10-24T05:21:20.000Z
"""Locations where we look for configs, install stuff, etc""" from __future__ import absolute_import import os import os.path import platform import site import sys import sysconfig from distutils import sysconfig as distutils_sysconfig from distutils.command.install import SCHEME_KEYS # type: ignore from pip._inter...
35.521127
79
0.668715
"""Locations where we look for configs, install stuff, etc""" from __future__ import absolute_import import os import os.path import platform import site import sys import sysconfig from distutils import sysconfig as distutils_sysconfig from distutils.command.install import SCHEME_KEYS # type: ignore from pip._inter...
0
0
0
0
0
618
0
30
49
a7ede82f9a17c2d9ba63dab59652353d1b182871
3,420
py
Python
ip_updater.py
NeilYXIN/Server_IP_Updater
11faba13b7d0c52fa7563e41f74e9c1203ed03f6
[ "Apache-2.0" ]
null
null
null
ip_updater.py
NeilYXIN/Server_IP_Updater
11faba13b7d0c52fa7563e41f74e9c1203ed03f6
[ "Apache-2.0" ]
null
null
null
ip_updater.py
NeilYXIN/Server_IP_Updater
11faba13b7d0c52fa7563e41f74e9c1203ed03f6
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021. Xin Yang # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
35.625
136
0.706433
import os.path import smtplib import socket import ssl from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText # Copyright (c) 2021. Xin Yang # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obt...
2
0
0
0
0
998
0
7
220
9c8006ddb324cddcbb16531f22952f27092bc532
2,088
py
Python
tests/api_resources/terminal/test_location.py
timvisher/stripe-python
ae953fd0aa531f5b500e5e86eee5859df95a255d
[ "MIT" ]
null
null
null
tests/api_resources/terminal/test_location.py
timvisher/stripe-python
ae953fd0aa531f5b500e5e86eee5859df95a255d
[ "MIT" ]
null
null
null
tests/api_resources/terminal/test_location.py
timvisher/stripe-python
ae953fd0aa531f5b500e5e86eee5859df95a255d
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function TEST_RESOURCE_ID = 'loc_123'
32.123077
70
0.608716
from __future__ import absolute_import, division, print_function import stripe TEST_RESOURCE_ID = 'loc_123' class TestLocation(object): def test_is_creatable(self, request_mock): resource = stripe.terminal.Location.create( display_name='name', address={ 'line1': ...
0
0
0
1,953
0
0
0
-8
46
88dd9c2db32962be39b062f681c004dec80f787d
101
py
Python
BOJ_Solved/BOJ-11549.py
CodingLeeSeungHoon/Python_Algorithm_TeamNote
1e92986999b45aa9951e12e67b23062e410e9b36
[ "MIT" ]
7
2021-11-19T14:50:59.000Z
2022-02-25T20:00:20.000Z
BOJ_Solved/BOJ-11549.py
CodingLeeSeungHoon/Python_Algorithm_TeamNote
1e92986999b45aa9951e12e67b23062e410e9b36
[ "MIT" ]
null
null
null
BOJ_Solved/BOJ-11549.py
CodingLeeSeungHoon/Python_Algorithm_TeamNote
1e92986999b45aa9951e12e67b23062e410e9b36
[ "MIT" ]
null
null
null
""" 11549 : Identifying tea """ T = int(input()) print(list(map(int, input().split())).count(T))
16.833333
47
0.613861
""" 백준 11549번 : Identifying tea """ T = int(input()) print(list(map(int, input().split())).count(T))
9
0
0
0
0
0
0
0
0
6f6ff56ff65b80671b874aecdfe562056fa6fd4b
822
py
Python
jogo.adivinhacao.py
wcalazans81/Exercicios-Python
d9abb9505bbf9151d3515cc9ca5b9bd32435699e
[ "MIT" ]
null
null
null
jogo.adivinhacao.py
wcalazans81/Exercicios-Python
d9abb9505bbf9151d3515cc9ca5b9bd32435699e
[ "MIT" ]
null
null
null
jogo.adivinhacao.py
wcalazans81/Exercicios-Python
d9abb9505bbf9151d3515cc9ca5b9bd32435699e
[ "MIT" ]
null
null
null
from random import randint from time import sleep cor = {31 : '\033[31m', 32 : '\033[32m', 33 : '\033[33m', 34 : '\033[34m', 'f' : '\033[m'} n = randint(1, 10) print(cor[33], '=*=+=*='*14, cor['f']) print('Tente adivinhar o nmero {}entre 0 a 10 {}escolhido pelo computador e vena o jogo '.format(cor[31], cor['f'])) prin...
54.8
159
0.590024
from random import randint from time import sleep cor = {31 : '\033[31m', 32 : '\033[32m', 33 : '\033[33m', 34 : '\033[34m', 'f' : '\033[m'} n = randint(1, 10) print(cor[33], '=*=+=*='*14, cor['f']) print('Tente adivinhar o número {}entre 0 a 10 {}escolhido pelo computador e vença o jogo '.format(cor[31], cor['f'])) pr...
24
0
0
0
0
0
0
0
0
916b76393051812b37ec46685bc6c8900c97a1c9
853
py
Python
ForLoops.py
ejrach/exercises-mosh
baaa02dff58652a9910d654be9bdd3e76dece9b7
[ "MIT" ]
null
null
null
ForLoops.py
ejrach/exercises-mosh
baaa02dff58652a9910d654be9bdd3e76dece9b7
[ "MIT" ]
null
null
null
ForLoops.py
ejrach/exercises-mosh
baaa02dff58652a9910d654be9bdd3e76dece9b7
[ "MIT" ]
null
null
null
# In for loops, 'item' is the loop variable. # We don't need a loop counter # Loop through each character for item in 'Python': print(item) # Loop through each item in a list for item in ['Eric', 'Nancy', 'River']: print(item) # Loop through each item in a list for item in [1, 2, 3, 4]: print(item) # L...
25.088235
106
0.685815
# In for loops, 'item' is the loop variable. # We don't need a loop counter # Loop through each character for item in 'Python': print(item) # Loop through each item in a list for item in ['Eric', 'Nancy', 'River']: print(item) # Loop through each item in a list for item in [1, 2, 3, 4]: print(item) # L...
0
0
0
0
0
0
0
0
0
e51d5e1822a670017bb202798cde428fe0dff453
2,174
py
Python
pipeline/db.py
cdvx/etl-python
600d581e25c983e385a0ea660bde03ea3950fc06
[ "MIT" ]
null
null
null
pipeline/db.py
cdvx/etl-python
600d581e25c983e385a0ea660bde03ea3950fc06
[ "MIT" ]
null
null
null
pipeline/db.py
cdvx/etl-python
600d581e25c983e385a0ea660bde03ea3950fc06
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """Module with database connection classess""" # System libraries # Third-party libraries from config import Config VARS = [ Config.PSQL_DB, Config.DB_HOST, Config.PSQL_PASSWORD, Config.PSQL_PORT, Config.PSQL_USER, Config.MONGO_PORT, Config.MONGO_DB ]
26.839506
69
0.587856
#!/usr/bin/python3 """Module with database connection classess""" # System libraries import os, copy # Third-party libraries import psycopg2 from pymongo import MongoClient from config import Config VARS = [ Config.PSQL_DB, Config.DB_HOST, Config.PSQL_PASSWORD, Config.PSQL_PORT, Config.PSQL_USE...
0
395
0
1,358
0
0
0
-2
112
2e3a0eca9c9fb4d67fb1ae3a93780ce43895dd86
277
py
Python
2020-11-09/rabiola.py
pufe/programa
7f79566597446e9e39222e6c15fa636c3dd472bb
[ "MIT" ]
2
2020-12-12T00:02:40.000Z
2021-04-21T19:49:59.000Z
2020-11-09/rabiola.py
pufe/programa
7f79566597446e9e39222e6c15fa636c3dd472bb
[ "MIT" ]
null
null
null
2020-11-09/rabiola.py
pufe/programa
7f79566597446e9e39222e6c15fa636c3dd472bb
[ "MIT" ]
null
null
null
try: while True: cipo = input().split("x") maior = max(len(cipo[0]), len(cipo[-1])) for segmento in cipo: if len(segmento) // 2 > maior: maior = len(segmento) // 2 print(maior) except EOFError: pass
25.181818
49
0.476534
try: while True: cipo = input().split("x") maior = max(len(cipo[0]), len(cipo[-1])) for segmento in cipo: if len(segmento) // 2 > maior: maior = len(segmento) // 2 print(maior) except EOFError: pass
0
0
0
0
0
0
0
0
0
5b537af454a5dbc63a081ff54226bd50bb56c5cb
5,473
py
Python
tests/test_sequence.py
anshulahuja98/python3-crdt
b2e5d67580c562ae08d56127f41f7562e3ebe8e9
[ "MIT" ]
48
2019-02-16T08:01:52.000Z
2022-03-19T00:45:13.000Z
tests/test_sequence.py
geetesh-gupta/python3-crdt
02dfc28895da031169fbc8bd9ae1434dbfacd8b9
[ "MIT" ]
5
2020-10-01T09:52:38.000Z
2021-05-18T09:32:35.000Z
tests/test_sequence.py
anshulahuja98/python3-crdt
b2e5d67580c562ae08d56127f41f7562e3ebe8e9
[ "MIT" ]
3
2019-02-16T08:01:54.000Z
2022-01-29T15:58:14.000Z
import unittest if __name__ == '__main__': unittest.main()
34.20625
66
0.654303
import unittest import uuid import py3crdt from py3crdt.sequence import Sequence from datetime import datetime class TestSequence(unittest.TestCase): def setUp(self): # Create a Sequence self.seq1 = Sequence(uuid.uuid4()) # Create another Sequence self.seq2 = Sequence(uuid.uuid4()...
0
0
0
5,289
0
0
0
7
111
6a138774dc1c58200dbca3789fa2fe21c7ebd1ce
1,355
py
Python
study12_homework.py
Kath2019666/python
6c118b0f7b6650917eacbf1b941150a0b45f265a
[ "Unlicense" ]
null
null
null
study12_homework.py
Kath2019666/python
6c118b0f7b6650917eacbf1b941150a0b45f265a
[ "Unlicense" ]
null
null
null
study12_homework.py
Kath2019666/python
6c118b0f7b6650917eacbf1b941150a0b45f265a
[ "Unlicense" ]
null
null
null
# # # hrSystem.record('bob',2000,98) hrSystem.print_record() #homework2 calendar.new()
21.171875
67
0.527675
# 创建一个人事系统类 class hrSystem: # 创建存储员工名字的变量 name name = '' # 创建存储员工工资的变量 salary salary = 0 # 创建存储员工绩效的变量 kpi kpi = 0 # 定义录入员工信息的类方法 @classmethod def record(cls, name, salary, kpi): cls.name = name cls.salary = salary cls.kpi = kpi @classmethod def check_na...
531
794
0
136
0
0
0
0
150
8b112e4eb0201a4aa91b9c7497024042efdec45d
3,774
py
Python
Mini-projets-2020/Calcul_numerique/squelette_cossin.py
Naereen/Introduction-au-Numerique-avec-Python-dpt-DEM-2020
ee935f67970acbb3c8ba0373f57c21826340c3aa
[ "MIT" ]
1
2020-10-07T19:44:29.000Z
2020-10-07T19:44:29.000Z
Mini-projets-2020/Calcul_numerique/squelette_cossin.py
Naereen/Introduction-au-Num-rique-avec-Python-dpt-DEM-2020
ee935f67970acbb3c8ba0373f57c21826340c3aa
[ "MIT" ]
null
null
null
Mini-projets-2020/Calcul_numerique/squelette_cossin.py
Naereen/Introduction-au-Num-rique-avec-Python-dpt-DEM-2020
ee935f67970acbb3c8ba0373f57c21826340c3aa
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # Dernier TP (mini projet) : exemples de calcul numrique # - Prof : Lilian Besson # - Site du cours : [https://perso.crans.org/besson/teach/intro_num_DEM_2020/](https://perso.crans.org/besson/teach/intro_num_DEM_2020/) # - Date : mercredi 14/10/2020 et vendredi 16/10/2020. # ----...
35.942857
175
0.558294
#!/usr/bin/env python # coding: utf-8 # Dernier TP (mini projet) : exemples de calcul numérique # - Prof : Lilian Besson # - Site du cours : [https://perso.crans.org/besson/teach/intro_num_DEM_2020/](https://perso.crans.org/besson/teach/intro_num_DEM_2020/) # - Date : mercredi 14/10/2020 et vendredi 16/10/2020. # ---...
48
0
0
0
0
0
0
0
0
621ebb1de306e85a004a12c99f66f96db2071693
182
py
Python
like/admin.py
DeepinSC/Pikachu-Housing
453201e19812e356106c071bbf9a306931d14fa7
[ "Apache-2.0" ]
1
2019-03-23T18:49:31.000Z
2019-03-23T18:49:31.000Z
like/admin.py
DeepinSC/Pikachu-Housing
453201e19812e356106c071bbf9a306931d14fa7
[ "Apache-2.0" ]
null
null
null
like/admin.py
DeepinSC/Pikachu-Housing
453201e19812e356106c071bbf9a306931d14fa7
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from like.models import Like admin.site.register(Like, LikeAdmin)
18.2
43
0.758242
from django.contrib import admin from like.models import Like class LikeAdmin(admin.ModelAdmin): list_display = ('user_id', 'house_id',) admin.site.register(Like, LikeAdmin)
0
0
0
57
0
0
0
0
23
8dcb3cd14ee99b97207d855b8fc61b12f343f27d
42
py
Python
dnd/constants/__init__.py
Saevon/webdnd
4dd5d30ae105ede51bbd92bf5281a6965b7d55f4
[ "MIT" ]
4
2015-09-26T01:12:36.000Z
2020-01-04T19:36:58.000Z
dnd/constants/__init__.py
Saevon/webdnd
4dd5d30ae105ede51bbd92bf5281a6965b7d55f4
[ "MIT" ]
null
null
null
dnd/constants/__init__.py
Saevon/webdnd
4dd5d30ae105ede51bbd92bf5281a6965b7d55f4
[ "MIT" ]
null
null
null
""" General Constants """ __all__ = [ ]
5.25
17
0.547619
""" General Constants """ __all__ = [ ]
0
0
0
0
0
0
0
0
0
ecc7cb9a6ed1846a124c04a97e4fa1ea77afc12f
1,127
py
Python
apis/raw/019_raw/019_cleaner.py
sighill/shade_app
2b42d6411bc6e292b112a5e6be3598de8edadee1
[ "MIT" ]
null
null
null
apis/raw/019_raw/019_cleaner.py
sighill/shade_app
2b42d6411bc6e292b112a5e6be3598de8edadee1
[ "MIT" ]
null
null
null
apis/raw/019_raw/019_cleaner.py
sighill/shade_app
2b42d6411bc6e292b112a5e6be3598de8edadee1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # 019_cleaner.py # CODED TO BE EXECUTED SERVER SIDE : # cd /home/common/shade # python3 manage.py shell ################################## # Init des paths et noms de fichiers AddLog('title' , 'Dbut du nettoyage du fichier') work_dir = '/home/common/shade/apis/raw/019_raw/' # Nom du...
30.459459
96
0.589175
# -*- coding: utf-8 -*- # 019_cleaner.py # CODED TO BE EXECUTED SERVER SIDE : # cd /home/common/shade # python3 manage.py shell import sys from apis.voca import * ################################## # Init des paths et noms de fichiers AddLog('title' , 'Début du nettoyage du fichier') work_dir = '/home/c...
10
0
0
0
0
0
0
-9
48
de31769a77da45f55a61af09f30ca04cb7ea251d
4,984
py
Python
malaya_speech/utils/text.py
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
[ "MIT" ]
111
2020-08-31T04:58:54.000Z
2022-03-29T15:44:18.000Z
malaya_speech/utils/text.py
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
[ "MIT" ]
14
2020-12-16T07:27:22.000Z
2022-03-15T17:39:01.000Z
malaya_speech/utils/text.py
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
[ "MIT" ]
29
2021-02-09T08:57:15.000Z
2022-03-12T14:09:19.000Z
import re _pad = 'pad' _start = 'start' _eos = 'eos' _punctuation = "!'(),.:;? " _special = '-' _letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' _small_letters = 'abcdefghijklmnopqrstuvwxyz' _rejected = '\'():;"' _punct = ':;,.?' TTS_SYMBOLS = ( [_pad, _start, _eos] + list(_special) + list(_punc...
30.390244
79
0.576043
import re from unidecode import unidecode from sklearn.feature_extraction.text import CountVectorizer from sklearn.preprocessing import StandardScaler import numpy as np _pad = 'pad' _start = 'start' _eos = 'eos' _punctuation = "!'(),.:;? " _special = '-' _letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxy...
0
0
0
3,304
0
738
0
72
226
a914f3c3cad10880fabc5646b590d96e369ec0ce
1,994
py
Python
scitbx/source_generators/lbfgs_fem.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
155
2016-11-23T12:52:16.000Z
2022-03-31T15:35:44.000Z
scitbx/source_generators/lbfgs_fem.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
590
2016-12-10T11:31:18.000Z
2022-03-30T23:10:09.000Z
scitbx/source_generators/lbfgs_fem.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
115
2016-11-15T08:17:28.000Z
2022-02-09T15:30:14.000Z
from __future__ import absolute_import, division, print_function if __name__ == "__main__": run()
34.37931
75
0.718154
from __future__ import absolute_import, division, print_function import os def run(): import libtbx.load_env src_dir = libtbx.env.under_dist( module_name="scitbx", path="lbfgs", test=os.path.isdir) import fable.read all_fprocs = fable.read.process( file_names=[os.path.join(src_dir, f) for f in ["sdriv...
0
0
0
0
0
1,859
0
-12
46
d18f4c556b415ac999343f028b20eece48e98d1e
29,905
py
Python
sfcsmCtrl/sfcsmCtrlcore.py
chenhui0228/sfcsm
ef9adbc7d2ec8d97cee053678002b65ca41b804b
[ "Apache-2.0" ]
1
2018-06-04T06:26:27.000Z
2018-06-04T06:26:27.000Z
sfcsmCtrl/sfcsmCtrlcore.py
chenhui0228/sfcsm
ef9adbc7d2ec8d97cee053678002b65ca41b804b
[ "Apache-2.0" ]
null
null
null
sfcsmCtrl/sfcsmCtrlcore.py
chenhui0228/sfcsm
ef9adbc7d2ec8d97cee053678002b65ca41b804b
[ "Apache-2.0" ]
null
null
null
#-*- coding: UTF-8 -*- # 01107267 # 03/24/2017 from flask import Flask, Response, redirect from flask_login import (LoginManager, login_required, login_user, current_user, logout_user, UserMixin) from itsdangerous import URLSafeTimedSerializer from datetime import timedelta from datetime import datetime fro...
35.94351
138
0.627554
#-*- coding: UTF-8 -*- # 01107267 # 03/24/2017 from flask import Flask, Response, redirect from flask_login import (LoginManager, login_required, login_user, current_user, logout_user, UserMixin) from itsdangerous import URLSafeTimedSerializer from datetime import timedelta from dat...
96
20,560
0
451
0
3,053
0
28
1,355
1bcb1ed37f67d6573016515d10d55ea630c00eb0
15,297
py
Python
generate_NN_arch.py
guillefix/nn-pacbayes
a10bb6fd26bea2163f41a4ef9171bf914db5bc76
[ "MIT" ]
1
2020-12-08T01:58:03.000Z
2020-12-08T01:58:03.000Z
generate_NN_arch.py
guillefix/nn-pacbayes
a10bb6fd26bea2163f41a4ef9171bf914db5bc76
[ "MIT" ]
2
2021-01-10T01:25:13.000Z
2021-12-11T03:07:53.000Z
generate_NN_arch.py
guillefix/nn-pacbayes
a10bb6fd26bea2163f41a4ef9171bf914db5bc76
[ "MIT" ]
null
null
null
import tensorflow as tf if __name__ == '__main__': f = tf.compat.v1.app.flags from utils import define_default_flags define_default_flags(f) tf.compat.v1.app.run()
53.114583
223
0.685494
import numpy as np import tensorflow as tf from utils import preprocess_flags, save_arch from utils import arch_folder def main(_): FLAGS = tf.compat.v1.app.flags.FLAGS.flag_values_dict() FLAGS = preprocess_flags(FLAGS) globals().update(FLAGS) print("poolin", pooling) print("Generating architect...
0
0
0
0
0
14,993
0
29
90
22fc0bd724fc50c1d1b9663c4b7a404c327efe28
3,984
py
Python
wechatpy/client/api/jsapi.py
wenin819/wechatpy
c993294753b0df67dd46b47f766234520fe04f09
[ "MIT" ]
2
2019-09-21T13:43:24.000Z
2019-09-21T14:01:19.000Z
wechatpy/client/api/jsapi.py
lovefox666/wechatpy
5f637f42f9b462e9f4b91441861f5542cc83cae5
[ "MIT" ]
null
null
null
wechatpy/client/api/jsapi.py
lovefox666/wechatpy
5f637f42f9b462e9f4b91441861f5542cc83cae5
[ "MIT" ]
3
2018-03-15T10:52:44.000Z
2020-07-20T01:11:48.000Z
# -*- coding: utf-8 -*- """ wechatpy.client.jsapi ~~~~~~~~~~~~~~~~~~~~ This module provides some APIs for JS SDK :copyright: (c) 2014 by messense. :license: MIT, see LICENSE for more details. """ from __future__ import absolute_import, unicode_literals
35.256637
95
0.63002
# -*- coding: utf-8 -*- """ wechatpy.client.jsapi ~~~~~~~~~~~~~~~~~~~~ This module provides some APIs for JS SDK :copyright: (c) 2014 by messense. :license: MIT, see LICENSE for more details. """ from __future__ import absolute_import, unicode_literals import hashlib import time from wechatpy.ut...
372
0
0
3,426
0
0
0
45
113
b7f2fd9f03ee212acee8b181de7ce2ba600dd4ac
5,694
py
Python
madtornado/ancient/rig/genSQL.py
SystemLight/madtornado
707ee156c33facd7050449f9fccef44f1c302b19
[ "MIT" ]
8
2020-04-12T13:53:13.000Z
2022-01-11T15:31:31.000Z
madtornado/ancient/rig/genSQL.py
SystemLight/Mad_tornado3
707ee156c33facd7050449f9fccef44f1c302b19
[ "MIT" ]
null
null
null
madtornado/ancient/rig/genSQL.py
SystemLight/Mad_tornado3
707ee156c33facd7050449f9fccef44f1c302b19
[ "MIT" ]
null
null
null
def select_tcw(table, field=("*",), where=None): """ :: select_tcw("table", ("id", "name"), where="id='2' and name='3'") sql select id,name from table where id='2' and name='3' :param table: :param field: ("*",) :param where: id='2' and name='3'' :return: sql """ sq...
29.350515
118
0.547945
def select_tcw(table, field=("*",), where=None): """ 示例内容:: select_tcw("table", ("id", "name"), where="id='2' and name='3'") 转换sql: select id,name from table where id='2' and name='3' :param table: 查询的表名称 :param field: 需要查询的字段,放入元祖中,默认值("*",) :param where: 筛选的内容,如 id='2' and name=...
1,380
0
0
250
0
0
0
0
23
2aa6209639394ebede4cdb14bd61d2c4a969ba25
3,267
py
Python
knowledge.py
knowru/recommender_example
07d664f59a373bfe147df9c425118dce602d8198
[ "MIT" ]
null
null
null
knowledge.py
knowru/recommender_example
07d664f59a373bfe147df9c425118dce602d8198
[ "MIT" ]
null
null
null
knowledge.py
knowru/recommender_example
07d664f59a373bfe147df9c425118dce602d8198
[ "MIT" ]
1
2019-06-26T13:11:04.000Z
2019-06-26T13:11:04.000Z
import json from surprise import dump _, algo = dump.load('knn.algo') with open('movies.json') as file: movies = json.load(file) movie_name_to_raw_ids = dict() for movie_id, movie_info in movies.items(): movie_name_to_raw_ids[movie_info['name']] = movie_id ''' >>> import knowledge >>> from pprint import pprin...
45.375
94
0.606979
import json from surprise import dump _, algo = dump.load('knn.algo') with open('movies.json') as file: movies = json.load(file) movie_name_to_raw_ids = dict() for movie_id, movie_info in movies.items(): movie_name_to_raw_ids[movie_info['name']] = movie_id def parse_data(data): movie_name = data.get('movi...
0
0
0
0
0
849
0
0
46
77832d18144d7d1eab4f41c332d039a72c8e9705
1,429
py
Python
Home/sun-angle.py
smallbomb/CheckIO_py
f417a896f7dc450bebc01330858b1253accc0756
[ "MIT" ]
null
null
null
Home/sun-angle.py
smallbomb/CheckIO_py
f417a896f7dc450bebc01330858b1253accc0756
[ "MIT" ]
null
null
null
Home/sun-angle.py
smallbomb/CheckIO_py
f417a896f7dc450bebc01330858b1253accc0756
[ "MIT" ]
null
null
null
# https://py.checkio.org/en/mission/sun-angle/ ''' Every true traveler must know how to do 3 things: fix the fire, find the water and extract useful information from the nature around him. Programming won't help you with the fire and water, but when it comes to the information extraction - it might be just the thi...
47.633333
141
0.679496
# https://py.checkio.org/en/mission/sun-angle/ ''' Every true traveler must know how to do 3 things: fix the fire, find the water and extract useful information from the nature around him. Programming won't help you with the fire and water, but when it comes to the information extraction - it might be just the thi...
0
0
0
0
0
258
0
0
25
ef9395e12f4d8c47b3700f2863a6b2fd8d08e401
5,366
py
Python
PortScaner/portScaner_wzk.py
1Ya1YaY0u/FininalProject
59e9fc6c3557af6ef1ef332f458826a4d2ec31ef
[ "Apache-2.0" ]
1
2021-04-14T08:22:36.000Z
2021-04-14T08:22:36.000Z
PortScaner/portScaner_wzk.py
1Ya1YaY0u/FininalProject
59e9fc6c3557af6ef1ef332f458826a4d2ec31ef
[ "Apache-2.0" ]
null
null
null
PortScaner/portScaner_wzk.py
1Ya1YaY0u/FininalProject
59e9fc6c3557af6ef1ef332f458826a4d2ec31ef
[ "Apache-2.0" ]
null
null
null
import tkinter as tk if __name__ == "__main__": top = tk.Tk() myPortScanner = PortScanner(top) # odic, cdic = myPortScanner.portScanner(['127.0.0.1'], 8086, 8200) myPortScanner.window() top.mainloop() # print(odic, cdic)
40.651515
93
0.546217
import socket from concurrent.futures import ThreadPoolExecutor, wait import tkinter as tk from scapy.all import * class PortScanner(object): def __init__(self, mytop): self.top = mytop self.ip_entry = tk.Entry(self.top, width=80) self.port_entry = tk.Entry(self.top, width=80) self...
0
0
0
5,001
0
0
0
28
89
19d5df97189e576d911461abf2fc3cb1d40767a9
225
py
Python
teste-py3.8/src/Mundo1/aula3/desafios/desafio3.py
NicolasMCP/py
37c073de01db100afe325fe08b2b56bc9c8a6020
[ "MIT" ]
null
null
null
teste-py3.8/src/Mundo1/aula3/desafios/desafio3.py
NicolasMCP/py
37c073de01db100afe325fe08b2b56bc9c8a6020
[ "MIT" ]
null
null
null
teste-py3.8/src/Mundo1/aula3/desafios/desafio3.py
NicolasMCP/py
37c073de01db100afe325fe08b2b56bc9c8a6020
[ "MIT" ]
null
null
null
# Ncolas Ramos # desenvolvido para ser igual ao pedido no desafio print('====== DESAFIO 1 ======') primeiro = int(input('Primeiro nmero ')) segundo = int(input('Segundo nmero ')) print(f'A soma {primeiro + segundo}')
22.5
50
0.671111
# Nícolas Ramos # desenvolvido para ser igual ao pedido no desafio print('====== DESAFIO 1 ======') primeiro = int(input('Primeiro número ')) segundo = int(input('Segundo número ')) print(f'A soma é {primeiro + segundo}')
8
0
0
0
0
0
0
0
0
55cec3f6e51cec963774b8ff8b1a9f0a85fd30b6
305
py
Python
stactools_core/stactools/core/__init__.py
alkamin/stactools
d8269bfd9e29eb5bac56d2823e9eefd47a9f8bb1
[ "Apache-2.0" ]
null
null
null
stactools_core/stactools/core/__init__.py
alkamin/stactools
d8269bfd9e29eb5bac56d2823e9eefd47a9f8bb1
[ "Apache-2.0" ]
null
null
null
stactools_core/stactools/core/__init__.py
alkamin/stactools
d8269bfd9e29eb5bac56d2823e9eefd47a9f8bb1
[ "Apache-2.0" ]
null
null
null
# flake8: noqa
38.125
70
0.754098
# flake8: noqa from stactools.core.io import use_fsspec from stactools.core.copy import (move_asset_file_to_item, move_assets, move_all_assets, copy_catalog) from stactools.core.layout import layout_catalog from stactools.core.merge import (merge_items, merge_all_items)
0
0
0
0
0
0
0
201
89
36df91db83f9bb3a2d89c80f3f0bee3134a01e7a
1,115
py
Python
dev.py
thejandroman/puppetboard
0c0a15bdf21c1ab358ae9d4bf7d939facce76c35
[ "Apache-2.0" ]
null
null
null
dev.py
thejandroman/puppetboard
0c0a15bdf21c1ab358ae9d4bf7d939facce76c35
[ "Apache-2.0" ]
null
null
null
dev.py
thejandroman/puppetboard
0c0a15bdf21c1ab358ae9d4bf7d939facce76c35
[ "Apache-2.0" ]
1
2016-02-18T13:53:39.000Z
2016-02-18T13:53:39.000Z
from __future__ import unicode_literals from __future__ import absolute_import import os import subprocess if 'PUPPETBOARD_SETTINGS' not in os.environ: os.environ['PUPPETBOARD_SETTINGS'] = os.path.join( os.getcwd(), 'settings.py' ) from puppetboard.app import app if __name__ == '__main__': # Star...
33.787879
75
0.64574
from __future__ import unicode_literals from __future__ import absolute_import import os import subprocess if 'PUPPETBOARD_SETTINGS' not in os.environ: os.environ['PUPPETBOARD_SETTINGS'] = os.path.join( os.getcwd(), 'settings.py' ) from puppetboard.app import app if __name__ == '__main__': # Star...
0
0
0
0
0
0
0
0
0
c7f1644cfef0079dbe703d7e808cf26fcc4bd1ad
2,326
py
Python
amundsengremlin/amazon-neptune-tools/glue-neptune/glue_neptune/NeptuneConnectionInfo.py
evenlwanvik/RD-dataplatform-datakatalog
3f46978c4b50c032299940a196f61613f935e529
[ "Apache-2.0" ]
223
2018-04-12T10:12:43.000Z
2022-03-29T13:41:37.000Z
amundsengremlin/amazon-neptune-tools/glue-neptune/glue_neptune/NeptuneConnectionInfo.py
evenlwanvik/RD-dataplatform-datakatalog
3f46978c4b50c032299940a196f61613f935e529
[ "Apache-2.0" ]
65
2018-08-29T05:43:30.000Z
2022-03-29T18:20:31.000Z
amundsengremlin/amazon-neptune-tools/glue-neptune/glue_neptune/NeptuneConnectionInfo.py
evenlwanvik/RD-dataplatform-datakatalog
3f46978c4b50c032299940a196f61613f935e529
[ "Apache-2.0" ]
107
2018-07-05T05:01:49.000Z
2022-03-19T00:46:21.000Z
# Copyright 2018 Amazon.com, Inc. or its affiliates. # 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. # A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file ac...
42.290909
106
0.699054
# Copyright 2018 Amazon.com, Inc. or its affiliates. # 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. # A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file ac...
5
0
0
1,627
0
0
0
41
91
7feacb72be4c652365b8a42e8495b6730db7dcef
1,033
py
Python
01Array/016ThreeSumClosest.py
zhaoxinlu/leetcode-algorithms
f5e1c94c99628e7fb04ba158f686a55a8093e933
[ "MIT" ]
null
null
null
01Array/016ThreeSumClosest.py
zhaoxinlu/leetcode-algorithms
f5e1c94c99628e7fb04ba158f686a55a8093e933
[ "MIT" ]
null
null
null
01Array/016ThreeSumClosest.py
zhaoxinlu/leetcode-algorithms
f5e1c94c99628e7fb04ba158f686a55a8093e933
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Editor: Zhao Xinlu School: BUPT Date: 2018-03-31 """ if __name__ == '__main__': nums = [-1, 2, 1, -4] target = 1 print Solution().threeSumClosest(nums, target)
24.595238
56
0.452081
# -*- coding: utf-8 -*- """ Editor: Zhao Xinlu School: BUPT Date: 2018-03-31 算法思想: 三数之和最接近某值 """ class Solution(object): def threeSumClosest(self, nums, target): """ :type nums: List[int] :type target: int :rtype: int """ if nums == None or len(nums) < 3: ...
42
0
0
795
0
0
0
0
22
e1a6128b995a27c5b0ca8136f6d44d1c3c077fbe
377
py
Python
tensorgo/train/config.py
TomorrowIsAnOtherDay/tensorgo
ff5a3c082bd584d6987db2b7a0cdc1e90cb95437
[ "MIT" ]
37
2017-09-07T02:03:02.000Z
2021-01-28T06:34:30.000Z
tensorgo/train/config.py
TomorrowIsAnOtherDay/tensorgo
ff5a3c082bd584d6987db2b7a0cdc1e90cb95437
[ "MIT" ]
null
null
null
tensorgo/train/config.py
TomorrowIsAnOtherDay/tensorgo
ff5a3c082bd584d6987db2b7a0cdc1e90cb95437
[ "MIT" ]
7
2017-10-11T06:58:51.000Z
2018-08-09T03:28:00.000Z
#-*- coding: utf-8 -*- #File: config.py #Author: yobobobo(zhouboacmer@qq.com) __all__ = ['TrainConfig']
23.5625
74
0.721485
#-*- coding: utf-8 -*- #File: config.py #Author: yobobobo(zhouboacmer@qq.com) import tensorflow as tf from tensorgo.utils import logger __all__ = ['TrainConfig'] class TrainConfig(object): def __init__(self, dataset, model=None, n_towers=None, commbatch=50000): self.dataset = dataset self.model = model ...
0
0
0
190
0
0
0
14
68
e6f022434c169c77e1754b8d821f52f0ec12ac20
696
py
Python
content/test/gpu/gpu_tests/screenshot_sync_expectations.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
content/test/gpu/gpu_tests/screenshot_sync_expectations.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
content/test/gpu/gpu_tests/screenshot_sync_expectations.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # See the GpuTestExpectations class for documentation.
40.941176
73
0.755747
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from gpu_tests.gpu_test_expectations import GpuTestExpectations # See the GpuTestExpectations class for documentation. class ScreenshotSyncExpectations(Gpu...
0
0
0
390
0
0
0
42
46
ed064aec0f262cfc5ef95a1c075f88a18111a998
1,413
py
Python
complete-dsa/array/missingNumber.py
nishantml/Data-Structure-And-Algorithms
1f75bdbddb5fa4bccba762515460c73280cde65d
[ "MIT" ]
null
null
null
complete-dsa/array/missingNumber.py
nishantml/Data-Structure-And-Algorithms
1f75bdbddb5fa4bccba762515460c73280cde65d
[ "MIT" ]
null
null
null
complete-dsa/array/missingNumber.py
nishantml/Data-Structure-And-Algorithms
1f75bdbddb5fa4bccba762515460c73280cde65d
[ "MIT" ]
1
2020-08-25T19:05:19.000Z
2020-08-25T19:05:19.000Z
""" Given an array nums containing n distinct numbers in the range [0, n], return the only number in the range that is missing from the array. Follow up: Could you implement a solution using only O(1) extra space complexity and O(n) runtime complexity? Example 1: Input: nums = [3,0,1] Output: 2 Explanation: n = 3...
27.173077
155
0.686483
""" Given an array nums containing n distinct numbers in the range [0, n], return the only number in the range that is missing from the array. Follow up: Could you implement a solution using only O(1) extra space complexity and O(n) runtime complexity? Example 1: Input: nums = [3,0,1] Output: 2 Explanation: n = 3...
0
0
0
141
0
0
0
2
46
db40d52aebd6a5c457eb932fb98499a7f687f7a8
5,593
py
Python
pySDC/projects/node_failure/postproc_hard_faults_detail.py
brownbaerchen/pySDC
31293859d731646aa09cef4345669eac65501550
[ "BSD-2-Clause" ]
20
2015-03-21T09:02:55.000Z
2022-02-26T20:22:21.000Z
pySDC/projects/node_failure/postproc_hard_faults_detail.py
brownbaerchen/pySDC
31293859d731646aa09cef4345669eac65501550
[ "BSD-2-Clause" ]
61
2015-03-02T09:35:55.000Z
2022-03-17T12:42:48.000Z
pySDC/projects/node_failure/postproc_hard_faults_detail.py
brownbaerchen/pySDC
31293859d731646aa09cef4345669eac65501550
[ "BSD-2-Clause" ]
19
2015-02-20T11:52:33.000Z
2022-02-02T10:46:27.000Z
import matplotlib matplotlib.use('Agg') import numpy as np import matplotlib.pyplot as plt from pylab import rcParams # import os def create_plots(setup, cwd=''): """ Function to create detailed heatmaps and the iteration plot for a single fault Args: setup (str): name of the setup (heat or adve...
33.89697
118
0.594314
import matplotlib matplotlib.use('Agg') import numpy as np import matplotlib.pyplot as plt from pylab import rcParams # import os def create_plots(setup, cwd=''): """ Function to create detailed heatmaps and the iteration plot for a single fault Args: setup (str): name of the setup (heat or adve...
0
0
0
0
0
0
0
0
0
c4f973f23f21076f2cb0c720bca14b6dee128576
3,396
py
Python
google/appengine/tools/devappserver2/file_watcher.py
airamrguez/appengine-1.8.0-golang-1.4.3-os-x-64bit
c2034c8ed4d218e1f85831df9bc986285ebf8661
[ "Apache-2.0" ]
null
null
null
google/appengine/tools/devappserver2/file_watcher.py
airamrguez/appengine-1.8.0-golang-1.4.3-os-x-64bit
c2034c8ed4d218e1f85831df9bc986285ebf8661
[ "Apache-2.0" ]
null
null
null
google/appengine/tools/devappserver2/file_watcher.py
airamrguez/appengine-1.8.0-golang-1.4.3-os-x-64bit
c2034c8ed4d218e1f85831df9bc986285ebf8661
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2007 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 o...
39.488372
80
0.763251
#!/usr/bin/env python # # Copyright 2007 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 o...
0
0
0
749
0
0
0
0
23
222dc448210bdc5e5a87aebe5dc769299c9b20a9
3,584
py
Python
bin/sa_haveibeenpwned/aob_py3/solnlib/compression.py
hRun/SA-haveibeenpwned
2a8ae3dedc405dc3c8dac1cb6a705a70f574afdb
[ "Apache-2.0" ]
2
2020-08-17T07:52:48.000Z
2020-12-18T16:39:32.000Z
bin/sa_haveibeenpwned/aob_py2/solnlib/compression.py
hRun/SA-haveibeenpwned
2a8ae3dedc405dc3c8dac1cb6a705a70f574afdb
[ "Apache-2.0" ]
5
2020-12-15T23:40:14.000Z
2022-02-23T15:43:18.000Z
bin/sa_haveibeenpwned/aob_py3/solnlib/compression.py
hRun/SA-haveibeenpwned
2a8ae3dedc405dc3c8dac1cb6a705a70f574afdb
[ "Apache-2.0" ]
4
2019-05-16T09:57:33.000Z
2021-07-14T12:31:21.000Z
# Copyright 2016 Splunk, 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 agreed to in ...
28.903226
79
0.597098
# Copyright 2016 Splunk, 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 agreed to in ...
0
2,484
0
253
0
0
0
-16
121
f79d5e931c7bde936aab163113b8bc6ddb1d4471
6,636
py
Python
pipeline/extras/DataModule.py
sanjay-rendu/MLPolicyLab_Project
abc9637378cbebf31a9f862d212e7a370644ba85
[ "MIT" ]
2
2021-01-10T06:44:35.000Z
2021-01-10T06:50:04.000Z
pipeline/extras/DataModule.py
sanjay-rendu/MLPolicyLab_Project
abc9637378cbebf31a9f862d212e7a370644ba85
[ "MIT" ]
null
null
null
pipeline/extras/DataModule.py
sanjay-rendu/MLPolicyLab_Project
abc9637378cbebf31a9f862d212e7a370644ba85
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[7]: import csv from sqlalchemy import create_engine # In[8]: engine = create_engine('postgres://aruns2@mlpolicylab.db.dssg.io:5432/bills3_database') # In[5]: #test command sql = "SELECT status_id FROM catalogs.bill_status" result_set = engine.execute(sql) for rec i...
29.625
623
0.727697
#!/usr/bin/env python # coding: utf-8 # In[7]: import csv import matplotlib.pyplot as plt import pandas as pd from sqlalchemy import create_engine # In[8]: engine = create_engine('postgres://aruns2@mlpolicylab.db.dssg.io:5432/bills3_database') # In[5]: #test command sql = "SELECT status_id FROM catalogs.bill...
0
0
0
0
0
1,184
0
8
67
7cde766272374fd83b672bd01fbd731a9aa5cde6
1,082
py
Python
2017/day09.py
andypymont/adventofcode
912aa48fc5b31ec9202fb9654380991fc62afcd1
[ "MIT" ]
null
null
null
2017/day09.py
andypymont/adventofcode
912aa48fc5b31ec9202fb9654380991fc62afcd1
[ "MIT" ]
null
null
null
2017/day09.py
andypymont/adventofcode
912aa48fc5b31ec9202fb9654380991fc62afcd1
[ "MIT" ]
null
null
null
""" 2017 Day 9 https://adventofcode.com/2017/day/9 """ import aocd # type: ignore def main() -> None: """ Calculate and output the solutions based on the real puzzle input. """ data = aocd.get_data(year=2017, day=9) part1, part2 = parse_stream(data) print(f"Part 1: {part1}") print(f"Par...
20.415094
70
0.494455
""" 2017 Day 9 https://adventofcode.com/2017/day/9 """ from typing import Tuple import aocd # type: ignore def parse_stream(stream: str) -> Tuple[int, int]: groups = [] garbage = 0 in_garbage = False cancel = False depth = 0 for char in stream: if in_garbage and cancel: ...
0
0
0
0
0
658
0
3
46
d5b2af4147425c0999a90f90d1c1c1c4bab99faf
662
py
Python
backend/users/tests.py
otraczyk/cryptstarter
6dad77408b15285644d9f69de0cb853be0acf151
[ "MIT" ]
null
null
null
backend/users/tests.py
otraczyk/cryptstarter
6dad77408b15285644d9f69de0cb853be0acf151
[ "MIT" ]
null
null
null
backend/users/tests.py
otraczyk/cryptstarter
6dad77408b15285644d9f69de0cb853be0acf151
[ "MIT" ]
null
null
null
# Create your tests here.
36.777778
245
0.746224
from django.test import TestCase from django.test import Client import json # Create your tests here. class UserTestCase(TestCase): def test_new_user_auth(self): request = { "clientId": "1194316053918870", "code": "CAACEdEose0cBAGhAZBEabCIQDkZAZCbyDA4sv5Wqbw7Qjxuok7IUZCI8MI5XbnZA4...
0
0
0
537
0
0
0
10
88
f109026282d240f70c18e87bb698531794822319
520
py
Python
sys/admin/py/imap_email.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
sys/admin/py/imap_email.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
sys/admin/py/imap_email.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # -*-coding:utf-8 -*- # @Time : 2019/06/18 17:04:28 # @Author : che # @Email : ch1huizong@gmail.com import imaplib username = "" password = "" mail_server = "imap.qq.com" i = imaplib.IMAP4_SSL(mail_server) print(i.login(username, password)) print(i.select("INBOX")) for msg_id in i.sea...
21.666667
61
0.625
#! /usr/bin/env python3 # -*-coding:utf-8 -*- # @Time : 2019/06/18 17:04:28 # @Author : che # @Email : ch1huizong@gmail.com import imaplib username = "" password = "" mail_server = "imap.qq.com" i = imaplib.IMAP4_SSL(mail_server) print(i.login(username, password)) print(i.select("INBOX")) for msg_id in i.sea...
0
0
0
0
0
0
0
0
0
99dcb7df842349a2b1ced33971b5d9fdc03f26b1
1,279
py
Python
ExerciciosPYTHON/NovPython/056.py
Samuel-Melo890/Python-Desafios
2abc7734d6a6c1f5ab67421f792d6889d93bac94
[ "MIT" ]
null
null
null
ExerciciosPYTHON/NovPython/056.py
Samuel-Melo890/Python-Desafios
2abc7734d6a6c1f5ab67421f792d6889d93bac94
[ "MIT" ]
2
2022-03-18T16:06:07.000Z
2022-03-18T16:55:29.000Z
ExerciciosPYTHON/NovPython/056.py
Samuel-Melo890/Python-Desafios
2abc7734d6a6c1f5ab67421f792d6889d93bac94
[ "MIT" ]
null
null
null
from os import system system('cls') menu('List Comprehension Nomes') mulheres = ['Jeanne', 'Lisa', 'Gina', 'Aurora', 'Monica', 'Grislia', 'Natlia', 'Julia', 'Rosilene', 'Tabata'] homens = ['Samuel', 'Gustavo', 'Bob', 'Andr', 'David', 'Idelfonso', 'Joo', 'Julius', 'Pedro', 'Jos'] titulo('Homens 4 Letras') homem_4l = ...
29.068182
111
0.663018
from module.interface import * from os import system system('cls') menu('List Comprehension Nomes') mulheres = ['Jeanne', 'Lisa', 'Gina', 'Aurora', 'Monica', 'Grisália', 'Natália', 'Julia', 'Rosilene', 'Tabata'] homens = ['Samuel', 'Gustavo', 'Bob', 'André', 'David', 'Idelfonso', 'João', 'Julius', 'Pedro', 'José'] t...
10
0
0
0
0
0
0
9
22
7b34ef40ce34d42c9c4d5588ec939778b27db8ab
157
py
Python
settings/db.py
LoopSun/linux-client
d39cbb8f8e8b4f26322f77605ec6ec667da483e1
[ "MIT" ]
null
null
null
settings/db.py
LoopSun/linux-client
d39cbb8f8e8b4f26322f77605ec6ec667da483e1
[ "MIT" ]
null
null
null
settings/db.py
LoopSun/linux-client
d39cbb8f8e8b4f26322f77605ec6ec667da483e1
[ "MIT" ]
null
null
null
#encoding=utf8 import os # define redis connection, default is localhost and port is 6379 REDIS_URL = os.environ.get("REDIS_URL", 'redis://localhost:6379')
26.166667
65
0.764331
#encoding=utf8 import os # define redis connection, default is localhost and port is 6379 REDIS_URL = os.environ.get("REDIS_URL", 'redis://localhost:6379')
0
0
0
0
0
0
0
0
0
8da1f78e79bff465e3105c464d17ac0b81fc2a38
1,380
py
Python
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/projecteuler/euler014.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
5
2021-06-02T23:44:25.000Z
2021-12-27T16:21:57.000Z
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/projecteuler/euler014.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
22
2021-05-31T01:33:25.000Z
2021-10-18T18:32:39.000Z
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/projecteuler/euler014.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
3
2021-06-19T03:37:47.000Z
2021-08-31T00:49:51.000Z
#!/usr/bin/env python """ Solution to Project Euler Problem 14 http://projecteuler.net/ by Apalala <apalala@gmail.com> (cc) Attribution-ShareAlike http://creativecommons.org/licenses/by-sa/3.0/ The following iterative sequence is defined for the set of positive integers: n n/2 (n is even) n 3n + 1 (n is odd) Usin...
20.294118
78
0.643478
#!/usr/bin/env python """ Solution to Project Euler Problem 14 http://projecteuler.net/ by Apalala <apalala@gmail.com> (cc) Attribution-ShareAlike http://creativecommons.org/licenses/by-sa/3.0/ The following iterative sequence is defined for the set of positive integers: n → n/2 (n is even) n → 3n + 1 (n is odd) Us...
33
0
0
0
0
402
0
0
115
ca611917bdabb6d4347c7d499d7e31d00b07a1ca
6,015
py
Python
nes-keypress.py
rmill/nes-keypress
5767df75ae6c397d8684b04ebceeb7eea40bb5e6
[ "Unlicense" ]
null
null
null
nes-keypress.py
rmill/nes-keypress
5767df75ae6c397d8684b04ebceeb7eea40bb5e6
[ "Unlicense" ]
null
null
null
nes-keypress.py
rmill/nes-keypress
5767df75ae6c397d8684b04ebceeb7eea40bb5e6
[ "Unlicense" ]
null
null
null
# # nes-keypress.py # # Usage: python nes-keypress.py [--verbose] -if INPUT_FILE # # Input File Format: # { # "latch_pin": 10, # "clock_pin": 3, # "data_pin": 7, # "key_mapping": { # "a": "KEY_Z", # "b": "KEY_X", # "select": "KEY_Q", # "start": "KEY_E", # "up": "KEY_W", # "down": "KEY_S", # "le...
24.254032
136
0.630424
# # nes-keypress.py # # Usage: python nes-keypress.py [--verbose] -if INPUT_FILE # # Input File Format: # { # "latch_pin": 10, # "clock_pin": 3, # "data_pin": 7, # "key_mapping": { # "a": "KEY_Z", # "b": "KEY_X", # "select": "KEY_Q", # "start": "KEY_E", # "up": "KEY_W", # "down": "KEY_S", # "le...
0
0
0
0
0
4,088
0
-65
315
33798576a190ad4e295e6abf01b974357a6e92e9
1,240
py
Python
simpleshare/__init__.py
ssebs/simpleshare
20791f5f1411e08bbc0c99de3783fd8dd3b7cdbd
[ "MIT" ]
1
2021-04-29T17:41:31.000Z
2021-04-29T17:41:31.000Z
simpleshare/__init__.py
ssebs/simpleshare
20791f5f1411e08bbc0c99de3783fd8dd3b7cdbd
[ "MIT" ]
null
null
null
simpleshare/__init__.py
ssebs/simpleshare
20791f5f1411e08bbc0c99de3783fd8dd3b7cdbd
[ "MIT" ]
null
null
null
# simpleshare # center_window # main
25.833333
77
0.575
# simpleshare import sys import os import tkinter as tk from simpleshare.gui import Simpleshare from simpleshare.cli import cli_main from simpleshare.util import MCASTGROUP, PORT def center_window(window, width, height): screen_width = window.winfo_screenwidth() screen_height = window.winfo_screenheight() ...
0
0
0
0
0
989
0
33
179
619fd391786df8e7ab1e9ddce1feba6285a9c98a
1,992
py
Python
setup.py
Deutsche-Digitale-Bibliothek/ddb-mapshowcase
cc8241602286a88698034e6360d0037bea27edf1
[ "Apache-2.0" ]
null
null
null
setup.py
Deutsche-Digitale-Bibliothek/ddb-mapshowcase
cc8241602286a88698034e6360d0037bea27edf1
[ "Apache-2.0" ]
null
null
null
setup.py
Deutsche-Digitale-Bibliothek/ddb-mapshowcase
cc8241602286a88698034e6360d0037bea27edf1
[ "Apache-2.0" ]
2
2015-01-14T14:02:54.000Z
2015-01-20T10:34:56.000Z
# Copyright 2014 in medias res Gesellschaft fuer Informationstechnologie mbH # The ddb project licenses this file to you 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...
31.619048
77
0.653112
# Copyright 2014 in medias res Gesellschaft fuer Informationstechnologie mbH # The ddb project licenses this file to you 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...
0
0
0
0
0
0
0
0
0
2aa895e91991141b27eea90a5c61a7830da71c6c
1,459
py
Python
socialregistration/contrib/facebook/models.py
nypublicradio/legacy-publisher-django-socialregistration
181f75d152f553f77fa899dac895c4276108204f
[ "MIT" ]
63
2015-01-27T16:52:03.000Z
2021-08-29T04:23:51.000Z
socialregistration/contrib/facebook/models.py
nypublicradio/legacy-publisher-django-socialregistration
181f75d152f553f77fa899dac895c4276108204f
[ "MIT" ]
3
2016-05-26T07:46:53.000Z
2022-02-16T15:25:16.000Z
socialregistration/contrib/facebook/models.py
nypublicradio/legacy-publisher-django-socialregistration
181f75d152f553f77fa899dac895c4276108204f
[ "MIT" ]
23
2015-02-02T13:33:46.000Z
2020-10-25T20:02:53.000Z
from django.conf import settings from socialregistration.signals import connect, login AUTH_USER_MODEL = getattr(settings, 'AUTH_USER_MODEL', 'auth.User') connect.connect(save_facebook_token, sender=FacebookProfile, dispatch_uid='socialregistration.facebook.connect') login.connect(save_facebook_token, sender = F...
35.585366
80
0.753941
from django.conf import settings from django.contrib.auth import authenticate from django.contrib.sites.models import Site from django.db import models from socialregistration.signals import connect, login AUTH_USER_MODEL = getattr(settings, 'AUTH_USER_MODEL', 'auth.User') class FacebookProfile(models.Model): use...
0
0
0
597
0
282
0
53
135
bb871fcec6e01d56e21c56ab45c5bfefe5b135ab
664
py
Python
datetime_interval/__init__.py
zeckalpha/datetime-interval
5c329016cefdbda65e71b2ddc4bc341720662fc2
[ "MIT" ]
1
2016-11-18T09:59:13.000Z
2016-11-18T09:59:13.000Z
datetime_interval/__init__.py
kmarekspartz/datetime-interval
5c329016cefdbda65e71b2ddc4bc341720662fc2
[ "MIT" ]
null
null
null
datetime_interval/__init__.py
kmarekspartz/datetime-interval
5c329016cefdbda65e71b2ddc4bc341720662fc2
[ "MIT" ]
2
2015-10-21T13:46:47.000Z
2015-11-18T18:49:26.000Z
""" The builtin `datetime` module provides classes for points in time (`date`, and `datetime`) as well as durations (`timedelta`), but it does not account for time durations at a specific point. This module provides `Interval`, which contains a start and end `date` or `datetime`, and a duration `timedelta`. This is use...
51.076923
78
0.787651
""" The builtin `datetime` module provides classes for points in time (`date`, and `datetime`) as well as durations (`timedelta`), but it does not account for time durations at a specific point. This module provides `Interval`, which contains a start and end `date` or `datetime`, and a duration `timedelta`. This is use...
0
0
0
0
0
0
0
78
45
862374035578875d4296621a04fae3e4839a3f82
536
py
Python
docs/diagrams-as-a-code/apiks-architecture-diagram.py
yasenn/apiks
a5c780d9747a57ab3991b869fcb8cee74b658d99
[ "MIT" ]
null
null
null
docs/diagrams-as-a-code/apiks-architecture-diagram.py
yasenn/apiks
a5c780d9747a57ab3991b869fcb8cee74b658d99
[ "MIT" ]
null
null
null
docs/diagrams-as-a-code/apiks-architecture-diagram.py
yasenn/apiks
a5c780d9747a57ab3991b869fcb8cee74b658d99
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from diagrams import Cluster, Diagram from diagrams.aws.database import RDS from diagrams.aws.general import User from diagrams.aws.network import APIGateway from diagrams.k8s.compute import Pod with Diagram("apiks", show=False): topic = User("client") with Cluster("AWS"): with...
23.304348
43
0.632463
#!/usr/bin/env python3 from diagrams import Cluster, Diagram from diagrams.aws.database import RDS from diagrams.aws.general import User from diagrams.aws.network import APIGateway from diagrams.k8s.compute import Pod with Diagram("apiks", show=False): topic = User("client") with Cluster("AWS"): with...
0
0
0
0
0
0
0
0
0
da4b19cef4bf4039baedb06e9a0340c520e29be2
704
py
Python
user_handle/urls.py
vincentfung13/TwitterRepManagement
f04e3460f234cf95d288e47a24554cc220b41b12
[ "MIT" ]
1
2016-01-16T15:32:29.000Z
2016-01-16T15:32:29.000Z
user_handle/urls.py
vincentfung13/TwitterRepManagement
f04e3460f234cf95d288e47a24554cc220b41b12
[ "MIT" ]
7
2015-11-16T00:32:29.000Z
2016-04-05T03:03:27.000Z
user_handle/urls.py
vincentfung13/TwitterRepManagement
f04e3460f234cf95d288e47a24554cc220b41b12
[ "MIT" ]
null
null
null
from user_handle import views from django.conf.urls import url from django.contrib.auth.decorators import login_required urlpatterns = [ url(r'^register/$', views.Register.as_view(), name='Register'), url(r'^login/$', views.Login.as_view(), name='Login'), url(r'^logout/$', views.Logout.as_view(), name='Log...
44
92
0.678977
from user_handle import views from django.conf.urls import url from django.contrib.auth.decorators import login_required urlpatterns = [ url(r'^register/$', views.Register.as_view(), name='Register'), url(r'^login/$', views.Login.as_view(), name='Login'), url(r'^logout/$', views.Logout.as_view(), name='Log...
0
0
0
0
0
0
0
0
0
4e6ca07ec1205ace211b62f15f82fbe3f8d017e8
2,939
py
Python
scripts/katana_version/commands.py
chakpongchung/katana
3278a39b504e0aeaec30d06cf629ab97dfeb3f22
[ "BSD-3-Clause" ]
64
2020-05-22T23:32:00.000Z
2022-03-18T10:42:45.000Z
scripts/katana_version/commands.py
chakpongchung/katana
3278a39b504e0aeaec30d06cf629ab97dfeb3f22
[ "BSD-3-Clause" ]
705
2020-02-17T20:50:38.000Z
2022-03-31T16:28:09.000Z
scripts/katana_version/commands.py
chakpongchung/katana
3278a39b504e0aeaec30d06cf629ab97dfeb3f22
[ "BSD-3-Clause" ]
93
2020-03-18T17:34:07.000Z
2022-03-29T02:11:09.000Z
""" Simple functions for calling commands as subprocesses. """ import logging __all__ = ["capture_command", "predicate_command", "action_command", "CommandError"] logger = logging.getLogger(__name__)
40.819444
118
0.63559
""" Simple functions for calling commands as subprocesses. """ import logging import signal import subprocess __all__ = ["capture_command", "predicate_command", "action_command", "CommandError"] logger = logging.getLogger(__name__) class CommandError(subprocess.CalledProcessError): def __init__(self, *args): ...
0
0
0
979
0
1,630
0
-12
136
f1f7d13f90d334d115cd89e723289cac356ba66e
99
py
Python
D_Network_analysis/solutions/ex1_7.py
oercompbiomed/CBM101
20010dcb99fbf218c4789eb5918dcff8ceb94898
[ "MIT" ]
7
2019-07-03T07:41:55.000Z
2022-02-06T20:25:37.000Z
D_Network_analysis/solutions/ex1_7.py
oercompbiomed/CBM101
20010dcb99fbf218c4789eb5918dcff8ceb94898
[ "MIT" ]
9
2019-03-14T15:15:09.000Z
2019-08-01T14:18:21.000Z
D_Network_analysis/solutions/ex1_7.py
oercompbiomed/CBM101
20010dcb99fbf218c4789eb5918dcff8ceb94898
[ "MIT" ]
11
2019-03-12T10:43:11.000Z
2021-10-05T12:15:00.000Z
#many ways to do this, this is only one example d = dict(G.degree) 1 in d.values() # answer: none
16.5
47
0.686869
#many ways to do this, this is only one example d = dict(G.degree) 1 in d.values() # answer: none
0
0
0
0
0
0
0
0
0
64e8610a55bdec1c7f49d2fe4e2337fb4793e144
20,074
py
Python
massql/msql_engine_filters.py
sarvarkaxxorov/MassQueryLanguage
b7618ba7fb5343c252c5691dc574f4193fb8e83e
[ "MIT" ]
null
null
null
massql/msql_engine_filters.py
sarvarkaxxorov/MassQueryLanguage
b7618ba7fb5343c252c5691dc574f4193fb8e83e
[ "MIT" ]
null
null
null
massql/msql_engine_filters.py
sarvarkaxxorov/MassQueryLanguage
b7618ba7fb5343c252c5691dc574f4193fb8e83e
[ "MIT" ]
null
null
null
import pandas as pd from py_expression_eval import Parser math_parser = Parser() def _get_minintensity(qualifier): """ Returns absolute min and relative min Args: qualifier ([type]): [description] Returns: [type]: [description] """ min_intensity = 0 min_percent_intensity...
36.833028
155
0.627578
import pandas as pd from py_expression_eval import Parser math_parser = Parser() def _get_mz_tolerance(qualifiers, mz): if qualifiers is None: return 0.1 if "qualifierppmtolerance" in qualifiers: ppm = qualifiers["qualifierppmtolerance"]["value"] mz_tol = abs(ppm * mz / 1000000) ...
0
0
0
0
0
3,146
0
0
115
67738d9d6a2528d3ec4e392d84babd46a220e7d9
461
py
Python
homepage/views.py
ma5243/HoosExercising
fb9e5101cc02c4cae9c70dfc7b013c1c6e45d7c2
[ "MIT" ]
null
null
null
homepage/views.py
ma5243/HoosExercising
fb9e5101cc02c4cae9c70dfc7b013c1c6e45d7c2
[ "MIT" ]
null
null
null
homepage/views.py
ma5243/HoosExercising
fb9e5101cc02c4cae9c70dfc7b013c1c6e45d7c2
[ "MIT" ]
null
null
null
# Create your views here.
28.8125
58
0.78308
from django.shortcuts import render from django.template import loader from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth.decorators import login_required from django.urls import reverse from datetime import datetime # Create your views here. @login_required def index(request): te...
0
162
0
0
0
0
0
118
155
c5a9a2b2693806444099ffe707f8b83b82226804
3,961
py
Python
caproto/tests/test_utils.py
tacaswell/caproto
772e22ab20a444d0b64901c41f9fc21d73f0bdb8
[ "BSD-3-Clause" ]
null
null
null
caproto/tests/test_utils.py
tacaswell/caproto
772e22ab20a444d0b64901c41f9fc21d73f0bdb8
[ "BSD-3-Clause" ]
null
null
null
caproto/tests/test_utils.py
tacaswell/caproto
772e22ab20a444d0b64901c41f9fc21d73f0bdb8
[ "BSD-3-Clause" ]
null
null
null
import caproto as ca from caproto._headers import MessageHeader _incr_sends = [ [(b'abc', b'def', b'ghi'), 0, (b'abc', b'def', b'ghi') ], [(b'abc', b'def', b'ghi'), 1, (b'bc', b'def', b'ghi') ], [(b'abc', b'def', b'ghi'), 3, (b'def', b'ghi') ], [(Messa...
27.130137
74
0.593537
import os import pytest import caproto as ca from caproto._headers import MessageHeader def test_broadcast_auto_address_list(): pytest.importorskip('netifaces') env = os.environ.copy() try: os.environ['EPICS_CA_ADDR_LIST'] = '' os.environ['EPICS_CA_AUTO_ADDR_LIST'] = 'YES' expected...
0
1,632
0
0
0
557
0
-20
182
3800124b530c500ae3ab4b293ed09f97e028318a
498
py
Python
Script/main.py
eitan-rothman/CitiBike-Use
4166b1e34d72e2dfebe95715b5bfaf9eda10ce0b
[ "MIT" ]
null
null
null
Script/main.py
eitan-rothman/CitiBike-Use
4166b1e34d72e2dfebe95715b5bfaf9eda10ce0b
[ "MIT" ]
null
null
null
Script/main.py
eitan-rothman/CitiBike-Use
4166b1e34d72e2dfebe95715b5bfaf9eda10ce0b
[ "MIT" ]
null
null
null
main()
24.9
103
0.738956
import json import urllib.request from bs4 import BeautifulSoup def getSystem(): system_url = urllib.request.urlopen("https://gbfs.citibikenyc.com/gbfs/en/system_information.json") system_data= json.loads(system_url.read().decode()) print(system_data) def getStatus(): status_url = urllib.request.urlop...
0
0
0
0
0
334
0
-2
158
ebb8012daf7a74a8b06263af5e3cdad25d79cb97
3,446
py
Python
run_split.py
tango4j/Continual-Learning-Benchmark
89eb1396c294feebdba818d67707c923667391ad
[ "MIT" ]
null
null
null
run_split.py
tango4j/Continual-Learning-Benchmark
89eb1396c294feebdba818d67707c923667391ad
[ "MIT" ]
null
null
null
run_split.py
tango4j/Continual-Learning-Benchmark
89eb1396c294feebdba818d67707c923667391ad
[ "MIT" ]
null
null
null
from runPy_iBatchLearn import main import sys gpuid = int(sys.argv[1]) # gpuid=3 ### Permuted-MNIST incremental class offline_training = '' boost_scale = 0 ############## DATASET SELECT ############## dataset='EMNIST' ### CNN mlp_mha=10 batch_size=600 print_freq=100 ### pretrained # mlp_mha=11 # batch_size=256 #...
35.525773
887
0.762333
from runPy_iBatchLearn import main import sys gpuid = int(sys.argv[1]) # gpuid=3 ### Permuted-MNIST incremental class offline_training = '' boost_scale = 0 ############## DATASET SELECT ############## dataset='EMNIST' ### CNN mlp_mha=10 batch_size=600 print_freq=100 ### pretrained # mlp_mha=11 # batch_size=256 #...
0
0
0
0
0
0
0
0
0
c28d945f42572e7f64d40bbcd5794f15ee7dc3ad
37,811
py
Python
standard_model.py
jaideepmurkute/ECG-Signal-Segmentation-With-Hidden-Markov-Models
7fa42736ac83866ee3b2618e42364f6e11a06609
[ "MIT" ]
7
2019-01-30T02:36:20.000Z
2022-03-24T09:32:42.000Z
standard_model.py
juberrahman/ECG-Signal-Segmentation-With-Hidden-Markov-Models
d4d7f85362c4da717962ca94fd0087fd8ce2dfe5
[ "MIT" ]
null
null
null
standard_model.py
juberrahman/ECG-Signal-Segmentation-With-Hidden-Markov-Models
d4d7f85362c4da717962ca94fd0087fd8ce2dfe5
[ "MIT" ]
5
2019-11-20T19:14:08.000Z
2021-02-04T16:00:23.000Z
''' Code uses standard trained model for prediction on transformed wavelet. Uses MAE to calculate accuracy. ''' #cluster_accuracies = get_clusterwise_accuracy() if __name__ == "__main__": filepath = "ECGDATA\\Truncated\\Normative\\" ...
42.246927
139
0.602814
''' Code uses standard trained model for prediction on transformed wavelet. Uses MAE to calculate accuracy. ''' from os import listdir from os.path import isfile, join import matplotlib.pyplot as plt import numpy as np from copy import copy import seaborn as sns from pomegranate import * import pywt from...
0
0
0
0
0
36,375
0
63
1,030
3e9252c2d05f3b0fe94ce4c244f04db0094cb42e
272
py
Python
config/__init__.py
dqdream/baby
b52e26eb13c19b30c0c521ec3133d83106b4a947
[ "MIT" ]
108
2020-06-20T10:41:55.000Z
2022-03-29T09:03:57.000Z
config/__init__.py
theoly/baby-names
677d0908b6fecd38eac22953a9fcf6407288d23b
[ "MIT" ]
16
2020-07-11T11:55:53.000Z
2022-02-05T15:33:02.000Z
config/__init__.py
theoly/baby-names
677d0908b6fecd38eac22953a9fcf6407288d23b
[ "MIT" ]
39
2020-06-20T11:33:10.000Z
2022-02-15T08:11:04.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Name : __init__.py.py Created on : 2017/06/19 13:20 Author : Liuker <liu@liuker.xyz> Version : 1.0.0 Copyright : Copyright (C) 2016 - 2017, Liuker's Blog, https://liuker.org. Description : . """
20.923077
76
0.584559
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Name : __init__.py.py Created on : 2017/06/19 13:20 Author : Liuker <liu@liuker.xyz> Version : 1.0.0 Copyright : Copyright (C) 2016 - 2017, Liuker's Blog, https://liuker.org. Description : . """
0
0
0
0
0
0
0
0
0
f20cb6abb381d22089d029c00951b06340dd6733
4,454
py
Python
tools/clang/scripts/upload_revision.py
gengleilei/wee8
a7bff18685ddfc7f16de825c9d3a12432d4138d5
[ "BSD-3-Clause" ]
null
null
null
tools/clang/scripts/upload_revision.py
gengleilei/wee8
a7bff18685ddfc7f16de825c9d3a12432d4138d5
[ "BSD-3-Clause" ]
null
null
null
tools/clang/scripts/upload_revision.py
gengleilei/wee8
a7bff18685ddfc7f16de825c9d3a12432d4138d5
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """This script takes a Clang git revision as an argument, it then creates a feature branch, puts this revision into update.py, uplo...
36.809917
76
0.709475
#!/usr/bin/env python # Copyright (c) 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """This script takes a Clang git revision as an argument, it then creates a feature branch, puts this revision into update.py, uplo...
0
0
0
0
0
2,433
0
-1
225
a0023e6baa5867644821b7b412d0fff667ebca17
2,150
py
Python
setup.py
EMBL-Hentze-group/htseq-clip
3d3781918f8d23430b35c9be7faf4aa5f7541934
[ "MIT" ]
null
null
null
setup.py
EMBL-Hentze-group/htseq-clip
3d3781918f8d23430b35c9be7faf4aa5f7541934
[ "MIT" ]
6
2020-04-16T11:58:14.000Z
2022-03-30T11:46:23.000Z
setup.py
EMBL-Hentze-group/htseq-clip
3d3781918f8d23430b35c9be7faf4aa5f7541934
[ "MIT" ]
null
null
null
import sys import os from codecs import open from setuptools import setup if sys.version_info < (3, 5): print ("At least Python 3.5 is required. Please install Python 3.5.") exit(1) try: from setuptools import setup except ImportError as e: sys.stderr.write("Could not import setuptools. Ple...
34.126984
180
0.667907
import sys import os from codecs import open from setuptools import setup, find_packages if sys.version_info < (3, 5): print ("At least Python 3.5 is required. Please install Python 3.5.") exit(1) try: from setuptools import setup except ImportError as e: sys.stderr.write("Could not import ...
0
0
0
0
0
0
0
6
24
3ee8dc1e1a8b178e8b2e63d0d751a03dac54a385
457
py
Python
project/transfer/read.py
cybertraining-dsc/fa19-516-160
e71bc0c328456c5d13e124075c1555f13f228b55
[ "Apache-2.0" ]
null
null
null
project/transfer/read.py
cybertraining-dsc/fa19-516-160
e71bc0c328456c5d13e124075c1555f13f228b55
[ "Apache-2.0" ]
1
2019-09-25T00:56:07.000Z
2019-09-25T00:56:07.000Z
project/transfer/read.py
cybertraining-dsc/fa19-516-160
e71bc0c328456c5d13e124075c1555f13f228b55
[ "Apache-2.0" ]
null
null
null
from cloudmesh.configuration.Config import Config config = Config() profile = config["cloudmesh.profile"] print(profile) ## """ flow = flow_from_clientsecrets(filename, scope, message=message, #Change this to use jason as oblect cache=cache, redirect_uri=redirect_uri, ...
35.153846
113
0.636761
from cloudmesh.configuration.Config import Config config = Config() profile = config["cloudmesh.profile"] print(profile) ## """ flow = flow_from_clientsecrets(filename, scope, message=message, #Change this to use jason as oblect cache=cache, redirect_uri=redirect_uri, ...
0
0
0
0
0
0
0
0
0
787889bc9873c993c367c829b574a0d91632a2f7
20,843
py
Python
mcpython/engine/ResourceLoader.py
mcpython4-coding/core
8698efe93f5a25421bfa508d769d8fdc8e9ce24c
[ "CC0-1.0", "MIT" ]
2
2019-11-02T05:26:11.000Z
2019-11-03T08:52:18.000Z
mcpython/engine/ResourceLoader.py
mcpython4-coding/core
8698efe93f5a25421bfa508d769d8fdc8e9ce24c
[ "CC0-1.0", "MIT" ]
25
2019-11-02T05:24:29.000Z
2022-02-09T14:09:08.000Z
mcpython/engine/ResourceLoader.py
mcpython4-coding/core
8698efe93f5a25421bfa508d769d8fdc8e9ce24c
[ "CC0-1.0", "MIT" ]
5
2019-11-09T05:36:06.000Z
2021-11-28T13:07:08.000Z
""" mcpython - a minecraft clone written in python licenced under the MIT-licence (https://github.com/mcpython4-coding/core) Contributors: uuk, xkcdjerry (inactive) Based on the game of fogleman (https://github.com/fogleman/Minecraft), licenced under the MIT-licence Original game "minecraft" by Mojang Studios (www.m...
31.772866
117
0.591326
""" mcpython - a minecraft clone written in python licenced under the MIT-licence (https://github.com/mcpython4-coding/core) Contributors: uuk, xkcdjerry (inactive) Based on the game of fogleman (https://github.com/fogleman/Minecraft), licenced under the MIT-licence Original game "minecraft" by Mojang Studios (www.m...
0
502
8,973
5,921
0
0
0
0
307
4cddf9aa06d8a11ea8cf77b4985332849e844ae6
1,051
py
Python
0Leetcode Solutions/0020 Valid Parentheses.py
DonghaoQiao/Python
f92050afa29501c2bb7e8b6e80029767c014364f
[ "MIT" ]
1
2018-03-15T16:03:29.000Z
2018-03-15T16:03:29.000Z
0Leetcode Solutions/0020 Valid Parentheses.py
DonghaoQiao/Python
f92050afa29501c2bb7e8b6e80029767c014364f
[ "MIT" ]
null
null
null
0Leetcode Solutions/0020 Valid Parentheses.py
DonghaoQiao/Python
f92050afa29501c2bb7e8b6e80029767c014364f
[ "MIT" ]
null
null
null
''' https://leetcode.com/problems/valid-parentheses/ 20. Valid Parentheses Easy Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: Open brackets must be closed by the same type of brackets. Open brackets must b...
20.211538
119
0.545195
''' https://leetcode.com/problems/valid-parentheses/ 20. Valid Parentheses Easy Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: Open brackets must be closed by the same type of brackets. Open brackets must b...
0
0
0
361
0
0
0
0
25
911aa4d835a9beb0f4fcabf0e51d8f18ea6940e0
6,787
py
Python
standard training/mart_cifar10.py
wangaxe/DEAT
861a4ff42a7bd7811970aa6b2f60a85764e4c2f2
[ "MIT" ]
1
2021-08-17T10:27:40.000Z
2021-08-17T10:27:40.000Z
standard training/mart_cifar10.py
wangaxe/DEAT
861a4ff42a7bd7811970aa6b2f60a85764e4c2f2
[ "MIT" ]
null
null
null
standard training/mart_cifar10.py
wangaxe/DEAT
861a4ff42a7bd7811970aa6b2f60a85764e4c2f2
[ "MIT" ]
null
null
null
from __future__ import print_function import argparse import torch import torch.nn as nn import torch.optim as optim import numpy as np parser = argparse.ArgumentParser(description='PyTorch CIFAR MART Defense') parser.add_argument('--batch-size', type=int, default=128, metavar='N', help=...
40.159763
115
0.621335
from __future__ import print_function import os import argparse import torch import torch.nn as nn import torch.nn.functional as F import torchvision import torch.optim as optim from torchvision import datasets, transforms from torch.autograd import Variable import numpy as np import time import logging fr...
0
0
0
0
0
3,304
0
49
303
6d84bddd323d42f554c77e355d3dd0f5e1d7dd47
520
py
Python
users/migrations/0016_auto_20190517_0000.py
JianaXu/productivity
f7478ce2f154538185f071d58a0e4a2cc0b17ee8
[ "bzip2-1.0.6" ]
null
null
null
users/migrations/0016_auto_20190517_0000.py
JianaXu/productivity
f7478ce2f154538185f071d58a0e4a2cc0b17ee8
[ "bzip2-1.0.6" ]
10
2019-05-15T06:25:36.000Z
2022-02-10T08:46:38.000Z
users/migrations/0016_auto_20190517_0000.py
JianaXu/productivity
f7478ce2f154538185f071d58a0e4a2cc0b17ee8
[ "bzip2-1.0.6" ]
1
2019-05-21T03:01:48.000Z
2019-05-21T03:01:48.000Z
# Generated by Django 2.1.1 on 2019-05-16 16:00
20.8
48
0.513462
# Generated by Django 2.1.1 on 2019-05-16 16:00 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0015_auto_20190516_1818'), ] operations = [ migrations.RemoveField( model_name='group', name='curr_gr...
0
0
0
408
0
0
0
11
50
a71a6736e4828d0f665bd5395316a72c3a252783
4,315
py
Python
assistive_gym/envs/feeding_learned_reward_envs.py
jeremy29tien/assistive-gym
bcad5fb2a8b217633e1306e11e95efb4feae6f99
[ "MIT" ]
1
2022-02-04T19:42:04.000Z
2022-02-04T19:42:04.000Z
assistive_gym/envs/feeding_learned_reward_envs.py
jeremy29tien/assistive-gym
bcad5fb2a8b217633e1306e11e95efb4feae6f99
[ "MIT" ]
null
null
null
assistive_gym/envs/feeding_learned_reward_envs.py
jeremy29tien/assistive-gym
bcad5fb2a8b217633e1306e11e95efb4feae6f99
[ "MIT" ]
null
null
null
from .agents import human from ray.tune.registry import register_env robot_arm = 'right' human_controllable_joint_indices = human.head_joints register_env('assistive_gym:FeedingLearnedRewardPR2Human-v1', lambda config: FeedingLearnedRewardPR2HumanEnv()) register_env('assistive_gym:FeedingLearnedRewardBaxterHuman-v1', ...
63.455882
199
0.836153
from .feeding_learned_reward import FeedingLearnedRewardEnv from .agents import pr2, baxter, sawyer, jaco, stretch, panda, human, human_mesh from .agents.pr2 import PR2 from .agents.baxter import Baxter from .agents.sawyer import Sawyer from .agents.jaco import Jaco from .agents.stretch import Stretch from .agents.pand...
0
0
0
2,802
0
0
0
199
473
7f998a5ec9112caa467c04bb5d53029204d74c61
7,561
py
Python
Experiments/exp2_reg_item.py
xdr940/utils
c4b7b1479956475a7feee90a723541904ec82306
[ "MIT" ]
null
null
null
Experiments/exp2_reg_item.py
xdr940/utils
c4b7b1479956475a7feee90a723541904ec82306
[ "MIT" ]
null
null
null
Experiments/exp2_reg_item.py
xdr940/utils
c4b7b1479956475a7feee90a723541904ec82306
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import torch from path import Path import torch.nn as nn device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu") def get_smooth_loss( img,disp):#bchw """Computes the smoothness loss for a disparity image The color image is used for edge-aware smooth...
28.318352
190
0.568708
import matplotlib.pyplot as plt import torch from path import Path import os from utils import * import torch.nn as nn import torch.nn.functional as f device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu") import cv2 from path import Path from tqdm import tqdm from opts import parse_args...
0
0
0
0
0
5,927
0
13
360
87efecce269c11ab6b4da921fea64a9bb2132b7e
700
py
Python
vitudata/config.py
vitutech/VITU
68a1fcd69a7d61e8e5af17295281621a4e14d6b0
[ "Apache-2.0" ]
78
2020-03-07T03:19:06.000Z
2022-02-21T07:46:56.000Z
vitudata/config.py
vitutech/VITU
68a1fcd69a7d61e8e5af17295281621a4e14d6b0
[ "Apache-2.0" ]
6
2020-03-31T09:58:17.000Z
2022-03-01T11:23:00.000Z
vitudata/config.py
vitutech/VITU
68a1fcd69a7d61e8e5af17295281621a4e14d6b0
[ "Apache-2.0" ]
20
2020-03-09T02:58:49.000Z
2021-03-04T10:29:20.000Z
'''/*--------------------------------------------------------------------------------------------- * Copyright (c) VituTech. All rights reserved. * Licensed under the Apache License 2.0. See License.txt in the project root for license information. *------------------------------------------------------------------...
30.434783
103
0.487143
'''/*--------------------------------------------------------------------------------------------- * Copyright (c) VituTech. All rights reserved. * Licensed under the Apache License 2.0. See License.txt in the project root for license information. *------------------------------------------------------------------...
0
239
0
-8
0
0
0
-12
126
c117a4f6f414eeadea9851e990cc3153a66fdf1f
341
py
Python
yt2m/celery.py
kviktor/yt2m
8f3ed8ecc5a84eac03e096f629e15331cca2ff60
[ "MIT" ]
null
null
null
yt2m/celery.py
kviktor/yt2m
8f3ed8ecc5a84eac03e096f629e15331cca2ff60
[ "MIT" ]
null
null
null
yt2m/celery.py
kviktor/yt2m
8f3ed8ecc5a84eac03e096f629e15331cca2ff60
[ "MIT" ]
null
null
null
from __future__ import absolute_import, unicode_literals import os from celery import Celery # set the default Django settings module for the 'celery' program. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'yt2m.settings') app = Celery('yt2m') app.config_from_object('django.conf:settings', namespace='CELERY') app....
28.416667
66
0.803519
from __future__ import absolute_import, unicode_literals import os from celery import Celery # set the default Django settings module for the 'celery' program. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'yt2m.settings') app = Celery('yt2m') app.config_from_object('django.conf:settings', namespace='CELERY') app....
0
0
0
0
0
0
0
0
0
470d55be042d1c62e2818091119f42c80ae573d6
122
py
Python
config.py
grnbows/python-mongo-telegram-bot-template
7e274cfe81fd78d0b9dbea94d8fbe149925bd401
[ "MIT" ]
null
null
null
config.py
grnbows/python-mongo-telegram-bot-template
7e274cfe81fd78d0b9dbea94d8fbe149925bd401
[ "MIT" ]
null
null
null
config.py
grnbows/python-mongo-telegram-bot-template
7e274cfe81fd78d0b9dbea94d8fbe149925bd401
[ "MIT" ]
1
2021-12-26T11:56:09.000Z
2021-12-26T11:56:09.000Z
TOKEN = "1096828547:AAHD7G8ZMTQ3FsU_4cQj6HQG-rWVMsrzUrg" DB_USER = 'user' DB_PASSWORD = 'HFtkS5n0iB7yfvnr' DB_NAME = 'bot'
30.5
56
0.795082
TOKEN = "1096828547:AAHD7G8ZMTQ3FsU_4cQj6HQG-rWVMsrzUrg" DB_USER = 'user' DB_PASSWORD = 'HFtkS5n0iB7yfvnr' DB_NAME = 'bot'
0
0
0
0
0
0
0
0
0
0d074dbc7ac8bcbce69d22de657f1e0da227a6e8
94,996
py
Python
conary/local/sqldb.py
sassoftware/conary
d418968acd5e11ee17ed6d91ca395ea10a040222
[ "Apache-2.0" ]
43
2015-03-31T01:37:10.000Z
2021-11-14T16:26:48.000Z
conary/local/sqldb.py
sassoftware/conary
d418968acd5e11ee17ed6d91ca395ea10a040222
[ "Apache-2.0" ]
9
2015-06-10T16:39:41.000Z
2020-01-27T16:35:01.000Z
conary/local/sqldb.py
sassoftware/conary
d418968acd5e11ee17ed6d91ca395ea10a040222
[ "Apache-2.0" ]
9
2015-04-07T08:12:37.000Z
2020-01-26T09:54:18.000Z
# # Copyright (c) SAS Institute 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 agreed to in w...
40.286684
253
0.543202
# # Copyright (c) SAS Institute 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 agreed to in w...
0
1,818
0
92,059
0
0
0
114
340
0f491620a9151ea91a7191645d726935255a31c2
2,779
py
Python
examples/example4.py
YmVu/yara_tools
4a718e3be8cb77245c83e8d05ae6a556dd61cb7f
[ "MIT" ]
null
null
null
examples/example4.py
YmVu/yara_tools
4a718e3be8cb77245c83e8d05ae6a556dd61cb7f
[ "MIT" ]
null
null
null
examples/example4.py
YmVu/yara_tools
4a718e3be8cb77245c83e8d05ae6a556dd61cb7f
[ "MIT" ]
null
null
null
#!/usr/bin/python ''' Example 4: Introducing Condition Groups Note: Creating a rule to hunt for documents rule doc_exe_with_macros { strings: $EXE0 = "TVqQAAMAAAAEAAAA" wide ascii nocase $EXE1 = "4d5a90000300000004000000ffff0000" wide ascii nocase $EXE2 = "This program cannot be run in DOS mode" wide ascii no...
31.579545
110
0.747031
#!/usr/bin/python ''' Example 4: Introducing Condition Groups Note: Creating a rule to hunt for documents rule doc_exe_with_macros { strings: $EXE0 = "TVqQAAMAAAAEAAAA" wide ascii nocase $EXE1 = "4d5a90000300000004000000ffff0000" wide ascii nocase $EXE2 = "This program cannot be run in DOS mode" wide ascii no...
0
0
0
0
0
0
0
-12
22
fc56e61194384aefd4d727907ab490926abe9658
7,899
py
Python
log/final/main.py
juliia5m/knu_voice
1f5d150ded23af4c152b8d20f1ab4ecec77b40e1
[ "Apache-2.0" ]
717
2015-01-03T15:25:46.000Z
2022-03-30T12:45:45.000Z
log/final/main.py
juliia5m/knu_voice
1f5d150ded23af4c152b8d20f1ab4ecec77b40e1
[ "Apache-2.0" ]
91
2015-03-19T09:25:23.000Z
2021-05-19T08:51:26.000Z
log/final/main.py
juliia5m/knu_voice
1f5d150ded23af4c152b8d20f1ab4ecec77b40e1
[ "Apache-2.0" ]
315
2015-01-21T00:06:00.000Z
2022-03-29T08:13:36.000Z
#!/usr/bin/python2 # -*- coding: utf-8 -*- # $File: main.py # $Date: Fri Jan 03 22:01:46 2014 +0800 # $Author: Xinyu Zhou <zxytim[at]gmail[dot]com> from matplotlib import rcParams rcParams.update({'figure.autolayout': True}) if __name__ == '__main__': main() # vim: foldmethod=marker
38.91133
99
0.483859
#!/usr/bin/python2 # -*- coding: utf-8 -*- # $File: main.py # $Date: Fri Jan 03 22:01:46 2014 +0800 # $Author: Xinyu Zhou <zxytim[at]gmail[dot]com> from dataextractor import DataExtractor as DE import matplotlib.pyplot as plt from matplotlib import rcParams rcParams.update({'figure.autolayout': True}) def populate_co...
0
0
0
0
0
7,483
0
34
91
424754cd7bed498596fd5b585c390f91c4614517
2,811
py
Python
models/base_model.py
Polypod/High-Frequency-Trading-Model-with-IB
e036d521f9b27bf02dceb17531a300af3e7967a1
[ "MIT" ]
null
null
null
models/base_model.py
Polypod/High-Frequency-Trading-Model-with-IB
e036d521f9b27bf02dceb17531a300af3e7967a1
[ "MIT" ]
null
null
null
models/base_model.py
Polypod/High-Frequency-Trading-Model-with-IB
e036d521f9b27bf02dceb17531a300af3e7967a1
[ "MIT" ]
null
null
null
""" A base model containing common IB functions. For other models to extend and use. """
27.028846
85
0.717182
from ib_insync import * from util import order_util """ A base model containing common IB functions. For other models to extend and use. """ class BaseModel(object): def __init__(self, host='127.0.0.1', port=7497, clientId=2): self.host = host self.port = port self.clientId = clientId self.__ib = None ...
0
63
0
2,580
0
0
0
8
67
dc2711fb9918b6866386efacb9e8e224f281489e
199
py
Python
examples/squareworld_example.py
omardrwch/rl_exploration_benchmark
347721cc08aba1e402233469cfb33b48dedb35ab
[ "MIT" ]
1
2020-09-02T00:15:26.000Z
2020-09-02T00:15:26.000Z
examples/squareworld_example.py
omardrwch/rl_exploration_benchmark
347721cc08aba1e402233469cfb33b48dedb35ab
[ "MIT" ]
null
null
null
examples/squareworld_example.py
omardrwch/rl_exploration_benchmark
347721cc08aba1e402233469cfb33b48dedb35ab
[ "MIT" ]
null
null
null
from rlxp.envs import SquareWorld from rlxp.rendering import render_env2d env = SquareWorld() env.enable_rendering() for tt in range(10): env.step(env.action_space.sample()) render_env2d(env)
19.9
39
0.773869
from rlxp.envs import SquareWorld from rlxp.rendering import render_env2d env = SquareWorld() env.enable_rendering() for tt in range(10): env.step(env.action_space.sample()) render_env2d(env)
0
0
0
0
0
0
0
0
0
9a095345acabfc33baeec465de5fa703d818263b
226
py
Python
software/scripts/generator.py
djiboshin/RLab
30cfe579e66355eabd068164845aeeccec4c69c5
[ "MIT" ]
null
null
null
software/scripts/generator.py
djiboshin/RLab
30cfe579e66355eabd068164845aeeccec4c69c5
[ "MIT" ]
null
null
null
software/scripts/generator.py
djiboshin/RLab
30cfe579e66355eabd068164845aeeccec4c69c5
[ "MIT" ]
null
null
null
import pyvisa import sys resurse = sys.argv[1] cmd = sys.argv[2] rm = pyvisa.ResourceManager() #'USB0::0xF4ED::0xEE3A::NDG10GAQ3R0226::INSTR' inst = rm.open_resource(resurse) try: inst.query(cmd) except: pass #"*IDN?"
17.384615
46
0.70354
import pyvisa import sys resurse = sys.argv[1] cmd = sys.argv[2] rm = pyvisa.ResourceManager() #'USB0::0xF4ED::0xEE3A::NDG10GAQ3R0226::INSTR' inst = rm.open_resource(resurse) try: inst.query(cmd) except: pass #"*IDN?"
0
0
0
0
0
0
0
0
0
c054b6a0d642478725861039b7bc22d59fa6c51b
898
py
Python
meiduo_mall02/apps/oauto/utils.py
hongyinwang/meiduo_project02
3f21773d2d98204400ea2c3738969ac2a593b242
[ "MIT" ]
null
null
null
meiduo_mall02/apps/oauto/utils.py
hongyinwang/meiduo_project02
3f21773d2d98204400ea2c3738969ac2a593b242
[ "MIT" ]
null
null
null
meiduo_mall02/apps/oauto/utils.py
hongyinwang/meiduo_project02
3f21773d2d98204400ea2c3738969ac2a593b242
[ "MIT" ]
null
null
null
import logging logger = logging.getLogger('django') # 13-itsdangerous # #
23.631579
87
0.711581
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer from apps.oauto.contents import OPENID_TOKEN_EXPIRES_TIME from meiduo_mall02 import settings import logging logger = logging.getLogger('django') # 13-itsdangerous的使用 def generic_openid_token(openid): #1.创建实例对象 # s = Serializer(secret_key=...
135
0
0
0
0
566
0
98
111
6aac5baa1b02b4f0855a44a1c28af0685c81e89d
1,866
py
Python
ProjectApplication/project_core/migrations/0033_proposal_timeframe_chnages.py
code-review-doctor/project-application
d85b40b69572efbcda24ce9c40803f76d8ffd192
[ "MIT" ]
5
2020-07-29T10:00:11.000Z
2022-02-19T11:00:34.000Z
ProjectApplication/project_core/migrations/0033_proposal_timeframe_chnages.py
code-review-doctor/project-application
d85b40b69572efbcda24ce9c40803f76d8ffd192
[ "MIT" ]
471
2019-09-20T14:37:28.000Z
2022-03-25T14:16:34.000Z
ProjectApplication/project_core/migrations/0033_proposal_timeframe_chnages.py
code-review-doctor/project-application
d85b40b69572efbcda24ce9c40803f76d8ffd192
[ "MIT" ]
5
2020-03-15T12:42:47.000Z
2022-02-15T18:06:52.000Z
# Generated by Django 2.2.6 on 2019-10-21 09:08 import django.db.models.deletion
35.884615
170
0.625402
# Generated by Django 2.2.6 on 2019-10-21 09:08 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('project_core', '0032_add_date_created_source-keywords'), ] operations = [ migr...
0
0
0
1,690
0
0
0
26
68
b362431dbe70d09c501412281b8d09fe0b6eff6a
3,560
py
Python
spammer.py
Gaskmantr/discord-spammer
5a0a40c90e017e925d20e81c70dae63d77b5984c
[ "BSL-1.0" ]
1
2021-02-18T12:26:05.000Z
2021-02-18T12:26:05.000Z
spammer.py
Gaskmantr/discord-spammer
5a0a40c90e017e925d20e81c70dae63d77b5984c
[ "BSL-1.0" ]
null
null
null
spammer.py
Gaskmantr/discord-spammer
5a0a40c90e017e925d20e81c70dae63d77b5984c
[ "BSL-1.0" ]
null
null
null
import requests import random banner() print(""" [1]- Joiner [3]- Leaver [2]- Spammer [4]- Checker """) while True: all_proxies = requests.get('https://api.proxyscrape.com/?request=getproxies&proxytype=http&timeout=1000&country=all&ssl=all&anonymity=all').text x = all_proxies.split() b = r...
37.473684
168
0.487079
import os import requests import random import time def banner(): print(""" ____ / ___| _ __ __ _ _ __ ___ _ __ ___ ___ _ __ \___ \| '_ \ / _` | '_ ` _ \| '_ ` _ \ / _ | '__| ___) | |_) | (_| | | ...
24
0
0
0
0
480
0
-22
67
a1d97b409df323b632a5e564af81dca8c125688c
2,917
py
Python
barcoded_passes.py
bharat-rajani/Project-barcode-passes
9e151aed5f8124350b757c6a8788f117d7f9c570
[ "MIT" ]
null
null
null
barcoded_passes.py
bharat-rajani/Project-barcode-passes
9e151aed5f8124350b757c6a8788f117d7f9c570
[ "MIT" ]
null
null
null
barcoded_passes.py
bharat-rajani/Project-barcode-passes
9e151aed5f8124350b757c6a8788f117d7f9c570
[ "MIT" ]
1
2019-05-28T15:54:55.000Z
2019-05-28T15:54:55.000Z
import barcode from barcode.writer import ImageWriter from random import randint import os from PIL import Image, ImageFont, ImageDraw #RANDOM NUMBERS GENERATOR random_number_digits = lambda x : randint(10**(x-1),(10**x)-1) #random number file rand_list = sorted([random_number_digits(13) for x in range(5000)]) data ...
23.909836
77
0.708605
import barcode from barcode.writer import ImageWriter from random import randint import os from PIL import Image, ImageFont ,ImageDraw import pickle #RANDOM NUMBERS GENERATOR random_number_digits = lambda x : randint(10**(x-1),(10**x)-1) #random number file rand_list = sorted([random_number_digits(13) for x in range(5...
0
0
0
0
0
185
0
-8
68
25bcc8d83211cf34753a9d10b02acd731588fa05
5,292
py
Python
camelot/view/controls/liteboxview.py
FrDeGraux/camelot
56aa93f774edbb0c31a21109e187cf81f49a68d8
[ "BSD-3-Clause" ]
12
2020-08-02T17:00:37.000Z
2022-01-22T17:49:23.000Z
camelot/view/controls/liteboxview.py
FrDeGraux/camelot
56aa93f774edbb0c31a21109e187cf81f49a68d8
[ "BSD-3-Clause" ]
124
2020-08-19T15:03:54.000Z
2022-03-31T07:12:16.000Z
camelot/view/controls/liteboxview.py
FrDeGraux/camelot
56aa93f774edbb0c31a21109e187cf81f49a68d8
[ "BSD-3-Clause" ]
17
2020-04-25T19:22:20.000Z
2022-01-25T08:46:19.000Z
# ============================================================================ # # Copyright (C) 2007-2016 Conceptive Engineering bvba. # www.conceptive.be / info@conceptive.be # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following condition...
37.531915
82
0.675926
# ============================================================================ # # Copyright (C) 2007-2016 Conceptive Engineering bvba. # www.conceptive.be / info@conceptive.be # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following condition...
0
0
0
2,969
0
339
0
44
160
8b51507ae6de44788d36c18361e09908f3816c85
2,252
py
Python
keras_model_server.py
CarryChang/Bert_BaseLine
8bd3977a9b55f3c258baddcde3191a831546e1cf
[ "Apache-2.0" ]
18
2020-02-11T05:39:09.000Z
2022-02-26T09:32:19.000Z
keras_model_server.py
CarryChang/Bert_BaseLine
8bd3977a9b55f3c258baddcde3191a831546e1cf
[ "Apache-2.0" ]
2
2020-02-22T08:52:36.000Z
2022-02-27T04:28:52.000Z
keras_model_server.py
CarryChang/Bert_BaseLine
8bd3977a9b55f3c258baddcde3191a831546e1cf
[ "Apache-2.0" ]
4
2020-03-29T18:09:29.000Z
2020-12-28T12:01:50.000Z
from flask import Flask app = Flask(__name__) global_() if __name__ == "__main__": # add hot fresh app.run()
36.322581
110
0.758437
import codecs import json from keras.preprocessing import sequence from keras_bert import Tokenizer, load_trained_model_from_checkpoint from keras.models import load_model from flask import request, Flask, jsonify import tensorflow as tf app = Flask(__name__) def global_(): # 全局定义和全局加载模型,提升inference速度 global model, g...
48
380
0
288
0
1,155
0
82
220
b1632b0187df435a907db23a10af94f175ae9041
47,845
py
Python
pysnmp-with-texts/BLADETYPE2-ACL-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/BLADETYPE2-ACL-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/BLADETYPE2-ACL-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module BLADETYPE2-ACL-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BLADETYPE2-ACL-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:39:09 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, ...
157.384868
4,054
0.747873
# # PySNMP MIB module BLADETYPE2-ACL-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BLADETYPE2-ACL-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:39:09 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, ...
0
0
0
0
0
0
0
0
0
92a7d8a8dd2c4dec0213cd4546f30878fdd26cd1
1,751
py
Python
Modulos/Times/generate.py
gabrielfava/asap
be6211190d4acfca7aacef45d7dc467e2237496d
[ "Apache-2.0" ]
2
2018-03-16T19:24:35.000Z
2018-03-20T01:15:21.000Z
Modulos/Times/generate.py
jvalv/asaPY
97cdc9359d8afeb9747f4372b253b179131d2be4
[ "Apache-2.0" ]
1
2018-02-24T23:43:15.000Z
2018-02-24T23:43:15.000Z
Modulos/Times/generate.py
gabrielfava/asapy
be6211190d4acfca7aacef45d7dc467e2237496d
[ "Apache-2.0" ]
1
2018-02-28T14:45:52.000Z
2018-02-28T14:45:52.000Z
__select_ALL = "SELECT team_number, team_site, team_name, password, team_short_name, enabled, type, multi_login, team_full_name FROM TEAMS" if __name__ == "__main__": main()
26.938462
139
0.715591
import string import random from mysql.connector import MySQLConnection, Error import database_conf as cfg import team __select_ALL = "SELECT team_number, team_site, team_name, password, team_short_name, enabled, type, multi_login, team_full_name FROM TEAMS" def select_teams(cursor): query = ("SELECT team_number, t...
0
0
0
0
0
1,361
0
9
202
d22b7df2f6007f5f4edfb280b0bd322312960e61
848
py
Python
reproducemegit/jupyter_reproducibility/setup.py
fusion-jena/ReproduceMeGit
75f7c5b8c4fb5a58ff39dfc7fd74e03cd107b31e
[ "MIT" ]
6
2020-06-22T18:23:17.000Z
2021-11-07T16:41:08.000Z
reproducemegit/jupyter_reproducibility/setup.py
fusion-jena/ReproduceMeGit
75f7c5b8c4fb5a58ff39dfc7fd74e03cd107b31e
[ "MIT" ]
3
2020-03-29T19:51:03.000Z
2020-03-29T19:51:05.000Z
reproducemegit/jupyter_reproducibility/setup.py
fusion-jena/ReproduceMeGit
75f7c5b8c4fb5a58ff39dfc7fd74e03cd107b31e
[ "MIT" ]
3
2020-07-06T00:49:18.000Z
2022-01-28T21:36:35.000Z
from setuptools import setup setup( name="NotebookArchaeology", version="0.1", #packages=find_packages(), #scripts=['say_hello.py'], # Project uses reStructuredText, so ensure that the docutils get # installed or upgraded on the target machine install_requires=[ 'sqlalchemy', '...
25.69697
68
0.597877
from setuptools import setup, find_packages setup( name="NotebookArchaeology", version="0.1", #packages=find_packages(), #scripts=['say_hello.py'], # Project uses reStructuredText, so ensure that the docutils get # installed or upgraded on the target machine install_requires=[ 'sqlalch...
0
0
0
0
0
0
0
15
0
fa917c0a8bfbb225a1bb71a5949b526f5ccbdf16
2,429
py
Python
tests/ParabolicTest.py
Walden-Shen/hdpde
c48c621a6b8b408a013642769a7b1daed9b084f8
[ "MIT" ]
24
2019-12-18T03:01:29.000Z
2022-01-06T15:54:40.000Z
tests/ParabolicTest.py
tshih-tw/hdp
0fb84cce9c9a793706159928a2359f6b51965962
[ "MIT" ]
null
null
null
tests/ParabolicTest.py
tshih-tw/hdp
0fb84cce9c9a793706159928a2359f6b51965962
[ "MIT" ]
3
2020-05-11T06:36:16.000Z
2020-12-23T06:58:24.000Z
import sys, os sys.path.append(os.path.dirname(os.path.abspath(__file__))+"/../src") import unittest if __name__ == '__main__': unittest.main()
39.819672
97
0.637711
import sys, os sys.path.append(os.path.dirname(os.path.abspath(__file__))+"/../src") from blackscholes.pde.Parabolic import Solver1d, Coef2d, Solver2d from blackscholes.pde.Euro import Euro1d from blackscholes.pde.American import Amer1d from blackscholes.utils.Analytical import Analytical_Sol, GeometricAvg from utils.D...
0
0
0
1,923
0
0
0
180
177
ddeaa07abb82469513bebad05d41652cb8fd29c2
9,725
py
Python
code/SR_master/model/wransr.py
JellyPoker/RANSR
27f4150519cfdd97187655bd988b033fbf568029
[ "MIT" ]
null
null
null
code/SR_master/model/wransr.py
JellyPoker/RANSR
27f4150519cfdd97187655bd988b033fbf568029
[ "MIT" ]
null
null
null
code/SR_master/model/wransr.py
JellyPoker/RANSR
27f4150519cfdd97187655bd988b033fbf568029
[ "MIT" ]
null
null
null
# implementation of our model:Weighted Residual Attention Network for Super Resolution import torch.nn as nn # concatenated ResidualAttentionBlock # intermediate ResidualAttentionBlock # embedded ResidualAttentionBlock # dense ResidualAttentionGroup
33.304795
118
0.573676
# implementation of our model:Weighted Residual Attention Network for Super Resolution from model import common import torch.nn as nn import torch def make_model(args, parent=False): return WRANSR(args) class SelfAttentionBlock(nn.Module): def __init__( self, conv, n_feat, kernel_size, ...
0
0
0
9,152
0
38
0
-6
275