hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
9edb1c631d127a027c9c7c40126a7814554ea48a
104
py
Python
projects/crawler_for_prodect_category/category_modules.py
ice-melt/python-lib
345e34fff7386d91acbb03a01fd4127c5dfed037
[ "MIT" ]
null
null
null
projects/crawler_for_prodect_category/category_modules.py
ice-melt/python-lib
345e34fff7386d91acbb03a01fd4127c5dfed037
[ "MIT" ]
null
null
null
projects/crawler_for_prodect_category/category_modules.py
ice-melt/python-lib
345e34fff7386d91acbb03a01fd4127c5dfed037
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from assets.log import log from tkinter import * Logger = log('crawler.log').logger
17.333333
34
0.740385
16
104
4.8125
0.625
0
0
0
0
0
0
0
0
0
0
0.010989
0.125
104
5
35
20.8
0.835165
0.163462
0
0
0
0
0.127907
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
9ee617f558e74224c428bd23c2c879677c61ea5c
166
py
Python
splinter/jianshu/init_env.py
zhaopiandehuiyiforsang/python_test
7a6ef77afd3b436f798ca68c77b9ac8669e00094
[ "MIT" ]
null
null
null
splinter/jianshu/init_env.py
zhaopiandehuiyiforsang/python_test
7a6ef77afd3b436f798ca68c77b9ac8669e00094
[ "MIT" ]
null
null
null
splinter/jianshu/init_env.py
zhaopiandehuiyiforsang/python_test
7a6ef77afd3b436f798ca68c77b9ac8669e00094
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import sys import os from os.path import abspath, dirname, join BASE_DIR = dirname(dirname(abspath(__file__))) sys.path.insert(0, BASE_DIR)
16.6
46
0.722892
26
166
4.384615
0.615385
0.122807
0
0
0
0
0
0
0
0
0
0.013889
0.13253
166
9
47
18.444444
0.777778
0.120482
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
731248864d526f3ffca2a6f0b9c65441319b10d1
73
py
Python
components/micro-ecc/micro-ecc/test/emk_rules.py
ebertn/esp-idf-nes
9dc7e9a258fd378d36408a1348253b373974b431
[ "Apache-2.0" ]
2
2020-06-23T08:05:58.000Z
2020-06-24T01:25:51.000Z
components/micro-ecc/micro-ecc/test/emk_rules.py
ebertn/esp-idf-nes
9dc7e9a258fd378d36408a1348253b373974b431
[ "Apache-2.0" ]
2
2022-03-29T05:16:50.000Z
2022-03-29T05:16:50.000Z
vendors/nordic/nRF5_SDK_15.2.0/external/micro-ecc/micro-ecc/test/emk_rules.py
ictk-solution-dev/amazon-freertos
cc76512292ddfb70bba3030dbcb740ef3c6ead8b
[ "MIT" ]
null
null
null
c, link = emk.module("c", "link") link.depdirs += [ "$:proj:$" ]
14.6
34
0.465753
9
73
3.777778
0.666667
0.294118
0
0
0
0
0
0
0
0
0
0
0.246575
73
4
35
18.25
0.618182
0
0
0
0
0
0.188406
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
73154482c78dbc6a78a2184d87d9e744bdb38411
74
py
Python
generator/message.py
herbeeg/next-music-project
62537641b341e6d5d129803a6970b68bc55c11f1
[ "MIT" ]
null
null
null
generator/message.py
herbeeg/next-music-project
62537641b341e6d5d129803a6970b68bc55c11f1
[ "MIT" ]
null
null
null
generator/message.py
herbeeg/next-music-project
62537641b341e6d5d129803a6970b68bc55c11f1
[ "MIT" ]
null
null
null
"""Handle generation of random quotes and motivational message outputs."""
74
74
0.797297
9
74
6.555556
1
0
0
0
0
0
0
0
0
0
0
0
0.108108
74
1
74
74
0.893939
0.918919
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
731b495cdab3ffd73f060b358e174a9bbf9937a3
265
py
Python
Udemy_Python/myClass1.py
harish-kumar-97/Python-Exercises
c3966a75283dec335b83fea53160cf09ba93f9a6
[ "MIT" ]
null
null
null
Udemy_Python/myClass1.py
harish-kumar-97/Python-Exercises
c3966a75283dec335b83fea53160cf09ba93f9a6
[ "MIT" ]
null
null
null
Udemy_Python/myClass1.py
harish-kumar-97/Python-Exercises
c3966a75283dec335b83fea53160cf09ba93f9a6
[ "MIT" ]
null
null
null
class MyNewRouter(MyRouter): def __init__(self, routername, model, serialno, ios, portsno): MyRouter.__init__(self, routername, model, serialno, ios) self.portsno = portsno def print_new_router(self, string): print(string, self.model)
37.857143
67
0.698113
31
265
5.645161
0.483871
0.091429
0.205714
0.262857
0.388571
0.388571
0
0
0
0
0
0
0.196226
265
7
68
37.857143
0.821596
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.333333
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
7330682cf6c0b901f212b59125a115f5da376e2e
182
py
Python
dictdb/__init__.py
MarcosVs98/DictDB
6b48b2809a5554606bae6f08af41db566a42fa44
[ "MIT" ]
null
null
null
dictdb/__init__.py
MarcosVs98/DictDB
6b48b2809a5554606bae6f08af41db566a42fa44
[ "MIT" ]
null
null
null
dictdb/__init__.py
MarcosVs98/DictDB
6b48b2809a5554606bae6f08af41db566a42fa44
[ "MIT" ]
1
2021-09-03T02:14:15.000Z
2021-09-03T02:14:15.000Z
from dictdb.GenericDictDB import GenericDictDB from dictdb.SqliteThreadWork import SqliteThreadWork from dictdb.StorageDict import SharedStorage, ThreadedSharedStorage # end-of-file
36.4
67
0.879121
19
182
8.421053
0.578947
0.1875
0
0
0
0
0
0
0
0
0
0
0.082418
182
5
68
36.4
0.958084
0.06044
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
7df8bca6a48dc214d836972a250cf227008dc066
415
py
Python
py2cytoscape/data/node_view.py
moritzschaefer/py2cytoscape
3411231d346eae8f8d87456d16c5ff5a6f769d41
[ "MIT" ]
1
2022-01-26T15:51:30.000Z
2022-01-26T15:51:30.000Z
py2cytoscape/data/node_view.py
moritzschaefer/py2cytoscape
3411231d346eae8f8d87456d16c5ff5a6f769d41
[ "MIT" ]
7
2017-08-25T12:36:20.000Z
2018-04-23T04:08:38.000Z
approaches/networkx-graph/visual/py2cytoscape/data/node_view.py
athityakumar/btp
a1bdad0ed6162faa482673347707c09228d6cd9c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from py2cytoscape.data.base_view import BaseView import requests import json from . import HEADERS class NodeView(BaseView): # Utility Methods to access node position def get_x(self): return self.get_value('NODE_X_LOCATION') def get_y(self): return self.get_value('NODE_Y_LOCATION') def set_x(self, x): self.set_value('NODE_X_LOCATION', x)
16.6
48
0.681928
60
415
4.5
0.5
0.055556
0.103704
0.125926
0.192593
0.192593
0
0
0
0
0
0.006154
0.216867
415
24
49
17.291667
0.824615
0.146988
0
0
0
0
0.129683
0
0
0
0
0
0
1
0.272727
false
0
0.363636
0.181818
0.909091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
4
b416694c5eaeb183428ef58f4ee17852724039e0
124
py
Python
django_blog/utils.py
nabeelmehmood/django-blog-boilerplate
cd5e6c8be30795c773f6709ac7477efe61cb5fc8
[ "MIT" ]
null
null
null
django_blog/utils.py
nabeelmehmood/django-blog-boilerplate
cd5e6c8be30795c773f6709ac7477efe61cb5fc8
[ "MIT" ]
9
2021-03-19T00:32:20.000Z
2022-03-12T00:18:11.000Z
django_blog/utils.py
nabeelmehmood/django-blog-boilerplate
cd5e6c8be30795c773f6709ac7477efe61cb5fc8
[ "MIT" ]
null
null
null
import uuid def get_filename(filename, request): ext = filename.split('.')[-1] return str(uuid.uuid4())+'.'+ext
24.8
37
0.629032
16
124
4.8125
0.75
0
0
0
0
0
0
0
0
0
0
0.019608
0.177419
124
5
38
24.8
0.735294
0
0
0
0
0
0.016529
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
b4193f91d12d36effc2563cdba3a06bd25ec8635
15,479
py
Python
Documents/Router/CVE-2017-7494/impacket/testcases/SMB_RPC/test_smb.py
edinjapan/NSABlocklist
2c624d216d314cb24e8eb91bed96ff30c8f9d632
[ "ISC", "MIT" ]
201
2017-04-06T20:19:18.000Z
2022-03-25T06:39:53.000Z
Documents/Router/CVE-2017-7494/impacket/testcases/SMB_RPC/test_smb.py
edinjapan/NSABlocklist
2c624d216d314cb24e8eb91bed96ff30c8f9d632
[ "ISC", "MIT" ]
5
2017-04-18T20:46:46.000Z
2017-12-30T18:21:10.000Z
Documents/Router/CVE-2017-7494/impacket/testcases/SMB_RPC/test_smb.py
edinjapan/NSABlocklist
2c624d216d314cb24e8eb91bed96ff30c8f9d632
[ "ISC", "MIT" ]
46
2017-04-07T18:59:07.000Z
2022-03-07T08:55:40.000Z
import unittest import os import socket import select import errno import ConfigParser from binascii import unhexlify from impacket.smbconnection import SMBConnection, smb from impacket.smb3structs import * from impacket import nt_errors # IMPORTANT NOTE: # For some reason, under Windows 8, you cannot switch between # dialects 002, 2_1 and 3_0 (it will throw STATUS_USER_SESSION_DELETED), # but you can with SMB1. # So, you can't run all test cases against the same machine. # Usually running all the tests against a Windows 7 except SMB3 # would do the trick. # ToDo: # [ ] Add the rest of SMBConnection public methods class SMBTests(unittest.TestCase): def create_connection(self): if self.dialects == smb.SMB_DIALECT: # Only for SMB1 let's do manualNego s = SMBConnection('*SMBSERVER', self.machine, preferredDialect = self.dialects, manualNegotiate=True) s.negotiateSession(self.dialects, flags2=self.flags2) else: s = SMBConnection('*SMBSERVER', self.machine, preferredDialect = self.dialects) return s def test_reconnect(self): smb = self.create_connection() smb.login(self.username, self.password, self.domain) smb.listPath(self.share, '*') smb.logoff() smb.reconnect() smb.listPath(self.share, '*') smb.logoff() def test_reconnectKerberosHashes(self): lmhash, nthash = self.hashes.split(':') smb = self.create_connection() smb.kerberosLogin(self.username, '', self.domain, lmhash, nthash, '') credentials = smb.getCredentials() self.assertTrue( credentials == (self.username, '', self.domain, unhexlify(lmhash), unhexlify(nthash), '', None, None) ) UNC = '\\\\%s\\%s' % (self.machine, self.share) tid = smb.connectTree(UNC) smb.logoff() smb.reconnect() credentials = smb.getCredentials() self.assertTrue( credentials == (self.username, '', self.domain, unhexlify(lmhash), unhexlify(nthash), '', None, None)) UNC = '\\\\%s\\%s' % (self.machine, self.share) tid = smb.connectTree(UNC) smb.logoff() def test_connectTree(self): smb = self.create_connection() smb.login(self.username, self.password, self.domain) tid = smb.connectTree(self.share) UNC = '\\\\%s\\%s' % (self.machine, self.share) tid = smb.connectTree(UNC) def test_connection(self): smb = self.create_connection() smb.login(self.username, self.password, self.domain) credentials = smb.getCredentials() self.assertTrue( credentials == (self.username, self.password, self.domain, '','','', None, None)) smb.logoff() del(smb) def test_close_connection(self): smb = self.create_connection() smb.login(self.username, self.password, self.domain) smb_connection_socket = smb.getSMBServer().get_socket() self.assertTrue(self.__is_socket_opened(smb_connection_socket) == True) smb.close() self.assertTrue(self.__is_socket_opened(smb_connection_socket) == False) del(smb) def test_manualNego(self): smb = self.create_connection() smb.negotiateSession(self.dialects) smb.login(self.username, self.password, self.domain) credentials = smb.getCredentials() self.assertTrue( credentials == (self.username, self.password, self.domain, '','','', None, None)) smb.logoff() del(smb) def test_loginHashes(self): lmhash, nthash = self.hashes.split(':') smb = self.create_connection() smb.login(self.username, '', self.domain, lmhash, nthash) credentials = smb.getCredentials() self.assertTrue( credentials == (self.username, '', self.domain, unhexlify(lmhash), unhexlify(nthash), '', None, None) ) smb.logoff() def test_loginKerberosHashes(self): lmhash, nthash = self.hashes.split(':') smb = self.create_connection() smb.kerberosLogin(self.username, '', self.domain, lmhash, nthash, '') credentials = smb.getCredentials() self.assertTrue( credentials == (self.username, '', self.domain, unhexlify(lmhash), unhexlify(nthash), '', None, None) ) UNC = '\\\\%s\\%s' % (self.machine, self.share) tid = smb.connectTree(UNC) smb.logoff() def test_loginKerberos(self): smb = self.create_connection() smb.kerberosLogin(self.username, self.password, self.domain, '', '', '') credentials = smb.getCredentials() self.assertTrue( credentials == (self.username, self.password, self.domain, '','','', None, None) ) UNC = '\\\\%s\\%s' % (self.machine, self.share) tid = smb.connectTree(UNC) smb.logoff() def test_loginKerberosAES(self): smb = self.create_connection() smb.kerberosLogin(self.username, '', self.domain, '', '', self.aesKey) credentials = smb.getCredentials() self.assertTrue( credentials == (self.username, '', self.domain, '','',self.aesKey, None, None) ) UNC = '\\\\%s\\%s' % (self.machine, self.share) tid = smb.connectTree(UNC) smb.logoff() def test_listPath(self): smb = self.create_connection() smb.login(self.username, self.password, self.domain) smb.listPath(self.share, '*') smb.logoff() def test_createFile(self): smb = self.create_connection() smb.login(self.username, self.password, self.domain) tid = smb.connectTree(self.share) fid = smb.createFile(tid, self.file) smb.closeFile(tid,fid) smb.rename(self.share, self.file, self.file + '.bak') smb.deleteFile(self.share, self.file + '.bak') smb.disconnectTree(tid) smb.logoff() def test_readwriteFile(self): smb = self.create_connection() smb.login(self.username, self.password, self.domain) tid = smb.connectTree(self.share) fid = smb.createFile(tid, self.file) smb.writeFile(tid, fid, "A"*65535) finished = False data = '' offset = 0 remaining = 65535 while remaining>0: data += smb.readFile(tid,fid, offset, remaining) remaining = 65535 - len(data) self.assertTrue(len(data) == 65535) self.assertTrue(data == "A"*65535) smb.closeFile(tid,fid) fid = smb.openFile(tid, self.file) smb.closeFile(tid, fid) smb.deleteFile(self.share, self.file) smb.disconnectTree(tid) smb.logoff() def test_createdeleteDirectory(self): smb = self.create_connection() smb.login(self.username, self.password, self.domain) smb.createDirectory(self.share, self.directory) smb.deleteDirectory(self.share, self.directory) smb.createDirectory(self.share, self.directory) nested_dir = "%s\\%s" %(self.directory, self.directory) smb.createDirectory(self.share, nested_dir) try: smb.deleteDirectory(self.share, self.directory) except Exception as e: if e.error == nt_errors.STATUS_DIRECTORY_NOT_EMPTY: smb.deleteDirectory(self.share, nested_dir) smb.deleteDirectory(self.share, self.directory) smb.logoff() def test_getData(self): smb = self.create_connection() smb.login(self.username, self.password, self.domain) smb.getDialect() smb.getServerName() smb.getRemoteHost() smb.getServerDomain() smb.getServerOS() smb.doesSupportNTLMv2() smb.isLoginRequired() smb.logoff() def test_getServerName(self): smb = self.create_connection() smb.login(self.username, self.password, self.domain) serverName = smb.getServerName() self.assertTrue( serverName.upper() == self.serverName.upper() ) smb.logoff() def test_getServerDNSDomainName(self): smb = self.create_connection() smb.login(self.username, self.password, self.domain) serverDomain = smb.getServerDNSDomainName() self.assertTrue( serverDomain.upper() == self.domain.upper()) smb.logoff() def test_getServerDomain(self): smb = self.create_connection() smb.login(self.username, self.password, self.domain) serverDomain = smb.getServerDomain() self.assertTrue( serverDomain.upper() == self.domain.upper().split('.')[0]) smb.logoff() def test_getRemoteHost(self): smb = self.create_connection() smb.login(self.username, self.password, self.domain) remoteHost = smb.getRemoteHost() self.assertTrue( remoteHost == self.machine) smb.logoff() def test_getDialect(self): smb = self.create_connection() smb.login(self.username, self.password, self.domain) dialect = smb.getDialect() self.assertTrue( dialect == self.dialects) smb.logoff() def test_uploadDownload(self): smb = self.create_connection() smb.login(self.username, self.password, self.domain) f = open(self.upload) smb.putFile(self.share, self.file, f.read) f.close() f = open(self.upload + '2', 'w+') smb.getFile(self.share, self.file, f.write) f.close() os.unlink(self.upload + '2') smb.deleteFile(self.share, self.file) smb.logoff() def test_listShares(self): smb = self.create_connection() smb.login(self.username, self.password, self.domain) smb.listShares() smb.logoff() def test_getSessionKey(self): smb = self.create_connection() smb.login(self.username, self.password, self.domain) smb.getSessionKey() smb.logoff def __is_socket_opened(self, s): # We assume that if socket is selectable, it's open; and if it were not, it's closed. # Note: this method is accurate as long as the file descriptor used for the socket is not re-used is_socket_opened = True try: select.select([s], [], [], 0) except socket.error, e: if e[0] == errno.EBADF: is_socket_opened = False return is_socket_opened class SMB1Tests(SMBTests): def setUp(self): SMBTests.setUp(self) # Put specific configuration for target machine with SMB1 configFile = ConfigParser.ConfigParser() configFile.read('dcetests.cfg') self.username = configFile.get('SMBTransport', 'username') self.domain = configFile.get('SMBTransport', 'domain') self.serverName = configFile.get('SMBTransport', 'servername') self.password = configFile.get('SMBTransport', 'password') self.machine = configFile.get('SMBTransport', 'machine') self.hashes = configFile.get('SMBTransport', 'hashes') self.aesKey = configFile.get('SMBTransport', 'aesKey128') self.share = 'C$' self.file = '/TEST' self.directory= '/BETO' self.upload = '../../nt_errors.py' self.flags2 = smb.SMB.FLAGS2_NT_STATUS | smb.SMB.FLAGS2_EXTENDED_SECURITY | smb.SMB.FLAGS2_LONG_NAMES self.dialects = smb.SMB_DIALECT class SMB1TestsUnicode(SMBTests): def setUp(self): SMBTests.setUp(self) # Put specific configuration for target machine with SMB1 configFile = ConfigParser.ConfigParser() configFile.read('dcetests.cfg') self.username = configFile.get('SMBTransport', 'username') self.domain = configFile.get('SMBTransport', 'domain') self.serverName = configFile.get('SMBTransport', 'servername') self.password = configFile.get('SMBTransport', 'password') self.machine = configFile.get('SMBTransport', 'machine') self.hashes = configFile.get('SMBTransport', 'hashes') self.aesKey = configFile.get('SMBTransport', 'aesKey128') self.share = 'C$' self.file = '/TEST' self.directory= '/BETO' self.upload = '../../nt_errors.py' self.flags2 = smb.SMB.FLAGS2_UNICODE | smb.SMB.FLAGS2_NT_STATUS | smb.SMB.FLAGS2_EXTENDED_SECURITY | smb.SMB.FLAGS2_LONG_NAMES self.dialects = smb.SMB_DIALECT class SMB002Tests(SMBTests): def setUp(self): # Put specific configuration for target machine with SMB_002 SMBTests.setUp(self) configFile = ConfigParser.ConfigParser() configFile.read('dcetests.cfg') self.username = configFile.get('SMBTransport', 'username') self.domain = configFile.get('SMBTransport', 'domain') self.serverName = configFile.get('SMBTransport', 'servername') self.password = configFile.get('SMBTransport', 'password') self.machine = configFile.get('SMBTransport', 'machine') self.hashes = configFile.get('SMBTransport', 'hashes') self.aesKey = configFile.get('SMBTransport', 'aesKey128') self.share = 'C$' self.file = '/TEST' self.directory= '/BETO' self.upload = '../../nt_errors.py' self.dialects = SMB2_DIALECT_002 class SMB21Tests(SMBTests): def setUp(self): # Put specific configuration for target machine with SMB 2.1 SMBTests.setUp(self) configFile = ConfigParser.ConfigParser() configFile.read('dcetests.cfg') self.username = configFile.get('SMBTransport', 'username') self.domain = configFile.get('SMBTransport', 'domain') self.serverName = configFile.get('SMBTransport', 'servername') self.password = configFile.get('SMBTransport', 'password') self.machine = configFile.get('SMBTransport', 'machine') self.hashes = configFile.get('SMBTransport', 'hashes') self.aesKey = configFile.get('SMBTransport', 'aesKey128') self.share = 'C$' self.file = '/TEST' self.directory= '/BETO' self.upload = '../../nt_errors.py' self.dialects = SMB2_DIALECT_21 class SMB3Tests(SMBTests): def setUp(self): # Put specific configuration for target machine with SMB3 SMBTests.setUp(self) configFile = ConfigParser.ConfigParser() configFile.read('dcetests.cfg') self.username = configFile.get('SMBTransport', 'username') self.domain = configFile.get('SMBTransport', 'domain') self.serverName = configFile.get('SMBTransport', 'servername') self.password = configFile.get('SMBTransport', 'password') self.machine = configFile.get('SMBTransport', 'machine') self.hashes = configFile.get('SMBTransport', 'hashes') self.aesKey = configFile.get('SMBTransport', 'aesKey128') self.share = 'C$' self.file = '/TEST' self.directory= '/BETO' self.upload = '../../nt_errors.py' self.dialects = SMB2_DIALECT_30 if __name__ == "__main__": suite = unittest.TestLoader().loadTestsFromTestCase(SMB1Tests) suite.addTests(unittest.TestLoader().loadTestsFromTestCase(SMB1TestsUnicode)) suite.addTests(unittest.TestLoader().loadTestsFromTestCase(SMB002Tests)) suite.addTests(unittest.TestLoader().loadTestsFromTestCase(SMB21Tests)) suite.addTests(unittest.TestLoader().loadTestsFromTestCase(SMB3Tests)) unittest.TextTestRunner(verbosity=1).run(suite)
41.722372
136
0.633439
1,671
15,479
5.794734
0.137642
0.039244
0.090365
0.054632
0.737994
0.706393
0.682227
0.650212
0.627801
0.616751
0
0.009062
0.237225
15,479
370
137
41.835135
0.811044
0.055882
0
0.626959
0
0
0.06954
0
0
0
0
0.002703
0.053292
0
null
null
0.08464
0.031348
null
null
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
4
b41de5f5da01d3883f2d40d2f29e4698fc9914c6
149
py
Python
crypot/RSA/__init__.py
sayoojsamuel/crypot
6f72eab486c69fe4a8184693e585d08491c95fb3
[ "MIT" ]
7
2020-09-23T01:56:20.000Z
2022-02-23T01:59:53.000Z
crypot/RSA/__init__.py
sayoojsamuel/crypot
6f72eab486c69fe4a8184693e585d08491c95fb3
[ "MIT" ]
null
null
null
crypot/RSA/__init__.py
sayoojsamuel/crypot
6f72eab486c69fe4a8184693e585d08491c95fb3
[ "MIT" ]
1
2020-09-30T19:48:10.000Z
2020-09-30T19:48:10.000Z
#-*- coding:utf-8 -*- """ RSA Utils This submodule comprises of RSA utilities, and common exploit scripts. The tool also features RSA Analyser. """
21.285714
70
0.718121
21
149
5.095238
0.904762
0
0
0
0
0
0
0
0
0
0
0.008
0.161074
149
6
71
24.833333
0.848
0.932886
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
b450a14b4c124a6a215d1d85b6c5b8a9db157960
42
py
Python
aiomodrinth/common.py
Xemay/aiomodrinth
418e3c2dc67c6d2c45a5745f34c1ddadda5ed47d
[ "MIT" ]
null
null
null
aiomodrinth/common.py
Xemay/aiomodrinth
418e3c2dc67c6d2c45a5745f34c1ddadda5ed47d
[ "MIT" ]
null
null
null
aiomodrinth/common.py
Xemay/aiomodrinth
418e3c2dc67c6d2c45a5745f34c1ddadda5ed47d
[ "MIT" ]
null
null
null
BASE_URL = "https://api.modrinth.com/v2/"
21
41
0.690476
7
42
4
1
0
0
0
0
0
0
0
0
0
0
0.025641
0.071429
42
1
42
42
0.692308
0
0
0
0
0
0.666667
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
b45cd7206891be5d641cd8fc23a60ef40e5feb86
121
py
Python
models/__init__.py
jdelaney44/fsndp4-tic-tac-toe-01
c53f5f526ba05abbe11c85c069f6a4708d694fea
[ "Apache-2.0" ]
null
null
null
models/__init__.py
jdelaney44/fsndp4-tic-tac-toe-01
c53f5f526ba05abbe11c85c069f6a4708d694fea
[ "Apache-2.0" ]
13
2016-09-11T17:03:57.000Z
2016-10-02T19:24:48.000Z
models/__init__.py
jdelaney44/fsndp4-tic-tac-toe-01
c53f5f526ba05abbe11c85c069f6a4708d694fea
[ "Apache-2.0" ]
null
null
null
""" Model package for TicTacToe API. Defines db models for persisting and querying user/player, game, and score data """
30.25
80
0.760331
18
121
5.111111
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.157025
121
4
81
30.25
0.901961
0.92562
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
c30dcf9f23abef1a3431e72f5ab1a80526f62071
604
py
Python
tests/test_1823.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
2
2020-12-08T13:59:10.000Z
2021-05-01T05:07:39.000Z
tests/test_1823.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
tests/test_1823.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
1
2021-05-02T17:42:02.000Z
2021-05-02T17:42:02.000Z
#!/usr/bin/env python import pytest """ Test 1823. Find the Winner of the Circular Game """ @pytest.fixture(scope="session") def init_variables_1823(): from src.leetcode_1823_find_the_winner_of_the_circular_game import Solution solution = Solution() def _init_variables_1823(): return solution yield _init_variables_1823 class TestClass1823: def test_solution_0(self, init_variables_1823): assert init_variables_1823().findTheWinner(5, 2) == 3 def test_solution_1(self, init_variables_1823): assert init_variables_1823().findTheWinner(6, 5) == 1
21.571429
79
0.733444
82
604
5.060976
0.45122
0.219277
0.286747
0.081928
0.438554
0.438554
0.438554
0.438554
0.274699
0
0
0.096579
0.177152
604
27
80
22.37037
0.738431
0.033113
0
0
0
0
0.013258
0
0
0
0
0
0.153846
1
0.307692
false
0
0.153846
0.076923
0.615385
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
c337f7e0ad99596a3670596b02339a60e45b9c9f
1,210
py
Python
ranker/models.py
the-sides/djranker
1b82a190faaa5fac35bee725ee31ca277e7ee141
[ "MIT" ]
1
2018-10-22T19:31:39.000Z
2018-10-22T19:31:39.000Z
ranker/models.py
the-sides/djranker
1b82a190faaa5fac35bee725ee31ca277e7ee141
[ "MIT" ]
6
2018-08-30T22:45:37.000Z
2019-01-09T19:22:12.000Z
ranker/models.py
the-sides/djranker
1b82a190faaa5fac35bee725ee31ca277e7ee141
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class session(models.Model): sid = models.CharField(max_length=6, default="123456") # seperate from id, which is saved as session_id in track model # sid is used for link navigation and can be user specified name = models.CharField(max_length=64, default="error: unnamed") token = models.CharField(max_length=207, default="no token") pid = models.CharField(max_length=22, default="bro idk") # track_list # Table for holding URIs, track names, artist, album img link, and VOTES # psych bitch, I'm using a db full of track models instead, each with a sid id. def __str__(self): return self.name class track(models.Model): session_id= models.CharField(max_length=6, default="000000") name = models.CharField(max_length=64, default="Sandstorm") uri = models.CharField(max_length=36, default="spotify:no_track") artist = models.CharField(max_length=32, default="Darude") album_img = models.CharField(max_length=64, default="no album") score = models.IntegerField(default="0") def __str__(self): return self.name + " | " + self.session_id
46.538462
122
0.690083
171
1,210
4.748538
0.467836
0.166256
0.199507
0.26601
0.269704
0.269704
0.091133
0
0
0
0
0.03112
0.203306
1,210
25
123
48.4
0.811203
0.252066
0
0.117647
0
0
0.093541
0
0
0
0
0
0
1
0.117647
false
0
0.058824
0.117647
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
4
c33d59442b966846a19456d480ee012006be328e
438
py
Python
libtaxii/messages.py
arcsector/libtaxii
f9ef6d4f305acdfe370a67f10ceab3ce95f820bf
[ "BSD-3-Clause" ]
48
2015-05-18T10:44:14.000Z
2022-03-06T07:29:44.000Z
libtaxii/messages.py
arcsector/libtaxii
f9ef6d4f305acdfe370a67f10ceab3ce95f820bf
[ "BSD-3-Clause" ]
88
2015-01-22T22:16:32.000Z
2021-06-03T13:32:10.000Z
libtaxii/messages.py
arcsector/libtaxii
f9ef6d4f305acdfe370a67f10ceab3ce95f820bf
[ "BSD-3-Clause" ]
41
2015-01-23T17:11:57.000Z
2021-07-20T22:23:59.000Z
# Copyright (c) 2017, The MITRE Corporation # For license information, see the LICENSE.txt file """Backwards compatibility for TAXII 1.0. All TAXII Message classes used to be in this file. Since TAXII 1.1 support was added (in messages_11.py), the contents of this file were moved to messages_10.py. This file allows existing code (referring to libtaxii.messages) to continue working as before. """ from libtaxii.messages_10 import *
31.285714
79
0.776256
71
438
4.746479
0.676056
0.071217
0
0
0
0
0
0
0
0
0
0.03794
0.157534
438
13
80
33.692308
0.875339
0.888128
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
5ee9f455409ce717f7703743fb13830ef8940333
164
py
Python
django_gotolong/fratio/forms.py
ParikhKadam/gotolong
839beb8aa37055a2078eaa289b8ae05b62e8905e
[ "BSD-2-Clause", "BSD-3-Clause" ]
15
2019-12-06T16:19:45.000Z
2021-08-20T13:22:22.000Z
django_gotolong/fratio/forms.py
ParikhKadam/gotolong
839beb8aa37055a2078eaa289b8ae05b62e8905e
[ "BSD-2-Clause", "BSD-3-Clause" ]
14
2020-12-08T10:45:05.000Z
2021-09-21T17:23:45.000Z
django_gotolong/fratio/forms.py
ParikhKadam/gotolong
839beb8aa37055a2078eaa289b8ae05b62e8905e
[ "BSD-2-Clause", "BSD-3-Clause" ]
9
2020-01-01T03:04:29.000Z
2021-04-18T08:42:30.000Z
from django.forms import ModelForm, Form from .models import Fratio class FratioForm(ModelForm): class Meta: model = Fratio exclude = ('id',)
18.222222
40
0.664634
19
164
5.736842
0.736842
0
0
0
0
0
0
0
0
0
0
0
0.25
164
8
41
20.5
0.886179
0
0
0
0
0
0.012195
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
5eeb0c7764f6d67cb15e41d137f33890a68608e8
73
py
Python
notification/notifiers/__init__.py
jonghwanhyeon/python-notification
d0ebc747b405646350512ff060af24a9c3627a2e
[ "MIT" ]
null
null
null
notification/notifiers/__init__.py
jonghwanhyeon/python-notification
d0ebc747b405646350512ff060af24a9c3627a2e
[ "MIT" ]
null
null
null
notification/notifiers/__init__.py
jonghwanhyeon/python-notification
d0ebc747b405646350512ff060af24a9c3627a2e
[ "MIT" ]
null
null
null
class Notifier: def notify(self): raise NotImplementedError()
24.333333
35
0.684932
7
73
7.142857
1
0
0
0
0
0
0
0
0
0
0
0
0.232877
73
3
35
24.333333
0.892857
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
6f29425411c80371eef4a7eae7cea830004f0432
582
py
Python
tests/credentials/test_helpers.py
joshmarshall/testnado
2fc5210d05e6e8035e057ddae1a3f3d3c5922bea
[ "Apache-2.0" ]
6
2015-05-27T10:47:16.000Z
2017-10-29T07:13:51.000Z
tests/credentials/test_helpers.py
joshmarshall/testnado
2fc5210d05e6e8035e057ddae1a3f3d3c5922bea
[ "Apache-2.0" ]
6
2016-10-06T21:01:59.000Z
2019-12-11T16:04:50.000Z
tests/credentials/test_helpers.py
joshmarshall/testnado
2fc5210d05e6e8035e057ddae1a3f3d3c5922bea
[ "Apache-2.0" ]
5
2016-08-12T18:34:48.000Z
2018-11-15T05:14:15.000Z
from testnado.credentials.helpers import build_fetch_arguments import unittest class TestBuildFetchArguments(unittest.TestCase): def test_build_fetch_arguments_default(self): fetch_arguments = build_fetch_arguments("/foo") self.assertEqual("/foo", fetch_arguments.path) self.assertEqual({}, fetch_arguments.headers) self.assertEqual(None, fetch_arguments.body) self.assertEqual(None, fetch_arguments.auth_mode) self.assertEqual(None, fetch_arguments.auth_username) self.assertEqual(None, fetch_arguments.auth_password)
38.8
62
0.762887
65
582
6.553846
0.4
0.328639
0.178404
0.225352
0.338028
0.260563
0
0
0
0
0
0
0.151203
582
14
63
41.571429
0.862348
0
0
0
0
0
0.013746
0
0
0
0
0
0.545455
1
0.090909
false
0.090909
0.181818
0
0.363636
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
1
0
0
0
0
0
4
6f53fb2707e863ac033e0f645fe4b172146351d5
474
py
Python
Section 6 - Modular Programming/Breakout 6.3 Turtle Graphics/Part 1/Q2 - drawSquare.py
gitjot/python-for-lccs
a8a4ae8847abbc33361f80183c06d57b20523382
[ "CC0-1.0" ]
10
2020-02-14T14:28:15.000Z
2022-02-02T18:44:11.000Z
Section 6 - Modular Programming/Breakout 6.3 Turtle Graphics/Part 1/Q2 - drawSquare.py
gitjot/python-for-lccs
a8a4ae8847abbc33361f80183c06d57b20523382
[ "CC0-1.0" ]
null
null
null
Section 6 - Modular Programming/Breakout 6.3 Turtle Graphics/Part 1/Q2 - drawSquare.py
gitjot/python-for-lccs
a8a4ae8847abbc33361f80183c06d57b20523382
[ "CC0-1.0" ]
8
2020-03-25T09:27:42.000Z
2021-11-03T15:24:38.000Z
# Event: LCCS Python Fundamental Skills Workshop # Date: Dec 2018 # Author: Joe English, PDST # eMail: computerscience@pdst.ie # Purpose: Breakout 6.3 Turtle Graphics - Part I # Q2 - solution - implement drawSquare() from turtle import * # A function to draw a square def drawSquare(): forward(100) right(90) forward(100) right(90) forward(100) right(90) forward(100) right(90) # Call the function drawSquare()
19.75
49
0.64557
60
474
5.1
0.7
0.130719
0.196078
0.222222
0.222222
0.222222
0.222222
0.222222
0.222222
0.222222
0
0.077143
0.261603
474
23
50
20.608696
0.797143
0.527426
0
0.727273
0
0
0
0
0
0
0
0
0
1
0.090909
true
0
0.090909
0
0.181818
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
4894a362f10f2b34a0f4f4767170fed12d5f8e98
25,974
py
Python
experiments/results/plt_results.py
qingzma/DBEst_MDN
3a3e26bede308b70abfad07032dc16a07a170f34
[ "BSD-2-Clause" ]
1
2022-02-23T08:01:08.000Z
2022-02-23T08:01:08.000Z
experiments/results/plt_results.py
qingzma/DBEst_MDN
3a3e26bede308b70abfad07032dc16a07a170f34
[ "BSD-2-Clause" ]
null
null
null
experiments/results/plt_results.py
qingzma/DBEst_MDN
3a3e26bede308b70abfad07032dc16a07a170f34
[ "BSD-2-Clause" ]
2
2020-09-28T15:39:12.000Z
2021-05-11T11:07:54.000Z
import matplotlib.pyplot as plt from matplotlib.ticker import FuncFormatter import numpy as np import matplotlib.pyplot as plt import matplotlib._color_data as mcd import matplotlib.patches as mpatch import matplotlib matplotlib.rcParams['ps.useafm'] = True matplotlib.rcParams['pdf.use14corefonts'] = True # matplotlib.rcParams['text.usetex'] = True overlap = {name for name in mcd.CSS4_COLORS if "xkcd:" + name in mcd.XKCD_COLORS} font_size = 14 # 14 colors = { "DBEst_1k": mcd.XKCD_COLORS['xkcd:coral'], "DBEst_10k": mcd.XKCD_COLORS['xkcd:orange'], # blue "DBEst_100k": mcd.XKCD_COLORS['xkcd:orangered'], # green "DBEst_1m": mcd.XKCD_COLORS['xkcd:red'], # yellow "BlinkDB_1k": mcd.XKCD_COLORS['xkcd:lightblue'], # red "BlinkDB_10k": mcd.XKCD_COLORS['xkcd:turquoise'], # red "BlinkDB_100k": mcd.XKCD_COLORS['xkcd:teal'], # cyan "BlinkDB_1m": mcd.XKCD_COLORS['xkcd:azure'], # magenta "BlinkDB_5m": mcd.XKCD_COLORS['xkcd:blue'], # red "BlinkDB_26m": mcd.XKCD_COLORS['xkcd:darkblue'], # red "green1":mcd.XKCD_COLORS['xkcd:pale green'], "green2":mcd.XKCD_COLORS['xkcd:lime'], "green3":mcd.XKCD_COLORS['xkcd:neon green'], "lightgreen": mcd.XKCD_COLORS['xkcd:lightgreen'], "green": mcd.XKCD_COLORS['xkcd:green'], "orange": mcd.XKCD_COLORS['xkcd:orange'], "orangered": mcd.XKCD_COLORS['xkcd:orangered'], "red": mcd.XKCD_COLORS['xkcd:red'], } alpha = { "1": 0.1, "2": 0.3, "3": 0.5, "4": 0.7, "5": 0.9, '6': 1.0 } def to_percent(y, pos): return '%.1f%%' % (y * 100) def to_percent3(y, pos): return '%.3f%%' % (y * 100) def add_value_labels(ax, spacing=5,fontsize=12,b_float=True,b_percent=False): """Add labels to the end of each bar in a bar chart. Arguments: ax (matplotlib.axes.Axes): The matplotlib object containing the axes of the plot to annotate. spacing (int): The distance between the labels and the bars. """ ax.spines['right'].set_visible(False) ax.spines['top'].set_visible(False) # For each bar: Place a label for rect in ax.patches: # Get X and Y placement of label from rect. y_value = rect.get_height() x_value = rect.get_x() + rect.get_width() / 2 # Number of points between bar and label. Change to your liking. space = spacing # Vertical alignment for positive values va = 'bottom' # If value of bar is negative: Place label below bar if y_value < 0: # Invert space to place label below space *= -1 # Vertically align label at top va = 'top' # Use Y value as label and format number with one decimal place if b_float: if b_percent: label = '%.2f%%' % (y_value * 100) else: label = "{:.1f}".format(y_value) else: label = "{:d}".format(y_value) # Create annotation ax.annotate( label, # Use `label` as label (x_value, y_value), # Place label at end of the bar xytext=(0, space), # Vertically shift label by `space` textcoords="offset points", # Interpret `xytext` as offset in points ha='center', # Horizontally center label va=va, fontsize=fontsize) # Vertically align label differently for # positive and negative values. def plt_tpcds_universal_relative_error(): plt.rcParams.update({'font.size': 12}) width = 0.2 # data = [ # [0.011825885, 0.011224583, 0.00359967, 0.008883379 ], # , 0.0335], # [0.01995, 0.01972, 0.00079, 0.013486667], # , 0.0486], # [0.019962, 0.020326766, 0.020300222, 0.020196329], # , 0.0182], # ] data = [ [0.0149, 0.0148, 0.00328, 0.0109 ], # , 0.0335], [0.02134, 0.01999, 0.00123, 0.01418666], # , 0.0486], [0.019962, 0.020326766, 0.020300222, 0.020196329], # , 0.0182], ] X = np.arange(4) fig, ax = plt.subplots() p1 = plt.bar( X + 0.00, data[0], color=colors["DBEst_1k"], width=width, alpha=0.9) p2 = plt.bar( X + width, data[1], color=colors["BlinkDB_1k"], width=width, alpha=0.5) p3 = plt.bar( X + 2*width, data[2], color=colors["green1"], width=width, alpha=0.7) plt.legend((p1[0], p2[0], p3[0]),#, p4[0],p5[0]), ('DBEst++', 'DeepDB', 'VerdictDB', 'BlinkDB_100k',"haha"), loc='lower left') plt.xticks(X + 1 * width, ("COUNT", 'SUM', 'AVG', 'OVERALL')) ax.set_ylabel("Relative Error (%)") # ax.set_yscale('log') formatter = FuncFormatter(to_percent) ax.yaxis.set_major_formatter(formatter) plt.subplots_adjust(bottom=0.07) # plt.subplots_adjust(left=0.23) # plt.subplots_adjust(bottom=0.12) add_value_labels(ax,b_float=True,b_percent=True,fontsize=6) plt.savefig("/Users/scott/Pictures/accuracy_universal.pdf") print("figure saved.") plt.show() def plt_tpcds_universal_relative_error_scalability(): plt.rcParams.update({'font.size': 12}) width = 0.2 # data = [ # [0.011013, 0.010773, 0.008883], # [0.015733, 0.013967, 0.013487], # [0.021001, 0.025905, 0.020196], # ] data = [ [0.011013, 0.010773, 0.008883], [0.0142 , 0.013967, 0.013487], [0.021001, 0.025905, 0.020196], ] X = np.arange(3) fig, ax = plt.subplots() p1 = plt.bar( X + 0.00, data[0], color=colors["DBEst_1k"], width=width, alpha=0.9) p2 = plt.bar( X + width, data[1], color=colors["BlinkDB_1k"], width=width, alpha=0.5) p3 = plt.bar( X + 2*width, data[2], color=colors["green1"], width=width, alpha=0.7) plt.legend((p1[0], p2[0], p3[0]),#, p4[0],p5[0]), ('DBEst++', 'DeepDB', 'VerdictDB', 'BlinkDB_100k',"haha"), loc='lower left') plt.xticks(X + 1 * width, ("10", '100', '1000')) ax.set_ylabel("Relative Error (%)") ax.set_xlabel("TPC-DS Scaling Factor") # ax.set_yscale('log') formatter = FuncFormatter(to_percent) ax.yaxis.set_major_formatter(formatter) plt.subplots_adjust(bottom=0.07) # plt.subplots_adjust(left=0.23) plt.subplots_adjust(bottom=0.12) add_value_labels(ax,b_float=True,b_percent=True) plt.savefig("/Users/scott/Pictures/accuracy_universal_scalability.pdf") print("figure saved.") plt.show() def plt_tpcds_universal_relative_error_scalability_count(): plt.rcParams.update({'font.size': 16}) width = 0.2 # data = [ # [0.011013, 0.010773, 0.008883], # [0.015733, 0.013967, 0.013487], # [0.021001, 0.025905, 0.020196], # ] data = [ [0.0149, 0.0108, 0.0118], [0.0213, 0.0168, 0.0126], [0.0203, 0.0259, 0.0200], ] X = np.arange(3) fig, ax = plt.subplots() p1 = plt.bar( X + 0.00, data[0], color=colors["DBEst_1k"], width=width, alpha=0.9) p2 = plt.bar( X + width, data[1], color=colors["BlinkDB_1k"], width=width, alpha=0.5) p3 = plt.bar( X + 2*width, data[2], color=colors["green1"], width=width, alpha=0.7) plt.legend((p1[0], p2[0], p3[0]),#, p4[0],p5[0]), ('DBEst++', 'DeepDB', 'VerdictDB', 'BlinkDB_100k',"haha"), loc='lower left') plt.xticks(X + 1 * width, ("10", '100', '1000')) ax.set_ylabel("Relative Error (%)") ax.set_xlabel("TPC-DS Scaling Factor") # ax.set_yscale('log') formatter = FuncFormatter(to_percent) ax.yaxis.set_major_formatter(formatter) plt.subplots_adjust(bottom=0.07) plt.subplots_adjust(left=0.17) plt.subplots_adjust(bottom=0.12) add_value_labels(ax,b_float=True,b_percent=True) plt.savefig("/Users/scott/Pictures/accuracy_universal_scalability_count.pdf") print("figure saved.") plt.show() def plt_tpcds_universal_relative_error_scalability_sum(): plt.rcParams.update({'font.size': 16}) width = 0.2 # data = [ # [0.011013, 0.010773, 0.008883], # [0.015733, 0.013967, 0.013487], # [0.021001, 0.025905, 0.020196], # ] data = [ [0.0148, 0.0111, 0.0112], [0.0200, 0.0178, 0.0125], [0.0216, 0.0259, 0.0203], ] X = np.arange(3) fig, ax = plt.subplots() p1 = plt.bar( X + 0.00, data[0], color=colors["DBEst_1k"], width=width, alpha=0.9) p2 = plt.bar( X + width, data[1], color=colors["BlinkDB_1k"], width=width, alpha=0.5) p3 = plt.bar( X + 2*width, data[2], color=colors["green1"], width=width, alpha=0.7) plt.legend((p1[0], p2[0], p3[0]),#, p4[0],p5[0]), ('DBEst++', 'DeepDB', 'VerdictDB', 'BlinkDB_100k',"haha"), loc='lower left') plt.xticks(X + 1 * width, ("10", '100', '1000')) ax.set_ylabel("Relative Error (%)") ax.set_xlabel("TPC-DS Scaling Factor") # ax.set_yscale('log') formatter = FuncFormatter(to_percent) ax.yaxis.set_major_formatter(formatter) plt.subplots_adjust(bottom=0.07) plt.subplots_adjust(left=0.17) plt.subplots_adjust(bottom=0.12) add_value_labels(ax,b_float=True,b_percent=True) plt.savefig("/Users/scott/Pictures/accuracy_universal_scalability_sum.pdf") print("figure saved.") plt.show() def plt_tpcds_universal_response_time_scalability(): plt.rcParams.update({'font.size': 20}) width = 0.3 data = [ [46.51, 145.60, 320.75], [67.67, 261.33, 409.33], [400.73, 997.30, 4112.51], ] X = np.arange(3) fig, ax = plt.subplots() p1 = plt.bar( X + 0.00, data[0], color=colors["DBEst_1k"], width=width, alpha=0.9) p2 = plt.bar( X + width, data[1], color=colors["BlinkDB_1k"], width=width, alpha=0.5) p3 = plt.bar( X + 2*width, data[2], color=colors["green1"], width=width, alpha=0.7) plt.legend((p1[0], p2[0], p3[0]),#, p4[0],p5[0]), ('DBEst++', 'DeepDB', 'VerdictDB', 'BlinkDB_100k',"haha"), loc='upper left') plt.xticks(X + 1 * width, ("10", '100', '1000')) ax.set_ylabel("Response Time (ms)") ax.set_xlabel("TPC-DS Scaling Factor") # ax.set_yscale('log') # formatter = FuncFormatter(to_percent) # ax.yaxis.set_major_formatter(formatter) # plt.subplots_adjust(bottom=0.11) # plt.subplots_adjust(left=0.12) plt.subplots_adjust(bottom=0.18) plt.subplots_adjust(left=0.2) add_value_labels(ax,b_float=True,b_percent=False,fontsize=8) plt.savefig("/Users/scott/Pictures/response_time_universal.pdf") print("figure saved.") plt.show() def plt_tpcds_universal_space_scalability(): plt.rcParams.update({'font.size': 20}) width = 0.3 data = [ [83, 139, 309], [163122, 454012, 584020], [40100, 171400, 540900], ] X = np.arange(3) fig, ax = plt.subplots() p1 = plt.bar( X + 0.00, data[0], color=colors["DBEst_1k"], width=width, alpha=0.9) p2 = plt.bar( X + width, data[1], color=colors["BlinkDB_1k"], width=width, alpha=0.5) p3 = plt.bar( X + 2*width, data[2], color=colors["green1"], width=width, alpha=0.7) plt.legend((p1[0], p2[0], p3[0]),#, p4[0],p5[0]), ('DBEst++', 'DeepDB', 'VerdictDB', 'BlinkDB_100k',"haha"), loc='center left', prop={'size': 12}) plt.xticks(X + 1 * width, ("10", '100', '1000')) ax.set_ylabel("Space Overheads (KB)") ax.set_xlabel("TPC-DS Scaling Factor") ax.set_yscale('log') # formatter = FuncFormatter(to_percent) # ax.yaxis.set_major_formatter(formatter) # plt.subplots_adjust(bottom=0.11) # plt.subplots_adjust(left=0.12) plt.subplots_adjust(bottom=0.18) plt.subplots_adjust(left=0.18) add_value_labels(ax,b_float=False,fontsize=8) plt.savefig("/Users/scott/Pictures/space_universal.pdf") print("figure saved.") plt.show() # ---------------------------------------------------------------------------------------------->>>>>>>>>>>>>>>>>>>>>>> def plt_tpcds_compact_relative_error(): plt.rcParams.update({'font.size': 16}) width = 0.3 # data = [ # [0.011825885, 0.011224583, 0.00359967, 0.008883379 ], # , 0.0335], # [0.01995, 0.01972, 0.00079, 0.013486667], # , 0.0486], # # [0.019962, 0.020326766, 0.020300222, 0.020196329], # , 0.0182], # ] data = [ [0.0149, 0.0148, 0.00328, 0.0109], # , 0.0335], [0.01835, 0.01842, 0.00214, 0.01297], # , 0.0486], # [0.019962, 0.020326766, 0.020300222, 0.020196329], # , 0.0182], ] X = np.arange(4) fig, ax = plt.subplots() p1 = plt.bar( X + 0.00, data[0], color=colors["DBEst_1k"], width=width, alpha=0.9) p2 = plt.bar( X + width, data[1], color=colors["BlinkDB_1k"], width=width, alpha=0.5) # p3 = plt.bar( # X + 2*width, data[2], color=colors["green1"], width=width, alpha=0.7) plt.legend((p1[0], p2[0]),#, p3[0]),#, p4[0],p5[0]), ('DBEst++', 'DeepDB', 'VerdictDB', 'BlinkDB_100k',"haha"), loc='lower left') plt.xticks(X + 0.5 * width, ("COUNT", 'SUM', 'AVG', 'OVERALL')) ax.set_ylabel("Relative Error (%)") # ax.set_yscale('log') formatter = FuncFormatter(to_percent) ax.yaxis.set_major_formatter(formatter) plt.subplots_adjust(bottom=0.07) plt.subplots_adjust(left=0.15) # plt.subplots_adjust(bottom=0.12) add_value_labels(ax,b_float=True,b_percent=True,fontsize=10) plt.savefig("/Users/scott/Pictures/accuracy_compact.pdf") print("figure saved.") plt.show() def plt_tpcds_compact_relative_error_scalability(): plt.rcParams.update({'font.size': 16}) width = 0.3 data = [ [0.011013, 0.010773, 0.008883], [0.01297 , 0.013003, 0.013487], # [0.021001, 0.025905, 0.020196], ] X = np.arange(3) fig, ax = plt.subplots() p1 = plt.bar( X + 0.00, data[0], color=colors["DBEst_1k"], width=width, alpha=0.9) p2 = plt.bar( X + width, data[1], color=colors["BlinkDB_1k"], width=width, alpha=0.5) # p3 = plt.bar( # X + 2*width, data[2], color=colors["green1"], width=width, alpha=0.7) plt.legend((p1[0], p2[0]),#, p3[0]),#, p4[0],p5[0]), ('DBEst++', 'DeepDB', 'VerdictDB', 'BlinkDB_100k',"haha"), loc='lower left') plt.xticks(X + 0.5 * width, ("10", '100', '1000')) ax.set_ylabel("Relative Error (%)") ax.set_xlabel("TPC-DS Scaling Factor") # ax.set_yscale('log') formatter = FuncFormatter(to_percent) ax.yaxis.set_major_formatter(formatter) plt.subplots_adjust(bottom=0.07) plt.subplots_adjust(left=0.15) plt.subplots_adjust(bottom=0.12) add_value_labels(ax,b_float=True,b_percent=True,fontsize=10) plt.savefig("/Users/scott/Pictures/accuracy_compact_scalability.pdf") print("figure saved.") plt.show() def plt_tpcds_compact_response_time_scalability(): plt.rcParams.update({'font.size': 20}) width = 0.3 data = [ [46.51, 145.60, 320.75], [25.67, 42.33, 78.67], # [0.021001, 0.025905, 0.020196], ] X = np.arange(3) fig, ax = plt.subplots() p1 = plt.bar( X + 0.00, data[0], color=colors["DBEst_1k"], width=width, alpha=0.9) p2 = plt.bar( X + width, data[1], color=colors["BlinkDB_1k"], width=width, alpha=0.5) # p3 = plt.bar( # X + 2*width, data[2], color=colors["green1"], width=width, alpha=0.7) plt.legend((p1[0], p2[0]),#, p3[0]),#, p4[0],p5[0]), ('DBEst++', 'DeepDB', 'VerdictDB', 'BlinkDB_100k',"haha"), loc='upper left') plt.xticks(X + 0.5 * width, ("10", '100', '1000')) ax.set_ylabel("Response Time (ms)") ax.set_xlabel("TPC-DS Scaling Factor") # ax.set_yscale('log') # formatter = FuncFormatter(to_percent) # ax.yaxis.set_major_formatter(formatter) # plt.subplots_adjust(bottom=0.11) # plt.subplots_adjust(left=0.12) plt.subplots_adjust(bottom=0.18) plt.subplots_adjust(left=0.2) add_value_labels(ax,b_float=True,b_percent=False,fontsize=10) plt.savefig("/Users/scott/Pictures/response_time_compact.pdf") print("figure saved.") plt.show() def plt_tpcds_compact_space_scalability(): plt.rcParams.update({'font.size': 12}) width = 0.3 data = [ [83, 139, 309], [1301, 1412, 1508], # [0.021001, 0.025905, 0.020196], ] X = np.arange(3) fig, ax = plt.subplots() p1 = plt.bar( X + 0.00, data[0], color=colors["DBEst_1k"], width=width, alpha=0.9) p2 = plt.bar( X + width, data[1], color=colors["BlinkDB_1k"], width=width, alpha=0.5) # p3 = plt.bar( # X + 2*width, data[2], color=colors["green1"], width=width, alpha=0.7) plt.legend((p1[0], p2[0]),#, p3[0]),#, p4[0],p5[0]), ('DBEst++', 'DeepDB', 'VerdictDB', 'BlinkDB_100k',"haha"), loc='center left') plt.xticks(X + 0.5 * width, ("10", '100', '1000')) ax.set_ylabel("Space Overheads (KB)") ax.set_xlabel("TPC-DS Scaling Factor") # ax.set_yscale('log') # formatter = FuncFormatter(to_percent) # ax.yaxis.set_major_formatter(formatter) # plt.subplots_adjust(bottom=0.11) # plt.subplots_adjust(left=0.12) plt.subplots_adjust(bottom=0.18) plt.subplots_adjust(left=0.15) add_value_labels(ax,b_float=False,b_percent=False,fontsize=10) plt.savefig("/Users/scott/Pictures/space_compact.pdf") print("figure saved.") plt.show() def plt_3d_chart(): from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import numpy as np # %matplotlib inline data = np.array([ [0,1,0,0,1,0,0,1,0], [0,3,0,0,3,0,0,3,0], [6,1,1,6,1,1,6,1,1], ]) column_names = ['COUNT_10g','SUM_10g','AVF_10g','COUNT_100g','SUM_100g','AVF_100g','COUNT_1t','SUM_1t','AVF_1t'] row_names = ['DBEst++','DeepDB','VerdictDB'] fig = plt.figure() ax = Axes3D(fig) lx= len(data[0]) # Work out matrix dimensions ly= len(data[:,0]) xpos = np.arange(0,lx,1) # Set up a mesh of positions ypos = np.arange(0,ly,1) xpos, ypos = np.meshgrid(xpos-1.25, ypos-1.25) xpos = xpos.flatten() # Convert positions to 1D array ypos = ypos.flatten() zpos = np.zeros(lx*ly) dx = 0.5 * np.ones_like(zpos) dy = dx.copy() dz = data.flatten() cs = ['r', 'g', 'b', 'r', 'g', 'b','r', 'g', 'b'] * ly ax.bar3d(xpos,ypos,zpos, dx, dy, dz, color=cs) #sh() ax.w_xaxis.set_ticklabels(column_names) ax.w_yaxis.set_ticklabels(row_names) ax.set_xlabel('Aggregates') ax.set_ylabel('AQP Engine') ax.set_zlabel('Average Relative Error (\%)') ax.set_xlim(-1,8) ax.set_ylim(-1,3) plt.show() # ---------------------------------------------------------------------------------------------->>>>>>>>>>>>>>>>>>>>>>> def plt_flight_relative_error(): plt.rcParams.update({'font.size': 12}) width = 0.2 data = [ [0.01300, 0.01310, 0.00022, 0.00877], [0.01131, 0.01132, 0.00008, 0.00757], [0.00674, 0.00678, 0.00016, 0.00456], [0.00517, 0.00516, 0.000075, 0.00369], ] X = np.arange(4) fig, ax = plt.subplots() p1 = plt.bar( X + 0.00, data[0], color=colors["DBEst_1k"], width=width, alpha=0.9) p2 = plt.bar( X + width, data[1], color=colors["BlinkDB_1k"], width=width, alpha=0.5) p3 = plt.bar( X + 2*width, data[2], color=colors["DBEst_10k"], width=width, alpha=0.7) p4 = plt.bar( X + 3*width, data[3], color=colors["BlinkDB_10k"], width=width, alpha=0.3) # p5 = plt.bar( # X + 4*width, data[4], color=colors["green1"], width=width, alpha=alpha['6']) plt.legend((p1[0], p2[0], p3[0], p4[0]),#,p5[0]), ('DBEst++_1m', 'DeepDB_1m', 'DBEst++_5m', 'DeepDB_5m',"haha"), loc='best', prop={'size': 8}) plt.xticks(X + 1 * width, ("COUNT", 'SUM', 'AVG', 'OVERALL')) ax.set_ylabel("Relative Error (%)") # ax.set_yscale('log') formatter = FuncFormatter(to_percent) ax.yaxis.set_major_formatter(formatter) plt.subplots_adjust(bottom=0.14) #0.07 # plt.subplots_adjust(left=0.23) add_value_labels(ax,b_float=True,b_percent=True,fontsize=6) plt.savefig("/Users/scott/Pictures/flight_accuracy.pdf") print("figure saved.") plt.show() def plt_flight_relative_error_overall(): plt.rcParams.update({'font.size': 12}) width = 0.3 data = [ [0.01300, 0.01310, 0.00022, 0.00877], [0.01131, 0.01132, 0.00008, 0.00757], [0.00674, 0.00678, 0.00016, 0.00456], [0.00517, 0.00516, 0.000075, 0.00369], ] data = [ [0.00877, 0.00456], [0.00757, 0.00369], ] X = np.arange(2) fig, ax = plt.subplots() p1 = plt.bar( X + 0.00, data[0], color=colors["DBEst_1k"], width=width, alpha=0.9) p2 = plt.bar( X + width, data[1], color=colors["BlinkDB_1k"], width=width, alpha=0.5) # p3 = plt.bar( # X + 2*width, data[2], color=colors["DBEst_10k"], width=width, alpha=0.7) # p4 = plt.bar( # X + 3*width, data[3], color=colors["BlinkDB_10k"], width=width, alpha=0.3) # p5 = plt.bar( # X + 4*width, data[4], color=colors["green1"], width=width, alpha=alpha['6']) plt.legend((p1[0], p2[0]),# p3[0], p4[0]),#,p5[0]), ('DBEst++', 'DeepDB', 'DBEst++_5m', 'DeepDB_5m',"haha"), loc='lower left', prop={'size': 12}) plt.xticks(X + 0.5 * width, ("1m", '5m', 'AVG', 'OVERALL')) ax.set_xlabel("Sample Size") ax.set_ylabel("Relative Error (%)") # ax.set_yscale('log') formatter = FuncFormatter(to_percent) ax.yaxis.set_major_formatter(formatter) plt.subplots_adjust(bottom=0.25) #0.14 # plt.subplots_adjust(left=0.23) add_value_labels(ax,b_float=True,b_percent=True,fontsize=8) plt.savefig("/Users/scott/Pictures/flight_accuracy.pdf") print("figure saved.") plt.show() def plt_flight_response_time(): plt.rcParams.update({'font.size': 20}) width = 0.3 data = [ [32.67, 33.50], [27.1, 29], # [0.021001, 0.025905, 0.020196], ] X = np.arange(2) fig, ax = plt.subplots() p1 = plt.bar( X + 0.00, data[0], color=colors["DBEst_1k"], width=width, alpha=0.9) p2 = plt.bar( X + width, data[1], color=colors["BlinkDB_1k"], width=width, alpha=0.5) # p3 = plt.bar( # X + 2*width, data[2], color=colors["green1"], width=width, alpha=0.7) plt.legend((p1[0], p2[0]),#, p3[0]),#, p4[0],p5[0]), ('DBEst++', 'DeepDB', 'VerdictDB', 'BlinkDB_100k',"haha"), loc='lower left') plt.xticks(X + 0.5 * width, ("1m", '5m')) ax.set_ylabel("Response Time (ms)") ax.set_xlabel("Sample Size") # ax.set_yscale('log') # formatter = FuncFormatter(to_percent) # ax.yaxis.set_major_formatter(formatter) # plt.subplots_adjust(bottom=0.11) # plt.subplots_adjust(left=0.12) plt.subplots_adjust(bottom=0.18) plt.subplots_adjust(left=0.15) add_value_labels(ax,b_float=True,b_percent=False,fontsize=12) plt.savefig("/Users/scott/Pictures/flight_response.pdf") print("figure saved.") plt.show() def plt_flight_space(): plt.rcParams.update({'font.size': 12}) #20 width = 0.3 data = [ [170, 35], # [1200, 1200], [3502, 4314], ] X = np.arange(2) fig, ax = plt.subplots() p1 = plt.bar( X + 0.00, data[0], color=colors["DBEst_1k"], width=width, alpha=0.9) p2 = plt.bar( X + width, data[1], color=colors["BlinkDB_1k"], width=width, alpha=0.5) # p3 = plt.bar( # X + 2*width, data[2], color=colors["green1"], width=width, alpha=0.7) plt.legend((p1[0], p2[0]),#, p3[0]),#, p4[0],p5[0]), ('DBEst++', 'DeepDB', 'VerdictDB', 'BlinkDB_100k',"haha"), loc='center left') plt.xticks(X + 0.5 * width, ("1m", '5m')) ax.set_ylabel("Space Overheads (KB)") ax.set_xlabel("Sample Size") # ax.set_yscale('log') # formatter = FuncFormatter(to_percent) # ax.yaxis.set_major_formatter(formatter) # plt.subplots_adjust(bottom=0.11) # plt.subplots_adjust(left=0.12) # plt.subplots_adjust(bottom=0.18) # plt.subplots_adjust(left=0.2) add_value_labels(ax,b_float=False,b_percent=False,fontsize=12) plt.savefig("/Users/scott/Pictures/flight_space.pdf") print("figure saved.") plt.show() def plt_distributed(): plt.rcParams.update({'font.size': 12}) x=[1,4,8,12,16,20] y1=[13.38, 3.5967, 1.659, 1.1032, 0.9601, 0.78] y2=[7,7,7,7,7,7] plt.plot(x,y1,'-g', marker='o', linewidth=3, label='DBEst++')#color='tab:blue', marker='o') plt.plot(x,y2,':b', marker='x', linewidth=3, label='DeepDB')#color='g', marker='*') plt.xlabel("Degree of Parallelism") plt.ylabel("Time Cost (s)") plt.xlim([0,20]) plt.xticks(np.arange(0, 20, 2.0)) # plt.yscale('log') # plt.xscale('log') plt.legend() plt.subplots_adjust(bottom=0.25) plt.savefig("/Users/scott/Pictures/distributed.pdf") print("figure saved.") plt.show() if __name__ == "__main__": # plt_tpcds_universal_relative_error() # plt_tpcds_universal_relative_error_scalability() # plt_tpcds_universal_response_time_scalability() # plt_tpcds_universal_space_scalability() # plt_tpcds_compact_relative_error() # plt_tpcds_compact_relative_error_scalability() # plt_tpcds_compact_response_time_scalability() # plt_tpcds_compact_space_scalability() # plt_3d_chart() # plt_tpcds_universal_relative_error_scalability_count() # plt_tpcds_universal_relative_error_scalability_sum() plt_flight_relative_error_overall() # plt_flight_relative_error() # plt_flight_response_time() # plt_flight_space() # plt_distributed()
32.265839
119
0.58882
3,775
25,974
3.927682
0.108874
0.045255
0.053888
0.047481
0.79335
0.767721
0.737776
0.714845
0.695893
0.686518
0
0.113121
0.220952
25,974
805
120
32.265839
0.619619
0.211866
0
0.612
0
0
0.162488
0.034156
0
0
0
0
0
1
0.038
false
0
0.02
0.004
0.062
0.03
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
4897f81187855116045043265622167fbcba0547
230
py
Python
spacy_tagger.py
iliaschalkidis/lmtc-emnlp2020
55634fda5f118a0476572e674e90b14d3b740501
[ "Apache-2.0" ]
11
2020-09-16T15:12:42.000Z
2022-02-09T06:16:31.000Z
spacy_tagger.py
iliaschalkidis/lmtc-emnlp2020
55634fda5f118a0476572e674e90b14d3b740501
[ "Apache-2.0" ]
2
2021-04-14T16:59:10.000Z
2022-01-28T08:11:17.000Z
spacy_tagger.py
iliaschalkidis/lmtc-emnlp2020
55634fda5f118a0476572e674e90b14d3b740501
[ "Apache-2.0" ]
1
2021-07-15T18:36:54.000Z
2021-07-15T18:36:54.000Z
import spacy class Tagger(object): def __init__(self): self._spacy_tagger = spacy.load('en', disable=['parser', 'ner']) def tokenize_text(self, text: str): return [t for t in self._spacy_tagger(text)]
19.166667
72
0.643478
32
230
4.34375
0.625
0.129496
0.215827
0
0
0
0
0
0
0
0
0
0.217391
230
11
73
20.909091
0.772222
0
0
0
0
0
0.047826
0
0
0
0
0
0
1
0.333333
false
0
0.166667
0.166667
0.833333
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
48c35e9c4ccd8e2927a3cbe4b66f8db571e16b84
46
py
Python
lib/acconeer_utils/__init__.py
GoldenRed/acconeer-python-exploration
5e60cbc105e532c4a6d5562ba29e195854e3d7c5
[ "BSD-3-Clause-Clear" ]
1
2019-10-15T15:57:50.000Z
2019-10-15T15:57:50.000Z
lib/acconeer_utils/__init__.py
GoldenRed/acconeer-python-exploration
5e60cbc105e532c4a6d5562ba29e195854e3d7c5
[ "BSD-3-Clause-Clear" ]
2
2019-10-15T12:59:40.000Z
2019-10-17T11:25:00.000Z
lib/acconeer_utils/__init__.py
GoldenRed/acconeer-python-exploration
5e60cbc105e532c4a6d5562ba29e195854e3d7c5
[ "BSD-3-Clause-Clear" ]
null
null
null
__version__ = "2.8.7" SDK_VERSION = "1.10.0"
11.5
22
0.630435
9
46
2.666667
0.888889
0
0
0
0
0
0
0
0
0
0
0.179487
0.152174
46
3
23
15.333333
0.435897
0
0
0
0
0
0.23913
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
48d2fae0dfdb14e3eeeffa5b8c032a12b8f52ac3
9,945
py
Python
mayan/apps/documents/icons.py
CMU-313/fall-2021-hw2-connect5
2faece2eef28eabf122b99fd5699636a8c4ad20a
[ "Apache-2.0" ]
null
null
null
mayan/apps/documents/icons.py
CMU-313/fall-2021-hw2-connect5
2faece2eef28eabf122b99fd5699636a8c4ad20a
[ "Apache-2.0" ]
29
2021-09-14T22:17:48.000Z
2021-10-01T06:01:52.000Z
mayan/apps/documents/icons.py
CMU-313/fall-2021-hw2-connect5
2faece2eef28eabf122b99fd5699636a8c4ad20a
[ "Apache-2.0" ]
1
2021-11-02T21:14:42.000Z
2021-11-02T21:14:42.000Z
from mayan.apps.appearance.classes import Icon from mayan.apps.converter.icons import icon_transformations icon_document_type = Icon( driver_name='fontawesome-layers', data=[ {'class': 'fas fa-circle', 'transform': 'shrink-12 up-2'}, {'class': 'fas fa-cog', 'transform': 'shrink-6 up-2', 'mask': 'fas fa-torah'} ] ) icon_menu_documents = Icon(driver_name='fontawesome', symbol='book') icon_dashboard_document_types = icon_document_type icon_dashboard_documents_in_trash = Icon( driver_name='fontawesome', symbol='trash-alt' ) icon_dashboard_pages_per_month = Icon( driver_name='fontawesome', symbol='copy' ) icon_dashboard_new_documents_this_month = Icon( driver_name='fontawesome', symbol='calendar' ) icon_dashboard_total_document = Icon( driver_name='fontawesome', symbol='book' ) icon_document_edit = Icon( driver_name='fontawesome', symbol='pencil-alt' ) icon_document = Icon(driver_name='fontawesome', symbol='book') icon_document_list = icon_document icon_document_file_page_count_update = Icon( driver_name='fontawesome', symbol='copy' ) icon_document_preview = Icon(driver_name='fontawesome', symbol='eye') icon_document_review = Icon(driver_name='fontawesome', symbol='sticky-note') icon_document_properties = Icon(driver_name='fontawesome', symbol='info') icon_document_trash_send = Icon( driver_name='fontawesome', symbol='trash-alt' ) icon_document_type_change = icon_document_type icon_document_image_loading = Icon( driver_name='fontawesomecss', css_classes='far fa-clock fa-2x' ) icon_document_list = Icon(driver_name='fontawesome', symbol='book') icon_document_list_deleted = Icon( driver_name='fontawesome', symbol='trash-alt' ) icon_document_recently_accessed_list = Icon( driver_name='fontawesome', symbol='clock' ) icon_document_return = Icon( driver_name='fontawesome-dual', primary_symbol='book', secondary_symbol='chevron-left' ) # Favorites icon_favorite_document_add = Icon( driver_name='fontawesome-dual', primary_symbol='star', secondary_symbol='plus' ) icon_favorite_document_list = Icon(driver_name='fontawesome', symbol='star') icon_favorite_document_remove = Icon( driver_name='fontawesome-dual', primary_symbol='star', secondary_symbol='minus' ) # Document files icon_document_file_delete = Icon( driver_name='fontawesome', symbol='times' ) icon_document_file_download_quick = Icon( driver_name='fontawesome', symbol='download' ) icon_document_file_edit = Icon( driver_name='fontawesome', symbol='pencil-alt' ) icon_document_file_list = Icon( driver_name='fontawesome', symbol='hdd' ) icon_document_file_preview = Icon( driver_name='fontawesome', symbol='eye' ) icon_document_file_print = Icon( driver_name='fontawesome', symbol='print' ) icon_document_file_properties = Icon( driver_name='fontawesome', symbol='info' ) icon_document_file_return_to_document = icon_document_return icon_document_file_return_list = Icon( driver_name='fontawesome-dual', primary_symbol='hdd', secondary_symbol='chevron-left' ) icon_document_file_transformations_clear = Icon( driver_name='fontawesome-dual', primary_symbol=icon_transformations.kwargs['symbol'], secondary_symbol='times' ) icon_document_file_transformations_clone = Icon( driver_name='fontawesome-dual', primary_symbol=icon_transformations.kwargs['symbol'], secondary_symbol='arrow-right' ) # Document file pages icon_document_file_page_list = Icon(driver_name='fontawesome', symbol='copy') icon_document_file_page_navigation_first = Icon( driver_name='fontawesome', symbol='step-backward' ) icon_document_file_page_navigation_last = Icon( driver_name='fontawesome', symbol='step-forward' ) icon_document_file_page_navigation_next = Icon( driver_name='fontawesome', symbol='arrow-right' ) icon_document_file_page_navigation_previous = Icon( driver_name='fontawesome', symbol='arrow-left' ) icon_document_file_page_return_to_document = icon_document_return icon_document_file_page_return_to_document_file = Icon( driver_name='fontawesome-dual', primary_symbol='hdd', secondary_symbol='chevron-left' ) icon_document_file_page_return_to_document_file_page_list = Icon( driver_name='fontawesome-dual', primary_symbol='copy', secondary_symbol='chevron-left' ) icon_document_file_page_rotate_left = Icon( driver_name='fontawesome', symbol='undo' ) icon_document_file_page_rotate_right = Icon( driver_name='fontawesome', symbol='redo' ) icon_document_file_page_view = Icon( driver_name='fontawesome', symbol='image' ) icon_document_file_page_view_reset = Icon( driver_name='fontawesome', symbol='sync' ) icon_document_file_page_zoom_in = Icon( driver_name='fontawesome', symbol='search-plus' ) icon_document_file_page_zoom_out = Icon( driver_name='fontawesome', symbol='search-minus' ) # Document types icon_document_type_create = Icon( driver_name='fontawesome-dual', primary_symbol='book', secondary_symbol='plus' ) icon_document_type_delete = Icon(driver_name='fontawesome', symbol='times') icon_document_type_edit = Icon(driver_name='fontawesome', symbol='pencil-alt') icon_document_type_setup = icon_document_type icon_document_type_list = icon_document_type icon_document_type_filename = Icon( driver_name='fontawesome', symbol='keyboard' ) icon_document_type_filename_create = Icon( driver_name='fontawesome-dual', primary_symbol='keyboard', secondary_symbol='plus' ) icon_document_type_filename_delete = Icon( driver_name='fontawesome', symbol='times' ) icon_document_type_filename_edit = Icon( driver_name='fontawesome', symbol='pencil-alt' ) icon_document_type_filename_list = Icon( driver_name='fontawesome', symbol='keyboard' ) icon_document_type_filename_generator = Icon( driver_name='fontawesome-layers', data=[ {'class': 'far fa-file'}, {'class': 'fas fa-cog', 'transform': 'shrink-8 down-2'} ] ) icon_document_type_policies = Icon(driver_name='fontawesome', symbol='times') icon_document_type_setup = icon_document_type # Document version icon_document_version_active = Icon( driver_name='fontawesome', symbol='check' ) icon_document_version_create = Icon( driver_name='fontawesome-dual', primary_symbol='code-branch', secondary_symbol='plus' ) icon_document_version_delete = Icon( driver_name='fontawesome', symbol='times' ) icon_document_version_edit = Icon( driver_name='fontawesome', symbol='pencil-alt' ) icon_document_version_export = Icon( driver_name='fontawesome', symbol='file-export' ) icon_document_version_list = Icon( driver_name='fontawesome', symbol='code-branch' ) icon_document_version_return_document = icon_document_return icon_document_version_return_list = Icon( driver_name='fontawesome-dual', primary_symbol='code-branch', secondary_symbol='chevron-left' ) icon_document_version_preview = Icon( driver_name='fontawesome', symbol='eye' ) icon_document_version_print = Icon( driver_name='fontawesome', symbol='print' ) icon_document_version_transformations_clear = Icon( driver_name='fontawesome-dual', primary_symbol=icon_transformations.kwargs['symbol'], secondary_symbol='times' ) icon_document_version_transformations_clone = Icon( driver_name='fontawesome-dual', primary_symbol=icon_transformations.kwargs['symbol'], secondary_symbol='arrow-right' ) # Document version pages icon_document_version_page_delete = Icon( driver_name='fontawesome', symbol='times' ) icon_document_version_page_return_to_document = icon_document_return icon_document_version_page_return_to_document_version = Icon( driver_name='fontawesome-dual', primary_symbol='code-branch', secondary_symbol='chevron-left' ) icon_document_version_page_return_to_document_version_page_list = Icon( driver_name='fontawesome-dual', primary_symbol='copy', secondary_symbol='chevron-left' ) icon_document_version_page_list = Icon(driver_name='fontawesome', symbol='copy') icon_document_version_page_list_remap = Icon( driver_name='fontawesome', symbol='project-diagram' ) icon_document_version_page_list_reset = Icon( driver_name='fontawesome', symbol='copy' ) icon_document_version_page_navigation_first = Icon( driver_name='fontawesome', symbol='step-backward' ) icon_document_version_page_navigation_last = Icon( driver_name='fontawesome', symbol='step-forward' ) icon_document_version_page_navigation_next = Icon( driver_name='fontawesome', symbol='arrow-right' ) icon_document_version_page_navigation_previous = Icon( driver_name='fontawesome', symbol='arrow-left' ) icon_document_version_page_rotate_left = Icon( driver_name='fontawesome', symbol='undo' ) icon_document_version_page_rotate_right = Icon( driver_name='fontawesome', symbol='redo' ) icon_document_version_page_view = Icon( driver_name='fontawesome', symbol='image' ) icon_document_version_page_view_reset = Icon( driver_name='fontawesome', symbol='sync' ) icon_document_version_page_zoom_in = Icon( driver_name='fontawesome', symbol='search-plus' ) icon_document_version_page_zoom_out = Icon( driver_name='fontawesome', symbol='search-minus' ) # Recently created icon_document_recently_created_list = Icon( driver_name='fontawesome', symbol='asterisk' ) # Trashed documents icon_trash_can_empty = Icon( driver_name='fontawesome-dual-classes', primary_class='fas fa-trash-alt', secondary_class='fas fa-minus' ) icon_trashed_document_delete = Icon( driver_name='fontawesome', symbol='times' ) icon_trashed_document_list = Icon( driver_name='fontawesome', symbol='trash-alt' ) icon_trashed_document_multiple_delete = Icon( driver_name='fontawesome', symbol='trash-alt' ) icon_trashed_document_multiple_restore = Icon( driver_name='fontawesome', symbol='recycle' ) icon_trashed_document_restore = Icon( driver_name='fontawesome', symbol='recycle' )
31.571429
85
0.780694
1,247
9,945
5.80433
0.113071
0.154186
0.170213
0.300497
0.836419
0.776872
0.727825
0.672285
0.626416
0.499586
0
0.000901
0.107491
9,945
314
86
31.671975
0.814556
0.013474
0
0.297491
0
0
0.202918
0.002448
0
0
0
0
0
1
0
false
0
0.007168
0
0.007168
0.014337
0
0
0
null
0
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
48e511d3eac540e402a51cb8829d0ff9e49966fe
809
py
Python
src/ribo_api/models/page.py
RinPham/RiBo-Core
8c5a00a215b42aad2f6a4167b9cb97fe11d78823
[ "MIT" ]
null
null
null
src/ribo_api/models/page.py
RinPham/RiBo-Core
8c5a00a215b42aad2f6a4167b9cb97fe11d78823
[ "MIT" ]
null
null
null
src/ribo_api/models/page.py
RinPham/RiBo-Core
8c5a00a215b42aad2f6a4167b9cb97fe11d78823
[ "MIT" ]
null
null
null
from mongoengine import Document,EmbeddedDocument,fields class Page(Document): url = fields.StringField(required=True) dom_origin = fields.StringField(required=True) dom_origin_md5 = fields.StringField(required=True) dom_reduce_md5 = fields.StringField(required=True) leaves_node = fields.IntField(required=True) max_depth = fields.IntField(required=True) histogram_color = fields.StringField(required=True) full_screen = fields.StringField(required=True) test_screen = fields.StringField(required=False) listElement = fields.ListField(fields.EmbeddedDocumentField(Element), required=False) compare_img1 = fields.StringField(required=False, null=True) compare_img2 = fields.StringField(required=False, null=True) class Meta: app_label = 'no_sql'
40.45
89
0.765142
94
809
6.43617
0.425532
0.252893
0.371901
0.287603
0.361983
0.25124
0
0
0
0
0
0.005747
0.139679
809
19
90
42.578947
0.863506
0
0
0
0
0
0.007426
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.9375
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
d2d076470e461a539c7630ddf6bc2c34c62d58e6
99
py
Python
17-list-snapshots-based-on-time.py
inderpal2406/boto3-udemy-training
21935413f8a328f96c08dabf83178ae52d918e78
[ "MIT" ]
null
null
null
17-list-snapshots-based-on-time.py
inderpal2406/boto3-udemy-training
21935413f8a328f96c08dabf83178ae52d918e78
[ "MIT" ]
null
null
null
17-list-snapshots-based-on-time.py
inderpal2406/boto3-udemy-training
21935413f8a328f96c08dabf83178ae52d918e78
[ "MIT" ]
null
null
null
# This video lecture is skipped for now. It'll be revisited in future and script would be written.
49.5
98
0.777778
18
99
4.277778
0.944444
0
0
0
0
0
0
0
0
0
0
0
0.181818
99
1
99
99
0.950617
0.969697
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
9607079f150993eaf21059c40403c759d79a056f
233
py
Python
common_utils/resources.py
CroP-BioDiv/zcitools
52332b4013486e983f962c085236189292228a02
[ "MIT" ]
null
null
null
common_utils/resources.py
CroP-BioDiv/zcitools
52332b4013486e983f962c085236189292228a02
[ "MIT" ]
null
null
null
common_utils/resources.py
CroP-BioDiv/zcitools
52332b4013486e983f962c085236189292228a02
[ "MIT" ]
null
null
null
try: import psutil _data = psutil.virtual_memory() virtual_memory = _data.total except ImportError: # ToDo: shell command free import os virtual_memory = int(os.environ.get('VIRTUAL_MEMORY', 10**10)) # 10GB?
25.888889
75
0.686695
30
233
5.133333
0.633333
0.337662
0
0
0
0
0
0
0
0
0
0.032609
0.2103
233
8
76
29.125
0.804348
0.128755
0
0
0
0
0.07
0
0
0
0
0.125
0
1
0
false
0
0.428571
0
0.428571
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
1
0
0
0
0
4
960ae84e022ae7ca29b1c0e82005725f5a595f0f
91
py
Python
minisync/exceptions.py
zdexter/minisync
0de88c33968020883ef9e019209150d9dd419ef0
[ "MIT", "Unlicense" ]
1
2020-06-26T01:13:50.000Z
2020-06-26T01:13:50.000Z
minisync/exceptions.py
zdexter/minisync
0de88c33968020883ef9e019209150d9dd419ef0
[ "MIT", "Unlicense" ]
null
null
null
minisync/exceptions.py
zdexter/minisync
0de88c33968020883ef9e019209150d9dd419ef0
[ "MIT", "Unlicense" ]
null
null
null
class MinisyncError(Exception): pass class PermissionError(MinisyncError): pass
11.375
37
0.747253
8
91
8.5
0.625
0
0
0
0
0
0
0
0
0
0
0
0.186813
91
7
38
13
0.918919
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
4
960c0216995e39f7cc3a9cb52f81e8c604c691e8
233
py
Python
tests/test_genderize.py
ErikGartner/ghostdoc-ritter
d6ae8bb1e35495cd609b420f0820e334e9eecf61
[ "MIT" ]
1
2018-11-29T04:59:59.000Z
2018-11-29T04:59:59.000Z
tests/test_genderize.py
ErikGartner/ghostdoc-ritter
d6ae8bb1e35495cd609b420f0820e334e9eecf61
[ "MIT" ]
9
2016-04-13T23:01:53.000Z
2017-03-18T17:24:58.000Z
tests/test_genderize.py
ErikGartner/ghostdoc-ritter
d6ae8bb1e35495cd609b420f0820e334e9eecf61
[ "MIT" ]
null
null
null
import unittest from ritter.analytics.genderize import Genderize class GenderizeTest(unittest.TestCase): def test_extract_gem(self): gender = Genderize.guess_from_name('Erik') self.assertEquals(gender, 'male')
23.3
50
0.746781
27
233
6.296296
0.740741
0
0
0
0
0
0
0
0
0
0
0
0.16309
233
9
51
25.888889
0.871795
0
0
0
0
0
0.034335
0
0
0
0
0
0.166667
1
0.166667
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
96117c3a5ae0e1fda4d34629aa5d51a2d9ecc541
308
py
Python
qanda.py
abestic/qanda
a62eace153df4b34a744b904e6b1a17cfea93787
[ "MIT" ]
1
2020-10-19T19:14:40.000Z
2020-10-19T19:14:40.000Z
qanda.py
abestic/qanda
a62eace153df4b34a744b904e6b1a17cfea93787
[ "MIT" ]
null
null
null
qanda.py
abestic/qanda
a62eace153df4b34a744b904e6b1a17cfea93787
[ "MIT" ]
null
null
null
from app import create_app, db from app.models import User, Topic, Question, Answer app = create_app() # Provide python interpreter shell with this app's context @app.shell_context_processor def make_shell_context(): return {'db': db, 'User': User, 'Topic': Topic, 'Question': Question, 'Answer': Answer}
34.222222
89
0.75
45
308
5
0.488889
0.062222
0
0
0
0
0
0
0
0
0
0
0.133117
308
9
89
34.222222
0.842697
0.181818
0
0
0
0
0.099602
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0.166667
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
4
825646a8fdea6cc8b25497a35e05b9b72b42a73a
129
py
Python
userbot/clients/__init__.py
AppleBotz/Blvck-Userbot
eae12b6a0fdd980dcc4824a4432d74e468b6bcec
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/clients/__init__.py
AppleBotz/Blvck-Userbot
eae12b6a0fdd980dcc4824a4432d74e468b6bcec
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/clients/__init__.py
AppleBotz/Blvck-Userbot
eae12b6a0fdd980dcc4824a4432d74e468b6bcec
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
from .client_list import client_id, clients_list from .logger import man_userbot_on from .startup import man_client, multiman
32.25
49
0.829457
20
129
5.05
0.6
0.178218
0
0
0
0
0
0
0
0
0
0
0.131783
129
3
50
43
0.901786
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
82a3878c0fcf0e6f118acd971125d58cd32d3de1
34
py
Python
data/studio21_generated/introductory/4091/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/introductory/4091/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/introductory/4091/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
def which_note(key_press_count):
17
32
0.823529
6
34
4.166667
1
0
0
0
0
0
0
0
0
0
0
0
0.088235
34
2
33
17
0.806452
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
82c968098883afd537e81159791999d0b025b5f6
93
py
Python
setup.py
Vincydotzsh/StrapBot-testuu
0293bc8c3f771a80035a4af49f70c22ce4ee6d38
[ "MIT" ]
2
2020-10-29T13:55:56.000Z
2020-11-04T09:34:00.000Z
setup.py
Vincydotzsh/StrapBot-testuu
0293bc8c3f771a80035a4af49f70c22ce4ee6d38
[ "MIT" ]
null
null
null
setup.py
Vincydotzsh/StrapBot-testuu
0293bc8c3f771a80035a4af49f70c22ce4ee6d38
[ "MIT" ]
null
null
null
from setuptools import setup setup(name="testuu", install_requires=["aiohttp", "aiofiles"])
23.25
62
0.763441
11
93
6.363636
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.086022
93
3
63
31
0.823529
0
0
0
0
0
0.225806
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
82d7b8082459d9fc35044dcb97f02c446080b328
64
py
Python
orange3/Orange/canvas/application/__init__.py
rgschmitz1/BioDepot-workflow-builder
f74d904eeaf91ec52ec9b703d9fb38e9064e5a66
[ "MIT" ]
54
2017-01-08T17:21:49.000Z
2021-11-02T08:46:07.000Z
orange3/Orange/canvas/application/__init__.py
Synthia-3/BioDepot-workflow-builder
4ee93abe2d79465755e82a145af3b6a6e1e79fd4
[ "MIT" ]
22
2017-03-28T06:03:14.000Z
2021-07-28T05:43:55.000Z
orange3/Orange/canvas/application/__init__.py
Synthia-3/BioDepot-workflow-builder
4ee93abe2d79465755e82a145af3b6a6e1e79fd4
[ "MIT" ]
21
2017-01-26T21:12:09.000Z
2022-01-31T21:34:59.000Z
""" Main Orange Canvas Application and supporting classes. """
12.8
54
0.734375
7
64
6.714286
1
0
0
0
0
0
0
0
0
0
0
0
0.15625
64
4
55
16
0.87037
0.84375
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
82daac29dade4cb46eb91fe2be30056138a14753
85
py
Python
core/__init__.py
malgulam/PyGit
67976deb9baec597349587e73a8b0bbc1fe81cae
[ "MIT" ]
null
null
null
core/__init__.py
malgulam/PyGit
67976deb9baec597349587e73a8b0bbc1fe81cae
[ "MIT" ]
null
null
null
core/__init__.py
malgulam/PyGit
67976deb9baec597349587e73a8b0bbc1fe81cae
[ "MIT" ]
2
2020-10-11T18:54:40.000Z
2021-03-18T04:56:05.000Z
#core __init__.py import sys sys.path.append('.') from core.Commands import Commands
17
34
0.776471
13
85
4.769231
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.105882
85
4
35
21.25
0.815789
0.188235
0
0
0
0
0.014706
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
82e06964c53d1eac4b07755eca8d1ab70ed59c11
170
py
Python
mii_unpacker/views.py
MiiRaGe/miilibrary
f613c6654f21db62668a6a9d68e6678fdd2a1d03
[ "MIT" ]
null
null
null
mii_unpacker/views.py
MiiRaGe/miilibrary
f613c6654f21db62668a6a9d68e6678fdd2a1d03
[ "MIT" ]
1
2018-01-26T15:52:51.000Z
2018-01-26T15:52:51.000Z
mii_unpacker/views.py
MiiRaGe/miilibrary
f613c6654f21db62668a6a9d68e6678fdd2a1d03
[ "MIT" ]
null
null
null
from django.http import HttpResponse from mii_unpacker.tasks import unpack def start_unpacker(request): unpack.delay() return HttpResponse('OK, unpack started')
24.285714
45
0.782353
22
170
5.954545
0.727273
0
0
0
0
0
0
0
0
0
0
0
0.141176
170
7
45
24.285714
0.89726
0
0
0
0
0
0.105263
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
7d59f6721ff1ba4dde3257bf4e8ca7f998692640
10,300
py
Python
src/grpc_connector/client_pb2_grpc.py
tub-elastest/epm-adapter-vbox
b6fa35b6cdc8d80057756daeadc0f9cd6b6f43a9
[ "Apache-2.0" ]
null
null
null
src/grpc_connector/client_pb2_grpc.py
tub-elastest/epm-adapter-vbox
b6fa35b6cdc8d80057756daeadc0f9cd6b6f43a9
[ "Apache-2.0" ]
null
null
null
src/grpc_connector/client_pb2_grpc.py
tub-elastest/epm-adapter-vbox
b6fa35b6cdc8d80057756daeadc0f9cd6b6f43a9
[ "Apache-2.0" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc import src.grpc_connector.client_pb2 as client__pb2 class OperationHandlerStub(object): # missing associated documentation comment in .proto file pass def __init__(self, channel): """Constructor. Args: channel: A grpc.Channel. """ self.Create = channel.unary_unary( '/OperationHandler/Create', request_serializer=client__pb2.FileMessage.SerializeToString, response_deserializer=client__pb2.ResourceGroupProto.FromString, ) self.Remove = channel.unary_unary( '/OperationHandler/Remove', request_serializer=client__pb2.TerminateMessage.SerializeToString, response_deserializer=client__pb2.Empty.FromString, ) self.Stop = channel.unary_unary( '/OperationHandler/Stop', request_serializer=client__pb2.ResourceIdentifier.SerializeToString, response_deserializer=client__pb2.Empty.FromString, ) self.CheckIfResourceExists = channel.unary_unary( '/OperationHandler/CheckIfResourceExists', request_serializer=client__pb2.ResourceIdentifier.SerializeToString, response_deserializer=client__pb2.StringResponse.FromString, ) self.CheckIfResourceRunning = channel.unary_unary( '/OperationHandler/CheckIfResourceRunning', request_serializer=client__pb2.ResourceIdentifier.SerializeToString, response_deserializer=client__pb2.StringResponse.FromString, ) self.Start = channel.unary_unary( '/OperationHandler/Start', request_serializer=client__pb2.ResourceIdentifier.SerializeToString, response_deserializer=client__pb2.Empty.FromString, ) self.ExecuteCommand = channel.unary_unary( '/OperationHandler/ExecuteCommand', request_serializer=client__pb2.RuntimeMessage.SerializeToString, response_deserializer=client__pb2.StringResponse.FromString, ) self.DownloadFile = channel.unary_unary( '/OperationHandler/DownloadFile', request_serializer=client__pb2.RuntimeMessage.SerializeToString, response_deserializer=client__pb2.FileMessage.FromString, ) self.UploadFile = channel.unary_unary( '/OperationHandler/UploadFile', request_serializer=client__pb2.RuntimeMessage.SerializeToString, response_deserializer=client__pb2.Empty.FromString, ) self.CheckStatus = channel.unary_unary( '/OperationHandler/CheckStatus', request_serializer=client__pb2.Empty.SerializeToString, response_deserializer=client__pb2.Status.FromString, ) class OperationHandlerServicer(object): # missing associated documentation comment in .proto file pass def Create(self, request, context): # missing associated documentation comment in .proto file pass context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def Remove(self, request, context): # missing associated documentation comment in .proto file pass context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def Stop(self, request, context): # missing associated documentation comment in .proto file pass context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def CheckIfResourceExists(self, request, context): # missing associated documentation comment in .proto file pass context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def CheckIfResourceRunning(self, request, context): # missing associated documentation comment in .proto file pass context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def Start(self, request, context): # missing associated documentation comment in .proto file pass context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def ExecuteCommand(self, request, context): # missing associated documentation comment in .proto file pass context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def DownloadFile(self, request, context): # missing associated documentation comment in .proto file pass context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def UploadFile(self, request, context): # missing associated documentation comment in .proto file pass context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def CheckStatus(self, request, context): # missing associated documentation comment in .proto file pass context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def add_OperationHandlerServicer_to_server(servicer, server): rpc_method_handlers = { 'Create': grpc.unary_unary_rpc_method_handler( servicer.Create, request_deserializer=client__pb2.FileMessage.FromString, response_serializer=client__pb2.ResourceGroupProto.SerializeToString, ), 'Remove': grpc.unary_unary_rpc_method_handler( servicer.Remove, request_deserializer=client__pb2.TerminateMessage.FromString, response_serializer=client__pb2.Empty.SerializeToString, ), 'Stop': grpc.unary_unary_rpc_method_handler( servicer.Stop, request_deserializer=client__pb2.ResourceIdentifier.FromString, response_serializer=client__pb2.Empty.SerializeToString, ), 'CheckIfResourceExists': grpc.unary_unary_rpc_method_handler( servicer.CheckIfResourceExists, request_deserializer=client__pb2.ResourceIdentifier.FromString, response_serializer=client__pb2.StringResponse.SerializeToString, ), 'CheckIfResourceRunning': grpc.unary_unary_rpc_method_handler( servicer.CheckIfResourceRunning, request_deserializer=client__pb2.ResourceIdentifier.FromString, response_serializer=client__pb2.StringResponse.SerializeToString, ), 'Start': grpc.unary_unary_rpc_method_handler( servicer.Start, request_deserializer=client__pb2.ResourceIdentifier.FromString, response_serializer=client__pb2.Empty.SerializeToString, ), 'ExecuteCommand': grpc.unary_unary_rpc_method_handler( servicer.ExecuteCommand, request_deserializer=client__pb2.RuntimeMessage.FromString, response_serializer=client__pb2.StringResponse.SerializeToString, ), 'DownloadFile': grpc.unary_unary_rpc_method_handler( servicer.DownloadFile, request_deserializer=client__pb2.RuntimeMessage.FromString, response_serializer=client__pb2.FileMessage.SerializeToString, ), 'UploadFile': grpc.unary_unary_rpc_method_handler( servicer.UploadFile, request_deserializer=client__pb2.RuntimeMessage.FromString, response_serializer=client__pb2.Empty.SerializeToString, ), 'CheckStatus': grpc.unary_unary_rpc_method_handler( servicer.CheckStatus, request_deserializer=client__pb2.Empty.FromString, response_serializer=client__pb2.Status.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( 'OperationHandler', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) class AdapterHandlerStub(object): # missing associated documentation comment in .proto file pass def __init__(self, channel): """Constructor. Args: channel: A grpc.Channel. """ self.RegisterAdapter = channel.unary_unary( '/AdapterHandler/RegisterAdapter', request_serializer=client__pb2.AdapterProto.SerializeToString, response_deserializer=client__pb2.ResourceIdentifier.FromString, ) self.DeleteAdapter = channel.unary_unary( '/AdapterHandler/DeleteAdapter', request_serializer=client__pb2.ResourceIdentifier.SerializeToString, response_deserializer=client__pb2.Empty.FromString, ) class AdapterHandlerServicer(object): # missing associated documentation comment in .proto file pass def RegisterAdapter(self, request, context): # missing associated documentation comment in .proto file pass context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def DeleteAdapter(self, request, context): # missing associated documentation comment in .proto file pass context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def add_AdapterHandlerServicer_to_server(servicer, server): rpc_method_handlers = { 'RegisterAdapter': grpc.unary_unary_rpc_method_handler( servicer.RegisterAdapter, request_deserializer=client__pb2.AdapterProto.FromString, response_serializer=client__pb2.ResourceIdentifier.SerializeToString, ), 'DeleteAdapter': grpc.unary_unary_rpc_method_handler( servicer.DeleteAdapter, request_deserializer=client__pb2.ResourceIdentifier.FromString, response_serializer=client__pb2.Empty.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( 'AdapterHandler', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,))
39.76834
79
0.745825
982
10,300
7.547862
0.087576
0.060712
0.061522
0.07987
0.775634
0.711819
0.711819
0.624663
0.594846
0.594846
0
0.005901
0.177379
10,300
258
80
39.922481
0.868878
0.102718
0
0.509804
1
0
0.116661
0.042877
0
0
0
0
0
1
0.078431
false
0.078431
0.009804
0
0.107843
0
0
0
0
null
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
7d603e6f16fa93e625f8d5f7f441c35a17b1f6f6
85
py
Python
py_tdlib/constructors/push_receiver_id.py
Mr-TelegramBot/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
24
2018-10-05T13:04:30.000Z
2020-05-12T08:45:34.000Z
py_tdlib/constructors/push_receiver_id.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
3
2019-06-26T07:20:20.000Z
2021-05-24T13:06:56.000Z
py_tdlib/constructors/push_receiver_id.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
5
2018-10-05T14:29:28.000Z
2020-08-11T15:04:10.000Z
from ..factory import Type class pushReceiverId(Type): id = None # type: "int64"
14.166667
27
0.694118
11
85
5.363636
0.818182
0
0
0
0
0
0
0
0
0
0
0.028986
0.188235
85
5
28
17
0.826087
0.152941
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
7d7eddef545c0b5f929d263a40e0c56776833238
775
py
Python
vtkVmtk/vtkvmtk.py
haehn/vmtk
e8e2ee9f9bea6a1839a75b57caf82f6a86944db0
[ "Apache-2.0" ]
1
2017-02-23T09:31:53.000Z
2017-02-23T09:31:53.000Z
vtkVmtk/vtkvmtk.py
haehn/vmtk
e8e2ee9f9bea6a1839a75b57caf82f6a86944db0
[ "Apache-2.0" ]
null
null
null
vtkVmtk/vtkvmtk.py
haehn/vmtk
e8e2ee9f9bea6a1839a75b57caf82f6a86944db0
[ "Apache-2.0" ]
null
null
null
""" This module loads all the classes from the vtkBvg library into its namespace. This is a required module.""" import os import vtk if os.name == 'posix': from libvtkvmtkCommonPython import * from libvtkvmtkComputationalGeometryPython import * from libvtkvmtkDifferentialGeometryPython import * from libvtkvmtkIOPython import * from libvtkvmtkMiscPython import * from libvtkvmtkSegmentationPython import * from libvtkvmtkITKPython import * else: from vtkvmtkCommonPython import * from vtkvmtkComputationalGeometryPython import * from vtkvmtkDifferentialGeometryPython import * from vtkvmtkIOPython import * from vtkvmtkMiscPython import * from vtkvmtkSegmentationPython import * from vtkvmtkITKPython import *
32.291667
70
0.771613
69
775
8.666667
0.521739
0.200669
0
0
0
0
0
0
0
0
0
0
0.190968
775
23
71
33.695652
0.953748
0.135484
0
0
0
0
0.007541
0
0
0
0
0
0
1
0
true
0
0.888889
0
0.888889
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
7d8532888ad2285e9d27a00b17af38fe6bf0ca61
291
py
Python
city_scrapers/mixins/__init__.py
EthanHolleman/city-scrapers
a3d68be22b37525859f1189f2bd7150f94545c3a
[ "MIT" ]
null
null
null
city_scrapers/mixins/__init__.py
EthanHolleman/city-scrapers
a3d68be22b37525859f1189f2bd7150f94545c3a
[ "MIT" ]
null
null
null
city_scrapers/mixins/__init__.py
EthanHolleman/city-scrapers
a3d68be22b37525859f1189f2bd7150f94545c3a
[ "MIT" ]
null
null
null
from .chi_mayors_advisory_councils import ChiMayorsAdvisoryCouncilsMixin # noqa from .det_authority import DetAuthorityMixin # noqa from .det_city import DetCityMixin # noqa from .det_retirement import DetRetirementMixin # noqa from .wayne_commission import WayneCommissionMixin # noqa
48.5
80
0.845361
32
291
7.46875
0.5625
0.133891
0.138075
0
0
0
0
0
0
0
0
0
0.120275
291
5
81
58.2
0.933594
0.082474
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
7d89a5b0acfe0454bd51a46ea5b82d2ef76ab42d
3,555
py
Python
apps/patrimonio/apps/combustivel/apps/km/urls.py
mequetrefe-do-subtroco/web_constel
57b5626fb17b4fefc740cbe1ac95fd4ab90147bc
[ "MIT" ]
1
2020-06-18T09:03:53.000Z
2020-06-18T09:03:53.000Z
apps/patrimonio/apps/combustivel/apps/km/urls.py
gabrielhjs/web_constel
57b5626fb17b4fefc740cbe1ac95fd4ab90147bc
[ "MIT" ]
33
2020-06-16T18:59:33.000Z
2021-08-12T21:33:17.000Z
apps/patrimonio/apps/combustivel/apps/km/urls.py
gabrielhjs/web_constel
57b5626fb17b4fefc740cbe1ac95fd4ab90147bc
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path( 'patrimonio/combustivel/km/', views.view_menu_principal, name='patrimonio_combustivel_km' ), path( 'patrimonio/combustivel/km/registros/', views.view_menu_registros, name='patrimonio_combustivel_km_registros' ), path( 'patrimonio/combustivel/km/registros/inicial/', views.view_registrar_km_inicial, name='patrimonio_combustivel_km_registros_inicial' ), path( 'patrimonio/combustivel/km/registros/final/', views.view_registrar_km_final, name='patrimonio_combustivel_km_registros_final' ), path( 'patrimonio/combustivel/km/registros/inicial/<int:user_id>/', views.view_registrar_km_inicial_detalhes, name='patrimonio_combustivel_km_registros_inicial_detalhes', ), path( 'patrimonio/combustivel/km/registros/final/<int:user_id>/<int:km_id>/', views.view_registrar_km_final_detalhes, name='patrimonio_combustivel_km_registros_final_detalhes', ), path( 'patrimonio/combustivel/km/registros/falta/', views.view_registrar_falta, name='patrimonio_combustivel_km_registros_falta' ), path( 'patrimonio/combustivel/km/registros/pendencia/', views.view_registrar_pendencia, name='patrimonio_combustivel_km_registros_pendencia' ), path( 'patrimonio/combustivel/km/registros/funcionario/', views.view_registrar_km_inicial_sem_equipe, name='patrimonio_combustivel_km_registros_incial_sem_equipe' ), path( 'patrimonio/combustivel/km/edicoes/', views.view_menu_edicoes, name='patrimonio_combustivel_km_edicoes' ), path( 'patrimonio/combustivel/km/edicoes/registro/', views.view_editar_registro, name='patrimonio_combustivel_km_editar_registro' ), path( 'patrimonio/combustivel/km/edicoes/registro/<int:registro_id>/', views.view_editar_registro_detalhe, name='patrimonio_combustivel_km_editar_registro_detalhe' ), path( 'patrimonio/combustivel/km/consultas/', views.view_menu_consultas, name='patrimonio_combustivel_km_consultas' ), path( 'patrimonio/combustivel/km/consultas/equipe/', views.view_consulta_km_time, name='patrimonio_combustivel_km_consultas_time' ), path( 'patrimonio/combustivel/km/consultas/hoje/', views.view_consulta_km_hoje, name='patrimonio_combustivel_km_consultas_hoje' ), path( 'patrimonio/combustivel/km/consultas/pendencias/hoje/', views.view_consulta_km_pendencias_hoje, name='patrimonio_combustivel_km_consultas_pendencias_hoje' ), path( 'patrimonio/combustivel/km/consultas/pendencias/hoje/<str:gestor_id>/', views.view_consulta_km_pendencias_hoje_detalhe, name='patrimonio_combustivel_km_consultas_pendencias_hoje_detalhe' ), path( 'patrimonio/combustivel/km/consultas/registros/', views.view_consulta_registros, name='patrimonio_combustivel_km_consultas_registros' ), path( 'patrimonio/combustivel/km/relatorios/', views.view_menu_relatorios, name='patrimonio_combustivel_km_relatorios' ), path( 'patrimonio/combustivel/km/relatorios/geral/', views.view_relatorio_geral, name='patrimonio_combustivel_km_relatorios_geral' ), ]
32.916667
79
0.691139
359
3,555
6.442897
0.116992
0.363165
0.397752
0.233463
0.789451
0.417639
0.088197
0.046693
0
0
0
0
0.212377
3,555
107
80
33.224299
0.826071
0
0
0.384615
0
0
0.49789
0.49789
0
0
0
0
0
1
0
false
0
0.019231
0
0.019231
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
7dbe732a2c0b2fb001557ee434b73faa62cc07f2
47,539
py
Python
pytests/tuqquery/tuq_tutorial.py
ramalingam-cb/testrunner
81cea7a5a493cf0c67fca7f97c667cd3c6ad2142
[ "Apache-2.0" ]
null
null
null
pytests/tuqquery/tuq_tutorial.py
ramalingam-cb/testrunner
81cea7a5a493cf0c67fca7f97c667cd3c6ad2142
[ "Apache-2.0" ]
null
null
null
pytests/tuqquery/tuq_tutorial.py
ramalingam-cb/testrunner
81cea7a5a493cf0c67fca7f97c667cd3c6ad2142
[ "Apache-2.0" ]
null
null
null
import json from basetestcase import BaseTestCase class TuqTutorialTests(BaseTestCase): def test_queries_tutorial(self): """ html encode for some spectial characters: char html % %25 % char needs to convert in test 13 ` %60 backtick char needs to convert in game-data (test 50) """ api = "http://query.pub.couchbase.com/query" queries = {"01":"SELECT 'Hello World' AS Greeting", "02":"SELECT * FROM tutorial WHERE fname = 'Ian'", "03":"SELECT children[0].fname AS cname FROM tutorial WHERE fname='Dave'", "04":"SELECT META(tutorial) AS meta FROM tutorial", "05":"SELECT fname, age, age/7 AS age_dog_years FROM tutorial WHERE fname = 'Dave'", "06":"SELECT fname, age, ROUND(age/7) AS age_dog_years FROM tutorial WHERE fname = 'Dave'", "07":"SELECT fname || ' ' || lname AS full_name FROM tutorial", "08":"SELECT fname, age FROM tutorial WHERE age > 30", "09":"SELECT fname, email FROM tutorial WHERE email LIKE '%25@yahoo.com'", "10":"SELECT DISTINCT orderlines[0].productId FROM orders", "11":"SELECT fname, children FROM tutorial WHERE children IS NULL", "12":"SELECT fname, children FROM tutorial WHERE ANY child IN tutorial.children SATISFIES child.age > 10 END", "13":"SELECT fname, email, children FROM tutorial WHERE ARRAY_LENGTH(children) > 0 AND email LIKE '%25@gmail.com'", "14":"SELECT fname, email FROM tutorial USE KEYS ['dave', 'ian']", "15":"SELECT children[0:2] FROM tutorial WHERE children[0:2] IS NOT MISSING", "16":"SELECT fname || ' ' || lname AS full_name, email, children[0:2] AS offsprings FROM tutorial WHERE email LIKE '%25@yahoo.com' OR ANY child IN tutorial.children SATISFIES child.age > 10 END", "17":"SELECT fname, age FROM tutorial ORDER BY age", "18":"SELECT fname, age FROM tutorial ORDER BY age LIMIT 2", "19":"SELECT COUNT(*) AS count FROM tutorial", "20":"SELECT relation, COUNT(*) AS count FROM tutorial GROUP BY relation", "21":"SELECT relation, COUNT(*) AS count FROM tutorial GROUP BY relation HAVING COUNT(*) > 1", "22":"SELECT ARRAY child.fname FOR child IN tutorial.children END AS children_names FROM tutorial WHERE children IS NOT NULL", "23":"SELECT t.relation, COUNT(*) AS count, AVG(c.age) AS avg_age FROM tutorial t UNNEST t.children c WHERE c.age > 10 GROUP BY t.relation HAVING COUNT(*) > 1 ORDER BY avg_age DESC LIMIT 1 OFFSET 1", "24":"SELECT usr.personal_details, orders FROM users_with_orders usr USE KEYS 'Elinor_33313792' JOIN orders_with_users orders ON KEYS ARRAY s.order_id FOR s IN usr.shipped_order_history END", "25":"SELECT usr.personal_details, orders FROM users_with_orders usr USE KEYS 'Tamekia_13483660' LEFT JOIN orders_with_users orders ON KEYS ARRAY s.order_id FOR s IN usr.shipped_order_history END", "26":"SELECT usr.personal_details, orders FROM users_with_orders usr USE KEYS 'Elinor_33313792' NEST orders_with_users orders ON KEYS ARRAY s.order_id FOR s IN usr.shipped_order_history END", "27":"SELECT * FROM tutorial AS contact UNNEST contact.children WHERE contact.fname = 'Dave'", "28":"SELECT u.personal_details.display_name name, s AS order_no, o.product_details FROM users_with_orders u USE KEYS 'Aide_48687583' UNNEST u.shipped_order_history s JOIN users_with_orders o ON KEYS s.order_id", "29":"EXPLAIN INSERT INTO tutorial (KEY, VALUE) VALUES ('baldwin', {'name':'Alex Baldwin', 'type':'contact'})", "30":"EXPLAIN DELETE FROM tutorial t USE KEYS 'baldwin' RETURNING t", "31":"EXPLAIN UPDATE tutorial USE KEYS \"baldwin\" SET type = \"actor\" RETURNING tutorial.type", "32":"SELECT COUNT(*) AS product_count FROM product", "33":"SELECT * FROM product UNNEST product.categories AS cat WHERE LOWER(cat) in [\"golf\"] LIMIT 10 OFFSET 10", "34":"SELECT DISTINCT categories FROM product UNNEST product.categories AS categories", "35":"SELECT productId, name FROM product WHERE LOWER(name) LIKE '%25cup%25'", "36":"SELECT product FROM product UNNEST product.categories AS categories WHERE categories = 'Appliances'", "37":"SELECT product.name, COUNT(reviews) AS reviewCount, ROUND(AVG(reviews.rating),1) AS AvgRating, category FROM reviews AS reviews JOIN product AS product ON KEYS reviews.productId UNNEST product.categories AS category WHERE category = 'Appliances' GROUP BY category, product ORDER BY AvgRating DESC LIMIT 3", "38":"SELECT product.name, product.dateAdded, SUM(items.count) AS unitsSold FROM purchases UNNEST purchases.lineItems AS items JOIN product ON KEYS items.product GROUP BY product ORDER BY product.dateAdded, unitsSold DESC LIMIT 10", "39":"SELECT product.name, product.unitPrice, product.categories FROM product UNNEST product.categories AS categories WHERE categories = 'Appliances' AND product.unitPrice < 6.99", "40":"SELECT product.name, SUM(items.count) AS unitsSold FROM purchases UNNEST purchases.lineItems AS items JOIN product ON KEYS items.product GROUP BY product ORDER BY unitsSold DESC LIMIT 10", "41":"SELECT product.name, ROUND(AVG(reviews.rating),1) AS avg_rating FROM reviews JOIN product ON KEYS reviews.productId GROUP BY product ORDER BY AVG(reviews.rating) DESC LIMIT 5", "42":"SELECT purchases, product, customer FROM purchases USE KEYS 'purchase0' UNNEST purchases.lineItems AS items JOIN product ON KEYS items.product JOIN customer ON KEYS purchases.customerId", "43":"SELECT customer.firstName, customer.lastName, customer.emailAddress, SUM(items.count) purchaseCount, ROUND(SUM(product.unitPrice * items.count)) totalSpent FROM purchases UNNEST purchases.lineItems AS items JOIN product ON KEYS items.product JOIN customer ON KEYS purchases.customerId GROUP BY customer ORDER BY totalSpent DESC LIMIT 10", "44":"SELECT COUNT(customer) AS customerCount, state FROM customer GROUP BY state ORDER BY customerCount DESC", "45":"SELECT COUNT(DISTINCT purchases.customerId) FROM purchases WHERE STR_TO_MILLIS(purchases.purchasedAt) BETWEEN STR_TO_MILLIS('2014-02-01') AND STR_TO_MILLIS('2014-03-01')", "46":"SELECT product, AVG(reviews.rating) avgRating, COUNT(reviews) numReviews FROM product JOIN reviews ON KEYS product.reviewList GROUP BY product HAVING AVG(reviews.rating) < 1", "47":"SELECT SUBSTR(purchases.purchasedAt, 0, 7) as month, ROUND(SUM(product.unitPrice * items.count)/1000000, 3) revenueMillion FROM purchases UNNEST purchases.lineItems AS items JOIN product ON KEYS items.product GROUP BY SUBSTR(purchases.purchasedAt, 0, 7) ORDER BY month", "48":"SELECT purchases.purchaseId, l.product, prod.name FROM purchases UNNEST purchases.lineItems l JOIN product prod ON KEYS l.product WHERE DATE_PART_STR(purchases.purchasedAt,'month') = 4 AND DATE_PART_STR(purchases.purchasedAt,'year') = 2014 AND prod.unitPrice > 500", "49":"SELECT * FROM jungleville_inbox LIMIT 1", "50":"SELECT * FROM jungleville AS %60game-data%60 JOIN jungleville_stats AS stats ON KEYS 'zid-jungle-stats-0001' NEST jungleville_inbox AS inbox ON KEYS 'zid-jungle-inbox-0001' WHERE %60game-data%60.uuid='zid-jungle-0001'", "51":"SELECT player.name, inbox.messages FROM jungleville AS player USE KEYS 'zid-jungle-0001' LEFT JOIN jungleville_inbox AS inbox ON KEYS 'zid-jungle-inbox-' || SUBSTR(player.uuid, 11)", "52":"SELECT stats.uuid AS player, hist.uuid AS opponent, SUM(CASE WHEN hist.result = 'won' THEN 1 ELSE 0 END) AS wins, SUM(CASE WHEN hist.result = 'lost' THEN 1 ELSE 0 END) AS losses FROM jungleville_stats AS stats USE KEYS 'zid-jungle-stats-0004' UNNEST stats.%60pvp-hist%60 AS hist GROUP BY stats.uuid, hist.uuid", "53":"SELECT player.name, player.level, stats.loadtime, SUM(CASE WHEN hist.result = 'won' THEN 1 ELSE 0 END) AS wins FROM jungleville_stats AS stats UNNEST stats.%60pvp-hist%60 AS hist JOIN jungleville AS player ON KEYS stats.uuid GROUP BY player, stats ORDER BY wins DESC, player.level DESC", "54":"SELECT jungleville.level, friends FROM jungleville USE KEYS 'zid-jungle-0002' JOIN jungleville.friends ON KEYS jungleville.friends"} results = {"01":"[{u'Greeting': u'Hello World'}]", "02":"[{u'tutorial': {u'title': u'Mr.', u'age': 56, u'email': u'ian@gmail.com', u'lname': u'Taylor', u'relation': u'cousin', u'fname': u'Ian', u'hobbies': [u'golf', u'surfing'], u'type': u'contact', u'children': [{u'gender': u'm', u'age': 17, u'fname': u'Abama'}, {u'gender': u'm', u'age': 21, u'fname': u'Bebama'}]}}]", "03":"[{u'cname': u'Aiden'}]", "04":"[{u'meta': {u'id': u'dave'}}, {u'meta': {u'id': u'earl'}}, {u'meta': {u'id': u'fred'}}, {u'meta': {u'id': u'harry'}}, {u'meta': {u'id': u'ian'}}, {u'meta': {u'id': u'jane'}}]", "05":"[{u'age_dog_years': 6.571428571428571, u'age': 46, u'fname': u'Dave'}]", "06":"[{u'age_dog_years': 7, u'age': 46, u'fname': u'Dave'}]", "07":"[{u'full_name': u'Dave Smith'}, {u'full_name': u'Earl Johnson'}, {u'full_name': u'Fred Jackson'}, {u'full_name': u'Harry Jackson'}, {u'full_name': u'Ian Taylor'}, {u'full_name': u'Jane Edwards'}]", "08":"[{u'age': 46, u'fname': u'Dave'}, {u'age': 46, u'fname': u'Earl'}, {u'age': 56, u'fname': u'Ian'}, {u'age': 40, u'fname': u'Jane'}]", "09":"[{u'email': u'harry@yahoo.com', u'fname': u'Harry'}]", "10":"[{u'productId': u'coffee01'}, {u'productId': u'tea111'}]", "11":"[{u'children': None, u'fname': u'Fred'}]", "12":"[{u'children': [{u'gender': u'm', u'age': 17, u'fname': u'Aiden'}, {u'gender': u'f', u'age': 2, u'fname': u'Bill'}], u'fname': u'Dave'}, {u'children': [{u'gender': u'f', u'age': 17, u'fname': u'Xena'}, {u'gender': u'm', u'age': 2, u'fname': u'Yuri'}], u'fname': u'Earl'}, {u'children': [{u'gender': u'm', u'age': 17, u'fname': u'Abama'}, {u'gender': u'm', u'age': 21, u'fname': u'Bebama'}], u'fname': u'Ian'}]", "13":"[{u'children': [{u'gender': u'm', u'age': 17, u'fname': u'Aiden'}, {u'gender': u'f', u'age': 2, u'fname': u'Bill'}], u'fname': u'Dave', u'email': u'dave@gmail.com'}, {u'children': [{u'gender': u'f', u'age': 17, u'fname': u'Xena'}, {u'gender': u'm', u'age': 2, u'fname': u'Yuri'}], u'fname': u'Earl', u'email': u'earl@gmail.com'}, {u'children': [{u'gender': u'm', u'age': 17, u'fname': u'Abama'}, {u'gender': u'm', u'age': 21, u'fname': u'Bebama'}], u'fname': u'Ian', u'email': u'ian@gmail.com'}]", "14":"[{u'email': u'dave@gmail.com', u'fname': u'Dave'}, {u'email': u'ian@gmail.com', u'fname': u'Ian'}]", "15":"[{u'$1': [{u'gender': u'm', u'age': 17, u'fname': u'Aiden'}, {u'gender': u'f', u'age': 2, u'fname': u'Bill'}]}, {u'$1': [{u'gender': u'f', u'age': 17, u'fname': u'Xena'}, {u'gender': u'm', u'age': 2, u'fname': u'Yuri'}]}, {u'$1': None}, {u'$1': [{u'gender': u'm', u'age': 17, u'fname': u'Abama'}, {u'gender': u'm', u'age': 21, u'fname': u'Bebama'}]}]", "16":"[{u'email': u'dave@gmail.com', u'full_name': u'Dave Smith', u'offsprings': [{u'gender': u'm', u'age': 17, u'fname': u'Aiden'}, {u'gender': u'f', u'age': 2, u'fname': u'Bill'}]}, {u'email': u'earl@gmail.com', u'full_name': u'Earl Johnson', u'offsprings': [{u'gender': u'f', u'age': 17, u'fname': u'Xena'}, {u'gender': u'm', u'age': 2, u'fname': u'Yuri'}]}, {u'email': u'harry@yahoo.com', u'full_name': u'Harry Jackson'}, {u'email': u'ian@gmail.com', u'full_name': u'Ian Taylor', u'offsprings': [{u'gender': u'm', u'age': 17, u'fname': u'Abama'}, {u'gender': u'm', u'age': 21, u'fname': u'Bebama'}]}]", "17":"[{u'age': 18, u'fname': u'Fred'}, {u'age': 20, u'fname': u'Harry'}, {u'age': 40, u'fname': u'Jane'}, {u'age': 46, u'fname': u'Dave'}, {u'age': 46, u'fname': u'Earl'}, {u'age': 56, u'fname': u'Ian'}]", "18":"[{u'age': 18, u'fname': u'Fred'}, {u'age': 20, u'fname': u'Harry'}]", "19":"[{u'count': 6}]", "20":"[{u'count': 1, u'relation': u'parent'}, {u'count': 2, u'relation': u'cousin'}, {u'count': 2, u'relation': u'friend'}, {u'count': 1, u'relation': u'coworker'}]", "21":"[{u'count': 2, u'relation': u'cousin'}, {u'count': 2, u'relation': u'friend'}]", "22":"[{u'children_names': [u'Aiden', u'Bill']}, {u'children_names': [u'Xena', u'Yuri']}, {u'children_names': [u'Abama', u'Bebama']}]", "23":"[{u'count': 2, u'avg_age': 17, u'relation': u'friend'}]", "24":"[{u'orders': {u'doc_type': u'order', u'user_id': u'Elinor_33313792', u'shipping_details': {u'shipping_type': u'Express', u'shipping_status': u'Delivered', u'shipping_charges': 5}, u'order_details': {u'order_id': u'T103929516925', u'order_datetime': u'Wed Jun 6 18:53:39 2012'}, u'product_details': {u'currency': u'EUR', u'sale_price': 303, u'list_price': 318, u'pct_discount': 5, u'product_id': u'P3109994453'}, u'payment_details': {u'payment_mode': u'Debit Card', u'total_charges': 308}}, u'personal_details': {u'first_name': u'Elinor', u'last_name': u'Ritchie', u'display_name': u'Elinor Ritchie', u'age': 60, u'state': u'Arizona', u'email': u'Elinor.Ritchie@snailmail.com'}}, {u'orders': {u'doc_type': u'order', u'user_id': u'Elinor_33313792', u'shipping_details': {u'shipping_type': u'Regular', u'shipping_status': u'Delivered', u'shipping_charges': 2}, u'order_details': {u'order_id': u'T573145204032', u'order_datetime': u'Thu Aug 11 18:53:39 2011'}, u'product_details': {u'currency': u'GBP', u'sale_price': 567, u'list_price': 666, u'pct_discount': 15, u'product_id': u'P9315874155'}, u'payment_details': {u'payment_mode': u'NetBanking', u'total_charges': 569}}, u'personal_details': {u'first_name': u'Elinor', u'last_name': u'Ritchie', u'display_name': u'Elinor Ritchie', u'age': 60, u'state': u'Arizona', u'email': u'Elinor.Ritchie@snailmail.com'}}]", "25":"[{u'personal_details': {u'first_name': u'Tamekia', u'last_name': u'Akin', u'display_name': u'Tamekia Akin', u'age': 39, u'state': u'Massachusetts', u'email': u'Tamekia.Akin@snailmail.com'}}]", "26":"[{u'orders': [{u'doc_type': u'order', u'user_id': u'Elinor_33313792', u'shipping_details': {u'shipping_type': u'Express', u'shipping_status': u'Delivered', u'shipping_charges': 5}, u'order_details': {u'order_id': u'T103929516925', u'order_datetime': u'Wed Jun 6 18:53:39 2012'}, u'product_details': {u'currency': u'EUR', u'sale_price': 303, u'list_price': 318, u'pct_discount': 5, u'product_id': u'P3109994453'}, u'payment_details': {u'payment_mode': u'Debit Card', u'total_charges': 308}}, {u'doc_type': u'order', u'user_id': u'Elinor_33313792', u'shipping_details': {u'shipping_type': u'Regular', u'shipping_status': u'Delivered', u'shipping_charges': 2}, u'order_details': {u'order_id': u'T573145204032', u'order_datetime': u'Thu Aug 11 18:53:39 2011'}, u'product_details': {u'currency': u'GBP', u'sale_price': 567, u'list_price': 666, u'pct_discount': 15, u'product_id': u'P9315874155'}, u'payment_details': {u'payment_mode': u'NetBanking', u'total_charges': 569}}], u'personal_details': {u'first_name': u'Elinor', u'last_name': u'Ritchie', u'display_name': u'Elinor Ritchie', u'age': 60, u'state': u'Arizona', u'email': u'Elinor.Ritchie@snailmail.com'}}]", "27":"[{u'contact': {u'title': u'Mr.', u'age': 46, u'email': u'dave@gmail.com', u'lname': u'Smith', u'relation': u'friend', u'fname': u'Dave', u'hobbies': [u'golf', u'surfing'], u'type': u'contact', u'children': [{u'gender': u'm', u'age': 17, u'fname': u'Aiden'}, {u'gender': u'f', u'age': 2, u'fname': u'Bill'}]}, u'children': {u'gender': u'm', u'age': 17, u'fname': u'Aiden'}}, {u'contact': {u'title': u'Mr.', u'age': 46, u'email': u'dave@gmail.com', u'lname': u'Smith', u'relation': u'friend', u'fname': u'Dave', u'hobbies': [u'golf', u'surfing'], u'type': u'contact', u'children': [{u'gender': u'm', u'age': 17, u'fname': u'Aiden'}, {u'gender': u'f', u'age': 2, u'fname': u'Bill'}]}, u'children': {u'gender': u'f', u'age': 2, u'fname': u'Bill'}}]", "28":"[{u'name': u'Aide Swank', u'order_no': {u'order_id': u'T638751835595', u'order_datetime': u'Sat Jan 7 22:00:11 2012'}, u'product_details': {u'currency': u'USD', u'sale_price': 134, u'list_price': 178, u'pct_discount': 25, u'product_id': u'P8360066417'}}, {u'name': u'Aide Swank', u'order_no': {u'order_id': u'T870351974549', u'order_datetime': u'Fri Jan 20 22:00:11 2012'}, u'product_details': {u'currency': u'USD', u'sale_price': 171, u'list_price': 179, u'pct_discount': 5, u'product_id': u'P8589655279'}}, {u'name': u'Aide Swank', u'order_no': {u'order_id': u'T769348087819', u'order_datetime': u'Sun Feb 19 22:00:11 2012'}, u'product_details': {u'currency': u'EUR', u'sale_price': 548, u'list_price': 608, u'pct_discount': 10, u'product_id': u'P1512413007'}}, {u'name': u'Aide Swank', u'order_no': {u'order_id': u'T183428307793', u'order_datetime': u'Mon Oct 15 22:00:11 2012'}, u'product_details': {u'currency': u'USD', u'sale_price': 649, u'list_price': 683, u'pct_discount': 5, u'product_id': u'P3705096321'}}, {u'name': u'Aide Swank', u'order_no': {u'order_id': u'T703068425987', u'order_datetime': u'Sun Aug 5 22:00:11 2012'}, u'product_details': {u'currency': u'EUR', u'sale_price': 56, u'list_price': 62, u'pct_discount': 10, u'product_id': u'P7771903542'}}]", "29":"[{u'text': u\"INSERT INTO tutorial (KEY, VALUE) VALUES (\'baldwin\', {\'name\':\'Alex Baldwin\', \'type\':\'contact\'})\", u'plan': {u'#operator': u'Sequence', u'~children': [{u'#operator': u'ValueScan', u'values': u'[[\"baldwin\", {\"name\": \"Alex Baldwin\", \"type\": \"contact\"}]]'}, {u'#operator': u'Parallel', u'maxParallelism': 1, u'~child': {u'#operator': u'Sequence', u'~children': [{u'alias': u'tutorial', u'#operator': u'SendInsert', u'namespace': u'default', u'limit': None, u'keyspace': u'tutorial'}, {u'#operator': u'Discard'}]}}]}}]", "30":"[{u'text': u\"DELETE FROM tutorial t USE KEYS 'baldwin' RETURNING t\", u'plan': {u'#operator': u'Sequence', u'~children': [{u'keys': u'\"baldwin\"', u'#operator': u'KeyScan'}, {u'#operator': u'Parallel', u'maxParallelism': 1, u'~child': {u'#operator': u'Sequence', u'~children': [{u'keyspace': u'tutorial', u'#operator': u'DummyFetch', u'namespace': u'default', u'as': u't'}, {u'alias': u't', u'#operator': u'SendDelete', u'namespace': u'default', u'limit': None, u'keyspace': u'tutorial'}, {u'#operator': u'InitialProject', u'result_terms': [{u'expr': u'`t`'}]}, {u'#operator': u'FinalProject'}]}}]}}]", "31":"[{u'text': u'UPDATE tutorial USE KEYS \"baldwin\" SET type = \"actor\" RETURNING tutorial.type', u'plan': {u'#operator': u'Sequence', u'~children': [{u'keys': u'\"baldwin\"', u'#operator': u'KeyScan'}, {u'#operator': u'Parallel', u'maxParallelism': 1, u'~child': {u'#operator': u'Sequence', u'~children': [{u'keyspace': u'tutorial', u'#operator': u'Fetch', u'namespace': u'default'}, {u'#operator': u'Clone'}, {u'#operator': u'Set', u'set_terms': [{u'path': u'(`tutorial`.`type`)', u'value': u'\"actor\"'}]}, {u'alias': u'tutorial', u'#operator': u'SendUpdate', u'namespace': u'default', u'limit': None, u'keyspace': u'tutorial'}, {u'#operator': u'InitialProject', u'result_terms': [{u'expr': u'(`tutorial`.`type`)'}]}, {u'#operator': u'FinalProject'}]}}]}}]", "32":"[{u'product_count': 900}]", "33":"[{u'product': {u'dateAdded': u'2014-04-06T15:52:19Z', u'description': u'This product is available on <a target=\"_blank\" href=\"http://www.amazon.com/gp/product/B008KYGUZW/ref=s9_hps_bw_g200_ir011?pf_rd_m=ATVPDKIKX0DER&pf_rd_s=merchandised-search-10&pf_rd_r=AF4356F23718450681C3&pf_rd_t=101&pf_rd_p=1532316542&pf_rd_i=3410851\">Amazon.com</a>.', u'color': u'plum', u'unitPrice': 54, u'imageURL': u'http://ecx.images-amazon.com/images/I/41dEDQdCohL._SL300_.jpg', u'reviewList': [u'review167', u'review1056', u'review1995', u'review3122', u'review4301', u'review4719', u'review4931', u'review5857', u'review7365', u'review8122'], u'productId': u'product851', u'type': u'product', u'dateModified': u'2014-05-06T15:52:19Z', u'categories': [u'Golf'], u'name': u'Wellzher 2012 Lite Stand Golf Bag'}, u'cat': u'Golf'}, {u'product': {u'dateAdded': u'2013-08-09T15:52:19Z', u'description': u'This product is available on <a target=\"_blank\" href=\"http://www.amazon.com/gp/product/B006LMH2Q6/ref=s9_hps_bw_g200_ir012?pf_rd_m=ATVPDKIKX0DER&pf_rd_s=merchandised-search-10&pf_rd_r=AF4356F23718450681C3&pf_rd_t=101&pf_rd_p=1532316542&pf_rd_i=3410851\">Amazon.com</a>.', u'color': u'lime', u'unitPrice': 99.99, u'imageURL': u'http://ecx.images-amazon.com/images/I/41hQ6iO%2ByEL._SL300_.jpg', u'reviewList': [u'review796', u'review1173', u'review2655', u'review3040', u'review3798', u'review4851', u'review8107'], u'productId': u'product852', u'type': u'product', u'dateModified': u'2014-05-06T15:52:19Z', u'categories': [u'Golf'], u'name': u'Nike Golf Xtreme Sport IV Golf Bag'}, u'cat': u'Golf'}, {u'product': {u'dateAdded': u'2013-09-08T15:52:19Z', u'description': u'This product is available on <a target=\"_blank\" href=\"http://www.amazon.com/gp/product/B001IDTC4S/ref=s9_hps_bw_g200_ir013?pf_rd_m=ATVPDKIKX0DER&pf_rd_s=merchandised-search-10&pf_rd_r=AF4356F23718450681C3&pf_rd_t=101&pf_rd_p=1532316542&pf_rd_i=3410851\">Amazon.com</a>.', u'color': u'blue', u'unitPrice': 74.99, u'imageURL': u'http://ecx.images-amazon.com/images/I/31SSqAW36aL._SL300_.jpg', u'reviewList': [u'review113', u'review1469', u'review2146', u'review2955', u'review5689', u'review7193', u'review8319', u'review9225'], u'productId': u'product853', u'type': u'product', u'dateModified': u'2014-05-06T15:52:19Z', u'categories': [u'Golf'], u'name': u'Golf Girl LEFTY Junior Club Set for Kids Ages 4-7 w/Pink Stand Bag'}, u'cat': u'Golf'}, {u'product': {u'dateAdded': u'2013-08-09T15:52:19Z', u'description': u'This product is available on <a target=\"_blank\" href=\"http://www.amazon.com/gp/product/B009FVFAFA/ref=s9_hps_bw_g200_ir014?pf_rd_m=ATVPDKIKX0DER&pf_rd_s=merchandised-search-10&pf_rd_r=AF4356F23718450681C3&pf_rd_t=101&pf_rd_p=1532316542&pf_rd_i=3410851\">Amazon.com</a>.', u'color': u'blue', u'unitPrice': 123.03, u'imageURL': u'http://ecx.images-amazon.com/images/I/51HkYiWWPLL._SL300_.jpg', u'reviewList': [u'review316', u'review414', u'review1380', u'review1453', u'review2348', u'review3087', u'review4327', u'review4983', u'review6913', u'review6925', u'review7370'], u'productId': u'product854', u'type': u'product', u'dateModified': u'2014-05-06T15:52:19Z', u'categories': [u'Golf'], u'name': u'Callaway XTT Xtreme Stand Bag'}, u'cat': u'Golf'}, {u'product': {u'dateAdded': u'2013-06-10T15:52:19Z', u'description': u'This product is available on <a target=\"_blank\" href=\"http://www.amazon.com/gp/product/B0055NW7OE/ref=s9_hps_bw_g200_ir015?pf_rd_m=ATVPDKIKX0DER&pf_rd_s=merchandised-search-10&pf_rd_r=AF4356F23718450681C3&pf_rd_t=101&pf_rd_p=1532316542&pf_rd_i=3410851\">Amazon.com</a>.', u'color': u'white', u'unitPrice': 3.99, u'imageURL': u'http://ecx.images-amazon.com/images/I/41rziEf82GL._SL300_.jpg', u'reviewList': [u'review124', u'review1717', u'review2290', u'review2874', u'review3258', u'review4423', u'review4495', u'review5614', u'review5628', u'review7158', u'review8649'], u'productId': u'product855', u'type': u'product', u'dateModified': u'2014-05-06T15:52:19Z', u'categories': [u'Golf'], u'name': u'Pride Golf Tee - 3-1/4 inch Deluxe Tee - 75 Count,Black)'}, u'cat': u'Golf'}, {u'product': {u'dateAdded': u'2013-09-08T15:52:19Z', u'description': u'This product is available on <a target=\"_blank\" href=\"http://www.amazon.com/gp/product/B0000AUBX7/ref=s9_hps_bw_g200_ir016?pf_rd_m=ATVPDKIKX0DER&pf_rd_s=merchandised-search-10&pf_rd_r=AF4356F23718450681C3&pf_rd_t=101&pf_rd_p=1532316542&pf_rd_i=3410851\">Amazon.com</a>.', u'color': u'gold', u'unitPrice': 13.78, u'imageURL': u'http://ecx.images-amazon.com/images/I/31tiAJYeukL._SL300_.jpg', u'reviewList': [u'review627', u'review1204', u'review3645', u'review4455', u'review7062', u'review7846', u'review7923', u'review8343', u'review8757'], u'productId': u'product856', u'type': u'product', u'dateModified': u'2014-05-06T15:52:19Z', u'categories': [u'Golf'], u'name': u'Winn Excel Medium Midsize Grip'}, u'cat': u'Golf'}, {u'product': {u'dateAdded': u'2013-10-08T15:52:19Z', u'description': u'This product is available on <a target=\"_blank\" href=\"http://www.amazon.com/gp/product/B0036URAJ0/ref=s9_hps_bw_g200_ir017?pf_rd_m=ATVPDKIKX0DER&pf_rd_s=merchandised-search-10&pf_rd_r=AF4356F23718450681C3&pf_rd_t=101&pf_rd_p=1532316542&pf_rd_i=3410851\">Amazon.com</a>.', u'color': u'red', u'unitPrice': 10.37, u'imageURL': u'http://ecx.images-amazon.com/images/I/41yclC%2ByfwL._SL300_.jpg', u'reviewList': [u'review81', u'review3843'], u'productId': u'product857', u'type': u'product', u'dateModified': u'2014-05-06T15:52:19Z', u'categories': [u'Golf'], u'name': u'Nitro Blaster 12CT White Golf Ball'}, u'cat': u'Golf'}, {u'product': {u'dateAdded': u'2014-01-06T15:52:19Z', u'description': u'This product is available on <a target=\"_blank\" href=\"http://www.amazon.com/gp/product/B004GCIJCO/ref=s9_hps_bw_g200_ir018?pf_rd_m=ATVPDKIKX0DER&pf_rd_s=merchandised-search-10&pf_rd_r=AF4356F23718450681C3&pf_rd_t=101&pf_rd_p=1532316542&pf_rd_i=3410851\">Amazon.com</a>.', u'color': u'sky blue', u'unitPrice': 55.99, u'imageURL': u'http://ecx.images-amazon.com/images/I/21dOq2ky4ML._SL300_.jpg', u'reviewList': [u'review122', u'review246', u'review314', u'review329', u'review373', u'review1652', u'review3678', u'review4296', u'review7123', u'review7742', u'review8504', u'review9200'], u'productId': u'product858', u'type': u'product', u'dateModified': u'2014-05-06T15:52:19Z', u'categories': [u'Golf'], u'name': u'Nike Golf Victory Red Pro Hybrids'}, u'cat': u'Golf'}, {u'product': {u'dateAdded': u'2013-11-07T15:52:19Z', u'description': u'This product is available on <a target=\"_blank\" href=\"http://www.amazon.com/gp/product/B0047N02D6/ref=s9_hps_bw_g200_ir019?pf_rd_m=ATVPDKIKX0DER&pf_rd_s=merchandised-search-10&pf_rd_r=AF4356F23718450681C3&pf_rd_t=101&pf_rd_p=1532316542&pf_rd_i=3410851\">Amazon.com</a>.', u'color': u'azure', u'unitPrice': 79.95, u'imageURL': u'http://ecx.images-amazon.com/images/I/31w1kosf1hL._SL300_.jpg', u'reviewList': [u'review603', u'review2444', u'review2624', u'review2996', u'review3364', u'review4540', u'review5403', u'review6323', u'review6700', u'review7022', u'review7469', u'review8273'], u'productId': u'product859', u'type': u'product', u'dateModified': u'2014-05-06T15:52:19Z', u'categories': [u'Golf'], u'name': u\"Callaway Men's RAZR X Hybrids\"}, u'cat': u'Golf'}, {u'product': {u'dateAdded': u'2013-08-09T15:52:19Z', u'description': u'This product is available on <a target=\"_blank\" href=\"http://www.amazon.com/gp/product/B001P303YY/ref=s9_hps_bw_g200_ir020?pf_rd_m=ATVPDKIKX0DER&pf_rd_s=merchandised-search-10&pf_rd_r=AF4356F23718450681C3&pf_rd_t=101&pf_rd_p=1532316542&pf_rd_i=3410851\">Amazon.com</a>.', u'color': u'plum', u'unitPrice': 14.99, u'imageURL': u'http://ecx.images-amazon.com/images/I/51mMk8BipAL._SL300_.jpg', u'reviewList': [u'review249', u'review1001', u'review1423', u'review4515', u'review4890', u'review4932', u'review5528', u'review5818', u'review8843', u'review8962'], u'productId': u'product860', u'type': u'product', u'dateModified': u'2014-05-06T15:52:19Z', u'categories': [u'Golf'], u'name': u'Dixon Earth Golf Balls (One Dozen)'}, u'cat': u'Golf'}]", "34":"[{u'categories': u'Fan Shop'}, {u'categories': u'Building Supplies'}, {u'categories': u'Outdoor Recreation'}, {u'categories': u'Golf'}, {u'categories': u'Bedding & Bath'}, {u'categories': u'Appliances'}, {u'categories': u'Kitchen & Bath Fixtures'}, {u'categories': u'Arts, Crafts & Sewing'}, {u'categories': u'Toys & Games'}, {u'categories': u'Home Improvement'}, {u'categories': u'Kitchen & Dining'}, {u'categories': u'Video Games for Kids'}, {u'categories': u'Baby'}, {u'categories': u'All Sports & Outdoors'}, {u'categories': u'Pet Supplies'}, {u'categories': u'Cycling'}, {u'categories': u'Lamps & Light Fixtures'}, {u'categories': u'Hardware'}, {u'categories': u'Hunting & Fishing'}, {u'categories': u'Exercise & Fitness'}, {u'categories': u'Sports Collectibles'}, {u'categories': u'Luggage'}, {u'categories': u'Watches'}]", "35":"[{u'name': u'Fotodiox Thermo Lens Cup with Stainless Steel Insulated Tumbler, Coffee and Refreshment Mug, 1:1 Nikon Lens imitation Thermo Cup (Modeling 24-70mm F2.8G Lens), 16oz', u'productId': u'product100'}, {u'name': u'Cuisinart DCC-1200 Brew Central 12-Cup Programmable Coffeemaker, Black/Brushed Metal', u'productId': u'product30'}, {u'name': u'Aroma ARC-914SBD 4-Cup (Uncooked) 8-Cup (Cooked) Digital Rice Cooker and Food Steamer', u'productId': u'product33'}, {u'name': u'Mr. Coffee BVMC-SJX33GT 12-Cup Programmable Coffeemaker, Chrome', u'productId': u'product35'}, {u'name': u'Black & Decker JE2200B 400-Watt Fruit and Vegetable Juice Extractor with Custom Juice Cup', u'productId': u'product37'}, {u'name': u'Mr. Coffee DRX5 4-Cup Programmable Coffeemaker, Black', u'productId': u'product41'}, {u'name': u'Pyrex Prepware 2-Cup Measuring Cup, Clear with Red Measurements', u'productId': u'product50'}, {u'name': u'Sjoberg Nordic Plus Cupboard', u'productId': u'product575'}, {u'name': u'Chicago Metallic Baking Essentials Silicone Baking Cups, Set of 12', u'productId': u'product68'}, {u'name': u'Marina Floating Thermometer with Suction Cup', u'productId': u'product702'}, {u'name': u'Wilton 4-Tier Stacked Cupcake and Dessert Tower', u'productId': u'product75'}, {u'name': u'24-105mm Travel Coffee Mug / Cup / Thermos with Drinking Lid & Quality Stainless Steel Interior', u'productId': u'product82'}, {u'name': u'Hamilton Beach 40515 42-Cup Coffee Urn, Silver', u'productId': u'product91'}, {u'name': u'Camera Lens 1:1 Ef 70-200 F2.8 Is Coffee Cup Model Mug Latest Generation', u'productId': u'product93'}]", "36":"", "37":"[{u'category': u'Appliances', u'reviewCount': 2, u'name': u'Waring Pro IC70 Professional Stainless Steel Large-Capacity Ice Crusher', u'AvgRating': 4.5}, {u'category': u'Appliances', u'reviewCount': 6, u'name': u'Air King AILT4 Lint Trap', u'AvgRating': 4}, {u'category': u'Appliances', u'reviewCount': 5, u'name': u'Bosch HEZ1090 LP Conversion Kit for Bosch Free-standing Gas Ranges (300 and 500 Series)', u'AvgRating': 3.4}]", "38":"[{u'unitsSold': 149, u'dateAdded': u'2013-05-11T15:52:18Z', u'name': u'Briggs & Riley 13 Inch Slim Clamshell Briefcase'}, {u'unitsSold': 146, u'dateAdded': u'2013-05-11T15:52:18Z', u'name': u'American Standard 2988.101.020 Concealed Trapway Cadet 3 Right Height Round Front Flowise 1.28 gpf Toilet with Seat, White'}, {u'unitsSold': 136, u'dateAdded': u'2013-05-11T15:52:18Z', u'name': u'3M Indoor Window Insulator Kit, 1-Window'}, {u'unitsSold': 131, u'dateAdded': u'2013-05-11T15:52:18Z', u'name': u'Achim Home Furnishings FTVGM30820 Nexus 12-Inch Vinyl Tile, Geo 16 Square Sandstone, 20-Pack'}, {u'unitsSold': 131, u'dateAdded': u'2013-05-11T15:52:18Z', u'name': u'Ball Cap Buddy'}, {u'unitsSold': 130, u'dateAdded': u'2013-05-11T15:52:18Z', u'name': u'Moen YB8099CH Mason Paper Holder, Chrome'}, {u'unitsSold': 128, u'dateAdded': u'2013-05-11T15:52:18Z', u'name': u'Hardware House H10-6184 Bridgeport Series Single Handle Tub and Shower Mixer, Brushed Nickel'}, {u'unitsSold': 128, u'dateAdded': u'2013-05-11T15:52:18Z', u'name': u'Darice 4-3/4-Inch Magnetic Manikin'}, {u'unitsSold': 125, u'dateAdded': u'2013-05-11T15:52:18Z', u'name': u'Moonrays 91515 Turtles on a Log Solar-Powered Outdoor LED Light'}, {u'unitsSold': 124, u'dateAdded': u'2013-05-11T15:52:18Z', u'name': u'Hardware House 543611 Aegean Flush-Mount 42-Inch Ceiling Fan with Optional Light Fixture, Satin Nickel'}]", "39":"[{u'unitPrice': 5.61, u'name': u'Ball Cap Buddy', u'categories': [u'Appliances']}]", "40":"[{u'unitsSold': 182, u'name': u'Pyrex Prepware 2-Cup Measuring Cup, Clear with Red Measurements'}, {u'unitsSold': 164, u'name': u'Danze D304055RB Sheridan Two Handle Widespread Lavatory Faucet, Oil Rubbed Bronze'}, {u'unitsSold': 156, u'name': u'New Super Mario Bros. 2'}, {u'unitsSold': 156, u'name': u'Hunter Ceiling Fans 21647 Caribbean Breeze Fan - Weathered Bronze Indoor Fan 54'}, {u'unitsSold': 154, u'name': u'Eagle Claw Youth Fishing Vest (Small)'}, {u'unitsSold': 152, u'name': u'Aroma ARC-914SBD 4-Cup (Uncooked) 8-Cup (Cooked) Digital Rice Cooker and Food Steamer'}, {u'unitsSold': 151, u'name': u\"Angels\' Eyes Tear-Stain Eliminator for Dogs and Cats, Beef Flavor, 120 Grams Bottle\"}, {u'unitsSold': 150, u'name': u'Brother Project Runway CE7070PRW 70-Stitch Computerized Sewing Machine with Wide Table'}, {u'unitsSold': 150, u'name': u'BeginAgain Eco YoYo - Green'}, {u'unitsSold': 149, u'name': u'Cuisinart CSB-76W SmartStick 200-Watt Immersion Hand Blender, White'}]", "41":"[{u'avg_rating': 4.5, u'name': u'Waring Pro IC70 Professional Stainless Steel Large-Capacity Ice Crusher'}, {u'avg_rating': 4.2, u'name': u'Racor PHL-1R Pro HeavyLift 4-by-4-Foot Cable-Lifted Storage Rack'}, {u'avg_rating': 4.2, u'name': u'Marineland Rite-Size Cartridge E, 4-Pack'}, {u'avg_rating': 4.1, u'name': u'Midwest 1524 iCrate Single-Door Pet Crate 24-By-18 -By-19-Inch'}, {u'avg_rating': 4.1, u'name': u'Dorcy 41-1643 30 Lumen 3 Volt LED Replacement Bulb'}]", "42":"[{u'customer': {u'dateAdded': u'2014-01-06T15:52:16Z', u'type': u'customer', u'firstName': u'Dustin', u'ccInfo': {u'cardType': u'americanexpress', u'cardNumber': u'1234-2121-1221-1211', u'cardExpiry': u'2012-11-12'}, u'state': u'MS', u'emailAddress': u'valentine_bednar@halvorsongrant.net', u'lastName': u'Lemke', u'postalCode': u'26384', u'phoneNumber': u'1-151-555-5907 x324', u'dateLastActive': u'2014-05-06T15:52:16Z', u'customerId': u'customer515'}, u'purchases': {u'purchaseId': u'purchase0', u'lineItems': [{u'count': 3, u'product': u'product701'}, {u'count': 4, u'product': u'product85'}], u'type': u'purchase', u'customerId': u'customer515', u'purchasedAt': u'2014-04-06T15:52:32Z'}, u'product': {u'dateAdded': u'2014-01-06T15:52:19Z', u'description': u'This product is available on <a target=\"_blank\" href=\"http://www.amazon.com/gp/product/B007KKU8QE/ref=s9_ri_bw_g199_ir015?pf_rd_m=ATVPDKIKX0DER&pf_rd_s=merchandised-search-8&pf_rd_r=D199F6AF45FA49D6845F&pf_rd_t=101&pf_rd_p=1479925062&pf_rd_i=2619533011\">Amazon.com</a>.', u'color': u'white', u'unitPrice': 29, u'imageURL': u'http://ecx.images-amazon.com/images/I/51BfRrG%2BdoL._SL300_.jpg', u'reviewList': [u'review2505', u'review4108', u'review4160', u'review4866', u'review4908', u'review5519', u'review8101', u'review8720', u'review8981', u'review9116'], u'productId': u'product701', u'type': u'product', u'dateModified': u'2014-05-06T15:52:19Z', u'categories': [u'Pet Supplies'], u'name': u'Aquarius Aq15005 Aquarius 5 Rounded 5-Gallon Aquarium Kit'}}, {u'customer': {u'dateAdded': u'2014-01-06T15:52:16Z', u'type': u'customer', u'firstName': u'Dustin', u'ccInfo': {u'cardType': u'americanexpress', u'cardNumber': u'1234-2121-1221-1211', u'cardExpiry': u'2012-11-12'}, u'state': u'MS', u'emailAddress': u'valentine_bednar@halvorsongrant.net', u'lastName': u'Lemke', u'postalCode': u'26384', u'phoneNumber': u'1-151-555-5907 x324', u'dateLastActive': u'2014-05-06T15:52:16Z', u'customerId': u'customer515'}, u'purchases': {u'purchaseId': u'purchase0', u'lineItems': [{u'count': 3, u'product': u'product701'}, {u'count': 4, u'product': u'product85'}], u'type': u'purchase', u'customerId': u'customer515', u'purchasedAt': u'2014-04-06T15:52:32Z'}, u'product': {u'dateAdded': u'2013-11-07T15:52:18Z', u'description': u'This product is available on <a target=\"_blank\" href=\"http://www.amazon.com/gp/product/B0000DE9B5/ref=s9_ri_bw_g79_ir04?pf_rd_m=ATVPDKIKX0DER&pf_rd_s=merchandised-search-11&pf_rd_r=1C0DBDE1A6234FF8A9DB&pf_rd_t=101&pf_rd_p=1405136162&pf_rd_i=284507\">Amazon.com</a>.', u'color': u'white', u'unitPrice': 14.95, u'imageURL': u'http://ecx.images-amazon.com/images/I/21xHRhlFslL._SL300_.jpg', u'reviewList': [u'review681', u'review3771', u'review4215', u'review5685', u'review5856', u'review5935', u'review6789', u'review7532', u'review7649', u'review9011'], u'productId': u'product85', u'type': u'product', u'dateModified': u'2014-05-06T15:52:18Z', u'categories': [u'Kitchen & Dining'], u'name': u'Bormioli Rocco Frigoverre Jug with Hermetic Lid, 2-Liters'}}]", "43":"[{u'totalSpent': 27847, u'lastName': u'Satterfield', u'purchaseCount': 140, u'emailAddress': u'mabel_oberbrunner@mueller.net', u'firstName': u'Vernon'}, {u'totalSpent': 27004, u'lastName': u'Zulauf', u'purchaseCount': 185, u'emailAddress': u'opal@gaylordpouros.info', u'firstName': u'Nikolas'}, {u'totalSpent': 26234, u'lastName': u'Fahey', u'purchaseCount': 112, u'emailAddress': u'fabian.west@handmoen.org', u'firstName': u'Verlie'}, {u'totalSpent': 26035, u'lastName': u'Jerde', u'purchaseCount': 125, u'emailAddress': u'helena@waltercummings.org', u'firstName': u'Cary'}, {u'totalSpent': 24875, u'lastName': u'Hegmann', u'purchaseCount': 133, u'emailAddress': u'lia@kohler.biz', u'firstName': u'Carolanne'}, {u'totalSpent': 23348, u'lastName': u\"O\'Kon\", u'purchaseCount': 125, u'emailAddress': u'benedict@hirtheborer.net', u'firstName': u'Coralie'}, {u'totalSpent': 21687, u'lastName': u'Klocko', u'purchaseCount': 151, u'emailAddress': u'jolie@beer.info', u'firstName': u'Madison'}, {u'totalSpent': 21564, u'lastName': u'Rodriguez', u'purchaseCount': 166, u'emailAddress': u'tyrese@auersimonis.biz', u'firstName': u'Luna'}, {u'totalSpent': 21318, u'lastName': u'Padberg', u'purchaseCount': 95, u'emailAddress': u'jonatan_armstrong@cruickshank.info', u'firstName': u'Rossie'}, {u'totalSpent': 21221, u'lastName': u'Runolfsson', u'purchaseCount': 182, u'emailAddress': u'tess@bergnaum.name', u'firstName': u'Jeremie'}]", "44":"[{u'customerCount': 27, u'state': u'NC'}, {u'customerCount': 24, u'state': u'FL'}, {u'customerCount': 23, u'state': u'IA'}, {u'customerCount': 23, u'state': u'VA'}, {u'customerCount': 21, u'state': u'TN'}, {u'customerCount': 21, u'state': u'OK'}, {u'customerCount': 20, u'state': u'KS'}, {u'customerCount': 19, u'state': u'GU'}, {u'customerCount': 19, u'state': u'ND'}, {u'customerCount': 19, u'state': u'WA'}, {u'customerCount': 19, u'state': u'CA'}, {u'customerCount': 19, u'state': u'WV'}, {u'customerCount': 19, u'state': u'HI'}, {u'customerCount': 19, u'state': u'CO'}, {u'customerCount': 19, u'state': u'IN'}, {u'customerCount': 19, u'state': u'AR'}, {u'customerCount': 18, u'state': u'UT'}, {u'customerCount': 18, u'state': u'IL'}, {u'customerCount': 18, u'state': u'TX'}, {u'customerCount': 18, u'state': u'MO'}, {u'customerCount': 18, u'state': u'NY'}, {u'customerCount': 18, u'state': u'MI'}, {u'customerCount': 17, u'state': u'PA'}, {u'customerCount': 17, u'state': u'MA'}, {u'customerCount': 17, u'state': u'NV'}, {u'customerCount': 17, u'state': u'MP'}, {u'customerCount': 17, u'state': u'NE'}, {u'customerCount': 17, u'state': u'AZ'}, {u'customerCount': 16, u'state': u'AA'}, {u'customerCount': 16, u'state': u'MS'}, {u'customerCount': 16, u'state': u'VT'}, {u'customerCount': 16, u'state': u'DE'}, {u'customerCount': 16, u'state': u'WI'}, {u'customerCount': 15, u'state': u'NH'}, {u'customerCount': 15, u'state': u'AE'}, {u'customerCount': 15, u'state': u'NJ'}, {u'customerCount': 15, u'state': u'FM'}, {u'customerCount': 15, u'state': u'RI'}, {u'customerCount': 15, u'state': u'LA'}, {u'customerCount': 15, u'state': u'MT'}, {u'customerCount': 15, u'state': u'MH'}, {u'customerCount': 15, u'state': u'SC'}, {u'customerCount': 15, u'state': u'WY'}, {u'customerCount': 14, u'state': u'ME'}, {u'customerCount': 14, u'state': u'KY'}, {u'customerCount': 14, u'state': u'OR'}, {u'customerCount': 14, u'state': u'NM'}, {u'customerCount': 14, u'state': u'CT'}, {u'customerCount': 13, u'state': u'DC'}, {u'customerCount': 13, u'state': u'VI'}, {u'customerCount': 13, u'state': u'AS'}, {u'customerCount': 13, u'state': u'ID'}, {u'customerCount': 12, u'state': u'AK'}, {u'customerCount': 12, u'state': u'AP'}, {u'customerCount': 12, u'state': u'OH'}, {u'customerCount': 12, u'state': u'GA'}, {u'customerCount': 12, u'state': u'PR'}, {u'customerCount': 11, u'state': u'AL'}, {u'customerCount': 11, u'state': u'MN'}, {u'customerCount': 9, u'state': u'MD'}, {u'customerCount': 9, u'state': u'SD'}, {u'customerCount': 8, u'state': u'PW'}]", "45":"[{u'$1': 544}]", "46":"", "47":"[{u'revenueMillion': 0.611, u'month': u'2013-05'}, {u'revenueMillion': 0.68, u'month': u'2013-06'}, {u'revenueMillion': 0.601, u'month': u'2013-07'}, {u'revenueMillion': 0.596, u'month': u'2013-08'}, {u'revenueMillion': 0.554, u'month': u'2013-09'}, {u'revenueMillion': 0.617, u'month': u'2013-10'}, {u'revenueMillion': 0.595, u'month': u'2013-11'}, {u'revenueMillion': 0.596, u'month': u'2013-12'}, {u'revenueMillion': 0.613, u'month': u'2014-01'}, {u'revenueMillion': 0.587, u'month': u'2014-02'}, {u'revenueMillion': 0.624, u'month': u'2014-03'}, {u'revenueMillion': 0.602, u'month': u'2014-04'}, {u'revenueMillion': 0.628, u'month': u'2014-05'}]", "48":"", "49":"[{u'jungleville_inbox': {u'messages': [{u'content': u'more work', u'message': u'more help for you ', u'type': u'gift', u'user': u'zid-jungle-0002'}, {u'content': None, u'message': u'1.2.3.Go', u'type': u'help-needed', u'user': u'zid-jungle-0002'}, {u'content': u'meat-cleaver', u'message': u'hungry like the wolf', u'type': u'help-needed', u'user': u'zid-jungle-0003'}], u'uuid': u'zid-jungle-0001'}}]", "50":"[{u'stats': {u'loggedIn': False, u'fps': 34, u'loadtime': 23, u'country': u'India', u'uuid': u'zid-jungle-0001', u'pvp-hist': [{u'result': u'lost', u'uuid': u'zid-jungle-0003'}, {u'result': u'lost', u'uuid': u'zid-jungle-0002'}], u'lastLogin': u'22nd December 2013', u'requests': 6, u'type': u'player', u'avg_session_length': 1145, u'session_hist': [122, 3334, 1223, 1123, 145]}, u'inbox': [{u'messages': [{u'content': u'more work', u'message': u'more help for you ', u'type': u'gift', u'user': u'zid-jungle-0002'}, {u'content': None, u'message': u'1.2.3.Go', u'type': u'help-needed', u'user': u'zid-jungle-0002'}, {u'content': u'meat-cleaver', u'message': u'hungry like the wolf', u'type': u'help-needed', u'user': u'zid-jungle-0003'}], u'uuid': u'zid-jungle-0001'}], u'game-data': {u'loggedIn': False, u'name': u'Don Pinto', u'payer': False, u'level': 4, u'type': u'player', u'gameworld': {u'position': [23, 45, 12], u'farm-length': 32, u'piggies': [u'nero', u'hero', u'coma'], u'farm-width': 64}, u'lastLogin': u'22nd December 2013', u'score': 663, u'friends': [u'zid-jungle-0002', u'zid-jungle-0003'], u'uuid': u'zid-jungle-0001'}}]", "51":"[{u'messages': [{u'content': u'more work', u'message': u'more help for you ', u'type': u'gift', u'user': u'zid-jungle-0002'}, {u'content': None, u'message': u'1.2.3.Go', u'type': u'help-needed', u'user': u'zid-jungle-0002'}, {u'content': u'meat-cleaver', u'message': u'hungry like the wolf', u'type': u'help-needed', u'user': u'zid-jungle-0003'}], u'name': u'Don Pinto'}]", "52":"[{u'wins': 1, u'player': u'zid-jungle-0004', u'losses': 0, u'opponent': u'zid-jungle-0007'}, {u'wins': 1, u'player': u'zid-jungle-0004', u'losses': 0, u'opponent': u'zid-jungle-0001'}, {u'wins': 1, u'player': u'zid-jungle-0004', u'losses': 0, u'opponent': u'zid-jungle-0003'}]", "53":"[{u'wins': 3, u'loadtime': 23, u'name': u'Dixon Jude', u'level': 47}, {u'wins': 1, u'loadtime': 13, u'name': u'Rudy Francis', u'level': 14}, {u'wins': 0, u'loadtime': 18, u'name': u'Joe Marconi', u'level': 8}, {u'wins': 0, u'loadtime': 23, u'name': u'Don Pinto', u'level': 4}]", "54":"[{u'friends': [u'zid-jungle-0002', u'zid-jungle-0003'], u'level': 14}, {u'friends': [u'zid-jungle-0001', u'zid-jungle-0002', u'zid-jungle-0003'], u'level': 14}]"} errors = {} queries_failed = {} run_keys = [] """ curl http://query.pub.couchbase.com/query -d "statement=SELECT 'Hello World' AS Greeting" | python -c 'import sys, json; print json.load(sys.stdin)' output: [{u'Greeting': u'Hello World'}] """ for key in sorted(queries.keys()): if run_keys: """ this will test some specific queries """ for run_key in run_keys: if run_key == key: self.log.info("run query %s: %s " % (key, queries[key])) params = "statement=%s" % queries[key] status, content, header = self._http_request(api, 'POST', params) json_parsed = json.loads(content) if status: if "errors" in json_parsed.keys(): """ check if error still thow even status ok """ errors[key] = json_parsed["errors"] if "status" in json_parsed.keys() and \ json_parsed["status"] != "success": queries_failed[key] = queries[key] else: if "status" in json_parsed.keys() and \ json_parsed["status"] == "fatal": queries_failed[key] = queries[key] else: self.log.info("run query %s: %s " % (key, queries[key])) params = "statement=%s" % queries[key] status, content, header = self._http_request(api, 'POST', params) json_parsed = json.loads(content) if status: self.log.info("OK") if "errors" in json_parsed.keys(): errors[key] = json_parsed["errors"] if "status" in json_parsed.keys() and \ json_parsed["status"] != "success": queries_failed[key] = queries[key] else: if "status" in json_parsed.keys() and \ json_parsed["status"] == "fatal": queries_failed[key] = queries[key] if queries_failed: for key in sorted(queries_failed.keys()): self.log.error("Failed query # %s: %s " % (key, queries_failed[key])) self.fail("test failed with query above")
278.005848
8,107
0.646017
7,550
47,539
4.002649
0.165828
0.014725
0.015751
0.006254
0.614494
0.568266
0.495433
0.471211
0.456684
0.443183
0
0.090276
0.148573
47,539
170
8,108
279.641176
0.65634
0.003576
0
0.188312
0
0.487013
0.813638
0.050497
0
0
0
0
0
1
0.006494
false
0
0.012987
0
0.025974
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
7ddd6fe2e6feb3c3e44a407337199b1f0c5e3769
1,983
py
Python
ds_clean/ds_nodes.py
j2zhao/DSClean
d51043ce64a2859b1ed2da21f7942dd055ab1a34
[ "MIT" ]
null
null
null
ds_clean/ds_nodes.py
j2zhao/DSClean
d51043ce64a2859b1ed2da21f7942dd055ab1a34
[ "MIT" ]
null
null
null
ds_clean/ds_nodes.py
j2zhao/DSClean
d51043ce64a2859b1ed2da21f7942dd055ab1a34
[ "MIT" ]
1
2021-03-12T06:37:25.000Z
2021-03-12T06:37:25.000Z
"""" Different classes of nodes """ import copy import numpy as np class DSNode(): def call_forward(self): raise NotImplemented() def call_backward(self): raise NotImplemented() # def mod_ast(self): # """some function for changing the ast -> todo?""" # pass #whether we need this or not depends on the data pertubation step -> ignore for now class BijectNode(DSNode): def call_forward(self, inputs): # assuming that we have an input we don't need to do anything -> can make more efficient later return inputs def call_backward(self, inputs): # assuming that we have an input we don't need to do anything -> can make more efficient later return inputs class AddNode(DSNode): def call_forward(self, inputs): # assuming that we have an input we don't need to do anything -> can make more efficient later if inputs[0] is not None and inputs[1] is not None: return [np.maximum(inputs[0], inputs[1])] else: return [None] def call_backward(self, inputs): # assuming that we have an input we don't need to do anything -> can make more efficient later raise NotImplemented() class AggregateNode(DSNode): def call_forward(self, inputs): # assuming that we have an input we don't need to do anything -> can make more efficient later output = [] for input in inputs: output.append(np.ones(input.shape)*np.max(input)) return output def call_backward(self, inputs): raise NotImplemented() class SelectionNode(DSNode): def call_forward(self): raise NotImplemented() def call_backward(self): raise NotImplemented() class JoinNode(DSNode): def call_forward(self): raise NotImplemented() def call_backward(self): raise NotImplemented() GRAPH_TO_DSNODE = {'add,__call__': AddNode(), 'add,reduce': AggregateNode()}
28.73913
102
0.652547
265
1,983
4.811321
0.298113
0.065882
0.061176
0.094118
0.621176
0.601569
0.601569
0.601569
0.601569
0.601569
0
0.002732
0.261725
1,983
69
103
28.73913
0.868169
0.333333
0
0.564103
0
0
0.01682
0
0
0
0
0.014493
0
1
0.307692
false
0
0.051282
0.051282
0.641026
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
0
1
0
0
4
81b1368a4abdfb2e624041dd30f6c9c184104f1c
353
py
Python
tests/spec/badge_test.py
bearyinnovative/bcjoy.py
12531cba1c7fccc3d63775a9230d8966fb0d32bc
[ "MIT" ]
3
2017-02-02T08:31:09.000Z
2017-02-09T08:19:31.000Z
tests/spec/badge_test.py
bearyinnovative/bcjoy.py
12531cba1c7fccc3d63775a9230d8966fb0d32bc
[ "MIT" ]
2
2017-02-02T08:27:14.000Z
2017-02-02T14:42:02.000Z
tests/spec/badge_test.py
bearyinnovative/bcjoy.py
12531cba1c7fccc3d63775a9230d8966fb0d32bc
[ "MIT" ]
null
null
null
def test_bearychat_badge_should_be_svg(test_client): resp = test_client.get('/badge/bearychat.svg') assert resp.status_code == 200 assert resp.content_type == 'image/svg+xml' def test_bearychat_badge_should_contain_bearychat(test_client): resp = test_client.get('/badge/bearychat.svg') assert 'BearyChat' in resp.data.decode('u8')
35.3
63
0.756374
51
353
4.921569
0.45098
0.159363
0.12749
0.167331
0.613546
0.398406
0.398406
0.398406
0.398406
0.398406
0
0.012945
0.124646
353
9
64
39.222222
0.799353
0
0
0.285714
0
0
0.181303
0
0
0
0
0
0.428571
1
0.285714
false
0
0
0
0.285714
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
0
0
0
0
0
0
0
4
81b65eeb7b7dcb9e9cbf18d15f48c8036b85ae5e
168
py
Python
common/utils.py
Sinha-Ujjawal/dots-connect-deta
cdb9ab69a22b8623a1265d565ee2e9dd91b1f1fe
[ "MIT" ]
null
null
null
common/utils.py
Sinha-Ujjawal/dots-connect-deta
cdb9ab69a22b8623a1265d565ee2e9dd91b1f1fe
[ "MIT" ]
null
null
null
common/utils.py
Sinha-Ujjawal/dots-connect-deta
cdb9ab69a22b8623a1265d565ee2e9dd91b1f1fe
[ "MIT" ]
null
null
null
def get_first_matching_attr(obj, *attrs, default=None): for attr in attrs: if hasattr(obj, attr): return getattr(obj, attr) return default
24
55
0.642857
23
168
4.565217
0.652174
0.133333
0.247619
0
0
0
0
0
0
0
0
0
0.267857
168
6
56
28
0.853659
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.6
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
81c4542a73340d15501878f9709e85ca0ad9ed85
208
py
Python
DjangoTutorial_v3.5/lesson1/task1/blog/views.py
behzod/pycharm-courses
0ba74ff0ff87e7747173c60cd139c25b8d7f3b0e
[ "Apache-2.0" ]
213
2015-01-03T19:25:02.000Z
2020-02-06T03:08:43.000Z
DjangoTutorial_v3.5/lesson1/task1/blog/views.py
behzod/pycharm-courses
0ba74ff0ff87e7747173c60cd139c25b8d7f3b0e
[ "Apache-2.0" ]
24
2015-01-01T17:03:09.000Z
2019-12-22T10:28:22.000Z
DjangoTutorial_v3.5/lesson1/task1/blog/views.py
behzod/pycharm-courses
0ba74ff0ff87e7747173c60cd139c25b8d7f3b0e
[ "Apache-2.0" ]
139
2015-01-03T19:24:22.000Z
2020-01-24T18:05:51.000Z
from django.shortcuts import render from .models import Post def post_list(request): posts = Post.objects.order_by('published_date') return render(request, 'blog/post_list.html', {'posts': posts})
23.111111
67
0.740385
29
208
5.172414
0.655172
0.106667
0
0
0
0
0
0
0
0
0
0
0.139423
208
8
68
26
0.837989
0
0
0
0
0
0.182692
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
81c7d08c33ac35bc04b4b965d280f0698149cbfd
21
py
Python
exchange/__init__.py
hreshtaksensei/forexpy
706f9f9ba7dd6ec83edd268b1b287d96db59b2cf
[ "MIT" ]
1
2020-03-21T03:19:36.000Z
2020-03-21T03:19:36.000Z
exchange/__init__.py
hreshtaksensei/forexpy
706f9f9ba7dd6ec83edd268b1b287d96db59b2cf
[ "MIT" ]
null
null
null
exchange/__init__.py
hreshtaksensei/forexpy
706f9f9ba7dd6ec83edd268b1b287d96db59b2cf
[ "MIT" ]
null
null
null
__all__ = ['oanda']
10.5
20
0.571429
2
21
4
1
0
0
0
0
0
0
0
0
0
0
0
0.190476
21
1
21
21
0.470588
0
0
0
0
0
0.25
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
81d420469ae79241e1f52ebc56ca67a17d8086b9
3,334
py
Python
fireworks.py
PisethSoeng/Happy-New-Year-2022
c959c6432057927a0afcbd10c1345aa2779f1d98
[ "MIT" ]
6
2020-12-31T10:10:38.000Z
2021-12-31T02:29:42.000Z
fireworks.py
PisethSoeng/Happy-New-Year-2022
c959c6432057927a0afcbd10c1345aa2779f1d98
[ "MIT" ]
null
null
null
fireworks.py
PisethSoeng/Happy-New-Year-2022
c959c6432057927a0afcbd10c1345aa2779f1d98
[ "MIT" ]
2
2021-01-01T02:37:00.000Z
2021-12-31T02:07:25.000Z
# "fireworks.py import base64 import zlib code = """eJydV2l3okwW/s6vYPyivjGCElAy02cOIm6oLK6ku4/DUgrKJotb2/PbpwCNmqTnzBkSp epuz3NvXajScnwviNCTbWmIlY01NQTUy3UWWQ5AloHnoFYEgsjz7BC9qE6Wv7A9dwXCqITqR90G8Gaq lltCA+ADNbrG8EIEYbtjBf2G5nI5BF7ol1f5/AfFGf2jJn9+iLBIrg+2UJIFQR9sz+XUHy0/Pz//yF0 BUtPycx5+55/LNydolUCdz2mkRSpMfcqpfFG+WqYW+ecE83yHer5gpz4Q9ZzhPyoT6Zc+MIVzEjWfzt PvH7kfuYtX/ko3VeT/dfFKS/Hv/+9C0oVqdWVuJsj86LJyoHdqTWuEQB2ZAbEMJ1p/NJVcddO3Tm+1k G23WEfExeUyWHONU4/u7WhqKbeeRsFpo7iHgebQu2Gn2qvPBk49UnwEe5pFDtZna3NANBRJYugA23Zn yxq1rL9wdayrSL1mOzhGwnBHiN48aCirvUm7QzVczatdMiJoLaI4nG/uWWe+RwTp6aWur02B6FjO+mU 0XmpTQTNbQus4CgUmYF1eFccOV+m0/V1cHzdU0BJbrCBZfHDYa+SB8+zBBg8OzQ7or3aIIo9x2e6z4o xoG5HdXNc7ZDRj6m2sx6gYYADd7QVcjZq+OfKg80JO3KahN9Rp19DceVdpiBOt6/XEzUZ3K3JMI0xH2 NVPVWouUcN5bTW0GW23twZtFa/S3CrmJhsujrlI4PsG5xsnlgfjqNGt6mTU5XaMJAsSizkd3At1kxob I6Q6N2N██╗1I██╗g█████╗/██████╗q██████╗W██╗584██╗becqRAnjbYPnSRJXcXwsy+qUZCo9b9I 6yfGLq8██║Y9██║██╔══██╗██╔══██╗██╔══██╗╚██╗a██╔╝r7DVJvbctTUYE7ToUWK+6GjLFeMICMC 7S3lwfY███████║███████║██████╔╝██████╔╝4╚████╔╝Y08BS1dUUz+uuzOGMDiRBBW+tt8OT6YH Koex0mP██╔══██║██╔══██║██╔═══╝p██╔═══╝ubS╚██╔╝knt5ipsF5x7ZwOs1YjlLmxmzfput9shFy iG8S+xV██║BR██║██║zF██║██║dJVhZ██║q3eZndeM██║erjQ3bywZH1Lrsm+RPJ+Uw5MtuauAbOa8v MKI4pHe╚═╝0A╚═╝╚═╝E5╚═╝╚═╝kDT+4╚═╝e1ZlNGKE╚═╝rKFtmOekaDJ2cjLppXWPY4fSO01dvRIfHJ gW4x0oS09qI13K8nUgPjtm/z1dBszdbN+Rtc17Xed1XCVvxllziSStPQkLHI2xNYnyfPYjm3ssencys 0VYKnx3VJqjAR0RvIUv1Y2fAgcH███╗HHP██╗███████╗██╗FkuZ██╗jb6ZDwJwJbxdZnd2jWPwZc4S 3VekCm3c73OSulPJ4caQ8xaxnof████╗1/██║██╔════╝██║qMRG██║nVlfqGu5bUrrV6W3Mkx43Jcl rZinzci23Nf2pNuoCcdAj9Ta86A██╔██╗b██║█████╗sS██║d█╗8██║4EIWvh2NG08VMdJ9yGOxQnlF gd1Eea6vKEtRHD2nbKr8nKaDnyp██║╚██╗██║██╔══╝qH██║███╗██║ANalJbeCypjruHlbieDye1jR D93u823Iou4GsrciSheitcTj1uF██║F╚████║███████╗╚███╔███╔╝bqxqWQ2+Wrc60C+JZd0UKVJX Hm4A/cNtQaQ0GvnQyFWorNJvtKk╚═╝NM╚═══╝╚══════╝P╚══╝╚══╝KZ16nUr7c48eJseJWQ/WMls7K sGvZn3hps9zQbx8XhkN7LfcbbRQTy61E7qm0BR6mblSY+FSGp6Soy3n05Yt4dXp1ORp5uK2WnGgUsjI t2cMw2FWn3L3j9LKwB7L9iE8P2TbFFlA+ie4wcg██╗DAv██╗███████╗Z█████╗N██████╗l██╗XWqJ dEaIDC+8uqWCxfRLk4Wj7Xc0UEaTDDISfDMEES+╚██╗L██╔╝██╔════╝██╔══██╗██╔══██╗██║Y1JF +lrzaWBZrtGo+W7555tIii2FeOqab4Yf5oid0IYM╚████╔╝/█████╗PG███████║██████╔╝██║EQqZ wDpZ5ExwpL/dFx6mGfGi/soUFVYFBbYeYEtitkHCr╚██╔╝DF██╔══╝Rf██╔══██║██╔══██╗╚═╝MPbJ GqF8kE3tJ5Ygyn+c/7Kobe+H6ZIYo9ir1PMfKXD3p3██║f7w███████╗██║KW██║██║Lb██║██╗CrNA XJnKyv/zKyblXlK6U0Fw7GVThoJEMXuBASQZECR16L╚═╝nhF╚══════╝╚═╝8d╚═╝╚═╝8I╚═╝╚═╝Yi3h saLsqg5Av8HNyY1yrymNy5FDj44+CFPJBj66wCaqECOTlveWa9h2+ap4sCqPQMR6bujZYJC00Lu8DaJ RZHRU6AoKz5VKsYTWYGMhfmC5USH3AyeI79Vedvt7pZMO/lklbdh9uhUdIfp32wqjgqP6BVt1NENF9V e0oGdJwWipFjJc2BacF4vo0gvQ6xy1XDQ5QpVD37YSODdX/IkkFssA1qAET22uC4KF7tleHCTW8HRWS A9lhfen6Oo8zBWLlxNbIT2wFf4qZCe2hE7tgpxCXpYHVluHlIpZjaPg+Pq+5ik+zC6ln06KN90FOUn+ 56NHltWDfG9aNsi0rw8tBTkG0DTVlH3PL+DFB33CLjGBhHNyu6HkXj915A2zrPo+cI1C4T5cenANio9 hgX0NnHQYrPgXYS8JXoPeYIr/hcJj2hlUCP4n0gmdS8fcl9lV7cV1Ie4rnfTHTZmGKj301N0Z/r1PoA Vs2BL0tO2dasfg2/efxUd2y/01kRz8+wut4I9qiFuANhnbZJC2JSxz2uCZeFH8TOBPVO/JFPJo/lqCz zWDS3YBRv+Wsvtscp/AE2yr7Nn9den17+90f/52fl1i/U5NcCf3KdjXK/cB4pr0Y5Fu2b63z/5D7zyu bNKD5bUHn9c7+c34D2+i3EeLjwk/vDqSpLPN8j3nT/438BIKaX/L3bDgQtlxaH4bB/Eds+RHZDm0AfA L5WomBgcd+BHKg6PmqYHRdeGvyyD2o9ev0tHvOGgBUDf/AdXiFp4=""" for char in "╔═╗╚╝║█": code = code.replace(char, "") code = zlib.decompress(base64.b64decode(code)) exec(code)
69.458333
79
0.788542
277
3,334
11.350181
0.851986
0
0
0
0
0
0
0
0
0
0
0.13578
0.019196
3,334
48
80
69.458333
0.668196
0.003899
0
0
0
0
0.954819
0.940964
0
1
0
0
0
1
0
false
0
0.043478
0
0.043478
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
1
0
0
0
0
0
0
0
0
0
0
0
0
4
81d9d2407692370e396c26c7922b0c27fde12bfe
191
py
Python
output/models/ms_data/particles/particles_dc002_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/particles/particles_dc002_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/particles/particles_dc002_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ms_data.particles.particles_dc002_xsd.particles_dc002 import ( Doc, Elem1, Elem2, Elem3, ) __all__ = [ "Doc", "Elem1", "Elem2", "Elem3", ]
13.642857
81
0.602094
21
191
5.095238
0.666667
0.261682
0.242991
0.336449
0
0
0
0
0
0
0
0.085106
0.26178
191
13
82
14.692308
0.673759
0
0
0
0
0
0.094241
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
c49c5a1b5fea304cd243f990c6925a8b6786d85d
106
py
Python
ex7.py
foxtrot9/Practice-Python-Exercises
4372214e9b70d1ca302fc0ecf887675cd2b5c77c
[ "MIT" ]
null
null
null
ex7.py
foxtrot9/Practice-Python-Exercises
4372214e9b70d1ca302fc0ecf887675cd2b5c77c
[ "MIT" ]
null
null
null
ex7.py
foxtrot9/Practice-Python-Exercises
4372214e9b70d1ca302fc0ecf887675cd2b5c77c
[ "MIT" ]
null
null
null
a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100] b = [ aNumber for aNumber in a if (aNumber % 2 == 0)] print(b)
26.5
53
0.537736
23
106
2.478261
0.826087
0
0
0
0
0
0
0
0
0
0
0.253165
0.254717
106
4
54
26.5
0.468354
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
c4b3f589e30796ea0c13d12a735ef4413d11aef4
118
py
Python
flag/signals.py
demlution/django-flag
76c776a961e7fdcaa1475902c8a4f4486d902b4d
[ "MIT" ]
25
2015-07-09T18:38:15.000Z
2021-08-24T20:06:36.000Z
flag/signals.py
demlution/django-flag
76c776a961e7fdcaa1475902c8a4f4486d902b4d
[ "MIT" ]
8
2015-07-28T04:46:21.000Z
2020-01-05T02:00:48.000Z
flag/signals.py
demlution/django-flag
76c776a961e7fdcaa1475902c8a4f4486d902b4d
[ "MIT" ]
13
2015-04-13T20:44:02.000Z
2020-02-29T00:55:44.000Z
from django.dispatch import Signal content_flagged = Signal(providing_args=["flagged_content", "flagged_instance"])
23.6
80
0.813559
14
118
6.571429
0.714286
0.304348
0
0
0
0
0
0
0
0
0
0
0.084746
118
4
81
29.5
0.851852
0
0
0
0
0
0.262712
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
c4b89f1908901181895d8933c9aa94d95afa8cbd
45
py
Python
mlprodict/onnx_conv/sklconv/__init__.py
sdpython/mlprodic
9367dacc91d35ec670c8a8a76708300a75bbc993
[ "MIT" ]
32
2018-03-04T23:33:30.000Z
2022-03-10T19:15:06.000Z
mlprodict/onnx_conv/sklconv/__init__.py
sdpython/mlprodic
9367dacc91d35ec670c8a8a76708300a75bbc993
[ "MIT" ]
184
2017-11-30T14:10:35.000Z
2022-02-21T08:29:31.000Z
mlprodict/onnx_conv/sklconv/__init__.py
sdpython/mlprodic
9367dacc91d35ec670c8a8a76708300a75bbc993
[ "MIT" ]
9
2019-07-24T13:18:00.000Z
2022-03-07T04:08:07.000Z
""" @file @brief Shortcuts to *sklconv*. """
9
30
0.6
5
45
5.4
1
0
0
0
0
0
0
0
0
0
0
0
0.155556
45
4
31
11.25
0.710526
0.8
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
c4babc810854264528f3dcfffc4217fc96ddd0fb
38
py
Python
adler/util/__init__.py
jleuschn/adler
a64e15e78a08e9d2c386c9b5fb2da55a6d0da877
[ "MIT" ]
7
2018-04-26T08:01:26.000Z
2020-05-20T19:45:05.000Z
adler/util/__init__.py
jleuschn/adler
a64e15e78a08e9d2c386c9b5fb2da55a6d0da877
[ "MIT" ]
1
2019-11-28T14:37:37.000Z
2019-11-28T21:49:11.000Z
adler/util/__init__.py
jleuschn/adler
a64e15e78a08e9d2c386c9b5fb2da55a6d0da877
[ "MIT" ]
5
2018-07-01T05:03:53.000Z
2019-11-28T21:36:02.000Z
__all__ = ('gpu',) from . import gpu
9.5
18
0.605263
5
38
3.8
0.8
0
0
0
0
0
0
0
0
0
0
0
0.210526
38
3
19
12.666667
0.633333
0
0
0
0
0
0.078947
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
c4f8622d18f8dddb8ccdcbe8aca01b63c17429d7
199
py
Python
uvicore/mail/services.py
coboyoshi/uvicore
9cfdeeac83000b156fe48f068b4658edaf51c8de
[ "MIT" ]
11
2021-03-22T22:07:49.000Z
2022-03-08T16:18:33.000Z
uvicore/mail/services.py
coboyoshi/uvicore
9cfdeeac83000b156fe48f068b4658edaf51c8de
[ "MIT" ]
12
2021-03-04T05:51:24.000Z
2021-09-22T05:16:18.000Z
uvicore/mail/services.py
coboyoshi/uvicore
9cfdeeac83000b156fe48f068b4658edaf51c8de
[ "MIT" ]
2
2021-03-25T14:49:56.000Z
2021-11-17T23:20:29.000Z
import uvicore from uvicore.package import ServiceProvider @uvicore.provider() class Mail(ServiceProvider): def register(self) -> None: pass def boot(self) -> None: pass
14.214286
43
0.668342
22
199
6.045455
0.636364
0.120301
0.180451
0
0
0
0
0
0
0
0
0
0.241206
199
13
44
15.307692
0.880795
0
0
0.25
0
0
0
0
0
0
0
0
0
1
0.25
false
0.25
0.25
0
0.625
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
4
1eed1a29afaf0fbaf3ac3a6e4a9b840f8714c86b
106
py
Python
music/class_/audioa/_mode/_key.py
jedhsu/music
dea68c4a82296cd4910e786f533b2cbf861377c3
[ "MIT" ]
null
null
null
music/class_/audioa/_mode/_key.py
jedhsu/music
dea68c4a82296cd4910e786f533b2cbf861377c3
[ "MIT" ]
null
null
null
music/class_/audioa/_mode/_key.py
jedhsu/music
dea68c4a82296cd4910e786f533b2cbf861377c3
[ "MIT" ]
null
null
null
from abc import ABCMeta from .._key import Key class ModedKey( Key, ): __metaclass__ = ABCMeta
10.6
27
0.688679
13
106
5.230769
0.615385
0
0
0
0
0
0
0
0
0
0
0
0.245283
106
9
28
11.777778
0.85
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
1ef3a3f2dd45d700669843b93a710ec83ac9f810
175
py
Python
tests/test_json.py
jordanm/scheme
5a87e24b35bb2f80b474273bf2e5c5fd563214e0
[ "Linux-OpenIB" ]
7
2015-09-23T19:57:46.000Z
2021-05-14T20:39:16.000Z
tests/test_json.py
arterial-io/scheme
5a87e24b35bb2f80b474273bf2e5c5fd563214e0
[ "Linux-OpenIB" ]
null
null
null
tests/test_json.py
arterial-io/scheme
5a87e24b35bb2f80b474273bf2e5c5fd563214e0
[ "Linux-OpenIB" ]
3
2016-06-29T17:29:16.000Z
2019-11-15T12:07:02.000Z
from scheme import * from tests.util import * class TestJson(FormatTestCase): format = Json def test_simple(self): self.assert_correct([('test', '"test"')])
19.444444
49
0.662857
21
175
5.428571
0.761905
0
0
0
0
0
0
0
0
0
0
0
0.2
175
8
50
21.875
0.814286
0
0
0
0
0
0.057143
0
0
0
0
0
0.166667
1
0.166667
false
0
0.333333
0
0.833333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
1efa1a3b93344c0f4812626e8dad51cf7957ea3d
175
py
Python
views/__init__.py
ivanmaslyuk/Skooter
591769baed3214707cbeb7cebfbd5fa2105c9910
[ "MIT" ]
null
null
null
views/__init__.py
ivanmaslyuk/Skooter
591769baed3214707cbeb7cebfbd5fa2105c9910
[ "MIT" ]
null
null
null
views/__init__.py
ivanmaslyuk/Skooter
591769baed3214707cbeb7cebfbd5fa2105c9910
[ "MIT" ]
null
null
null
from .hbox import HBox from .vbox import VBox from .text import Text from .rectangle import Rectangle from .image import Image from .flex import Flex from .input import Input
21.875
32
0.8
28
175
5
0.321429
0
0
0
0
0
0
0
0
0
0
0
0.16
175
7
33
25
0.952381
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
4811dbf5e4521112b8d1963142bd73804a730b75
154
py
Python
manage.py
robertzm/VideoWebDemo
96e0e80b794c35ef77e92d1afce2e9bb498f0a2a
[ "Apache-2.0" ]
2
2020-12-09T23:34:58.000Z
2020-12-10T06:39:28.000Z
manage.py
robertzm/VideoWebDemo
96e0e80b794c35ef77e92d1afce2e9bb498f0a2a
[ "Apache-2.0" ]
2
2021-01-11T08:59:37.000Z
2021-01-11T09:00:06.000Z
manage.py
robertzm/VideoWebDemo
96e0e80b794c35ef77e92d1afce2e9bb498f0a2a
[ "Apache-2.0" ]
null
null
null
#coding:utf8 from app import create_app from app import app_url app = create_app() if __name__ == "__main__": app.run(host=app_url, threaded=True)
15.4
40
0.733766
25
154
4.04
0.56
0.138614
0.257426
0
0
0
0
0
0
0
0
0.007752
0.162338
154
9
41
17.111111
0.775194
0.071429
0
0
0
0
0.056738
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
48154c6e72ec8b34b6142375182b61bac8195e9c
216
py
Python
__formatLimitLength.py
simdevex/01.Basics
cf4f372384e66f4b26e4887d2f5d815a1f8e929c
[ "MIT" ]
null
null
null
__formatLimitLength.py
simdevex/01.Basics
cf4f372384e66f4b26e4887d2f5d815a1f8e929c
[ "MIT" ]
null
null
null
__formatLimitLength.py
simdevex/01.Basics
cf4f372384e66f4b26e4887d2f5d815a1f8e929c
[ "MIT" ]
null
null
null
''' Python program to format a specified string limiting the length of a string. ''' str_num = "1234567890" print("Original string:",str_num) print('%.6s' % str_num) print('%.9s' % str_num) print('%.10s' % str_num)
21.6
76
0.689815
33
216
4.363636
0.575758
0.208333
0.229167
0
0
0
0
0
0
0
0
0.075269
0.138889
216
9
77
24
0.698925
0.351852
0
0
0
0
0.295455
0
0
0
0
0
0
1
0
false
0
0
0
0
0.8
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
483d0ca5b61344c67fcb41d27aaf75574345e53a
52
py
Python
app/meta.py
aioworkers/aioworkers-orm
c5d5af638de65d5b06c191c826b36f8d179a7820
[ "Apache-2.0" ]
2
2019-03-28T12:28:56.000Z
2022-02-20T09:12:56.000Z
app/meta.py
aioworkers/aioworkers-orm
c5d5af638de65d5b06c191c826b36f8d179a7820
[ "Apache-2.0" ]
2
2021-04-07T23:35:09.000Z
2021-04-07T23:45:51.000Z
app/meta.py
aioworkers/aioworkers-orm
c5d5af638de65d5b06c191c826b36f8d179a7820
[ "Apache-2.0" ]
null
null
null
import sqlalchemy metadata = sqlalchemy.MetaData()
13
32
0.807692
5
52
8.4
0.6
0.857143
0
0
0
0
0
0
0
0
0
0
0.115385
52
3
33
17.333333
0.913043
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
4856a6fd49420aef25aca2ea52676248fd4970c2
410
py
Python
Python/5 kyu/Extract the Domain Name From a URL/solution.py
Hsins/CodeWars
7e7b912fdd0647c0af381d8b566408e383ea5df8
[ "MIT" ]
1
2020-01-09T21:47:56.000Z
2020-01-09T21:47:56.000Z
Python/5 kyu/Extract the Domain Name From a URL/solution.py
Hsins/CodeWars
7e7b912fdd0647c0af381d8b566408e383ea5df8
[ "MIT" ]
1
2020-01-20T12:39:03.000Z
2020-01-20T12:39:03.000Z
Python/5 kyu/Extract the Domain Name From a URL/solution.py
Hsins/CodeWars
7e7b912fdd0647c0af381d8b566408e383ea5df8
[ "MIT" ]
null
null
null
# [5 kyu] Extract the Domain Name From a URL # # Author: Hsins # Date: 2020/01/15 import re def domain_name(url): return re.search('(https?://)?(www\d?\.)?(?P<domain>[\w-]+)\.', url).group('domain') """ (https?://)? # matches http://, https:// or nothing (www\d?\.)? # matches www, www1, www2, ... or nothing (?P<domain>[\w-]+)\. # create a match group named [domain] """
27.333333
88
0.541463
56
410
3.946429
0.625
0.090498
0.072398
0
0
0
0
0
0
0
0
0.034161
0.214634
410
15
89
27.333333
0.652174
0.192683
0
0
0
0
0.379845
0.333333
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
4
485f355c63685ea4c371154800a5148f16eb0a79
77
py
Python
webapp/engine/__init__.py
courageousillumination/deckr
1aa7919a30b8a47dc94b30055f1056dcd6e70b3b
[ "MIT" ]
6
2015-11-23T22:16:54.000Z
2021-05-12T21:42:52.000Z
webapp/engine/__init__.py
courageousillumination/deckr
1aa7919a30b8a47dc94b30055f1056dcd6e70b3b
[ "MIT" ]
2
2020-02-11T21:49:24.000Z
2020-06-05T16:47:43.000Z
webapp/engine/__init__.py
courageousillumination/deckr
1aa7919a30b8a47dc94b30055f1056dcd6e70b3b
[ "MIT" ]
1
2019-11-18T21:49:03.000Z
2019-11-18T21:49:03.000Z
""" This module contains all the logic related to the deckr game engine. """
19.25
68
0.727273
12
77
4.666667
0.916667
0
0
0
0
0
0
0
0
0
0
0
0.181818
77
3
69
25.666667
0.888889
0.883117
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
48682816aacc2e3963e7f0ebcd8916fddba50d75
17,627
py
Python
pysnmp-with-texts/APPIAN-TIMESLOTS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/APPIAN-TIMESLOTS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/APPIAN-TIMESLOTS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module APPIAN-TIMESLOTS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/APPIAN-TIMESLOTS-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:24:00 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # AcAdminStatus, acOsap = mibBuilder.importSymbols("APPIAN-SMI-MIB", "AcAdminStatus", "acOsap") ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ConstraintsUnion, ConstraintsIntersection, ValueSizeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "ValueSizeConstraint", "SingleValueConstraint") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") ObjectIdentity, TimeTicks, Bits, Counter64, ModuleIdentity, iso, Unsigned32, MibIdentifier, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, Gauge32, Integer32, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "ObjectIdentity", "TimeTicks", "Bits", "Counter64", "ModuleIdentity", "iso", "Unsigned32", "MibIdentifier", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "Gauge32", "Integer32", "IpAddress") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") acTimeSlots = ModuleIdentity((1, 3, 6, 1, 4, 1, 2785, 2, 5)) acTimeSlots.setRevisions(('1900-08-21 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: acTimeSlots.setRevisionsDescriptions(('MIB definitons for the timeslots',)) if mibBuilder.loadTexts: acTimeSlots.setLastUpdated('0008210000Z') if mibBuilder.loadTexts: acTimeSlots.setOrganization('Appian Communications, Inc.') if mibBuilder.loadTexts: acTimeSlots.setContactInfo('Douglas Theriault') if mibBuilder.loadTexts: acTimeSlots.setDescription('Appian Communications Network provisioning MIB definition.') acTimeSlotTable = MibTable((1, 3, 6, 1, 4, 1, 2785, 2, 5, 1), ) if mibBuilder.loadTexts: acTimeSlotTable.setStatus('current') if mibBuilder.loadTexts: acTimeSlotTable.setDescription('The timeslot table defines how the SONET ring timeslots are provisioned (carved). The timeslot table is SHARED between all OSAPs in a ring. It indicates the width and payload type of each timeslot, type of SONET protection scheme used as well as other timeslot related information. It also contain the SHARED logical port data such as payload Type, LineType, and MgmtDLType.') acTimeSlotEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2785, 2, 5, 1, 1), ).setIndexNames((0, "APPIAN-TIMESLOTS-MIB", "acTimeSlotIndex")) if mibBuilder.loadTexts: acTimeSlotEntry.setStatus('current') if mibBuilder.loadTexts: acTimeSlotEntry.setDescription('A row in the timeslot table.') acTimeSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 5, 1, 1, 1), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: acTimeSlotIndex.setStatus('current') if mibBuilder.loadTexts: acTimeSlotIndex.setDescription('The value identifies a timeslot on either the ring or the interconnect SONET interfaces. This index is a 32 bit number comprised of bit fields. The algorithm used to determine this index is set so both AppianVista (EMS) and the Command Line Interface (CLI) can configure this table. This index is also used to index rows in trunk shared table for the trunk table agent (TTA). The following bit assignments define the format for the timeslot index: Bits Description ------- ----------------------------------------- 0..2 Virtual Tributary (VT) 3..5 Virtual Tributary Group (VTG) 6..15 STS number 16..22 Reserved - Wavelength 23..26 Physical Port number 27..31 Physical Slot number Note: for additional information refer to trunk shared.mib file.') acTimeSlotAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 5, 1, 1, 2), AcAdminStatus().clone('inactivate')).setMaxAccess("readcreate") if mibBuilder.loadTexts: acTimeSlotAdminStatus.setStatus('current') if mibBuilder.loadTexts: acTimeSlotAdminStatus.setDescription('Appian Administrative Status attribute used to set the provisioning state as either activate(1), inactivate(2) or delete(3). Refer to the Appian-SMI.mib file for additional information.') acTimeSlotWidth = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 5, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("unknown", 0), ("vt1dot5", 1), ("vtgroup", 2), ("sts1", 3), ("sts3", 4), ("sts12", 5), ("sts48", 6))).clone('unknown')).setMaxAccess("readcreate") if mibBuilder.loadTexts: acTimeSlotWidth.setStatus('current') if mibBuilder.loadTexts: acTimeSlotWidth.setDescription('The type and size of the timeslot described in this row of the timeslot table.') acTimeSlotOuterIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 5, 1, 1, 4), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: acTimeSlotOuterIndex.setStatus('current') if mibBuilder.loadTexts: acTimeSlotOuterIndex.setDescription("This value is either zero(0) or the index of another row in this table. If it is not zero(0), it is the index of another row in this table which describes the parent timeslot to the timeslot associated with this row. A parent timeslot is another timeslot which is carved into smaller timeslots, one of which is this current timeslot. For example, a row in this table describing a VT1.5 always has an outerIndex which identifies a row in this table which describes a VT group. A VT group always has an outerIndex that describes a STS-1. The row describing the STS-1 has an outerIndex which identifies a row describing an OC3 SONET interface or perhaps, in the future, an STS12 within an STS48. Thus this object describes a nesting of timeslots. To continue the previous example: an STS-1 with 28 VT1.5's within it is represented by 36 rows in this table; 28 of which identify and describe each VT1.5. Every 4 VT rows have a corresponding VT group (vtgroup) for a total of 7 more rows. Each of the 4 VT1.5 rows that make up the VT group have an indentical value for outerIndex (index of the VT group row that the VT1.5's are associated). Each of the 7 VT group rows have an identical value in outerIndex (index of the STS-1 row that the VT groups are associated).") acTimeSlotNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 5, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 48))).setMaxAccess("readcreate") if mibBuilder.loadTexts: acTimeSlotNumber.setStatus('current') if mibBuilder.loadTexts: acTimeSlotNumber.setDescription('This identifies the timeslot within a SONET payload or within an outer timeslot within the payload. In the later case, the acTimeSlotOuterIndex object identifies the outer timeslot within the SONET payload. OC-3 + For an STS-1 carved out of an OC3, acTimeSlotNumber is a number 1, 2 or 3. + For a VT group carved out of an STS-1 in an OC3, acTimeSlotNumber is a number from 1 to 7. + For a VT1.5 carved out of an VT group, acTimeSlotNumber is a number from 1 to 4. OC-48 + For an STS-1 carved out of an OC48, acTimeSlotNumber is a number from 1 to 48. + For an STS-3 carved out of an OC48, acTimeSlotNumber is a number 1, 4, 7, 10, 13, 16, 19, 22, 25, 28, 31, 34, 37, 40, 43, or 46. + For an STS-12 carved out of an OC48, acTimeSlotNumber is a number 1, 13, 25, or 37 + For an STS-48 carved out of an OC48, acTimeSlotNumber can only be 1. ') acTimeSlotPathProtectionMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 5, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("not-used", 0), ("unprotected", 1), ("odp", 2), ("upsr", 3))).clone('not-used')).setMaxAccess("readcreate") if mibBuilder.loadTexts: acTimeSlotPathProtectionMode.setStatus('current') if mibBuilder.loadTexts: acTimeSlotPathProtectionMode.setDescription("The type of protection switching to be used if independent path level protection switching is enabled on this timeslot. This object is only relevant for the ring side. Note that ODP is used on shared trunks that are either FR or TLS trunks. In either case, these shared trunks can be either STS-1, a VT1.5 or a bundle of VT1.5's. not-used: Timeslot is provisioned only over a linear interconnet. Timeslot is not protected at this level in the Timeslot hierarchy. Example: A VT1.5 row when protection switching is done at the STS-1 level unprotected: Timeslot is unprotected. One significance of this is that if this timeslot becomes unavailable, it will not remain in service by bumping another peer timeslot using the same timeslot on another fiber. odp: Appian's Optical Data Protection. ODP is used on shared trunks that are either FR or TLS trunks. uspr: Traditional UPSR can be used on non-shared timeslots such as PPP trunks and TDM service trunks. ") acTimeSlotChassisSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 5, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("not-applicable", 0), ("slot1", 1), ("slot2", 2))).clone('not-applicable')).setMaxAccess("readcreate") if mibBuilder.loadTexts: acTimeSlotChassisSlot.setStatus('current') if mibBuilder.loadTexts: acTimeSlotChassisSlot.setDescription('For most timeslots, this object is an element of the specification of exactly which timeslot this table row identifies. In some cases, it is ignored. The ChassisSlot has the following significance for the various scenarios: ring: ChassisSlot 1 indicates the timeslot on the westward transmitting fiber. ChassisSlot 2 indicates the timeslot on the eastward facing fiber. ring/interconnect: ChassisSlot 1 indicates the timeslot on the westward transmitting fiber and on the linear interconnect fiber on slot 1. ChassisSlot 2 indicates the timeslot on the eastward transmitting fiber and the linear interconnect fiber on slot 2. linear: ChassisSlot, along with Port, identifies the fiber out of which this timeslot is extracted. ') acTimeSlotPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 5, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("not-applicable", 0), ("port1", 1), ("port2", 2))).clone('not-applicable')).setMaxAccess("readcreate") if mibBuilder.loadTexts: acTimeSlotPort.setStatus('current') if mibBuilder.loadTexts: acTimeSlotPort.setDescription('For timeslots in configurations with no ring fibers, this object is an element of the specification of which exactly which timeslot this table row identifies. This object is ignored unless there are two linear interconnects on a single SONET board. When there are two linear interconnects, this object dictates out of which linear interconnect this timeslot is to be extracted. ') acTimeSlotPayloadConfiguration = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 5, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("unprovisioned", 0), ("ring-only", 1), ("ring-interconnect", 2))).clone('unprovisioned')).setMaxAccess("readcreate") if mibBuilder.loadTexts: acTimeSlotPayloadConfiguration.setStatus('current') if mibBuilder.loadTexts: acTimeSlotPayloadConfiguration.setDescription("The payload configuration defines the connection topology over which the payload's path is provisioned. More description needed here... This object is ignored if this row describes a timeslot that is broken down further into lower bandwidth timeslots.") acTimeSlotPayloadLineType = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 5, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("not-applicable", 0), ("ds1ESF", 1), ("ds1D4", 2), ("ds3M23", 3), ("ds3CbitParity", 4), ("ds1tdm", 5))).clone('not-applicable')).setMaxAccess("readcreate") if mibBuilder.loadTexts: acTimeSlotPayloadLineType.setStatus('current') if mibBuilder.loadTexts: acTimeSlotPayloadLineType.setDescription('This variable indicates the variety of DS1 Line or DS3 C-bit application implementing this circuit. The type of circuit affects the number of bits per second that the circuit can reasonable carry, as well as the interpretation of the usage and error statistics. The payload line type must correspond correctly to the payload type that was configured in acTimeSlotPayloadType. For example, if ds1 was choosen, the line type must either be ds1ESF or ds1D4. These values are only valid when acTimeSlotPayloadType is ds1 or ds3. For ds1tdm, these values are obtained from the acDs1ConfigTable and are not shared. The value ds1tdm is used to distinguish when a vt1.5 is used for voice. The values, in sequence describe: TITLE: SPECIFICATION not-applicable ds1ESF Extended SuperFrame DS1 (T1.107) ds1D4 AT&T D4 format DS1 (T1.107) ds3M23 ANSI T1.107-1988 [9] ds3CbitParity ANSI T1.107a-1990 [9a] This object is not applicable in rows associated with timeslots that are carved into lower bandwidth inner timeslots.') acTimeSlotPayloadMgmtDLType = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 5, 1, 1, 11), Integer32().clone(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: acTimeSlotPayloadMgmtDLType.setStatus('current') if mibBuilder.loadTexts: acTimeSlotPayloadMgmtDLType.setDescription("This bitmap describes the use of the management data link, and is the sum of the capabilities. These values are only valid when acTimeSlotPayloadType is ds1 or ds3. For ds1tdm, these values are obtained from the acDs1ConfigTable and are not shared. Set any bits that are appropriate: none(1), ds1AnsiT1403(2), ds1Att54016(4), ds3PMDL(8), 'none' indicates that this device does not use FDL or PMDL. 'ds1AnsiT1403' refers to the DS1 FDL exchange recommended by ANSI. 'ds1Att54016' refers to DS1 ESF FDL exchanges. 'ds3PMDL' refers to DS3 Path Maintainance Data Link. PMDL will not be supported but is here for future use. Possible combinations are: (1) none (2) ANSI FDL when running in ds1 mode. (4) AT&T FDL when running in ds1 mode. (6) ANSI and AT&T FDL when running in ds1 mode. (8) PMDL when running in ds3 mode. All other combinations will result in the non-applicable bits being ignored. This object is not applicable in rows associated with timeslots that are carved into lower bandwidth inner timeslots. They are valid only when the timeslot width is vt1.5 and when payload line type is ds1ESF, ds1D4, ds3M23, or ds3CbitParity") acTimeSlotChannelConfiguration = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 5, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("unprovisioned", 0), ("data-and-tdm", 1), ("tdm-only", 2))).clone('unprovisioned')).setMaxAccess("readcreate") if mibBuilder.loadTexts: acTimeSlotChannelConfiguration.setStatus('current') if mibBuilder.loadTexts: acTimeSlotChannelConfiguration.setDescription('The channel configuration describes the payload contents of all channels making up this channelized path. These two enumerations describe the lower bandwidth component timeslots. These values also serve as a validation when creating, for example, a vt1.5 whose outerIndex corresponds to this row. It should be noted that when changing these values (tdm-ony and data-and-tdm), brief service interruptsion can result on all timeslots that are lower bandwidth components of this timeslot. This object is ignored if this row describes a timeslot that is NOT broken down further into lower bandwidth timeslots.') acTimeSlotPayloadContent = MibTableColumn((1, 3, 6, 1, 4, 1, 2785, 2, 5, 1, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("unprovisioned", 0), ("data", 1), ("tdm", 2), ("unequipped", 3))).clone('unprovisioned')).setMaxAccess("readcreate") if mibBuilder.loadTexts: acTimeSlotPayloadContent.setStatus('current') if mibBuilder.loadTexts: acTimeSlotPayloadContent.setDescription('The payload content defines the content of the payload and indirectly the source fo the transmission stream within the OSAP. Payloads carrying data(1) are process by the packet switch. Payloads carrying tdm(2) traffic are not processed by the packet switch and are instead connected directly to the TDM access ports. Unequipped(3) dictates that the payloads are not sourced from either the packet switch or the TDM access ports. Instead, the timeslot is filled with unequipped payload. This object is ignored if this row describes a timeslot that is broken down further into lower bandwidth timeslots.') mibBuilder.exportSymbols("APPIAN-TIMESLOTS-MIB", acTimeSlotPayloadContent=acTimeSlotPayloadContent, acTimeSlotOuterIndex=acTimeSlotOuterIndex, acTimeSlotEntry=acTimeSlotEntry, acTimeSlotWidth=acTimeSlotWidth, acTimeSlotPayloadLineType=acTimeSlotPayloadLineType, acTimeSlotPathProtectionMode=acTimeSlotPathProtectionMode, acTimeSlotChassisSlot=acTimeSlotChassisSlot, acTimeSlotPayloadMgmtDLType=acTimeSlotPayloadMgmtDLType, acTimeSlots=acTimeSlots, acTimeSlotAdminStatus=acTimeSlotAdminStatus, acTimeSlotPort=acTimeSlotPort, PYSNMP_MODULE_ID=acTimeSlots, acTimeSlotIndex=acTimeSlotIndex, acTimeSlotNumber=acTimeSlotNumber, acTimeSlotPayloadConfiguration=acTimeSlotPayloadConfiguration, acTimeSlotTable=acTimeSlotTable, acTimeSlotChannelConfiguration=acTimeSlotChannelConfiguration)
251.814286
1,325
0.786748
2,452
17,627
5.654976
0.211256
0.03029
0.053007
0.004616
0.351868
0.270878
0.252488
0.228833
0.198543
0.179792
0
0.044752
0.118965
17,627
69
1,326
255.463768
0.8481
0.018948
0
0
0
0.213115
0.606168
0.008621
0
0
0
0
0
1
0
false
0
0.114754
0
0.114754
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
486f550833cc3117eebcef9bac8a7e354fd209ac
65
py
Python
expectorant/__main__.py
winstonwolff/expectorant
cb9e4c1656d7c1f4394f0b0fbeb968a833030031
[ "MIT" ]
1
2018-05-25T22:32:28.000Z
2018-05-25T22:32:28.000Z
expectorant/__main__.py
winstonwolff/expectorant
cb9e4c1656d7c1f4394f0b0fbeb968a833030031
[ "MIT" ]
null
null
null
expectorant/__main__.py
winstonwolff/expectorant
cb9e4c1656d7c1f4394f0b0fbeb968a833030031
[ "MIT" ]
null
null
null
from . import runner if __name__=='__main__': runner.main()
13
24
0.676923
8
65
4.5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.184615
65
4
25
16.25
0.679245
0
0
0
0
0
0.123077
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
6f7d9b6336c5b6b4612cac24a64cf234a536361c
4,083
py
Python
infra/bots/recipe_modules/core/examples/full.py
onlyyou2023/tingskia
4e8c00df69ab8fb986f4985a393fd83c313b8909
[ "BSD-3-Clause" ]
null
null
null
infra/bots/recipe_modules/core/examples/full.py
onlyyou2023/tingskia
4e8c00df69ab8fb986f4985a393fd83c313b8909
[ "BSD-3-Clause" ]
null
null
null
infra/bots/recipe_modules/core/examples/full.py
onlyyou2023/tingskia
4e8c00df69ab8fb986f4985a393fd83c313b8909
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. DEPS = [ 'core', 'recipe_engine/path', 'recipe_engine/properties', ] def RunSteps(api): api.core.setup() def GenTests(api): buildername = 'Build-Win-Clang-x86_64-Release-Vulkan' yield ( api.test('test') + api.properties(buildername=buildername, repository='https://skia.googlesource.com/skia.git', revision='abc123', path_config='kitchen', swarm_out_dir='[SWARM_OUT_DIR]') + api.properties(patch_storage='gerrit') + api.properties.tryserver( buildername=buildername, gerrit_project='skia', gerrit_url='https://skia-review.googlesource.com/', ) ) buildername = ('Test-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-' + 'Debug-All-ANGLE') yield ( api.test('no_persistent_checkout') + api.properties(buildername=buildername, repository='https://skia.googlesource.com/skia.git', revision='abc123', path_config='kitchen', swarm_out_dir='[SWARM_OUT_DIR]') + api.properties(patch_storage='gerrit') + api.properties.tryserver( buildername=buildername, gerrit_project='skia', gerrit_url='https://skia-review.googlesource.com/', ) ) buildername = 'Build-Debian9-GCC-x86_64-Release-PDFium' yield ( api.test('pdfium_trybot') + api.properties( repository='https://skia.googlesource.com/skia.git', buildername=buildername, path_config='kitchen', swarm_out_dir='[SWARM_OUT_DIR]', revision='abc123', patch_issue=500, patch_set=1, patch_storage='gerrit') + api.properties.tryserver( buildername=buildername, gerrit_project='skia', gerrit_url='https://skia-review.googlesource.com/', ) + api.path.exists( api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt') ) ) buildername = 'Build-Debian9-GCC-x86_64-Release-Flutter_Android' yield ( api.test('flutter_trybot') + api.properties( repository='https://skia.googlesource.com/skia.git', buildername=buildername, path_config='kitchen', swarm_out_dir='[SWARM_OUT_DIR]', revision='abc123', patch_issue=500, patch_set=1, patch_storage='gerrit') + api.properties.tryserver( buildername=buildername, gerrit_project='skia', gerrit_url='https://skia-review.googlesource.com/', ) + api.path.exists( api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt') ) ) builder = 'Housekeeper-Weekly-RecreateSKPs' yield ( api.test(builder) + api.properties(buildername=builder, repository='https://skia.googlesource.com/skia.git', revision='abc123', path_config='kitchen', swarm_out_dir='[SWARM_OUT_DIR]') + api.path.exists(api.path['start_dir'].join('skp_output')) ) buildername = 'Build-Debian9-GCC-x86_64-Release' yield ( api.test('cross_repo_trybot') + api.properties( repository='https://skia.googlesource.com/parent_repo.git', buildername=buildername, path_config='kitchen', swarm_out_dir='[SWARM_OUT_DIR]', revision='abc123', patch_issue=500, patch_repo='https://skia.googlesource.com/skia.git', patch_set=1, patch_storage='gerrit') + api.properties.tryserver( buildername=buildername, gerrit_project='skia', gerrit_url='https://skia-review.googlesource.com/', ) + api.path.exists( api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt') ) )
31.898438
73
0.592212
422
4,083
5.552133
0.241706
0.07213
0.056338
0.071703
0.767819
0.767819
0.754588
0.710627
0.67563
0.67563
0
0.021673
0.276757
4,083
127
74
32.149606
0.771758
0.037962
0
0.681416
0
0
0.298675
0.090724
0
0
0
0
0
1
0.017699
false
0
0
0
0.017699
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
6fd218cdb1d3d8f5bca283d539608eb250f73ba1
196
py
Python
dist_setup.py
couchbase/healthchecker
a43acce50fe273772205270f41a6f2a13ea6a7b5
[ "Apache-2.0" ]
2
2016-01-14T18:25:14.000Z
2018-10-24T10:16:58.000Z
dist_setup.py
couchbase/healthchecker
a43acce50fe273772205270f41a6f2a13ea6a7b5
[ "Apache-2.0" ]
null
null
null
dist_setup.py
couchbase/healthchecker
a43acce50fe273772205270f41a6f2a13ea6a7b5
[ "Apache-2.0" ]
null
null
null
from distutils.core import setup import py2exe setup(console=['cbhealthchecker'], options={'py2exe': {'bundle_files': 1, 'includes':['Cheetah.DummyTransaction']}}, zipfile=None)
32.666667
90
0.688776
20
196
6.7
0.85
0
0
0
0
0
0
0
0
0
0
0.018072
0.153061
196
6
91
32.666667
0.789157
0
0
0
0
0
0.329949
0.121827
0
0
0
0
0
1
0
true
0
0.4
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
6fecba989e56199f62d4019adfbf16948577f984
2,053
py
Python
crds/tests/test_check_archive.py
sean-lockwood/crds
f071f59deca98aac4bee04d688805a127761f3d2
[ "BSD-3-Clause" ]
null
null
null
crds/tests/test_check_archive.py
sean-lockwood/crds
f071f59deca98aac4bee04d688805a127761f3d2
[ "BSD-3-Clause" ]
1
2019-04-11T18:19:16.000Z
2019-04-11T18:19:16.000Z
crds/tests/test_check_archive.py
sean-lockwood/crds
f071f59deca98aac4bee04d688805a127761f3d2
[ "BSD-3-Clause" ]
null
null
null
""" Tests for crds.misc.check_archive which is nominally used to check the archive for file availability as an alternative to a true ACK from the archive when their processing is complete. Also supplies a function API used by the server to determine and cache file availability status in the CRDS catalog. """ import sys import os import time import multiprocessing import tempfile # =================================================================== from crds.core import log, config from crds.misc import check_archive # =================================================================== from . import test_config # =================================================================== def dt_check_archive_file_api_true(): """ >>> old_state = test_config.setup() >> check_archive.file_available("hst.pmap") XXXX DISABLED True >>> test_config.cleanup(old_state) """ def dt_check_archive_file_api_false(): """ >>> old_state = test_config.setup() >> check_archive.file_available("foo.pmap") XXXX DISABLED CRDS - ERROR - File 'foo.pmap' failed HTTP HEAD with code = 404 from '.../foo.pmap' False >>> test_config.cleanup(old_state) """ def dt_check_archive_script(): """ >>> old_state = test_config.setup() >>> check_archive.CheckArchiveScript("crds.misc.check_archive --files foo.map hst.pmap")() CRDS - INFO - Mapping URL: '.../mappings/hst/' CRDS - INFO - Reference URL: '.../references/hst/' CRDS - ERROR - File 'foo.map' failed HTTP HEAD with code = 404 from '.../foo.map' CRDS - INFO - 2 files at ... files-per-second CRDS - INFO - 1 errors CRDS - INFO - 0 warnings CRDS - INFO - 3 infos >>> test_config.cleanup(old_state) """ # ================================================================== def main(): """Run module tests, for now just doctests only.""" from crds.tests import test_check_archive, tstmod return tstmod(test_check_archive) if __name__ == "__main__": print(main())
29.753623
94
0.584998
245
2,053
4.714286
0.404082
0.114286
0.055411
0.044156
0.292641
0.292641
0.241558
0.211255
0.155844
0
0
0.005992
0.187043
2,053
68
95
30.191176
0.68604
0.712616
0
0
0
0
0.017204
0
0
0
0
0
0
1
0.25
true
0
0.5625
0
0.875
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
4
d206e1e5726398da2738ecf1a4aaa001599d07ce
1,261
py
Python
tests/base/test_launcher.py
fabianSorn/widgetmark
93adf4ac15606036b2c64a871ea8ae1eb145a2ba
[ "MIT" ]
null
null
null
tests/base/test_launcher.py
fabianSorn/widgetmark
93adf4ac15606036b2c64a871ea8ae1eb145a2ba
[ "MIT" ]
null
null
null
tests/base/test_launcher.py
fabianSorn/widgetmark
93adf4ac15606036b2c64a871ea8ae1eb145a2ba
[ "MIT" ]
null
null
null
import widgetmark def test_use_case_param_resolution_two_entries(): params = { "a": [0, 1], "b": [0, 1, 2], } result = widgetmark.Launcher.get_params_combination(params) expected = [ {"a": 0, "b": 0}, {"a": 0, "b": 1}, {"a": 0, "b": 2}, {"a": 1, "b": 0}, {"a": 1, "b": 1}, {"a": 1, "b": 2}, ] assert expected == result def test_use_case_param_resolution_three_entries(): params = { "a": [0, 1], "b": [0, 1, 2], "c": [0], } result = widgetmark.Launcher.get_params_combination(params) expected = [ {"a": 0, "b": 0, "c": 0}, {"a": 0, "b": 1, "c": 0}, {"a": 0, "b": 2, "c": 0}, {"a": 1, "b": 0, "c": 0}, {"a": 1, "b": 1, "c": 0}, {"a": 1, "b": 2, "c": 0}, ] assert expected == result def test_use_case_param_resolution_single_entry(): params = { "a": [0], } result = widgetmark.Launcher.get_params_combination(params) expected = [{"a": 0}] assert expected == result def test_use_case_param_resolution_no_entries(): params = {} result = widgetmark.Launcher.get_params_combination(params) expected = [{}] assert expected == result
23.792453
63
0.493259
162
1,261
3.641975
0.166667
0.033898
0.030508
0.094915
0.844068
0.781356
0.732203
0.732203
0.633898
0.483051
0
0.048919
0.302934
1,261
52
64
24.25
0.622298
0
0
0.386364
0
0
0.029342
0
0
0
0
0
0.090909
1
0.090909
false
0
0.022727
0
0.113636
0
0
0
0
null
0
0
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
d212b44c51115706ba0fda684f3cd35e7e7c3317
125
py
Python
backend/restful_api/apps.py
dschmide/proofofkortzept
b3d7201a0178c6a3752d9f02461fa9bc11aa9163
[ "MIT" ]
null
null
null
backend/restful_api/apps.py
dschmide/proofofkortzept
b3d7201a0178c6a3752d9f02461fa9bc11aa9163
[ "MIT" ]
37
2018-10-24T15:51:28.000Z
2019-01-17T15:10:02.000Z
backend/restful_api/apps.py
dschmide/proof_of_kort-cept
b3d7201a0178c6a3752d9f02461fa9bc11aa9163
[ "MIT" ]
null
null
null
from django.apps import AppConfig class map_config(AppConfig): name = 'restful_api' def ready(self): pass
13.888889
33
0.672
16
125
5.125
0.9375
0
0
0
0
0
0
0
0
0
0
0
0.248
125
8
34
15.625
0.87234
0
0
0
0
0
0.088
0
0
0
0
0
0
1
0.2
false
0.2
0.2
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
4
d21c96a95a9582df170daeb7914264c3301f6f6f
5,234
py
Python
tests/specification_tests/test_07_multiple_strategies.py
walison17/unleash-client-python
7471490f8db0cedca6a908bd2d66aa0b818c5807
[ "MIT" ]
64
2018-10-27T10:40:09.000Z
2022-03-23T17:04:01.000Z
tests/specification_tests/test_07_multiple_strategies.py
walison17/unleash-client-python
7471490f8db0cedca6a908bd2d66aa0b818c5807
[ "MIT" ]
162
2018-10-27T09:10:54.000Z
2022-03-31T08:31:25.000Z
tests/specification_tests/test_07_multiple_strategies.py
walison17/unleash-client-python
7471490f8db0cedca6a908bd2d66aa0b818c5807
[ "MIT" ]
38
2018-12-07T02:44:57.000Z
2022-02-14T04:22:53.000Z
import uuid import json import pytest import responses from UnleashClient import UnleashClient from UnleashClient.constants import FEATURES_URL, METRICS_URL, REGISTER_URL from tests.utilities.testing_constants import URL, APP_NAME MOCK_JSON = """ { "version": 1, "features": [{ "name": "Feature.multiStrategies.A", "description": "Enabled for via last stratgy", "enabled": true, "strategies": [{ "name": "gradualRolloutRandom", "parameters": { "percentage": "0" } }, { "name": "default", "parameters": {} } ] }, { "name": "Feature.multiStrategies.B", "description": "Enabled for user=123", "enabled": true, "strategies": [{ "name": "gradualRolloutRandom", "parameters": { "percentage": "0" } }, { "name": "userWithId", "parameters": { "userIds": "123" } } ] }, { "name": "Feature.multiStrategies.C", "description": "Enabled for user=123", "enabled": true, "strategies": [{ "name": "gradualRolloutRandom", "parameters": { "percentage": "0" } }, { "name": "userWithId", "parameters": { "userIds": "123" } }, { "name": "gradualRolloutRandom", "parameters": { "percentage": "0" } } ] } ] } """ @pytest.fixture() def unleash_client(): unleash_client = UnleashClient(url=URL, app_name=APP_NAME, instance_id='pytest_%s' % uuid.uuid4()) yield unleash_client unleash_client.destroy() @responses.activate def test_feature_multiStrategies_a_enabled(unleash_client): """ Feature.multiStrategies.A should be enabled """ # Set up API responses.add(responses.POST, URL + REGISTER_URL, json={}, status=202) responses.add(responses.GET, URL + FEATURES_URL, json=json.loads(MOCK_JSON), status=200) responses.add(responses.POST, URL + METRICS_URL, json={}, status=202) # Tests unleash_client.initialize_client() assert unleash_client.is_enabled("Feature.multiStrategies.A") @responses.activate def test_feature_multiStrategies_b_nouser(unleash_client): """ Feature.multiStrategies.B disabled for unknown user """ # Set up API responses.add(responses.POST, URL + REGISTER_URL, json={}, status=202) responses.add(responses.GET, URL + FEATURES_URL, json=json.loads(MOCK_JSON), status=200) responses.add(responses.POST, URL + METRICS_URL, json={}, status=202) # Tests context = {} unleash_client.initialize_client() assert not unleash_client.is_enabled("Feature.multiStrategies.B", context) @responses.activate def test_feature_multiStrategies_b_enabled(unleash_client): """ Feature.multiStrategies.B enabled for user=123 """ # Set up API responses.add(responses.POST, URL + REGISTER_URL, json={}, status=202) responses.add(responses.GET, URL + FEATURES_URL, json=json.loads(MOCK_JSON), status=200) responses.add(responses.POST, URL + METRICS_URL, json={}, status=202) # Tests context = { "userId": "123" } unleash_client.initialize_client() assert unleash_client.is_enabled("Feature.multiStrategies.B", context) @responses.activate def test_feature_multiStrategies_c_unknown(unleash_client): """ Feature.multiStrategies.C disabled for unknown users """ # Set up API responses.add(responses.POST, URL + REGISTER_URL, json={}, status=202) responses.add(responses.GET, URL + FEATURES_URL, json=json.loads(MOCK_JSON), status=200) responses.add(responses.POST, URL + METRICS_URL, json={}, status=202) # Tests context = {} unleash_client.initialize_client() assert not unleash_client.is_enabled("Feature.multiStrategies.C", context) @responses.activate def test_feature_multiStrategies_c_disabled(unleash_client): """ Feature.multiStrategies.C disabled for user=22 """ # Set up API responses.add(responses.POST, URL + REGISTER_URL, json={}, status=202) responses.add(responses.GET, URL + FEATURES_URL, json=json.loads(MOCK_JSON), status=200) responses.add(responses.POST, URL + METRICS_URL, json={}, status=202) # Tests context = { "userId": "22" } unleash_client.initialize_client() assert not unleash_client.is_enabled("Feature.multiStrategies.C", context) @responses.activate def test_feature_multiStrategies_c_enabled(unleash_client): """ Feature.multiStrategies.C enabled for user=123 """ # Set up API responses.add(responses.POST, URL + REGISTER_URL, json={}, status=202) responses.add(responses.GET, URL + FEATURES_URL, json=json.loads(MOCK_JSON), status=200) responses.add(responses.POST, URL + METRICS_URL, json={}, status=202) # Tests context = { "userId": "123" } unleash_client.initialize_client() assert unleash_client.is_enabled("Feature.multiStrategies.C", context)
27.693122
92
0.629729
552
5,234
5.804348
0.139493
0.089263
0.117978
0.093633
0.822097
0.758115
0.743758
0.699438
0.696629
0.674782
0
0.022228
0.2436
5,234
188
93
27.840426
0.787067
0.074895
0
0.496183
0
0
0.316667
0.068776
0
0
0
0
0.045802
1
0.053435
false
0
0.053435
0
0.10687
0
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
d22b7df285a2245380d762fc54acd4b7574761a3
166
py
Python
test/conftest.py
mcmtroffaes/pybtex-docutils
da56ab632c3b4b4b5d3a3e735a87bce9c450ea5f
[ "MIT-0" ]
null
null
null
test/conftest.py
mcmtroffaes/pybtex-docutils
da56ab632c3b4b4b5d3a3e735a87bce9c450ea5f
[ "MIT-0" ]
12
2017-07-22T22:05:31.000Z
2021-09-24T15:50:00.000Z
test/conftest.py
mcmtroffaes/pybtex-docutils
da56ab632c3b4b4b5d3a3e735a87bce9c450ea5f
[ "MIT-0" ]
6
2017-07-22T22:02:07.000Z
2021-09-23T03:56:24.000Z
import pytest from pathlib import Path collect_ignore = ['roots'] @pytest.fixture def test_roots() -> Path: return Path(__file__).parent.absolute() / 'roots'
15.090909
53
0.716867
21
166
5.380952
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.156627
166
10
54
16.6
0.807143
0
0
0
0
0
0.060241
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0.166667
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
4
d25b70291afdd2272b4c4f14d30fd28149e48a95
608
py
Python
services/crawler/config.py
Sirius207/HousesAPI
6f1ef5fcb3fbd70f82b700b84be31daa9c58bda8
[ "MIT" ]
null
null
null
services/crawler/config.py
Sirius207/HousesAPI
6f1ef5fcb3fbd70f82b700b84be31daa9c58bda8
[ "MIT" ]
6
2021-06-05T16:54:41.000Z
2021-06-22T11:43:50.000Z
services/crawler/config.py
Sirius207/HousesAPI
6f1ef5fcb3fbd70f82b700b84be31daa9c58bda8
[ "MIT" ]
2
2021-06-05T16:51:46.000Z
2021-06-06T05:04:21.000Z
import os from dotenv import load_dotenv load_dotenv() class Config: city_id = int(os.environ.get("CITY_ID", 1)) urls_file = os.environ.get("URL_OUTPUT", f"data/urls_{city_id}.csv") data_file = os.environ.get("HOUSE_OUTPUT", f"data/temp_{city_id}.csv") page_limit = int(os.environ.get("PAGE_LIMIT", 3)) url_start = int(os.environ.get("URL_START", 0)) url_end = int(os.environ.get("URL_END", 250)) executed_time = os.environ.get("EXECUTED_TIME", "02:13") use_docker = bool(int(os.environ.get("USE_DOCKER", 0))) chrome_host = os.environ.get("CHROME_HOST", "localhost")
32
74
0.6875
100
608
3.94
0.39
0.205584
0.274112
0.190355
0.091371
0
0
0
0
0
0
0.021073
0.141447
608
18
75
33.777778
0.733716
0
0
0
0
0
0.245066
0.075658
0
0
0
0
0
1
0
false
0
0.153846
0
0.923077
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
d26093a8b514e28c1bf748221186b702a34754c9
327
py
Python
vgdl/interfaces/gym/__init__.py
czlwang/py-vgdl-1
fca947cd56c88f579ebf2d815b97a01bb2bffff0
[ "BSD-3-Clause" ]
44
2018-11-02T15:03:05.000Z
2021-12-20T05:31:55.000Z
vgdl/interfaces/gym/__init__.py
markkho/py-vgdl
5b19c6467eb141e381380c48fae1611dcf8a4465
[ "BSD-3-Clause" ]
9
2019-06-24T08:47:25.000Z
2021-03-17T13:06:33.000Z
vgdl/interfaces/gym/__init__.py
markkho/py-vgdl
5b19c6467eb141e381380c48fae1611dcf8a4465
[ "BSD-3-Clause" ]
17
2018-12-20T17:06:30.000Z
2021-12-29T14:39:46.000Z
from gym.envs.registration import register from .env import VGDLEnv from .register_samples import register_sample_games # Register samples register_sample_games() # register( # id='vgdl_generic-v0', # entry_point='gym_vgdl:VGDLEnv', # kwargs={ # 'block_size': 10 # }, # nondeterministic=True, # )
20.4375
51
0.697248
38
327
5.763158
0.605263
0.127854
0.173516
0.246575
0
0
0
0
0
0
0
0.011364
0.192661
327
15
52
21.8
0.818182
0.495413
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.75
0
0.75
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
966d32d883033c50192320ffb96cb8653d324719
91
py
Python
tests/dummybot/apps.py
vyvojer/django-chatbot
b13d6e46fdf87eab00cad0b574da11e323cf48d8
[ "MIT" ]
1
2021-04-30T19:32:47.000Z
2021-04-30T19:32:47.000Z
tests/dummybot/apps.py
vyvojer/django-chatbot
b13d6e46fdf87eab00cad0b574da11e323cf48d8
[ "MIT" ]
10
2021-02-03T19:19:50.000Z
2022-01-23T13:53:21.000Z
tests/dummybot/apps.py
vyvojer/django-chatbot
b13d6e46fdf87eab00cad0b574da11e323cf48d8
[ "MIT" ]
1
2021-04-30T19:32:51.000Z
2021-04-30T19:32:51.000Z
from django.apps import AppConfig class DummybotConfig(AppConfig): name = 'dummybot'
15.166667
33
0.758242
10
91
6.9
0.9
0
0
0
0
0
0
0
0
0
0
0
0.164835
91
5
34
18.2
0.907895
0
0
0
0
0
0.087912
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
96721f8afbbbed03623c44128dbe3704d10ef289
249
py
Python
predict.py
huan/cog-ding-dong
29c37a1fd61e78e6765cfcaa95f36d1e281940f8
[ "Apache-2.0" ]
null
null
null
predict.py
huan/cog-ding-dong
29c37a1fd61e78e6765cfcaa95f36d1e281940f8
[ "Apache-2.0" ]
null
null
null
predict.py
huan/cog-ding-dong
29c37a1fd61e78e6765cfcaa95f36d1e281940f8
[ "Apache-2.0" ]
null
null
null
import cog class Predictor(cog.Predictor): def setup(self): self.prefix = 'dong' @cog.input('ding', type=str, help='Ding anything will get a `dong` reply') def predict(self, ding): return f'\n\n{self.prefix} {ding}\n\n'
27.666667
78
0.626506
38
249
4.105263
0.605263
0.128205
0
0
0
0
0
0
0
0
0
0
0.212851
249
9
79
27.666667
0.795918
0
0
0
0
0
0.292
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0.142857
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
9674463c7828618e339396feca81c0a20c8fac32
309
py
Python
algorithms/836. Rectangle Overlap.py
vuzway9132/leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
1
2020-12-02T13:54:30.000Z
2020-12-02T13:54:30.000Z
algorithms/836. Rectangle Overlap.py
vuzway9132/leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
null
null
null
algorithms/836. Rectangle Overlap.py
vuzway9132/leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
null
null
null
class Solution: def isRectangleOverlap(self, rec1: List[int], rec2: List[int]) -> bool: def intersect(p_left, p_right, q_left, q_right): return min(p_right, q_right) > max(p_left, q_left) return (intersect(rec1[0], rec1[2], rec2[0], rec2[2]) and intersect(rec1[1], rec1[3], rec2[1], rec2[3]))
51.5
108
0.669903
53
309
3.754717
0.433962
0.070352
0.070352
0
0
0
0
0
0
0
0
0.068702
0.152104
309
5
109
61.8
0.69084
0
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0
0.2
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
73b3f68a8965ed91d12d0666f9b0229e0a354548
75
py
Python
w01/e11.py
Luccifer/PythonCoruseraHSE
653d6a24325789342f0d033717ba548dc6e90483
[ "Unlicense" ]
1
2020-01-12T12:55:07.000Z
2020-01-12T12:55:07.000Z
w01/e11.py
Luccifer/PythonCourseraHSE
653d6a24325789342f0d033717ba548dc6e90483
[ "Unlicense" ]
null
null
null
w01/e11.py
Luccifer/PythonCourseraHSE
653d6a24325789342f0d033717ba548dc6e90483
[ "Unlicense" ]
null
null
null
# Электронные часы-1 num = int(input()) print((num // 60) % 24, num % 60)
15
33
0.586667
12
75
3.666667
0.75
0.227273
0
0
0
0
0
0
0
0
0
0.116667
0.2
75
4
34
18.75
0.616667
0.24
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
73b978612bb7edb7b1b91fe24561ab79f2b77ace
936
py
Python
setup.py
hamishmorgan/api_sdk
6bee7cd1753e5a85769f52598c73bbb981a5b7b5
[ "MIT" ]
null
null
null
setup.py
hamishmorgan/api_sdk
6bee7cd1753e5a85769f52598c73bbb981a5b7b5
[ "MIT" ]
1
2019-07-10T11:01:55.000Z
2019-07-10T11:01:55.000Z
setup.py
hamishmorgan/api_sdk
6bee7cd1753e5a85769f52598c73bbb981a5b7b5
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='bwapi', version='3.2.0', description='A software development kit for the Brandwatch API', url='https://github.com/BrandwatchLtd/api_sdk', author='Amy Barker, Jamie Lebovics, Paul Siegel and Jessica Bowden', author_email='amyb@brandwatch.com, paul@brandwatch.com, jess@brandwatch.com', license='License :: OSI Approved :: MIT License', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5' ], py_modules=['bwproject', 'bwresources', 'bwdata', 'filters'], install_requires=['requests'] )
25.297297
81
0.63141
101
936
5.811881
0.623762
0.16184
0.212947
0.221465
0.187394
0
0
0
0
0
0
0.017956
0.226496
936
36
82
26
0.792818
0
0
0
0
0
0.632479
0
0
0
0
0
0
1
0
true
0
0.045455
0
0.045455
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
73c6e39f94b29233f4b55de97c538a23caa9eb26
24
py
Python
src/mam/_mam/config/__init__.py
Peilonrayz/mam
f288f6087e0efa4938bdbfcf1234af51b9898318
[ "MIT" ]
null
null
null
src/mam/_mam/config/__init__.py
Peilonrayz/mam
f288f6087e0efa4938bdbfcf1234af51b9898318
[ "MIT" ]
1
2019-06-16T10:27:39.000Z
2019-06-16T10:27:39.000Z
src/mam/_mam/config/__init__.py
Peilonrayz/mam
f288f6087e0efa4938bdbfcf1234af51b9898318
[ "MIT" ]
null
null
null
"""Hold config code."""
12
23
0.583333
3
24
4.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.125
24
1
24
24
0.666667
0.708333
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
73d1e1e753c81616814db551cf5d32f8396165d4
63
py
Python
tests/__init__.py
alexpenson/GobanPDF
ada51453d152c7c234c770fc89494d1ec52be5b5
[ "MIT" ]
null
null
null
tests/__init__.py
alexpenson/GobanPDF
ada51453d152c7c234c770fc89494d1ec52be5b5
[ "MIT" ]
null
null
null
tests/__init__.py
alexpenson/GobanPDF
ada51453d152c7c234c770fc89494d1ec52be5b5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Unit test package for gobanpdf."""
15.75
37
0.571429
8
63
4.5
1
0
0
0
0
0
0
0
0
0
0
0.019231
0.174603
63
3
38
21
0.673077
0.857143
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
73d66ef72adc4879803ac8337c82008fad1e296b
67
py
Python
peacecorps/paygov/models.py
cmc333333/peacecorps-site
6779b9ac7a8f1013aaa4aa302ad78c992ea2b3e4
[ "CC0-1.0" ]
8
2015-01-06T15:38:12.000Z
2016-05-02T23:55:39.000Z
peacecorps/paygov/models.py
cmc333333/peacecorps-site
6779b9ac7a8f1013aaa4aa302ad78c992ea2b3e4
[ "CC0-1.0" ]
61
2015-01-05T18:20:57.000Z
2016-01-28T22:08:03.000Z
peacecorps/paygov/models.py
cmc333333/peacecorps-site
6779b9ac7a8f1013aaa4aa302ad78c992ea2b3e4
[ "CC0-1.0" ]
12
2015-02-04T21:15:41.000Z
2021-02-17T11:03:27.000Z
# This file should contain no models that are needed by other apps
33.5
66
0.791045
12
67
4.416667
1
0
0
0
0
0
0
0
0
0
0
0
0.19403
67
1
67
67
0.981481
0.955224
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
fb5a7179d3805e0699a841acf338eb76cb78a65b
204
py
Python
openprocurement/agreement/core/models/value.py
ProzorroUKR/openprocurement.agreement.core
cdab0e7f2a3d8bed5bdbb21ae698b37a38b729e0
[ "Apache-2.0" ]
null
null
null
openprocurement/agreement/core/models/value.py
ProzorroUKR/openprocurement.agreement.core
cdab0e7f2a3d8bed5bdbb21ae698b37a38b729e0
[ "Apache-2.0" ]
null
null
null
openprocurement/agreement/core/models/value.py
ProzorroUKR/openprocurement.agreement.core
cdab0e7f2a3d8bed5bdbb21ae698b37a38b729e0
[ "Apache-2.0" ]
null
null
null
from decimal import Decimal from openprocurement.api.models import DecimalType, Value as BaseValue class Value(BaseValue): amount = DecimalType(required=True, precision=-2, min_value=Decimal('0.0'))
34
79
0.789216
27
204
5.925926
0.666667
0
0
0
0
0
0
0
0
0
0
0.016575
0.112745
204
6
79
34
0.867403
0
0
0
0
0
0.014634
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
fb636897fefbbce65973e0f7d39414e6b712e11c
55
py
Python
keys.py
FullteaOfEEIC/tinpy2
8971761ba3cbe13237272de60f7214a88bef90d0
[ "MIT" ]
13
2019-09-04T05:15:32.000Z
2022-02-12T15:37:19.000Z
keys.py
FullteaOfEEIC/tinpy2
8971761ba3cbe13237272de60f7214a88bef90d0
[ "MIT" ]
2
2019-07-18T12:52:01.000Z
2020-06-28T14:00:26.000Z
keys.py
FullteaOfEEIC/tinpy2
8971761ba3cbe13237272de60f7214a88bef90d0
[ "MIT" ]
5
2019-09-01T23:16:46.000Z
2021-08-13T03:03:51.000Z
FBemail = "Facebookのメールアドレス" FBpass = "Facebookのパスワード"
18.333333
28
0.781818
4
55
10.75
1
0
0
0
0
0
0
0
0
0
0
0
0.109091
55
2
29
27.5
0.877551
0
0
0
0
0
0.545455
0
0
0
0
0
0
1
0
false
0.5
0
0
0
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
fba22b327fd812c48192cfa7a9c2fdddc0958440
475
py
Python
terse/__init__.py
cjlucas85/terse
f94483c677850d8da6a154079ee6b2feefd3c739
[ "BSD-3-Clause" ]
1
2018-07-23T23:47:25.000Z
2018-07-23T23:47:25.000Z
terse/__init__.py
cjlucas85/terse
f94483c677850d8da6a154079ee6b2feefd3c739
[ "BSD-3-Clause" ]
null
null
null
terse/__init__.py
cjlucas85/terse
f94483c677850d8da6a154079ee6b2feefd3c739
[ "BSD-3-Clause" ]
null
null
null
# Change Directory from .in_directory import in_dir from .in_directory import cwd from .in_directory import cwd as InDirectory # Environ from .environ import set_env from .environ import set_environ from .environ import postfix_env from .environ import postfix_environ from .environ import prefix_env from .environ import prefix_environ # Invoke from .invoke import main # On Exit from .on_exit import on_raised from .on_exit import on_returned from .on_exit import no_raise
26.388889
44
0.829474
76
475
4.973684
0.289474
0.174603
0.269841
0.166667
0.222222
0
0
0
0
0
0
0
0.134737
475
17
45
27.941176
0.919708
0.082105
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
fba88e840a61c7b20ad4530dcad4004d3fe2b080
175
py
Python
oldcontrib/media/image/forms.py
servee/django-servee-oldcontrib
836447ebbd53db0b53879a35468c02e57f65105f
[ "BSD-Source-Code" ]
null
null
null
oldcontrib/media/image/forms.py
servee/django-servee-oldcontrib
836447ebbd53db0b53879a35468c02e57f65105f
[ "BSD-Source-Code" ]
null
null
null
oldcontrib/media/image/forms.py
servee/django-servee-oldcontrib
836447ebbd53db0b53879a35468c02e57f65105f
[ "BSD-Source-Code" ]
null
null
null
from django import forms from oldcontrib.media.image.models import Image class ImageUpload(forms.ModelForm): class Meta: model = Image fields = ('image',)
25
47
0.697143
21
175
5.809524
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.217143
175
7
48
25
0.890511
0
0
0
0
0
0.028409
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
fba92a286c69cc3907159e649a1543994fb5c6b3
5,689
py
Python
wireshark-2.0.13/tools/dftestlib/string_type.py
mahrukhfida/mi
7187765aa225e71983969ef5285771ac77c8309a
[ "Apache-2.0" ]
null
null
null
wireshark-2.0.13/tools/dftestlib/string_type.py
mahrukhfida/mi
7187765aa225e71983969ef5285771ac77c8309a
[ "Apache-2.0" ]
null
null
null
wireshark-2.0.13/tools/dftestlib/string_type.py
mahrukhfida/mi
7187765aa225e71983969ef5285771ac77c8309a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 by Gilbert Ramirez <gram@alumni.rice.edu> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. from dftestlib import dftest class testString(dftest.DFTest): trace_file = "http.pcap" def test_eq_1(self): dfilter = 'http.request.method == "HEAD"' self.assertDFilterCount(dfilter, 1) def test_eq_2(self): dfilter = 'http.request.method == "POST"' self.assertDFilterCount(dfilter, 0) def test_gt_1(self): dfilter = 'http.request.method > "HEAC"' self.assertDFilterCount(dfilter, 1) def test_gt_2(self): dfilter = 'http.request.method > "HEAD"' self.assertDFilterCount(dfilter, 0) def test_gt_3(self): dfilter = 'http.request.method > "HEAE"' self.assertDFilterCount(dfilter, 0) def test_ge_1(self): dfilter = 'http.request.method >= "HEAC"' self.assertDFilterCount(dfilter, 1) def test_ge_2(self): dfilter = 'http.request.method >= "HEAD"' self.assertDFilterCount(dfilter, 1) def test_ge_3(self): dfilter = 'http.request.method >= "HEAE"' self.assertDFilterCount(dfilter, 0) def test_lt_1(self): dfilter = 'http.request.method < "HEAC"' self.assertDFilterCount(dfilter, 0) def test_lt_2(self): dfilter = 'http.request.method < "HEAD"' self.assertDFilterCount(dfilter, 0) def test_lt_3(self): dfilter = 'http.request.method < "HEAE"' self.assertDFilterCount(dfilter, 1) def test_le_1(self): dfilter = 'http.request.method <= "HEAC"' self.assertDFilterCount(dfilter, 0) def test_le_2(self): dfilter = 'http.request.method <= "HEAD"' self.assertDFilterCount(dfilter, 1) def test_le_3(self): dfilter = 'http.request.method <= "HEAE"' self.assertDFilterCount(dfilter, 1) def test_slice_1(self): dfilter = 'http.request.method[0] == "H"' self.assertDFilterCount(dfilter, 1) def test_slice_2(self): dfilter = 'http.request.method[0] == "P"' self.assertDFilterCount(dfilter, 0) def test_slice_3(self): dfilter = 'http.request.method[0:4] == "HEAD"' self.assertDFilterCount(dfilter, 1) def test_slice_4(self): dfilter = 'http.request.method[0:4] != "HEAD"' self.assertDFilterCount(dfilter, 0) def test_slice_5(self): dfilter = 'http.request.method[1:2] == "EA"' self.assertDFilterCount(dfilter, 1) def test_slice_6(self): dfilter = 'http.request.method[1:2] > "EA"' self.assertDFilterCount(dfilter, 0) def test_slice_7(self): dfilter = 'http.request.method[-1] == "D"' self.assertDFilterCount(dfilter, 1) def test_slice_8(self): dfilter = 'http.request.method[-2] == "D"' self.assertDFilterCount(dfilter, 0) def xxxtest_stringz_1(self): return self.DFilterCount(pkt_tftp, 'tftp.type == "octet"', 1) def xxxtest_stringz_2(self): return self.DFilterCount(pkt_tftp, 'tftp.type == "junk"', 0) def test_contains_1(self): dfilter = 'http.request.method contains "E"' self.assertDFilterCount(dfilter, 1) def test_contains_2(self): dfilter = 'http.request.method contains "EA"' self.assertDFilterCount(dfilter, 1) def test_contains_3(self): dfilter = 'http.request.method contains "HEAD"' self.assertDFilterCount(dfilter, 1) def test_contains_4(self): dfilter = 'http.request.method contains "POST"' self.assertDFilterCount(dfilter, 0) def test_contains_5(self): dfilter = 'http.request.method contains 50:4f:53:54' # "POST" self.assertDFilterCount(dfilter, 0) def test_contains_6(self): dfilter = 'http.request.method contains 48:45:41:44' # "HEAD" self.assertDFilterCount(dfilter, 1) def test_contains_fail_0(self): dfilter = 'http.user_agent contains "update"' self.assertDFilterCount(dfilter, 0) def test_contains_fail_1(self): dfilter = 'http.user_agent contains "UPDATE"' self.assertDFilterCount(dfilter, 0) def test_contains_upper_0(self): dfilter = 'upper(http.user_agent) contains "UPDATE"' self.assertDFilterCount(dfilter, 1) def test_contains_upper_1(self): dfilter = 'upper(http.user_agent) contains "update"' self.assertDFilterCount(dfilter, 0) def test_contains_upper_2(self): dfilter = 'upper(tcp.seq) == 4' self.assertDFilterFail(dfilter) def test_contains_lower_0(self): dfilter = 'lower(http.user_agent) contains "UPDATE"' self.assertDFilterCount(dfilter, 0) def test_contains_lower_1(self): dfilter = 'lower(http.user_agent) contains "update"' self.assertDFilterCount(dfilter, 1) def test_contains_lower_2(self): dfilter = 'lower(tcp.seq) == 4' self.assertDFilterFail(dfilter)
32.508571
79
0.651784
711
5,689
5.084388
0.21097
0.06971
0.272752
0.170401
0.789765
0.765698
0.635408
0.543015
0.466113
0.466113
0
0.027281
0.233257
5,689
174
80
32.695402
0.801467
0.132536
0
0.324786
0
0
0.239219
0.055736
0
0
0
0
0.307692
1
0.324786
false
0
0.008547
0.017094
0.367521
0
0
0
0
null
0
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
fbb984864b50b86556f96db0dc53076bf5b3f4f5
44
py
Python
Not_necessary_for_dhcp_spoofing/scapy_test.py
shamiul94/DHCP-Spoofing-Attack-Network-Security
09312d439b56701d82e22fe4ae9c99cc9678e232
[ "MIT" ]
2
2021-05-03T08:54:12.000Z
2022-03-22T08:19:38.000Z
Not_necessary_for_dhcp_spoofing/scapy_test.py
shamiul94/DHCP-Spoofing-Attack-Network-Security
09312d439b56701d82e22fe4ae9c99cc9678e232
[ "MIT" ]
null
null
null
Not_necessary_for_dhcp_spoofing/scapy_test.py
shamiul94/DHCP-Spoofing-Attack-Network-Security
09312d439b56701d82e22fe4ae9c99cc9678e232
[ "MIT" ]
null
null
null
sniff(iface="wlo1", prn=lambda x: x.show())
44
44
0.659091
8
44
3.625
0.875
0
0
0
0
0
0
0
0
0
0
0.025
0.090909
44
1
44
44
0.7
0
0
0
0
0
0.088889
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
8371a21e99ba54570760803909c97e6a3b7dc0a2
122
py
Python
poetry/__init__.py
paralax/poetry
16d49d10f9e333fdb2833b31f012d68c6d5ac0a6
[ "MIT" ]
null
null
null
poetry/__init__.py
paralax/poetry
16d49d10f9e333fdb2833b31f012d68c6d5ac0a6
[ "MIT" ]
null
null
null
poetry/__init__.py
paralax/poetry
16d49d10f9e333fdb2833b31f012d68c6d5ac0a6
[ "MIT" ]
null
null
null
from poetry.console import Application from .poetry import Poetry __version__ = Poetry.VERSION console = Application()
15.25
38
0.803279
14
122
6.714286
0.428571
0.212766
0
0
0
0
0
0
0
0
0
0
0.139344
122
7
39
17.428571
0.895238
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
8383a85ce5fbfbf65358bcbce8b02af59ef9674e
3,945
py
Python
tests/system/action/motion_state/test_update.py
r-peschke/openslides-backend
83d0dab68bb914f06a0f50cffe23fc10ca45376f
[ "MIT" ]
null
null
null
tests/system/action/motion_state/test_update.py
r-peschke/openslides-backend
83d0dab68bb914f06a0f50cffe23fc10ca45376f
[ "MIT" ]
null
null
null
tests/system/action/motion_state/test_update.py
r-peschke/openslides-backend
83d0dab68bb914f06a0f50cffe23fc10ca45376f
[ "MIT" ]
null
null
null
from tests.system.action.base import BaseActionTestCase class MotionStateActionTest(BaseActionTestCase): def test_update_correct(self) -> None: self.create_model( "motion_workflow/110", {"name": "name_Ycefgee", "state_ids": [111]}, ) self.create_model( "motion_state/111", {"name": "name_srtgb123", "workflow_id": 110} ) response = self.client.post( "/", json=[ { "action": "motion_state.update", "data": [{"id": 111, "name": "name_Xcdfgee"}], } ], ) self.assert_status_code(response, 200) self.assert_model_exists("motion_state/111") model = self.get_model("motion_state/111") assert model.get("name") == "name_Xcdfgee" def test_update_correct_plus_next_previous(self) -> None: self.create_model( "motion_workflow/110", {"name": "name_Ycefgee", "state_ids": [111, 112, 113], "meeting_id": 1}, ) self.create_model( "motion_state/111", {"name": "name_srtgb123", "workflow_id": 110, "meeting_id": 1}, ) self.create_model( "motion_state/112", {"name": "name_srtfg112", "workflow_id": 110, "meeting_id": 1}, ) self.create_model( "motion_state/113", {"name": "name_srtfg113", "workflow_id": 110, "meeting_id": 1}, ) response = self.client.post( "/", json=[ { "action": "motion_state.update", "data": [ { "id": 111, "next_state_ids": [112], "previous_state_ids": [113], } ], } ], ) self.assert_status_code(response, 200) model = self.get_model("motion_state/111") assert model.get("next_state_ids") == [112] assert model.get("previous_state_ids") == [113] def test_update_wrong_workflow_mismatch(self) -> None: self.create_model( "motion_workflow/110", {"name": "name_Ycefgee", "state_ids": [111, 112]}, ) self.create_model( "motion_workflow/90", {"name": "name_Ycefgee", "state_ids": [113]}, ) self.create_model( "motion_state/111", {"name": "name_srtgb123", "workflow_id": 110} ) self.create_model( "motion_state/112", {"name": "name_srtfg112", "workflow_id": 110} ) self.create_model( "motion_state/113", {"name": "name_srtfg113", "workflow_id": 90} ) response = self.client.post( "/", json=[ { "action": "motion_state.update", "data": [ { "id": 111, "next_state_ids": [112], "previous_state_ids": [113], } ], } ], ) self.assert_status_code(response, 400) assert "Cannot update: found states from different workflows" in str( response.data ) def test_update_wrong_id(self) -> None: self.create_model("motion_state/111", {"name": "name_srtgb123"}) response = self.client.post( "/", json=[ { "action": "motion_state.update", "data": [{"id": 112, "name": "name_Xcdfgee"}], } ], ) self.assert_status_code(response, 400) model = self.get_model("motion_state/111") assert model.get("name") == "name_srtgb123"
34.008621
84
0.465906
356
3,945
4.876404
0.16573
0.073733
0.103687
0.145161
0.779954
0.75
0.730991
0.730991
0.675691
0.64977
0
0.068076
0.400507
3,945
115
85
34.304348
0.665962
0
0
0.481818
0
0
0.243599
0
0
0
0
0
0.090909
1
0.036364
false
0
0.009091
0
0.054545
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
8389cdcfd2bb1214e6f94ba5c523c0948e643068
85
py
Python
website/cure8/apps.py
Qwoyn/canna-curate
4ae6c4677660c88cfc6d9899272e6cc771181c70
[ "MIT" ]
null
null
null
website/cure8/apps.py
Qwoyn/canna-curate
4ae6c4677660c88cfc6d9899272e6cc771181c70
[ "MIT" ]
1
2019-01-09T10:17:00.000Z
2019-03-24T05:43:48.000Z
website/cure8/apps.py
Qwoyn/canna-curate
4ae6c4677660c88cfc6d9899272e6cc771181c70
[ "MIT" ]
null
null
null
from django.apps import AppConfig class Cure8Config(AppConfig): name = 'cure8'
14.166667
33
0.741176
10
85
6.3
0.9
0
0
0
0
0
0
0
0
0
0
0.028571
0.176471
85
5
34
17
0.871429
0
0
0
0
0
0.058824
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
8399441d2a82feb9e486df55c6b60a33a19fb315
90
py
Python
src/cmatools/io/__init__.py
jonathan-winn-geo/cmatools
ae044de4bd8f1f86814b07498e46b5a03837e679
[ "BSD-3-Clause" ]
null
null
null
src/cmatools/io/__init__.py
jonathan-winn-geo/cmatools
ae044de4bd8f1f86814b07498e46b5a03837e679
[ "BSD-3-Clause" ]
3
2020-05-13T10:30:38.000Z
2020-05-13T10:32:30.000Z
src/cmatools/io/__init__.py
jonathan-winn-geo/cmatools
ae044de4bd8f1f86814b07498e46b5a03837e679
[ "BSD-3-Clause" ]
1
2020-07-02T16:58:06.000Z
2020-07-02T16:58:06.000Z
"""IO subpackage. Modules and functions for input / output file and data processing """
15
65
0.733333
12
90
5.5
0.916667
0
0
0
0
0
0
0
0
0
0
0
0.177778
90
5
66
18
0.891892
0.9
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
83a4fdc0109f61f28f3ff9e3fc097089c082cea1
28
py
Python
Python/payment.py
mscingjimmysanchez/CursoPOOUber
9a393aed9b216f0de16f7c5056d56d1e8305b195
[ "MIT" ]
null
null
null
Python/payment.py
mscingjimmysanchez/CursoPOOUber
9a393aed9b216f0de16f7c5056d56d1e8305b195
[ "MIT" ]
null
null
null
Python/payment.py
mscingjimmysanchez/CursoPOOUber
9a393aed9b216f0de16f7c5056d56d1e8305b195
[ "MIT" ]
null
null
null
class Payment: id = int
14
15
0.607143
4
28
4.25
1
0
0
0
0
0
0
0
0
0
0
0
0.321429
28
2
16
14
0.894737
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
83d6fd2abc9ab8b95c4fa45ceed812dcdd760e31
77
py
Python
{{cookiecutter.git_project_name}}/config/settings/__init__.py
imAsparky/django-cookiecutter
6608b46d3b3a75ef8880b18724eb06e9ed7567df
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.git_project_name}}/config/settings/__init__.py
imAsparky/django-cookiecutter
6608b46d3b3a75ef8880b18724eb06e9ed7567df
[ "BSD-3-Clause" ]
128
2021-09-28T03:17:40.000Z
2022-03-19T00:21:50.000Z
{{cookiecutter.git_project_name}}/config/settings/__init__.py
imAsparky/django-cookiecutter
6608b46d3b3a75ef8880b18724eb06e9ed7567df
[ "BSD-3-Clause" ]
null
null
null
"""Django settings __init__ for {{cookiecutter.git_project_name}} project"""
38.5
76
0.779221
9
77
6
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.077922
77
1
77
77
0.760563
0.909091
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
83e3710016007c8d630d57caba3629fca31c08bc
235
py
Python
Back-End/API/schemas/AnimalsSchema.py
PoCInnovation/Koic
eca53b53b7242c1e83213ef9408366ca0a346358
[ "MIT" ]
13
2021-09-15T13:23:33.000Z
2022-01-14T14:52:42.000Z
Back-End/API/schemas/AnimalsSchema.py
PoCInnovation/Koic
eca53b53b7242c1e83213ef9408366ca0a346358
[ "MIT" ]
null
null
null
Back-End/API/schemas/AnimalsSchema.py
PoCInnovation/Koic
eca53b53b7242c1e83213ef9408366ca0a346358
[ "MIT" ]
null
null
null
from flask_marshmallow import Schema from marshmallow.fields import Nested from schemas import AnimalSchema class AnimalsSchema(Schema): class Meta: fields = ["detections"] detections = Nested(AnimalSchema, many=True)
26.111111
48
0.765957
26
235
6.884615
0.576923
0
0
0
0
0
0
0
0
0
0
0
0.170213
235
9
48
26.111111
0.917949
0
0
0
0
0
0.042373
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.857143
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
f7b47ca6d6f38503153e4d707ea3f6749ecd91f1
965
py
Python
2019/day01.py
asmeurer/advent-of-code
3ba3edb0c29994487f1b3344383dc41dfea9bfcb
[ "MIT" ]
null
null
null
2019/day01.py
asmeurer/advent-of-code
3ba3edb0c29994487f1b3344383dc41dfea9bfcb
[ "MIT" ]
null
null
null
2019/day01.py
asmeurer/advent-of-code
3ba3edb0c29994487f1b3344383dc41dfea9bfcb
[ "MIT" ]
null
null
null
def fuel(x): tot = 0 while True: f = x//3 - 2 if f <= 0: break x = f tot += f return tot input = """ 123265 68442 94896 94670 145483 93807 88703 139755 53652 52754 128052 81533 56602 96476 87674 102510 95735 69174 136331 51266 148009 72417 52577 86813 60803 149232 115843 138175 94723 85623 97925 141772 63662 107293 130779 147027 88003 77238 53184 149255 71921 139799 84851 104899 92290 74438 55631 58655 140496 110176 138718 104768 93177 53212 129572 69877 139944 116062 51362 135245 59682 128705 98105 69172 89244 109048 88690 62124 53981 71885 59216 107718 146343 138788 73588 51648 122227 54507 59283 101230 93080 123120 148248 102909 91199 105704 113956 120368 75020 103734 81791 87323 77278 123013 58901 136351 121295 132994 84039 76813 """ if __name__ == '__main__': vals = list(map(int, input.strip().split())) print(sum([i//3 - 2 for i in vals])) print(sum([fuel(i) for i in vals]))
8.041667
48
0.712953
149
965
4.563758
0.852349
0.005882
0.017647
0.029412
0
0
0
0
0
0
0
0.737903
0.229016
965
119
49
8.109244
0.176075
0
0
0
0
0
0.675648
0
0
1
0
0
0
1
0.008696
false
0
0
0
0.017391
0.017391
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
4
f7b8659196970916eb5f7b0913343a88e53d5f2f
79
py
Python
examples/testlib/__init__.py
uibcdf/pyunitwizard
54cdce7369e1f2a3771a1f05a4a6ba1d7610a5e7
[ "MIT" ]
2
2021-07-01T14:33:58.000Z
2022-03-19T19:19:09.000Z
examples/testlib/__init__.py
uibcdf/pyunitwizard
54cdce7369e1f2a3771a1f05a4a6ba1d7610a5e7
[ "MIT" ]
15
2021-02-11T18:54:16.000Z
2022-03-18T17:38:03.000Z
examples/testlib/__init__.py
uibcdf/pyunitwizard
54cdce7369e1f2a3771a1f05a4a6ba1d7610a5e7
[ "MIT" ]
2
2021-06-17T18:56:02.000Z
2022-03-08T05:02:17.000Z
from .main import sum_quantities, get_form, libraries_loaded from . import box
26.333333
60
0.822785
12
79
5.166667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.126582
79
2
61
39.5
0.898551
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
791a9e6f2f942f11f211a29787f6e9fd1ce60261
351
py
Python
tiktaktoe/models/cell.py
michelAlexis/tik-tak-toe
f50bf74df44115815886a86f9014818a631260be
[ "MIT" ]
null
null
null
tiktaktoe/models/cell.py
michelAlexis/tik-tak-toe
f50bf74df44115815886a86f9014818a631260be
[ "MIT" ]
null
null
null
tiktaktoe/models/cell.py
michelAlexis/tik-tak-toe
f50bf74df44115815886a86f9014818a631260be
[ "MIT" ]
null
null
null
from .player import Player class Cell: EMPTY = ' ' def __init__(self, value = EMPTY): self.value = value def __eq__(self, other): return other is not None and self.value == other.value def __str__(self) -> str: return str(self.value) def assign(self, player: Player): self.value = player.symbol
21.9375
62
0.615385
46
351
4.434783
0.434783
0.220588
0
0
0
0
0
0
0
0
0
0
0.282051
351
16
63
21.9375
0.809524
0
0
0
0
0
0.002841
0
0
0
0
0
0
1
0.363636
false
0
0.090909
0.181818
0.818182
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
f73c8a03b2f773254414f603801062cfd6e06cc4
180
py
Python
ai_starter/webapp.py
karthikreddykuna/DXC_AISTARTER_LOWCODE_NOCODE
998564caf5b858bf5b4fd29af7e129a14ec9c61c
[ "Apache-2.0" ]
null
null
null
ai_starter/webapp.py
karthikreddykuna/DXC_AISTARTER_LOWCODE_NOCODE
998564caf5b858bf5b4fd29af7e129a14ec9c61c
[ "Apache-2.0" ]
null
null
null
ai_starter/webapp.py
karthikreddykuna/DXC_AISTARTER_LOWCODE_NOCODE
998564caf5b858bf5b4fd29af7e129a14ec9c61c
[ "Apache-2.0" ]
null
null
null
# Entry point for the application. from . import app # For application discovery by the 'flask' command. from . import dxc_app # For import side-effects of setting up routes.
60
73
0.744444
27
180
4.925926
0.703704
0.150376
0
0
0
0
0
0
0
0
0
0
0.194444
180
3
74
60
0.917241
0.711111
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
f7721f708c27f11e91a2f2d945a99f7ffa5f35e7
255
py
Python
celery_app/celery_app.py
chenx6/message-integration-api
5a80eac8d72620af87bbdb16cf489858001c9d8f
[ "MIT" ]
null
null
null
celery_app/celery_app.py
chenx6/message-integration-api
5a80eac8d72620af87bbdb16cf489858001c9d8f
[ "MIT" ]
null
null
null
celery_app/celery_app.py
chenx6/message-integration-api
5a80eac8d72620af87bbdb16cf489858001c9d8f
[ "MIT" ]
null
null
null
from celery import Celery # TODO 用 Redis 或者 RabbitMQ 代替 SQLite celery_app = Celery( broker="sqla+sqlite:///instance/celery_broker.db", backend="db+sqlite:///instance/celery_backend.db", ) celery_app.config_from_object("celery_app.celeryconfig")
25.5
56
0.760784
36
255
5.194444
0.527778
0.144385
0.213904
0
0
0
0
0
0
0
0
0
0.113725
255
9
57
28.333333
0.827434
0.133333
0
0
0
0
0.465753
0.465753
0
0
0
0.111111
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
null
0
0
1
0
0
0
0
0
0
0
0
0
0
4
e38dfde143922fa207d031c062eb366deaba2436
2,093
py
Python
app/models.py
wilarz89/TODOAppFlask
c86085b87738b32c57fac9fac2a1401e5b31de2f
[ "MIT" ]
1
2019-02-04T15:25:17.000Z
2019-02-04T15:25:17.000Z
app/models.py
wilarz89/TODOAppFlask
c86085b87738b32c57fac9fac2a1401e5b31de2f
[ "MIT" ]
null
null
null
app/models.py
wilarz89/TODOAppFlask
c86085b87738b32c57fac9fac2a1401e5b31de2f
[ "MIT" ]
null
null
null
# Here we store the objects used in the app from mongoengine import * import datetime from flask_login import UserMixin from app import login from werkzeug.security import generate_password_hash,check_password_hash connect('todoflaskdb') # all user models and database interactions class User(UserMixin,Document): email = EmailField(required=True,max_length=50, unique=True) first_name = StringField(max_length=50) last_name = StringField(max_length=50) password_hash = StringField(required=True,max_length=200) def set_password(self, password): self.password_hash = generate_password_hash(password) def check_password(self, password): return check_password_hash(self.password_hash, password) def is_authenticated(self): return True def is_active(self): return True def is_anonymous(self): return False def get_id(self): return str(self.id) def __repr__(self): return '<User %r>' % (self.email) @login.user_loader def load_user(id): return User.objects(pk=id).first() STATUS = (('D', 'Done'), ('T', 'ToDo')) class TodoTasks(Document): title = StringField(required=True, max_length=50) description = StringField(required=True, max_length=500) dueDate = DateTimeField() dateCreated = DateTimeField(default=datetime.datetime.now) tags = ListField(StringField(max_length=30)) active = StringField(max_length=2, choices=STATUS) timeWorked = DecimalField() user = ReferenceField(User,reverse_delete_rule=CASCADE) meta = {'allow_inheritance': True} class DoneTasks(Document): title = StringField(required=True, max_length=50) description = StringField(required=True, max_length=500) dueDate = DateTimeField() dateCreated = DateTimeField(default= datetime.datetime.now) tags = ListField(StringField(max_length=30)) active = StringField(max_length=2, choices=STATUS) timeWorked = DecimalField() user = ReferenceField(User,reverse_delete_rule=CASCADE) meta = {'allow_inheritance': True}
25.216867
72
0.719064
253
2,093
5.774704
0.359684
0.073922
0.061602
0.086242
0.550992
0.451745
0.451745
0.451745
0.451745
0.451745
0
0.014594
0.181558
2,093
82
73
25.52439
0.838295
0.039656
0
0.4
1
0
0.032064
0
0
0
0
0
0
1
0.16
false
0.12
0.1
0.14
0.9
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
1
1
0
0
4
e3bf2b831ef0cb71250c8a915fc475951861cdce
125
py
Python
agents/stew/__init__.py
s0phia-/ipse
a2113762c63086d8d1614abb10ed9f898aef35f0
[ "MIT" ]
1
2021-12-03T09:56:54.000Z
2021-12-03T09:56:54.000Z
agents/stew/__init__.py
s0phia-/ipse
a2113762c63086d8d1614abb10ed9f898aef35f0
[ "MIT" ]
null
null
null
agents/stew/__init__.py
s0phia-/ipse
a2113762c63086d8d1614abb10ed9f898aef35f0
[ "MIT" ]
null
null
null
# from .mlogit import StewMultinomialLogit # from .choice_set_data import ChoiceSetData # from .domfilter import inner_loop
41.666667
45
0.824
15
125
6.666667
0.733333
0
0
0
0
0
0
0
0
0
0
0
0.128
125
3
46
41.666667
0.917431
0.944
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4