hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
ea7f522b33f809dfdf3238edbf7c341d8f038a52
7,166
py
Python
Assignment3/acts/acts_app.py
Sharath-N/SelfieLessActs
bfe163f9a98d51d566df4353fa4c9461e12d7bc8
[ "MIT" ]
null
null
null
Assignment3/acts/acts_app.py
Sharath-N/SelfieLessActs
bfe163f9a98d51d566df4353fa4c9461e12d7bc8
[ "MIT" ]
null
null
null
Assignment3/acts/acts_app.py
Sharath-N/SelfieLessActs
bfe163f9a98d51d566df4353fa4c9461e12d7bc8
[ "MIT" ]
null
null
null
from flask import Flask #from flask_httpauth import HTTPBasicAuth #auth = HTTPBasicAuth() from flask_cors import CORS app = Flask(__name__) CORS(app) #3 #4 #5 #6 or #8 #7 #9 #10 #11 # Get total number of acts ''' @auth.error_handler def unauthorized(): return make_response(jsonify({'error': 'U...
26.639405
118
0.671783
from flask import Flask,jsonify,request,make_response #from flask_httpauth import HTTPBasicAuth import sqlite3 as sql import requests #auth = HTTPBasicAuth() import datetime import base64 import binascii from flask_cors import CORS,cross_origin app = Flask(__name__) CORS(app) #3 @app.route('/api/v1/categories',method...
0
4,474
0
0
0
1,858
0
17
380
d096fb257ced16d2f5502aab4e6d41f75ff11d68
28,245
py
Python
parseGlobals/test_EsoParseGlobals.py
Kriskras99/uesp-esoapps
53d3fc2caaf8a58f8063f75a6e843a6f591fc3b8
[ "MIT" ]
9
2021-01-25T05:48:53.000Z
2021-08-30T14:21:29.000Z
parseGlobals/test_EsoParseGlobals.py
Kriskras99/uesp-esoapps
53d3fc2caaf8a58f8063f75a6e843a6f591fc3b8
[ "MIT" ]
1
2021-11-17T03:49:12.000Z
2021-11-17T03:49:12.000Z
parseGlobals/test_EsoParseGlobals.py
Kriskras99/uesp-esoapps
53d3fc2caaf8a58f8063f75a6e843a6f591fc3b8
[ "MIT" ]
5
2021-02-28T02:26:34.000Z
2021-08-01T11:58:22.000Z
import csv import collections import os.path import re import operator import sys import datetime import shutil import ntpath import EsoLuaFile #from skipdict import SkipDict OUTPUT_PATH = "d:\\temp\\esoglobals\\" INPUT_FILENAME = "d:\\esoexport\\goodimages10\\globals_6b.txt" LUA_ROOT_PATH = "d:\\esoexpo...
35.528302
348
0.597876
import csv import collections import os.path import re import operator import sys import datetime import shutil import ntpath import EsoLuaFile #from skipdict import SkipDict OUTPUT_PATH = "d:\\temp\\esoglobals\\" INPUT_FILENAME = "d:\\esoexport\\goodimages10\\globals_6b.txt" LUA_ROOT_PATH = "d:\\esoexpo...
0
0
0
810
0
24,151
0
0
800
44c55ac0ecb64bcd26d82ed69fcb8c40f1a57479
3,430
py
Python
scout/utils/requests.py
CHRUdeLille/scout
0f70bec32e078d1825ebf20237f4a4979585dffb
[ "BSD-3-Clause" ]
null
null
null
scout/utils/requests.py
CHRUdeLille/scout
0f70bec32e078d1825ebf20237f4a4979585dffb
[ "BSD-3-Clause" ]
null
null
null
scout/utils/requests.py
CHRUdeLille/scout
0f70bec32e078d1825ebf20237f4a4979585dffb
[ "BSD-3-Clause" ]
null
null
null
import logging import urllib.request from urllib.error import (HTTPError, URLError) LOG = logging.getLogger(__name__) HPO_URL = ("http://compbio.charite.de/jenkins/job/hpo.annotations.monthly/" "lastStableBuild/artifact/annotation/{0}") def fetch_resource(url, file_name=None): """Fetch a resource and ...
30.087719
96
0.66035
import logging import urllib.request from urllib.error import (HTTPError, URLError) LOG = logging.getLogger(__name__) HPO_URL = ("http://compbio.charite.de/jenkins/job/hpo.annotations.monthly/" "lastStableBuild/artifact/annotation/{0}") def fetch_resource(url, file_name=None): """Fetch a resource and ...
0
0
0
0
0
0
0
0
0
e180d03a706826e43e20966983fa7894b83d5a30
1,665
py
Python
pt_sbi/cnf_theta_cp0k.py
muntazirabidi/boss-sbi
fae016eb10b64153391499276d238ccdf660df88
[ "MIT" ]
1
2022-03-15T18:13:02.000Z
2022-03-15T18:13:02.000Z
pt_sbi/cnf_theta_cp0k.py
muntazirabidi/boss-sbi
fae016eb10b64153391499276d238ccdf660df88
[ "MIT" ]
11
2020-12-16T18:26:31.000Z
2021-04-02T14:58:37.000Z
pt_sbi/cnf_theta_cp0k.py
muntazirabidi/boss-sbi
fae016eb10b64153391499276d238ccdf660df88
[ "MIT" ]
2
2021-03-29T17:33:54.000Z
2021-04-01T16:07:07.000Z
''' script to train conditional normalizing flow to estimate p( theta | compressed p0k ). ''' import torch import os, sys import numpy as np import pt_sbi as PTsbi Nsims = int(sys.argv[1]) ############################################################################# # setup training and validation set #########...
29.732143
81
0.499099
''' script to train conditional normalizing flow to estimate p( theta | compressed p0k ). ''' import torch import os, sys import numpy as np import pt_sbi as PTsbi Nsims = int(sys.argv[1]) ############################################################################# # setup training and validation set #########...
0
0
0
0
0
0
0
0
0
c11a339f18373af6a02cd69a65c5607889fe1ade
860
py
Python
Week-2/Day-7.py
abusamrah2005/Python
b601a9daf8a5245bbcc1466d629adda43ed7c6ca
[ "Unlicense" ]
4
2019-09-21T22:47:53.000Z
2020-04-17T03:32:21.000Z
Week-2/Day-7.py
abusamrah2005/Python
b601a9daf8a5245bbcc1466d629adda43ed7c6ca
[ "Unlicense" ]
null
null
null
Week-2/Day-7.py
abusamrah2005/Python
b601a9daf8a5245bbcc1466d629adda43ed7c6ca
[ "Unlicense" ]
2
2019-09-21T22:47:59.000Z
2020-04-17T03:32:14.000Z
""" / """ print(" / ") print('Hello World') # ' ' print("Hello World") # " " print("--------------------------") # print(" ") text = "Welcom To Python Lessons" print(text) print("--------------------------") # print(" ") install = """ Python source code and installers are...
19.111111
48
0.605814
""" السلاسل النصية / النصوص في لغة البايثون """ print("السلاسل النصية / النصوص في لغة البايثون") print('Hello World') # ' ' print("Hello World") # " " print("--------------------------") # تعريف متغير يخزّن فيه نص print("تعريف متغير يخزّن فيه نص ") text = "Welcom To Python Lessons" print(text) print("----...
376
0
0
0
0
0
0
0
0
828505803235434fcad35452330a78c506f74752
118
py
Python
web_scraping/ec2files/ec2file143.py
nikibhatt/Groa
fc2d4ae87cb825e6d54a0831c72be16541eebe61
[ "MIT" ]
1
2020-04-08T19:44:30.000Z
2020-04-08T19:44:30.000Z
web_scraping/ec2files/ec2file143.py
cmgospod/Groa
31b3624bfe61e772b55f8175b4e95d63c9e67966
[ "MIT" ]
null
null
null
web_scraping/ec2files/ec2file143.py
cmgospod/Groa
31b3624bfe61e772b55f8175b4e95d63c9e67966
[ "MIT" ]
1
2020-09-12T07:07:41.000Z
2020-09-12T07:07:41.000Z
s = Scraper(start=254826, end=256607, max_iter=30, scraper_instance=143) s.scrape_letterboxd()
39.333333
73
0.779661
from scraper import * s = Scraper(start=254826, end=256607, max_iter=30, scraper_instance=143) s.scrape_letterboxd()
0
0
0
0
0
0
0
0
23
51b780fd6299877de96835d29da1d4abc39f8620
1,518
py
Python
2019/03-pragyan/cry-decode/solve.py
wani-hackase/wani-writeup
dd4ad0607d2f2193ad94c1ce65359294aa591681
[ "MIT" ]
25
2019-03-06T11:55:56.000Z
2021-05-21T22:07:14.000Z
2019/03-pragyan/cry-decode/solve.py
wani-hackase/wani-writeup
dd4ad0607d2f2193ad94c1ce65359294aa591681
[ "MIT" ]
1
2020-06-25T07:27:15.000Z
2020-06-25T07:27:15.000Z
2019/03-pragyan/cry-decode/solve.py
wani-hackase/wani-writeup
dd4ad0607d2f2193ad94c1ce65359294aa591681
[ "MIT" ]
1
2019-02-14T00:42:28.000Z
2019-02-14T00:42:28.000Z
cipher_txt = open("ciphertext.txt").read() cipher_num = [] for i in range(72): cipher_num.append(ord(cipher_txt[i]) - 97) p_num = ord("p") - 97 c_num = ord("c") - 97 t_num = ord("t") - 97 f_num = ord("f") - 97 # try all key for a in range(26): for b in range(26): for c in range(26): for d...
38.923077
94
0.344532
cipher_txt = open("ciphertext.txt").read() cipher_num = [] for i in range(72): cipher_num.append(ord(cipher_txt[i]) - 97) p_num = ord("p") - 97 c_num = ord("c") - 97 t_num = ord("t") - 97 f_num = ord("f") - 97 # try all key for a in range(26): for b in range(26): for c in range(26): for d...
0
0
0
0
0
0
0
0
0
7997c7107676971fe011f85b2a3d5321505232c4
3,447
py
Python
python/ray/rllib/RL/BRL/ktdq_exe.py
christopher-hsu/ray
abe84b596253411607a91b3a44c135f5e9ac6ac7
[ "Apache-2.0" ]
1
2019-07-08T15:29:25.000Z
2019-07-08T15:29:25.000Z
python/ray/rllib/RL/BRL/ktdq_exe.py
christopher-hsu/ray
abe84b596253411607a91b3a44c135f5e9ac6ac7
[ "Apache-2.0" ]
null
null
null
python/ray/rllib/RL/BRL/ktdq_exe.py
christopher-hsu/ray
abe84b596253411607a91b3a44c135f5e9ac6ac7
[ "Apache-2.0" ]
null
null
null
import argparse parser = argparse.ArgumentParser() parser.add_argument('--kappa', type=int, default=10, help='kappa') parser.add_argument('--epsilon', type=float, default=0.0, help= 'epsilon for covariance') parser.add_argument('--gym', type=bool, default=False) parser.add_argument('--scene', type=str, default='') pars...
26.929688
110
0.668697
from ktd_q import * import brl import models import matplotlib.pyplot as plt import seeding import numpy as np import gym import argparse parser = argparse.ArgumentParser() parser.add_argument('--kappa', type=int, default=10, help='kappa') parser.add_argument('--epsilon', type=float, default=0.0, help= 'epsilon for c...
0
0
0
0
0
2,746
0
-32
271
db0d870ea15925fad92d89b9571a9051b1e41722
13,735
py
Python
seek/migrations/0001_initial.py
BMCBCC/NExtSEEK
7aca407bbc74efc5beb4a98227c6864444b11f61
[ "MIT" ]
null
null
null
seek/migrations/0001_initial.py
BMCBCC/NExtSEEK
7aca407bbc74efc5beb4a98227c6864444b11f61
[ "MIT" ]
null
null
null
seek/migrations/0001_initial.py
BMCBCC/NExtSEEK
7aca407bbc74efc5beb4a98227c6864444b11f61
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2020-08-04 01:45 from __future__ import unicode_literals
50.87037
122
0.558355
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2020-08-04 01:45 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migratio...
0
0
0
13,490
0
0
0
41
90
d6bcbbbfafdf821ac53550174ac49f1c78ed82a9
830
py
Python
setup.py
Free-tek/Worldwide-Newspaper-Scraping-Script
df7eca801fcfa314b6078126256712b53b7a2344
[ "MIT" ]
2
2020-01-04T00:08:19.000Z
2021-07-12T18:55:11.000Z
setup.py
Free-tek/Worldwide-Newspaper-Scraping-Script
df7eca801fcfa314b6078126256712b53b7a2344
[ "MIT" ]
null
null
null
setup.py
Free-tek/Worldwide-Newspaper-Scraping-Script
df7eca801fcfa314b6078126256712b53b7a2344
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="anjie", # Replace with your own username version="1.0.0", author="Babatunde Adewole", author_email="adewole63@gmail.com", description="This python library provides corpus in English and va...
36.086957
172
0.701205
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="anjie", # Replace with your own username version="1.0.0", author="Babatunde Adewole", author_email="adewole63@gmail.com", description="This python library provides corpus in English and va...
0
0
0
0
0
0
0
0
0
075d2b07fd5f27148bcd7043dbb0aaf8cae8e8a2
1,473
py
Python
gazonoVehicle/OpenCV/follower_opencv.py
huckl3b3rry87/Chrono_Gazebo
5261cd3b4eabe9188ddd0c8991bd6a8d69acf06b
[ "BSD-3-Clause" ]
3
2018-11-11T11:44:25.000Z
2022-01-25T14:39:14.000Z
gazonoVehicle/OpenCV/follower_opencv.py
huckl3b3rry87/Chrono_Gazebo
5261cd3b4eabe9188ddd0c8991bd6a8d69acf06b
[ "BSD-3-Clause" ]
null
null
null
gazonoVehicle/OpenCV/follower_opencv.py
huckl3b3rry87/Chrono_Gazebo
5261cd3b4eabe9188ddd0c8991bd6a8d69acf06b
[ "BSD-3-Clause" ]
2
2018-01-29T18:26:33.000Z
2021-10-04T13:45:35.000Z
import rospy rospy.init_node('follower') follower = Follower() rospy.spin()
30.6875
80
0.610319
import rospy, cv2, cv_bridge, numpy, math from sensor_msgs.msg import Image from std_msgs.msg import Float64 class Follower: def __init__(self): self.bridge = cv_bridge.CvBridge() cv2.namedWindow("window", 1) self.image_sub = rospy.Subscriber('image_raw', Image, self.image_callback) self.pub...
0
0
0
1,276
0
0
0
52
67
201fbae4c77d3f71f4efa120928e09a234ebba2b
3,749
py
Python
boundary_predictor.py
ishine/DiffSinger
d5dbe05ee1c7da0878393c73129089a67d0fe935
[ "MIT" ]
null
null
null
boundary_predictor.py
ishine/DiffSinger
d5dbe05ee1c7da0878393c73129089a67d0fe935
[ "MIT" ]
null
null
null
boundary_predictor.py
ishine/DiffSinger
d5dbe05ee1c7da0878393c73129089a67d0fe935
[ "MIT" ]
null
null
null
import argparse import torch from torch.utils.data import DataLoader from utils.model import get_model from utils.tools import get_configs_of from dataset import Dataset device = torch.device("cuda" if torch.cuda.is_available() else "cpu") if __name__ == "__main__": parser = argparse.ArgumentP...
37.118812
114
0.594559
import argparse import torch from torch.utils.data import DataLoader from tqdm import tqdm from utils.model import get_model from utils.tools import get_configs_of, to_device, get_mask_from_lengths from dataset import Dataset device = torch.device("cuda" if torch.cuda.is_available() else "cpu") def pr...
0
0
0
0
0
1,197
0
34
48
de6d0a71409314774043235e17032d6716894da6
3,485
py
Python
modules/filters/extractImageComponents.py
chrisidefix/devide
99bfe156e710fa47ba7ae88b0ce1eef592a3a439
[ "BSD-3-Clause" ]
25
2015-08-24T16:05:14.000Z
2020-12-09T20:07:14.000Z
modules/filters/extractImageComponents.py
chrisidefix/devide
99bfe156e710fa47ba7ae88b0ce1eef592a3a439
[ "BSD-3-Clause" ]
1
2016-02-16T21:18:10.000Z
2016-02-16T21:18:10.000Z
modules/filters/extractImageComponents.py
chrisidefix/devide
99bfe156e710fa47ba7ae88b0ce1eef592a3a439
[ "BSD-3-Clause" ]
5
2016-02-16T20:05:37.000Z
2020-01-31T11:27:39.000Z
# $Id$
33.190476
77
0.588522
# $Id$ from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class extractImageComponents(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(self, module_manager) self._extract = vtk....
0
0
0
3,299
0
0
0
30
112
9941db7f3c8354684ea1ae63a6278b9e564b7669
3,115
py
Python
face_detection/video_face.py
GlenOFI/Proctoring-AI
d6b4e1603c4b114c6ac6d401eea8db282c2ecd48
[ "MIT" ]
null
null
null
face_detection/video_face.py
GlenOFI/Proctoring-AI
d6b4e1603c4b114c6ac6d401eea8db282c2ecd48
[ "MIT" ]
null
null
null
face_detection/video_face.py
GlenOFI/Proctoring-AI
d6b4e1603c4b114c6ac6d401eea8db282c2ecd48
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Jul 2 03:40:59 2020 @author: hp """ import cv2 # pip install opencv-python import dlib import numpy as np # Use a file on your computer: videoCapture = cv2.VideoCapture('video/clinton.mp4') # Or use a web cam: # videoCapture = cv2.VideoCapture(0) # Initialise three separ...
31.785714
99
0.577849
# -*- coding: utf-8 -*- """ Created on Thu Jul 2 03:40:59 2020 @author: hp """ import cv2 # pip install opencv-python import dlib import numpy as np # Use a file on your computer: videoCapture = cv2.VideoCapture('video/clinton.mp4') # Or use a web cam: # videoCapture = cv2.VideoCapture(0) # Initialise three separ...
0
0
0
0
0
0
0
0
0
85c893b053be48a497c3f5752d4eff1719132dba
3,364
py
Python
src/python/twitter/common/java/java_types.py
zhouyijiaren/commons
10df6fb63547baa9047782aa7ad4edf354914b10
[ "Apache-2.0" ]
1,143
2015-01-05T04:19:24.000Z
2019-12-11T12:02:23.000Z
src/python/twitter/common/java/java_types.py
zhouyijiaren/commons
10df6fb63547baa9047782aa7ad4edf354914b10
[ "Apache-2.0" ]
144
2015-01-06T05:05:07.000Z
2019-12-12T18:02:37.000Z
src/python/twitter/common/java/java_types.py
zhouyijiaren/commons
10df6fb63547baa9047782aa7ad4edf354914b10
[ "Apache-2.0" ]
426
2015-01-08T08:33:41.000Z
2019-12-09T13:15:40.000Z
# ================================================================================================== # Copyright 2011 Twitter, Inc. # -------------------------------------------------------------------------------------------------- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
26.698413
100
0.621284
# ================================================================================================== # Copyright 2011 Twitter, Inc. # -------------------------------------------------------------------------------------------------- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
0
783
0
1,459
0
0
0
-8
230
10b98875257eafaa3b8c39da8dbb943ce80f179c
14,119
py
Python
util/seeg_utils.py
danzhewuju/SleepState
b39fa3a3374d35dcc7a9ef31f977fac4e9d4a322
[ "Apache-2.0" ]
null
null
null
util/seeg_utils.py
danzhewuju/SleepState
b39fa3a3374d35dcc7a9ef31f977fac4e9d4a322
[ "Apache-2.0" ]
null
null
null
util/seeg_utils.py
danzhewuju/SleepState
b39fa3a3374d35dcc7a9ef31f977fac4e9d4a322
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import os import uuid import mne import numpy as np import pandas as pd import pyedflib import scipy.io as sio import matplotlib.pyplot as plt def get_recorder_time(data): ''' :param data: raw data :return: ''' time = data.times[-1] return time def re_sampling(data, ...
28.181637
112
0.614633
#!/usr/bin/python3 import os import uuid import mne import numpy as np import pandas as pd import pyedflib import scipy.io as sio from mne.time_frequency import * import matplotlib.pyplot as plt def read_raw(path): raw = mne.io.read_raw_fif(path, preload=True) return raw def read_edf_raw(path): raw = ...
2,577
0
0
0
0
790
0
11
183
399944f770da098b782df0f1aca937cdfb08ea4a
151
py
Python
databinding/values/admin.py
fp4code/channels-examples
1a7ed1c5b652e6db07206b1f27d7fef249433f2e
[ "BSD-3-Clause" ]
2
2016-10-20T10:15:24.000Z
2017-07-13T08:14:37.000Z
databinding/values/admin.py
fp4code/channels-examples
1a7ed1c5b652e6db07206b1f27d7fef249433f2e
[ "BSD-3-Clause" ]
1
2021-06-10T23:39:59.000Z
2021-06-10T23:39:59.000Z
databinding/values/admin.py
fp4code/channels-examples
1a7ed1c5b652e6db07206b1f27d7fef249433f2e
[ "BSD-3-Clause" ]
2
2017-02-18T16:55:19.000Z
2019-11-08T00:49:22.000Z
from django.contrib import admin from .models import IntegerValue admin.site.register( IntegerValue, list_display=["id", "name", "value"], )
16.777778
41
0.715232
from django.contrib import admin from .models import IntegerValue admin.site.register( IntegerValue, list_display=["id", "name", "value"], )
0
0
0
0
0
0
0
0
0
522972fc5fa6c27c4855df045dd1ef75c0f1dcd8
9,408
py
Python
LianJia.py
benaustin2000/ShanghaiHousePrice
0a69df5d41bdf7d9f2de1335985240888fa8866e
[ "Apache-2.0" ]
1
2020-11-11T07:20:20.000Z
2020-11-11T07:20:20.000Z
LianJia.py
benaustin2000/ShanghaiHousePrice
0a69df5d41bdf7d9f2de1335985240888fa8866e
[ "Apache-2.0" ]
null
null
null
LianJia.py
benaustin2000/ShanghaiHousePrice
0a69df5d41bdf7d9f2de1335985240888fa8866e
[ "Apache-2.0" ]
2
2019-09-06T05:04:25.000Z
2019-11-04T03:01:47.000Z
# -*- coding: utf-8 -*- """ Created on Sat Oct 14 21:35:15 2017 @author: austin V1.2 use SoupStrainer for lower RAM usage. But looks a little bit slow, then skip the sleep time """ # import requests import re from bs4 import BeautifulSoup, SoupStrainer import pandas#pandas from fake_useragent import User...
43.155963
155
0.596407
# -*- coding: utf-8 -*- """ Created on Sat Oct 14 21:35:15 2017 @author: austin V1.2 use SoupStrainer for lower RAM usage. But looks a little bit slow, then skip the sleep time """ #主要程序 import requests import re from bs4 import BeautifulSoup,SoupStrainer import pandas#pandas大法好 from fake_useragent impor...
1,266
0
0
0
0
1,023
0
-5
71
8380a34f5bd929d39dfb988bc6b08e0ad747c563
81
py
Python
examples/raise.py
doboy/Underscore
d98273db3144cda79191d2c90f45d81b6d700b1f
[ "MIT" ]
7
2016-09-23T00:44:05.000Z
2021-10-04T21:19:12.000Z
examples/raise.py
jameswu1991/Underscore
d98273db3144cda79191d2c90f45d81b6d700b1f
[ "MIT" ]
1
2016-09-23T00:45:05.000Z
2019-02-16T19:05:37.000Z
examples/raise.py
jameswu1991/Underscore
d98273db3144cda79191d2c90f45d81b6d700b1f
[ "MIT" ]
3
2016-09-23T01:13:15.000Z
2018-07-20T21:22:17.000Z
try: raise AssertionError('this is a test') except: print('test passed')
16.2
42
0.666667
try: raise AssertionError('this is a test') except: print('test passed')
0
0
0
0
0
0
0
0
0
f75cd14da1a84f980f083edd4ee77f5c7c88d296
2,601
py
Python
my_bilibili/my_Bilibili.py
WuJunkai2004/Pynet
83263e65cf7cdc4e75c4335dce1173f844eda04e
[ "CNRI-Python" ]
1
2020-07-08T02:47:41.000Z
2020-07-08T02:47:41.000Z
my_bilibili/my_Bilibili.py
WuJunkai2004/python-objects
83263e65cf7cdc4e75c4335dce1173f844eda04e
[ "CNRI-Python" ]
null
null
null
my_bilibili/my_Bilibili.py
WuJunkai2004/python-objects
83263e65cf7cdc4e75c4335dce1173f844eda04e
[ "CNRI-Python" ]
null
null
null
# !/user/bin/python # coding=utf-8 from __future__ import print_function try: except ImportError: raise ImportError('Sorry, can not find \'my_net\' .\nPlease view https://github.com/WuJunkai2004/Pyself/blob/master/my_net/my_net.py to download .') __author__ ='Wu Junkai(wujunkai20041123@outlook.com)' __v...
29.224719
152
0.510188
# !/user/bin/python # coding=utf-8 from __future__ import print_function import urllib import time import os import re try: from my_net import net except ImportError: raise ImportError('Sorry, can not find \'my_net\' .\nPlease view https://github.com/WuJunkai2004/Pyself/blob/master/my_net/my_net.py to downlo...
66
0
0
1,967
0
0
0
-41
161
5980c093cd5c55d3893ba7bc6a8c604081568a3b
7,339
py
Python
check_mix.py
fakufaku/create_wsj1_2345_db
79b4fbc57260bc730a33f9704665a8f60372d0ef
[ "MIT" ]
1
2022-02-21T05:05:32.000Z
2022-02-21T05:05:32.000Z
check_mix.py
fakufaku/create_wsj1_2345_db
79b4fbc57260bc730a33f9704665a8f60372d0ef
[ "MIT" ]
null
null
null
check_mix.py
fakufaku/create_wsj1_2345_db
79b4fbc57260bc730a33f9704665a8f60372d0ef
[ "MIT" ]
null
null
null
# Import packages import argparse import json from pathlib import Path import scipy as scipy from config_path import get_paths if __name__ == "__main__": parser = argparse.ArgumentParser(description="Creates all the configuration files") parser.add_argument("config", type=Path, help="Path to configuration...
33.511416
88
0.498433
# Import packages import argparse import json import multiprocessing import os from pathlib import Path import numpy as np import scipy as scipy from scipy.io import wavfile from config_path import get_paths from parallel_proc import process from utils import (ProgressBar, is_clipped, read_source_images, ...
0
0
0
0
0
6,242
0
87
179
df99b85ceb6507b4603be42171a63fe7bb442083
1,267
py
Python
JWGL/TeachingEvaluation.py
AberSheeran/Ahnu
bc9fa4cddf74b7ea1e67465d2f04874702733d79
[ "MIT" ]
7
2018-06-12T02:40:04.000Z
2019-04-09T09:24:58.000Z
JWGL/TeachingEvaluation.py
AberSheeran/Ahnu
bc9fa4cddf74b7ea1e67465d2f04874702733d79
[ "MIT" ]
null
null
null
JWGL/TeachingEvaluation.py
AberSheeran/Ahnu
bc9fa4cddf74b7ea1e67465d2f04874702733d79
[ "MIT" ]
4
2018-06-12T02:28:55.000Z
2019-04-08T07:05:55.000Z
""" Author: Aber Sheeran Time: 2017-12-16 """ import re from .Base import log def fuck_the_teaching_evaluation(session): """""" for each in re.findall(r"<a[\s\S]*?href='([\s\S]+?)'", (session.get_page("jxpj/xsjxpj.shtml"))): log.debug(f"{each}...") _deal_teaching_evaluation_pag...
30.902439
110
0.599842
""" 写教学评价简直是在浪费我的时间 Author: Aber Sheeran Time: 2017-12-16 """ import re import json from .Base import log def fuck_the_teaching_evaluation(session): """教学评价""" for each in re.findall(r"<a[\s\S]*?href='([\s\S]+?)'", (session.get_page("jxpj/xsjxpj.shtml"))): log.debug(f"处理{each}中...") ...
246
0
0
0
0
0
0
-10
23
097b18ce85cb718dddca9e9bf9dd519d16640527
541
py
Python
pipeline/integration_tests/functional_tests/conftest.py
tsu-denim/strafer-duty
a561e107dc1abc2dce6b4a51c090245831f8cfc8
[ "MIT" ]
9
2018-11-16T19:34:54.000Z
2021-05-26T03:44:18.000Z
pipeline/integration_tests/functional_tests/conftest.py
tsu-denim/strafer-duty
a561e107dc1abc2dce6b4a51c090245831f8cfc8
[ "MIT" ]
1
2019-01-28T13:51:20.000Z
2019-01-28T13:51:20.000Z
pipeline/integration_tests/functional_tests/conftest.py
tsu-denim/strafer-duty
a561e107dc1abc2dce6b4a51c090245831f8cfc8
[ "MIT" ]
null
null
null
import sys import os # Make sure that the application source directory (this directory's parent) is # on sys.path. here = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.insert(0, here) print(sys.path)
25.761905
86
0.726433
import sys import os # Make sure that the application source directory (this directory's parent) is # on sys.path. import pytest here = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.insert(0, here) print(sys.path) def pytest_addoption(parser): parser.addoption("--report_path", action="sto...
0
73
0
0
0
181
0
-8
68
5fb85c7f81e39675ea48609645d42c71b59d9d75
242
py
Python
codeforces/implementation模拟/800/92A喂薯片.py
yofn/pyacm
e573f8fdeea77513711f00c42f128795cbba65a6
[ "Apache-2.0" ]
null
null
null
codeforces/implementation模拟/800/92A喂薯片.py
yofn/pyacm
e573f8fdeea77513711f00c42f128795cbba65a6
[ "Apache-2.0" ]
null
null
null
codeforces/implementation模拟/800/92A喂薯片.py
yofn/pyacm
e573f8fdeea77513711f00c42f128795cbba65a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # https://codeforces.com/problemset/problem/92/A # ; .. import math n,m = list(map(int,input().split())) #50,1e4 cc = (n*(n+1))//2 m = m%cc x = int((math.sqrt((m<<3)+1)-1)/2) print(m-(x*(x+1))//2)
22
48
0.582645
#!/usr/bin/env python3 # https://codeforces.com/problemset/problem/92/A # 之前是模拟解; 现在尝试数学解.. import math n,m = list(map(int,input().split())) #50,1e4 cc = (n*(n+1))//2 m = m%cc x = int((math.sqrt((m<<3)+1)-1)/2) print(m-(x*(x+1))//2)
39
0
0
0
0
0
0
0
0
6b0a98f005d49fe601430c27e628ae3da10327a4
4,292
py
Python
plugins/action/panos_commit.py
madelinemccombe/mrichardson03.panos
00a0da41ea2b281b995e691276d25e8589879c67
[ "0BSD" ]
null
null
null
plugins/action/panos_commit.py
madelinemccombe/mrichardson03.panos
00a0da41ea2b281b995e691276d25e8589879c67
[ "0BSD" ]
null
null
null
plugins/action/panos_commit.py
madelinemccombe/mrichardson03.panos
00a0da41ea2b281b995e691276d25e8589879c67
[ "0BSD" ]
null
null
null
# Copyright 2021 Palo Alto Networks, Inc # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS...
33.795276
97
0.633038
# Copyright 2021 Palo Alto Networks, Inc # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS...
0
0
0
2,927
0
0
0
135
201
43ca2fb51e8ce89bd177315dc1e1c9d22639f106
3,586
py
Python
xSG33.py
xinabox/Python-SG33
d82aedac577a61e9690e5db097e99443d8c3b5cb
[ "MIT" ]
null
null
null
xSG33.py
xinabox/Python-SG33
d82aedac577a61e9690e5db097e99443d8c3b5cb
[ "MIT" ]
null
null
null
xSG33.py
xinabox/Python-SG33
d82aedac577a61e9690e5db097e99443d8c3b5cb
[ "MIT" ]
null
null
null
CSS811_REG_STATUS = 0x00 CSS811_REG_MEAS_MODE = 0x01 CSS811_REG_ALG_RST_DATA = 0x02 CSS811_REG_RAW_DATA = 0x03 CSS811_REG_ENV_DATA = 0x05 CSS811_REG_THRESHOLDS = 0x10 CSS811_REG_BASELINE = 0x11 CSS811_REG_HW_VERSION = 0x21 CSS811_REG_FW_BOOT_V = 0x23 CSS811_REG_FW_APP_V = 0x24 CSS811_REG_FW_ERROR_ID = 0xE0 CSS811_REG_...
27.374046
79
0.63469
from xCore import xCore CSS811_REG_STATUS = 0x00 CSS811_REG_MEAS_MODE = 0x01 CSS811_REG_ALG_RST_DATA = 0x02 CSS811_REG_RAW_DATA = 0x03 CSS811_REG_ENV_DATA = 0x05 CSS811_REG_THRESHOLDS = 0x10 CSS811_REG_BASELINE = 0x11 CSS811_REG_HW_VERSION = 0x21 CSS811_REG_FW_BOOT_V = 0x23 CSS811_REG_FW_APP_V = 0x24 CSS811_REG_FW_ERR...
0
0
0
2,836
0
0
0
2
45
af4cf934cec57e228debed31b01578b59301e207
141
py
Python
FOR1/TASK4.py
MakarFadeev/PythonTasks
2ae18c3c6a50808f985966d3304a6af6824ce686
[ "Apache-2.0" ]
2
2020-11-13T05:59:45.000Z
2020-11-29T09:26:20.000Z
FOR1/TASK4.py
MakarFadeev/PythonTasks
2ae18c3c6a50808f985966d3304a6af6824ce686
[ "Apache-2.0" ]
1
2020-10-29T18:14:10.000Z
2020-10-29T18:14:10.000Z
FOR1/TASK4.py
MakarFadeev/PythonTasks
2ae18c3c6a50808f985966d3304a6af6824ce686
[ "Apache-2.0" ]
null
null
null
rainbow = [ '', '', '', '', '', '', ''] i = 0 for i in range(0, 7): print(rainbow[i])
28.2
90
0.609929
rainbow = [ 'красный', 'оранжевый', 'жёлтый', 'зелёный', 'голубой', 'синий', 'фиолетовый'] i = 0 for i in range(0, 7): print(rainbow[i])
102
0
0
0
0
0
0
0
0
54d54fac5a1f90e6b7e6b1d8b50d5e61c224920e
2,157
py
Python
bob/environment.py
wqx081/bobscheme
ba61c0cc53031bff544cb0793cf8df225594e35a
[ "Unlicense" ]
98
2015-01-22T15:43:25.000Z
2022-02-15T02:22:04.000Z
bob/environment.py
vonwenm/bobscheme
ba61c0cc53031bff544cb0793cf8df225594e35a
[ "Unlicense" ]
2
2015-08-09T02:17:35.000Z
2015-10-23T14:20:41.000Z
bob/environment.py
vonwenm/bobscheme
ba61c0cc53031bff544cb0793cf8df225594e35a
[ "Unlicense" ]
26
2015-02-13T11:39:44.000Z
2021-12-24T11:49:00.000Z
#------------------------------------------------------------------------------- # bob: environment.py # # Environment object. # # Eli Bendersky (eliben@gmail.com) # This code is in the public domain #-------------------------------------------------------------------------------
36.559322
80
0.568846
#------------------------------------------------------------------------------- # bob: environment.py # # Environment object. # # Eli Bendersky (eliben@gmail.com) # This code is in the public domain #------------------------------------------------------------------------------- class Environment(object): """ A...
0
0
0
1,850
0
0
0
0
23
47290710dee7dd3d84732e126fee6cdb0d409617
296
py
Python
temporalcache/tests/__init__.py
majacQ/temporal-cache
ee6af363c5d1c42a8a7abd3eeba6df5d742a2896
[ "Apache-2.0" ]
4
2021-03-05T23:24:57.000Z
2021-11-27T09:27:50.000Z
temporalcache/tests/__init__.py
majacQ/temporal-cache
ee6af363c5d1c42a8a7abd3eeba6df5d742a2896
[ "Apache-2.0" ]
28
2018-12-07T19:48:54.000Z
2022-03-27T15:18:14.000Z
temporalcache/tests/__init__.py
majacQ/temporal-cache
ee6af363c5d1c42a8a7abd3eeba6df5d742a2896
[ "Apache-2.0" ]
3
2021-03-04T18:29:58.000Z
2021-07-12T19:54:35.000Z
# ***************************************************************************** # # Copyright (c) 2021, the temporal-cache authors. # # This file is part of the temporal-cache library, distributed under the terms of # the Apache License 2.0. The full license can be found in the LICENSE file. #
37
81
0.540541
# ***************************************************************************** # # Copyright (c) 2021, the temporal-cache authors. # # This file is part of the temporal-cache library, distributed under the terms of # the Apache License 2.0. The full license can be found in the LICENSE file. #
0
0
0
0
0
0
0
0
0
d006878d9991c203c49305c45f6c821dbd1be5d5
1,014
py
Python
aws/lambda/myhome-account-get-kindmst/myhome-account-get-kindmst.py
silverbox/homeaccounting
ef8913eb920b26823b8046694c2afdf11d95f2fd
[ "MIT" ]
null
null
null
aws/lambda/myhome-account-get-kindmst/myhome-account-get-kindmst.py
silverbox/homeaccounting
ef8913eb920b26823b8046694c2afdf11d95f2fd
[ "MIT" ]
2
2020-12-29T02:31:09.000Z
2020-12-29T02:31:13.000Z
aws/lambda/myhome-account-get-kindmst/myhome-account-get-kindmst.py
silverbox/homeaccounting
ef8913eb920b26823b8046694c2afdf11d95f2fd
[ "MIT" ]
null
null
null
import boto3 import logging dynamodb = boto3.resource('dynamodb') logger = logging.getLogger() logger.setLevel(logging.INFO) # Helper class to convert a DynamoDB item to JSON.
26.684211
85
0.634122
import json import boto3 import logging import decimal from boto3.dynamodb.conditions import Key, Attr dynamodb = boto3.resource('dynamodb') logger = logging.getLogger() logger.setLevel(logging.INFO) # Helper class to convert a DynamoDB item to JSON. class DecimalEncoder(json.JSONEncoder): def default(self, o): ...
0
0
0
247
0
469
0
9
111
936fbbada2d96562e5f051b9e2df70388762d78f
238
py
Python
main.py
vulnguard/mp_gui
f15ecb9da17f828115947a8f37a022c8e2093622
[ "MIT" ]
null
null
null
main.py
vulnguard/mp_gui
f15ecb9da17f828115947a8f37a022c8e2093622
[ "MIT" ]
null
null
null
main.py
vulnguard/mp_gui
f15ecb9da17f828115947a8f37a022c8e2093622
[ "MIT" ]
null
null
null
if __name__ == "__main__": main()
12.526316
49
0.60084
from gui import * from tkinter import * def main(): print("Starting Program") tk = Tk() my_gui = MyGui(tk, "Do stuff with pictures.") tk.mainloop() print("Ending Program") if __name__ == "__main__": main()
0
0
0
0
0
132
0
-4
68
27ac23af8fff8310d2ba51dbac0ed38e14b251c6
995
py
Python
tests/test_views.py
DotPodcast/django-blockstack-auth
0210b6935ad9d7aa76a537a107a36733dda5bada
[ "MIT" ]
4
2018-03-07T10:53:42.000Z
2019-10-26T20:15:12.000Z
tests/test_views.py
DotPodcast/django-blockstack-auth
0210b6935ad9d7aa76a537a107a36733dda5bada
[ "MIT" ]
1
2018-12-28T18:35:34.000Z
2018-12-28T18:35:34.000Z
tests/test_views.py
DotPodcast/django-blockstack-auth
0210b6935ad9d7aa76a537a107a36733dda5bada
[ "MIT" ]
1
2019-09-04T19:01:03.000Z
2019-09-04T19:01:03.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_django-blockstack-auth ------------ Tests for `django-blockstack-auth` views module. """ # TODO: Find a way to test the full login/logout flow using the # Blockstack portal
26.891892
77
0.672362
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_django-blockstack-auth ------------ Tests for `django-blockstack-auth` views module. """ from django.contrib.staticfiles.testing import StaticLiveServerTestCase from django.test import Client from django_blockstack_auth.views import LoginView, CallbackView, Logo...
0
0
0
529
0
0
0
114
113
054d6acb3f58577fcbbe351d3cf2703fc3815306
23,998
py
Python
realmonthly.py
cancer525/mypython
f0d575d2510cb6b8389f42bee464e300d10213d9
[ "Apache-2.0" ]
null
null
null
realmonthly.py
cancer525/mypython
f0d575d2510cb6b8389f42bee464e300d10213d9
[ "Apache-2.0" ]
null
null
null
realmonthly.py
cancer525/mypython
f0d575d2510cb6b8389f42bee464e300d10213d9
[ "Apache-2.0" ]
null
null
null
import tempfile from io import BytesIO import pandas as pd import arrow import hanshu from reportlab.lib import colors from reportlab.pdfbase import pdfmetrics from reportlab.pdfbase.pdfmetrics import registerFontFamily from reportlab.pdfbase.ttfonts import TTFont from reportlab.platypus import Paragraph, Simp...
61.375959
349
0.663889
import tempfile from io import BytesIO import pandas as pd import arrow import hanshu from reportlab.lib import colors from reportlab.pdfbase import pdfmetrics from reportlab.pdfbase.pdfmetrics import registerFontFamily from reportlab.pdfbase.ttfonts import TTFont from reportlab.platypus import Paragraph, Simp...
8,715
0
0
0
0
0
0
0
0
b751b65d9d2578f7871141081e922759f1ff73f1
797
py
Python
jsonfiles.py
sainisatish/MeChat
7b9b54f3f174db83c078f476871724922a399b83
[ "MIT" ]
null
null
null
jsonfiles.py
sainisatish/MeChat
7b9b54f3f174db83c078f476871724922a399b83
[ "MIT" ]
null
null
null
jsonfiles.py
sainisatish/MeChat
7b9b54f3f174db83c078f476871724922a399b83
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Oct 29 20:45:28 2019 @author: satishsaini """
61.307692
272
0.608532
# -*- coding: utf-8 -*- """ Created on Tue Oct 29 20:45:28 2019 @author: satishsaini """ import json def json_ext(r): json_data=r.json() print("Meaning Of The Word : {} ".format(json_data['results'][0]['lexicalEntries'][0]['entries'][0]['senses'][0]["definitions"][0])) print("Examples : {} \n or ...
0
0
0
0
0
665
0
-10
46
c34c9e9ab31f8ddfd8a8324af7429b2aef053bd8
254
py
Python
regolith/interact.py
priyankaanehra/regolith
393c8a88eb7657d1ae5ea017e2cd0b72ed981e8f
[ "CC0-1.0" ]
7
2018-07-20T19:19:23.000Z
2022-02-02T20:48:15.000Z
regolith/interact.py
priyankaanehra/regolith
393c8a88eb7657d1ae5ea017e2cd0b72ed981e8f
[ "CC0-1.0" ]
822
2017-11-06T21:54:58.000Z
2022-03-31T12:25:41.000Z
regolith/interact.py
priyankaanehra/regolith
393c8a88eb7657d1ae5ea017e2cd0b72ed981e8f
[ "CC0-1.0" ]
43
2018-01-05T20:35:21.000Z
2022-03-24T00:13:03.000Z
""" Loads the dbs for interactive sessions """ from regolith.runcontrol import DEFAULT_RC, load_rcfile, filter_databases, connect_db rc = DEFAULT_RC rc._update(load_rcfile("regolithrc.json")) filter_databases(rc) chained_db, dbs = connect_db(rc)
21.166667
76
0.775591
""" Loads the dbs for interactive sessions """ from regolith.runcontrol import DEFAULT_RC, load_rcfile, filter_databases, \ connect_db rc = DEFAULT_RC rc._update(load_rcfile("regolithrc.json")) filter_databases(rc) chained_db, dbs = connect_db(rc)
0
0
0
0
0
0
0
6
0
eb4faee65ee224bf0a7498eff879bc9e238557a4
7,822
py
Python
src/train/train_bad.py
landbroken/MyPaper
e77581262aac210e6273c3647d091f7cf53eae4a
[ "Apache-2.0" ]
null
null
null
src/train/train_bad.py
landbroken/MyPaper
e77581262aac210e6273c3647d091f7cf53eae4a
[ "Apache-2.0" ]
null
null
null
src/train/train_bad.py
landbroken/MyPaper
e77581262aac210e6273c3647d091f7cf53eae4a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3.9 # -*- coding: utf-8 -*- # # Copyright (C) 2021 LinYulong. All Rights Reserved # # @Time : 2021/10/31 # @Author : LinYulong
38.343137
113
0.646254
#!/usr/bin/python3.9 # -*- coding: utf-8 -*- # # Copyright (C) 2021 LinYulong. All Rights Reserved # # @Time : 2021/10/31 # @Author : LinYulong import numpy import pandas import xgboost from sklearn.discriminant_analysis import LinearDiscriminantAnalysis from sklearn.ensemble import ExtraTreesRegressor from sklea...
819
0
0
0
0
6,662
0
210
518
4181aaf7cb376688b31273798bd5ee5539aeea3b
2,849
py
Python
tests/bugs/core_0426_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/bugs/core_0426_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/bugs/core_0426_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-06-30T14:14:16.000Z
2021-06-30T14:14:16.000Z
#coding:utf-8 # # id: bugs.core_426 # title: Wrong sort order when using es_ES collate # decription: Check if sort order for collate ES_ES is the one of DRAE , the oficial organization for standarization of spanish # tracker_id: CORE-426 # min_versions: [] # versions: 2.1 # qmid: bugs.c...
19.25
129
0.692524
#coding:utf-8 # # id: bugs.core_426 # title: Wrong sort order when using es_ES collate # decription: Check if sort order for collate ES_ES is the one of DRAE , the oficial organization for standarization of spanish # tracker_id: CORE-426 # min_versions: [] # versions: 2.1 # qmid: bugs.c...
0
162
0
0
0
0
0
0
46
26a478ce4ef32b1711fb4a0c84b2f688bde9bc0f
7,576
py
Python
podpac/core/algorithm/test/test_signal.py
creare-com/podpac
7feb5c957513c146ce73ba1c36c630284f513a6e
[ "Apache-2.0" ]
46
2018-04-06T19:54:32.000Z
2022-02-08T02:00:02.000Z
podpac/core/algorithm/test/test_signal.py
creare-com/podpac
7feb5c957513c146ce73ba1c36c630284f513a6e
[ "Apache-2.0" ]
474
2018-04-05T22:21:09.000Z
2022-02-24T14:21:16.000Z
podpac/core/algorithm/test/test_signal.py
creare-com/podpac
7feb5c957513c146ce73ba1c36c630284f513a6e
[ "Apache-2.0" ]
4
2019-04-11T17:49:53.000Z
2020-11-29T22:36:53.000Z
from __future__ import division, unicode_literals, print_function, absolute_import
41.173913
121
0.599393
from __future__ import division, unicode_literals, print_function, absolute_import import pytest import numpy as np from numpy.testing import assert_equal, assert_array_equal import traitlets as tl import podpac from podpac import Coordinates, clinspace, crange from podpac.algorithm import Arange from podpac.data im...
0
0
0
7,168
0
0
0
100
224
c882c0ec4d2c769b25f63cd33c1cc871c2d7ebcd
445
py
Python
backend/pokemon/tasks.py
pantoja/PokeBattle
2b5561aefd9117903ee4cdc516d424a6c6413307
[ "MIT" ]
null
null
null
backend/pokemon/tasks.py
pantoja/PokeBattle
2b5561aefd9117903ee4cdc516d424a6c6413307
[ "MIT" ]
11
2020-04-06T13:16:36.000Z
2022-02-10T11:49:04.000Z
backend/pokemon/tasks.py
pantoja/PokeBattle
2b5561aefd9117903ee4cdc516d424a6c6413307
[ "MIT" ]
null
null
null
import logging logger = logging.getLogger(__name__)
23.421053
64
0.779775
import logging from pokebattle import celery_app from pokemon.helpers import save_pokemon from services.api import get_pokemon_list logger = logging.getLogger(__name__) @celery_app.task def save_pokemon_from_pokeapi_weekly(): logger.info("Saving pokemon from pokeapi") pokemon_list = get_pokemon_list() ...
0
249
0
0
0
0
0
51
90
77805bfa5383cb54643a7a90a53231573f36f8f5
1,058
py
Python
lib/severeweatherpowerdisruptionindex.py
vabarbosa/weather-api-python
5bbfefbc5c6cbc1a18eb62c888d7fb36d8c96471
[ "Apache-2.0" ]
13
2018-08-03T15:12:49.000Z
2021-11-18T03:55:49.000Z
lib/severeweatherpowerdisruptionindex.py
vabarbosa/weather-api-python
5bbfefbc5c6cbc1a18eb62c888d7fb36d8c96471
[ "Apache-2.0" ]
5
2019-05-08T15:09:10.000Z
2020-03-19T16:05:49.000Z
lib/severeweatherpowerdisruptionindex.py
vabarbosa/weather-api-python
5bbfefbc5c6cbc1a18eb62c888d7fb36d8c96471
[ "Apache-2.0" ]
5
2019-05-06T13:30:29.000Z
2022-01-02T14:54:29.000Z
# Severe Weather Power Disruption Index 15 Day # # - https://weather.com/swagger-docs/ui/sun/v2/SUNv2SevereWeatherPowerDisruptionIndex.json # # The Power Disruption index provides indices indicating the potential for power # disruptions due to weather. # # Base URL: api.weather.com/v2 # Endpoint: /indices/powerDisrupti...
34.129032
114
0.747637
# Severe Weather Power Disruption Index 15 Day # # - https://weather.com/swagger-docs/ui/sun/v2/SUNv2SevereWeatherPowerDisruptionIndex.json # # The Power Disruption index provides indices indicating the potential for power # disruptions due to weather. # # Base URL: api.weather.com/v2 # Endpoint: /indices/powerDisrupti...
0
0
0
0
0
581
0
23
69
21940a14e35019adbc2c81132253d874f0bed51d
2,762
py
Python
flavio/physics/taudecays/tauvl.py
Felicia56/flavio
ea735bd8febbb961d249eddf338a4960c1fbee69
[ "MIT" ]
61
2016-03-09T16:19:39.000Z
2022-03-30T00:55:51.000Z
flavio/physics/taudecays/tauvl.py
Felicia56/flavio
ea735bd8febbb961d249eddf338a4960c1fbee69
[ "MIT" ]
167
2016-03-15T15:25:57.000Z
2022-02-27T22:19:22.000Z
flavio/physics/taudecays/tauvl.py
Felicia56/flavio
ea735bd8febbb961d249eddf338a4960c1fbee69
[ "MIT" ]
57
2016-03-15T14:24:23.000Z
2022-01-14T01:00:03.000Z
r"""Functions for $\tau\to V\ell$.""" import flavio from flavio.physics.taudecays import common from math import sqrt, pi # names of LFV sectors in WCxf wcxf_sector_names = {('tau', 'mu'): 'mutau', ('tau', 'e'): 'taue', ('mu', 'e'): 'mue', } def br_tauvl(wc_obj, par, V, lep...
35.410256
122
0.544895
r"""Functions for $\tau\to V\ell$.""" import flavio from flavio.physics.taudecays import common from math import sqrt, pi import numpy as np # names of LFV sectors in WCxf wcxf_sector_names = {('tau', 'mu'): 'mutau', ('tau', 'e'): 'taue', ('mu', 'e'): 'mue', } def get_wcs(w...
0
0
0
0
0
432
0
-3
67
c9742e9c2b31179e5a75f9ea160e99265b823adf
2,453
py
Python
app/views.py
cabusto/nhlchampionshipbelt
962bf44030d7bd9827ceb5791763f95c7bcfb74a
[ "MIT" ]
null
null
null
app/views.py
cabusto/nhlchampionshipbelt
962bf44030d7bd9827ceb5791763f95c7bcfb74a
[ "MIT" ]
3
2021-11-08T08:23:29.000Z
2022-03-31T08:29:52.000Z
app/views.py
cabusto/nhlchampionshipbelt
962bf44030d7bd9827ceb5791763f95c7bcfb74a
[ "MIT" ]
1
2015-11-27T16:14:28.000Z
2015-11-27T16:14:28.000Z
from Team import Team season = 2014 availableSeasons = { 2006 : Team('CAR', 'Carolina Hurricanes'), 2007 : Team('ANA', 'Anaheim Ducks'), 2008 : Team('DET', 'Detroit Red Wings'), 2009 : Team('PIT', 'Pittsburgh Penguins'), 2010 : Team('CHI', 'Chicago Blackhawks'), 2011 : Team('BOS'...
30.283951
73
0.734203
from flask import render_template, redirect, url_for from app import app from Team import Team from HReferenceParser import HReferenceParser from Schedule import Schedule from GameLog import GameLog from Stats import Stats from BeltGame import BeltGame season = 2014 availableSeasons = { 2006 : Team('CAR', 'Carolina ...
0
1,717
0
0
0
0
0
77
177
dcfd4696029ace4c9c27e898856d14d989a0d425
3,483
py
Python
py/g2q1.py
kamalneet/airline-data-analysis
5ca45a41c1ca24642ed163ddbebb0d4849e5d97e
[ "Apache-2.0" ]
null
null
null
py/g2q1.py
kamalneet/airline-data-analysis
5ca45a41c1ca24642ed163ddbebb0d4849e5d97e
[ "Apache-2.0" ]
null
null
null
py/g2q1.py
kamalneet/airline-data-analysis
5ca45a41c1ca24642ed163ddbebb0d4849e5d97e
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function from pyspark.streaming import StreamingContext csvFields = ["Year", "Month", "DayofMonth", "DayOfWeek", "UniqueCarrier", "Origin", "Dest", "CRSDepTime", "DepDelay", "ArrDelay", "Cancelled", "Diverted"] rparam="UniqueCarrier" # state: (rparam -> (num_flights, total_delay)) cassa...
33.171429
161
0.682458
from __future__ import print_function from cassandra.cluster import Cluster import os import sys import time from pyspark import SparkContext from pyspark.streaming import StreamingContext from pyspark.streaming.kafka import KafkaUtils csvFields = ["Year", "Month", "DayofMonth", "DayOfWeek", "UniqueCarrier", "Origin...
0
0
0
0
0
2,537
0
19
271
e82ab1b23d5bc23eba5640843ec2687c850e8ef2
3,600
py
Python
synapse_antispam/mjolnir/ban_list.py
0x0000000000000000000/mjolnir
65af82d46f65e2c57b72095e4958341ded84b964
[ "Apache-2.0" ]
null
null
null
synapse_antispam/mjolnir/ban_list.py
0x0000000000000000000/mjolnir
65af82d46f65e2c57b72095e4958341ded84b964
[ "Apache-2.0" ]
null
null
null
synapse_antispam/mjolnir/ban_list.py
0x0000000000000000000/mjolnir
65af82d46f65e2c57b72095e4958341ded84b964
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 The Matrix.org Foundation C.I.C. # # 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 require...
37.894737
88
0.577778
# -*- coding: utf-8 -*- # Copyright 2019 The Matrix.org Foundation C.I.C. # # 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 require...
0
2,149
0
514
0
0
0
152
89
e081e0d1017c1dff52ad67967e2e508a6a10842a
390
py
Python
box/test/magnet.py
annabadsi/escapehome
f1f1a1699954ea541edc19993b8039ebc4fb77de
[ "MIT" ]
null
null
null
box/test/magnet.py
annabadsi/escapehome
f1f1a1699954ea541edc19993b8039ebc4fb77de
[ "MIT" ]
3
2020-06-05T22:32:08.000Z
2022-02-11T03:42:49.000Z
box/test/magnet.py
annabadsi/escapehome
f1f1a1699954ea541edc19993b8039ebc4fb77de
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import time pin = 15 GPIO.setmode(GPIO.BOARD) GPIO.setup(pin, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) try: state = GPIO.input(pin) while True: if GPIO.input(pin) != state: state = GPIO.input(pin) if state == 1: print "it's open!" else: print "closed" time.sleep(1) except...
15.6
52
0.674359
import RPi.GPIO as GPIO import time pin = 15 GPIO.setmode(GPIO.BOARD) GPIO.setup(pin, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) try: state = GPIO.input(pin) while True: if GPIO.input(pin) != state: state = GPIO.input(pin) if state == 1: print "it's open!" else: print "closed" time.sleep(1) except...
0
0
0
0
0
0
0
0
0
1a3d941a3e884ebba6ca929b178ee92e17f4000e
8,280
py
Python
src/register.py
gregbugaj/marie-ai
f51a74f19ab5d7231c9f8a426284feff1671b974
[ "MIT" ]
4
2021-09-23T22:38:48.000Z
2022-01-19T12:03:02.000Z
src/register.py
gregbugaj/marie-icr
f51a74f19ab5d7231c9f8a426284feff1671b974
[ "MIT" ]
17
2021-12-22T16:37:21.000Z
2022-03-16T16:07:34.000Z
src/register.py
gregbugaj/marie-ai
f51a74f19ab5d7231c9f8a426284feff1671b974
[ "MIT" ]
null
null
null
import argparse import threading # import uuid from typing import Tuple, Union import consul import yaml from consul.base import Check from logger import create_info_logger from utils.network import find_open_port, get_ip_address logger = create_info_logger("registry", "registry.log") config = None current_service_...
31.363636
125
0.650121
import argparse import threading import time # import uuid from http.server import BaseHTTPRequestHandler, HTTPServer from typing import Tuple, Union import consul import yaml from consul.base import Check from logger import create_info_logger from utils.network import find_open_port, get_ip_address logger = create...
0
0
0
1,399
0
1,546
0
27
232
1d38838b75275558a1ff0878c5610b497f4943fe
562
py
Python
sandbox/example_app/views.py
kneirinck/django-pint
8aa55dbccef0b5c43895019449a547002bf43b15
[ "MIT" ]
1
2018-09-19T12:10:08.000Z
2018-09-19T12:10:08.000Z
sandbox/example_app/views.py
kneirinck/django-pint
8aa55dbccef0b5c43895019449a547002bf43b15
[ "MIT" ]
1
2020-11-08T02:33:49.000Z
2020-11-08T02:33:49.000Z
sandbox/example_app/views.py
kneirinck/django-pint
8aa55dbccef0b5c43895019449a547002bf43b15
[ "MIT" ]
1
2020-11-05T12:46:30.000Z
2020-11-05T12:46:30.000Z
# Create your views here.
21.615385
56
0.756228
from django.shortcuts import render from django.views.generic import FormView, TemplateView from .forms import TestForm from django.contrib import messages from quantityfield import ureg # Create your views here. class QuantityFormView(TemplateView): form_class = TestForm template_name = 'test_form.html' def ...
0
0
0
317
0
0
0
77
137
accf8c5737ee95d1cc9d5452ef97751bfabe8043
3,003
py
Python
engineauth/strategies/linkedin.py
alecdotico/engineauth
def523f6c0d48f346e552b6638e6f3a6a1717733
[ "Apache-2.0" ]
1
2015-12-14T10:37:52.000Z
2015-12-14T10:37:52.000Z
engineauth/strategies/linkedin.py
alecdotico/engineauth
def523f6c0d48f346e552b6638e6f3a6a1717733
[ "Apache-2.0" ]
null
null
null
engineauth/strategies/linkedin.py
alecdotico/engineauth
def523f6c0d48f346e552b6638e6f3a6a1717733
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import
38.012658
96
0.457209
from __future__ import absolute_import import json from engineauth.models import User from engineauth.strategies.oauth import OAuthStrategy class LinkedInStrategy(OAuthStrategy): @property def options(self): return { 'provider': 'linkedin', 'request_token_uri': 'https://api.l...
0
324
0
2,514
0
0
0
35
90
b47ff20721a54b52a7d8f6bade24127ca923aa49
2,897
py
Python
designate/tests/unit/sink/test_notifications.py
mrlesmithjr/designate
bff3d5f6e31fe595a77143ec4ac779c187bf72a8
[ "Apache-2.0" ]
145
2015-01-02T09:35:53.000Z
2021-12-14T17:03:53.000Z
designate/tests/unit/sink/test_notifications.py
mrlesmithjr/designate
bff3d5f6e31fe595a77143ec4ac779c187bf72a8
[ "Apache-2.0" ]
6
2015-03-15T00:22:27.000Z
2019-12-16T09:37:38.000Z
designate/tests/unit/sink/test_notifications.py
mrlesmithjr/designate
bff3d5f6e31fe595a77143ec4ac779c187bf72a8
[ "Apache-2.0" ]
109
2015-01-13T16:47:34.000Z
2021-03-15T13:18:48.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
33.298851
79
0.662755
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
0
0
0
2,043
0
0
0
89
157
c23a45edce2e740416f1b63e673affc5abe1c324
60
py
Python
text/_elisp/_element/__init__.py
jedhsu/text
8525b602d304ac571a629104c48703443244545c
[ "Apache-2.0" ]
null
null
null
text/_elisp/_element/__init__.py
jedhsu/text
8525b602d304ac571a629104c48703443244545c
[ "Apache-2.0" ]
null
null
null
text/_elisp/_element/__init__.py
jedhsu/text
8525b602d304ac571a629104c48703443244545c
[ "Apache-2.0" ]
null
null
null
from ._element import Element __all__ = [ "Element", ]
10
29
0.65
from ._element import Element __all__ = [ "Element", ]
0
0
0
0
0
0
0
0
0
cfbf4e06707fb5df3d194eb5a289c6d31f649e23
28,327
py
Python
sct_custom/spinalcordtoolbox/scripts/sct_propseg.py
nidebroux/lumbosacral_segmentation
3217960c6f0f5c3886dfdf46e1286ad2f737f4aa
[ "Unlicense", "MIT" ]
1
2021-09-07T08:52:21.000Z
2021-09-07T08:52:21.000Z
sct_custom/spinalcordtoolbox/scripts/sct_propseg.py
nidebroux/lumbosacral_segmentation
3217960c6f0f5c3886dfdf46e1286ad2f737f4aa
[ "Unlicense", "MIT" ]
null
null
null
sct_custom/spinalcordtoolbox/scripts/sct_propseg.py
nidebroux/lumbosacral_segmentation
3217960c6f0f5c3886dfdf46e1286ad2f737f4aa
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/env python ######################################################################################### # # Parser for PropSeg binary. # # --------------------------------------------------------------------------------------- # Copyright (c) 2015 Polytechnique Montreal <www.neuro.polymtl.ca> # Authors: Benjami...
41.780236
139
0.645074
#!/usr/bin/env python ######################################################################################### # # Parser for PropSeg binary. # # --------------------------------------------------------------------------------------- # Copyright (c) 2015 Polytechnique Montreal <www.neuro.polymtl.ca> # Authors: Benjami...
0
0
0
0
0
10,681
0
142
90
3e1dcefe4cfbf87ca1576b78d49c23394ad109b2
1,217
py
Python
brownies/legacy/toENDL/productData/distributions/angular.py
brown170/fudge
4f818b0e0b0de52bc127dd77285b20ce3568c97a
[ "BSD-3-Clause" ]
14
2019-08-29T23:46:24.000Z
2022-03-21T10:16:25.000Z
brownies/legacy/toENDL/productData/distributions/angular.py
brown170/fudge
4f818b0e0b0de52bc127dd77285b20ce3568c97a
[ "BSD-3-Clause" ]
1
2020-08-04T16:14:45.000Z
2021-12-01T01:54:34.000Z
brownies/legacy/toENDL/productData/distributions/angular.py
brown170/fudge
4f818b0e0b0de52bc127dd77285b20ce3568c97a
[ "BSD-3-Clause" ]
2
2022-03-03T22:41:41.000Z
2022-03-03T22:54:43.000Z
# <<BEGIN-copyright>> # Copyright 2021, Lawrence Livermore National Security, LLC. # See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: BSD-3-Clause # <<END-copyright>> from fudge.productData.distributions import angular as angularModule # # XYs1d # angularModule.XYs1d.toENDL = toENDL # # XY...
18.164179
81
0.707477
# <<BEGIN-copyright>> # Copyright 2021, Lawrence Livermore National Security, LLC. # See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: BSD-3-Clause # <<END-copyright>> from fudge import outputChannel as outputChannelModule from fudge.productData.distributions import angular as angularModule ...
0
0
0
0
0
442
0
33
155
0cac01636d295a3749a34a34602491d7b6bacea8
679
py
Python
globals.py
MichaelSchmidt82/pong-neural-net
c0131fccf58457ebe08d6392e2d08abd9cc2fced
[ "MIT" ]
null
null
null
globals.py
MichaelSchmidt82/pong-neural-net
c0131fccf58457ebe08d6392e2d08abd9cc2fced
[ "MIT" ]
null
null
null
globals.py
MichaelSchmidt82/pong-neural-net
c0131fccf58457ebe08d6392e2d08abd9cc2fced
[ "MIT" ]
null
null
null
game = { 'TRAINING': True, 'WND_WIDTH': 500, 'WND_HEIGHT': 500, 'SCOREBAR_HEIGHT': 30, # colors 'WHITE': (255, 255, 255), 'BLACK': (0, 0, 0), # game objects 'BALL_SZ': 9, 'PAD_H': 45, 'PAD_W': 15 } game['BALL_XSPD'] = game['WND_WIDTH'] / 160 game['BALL_XSTR'] = 0.5 * game...
21.21875
90
0.581738
game = { 'TRAINING': True, 'WND_WIDTH': 500, 'WND_HEIGHT': 500, 'SCOREBAR_HEIGHT': 30, # colors 'WHITE': (255, 255, 255), 'BLACK': (0, 0, 0), # game objects 'BALL_SZ': 9, 'PAD_H': 45, 'PAD_W': 15 } game['BALL_XSPD'] = game['WND_WIDTH'] / 160 game['BALL_XSTR'] = 0.5 * game...
0
0
0
0
0
0
0
0
0
dbfcd5072822bcaecc3bb7840e9b162caa621b22
957
py
Python
cs1101/Neeraj_Pandey_cs1101_practice4/q10.py
neerajp99/intro_to_cs_CS-101
8c4ae52a68458706a37ffc14c663ea7ae67183ef
[ "MIT" ]
null
null
null
cs1101/Neeraj_Pandey_cs1101_practice4/q10.py
neerajp99/intro_to_cs_CS-101
8c4ae52a68458706a37ffc14c663ea7ae67183ef
[ "MIT" ]
null
null
null
cs1101/Neeraj_Pandey_cs1101_practice4/q10.py
neerajp99/intro_to_cs_CS-101
8c4ae52a68458706a37ffc14c663ea7ae67183ef
[ "MIT" ]
null
null
null
""" Write a program that accepts 10 integers from a user into an array, and count the number of occurrences of all present prime numbers. """ if __name__ == "__main__": values = list() for i in range(10): x = int(input(f"Enter the list value { i + 1 }: ")) values.append(x) count_oc...
25.864865
74
0.547544
""" Write a program that accepts 10 integers from a user into an array, and count the number of occurrences of all present prime numbers. """ def check_prime(value: int) -> bool: if value > 1: for i in range(2, value): if value % i == 0: return 0 else: ...
0
0
0
0
0
567
0
0
45
4747fa8cedc39d216094f2f2de620db276345ce7
2,188
py
Python
Leetcode/Python Solutions/Common Algorithm Templates/Trees/binaryIndexTree.py
Mostofa-Najmus-Sakib/Applied-Algorithm
bc656fd655617407856e0ce45b68585fa81c5035
[ "MIT" ]
1
2020-01-06T02:21:56.000Z
2020-01-06T02:21:56.000Z
Leetcode/Python Solutions/Common Algorithm Templates/Trees/binaryIndexTree.py
Mostofa-Najmus-Sakib/Applied-Algorithm
bc656fd655617407856e0ce45b68585fa81c5035
[ "MIT" ]
null
null
null
Leetcode/Python Solutions/Common Algorithm Templates/Trees/binaryIndexTree.py
Mostofa-Najmus-Sakib/Applied-Algorithm
bc656fd655617407856e0ce45b68585fa81c5035
[ "MIT" ]
3
2021-02-22T17:41:01.000Z
2022-01-13T05:03:19.000Z
""" Language: Python Written by: Mostofa Adib Shakib Video Explanation: https://www.youtube.com/watch?v=CWDQJGaN1gY Further Reading: https://www.geeksforgeeks.org/binary-indexed-tree-or-fenwick-tree-2/ https://www.topcoder.com/community/competitive-programming/tutorials/binary-indexed-trees/ Binary In...
28.051282
107
0.646252
""" Language: Python Written by: Mostofa Adib Shakib Video Explanation: https://www.youtube.com/watch?v=CWDQJGaN1gY Further Reading: https://www.geeksforgeeks.org/binary-indexed-tree-or-fenwick-tree-2/ https://www.topcoder.com/community/competitive-programming/tutorials/binary-indexed-trees/ Binary In...
0
0
0
0
0
901
0
0
69
40f8c64e6d1b2cd016ad656dd3b753298b202cf9
4,047
py
Python
dmx512/dmx512.py
JimmyKenMerchant/Python_Codes
d780b8e9eb30a68547406a93fe4c412dbbdc8f26
[ "BSD-3-Clause" ]
null
null
null
dmx512/dmx512.py
JimmyKenMerchant/Python_Codes
d780b8e9eb30a68547406a93fe4c412dbbdc8f26
[ "BSD-3-Clause" ]
null
null
null
dmx512/dmx512.py
JimmyKenMerchant/Python_Codes
d780b8e9eb30a68547406a93fe4c412dbbdc8f26
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 # Author: Kenta Ishii # SPDX short identifier: BSD-3-Clause # ./dmx512.py if __name__ == '__main__': import sys import signal version_info = "DMX512 Alpha" signal.signal(signal.SIGINT, handle_sigint) argv = sys.argv if len(argv) == 1: time_delay = 4 else: ...
34.008403
129
0.622189
#!/usr/bin/python3 # Author: Kenta Ishii # SPDX short identifier: BSD-3-Clause # ./dmx512.py import RPi.GPIO as gpio import threading class DMX512: """Dependency:RPi.GPIO, threading""" def __init__(self, list_gpio_output, num_gpio_busy_toggle, num_gpio_eop_toggle): self.list_gpio_output = list_gpio_o...
0
0
0
2,427
0
77
0
-13
121
b9b7aeaf120635095ec322f5e4b2350e9c695ca9
4,875
py
Python
xtra_gnss.py
pixierepo/pixie_xtra_gnss
4a0a85ef1ee381d531e8a08cc6ba9d3f38b72515
[ "MIT" ]
null
null
null
xtra_gnss.py
pixierepo/pixie_xtra_gnss
4a0a85ef1ee381d531e8a08cc6ba9d3f38b72515
[ "MIT" ]
null
null
null
xtra_gnss.py
pixierepo/pixie_xtra_gnss
4a0a85ef1ee381d531e8a08cc6ba9d3f38b72515
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[4]: # In[5]: #Generic AT CR = '\r\n' ENABLE_AT='ATE1' #Filesystem AT commands UPLOAD_FILE='AT+QFUPL' DELETE_FILE='AT+QFDEL' LIST_FILES='AT+QFLST' LIST_FILES_RAM=bytes('AT+QFLST="RAM:*"\r\n','utf-8') #GPS AT commands GPS_ENGINE='AT+QGPS' XTRA='AT+QGPSXTRA' XTRA_TIME='AT...
19.117647
79
0.581333
#!/usr/bin/env python # coding: utf-8 # In[4]: import serial import time import re from datetime import datetime import subprocess import os import urllib.request # In[5]: #Generic AT CR = '\r\n' ENABLE_AT='ATE1' #Filesystem AT commands UPLOAD_FILE='AT+QFUPL' DELETE_FILE='AT+QFDEL' LIST_FILES='AT+QFLST' LIST_FI...
0
0
0
0
0
3,886
0
-38
385
54deedd4d7b79030546b176fcf4014cb24cd5375
2,019
py
Python
mobile_index_selenium.py
jhgil92/mobile_index
29c9f11ca2201b27cd3734969a86dbab0a53c043
[ "MIT" ]
null
null
null
mobile_index_selenium.py
jhgil92/mobile_index
29c9f11ca2201b27cd3734969a86dbab0a53c043
[ "MIT" ]
null
null
null
mobile_index_selenium.py
jhgil92/mobile_index
29c9f11ca2201b27cd3734969a86dbab0a53c043
[ "MIT" ]
null
null
null
from selenium import webdriver email = '' password = '' auth = '' start_date = '2020-05-01' end_date = '2020-11-30' driver = webdriver.Chrome("C:/workspace/python/chromedriver/chromedriver.exe") driver.implicitly_wait(10) driver.get("https://hd.mobileindex.com/member/login?url=https%3A%2F%2Fhd.mobileindex.com%2F") i...
36.709091
151
0.727588
from selenium import webdriver from selenium.webdriver.common.keys import Keys import time email = '' password = '' auth = '' start_date = '2020-05-01' end_date = '2020-11-30' driver = webdriver.Chrome("C:/workspace/python/chromedriver/chromedriver.exe") driver.implicitly_wait(10) driver.get("https://hd.mobileindex.c...
0
0
0
0
0
1,277
0
16
159
af1fcbccbf9b5bd714483c88502c6f4143aa2651
10,293
py
Python
bot/cogs/core.py
bryanpalmer/AzsocamiBot
3e163ef793abf2be2b64835f901bec7cdfd10cc6
[ "MIT" ]
2
2021-03-03T04:28:24.000Z
2021-10-12T09:36:16.000Z
bot/cogs/core.py
bryanpalmer/AzsocamiBot
3e163ef793abf2be2b64835f901bec7cdfd10cc6
[ "MIT" ]
null
null
null
bot/cogs/core.py
bryanpalmer/AzsocamiBot
3e163ef793abf2be2b64835f901bec7cdfd10cc6
[ "MIT" ]
1
2021-03-03T04:28:27.000Z
2021-03-03T04:28:27.000Z
import os, sys, inspect current_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parent_dir = os.path.dirname(current_dir) sys.path.insert(0, parent_dir) # import wowapi DEVMODE = os.getenv("DEVMODE") == "TRUE" # Boolean flag for devmode ENVVERSION = os.getenv("ENV_VERSION") # Local ...
37.703297
103
0.496551
import discord from discord.ext import commands, tasks import os, sys, inspect import asyncio current_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parent_dir = os.path.dirname(current_dir) sys.path.insert(0, parent_dir) import botlib # import wowapi DEVMODE = os.getenv("DEVMODE") =...
4
3,287
275
6,143
0
30
0
-4
133
9c79bc70ddef8a6d0acc20fd3ffffeb5e0697f97
956
py
Python
simple/close.py
rzzzwilson/pyqt5
b0d06f01727e6b3c99b68f1276573baf36daadb6
[ "MIT" ]
1
2017-10-29T13:00:52.000Z
2017-10-29T13:00:52.000Z
simple/close.py
rzzzwilson/pyqt5
b0d06f01727e6b3c99b68f1276573baf36daadb6
[ "MIT" ]
null
null
null
simple/close.py
rzzzwilson/pyqt5
b0d06f01727e6b3c99b68f1276573baf36daadb6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ZetCode PyQt5 tutorial This program creates a quit button. When we press the button, the application terminates. author: Jan Bodnar website: zetcode.com last edited: January 2015 """ import sys from PyQt5.QtWidgets import QApplication if __nam...
21.244444
62
0.598326
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ZetCode PyQt5 tutorial This program creates a quit button. When we press the button, the application terminates. author: Jan Bodnar website: zetcode.com last edited: January 2015 """ import sys from PyQt5.QtWidgets import QWidget, QPushButton, QApplication from ...
0
0
0
448
0
0
0
42
45
f150b5f8225172c15a64e638a537a893cbd944fe
2,096
py
Python
source/comparative_genomics/heatmap_VF.py
rbr7/compgenomics2021
15d75fbcc939cb2388fd3749cf444c6b62319e47
[ "MIT" ]
null
null
null
source/comparative_genomics/heatmap_VF.py
rbr7/compgenomics2021
15d75fbcc939cb2388fd3749cf444c6b62319e47
[ "MIT" ]
null
null
null
source/comparative_genomics/heatmap_VF.py
rbr7/compgenomics2021
15d75fbcc939cb2388fd3749cf444c6b62319e47
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np; np.random.seed(0) import seaborn as sns; sns.set_theme() from matplotlib import pyplot as plt file=pd.read_csv('/home/Documents/Acads/CompGenomics/Proj_ComparitiveGenomics/vf_merged_results.tsv', sep='\t') VF=list(file['Virulence factor']) Is=list(file['Isolate']) genes=['eae...
52.4
564
0.663645
import pandas as pd import numpy as np; np.random.seed(0) import seaborn as sns; sns.set_theme() from matplotlib import pyplot as plt file=pd.read_csv('/home/Documents/Acads/CompGenomics/Proj_ComparitiveGenomics/vf_merged_results.tsv', sep='\t') VF=list(file['Virulence factor']) Is=list(file['Isolate']) genes=['eae...
0
0
0
0
0
0
0
0
0
01ff571c686e592ea7e7334e654437ef89ec23b7
6,628
py
Python
python/plugins/processing/gui/Postprocessing.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
python/plugins/processing/gui/Postprocessing.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
python/plugins/processing/gui/Postprocessing.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
1
2021-12-25T08:40:30.000Z
2021-12-25T08:40:30.000Z
# -*- coding: utf-8 -*- """ *************************************************************************** Postprocessing.py --------------------- Date : August 2012 Copyright : (C) 2012 by Victor Olaya Email : volayaf at gmail dot com ************************...
45.39726
184
0.569855
# -*- coding: utf-8 -*- """ *************************************************************************** Postprocessing.py --------------------- Date : August 2012 Copyright : (C) 2012 by Victor Olaya Email : volayaf at gmail dot com ************************...
0
0
0
0
0
3,753
0
441
111
4853713c7a5a4e59600cfcdded4fab0fce1d54b2
8,662
py
Python
Pyrado/pyrado/plotting/policy_parameters.py
jacarvalho/SimuRLacra
a6c982862e2ab39a9f65d1c09aa59d9a8b7ac6c5
[ "BSD-3-Clause" ]
null
null
null
Pyrado/pyrado/plotting/policy_parameters.py
jacarvalho/SimuRLacra
a6c982862e2ab39a9f65d1c09aa59d9a8b7ac6c5
[ "BSD-3-Clause" ]
null
null
null
Pyrado/pyrado/plotting/policy_parameters.py
jacarvalho/SimuRLacra
a6c982862e2ab39a9f65d1c09aa59d9a8b7ac6c5
[ "BSD-3-Clause" ]
null
null
null
""" Functions to plot Pyrado policies """ import numpy as np import torch.nn as nn from matplotlib import ticker, colorbar from matplotlib import pyplot as plt from typing import Any import pyrado from pyrado.plotting.utils import AccNorm from pyrado.policies.adn import ADNPolicy from pyrado.policies.base import Polic...
45.350785
119
0.634726
""" Functions to plot Pyrado policies """ import numpy as np import torch.nn as nn from matplotlib import ticker, colorbar from matplotlib import pyplot as plt from typing import Any import pyrado from pyrado.plotting.utils import AccNorm from pyrado.policies.adn import ADNPolicy from pyrado.policies.base import Polic...
0
0
0
0
0
0
0
0
0
ef6e758fc0abe0059cc14daad239b97fed80451a
4,687
py
Python
getgauge/registry.py
kaleb/py-gauge-python
edd8cf7827bc7d3a516e062521f5cf0a600efcb5
[ "MIT" ]
null
null
null
getgauge/registry.py
kaleb/py-gauge-python
edd8cf7827bc7d3a516e062521f5cf0a600efcb5
[ "MIT" ]
null
null
null
getgauge/registry.py
kaleb/py-gauge-python
edd8cf7827bc7d3a516e062521f5cf0a600efcb5
[ "MIT" ]
null
null
null
registry = Registry()
30.633987
108
0.65479
import os import re import tempfile from subprocess import call from colorama import Fore from getgauge.api import get_step_value class StepInfo(object): def __init__(self, step_text, parsed_step_text, impl, file_name, line_number, has_alias=False): self.__step_text, self.__parsed_step_text, self.__impl...
0
528
0
3,115
0
768
0
-2
249
25880f4675b59434aa1de002074f27713ac08456
331
py
Python
mayan/apps/appearance/migrations/0009_remove_theme_logoimage.py
punphatai/Mayan-EDMS
8f929e427b497817ad0e024cec7f7bec61b172c0
[ "Apache-2.0" ]
null
null
null
mayan/apps/appearance/migrations/0009_remove_theme_logoimage.py
punphatai/Mayan-EDMS
8f929e427b497817ad0e024cec7f7bec61b172c0
[ "Apache-2.0" ]
null
null
null
mayan/apps/appearance/migrations/0009_remove_theme_logoimage.py
punphatai/Mayan-EDMS
8f929e427b497817ad0e024cec7f7bec61b172c0
[ "Apache-2.0" ]
1
2022-02-21T13:19:36.000Z
2022-02-21T13:19:36.000Z
# Generated by Django 2.2.24 on 2022-03-07 10:56
18.388889
48
0.595166
# Generated by Django 2.2.24 on 2022-03-07 10:56 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('appearance', '0008_theme_logoimage'), ] operations = [ migrations.RemoveField( model_name='theme', name='LogoImage', ...
0
0
0
224
0
0
0
11
46
3db2f0f2a2d8cd95d2f808dbfeb6a37ff8c0fa35
2,904
py
Python
matflow/hardwareadministration/Hardware_Controller.py
soerenray/MatFlow
db0c8311262738264f1c525b8266a2bf52a7b7e6
[ "MIT" ]
null
null
null
matflow/hardwareadministration/Hardware_Controller.py
soerenray/MatFlow
db0c8311262738264f1c525b8266a2bf52a7b7e6
[ "MIT" ]
null
null
null
matflow/hardwareadministration/Hardware_Controller.py
soerenray/MatFlow
db0c8311262738264f1c525b8266a2bf52a7b7e6
[ "MIT" ]
null
null
null
# import resource
29.938144
85
0.631887
# import resource from typing import List, Tuple from matflow.database.ServerData import ServerData from matflow.frontendapi import keys from matflow.hardwareadministration.Server import Server import requests from requests.auth import HTTPBasicAuth class Hardware_Controller: _Server: Server # Constructor ...
0
0
0
2,629
0
0
0
100
156
971e770d1fbc3d491f7ea1bbe9522bc53ae28e89
2,683
py
Python
programs/function.py
JoeWard7/settler
e521b30dd15bf6512ebf40e6b1b8214557b98ba6
[ "MIT" ]
null
null
null
programs/function.py
JoeWard7/settler
e521b30dd15bf6512ebf40e6b1b8214557b98ba6
[ "MIT" ]
null
null
null
programs/function.py
JoeWard7/settler
e521b30dd15bf6512ebf40e6b1b8214557b98ba6
[ "MIT" ]
null
null
null
"""Calculations and Fucntions.""" import setup as set def player_statcalc(player): """Print this.""" player_prop = [] player_res = [] player_num = [] for letter in player: prob = set.letter_probs[letter] resIndex = set.resource_position[letter] res = set.resource_index[res...
27.10101
73
0.583675
"""Calculations and Fucntions.""" import setup as set def player_statcalc(player): """Print this.""" player_prop = [] player_res = [] player_num = [] for letter in player: prob = set.letter_probs[letter] resIndex = set.resource_position[letter] res = set.resource_index[res...
0
0
0
0
0
0
0
0
0
d7f080f17a48c3fcae06eaa5771bc062bdb48047
1,216
py
Python
proj_1/index.py
PardeepBaboria/py-etl
2af8becf026eb9c83a845b1b1499192bf7c2a570
[ "Apache-2.0" ]
null
null
null
proj_1/index.py
PardeepBaboria/py-etl
2af8becf026eb9c83a845b1b1499192bf7c2a570
[ "Apache-2.0" ]
null
null
null
proj_1/index.py
PardeepBaboria/py-etl
2af8becf026eb9c83a845b1b1499192bf7c2a570
[ "Apache-2.0" ]
null
null
null
import petl as etl, psycopg2 as pg, pymysql as mysql from config import dbConfig SOURCE_DB_DBO = pg.connect(dbConfig["source"]) STAGING_DB_DBO = pg.connect(dbConfig["staging"]) DW_DB_DBO = mysql.connect( host= dbConfig["data_warehouse"]["host"], user= dbConfig["data_warehouse"]["user"], password= dbConfig["da...
36.848485
151
0.76727
import petl as etl, psycopg2 as pg, pymysql as mysql from config import dbConfig SOURCE_DB_DBO = pg.connect(dbConfig["source"]) STAGING_DB_DBO = pg.connect(dbConfig["staging"]) DW_DB_DBO = mysql.connect( host= dbConfig["data_warehouse"]["host"], user= dbConfig["data_warehouse"]["user"], password= dbConfig["da...
0
0
0
0
0
0
0
0
0
cb23410e910c2dd8c4fe727004924c1468e60f71
3,506
py
Python
prepare_multi_sources_data.py
FYJNEVERFOLLOWS/nnsslm
a988451277c027f7203614b92b491707024bbbe6
[ "BSD-3-Clause" ]
null
null
null
prepare_multi_sources_data.py
FYJNEVERFOLLOWS/nnsslm
a988451277c027f7203614b92b491707024bbbe6
[ "BSD-3-Clause" ]
null
null
null
prepare_multi_sources_data.py
FYJNEVERFOLLOWS/nnsslm
a988451277c027f7203614b92b491707024bbbe6
[ "BSD-3-Clause" ]
null
null
null
import numpy as np np.set_printoptions(threshold=np.inf) from torch.utils.data import DataLoader if __name__ == '__main__': test_data_path = "/Work18/2021/fuyanjie/exp_data/exp_nnsslm/test_data_dir/test_data_frame_level_gcc" test_data = DataLoader(SSLR_Dataset(test_data_path), batch_size=64, shuffle=True, nu...
36.14433
173
0.573588
import os import pickle import random import numpy as np np.set_printoptions(threshold=np.inf) import torch from torch.utils.data import Dataset, DataLoader class SSLR_Dataset(Dataset): def __init__(self, data_path): super().__init__() self.data_path = data_path self.total_x, self.total_y...
33
0
0
2,759
0
0
0
-28
111
c323e0699bd28f7cad27f63044295b3c24f51d87
55
py
Python
sieve/utils/__init__.py
A-N-Other/sieve
eda7b2f048b67d94c032c2d4601f8ab571275a0c
[ "MIT" ]
null
null
null
sieve/utils/__init__.py
A-N-Other/sieve
eda7b2f048b67d94c032c2d4601f8ab571275a0c
[ "MIT" ]
null
null
null
sieve/utils/__init__.py
A-N-Other/sieve
eda7b2f048b67d94c032c2d4601f8ab571275a0c
[ "MIT" ]
null
null
null
# GY171204
11
21
0.709091
# GY171204 from .utils import * from .needle import *
0
0
0
0
0
0
0
-1
45
63732fa5a77b988e32e1109c7c40024bbd8e26e1
1,077
py
Python
src/sovereign/views/healthchecks.py
bochuxt/envoy-control-plane-python3
6d63ad6e1ecff5365bb571f0021951b066f8e270
[ "Apache-2.0" ]
1
2020-07-08T19:37:09.000Z
2020-07-08T19:37:09.000Z
src/sovereign/views/healthchecks.py
bochuxt/envoy-control-plane-python3
6d63ad6e1ecff5365bb571f0021951b066f8e270
[ "Apache-2.0" ]
null
null
null
src/sovereign/views/healthchecks.py
bochuxt/envoy-control-plane-python3
6d63ad6e1ecff5365bb571f0021951b066f8e270
[ "Apache-2.0" ]
null
null
null
from fastapi.routing import APIRouter router = APIRouter()
30.771429
89
0.760446
import random from fastapi.routing import APIRouter from fastapi.responses import PlainTextResponse from sovereign import XDS_TEMPLATES, __versionstr__ from sovereign import discovery from sovereign.sources import match_node, extract_node_key from sovereign.utils.mock import mock_discovery_request router = APIRouter(...
0
683
0
0
0
0
0
129
201
df58ddd7fb70f501e3c7c8b49c6aa8f4c973589b
1,002
py
Python
code/utils.py
llord1/DataScienceRecipes
e2ca3f3c57e38900a6cff56f928b7c4b2fbf7a6a
[ "CC0-1.0" ]
null
null
null
code/utils.py
llord1/DataScienceRecipes
e2ca3f3c57e38900a6cff56f928b7c4b2fbf7a6a
[ "CC0-1.0" ]
null
null
null
code/utils.py
llord1/DataScienceRecipes
e2ca3f3c57e38900a6cff56f928b7c4b2fbf7a6a
[ "CC0-1.0" ]
null
null
null
from io import BytesIO from tarfile import TarInfo def read_lines_from_tar_file(tar_file): """ Read the tar file returning the lines """ txt = tar_file.read() txt = txt.decode('utf-8') return txt.splitlines() def write_lines_to_tarball(tar_ball, tar_info, lines): """ Writes the releva...
25.692308
85
0.638723
from io import BytesIO from tarfile import TarInfo def list_tar_files(tar_ball): """ `getmembers()` requires scaning the entire file before returning the first value. Avoid that by making a looping iterator. """ tar_info = tar_ball.next() while tar_info is not None: tar_file = tar_ball...
0
0
0
0
400
0
0
0
23
830ae2ceef813299429bbfb9a5c0c6f97b8a3f08
2,711
py
Python
microquake/core/util/cli.py
jeanphilippemercier/microquake
0b9d07be11eddd64619e46939c320487531602a3
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
microquake/core/util/cli.py
jeanphilippemercier/microquake
0b9d07be11eddd64619e46939c320487531602a3
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
microquake/core/util/cli.py
jeanphilippemercier/microquake
0b9d07be11eddd64619e46939c320487531602a3
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
import time if __name__ == "__main__": a = ProgressBar() for i in range(100): time.sleep(0.02) a()
25.575472
106
0.530063
import time import sys class ProgressBar(object): """ This object display a simple command line progress bar to wait in style. """ def __init__(self, max = 100, size = 50, char = "#", caption = "Progress"): self.max = max self.value = 0 self.caption = caption self.size ...
0
0
0
2,527
0
0
0
-11
68
92c91ea2bddbddc9816a293ab44c3495cfb8fc07
1,529
py
Python
forumsweats/commands/sendbobux.py
zzzzz28/forum-sweats
346c281821164ac721a028dee8b726d26374e760
[ "MIT" ]
10
2020-10-15T18:08:53.000Z
2021-12-11T13:15:05.000Z
forumsweats/commands/sendbobux.py
zzzzz28/forum-sweats
346c281821164ac721a028dee8b726d26374e760
[ "MIT" ]
59
2020-10-06T23:19:25.000Z
2022-03-06T14:16:31.000Z
forumsweats/commands/sendbobux.py
zzzzz28/forum-sweats
346c281821164ac721a028dee8b726d26374e760
[ "MIT" ]
13
2020-10-19T20:46:47.000Z
2022-03-05T20:17:40.000Z
import forumsweats.discordbot as discordbot name = 'sendbobux' aliases = ('sendkromer', 'transmitkromer') args = '<member> <amount>'
38.225
142
0.752126
import forumsweats.discordbot as discordbot from ..commandparser import Member import discord from forumsweats import db name = 'sendbobux' aliases = ('sendkromer', 'transmitkromer') args = '<member> <amount>' async def run(message, member: Member = None, amount: int = 0): 'Sends some of your bobux to another user.'...
0
0
1,295
0
0
0
0
11
89
c9e2a23269d7a94a222a14b1b0843d4166b796cc
77
py
Python
lib/python2.7/site-packages/eventlet/green/http/__init__.py
nishaero/wifi-userseg-ryu
1132f2c813b79eff755bdd1a9e73e7ad3980af7c
[ "Apache-2.0" ]
1
2021-07-17T01:39:39.000Z
2021-07-17T01:39:39.000Z
lib/python2.7/site-packages/eventlet/green/http/__init__.py
nishaero/wifi-userseg-ryu
1132f2c813b79eff755bdd1a9e73e7ad3980af7c
[ "Apache-2.0" ]
8
2020-09-26T00:55:16.000Z
2022-03-12T00:23:07.000Z
lib/python2.7/site-packages/eventlet/green/http/__init__.py
nishaero/wifi-userseg-ryu
1132f2c813b79eff755bdd1a9e73e7ad3980af7c
[ "Apache-2.0" ]
null
null
null
from eventlet.support import six assert six.PY3, 'This is a Python 3 module'
25.666667
43
0.779221
from eventlet.support import six assert six.PY3, 'This is a Python 3 module'
0
0
0
0
0
0
0
0
0
523a3b3420226b1dd6b962dc4eebe6c111bdcee2
2,770
py
Python
hoopa/utils/decorators.py
fishtn/hoopa
1742097c76b4ad4880bd22b87ee89be8490e2b24
[ "Apache-2.0" ]
9
2021-04-12T03:21:11.000Z
2022-01-06T07:51:11.000Z
hoopa/utils/decorators.py
fishtn/hoopa
1742097c76b4ad4880bd22b87ee89be8490e2b24
[ "Apache-2.0" ]
3
2021-04-14T06:58:00.000Z
2021-06-17T03:25:34.000Z
hoopa/utils/decorators.py
fishtn/hoopa
1742097c76b4ad4880bd22b87ee89be8490e2b24
[ "Apache-2.0" ]
3
2021-04-20T09:03:51.000Z
2022-01-06T07:51:19.000Z
# -*- coding: utf-8 -*- """ """
29.157895
94
0.567509
# -*- coding: utf-8 -*- """ 装饰器 """ import asyncio from asyncio import iscoroutinefunction from functools import wraps from loguru import logger import traceback from .concurrency import run_function from .helpers import spider_sleep from .url import get_location_from_history from ..request import Request from ..res...
105
1,660
397
0
0
267
0
83
292
ba4a4c94f03df6d3d873730fb0b35815f2f288bf
4,447
py
Python
portal_spider.py
cako/portal-investidor-scraper
8e0f0574477fbe78f58df7b2e4f4248adfe4ecd9
[ "MIT" ]
null
null
null
portal_spider.py
cako/portal-investidor-scraper
8e0f0574477fbe78f58df7b2e4f4248adfe4ecd9
[ "MIT" ]
null
null
null
portal_spider.py
cako/portal-investidor-scraper
8e0f0574477fbe78f58df7b2e4f4248adfe4ecd9
[ "MIT" ]
null
null
null
""" Raspagem de dados do Portal Investidor para encontrar detalhes sobre operaes feitas pelo Tesouro Direto. PRECISA DE UMA LISTA DE PROTOCOLOS PARA RODAR!!!!!!! Siga as instrues: 1. Navegue a https://portalinvestidor.tesourodireto.com.br/Consulta 2. Preencha os Filtros e clique em Aplicar 3. V at a tran...
34.742188
78
0.610524
""" Raspagem de dados do Portal Investidor para encontrar detalhes sobre operações feitas pelo Tesouro Direto. PRECISA DE UMA LISTA DE PROTOCOLOS PARA RODAR!!!!!!! Siga as instruções: 1. Navegue a https://portalinvestidor.tesourodireto.com.br/Consulta 2. Preencha os Filtros e clique em Aplicar 3. Vá até ...
50
0
0
2,644
0
0
0
0
67
0608a07b986799595d846f90b829c33a0a24ff42
3,962
py
Python
tests/params/string.py
schmamps/textteaser
e948ac6c0a4a4a44c7011206d7df236529d7813d
[ "MIT" ]
2
2020-02-18T09:13:13.000Z
2021-06-12T13:16:13.000Z
tests/params/string.py
schmamps/textteaser
e948ac6c0a4a4a44c7011206d7df236529d7813d
[ "MIT" ]
null
null
null
tests/params/string.py
schmamps/textteaser
e948ac6c0a4a4a44c7011206d7df236529d7813d
[ "MIT" ]
1
2019-05-05T14:43:53.000Z
2019-05-05T14:43:53.000Z
"""String module test parameters""" from .helpers import parametrize LIST_TEST_INT = list(range(1, 6)) LIST_TEST_STR = [str(x) for x in LIST_TEST_INT] STR_TEST_SPACES = ' '.join(LIST_TEST_STR) STR_TEST_COMMAS = ','.join(LIST_TEST_STR) STR_TEST_CSV = '1 2, 3\t4, \t5' ALPHA_SIMPLE = 'abcdefghijklmnopqrstuvwxyz' ALPHA_CO...
25.895425
77
0.481323
"""String module test parameters""" from .helpers import parametrize LIST_TEST_INT = list(range(1, 6)) LIST_TEST_STR = [str(x) for x in LIST_TEST_INT] STR_TEST_SPACES = ' '.join(LIST_TEST_STR) STR_TEST_COMMAS = ','.join(LIST_TEST_STR) STR_TEST_CSV = '1 2, 3\t4, \t5' ALPHA_SIMPLE = 'abcdefghijklmnopqrstuvwxyz' ALPHA_CO...
14
0
0
0
0
0
0
0
0
4ac872498c1ea9597fa4b1bed79e5231b9320409
351
py
Python
hello/__init__.py
0x4448/hello
afa8e3a8012f10296ecec48eaf06a5c62adc16be
[ "MIT" ]
null
null
null
hello/__init__.py
0x4448/hello
afa8e3a8012f10296ecec48eaf06a5c62adc16be
[ "MIT" ]
null
null
null
hello/__init__.py
0x4448/hello
afa8e3a8012f10296ecec48eaf06a5c62adc16be
[ "MIT" ]
null
null
null
app = create_app()
15.954545
58
0.726496
from flask import Flask, jsonify from . import hello, probes def internal_server_error(e): return jsonify(error=str(e)), 500 def create_app(): app = Flask(__name__) app.register_blueprint(hello.bp) app.register_blueprint(probes.bp) app.register_error_handler(500, internal_server_error) r...
0
0
0
0
0
220
0
17
91
99dea4a4659ee32ff3a51e49428b04d091e470a5
5,592
py
Python
tfmpl/tests/test_figure.py
cuijianaaa/tf-matplotlib
a197b77f71c32c56e54368d716d9603fd3903f1a
[ "MIT" ]
null
null
null
tfmpl/tests/test_figure.py
cuijianaaa/tf-matplotlib
a197b77f71c32c56e54368d716d9603fd3903f1a
[ "MIT" ]
null
null
null
tfmpl/tests/test_figure.py
cuijianaaa/tf-matplotlib
a197b77f71c32c56e54368d716d9603fd3903f1a
[ "MIT" ]
null
null
null
# Copyright 2018 Christoph Heindl. # # Licensed under MIT License # ============================================================
27.278049
96
0.550429
# Copyright 2018 Christoph Heindl. # # Licensed under MIT License # ============================================================ import tensorflow as tf import tfmpl import numpy as np def test_arguments(): debug = {} @tfmpl.figure_tensor def draw(a, b, c, d=None, e=None): debug['a'] = a ...
0
911
0
0
0
4,321
0
-10
240
034a9ee2bbf34d27204ec539df1594d5dad26712
5,455
py
Python
missatges/migrations/0001_squashed_0005_v1_0_0.py
ampafdv/ampadb
25c804a5cb21afcbe4e222a3b48cca27ff2d9e19
[ "MIT" ]
null
null
null
missatges/migrations/0001_squashed_0005_v1_0_0.py
ampafdv/ampadb
25c804a5cb21afcbe4e222a3b48cca27ff2d9e19
[ "MIT" ]
28
2016-10-21T16:04:56.000Z
2018-11-10T20:55:40.000Z
missatges/migrations/0001_squashed_0005_v1_0_0.py
ampafdv/ampadb
25c804a5cb21afcbe4e222a3b48cca27ff2d9e19
[ "MIT" ]
2
2016-10-22T19:24:45.000Z
2017-02-11T10:49:02.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-10-16 15:36 from __future__ import unicode_literals import django.db.models.deletion
43.991935
226
0.59835
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-10-16 15:36 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): replaces = [('missatges', ...
10
0
0
5,178
0
0
0
37
90
0e57cccdd90d6befcabb404f93b9ff48782330b4
7,770
py
Python
scripts/build-disk-image.py
mihaip/transparent-mac
0899205dba8fc3104f6a4f65a1714816720fe67b
[ "Apache-2.0" ]
null
null
null
scripts/build-disk-image.py
mihaip/transparent-mac
0899205dba8fc3104f6a4f65a1714816720fe67b
[ "Apache-2.0" ]
23
2022-03-31T22:41:20.000Z
2022-03-31T23:00:45.000Z
scripts/build-disk-image.py
mihaip/transparent-mac
0899205dba8fc3104f6a4f65a1714816720fe67b
[ "Apache-2.0" ]
null
null
null
#!/usr/local/bin/python3 import brotli import hashlib import json import machfs import os import sys LIBRARY_DIR = os.path.join(os.path.dirname(__file__), "..", "Library") CACHE_DIR = os.path.join("/tmp", "infinite-mac-cache") DEBUG = os.getenv("DEBUG", "0") == "1" input_path = sys.argv[1] output_dir = sys.argv[2] m...
36.139535
80
0.587645
#!/usr/local/bin/python3 import brotli import glob import hashlib import json import machfs import os import struct import sys import typing import urllib.request import zipfile LIBRARY_DIR = os.path.join(os.path.dirname(__file__), "..", "Library") CACHE_DIR = os.path.join("/tmp", "infinite-mac-cache") DEBUG = os.get...
0
0
0
0
0
5,336
0
-33
248
53b0d293f6e99d6f3ee2c3581fc057d87a669f7e
1,630
py
Python
manila/share/drivers/emc/plugins/vnx/constants.py
nidhimittalhada/access_group_repo
62f3365bc5fb728fcca692a9b3977690fabcd78f
[ "Apache-2.0" ]
1
2019-05-06T10:33:38.000Z
2019-05-06T10:33:38.000Z
manila/share/drivers/emc/plugins/vnx/constants.py
nidhimittalhada/access_group_repo
62f3365bc5fb728fcca692a9b3977690fabcd78f
[ "Apache-2.0" ]
5
2015-08-13T15:17:28.000Z
2016-08-02T02:55:01.000Z
manila/share/drivers/emc/plugins/vnx/constants.py
nidhimittalhada/access_group_repo
62f3365bc5fb728fcca692a9b3977690fabcd78f
[ "Apache-2.0" ]
3
2019-05-03T12:32:47.000Z
2021-01-30T20:26:19.000Z
# Copyright (c) 2014 EMC Corporation. # 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 requ...
30.754717
78
0.760736
# Copyright (c) 2014 EMC Corporation. # 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 requ...
0
0
0
0
0
0
0
0
0
c06e9e86d98ae8b8f03141dfa78ea8ea2114c0c0
60,214
py
Python
slvel/fitting_functions.py
Liz-Strong/slvel
018e0ab028adf87c71d694a88f61a5b84c87a2f8
[ "BSD-3-Clause" ]
2
2021-02-25T22:03:50.000Z
2022-01-12T17:04:11.000Z
slvel/fitting_functions.py
Liz-Strong/slvel
018e0ab028adf87c71d694a88f61a5b84c87a2f8
[ "BSD-3-Clause" ]
null
null
null
slvel/fitting_functions.py
Liz-Strong/slvel
018e0ab028adf87c71d694a88f61a5b84c87a2f8
[ "BSD-3-Clause" ]
1
2022-01-12T22:15:37.000Z
2022-01-12T22:15:37.000Z
import numpy as np import matplotlib.pyplot as plt from scipy import signal from scipy.optimize import curve_fit from scipy.optimize import minimize from scipy.signal import find_peaks from scipy.stats import pearsonr as pearsonr from scipy.special import erf as erf """Fitting functions for multi-Gaussian fitting. """...
44.602963
881
0.677949
import numpy as np import matplotlib.pyplot as plt from scipy import signal from scipy.optimize import curve_fit from scipy.optimize import minimize from scipy.signal import find_peaks from scipy.stats import pearsonr as pearsonr from scipy.special import erf as erf """Fitting functions for multi-Gaussian fitting. """...
0
0
0
0
0
0
0
0
0
f31b44507288c917bf150f4d3293c1fa4e34ff56
979
py
Python
GloVe_TFID_GoogleNews/org/wso2/tfid.py
wso2-incubator/twitter-sentiment-analysis
e9b2f55f6309d9652d01f84a37115e21fb1367f5
[ "Apache-2.0" ]
4
2016-11-27T15:20:07.000Z
2021-03-26T06:38:51.000Z
GloVe_TFID_GoogleNews/org/wso2/tfid.py
wso2-incubator/twitter-sentiment-analysis
e9b2f55f6309d9652d01f84a37115e21fb1367f5
[ "Apache-2.0" ]
null
null
null
GloVe_TFID_GoogleNews/org/wso2/tfid.py
wso2-incubator/twitter-sentiment-analysis
e9b2f55f6309d9652d01f84a37115e21fb1367f5
[ "Apache-2.0" ]
3
2017-11-20T05:29:20.000Z
2022-02-16T14:19:20.000Z
from sklearn.decomposition import PCA from sklearn.feature_extraction.text import TfidfVectorizer import csv outputFile = open('/home/anoukh/SentimentAnalysis/0.3uniqueTFIDFTweetVectorsSize200.csv', "wb") writer = csv.writer(outputFile, delimiter=',', quotechar='"', quoting=csv.QUOTE_MINIMAL, escapechar=',') with open(...
42.565217
104
0.723187
from sklearn.decomposition import PCA from sklearn.feature_extraction.text import TfidfVectorizer import csv outputFile = open('/home/anoukh/SentimentAnalysis/0.3uniqueTFIDFTweetVectorsSize200.csv', "wb") writer = csv.writer(outputFile, delimiter=',', quotechar='"', quoting=csv.QUOTE_MINIMAL, escapechar=',') with open(...
0
0
0
0
0
0
0
0
0
faf55276bdeeba4a2ce7543e5a7379ed72944c65
8,108
py
Python
samples/vmc/sddc/deploy_ovf_template.py
restapicoding/VMware-SDK
edc387a76227be1ad7c03e5eeaf603351574f70c
[ "MIT" ]
1
2018-08-10T20:31:20.000Z
2018-08-10T20:31:20.000Z
samples/vmc/sddc/deploy_ovf_template.py
restapicoding/VMware-SDK
edc387a76227be1ad7c03e5eeaf603351574f70c
[ "MIT" ]
1
2017-08-17T12:46:46.000Z
2017-08-17T12:46:46.000Z
samples/vmc/sddc/deploy_ovf_template.py
restapicoding/VMware-SDK
edc387a76227be1ad7c03e5eeaf603351574f70c
[ "MIT" ]
1
2018-07-03T23:36:33.000Z
2018-07-03T23:36:33.000Z
#!/usr/bin/env python """ * ******************************************************* * Copyright VMware, Inc. 2018. All Rights Reserved. * SPDX-License-Identifier: MIT * ******************************************************* * * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT * WARRANTIES OR CONDITIONS OF ...
41.367347
94
0.607795
#!/usr/bin/env python """ * ******************************************************* * Copyright VMware, Inc. 2018. All Rights Reserved. * SPDX-License-Identifier: MIT * ******************************************************* * * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT * WARRANTIES OR CONDITIONS OF ...
0
0
0
6,826
0
112
0
277
225
6bd1ae2db40b5dd029887c47b7e52b48d28e22de
2,612
py
Python
src/datapane/client/api/__init__.py
admariner/datapane
c440eaf07bd1c1f2de3ff952e0fd8c78d636aa8f
[ "Apache-2.0" ]
null
null
null
src/datapane/client/api/__init__.py
admariner/datapane
c440eaf07bd1c1f2de3ff952e0fd8c78d636aa8f
[ "Apache-2.0" ]
7
2021-11-19T21:40:47.000Z
2021-12-24T16:10:06.000Z
src/datapane/client/api/__init__.py
admariner/datapane
c440eaf07bd1c1f2de3ff952e0fd8c78d636aa8f
[ "Apache-2.0" ]
null
null
null
"""# API docs for Datapane Client These docs describe the Python API for building Datapane documents, along with additional information on the Datapane Teams API. Usage docs for Datapane can be found at https://docs.datapane.com These objects are all available under the `datapane` module, via `import datapane as dp`...
32.246914
144
0.72856
"""# API docs for Datapane Client These docs describe the Python API for building Datapane documents, along with additional information on the Datapane Teams API. Usage docs for Datapane can be found at https://docs.datapane.com These objects are all available under the `datapane` module, via `import datapane as dp`...
0
0
0
0
0
0
0
506
244
c162162c37ecae91086f125ebcfe055202b2d087
17,764
py
Python
src/tools/antool/converter.py
krzycz/pmemfile
a1b9897a90cd223e24c10c4a7558235986f0fad3
[ "BSD-3-Clause" ]
82
2017-06-30T13:54:44.000Z
2022-03-13T02:51:28.000Z
src/tools/antool/converter.py
krzycz/pmemfile
a1b9897a90cd223e24c10c4a7558235986f0fad3
[ "BSD-3-Clause" ]
40
2017-05-12T13:27:14.000Z
2017-11-16T19:47:40.000Z
src/tools/antool/converter.py
krzycz/pmemfile
a1b9897a90cd223e24c10c4a7558235986f0fad3
[ "BSD-3-Clause" ]
15
2017-05-12T12:32:01.000Z
2022-02-28T14:09:11.000Z
#!/usr/bin/python3 # # Copyright 2017, Intel Corporation # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions...
43.970297
120
0.51655
#!/usr/bin/python3 # # Copyright 2017, Intel Corporation # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions...
0
1,515
0
13,942
0
0
0
3
90
dae5b47117a440a5614a8fa262deb3eedab13cd2
3,395
py
Python
python-playground/images-to-tfrecords-shuffled.py
ericdoerheit/playgrounds
3a2a238496ef21257174097dba6de848aa3e737b
[ "MIT" ]
null
null
null
python-playground/images-to-tfrecords-shuffled.py
ericdoerheit/playgrounds
3a2a238496ef21257174097dba6de848aa3e737b
[ "MIT" ]
null
null
null
python-playground/images-to-tfrecords-shuffled.py
ericdoerheit/playgrounds
3a2a238496ef21257174097dba6de848aa3e737b
[ "MIT" ]
null
null
null
""" Create tensorflow TFRecord files from images from the following directory structure: <input-directory> <class1> <image1> <image2> ... <class2> ... """ import sys try: from itertools import imap except ImportError: # For Python 3 imap=map if __name__ == "__main...
29.267241
119
0.62975
""" Create tensorflow TFRecord files from images from the following directory structure: <input-directory> <class1> <image1> <image2> ... <class2> ... """ import getopt import os import sys import tensorflow as tf import numpy as np import png from tqdm import tqdm try: fr...
0
0
0
0
0
2,876
0
-32
203
ced3e8ff722a9295036c8a92de0aaf9b10ef51b8
5,336
py
Python
v3/gpu/mpi/common.py
5enxia/parallel-krylov
2d75e220b9b0cc6df924111cfb57f917f2100925
[ "MIT" ]
1
2022-02-25T14:17:55.000Z
2022-02-25T14:17:55.000Z
v3/gpu/mpi/common.py
5enxia/parallel-krylov
2d75e220b9b0cc6df924111cfb57f917f2100925
[ "MIT" ]
null
null
null
v3/gpu/mpi/common.py
5enxia/parallel-krylov
2d75e220b9b0cc6df924111cfb57f917f2100925
[ "MIT" ]
1
2022-02-20T02:57:10.000Z
2022-02-20T02:57:10.000Z
# import socket # # #
31.023256
171
0.579273
import os import numpy as np import scipy import cupy as cp from cupy.cuda import Device from cupy.cuda.runtime import getDeviceCount from mpi4py import MPI # import socket from ..common import _start, _finish # 計測開始 def start(method_name='', k=None): _start(method_name, k) return MPI.Wtime() # 計測終了 def f...
135
3,678
0
609
0
687
0
18
266
bdbb59d5544b3fd4db7250030fd714153b0057ff
320
py
Python
BasicPythonPrograms/PythonInheritance8.py
Pushkar745/PythonProgramming
ea60e97b70d46fb63ef203913c8b3f9570232dd3
[ "Apache-2.0" ]
null
null
null
BasicPythonPrograms/PythonInheritance8.py
Pushkar745/PythonProgramming
ea60e97b70d46fb63ef203913c8b3f9570232dd3
[ "Apache-2.0" ]
null
null
null
BasicPythonPrograms/PythonInheritance8.py
Pushkar745/PythonProgramming
ea60e97b70d46fb63ef203913c8b3f9570232dd3
[ "Apache-2.0" ]
null
null
null
#Python Program to demonstrate single inheritance #Base class #Derived class #Driver's code object=Child() object.fun1() object.fun2()
24.615385
52
0.6875
#Python Program to demonstrate single inheritance #Base class class Parent: def fun1(self): print("This is function is in parent class") #Derived class class Child(Parent): def fun2(self): print("This function is in child class") #Driver's code object=Child() object.fun1() object.fun2()
0
0
0
133
0
0
0
0
44
dd95fe45869a58b90f4f796a86e3443cc5bc6a93
8,503
py
Python
plugins/modules/oci_data_safe_grant_facts.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
108
2020-05-19T20:46:10.000Z
2022-03-25T14:10:01.000Z
plugins/modules/oci_data_safe_grant_facts.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
90
2020-06-14T22:07:11.000Z
2022-03-07T05:40:29.000Z
plugins/modules/oci_data_safe_grant_facts.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
42
2020-08-30T23:09:12.000Z
2022-03-25T16:58:01.000Z
#!/usr/bin/python # Copyright (c) 2020, 2021 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
31.966165
130
0.629072
#!/usr/bin/python # Copyright (c) 2020, 2021 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
0
0
0
1,106
0
1,459
0
148
140
e3e6a22817ee365d69754e9fc90b75a1cbd42407
817
py
Python
rl_parsers/dpomdp/__init__.py
DavidSlayback/rl-parsers
df33cd1814aaeac05b057330ccf742b3310f36df
[ "MIT" ]
null
null
null
rl_parsers/dpomdp/__init__.py
DavidSlayback/rl-parsers
df33cd1814aaeac05b057330ccf742b3310f36df
[ "MIT" ]
null
null
null
rl_parsers/dpomdp/__init__.py
DavidSlayback/rl-parsers
df33cd1814aaeac05b057330ccf742b3310f36df
[ "MIT" ]
2
2020-09-27T15:02:32.000Z
2021-08-24T22:43:21.000Z
__all__ = ['DPOMDP_Parser', 'parse'] # legacy
27.233333
77
0.656059
from ply import lex, yacc from . import tokrules from .parser import DPOMDP, Parser __all__ = ['DPOMDP_Parser', 'parse'] class DPOMDP_Parser: def __init__(self, *, debug=False, optimize=True): self.debug = debug self.optimize = optimize self.lexer = lex.lex(module=tokrules, debug=debug, ...
0
0
0
539
0
98
0
18
112
ec524e99e9c8a7435f5b962ac29de88cde7f4591
5,412
py
Python
cgra/CGRAFL.py
pnnl/open-cgra
c19bc3a1baca3da659dc8f3cbfe32dd6003a2c65
[ "BSD-3-Clause" ]
13
2020-09-01T16:55:42.000Z
2021-09-01T16:39:44.000Z
cgra/CGRAFL.py
pnnl/open-cgra
c19bc3a1baca3da659dc8f3cbfe32dd6003a2c65
[ "BSD-3-Clause" ]
5
2020-08-19T05:40:01.000Z
2021-07-15T22:05:03.000Z
cgra/CGRAFL.py
pnnl/open-cgra
c19bc3a1baca3da659dc8f3cbfe32dd6003a2c65
[ "BSD-3-Clause" ]
4
2020-09-01T16:44:02.000Z
2021-07-11T04:40:05.000Z
""" ========================================================================= CGRAFL.py ========================================================================= CGRAFL -- running DFG nodes one by one. Author : Cheng Tan Date : Feb 13, 2020 """ #---------------------------------------------------------------------...
41
122
0.576681
""" ========================================================================= CGRAFL.py ========================================================================= CGRAFL -- running DFG nodes one by one. Author : Cheng Tan Date : Feb 13, 2020 """ from pymtl3 import * from ..lib.opt_type import * from ..lib.m...
0
0
0
0
0
4,839
0
21
89
d2eb2ceac648c31116fdafa89e303bfa757ec167
6,050
py
Python
calliope_app/client/views/engage.py
NREL/engage
c25bacc1e98f84671ba0c0e53fc98bace090a4d8
[ "BSD-3-Clause" ]
3
2021-01-25T18:13:00.000Z
2021-04-30T12:17:42.000Z
calliope_app/client/views/engage.py
NREL/engage
c25bacc1e98f84671ba0c0e53fc98bace090a4d8
[ "BSD-3-Clause" ]
8
2020-12-11T22:28:17.000Z
2022-03-05T02:08:27.000Z
calliope_app/client/views/engage.py
NREL/engage
c25bacc1e98f84671ba0c0e53fc98bace090a4d8
[ "BSD-3-Clause" ]
1
2021-09-15T22:15:12.000Z
2021-09-15T22:15:12.000Z
from django.shortcuts import render from django.contrib.auth import authenticate, login from django.contrib.auth.models import User from django.http import HttpResponseRedirect from django.urls import reverse from api.models.configuration import Model def user_login(request): """ View the "Login" page ...
29.368932
77
0.603471
import os from pytz import common_timezones from django.conf import settings from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from django.contrib.auth.forms import AdminPasswordChangeForm from django.contrib.auth.forms import PasswordChangeForm from django.contrib...
0
3,130
0
0
0
0
0
203
270
867d163493e614d03a717a39fb0f6d0418a75d16
12,647
py
Python
tests/datadriven/test_genotype_phenotype.py
dkucsc/mavas
db3f7bd35944b7d0f510c62760eaa071bf53d7d8
[ "Apache-2.0" ]
1
2016-12-14T21:05:47.000Z
2016-12-14T21:05:47.000Z
tests/datadriven/test_genotype_phenotype.py
dkucsc/mavas
db3f7bd35944b7d0f510c62760eaa071bf53d7d8
[ "Apache-2.0" ]
null
null
null
tests/datadriven/test_genotype_phenotype.py
dkucsc/mavas
db3f7bd35944b7d0f510c62760eaa071bf53d7d8
[ "Apache-2.0" ]
null
null
null
""" Data-driven tests for g2p. """ from __future__ import division from __future__ import print_function from __future__ import unicode_literals import ga4gh.datamodel.genotype_phenotype as genotype_phenotype import ga4gh.datamodel.datasets as datasets import ga4gh.protocol as protocol import tests.datadriven as datad...
46.496324
79
0.591761
""" Data-driven tests for g2p. """ from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import rdflib import ga4gh.datamodel.genotype_phenotype as genotype_phenotype import ga4gh.datamodel.datasets as datasets import ga4gh.protocol as protocol import ...
0
0
0
12,037
183
0
0
-20
91
1d74781886368ff345a19968c4cc9756cfcc6038
341
pyde
Python
processing/Mod.12/sketch_12_1_l88/sketch_12_1_l88.pyde
nanam0rgana/2019-fall-polytech-cs
1a31acb3cf22edc930318dec17324b05dd7788d5
[ "MIT" ]
null
null
null
processing/Mod.12/sketch_12_1_l88/sketch_12_1_l88.pyde
nanam0rgana/2019-fall-polytech-cs
1a31acb3cf22edc930318dec17324b05dd7788d5
[ "MIT" ]
null
null
null
processing/Mod.12/sketch_12_1_l88/sketch_12_1_l88.pyde
nanam0rgana/2019-fall-polytech-cs
1a31acb3cf22edc930318dec17324b05dd7788d5
[ "MIT" ]
null
null
null
add_library('video')
15.5
40
0.56305
add_library('video') def setup(): size(640, 480) smooth() background(0) noStroke() video = Capture(this, width, height) video.start() global video def draw(): global video if video.available(): video.read() pushMatrix() scale(-1, 1) image(video, -width...
0
0
0
0
0
269
0
0
50
b0642b784353a4b4d014f9ce73d02931abf6f082
7,018
py
Python
model.py
ashikagah/CarND_behavioral_cloning
dc2bd8396fe808613eec1e7be6f43af1739d7451
[ "MIT" ]
null
null
null
model.py
ashikagah/CarND_behavioral_cloning
dc2bd8396fe808613eec1e7be6f43af1739d7451
[ "MIT" ]
null
null
null
model.py
ashikagah/CarND_behavioral_cloning
dc2bd8396fe808613eec1e7be6f43af1739d7451
[ "MIT" ]
null
null
null
# Added recovery lap data - counter-steering angle 1.0 #import os import csv #import cv2 import numpy as np import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split from keras.models import Sequential from keras.layers import Dense, Dropout, Flatten, ELU from keras.layers import Conv2D, Cro...
37.329787
110
0.698632
# Added recovery lap data - counter-steering angle 1.0 #import os import csv #import cv2 import pandas as pd import numpy as np import matplotlib.pyplot as plt import matplotlib.image as mpimg from sklearn.model_selection import train_test_split from sklearn.utils import shuffle from keras.models import Sequential fro...
0
0
0
0
1,007
163
0
131
176
b797b74c40d1212ca834de3021f0067716ed947e
5,361
py
Python
MOOSE_web/view/sentiment.py
XYChang-cxy/MOOSE
6cca5a1ed34451e6c525ca480b59ce504bba3f49
[ "Apache-2.0" ]
1
2021-09-02T09:32:41.000Z
2021-09-02T09:32:41.000Z
MOOSE_web/view/sentiment.py
XYChang-cxy/MOOSE
6cca5a1ed34451e6c525ca480b59ce504bba3f49
[ "Apache-2.0" ]
null
null
null
MOOSE_web/view/sentiment.py
XYChang-cxy/MOOSE
6cca5a1ed34451e6c525ca480b59ce504bba3f49
[ "Apache-2.0" ]
3
2021-08-30T08:34:51.000Z
2021-09-30T13:14:31.000Z
from influxdb import InfluxDBClient client = InfluxDBClient('106.52.93.154', 8086, 'moose', 'moose', 'moose')
48.297297
159
0.709756
from django.shortcuts import render,redirect from django.http import HttpResponse from model.community import * from model.oss import * from view.common import * from django.core.paginator import Paginator,EmptyPage,PageNotAnInteger from django.db.models import Sum, Count from operator import itemgetter from django.htt...
30
0
0
0
0
4,703
0
139
398
1f9624bd11aeebbc9e2f7ff78f60288187a5fd2b
4,501
py
Python
vu_meter.py
lemariva/wipy2.0-MIC
ca43d19398e46ed45b8bdad7be529e774dae41cb
[ "Apache-2.0" ]
1
2017-12-31T16:21:17.000Z
2017-12-31T16:21:17.000Z
vu_meter.py
lemariva/wipy2.0-MIC
ca43d19398e46ed45b8bdad7be529e774dae41cb
[ "Apache-2.0" ]
null
null
null
vu_meter.py
lemariva/wipy2.0-MIC
ca43d19398e46ed45b8bdad7be529e774dae41cb
[ "Apache-2.0" ]
null
null
null
#Copyright [2017] [Mauro Riva <lemariva@mail.com> <lemariva.com>] #Licensed under the Apache License, Version 2.0 (the "License"); #you may not use this file except in compliance with the License. #You may obtain a copy of the License at #http://www.apache.org/licenses/LICENSE-2.0 #Unless required by applicable law ...
35.164063
163
0.574761
#Copyright [2017] [Mauro Riva <lemariva@mail.com> <lemariva.com>] #Licensed under the Apache License, Version 2.0 (the "License"); #you may not use this file except in compliance with the License. #You may obtain a copy of the License at #http://www.apache.org/licenses/LICENSE-2.0 #Unless required by applicable law ...
0
0
0
3,668
0
0
0
-8
113