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
b981440ef6dd9840fe7b1f1f885870c5756d942a
6,285
py
Python
instagram/bind.py
bearprada/instagram-tag-monitor
3cad22d9abd3b44c9c8714bb1c3cb41a3c876c5f
[ "MIT" ]
2
2015-12-19T08:04:28.000Z
2017-07-28T10:25:12.000Z
instagram/bind.py
bearprada/instagram-tag-monitor
3cad22d9abd3b44c9c8714bb1c3cb41a3c876c5f
[ "MIT" ]
null
null
null
instagram/bind.py
bearprada/instagram-tag-monitor
3cad22d9abd3b44c9c8714bb1c3cb41a3c876c5f
[ "MIT" ]
null
null
null
import re re_path_template = re.compile('{\w+}')
40.811688
128
0.555449
import urllib from oauth2 import OAuth2Request import re from json_import import simplejson re_path_template = re.compile('{\w+}') def encode_string(value): return value.encode('utf-8') \ if isinstance(value, unicode) else str(value) class InstagramClientError(Exception): def __init...
0
0
0
5,770
0
287
0
16
158
07c776590fbaaa6dfaf168c37f9d45306a336f43
1,142
py
Python
cleaning_ex/cleaner.py
cltrudeau/codingnomads
2a13f36186a5d0fc85ea54690e621b7ba9e2041e
[ "MIT" ]
1
2020-05-06T17:34:33.000Z
2020-05-06T17:34:33.000Z
cleaning_ex/cleaner.py
cltrudeau/codingnomads
2a13f36186a5d0fc85ea54690e621b7ba9e2041e
[ "MIT" ]
5
2021-03-31T19:46:09.000Z
2021-09-22T19:34:02.000Z
cleaning_ex/cleaner.py
cltrudeau/codingnomads
2a13f36186a5d0fc85ea54690e621b7ba9e2041e
[ "MIT" ]
1
2020-06-04T20:58:21.000Z
2020-06-04T20:58:21.000Z
#!/usr/bin/env python from pathlib import Path import unicodedata output = [] filename = Path(__file__).parent.resolve() / "data/books.tsv" with open(filename) as handle: lines = handle.readlines() # lines will contain a row for each line in the file # Loop through lines and do data scrubbing, put each result ...
22.84
69
0.590193
#!/usr/bin/env python from pathlib import Path import unicodedata output = [] filename = Path(__file__).parent.resolve() / "data/books.tsv" with open(filename) as handle: lines = handle.readlines() # lines will contain a row for each line in the file # Loop through lines and do data scrubbing, put each result ...
0
0
0
0
0
0
0
0
0
0b2cf5747c8d26ddf32a96fbcf1bcecd26618ae5
417
py
Python
reference_solutions/upload_bin.py
yahoo/hardware-hackme-1
d7acbf36854b088a34419f9697f64aaf0e3be83c
[ "MIT" ]
4
2020-04-17T20:22:15.000Z
2020-05-02T15:04:41.000Z
reference_solutions/upload_bin.py
yahoo/hardware-hackme-1
d7acbf36854b088a34419f9697f64aaf0e3be83c
[ "MIT" ]
null
null
null
reference_solutions/upload_bin.py
yahoo/hardware-hackme-1
d7acbf36854b088a34419f9697f64aaf0e3be83c
[ "MIT" ]
1
2020-05-04T01:32:05.000Z
2020-05-04T01:32:05.000Z
#!/usr/bin/env python3 # Copyright 2020, Verizon Media # Licensed under the terms of the MIT license. See LICENSE file in project root for terms. import serial import sys in_serport = sys.argv[1] in_fn = sys.argv[2] with open(in_fn, 'rb') as f: payload = f.read() ser = serial.Serial(in_serport, 115200, timeout=1) ...
18.954545
90
0.721823
#!/usr/bin/env python3 # Copyright 2020, Verizon Media # Licensed under the terms of the MIT license. See LICENSE file in project root for terms. import binascii import serial import subprocess import sys in_serport = sys.argv[1] in_fn = sys.argv[2] with open(in_fn, 'rb') as f: payload = f.read() ser = serial.Ser...
0
0
0
0
0
0
0
-10
45
52777aa0752ed891ab623cd6d0d931391f0f9e8a
9,901
py
Python
gym_bot_app/models.py
talorabr/RashatzimBot
3d56ecd77c8cc8cf78310e4675f68a4ca3b1616e
[ "Apache-2.0" ]
null
null
null
gym_bot_app/models.py
talorabr/RashatzimBot
3d56ecd77c8cc8cf78310e4675f68a4ca3b1616e
[ "Apache-2.0" ]
null
null
null
gym_bot_app/models.py
talorabr/RashatzimBot
3d56ecd77c8cc8cf78310e4675f68a4ca3b1616e
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 from __future__ import unicode_literals
36.003636
125
0.6061
# encoding: utf-8 from __future__ import unicode_literals from datetime import datetime, timedelta from mongoengine import (Document, ListField, StringField, BooleanField, DateTimeField, Embedd...
0
2,294
0
6,897
0
0
0
441
206
1484137076d74041a15c64db005d71834958165e
404
py
Python
more_than_basics/builtins/builtins.py
xames3/python_tuts_v2
666d23743d617a33de9782dadcd06a97494b3823
[ "Apache-2.0" ]
null
null
null
more_than_basics/builtins/builtins.py
xames3/python_tuts_v2
666d23743d617a33de9782dadcd06a97494b3823
[ "Apache-2.0" ]
null
null
null
more_than_basics/builtins/builtins.py
xames3/python_tuts_v2
666d23743d617a33de9782dadcd06a97494b3823
[ "Apache-2.0" ]
null
null
null
# List of Builtins referred from here: https://docs.python.org/3/library/functions.html # xa = oct(10) # print(xa, (type(xa)), sep="\n") xa = ["xa", "pranali", "srushti", "shailesh", "nimesh"] xa = [idx.upper() for idx in xa] # ya = xa.copy() # za = [] # for idx in xa: # za.append(idx.upper()) print(xa) # print(...
17.565217
87
0.616337
# List of Builtins referred from here: https://docs.python.org/3/library/functions.html # xa = oct(10) import os import glob # print(xa, (type(xa)), sep="\n") xa = ["xa", "pranali", "srushti", "shailesh", "nimesh"] xa = [idx.upper() for idx in xa] # ya = xa.copy() # za = [] # for idx in xa: # za.append(idx.upper...
0
0
0
0
0
0
0
-22
45
44c2fe335e43cc6f717f5b780437fc4c47a6dd18
3,700
py
Python
tushare_trader/__init__.py
gorf/tushare-trader
7502e11acb509f481041445e69e2f6960b3fba0d
[ "BSD-3-Clause" ]
1
2020-07-12T02:40:11.000Z
2020-07-12T02:40:11.000Z
tushare_trader/__init__.py
gorf/tushare-trader
7502e11acb509f481041445e69e2f6960b3fba0d
[ "BSD-3-Clause" ]
3
2020-07-12T01:13:17.000Z
2021-03-31T19:16:04.000Z
tushare_trader/__init__.py
gorf/tushare-trader
7502e11acb509f481041445e69e2f6960b3fba0d
[ "BSD-3-Clause" ]
null
null
null
__version__ = '0.7.7' __author__ = 'Jimmy Liu' """ for trading data """ """ for trading data """ """ for macro data """ """ for classifying data """ """ for macro data """ """ for reference """ """ for shibor """ """ for LHB """ """ for utils """ """ for DataYes Token...
33.035714
95
0.536216
__version__ = '0.7.7' __author__ = 'Jimmy Liu' """ for trading data """ from tushare_trader.stock.trading import (get_hist_data, get_tick_data, get_today_all, get_realtime_quotes, get_h_data, get_today_ticks, ...
0
0
0
0
0
0
0
2,884
399
ad79a8d3eee9a3a57784a6474509d0a1b53512b5
222
py
Python
menus/admin.py
hbolzan/django-sql-to-rest
008f2d726fc7b758e45d24eb2e32ae605f194947
[ "BSD-2-Clause" ]
1
2019-03-06T19:46:18.000Z
2019-03-06T19:46:18.000Z
menus/admin.py
hbolzan/django-sql-to-rest
008f2d726fc7b758e45d24eb2e32ae605f194947
[ "BSD-2-Clause" ]
2
2020-06-05T19:41:06.000Z
2021-06-10T21:05:53.000Z
menus/admin.py
hbolzan/django-sql-to-rest
008f2d726fc7b758e45d24eb2e32ae605f194947
[ "BSD-2-Clause" ]
null
null
null
from django.contrib import admin from menus.models import SystemMenu admin.site.register(SystemMenu, SystemMenuAdmin)
22.2
51
0.842342
from django.contrib import admin from django_mptt_admin.admin import DjangoMpttAdmin from menus.models import SystemMenu class SystemMenuAdmin(DjangoMpttAdmin): pass admin.site.register(SystemMenu, SystemMenuAdmin)
0
0
0
27
0
0
0
30
45
7da8a3e5f21fcbab4d59bff10ca9fcf193fdd4ce
591
py
Python
21312312.py
zhangbo2008/chineseOCR-latest
8eeb7d4bdf1bf460a3b8190d21507639db4c77f3
[ "MIT" ]
8
2019-10-29T07:56:04.000Z
2020-11-27T07:44:25.000Z
21312312.py
zhangbo2008/chineseOCR-latest
8eeb7d4bdf1bf460a3b8190d21507639db4c77f3
[ "MIT" ]
null
null
null
21312312.py
zhangbo2008/chineseOCR-latest
8eeb7d4bdf1bf460a3b8190d21507639db4c77f3
[ "MIT" ]
1
2020-11-03T12:45:27.000Z
2020-11-03T12:45:27.000Z
## import requests tmp2='http://pics5.baidu.com/feed/38dbb6fd5266d0164f8e49cdd24aa40234fa3522.jpeg?token=c2cbcc6f929b40eb8881ceb4746c0e8c&s=1994CB1452725B94340248850300F0AB' print(tmp2) r = requests.get(tmp2) with open('tmp.jpg', 'wb') as f: f.write(r.content) ## print("1111111111") print("1111111111") print("11111...
22.730769
154
0.763113
## import requests tmp2='http://pics5.baidu.com/feed/38dbb6fd5266d0164f8e49cdd24aa40234fa3522.jpeg?token=c2cbcc6f929b40eb8881ceb4746c0e8c&s=1994CB1452725B94340248850300F0AB' print(tmp2) r = requests.get(tmp2) with open('tmp.jpg', 'wb') as f: f.write(r.content) ## print("1111111111") print("1111111111") print("11111...
0
0
0
0
0
0
0
0
0
c683ff8f817eb532dbd2635547cbcb925c679a26
37,972
py
Python
watex/utils/tricks.py
WEgeophysics/watex
21616ce35372a095c3dd624f82a5282b15cb2c91
[ "MIT" ]
3
2021-06-19T02:16:46.000Z
2021-07-16T15:56:49.000Z
watex/utils/tricks.py
WEgeophysics/watex
21616ce35372a095c3dd624f82a5282b15cb2c91
[ "MIT" ]
null
null
null
watex/utils/tricks.py
WEgeophysics/watex
21616ce35372a095c3dd624f82a5282b15cb2c91
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ =============================================================================== Copyright (c) 2021 Kouadio K. Laurent Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software wi...
34.804766
95
0.559939
# -*- coding: utf-8 -*- """ =============================================================================== Copyright (c) 2021 Kouadio K. Laurent Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software wi...
4
2,263
0
0
0
0
0
32
100
26b2299fc736855cc6f266946d8b6050b00ab180
23,051
py
Python
QConnectBase/connection_base.py
test-fullautomation/robotframework-qconnect-base
b8a6b5bc89907f2a7f6cd69460f11bde496526bd
[ "Apache-2.0" ]
1
2021-12-22T01:50:48.000Z
2021-12-22T01:50:48.000Z
QConnectBase/connection_base.py
test-fullautomation/robotframework-qconnect-base
b8a6b5bc89907f2a7f6cd69460f11bde496526bd
[ "Apache-2.0" ]
4
2022-02-08T12:24:42.000Z
2022-03-28T13:07:43.000Z
QConnectBase/connection_base.py
test-fullautomation/robotframework-qconnect-base
b8a6b5bc89907f2a7f6cd69460f11bde496526bd
[ "Apache-2.0" ]
1
2022-02-15T05:38:30.000Z
2022-02-15T05:38:30.000Z
# Copyright 2020-2022 Robert Bosch Car Multimedia GmbH # # 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 applicab...
35.463077
169
0.623747
# Copyright 2020-2022 Robert Bosch Car Multimedia GmbH # # 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 applicab...
0
6,293
0
15,267
0
0
0
15
266
6cfa6cf4a8e279382f2f497f00619a53aa3c0534
2,527
py
Python
xcode_build/xcode_build.py
12star9/Python-Tools
dd5f1564670240f4b053355418669b274028e1a7
[ "MIT" ]
19
2018-08-24T08:03:12.000Z
2021-05-17T08:12:29.000Z
xcode_build/xcode_build.py
12star9/Python-Tools
dd5f1564670240f4b053355418669b274028e1a7
[ "MIT" ]
3
2021-03-19T01:47:04.000Z
2022-01-13T01:23:02.000Z
xcode_build/xcode_build.py
12star9/Python-Tools
dd5f1564670240f4b053355418669b274028e1a7
[ "MIT" ]
6
2019-07-07T16:51:12.000Z
2021-05-20T06:31:27.000Z
# -*- coding: utf-8 -*- import os import shutil # import appicon_generate # current_work_path=os.getcwd() projecttest_path=current_work_path+"/project_test" projectPathList=[projecttest_path] for index in range(0,4): resultPath=projecttest_path+"/../backup%s"%(index) try: shutil.rmtree(resultPath) ...
30.445783
224
0.67313
# -*- coding: utf-8 -*- import optparse import os import sys import getpass import json import hashlib import smtplib import commands import subprocess import shutil # import appicon_generate from xcode_build_module import XCodeBuild #主函数 def main(): # print buildArchivePath('project_test') # return # prin...
39
0
0
0
0
1,550
0
-38
243
0bf8ac14dd00049d22a2e0dc026034c8c1c67517
19,107
py
Python
src/flags.py
kor-solidarity/screeps_python
18479c00c2284eeddc583ad55e3ae9f9fc3e09ff
[ "MIT" ]
null
null
null
src/flags.py
kor-solidarity/screeps_python
18479c00c2284eeddc583ad55e3ae9f9fc3e09ff
[ "MIT" ]
null
null
null
src/flags.py
kor-solidarity/screeps_python
18479c00c2284eeddc583ad55e3ae9f9fc3e09ff
[ "MIT" ]
null
null
null
__pragma__('noalias', 'name') __pragma__('noalias', 'undefined') __pragma__('noalias', 'Infinity') __pragma__('noalias', 'keys') __pragma__('noalias', 'get') __pragma__('noalias', 'set') __pragma__('noalias', 'type') __pragma__('noalias', 'update') # todo # REMOTE----------------------------------------------...
43.425
115
0.479615
from defs import * import random import miscellaneous import pathfinding from _custom_constants import * from structure_display import * __pragma__('noalias', 'name') __pragma__('noalias', 'undefined') __pragma__('noalias', 'Infinity') __pragma__('noalias', 'keys') __pragma__('noalias', 'get') __pragma__('noalias', 's...
3,511
0
0
0
0
17,279
0
5
155
0f1ac96711ae26dda8377bc5d76c3872eea1afb7
7,311
py
Python
kgtk/cli/remove_columns.py
shashank73744/kgtk
e8b45e35e97cbe788edeaf0962742e48b24e309c
[ "MIT" ]
null
null
null
kgtk/cli/remove_columns.py
shashank73744/kgtk
e8b45e35e97cbe788edeaf0962742e48b24e309c
[ "MIT" ]
null
null
null
kgtk/cli/remove_columns.py
shashank73744/kgtk
e8b45e35e97cbe788edeaf0962742e48b24e309c
[ "MIT" ]
null
null
null
""" Remove columns from a KGTK file. """ from argparse import Namespace from kgtk.cli_argparse import KGTKArgumentParser def add_arguments_extended(parser: KGTKArgumentParser, parsed_shared_args: Namespace): """ Parse arguments Args: parser (argparse.ArgumentParser) """ from kgtk.io.kgtkr...
41.073034
153
0.616879
""" Remove columns from a KGTK file. """ from argparse import Namespace, SUPPRESS import typing from kgtk.cli_argparse import KGTKArgumentParser, KGTKFiles def parser(): return { 'help': 'Remove columns from a KGTK file.', 'description': 'Remove specific columns from a KGTK file.' } def add_...
0
0
0
0
0
5,429
0
13
68
cf5c88ac7ec5d660e56f6f172e6ee872ace993e3
589
py
Python
init_all.py
Frankkie/Thesis-Project-IF-Game
e44cc2f7ce19bbfa04de3a4fee959651024b276b
[ "MIT" ]
1
2021-06-12T22:54:24.000Z
2021-06-12T22:54:24.000Z
init_all.py
Frankkie/Thesis-Project-IF-Game
e44cc2f7ce19bbfa04de3a4fee959651024b276b
[ "MIT" ]
null
null
null
init_all.py
Frankkie/Thesis-Project-IF-Game
e44cc2f7ce19bbfa04de3a4fee959651024b276b
[ "MIT" ]
null
null
null
""" """
17.848485
65
0.619694
""" """ from display import Display from load import Loader from game import Game class Initializer: """ The class that handles the program before a game is launched. """ def __init__(self): self.display = Display(None) self.loader = None self.game = None def load_game...
0
0
0
476
0
0
0
8
90
1f57911b5e44b1ab4f8fa09702e065453ebc8590
3,666
py
Python
bobinler.py
enderyilmazz/ElektronikKomponentKayitKontrolSistemi
0a5219aa8d6d729b7a240176bc02770681eaf6fe
[ "MIT" ]
1
2021-12-02T10:55:41.000Z
2021-12-02T10:55:41.000Z
bobinler.py
enderyilmazz/ElektronikKomponentKayitKontrolSistemi
0a5219aa8d6d729b7a240176bc02770681eaf6fe
[ "MIT" ]
null
null
null
bobinler.py
enderyilmazz/ElektronikKomponentKayitKontrolSistemi
0a5219aa8d6d729b7a240176bc02770681eaf6fe
[ "MIT" ]
null
null
null
#171602012 - Ender Ylmaz #Biliim Sistemleri Mhendislii #Elektronik Komponent Kayt Kontrol Sistemi
53.130435
99
0.688762
#171602012 - Ender Yılmaz #Bilişim Sistemleri Mühendisliği #Elektronik Komponent Kayıt Kontrol Sistemi from PyQt5 import QtCore, QtGui, QtWidgets class Ui_bobinler(object): def setupUi(self, bobinler): bobinler.setObjectName("bobinler") bobinler.resize(293, 190) icon = QtGui.QIcon() ...
22
0
0
3,492
0
0
0
21
45
204a60b80807dd098d39cbc5d789117dabc04f40
555
py
Python
src/timeatlas/models/NN/util.py
fredmontet/timeatlas
9a439a913ef9a8a1ef9833b42e5fb4e988d7e35e
[ "MIT" ]
10
2020-08-25T09:23:02.000Z
2021-01-12T14:00:35.000Z
src/timeatlas/models/NN/util.py
fredmontet/timeatlas
9a439a913ef9a8a1ef9833b42e5fb4e988d7e35e
[ "MIT" ]
140
2020-06-30T11:59:47.000Z
2021-08-23T20:58:43.000Z
src/timeatlas/models/NN/util.py
fredmontet/timeatlas
9a439a913ef9a8a1ef9833b42e5fb4e988d7e35e
[ "MIT" ]
null
null
null
import numpy as np def chunkify(tsd, seq_len): """ Splits a TimeSeriesDataset into chunks of length seq_len Args: tsd: TimeSeriesDataset object seq_len: length of the subsequences to return Returns: numpy arrays with chunks of size seq_len """ x, y = [], [] for s in tsd...
21.346154
60
0.569369
import numpy as np def chunkify(tsd, seq_len): """ Splits a TimeSeriesDataset into chunks of length seq_len Args: tsd: TimeSeriesDataset object seq_len: length of the subsequences to return Returns: numpy arrays with chunks of size seq_len """ x, y = [], [] for s in tsd...
0
0
0
0
0
0
0
0
0
5adb499c490f3f509aec32ba50dc8a30ee53dbe1
861
py
Python
leon_utils/clime.py
Leonerist/YoloX-Track-Plate_Recognition-MoreModules
fde4a001c0088d4bfe7a027f31040e732ec8b519
[ "Apache-2.0" ]
7
2022-03-12T09:09:44.000Z
2022-03-20T05:19:23.000Z
leon_utils/clime.py
Leonerist/YoloX-Track-Plate_Recognition-MoreModules
fde4a001c0088d4bfe7a027f31040e732ec8b519
[ "Apache-2.0" ]
null
null
null
leon_utils/clime.py
Leonerist/YoloX-Track-Plate_Recognition-MoreModules
fde4a001c0088d4bfe7a027f31040e732ec8b519
[ "Apache-2.0" ]
null
null
null
# tar4
25.323529
61
0.541231
import cv2 import uuid import os def pic_save(tar_num,pic,root): root = os.path.join(root,'clime_pics') file_name = os.path.join(root,tar_num) if not os.path.exists(file_name ): os.mkdir(file_name) ran = uuid.uuid4().hex pic_name = os.path.join(file_name , '{}.jpg'.format(ran)) cv2.imw...
63
0
0
0
0
751
0
-33
111
eafe07d9b54c8a2808bc734ee1b880f491578b49
1,861
py
Python
douban/douban/settings.py
ziyiyizi/crawl_web
191b0839d9d095adccd8c2ab893d35c54dfc4053
[ "Apache-2.0" ]
11
2016-08-01T09:28:23.000Z
2021-11-08T08:45:54.000Z
douban/douban/settings.py
ziyiyizi/crawl_web
191b0839d9d095adccd8c2ab893d35c54dfc4053
[ "Apache-2.0" ]
null
null
null
douban/douban/settings.py
ziyiyizi/crawl_web
191b0839d9d095adccd8c2ab893d35c54dfc4053
[ "Apache-2.0" ]
4
2016-09-09T04:45:39.000Z
2019-10-29T06:34:39.000Z
# -*- coding: utf-8 -*- # Scrapy settings for douban project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # http://doc.scrapy.org/en/latest/topics/settings.html # http://scrapy.readthedocs.org/en/latest/...
33.232143
80
0.785599
# -*- coding: utf-8 -*- # Scrapy settings for douban project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # http://doc.scrapy.org/en/latest/topics/settings.html # http://scrapy.readthedocs.org/en/latest/...
255
0
0
0
0
0
0
0
0
54b127d16e206063b8d9142f1e864c12d75bf507
46,092
py
Python
astroquery/esa/jwst/tests/test_jwsttap.py
mfisherlevine/astroquery
cda88ef18b308563e86ee79bcc78e4ac59874df1
[ "BSD-3-Clause" ]
null
null
null
astroquery/esa/jwst/tests/test_jwsttap.py
mfisherlevine/astroquery
cda88ef18b308563e86ee79bcc78e4ac59874df1
[ "BSD-3-Clause" ]
null
null
null
astroquery/esa/jwst/tests/test_jwsttap.py
mfisherlevine/astroquery
cda88ef18b308563e86ee79bcc78e4ac59874df1
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ =============== eJWST TAP tests =============== European Space Astronomy Centre (ESAC) European Space Agency (ESA) """ planeids = "('00000000-0000-0000-879d-ae91fa2f43e2', '00000000-0000-0000-9852-a9fa8c63f7ef')"
43.897143
115
0.595266
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ =============== eJWST TAP tests =============== European Space Astronomy Centre (ESAC) European Space Agency (ESA) """ import os import shutil from unittest.mock import MagicMock import astropy.units as u import numpy as np import pytest from astrop...
0
1,535
0
42,687
0
579
0
349
649
90b56e9072ff77759975646cfa3e82041694b2d4
737
py
Python
docs/conf.py
ShantamShorewala/aizynthfinder
6b15d5846558b14c4ce3c353727d9d676af7f6fb
[ "MIT" ]
null
null
null
docs/conf.py
ShantamShorewala/aizynthfinder
6b15d5846558b14c4ce3c353727d9d676af7f6fb
[ "MIT" ]
null
null
null
docs/conf.py
ShantamShorewala/aizynthfinder
6b15d5846558b14c4ce3c353727d9d676af7f6fb
[ "MIT" ]
null
null
null
import os import sys sys.path.insert(0, os.path.abspath(".")) project = "aizynthfinder" copyright = "2020-2022, Molecular AI group" author = "Molecular AI group" release = "3.3.0" # This make sure that the cli_help.txt file is properly formated with open("cli_help.txt", "r") as fileobj: lines = fileobj.read().sp...
25.413793
86
0.694708
import os import sys sys.path.insert(0, os.path.abspath(".")) project = "aizynthfinder" copyright = "2020-2022, Molecular AI group" author = "Molecular AI group" release = "3.3.0" # This make sure that the cli_help.txt file is properly formated with open("cli_help.txt", "r") as fileobj: lines = fileobj.read().sp...
0
0
0
0
0
0
0
0
0
c41bc50ee88e3138d6b8c2fd1482bb7a081971bc
2,351
py
Python
main.py
johangenis/day-18-start
1d479505b0bb3223e6e8032303669d9f9d0c076c
[ "MIT" ]
null
null
null
main.py
johangenis/day-18-start
1d479505b0bb3223e6e8032303669d9f9d0c076c
[ "MIT" ]
null
null
null
main.py
johangenis/day-18-start
1d479505b0bb3223e6e8032303669d9f9d0c076c
[ "MIT" ]
null
null
null
from turtle import Turtle, Screen tim = Turtle() tim.shape("turtle") tim.color("red") tim.speed("fastest") # r = random.random() # b = random.random() # g = random.random() # rgb = (random.random(), random.random(), random.random()) draw_spirograph(5) # for shape_sides_n in range(3, 41): # draw_shapes(shape_...
20.991071
65
0.612505
import _tkinter from turtle import Turtle, Screen import random tim = Turtle() tim.shape("turtle") tim.color("red") tim.speed("fastest") # r = random.random() # b = random.random() # g = random.random() # rgb = (random.random(), random.random(), random.random()) def draw_shapes(num_sides): angle = 360/num_sides ...
0
0
0
0
0
1,588
0
-14
251
89af48b3ab87b7d65ea88b68ffd8b3bf3ae91a67
226
py
Python
example/JKBrickworks/1701_printer/print_space.py
HomeIT4all/micropython-ev3dev
fd59b55eb840d6e83a1e78d76a363af12c6d7f81
[ "MIT" ]
6
2019-04-16T08:32:38.000Z
2021-09-27T12:18:46.000Z
example/JKBrickworks/1701_printer/print_space.py
HomeIT4all/micropython-ev3dev
fd59b55eb840d6e83a1e78d76a363af12c6d7f81
[ "MIT" ]
null
null
null
example/JKBrickworks/1701_printer/print_space.py
HomeIT4all/micropython-ev3dev
fd59b55eb840d6e83a1e78d76a363af12c6d7f81
[ "MIT" ]
3
2019-12-22T16:13:38.000Z
2021-09-27T12:19:04.000Z
# My Blocks
17.384615
39
0.756637
from project import motor from project import variables # My Blocks from lower_pen import lower_pen from lift_pen import lift_pen def print_space(size): seg4 = variables['Seg4'] motor['A'].on_for_degrees(25, seg4)
0
0
0
0
0
70
0
30
112
12811944daf601d9b30ebfd6544d6de22d011f0a
6,181
py
Python
adminfind.py
blackXploits/AdminFind2
6222de245116b0fb77521ed54449a86a73a3f1d3
[ "MIT" ]
null
null
null
adminfind.py
blackXploits/AdminFind2
6222de245116b0fb77521ed54449a86a73a3f1d3
[ "MIT" ]
null
null
null
adminfind.py
blackXploits/AdminFind2
6222de245116b0fb77521ed54449a86a73a3f1d3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author: BlackXploits # Telegram: @BlackXploits # Please don't delete this COPYRIGHT import argparse import subprocess import signal import Queue import time from threading import Thread, Lock from sys import argv, stdout from os import getpid, kill w = '\033[0m' y = ...
31.535714
184
0.626759
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author: BlackXploits # Telegram: @BlackXploits # Please don't delete this COPYRIGHT import argparse import subprocess import signal import Queue import time from threading import Thread, Lock from sys import argv, stdout from os import getpid, kill w = '\033[0m' y = ...
0
0
0
1,238
0
1,790
0
0
141
8ac760cb94d7eff35d38268345a0ee40b72f61bd
249
py
Python
Day 2/OutPut.py
Soundarya0/30-Days-of-Code
c7b34826c96eaef97a4e4c2dd9e8a30a9daaf990
[ "MIT" ]
null
null
null
Day 2/OutPut.py
Soundarya0/30-Days-of-Code
c7b34826c96eaef97a4e4c2dd9e8a30a9daaf990
[ "MIT" ]
null
null
null
Day 2/OutPut.py
Soundarya0/30-Days-of-Code
c7b34826c96eaef97a4e4c2dd9e8a30a9daaf990
[ "MIT" ]
null
null
null
Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>>=======30 Days of Code/Day 2/Operators.py ====== 12.00 20 8 15 >>>
24.9
95
0.606426
Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>>=======30 Days of Code/Day 2/Operators.py ====== 12.00 20 8 15 >>>
0
0
0
0
0
0
0
0
0
e674cdc55fcf16b081aab4e42eb70a114f2254ff
61,641
py
Python
tensorflow_probability/python/internal/distribution_util_test.py
RogerFrigola/probability
cfb507b7ede2c1ba753bffc5ea827b9c97c37bdc
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/internal/distribution_util_test.py
RogerFrigola/probability
cfb507b7ede2c1ba753bffc5ea827b9c97c37bdc
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/internal/distribution_util_test.py
RogerFrigola/probability
cfb507b7ede2c1ba753bffc5ea827b9c97c37bdc
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
36.259412
80
0.633507
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
0
12,878
0
44,386
0
1,495
0
303
1,130
409adb4c2876471e91efadcd006af57a80bddfb1
839
py
Python
jobs/urls.py
mkimartinez/Lyfey
8a27ef7fea92146f043c68c7ef5ee3672014c3fc
[ "MIT" ]
null
null
null
jobs/urls.py
mkimartinez/Lyfey
8a27ef7fea92146f043c68c7ef5ee3672014c3fc
[ "MIT" ]
null
null
null
jobs/urls.py
mkimartinez/Lyfey
8a27ef7fea92146f043c68c7ef5ee3672014c3fc
[ "MIT" ]
null
null
null
from django.conf.urls import url import jobs.views as views from rest_framework.urlpatterns import format_suffix_patterns # urlpatterns = [ # url(r'^$', views.indexJobs, name='indexJobs'), app_name ='jobs' # ] urlpatterns = [ url(r'^$', views.jobsIndex, name='jobsIndex'), url(r'^j...
39.952381
79
0.705602
from django.conf.urls import url from django.contrib.staticfiles import views as static_views from django.conf.urls.static import static from django.conf import settings import jobs.views as views from django.views.generic import ListView,DetailView from jobs.models import Job from rest_framework.urlpatterns import for...
0
0
0
0
0
0
0
108
110
924962304e469d47a501a8bfc37a4a68f7833772
3,253
py
Python
2018/day15/combat.py
scrubskip/adventofcode2018
8149908d1239759597fda575432cf3ec99019dc0
[ "Apache-2.0" ]
null
null
null
2018/day15/combat.py
scrubskip/adventofcode2018
8149908d1239759597fda575432cf3ec99019dc0
[ "Apache-2.0" ]
null
null
null
2018/day15/combat.py
scrubskip/adventofcode2018
8149908d1239759597fda575432cf3ec99019dc0
[ "Apache-2.0" ]
null
null
null
# Sorts y coordinate first, then x. if __name__ == "__main__": main()
29.844037
89
0.57178
def main(): pass # Sorts y coordinate first, then x. def POSITION_COMPARATOR(x): return (x[1], x[0]) class Board: def __init__(self): self.state = [] self.width = -1 self.units = [] def add_row(self, row): self.state.append(row) if (self.width == -1): ...
0
184
0
2,873
0
25
0
0
91
dcae4afdf4101782c5dc6dab3ba349f227806355
1,564
py
Python
ironmq-alert-pagerduty.py
OnBeep/ironmq-alert-pagerduty
13e0fb906d494ec156069051731bf71d5c1ad257
[ "Apache-2.0" ]
1
2015-01-26T19:41:56.000Z
2015-01-26T19:41:56.000Z
ironmq-alert-pagerduty.py
OnBeep/ironmq-alert-pagerduty
13e0fb906d494ec156069051731bf71d5c1ad257
[ "Apache-2.0" ]
null
null
null
ironmq-alert-pagerduty.py
OnBeep/ironmq-alert-pagerduty
13e0fb906d494ec156069051731bf71d5c1ad257
[ "Apache-2.0" ]
null
null
null
import argparse import json import pygerduty import yaml parser = argparse.ArgumentParser(description="Simple argument parser") parser.add_argument("-config", type=str, required=False, help="The location of a file containing a JSON payload.") parser.add_argument("-payload", type=str, required=False, he...
30.076923
70
0.702685
import argparse import json import pprint import pygerduty import time import yaml parser = argparse.ArgumentParser(description="Simple argument parser") parser.add_argument("-config", type=str, required=False, help="The location of a file containing a JSON payload.") parser.add_argument("-payload", type=str, ...
0
0
0
0
0
0
0
-18
44
3ea59de0c0a271acba84f58574d3a231f8250293
776
py
Python
day02/main.py
Floozutter/aoc-2021-python
29f670d5026d4fe834efccdfedc362052549896b
[ "Unlicense" ]
null
null
null
day02/main.py
Floozutter/aoc-2021-python
29f670d5026d4fe834efccdfedc362052549896b
[ "Unlicense" ]
null
null
null
day02/main.py
Floozutter/aoc-2021-python
29f670d5026d4fe834efccdfedc362052549896b
[ "Unlicense" ]
null
null
null
INPUTPATH = "input.txt" #INPUTPATH = "input-test.txt" with open(INPUTPATH) as ifile: raw = ifile.read() commands = tuple(map(parse_command, raw.strip().split("\n"))) h = d = 0 for word, n in commands: match word: case "forward": h += n case "down": d += n case "u...
20.972973
61
0.483247
INPUTPATH = "input.txt" #INPUTPATH = "input-test.txt" with open(INPUTPATH) as ifile: raw = ifile.read() def parse_command(line: str) -> tuple[str, int]: word, n = line.split() return word, int(n) commands = tuple(map(parse_command, raw.strip().split("\n"))) h = d = 0 for word, n in commands: match wor...
0
0
0
0
0
78
0
0
23
f0a75dd3ab42a6474f2b5a90b908b179edc5d010
971
py
Python
source/scripts/python/ducktype/source/ducktype.py
lights0123/core
85b4cf004280f64c144a7111236a03021e39fdf9
[ "Apache-2.0" ]
1
2021-03-12T11:07:19.000Z
2021-03-12T11:07:19.000Z
source/scripts/python/ducktype/source/ducktype.py
lights0123/core
85b4cf004280f64c144a7111236a03021e39fdf9
[ "Apache-2.0" ]
null
null
null
source/scripts/python/ducktype/source/ducktype.py
lights0123/core
85b4cf004280f64c144a7111236a03021e39fdf9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3
22.068182
44
0.608651
#!/usr/bin/env python3 def multiply(left, right): result = left * right; print(left, ' * ', right, ' = ', result); return result; def divide(left, right): if right != 0.0: result = left / right; print(left, ' / ', right, ' = ', result); else: print('Invalid right operand: ', right); return result; def su...
0
0
0
0
0
764
0
0
184
6c5e94ad965376f9d4defe5b2bf499a9b31d9ca1
6,938
py
Python
extraction.py
davarbri/jpegForensics
66f20b861655481c4575430858977a80afddff65
[ "CC0-1.0" ]
null
null
null
extraction.py
davarbri/jpegForensics
66f20b861655481c4575430858977a80afddff65
[ "CC0-1.0" ]
null
null
null
extraction.py
davarbri/jpegForensics
66f20b861655481c4575430858977a80afddff65
[ "CC0-1.0" ]
null
null
null
# !/usr/bin/python3 # David Arboledas Brihuega # November 2021 # # ------------------------------------------------------ # This script is called by extractForensicJPEG to get # all the forensic data embebed in the jpeg files # -------------------------------------------------------- # import sys import binascii TRAI...
34.346535
79
0.53488
# !/usr/bin/python3 # David Arboledas Brihuega # November 2021 # # ------------------------------------------------------ # This script is called by extractForensicJPEG to get # all the forensic data embebed in the jpeg files # -------------------------------------------------------- # import sys import binascii impor...
0
0
0
0
0
6,088
0
12
278
d967be55e6cb52da3762f78abab30bc03ed2c8b0
391
py
Python
blogs/migrations/0033_emailer_notification_text.py
daaawx/bearblog
5e01e4443c632ff53b918cf8a0d3b1c648b352fe
[ "MIT" ]
657
2020-05-26T16:16:07.000Z
2022-03-26T22:35:01.000Z
blogs/migrations/0033_emailer_notification_text.py
daaawx/bearblog
5e01e4443c632ff53b918cf8a0d3b1c648b352fe
[ "MIT" ]
107
2020-05-26T17:45:04.000Z
2022-03-17T08:24:00.000Z
blogs/migrations/0033_emailer_notification_text.py
daaawx/bearblog
5e01e4443c632ff53b918cf8a0d3b1c648b352fe
[ "MIT" ]
42
2020-05-26T23:57:58.000Z
2022-03-15T04:20:26.000Z
# Generated by Django 3.0.7 on 2021-04-08 09:51
20.578947
47
0.603581
# Generated by Django 3.0.7 on 2021-04-08 09:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blogs', '0032_auto_20210408_0927'), ] operations = [ migrations.AddField( model_name='emailer', name='notification_t...
0
0
0
277
0
0
0
19
46
e375caa94d739899aaba48b2a38229c7a7c23855
13,044
py
Python
src/tenants/models.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
1
2016-01-18T08:19:22.000Z
2016-01-18T08:19:22.000Z
src/tenants/models.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
null
null
null
src/tenants/models.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2014, Deutsche Telekom AG - Laboratories (T-Labs) # # 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/lice...
33.880519
96
0.66797
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2014, Deutsche Telekom AG - Laboratories (T-Labs) # # 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/lice...
0
2,768
0
8,200
0
0
0
404
537
12b095adb60425a8605df3b0b9f6a57257c592e1
5,067
py
Python
seaworthy/containers/rabbitmq.py
praekeltfoundation/seaworthy
6f10a19b45d4ea1dc3bd0553cc4d0438696c079c
[ "BSD-3-Clause" ]
31
2017-11-21T12:21:31.000Z
2021-11-16T11:50:42.000Z
seaworthy/containers/rabbitmq.py
praekeltfoundation/seaworthy
6f10a19b45d4ea1dc3bd0553cc4d0438696c079c
[ "BSD-3-Clause" ]
91
2017-08-16T14:24:52.000Z
2020-01-16T10:13:52.000Z
seaworthy/containers/rabbitmq.py
praekeltfoundation/seaworthy
6f10a19b45d4ea1dc3bd0553cc4d0438696c079c
[ "BSD-3-Clause" ]
3
2018-10-13T07:56:02.000Z
2019-02-14T12:29:53.000Z
""" RabbitMQ container definition. """
34.006711
78
0.594632
""" RabbitMQ container definition. """ from seaworthy.definitions import ContainerDefinition from seaworthy.utils import output_lines def _parse_rabbitmq_user(user_line): user, tags = user_line.split('\t', 1) tags = tags.strip('[]').split(', ') return (user, tags) class RabbitMQContainer(ContainerDefin...
0
0
0
4,763
0
121
0
51
91
b9fca280646e6e89fc5b84533dc2566e7941b0bd
9,410
py
Python
Lib/gds/burp/api.py
mwielgoszewski/jython-burp-api
002383f7acc5fb237e3804fe5bd2aa2950a0240d
[ "0BSD" ]
134
2015-01-21T14:22:42.000Z
2021-09-02T10:52:43.000Z
Lib/gds/burp/api.py
d453d2/burp-jython-console
3cec3200ede2da0f1cdbf935efc340f073c07ea2
[ "0BSD" ]
7
2015-01-19T16:54:45.000Z
2018-10-10T15:10:13.000Z
Lib/gds/burp/api.py
d453d2/burp-jython-console
3cec3200ede2da0f1cdbf935efc340f073c07ea2
[ "0BSD" ]
29
2015-02-13T14:08:23.000Z
2021-12-17T03:17:40.000Z
# -*- coding: utf-8 -*- ''' gds.burp.api ~~~~~~~~~~~~ This module implements the Jython Burp Plugin API. Plugins written in Jython can implement the interfaces in this package in order to register for various methods exposed by Burp Extender. ''' __all__ = [ 'INewScanIssueHandler', 'IExtenderRequestHandler'...
27.595308
71
0.679809
# -*- coding: utf-8 -*- ''' gds.burp.api ~~~~~~~~~~~~ This module implements the Jython Burp Plugin API. Plugins written in Jython can implement the interfaces in this package in order to register for various methods exposed by Burp Extender. ''' from .core import Interface __all__ = [ 'INewScanIssueHandler', ...
0
0
0
8,191
0
0
0
6
413
1243bbe5c8b07ce563c0e5bf91f426e6d0292391
65,985
py
Python
nitropyapp/ui/mainwindowtest.py
Nitrokey/nitrokey-app2
ab66bbceb854e1f18987b0331528e86e3e7ff702
[ "Apache-2.0" ]
1
2021-11-23T12:54:35.000Z
2021-11-23T12:54:35.000Z
nitropyapp/ui/mainwindowtest.py
Nitrokey/nitrokey-app2
ab66bbceb854e1f18987b0331528e86e3e7ff702
[ "Apache-2.0" ]
null
null
null
nitropyapp/ui/mainwindowtest.py
Nitrokey/nitrokey-app2
ab66bbceb854e1f18987b0331528e86e3e7ff702
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'mainwindowtest.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing.
65.46131
406
0.736576
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'mainwindowtest.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCor...
0
0
0
65,601
0
0
0
19
68
45b79edc02fd781ca28eb52676d72c73c84cd286
452
py
Python
src/worker/__init__.py
mehsoy/jaws
b79723c1fc549741494ebf5d948e94a44e971f2a
[ "MIT" ]
1
2019-06-17T17:01:17.000Z
2019-06-17T17:01:17.000Z
src/worker/__init__.py
mehsoy/jaws
b79723c1fc549741494ebf5d948e94a44e971f2a
[ "MIT" ]
7
2021-02-08T20:46:15.000Z
2021-09-08T02:12:59.000Z
src/worker/__init__.py
mehsoy/jaws
b79723c1fc549741494ebf5d948e94a44e971f2a
[ "MIT" ]
null
null
null
#!/usr/bin/python #-*- coding: utf-8 -*- """.. module:: blueprints """
23.789474
52
0.575221
#!/usr/bin/python #-*- coding: utf-8 -*- """.. module:: blueprints """ import json from flask import request, abort, current_app def auth_required(func): def check_auth(*args, **kwargs): try: token = request.cookies.get('token'), if token != current_app.config['token']: ...
0
0
0
0
0
298
0
14
68
037089f36a7441ea98b0f35ec71d28ad247195e7
917
py
Python
apiview_viewset_with_models/permissions.py
arabindamahato/DjangoREST_API_DRF
5292f47c4f29e64de4b5c15dc254a892b2661639
[ "MIT" ]
null
null
null
apiview_viewset_with_models/permissions.py
arabindamahato/DjangoREST_API_DRF
5292f47c4f29e64de4b5c15dc254a892b2661639
[ "MIT" ]
4
2021-03-19T01:51:07.000Z
2021-09-22T18:52:10.000Z
apiview_viewset_with_models/permissions.py
arabindamahato/DjangoREST_API_DRF
5292f47c4f29e64de4b5c15dc254a892b2661639
[ "MIT" ]
null
null
null
''' If the name is arabinda then allow all methods If the name is not arabinda and the name contains even number of characters then allow only SAFE_METHODS otherwise not allowed to perform any operation. '''
24.131579
88
0.742639
from rest_framework.permissions import BasePermission, SAFE_METHODS class IsReadOnly(BasePermission): def has_permission(self, request, view): if request.method in SAFE_METHODS: return True else: return False class IsGetOrPatch(BasePermission): def has_permission(self, request, view): allowed_methods ...
0
0
0
565
0
0
0
46
90
bad2d5229202ece78e93c204d8d954bec36390b7
552
py
Python
python/nRF2401/__init__.py
natdan/AVR-Bootloaders
f01768fe1b6f3f2ba2602bfaef155a87afae0937
[ "Apache-2.0" ]
3
2018-02-13T21:39:55.000Z
2018-04-26T18:17:39.000Z
python/nRF2401/__init__.py
natdan/AVR-Bootloaders
f01768fe1b6f3f2ba2602bfaef155a87afae0937
[ "Apache-2.0" ]
null
null
null
python/nRF2401/__init__.py
natdan/AVR-Bootloaders
f01768fe1b6f3f2ba2602bfaef155a87afae0937
[ "Apache-2.0" ]
null
null
null
################################################################################# # Copyright (c) 2018 Creative Sphere Limited. # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License v2.0 # which accompanies this distribution, and is available at # ...
39.428571
81
0.541667
################################################################################# # Copyright (c) 2018 Creative Sphere Limited. # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License v2.0 # which accompanies this distribution, and is available at # ...
0
0
0
0
0
0
0
8
23
6c688764869b16c1adb550bc52167a7ee9753b4b
84
py
Python
scripts/test12.py
spencerparkin/MathTree
4aa286248c2dc6a34ad2ef3e56d48b60838f3b72
[ "MIT" ]
null
null
null
scripts/test12.py
spencerparkin/MathTree
4aa286248c2dc6a34ad2ef3e56d48b60838f3b72
[ "MIT" ]
null
null
null
scripts/test12.py
spencerparkin/MathTree
4aa286248c2dc6a34ad2ef3e56d48b60838f3b72
[ "MIT" ]
null
null
null
# test12.py a = _n('a') b = _n('b') c = _n('c') root = a + a + a^b + b^a + a^(b|c)
12
34
0.392857
# test12.py a = _n('a') b = _n('b') c = _n('c') root = a + a + a^b + b^a + a^(b|c)
0
0
0
0
0
0
0
0
0
8302c64afce11bb6a7c70e83a8cef5c89491def6
16,644
py
Python
adamspy/postprocess/ppt.py
bthornton191/Adams_Modules
e5473c6dc194148353cefb9964ad2081e79741d7
[ "MIT" ]
5
2019-07-01T01:38:44.000Z
2020-05-18T00:56:41.000Z
adamspy/postprocess/ppt.py
bthornton191/Adams_Modules
e5473c6dc194148353cefb9964ad2081e79741d7
[ "MIT" ]
4
2020-03-24T16:55:01.000Z
2021-03-20T00:44:18.000Z
adamspy/postprocess/ppt.py
bthornton191/adamspy
e5473c6dc194148353cefb9964ad2081e79741d7
[ "MIT" ]
null
null
null
"""This module is for sending scripts through Adams/PPT """ import os import subprocess import re import time import platform import jinja2 from numpy import genfromtxt from thornpy.signal import manually_clean_sig, remove_data_point, manually_clean_sigs, low_pass from thornpy.signal import _clean_sig as clean_sig ...
39.070423
259
0.665765
"""This module is for sending scripts through Adams/PPT """ import os import subprocess import re import time import platform import jinja2 from numpy import genfromtxt import matplotlib.pyplot as plt from thornpy.signal import manually_clean_sig, remove_data_point, manually_clean_sigs, low_pass from thornpy.signal i...
0
0
0
97
0
3,928
0
10
141
1b93c694f6d898cd16deab7c152e24c19de63302
3,375
py
Python
middleware.py
CloudCIX/framework
321b4b953a2b2083c069fff133e538ea1ecca4a7
[ "Apache-2.0" ]
null
null
null
middleware.py
CloudCIX/framework
321b4b953a2b2083c069fff133e538ea1ecca4a7
[ "Apache-2.0" ]
null
null
null
middleware.py
CloudCIX/framework
321b4b953a2b2083c069fff133e538ea1ecca4a7
[ "Apache-2.0" ]
null
null
null
""" Move this to wherever once we establish a setup for the Application Framework """ from typing import Callable from django.http.response import HttpResponseBase from rest_framework.request import Request GetResponseType = Callable[[Request], HttpResponseBase]
38.352273
116
0.670519
""" Move this to wherever once we establish a setup for the Application Framework """ import re from collections import deque from typing import Callable, Deque from time import perf_counter from cloudcix_metrics import prepare_metrics from django.http.response import HttpResponseBase from rest_framework.request impor...
0
0
0
2,841
0
0
0
88
180
5964a3e664b876222f49cd0a42cdf3eea5b32fd9
1,505
py
Python
pyirc.py
Psyrens/pyirc
4a7a8dde72108bf7a9bc181e4da8315ecbb31eac
[ "Apache-2.0" ]
null
null
null
pyirc.py
Psyrens/pyirc
4a7a8dde72108bf7a9bc181e4da8315ecbb31eac
[ "Apache-2.0" ]
null
null
null
pyirc.py
Psyrens/pyirc
4a7a8dde72108bf7a9bc181e4da8315ecbb31eac
[ "Apache-2.0" ]
null
null
null
while True: choc = str(input("[1] Host\n[2] Connect\n[0] Exit\n")) if choc == '1': hirc() elif choc == '2': circ() elif choc == '0': exit(0) else: print("wrong input, try again")
25.948276
90
0.568771
from socket import * def hirc(): username = input("username: ") ip = input("ip: ") port = input("port: ") s = socket(2, 1) try: s.bind((str(ip), int(port))) s.listen(10) print("listening on " + str(ip) + " through port " + str(port)) c, addr = s.accept() print("connected to " + str(addr[0]) + " through ...
0
0
0
0
0
1,245
0
-1
68
e78c346f257ad43b5df6948913c28611c88332ec
2,345
py
Python
src/inference/__init__.py
DecBayComp/tramway-tour
d0ac3e3fdc2c3a6110941ab6e251e4e4fc0375a3
[ "0BSD" ]
null
null
null
src/inference/__init__.py
DecBayComp/tramway-tour
d0ac3e3fdc2c3a6110941ab6e251e4e4fc0375a3
[ "0BSD" ]
null
null
null
src/inference/__init__.py
DecBayComp/tramway-tour
d0ac3e3fdc2c3a6110941ab6e251e4e4fc0375a3
[ "0BSD" ]
null
null
null
from ..data import project_dir datafile = project_dir / 'data/Image_traj.txt'
26.348315
87
0.637527
from tramway.analyzer import * import numpy as np import pandas as pd from ..data import project_dir datafile = project_dir / 'data/Image_traj.txt' def reset_data(): import os rwa_file = os.path.splitext(str(datafile))[0]+'.rwa' try: os.unlink(rwa_file) except FileNotFoundError: pass ...
6
0
0
0
0
2,100
0
4
158
57abae4fea2a1eb0b1d9a72b06df545edebc3f4e
1,859
py
Python
api/tests/integration/tests/basic/reaction_instrumentation.py
tsingdao-Tp/Indigo
b2d73faebb6a450e9b3d34fed553fad4f9d0012f
[ "Apache-2.0" ]
204
2015-11-06T21:34:34.000Z
2022-03-30T16:17:01.000Z
api/tests/integration/tests/basic/reaction_instrumentation.py
tsingdao-Tp/Indigo
b2d73faebb6a450e9b3d34fed553fad4f9d0012f
[ "Apache-2.0" ]
509
2015-11-05T13:54:43.000Z
2022-03-30T22:15:30.000Z
api/tests/integration/tests/basic/reaction_instrumentation.py
tsingdao-Tp/Indigo
b2d73faebb6a450e9b3d34fed553fad4f9d0012f
[ "Apache-2.0" ]
89
2015-11-17T08:22:54.000Z
2022-03-17T04:26:28.000Z
import os import sys sys.path.append(os.path.normpath(os.path.join(os.path.abspath(__file__), '..', '..', '..', "common"))) indigo = Indigo() indigo.setOption("molfile-saving-skip-date", "1") testReactionInstrumentation()
39.553191
102
0.661646
import os import sys sys.path.append(os.path.normpath(os.path.join(os.path.abspath(__file__), '..', '..', '..', "common"))) from env_indigo import * indigo = Indigo() indigo.setOption("molfile-saving-skip-date", "1") def testReactionInstrumentation (): rxn = indigo.loadReaction("[PH5].CN>CC>") rxn.addReactant...
0
0
0
0
0
1,581
0
3
45
b69f0ff0899bd61bd2f6bd0ca491ed121c2beea4
325
py
Python
exercicios_pyhton/leia_int_leia_fload/teste.py
wcalazans81/cursoemvideo_de_python
b3f093477407d4936b87907910c85472fea98469
[ "MIT" ]
null
null
null
exercicios_pyhton/leia_int_leia_fload/teste.py
wcalazans81/cursoemvideo_de_python
b3f093477407d4936b87907910c85472fea98469
[ "MIT" ]
null
null
null
exercicios_pyhton/leia_int_leia_fload/teste.py
wcalazans81/cursoemvideo_de_python
b3f093477407d4936b87907910c85472fea98469
[ "MIT" ]
null
null
null
try: a = int(input('digite um valor')) b = int(input('di')) r = a / b except (ValueError, TypeError): print('Houve um problema com dados digitados!') except KeyboardInterrupt: print('preferio no continuar') else: print(f'o resultado {r:.2f:}') finally: print('Volte sempre! Muito obrigado!'...
21.666667
51
0.643077
try: a = int(input('digite um valor')) b = int(input('di')) r = a / b except (ValueError, TypeError): print('Houve um problema com dados digitados!') except KeyboardInterrupt: print('preferio não continuar') else: print(f'o resultado é {r:.2f:}') finally: print('Volte sempre! Muito obrigado...
4
0
0
0
0
0
0
0
0
2913f9c1c1150f1df6a7a978fb35f0784fed07d3
970
py
Python
mydays/homeinventory-orm/data_models.py
feoh/100daysofcode-with-python-course
35ee1d8181b80e5bcb28af59e8d81e90095ee784
[ "MIT" ]
null
null
null
mydays/homeinventory-orm/data_models.py
feoh/100daysofcode-with-python-course
35ee1d8181b80e5bcb28af59e8d81e90095ee784
[ "MIT" ]
null
null
null
mydays/homeinventory-orm/data_models.py
feoh/100daysofcode-with-python-course
35ee1d8181b80e5bcb28af59e8d81e90095ee784
[ "MIT" ]
null
null
null
from sqlalchemy.ext.declarative import declarative_base ModelBase = declarative_base()
30.3125
77
0.689691
from sqlalchemy import Column, Integer, String, ForeignKey from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship ModelBase = declarative_base() class Room(ModelBase): __tablename__ = "rooms" id = Column(Integer, primary_key=True) name = Column(String, nullable=Fal...
0
0
0
736
0
0
0
55
90
b6697cf64cf136ce5293e73907be72df94015a5a
3,006
py
Python
atomdata.py
fsponciano/HPB_tools
845e3fdf2cc0c1b3b93123ea0ca718c5b8406cf3
[ "MIT" ]
null
null
null
atomdata.py
fsponciano/HPB_tools
845e3fdf2cc0c1b3b93123ea0ca718c5b8406cf3
[ "MIT" ]
null
null
null
atomdata.py
fsponciano/HPB_tools
845e3fdf2cc0c1b3b93123ea0ca718c5b8406cf3
[ "MIT" ]
null
null
null
""" --- Atom data --- Written by D. J. Whiting (2017) ** Modified by F. S. Ponciano Ojeda (2021) ** Quantum Light & Matter Group, Durham University, UK Simple database for housing atomic species data for use in calculations of energy levels. """ def atomic_structure_coefficients(atom,I,L,J): ''' ...
33.032967
78
0.401863
""" --- Atom data --- Written by D. J. Whiting (2017) ** Modified by F. S. Ponciano Ojeda (2021) ** Quantum Light & Matter Group, Durham University, UK Simple database for housing atomic species data for use in calculations of energy levels. """ def atomic_structure_coefficients(atom,I,L,J): ''' ...
0
0
0
0
0
0
0
0
0
7ceed2a1f72286660c32d46a8d902c63ac35caf7
2,596
py
Python
solar_system/main.py
0xzhang/taichi-play
f3285f3db235035bf5cff39938e546138317cd70
[ "MIT" ]
4
2021-10-02T07:12:14.000Z
2022-02-17T05:51:12.000Z
solar_system/main.py
0xzhang/taichi-play
f3285f3db235035bf5cff39938e546138317cd70
[ "MIT" ]
null
null
null
solar_system/main.py
0xzhang/taichi-play
f3285f3db235035bf5cff39938e546138317cd70
[ "MIT" ]
1
2022-02-17T05:51:11.000Z
2022-02-17T05:51:11.000Z
import taichi as ti ti.init(arch=ti.gpu) if __name__ == "__main__": main()
28.844444
77
0.607858
import taichi as ti from solar_system import SolarSystem, Sun, Planet from datetime import datetime ti.init(arch=ti.gpu) def init_solarsystem(): sun = Sun(0.2) ss = SolarSystem(sun) sun.initialize(ti.Vector([1, 0, 0])) # 2018-01-01 ss.date = datetime.strptime("2018-01-01", '%Y-%m-%d').date() ...
0
0
0
0
0
2,387
0
36
90
ff7e81e102507c4497d7b7914010c6b208c9cea5
4,655
py
Python
tests/unit/test_algorithm.py
benjaminkaplanphd/traveling-salesperson
5c788554fe90eeb81b6351aeec96f1d64caa7591
[ "MIT" ]
null
null
null
tests/unit/test_algorithm.py
benjaminkaplanphd/traveling-salesperson
5c788554fe90eeb81b6351aeec96f1d64caa7591
[ "MIT" ]
null
null
null
tests/unit/test_algorithm.py
benjaminkaplanphd/traveling-salesperson
5c788554fe90eeb81b6351aeec96f1d64caa7591
[ "MIT" ]
null
null
null
""" Unit tests for the algorithm.py module """ # pragma pylint: disable=redefined-outer-name import numpy as np from traveling_salesperson import algorithm def test_nearest_neighbor_path_returns_expected_path(sub_optimal_path_fixture, pyramid_distance_matrix_fi...
42.706422
100
0.612245
""" Unit tests for the algorithm.py module """ # pragma pylint: disable=redefined-outer-name import numpy as np import pytest from traveling_salesperson import algorithm @pytest.fixture() def pyramid_distance_matrix_fixture(): r"""A distance matrix, corresponding to a lopsided pyramid, for testing the neares...
0
1,598
0
0
0
0
0
-8
137
c51bddc364ce33d4504970da44a3ed490f7192ac
6,104
py
Python
ports/esp32/modules/hw_utils.py
tempstabilizer2018group/micropython_esp32
0bc16f1954a65adb9ad01578004744d424ef0c27
[ "MIT" ]
null
null
null
ports/esp32/modules/hw_utils.py
tempstabilizer2018group/micropython_esp32
0bc16f1954a65adb9ad01578004744d424ef0c27
[ "MIT" ]
null
null
null
ports/esp32/modules/hw_utils.py
tempstabilizer2018group/micropython_esp32
0bc16f1954a65adb9ad01578004744d424ef0c27
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import gc import uos import hw_urequests import machine import portable_firmware_constants strMAC = ''.join(['%02X'%i for i in machine.unique_id()]) # # Watchdog # objWdt = None feedWatchdog = lambda: None '''True if power on. False if reboot by software or watchdog.''' bPowerOnBoot = machi...
25.647059
176
0.717071
# -*- coding: utf-8 -*- import gc import uos import utime import hw_urequests import machine import portable_firmware_constants strMAC = ''.join(['%02X'%i for i in machine.unique_id()]) # # Watchdog # objWdt = None feedWatchdog = lambda: None '''True if power on. False if reboot by software or watchdog.''' bPowerO...
0
0
0
1,468
0
1,398
0
-9
316
9e116ca2287be4b26e9927d7c53033ee159c6e05
7,047
py
Python
netapp/santricity/models/symbol/rtr_attributes.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
5
2016-08-23T17:52:22.000Z
2019-05-16T08:45:30.000Z
netapp/santricity/models/symbol/rtr_attributes.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
2
2016-11-10T05:30:21.000Z
2019-04-05T15:03:37.000Z
netapp/santricity/models/symbol/rtr_attributes.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
7
2016-08-25T16:11:44.000Z
2021-02-22T05:31:25.000Z
# coding: utf-8 """ RTRAttributes.py The Clear BSD License Copyright (c) 2016, NetApp, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met: *...
38.298913
844
0.639563
# coding: utf-8 """ RTRAttributes.py The Clear BSD License Copyright (c) – 2016, NetApp, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met: ...
3
2,639
0
2,641
0
0
0
9
68
e863de41a399ceaed49791d306754ebb714ed1ab
1,353
py
Python
agent_training.py
eym55/power_grid_sim
35822a2d2f09c00a38841e0bf3395bc5ea0ddbaa
[ "MIT" ]
1
2022-01-26T15:19:15.000Z
2022-01-26T15:19:15.000Z
agent_training.py
eym55/power_grid_sim
35822a2d2f09c00a38841e0bf3395bc5ea0ddbaa
[ "MIT" ]
null
null
null
agent_training.py
eym55/power_grid_sim
35822a2d2f09c00a38841e0bf3395bc5ea0ddbaa
[ "MIT" ]
null
null
null
import ray #Import any agents you want to train, list found here: https://docs.ray.io/en/latest/rllib/rllib-algorithms.html from ray.rllib.agents import dqn from environments.defender_game import PowerGrid import pypsa import numpy as np import time from ray.tune.logger import pretty_print from agents import RandomAgen...
25.055556
112
0.717664
import gym, ray #Import any agents you want to train, list found here: https://docs.ray.io/en/latest/rllib/rllib-algorithms.html from ray.rllib.agents import ppo,dqn,a3c from environments.defender_game import PowerGrid import pypsa import numpy as np from ray.tune.registry import register_env import pickle import time ...
0
0
0
0
0
0
0
26
44
6ac7be1fd3253acff69b48cbe8419a293101969a
467
py
Python
Python/math/mod_sqrt.py
NatsubiSogan/comp_library
9f06d947951db40e051bd506fd8722fb75c3688b
[ "Apache-2.0" ]
2
2021-09-05T13:17:01.000Z
2021-09-05T13:17:06.000Z
Python/math/mod_sqrt.py
NatsubiSogan/comp_library
9f06d947951db40e051bd506fd8722fb75c3688b
[ "Apache-2.0" ]
null
null
null
Python/math/mod_sqrt.py
NatsubiSogan/comp_library
9f06d947951db40e051bd506fd8722fb75c3688b
[ "Apache-2.0" ]
null
null
null
# mod-sqrt
21.227273
42
0.423983
import random # mod-sqrt def mod_sqrt(a: int, p: int) -> int: if a == 0: return 0 if p == 2: return 1 k = (p - 1) // 2 if pow(a, k, p) != 1: return -1 while True: n = random.randint(2, p - 1) r = (n ** 2 - a) % p if r == 0: return n if pow(r, k, p) == p - 1: break k += 1 w, x, y, z = n, 1, 1, 0 while k...
0
0
0
0
0
420
0
-8
44
138bb55fa6c8950896b53a74ca9ec35fea63f4c4
21,762
py
Python
src/load_cvs/cvload.py
ODM2/ODM2
a474e20718f69cac3214c3fc3cb2eb2a410e22aa
[ "BSD-3-Clause" ]
39
2015-07-13T15:03:32.000Z
2021-12-13T21:17:40.000Z
src/load_cvs/cvload.py
ODM2/ODM2
a474e20718f69cac3214c3fc3cb2eb2a410e22aa
[ "BSD-3-Clause" ]
77
2015-04-27T21:43:20.000Z
2020-08-11T03:03:36.000Z
src/load_cvs/cvload.py
ODM2/ODM2
a474e20718f69cac3214c3fc3cb2eb2a410e22aa
[ "BSD-3-Clause" ]
18
2015-08-11T21:52:21.000Z
2021-05-17T18:23:05.000Z
from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker import sys # Supporting Python3 try: import urllib.request as request except ImportError: import urllib as request import xml.etree.ElementTree as ET # ######################################################################...
39.711679
144
0.614006
from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker import sys # Supporting Python3 try: import urllib.request as request except ImportError: import urllib as request import xml.etree.ElementTree as ET import argparse import pymysql import pyodbc import psycopg2 # ###...
0
0
0
14,010
0
941
0
-10
913
4c56c7968b1478675e4c35cdac29eb5ac742a750
3,837
py
Python
pymanopt/autodiff/backends/_pytorch.py
NoemieJaquier/pymanopt
f3ae54b5ebc648a193e64acdb75c97885391c3d7
[ "BSD-3-Clause" ]
null
null
null
pymanopt/autodiff/backends/_pytorch.py
NoemieJaquier/pymanopt
f3ae54b5ebc648a193e64acdb75c97885391c3d7
[ "BSD-3-Clause" ]
null
null
null
pymanopt/autodiff/backends/_pytorch.py
NoemieJaquier/pymanopt
f3ae54b5ebc648a193e64acdb75c97885391c3d7
[ "BSD-3-Clause" ]
null
null
null
""" Module containing functions to differentiate functions using pytorch. """ try: import torch except ImportError: torch = None else: from .. import make_tracing_backend_decorator PyTorch = make_tracing_backend_decorator(_PyTorchBackend)
35.859813
79
0.63852
""" Module containing functions to differentiate functions using pytorch. """ import functools import warnings import numpy as np try: import torch except ImportError: torch = None else: from torch import autograd from ._backend import Backend from .. import make_tracing_backend_decorator from ...tools im...
0
2,874
0
498
0
0
0
54
161
1c37bc84fb69610331ac21e64650183042302f84
2,438
py
Python
Organise-Files-According-To-Their-Extensions/script_dirs.py
A-kriti/Amazing-Python-Scripts
ebf607fe39e6d9e61f30ec3439fc8d6ab1f736b9
[ "MIT" ]
930
2020-09-05T22:07:28.000Z
2022-03-30T07:56:18.000Z
Organise-Files-According-To-Their-Extensions/script_dirs.py
maheshdbabar9340/Amazing-Python-Scripts
e2272048cbe49b4bda5072bbdd8479739bb6c18d
[ "MIT" ]
893
2020-09-04T07:57:24.000Z
2022-02-08T02:12:26.000Z
Organise-Files-According-To-Their-Extensions/script_dirs.py
maheshdbabar9340/Amazing-Python-Scripts
e2272048cbe49b4bda5072bbdd8479739bb6c18d
[ "MIT" ]
497
2020-09-05T08:16:24.000Z
2022-03-31T00:55:57.000Z
import os from pathlib import Path import sys # Taking input print_string = """ Type Path of the directory OR Press enter for running the script on current directory: OR Type quit """ print(print_string + "\n\n") input_path = input("Input:") print("\n\n") # Script will terminate if input is 'quit' if input_path == "q...
31.25641
118
0.684988
import os from pathlib import Path import sys # Taking input print_string = """ Type Path of the directory OR Press enter for running the script on current directory: OR Type quit """ print(print_string + "\n\n") input_path = input("Input:") print("\n\n") # Script will terminate if input is 'quit' if input_path == "q...
0
0
0
0
0
0
0
0
0
5b238bc281f162f7e937c41dc61c9bf5d6246f5d
7,586
py
Python
main.py
Nebula4869/seu-auto-health-check-in
70d7e8fab352d616e0299a492957b2a17e56fd4f
[ "MIT" ]
null
null
null
main.py
Nebula4869/seu-auto-health-check-in
70d7e8fab352d616e0299a492957b2a17e56fd4f
[ "MIT" ]
1
2021-11-11T06:58:40.000Z
2021-11-11T06:58:40.000Z
main.py
Nebula4869/seu-auto-health-check-in
70d7e8fab352d616e0299a492957b2a17e56fd4f
[ "MIT" ]
null
null
null
import time from selenium import webdriver from selenium import common import func_timeout import datetime import logging import sys import os MAX_RETRIES = 0 def send_massage(content: str): """ / :param content: :return: None """ # TODO: / logger.info(content) ...
35.615023
184
0.60928
import time from selenium import webdriver from selenium import common import func_timeout import datetime import requests import logging import zipfile import winreg import sys import os MAX_RETRIES = 0 def send_massage(content: str): """ 发送短信/邮件 :param content: 邮件内容 :return...
915
3,269
0
0
0
0
0
-21
119
d29bcdb8b1f78c5c097ab0032be5256583012fd3
392
py
Python
users/migrations/0003_auto_20200803_1949.py
asanka9/Donation-Project
7182ccad58bd6e61ccc29b79bbab28e428ed2a17
[ "Apache-2.0" ]
null
null
null
users/migrations/0003_auto_20200803_1949.py
asanka9/Donation-Project
7182ccad58bd6e61ccc29b79bbab28e428ed2a17
[ "Apache-2.0" ]
null
null
null
users/migrations/0003_auto_20200803_1949.py
asanka9/Donation-Project
7182ccad58bd6e61ccc29b79bbab28e428ed2a17
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.5 on 2020-08-03 14:19
20.631579
47
0.59949
# Generated by Django 3.0.5 on 2020-08-03 14:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0002_auto_20200803_0900'), ] operations = [ migrations.AlterField( model_name='profile', name='user_descrip...
0
0
0
278
0
0
0
19
46
a5ae6b2ca16dd14e888d229c983beda49888f2d0
7,950
py
Python
code/socialDistribution/tests/test_models.py
CMPUT404F21TEAM/social-distribution
c6775bfa3bf93025d426bc4601431128a51d4c48
[ "W3C-20150513" ]
null
null
null
code/socialDistribution/tests/test_models.py
CMPUT404F21TEAM/social-distribution
c6775bfa3bf93025d426bc4601431128a51d4c48
[ "W3C-20150513" ]
173
2021-09-30T00:12:03.000Z
2021-12-09T00:32:46.000Z
code/socialDistribution/tests/test_models.py
CMPUT404F21TEAM/social-distribution
c6775bfa3bf93025d426bc4601431128a51d4c48
[ "W3C-20150513" ]
3
2021-12-09T01:27:49.000Z
2022-03-11T06:04:16.000Z
# python manage.py test api.tests.tests.test_models
33.544304
140
0.67522
# python manage.py test api.tests.tests.test_models from django.test import TestCase, TransactionTestCase from django.contrib.auth.models import User from django.db.utils import IntegrityError from django.test.testcases import LiveServerTestCase, LiveServerThread from mixer.backend.django import mixer from datetime i...
0
585
0
6,752
0
0
0
219
338
f71fca6c7b717f1271683d16d11ce61370e99869
2,628
py
Python
Apps/phforescoutcounteract/forescoutcounteract_consts.py
ryanbsaunders/phantom-apps
1befda793a08d366fbd443894f993efb1baf9635
[ "Apache-2.0" ]
74
2019-10-22T02:00:53.000Z
2022-03-15T12:56:13.000Z
Apps/phforescoutcounteract/forescoutcounteract_consts.py
ryanbsaunders/phantom-apps
1befda793a08d366fbd443894f993efb1baf9635
[ "Apache-2.0" ]
375
2019-10-22T20:53:50.000Z
2021-11-09T21:28:43.000Z
Apps/phforescoutcounteract/forescoutcounteract_consts.py
ryanbsaunders/phantom-apps
1befda793a08d366fbd443894f993efb1baf9635
[ "Apache-2.0" ]
175
2019-10-23T15:30:42.000Z
2021-11-05T21:33:31.000Z
# File: forescoutcounteract_consts.py # Copyright (c) 2018-2021 Splunk Inc. # # Licensed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) # # -- # Define your constants here FS_DEX_HOST_ENDPOINT = '/fsapi/niCore/Hosts' FS_DEX_LIST_ENDPOINT = '/fsapi/niCore/Lists' FS_DEX_TEST_CONNECTIVITY = \ """...
36.5
117
0.619102
# File: forescoutcounteract_consts.py # Copyright (c) 2018-2021 Splunk Inc. # # Licensed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) # # -- # Define your constants here FS_DEX_HOST_ENDPOINT = '/fsapi/niCore/Hosts' FS_DEX_LIST_ENDPOINT = '/fsapi/niCore/Lists' FS_DEX_TEST_CONNECTIVITY = \ """...
0
0
0
0
0
0
0
0
0
58ea3a89d749ffe3fc11bef9fbc1ff02d402159e
111
py
Python
pocovidnet/pocovidnet/__init__.py
sbaktha/covid19_pocus_ultrasound
876558a118c7afbe7a520efcc07581af6f8ffbb2
[ "MIT" ]
null
null
null
pocovidnet/pocovidnet/__init__.py
sbaktha/covid19_pocus_ultrasound
876558a118c7afbe7a520efcc07581af6f8ffbb2
[ "MIT" ]
null
null
null
pocovidnet/pocovidnet/__init__.py
sbaktha/covid19_pocus_ultrasound
876558a118c7afbe7a520efcc07581af6f8ffbb2
[ "MIT" ]
null
null
null
from .model import get_cam_model, get_model MODEL_FACTORY = {'vgg_base': get_model, 'vgg_cam': get_cam_model}
27.75
65
0.783784
from .model import get_cam_model, get_model MODEL_FACTORY = {'vgg_base': get_model, 'vgg_cam': get_cam_model}
0
0
0
0
0
0
0
0
0
fb30c68225ff4cb29b410c7a04cb4eb7cd493066
243
py
Python
students/K33421/laboratory_works/Dzhapua_Esnat/laboratory_work_1/task_1/client.py
esnogram/ITMO_ICT_WebDevelopment_2020-2021
22a3d776463d50431a5745facaf7b4d55dd73b55
[ "MIT" ]
null
null
null
students/K33421/laboratory_works/Dzhapua_Esnat/laboratory_work_1/task_1/client.py
esnogram/ITMO_ICT_WebDevelopment_2020-2021
22a3d776463d50431a5745facaf7b4d55dd73b55
[ "MIT" ]
null
null
null
students/K33421/laboratory_works/Dzhapua_Esnat/laboratory_work_1/task_1/client.py
esnogram/ITMO_ICT_WebDevelopment_2020-2021
22a3d776463d50431a5745facaf7b4d55dd73b55
[ "MIT" ]
null
null
null
import socket conn = socket.socket(socket.AF_INET, socket.SOCK_STREAM) conn.connect (("127.0.0.1", 14900)) hels = "Hello, server" conn.send(bytes(hels, "utf-8")) data = conn.recv(16384) udata = data.decode("utf-8") print(udata) conn.close()
20.25
56
0.703704
import socket conn = socket.socket(socket.AF_INET, socket.SOCK_STREAM) conn.connect (("127.0.0.1", 14900)) hels = "Hello, server" conn.send(bytes(hels, "utf-8")) data = conn.recv(16384) udata = data.decode("utf-8") print(udata) conn.close()
0
0
0
0
0
0
0
0
0
262de512c12b00516269ac71506a70c2a6b03971
1,926
py
Python
cpstats/view.py
gye-tgm/cpstats
ab1b3bbabc4fe4dbeaffee23c79333b10b6775ed
[ "MIT" ]
null
null
null
cpstats/view.py
gye-tgm/cpstats
ab1b3bbabc4fe4dbeaffee23c79333b10b6775ed
[ "MIT" ]
null
null
null
cpstats/view.py
gye-tgm/cpstats
ab1b3bbabc4fe4dbeaffee23c79333b10b6775ed
[ "MIT" ]
null
null
null
SUBNAV = [ 'general', 'submissions', 'tasks', 'achievements' ]
32.1
110
0.597092
from cpstats.models.model import VERDICT_AC, Task from flask import render_template from cpstats.models import model from cpstats import app @app.route('/') @app.route('/index') def index(): return render_template('index.html', title='Home') SUBNAV = [ 'general', 'submissions', 'tasks', 'achieveme...
0
797
0
0
0
792
0
53
203
f40417cc6ec6b8a597aa679e0a71fc8f641c968f
15,651
py
Python
pineboolib/fllegacy/flreportviewer.py
juanjosepablos/pineboo
f6ce515aec6e0139821bb9c1d62536d9fb50dae4
[ "MIT" ]
null
null
null
pineboolib/fllegacy/flreportviewer.py
juanjosepablos/pineboo
f6ce515aec6e0139821bb9c1d62536d9fb50dae4
[ "MIT" ]
1
2017-10-30T22:00:48.000Z
2017-11-11T19:34:32.000Z
pineboolib/fllegacy/flreportviewer.py
juanjosepablos/pineboo
f6ce515aec6e0139821bb9c1d62536d9fb50dae4
[ "MIT" ]
1
2017-10-30T20:16:38.000Z
2017-10-30T20:16:38.000Z
"""Flreportviewer module.""" # from pineboolib.fllegacy.flpicture import FLPicture AQ_USRHOME = "." # FIXME
31.053571
100
0.605776
"""Flreportviewer module.""" from PyQt5 import QtWidgets, QtCore, QtXml from pineboolib.core import decorators from pineboolib.application.qsatypes.sysbasetype import SysBaseType from pineboolib.fllegacy.flutil import FLUtil # from pineboolib.fllegacy.flpicture import FLPicture from .flsqlquery import FLSqlQuery fro...
0
6,864
0
8,172
0
0
0
231
269
e155a2ee3108e7539d619edb6c746911caaffb13
4,995
py
Python
text_to_num/lang/english.py
fquirin/text2num
539c8bb70ecb3991e27220e93e0dcc2005cbe9ea
[ "MIT" ]
55
2018-10-10T14:49:16.000Z
2022-03-31T19:45:26.000Z
text_to_num/lang/english.py
fquirin/text2num
539c8bb70ecb3991e27220e93e0dcc2005cbe9ea
[ "MIT" ]
37
2018-10-12T01:04:16.000Z
2022-03-17T09:17:22.000Z
text_to_num/lang/english.py
fquirin/text2num
539c8bb70ecb3991e27220e93e0dcc2005cbe9ea
[ "MIT" ]
27
2018-11-12T17:33:44.000Z
2022-03-15T09:16:48.000Z
# MIT License # Copyright (c) 2018-2019 Groupe Allo-Media # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify...
30.272727
98
0.647047
# MIT License # Copyright (c) 2018-2019 Groupe Allo-Media # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify...
0
0
0
2,005
0
0
0
22
46
275e86f75a011a705356e9c7db8c223789707e62
1,464
py
Python
utils/generators/matrix_multiply.py
sgpthomas/diospyros
27d4e5e5d4e56a6dc5860d7c7d5eefb27de24a5d
[ "MIT" ]
27
2020-02-16T22:26:34.000Z
2022-02-17T04:17:19.000Z
utils/generators/matrix_multiply.py
sgpthomas/diospyros
27d4e5e5d4e56a6dc5860d7c7d5eefb27de24a5d
[ "MIT" ]
77
2020-01-21T15:37:35.000Z
2022-03-11T19:48:43.000Z
utils/generators/matrix_multiply.py
sgpthomas/diospyros
27d4e5e5d4e56a6dc5860d7c7d5eefb27de24a5d
[ "MIT" ]
1
2021-09-27T20:35:15.000Z
2021-09-27T20:35:15.000Z
""" Matrix multiply generator. Generates an Eigen matrix multiply override kernel. """
26.142857
80
0.583333
""" Matrix multiply generator. Generates an Eigen matrix multiply override kernel. """ def generator(kernel_name, params, spec_file): input_rows = params["input_rows"] input_cols = params["input_cols"] output_cols = params["output_cols"] # inject specification template with arguments spec = "...
0
0
0
0
0
1,349
0
0
23
8a516965d3efb4dbcb256edc310602cc80459db0
9,646
py
Python
redash/query_runner/python.py
techscience9/redash
32669b148ccba47b118c8d390031903a18b0253d
[ "BSD-2-Clause" ]
3
2018-06-01T00:05:18.000Z
2019-03-07T14:03:10.000Z
redash/query_runner/python.py
techscience9/redash
32669b148ccba47b118c8d390031903a18b0253d
[ "BSD-2-Clause" ]
6
2021-01-21T16:43:27.000Z
2022-02-27T09:18:00.000Z
redash/query_runner/python.py
tradingfoe/redash-clone
94065b8dce0e27f6f40a7adc2b99e078b03115b3
[ "BSD-2-Clause" ]
5
2018-06-02T11:12:44.000Z
2020-05-13T18:34:33.000Z
import logging logger = logging.getLogger(__name__) register(Python)
34.45
141
0.611445
import datetime import importlib import logging import sys from redash.query_runner import * from redash.utils import json_dumps, json_loads from redash import models from RestrictedPython import compile_restricted from RestrictedPython.Guards import safe_builtins logger = logging.getLogger(__name__) class CustomP...
0
4,136
0
5,138
0
0
0
74
223
71735f8fa3170ee4f1070bc1e7bbea8132fee378
10,138
py
Python
InvalidPassports/InvalidPassports.py
savvakrasava/odi_tools
672cd5fd2bd2c48b7be5d945747edbaff0d1247c
[ "MIT" ]
null
null
null
InvalidPassports/InvalidPassports.py
savvakrasava/odi_tools
672cd5fd2bd2c48b7be5d945747edbaff0d1247c
[ "MIT" ]
null
null
null
InvalidPassports/InvalidPassports.py
savvakrasava/odi_tools
672cd5fd2bd2c48b7be5d945747edbaff0d1247c
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- ''' Created on 21 06 2019 @author: lukhnevsn ''' #import packages ############################################## from java.io import FileReader; from java.sql import Types; from java.net import Proxy, InetSocketAddress; from okhttp3 import OkHttpClient, Request, Response; from jarray impor...
38.842912
262
0.650621
#-*- coding: utf-8 -*- ''' Created on 21 06 2019 @author: lukhnevsn ''' #import packages ############################################## from java.io import BufferedReader ,FileReader, IOException; from java.sql import PreparedStatement,Connection,DriverManager,SQLException,Statement,Types, ResultSet; from java.n...
0
0
0
0
0
769
0
321
223
165e045e914f6250cb2bec371c5b5d7ec48cd7c9
121
py
Python
my_utilize/my_yield.py
FengJunJian/tutorials_for_demo
36ab749241193aeb17dec14d0c7503d858c84f8e
[ "Apache-2.0" ]
null
null
null
my_utilize/my_yield.py
FengJunJian/tutorials_for_demo
36ab749241193aeb17dec14d0c7503d858c84f8e
[ "Apache-2.0" ]
null
null
null
my_utilize/my_yield.py
FengJunJian/tutorials_for_demo
36ab749241193aeb17dec14d0c7503d858c84f8e
[ "Apache-2.0" ]
null
null
null
fun=generator() fun.__next__()
13.444444
24
0.520661
def generator(): for i in range(5): print('next',i) yield i fun=generator() fun.__next__()
0
0
0
0
61
0
0
0
25
0c5c7fd38a2d0e9f0be6a523befaf9e1f678032f
3,944
py
Python
intprim/util/visualization.py
carlos-cardoso/intprim
cf6d83996e4a1ede3cda19c7906c6166ec5a6f6e
[ "MIT" ]
49
2017-11-23T22:37:36.000Z
2022-03-05T04:39:13.000Z
intprim/util/visualization.py
souljaboy764/intprim
ecf905ce69dc14215230be3b3819d2236223e9ba
[ "MIT" ]
5
2019-03-31T08:47:33.000Z
2021-08-19T23:54:51.000Z
intprim/util/visualization.py
souljaboy764/intprim
ecf905ce69dc14215230be3b3819d2236223e9ba
[ "MIT" ]
20
2018-01-22T20:17:24.000Z
2022-02-18T01:07:54.000Z
import matplotlib.pyplot as plt import numpy as np # Displays the probability that the current trajectory matches the stored trajectores at every instant in time. def plot_distribution(dof_names, mean, upper_bound, lower_bound): """Plots a given probability distribution. """ figures_per_plot = np.min([4, m...
38.666667
132
0.671653
import matplotlib.pyplot as plt import numpy as np # Displays the probability that the current trajectory matches the stored trajectores at every instant in time. def plot_distribution(dof_names, mean, upper_bound, lower_bound): """Plots a given probability distribution. """ figures_per_plot = np.min([4, m...
0
0
0
0
0
131
0
0
23
e677293c96f1e9bdb3625f862f7f5d5efbd3c275
4,620
py
Python
control_de_flujo.py
EUD-curso-python/control_de_flujo-gusadolfo123
6e5ab478c40746383c260f1d6779dfa11bbb80bf
[ "MIT" ]
null
null
null
control_de_flujo.py
EUD-curso-python/control_de_flujo-gusadolfo123
6e5ab478c40746383c260f1d6779dfa11bbb80bf
[ "MIT" ]
null
null
null
control_de_flujo.py
EUD-curso-python/control_de_flujo-gusadolfo123
6e5ab478c40746383c260f1d6779dfa11bbb80bf
[ "MIT" ]
null
null
null
"""Guarde en lista `naturales` los primeros 100 nmeros naturales (desde el 1) usando el bucle while """ naturales = [] i = 1 while i <= 100: naturales.append(i) i += 1 """Guarde en `acumulado` una lista con el siguiente patrn: ['1','1 2','1 2 3','1 2 3 4','1 2 3 4 5',...,'...47 48 49 50'] Hasta el nmero 50. ...
24.188482
501
0.613636
"""Guarde en lista `naturales` los primeros 100 números naturales (desde el 1) usando el bucle while """ naturales = [] i = 1 while i <= 100: naturales.append(i) i += 1 """Guarde en `acumulado` una lista con el siguiente patrón: ['1','1 2','1 2 3','1 2 3 4','1 2 3 4 5',...,'...47 48 49 50'] Hasta el número 5...
70
0
0
0
0
0
0
0
0
592db96b8c56319c711829dab38acc1b8d52ef98
3,915
py
Python
tsutils/cog_mixins.py
kary5678/tsutils
ab6ecdcd2f0e10ba19092028909b3f74bf1708a9
[ "MIT" ]
1
2021-07-28T19:41:18.000Z
2021-07-28T19:41:18.000Z
tsutils/cog_mixins.py
kary5678/tsutils
ab6ecdcd2f0e10ba19092028909b3f74bf1708a9
[ "MIT" ]
19
2020-09-14T07:55:14.000Z
2022-03-06T17:23:14.000Z
tsutils/cog_mixins.py
kary5678/tsutils
ab6ecdcd2f0e10ba19092028909b3f74bf1708a9
[ "MIT" ]
3
2020-09-14T07:47:27.000Z
2021-09-14T02:16:33.000Z
import redbot.core.commands as commands
34.043478
115
0.65645
from abc import abstractmethod from typing import Callable, List, Optional, Type import redbot.core.commands as commands from redbot.core.commands import Cog, Command from .helper_classes import CogABCMeta class CogMixin(Cog, metaclass=CogABCMeta): @abstractmethod def setup_self(self: "CogMixin") -> None: ....
0
403
455
1,895
0
810
0
78
227
526cd21f661404a9ec8403fe8815374f2aa99060
1,521
py
Python
AlgorithmsPractice/dynamicProgramming/354_hard_Russian Doll Envelopes.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
58
2019-03-03T04:42:23.000Z
2022-01-13T04:36:31.000Z
AlgorithmsPractice/dynamicProgramming/354_hard_Russian Doll Envelopes.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
null
null
null
AlgorithmsPractice/dynamicProgramming/354_hard_Russian Doll Envelopes.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
28
2019-08-11T01:25:00.000Z
2021-08-22T06:46:06.000Z
# coding:utf-8 """ 354. Russian Doll Envelopes Hard You have a number of envelopes with widths and heights given as a pair of integers (w, h). One envelope can fit into another if and only if both the width and height of one envelope is greater than the width and height of the other envelope. What is the maximum num...
28.166667
241
0.588429
# coding:utf-8 """ 354. Russian Doll Envelopes Hard You have a number of envelopes with widths and heights given as a pair of integers (w, h). One envelope can fit into another if and only if both the width and height of one envelope is greater than the width and height of the other envelope. What is the maximum num...
0
0
0
684
0
0
0
0
22
a0d071624a641b8d3d124e0d0dd6d997b8e68270
516
py
Python
airflow/dags/jobs/check_stuff.py
PythonBiellaGroup/ModernDataEngineering
369fcb89d119ccd1d73882e492cf7c5331087d20
[ "MIT" ]
null
null
null
airflow/dags/jobs/check_stuff.py
PythonBiellaGroup/ModernDataEngineering
369fcb89d119ccd1d73882e492cf7c5331087d20
[ "MIT" ]
null
null
null
airflow/dags/jobs/check_stuff.py
PythonBiellaGroup/ModernDataEngineering
369fcb89d119ccd1d73882e492cf7c5331087d20
[ "MIT" ]
null
null
null
# Test variables, state and xcom passing values
30.352941
53
0.718992
from airflow.dags.common import config from airflow.models import Variable # Test variables, state and xcom passing values def check_variables(state, ti): print(f"Airflow folder: {config.AIRFLOW_FOLDER}") print(f"Dag folder: {config.DAGS_FOLDER}") print(f"Data folder: {config.DATA_FOLDER}") TESTONE =...
0
0
0
0
0
369
0
31
66
895a04ddca579bcf47014c6d25e4539f067f7d4b
4,305
py
Python
internshala_scraper/scrape_internshala_internships.py
tre3x/awesomeScripts
e70cd64eff7791cfac05f069fb9f7037c1bf05bf
[ "MIT" ]
245
2020-09-24T03:49:20.000Z
2021-01-31T20:09:57.000Z
internshala_scraper/scrape_internshala_internships.py
tre3x/awesomeScripts
e70cd64eff7791cfac05f069fb9f7037c1bf05bf
[ "MIT" ]
252
2020-09-28T02:19:44.000Z
2021-01-23T09:00:34.000Z
internshala_scraper/scrape_internshala_internships.py
tre3x/awesomeScripts
e70cd64eff7791cfac05f069fb9f7037c1bf05bf
[ "MIT" ]
219
2020-09-23T18:51:42.000Z
2021-01-23T09:54:40.000Z
# This script will scrape all the internships with given url # and create a CSV sheet out of it. # Necessary imports import requests from bs4 import BeautifulSoup import pandas as pd # A dictionary that will initially hold all scraped values scraped_data = { 'heading': [], 'company': [], 'stip...
39.136364
80
0.575145
# This script will scrape all the internships with given url # and create a CSV sheet out of it. # Necessary imports import requests from bs4 import BeautifulSoup import pandas as pd # A dictionary that will initially hold all scraped values scraped_data = { 'heading': [], 'company': [], 'stip...
0
0
0
0
0
0
0
0
0
023bd6855609a18ee78ad27b8d91ed72405263aa
2,104
py
Python
examples/EarthMoon_example.py
c-bruce/pysamss
b37206a39391e370da7ab367087ba3c2b29b1d9f
[ "MIT" ]
1
2020-05-02T18:47:50.000Z
2020-05-02T18:47:50.000Z
examples/EarthMoon_example.py
c-bruce/pysamss
b37206a39391e370da7ab367087ba3c2b29b1d9f
[ "MIT" ]
null
null
null
examples/EarthMoon_example.py
c-bruce/pysamss
b37206a39391e370da7ab367087ba3c2b29b1d9f
[ "MIT" ]
null
null
null
# Date: 24/06/2019 # Author: Callum Bruce # Earth, Moon example. # To run, ensure 'de430.bsp' is downloaded to the working directory. See https://naif.jpl.nasa.gov/pub/naif/generic_kernels/spk/planets/. import numpy as np from mayavi import mlab import datetime from jplephem.spk import SPK import pysamss # Step 1: Set...
41.254902
137
0.761882
# Date: 24/06/2019 # Author: Callum Bruce # Earth, Moon example. # To run, ensure 'de430.bsp' is downloaded to the working directory. See https://naif.jpl.nasa.gov/pub/naif/generic_kernels/spk/planets/. import numpy as np from mayavi import mlab import datetime from jplephem.spk import SPK import pysamss # Step 1: Set...
0
0
0
0
0
0
0
0
0
b1c2566c53846ce73cab8ad0f9f8c89def74b926
1,331
py
Python
tests/vasya_clerk_test.py
ibotdotout/coe-pairing
1a390ca3d07801c98a53de92722981c9697cd68c
[ "MIT" ]
null
null
null
tests/vasya_clerk_test.py
ibotdotout/coe-pairing
1a390ca3d07801c98a53de92722981c9697cd68c
[ "MIT" ]
null
null
null
tests/vasya_clerk_test.py
ibotdotout/coe-pairing
1a390ca3d07801c98a53de92722981c9697cd68c
[ "MIT" ]
null
null
null
# http://www.codewars.com/kata/vasya-clerk/python
25.596154
52
0.640872
# http://www.codewars.com/kata/vasya-clerk/python import unittest import vasya_clerk class VasyaClerkTest(unittest.TestCase): def _help_assert(self, l, ans): result = vasya_clerk.solve(l) self.assertEqual(result, ans) def test_give_25_should_be_true(self): l = [25] self._hel...
0
0
0
1,221
0
0
0
-9
68
34d48f4d94de429ca01e535a91927728d1c23f24
6,251
py
Python
kbsbot/compose_engine/services.py
astandre/cb-compose-engine-ms
ed4141f57dcb544743fd17fe62001d573ae1efc9
[ "MIT" ]
null
null
null
kbsbot/compose_engine/services.py
astandre/cb-compose-engine-ms
ed4141f57dcb544743fd17fe62001d573ae1efc9
[ "MIT" ]
null
null
null
kbsbot/compose_engine/services.py
astandre/cb-compose-engine-ms
ed4141f57dcb544743fd17fe62001d573ae1efc9
[ "MIT" ]
null
null
null
from requests import Session import requests import os # NLP_ENGINE_URL = "http://127.0.0.1:5001" # INTENTS_MANAGMENT_URL = "http://127.0.0.1:5002" # CONTEXT_MANAGMENT_URL = "http://127.0.0.1:5003" NLP_ENGINE_URL = os.environ.get('NLP_ENGINE_URL') INTENTS_MANAGMENT_URL = os.environ.get('INTENTS_MANAGMENT_URL') CONTEX...
31.099502
123
0.614782
from requests import Session import requests import os # NLP_ENGINE_URL = "http://127.0.0.1:5001" # INTENTS_MANAGMENT_URL = "http://127.0.0.1:5002" # CONTEXT_MANAGMENT_URL = "http://127.0.0.1:5003" NLP_ENGINE_URL = os.environ.get('NLP_ENGINE_URL') INTENTS_MANAGMENT_URL = os.environ.get('INTENTS_MANAGMENT_URL') CONTEX...
0
0
0
0
0
0
0
0
0
5cb5f8aa1715886be25dc44d316e33365e638c31
3,350
py
Python
2019/day12.py
cy2000yadav/AdventOfCode
41bc7df9e2c396883fed78369d9aac961bffb7a2
[ "MIT" ]
2
2019-12-03T20:23:09.000Z
2020-08-28T10:46:18.000Z
2019/day12.py
cy2000yadav/AdventOfCode
41bc7df9e2c396883fed78369d9aac961bffb7a2
[ "MIT" ]
null
null
null
2019/day12.py
cy2000yadav/AdventOfCode
41bc7df9e2c396883fed78369d9aac961bffb7a2
[ "MIT" ]
1
2021-10-30T07:27:54.000Z
2021-10-30T07:27:54.000Z
if __name__ == '__main__': main()
24.100719
83
0.453134
import re class moon: def __init__(self, x,y,z): self.x = x self.y = y self.z = z self.v_x = 0 self.v_y = 0 self.v_z = 0 def printMoon(moon, vel = True): p = 'pos=<x='+ str(moon.x) +', y='+ str(moon.y) +', z='+ str(moon.z) +'>, ' v = 'vel=<x...
0
0
0
150
0
2,899
0
-12
258
6044864d1133c9dd0d3f7f6ba4e574fd2ebbb87e
4,721
py
Python
lib/bx/intervals/operations/join.py
lldelisle/bx-python
19ab41e0905221e3fcaaed4b74faf2d7cda0d15a
[ "MIT" ]
122
2015-07-01T12:00:22.000Z
2022-03-02T09:27:35.000Z
lib/bx/intervals/operations/join.py
lldelisle/bx-python
19ab41e0905221e3fcaaed4b74faf2d7cda0d15a
[ "MIT" ]
64
2015-11-06T21:03:18.000Z
2022-03-24T00:55:27.000Z
lib/bx/intervals/operations/join.py
lldelisle/bx-python
19ab41e0905221e3fcaaed4b74faf2d7cda0d15a
[ "MIT" ]
60
2015-10-05T19:19:36.000Z
2021-11-19T20:53:54.000Z
""" Join two sets of intervals using their overlap as the key. The intervals MUST be sorted by chrom(lexicographically), start(arithmetically) and end(arithmetically). This works by simply walking through the inputs in O(n) time. """
34.459854
131
0.577632
""" Join two sets of intervals using their overlap as the key. The intervals MUST be sorted by chrom(lexicographically), start(arithmetically) and end(arithmetically). This works by simply walking through the inputs in O(n) time. """ import math from bx.intervals.io import GenomicInterval from .quicksect import Int...
0
0
0
0
2,403
1,892
0
26
160
1ac6b2322d59bfa2eb8a3dbb827a17195caeabba
17,176
py
Python
src/agents.py
NeiH2304/ProCon_ver_4
a51604bc8b1510971d981a1d0f06b9d3ff8494aa
[ "MIT" ]
null
null
null
src/agents.py
NeiH2304/ProCon_ver_4
a51604bc8b1510971d981a1d0f06b9d3ff8494aa
[ "MIT" ]
null
null
null
src/agents.py
NeiH2304/ProCon_ver_4
a51604bc8b1510971d981a1d0f06b9d3ff8494aa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Nov 5 09:45:45 2020 @author: hien """
39.667436
122
0.566546
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Nov 5 09:45:45 2020 @author: hien """ import numpy as np import torch from src.deep_q_network import Critic, Actor from src.replay_memory import ReplayBuffer from random import random, randint, choices, uniform from src import utils from src.utils impo...
0
0
0
16,651
0
0
0
131
287
77918520b9533f590cf62fc821c8eb5d72734baa
3,413
py
Python
deploy/templatetags/myinclusion.py
wxmgcs/devops
7b0daf6121139c8bec80ec58c119d04d8aeadfe8
[ "MIT" ]
3
2019-05-06T06:44:43.000Z
2020-06-10T00:54:43.000Z
deploy/templatetags/myinclusion.py
wxmgcs/devops
7b0daf6121139c8bec80ec58c119d04d8aeadfe8
[ "MIT" ]
1
2017-07-11T11:36:54.000Z
2017-07-11T11:42:23.000Z
deploy/templatetags/myinclusion.py
wxmgcs/devops
7b0daf6121139c8bec80ec58c119d04d8aeadfe8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf8 ''' @author: qitan @contact: qqing_lai@hotmail.com @file: myinclusion.py @time: 2017/3/30 15:32 @desc: ''' from django import template from django.db.models import Q register = template.Library() def show_single_minions(pk, user_type): ''' ''' tgt_list = [] ...
33.460784
111
0.64811
#!/usr/bin/env python # coding: utf8 ''' @author: qitan @contact: qqing_lai@hotmail.com @file: myinclusion.py @time: 2017/3/30 15:32 @desc: ''' from django import template from django.db.models import Q from deploy.models import * from userauth.models import * register = template.Library() def show_single_minions(...
321
0
0
0
0
0
0
14
45
8161a40448432ddb98fa8a8eb4bb1ff893aeeaab
6,208
py
Python
evaluation/old_compare/compare_combined_sift.py
tilman/compositional_elements
45271196ed01d0515357c7abdf35d6b87f2036d5
[ "MIT" ]
2
2021-06-13T16:21:52.000Z
2021-06-13T16:21:53.000Z
evaluation/old_compare/compare_combined_sift.py
tilman/compositional_elements
45271196ed01d0515357c7abdf35d6b87f2036d5
[ "MIT" ]
null
null
null
evaluation/old_compare/compare_combined_sift.py
tilman/compositional_elements
45271196ed01d0515357c7abdf35d6b87f2036d5
[ "MIT" ]
null
null
null
# call this script with `python -m evaluation.evaluate_poselines_globalaction` #https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_feature2d/py_matcher/py_matcher.html#brute-force-matching-with-sift-descriptors-and-ratio-test
50.064516
167
0.716173
# call this script with `python -m evaluation.evaluate_poselines_globalaction` import numpy as np from numpy.core.fromnumeric import sort import pandas as pd import datetime import torch from torch.functional import norm from tqdm import tqdm from . import eval_utils import cv2 from .compare_deepfeatures import negati...
0
0
0
0
0
5,235
0
231
494
8ac1f16bfc18ec92e12b019d710e5fda17c7d467
2,487
py
Python
train.py
zhoufengfan/light-weight-network
14b9c4c8f3660a249344837beff80cc573cab167
[ "MIT" ]
null
null
null
train.py
zhoufengfan/light-weight-network
14b9c4c8f3660a249344837beff80cc573cab167
[ "MIT" ]
null
null
null
train.py
zhoufengfan/light-weight-network
14b9c4c8f3660a249344837beff80cc573cab167
[ "MIT" ]
null
null
null
import torch.autograd import torch.nn as nn from dataset import Dataset2 if __name__ == '__main__': num_epoch = 500 data_vector_dim = 20 item_of_single_class = 10 train_dataset = Dataset2(item_of_single_class=item_of_single_class, data_vector_dim=data_vector_dim) test_dataset = Datas...
32.298701
105
0.599115
import torch.autograd import torch.nn as nn from dataset import Dataset2 class Network2(nn.Module): def __init__(self, input_dim=20, output_dim=7): super(Network2, self).__init__() self.dis = nn.Sequential( nn.Linear(input_dim, 256), nn.ReLU(True), nn...
0
0
0
636
0
333
0
0
50
a715ff7e13069bece07342b123a7c161f5c6dfa4
10,950
py
Python
taxonresolver/tree.py
biomadeira/taxonomy-resolver
ce7a264c2b8b552dde6284b4a74821184be8e489
[ "Apache-2.0" ]
null
null
null
taxonresolver/tree.py
biomadeira/taxonomy-resolver
ce7a264c2b8b552dde6284b4a74821184be8e489
[ "Apache-2.0" ]
null
null
null
taxonresolver/tree.py
biomadeira/taxonomy-resolver
ce7a264c2b8b552dde6284b4a74821184be8e489
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 """ Taxonomy Resolver :copyright: (c) 2020-2021. :license: Apache 2.0, see LICENSE for more details. """ import io import zipfile import pandas as pd from taxonresolver.utils import parse_tax_ids from taxonresolver.utils import print_and_exit from taxonresolver.utils import...
38.69258
109
0.652968
#!/usr/bin/env python # -*- coding: utf-8 """ Taxonomy Resolver :copyright: (c) 2020-2021. :license: Apache 2.0, see LICENSE for more details. """ import io import zipfile import pandas as pd from taxonresolver.utils import parse_tax_ids from taxonresolver.utils import print_and_exit from taxonresolver.utils import...
0
0
0
1,712
0
0
0
33
45
58c3911c166eeff3145b577b0906f6c294f5e653
2,521
py
Python
Train/diTau_reference.py
dntaylor/DeepJet
249610b3b80543c8c84f5ba795bbb07c097f8150
[ "Apache-2.0" ]
null
null
null
Train/diTau_reference.py
dntaylor/DeepJet
249610b3b80543c8c84f5ba795bbb07c097f8150
[ "Apache-2.0" ]
null
null
null
Train/diTau_reference.py
dntaylor/DeepJet
249610b3b80543c8c84f5ba795bbb07c097f8150
[ "Apache-2.0" ]
null
null
null
import os os.environ['DECORRELATE'] = "False" from DeepJetCore.training.training_base import training_base import subprocess import tensorflow as tf from keras import backend as k config = tf.ConfigProto() config.gpu_options.allow_growth = True config.gpu_options.per_process_gpu_memory_fraction = 0.6 k.tensorflow_ba...
34.534247
102
0.582705
import os os.environ['DECORRELATE'] = "False" from DeepJetCore.training.training_base import training_base from Losses import loss_NLL, loss_meansquared from DeepJetCore.modeltools import fixLayersContaining,printLayerInfosAndWeights import subprocess import tensorflow as tf from keras import backend as k config ...
0
0
0
0
0
0
0
83
47
91afaf07d2c3f534c87bada2ba28c2ee786e9072
583
py
Python
Projects/Face Detection/main.py
tejas4m/Hacktoberfest2021
d90e6bc8d5ba74a9064992fe9b6f73d7cb2c4a10
[ "MIT" ]
18
2021-09-30T07:20:25.000Z
2021-10-19T07:19:56.000Z
Projects/Face Detection/main.py
tejas4m/Hacktoberfest2021
d90e6bc8d5ba74a9064992fe9b6f73d7cb2c4a10
[ "MIT" ]
94
2021-10-01T12:41:41.000Z
2021-11-01T03:31:27.000Z
Projects/Face Detection/main.py
tejas4m/Hacktoberfest2021
d90e6bc8d5ba74a9064992fe9b6f73d7cb2c4a10
[ "MIT" ]
56
2021-09-30T12:03:02.000Z
2021-10-19T09:51:52.000Z
import cv2 cv2.namedWindow("test") cv2.namedWindow("test1") cam = cv2.VideoCapture(0) detector = cv2.CascadeClassifier("haarcascade_frontalface_alt.xml") while True: temp , frame = cam.read() if not temp: break; faces = detector.detectMultiScale(frame) cv2.imshow("test1" , frame) for face in...
26.5
72
0.61578
import cv2 cv2.namedWindow("test") cv2.namedWindow("test1") cam = cv2.VideoCapture(0) detector = cv2.CascadeClassifier("haarcascade_frontalface_alt.xml") while True: temp , frame = cam.read() if not temp: break; faces = detector.detectMultiScale(frame) cv2.imshow("test1" , frame) for face in...
0
0
0
0
0
0
0
0
0
5f5babe057438b85c0ec6c63603d46c40e7910fc
4,608
py
Python
ds_cleaning_funcs.py
AlirezaFallahii/sufficient-forecasting
802a19c7a00c9a60036d8949c65e77a654f371f3
[ "MIT" ]
1
2020-11-28T10:41:42.000Z
2020-11-28T10:41:42.000Z
ds_cleaning_funcs.py
AlirezaFallahii/sufficient-forecasting
802a19c7a00c9a60036d8949c65e77a654f371f3
[ "MIT" ]
null
null
null
ds_cleaning_funcs.py
AlirezaFallahii/sufficient-forecasting
802a19c7a00c9a60036d8949c65e77a654f371f3
[ "MIT" ]
null
null
null
import pandas as pd def assess_NA(data): """ Returns a pandas dataframe denoting the total number of NA values and the percentage of NA values in each column. The column names are noted on the index. Parameters ---------- data: dataframe """ # pandas series denoting f...
42.275229
80
0.588976
import pandas as pd def assess_NA(data): """ Returns a pandas dataframe denoting the total number of NA values and the percentage of NA values in each column. The column names are noted on the index. Parameters ---------- data: dataframe """ # pandas series denoting f...
0
0
0
0
0
3,647
0
0
25
b955eece982c8d7627d37e20b41ef5826c9b8edb
102
py
Python
cap9/ex7/main1.py
felipesch92/livroPython
061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307
[ "MIT" ]
null
null
null
cap9/ex7/main1.py
felipesch92/livroPython
061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307
[ "MIT" ]
null
null
null
cap9/ex7/main1.py
felipesch92/livroPython
061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307
[ "MIT" ]
null
null
null
l = [['felipe', 99], ['tamara', 50], ['fernando', 60]] l1 = sorted(l) l = sorted(l) print(l) print(l1)
20.4
54
0.558824
l = [['felipe', 99], ['tamara', 50], ['fernando', 60]] l1 = sorted(l) l = sorted(l) print(l) print(l1)
0
0
0
0
0
0
0
0
0
6092cfc32f268455d15a9ad5964aebd238cb3f73
16,171
py
Python
se/commands/interactive_replace.py
thewchan/tools
bb9ac50c8d48fd43745d04b4c994ab0af5ef3fba
[ "CC0-1.0" ]
1
2021-07-25T03:29:10.000Z
2021-07-25T03:29:10.000Z
se/commands/interactive_replace.py
robinwhittleton/tools
60777eb152e346124ad9646ddd1c3307b7ed7f0c
[ "CC0-1.0" ]
null
null
null
se/commands/interactive_replace.py
robinwhittleton/tools
60777eb152e346124ad9646ddd1c3307b7ed7f0c
[ "CC0-1.0" ]
null
null
null
""" This module implements the `se interactive-replace` command. """ import argparse import curses from pathlib import Path import os from math import floor from typing import Tuple import regex import se TAB_SIZE = 8 def _get_text_dimensions(text: str) -> Tuple[int, int]: """ Get the number of rows and column...
34.776344
524
0.704595
""" This module implements the `se interactive-replace` command. """ import argparse import curses from pathlib import Path import os from math import floor from typing import Tuple import regex import se TAB_SIZE = 8 def _get_text_dimensions(text: str) -> Tuple[int, int]: """ Get the number of rows and column...
9
0
0
0
0
0
0
0
0
4e0426cc0a9642d982176a0f7602c3aeb0fde250
216
py
Python
edge/graphics.py
lucasdavid/edge
c7d9cf7e2803cc8d49abbe3ddb9f16eb130c1b01
[ "MIT" ]
null
null
null
edge/graphics.py
lucasdavid/edge
c7d9cf7e2803cc8d49abbe3ddb9f16eb130c1b01
[ "MIT" ]
null
null
null
edge/graphics.py
lucasdavid/edge
c7d9cf7e2803cc8d49abbe3ddb9f16eb130c1b01
[ "MIT" ]
null
null
null
default_style = { 'alpha': .6, 'width': 1, 'node_size': 100, 'node_color': '#2EB1E6', 'edge_color': '#cccccc', } solution_style = default_style.copy() solution_style.update(node_color='#ff0000')
19.636364
43
0.62963
default_style = { 'alpha': .6, 'width': 1, 'node_size': 100, 'node_color': '#2EB1E6', 'edge_color': '#cccccc', } solution_style = default_style.copy() solution_style.update(node_color='#ff0000')
0
0
0
0
0
0
0
0
0
d9548d88c801008eefb74d6391427687fe7c335b
2,086
py
Python
server2/migrations/versions/bff862ed6870_.py
Terkea/beds-uni-hackathon-4-notes
db351b2053be5e9568d731006fd2af7002a40ca0
[ "MIT" ]
null
null
null
server2/migrations/versions/bff862ed6870_.py
Terkea/beds-uni-hackathon-4-notes
db351b2053be5e9568d731006fd2af7002a40ca0
[ "MIT" ]
1
2019-12-01T13:49:15.000Z
2019-12-01T13:49:15.000Z
server2/migrations/versions/bff862ed6870_.py
Terkea/beds-uni-hackathon-4-notes
db351b2053be5e9568d731006fd2af7002a40ca0
[ "MIT" ]
null
null
null
"""empty message Revision ID: bff862ed6870 Revises: 2ee4f69c4623 Create Date: 2019-11-28 17:42:47.448962 """ # revision identifiers, used by Alembic. revision = 'bff862ed6870' down_revision = '2ee4f69c4623' branch_labels = None depends_on = None
37.25
98
0.691275
"""empty message Revision ID: bff862ed6870 Revises: 2ee4f69c4623 Create Date: 2019-11-28 17:42:47.448962 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql # revision identifiers, used by Alembic. revision = 'bff862ed6870' down_revision = '2ee4f69c4623' branch_labels = None depe...
0
0
0
0
0
1,704
0
19
112
b7d71d0082ed0f850650efd250f61d0670fcc037
19,851
py
Python
python/sklearn/sklearn/metrics/tests/test_metrics.py
seckcoder/lang-learn
1e0d6f412bbd7f89b1af00293fd907ddb3c1b571
[ "Unlicense" ]
1
2017-10-14T04:23:45.000Z
2017-10-14T04:23:45.000Z
python/sklearn/sklearn/metrics/tests/test_metrics.py
seckcoder/lang-learn
1e0d6f412bbd7f89b1af00293fd907ddb3c1b571
[ "Unlicense" ]
null
null
null
python/sklearn/sklearn/metrics/tests/test_metrics.py
seckcoder/lang-learn
1e0d6f412bbd7f89b1af00293fd907ddb3c1b571
[ "Unlicense" ]
null
null
null
import random import numpy as np from nose.tools import assert_true from numpy.testing import assert_array_almost_equal from numpy.testing import assert_array_equal from numpy.testing import assert_equal, assert_almost_equal from sklearn import datasets from sklearn import svm from sklearn.metrics import auc from skle...
35.961957
79
0.660974
import random import warnings import numpy as np from nose.tools import raises, assert_not_equal from nose.tools import assert_true, assert_raises from numpy.testing import assert_array_almost_equal from numpy.testing import assert_array_equal from numpy.testing import assert_equal, assert_almost_equal from sklearn i...
0
204
0
0
0
5,435
0
52
389
ea54792c432ac442abc7b1aa8dfe5fd91f8f6a98
148
py
Python
mne/externals/h5io/__init__.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
1,953
2015-01-17T20:33:46.000Z
2022-03-30T04:36:34.000Z
mne/externals/h5io/__init__.py
alexandrebarachant/mne-python
b54e38c9bbac38c6f53747075b5bad2936fbc5b9
[ "BSD-3-Clause" ]
8,490
2015-01-01T13:04:18.000Z
2022-03-31T23:02:08.000Z
mne/externals/h5io/__init__.py
alexandrebarachant/mne-python
b54e38c9bbac38c6f53747075b5bad2936fbc5b9
[ "BSD-3-Clause" ]
1,130
2015-01-08T22:39:27.000Z
2022-03-30T21:44:26.000Z
"""Python Objects Onto HDF5 """ __version__ = '0.1.dev0'
21.142857
88
0.736486
"""Python Objects Onto HDF5 """ __version__ = '0.1.dev0' from ._h5io import read_hdf5, write_hdf5, _TempDir, object_diff # noqa, analysis:ignore
0
0
0
0
0
0
0
42
48
c5864362375a81a891800b2885457459c5fea69d
85
py
Python
src/dal_select2/__init__.py
pandabuilder/django-autocomplete-light
41f699aadaa6214acd5d947b717394b1237a7223
[ "MIT" ]
null
null
null
src/dal_select2/__init__.py
pandabuilder/django-autocomplete-light
41f699aadaa6214acd5d947b717394b1237a7223
[ "MIT" ]
null
null
null
src/dal_select2/__init__.py
pandabuilder/django-autocomplete-light
41f699aadaa6214acd5d947b717394b1237a7223
[ "MIT" ]
null
null
null
"""Select2 support for DAL.""" # default_app_config = 'dal_select2.apps.DefaultApp'
21.25
52
0.741176
"""Select2 support for DAL.""" # default_app_config = 'dal_select2.apps.DefaultApp'
0
0
0
0
0
0
0
0
0
f3c95dfe7fb1b5c254dd15bc2c564d79d8da83f3
2,207
py
Python
whatisit/apps/wordfish/storage.py
radinformatics/whatisit
9cfc8924b722678d3b2ca7e5ad77b9254fcb93f3
[ "MIT" ]
1
2021-06-08T11:08:09.000Z
2021-06-08T11:08:09.000Z
whatisit/apps/wordfish/storage.py
radinformatics/whatisit
9cfc8924b722678d3b2ca7e5ad77b9254fcb93f3
[ "MIT" ]
24
2016-10-21T00:55:30.000Z
2017-01-05T03:13:57.000Z
whatisit/apps/wordfish/storage.py
radinformatics/whatisit
9cfc8924b722678d3b2ca7e5ad77b9254fcb93f3
[ "MIT" ]
null
null
null
############################################################################ # Storage Models ############################################################################
33.953846
89
0.599003
from django.core.files.storage import FileSystemStorage from django.core.files.move import file_move_safe from django.contrib.auth.models import User from django.apps import apps from fnmatch import fnmatch from whatisit.settings import ( MEDIA_ROOT, MEDIA_URL ) import errno import itertools import os import...
0
0
0
1,658
0
0
0
108
268
f5840ddd768bf8711a9fb5c49a430be015c29d82
704
py
Python
script/generate_header.py
Liby99/Rotamina
47a588b7e4674d3ab20d9d7afc43b25c7e0fa304
[ "MIT" ]
5
2018-01-30T02:11:12.000Z
2021-08-25T09:01:12.000Z
script/generate_header.py
Liby99/Rotamina
47a588b7e4674d3ab20d9d7afc43b25c7e0fa304
[ "MIT" ]
null
null
null
script/generate_header.py
Liby99/Rotamina
47a588b7e4674d3ab20d9d7afc43b25c7e0fa304
[ "MIT" ]
null
null
null
import os, sys name = sys.argv[1] root_dir = sys.argv[2] header_dir = os.path.join(root_dir, name) if not os.path.exists(header_dir): os.makedirs(header_dir) files = [] dirs = [("", root_dir)] for i in range(4): subdirs = [] for (p, d) in dirs: files = files + [os.path.join(p, item) for item in os.l...
37.052632
134
0.612216
import os, sys name = sys.argv[1] root_dir = sys.argv[2] header_dir = os.path.join(root_dir, name) if not os.path.exists(header_dir): os.makedirs(header_dir) files = [] dirs = [("", root_dir)] for i in range(4): subdirs = [] for (p, d) in dirs: files = files + [os.path.join(p, item) for item in os.l...
0
0
0
0
0
0
0
0
0
717cb0b8bf9357cc97762908fa917f8f585a6a17
2,186
py
Python
cogs/reactions/reactions.py
n303p4/sailor-fox
5c7b1077414916bd3ecacd8089a81a10efe7f43b
[ "MIT" ]
null
null
null
cogs/reactions/reactions.py
n303p4/sailor-fox
5c7b1077414916bd3ecacd8089a81a10efe7f43b
[ "MIT" ]
null
null
null
cogs/reactions/reactions.py
n303p4/sailor-fox
5c7b1077414916bd3ecacd8089a81a10efe7f43b
[ "MIT" ]
null
null
null
"""Generic reaction image commands.""" import json from sailor import commands def setup(processor): """Set up reaction commands.""" with open("reactions.json") as file_object: reactions = json.load(file_object) last_image_for_command = {} for command_name, command_properties in reactions...
37.689655
93
0.631747
"""Generic reaction image commands.""" import json import secrets from sailor import commands from sailor.exceptions import UserInputError def setup(processor): """Set up reaction commands.""" with open("reactions.json") as file_object: reactions = json.load(file_object) last_image_for_command...
0
0
1,062
0
0
0
0
16
98
4359992c7bf4243dc799de8de7f398d1f743e2a6
9,122
py
Python
moldesign/utils/callsigs.py
Autodesk/molecular-design-toolkit
5f45a47fea21d3603899a6366cb163024f0e2ec4
[ "Apache-2.0" ]
147
2016-07-15T18:53:55.000Z
2022-01-30T04:36:39.000Z
moldesign/utils/callsigs.py
cherishyli/molecular-design-toolkit
5f45a47fea21d3603899a6366cb163024f0e2ec4
[ "Apache-2.0" ]
151
2016-07-15T21:35:11.000Z
2019-10-10T08:57:29.000Z
moldesign/utils/callsigs.py
cherishyli/molecular-design-toolkit
5f45a47fea21d3603899a6366cb163024f0e2ec4
[ "Apache-2.0" ]
33
2016-08-02T00:04:51.000Z
2021-09-02T10:05:04.000Z
from __future__ import print_function, absolute_import, division from future import standard_library standard_library.install_aliases() # Copyright 2017 Autodesk 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 ...
35.220077
100
0.629358
from __future__ import print_function, absolute_import, division from future.builtins import * from future import standard_library standard_library.install_aliases() # Copyright 2017 Autodesk Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with ...
0
225
0
1,002
0
1,644
0
7
139