hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
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
125
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
125
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.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
9ba00e9b29b3ca03c6563bbca721e5ab24550cd4
469
py
Python
mesonet/__init__.py
bf777/MesoNet
87cd631e72fc2af596f97aa2b73f8e57b0cc27e6
[ "CC-BY-4.0" ]
2
2021-08-02T21:04:52.000Z
2021-11-10T07:00:40.000Z
mesonet/__init__.py
bf777/MesoNet
87cd631e72fc2af596f97aa2b73f8e57b0cc27e6
[ "CC-BY-4.0" ]
2
2021-12-02T10:47:00.000Z
2022-03-07T20:28:11.000Z
mesonet/__init__.py
bf777/MesoNet
87cd631e72fc2af596f97aa2b73f8e57b0cc27e6
[ "CC-BY-4.0" ]
null
null
null
""" MesoNet Authors: Brandon Forys and Dongsheng Xiao, Murphy Lab https://github.com/bf777/MesoNet Licensed under the Creative Commons Attribution 4.0 International License (see LICENSE for details) """ # __init__.py from mesonet.utils import * from mesonet.dlc_predict import predict_dlc from mesonet.predict_regions im...
33.5
99
0.835821
""" MesoNet Authors: Brandon Forys and Dongsheng Xiao, Murphy Lab https://github.com/bf777/MesoNet Licensed under the Creative Commons Attribution 4.0 International License (see LICENSE for details) """ # __init__.py from mesonet.utils import * from mesonet.dlc_predict import predict_dlc from mesonet.predict_regions im...
0
0
0
a54e4fcb9e12dd8b283e1118efefe5930ce03899
3,362
py
Python
src/kayako/objects/custom_field.py
iXsystems/kayako-python-api-library
5c43ae331904eac1a66301e2f40d29a4e52fd49d
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/kayako/objects/custom_field.py
iXsystems/kayako-python-api-library
5c43ae331904eac1a66301e2f40d29a4e52fd49d
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/kayako/objects/custom_field.py
iXsystems/kayako-python-api-library
5c43ae331904eac1a66301e2f40d29a4e52fd49d
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- #----------------------------------------------------------------------------- # Copyright (c) 2014, Ravi Sharma # # Distributed under the terms of the Lesser GNU General Public License (LGPL) #----------------------------------------------------------------------------- ''' Created on Feb 26, 2...
35.020833
126
0.680845
# -*- coding: utf-8 -*- #----------------------------------------------------------------------------- # Copyright (c) 2014, Ravi Sharma # # Distributed under the terms of the Lesser GNU General Public License (LGPL) #----------------------------------------------------------------------------- ''' Created on Feb 26, 2...
1,435
0
93
d6b30d1e7120d3e587e3c5909ed90c9d5af02c07
10,584
py
Python
server/api/composer.py
notantony/Grid-Anchor-based-Image-Cropping-Pytorch
32a2dea9151c123c8e589bd196450f56cf3ef7d1
[ "MIT" ]
null
null
null
server/api/composer.py
notantony/Grid-Anchor-based-Image-Cropping-Pytorch
32a2dea9151c123c8e589bd196450f56cf3ef7d1
[ "MIT" ]
null
null
null
server/api/composer.py
notantony/Grid-Anchor-based-Image-Cropping-Pytorch
32a2dea9151c123c8e589bd196450f56cf3ef7d1
[ "MIT" ]
null
null
null
# # -*- coding: utf-8 -*- import math import random import numpy as np import heapq from io import BytesIO from PIL import Image, ImageOps from server.api.crop_suggestor import CropSuggestorModel from server.api.utils import compress_bg, read_image, nd_deserialize, np_isground, tiling_range, n_dim_iter, \ np_b...
39.492537
123
0.614512
# # -*- coding: utf-8 -*- import math import random import numpy as np import heapq from io import BytesIO from PIL import Image, ImageOps from server.api.crop_suggestor import CropSuggestorModel from server.api.utils import compress_bg, read_image, nd_deserialize, np_isground, tiling_range, n_dim_iter, \ np_b...
7,083
-5
306
9e2027a2a9cfcdbe7245e5fcb4e81bbb8703a867
3,726
py
Python
sims/s130/plot-double-shear-cmp.py
ammarhakim/ammar-simjournal
85b64ddc9556f01a4fab37977864a7d878eac637
[ "MIT", "Unlicense" ]
1
2019-12-19T16:21:13.000Z
2019-12-19T16:21:13.000Z
sims/s130/plot-double-shear-cmp.py
ammarhakim/ammar-simjournal
85b64ddc9556f01a4fab37977864a7d878eac637
[ "MIT", "Unlicense" ]
null
null
null
sims/s130/plot-double-shear-cmp.py
ammarhakim/ammar-simjournal
85b64ddc9556f01a4fab37977864a7d878eac637
[ "MIT", "Unlicense" ]
2
2020-01-08T06:23:33.000Z
2020-01-08T07:06:50.000Z
import pylab import tables import math import numpy fig = pylab.figure(2) tr_125 = pylab.loadtxt('../s125/s125-double-shear_totalEnergy') tr_129 = pylab.loadtxt('../s129/s129-double-shear_totalEnergy') tr_130 = pylab.loadtxt('../s130/s130-double-shear_totalEnergy') refTe = tr_125[0,1] pylab.plot(tr_125[:,0], tr_125[...
26.055944
107
0.506978
import pylab import tables import math import numpy def projectOnFinerGrid(Xc, Yc, q): dx = Xc[1]-Xc[0] dy = Yc[1]-Yc[0] nx = Xc.shape[0] ny = Yc.shape[0] # mesh coordinates Xn = pylab.zeros((2*Xc.shape[0],), float) Xn[0:nx] = Xc-0.25*dx Xn[nx:] = Xc+0.25*dx Xn.sort() Yn = pyl...
2,878
0
69
bf053ecb91b45e0f5471a68564e3344dd8799600
414
py
Python
Problem_04.py
Habbo3/Project-Euler
1a01d67f72b9cfb606d13df91af89159b588216e
[ "MIT" ]
null
null
null
Problem_04.py
Habbo3/Project-Euler
1a01d67f72b9cfb606d13df91af89159b588216e
[ "MIT" ]
null
null
null
Problem_04.py
Habbo3/Project-Euler
1a01d67f72b9cfb606d13df91af89159b588216e
[ "MIT" ]
null
null
null
""" A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. Find the largest palindrome made from the product of two 3-digit numbers. """ biggest_number = 0 for i in range(999): for n in range(999): number = i*n if str(number) == str(n...
29.571429
133
0.717391
""" A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. Find the largest palindrome made from the product of two 3-digit numbers. """ biggest_number = 0 for i in range(999): for n in range(999): number = i*n if str(number) == str(n...
0
0
0
26992116356270d5c84cb8edcdb4c4bedbb9668c
3,065
py
Python
loss/image.py
RobinSandkuehler/r2n2
54fdedd4129a0d2f5c257f727afef9e3f6ab565b
[ "Apache-2.0" ]
13
2020-01-13T15:25:44.000Z
2022-02-21T10:56:51.000Z
loss/image.py
RobinSandkuehler/r2n2
54fdedd4129a0d2f5c257f727afef9e3f6ab565b
[ "Apache-2.0" ]
1
2021-12-15T17:40:44.000Z
2021-12-15T17:40:44.000Z
loss/image.py
RobinSandkuehler/r2n2
54fdedd4129a0d2f5c257f727afef9e3f6ab565b
[ "Apache-2.0" ]
2
2021-08-03T16:31:46.000Z
2022-03-16T22:00:37.000Z
# Copyright 2019 University of Basel, Center for medical Image Analysis and Navigation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
37.378049
114
0.669821
# Copyright 2019 University of Basel, Center for medical Image Analysis and Navigation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
1,391
26
154
c4d993b225afa6543ad3c035e2ea0487b8abb0d0
6,755
py
Python
eva-usage-stats/ftp_usage.py
cyenyxe/eva-tools-standalone
813b219befe19c2609acb6d8def80b6de8f759f3
[ "Apache-2.0" ]
null
null
null
eva-usage-stats/ftp_usage.py
cyenyxe/eva-tools-standalone
813b219befe19c2609acb6d8def80b6de8f759f3
[ "Apache-2.0" ]
null
null
null
eva-usage-stats/ftp_usage.py
cyenyxe/eva-tools-standalone
813b219befe19c2609acb6d8def80b6de8f759f3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import os from argparse import ArgumentParser import psycopg2.extras import requests from requests.auth import HTTPBasicAuth from ebi_eva_common_pyutils.logger import logging_config from ebi_eva_common_pyutils.metadata_utils import get_metadata_connection_handle from ebi_eva_common_pyutils.pg_utils ...
43.580645
120
0.682457
#!/usr/bin/python import os from argparse import ArgumentParser import psycopg2.extras import requests from requests.auth import HTTPBasicAuth from ebi_eva_common_pyutils.logger import logging_config from ebi_eva_common_pyutils.metadata_utils import get_metadata_connection_handle from ebi_eva_common_pyutils.pg_utils ...
5,991
0
136
7749d6332e7e48b335408d32acd46d623497b9b0
1,178
py
Python
data/bin/cms-trace-merge.py
openalto/network-simulator-data
09706e5ab6e266ee5ef5b71cd32f10eea5a1975e
[ "MIT" ]
null
null
null
data/bin/cms-trace-merge.py
openalto/network-simulator-data
09706e5ab6e266ee5ef5b71cd32f10eea5a1975e
[ "MIT" ]
null
null
null
data/bin/cms-trace-merge.py
openalto/network-simulator-data
09706e5ab6e266ee5ef5b71cd32f10eea5a1975e
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import json if __name__ == '__main__': import sys basedir = sys.argv[1] files, replicas = load_files_replicas(basedir) files_path = os.path.join(basedir, 'files.json') with open(files_path, 'w') as ff: ff.write(json.dumps(files, indent=4, sort_keys=True)) ...
31.837838
68
0.580645
#!/usr/bin/env python import os import json def load_files_replicas(basedir): files = [] replicas = [] for d in os.listdir(basedir): d = os.path.join(basedir, d) if os.path.isdir(d): files_path = os.path.join(d, 'files.json') with open(files_path) as ff: ...
670
0
23
0e3cbace0e9b47475844b5b00c2e3553be5c9459
829
py
Python
app/user/views.py
ethan-leba/flask-twitter
27785b88354679d853fe86e6e8629ee72b1d40a4
[ "MIT" ]
null
null
null
app/user/views.py
ethan-leba/flask-twitter
27785b88354679d853fe86e6e8629ee72b1d40a4
[ "MIT" ]
null
null
null
app/user/views.py
ethan-leba/flask-twitter
27785b88354679d853fe86e6e8629ee72b1d40a4
[ "MIT" ]
null
null
null
from flask import render_template, url_for, redirect, flash from flask_login import current_user from .. import db from ..models import User, Tweet from . import user from .forms import TweetForm from ..queries import get_all_tweets, send_tweet, get_user @user.route('/<username>', methods=['GET', 'POST'])
37.681818
109
0.706876
from flask import render_template, url_for, redirect, flash from flask_login import current_user from .. import db from ..models import User, Tweet from . import user from .forms import TweetForm from ..queries import get_all_tweets, send_tweet, get_user @user.route('/<username>', methods=['GET', 'POST']) def user(use...
499
0
22
a3bc022859e29b21627241b8ca4418a6d0d25fde
611
py
Python
setup.py
asdf-format/asdf-chunked
993c9e7203f9fd0125db79c43e41a3b16169a6c2
[ "BSD-3-Clause" ]
null
null
null
setup.py
asdf-format/asdf-chunked
993c9e7203f9fd0125db79c43e41a3b16169a6c2
[ "BSD-3-Clause" ]
null
null
null
setup.py
asdf-format/asdf-chunked
993c9e7203f9fd0125db79c43e41a3b16169a6c2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from pathlib import Path from setuptools import find_packages, setup packages = find_packages(where="asdf_chunked") packages.append("asdf_chunked.resources") package_dir = { "": "asdf_chunked", "asdf_chunked.resources": "resources", } package_data = {"asdf_chunked.resources": package...
21.821429
74
0.736498
#!/usr/bin/env python from pathlib import Path from setuptools import find_packages, setup packages = find_packages(where="asdf_chunked") packages.append("asdf_chunked.resources") package_dir = { "": "asdf_chunked", "asdf_chunked.resources": "resources", } def package_yaml_files(directory): paths = sor...
123
0
23
ecfe7d6e82aad57a073e0bcca5d4e54e0ca8540e
2,645
py
Python
UI_dev/archive/app_dev_final/table.py
nimRobotics/BTP
2387764fc0c513e37b72b97889b4a1ee09f9014c
[ "MIT" ]
null
null
null
UI_dev/archive/app_dev_final/table.py
nimRobotics/BTP
2387764fc0c513e37b72b97889b4a1ee09f9014c
[ "MIT" ]
null
null
null
UI_dev/archive/app_dev_final/table.py
nimRobotics/BTP
2387764fc0c513e37b72b97889b4a1ee09f9014c
[ "MIT" ]
null
null
null
import sys from PyQt5.QtWidgets import QMainWindow, QApplication, QWidget, QAction, QTableWidget,QTableWidgetItem,QVBoxLayout from PyQt5.QtGui import QIcon from PyQt5.QtCore import pyqtSlot # @pyqtSlot() # def add_element(self): # des = "HI" # price = 10 # self.tableWidget.insertRow(se...
34.802632
114
0.635161
import sys from PyQt5.QtWidgets import QMainWindow, QApplication, QWidget, QAction, QTableWidget,QTableWidgetItem,QVBoxLayout from PyQt5.QtGui import QIcon from PyQt5.QtCore import pyqtSlot class App(QWidget): def __init__(self): super().__init__() self.title = 'PyQt5 table - pythonspot.com' ...
1,694
-2
112
1d2cae0db33f52060f5c4d93831d43614df1c77a
3,972
py
Python
cellDataClass.py
okraus/DeepLoc
ced324ee7dfb7f3965a17cf2a78ccec671fa7991
[ "BSD-3-Clause" ]
49
2017-04-19T08:29:12.000Z
2020-10-15T07:27:54.000Z
cellDataClass.py
okraus/DeepLoc
ced324ee7dfb7f3965a17cf2a78ccec671fa7991
[ "BSD-3-Clause" ]
6
2017-10-04T08:45:44.000Z
2018-07-26T05:06:31.000Z
cellDataClass.py
okraus/DeepLoc
ced324ee7dfb7f3965a17cf2a78ccec671fa7991
[ "BSD-3-Clause" ]
28
2017-04-22T06:32:10.000Z
2020-03-19T12:25:22.000Z
# Copyright (c) 2017, Oren Kraus All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of conditions and the follo...
41.810526
130
0.656848
# Copyright (c) 2017, Oren Kraus All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of conditions and the follo...
2,343
-10
76
22575a73bd860dd9485b3daa0bbc132d26217211
1,216
py
Python
0_Complete_Guide_To_Custom_Object_Detection_Model_With_Yolov5/WebScraping/src/util/image_downloader.py
CertifaiAI/classifai-blogs
23a3e7f5241c27f74ffeb614cc730f21c35e9e2f
[ "Apache-2.0" ]
3
2021-05-17T01:25:56.000Z
2021-05-31T01:12:53.000Z
0_Complete_Guide_To_Custom_Object_Detection_Model_With_Yolov5/WebScraping/src/util/image_downloader.py
CertifaiAI/classifai-blogs
23a3e7f5241c27f74ffeb614cc730f21c35e9e2f
[ "Apache-2.0" ]
1
2021-08-19T02:50:06.000Z
2021-08-19T02:50:18.000Z
0_Complete_Guide_To_Custom_Object_Detection_Model_With_Yolov5/WebScraping/src/util/image_downloader.py
CertifaiAI/classifai-blogs
23a3e7f5241c27f74ffeb614cc730f21c35e9e2f
[ "Apache-2.0" ]
2
2021-06-09T05:48:59.000Z
2021-06-10T06:29:53.000Z
from PIL import Image import requests from io import BytesIO import base64 import os def save_image(src, counter, path): """Method for saving a single image""" cur_dir = os.getcwd() image_root_path = os.path.join(cur_dir, "images") if not os.path.isdir(image_root_path): os.mkdir(image_root_pa...
24.816327
81
0.596217
from PIL import Image import requests from io import BytesIO import base64 import os def save_image(src, counter, path): """Method for saving a single image""" cur_dir = os.getcwd() image_root_path = os.path.join(cur_dir, "images") if not os.path.isdir(image_root_path): os.mkdir(image_root_pa...
0
0
0
4f1f7997e4d027884b195e0bb4bf1141ba0efaec
4,788
py
Python
sandbox/pyexprfield.py
turkeydonkey/nzmath3
a48ae9efcf0d9ad1485c2e9863c948a7f1b20311
[ "BSD-3-Clause" ]
1
2021-05-26T19:22:17.000Z
2021-05-26T19:22:17.000Z
sandbox/pyexprfield.py
turkeydonkey/nzmath3
a48ae9efcf0d9ad1485c2e9863c948a7f1b20311
[ "BSD-3-Clause" ]
null
null
null
sandbox/pyexprfield.py
turkeydonkey/nzmath3
a48ae9efcf0d9ad1485c2e9863c948a7f1b20311
[ "BSD-3-Clause" ]
null
null
null
""" Python Expression field, another finite prime field characteristic two definition. field element is defined by bool(Python Expression). This module is reference design for finite field characteristic two. but I recommend that this field should be used only checking Python syntax. """ import logging import operat...
28
93
0.6368
""" Python Expression field, another finite prime field characteristic two definition. field element is defined by bool(Python Expression). This module is reference design for finite field characteristic two. but I recommend that this field should be used only checking Python syntax. """ import logging import operat...
975
1,860
320
5cd80199edec3fb9faa21f7e2426eab3da37d240
73
py
Python
code/MPGenPython/motion_profile/__init__.py
shuqinlee/PedestrianDetection
eb3353e8d22fb855f5a233dd4c468933ced91022
[ "MIT" ]
4
2018-03-17T13:44:33.000Z
2018-12-28T02:59:28.000Z
code/MPGenPython/motion_profile/__init__.py
shuqinlee/PedestrianDetection
eb3353e8d22fb855f5a233dd4c468933ced91022
[ "MIT" ]
null
null
null
code/MPGenPython/motion_profile/__init__.py
shuqinlee/PedestrianDetection
eb3353e8d22fb855f5a233dd4c468933ced91022
[ "MIT" ]
null
null
null
# __init__: let python know this is a package from mpgen import mpgen
18.25
46
0.753425
# __init__: let python know this is a package from mpgen import mpgen
0
0
0
ec565786d077cf1223be311832047f6026c29ef5
9,833
py
Python
GunsApp/app.py
rabest265/Guns2
dce211b2494d5a130fd706ff76646365d9ef3e57
[ "CNRI-Python", "OML" ]
null
null
null
GunsApp/app.py
rabest265/Guns2
dce211b2494d5a130fd706ff76646365d9ef3e57
[ "CNRI-Python", "OML" ]
null
null
null
GunsApp/app.py
rabest265/Guns2
dce211b2494d5a130fd706ff76646365d9ef3e57
[ "CNRI-Python", "OML" ]
null
null
null
from flask import Flask, render_template, redirect, jsonify from flask_pymongo import PyMongo from datetime import datetime import json import pandas as pd import os import numpy as np import datetime import csv import pymongo import request # function to save dataframe to collection_name in MongoDB 'wines' ...
35.243728
215
0.73711
from flask import Flask, render_template, redirect, jsonify from flask_pymongo import PyMongo from datetime import datetime import json import pandas as pd import os import numpy as np import datetime import csv import pymongo import request # function to save dataframe to collection_name in MongoDB 'wines' d...
1,880
0
242
97786e7328a0171fd55f09db622f3afa0975d1e7
11,555
py
Python
tests/test_reference.py
novirium/docker-image-py
cf4eb19e6fe983b58b10b70816fe1ed02c9e7f09
[ "Apache-2.0" ]
17
2017-02-25T13:59:22.000Z
2022-03-23T07:37:46.000Z
tests/test_reference.py
novirium/docker-image-py
cf4eb19e6fe983b58b10b70816fe1ed02c9e7f09
[ "Apache-2.0" ]
7
2019-03-01T06:07:44.000Z
2021-07-27T03:15:33.000Z
tests/test_reference.py
novirium/docker-image-py
cf4eb19e6fe983b58b10b70816fe1ed02c9e7f09
[ "Apache-2.0" ]
6
2018-12-16T22:15:19.000Z
2022-03-30T06:35:40.000Z
import unittest from docker_image import digest from docker_image import reference
49.806034
293
0.586672
import unittest from docker_image import digest from docker_image import reference class TestReference(unittest.TestCase): def test_reference(self): def create_test_case(input_, err=None, repository=None, hostname=None, tag=None, digest=None): return { 'input': input_, ...
11,281
36
152
1a21cf24460bf429e80572cc953d2defbc5d68f5
621
py
Python
ftpserver.py
miebach/py-simple-ftpd
8e02091a906fee342252a146054d5418db687303
[ "MIT" ]
5
2015-02-21T00:00:23.000Z
2020-05-07T04:21:03.000Z
ftpserver.py
miebach/py-simple-ftpd
8e02091a906fee342252a146054d5418db687303
[ "MIT" ]
null
null
null
ftpserver.py
miebach/py-simple-ftpd
8e02091a906fee342252a146054d5418db687303
[ "MIT" ]
null
null
null
import time import sha from pyftpdlib import ftpserver username="user" authorizer = ftpserver.DummyAuthorizer() password = mysha((str(time.time()) + "babble"))[:7] print "user:",username print "password:",password authorizer.add_user(username, password, "./data", perm="elradfmw") #authorizer.add_anonymous(".") ft...
23.884615
66
0.73752
import time import sha from pyftpdlib import ftpserver def mysha(x): hash = sha.new(x) return hash.hexdigest() username="user" authorizer = ftpserver.DummyAuthorizer() password = mysha((str(time.time()) + "babble"))[:7] print "user:",username print "password:",password authorizer.add_user(username, password,...
38
0
23
0a54a78b31e4be5894fa62d3e6f6f46c9905bd24
4,037
py
Python
Creator/macOS/marwale.py
rohitnishad613/Glitch
4f896d85f3de3c98e5c91823ae3a87c4d8fdc97f
[ "MIT" ]
5
2020-09-16T06:27:12.000Z
2020-09-21T11:14:14.000Z
Creator/macOS/marwale.py
rohitnishad613/Glitch
4f896d85f3de3c98e5c91823ae3a87c4d8fdc97f
[ "MIT" ]
null
null
null
Creator/macOS/marwale.py
rohitnishad613/Glitch
4f896d85f3de3c98e5c91823ae3a87c4d8fdc97f
[ "MIT" ]
null
null
null
import os import socket import subprocess import time import signal import sys import struct while True: time.sleep(0.1) main()
29.903704
116
0.489225
import os import socket import subprocess import time import signal import sys import struct class Client(object): def __init__(self): HERE_IS_YOUR_HOST_AND_PORT self.socket = None def register_signal_handler(self): signal.signal(signal.SIGINT, self.do_notting) signal.signal(si...
3,637
0
261
64343d013519933355c64587bf336eeec5a5ee82
1,884
py
Python
Module1/Day07/module1_day07_ranges.py
mollysaweikis/100DaysPython
464533eb52944fff8858c2e0e0f3b25f1bff7350
[ "MIT" ]
23
2019-05-31T18:00:26.000Z
2021-11-21T19:08:19.000Z
Module1/Day07/module1_day07_ranges.py
btruck552/100DaysPython
1e45a10387da6d4ebdf8aa5fe13843a4509c8b62
[ "MIT" ]
null
null
null
Module1/Day07/module1_day07_ranges.py
btruck552/100DaysPython
1e45a10387da6d4ebdf8aa5fe13843a4509c8b62
[ "MIT" ]
42
2019-05-31T17:54:28.000Z
2022-02-12T22:09:51.000Z
""" Author: CaptCorpMURICA Project: 100DaysPython File: module1_day07_ranges.py Creation Date: 6/2/2019, 8:55 AM Description: Basic instruction of ranges in python. """ # A range starts with an index of 0 and ends with the declared value. The endpoint of a range in not ...
50.918919
120
0.69586
""" Author: CaptCorpMURICA Project: 100DaysPython File: module1_day07_ranges.py Creation Date: 6/2/2019, 8:55 AM Description: Basic instruction of ranges in python. """ # A range starts with an index of 0 and ends with the declared value. The endpoint of a range in not ...
0
0
0
603451b8330fc6c53dc0f78f6b33e3feeec049e4
2,242
py
Python
env/lib/python3.7/site-packages/cleo/inputs/api.py
Kolawole39/masonite-guides-tutorial
9a21cc635291a42f0722f69925be1809bb20e01c
[ "MIT" ]
null
null
null
env/lib/python3.7/site-packages/cleo/inputs/api.py
Kolawole39/masonite-guides-tutorial
9a21cc635291a42f0722f69925be1809bb20e01c
[ "MIT" ]
null
null
null
env/lib/python3.7/site-packages/cleo/inputs/api.py
Kolawole39/masonite-guides-tutorial
9a21cc635291a42f0722f69925be1809bb20e01c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .input_argument import InputArgument from .input_option import InputOption def argument(name, description='', required=False, default=None, is_list=False, validator=None): """ Helper function to create a new argument. :param name: The name of the ar...
24.911111
69
0.67083
# -*- coding: utf-8 -*- from .input_argument import InputArgument from .input_option import InputOption def argument(name, description='', required=False, default=None, is_list=False, validator=None): """ Helper function to create a new argument. :param name: The name of the ar...
0
0
0
b133940306ca184bafd714abfed2a77c71123f21
181
py
Python
oidc_auth/forms.py
lccvufal/django-oidc-auth
ce36f1b83bce6f2bcf23fe40b94662eb5953cd4b
[ "MIT" ]
25
2015-02-09T14:07:32.000Z
2019-06-20T02:49:02.000Z
oidc_auth/forms.py
lccvufal/django-oidc-auth
ce36f1b83bce6f2bcf23fe40b94662eb5953cd4b
[ "MIT" ]
11
2015-03-06T18:32:09.000Z
2021-08-31T20:08:18.000Z
oidc_auth/forms.py
lccvufal/django-oidc-auth
ce36f1b83bce6f2bcf23fe40b94662eb5953cd4b
[ "MIT" ]
23
2015-02-24T23:18:47.000Z
2020-11-16T08:04:13.000Z
from django import forms
25.857143
71
0.712707
from django import forms class OpenIDConnectForm(forms.Form): issuer = forms.CharField(max_length=200, widget=forms.TextInput(attrs={'class': 'required openid'}))
0
132
23
b867197194af426b236ef30f05c0ba6ee90697c1
3,263
py
Python
tests/test_polylabel.py
tfardet/Shapely
462de3aa7a8bbd80408762a2d5aaf84b04476e4d
[ "BSD-3-Clause" ]
null
null
null
tests/test_polylabel.py
tfardet/Shapely
462de3aa7a8bbd80408762a2d5aaf84b04476e4d
[ "BSD-3-Clause" ]
null
null
null
tests/test_polylabel.py
tfardet/Shapely
462de3aa7a8bbd80408762a2d5aaf84b04476e4d
[ "BSD-3-Clause" ]
null
null
null
from . import unittest from shapely.algorithms.polylabel import polylabel, Cell from shapely.geometry import LineString, Point, Polygon from shapely.errors import TopologicalError
38.388235
80
0.594851
from . import unittest from shapely.algorithms.polylabel import polylabel, Cell from shapely.geometry import LineString, Point, Polygon from shapely.errors import TopologicalError class PolylabelTestCase(unittest.TestCase): def test_polylabel(self): """ Finds pole of inaccessibility for a polygon ...
0
3,059
23
ede842ae17f244943ab73140632c28eb84e35b08
20,307
py
Python
api/test/hand_handler_test.py
jrockway/tichu-tournament
6335b8fab89b76c42ac5a078176a500a11f0e4ff
[ "MIT" ]
null
null
null
api/test/hand_handler_test.py
jrockway/tichu-tournament
6335b8fab89b76c42ac5a078176a500a11f0e4ff
[ "MIT" ]
null
null
null
api/test/hand_handler_test.py
jrockway/tichu-tournament
6335b8fab89b76c42ac5a078176a500a11f0e4ff
[ "MIT" ]
null
null
null
import json import unittest import webtest import os from google.appengine.ext import testbed from api.src import main
44.24183
83
0.610922
import json import unittest import webtest import os from google.appengine.ext import testbed from api.src import main class AppTest(unittest.TestCase): def setUp(self): os.environ['AUTH_DOMAIN'] = 'testbed' self.testbed = testbed.Testbed() self.testbed.activate() self.testbed.init_datastore_v3...
19,408
12
717
576fda55cc6908ed1c0d5f2b87e5c72699a1dbaa
1,786
py
Python
src/test.py
kumarnikhil936/MailClassification_NLTK_Sklearn_Flask_Docker
df919005e2ceafa1d90fb1ab0c302f2220e0906d
[ "MIT" ]
null
null
null
src/test.py
kumarnikhil936/MailClassification_NLTK_Sklearn_Flask_Docker
df919005e2ceafa1d90fb1ab0c302f2220e0906d
[ "MIT" ]
null
null
null
src/test.py
kumarnikhil936/MailClassification_NLTK_Sklearn_Flask_Docker
df919005e2ceafa1d90fb1ab0c302f2220e0906d
[ "MIT" ]
null
null
null
import yaml from joblib import load from nltk.corpus import stopwords from nltk.stem.snowball import SnowballStemmer from helpers import preprocess_single_text, load_mapping text = "ki_erstattung_test_topf2.txt Details Activity ki_erstattung_test_topf2.txt Sharing Info. Who has access M General Info. System properties...
57.612903
801
0.787794
import yaml from joblib import load from nltk.corpus import stopwords from nltk.stem.snowball import SnowballStemmer from helpers import preprocess_single_text, load_mapping text = "ki_erstattung_test_topf2.txt Details Activity ki_erstattung_test_topf2.txt Sharing Info. Who has access M General Info. System properties...
0
0
0
4f8e5b718a64351286c098419e412067fd72661c
290
py
Python
Lista3_11.py
AlessandroGoncalve/Lista3_Python
68f18d0d0243b19e596df1309c502ae72fbaca37
[ "MIT" ]
12
2019-09-13T22:01:05.000Z
2020-09-20T23:18:41.000Z
Lista3_11.py
AlessandroGoncalve/Lista3_Python
68f18d0d0243b19e596df1309c502ae72fbaca37
[ "MIT" ]
1
2020-04-04T03:36:44.000Z
2020-10-21T20:57:38.000Z
Lista3_11.py
AlessandroGoncalve/Lista3_Python
68f18d0d0243b19e596df1309c502ae72fbaca37
[ "MIT" ]
12
2019-09-10T18:48:25.000Z
2020-10-24T18:35:13.000Z
#Altere o programa anterior para mostrar no final a soma dos números. n1 = int(input("Digite um número: ")) n2 = int(input("Digite outro número: ")) for i in range(n1 + 1, n2): print(i) for i in range(n2 + 1, n1): print(i) print("Soma dos números: ", i + i)
22.307692
70
0.593103
#Altere o programa anterior para mostrar no final a soma dos números. n1 = int(input("Digite um número: ")) n2 = int(input("Digite outro número: ")) for i in range(n1 + 1, n2): print(i) for i in range(n2 + 1, n1): print(i) print("Soma dos números: ", i + i)
0
0
0
bf752a0fbeb6d507311d56e1f4e724814a0350b1
1,538
py
Python
packages/attitude.pkg/providers.py
GrahamCobb/maemo-mud-builder
7bc03f5a1734a2b256e31808032d079c3e1e5720
[ "ClArtistic" ]
null
null
null
packages/attitude.pkg/providers.py
GrahamCobb/maemo-mud-builder
7bc03f5a1734a2b256e31808032d079c3e1e5720
[ "ClArtistic" ]
null
null
null
packages/attitude.pkg/providers.py
GrahamCobb/maemo-mud-builder
7bc03f5a1734a2b256e31808032d079c3e1e5720
[ "ClArtistic" ]
null
null
null
# # Provider information sources for `Attitude' - a false horizon display using # accelerometer information. (c) Andrew Flegg 2009 # Released under the Artistic Licence import os.path from math import sin, cos, pi class Dummy: """One of the simplest provide...
29.018868
79
0.574122
# # Provider information sources for `Attitude' - a false horizon display using # accelerometer information. (c) Andrew Flegg 2009 # Released under the Artistic Licence import os.path from math import sin, cos, pi class Dummy: """One of the simplest provide...
639
0
114
9611e85309601b1043038f0147966d80aa76dc29
4,953
py
Python
final_project.py
nikmoon/RecursiveStat
f1a31a70da3278ca4ada3dfa83875258170ce602
[ "MIT" ]
null
null
null
final_project.py
nikmoon/RecursiveStat
f1a31a70da3278ca4ada3dfa83875258170ce602
[ "MIT" ]
null
null
null
final_project.py
nikmoon/RecursiveStat
f1a31a70da3278ca4ada3dfa83875258170ce602
[ "MIT" ]
null
null
null
# эти строки введены для IDE, их нужно закомментировать или удалить """ Список метрик и соответствующих им методов """ metrics = { 'productType': { 'method': getProductType, 'name': 'productType', # данное поле нужно использовать для названия вложенного поля }, 'productColor': { ...
35.633094
112
0.592166
# эти строки введены для IDE, их нужно закомментировать или удалить def getProductType(): pass def getProductColor(): pass def getProductCondition(): pass def get_stat_api(list_of_queries): pass """ Список метрик и соответствующих им методов """ metrics = { 'productType': { 'method': getProductType, ...
39
0
88
8a5dc9f0ee9a0de84f2ecc9552a6e60c7b9fee48
1,466
py
Python
deploy2.py
JiajunZhou96/ML-for-LSD1
595630076928f0c0d0b78ce182478b7fb0d20ead
[ "MIT" ]
1
2021-12-20T11:50:06.000Z
2021-12-20T11:50:06.000Z
deploy2.py
JiajunZhou96/ML-for-LSD1
595630076928f0c0d0b78ce182478b7fb0d20ead
[ "MIT" ]
null
null
null
deploy2.py
JiajunZhou96/ML-for-LSD1
595630076928f0c0d0b78ce182478b7fb0d20ead
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt import re import time import os from sklearn.svm import SVR import joblib import rdkit from rdkit import Chem from rdkit.Chem import AllChem from rdkit_utils import smiles_dataset from utils import save_dataset model_load = joblib.load('./models...
35.756098
122
0.749659
import numpy as np import pandas as pd import matplotlib.pyplot as plt import re import time import os from sklearn.svm import SVR import joblib import rdkit from rdkit import Chem from rdkit.Chem import AllChem from rdkit_utils import smiles_dataset from utils import save_dataset model_load = joblib.load('./models...
0
0
0
6fd6c18fabfe36ee89c947678a6f06714899f0c2
798
py
Python
core/migrations/0012_auto_20210813_0035.py
winny-/sillypaste
bf6125b35225046226328d1077d7bc7ea5e11c94
[ "Unlicense" ]
3
2021-05-21T03:45:59.000Z
2022-01-23T18:26:45.000Z
core/migrations/0012_auto_20210813_0035.py
winny-/sillypaste
bf6125b35225046226328d1077d7bc7ea5e11c94
[ "Unlicense" ]
13
2021-04-03T19:56:35.000Z
2022-01-23T18:39:47.000Z
core/migrations/0012_auto_20210813_0035.py
winny-/sillypaste
bf6125b35225046226328d1077d7bc7ea5e11c94
[ "Unlicense" ]
1
2021-10-03T18:22:55.000Z
2021-10-03T18:22:55.000Z
# Generated by Django 3.1.12 on 2021-08-13 00:35 from django.db import migrations, models import django.utils.timezone
27.517241
76
0.601504
# Generated by Django 3.1.12 on 2021-08-13 00:35 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [('core', '0011_auto_20201105_0203')] operations = [ migrations.RenameField( model_name='expirylog', old_name='cou...
0
654
23
4d693c50b234f4d287b9940411df75b8d66801fe
25,754
py
Python
src/sage/combinat/six_vertex_model.py
fredstro/sage
c936d2cda81ec7ec3552a3bdb29c994b40d1bb24
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/six_vertex_model.py
fredstro/sage
c936d2cda81ec7ec3552a3bdb29c994b40d1bb24
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/six_vertex_model.py
fredstro/sage
c936d2cda81ec7ec3552a3bdb29c994b40d1bb24
[ "BSL-1.0" ]
null
null
null
r""" Six Vertex Model """ from sage.structure.parent import Parent from sage.structure.unique_representation import UniqueRepresentation from sage.structure.list_clone import ClonableArray from sage.categories.finite_enumerated_sets import FiniteEnumeratedSets from sage.combinat.combinatorial_map import combinatorial_...
33.017949
108
0.435117
r""" Six Vertex Model """ from sage.structure.parent import Parent from sage.structure.unique_representation import UniqueRepresentation from sage.structure.list_clone import ClonableArray from sage.categories.finite_enumerated_sets import FiniteEnumeratedSets from sage.combinat.combinatorial_map import combinatorial_...
116
0
30
c16c292b423a49e5404423c97562139f099ffc25
1,558
py
Python
data/Simulated/simulate_data.py
mehdibnc/Bayesian_Time_Series_Classification
eb0df76c39dd81e40c94c004154a1ded443531a1
[ "BSD-3-Clause" ]
2
2020-03-09T09:55:07.000Z
2020-05-20T08:00:42.000Z
data/Simulated/simulate_data.py
mehdibnc/Bayesian_Time_Series_Classification
eb0df76c39dd81e40c94c004154a1ded443531a1
[ "BSD-3-Clause" ]
null
null
null
data/Simulated/simulate_data.py
mehdibnc/Bayesian_Time_Series_Classification
eb0df76c39dd81e40c94c004154a1ded443531a1
[ "BSD-3-Clause" ]
2
2019-12-06T17:54:41.000Z
2020-02-13T18:11:30.000Z
import numpy as np import random import scipy
31.795918
110
0.646341
import numpy as np import random import scipy def generate_markov_seq(n_states, transition_matrix, len_seq, init_state=None): states = [k for k in range(n_states)] seq = [] if init_state: x0 = init_state else: x0 = np.random.choice(states) #add initial probabilities x_prev = x0 ...
1,417
0
92
ef47b645015237116a34d842a2f0e50b7986743b
852
py
Python
tests/t.py
zaber-paul/base
9c4d4e40db7a5059dcaa32d44be0146b6bb829c4
[ "Apache-2.0" ]
null
null
null
tests/t.py
zaber-paul/base
9c4d4e40db7a5059dcaa32d44be0146b6bb829c4
[ "Apache-2.0" ]
null
null
null
tests/t.py
zaber-paul/base
9c4d4e40db7a5059dcaa32d44be0146b6bb829c4
[ "Apache-2.0" ]
null
null
null
from builtins import object from cloudmesh_base.base import HEADING from cloudmesh_pbs.database import pbs_db, pbs_shelve import os
23.027027
66
0.593897
from builtins import object from cloudmesh_base.base import HEADING from cloudmesh_pbs.database import pbs_db, pbs_shelve import os class TestDatabase(object): filename = "pbs.db" def setup(self): # HEADING() self.db = pbs_db(self.filename, pbs_shelve) def teardown(self): ...
285
411
24
eec8f79fbad64478516a5b0dade7f8244e1f9460
2,410
py
Python
test/test_unit/test_ga4gh/test_refget/test_http/test_response.py
ga4gh/refget-cloud
c39a65acba9818414789f004cced487562012bf0
[ "Apache-2.0" ]
null
null
null
test/test_unit/test_ga4gh/test_refget/test_http/test_response.py
ga4gh/refget-cloud
c39a65acba9818414789f004cced487562012bf0
[ "Apache-2.0" ]
3
2021-04-30T21:12:42.000Z
2021-06-02T02:11:45.000Z
test/test_unit/test_ga4gh/test_refget/test_http/test_response.py
ga4gh/refget-cloud
c39a65acba9818414789f004cced487562012bf0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Unit tests for Response class""" import pytest from ga4gh.refget.http.response import Response from ga4gh.refget.http.status_codes import StatusCodes as SC from ga4gh.refget.config.constants import CONTENT_TYPE_JSON_REFGET_VND, \ CONTENT_TYPE_TEXT_REFGET_VND testdata_body = [ ("ACGT...
29.390244
73
0.69834
# -*- coding: utf-8 -*- """Unit tests for Response class""" import pytest from ga4gh.refget.http.response import Response from ga4gh.refget.http.status_codes import StatusCodes as SC from ga4gh.refget.config.constants import CONTENT_TYPE_JSON_REFGET_VND, \ CONTENT_TYPE_TEXT_REFGET_VND testdata_body = [ ("ACGT...
1,093
0
110
fba93487b51dcb4e56ba07626edfd9c3d910229c
2,356
py
Python
display.py
fginther/pi-experiments
bd9b18b9dad8ac48651a6a90fa234573b726e52d
[ "MIT" ]
null
null
null
display.py
fginther/pi-experiments
bd9b18b9dad8ac48651a6a90fa234573b726e52d
[ "MIT" ]
null
null
null
display.py
fginther/pi-experiments
bd9b18b9dad8ac48651a6a90fa234573b726e52d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import time import pygame from pygame.locals import * CHECK_LATCHES_INTERVAL = 100 CHECK_LATCHES = pygame.USEREVENT + 1 if __name__ == '__main__': main()
25.89011
64
0.556027
#!/usr/bin/env python import time import pygame from pygame.locals import * def get_current_time(): return int(round(time.time() * 1000)) class Target(object): def __init__(self, value): self.value = value self.latched = False self.latch_time = 0 def trigger(self): if se...
2,022
0
149
6b2527c0cf8404b6e11f579b835d2c36f68128d6
272
py
Python
staff/mixins.py
Mambodiev/ecom_website
ced03d61a99a7d657f7cb0106dbb9cf1ab15e367
[ "MIT" ]
null
null
null
staff/mixins.py
Mambodiev/ecom_website
ced03d61a99a7d657f7cb0106dbb9cf1ab15e367
[ "MIT" ]
1
2022-03-30T21:19:09.000Z
2022-03-30T21:19:09.000Z
staff/mixins.py
Mambodiev/ecom_website
ced03d61a99a7d657f7cb0106dbb9cf1ab15e367
[ "MIT" ]
null
null
null
from django.shortcuts import redirect
30.222222
77
0.683824
from django.shortcuts import redirect class StaffUserMixin(object): def dispatch(self, request, *args, **kwargs): if not request.user.is_staff: return redirect("home") return super(StaffUserMixin, self).dispatch(request, *args, **kwargs)
176
8
49
66302df5b876a90bd49810dc1235682c54d54b47
11,687
py
Python
OptMiniModule/diffcp/cones.py
markcx/DER_ControlPrivateTimeSeries
16f9ea14dc5146005c1c88e9b880c10c9b1a3361
[ "MIT" ]
null
null
null
OptMiniModule/diffcp/cones.py
markcx/DER_ControlPrivateTimeSeries
16f9ea14dc5146005c1c88e9b880c10c9b1a3361
[ "MIT" ]
null
null
null
OptMiniModule/diffcp/cones.py
markcx/DER_ControlPrivateTimeSeries
16f9ea14dc5146005c1c88e9b880c10c9b1a3361
[ "MIT" ]
null
null
null
import numpy as np # import _proj as proj_lib import scipy.sparse as sparse import scipy.sparse.linalg as splinalg ZERO = "f" POS = "l" SOC = "q" PSD = "s" EXP = "ep" EXP_DUAL = "ed" POWER = "p" # The ordering of CONES matches SCS. CONES = [ZERO, POS, SOC, PSD, EXP, EXP_DUAL, POWER] def parse_cone_dict(cone_dict): ...
35.740061
100
0.520151
import numpy as np # import _proj as proj_lib import scipy.sparse as sparse import scipy.sparse.linalg as splinalg ZERO = "f" POS = "l" SOC = "q" PSD = "s" EXP = "ep" EXP_DUAL = "ed" POWER = "p" # The ordering of CONES matches SCS. CONES = [ZERO, POS, SOC, PSD, EXP, EXP_DUAL, POWER] def parse_cone_dict(cone_dict): ...
1,314
0
204
df963607b23ba51f62d020e9b2d3d72b9c78d77a
1,025
py
Python
setup.py
simpleapples/flask-wtf-decorators
7fa5a26946d2fdb5b00d07251c0ca7d0e358fc1d
[ "MIT" ]
3
2018-07-02T14:39:44.000Z
2020-12-14T12:58:43.000Z
setup.py
simpleapples/flask-wtf-decorators
7fa5a26946d2fdb5b00d07251c0ca7d0e358fc1d
[ "MIT" ]
2
2020-07-02T17:26:05.000Z
2020-07-03T16:53:55.000Z
setup.py
simpleapples/flask-wtf-decorators
7fa5a26946d2fdb5b00d07251c0ca7d0e358fc1d
[ "MIT" ]
null
null
null
from os import path from setuptools import setup, find_packages here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='Flask-WTF-Decorators', version='0.1.2', license='MIT', url='https://github.com/simp...
31.060606
64
0.653659
from os import path from setuptools import setup, find_packages here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='Flask-WTF-Decorators', version='0.1.2', license='MIT', url='https://github.com/simp...
0
0
0
ed24c7e0cb89b766670c2e6075918647dc12e22a
1,070
py
Python
src/astrolib/solar_system/__init__.py
space-geek/integrationutils
384375702a6c053aa2e5aaca6b9d5c43d86a16ad
[ "MIT" ]
null
null
null
src/astrolib/solar_system/__init__.py
space-geek/integrationutils
384375702a6c053aa2e5aaca6b9d5c43d86a16ad
[ "MIT" ]
null
null
null
src/astrolib/solar_system/__init__.py
space-geek/integrationutils
384375702a6c053aa2e5aaca6b9d5c43d86a16ad
[ "MIT" ]
null
null
null
from astrolib.solar_system.celestial_objects import CelestialObject from astrolib.solar_system.motion_models import OriginFixedMotionModel from astrolib.solar_system.orientation_models import InertiallyFixedOrientationModel Sun = CelestialObject(OriginFixedMotionModel(),InertiallyFixedOrientationModel()) Mercury = Cel...
71.333333
85
0.879439
from astrolib.solar_system.celestial_objects import CelestialObject from astrolib.solar_system.motion_models import OriginFixedMotionModel from astrolib.solar_system.orientation_models import InertiallyFixedOrientationModel Sun = CelestialObject(OriginFixedMotionModel(),InertiallyFixedOrientationModel()) Mercury = Cel...
0
0
0
7c889c3645f09d24f1f01e75c97d332a09c86a9e
715
py
Python
Python/simple_calculator.py
snehnakrani14/HactoberFest21
1d387ff4efec1f17fe20d42f46490564c5a87b52
[ "Unlicense" ]
1
2021-10-04T14:39:02.000Z
2021-10-04T14:39:02.000Z
Python/simple_calculator.py
snehnakrani14/HactoberFest21
1d387ff4efec1f17fe20d42f46490564c5a87b52
[ "Unlicense" ]
1
2021-10-06T04:41:55.000Z
2021-10-06T04:41:55.000Z
Python/simple_calculator.py
snehnakrani14/HactoberFest21
1d387ff4efec1f17fe20d42f46490564c5a87b52
[ "Unlicense" ]
1
2021-10-08T12:31:04.000Z
2021-10-08T12:31:04.000Z
#python program - make simple calculator print("1. adiition") print("2. subtraction") print("3. multiplication") print("4. division") print("5. exit") choice = int(input("enter your choice: ")) if (choice>=1 and choice<=4): print("enter two numbers: ") num1 = int(input()) num2 = int(input()) if choice ...
21.666667
42
0.516084
#python program - make simple calculator print("1. adiition") print("2. subtraction") print("3. multiplication") print("4. division") print("5. exit") choice = int(input("enter your choice: ")) if (choice>=1 and choice<=4): print("enter two numbers: ") num1 = int(input()) num2 = int(input()) if choice ...
0
0
0
6a7cf670831b403d0054682d331d46306648544a
3,688
py
Python
ramjet/photometric_database/derived/moa_survey_none_single_and_binary_database.py
golmschenk/ramjet
77fb4481a15088923308fda09804d80455d1a9cf
[ "Apache-2.0" ]
3
2020-11-23T18:47:37.000Z
2021-08-05T17:45:51.000Z
ramjet/photometric_database/derived/moa_survey_none_single_and_binary_database.py
golmschenk/ramjet
77fb4481a15088923308fda09804d80455d1a9cf
[ "Apache-2.0" ]
5
2021-08-19T00:54:57.000Z
2022-02-10T00:15:40.000Z
ramjet/photometric_database/derived/moa_survey_none_single_and_binary_database.py
golmschenk/ramjet
77fb4481a15088923308fda09804d80455d1a9cf
[ "Apache-2.0" ]
3
2019-07-12T21:00:57.000Z
2020-06-03T22:18:13.000Z
""" Code for a database of MOA light curves including non-microlensing, single lensing, and binary lensing collcetions. """ from ramjet.data_interface.moa_data_interface import MoaDataInterface from ramjet.photometric_database.derived.moa_survey_light_curve_collection import MoaSurveyLightCurveCollection from ramjet.ph...
59.483871
120
0.638015
""" Code for a database of MOA light curves including non-microlensing, single lensing, and binary lensing collcetions. """ from ramjet.data_interface.moa_data_interface import MoaDataInterface from ramjet.photometric_database.derived.moa_survey_light_curve_collection import MoaSurveyLightCurveCollection from ramjet.ph...
2,890
0
27
f0162ff4ea770a97740eab3aed1b1f3a2c45254f
1,576
py
Python
exercicios curso em video/ex071.py
Nilton-Miguel/Prog_Python3
4cabcb1a30dde6ababce3cb8d1fbb7d417cb1d8b
[ "MIT" ]
null
null
null
exercicios curso em video/ex071.py
Nilton-Miguel/Prog_Python3
4cabcb1a30dde6ababce3cb8d1fbb7d417cb1d8b
[ "MIT" ]
null
null
null
exercicios curso em video/ex071.py
Nilton-Miguel/Prog_Python3
4cabcb1a30dde6ababce3cb8d1fbb7d417cb1d8b
[ "MIT" ]
null
null
null
valor = str(input('Valor para saque: ').strip()) last = valor[len(valor) - 1] valor = int(valor) if last == '1': valor += 1 print(f'o valor precisou ser corrigido para R${valor},00 pois não há notas de R$ 1,00 disponíveis') print() tot100 = tot50 = tot20 = tot10 = tot5 = tot2 = 0 while True: ...
19.7
104
0.425127
valor = str(input('Valor para saque: ').strip()) last = valor[len(valor) - 1] valor = int(valor) if last == '1': valor += 1 print(f'o valor precisou ser corrigido para R${valor},00 pois não há notas de R$ 1,00 disponíveis') print() tot100 = tot50 = tot20 = tot10 = tot5 = tot2 = 0 while True: ...
0
0
0
cfea1adda1cef4fa8dfdce519ed08e934086381e
4,414
py
Python
library/aos_cap_whitelist.py
jayp193/aos-wlan-ansible-role
0e8ef5d3a890bed6b0e402f92d6aaedf5d8bf9fb
[ "Apache-2.0" ]
2
2020-07-20T15:51:45.000Z
2022-02-22T12:23:48.000Z
library/aos_cap_whitelist.py
jayp193/aos-wlan-ansible-role
0e8ef5d3a890bed6b0e402f92d6aaedf5d8bf9fb
[ "Apache-2.0" ]
2
2020-06-23T20:58:22.000Z
2021-02-02T18:13:33.000Z
library/aos_cap_whitelist.py
jayp193/aos-wlan-ansible-role
0e8ef5d3a890bed6b0e402f92d6aaedf5d8bf9fb
[ "Apache-2.0" ]
2
2020-06-23T21:42:20.000Z
2021-06-04T04:20:59.000Z
#!/usr/bin/python3 ''' Module for Whitelisting Access Points ''' # -*- coding: utf-8 -*- # (C) Copyright 2020 Hewlett Packard Enterprise Development LP. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of th...
31.084507
86
0.647938
#!/usr/bin/python3 ''' Module for Whitelisting Access Points ''' # -*- coding: utf-8 -*- # (C) Copyright 2020 Hewlett Packard Enterprise Development LP. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of th...
1,395
0
23
7da31b17c2cd6923e482d3e74dbd413d9877b147
1,488
py
Python
ramp/builders.py
Marigold/ramp
f9ddea84bc3b5097c0ddb8a3f71a0fce1775ba76
[ "MIT" ]
1
2015-03-12T23:51:10.000Z
2015-03-12T23:51:10.000Z
ramp/builders.py
Marigold/ramp
f9ddea84bc3b5097c0ddb8a3f71a0fce1775ba76
[ "MIT" ]
null
null
null
ramp/builders.py
Marigold/ramp
f9ddea84bc3b5097c0ddb8a3f71a0fce1775ba76
[ "MIT" ]
null
null
null
from configuration import * from features.base import BaseFeature, Feature, ConstantFeature from utils import _pprint, get_single_column from pandas import concat, DataFrame, Series, Index import numpy as np
31
93
0.668011
from configuration import * from features.base import BaseFeature, Feature, ConstantFeature from utils import _pprint, get_single_column from pandas import concat, DataFrame, Series, Index import numpy as np def build_target(target, context): y = target.create(context) return get_single_column(y) def build_...
1,206
0
69
9a22382029101b296f687c549cf395c5ad741718
497
py
Python
core/forms.py
igr-santos/merit-market
a7bf8cc00071f63e8e98826c2c19d93120dbece9
[ "MIT" ]
1
2021-07-07T14:18:29.000Z
2021-07-07T14:18:29.000Z
core/forms.py
igr-santos/merit-market
a7bf8cc00071f63e8e98826c2c19d93120dbece9
[ "MIT" ]
null
null
null
core/forms.py
igr-santos/merit-market
a7bf8cc00071f63e8e98826c2c19d93120dbece9
[ "MIT" ]
null
null
null
# coding: utf-8 from django import forms from .models import Transaction from .models import Customer
27.611111
74
0.682093
# coding: utf-8 from django import forms from .models import Transaction from .models import Customer class TransactionForm(forms.ModelForm): receiver = forms.ModelChoiceField(queryset=Transaction.objects.none()) def __init__(self, user, *args, **kwargs): super(TransactionForm, self).__init__(*args, ...
176
195
23
4e4b53e919c63e339641271dbfe16dbeb4021ed4
401
py
Python
guikit/extensions/example_plugin/notebook.py
ImperialCollegeLondon/guikit
721b3ac976d254f0f95c3f0bebb43669f310fd02
[ "BSD-3-Clause" ]
3
2022-01-20T12:13:26.000Z
2022-01-20T12:42:03.000Z
guikit/extensions/example_plugin/notebook.py
ImperialCollegeLondon/python-gui-template
721b3ac976d254f0f95c3f0bebb43669f310fd02
[ "BSD-3-Clause" ]
14
2021-09-21T15:19:36.000Z
2021-11-28T00:05:32.000Z
guikit/extensions/example_plugin/notebook.py
ImperialCollegeLondon/guikit
721b3ac976d254f0f95c3f0bebb43669f310fd02
[ "BSD-3-Clause" ]
null
null
null
import wx from guikit.plugins import PluginBase, Tab
23.588235
60
0.57606
import wx from guikit.plugins import PluginBase, Tab class NotebookPlugin(PluginBase): def tabs(self, parent): text1 = Tab( page=wx.TextCtrl(parent, style=wx.TE_MULTILINE), text="Text area", ) text2 = Tab( page=wx.TextCtrl(parent, style=wx.TE_MULTILINE)...
285
12
49
28738d283bf4868349454e25d748bec7dc9a9c6f
33,650
py
Python
sdk/python/pulumi_gcp/dataloss/prevention_deidentify_template.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
121
2018-06-18T19:16:42.000Z
2022-03-31T06:06:48.000Z
sdk/python/pulumi_gcp/dataloss/prevention_deidentify_template.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
492
2018-06-22T19:41:03.000Z
2022-03-31T15:33:53.000Z
sdk/python/pulumi_gcp/dataloss/prevention_deidentify_template.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
43
2018-06-19T01:43:13.000Z
2022-03-23T22:43:37.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
56.841216
422
0.624101
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
3,046
30,037
67
8507de2c30bd2745a0276ae3c30b8e452c32e14f
486
py
Python
processing/MinMaxScaler.py
lkhphuc/slack-visual-summary
59c88580d95222718dd5c260eb1eacd01e3eeb35
[ "MIT" ]
2
2018-08-14T09:11:33.000Z
2019-09-17T18:25:26.000Z
processing/MinMaxScaler.py
lkhphuc/slack-visual-summary
59c88580d95222718dd5c260eb1eacd01e3eeb35
[ "MIT" ]
null
null
null
processing/MinMaxScaler.py
lkhphuc/slack-visual-summary
59c88580d95222718dd5c260eb1eacd01e3eeb35
[ "MIT" ]
null
null
null
from sklearn.preprocessing import MinMaxScaler from numpy import loadtxt import numpy as np import matplotlib as plt import pandas as pd from numpy import reshape data = loadtxt('data-time.txt') print(data) #redata = np.reshape(-1,1) #print(redata) scaler = MinMaxScaler() print(scaler.fit(data)) MinMaxScaler(copy=Tru...
23.142857
47
0.751029
from sklearn.preprocessing import MinMaxScaler from numpy import loadtxt import numpy as np import matplotlib as plt import pandas as pd from numpy import reshape data = loadtxt('data-time.txt') print(data) #redata = np.reshape(-1,1) #print(redata) scaler = MinMaxScaler() print(scaler.fit(data)) MinMaxScaler(copy=Tru...
0
0
0
0fe5f55b94767e2765b101413f36d3b004c94b0e
3,710
py
Python
roomInformationExport.py
ruornil/revitDynamoScripts
dc01db653a721136da4e3f99469df4e06becb767
[ "MIT" ]
null
null
null
roomInformationExport.py
ruornil/revitDynamoScripts
dc01db653a721136da4e3f99469df4e06becb767
[ "MIT" ]
null
null
null
roomInformationExport.py
ruornil/revitDynamoScripts
dc01db653a721136da4e3f99469df4e06becb767
[ "MIT" ]
null
null
null
#Copyright(c) 2015, Nathan Miller # The Proving Ground, http://theprovingground.org #Edited and modified by Mehmet Cenk Tunaboylu, to better suit his needs. Removed boundary curves extraction. Added department extraction. import clr # Import RevitAPI clr.AddReference("RevitAPI") import Autodesk from Autodesk...
28.538462
138
0.695957
#Copyright(c) 2015, Nathan Miller # The Proving Ground, http://theprovingground.org #Edited and modified by Mehmet Cenk Tunaboylu, to better suit his needs. Removed boundary curves extraction. Added department extraction. import clr # Import RevitAPI clr.AddReference("RevitAPI") import Autodesk from Autodesk...
0
0
0
4da836cc685f5c603b5df612aa13b9c3f035b149
14,627
py
Python
util.py
yinkaisheng/AgoraRteDemo
512769e299ac19601589b0c4c154e012aea27ffb
[ "Apache-2.0" ]
1
2022-03-03T14:40:53.000Z
2022-03-03T14:40:53.000Z
util.py
yinkaisheng/AgoraRteDemo
512769e299ac19601589b0c4c154e012aea27ffb
[ "Apache-2.0" ]
null
null
null
util.py
yinkaisheng/AgoraRteDemo
512769e299ac19601589b0c4c154e012aea27ffb
[ "Apache-2.0" ]
null
null
null
#!python3 # -*- coding: utf-8 -*- # author: yinkaisheng@foxmail.com import os import sys import json import ctypes import pickle import shutil # import socket import zipfile import datetime from typing import Any, Callable, Iterator, Dict, List, Tuple _SelfFileName = os.path.split(__file__)[1] def getStrBetween(...
36.027094
162
0.569768
#!python3 # -*- coding: utf-8 -*- # author: yinkaisheng@foxmail.com import os import sys import json import ctypes import pickle import shutil # import socket import zipfile import datetime from typing import Any, Callable, Iterator, Dict, List, Tuple _SelfFileName = os.path.split(__file__)[1] def isPy38OrHigher():...
3,773
0
372
ab2e2e05cac1d8b78c98df686d33b8380319786a
2,482
py
Python
explainers/representer.py
gmatt/Simplex
787f01a83783835137819110a309b46dc66418db
[ "Apache-2.0" ]
10
2021-11-01T02:32:04.000Z
2022-01-27T17:24:06.000Z
explainers/representer.py
gmatt/Simplex
787f01a83783835137819110a309b46dc66418db
[ "Apache-2.0" ]
1
2022-01-06T20:18:15.000Z
2022-01-28T14:13:44.000Z
explainers/representer.py
gmatt/Simplex
787f01a83783835137819110a309b46dc66418db
[ "Apache-2.0" ]
6
2021-11-23T03:08:25.000Z
2022-02-22T03:02:34.000Z
import torch
42.793103
120
0.680902
import torch class Representer: def __init__(self, corpus_latent_reps: torch.Tensor, corpus_probas: torch.Tensor, corpus_true_classes: torch.Tensor, reg_factor: float) -> None: """ Initialize a representer theorem explainer :param corpus_latent_reps: corpus latent represe...
0
2,445
23
bde34ca3526e7f51ff2fa0a0e40bdfa61e94305e
1,097
py
Python
src/psiz/utils/rotation_matrix.py
greenfieldvision/psiz
37068530a78e08792e827ee55cf55e627add115e
[ "Apache-2.0" ]
21
2020-04-03T21:10:05.000Z
2021-12-02T01:31:11.000Z
src/psiz/utils/rotation_matrix.py
greenfieldvision/psiz
37068530a78e08792e827ee55cf55e627add115e
[ "Apache-2.0" ]
14
2020-04-10T00:48:02.000Z
2021-05-25T18:06:55.000Z
psiz/utils/rotation_matrix.py
rgerkin/psiz
d540738462b6436a08a472d5e349ca2b813e6d47
[ "Apache-2.0" ]
4
2020-10-13T16:46:14.000Z
2021-11-10T00:08:47.000Z
# -*- coding: utf-8 -*- # Copyright 2020 The PsiZ Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
29.648649
78
0.655424
# -*- coding: utf-8 -*- # Copyright 2020 The PsiZ Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
0
0
0
0bbeffa00ad38c43587387598ac50be666e90d9a
462
py
Python
discordCommands/hello.py
asoji/Yiski
8c64a04bb4e3b3f72a70de28203be2c3618c5f9c
[ "MIT" ]
null
null
null
discordCommands/hello.py
asoji/Yiski
8c64a04bb4e3b3f72a70de28203be2c3618c5f9c
[ "MIT" ]
11
2022-01-27T08:02:41.000Z
2022-02-10T23:32:29.000Z
discordCommands/hello.py
asoji/Yiski
8c64a04bb4e3b3f72a70de28203be2c3618c5f9c
[ "MIT" ]
1
2022-01-27T06:11:48.000Z
2022-01-27T06:11:48.000Z
from discord.ext import commands from loguru import logger from mainDiscord import embedCreator
25.666667
111
0.712121
from discord.ext import commands from loguru import logger from mainDiscord import embedCreator class HelloDiscord(commands.Cog): def __init__(self, client): self.client = client @commands.command() async def hello(self, ctx): await ctx.send(embed=embedCreator("Hello World!", f"& Howdy Ne...
229
89
46
a3b12a22896d70cbbefc9e7e1dafb2be8fc7279c
78
py
Python
tests/roots/test-maxlistdepth/conf.py
samdoran/sphinx
4c91c038b220d07bbdfe0c1680af42fe897f342c
[ "BSD-2-Clause" ]
4,973
2015-01-03T15:44:00.000Z
2022-03-31T03:11:51.000Z
tests/roots/test-maxlistdepth/conf.py
samdoran/sphinx
4c91c038b220d07bbdfe0c1680af42fe897f342c
[ "BSD-2-Clause" ]
7,850
2015-01-02T08:09:25.000Z
2022-03-31T18:57:40.000Z
tests/roots/test-maxlistdepth/conf.py
samdoran/sphinx
4c91c038b220d07bbdfe0c1680af42fe897f342c
[ "BSD-2-Clause" ]
2,179
2015-01-03T15:26:53.000Z
2022-03-31T12:22:44.000Z
exclude_patterns = ['_build'] latex_elements = { 'maxlistdepth': '10', }
13
29
0.641026
exclude_patterns = ['_build'] latex_elements = { 'maxlistdepth': '10', }
0
0
0
acdf93786f95a7945c8913e5d9f8076e4683bcb1
2,174
py
Python
disturbance/migrations/0267_auto_20210711_1208.py
jawaidm/disturbance
4188e816239b9447a58a987d16dd0f05bc6aad53
[ "Apache-2.0" ]
null
null
null
disturbance/migrations/0267_auto_20210711_1208.py
jawaidm/disturbance
4188e816239b9447a58a987d16dd0f05bc6aad53
[ "Apache-2.0" ]
16
2020-03-11T08:25:46.000Z
2022-03-02T08:14:40.000Z
disturbance/migrations/0267_auto_20210711_1208.py
jawaidm/disturbance
4188e816239b9447a58a987d16dd0f05bc6aad53
[ "Apache-2.0" ]
9
2020-01-30T17:37:38.000Z
2021-09-30T02:22:24.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2021-07-11 04:08 from __future__ import unicode_literals from django.db import migrations, models
32.939394
73
0.587856
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2021-07-11 04:08 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('disturbance', '0266_auto_20210708_1640'), ] operations = [ migrations.AddF...
0
1,994
23
d4975d812aa56d965dedc021abeae297e292f266
1,650
py
Python
build/android/adb_profile_xwalk.py
gaurangkumar/crosswalk
1b9b80835e83e77390bd6cdbc03beb63f2a6f550
[ "BSD-3-Clause" ]
2,211
2015-01-01T08:50:09.000Z
2022-03-30T02:48:16.000Z
build/android/adb_profile_xwalk.py
gaurangkumar/crosswalk
1b9b80835e83e77390bd6cdbc03beb63f2a6f550
[ "BSD-3-Clause" ]
1,269
2015-01-02T10:43:16.000Z
2020-01-17T00:58:09.000Z
build/android/adb_profile_xwalk.py
gaurangkumar/crosswalk
1b9b80835e83e77390bd6cdbc03beb63f2a6f550
[ "BSD-3-Clause" ]
585
2015-01-02T01:12:15.000Z
2022-03-09T07:07:18.000Z
#!/usr/bin/env python # # Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # Copyright (c) 2014 Intel Corporation. All rights reserved. # Use of this source code is governed by a BSD-style license that can b...
29.464286
78
0.749697
#!/usr/bin/env python # # Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # Copyright (c) 2014 Intel Corporation. All rights reserved. # Use of this source code is governed by a BSD-style license that can b...
449
0
46
97eac6d4984d6c7cf82f679600d677aae6b3f6a2
814
py
Python
setup.py
interactions-py/enhanced
d9799464bdab23c171fe790dd7a763ac9dd92eee
[ "MIT" ]
4
2022-03-12T03:14:12.000Z
2022-03-23T15:56:14.000Z
setup.py
interactions-py/enhanced
d9799464bdab23c171fe790dd7a763ac9dd92eee
[ "MIT" ]
2
2022-03-16T02:21:08.000Z
2022-03-29T03:18:59.000Z
setup.py
interactions-py/enhanced
d9799464bdab23c171fe790dd7a763ac9dd92eee
[ "MIT" ]
null
null
null
from setuptools import setup with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setup( name="enhanced", version="4.0.0", description="Enhanced interactions for interactions.py", long_description=long_description, long_description_content_type="text/markdown", ...
29.071429
60
0.644963
from setuptools import setup with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setup( name="enhanced", version="4.0.0", description="Enhanced interactions for interactions.py", long_description=long_description, long_description_content_type="text/markdown", ...
0
0
0
739a497ac7f435d24ff346cd7c79613e917bdbb4
5,308
py
Python
src/python/pull_requests/menu.py
bvdeenen/bitbar
4bd0876dacecc55f2cb60027510ba47ff7d84d12
[ "MIT" ]
null
null
null
src/python/pull_requests/menu.py
bvdeenen/bitbar
4bd0876dacecc55f2cb60027510ba47ff7d84d12
[ "MIT" ]
null
null
null
src/python/pull_requests/menu.py
bvdeenen/bitbar
4bd0876dacecc55f2cb60027510ba47ff7d84d12
[ "MIT" ]
null
null
null
import itertools from typing import List, Dict from .config import PullRequestsConstants from .domain import PullRequest, PullRequestSort, PullRequestStatus, PullRequestsOverview, PullRequestException from .notification import send_notification_pr from ..common.config import get_logger from ..common.icons import Icon,...
41.795276
118
0.683685
import itertools from typing import List, Dict from .config import PullRequestsConstants from .domain import PullRequest, PullRequestSort, PullRequestStatus, PullRequestsOverview, PullRequestException from .notification import send_notification_pr from ..common.config import get_logger from ..common.icons import Icon,...
4,695
0
115
fda7626c94b77811ec4a56e243a28182a9495ac4
4,598
py
Python
tests/posts_templatetags/tests.py
samuelmaudo/marchena
e9a522a9be66f7043aa61e316f7e733e8ccf1e32
[ "BSD-3-Clause" ]
null
null
null
tests/posts_templatetags/tests.py
samuelmaudo/marchena
e9a522a9be66f7043aa61e316f7e733e8ccf1e32
[ "BSD-3-Clause" ]
null
null
null
tests/posts_templatetags/tests.py
samuelmaudo/marchena
e9a522a9be66f7043aa61e316f7e733e8ccf1e32
[ "BSD-3-Clause" ]
null
null
null
# -*- coding:utf-8 -*- from __future__ import unicode_literals from django.test import SimpleTestCase from yepes.test_mixins import TemplateTagsMixin from marchena.modules.posts.templatetags.posts import ( CalendarTag, GetArchivesTag, GetCategoryTag, GetCategoriesTag, GetNextPostTag, GetPopu...
28.036585
115
0.597434
# -*- coding:utf-8 -*- from __future__ import unicode_literals from django.test import SimpleTestCase from yepes.test_mixins import TemplateTagsMixin from marchena.modules.posts.templatetags.posts import ( CalendarTag, GetArchivesTag, GetCategoryTag, GetCategoriesTag, GetNextPostTag, GetPopu...
3,295
636
23
a6745ce4b94e00cc9b78ece31861fa3b258dc893
1,740
py
Python
setup.py
ysuter/DeepNeuro
f6a4a9d0960c696fb73dfcc1093bfd8496b0b6ed
[ "MIT" ]
113
2017-10-15T23:22:02.000Z
2022-01-22T19:33:39.000Z
setup.py
ysuter/DeepNeuro
f6a4a9d0960c696fb73dfcc1093bfd8496b0b6ed
[ "MIT" ]
39
2017-10-02T18:23:33.000Z
2021-01-10T03:02:43.000Z
setup.py
ysuter/DeepNeuro
f6a4a9d0960c696fb73dfcc1093bfd8496b0b6ed
[ "MIT" ]
39
2017-10-15T23:22:05.000Z
2021-08-31T14:02:56.000Z
"""DeepNeuro: A deep learning python package for neuroimaging data. Created by the Quantitative Tumor Imaging Lab at the Martinos Center (Harvard-MIT Program in Health, Sciences, and Technology / Massachussets General Hospital). """ DOCLINES = __doc__.split("\n") import sys from setuptools import setup, find_pack...
42.439024
262
0.659195
"""DeepNeuro: A deep learning python package for neuroimaging data. Created by the Quantitative Tumor Imaging Lab at the Martinos Center (Harvard-MIT Program in Health, Sciences, and Technology / Massachussets General Hospital). """ DOCLINES = __doc__.split("\n") import sys from setuptools import setup, find_pack...
0
0
0
fb1a8e971ff4bcd9956b2507666420e60420eb72
960
py
Python
coralquant/spider/bs_sz50_stocks.py
dabuc/CoralQuant
26ba2e0b39a897d8947166796c6a4e9f5ab202fa
[ "MIT" ]
null
null
null
coralquant/spider/bs_sz50_stocks.py
dabuc/CoralQuant
26ba2e0b39a897d8947166796c6a4e9f5ab202fa
[ "MIT" ]
null
null
null
coralquant/spider/bs_sz50_stocks.py
dabuc/CoralQuant
26ba2e0b39a897d8947166796c6a4e9f5ab202fa
[ "MIT" ]
null
null
null
from coralquant.models.odl_model import BS_SZ50_Stocks import baostock as bs import pandas as pd from sqlalchemy import String from coralquant.database import engine from coralquant.settings import CQ_Config def get_sz50_stocks(): """ 获取上证50成分股数据 """ #删除数据 BS_SZ50_Stocks.del_all_data() # 登陆系统 ...
25.945946
108
0.690625
from coralquant.models.odl_model import BS_SZ50_Stocks import baostock as bs import pandas as pd from sqlalchemy import String from coralquant.database import engine from coralquant.settings import CQ_Config def get_sz50_stocks(): """ 获取上证50成分股数据 """ #删除数据 BS_SZ50_Stocks.del_all_data() # 登陆系统 ...
0
0
0
7eee30bb582ba5ab6b61fd5ba6e6d77feca738b4
235
py
Python
pyswarms/utils/search/__init__.py
goncalogteixeira/pyswarns
c18d61e40f582e54a3a23f0b55c1fff43ec6a5bd
[ "MIT" ]
959
2017-07-23T11:30:24.000Z
2022-03-30T14:10:55.000Z
pyswarms/utils/search/__init__.py
goncalogteixeira/pyswarns
c18d61e40f582e54a3a23f0b55c1fff43ec6a5bd
[ "MIT" ]
335
2017-07-22T07:22:46.000Z
2022-03-24T13:09:15.000Z
pyswarms/utils/search/__init__.py
goncalogteixeira/pyswarns
c18d61e40f582e54a3a23f0b55c1fff43ec6a5bd
[ "MIT" ]
363
2017-07-25T01:58:23.000Z
2022-03-28T17:19:11.000Z
""" The :mod:`pyswarms.utils.search` module implements various techniques in hyperparameter value optimization. """ from .grid_search import GridSearch from .random_search import RandomSearch __all__ = ["GridSearch", "RandomSearch"]
23.5
72
0.791489
""" The :mod:`pyswarms.utils.search` module implements various techniques in hyperparameter value optimization. """ from .grid_search import GridSearch from .random_search import RandomSearch __all__ = ["GridSearch", "RandomSearch"]
0
0
0
d2739cc17fbb8439caf847f29094b14cd0a43ae8
3,203
py
Python
analysis_data/AnalysisResult.py
solmannn/alu
1e31b8a39a4718f32b4a8d3f5614553744fd2aad
[ "MIT" ]
null
null
null
analysis_data/AnalysisResult.py
solmannn/alu
1e31b8a39a4718f32b4a8d3f5614553744fd2aad
[ "MIT" ]
null
null
null
analysis_data/AnalysisResult.py
solmannn/alu
1e31b8a39a4718f32b4a8d3f5614553744fd2aad
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------- # Copyright 2018-2020, Christian Pilato <christian.pilato@polimi.it> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the Lic...
61.596154
291
0.55167
# ------------------------------------------------------------------------------- # Copyright 2018-2020, Christian Pilato <christian.pilato@polimi.it> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the Lic...
2,299
0
125
0f1c48a7f94fc42da2ea79d6bd12b1264ea44199
313
py
Python
labs/04_conv_nets_2/solutions/geom_avg.py
souillade/Deep
3d79384638220376deb7c4c656cfb9cc497998ad
[ "MIT" ]
1
2017-11-30T17:25:08.000Z
2017-11-30T17:25:08.000Z
labs/04_conv_nets_2/solutions/geom_avg.py
souillade/Deep
3d79384638220376deb7c4c656cfb9cc497998ad
[ "MIT" ]
null
null
null
labs/04_conv_nets_2/solutions/geom_avg.py
souillade/Deep
3d79384638220376deb7c4c656cfb9cc497998ad
[ "MIT" ]
null
null
null
heatmap_1_r = imresize(heatmap_1, (50,80)).astype("float32") heatmap_2_r = imresize(heatmap_2, (50,80)).astype("float32") heatmap_3_r = imresize(heatmap_3, (50,80)).astype("float32") heatmap_geom_avg = np.power(heatmap_1_r * heatmap_2_r * heatmap_3_r, 0.333) display_img_and_heatmap("dog.jpg", heatmap_geom_avg)
44.714286
75
0.766773
heatmap_1_r = imresize(heatmap_1, (50,80)).astype("float32") heatmap_2_r = imresize(heatmap_2, (50,80)).astype("float32") heatmap_3_r = imresize(heatmap_3, (50,80)).astype("float32") heatmap_geom_avg = np.power(heatmap_1_r * heatmap_2_r * heatmap_3_r, 0.333) display_img_and_heatmap("dog.jpg", heatmap_geom_avg)
0
0
0
fd81f46f8c005602f66b88f3c0b86953d5e2ec77
33,356
py
Python
named-entity-recognizer.py
YNedderhoff/sentiment-classifier
13d28217f81c21562e5b79f0f85309a968ee534a
[ "MIT" ]
1
2017-06-26T15:43:23.000Z
2017-06-26T15:43:23.000Z
named-entity-recognizer.py
YNedderhoff/sentiment-classifier
13d28217f81c21562e5b79f0f85309a968ee534a
[ "MIT" ]
null
null
null
named-entity-recognizer.py
YNedderhoff/sentiment-classifier
13d28217f81c21562e5b79f0f85309a968ee534a
[ "MIT" ]
null
null
null
import codecs import time import cPickle import gzip import random import os import math import modules.token as tk import modules.perceptron as perceptron import modules.lmi as lmi from modules.evaluation import evaluate from modules.affixes import find_affixes # save the model (weight vectors) to a file: ...
50.770167
130
0.505067
import codecs import time import cPickle import gzip import random import os import math import modules.token as tk import modules.perceptron as perceptron import modules.lmi as lmi from modules.evaluation import evaluate from modules.affixes import find_affixes class posTagger: def __init__(self): p...
29,383
-5
234
5f31560a74d5dfb63e7c3127102442b9295b9807
386
py
Python
src/python/pants/init/bootstrap_scheduler.py
rcuza/pants
0429258b181986eed856ae45af93b776727774a0
[ "Apache-2.0" ]
1,806
2015-01-05T07:31:00.000Z
2022-03-31T11:35:41.000Z
src/python/pants/init/bootstrap_scheduler.py
rcuza/pants
0429258b181986eed856ae45af93b776727774a0
[ "Apache-2.0" ]
9,565
2015-01-02T19:01:59.000Z
2022-03-31T23:25:16.000Z
src/python/pants/init/bootstrap_scheduler.py
rcuza/pants
0429258b181986eed856ae45af93b776727774a0
[ "Apache-2.0" ]
443
2015-01-06T20:17:57.000Z
2022-03-31T05:28:17.000Z
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from dataclasses import dataclass from pants.engine.internals.scheduler import Scheduler @dataclass(frozen=True) class BootstrapScheduler: """A Scheduler that has been configured wi...
27.571429
85
0.784974
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from dataclasses import dataclass from pants.engine.internals.scheduler import Scheduler @dataclass(frozen=True) class BootstrapScheduler: """A Scheduler that has been configured wi...
0
0
0
20f7b957862e865fca511976b35c043c5e91e60d
756
py
Python
django_bootstrap_dynamic_formsets/templatetags/bootstrap_dynamic_formsets.py
AHouy/django-bootstrap-dynamic-formsets
d8b99a43b185c0cdf3137ebc25d6ba13d5032644
[ "MIT" ]
23
2015-06-15T20:24:33.000Z
2021-12-22T07:18:45.000Z
django_bootstrap_dynamic_formsets/templatetags/bootstrap_dynamic_formsets.py
AHouy/django-bootstrap-dynamic-formsets
d8b99a43b185c0cdf3137ebc25d6ba13d5032644
[ "MIT" ]
9
2015-06-16T18:11:16.000Z
2018-04-04T15:45:08.000Z
django_bootstrap_dynamic_formsets/templatetags/bootstrap_dynamic_formsets.py
AHouy/django-bootstrap-dynamic-formsets
d8b99a43b185c0cdf3137ebc25d6ba13d5032644
[ "MIT" ]
19
2015-06-16T08:04:29.000Z
2021-03-12T23:51:17.000Z
from django import template from django.utils.html import format_html register = template.Library() @register.inclusion_tag('django_bootstrap_dynamic_formsets/dynamic_formsets.html') @register.inclusion_tag('django_bootstrap_dynamic_formsets/dynamic_formsets_js.html',takes_context=True)
47.25
104
0.747354
from django import template from django.utils.html import format_html register = template.Library() @register.inclusion_tag('django_bootstrap_dynamic_formsets/dynamic_formsets.html') def bootstrap_dynamic_formset(formset, can_order=False, can_delete=False, form_wrapper="well", layout=""...
421
0
44
29b5f73253e00d865823d44734062de6df02df9d
22,805
py
Python
gen/acl_pb2.py
zizon/prpc
a075256eb55a31a535aa5e7fd0d00a78b3b44966
[ "MIT" ]
null
null
null
gen/acl_pb2.py
zizon/prpc
a075256eb55a31a535aa5e7fd0d00a78b3b44966
[ "MIT" ]
null
null
null
gen/acl_pb2.py
zizon/prpc
a075256eb55a31a535aa5e7fd0d00a78b3b44966
[ "MIT" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: acl.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) imp...
34.500756
2,158
0.75979
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: acl.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) imp...
0
2,885
322
af81ed36e1f1184d64fb2de2e30627cacf0e71cb
8,288
py
Python
docs/generate_class1_pan.py
eyeshoe/mhcflurry
b87aac3cf1a782cb1235f9b724388bbdd933d9fb
[ "Apache-2.0" ]
1
2020-01-01T23:06:01.000Z
2020-01-01T23:06:01.000Z
docs/generate_class1_pan.py
eyeshoe/mhcflurry
b87aac3cf1a782cb1235f9b724388bbdd933d9fb
[ "Apache-2.0" ]
null
null
null
docs/generate_class1_pan.py
eyeshoe/mhcflurry
b87aac3cf1a782cb1235f9b724388bbdd933d9fb
[ "Apache-2.0" ]
null
null
null
""" Generate certain RST files used in documentation. """ from __future__ import print_function import sys import argparse from collections import OrderedDict, defaultdict import os from os.path import join, exists from os import mkdir import pandas import logomaker from matplotlib import pyplot from mhcflurry.downl...
30.470588
89
0.628016
""" Generate certain RST files used in documentation. """ from __future__ import print_function import sys import argparse from collections import OrderedDict, defaultdict import os from os.path import join, exists from os import mkdir import pandas import logomaker from matplotlib import pyplot from mhcflurry.downl...
6,353
0
92
8052c6f74b616a1d0ff9897edcd89cb694062362
25,872
py
Python
face_detector/face_detector_google3.py
michaelmurdock/py_ml_projects
fbfaa6e6b10f413f8810b642d2e6144f18e163a0
[ "BSD-2-Clause" ]
null
null
null
face_detector/face_detector_google3.py
michaelmurdock/py_ml_projects
fbfaa6e6b10f413f8810b642d2e6144f18e163a0
[ "BSD-2-Clause" ]
null
null
null
face_detector/face_detector_google3.py
michaelmurdock/py_ml_projects
fbfaa6e6b10f413f8810b642d2e6144f18e163a0
[ "BSD-2-Clause" ]
null
null
null
# face_detector_google3.py # # This version expects a source folder containing folders of images, # as you get with the LFW distribution. # Each folder is named for one person and that folder should contain # only photos of that person. # # Environment Variable: GOOGLE_APPLICATION_CREDENTIALS # C:\pyDev\__My Scripts\f...
35.933333
219
0.681548
# face_detector_google3.py # # This version expects a source folder containing folders of images, # as you get with the LFW distribution. # Each folder is named for one person and that folder should contain # only photos of that person. # # Environment Variable: GOOGLE_APPLICATION_CREDENTIALS # C:\pyDev\__My Scripts\f...
439
670
68
7a3207755b382e0dbaeacf1643ede4b9c1101673
41
py
Python
pii_crypt/__init__.py
jmilagroso/pii_crypt
ada156d6b85ada9c19d28cab8fc1b8d1c7e6a0a7
[ "MIT" ]
null
null
null
pii_crypt/__init__.py
jmilagroso/pii_crypt
ada156d6b85ada9c19d28cab8fc1b8d1c7e6a0a7
[ "MIT" ]
18
2021-07-19T15:37:44.000Z
2022-03-16T20:27:06.000Z
pii_crypt/__init__.py
jmilagroso/pii_crypt
ada156d6b85ada9c19d28cab8fc1b8d1c7e6a0a7
[ "MIT" ]
2
2021-08-13T00:29:04.000Z
2022-03-30T00:41:34.000Z
from pii_crypt.pii_crypt import PIICrypt
20.5
40
0.878049
from pii_crypt.pii_crypt import PIICrypt
0
0
0
a4bc2186bb3e8677879261e010f1cfbd360c8359
1,502
py
Python
msoft-format.py
wallscope-research/incremental-asr-evaluation
d4e79b49b8b309888992ed96bd69d3d624098abf
[ "Apache-2.0" ]
null
null
null
msoft-format.py
wallscope-research/incremental-asr-evaluation
d4e79b49b8b309888992ed96bd69d3d624098abf
[ "Apache-2.0" ]
null
null
null
msoft-format.py
wallscope-research/incremental-asr-evaluation
d4e79b49b8b309888992ed96bd69d3d624098abf
[ "Apache-2.0" ]
null
null
null
from universal import process, clean_csv, add_trans_chunk import sys import re # The infile is the system trancript. infile = sys.argv[1] # Using the system output name, the relevant universal format and full transcripts are gathered. filename_prep = re.search(r"(?<=system-output\/)(.*?)(?=\.txt)", infile).group(0) o...
39.526316
96
0.654461
from universal import process, clean_csv, add_trans_chunk import sys import re # The infile is the system trancript. infile = sys.argv[1] # Using the system output name, the relevant universal format and full transcripts are gathered. filename_prep = re.search(r"(?<=system-output\/)(.*?)(?=\.txt)", infile).group(0) o...
0
0
0
8ab199c3c2b997aeba40c8874ef806a8674f8b19
49
py
Python
Flask-todolist-Sqlite3-master/venv/lib/python3.6/tokenize.py
IncredibleDraco/MyScholar
272aafa33f7227d1bc0d937d046788cbabede453
[ "Apache-2.0" ]
null
null
null
Flask-todolist-Sqlite3-master/venv/lib/python3.6/tokenize.py
IncredibleDraco/MyScholar
272aafa33f7227d1bc0d937d046788cbabede453
[ "Apache-2.0" ]
null
null
null
Flask-todolist-Sqlite3-master/venv/lib/python3.6/tokenize.py
IncredibleDraco/MyScholar
272aafa33f7227d1bc0d937d046788cbabede453
[ "Apache-2.0" ]
1
2019-11-25T10:25:21.000Z
2019-11-25T10:25:21.000Z
/home/sheldon/anaconda3/lib/python3.6/tokenize.py
49
49
0.836735
/home/sheldon/anaconda3/lib/python3.6/tokenize.py
0
0
0
6e510c7e69d1c10e4a1f13a06328e422101135ca
2,202
py
Python
tests/test_rebar.py
SurajDadral/pyconcrete
479cce3fbe6754243b1df7c555ed1ac66ab6b23e
[ "MIT" ]
19
2019-03-27T18:34:38.000Z
2021-10-29T23:44:04.000Z
tests/test_rebar.py
SurajDadral/pyconcrete
479cce3fbe6754243b1df7c555ed1ac66ab6b23e
[ "MIT" ]
1
2019-07-19T02:48:47.000Z
2019-07-23T04:40:54.000Z
tests/test_rebar.py
SurajDadral/pyconcrete
479cce3fbe6754243b1df7c555ed1ac66ab6b23e
[ "MIT" ]
7
2019-05-20T05:49:37.000Z
2021-12-27T23:41:23.000Z
import pytest import copy from pyconcrete import rebar @pytest.fixture @pytest.fixture @pytest.fixture # def test_real_length(r1, lr1, ur1): # assert r1.real_length == 5 # assert lr1.real_length == 200 # assert ur1.real_length == 250
17.902439
71
0.565395
import pytest import copy from pyconcrete import rebar @pytest.fixture def r1(): r = rebar.Rebar( length=5, diameter=20, count=1, insert=(0, 0)) return r @pytest.fixture def lr1(): r = rebar.LRebar( length=5, diameter=20, count=2, insert=(...
1,521
0
411
e3d7dce2a490922ec373ed82c8d9594a8acddd24
3,212
py
Python
gui/qt_ui/EditGridQT.py
victorgabr/pps
dfe3fae64fd4dedde85204643f9c797c0373f96c
[ "BSD-3-Clause" ]
7
2018-11-18T07:11:05.000Z
2021-05-06T21:53:40.000Z
gui/qt_ui/EditGridQT.py
victorgabr/pps
dfe3fae64fd4dedde85204643f9c797c0373f96c
[ "BSD-3-Clause" ]
9
2019-09-23T16:34:09.000Z
2020-05-26T18:49:43.000Z
gui/qt_ui/EditGridQT.py
victorgabr/pps
dfe3fae64fd4dedde85204643f9c797c0373f96c
[ "BSD-3-Clause" ]
2
2019-04-18T14:34:31.000Z
2019-06-19T19:34:33.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'C:\Users\Victor\Dropbox\DFR\film2dose\qt_ui\edit_grid.ui' # # Created: Tue Sep 29 14:53:43 2015 # by: pyside-uic 0.2.15 running on PySide 1.2.2 # # WARNING! All changes made in this file will be lost! from PySide import QtCore, QtGui
48.666667
118
0.683064
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'C:\Users\Victor\Dropbox\DFR\film2dose\qt_ui\edit_grid.ui' # # Created: Tue Sep 29 14:53:43 2015 # by: pyside-uic 0.2.15 running on PySide 1.2.2 # # WARNING! All changes made in this file will be lost! from PySide import QtCore, QtGui ...
2,813
3
76
8971cf7bdc03885b5b25374ac539e3a70ab2dcbe
32,516
py
Python
pymwts/pymwtsio/tests/infiles/mwts_inputs_example/mwts_makedat.py
misken/pymwts
8e301b5badbd65f5dec8894ccbe0f0859785d20c
[ "MIT" ]
null
null
null
pymwts/pymwtsio/tests/infiles/mwts_inputs_example/mwts_makedat.py
misken/pymwts
8e301b5badbd65f5dec8894ccbe0f0859785d20c
[ "MIT" ]
null
null
null
pymwts/pymwtsio/tests/infiles/mwts_inputs_example/mwts_makedat.py
misken/pymwts
8e301b5badbd65f5dec8894ccbe0f0859785d20c
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------------- # Name: mwts_makedat # Purpose: mwts dat file creation # # Author: isken # # Created: 28/09/2011 # Copyright: (c) isken 2011 # Licence: <your licence> #-------------------------------------------------------------...
32.451098
164
0.605548
#------------------------------------------------------------------------------- # Name: mwts_makedat # Purpose: mwts dat file creation # # Author: isken # # Created: 28/09/2011 # Copyright: (c) isken 2011 # Licence: <your licence> #-------------------------------------------------------------...
5,173
0
115
449d1fc3442d6fde6ba47c80a9453ec71f482f75
914
py
Python
11_gsflow/Check sagehen control file.py
pnorton-usgs/notebooks
17a38ecd3f3c052b9bd785c2e53e16a9082d1e71
[ "MIT" ]
null
null
null
11_gsflow/Check sagehen control file.py
pnorton-usgs/notebooks
17a38ecd3f3c052b9bd785c2e53e16a9082d1e71
[ "MIT" ]
null
null
null
11_gsflow/Check sagehen control file.py
pnorton-usgs/notebooks
17a38ecd3f3c052b9bd785c2e53e16a9082d1e71
[ "MIT" ]
null
null
null
# --- # jupyter: # jupytext: # formats: ipynb,py:percent # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.13.7 # kernelspec: # display_name: Python [conda env:bandit_38] # language: python # name: conda-env-bandi...
17.576923
91
0.666302
# --- # jupyter: # jupytext: # formats: ipynb,py:percent # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.13.7 # kernelspec: # display_name: Python [conda env:bandit_38] # language: python # name: conda-env-bandi...
0
0
0
909094cdb2b9de5d6070c452b32d0ee249e210c5
1,999
py
Python
Arithmetic Exam Application/arithmetic.py
andreimaftei28/projects-on-JetBrainAcademy
8c2b8ab7bab5757db94e9f0b6d55c33852f64ee1
[ "MIT" ]
null
null
null
Arithmetic Exam Application/arithmetic.py
andreimaftei28/projects-on-JetBrainAcademy
8c2b8ab7bab5757db94e9f0b6d55c33852f64ee1
[ "MIT" ]
null
null
null
Arithmetic Exam Application/arithmetic.py
andreimaftei28/projects-on-JetBrainAcademy
8c2b8ab7bab5757db94e9f0b6d55c33852f64ee1
[ "MIT" ]
null
null
null
import random level1 = "simple operations with numbers 2-9" level2 = "integral squares of 11-29" message = f"Which level do you want? Enter a number:\n1 - {level1}\n2 - {level2}\n " user_choice = choose_level(input(message)) while user_choice == "Incorrect format.": print(user_choice) user_choice = choose_...
28.15493
102
0.563782
import random def operations(*args): if len(args) > 1: var1, oper, var2 = args if oper == "+": return var1 + var2 elif oper == "-": return var1 - var2 elif oper == "*": return var1 * var2 else: return args[0] ** 2 def int_or_float(v...
1,137
0
92
2956ea9a2b0645c1c811dc3b0a8f13efd29c18be
1,245
py
Python
tests/test_task.py
Yelp/pygear
8d9fe5f81b68666749149b1a64350c856b8a14a4
[ "BSD-3-Clause" ]
4
2015-04-01T21:38:09.000Z
2021-04-29T00:02:09.000Z
tests/test_task.py
Yelp/pygear
8d9fe5f81b68666749149b1a64350c856b8a14a4
[ "BSD-3-Clause" ]
6
2015-01-29T21:19:32.000Z
2018-01-14T00:35:31.000Z
tests/test_task.py
Yelp/pygear
8d9fe5f81b68666749149b1a64350c856b8a14a4
[ "BSD-3-Clause" ]
5
2015-02-04T02:17:59.000Z
2016-06-07T12:38:12.000Z
import gc import mock import pytest import pygear from . import noop_serializer @pytest.fixture
17.054795
75
0.714859
import gc import mock import pytest import pygear from . import noop_serializer @pytest.fixture def t(): return pygear.Task(None, None) def test_task_data_size(t): assert t.data_size() == 0 def test_task_denominator(t): assert t.denominator() == 0 def test_task_error(t): assert t.error() is No...
787
0
344
6c8c72e97a9e8e3f052049a4d52baeae902f0f4a
700
py
Python
tests/vocab_test.py
samuela/happyentropy
be7ac0ef255ac4336c7903b9e4e3ad36065fda9d
[ "MIT" ]
null
null
null
tests/vocab_test.py
samuela/happyentropy
be7ac0ef255ac4336c7903b9e4e3ad36065fda9d
[ "MIT" ]
null
null
null
tests/vocab_test.py
samuela/happyentropy
be7ac0ef255ac4336c7903b9e4e3ad36065fda9d
[ "MIT" ]
null
null
null
import unittest from happyentropy import vocab if __name__ == '__main__': unittest.main()
29.166667
49
0.737143
import unittest from happyentropy import vocab def all_unique(lst): return len(set(lst)) == len(lst) class VocabTest(unittest.TestCase): def testLengths(self): self.assertEqual(len(vocab.COUNTS), 32) self.assertEqual(len(vocab.ADJECTIVES), 128) self.assertEqual(len(vocab.ANIMALS), 128) self.assert...
498
14
95
bd0d3e125e8fa9cf371de0d2149bace1dd5a5ff2
11,845
py
Python
ufotest/plugin.py
the16thpythonist/ufotest
8c94e4227180328e6c29d6700c9a5f4aaecab3d2
[ "MIT" ]
null
null
null
ufotest/plugin.py
the16thpythonist/ufotest
8c94e4227180328e6c29d6700c9a5f4aaecab3d2
[ "MIT" ]
3
2021-03-19T15:52:59.000Z
2022-01-13T03:32:31.000Z
ufotest/plugin.py
the16thpythonist/ufotest
8c94e4227180328e6c29d6700c9a5f4aaecab3d2
[ "MIT" ]
null
null
null
import os import sys import importlib.util from typing import Any, Callable, Tuple from collections import defaultdict """ PLANNING So I want the plugin manager to work really similar to how the hook system in Wordpress works: https://developer.wordpress.org/plugins/hooks/ Thats because I already have a lot of exper...
50.190678
119
0.690756
import os import sys import importlib.util from typing import Any, Callable, Tuple from collections import defaultdict """ PLANNING So I want the plugin manager to work really similar to how the hook system in Wordpress works: https://developer.wordpress.org/plugins/hooks/ Thats because I already have a lot of exper...
211
0
26
5d86b35f3db11dad55a452934b8cb9df5ddcae92
951
py
Python
src/applications/train_siamesenet.py
myelinio/SpectralNet
9366942b7b98f6c2abf7159101feddbcc7c1bee5
[ "MIT" ]
null
null
null
src/applications/train_siamesenet.py
myelinio/SpectralNet
9366942b7b98f6c2abf7159101feddbcc7c1bee5
[ "MIT" ]
null
null
null
src/applications/train_siamesenet.py
myelinio/SpectralNet
9366942b7b98f6c2abf7159101feddbcc7c1bee5
[ "MIT" ]
null
null
null
""" """ import argparse import os import h5py import keras.backend.tensorflow_backend as ktf import tensorflow as tf from applications.config import get_siamese_config from applications.siamesenet import run_net from core.data import build_siamese_data, load_siamese_data from core.util import get_session # add dire...
28.818182
101
0.774974
""" """ import argparse import os import h5py import keras.backend.tensorflow_backend as ktf import tensorflow as tf from applications.config import get_siamese_config from applications.siamesenet import run_net from core.data import build_siamese_data, load_siamese_data from core.util import get_session # add dire...
0
0
0
218b5905c37ae4ce27c82b8d0a072722a71447ef
2,657
py
Python
consent_manager/consent_manager/urls.py
crs4/health-gateway
e18d945b593fa5efcebe7ee33f7e8991bbe1803d
[ "MIT" ]
5
2018-05-16T22:58:01.000Z
2020-01-14T11:12:17.000Z
consent_manager/consent_manager/urls.py
PhilanthroLab/health-gateway
e18d945b593fa5efcebe7ee33f7e8991bbe1803d
[ "MIT" ]
10
2018-04-13T15:56:49.000Z
2019-12-05T08:57:47.000Z
consent_manager/consent_manager/urls.py
PhilanthroLab/health-gateway
e18d945b593fa5efcebe7ee33f7e8991bbe1803d
[ "MIT" ]
6
2019-10-02T08:39:12.000Z
2020-06-23T00:18:03.000Z
# Copyright (c) 2017-2018 CRS4 # # 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, merge, publish, distribut...
51.096154
118
0.733534
# Copyright (c) 2017-2018 CRS4 # # 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, merge, publish, distribut...
0
0
0
e449ed54a476bf75fa0b35cf1c0a2f427c5e7128
2,944
py
Python
src/sentry/web/frontend/integration_extension_configuration.py
vaniot-s/sentry
5c1accadebfaf8baf6863251c05b38ea979ee1c7
[ "BSD-3-Clause" ]
null
null
null
src/sentry/web/frontend/integration_extension_configuration.py
vaniot-s/sentry
5c1accadebfaf8baf6863251c05b38ea979ee1c7
[ "BSD-3-Clause" ]
null
null
null
src/sentry/web/frontend/integration_extension_configuration.py
vaniot-s/sentry
5c1accadebfaf8baf6863251c05b38ea979ee1c7
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from django.core.urlresolvers import reverse from django.utils.http import urlencode from django.http import HttpResponseRedirect from sentry.integrations.pipeline import IntegrationPipeline from sentry.web.frontend.base import BaseView from sentry.models import Organization
35.902439
106
0.650815
from __future__ import absolute_import from django.core.urlresolvers import reverse from django.utils.http import urlencode from django.http import HttpResponseRedirect from sentry.integrations.pipeline import IntegrationPipeline from sentry.web.frontend.base import BaseView from sentry.models import Organization c...
2,352
201
72
f9f1ab3479a8fdfb4a582f1ffff596182f66eccb
90
py
Python
Day 7/question3.py
shivang-prabhu/python-assignment-project
e61e1b683425fb595699bbb432d0932c97c064e4
[ "MIT" ]
null
null
null
Day 7/question3.py
shivang-prabhu/python-assignment-project
e61e1b683425fb595699bbb432d0932c97c064e4
[ "MIT" ]
null
null
null
Day 7/question3.py
shivang-prabhu/python-assignment-project
e61e1b683425fb595699bbb432d0932c97c064e4
[ "MIT" ]
null
null
null
lis=[(1,2,3),[1,2],['a','hit','less']] ils=[x for i in lis for x in i] print(ils)
15
39
0.488889
lis=[(1,2,3),[1,2],['a','hit','less']] ils=[x for i in lis for x in i] print(ils)
0
0
0
0085ac811da723708422c8c30d24151ea39a0afd
2,010
py
Python
PDF_FILES_MANIPULATING/B.PdfFileWriter Class/PDF_Writer_class.py
OblackatO/Network-Security
c954676453d0767e2f27cea622835e3e353b1134
[ "MIT" ]
null
null
null
PDF_FILES_MANIPULATING/B.PdfFileWriter Class/PDF_Writer_class.py
OblackatO/Network-Security
c954676453d0767e2f27cea622835e3e353b1134
[ "MIT" ]
null
null
null
PDF_FILES_MANIPULATING/B.PdfFileWriter Class/PDF_Writer_class.py
OblackatO/Network-Security
c954676453d0767e2f27cea622835e3e353b1134
[ "MIT" ]
null
null
null
from PyPDF2 import PdfFileReader, PdfFileWriter file1 = open('pdf1.pdf','rb') file2 = open('output.pdf','wb') filer = PdfFileReader(file1) filew = PdfFileWriter() #Cloning PDF reader with its properties ; see notes to see other ways to do this try: filew.cloneDocumentFromReader(filer) except Exception as e: print('N...
26.447368
127
0.722886
from PyPDF2 import PdfFileReader, PdfFileWriter file1 = open('pdf1.pdf','rb') file2 = open('output.pdf','wb') filer = PdfFileReader(file1) filew = PdfFileWriter() #Cloning PDF reader with its properties ; see notes to see other ways to do this try: filew.cloneDocumentFromReader(filer) except Exception as e: print('N...
0
0
0
e97a5cefd11adbaed8f2107bf459f2f361ba895b
191
py
Python
commentjson/tests/test_json/__init__.py
mattpearson/commentjson
cb7219dcc6761c7c06cca0d8724908bc2477ab29
[ "MIT" ]
null
null
null
commentjson/tests/test_json/__init__.py
mattpearson/commentjson
cb7219dcc6761c7c06cca0d8724908bc2477ab29
[ "MIT" ]
null
null
null
commentjson/tests/test_json/__init__.py
mattpearson/commentjson
cb7219dcc6761c7c06cca0d8724908bc2477ab29
[ "MIT" ]
null
null
null
import unittest import commentjson
19.1
43
0.774869
import unittest import commentjson class CommentJsonTest(unittest.TestCase): json = commentjson loads = staticmethod(commentjson.loads) dumps = staticmethod(commentjson.dumps)
0
131
23
01f1fb2e77ea7fc86324dfc1128000ce1b7d0f74
2,907
py
Python
bot/player_commands/invite.py
UP929312/CommunityBot
c16294e8ff4f47d9a1e8c18c9cd4011e7ebbd67a
[ "Apache-2.0" ]
1
2021-06-15T07:31:13.000Z
2021-06-15T07:31:13.000Z
bot/player_commands/invite.py
UP929312/CommunityBot
c16294e8ff4f47d9a1e8c18c9cd4011e7ebbd67a
[ "Apache-2.0" ]
1
2021-06-01T10:14:32.000Z
2021-06-02T10:54:12.000Z
bot/player_commands/invite.py
UP929312/CommunityBot
c16294e8ff4f47d9a1e8c18c9cd4011e7ebbd67a
[ "Apache-2.0" ]
2
2021-06-01T10:59:15.000Z
2021-06-03T18:29:36.000Z
import discord # type: ignore from discord.ext import commands # type: ignore from discord.commands import permissions # type: ignore from utils import guild_ids #''' #''' ''' def custom_check(): print("Check!") print((ctx.channel.permissions_for(ctx.guild.me)).send_messages) return (ctx.channel.permi...
45.421875
457
0.674235
import discord # type: ignore from discord.ext import commands # type: ignore from discord.commands import permissions # type: ignore from utils import guild_ids #''' def custom_check(ctx): print("This will be printed on startup") print(a) return (ctx.channel.permissions_for(ctx.guild.me)).send_message...
1,718
511
45
72f3c2e08e9ae118285ffeb74909e773b471c6c8
20,579
py
Python
batch/batch/cloud/azure/driver/create_instance.py
daniel-goldstein/hail
88d7f312882eaf22d16c9d58c1223e5469c98cab
[ "MIT" ]
null
null
null
batch/batch/cloud/azure/driver/create_instance.py
daniel-goldstein/hail
88d7f312882eaf22d16c9d58c1223e5469c98cab
[ "MIT" ]
19
2022-03-03T20:11:41.000Z
2022-03-30T20:31:57.000Z
batch/batch/cloud/azure/driver/create_instance.py
daniel-goldstein/hail
88d7f312882eaf22d16c9d58c1223e5469c98cab
[ "MIT" ]
null
null
null
from typing import Any, Dict, Optional import base64 import json import logging import os from shlex import quote as shq from gear.cloud_config import get_global_config from ....batch_configuration import (DOCKER_ROOT_IMAGE, DOCKER_PREFIX, DEFAULT_NAMESPACE, INTERNAL_GATEWAY_IP) f...
38.828302
184
0.542592
from typing import Any, Dict, Optional import base64 import json import logging import os from shlex import quote as shq from gear.cloud_config import get_global_config from ....batch_configuration import (DOCKER_ROOT_IMAGE, DOCKER_PREFIX, DEFAULT_NAMESPACE, INTERNAL_GATEWAY_IP) f...
19,852
0
23
c976e216d8c906c85552f7ac3a219e05322c54d4
7,582
py
Python
avacloud_client_python/models/stlb_reference_dto.py
Dangl-IT/avacloud-client-python
66f555096bbbc87d02d02e4e2dfb0c6accb18f95
[ "RSA-MD" ]
1
2019-01-12T18:10:24.000Z
2019-01-12T18:10:24.000Z
avacloud_client_python/models/stlb_reference_dto.py
Dangl-IT/avacloud-client-python
66f555096bbbc87d02d02e4e2dfb0c6accb18f95
[ "RSA-MD" ]
null
null
null
avacloud_client_python/models/stlb_reference_dto.py
Dangl-IT/avacloud-client-python
66f555096bbbc87d02d02e4e2dfb0c6accb18f95
[ "RSA-MD" ]
null
null
null
# coding: utf-8 """ AVACloud API 1.17.3 AVACloud API specification # noqa: E501 OpenAPI spec version: 1.17.3 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class STLBReferenceDto(object): """NOTE: This class is auto...
29.387597
136
0.595489
# coding: utf-8 """ AVACloud API 1.17.3 AVACloud API specification # noqa: E501 OpenAPI spec version: 1.17.3 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class STLBReferenceDto(object): """NOTE: This class is auto...
0
0
0
d8461cf5c51d4e051e54d79bad3280158598aa60
735
py
Python
aiodownload/example/03_each.py
jelloslinger/aiodownload
29b3bc49cdaec9615933d326b338865fd903571c
[ "MIT" ]
10
2017-05-25T23:02:00.000Z
2020-04-04T16:18:56.000Z
aiodownload/example/03_each.py
jelloslinger/aiodownload
29b3bc49cdaec9615933d326b338865fd903571c
[ "MIT" ]
null
null
null
aiodownload/example/03_each.py
jelloslinger/aiodownload
29b3bc49cdaec9615933d326b338865fd903571c
[ "MIT" ]
null
null
null
import aiodownload from aiodownload.example import logger if __name__ == '__main__': main()
22.272727
79
0.62585
import aiodownload from aiodownload.example import logger class Example: def __init__(self, number, flag): self.number = number self.flag = flag def main(): examples = [Example(i, True if i % 2 == 0 else False) for i in range(0, 5)] url_map = lambda x: 'https://httpbin.org/links/{}'.for...
569
-7
73
9869308c3f4a32c54000e48993e39c0f4609d453
3,017
py
Python
ExerciciosPython/aula016.py
MecaFlavio/Exercicios-Python-3-Curso-em-Video
b93272c15b19b04deff73f1b0a684a0b49313edf
[ "MIT" ]
null
null
null
ExerciciosPython/aula016.py
MecaFlavio/Exercicios-Python-3-Curso-em-Video
b93272c15b19b04deff73f1b0a684a0b49313edf
[ "MIT" ]
null
null
null
ExerciciosPython/aula016.py
MecaFlavio/Exercicios-Python-3-Curso-em-Video
b93272c15b19b04deff73f1b0a684a0b49313edf
[ "MIT" ]
null
null
null
# Aula 16 - Vaiaveis compostas: Tuplas lanche = ('hamburger', 'suco', 'pizza', 'pudim') # tupla criada, pode ser criada sem parenteses np python 3 print(lanche) # mostra a tupla em parenteses e os seus elementos print(lanche[1]) # mostra o elemento 1 da tupla print(lanche[-1]) # mostra o elemento -1 da tupla # Tu...
41.902778
117
0.724892
# Aula 16 - Vaiaveis compostas: Tuplas lanche = ('hamburger', 'suco', 'pizza', 'pudim') # tupla criada, pode ser criada sem parenteses np python 3 print(lanche) # mostra a tupla em parenteses e os seus elementos print(lanche[1]) # mostra o elemento 1 da tupla print(lanche[-1]) # mostra o elemento -1 da tupla # Tu...
0
0
0
ae8673c11ee0d05cecd9bcd7bafd2969050210b0
35
py
Python
src/common/definitions.py
mehrdad-shokri/macro_pack
bcc39728ae70f99e95998cbb48a8beb9e7697031
[ "Apache-2.0" ]
3
2020-10-10T01:55:54.000Z
2021-09-30T11:49:02.000Z
src/common/definitions.py
mehrdad-shokri/macro_pack
bcc39728ae70f99e95998cbb48a8beb9e7697031
[ "Apache-2.0" ]
null
null
null
src/common/definitions.py
mehrdad-shokri/macro_pack
bcc39728ae70f99e95998cbb48a8beb9e7697031
[ "Apache-2.0" ]
1
2022-03-26T00:55:01.000Z
2022-03-26T00:55:01.000Z
VERSION="1.9.4" LOGLEVEL = "INFO"
8.75
17
0.628571
VERSION="1.9.4" LOGLEVEL = "INFO"
0
0
0
b4711b50dd2309b5e08e0c12639a56fa2342aea3
675
py
Python
homeassistant/components/airly/const.py
miccico/core
14c205384171dee59c1a908f8449f9864778b2dc
[ "Apache-2.0" ]
6
2017-08-02T19:26:39.000Z
2020-03-14T22:47:41.000Z
homeassistant/components/airly/const.py
miccico/core
14c205384171dee59c1a908f8449f9864778b2dc
[ "Apache-2.0" ]
54
2020-11-17T07:04:57.000Z
2022-03-31T06:45:39.000Z
homeassistant/components/airly/const.py
miccico/core
14c205384171dee59c1a908f8449f9864778b2dc
[ "Apache-2.0" ]
14
2018-08-19T16:28:26.000Z
2021-09-02T18:26:53.000Z
"""Constants for Airly integration.""" ATTR_API_ADVICE = "ADVICE" ATTR_API_CAQI = "CAQI" ATTR_API_CAQI_DESCRIPTION = "DESCRIPTION" ATTR_API_CAQI_LEVEL = "LEVEL" ATTR_API_HUMIDITY = "HUMIDITY" ATTR_API_PM1 = "PM1" ATTR_API_PM10 = "PM10" ATTR_API_PM10_LIMIT = "PM10_LIMIT" ATTR_API_PM10_PERCENT = "PM10_PERCENT" ATTR_API_P...
30.681818
65
0.786667
"""Constants for Airly integration.""" ATTR_API_ADVICE = "ADVICE" ATTR_API_CAQI = "CAQI" ATTR_API_CAQI_DESCRIPTION = "DESCRIPTION" ATTR_API_CAQI_LEVEL = "LEVEL" ATTR_API_HUMIDITY = "HUMIDITY" ATTR_API_PM1 = "PM1" ATTR_API_PM10 = "PM10" ATTR_API_PM10_LIMIT = "PM10_LIMIT" ATTR_API_PM10_PERCENT = "PM10_PERCENT" ATTR_API_P...
0
0
0
8c16acba335b485450860d2503f0893ea8f879a0
803
py
Python
bettermonitoring/models.py
SayHelloRoman/BetterMonitoring
a26af6a9ab01660c0445d92f25b8ed14f63aa03d
[ "MIT" ]
5
2022-03-26T17:19:23.000Z
2022-03-27T19:46:09.000Z
bettermonitoring/models.py
SayHelloRoman/BetterMonitoring
a26af6a9ab01660c0445d92f25b8ed14f63aa03d
[ "MIT" ]
null
null
null
bettermonitoring/models.py
SayHelloRoman/BetterMonitoring
a26af6a9ab01660c0445d92f25b8ed14f63aa03d
[ "MIT" ]
2
2022-03-26T17:19:31.000Z
2022-03-26T18:57:38.000Z
from typing import List, Optional from dataclasses import dataclass @dataclass @dataclass @dataclass @dataclass
14.87037
34
0.620174
from typing import List, Optional from dataclasses import dataclass @dataclass class Bot: avatar: str botID: str username: str discrim: str shortDesc: str prefix: str votes: int ownerID: str coowners: List[str] tags: List[str] longDesc: str background: str certifica...
0
594
90
3e0c262fa2f0a9220966a57cff9f22df7b123f5f
10,939
py
Python
picoCTF-web/api/shell_servers.py
NNHSSE201819/picoCTF
eae563c2e68dce85a1c426d086b422dc25649003
[ "MIT" ]
null
null
null
picoCTF-web/api/shell_servers.py
NNHSSE201819/picoCTF
eae563c2e68dce85a1c426d086b422dc25649003
[ "MIT" ]
null
null
null
picoCTF-web/api/shell_servers.py
NNHSSE201819/picoCTF
eae563c2e68dce85a1c426d086b422dc25649003
[ "MIT" ]
null
null
null
import json import api import pymongo import spur from api.common import (check, InternalException, safe_fail, validate, WebException) from voluptuous import Length, Required, Schema server_schema = Schema( { Required("name"): check( ("Name must be a reasonable ...
28.339378
86
0.588811
import json import api import pymongo import spur from api.common import (check, InternalException, safe_fail, validate, WebException) from voluptuous import Length, Required, Schema server_schema = Schema( { Required("name"): check( ("Name must be a reasonable ...
909
0
23
beaff1178d4740cb4337f374ec7eb5c81cf74ca9
494
py
Python
project_euler/49.py
huangshenno1/project_euler
8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d
[ "MIT" ]
null
null
null
project_euler/49.py
huangshenno1/project_euler
8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d
[ "MIT" ]
null
null
null
project_euler/49.py
huangshenno1/project_euler
8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d
[ "MIT" ]
null
null
null
maxn = 10000 isprime = [False] * 2 + [True] * maxn for i in range(2, maxn): if isprime[i]: j = i*i while j < maxn: isprime[j] = False j += i for a in range(1000, 10000): if isprime[a]: code = encode(a) for inc in range(1, 4500): b = a + inc c = a + inc * 2 if c >= 10000: break if isprim...
17.034483
47
0.534413
maxn = 10000 isprime = [False] * 2 + [True] * maxn for i in range(2, maxn): if isprime[i]: j = i*i while j < maxn: isprime[j] = False j += i def encode(x): ret = 0 while x > 0: ret += (x % 10)**3 x = x / 10 return ret for a in range(1000, 10000): if isprime[a]: code = encode(a) for inc in range...
62
0
23
9ad449957441de10a4ab92d15ddf24c511bdb3ab
324
py
Python
cms/models.py
silencemind/Department-Managment-System
e39a28e5043344d323a4af639dca7e79c888f259
[ "PostgreSQL" ]
1
2020-12-10T15:04:59.000Z
2020-12-10T15:04:59.000Z
cms/models.py
silencemind/College-Managment-System
e39a28e5043344d323a4af639dca7e79c888f259
[ "PostgreSQL" ]
5
2020-11-04T07:49:11.000Z
2021-06-10T20:22:10.000Z
cms/models.py
silencemind/Department-Managment-System
e39a28e5043344d323a4af639dca7e79c888f259
[ "PostgreSQL" ]
null
null
null
from django.db import models from datetime import datetime # date = models.DateField(default=datetime.date.today)
23.142857
61
0.660494
from django.db import models from datetime import datetime class announcments(models.Model): msg = models.CharField(max_length=200, null=True) date = models.DateField(null=True) # date = models.DateField(default=datetime.date.today) def __str__(self): return self....
25
113
62
69ab91afef13f6535ec6cb06a7794d0211e4c9bf
126
py
Python
inheritance/need_for_speed/project/race_motorcycle.py
lowrybg/PythonOOP
1ef5023ca76645d5d96b8c4fb9a54d0f431a1947
[ "MIT" ]
null
null
null
inheritance/need_for_speed/project/race_motorcycle.py
lowrybg/PythonOOP
1ef5023ca76645d5d96b8c4fb9a54d0f431a1947
[ "MIT" ]
null
null
null
inheritance/need_for_speed/project/race_motorcycle.py
lowrybg/PythonOOP
1ef5023ca76645d5d96b8c4fb9a54d0f431a1947
[ "MIT" ]
null
null
null
from project.motorcycle import Motorcycle
21
41
0.793651
from project.motorcycle import Motorcycle class RaceMotorcycle(Motorcycle): DEFAULT_FUEL_CONSUMPTION: float = 8 pass
0
61
23
065c36d678b37e87f02d2042268e88eb0f4fc4f8
2,260
py
Python
experiment.py
meetjannik/deep-q-network
a6d01817e8b53591c5aa09018d9831d1f06b7f47
[ "MIT" ]
1
2022-03-25T13:22:41.000Z
2022-03-25T13:22:41.000Z
experiment.py
meetjannik/dqn
a6d01817e8b53591c5aa09018d9831d1f06b7f47
[ "MIT" ]
null
null
null
experiment.py
meetjannik/dqn
a6d01817e8b53591c5aa09018d9831d1f06b7f47
[ "MIT" ]
null
null
null
import argparse import logging import os from src.algorithm import deep_q_learning from torch.utils.tensorboard import SummaryWriter import warnings import gym from src.agent import DQNAgent from src.environment import DQNEnvironment from datetime import datetime if __name__ == '__main__': parser = argparse.Ar...
42.641509
114
0.74115
import argparse import logging import os from src.algorithm import deep_q_learning from torch.utils.tensorboard import SummaryWriter import warnings import gym from src.agent import DQNAgent from src.environment import DQNEnvironment from datetime import datetime if __name__ == '__main__': parser = argparse.Ar...
0
0
0