content
stringlengths 7
1.05M
|
---|
def main(j, args, params, tags, tasklet):
page = args.page
action = args.requestContext.params.get('action', 'install')
aysid = args.requestContext.params.get('aysid')
instance = args.requestContext.params.get('instance', 'main')
parent = args.requestContext.params.get('parent', '')
installedagent = j.application.getAppHRDInstanceNames('agentcontroller2_client')
if not installedagent:
if not installedagent:
page.addMessage('No agentcontroller2_client installed on node')
params.result = page
return params
acc = j.clients.ac.getByInstance(installedagent[0])
installargs = args.requestContext.params.copy()
for param in ('name', 'rights', 'space', 'instance', 'action', 'path', 'aysid', 'parent'):
installargs.pop(param)
ays = j.atyourservice.getTemplatefromSQL(templateid=aysid)
if not ays:
page.addMessage("h3. Could not find template on node")
params.result = page
return params
ays = ays[0]
installargs = ['%s:%s' % (key, value) for key, value in installargs.items()]
result = acc.execute(j.application.whoAmI.gid, j.application.whoAmI.nid, 'ays', ['install', '-n', ays.name, '-d', ays.domain,
'-i', instance, '--data', ' '.join(installargs), '--parent', parent])
page.addMessage('Service %s:%s:%s install job (%s) has started' % (ays.domain, ays.name, instance, result.id))
params.result = page
return params
def match(j, args, params, tags, tasklet):
return True
|
class SpaceAge(object):
earth_year = 31557600
corr = {
'earth': 1,
'mercury': 0.2408467,
'venus': 0.61519726,
'mars': 1.8808158,
'jupiter': 11.862615,
'saturn': 29.447498,
'uranus': 84.016846,
'neptune': 164.79132
}
def __init__(self, seconds):
self.seconds = seconds
def repr(self, planet=None):
return round(self.seconds / (self.earth_year * (self.corr[planet] if planet else 1)), 2)
def __getattr__(self, name):
planet = name[3:]
|
ACME_DEPLOYMENT = """
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: %(deployment_name)s
labels:
app: openshift-acme
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: openshift-acme
strategy:
type: Recreate
template:
metadata:
creationTimestamp: null
labels:
app: openshift-acme
spec:
containers:
- env:
- name: OPENSHIFT_ACME_EXPOSER_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
- name: OPENSHIFT_ACME_ACMEURL
value: 'https://acme-v01.api.letsencrypt.org/directory'
- name: OPENSHIFT_ACME_LOGLEVEL
value: '4'
- name: OPENSHIFT_ACME_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
image: %(image)s
imagePullPolicy: Always
name: openshift-acme
ports:
- containerPort: 5000
protocol: TCP
resources:
limits:
cpu: 50m
memory: 100Mi
requests:
cpu: 5m
memory: 50Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /dapi
name: podinfo
readOnly: true
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: %(serviceaccount_name)s
serviceAccountName: %(serviceaccount_name)s
terminationGracePeriodSeconds: 30
volumes:
- name: podinfo
downwardAPI:
defaultMode: 420
items:
- path: labels
fieldRef:
apiVersion: v1
fieldPath: metadata.labels
"""
ACME_SERVICEACCOUNT = """
kind: ServiceAccount
apiVersion: v1
metadata:
name: %(serviceaccount_name)s
labels:
app: openshift-acme
"""
ACME_ROLE = """
apiVersion: %(role_api_version)s
kind: Role
metadata:
name: %(role_name)s
labels:
app: openshift-acme
rules:
- apiGroups:
- "route.openshift.io"
resources:
- routes
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- "route.openshift.io"
resources:
- routes/custom-host
verbs:
- create
- apiGroups:
- ""
resources:
- services
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- secrets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
"""
ACME_ROLEBINDING = """
apiVersion: %(rolebinding_api_version)s
groupNames: null
kind: RoleBinding
metadata:
name: %(rolebinding_name)s
roleRef:
kind: Role
name: %(role_name)s
namespace: %(namespace_name)s
subjects:
- kind: ServiceAccount
name: %(serviceaccount_name)s
"""
|
#!/usr/bin/env python
NAME = 'Cisco ACE XML Gateway'
def is_waf(self):
if self.matchheader(('server', 'ACE XML Gateway')):
return True
return False
|
# WARNING!!!
# DO NOT MODIFY THIS FILE DIRECTLY.
# TO GENERATE THIS RUN: ./updateWorkspaceSnapshots.sh
BASE_ARCHITECTURES = ["amd64"]
# Exceptions:
# - s390x doesn't have libunwind8.
# https://github.com/GoogleContainerTools/distroless/pull/612#issue-500157699
# - ppc64le doesn't have stretch security-channel.
# https://github.com/GoogleContainerTools/distroless/pull/637#issuecomment-728139611
# - arm needs someone with available hardware to generate:
# //experimental/python2.7/ld.so.arm.cache
ARCHITECTURES = BASE_ARCHITECTURES
VERSIONS = [
("debian11", "bullseye"),
]
DEBIAN_SNAPSHOT = "20210729T144530Z"
DEBIAN_SECURITY_SNAPSHOT = "20210729T023407Z"
SHA256s = {
"amd64": {
"debian11": {
"main": "c17bf41d0f915c55a2cc048ed6a4b87e206e4d72e310f43a41f52d83689bc31d",
"updates": "e70a10d6f43a60226491dffa59b822337fbb27a2d0ba19d11872099c1683fb6d",
"security": "ac756c56a08c59f831db4d6c17d480b21f2704b3d51961fa2ff284a0a82a769a",
},
},
}
|
"""Top-level package for `functions` project."""
__package_name__ = "functions-cli"
__version__ = "0.1.0"
|
if __name__ == '__main__':
n = int(input())
if((n%2!=0)or((n>=6)and(n<=20))):
print("Weird")
else:
print("Not Weird")
|
'''
Created on Apr 4, 2021
@author: x2012x
'''
class ConductorException(Exception):
pass
class UnsupportedAction(ConductorException):
pass
class UnsupportedIntent(ConductorException):
pass
class RegistrationExists(ConductorException):
pass
class SpeakableException(ConductorException):
def __init__(self, phrase):
self.phrase = phrase
class TTSFailure(SpeakableException):
pass
class StateFailure(SpeakableException):
pass
class CalendarFailure(SpeakableException):
pass
class RoutineFailure(SpeakableException):
pass
|
#!/usr/bin/env python3
##################################################################################
# #
# Program purpose: Finds a replace the string "Python" with "Java" and the #
# string "Java" with "Python". #
# Program Author : Happi Yvan <[email protected]> #
# Creation Date : September 22, 2019 #
# #
##################################################################################
def read_string(mess: str):
valid = False
user_str = ""
while not valid:
try:
user_str = input(mess).strip()
valid = True
except ValueError as ve:
print(f"[ERROR]: {ve}")
return user_str
def swap_substr(main_str: str, sub_a: str, sub_b: str):
if main_str.index(sub_a) >= 0 and main_str.index(sub_b) >= 0:
i = 0
while i < len(main_str):
temp_str = main_str[i:i + len(sub_a)]
if temp_str == sub_a:
main_str = main_str[0:i] + sub_b + main_str[i+len(sub_a):]
else:
temp_str = main_str[i:i + len(sub_b)]
if temp_str == sub_b:
main_str = main_str[0:i] + sub_a + main_str[i+len(sub_b):]
i += 1
return main_str
if __name__ == "__main__":
data = read_string(mess="Enter some string with 'Python' and 'Java': ")
print(f"Processed string is: {swap_substr(main_str=data, sub_a='Python', sub_b='Java')}")
|
class ObjectMaterialSource(Enum,IComparable,IFormattable,IConvertible):
"""
Defines enumerated values for the source of material of single objects.
enum ObjectMaterialSource,values: MaterialFromLayer (0),MaterialFromObject (1),MaterialFromParent (3)
"""
def __eq__(self,*args):
""" x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x==y """
pass
def __format__(self,*args):
""" __format__(formattable: IFormattable,format: str) -> str """
pass
def __ge__(self,*args):
pass
def __gt__(self,*args):
pass
def __init__(self,*args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __le__(self,*args):
pass
def __lt__(self,*args):
pass
def __ne__(self,*args):
pass
def __reduce_ex__(self,*args):
pass
def __str__(self,*args):
pass
MaterialFromLayer=None
MaterialFromObject=None
MaterialFromParent=None
value__=None
|
#!/usr/bin/env python3.8
#
########################################
#
# Python Tips, by Wolfgang Azevedo
# https://github.com/wolfgang-azevedo/python-tips
#
# Numbers
# 2020-03-03
#
########################################
#
#
# Boolean type returns True or False as a result
# Tipo boleano retorna True, se o valor corresponde ou False se não corresponde como resultado
verdade = True
falso = False
soma = 6 + 3
resultado = input("Digite o resultado da soma de (6 + 3): ")
if resultado == "9":
print(verdade)
else:
print(falso)
|
# question : https://quera.ir/problemset/university/296/
n = int(input())
for i in range(1, n + 1):
line = ''
for j in range(1, n + 1):
if i in [1, n]:
line += '#'
elif j in [1, n]:
line += '#'
elif i == j:
line += '#'
elif j == n - i + 1:
line += '#'
elif j > n-i:
if i <= int(n/2)+1:
line += '#'
else:
if j > i:
line += '#'
else:
line += ' '
else:
line += ' '
print(line)
|
categories = {
'coco': [
{"color": [220, 20, 60], "isthing": 1, "id": 1, "name": "person"},
{"color": [119, 11, 32], "isthing": 1, "id": 2, "name": "bicycle"},
{"color": [0, 0, 142], "isthing": 1, "id": 3, "name": "car"},
{"color": [0, 0, 230], "isthing": 1, "id": 4, "name": "motorcycle"},
{"color": [106, 0, 228], "isthing": 1, "id": 5, "name": "airplane"},
{"color": [0, 60, 100], "isthing": 1, "id": 6, "name": "bus"},
{"color": [0, 80, 100], "isthing": 1, "id": 7, "name": "train"},
{"color": [0, 0, 70], "isthing": 1, "id": 8, "name": "truck"},
{"color": [0, 0, 192], "isthing": 1, "id": 9, "name": "boat"},
{"color": [250, 170, 30], "isthing": 1, "id": 10, "name": "traffic light"},
{"color": [100, 170, 30], "isthing": 1, "id": 11, "name": "fire hydrant"},
{"color": [220, 220, 0], "isthing": 1, "id": 13, "name": "stop sign"},
{"color": [175, 116, 175], "isthing": 1, "id": 14, "name": "parking meter"},
{"color": [250, 0, 30], "isthing": 1, "id": 15, "name": "bench"},
{"color": [165, 42, 42], "isthing": 1, "id": 16, "name": "bird"},
{"color": [255, 77, 255], "isthing": 1, "id": 17, "name": "cat"},
{"color": [0, 226, 252], "isthing": 1, "id": 18, "name": "dog"},
{"color": [182, 182, 255], "isthing": 1, "id": 19, "name": "horse"},
{"color": [0, 82, 0], "isthing": 1, "id": 20, "name": "sheep"},
{"color": [120, 166, 157], "isthing": 1, "id": 21, "name": "cow"},
{"color": [110, 76, 0], "isthing": 1, "id": 22, "name": "elephant"},
{"color": [174, 57, 255], "isthing": 1, "id": 23, "name": "bear"},
{"color": [199, 100, 0], "isthing": 1, "id": 24, "name": "zebra"},
{"color": [72, 0, 118], "isthing": 1, "id": 25, "name": "giraffe"},
{"color": [255, 179, 240], "isthing": 1, "id": 27, "name": "backpack"},
{"color": [0, 125, 92], "isthing": 1, "id": 28, "name": "umbrella"},
{"color": [209, 0, 151], "isthing": 1, "id": 31, "name": "handbag"},
{"color": [188, 208, 182], "isthing": 1, "id": 32, "name": "tie"},
{"color": [0, 220, 176], "isthing": 1, "id": 33, "name": "suitcase"},
{"color": [255, 99, 164], "isthing": 1, "id": 34, "name": "frisbee"},
{"color": [92, 0, 73], "isthing": 1, "id": 35, "name": "skis"},
{"color": [133, 129, 255], "isthing": 1, "id": 36, "name": "snowboard"},
{"color": [78, 180, 255], "isthing": 1, "id": 37, "name": "sports ball"},
{"color": [0, 228, 0], "isthing": 1, "id": 38, "name": "kite"},
{"color": [174, 255, 243], "isthing": 1, "id": 39, "name": "baseball bat"},
{"color": [45, 89, 255], "isthing": 1, "id": 40, "name": "baseball glove"},
{"color": [134, 134, 103], "isthing": 1, "id": 41, "name": "skateboard"},
{"color": [145, 148, 174], "isthing": 1, "id": 42, "name": "surfboard"},
{"color": [255, 208, 186], "isthing": 1, "id": 43, "name": "tennis racket"},
{"color": [197, 226, 255], "isthing": 1, "id": 44, "name": "bottle"},
{"color": [171, 134, 1], "isthing": 1, "id": 46, "name": "wine glass"},
{"color": [109, 63, 54], "isthing": 1, "id": 47, "name": "cup"},
{"color": [207, 138, 255], "isthing": 1, "id": 48, "name": "fork"},
{"color": [151, 0, 95], "isthing": 1, "id": 49, "name": "knife"},
{"color": [9, 80, 61], "isthing": 1, "id": 50, "name": "spoon"},
{"color": [84, 105, 51], "isthing": 1, "id": 51, "name": "bowl"},
{"color": [74, 65, 105], "isthing": 1, "id": 52, "name": "banana"},
{"color": [166, 196, 102], "isthing": 1, "id": 53, "name": "apple"},
{"color": [208, 195, 210], "isthing": 1, "id": 54, "name": "sandwich"},
{"color": [255, 109, 65], "isthing": 1, "id": 55, "name": "orange"},
{"color": [0, 143, 149], "isthing": 1, "id": 56, "name": "broccoli"},
{"color": [179, 0, 194], "isthing": 1, "id": 57, "name": "carrot"},
{"color": [209, 99, 106], "isthing": 1, "id": 58, "name": "hot dog"},
{"color": [5, 121, 0], "isthing": 1, "id": 59, "name": "pizza"},
{"color": [227, 255, 205], "isthing": 1, "id": 60, "name": "donut"},
{"color": [147, 186, 208], "isthing": 1, "id": 61, "name": "cake"},
{"color": [153, 69, 1], "isthing": 1, "id": 62, "name": "chair"},
{"color": [3, 95, 161], "isthing": 1, "id": 63, "name": "couch"},
{"color": [163, 255, 0], "isthing": 1, "id": 64, "name": "potted plant"},
{"color": [119, 0, 170], "isthing": 1, "id": 65, "name": "bed"},
{"color": [0, 182, 199], "isthing": 1, "id": 67, "name": "dining table"},
{"color": [0, 165, 120], "isthing": 1, "id": 70, "name": "toilet"},
{"color": [183, 130, 88], "isthing": 1, "id": 72, "name": "tv"},
{"color": [95, 32, 0], "isthing": 1, "id": 73, "name": "laptop"},
{"color": [130, 114, 135], "isthing": 1, "id": 74, "name": "mouse"},
{"color": [110, 129, 133], "isthing": 1, "id": 75, "name": "remote"},
{"color": [166, 74, 118], "isthing": 1, "id": 76, "name": "keyboard"},
{"color": [219, 142, 185], "isthing": 1, "id": 77, "name": "cell phone"},
{"color": [79, 210, 114], "isthing": 1, "id": 78, "name": "microwave"},
{"color": [178, 90, 62], "isthing": 1, "id": 79, "name": "oven"},
{"color": [65, 70, 15], "isthing": 1, "id": 80, "name": "toaster"},
{"color": [127, 167, 115], "isthing": 1, "id": 81, "name": "sink"},
{"color": [59, 105, 106], "isthing": 1, "id": 82, "name": "refrigerator"},
{"color": [142, 108, 45], "isthing": 1, "id": 84, "name": "book"},
{"color": [196, 172, 0], "isthing": 1, "id": 85, "name": "clock"},
{"color": [95, 54, 80], "isthing": 1, "id": 86, "name": "vase"},
{"color": [128, 76, 255], "isthing": 1, "id": 87, "name": "scissors"},
{"color": [201, 57, 1], "isthing": 1, "id": 88, "name": "teddy bear"},
{"color": [246, 0, 122], "isthing": 1, "id": 89, "name": "hair drier"},
{"color": [191, 162, 208], "isthing": 1, "id": 90, "name": "toothbrush"},
],
'cityscapes': [
{'id': i + 1, 'name': x} for i, x in enumerate(
["person", "rider", "car", "truck","bus", "train", "motorcycle", "bicycle"])
],
'mapillary': [
{'id': 1, 'name': 'animal--bird'},
{'id': 2, 'name': 'animal--ground-animal'},
{'id': 9, 'name': 'construction--flat--crosswalk-plain'},
{'id': 20, 'name': 'human--person'},
{'id': 21, 'name': 'human--rider--bicyclist'},
{'id': 22, 'name': 'human--rider--motorcyclist'},
{'id': 23, 'name': 'human--rider--other-rider'},
{'id': 24, 'name': 'marking--crosswalk-zebra'},
{'id': 33, 'name': 'object--banner'},
{'id': 34, 'name': 'object--bench'},
{'id': 35, 'name': 'object--bike-rack'},
{'id': 36, 'name': 'object--billboard'},
{'id': 37, 'name': 'object--catch-basin'},
{'id': 38, 'name': 'object--cctv-camera'},
{'id': 39, 'name': 'object--fire-hydrant'},
{'id': 40, 'name': 'object--junction-box'},
{'id': 41, 'name': 'object--mailbox'},
{'id': 42, 'name': 'object--manhole'},
{'id': 43, 'name': 'object--phone-booth'},
{'id': 45, 'name': 'object--street-light'},
{'id': 46, 'name': 'object--support--pole'},
{'id': 47, 'name': 'object--support--traffic-sign-frame'},
{'id': 48, 'name': 'object--support--utility-pole'},
{'id': 49, 'name': 'object--traffic-light'},
{'id': 50, 'name': 'object--traffic-sign--back'},
{'id': 51, 'name': 'object--traffic-sign--front'},
{'id': 52, 'name': 'object--trash-can'},
{'id': 53, 'name': 'object--vehicle--bicycle'},
{'id': 54, 'name': 'object--vehicle--boat'},
{'id': 55, 'name': 'object--vehicle--bus'},
{'id': 56, 'name': 'object--vehicle--car'},
{'id': 57, 'name': 'object--vehicle--caravan'},
{'id': 58, 'name': 'object--vehicle--motorcycle'},
{'id': 60, 'name': 'object--vehicle--other-vehicle'},
{'id': 61, 'name': 'object--vehicle--trailer'},
{'id': 62, 'name': 'object--vehicle--truck'},
{'id': 63, 'name': 'object--vehicle--wheeled-slow'},
],
'viper': [
{'id': 13, 'name': 'trafficlight', 'supercategory': ''},
{'id': 16, 'name': 'firehydrant', 'supercategory': ''},
{'id': 17, 'name': 'chair', 'supercategory': ''},
{'id': 19, 'name': 'trashcan', 'supercategory': ''},
{'id': 20, 'name': 'person', 'supercategory': ''},
{'id': 23, 'name': 'motorcycle', 'supercategory': ''},
{'id': 24, 'name': 'car', 'supercategory': ''},
{'id': 25, 'name': 'van', 'supercategory': ''},
{'id': 26, 'name': 'bus', 'supercategory': ''},
{'id': 27, 'name': 'truck', 'supercategory': ''},
],
'scannet': [
{'id': 3, 'name': 'cabinet', 'supercategory': 'furniture'},
{'id': 4, 'name': 'bed', 'supercategory': 'furniture'},
{'id': 5, 'name': 'chair', 'supercategory': 'furniture'},
{'id': 6, 'name': 'sofa', 'supercategory': 'furniture'},
{'id': 7, 'name': 'table', 'supercategory': 'furniture'},
{'id': 8, 'name': 'door', 'supercategory': 'furniture'},
{'id': 9, 'name': 'window', 'supercategory': 'furniture'},
{'id': 10, 'name': 'bookshelf', 'supercategory': 'furniture'},
{'id': 11, 'name': 'picture', 'supercategory': 'furniture'},
{'id': 12, 'name': 'counter', 'supercategory': 'furniture'},
{'id': 14, 'name': 'desk', 'supercategory': 'furniture'},
{'id': 16, 'name': 'curtain', 'supercategory': 'furniture'},
{'id': 24, 'name': 'refrigerator', 'supercategory': 'appliance'},
{'id': 28, 'name': 'shower curtain', 'supercategory': 'furniture'},
{'id': 33, 'name': 'toilet', 'supercategory': 'furniture'},
{'id': 34, 'name': 'sink', 'supercategory': 'appliance'},
{'id': 36, 'name': 'bathtub', 'supercategory': 'furniture'},
{'id': 39, 'name': 'otherfurniture', 'supercategory': 'furniture'},
],
'oid': [
{'id': 1, 'name': 'Screwdriver', 'freebase_id': '/m/01bms0'},
{'id': 2, 'name': 'Light switch', 'freebase_id': '/m/03jbxj'},
{'id': 3, 'name': 'Doughnut', 'freebase_id': '/m/0jy4k'},
{'id': 4, 'name': 'Toilet paper', 'freebase_id': '/m/09gtd'},
{'id': 5, 'name': 'Wrench', 'freebase_id': '/m/01j5ks'},
{'id': 6, 'name': 'Toaster', 'freebase_id': '/m/01k6s3'},
{'id': 7, 'name': 'Tennis ball', 'freebase_id': '/m/05ctyq'},
{'id': 8, 'name': 'Radish', 'freebase_id': '/m/015x5n'},
{'id': 9, 'name': 'Pomegranate', 'freebase_id': '/m/0jwn_'},
{'id': 10, 'name': 'Kite', 'freebase_id': '/m/02zt3'},
{'id': 11, 'name': 'Table tennis racket', 'freebase_id': '/m/05_5p_0'},
{'id': 12, 'name': 'Hamster', 'freebase_id': '/m/03qrc'},
{'id': 13, 'name': 'Barge', 'freebase_id': '/m/01btn'},
{'id': 14, 'name': 'Shower', 'freebase_id': '/m/02f9f_'},
{'id': 15, 'name': 'Printer', 'freebase_id': '/m/01m4t'},
{'id': 16, 'name': 'Snowmobile', 'freebase_id': '/m/01x3jk'},
{'id': 17, 'name': 'Fire hydrant', 'freebase_id': '/m/01pns0'},
{'id': 18, 'name': 'Limousine', 'freebase_id': '/m/01lcw4'},
{'id': 19, 'name': 'Whale', 'freebase_id': '/m/084zz'},
{'id': 20, 'name': 'Microwave oven', 'freebase_id': '/m/0fx9l'},
{'id': 21, 'name': 'Asparagus', 'freebase_id': '/m/0cjs7'},
{'id': 22, 'name': 'Lion', 'freebase_id': '/m/096mb'},
{'id': 23, 'name': 'Spatula', 'freebase_id': '/m/02d1br'},
{'id': 24, 'name': 'Torch', 'freebase_id': '/m/07dd4'},
{'id': 25, 'name': 'Volleyball', 'freebase_id': '/m/02rgn06'},
{'id': 26, 'name': 'Ambulance', 'freebase_id': '/m/012n7d'},
{'id': 27, 'name': 'Chopsticks', 'freebase_id': '/m/01_5g'},
{'id': 28, 'name': 'Raccoon', 'freebase_id': '/m/0dq75'},
{'id': 29, 'name': 'Blue jay', 'freebase_id': '/m/01f8m5'},
{'id': 30, 'name': 'Lynx', 'freebase_id': '/m/04g2r'},
{'id': 31, 'name': 'Dice', 'freebase_id': '/m/029b3'},
{'id': 32, 'name': 'Filing cabinet', 'freebase_id': '/m/047j0r'},
{'id': 33, 'name': 'Ruler', 'freebase_id': '/m/0hdln'},
{'id': 34, 'name': 'Power plugs and sockets', 'freebase_id': '/m/03bbps'},
{'id': 35, 'name': 'Bell pepper', 'freebase_id': '/m/0jg57'},
{'id': 36, 'name': 'Binoculars', 'freebase_id': '/m/0lt4_'},
{'id': 37, 'name': 'Pretzel', 'freebase_id': '/m/01f91_'},
{'id': 38, 'name': 'Hot dog', 'freebase_id': '/m/01b9xk'},
{'id': 39, 'name': 'Missile', 'freebase_id': '/m/04ylt'},
{'id': 40, 'name': 'Common fig', 'freebase_id': '/m/043nyj'},
{'id': 41, 'name': 'Croissant', 'freebase_id': '/m/015wgc'},
{'id': 42, 'name': 'Adhesive tape', 'freebase_id': '/m/03m3vtv'},
{'id': 43, 'name': 'Slow cooker', 'freebase_id': '/m/02tsc9'},
{'id': 44, 'name': 'Dog bed', 'freebase_id': '/m/0h8n6f9'},
{'id': 45, 'name': 'Harpsichord', 'freebase_id': '/m/03q5t'},
{'id': 46, 'name': 'Billiard table', 'freebase_id': '/m/04p0qw'},
{'id': 47, 'name': 'Alpaca', 'freebase_id': '/m/0pcr'},
{'id': 48, 'name': 'Harbor seal', 'freebase_id': '/m/02l8p9'},
{'id': 49, 'name': 'Grape', 'freebase_id': '/m/0388q'},
{'id': 50, 'name': 'Nail', 'freebase_id': '/m/05bm6'},
{'id': 51, 'name': 'Paper towel', 'freebase_id': '/m/02w3r3'},
{'id': 52, 'name': 'Alarm clock', 'freebase_id': '/m/046dlr'},
{'id': 53, 'name': 'Guacamole', 'freebase_id': '/m/02g30s'},
{'id': 54, 'name': 'Starfish', 'freebase_id': '/m/01h8tj'},
{'id': 55, 'name': 'Zebra', 'freebase_id': '/m/0898b'},
{'id': 56, 'name': 'Segway', 'freebase_id': '/m/076bq'},
{'id': 57, 'name': 'Sea turtle', 'freebase_id': '/m/0120dh'},
{'id': 58, 'name': 'Scissors', 'freebase_id': '/m/01lsmm'},
{'id': 59, 'name': 'Rhinoceros', 'freebase_id': '/m/03d443'},
{'id': 60, 'name': 'Kangaroo', 'freebase_id': '/m/04c0y'},
{'id': 61, 'name': 'Jaguar', 'freebase_id': '/m/0449p'},
{'id': 62, 'name': 'Leopard', 'freebase_id': '/m/0c29q'},
{'id': 63, 'name': 'Dumbbell', 'freebase_id': '/m/04h8sr'},
{'id': 64, 'name': 'Envelope', 'freebase_id': '/m/0frqm'},
{'id': 65, 'name': 'Winter melon', 'freebase_id': '/m/02cvgx'},
{'id': 66, 'name': 'Teapot', 'freebase_id': '/m/01fh4r'},
{'id': 67, 'name': 'Camel', 'freebase_id': '/m/01x_v'},
{'id': 68, 'name': 'Beaker', 'freebase_id': '/m/0d20w4'},
{'id': 69, 'name': 'Brown bear', 'freebase_id': '/m/01dxs'},
{'id': 70, 'name': 'Toilet', 'freebase_id': '/m/09g1w'},
{'id': 71, 'name': 'Teddy bear', 'freebase_id': '/m/0kmg4'},
{'id': 72, 'name': 'Briefcase', 'freebase_id': '/m/0584n8'},
{'id': 73, 'name': 'Stop sign', 'freebase_id': '/m/02pv19'},
{'id': 74, 'name': 'Tiger', 'freebase_id': '/m/07dm6'},
{'id': 75, 'name': 'Cabbage', 'freebase_id': '/m/0fbw6'},
{'id': 76, 'name': 'Giraffe', 'freebase_id': '/m/03bk1'},
{'id': 77, 'name': 'Polar bear', 'freebase_id': '/m/0633h'},
{'id': 78, 'name': 'Shark', 'freebase_id': '/m/0by6g'},
{'id': 79, 'name': 'Rabbit', 'freebase_id': '/m/06mf6'},
{'id': 80, 'name': 'Swim cap', 'freebase_id': '/m/04tn4x'},
{'id': 81, 'name': 'Pressure cooker', 'freebase_id': '/m/0h8ntjv'},
{'id': 82, 'name': 'Kitchen knife', 'freebase_id': '/m/058qzx'},
{'id': 83, 'name': 'Submarine sandwich', 'freebase_id': '/m/06pcq'},
{'id': 84, 'name': 'Flashlight', 'freebase_id': '/m/01kb5b'},
{'id': 85, 'name': 'Penguin', 'freebase_id': '/m/05z6w'},
{'id': 86, 'name': 'Snake', 'freebase_id': '/m/078jl'},
{'id': 87, 'name': 'Zucchini', 'freebase_id': '/m/027pcv'},
{'id': 88, 'name': 'Bat', 'freebase_id': '/m/01h44'},
{'id': 89, 'name': 'Food processor', 'freebase_id': '/m/03y6mg'},
{'id': 90, 'name': 'Ostrich', 'freebase_id': '/m/05n4y'},
{'id': 91, 'name': 'Sea lion', 'freebase_id': '/m/0gd36'},
{'id': 92, 'name': 'Goldfish', 'freebase_id': '/m/03fj2'},
{'id': 93, 'name': 'Elephant', 'freebase_id': '/m/0bwd_0j'},
{'id': 94, 'name': 'Rocket', 'freebase_id': '/m/09rvcxw'},
{'id': 95, 'name': 'Mouse', 'freebase_id': '/m/04rmv'},
{'id': 96, 'name': 'Oyster', 'freebase_id': '/m/0_cp5'},
{'id': 97, 'name': 'Digital clock', 'freebase_id': '/m/06_72j'},
{'id': 98, 'name': 'Otter', 'freebase_id': '/m/0cn6p'},
{'id': 99, 'name': 'Dolphin', 'freebase_id': '/m/02hj4'},
{'id': 100, 'name': 'Punching bag', 'freebase_id': '/m/0420v5'},
{'id': 101, 'name': 'Corded phone', 'freebase_id': '/m/0h8lkj8'},
{'id': 102, 'name': 'Tennis racket', 'freebase_id': '/m/0h8my_4'},
{'id': 103, 'name': 'Pancake', 'freebase_id': '/m/01dwwc'},
{'id': 104, 'name': 'Mango', 'freebase_id': '/m/0fldg'},
{'id': 105, 'name': 'Crocodile', 'freebase_id': '/m/09f_2'},
{'id': 106, 'name': 'Waffle', 'freebase_id': '/m/01dwsz'},
{'id': 107, 'name': 'Computer mouse', 'freebase_id': '/m/020lf'},
{'id': 108, 'name': 'Kettle', 'freebase_id': '/m/03s_tn'},
{'id': 109, 'name': 'Tart', 'freebase_id': '/m/02zvsm'},
{'id': 110, 'name': 'Oven', 'freebase_id': '/m/029bxz'},
{'id': 111, 'name': 'Banana', 'freebase_id': '/m/09qck'},
{'id': 112, 'name': 'Cheetah', 'freebase_id': '/m/0cd4d'},
{'id': 113, 'name': 'Raven', 'freebase_id': '/m/06j2d'},
{'id': 114, 'name': 'Frying pan', 'freebase_id': '/m/04v6l4'},
{'id': 115, 'name': 'Pear', 'freebase_id': '/m/061_f'},
{'id': 116, 'name': 'Fox', 'freebase_id': '/m/0306r'},
{'id': 117, 'name': 'Skateboard', 'freebase_id': '/m/06_fw'},
{'id': 118, 'name': 'Rugby ball', 'freebase_id': '/m/0wdt60w'},
{'id': 119, 'name': 'Watermelon', 'freebase_id': '/m/0kpqd'},
{'id': 120, 'name': 'Flute', 'freebase_id': '/m/0l14j_'},
{'id': 121, 'name': 'Canary', 'freebase_id': '/m/0ccs93'},
{'id': 122, 'name': 'Door handle', 'freebase_id': '/m/03c7gz'},
{'id': 123, 'name': 'Saxophone', 'freebase_id': '/m/06ncr'},
{'id': 124, 'name': 'Burrito', 'freebase_id': '/m/01j3zr'},
{'id': 125, 'name': 'Suitcase', 'freebase_id': '/m/01s55n'},
{'id': 126, 'name': 'Roller skates', 'freebase_id': '/m/02p3w7d'},
{'id': 127, 'name': 'Dagger', 'freebase_id': '/m/02gzp'},
{'id': 128, 'name': 'Seat belt', 'freebase_id': '/m/0dkzw'},
{'id': 129, 'name': 'Washing machine', 'freebase_id': '/m/0174k2'},
{'id': 130, 'name': 'Jet ski', 'freebase_id': '/m/01xs3r'},
{'id': 131, 'name': 'Sombrero', 'freebase_id': '/m/02jfl0'},
{'id': 132, 'name': 'Pig', 'freebase_id': '/m/068zj'},
{'id': 133, 'name': 'Drinking straw', 'freebase_id': '/m/03v5tg'},
{'id': 134, 'name': 'Peach', 'freebase_id': '/m/0dj6p'},
{'id': 135, 'name': 'Tortoise', 'freebase_id': '/m/011k07'},
{'id': 136, 'name': 'Towel', 'freebase_id': '/m/0162_1'},
{'id': 137, 'name': 'Tablet computer', 'freebase_id': '/m/0bh9flk'},
{'id': 138, 'name': 'Cucumber', 'freebase_id': '/m/015x4r'},
{'id': 139, 'name': 'Mule', 'freebase_id': '/m/0dbzx'},
{'id': 140, 'name': 'Potato', 'freebase_id': '/m/05vtc'},
{'id': 141, 'name': 'Frog', 'freebase_id': '/m/09ld4'},
{'id': 142, 'name': 'Bear', 'freebase_id': '/m/01dws'},
{'id': 143, 'name': 'Lighthouse', 'freebase_id': '/m/04h7h'},
{'id': 144, 'name': 'Belt', 'freebase_id': '/m/0176mf'},
{'id': 145, 'name': 'Baseball bat', 'freebase_id': '/m/03g8mr'},
{'id': 146, 'name': 'Racket', 'freebase_id': '/m/0dv9c'},
{'id': 147, 'name': 'Sword', 'freebase_id': '/m/06y5r'},
{'id': 148, 'name': 'Bagel', 'freebase_id': '/m/01fb_0'},
{'id': 149, 'name': 'Goat', 'freebase_id': '/m/03fwl'},
{'id': 150, 'name': 'Lizard', 'freebase_id': '/m/04m9y'},
{'id': 151, 'name': 'Parrot', 'freebase_id': '/m/0gv1x'},
{'id': 152, 'name': 'Owl', 'freebase_id': '/m/09d5_'},
{'id': 153, 'name': 'Turkey', 'freebase_id': '/m/0jly1'},
{'id': 154, 'name': 'Cello', 'freebase_id': '/m/01xqw'},
{'id': 155, 'name': 'Knife', 'freebase_id': '/m/04ctx'},
{'id': 156, 'name': 'Handgun', 'freebase_id': '/m/0gxl3'},
{'id': 157, 'name': 'Carrot', 'freebase_id': '/m/0fj52s'},
{'id': 158, 'name': 'Hamburger', 'freebase_id': '/m/0cdn1'},
{'id': 159, 'name': 'Grapefruit', 'freebase_id': '/m/0hqkz'},
{'id': 160, 'name': 'Tap', 'freebase_id': '/m/02jz0l'},
{'id': 161, 'name': 'Tea', 'freebase_id': '/m/07clx'},
{'id': 162, 'name': 'Bull', 'freebase_id': '/m/0cnyhnx'},
{'id': 163, 'name': 'Turtle', 'freebase_id': '/m/09dzg'},
{'id': 164, 'name': 'Bust', 'freebase_id': '/m/04yqq2'},
{'id': 165, 'name': 'Monkey', 'freebase_id': '/m/08pbxl'},
{'id': 166, 'name': 'Wok', 'freebase_id': '/m/084rd'},
{'id': 167, 'name': 'Broccoli', 'freebase_id': '/m/0hkxq'},
{'id': 168, 'name': 'Pitcher', 'freebase_id': '/m/054fyh'},
{'id': 169, 'name': 'Whiteboard', 'freebase_id': '/m/02d9qx'},
{'id': 170, 'name': 'Squirrel', 'freebase_id': '/m/071qp'},
{'id': 171, 'name': 'Jug', 'freebase_id': '/m/08hvt4'},
{'id': 172, 'name': 'Woodpecker', 'freebase_id': '/m/01dy8n'},
{'id': 173, 'name': 'Pizza', 'freebase_id': '/m/0663v'},
{'id': 174, 'name': 'Surfboard', 'freebase_id': '/m/019w40'},
{'id': 175, 'name': 'Sofa bed', 'freebase_id': '/m/03m3pdh'},
{'id': 176, 'name': 'Sheep', 'freebase_id': '/m/07bgp'},
{'id': 177, 'name': 'Candle', 'freebase_id': '/m/0c06p'},
{'id': 178, 'name': 'Muffin', 'freebase_id': '/m/01tcjp'},
{'id': 179, 'name': 'Cookie', 'freebase_id': '/m/021mn'},
{'id': 180, 'name': 'Apple', 'freebase_id': '/m/014j1m'},
{'id': 181, 'name': 'Chest of drawers', 'freebase_id': '/m/05kyg_'},
{'id': 182, 'name': 'Skull', 'freebase_id': '/m/016m2d'},
{'id': 183, 'name': 'Chicken', 'freebase_id': '/m/09b5t'},
{'id': 184, 'name': 'Loveseat', 'freebase_id': '/m/0703r8'},
{'id': 185, 'name': 'Baseball glove', 'freebase_id': '/m/03grzl'},
{'id': 186, 'name': 'Piano', 'freebase_id': '/m/05r5c'},
{'id': 187, 'name': 'Waste container', 'freebase_id': '/m/0bjyj5'},
{'id': 188, 'name': 'Barrel', 'freebase_id': '/m/02zn6n'},
{'id': 189, 'name': 'Swan', 'freebase_id': '/m/0dftk'},
{'id': 190, 'name': 'Taxi', 'freebase_id': '/m/0pg52'},
{'id': 191, 'name': 'Lemon', 'freebase_id': '/m/09k_b'},
{'id': 192, 'name': 'Pumpkin', 'freebase_id': '/m/05zsy'},
{'id': 193, 'name': 'Sparrow', 'freebase_id': '/m/0h23m'},
{'id': 194, 'name': 'Orange', 'freebase_id': '/m/0cyhj_'},
{'id': 195, 'name': 'Tank', 'freebase_id': '/m/07cmd'},
{'id': 196, 'name': 'Sandwich', 'freebase_id': '/m/0l515'},
{'id': 197, 'name': 'Coffee', 'freebase_id': '/m/02vqfm'},
{'id': 198, 'name': 'Juice', 'freebase_id': '/m/01z1kdw'},
{'id': 199, 'name': 'Coin', 'freebase_id': '/m/0242l'},
{'id': 200, 'name': 'Pen', 'freebase_id': '/m/0k1tl'},
{'id': 201, 'name': 'Watch', 'freebase_id': '/m/0gjkl'},
{'id': 202, 'name': 'Eagle', 'freebase_id': '/m/09csl'},
{'id': 203, 'name': 'Goose', 'freebase_id': '/m/0dbvp'},
{'id': 204, 'name': 'Falcon', 'freebase_id': '/m/0f6wt'},
{'id': 205, 'name': 'Christmas tree', 'freebase_id': '/m/025nd'},
{'id': 206, 'name': 'Sunflower', 'freebase_id': '/m/0ftb8'},
{'id': 207, 'name': 'Vase', 'freebase_id': '/m/02s195'},
{'id': 208, 'name': 'Football', 'freebase_id': '/m/01226z'},
{'id': 209, 'name': 'Canoe', 'freebase_id': '/m/0ph39'},
{'id': 210, 'name': 'High heels', 'freebase_id': '/m/06k2mb'},
{'id': 211, 'name': 'Spoon', 'freebase_id': '/m/0cmx8'},
{'id': 212, 'name': 'Mug', 'freebase_id': '/m/02jvh9'},
{'id': 213, 'name': 'Swimwear', 'freebase_id': '/m/01gkx_'},
{'id': 214, 'name': 'Duck', 'freebase_id': '/m/09ddx'},
{'id': 215, 'name': 'Cat', 'freebase_id': '/m/01yrx'},
{'id': 216, 'name': 'Tomato', 'freebase_id': '/m/07j87'},
{'id': 217, 'name': 'Cocktail', 'freebase_id': '/m/024g6'},
{'id': 218, 'name': 'Clock', 'freebase_id': '/m/01x3z'},
{'id': 219, 'name': 'Cowboy hat', 'freebase_id': '/m/025rp__'},
{'id': 220, 'name': 'Miniskirt', 'freebase_id': '/m/01cmb2'},
{'id': 221, 'name': 'Cattle', 'freebase_id': '/m/01xq0k1'},
{'id': 222, 'name': 'Strawberry', 'freebase_id': '/m/07fbm7'},
{'id': 223, 'name': 'Bronze sculpture', 'freebase_id': '/m/01yx86'},
{'id': 224, 'name': 'Pillow', 'freebase_id': '/m/034c16'},
{'id': 225, 'name': 'Squash', 'freebase_id': '/m/0dv77'},
{'id': 226, 'name': 'Traffic light', 'freebase_id': '/m/015qff'},
{'id': 227, 'name': 'Saucer', 'freebase_id': '/m/03q5c7'},
{'id': 228, 'name': 'Reptile', 'freebase_id': '/m/06bt6'},
{'id': 229, 'name': 'Cake', 'freebase_id': '/m/0fszt'},
{'id': 230, 'name': 'Plastic bag', 'freebase_id': '/m/05gqfk'},
{'id': 231, 'name': 'Studio couch', 'freebase_id': '/m/026qbn5'},
{'id': 232, 'name': 'Beer', 'freebase_id': '/m/01599'},
{'id': 233, 'name': 'Scarf', 'freebase_id': '/m/02h19r'},
{'id': 234, 'name': 'Coffee cup', 'freebase_id': '/m/02p5f1q'},
{'id': 235, 'name': 'Wine', 'freebase_id': '/m/081qc'},
{'id': 236, 'name': 'Mushroom', 'freebase_id': '/m/052sf'},
{'id': 237, 'name': 'Traffic sign', 'freebase_id': '/m/01mqdt'},
{'id': 238, 'name': 'Camera', 'freebase_id': '/m/0dv5r'},
{'id': 239, 'name': 'Rose', 'freebase_id': '/m/06m11'},
{'id': 240, 'name': 'Couch', 'freebase_id': '/m/02crq1'},
{'id': 241, 'name': 'Handbag', 'freebase_id': '/m/080hkjn'},
{'id': 242, 'name': 'Fedora', 'freebase_id': '/m/02fq_6'},
{'id': 243, 'name': 'Sock', 'freebase_id': '/m/01nq26'},
{'id': 244, 'name': 'Computer keyboard', 'freebase_id': '/m/01m2v'},
{'id': 245, 'name': 'Mobile phone', 'freebase_id': '/m/050k8'},
{'id': 246, 'name': 'Ball', 'freebase_id': '/m/018xm'},
{'id': 247, 'name': 'Balloon', 'freebase_id': '/m/01j51'},
{'id': 248, 'name': 'Horse', 'freebase_id': '/m/03k3r'},
{'id': 249, 'name': 'Boot', 'freebase_id': '/m/01b638'},
{'id': 250, 'name': 'Fish', 'freebase_id': '/m/0ch_cf'},
{'id': 251, 'name': 'Backpack', 'freebase_id': '/m/01940j'},
{'id': 252, 'name': 'Skirt', 'freebase_id': '/m/02wv6h6'},
{'id': 253, 'name': 'Van', 'freebase_id': '/m/0h2r6'},
{'id': 254, 'name': 'Bread', 'freebase_id': '/m/09728'},
{'id': 255, 'name': 'Glove', 'freebase_id': '/m/0174n1'},
{'id': 256, 'name': 'Dog', 'freebase_id': '/m/0bt9lr'},
{'id': 257, 'name': 'Airplane', 'freebase_id': '/m/0cmf2'},
{'id': 258, 'name': 'Motorcycle', 'freebase_id': '/m/04_sv'},
{'id': 259, 'name': 'Drink', 'freebase_id': '/m/0271t'},
{'id': 260, 'name': 'Book', 'freebase_id': '/m/0bt_c3'},
{'id': 261, 'name': 'Train', 'freebase_id': '/m/07jdr'},
{'id': 262, 'name': 'Flower', 'freebase_id': '/m/0c9ph5'},
{'id': 263, 'name': 'Carnivore', 'freebase_id': '/m/01lrl'},
{'id': 264, 'name': 'Human ear', 'freebase_id': '/m/039xj_'},
{'id': 265, 'name': 'Toy', 'freebase_id': '/m/0138tl'},
{'id': 266, 'name': 'Box', 'freebase_id': '/m/025dyy'},
{'id': 267, 'name': 'Truck', 'freebase_id': '/m/07r04'},
{'id': 268, 'name': 'Wheel', 'freebase_id': '/m/083wq'},
{'id': 269, 'name': 'Aircraft', 'freebase_id': '/m/0k5j'},
{'id': 270, 'name': 'Bus', 'freebase_id': '/m/01bjv'},
{'id': 271, 'name': 'Human mouth', 'freebase_id': '/m/0283dt1'},
{'id': 272, 'name': 'Sculpture', 'freebase_id': '/m/06msq'},
{'id': 273, 'name': 'Shirt', 'freebase_id': '/m/01n4qj'},
{'id': 274, 'name': 'Hat', 'freebase_id': '/m/02dl1y'},
{'id': 275, 'name': 'Vehicle registration plate', 'freebase_id': '/m/01jfm_'},
{'id': 276, 'name': 'Guitar', 'freebase_id': '/m/0342h'},
{'id': 277, 'name': 'Sun hat', 'freebase_id': '/m/02wbtzl'},
{'id': 278, 'name': 'Bottle', 'freebase_id': '/m/04dr76w'},
{'id': 279, 'name': 'Luggage and bags', 'freebase_id': '/m/0hf58v5'},
{'id': 280, 'name': 'Trousers', 'freebase_id': '/m/07mhn'},
{'id': 281, 'name': 'Bicycle wheel', 'freebase_id': '/m/01bqk0'},
{'id': 282, 'name': 'Suit', 'freebase_id': '/m/01xyhv'},
{'id': 283, 'name': 'Bowl', 'freebase_id': '/m/04kkgm'},
{'id': 284, 'name': 'Man', 'freebase_id': '/m/04yx4'},
{'id': 285, 'name': 'Flowerpot', 'freebase_id': '/m/0fm3zh'},
{'id': 286, 'name': 'Laptop', 'freebase_id': '/m/01c648'},
{'id': 287, 'name': 'Boy', 'freebase_id': '/m/01bl7v'},
{'id': 288, 'name': 'Picture frame', 'freebase_id': '/m/06z37_'},
{'id': 289, 'name': 'Bird', 'freebase_id': '/m/015p6'},
{'id': 290, 'name': 'Car', 'freebase_id': '/m/0k4j'},
{'id': 291, 'name': 'Shorts', 'freebase_id': '/m/01bfm9'},
{'id': 292, 'name': 'Woman', 'freebase_id': '/m/03bt1vf'},
{'id': 293, 'name': 'Platter', 'freebase_id': '/m/099ssp'},
{'id': 294, 'name': 'Tie', 'freebase_id': '/m/01rkbr'},
{'id': 295, 'name': 'Girl', 'freebase_id': '/m/05r655'},
{'id': 296, 'name': 'Skyscraper', 'freebase_id': '/m/079cl'},
{'id': 297, 'name': 'Person', 'freebase_id': '/m/01g317'},
{'id': 298, 'name': 'Flag', 'freebase_id': '/m/03120'},
{'id': 299, 'name': 'Jeans', 'freebase_id': '/m/0fly7'},
{'id': 300, 'name': 'Dress', 'freebase_id': '/m/01d40f'},
],
'kitti':[
{'id': 24, 'name': 'person'},
{'id': 25, 'name': 'rider'},
{'id': 26, 'name': 'car'},
{'id': 27, 'name': 'truck'},
{'id': 28, 'name': 'bus'},
{'id': 31, 'name': 'train'},
{'id': 32, 'name': 'motorcycle'},
{'id': 33, 'name': 'bicycle'},
],
'wilddash': [
{'id': 1, 'name': 'ego vehicle'},
{'id': 24, 'name': 'person'},
{'id': 25, 'name': 'rider'},
{'id': 26, 'name': 'car'},
{'id': 27, 'name': 'truck'},
{'id': 28, 'name': 'bus'},
{'id': 29, 'name': 'caravan'},
{'id': 30, 'name': 'trailer'},
{'id': 31, 'name': 'train'},
{'id': 32, 'name': 'motorcycle'},
{'id': 33, 'name': 'bicycle'},
{'id': 34, 'name': 'pickup'},
{'id': 35, 'name': 'van'},
]
} |
load("@io_bazel_rules_dotnet//dotnet:defs.bzl", "net_gac4", "nuget_package")
def packages():
nuget_package(
name = "npgsql",
package = "npgsql",
version = "4.0.3",
# sha256 = "4e1f91eb9f0c3dfb8e029edbc325175cd202455df3641bc16155ef422b6bfd6f",
core_lib = {
"netstandard2.0": "lib/netstandard2.0/Npgsql.dll",
},
net_lib = {
"net451": "lib/net451/Npgsql.dll",
},
mono_lib = "lib/net45/Npgsql.dll",
core_deps = {},
net_deps = {},
mono_deps = [],
core_files = {
"netstandard2.0": [
"lib/netstandard2.0/Npgsql.dll",
"lib/netstandard2.0/Npgsql.pdb",
"lib/netstandard2.0/Npgsql.xml",
],
},
net_files = {
"net451": [
"lib/net451/Npgsql.dll",
"lib/net451/Npgsql.pdb",
"lib/net451/Npgsql.xml",
],
},
mono_files = [
"lib/net45/Npgsql.dll",
"lib/net45/Npgsql.pdb",
"lib/net45/Npgsql.xml",
],
)
net_gac4(
name = "System.ComponentModel.DataAnnotations",
version = "4.0.0.0",
token = "31bf3856ad364e35",
)
### Generated by the tool
nuget_package(
name = "commandlineparser",
package = "commandlineparser",
version = "2.3.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.5/CommandLine.dll",
"netcoreapp2.1": "lib/netstandard1.5/CommandLine.dll",
},
net_lib = {
"net45": "lib/net45/CommandLine.dll",
"net451": "lib/net45/CommandLine.dll",
"net452": "lib/net45/CommandLine.dll",
"net46": "lib/net45/CommandLine.dll",
"net461": "lib/net45/CommandLine.dll",
"net462": "lib/net45/CommandLine.dll",
"net47": "lib/net45/CommandLine.dll",
"net471": "lib/net45/CommandLine.dll",
"net472": "lib/net45/CommandLine.dll",
"netstandard1.5": "lib/netstandard1.5/CommandLine.dll",
"netstandard1.6": "lib/netstandard1.5/CommandLine.dll",
"netstandard2.0": "lib/netstandard1.5/CommandLine.dll",
},
mono_lib = "lib/net45/CommandLine.dll",
net_deps = {
"net461": [
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.collections.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.console.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.diagnostics.debug.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.globalization.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.io.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.linq.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.linq.expressions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.reflection.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.reflection.extensions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.reflection.typeextensions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.resources.resourcemanager.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.runtime.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.runtime.extensions.dll",
],
"net462": [
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.collections.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.console.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.diagnostics.debug.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.globalization.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.io.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.linq.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.linq.expressions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.reflection.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.reflection.extensions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.reflection.typeextensions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.resources.resourcemanager.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.runtime.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.runtime.extensions.dll",
],
"net47": [
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.collections.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.console.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.diagnostics.debug.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.globalization.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.io.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.linq.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.linq.expressions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.reflection.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.reflection.extensions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.reflection.typeextensions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.resources.resourcemanager.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.runtime.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.runtime.extensions.dll",
],
"net471": [
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.collections.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.console.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.diagnostics.debug.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.globalization.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.io.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.linq.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.linq.expressions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.reflection.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.reflection.extensions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.reflection.typeextensions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.resources.resourcemanager.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.runtime.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.runtime.extensions.dll",
],
"net472": [
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.collections.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.console.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.diagnostics.debug.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.globalization.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.io.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.linq.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.linq.expressions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.reflection.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.reflection.extensions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.reflection.typeextensions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.resources.resourcemanager.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.runtime.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.runtime.extensions.dll",
],
},
mono_deps = [
"@io_bazel_rules_dotnet//dotnet/stdlib:system.collections.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib:system.console.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib:system.diagnostics.debug.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib:system.globalization.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib:system.io.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib:system.linq.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib:system.linq.expressions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib:system.reflection.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib:system.reflection.extensions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib:system.reflection.typeextensions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib:system.resources.resourcemanager.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib:system.runtime.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib:system.runtime.extensions.dll",
],
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.5/CommandLine.dll",
"lib/netstandard1.5/CommandLine.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.5/CommandLine.dll",
"lib/netstandard1.5/CommandLine.xml",
],
},
net_files = {
"net45": [
"lib/net45/CommandLine.dll",
"lib/net45/CommandLine.XML",
],
"net451": [
"lib/net45/CommandLine.dll",
"lib/net45/CommandLine.XML",
],
"net452": [
"lib/net45/CommandLine.dll",
"lib/net45/CommandLine.XML",
],
"net46": [
"lib/net45/CommandLine.dll",
"lib/net45/CommandLine.XML",
],
"net461": [
"lib/net45/CommandLine.dll",
"lib/net45/CommandLine.XML",
],
"net462": [
"lib/net45/CommandLine.dll",
"lib/net45/CommandLine.XML",
],
"net47": [
"lib/net45/CommandLine.dll",
"lib/net45/CommandLine.XML",
],
"net471": [
"lib/net45/CommandLine.dll",
"lib/net45/CommandLine.XML",
],
"net472": [
"lib/net45/CommandLine.dll",
"lib/net45/CommandLine.XML",
],
"netstandard1.5": [
"lib/netstandard1.5/CommandLine.dll",
"lib/netstandard1.5/CommandLine.xml",
],
"netstandard1.6": [
"lib/netstandard1.5/CommandLine.dll",
"lib/netstandard1.5/CommandLine.xml",
],
"netstandard2.0": [
"lib/netstandard1.5/CommandLine.dll",
"lib/netstandard1.5/CommandLine.xml",
],
},
mono_files = [
"lib/net45/CommandLine.dll",
"lib/net45/CommandLine.XML",
],
)
nuget_package(
name = "newtonsoft.json",
package = "newtonsoft.json",
version = "11.0.2",
core_lib = {
"netcoreapp2.0": "lib/netstandard2.0/Newtonsoft.Json.dll",
"netcoreapp2.1": "lib/netstandard2.0/Newtonsoft.Json.dll",
},
net_lib = {
"net45": "lib/net45/Newtonsoft.Json.dll",
"net451": "lib/net45/Newtonsoft.Json.dll",
"net452": "lib/net45/Newtonsoft.Json.dll",
"net46": "lib/net45/Newtonsoft.Json.dll",
"net461": "lib/net45/Newtonsoft.Json.dll",
"net462": "lib/net45/Newtonsoft.Json.dll",
"net47": "lib/net45/Newtonsoft.Json.dll",
"net471": "lib/net45/Newtonsoft.Json.dll",
"net472": "lib/net45/Newtonsoft.Json.dll",
"netstandard1.0": "lib/netstandard1.0/Newtonsoft.Json.dll",
"netstandard1.1": "lib/netstandard1.0/Newtonsoft.Json.dll",
"netstandard1.2": "lib/netstandard1.0/Newtonsoft.Json.dll",
"netstandard1.3": "lib/netstandard1.3/Newtonsoft.Json.dll",
"netstandard1.4": "lib/netstandard1.3/Newtonsoft.Json.dll",
"netstandard1.5": "lib/netstandard1.3/Newtonsoft.Json.dll",
"netstandard1.6": "lib/netstandard1.3/Newtonsoft.Json.dll",
"netstandard2.0": "lib/netstandard2.0/Newtonsoft.Json.dll",
},
mono_lib = "lib/net45/Newtonsoft.Json.dll",
core_files = {
"netcoreapp2.0": [
"lib/netstandard2.0/Newtonsoft.Json.dll",
"lib/netstandard2.0/Newtonsoft.Json.xml",
],
"netcoreapp2.1": [
"lib/netstandard2.0/Newtonsoft.Json.dll",
"lib/netstandard2.0/Newtonsoft.Json.xml",
],
},
net_files = {
"net45": [
"lib/net45/Newtonsoft.Json.dll",
"lib/net45/Newtonsoft.Json.xml",
],
"net451": [
"lib/net45/Newtonsoft.Json.dll",
"lib/net45/Newtonsoft.Json.xml",
],
"net452": [
"lib/net45/Newtonsoft.Json.dll",
"lib/net45/Newtonsoft.Json.xml",
],
"net46": [
"lib/net45/Newtonsoft.Json.dll",
"lib/net45/Newtonsoft.Json.xml",
],
"net461": [
"lib/net45/Newtonsoft.Json.dll",
"lib/net45/Newtonsoft.Json.xml",
],
"net462": [
"lib/net45/Newtonsoft.Json.dll",
"lib/net45/Newtonsoft.Json.xml",
],
"net47": [
"lib/net45/Newtonsoft.Json.dll",
"lib/net45/Newtonsoft.Json.xml",
],
"net471": [
"lib/net45/Newtonsoft.Json.dll",
"lib/net45/Newtonsoft.Json.xml",
],
"net472": [
"lib/net45/Newtonsoft.Json.dll",
"lib/net45/Newtonsoft.Json.xml",
],
"netstandard1.0": [
"lib/netstandard1.0/Newtonsoft.Json.dll",
"lib/netstandard1.0/Newtonsoft.Json.xml",
],
"netstandard1.1": [
"lib/netstandard1.0/Newtonsoft.Json.dll",
"lib/netstandard1.0/Newtonsoft.Json.xml",
],
"netstandard1.2": [
"lib/netstandard1.0/Newtonsoft.Json.dll",
"lib/netstandard1.0/Newtonsoft.Json.xml",
],
"netstandard1.3": [
"lib/netstandard1.3/Newtonsoft.Json.dll",
"lib/netstandard1.3/Newtonsoft.Json.xml",
],
"netstandard1.4": [
"lib/netstandard1.3/Newtonsoft.Json.dll",
"lib/netstandard1.3/Newtonsoft.Json.xml",
],
"netstandard1.5": [
"lib/netstandard1.3/Newtonsoft.Json.dll",
"lib/netstandard1.3/Newtonsoft.Json.xml",
],
"netstandard1.6": [
"lib/netstandard1.3/Newtonsoft.Json.dll",
"lib/netstandard1.3/Newtonsoft.Json.xml",
],
"netstandard2.0": [
"lib/netstandard2.0/Newtonsoft.Json.dll",
"lib/netstandard2.0/Newtonsoft.Json.xml",
],
},
mono_files = [
"lib/net45/Newtonsoft.Json.dll",
"lib/net45/Newtonsoft.Json.xml",
],
)
nuget_package(
name = "nuget.frameworks",
package = "nuget.frameworks",
version = "4.8.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.6/NuGet.Frameworks.dll",
"netcoreapp2.1": "lib/netstandard1.6/NuGet.Frameworks.dll",
},
net_lib = {
"net45": "lib/net40/NuGet.Frameworks.dll",
"net451": "lib/net40/NuGet.Frameworks.dll",
"net452": "lib/net40/NuGet.Frameworks.dll",
"net46": "lib/net46/NuGet.Frameworks.dll",
"net461": "lib/net46/NuGet.Frameworks.dll",
"net462": "lib/net46/NuGet.Frameworks.dll",
"net47": "lib/net46/NuGet.Frameworks.dll",
"net471": "lib/net46/NuGet.Frameworks.dll",
"net472": "lib/net46/NuGet.Frameworks.dll",
"netstandard1.6": "lib/netstandard1.6/NuGet.Frameworks.dll",
"netstandard2.0": "lib/netstandard1.6/NuGet.Frameworks.dll",
},
mono_lib = "lib/net46/NuGet.Frameworks.dll",
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.6/NuGet.Frameworks.dll",
"lib/netstandard1.6/NuGet.Frameworks.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.6/NuGet.Frameworks.dll",
"lib/netstandard1.6/NuGet.Frameworks.xml",
],
},
net_files = {
"net45": [
"lib/net40/NuGet.Frameworks.dll",
"lib/net40/NuGet.Frameworks.xml",
],
"net451": [
"lib/net40/NuGet.Frameworks.dll",
"lib/net40/NuGet.Frameworks.xml",
],
"net452": [
"lib/net40/NuGet.Frameworks.dll",
"lib/net40/NuGet.Frameworks.xml",
],
"net46": [
"lib/net46/NuGet.Frameworks.dll",
"lib/net46/NuGet.Frameworks.xml",
],
"net461": [
"lib/net46/NuGet.Frameworks.dll",
"lib/net46/NuGet.Frameworks.xml",
],
"net462": [
"lib/net46/NuGet.Frameworks.dll",
"lib/net46/NuGet.Frameworks.xml",
],
"net47": [
"lib/net46/NuGet.Frameworks.dll",
"lib/net46/NuGet.Frameworks.xml",
],
"net471": [
"lib/net46/NuGet.Frameworks.dll",
"lib/net46/NuGet.Frameworks.xml",
],
"net472": [
"lib/net46/NuGet.Frameworks.dll",
"lib/net46/NuGet.Frameworks.xml",
],
"netstandard1.6": [
"lib/netstandard1.6/NuGet.Frameworks.dll",
"lib/netstandard1.6/NuGet.Frameworks.xml",
],
"netstandard2.0": [
"lib/netstandard1.6/NuGet.Frameworks.dll",
"lib/netstandard1.6/NuGet.Frameworks.xml",
],
},
mono_files = [
"lib/net46/NuGet.Frameworks.dll",
"lib/net46/NuGet.Frameworks.xml",
],
)
nuget_package(
name = "nuget.common",
package = "nuget.common",
version = "4.8.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.6/NuGet.Common.dll",
"netcoreapp2.1": "lib/netstandard1.6/NuGet.Common.dll",
},
net_lib = {
"net46": "lib/net46/NuGet.Common.dll",
"net461": "lib/net46/NuGet.Common.dll",
"net462": "lib/net46/NuGet.Common.dll",
"net47": "lib/net46/NuGet.Common.dll",
"net471": "lib/net46/NuGet.Common.dll",
"net472": "lib/net46/NuGet.Common.dll",
"netstandard1.6": "lib/netstandard1.6/NuGet.Common.dll",
"netstandard2.0": "lib/netstandard1.6/NuGet.Common.dll",
},
mono_lib = "lib/net46/NuGet.Common.dll",
core_deps = {
"net46": [
"@nuget.frameworks//:net46_net",
],
"net461": [
"@nuget.frameworks//:net461_net",
],
"net462": [
"@nuget.frameworks//:net462_net",
],
"net47": [
"@nuget.frameworks//:net47_net",
],
"net471": [
"@nuget.frameworks//:net471_net",
],
"net472": [
"@nuget.frameworks//:net472_net",
],
"netstandard1.6": [
"@nuget.frameworks//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.frameworks//:netstandard2.0_net",
],
},
net_deps = {
"net46": [
"@nuget.frameworks//:net46_net",
],
"net461": [
"@nuget.frameworks//:net461_net",
],
"net462": [
"@nuget.frameworks//:net462_net",
],
"net47": [
"@nuget.frameworks//:net47_net",
],
"net471": [
"@nuget.frameworks//:net471_net",
],
"net472": [
"@nuget.frameworks//:net472_net",
],
"netstandard1.6": [
"@nuget.frameworks//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.frameworks//:netstandard2.0_net",
],
},
mono_deps = [
"@nuget.frameworks//:mono",
],
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.6/NuGet.Common.dll",
"lib/netstandard1.6/NuGet.Common.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.6/NuGet.Common.dll",
"lib/netstandard1.6/NuGet.Common.xml",
],
},
net_files = {
"net46": [
"lib/net46/NuGet.Common.dll",
"lib/net46/NuGet.Common.xml",
],
"net461": [
"lib/net46/NuGet.Common.dll",
"lib/net46/NuGet.Common.xml",
],
"net462": [
"lib/net46/NuGet.Common.dll",
"lib/net46/NuGet.Common.xml",
],
"net47": [
"lib/net46/NuGet.Common.dll",
"lib/net46/NuGet.Common.xml",
],
"net471": [
"lib/net46/NuGet.Common.dll",
"lib/net46/NuGet.Common.xml",
],
"net472": [
"lib/net46/NuGet.Common.dll",
"lib/net46/NuGet.Common.xml",
],
"netstandard1.6": [
"lib/netstandard1.6/NuGet.Common.dll",
"lib/netstandard1.6/NuGet.Common.xml",
],
"netstandard2.0": [
"lib/netstandard1.6/NuGet.Common.dll",
"lib/netstandard1.6/NuGet.Common.xml",
],
},
mono_files = [
"lib/net46/NuGet.Common.dll",
"lib/net46/NuGet.Common.xml",
],
)
nuget_package(
name = "nuget.configuration",
package = "nuget.configuration",
version = "4.8.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.6/NuGet.Configuration.dll",
"netcoreapp2.1": "lib/netstandard1.6/NuGet.Configuration.dll",
},
net_lib = {
"net46": "lib/net46/NuGet.Configuration.dll",
"net461": "lib/net46/NuGet.Configuration.dll",
"net462": "lib/net46/NuGet.Configuration.dll",
"net47": "lib/net46/NuGet.Configuration.dll",
"net471": "lib/net46/NuGet.Configuration.dll",
"net472": "lib/net46/NuGet.Configuration.dll",
"netstandard1.6": "lib/netstandard1.6/NuGet.Configuration.dll",
"netstandard2.0": "lib/netstandard1.6/NuGet.Configuration.dll",
},
mono_lib = "lib/net46/NuGet.Configuration.dll",
core_deps = {
"net46": [
"@nuget.common//:net46_net",
],
"net461": [
"@nuget.common//:net461_net",
],
"net462": [
"@nuget.common//:net462_net",
],
"net47": [
"@nuget.common//:net47_net",
],
"net471": [
"@nuget.common//:net471_net",
],
"net472": [
"@nuget.common//:net472_net",
],
"netstandard1.6": [
"@nuget.common//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.common//:netstandard2.0_net",
],
},
net_deps = {
"net46": [
"@nuget.common//:net46_net",
],
"net461": [
"@nuget.common//:net461_net",
],
"net462": [
"@nuget.common//:net462_net",
],
"net47": [
"@nuget.common//:net47_net",
],
"net471": [
"@nuget.common//:net471_net",
],
"net472": [
"@nuget.common//:net472_net",
],
"netstandard1.6": [
"@nuget.common//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.common//:netstandard2.0_net",
],
},
mono_deps = [
"@nuget.common//:mono",
],
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.6/NuGet.Configuration.dll",
"lib/netstandard1.6/NuGet.Configuration.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.6/NuGet.Configuration.dll",
"lib/netstandard1.6/NuGet.Configuration.xml",
],
},
net_files = {
"net46": [
"lib/net46/NuGet.Configuration.dll",
"lib/net46/NuGet.Configuration.xml",
],
"net461": [
"lib/net46/NuGet.Configuration.dll",
"lib/net46/NuGet.Configuration.xml",
],
"net462": [
"lib/net46/NuGet.Configuration.dll",
"lib/net46/NuGet.Configuration.xml",
],
"net47": [
"lib/net46/NuGet.Configuration.dll",
"lib/net46/NuGet.Configuration.xml",
],
"net471": [
"lib/net46/NuGet.Configuration.dll",
"lib/net46/NuGet.Configuration.xml",
],
"net472": [
"lib/net46/NuGet.Configuration.dll",
"lib/net46/NuGet.Configuration.xml",
],
"netstandard1.6": [
"lib/netstandard1.6/NuGet.Configuration.dll",
"lib/netstandard1.6/NuGet.Configuration.xml",
],
"netstandard2.0": [
"lib/netstandard1.6/NuGet.Configuration.dll",
"lib/netstandard1.6/NuGet.Configuration.xml",
],
},
mono_files = [
"lib/net46/NuGet.Configuration.dll",
"lib/net46/NuGet.Configuration.xml",
],
)
nuget_package(
name = "nuget.versioning",
package = "nuget.versioning",
version = "4.8.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.6/NuGet.Versioning.dll",
"netcoreapp2.1": "lib/netstandard1.6/NuGet.Versioning.dll",
},
net_lib = {
"net46": "lib/net46/NuGet.Versioning.dll",
"net461": "lib/net46/NuGet.Versioning.dll",
"net462": "lib/net46/NuGet.Versioning.dll",
"net47": "lib/net46/NuGet.Versioning.dll",
"net471": "lib/net46/NuGet.Versioning.dll",
"net472": "lib/net46/NuGet.Versioning.dll",
"netstandard1.6": "lib/netstandard1.6/NuGet.Versioning.dll",
"netstandard2.0": "lib/netstandard1.6/NuGet.Versioning.dll",
},
mono_lib = "lib/net46/NuGet.Versioning.dll",
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.6/NuGet.Versioning.dll",
"lib/netstandard1.6/NuGet.Versioning.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.6/NuGet.Versioning.dll",
"lib/netstandard1.6/NuGet.Versioning.xml",
],
},
net_files = {
"net46": [
"lib/net46/NuGet.Versioning.dll",
"lib/net46/NuGet.Versioning.xml",
],
"net461": [
"lib/net46/NuGet.Versioning.dll",
"lib/net46/NuGet.Versioning.xml",
],
"net462": [
"lib/net46/NuGet.Versioning.dll",
"lib/net46/NuGet.Versioning.xml",
],
"net47": [
"lib/net46/NuGet.Versioning.dll",
"lib/net46/NuGet.Versioning.xml",
],
"net471": [
"lib/net46/NuGet.Versioning.dll",
"lib/net46/NuGet.Versioning.xml",
],
"net472": [
"lib/net46/NuGet.Versioning.dll",
"lib/net46/NuGet.Versioning.xml",
],
"netstandard1.6": [
"lib/netstandard1.6/NuGet.Versioning.dll",
"lib/netstandard1.6/NuGet.Versioning.xml",
],
"netstandard2.0": [
"lib/netstandard1.6/NuGet.Versioning.dll",
"lib/netstandard1.6/NuGet.Versioning.xml",
],
},
mono_files = [
"lib/net46/NuGet.Versioning.dll",
"lib/net46/NuGet.Versioning.xml",
],
)
nuget_package(
name = "nuget.packaging.core",
package = "nuget.packaging.core",
version = "4.8.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.6/NuGet.Packaging.Core.dll",
"netcoreapp2.1": "lib/netstandard1.6/NuGet.Packaging.Core.dll",
},
net_lib = {
"net46": "lib/net46/NuGet.Packaging.Core.dll",
"net461": "lib/net46/NuGet.Packaging.Core.dll",
"net462": "lib/net46/NuGet.Packaging.Core.dll",
"net47": "lib/net46/NuGet.Packaging.Core.dll",
"net471": "lib/net46/NuGet.Packaging.Core.dll",
"net472": "lib/net46/NuGet.Packaging.Core.dll",
"netstandard1.6": "lib/netstandard1.6/NuGet.Packaging.Core.dll",
"netstandard2.0": "lib/netstandard1.6/NuGet.Packaging.Core.dll",
},
mono_lib = "lib/net46/NuGet.Packaging.Core.dll",
core_deps = {
"net46": [
"@nuget.common//:net46_net",
"@nuget.versioning//:net46_net",
],
"net461": [
"@nuget.common//:net461_net",
"@nuget.versioning//:net461_net",
],
"net462": [
"@nuget.common//:net462_net",
"@nuget.versioning//:net462_net",
],
"net47": [
"@nuget.common//:net47_net",
"@nuget.versioning//:net47_net",
],
"net471": [
"@nuget.common//:net471_net",
"@nuget.versioning//:net471_net",
],
"net472": [
"@nuget.common//:net472_net",
"@nuget.versioning//:net472_net",
],
"netstandard1.6": [
"@nuget.common//:netstandard1.6_net",
"@nuget.versioning//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.common//:netstandard2.0_net",
"@nuget.versioning//:netstandard2.0_net",
],
},
net_deps = {
"net46": [
"@nuget.common//:net46_net",
"@nuget.versioning//:net46_net",
],
"net461": [
"@nuget.common//:net461_net",
"@nuget.versioning//:net461_net",
],
"net462": [
"@nuget.common//:net462_net",
"@nuget.versioning//:net462_net",
],
"net47": [
"@nuget.common//:net47_net",
"@nuget.versioning//:net47_net",
],
"net471": [
"@nuget.common//:net471_net",
"@nuget.versioning//:net471_net",
],
"net472": [
"@nuget.common//:net472_net",
"@nuget.versioning//:net472_net",
],
"netstandard1.6": [
"@nuget.common//:netstandard1.6_net",
"@nuget.versioning//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.common//:netstandard2.0_net",
"@nuget.versioning//:netstandard2.0_net",
],
},
mono_deps = [
"@nuget.common//:mono",
"@nuget.versioning//:mono",
],
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.6/NuGet.Packaging.Core.dll",
"lib/netstandard1.6/NuGet.Packaging.Core.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.6/NuGet.Packaging.Core.dll",
"lib/netstandard1.6/NuGet.Packaging.Core.xml",
],
},
net_files = {
"net46": [
"lib/net46/NuGet.Packaging.Core.dll",
"lib/net46/NuGet.Packaging.Core.xml",
],
"net461": [
"lib/net46/NuGet.Packaging.Core.dll",
"lib/net46/NuGet.Packaging.Core.xml",
],
"net462": [
"lib/net46/NuGet.Packaging.Core.dll",
"lib/net46/NuGet.Packaging.Core.xml",
],
"net47": [
"lib/net46/NuGet.Packaging.Core.dll",
"lib/net46/NuGet.Packaging.Core.xml",
],
"net471": [
"lib/net46/NuGet.Packaging.Core.dll",
"lib/net46/NuGet.Packaging.Core.xml",
],
"net472": [
"lib/net46/NuGet.Packaging.Core.dll",
"lib/net46/NuGet.Packaging.Core.xml",
],
"netstandard1.6": [
"lib/netstandard1.6/NuGet.Packaging.Core.dll",
"lib/netstandard1.6/NuGet.Packaging.Core.xml",
],
"netstandard2.0": [
"lib/netstandard1.6/NuGet.Packaging.Core.dll",
"lib/netstandard1.6/NuGet.Packaging.Core.xml",
],
},
mono_files = [
"lib/net46/NuGet.Packaging.Core.dll",
"lib/net46/NuGet.Packaging.Core.xml",
],
)
nuget_package(
name = "nuget.packaging",
package = "nuget.packaging",
version = "4.8.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.6/NuGet.Packaging.dll",
"netcoreapp2.1": "lib/netstandard1.6/NuGet.Packaging.dll",
},
net_lib = {
"net46": "lib/net46/NuGet.Packaging.dll",
"net461": "lib/net46/NuGet.Packaging.dll",
"net462": "lib/net46/NuGet.Packaging.dll",
"net47": "lib/net46/NuGet.Packaging.dll",
"net471": "lib/net46/NuGet.Packaging.dll",
"net472": "lib/net46/NuGet.Packaging.dll",
"netstandard1.6": "lib/netstandard1.6/NuGet.Packaging.dll",
"netstandard2.0": "lib/netstandard1.6/NuGet.Packaging.dll",
},
mono_lib = "lib/net46/NuGet.Packaging.dll",
core_deps = {
"net46": [
"@nuget.packaging.core//:net46_net",
"@newtonsoft.json//:net46_net",
],
"net461": [
"@nuget.packaging.core//:net461_net",
"@newtonsoft.json//:net461_net",
],
"net462": [
"@nuget.packaging.core//:net462_net",
"@newtonsoft.json//:net462_net",
],
"net47": [
"@nuget.packaging.core//:net47_net",
"@newtonsoft.json//:net47_net",
],
"net471": [
"@nuget.packaging.core//:net471_net",
"@newtonsoft.json//:net471_net",
],
"net472": [
"@nuget.packaging.core//:net472_net",
"@newtonsoft.json//:net472_net",
],
"netstandard1.6": [
"@nuget.packaging.core//:netstandard1.6_net",
"@newtonsoft.json//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.packaging.core//:netstandard2.0_net",
"@newtonsoft.json//:netstandard2.0_net",
],
},
net_deps = {
"net46": [
"@nuget.packaging.core//:net46_net",
"@newtonsoft.json//:net46_net",
],
"net461": [
"@nuget.packaging.core//:net461_net",
"@newtonsoft.json//:net461_net",
],
"net462": [
"@nuget.packaging.core//:net462_net",
"@newtonsoft.json//:net462_net",
],
"net47": [
"@nuget.packaging.core//:net47_net",
"@newtonsoft.json//:net47_net",
],
"net471": [
"@nuget.packaging.core//:net471_net",
"@newtonsoft.json//:net471_net",
],
"net472": [
"@nuget.packaging.core//:net472_net",
"@newtonsoft.json//:net472_net",
],
"netstandard1.6": [
"@nuget.packaging.core//:netstandard1.6_net",
"@newtonsoft.json//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.packaging.core//:netstandard2.0_net",
"@newtonsoft.json//:netstandard2.0_net",
],
},
mono_deps = [
"@nuget.packaging.core//:mono",
"@newtonsoft.json//:mono",
],
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.6/NuGet.Packaging.dll",
"lib/netstandard1.6/NuGet.Packaging.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.6/NuGet.Packaging.dll",
"lib/netstandard1.6/NuGet.Packaging.xml",
],
},
net_files = {
"net46": [
"lib/net46/NuGet.Packaging.dll",
"lib/net46/NuGet.Packaging.xml",
],
"net461": [
"lib/net46/NuGet.Packaging.dll",
"lib/net46/NuGet.Packaging.xml",
],
"net462": [
"lib/net46/NuGet.Packaging.dll",
"lib/net46/NuGet.Packaging.xml",
],
"net47": [
"lib/net46/NuGet.Packaging.dll",
"lib/net46/NuGet.Packaging.xml",
],
"net471": [
"lib/net46/NuGet.Packaging.dll",
"lib/net46/NuGet.Packaging.xml",
],
"net472": [
"lib/net46/NuGet.Packaging.dll",
"lib/net46/NuGet.Packaging.xml",
],
"netstandard1.6": [
"lib/netstandard1.6/NuGet.Packaging.dll",
"lib/netstandard1.6/NuGet.Packaging.xml",
],
"netstandard2.0": [
"lib/netstandard1.6/NuGet.Packaging.dll",
"lib/netstandard1.6/NuGet.Packaging.xml",
],
},
mono_files = [
"lib/net46/NuGet.Packaging.dll",
"lib/net46/NuGet.Packaging.xml",
],
)
nuget_package(
name = "nuget.protocol",
package = "nuget.protocol",
version = "4.8.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.6/NuGet.Protocol.dll",
"netcoreapp2.1": "lib/netstandard1.6/NuGet.Protocol.dll",
},
net_lib = {
"net46": "lib/net46/NuGet.Protocol.dll",
"net461": "lib/net46/NuGet.Protocol.dll",
"net462": "lib/net46/NuGet.Protocol.dll",
"net47": "lib/net46/NuGet.Protocol.dll",
"net471": "lib/net46/NuGet.Protocol.dll",
"net472": "lib/net46/NuGet.Protocol.dll",
"netstandard1.6": "lib/netstandard1.6/NuGet.Protocol.dll",
"netstandard2.0": "lib/netstandard1.6/NuGet.Protocol.dll",
},
mono_lib = "lib/net46/NuGet.Protocol.dll",
core_deps = {
"net46": [
"@nuget.configuration//:net46_net",
"@nuget.packaging//:net46_net",
],
"net461": [
"@nuget.configuration//:net461_net",
"@nuget.packaging//:net461_net",
],
"net462": [
"@nuget.configuration//:net462_net",
"@nuget.packaging//:net462_net",
],
"net47": [
"@nuget.configuration//:net47_net",
"@nuget.packaging//:net47_net",
],
"net471": [
"@nuget.configuration//:net471_net",
"@nuget.packaging//:net471_net",
],
"net472": [
"@nuget.configuration//:net472_net",
"@nuget.packaging//:net472_net",
],
"netstandard1.6": [
"@nuget.configuration//:netstandard1.6_net",
"@nuget.packaging//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.configuration//:netstandard2.0_net",
"@nuget.packaging//:netstandard2.0_net",
],
},
net_deps = {
"net46": [
"@nuget.configuration//:net46_net",
"@nuget.packaging//:net46_net",
],
"net461": [
"@nuget.configuration//:net461_net",
"@nuget.packaging//:net461_net",
],
"net462": [
"@nuget.configuration//:net462_net",
"@nuget.packaging//:net462_net",
],
"net47": [
"@nuget.configuration//:net47_net",
"@nuget.packaging//:net47_net",
],
"net471": [
"@nuget.configuration//:net471_net",
"@nuget.packaging//:net471_net",
],
"net472": [
"@nuget.configuration//:net472_net",
"@nuget.packaging//:net472_net",
],
"netstandard1.6": [
"@nuget.configuration//:netstandard1.6_net",
"@nuget.packaging//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.configuration//:netstandard2.0_net",
"@nuget.packaging//:netstandard2.0_net",
],
},
mono_deps = [
"@nuget.configuration//:mono",
"@nuget.packaging//:mono",
],
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.6/NuGet.Protocol.dll",
"lib/netstandard1.6/NuGet.Protocol.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.6/NuGet.Protocol.dll",
"lib/netstandard1.6/NuGet.Protocol.xml",
],
},
net_files = {
"net46": [
"lib/net46/NuGet.Protocol.dll",
"lib/net46/NuGet.Protocol.xml",
],
"net461": [
"lib/net46/NuGet.Protocol.dll",
"lib/net46/NuGet.Protocol.xml",
],
"net462": [
"lib/net46/NuGet.Protocol.dll",
"lib/net46/NuGet.Protocol.xml",
],
"net47": [
"lib/net46/NuGet.Protocol.dll",
"lib/net46/NuGet.Protocol.xml",
],
"net471": [
"lib/net46/NuGet.Protocol.dll",
"lib/net46/NuGet.Protocol.xml",
],
"net472": [
"lib/net46/NuGet.Protocol.dll",
"lib/net46/NuGet.Protocol.xml",
],
"netstandard1.6": [
"lib/netstandard1.6/NuGet.Protocol.dll",
"lib/netstandard1.6/NuGet.Protocol.xml",
],
"netstandard2.0": [
"lib/netstandard1.6/NuGet.Protocol.dll",
"lib/netstandard1.6/NuGet.Protocol.xml",
],
},
mono_files = [
"lib/net46/NuGet.Protocol.dll",
"lib/net46/NuGet.Protocol.xml",
],
)
nuget_package(
name = "nuget.credentials",
package = "nuget.credentials",
version = "4.8.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.6/NuGet.Credentials.dll",
"netcoreapp2.1": "lib/netstandard1.6/NuGet.Credentials.dll",
},
net_lib = {
"net46": "lib/net46/NuGet.Credentials.dll",
"net461": "lib/net46/NuGet.Credentials.dll",
"net462": "lib/net46/NuGet.Credentials.dll",
"net47": "lib/net46/NuGet.Credentials.dll",
"net471": "lib/net46/NuGet.Credentials.dll",
"net472": "lib/net46/NuGet.Credentials.dll",
"netstandard1.6": "lib/netstandard1.6/NuGet.Credentials.dll",
"netstandard2.0": "lib/netstandard1.6/NuGet.Credentials.dll",
},
mono_lib = "lib/net46/NuGet.Credentials.dll",
core_deps = {
"net46": [
"@nuget.protocol//:net46_net",
],
"net461": [
"@nuget.protocol//:net461_net",
],
"net462": [
"@nuget.protocol//:net462_net",
],
"net47": [
"@nuget.protocol//:net47_net",
],
"net471": [
"@nuget.protocol//:net471_net",
],
"net472": [
"@nuget.protocol//:net472_net",
],
"netstandard1.6": [
"@nuget.protocol//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.protocol//:netstandard2.0_net",
],
},
net_deps = {
"net46": [
"@nuget.protocol//:net46_net",
],
"net461": [
"@nuget.protocol//:net461_net",
],
"net462": [
"@nuget.protocol//:net462_net",
],
"net47": [
"@nuget.protocol//:net47_net",
],
"net471": [
"@nuget.protocol//:net471_net",
],
"net472": [
"@nuget.protocol//:net472_net",
],
"netstandard1.6": [
"@nuget.protocol//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.protocol//:netstandard2.0_net",
],
},
mono_deps = [
"@nuget.protocol//:mono",
],
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.6/NuGet.Credentials.dll",
],
"netcoreapp2.1": [
"lib/netstandard1.6/NuGet.Credentials.dll",
],
},
net_files = {
"net46": [
"lib/net46/NuGet.Credentials.dll",
],
"net461": [
"lib/net46/NuGet.Credentials.dll",
],
"net462": [
"lib/net46/NuGet.Credentials.dll",
],
"net47": [
"lib/net46/NuGet.Credentials.dll",
],
"net471": [
"lib/net46/NuGet.Credentials.dll",
],
"net472": [
"lib/net46/NuGet.Credentials.dll",
],
"netstandard1.6": [
"lib/netstandard1.6/NuGet.Credentials.dll",
],
"netstandard2.0": [
"lib/netstandard1.6/NuGet.Credentials.dll",
],
},
mono_files = [
"lib/net46/NuGet.Credentials.dll",
],
)
nuget_package(
name = "nuget.resolver",
package = "nuget.resolver",
version = "4.8.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.6/NuGet.Resolver.dll",
"netcoreapp2.1": "lib/netstandard1.6/NuGet.Resolver.dll",
},
net_lib = {
"net46": "lib/net46/NuGet.Resolver.dll",
"net461": "lib/net46/NuGet.Resolver.dll",
"net462": "lib/net46/NuGet.Resolver.dll",
"net47": "lib/net46/NuGet.Resolver.dll",
"net471": "lib/net46/NuGet.Resolver.dll",
"net472": "lib/net46/NuGet.Resolver.dll",
"netstandard1.6": "lib/netstandard1.6/NuGet.Resolver.dll",
"netstandard2.0": "lib/netstandard1.6/NuGet.Resolver.dll",
},
mono_lib = "lib/net46/NuGet.Resolver.dll",
core_deps = {
"net46": [
"@nuget.protocol//:net46_net",
],
"net461": [
"@nuget.protocol//:net461_net",
],
"net462": [
"@nuget.protocol//:net462_net",
],
"net47": [
"@nuget.protocol//:net47_net",
],
"net471": [
"@nuget.protocol//:net471_net",
],
"net472": [
"@nuget.protocol//:net472_net",
],
"netstandard1.6": [
"@nuget.protocol//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.protocol//:netstandard2.0_net",
],
},
net_deps = {
"net46": [
"@nuget.protocol//:net46_net",
],
"net461": [
"@nuget.protocol//:net461_net",
],
"net462": [
"@nuget.protocol//:net462_net",
],
"net47": [
"@nuget.protocol//:net47_net",
],
"net471": [
"@nuget.protocol//:net471_net",
],
"net472": [
"@nuget.protocol//:net472_net",
],
"netstandard1.6": [
"@nuget.protocol//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.protocol//:netstandard2.0_net",
],
},
mono_deps = [
"@nuget.protocol//:mono",
],
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.6/NuGet.Resolver.dll",
"lib/netstandard1.6/NuGet.Resolver.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.6/NuGet.Resolver.dll",
"lib/netstandard1.6/NuGet.Resolver.xml",
],
},
net_files = {
"net46": [
"lib/net46/NuGet.Resolver.dll",
"lib/net46/NuGet.Resolver.xml",
],
"net461": [
"lib/net46/NuGet.Resolver.dll",
"lib/net46/NuGet.Resolver.xml",
],
"net462": [
"lib/net46/NuGet.Resolver.dll",
"lib/net46/NuGet.Resolver.xml",
],
"net47": [
"lib/net46/NuGet.Resolver.dll",
"lib/net46/NuGet.Resolver.xml",
],
"net471": [
"lib/net46/NuGet.Resolver.dll",
"lib/net46/NuGet.Resolver.xml",
],
"net472": [
"lib/net46/NuGet.Resolver.dll",
"lib/net46/NuGet.Resolver.xml",
],
"netstandard1.6": [
"lib/netstandard1.6/NuGet.Resolver.dll",
"lib/netstandard1.6/NuGet.Resolver.xml",
],
"netstandard2.0": [
"lib/netstandard1.6/NuGet.Resolver.dll",
"lib/netstandard1.6/NuGet.Resolver.xml",
],
},
mono_files = [
"lib/net46/NuGet.Resolver.dll",
"lib/net46/NuGet.Resolver.xml",
],
)
nuget_package(
name = "nuget.librarymodel",
package = "nuget.librarymodel",
version = "4.8.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.6/NuGet.LibraryModel.dll",
"netcoreapp2.1": "lib/netstandard1.6/NuGet.LibraryModel.dll",
},
net_lib = {
"net46": "lib/net46/NuGet.LibraryModel.dll",
"net461": "lib/net46/NuGet.LibraryModel.dll",
"net462": "lib/net46/NuGet.LibraryModel.dll",
"net47": "lib/net46/NuGet.LibraryModel.dll",
"net471": "lib/net46/NuGet.LibraryModel.dll",
"net472": "lib/net46/NuGet.LibraryModel.dll",
"netstandard1.6": "lib/netstandard1.6/NuGet.LibraryModel.dll",
"netstandard2.0": "lib/netstandard1.6/NuGet.LibraryModel.dll",
},
mono_lib = "lib/net46/NuGet.LibraryModel.dll",
core_deps = {
"net46": [
"@nuget.common//:net46_net",
"@nuget.versioning//:net46_net",
],
"net461": [
"@nuget.common//:net461_net",
"@nuget.versioning//:net461_net",
],
"net462": [
"@nuget.common//:net462_net",
"@nuget.versioning//:net462_net",
],
"net47": [
"@nuget.common//:net47_net",
"@nuget.versioning//:net47_net",
],
"net471": [
"@nuget.common//:net471_net",
"@nuget.versioning//:net471_net",
],
"net472": [
"@nuget.common//:net472_net",
"@nuget.versioning//:net472_net",
],
"netstandard1.6": [
"@nuget.common//:netstandard1.6_net",
"@nuget.versioning//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.common//:netstandard2.0_net",
"@nuget.versioning//:netstandard2.0_net",
],
},
net_deps = {
"net46": [
"@nuget.common//:net46_net",
"@nuget.versioning//:net46_net",
],
"net461": [
"@nuget.common//:net461_net",
"@nuget.versioning//:net461_net",
],
"net462": [
"@nuget.common//:net462_net",
"@nuget.versioning//:net462_net",
],
"net47": [
"@nuget.common//:net47_net",
"@nuget.versioning//:net47_net",
],
"net471": [
"@nuget.common//:net471_net",
"@nuget.versioning//:net471_net",
],
"net472": [
"@nuget.common//:net472_net",
"@nuget.versioning//:net472_net",
],
"netstandard1.6": [
"@nuget.common//:netstandard1.6_net",
"@nuget.versioning//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.common//:netstandard2.0_net",
"@nuget.versioning//:netstandard2.0_net",
],
},
mono_deps = [
"@nuget.common//:mono",
"@nuget.versioning//:mono",
],
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.6/NuGet.LibraryModel.dll",
"lib/netstandard1.6/NuGet.LibraryModel.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.6/NuGet.LibraryModel.dll",
"lib/netstandard1.6/NuGet.LibraryModel.xml",
],
},
net_files = {
"net46": [
"lib/net46/NuGet.LibraryModel.dll",
"lib/net46/NuGet.LibraryModel.xml",
],
"net461": [
"lib/net46/NuGet.LibraryModel.dll",
"lib/net46/NuGet.LibraryModel.xml",
],
"net462": [
"lib/net46/NuGet.LibraryModel.dll",
"lib/net46/NuGet.LibraryModel.xml",
],
"net47": [
"lib/net46/NuGet.LibraryModel.dll",
"lib/net46/NuGet.LibraryModel.xml",
],
"net471": [
"lib/net46/NuGet.LibraryModel.dll",
"lib/net46/NuGet.LibraryModel.xml",
],
"net472": [
"lib/net46/NuGet.LibraryModel.dll",
"lib/net46/NuGet.LibraryModel.xml",
],
"netstandard1.6": [
"lib/netstandard1.6/NuGet.LibraryModel.dll",
"lib/netstandard1.6/NuGet.LibraryModel.xml",
],
"netstandard2.0": [
"lib/netstandard1.6/NuGet.LibraryModel.dll",
"lib/netstandard1.6/NuGet.LibraryModel.xml",
],
},
mono_files = [
"lib/net46/NuGet.LibraryModel.dll",
"lib/net46/NuGet.LibraryModel.xml",
],
)
nuget_package(
name = "nuget.dependencyresolver.core",
package = "nuget.dependencyresolver.core",
version = "4.8.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.6/NuGet.DependencyResolver.Core.dll",
"netcoreapp2.1": "lib/netstandard1.6/NuGet.DependencyResolver.Core.dll",
},
net_lib = {
"net46": "lib/net46/NuGet.DependencyResolver.Core.dll",
"net461": "lib/net46/NuGet.DependencyResolver.Core.dll",
"net462": "lib/net46/NuGet.DependencyResolver.Core.dll",
"net47": "lib/net46/NuGet.DependencyResolver.Core.dll",
"net471": "lib/net46/NuGet.DependencyResolver.Core.dll",
"net472": "lib/net46/NuGet.DependencyResolver.Core.dll",
"netstandard1.6": "lib/netstandard1.6/NuGet.DependencyResolver.Core.dll",
"netstandard2.0": "lib/netstandard1.6/NuGet.DependencyResolver.Core.dll",
},
mono_lib = "lib/net46/NuGet.DependencyResolver.Core.dll",
core_deps = {
"net46": [
"@nuget.librarymodel//:net46_net",
"@nuget.protocol//:net46_net",
],
"net461": [
"@nuget.librarymodel//:net461_net",
"@nuget.protocol//:net461_net",
],
"net462": [
"@nuget.librarymodel//:net462_net",
"@nuget.protocol//:net462_net",
],
"net47": [
"@nuget.librarymodel//:net47_net",
"@nuget.protocol//:net47_net",
],
"net471": [
"@nuget.librarymodel//:net471_net",
"@nuget.protocol//:net471_net",
],
"net472": [
"@nuget.librarymodel//:net472_net",
"@nuget.protocol//:net472_net",
],
"netstandard1.6": [
"@nuget.librarymodel//:netstandard1.6_net",
"@nuget.protocol//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.librarymodel//:netstandard2.0_net",
"@nuget.protocol//:netstandard2.0_net",
],
},
net_deps = {
"net46": [
"@nuget.librarymodel//:net46_net",
"@nuget.protocol//:net46_net",
],
"net461": [
"@nuget.librarymodel//:net461_net",
"@nuget.protocol//:net461_net",
],
"net462": [
"@nuget.librarymodel//:net462_net",
"@nuget.protocol//:net462_net",
],
"net47": [
"@nuget.librarymodel//:net47_net",
"@nuget.protocol//:net47_net",
],
"net471": [
"@nuget.librarymodel//:net471_net",
"@nuget.protocol//:net471_net",
],
"net472": [
"@nuget.librarymodel//:net472_net",
"@nuget.protocol//:net472_net",
],
"netstandard1.6": [
"@nuget.librarymodel//:netstandard1.6_net",
"@nuget.protocol//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.librarymodel//:netstandard2.0_net",
"@nuget.protocol//:netstandard2.0_net",
],
},
mono_deps = [
"@nuget.librarymodel//:mono",
"@nuget.protocol//:mono",
],
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.6/NuGet.DependencyResolver.Core.dll",
"lib/netstandard1.6/NuGet.DependencyResolver.Core.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.6/NuGet.DependencyResolver.Core.dll",
"lib/netstandard1.6/NuGet.DependencyResolver.Core.xml",
],
},
net_files = {
"net46": [
"lib/net46/NuGet.DependencyResolver.Core.dll",
"lib/net46/NuGet.DependencyResolver.Core.xml",
],
"net461": [
"lib/net46/NuGet.DependencyResolver.Core.dll",
"lib/net46/NuGet.DependencyResolver.Core.xml",
],
"net462": [
"lib/net46/NuGet.DependencyResolver.Core.dll",
"lib/net46/NuGet.DependencyResolver.Core.xml",
],
"net47": [
"lib/net46/NuGet.DependencyResolver.Core.dll",
"lib/net46/NuGet.DependencyResolver.Core.xml",
],
"net471": [
"lib/net46/NuGet.DependencyResolver.Core.dll",
"lib/net46/NuGet.DependencyResolver.Core.xml",
],
"net472": [
"lib/net46/NuGet.DependencyResolver.Core.dll",
"lib/net46/NuGet.DependencyResolver.Core.xml",
],
"netstandard1.6": [
"lib/netstandard1.6/NuGet.DependencyResolver.Core.dll",
"lib/netstandard1.6/NuGet.DependencyResolver.Core.xml",
],
"netstandard2.0": [
"lib/netstandard1.6/NuGet.DependencyResolver.Core.dll",
"lib/netstandard1.6/NuGet.DependencyResolver.Core.xml",
],
},
mono_files = [
"lib/net46/NuGet.DependencyResolver.Core.dll",
"lib/net46/NuGet.DependencyResolver.Core.xml",
],
)
nuget_package(
name = "nuget.projectmodel",
package = "nuget.projectmodel",
version = "4.8.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.6/NuGet.ProjectModel.dll",
"netcoreapp2.1": "lib/netstandard1.6/NuGet.ProjectModel.dll",
},
net_lib = {
"net46": "lib/net46/NuGet.ProjectModel.dll",
"net461": "lib/net46/NuGet.ProjectModel.dll",
"net462": "lib/net46/NuGet.ProjectModel.dll",
"net47": "lib/net46/NuGet.ProjectModel.dll",
"net471": "lib/net46/NuGet.ProjectModel.dll",
"net472": "lib/net46/NuGet.ProjectModel.dll",
"netstandard1.6": "lib/netstandard1.6/NuGet.ProjectModel.dll",
"netstandard2.0": "lib/netstandard1.6/NuGet.ProjectModel.dll",
},
mono_lib = "lib/net46/NuGet.ProjectModel.dll",
core_deps = {
"net46": [
"@nuget.dependencyresolver.core//:net46_net",
],
"net461": [
"@nuget.dependencyresolver.core//:net461_net",
],
"net462": [
"@nuget.dependencyresolver.core//:net462_net",
],
"net47": [
"@nuget.dependencyresolver.core//:net47_net",
],
"net471": [
"@nuget.dependencyresolver.core//:net471_net",
],
"net472": [
"@nuget.dependencyresolver.core//:net472_net",
],
"netstandard1.6": [
"@nuget.dependencyresolver.core//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.dependencyresolver.core//:netstandard2.0_net",
],
},
net_deps = {
"net46": [
"@nuget.dependencyresolver.core//:net46_net",
],
"net461": [
"@nuget.dependencyresolver.core//:net461_net",
],
"net462": [
"@nuget.dependencyresolver.core//:net462_net",
],
"net47": [
"@nuget.dependencyresolver.core//:net47_net",
],
"net471": [
"@nuget.dependencyresolver.core//:net471_net",
],
"net472": [
"@nuget.dependencyresolver.core//:net472_net",
],
"netstandard1.6": [
"@nuget.dependencyresolver.core//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.dependencyresolver.core//:netstandard2.0_net",
],
},
mono_deps = [
"@nuget.dependencyresolver.core//:mono",
],
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.6/NuGet.ProjectModel.dll",
"lib/netstandard1.6/NuGet.ProjectModel.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.6/NuGet.ProjectModel.dll",
"lib/netstandard1.6/NuGet.ProjectModel.xml",
],
},
net_files = {
"net46": [
"lib/net46/NuGet.ProjectModel.dll",
"lib/net46/NuGet.ProjectModel.xml",
],
"net461": [
"lib/net46/NuGet.ProjectModel.dll",
"lib/net46/NuGet.ProjectModel.xml",
],
"net462": [
"lib/net46/NuGet.ProjectModel.dll",
"lib/net46/NuGet.ProjectModel.xml",
],
"net47": [
"lib/net46/NuGet.ProjectModel.dll",
"lib/net46/NuGet.ProjectModel.xml",
],
"net471": [
"lib/net46/NuGet.ProjectModel.dll",
"lib/net46/NuGet.ProjectModel.xml",
],
"net472": [
"lib/net46/NuGet.ProjectModel.dll",
"lib/net46/NuGet.ProjectModel.xml",
],
"netstandard1.6": [
"lib/netstandard1.6/NuGet.ProjectModel.dll",
"lib/netstandard1.6/NuGet.ProjectModel.xml",
],
"netstandard2.0": [
"lib/netstandard1.6/NuGet.ProjectModel.dll",
"lib/netstandard1.6/NuGet.ProjectModel.xml",
],
},
mono_files = [
"lib/net46/NuGet.ProjectModel.dll",
"lib/net46/NuGet.ProjectModel.xml",
],
)
nuget_package(
name = "nuget.commands",
package = "nuget.commands",
version = "4.8.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.6/NuGet.Commands.dll",
"netcoreapp2.1": "lib/netstandard1.6/NuGet.Commands.dll",
},
net_lib = {
"net46": "lib/net46/NuGet.Commands.dll",
"net461": "lib/net46/NuGet.Commands.dll",
"net462": "lib/net46/NuGet.Commands.dll",
"net47": "lib/net46/NuGet.Commands.dll",
"net471": "lib/net46/NuGet.Commands.dll",
"net472": "lib/net46/NuGet.Commands.dll",
"netstandard1.6": "lib/netstandard1.6/NuGet.Commands.dll",
"netstandard2.0": "lib/netstandard1.6/NuGet.Commands.dll",
},
mono_lib = "lib/net46/NuGet.Commands.dll",
core_deps = {
"net46": [
"@nuget.credentials//:net46_net",
"@nuget.projectmodel//:net46_net",
],
"net461": [
"@nuget.credentials//:net461_net",
"@nuget.projectmodel//:net461_net",
],
"net462": [
"@nuget.credentials//:net462_net",
"@nuget.projectmodel//:net462_net",
],
"net47": [
"@nuget.credentials//:net47_net",
"@nuget.projectmodel//:net47_net",
],
"net471": [
"@nuget.credentials//:net471_net",
"@nuget.projectmodel//:net471_net",
],
"net472": [
"@nuget.credentials//:net472_net",
"@nuget.projectmodel//:net472_net",
],
"netstandard1.6": [
"@nuget.credentials//:netstandard1.6_net",
"@nuget.projectmodel//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.credentials//:netstandard2.0_net",
"@nuget.projectmodel//:netstandard2.0_net",
],
},
net_deps = {
"net46": [
"@nuget.credentials//:net46_net",
"@nuget.projectmodel//:net46_net",
],
"net461": [
"@nuget.credentials//:net461_net",
"@nuget.projectmodel//:net461_net",
],
"net462": [
"@nuget.credentials//:net462_net",
"@nuget.projectmodel//:net462_net",
],
"net47": [
"@nuget.credentials//:net47_net",
"@nuget.projectmodel//:net47_net",
],
"net471": [
"@nuget.credentials//:net471_net",
"@nuget.projectmodel//:net471_net",
],
"net472": [
"@nuget.credentials//:net472_net",
"@nuget.projectmodel//:net472_net",
],
"netstandard1.6": [
"@nuget.credentials//:netstandard1.6_net",
"@nuget.projectmodel//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.credentials//:netstandard2.0_net",
"@nuget.projectmodel//:netstandard2.0_net",
],
},
mono_deps = [
"@nuget.credentials//:mono",
"@nuget.projectmodel//:mono",
],
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.6/NuGet.Commands.dll",
"lib/netstandard1.6/NuGet.Commands.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.6/NuGet.Commands.dll",
"lib/netstandard1.6/NuGet.Commands.xml",
],
},
net_files = {
"net46": [
"lib/net46/NuGet.Commands.dll",
"lib/net46/NuGet.Commands.xml",
],
"net461": [
"lib/net46/NuGet.Commands.dll",
"lib/net46/NuGet.Commands.xml",
],
"net462": [
"lib/net46/NuGet.Commands.dll",
"lib/net46/NuGet.Commands.xml",
],
"net47": [
"lib/net46/NuGet.Commands.dll",
"lib/net46/NuGet.Commands.xml",
],
"net471": [
"lib/net46/NuGet.Commands.dll",
"lib/net46/NuGet.Commands.xml",
],
"net472": [
"lib/net46/NuGet.Commands.dll",
"lib/net46/NuGet.Commands.xml",
],
"netstandard1.6": [
"lib/netstandard1.6/NuGet.Commands.dll",
"lib/netstandard1.6/NuGet.Commands.xml",
],
"netstandard2.0": [
"lib/netstandard1.6/NuGet.Commands.dll",
"lib/netstandard1.6/NuGet.Commands.xml",
],
},
mono_files = [
"lib/net46/NuGet.Commands.dll",
"lib/net46/NuGet.Commands.xml",
],
)
nuget_package(
name = "microsoft.web.xdt",
package = "microsoft.web.xdt",
version = "2.1.2",
net_lib = {
"net45": "lib/net40/Microsoft.Web.XmlTransform.dll",
"net451": "lib/net40/Microsoft.Web.XmlTransform.dll",
"net452": "lib/net40/Microsoft.Web.XmlTransform.dll",
"net46": "lib/net40/Microsoft.Web.XmlTransform.dll",
"net461": "lib/net40/Microsoft.Web.XmlTransform.dll",
"net462": "lib/net40/Microsoft.Web.XmlTransform.dll",
"net47": "lib/net40/Microsoft.Web.XmlTransform.dll",
"net471": "lib/net40/Microsoft.Web.XmlTransform.dll",
"net472": "lib/net40/Microsoft.Web.XmlTransform.dll",
},
mono_lib = "lib/net40/Microsoft.Web.XmlTransform.dll",
net_files = {
"net45": [
"lib/net40/Microsoft.Web.XmlTransform.dll",
],
"net451": [
"lib/net40/Microsoft.Web.XmlTransform.dll",
],
"net452": [
"lib/net40/Microsoft.Web.XmlTransform.dll",
],
"net46": [
"lib/net40/Microsoft.Web.XmlTransform.dll",
],
"net461": [
"lib/net40/Microsoft.Web.XmlTransform.dll",
],
"net462": [
"lib/net40/Microsoft.Web.XmlTransform.dll",
],
"net47": [
"lib/net40/Microsoft.Web.XmlTransform.dll",
],
"net471": [
"lib/net40/Microsoft.Web.XmlTransform.dll",
],
"net472": [
"lib/net40/Microsoft.Web.XmlTransform.dll",
],
},
mono_files = [
"lib/net40/Microsoft.Web.XmlTransform.dll",
],
)
nuget_package(
name = "nuget.packagemanagement",
package = "nuget.packagemanagement",
version = "4.8.0",
net_lib = {
"net46": "lib/net46/NuGet.PackageManagement.dll",
"net461": "lib/net46/NuGet.PackageManagement.dll",
"net462": "lib/net46/NuGet.PackageManagement.dll",
"net47": "lib/net46/NuGet.PackageManagement.dll",
"net471": "lib/net46/NuGet.PackageManagement.dll",
"net472": "lib/net46/NuGet.PackageManagement.dll",
},
mono_lib = "lib/net46/NuGet.PackageManagement.dll",
net_deps = {
"net46": [
"@nuget.commands//:net46_net",
"@nuget.resolver//:net46_net",
"@microsoft.web.xdt//:net46_net",
],
"net461": [
"@nuget.commands//:net461_net",
"@nuget.resolver//:net461_net",
"@microsoft.web.xdt//:net461_net",
],
"net462": [
"@nuget.commands//:net462_net",
"@nuget.resolver//:net462_net",
"@microsoft.web.xdt//:net462_net",
],
"net47": [
"@nuget.commands//:net47_net",
"@nuget.resolver//:net47_net",
"@microsoft.web.xdt//:net47_net",
],
"net471": [
"@nuget.commands//:net471_net",
"@nuget.resolver//:net471_net",
"@microsoft.web.xdt//:net471_net",
],
"net472": [
"@nuget.commands//:net472_net",
"@nuget.resolver//:net472_net",
"@microsoft.web.xdt//:net472_net",
],
},
mono_deps = [
"@nuget.commands//:mono",
"@nuget.resolver//:mono",
"@microsoft.web.xdt//:mono",
],
net_files = {
"net46": [
"lib/net46/NuGet.PackageManagement.dll",
"lib/net46/NuGet.PackageManagement.xml",
],
"net461": [
"lib/net46/NuGet.PackageManagement.dll",
"lib/net46/NuGet.PackageManagement.xml",
],
"net462": [
"lib/net46/NuGet.PackageManagement.dll",
"lib/net46/NuGet.PackageManagement.xml",
],
"net47": [
"lib/net46/NuGet.PackageManagement.dll",
"lib/net46/NuGet.PackageManagement.xml",
],
"net471": [
"lib/net46/NuGet.PackageManagement.dll",
"lib/net46/NuGet.PackageManagement.xml",
],
"net472": [
"lib/net46/NuGet.PackageManagement.dll",
"lib/net46/NuGet.PackageManagement.xml",
],
},
mono_files = [
"lib/net46/NuGet.PackageManagement.dll",
"lib/net46/NuGet.PackageManagement.xml",
],
)
|
aihub_dialog_datasets = {
"train": {
"clean": ["data/Training"]
}
}
librispeech_datasets = {
"train": {
"clean": ["LibriSpeech/train-clean-100", "LibriSpeech/train-clean-360"],
"other": ["LibriSpeech/train-other-500"]
},
"test": {
"clean": ["LibriSpeech/test-clean"],
"other": ["LibriSpeech/test-other"]
},
"dev": {
"clean": ["LibriSpeech/dev-clean"],
"other": ["LibriSpeech/dev-other"]
},
}
libritts_datasets = {
"train": {
"clean": ["LibriTTS/train-clean-100", "LibriTTS/train-clean-360"],
"other": ["LibriTTS/train-other-500"]
},
"test": {
"clean": ["LibriTTS/test-clean"],
"other": ["LibriTTS/test-other"]
},
"dev": {
"clean": ["LibriTTS/dev-clean"],
"other": ["LibriTTS/dev-other"]
},
}
voxceleb_datasets = {
"voxceleb1" : {
"train": ["VoxCeleb1/wav"],
"test": ["VoxCeleb1/test_wav"]
},
"voxceleb2" : {
"train": ["VoxCeleb2/dev/aac"],
"test": ["VoxCeleb2/test_wav"]
}
}
other_datasets = [
"LJSpeech-1.1",
"VCTK-Corpus/wav48",
]
anglophone_nationalites = ["australia", "canada", "ireland", "uk", "usa"]
|
def matrix_script():
first_multiple_input = input().split()
n = int(first_multiple_input[0])
m = int(first_multiple_input[1])
matrix = []
for _ in range(n):
matrix_item = input()
matrix.append(matrix_item)
ref = []
for i in range(m):
for j in range(n):
ref.append(matrix[j][i])
flag =0
for i in range(len(ref)):
while str.isalnum(ref[i]) and flag ==0 :
first_alpha_index = ref.index(ref[i])
flag =1
break
for i in range(len(ref)):
while str.isalnum(ref[i]) :
last_alpha_index = ref.index(ref[i])
break
final = []
for i in range(0, first_alpha_index):
final.append(ref[i])
for i in range(first_alpha_index,last_alpha_index+1):
while str.isalnum(ref[i]):
final.append(ref[i])
break
else:
while str.isspace(final[-1]):
break
else:
final.append(" ")
for i in range(last_alpha_index+1, len(ref)):
final.append(ref[i])
print("".join(final))
matrix_script() |
'''
from sklearn.cluster import KMeans
from sklearn.preprocessing import StandardScaler
from sklearn.preprocessing import MinMaxScaler
import numpy as np
import logging
def calculate_wcss(data):
wcss = []
scaler = MinMaxScaler()
data = scaler.fit_transform(data)
for n in range(2, 21):
kmeans = KMeans(n_clusters=n)
kmeans.fit(X=data)
logging.debug("KMeans " + str(n) + " clusters WCSS: " + str(round(kmeans.inertia_, 4)))
wcss.append(kmeans.inertia_)
return wcss
def optimal_number_of_clusters(wcss):
x1, y1 = 2, wcss[0]
x2, y2 = 20, wcss[len(wcss)-1]
distances = []
for i in range(len(wcss)):
x0 = i+2
y0 = wcss[i]
numerator = abs((y2-y1)*x0 - (x2-x1)*y0 + x2*y1 - y2*x1)
denominator = np.sqrt((y2 - y1)**2 + (x2 - x1)**2)
distances.append(numerator/denominator)
return distances.index(max(distances)) + 2
def get_optimal_n_cluster(data):
return optimal_number_of_clusters(calculate_wcss(data))
''' |
# -*- coding: UTF-8-*-
def enumerate_fn():
'''enumerate是python内置函数:获取每个元素的索引和值
:return:打印每个元素的索引和值
'''
list = [10,29,30,41,50]
for index, value in enumerate(list,0):
print (index,value)
enumerate_fn()
|
class Solution:
def maximalSquare(self, matrix: List[List[str]]) -> int:
row = len(matrix)
col = len(matrix[0])
res = 0
dp = [[0 for i in range(col+1)] for j in range(row+1)]
for i in range(1,row+1):
for j in range(1,col+1):
if matrix[i-1][j-1]=="1":
dp[i][j]= min(dp[i-1][j],dp[i][j-1],dp[i-1][j-1])+1
res = max(res,dp[i][j])
return res**2 |
class Solution:
# @param A, a list of integer
# @return an integer
def singleNumber(self, A):
return reduce(lambda x, y: x ^ y, A)
|
"""Implements the modified UTF-7 specification used for encoding and decoding
mailbox names in IMAP.
See Also:
`RFC 3501 5.1.3 <https://tools.ietf.org/html/rfc3501#section-5.1.3>`_
"""
__all__ = ['modutf7_encode', 'modutf7_decode']
def _modified_b64encode(src: str) -> bytes:
# Inspired by Twisted Python's implementation:
# https://twistedmatrix.com/trac/browser/trunk/LICENSE
src_utf7 = src.encode('utf-7')
return src_utf7[1:-1].replace(b'/', b',')
def _modified_b64decode(src: bytes) -> str:
# Inspired by Twisted Python's implementation:
# https://twistedmatrix.com/trac/browser/trunk/LICENSE
src_utf7 = b'+%b-' % src.replace(b',', b'/')
return src_utf7.decode('utf-7')
def modutf7_encode(data: str) -> bytes:
"""Encode the string using modified UTF-7.
Args:
data: The input string to encode.
"""
ret = bytearray()
is_usascii = True
encode_start = None
for i, symbol in enumerate(data):
charpoint = ord(symbol)
if is_usascii:
if charpoint == 0x26:
ret.extend(b'&-')
elif 0x20 <= charpoint <= 0x7e:
ret.append(charpoint)
else:
encode_start = i
is_usascii = False
else:
if 0x20 <= charpoint <= 0x7e:
to_encode = data[encode_start:i]
encoded = _modified_b64encode(to_encode)
ret.append(0x26)
ret.extend(encoded)
ret.extend((0x2d, charpoint))
is_usascii = True
if not is_usascii:
to_encode = data[encode_start:]
encoded = _modified_b64encode(to_encode)
ret.append(0x26)
ret.extend(encoded)
ret.append(0x2d)
return bytes(ret)
def modutf7_decode(data: bytes) -> str:
"""Decode the bytestring using modified UTF-7.
Args:
data: The encoded bytestring to decode.
"""
parts = []
is_usascii = True
buf = memoryview(data)
while buf:
byte = buf[0]
if is_usascii:
if buf[0:2] == b'&-':
parts.append('&')
buf = buf[2:]
elif byte == 0x26:
is_usascii = False
buf = buf[1:]
else:
parts.append(chr(byte))
buf = buf[1:]
else:
for i, byte in enumerate(buf):
if byte == 0x2d:
to_decode = buf[:i].tobytes()
decoded = _modified_b64decode(to_decode)
parts.append(decoded)
buf = buf[i + 1:]
is_usascii = True
break
if not is_usascii:
to_decode = buf.tobytes()
decoded = _modified_b64decode(to_decode)
parts.append(decoded)
return ''.join(parts)
|
#!/usr/bin/env python
def read_input(filename):
with open(filename) as fd:
return [line.strip() for line in fd.readlines()]
def reduce_chunks(line):
"""Meh
>>> lines = read_input('example')
>>> reduce_chunks(lines[2])
'{([(<[}>{{[('
"""
while True:
prev = line
for crs in ("()", "[]", "{}", "<>"):
line = line.replace(crs, "")
if prev == line:
return line
def first_bad(line):
"""Meh
>>> lines = read_input('example')
>>> first_bad(lines[0])
''
>>> first_bad(lines[2])
'}'
>>> first_bad(lines[4])
')'
>>> first_bad(lines[5])
']'
>>> first_bad(lines[7])
')'
>>> first_bad(lines[8])
'>'
"""
line = reduce_chunks(line)
for crs in ("(", "[", "{", "<"):
line = line.replace(crs, "")
if len(line):
return line[0]
return ""
def syntax_score(lines):
"""
>>> syntax_score(read_input('example'))
26397
"""
badchrs = [first_bad(line) for line in lines]
chrvals = {"": 0, ")": 3, "]": 57, "}": 1197, ">": 25137}
score = 0
for char in chrvals.keys():
score += badchrs.count(char) * chrvals[char]
return score
def filter_incomplete_lines(lines):
"""
>>> len(filter_incomplete_lines(read_input('example')))
5
"""
return [reduce_chunks(line) for line in lines if first_bad(line) == ""]
def incomplete_score(line):
"""
>>> lines = filter_incomplete_lines(read_input('example'))
>>> incomplete_score(lines[0])
288957
>>> incomplete_score(lines[1])
5566
>>> incomplete_score(lines[2])
1480781
>>> incomplete_score(lines[3])
995444
>>> incomplete_score(lines[4])
294
"""
chrvals = {"(": 1, "[": 2, "{": 3, "<": 4}
score = 0
for char in line[::-1]:
score = score * 5 + chrvals[char]
return score
def final_incomplete_score(lines):
"""
>>> lines = filter_incomplete_lines(read_input('example'))
>>> final_incomplete_score(lines)
288957
"""
scores = [incomplete_score(line) for line in lines]
return sorted(scores)[len(scores) // 2]
if __name__ == "__main__":
lines = read_input("input")
print(syntax_score(lines))
print(final_incomplete_score(filter_incomplete_lines(lines)))
|
# KeyPairs.py
# Pairs key name to corresponding numerical identifier
keyPairs = [("C",1),("Db/C#",2),("D",3),("Eb/D#",4),("E",5),("F",6),
("Gb/F#",7),("G",8),("Ab/G#",9),("A",10),("Bb/A#",11),("B",12)]
|
file = open('/Users/hansr/Desktop/Homo_sapiens.GRCh37.75.gtf', 'rU')
hgncfile = open('/Users/hansr/Desktop/hgnc_complete_set.txt', 'rU')
outfile = open('/Users/hansr/Desktop/EnsembleId2GeneName.csv', 'w')
id2symbol = {}
id2name = {}
for line in hgncfile:
if line.startswith('hgnc_id'):
continue
splits = line.split('\t')
symbol = splits[1].strip()
name = splits[2].strip()
id2name[symbol] = name
for line in file:
if line.startswith('#'):
continue
splits = line.split()
ensemblid = splits[splits.index('gene_id')+1].strip()
gene_name = splits[splits.index('gene_name')+1].strip()
ensemblid = ensemblid[1:len(ensemblid)-2]
gene_name = gene_name[1:len(gene_name)-2]
if ensemblid not in id2symbol:
id2symbol[ensemblid] = set()
id2symbol[ensemblid].add(gene_name)
outfile.write('#generated from Homo_sapiens.GRCh37.75.gtf\n#Ensembleid\tgene_name\n')
for id, gene_names in id2symbol.iteritems():
symbol = gene_names.pop()
name = 'No HGNC Name'
if symbol in id2name:
name = id2name[symbol]
outfile.write(id + '\t' + symbol + '\t' + name + '\n')
outfile.close()
|
"""
№290. К.Ю. Поляков.
Укажите наименьшее целое значение А, при котором выражение
(2y + 4x < A) ∨ (x + 2y > 80)
истинно для любых целых неотрицательных значений x и y.
"""
a = 1
while True:
for x in range(1000):
for y in range(1000):
if not ((2 * y + 4 * x < a) or (x + 2 * y > 80)):
break
else:
continue
break
else:
print(a)
a += 1 |
"""
link: https://leetcode.com/problems/partition-list
problem: 修改链表,使得比x小的值都在x之前
solution: 双指针扫
"""
class Solution:
def partition(self, head: ListNode, x: int) -> ListNode:
if head is None: return head
_head = ListNode(0)
_head.next = head
i = _head
while i.next and i.next.val < x:
i = i.next
j = i
while i.next:
if i.next.val < x:
t = i.next
i.next = i.next.next
t.next = j.next
j.next = t
j = j.next
else:
i = i.next
return _head.next |
{
"targets": [
{
"target_name": "action_before_build",
"type": "none",
"hard_dependency": 1,
"actions": [
{
"action_name": "build rust-native-storage library",
"inputs": [ "scripts/build_storage_lib.sh" ],
"outputs": [ "" ],
"action": ["scripts/build_storage_lib.sh"]
}
]
},
{
"target_name": "<(module_name)",
"dependencies": [ "action_before_build" ],
"cflags_cc": [ "-std=c++17" ],
"cflags!": [ "-fno-exceptions", "-fno-rtti" ],
"cflags_cc!": [ "-fno-exceptions", "-fno-rtti" ],
"link_settings": {
"libraries": [
"../rust_native_storage_library/target/debug/librust_native_storage_library.a",
"/usr/local/lib/libwasmedge-tensorflow_c.so",
"/usr/local/lib/libwasmedge-tensorflowlite_c.so",
"/usr/local/lib/libwasmedge-image_c.so",
"/usr/local/lib/libwasmedge-storage_c.so",
"/usr/local/lib/libwasmedge_c.so",
"/usr/local/lib/libtensorflow.so",
"/usr/local/lib/libtensorflow_framework.so",
"/usr/local/lib/libtensorflowlite_c.so",
"-ljpeg",
"-lpng",
]
},
"sources": [
"wasmedgeaddon.cc",
"wasmedge-core/src/addon.cc",
"wasmedge-core/src/bytecode.cc",
"wasmedge-core/src/options.cc",
"wasmedge-core/src/utils.cc",
],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")",
"wasmedge-core/src",
"/usr/local/include",
],
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ],
},
{
"target_name": "action_after_build",
"type": "none",
"dependencies": [ "<(module_name)" ],
"copies": [
{
"files": [ "<(PRODUCT_DIR)/<(module_name).node" ],
"destination": "<(module_path)"
}
]
}
]
}
|
def fib(n):
a,b = 1,2
for _ in range(n-1):
a,b = b, a + b
return a
def count_basic(n):
return fib(n)
def count_multi(n,ways):
if n < 0:
return 0
elif n == 0:
return 1
elif n in ways:
return 1 + sum([count_multi(n - x, ways) for x in ways if x < n])
else:
return sum([count_multi(n - x, ways) for x in ways if x < n])
def count_dynamic(n,ways):
memo = [0 for _ in range(n+1)]
memo[0] = 1 # i.e. n+1
for i in range(n+1):
memo[i] += sum([ memo[i-x] for x in ways if i-x > 0])
memo[i] += 1 if i in ways else 0
return memo[-1]
print(count_basic(4))
print(count_multi(4,[1,2]))
print(count_multi(4,[1,3,5]))
print(count_dynamic(4,[1,2]))
print(count_dynamic(4,[1,3,5]))
|
VAR = 42
def func():
global VAR
VAR += 1 |
#### formas de pagamento
price = float(input('Qual o preço das comprar: R$ '))
print("""FORMAS DE PAGAMENTO
[1] À vista (dinheiro ou cheque)
[2] À vista cartão (1x)
[3] 2x no cartão
[4] 3x ou mais no cartão
""")
met = int(input('Qual a forma de pagamento: \n'))
if met==1:
price = price*0.9
print('O valor total a ser pago é de {} reais.'.format(price))
elif met==2:
price = price*0.95
print('O valor total a ser pago é de {} reais.'.format(price))
elif met==3:
price = price/2
priceaux = price
print('Parcelado em 2x e o valor de cada parcela é de {} reais.\nTotalizando {} reais.\n Não há incidência de juros.'.format(price, priceaux))
elif met==4:
v = int(input('Quantas vezes você deseja parcelar?'))
price2 = (price*1.2)/v
priceaux = price*1.2
print('O valor é {}x de {} reias.\nTotalizando {} reais.'.format(v, price2, priceaux))
|
class BackendBaseException(Exception):
"""
Base exception for all custom exceptions of this service.
"""
def __init__(self, message: str) -> None:
self.message = message
class AuthenticationException(BackendBaseException):
pass
class ViewException(BackendBaseException):
def __init__(self, message: str, status_code: int) -> None:
self.message = message
self.status_code = status_code
class ActionException(BackendBaseException):
pass
class PresenterException(BackendBaseException):
pass
class PermissionDenied(BackendBaseException):
pass
class DatabaseException(BackendBaseException):
pass
class EventStoreException(BackendBaseException):
pass
|
''' Pseudocode
1. Start
2. Take dividend from the user
3. Take divisor from user
4. Calculate the quotient
5. Calculate the remainder
6. Disdlays quotient and remainder
7. End
'''
# Take the value of dividend
dividend = int(input('Enter the value of dividend: '))
# Take the value of the divisor
divisor = int(input('Enter the value of divisor: '))
# The quotient can be calculated be Interger Division (//)
Q = dividend // divisor
# The Remainder can be calculated by Modulus Operator (%)
R = dividend % divisor
print('Quotient is', Q, 'Remainder is', R) # Enter the value of dividend: 13
# Enter the value of divisor: 2
# Quotient is 6 Remainder is 1
|
"""
练习1: 定义函数,在终端中打印一维列表.
list01 = [5, 546, 6, 56, 76, ]
for item in list01:
print(item)
list02 = [7,6,879,9,909,]
for item in list02:
print(item)
"""
# 做(一种行为)
def print_single_list(list_target):
"""
在终端中打印列表元素
:param list_target: list类型的需要打印的数据
"""
for item in list_target:
print(item)
# 用(不同数据)
list01 = [5, 546, 6, 56, 76, ]
print_single_list(list01)
print_single_list([7, 6, 879, 9, 909, ])
|
def any(x) -> bool:
pass
def all(x) -> bool:
pass
def bool(x) -> bool:
pass
def bytes(x) -> Bytes:
pass
def dict() -> Dict:
pass
def dir(x) -> List[String]:
pass
def enumerate(x) -> List[Tuple[int, any]]:
pass
def float(x) -> float:
pass
def hasattr(x, name) -> bool:
pass
def hash(x) -> int:
pass
def int(x) -> int:
pass
def len(x) -> int:
pass
def list() -> List:
pass
def range() -> List[int]:
pass
def repr(x) -> String:
pass
def reversed(x) -> List:
pass
def sorted(x) -> List:
pass
def str(x) -> String:
pass
def type(x) -> String:
pass
def zip() -> List:
pass
class Dict:
def items(self) -> List:
pass
def keys(self) -> List:
pass
def update(self) -> None:
pass
def values(self) -> List:
pass
class List:
def append(self, x) -> None:
pass
def clear(self) -> None:
pass
def extend(self, x) -> None:
pass
def index(self, x) -> int:
pass
def insert(self, i, x) -> None:
pass
def remove(self, x) -> None:
pass
class String:
def capitalize(self) -> String:
pass
def count(self, sub) -> int:
pass
def endswith(self, suffix) -> bool:
pass
def find(self, sub) -> int:
pass
def format(self, *args, **kwargs) -> String:
pass
def index(self, sub) -> int:
pass
def isalnum(self) -> bool:
pass
def isalpha(self) -> bool:
pass
def isdigit(self) -> bool:
pass
def islower(self) -> bool:
pass
def isspace(self) -> bool:
pass
def istitle(self) -> bool:
pass
def isupper(self) -> bool:
pass
def join(self, iterable) -> String:
pass
def lower(self) -> String:
pass
def lstrip(self) -> String:
pass
def removeprefix(self, x) -> String:
pass
def removesuffix(self, x) -> String:
pass
def replace(self, old, new) -> String:
pass
def rfind(self, sub) -> int:
pass
def rindex(self, sub) -> int:
pass
def rsplit(self) -> List[String]:
pass
def rstrip(self) -> String:
pass
def split(self) -> List[String]:
pass
def splitlines(self) -> List[String]:
pass
def startswith(self, prefix) -> bool:
pass
def strip(self) -> String:
pass
def title(self) -> String:
pass
def upper(self) -> String:
pass
|
"""
All the functions to manipulate the resource fields, state changes, etc.
Grouped by the type of the fields and the purpose of the manipulation.
Used in the handling routines to check if there were significant changes at all
(i.e. not our own internal and system changes, like the uids, links, etc),
and to get the exact per-field diffs for the specific handler functions.
All the functions are purely data-manipulative and computational.
No external calls or any i/o activities are done here.
"""
|
def parse_policy(policy):
a, b, c = policy.split()
lo, hi = a.split("-")
return (int(lo), int(hi), b[:-1], c)
def part1(pws):
return sum(1 for lo, hi, c, pw in pws if lo <= pw.count(c) <= hi)
def part2(pws):
return sum(1 for lo, hi, c, pw in pws if (pw[lo - 1] == c) != (pw[hi - 1] == c))
if __name__ == "__main__":
with open("2.txt") as f:
lines = f.readlines()
pws = list(map(parse_policy, lines))
print("Part 1: {}".format(part1(pws)))
print("Part 2: {}".format(part2(pws)))
|
# Copyright (C) 2018 The Dagger Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law 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.
"""Macro for creating a jar from a set of flat files"""
def simple_jar(name, srcs):
"""Creates a jar out of a set of flat files"""
# TODO(dpb): consider creating a Fileset() under the hood to support srcs from different
# directories
native.genrule(
name = name,
srcs = srcs,
outs = ["%s.jar" % name],
cmd = """
OUT="$$(pwd)/$@"
cd {package_name}
zip "$$OUT" -r * &> /dev/null
""".format(package_name = native.package_name()),
)
|
__author__ = "Liyuan Liu and Frank Xu"
__credits__ = ["Liyuan Liu", "Frank Xu", "Jingbo Shang"]
__license__ = "Apache License 2.0"
__maintainer__ = "Liyuan Liu"
__email__ = "[email protected]" |
def convert_month_to_days(number_of_months: int) -> int:
return number_of_months * 30
def convert_week_to_days(number_of_weeks: int) -> int:
return number_of_weeks * 7
class CovidEstimator:
def __init__(self, **kwargs):
self.currently_infected: int = 0
self.currently_infected_worst_case: int = 0
self.request_period = kwargs.get('days', 1)
def set_currently_infected(self, reported_cases: int = 0):
self.currently_infected_worst_case = reported_cases * 50
self.currently_infected = reported_cases * 10
def get_currently_infected(self, severe: bool = False):
if severe:
return self.currently_infected_worst_case
return self.currently_infected
def get_estimated_infections_for_days(self, severe: bool = False) -> int:
'return the estimated number of infections after a given days, infection doubles every three days'
days = self.request_period
three_day_set: int = days // 3
if severe:
return self.currently_infected_worst_case * (2 ** three_day_set)
return self.currently_infected * (2 ** three_day_set)
def estimate_cases_requires_hospital(self, severe: bool = False) -> int:
'Return the estimated number of infected people that needs hospitalization'
if severe:
requires_hospitalization = self.get_estimated_infections_for_days(
severe=True) * 0.15
else:
requires_hospitalization = self.get_estimated_infections_for_days() * 0.15
return int(requires_hospitalization)
def get_available_hospital_beds(self, total_beds: int = 1, severe: bool = False):
if total_beds < 1:
total_beds = 1
estimated_beds_available = total_beds * 0.35
if severe:
return int(estimated_beds_available - self.estimate_cases_requires_hospital(severe=True))
return int(estimated_beds_available - self.estimate_cases_requires_hospital())
def get_estimated_ICU_cases(self, severe: bool = False):
'''Return estimated number of cases that will require ICU'''
if severe:
ICU_cases = self.get_estimated_infections_for_days(
severe=True) * 0.05
else:
ICU_cases = self.get_estimated_infections_for_days() * 0.05
return int(ICU_cases)
def get_estimated_ventilator_cases(self, severe: bool = False):
'''Return estimated number of cases that will require ventilators'''
if severe:
ventilator_cases = self.get_estimated_infections_for_days(
severe=True) * 0.02
else:
ventilator_cases = self.get_estimated_infections_for_days() * 0.02
return int(ventilator_cases)
def estimated_economic_money_loss(self, average_income, average_income_population, severe: bool = False):
if severe:
economic_loss = ((self.get_estimated_infections_for_days(
severe=True) * average_income*average_income_population)/self.request_period)
else:
economic_loss = ((self.get_estimated_infections_for_days()
* average_income*average_income_population)/self.request_period)
return int(economic_loss)
|
class _BaseOptimizer:
def __init__(self, model, learning_rate=1e-4, reg=1e-3):
self.learning_rate = learning_rate
self.reg = reg
self.grad_tracker = {}
for idx, m in enumerate(model.modules):
self.grad_tracker[idx] = dict(dw=0, db=0)
def update(self, model):
pass
def apply_regularization(self, model):
'''
Apply L2 penalty to the model. Update the gradient dictionary in the model
:param model: The model with gradients
:return: None, but the gradient dictionary of the model should be updated
'''
for m in model.modules:
if hasattr(m, 'weight'):
m.dw += self.reg * m.weight |
def getOrderFromDict(d):
return RobinhoodOrder(d['symbol'],d['action'],d['shares'],d['price'],d['date'])
class RobinhoodOrder(object):
def __init__(self, symbol, action, shares, price, date):
self.symbol = symbol
self.action = action
self.shares = shares
self.price = price
self.date = date
def __str__(self):
return "{} {} shares of {} on {} for ${}".format(self.action, self.shares, self.symbol, self.date, self.price)
def getPrice(self):
if self.action == "buy":
return -1 * float(self.price) * float(self.shares)
return float(self.price) * float(self.shares)
def getDate(self):
return self.date.split("T")[0]
def getCsvHeader(self):
return ["symbol", "action", "shares", "price", "date"]
def getCsvRow(self):
return [self.symbol, self.action, self.shares, self.price, self.date] |
'''
In this little assignment you are given a string of space separated numbers,
and have to return the highest and lowest number.
Example:
high_and_low("1 2 3 4 5") # return "5 1"
high_and_low("1 2 -3 4 5") # return "5 -3"
high_and_low("1 9 3 4 -5") # return "9 -5"
Notes:
All numbers are valid Int32, no need to validate them.
There will always be at least one number in the input string.
Output string must be two numbers separated by a single space, and highest
number is first.
'''
def high_and_low(numbers):
numbers_array = list(map(int, numbers.split(' ')))
return f'{max(numbers_array)} {min(numbers_array)}'
print(high_and_low("1 2 3 4 5")) # return "5 1"
print(high_and_low("1 2 -3 4 5")) # return "5 -3"
print(high_and_low("1 9 3 4 -5")) # return "9 -5"
print(high_and_low("4 5 29 54 4 0 -214 542 -64 1 -3 6 -6")) # return "542 -214"
|
class TrustDomain(object):
"""
Represents the name of a SPIFFE trust domain (e.g. 'domain.test').
:param trust_domain: The name of the Trust Domain
"""
name: str
def __init__(self, trust_domain: str):
self.name = trust_domain
|
n1 = 10
n2 = 20
print(n1,n2)
n1 , n2 = n2 ,n1
print(n1,n2)
|
pizzas = ['Pizza_A', 'Pizza_B', 'Pizza_C']
for pizza in pizzas:
print(f'Gosto da {pizza}')
print('Eu realmente gosto de pizza.')
for i in range(1, 1):
print(i)
pizzas_amigos = pizzas[:]
pizzas.append('Pizza_D')
pizzas_amigos.append('Pizza_E')
for pizza in pizzas:
print(pizza)
print()
for pizza_amigo in pizzas_amigos:
print(pizza_amigo)
|
# -*- coding: utf-8 -*-
"""058 - Validação de Dados
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1ZTluph36T-5jWIn1AJP2JN1XKyqGAYep
"""
sexo = ''
while sexo != 'M' and sexo != 'F':
sexo = str(input('DIgite o sexo [M/F]: ')).upper()
if sexo != 'M' and sexo != 'F':
print('Por favor digite a letra correta!!!')
if sexo == 'M':
sexo = 'Masculino'
else:
sexo = 'Feminino'
print('O sexo escolhido foi: {}'.format(sexo)) |
liste = [1,6,9,4,5,7]
plusFort = 0
for nb in liste:
if nb>plusFort:
plusFort = nb
print("Le plus fort de la liste est {}".format(plusFort))
|
{
'targets': [{
'target_name': 'addon',
'include_dirs': [
"<!(node -e \"require('nan')\")",
'lib/kcp',
'src',
],
'sources': [
'lib/kcp/ikcp.c',
'src/utils.c',
'src/Loop.cc',
'src/SessUDP.cc',
'src/Cryptor.cc',
'src/KcpuvSess.cc',
'src/Mux.cc',
'src/binding.cc',
],
'conditions' : [
['OS=="win"', {
'libraries' : ['ws2_32.lib']
}]
]
}]
}
|
# Given an integer array nums of unique elements, return all possible subsets
# (the power set).
# The solution set must not contain duplicate subsets.
# Return the solution in any order.
#
# Example 1:
# Input: nums = [1,2,3]
# Output: [[],[1],[2],[1,2],[3],[1,3],[2,3],[1,2,3]]
#
# Example 2:
# Input: nums = [0]
# Output: [[],[0]]
# Solution 1
class Solution_1:
def subsets(nums):
ans = [[]]
for num in nums:
ans += [x + [num] for x in ans]
return ans
|
n = int(input())
a = list(map(int,input().split()))
dist = [-1] * n
dist[0] = 0
pos = [0]
for u in pos:
for v in [u - 1, u + 1, a[u] - 1]:
if v >= 0 and v < n and dist[v] == -1:
dist[v] = dist[u] + 1
pos.append(v)
print(*dist)
|
def letter_count(word):
count = {}
for i in word:
count[i] = word.count(i)
return count
new = (letter_count("mehedi hasan shifat").items())
for i,j in new:
print("'{}' -> {} times".format(i,j))
print(len(new))
|
class AbstractProducerAdapter:
def __init__(self, config: dict):
self.config = config
def get_current_energy_production(self) -> float:
""" Returns the current energy production """
pass
|
# TASK:
# You are given two non-empty arrays A and B consisting of N integers. Arrays A and B represent N voracious fish in a river, ordered downstream along the flow of the river.
# The fish are numbered from 0 to N − 1. If P and Q are two fish and P < Q, then fish P is initially upstream of fish Q. Initially, each fish has a unique position.
# Fish number P is represented by A[P] and B[P]. Array A contains the sizes of the fish. All its elements are unique. Array B contains the directions of the fish. It contains only 0s and/or 1s, where:
# 0 represents a fish flowing upstream,
# 1 represents a fish flowing downstream.
# If two fish move in opposite directions and there are no other (living) fish between them, they will eventually meet each other. Then only one fish can stay alive − the larger fish eats the smaller one. More precisely, we say that two fish P and Q meet each other when P < Q, B[P] = 1 and B[Q] = 0, and there are no living fish between them. After they meet:
# If A[P] > A[Q] then P eats Q, and P will still be flowing downstream,
# If A[Q] > A[P] then Q eats P, and Q will still be flowing upstream.
# We assume that all the fish are flowing at the same speed. That is, fish moving in the same direction never meet. The goal is to calculate the number of fish that will stay alive.
# For example, consider arrays A and B such that:
# A[0] = 4 B[0] = 0
# A[1] = 3 B[1] = 1
# A[2] = 2 B[2] = 0
# A[3] = 1 B[3] = 0
# A[4] = 5 B[4] = 0
# Initially all the fish are alive and all except fish number 1 are moving upstream. Fish number 1 meets fish number 2 and eats it, then it meets fish number 3 and eats it too. Finally, it meets fish number 4 and is eaten by it. The remaining two fish, number 0 and 4, never meet and therefore stay alive.
# Write a function:
# def solution(A, B)
# that, given two non-empty arrays A and B consisting of N integers, returns the number of fish that will stay alive.
# For example, given the arrays shown above, the function should return 2, as explained above.
# Write an efficient algorithm for the following assumptions:
# N is an integer within the range [1..100,000];
# each element of array A is an integer within the range [0..1,000,000,000];
# each element of array B is an integer that can have one of the following values: 0, 1;
# the elements of A are all distinct.
# ANALYSIS:
# possible situations:
# current next id
# -> -> 1
# -> <- 2
# <- -> 3
# <- <- 4
# every value is different so for id 2 battle always win one fish
# if we analyze along river stream:
# all fishes going upstream if not downstream fishes can live safely
# if any fishes going downstream meet fish going upstrem then is the fight
# order of fishes going downstream is important so put them on stack preserving this
# We can notice that fish put on downstream will be allways stay alive (consume fish going upstream) or die so complexity is O(N)
# SOLUTION: https://app.codility.com/demo/results/trainingXQHG5T-JY5/
def solution(A, B):
downstream = []
upstream_count = 0
for i in range(len(A)):
if B[i] == 1: # -> ??
downstream.append(A[i])
else:
upstream_count += 1 # <- ??
while downstream:
top = downstream.pop()
if top > A[i]:
downstream.append(top)
upstream_count -=1
break
else:
continue
return len(downstream) + upstream_count
if __name__ == '__main__':
print('Start tests..')
# edge
assert solution([0],[0]) == 1
assert solution([0],[1]) == 1
# different weight fish
assert solution([1,0],[0,0]) == 2
assert solution([1,0],[0,1]) == 2
assert solution([1,0],[1,0]) == 1
assert solution([1,0],[1,1]) == 2
# different weight fish
assert solution([0,1],[0,0]) == 2
assert solution([0,1],[0,1]) == 2
assert solution([0,1],[1,0]) == 1
assert solution([0,1],[1,1]) == 2
# big fish eat all
assert solution([10,9,8,7,6,5,4],[1,0,0,0,0,0,0]) == 1
assert solution([4,5,6,7,8,9,10],[1,1,1,1,1,1,0]) == 1
# other
assert solution([4,3,2,1,5],[0,1,0,0,0]) == 2
assert solution([5,4,3,2,1],[0,0,0,0,0]) == 5
assert solution([5,4,3,2,1],[1,0,0,0,0]) == 1
assert solution([5,4,3,2,1],[1,0,0,0,0]) == 1
assert solution([5,4,3,2,1],[0,0,0,1,1]) == 5
assert solution([5,4,3,2,1],[1,1,0,1,1]) == 4
assert solution([5,4,3,2,1],[0,0,1,0,0]) == 3
assert solution([5,4,3,2,1],[1,1,1,0,0]) == 3
#downsream order
assert solution([5,8,2,1,4],[1,1,1,1,0]) == 2
print ('passed!') |
def random_choice():
return bool(GLOBAL_UNKOWN_VAR)
def is_safe(arg):
return UNKNOWN_FUNC(arg)
def true_func():
return True
def test_basic():
s = TAINTED_STRING
if is_safe(s):
ensure_not_tainted(s)
else:
ensure_tainted(s)
if not is_safe(s):
ensure_tainted(s)
else:
ensure_not_tainted(s)
def test_or():
s = TAINTED_STRING
# x or y
if is_safe(s) or random_choice():
ensure_tainted(s) # might be tainted
else:
ensure_tainted(s) # must be tainted
# not (x or y)
if not(is_safe(s) or random_choice()):
ensure_tainted(s) # must be tainted
else:
ensure_tainted(s) # might be tainted
# not (x or y) == not x and not y [de Morgan's laws]
if not is_safe(s) and not random_choice():
ensure_tainted(s) # must be tainted
else:
ensure_tainted(s) # might be tainted
def test_and():
s = TAINTED_STRING
# x and y
if is_safe(s) and random_choice():
ensure_not_tainted(s) # must not be tainted
else:
ensure_tainted(s) # might be tainted
# not (x and y)
if not(is_safe(s) and random_choice()):
ensure_tainted(s) # might be tainted
else:
ensure_not_tainted(s)
# not (x and y) == not x or not y [de Morgan's laws]
if not is_safe(s) or not random_choice():
ensure_tainted(s) # might be tainted
else:
ensure_not_tainted(s)
def test_tricky():
s = TAINTED_STRING
x = is_safe(s)
if x:
ensure_not_tainted(s) # FP
s_ = s
if is_safe(s):
ensure_not_tainted(s_) # FP
def test_nesting_not():
s = TAINTED_STRING
if not(not(is_safe(s))):
ensure_not_tainted(s)
else:
ensure_tainted(s)
if not(not(not(is_safe(s)))):
ensure_tainted(s)
else:
ensure_not_tainted(s)
# Adding `and True` makes the sanitizer trigger when it would otherwise not. See output in
# SanitizedEdges.expected and compare with `test_nesting_not` and `test_basic`
def test_nesting_not_with_and_true():
s = TAINTED_STRING
if not(is_safe(s) and True):
ensure_tainted(s)
else:
ensure_not_tainted(s)
if not(not(is_safe(s) and True)):
ensure_not_tainted(s)
else:
ensure_tainted(s)
if not(not(not(is_safe(s) and True))):
ensure_tainted(s)
else:
ensure_not_tainted(s)
|
m = 4
b = 5
c = 6
d = 7
n = 0
d = d*d
print(d)
c = d*2 - c*2
print(c)
p = b*d+m*c
print(p)
dn = c-d
print(dn)
cn = c-m
print(cn)
d = d-dn
print(d)
c = c-n
print(c)
a = d + c
f = m + b
e = a + f
print(d,dn)
print(c,d,f)
print(m,b,p)
print(cn,dn)
print(a,e)
|
# Copyright (C) 2017 Udacity Inc.
# All Rights Reserved.
# Author: Brandon Kinman
##################################################################################
# UPDATED USING CLASS FROM LESSON 23 PID CONTROL
##################################################################################
class PIDController:
def __init__(self, kp = 0.0, ki = 0.0, kd = 0.0, max_windup = 20,
start_time = 0, alpha = 1., u_bounds = [float('-inf'), float('inf')]):
# The PID controller can be initalized with a specific kp value
# ki value, and kd value
self.kp_ = float(kp)
self.ki_ = float(ki)
self.kd_ = float(kd)
# Set max wind up
self.max_windup_ = float(max_windup)
# Set alpha for derivative filter smoothing factor
self.alpha = float(alpha)
# Setting control effort saturation limits
self.umin = u_bounds[0]
self.umax = u_bounds[1]
# Store relevant data
self.last_timestamp_ = 0.0
self.set_point_ = 0.0
self.start_time_ = start_time
self.error_sum_ = 0.0
self.last_error_ = 0.0
# Control effort history
self.u_p = [0]
self.u_i = [0]
self.u_d = [0]
# Add a reset function to clear the class variables
def reset(self):
self.set_point_ = 0.0
self.kp_ = 0.0
self.ki_ = 0.0
self.kd_ = 0.0
self.error_sum_ = 0.0
self.last_timestamp_ = 0.0
self.last_error_ = 0
self.last_last_error_ = 0
self.last_windup_ = 0.0
def setTarget(self, target):
self.set_point_ = float(target)
def setKP(self, kp):
self.kp_ = float(kp)
def setKI(self, ki):
self.ki_ = float(ki)
def setKD(self, kd):
self.kd_ = float(kd)
# Create function to set max_windup_
def setMaxWindup(self, max_windup):
self.max_windup_ = int(max_windup)
def update(self, measured_value, timestamp):
delta_time = timestamp - self.last_timestamp_
if delta_time == 0:
# Delta time is zero
return 0
# Calculate the error
error = self.set_point_ - measured_value
# Set the last_timestamp_
self.last_timestamp_ = timestamp
# Sum the errors
self.error_sum_ += error * delta_time
# Find delta_error
delta_error = error - self.last_error_
# Update the past error
self.last_error_ = error
# Address max windup
########################################
if self.error_sum_ > self.max_windup_:
self.error_sum_ = self.max_windup_
elif self.error_sum_ < -self.max_windup_:
self.error_sum_ = -self.max_windup_
########################################
# Proportional error
p = self.kp_ * error
# Integral error
i = self.ki_ * self.error_sum_
# Recalculate the derivative error here incorporating
# derivative smoothing!
########################################
d = self.kd_ * (self.alpha * delta_error / delta_time + (1 - self.alpha) * self.last_error_)
########################################
# Set the control effort
u = p + i + d
# Enforce actuator saturation limits
########################################
if u > self.umax:
u = self.umax
elif u < self.umin:
u = self.umin
########################################
# Here we are storing the control effort history for post control
# observations.
self.u_p.append(p)
self.u_i.append(i)
self.u_d.append(d)
return u
|
"""SNMP constants."""
CONF_ACCEPT_ERRORS = 'accept_errors'
CONF_AUTH_KEY = 'auth_key'
CONF_AUTH_PROTOCOL = 'auth_protocol'
CONF_BASEOID = 'baseoid'
CONF_COMMUNITY = 'community'
CONF_DEFAULT_VALUE = 'default_value'
CONF_PRIV_KEY = 'priv_key'
CONF_PRIV_PROTOCOL = 'priv_protocol'
CONF_VERSION = 'version'
DEFAULT_AUTH_PROTOCOL = 'none'
DEFAULT_COMMUNITY = 'public'
DEFAULT_HOST = 'localhost'
DEFAULT_NAME = 'SNMP'
DEFAULT_PORT = '161'
DEFAULT_PRIV_PROTOCOL = 'none'
DEFAULT_VERSION = '1'
SNMP_VERSIONS = {
'1': 0,
'2c': 1,
'3': None
}
MAP_AUTH_PROTOCOLS = {
'none': 'usmNoAuthProtocol',
'hmac-md5': 'usmHMACMD5AuthProtocol',
'hmac-sha': 'usmHMACSHAAuthProtocol',
'hmac128-sha224': 'usmHMAC128SHA224AuthProtocol',
'hmac192-sha256': 'usmHMAC192SHA256AuthProtocol',
'hmac256-sha384': 'usmHMAC256SHA384AuthProtocol',
'hmac384-sha512': 'usmHMAC384SHA512AuthProtocol',
}
MAP_PRIV_PROTOCOLS = {
'none': 'usmNoPrivProtocol',
'des': 'usmDESPrivProtocol',
'3des-ede': 'usm3DESEDEPrivProtocol',
'aes-cfb-128': 'usmAesCfb128Protocol',
'aes-cfb-192': 'usmAesCfb192Protocol',
'aes-cfb-256': 'usmAesCfb256Protocol',
}
|
try:
while 1:
n=int(input())
k=(n-10)//9
m=n-10-9*k
print(81*(k+1)+m*(m+2)+1)
except:pass
|
def run(df, docs):
for doc in docs:
doc.start("t10 - Columns to lowercase", df)
columns = list(df.columns)
# for each column
for i in columns:
try:
# all charts to lowercase and no leading or trailing spaces
df[i] = df[i].str.lower().str.strip()
except:
continue
for doc in docs:
doc.end(df)
return df
|
n = int(input())
for i in range(n):
s = int(input())
p = 0
for j in range(0, s):
p = (p * 2) + 1
print(p)
|
#!/usr/bin/env python
#
# chemweight.py
#
#
# import re
mass = {
"H": 1.00794,
"He": 4.002602,
"Li": 6.941,
"Be": 9.012182,
"B": 10.811,
"C": 12.011,
"N": 14.00674,
"O": 15.9994,
"F": 18.9984032,
"Ne": 20.1797,
"Na": 22.989768,
"Mg": 24.3050,
"Al": 26.981539,
"Si": 28.0855,
"P": 30.973762,
"S": 32.066,
"Cl": 35.4527,
"Ar": 39.948,
"K": 39.0983,
"Ca": 40.078,
"Sc": 44.955910,
"Ti": 47.88,
"V": 50.9415,
"Cr": 51.9961,
"Mn": 54.93805,
"Fe": 55.847,
"Co": 58.93320,
"Ni": 58.6934,
"Cu": 63.546,
"Zn": 65.39,
"Ga": 69.723,
"Ge": 72.61,
"As": 74.92159,
"Se": 78.96,
"Br": 79.904,
"Kr": 83.80,
"Rb": 85.4678,
"Sr": 87.62,
"Y": 88.90585,
"Zr": 91.224,
"Nb": 92.90638,
"Mo": 95.94,
"Tc": 98,
"Ru": 101.07,
"Rh": 102.90550,
"Pd": 106.42,
"Ag": 107.8682,
"Cd": 112.411,
"In": 114.82,
"Sn": 118.710,
"Sb": 121.757,
"Te": 127.60,
"I": 126.90447,
"Xe": 131.29,
"Cs": 132.90543,
"Ba": 137.327,
"La": 138.9055,
"Ce": 140.115,
"Pr": 140.90765,
"Nd": 144.24,
"Pm": 145,
"Sm": 150.36,
"Eu": 151.965,
"Gd": 157.25,
"Tb": 158.92534,
"Dy": 162.50,
"Ho": 164.93032,
"Er": 167.26,
"Tm": 168.93421,
"Yb": 173.04,
"Lu": 174.967,
"Hf": 178.49,
"Ta": 180.9479,
"W": 183.85,
"Re": 186.207,
"Os": 190.2,
"Ir": 192.22,
"Pt": 195.08,
"Au": 196.96654,
"Hg": 200.59,
"Tl": 204.3833,
"Pb": 207.2,
"Bi": 208.98037,
"Po": 209,
"At": 210,
"Rn": 222,
"Fr": 223,
"Ra": 226.0254,
"Ac": 227,
"Th": 232.0381,
"Pa": 213.0359,
"U": 238.0289,
"Np": 237.0482,
"Pu": 244,
"Am": 243,
"Cm": 247,
"Bk": 247,
"Cf": 251,
"Es": 252,
"Fm": 257,
"Md": 258,
"No": 259,
"Lr": 260,
"Rf": 261,
"Db": 262,
"Sg": 263,
"Bh": 262,
"Hs": 265,
"Mt": 266,
}
|
COMPANY_NAME = "Enter the legal name of your business (not the trading name) then use 'Search Companies House'\
and select your company from the list. It will then prefill your company number and postcode."
COMPANY_WEBSITE = "Website address, where we can see your products online."
COMPANY_NUMBER = "The 8 digit number you received when registering your company at Companies House."
TRIAGE_TURNOVER = "You may use 12 months rolling or last year's annual turnover."
TRIAGE_SKU_NUMBER = "A stock keeping unit is an individual item, such as a product or a service\
that is offered for sale."
TRIAGE_TRADEMARKED = "Some marketplaces will only sell products that are trademarked."
TRIAGE_DESCRIPTION = "Your pitch is important and the information you provide may be used to introduce you to the\
marketplace. You could describe your business including your products, your customers and how\
you market your products in a few paragraphs."
TRIAGE_DESCRIPTION = "Your pitch is important and the information you provide may be used to introduce you to the\
marketplace.<br /><br />You could describe your business, including your products, your\
customers and how you market your products in a few paragraphs."
|
#!/usr/bin/env python
#pylint: skip-file
# This source code is licensed under the Apache license found in the
# LICENSE file in the root directory of this project.
class ZtdPlatformImage(object):
def __init__(self):
"""
Attributes:
swaggerTypes (dict): The key is attribute name and the value is attribute type.
attributeMap (dict): The key is attribute name and the value is json key in definition.
"""
self.swaggerTypes = {
'imageName': 'str',
'imageId': 'str',
'platform': 'list[ZtdPlatform]',
'imageVersion': 'str',
'imageSize': 'str'
}
self.attributeMap = {
'imageName': 'imageName',
'imageId': 'imageId',
'platform': 'platform',
'imageVersion': 'imageVersion',
'imageSize': 'imageSize'
}
#Image name
self.imageName = None # str
#Image ID
self.imageId = None # str
self.platform = None # list[ZtdPlatform]
#Image version
self.imageVersion = None # str
#Image size in bytes
self.imageSize = None # str
|
{
"targets": [
{
"target_name": "naudiodon",
"sources": [
"src/naudiodon.cc",
"src/GetDevices.cc",
"src/GetHostAPIs.cc",
"src/AudioIO.cc",
"src/PaContext.cc"
],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")",
"portaudio/include"
],
"dependencies": [
"<!(node -p \"require('node-addon-api').gyp\")"
],
"conditions" : [
[
'OS=="mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_RTTI': 'YES',
'MACOSX_DEPLOYMENT_TARGET': '10.7',
'OTHER_CPLUSPLUSFLAGS': [
'-std=c++11',
'-stdlib=libc++',
'-fexceptions'
],
'OTHER_LDFLAGS': [
"-Wl,-rpath,<@(module_root_dir)/build/Release"
]
},
"link_settings": {
"libraries": [
"<@(module_root_dir)/build/Release/libportaudio.dylib"
]
},
"copies": [
{
"destination": "build/Release/",
"files": [
"<!@(ls -1 portaudio/bin/libportaudio.dylib)"
]
}
]
},
],
[
'OS=="win"', {
"configurations": {
"Release": {
"msvs_settings": {
"VCCLCompilerTool": {
"RuntimeTypeInfo": "true",
"ExceptionHandling": 1
}
}
}
},
"libraries": [
"-l../portaudio/bin/portaudio_x64.lib"
],
"copies": [
{
"destination": "build/Release",
"files": [
"portaudio/bin/portaudio_x64.dll"
]
}
]
},
],
[
'OS=="linux"', {
"conditions": [
['target_arch=="arm"', {
"cflags_cc!": [
"-fno-rtti",
"-fno-exceptions"
],
"cflags_cc": [
"-std=c++11",
"-fexceptions"
],
"link_settings": {
"libraries": [
"<@(module_root_dir)/build/Release/libportaudio.so.2"
],
"ldflags": [
"-L<@(module_root_dir)/build/Release",
"-Wl,-rpath,<@(module_root_dir)/build/Release"
]
},
"copies": [
{
"destination": "build/Release/",
"files": [
"<@(module_root_dir)/portaudio/bin_armhf/libportaudio.so.2"
]
}
]
},
{ # ia32 or x64
"cflags_cc!": [
"-fno-rtti",
"-fno-exceptions"
],
"cflags_cc": [
"-std=c++11",
"-fexceptions"
],
"link_settings": {
"libraries": [
"<@(module_root_dir)/build/Release/libportaudio.so.2"
],
"ldflags": [
"-L<@(module_root_dir)/build/Release",
"-Wl,-rpath,<@(module_root_dir)/build/Release"
]
},
"copies": [
{
"destination": "build/Release/",
"files": [
"<@(module_root_dir)/portaudio/bin/libportaudio.so.2"
]
}
]
}]
]
}
]
]
}
]
}
|
#!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# California Institute of Technology
# (C) 2007 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
class Item(object):
"""A Trait paired with its value and locator."""
def __init__(self, trait, descriptor):
self._trait = trait
self._descriptor = descriptor
attr = property(lambda self: self._trait.attr)
name = property(lambda self: self._trait.name)
default = property(lambda self: self._trait.default)
type = property(lambda self: self._trait.type)
meta = property(lambda self: self._trait.meta)
value = property(lambda self: self._descriptor.value)
locator = property(lambda self: self._descriptor.locator)
# end of file
|
#-------------------------------------------------------------------------------
# 6857
#-------------------------------------------------------------------------------
N = 600851475143
d = 3
while d * d <= N and N != 1:
while N % d == 0:
N //= d
last = d
d += 2
if N != 1:
last = N
print(last)
|
def doIt (func, x, y):
z = func (x, y)
return z
def add (arg1, arg2):
return arg1 + arg2
def sub (arg1, arg2):
return arg1 - arg2
print ('Addition:')
print ( doIt (add, 2, 3) ) # Passing the name of the function
# and its arguments
print ('Subtraction:')
print ( doIt (sub, 2, 3) ) |
list=["rayne","coder","python","c","c++","java"]
#REMOVE
list.remove("java")
print(list)
#remove BY index
list.pop(1) # 1- coder
print(list)
|
n=int(input())
namibia=0
kenya=0
tanzania=0
ethiopia=0
zim=0
zam=0
zimzam=0
zimzamMode=False
namaVisit=False
last=''
lgo=""
for i in range(n):
go=input()
lgo=go
if last==go: continue
if go=='kenya': kenya=1
if go=='tanzania': tanzania=1
if go=='ethiopia': ethiopia=1
if go=='zambia':
if last=='zimbabwe':
zim-=1
zimzam+=1
else: zam+=1
last=go
continue
if go=='zimbabwe':
if last=='zambia':
zam-=1
zimzam+=1
else: zim+=1
last=go
continue
zimzamMode=False
if go=='south-africa' and namibia==0: namaVisit=True
if go=='namibia': namibia=1
last=go
ans=kenya*50+ethiopia*50+tanzania*50
if namaVisit: ans+=namibia*40
else: ans+=namibia*140
ans+=zim//2*45+zim%2*30
ans+=zam//2*80+zam%2*50
ans+=zimzam*50
if n%2==1 or (n==2 and lgo=="tanzania") : print(-1)
else: print(ans) |
#
# PySNMP MIB module NETREALITY-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NETREALITY-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:10:11 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)
#
OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, SingleValueConstraint, ValueSizeConstraint, ConstraintsIntersection, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsIntersection", "ValueRangeConstraint")
DLCI, Index = mibBuilder.importSymbols("RFC1315-MIB", "DLCI", "Index")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, Unsigned32, enterprises, Counter32, Integer32, Counter64, NotificationType, ObjectIdentity, IpAddress, Bits, NotificationType, Gauge32, ModuleIdentity, iso, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "Unsigned32", "enterprises", "Counter32", "Integer32", "Counter64", "NotificationType", "ObjectIdentity", "IpAddress", "Bits", "NotificationType", "Gauge32", "ModuleIdentity", "iso", "MibIdentifier")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
netreality = MibIdentifier((1, 3, 6, 1, 4, 1, 2382))
nrGeneral = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 1))
nrProducts = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 2))
nrFr = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 3))
nrInterface = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 3, 1))
nrFrame_relay = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 3, 2)).setLabel("nrFrame-relay")
nrRmon = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 3, 3))
nrNlMatrix = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 3, 3, 1))
nrNlHost = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 3, 3, 2))
nrBulk = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 3, 4))
nrtCtrl = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 3, 4, 1))
nrShortTermData = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 3, 4, 2))
nrLongTermData = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 3, 4, 3))
nrManagers = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 1, 1))
nrSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 1, 2))
nrTrapInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 1, 3))
nrTrapHostsTable = MibTable((1, 3, 6, 1, 4, 1, 2382, 1, 1, 1), )
if mibBuilder.loadTexts: nrTrapHostsTable.setStatus('mandatory')
nrTrapHostsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2382, 1, 1, 1, 1), ).setIndexNames((0, "NETREALITY-MIB", "nrTrapIPaddress"))
if mibBuilder.loadTexts: nrTrapHostsEntry.setStatus('mandatory')
nrTrapIPaddress = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 1, 1, 1, 1, 1), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nrTrapIPaddress.setStatus('mandatory')
nrTrapPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 1, 1, 1, 1, 2), Integer32().clone(162)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nrTrapPort.setStatus('mandatory')
nrSysReset = MibScalar((1, 3, 6, 1, 4, 1, 2382, 1, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nrSysReset.setStatus('mandatory')
nrSysSetDefaults = MibScalar((1, 3, 6, 1, 4, 1, 2382, 1, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("off", 1), ("set", 2), ("in-process", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nrSysSetDefaults.setStatus('mandatory')
nrSysTrapCounter = MibScalar((1, 3, 6, 1, 4, 1, 2382, 1, 2, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrSysTrapCounter.setStatus('mandatory')
nrSysEventReset = MibScalar((1, 3, 6, 1, 4, 1, 2382, 1, 2, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("off", 1), ("reset", 2), ("in-process", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nrSysEventReset.setStatus('mandatory')
nrSysSerial = MibScalar((1, 3, 6, 1, 4, 1, 2382, 1, 2, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrSysSerial.setStatus('mandatory')
nrWanwise = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 2, 1))
nrIfTable = MibTable((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1), )
if mibBuilder.loadTexts: nrIfTable.setStatus('mandatory')
nrIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1), ).setIndexNames((0, "NETREALITY-MIB", "nrIfIndex"))
if mibBuilder.loadTexts: nrIfEntry.setStatus('mandatory')
nrIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrIfIndex.setStatus('mandatory')
nrIfInUtilization = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrIfInUtilization.setStatus('mandatory')
nrIfOutUtilization = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrIfOutUtilization.setStatus('mandatory')
nrIfInErrRatio = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrIfInErrRatio.setStatus('mandatory')
nrIfOutErrRatio = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrIfOutErrRatio.setStatus('mandatory')
nrIfPhysConnType = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("active", 2), ("passive", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrIfPhysConnType.setStatus('mandatory')
nrIfType = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14))).clone(namedValues=NamedValues(("other", 1), ("v35", 2), ("v35db", 3), ("eia530-rs449", 4), ("x21-x24", 5), ("rs232", 6), ("t1", 7), ("e1", 8), ("hssi", 9), ("frame-relay", 10), ("frame-relay-cisco", 11), ("ppp", 12), ("hdlc-cisco", 13), ("ppp-bay", 14)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrIfType.setStatus('mandatory')
nrIfOperMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("monitor", 2), ("shaper", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrIfOperMode.setStatus('mandatory')
nrIfGroupNm = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrIfGroupNm.setStatus('mandatory')
nrFrCircuitTable = MibTable((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2), )
if mibBuilder.loadTexts: nrFrCircuitTable.setStatus('mandatory')
nrFrCircuitEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1), ).setIndexNames((0, "NETREALITY-MIB", "nrFrCircuitIfIndex"), (0, "NETREALITY-MIB", "nrFrCircuitDlci"))
if mibBuilder.loadTexts: nrFrCircuitEntry.setStatus('mandatory')
nrFrCircuitIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 1), Index()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrFrCircuitIfIndex.setStatus('mandatory')
nrFrCircuitDlci = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 2), DLCI()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrFrCircuitDlci.setStatus('mandatory')
nrFrCircuitInCIRUtilization = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrFrCircuitInCIRUtilization.setStatus('mandatory')
nrFrCircuitOutCIRUtilization = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrFrCircuitOutCIRUtilization.setStatus('mandatory')
nrFrCircuitInDiscard = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrFrCircuitInDiscard.setStatus('mandatory')
nrFrCircuitOutDiscard = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrFrCircuitOutDiscard.setStatus('mandatory')
nrFrCircuitEchoAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 7), IpAddress().clone(hexValue="00000000")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nrFrCircuitEchoAddress.setStatus('mandatory')
nrFrCircuitEchoProto = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("icmp", 2))).clone(2)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nrFrCircuitEchoProto.setStatus('mandatory')
nrFrCircuitEchoStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2))).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nrFrCircuitEchoStatus.setStatus('mandatory')
nrFrCircuitLastResponseTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrFrCircuitLastResponseTime.setStatus('mandatory')
nrNlMatrixTable = MibTable((1, 3, 6, 1, 4, 1, 2382, 3, 3, 1, 1), )
if mibBuilder.loadTexts: nrNlMatrixTable.setStatus('mandatory')
nrNlMatrixEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2382, 3, 3, 1, 1, 1), ).setIndexNames((0, "NETREALITY-MIB", "nrNlMatrixifNumber"), (0, "NETREALITY-MIB", "nrNlMatrixDlciNumber"), (0, "NETREALITY-MIB", "nrNlMatrixProtocol"), (0, "NETREALITY-MIB", "nrNlMatrixAddress1"), (0, "NETREALITY-MIB", "nrNlMatrixAddress2"))
if mibBuilder.loadTexts: nrNlMatrixEntry.setStatus('mandatory')
nrNlMatrixifNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 3, 1, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrNlMatrixifNumber.setStatus('mandatory')
nrNlMatrixDlciNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 3, 1, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrNlMatrixDlciNumber.setStatus('mandatory')
nrNlMatrixProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 3, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrNlMatrixProtocol.setStatus('mandatory')
nrNlMatrixAddress1 = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 3, 1, 1, 1, 4), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrNlMatrixAddress1.setStatus('mandatory')
nrNlMatrixAddress2 = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 3, 1, 1, 1, 5), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrNlMatrixAddress2.setStatus('mandatory')
nrNl1to2UfromCIR = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 3, 1, 1, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrNl1to2UfromCIR.setStatus('mandatory')
nrNlHostTable = MibTable((1, 3, 6, 1, 4, 1, 2382, 3, 3, 2, 1), )
if mibBuilder.loadTexts: nrNlHostTable.setStatus('mandatory')
nrNlHostEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2382, 3, 3, 2, 1, 1), ).setIndexNames((0, "NETREALITY-MIB", "nrNlHostifNumber"), (0, "NETREALITY-MIB", "nrNlHostDlciNumber"), (0, "NETREALITY-MIB", "nrNlMatrixProtocol"), (0, "NETREALITY-MIB", "nrNlHostAddress"))
if mibBuilder.loadTexts: nrNlHostEntry.setStatus('mandatory')
nrNlHostifNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 3, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrNlHostifNumber.setStatus('mandatory')
nrNlHostDlciNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 3, 2, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrNlHostDlciNumber.setStatus('mandatory')
nrNlHostProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 3, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrNlHostProtocol.setStatus('mandatory')
nrNlHostAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 3, 2, 1, 1, 4), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrNlHostAddress.setStatus('mandatory')
nrNlHostUtilization = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 3, 2, 1, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrNlHostUtilization.setStatus('mandatory')
nrtCtrlLtermInterval = MibScalar((1, 3, 6, 1, 4, 1, 2382, 3, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(300, 3600)).clone(900)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nrtCtrlLtermInterval.setStatus('mandatory')
nrtCtrlLtermBucketsGrant = MibScalar((1, 3, 6, 1, 4, 1, 2382, 3, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 16))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrtCtrlLtermBucketsGrant.setStatus('mandatory')
nrtCtrlLtermLast = MibScalar((1, 3, 6, 1, 4, 1, 2382, 3, 4, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrtCtrlLtermLast.setStatus('mandatory')
nrtCtrlLtermTime = MibScalar((1, 3, 6, 1, 4, 1, 2382, 3, 4, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrtCtrlLtermTime.setStatus('mandatory')
nrtCtrlStermInterval = MibScalar((1, 3, 6, 1, 4, 1, 2382, 3, 4, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(30, 300)).clone(60)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nrtCtrlStermInterval.setStatus('mandatory')
nrtCtrlStermBucketsGrant = MibScalar((1, 3, 6, 1, 4, 1, 2382, 3, 4, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 16))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrtCtrlStermBucketsGrant.setStatus('mandatory')
nrtCtrlStermLast = MibScalar((1, 3, 6, 1, 4, 1, 2382, 3, 4, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrtCtrlStermLast.setStatus('mandatory')
nrtCtrlStermTime = MibScalar((1, 3, 6, 1, 4, 1, 2382, 3, 4, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrtCtrlStermTime.setStatus('mandatory')
nrShortTermDataTable = MibTable((1, 3, 6, 1, 4, 1, 2382, 3, 4, 2, 1), )
if mibBuilder.loadTexts: nrShortTermDataTable.setStatus('mandatory')
nrShortTermDataEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2382, 3, 4, 2, 1, 1), ).setIndexNames((0, "NETREALITY-MIB", "nrShortTermBucketIndex"), (0, "NETREALITY-MIB", "nrShortTermDataIndex"))
if mibBuilder.loadTexts: nrShortTermDataEntry.setStatus('mandatory')
nrShortTermBucketIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 4, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrShortTermBucketIndex.setStatus('mandatory')
nrShortTermDataIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 4, 2, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrShortTermDataIndex.setStatus('mandatory')
nrShortTermDataData = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 4, 2, 1, 1, 3), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrShortTermDataData.setStatus('mandatory')
nrLongTermDataTable = MibTable((1, 3, 6, 1, 4, 1, 2382, 3, 4, 3, 1), )
if mibBuilder.loadTexts: nrLongTermDataTable.setStatus('mandatory')
nrLongTermDataEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2382, 3, 4, 3, 1, 1), ).setIndexNames((0, "NETREALITY-MIB", "nrLongTermBucketIndex"), (0, "NETREALITY-MIB", "nrLongTermDataIndex"))
if mibBuilder.loadTexts: nrLongTermDataEntry.setStatus('mandatory')
nrLongTermBucketIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 4, 3, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrLongTermBucketIndex.setStatus('mandatory')
nrLongTermDataIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 4, 3, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrLongTermDataIndex.setStatus('mandatory')
nrLongTermDataData = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 4, 3, 1, 1, 3), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrLongTermDataData.setStatus('mandatory')
nrTrapRSType = MibScalar((1, 3, 6, 1, 4, 1, 2382, 1, 3, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("memory", 1), ("ethernet", 2), ("wanadapter", 3), ("flash", 4), ("com1", 5), ("unknown", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrTrapRSType.setStatus('mandatory')
nrShortResources = NotificationType((1, 3, 6, 1, 4, 1, 2382) + (0,1)).setObjects(("NETREALITY-MIB", "nrTrapRSType"))
nrDiagnosticFailure = NotificationType((1, 3, 6, 1, 4, 1, 2382) + (0,2)).setObjects(("NETREALITY-MIB", "nrTrapRSType"))
nrDLCIRemove = NotificationType((1, 3, 6, 1, 4, 1, 2382) + (0,3)).setObjects(("NETREALITY-MIB", "nrFrCircuitIfIndex"), ("NETREALITY-MIB", "nrFrCircuitDlci"))
mibBuilder.exportSymbols("NETREALITY-MIB", nrIfOutUtilization=nrIfOutUtilization, nrtCtrlLtermBucketsGrant=nrtCtrlLtermBucketsGrant, nrFrCircuitInCIRUtilization=nrFrCircuitInCIRUtilization, nrIfGroupNm=nrIfGroupNm, nrNlMatrixTable=nrNlMatrixTable, nrtCtrlStermBucketsGrant=nrtCtrlStermBucketsGrant, nrtCtrlStermLast=nrtCtrlStermLast, nrNlHostTable=nrNlHostTable, nrFrCircuitIfIndex=nrFrCircuitIfIndex, nrTrapPort=nrTrapPort, nrtCtrlStermInterval=nrtCtrlStermInterval, nrIfEntry=nrIfEntry, nrIfOperMode=nrIfOperMode, nrLongTermData=nrLongTermData, nrShortTermBucketIndex=nrShortTermBucketIndex, nrSysSetDefaults=nrSysSetDefaults, nrShortTermDataIndex=nrShortTermDataIndex, nrTrapInfo=nrTrapInfo, nrNlHostProtocol=nrNlHostProtocol, nrNlMatrixAddress2=nrNlMatrixAddress2, nrBulk=nrBulk, nrFrCircuitEchoProto=nrFrCircuitEchoProto, nrShortTermDataEntry=nrShortTermDataEntry, nrSysSerial=nrSysSerial, nrNlMatrixProtocol=nrNlMatrixProtocol, nrNlHostAddress=nrNlHostAddress, nrtCtrl=nrtCtrl, nrNlHostUtilization=nrNlHostUtilization, nrNlMatrixDlciNumber=nrNlMatrixDlciNumber, nrNlHostDlciNumber=nrNlHostDlciNumber, nrTrapHostsTable=nrTrapHostsTable, nrtCtrlStermTime=nrtCtrlStermTime, nrManagers=nrManagers, nrWanwise=nrWanwise, nrIfInUtilization=nrIfInUtilization, nrRmon=nrRmon, nrNlMatrix=nrNlMatrix, nrLongTermDataIndex=nrLongTermDataIndex, nrFrame_relay=nrFrame_relay, nrFr=nrFr, nrNl1to2UfromCIR=nrNl1to2UfromCIR, nrtCtrlLtermInterval=nrtCtrlLtermInterval, nrNlHost=nrNlHost, nrIfTable=nrIfTable, nrFrCircuitLastResponseTime=nrFrCircuitLastResponseTime, nrDLCIRemove=nrDLCIRemove, nrNlMatrixAddress1=nrNlMatrixAddress1, netreality=netreality, nrFrCircuitEchoAddress=nrFrCircuitEchoAddress, nrNlHostifNumber=nrNlHostifNumber, nrShortTermData=nrShortTermData, nrShortResources=nrShortResources, nrTrapIPaddress=nrTrapIPaddress, nrLongTermBucketIndex=nrLongTermBucketIndex, nrLongTermDataData=nrLongTermDataData, nrIfInErrRatio=nrIfInErrRatio, nrFrCircuitEchoStatus=nrFrCircuitEchoStatus, nrTrapHostsEntry=nrTrapHostsEntry, nrtCtrlLtermLast=nrtCtrlLtermLast, nrSystem=nrSystem, nrSysEventReset=nrSysEventReset, nrIfIndex=nrIfIndex, nrSysTrapCounter=nrSysTrapCounter, nrIfPhysConnType=nrIfPhysConnType, nrNlMatrixEntry=nrNlMatrixEntry, nrTrapRSType=nrTrapRSType, nrFrCircuitOutCIRUtilization=nrFrCircuitOutCIRUtilization, nrProducts=nrProducts, nrLongTermDataTable=nrLongTermDataTable, nrIfType=nrIfType, nrFrCircuitDlci=nrFrCircuitDlci, nrFrCircuitEntry=nrFrCircuitEntry, nrFrCircuitOutDiscard=nrFrCircuitOutDiscard, nrIfOutErrRatio=nrIfOutErrRatio, nrLongTermDataEntry=nrLongTermDataEntry, nrNlHostEntry=nrNlHostEntry, nrtCtrlLtermTime=nrtCtrlLtermTime, nrFrCircuitTable=nrFrCircuitTable, nrSysReset=nrSysReset, nrShortTermDataData=nrShortTermDataData, nrFrCircuitInDiscard=nrFrCircuitInDiscard, nrNlMatrixifNumber=nrNlMatrixifNumber, nrGeneral=nrGeneral, nrShortTermDataTable=nrShortTermDataTable, nrDiagnosticFailure=nrDiagnosticFailure, nrInterface=nrInterface)
|
'''
Given a singly linked list, group all odd nodes together followed by the even nodes.
Please note here we are talking about the node number and not the value in the nodes.
You should try to do it in place. The program should
run in O(1) space complexity and O(nodes) time complexity.
Example 1:
Input: 1->2->3->4->5->NULL
Output: 1->3->5->2->4->NULL
Example 2:
Input: 2->1->3->5->6->4->7->NULL
Output: 2->3->6->7->1->5->4->NULL
Note:
- The relative order inside both the even and odd groups should remain as it was in the input.
- The first node is considered odd, the second node even and so on ...
'''
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def oddEvenList(self, head: ListNode) -> ListNode:
if (not head) or (not head.next):
return head
l = head
r = head.next
while r and r.next:
# exchange
tmp = r.next
r.next = tmp.next
tmp.next = l.next
l.next = tmp
l = l.next
r = r.next
return head
|
def num_of_factors(num):
n = 0
factor = 1
while factor * factor < num:
if num % factor == 0:
n += 1
factor += 1
if factor * factor > num:
return n * 2
else:
# perfect square
return n * 2 + 1
triangle = 0
i = 1
while True:
triangle += i
if num_of_factors(triangle) > 500:
print(triangle)
break
i += 1
|
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = Nonea
class Solution(object):
def postorderTraversal(self, root):
"""
:type root: TreeNode
:rtype: List[int]
"""
ans = []
s = []
pre = None
while root or s:
if root:
s.append(root)
root = root.left
elif s[-1].right != pre: # deal with left subtree
root = s[-1].right
pre = None
else: # left and right subtree covered
pre = s.pop()
ans.append(pre.val)
return ans
|
"""文字列基礎
引数の番号を指定して値を埋め込む方法
[説明ページ]
https://tech.nkhn37.net/python-str-format-f-string/#i-2
"""
# 引数の番号を指定して値を埋め込む
print('{0}は{2}歳の{1}です。'.format('太郎', '男性', 20))
# 変数に値を入れて使用する場合も同様
name = '太郎'
sex = '男性'
age = 20
print('{0}は{2}歳の{1}です。'.format(name, sex, age))
|
# bulk_data = []
# for row in csv_file_object:
# data_dict = {}
# for i in range(len(row)):
# data_dict[header[i]] = row[i]
# op_dict = {
# "index": {
# "_index": INDEX_NAME,
# "_type": TYPE_NAME,
# "_id": data_dict[ID_FIELD]
# }
# }
# bulk_data.append(op_dict)
# bulk_data.append(data_dict)
x = 10
y= 20
def a():
print(x)
x = x + 10
def b():
print(y)
print(a(),b(),x) |
class t_list():
def __init__(self, lst = []):
lst.sort()
self.lst = [[el, el] for el in lst]
def __len__ (self):
return len(self.lst)
def create(self, lst):
lst.sort()
self.lst = [[el, el] for el in lst]
def add(self, val, t):
left = 0
right = len(self.lst)
while left < right:
m = left + (right - left) // 2
if self.lst[m][0] <= val:
left = m + 1
else:
right = m
self.lst.insert(left, [val, t])
def delete(self, ind):
el = self.lst.pop(ind)
return el[0], el[1]
def get(self, ind):
return self.lst[ind]
def clear(self):
self.lst = []
def binary_search(self, x, array):
left = 0
right = len(self.lst) - 1
while left < right:
m = left + (right - left) // 2
if array[m][0] < x:
left = m + 1
else:
right = m
return left
def __str__(self):
return ' '.join(str(el) for el in self.lst)
N = int(input())
Na = int(input())
A = list(map(int, input().split()))
Nb = int(input())
B = list(map(int, input().split()))
'''N = 6
Na = 3
A = [1,3,2]
Nb = 2
B = [2,3]'''
A_obj = t_list(A)
B_obj = t_list()
resa = []
ll = len(B)
for i in range(N):
a, t = A_obj.delete(0)
resa.append(a)
A_obj.add(a + t, t)
l = resa[-1]
r = 10**3
while l < r:
print('|')
w = 0
m = l + (r - l)//2
B_obj.create(B)
for i in range(N-1,-1,-1):
y = m - resa[i]
if y < B_obj.lst[0][0]:
w += 1
break
else:
ind = B_obj.binary_search(y, B_obj.lst)
x = B_obj.lst[ind][0]
if x > y:
ind -= 1
a, t = B_obj.get(ind)
B_obj.delete(ind)
B_obj.add(a+t,t)
print(B_obj)
if w == 0:
r = m
else:
l = m + 1
B_obj.clear()
print(l) |
OperandSet = {
'Ib' : {
'16' : ( "0x10", ),
'32' : ( "0x10", ),
'64' : ( "0x20", )
},
'Eb_Gb' : {
'16' : ( "[bx+si], al", ),
'32' : ( "[eax+ebx], ch", "[ebx+ecx*4], bl", "[bx+0x10], dh"),
'64' : ( "[rax], r8b", )
},
'Ev_Gv' : {
'16' : (),
'32' : ( "[eax+0x1234], esi", "[bx+si+0x1234], esp", "[esp+0x10], ebp"),
'64' : ()
},
'Gb_Eb' : {
'16' : ( "al, bl", ),
'32' : ( "bl, cl", ),
'64' : ( "r8b, sil", )
},
'Gv_Ev' : {
'16' : ( "ax, bx", ),
'32' : ( "eax, ebx", "ax, dx", "ax, [ebx+0x100]" ),
'64' : ( "rax, r15", "si, bp", "eax, edx" )
},
'AL_Ib' : {
'16' : ( "al, 0x10", ),
'32' : ( "al, 0x13", ),
'64' : ( "al, 0x14", )
},
'rAX_Iz' : {
'16' : ( "ax, 0x100", ),
'32' : ( "ax, 0x100", "eax, 0x100" ),
'64' : ( "r13, 0x200", )
},
'Eb_Ib' : {
'16' : ( "al, 0x10", "byte [eax], 0x10" ),
'32' : ( "dl, 0x10", "byte [bp+si], 0x10" ),
'64' : ( "di, 0x10", "byte [rax+rsi], 0x10" )
},
'Ev_Iz' : {
'16' : ( "eax, 0x100000", "word [bx+si], 0x1000" ),
'32' : ( "eax, 0x100000", "word [bx+si], 0x1000", "dword [bp+0x10], 0x100" ),
'64' : ( "rax, 0x100000", "word [ebx+esi], 0x1000", "dword [ebp+0x10], 0x100" ),
},
'Ev_Ib' : {
'16' : (),
'32' : (),
'64' : ()
},
'V_W' : {
'16' : (),
'32' : ( "xmm3, xmm0", "xmm7, [eax]" ),
'64' : ( "xmm9, [rax+r8-0x10]", "xmm13, xmm1" )
},
'V_VR' : {
'16' : (),
'32' : ( "xmm3, xmm0", "xmm7, xmm2" ),
'64' : ( "xmm9, xmm1", "xmm13, xmm1" )
},
'Ew_Gw' : {
'16' : (),
'32' : (),
'64' : ()
},
'Gv_Ed' : {
'16' : (),
'32' : (),
'64' : ()
},
'Gv_M' : {
'16' : (),
'32' : (),
'64' : ()
},
'rAXr8' : {
'16' : (),
'32' : (),
'64' : ( "rax", "r8" )
},
'rCXr9' : {
'16' : ( "ecx", ),
'32' : ( "ecx", ),
'64' : ( "r9", "rcx" )
},
'rDXr10' : {
'16' : (),
'32' : (),
'64' : ( "r10", )
},
'rBXr11' : {
'16' : (),
'32' : (),
'64' : ()
},
'rSPr12' : {
'16' : (),
'32' : (),
'64' : ()
},
'rBPr13' : {
'16' : (),
'32' : (),
'64' : ()
},
'rSIr14' : {
'16' : (),
'32' : (),
'64' : ()
},
'rDIr15' : {
'16' : (),
'32' : (),
'64' : ( "r15", "rdi" )
},
'Ev' : {
'16' : (),
'32' : (),
'64' : ()
},
'Ep' : {
'16' : (),
'32' : (),
'64' : ()
},
'Jz' : {
'16' : (),
'32' : (),
'64' : ()
},
'Ap' : {
'16' : (),
'32' : (),
'64' : ()
},
'M' : {
'16' : (),
'32' : (),
'64' : ()
},
'V_W_Ib' : {
'16' : (),
'32' : ( "xmm0, xmm1, 0x10", ),
'64' : ( "xmm2, [r8+rdi+0x20], 0x28", )
},
'P_W' : {
'16' : (),
'32' : ( "mm0, [eax]", "mm1, xmm0" ),
'64' : ()
},
'V_Q' : {
'16' : (),
'32' : ( "xmm0, qword [eax]", ),
'64' : ( "xmm8, mm7", )
},
'Gy_Wss' : {
'16' : (),
'32' : (),
'64' : ()
},
'Gy_Wsd' : {
'16' : (),
'32' : (),
'64' : ()
},
'Gy_W' : {
'16' : (),
'32' : (),
'64' : ()
},
'V_Ex' : {
'16' : (),
'32' : (),
'64' : ()
},
'eAX' : {
'16' : (),
'32' : (),
'64' : ()
},
'eCX' : {
'16' : (),
'32' : (),
'64' : ()
},
'eDX' : {
'16' : (),
'32' : ( "dx", "edx" ),
'64' : ( "edx", )
},
'eBX' : {
'16' : (),
'32' : (),
'64' : ()
},
'eSP' : {
'16' : (),
'32' : (),
'64' : ()
},
'eBP' : {
'16' : (),
'32' : (),
'64' : ()
},
'eSI' : {
'16' : (),
'32' : (),
'64' : ()
},
'eDI' : {
'16' : (),
'32' : (),
'64' : ()
},
'Eb' : {
'16' : (),
'32' : (),
'64' : ()
},
'Iw_Ib' : {
'16' : (),
'32' : (),
'64' : ()
},
'Mq' : {
'16' : (),
'32' : (),
'64' : ()
},
'Md' : {
'16' : (),
'32' : (),
'64' : ()
},
'ST0_ST0' : {
'16' : (),
'32' : ( "st0, st0", ),
'64' : ()
},
'ST1_ST0' : {
'16' : (),
'32' : (),
'64' : ()
},
'ST2_ST0' : {
'16' : (),
'32' : (),
'64' : ()
},
'ST3_ST0' : {
'16' : (),
'32' : ( "st3, st0", ),
'64' : ()
},
'ST4_ST0' : {
'16' : (),
'32' : (),
'64' : ()
},
'ST5_ST0' : {
'16' : (),
'32' : (),
'64' : ()
},
'ST6_ST0' : {
'16' : (),
'32' : (),
'64' : ()
},
'ST7_ST0' : {
'16' : (),
'32' : (),
'64' : ()
},
'ST0_ST1' : {
'16' : (),
'32' : (),
'64' : ()
},
'ST0_ST2' : {
'16' : (),
'32' : (),
'64' : ()
},
'ST0_ST3' : {
'16' : (),
'32' : (),
'64' : ()
},
'ST0_ST4' : {
'16' : (),
'32' : (),
'64' : ()
},
'ST0_ST5' : {
'16' : (),
'32' : ( "st0, st5", ),
'64' : ()
},
'ST0_ST6' : {
'16' : (),
'32' : (),
'64' : ()
},
'ST0_ST7' : {
'16' : (),
'32' : (),
'64' : ()
},
'Mt' : {
'16' : (),
'32' : (),
'64' : ()
},
'ST0' : {
'16' : (),
'32' : ( "st0", ),
'64' : ( "st1", )
},
'ST1' : {
'16' : (),
'32' : (),
'64' : ()
},
'ST2' : {
'16' : (),
'32' : (),
'64' : ()
},
'ST3' : {
'16' : (),
'32' : (),
'64' : ()
},
'ST4' : {
'16' : (),
'32' : (),
'64' : ()
},
'ST5' : {
'16' : (),
'32' : (),
'64' : ()
},
'ST6' : {
'16' : (),
'32' : (),
'64' : ()
},
'ST7' : {
'16' : (),
'32' : (),
'64' : ()
},
'Mw' : {
'16' : (),
'32' : (),
'64' : ()
},
'AX' : {
'16' : (),
'32' : (),
'64' : ()
},
'eAX_Ib' : {
'16' : (),
'32' : (),
'64' : ()
},
'AL_DX' : {
'16' : (),
'32' : (),
'64' : ()
},
'eAX_DX' : {
'16' : (),
'32' : (),
'64' : ()
},
'Gv_Ev_Iz' : {
'16' : (),
'32' : (),
'64' : ()
},
'Gv_Ev_Ib' : {
'16' : (),
'32' : (),
'64' : ()
},
'Gd_Mo' : {
'16' : (),
'32' : (),
'64' : ()
},
'Gq_Mo' : {
'16' : (),
'32' : (),
'64' : ()
},
'Jb' : {
'16' : (),
'32' : (),
'64' : ()
},
'Gv_Ew' : {
'16' : (),
'32' : (),
'64' : ()
},
'V_M' : {
'16' : (),
'32' : (),
'64' : ()
},
'Gz_M' : {
'16' : (),
'32' : (),
'64' : ()
},
'Ew' : {
'16' : (),
'32' : (),
'64' : ()
},
'P_Q' : {
'16' : (),
'32' : ( "mm0, mm6", "mm1, [edi]" ),
'64' : ( "mm6, mm4", "mm7, [rax+rbx]" )
},
'Ev_S' : {
'16' : (),
'32' : (),
'64' : ()
},
'S_Ev' : {
'16' : (),
'32' : (),
'64' : ()
},
'AL_Ob' : {
'16' : (),
'32' : (),
'64' : ()
},
'rAX_Ov' : {
'16' : (),
'32' : (),
'64' : ()
},
'Ob_AL' : {
'16' : (),
'32' : (),
'64' : ()
},
'Ov_rAX' : {
'16' : (),
'32' : (),
'64' : ()
},
'ALr8b_Ib' : {
'16' : (),
'32' : (),
'64' : ()
},
'CLr9b_Ib' : {
'16' : (),
'32' : (),
'64' : ()
},
'DLr10b_Ib' : {
'16' : (),
'32' : (),
'64' : ()
},
'BLr11b_Ib' : {
'16' : (),
'32' : (),
'64' : ()
},
'AHr12b_Ib' : {
'16' : (),
'32' : (),
'64' : ()
},
'CHr13b_Ib' : {
'16' : (),
'32' : (),
'64' : ()
},
'DHr14b_Ib' : {
'16' : (),
'32' : (),
'64' : ()
},
'BHr15b_Ib' : {
'16' : (),
'32' : (),
'64' : ()
},
'rAXr8_Iv' : {
'16' : (),
'32' : (),
'64' : ()
},
'rCXr9_Iv' : {
'16' : (),
'32' : (),
'64' : ()
},
'rDXr10_Iv' : {
'16' : (),
'32' : (),
'64' : ()
},
'rBXr11_Iv' : {
'16' : (),
'32' : (),
'64' : ()
},
'rSPr12_Iv' : {
'16' : (),
'32' : (),
'64' : ()
},
'rBPr13_Iv' : {
'16' : (),
'32' : (),
'64' : ()
},
'rSIr14_Iv' : {
'16' : (),
'32' : (),
'64' : ()
},
'rDIr15_Iv' : {
'16' : (),
'32' : (),
'64' : ()
},
'R_C' : {
'16' : (),
'32' : (),
'64' : ()
},
'R_D' : {
'16' : (),
'32' : (),
'64' : ()
},
'C_R' : {
'16' : (),
'32' : (),
'64' : ()
},
'D_R' : {
'16' : (),
'32' : (),
'64' : ()
},
'W_V' : {
'16' : ( "xmm3, [bx+si]", ),
'32' : (),
'64' : ( "xmm2, [rax+r8+0x10]", )
},
'P_Ex' : {
'16' : (),
'32' : (),
'64' : ()
},
'Ex_V' : {
'16' : (),
'32' : (),
'64' : ()
},
'Ex_P' : {
'16' : (),
'32' : (),
'64' : ()
},
'P_VR' : {
'16' : (),
'32' : (),
'64' : ()
},
'M_V' : {
'16' : (),
'32' : (),
'64' : ()
},
'Gd_VR' : {
'16' : (),
'32' : (),
'64' : ()
},
'M_Gy' : {
'16' : (),
'32' : (),
'64' : ()
},
'M_P' : {
'16' : (),
'32' : (),
'64' : ()
},
'Q_P' : {
'16' : (),
'32' : (),
'64' : ()
},
'P_PR' : {
'16' : (),
'32' : ( "mm0, mm1", ),
'64' : ()
},
'V_PR' : {
'16' : (),
'32' : (),
'64' : ()
},
'Gv_Eb' : {
'16' : (),
'32' : (),
'64' : ()
},
'Ib_AL' : {
'16' : (),
'32' : (),
'64' : ()
},
'Ib_eAX' : {
'16' : (),
'32' : (),
'64' : ()
},
'DX_AL' : {
'16' : (),
'32' : (),
'64' : ()
},
'DX_eAX' : {
'16' : (),
'32' : (),
'64' : ()
},
'Gd_VR_Ib' : {
'16' : (),
'32' : ( 'eax, xmm0, 0x3', ),
'64' : ( )
},
'Gd_PR_Ib' : {
'16' : (),
'32' : ( 'eax, mm1, 0x9', ),
'64' : ()
},
'P_Ew_Ib' : {
'16' : (),
'32' : (),
'64' : ()
},
'V_Ew_Ib' : {
'16' : (),
'32' : (),
'64' : ()
},
'Gd_PR' : {
'16' : (),
'32' : (),
'64' : ()
},
'ES' : {
'16' : (),
'32' : (),
'64' : ()
},
'SS' : {
'16' : (),
'32' : (),
'64' : ()
},
'DS' : {
'16' : (),
'32' : (),
'64' : ()
},
'GS' : {
'16' : (),
'32' : (),
'64' : ()
},
'FS' : {
'16' : (),
'32' : (),
'64' : ()
},
'P_Q_Ib' : {
'16' : (),
'32' : ( "mm0, mm1, 0xb", ),
'64' : ()
},
'VR_Ib' : {
'16' : (),
'32' : (),
'64' : ()
},
'PR_Ib' : {
'16' : (),
'32' : (),
'64' : ()
},
'CS' : {
'16' : (),
'32' : (),
'64' : ()
},
'Iz' : {
'16' : (),
'32' : (),
'64' : ()
},
'Eb_I1' : {
'16' : (),
'32' : (),
'64' : ()
},
'Eb_CL' : {
'16' : (),
'32' : (),
'64' : ()
},
'Ev_CL' : {
'16' : (),
'32' : (),
'64' : ()
},
'Ev_I1' : {
'16' : (),
'32' : (),
'64' : ()
},
'Iw' : {
'16' : (),
'32' : (),
'64' : ()
},
'Ev_Gv_Ib' : {
'16' : (),
'32' : (),
'64' : ()
},
'Ev_Gv_CL' : {
'16' : (),
'32' : (),
'64' : ()
},
'MwRv' : {
'16' : (),
'32' : (),
'64' : ()
},
'Ed_Gd' : {
'16' : (),
'32' : (),
'64' : ()
},
'Eq_Gq' : {
'16' : (),
'32' : (),
'64' : ()
},
'Gd_Ed' : {
'16' : (),
'32' : (),
'64' : ()
},
'Gq_Eq' : {
'16' : (),
'32' : (),
'64' : ()
},
'rAXr8_rAX' : {
'16' : (),
'32' : (),
'64' : ()
},
'rCXr9_rAX' : {
'16' : (),
'32' : (),
'64' : ()
},
'rDXr10_rAX' : {
'16' : (),
'32' : (),
'64' : ()
},
'rBXr11_rAX' : {
'16' : (),
'32' : (),
'64' : ()
},
'rSPr12_rAX' : {
'16' : (),
'32' : (),
'64' : ()
},
'rBPr13_rAX' : {
'16' : (),
'32' : (),
'64' : ()
},
'rSIr14_rAX' : {
'16' : (),
'32' : (),
'64' : ()
},
'rDIr15_rAX' : {
'16' : (),
'32' : (),
'64' : ()
},
'Ev_V_Ib' : {
'16' : (),
'32' : ( 'dword [eax], xmm0, 0x10', ),
'64' : ()
},
'MbRv_V_Ib' : {
'16' : (),
'32' : ( 'byte [eax], xmm0, 0x10', ),
'64' : ()
},
'MdRy_V_Ib' : {
'16' : (),
'32' : ( 'dword [eax], xmm0, 0x10', ),
'64' : ( 'rax, xmm2, 0x20', )
}
}
|
'''
In mathematics, the Fibonacci numbers, commonly denoted Fn,
form a sequence, called the Fibonacci sequence,
such that each number is the sum of the two preceding ones,
starting from 0 and 1.
That is,
F0=0 , F1=1
and
Fn= F(n-1) + F(n-2)
The Fibonacci numbers are the numbers in the following integer sequence.
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, …….
In mathematical terms, the sequence Fn of Fibonacci numbers is
defined by the recurrence relation
Here, given a number n, print n-th Fibonacci Number.
'''
def fib_recursive(n):
"""[summary]
Computes the n-th fibonacci number recursive.
Problem: This implementation is very slow.
approximate O(2^n)
Arguments:
n {[int]} -- [description]
Returns:
[int] -- [description]
"""
# precondition
assert n >= 0, 'n must be a positive integer'
if n <= 1:
return n
return fib_recursive(n-1) + fib_recursive(n-2)
# print(fib_recursive(35)) # => 9227465 (slow)
def fib_list(n):
"""[summary]
This algorithm computes the n-th fibbonacci number
very quick. approximate O(n)
The algorithm use dynamic programming.
Arguments:
n {[int]} -- [description]
Returns:
[int] -- [description]
"""
# precondition
assert n >= 0, 'n must be a positive integer'
list_results = [0, 1]
for i in range(2, n+1):
list_results.append(list_results[i-1] + list_results[i-2])
return list_results[n]
# print(fib_list(100)) # => 354224848179261915075
def fib_iter(n):
"""[summary]
Works iterative approximate O(n)
Arguments:
n {[int]} -- [description]
Returns:
[int] -- [description]
"""
# precondition
assert n >= 0, 'n must be positive integer'
fib_1 = 0
fib_2 = 1
res = 0
if n <= 1:
return n
for _ in range(n-1):
res = fib_1 + fib_2
fib_1 = fib_2
fib_2 = res
return res
# print(fib_iter(100)) # => 354224848179261915075
|
"""Python serial number generator."""
class SerialGenerator:
"""Machine to create unique incrementing serial numbers.
>>> serial = SerialGenerator(start=100)
>>> serial.generate()
100
>>> serial.generate()
101
>>> serial.generate()
102
>>> serial.reset()
>>> serial.generate()
100
"""
def __init__(self, start=0): # Default to 0 if no value is provided
self.start = start # Set the start attribute to whatever it was initialized with
self.current = start # Match the current with the start
self.reset() # Set the next to the starter number
def reset(self): # Resets the count back to the originally initialized value
self.current = self.start # Reset the current back to the start
self.next = self.current + 1 # Start minus one, so we can increment and return in the same function
def generate(self):
self.next = self.next + 1 # Increment the next value
return self.next - 1 # Give out the previous value
test = SerialGenerator(0)
print(F"Should be '0': '{test.current}'")
print(F"Should be '1': '{test.next}'")
print(F"Should be '1': '{test.generate()}'")
print(F"Should be '2': '{test.generate()}'")
print(F"Should be '3': '{test.generate()}'")
print(F"Should be '4': '{test.generate()}'")
print(F"Should be '5': '{test.generate()}'")
test.reset()
print(F"Should be '0': '{test.current}'") |
def calculation(operator,n_1,n_2):
if operator == "multiply":
return n_1 * n_2
elif operator == "divide":
return n_1 // n_2
elif operator == "add":
return n_1 + n_2
elif operator == "subtract":
return n_1 - n_2
operator = input()
n_1 = int(input())
n_2 = int(input())
print(calculation(operator,n_1,n_2)) |
# -*- coding: utf-8 -*-
"""
flaskbb.utils.permissions
~~~~~~~~~~~~~~~~~~~~~~~~~
A place for all permission checks
:copyright: (c) 2014 by the FlaskBB Team.
:license: BSD, see LICENSE for more details.
"""
def check_perm(user, perm, forum, post_user_id=None):
"""Checks if the `user` has a specified `perm` in the `forum`
If post_user_id is provided, it will also check if the user
has created the post
:param user: The user for whom we should check the permission
:param perm: The permission. You can find a full list of available
permissions here: <INSERT LINK TO DOCS>
:param forum: The forum where we should check the permission against
:param post_user_id: If post_user_id is given, it will also perform an
check if the user is the owner of this topic or post.
"""
if can_moderate(user=user, forum=forum):
return True
if post_user_id and user.is_authenticated():
return user.permissions[perm] and user.id == post_user_id
return not user.permissions['banned'] and user.permissions[perm]
def is_moderator(user):
"""Returns ``True`` if the user is in a moderator or super moderator group.
:param user: The user who should be checked.
"""
return user.permissions['mod'] or user.permissions['super_mod']
def is_admin(user):
"""Returns ``True`` if the user is a administrator.
:param user: The user who should be checked.
"""
return user.permissions['admin']
def is_admin_or_moderator(user):
"""Returns ``True`` if the user is either a admin or in a moderator group
:param user: The user who should be checked.
"""
return is_admin(user) or is_moderator(user)
def can_moderate(user, forum=None, perm=None):
"""Checks if a user can moderate a forum or a user.
He needs to be super moderator or a moderator of the
specified forum.
:param user: The user for whom we should check the permission.
:param forum: The forum that should be checked. If no forum is specified
it will check if the user has at least moderator permissions
and then it will perform another permission check for ``mod``
permissions (they start with ``mod_``).
:param perm: Optional - Check if the user also has the permission to do
certain things in the forum. There are a few permissions
where you need to be at least a moderator (or anything higher)
in the forum and therefore you can pass a permission and
it will check if the user has it. Those special permissions
are documented here: <INSERT LINK TO DOCS>
"""
# Check if the user has moderator specific permissions (mod_ prefix)
if is_admin_or_moderator(user) and forum is None:
if perm is not None and perm.startswith("mod_"):
return user.permissions[perm]
# If no permission is definied, return False
return False
# check if the user is a moderation and is moderating the forum
if user.permissions['mod'] and user in forum.moderators:
return True
# if the user is a super_mod or admin, he can moderate all forums
return user.permissions['super_mod'] or user.permissions['admin']
def can_edit_post(user, post):
"""Check if the post can be edited by the user."""
topic = post.topic
if can_moderate(user, topic.forum):
return True
if topic.locked or topic.forum.locked:
return False
return check_perm(user=user, perm='editpost', forum=post.topic.forum,
post_user_id=post.user_id)
def can_delete_post(user, post):
"""Check if the post can be deleted by the user."""
return check_perm(user=user, perm='deletepost', forum=post.topic.forum,
post_user_id=post.user_id)
def can_delete_topic(user, topic):
"""Check if the topic can be deleted by the user."""
return check_perm(user=user, perm='deletetopic', forum=topic.forum,
post_user_id=topic.user_id)
def can_post_reply(user, topic):
"""Check if the user is allowed to post in the forum."""
if can_moderate(user, topic.forum):
return True
if topic.locked or topic.forum.locked:
return False
return check_perm(user=user, perm='postreply', forum=topic.forum)
def can_post_topic(user, forum):
"""Checks if the user is allowed to create a new topic in the forum."""
return check_perm(user=user, perm='posttopic', forum=forum)
# Moderator permission checks
def can_edit_user(user):
"""Check if the user is allowed to edit another users profile.
Requires at least ``mod`` permissions.
"""
return can_moderate(user=user, perm="mod_edituser")
def can_ban_user(user):
"""Check if the user is allowed to ban another user.
Requires at least ``mod`` permissions.
"""
return can_moderate(user=user, perm="mod_banuser")
|
class Solution:
def nextGreatestLetter(self, letters: List[str], target: str) -> str:
if target >= letters[-1]: return letters[0]
left, right = 0, len(letters)
while left < right:
mid = left + (right - left) // 2
if letters[mid] <= target:
left = mid + 1
else:
right = mid
return letters[left] |
# Copyright (c) 2019-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
def f_gold ( keypad , n ) :
if ( not keypad or n <= 0 ) :
return 0
if ( n == 1 ) :
return 10
odd = [ 0 ] * 10
even = [ 0 ] * 10
i = 0
j = 0
useOdd = 0
totalCount = 0
for i in range ( 10 ) :
odd [ i ] = 1
for j in range ( 2 , n + 1 ) :
useOdd = 1 - useOdd
if ( useOdd == 1 ) :
even [ 0 ] = odd [ 0 ] + odd [ 8 ]
even [ 1 ] = odd [ 1 ] + odd [ 2 ] + odd [ 4 ]
even [ 2 ] = odd [ 2 ] + odd [ 1 ] + odd [ 3 ] + odd [ 5 ]
even [ 3 ] = odd [ 3 ] + odd [ 2 ] + odd [ 6 ]
even [ 4 ] = odd [ 4 ] + odd [ 1 ] + odd [ 5 ] + odd [ 7 ]
even [ 5 ] = odd [ 5 ] + odd [ 2 ] + odd [ 4 ] + odd [ 8 ] + odd [ 6 ]
even [ 6 ] = odd [ 6 ] + odd [ 3 ] + odd [ 5 ] + odd [ 9 ]
even [ 7 ] = odd [ 7 ] + odd [ 4 ] + odd [ 8 ]
even [ 8 ] = odd [ 8 ] + odd [ 0 ] + odd [ 5 ] + odd [ 7 ] + odd [ 9 ]
even [ 9 ] = odd [ 9 ] + odd [ 6 ] + odd [ 8 ]
else :
odd [ 0 ] = even [ 0 ] + even [ 8 ]
odd [ 1 ] = even [ 1 ] + even [ 2 ] + even [ 4 ]
odd [ 2 ] = even [ 2 ] + even [ 1 ] + even [ 3 ] + even [ 5 ]
odd [ 3 ] = even [ 3 ] + even [ 2 ] + even [ 6 ]
odd [ 4 ] = even [ 4 ] + even [ 1 ] + even [ 5 ] + even [ 7 ]
odd [ 5 ] = even [ 5 ] + even [ 2 ] + even [ 4 ] + even [ 8 ] + even [ 6 ]
odd [ 6 ] = even [ 6 ] + even [ 3 ] + even [ 5 ] + even [ 9 ]
odd [ 7 ] = even [ 7 ] + even [ 4 ] + even [ 8 ]
odd [ 8 ] = even [ 8 ] + even [ 0 ] + even [ 5 ] + even [ 7 ] + even [ 9 ]
odd [ 9 ] = even [ 9 ] + even [ 6 ] + even [ 8 ]
totalCount = 0
if ( useOdd == 1 ) :
for i in range ( 10 ) :
totalCount += even [ i ]
else :
for i in range ( 10 ) :
totalCount += odd [ i ]
return totalCount
#TOFILL
if __name__ == '__main__':
param = [
([[' ', 'A', 'C', 'K', 'R', 'R', 'V', 'c', 'd', 'i', 'i', 'j', 'm', 'o', 'q', 'q', 'r', 'r', 'v', 'v', 'x', 'z'], ['B', 'D', 'I', 'M', 'N', 'Q', 'R', 'Z', 'c', 'f', 'i', 'j', 'j', 'l', 'l', 'n', 'p', 'q', 's', 't', 't', 'w'], ['A', 'F', 'F', 'G', 'H', 'J', 'K', 'K', 'N', 'V', 'V', 'b', 'c', 'c', 'g', 'i', 'j', 'l', 'l', 's', 't', 'y'], [' ', 'A', 'B', 'B', 'E', 'H', 'I', 'J', 'J', 'P', 'Q', 'T', 'U', 'V', 'Z', 'c', 'c', 'j', 'p', 'w', 'y', 'z'], [' ', ' ', 'A', 'C', 'F', 'G', 'H', 'M', 'N', 'R', 'R', 'V', 'c', 'i', 'j', 'o', 'p', 'p', 'q', 'r', 'w', 'y'], [' ', ' ', 'C', 'C', 'D', 'H', 'I', 'J', 'K', 'O', 'S', 'X', 'Y', 'f', 'h', 'h', 'o', 'p', 'p', 'u', 'u', 'w'], ['B', 'C', 'D', 'H', 'M', 'M', 'Q', 'Q', 'R', 'S', 'X', 'Z', 'e', 'e', 'e', 'j', 'k', 'l', 'm', 'o', 'v', 'w'], ['A', 'C', 'C', 'D', 'H', 'H', 'I', 'J', 'L', 'L', 'L', 'M', 'N', 'S', 'U', 'c', 'd', 'f', 'f', 's', 'u', 'y'], ['A', 'B', 'D', 'D', 'I', 'J', 'K', 'L', 'L', 'M', 'P', 'S', 'S', 'Y', 'b', 'e', 'h', 'j', 'm', 'o', 'q', 's'], [' ', 'B', 'E', 'H', 'H', 'J', 'M', 'P', 'S', 'T', 'U', 'V', 'Z', 'd', 'j', 'm', 'm', 'p', 'q', 'v', 'w', 'w'], ['B', 'E', 'F', 'G', 'H', 'M', 'M', 'M', 'N', 'O', 'Q', 'R', 'T', 'V', 'a', 'c', 'g', 'g', 'i', 's', 'x', 'y'], ['A', 'E', 'G', 'J', 'O', 'R', 'R', 'S', 'T', 'W', 'a', 'b', 'f', 'h', 'h', 'i', 'm', 'n', 's', 'u', 'v', 'y'], ['B', 'D', 'E', 'H', 'I', 'I', 'K', 'M', 'N', 'P', 'Q', 'S', 'a', 'e', 'i', 'j', 'm', 'o', 'p', 'r', 'x', 'z'], ['A', 'G', 'I', 'K', 'K', 'L', 'O', 'P', 'U', 'U', 'X', 'X', 'Z', 'a', 'c', 'f', 'g', 'i', 'l', 'o', 'o', 'v'], [' ', ' ', 'E', 'H', 'J', 'J', 'L', 'M', 'N', 'O', 'P', 'S', 'S', 'X', 'c', 'f', 'g', 'r', 'u', 'v', 'x', 'z'], ['C', 'E', 'F', 'F', 'H', 'H', 'I', 'K', 'M', 'M', 'U', 'Z', 'e', 'e', 'h', 'h', 'h', 'j', 'k', 'k', 'p', 'r'], [' ', ' ', ' ', 'C', 'G', 'I', 'J', 'O', 'O', 'P', 'T', 'V', 'Y', 'b', 'j', 'n', 'o', 'o', 's', 'u', 'w', 'x'], ['A', 'D', 'F', 'F', 'H', 'H', 'N', 'R', 'S', 'W', 'W', 'Y', 'Y', 'b', 'f', 'i', 'k', 'o', 'u', 'y', 'y', 'z'], [' ', 'C', 'G', 'I', 'I', 'L', 'P', 'S', 'X', 'Y', 'd', 'd', 'f', 'g', 'g', 'k', 'm', 'o', 'r', 'r', 'r', 'x'], ['F', 'I', 'J', 'N', 'P', 'P', 'Q', 'Q', 'R', 'X', 'Y', 'a', 'b', 'h', 'h', 'j', 'l', 'm', 'n', 'p', 'r', 'y'], [' ', 'C', 'D', 'E', 'F', 'L', 'Q', 'Q', 'V', 'c', 'g', 'h', 'k', 'k', 'l', 'l', 'n', 'o', 'p', 'r', 'u', 'x'], [' ', 'A', 'G', 'K', 'L', 'M', 'T', 'U', 'U', 'W', 'Z', 'a', 'f', 'i', 'k', 'k', 'n', 'n', 'p', 'q', 'v', 'z']],13,),
([['3', '5', '1', '5', '6', '7', '7', '3', '0', '4', '7', '6', '1', '4', '0', '6', '3', '4', '1', '3', '1', '2', '9', '8', '7', '8', '0', '2', '7', '6', '1', '0', '3', '8', '0', '5', '9', '3', '9', '9', '8', '6'], ['0', '3', '8', '5', '0', '2', '0', '6', '1', '8', '7', '2', '8', '6', '0', '3', '9', '4', '9', '5', '7', '4', '3', '7', '4', '3', '8', '6', '1', '5', '4', '8', '0', '8', '3', '2', '7', '7', '6', '9', '7', '9'], ['6', '7', '1', '1', '7', '2', '5', '3', '2', '8', '4', '7', '8', '6', '1', '5', '2', '1', '6', '5', '7', '6', '8', '6', '8', '8', '1', '6', '3', '1', '1', '7', '1', '6', '4', '9', '2', '8', '2', '6', '3', '4'], ['8', '7', '9', '2', '0', '6', '6', '6', '2', '3', '1', '4', '8', '2', '3', '5', '5', '9', '2', '8', '0', '3', '2', '7', '2', '0', '2', '7', '0', '6', '5', '8', '2', '9', '3', '9', '8', '1', '9', '7', '9', '7'], ['9', '8', '1', '5', '0', '9', '9', '7', '7', '8', '4', '1', '8', '0', '4', '6', '7', '0', '5', '8', '6', '5', '6', '5', '1', '4', '0', '4', '3', '4', '6', '7', '6', '7', '3', '5', '4', '5', '6', '7', '1', '1'], ['4', '4', '4', '9', '8', '8', '7', '5', '3', '1', '8', '4', '8', '1', '0', '4', '9', '8', '9', '5', '2', '7', '5', '3', '4', '8', '2', '4', '7', '5', '0', '3', '6', '2', '5', '6', '3', '1', '9', '4', '8', '9'], ['7', '2', '7', '6', '2', '8', '8', '8', '1', '1', '5', '4', '6', '5', '3', '0', '3', '7', '4', '0', '0', '2', '4', '1', '8', '0', '0', '7', '6', '4', '7', '1', '8', '8', '1', '8', '8', '2', '3', '1', '7', '2'], ['2', '7', '5', '8', '7', '6', '2', '9', '9', '0', '6', '1', '7', '8', '1', '3', '3', '1', '5', '7', '9', '8', '2', '0', '7', '6', '0', '0', '1', '1', '5', '8', '6', '7', '7', '9', '9', '0', '4', '4', '3', '4'], ['0', '9', '9', '0', '5', '4', '9', '9', '3', '0', '3', '1', '5', '9', '9', '5', '3', '0', '2', '3', '9', '9', '7', '8', '5', '4', '6', '4', '2', '8', '7', '0', '2', '3', '6', '5', '2', '6', '0', '6', '5', '7'], ['1', '1', '4', '1', '4', '2', '7', '1', '9', '7', '9', '9', '4', '4', '2', '7', '6', '8', '2', '6', '7', '3', '1', '8', '0', '5', '3', '0', '3', '9', '0', '4', '7', '9', '6', '8', '1', '7', '0', '3', '2', '4'], ['6', '3', '1', '3', '2', '9', '5', '5', '4', '7', '2', '4', '7', '6', '9', '2', '0', '1', '2', '1', '4', '3', '8', '4', '9', '8', '9', '7', '7', '6', '8', '2', '4', '5', '3', '0', '1', '3', '0', '1', '0', '9'], ['5', '9', '4', '2', '1', '5', '0', '2', '6', '6', '0', '8', '3', '0', '3', '3', '3', '0', '7', '8', '0', '7', '7', '4', '3', '0', '6', '9', '6', '2', '2', '2', '8', '3', '7', '2', '4', '0', '0', '4', '5', '2'], ['3', '1', '1', '6', '2', '9', '7', '0', '3', '2', '8', '0', '5', '2', '2', '9', '9', '2', '8', '3', '5', '7', '4', '2', '8', '7', '8', '0', '4', '9', '7', '8', '0', '3', '2', '2', '1', '5', '1', '4', '9', '1'], ['6', '4', '8', '2', '4', '2', '5', '4', '0', '1', '0', '9', '0', '3', '0', '6', '4', '8', '6', '7', '9', '3', '0', '1', '6', '9', '5', '7', '5', '2', '9', '4', '7', '0', '6', '4', '1', '4', '4', '1', '3', '5'], ['6', '7', '8', '2', '9', '5', '0', '2', '6', '5', '4', '9', '4', '7', '8', '4', '6', '7', '6', '5', '1', '3', '8', '1', '7', '5', '9', '3', '9', '4', '0', '6', '5', '6', '9', '8', '4', '6', '9', '9', '0', '2'], ['6', '9', '2', '4', '3', '7', '2', '5', '8', '6', '3', '6', '3', '6', '7', '2', '6', '8', '6', '4', '3', '9', '6', '2', '1', '3', '1', '8', '8', '9', '6', '2', '0', '2', '2', '9', '3', '6', '4', '4', '8', '7'], ['1', '4', '5', '5', '7', '2', '3', '8', '3', '6', '9', '3', '3', '4', '4', '2', '3', '7', '5', '5', '2', '8', '7', '2', '7', '6', '0', '5', '1', '4', '1', '5', '5', '0', '4', '8', '7', '8', '1', '4', '2', '6'], ['5', '6', '8', '0', '0', '6', '3', '8', '3', '8', '2', '0', '8', '5', '4', '4', '0', '0', '8', '5', '8', '9', '1', '3', '3', '1', '1', '2', '9', '9', '1', '2', '1', '3', '5', '8', '7', '9', '3', '1', '3', '5'], ['9', '6', '7', '4', '9', '0', '2', '8', '9', '4', '3', '6', '4', '1', '8', '3', '1', '8', '0', '4', '4', '2', '1', '2', '9', '8', '3', '6', '7', '3', '9', '5', '7', '9', '1', '4', '6', '1', '4', '5', '4', '0'], ['5', '7', '4', '0', '6', '7', '8', '3', '6', '5', '8', '1', '4', '9', '9', '2', '7', '7', '4', '2', '8', '0', '8', '3', '2', '7', '3', '5', '7', '4', '4', '1', '3', '5', '1', '9', '6', '1', '0', '9', '5', '4'], ['3', '4', '0', '0', '3', '2', '2', '2', '9', '7', '5', '5', '1', '8', '4', '7', '9', '0', '7', '4', '1', '9', '3', '7', '3', '9', '5', '0', '3', '6', '6', '8', '8', '4', '1', '8', '2', '3', '9', '5', '3', '3'], ['7', '0', '6', '2', '5', '2', '1', '8', '1', '4', '4', '8', '9', '0', '3', '0', '3', '1', '9', '0', '8', '0', '1', '0', '3', '7', '6', '6', '3', '9', '4', '3', '4', '4', '1', '4', '7', '2', '9', '5', '8', '3'], ['7', '5', '7', '9', '8', '8', '3', '4', '3', '2', '5', '2', '4', '6', '5', '6', '1', '6', '0', '4', '9', '6', '8', '0', '3', '3', '2', '1', '1', '8', '9', '5', '3', '8', '3', '0', '4', '7', '7', '9', '2', '6'], ['6', '3', '9', '7', '5', '8', '5', '1', '1', '6', '6', '0', '8', '3', '2', '7', '3', '0', '4', '5', '1', '2', '3', '0', '4', '2', '8', '4', '1', '1', '0', '2', '3', '2', '5', '6', '3', '0', '1', '2', '2', '5'], ['8', '7', '2', '1', '4', '9', '6', '5', '2', '0', '9', '1', '0', '8', '6', '9', '7', '3', '4', '5', '6', '7', '2', '8', '3', '0', '1', '9', '5', '4', '4', '1', '6', '4', '0', '5', '1', '5', '7', '8', '2', '4'], ['4', '8', '1', '1', '7', '0', '8', '0', '2', '1', '8', '2', '2', '7', '6', '2', '3', '5', '2', '5', '5', '5', '9', '3', '4', '9', '4', '9', '8', '8', '0', '1', '6', '7', '7', '5', '7', '5', '9', '3', '6', '1'], ['5', '8', '6', '8', '0', '7', '3', '1', '9', '2', '3', '5', '5', '5', '0', '9', '2', '2', '2', '8', '7', '7', '6', '7', '6', '7', '4', '3', '9', '8', '3', '9', '3', '5', '7', '1', '3', '1', '4', '0', '7', '1'], ['9', '2', '6', '8', '8', '6', '8', '4', '8', '6', '7', '7', '7', '0', '2', '6', '5', '1', '5', '3', '8', '0', '5', '6', '5', '4', '9', '4', '6', '0', '0', '7', '2', '2', '1', '1', '0', '5', '1', '2', '5', '1'], ['1', '8', '4', '3', '2', '6', '1', '8', '3', '6', '5', '5', '1', '5', '9', '8', '0', '2', '8', '9', '4', '2', '1', '9', '6', '5', '1', '2', '5', '4', '6', '7', '3', '8', '7', '3', '2', '4', '7', '6', '6', '0'], ['9', '2', '9', '7', '5', '6', '4', '9', '5', '4', '8', '5', '2', '4', '0', '5', '5', '1', '0', '9', '3', '6', '4', '0', '9', '4', '2', '7', '5', '1', '3', '4', '8', '3', '7', '4', '2', '8', '3', '0', '2', '8'], ['8', '4', '4', '7', '5', '7', '3', '2', '8', '9', '5', '5', '2', '3', '8', '3', '3', '8', '0', '4', '9', '5', '9', '8', '5', '9', '1', '9', '4', '3', '9', '7', '4', '3', '0', '9', '3', '1', '3', '1', '3', '9'], ['9', '3', '7', '7', '4', '9', '1', '1', '8', '9', '2', '1', '2', '4', '1', '0', '9', '2', '8', '8', '9', '7', '2', '6', '0', '4', '3', '6', '2', '1', '4', '7', '6', '2', '4', '0', '8', '5', '1', '6', '2', '1'], ['6', '8', '7', '3', '6', '4', '3', '9', '3', '7', '1', '5', '0', '5', '5', '1', '7', '9', '3', '9', '8', '9', '9', '6', '6', '3', '1', '2', '2', '2', '0', '7', '8', '4', '7', '3', '6', '2', '2', '1', '9', '6'], ['1', '3', '1', '5', '7', '5', '2', '5', '3', '4', '0', '7', '6', '8', '5', '9', '7', '1', '0', '3', '3', '8', '2', '9', '7', '2', '4', '8', '6', '3', '1', '3', '3', '0', '7', '1', '5', '9', '0', '9', '8', '1'], ['4', '1', '6', '2', '2', '3', '9', '7', '6', '5', '6', '5', '3', '0', '8', '4', '3', '0', '6', '8', '7', '4', '1', '4', '2', '3', '2', '2', '1', '0', '0', '5', '3', '4', '0', '8', '4', '8', '4', '9', '0', '0'], ['2', '1', '1', '4', '8', '0', '6', '9', '7', '0', '9', '4', '7', '6', '1', '1', '5', '2', '0', '6', '9', '2', '0', '2', '7', '3', '3', '0', '5', '2', '6', '3', '0', '1', '8', '3', '5', '5', '3', '9', '8', '5'], ['1', '3', '2', '8', '8', '7', '7', '2', '6', '3', '8', '8', '5', '6', '7', '0', '1', '7', '7', '8', '5', '1', '9', '5', '2', '5', '7', '2', '2', '5', '9', '6', '0', '3', '1', '2', '2', '2', '3', '0', '1', '9'], ['2', '5', '0', '6', '4', '0', '1', '6', '9', '7', '0', '6', '7', '4', '9', '1', '0', '2', '5', '5', '7', '0', '2', '0', '8', '0', '6', '2', '6', '8', '1', '1', '0', '6', '4', '4', '0', '6', '5', '8', '7', '3'], ['9', '7', '8', '6', '0', '3', '7', '5', '7', '5', '6', '0', '5', '6', '3', '9', '6', '3', '2', '6', '0', '0', '6', '5', '8', '3', '7', '3', '7', '3', '5', '2', '4', '9', '4', '1', '0', '7', '9', '7', '6', '2'], ['3', '0', '7', '5', '1', '4', '8', '7', '9', '9', '0', '7', '6', '8', '6', '0', '5', '8', '0', '8', '9', '4', '8', '1', '3', '1', '8', '6', '0', '5', '1', '7', '3', '4', '7', '6', '4', '2', '8', '6', '1', '7'], ['4', '2', '8', '1', '1', '3', '2', '6', '5', '1', '9', '1', '2', '8', '8', '8', '2', '6', '2', '5', '6', '0', '7', '5', '2', '0', '9', '3', '0', '1', '4', '1', '1', '0', '0', '3', '9', '3', '4', '8', '8', '3'], ['9', '1', '9', '0', '9', '4', '0', '8', '4', '9', '7', '6', '7', '6', '0', '7', '1', '1', '7', '4', '9', '0', '0', '7', '3', '2', '8', '1', '6', '9', '7', '2', '0', '1', '6', '1', '9', '8', '9', '7', '5', '3']],39,),
([['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1']],15,),
([['b', 'q', 'b', 'D', 't', 'y', 'Z', 'G', 'd', 'r', 'R', 'R', 'z', 'A', 'Y', 'H', 'D', 'Q', 'X', 'U', 'o', 'a', 'S', 'P', 'S', 'c', 'W', 'r', 'I', 'y', 'E', 'x', 'E', 'k', 'l', 'F', 'M', 'G', 'z', 'T', 'I', 'E', 'D', 'K', 'M', 'l'], ['V', 'm', 'W', 'M', 'l', 'H', 'l', 'j', 'f', 'S', 'k', 'g', 'O', 'W', 'S', 'R', 'I', 'L', 'J', 'Z', 'V', 'X', 'w', 'l', 'K', 's', 'F', 'o', 'X', 'k', 'a', 'L', 'K', 'H', ' ', 'E', 'x', 'b', 'Z', 'w', 'Z', 'Y', 'U', 'y', 'I', 'Q'], ['I', 'o', 's', 'A', 'f', 'Z', 'C', 'o', 'X', 'b', 'd', 's', ' ', 'Y', 'Q', 'U', 'C', 'T', 'K', 'r', 'Q', 'U', 'P', 'C', 'w', 'R', 'e', 's', 'L', 'A', 'j', 'g', 'p', 'B', 'I', 'W', 'L', 'e', 'w', 'b', 'R', 'z', 'Y', 'M', 'M', 'E'], ['k', 'Y', 'v', 'L', 'f', 'x', 'v', 'l', 'C', 'g', 'J', 'V', 'l', 'q', 'p', 'x', 'z', 'A', 'J', 'h', 'V', 'i', 'h', 'r', 'Z', 'i', ' ', 'y', 'M', 'k', 'p', 'q', 'X', 'M', 'U', 'W', 'v', 'v', 'P', 'L', 'n', 'j', 'r', 'O', 'k', ' '], ['K', 'k', 'K', 'Z', 'X', 'W', 'e', ' ', 'x', 'u', 'r', 'l', 'l', 'z', 'V', 'e', 'K', 'z', 'y', 'x', 'f', 'v', 'n', 'f', 'K', 'p', 'b', 'I', 'C', 'p', 'b', 'V', 'R', 't', 'n', 't', 'm', 'A', 'F', 'J', 'U', 'M', 'n', 'g', 'M', 'W'], ['a', 'e', 'x', 'A', 'U', 'V', 'P', 'W', 'W', 'l', 'p', ' ', 'o', 'L', 'X', 'E', 'g', 'k', 'Y', 'W', 'P', 'Y', 'B', 't', 'Z', 'm', 'V', 'Z', 'O', 'z', 'o', 'O', 'm', 's', 'x', 'O', 'L', 'q', 'Z', 'E', 'y', 'B', 'l', 'h', 'h', 'T'], ['c', 'x', 'R', 'R', 'x', 'S', 'R', 'y', 'J', 'Y', 'e', 'F', 'X', 'x', 'h', 'L', 'N', 'Q', 'j', 'X', 's', 'H', 'Z', 'M', 'Q', 'b', 'Q', 'h', 'x', 'R', 'Y', 'C', 'r', 'D', 'b', 'O', 'l', 'W', 'J', 'I', 'A', 'P', 'x', 'D', 'T', 'c'], ['Y', 's', 'B', 'N', 'B', 'g', 'e', 'h', 'l', 'y', 'N', 's', 'a', 'f', 'k', 'p', 'C', 'Q', 'c', 'U', 'A', 'N', 'w', 'V', 'z', 'F', 'j', 'M', 'F', 'g', 'q', 'x', 'r', 'l', 'e', 'Y', 'T', 'z', ' ', 'a', 'n', 'n', 'x', 'p', 'm', 'J'], ['v', 'O', 'a', 'A', 'E', 'q', 'L', 'P', ' ', 'w', 'l', 'G', 'k', 'f', 'M', 'A', 'k', 'i', 'f', 'D', 'z', 'A', 'J', 'Y', 'b', 'g', 'a', 'h', 'e', 'S', 'Q', 'H', 'c', 'f', 'I', 'S', 'X', 'Y', 'J', 'g', 'f', 'n', 'G', 'J', 'r', 'S'], [' ', 'S', 'w', 'G', 'b', 'v', 'z', 'U', 'l', 'k', 'a', 'w', 'y', 'D', 'Q', 'v', 'c', 'T', 'S', 'S', 'n', 'M', 'm', 'j', 'U', 'X', 'a', 'k', 'O', 'A', 'T', 'a', 'U', 'u', 'y', 's', 'W', 'j', 'k', 'n', 'a', 'V', 'X', 'N', 'D', 'C'], ['Z', 'o', 'O', 'a', 'z', 'M', 'X', 'k', 'm', 'X', 'J', 'w', 'y', 'd', 'j', 'c', 'Q', 'E', 'E', 'i', 'g', 'q', 'U', 'v', 'C', 'k', 'y', 't', 'T', 'A', 'o', 'u', 'o', 'e', 'J', 'c', 'c', 'd', 'i', 'o', 'b', 'A', 'h', 'g', 'y', 'Y'], ['O', 'j', 'F', 'A', 'f', 't', 'J', 'u', 'V', 'J', 'P', 'Z', 'C', 'c', 'c', 'y', 'G', 's', 'W', 'X', 'O', 'g', 'q', 'l', 'z', 'L', 'p', 'U', 'o', 'A', 'k', 'v', 'q', 'v', 'I', 'W', 'k', 'r', 'm', 'Y', 'i', 'V', 'Y', 'c', 'P', 'S'], ['N', ' ', 'W', 'k', 'z', 'o', 'V', 'w', 'M', 'a', 'q', 'c', 'P', 'D', 'x', 'O', 'M', 'y', ' ', 'B', 'y', 'L', 'V', 'E', 'j', 'i', 'C', 'k', ' ', ' ', 'c', 'K', 'c', 'h', 'y', 'K', 'c', 'G', 'Q', 'h', 'B', 'i', 'L', 'Q', 'P', 's'], ['X', 'p', 'y', 'I', 'W', 'F', 'F', 'o', 'W', 'g', 'A', 'H', 'a', 'H', 'X', 'F', 'd', 'Y', 'I', 'x', 'n', 'r', 's', 'c', 'B', 'L', 'o', 'B', 'C', 'o', 'G', 'v', 'T', 'q', 'A', 'Z', 'a', 'Z', 'd', 'S', 'B', 'S', 'F', 'I', 'm', 'C'], ['F', 't', 'c', 'w', 'E', 'X', 's', 'F', 'e', 'J', 'h', 'Y', 'f', 'g', 'd', 'f', 'N', 'X', 'G', 'l', 'n', 'M', 'L', 'k', 'P', 'Y', 'M', ' ', 'U', 'X', 'n', 's', 'o', 'F', 'R', 'g', 'E', 'I', 'G', 'P', 'x', 'f', 'h', 'K', 'b', 'k'], ['a', 'p', 'j', 'Q', 'X', 'p', 'h', 'R', 'g', 'U', 'O', 'x', 'X', 'k', 'v', 'm', 'o', 'E', 'Z', 'Z', 'W', 'v', 'k', 'l', 'o', 'O', 'N', 'P', 'Q', 'k', 'A', 'K', 'c', 'l', 'w', 'a', 'k', 'Z', 'd', 'T', 'S', 't', 'K', 'L', 'x', 'k'], ['t', 'f', 'V', 'Q', 'X', 'e', 's', 'f', 'o', 'N', 'U', 'z', 'y', 'K', 'F', ' ', 'A', 'V', 'W', 'A', 'j', 'C', 'T', 'G', 'z', 'K', 'j', ' ', 'I', 'w', 'h', 'Q', 't', 'I', 'm', 'V', 'h', 'M', 'L', 'Q', 'J', 'g', 'p', 'x', 'P', 'i'], ['X', 'Q', 'b', 'i', 'T', 'A', 'R', 'f', 'c', 'r', 'K', 't', 'J', 'E', 'Z', 'd', 'W', 'O', 'G', 'X', 'u', 'I', 'z', ' ', 'm', 'H', 's', 'P', 'd', 's', 'k', 'm', 'E', 'K', 'Y', 'H', 'L', 'b', 'Z', 'y', 'I', 'c', 'p', 'y', 'Y', 'T'], ['P', 'g', 'C', 'T', 'i', 'Z', 's', 's', 'r', 'E', 'L', 'P', 'T', 'o', 'r', 'g', 'x', 'c', 'U', 'b', 'o', 'l', 'H', 'H', 'k', 'b', 'N', 'e', 'S', 'E', 'U', 'c', 'g', 'V', 'E', 'V', 'l', 'L', ' ', 'I', 'h', 'M', 'L', 'z', 'P', 'e'], ['l', 'i', 'O', 'F', 'S', 'e', 'Z', 'j', 'y', 'J', 'p', 'c', 'q', 'j', 'Q', 'E', 'j', 'd', 'u', 'S', 'N', 'Y', 'R', ' ', 'F', 'I', 'f', 'u', 'd', 't', 'u', 'Q', 'J', 'v', 'i', 'x', 'A', 'd', 'k', 'v', 'H', 'Z', 'B', 'u', 'o', 'k'], ['V', 'p', 'B', 'h', 'M', 'a', 'p', 'n', 'z', 'L', 's', 'g', 'c', 'G', 'T', 'X', 'a', 'X', 's', 'h', 'O', 'x', 'h', 's', 'x', 'N', ' ', 'O', 'w', 'F', 'v', 'M', 'W', 'u', 'c', 'Y', 'x', 'x', 'H', 'P', 'T', 'h', 's', 'W', 'w', 'l'], ['B', 'f', 'k', 'U', 'j', 'b', 'X', 'J', 'z', 'y', 'w', 'B', 'n', 'f', 'x', 'N', 'Y', 'l', 'Q', 'h', 't', 'v', 'U', 'y', 'I', 'G', 'q', 'T', 'a', 'i', 'N', 'p', 'e', 'Z', 'Y', 'Q', 'B', 'G', 'e', 'N', 'V', 's', 'E', 'U', 'B', 'h'], ['q', 'Y', 'r', 'w', 't', 'G', 'G', 'M', 'F', ' ', 'e', 'u', 'E', 'g', 's', 'D', 'c', 'h', 'L', 'G', 'x', 'u', 'V', 'j', 'u', 'U', 'i', 'm', 'Y', 'J', 'L', 'P', 'h', 'X', 'p', 'P', 'F', 'f', 'O', 'u', 'U', 'H', 'Y', 'I', 'A', 'X'], ['v', ' ', 'W', 'A', 'e', 't', 'Y', 't', 'I', 's', 'w', 'M', ' ', 'E', 'R', 'K', 'x', 'i', 'O', 'w', 'h', 'e', 'f', 'N', 'i', 'N', 'v', 'q', 'F', 'u', 'A', 'c', 'e', 's', 'p', 'N', 'j', 'G', 'q', 'W', 'q', 'U', 'J', 'b', 'V', 'i'], ['p', 'Y', 'p', 'f', 'I', 'N', 'S', 'C', 'J', 'p', 'O', 'O', 's', 'V', 's', 'Z', 'y', 's', 'l', 'o', 'b', 'e', 'L', 'J', 'm', 'W', 'g', 'P', 'x', 'l', 'W', 'N', 'a', 'T', 'm', 'D', 'p', 'p', 'l', 'P', 'E', 'V', 'c', 'O', 'T', 'Z'], ['x', ' ', 'v', 'X', 'T', 's', 'i', 'A', 'J', 'q', 'H', 'P', 'x', 'q', 'Y', 'n', 's', 'i', 'W', 'z', 'Y', 'q', 'a', 'Z', 't', 'M', 's', 'A', 'q', 'e', 'W', 'V', 'g', 'y', 'x', 'n', 'E', 'p', 'x', 't', 'q', 'R', 'T', 'm', 'h', 'm'], ['M', 'u', 'D', 'R', 'R', 'h', 'B', 'f', ' ', 'H', 'b', 'l', 'q', 'X', 'f', 'b', 'r', 'e', 'v', 'D', 'm', 'T', 'v', 'l', 'g', 'l', 'z', 'y', 'A', 'O', 'i', 'G', 'Q', 'l', 'K', 'G', 'H', 'G', 'S', 'b', 'a', 'b', 'k', 'p', 'g', 'R'], ['G', 'Q', 'P', 'e', 'P', 'r', 'K', 'U', 'l', 'g', 'X', 'q', 'I', 'O', 'U', 'y', 'V', 'Z', 't', 'Q', 'g', 'd', 'T', 'J', 'q', 'w', 'z', 'L', 'V', 'p', 'e', 'X', 'x', 'D', 'k', 'R', 'P', 'U', 'L', 'z', 'a', 'L', 'L', 'Q', 'z', 'D'], ['j', 'W', 'Q', 'E', 'P', 'V', 'f', 'p', 'w', 'n', 'U', 'j', 'Z', 'P', 'f', 'v', 'R', 'r', 'h', 'z', 'r', 'l', 'T', 'P', 'U', 'f', 'v', 'A', 'B', 'k', 'b', 'n', 'o', 'h', 'j', 'K', 'h', 'r', 'f', 'q', 'x', 'E', 'U', 'g', 'd', 'C'], ['C', 'v', 'D', ' ', 'K', 'd', 'd', 'D', 'd', 'f', 'U', 'F', 'l', 'x', 'E', 'D', 'Q', 'L', 'W', 'X', 'E', 'E', 'X', 'T', 'M', 'C', 'e', 'B', 'x', 'o', 'C', 'f', 'd', 'o', 'F', 'T', 'J', 'F', 'G', 'l', 'k', 'x', 'u', 'q', 'N', 't'], ['l', 'd', 'P', 'k', 'N', 'w', 't', 'C', 'u', 'n', 'f', 'Z', 'B', 'A', 'Z', 'z', 'z', 'v', 'Z', 's', 'n', 'f', 'Y', 'c', 's', 'j', 'e', 'M', 'E', 'i', 'N', 'Y', 'D', 'k', 'k', 'n', 'j', 'X', 'q', 'T', 'T', 'G', 'S', 'd', 't', 'd'], ['c', 'c', 'G', 'd', 'y', 'T', 'E', 'w', 'k', 'R', 'd', 'N', 'S', 'M', 'L', 'p', 'H', 'F', 'C', 'L', 'n', 'l', 'C', 'M', 'L', 'u', 'k', ' ', 'X', 'E', 'L', 'J', 'L', 'G', 'l', 'H', 'l', 'r', 'p', 'v', 'D', 'T', 'r', 'L', 'v', 'e'], ['t', 'A', 's', 'J', 'M', 'b', 'P', 'a', 'p', 'G', 'q', 'p', 'i', 'd', 'b', 'C', 'S', 'w', 'c', 'N', 'm', 'A', 'C', 'm', 'f', 'T', 'P', 'z', 'U', 'L', 'o', 'V', 'N', 'M', 'G', 'h', 'V', 'h', 'U', 'S', 'I', 'N', 'f', 'H', 'L', 'f'], ['q', 'V', 'Z', 'j', 's', 'c', 'T', 'n', 'U', 'l', 'E', 'V', 'c', 's', 'J', 'n', 'q', 'b', 'c', 'h', 'e', 'x', 'H', 'G', 'k', 'U', 'P', 'U', 'T', 'W', 'n', 't', 'p', 'i', 'b', 'u', 'b', 'H', 's', 'D', 'L', 'Y', 'Z', 'u', 'P', 'w'], ['s', 'F', 'O', 't', 'J', 'e', 'f', 'P', 'l', 'l', 'v', 'G', 'B', 'J', 'i', 'b', 'i', 'r', 'P', 'x', 'a', 'i', 'X', 'T', 'G', 'G', 'a', 'k', 'd', 'Z', 'L', 'Y', 'U', 'r', 'b', 'p', 't', 'k', 'L', 't', 'x', 'T', 'k', 'v', 'a', 'k'], ['c', 's', 'B', 'Z', 'd', 'h', 'd', 'P', 'w', 'D', 'a', 'c', 'G', 'M', 'T', 'u', 'U', 'O', 'T', 'w', 'a', 'o', 'x', 'V', 'J', 'g', 'N', 'w', 'w', 'f', 'g', 'u', 'j', 'p', 'G', 'T', 'w', 'X', 'J', 'p', 'M', 'y', 'o', 'G', 'm', 'w'], ['w', 'j', 'K', 'u', 'K', 'd', 'N', 'I', 'w', 'E', ' ', 'K', 'K', 'c', 'x', 'U', 'A', 'A', 'v', 'F', 'z', 'a', 'z', 'C', 'V', 'W', 'A', 'o', 'm', 'Z', 'i', 'U', 'F', 'e', 'p', 'w', 'O', 'A', 'T', 'u', 'a', 'P', 'l', 'y', 'w', 'J'], ['b', 'M', 'e', 'h', 'S', 'Q', 'c', 'G', 'D', 'A', 'I', 'H', 'g', 'f', 'E', 'j', 'x', 'u', 'P', 'p', 'p', 'd', 'V', 'F', 'D', 'L', 'L', 'g', 'H', 'h', 'n', 'Q', 'K', 'L', 'g', 'K', 'y', 'Y', 'u', 'A', 'g', 'W', 't', 'J', 'X', 'F'], ['k', 'J', 'l', 'X', 'J', 'm', 'e', 'Y', 'd', 'Z', 'L', 'W', 'r', 'W', 'T', 'J', 'G', 'f', ' ', 's', 'j', 'j', 'P', 'h', 'k', 'x', 'k', 'k', 'B', 'N', 'j', 'h', 's', 'o', 'b', 'm', 'u', 'O', 'i', 'D', 'c', 'B', 'a', 'h', 'B', 'Y'], ['L', 'l', 'R', 'Z', 'f', 'j', 'G', 'E', 'j', 'g', 'X', 'S', 'P', 'H', 'T', 'a', 'c', 'Y', 'b', 'r', 'N', 'N', 'R', 'n', 'd', 'j', 'H', 'M', 'X', 'A', 'V', 'G', 'c', 'r', 'l', 'v', 'F', 'e', 'z', 'k', 'z', 'Q', 'r', 'F', 'L', 'H'], ['U', 'o', 'Y', 'O', 'n', 'J', 'c', 'i', 'j', 'a', 'j', 'H', 'O', 'u', 'S', 'm', 'K', 'y', 'i', 'T', 'v', 'j', ' ', 'v', 'H', 'f', 'r', 'q', 'F', 'a', 'l', 'u', 'F', 'E', 'p', 'b', 'V', ' ', 'm', 'O', 'M', 'E', 'f', 'Q', 't', 'T'], [' ', 'B', 'H', 'i', 'H', 'c', 'T', ' ', 'K', 'u', 'd', 'C', 'F', 'F', 'S', 'v', 'Z', 'A', 'b', 't', 'r', 'G', 'I', 'F', 'p', 'L', 'G', 'N', 'h', 'y', 'm', 'b', 'z', 'V', 'G', 'D', 'p', 'K', 'p', 'C', 'X', 'y', 'w', 'c', 'z', 'K'], ['P', 'q', 'o', 'M', 'T', 'U', 'o', 'r', 'A', 'h', 'S', 'q', 'T', 's', 'V', 'u', 'c', 'N', 'v', 'E', 'r', 'X', 'k', 'v', 'M', 'p', 'Q', 'd', 'Y', 'Q', 'J', 'c', 'L', 'M', 'r', 'Z', 'D', 'k', 'V', 'u', 'G', ' ', 'Y', 'O', 'i', 'x'], ['V', 'x', 'o', 'G', 'T', 'g', 'G', 'N', 'A', 'q', 'p', 'l', 'K', 't', 'j', 'n', 'C', 'U', 'c', 'b', 'q', 'q', 'c', 'C', 'w', 'x', 'B', 'C', 't', 'V', 'z', 'y', 'y', 'o', 'U', 'E', 'O', 'X', 'j', 'V', 'r', 'y', 't', 'n', 'R', 'H'], ['Z', 'O', 'w', 'z', 'v', 'K', 'U', 'c', 'N', 'M', 'h', 'W', 'Y', 'Z', 'g', 'k', 'h', 'o', 'K', 'B', 'K', 'q', 'u', 'P', 'z', 'v', 'j', 'u', 'z', 'P', 'B', 'y', 'p', 'Y', 'U', 'W', 'Z', 'I', 'c', 'm', 'W', 'J', 'c', 'l', ' ', 'O'], ['Q', 'A', 'B', 'Z', 'C', 'D', 'N', 'i', 'W', 'E', 'W', 'V', 'Z', 'k', 'A', 'D', 'z', 'Z', 'I', 't', 'Y', 'K', 'u', 'T', 'u', 'q', 'p', 'V', 'P', 'y', 'o', 'e', 'Y', 'x', 'd', 'L', 'P', 'L', 'p', 'Z', 'E', 'N', 'r', 'c', 'K', 'Z']],31,),
([['1', '1', '1', '1', '2', '2', '3', '3', '3', '4', '4', '5', '5', '6', '7', '7', '7', '8', '8', '9', '9'], ['0', '0', '1', '1', '1', '2', '3', '4', '5', '6', '6', '6', '6', '6', '6', '6', '7', '7', '8', '8', '9'], ['0', '0', '0', '0', '0', '1', '1', '2', '2', '2', '3', '3', '4', '5', '5', '5', '5', '6', '7', '7', '8'], ['0', '1', '1', '2', '2', '2', '2', '2', '3', '3', '4', '4', '5', '5', '6', '6', '7', '7', '7', '9', '9'], ['0', '0', '1', '1', '2', '2', '2', '3', '3', '3', '4', '4', '4', '4', '4', '6', '7', '7', '8', '8', '9'], ['0', '0', '0', '0', '1', '1', '2', '3', '3', '3', '3', '4', '4', '4', '5', '7', '8', '8', '8', '9', '9'], ['0', '0', '0', '0', '0', '0', '1', '1', '2', '3', '4', '5', '5', '6', '6', '7', '7', '8', '8', '9', '9'], ['0', '2', '2', '2', '4', '4', '4', '4', '4', '5', '5', '5', '6', '6', '7', '7', '7', '8', '8', '9', '9'], ['0', '0', '1', '2', '3', '3', '3', '4', '4', '5', '5', '5', '7', '7', '7', '8', '8', '8', '9', '9', '9'], ['0', '0', '1', '2', '2', '3', '4', '4', '4', '4', '4', '5', '6', '6', '6', '7', '8', '8', '9', '9', '9'], ['0', '0', '1', '1', '1', '1', '1', '2', '2', '2', '2', '3', '4', '4', '5', '5', '6', '6', '8', '8', '9'], ['0', '0', '1', '2', '2', '2', '3', '3', '5', '5', '5', '6', '7', '7', '7', '7', '7', '8', '8', '9', '9'], ['0', '0', '1', '1', '1', '3', '5', '5', '5', '5', '6', '6', '6', '6', '6', '7', '7', '8', '8', '9', '9'], ['0', '0', '1', '2', '2', '2', '2', '2', '2', '3', '3', '5', '5', '5', '6', '7', '8', '8', '9', '9', '9'], ['0', '0', '0', '0', '2', '3', '5', '5', '5', '5', '5', '6', '6', '6', '7', '7', '7', '7', '7', '8', '9'], ['0', '0', '1', '2', '2', '3', '3', '3', '4', '4', '4', '5', '5', '5', '6', '6', '6', '7', '7', '8', '9'], ['0', '0', '0', '0', '1', '1', '3', '3', '3', '4', '4', '5', '5', '6', '7', '8', '8', '8', '9', '9', '9'], ['0', '0', '1', '1', '1', '1', '1', '2', '2', '3', '5', '5', '6', '6', '6', '7', '7', '7', '7', '8', '8'], ['0', '1', '1', '1', '1', '2', '2', '4', '4', '4', '4', '4', '5', '5', '6', '7', '7', '8', '8', '9', '9'], ['1', '1', '2', '2', '3', '3', '4', '5', '5', '5', '5', '6', '6', '7', '7', '7', '8', '8', '8', '9', '9'], ['0', '0', '0', '0', '2', '2', '2', '3', '3', '4', '5', '5', '5', '5', '5', '5', '6', '7', '7', '7', '9']],11,),
([['0', '1', '0', '1', '1', '1', '0', '1', '1', '0', '1', '0', '0', '0', '1', '1', '1', '1', '0', '0', '0', '1', '1', '1', '0', '1', '1', '1', '1', '1', '0', '0', '0', '1', '1', '1', '1', '0', '1'], ['1', '0', '0', '0', '1', '0', '1', '1', '0', '0', '0', '0', '1', '0', '0', '0', '1', '1', '0', '0', '0', '1', '0', '0', '1', '0', '1', '1', '1', '1', '0', '0', '0', '0', '0', '0', '0', '1', '0'], ['0', '1', '1', '0', '1', '0', '1', '1', '0', '0', '0', '1', '0', '1', '1', '0', '1', '0', '0', '1', '0', '1', '0', '1', '1', '1', '0', '1', '0', '0', '0', '1', '0', '0', '1', '1', '1', '0', '0'], ['0', '1', '1', '0', '0', '1', '1', '1', '0', '0', '0', '1', '1', '1', '1', '1', '0', '1', '0', '1', '1', '0', '0', '0', '1', '1', '0', '0', '1', '1', '1', '1', '0', '0', '0', '0', '1', '1', '0'], ['1', '1', '1', '1', '1', '0', '0', '0', '1', '0', '1', '1', '0', '1', '1', '0', '0', '1', '1', '1', '1', '0', '1', '0', '0', '0', '0', '0', '1', '0', '0', '1', '0', '0', '1', '0', '0', '1', '1'], ['1', '0', '1', '0', '0', '1', '1', '1', '1', '0', '1', '1', '0', '0', '0', '0', '1', '0', '0', '1', '0', '1', '0', '1', '1', '1', '1', '0', '0', '1', '0', '0', '1', '1', '0', '1', '0', '1', '0'], ['0', '0', '0', '0', '1', '1', '0', '1', '0', '1', '0', '1', '1', '1', '1', '1', '0', '1', '1', '0', '1', '0', '0', '1', '0', '1', '0', '0', '0', '0', '1', '1', '1', '1', '0', '0', '0', '1', '1'], ['1', '0', '0', '1', '1', '1', '1', '0', '0', '0', '1', '0', '0', '1', '0', '0', '0', '0', '1', '0', '1', '0', '0', '0', '0', '1', '1', '0', '1', '1', '0', '1', '0', '0', '0', '0', '1', '0', '0'], ['0', '0', '1', '1', '1', '1', '0', '1', '0', '1', '1', '1', '1', '0', '1', '1', '0', '0', '0', '0', '0', '0', '0', '1', '0', '1', '1', '0', '1', '0', '0', '0', '1', '1', '0', '1', '1', '1', '1'], ['1', '0', '0', '1', '1', '0', '1', '1', '0', '0', '0', '1', '1', '0', '1', '0', '1', '0', '0', '0', '0', '1', '1', '1', '0', '1', '1', '0', '0', '1', '0', '0', '0', '1', '1', '0', '1', '0', '0'], ['0', '0', '0', '1', '0', '0', '1', '1', '0', '0', '1', '0', '0', '1', '0', '0', '0', '0', '1', '1', '0', '1', '0', '0', '1', '0', '1', '0', '1', '0', '1', '1', '0', '0', '0', '1', '0', '0', '1'], ['1', '0', '0', '1', '0', '0', '0', '0', '1', '1', '1', '0', '1', '1', '1', '0', '0', '0', '0', '0', '0', '1', '0', '1', '0', '1', '0', '1', '1', '1', '1', '0', '1', '0', '1', '1', '0', '1', '0'], ['0', '0', '1', '0', '0', '0', '1', '1', '1', '1', '1', '0', '1', '1', '1', '1', '0', '0', '1', '0', '0', '0', '0', '1', '0', '1', '1', '0', '0', '1', '1', '1', '0', '0', '0', '1', '1', '0', '0'], ['0', '1', '0', '1', '0', '0', '0', '0', '1', '1', '1', '1', '0', '0', '0', '0', '1', '1', '1', '0', '0', '0', '0', '0', '0', '1', '0', '1', '1', '1', '1', '0', '0', '1', '0', '0', '0', '0', '0'], ['0', '0', '0', '0', '1', '1', '0', '0', '1', '1', '0', '0', '0', '1', '1', '0', '1', '0', '0', '0', '0', '1', '0', '0', '1', '1', '1', '0', '0', '1', '1', '1', '1', '0', '1', '0', '1', '1', '1'], ['1', '1', '0', '1', '1', '0', '0', '0', '0', '0', '0', '1', '0', '1', '0', '0', '0', '1', '1', '0', '1', '1', '0', '0', '1', '0', '0', '1', '0', '0', '0', '0', '1', '0', '1', '0', '1', '0', '1'], ['0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '0', '1', '0', '0', '1', '1', '1', '1', '1', '0'], ['1', '1', '0', '1', '1', '1', '0', '0', '1', '1', '0', '0', '1', '0', '1', '1', '0', '1', '1', '0', '0', '1', '1', '0', '0', '1', '0', '0', '0', '0', '0', '1', '0', '0', '0', '1', '0', '1', '1'], ['0', '0', '1', '0', '1', '0', '0', '0', '0', '0', '1', '0', '0', '1', '1', '1', '0', '1', '0', '0', '0', '0', '0', '1', '0', '0', '0', '0', '1', '0', '1', '1', '1', '0', '1', '1', '1', '0', '0'], ['1', '1', '0', '1', '0', '0', '1', '1', '1', '1', '0', '0', '1', '0', '0', '0', '1', '1', '1', '0', '1', '0', '1', '0', '1', '1', '1', '1', '1', '0', '0', '0', '1', '0', '0', '0', '1', '1', '1'], ['1', '0', '0', '1', '1', '1', '0', '0', '1', '1', '1', '1', '1', '0', '0', '0', '0', '0', '1', '0', '1', '0', '0', '0', '0', '1', '0', '0', '1', '1', '0', '1', '1', '0', '1', '0', '0', '0', '0'], ['0', '0', '1', '1', '0', '1', '1', '1', '0', '0', '0', '1', '1', '1', '1', '1', '0', '1', '1', '1', '1', '0', '1', '0', '1', '0', '1', '1', '1', '0', '0', '1', '0', '1', '1', '1', '1', '0', '0'], ['0', '1', '0', '1', '1', '1', '1', '1', '0', '0', '1', '1', '0', '1', '0', '1', '1', '0', '0', '0', '1', '0', '0', '1', '0', '1', '0', '0', '1', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1'], ['0', '1', '1', '1', '1', '0', '1', '1', '0', '0', '1', '0', '0', '1', '1', '0', '1', '0', '0', '0', '1', '1', '0', '0', '0', '0', '0', '1', '1', '0', '1', '1', '0', '1', '1', '1', '0', '0', '1'], ['0', '0', '0', '1', '0', '0', '1', '0', '1', '0', '0', '1', '0', '1', '1', '0', '1', '0', '1', '1', '0', '0', '0', '0', '1', '0', '1', '0', '0', '1', '0', '1', '1', '1', '1', '0', '0', '0', '1'], ['1', '0', '0', '1', '0', '1', '0', '1', '0', '0', '1', '1', '1', '0', '0', '0', '1', '0', '1', '1', '0', '1', '1', '1', '0', '0', '1', '1', '0', '1', '1', '0', '1', '1', '0', '0', '1', '1', '0'], ['0', '0', '1', '0', '1', '1', '0', '0', '1', '1', '1', '0', '0', '1', '1', '1', '0', '1', '0', '0', '0', '0', '1', '1', '1', '1', '1', '0', '0', '1', '0', '1', '0', '0', '1', '0', '1', '0', '0'], ['1', '1', '0', '0', '1', '1', '1', '0', '0', '1', '0', '1', '1', '1', '0', '0', '0', '0', '0', '1', '0', '1', '0', '1', '1', '0', '1', '1', '1', '0', '0', '1', '0', '0', '1', '0', '1', '1', '1'], ['0', '1', '0', '0', '1', '1', '0', '1', '1', '0', '1', '0', '1', '1', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '0', '1', '0', '0', '0', '0', '0', '1', '1', '0', '1', '0', '1'], ['1', '0', '1', '0', '1', '1', '0', '0', '0', '1', '1', '0', '0', '0', '0', '1', '1', '0', '0', '0', '0', '0', '0', '1', '1', '0', '1', '0', '1', '1', '1', '0', '0', '0', '0', '1', '1', '1', '0'], ['1', '0', '1', '0', '1', '0', '1', '0', '0', '1', '1', '1', '0', '1', '1', '1', '1', '0', '0', '1', '0', '1', '0', '0', '0', '1', '1', '0', '1', '1', '1', '0', '1', '0', '0', '0', '0', '0', '1'], ['1', '1', '0', '0', '1', '0', '0', '1', '1', '1', '1', '0', '0', '0', '0', '0', '0', '1', '1', '0', '0', '1', '0', '0', '1', '1', '1', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '0', '0'], ['1', '0', '0', '1', '1', '0', '1', '1', '0', '0', '0', '0', '0', '1', '0', '0', '1', '1', '1', '1', '1', '1', '0', '0', '0', '1', '1', '1', '1', '0', '0', '1', '1', '0', '1', '1', '1', '0', '1'], ['0', '1', '0', '0', '0', '1', '0', '1', '0', '0', '1', '0', '1', '0', '1', '1', '0', '1', '0', '1', '1', '0', '0', '0', '0', '0', '1', '1', '0', '1', '1', '0', '1', '1', '0', '0', '1', '1', '1'], ['1', '0', '1', '1', '1', '1', '1', '1', '0', '0', '1', '0', '1', '0', '1', '0', '0', '1', '0', '0', '0', '0', '1', '1', '0', '1', '0', '1', '0', '1', '1', '1', '1', '1', '1', '0', '0', '1', '0'], ['0', '1', '1', '1', '0', '1', '0', '1', '1', '0', '0', '0', '1', '0', '0', '0', '1', '0', '0', '0', '0', '1', '0', '0', '0', '0', '0', '1', '1', '1', '0', '1', '1', '0', '1', '1', '1', '1', '1'], ['1', '1', '1', '0', '1', '1', '0', '0', '0', '0', '1', '1', '0', '1', '1', '0', '1', '0', '0', '1', '0', '0', '1', '1', '1', '0', '1', '1', '0', '1', '1', '1', '0', '1', '1', '0', '0', '0', '1'], ['0', '1', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1', '0', '0', '1', '1', '0', '1', '0', '0', '1', '1', '1', '0', '0', '1', '0', '0', '0', '0', '1', '0', '1', '0', '1', '0', '1', '1', '0'], ['1', '1', '0', '1', '1', '0', '0', '1', '1', '1', '0', '1', '1', '0', '1', '1', '0', '0', '1', '1', '1', '1', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '1', '0', '0', '1', '1', '1']],20,),
([['B', 'D', 'D', 'E', 'H', 'H', 'J', 'M', 'M', 'M', 'M', 'N', 'O', 'O', 'P', 'R', 'S', 'T', 'U', 'U', 'W', 'W', 'Z', 'Z', 'b', 'c', 'c', 'e', 'f', 'g', 'j', 'k', 'k', 'n', 'o', 'r', 't', 'u', 'v'], [' ', 'A', 'A', 'A', 'C', 'C', 'D', 'D', 'E', 'F', 'H', 'J', 'J', 'K', 'L', 'L', 'N', 'T', 'T', 'U', 'W', 'Y', 'Z', 'c', 'f', 'g', 'i', 'i', 'k', 'k', 'm', 'n', 'o', 'p', 'r', 'r', 'u', 'v', 'x'], [' ', 'A', 'A', 'C', 'D', 'E', 'G', 'H', 'K', 'K', 'L', 'Q', 'S', 'U', 'V', 'Z', 'a', 'd', 'e', 'g', 'i', 'i', 'j', 'n', 'o', 'o', 'p', 'p', 'q', 's', 's', 't', 't', 'w', 'x', 'x', 'x', 'y', 'z'], [' ', 'B', 'D', 'E', 'G', 'H', 'H', 'H', 'H', 'K', 'M', 'O', 'O', 'R', 'R', 'S', 'S', 'U', 'V', 'X', 'a', 'a', 'd', 'e', 'e', 'f', 'h', 'i', 'j', 'p', 'p', 'q', 'q', 'q', 's', 'w', 'w', 'y', 'z'], [' ', 'A', 'A', 'C', 'E', 'F', 'G', 'H', 'J', 'J', 'K', 'M', 'O', 'S', 'S', 'U', 'X', 'Y', 'Z', 'b', 'd', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'n', 'q', 'q', 's', 's', 't', 'u', 'u', 'v', 'y', 'z'], ['H', 'H', 'H', 'H', 'J', 'J', 'K', 'M', 'N', 'S', 'U', 'U', 'V', 'V', 'V', 'W', 'Y', 'a', 'b', 'c', 'c', 'e', 'f', 'f', 'f', 'h', 'k', 'l', 'm', 'q', 'q', 's', 't', 'v', 'v', 'w', 'w', 'y', 'z'], ['A', 'B', 'D', 'G', 'H', 'I', 'J', 'J', 'L', 'M', 'N', 'P', 'Q', 'S', 'T', 'T', 'X', 'X', 'X', 'Y', 'Z', 'a', 'c', 'd', 'd', 'd', 'i', 'k', 'l', 'm', 'n', 'p', 'q', 'q', 't', 'w', 'x', 'y', 'y'], [' ', 'B', 'B', 'C', 'E', 'F', 'G', 'H', 'I', 'I', 'I', 'J', 'J', 'K', 'M', 'N', 'O', 'O', 'P', 'Q', 'S', 'T', 'W', 'Y', 'Y', 'a', 'c', 'd', 'h', 'h', 'i', 'j', 'k', 'o', 'o', 's', 'z', 'z', 'z'], [' ', 'A', 'C', 'C', 'D', 'E', 'E', 'E', 'F', 'H', 'H', 'M', 'M', 'N', 'N', 'R', 'T', 'W', 'Z', 'Z', 'd', 'e', 'h', 'h', 'j', 'j', 'k', 'm', 'n', 'o', 'p', 'r', 's', 's', 't', 'w', 'x', 'x', 'x'], ['A', 'D', 'I', 'M', 'P', 'Q', 'U', 'U', 'Y', 'Y', 'Z', 'Z', 'Z', 'a', 'b', 'c', 'e', 'f', 'f', 'f', 'g', 'g', 'h', 'h', 'i', 'i', 'j', 'm', 'n', 'o', 'p', 'q', 'r', 'u', 'u', 'u', 'w', 'x', 'z'], [' ', 'A', 'A', 'A', 'B', 'C', 'E', 'F', 'G', 'H', 'J', 'Q', 'R', 'S', 'U', 'U', 'V', 'W', 'Y', 'Z', 'a', 'b', 'b', 'd', 'g', 'j', 'k', 'l', 'l', 'm', 'n', 'n', 'o', 's', 's', 'u', 'w', 'w', 'w'], [' ', 'A', 'B', 'C', 'E', 'E', 'E', 'H', 'J', 'J', 'K', 'M', 'N', 'P', 'R', 'U', 'U', 'V', 'W', 'a', 'e', 'f', 'k', 'k', 'k', 'l', 'l', 'm', 'n', 'n', 'o', 'o', 'o', 'q', 'r', 'r', 't', 'u', 'x'], [' ', 'B', 'B', 'E', 'F', 'F', 'H', 'O', 'O', 'P', 'P', 'Q', 'R', 'S', 'T', 'X', 'a', 'a', 'a', 'b', 'e', 'f', 'g', 'i', 'j', 'm', 'n', 'p', 'r', 't', 't', 't', 'u', 'v', 'v', 'w', 'x', 'x', 'z'], [' ', 'A', 'B', 'C', 'D', 'E', 'E', 'G', 'H', 'J', 'J', 'J', 'K', 'K', 'M', 'P', 'Q', 'R', 'R', 'W', 'X', 'X', 'Z', 'a', 'a', 'e', 'h', 'i', 'j', 'k', 'q', 'q', 'r', 'r', 's', 'u', 'x', 'x', 'y'], [' ', 'B', 'I', 'I', 'J', 'J', 'K', 'N', 'O', 'P', 'P', 'R', 'U', 'X', 'Z', 'Z', 'Z', 'b', 'd', 'f', 'f', 'h', 'h', 'h', 'j', 'k', 'k', 'n', 'n', 'o', 'o', 'p', 'q', 's', 't', 'v', 'w', 'x', 'z'], [' ', ' ', 'B', 'E', 'K', 'L', 'M', 'N', 'Q', 'Q', 'R', 'S', 'T', 'U', 'V', 'V', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'e', 'e', 'g', 'i', 'i', 'm', 'n', 'o', 'p', 's', 'u', 'u', 'v', 'w', 'x', 'z'], ['E', 'E', 'E', 'E', 'J', 'K', 'K', 'M', 'N', 'P', 'Q', 'S', 'S', 'V', 'W', 'W', 'W', 'X', 'Y', 'c', 'c', 'd', 'e', 'f', 'h', 'n', 'n', 'p', 'q', 'r', 's', 't', 'u', 'v', 'x', 'x', 'y', 'z', 'z'], [' ', ' ', ' ', 'E', 'E', 'F', 'F', 'G', 'G', 'H', 'J', 'L', 'O', 'Q', 'R', 'R', 'T', 'V', 'W', 'Y', 'Y', 'Z', 'Z', 'c', 'f', 'g', 'h', 'h', 'j', 'l', 'q', 'q', 'q', 't', 'v', 'x', 'x', 'y', 'y'], ['B', 'D', 'G', 'G', 'H', 'J', 'J', 'K', 'M', 'Q', 'S', 'S', 'T', 'T', 'T', 'U', 'V', 'Z', 'Z', 'a', 'b', 'd', 'e', 'g', 'g', 'h', 'h', 'l', 'l', 'n', 'o', 's', 'u', 'u', 'v', 'v', 'w', 'x', 'y'], [' ', ' ', 'B', 'B', 'B', 'C', 'D', 'D', 'E', 'I', 'L', 'M', 'O', 'O', 'P', 'P', 'Q', 'R', 'R', 'R', 'R', 'R', 'U', 'a', 'b', 'c', 'd', 'e', 'g', 'k', 'l', 'l', 'n', 'n', 'n', 'p', 'p', 'r', 'r'], [' ', ' ', 'B', 'E', 'E', 'F', 'G', 'L', 'M', 'N', 'N', 'O', 'P', 'R', 'R', 'S', 'S', 'S', 'T', 'T', 'Y', 'Y', 'Z', 'a', 'a', 'b', 'd', 'e', 'f', 'j', 'j', 'k', 'l', 'l', 'm', 'o', 'o', 'p', 'y'], ['A', 'B', 'E', 'E', 'H', 'H', 'I', 'J', 'J', 'N', 'O', 'P', 'Q', 'R', 'V', 'V', 'W', 'W', 'X', 'X', 'Y', 'Z', 'Z', 'g', 'i', 'j', 'j', 'm', 'n', 'o', 'q', 'r', 'r', 's', 's', 's', 's', 't', 'x'], [' ', 'G', 'J', 'L', 'M', 'M', 'Q', 'Q', 'Q', 'S', 'U', 'W', 'W', 'Y', 'Z', 'Z', 'a', 'b', 'f', 'h', 'i', 'i', 'l', 'l', 'm', 'n', 'o', 'p', 'p', 'p', 'q', 'q', 'q', 's', 's', 't', 'u', 'v', 'w'], ['B', 'B', 'D', 'E', 'E', 'H', 'I', 'J', 'K', 'K', 'L', 'S', 'T', 'V', 'X', 'b', 'b', 'b', 'd', 'd', 'g', 'h', 'h', 'h', 'i', 'i', 'k', 'l', 'm', 'm', 'n', 'o', 'v', 'w', 'x', 'x', 'x', 'z', 'z'], ['B', 'C', 'C', 'C', 'D', 'D', 'E', 'F', 'J', 'K', 'M', 'N', 'O', 'O', 'Q', 'Q', 'R', 'R', 'R', 'S', 'T', 'U', 'V', 'W', 'W', 'a', 'b', 'f', 'g', 'i', 'm', 'n', 'n', 'n', 'p', 'p', 'p', 'u', 'v'], [' ', 'B', 'D', 'F', 'F', 'H', 'J', 'J', 'M', 'M', 'N', 'T', 'U', 'c', 'd', 'e', 'e', 'j', 'j', 'j', 'l', 'l', 'm', 'm', 'n', 'n', 'o', 'p', 'p', 'p', 's', 't', 't', 'v', 'v', 'w', 'y', 'y', 'y'], [' ', 'A', 'A', 'B', 'D', 'G', 'H', 'H', 'H', 'I', 'K', 'N', 'O', 'P', 'R', 'S', 'T', 'Y', 'Y', 'a', 'b', 'c', 'e', 'f', 'g', 'h', 'j', 'j', 'j', 'm', 'n', 'o', 's', 's', 'u', 'u', 'x', 'x', 'z'], [' ', ' ', 'F', 'G', 'G', 'J', 'N', 'N', 'P', 'S', 'S', 'S', 'T', 'T', 'X', 'Z', 'a', 'd', 'e', 'f', 'f', 'h', 'i', 'j', 'k', 'm', 'm', 'n', 'r', 's', 's', 't', 'v', 'w', 'x', 'x', 'x', 'z', 'z'], ['B', 'B', 'D', 'I', 'J', 'L', 'M', 'M', 'N', 'P', 'P', 'Q', 'S', 'U', 'X', 'X', 'X', 'Y', 'Z', 'a', 'b', 'e', 'e', 'f', 'g', 'i', 'j', 'l', 'm', 'o', 'q', 'r', 'r', 't', 'v', 'w', 'w', 'w', 'w'], [' ', 'A', 'B', 'C', 'D', 'D', 'E', 'F', 'F', 'H', 'I', 'J', 'J', 'M', 'N', 'N', 'O', 'S', 'U', 'V', 'W', 'W', 'e', 'g', 'h', 'h', 'i', 'j', 'j', 'o', 'p', 'q', 'q', 'r', 't', 'v', 'v', 'x', 'y'], [' ', 'A', 'A', 'C', 'C', 'D', 'D', 'D', 'E', 'G', 'I', 'J', 'O', 'Q', 'S', 'S', 'S', 'T', 'T', 'V', 'X', 'Y', 'Y', 'b', 'i', 'k', 'l', 'l', 'm', 'n', 'p', 't', 'v', 'w', 'w', 'x', 'x', 'y', 'z'], ['A', 'A', 'D', 'F', 'G', 'H', 'I', 'L', 'N', 'P', 'Q', 'S', 'T', 'U', 'V', 'W', 'W', 'X', 'Y', 'Z', 'b', 'c', 'f', 'g', 'g', 'g', 'j', 'j', 'j', 'l', 'q', 's', 's', 'v', 'v', 'w', 'x', 'y', 'z'], ['B', 'H', 'I', 'J', 'K', 'K', 'L', 'L', 'M', 'N', 'N', 'N', 'P', 'P', 'S', 'T', 'U', 'V', 'W', 'W', 'a', 'a', 'a', 'a', 'b', 'j', 'j', 'k', 'm', 'n', 'p', 'u', 'u', 'u', 'v', 'w', 'x', 'y', 'z'], ['B', 'B', 'D', 'D', 'D', 'E', 'G', 'H', 'I', 'I', 'I', 'L', 'N', 'N', 'O', 'P', 'R', 'R', 'R', 'S', 'V', 'V', 'Y', 'Z', 'a', 'b', 'h', 'k', 'l', 'm', 'n', 'o', 'p', 'p', 'q', 'r', 's', 'x', 'z'], ['A', 'B', 'B', 'G', 'G', 'H', 'J', 'J', 'L', 'M', 'M', 'N', 'N', 'P', 'P', 'P', 'R', 'S', 'T', 'X', 'Z', 'd', 'd', 'f', 'f', 'j', 'j', 'j', 'l', 'l', 'l', 'm', 'r', 'r', 'u', 'v', 'v', 'x', 'x'], [' ', 'B', 'B', 'C', 'E', 'G', 'J', 'J', 'K', 'L', 'N', 'O', 'Q', 'R', 'T', 'T', 'V', 'V', 'X', 'X', 'b', 'e', 'f', 'i', 'i', 'k', 'm', 'n', 'o', 'o', 'p', 's', 's', 'u', 'u', 'w', 'x', 'x', 'x'], ['A', 'A', 'A', 'B', 'B', 'E', 'H', 'H', 'H', 'I', 'J', 'J', 'N', 'Q', 'Q', 'R', 'R', 'U', 'V', 'X', 'a', 'b', 'd', 'd', 'e', 'e', 'g', 'g', 'k', 'k', 'l', 'n', 'n', 'p', 'q', 'q', 'v', 'w', 'x'], ['B', 'B', 'B', 'C', 'C', 'D', 'E', 'F', 'H', 'I', 'I', 'K', 'N', 'N', 'P', 'P', 'P', 'U', 'W', 'X', 'Z', 'c', 'e', 'h', 'h', 'i', 'j', 'l', 'p', 'p', 'r', 'r', 'r', 'r', 'v', 'w', 'x', 'x', 'y'], [' ', ' ', 'B', 'C', 'C', 'D', 'E', 'E', 'H', 'L', 'O', 'P', 'P', 'S', 'T', 'V', 'Y', 'Y', 'Y', 'c', 'd', 'e', 'e', 'f', 'h', 'h', 'h', 'j', 'k', 'l', 'm', 'n', 'r', 's', 's', 'u', 'x', 'y', 'y']],38,),
([['8', '0', '3', '3', '7', '7', '3', '5', '4', '9', '6', '9', '4', '6', '9'], ['8', '7', '2', '2', '6', '9', '6', '0', '0', '6', '8', '1', '6', '1', '5'], ['2', '0', '5', '1', '8', '0', '0', '2', '9', '4', '1', '4', '8', '0', '2'], ['9', '9', '9', '5', '1', '8', '9', '5', '8', '7', '2', '9', '4', '0', '4'], ['1', '6', '7', '1', '7', '4', '7', '4', '6', '4', '3', '8', '0', '4', '9'], ['2', '7', '9', '6', '1', '2', '2', '9', '0', '7', '2', '3', '2', '0', '9'], ['9', '5', '3', '3', '6', '1', '3', '1', '3', '4', '3', '4', '1', '5', '9'], ['1', '6', '5', '2', '6', '7', '1', '8', '6', '6', '2', '2', '6', '7', '6'], ['5', '3', '8', '0', '3', '6', '3', '2', '1', '2', '3', '8', '1', '0', '2'], ['2', '2', '6', '8', '0', '6', '5', '9', '9', '3', '9', '5', '8', '6', '4'], ['4', '1', '0', '3', '9', '1', '0', '8', '3', '4', '0', '9', '0', '6', '8'], ['1', '7', '9', '6', '6', '1', '7', '2', '5', '9', '5', '2', '1', '1', '8'], ['7', '7', '4', '5', '2', '6', '4', '3', '4', '9', '1', '4', '3', '7', '2'], ['1', '3', '0', '5', '9', '2', '2', '6', '2', '4', '0', '7', '2', '6', '1'], ['0', '4', '4', '2', '6', '9', '5', '4', '3', '2', '6', '5', '6', '4', '0']],8,),
([['0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1'], ['0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '1']],6,),
([['u', 'V', 'l', 'L', 'o', 'i', 'o', 'L', 'S', 'D', 'S', 'u', 'Z', 'E', 's', 'q', 'P', 'X', 'd', 'v', 'W', 'J', 'p', 'r', 'e', 'j', 'F', 'l', 'Z', 'U', 'R', 'Y', 'M', 'C', 'S', 'C', 'Q', 'A'], ['w', 'p', 'O', 'x', 'a', 'v', 'Q', 'Z', 'n', 'Q', 'j', 't', 'N', ' ', 'n', 'u', 'y', 'x', 'E', 'r', 'd', 'e', 'g', 'e', 'H', 'Z', 'b', 's', 'A', 'R', 'x', 'h', 'v', 'X', 'x', 'K', 'P', 'M'], ['y', 'D', 'z', 't', 'g', 'L', 'B', 'N', 'i', 'g', 'E', 'l', 'P', 'q', 'j', 'm', 'c', 'X', 'b', 'X', 'Z', 'w', 's', 'Z', 'F', 'p', 'r', 'P', 'o', 'p', 'Y', 'R', 'w', 'n', 'y', 'n', 't', 'C'], ['b', 'v', 'G', 'K', 'J', 'u', 'w', 'q', 'x', 'b', 'O', 'Z', 'b', 'v', 'E', 'O', 'o', 'j', 'W', 'd', 'r', 'z', 'X', 'K', 'r', 'O', 'm', 'S', 'V', 'D', 'm', 'O', 'j', 'O', 'J', 'L', 'z', 'S'], ['Z', 'O', 'X', 'A', 'd', 'N', 'V', 't', 'f', 'z', 'q', 'H', 'O', 'Z', 'b', 'T', 'W', 'B', 'u', 'K', 'P', 'y', 'w', 'z', 'p', 'M', 'Z', 'P', 'l', 'y', 'J', 'G', 'i', 'C', 'r', 'y', 's', 'v'], ['k', 'R', 'i', 'z', 'A', 'l', 'J', 'X', 'C', 'i', 'P', 'A', 'y', 'y', 'a', 'E', 'V', 's', 'a', 'P', 'r', 'Y', 'D', 'n', 'o', 'w', 'M', ' ', 'W', 'm', 'W', 'H', 'a', 'v', 'j', 'g', 'Y', 'm'], ['M', 'y', 'N', 'A', 'R', 'u', 'e', 'N', 'H', 'a', 's', 'E', 'Q', 'b', 'd', 'E', 's', 'X', 'f', 'G', 'N', 'x', 'h', 'i', 'u', 'U', 'M', 'U', 's', 'u', 'N', 'f', 'u', 'o', 'C', 's', 'S', 'P'], ['h', 'C', 'v', 'L', 'H', 'h', 'Y', 'Y', 'F', 'S', 'd', 'Q', 'h', 'V', 'V', 'U', 'g', 'C', 's', 'X', 'E', 't', 'e', 'M', 'F', 'w', 'U', 'e', 'C', 'J', 'Y', 'R', 'o', 'a', 'W', 'L', 'k', 'K'], ['k', 'H', 'J', 'T', 's', 'F', 'y', 'C', 'O', 'J', 'O', 'B', 'm', 'B', 'e', 'G', 'l', 'g', 'y', 'J', 'y', 'u', 'F', 'E', 'B', ' ', 'B', 'Z', 'a', 'e', 'v', 'u', 'U', 'J', 'l', 'C', 'k', 'v'], ['d', 'y', 'V', 'Z', 't', 'X', 'n', 'v', 'O', 's', 'E', 'L', 'Z', 'x', 'x', 'p', 'w', 'W', 'S', 'n', 'G', 'y', 'q', 'o', 'B', 'X', 'f', 'r', 'n', 'T', 'y', 'p', 'J', 'j', 'I', 'w', 'r', 's'], ['h', 'y', 'p', 'j', 'r', 'D', 'j', 'H', 't', 'X', 'q', 'K', 'N', 'j', 'h', 'v', 'K', 'r', 'j', 'J', 'A', 'u', 'D', 'f', 'J', 'n', 'q', 'w', 'P', 'w', 'i', 's', 'G', 's', 't', 'D', 'r', 'A'], ['f', 'I', 'v', 'M', 'x', 'K', 'O', 'i', 'p', 'y', 'o', 'Z', 'Y', 's', 'V', 'f', 'i', 'V', 'x', 'K', 'p', 'a', 'L', 'V', 'r', 'B', 'v', 'd', 'M', 'e', 'X', 'h', 'F', 'S', 'p', 'Z', 'J', 'I'], ['H', 'V', 'a', 'a', 'i', 'k', 'D', 'e', 'Z', 'i', 'h', 'v', 'A', 'G', 'N', 'Q', 'r', 'e', 'A', 'q', 'n', 'a', 'z', 'N', 'b', 'y', 'R', 'z', 'c', 'I', 'A', 'h', 'z', 'o', 'F', 'w', 'p', 'h'], ['X', 'z', 'K', 'b', 'z', 'E', 'u', 'E', 'h', 'L', 'X', 'K', 'Q', 'r', 'f', 'Z', 'k', 'p', 'S', 'b', 'l', 'N', 'M', 'u', 'f', 'z', 'p', 'f', 'Q', 'U', 'q', 'g', 'F', 'K', 'D', 'Q', 'H', 'K'], ['S', 'U', 'o', 'u', 'z', 'G', 'q', 'w', 'N', 'B', 'c', 'u', 'k', 'n', 'v', 'S', 'O', 'Z', 'I', 'F', 'T', 'Z', 'D', 'g', 'w', 'K', 'G', 'C', 'B', 'M', 'e', 'W', 'r', 'v', 'l', 't', 't', 'u'], ['P', 'e', 'm', 'H', 'W', 'b', 's', 'C', 'j', 'U', 'E', 'a', 'J', 'o', 'G', ' ', 'H', 'T', 'f', 'j', 'N', 'N', 'E', 'u', 'W', 'O', 'X', 'e', 'm', 'w', ' ', 'f', 'U', 'Y', 'N', 'X', 'I', 'j'], [' ', 'v', 'q', 'O', 'd', 'p', 'd', 'Q', 'N', 'A', 'v', 'u', 'o', 'q', ' ', 'S', 'H', 'b', 'M', 'J', 'b', 'G', 'L', 'N', 'w', 'r', 'G', 'Q', 'E', 'R', 'y', 'a', 'k', 'S', 'W', 'I', 'P', 'd'], ['N', 'z', 'F', 'X', 'x', 'J', 'q', 'G', 'Z', 'Z', 'E', ' ', 'q', 'M', 'L', 'B', 'y', 'k', 'h', 'R', 'e', 'R', 'N', 'p', 'D', 'K', 'n', 'g', 'E', 'w', 'P', 'v', 'J', 'P', ' ', 'q', 'N', 's'], ['u', 'Q', 'F', 'j', 'r', 'I', 'X', 'C', 'E', 'R', 'R', 'E', 'D', 'p', 'n', 'a', 'X', 'Q', 'J', 'F', 'F', 'x', 's', 'P', 'o', 'a', 't', 'f', 'S', 'n', 'P', 'S', 'k', 's', 'j', 'M', 'L', 'l'], ['F', ' ', 'n', 'P', 'P', 'N', 'D', ' ', 'N', 'W', 'G', 'm', 'p', 'P', 'R', 'L', 'b', 'c', 'q', 'O', 'k', 'Y', 'p', 'I', 'b', 'P', 'Y', 'Y', 'F', 'c', 'p', 'W', 'e', 'R', 'k', 'j', 'V', 'h'], ['Q', 'J', 'g', 'D', 'S', 'U', 'm', 'z', 'M', 'n', 'a', 'V', 'q', 'P', 'X', 'w', 's', 'v', 'J', 'J', 'h', 'n', 'J', 'd', 'Z', 'M', 'v', 'M', 'h', 'Q', ' ', 'W', 'V', 's', 'O', 'A', 'x', 'j'], ['N', 'i', 'm', 'F', 'H', 'C', ' ', 'x', ' ', 't', 'g', 'q', 'j', 'd', 'n', 'g', 'l', 'U', 'k', 'U', 'q', 'h', 'A', 'c', 'u', 'o', 'U', 'z', 'D', 'N', 'p', 'R', 'K', 'k', 'T', 'i', 'D', 'i'], ['P', 'r', 'W', 'S', 's', 'U', 'k', 'l', 'e', 's', 'W', 'd', 'Y', 'q', 'p', 'Q', 'z', 'F', 'Z', 's', 'x', 'h', 'J', 'q', 'B', 'F', 'R', 'm', 'l', 'f', 'H', 'U', 'd', 'V', 'o', 'b', 't', 'B'], ['R', 'q', 'm', 'q', 'h', 'q', 'i', 'P', 'N', 'O', 'q', 'i', 'V', 'O', 'n', 'K', 'J', 'd', 'E', 'b', 'V', 'O', 'u', 'S', 'l', 'u', 'A', 'k', 'd', 'r', 'x', 'g', 'y', 'U', 'A', 'q', 'p', 'd'], ['r', 'h', 'h', 'L', 'j', 'd', 'b', 'o', 'v', 'D', 'd', 'M', 'f', 'y', 'Q', 'V', ' ', 'j', 'a', 'T', 'X', 'a', 't', 'I', 'Z', 'A', 'P', 'l', 'Y', 'j', 'c', 'A', 'A', 'e', 'r', 'H', 'u', 'f'], ['a', 'Y', 'J', 'J', 'k', 'L', 'x', 'l', 'O', 'n', 'J', 'I', 'l', 'x', 'V', 'S', 'S', 'l', 'D', 'E', 'm', 'd', ' ', 'j', 'Q', 'L', 't', 'c', 'o', 'D', 'z', 'A', 'x', 'u', 'F', 'E', 'v', 'a'], ['o', 'K', 'F', 'V', 'L', 'G', 't', 'A', 'd', 'b', 'P', 'F', 'K', 'N', 'J', 'e', 'B', 'T', 'H', 'n', 'D', 'b', 'm', 'T', 'L', 'S', 'n', 'D', 'b', 's', 'I', 't', 'O', 'a', 'm', 'a', 'A', 'n'], ['L', 'o', 'z', 'L', 'a', 'd', 'T', 'D', 'd', 'S', 'D', 'a', 'm', 'z', 'y', 'y', 'A', 'j', 'v', 'H', 'F', 't', 'A', 'f', 'G', 'E', ' ', 'x', ' ', 'm', 'L', 'I', 'O', 'Z', 'C', 'y', 'X', 'x'], [' ', 'I', 'i', 's', 'E', 'N', 'm', 'k', 'l', 'n', 's', 's', 'P', 'M', 'x', 'i', 'I', 'K', 'k', 'm', 'k', 'X', 'n', 'W', 'k', 'F', 'D', 'c', 'l', 'd', 'n', 'o', 'H', 'T', 'B', 'g', 'S', 'v'], ['g', 'p', 'd', 'A', 'Y', 'b', 'L', 'P', 'v', 'j', 'O', 'C', 's', 'g', 'J', 'm', 'P', 'd', 'H', 'c', 'h', 'U', 'P', 'J', 'h', 'c', 'f', 'W', 'l', 'K', 'F', 'T', 's', 'Z', 'n', 'v', ' ', 'p'], ['O', 'H', 'J', 'y', 'B', 'c', 'M', 'Q', 'F', 'k', 'S', 'o', 'b', 'M', 'c', 'i', 'K', 'l', 'a', 'Y', 'v', 'O', 'U', 'R', 'B', 'o', 'H', 'g', 'o', ' ', 'H', 'l', 'g', 'e', 'L', 'x', 'M', 'z'], ['q', 'u', 'A', 'O', 'u', 'f', 'r', 'U', 'F', 'g', 'f', 'g', 'R', 'E', 'W', 'H', 'n', 'e', 'N', 'Z', 'y', 'M', 'j', 'L', 'T', 'b', 'v', 'N', 'u', 'X', 'E', 'y', 'g', 'Y', ' ', 'n', 'T', 'r'], ['k', 'n', 'F', 'B', 'X', 't', 'j', 'a', 'b', 'I', 'C', 'O', 'R', 'h', 'c', 'C', 'F', 'E', 'l', 'Y', 's', 'D', 'p', 'j', 'J', ' ', 'y', 'u', 'x', 'q', ' ', 'P', 'J', 'P', 't', 'g', 'X', 'j'], ['M', 'u', 'Q', 'x', 'r', 'n', 'U', 'w', 'w', ' ', 'H', 'P', ' ', 'V', 'X', 'Y', 't', 'Z', 'F', 'H', 'X', 'N', 'y', 'E', 'j', 'I', 'Q', 'P', ' ', 'y', 'e', 'I', 'o', 'b', 'j', 'E', 'p', 'G'], ['n', 'd', 'T', 'f', 'a', 'D', 's', 'i', 'b', 'm', 'K', 'h', 'c', 'G', 'I', 'p', 'd', 'x', 'I', 'G', 'B', 'q', 'k', 'A', 'B', 'M', 'g', 'S', 't', 'K', 'b', 'm', 'm', 'u', 'k', ' ', 'U', 'Z'], ['C', 'v', 'L', 'k', 'x', 'L', ' ', 'm', 'x', 'P', 'C', 'X', 'n', 'w', 'd', 'E', 'O', 'D', 'Q', 'i', 'A', 'p', 'K', 'r', 'n', 'Y', 'T', 'v', 'K', 'O', 'M', 'w', 'p', 'P', 'R', 'X', 'I', 'g'], ['l', 'M', 'd', 'j', 'M', 'd', 'y', 'x', ' ', 'o', 'E', 't', 'X', 'w', 'c', 'H', 'r', 'q', 'd', 'Q', 'I', 'g', 'T', 'F', 't', 'q', 'A', 'e', 'm', 'y', 'G', 't', 'v', 'G', 'r', 'x', 'g', 'H'], ['T', 'f', 'N', 'W', 'K', 'T', 'b', 'O', 'J', 'B', 'a', 'd', 'l', 'y', 's', 's', 'W', 'D', 't', 'z', 'D', 'c', 'k', 'l', 'e', 'Q', 'A', 'J', 'J', 'k', 'M', 'G', 'F', 'S', 'C', 'N', 'x', 'X']],32,)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) |
def log(rv):
"""
Returns the natural logarithm of a random variable
"""
return rv.log()
def exp(rv):
"""
Returns the exponentiation of a random variable
"""
return rv.exp()
def sqrt(rv):
"""
Returns the square root of a random variable
"""
return rv**0.5
def pow(rv, k):
"""
Returns the square of a random variable
"""
return rv**k
def abs(rv):
"""
Returns the absolute value of a random variable
"""
return rv.abs()
|
#첫째 줄에 A, B, C가 순서대로 주어진다. (2 ≤ A, B, C ≤ 10000)
#첫째 줄에 (A+B)%C, 둘째 줄에 ((A%C) + (B%C))%C, 셋째 줄에 (A×B)%C, 넷째 줄에 ((A%C) × (B%C))%C를 출력한다.
a,b,c = input().split()
a = int(a)
b = int(b)
c = int(c)
print((a+b)%c, ((a%c)+(b%c))%c, (a*b)%c, ((a%c)*(b%c)%c), sep="\n") |
"""
python实现顺序栈
1。目标:实现栈(后进先出)
2。设计
"""
class ListStack:
def __init__(self):
"""初始化一个空栈"""
self.elems = []
def push(self, item):
"""入栈操作"""
self.elems.append(item)
def destack(self):
"""出栈操作"""
if not self.elems:
raise Exception('destack from a empty stack!')
return self.elems.pop()
if __name__ == '__main__':
ls = ListStack()
ls.push(100)
ls.push(200)
ls.push(300)
print(ls.destack())
print(ls.destack())
print(ls.destack())
print(ls.destack())
print(ls.destack())
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
DENIED_ACTIONS = {
"access-analyzer:DeleteAnalyzer",
"cloudtrail:CreateTrail",
"cloudtrail:DeleteTrail",
"cloudtrail:UpdateTrail",
"cloudtrail:StopLogging",
"config:DeleteConfigRule",
"config:DeleteConfigurationRecorder",
"config:DeleteDeliveryChannel",
"config:StopConfigurationRecorder",
"ec2:AcceptVpcPeeringConnection",
"ec2:AttachInternetGateway",
"ec2:AttachVpnGateway",
"ec2:CreateInternetGateway",
"ec2:CreateEgressOnlyInternetGateway",
"ec2:CreateNatGateway",
"ec2:CreateTransitGateway",
"ec2:CreateVpnConnection",
"ec2:CreateVpnGateway",
"ec2:CreateVpcPeeringConnection",
"ec2:DeleteEgressOnlyInternetGateway",
"ec2:DeleteInternetGateway",
"ec2:DeleteNatGateway",
"ec2:DeleteTransitGateway",
"ec2:DetachClassicLinkVpc",
"ec2:DetachInternetGateway",
"ec2:DetachVpnGateway",
"ec2:DisableEbsEncryptionByDefault",
"ec2:ModifyInstanceMetadataOptions",
"globalaccelerator:CreateAccelerator",
"globalaccelerator:CreateEndpointGroup",
"globalaccelerator:CreateListener",
"globalaccelerator:UpdateAccelerator",
"globalaccelerator:UpdateAcceleratorAttributes",
"globalaccelerator:UpdateEndpointGroup",
"globalaccelerator:UpdateListener",
"guardduty:DeleteDetector",
"guardduty:DisassociateFromMasterAccount",
"guardduty:UpdateDetector",
"guardduty:CreateFilter",
"guardduty:CreateIPSet",
"organizations:LeaveOrganization",
"s3:PutAccountPublicAccessBlock",
}
def audit(policy):
actions = policy.get_allowed_actions()
print(f"ACTIONS: {actions}")
denied_actions_in_policy = []
for action in actions:
if action in DENIED_ACTIONS:
denied_actions_in_policy.append(action)
if denied_actions_in_policy:
policy.add_finding(
"DENIED_ACTIONS",
"APIs are not approved for use:",
location={"Action": denied_actions_in_policy},
)
|
X = int(input())
Y = int(input())
Z = int(input())
N = int(input())
result = [ [x, y, z] for x in range(X+1) for y in range(Y+1) for z in range(Z+1) if x + y + z != N ]
print(result)
|
class Solution:
def lexicographically_minimal_string(self, a, b):
"""
:type strs: a, b
:rtype: str
"""
a = [ord(x) for x in list(a[::-1])]
b = [ord(x) for x in list(b[::-1])]
lms = []
while len(a) != 0 and len(b) != 0:
if a[-1] < b[-1]:
lms.append(a.pop())
elif a[-1] > b[-1]:
lms.append(b.pop())
else:
s = self.look_forward(a, b)
flag_char = s.pop()
lms.append(flag_char)
# move in later chars which is the same as flag_char
# in this stack (for efficiency)
while len(s) > 0 and s[-1] == flag_char:
lms.append(s.pop())
if len(a) == 0 and len(b) != 0:
lms += b[::-1]
elif len(b) == 0 and len(a) != 0:
lms += a[::-1]
return ''.join([chr(x) for x in lms])
def look_forward(self, a, b):
# find smaller option layer by layer
for i in range(-1, -min(len(a), len(b)), -1):
if a[i-1] == b[i-1]:
continue
elif a[i-1] < b[i-1]:
return a
elif a[i-1] > b[i-1]:
return b
# can not find smaller one until the last layer
if len(a) <= len(b):
return b
else:
return a
|
class Solution:
def minimumDeleteSum(self, s1, s2):
"""
:type s1: str
:type s2: str
:rtype: int
"""
# use dynamic programming and rolling window
dp = [[0] * (len(s2) + 1) for _ in range(2)]
for i in range(len(s2)):
dp[0][i+1] = dp[0][i] + ord(s2[i])
for i in range(len(s1)):
dp[(i+1) % 2][0] = dp[i % 2][0] + ord(s1[i])
for j in range(len(s2)):
if s1[i] == s2[j]:
dp[(i+1)%2][j+1] = dp[i % 2][j]
else:
dp[(i+1)%2][j+1] = min(dp[i%2][j+1] +
ord(s1[i]),
dp[(i+1)%2][j] +
ord(s2[j]))
return dp[len(s1) % 2][-1]
|
with open('test.txt', 'w') as file:
content = input('Write into file: ')
file.write(content)
with open('test.txt', 'a') as file:
s = ''
while s!= '@':
file.write(s)
s = input('Append into file: ')
with open('test.txt') as file:
print(file.read()) |
def sumofs1():
s1=0
n=int(input("enter a number:"))
for i in range(1,n+1):
s1=s1+i
print("sumofs1=",s1)
def sumofs2():
s2=0
m=int(input("enter a number:"))
for j in range(1,m+1):
s2=s2+(j*j)
print("sumofs2=",s2)
def sumofs3():
s3=0
p=int(input("enter a number:"))
for k in range(1,p+1):
s3=s3+(k*k*k)
print("sumofs3=",s3)
def sumofs4():
s4=0
q=int(input("enter a number:"))
for l in range(1,q+1):
s4=s4+(l**l)
print("sumofs4=",s4)
def sumofs5():
s5=0
r=int(input("enter a number:"))
for a in range(1,r+1):
s5=s5+((a**a)**a)
print("sumofs5=",s5)
sumofs1()
sumofs2()
sumofs3()
sumofs4()
sumofs5()
|
# Add your list of tweets here in this list. Make sure the messages are inside double quotes and end with a comma.
# For example: "Hello Check, my profile",
# The program will then randomly select one of the messages and post it to Twitter.
# Also if your message contains a double quote, you need to escape it with a backslash.
# That is, "John says "Don't say it"" becomes "John says \"Don't say it\""
Tweets = [
"Hello, Check my profile",
"Great Job,",
"Cool NFTs",
]
# Add Consumer Key, Consumer Secret, Access Token, Access Token Secret here.
# Just copy each layout and add it below.
# Add the username to the NAME variable. It's just included here to identify the account.
Accounts = {
"account1": {
"username": "qbanbabee",
"password": "CDxrRcqSHP"
},
"account2": {
"username": "r3i2x",
"password": "!seucNgU9D"
},
"account3": {
"username": "AprilThorne8",
"password": "kfjOZcdkzVvOliv"
},
"account3": {
"username": "fitriamarthaa",
"password": "nayeon95"
},
"account5": {
"username": "sammyroseam",
"password": "b46vtpSx3"
},
"account4": {
"username": "KURB81",
"password": "zkZdMTCLg9"
},
"account7": {
"username": "JenniCl69856601",
"password": "7Z9PcRH6W68IrAT"
},
"account8": {
"username": "Michell09770838",
"password": "nsSvK4Abtow3Vns"
},
"account9": {
"username": "KateMey23545494",
"password": "MHtyYpn0OBwznEQ"
},
"account10": {
"username": "NicoleV10545306",
"password": "ew0O7Pv0JxuR9DG"
},
"account11": {
"username": "MeganEn15734915",
"password": "MbfaXR3HZG3vHLx"
},
"account12": {
"username": "AnitaHi68595728",
"password": "ECfR31VO121x9WJ"
},
"account13": {
"username": "Jessica87214397",
"password": "BwynlIJEZd7nWNO"
},
"account14": {
"username": "SaraSim44822850",
"password": "7aQYEGXtMElpclk"
},
}
# Add the keywords you want to search for here.
# Keep your keywords one-worded and separate them with a comma.
Keywords = [
"NFT",
"Metamask"
]
# Enter the Tweet cooldown in seconds. A new tweet will not be posted until the cooldown has passed.
TweetCooldown = 30
# Enter the Account cooldown in minutes. A new account will not be used until the cooldown has passed.
AccountSwitchCooldown = 120
# Time it waits to load up the content in seconds
LoadingTime = 10
# Time it waits before clicking it so it's not instantaneous
WaitTime = 2
|
types = []
sums = []
try:
with open('hoteldata.txt', 'r', encoding='utf8') as inFile:
line = inFile.readline()
while line != "":
currentDayData = line.split(';')
if len(currentDayData) != 4:
raise Exception("Invalid Format")
if currentDayData[1] not in types:
types.append(currentDayData[1])
sums.append(float(currentDayData[2]))
else:
sums[types.index(currentDayData[1])] += float(currentDayData[2])
line = inFile.readline()
for i in range(len(types)):
print(f"L'importo totale per i servizi di tipo {types[i]} è: ${round(sums[i], 2)}")
except FileExistsError:
print("File non esistente")
except Exception as e:
print("Formato invalido")
|
#!/usr/bin/env python3
types = {
"BASIC_CONSTRAINTS": {
"ca": "ca_bool_int",
"pathlen": "ASN1_INTEGER",
},
}
getter_conv_tmpl = {
"ca_bool_int": "ctx.{k} == 0xFF",
"ASN1_INTEGER": "tonumber(C.ASN1_INTEGER_get(ctx.{k}))",
}
setter_conv_tmpl = {
"ca_bool_int": '''
toset.{k} = cfg_lower.{k} and 0xFF or 0''',
"ASN1_INTEGER": '''
local {k} = cfg_lower.{k} and tonumber(cfg_lower.{k})
if {k} then
C.ASN1_INTEGER_free(toset.{k})
local asn1 = C.ASN1_STRING_type_new({k})
if asn1 == nil then
return false, format_error("x509:set_{type}: ASN1_STRING_type_new")
end
toset.{k} = asn1
local code = C.ASN1_INTEGER_set(asn1, {k})
if code ~= 1 then
return false, format_error("x509:set_{type}: ASN1_INTEGER_set", code)
end
end'''
}
c2t_assign_locals = '''
local {k} = {conv}'''
c2t_return_table = '''
{k} = {k},'''
c2t_return_partial = '''
elseif string.lower(name) == "{k}" then
got = {k}'''
c2t = '''
local ctx = ffi_cast("{type}*", got)
{assign_locals}
C.{type}_free(ctx)
if not name or type(name) ~= "string" then
got = {{
{return_table}
}}
{return_partial}
end
'''
t2c = '''
local cfg_lower = {{}}
for k, v in pairs(toset) do
cfg_lower[string.lower(k)] = v
end
toset = C.{type}_new()
if toset == nil then
return false, format_error("x509:set_{type}")
end
ffi_gc(toset, C.{type}_free)
{set_members}
'''
# getter
def c_struct_to_table(name):
t = types[name]
return c2t.format(
type=name,
assign_locals="".join([
c2t_assign_locals.format(
k=k,
conv=getter_conv_tmpl[v].format(k=k)
)
for k, v in t.items()
]),
return_table="".join([
c2t_return_table.format(k=k)
for k in t
]).lstrip("\n"),
return_partial="".join([
c2t_return_partial.format(k=k)
for k in t
]).lstrip("\n"),
)
# setter
def table_to_c_struct(name):
t = types[name]
return t2c.format(
type=name,
set_members="".join([
setter_conv_tmpl[v].format(
k=k,
type=name,
)
for k, v in t.items()
]),
) |
#
# PySNMP MIB module DLINK-3100-MIR-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DLINK-3100-MIR-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:48:41 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)
#
OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueSizeConstraint, SingleValueConstraint, ValueRangeConstraint, ConstraintsUnion, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsUnion", "ConstraintsIntersection")
rnd, = mibBuilder.importSymbols("DLINK-3100-MIB", "rnd")
InterfaceIndex, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, Bits, TimeTicks, ObjectIdentity, Integer32, NotificationType, IpAddress, ModuleIdentity, MibIdentifier, Counter64, iso, Gauge32, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "Bits", "TimeTicks", "ObjectIdentity", "Integer32", "NotificationType", "IpAddress", "ModuleIdentity", "MibIdentifier", "Counter64", "iso", "Gauge32", "Unsigned32")
TextualConvention, RowStatus, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "RowStatus", "DisplayString")
rlMir = ModuleIdentity((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 61))
rlMir.setRevisions(('2007-01-02 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: rlMir.setRevisionsDescriptions(('Initial revision.',))
if mibBuilder.loadTexts: rlMir.setLastUpdated('200701020000Z')
if mibBuilder.loadTexts: rlMir.setOrganization('Dlink, Inc. Dlink Semiconductor, Inc.')
if mibBuilder.loadTexts: rlMir.setContactInfo('www.dlink.com')
if mibBuilder.loadTexts: rlMir.setDescription('This private MIB module defines MIR private MIBs.')
rlMirMibVersion = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 61, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlMirMibVersion.setStatus('current')
if mibBuilder.loadTexts: rlMirMibVersion.setDescription("MIB's version, the current version is 1.")
rlMirMaxNumOfMRIsAfterReset = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 61, 2), Integer32().clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlMirMaxNumOfMRIsAfterReset.setStatus('current')
if mibBuilder.loadTexts: rlMirMaxNumOfMRIsAfterReset.setDescription('The maximun instanses of IP Multi Instance Routers after the following reset.')
rlMirMaxNumOfMRIs = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 61, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlMirMaxNumOfMRIs.setStatus('current')
if mibBuilder.loadTexts: rlMirMaxNumOfMRIs.setDescription('The maximun instanses of IP Multi Instance Routers.')
rlMirCurMriNum = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 61, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlMirCurMriNum.setStatus('current')
if mibBuilder.loadTexts: rlMirCurMriNum.setDescription('The number of the MRI of which MIB variables are treated at the same time by the SNMP agent.')
rlMirInterfaceTable = MibTable((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 61, 5), )
if mibBuilder.loadTexts: rlMirInterfaceTable.setStatus('current')
if mibBuilder.loadTexts: rlMirInterfaceTable.setDescription('A list of the assignment ifinterfaces to IP Router instances.')
rlMirInterfaceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 61, 5, 1), ).setIndexNames((0, "DLINK-3100-MIR-MIB", "rlMirInterfaceIfIndex"))
if mibBuilder.loadTexts: rlMirInterfaceEntry.setStatus('current')
if mibBuilder.loadTexts: rlMirInterfaceEntry.setDescription('An entry of this table specifies the MRID assignement to a L2 interfrace.')
rlMirInterfaceIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 61, 5, 1, 1), InterfaceIndex()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlMirInterfaceIfIndex.setStatus('current')
if mibBuilder.loadTexts: rlMirInterfaceIfIndex.setDescription('The L2 interface for which this entry contains information.')
rlMirInterfaceMrid = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 61, 5, 1, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlMirInterfaceMrid.setStatus('current')
if mibBuilder.loadTexts: rlMirInterfaceMrid.setDescription('Multi IP Router Instance Identifier to which the interface is assgned.')
rlMirVlanBaseReservedPortsTable = MibTable((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 61, 6), )
if mibBuilder.loadTexts: rlMirVlanBaseReservedPortsTable.setStatus('current')
if mibBuilder.loadTexts: rlMirVlanBaseReservedPortsTable.setDescription('A list VLAN based reserved physical ports.')
rlMirVlanBaseReservedPortsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 61, 6, 1), ).setIndexNames((0, "DLINK-3100-MIR-MIB", "rlMirVlanBaseReservedPortsIfIndex"))
if mibBuilder.loadTexts: rlMirVlanBaseReservedPortsEntry.setStatus('current')
if mibBuilder.loadTexts: rlMirVlanBaseReservedPortsEntry.setDescription('A VLAN based reserved physical port.')
rlMirVlanBaseReservedPortsIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 61, 6, 1, 1), InterfaceIndex()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rlMirVlanBaseReservedPortsIfIndex.setStatus('current')
if mibBuilder.loadTexts: rlMirVlanBaseReservedPortsIfIndex.setDescription('IfIndex of VLAN based reserved physical port.')
rlMirVlanBaseReservedPortsStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 61, 6, 1, 2), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rlMirVlanBaseReservedPortsStatus.setStatus('current')
if mibBuilder.loadTexts: rlMirVlanBaseReservedPortsStatus.setDescription('It is used to delete an entry')
rlMirVlanBaseLogicalPortsTable = MibTable((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 61, 7), )
if mibBuilder.loadTexts: rlMirVlanBaseLogicalPortsTable.setStatus('current')
if mibBuilder.loadTexts: rlMirVlanBaseLogicalPortsTable.setDescription('A list VLAN based logical ports.')
rlMirVlanBaseLogicalPortsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 61, 7, 1), ).setIndexNames((0, "DLINK-3100-MIR-MIB", "rlMirVlanBaseLogicalPortsIfIndex"))
if mibBuilder.loadTexts: rlMirVlanBaseLogicalPortsEntry.setStatus('current')
if mibBuilder.loadTexts: rlMirVlanBaseLogicalPortsEntry.setDescription('A VLAN based logical point-to-point port.')
rlMirVlanBaseLogicalPortsIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 61, 7, 1, 1), InterfaceIndex()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rlMirVlanBaseLogicalPortsIfIndex.setStatus('current')
if mibBuilder.loadTexts: rlMirVlanBaseLogicalPortsIfIndex.setDescription('IfIndex of VLAN based Logical point-to-point port.')
rlMirVlanBaseLogicalPortsReservedIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 61, 7, 1, 2), InterfaceIndex()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rlMirVlanBaseLogicalPortsReservedIfIndex.setStatus('current')
if mibBuilder.loadTexts: rlMirVlanBaseLogicalPortsReservedIfIndex.setDescription('IfIndex of VLAN based reserved physical port on which the logical port is defined.')
rlMirVlanBaseLogicalPortsVlanTag = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 61, 7, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4095))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rlMirVlanBaseLogicalPortsVlanTag.setStatus('current')
if mibBuilder.loadTexts: rlMirVlanBaseLogicalPortsVlanTag.setDescription('VLAN tag.')
rlMirVlanBaseLogicalPortsStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 61, 7, 1, 4), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rlMirVlanBaseLogicalPortsStatus.setStatus('current')
if mibBuilder.loadTexts: rlMirVlanBaseLogicalPortsStatus.setDescription('It is used to add, update and delete an entry')
mibBuilder.exportSymbols("DLINK-3100-MIR-MIB", PYSNMP_MODULE_ID=rlMir, rlMir=rlMir, rlMirVlanBaseLogicalPortsIfIndex=rlMirVlanBaseLogicalPortsIfIndex, rlMirCurMriNum=rlMirCurMriNum, rlMirMibVersion=rlMirMibVersion, rlMirInterfaceMrid=rlMirInterfaceMrid, rlMirVlanBaseReservedPortsTable=rlMirVlanBaseReservedPortsTable, rlMirMaxNumOfMRIs=rlMirMaxNumOfMRIs, rlMirVlanBaseReservedPortsIfIndex=rlMirVlanBaseReservedPortsIfIndex, rlMirInterfaceTable=rlMirInterfaceTable, rlMirVlanBaseLogicalPortsVlanTag=rlMirVlanBaseLogicalPortsVlanTag, rlMirVlanBaseLogicalPortsReservedIfIndex=rlMirVlanBaseLogicalPortsReservedIfIndex, rlMirVlanBaseReservedPortsStatus=rlMirVlanBaseReservedPortsStatus, rlMirVlanBaseReservedPortsEntry=rlMirVlanBaseReservedPortsEntry, rlMirMaxNumOfMRIsAfterReset=rlMirMaxNumOfMRIsAfterReset, rlMirInterfaceIfIndex=rlMirInterfaceIfIndex, rlMirVlanBaseLogicalPortsEntry=rlMirVlanBaseLogicalPortsEntry, rlMirInterfaceEntry=rlMirInterfaceEntry, rlMirVlanBaseLogicalPortsStatus=rlMirVlanBaseLogicalPortsStatus, rlMirVlanBaseLogicalPortsTable=rlMirVlanBaseLogicalPortsTable)
|
"""
Given two int values, return their sum. Unless the two values are the same, then return double their sum.
sum_double(1, 2) → 3
sum_double(3, 2) → 5
sum_double(2, 2) → 8
"""
def sum_double(a, b):
# if a not b return sum
if (a != b):
return a + b
# else return double sum
else:
return 2 * (a + b)
print(sum_double(1, 2))
print(sum_double(3, 2))
print(sum_double(2, 2))
|
input[int] = [3, 5, 6, 1, 2, 4]
def find_max_num(array):
# 이 부분을 채워보세요!
# ans = max(input)
for num in array:
for compare_num in array:
if num < compare_num:
break
else:
return num
# 숫자 비교를 하는데, break를 한 번도 거치지 않았다면
# 비교 대상 중 가장 큰 값이라고 판단하고
# 리턴한다 (else : 안쪽 for문의 반례)
result = find_max_num(input)
print(result) |
# classificationMethod.py
# -----------------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley.edu.
#
# Attribution Information: The Pacman AI projects were developed at UC Berkeley.
# The core projects and autograders were primarily created by John DeNero
# ([email protected]) and Dan Klein ([email protected]).
# Student side autograding was added by Brad Miller, Nick Hay, and
# Pieter Abbeel ([email protected]).
# This file contains the abstract class ClassificationMethod
class ClassificationMethod:
"""
ClassificationMethod is the abstract superclass of
- MostFrequentClassifier
- NaiveBayesClassifier
- PerceptronClassifier
- MiraClassifier
As such, you need not add any code to this file. You can write
all of your implementation code in the files for the individual
classification methods listed above.
"""
def __init__(self, legalLabels):
"""
For digits dataset, the set of legal labels will be 0,1,..,9
For faces dataset, the set of legal labels will be 0 (non-face) or 1 (face)
"""
self.legalLabels = legalLabels
def train(self, trainingData, trainingLabels, validationData, validationLabels):
"""
This is the supervised training function for the classifier. Two sets of
labeled data are passed in: a large training set and a small validation set.
Many types of classifiers have a common training structure in practice: using
training data for the main supervised training loop but tuning certain parameters
with a small held-out validation set.
For some classifiers (naive Bayes, MIRA), you will need to return the parameters'
values after training and tuning step.
To make the classifier generic to multiple problems, the data should be represented
as lists of Counters containing feature descriptions and their counts.
"""
abstract
def classify(self, data):
"""
This function returns a list of labels, each drawn from the set of legal labels
provided to the classifier upon construction.
To make the classifier generic to multiple problems, the data should be represented
as lists of Counters containing feature descriptions and their counts.
"""
abstract
|
''' mbinary
#########################################################################
# File : allOoneDS.py
# Author: mbinary
# Mail: [email protected]
# Blog: https://mbinary.xyz
# Github: https://github.com/mbinary
# Created Time: 2018-05-19 23:07
# Description:
#########################################################################
'''
class node:
def __init__(self,val=None,data_mp=None,pre=None,next=None):
self.val=val
self.data_mp = {} if data_mp is None else data_mp
self.pre=pre
self.next=next
def __lt__(self,nd):
return self.val<nd.val
def getOne(self):
if not self.data_mp:
return ''
else:return list(self.data_mp.items())[0][0]
def __getitem__(self,key):
return self.data_mp[key]
def __iter__(self):
return iter(self.data_mp)
def __delitem__(self,key):
del self.data_mp[key]
def __setitem__(self,key,val):
self.data_mp[key]= val
def isEmpty(self):
return self.data_mp=={}
def __repr__(self):
return 'node({},{})'.format(self.val,self.data_mp)
class doubleLinkedList:
def __init__(self):
self.head= self.tail = node(0)
self.head.next = self.head
self.head.pre = self.head
self.chain_mp={0:self.head}
def __str__(self):
li = list(self.chain_mp.values())
li = [str(i) for i in li]
return 'min:{}, max:{}\n'.format(self.head.val,self.tail.val) \
+ '\n'.join(li)
def getMax(self):
return self.tail.getOne()
def getMin(self):
return self.head.getOne()
def addIncNode(self,val):
# when adding a node,inc 1, so it's guranted that node(val-1) exists
self.chain_mp[val].pre= self.chain_mp[val-1]
self.chain_mp[val].next= self.chain_mp[val-1].next
self.chain_mp[val-1].next.pre = self.chain_mp[val-1].next = self.chain_mp[val]
def addDecNode(self,val):
# when adding a node,dec 1, so it's guranted that node(val+1) exists
self.chain_mp[val].next= self.chain_mp[val+1]
self.chain_mp[val].pre= self.chain_mp[val+1].pre
self.chain_mp[val+1].pre.next = self.chain_mp[val+1].pre = self.chain_mp[val]
def addNode(self,val,dec=False):
self.chain_mp[val] = node(val)
if dec:self.addDecNode(val)
else:self.addIncNode(val)
if self.tail.val<val:self.tail = self.chain_mp[val]
if self.head.val>val or self.head.val==0:self.head= self.chain_mp[val]
def delNode(self,val):
self.chain_mp[val].next.pre = self.chain_mp[val].pre
self.chain_mp[val].pre.next = self.chain_mp[val].next
if self.tail.val==val:self.tail = self.chain_mp[val].pre
if self.head.val==val:self.head = self.chain_mp[val].next
del self.chain_mp[val]
def incTo(self,key,val):
if val not in self.chain_mp:
self.addNode(val)
self.chain_mp[val][key] = val
if val!=1 : # key in the pre node
del self.chain_mp[val-1][key]
#print(self.chain_mp[val-1])
if self.chain_mp[val-1].isEmpty():
#print('*'*20)
self.delNode(val-1)
def decTo(self,key,val):
if val not in self.chain_mp:
self.addNode(val,dec=True)
# notice that the headnode(0) shouldn't add key
if val!=0: self.chain_mp[val][key] = val
del self.chain_mp[val+1][key]
if self.chain_mp[val+1].isEmpty():
self.delNode(val+1)
class AllOne:
def __init__(self):
"""
Initialize your data structure here.
"""
self.op = {"inc":self.inc,"dec":self.dec,"getMaxKey":self.getMaxKey,"getMinKey":self.getMinKey}
self.mp = {}
self.dll = doubleLinkedList()
def __str__(self):
return str(self.dll)
def __getitem__(self,key):
return self.mp[key]
def __delitem__(self,key):
del self.mp[key]
def __setitem__(self,key,val):
self.mp[key]= val
def __iter__(self):
return iter(self.mp)
def inc(self, key,n=1):
"""
Inserts a new key <Key> with value 1. Or increments an existing key by 1.
:type key: str
:rtype: void
"""
if key in self:
self[key]+=n
else:self[key]=n
for i in range(n): self.dll.incTo(key, self[key])
def dec(self, key,n=1):
"""
Decrements an existing key by 1. If Key's value is 1, remove it from the data structure.
:type key: str
:rtype: void
"""
if key in self.mp:
mn = min( self[key],n)
for i in range(mn): self.dll.decTo(key, self[key]-i-1)
if self[key] == n:
del self[key]
else:
self[key] = self[key]-n
def getMaxKey(self):
"""
Returns one of the keys with maximal value.
:rtype: str
"""
return self.dll.getMax()
def getMinKey(self):
"""
Returns one of the keys with Minimal value.
:rtype: str
"""
return self.dll.getMin()
if __name__ == '__main__':
ops=["inc","inc","inc","inc","inc","dec","dec","getMaxKey","getMinKey"]
data=[["a"],["b"],["b"],["b"],["b"],["b"],["b"],[],[]]
obj = AllOne()
for op,datum in zip(ops,data):
print(obj.op[op](*datum))
print(op,datum)
print(obj)
'''
None
inc ['a']
min:1, max:1
node(0,{})
node(1,{'a': 1})
None
inc ['b']
min:1, max:1
node(0,{})
node(1,{'a': 1, 'b': 1})
None
inc ['b']
min:1, max:2
node(0,{})
node(1,{'a': 1})
node(2,{'b': 2})
None
inc ['b']
min:1, max:3
node(0,{})
node(1,{'a': 1})
node(3,{'b': 3})
None
inc ['b']
min:1, max:4
node(0,{})
node(1,{'a': 1})
node(4,{'b': 4})
None
dec ['b']
min:1, max:3
node(0,{})
node(1,{'a': 1})
node(3,{'b': 3})
None
dec ['b']
min:1, max:2
node(0,{})
node(1,{'a': 1})
node(2,{'b': 2})
b
getMaxKey []
min:1, max:2
node(0,{})
node(1,{'a': 1})
node(2,{'b': 2})
a
getMinKey []
min:1, max:2
node(0,{})
node(1,{'a': 1})
node(2,{'b': 2})
'''
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.