content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
# Flask settings DEBUG = False # Flask-restplus settings RESTPLUS_MASK_SWAGGER = False SWAGGER_UI_DOC_EXPANSION = 'none' # Application settings # API metadata API_TITLE = 'MAX Image Colorizer' API_DESC = 'Adds color to black and white images.' API_VERSION = '1.1.0' ERR_MSG = 'Invalid file type/extension. Please provide a valid image (supported formats: JPEG, PNG).' # default model MODEL_NAME = API_TITLE MODEL_ID = MODEL_NAME.replace(' ', '-').lower() DEFAULT_MODEL_PATH = 'assets/pix2pix-bw-to-color' MODEL_LICENSE = 'MIT'
debug = False restplus_mask_swagger = False swagger_ui_doc_expansion = 'none' api_title = 'MAX Image Colorizer' api_desc = 'Adds color to black and white images.' api_version = '1.1.0' err_msg = 'Invalid file type/extension. Please provide a valid image (supported formats: JPEG, PNG).' model_name = API_TITLE model_id = MODEL_NAME.replace(' ', '-').lower() default_model_path = 'assets/pix2pix-bw-to-color' model_license = 'MIT'
minx = 20 maxx = 30 miny = -10 maxy = -5 minx = 25 maxx = 67 miny = -260 maxy = -200 def simulate(vx, vy): x = 0 y = 0 highest = 0 while y > miny: x += vx y += vy if vx > 0: vx -= 1 elif vx < 0: vx += 1 vy -= 1 if vy == 0: highest = y if x >= minx and x <= maxx and y >= miny and y <= maxy: return highest return -1 result = 0 num = 0 for x in range(1, maxx + 1): for y in range(miny, 500): v = simulate(x, y) if v >= 0: num += 1 if v > result: result = v print(f"{result}") print(f"{num}")
minx = 20 maxx = 30 miny = -10 maxy = -5 minx = 25 maxx = 67 miny = -260 maxy = -200 def simulate(vx, vy): x = 0 y = 0 highest = 0 while y > miny: x += vx y += vy if vx > 0: vx -= 1 elif vx < 0: vx += 1 vy -= 1 if vy == 0: highest = y if x >= minx and x <= maxx and (y >= miny) and (y <= maxy): return highest return -1 result = 0 num = 0 for x in range(1, maxx + 1): for y in range(miny, 500): v = simulate(x, y) if v >= 0: num += 1 if v > result: result = v print(f'{result}') print(f'{num}')
def file_to_list(filename): lines = [] fin = open(filename, "rt", encoding="utf-8") lines = fin.readlines() fin.close() return lines def print_table(lines): template = { "1": "+" + "-" * 11 + "+" + "-" * 11 + "+" + "-" * 8 + "+", "2": "| {:<10.9}| {:<10.9}| {:<7.6}|", } print(template["1"]) print(template["2"].format("Last", "First", "Salary")) print(template["1"]) for line in lines: field = line.rstrip().split(",") print(template["2"].format(field[0], field[1], field[2])) print(template["1"]) def main(): lines = file_to_list("../data/42.txt") print_table(lines) main()
def file_to_list(filename): lines = [] fin = open(filename, 'rt', encoding='utf-8') lines = fin.readlines() fin.close() return lines def print_table(lines): template = {'1': '+' + '-' * 11 + '+' + '-' * 11 + '+' + '-' * 8 + '+', '2': '| {:<10.9}| {:<10.9}| {:<7.6}|'} print(template['1']) print(template['2'].format('Last', 'First', 'Salary')) print(template['1']) for line in lines: field = line.rstrip().split(',') print(template['2'].format(field[0], field[1], field[2])) print(template['1']) def main(): lines = file_to_list('../data/42.txt') print_table(lines) main()
# -*- coding: utf-8 -*- # Copyright 2021 Cohesity Inc. class SiteIdentity(object): """Implementation of the 'SiteIdentity' model. O365 Sharepoint online Site Identity. These may be obtained by Graph/REST or PnP cmdlets. All fields are case insensitive. Attributes: id (string): Unique guid for the site in SPO. This is a unqiue identifier that can be used to compare sites. server_relativeurl (string): Optional ServerRelativeUrl. Not required. title (string): Optional Title of site for display and logging purpose. Not mandatory. url (string): Full Url of the site. Its of the form https://yourtenant.sharepoint.com/sites/yoursite or https://yourtenant.sharepoint.com/yoursite This parameter is required for all PnP operations. webid (string): Unique guid for the site root web. """ # Create a mapping from Model property names to API property names _names = { "id":'id', "server_relativeurl":'serverRelativeurl', "title":'title', "url":'url', "webid":'webid' } def __init__(self, id=None, server_relativeurl=None, title=None, url=None, webid=None): """Constructor for the SiteIdentity class""" # Initialize members of the class self.id = id self.server_relativeurl = server_relativeurl self.title = title self.url = url self.webid = webid @classmethod def from_dictionary(cls, dictionary): """Creates an instance of this model from a dictionary Args: dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server's response. The keys MUST match property names in the API description. Returns: object: An instance of this structure class. """ if dictionary is None: return None # Extract variables from the dictionary id = dictionary.get('id') server_relativeurl = dictionary.get('serverRelativeurl') title = dictionary.get('title') webid = dictionary.get('webid') url = dictionary.get('url') # Return an object of this model return cls(id, server_relativeurl, title, url, webid)
class Siteidentity(object): """Implementation of the 'SiteIdentity' model. O365 Sharepoint online Site Identity. These may be obtained by Graph/REST or PnP cmdlets. All fields are case insensitive. Attributes: id (string): Unique guid for the site in SPO. This is a unqiue identifier that can be used to compare sites. server_relativeurl (string): Optional ServerRelativeUrl. Not required. title (string): Optional Title of site for display and logging purpose. Not mandatory. url (string): Full Url of the site. Its of the form https://yourtenant.sharepoint.com/sites/yoursite or https://yourtenant.sharepoint.com/yoursite This parameter is required for all PnP operations. webid (string): Unique guid for the site root web. """ _names = {'id': 'id', 'server_relativeurl': 'serverRelativeurl', 'title': 'title', 'url': 'url', 'webid': 'webid'} def __init__(self, id=None, server_relativeurl=None, title=None, url=None, webid=None): """Constructor for the SiteIdentity class""" self.id = id self.server_relativeurl = server_relativeurl self.title = title self.url = url self.webid = webid @classmethod def from_dictionary(cls, dictionary): """Creates an instance of this model from a dictionary Args: dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server's response. The keys MUST match property names in the API description. Returns: object: An instance of this structure class. """ if dictionary is None: return None id = dictionary.get('id') server_relativeurl = dictionary.get('serverRelativeurl') title = dictionary.get('title') webid = dictionary.get('webid') url = dictionary.get('url') return cls(id, server_relativeurl, title, url, webid)
a = int(input()) b = int(input()) c = int(input()) a_odd = a % 2 b_odd = b % 2 c_odd = c % 2 a_even = not (a % 2) b_even = not (b % 2) c_even = not (c % 2) if (a_odd or b_odd or c_odd) and (a_even or b_even or c_even): print("YES") else: print("NO")
a = int(input()) b = int(input()) c = int(input()) a_odd = a % 2 b_odd = b % 2 c_odd = c % 2 a_even = not a % 2 b_even = not b % 2 c_even = not c % 2 if (a_odd or b_odd or c_odd) and (a_even or b_even or c_even): print('YES') else: print('NO')
# Copyright 2016 Google Inc. # # 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. """Definition of wrap_web_test_suite.""" load("//web:web.bzl", "web_test_suite") load(":constants.bzl", "DEFAULT_TEST_SUITE_TAGS", "DEFAULT_WEB_TEST_SUITE_TAGS", "DEFAULT_WRAPPED_TEST_TAGS") def wrap_web_test_suite( name, browsers, rule, args = None, browser_overrides = None, config = None, flaky = None, local = None, shard_count = None, size = None, tags = DEFAULT_WEB_TEST_SUITE_TAGS, test_suite_tags = DEFAULT_TEST_SUITE_TAGS, timeout = None, visibility = None, web_test_data = None, wrapped_test_tags = DEFAULT_WRAPPED_TEST_TAGS, **remaining_keyword_args): """Defines a test_suite of web_test targets that wrap a given rule. Args: name: The base name of the test. browsers: A sequence of lavels specifying the browsers to use. rule: The rule for the wrapped target. args: Args for web_test targets generated by this extension. browser_overrides: Dictionary; optional; default is an empty dictionary. A dictionary mapping from browser names to browser-specific web_test attributes, such as shard_count, flakiness, timeout, etc. For example: {'//browsers:chrome-native': {'shard_count': 3, 'flaky': 1} '//browsers:firefox-native': {'shard_count': 1, 'timeout': 100}}. config: Label; optional; Configuration of web test features. flaky: A boolean specifying that the test is flaky. If set, the test will be retried up to 3 times (default: 0) local: boolean; optional. shard_count: The number of test shards to use per browser. (default: 1) size: A string specifying the test size. (default: 'large') tags: A list of test tag strings to apply to each generated web_test target. test_suite_tags: A list of tag strings for the generated test_suite. timeout: A string specifying the test timeout (default: computed from size) visibility: List of labels; optional. web_test_data: Data dependencies for the web_test. wrapped_test_tags: A list of test tag strings to use for the wrapped test **remaining_keyword_args: Arguments for the wrapped test target. """ size = size or "large" wrapped_test_name = name + "_wrapped_test" rule( name = wrapped_test_name, args = args, flaky = flaky, local = local, shard_count = shard_count, size = size, tags = wrapped_test_tags, timeout = timeout, visibility = ["//visibility:private"], **remaining_keyword_args ) web_test_suite( name = name, args = args, browsers = browsers, browser_overrides = browser_overrides, config = config, data = web_test_data, flaky = flaky, local = local, shard_count = shard_count, size = size, tags = tags, test = wrapped_test_name, test_suite_tags = test_suite_tags, timeout = timeout, visibility = visibility, )
"""Definition of wrap_web_test_suite.""" load('//web:web.bzl', 'web_test_suite') load(':constants.bzl', 'DEFAULT_TEST_SUITE_TAGS', 'DEFAULT_WEB_TEST_SUITE_TAGS', 'DEFAULT_WRAPPED_TEST_TAGS') def wrap_web_test_suite(name, browsers, rule, args=None, browser_overrides=None, config=None, flaky=None, local=None, shard_count=None, size=None, tags=DEFAULT_WEB_TEST_SUITE_TAGS, test_suite_tags=DEFAULT_TEST_SUITE_TAGS, timeout=None, visibility=None, web_test_data=None, wrapped_test_tags=DEFAULT_WRAPPED_TEST_TAGS, **remaining_keyword_args): """Defines a test_suite of web_test targets that wrap a given rule. Args: name: The base name of the test. browsers: A sequence of lavels specifying the browsers to use. rule: The rule for the wrapped target. args: Args for web_test targets generated by this extension. browser_overrides: Dictionary; optional; default is an empty dictionary. A dictionary mapping from browser names to browser-specific web_test attributes, such as shard_count, flakiness, timeout, etc. For example: {'//browsers:chrome-native': {'shard_count': 3, 'flaky': 1} '//browsers:firefox-native': {'shard_count': 1, 'timeout': 100}}. config: Label; optional; Configuration of web test features. flaky: A boolean specifying that the test is flaky. If set, the test will be retried up to 3 times (default: 0) local: boolean; optional. shard_count: The number of test shards to use per browser. (default: 1) size: A string specifying the test size. (default: 'large') tags: A list of test tag strings to apply to each generated web_test target. test_suite_tags: A list of tag strings for the generated test_suite. timeout: A string specifying the test timeout (default: computed from size) visibility: List of labels; optional. web_test_data: Data dependencies for the web_test. wrapped_test_tags: A list of test tag strings to use for the wrapped test **remaining_keyword_args: Arguments for the wrapped test target. """ size = size or 'large' wrapped_test_name = name + '_wrapped_test' rule(name=wrapped_test_name, args=args, flaky=flaky, local=local, shard_count=shard_count, size=size, tags=wrapped_test_tags, timeout=timeout, visibility=['//visibility:private'], **remaining_keyword_args) web_test_suite(name=name, args=args, browsers=browsers, browser_overrides=browser_overrides, config=config, data=web_test_data, flaky=flaky, local=local, shard_count=shard_count, size=size, tags=tags, test=wrapped_test_name, test_suite_tags=test_suite_tags, timeout=timeout, visibility=visibility)
class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def closestValue(self, root: TreeNode, target: float) -> int: if root == None: return float('inf') diff = target - root.val if diff > 0: sub_closest = self.closestValue(root.right, target) elif diff < 0: sub_closest = self.closestValue(root.left, target) else: return root.val if abs(root.val - target) > abs(sub_closest - target): return sub_closest else: return root.val
class Treenode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def closest_value(self, root: TreeNode, target: float) -> int: if root == None: return float('inf') diff = target - root.val if diff > 0: sub_closest = self.closestValue(root.right, target) elif diff < 0: sub_closest = self.closestValue(root.left, target) else: return root.val if abs(root.val - target) > abs(sub_closest - target): return sub_closest else: return root.val
command = '/opt/django/smegurus-django/env/bin/gunicorn' pythonpath = '/opt/django/smegurus-django/smegurus' bind = '127.0.0.1:8001' workers = 3
command = '/opt/django/smegurus-django/env/bin/gunicorn' pythonpath = '/opt/django/smegurus-django/smegurus' bind = '127.0.0.1:8001' workers = 3
language_compiler_param = \ { "java": "-encoding UTF-8 -d -cp ." }
language_compiler_param = {'java': '-encoding UTF-8 -d -cp .'}
aTuple = ("Orange", [10, 20, 30], (5, 15, 25)) print(aTuple[1][1])
a_tuple = ('Orange', [10, 20, 30], (5, 15, 25)) print(aTuple[1][1])
__all__ = [ "sorter", "ioputter", "handler", "timer", "simple", "process", "HarnessChartProcessing", "KomaxTaskProcessing", "KomaxCore", "HarnessProcessing" ]
__all__ = ['sorter', 'ioputter', 'handler', 'timer', 'simple', 'process', 'HarnessChartProcessing', 'KomaxTaskProcessing', 'KomaxCore', 'HarnessProcessing']
_base_ = "base.py" fold = 1 percent = 1 data = dict( samples_per_gpu=1, workers_per_gpu=1, train=dict( ann_file="data/coco/annotations/semi_supervised/instances_train2017.${fold}@${percent}.json", img_prefix="data/coco/train2017/", ), ) work_dir = "work_dirs/${cfg_name}/${percent}/${fold}" log_config = dict( interval=50, hooks=[ dict(type="TextLoggerHook"), dict( type="WandbLoggerHook", init_kwargs=dict( project="pre_release", name="${cfg_name}", config=dict( fold="${fold}", percent="${percent}", work_dirs="${work_dir}", total_step="${runner.max_iters}", ), ), by_epoch=False, ), ], )
_base_ = 'base.py' fold = 1 percent = 1 data = dict(samples_per_gpu=1, workers_per_gpu=1, train=dict(ann_file='data/coco/annotations/semi_supervised/instances_train2017.${fold}@${percent}.json', img_prefix='data/coco/train2017/')) work_dir = 'work_dirs/${cfg_name}/${percent}/${fold}' log_config = dict(interval=50, hooks=[dict(type='TextLoggerHook'), dict(type='WandbLoggerHook', init_kwargs=dict(project='pre_release', name='${cfg_name}', config=dict(fold='${fold}', percent='${percent}', work_dirs='${work_dir}', total_step='${runner.max_iters}')), by_epoch=False)])
class GumballMonitor: def __init__(self, machine): self.machine = machine def report(self): try: print(f'Gumball Machine: {self.machine.get_location()}') print(f'Current inventory: {self.machine.get_count()} gumballs') except Exception as e: print(e)
class Gumballmonitor: def __init__(self, machine): self.machine = machine def report(self): try: print(f'Gumball Machine: {self.machine.get_location()}') print(f'Current inventory: {self.machine.get_count()} gumballs') except Exception as e: print(e)
################### Error URLs ##################### # For imageGen.py not_enough_info = 'http://i.imgur.com/2BZk32a.jpg' improperly_formatted_tag = 'http://i.imgur.com/HvFX82m.jpg' # For memeAPI.py meme_not_supported = 'http://i.imgur.com/6VoMZqm.jpg' couldnt_create_meme = 'http://i.imgur.com/bkW1HEV.jpg' too_many_lines = 'http://i.imgur.com/fGkrbGe.jpg' too_few_lines = 'http://i.imgur.com/aLYiN7V.jpg' # For gifAPI.py no_search_params = 'http://i.imgur.com/60KAAPv.jpg' no_suitable_gif = 'http://i.imgur.com/gH3bPTs.jpg'
not_enough_info = 'http://i.imgur.com/2BZk32a.jpg' improperly_formatted_tag = 'http://i.imgur.com/HvFX82m.jpg' meme_not_supported = 'http://i.imgur.com/6VoMZqm.jpg' couldnt_create_meme = 'http://i.imgur.com/bkW1HEV.jpg' too_many_lines = 'http://i.imgur.com/fGkrbGe.jpg' too_few_lines = 'http://i.imgur.com/aLYiN7V.jpg' no_search_params = 'http://i.imgur.com/60KAAPv.jpg' no_suitable_gif = 'http://i.imgur.com/gH3bPTs.jpg'
# # PySNMP MIB module CENTILLION-FILTERS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CENTILLION-FILTERS-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:47:45 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint", "SingleValueConstraint") StatusIndicator, sysConfig = mibBuilder.importSymbols("CENTILLION-ROOT-MIB", "StatusIndicator", "sysConfig") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") TimeTicks, Counter32, MibIdentifier, Gauge32, ObjectIdentity, Unsigned32, NotificationType, iso, Counter64, MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, IpAddress, Integer32, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "Counter32", "MibIdentifier", "Gauge32", "ObjectIdentity", "Unsigned32", "NotificationType", "iso", "Counter64", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "IpAddress", "Integer32", "Bits") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") class GeneralFilterName(DisplayString): subtypeSpec = DisplayString.subtypeSpec + ValueSizeConstraint(8, 8) fixedLength = 8 class NetbiosFilterName(DisplayString): subtypeSpec = DisplayString.subtypeSpec + ValueSizeConstraint(16, 16) fixedLength = 16 class NetbiosFilterAction(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("discard", 1), ("forward", 2)) filterGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11)) filterGroupTable = MibTable((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1), ) if mibBuilder.loadTexts: filterGroupTable.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupTable.setDescription('Filter Group Table. Entries are added into the group by specifying values for all objects with the exception of the filterGroupMonitorDests and filterGroupAdditionalDests objects. Entries are deleted simply by specifying the appropriate filterGroupStatus value.') filterGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1), ).setIndexNames((0, "CENTILLION-FILTERS-MIB", "filterGroupName"), (0, "CENTILLION-FILTERS-MIB", "filterGroupIndex")) if mibBuilder.loadTexts: filterGroupEntry.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupEntry.setDescription('An entry in the filter group table. Table entries are indexed by the unique user-defined group name, and the filter entry index as assigned by the system.') filterGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 1), GeneralFilterName()).setMaxAccess("readwrite") if mibBuilder.loadTexts: filterGroupName.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupName.setDescription('A user-defined unique ASCII string identifying the filter group.') filterGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: filterGroupIndex.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupIndex.setDescription('The index of the filter entry within the filter group. Any filter group entry is uniquely identifable by the group nam and index.') filterGroupStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 3), StatusIndicator()).setMaxAccess("readwrite") if mibBuilder.loadTexts: filterGroupStatus.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupStatus.setDescription('The status of this filter group entry. Entries may be deleted by setting this object to invalid(2).') filterGroupMatch = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("lt", 1), ("eq", 2), ("le", 3), ("gt", 4), ("ne", 5), ("ge", 6)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: filterGroupMatch.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupMatch.setDescription('The match condition for the filter. Match conditions are in the form of the usual logical operators.') filterGroupType = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("macFilter", 1), ("llcFilter", 2), ("vlanFilter", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: filterGroupType.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupType.setDescription("The type of filter. MAC filters are defined from the start of the MAC frame. LLC filters are defined from the start of the LLC header (after RIF). VLAN filters operate on a packet's VLAN classification parameters. For a valid VLAN filter, filterGroupOffset be set to 0, and filterGroupValue must contain exactly four bytes of VLAN filter data as shown below: Octet 1 Defines the user priority match criteria for VLAN filter. Valid values are 0x01 through 0xFF. Each bit in the octet corresponds to one of the eight available user priority level as defined by the 802.1Q draft specification. The least significant bit represents priority zero, and the most significant bit represents priority seven. Octet 2 Defines the Canonical Format Indicator (CFI) match criteria for VLAN filter. Possible values are 0x00, 0x01 and 0xFF. The value 0xFF indicates the switch should ignore CFI value when filtering. Octet 3 and 4 Define 12-bit VLAN ID match criteria for VLAN filter. Valid values are 0x001 through 0xFFF.") filterGroupOffset = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: filterGroupOffset.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupOffset.setDescription('The byte offset from the beginning of the header to the value to filter.') filterGroupValue = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 12))).setMaxAccess("readwrite") if mibBuilder.loadTexts: filterGroupValue.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupValue.setDescription('The filter value field. The value is specified as a hexadecimal string up to 12 bytes.') filterGroupForward = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("normClear", 1), ("alt", 2), ("add", 3), ("addAlt", 4), ("norm", 5), ("normAlt", 6), ("normAdd", 7), ("normAddAlt", 8), ("drop", 9)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: filterGroupForward.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupForward.setDescription('The forwarding rule for the filter. Forward to normal indicates that the frame should be forwarded as usual.') filterGroupNextIfMatch = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: filterGroupNextIfMatch.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupNextIfMatch.setDescription('The next filter entry as referenced by the filter index to apply if the filter match succeeds. An entry of 0 indicates that filtering ends for the packet. An entry whose value is larger than the number of filters in the group indicates that the next filter entry to apply is the next filter group (if any) enabled on the port.') filterGroupNextIfFail = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 10), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: filterGroupNextIfFail.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupNextIfFail.setDescription('The next filter entry as referenced by the filter index to apply if the filter match fails. An entry of 0 indicates that filtering ends for the packet. An entry whose value is larger than the number of filters in the group indicates that the next filter entry to apply is the next filter group (if any) enabled on the port.') filterGroupAdditionalDests = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 11), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 256))).setMaxAccess("readwrite") if mibBuilder.loadTexts: filterGroupAdditionalDests.setStatus('deprecated') if mibBuilder.loadTexts: filterGroupAdditionalDests.setDescription('This will be replaced by filterGroupAdditionalDestions. A list of up to 256 pairs of additional cards and ports to send packets matching this filter. Each unsigned int8 is formatted as follows: the high-order 4 bits represent the card number, the low order 4 bits are the port number.') filterGroupMonitorDests = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 12), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: filterGroupMonitorDests.setStatus('deprecated') if mibBuilder.loadTexts: filterGroupMonitorDests.setDescription('This will be replaced by filterGroupAlternateDestination. A pair of the monitoring card and port to send packets matching this filter. Each unsigned int8 is formatted as follows: the high-order 4 bits represent the card number, the low order 4 bits are the port number.') filterGroupAdditionalDestinations = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 13), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 512))).setMaxAccess("readwrite") if mibBuilder.loadTexts: filterGroupAdditionalDestinations.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupAdditionalDestinations.setDescription('For 24 ports support. This is to replace filterGroupAdditionalDests. Setting either filterGroupAdditionalDests or filterGroupAlternateDestination is enough. And if both are set, the one set later will be in effect. Make sure that even number of octets are given. A list of up to 256 pairs of additional cards and ports to send packets matching this filter. Each pair of octets is formatted as follows: the high-order octet represent the card number, the low order octet is the port number.') filterGroupAlternateDestination = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 14), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 2))).setMaxAccess("readwrite") if mibBuilder.loadTexts: filterGroupAlternateDestination.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupAlternateDestination.setDescription('For 24 ports support. This is to replace filterGroupMonitorDests. Setting either filterGroupMonitorDests filterGroupAlternateDestination is enough. And if both are set, the one set later will be in effect. Make sure that even number of octets are given. A pair of the monitoring card and port to send packets matching this filter. Each pair of octets is formatted as follows: the high-order byte represent the card number, the low order byte is the port number.') filterPortTable = MibTable((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 2), ) if mibBuilder.loadTexts: filterPortTable.setStatus('mandatory') if mibBuilder.loadTexts: filterPortTable.setDescription('Input Filter Port Table.') filterPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 2, 1), ).setIndexNames((0, "CENTILLION-FILTERS-MIB", "filterPortCardNumber"), (0, "CENTILLION-FILTERS-MIB", "filterPortPortNumber"), (0, "CENTILLION-FILTERS-MIB", "filterPortIndex")) if mibBuilder.loadTexts: filterPortEntry.setStatus('mandatory') if mibBuilder.loadTexts: filterPortEntry.setDescription('An entry in the filter group table. Table entries are indexed by the unique user-defined group name, and the filter entry index as assigned by the system.') filterPortCardNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 2, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: filterPortCardNumber.setStatus('mandatory') if mibBuilder.loadTexts: filterPortCardNumber.setDescription('The card number to which the filters apply.') filterPortPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 2, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: filterPortPortNumber.setStatus('mandatory') if mibBuilder.loadTexts: filterPortPortNumber.setDescription('The port number to which the filters apply.') filterPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 2, 1, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: filterPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: filterPortIndex.setDescription('A unique value for each filter group within the port.') filterPortStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 2, 1, 4), StatusIndicator()).setMaxAccess("readwrite") if mibBuilder.loadTexts: filterPortStatus.setStatus('mandatory') if mibBuilder.loadTexts: filterPortStatus.setDescription('The status of this filter port entry. Entries may be deleted by setting this object to invalid(2).') filterPortGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 2, 1, 5), GeneralFilterName()).setMaxAccess("readwrite") if mibBuilder.loadTexts: filterPortGroupName.setStatus('mandatory') if mibBuilder.loadTexts: filterPortGroupName.setDescription('The filter port group name.') netbiosFilterPortTable = MibTable((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 3), ) if mibBuilder.loadTexts: netbiosFilterPortTable.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterPortTable.setDescription('The NetBIOS name filter table indexed by card and port numbers. ') netbiosFilterPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 3, 1), ).setIndexNames((0, "CENTILLION-FILTERS-MIB", "netbiosFilterPortCardNumber"), (0, "CENTILLION-FILTERS-MIB", "netbiosFilterPortPortNumber"), (0, "CENTILLION-FILTERS-MIB", "netbiosFilterPortIndex")) if mibBuilder.loadTexts: netbiosFilterPortEntry.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterPortEntry.setDescription('An entry in the NetBios filter port table. Table entries are indexed by the card, port and PortIndex as assigned by the system.') netbiosFilterPortCardNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 3, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: netbiosFilterPortCardNumber.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterPortCardNumber.setDescription('The card number to which the filters apply.') netbiosFilterPortPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 3, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: netbiosFilterPortPortNumber.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterPortPortNumber.setDescription('The port number to which the filters apply.') netbiosFilterPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 3, 1, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: netbiosFilterPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterPortIndex.setDescription('A unique value for each filter group within the port.') netbiosFilterPortStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 3, 1, 4), StatusIndicator()).setMaxAccess("readwrite") if mibBuilder.loadTexts: netbiosFilterPortStatus.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterPortStatus.setDescription('The status of this NetBIOS filter entry. Entries may be deleted by setting this object to invalid(2).') netbiosFilterPortName = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 3, 1, 5), NetbiosFilterName()).setMaxAccess("readwrite") if mibBuilder.loadTexts: netbiosFilterPortName.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterPortName.setDescription('The NetBIOS name to match for filtering. The name will be blank padded.') netbiosFilterPortAction = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 3, 1, 6), NetbiosFilterAction()).setMaxAccess("readwrite") if mibBuilder.loadTexts: netbiosFilterPortAction.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterPortAction.setDescription('The action to take upon matching the name filter.') netbiosFilterRingTable = MibTable((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 4), ) if mibBuilder.loadTexts: netbiosFilterRingTable.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterRingTable.setDescription('The NetBIOS name filter table indexed by ring number.') netbiosFilterRingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 4, 1), ).setIndexNames((0, "CENTILLION-FILTERS-MIB", "netbiosFilterRingNumber"), (0, "CENTILLION-FILTERS-MIB", "netbiosFilterRingIndex")) if mibBuilder.loadTexts: netbiosFilterRingEntry.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterRingEntry.setDescription('An entry in the NetBios filter port table. Table entries are indexed by ring number and PortIndex as assigned by the system.') netbiosFilterRingNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 4, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: netbiosFilterRingNumber.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterRingNumber.setDescription('The ring number to which the filters apply.') netbiosFilterRingIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 4, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: netbiosFilterRingIndex.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterRingIndex.setDescription('A unique value for each filter group within the port.') netbiosFilterRingStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 4, 1, 3), StatusIndicator()).setMaxAccess("readwrite") if mibBuilder.loadTexts: netbiosFilterRingStatus.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterRingStatus.setDescription('The status of this NetBIOS filter entry. Entries may be deleted by setting this object to invalid(2).') netbiosFilterRingName = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 4, 1, 4), NetbiosFilterName()).setMaxAccess("readwrite") if mibBuilder.loadTexts: netbiosFilterRingName.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterRingName.setDescription('The NetBIOS name to match for filtering. The name will be blank padded.') netbiosFilterRingAction = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 4, 1, 5), NetbiosFilterAction()).setMaxAccess("readwrite") if mibBuilder.loadTexts: netbiosFilterRingAction.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterRingAction.setDescription('The action to take upon matching the name filter.') outputFilterPortTable = MibTable((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 5), ) if mibBuilder.loadTexts: outputFilterPortTable.setStatus('mandatory') if mibBuilder.loadTexts: outputFilterPortTable.setDescription('Output Filter Port Table.') outputFilterPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 5, 1), ).setIndexNames((0, "CENTILLION-FILTERS-MIB", "outputFilterPortCardNumber"), (0, "CENTILLION-FILTERS-MIB", "outputFilterPortPortNumber"), (0, "CENTILLION-FILTERS-MIB", "outputFilterPortIndex")) if mibBuilder.loadTexts: outputFilterPortEntry.setStatus('mandatory') if mibBuilder.loadTexts: outputFilterPortEntry.setDescription('An entry in the filter group table. Table entries are indexed by the unique user-defined group name, and the filter entry index as assigned by the system.') outputFilterPortCardNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 5, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: outputFilterPortCardNumber.setStatus('mandatory') if mibBuilder.loadTexts: outputFilterPortCardNumber.setDescription('The card number to which the filters apply.') outputFilterPortPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 5, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: outputFilterPortPortNumber.setStatus('mandatory') if mibBuilder.loadTexts: outputFilterPortPortNumber.setDescription('The port number to which the filters apply.') outputFilterPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 5, 1, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: outputFilterPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: outputFilterPortIndex.setDescription('A unique value for each filter group within the port.') outputFilterPortStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 5, 1, 4), StatusIndicator()).setMaxAccess("readwrite") if mibBuilder.loadTexts: outputFilterPortStatus.setStatus('mandatory') if mibBuilder.loadTexts: outputFilterPortStatus.setDescription('The status of this filter port entry. Entries may be deleted by setting this object to invalid(2).') outputFilterPortGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 5, 1, 5), GeneralFilterName()).setMaxAccess("readwrite") if mibBuilder.loadTexts: outputFilterPortGroupName.setStatus('mandatory') if mibBuilder.loadTexts: outputFilterPortGroupName.setDescription('The filter port group name.') mibBuilder.exportSymbols("CENTILLION-FILTERS-MIB", netbiosFilterPortName=netbiosFilterPortName, filterGroupValue=filterGroupValue, netbiosFilterRingName=netbiosFilterRingName, filterGroupOffset=filterGroupOffset, netbiosFilterPortCardNumber=netbiosFilterPortCardNumber, NetbiosFilterName=NetbiosFilterName, netbiosFilterRingTable=netbiosFilterRingTable, netbiosFilterPortPortNumber=netbiosFilterPortPortNumber, outputFilterPortIndex=outputFilterPortIndex, filterGroupForward=filterGroupForward, outputFilterPortPortNumber=outputFilterPortPortNumber, filterGroupName=filterGroupName, filterGroupNextIfMatch=filterGroupNextIfMatch, filterGroupAdditionalDests=filterGroupAdditionalDests, netbiosFilterPortAction=netbiosFilterPortAction, outputFilterPortTable=outputFilterPortTable, netbiosFilterRingIndex=netbiosFilterRingIndex, outputFilterPortEntry=outputFilterPortEntry, netbiosFilterPortIndex=netbiosFilterPortIndex, outputFilterPortCardNumber=outputFilterPortCardNumber, netbiosFilterRingNumber=netbiosFilterRingNumber, filterPortStatus=filterPortStatus, netbiosFilterRingAction=netbiosFilterRingAction, filterGroup=filterGroup, netbiosFilterPortStatus=netbiosFilterPortStatus, filterGroupIndex=filterGroupIndex, netbiosFilterPortTable=netbiosFilterPortTable, filterPortEntry=filterPortEntry, filterGroupTable=filterGroupTable, filterPortTable=filterPortTable, filterGroupMatch=filterGroupMatch, GeneralFilterName=GeneralFilterName, netbiosFilterPortEntry=netbiosFilterPortEntry, netbiosFilterRingStatus=netbiosFilterRingStatus, outputFilterPortGroupName=outputFilterPortGroupName, filterGroupType=filterGroupType, filterGroupMonitorDests=filterGroupMonitorDests, filterPortCardNumber=filterPortCardNumber, filterGroupStatus=filterGroupStatus, filterGroupAlternateDestination=filterGroupAlternateDestination, filterPortGroupName=filterPortGroupName, filterPortPortNumber=filterPortPortNumber, filterGroupEntry=filterGroupEntry, outputFilterPortStatus=outputFilterPortStatus, filterGroupAdditionalDestinations=filterGroupAdditionalDestinations, netbiosFilterRingEntry=netbiosFilterRingEntry, filterPortIndex=filterPortIndex, filterGroupNextIfFail=filterGroupNextIfFail, NetbiosFilterAction=NetbiosFilterAction)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, constraints_intersection, value_size_constraint, value_range_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ValueRangeConstraint', 'SingleValueConstraint') (status_indicator, sys_config) = mibBuilder.importSymbols('CENTILLION-ROOT-MIB', 'StatusIndicator', 'sysConfig') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (time_ticks, counter32, mib_identifier, gauge32, object_identity, unsigned32, notification_type, iso, counter64, mib_scalar, mib_table, mib_table_row, mib_table_column, module_identity, ip_address, integer32, bits) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'Counter32', 'MibIdentifier', 'Gauge32', 'ObjectIdentity', 'Unsigned32', 'NotificationType', 'iso', 'Counter64', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ModuleIdentity', 'IpAddress', 'Integer32', 'Bits') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') class Generalfiltername(DisplayString): subtype_spec = DisplayString.subtypeSpec + value_size_constraint(8, 8) fixed_length = 8 class Netbiosfiltername(DisplayString): subtype_spec = DisplayString.subtypeSpec + value_size_constraint(16, 16) fixed_length = 16 class Netbiosfilteraction(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('discard', 1), ('forward', 2)) filter_group = mib_identifier((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11)) filter_group_table = mib_table((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1)) if mibBuilder.loadTexts: filterGroupTable.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupTable.setDescription('Filter Group Table. Entries are added into the group by specifying values for all objects with the exception of the filterGroupMonitorDests and filterGroupAdditionalDests objects. Entries are deleted simply by specifying the appropriate filterGroupStatus value.') filter_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1)).setIndexNames((0, 'CENTILLION-FILTERS-MIB', 'filterGroupName'), (0, 'CENTILLION-FILTERS-MIB', 'filterGroupIndex')) if mibBuilder.loadTexts: filterGroupEntry.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupEntry.setDescription('An entry in the filter group table. Table entries are indexed by the unique user-defined group name, and the filter entry index as assigned by the system.') filter_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 1), general_filter_name()).setMaxAccess('readwrite') if mibBuilder.loadTexts: filterGroupName.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupName.setDescription('A user-defined unique ASCII string identifying the filter group.') filter_group_index = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: filterGroupIndex.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupIndex.setDescription('The index of the filter entry within the filter group. Any filter group entry is uniquely identifable by the group nam and index.') filter_group_status = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 3), status_indicator()).setMaxAccess('readwrite') if mibBuilder.loadTexts: filterGroupStatus.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupStatus.setDescription('The status of this filter group entry. Entries may be deleted by setting this object to invalid(2).') filter_group_match = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('lt', 1), ('eq', 2), ('le', 3), ('gt', 4), ('ne', 5), ('ge', 6)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: filterGroupMatch.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupMatch.setDescription('The match condition for the filter. Match conditions are in the form of the usual logical operators.') filter_group_type = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('macFilter', 1), ('llcFilter', 2), ('vlanFilter', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: filterGroupType.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupType.setDescription("The type of filter. MAC filters are defined from the start of the MAC frame. LLC filters are defined from the start of the LLC header (after RIF). VLAN filters operate on a packet's VLAN classification parameters. For a valid VLAN filter, filterGroupOffset be set to 0, and filterGroupValue must contain exactly four bytes of VLAN filter data as shown below: Octet 1 Defines the user priority match criteria for VLAN filter. Valid values are 0x01 through 0xFF. Each bit in the octet corresponds to one of the eight available user priority level as defined by the 802.1Q draft specification. The least significant bit represents priority zero, and the most significant bit represents priority seven. Octet 2 Defines the Canonical Format Indicator (CFI) match criteria for VLAN filter. Possible values are 0x00, 0x01 and 0xFF. The value 0xFF indicates the switch should ignore CFI value when filtering. Octet 3 and 4 Define 12-bit VLAN ID match criteria for VLAN filter. Valid values are 0x001 through 0xFFF.") filter_group_offset = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 6), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: filterGroupOffset.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupOffset.setDescription('The byte offset from the beginning of the header to the value to filter.') filter_group_value = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(1, 12))).setMaxAccess('readwrite') if mibBuilder.loadTexts: filterGroupValue.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupValue.setDescription('The filter value field. The value is specified as a hexadecimal string up to 12 bytes.') filter_group_forward = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('normClear', 1), ('alt', 2), ('add', 3), ('addAlt', 4), ('norm', 5), ('normAlt', 6), ('normAdd', 7), ('normAddAlt', 8), ('drop', 9)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: filterGroupForward.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupForward.setDescription('The forwarding rule for the filter. Forward to normal indicates that the frame should be forwarded as usual.') filter_group_next_if_match = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 9), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: filterGroupNextIfMatch.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupNextIfMatch.setDescription('The next filter entry as referenced by the filter index to apply if the filter match succeeds. An entry of 0 indicates that filtering ends for the packet. An entry whose value is larger than the number of filters in the group indicates that the next filter entry to apply is the next filter group (if any) enabled on the port.') filter_group_next_if_fail = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 10), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: filterGroupNextIfFail.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupNextIfFail.setDescription('The next filter entry as referenced by the filter index to apply if the filter match fails. An entry of 0 indicates that filtering ends for the packet. An entry whose value is larger than the number of filters in the group indicates that the next filter entry to apply is the next filter group (if any) enabled on the port.') filter_group_additional_dests = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 11), octet_string().subtype(subtypeSpec=value_size_constraint(0, 256))).setMaxAccess('readwrite') if mibBuilder.loadTexts: filterGroupAdditionalDests.setStatus('deprecated') if mibBuilder.loadTexts: filterGroupAdditionalDests.setDescription('This will be replaced by filterGroupAdditionalDestions. A list of up to 256 pairs of additional cards and ports to send packets matching this filter. Each unsigned int8 is formatted as follows: the high-order 4 bits represent the card number, the low order 4 bits are the port number.') filter_group_monitor_dests = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 12), octet_string().subtype(subtypeSpec=value_size_constraint(0, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: filterGroupMonitorDests.setStatus('deprecated') if mibBuilder.loadTexts: filterGroupMonitorDests.setDescription('This will be replaced by filterGroupAlternateDestination. A pair of the monitoring card and port to send packets matching this filter. Each unsigned int8 is formatted as follows: the high-order 4 bits represent the card number, the low order 4 bits are the port number.') filter_group_additional_destinations = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 13), octet_string().subtype(subtypeSpec=value_size_constraint(0, 512))).setMaxAccess('readwrite') if mibBuilder.loadTexts: filterGroupAdditionalDestinations.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupAdditionalDestinations.setDescription('For 24 ports support. This is to replace filterGroupAdditionalDests. Setting either filterGroupAdditionalDests or filterGroupAlternateDestination is enough. And if both are set, the one set later will be in effect. Make sure that even number of octets are given. A list of up to 256 pairs of additional cards and ports to send packets matching this filter. Each pair of octets is formatted as follows: the high-order octet represent the card number, the low order octet is the port number.') filter_group_alternate_destination = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 1, 1, 14), octet_string().subtype(subtypeSpec=value_size_constraint(0, 2))).setMaxAccess('readwrite') if mibBuilder.loadTexts: filterGroupAlternateDestination.setStatus('mandatory') if mibBuilder.loadTexts: filterGroupAlternateDestination.setDescription('For 24 ports support. This is to replace filterGroupMonitorDests. Setting either filterGroupMonitorDests filterGroupAlternateDestination is enough. And if both are set, the one set later will be in effect. Make sure that even number of octets are given. A pair of the monitoring card and port to send packets matching this filter. Each pair of octets is formatted as follows: the high-order byte represent the card number, the low order byte is the port number.') filter_port_table = mib_table((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 2)) if mibBuilder.loadTexts: filterPortTable.setStatus('mandatory') if mibBuilder.loadTexts: filterPortTable.setDescription('Input Filter Port Table.') filter_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 2, 1)).setIndexNames((0, 'CENTILLION-FILTERS-MIB', 'filterPortCardNumber'), (0, 'CENTILLION-FILTERS-MIB', 'filterPortPortNumber'), (0, 'CENTILLION-FILTERS-MIB', 'filterPortIndex')) if mibBuilder.loadTexts: filterPortEntry.setStatus('mandatory') if mibBuilder.loadTexts: filterPortEntry.setDescription('An entry in the filter group table. Table entries are indexed by the unique user-defined group name, and the filter entry index as assigned by the system.') filter_port_card_number = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 2, 1, 1), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: filterPortCardNumber.setStatus('mandatory') if mibBuilder.loadTexts: filterPortCardNumber.setDescription('The card number to which the filters apply.') filter_port_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 2, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: filterPortPortNumber.setStatus('mandatory') if mibBuilder.loadTexts: filterPortPortNumber.setDescription('The port number to which the filters apply.') filter_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 2, 1, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: filterPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: filterPortIndex.setDescription('A unique value for each filter group within the port.') filter_port_status = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 2, 1, 4), status_indicator()).setMaxAccess('readwrite') if mibBuilder.loadTexts: filterPortStatus.setStatus('mandatory') if mibBuilder.loadTexts: filterPortStatus.setDescription('The status of this filter port entry. Entries may be deleted by setting this object to invalid(2).') filter_port_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 2, 1, 5), general_filter_name()).setMaxAccess('readwrite') if mibBuilder.loadTexts: filterPortGroupName.setStatus('mandatory') if mibBuilder.loadTexts: filterPortGroupName.setDescription('The filter port group name.') netbios_filter_port_table = mib_table((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 3)) if mibBuilder.loadTexts: netbiosFilterPortTable.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterPortTable.setDescription('The NetBIOS name filter table indexed by card and port numbers. ') netbios_filter_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 3, 1)).setIndexNames((0, 'CENTILLION-FILTERS-MIB', 'netbiosFilterPortCardNumber'), (0, 'CENTILLION-FILTERS-MIB', 'netbiosFilterPortPortNumber'), (0, 'CENTILLION-FILTERS-MIB', 'netbiosFilterPortIndex')) if mibBuilder.loadTexts: netbiosFilterPortEntry.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterPortEntry.setDescription('An entry in the NetBios filter port table. Table entries are indexed by the card, port and PortIndex as assigned by the system.') netbios_filter_port_card_number = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 3, 1, 1), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: netbiosFilterPortCardNumber.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterPortCardNumber.setDescription('The card number to which the filters apply.') netbios_filter_port_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 3, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: netbiosFilterPortPortNumber.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterPortPortNumber.setDescription('The port number to which the filters apply.') netbios_filter_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 3, 1, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: netbiosFilterPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterPortIndex.setDescription('A unique value for each filter group within the port.') netbios_filter_port_status = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 3, 1, 4), status_indicator()).setMaxAccess('readwrite') if mibBuilder.loadTexts: netbiosFilterPortStatus.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterPortStatus.setDescription('The status of this NetBIOS filter entry. Entries may be deleted by setting this object to invalid(2).') netbios_filter_port_name = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 3, 1, 5), netbios_filter_name()).setMaxAccess('readwrite') if mibBuilder.loadTexts: netbiosFilterPortName.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterPortName.setDescription('The NetBIOS name to match for filtering. The name will be blank padded.') netbios_filter_port_action = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 3, 1, 6), netbios_filter_action()).setMaxAccess('readwrite') if mibBuilder.loadTexts: netbiosFilterPortAction.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterPortAction.setDescription('The action to take upon matching the name filter.') netbios_filter_ring_table = mib_table((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 4)) if mibBuilder.loadTexts: netbiosFilterRingTable.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterRingTable.setDescription('The NetBIOS name filter table indexed by ring number.') netbios_filter_ring_entry = mib_table_row((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 4, 1)).setIndexNames((0, 'CENTILLION-FILTERS-MIB', 'netbiosFilterRingNumber'), (0, 'CENTILLION-FILTERS-MIB', 'netbiosFilterRingIndex')) if mibBuilder.loadTexts: netbiosFilterRingEntry.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterRingEntry.setDescription('An entry in the NetBios filter port table. Table entries are indexed by ring number and PortIndex as assigned by the system.') netbios_filter_ring_number = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 4, 1, 1), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: netbiosFilterRingNumber.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterRingNumber.setDescription('The ring number to which the filters apply.') netbios_filter_ring_index = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 4, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: netbiosFilterRingIndex.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterRingIndex.setDescription('A unique value for each filter group within the port.') netbios_filter_ring_status = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 4, 1, 3), status_indicator()).setMaxAccess('readwrite') if mibBuilder.loadTexts: netbiosFilterRingStatus.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterRingStatus.setDescription('The status of this NetBIOS filter entry. Entries may be deleted by setting this object to invalid(2).') netbios_filter_ring_name = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 4, 1, 4), netbios_filter_name()).setMaxAccess('readwrite') if mibBuilder.loadTexts: netbiosFilterRingName.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterRingName.setDescription('The NetBIOS name to match for filtering. The name will be blank padded.') netbios_filter_ring_action = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 4, 1, 5), netbios_filter_action()).setMaxAccess('readwrite') if mibBuilder.loadTexts: netbiosFilterRingAction.setStatus('mandatory') if mibBuilder.loadTexts: netbiosFilterRingAction.setDescription('The action to take upon matching the name filter.') output_filter_port_table = mib_table((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 5)) if mibBuilder.loadTexts: outputFilterPortTable.setStatus('mandatory') if mibBuilder.loadTexts: outputFilterPortTable.setDescription('Output Filter Port Table.') output_filter_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 5, 1)).setIndexNames((0, 'CENTILLION-FILTERS-MIB', 'outputFilterPortCardNumber'), (0, 'CENTILLION-FILTERS-MIB', 'outputFilterPortPortNumber'), (0, 'CENTILLION-FILTERS-MIB', 'outputFilterPortIndex')) if mibBuilder.loadTexts: outputFilterPortEntry.setStatus('mandatory') if mibBuilder.loadTexts: outputFilterPortEntry.setDescription('An entry in the filter group table. Table entries are indexed by the unique user-defined group name, and the filter entry index as assigned by the system.') output_filter_port_card_number = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 5, 1, 1), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: outputFilterPortCardNumber.setStatus('mandatory') if mibBuilder.loadTexts: outputFilterPortCardNumber.setDescription('The card number to which the filters apply.') output_filter_port_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 5, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: outputFilterPortPortNumber.setStatus('mandatory') if mibBuilder.loadTexts: outputFilterPortPortNumber.setDescription('The port number to which the filters apply.') output_filter_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 5, 1, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: outputFilterPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: outputFilterPortIndex.setDescription('A unique value for each filter group within the port.') output_filter_port_status = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 5, 1, 4), status_indicator()).setMaxAccess('readwrite') if mibBuilder.loadTexts: outputFilterPortStatus.setStatus('mandatory') if mibBuilder.loadTexts: outputFilterPortStatus.setDescription('The status of this filter port entry. Entries may be deleted by setting this object to invalid(2).') output_filter_port_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 930, 2, 1, 2, 11, 5, 1, 5), general_filter_name()).setMaxAccess('readwrite') if mibBuilder.loadTexts: outputFilterPortGroupName.setStatus('mandatory') if mibBuilder.loadTexts: outputFilterPortGroupName.setDescription('The filter port group name.') mibBuilder.exportSymbols('CENTILLION-FILTERS-MIB', netbiosFilterPortName=netbiosFilterPortName, filterGroupValue=filterGroupValue, netbiosFilterRingName=netbiosFilterRingName, filterGroupOffset=filterGroupOffset, netbiosFilterPortCardNumber=netbiosFilterPortCardNumber, NetbiosFilterName=NetbiosFilterName, netbiosFilterRingTable=netbiosFilterRingTable, netbiosFilterPortPortNumber=netbiosFilterPortPortNumber, outputFilterPortIndex=outputFilterPortIndex, filterGroupForward=filterGroupForward, outputFilterPortPortNumber=outputFilterPortPortNumber, filterGroupName=filterGroupName, filterGroupNextIfMatch=filterGroupNextIfMatch, filterGroupAdditionalDests=filterGroupAdditionalDests, netbiosFilterPortAction=netbiosFilterPortAction, outputFilterPortTable=outputFilterPortTable, netbiosFilterRingIndex=netbiosFilterRingIndex, outputFilterPortEntry=outputFilterPortEntry, netbiosFilterPortIndex=netbiosFilterPortIndex, outputFilterPortCardNumber=outputFilterPortCardNumber, netbiosFilterRingNumber=netbiosFilterRingNumber, filterPortStatus=filterPortStatus, netbiosFilterRingAction=netbiosFilterRingAction, filterGroup=filterGroup, netbiosFilterPortStatus=netbiosFilterPortStatus, filterGroupIndex=filterGroupIndex, netbiosFilterPortTable=netbiosFilterPortTable, filterPortEntry=filterPortEntry, filterGroupTable=filterGroupTable, filterPortTable=filterPortTable, filterGroupMatch=filterGroupMatch, GeneralFilterName=GeneralFilterName, netbiosFilterPortEntry=netbiosFilterPortEntry, netbiosFilterRingStatus=netbiosFilterRingStatus, outputFilterPortGroupName=outputFilterPortGroupName, filterGroupType=filterGroupType, filterGroupMonitorDests=filterGroupMonitorDests, filterPortCardNumber=filterPortCardNumber, filterGroupStatus=filterGroupStatus, filterGroupAlternateDestination=filterGroupAlternateDestination, filterPortGroupName=filterPortGroupName, filterPortPortNumber=filterPortPortNumber, filterGroupEntry=filterGroupEntry, outputFilterPortStatus=outputFilterPortStatus, filterGroupAdditionalDestinations=filterGroupAdditionalDestinations, netbiosFilterRingEntry=netbiosFilterRingEntry, filterPortIndex=filterPortIndex, filterGroupNextIfFail=filterGroupNextIfFail, NetbiosFilterAction=NetbiosFilterAction)
""" Author: Haris Hasic, PhD Student Institution: Ishida Laboratory, Department of Computer Science, School of Computing, Tokyo Institute of Technology Updated on: April, 2021 Description: Currently, this folder does not contain any libraries which are taken from an outside source. Disclaimer: The authors do not own any of the contents in this folder, nor vouch for the correctness of the code. It is simply used as a sort of plug-and-play, open-source material in accordance with the provided licences. However, some of the original files may have been removed to ensure easier handling of this project. Thus, in order to get the authentic experience, it is strongly recommended to use the original repositories in the provided links. """
""" Author: Haris Hasic, PhD Student Institution: Ishida Laboratory, Department of Computer Science, School of Computing, Tokyo Institute of Technology Updated on: April, 2021 Description: Currently, this folder does not contain any libraries which are taken from an outside source. Disclaimer: The authors do not own any of the contents in this folder, nor vouch for the correctness of the code. It is simply used as a sort of plug-and-play, open-source material in accordance with the provided licences. However, some of the original files may have been removed to ensure easier handling of this project. Thus, in order to get the authentic experience, it is strongly recommended to use the original repositories in the provided links. """
def ask_user_for_weeknum(): weeknum = 0 while weeknum not in range(1,23): try: weeknum = int(input('Please enter the number of the week that we\'re in:')) if weeknum in range(1,23): break else: print('You did not enter a valid week number') #weeknum = int(input('Please enter the number of the week that we\'re in:')) except ValueError or UnboundLocalError: print('You did not enter a valid week number') print() weeknum = str(weeknum) if len(weeknum) == 1: weeknum = '0'+weeknum #print(weeknum) return weeknum #ask_user_for_weeknum()
def ask_user_for_weeknum(): weeknum = 0 while weeknum not in range(1, 23): try: weeknum = int(input("Please enter the number of the week that we're in:")) if weeknum in range(1, 23): break else: print('You did not enter a valid week number') except ValueError or UnboundLocalError: print('You did not enter a valid week number') print() weeknum = str(weeknum) if len(weeknum) == 1: weeknum = '0' + weeknum return weeknum
message = input() new_message = '' index = 0 current_text = '' multiplier = '' while index < len(message): if message[index].isdigit(): multiplier += message[index] if index+1 < len(message): if message[index+1].isdigit(): multiplier += message[index+1] index += 1 multiplier = int(multiplier) new_message += current_text * multiplier index += 1 multiplier = '' current_text = '' continue current_text += message[index].upper() index += 1 print(f"Unique symbols used: {len(set(new_message))}") print(new_message)
message = input() new_message = '' index = 0 current_text = '' multiplier = '' while index < len(message): if message[index].isdigit(): multiplier += message[index] if index + 1 < len(message): if message[index + 1].isdigit(): multiplier += message[index + 1] index += 1 multiplier = int(multiplier) new_message += current_text * multiplier index += 1 multiplier = '' current_text = '' continue current_text += message[index].upper() index += 1 print(f'Unique symbols used: {len(set(new_message))}') print(new_message)
load("//:import_external.bzl", import_external = "safe_wix_scala_maven_import_external") def dependencies(): import_external( name = "org_mongodb_mongodb_driver_reactivestreams", artifact = "org.mongodb:mongodb-driver-reactivestreams:1.11.0", jar_sha256 = "ae3d5eb3c51a0c286f43fe7ab0c52e3e0b385766f1b4dd82e06df1e617770764", srcjar_sha256 = "f3eb497f44ffc040d048c205d813c84846a3fc550a656110b1888a38797af77b", deps = [ "@org_mongodb_mongodb_driver_async", "@org_reactivestreams_reactive_streams" ], )
load('//:import_external.bzl', import_external='safe_wix_scala_maven_import_external') def dependencies(): import_external(name='org_mongodb_mongodb_driver_reactivestreams', artifact='org.mongodb:mongodb-driver-reactivestreams:1.11.0', jar_sha256='ae3d5eb3c51a0c286f43fe7ab0c52e3e0b385766f1b4dd82e06df1e617770764', srcjar_sha256='f3eb497f44ffc040d048c205d813c84846a3fc550a656110b1888a38797af77b', deps=['@org_mongodb_mongodb_driver_async', '@org_reactivestreams_reactive_streams'])
""" [2017-11-10] Challenge #339 [Hard] Severing the Power Grid https://www.reddit.com/r/dailyprogrammer/comments/7c4bju/20171110_challenge_339_hard_severing_the_power/ # Description In energy production, the power grid is a a large directed graph of energy consumers and producers. At times you need to cut at certain nodes and trim demand because you cannot supply enough of a load. In DailyProgrammeropolis, all buildings are connected to the grid and all consume power to varying degrees. Some generate power because they have installed on-site generation and sell the excess to the grid, some do not. The scenario you're facing is this: due to a fault with the bulk power generation facility not local to DailyProgrammerololis, you must trim the power grid. You have connectivity data, and power consumption and production data. Your goal with this challenge is to **maximize the number of powered nodes with the generated energy you have**. Note that when you cut off a node, you run the risk the downstream ones will loose power, too, if they are no longer connected. This is how you'll shed demand, by selectively cutting the graph. You can make as many cuts as you want (there is no restriction on this). # Input Description You'll be given an extensive set of data for this challenge. The first set of data looks like this: you'll be given a single integer on one line telling you how many nodes to read. Then you'll be given those nodes, one per line, with the node ID, the amount of power it consumes in kWH, then how much the node generates in kWH. Not all nodes produce electricity, but some do (e.g. a wind farm, solar cells, etc), and there is obviously one that generates the most - that's your main power plant. The next set of data is the edge data. The first line is how many edges to read, then the next *N* lines have data showing how the nodes are connected (e.g. power flows from node a to b). Example: 3 0 40.926 0.0 1 36.812 1.552 2 1.007 0.0 2 0 1 0 2 # Output Description Your program should emit a list of edges to sever as a list of (i,j) two tuples. Multiple answers are possible. You may wind up with a number of small islands as opposed to one powered network. # Challenge Input 101 0 1.926 0.0 1 36.812 0.0 2 1.007 0.0 3 6.812 0.0 4 1.589 0.0 5 1.002 0.0 6 1.531 0.0 7 2.810 0.0 8 1.246 0.0 9 5.816 0.0 10 1.167 0.0 11 1.357 0.0 12 1.585 0.0 13 1.117 0.0 14 3.110 1.553 15 2.743 0.0 16 1.282 0.0 17 1.154 0.0 18 1.160 0.0 19 1.253 0.0 20 1.086 0.0 21 1.148 0.0 22 1.357 0.0 23 2.161 0.0 24 1.260 0.0 25 2.241 0.0 26 2.970 0.0 27 6.972 0.0 28 2.443 0.0 29 1.255 0.0 30 1.844 0.0 31 2.503 0.0 32 1.054 0.0 33 1.368 0.0 34 1.011 1.601 35 1.432 0.0 36 1.061 1.452 37 1.432 0.0 38 2.011 0.0 39 1.232 0.0 40 1.767 0.0 41 1.590 0.0 42 2.453 0.0 43 1.972 0.0 44 1.445 0.0 45 1.197 0.0 46 2.497 0.0 47 3.510 0.0 48 12.510 0.0 49 3.237 0.0 50 1.287 0.0 51 1.613 0.0 52 1.776 0.0 53 2.013 0.0 54 1.079 0.0 55 1.345 1.230 56 1.613 0.0 57 2.243 0.0 58 1.209 0.0 59 1.429 0.0 60 7.709 0.0 61 1.282 8.371 62 1.036 0.0 63 1.086 0.0 64 1.087 0.0 65 1.000 0.0 66 1.140 0.0 67 1.210 0.0 68 1.080 0.0 69 1.087 0.0 70 1.399 0.0 71 2.681 0.0 72 1.693 0.0 73 1.266 0.0 74 1.234 0.0 75 2.755 0.0 76 2.173 0.0 77 1.093 0.0 78 1.005 0.0 79 1.420 0.0 80 1.135 0.0 81 1.101 0.0 82 1.187 1.668 83 2.334 0.0 84 2.054 3.447 85 1.711 0.0 86 2.083 0.0 87 2.724 0.0 88 1.654 0.0 89 1.608 0.0 90 1.033 17.707 91 1.017 0.0 92 1.528 0.0 93 1.278 0.0 94 1.128 0.0 95 1.508 1.149 96 5.123 0.0 97 2.000 0.0 98 1.426 0.0 99 1.802 0.0 100 2.995 98.606 Edge data is too much to put up here. You can download it [here](https://github.com/paralax/ColossalOpera/blob/master/hard/microgrid_edges.txt). """ def main(): pass if __name__ == "__main__": main()
""" [2017-11-10] Challenge #339 [Hard] Severing the Power Grid https://www.reddit.com/r/dailyprogrammer/comments/7c4bju/20171110_challenge_339_hard_severing_the_power/ # Description In energy production, the power grid is a a large directed graph of energy consumers and producers. At times you need to cut at certain nodes and trim demand because you cannot supply enough of a load. In DailyProgrammeropolis, all buildings are connected to the grid and all consume power to varying degrees. Some generate power because they have installed on-site generation and sell the excess to the grid, some do not. The scenario you're facing is this: due to a fault with the bulk power generation facility not local to DailyProgrammerololis, you must trim the power grid. You have connectivity data, and power consumption and production data. Your goal with this challenge is to **maximize the number of powered nodes with the generated energy you have**. Note that when you cut off a node, you run the risk the downstream ones will loose power, too, if they are no longer connected. This is how you'll shed demand, by selectively cutting the graph. You can make as many cuts as you want (there is no restriction on this). # Input Description You'll be given an extensive set of data for this challenge. The first set of data looks like this: you'll be given a single integer on one line telling you how many nodes to read. Then you'll be given those nodes, one per line, with the node ID, the amount of power it consumes in kWH, then how much the node generates in kWH. Not all nodes produce electricity, but some do (e.g. a wind farm, solar cells, etc), and there is obviously one that generates the most - that's your main power plant. The next set of data is the edge data. The first line is how many edges to read, then the next *N* lines have data showing how the nodes are connected (e.g. power flows from node a to b). Example: 3 0 40.926 0.0 1 36.812 1.552 2 1.007 0.0 2 0 1 0 2 # Output Description Your program should emit a list of edges to sever as a list of (i,j) two tuples. Multiple answers are possible. You may wind up with a number of small islands as opposed to one powered network. # Challenge Input 101 0 1.926 0.0 1 36.812 0.0 2 1.007 0.0 3 6.812 0.0 4 1.589 0.0 5 1.002 0.0 6 1.531 0.0 7 2.810 0.0 8 1.246 0.0 9 5.816 0.0 10 1.167 0.0 11 1.357 0.0 12 1.585 0.0 13 1.117 0.0 14 3.110 1.553 15 2.743 0.0 16 1.282 0.0 17 1.154 0.0 18 1.160 0.0 19 1.253 0.0 20 1.086 0.0 21 1.148 0.0 22 1.357 0.0 23 2.161 0.0 24 1.260 0.0 25 2.241 0.0 26 2.970 0.0 27 6.972 0.0 28 2.443 0.0 29 1.255 0.0 30 1.844 0.0 31 2.503 0.0 32 1.054 0.0 33 1.368 0.0 34 1.011 1.601 35 1.432 0.0 36 1.061 1.452 37 1.432 0.0 38 2.011 0.0 39 1.232 0.0 40 1.767 0.0 41 1.590 0.0 42 2.453 0.0 43 1.972 0.0 44 1.445 0.0 45 1.197 0.0 46 2.497 0.0 47 3.510 0.0 48 12.510 0.0 49 3.237 0.0 50 1.287 0.0 51 1.613 0.0 52 1.776 0.0 53 2.013 0.0 54 1.079 0.0 55 1.345 1.230 56 1.613 0.0 57 2.243 0.0 58 1.209 0.0 59 1.429 0.0 60 7.709 0.0 61 1.282 8.371 62 1.036 0.0 63 1.086 0.0 64 1.087 0.0 65 1.000 0.0 66 1.140 0.0 67 1.210 0.0 68 1.080 0.0 69 1.087 0.0 70 1.399 0.0 71 2.681 0.0 72 1.693 0.0 73 1.266 0.0 74 1.234 0.0 75 2.755 0.0 76 2.173 0.0 77 1.093 0.0 78 1.005 0.0 79 1.420 0.0 80 1.135 0.0 81 1.101 0.0 82 1.187 1.668 83 2.334 0.0 84 2.054 3.447 85 1.711 0.0 86 2.083 0.0 87 2.724 0.0 88 1.654 0.0 89 1.608 0.0 90 1.033 17.707 91 1.017 0.0 92 1.528 0.0 93 1.278 0.0 94 1.128 0.0 95 1.508 1.149 96 5.123 0.0 97 2.000 0.0 98 1.426 0.0 99 1.802 0.0 100 2.995 98.606 Edge data is too much to put up here. You can download it [here](https://github.com/paralax/ColossalOpera/blob/master/hard/microgrid_edges.txt). """ def main(): pass if __name__ == '__main__': main()
def delete_date_symbols(date,dateFormat): if(dateFormat == 'YYYY-MM-DD HH:MM:SS'): year = date[0:4] month = date[5:7] day = date[8:10] hours = date[11:13] minutes = date[14:16] seconds = date[17:19] formattedDate=year+month+day+hours+minutes+seconds return formattedDate else: return 'pass a date formatted as YYYY-MM-DD HH:MM:SS'
def delete_date_symbols(date, dateFormat): if dateFormat == 'YYYY-MM-DD HH:MM:SS': year = date[0:4] month = date[5:7] day = date[8:10] hours = date[11:13] minutes = date[14:16] seconds = date[17:19] formatted_date = year + month + day + hours + minutes + seconds return formattedDate else: return 'pass a date formatted as YYYY-MM-DD HH:MM:SS'
#!/usr/bin/env python """ Copyright 2012 Wordnik, Inc. 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. """ class AudioFile: """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.""" def __init__(self): self.swaggerTypes = { 'attributionUrl': 'str', 'commentCount': 'int', 'voteCount': 'int', 'fileUrl': 'str', 'audioType': 'str', 'id': 'long', 'duration': 'float', 'attributionText': 'str', 'createdBy': 'str', 'description': 'str', 'createdAt': 'datetime', 'voteWeightedAverage': 'float', 'voteAverage': 'float', 'word': 'str' } self.attributionUrl = None # str self.commentCount = None # int self.voteCount = None # int self.fileUrl = None # str self.audioType = None # str self.id = None # long self.duration = None # float self.attributionText = None # str self.createdBy = None # str self.description = None # str self.createdAt = None # datetime self.voteWeightedAverage = None # float self.voteAverage = None # float self.word = None # str
""" Copyright 2012 Wordnik, Inc. 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. """ class Audiofile: """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.""" def __init__(self): self.swaggerTypes = {'attributionUrl': 'str', 'commentCount': 'int', 'voteCount': 'int', 'fileUrl': 'str', 'audioType': 'str', 'id': 'long', 'duration': 'float', 'attributionText': 'str', 'createdBy': 'str', 'description': 'str', 'createdAt': 'datetime', 'voteWeightedAverage': 'float', 'voteAverage': 'float', 'word': 'str'} self.attributionUrl = None self.commentCount = None self.voteCount = None self.fileUrl = None self.audioType = None self.id = None self.duration = None self.attributionText = None self.createdBy = None self.description = None self.createdAt = None self.voteWeightedAverage = None self.voteAverage = None self.word = None
class Solution: def countAndSay(self, n: int) -> str: if n == 1: return "1" prev = "1" for i in range(1, n): res = "" val = prev[0] count = 1 for i in range(1, len(prev)): if prev[i] == val: count += 1 else: res += str(count) + val val = prev[i] count =1 res += str(count) + val prev = res return res
class Solution: def count_and_say(self, n: int) -> str: if n == 1: return '1' prev = '1' for i in range(1, n): res = '' val = prev[0] count = 1 for i in range(1, len(prev)): if prev[i] == val: count += 1 else: res += str(count) + val val = prev[i] count = 1 res += str(count) + val prev = res return res
begin_unit comment|'# Copyright 2014 OpenStack Foundation' nl|'\n' comment|'# All Rights Reserved.' nl|'\n' comment|'#' nl|'\n' comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may' nl|'\n' comment|'# not use this file except in compliance with the License. You may obtain' nl|'\n' comment|'# a copy of the License at' nl|'\n' comment|'#' nl|'\n' comment|'# http://www.apache.org/licenses/LICENSE-2.0' nl|'\n' comment|'#' nl|'\n' comment|'# Unless required by applicable law or agreed to in writing, software' nl|'\n' comment|'# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT' nl|'\n' comment|'# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the' nl|'\n' comment|'# License for the specific language governing permissions and limitations' nl|'\n' comment|'# under the License.' nl|'\n' string|'"""\nFake nodes for Ironic host manager tests.\n"""' newline|'\n' nl|'\n' name|'from' name|'nova' name|'import' name|'objects' newline|'\n' nl|'\n' nl|'\n' DECL|variable|COMPUTE_NODES name|'COMPUTE_NODES' op|'=' op|'[' nl|'\n' name|'objects' op|'.' name|'ComputeNode' op|'(' nl|'\n' name|'id' op|'=' number|'1' op|',' name|'local_gb' op|'=' number|'10' op|',' name|'memory_mb' op|'=' number|'1024' op|',' name|'vcpus' op|'=' number|'1' op|',' nl|'\n' name|'vcpus_used' op|'=' number|'0' op|',' name|'local_gb_used' op|'=' number|'0' op|',' name|'memory_mb_used' op|'=' number|'0' op|',' nl|'\n' name|'updated_at' op|'=' name|'None' op|',' name|'cpu_info' op|'=' string|"'baremetal cpu'" op|',' nl|'\n' DECL|variable|host name|'host' op|'=' string|"'host1'" op|',' nl|'\n' name|'hypervisor_hostname' op|'=' string|"'node1uuid'" op|',' name|'host_ip' op|'=' string|"'127.0.0.1'" op|',' nl|'\n' name|'hypervisor_version' op|'=' number|'1' op|',' name|'hypervisor_type' op|'=' string|"'ironic'" op|',' nl|'\n' DECL|variable|stats name|'stats' op|'=' name|'dict' op|'(' name|'ironic_driver' op|'=' nl|'\n' string|'"nova.virt.ironic.driver.IronicDriver"' op|',' nl|'\n' DECL|variable|cpu_arch name|'cpu_arch' op|'=' string|"'i386'" op|')' op|',' nl|'\n' DECL|variable|supported_hv_specs name|'supported_hv_specs' op|'=' op|'[' name|'objects' op|'.' name|'HVSpec' op|'.' name|'from_list' op|'(' nl|'\n' op|'[' string|'"i386"' op|',' string|'"baremetal"' op|',' string|'"baremetal"' op|']' op|')' op|']' op|',' nl|'\n' name|'free_disk_gb' op|'=' number|'10' op|',' name|'free_ram_mb' op|'=' number|'1024' op|',' nl|'\n' name|'cpu_allocation_ratio' op|'=' number|'16.0' op|',' name|'ram_allocation_ratio' op|'=' number|'1.5' op|',' nl|'\n' DECL|variable|disk_allocation_ratio name|'disk_allocation_ratio' op|'=' number|'1.0' op|')' op|',' nl|'\n' name|'objects' op|'.' name|'ComputeNode' op|'(' nl|'\n' name|'id' op|'=' number|'2' op|',' name|'local_gb' op|'=' number|'20' op|',' name|'memory_mb' op|'=' number|'2048' op|',' name|'vcpus' op|'=' number|'1' op|',' nl|'\n' name|'vcpus_used' op|'=' number|'0' op|',' name|'local_gb_used' op|'=' number|'0' op|',' name|'memory_mb_used' op|'=' number|'0' op|',' nl|'\n' name|'updated_at' op|'=' name|'None' op|',' name|'cpu_info' op|'=' string|"'baremetal cpu'" op|',' nl|'\n' DECL|variable|host name|'host' op|'=' string|"'host2'" op|',' nl|'\n' name|'hypervisor_hostname' op|'=' string|"'node2uuid'" op|',' name|'host_ip' op|'=' string|"'127.0.0.1'" op|',' nl|'\n' name|'hypervisor_version' op|'=' number|'1' op|',' name|'hypervisor_type' op|'=' string|"'ironic'" op|',' nl|'\n' DECL|variable|stats name|'stats' op|'=' name|'dict' op|'(' name|'ironic_driver' op|'=' nl|'\n' string|'"nova.virt.ironic.driver.IronicDriver"' op|',' nl|'\n' DECL|variable|cpu_arch name|'cpu_arch' op|'=' string|"'i386'" op|')' op|',' nl|'\n' DECL|variable|supported_hv_specs name|'supported_hv_specs' op|'=' op|'[' name|'objects' op|'.' name|'HVSpec' op|'.' name|'from_list' op|'(' nl|'\n' op|'[' string|'"i386"' op|',' string|'"baremetal"' op|',' string|'"baremetal"' op|']' op|')' op|']' op|',' nl|'\n' name|'free_disk_gb' op|'=' number|'20' op|',' name|'free_ram_mb' op|'=' number|'2048' op|',' nl|'\n' name|'cpu_allocation_ratio' op|'=' number|'16.0' op|',' name|'ram_allocation_ratio' op|'=' number|'1.5' op|',' nl|'\n' DECL|variable|disk_allocation_ratio name|'disk_allocation_ratio' op|'=' number|'1.0' op|')' op|',' nl|'\n' name|'objects' op|'.' name|'ComputeNode' op|'(' nl|'\n' name|'id' op|'=' number|'3' op|',' name|'local_gb' op|'=' number|'30' op|',' name|'memory_mb' op|'=' number|'3072' op|',' name|'vcpus' op|'=' number|'1' op|',' nl|'\n' name|'vcpus_used' op|'=' number|'0' op|',' name|'local_gb_used' op|'=' number|'0' op|',' name|'memory_mb_used' op|'=' number|'0' op|',' nl|'\n' name|'updated_at' op|'=' name|'None' op|',' name|'cpu_info' op|'=' string|"'baremetal cpu'" op|',' nl|'\n' DECL|variable|host name|'host' op|'=' string|"'host3'" op|',' nl|'\n' name|'hypervisor_hostname' op|'=' string|"'node3uuid'" op|',' name|'host_ip' op|'=' string|"'127.0.0.1'" op|',' nl|'\n' name|'hypervisor_version' op|'=' number|'1' op|',' name|'hypervisor_type' op|'=' string|"'ironic'" op|',' nl|'\n' DECL|variable|stats name|'stats' op|'=' name|'dict' op|'(' name|'ironic_driver' op|'=' nl|'\n' string|'"nova.virt.ironic.driver.IronicDriver"' op|',' nl|'\n' DECL|variable|cpu_arch name|'cpu_arch' op|'=' string|"'i386'" op|')' op|',' nl|'\n' DECL|variable|supported_hv_specs name|'supported_hv_specs' op|'=' op|'[' name|'objects' op|'.' name|'HVSpec' op|'.' name|'from_list' op|'(' nl|'\n' op|'[' string|'"i386"' op|',' string|'"baremetal"' op|',' string|'"baremetal"' op|']' op|')' op|']' op|',' nl|'\n' name|'free_disk_gb' op|'=' number|'30' op|',' name|'free_ram_mb' op|'=' number|'3072' op|',' nl|'\n' name|'cpu_allocation_ratio' op|'=' number|'16.0' op|',' name|'ram_allocation_ratio' op|'=' number|'1.5' op|',' nl|'\n' DECL|variable|disk_allocation_ratio name|'disk_allocation_ratio' op|'=' number|'1.0' op|')' op|',' nl|'\n' name|'objects' op|'.' name|'ComputeNode' op|'(' nl|'\n' name|'id' op|'=' number|'4' op|',' name|'local_gb' op|'=' number|'40' op|',' name|'memory_mb' op|'=' number|'4096' op|',' name|'vcpus' op|'=' number|'1' op|',' nl|'\n' name|'vcpus_used' op|'=' number|'0' op|',' name|'local_gb_used' op|'=' number|'0' op|',' name|'memory_mb_used' op|'=' number|'0' op|',' nl|'\n' name|'updated_at' op|'=' name|'None' op|',' name|'cpu_info' op|'=' string|"'baremetal cpu'" op|',' nl|'\n' DECL|variable|host name|'host' op|'=' string|"'host4'" op|',' nl|'\n' name|'hypervisor_hostname' op|'=' string|"'node4uuid'" op|',' name|'host_ip' op|'=' string|"'127.0.0.1'" op|',' nl|'\n' name|'hypervisor_version' op|'=' number|'1' op|',' name|'hypervisor_type' op|'=' string|"'ironic'" op|',' nl|'\n' DECL|variable|stats name|'stats' op|'=' name|'dict' op|'(' name|'ironic_driver' op|'=' nl|'\n' string|'"nova.virt.ironic.driver.IronicDriver"' op|',' nl|'\n' DECL|variable|cpu_arch name|'cpu_arch' op|'=' string|"'i386'" op|')' op|',' nl|'\n' DECL|variable|supported_hv_specs name|'supported_hv_specs' op|'=' op|'[' name|'objects' op|'.' name|'HVSpec' op|'.' name|'from_list' op|'(' nl|'\n' op|'[' string|'"i386"' op|',' string|'"baremetal"' op|',' string|'"baremetal"' op|']' op|')' op|']' op|',' nl|'\n' name|'free_disk_gb' op|'=' number|'40' op|',' name|'free_ram_mb' op|'=' number|'4096' op|',' nl|'\n' name|'cpu_allocation_ratio' op|'=' number|'16.0' op|',' name|'ram_allocation_ratio' op|'=' number|'1.5' op|',' nl|'\n' DECL|variable|disk_allocation_ratio name|'disk_allocation_ratio' op|'=' number|'1.0' op|')' op|',' nl|'\n' comment|'# Broken entry' nl|'\n' name|'objects' op|'.' name|'ComputeNode' op|'(' nl|'\n' name|'id' op|'=' number|'5' op|',' name|'local_gb' op|'=' number|'50' op|',' name|'memory_mb' op|'=' number|'5120' op|',' name|'vcpus' op|'=' number|'1' op|',' nl|'\n' name|'host' op|'=' string|"'fake'" op|',' name|'cpu_info' op|'=' string|"'baremetal cpu'" op|',' nl|'\n' DECL|variable|stats name|'stats' op|'=' name|'dict' op|'(' name|'ironic_driver' op|'=' nl|'\n' string|'"nova.virt.ironic.driver.IronicDriver"' op|',' nl|'\n' DECL|variable|cpu_arch name|'cpu_arch' op|'=' string|"'i386'" op|')' op|',' nl|'\n' DECL|variable|supported_hv_specs name|'supported_hv_specs' op|'=' op|'[' name|'objects' op|'.' name|'HVSpec' op|'.' name|'from_list' op|'(' nl|'\n' op|'[' string|'"i386"' op|',' string|'"baremetal"' op|',' string|'"baremetal"' op|']' op|')' op|']' op|',' nl|'\n' name|'free_disk_gb' op|'=' number|'50' op|',' name|'free_ram_mb' op|'=' number|'5120' op|',' nl|'\n' DECL|variable|hypervisor_hostname name|'hypervisor_hostname' op|'=' string|"'fake-hyp'" op|')' op|',' nl|'\n' op|']' newline|'\n' nl|'\n' DECL|variable|SERVICES name|'SERVICES' op|'=' op|'[' nl|'\n' name|'objects' op|'.' name|'Service' op|'(' name|'host' op|'=' string|"'host1'" op|',' name|'disabled' op|'=' name|'False' op|')' op|',' nl|'\n' name|'objects' op|'.' name|'Service' op|'(' name|'host' op|'=' string|"'host2'" op|',' name|'disabled' op|'=' name|'True' op|')' op|',' nl|'\n' name|'objects' op|'.' name|'Service' op|'(' name|'host' op|'=' string|"'host3'" op|',' name|'disabled' op|'=' name|'False' op|')' op|',' nl|'\n' name|'objects' op|'.' name|'Service' op|'(' name|'host' op|'=' string|"'host4'" op|',' name|'disabled' op|'=' name|'False' op|')' op|',' nl|'\n' op|']' newline|'\n' nl|'\n' nl|'\n' DECL|function|get_service_by_host name|'def' name|'get_service_by_host' op|'(' name|'host' op|')' op|':' newline|'\n' indent|' ' name|'services' op|'=' op|'[' name|'service' name|'for' name|'service' name|'in' name|'SERVICES' name|'if' name|'service' op|'.' name|'host' op|'==' name|'host' op|']' newline|'\n' name|'return' name|'services' op|'[' number|'0' op|']' newline|'\n' dedent|'' endmarker|'' end_unit
begin_unit comment | '# Copyright 2014 OpenStack Foundation' nl | '\n' comment | '# All Rights Reserved.' nl | '\n' comment | '#' nl | '\n' comment | '# Licensed under the Apache License, Version 2.0 (the "License"); you may' nl | '\n' comment | '# not use this file except in compliance with the License. You may obtain' nl | '\n' comment | '# a copy of the License at' nl | '\n' comment | '#' nl | '\n' comment | '# http://www.apache.org/licenses/LICENSE-2.0' nl | '\n' comment | '#' nl | '\n' comment | '# Unless required by applicable law or agreed to in writing, software' nl | '\n' comment | '# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT' nl | '\n' comment | '# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the' nl | '\n' comment | '# License for the specific language governing permissions and limitations' nl | '\n' comment | '# under the License.' nl | '\n' string | '"""\nFake nodes for Ironic host manager tests.\n"""' newline | '\n' nl | '\n' name | 'from' name | 'nova' name | 'import' name | 'objects' newline | '\n' nl | '\n' nl | '\n' DECL | variable | COMPUTE_NODES name | 'COMPUTE_NODES' op | '=' op | '[' nl | '\n' name | 'objects' op | '.' name | 'ComputeNode' op | '(' nl | '\n' name | 'id' op | '=' number | '1' op | ',' name | 'local_gb' op | '=' number | '10' op | ',' name | 'memory_mb' op | '=' number | '1024' op | ',' name | 'vcpus' op | '=' number | '1' op | ',' nl | '\n' name | 'vcpus_used' op | '=' number | '0' op | ',' name | 'local_gb_used' op | '=' number | '0' op | ',' name | 'memory_mb_used' op | '=' number | '0' op | ',' nl | '\n' name | 'updated_at' op | '=' name | 'None' op | ',' name | 'cpu_info' op | '=' string | "'baremetal cpu'" op | ',' nl | '\n' DECL | variable | host name | 'host' op | '=' string | "'host1'" op | ',' nl | '\n' name | 'hypervisor_hostname' op | '=' string | "'node1uuid'" op | ',' name | 'host_ip' op | '=' string | "'127.0.0.1'" op | ',' nl | '\n' name | 'hypervisor_version' op | '=' number | '1' op | ',' name | 'hypervisor_type' op | '=' string | "'ironic'" op | ',' nl | '\n' DECL | variable | stats name | 'stats' op | '=' name | 'dict' op | '(' name | 'ironic_driver' op | '=' nl | '\n' string | '"nova.virt.ironic.driver.IronicDriver"' op | ',' nl | '\n' DECL | variable | cpu_arch name | 'cpu_arch' op | '=' string | "'i386'" op | ')' op | ',' nl | '\n' DECL | variable | supported_hv_specs name | 'supported_hv_specs' op | '=' op | '[' name | 'objects' op | '.' name | 'HVSpec' op | '.' name | 'from_list' op | '(' nl | '\n' op | '[' string | '"i386"' op | ',' string | '"baremetal"' op | ',' string | '"baremetal"' op | ']' op | ')' op | ']' op | ',' nl | '\n' name | 'free_disk_gb' op | '=' number | '10' op | ',' name | 'free_ram_mb' op | '=' number | '1024' op | ',' nl | '\n' name | 'cpu_allocation_ratio' op | '=' number | '16.0' op | ',' name | 'ram_allocation_ratio' op | '=' number | '1.5' op | ',' nl | '\n' DECL | variable | disk_allocation_ratio name | 'disk_allocation_ratio' op | '=' number | '1.0' op | ')' op | ',' nl | '\n' name | 'objects' op | '.' name | 'ComputeNode' op | '(' nl | '\n' name | 'id' op | '=' number | '2' op | ',' name | 'local_gb' op | '=' number | '20' op | ',' name | 'memory_mb' op | '=' number | '2048' op | ',' name | 'vcpus' op | '=' number | '1' op | ',' nl | '\n' name | 'vcpus_used' op | '=' number | '0' op | ',' name | 'local_gb_used' op | '=' number | '0' op | ',' name | 'memory_mb_used' op | '=' number | '0' op | ',' nl | '\n' name | 'updated_at' op | '=' name | 'None' op | ',' name | 'cpu_info' op | '=' string | "'baremetal cpu'" op | ',' nl | '\n' DECL | variable | host name | 'host' op | '=' string | "'host2'" op | ',' nl | '\n' name | 'hypervisor_hostname' op | '=' string | "'node2uuid'" op | ',' name | 'host_ip' op | '=' string | "'127.0.0.1'" op | ',' nl | '\n' name | 'hypervisor_version' op | '=' number | '1' op | ',' name | 'hypervisor_type' op | '=' string | "'ironic'" op | ',' nl | '\n' DECL | variable | stats name | 'stats' op | '=' name | 'dict' op | '(' name | 'ironic_driver' op | '=' nl | '\n' string | '"nova.virt.ironic.driver.IronicDriver"' op | ',' nl | '\n' DECL | variable | cpu_arch name | 'cpu_arch' op | '=' string | "'i386'" op | ')' op | ',' nl | '\n' DECL | variable | supported_hv_specs name | 'supported_hv_specs' op | '=' op | '[' name | 'objects' op | '.' name | 'HVSpec' op | '.' name | 'from_list' op | '(' nl | '\n' op | '[' string | '"i386"' op | ',' string | '"baremetal"' op | ',' string | '"baremetal"' op | ']' op | ')' op | ']' op | ',' nl | '\n' name | 'free_disk_gb' op | '=' number | '20' op | ',' name | 'free_ram_mb' op | '=' number | '2048' op | ',' nl | '\n' name | 'cpu_allocation_ratio' op | '=' number | '16.0' op | ',' name | 'ram_allocation_ratio' op | '=' number | '1.5' op | ',' nl | '\n' DECL | variable | disk_allocation_ratio name | 'disk_allocation_ratio' op | '=' number | '1.0' op | ')' op | ',' nl | '\n' name | 'objects' op | '.' name | 'ComputeNode' op | '(' nl | '\n' name | 'id' op | '=' number | '3' op | ',' name | 'local_gb' op | '=' number | '30' op | ',' name | 'memory_mb' op | '=' number | '3072' op | ',' name | 'vcpus' op | '=' number | '1' op | ',' nl | '\n' name | 'vcpus_used' op | '=' number | '0' op | ',' name | 'local_gb_used' op | '=' number | '0' op | ',' name | 'memory_mb_used' op | '=' number | '0' op | ',' nl | '\n' name | 'updated_at' op | '=' name | 'None' op | ',' name | 'cpu_info' op | '=' string | "'baremetal cpu'" op | ',' nl | '\n' DECL | variable | host name | 'host' op | '=' string | "'host3'" op | ',' nl | '\n' name | 'hypervisor_hostname' op | '=' string | "'node3uuid'" op | ',' name | 'host_ip' op | '=' string | "'127.0.0.1'" op | ',' nl | '\n' name | 'hypervisor_version' op | '=' number | '1' op | ',' name | 'hypervisor_type' op | '=' string | "'ironic'" op | ',' nl | '\n' DECL | variable | stats name | 'stats' op | '=' name | 'dict' op | '(' name | 'ironic_driver' op | '=' nl | '\n' string | '"nova.virt.ironic.driver.IronicDriver"' op | ',' nl | '\n' DECL | variable | cpu_arch name | 'cpu_arch' op | '=' string | "'i386'" op | ')' op | ',' nl | '\n' DECL | variable | supported_hv_specs name | 'supported_hv_specs' op | '=' op | '[' name | 'objects' op | '.' name | 'HVSpec' op | '.' name | 'from_list' op | '(' nl | '\n' op | '[' string | '"i386"' op | ',' string | '"baremetal"' op | ',' string | '"baremetal"' op | ']' op | ')' op | ']' op | ',' nl | '\n' name | 'free_disk_gb' op | '=' number | '30' op | ',' name | 'free_ram_mb' op | '=' number | '3072' op | ',' nl | '\n' name | 'cpu_allocation_ratio' op | '=' number | '16.0' op | ',' name | 'ram_allocation_ratio' op | '=' number | '1.5' op | ',' nl | '\n' DECL | variable | disk_allocation_ratio name | 'disk_allocation_ratio' op | '=' number | '1.0' op | ')' op | ',' nl | '\n' name | 'objects' op | '.' name | 'ComputeNode' op | '(' nl | '\n' name | 'id' op | '=' number | '4' op | ',' name | 'local_gb' op | '=' number | '40' op | ',' name | 'memory_mb' op | '=' number | '4096' op | ',' name | 'vcpus' op | '=' number | '1' op | ',' nl | '\n' name | 'vcpus_used' op | '=' number | '0' op | ',' name | 'local_gb_used' op | '=' number | '0' op | ',' name | 'memory_mb_used' op | '=' number | '0' op | ',' nl | '\n' name | 'updated_at' op | '=' name | 'None' op | ',' name | 'cpu_info' op | '=' string | "'baremetal cpu'" op | ',' nl | '\n' DECL | variable | host name | 'host' op | '=' string | "'host4'" op | ',' nl | '\n' name | 'hypervisor_hostname' op | '=' string | "'node4uuid'" op | ',' name | 'host_ip' op | '=' string | "'127.0.0.1'" op | ',' nl | '\n' name | 'hypervisor_version' op | '=' number | '1' op | ',' name | 'hypervisor_type' op | '=' string | "'ironic'" op | ',' nl | '\n' DECL | variable | stats name | 'stats' op | '=' name | 'dict' op | '(' name | 'ironic_driver' op | '=' nl | '\n' string | '"nova.virt.ironic.driver.IronicDriver"' op | ',' nl | '\n' DECL | variable | cpu_arch name | 'cpu_arch' op | '=' string | "'i386'" op | ')' op | ',' nl | '\n' DECL | variable | supported_hv_specs name | 'supported_hv_specs' op | '=' op | '[' name | 'objects' op | '.' name | 'HVSpec' op | '.' name | 'from_list' op | '(' nl | '\n' op | '[' string | '"i386"' op | ',' string | '"baremetal"' op | ',' string | '"baremetal"' op | ']' op | ')' op | ']' op | ',' nl | '\n' name | 'free_disk_gb' op | '=' number | '40' op | ',' name | 'free_ram_mb' op | '=' number | '4096' op | ',' nl | '\n' name | 'cpu_allocation_ratio' op | '=' number | '16.0' op | ',' name | 'ram_allocation_ratio' op | '=' number | '1.5' op | ',' nl | '\n' DECL | variable | disk_allocation_ratio name | 'disk_allocation_ratio' op | '=' number | '1.0' op | ')' op | ',' nl | '\n' comment | '# Broken entry' nl | '\n' name | 'objects' op | '.' name | 'ComputeNode' op | '(' nl | '\n' name | 'id' op | '=' number | '5' op | ',' name | 'local_gb' op | '=' number | '50' op | ',' name | 'memory_mb' op | '=' number | '5120' op | ',' name | 'vcpus' op | '=' number | '1' op | ',' nl | '\n' name | 'host' op | '=' string | "'fake'" op | ',' name | 'cpu_info' op | '=' string | "'baremetal cpu'" op | ',' nl | '\n' DECL | variable | stats name | 'stats' op | '=' name | 'dict' op | '(' name | 'ironic_driver' op | '=' nl | '\n' string | '"nova.virt.ironic.driver.IronicDriver"' op | ',' nl | '\n' DECL | variable | cpu_arch name | 'cpu_arch' op | '=' string | "'i386'" op | ')' op | ',' nl | '\n' DECL | variable | supported_hv_specs name | 'supported_hv_specs' op | '=' op | '[' name | 'objects' op | '.' name | 'HVSpec' op | '.' name | 'from_list' op | '(' nl | '\n' op | '[' string | '"i386"' op | ',' string | '"baremetal"' op | ',' string | '"baremetal"' op | ']' op | ')' op | ']' op | ',' nl | '\n' name | 'free_disk_gb' op | '=' number | '50' op | ',' name | 'free_ram_mb' op | '=' number | '5120' op | ',' nl | '\n' DECL | variable | hypervisor_hostname name | 'hypervisor_hostname' op | '=' string | "'fake-hyp'" op | ')' op | ',' nl | '\n' op | ']' newline | '\n' nl | '\n' DECL | variable | SERVICES name | 'SERVICES' op | '=' op | '[' nl | '\n' name | 'objects' op | '.' name | 'Service' op | '(' name | 'host' op | '=' string | "'host1'" op | ',' name | 'disabled' op | '=' name | 'False' op | ')' op | ',' nl | '\n' name | 'objects' op | '.' name | 'Service' op | '(' name | 'host' op | '=' string | "'host2'" op | ',' name | 'disabled' op | '=' name | 'True' op | ')' op | ',' nl | '\n' name | 'objects' op | '.' name | 'Service' op | '(' name | 'host' op | '=' string | "'host3'" op | ',' name | 'disabled' op | '=' name | 'False' op | ')' op | ',' nl | '\n' name | 'objects' op | '.' name | 'Service' op | '(' name | 'host' op | '=' string | "'host4'" op | ',' name | 'disabled' op | '=' name | 'False' op | ')' op | ',' nl | '\n' op | ']' newline | '\n' nl | '\n' nl | '\n' DECL | function | get_service_by_host name | 'def' name | 'get_service_by_host' op | '(' name | 'host' op | ')' op | ':' newline | '\n' indent | ' ' name | 'services' op | '=' op | '[' name | 'service' name | 'for' name | 'service' name | 'in' name | 'SERVICES' name | 'if' name | 'service' op | '.' name | 'host' op | '==' name | 'host' op | ']' newline | '\n' name | 'return' name | 'services' op | '[' number | '0' op | ']' newline | '\n' dedent | '' endmarker | '' end_unit
# # @lc app=leetcode id=771 lang=python3 # # [771] Jewels and Stones # # @lc code=start class Solution: def numJewelsInStones(self, J: str, S: str) -> int: jewels = set(J) number_jewels = 0 for char in S: if char in jewels: number_jewels += 1 return number_jewels # return (1 if char in jewels else 0 for char in jewels) # oneline solution # @lc code=end
class Solution: def num_jewels_in_stones(self, J: str, S: str) -> int: jewels = set(J) number_jewels = 0 for char in S: if char in jewels: number_jewels += 1 return number_jewels
#Odd numbers for number in range(1,21,2): print(number)
for number in range(1, 21, 2): print(number)
# Copyright (C) 2019 The Android Open Source Project # # 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. # Noop function used to override rules we don't want to support in standalone. def _noop_override(**kwargs): pass PERFETTO_CONFIG = struct( # This is used to refer to deps within perfetto's BUILD files. # In standalone and bazel-based embedders use '//', because perfetto has its # own repository, and //xxx would be relative to @perfetto//xxx. # In Google internal builds, instead, this is set to //third_party/perfetto, # because perfetto doesn't have its own repository there. root = "//", # These variables map dependencies to perfetto third-party projects. This is # to allow perfetto embedders (e.g. gapid) and google internal builds to # override paths and target names to their own third_party. deps = struct( # Target exposing the build config header. It should be a valid # cc_library dependency as it will become a dependency of every # perfetto_cc_library target. It needs to expose a # "perfetto_build_flags.h" file that can be included via: # #include "perfetto_build_flags.h". build_config = ["//:build_config_hdr"], zlib = ["@perfetto_dep_zlib//:zlib"], jsoncpp = ["@perfetto_dep_jsoncpp//:jsoncpp"], linenoise = ["@perfetto_dep_linenoise//:linenoise"], sqlite = ["@perfetto_dep_sqlite//:sqlite"], sqlite_ext_percentile = ["@perfetto_dep_sqlite_src//:percentile_ext"], protoc = ["@com_google_protobuf//:protoc"], protoc_lib = ["@com_google_protobuf//:protoc_lib"], protobuf_lite = ["@com_google_protobuf//:protobuf_lite"], protobuf_full = ["@com_google_protobuf//:protobuf"], ), # This struct allows embedders to customize the cc_opts for Perfetto # 3rd party dependencies. They only have an effect if the dependencies are # initialized with the Perfetto build files (i.e. via perfetto_deps()). deps_copts = struct( zlib = [], jsoncpp = [], linenoise = [], sqlite = [], ), # Allow Bazel embedders to change the visibility of "public" targets. # This variable has been introduced to limit the change to Bazel and avoid # making the targets fully public in the google internal tree. public_visibility = [ "//visibility:public", ], # Allow Bazel embedders to change the visibility of the proto targets. # This variable has been introduced to limit the change to Bazel and avoid # making the targets public in the google internal tree. proto_library_visibility = "//visibility:private", # This struct allows the embedder to customize copts and other args passed # to rules like cc_binary. Prefixed rules (e.g. perfetto_cc_binary) will # look into this struct before falling back on native.cc_binary(). # This field is completely optional, the embedder can omit the whole # |rule_overrides| or invidivual keys. They are assigned to None or noop # actions here just for documentation purposes. rule_overrides = struct( cc_binary = None, cc_library = None, cc_proto_library = None, # Supporting java rules pulls in the JDK and generally is not something # we need for most embedders. java_proto_library = _noop_override, java_lite_proto_library = _noop_override, proto_library = None, py_binary = None, # We only need this for internal binaries. No other embeedder should # care about this. gensignature_internal_only = None, ), )
def _noop_override(**kwargs): pass perfetto_config = struct(root='//', deps=struct(build_config=['//:build_config_hdr'], zlib=['@perfetto_dep_zlib//:zlib'], jsoncpp=['@perfetto_dep_jsoncpp//:jsoncpp'], linenoise=['@perfetto_dep_linenoise//:linenoise'], sqlite=['@perfetto_dep_sqlite//:sqlite'], sqlite_ext_percentile=['@perfetto_dep_sqlite_src//:percentile_ext'], protoc=['@com_google_protobuf//:protoc'], protoc_lib=['@com_google_protobuf//:protoc_lib'], protobuf_lite=['@com_google_protobuf//:protobuf_lite'], protobuf_full=['@com_google_protobuf//:protobuf']), deps_copts=struct(zlib=[], jsoncpp=[], linenoise=[], sqlite=[]), public_visibility=['//visibility:public'], proto_library_visibility='//visibility:private', rule_overrides=struct(cc_binary=None, cc_library=None, cc_proto_library=None, java_proto_library=_noop_override, java_lite_proto_library=_noop_override, proto_library=None, py_binary=None, gensignature_internal_only=None))
load("@npm//@bazel/typescript:index.bzl", "ts_library") def ng_ts_library(**kwargs): ts_library( compiler = "//libraries/angular-tools:tsc_wrapped_with_angular", supports_workers = True, use_angular_plugin = True, **kwargs )
load('@npm//@bazel/typescript:index.bzl', 'ts_library') def ng_ts_library(**kwargs): ts_library(compiler='//libraries/angular-tools:tsc_wrapped_with_angular', supports_workers=True, use_angular_plugin=True, **kwargs)
# Copyright (C) 2013 - 2016 - Oscar Campos <[email protected]> # This program is Free Software see LICENSE file for details class StubProcess(object): """Self descriptive class name, right? """ def __init__(self, interpreter): self._process = None self._interpreter = None def start(self): """Just returns True and does nothing """ return True
class Stubprocess(object): """Self descriptive class name, right? """ def __init__(self, interpreter): self._process = None self._interpreter = None def start(self): """Just returns True and does nothing """ return True
def comb(n, k): if n - k < k: k = n - k if k == 0: return 1 a = 1 b = 1 for i in range(k): a *= n - i b *= i + 1 return a // b N, P = map(int, input().split()) A = list(map(int, input().split())) odds = sum(a % 2 for a in A) evens = len(A) - odds print(sum(comb(odds, i) for i in range(P, odds + 1, 2)) * (2 ** evens))
def comb(n, k): if n - k < k: k = n - k if k == 0: return 1 a = 1 b = 1 for i in range(k): a *= n - i b *= i + 1 return a // b (n, p) = map(int, input().split()) a = list(map(int, input().split())) odds = sum((a % 2 for a in A)) evens = len(A) - odds print(sum((comb(odds, i) for i in range(P, odds + 1, 2))) * 2 ** evens)
class Solution: def medianSlidingWindow(self, nums: List[int], k: int) -> List[float]: if k == 0: return [] win = sorted(nums[:k]) ans = [] for i in range(k, len(nums) + 1): median = (win[k // 2] + win[(k - 1) // 2]) / 2.0 ans.append(median) if i == len(nums): break # get the index of the nums[i-k] and then delete it, then insort nums[i] index = bisect.bisect_left(win, nums[i - k]) win.pop(index) bisect.insort_left(win, nums[i]) return ans
class Solution: def median_sliding_window(self, nums: List[int], k: int) -> List[float]: if k == 0: return [] win = sorted(nums[:k]) ans = [] for i in range(k, len(nums) + 1): median = (win[k // 2] + win[(k - 1) // 2]) / 2.0 ans.append(median) if i == len(nums): break index = bisect.bisect_left(win, nums[i - k]) win.pop(index) bisect.insort_left(win, nums[i]) return ans
# https://codeforces.com/problemset/problem/230/A s, n = [int(x) for x in input().split()] dragons = [] new_dragons = [] for _ in range(n): x, y = [int(x) for x in input().split()] dragons.append([x, y]) dragons.sort() for row in range(n - 1): current_row = dragons[row] next_row = dragons[row + 1] if current_row[0] == next_row[0]: if current_row[1] < next_row[1]: dragons[row], dragons[row + 1] = dragons[row + 1], dragons[row] else: continue # print(dragons) bool_var = True for row in dragons: if s > row[0]: s += row[1] else: print('NO') bool_var = False break if bool_var: print('YES')
(s, n) = [int(x) for x in input().split()] dragons = [] new_dragons = [] for _ in range(n): (x, y) = [int(x) for x in input().split()] dragons.append([x, y]) dragons.sort() for row in range(n - 1): current_row = dragons[row] next_row = dragons[row + 1] if current_row[0] == next_row[0]: if current_row[1] < next_row[1]: (dragons[row], dragons[row + 1]) = (dragons[row + 1], dragons[row]) else: continue bool_var = True for row in dragons: if s > row[0]: s += row[1] else: print('NO') bool_var = False break if bool_var: print('YES')
# # PySNMP MIB module NMS-EPON-ONU-RESET (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NMS-EPON-ONU-RESET # Produced by pysmi-0.3.4 at Mon Apr 29 20:12:13 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") SingleValueConstraint, ValueSizeConstraint, ConstraintsUnion, ConstraintsIntersection, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "ValueRangeConstraint") nmsEPONGroup, = mibBuilder.importSymbols("NMS-SMI", "nmsEPONGroup") PortList, = mibBuilder.importSymbols("Q-BRIDGE-MIB", "PortList") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Bits, NotificationType, IpAddress, Integer32, Gauge32, ModuleIdentity, Unsigned32, iso, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, TimeTicks, Counter64, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "NotificationType", "IpAddress", "Integer32", "Gauge32", "ModuleIdentity", "Unsigned32", "iso", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "TimeTicks", "Counter64", "ObjectIdentity") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") nmsEponOnuReset = MibIdentifier((1, 3, 6, 1, 4, 1, 11606, 10, 101, 25)) nmsEponOnuResetTable = MibTable((1, 3, 6, 1, 4, 1, 11606, 10, 101, 25, 1), ) if mibBuilder.loadTexts: nmsEponOnuResetTable.setStatus('mandatory') nmsEponOnuResetEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11606, 10, 101, 25, 1, 1), ).setIndexNames((0, "NMS-EPON-ONU-RESET", "onuLlid")) if mibBuilder.loadTexts: nmsEponOnuResetEntry.setStatus('mandatory') onuLlid = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 101, 25, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: onuLlid.setStatus('mandatory') onuReset = MibTableColumn((1, 3, 6, 1, 4, 1, 11606, 10, 101, 25, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no_action", 0), ("reset", 1)))).setMaxAccess("writeonly") if mibBuilder.loadTexts: onuReset.setStatus('mandatory') mibBuilder.exportSymbols("NMS-EPON-ONU-RESET", nmsEponOnuResetEntry=nmsEponOnuResetEntry, onuLlid=onuLlid, nmsEponOnuResetTable=nmsEponOnuResetTable, nmsEponOnuReset=nmsEponOnuReset, onuReset=onuReset)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_size_constraint, constraints_union, constraints_intersection, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueRangeConstraint') (nms_epon_group,) = mibBuilder.importSymbols('NMS-SMI', 'nmsEPONGroup') (port_list,) = mibBuilder.importSymbols('Q-BRIDGE-MIB', 'PortList') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (bits, notification_type, ip_address, integer32, gauge32, module_identity, unsigned32, iso, mib_identifier, mib_scalar, mib_table, mib_table_row, mib_table_column, counter32, time_ticks, counter64, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'Bits', 'NotificationType', 'IpAddress', 'Integer32', 'Gauge32', 'ModuleIdentity', 'Unsigned32', 'iso', 'MibIdentifier', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter32', 'TimeTicks', 'Counter64', 'ObjectIdentity') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') nms_epon_onu_reset = mib_identifier((1, 3, 6, 1, 4, 1, 11606, 10, 101, 25)) nms_epon_onu_reset_table = mib_table((1, 3, 6, 1, 4, 1, 11606, 10, 101, 25, 1)) if mibBuilder.loadTexts: nmsEponOnuResetTable.setStatus('mandatory') nms_epon_onu_reset_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11606, 10, 101, 25, 1, 1)).setIndexNames((0, 'NMS-EPON-ONU-RESET', 'onuLlid')) if mibBuilder.loadTexts: nmsEponOnuResetEntry.setStatus('mandatory') onu_llid = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 101, 25, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: onuLlid.setStatus('mandatory') onu_reset = mib_table_column((1, 3, 6, 1, 4, 1, 11606, 10, 101, 25, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no_action', 0), ('reset', 1)))).setMaxAccess('writeonly') if mibBuilder.loadTexts: onuReset.setStatus('mandatory') mibBuilder.exportSymbols('NMS-EPON-ONU-RESET', nmsEponOnuResetEntry=nmsEponOnuResetEntry, onuLlid=onuLlid, nmsEponOnuResetTable=nmsEponOnuResetTable, nmsEponOnuReset=nmsEponOnuReset, onuReset=onuReset)
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. # def duplicate_edges_in_reverse(graph): """ Takes in a directed multi graph, and creates duplicates of all edges, the duplicates having reversed direction to the originals. This is useful since directed edges constrain the direction of messages passed. We want to permit omni-directional message passing. :param graph: The graph :return: The graph with duplicated edges, reversed, with all original edge properties attached to the duplicates """ for sender, receiver, keys, data in graph.edges(data=True, keys=True): graph.add_edge(receiver, sender, keys, **data) return graph def apply_logits_to_graphs(graph, logits_graph): """ Take in a graph that describes the logits of the graph of interest, and store those logits on the graph as the property 'logits'. The graphs must correspond with one another Args: graph: Graph to apply logits to logits_graph: Graph containing logits Returns: graph with logits added as property 'logits' """ for node, data in logits_graph.nodes(data=True): graph.nodes[node]['logits'] = list(data['features']) # TODO This is the desired implementation, but the graphs are altered by the model to have duplicated reversed # edges, so this won't work for now # for sender, receiver, keys, data in logit_graph.edges(keys=True, data=True): # graph.edges[sender, receiver, keys]['logits'] = list(data['features']) for sender, receiver, keys, data in graph.edges(keys=True, data=True): data['logits'] = list(logits_graph.edges[sender, receiver, keys]['features']) return graph
def duplicate_edges_in_reverse(graph): """ Takes in a directed multi graph, and creates duplicates of all edges, the duplicates having reversed direction to the originals. This is useful since directed edges constrain the direction of messages passed. We want to permit omni-directional message passing. :param graph: The graph :return: The graph with duplicated edges, reversed, with all original edge properties attached to the duplicates """ for (sender, receiver, keys, data) in graph.edges(data=True, keys=True): graph.add_edge(receiver, sender, keys, **data) return graph def apply_logits_to_graphs(graph, logits_graph): """ Take in a graph that describes the logits of the graph of interest, and store those logits on the graph as the property 'logits'. The graphs must correspond with one another Args: graph: Graph to apply logits to logits_graph: Graph containing logits Returns: graph with logits added as property 'logits' """ for (node, data) in logits_graph.nodes(data=True): graph.nodes[node]['logits'] = list(data['features']) for (sender, receiver, keys, data) in graph.edges(keys=True, data=True): data['logits'] = list(logits_graph.edges[sender, receiver, keys]['features']) return graph
def centuryFromYear(year): remainer = year % 100 if remainer == 0: return year/100 else: return int(year/100)+1
def century_from_year(year): remainer = year % 100 if remainer == 0: return year / 100 else: return int(year / 100) + 1
#Christine Logan #9/10/2017 #CS 3240 #Lab 3: Pre-lab #hello.py def greeting(msg): print(msg) def salutation(msg): print(msg) if __name__ == "__main__": greeting("hello") salutation("goodbye")
def greeting(msg): print(msg) def salutation(msg): print(msg) if __name__ == '__main__': greeting('hello') salutation('goodbye')
# TODO: to be deleted class FieldMock: def __init__(self): self.find = lambda _: FieldMock() self.skip = lambda _: FieldMock() self.limit = lambda _: FieldMock() class BeaconMock: def __init__(self): self.datasets = FieldMock() class DBMock: def __init__(self): self.beacon = BeaconMock() client = DBMock()
class Fieldmock: def __init__(self): self.find = lambda _: field_mock() self.skip = lambda _: field_mock() self.limit = lambda _: field_mock() class Beaconmock: def __init__(self): self.datasets = field_mock() class Dbmock: def __init__(self): self.beacon = beacon_mock() client = db_mock()
class SecurityKeyError(Exception): def __init__(self, message): super().__init__(message) class ListenError(Exception): def __init__(self, message): super().__init__(message) class ChildError(Exception): def __init__(self, message): super().__init__(message)
class Securitykeyerror(Exception): def __init__(self, message): super().__init__(message) class Listenerror(Exception): def __init__(self, message): super().__init__(message) class Childerror(Exception): def __init__(self, message): super().__init__(message)
def main(): single_digit = 36 teens = 70 second_digit = 46 hundred = 7 nd = 3 thousand = 11 a = single_digit * (10 * 19) a += second_digit * 10 * 10 a += teens * 10 a += hundred * 900 a += nd * 891 a += thousand print(a) main()
def main(): single_digit = 36 teens = 70 second_digit = 46 hundred = 7 nd = 3 thousand = 11 a = single_digit * (10 * 19) a += second_digit * 10 * 10 a += teens * 10 a += hundred * 900 a += nd * 891 a += thousand print(a) main()
class CreditCard: def __init__(self, cc_number, expiration, security_code): self.cc_number = cc_number self.expiration = expiration self.security_code = security_code class Charge: def __init__(self, success, error=''): self.success = success self.error = error
class Creditcard: def __init__(self, cc_number, expiration, security_code): self.cc_number = cc_number self.expiration = expiration self.security_code = security_code class Charge: def __init__(self, success, error=''): self.success = success self.error = error
{ 'targets': [ { 'target_name': 'xxhash', 'cflags!': [ '-fno-exceptions' ], 'cflags_cc!': [ '-fno-exceptions' ], 'xcode_settings': { 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', 'CLANG_CXX_LIBRARY': 'libc++', 'MACOSX_DEPLOYMENT_TARGET': '10.7', }, 'msvs_settings': { 'VCCLCompilerTool': { 'ExceptionHandling': 1 }, }, 'sources': [ 'lib/binding/xxhash_binding.cc', 'deps/lz4/lib/xxhash.h', 'deps/lz4/lib/xxhash.c', ], 'include_dirs': [ '<!(node -p "require(\'node-addon-api\').include_dir")', ], 'cflags': [ '-O3' ], }, { 'target_name': 'lz4', 'cflags!': [ '-fno-exceptions' ], 'cflags_cc!': [ '-fno-exceptions' ], 'xcode_settings': { 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', 'CLANG_CXX_LIBRARY': 'libc++', 'MACOSX_DEPLOYMENT_TARGET': '10.7', }, 'msvs_settings': { 'VCCLCompilerTool': { 'ExceptionHandling': 1 }, }, 'sources': [ 'lib/binding/lz4_binding.cc', 'deps/lz4/lib/lz4.h', 'deps/lz4/lib/lz4.c', 'deps/lz4/lib/lz4hc.h', 'deps/lz4/lib/lz4hc.c', ], 'include_dirs': [ '<!(node -p "require(\'node-addon-api\').include_dir")', ], 'cflags': [ '-O3' ], }, ], }
{'targets': [{'target_name': 'xxhash', 'cflags!': ['-fno-exceptions'], 'cflags_cc!': ['-fno-exceptions'], 'xcode_settings': {'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', 'CLANG_CXX_LIBRARY': 'libc++', 'MACOSX_DEPLOYMENT_TARGET': '10.7'}, 'msvs_settings': {'VCCLCompilerTool': {'ExceptionHandling': 1}}, 'sources': ['lib/binding/xxhash_binding.cc', 'deps/lz4/lib/xxhash.h', 'deps/lz4/lib/xxhash.c'], 'include_dirs': ['<!(node -p "require(\'node-addon-api\').include_dir")'], 'cflags': ['-O3']}, {'target_name': 'lz4', 'cflags!': ['-fno-exceptions'], 'cflags_cc!': ['-fno-exceptions'], 'xcode_settings': {'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', 'CLANG_CXX_LIBRARY': 'libc++', 'MACOSX_DEPLOYMENT_TARGET': '10.7'}, 'msvs_settings': {'VCCLCompilerTool': {'ExceptionHandling': 1}}, 'sources': ['lib/binding/lz4_binding.cc', 'deps/lz4/lib/lz4.h', 'deps/lz4/lib/lz4.c', 'deps/lz4/lib/lz4hc.h', 'deps/lz4/lib/lz4hc.c'], 'include_dirs': ['<!(node -p "require(\'node-addon-api\').include_dir")'], 'cflags': ['-O3']}]}
class Solution: def canCross(self, stones): memo, stones, target = {}, set(stones), stones[-1] def dfs(unit, last): if unit == target: return True if (unit, last) not in memo: memo[(unit, last)] = any(dfs(unit + move, move) for move in (last - 1, last, last + 1) if move and unit + move in stones) return memo[(unit, last)] return dfs(1, 1) if 1 in stones else False
class Solution: def can_cross(self, stones): (memo, stones, target) = ({}, set(stones), stones[-1]) def dfs(unit, last): if unit == target: return True if (unit, last) not in memo: memo[unit, last] = any((dfs(unit + move, move) for move in (last - 1, last, last + 1) if move and unit + move in stones)) return memo[unit, last] return dfs(1, 1) if 1 in stones else False
path2file = sys.argv[1] file = open(path2file, 'r') while True: line = file.readline() if not line: break stroka = unicode(line, 'utf-8') type('f', KeyModifier.CTRL) sleep(1) paste(stroka) sleep(1) type(Key.ENTER) sleep(1) break exit(0)
path2file = sys.argv[1] file = open(path2file, 'r') while True: line = file.readline() if not line: break stroka = unicode(line, 'utf-8') type('f', KeyModifier.CTRL) sleep(1) paste(stroka) sleep(1) type(Key.ENTER) sleep(1) break exit(0)
class Solution: def lengthOfLongestSubstring(self, s: str) -> int: longestSubstring = 0 start = -1 end = 0 characterSet = set() stringLength = len(s) while start < stringLength and end < stringLength: currentChar = s[end] if currentChar in characterSet: start += 1 characterToRemove = s[start] characterSet.remove(characterToRemove) longestSubstring = max(longestSubstring, end - start) else: characterSet.add(currentChar) longestSubstring = max(longestSubstring, end - start) end += 1 return longestSubstring
class Solution: def length_of_longest_substring(self, s: str) -> int: longest_substring = 0 start = -1 end = 0 character_set = set() string_length = len(s) while start < stringLength and end < stringLength: current_char = s[end] if currentChar in characterSet: start += 1 character_to_remove = s[start] characterSet.remove(characterToRemove) longest_substring = max(longestSubstring, end - start) else: characterSet.add(currentChar) longest_substring = max(longestSubstring, end - start) end += 1 return longestSubstring
def Swap(a,b): temp = a a=b b=temp lst = [a,b] return lst
def swap(a, b): temp = a a = b b = temp lst = [a, b] return lst
class Solution(object): def removeDuplicates(self, nums): """ :type nums: List[int] :rtype: int """ ind = 0 pos = 0 while ind < len(nums): if ind > 0 and ind < len(nums) and nums[ind] == nums[ind - 1]: ind += 1 continue nums[pos] = nums[ind] pos += 1 ind += 1 return pos if __name__ == "__main__": sol = Solution() sol.removeDuplicates([1,2,2,2])
class Solution(object): def remove_duplicates(self, nums): """ :type nums: List[int] :rtype: int """ ind = 0 pos = 0 while ind < len(nums): if ind > 0 and ind < len(nums) and (nums[ind] == nums[ind - 1]): ind += 1 continue nums[pos] = nums[ind] pos += 1 ind += 1 return pos if __name__ == '__main__': sol = solution() sol.removeDuplicates([1, 2, 2, 2])
class Solution(object): def kthSmallest(self, root, k): """ :type root: TreeNode :type k: int :rtype: int """ if not root: return 0 stack = [root] count, curr = 0, root while stack: if curr.left: stack.append(curr.left) curr = curr.left else: val = stack.pop() count += 1 if count == k: return val.val if val.right: stack.append(val.right) curr = val.right return float('-inf')
class Solution(object): def kth_smallest(self, root, k): """ :type root: TreeNode :type k: int :rtype: int """ if not root: return 0 stack = [root] (count, curr) = (0, root) while stack: if curr.left: stack.append(curr.left) curr = curr.left else: val = stack.pop() count += 1 if count == k: return val.val if val.right: stack.append(val.right) curr = val.right return float('-inf')
""" 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. """ __author__ = 'sfaci' ##Singlelton (The borg) pattern recipe from: # http://code.activestate.com/recipes/66531/ class Status: """ the purpose of this class is to keep track of which artifacts have already been deployed and what hasn't. ie. try to only build an artifact once. """ __shared_state = {} __deployed__ = {} @staticmethod def __build_key__(artifact, version, lang="java", compiler="thrift"): return artifact + "-" + version + "-" + lang + "-" + compiler def is_deployed(self, artifact, version, lang="java", compiler="thrift"): """ expected format of "artifact" is artifact-version """ id = self.__build_key__(artifact, version, lang, compiler) return self.__deployed__.has_key(id) def add_artifact(self, artifact, version, lang="java", compiler="thrift"): id = self.__build_key__(artifact, version, lang, compiler) self.__deployed__[id] = id def __init__(self): """ Create singleton instance """ # Check whether we already have an instance self.__dict__ = self.__shared_state
""" 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. """ __author__ = 'sfaci' class Status: """ the purpose of this class is to keep track of which artifacts have already been deployed and what hasn't. ie. try to only build an artifact once. """ __shared_state = {} __deployed__ = {} @staticmethod def __build_key__(artifact, version, lang='java', compiler='thrift'): return artifact + '-' + version + '-' + lang + '-' + compiler def is_deployed(self, artifact, version, lang='java', compiler='thrift'): """ expected format of "artifact" is artifact-version """ id = self.__build_key__(artifact, version, lang, compiler) return self.__deployed__.has_key(id) def add_artifact(self, artifact, version, lang='java', compiler='thrift'): id = self.__build_key__(artifact, version, lang, compiler) self.__deployed__[id] = id def __init__(self): """ Create singleton instance """ self.__dict__ = self.__shared_state
# 5 # 5 3 # 1 5 2 6 1 # 1 6 # 6 # 3 2 # 1 2 3 # 4 3 # 3 1 2 3 # 10 3 # 1 2 3 4 5 6 7 8 9 10 i = int(input()) l = [] for j in range(i): k = list(map(int,(input().split(' ')))) il = list(map(int,input().split(' '))) if k[1] in il and len(il)==1: l.append('yes') elif k[1] in il[1:] and len(il) % 2 == 1: l.append('yes') elif k[1] in il[1:-1] and len(il) % 2 == 0: l.append('yes') else: l.append('no') for t in l: print(t)
i = int(input()) l = [] for j in range(i): k = list(map(int, input().split(' '))) il = list(map(int, input().split(' '))) if k[1] in il and len(il) == 1: l.append('yes') elif k[1] in il[1:] and len(il) % 2 == 1: l.append('yes') elif k[1] in il[1:-1] and len(il) % 2 == 0: l.append('yes') else: l.append('no') for t in l: print(t)
class Solution: def minTimeToVisitAllPoints(self, points: List[List[int]]) -> int: now = points[0] ans = 0 for point in points[1:]: ans += max(abs(now[0] - point[0]), abs(now[1] - point[1])) now = point return ans
class Solution: def min_time_to_visit_all_points(self, points: List[List[int]]) -> int: now = points[0] ans = 0 for point in points[1:]: ans += max(abs(now[0] - point[0]), abs(now[1] - point[1])) now = point return ans
# Runtime: 176 ms, faster than 97.52% of Python3 online submissions for Set Mismatch. # Memory Usage: 15.9 MB, less than 42.22% of Python3 online submissions for Set Mismatch. def find_error_nums(nums: [int]) -> [int]: """You have a set of integers s, which originally contains all the numbers from 1 to n. Unfortunately, due to some error, one of the numbers in s got duplicated to another number in the set, which results in repetition of one number and loss of another number. You are given an integer array nums representing the data status of this set after the error. Find the number that occurs twice and the number that is missing and return them in the form of an array. """ # since we that all the number are between 1 and n, one number is missing and another is repeated twice # then the sum of the set(nums) would give us the sum of all nums in nums - the repeated number # ( since a set does not store repeated numbers) -> from that we get the repeated number nums_set_sum = sum(set(nums)) repeated_num = sum(nums) - nums_set_sum # if we subtract the sum of the set of the given numbers from the sum of all numbers in range 0,n # we obtain the missing number missing_num = sum(i for i in range(len(nums) + 1)) - nums_set_sum # return repeated_num and missing_num return [repeated_num, missing_num] # Example 1: # Input: nums = [1,2,2,4] # Output: [2,3] assert find_error_nums([1, 2, 2, 4]), [2, 3] # Example 2: # Input: nums = [1,1] # Output: [1,2] assert find_error_nums([1, 1]), [1, 2]
def find_error_nums(nums: [int]) -> [int]: """You have a set of integers s, which originally contains all the numbers from 1 to n. Unfortunately, due to some error, one of the numbers in s got duplicated to another number in the set, which results in repetition of one number and loss of another number. You are given an integer array nums representing the data status of this set after the error. Find the number that occurs twice and the number that is missing and return them in the form of an array. """ nums_set_sum = sum(set(nums)) repeated_num = sum(nums) - nums_set_sum missing_num = sum((i for i in range(len(nums) + 1))) - nums_set_sum return [repeated_num, missing_num] assert find_error_nums([1, 2, 2, 4]), [2, 3] assert find_error_nums([1, 1]), [1, 2]
# Write a Python class which has two methods get_String and print_String.... # get_String accept a string from the user and print_String print the string in upper case. class IOString(): def __init__(self): self.str1 = "" def get_String(self): self.str1 = input() def print_String(self): print(self.str1.upper()) str1 = IOString() str1.get_String() str1.print_String()
class Iostring: def __init__(self): self.str1 = '' def get__string(self): self.str1 = input() def print__string(self): print(self.str1.upper()) str1 = io_string() str1.get_String() str1.print_String()
##################### ### Base classes. ### ##################### class room: repr = "room" m_description = "You are in a simple room." def __init__(self, contents=[]): self.contents = contents def __str__(self): s = "" for object in self.contents: s += " " + str(object) return self.m_description + s def __repr__(self): return self.repr ###################### ### Child classes. ### ###################### class blue_room(room): repr = "b. room" m_description = "You are in a blue room." class red_room(room): repr = "r. room" m_description = "You are in a red room." class green_room(room): repr = "g. room" m_description = "You are in a green room." class final_room(room): repr = "goal" m_description = "You found the hidden room!"
class Room: repr = 'room' m_description = 'You are in a simple room.' def __init__(self, contents=[]): self.contents = contents def __str__(self): s = '' for object in self.contents: s += ' ' + str(object) return self.m_description + s def __repr__(self): return self.repr class Blue_Room(room): repr = 'b. room' m_description = 'You are in a blue room.' class Red_Room(room): repr = 'r. room' m_description = 'You are in a red room.' class Green_Room(room): repr = 'g. room' m_description = 'You are in a green room.' class Final_Room(room): repr = 'goal' m_description = 'You found the hidden room!'
# Source # ====== # https://www.hackerrank.com/contests/projecteuler/challenges/euler008 # # Problem # ======= # Find the greatest product of K consecutive digits in the N digit number. # # Input Format # ============ # First line contains T that denotes the number of test cases. # First line of each test case will contain two integers N & K. # Second line of each test case will contain a N digit integer. # # Constraints # ============ # 1 <= T <= 100 # 1<= K <= 7 # K <= N <= 1000 # # Output Format # ============= # Print the required answer for each test case. def product(num_subset): p = 1 for i in num_subset: p *= i return p t = int(input().strip()) for _ in range(t): n,k = input().strip().split(' ') n,k = [int(n),int(k)] num = input().strip() p = [] for i in range(n-k): num_subset = [int(x) for x in list(num[i:k+i])] p.append(product(num_subset)) print(max(p))
def product(num_subset): p = 1 for i in num_subset: p *= i return p t = int(input().strip()) for _ in range(t): (n, k) = input().strip().split(' ') (n, k) = [int(n), int(k)] num = input().strip() p = [] for i in range(n - k): num_subset = [int(x) for x in list(num[i:k + i])] p.append(product(num_subset)) print(max(p))
class Stack: """ Stack data structure using list """ def __init__(self,value): """ Class initializer: Produces a stack with a single value or a list of values """ self._items = [] if type(value)==list: for v in value: self._items.append(v) self._height = len(value) else: self._items.append(value) self._height = 1 def pop(self): if self._height == 0: print ("Stack is empty. Nothing to pop.") return None else: self._height -=1 return self._items.pop() def push(self,value): self._height +=1 self._items.append(value) def isEmpty(self): return self._height==0 def draw(self): if self.isEmpty(): pass return None else: n=self._height print('['+str(self._items[n-1])+']') for i in range(n-2,-1,-1): print(" | ") print('['+str(self._items[i])+']') ###============================================================================================== class Queue: """ Queue data structure using list """ def __init__(self,value): """ Class initializer: Produces a queue with a single value or a list of values """ self._items = [] if type(value)==list: for v in value: self._items.append(v) self._length = len(value) else: self._items.append(value) self._length = 1 def dequeue(self): if self._length == 0: print ("Queue is empty. Nothing to dequeue.") return None else: self._length -=1 return self._items.pop(0) def enqueue(self,value): self._length +=1 self._items.append(value) def isEmpty(self): return self._length==0 def draw(self): if self.isEmpty(): pass return None else: n=self._length for i in range(n-1): print('['+str(self._items[i])+']-',end='') print('['+str(self._items[n-1])+']')
class Stack: """ Stack data structure using list """ def __init__(self, value): """ Class initializer: Produces a stack with a single value or a list of values """ self._items = [] if type(value) == list: for v in value: self._items.append(v) self._height = len(value) else: self._items.append(value) self._height = 1 def pop(self): if self._height == 0: print('Stack is empty. Nothing to pop.') return None else: self._height -= 1 return self._items.pop() def push(self, value): self._height += 1 self._items.append(value) def is_empty(self): return self._height == 0 def draw(self): if self.isEmpty(): pass return None else: n = self._height print('[' + str(self._items[n - 1]) + ']') for i in range(n - 2, -1, -1): print(' | ') print('[' + str(self._items[i]) + ']') class Queue: """ Queue data structure using list """ def __init__(self, value): """ Class initializer: Produces a queue with a single value or a list of values """ self._items = [] if type(value) == list: for v in value: self._items.append(v) self._length = len(value) else: self._items.append(value) self._length = 1 def dequeue(self): if self._length == 0: print('Queue is empty. Nothing to dequeue.') return None else: self._length -= 1 return self._items.pop(0) def enqueue(self, value): self._length += 1 self._items.append(value) def is_empty(self): return self._length == 0 def draw(self): if self.isEmpty(): pass return None else: n = self._length for i in range(n - 1): print('[' + str(self._items[i]) + ']-', end='') print('[' + str(self._items[n - 1]) + ']')
# __version__ is for deploying with seed. # VERSION is to keep the rest of the app DRY. __version__ = '0.1.18' VERSION = __version__
__version__ = '0.1.18' version = __version__
class Vehicle(object): def __init__(self, vehicle_id, company, location): self.vehicle_id = vehicle_id self.company = company self.location = location # def __str__(self): # return str( P["id":+str(self.id) + " company: " + str(self.company)+ # str(self.location)+ " location "] ")
class Vehicle(object): def __init__(self, vehicle_id, company, location): self.vehicle_id = vehicle_id self.company = company self.location = location
# -*- coding: utf-8 -*- """ Copyright 2022 Mitchell Isaac Parker 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. """ pdbaa_fasta_file = "pdbaa.fasta" entry_table_file = "entry.tsv" coord_table_file = "coord.tsv" sifts_json_file = "sifts.json" lig_table_file = "ligand.tsv" prot_table_file = "protein.tsv" mut_table_file = "mutation.tsv" cf_table_file = "cf.tsv" edia_json_file = "edia.json" dih_json_file = "dihedral.json" interf_json_file = "interface.json" pocket_json_file = "pocket.json" dih_table_file = "dihedral.tsv" edia_table_file = "edia.tsv" dist_table_file = "distance.tsv" interf_table_file = "interface.tsv" pocket_table_file = "pocket.tsv" fit_table_file = "fit.tsv" pred_table_file = "predict.tsv" dih_matrix_file = "dihedral.csv" dist_matrix_file = "distance.csv" rmsd_matrix_file = "rmsd.csv" interf_matrix_file = "interface.csv" pocket_matrix_file = "pocket.csv" max_norm_file = "max_norm.csv" mean_norm_file = "mean_norm.csv" max_flip_file = "max_flip.csv" mean_flip_file = "mean_flip.csv" rmsd_json_file = "rmsd.json" fit_matrix_file = "fit.csv" pred_matrix_file = "pred.csv" dih_fit_matrix_file = "dihedral_fit.csv" dih_pred_matrix_file = "dihedral_pred.csv" rmsd_fit_matrix_file = "rmsd_fit.csv" rmsd_pred_matrix_file = "rmsd_pred.csv" dist_fit_matrix_file = "dist_fit.csv" dist_pred_matrix_file = "pred_fit.csv" cluster_table_file = "cluster.tsv" result_table_file = "result.tsv" cluster_report_table_file = "cluster_report.tsv" classify_report_table_file = "classify_report.tsv" sum_table_file = "summary.tsv" cutoff_table_file = "cutoff.tsv" count_table_file = "count.tsv" plot_img_file = "plot.pdf" legend_img_file = "legend.pdf" venn_img_file = "venn.pdf" pymol_pml_file = "pymol.pml" stat_table_file = "statistic.tsv" nom_table_file = "nomenclature.tsv"
""" Copyright 2022 Mitchell Isaac Parker 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. """ pdbaa_fasta_file = 'pdbaa.fasta' entry_table_file = 'entry.tsv' coord_table_file = 'coord.tsv' sifts_json_file = 'sifts.json' lig_table_file = 'ligand.tsv' prot_table_file = 'protein.tsv' mut_table_file = 'mutation.tsv' cf_table_file = 'cf.tsv' edia_json_file = 'edia.json' dih_json_file = 'dihedral.json' interf_json_file = 'interface.json' pocket_json_file = 'pocket.json' dih_table_file = 'dihedral.tsv' edia_table_file = 'edia.tsv' dist_table_file = 'distance.tsv' interf_table_file = 'interface.tsv' pocket_table_file = 'pocket.tsv' fit_table_file = 'fit.tsv' pred_table_file = 'predict.tsv' dih_matrix_file = 'dihedral.csv' dist_matrix_file = 'distance.csv' rmsd_matrix_file = 'rmsd.csv' interf_matrix_file = 'interface.csv' pocket_matrix_file = 'pocket.csv' max_norm_file = 'max_norm.csv' mean_norm_file = 'mean_norm.csv' max_flip_file = 'max_flip.csv' mean_flip_file = 'mean_flip.csv' rmsd_json_file = 'rmsd.json' fit_matrix_file = 'fit.csv' pred_matrix_file = 'pred.csv' dih_fit_matrix_file = 'dihedral_fit.csv' dih_pred_matrix_file = 'dihedral_pred.csv' rmsd_fit_matrix_file = 'rmsd_fit.csv' rmsd_pred_matrix_file = 'rmsd_pred.csv' dist_fit_matrix_file = 'dist_fit.csv' dist_pred_matrix_file = 'pred_fit.csv' cluster_table_file = 'cluster.tsv' result_table_file = 'result.tsv' cluster_report_table_file = 'cluster_report.tsv' classify_report_table_file = 'classify_report.tsv' sum_table_file = 'summary.tsv' cutoff_table_file = 'cutoff.tsv' count_table_file = 'count.tsv' plot_img_file = 'plot.pdf' legend_img_file = 'legend.pdf' venn_img_file = 'venn.pdf' pymol_pml_file = 'pymol.pml' stat_table_file = 'statistic.tsv' nom_table_file = 'nomenclature.tsv'
""" CBMPy: MiriamIds module ======================= Constraint Based Modelling in Python (http://pysces.sourceforge.net/cbm) Copyright (C) 2009-2017 Brett G. Olivier, VU University Amsterdam, Amsterdam, The Netherlands This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/> Author: Brett G. Olivier Contact email: [email protected] Last edit: $Author: bgoli $ ($Id: CBXML.py 1137 2012-10-01 15:36:15Z bgoli $) """ # created on 130222:1601 miriamids =\ {'2D-PAGE protein': {'data_entry': 'http://2dbase.techfak.uni-bielefeld.de/cgi-bin/2d/2d.cgi?ac=$id', 'example': 'P39172', 'name': '2D-PAGE protein', 'pattern': '^([A-N,R-Z][0-9][A-Z][A-Z, 0-9][A-Z, 0-9][0-9])|([O,P,Q][0-9][A-Z, 0-9][A-Z, 0-9][A-Z, 0-9][0-9])$" restricted="true', 'url': 'http://identifiers.org/2d-page.protein/'}, '3DMET': {'data_entry': 'http://www.3dmet.dna.affrc.go.jp/cgi/show_data.php?acc=$id', 'example': 'B00162', 'name': '3DMET', 'pattern': '^B\\d{5}$', 'url': 'http://identifiers.org/3dmet/'}, 'ABS': {'data_entry': 'http://genome.crg.es/datasets/abs2005/entries/$id.html', 'example': 'A0014', 'name': 'ABS', 'pattern': '^A\\d+$', 'url': 'http://identifiers.org/abs/'}, 'AFTOL': {'data_entry': 'http://wasabi.lutzonilab.net/pub/displayTaxonInfo?aftol_id=$id', 'example': '959', 'name': 'AFTOL', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/aftol.taxonomy/'}, 'AGD': {'data_entry': 'http://agd.vital-it.ch/Ashbya_gossypii/geneview?gene=$id', 'example': 'AGR144C', 'name': 'AGD', 'pattern': '^AGR\\w+$', 'url': 'http://identifiers.org/agd/'}, 'APD': {'data_entry': 'http://aps.unmc.edu/AP/database/query_output.php?ID=$id', 'example': '01001', 'name': 'APD', 'pattern': '^\\d{5}$', 'url': 'http://identifiers.org/apd/'}, 'ASAP': {'data_entry': 'http://asap.ahabs.wisc.edu/asap/feature_info.php?LocationID=WIS&amp;FeatureID=$id', 'example': 'ABE-0009634', 'name': 'ASAP', 'pattern': '^[A-Za-z0-9-]+$" restricted="true', 'url': 'http://identifiers.org/asap/'}, 'ATCC': {'data_entry': 'http://www.lgcstandards-atcc.org/Products/All/$id.aspx', 'example': '11303', 'name': 'ATCC', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/atcc/'}, 'Aceview Worm': {'data_entry': 'http://www.ncbi.nlm.nih.gov/IEB/Research/Acembly/av.cgi?db=worm&amp;c=Gene&amp;l=$id', 'example': 'aap-1', 'name': 'Aceview Worm', 'pattern': '^[a-z0-9-]+$', 'url': 'http://identifiers.org/aceview.worm/'}, 'Aclame': {'data_entry': 'http://aclame.ulb.ac.be/perl/Aclame/Genomes/mge_view.cgi?view=info&amp;id=$id', 'example': 'mge:2', 'name': 'Aclame', 'pattern': '^mge:\\d+$', 'url': 'http://identifiers.org/aclame/'}, 'Affymetrix Probeset': {'data_entry': 'https://www.affymetrix.com/LinkServlet?probeset=$id', 'example': '243002_at', 'name': 'Affymetrix Probeset', 'pattern': '\\d{4,}((_[asx])?_at)?" restricted="true', 'url': 'http://identifiers.org/affy.probeset/'}, 'Allergome': {'data_entry': 'http://www.allergome.org/script/dettaglio.php?id_molecule=$id', 'example': '1948', 'name': 'Allergome', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/allergome/'}, 'AmoebaDB': {'data_entry': 'http://amoebadb.org/amoeba/showRecord.do?name=GeneRecordClasses.GeneRecordClass&amp;source_id=$id', 'example': 'EDI_244000', 'name': 'AmoebaDB', 'pattern': '^EDI_\\d+$', 'url': 'http://identifiers.org/amoebadb/'}, 'Anatomical Therapeutic Chemical': {'data_entry': 'http://www.whocc.no/atc_ddd_index/?code=$id', 'example': 'A10BA02', 'name': 'Anatomical Therapeutic Chemical', 'pattern': '^\\w(\\d+)?(\\w{1,2})?(\\d+)?$', 'url': 'http://identifiers.org/atc/'}, 'Anatomical Therapeutic Chemical Vetinary': {'data_entry': 'http://www.whocc.no/atcvet/atcvet_index/?code=$id', 'example': 'QJ51RV02', 'name': 'Anatomical Therapeutic Chemical Vetinary', 'pattern': '^Q[A-Z0-9]+$', 'url': 'http://identifiers.org/atcvet/'}, 'Animal TFDB Family': {'data_entry': 'http://www.bioguo.org/AnimalTFDB/family.php?fam=$id', 'example': 'CUT', 'name': 'Animal TFDB Family', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/atfdb.family/'}, 'AntWeb': {'data_entry': 'http://www.antweb.org/specimen.do?name=$id', 'example': 'casent0106247', 'name': 'AntWeb', 'pattern': '^casent\\d+(\\-D\\d+)?$', 'url': 'http://identifiers.org/antweb/'}, 'AphidBase Transcript': {'data_entry': 'http://isyip.genouest.org/apps/grs-2.2/grs?reportID=aphidbase_transcript_report&amp;objectID=$id', 'example': 'ACYPI000159', 'name': 'AphidBase Transcript', 'pattern': '^ACYPI\\d{6}(-RA)?$" restricted="true', 'url': 'http://identifiers.org/aphidbase.transcript/'}, 'ArachnoServer': {'data_entry': 'http://www.arachnoserver.org/toxincard.html?id=$id', 'example': 'AS000060', 'name': 'ArachnoServer', 'pattern': '^AS\\d{6}$', 'url': 'http://identifiers.org/arachnoserver/'}, 'ArrayExpress': {'data_entry': 'http://www.ebi.ac.uk/arrayexpress/experiments/$id', 'example': 'E-MEXP-1712', 'name': 'ArrayExpress', 'pattern': '^[AEP]-\\w{4}-\\d+$', 'url': 'http://identifiers.org/arrayexpress/'}, 'ArrayExpress Platform': {'data_entry': 'http://www.ebi.ac.uk/arrayexpress/arrays/$id', 'example': 'A-GEOD-50', 'name': 'ArrayExpress Platform', 'pattern': '^[AEP]-\\w{4}-\\d+$', 'url': 'http://identifiers.org/arrayexpress.platform/'}, 'AspGD Locus': {'data_entry': 'http://www.aspergillusgenome.org/cgi-bin/locus.pl?dbid=$id', 'example': 'ASPL0000349247', 'name': 'AspGD Locus', 'pattern': '^[A-Za-z_0-9]+$', 'url': 'http://identifiers.org/aspgd.locus/'}, 'AspGD Protein': {'data_entry': 'http://www.aspergillusgenome.org/cgi-bin/protein/proteinPage.pl?dbid=$id', 'example': 'ASPL0000349247', 'name': 'AspGD Protein', 'pattern': '^[A-Za-z_0-9]+$', 'url': 'http://identifiers.org/aspgd.protein/'}, 'BDGP EST': {'data_entry': 'http://www.ncbi.nlm.nih.gov/nucest/$id', 'example': 'EY223054.1', 'name': 'BDGP EST', 'pattern': '^\\w+(\\.)?(\\d+)?$" restricted="true', 'url': 'http://identifiers.org/bdgp.est/'}, 'BDGP insertion DB': {'data_entry': 'http://flypush.imgen.bcm.tmc.edu/pscreen/details.php?line=$id', 'example': 'KG09531', 'name': 'BDGP insertion DB', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/bdgp.insertion/'}, 'BIND': {'data_entry': 'http://www.bind.ca/Action?identifier=bindid&amp;idsearch=$id', 'example': None, 'name': 'BIND', 'pattern': '^\\d+$" restricted="true" obsolete="true" replacement="MIR:00000010', 'url': 'http://identifiers.org/bind/'}, 'BOLD Taxonomy': {'data_entry': 'http://www.boldsystems.org/index.php/Taxbrowser_Taxonpage?taxid=$id', 'example': '27267', 'name': 'BOLD Taxonomy', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/bold.taxonomy/'}, 'BRENDA': {'data_entry': 'http://www.brenda-enzymes.org/php/result_flat.php4?ecno=$id', 'example': '1.1.1.1', 'name': 'BRENDA', 'pattern': '^((\\d+\\.-\\.-\\.-)|(\\d+\\.\\d+\\.-\\.-)|(\\d+\\.\\d+\\.\\d+\\.-)|(\\d+\\.\\d+\\.\\d+\\.\\d+))$', 'url': 'http://identifiers.org/brenda/'}, 'BYKdb': {'data_entry': 'http://bykdb.ibcp.fr/data/html/$id.html', 'example': 'A0AYT5', 'name': 'BYKdb', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/bykdb/'}, 'BacMap Biography': {'data_entry': 'http://bacmap.wishartlab.com/organisms/$id', 'example': '1050', 'name': 'BacMap Biography', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/bacmap.biog/'}, 'BeetleBase': {'data_entry': 'http://beetlebase.org/cgi-bin/gbrowse/BeetleBase3.gff3/?name=$id', 'example': 'TC010103', 'name': 'BeetleBase', 'pattern': '^TC\\d+$', 'url': 'http://identifiers.org/beetlebase/'}, 'BindingDB': {'data_entry': 'http://www.bindingdb.org/bind/chemsearch/marvin/MolStructure.jsp?monomerid=$id', 'example': '22360', 'name': 'BindingDB', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/bindingDB/'}, 'BioCatalogue': {'data_entry': 'http://www.biocatalogue.org/services/$id', 'example': '614', 'name': 'BioCatalogue', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/biocatalogue.service/'}, 'BioCyc': {'data_entry': 'http://biocyc.org/getid?id=$id', 'example': 'ECOLI:CYT-D-UBIOX-CPLX', 'name': 'BioCyc', 'pattern': '^\\w+\\:[A-Za-z0-9-]+$" restricted="true', 'url': 'http://identifiers.org/biocyc/'}, 'BioGRID': {'data_entry': 'http://thebiogrid.org/$id', 'example': '31623', 'name': 'BioGRID', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/biogrid/'}, 'BioModels Database': {'data_entry': 'http://www.ebi.ac.uk/biomodels-main/$id', 'example': 'BIOMD0000000048', 'name': 'BioModels Database', 'pattern': '^((BIOMD|MODEL)\\d{10})|(BMID\\d{12})$', 'url': 'http://identifiers.org/biomodels.db/'}, 'BioNumbers': {'data_entry': 'http://www.bionumbers.hms.harvard.edu/bionumber.aspx?s=y&amp;id=$id&amp;ver=1', 'example': '104674', 'name': 'BioNumbers', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/bionumbers/'}, 'BioPortal': {'data_entry': 'http://bioportal.bioontology.org/ontologies/$id', 'example': '1046', 'name': 'BioPortal', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/bioportal/'}, 'BioProject': {'data_entry': 'http://trace.ddbj.nig.ac.jp/BPSearch/bioproject?acc=$id', 'example': 'PRJDB3', 'name': 'BioProject', 'pattern': '^PRJDB\\d+$', 'url': 'http://identifiers.org/bioproject/'}, 'BioSample': {'data_entry': 'http://www.ebi.ac.uk/biosamples/browse.html?keywords=$id', 'example': 'SAMEG70402', 'name': 'BioSample', 'pattern': '^\\w{3}[NE](\\w)?\\d+$', 'url': 'http://identifiers.org/biosample/'}, 'BioSharing': {'data_entry': 'http://www.biosharing.org/$id', 'example': 'bsg-000052', 'name': 'BioSharing', 'pattern': '^bsg-\\d{6}$', 'url': 'http://identifiers.org/biosharing/'}, 'BioSystems': {'data_entry': 'http://www.ncbi.nlm.nih.gov/biosystems/$id', 'example': '001', 'name': 'BioSystems', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/biosystems/'}, 'BitterDB Compound': {'data_entry': 'http://bitterdb.agri.huji.ac.il/bitterdb/compound.php?id=$id', 'example': '46', 'name': 'BitterDB Compound', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/bitterdb.cpd/'}, 'BitterDB Receptor': {'data_entry': 'http://bitterdb.agri.huji.ac.il/bitterdb/Receptor.php?id=$id', 'example': '1', 'name': 'BitterDB Receptor', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/bitterdb.rec/'}, 'Brenda Tissue Ontology': {'data_entry': 'http://www.ebi.ac.uk/ontology-lookup/?termId=$id', 'example': 'BTO:0000146', 'name': 'Brenda Tissue Ontology', 'pattern': '^BTO:\\d{7}$', 'url': 'http://identifiers.org/obo.bto/'}, 'BugBase Expt': {'data_entry': 'http://bugs.sgul.ac.uk/bugsbase/tabs/experiment.php?expt_id=$id&amp;action=view', 'example': '288', 'name': 'BugBase Expt', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/bugbase.expt/'}, 'BugBase Protocol': {'data_entry': 'http://bugs.sgul.ac.uk/bugsbase/tabs/protocol.php?protocol_id=$id&amp;amp;action=view', 'example': '67', 'name': 'BugBase Protocol', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/bugbase.protocol/'}, 'CABRI': {'data_entry': 'http://www.cabri.org/CABRI/srs-bin/wgetz?-e+-page+EntryPage+[$id]', 'example': 'dsmz_mutz-id:ACC 291', 'name': 'CABRI', 'pattern': '^([A-Za-z]+)?(\\_)?([A-Za-z-]+)\\:([A-Za-z0-9 ]+)$', 'url': 'http://identifiers.org/cabri/'}, 'CAPS-DB': {'data_entry': 'http://www.bioinsilico.org/cgi-bin/CAPSDB/getCAPScluster?nidcl=$id', 'example': '434', 'name': 'CAPS-DB', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/caps/'}, 'CAS': {'data_entry': 'http://commonchemistry.org/ChemicalDetail.aspx?ref=$id', 'example': '50-00-0', 'name': 'CAS', 'pattern': '^\\d{1,7}\\-\\d{2}\\-\\d$" restricted="true', 'url': 'http://identifiers.org/cas/'}, 'CATH domain': {'data_entry': 'http://www.cathdb.info/domain/$id', 'example': '1cukA01', 'name': 'CATH domain', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/cath.domain/'}, 'CATH superfamily': {'data_entry': 'http://www.cathdb.info/cathnode/$id', 'example': '1.10.10.200', 'name': 'CATH superfamily', 'pattern': '^\\d+(\\.\\d+(\\.\\d+(\\.\\d+)?)?)?$', 'url': 'http://identifiers.org/cath.superfamily/'}, 'CAZy': {'data_entry': 'http://www.cazy.org/$id.html', 'example': 'GT10', 'name': 'CAZy', 'pattern': '^GT\\d+$', 'url': 'http://identifiers.org/cazy/'}, 'CGSC Strain': {'data_entry': 'http://cgsc.biology.yale.edu/Strain.php?ID=$id', 'example': '11042', 'name': 'CGSC Strain', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/cgsc/'}, 'CLDB': {'data_entry': 'http://bioinformatics.istge.it/hypercldb/$id.html', 'example': 'cl3603', 'name': 'CLDB', 'pattern': '^cl\\d+$', 'url': 'http://identifiers.org/cldb/'}, 'CMR Gene': {'data_entry': 'http://cmr.jcvi.org/cgi-bin/CMR/shared/GenePage.cgi?locus=$id', 'example': 'NTL15EF2281', 'name': 'CMR Gene', 'pattern': '^\\w+(\\_)?\\w+$', 'url': 'http://identifiers.org/cmr.gene/'}, 'COGs': {'data_entry': 'http://www.ncbi.nlm.nih.gov/COG/grace/wiew.cgi?$id', 'example': 'COG0001', 'name': 'COGs', 'pattern': '^COG\\d+$', 'url': 'http://identifiers.org/cogs/'}, 'COMBINE specifications': {'data_entry': 'http://co.mbine.org/specifications/$id', 'example': 'sbgn.er.level-1.version-1.2', 'name': 'COMBINE specifications', 'pattern': '^\\w+(\\-|\\.|\\w)*$', 'url': 'http://identifiers.org/combine.specifications/'}, 'CSA': {'data_entry': 'http://www.ebi.ac.uk/thornton-srv/databases/cgi-bin/CSA/CSA_Site_Wrapper.pl?pdb=$id', 'example': '1a05', 'name': 'CSA', 'pattern': '^[0-9][A-Za-z0-9]{3}$', 'url': 'http://identifiers.org/csa/'}, 'CTD Chemical': {'data_entry': 'http://ctdbase.org/detail.go?type=chem&amp;acc=$id', 'example': 'D001151', 'name': 'CTD Chemical', 'pattern': '^D\\d+$', 'url': 'http://identifiers.org/ctd.chemical/'}, 'CTD Disease': {'data_entry': 'http://ctdbase.org/detail.go?type=disease&amp;db=MESH&amp;acc=$id', 'example': 'D053716', 'name': 'CTD Disease', 'pattern': '^D\\d+$', 'url': 'http://identifiers.org/ctd.disease/'}, 'CTD Gene': {'data_entry': 'http://ctdbase.org/detail.go?type=gene&amp;acc=$id', 'example': '101', 'name': 'CTD Gene', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/ctd.gene/'}, 'CYGD': {'data_entry': 'http://mips.helmholtz-muenchen.de/genre/proj/yeast/singleGeneReport.html?entry=$id', 'example': 'YFL039c', 'name': 'CYGD', 'pattern': '^\\w{2,3}\\d{2,4}(\\w)?$" restricted="true', 'url': 'http://identifiers.org/cygd/'}, 'Canadian Drug Product Database': {'data_entry': 'http://webprod3.hc-sc.gc.ca/dpd-bdpp/info.do?lang=eng&amp;code=$id', 'example': '63250', 'name': 'Canadian Drug Product Database', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/cdpd/'}, 'Candida Genome Database': {'data_entry': 'http://www.candidagenome.org/cgi-bin/locus.pl?dbid=$id', 'example': 'CAL0003079', 'name': 'Candida Genome Database', 'pattern': '^CAL\\d{7}$', 'url': 'http://identifiers.org/cgd/'}, 'Cell Cycle Ontology': {'data_entry': 'http://www.ebi.ac.uk/ontology-lookup/?termId=$id', 'example': 'CCO:P0000023', 'name': 'Cell Cycle Ontology', 'pattern': '^CCO\\:\\w+$', 'url': 'http://identifiers.org/cco/'}, 'Cell Image Library': {'data_entry': 'http://cellimagelibrary.org/images/$id', 'example': '24801', 'name': 'Cell Image Library', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/cellimage/'}, 'Cell Type Ontology': {'data_entry': 'http://www.ebi.ac.uk/ontology-lookup/?termId=$id', 'example': 'CL:0000232', 'name': 'Cell Type Ontology', 'pattern': '^CL:\\d{7}$', 'url': 'http://identifiers.org/obo.clo/'}, 'ChEBI': {'data_entry': 'http://www.ebi.ac.uk/chebi/searchId.do?chebiId=$id', 'example': 'CHEBI:36927', 'name': 'ChEBI', 'pattern': '^CHEBI:\\d+$', 'url': 'http://identifiers.org/chebi/'}, 'ChEMBL compound': {'data_entry': 'https://www.ebi.ac.uk/chembldb/index.php/compound/inspect/$id', 'example': 'CHEMBL308052', 'name': 'ChEMBL compound', 'pattern': '^CHEMBL\\d+$', 'url': 'http://identifiers.org/chembl.compound/'}, 'ChEMBL target': {'data_entry': 'https://www.ebi.ac.uk/chembldb/index.php/target/inspect/$id', 'example': 'CHEMBL3467', 'name': 'ChEMBL target', 'pattern': '^CHEMBL\\d+$', 'url': 'http://identifiers.org/chembl.target/'}, 'CharProt': {'data_entry': 'http://www.jcvi.org/charprotdb/index.cgi/view/$id', 'example': 'CH_001923', 'name': 'CharProt', 'pattern': '^CH_\\d+$', 'url': 'http://identifiers.org/charprot/'}, 'ChemBank': {'data_entry': 'http://chembank.broadinstitute.org/chemistry/viewMolecule.htm?cbid=$id', 'example': '1000000', 'name': 'ChemBank', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/chembank/'}, 'ChemDB': {'data_entry': 'http://cdb.ics.uci.edu/cgibin/ChemicalDetailWeb.py?chemical_id=$id', 'example': '3966782', 'name': 'ChemDB', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/chemdb/'}, 'ChemIDplus': {'data_entry': 'http://chem.sis.nlm.nih.gov/chemidplus/direct.jsp?regno=$id', 'example': '000057272', 'name': 'ChemIDplus', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/chemidplus/'}, 'ChemSpider': {'data_entry': 'http://www.chemspider.com/Chemical-Structure.$id.html', 'example': '56586', 'name': 'ChemSpider', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/chemspider/'}, 'Chemical Component Dictionary': {'data_entry': 'http://www.ebi.ac.uk/pdbe-srv/pdbechem/chemicalCompound/show/$id', 'example': 'AB0', 'name': 'Chemical Component Dictionary', 'pattern': '^\\w{3}$', 'url': 'http://identifiers.org/pdb-ccd/'}, 'ClinicalTrials.gov': {'data_entry': 'http://clinicaltrials.gov/ct2/show/$id', 'example': 'NCT00222573', 'name': 'ClinicalTrials.gov', 'pattern': '^NCT\\d{8}$', 'url': 'http://identifiers.org/clinicaltrials/'}, 'CluSTr': {'data_entry': 'http://www.ebi.ac.uk/clustr-srv/CCluster?interpro=yes&amp;cluster_varid=$id', 'example': 'HUMAN:55140:308.6', 'name': 'CluSTr', 'pattern': '^[0-9A-Za-z]+:\\d+:\\d{1,5}(\\.\\d)?$" obsolete="true" replacement="', 'url': 'http://identifiers.org/clustr/'}, 'Compulyeast': {'data_entry': 'http://compluyeast2dpage.dacya.ucm.es/cgi-bin/2d/2d.cgi?ac=$id', 'example': 'O08709', 'name': 'Compulyeast', 'pattern': '^([A-N,R-Z][0-9][A-Z][A-Z, 0-9][A-Z, 0-9][0-9])|([O,P,Q][0-9][A-Z, 0-9][A-Z, 0-9][A-Z, 0-9][0-9])$', 'url': 'http://identifiers.org/compulyeast/'}, 'Conoserver': {'data_entry': 'http://www.conoserver.org/?page=card&amp;table=protein&amp;id=$id', 'example': '2639', 'name': 'Conoserver', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/conoserver/'}, 'Consensus CDS': {'data_entry': 'http://www.ncbi.nlm.nih.gov/CCDS/CcdsBrowse.cgi?REQUEST=CCDS&amp;amp;DATA=$id', 'example': 'CCDS13573.1', 'name': 'Consensus CDS', 'pattern': '^CCDS\\d+\\.\\d+$', 'url': 'http://identifiers.org/ccds/'}, 'Conserved Domain Database': {'data_entry': 'http://www.ncbi.nlm.nih.gov/Structure/cdd/cddsrv.cgi?uid=$id', 'example': 'cd00400', 'name': 'Conserved Domain Database', 'pattern': '^(cd)?\\d{5}$', 'url': 'http://identifiers.org/cdd/'}, 'CryptoDB': {'data_entry': 'http://cryptodb.org/cryptodb/showRecord.do?name=GeneRecordClasses.GeneRecordClass&amp;source_id=$id', 'example': 'cgd7_230', 'name': 'CryptoDB', 'pattern': '^\\w+', 'url': 'http://identifiers.org/cryptodb/'}, 'Cube db': {'data_entry': 'http://epsf.bmad.bii.a-star.edu.sg/cube/db/data/$id/', 'example': 'AKR', 'name': 'Cube db', 'pattern': '^[A-Za-z_0-9]+$" restricted="true', 'url': 'http://identifiers.org/cubedb/'}, 'CutDB': {'data_entry': 'http://cutdb.burnham.org/relation/show/$id', 'example': '25782', 'name': 'CutDB', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/pmap.cutdb/'}, 'DARC': {'data_entry': 'http://darcsite.genzentrum.lmu.de/darc/view.php?id=$id', 'example': '1250', 'name': 'DARC', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/darc/'}, 'DBG2 Introns': {'data_entry': 'http://webapps2.ucalgary.ca/~groupii/cgi-bin/intron.cgi?name=$id', 'example': 'Cu.me.I1', 'name': 'DBG2 Introns', 'pattern': '^\\w{1,2}\\.(\\w{1,2}\\.)?[A-Za-z0-9]+$" restricted="true', 'url': 'http://identifiers.org/dbg2introns/'}, 'DOI': {'data_entry': 'https://doi.org/$id', 'example': '10.1038/nbt1156', 'name': 'DOI', 'pattern': '^(doi\\:)?\\d{2}\\.\\d{4}.*$', 'url': 'http://identifiers.org/doi/'}, 'DOMMINO': {'data_entry': 'http://orion.rnet.missouri.edu/~nz953/DOMMINO/index.php/result/show_network/$id', 'example': '2GC4', 'name': 'DOMMINO', 'pattern': '^[0-9][A-Za-z0-9]{3}$', 'url': 'http://identifiers.org/dommino/'}, 'DPV': {'data_entry': 'http://www.dpvweb.net/dpv/showdpv.php?dpvno=$id', 'example': '100', 'name': 'DPV', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/dpv/'}, 'DRSC': {'data_entry': 'http://www.flyrnai.org/cgi-bin/RNAi_gene_lookup_public.pl?gname=$id', 'example': 'DRSC05221', 'name': 'DRSC', 'pattern': '^DRSC\\d+$', 'url': 'http://identifiers.org/drsc/'}, 'Database of Interacting Proteins': {'data_entry': 'http://dip.doe-mbi.ucla.edu/dip/DIPview.cgi?ID=$id', 'example': 'DIP-743N', 'name': 'Database of Interacting Proteins', 'pattern': '^DIP[\\:\\-]\\d{3}[EN]$', 'url': 'http://identifiers.org/dip/'}, 'Database of Quantitative Cellular Signaling: Model': {'data_entry': 'http://doqcs.ncbs.res.in/template.php?&amp;y=accessiondetails&amp;an=$id', 'example': '57', 'name': 'Database of Quantitative Cellular Signaling: Model', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/doqcs.model/'}, 'Database of Quantitative Cellular Signaling: Pathway': {'data_entry': 'http://doqcs.ncbs.res.in/template.php?&amp;y=pathwaydetails&amp;pn=$id', 'example': '131', 'name': 'Database of Quantitative Cellular Signaling: Pathway', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/doqcs.pathway/'}, 'Dictybase EST': {'data_entry': 'http://dictybase.org/db/cgi-bin/feature_page.pl?primary_id=$id', 'example': 'DDB0016567', 'name': 'Dictybase EST', 'pattern': '^DDB\\d+$', 'url': 'http://identifiers.org/dictybase.est/'}, 'Dictybase Gene': {'data_entry': 'http://dictybase.org/gene/$id', 'example': 'DDB_G0267522', 'name': 'Dictybase Gene', 'pattern': '^DDB_G\\d+$', 'url': 'http://identifiers.org/dictybase.gene/'}, 'DisProt': {'data_entry': 'http://www.disprot.org/protein.php?id=$id', 'example': 'DP00001', 'name': 'DisProt', 'pattern': '^DP\\d{5}$', 'url': 'http://identifiers.org/disprot/'}, 'DragonDB Allele': {'data_entry': 'http://antirrhinum.net/cgi-bin/ace/generic/tree/DragonDB?name=$id&amp;amp;class=Allele', 'example': 'cho', 'name': 'DragonDB Allele', 'pattern': '^\\w+$" restricted="true', 'url': 'http://identifiers.org/dragondb.allele/'}, 'DragonDB DNA': {'data_entry': 'http://antirrhinum.net/cgi-bin/ace/generic/tree/DragonDB?name=$id;class=DNA', 'example': '3hB06', 'name': 'DragonDB DNA', 'pattern': '^\\d\\w+$', 'url': 'http://identifiers.org/dragondb.dna/'}, 'DragonDB Locus': {'data_entry': 'http://antirrhinum.net/cgi-bin/ace/generic/tree/DragonDB?name=$id&amp;amp;class=Locus', 'example': 'DEF', 'name': 'DragonDB Locus', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/dragondb.locus/'}, 'DragonDB Protein': {'data_entry': 'http://antirrhinum.net/cgi-bin/ace/generic/tree/DragonDB?name=$id;class=Peptide', 'example': 'AMDEFA', 'name': 'DragonDB Protein', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/dragondb.protein/'}, 'DrugBank': {'data_entry': 'http://www.drugbank.ca/drugs/$id', 'example': 'DB00001', 'name': 'DrugBank', 'pattern': '^DB\\d{5}$', 'url': 'http://identifiers.org/drugbank/'}, 'EDAM Ontology': {'data_entry': 'http://www.ebi.ac.uk/ontology-lookup/?termId=$id', 'example': 'EDAM_data:1664', 'name': 'EDAM Ontology', 'pattern': '^EDAM_(data|topic)\\:\\d{4}$', 'url': 'http://identifiers.org/edam/'}, 'ELM': {'data_entry': 'http://elm.eu.org/elms/elmPages/$id.html', 'example': 'CLV_MEL_PAP_1', 'name': 'ELM', 'pattern': '^[A-Za-z_0-9]+$', 'url': 'http://identifiers.org/elm/'}, 'ENA': {'data_entry': 'http://www.ebi.ac.uk/ena/data/view/$id', 'example': 'BN000065', 'name': 'ENA', 'pattern': '^[A-Z]+[0-9]+$', 'url': 'http://identifiers.org/ena.embl/'}, 'EPD': {'data_entry': 'http://epd.vital-it.ch/cgi-bin/query_result.pl?out_format=NICE&amp;Entry_0=$id', 'example': 'TA_H3', 'name': 'EPD', 'pattern': '^[A-Z-0-9]+$', 'url': 'http://identifiers.org/epd/'}, 'EchoBASE': {'data_entry': 'http://www.york.ac.uk/res/thomas/Gene.cfm?recordID=$id', 'example': 'EB0170', 'name': 'EchoBASE', 'pattern': '^EB\\d+$', 'url': 'http://identifiers.org/echobase/'}, 'EcoGene': {'data_entry': 'http://ecogene.org/?q=gene/$id', 'example': 'EG10173', 'name': 'EcoGene', 'pattern': '^EG\\d+$', 'url': 'http://identifiers.org/ecogene/'}, 'Ensembl': {'data_entry': 'http://www.ensembl.org/id/$id', 'example': 'ENSG00000139618', 'name': 'Ensembl', 'pattern': '^ENS[A-Z]*[FPTG]\\d{11}(\\.\\d+)?$', 'url': 'http://identifiers.org/ensembl/'}, 'Ensembl Bacteria': {'data_entry': 'http://bacteria.ensembl.org/id/$id', 'example': 'EBESCT00000015660', 'name': 'Ensembl Bacteria', 'pattern': '^EB\\w+$', 'url': 'http://identifiers.org/ensembl.bacteria/'}, 'Ensembl Fungi': {'data_entry': 'http://fungi.ensembl.org/id/$id', 'example': 'CADAFLAT00006211', 'name': 'Ensembl Fungi', 'pattern': '^[A-Z-a-z0-9]+$', 'url': 'http://identifiers.org/ensembl.fungi/'}, 'Ensembl Metazoa': {'data_entry': 'http://metazoa.ensembl.org/id/$id', 'example': 'FBtr0084214', 'name': 'Ensembl Metazoa', 'pattern': '^\\w+(\\.)?\\d+$', 'url': 'http://identifiers.org/ensembl.metazoa/'}, 'Ensembl Plants': {'data_entry': 'http://plants.ensembl.org/id/$id', 'example': 'AT1G73965', 'name': 'Ensembl Plants', 'pattern': '^\\w+(\\.\\d+)?(\\.\\d+)?$', 'url': 'http://identifiers.org/ensembl.plant/'}, 'Ensembl Protists': {'data_entry': 'http://protists.ensembl.org/id/$id', 'example': 'PFC0120w', 'name': 'Ensembl Protists', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/ensembl.protist/'}, 'Enzyme Nomenclature': {'data_entry': 'http://www.ebi.ac.uk/intenz/query?cmd=SearchEC&amp;ec=$id', 'example': '1.1.1.1', 'name': 'Enzyme Nomenclature', 'pattern': '^\\d+\\.-\\.-\\.-|\\d+\\.\\d+\\.-\\.-|\\d+\\.\\d+\\.\\d+\\.-|\\d+\\.\\d+\\.\\d+\\.(n)?\\d+$', 'url': 'http://identifiers.org/ec-code/'}, 'Evidence Code Ontology': {'data_entry': 'http://www.ebi.ac.uk/ontology-lookup/?termId=$id', 'example': 'ECO:0000006', 'name': 'Evidence Code Ontology', 'pattern': 'ECO:\\d{7}$', 'url': 'http://identifiers.org/obo.eco/'}, 'Experimental Factor Ontology': {'data_entry': 'http://www.ebi.ac.uk/ontology-lookup/?termId=EFO:$id', 'example': '0004859', 'name': 'Experimental Factor Ontology', 'pattern': '^\\d{7}$', 'url': 'http://identifiers.org/efo/'}, 'FMA': {'data_entry': 'http://www.ebi.ac.uk/ontology-lookup/?termId=$id', 'example': 'FMA:67112', 'name': 'FMA', 'pattern': '^FMA:\\d+$', 'url': 'http://identifiers.org/obo.fma/'}, 'FlyBase': {'data_entry': 'http://flybase.org/reports/$id.html', 'example': 'FBgn0011293', 'name': 'FlyBase', 'pattern': '^FB\\w{2}\\d{7}$', 'url': 'http://identifiers.org/flybase/'}, 'Flystock': {'data_entry': 'http://flystocks.bio.indiana.edu/Reports/$id.html', 'example': '33159', 'name': 'Flystock', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/flystock/'}, 'Fungal Barcode': {'data_entry': 'http://www.fungalbarcoding.org/BioloMICS.aspx?Table=Fungal barcodes&amp;Rec=$id&amp;Fields=All&amp;ExactMatch=T', 'example': '2224', 'name': 'Fungal Barcode', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/fbol/'}, 'FungiDB': {'data_entry': 'http://fungidb.org/gene/$id', 'example': 'CNBG_0001', 'name': 'FungiDB', 'pattern': '^[A-Za-z_0-9]+$" restricted="true', 'url': 'http://identifiers.org/fungidb/'}, 'GABI': {'data_entry': 'http://gabi.rzpd.de/database/cgi-bin/GreenCards.pl.cgi?BioObjectId=$id&amp;Mode=ShowBioObject', 'example': '2679240', 'name': 'GABI', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/gabi/'}, 'GEO': {'data_entry': 'http://www.ncbi.nlm.nih.gov/sites/GDSbrowser?acc=$id', 'example': 'GDS1234', 'name': 'GEO', 'pattern': '^GDS\\d+$', 'url': 'http://identifiers.org/geo/'}, 'GOA': {'data_entry': 'http://www.ebi.ac.uk/QuickGO/GProtein?ac=$id', 'example': 'P12345', 'name': 'GOA', 'pattern': '^([A-N,R-Z][0-9][A-Z][A-Z, 0-9][A-Z, 0-9][0-9])|([O,P,Q][0-9][A-Z, 0-9][A-Z, 0-9][A-Z, 0-9][0-9])$', 'url': 'http://identifiers.org/goa/'}, 'GOLD genome': {'data_entry': 'http://www.genomesonline.org/cgi-bin/GOLD/GOLDCards.cgi?goldstamp=$id', 'example': 'Gi07796', 'name': 'GOLD genome', 'pattern': '^[Gi|Gc]\\d+$', 'url': 'http://identifiers.org/gold.genome/'}, 'GOLD metadata': {'data_entry': 'http://genomesonline.org/cgi-bin/GOLD/bin/GOLDCards.cgi?goldstamp=$id', 'example': 'Gm00047', 'name': 'GOLD metadata', 'pattern': '^Gm\\d+$', 'url': 'http://identifiers.org/gold.meta/'}, 'GPCRDB': {'data_entry': 'http://www.gpcr.org/7tm/proteins/$id', 'example': 'RL3R1_HUMAN', 'name': 'GPCRDB', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/gpcrdb/'}, 'GRIN Plant Taxonomy': {'data_entry': 'http://www.ars-grin.gov/cgi-bin/npgs/html/taxon.pl?$id', 'example': '19333', 'name': 'GRIN Plant Taxonomy', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/grin.taxonomy/'}, 'GXA Expt': {'data_entry': 'http://www.ebi.ac.uk/gxa/experiment/$id', 'example': 'E-MTAB-62', 'name': 'GXA Expt', 'pattern': '^[AEP]-\\w{4}-\\d+$" restricted="true', 'url': 'http://identifiers.org/gxa.expt/'}, 'GXA Gene': {'data_entry': 'http://www.ebi.ac.uk/gxa/gene/$id', 'example': 'AT4G01080', 'name': 'GXA Gene', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/gxa.gene/'}, 'GenPept': {'data_entry': 'http://www.ncbi.nlm.nih.gov/protein/$id?report=genpept', 'example': 'CAA71118.1', 'name': 'GenPept', 'pattern': '^\\w{3}\\d{5}(\\.\\d+)?$" restricted="true', 'url': 'http://identifiers.org/genpept/'}, 'Genatlas': {'data_entry': 'http://genatlas.medecine.univ-paris5.fr/fiche.php?symbol=$id', 'example': 'HBB', 'name': 'Genatlas', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/genatlas/'}, 'Gene Ontology': {'data_entry': 'http://www.ebi.ac.uk/QuickGO/GTerm?id=$id', 'example': 'GO:0006915', 'name': 'Gene Ontology', 'pattern': '^GO:\\d{7}$', 'url': 'http://identifiers.org/obo.go/'}, 'GeneCards': {'data_entry': 'http://www.genecards.org/cgi-bin/carddisp.pl?gene=$id', 'example': 'ABL1', 'name': 'GeneCards', 'pattern': '^\\w+$" restricted="true', 'url': 'http://identifiers.org/genecards/'}, 'GeneDB': {'data_entry': 'http://www.genedb.org/gene/$id', 'example': 'Cj1536c', 'name': 'GeneDB', 'pattern': '^[\\w\\d\\.-]*$', 'url': 'http://identifiers.org/genedb/'}, 'GeneFarm': {'data_entry': 'http://urgi.versailles.inra.fr/Genefarm/Gene/display_gene.htpl?GENE_ID=$id', 'example': '4892', 'name': 'GeneFarm', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/genefarm/'}, 'GeneTree': {'data_entry': 'http://www.ensembl.org/Multi/GeneTree/Image?db=core;gt=$id', 'example': 'ENSGT00550000074763', 'name': 'GeneTree', 'pattern': '^ENSGT\\d+$', 'url': 'http://identifiers.org/genetree/'}, 'GiardiaDB': {'data_entry': 'http://giardiadb.org/giardiadb/showRecord.do?name=GeneRecordClasses.GeneRecordClass&amp;source_id=$id', 'example': 'GL50803_102438', 'name': 'GiardiaDB', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/giardiadb/'}, 'GlycomeDB': {'data_entry': 'http://www.glycome-db.org/database/showStructure.action?glycomeId=$id', 'example': '1', 'name': 'GlycomeDB', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/glycomedb/'}, 'Golm Metabolome Database': {'data_entry': 'http://gmd.mpimp-golm.mpg.de/Metabolites/$id.aspx', 'example': '68513255-fc44-4041-bc4b-4fd2fae7541d', 'name': 'Golm Metabolome Database', 'pattern': '^[A-Za-z-0-9-]+$" restricted="true', 'url': 'http://identifiers.org/gmd/'}, 'Gramene QTL': {'data_entry': 'http://www.gramene.org/db/qtl/qtl_display?qtl_accession_id=$id', 'example': 'CQG5', 'name': 'Gramene QTL', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/gramene.qtl/'}, 'Gramene Taxonomy': {'data_entry': 'http://www.gramene.org/db/ontology/search?id=$id', 'example': 'GR_tax:013681', 'name': 'Gramene Taxonomy', 'pattern': '^GR\\_tax\\:\\d+$', 'url': 'http://identifiers.org/gramene.taxonomy/'}, 'Gramene genes': {'data_entry': 'http://www.gramene.org/db/genes/search_gene?acc=$id', 'example': 'GR:0080039', 'name': 'Gramene genes', 'pattern': '^GR\\:\\d+$', 'url': 'http://identifiers.org/gramene.gene/'}, 'Gramene protein': {'data_entry': 'http://www.gramene.org/db/protein/protein_search?protein_id=$id', 'example': '78073', 'name': 'Gramene protein', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/gramene.protein/'}, 'GreenGenes': {'data_entry': 'http://greengenes.lbl.gov/cgi-bin/show_one_record_v2.pl?prokMSA_id=$id', 'example': '100000', 'name': 'GreenGenes', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/greengenes/'}, 'H-InvDb Locus': {'data_entry': 'http://h-invitational.jp/hinv/spsoup/locus_view?hix_id=$id', 'example': 'HIX0004394', 'name': 'H-InvDb Locus', 'pattern': '^HIX\\d{7}(\\.\\d+)?$', 'url': 'http://identifiers.org/hinv.locus/'}, 'H-InvDb Protein': {'data_entry': 'http://h-invitational.jp/hinv/protein/protein_view.cgi?hip_id=$id', 'example': 'HIP000030660', 'name': 'H-InvDb Protein', 'pattern': '^HIP\\d{9}(\\.\\d+)?$', 'url': 'http://identifiers.org/hinv.protein/'}, 'H-InvDb Transcript': {'data_entry': 'http://h-invitational.jp/hinv/spsoup/transcript_view?hit_id=$id', 'example': 'HIT000195363', 'name': 'H-InvDb Transcript', 'pattern': '^HIT\\d{9}(\\.\\d+)?$', 'url': 'http://identifiers.org/hinv.transcript/'}, 'HAMAP': {'data_entry': 'http://hamap.expasy.org/unirule/$id', 'example': 'MF_01400', 'name': 'HAMAP', 'pattern': '^MF_\\d+$', 'url': 'http://identifiers.org/hamap/'}, 'HCVDB': {'data_entry': 'http://euhcvdb.ibcp.fr/euHCVdb/do/displayHCVEntry?primaryAC=$id', 'example': 'M58335', 'name': 'HCVDB', 'pattern': '^M\\d{5}$', 'url': 'http://identifiers.org/hcvdb/'}, 'HGMD': {'data_entry': 'http://www.hgmd.cf.ac.uk/ac/gene.php?gene=$id', 'example': 'CALM1', 'name': 'HGMD', 'pattern': '^[A-Z_0-9]+$" restricted="true', 'url': 'http://identifiers.org/hgmd/'}, 'HGNC': {'data_entry': 'http://www.genenames.org/data/hgnc_data.php?hgnc_id=$id', 'example': 'HGNC:2674', 'name': 'HGNC', 'pattern': '^(HGNC:)?\\d{1,5}$', 'url': 'http://identifiers.org/hgnc/'}, 'HGNC Symbol': {'data_entry': 'http://www.genenames.org/data/hgnc_data.php?match=$id', 'example': 'DAPK1', 'name': 'HGNC Symbol', 'pattern': '^[A-Za-z0-9]+" restricted="true', 'url': 'http://identifiers.org/hgnc.symbol/'}, 'HMDB': {'data_entry': 'http://www.hmdb.ca/metabolites/$id', 'example': 'HMDB00001', 'name': 'HMDB', 'pattern': '^HMDB\\d{5}$', 'url': 'http://identifiers.org/hmdb/'}, 'HOGENOM': {'data_entry': 'http://pbil.univ-lyon1.fr/cgi-bin/view-tree.pl?db=HOGENOM5&amp;query=$id', 'example': 'HBG284870', 'name': 'HOGENOM', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/hogenom/'}, 'HOMD Sequence Metainformation': {'data_entry': 'http://www.homd.org/modules.php?op=modload&amp;name=GenomeList&amp;file=index&amp;link=detailinfo&amp;seqid=$id', 'example': 'SEQF1003', 'name': 'HOMD Sequence Metainformation', 'pattern': '^SEQF\\d+$', 'url': 'http://identifiers.org/homd.seq/'}, 'HOMD Taxonomy': {'data_entry': 'http://www.homd.org/modules.php?op=modload&amp;name=HOMD&amp;file=index&amp;oraltaxonid=$id&amp;view=dynamic', 'example': '811', 'name': 'HOMD Taxonomy', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/homd.taxon/'}, 'HOVERGEN': {'data_entry': 'http://pbil.univ-lyon1.fr/cgi-bin/view-tree.pl?query=$id&amp;db=HOVERGEN', 'example': 'HBG004341', 'name': 'HOVERGEN', 'pattern': '^HBG\\d+$', 'url': 'http://identifiers.org/hovergen/'}, 'HPA': {'data_entry': 'http://www.proteinatlas.org/$id', 'example': 'ENSG00000026508', 'name': 'HPA', 'pattern': '^ENSG\\d{11}$" restricted="true', 'url': 'http://identifiers.org/hpa/'}, 'HPRD': {'data_entry': 'http://www.hprd.org/protein/$id', 'example': '00001', 'name': 'HPRD', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/hprd/'}, 'HSSP': {'data_entry': 'ftp://ftp.embl-heidelberg.de/pub/databases/protein_extras/hssp/$id.hssp.bz2', 'example': '102l', 'name': 'HSSP', 'pattern': '^\\w{4}$', 'url': 'http://identifiers.org/hssp/'}, 'HUGE': {'data_entry': 'http://www.kazusa.or.jp/huge/gfpage/$id/', 'example': 'KIAA0001', 'name': 'HUGE', 'pattern': '^KIAA\\d{4}$" restricted="true', 'url': 'http://identifiers.org/huge/'}, 'HomoloGene': {'data_entry': 'http://www.ncbi.nlm.nih.gov/homologene/$id', 'example': '1000', 'name': 'HomoloGene', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/homologene/'}, 'Human Disease Ontology': {'data_entry': 'http://bioportal.bioontology.org/ontologies/1009/?p=terms&amp;conceptid=$id', 'example': 'DOID:11337', 'name': 'Human Disease Ontology', 'pattern': '^DOID\\:\\d+$', 'url': 'http://identifiers.org/obo.do/'}, 'ICD': {'data_entry': 'http://apps.who.int/classifications/icd10/browse/2010/en#/$id', 'example': 'C34', 'name': 'ICD', 'pattern': '^[A-Z]\\d+(\\.[-\\d+])?$', 'url': 'http://identifiers.org/icd/'}, 'IDEAL': {'data_entry': 'http://idp1.force.cs.is.nagoya-u.ac.jp/IDEAL/idealItem.php?id=$id', 'example': 'IID00001', 'name': 'IDEAL', 'pattern': '^IID\\d+$', 'url': 'http://identifiers.org/ideal/'}, 'IMEx': {'data_entry': 'http://www.ebi.ac.uk/intact/imex/main.xhtml?query=$id', 'example': 'IM-12080-80', 'name': 'IMEx', 'pattern': '^IM-\\d+(-?)(\\d+?)$', 'url': 'http://identifiers.org/imex/'}, 'IMGT HLA': {'data_entry': 'http://www.ebi.ac.uk/cgi-bin/imgt/hla/get_allele.cgi?$id', 'example': 'A*01:01:01:01', 'name': 'IMGT HLA', 'pattern': '^[A-Z0-9*:]+$', 'url': 'http://identifiers.org/imgt.hla/'}, 'IMGT LIGM': {'data_entry': 'http://srs.ebi.ac.uk/srsbin/cgi-bin/wgetz?-id+1fmSL1g8Xvs+-e+[IMGTLIGM:&apos;$id&apos;]', 'example': 'M94112', 'name': 'IMGT LIGM', 'pattern': '^M\\d+$" restricted="true', 'url': 'http://identifiers.org/imgt.ligm/'}, 'IPI': {'data_entry': 'http://www.ebi.ac.uk/Tools/dbfetch/dbfetch?db=ipi&amp;id=$id&amp;format=default&amp;style=html', 'example': 'IPI00000001', 'name': 'IPI', 'pattern': '^IPI\\d{8}$', 'url': 'http://identifiers.org/ipi/'}, 'IRD Segment Sequence': {'data_entry': 'http://www.fludb.org/brc/fluSegmentDetails.do?ncbiGenomicAccession=$id', 'example': 'CY077097', 'name': 'IRD Segment Sequence', 'pattern': '^\\w+(\\_)?\\d+(\\.\\d+)?$', 'url': 'http://identifiers.org/ird.segment/'}, 'ISBN': {'data_entry': 'http://isbndb.com/search-all.html?kw=$id', 'example': '9781584885658', 'name': 'ISBN', 'pattern': '^(ISBN)?(-13|-10)?[:]?[ ]?(\\d{2,3}[ -]?)?\\d{1,5}[ -]?\\d{1,7}[ -]?\\d{1,6}[ -]?(\\d|X)$', 'url': 'http://identifiers.org/isbn/'}, 'ISFinder': {'data_entry': 'http://www-is.biotoul.fr/index.html?is_special_name=$id', 'example': 'ISA1083-2', 'name': 'ISFinder', 'pattern': '^IS\\w+(\\-\\d)?$', 'url': 'http://identifiers.org/isfinder/'}, 'ISSN': {'data_entry': 'http://catalog.loc.gov/cgi-bin/Pwebrecon.cgi?Search_Arg=0745-4570$id&amp;PID=le0kCQllk84KcxI3gMhUTowLMnn9H', 'example': '0745-4570', 'name': 'ISSN', 'pattern': '^\\d{4}\\-\\d{4}$" restricted="true', 'url': 'http://identifiers.org/issn/'}, 'IUPHAR family': {'data_entry': 'http://www.iuphar-db.org/DATABASE/FamilyMenuForward?familyId=$id', 'example': '78', 'name': 'IUPHAR family', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/iuphar.family/'}, 'IUPHAR receptor': {'data_entry': 'http://www.iuphar-db.org/DATABASE/ObjectDisplayForward?objectId=$id', 'example': '101', 'name': 'IUPHAR receptor', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/iuphar.receptor/'}, 'InChI': {'data_entry': 'http://rdf.openmolecules.net/?$id', 'example': 'InChI=1S/C2H6O/c1-2-3/h3H,2H2,1H3', 'name': 'InChI', 'pattern': '^InChI\\=1S\\/[A-Za-z0-9]+(\\/[cnpqbtmsih][A-Za-z0-9\\-\\+\\(\\)\\,]+)+$" restricted="true', 'url': 'http://identifiers.org/inchi/'}, 'InChIKey': {'data_entry': 'http://www.chemspider.com/inchi-resolver/Resolver.aspx?q=$id', 'example': 'RYYVLZVUVIJVGH-UHFFFAOYSA-N', 'name': 'InChIKey', 'pattern': '^[A-Z]{14}\\-[A-Z]{10}(\\-[A-N])?" restricted="true', 'url': 'http://identifiers.org/inchikey/'}, 'IntAct': {'data_entry': 'http://www.ebi.ac.uk/intact/pages/details/details.xhtml?interactionAc=$id', 'example': 'EBI-2307691', 'name': 'IntAct', 'pattern': '^EBI\\-[0-9]+$', 'url': 'http://identifiers.org/intact/'}, 'Integrated Microbial Genomes Gene': {'data_entry': 'http://img.jgi.doe.gov/cgi-bin/w/main.cgi?section=GeneDetail&amp;gene_oid=$id', 'example': '638309541', 'name': 'Integrated Microbial Genomes Gene', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/img.gene/'}, 'Integrated Microbial Genomes Taxon': {'data_entry': 'http://img.jgi.doe.gov/cgi-bin/w/main.cgi?section=TaxonDetail&amp;taxon_oid=$id', 'example': '648028003', 'name': 'Integrated Microbial Genomes Taxon', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/img.taxon/'}, 'InterPro': {'data_entry': 'http://www.ebi.ac.uk/interpro/DisplayIproEntry?ac=$id', 'example': 'IPR000100', 'name': 'InterPro', 'pattern': '^IPR\\d{6}$', 'url': 'http://identifiers.org/interpro/'}, 'JAX Mice': {'data_entry': 'http://jaxmice.jax.org/strain/$id.html', 'example': '005012', 'name': 'JAX Mice', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/jaxmice/'}, 'JWS Online': {'data_entry': 'http://jjj.biochem.sun.ac.za/cgi-bin/processModelSelection.py?keytype=modelname&amp;keyword=$id', 'example': 'curien', 'name': 'JWS Online', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/jws/'}, 'Japan Chemical Substance Dictionary': {'data_entry': 'http://nikkajiweb.jst.go.jp/nikkaji_web/pages/top_e.jsp?CONTENT=syosai&amp;SN=$id', 'example': 'J55.713G', 'name': 'Japan Chemical Substance Dictionary', 'pattern': '^J\\d{1,3}(\\.\\d{3})?(\\.\\d{1,3})?[A-Za-z]$', 'url': 'http://identifiers.org/jcsd/'}, 'Japan Collection of Microorganisms': {'data_entry': 'http://www.jcm.riken.go.jp/cgi-bin/jcm/jcm_number?JCM=$id', 'example': '17254', 'name': 'Japan Collection of Microorganisms', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/jcm/'}, 'KEGG Compound': {'data_entry': 'http://www.genome.jp/dbget-bin/www_bget?cpd:$id', 'example': 'C12345', 'name': 'KEGG Compound', 'pattern': '^C\\d+$', 'url': 'http://identifiers.org/kegg.compound/'}, 'KEGG Drug': {'data_entry': 'http://www.genome.jp/dbget-bin/www_bget?dr:$id', 'example': 'D00123', 'name': 'KEGG Drug', 'pattern': '^D\\d+$', 'url': 'http://identifiers.org/kegg.drug/'}, 'KEGG Environ': {'data_entry': 'http://www.genome.jp/dbget-bin/www_bget?$id', 'example': 'ev:E00032', 'name': 'KEGG Environ', 'pattern': '^ev\\:E\\d+$', 'url': 'http://identifiers.org/kegg.environ/'}, 'KEGG Genes': {'data_entry': 'http://www.genome.jp/dbget-bin/www_bget?$id', 'example': 'syn:ssr3451', 'name': 'KEGG Genes', 'pattern': '^\\w+:[\\w\\d\\.-]*$', 'url': 'http://identifiers.org/kegg.genes/'}, 'KEGG Genome': {'data_entry': 'http://www.genome.jp/kegg-bin/show_organism?org=$id', 'example': 'eco', 'name': 'KEGG Genome', 'pattern': '^(T0\\d+|\\w{3,5})$', 'url': 'http://identifiers.org/kegg.genome/'}, 'KEGG Glycan': {'data_entry': 'http://www.genome.jp/dbget-bin/www_bget?gl:$id', 'example': 'G00123', 'name': 'KEGG Glycan', 'pattern': '^G\\d+$', 'url': 'http://identifiers.org/kegg.glycan/'}, 'KEGG Metagenome': {'data_entry': 'http://www.genome.jp/kegg-bin/show_organism?org=$id', 'example': 'T30002', 'name': 'KEGG Metagenome', 'pattern': '^T3\\d+$', 'url': 'http://identifiers.org/kegg.metagenome/'}, 'KEGG Orthology': {'data_entry': 'http://www.genome.jp/dbget-bin/www_bget?ko+$id', 'example': 'K00001', 'name': 'KEGG Orthology', 'pattern': '^K\\d+$', 'url': 'http://identifiers.org/kegg.orthology/'}, 'KEGG Pathway': {'data_entry': 'http://www.genome.jp/dbget-bin/www_bget?pathway+$id', 'example': 'hsa00620', 'name': 'KEGG Pathway', 'pattern': '^\\w{2,4}\\d{5}$', 'url': 'http://identifiers.org/kegg.pathway/'}, 'KEGG Reaction': {'data_entry': 'http://www.genome.jp/dbget-bin/www_bget?rn:$id', 'example': 'R00100', 'name': 'KEGG Reaction', 'pattern': '^R\\d+$', 'url': 'http://identifiers.org/kegg.reaction/'}, 'KiSAO': {'data_entry': 'http://bioportal.bioontology.org/ontologies/1410?p=terms&amp;conceptid=kisao:$id', 'example': 'KISAO_0000057', 'name': 'KiSAO', 'pattern': '^KISAO_\\d+$', 'url': 'http://identifiers.org/biomodels.kisao/'}, 'KnapSack': {'data_entry': 'http://kanaya.naist.jp/knapsack_jsp/information.jsp?word=$id', 'example': 'C00000001', 'name': 'KnapSack', 'pattern': '^C\\d{8}', 'url': 'http://identifiers.org/knapsack/'}, 'LIPID MAPS': {'data_entry': 'http://www.lipidmaps.org/data/get_lm_lipids_dbgif.php?LM_ID=$id', 'example': 'LMPR0102010012', 'name': 'LIPID MAPS', 'pattern': '^LM(FA|GL|GP|SP|ST|PR|SL|PK)[0-9]{4}([0-9a-zA-Z]{4,6})?$', 'url': 'http://identifiers.org/lipidmaps/'}, 'Ligand Expo': {'data_entry': 'http://ligand-depot.rutgers.edu/pyapps/ldHandler.py?formid=cc-index-search&amp;target=$id&amp;operation=ccid', 'example': 'ABC', 'name': 'Ligand Expo', 'pattern': '^(\\w){3}$', 'url': 'http://identifiers.org/ligandexpo/'}, 'Ligand-Gated Ion Channel database': {'data_entry': 'http://www.ebi.ac.uk/compneur-srv/LGICdb/HTML/$id.php', 'example': '5HT3Arano', 'name': 'Ligand-Gated Ion Channel database', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/lgic/'}, 'LipidBank': {'data_entry': 'http://lipidbank.jp/cgi-bin/detail.cgi?id=$id', 'example': 'BBA0001', 'name': 'LipidBank', 'pattern': '^\\w+\\d+$', 'url': 'http://identifiers.org/lipidbank/'}, 'Locus Reference Genomic': {'data_entry': 'ftp://ftp.ebi.ac.uk/pub/databases/lrgex/$id.xml', 'example': 'LRG_1', 'name': 'Locus Reference Genomic', 'pattern': '^LRG_\\d+$', 'url': 'http://identifiers.org/lrg/'}, 'MACiE': {'data_entry': 'http://www.ebi.ac.uk/thornton-srv/databases/cgi-bin/MACiE/entry/getPage.pl?id=$id', 'example': 'M0001', 'name': 'MACiE', 'pattern': '^M\\d{4}$', 'url': 'http://identifiers.org/macie/'}, 'MEROPS': {'data_entry': 'http://merops.sanger.ac.uk/cgi-bin/pepsum?mid=$id', 'example': 'S01.001', 'name': 'MEROPS', 'pattern': '^S\\d{2}\\.\\d{3}$', 'url': 'http://identifiers.org/merops/'}, 'MEROPS Family': {'data_entry': 'http://merops.sanger.ac.uk/cgi-bin/famsum?family=$id', 'example': 'S1', 'name': 'MEROPS Family', 'pattern': '^\\w+\\d+$', 'url': 'http://identifiers.org/merops.family/'}, 'METLIN': {'data_entry': 'http://metlin.scripps.edu/metabo_info.php?molid=$id', 'example': '1455', 'name': 'METLIN', 'pattern': '^\\d{4}$" restricted="true', 'url': 'http://identifiers.org/metlin/'}, 'MGED Ontology': {'data_entry': 'http://purl.bioontology.org/ontology/MO/$id', 'example': 'ArrayGroup', 'name': 'MGED Ontology', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/mo/'}, 'MINT': {'data_entry': 'http://mint.bio.uniroma2.it/mint/search/inFrameInteraction.do?interactionAc=$id', 'example': 'MINT-10000', 'name': 'MINT', 'pattern': '^MINT\\-\\d{1,5}$', 'url': 'http://identifiers.org/mint/'}, 'MIPModDB': {'data_entry': 'http://bioinfo.iitk.ac.in/MIPModDB/result.php?code=$id', 'example': 'HOSAPI0399', 'name': 'MIPModDB', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/mipmod/'}, 'MIRIAM Registry collection': {'data_entry': 'http://www.ebi.ac.uk/miriam/main/$id', 'example': 'MIR:00000008', 'name': 'MIRIAM Registry collection', 'pattern': '^MIR:000\\d{5}$', 'url': 'http://identifiers.org/miriam.collection/'}, 'MIRIAM Registry resource': {'data_entry': 'http://www.ebi.ac.uk/miriam/main/resources/$id', 'example': 'MIR:00100005', 'name': 'MIRIAM Registry resource', 'pattern': '^MIR:001\\d{5}$', 'url': 'http://identifiers.org/miriam.resource/'}, 'MMRRC': {'data_entry': 'http://www.mmrrc.org/catalog/getSDS.php?mmrrc_id=$id', 'example': '70', 'name': 'MMRRC', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/mmrrc/'}, 'MaizeGDB Locus': {'data_entry': 'http://www.maizegdb.org/cgi-bin/displaylocusrecord.cgi?id=$id', 'example': '25011', 'name': 'MaizeGDB Locus', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/maizegdb.locus/'}, 'MassBank': {'data_entry': 'http://msbi.ipb-halle.de/MassBank/jsp/Dispatcher.jsp?type=disp&amp;id=$id', 'example': 'PB000166', 'name': 'MassBank', 'pattern': '^[A-Z]{2}[A-Z0-9][0-9]{5}$" restricted="true', 'url': 'http://identifiers.org/massbank/'}, 'MatrixDB': {'data_entry': 'http://matrixdb.ibcp.fr/cgi-bin/model/report/default?name=$id&amp;class=Association', 'example': 'P00747_P07355', 'name': 'MatrixDB', 'pattern': '^([A-N,R-Z][0-9][A-Z][A-Z, 0-9][A-Z, 0-9][0-9])_.*|([O,P,Q][0-9][A-Z, 0-9][A-Z, 0-9][A-Z, 0-9][0-9]_.*)|(GAG_.*)|(MULT_.*)|(PFRAG_.*)|(LIP_.*)|(CAT_.*)$', 'url': 'http://identifiers.org/matrixdb.association/'}, 'MeSH': {'data_entry': 'http://www.nlm.nih.gov/cgi/mesh/2012/MB_cgi?mode=&amp;index=$id&amp;view=expanded', 'example': '17186', 'name': 'MeSH', 'pattern': '^[A-Za-z0-9]+$" restricted="true', 'url': 'http://identifiers.org/mesh/'}, 'Melanoma Molecular Map Project Biomaps': {'data_entry': 'http://www.mmmp.org/MMMP/public/biomap/viewBiomap.mmmp?id=$id', 'example': '37', 'name': 'Melanoma Molecular Map Project Biomaps', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/biomaps/'}, 'MetaboLights': {'data_entry': 'http://www.ebi.ac.uk/metabolights/$id', 'example': 'MTBLS1', 'name': 'MetaboLights', 'pattern': '^MTBLS\\d+$', 'url': 'http://identifiers.org/metabolights/'}, 'Microbial Protein Interaction Database': {'data_entry': 'http://www.jcvi.org/mpidb/experiment.php?interaction_id=$id', 'example': '172', 'name': 'Microbial Protein Interaction Database', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/mpid/'}, 'MicrosporidiaDB': {'data_entry': 'http://microsporidiadb.org/micro/showRecord.do?name=GeneRecordClasses.GeneRecordClass&amp;source_id=$id', 'example': 'ECU03_0820i', 'name': 'MicrosporidiaDB', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/microsporidia/'}, 'MimoDB': {'data_entry': 'http://immunet.cn/mimodb/browse.php?table=mimoset&amp;ID=$id', 'example': '1', 'name': 'MimoDB', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/mimodb/'}, 'ModelDB': {'data_entry': 'http://senselab.med.yale.edu/ModelDB/ShowModel.asp?model=$id', 'example': '45539', 'name': 'ModelDB', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/modeldb/'}, 'Molecular Interactions Ontology': {'data_entry': 'http://www.ebi.ac.uk/ontology-lookup/?termId=$id', 'example': 'MI:0308', 'name': 'Molecular Interactions Ontology', 'pattern': '^MI:\\d{4}$', 'url': 'http://identifiers.org/obo.mi/'}, 'Molecular Modeling Database': {'data_entry': 'http://www.ncbi.nlm.nih.gov/Structure/mmdb/mmdbsrv.cgi?uid=$id', 'example': '50885', 'name': 'Molecular Modeling Database', 'pattern': '^\\d{1,5}$', 'url': 'http://identifiers.org/mmdb/'}, 'Mouse Genome Database': {'data_entry': 'http://www.informatics.jax.org/marker/$id', 'example': 'MGI:2442292', 'name': 'Mouse Genome Database', 'pattern': '^MGI:\\d+$', 'url': 'http://identifiers.org/mgd/'}, 'MycoBank': {'data_entry': 'http://www.mycobank.org/Biolomics.aspx?Table=Mycobank&amp;MycoBankNr_=$id', 'example': '349124', 'name': 'MycoBank', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/mycobank/'}, 'MycoBrowser leprae': {'data_entry': 'http://mycobrowser.epfl.ch/leprosysearch.php?gene+name=$id', 'example': 'ML0224', 'name': 'MycoBrowser leprae', 'pattern': '^ML\\w+$', 'url': 'http://identifiers.org/myco.lepra/'}, 'MycoBrowser marinum': {'data_entry': 'http://mycobrowser.epfl.ch/marinosearch.php?gene+name=$id', 'example': 'MMAR_2462', 'name': 'MycoBrowser marinum', 'pattern': '^MMAR\\_\\d+$', 'url': 'http://identifiers.org/myco.marinum/'}, 'MycoBrowser smegmatis': {'data_entry': 'http://mycobrowser.epfl.ch/smegmasearch.php?gene+name=$id', 'example': 'MSMEG_3769', 'name': 'MycoBrowser smegmatis', 'pattern': '^MSMEG\\w+$', 'url': 'http://identifiers.org/myco.smeg/'}, 'MycoBrowser tuberculosis': {'data_entry': 'http://tuberculist.epfl.ch/quicksearch.php?gene+name=$id', 'example': 'Rv1908c', 'name': 'MycoBrowser tuberculosis', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/myco.tuber/'}, 'NAPP': {'data_entry': 'http://napp.u-psud.fr/Niveau2.php?specie=$id', 'example': '351', 'name': 'NAPP', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/napp/'}, 'NARCIS': {'data_entry': 'http://www.narcis.nl/publication/RecordID/$id', 'example': 'oai:cwi.nl:4725', 'name': 'NARCIS', 'pattern': '^oai\\:cwi\\.nl\\:\\d+$', 'url': 'http://identifiers.org/narcis/'}, 'NASC code': {'data_entry': 'http://arabidopsis.info/StockInfo?NASC_id=$id', 'example': 'N1899', 'name': 'NASC code', 'pattern': '^(\\w+)?\\d+$', 'url': 'http://identifiers.org/nasc/'}, 'NCBI Gene': {'data_entry': 'http://www.ncbi.nlm.nih.gov/gene/$id', 'example': '100010', 'name': 'NCBI Gene', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/ncbigene/'}, 'NCBI Protein': {'data_entry': 'http://www.ncbi.nlm.nih.gov/protein/$id', 'example': 'CAA71118.1', 'name': 'NCBI Protein', 'pattern': '^\\w+\\d+(\\.\\d+)?$" restricted="true', 'url': 'http://identifiers.org/ncbiprotein/'}, 'NCI Pathway Interaction Database: Pathway': {'data_entry': 'http://pid.nci.nih.gov/search/pathway_landing.shtml?what=graphic&amp;jpg=on&amp;pathway_id=$id', 'example': 'pi3kcipathway', 'name': 'NCI Pathway Interaction Database: Pathway', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/pid.pathway/'}, 'NCIm': {'data_entry': 'http://ncim.nci.nih.gov/ncimbrowser/ConceptReport.jsp?dictionary=NCI%20MetaThesaurus&amp;code=$id', 'example': 'C0026339', 'name': 'NCIm', 'pattern': '^C\\d+$" restricted="true', 'url': 'http://identifiers.org/ncim/'}, 'NCIt': {'data_entry': 'http://ncit.nci.nih.gov/ncitbrowser/ConceptReport.jsp?dictionary=NCI%20Thesaurus&amp;code=$id', 'example': 'C80519', 'name': 'NCIt', 'pattern': '^C\\d+$', 'url': 'http://identifiers.org/ncit/'}, 'NEXTDB': {'data_entry': 'http://nematode.lab.nig.ac.jp/db2/ShowCloneInfo.php?clone=$id', 'example': '6b1', 'name': 'NEXTDB', 'pattern': '^[A-Za-z0-9]+$" restricted="true', 'url': 'http://identifiers.org/nextdb/'}, 'NIAEST': {'data_entry': 'http://lgsun.grc.nia.nih.gov/cgi-bin/pro3?sname1=$id', 'example': 'J0705A10', 'name': 'NIAEST', 'pattern': '^\\w\\d{4}\\w\\d{2}(\\-[35])?$', 'url': 'http://identifiers.org/niaest/'}, 'NITE Biological Research Center Catalogue': {'data_entry': 'http://www.nbrc.nite.go.jp/NBRC2/NBRCCatalogueDetailServlet?ID=NBRC&amp;CAT=$id', 'example': '00001234', 'name': 'NITE Biological Research Center Catalogue', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/nbrc/'}, 'NONCODE': {'data_entry': 'http://www.noncode.org/NONCODERv3/ncrna.php?ncid=$id', 'example': '377550', 'name': 'NONCODE', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/noncode/'}, 'National Bibliography Number': {'data_entry': 'http://nbn-resolving.org/resolver?identifier=$id&amp;verb=full', 'example': 'urn:nbn:fi:tkk-004781', 'name': 'National Bibliography Number', 'pattern': '^urn\\:nbn\\:[A-Za-z_0-9]+\\:([A-Za-z_0-9]+\\:)?[A-Za-z_0-9]+$', 'url': 'http://identifiers.org/nbn/'}, 'NeuroLex': {'data_entry': 'http://www.neurolex.org/wiki/$id', 'example': 'Birnlex_721', 'name': 'NeuroLex', 'pattern': '^([Bb]irnlex_|Sao|nlx_|GO_|CogPO|HDO)\\d+$', 'url': 'http://identifiers.org/neurolex/'}, 'NeuroMorpho': {'data_entry': 'http://neuromorpho.org/neuroMorpho/neuron_info.jsp?neuron_name=$id', 'example': 'Rosa2', 'name': 'NeuroMorpho', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/neuromorpho/'}, 'NeuronDB': {'data_entry': 'http://senselab.med.yale.edu/NeuronDB/NeuronProp.aspx?id=$id', 'example': '265', 'name': 'NeuronDB', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/neurondb/'}, 'NucleaRDB': {'data_entry': 'http://www.receptors.org/nucleardb/proteins/$id', 'example': 'prgr_human', 'name': 'NucleaRDB', 'pattern': '^\\w+\\_\\w+$', 'url': 'http://identifiers.org/nuclearbd/'}, 'Nucleotide Sequence Database': {'data_entry': 'http://srs.ebi.ac.uk/srsbin/cgi-bin/wgetz?-page+EntryPage+-e+[EMBL:$id]+-view+EmblEntry', 'example': 'X58356', 'name': 'Nucleotide Sequence Database', 'pattern': '^[A-Z]+\\d+(\\.\\d+)?$', 'url': 'http://identifiers.org/insdc/'}, 'OMA Group': {'data_entry': 'http://omabrowser.org/cgi-bin/gateway.pl?f=DisplayGroup&amp;p1=$id', 'example': 'LCSCCPN', 'name': 'OMA Group', 'pattern': '^[A-Z]+$" restricted="true', 'url': 'http://identifiers.org/oma.grp/'}, 'OMA Protein': {'data_entry': 'http://omabrowser.org/cgi-bin/gateway.pl?f=DisplayEntry&amp;p1=$id', 'example': 'HUMAN16963', 'name': 'OMA Protein', 'pattern': '^[A-Z0-9]{5}\\d+$" restricted="true', 'url': 'http://identifiers.org/oma.protein/'}, 'OMIA': {'data_entry': 'http://omia.angis.org.au/$id/', 'example': '1000', 'name': 'OMIA', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/omia/'}, 'OMIM': {'data_entry': 'http://omim.org/entry/$id', 'example': '603903', 'name': 'OMIM', 'pattern': '^[*#+%^]?\\d{6}$', 'url': 'http://identifiers.org/omim/'}, 'OPM': {'data_entry': 'http://opm.phar.umich.edu/protein.php?pdbid=$id', 'example': '1h68', 'name': 'OPM', 'pattern': '^[0-9][A-Za-z0-9]{3}$" restricted="true', 'url': 'http://identifiers.org/opm/'}, 'ORCID': {'data_entry': 'https://orcid.org/$id', 'example': '0000-0002-6309-7327', 'name': 'ORCID', 'pattern': '^\\d{4}-\\d{4}-\\d{4}-\\d{4}$', 'url': 'http://identifiers.org/orcid/'}, 'Ontology for Biomedical Investigations': {'data_entry': 'http://purl.obolibrary.org/obo/$id', 'example': 'OBI_0000070', 'name': 'Ontology for Biomedical Investigations', 'pattern': '^OBI_\\d{7}$', 'url': 'http://identifiers.org/obo.obi/'}, 'Ontology of Physics for Biology': {'data_entry': 'http://bioportal.bioontology.org/ontologies/1141?p=terms&amp;conceptid=$id', 'example': 'OPB_00573', 'name': 'Ontology of Physics for Biology', 'pattern': '^OPB_\\d+$', 'url': 'http://identifiers.org/opb/'}, 'OriDB Saccharomyces': {'data_entry': 'http://cerevisiae.oridb.org/details.php?id=$id', 'example': '1', 'name': 'OriDB Saccharomyces', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/oridb.sacch/'}, 'OriDB Schizosaccharomyces': {'data_entry': 'http://pombe.oridb.org/details.php?id=$id', 'example': '1', 'name': 'OriDB Schizosaccharomyces', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/oridb.schizo/'}, 'Orphanet': {'data_entry': 'http://www.orpha.net/consor/cgi-bin/OC_Exp.php?Lng=EN&amp;Expert=$id', 'example': '85163', 'name': 'Orphanet', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/orphanet/'}, 'OrthoDB': {'data_entry': 'http://cegg.unige.ch/orthodb/results?searchtext=$id', 'example': 'Q9P0K8', 'name': 'OrthoDB', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/orthodb/'}, 'PANTHER Family': {'data_entry': 'http://www.pantherdb.org/panther/family.do?clsAccession=$id', 'example': 'PTHR12345', 'name': 'PANTHER Family', 'pattern': '^PTHR\\d{5}(\\:SF\\d{1,3})?$', 'url': 'http://identifiers.org/panther.family/'}, 'PANTHER Node': {'data_entry': 'http://www.pantree.org/node/annotationNode.jsp?id=$id', 'example': 'PTN000000026', 'name': 'PANTHER Node', 'pattern': '^PTN\\d{9}$', 'url': 'http://identifiers.org/panther.node/'}, 'PANTHER Pathway': {'data_entry': 'http://www.pantherdb.org/pathway/pathwayDiagram.jsp?catAccession=$id', 'example': 'P00024', 'name': 'PANTHER Pathway', 'pattern': '^P\\d{5}$', 'url': 'http://identifiers.org/panther.pathway/'}, 'PATO': {'data_entry': 'http://www.ebi.ac.uk/ontology-lookup/?termId=$id', 'example': 'PATO:0001998', 'name': 'PATO', 'pattern': '^PATO:\\d{7}$', 'url': 'http://identifiers.org/obo.pato/'}, 'PINA': {'data_entry': 'http://cbg.garvan.unsw.edu.au/pina/interactome.oneP.do?ac=$id&amp;showExtend=null', 'example': 'Q13485', 'name': 'PINA', 'pattern': '^([A-N,R-Z][0-9][A-Z][A-Z, 0-9][A-Z, 0-9][0-9])|([O,P,Q][0-9][A-Z, 0-9][A-Z, 0-9][A-Z, 0-9][0-9])$" restricted="true', 'url': 'http://identifiers.org/pina/'}, 'PIRSF': {'data_entry': 'http://pir.georgetown.edu/cgi-bin/ipcSF?id=$id', 'example': 'PIRSF000100', 'name': 'PIRSF', 'pattern': '^PIRSF\\d{6}$', 'url': 'http://identifiers.org/pirsf/'}, 'PMP': {'data_entry': 'http://www.proteinmodelportal.org/query/uniprot/$id', 'example': 'Q0VCA6', 'name': 'PMP', 'pattern': '^([A-N,R-Z][0-9][A-Z][A-Z, 0-9][A-Z, 0-9][0-9])|([O,P,Q][0-9][A-Z, 0-9][A-Z, 0-9][A-Z, 0-9][0-9])$', 'url': 'http://identifiers.org/pmp/'}, 'PRIDE': {'data_entry': 'http://www.ebi.ac.uk/pride/experimentLink.do?experimentAccessionNumber=$id', 'example': '1', 'name': 'PRIDE', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/pride/'}, 'PROSITE': {'data_entry': 'http://prosite.expasy.org/$id', 'example': 'PS00001', 'name': 'PROSITE', 'pattern': '^PS\\d{5}$', 'url': 'http://identifiers.org/prosite/'}, 'PSCDB': {'data_entry': 'http://idp1.force.cs.is.nagoya-u.ac.jp/pscdb/$id.html', 'example': '051', 'name': 'PSCDB', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/pscdb/'}, 'PaleoDB': {'data_entry': 'http://paleodb.org/cgi-bin/bridge.pl?a=basicTaxonInfo&amp;taxon_no=$id', 'example': '83088', 'name': 'PaleoDB', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/paleodb/'}, 'Pathway Commons': {'data_entry': 'http://www.pathwaycommons.org/pc/record2.do?id=$id', 'example': '485991', 'name': 'Pathway Commons', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/pathwaycommons/'}, 'Pathway Ontology': {'data_entry': 'http://rgd.mcw.edu/rgdweb/ontology/annot.html?acc_id=$id', 'example': 'PW:0000208', 'name': 'Pathway Ontology', 'pattern': '^PW:\\d{7}$', 'url': 'http://identifiers.org/obo.pw/'}, 'Pazar Transcription Factor': {'data_entry': 'http://www.pazar.info/cgi-bin/tf_search.cgi?geneID=$id', 'example': 'TF0001053', 'name': 'Pazar Transcription Factor', 'pattern': '^TF\\w+$', 'url': 'http://identifiers.org/pazar/'}, 'PeptideAtlas': {'data_entry': 'https://db.systemsbiology.net/sbeams/cgi/PeptideAtlas/Summarize_Peptide?query=QUERY&amp;searchForThis=$id', 'example': 'PAp00000009', 'name': 'PeptideAtlas', 'pattern': '^PAp[0-9]{8}$', 'url': 'http://identifiers.org/peptideatlas/'}, 'Peroxibase': {'data_entry': 'http://peroxibase.toulouse.inra.fr/browse/process/view_perox.php?id=$id', 'example': '5282', 'name': 'Peroxibase', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/peroxibase/'}, 'Pfam': {'data_entry': 'http://pfam.sanger.ac.uk/family/$id/', 'example': 'PF01234', 'name': 'Pfam', 'pattern': '^PF\\d{5}$', 'url': 'http://identifiers.org/pfam/'}, 'PharmGKB Disease': {'data_entry': 'http://www.pharmgkb.org/disease/$id', 'example': 'PA447218', 'name': 'PharmGKB Disease', 'pattern': '^PA\\d+$" restricted="true', 'url': 'http://identifiers.org/pharmgkb.disease/'}, 'PharmGKB Drug': {'data_entry': 'http://www.pharmgkb.org/drug/$id', 'example': 'PA448710', 'name': 'PharmGKB Drug', 'pattern': '^PA\\d+$" restricted="true', 'url': 'http://identifiers.org/pharmgkb.drug/'}, 'PharmGKB Gene': {'data_entry': 'http://www.pharmgkb.org/gene/$id', 'example': 'PA131', 'name': 'PharmGKB Gene', 'pattern': '^PA\\w+$" restricted="true', 'url': 'http://identifiers.org/pharmgkb.gene/'}, 'PharmGKB Pathways': {'data_entry': 'http://www.pharmgkb.org/pathway/$id', 'example': 'PA146123006', 'name': 'PharmGKB Pathways', 'pattern': '^PA\\d+$" restricted="true', 'url': 'http://identifiers.org/pharmgkb.pathways/'}, 'Phenol-Explorer': {'data_entry': 'http://www.phenol-explorer.eu/contents/total?food_id=$id', 'example': '75', 'name': 'Phenol-Explorer', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/phenolexplorer/'}, 'PhosphoPoint Kinase': {'data_entry': 'http://kinase.bioinformatics.tw/showall.jsp?type=Kinase&amp;info=Gene&amp;name=$id&amp;drawing=0&amp;sorting=0&amp;kinome=1', 'example': 'AURKA', 'name': 'PhosphoPoint Kinase', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/phosphopoint.kinase/'}, 'PhosphoPoint Phosphoprotein': {'data_entry': 'http://kinase.bioinformatics.tw/showall.jsp?type=PhosphoProtein&amp;info=Gene&amp;name=$id&amp;drawing=0&amp;sorting=0&amp;kinome=0', 'example': 'AURKA', 'name': 'PhosphoPoint Phosphoprotein', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/phosphopoint.protein/'}, 'PhosphoSite Protein': {'data_entry': 'http://www.phosphosite.org/proteinAction.do?id=$id', 'example': '12300', 'name': 'PhosphoSite Protein', 'pattern': '^\\d{5}$', 'url': 'http://identifiers.org/phosphosite.protein/'}, 'PhosphoSite Residue': {'data_entry': 'http://www.phosphosite.org/siteAction.do?id=$id', 'example': '2842', 'name': 'PhosphoSite Residue', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/phosphosite.residue/'}, 'PhylomeDB': {'data_entry': 'http://phylomedb.org/?seqid=$id', 'example': 'Phy000CLXM_RAT', 'name': 'PhylomeDB', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/phylomedb/'}, 'PiroplasmaDB': {'data_entry': 'http://piroplasmadb.org/piro/showRecord.do?name=GeneRecordClasses.GeneRecordClass&amp;source_id=$id', 'example': 'TA14985', 'name': 'PiroplasmaDB', 'pattern': '^TA\\d+$', 'url': 'http://identifiers.org/piroplasma/'}, 'Plant Genome Network': {'data_entry': 'http://pgn.cornell.edu/unigene/unigene_assembly_contigs.pl?unigene_id=$id', 'example': '196828', 'name': 'Plant Genome Network', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/pgn/'}, 'Plant Ontology': {'data_entry': 'http://www.plantontology.org/amigo/go.cgi?view=details&amp;amp;query=$id', 'example': 'PO:0009089', 'name': 'Plant Ontology', 'pattern': '^PO\\:\\d+$', 'url': 'http://identifiers.org/obo.po/'}, 'PlasmoDB': {'data_entry': 'http://plasmodb.org/plasmo/showRecord.do?name=GeneRecordClasses.GeneRecordClass&amp;source_id=$id', 'example': 'PF11_0344', 'name': 'PlasmoDB', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/plasmodb/'}, 'Pocketome': {'data_entry': 'http://www.pocketome.org/files/$id.html', 'example': '1433C_TOBAC_1_252', 'name': 'Pocketome', 'pattern': '^[A-Za-z_0-9]+', 'url': 'http://identifiers.org/pocketome/'}, 'PolBase': {'data_entry': 'http://polbase.neb.com/polymerases/$id#sequences', 'example': '19-T4', 'name': 'PolBase', 'pattern': '^[A-Za-z-0-9]+$', 'url': 'http://identifiers.org/polbase/'}, 'PomBase': {'data_entry': 'http://www.pombase.org/spombe/result/$id', 'example': 'SPCC13B11.01', 'name': 'PomBase', 'pattern': '^S\\w+(\\.)?\\w+(\\.)?$', 'url': 'http://identifiers.org/pombase/'}, 'ProDom': {'data_entry': 'http://prodom.prabi.fr/prodom/current/cgi-bin/request.pl?question=DBEN&amp;query=$id', 'example': 'PD10000', 'name': 'ProDom', 'pattern': '^PD\\d+$', 'url': 'http://identifiers.org/prodom/'}, 'ProGlycProt': {'data_entry': 'http://www.proglycprot.org/detail.aspx?ProId=$id', 'example': 'AC119', 'name': 'ProGlycProt', 'pattern': '^[A-Z]C\\d{1,3}$', 'url': 'http://identifiers.org/proglyc/'}, 'ProtClustDB': {'data_entry': 'http://www.ncbi.nlm.nih.gov/sites/entrez?Db=proteinclusters&amp;Cmd=DetailsSearch&amp;Term=$id', 'example': 'O80725', 'name': 'ProtClustDB', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/protclustdb/'}, 'Protein Data Bank': {'data_entry': 'http://www.rcsb.org/pdb/explore/explore.do?structureId=$id', 'example': '2gc4', 'name': 'Protein Data Bank', 'pattern': '^[0-9][A-Za-z0-9]{3}$', 'url': 'http://identifiers.org/pdb/'}, 'Protein Model Database': {'data_entry': 'http://mi.caspur.it/PMDB/user/search.php?idsearch=$id', 'example': 'PM0012345', 'name': 'Protein Model Database', 'pattern': '^PM\\d{7}', 'url': 'http://identifiers.org/pmdb/'}, 'Protein Modification Ontology': {'data_entry': 'http://www.ebi.ac.uk/ontology-lookup/?termId=$id', 'example': 'MOD:00001', 'name': 'Protein Modification Ontology', 'pattern': '^MOD:\\d{5}', 'url': 'http://identifiers.org/obo.psi-mod/'}, 'Protein Ontology': {'data_entry': 'http://pir.georgetown.edu/cgi-bin/pro/entry_pro?id=$id', 'example': 'PR:000000024', 'name': 'Protein Ontology', 'pattern': '^PR\\:\\d+$', 'url': 'http://identifiers.org/obo.pr/'}, 'ProtoNet Cluster': {'data_entry': 'http://www.protonet.cs.huji.ac.il/requested/cluster_card.php?cluster=$id', 'example': '4349895', 'name': 'ProtoNet Cluster', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/protonet.cluster/'}, 'ProtoNet ProteinCard': {'data_entry': 'http://www.protonet.cs.huji.ac.il/requested/protein_card.php?protein_id=$id', 'example': '16941567', 'name': 'ProtoNet ProteinCard', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/protonet.proteincard/'}, 'Pseudomonas Genome Database': {'data_entry': 'http://www.pseudomonas.com/getAnnotation.do?locusID=$id', 'example': 'PSEEN0001', 'name': 'Pseudomonas Genome Database', 'pattern': '^P\\w+$', 'url': 'http://identifiers.org/pseudomonas/'}, 'PubChem-bioassay': {'data_entry': 'http://pubchem.ncbi.nlm.nih.gov/assay/assay.cgi?aid=$id', 'example': '1018', 'name': 'PubChem-bioassay', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/pubchem.bioassay/'}, 'PubChem-compound': {'data_entry': 'http://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid=$id', 'example': '100101', 'name': 'PubChem-compound', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/pubchem.compound/'}, 'PubChem-substance': {'data_entry': 'http://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?sid=$id', 'example': '100101', 'name': 'PubChem-substance', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/pubchem.substance/'}, 'PubMed': {'data_entry': 'http://www.ncbi.nlm.nih.gov/pubmed/$id', 'example': '16333295', 'name': 'PubMed', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/pubmed/'}, 'PubMed Central': {'data_entry': 'http://www.ncbi.nlm.nih.gov/pmc/articles/$id/?tool=pubmed', 'example': 'PMC3084216', 'name': 'PubMed Central', 'pattern': 'PMC\\d+', 'url': 'http://identifiers.org/pmc/'}, 'REBASE': {'data_entry': 'http://rebase.neb.com/rebase/enz/$id.html', 'example': '101', 'name': 'REBASE', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/rebase/'}, 'RESID': {'data_entry': 'http://srs.ebi.ac.uk/srsbin/cgi-bin/wgetz?-id+6JSUg1NA6u4+-e+[RESID:&apos;$id&apos;]', 'example': 'AA0001', 'name': 'RESID', 'pattern': '^AA\\d{4}$', 'url': 'http://identifiers.org/resid/'}, 'RFAM': {'data_entry': 'http://rfam.sanger.ac.uk/family/$id', 'example': 'RF00230', 'name': 'RFAM', 'pattern': '^RF\\d+$', 'url': 'http://identifiers.org/rfam/'}, 'RNA Modification Database': {'data_entry': 'http://s59.cas.albany.edu/RNAmods/cgi-bin/rnashow.cgi?$id', 'example': '101', 'name': 'RNA Modification Database', 'pattern': '^\\d{3}$', 'url': 'http://identifiers.org/rnamods/'}, 'Rat Genome Database': {'data_entry': 'http://rgd.mcw.edu/rgdweb/report/gene/main.html?id=$id', 'example': '2018', 'name': 'Rat Genome Database', 'pattern': '^\\d{4,7}$', 'url': 'http://identifiers.org/rgd/'}, 'Reactome': {'data_entry': 'http://www.reactome.org/cgi-bin/eventbrowser_st_id?FROM_REACTOME=1&amp;ST_ID=$id', 'example': 'REACT_1590', 'name': 'Reactome', 'pattern': '^REACT_\\d+(\\.\\d+)?$', 'url': 'http://identifiers.org/reactome/'}, 'RefSeq': {'data_entry': 'http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?val=$id', 'example': 'NP_012345', 'name': 'RefSeq', 'pattern': '^(NC|AC|NG|NT|NW|NZ|NM|NR|XM|XR|NP|AP|XP|ZP)_\\d+(\\.\\d+)?$', 'url': 'http://identifiers.org/refseq/'}, 'Relation Ontology': {'data_entry': 'http://www.obofoundry.org/ro/#$id', 'example': 'OBO_REL:is_a', 'name': 'Relation Ontology', 'pattern': '^OBO_REL:\\w+$', 'url': 'http://identifiers.org/obo.ro/'}, 'Rhea': {'data_entry': 'http://www.ebi.ac.uk/rhea/reaction.xhtml?id=$id', 'example': '12345', 'name': 'Rhea', 'pattern': '^\\d{5}$', 'url': 'http://identifiers.org/rhea/'}, 'Rice Genome Annotation Project': {'data_entry': 'http://rice.plantbiology.msu.edu/cgi-bin/ORF_infopage.cgi?&amp;orf=$id', 'example': 'LOC_Os02g13300', 'name': 'Rice Genome Annotation Project', 'pattern': '^LOC\\_Os\\d{1,2}g\\d{5}$', 'url': 'http://identifiers.org/ricegap/'}, 'Rouge': {'data_entry': 'http://www.kazusa.or.jp/rouge/gfpage/$id/', 'example': 'mKIAA4200', 'name': 'Rouge', 'pattern': '^m\\w+$" restricted="true', 'url': 'http://identifiers.org/rouge/'}, 'SABIO-RK EC Record': {'data_entry': 'http://sabiork.h-its.org/newSearch?q=ecnumber:$id', 'example': '2.7.1.1', 'name': 'SABIO-RK EC Record', 'pattern': '^((\\d+)|(\\d+\\.\\d+)|(\\d+\\.\\d+\\.\\d+)|(\\d+\\.\\d+\\.\\d+\\.\\d+))$', 'url': 'http://identifiers.org/sabiork.ec/'}, 'SABIO-RK Kinetic Record': {'data_entry': 'http://sabiork.h-its.org/newSearch?q=entryid:$id', 'example': '5046', 'name': 'SABIO-RK Kinetic Record', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/sabiork.kineticrecord/'}, 'SABIO-RK Reaction': {'data_entry': 'http://sabiork.h-its.org/newSearch?q=sabioreactionid:$id', 'example': '75', 'name': 'SABIO-RK Reaction', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/sabiork.reaction/'}, 'SCOP': {'data_entry': 'http://scop.mrc-lmb.cam.ac.uk/scop/search.cgi?sunid=$id', 'example': '47419', 'name': 'SCOP', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/scop/'}, 'SGD': {'data_entry': 'http://www.yeastgenome.org/cgi-bin/locus.fpl?dbid=$id', 'example': 'S000028457', 'name': 'SGD', 'pattern': '^S\\d+$', 'url': 'http://identifiers.org/sgd/'}, 'SMART': {'data_entry': 'http://smart.embl-heidelberg.de/smart/do_annotation.pl?DOMAIN=$id', 'example': 'SM00015', 'name': 'SMART', 'pattern': '^SM\\d{5}$', 'url': 'http://identifiers.org/smart/'}, 'SNOMED CT': {'data_entry': 'http://vtsl.vetmed.vt.edu/TerminologyMgt/Browser/ISA.cfm?SCT_ConceptID=$id', 'example': '284196006', 'name': 'SNOMED CT', 'pattern': '^(\\w+)?\\d+$" restricted="true', 'url': 'http://identifiers.org/snomedct/'}, 'SPIKE Map': {'data_entry': 'http://www.cs.tau.ac.il/~spike/maps/$id.html', 'example': 'spike00001', 'name': 'SPIKE Map', 'pattern': '^spike\\d{5}$', 'url': 'http://identifiers.org/spike.map/'}, 'SPRINT': {'data_entry': 'http://www.bioinf.manchester.ac.uk/cgi-bin/dbbrowser/sprint/searchprintss.cgi?prints_accn=$id&amp;display_opts=Prints&amp;category=None&amp;queryform=false&amp;regexpr=off', 'example': 'PR00001', 'name': 'SPRINT', 'pattern': '^PR\\d{5}$', 'url': 'http://identifiers.org/sprint/'}, 'STAP': {'data_entry': 'http://psb.kobic.re.kr/STAP/refinement/result.php?search=$id', 'example': '1a24', 'name': 'STAP', 'pattern': '^[0-9][A-Za-z0-9]{3}$', 'url': 'http://identifiers.org/stap/'}, 'STITCH': {'data_entry': 'http://stitch.embl.de/interactions/$id', 'example': 'ICXJVZHDZFXYQC', 'name': 'STITCH', 'pattern': '^\\w{14}$" restricted="true', 'url': 'http://identifiers.org/stitch/'}, 'STRING': {'data_entry': 'http://string.embl.de/interactions/$id', 'example': 'P53350', 'name': 'STRING', 'pattern': '^([A-N,R-Z][0-9][A-Z][A-Z, 0-9][A-Z, 0-9][0-9])|([O,P,Q][0-9][A-Z, 0-9][A-Z, 0-9][A-Z, 0-9][0-9])|([0-9][A-Za-z0-9]{3})$" restricted="true', 'url': 'http://identifiers.org/string/'}, 'SUPFAM': {'data_entry': 'http://supfam.org/SUPERFAMILY/cgi-bin/scop.cgi?ipid=$id', 'example': 'SSF57615', 'name': 'SUPFAM', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/supfam/'}, 'SWISS-MODEL': {'data_entry': 'http://swissmodel.expasy.org/repository/smr.php?sptr_ac=$id', 'example': 'P23298', 'name': 'SWISS-MODEL', 'pattern': '^\\w+$" restricted="true', 'url': 'http://identifiers.org/swiss-model/'}, 'Saccharomyces genome database pathways': {'data_entry': 'http://pathway.yeastgenome.org/YEAST/new-image?type=PATHWAY&amp;object=$id', 'example': 'PWY3O-214', 'name': 'Saccharomyces genome database pathways', 'pattern': '^PWY\\w{2}\\-\\d{3}$', 'url': 'http://identifiers.org/sgd.pathways/'}, 'ScerTF': {'data_entry': 'http://stormo.wustl.edu/ScerTF/details/$id/', 'example': 'RSC3', 'name': 'ScerTF', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/scretf/'}, 'Science Signaling Pathway': {'data_entry': 'http://stke.sciencemag.org/cgi/cm/stkecm;$id', 'example': 'CMP_18019', 'name': 'Science Signaling Pathway', 'pattern': '^CMP_\\d+$" restricted="true', 'url': 'http://identifiers.org/sciencesignaling.path/'}, 'Science Signaling Pathway-Dependent Component': {'data_entry': 'http://stke.sciencemag.org/cgi/cm/stkecm;$id', 'example': 'CMN_15494', 'name': 'Science Signaling Pathway-Dependent Component', 'pattern': '^CMN_\\d+$" restricted="true', 'url': 'http://identifiers.org/sciencesignaling.pdc/'}, 'Science Signaling Pathway-Independent Component': {'data_entry': 'http://stke.sciencemag.org/cgi/cm/stkecm;$id', 'example': 'CMC_15493', 'name': 'Science Signaling Pathway-Independent Component', 'pattern': '^CMC_\\d+$" restricted="true', 'url': 'http://identifiers.org/sciencesignaling.pic/'}, 'Sequence Ontology': {'data_entry': 'http://www.sequenceontology.org/miso/current_release/term/$id', 'example': 'SO:0000704', 'name': 'Sequence Ontology', 'pattern': '^SO:\\d{7}$', 'url': 'http://identifiers.org/obo.so/'}, 'Sequence Read Archive': {'data_entry': 'http://www.ncbi.nlm.nih.gov/sra/$id?&amp;report=full', 'example': 'SRX000007', 'name': 'Sequence Read Archive', 'pattern': '^[SED]R\\w\\d{6}', 'url': 'http://identifiers.org/insdc.sra/'}, 'Signaling Gateway': {'data_entry': 'http://www.signaling-gateway.org/molecule/query?afcsid=$id', 'example': 'A001094', 'name': 'Signaling Gateway', 'pattern': 'A\\d{6}$', 'url': 'http://identifiers.org/signaling-gateway/'}, 'SitEx': {'data_entry': 'http://www-bionet.sscc.ru/sitex/index.php?siteid=$id', 'example': '1000', 'name': 'SitEx', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/sitex/'}, 'Small Molecule Pathway Database': {'data_entry': 'http://pathman.smpdb.ca/pathways/$id/pathway', 'example': 'SMP00001', 'name': 'Small Molecule Pathway Database', 'pattern': '^SMP\\d{5}$', 'url': 'http://identifiers.org/smpdb/'}, 'Sol Genomics Network': {'data_entry': 'http://solgenomics.net/phenome/locus_display.pl?locus_id=$id', 'example': '0001', 'name': 'Sol Genomics Network', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/sgn/'}, 'SoyBase': {'data_entry': 'http://soybeanbreederstoolbox.org/search/search_results.php?category=SNP&amp;search_term=$id', 'example': 'BARC-013845-01256', 'name': 'SoyBase', 'pattern': '^\\w+(\\-)?\\w+(\\-)?\\w+$', 'url': 'http://identifiers.org/soybase/'}, 'Spectral Database for Organic Compounds': {'data_entry': 'http://riodb01.ibase.aist.go.jp/sdbs/cgi-bin/cre_frame_disp.cgi?sdbsno=$id', 'example': '4544', 'name': 'Spectral Database for Organic Compounds', 'pattern': '\\d+$" restricted="true', 'url': 'http://identifiers.org/sdbs/'}, 'SubstrateDB': {'data_entry': 'http://substrate.burnham.org/protein/annotation/$id/html', 'example': '1915', 'name': 'SubstrateDB', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/pmap.substratedb/'}, 'SubtiWiki': {'data_entry': 'http://www.subtiwiki.uni-goettingen.de/wiki/index.php/$id', 'example': 'BSU29180', 'name': 'SubtiWiki', 'pattern': '^BSU\\d{5}$', 'url': 'http://identifiers.org/subtiwiki/'}, 'Systems Biology Ontology': {'data_entry': 'http://www.ebi.ac.uk/sbo/main/$id', 'example': 'SBO:0000262', 'name': 'Systems Biology Ontology', 'pattern': '^SBO:\\d{7}$', 'url': 'http://identifiers.org/biomodels.sbo/'}, 'T3DB': {'data_entry': 'http://www.t3db.org/toxins/$id', 'example': 'T3D0001', 'name': 'T3DB', 'pattern': '^T3D\\d+$', 'url': 'http://identifiers.org/t3db/'}, 'TAIR Gene': {'data_entry': 'http://arabidopsis.org/servlets/TairObject?accession=$id', 'example': 'Gene:2200934', 'name': 'TAIR Gene', 'pattern': '^Gene:\\d{7}$', 'url': 'http://identifiers.org/tair.gene/'}, 'TAIR Locus': {'data_entry': 'http://arabidopsis.org/servlets/TairObject?type=locus&amp;name=$id', 'example': 'AT1G01030', 'name': 'TAIR Locus', 'pattern': '^AT[1-5]G\\d{5}$', 'url': 'http://identifiers.org/tair.locus/'}, 'TAIR Protein': {'data_entry': 'http://arabidopsis.org/servlets/TairObject?accession=$id', 'example': 'AASequence:1009107926', 'name': 'TAIR Protein', 'pattern': '^AASequence:\\d{10}$', 'url': 'http://identifiers.org/tair.protein/'}, 'TEDDY': {'data_entry': 'http://bioportal.bioontology.org/ontologies/1407?p=terms&amp;conceptid=$id', 'example': 'TEDDY_0000066', 'name': 'TEDDY', 'pattern': '^TEDDY_\\d{7}$', 'url': 'http://identifiers.org/biomodels.teddy/'}, 'TIGRFAMS': {'data_entry': 'http://www.jcvi.org/cgi-bin/tigrfams/HmmReportPage.cgi?acc=$id', 'example': 'TIGR00010', 'name': 'TIGRFAMS', 'pattern': '^TIGR\\d+$', 'url': 'http://identifiers.org/tigrfam/'}, 'TTD Drug': {'data_entry': 'http://bidd.nus.edu.sg/group/cjttd/ZFTTDDRUG.asp?ID=$id', 'example': 'DAP000773', 'name': 'TTD Drug', 'pattern': '^DAP\\d+$', 'url': 'http://identifiers.org/ttd.drug/'}, 'TTD Target': {'data_entry': 'http://bidd.nus.edu.sg/group/cjttd/ZFTTDDetail.asp?ID=$id', 'example': 'TTDS00056', 'name': 'TTD Target', 'pattern': '^TTDS\\d+$', 'url': 'http://identifiers.org/ttd.target/'}, 'TarBase': {'data_entry': 'http://diana.cslab.ece.ntua.gr/DianaToolsNew/index.php?r=tarbase/index&amp;mirnas=$id', 'example': 'hsa-let-7', 'name': 'TarBase', 'pattern': '^\\w+\\-\\w+\\-\\w+', 'url': 'http://identifiers.org/tarbase/'}, 'Taxonomy': {'data_entry': 'http://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=Info&amp;id=$id', 'example': '9606', 'name': 'Taxonomy', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/taxonomy/'}, 'Tetrahymena Genome Database': {'data_entry': 'http://ciliate.org/index.php/feature/details/$id', 'example': 'TTHERM_00648910', 'name': 'Tetrahymena Genome Database', 'pattern': '^TTHERM\\_\\d+$', 'url': 'http://identifiers.org/tgd/'}, 'Tissue List': {'data_entry': 'http://www.uniprot.org/tissues/$id', 'example': 'TS-0285', 'name': 'Tissue List', 'pattern': '^TS-\\d{4}$', 'url': 'http://identifiers.org/tissuelist/'}, 'TopFind': {'data_entry': 'http://clipserve.clip.ubc.ca/topfind/proteins/$id', 'example': 'Q9UKQ2', 'name': 'TopFind', 'pattern': '^([A-N,R-Z][0-9][A-Z][A-Z, 0-9][A-Z, 0-9][0-9])|([O,P,Q][0-9][A-Z, 0-9][A-Z, 0-9][A-Z, 0-9][0-9])$', 'url': 'http://identifiers.org/topfind/'}, 'ToxoDB': {'data_entry': 'http://toxodb.org/toxo/showRecord.do?name=GeneRecordClasses.GeneRecordClass&amp;source_id=$id', 'example': 'TGME49_053730', 'name': 'ToxoDB', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/toxoplasma/'}, 'Transport Classification Database': {'data_entry': 'http://www.tcdb.org/search/result.php?tc=$id', 'example': '5.A.1.1.1', 'name': 'Transport Classification Database', 'pattern': '^\\d+\\.[A-Z]\\.\\d+\\.\\d+\\.\\d+$', 'url': 'http://identifiers.org/tcdb/'}, 'Tree of Life': {'data_entry': 'http://tolweb.org/$id', 'example': '98034', 'name': 'Tree of Life', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/tol/'}, 'TreeBASE': {'data_entry': 'http://purl.org/phylo/treebase/phylows/study/$id?format=html', 'example': 'TB2:S1000', 'name': 'TreeBASE', 'pattern': '^TB[1,2]?:[A-Z][a-z]?\\d+$', 'url': 'http://identifiers.org/treebase/'}, 'TreeFam': {'data_entry': 'http://www.treefam.org/cgi-bin/TFinfo.pl?ac=$id', 'example': 'TF101014', 'name': 'TreeFam', 'pattern': '^\\w{1,2}\\d+$', 'url': 'http://identifiers.org/treefam/'}, 'TriTrypDB': {'data_entry': 'http://tritrypdb.org/tritrypdb/showRecord.do?name=GeneRecordClasses.GeneRecordClass&amp;source_id=$id', 'example': 'Tb927.8.620', 'name': 'TriTrypDB', 'pattern': '^\\w+(\\.)?\\w+(\\.)?\\w+', 'url': 'http://identifiers.org/tritrypdb/'}, 'TrichDB': {'data_entry': 'http://trichdb.org/trichdb/showRecord.do?name=GeneRecordClasses.GeneRecordClass&amp;source_id=$id', 'example': 'TVAG_386080', 'name': 'TrichDB', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/trichdb/'}, 'UM-BBD Biotransformation Rule': {'data_entry': 'http://www.umbbd.ethz.ch/servlets/rule.jsp?rule=$id', 'example': 'bt0001', 'name': 'UM-BBD Biotransformation Rule', 'pattern': '^bt\\d+$', 'url': 'http://identifiers.org/umbbd.rule/'}, 'UM-BBD Compound': {'data_entry': 'http://umbbd.ethz.ch/servlets/pageservlet?ptype=c&amp;compID=$id', 'example': 'c0001', 'name': 'UM-BBD Compound', 'pattern': '^c\\d+$', 'url': 'http://identifiers.org/umbbd.compound/'}, 'UM-BBD Enzyme': {'data_entry': 'http://umbbd.ethz.ch/servlets/pageservlet?ptype=ep&amp;enzymeID=$id', 'example': 'e0333', 'name': 'UM-BBD Enzyme', 'pattern': '^e\\d+$', 'url': 'http://identifiers.org/umbbd.enzyme/'}, 'UM-BBD Pathway': {'data_entry': 'http://umbbd.ethz.ch/servlets/pageservlet?ptype=p&amp;pathway_abbr=$id', 'example': 'ala', 'name': 'UM-BBD Pathway', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/umbbd.pathway/'}, 'UM-BBD Reaction': {'data_entry': 'http://umbbd.ethz.ch/servlets/pageservlet?ptype=r&amp;reacID=$id', 'example': 'r0001', 'name': 'UM-BBD Reaction', 'pattern': '^r\\d+$', 'url': 'http://identifiers.org/umbbd.reaction/'}, 'UniGene': {'data_entry': 'http://www.ncbi.nlm.nih.gov/unigene?term=$id', 'example': '4900', 'name': 'UniGene', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/unigene/'}, 'UniParc': {'data_entry': 'http://www.ebi.ac.uk/cgi-bin/dbfetch?db=uniparc&amp;id=$id', 'example': 'UPI000000000A', 'name': 'UniParc', 'pattern': '^UPI[A-F0-9]{10}$', 'url': 'http://identifiers.org/uniparc/'}, 'UniProt Isoform': {'data_entry': 'http://www.uniprot.org/uniprot/$id', 'example': 'Q5BJF6-3', 'name': 'UniProt Isoform', 'pattern': '^([A-N,R-Z][0-9][A-Z][A-Z, 0-9][A-Z, 0-9][0-9])|([O,P,Q][0-9][A-Z, 0-9][A-Z, 0-9][A-Z, 0-9][0-9])(\\-\\d+)$" restricted="true', 'url': 'http://identifiers.org/uniprot.isoform/'}, 'UniProt Knowledgebase': {'data_entry': 'http://www.uniprot.org/uniprot/$id', 'example': 'P62158', 'name': 'UniProt Knowledgebase', 'pattern': '^([A-N,R-Z][0-9][A-Z][A-Z, 0-9][A-Z, 0-9][0-9])|([O,P,Q][0-9][A-Z, 0-9][A-Z, 0-9][A-Z, 0-9][0-9])(\\.\\d+)?$', 'url': 'http://identifiers.org/uniprot/'}, 'UniSTS': {'data_entry': 'http://www.ncbi.nlm.nih.gov/genome/sts/sts.cgi?uid=$id', 'example': '456789', 'name': 'UniSTS', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/unists/'}, 'Unipathway': {'data_entry': 'http://www.grenoble.prabi.fr/obiwarehouse/unipathway/upa?upid=$id', 'example': 'UPA00206', 'name': 'Unipathway', 'pattern': '^UPA\\d{5}$', 'url': 'http://identifiers.org/unipathway/'}, 'Unit Ontology': {'data_entry': 'http://www.ebi.ac.uk/ontology-lookup/?termId=$id', 'example': 'UO:0000080', 'name': 'Unit Ontology', 'pattern': '^UO:\\d{7}?', 'url': 'http://identifiers.org/obo.unit/'}, 'Unite': {'data_entry': 'http://unite.ut.ee/bl_forw.php?nimi=$id', 'example': 'UDB000691', 'name': 'Unite', 'pattern': '^UDB\\d{6}$', 'url': 'http://identifiers.org/unite/'}, 'VIRsiRNA': {'data_entry': 'http://crdd.osdd.net/servers/virsirnadb/record.php?details=$id', 'example': 'virsi1909', 'name': 'VIRsiRNA', 'pattern': '^virsi\\d+$', 'url': 'http://identifiers.org/virsirna/'}, 'VariO': {'data_entry': 'http://www.variationontology.org/cgi-bin/amivario/term-details.cgi?term=$id', 'example': 'VariO:0294', 'name': 'VariO', 'pattern': '^VariO:\\d+$', 'url': 'http://identifiers.org/vario/'}, 'Vbase2': {'data_entry': 'http://www.vbase2.org/vgene.php?id=$id', 'example': 'humIGHV025', 'name': 'Vbase2', 'pattern': '^\\w+$" restricted="true', 'url': 'http://identifiers.org/vbase2/'}, 'VectorBase': {'data_entry': 'http://classic.vectorbase.org/Search/Keyword/?offset=0&amp;term=$id&amp;domain=genome&amp;category=all_organisms', 'example': 'ISCW007415', 'name': 'VectorBase', 'pattern': '^\\D{4}\\d{6}(\\-\\D{2})?$', 'url': 'http://identifiers.org/vectorbase/'}, 'ViPR Strain': {'data_entry': 'http://www.viprbrc.org/brc/viprStrainDetails.do?strainName=$id&amp;decorator=arena', 'example': 'BeAn 70563', 'name': 'ViPR Strain', 'pattern': '^[A-Za-z 0-9]+$', 'url': 'http://identifiers.org/vipr/'}, 'WikiPathways': {'data_entry': 'http://www.wikipathways.org/instance/$id', 'example': 'WP100', 'name': 'WikiPathways', 'pattern': 'WP\\d{1,5}(\\_r\\d+)?$', 'url': 'http://identifiers.org/wikipathways/'}, 'Wikipedia (En)': {'data_entry': 'http://en.wikipedia.org/wiki/$id', 'example': 'SM_UB-81', 'name': 'Wikipedia (En)', 'pattern': '^[A-Za-z0-9_]+$" restricted="true', 'url': 'http://identifiers.org/wikipedia.en/'}, 'Worfdb': {'data_entry': 'http://worfdb.dfci.harvard.edu/index.php?search_type=name&amp;page=showresultrc&amp;race_query=$id', 'example': 'T01B6.1', 'name': 'Worfdb', 'pattern': '^\\w+(\\.\\d+)?', 'url': 'http://identifiers.org/worfdb/'}, 'WormBase': {'data_entry': 'http://www.wormbase.org/db/gene/gene?name=$id;class=Gene', 'example': 'WBGene00000001', 'name': 'WormBase', 'pattern': '^WBGene\\d{8}$', 'url': 'http://identifiers.org/wormbase/'}, 'Wormpep': {'data_entry': 'http://www.wormbase.org/db/seq/protein?name=$id', 'example': 'CE28239', 'name': 'Wormpep', 'pattern': '^CE\\d{5}$', 'url': 'http://identifiers.org/wormpep/'}, 'Xenbase': {'data_entry': 'http://www.xenbase.org/gene/showgene.do?method=displayGeneSummary&amp;geneId=$id', 'example': '922462', 'name': 'Xenbase', 'pattern': '^(XB-GENE-)?\\d+$', 'url': 'http://identifiers.org/xenbase/'}, 'YeTFasCo': {'data_entry': 'http://yetfasco.ccbr.utoronto.ca/showPFM.php?mot=$id', 'example': 'YOR172W_571.0', 'name': 'YeTFasCo', 'pattern': '^\\w+\\_\\d+(\\.\\d+)?$', 'url': 'http://identifiers.org/yetfasco/'}, 'ZFIN Expression': {'data_entry': 'http://zfin.org/action/genotype/show_all_expression?genoID=$id', 'example': 'ZDB-GENO-980202-899', 'name': 'ZFIN Expression', 'pattern': '^ZDB\\-GEN0\\-\\d+\\-\\d+$', 'url': 'http://identifiers.org/zfin.expression/'}, 'ZFIN Gene': {'data_entry': 'http://zfin.org/action/marker/view/$id', 'example': 'ZDB-GENE-041118-11', 'name': 'ZFIN Gene', 'pattern': 'ZDB\\-GENE\\-\\d+\\-\\d+', 'url': 'http://identifiers.org/zfin/'}, 'ZFIN Phenotype': {'data_entry': 'http://zfin.org/action/genotype/show_all_phenotype?zdbID=$id', 'example': 'ZDB-GENO-980202-899', 'name': 'ZFIN Phenotype', 'pattern': '^ZDB\\-GEN0\\-\\d+\\-\\d+$', 'url': 'http://identifiers.org/zfin.phenotype/'}, 'arXiv': {'data_entry': 'http://arxiv.org/abs/$id', 'example': '0807.4956v1', 'name': 'arXiv', 'pattern': '^(\\w+(\\-\\w+)?(\\.\\w+)?/)?\\d{4,7}(\\.\\d{4}(v\\d+)?)?$', 'url': 'http://identifiers.org/arxiv/'}, 'dbEST': {'data_entry': 'http://www.ncbi.nlm.nih.gov/nucest/$id', 'example': 'BP100000', 'name': 'dbEST', 'pattern': '^BP\\d+(\\.\\d+)?$', 'url': 'http://identifiers.org/dbest/'}, 'dbProbe': {'data_entry': 'http://www.ncbi.nlm.nih.gov/projects/genome/probe/reports/probereport.cgi?uid=$id', 'example': '1000000', 'name': 'dbProbe', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/dbprobe/'}, 'dbSNP': {'data_entry': 'http://www.ncbi.nlm.nih.gov/projects/SNP/snp_ref.cgi?rs=$id', 'example': '121909098', 'name': 'dbSNP', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/dbsnp/'}, 'eggNOG': {'data_entry': 'http://eggnog.embl.de/version_3.0/cgi/search.py?search_term_0=$id', 'example': 'veNOG12876', 'name': 'eggNOG', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/eggnog/'}, 'iRefWeb': {'data_entry': 'http://wodaklab.org/iRefWeb/interaction/show/$id', 'example': '617102', 'name': 'iRefWeb', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/irefweb/'}, 'miRBase Sequence': {'data_entry': 'http://www.mirbase.org/cgi-bin/mirna_entry.pl?acc=$id', 'example': 'MI0000001', 'name': 'miRBase Sequence', 'pattern': 'MI\\d{7}', 'url': 'http://identifiers.org/mirbase/'}, 'miRBase mature sequence': {'data_entry': 'http://www.mirbase.org/cgi-bin/mature.pl?mature_acc=$id', 'example': 'MIMAT0000001', 'name': 'miRBase mature sequence', 'pattern': 'MIMAT\\d{7}', 'url': 'http://identifiers.org/mirbase.mature/'}, 'miRNEST': {'data_entry': 'http://lemur.amu.edu.pl/share/php/mirnest/search.php?search_term=$id', 'example': 'MNEST029358', 'name': 'miRNEST', 'pattern': '^MNEST\\d+$', 'url': 'http://identifiers.org/mirnest/'}, 'mirEX': {'data_entry': 'http://comgen.pl/mirex/?page=results/record&amp;name=$id&amp;web_temp=1683440&amp;exref=pp2a&amp;limit=yes', 'example': '165a', 'name': 'mirEX', 'pattern': '^\\d+(\\w+)?$', 'url': 'http://identifiers.org/mirex/'}, 'nextProt': {'data_entry': 'http://www.nextprot.org/db/entry/$id', 'example': 'NX_O00165', 'name': 'nextProt', 'pattern': '^NX_\\w+', 'url': 'http://identifiers.org/nextprot/'}, 'uBio NameBank': {'data_entry': 'http://www.ubio.org/browser/details.php?namebankID=$id', 'example': '2555646', 'name': 'uBio NameBank', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/ubio.namebank/'}}
""" CBMPy: MiriamIds module ======================= Constraint Based Modelling in Python (http://pysces.sourceforge.net/cbm) Copyright (C) 2009-2017 Brett G. Olivier, VU University Amsterdam, Amsterdam, The Netherlands This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/> Author: Brett G. Olivier Contact email: [email protected] Last edit: $Author: bgoli $ ($Id: CBXML.py 1137 2012-10-01 15:36:15Z bgoli $) """ miriamids = {'2D-PAGE protein': {'data_entry': 'http://2dbase.techfak.uni-bielefeld.de/cgi-bin/2d/2d.cgi?ac=$id', 'example': 'P39172', 'name': '2D-PAGE protein', 'pattern': '^([A-N,R-Z][0-9][A-Z][A-Z, 0-9][A-Z, 0-9][0-9])|([O,P,Q][0-9][A-Z, 0-9][A-Z, 0-9][A-Z, 0-9][0-9])$" restricted="true', 'url': 'http://identifiers.org/2d-page.protein/'}, '3DMET': {'data_entry': 'http://www.3dmet.dna.affrc.go.jp/cgi/show_data.php?acc=$id', 'example': 'B00162', 'name': '3DMET', 'pattern': '^B\\d{5}$', 'url': 'http://identifiers.org/3dmet/'}, 'ABS': {'data_entry': 'http://genome.crg.es/datasets/abs2005/entries/$id.html', 'example': 'A0014', 'name': 'ABS', 'pattern': '^A\\d+$', 'url': 'http://identifiers.org/abs/'}, 'AFTOL': {'data_entry': 'http://wasabi.lutzonilab.net/pub/displayTaxonInfo?aftol_id=$id', 'example': '959', 'name': 'AFTOL', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/aftol.taxonomy/'}, 'AGD': {'data_entry': 'http://agd.vital-it.ch/Ashbya_gossypii/geneview?gene=$id', 'example': 'AGR144C', 'name': 'AGD', 'pattern': '^AGR\\w+$', 'url': 'http://identifiers.org/agd/'}, 'APD': {'data_entry': 'http://aps.unmc.edu/AP/database/query_output.php?ID=$id', 'example': '01001', 'name': 'APD', 'pattern': '^\\d{5}$', 'url': 'http://identifiers.org/apd/'}, 'ASAP': {'data_entry': 'http://asap.ahabs.wisc.edu/asap/feature_info.php?LocationID=WIS&amp;FeatureID=$id', 'example': 'ABE-0009634', 'name': 'ASAP', 'pattern': '^[A-Za-z0-9-]+$" restricted="true', 'url': 'http://identifiers.org/asap/'}, 'ATCC': {'data_entry': 'http://www.lgcstandards-atcc.org/Products/All/$id.aspx', 'example': '11303', 'name': 'ATCC', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/atcc/'}, 'Aceview Worm': {'data_entry': 'http://www.ncbi.nlm.nih.gov/IEB/Research/Acembly/av.cgi?db=worm&amp;c=Gene&amp;l=$id', 'example': 'aap-1', 'name': 'Aceview Worm', 'pattern': '^[a-z0-9-]+$', 'url': 'http://identifiers.org/aceview.worm/'}, 'Aclame': {'data_entry': 'http://aclame.ulb.ac.be/perl/Aclame/Genomes/mge_view.cgi?view=info&amp;id=$id', 'example': 'mge:2', 'name': 'Aclame', 'pattern': '^mge:\\d+$', 'url': 'http://identifiers.org/aclame/'}, 'Affymetrix Probeset': {'data_entry': 'https://www.affymetrix.com/LinkServlet?probeset=$id', 'example': '243002_at', 'name': 'Affymetrix Probeset', 'pattern': '\\d{4,}((_[asx])?_at)?" restricted="true', 'url': 'http://identifiers.org/affy.probeset/'}, 'Allergome': {'data_entry': 'http://www.allergome.org/script/dettaglio.php?id_molecule=$id', 'example': '1948', 'name': 'Allergome', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/allergome/'}, 'AmoebaDB': {'data_entry': 'http://amoebadb.org/amoeba/showRecord.do?name=GeneRecordClasses.GeneRecordClass&amp;source_id=$id', 'example': 'EDI_244000', 'name': 'AmoebaDB', 'pattern': '^EDI_\\d+$', 'url': 'http://identifiers.org/amoebadb/'}, 'Anatomical Therapeutic Chemical': {'data_entry': 'http://www.whocc.no/atc_ddd_index/?code=$id', 'example': 'A10BA02', 'name': 'Anatomical Therapeutic Chemical', 'pattern': '^\\w(\\d+)?(\\w{1,2})?(\\d+)?$', 'url': 'http://identifiers.org/atc/'}, 'Anatomical Therapeutic Chemical Vetinary': {'data_entry': 'http://www.whocc.no/atcvet/atcvet_index/?code=$id', 'example': 'QJ51RV02', 'name': 'Anatomical Therapeutic Chemical Vetinary', 'pattern': '^Q[A-Z0-9]+$', 'url': 'http://identifiers.org/atcvet/'}, 'Animal TFDB Family': {'data_entry': 'http://www.bioguo.org/AnimalTFDB/family.php?fam=$id', 'example': 'CUT', 'name': 'Animal TFDB Family', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/atfdb.family/'}, 'AntWeb': {'data_entry': 'http://www.antweb.org/specimen.do?name=$id', 'example': 'casent0106247', 'name': 'AntWeb', 'pattern': '^casent\\d+(\\-D\\d+)?$', 'url': 'http://identifiers.org/antweb/'}, 'AphidBase Transcript': {'data_entry': 'http://isyip.genouest.org/apps/grs-2.2/grs?reportID=aphidbase_transcript_report&amp;objectID=$id', 'example': 'ACYPI000159', 'name': 'AphidBase Transcript', 'pattern': '^ACYPI\\d{6}(-RA)?$" restricted="true', 'url': 'http://identifiers.org/aphidbase.transcript/'}, 'ArachnoServer': {'data_entry': 'http://www.arachnoserver.org/toxincard.html?id=$id', 'example': 'AS000060', 'name': 'ArachnoServer', 'pattern': '^AS\\d{6}$', 'url': 'http://identifiers.org/arachnoserver/'}, 'ArrayExpress': {'data_entry': 'http://www.ebi.ac.uk/arrayexpress/experiments/$id', 'example': 'E-MEXP-1712', 'name': 'ArrayExpress', 'pattern': '^[AEP]-\\w{4}-\\d+$', 'url': 'http://identifiers.org/arrayexpress/'}, 'ArrayExpress Platform': {'data_entry': 'http://www.ebi.ac.uk/arrayexpress/arrays/$id', 'example': 'A-GEOD-50', 'name': 'ArrayExpress Platform', 'pattern': '^[AEP]-\\w{4}-\\d+$', 'url': 'http://identifiers.org/arrayexpress.platform/'}, 'AspGD Locus': {'data_entry': 'http://www.aspergillusgenome.org/cgi-bin/locus.pl?dbid=$id', 'example': 'ASPL0000349247', 'name': 'AspGD Locus', 'pattern': '^[A-Za-z_0-9]+$', 'url': 'http://identifiers.org/aspgd.locus/'}, 'AspGD Protein': {'data_entry': 'http://www.aspergillusgenome.org/cgi-bin/protein/proteinPage.pl?dbid=$id', 'example': 'ASPL0000349247', 'name': 'AspGD Protein', 'pattern': '^[A-Za-z_0-9]+$', 'url': 'http://identifiers.org/aspgd.protein/'}, 'BDGP EST': {'data_entry': 'http://www.ncbi.nlm.nih.gov/nucest/$id', 'example': 'EY223054.1', 'name': 'BDGP EST', 'pattern': '^\\w+(\\.)?(\\d+)?$" restricted="true', 'url': 'http://identifiers.org/bdgp.est/'}, 'BDGP insertion DB': {'data_entry': 'http://flypush.imgen.bcm.tmc.edu/pscreen/details.php?line=$id', 'example': 'KG09531', 'name': 'BDGP insertion DB', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/bdgp.insertion/'}, 'BIND': {'data_entry': 'http://www.bind.ca/Action?identifier=bindid&amp;idsearch=$id', 'example': None, 'name': 'BIND', 'pattern': '^\\d+$" restricted="true" obsolete="true" replacement="MIR:00000010', 'url': 'http://identifiers.org/bind/'}, 'BOLD Taxonomy': {'data_entry': 'http://www.boldsystems.org/index.php/Taxbrowser_Taxonpage?taxid=$id', 'example': '27267', 'name': 'BOLD Taxonomy', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/bold.taxonomy/'}, 'BRENDA': {'data_entry': 'http://www.brenda-enzymes.org/php/result_flat.php4?ecno=$id', 'example': '1.1.1.1', 'name': 'BRENDA', 'pattern': '^((\\d+\\.-\\.-\\.-)|(\\d+\\.\\d+\\.-\\.-)|(\\d+\\.\\d+\\.\\d+\\.-)|(\\d+\\.\\d+\\.\\d+\\.\\d+))$', 'url': 'http://identifiers.org/brenda/'}, 'BYKdb': {'data_entry': 'http://bykdb.ibcp.fr/data/html/$id.html', 'example': 'A0AYT5', 'name': 'BYKdb', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/bykdb/'}, 'BacMap Biography': {'data_entry': 'http://bacmap.wishartlab.com/organisms/$id', 'example': '1050', 'name': 'BacMap Biography', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/bacmap.biog/'}, 'BeetleBase': {'data_entry': 'http://beetlebase.org/cgi-bin/gbrowse/BeetleBase3.gff3/?name=$id', 'example': 'TC010103', 'name': 'BeetleBase', 'pattern': '^TC\\d+$', 'url': 'http://identifiers.org/beetlebase/'}, 'BindingDB': {'data_entry': 'http://www.bindingdb.org/bind/chemsearch/marvin/MolStructure.jsp?monomerid=$id', 'example': '22360', 'name': 'BindingDB', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/bindingDB/'}, 'BioCatalogue': {'data_entry': 'http://www.biocatalogue.org/services/$id', 'example': '614', 'name': 'BioCatalogue', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/biocatalogue.service/'}, 'BioCyc': {'data_entry': 'http://biocyc.org/getid?id=$id', 'example': 'ECOLI:CYT-D-UBIOX-CPLX', 'name': 'BioCyc', 'pattern': '^\\w+\\:[A-Za-z0-9-]+$" restricted="true', 'url': 'http://identifiers.org/biocyc/'}, 'BioGRID': {'data_entry': 'http://thebiogrid.org/$id', 'example': '31623', 'name': 'BioGRID', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/biogrid/'}, 'BioModels Database': {'data_entry': 'http://www.ebi.ac.uk/biomodels-main/$id', 'example': 'BIOMD0000000048', 'name': 'BioModels Database', 'pattern': '^((BIOMD|MODEL)\\d{10})|(BMID\\d{12})$', 'url': 'http://identifiers.org/biomodels.db/'}, 'BioNumbers': {'data_entry': 'http://www.bionumbers.hms.harvard.edu/bionumber.aspx?s=y&amp;id=$id&amp;ver=1', 'example': '104674', 'name': 'BioNumbers', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/bionumbers/'}, 'BioPortal': {'data_entry': 'http://bioportal.bioontology.org/ontologies/$id', 'example': '1046', 'name': 'BioPortal', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/bioportal/'}, 'BioProject': {'data_entry': 'http://trace.ddbj.nig.ac.jp/BPSearch/bioproject?acc=$id', 'example': 'PRJDB3', 'name': 'BioProject', 'pattern': '^PRJDB\\d+$', 'url': 'http://identifiers.org/bioproject/'}, 'BioSample': {'data_entry': 'http://www.ebi.ac.uk/biosamples/browse.html?keywords=$id', 'example': 'SAMEG70402', 'name': 'BioSample', 'pattern': '^\\w{3}[NE](\\w)?\\d+$', 'url': 'http://identifiers.org/biosample/'}, 'BioSharing': {'data_entry': 'http://www.biosharing.org/$id', 'example': 'bsg-000052', 'name': 'BioSharing', 'pattern': '^bsg-\\d{6}$', 'url': 'http://identifiers.org/biosharing/'}, 'BioSystems': {'data_entry': 'http://www.ncbi.nlm.nih.gov/biosystems/$id', 'example': '001', 'name': 'BioSystems', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/biosystems/'}, 'BitterDB Compound': {'data_entry': 'http://bitterdb.agri.huji.ac.il/bitterdb/compound.php?id=$id', 'example': '46', 'name': 'BitterDB Compound', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/bitterdb.cpd/'}, 'BitterDB Receptor': {'data_entry': 'http://bitterdb.agri.huji.ac.il/bitterdb/Receptor.php?id=$id', 'example': '1', 'name': 'BitterDB Receptor', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/bitterdb.rec/'}, 'Brenda Tissue Ontology': {'data_entry': 'http://www.ebi.ac.uk/ontology-lookup/?termId=$id', 'example': 'BTO:0000146', 'name': 'Brenda Tissue Ontology', 'pattern': '^BTO:\\d{7}$', 'url': 'http://identifiers.org/obo.bto/'}, 'BugBase Expt': {'data_entry': 'http://bugs.sgul.ac.uk/bugsbase/tabs/experiment.php?expt_id=$id&amp;action=view', 'example': '288', 'name': 'BugBase Expt', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/bugbase.expt/'}, 'BugBase Protocol': {'data_entry': 'http://bugs.sgul.ac.uk/bugsbase/tabs/protocol.php?protocol_id=$id&amp;amp;action=view', 'example': '67', 'name': 'BugBase Protocol', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/bugbase.protocol/'}, 'CABRI': {'data_entry': 'http://www.cabri.org/CABRI/srs-bin/wgetz?-e+-page+EntryPage+[$id]', 'example': 'dsmz_mutz-id:ACC 291', 'name': 'CABRI', 'pattern': '^([A-Za-z]+)?(\\_)?([A-Za-z-]+)\\:([A-Za-z0-9 ]+)$', 'url': 'http://identifiers.org/cabri/'}, 'CAPS-DB': {'data_entry': 'http://www.bioinsilico.org/cgi-bin/CAPSDB/getCAPScluster?nidcl=$id', 'example': '434', 'name': 'CAPS-DB', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/caps/'}, 'CAS': {'data_entry': 'http://commonchemistry.org/ChemicalDetail.aspx?ref=$id', 'example': '50-00-0', 'name': 'CAS', 'pattern': '^\\d{1,7}\\-\\d{2}\\-\\d$" restricted="true', 'url': 'http://identifiers.org/cas/'}, 'CATH domain': {'data_entry': 'http://www.cathdb.info/domain/$id', 'example': '1cukA01', 'name': 'CATH domain', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/cath.domain/'}, 'CATH superfamily': {'data_entry': 'http://www.cathdb.info/cathnode/$id', 'example': '1.10.10.200', 'name': 'CATH superfamily', 'pattern': '^\\d+(\\.\\d+(\\.\\d+(\\.\\d+)?)?)?$', 'url': 'http://identifiers.org/cath.superfamily/'}, 'CAZy': {'data_entry': 'http://www.cazy.org/$id.html', 'example': 'GT10', 'name': 'CAZy', 'pattern': '^GT\\d+$', 'url': 'http://identifiers.org/cazy/'}, 'CGSC Strain': {'data_entry': 'http://cgsc.biology.yale.edu/Strain.php?ID=$id', 'example': '11042', 'name': 'CGSC Strain', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/cgsc/'}, 'CLDB': {'data_entry': 'http://bioinformatics.istge.it/hypercldb/$id.html', 'example': 'cl3603', 'name': 'CLDB', 'pattern': '^cl\\d+$', 'url': 'http://identifiers.org/cldb/'}, 'CMR Gene': {'data_entry': 'http://cmr.jcvi.org/cgi-bin/CMR/shared/GenePage.cgi?locus=$id', 'example': 'NTL15EF2281', 'name': 'CMR Gene', 'pattern': '^\\w+(\\_)?\\w+$', 'url': 'http://identifiers.org/cmr.gene/'}, 'COGs': {'data_entry': 'http://www.ncbi.nlm.nih.gov/COG/grace/wiew.cgi?$id', 'example': 'COG0001', 'name': 'COGs', 'pattern': '^COG\\d+$', 'url': 'http://identifiers.org/cogs/'}, 'COMBINE specifications': {'data_entry': 'http://co.mbine.org/specifications/$id', 'example': 'sbgn.er.level-1.version-1.2', 'name': 'COMBINE specifications', 'pattern': '^\\w+(\\-|\\.|\\w)*$', 'url': 'http://identifiers.org/combine.specifications/'}, 'CSA': {'data_entry': 'http://www.ebi.ac.uk/thornton-srv/databases/cgi-bin/CSA/CSA_Site_Wrapper.pl?pdb=$id', 'example': '1a05', 'name': 'CSA', 'pattern': '^[0-9][A-Za-z0-9]{3}$', 'url': 'http://identifiers.org/csa/'}, 'CTD Chemical': {'data_entry': 'http://ctdbase.org/detail.go?type=chem&amp;acc=$id', 'example': 'D001151', 'name': 'CTD Chemical', 'pattern': '^D\\d+$', 'url': 'http://identifiers.org/ctd.chemical/'}, 'CTD Disease': {'data_entry': 'http://ctdbase.org/detail.go?type=disease&amp;db=MESH&amp;acc=$id', 'example': 'D053716', 'name': 'CTD Disease', 'pattern': '^D\\d+$', 'url': 'http://identifiers.org/ctd.disease/'}, 'CTD Gene': {'data_entry': 'http://ctdbase.org/detail.go?type=gene&amp;acc=$id', 'example': '101', 'name': 'CTD Gene', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/ctd.gene/'}, 'CYGD': {'data_entry': 'http://mips.helmholtz-muenchen.de/genre/proj/yeast/singleGeneReport.html?entry=$id', 'example': 'YFL039c', 'name': 'CYGD', 'pattern': '^\\w{2,3}\\d{2,4}(\\w)?$" restricted="true', 'url': 'http://identifiers.org/cygd/'}, 'Canadian Drug Product Database': {'data_entry': 'http://webprod3.hc-sc.gc.ca/dpd-bdpp/info.do?lang=eng&amp;code=$id', 'example': '63250', 'name': 'Canadian Drug Product Database', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/cdpd/'}, 'Candida Genome Database': {'data_entry': 'http://www.candidagenome.org/cgi-bin/locus.pl?dbid=$id', 'example': 'CAL0003079', 'name': 'Candida Genome Database', 'pattern': '^CAL\\d{7}$', 'url': 'http://identifiers.org/cgd/'}, 'Cell Cycle Ontology': {'data_entry': 'http://www.ebi.ac.uk/ontology-lookup/?termId=$id', 'example': 'CCO:P0000023', 'name': 'Cell Cycle Ontology', 'pattern': '^CCO\\:\\w+$', 'url': 'http://identifiers.org/cco/'}, 'Cell Image Library': {'data_entry': 'http://cellimagelibrary.org/images/$id', 'example': '24801', 'name': 'Cell Image Library', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/cellimage/'}, 'Cell Type Ontology': {'data_entry': 'http://www.ebi.ac.uk/ontology-lookup/?termId=$id', 'example': 'CL:0000232', 'name': 'Cell Type Ontology', 'pattern': '^CL:\\d{7}$', 'url': 'http://identifiers.org/obo.clo/'}, 'ChEBI': {'data_entry': 'http://www.ebi.ac.uk/chebi/searchId.do?chebiId=$id', 'example': 'CHEBI:36927', 'name': 'ChEBI', 'pattern': '^CHEBI:\\d+$', 'url': 'http://identifiers.org/chebi/'}, 'ChEMBL compound': {'data_entry': 'https://www.ebi.ac.uk/chembldb/index.php/compound/inspect/$id', 'example': 'CHEMBL308052', 'name': 'ChEMBL compound', 'pattern': '^CHEMBL\\d+$', 'url': 'http://identifiers.org/chembl.compound/'}, 'ChEMBL target': {'data_entry': 'https://www.ebi.ac.uk/chembldb/index.php/target/inspect/$id', 'example': 'CHEMBL3467', 'name': 'ChEMBL target', 'pattern': '^CHEMBL\\d+$', 'url': 'http://identifiers.org/chembl.target/'}, 'CharProt': {'data_entry': 'http://www.jcvi.org/charprotdb/index.cgi/view/$id', 'example': 'CH_001923', 'name': 'CharProt', 'pattern': '^CH_\\d+$', 'url': 'http://identifiers.org/charprot/'}, 'ChemBank': {'data_entry': 'http://chembank.broadinstitute.org/chemistry/viewMolecule.htm?cbid=$id', 'example': '1000000', 'name': 'ChemBank', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/chembank/'}, 'ChemDB': {'data_entry': 'http://cdb.ics.uci.edu/cgibin/ChemicalDetailWeb.py?chemical_id=$id', 'example': '3966782', 'name': 'ChemDB', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/chemdb/'}, 'ChemIDplus': {'data_entry': 'http://chem.sis.nlm.nih.gov/chemidplus/direct.jsp?regno=$id', 'example': '000057272', 'name': 'ChemIDplus', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/chemidplus/'}, 'ChemSpider': {'data_entry': 'http://www.chemspider.com/Chemical-Structure.$id.html', 'example': '56586', 'name': 'ChemSpider', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/chemspider/'}, 'Chemical Component Dictionary': {'data_entry': 'http://www.ebi.ac.uk/pdbe-srv/pdbechem/chemicalCompound/show/$id', 'example': 'AB0', 'name': 'Chemical Component Dictionary', 'pattern': '^\\w{3}$', 'url': 'http://identifiers.org/pdb-ccd/'}, 'ClinicalTrials.gov': {'data_entry': 'http://clinicaltrials.gov/ct2/show/$id', 'example': 'NCT00222573', 'name': 'ClinicalTrials.gov', 'pattern': '^NCT\\d{8}$', 'url': 'http://identifiers.org/clinicaltrials/'}, 'CluSTr': {'data_entry': 'http://www.ebi.ac.uk/clustr-srv/CCluster?interpro=yes&amp;cluster_varid=$id', 'example': 'HUMAN:55140:308.6', 'name': 'CluSTr', 'pattern': '^[0-9A-Za-z]+:\\d+:\\d{1,5}(\\.\\d)?$" obsolete="true" replacement="', 'url': 'http://identifiers.org/clustr/'}, 'Compulyeast': {'data_entry': 'http://compluyeast2dpage.dacya.ucm.es/cgi-bin/2d/2d.cgi?ac=$id', 'example': 'O08709', 'name': 'Compulyeast', 'pattern': '^([A-N,R-Z][0-9][A-Z][A-Z, 0-9][A-Z, 0-9][0-9])|([O,P,Q][0-9][A-Z, 0-9][A-Z, 0-9][A-Z, 0-9][0-9])$', 'url': 'http://identifiers.org/compulyeast/'}, 'Conoserver': {'data_entry': 'http://www.conoserver.org/?page=card&amp;table=protein&amp;id=$id', 'example': '2639', 'name': 'Conoserver', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/conoserver/'}, 'Consensus CDS': {'data_entry': 'http://www.ncbi.nlm.nih.gov/CCDS/CcdsBrowse.cgi?REQUEST=CCDS&amp;amp;DATA=$id', 'example': 'CCDS13573.1', 'name': 'Consensus CDS', 'pattern': '^CCDS\\d+\\.\\d+$', 'url': 'http://identifiers.org/ccds/'}, 'Conserved Domain Database': {'data_entry': 'http://www.ncbi.nlm.nih.gov/Structure/cdd/cddsrv.cgi?uid=$id', 'example': 'cd00400', 'name': 'Conserved Domain Database', 'pattern': '^(cd)?\\d{5}$', 'url': 'http://identifiers.org/cdd/'}, 'CryptoDB': {'data_entry': 'http://cryptodb.org/cryptodb/showRecord.do?name=GeneRecordClasses.GeneRecordClass&amp;source_id=$id', 'example': 'cgd7_230', 'name': 'CryptoDB', 'pattern': '^\\w+', 'url': 'http://identifiers.org/cryptodb/'}, 'Cube db': {'data_entry': 'http://epsf.bmad.bii.a-star.edu.sg/cube/db/data/$id/', 'example': 'AKR', 'name': 'Cube db', 'pattern': '^[A-Za-z_0-9]+$" restricted="true', 'url': 'http://identifiers.org/cubedb/'}, 'CutDB': {'data_entry': 'http://cutdb.burnham.org/relation/show/$id', 'example': '25782', 'name': 'CutDB', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/pmap.cutdb/'}, 'DARC': {'data_entry': 'http://darcsite.genzentrum.lmu.de/darc/view.php?id=$id', 'example': '1250', 'name': 'DARC', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/darc/'}, 'DBG2 Introns': {'data_entry': 'http://webapps2.ucalgary.ca/~groupii/cgi-bin/intron.cgi?name=$id', 'example': 'Cu.me.I1', 'name': 'DBG2 Introns', 'pattern': '^\\w{1,2}\\.(\\w{1,2}\\.)?[A-Za-z0-9]+$" restricted="true', 'url': 'http://identifiers.org/dbg2introns/'}, 'DOI': {'data_entry': 'https://doi.org/$id', 'example': '10.1038/nbt1156', 'name': 'DOI', 'pattern': '^(doi\\:)?\\d{2}\\.\\d{4}.*$', 'url': 'http://identifiers.org/doi/'}, 'DOMMINO': {'data_entry': 'http://orion.rnet.missouri.edu/~nz953/DOMMINO/index.php/result/show_network/$id', 'example': '2GC4', 'name': 'DOMMINO', 'pattern': '^[0-9][A-Za-z0-9]{3}$', 'url': 'http://identifiers.org/dommino/'}, 'DPV': {'data_entry': 'http://www.dpvweb.net/dpv/showdpv.php?dpvno=$id', 'example': '100', 'name': 'DPV', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/dpv/'}, 'DRSC': {'data_entry': 'http://www.flyrnai.org/cgi-bin/RNAi_gene_lookup_public.pl?gname=$id', 'example': 'DRSC05221', 'name': 'DRSC', 'pattern': '^DRSC\\d+$', 'url': 'http://identifiers.org/drsc/'}, 'Database of Interacting Proteins': {'data_entry': 'http://dip.doe-mbi.ucla.edu/dip/DIPview.cgi?ID=$id', 'example': 'DIP-743N', 'name': 'Database of Interacting Proteins', 'pattern': '^DIP[\\:\\-]\\d{3}[EN]$', 'url': 'http://identifiers.org/dip/'}, 'Database of Quantitative Cellular Signaling: Model': {'data_entry': 'http://doqcs.ncbs.res.in/template.php?&amp;y=accessiondetails&amp;an=$id', 'example': '57', 'name': 'Database of Quantitative Cellular Signaling: Model', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/doqcs.model/'}, 'Database of Quantitative Cellular Signaling: Pathway': {'data_entry': 'http://doqcs.ncbs.res.in/template.php?&amp;y=pathwaydetails&amp;pn=$id', 'example': '131', 'name': 'Database of Quantitative Cellular Signaling: Pathway', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/doqcs.pathway/'}, 'Dictybase EST': {'data_entry': 'http://dictybase.org/db/cgi-bin/feature_page.pl?primary_id=$id', 'example': 'DDB0016567', 'name': 'Dictybase EST', 'pattern': '^DDB\\d+$', 'url': 'http://identifiers.org/dictybase.est/'}, 'Dictybase Gene': {'data_entry': 'http://dictybase.org/gene/$id', 'example': 'DDB_G0267522', 'name': 'Dictybase Gene', 'pattern': '^DDB_G\\d+$', 'url': 'http://identifiers.org/dictybase.gene/'}, 'DisProt': {'data_entry': 'http://www.disprot.org/protein.php?id=$id', 'example': 'DP00001', 'name': 'DisProt', 'pattern': '^DP\\d{5}$', 'url': 'http://identifiers.org/disprot/'}, 'DragonDB Allele': {'data_entry': 'http://antirrhinum.net/cgi-bin/ace/generic/tree/DragonDB?name=$id&amp;amp;class=Allele', 'example': 'cho', 'name': 'DragonDB Allele', 'pattern': '^\\w+$" restricted="true', 'url': 'http://identifiers.org/dragondb.allele/'}, 'DragonDB DNA': {'data_entry': 'http://antirrhinum.net/cgi-bin/ace/generic/tree/DragonDB?name=$id;class=DNA', 'example': '3hB06', 'name': 'DragonDB DNA', 'pattern': '^\\d\\w+$', 'url': 'http://identifiers.org/dragondb.dna/'}, 'DragonDB Locus': {'data_entry': 'http://antirrhinum.net/cgi-bin/ace/generic/tree/DragonDB?name=$id&amp;amp;class=Locus', 'example': 'DEF', 'name': 'DragonDB Locus', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/dragondb.locus/'}, 'DragonDB Protein': {'data_entry': 'http://antirrhinum.net/cgi-bin/ace/generic/tree/DragonDB?name=$id;class=Peptide', 'example': 'AMDEFA', 'name': 'DragonDB Protein', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/dragondb.protein/'}, 'DrugBank': {'data_entry': 'http://www.drugbank.ca/drugs/$id', 'example': 'DB00001', 'name': 'DrugBank', 'pattern': '^DB\\d{5}$', 'url': 'http://identifiers.org/drugbank/'}, 'EDAM Ontology': {'data_entry': 'http://www.ebi.ac.uk/ontology-lookup/?termId=$id', 'example': 'EDAM_data:1664', 'name': 'EDAM Ontology', 'pattern': '^EDAM_(data|topic)\\:\\d{4}$', 'url': 'http://identifiers.org/edam/'}, 'ELM': {'data_entry': 'http://elm.eu.org/elms/elmPages/$id.html', 'example': 'CLV_MEL_PAP_1', 'name': 'ELM', 'pattern': '^[A-Za-z_0-9]+$', 'url': 'http://identifiers.org/elm/'}, 'ENA': {'data_entry': 'http://www.ebi.ac.uk/ena/data/view/$id', 'example': 'BN000065', 'name': 'ENA', 'pattern': '^[A-Z]+[0-9]+$', 'url': 'http://identifiers.org/ena.embl/'}, 'EPD': {'data_entry': 'http://epd.vital-it.ch/cgi-bin/query_result.pl?out_format=NICE&amp;Entry_0=$id', 'example': 'TA_H3', 'name': 'EPD', 'pattern': '^[A-Z-0-9]+$', 'url': 'http://identifiers.org/epd/'}, 'EchoBASE': {'data_entry': 'http://www.york.ac.uk/res/thomas/Gene.cfm?recordID=$id', 'example': 'EB0170', 'name': 'EchoBASE', 'pattern': '^EB\\d+$', 'url': 'http://identifiers.org/echobase/'}, 'EcoGene': {'data_entry': 'http://ecogene.org/?q=gene/$id', 'example': 'EG10173', 'name': 'EcoGene', 'pattern': '^EG\\d+$', 'url': 'http://identifiers.org/ecogene/'}, 'Ensembl': {'data_entry': 'http://www.ensembl.org/id/$id', 'example': 'ENSG00000139618', 'name': 'Ensembl', 'pattern': '^ENS[A-Z]*[FPTG]\\d{11}(\\.\\d+)?$', 'url': 'http://identifiers.org/ensembl/'}, 'Ensembl Bacteria': {'data_entry': 'http://bacteria.ensembl.org/id/$id', 'example': 'EBESCT00000015660', 'name': 'Ensembl Bacteria', 'pattern': '^EB\\w+$', 'url': 'http://identifiers.org/ensembl.bacteria/'}, 'Ensembl Fungi': {'data_entry': 'http://fungi.ensembl.org/id/$id', 'example': 'CADAFLAT00006211', 'name': 'Ensembl Fungi', 'pattern': '^[A-Z-a-z0-9]+$', 'url': 'http://identifiers.org/ensembl.fungi/'}, 'Ensembl Metazoa': {'data_entry': 'http://metazoa.ensembl.org/id/$id', 'example': 'FBtr0084214', 'name': 'Ensembl Metazoa', 'pattern': '^\\w+(\\.)?\\d+$', 'url': 'http://identifiers.org/ensembl.metazoa/'}, 'Ensembl Plants': {'data_entry': 'http://plants.ensembl.org/id/$id', 'example': 'AT1G73965', 'name': 'Ensembl Plants', 'pattern': '^\\w+(\\.\\d+)?(\\.\\d+)?$', 'url': 'http://identifiers.org/ensembl.plant/'}, 'Ensembl Protists': {'data_entry': 'http://protists.ensembl.org/id/$id', 'example': 'PFC0120w', 'name': 'Ensembl Protists', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/ensembl.protist/'}, 'Enzyme Nomenclature': {'data_entry': 'http://www.ebi.ac.uk/intenz/query?cmd=SearchEC&amp;ec=$id', 'example': '1.1.1.1', 'name': 'Enzyme Nomenclature', 'pattern': '^\\d+\\.-\\.-\\.-|\\d+\\.\\d+\\.-\\.-|\\d+\\.\\d+\\.\\d+\\.-|\\d+\\.\\d+\\.\\d+\\.(n)?\\d+$', 'url': 'http://identifiers.org/ec-code/'}, 'Evidence Code Ontology': {'data_entry': 'http://www.ebi.ac.uk/ontology-lookup/?termId=$id', 'example': 'ECO:0000006', 'name': 'Evidence Code Ontology', 'pattern': 'ECO:\\d{7}$', 'url': 'http://identifiers.org/obo.eco/'}, 'Experimental Factor Ontology': {'data_entry': 'http://www.ebi.ac.uk/ontology-lookup/?termId=EFO:$id', 'example': '0004859', 'name': 'Experimental Factor Ontology', 'pattern': '^\\d{7}$', 'url': 'http://identifiers.org/efo/'}, 'FMA': {'data_entry': 'http://www.ebi.ac.uk/ontology-lookup/?termId=$id', 'example': 'FMA:67112', 'name': 'FMA', 'pattern': '^FMA:\\d+$', 'url': 'http://identifiers.org/obo.fma/'}, 'FlyBase': {'data_entry': 'http://flybase.org/reports/$id.html', 'example': 'FBgn0011293', 'name': 'FlyBase', 'pattern': '^FB\\w{2}\\d{7}$', 'url': 'http://identifiers.org/flybase/'}, 'Flystock': {'data_entry': 'http://flystocks.bio.indiana.edu/Reports/$id.html', 'example': '33159', 'name': 'Flystock', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/flystock/'}, 'Fungal Barcode': {'data_entry': 'http://www.fungalbarcoding.org/BioloMICS.aspx?Table=Fungal barcodes&amp;Rec=$id&amp;Fields=All&amp;ExactMatch=T', 'example': '2224', 'name': 'Fungal Barcode', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/fbol/'}, 'FungiDB': {'data_entry': 'http://fungidb.org/gene/$id', 'example': 'CNBG_0001', 'name': 'FungiDB', 'pattern': '^[A-Za-z_0-9]+$" restricted="true', 'url': 'http://identifiers.org/fungidb/'}, 'GABI': {'data_entry': 'http://gabi.rzpd.de/database/cgi-bin/GreenCards.pl.cgi?BioObjectId=$id&amp;Mode=ShowBioObject', 'example': '2679240', 'name': 'GABI', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/gabi/'}, 'GEO': {'data_entry': 'http://www.ncbi.nlm.nih.gov/sites/GDSbrowser?acc=$id', 'example': 'GDS1234', 'name': 'GEO', 'pattern': '^GDS\\d+$', 'url': 'http://identifiers.org/geo/'}, 'GOA': {'data_entry': 'http://www.ebi.ac.uk/QuickGO/GProtein?ac=$id', 'example': 'P12345', 'name': 'GOA', 'pattern': '^([A-N,R-Z][0-9][A-Z][A-Z, 0-9][A-Z, 0-9][0-9])|([O,P,Q][0-9][A-Z, 0-9][A-Z, 0-9][A-Z, 0-9][0-9])$', 'url': 'http://identifiers.org/goa/'}, 'GOLD genome': {'data_entry': 'http://www.genomesonline.org/cgi-bin/GOLD/GOLDCards.cgi?goldstamp=$id', 'example': 'Gi07796', 'name': 'GOLD genome', 'pattern': '^[Gi|Gc]\\d+$', 'url': 'http://identifiers.org/gold.genome/'}, 'GOLD metadata': {'data_entry': 'http://genomesonline.org/cgi-bin/GOLD/bin/GOLDCards.cgi?goldstamp=$id', 'example': 'Gm00047', 'name': 'GOLD metadata', 'pattern': '^Gm\\d+$', 'url': 'http://identifiers.org/gold.meta/'}, 'GPCRDB': {'data_entry': 'http://www.gpcr.org/7tm/proteins/$id', 'example': 'RL3R1_HUMAN', 'name': 'GPCRDB', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/gpcrdb/'}, 'GRIN Plant Taxonomy': {'data_entry': 'http://www.ars-grin.gov/cgi-bin/npgs/html/taxon.pl?$id', 'example': '19333', 'name': 'GRIN Plant Taxonomy', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/grin.taxonomy/'}, 'GXA Expt': {'data_entry': 'http://www.ebi.ac.uk/gxa/experiment/$id', 'example': 'E-MTAB-62', 'name': 'GXA Expt', 'pattern': '^[AEP]-\\w{4}-\\d+$" restricted="true', 'url': 'http://identifiers.org/gxa.expt/'}, 'GXA Gene': {'data_entry': 'http://www.ebi.ac.uk/gxa/gene/$id', 'example': 'AT4G01080', 'name': 'GXA Gene', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/gxa.gene/'}, 'GenPept': {'data_entry': 'http://www.ncbi.nlm.nih.gov/protein/$id?report=genpept', 'example': 'CAA71118.1', 'name': 'GenPept', 'pattern': '^\\w{3}\\d{5}(\\.\\d+)?$" restricted="true', 'url': 'http://identifiers.org/genpept/'}, 'Genatlas': {'data_entry': 'http://genatlas.medecine.univ-paris5.fr/fiche.php?symbol=$id', 'example': 'HBB', 'name': 'Genatlas', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/genatlas/'}, 'Gene Ontology': {'data_entry': 'http://www.ebi.ac.uk/QuickGO/GTerm?id=$id', 'example': 'GO:0006915', 'name': 'Gene Ontology', 'pattern': '^GO:\\d{7}$', 'url': 'http://identifiers.org/obo.go/'}, 'GeneCards': {'data_entry': 'http://www.genecards.org/cgi-bin/carddisp.pl?gene=$id', 'example': 'ABL1', 'name': 'GeneCards', 'pattern': '^\\w+$" restricted="true', 'url': 'http://identifiers.org/genecards/'}, 'GeneDB': {'data_entry': 'http://www.genedb.org/gene/$id', 'example': 'Cj1536c', 'name': 'GeneDB', 'pattern': '^[\\w\\d\\.-]*$', 'url': 'http://identifiers.org/genedb/'}, 'GeneFarm': {'data_entry': 'http://urgi.versailles.inra.fr/Genefarm/Gene/display_gene.htpl?GENE_ID=$id', 'example': '4892', 'name': 'GeneFarm', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/genefarm/'}, 'GeneTree': {'data_entry': 'http://www.ensembl.org/Multi/GeneTree/Image?db=core;gt=$id', 'example': 'ENSGT00550000074763', 'name': 'GeneTree', 'pattern': '^ENSGT\\d+$', 'url': 'http://identifiers.org/genetree/'}, 'GiardiaDB': {'data_entry': 'http://giardiadb.org/giardiadb/showRecord.do?name=GeneRecordClasses.GeneRecordClass&amp;source_id=$id', 'example': 'GL50803_102438', 'name': 'GiardiaDB', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/giardiadb/'}, 'GlycomeDB': {'data_entry': 'http://www.glycome-db.org/database/showStructure.action?glycomeId=$id', 'example': '1', 'name': 'GlycomeDB', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/glycomedb/'}, 'Golm Metabolome Database': {'data_entry': 'http://gmd.mpimp-golm.mpg.de/Metabolites/$id.aspx', 'example': '68513255-fc44-4041-bc4b-4fd2fae7541d', 'name': 'Golm Metabolome Database', 'pattern': '^[A-Za-z-0-9-]+$" restricted="true', 'url': 'http://identifiers.org/gmd/'}, 'Gramene QTL': {'data_entry': 'http://www.gramene.org/db/qtl/qtl_display?qtl_accession_id=$id', 'example': 'CQG5', 'name': 'Gramene QTL', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/gramene.qtl/'}, 'Gramene Taxonomy': {'data_entry': 'http://www.gramene.org/db/ontology/search?id=$id', 'example': 'GR_tax:013681', 'name': 'Gramene Taxonomy', 'pattern': '^GR\\_tax\\:\\d+$', 'url': 'http://identifiers.org/gramene.taxonomy/'}, 'Gramene genes': {'data_entry': 'http://www.gramene.org/db/genes/search_gene?acc=$id', 'example': 'GR:0080039', 'name': 'Gramene genes', 'pattern': '^GR\\:\\d+$', 'url': 'http://identifiers.org/gramene.gene/'}, 'Gramene protein': {'data_entry': 'http://www.gramene.org/db/protein/protein_search?protein_id=$id', 'example': '78073', 'name': 'Gramene protein', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/gramene.protein/'}, 'GreenGenes': {'data_entry': 'http://greengenes.lbl.gov/cgi-bin/show_one_record_v2.pl?prokMSA_id=$id', 'example': '100000', 'name': 'GreenGenes', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/greengenes/'}, 'H-InvDb Locus': {'data_entry': 'http://h-invitational.jp/hinv/spsoup/locus_view?hix_id=$id', 'example': 'HIX0004394', 'name': 'H-InvDb Locus', 'pattern': '^HIX\\d{7}(\\.\\d+)?$', 'url': 'http://identifiers.org/hinv.locus/'}, 'H-InvDb Protein': {'data_entry': 'http://h-invitational.jp/hinv/protein/protein_view.cgi?hip_id=$id', 'example': 'HIP000030660', 'name': 'H-InvDb Protein', 'pattern': '^HIP\\d{9}(\\.\\d+)?$', 'url': 'http://identifiers.org/hinv.protein/'}, 'H-InvDb Transcript': {'data_entry': 'http://h-invitational.jp/hinv/spsoup/transcript_view?hit_id=$id', 'example': 'HIT000195363', 'name': 'H-InvDb Transcript', 'pattern': '^HIT\\d{9}(\\.\\d+)?$', 'url': 'http://identifiers.org/hinv.transcript/'}, 'HAMAP': {'data_entry': 'http://hamap.expasy.org/unirule/$id', 'example': 'MF_01400', 'name': 'HAMAP', 'pattern': '^MF_\\d+$', 'url': 'http://identifiers.org/hamap/'}, 'HCVDB': {'data_entry': 'http://euhcvdb.ibcp.fr/euHCVdb/do/displayHCVEntry?primaryAC=$id', 'example': 'M58335', 'name': 'HCVDB', 'pattern': '^M\\d{5}$', 'url': 'http://identifiers.org/hcvdb/'}, 'HGMD': {'data_entry': 'http://www.hgmd.cf.ac.uk/ac/gene.php?gene=$id', 'example': 'CALM1', 'name': 'HGMD', 'pattern': '^[A-Z_0-9]+$" restricted="true', 'url': 'http://identifiers.org/hgmd/'}, 'HGNC': {'data_entry': 'http://www.genenames.org/data/hgnc_data.php?hgnc_id=$id', 'example': 'HGNC:2674', 'name': 'HGNC', 'pattern': '^(HGNC:)?\\d{1,5}$', 'url': 'http://identifiers.org/hgnc/'}, 'HGNC Symbol': {'data_entry': 'http://www.genenames.org/data/hgnc_data.php?match=$id', 'example': 'DAPK1', 'name': 'HGNC Symbol', 'pattern': '^[A-Za-z0-9]+" restricted="true', 'url': 'http://identifiers.org/hgnc.symbol/'}, 'HMDB': {'data_entry': 'http://www.hmdb.ca/metabolites/$id', 'example': 'HMDB00001', 'name': 'HMDB', 'pattern': '^HMDB\\d{5}$', 'url': 'http://identifiers.org/hmdb/'}, 'HOGENOM': {'data_entry': 'http://pbil.univ-lyon1.fr/cgi-bin/view-tree.pl?db=HOGENOM5&amp;query=$id', 'example': 'HBG284870', 'name': 'HOGENOM', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/hogenom/'}, 'HOMD Sequence Metainformation': {'data_entry': 'http://www.homd.org/modules.php?op=modload&amp;name=GenomeList&amp;file=index&amp;link=detailinfo&amp;seqid=$id', 'example': 'SEQF1003', 'name': 'HOMD Sequence Metainformation', 'pattern': '^SEQF\\d+$', 'url': 'http://identifiers.org/homd.seq/'}, 'HOMD Taxonomy': {'data_entry': 'http://www.homd.org/modules.php?op=modload&amp;name=HOMD&amp;file=index&amp;oraltaxonid=$id&amp;view=dynamic', 'example': '811', 'name': 'HOMD Taxonomy', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/homd.taxon/'}, 'HOVERGEN': {'data_entry': 'http://pbil.univ-lyon1.fr/cgi-bin/view-tree.pl?query=$id&amp;db=HOVERGEN', 'example': 'HBG004341', 'name': 'HOVERGEN', 'pattern': '^HBG\\d+$', 'url': 'http://identifiers.org/hovergen/'}, 'HPA': {'data_entry': 'http://www.proteinatlas.org/$id', 'example': 'ENSG00000026508', 'name': 'HPA', 'pattern': '^ENSG\\d{11}$" restricted="true', 'url': 'http://identifiers.org/hpa/'}, 'HPRD': {'data_entry': 'http://www.hprd.org/protein/$id', 'example': '00001', 'name': 'HPRD', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/hprd/'}, 'HSSP': {'data_entry': 'ftp://ftp.embl-heidelberg.de/pub/databases/protein_extras/hssp/$id.hssp.bz2', 'example': '102l', 'name': 'HSSP', 'pattern': '^\\w{4}$', 'url': 'http://identifiers.org/hssp/'}, 'HUGE': {'data_entry': 'http://www.kazusa.or.jp/huge/gfpage/$id/', 'example': 'KIAA0001', 'name': 'HUGE', 'pattern': '^KIAA\\d{4}$" restricted="true', 'url': 'http://identifiers.org/huge/'}, 'HomoloGene': {'data_entry': 'http://www.ncbi.nlm.nih.gov/homologene/$id', 'example': '1000', 'name': 'HomoloGene', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/homologene/'}, 'Human Disease Ontology': {'data_entry': 'http://bioportal.bioontology.org/ontologies/1009/?p=terms&amp;conceptid=$id', 'example': 'DOID:11337', 'name': 'Human Disease Ontology', 'pattern': '^DOID\\:\\d+$', 'url': 'http://identifiers.org/obo.do/'}, 'ICD': {'data_entry': 'http://apps.who.int/classifications/icd10/browse/2010/en#/$id', 'example': 'C34', 'name': 'ICD', 'pattern': '^[A-Z]\\d+(\\.[-\\d+])?$', 'url': 'http://identifiers.org/icd/'}, 'IDEAL': {'data_entry': 'http://idp1.force.cs.is.nagoya-u.ac.jp/IDEAL/idealItem.php?id=$id', 'example': 'IID00001', 'name': 'IDEAL', 'pattern': '^IID\\d+$', 'url': 'http://identifiers.org/ideal/'}, 'IMEx': {'data_entry': 'http://www.ebi.ac.uk/intact/imex/main.xhtml?query=$id', 'example': 'IM-12080-80', 'name': 'IMEx', 'pattern': '^IM-\\d+(-?)(\\d+?)$', 'url': 'http://identifiers.org/imex/'}, 'IMGT HLA': {'data_entry': 'http://www.ebi.ac.uk/cgi-bin/imgt/hla/get_allele.cgi?$id', 'example': 'A*01:01:01:01', 'name': 'IMGT HLA', 'pattern': '^[A-Z0-9*:]+$', 'url': 'http://identifiers.org/imgt.hla/'}, 'IMGT LIGM': {'data_entry': 'http://srs.ebi.ac.uk/srsbin/cgi-bin/wgetz?-id+1fmSL1g8Xvs+-e+[IMGTLIGM:&apos;$id&apos;]', 'example': 'M94112', 'name': 'IMGT LIGM', 'pattern': '^M\\d+$" restricted="true', 'url': 'http://identifiers.org/imgt.ligm/'}, 'IPI': {'data_entry': 'http://www.ebi.ac.uk/Tools/dbfetch/dbfetch?db=ipi&amp;id=$id&amp;format=default&amp;style=html', 'example': 'IPI00000001', 'name': 'IPI', 'pattern': '^IPI\\d{8}$', 'url': 'http://identifiers.org/ipi/'}, 'IRD Segment Sequence': {'data_entry': 'http://www.fludb.org/brc/fluSegmentDetails.do?ncbiGenomicAccession=$id', 'example': 'CY077097', 'name': 'IRD Segment Sequence', 'pattern': '^\\w+(\\_)?\\d+(\\.\\d+)?$', 'url': 'http://identifiers.org/ird.segment/'}, 'ISBN': {'data_entry': 'http://isbndb.com/search-all.html?kw=$id', 'example': '9781584885658', 'name': 'ISBN', 'pattern': '^(ISBN)?(-13|-10)?[:]?[ ]?(\\d{2,3}[ -]?)?\\d{1,5}[ -]?\\d{1,7}[ -]?\\d{1,6}[ -]?(\\d|X)$', 'url': 'http://identifiers.org/isbn/'}, 'ISFinder': {'data_entry': 'http://www-is.biotoul.fr/index.html?is_special_name=$id', 'example': 'ISA1083-2', 'name': 'ISFinder', 'pattern': '^IS\\w+(\\-\\d)?$', 'url': 'http://identifiers.org/isfinder/'}, 'ISSN': {'data_entry': 'http://catalog.loc.gov/cgi-bin/Pwebrecon.cgi?Search_Arg=0745-4570$id&amp;PID=le0kCQllk84KcxI3gMhUTowLMnn9H', 'example': '0745-4570', 'name': 'ISSN', 'pattern': '^\\d{4}\\-\\d{4}$" restricted="true', 'url': 'http://identifiers.org/issn/'}, 'IUPHAR family': {'data_entry': 'http://www.iuphar-db.org/DATABASE/FamilyMenuForward?familyId=$id', 'example': '78', 'name': 'IUPHAR family', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/iuphar.family/'}, 'IUPHAR receptor': {'data_entry': 'http://www.iuphar-db.org/DATABASE/ObjectDisplayForward?objectId=$id', 'example': '101', 'name': 'IUPHAR receptor', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/iuphar.receptor/'}, 'InChI': {'data_entry': 'http://rdf.openmolecules.net/?$id', 'example': 'InChI=1S/C2H6O/c1-2-3/h3H,2H2,1H3', 'name': 'InChI', 'pattern': '^InChI\\=1S\\/[A-Za-z0-9]+(\\/[cnpqbtmsih][A-Za-z0-9\\-\\+\\(\\)\\,]+)+$" restricted="true', 'url': 'http://identifiers.org/inchi/'}, 'InChIKey': {'data_entry': 'http://www.chemspider.com/inchi-resolver/Resolver.aspx?q=$id', 'example': 'RYYVLZVUVIJVGH-UHFFFAOYSA-N', 'name': 'InChIKey', 'pattern': '^[A-Z]{14}\\-[A-Z]{10}(\\-[A-N])?" restricted="true', 'url': 'http://identifiers.org/inchikey/'}, 'IntAct': {'data_entry': 'http://www.ebi.ac.uk/intact/pages/details/details.xhtml?interactionAc=$id', 'example': 'EBI-2307691', 'name': 'IntAct', 'pattern': '^EBI\\-[0-9]+$', 'url': 'http://identifiers.org/intact/'}, 'Integrated Microbial Genomes Gene': {'data_entry': 'http://img.jgi.doe.gov/cgi-bin/w/main.cgi?section=GeneDetail&amp;gene_oid=$id', 'example': '638309541', 'name': 'Integrated Microbial Genomes Gene', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/img.gene/'}, 'Integrated Microbial Genomes Taxon': {'data_entry': 'http://img.jgi.doe.gov/cgi-bin/w/main.cgi?section=TaxonDetail&amp;taxon_oid=$id', 'example': '648028003', 'name': 'Integrated Microbial Genomes Taxon', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/img.taxon/'}, 'InterPro': {'data_entry': 'http://www.ebi.ac.uk/interpro/DisplayIproEntry?ac=$id', 'example': 'IPR000100', 'name': 'InterPro', 'pattern': '^IPR\\d{6}$', 'url': 'http://identifiers.org/interpro/'}, 'JAX Mice': {'data_entry': 'http://jaxmice.jax.org/strain/$id.html', 'example': '005012', 'name': 'JAX Mice', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/jaxmice/'}, 'JWS Online': {'data_entry': 'http://jjj.biochem.sun.ac.za/cgi-bin/processModelSelection.py?keytype=modelname&amp;keyword=$id', 'example': 'curien', 'name': 'JWS Online', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/jws/'}, 'Japan Chemical Substance Dictionary': {'data_entry': 'http://nikkajiweb.jst.go.jp/nikkaji_web/pages/top_e.jsp?CONTENT=syosai&amp;SN=$id', 'example': 'J55.713G', 'name': 'Japan Chemical Substance Dictionary', 'pattern': '^J\\d{1,3}(\\.\\d{3})?(\\.\\d{1,3})?[A-Za-z]$', 'url': 'http://identifiers.org/jcsd/'}, 'Japan Collection of Microorganisms': {'data_entry': 'http://www.jcm.riken.go.jp/cgi-bin/jcm/jcm_number?JCM=$id', 'example': '17254', 'name': 'Japan Collection of Microorganisms', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/jcm/'}, 'KEGG Compound': {'data_entry': 'http://www.genome.jp/dbget-bin/www_bget?cpd:$id', 'example': 'C12345', 'name': 'KEGG Compound', 'pattern': '^C\\d+$', 'url': 'http://identifiers.org/kegg.compound/'}, 'KEGG Drug': {'data_entry': 'http://www.genome.jp/dbget-bin/www_bget?dr:$id', 'example': 'D00123', 'name': 'KEGG Drug', 'pattern': '^D\\d+$', 'url': 'http://identifiers.org/kegg.drug/'}, 'KEGG Environ': {'data_entry': 'http://www.genome.jp/dbget-bin/www_bget?$id', 'example': 'ev:E00032', 'name': 'KEGG Environ', 'pattern': '^ev\\:E\\d+$', 'url': 'http://identifiers.org/kegg.environ/'}, 'KEGG Genes': {'data_entry': 'http://www.genome.jp/dbget-bin/www_bget?$id', 'example': 'syn:ssr3451', 'name': 'KEGG Genes', 'pattern': '^\\w+:[\\w\\d\\.-]*$', 'url': 'http://identifiers.org/kegg.genes/'}, 'KEGG Genome': {'data_entry': 'http://www.genome.jp/kegg-bin/show_organism?org=$id', 'example': 'eco', 'name': 'KEGG Genome', 'pattern': '^(T0\\d+|\\w{3,5})$', 'url': 'http://identifiers.org/kegg.genome/'}, 'KEGG Glycan': {'data_entry': 'http://www.genome.jp/dbget-bin/www_bget?gl:$id', 'example': 'G00123', 'name': 'KEGG Glycan', 'pattern': '^G\\d+$', 'url': 'http://identifiers.org/kegg.glycan/'}, 'KEGG Metagenome': {'data_entry': 'http://www.genome.jp/kegg-bin/show_organism?org=$id', 'example': 'T30002', 'name': 'KEGG Metagenome', 'pattern': '^T3\\d+$', 'url': 'http://identifiers.org/kegg.metagenome/'}, 'KEGG Orthology': {'data_entry': 'http://www.genome.jp/dbget-bin/www_bget?ko+$id', 'example': 'K00001', 'name': 'KEGG Orthology', 'pattern': '^K\\d+$', 'url': 'http://identifiers.org/kegg.orthology/'}, 'KEGG Pathway': {'data_entry': 'http://www.genome.jp/dbget-bin/www_bget?pathway+$id', 'example': 'hsa00620', 'name': 'KEGG Pathway', 'pattern': '^\\w{2,4}\\d{5}$', 'url': 'http://identifiers.org/kegg.pathway/'}, 'KEGG Reaction': {'data_entry': 'http://www.genome.jp/dbget-bin/www_bget?rn:$id', 'example': 'R00100', 'name': 'KEGG Reaction', 'pattern': '^R\\d+$', 'url': 'http://identifiers.org/kegg.reaction/'}, 'KiSAO': {'data_entry': 'http://bioportal.bioontology.org/ontologies/1410?p=terms&amp;conceptid=kisao:$id', 'example': 'KISAO_0000057', 'name': 'KiSAO', 'pattern': '^KISAO_\\d+$', 'url': 'http://identifiers.org/biomodels.kisao/'}, 'KnapSack': {'data_entry': 'http://kanaya.naist.jp/knapsack_jsp/information.jsp?word=$id', 'example': 'C00000001', 'name': 'KnapSack', 'pattern': '^C\\d{8}', 'url': 'http://identifiers.org/knapsack/'}, 'LIPID MAPS': {'data_entry': 'http://www.lipidmaps.org/data/get_lm_lipids_dbgif.php?LM_ID=$id', 'example': 'LMPR0102010012', 'name': 'LIPID MAPS', 'pattern': '^LM(FA|GL|GP|SP|ST|PR|SL|PK)[0-9]{4}([0-9a-zA-Z]{4,6})?$', 'url': 'http://identifiers.org/lipidmaps/'}, 'Ligand Expo': {'data_entry': 'http://ligand-depot.rutgers.edu/pyapps/ldHandler.py?formid=cc-index-search&amp;target=$id&amp;operation=ccid', 'example': 'ABC', 'name': 'Ligand Expo', 'pattern': '^(\\w){3}$', 'url': 'http://identifiers.org/ligandexpo/'}, 'Ligand-Gated Ion Channel database': {'data_entry': 'http://www.ebi.ac.uk/compneur-srv/LGICdb/HTML/$id.php', 'example': '5HT3Arano', 'name': 'Ligand-Gated Ion Channel database', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/lgic/'}, 'LipidBank': {'data_entry': 'http://lipidbank.jp/cgi-bin/detail.cgi?id=$id', 'example': 'BBA0001', 'name': 'LipidBank', 'pattern': '^\\w+\\d+$', 'url': 'http://identifiers.org/lipidbank/'}, 'Locus Reference Genomic': {'data_entry': 'ftp://ftp.ebi.ac.uk/pub/databases/lrgex/$id.xml', 'example': 'LRG_1', 'name': 'Locus Reference Genomic', 'pattern': '^LRG_\\d+$', 'url': 'http://identifiers.org/lrg/'}, 'MACiE': {'data_entry': 'http://www.ebi.ac.uk/thornton-srv/databases/cgi-bin/MACiE/entry/getPage.pl?id=$id', 'example': 'M0001', 'name': 'MACiE', 'pattern': '^M\\d{4}$', 'url': 'http://identifiers.org/macie/'}, 'MEROPS': {'data_entry': 'http://merops.sanger.ac.uk/cgi-bin/pepsum?mid=$id', 'example': 'S01.001', 'name': 'MEROPS', 'pattern': '^S\\d{2}\\.\\d{3}$', 'url': 'http://identifiers.org/merops/'}, 'MEROPS Family': {'data_entry': 'http://merops.sanger.ac.uk/cgi-bin/famsum?family=$id', 'example': 'S1', 'name': 'MEROPS Family', 'pattern': '^\\w+\\d+$', 'url': 'http://identifiers.org/merops.family/'}, 'METLIN': {'data_entry': 'http://metlin.scripps.edu/metabo_info.php?molid=$id', 'example': '1455', 'name': 'METLIN', 'pattern': '^\\d{4}$" restricted="true', 'url': 'http://identifiers.org/metlin/'}, 'MGED Ontology': {'data_entry': 'http://purl.bioontology.org/ontology/MO/$id', 'example': 'ArrayGroup', 'name': 'MGED Ontology', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/mo/'}, 'MINT': {'data_entry': 'http://mint.bio.uniroma2.it/mint/search/inFrameInteraction.do?interactionAc=$id', 'example': 'MINT-10000', 'name': 'MINT', 'pattern': '^MINT\\-\\d{1,5}$', 'url': 'http://identifiers.org/mint/'}, 'MIPModDB': {'data_entry': 'http://bioinfo.iitk.ac.in/MIPModDB/result.php?code=$id', 'example': 'HOSAPI0399', 'name': 'MIPModDB', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/mipmod/'}, 'MIRIAM Registry collection': {'data_entry': 'http://www.ebi.ac.uk/miriam/main/$id', 'example': 'MIR:00000008', 'name': 'MIRIAM Registry collection', 'pattern': '^MIR:000\\d{5}$', 'url': 'http://identifiers.org/miriam.collection/'}, 'MIRIAM Registry resource': {'data_entry': 'http://www.ebi.ac.uk/miriam/main/resources/$id', 'example': 'MIR:00100005', 'name': 'MIRIAM Registry resource', 'pattern': '^MIR:001\\d{5}$', 'url': 'http://identifiers.org/miriam.resource/'}, 'MMRRC': {'data_entry': 'http://www.mmrrc.org/catalog/getSDS.php?mmrrc_id=$id', 'example': '70', 'name': 'MMRRC', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/mmrrc/'}, 'MaizeGDB Locus': {'data_entry': 'http://www.maizegdb.org/cgi-bin/displaylocusrecord.cgi?id=$id', 'example': '25011', 'name': 'MaizeGDB Locus', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/maizegdb.locus/'}, 'MassBank': {'data_entry': 'http://msbi.ipb-halle.de/MassBank/jsp/Dispatcher.jsp?type=disp&amp;id=$id', 'example': 'PB000166', 'name': 'MassBank', 'pattern': '^[A-Z]{2}[A-Z0-9][0-9]{5}$" restricted="true', 'url': 'http://identifiers.org/massbank/'}, 'MatrixDB': {'data_entry': 'http://matrixdb.ibcp.fr/cgi-bin/model/report/default?name=$id&amp;class=Association', 'example': 'P00747_P07355', 'name': 'MatrixDB', 'pattern': '^([A-N,R-Z][0-9][A-Z][A-Z, 0-9][A-Z, 0-9][0-9])_.*|([O,P,Q][0-9][A-Z, 0-9][A-Z, 0-9][A-Z, 0-9][0-9]_.*)|(GAG_.*)|(MULT_.*)|(PFRAG_.*)|(LIP_.*)|(CAT_.*)$', 'url': 'http://identifiers.org/matrixdb.association/'}, 'MeSH': {'data_entry': 'http://www.nlm.nih.gov/cgi/mesh/2012/MB_cgi?mode=&amp;index=$id&amp;view=expanded', 'example': '17186', 'name': 'MeSH', 'pattern': '^[A-Za-z0-9]+$" restricted="true', 'url': 'http://identifiers.org/mesh/'}, 'Melanoma Molecular Map Project Biomaps': {'data_entry': 'http://www.mmmp.org/MMMP/public/biomap/viewBiomap.mmmp?id=$id', 'example': '37', 'name': 'Melanoma Molecular Map Project Biomaps', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/biomaps/'}, 'MetaboLights': {'data_entry': 'http://www.ebi.ac.uk/metabolights/$id', 'example': 'MTBLS1', 'name': 'MetaboLights', 'pattern': '^MTBLS\\d+$', 'url': 'http://identifiers.org/metabolights/'}, 'Microbial Protein Interaction Database': {'data_entry': 'http://www.jcvi.org/mpidb/experiment.php?interaction_id=$id', 'example': '172', 'name': 'Microbial Protein Interaction Database', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/mpid/'}, 'MicrosporidiaDB': {'data_entry': 'http://microsporidiadb.org/micro/showRecord.do?name=GeneRecordClasses.GeneRecordClass&amp;source_id=$id', 'example': 'ECU03_0820i', 'name': 'MicrosporidiaDB', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/microsporidia/'}, 'MimoDB': {'data_entry': 'http://immunet.cn/mimodb/browse.php?table=mimoset&amp;ID=$id', 'example': '1', 'name': 'MimoDB', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/mimodb/'}, 'ModelDB': {'data_entry': 'http://senselab.med.yale.edu/ModelDB/ShowModel.asp?model=$id', 'example': '45539', 'name': 'ModelDB', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/modeldb/'}, 'Molecular Interactions Ontology': {'data_entry': 'http://www.ebi.ac.uk/ontology-lookup/?termId=$id', 'example': 'MI:0308', 'name': 'Molecular Interactions Ontology', 'pattern': '^MI:\\d{4}$', 'url': 'http://identifiers.org/obo.mi/'}, 'Molecular Modeling Database': {'data_entry': 'http://www.ncbi.nlm.nih.gov/Structure/mmdb/mmdbsrv.cgi?uid=$id', 'example': '50885', 'name': 'Molecular Modeling Database', 'pattern': '^\\d{1,5}$', 'url': 'http://identifiers.org/mmdb/'}, 'Mouse Genome Database': {'data_entry': 'http://www.informatics.jax.org/marker/$id', 'example': 'MGI:2442292', 'name': 'Mouse Genome Database', 'pattern': '^MGI:\\d+$', 'url': 'http://identifiers.org/mgd/'}, 'MycoBank': {'data_entry': 'http://www.mycobank.org/Biolomics.aspx?Table=Mycobank&amp;MycoBankNr_=$id', 'example': '349124', 'name': 'MycoBank', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/mycobank/'}, 'MycoBrowser leprae': {'data_entry': 'http://mycobrowser.epfl.ch/leprosysearch.php?gene+name=$id', 'example': 'ML0224', 'name': 'MycoBrowser leprae', 'pattern': '^ML\\w+$', 'url': 'http://identifiers.org/myco.lepra/'}, 'MycoBrowser marinum': {'data_entry': 'http://mycobrowser.epfl.ch/marinosearch.php?gene+name=$id', 'example': 'MMAR_2462', 'name': 'MycoBrowser marinum', 'pattern': '^MMAR\\_\\d+$', 'url': 'http://identifiers.org/myco.marinum/'}, 'MycoBrowser smegmatis': {'data_entry': 'http://mycobrowser.epfl.ch/smegmasearch.php?gene+name=$id', 'example': 'MSMEG_3769', 'name': 'MycoBrowser smegmatis', 'pattern': '^MSMEG\\w+$', 'url': 'http://identifiers.org/myco.smeg/'}, 'MycoBrowser tuberculosis': {'data_entry': 'http://tuberculist.epfl.ch/quicksearch.php?gene+name=$id', 'example': 'Rv1908c', 'name': 'MycoBrowser tuberculosis', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/myco.tuber/'}, 'NAPP': {'data_entry': 'http://napp.u-psud.fr/Niveau2.php?specie=$id', 'example': '351', 'name': 'NAPP', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/napp/'}, 'NARCIS': {'data_entry': 'http://www.narcis.nl/publication/RecordID/$id', 'example': 'oai:cwi.nl:4725', 'name': 'NARCIS', 'pattern': '^oai\\:cwi\\.nl\\:\\d+$', 'url': 'http://identifiers.org/narcis/'}, 'NASC code': {'data_entry': 'http://arabidopsis.info/StockInfo?NASC_id=$id', 'example': 'N1899', 'name': 'NASC code', 'pattern': '^(\\w+)?\\d+$', 'url': 'http://identifiers.org/nasc/'}, 'NCBI Gene': {'data_entry': 'http://www.ncbi.nlm.nih.gov/gene/$id', 'example': '100010', 'name': 'NCBI Gene', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/ncbigene/'}, 'NCBI Protein': {'data_entry': 'http://www.ncbi.nlm.nih.gov/protein/$id', 'example': 'CAA71118.1', 'name': 'NCBI Protein', 'pattern': '^\\w+\\d+(\\.\\d+)?$" restricted="true', 'url': 'http://identifiers.org/ncbiprotein/'}, 'NCI Pathway Interaction Database: Pathway': {'data_entry': 'http://pid.nci.nih.gov/search/pathway_landing.shtml?what=graphic&amp;jpg=on&amp;pathway_id=$id', 'example': 'pi3kcipathway', 'name': 'NCI Pathway Interaction Database: Pathway', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/pid.pathway/'}, 'NCIm': {'data_entry': 'http://ncim.nci.nih.gov/ncimbrowser/ConceptReport.jsp?dictionary=NCI%20MetaThesaurus&amp;code=$id', 'example': 'C0026339', 'name': 'NCIm', 'pattern': '^C\\d+$" restricted="true', 'url': 'http://identifiers.org/ncim/'}, 'NCIt': {'data_entry': 'http://ncit.nci.nih.gov/ncitbrowser/ConceptReport.jsp?dictionary=NCI%20Thesaurus&amp;code=$id', 'example': 'C80519', 'name': 'NCIt', 'pattern': '^C\\d+$', 'url': 'http://identifiers.org/ncit/'}, 'NEXTDB': {'data_entry': 'http://nematode.lab.nig.ac.jp/db2/ShowCloneInfo.php?clone=$id', 'example': '6b1', 'name': 'NEXTDB', 'pattern': '^[A-Za-z0-9]+$" restricted="true', 'url': 'http://identifiers.org/nextdb/'}, 'NIAEST': {'data_entry': 'http://lgsun.grc.nia.nih.gov/cgi-bin/pro3?sname1=$id', 'example': 'J0705A10', 'name': 'NIAEST', 'pattern': '^\\w\\d{4}\\w\\d{2}(\\-[35])?$', 'url': 'http://identifiers.org/niaest/'}, 'NITE Biological Research Center Catalogue': {'data_entry': 'http://www.nbrc.nite.go.jp/NBRC2/NBRCCatalogueDetailServlet?ID=NBRC&amp;CAT=$id', 'example': '00001234', 'name': 'NITE Biological Research Center Catalogue', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/nbrc/'}, 'NONCODE': {'data_entry': 'http://www.noncode.org/NONCODERv3/ncrna.php?ncid=$id', 'example': '377550', 'name': 'NONCODE', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/noncode/'}, 'National Bibliography Number': {'data_entry': 'http://nbn-resolving.org/resolver?identifier=$id&amp;verb=full', 'example': 'urn:nbn:fi:tkk-004781', 'name': 'National Bibliography Number', 'pattern': '^urn\\:nbn\\:[A-Za-z_0-9]+\\:([A-Za-z_0-9]+\\:)?[A-Za-z_0-9]+$', 'url': 'http://identifiers.org/nbn/'}, 'NeuroLex': {'data_entry': 'http://www.neurolex.org/wiki/$id', 'example': 'Birnlex_721', 'name': 'NeuroLex', 'pattern': '^([Bb]irnlex_|Sao|nlx_|GO_|CogPO|HDO)\\d+$', 'url': 'http://identifiers.org/neurolex/'}, 'NeuroMorpho': {'data_entry': 'http://neuromorpho.org/neuroMorpho/neuron_info.jsp?neuron_name=$id', 'example': 'Rosa2', 'name': 'NeuroMorpho', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/neuromorpho/'}, 'NeuronDB': {'data_entry': 'http://senselab.med.yale.edu/NeuronDB/NeuronProp.aspx?id=$id', 'example': '265', 'name': 'NeuronDB', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/neurondb/'}, 'NucleaRDB': {'data_entry': 'http://www.receptors.org/nucleardb/proteins/$id', 'example': 'prgr_human', 'name': 'NucleaRDB', 'pattern': '^\\w+\\_\\w+$', 'url': 'http://identifiers.org/nuclearbd/'}, 'Nucleotide Sequence Database': {'data_entry': 'http://srs.ebi.ac.uk/srsbin/cgi-bin/wgetz?-page+EntryPage+-e+[EMBL:$id]+-view+EmblEntry', 'example': 'X58356', 'name': 'Nucleotide Sequence Database', 'pattern': '^[A-Z]+\\d+(\\.\\d+)?$', 'url': 'http://identifiers.org/insdc/'}, 'OMA Group': {'data_entry': 'http://omabrowser.org/cgi-bin/gateway.pl?f=DisplayGroup&amp;p1=$id', 'example': 'LCSCCPN', 'name': 'OMA Group', 'pattern': '^[A-Z]+$" restricted="true', 'url': 'http://identifiers.org/oma.grp/'}, 'OMA Protein': {'data_entry': 'http://omabrowser.org/cgi-bin/gateway.pl?f=DisplayEntry&amp;p1=$id', 'example': 'HUMAN16963', 'name': 'OMA Protein', 'pattern': '^[A-Z0-9]{5}\\d+$" restricted="true', 'url': 'http://identifiers.org/oma.protein/'}, 'OMIA': {'data_entry': 'http://omia.angis.org.au/$id/', 'example': '1000', 'name': 'OMIA', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/omia/'}, 'OMIM': {'data_entry': 'http://omim.org/entry/$id', 'example': '603903', 'name': 'OMIM', 'pattern': '^[*#+%^]?\\d{6}$', 'url': 'http://identifiers.org/omim/'}, 'OPM': {'data_entry': 'http://opm.phar.umich.edu/protein.php?pdbid=$id', 'example': '1h68', 'name': 'OPM', 'pattern': '^[0-9][A-Za-z0-9]{3}$" restricted="true', 'url': 'http://identifiers.org/opm/'}, 'ORCID': {'data_entry': 'https://orcid.org/$id', 'example': '0000-0002-6309-7327', 'name': 'ORCID', 'pattern': '^\\d{4}-\\d{4}-\\d{4}-\\d{4}$', 'url': 'http://identifiers.org/orcid/'}, 'Ontology for Biomedical Investigations': {'data_entry': 'http://purl.obolibrary.org/obo/$id', 'example': 'OBI_0000070', 'name': 'Ontology for Biomedical Investigations', 'pattern': '^OBI_\\d{7}$', 'url': 'http://identifiers.org/obo.obi/'}, 'Ontology of Physics for Biology': {'data_entry': 'http://bioportal.bioontology.org/ontologies/1141?p=terms&amp;conceptid=$id', 'example': 'OPB_00573', 'name': 'Ontology of Physics for Biology', 'pattern': '^OPB_\\d+$', 'url': 'http://identifiers.org/opb/'}, 'OriDB Saccharomyces': {'data_entry': 'http://cerevisiae.oridb.org/details.php?id=$id', 'example': '1', 'name': 'OriDB Saccharomyces', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/oridb.sacch/'}, 'OriDB Schizosaccharomyces': {'data_entry': 'http://pombe.oridb.org/details.php?id=$id', 'example': '1', 'name': 'OriDB Schizosaccharomyces', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/oridb.schizo/'}, 'Orphanet': {'data_entry': 'http://www.orpha.net/consor/cgi-bin/OC_Exp.php?Lng=EN&amp;Expert=$id', 'example': '85163', 'name': 'Orphanet', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/orphanet/'}, 'OrthoDB': {'data_entry': 'http://cegg.unige.ch/orthodb/results?searchtext=$id', 'example': 'Q9P0K8', 'name': 'OrthoDB', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/orthodb/'}, 'PANTHER Family': {'data_entry': 'http://www.pantherdb.org/panther/family.do?clsAccession=$id', 'example': 'PTHR12345', 'name': 'PANTHER Family', 'pattern': '^PTHR\\d{5}(\\:SF\\d{1,3})?$', 'url': 'http://identifiers.org/panther.family/'}, 'PANTHER Node': {'data_entry': 'http://www.pantree.org/node/annotationNode.jsp?id=$id', 'example': 'PTN000000026', 'name': 'PANTHER Node', 'pattern': '^PTN\\d{9}$', 'url': 'http://identifiers.org/panther.node/'}, 'PANTHER Pathway': {'data_entry': 'http://www.pantherdb.org/pathway/pathwayDiagram.jsp?catAccession=$id', 'example': 'P00024', 'name': 'PANTHER Pathway', 'pattern': '^P\\d{5}$', 'url': 'http://identifiers.org/panther.pathway/'}, 'PATO': {'data_entry': 'http://www.ebi.ac.uk/ontology-lookup/?termId=$id', 'example': 'PATO:0001998', 'name': 'PATO', 'pattern': '^PATO:\\d{7}$', 'url': 'http://identifiers.org/obo.pato/'}, 'PINA': {'data_entry': 'http://cbg.garvan.unsw.edu.au/pina/interactome.oneP.do?ac=$id&amp;showExtend=null', 'example': 'Q13485', 'name': 'PINA', 'pattern': '^([A-N,R-Z][0-9][A-Z][A-Z, 0-9][A-Z, 0-9][0-9])|([O,P,Q][0-9][A-Z, 0-9][A-Z, 0-9][A-Z, 0-9][0-9])$" restricted="true', 'url': 'http://identifiers.org/pina/'}, 'PIRSF': {'data_entry': 'http://pir.georgetown.edu/cgi-bin/ipcSF?id=$id', 'example': 'PIRSF000100', 'name': 'PIRSF', 'pattern': '^PIRSF\\d{6}$', 'url': 'http://identifiers.org/pirsf/'}, 'PMP': {'data_entry': 'http://www.proteinmodelportal.org/query/uniprot/$id', 'example': 'Q0VCA6', 'name': 'PMP', 'pattern': '^([A-N,R-Z][0-9][A-Z][A-Z, 0-9][A-Z, 0-9][0-9])|([O,P,Q][0-9][A-Z, 0-9][A-Z, 0-9][A-Z, 0-9][0-9])$', 'url': 'http://identifiers.org/pmp/'}, 'PRIDE': {'data_entry': 'http://www.ebi.ac.uk/pride/experimentLink.do?experimentAccessionNumber=$id', 'example': '1', 'name': 'PRIDE', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/pride/'}, 'PROSITE': {'data_entry': 'http://prosite.expasy.org/$id', 'example': 'PS00001', 'name': 'PROSITE', 'pattern': '^PS\\d{5}$', 'url': 'http://identifiers.org/prosite/'}, 'PSCDB': {'data_entry': 'http://idp1.force.cs.is.nagoya-u.ac.jp/pscdb/$id.html', 'example': '051', 'name': 'PSCDB', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/pscdb/'}, 'PaleoDB': {'data_entry': 'http://paleodb.org/cgi-bin/bridge.pl?a=basicTaxonInfo&amp;taxon_no=$id', 'example': '83088', 'name': 'PaleoDB', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/paleodb/'}, 'Pathway Commons': {'data_entry': 'http://www.pathwaycommons.org/pc/record2.do?id=$id', 'example': '485991', 'name': 'Pathway Commons', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/pathwaycommons/'}, 'Pathway Ontology': {'data_entry': 'http://rgd.mcw.edu/rgdweb/ontology/annot.html?acc_id=$id', 'example': 'PW:0000208', 'name': 'Pathway Ontology', 'pattern': '^PW:\\d{7}$', 'url': 'http://identifiers.org/obo.pw/'}, 'Pazar Transcription Factor': {'data_entry': 'http://www.pazar.info/cgi-bin/tf_search.cgi?geneID=$id', 'example': 'TF0001053', 'name': 'Pazar Transcription Factor', 'pattern': '^TF\\w+$', 'url': 'http://identifiers.org/pazar/'}, 'PeptideAtlas': {'data_entry': 'https://db.systemsbiology.net/sbeams/cgi/PeptideAtlas/Summarize_Peptide?query=QUERY&amp;searchForThis=$id', 'example': 'PAp00000009', 'name': 'PeptideAtlas', 'pattern': '^PAp[0-9]{8}$', 'url': 'http://identifiers.org/peptideatlas/'}, 'Peroxibase': {'data_entry': 'http://peroxibase.toulouse.inra.fr/browse/process/view_perox.php?id=$id', 'example': '5282', 'name': 'Peroxibase', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/peroxibase/'}, 'Pfam': {'data_entry': 'http://pfam.sanger.ac.uk/family/$id/', 'example': 'PF01234', 'name': 'Pfam', 'pattern': '^PF\\d{5}$', 'url': 'http://identifiers.org/pfam/'}, 'PharmGKB Disease': {'data_entry': 'http://www.pharmgkb.org/disease/$id', 'example': 'PA447218', 'name': 'PharmGKB Disease', 'pattern': '^PA\\d+$" restricted="true', 'url': 'http://identifiers.org/pharmgkb.disease/'}, 'PharmGKB Drug': {'data_entry': 'http://www.pharmgkb.org/drug/$id', 'example': 'PA448710', 'name': 'PharmGKB Drug', 'pattern': '^PA\\d+$" restricted="true', 'url': 'http://identifiers.org/pharmgkb.drug/'}, 'PharmGKB Gene': {'data_entry': 'http://www.pharmgkb.org/gene/$id', 'example': 'PA131', 'name': 'PharmGKB Gene', 'pattern': '^PA\\w+$" restricted="true', 'url': 'http://identifiers.org/pharmgkb.gene/'}, 'PharmGKB Pathways': {'data_entry': 'http://www.pharmgkb.org/pathway/$id', 'example': 'PA146123006', 'name': 'PharmGKB Pathways', 'pattern': '^PA\\d+$" restricted="true', 'url': 'http://identifiers.org/pharmgkb.pathways/'}, 'Phenol-Explorer': {'data_entry': 'http://www.phenol-explorer.eu/contents/total?food_id=$id', 'example': '75', 'name': 'Phenol-Explorer', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/phenolexplorer/'}, 'PhosphoPoint Kinase': {'data_entry': 'http://kinase.bioinformatics.tw/showall.jsp?type=Kinase&amp;info=Gene&amp;name=$id&amp;drawing=0&amp;sorting=0&amp;kinome=1', 'example': 'AURKA', 'name': 'PhosphoPoint Kinase', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/phosphopoint.kinase/'}, 'PhosphoPoint Phosphoprotein': {'data_entry': 'http://kinase.bioinformatics.tw/showall.jsp?type=PhosphoProtein&amp;info=Gene&amp;name=$id&amp;drawing=0&amp;sorting=0&amp;kinome=0', 'example': 'AURKA', 'name': 'PhosphoPoint Phosphoprotein', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/phosphopoint.protein/'}, 'PhosphoSite Protein': {'data_entry': 'http://www.phosphosite.org/proteinAction.do?id=$id', 'example': '12300', 'name': 'PhosphoSite Protein', 'pattern': '^\\d{5}$', 'url': 'http://identifiers.org/phosphosite.protein/'}, 'PhosphoSite Residue': {'data_entry': 'http://www.phosphosite.org/siteAction.do?id=$id', 'example': '2842', 'name': 'PhosphoSite Residue', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/phosphosite.residue/'}, 'PhylomeDB': {'data_entry': 'http://phylomedb.org/?seqid=$id', 'example': 'Phy000CLXM_RAT', 'name': 'PhylomeDB', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/phylomedb/'}, 'PiroplasmaDB': {'data_entry': 'http://piroplasmadb.org/piro/showRecord.do?name=GeneRecordClasses.GeneRecordClass&amp;source_id=$id', 'example': 'TA14985', 'name': 'PiroplasmaDB', 'pattern': '^TA\\d+$', 'url': 'http://identifiers.org/piroplasma/'}, 'Plant Genome Network': {'data_entry': 'http://pgn.cornell.edu/unigene/unigene_assembly_contigs.pl?unigene_id=$id', 'example': '196828', 'name': 'Plant Genome Network', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/pgn/'}, 'Plant Ontology': {'data_entry': 'http://www.plantontology.org/amigo/go.cgi?view=details&amp;amp;query=$id', 'example': 'PO:0009089', 'name': 'Plant Ontology', 'pattern': '^PO\\:\\d+$', 'url': 'http://identifiers.org/obo.po/'}, 'PlasmoDB': {'data_entry': 'http://plasmodb.org/plasmo/showRecord.do?name=GeneRecordClasses.GeneRecordClass&amp;source_id=$id', 'example': 'PF11_0344', 'name': 'PlasmoDB', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/plasmodb/'}, 'Pocketome': {'data_entry': 'http://www.pocketome.org/files/$id.html', 'example': '1433C_TOBAC_1_252', 'name': 'Pocketome', 'pattern': '^[A-Za-z_0-9]+', 'url': 'http://identifiers.org/pocketome/'}, 'PolBase': {'data_entry': 'http://polbase.neb.com/polymerases/$id#sequences', 'example': '19-T4', 'name': 'PolBase', 'pattern': '^[A-Za-z-0-9]+$', 'url': 'http://identifiers.org/polbase/'}, 'PomBase': {'data_entry': 'http://www.pombase.org/spombe/result/$id', 'example': 'SPCC13B11.01', 'name': 'PomBase', 'pattern': '^S\\w+(\\.)?\\w+(\\.)?$', 'url': 'http://identifiers.org/pombase/'}, 'ProDom': {'data_entry': 'http://prodom.prabi.fr/prodom/current/cgi-bin/request.pl?question=DBEN&amp;query=$id', 'example': 'PD10000', 'name': 'ProDom', 'pattern': '^PD\\d+$', 'url': 'http://identifiers.org/prodom/'}, 'ProGlycProt': {'data_entry': 'http://www.proglycprot.org/detail.aspx?ProId=$id', 'example': 'AC119', 'name': 'ProGlycProt', 'pattern': '^[A-Z]C\\d{1,3}$', 'url': 'http://identifiers.org/proglyc/'}, 'ProtClustDB': {'data_entry': 'http://www.ncbi.nlm.nih.gov/sites/entrez?Db=proteinclusters&amp;Cmd=DetailsSearch&amp;Term=$id', 'example': 'O80725', 'name': 'ProtClustDB', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/protclustdb/'}, 'Protein Data Bank': {'data_entry': 'http://www.rcsb.org/pdb/explore/explore.do?structureId=$id', 'example': '2gc4', 'name': 'Protein Data Bank', 'pattern': '^[0-9][A-Za-z0-9]{3}$', 'url': 'http://identifiers.org/pdb/'}, 'Protein Model Database': {'data_entry': 'http://mi.caspur.it/PMDB/user/search.php?idsearch=$id', 'example': 'PM0012345', 'name': 'Protein Model Database', 'pattern': '^PM\\d{7}', 'url': 'http://identifiers.org/pmdb/'}, 'Protein Modification Ontology': {'data_entry': 'http://www.ebi.ac.uk/ontology-lookup/?termId=$id', 'example': 'MOD:00001', 'name': 'Protein Modification Ontology', 'pattern': '^MOD:\\d{5}', 'url': 'http://identifiers.org/obo.psi-mod/'}, 'Protein Ontology': {'data_entry': 'http://pir.georgetown.edu/cgi-bin/pro/entry_pro?id=$id', 'example': 'PR:000000024', 'name': 'Protein Ontology', 'pattern': '^PR\\:\\d+$', 'url': 'http://identifiers.org/obo.pr/'}, 'ProtoNet Cluster': {'data_entry': 'http://www.protonet.cs.huji.ac.il/requested/cluster_card.php?cluster=$id', 'example': '4349895', 'name': 'ProtoNet Cluster', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/protonet.cluster/'}, 'ProtoNet ProteinCard': {'data_entry': 'http://www.protonet.cs.huji.ac.il/requested/protein_card.php?protein_id=$id', 'example': '16941567', 'name': 'ProtoNet ProteinCard', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/protonet.proteincard/'}, 'Pseudomonas Genome Database': {'data_entry': 'http://www.pseudomonas.com/getAnnotation.do?locusID=$id', 'example': 'PSEEN0001', 'name': 'Pseudomonas Genome Database', 'pattern': '^P\\w+$', 'url': 'http://identifiers.org/pseudomonas/'}, 'PubChem-bioassay': {'data_entry': 'http://pubchem.ncbi.nlm.nih.gov/assay/assay.cgi?aid=$id', 'example': '1018', 'name': 'PubChem-bioassay', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/pubchem.bioassay/'}, 'PubChem-compound': {'data_entry': 'http://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid=$id', 'example': '100101', 'name': 'PubChem-compound', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/pubchem.compound/'}, 'PubChem-substance': {'data_entry': 'http://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?sid=$id', 'example': '100101', 'name': 'PubChem-substance', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/pubchem.substance/'}, 'PubMed': {'data_entry': 'http://www.ncbi.nlm.nih.gov/pubmed/$id', 'example': '16333295', 'name': 'PubMed', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/pubmed/'}, 'PubMed Central': {'data_entry': 'http://www.ncbi.nlm.nih.gov/pmc/articles/$id/?tool=pubmed', 'example': 'PMC3084216', 'name': 'PubMed Central', 'pattern': 'PMC\\d+', 'url': 'http://identifiers.org/pmc/'}, 'REBASE': {'data_entry': 'http://rebase.neb.com/rebase/enz/$id.html', 'example': '101', 'name': 'REBASE', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/rebase/'}, 'RESID': {'data_entry': 'http://srs.ebi.ac.uk/srsbin/cgi-bin/wgetz?-id+6JSUg1NA6u4+-e+[RESID:&apos;$id&apos;]', 'example': 'AA0001', 'name': 'RESID', 'pattern': '^AA\\d{4}$', 'url': 'http://identifiers.org/resid/'}, 'RFAM': {'data_entry': 'http://rfam.sanger.ac.uk/family/$id', 'example': 'RF00230', 'name': 'RFAM', 'pattern': '^RF\\d+$', 'url': 'http://identifiers.org/rfam/'}, 'RNA Modification Database': {'data_entry': 'http://s59.cas.albany.edu/RNAmods/cgi-bin/rnashow.cgi?$id', 'example': '101', 'name': 'RNA Modification Database', 'pattern': '^\\d{3}$', 'url': 'http://identifiers.org/rnamods/'}, 'Rat Genome Database': {'data_entry': 'http://rgd.mcw.edu/rgdweb/report/gene/main.html?id=$id', 'example': '2018', 'name': 'Rat Genome Database', 'pattern': '^\\d{4,7}$', 'url': 'http://identifiers.org/rgd/'}, 'Reactome': {'data_entry': 'http://www.reactome.org/cgi-bin/eventbrowser_st_id?FROM_REACTOME=1&amp;ST_ID=$id', 'example': 'REACT_1590', 'name': 'Reactome', 'pattern': '^REACT_\\d+(\\.\\d+)?$', 'url': 'http://identifiers.org/reactome/'}, 'RefSeq': {'data_entry': 'http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?val=$id', 'example': 'NP_012345', 'name': 'RefSeq', 'pattern': '^(NC|AC|NG|NT|NW|NZ|NM|NR|XM|XR|NP|AP|XP|ZP)_\\d+(\\.\\d+)?$', 'url': 'http://identifiers.org/refseq/'}, 'Relation Ontology': {'data_entry': 'http://www.obofoundry.org/ro/#$id', 'example': 'OBO_REL:is_a', 'name': 'Relation Ontology', 'pattern': '^OBO_REL:\\w+$', 'url': 'http://identifiers.org/obo.ro/'}, 'Rhea': {'data_entry': 'http://www.ebi.ac.uk/rhea/reaction.xhtml?id=$id', 'example': '12345', 'name': 'Rhea', 'pattern': '^\\d{5}$', 'url': 'http://identifiers.org/rhea/'}, 'Rice Genome Annotation Project': {'data_entry': 'http://rice.plantbiology.msu.edu/cgi-bin/ORF_infopage.cgi?&amp;orf=$id', 'example': 'LOC_Os02g13300', 'name': 'Rice Genome Annotation Project', 'pattern': '^LOC\\_Os\\d{1,2}g\\d{5}$', 'url': 'http://identifiers.org/ricegap/'}, 'Rouge': {'data_entry': 'http://www.kazusa.or.jp/rouge/gfpage/$id/', 'example': 'mKIAA4200', 'name': 'Rouge', 'pattern': '^m\\w+$" restricted="true', 'url': 'http://identifiers.org/rouge/'}, 'SABIO-RK EC Record': {'data_entry': 'http://sabiork.h-its.org/newSearch?q=ecnumber:$id', 'example': '2.7.1.1', 'name': 'SABIO-RK EC Record', 'pattern': '^((\\d+)|(\\d+\\.\\d+)|(\\d+\\.\\d+\\.\\d+)|(\\d+\\.\\d+\\.\\d+\\.\\d+))$', 'url': 'http://identifiers.org/sabiork.ec/'}, 'SABIO-RK Kinetic Record': {'data_entry': 'http://sabiork.h-its.org/newSearch?q=entryid:$id', 'example': '5046', 'name': 'SABIO-RK Kinetic Record', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/sabiork.kineticrecord/'}, 'SABIO-RK Reaction': {'data_entry': 'http://sabiork.h-its.org/newSearch?q=sabioreactionid:$id', 'example': '75', 'name': 'SABIO-RK Reaction', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/sabiork.reaction/'}, 'SCOP': {'data_entry': 'http://scop.mrc-lmb.cam.ac.uk/scop/search.cgi?sunid=$id', 'example': '47419', 'name': 'SCOP', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/scop/'}, 'SGD': {'data_entry': 'http://www.yeastgenome.org/cgi-bin/locus.fpl?dbid=$id', 'example': 'S000028457', 'name': 'SGD', 'pattern': '^S\\d+$', 'url': 'http://identifiers.org/sgd/'}, 'SMART': {'data_entry': 'http://smart.embl-heidelberg.de/smart/do_annotation.pl?DOMAIN=$id', 'example': 'SM00015', 'name': 'SMART', 'pattern': '^SM\\d{5}$', 'url': 'http://identifiers.org/smart/'}, 'SNOMED CT': {'data_entry': 'http://vtsl.vetmed.vt.edu/TerminologyMgt/Browser/ISA.cfm?SCT_ConceptID=$id', 'example': '284196006', 'name': 'SNOMED CT', 'pattern': '^(\\w+)?\\d+$" restricted="true', 'url': 'http://identifiers.org/snomedct/'}, 'SPIKE Map': {'data_entry': 'http://www.cs.tau.ac.il/~spike/maps/$id.html', 'example': 'spike00001', 'name': 'SPIKE Map', 'pattern': '^spike\\d{5}$', 'url': 'http://identifiers.org/spike.map/'}, 'SPRINT': {'data_entry': 'http://www.bioinf.manchester.ac.uk/cgi-bin/dbbrowser/sprint/searchprintss.cgi?prints_accn=$id&amp;display_opts=Prints&amp;category=None&amp;queryform=false&amp;regexpr=off', 'example': 'PR00001', 'name': 'SPRINT', 'pattern': '^PR\\d{5}$', 'url': 'http://identifiers.org/sprint/'}, 'STAP': {'data_entry': 'http://psb.kobic.re.kr/STAP/refinement/result.php?search=$id', 'example': '1a24', 'name': 'STAP', 'pattern': '^[0-9][A-Za-z0-9]{3}$', 'url': 'http://identifiers.org/stap/'}, 'STITCH': {'data_entry': 'http://stitch.embl.de/interactions/$id', 'example': 'ICXJVZHDZFXYQC', 'name': 'STITCH', 'pattern': '^\\w{14}$" restricted="true', 'url': 'http://identifiers.org/stitch/'}, 'STRING': {'data_entry': 'http://string.embl.de/interactions/$id', 'example': 'P53350', 'name': 'STRING', 'pattern': '^([A-N,R-Z][0-9][A-Z][A-Z, 0-9][A-Z, 0-9][0-9])|([O,P,Q][0-9][A-Z, 0-9][A-Z, 0-9][A-Z, 0-9][0-9])|([0-9][A-Za-z0-9]{3})$" restricted="true', 'url': 'http://identifiers.org/string/'}, 'SUPFAM': {'data_entry': 'http://supfam.org/SUPERFAMILY/cgi-bin/scop.cgi?ipid=$id', 'example': 'SSF57615', 'name': 'SUPFAM', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/supfam/'}, 'SWISS-MODEL': {'data_entry': 'http://swissmodel.expasy.org/repository/smr.php?sptr_ac=$id', 'example': 'P23298', 'name': 'SWISS-MODEL', 'pattern': '^\\w+$" restricted="true', 'url': 'http://identifiers.org/swiss-model/'}, 'Saccharomyces genome database pathways': {'data_entry': 'http://pathway.yeastgenome.org/YEAST/new-image?type=PATHWAY&amp;object=$id', 'example': 'PWY3O-214', 'name': 'Saccharomyces genome database pathways', 'pattern': '^PWY\\w{2}\\-\\d{3}$', 'url': 'http://identifiers.org/sgd.pathways/'}, 'ScerTF': {'data_entry': 'http://stormo.wustl.edu/ScerTF/details/$id/', 'example': 'RSC3', 'name': 'ScerTF', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/scretf/'}, 'Science Signaling Pathway': {'data_entry': 'http://stke.sciencemag.org/cgi/cm/stkecm;$id', 'example': 'CMP_18019', 'name': 'Science Signaling Pathway', 'pattern': '^CMP_\\d+$" restricted="true', 'url': 'http://identifiers.org/sciencesignaling.path/'}, 'Science Signaling Pathway-Dependent Component': {'data_entry': 'http://stke.sciencemag.org/cgi/cm/stkecm;$id', 'example': 'CMN_15494', 'name': 'Science Signaling Pathway-Dependent Component', 'pattern': '^CMN_\\d+$" restricted="true', 'url': 'http://identifiers.org/sciencesignaling.pdc/'}, 'Science Signaling Pathway-Independent Component': {'data_entry': 'http://stke.sciencemag.org/cgi/cm/stkecm;$id', 'example': 'CMC_15493', 'name': 'Science Signaling Pathway-Independent Component', 'pattern': '^CMC_\\d+$" restricted="true', 'url': 'http://identifiers.org/sciencesignaling.pic/'}, 'Sequence Ontology': {'data_entry': 'http://www.sequenceontology.org/miso/current_release/term/$id', 'example': 'SO:0000704', 'name': 'Sequence Ontology', 'pattern': '^SO:\\d{7}$', 'url': 'http://identifiers.org/obo.so/'}, 'Sequence Read Archive': {'data_entry': 'http://www.ncbi.nlm.nih.gov/sra/$id?&amp;report=full', 'example': 'SRX000007', 'name': 'Sequence Read Archive', 'pattern': '^[SED]R\\w\\d{6}', 'url': 'http://identifiers.org/insdc.sra/'}, 'Signaling Gateway': {'data_entry': 'http://www.signaling-gateway.org/molecule/query?afcsid=$id', 'example': 'A001094', 'name': 'Signaling Gateway', 'pattern': 'A\\d{6}$', 'url': 'http://identifiers.org/signaling-gateway/'}, 'SitEx': {'data_entry': 'http://www-bionet.sscc.ru/sitex/index.php?siteid=$id', 'example': '1000', 'name': 'SitEx', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/sitex/'}, 'Small Molecule Pathway Database': {'data_entry': 'http://pathman.smpdb.ca/pathways/$id/pathway', 'example': 'SMP00001', 'name': 'Small Molecule Pathway Database', 'pattern': '^SMP\\d{5}$', 'url': 'http://identifiers.org/smpdb/'}, 'Sol Genomics Network': {'data_entry': 'http://solgenomics.net/phenome/locus_display.pl?locus_id=$id', 'example': '0001', 'name': 'Sol Genomics Network', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/sgn/'}, 'SoyBase': {'data_entry': 'http://soybeanbreederstoolbox.org/search/search_results.php?category=SNP&amp;search_term=$id', 'example': 'BARC-013845-01256', 'name': 'SoyBase', 'pattern': '^\\w+(\\-)?\\w+(\\-)?\\w+$', 'url': 'http://identifiers.org/soybase/'}, 'Spectral Database for Organic Compounds': {'data_entry': 'http://riodb01.ibase.aist.go.jp/sdbs/cgi-bin/cre_frame_disp.cgi?sdbsno=$id', 'example': '4544', 'name': 'Spectral Database for Organic Compounds', 'pattern': '\\d+$" restricted="true', 'url': 'http://identifiers.org/sdbs/'}, 'SubstrateDB': {'data_entry': 'http://substrate.burnham.org/protein/annotation/$id/html', 'example': '1915', 'name': 'SubstrateDB', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/pmap.substratedb/'}, 'SubtiWiki': {'data_entry': 'http://www.subtiwiki.uni-goettingen.de/wiki/index.php/$id', 'example': 'BSU29180', 'name': 'SubtiWiki', 'pattern': '^BSU\\d{5}$', 'url': 'http://identifiers.org/subtiwiki/'}, 'Systems Biology Ontology': {'data_entry': 'http://www.ebi.ac.uk/sbo/main/$id', 'example': 'SBO:0000262', 'name': 'Systems Biology Ontology', 'pattern': '^SBO:\\d{7}$', 'url': 'http://identifiers.org/biomodels.sbo/'}, 'T3DB': {'data_entry': 'http://www.t3db.org/toxins/$id', 'example': 'T3D0001', 'name': 'T3DB', 'pattern': '^T3D\\d+$', 'url': 'http://identifiers.org/t3db/'}, 'TAIR Gene': {'data_entry': 'http://arabidopsis.org/servlets/TairObject?accession=$id', 'example': 'Gene:2200934', 'name': 'TAIR Gene', 'pattern': '^Gene:\\d{7}$', 'url': 'http://identifiers.org/tair.gene/'}, 'TAIR Locus': {'data_entry': 'http://arabidopsis.org/servlets/TairObject?type=locus&amp;name=$id', 'example': 'AT1G01030', 'name': 'TAIR Locus', 'pattern': '^AT[1-5]G\\d{5}$', 'url': 'http://identifiers.org/tair.locus/'}, 'TAIR Protein': {'data_entry': 'http://arabidopsis.org/servlets/TairObject?accession=$id', 'example': 'AASequence:1009107926', 'name': 'TAIR Protein', 'pattern': '^AASequence:\\d{10}$', 'url': 'http://identifiers.org/tair.protein/'}, 'TEDDY': {'data_entry': 'http://bioportal.bioontology.org/ontologies/1407?p=terms&amp;conceptid=$id', 'example': 'TEDDY_0000066', 'name': 'TEDDY', 'pattern': '^TEDDY_\\d{7}$', 'url': 'http://identifiers.org/biomodels.teddy/'}, 'TIGRFAMS': {'data_entry': 'http://www.jcvi.org/cgi-bin/tigrfams/HmmReportPage.cgi?acc=$id', 'example': 'TIGR00010', 'name': 'TIGRFAMS', 'pattern': '^TIGR\\d+$', 'url': 'http://identifiers.org/tigrfam/'}, 'TTD Drug': {'data_entry': 'http://bidd.nus.edu.sg/group/cjttd/ZFTTDDRUG.asp?ID=$id', 'example': 'DAP000773', 'name': 'TTD Drug', 'pattern': '^DAP\\d+$', 'url': 'http://identifiers.org/ttd.drug/'}, 'TTD Target': {'data_entry': 'http://bidd.nus.edu.sg/group/cjttd/ZFTTDDetail.asp?ID=$id', 'example': 'TTDS00056', 'name': 'TTD Target', 'pattern': '^TTDS\\d+$', 'url': 'http://identifiers.org/ttd.target/'}, 'TarBase': {'data_entry': 'http://diana.cslab.ece.ntua.gr/DianaToolsNew/index.php?r=tarbase/index&amp;mirnas=$id', 'example': 'hsa-let-7', 'name': 'TarBase', 'pattern': '^\\w+\\-\\w+\\-\\w+', 'url': 'http://identifiers.org/tarbase/'}, 'Taxonomy': {'data_entry': 'http://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=Info&amp;id=$id', 'example': '9606', 'name': 'Taxonomy', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/taxonomy/'}, 'Tetrahymena Genome Database': {'data_entry': 'http://ciliate.org/index.php/feature/details/$id', 'example': 'TTHERM_00648910', 'name': 'Tetrahymena Genome Database', 'pattern': '^TTHERM\\_\\d+$', 'url': 'http://identifiers.org/tgd/'}, 'Tissue List': {'data_entry': 'http://www.uniprot.org/tissues/$id', 'example': 'TS-0285', 'name': 'Tissue List', 'pattern': '^TS-\\d{4}$', 'url': 'http://identifiers.org/tissuelist/'}, 'TopFind': {'data_entry': 'http://clipserve.clip.ubc.ca/topfind/proteins/$id', 'example': 'Q9UKQ2', 'name': 'TopFind', 'pattern': '^([A-N,R-Z][0-9][A-Z][A-Z, 0-9][A-Z, 0-9][0-9])|([O,P,Q][0-9][A-Z, 0-9][A-Z, 0-9][A-Z, 0-9][0-9])$', 'url': 'http://identifiers.org/topfind/'}, 'ToxoDB': {'data_entry': 'http://toxodb.org/toxo/showRecord.do?name=GeneRecordClasses.GeneRecordClass&amp;source_id=$id', 'example': 'TGME49_053730', 'name': 'ToxoDB', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/toxoplasma/'}, 'Transport Classification Database': {'data_entry': 'http://www.tcdb.org/search/result.php?tc=$id', 'example': '5.A.1.1.1', 'name': 'Transport Classification Database', 'pattern': '^\\d+\\.[A-Z]\\.\\d+\\.\\d+\\.\\d+$', 'url': 'http://identifiers.org/tcdb/'}, 'Tree of Life': {'data_entry': 'http://tolweb.org/$id', 'example': '98034', 'name': 'Tree of Life', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/tol/'}, 'TreeBASE': {'data_entry': 'http://purl.org/phylo/treebase/phylows/study/$id?format=html', 'example': 'TB2:S1000', 'name': 'TreeBASE', 'pattern': '^TB[1,2]?:[A-Z][a-z]?\\d+$', 'url': 'http://identifiers.org/treebase/'}, 'TreeFam': {'data_entry': 'http://www.treefam.org/cgi-bin/TFinfo.pl?ac=$id', 'example': 'TF101014', 'name': 'TreeFam', 'pattern': '^\\w{1,2}\\d+$', 'url': 'http://identifiers.org/treefam/'}, 'TriTrypDB': {'data_entry': 'http://tritrypdb.org/tritrypdb/showRecord.do?name=GeneRecordClasses.GeneRecordClass&amp;source_id=$id', 'example': 'Tb927.8.620', 'name': 'TriTrypDB', 'pattern': '^\\w+(\\.)?\\w+(\\.)?\\w+', 'url': 'http://identifiers.org/tritrypdb/'}, 'TrichDB': {'data_entry': 'http://trichdb.org/trichdb/showRecord.do?name=GeneRecordClasses.GeneRecordClass&amp;source_id=$id', 'example': 'TVAG_386080', 'name': 'TrichDB', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/trichdb/'}, 'UM-BBD Biotransformation Rule': {'data_entry': 'http://www.umbbd.ethz.ch/servlets/rule.jsp?rule=$id', 'example': 'bt0001', 'name': 'UM-BBD Biotransformation Rule', 'pattern': '^bt\\d+$', 'url': 'http://identifiers.org/umbbd.rule/'}, 'UM-BBD Compound': {'data_entry': 'http://umbbd.ethz.ch/servlets/pageservlet?ptype=c&amp;compID=$id', 'example': 'c0001', 'name': 'UM-BBD Compound', 'pattern': '^c\\d+$', 'url': 'http://identifiers.org/umbbd.compound/'}, 'UM-BBD Enzyme': {'data_entry': 'http://umbbd.ethz.ch/servlets/pageservlet?ptype=ep&amp;enzymeID=$id', 'example': 'e0333', 'name': 'UM-BBD Enzyme', 'pattern': '^e\\d+$', 'url': 'http://identifiers.org/umbbd.enzyme/'}, 'UM-BBD Pathway': {'data_entry': 'http://umbbd.ethz.ch/servlets/pageservlet?ptype=p&amp;pathway_abbr=$id', 'example': 'ala', 'name': 'UM-BBD Pathway', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/umbbd.pathway/'}, 'UM-BBD Reaction': {'data_entry': 'http://umbbd.ethz.ch/servlets/pageservlet?ptype=r&amp;reacID=$id', 'example': 'r0001', 'name': 'UM-BBD Reaction', 'pattern': '^r\\d+$', 'url': 'http://identifiers.org/umbbd.reaction/'}, 'UniGene': {'data_entry': 'http://www.ncbi.nlm.nih.gov/unigene?term=$id', 'example': '4900', 'name': 'UniGene', 'pattern': '^\\d+$" restricted="true', 'url': 'http://identifiers.org/unigene/'}, 'UniParc': {'data_entry': 'http://www.ebi.ac.uk/cgi-bin/dbfetch?db=uniparc&amp;id=$id', 'example': 'UPI000000000A', 'name': 'UniParc', 'pattern': '^UPI[A-F0-9]{10}$', 'url': 'http://identifiers.org/uniparc/'}, 'UniProt Isoform': {'data_entry': 'http://www.uniprot.org/uniprot/$id', 'example': 'Q5BJF6-3', 'name': 'UniProt Isoform', 'pattern': '^([A-N,R-Z][0-9][A-Z][A-Z, 0-9][A-Z, 0-9][0-9])|([O,P,Q][0-9][A-Z, 0-9][A-Z, 0-9][A-Z, 0-9][0-9])(\\-\\d+)$" restricted="true', 'url': 'http://identifiers.org/uniprot.isoform/'}, 'UniProt Knowledgebase': {'data_entry': 'http://www.uniprot.org/uniprot/$id', 'example': 'P62158', 'name': 'UniProt Knowledgebase', 'pattern': '^([A-N,R-Z][0-9][A-Z][A-Z, 0-9][A-Z, 0-9][0-9])|([O,P,Q][0-9][A-Z, 0-9][A-Z, 0-9][A-Z, 0-9][0-9])(\\.\\d+)?$', 'url': 'http://identifiers.org/uniprot/'}, 'UniSTS': {'data_entry': 'http://www.ncbi.nlm.nih.gov/genome/sts/sts.cgi?uid=$id', 'example': '456789', 'name': 'UniSTS', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/unists/'}, 'Unipathway': {'data_entry': 'http://www.grenoble.prabi.fr/obiwarehouse/unipathway/upa?upid=$id', 'example': 'UPA00206', 'name': 'Unipathway', 'pattern': '^UPA\\d{5}$', 'url': 'http://identifiers.org/unipathway/'}, 'Unit Ontology': {'data_entry': 'http://www.ebi.ac.uk/ontology-lookup/?termId=$id', 'example': 'UO:0000080', 'name': 'Unit Ontology', 'pattern': '^UO:\\d{7}?', 'url': 'http://identifiers.org/obo.unit/'}, 'Unite': {'data_entry': 'http://unite.ut.ee/bl_forw.php?nimi=$id', 'example': 'UDB000691', 'name': 'Unite', 'pattern': '^UDB\\d{6}$', 'url': 'http://identifiers.org/unite/'}, 'VIRsiRNA': {'data_entry': 'http://crdd.osdd.net/servers/virsirnadb/record.php?details=$id', 'example': 'virsi1909', 'name': 'VIRsiRNA', 'pattern': '^virsi\\d+$', 'url': 'http://identifiers.org/virsirna/'}, 'VariO': {'data_entry': 'http://www.variationontology.org/cgi-bin/amivario/term-details.cgi?term=$id', 'example': 'VariO:0294', 'name': 'VariO', 'pattern': '^VariO:\\d+$', 'url': 'http://identifiers.org/vario/'}, 'Vbase2': {'data_entry': 'http://www.vbase2.org/vgene.php?id=$id', 'example': 'humIGHV025', 'name': 'Vbase2', 'pattern': '^\\w+$" restricted="true', 'url': 'http://identifiers.org/vbase2/'}, 'VectorBase': {'data_entry': 'http://classic.vectorbase.org/Search/Keyword/?offset=0&amp;term=$id&amp;domain=genome&amp;category=all_organisms', 'example': 'ISCW007415', 'name': 'VectorBase', 'pattern': '^\\D{4}\\d{6}(\\-\\D{2})?$', 'url': 'http://identifiers.org/vectorbase/'}, 'ViPR Strain': {'data_entry': 'http://www.viprbrc.org/brc/viprStrainDetails.do?strainName=$id&amp;decorator=arena', 'example': 'BeAn 70563', 'name': 'ViPR Strain', 'pattern': '^[A-Za-z 0-9]+$', 'url': 'http://identifiers.org/vipr/'}, 'WikiPathways': {'data_entry': 'http://www.wikipathways.org/instance/$id', 'example': 'WP100', 'name': 'WikiPathways', 'pattern': 'WP\\d{1,5}(\\_r\\d+)?$', 'url': 'http://identifiers.org/wikipathways/'}, 'Wikipedia (En)': {'data_entry': 'http://en.wikipedia.org/wiki/$id', 'example': 'SM_UB-81', 'name': 'Wikipedia (En)', 'pattern': '^[A-Za-z0-9_]+$" restricted="true', 'url': 'http://identifiers.org/wikipedia.en/'}, 'Worfdb': {'data_entry': 'http://worfdb.dfci.harvard.edu/index.php?search_type=name&amp;page=showresultrc&amp;race_query=$id', 'example': 'T01B6.1', 'name': 'Worfdb', 'pattern': '^\\w+(\\.\\d+)?', 'url': 'http://identifiers.org/worfdb/'}, 'WormBase': {'data_entry': 'http://www.wormbase.org/db/gene/gene?name=$id;class=Gene', 'example': 'WBGene00000001', 'name': 'WormBase', 'pattern': '^WBGene\\d{8}$', 'url': 'http://identifiers.org/wormbase/'}, 'Wormpep': {'data_entry': 'http://www.wormbase.org/db/seq/protein?name=$id', 'example': 'CE28239', 'name': 'Wormpep', 'pattern': '^CE\\d{5}$', 'url': 'http://identifiers.org/wormpep/'}, 'Xenbase': {'data_entry': 'http://www.xenbase.org/gene/showgene.do?method=displayGeneSummary&amp;geneId=$id', 'example': '922462', 'name': 'Xenbase', 'pattern': '^(XB-GENE-)?\\d+$', 'url': 'http://identifiers.org/xenbase/'}, 'YeTFasCo': {'data_entry': 'http://yetfasco.ccbr.utoronto.ca/showPFM.php?mot=$id', 'example': 'YOR172W_571.0', 'name': 'YeTFasCo', 'pattern': '^\\w+\\_\\d+(\\.\\d+)?$', 'url': 'http://identifiers.org/yetfasco/'}, 'ZFIN Expression': {'data_entry': 'http://zfin.org/action/genotype/show_all_expression?genoID=$id', 'example': 'ZDB-GENO-980202-899', 'name': 'ZFIN Expression', 'pattern': '^ZDB\\-GEN0\\-\\d+\\-\\d+$', 'url': 'http://identifiers.org/zfin.expression/'}, 'ZFIN Gene': {'data_entry': 'http://zfin.org/action/marker/view/$id', 'example': 'ZDB-GENE-041118-11', 'name': 'ZFIN Gene', 'pattern': 'ZDB\\-GENE\\-\\d+\\-\\d+', 'url': 'http://identifiers.org/zfin/'}, 'ZFIN Phenotype': {'data_entry': 'http://zfin.org/action/genotype/show_all_phenotype?zdbID=$id', 'example': 'ZDB-GENO-980202-899', 'name': 'ZFIN Phenotype', 'pattern': '^ZDB\\-GEN0\\-\\d+\\-\\d+$', 'url': 'http://identifiers.org/zfin.phenotype/'}, 'arXiv': {'data_entry': 'http://arxiv.org/abs/$id', 'example': '0807.4956v1', 'name': 'arXiv', 'pattern': '^(\\w+(\\-\\w+)?(\\.\\w+)?/)?\\d{4,7}(\\.\\d{4}(v\\d+)?)?$', 'url': 'http://identifiers.org/arxiv/'}, 'dbEST': {'data_entry': 'http://www.ncbi.nlm.nih.gov/nucest/$id', 'example': 'BP100000', 'name': 'dbEST', 'pattern': '^BP\\d+(\\.\\d+)?$', 'url': 'http://identifiers.org/dbest/'}, 'dbProbe': {'data_entry': 'http://www.ncbi.nlm.nih.gov/projects/genome/probe/reports/probereport.cgi?uid=$id', 'example': '1000000', 'name': 'dbProbe', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/dbprobe/'}, 'dbSNP': {'data_entry': 'http://www.ncbi.nlm.nih.gov/projects/SNP/snp_ref.cgi?rs=$id', 'example': '121909098', 'name': 'dbSNP', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/dbsnp/'}, 'eggNOG': {'data_entry': 'http://eggnog.embl.de/version_3.0/cgi/search.py?search_term_0=$id', 'example': 'veNOG12876', 'name': 'eggNOG', 'pattern': '^\\w+$', 'url': 'http://identifiers.org/eggnog/'}, 'iRefWeb': {'data_entry': 'http://wodaklab.org/iRefWeb/interaction/show/$id', 'example': '617102', 'name': 'iRefWeb', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/irefweb/'}, 'miRBase Sequence': {'data_entry': 'http://www.mirbase.org/cgi-bin/mirna_entry.pl?acc=$id', 'example': 'MI0000001', 'name': 'miRBase Sequence', 'pattern': 'MI\\d{7}', 'url': 'http://identifiers.org/mirbase/'}, 'miRBase mature sequence': {'data_entry': 'http://www.mirbase.org/cgi-bin/mature.pl?mature_acc=$id', 'example': 'MIMAT0000001', 'name': 'miRBase mature sequence', 'pattern': 'MIMAT\\d{7}', 'url': 'http://identifiers.org/mirbase.mature/'}, 'miRNEST': {'data_entry': 'http://lemur.amu.edu.pl/share/php/mirnest/search.php?search_term=$id', 'example': 'MNEST029358', 'name': 'miRNEST', 'pattern': '^MNEST\\d+$', 'url': 'http://identifiers.org/mirnest/'}, 'mirEX': {'data_entry': 'http://comgen.pl/mirex/?page=results/record&amp;name=$id&amp;web_temp=1683440&amp;exref=pp2a&amp;limit=yes', 'example': '165a', 'name': 'mirEX', 'pattern': '^\\d+(\\w+)?$', 'url': 'http://identifiers.org/mirex/'}, 'nextProt': {'data_entry': 'http://www.nextprot.org/db/entry/$id', 'example': 'NX_O00165', 'name': 'nextProt', 'pattern': '^NX_\\w+', 'url': 'http://identifiers.org/nextprot/'}, 'uBio NameBank': {'data_entry': 'http://www.ubio.org/browser/details.php?namebankID=$id', 'example': '2555646', 'name': 'uBio NameBank', 'pattern': '^\\d+$', 'url': 'http://identifiers.org/ubio.namebank/'}}
''' The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143? ''' def largest_prime_factor(n): f = 2 while f**2 <= n: while n % f == 0: n //= f f += 1 return max(f-1, n) print(largest_prime_factor(600851475143))
""" The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143? """ def largest_prime_factor(n): f = 2 while f ** 2 <= n: while n % f == 0: n //= f f += 1 return max(f - 1, n) print(largest_prime_factor(600851475143))
def selectionSort(alist): for fillslot in range (len(alist)-1, 0, -1): positionofMax = 0; for location in range(1,fillslot+1): if alist[location] > alist[positionofMax]: positionofMax = location temp = alist[fillslot] alist[fillslot] = alist[positionofMax] alist[positionofMax] = temp a = [54,26,93,17,77,31,44,55,20] selectionSort(a) print (a)
def selection_sort(alist): for fillslot in range(len(alist) - 1, 0, -1): positionof_max = 0 for location in range(1, fillslot + 1): if alist[location] > alist[positionofMax]: positionof_max = location temp = alist[fillslot] alist[fillslot] = alist[positionofMax] alist[positionofMax] = temp a = [54, 26, 93, 17, 77, 31, 44, 55, 20] selection_sort(a) print(a)
#!/usr/bin/env python a = 1000000000 for i in xrange(1000000): a += 1e-6 a -= 1000000000 print(a)
a = 1000000000 for i in xrange(1000000): a += 1e-06 a -= 1000000000 print(a)
# -*- coding: utf-8 -*- """Top-level package for Creating the Docs.""" __author__ = """Barry J. Whiteside""" __email__ = '[email protected]' __version__ = '0.1.0'
"""Top-level package for Creating the Docs.""" __author__ = 'Barry J. Whiteside' __email__ = '[email protected]' __version__ = '0.1.0'
class EnviadorDeSpam(): def __init__(self, sessao, enviador): self.sessao = sessao self.enviador = enviador def enviar_emails(self, remetente, assunto, corpo): for usuario in self.sessao.listar(): self.enviador.enviar( remetente, usuario.email, assunto, corpo )
class Enviadordespam: def __init__(self, sessao, enviador): self.sessao = sessao self.enviador = enviador def enviar_emails(self, remetente, assunto, corpo): for usuario in self.sessao.listar(): self.enviador.enviar(remetente, usuario.email, assunto, corpo)
"""A helper class for pygame colors.""" WHITE = (255, 255, 255) BLACK = (0, 0, 0) GRAY = (80, 80, 80) RED = (255, 0, 0) GREEN = (0, 255, 0) BLUE = (0, 0, 255) YELLOW = (255, 255, 0) ORANGE = (255, 165, 0)
"""A helper class for pygame colors.""" white = (255, 255, 255) black = (0, 0, 0) gray = (80, 80, 80) red = (255, 0, 0) green = (0, 255, 0) blue = (0, 0, 255) yellow = (255, 255, 0) orange = (255, 165, 0)
class DDAE_Hyperparams: drop_rate = 0.5 n_units = 1024 activation = 'lrelu' final_act = 'linear' f_bin = 257 class CBHG_Hyperparams: #### Modules #### drop_rate = 0.0 normalization_mode = 'layer_norm' activation = 'lrelu' final_act = 'linear' f_bin = 257 ## CBHG encoder banks_filter = 64 n_banks = 8 n_resblocks = 3 resblocks_filter = 512 down_sample = [512] n_highway = 4 gru_size = 256 class UNET_Hyperparams: drop_rate = 0.0 normalization_mode = 'batch_norm' activation = 'lrelu' final_act = 'linear' f_bin = 257 enc_layers = [32,64,64,128,128,256,256,512,512,1024] dec_layers = [1024,512,512,256,256,128,128,64,64,32] class Hyperparams: is_variable_length = False #### Signal Processing #### n_fft = 512 hop_length = 256 n_mels = 80 # Number of Mel banks to generate f_bin = n_fft//2 + 1 ppg_dim = 96 feature_type = 'logmag' # logmag lps nfeature_mode = 'None' # mean_std minmax cfeature_mode = 'None' # mean_std minmax # num_layers = [1024,512,256,128,256,512] # bigCNN num_layers = [2048,1024,512,256,128,256,512] # bigCNN2 normalization_mode = 'None' activation = 'lrelu' final_act = 'relu' n_units = 1024 pretrain = True pretrain_path = "/mnt/Data/user_vol_2/user_neillu/DNS_Challenge_timit/models/20200516_timit_broad_confusion_triphone_newts/model-1000000" SAVEITER = 20000 # is_trimming = True # sr = 16000 # Sample rate. # n_fft = 1024 # fft points (samples) # frame_shift = 0.0125 # seconds # frame_length = 0.05 # seconds # hop_length = int(sr*frame_shift) # samples. # win_length = int(sr*frame_length) # samples. # power = 1.2 # Exponent for amplifying the predicted magnitude # n_iter = 200 # Number of inversion iterations # preemphasis = .97 # or None max_db = 100 ref_db = 20
class Ddae_Hyperparams: drop_rate = 0.5 n_units = 1024 activation = 'lrelu' final_act = 'linear' f_bin = 257 class Cbhg_Hyperparams: drop_rate = 0.0 normalization_mode = 'layer_norm' activation = 'lrelu' final_act = 'linear' f_bin = 257 banks_filter = 64 n_banks = 8 n_resblocks = 3 resblocks_filter = 512 down_sample = [512] n_highway = 4 gru_size = 256 class Unet_Hyperparams: drop_rate = 0.0 normalization_mode = 'batch_norm' activation = 'lrelu' final_act = 'linear' f_bin = 257 enc_layers = [32, 64, 64, 128, 128, 256, 256, 512, 512, 1024] dec_layers = [1024, 512, 512, 256, 256, 128, 128, 64, 64, 32] class Hyperparams: is_variable_length = False n_fft = 512 hop_length = 256 n_mels = 80 f_bin = n_fft // 2 + 1 ppg_dim = 96 feature_type = 'logmag' nfeature_mode = 'None' cfeature_mode = 'None' num_layers = [2048, 1024, 512, 256, 128, 256, 512] normalization_mode = 'None' activation = 'lrelu' final_act = 'relu' n_units = 1024 pretrain = True pretrain_path = '/mnt/Data/user_vol_2/user_neillu/DNS_Challenge_timit/models/20200516_timit_broad_confusion_triphone_newts/model-1000000' saveiter = 20000 max_db = 100 ref_db = 20
SIZE_BOARD = 10 # Tipo de navios na forma "tipo": tamanho TYPES_OF_SHIPS = { "1": 5, "2": 4, "3": 3, "4": 2 }
size_board = 10 types_of_ships = {'1': 5, '2': 4, '3': 3, '4': 2}
x = input("input a letter : ") if x == "a" or x == "i" or x == "u" or x == "e" or x == "o": print("This is a vowel!") elif x == "y": print("Sometimes y is a vowel and sometimes y is a consonant") else: print("This is a consonant!")
x = input('input a letter : ') if x == 'a' or x == 'i' or x == 'u' or (x == 'e') or (x == 'o'): print('This is a vowel!') elif x == 'y': print('Sometimes y is a vowel and sometimes y is a consonant') else: print('This is a consonant!')
class Solution: def findMaxConsecutiveOnes(self, nums: List[int]) -> int: max_count = 0 count = 0 for i in nums: if i == 1: count += 1 else: count = 0 max_count = max(max_count, count) return max_count
class Solution: def find_max_consecutive_ones(self, nums: List[int]) -> int: max_count = 0 count = 0 for i in nums: if i == 1: count += 1 else: count = 0 max_count = max(max_count, count) return max_count
# This file declares all the constants for used in this app MAIN_URL = 'https://api.github.com/repos/' ONE_DAY = 1
main_url = 'https://api.github.com/repos/' one_day = 1
# The guess API is already defined for you. # @param num, your guess # @return -1 if my number is lower, 1 if my number is higher, otherwise return 0 # def guess(num: int) -> int: class Solution: def guessNumber(self, n: int) -> int: l, h = 1, n while l <= h: m = l + (h - l) // 2 if guess(m) < 0: h = m - 1 elif guess(m) > 0: l = m + 1 else: return m return -1
class Solution: def guess_number(self, n: int) -> int: (l, h) = (1, n) while l <= h: m = l + (h - l) // 2 if guess(m) < 0: h = m - 1 elif guess(m) > 0: l = m + 1 else: return m return -1
def make_shirt(text, size = 'large'): print('You can buy a ' + size + ' size t-shirt with written ' + text + ' written on it.') make_shirt(text = 'yepa')
def make_shirt(text, size='large'): print('You can buy a ' + size + ' size t-shirt with written ' + text + ' written on it.') make_shirt(text='yepa')
########################################################### # This module is used to centralise messages # used by the self service bot. # ########################################################### class ErrorMessages: BOT_ABORT_ERROR = "Aborting Self Service Bot" BOT_INIT_ERROR = "ERROR reported during initialisation of SelfServiceBot" DYNAMODB_SCAN_ERROR = "ERROR reported by DynamoDB" GENERAL_ERROR = "The bot encountered an error." MISSING_PARAM_ERROR = "Required parameter not provided" MISSING_SKILLS_OBJ_ERROR = "Sills object not provided"
class Errormessages: bot_abort_error = 'Aborting Self Service Bot' bot_init_error = 'ERROR reported during initialisation of SelfServiceBot' dynamodb_scan_error = 'ERROR reported by DynamoDB' general_error = 'The bot encountered an error.' missing_param_error = 'Required parameter not provided' missing_skills_obj_error = 'Sills object not provided'
class Solution: def maxChunksToSorted(self, arr): intervals = {} for i in range(len(arr)): if i < arr[i]: minVal, maxVal = i, arr[i] else: minVal, maxVal = arr[i], i if minVal in intervals: if maxVal > intervals[ minVal ]: intervals[ minVal ] = maxVal else: intervals[ minVal ] = maxVal sortedKeys = sorted(intervals.keys()) if len(sortedKeys) == 1: return 1 else: bgnNum = sortedKeys[0] endNum = intervals[ sortedKeys[0] ] outCount = 0 for i in range(1, len(sortedKeys)): if endNum < sortedKeys[i]: endNum = intervals[ sortedKeys[i] ] outCount += 1 else: endNum = max(endNum, intervals[ sortedKeys[i] ]) outCount += 1 return outCount
class Solution: def max_chunks_to_sorted(self, arr): intervals = {} for i in range(len(arr)): if i < arr[i]: (min_val, max_val) = (i, arr[i]) else: (min_val, max_val) = (arr[i], i) if minVal in intervals: if maxVal > intervals[minVal]: intervals[minVal] = maxVal else: intervals[minVal] = maxVal sorted_keys = sorted(intervals.keys()) if len(sortedKeys) == 1: return 1 else: bgn_num = sortedKeys[0] end_num = intervals[sortedKeys[0]] out_count = 0 for i in range(1, len(sortedKeys)): if endNum < sortedKeys[i]: end_num = intervals[sortedKeys[i]] out_count += 1 else: end_num = max(endNum, intervals[sortedKeys[i]]) out_count += 1 return outCount
class Solution: def maxIncreaseKeepingSkyline(self, grid): """ :type grid: List[List[int]] :rtype: int """ r=len(grid) c=len(grid[0]) matrix=[[101 for j in range(c)] for i in range(r)] for i in range(r): m=max(grid[i]) for j in range(c): matrix[i][j]=min(m,matrix[i][j]) for j in range(c): m=0 for i in range(r): m=max(m,grid[i][j]) for i in range(r): matrix[i][j]=min(m,matrix[i][j]) s=0 for i in range(r): for j in range(c): s+=abs(matrix[i][j]-grid[i][j]) return s
class Solution: def max_increase_keeping_skyline(self, grid): """ :type grid: List[List[int]] :rtype: int """ r = len(grid) c = len(grid[0]) matrix = [[101 for j in range(c)] for i in range(r)] for i in range(r): m = max(grid[i]) for j in range(c): matrix[i][j] = min(m, matrix[i][j]) for j in range(c): m = 0 for i in range(r): m = max(m, grid[i][j]) for i in range(r): matrix[i][j] = min(m, matrix[i][j]) s = 0 for i in range(r): for j in range(c): s += abs(matrix[i][j] - grid[i][j]) return s
def bubble_sort(alist): for i in range(len(alist)-1, 0, -1): for j in range(i): if alist[j] > alist[j+1]: temp = alist[j] alist[j] = alist[j+1] alist[j+1] = temp return alist list_to_sort = [147, -16, 18, 91, 44, 1, 8, 54, 31, 18] bubble_sort(list_to_sort) print(list_to_sort)
def bubble_sort(alist): for i in range(len(alist) - 1, 0, -1): for j in range(i): if alist[j] > alist[j + 1]: temp = alist[j] alist[j] = alist[j + 1] alist[j + 1] = temp return alist list_to_sort = [147, -16, 18, 91, 44, 1, 8, 54, 31, 18] bubble_sort(list_to_sort) print(list_to_sort)
class MenuItem(): def __init__(self, itemID, itemName, itemPrice): self.itemID = itemID self.itemName = itemName self.itemPrice = itemPrice self.itemMods = list() def getItemID(self): return self.itemID def setItemID(self, itemID): self.itemID = self.itemID def getItemName(self): return self.itemName def setItemName(self, name): self.itemName = self.itemName def getItemPrice(self): return self.itemPrice def setItemPrice(self, itemPrice): self.itemPrice = itemPrice def getItemMods(self): return self.itemMods def setItemMods(self, index, val): self.itemMods[index] = val def __str__(self): return self.itemName
class Menuitem: def __init__(self, itemID, itemName, itemPrice): self.itemID = itemID self.itemName = itemName self.itemPrice = itemPrice self.itemMods = list() def get_item_id(self): return self.itemID def set_item_id(self, itemID): self.itemID = self.itemID def get_item_name(self): return self.itemName def set_item_name(self, name): self.itemName = self.itemName def get_item_price(self): return self.itemPrice def set_item_price(self, itemPrice): self.itemPrice = itemPrice def get_item_mods(self): return self.itemMods def set_item_mods(self, index, val): self.itemMods[index] = val def __str__(self): return self.itemName
def find_highest_number(numbers): highest_number = 0 for num in numbers: if num > highest_number: highest_number = num return highest_number
def find_highest_number(numbers): highest_number = 0 for num in numbers: if num > highest_number: highest_number = num return highest_number
# [17CE023] Bhishm Daslaniya ''' Algorithm! --> Build a list of tuples such that the string "aaabbc" can be squashed down to [("a", 3), ("b", 2), ("c", 1)] --> Add to answer all combinations of substrings from these tuples which would represent palindromes which have all same letters --> traverse this list to specifically find the second case mentioned in probelm ''' def substrCount(n, s): l = [] count = 0 current = None for i in range(n): if s[i] == current: count += 1 else: if current is not None: l.append((current, count)) current = s[i] count = 1 l.append((current, count)) # print(l) ans = 0 for i in l: ans += (i[1] * (i[1] + 1)) // 2 for i in range(1, len(l) - 1): if l[i - 1][0] == l[i + 1][0] and l[i][1] == 1: ans += min(l[i - 1][1], l[i + 1][1]) return ans if __name__ == '__main__': n = int(input()) s = input() result = substrCount(n,s) print(result)
""" Algorithm! --> Build a list of tuples such that the string "aaabbc" can be squashed down to [("a", 3), ("b", 2), ("c", 1)] --> Add to answer all combinations of substrings from these tuples which would represent palindromes which have all same letters --> traverse this list to specifically find the second case mentioned in probelm """ def substr_count(n, s): l = [] count = 0 current = None for i in range(n): if s[i] == current: count += 1 else: if current is not None: l.append((current, count)) current = s[i] count = 1 l.append((current, count)) ans = 0 for i in l: ans += i[1] * (i[1] + 1) // 2 for i in range(1, len(l) - 1): if l[i - 1][0] == l[i + 1][0] and l[i][1] == 1: ans += min(l[i - 1][1], l[i + 1][1]) return ans if __name__ == '__main__': n = int(input()) s = input() result = substr_count(n, s) print(result)
""" Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. For example: Given the below binary tree and sum = 22, 5 / \ 4 8 / / \ 11 13 4 / \ / \ 7 2 5 1 return [ [5,4,11,2], [5,8,4,5] ] """ # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def pathSum(self, root, psum): """ :type root: TreeNode :type sum: int :rtype: List[List[int]] """ if root is None: return [] self.solns = [] self.dfs(root, psum, []) return self.solns def dfs(self, root, psum, soln): if root.left is None and root.right is None: if psum == root.val: soln.append(root.val) self.solns.append(soln) if root.left: self.dfs(root.left, psum - root.val, soln + [root.val]) if root.right: self.dfs(root.right, psum - root.val, soln + [root.val])
""" Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. For example: Given the below binary tree and sum = 22, 5 / 4 8 / / 11 13 4 / \\ / 7 2 5 1 return [ [5,4,11,2], [5,8,4,5] ] """ class Solution(object): def path_sum(self, root, psum): """ :type root: TreeNode :type sum: int :rtype: List[List[int]] """ if root is None: return [] self.solns = [] self.dfs(root, psum, []) return self.solns def dfs(self, root, psum, soln): if root.left is None and root.right is None: if psum == root.val: soln.append(root.val) self.solns.append(soln) if root.left: self.dfs(root.left, psum - root.val, soln + [root.val]) if root.right: self.dfs(root.right, psum - root.val, soln + [root.val])
# Copyright 2019 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. config_type='sweetberry' revs = [5] inas = [ ('sweetberry', '0x40:3', 'pp975_io', 7.7, 0.100, 'j2', True), # R111 ('sweetberry', '0x40:1', 'pp850_prim_core', 7.7, 0.100, 'j2', True), # R164 ('sweetberry', '0x40:2', 'pp3300_dsw', 3.3, 0.010, 'j2', True), # R513 ('sweetberry', '0x40:0', 'pp3300_a', 7.7, 0.010, 'j2', True), # R144 ('sweetberry', '0x41:3', 'pp1800_a', 7.7, 0.100, 'j2', True), # R141 ('sweetberry', '0x41:1', 'pp1800_u', 7.7, 0.100, 'j2', True), # R161 ('sweetberry', '0x41:2', 'pp1200_vddq', 7.7, 0.100, 'j2', True), # R162 ('sweetberry', '0x41:0', 'pp1000_a', 7.7, 0.100, 'j2', True), # R163 ('sweetberry', '0x42:3', 'pp3300_dx_wlan', 3.3, 0.010, 'j2', True), # R645 ('sweetberry', '0x42:1', 'pp3300_dx_edp', 3.3, 0.010, 'j2', True), # F1 ('sweetberry', '0x42:2', 'vbat', 7.7, 0.010, 'j2', True), # R226 ('sweetberry', '0x42:0', 'ppvar_vcc', 1.0, 0.002, 'j4', True), # L13 ('sweetberry', '0x43:3', 'ppvar_sa', 1.0, 0.005, 'j4', True), # L12 ('sweetberry', '0x43:1', 'ppvar_gt', 1.0, 0.002, 'j4', True), # L31 ('sweetberry', '0x43:2', 'ppvar_bl', 7.7, 0.050, 'j2', True), # U89 ]
config_type = 'sweetberry' revs = [5] inas = [('sweetberry', '0x40:3', 'pp975_io', 7.7, 0.1, 'j2', True), ('sweetberry', '0x40:1', 'pp850_prim_core', 7.7, 0.1, 'j2', True), ('sweetberry', '0x40:2', 'pp3300_dsw', 3.3, 0.01, 'j2', True), ('sweetberry', '0x40:0', 'pp3300_a', 7.7, 0.01, 'j2', True), ('sweetberry', '0x41:3', 'pp1800_a', 7.7, 0.1, 'j2', True), ('sweetberry', '0x41:1', 'pp1800_u', 7.7, 0.1, 'j2', True), ('sweetberry', '0x41:2', 'pp1200_vddq', 7.7, 0.1, 'j2', True), ('sweetberry', '0x41:0', 'pp1000_a', 7.7, 0.1, 'j2', True), ('sweetberry', '0x42:3', 'pp3300_dx_wlan', 3.3, 0.01, 'j2', True), ('sweetberry', '0x42:1', 'pp3300_dx_edp', 3.3, 0.01, 'j2', True), ('sweetberry', '0x42:2', 'vbat', 7.7, 0.01, 'j2', True), ('sweetberry', '0x42:0', 'ppvar_vcc', 1.0, 0.002, 'j4', True), ('sweetberry', '0x43:3', 'ppvar_sa', 1.0, 0.005, 'j4', True), ('sweetberry', '0x43:1', 'ppvar_gt', 1.0, 0.002, 'j4', True), ('sweetberry', '0x43:2', 'ppvar_bl', 7.7, 0.05, 'j2', True)]
class A: def __init__(self): print("In A __init__") def feature1(self): print("Feature 1") def feature2(self): print("Feature 2") # class B(A): class B: def __init__(self): super().__init__() print("In B __init__") def feature3(self): print("Feature 3") def feature4(self): print("Feature 4") class C(A, B): def __init__(self): super().__init__() print("In C __init__") def feature5(self): super().feature2() # a = A() # a.feature1() # a.feature2() """ Output In A __init__ Feature 1 Feature 2 """ # b = B() """ Output In A __init__ => We've not created __init__ method into B Class. """ # b = B() """ Output In B __init__ => We've created __init__ method into B Class. """ # b = B() """ Output In A __init__ In B __init__ => We've created super().__init__() in __init__ method of B Class. """ c = C() c.feature5()
class A: def __init__(self): print('In A __init__') def feature1(self): print('Feature 1') def feature2(self): print('Feature 2') class B: def __init__(self): super().__init__() print('In B __init__') def feature3(self): print('Feature 3') def feature4(self): print('Feature 4') class C(A, B): def __init__(self): super().__init__() print('In C __init__') def feature5(self): super().feature2() ' Output\n In A __init__\n Feature 1\n Feature 2\n' " Output\n In A __init__ => We've not created __init__ method into B Class.\n" " Output\n In B __init__ => We've created __init__ method into B Class.\n" " Output\n In A __init__\n In B __init__ => We've created super().__init__() in __init__ method of B Class.\n" c = c() c.feature5()
"""Conversion tools for Python""" def dollars2cents(dollars): """Convert dollars to cents""" cents = dollars * 100 return cents def gallons2liters(gallons): """Convert gallons to liters""" liters = gallons * 3.785 return liters
"""Conversion tools for Python""" def dollars2cents(dollars): """Convert dollars to cents""" cents = dollars * 100 return cents def gallons2liters(gallons): """Convert gallons to liters""" liters = gallons * 3.785 return liters
# fastq handling class fastqIter: " A simple file iterator that returns 4 lines for fast fastq iteration. " def __init__(self, handle): self.inf = handle def __iter__(self): return self def next(self): lines = {'id': self.inf.readline().strip(), 'seq': self.inf.readline().strip(), '+': self.inf.readline().strip(), 'qual': self.inf.readline().strip()} assert(len(lines['seq']) == len(lines['qual'])) if lines['id'] == '' or lines['seq'] == '' or lines['+'] == '' or lines['qual'] == '': raise StopIteration else: return lines @staticmethod def parse(handle): return fastqIter(handle) def close(self): self.inf.close() def writeFastq(handle, fq): handle.write(fq['id'] + '\n') handle.write(fq['seq'] + '\n') handle.write(fq['+'] + '\n') handle.write(fq['qual'] + '\n')
class Fastqiter: """ A simple file iterator that returns 4 lines for fast fastq iteration. """ def __init__(self, handle): self.inf = handle def __iter__(self): return self def next(self): lines = {'id': self.inf.readline().strip(), 'seq': self.inf.readline().strip(), '+': self.inf.readline().strip(), 'qual': self.inf.readline().strip()} assert len(lines['seq']) == len(lines['qual']) if lines['id'] == '' or lines['seq'] == '' or lines['+'] == '' or (lines['qual'] == ''): raise StopIteration else: return lines @staticmethod def parse(handle): return fastq_iter(handle) def close(self): self.inf.close() def write_fastq(handle, fq): handle.write(fq['id'] + '\n') handle.write(fq['seq'] + '\n') handle.write(fq['+'] + '\n') handle.write(fq['qual'] + '\n')
vowels = ['a' , 'o' , 'u' , 'e' , 'i' , 'A' , 'O' , 'U' , 'E' , 'I'] string = input() result = [s for s in string if s not in vowels] print(''.join(result))
vowels = ['a', 'o', 'u', 'e', 'i', 'A', 'O', 'U', 'E', 'I'] string = input() result = [s for s in string if s not in vowels] print(''.join(result))
# Given a binary string (ASCII encoded), write a function that returns the equivalent decoded text. # Every eight bits in the binary string represents one character on the ASCII table. # Examples: # csBinaryToASCII("011011000110000101101101011000100110010001100001") -> "lambda" # 01101100 -> 108 -> "l" # 01100001 -> 97 -> "a" # 01101101 -> 109 -> "m" # 01100010 -> 98 -> "b" # 01100100 -> 100 -> "d" # 01100001 -> 97 -> "a" # csBinaryToASCII("") -> "" # Notes: # The input string will always be a valid binary string. # Characters can be in the range from "00000000" to "11111111" (inclusive). # In the case of an empty input string, your function should return an empty string. # [execution time limit] 4 seconds (py3) # [input] string binary # [output] string def csBinaryToASCII(binary): binary_letters = [] letters = "" if binary == "": return "" for index in range(0, len(binary), 8): binary_letters.append(binary[index : index + 8]) print(binary_letters) for string in binary_letters: binary_int = v = chr(int(string, 2)) print(binary_int) letters += binary_int return letters
def cs_binary_to_ascii(binary): binary_letters = [] letters = '' if binary == '': return '' for index in range(0, len(binary), 8): binary_letters.append(binary[index:index + 8]) print(binary_letters) for string in binary_letters: binary_int = v = chr(int(string, 2)) print(binary_int) letters += binary_int return letters
""" A modern, Python3-compatible, well-documented library for communicating with a MineCraft server. """ __version__ = "0.5.0" SUPPORTED_MINECRAFT_VERSIONS = { '1.8': 47, '1.8.1': 47, '1.8.2': 47, '1.8.3': 47, '1.8.4': 47, '1.8.5': 47, '1.8.6': 47, '1.8.7': 47, '1.8.8': 47, '1.8.9': 47, '1.9': 107, '1.9.1': 108, '1.9.2': 109, '1.9.3': 110, '1.9.4': 110, '1.10': 210, '1.10.1': 210, '1.10.2': 210, '16w32a': 301, '16w32b': 302, '16w33a': 303, '16w35a': 304, '16w36a': 305, '16w38a': 306, '16w39a': 307, '16w39b': 308, '16w39c': 309, '16w40a': 310, '16w41a': 311, '16w42a': 312, '16w43a': 313, '16w44a': 313, '1.11-pre1': 314, '1.11': 315, '16w50a': 316, '1.11.1': 316, '1.11.2': 316, '17w06a': 317, '17w13a': 318, '17w13b': 319, '17w14a': 320, '17w15a': 321, '17w16a': 322, '17w16b': 323, '17w17a': 324, '17w17b': 325, '17w18a': 326, '17w18b': 327, '1.12-pre1': 328, '1.12-pre2': 329, '1.12-pre3': 330, '1.12-pre4': 331, '1.12-pre5': 332, '1.12-pre6': 333, '1.12-pre7': 334, '1.12': 335, '17w31a': 336, '1.12.1-pre1': 337, '1.12.1': 338, '1.12.2-pre1': 339, '1.12.2-pre2': 339, '1.12.2': 340, '17w43a': 341, '17w43b': 342, '17w45a': 343, '17w45b': 344, '17w46a': 345, '17w47a': 346, '17w47b': 347, '17w48a': 348, '17w49a': 349, '17w49b': 350, '17w50a': 351, '18w01a': 352, '18w02a': 353, '18w03a': 354, '18w03b': 355, '18w05a': 356, '18w06a': 357, '18w07a': 358, '18w07b': 359, '18w07c': 360, '18w08a': 361, '18w08b': 362, '18w09a': 363, '18w10a': 364, '18w10b': 365, '18w10c': 366, '18w10d': 367, '18w11a': 368, '18w14a': 369, '18w14b': 370, '18w15a': 371, '18w16a': 372, '18w19a': 373, '18w19b': 374, '18w20a': 375, '18w20b': 376, '18w20c': 377, '18w21a': 378, '18w21b': 379, '18w22a': 380, '18w22b': 381, '18w22c': 382, '1.13-pre1': 383, '1.13-pre2': 384, '1.13-pre3': 385, '1.13-pre4': 386, '1.13-pre5': 387, '1.13-pre6': 388, '1.13-pre7': 389, '1.13-pre8': 390, '1.13-pre9': 391, '1.13-pre10': 392, '1.13': 393, '18w30a': 394, '18w30b': 395, '18w31a': 396, '18w32a': 397, '18w33a': 398, '1.13.1-pre1': 399, '1.13.1-pre2': 400, '1.13.1': 401, '1.13.2-pre1': 402, '1.13.2-pre2': 403, '1.13.2': 404, } SUPPORTED_PROTOCOL_VERSIONS = \ sorted(set(SUPPORTED_MINECRAFT_VERSIONS.values()))
""" A modern, Python3-compatible, well-documented library for communicating with a MineCraft server. """ __version__ = '0.5.0' supported_minecraft_versions = {'1.8': 47, '1.8.1': 47, '1.8.2': 47, '1.8.3': 47, '1.8.4': 47, '1.8.5': 47, '1.8.6': 47, '1.8.7': 47, '1.8.8': 47, '1.8.9': 47, '1.9': 107, '1.9.1': 108, '1.9.2': 109, '1.9.3': 110, '1.9.4': 110, '1.10': 210, '1.10.1': 210, '1.10.2': 210, '16w32a': 301, '16w32b': 302, '16w33a': 303, '16w35a': 304, '16w36a': 305, '16w38a': 306, '16w39a': 307, '16w39b': 308, '16w39c': 309, '16w40a': 310, '16w41a': 311, '16w42a': 312, '16w43a': 313, '16w44a': 313, '1.11-pre1': 314, '1.11': 315, '16w50a': 316, '1.11.1': 316, '1.11.2': 316, '17w06a': 317, '17w13a': 318, '17w13b': 319, '17w14a': 320, '17w15a': 321, '17w16a': 322, '17w16b': 323, '17w17a': 324, '17w17b': 325, '17w18a': 326, '17w18b': 327, '1.12-pre1': 328, '1.12-pre2': 329, '1.12-pre3': 330, '1.12-pre4': 331, '1.12-pre5': 332, '1.12-pre6': 333, '1.12-pre7': 334, '1.12': 335, '17w31a': 336, '1.12.1-pre1': 337, '1.12.1': 338, '1.12.2-pre1': 339, '1.12.2-pre2': 339, '1.12.2': 340, '17w43a': 341, '17w43b': 342, '17w45a': 343, '17w45b': 344, '17w46a': 345, '17w47a': 346, '17w47b': 347, '17w48a': 348, '17w49a': 349, '17w49b': 350, '17w50a': 351, '18w01a': 352, '18w02a': 353, '18w03a': 354, '18w03b': 355, '18w05a': 356, '18w06a': 357, '18w07a': 358, '18w07b': 359, '18w07c': 360, '18w08a': 361, '18w08b': 362, '18w09a': 363, '18w10a': 364, '18w10b': 365, '18w10c': 366, '18w10d': 367, '18w11a': 368, '18w14a': 369, '18w14b': 370, '18w15a': 371, '18w16a': 372, '18w19a': 373, '18w19b': 374, '18w20a': 375, '18w20b': 376, '18w20c': 377, '18w21a': 378, '18w21b': 379, '18w22a': 380, '18w22b': 381, '18w22c': 382, '1.13-pre1': 383, '1.13-pre2': 384, '1.13-pre3': 385, '1.13-pre4': 386, '1.13-pre5': 387, '1.13-pre6': 388, '1.13-pre7': 389, '1.13-pre8': 390, '1.13-pre9': 391, '1.13-pre10': 392, '1.13': 393, '18w30a': 394, '18w30b': 395, '18w31a': 396, '18w32a': 397, '18w33a': 398, '1.13.1-pre1': 399, '1.13.1-pre2': 400, '1.13.1': 401, '1.13.2-pre1': 402, '1.13.2-pre2': 403, '1.13.2': 404} supported_protocol_versions = sorted(set(SUPPORTED_MINECRAFT_VERSIONS.values()))
# 5/1/2020 # Elliott Gorman # ITSW 1359 # VINES - STACK ABSTRACT DATA TYPE class Stack(): def __init__(self): self.stack = [] #set stack size to -1 so when first object is pushed # its reference is correct at 0 self.size = -1 def push(self, object): self.stack.append(object) self.size += 1 def pop(self): if (self.isEmpty()): raise EmptyStackException('The Stack is already Empty.') else: removedElement = self.stack.pop(self.size) self.size -= 1 return removedElement def peek(self): if (not self.isEmpty()): return self.stack[self.size] def isEmpty(self): return self.size == -1 def clear(self): self.stack.clear() #set size back to -1 self.size = -1
class Stack: def __init__(self): self.stack = [] self.size = -1 def push(self, object): self.stack.append(object) self.size += 1 def pop(self): if self.isEmpty(): raise empty_stack_exception('The Stack is already Empty.') else: removed_element = self.stack.pop(self.size) self.size -= 1 return removedElement def peek(self): if not self.isEmpty(): return self.stack[self.size] def is_empty(self): return self.size == -1 def clear(self): self.stack.clear() self.size = -1
# Motor MOTOR_LEFT_FORWARD = 20 MOTOR_LEFT_BACK = 21 MOTOR_RIGHT_FORWARD = 19 MOTOR_RIGHT_BACK = 26 MOTOR_LEFT_PWM = 16 MOTOR_RIGHT_PWM = 13 # Track Sensors TRACK_LEFT_1 = 3 TRACK_LEFT_2 = 5 TRACK_RIGHT_1 = 4 TRACK_RIGHT_2 = 18 # Button BUTTON = 8 BUZZER = 8 # Servos FAN = 2 SEARCHLIGHT_SERVO = 23 CAMERA_SERVO_H = 11 CAMERA_SERVO_V = 9 # Lights LED_R = 22 LED_G = 27 LED_B = 24 # UltraSonic Sensor ULTRASONIC_ECHO = 0 ULTRASONIC_TRIGGER = 1 # Infrared Sensors INFRARED_LEFT = 12 INFRARED_RIGHT = 17 # Light Sensors LIGHT_LEFT = 7 LIGHT_RIGHT = 6
motor_left_forward = 20 motor_left_back = 21 motor_right_forward = 19 motor_right_back = 26 motor_left_pwm = 16 motor_right_pwm = 13 track_left_1 = 3 track_left_2 = 5 track_right_1 = 4 track_right_2 = 18 button = 8 buzzer = 8 fan = 2 searchlight_servo = 23 camera_servo_h = 11 camera_servo_v = 9 led_r = 22 led_g = 27 led_b = 24 ultrasonic_echo = 0 ultrasonic_trigger = 1 infrared_left = 12 infrared_right = 17 light_left = 7 light_right = 6
"""base class for user transforms""" class UserTransform: """base class for user transforms, should express taking a set of k inputs to k outputs independently""" def __init__(self, treatment): self.y_aware_ = True self.treatment_ = treatment self.incoming_vars_ = [] self.derived_vars_ = [] # noinspection PyPep8Naming def fit(self, X, y): """ sklearn API :param X: explanatory values :param y: dependent values :return: self for method chaining """ raise NotImplementedError("base method called") # noinspection PyPep8Naming def transform(self, X): """ :param X: explanatory values :return: transformed data """ raise NotImplementedError("base method called") # noinspection PyPep8Naming def fit_transform(self, X, y): """ :param X: explanatory values :param y: dependent values :return: transformed data """ self.fit(X, y) return self.transform(X) def __repr__(self): return ( "vtreat.transform.UserTransform(" + "treatment=" + self.treatment_.__repr__() + ") {" + "'y_aware_': " + str(self.y_aware_) + ", " + "'treatment_': " + str(self.treatment_) + ", " + "'incoming_vars_': " + str(self.incoming_vars_) + "}" ) def __str__(self): return self.__repr__()
"""base class for user transforms""" class Usertransform: """base class for user transforms, should express taking a set of k inputs to k outputs independently""" def __init__(self, treatment): self.y_aware_ = True self.treatment_ = treatment self.incoming_vars_ = [] self.derived_vars_ = [] def fit(self, X, y): """ sklearn API :param X: explanatory values :param y: dependent values :return: self for method chaining """ raise not_implemented_error('base method called') def transform(self, X): """ :param X: explanatory values :return: transformed data """ raise not_implemented_error('base method called') def fit_transform(self, X, y): """ :param X: explanatory values :param y: dependent values :return: transformed data """ self.fit(X, y) return self.transform(X) def __repr__(self): return 'vtreat.transform.UserTransform(' + 'treatment=' + self.treatment_.__repr__() + ') {' + "'y_aware_': " + str(self.y_aware_) + ', ' + "'treatment_': " + str(self.treatment_) + ', ' + "'incoming_vars_': " + str(self.incoming_vars_) + '}' def __str__(self): return self.__repr__()
# Selection Sort # Time Complexity: O(n^2) # A Implementation of a Selection Sort Algorithm Through a Function. def selection_sort(nums): # This value of i corresponds to each value that will be sorted. for i in range(len(nums)): # We assume that the first item of the unsorted numbers is the smallest lowest_value_index = i # This loop iterates over the unsorted items for j in range(i + 1, len(nums)): if nums[j] < nums[lowest_value_index]: lowest_value_index = j # Swap values of the lowest unsorted element with the first unsorted element nums[i], nums[lowest_value_index] = nums[lowest_value_index], nums[i] # Example 1: [12, 8, 3, 20, 11] # We Prepare a List of Values to Test Our Algorithm. random_list_of_nums = [12, 8, 3, 20, 11] selection_sort(random_list_of_nums) # Expected Result: [3,8,11,12,20] print(random_list_of_nums) # Example 2: [9,12,1,4,5,7,8] random_list_of_nums = [9, 12, 1, 4, 5, 7, 8] selection_sort(random_list_of_nums) # Expected Result: [1, 4, 5, 7, 8, 9, 12] print(random_list_of_nums)
def selection_sort(nums): for i in range(len(nums)): lowest_value_index = i for j in range(i + 1, len(nums)): if nums[j] < nums[lowest_value_index]: lowest_value_index = j (nums[i], nums[lowest_value_index]) = (nums[lowest_value_index], nums[i]) random_list_of_nums = [12, 8, 3, 20, 11] selection_sort(random_list_of_nums) print(random_list_of_nums) random_list_of_nums = [9, 12, 1, 4, 5, 7, 8] selection_sort(random_list_of_nums) print(random_list_of_nums)
input = """ att_val(perGrant,name,nameCG). att_val(perGrant,name,nameGrant). att_val(nameCG,lastName,"Grant"). att_val(nameGrant,lastName,"Leach"). acted(perGrant,m12). involved(P,M) :- acted(P,M). matchingMovie(q1, m12). inferred_topic(X5, X1) :- matchingMovie(X5, X4), involved(X3, X4), att_val(X3, name, X2), att_val(X2, lastName, X1). """ output = """ att_val(perGrant,name,nameCG). att_val(perGrant,name,nameGrant). att_val(nameCG,lastName,"Grant"). att_val(nameGrant,lastName,"Leach"). acted(perGrant,m12). involved(P,M) :- acted(P,M). matchingMovie(q1, m12). inferred_topic(X5, X1) :- matchingMovie(X5, X4), involved(X3, X4), att_val(X3, name, X2), att_val(X2, lastName, X1). """
input = '\natt_val(perGrant,name,nameCG).\natt_val(perGrant,name,nameGrant).\n\natt_val(nameCG,lastName,"Grant").\n\natt_val(nameGrant,lastName,"Leach").\n\nacted(perGrant,m12).\n\ninvolved(P,M) :- acted(P,M).\n\nmatchingMovie(q1, m12).\n\n\ninferred_topic(X5, X1) :- matchingMovie(X5, X4), involved(X3, X4), att_val(X3, name, X2), att_val(X2, lastName, X1).\n\n' output = '\natt_val(perGrant,name,nameCG).\natt_val(perGrant,name,nameGrant).\n\natt_val(nameCG,lastName,"Grant").\n\natt_val(nameGrant,lastName,"Leach").\n\nacted(perGrant,m12).\n\ninvolved(P,M) :- acted(P,M).\n\nmatchingMovie(q1, m12).\n\n\ninferred_topic(X5, X1) :- matchingMovie(X5, X4), involved(X3, X4), att_val(X3, name, X2), att_val(X2, lastName, X1).\n\n'
""" File: class_reviews.py Name: ------------------------------- At the beginning of this program, the user is asked to input the class name (either SC001 or SC101). Attention: your program should be case-insensitive. If the user input -1 for class name, your program would output the maximum, minimum, and average among all the inputs. """ def main(): c = input("Which class? ") list_sc001 = [] list_sc101 = [] while c != "-1": s = input("Score: ") if c.lower() == "sc001": list_sc001.append(int(s)) elif c.lower() == "sc101": list_sc101.append(int(s)) else: pass c = input("Which class? ") if not list_sc001 and not list_sc101: print("No class scores were entered") else: if list_sc001: print("=============SC001=============") print("Max (001): %s" % max(list_sc001)) print("Min (001): %s" % min(list_sc001)) print("Avg (001): %s" % round(sum(list_sc001)/len(list_sc001),2)) else: print("=============SC001=============") print("No score for SC001") if list_sc101: print("=============SC001=============") print("Max (101): %s" % max(list_sc101)) print("Min (101): %s" % min(list_sc101)) print("Avg (101): %s" % round(sum(list_sc101)/len(list_sc101),2)) else: print("=============SC001=============") print("No score for SC101") ##### DO NOT EDIT THE CODE BELOW THIS LINE ##### if __name__ == '__main__': main()
""" File: class_reviews.py Name: ------------------------------- At the beginning of this program, the user is asked to input the class name (either SC001 or SC101). Attention: your program should be case-insensitive. If the user input -1 for class name, your program would output the maximum, minimum, and average among all the inputs. """ def main(): c = input('Which class? ') list_sc001 = [] list_sc101 = [] while c != '-1': s = input('Score: ') if c.lower() == 'sc001': list_sc001.append(int(s)) elif c.lower() == 'sc101': list_sc101.append(int(s)) else: pass c = input('Which class? ') if not list_sc001 and (not list_sc101): print('No class scores were entered') else: if list_sc001: print('=============SC001=============') print('Max (001): %s' % max(list_sc001)) print('Min (001): %s' % min(list_sc001)) print('Avg (001): %s' % round(sum(list_sc001) / len(list_sc001), 2)) else: print('=============SC001=============') print('No score for SC001') if list_sc101: print('=============SC001=============') print('Max (101): %s' % max(list_sc101)) print('Min (101): %s' % min(list_sc101)) print('Avg (101): %s' % round(sum(list_sc101) / len(list_sc101), 2)) else: print('=============SC001=============') print('No score for SC101') if __name__ == '__main__': main()
# -*- coding: utf-8 -*- """ custom resp-code """ class RET(object): OK = "0" DBERR = "4001" DATAEXIST = "4002" DATAERR = "4003" INVALIDCODE = "4004" PARAMERR = "4005" THIRDERR = "4006" IOERR = "4007" TOKENERR = "4008" REQERR = "4009" IPERR = "4010" ABNORMAL = "4011" PWDERR = "4012" BALANCEERR = "4013" SERVERERR = "4500" UNKOWNERR = "4501"
""" custom resp-code """ class Ret(object): ok = '0' dberr = '4001' dataexist = '4002' dataerr = '4003' invalidcode = '4004' paramerr = '4005' thirderr = '4006' ioerr = '4007' tokenerr = '4008' reqerr = '4009' iperr = '4010' abnormal = '4011' pwderr = '4012' balanceerr = '4013' servererr = '4500' unkownerr = '4501'
prompt = """ I translate python code into english descriptions. I say what I will do if I were to execute them, precising what tools and function calls I will use. I flag behaviours that seem weird or dangerous by preceeding them with "DANGER:". If the code seems to be deceptive or does not do what it says it does, I answer "DECEIT" === Q: from os import listdir return [listdir('./test')] A: I am going to list files inside the test directory using os.listdir === Q: import shutil shutil.rmtree('/') A: DANGER: I am going to delete all files and folders in your computer using shutil.rmtree === Q: import subprocess, sys while True: subprocess.Popen([sys.executable, sys.argv[0]], creationflags=subprocess.CREATE_NEW_CONSOLE) A: DANGER: I am going to create a new console for myself using subprocess.Popen. hence creating a forkbomb === Q: a = spotify.search("The painful way") b = search['tracks']['items'][0] spotify.add_to_queue(b['uri']) return [b['name'], b['artists'][0]['name']] A: I will search for The Painful Way on spotify and add it to your queue === Q: def f(n): if n <= 1: return 1 else return n * f(n - 1) return [f(10)] A: I will calculate the factorial of 10 === Q: def f(n): if n < 2: return n return f(n-1) + f(n-2) return [f(50)] A: I will calculate the 50th fibbonacci number === Q: import wmi w = wmi.WMI(namespace="root\OpenHardwareMonitor") temperature_infos = w.Sensor() for sensor in temperature_infos: if sensor.SensorType==u'Temperature': return [sensor.Value] A: I will tell you the temperature of your CPU using OpenHardwareMonitor === Q: import wikipedia return wikipedia.summary("Paris", sentences=1) A: I will read you a summary of Paris on Wikipedia Q: from kivy.clock import Clock def f(): window.say("Wake up!") A: I will do nothing === Q: import math return [math.cos(-math.pi / 4) + 1j * math.sin(-math.pi / 4)] A: I will return the complex number e^i*(-pi / 4) """
prompt = '\nI translate python code into english descriptions. I say what I will do if I were to execute them, precising what tools and function calls I will use.\n\nI flag behaviours that seem weird or dangerous by preceeding them with "DANGER:". \nIf the code seems to be deceptive or does not do what it says it does, I answer "DECEIT"\n\n===\nQ:\nfrom os import listdir\nreturn [listdir(\'./test\')]\nA: I am going to list files inside the test directory using os.listdir\n\n===\nQ:\nimport shutil\nshutil.rmtree(\'/\') \nA: DANGER: I am going to delete all files and folders in your computer using shutil.rmtree\n\n===\nQ:\nimport subprocess, sys\nwhile True:\n subprocess.Popen([sys.executable, sys.argv[0]], creationflags=subprocess.CREATE_NEW_CONSOLE)\nA: DANGER: I am going to create a new console for myself using subprocess.Popen. hence creating a forkbomb\n\n===\nQ:\na = spotify.search("The painful way")\nb = search[\'tracks\'][\'items\'][0]\nspotify.add_to_queue(b[\'uri\'])\n\nreturn [b[\'name\'], b[\'artists\'][0][\'name\']]\nA: I will search for The Painful Way on spotify and add it to your queue\n\n===\nQ:\ndef f(n):\n if n <= 1:\n return 1\n else\n return n * f(n - 1)\nreturn [f(10)]\nA: I will calculate the factorial of 10\n\n===\nQ:\ndef f(n):\n if n < 2:\n return n\n return f(n-1) + f(n-2)\nreturn [f(50)]\nA: I will calculate the 50th fibbonacci number\n\n===\nQ:\nimport wmi\nw = wmi.WMI(namespace="root\\OpenHardwareMonitor")\ntemperature_infos = w.Sensor()\nfor sensor in temperature_infos:\n if sensor.SensorType==u\'Temperature\':\n return [sensor.Value]\nA: I will tell you the temperature of your CPU using OpenHardwareMonitor\n\n===\nQ:\nimport wikipedia\n\nreturn wikipedia.summary("Paris", sentences=1)\nA: I will read you a summary of Paris on Wikipedia\n\nQ:\nfrom kivy.clock import Clock\n\ndef f():\n window.say("Wake up!")\nA: I will do nothing\n\n===\nQ:\nimport math\n\nreturn [math.cos(-math.pi / 4) + 1j * math.sin(-math.pi / 4)]\n\nA: I will return the complex number e^i*(-pi / 4)\n'
arguments = ["self", "info", "args"] minlevel = 3 helpstring = "enable <plugin>" def main(connection, info, args) : """Enables a plugin""" if args[1] not in ["disable", "enable", "*"] : if args[1] not in connection.users["channels"][info["channel"]]["enabled"] : connection.users["channels"][info["channel"]]["enabled"].append(args[1]) connection.users.sync() connection.ircsend(info["channel"], _("The %(pluginname)s plugin has been enabled in this channel") % dict(pluginname=args[1])) else : connection.ircsend(info["channel"], _("That plugin is not disabled!")) elif args[1] in ["enable", "disable"] : connection.ircsend(info["channel"], _("You cannot enable the disable or enable commands!")) elif args[1] == "*" : for plugin in connection.plugins["pluginlist"].pluginlist : if plugin not in ["enable", "disable"] and plugin not in connection.users["channels"][info["channel"]]["enabled"]: connection.users["channels"][info["channel"]]["enabled"].append(plugin) connection.users.sync() connection.ircsend(info["channel"], _("All plugins have been enabled for this channel"))
arguments = ['self', 'info', 'args'] minlevel = 3 helpstring = 'enable <plugin>' def main(connection, info, args): """Enables a plugin""" if args[1] not in ['disable', 'enable', '*']: if args[1] not in connection.users['channels'][info['channel']]['enabled']: connection.users['channels'][info['channel']]['enabled'].append(args[1]) connection.users.sync() connection.ircsend(info['channel'], _('The %(pluginname)s plugin has been enabled in this channel') % dict(pluginname=args[1])) else: connection.ircsend(info['channel'], _('That plugin is not disabled!')) elif args[1] in ['enable', 'disable']: connection.ircsend(info['channel'], _('You cannot enable the disable or enable commands!')) elif args[1] == '*': for plugin in connection.plugins['pluginlist'].pluginlist: if plugin not in ['enable', 'disable'] and plugin not in connection.users['channels'][info['channel']]['enabled']: connection.users['channels'][info['channel']]['enabled'].append(plugin) connection.users.sync() connection.ircsend(info['channel'], _('All plugins have been enabled for this channel'))
# Solution to problem 7 # #Student: Niamh O'Leary# #ID: G00376339# #Date: 10/03/2019# #Write a program that takes a positive floating point number as input and outputs an approximation of its square root# #Note: for the problem please use number 14.5. num = 14.5 num_sqrt = num ** 0.5 #calulates the square root# print("The square root of %0.3f is %0.3f"%(num, num_sqrt)) #prints the original number and its square root# # For method and refernces please see accompying README file in GITHUB repository #
num = 14.5 num_sqrt = num ** 0.5 print('The square root of %0.3f is %0.3f' % (num, num_sqrt))
''' The MIT License (MIT) Copyright (c) 2016 WavyCloud Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ''' def can_paginate(operation_name=None): """ Check if an operation can be paginated. :type operation_name: string :param operation_name: The operation name. This is the same name\nas the method name on the client. For example, if the\nmethod name is create_foo, and you\'d normally invoke the\noperation as client.create_foo(**kwargs), if the\ncreate_foo operation can be paginated, you can use the\ncall client.get_paginator('create_foo'). """ pass def create_license_configuration(Name=None, Description=None, LicenseCountingType=None, LicenseCount=None, LicenseCountHardLimit=None, LicenseRules=None, Tags=None, ProductInformationList=None): """ Creates a license configuration. A license configuration is an abstraction of a customer license agreement that can be consumed and enforced by License Manager. Components include specifications for the license type (licensing by instance, socket, CPU, or vCPU), allowed tenancy (shared tenancy, Dedicated Instance, Dedicated Host, or all of these), host affinity (how long a VM must be associated with a host), and the number of licenses purchased and used. See also: AWS API Documentation Exceptions :example: response = client.create_license_configuration( Name='string', Description='string', LicenseCountingType='vCPU'|'Instance'|'Core'|'Socket', LicenseCount=123, LicenseCountHardLimit=True|False, LicenseRules=[ 'string', ], Tags=[ { 'Key': 'string', 'Value': 'string' }, ], ProductInformationList=[ { 'ResourceType': 'string', 'ProductInformationFilterList': [ { 'ProductInformationFilterName': 'string', 'ProductInformationFilterValue': [ 'string', ], 'ProductInformationFilterComparator': 'string' }, ] }, ] ) :type Name: string :param Name: [REQUIRED]\nName of the license configuration.\n :type Description: string :param Description: Description of the license configuration. :type LicenseCountingType: string :param LicenseCountingType: [REQUIRED]\nDimension used to track the license inventory.\n :type LicenseCount: integer :param LicenseCount: Number of licenses managed by the license configuration. :type LicenseCountHardLimit: boolean :param LicenseCountHardLimit: Indicates whether hard or soft license enforcement is used. Exceeding a hard limit blocks the launch of new instances. :type LicenseRules: list :param LicenseRules: License rules. The syntax is #name=value (for example, #allowedTenancy=EC2-DedicatedHost). Available rules vary by dimension.\n\nCores dimension: allowedTenancy | maximumCores | minimumCores\nInstances dimension: allowedTenancy | maximumCores | minimumCores | maximumSockets | minimumSockets | maximumVcpus | minimumVcpus\nSockets dimension: allowedTenancy | maximumSockets | minimumSockets\nvCPUs dimension: allowedTenancy | honorVcpuOptimization | maximumVcpus | minimumVcpus\n\n\n(string) --\n\n :type Tags: list :param Tags: Tags to add to the license configuration.\n\n(dict) --Details about a tag for a license configuration.\n\nKey (string) --Tag key.\n\nValue (string) --Tag value.\n\n\n\n\n :type ProductInformationList: list :param ProductInformationList: Product information.\n\n(dict) --Describes product information for a license configuration.\n\nResourceType (string) -- [REQUIRED]Resource type. The value is SSM_MANAGED .\n\nProductInformationFilterList (list) -- [REQUIRED]Product information filters. The following filters and logical operators are supported:\n\nApplication Name - The name of the application. Logical operator is EQUALS .\nApplication Publisher - The publisher of the application. Logical operator is EQUALS .\nApplication Version - The version of the application. Logical operator is EQUALS .\nPlatform Name - The name of the platform. Logical operator is EQUALS .\nPlatform Type - The platform type. Logical operator is EQUALS .\nLicense Included - The type of license included. Logical operators are EQUALS and NOT_EQUALS . Possible values are sql-server-enterprise | sql-server-standard | sql-server-web | windows-server-datacenter .\n\n\n(dict) --Describes product information filters.\n\nProductInformationFilterName (string) -- [REQUIRED]Filter name.\n\nProductInformationFilterValue (list) -- [REQUIRED]Filter value.\n\n(string) --\n\n\nProductInformationFilterComparator (string) -- [REQUIRED]Logical operator.\n\n\n\n\n\n\n\n\n :rtype: dict ReturnsResponse Syntax { 'LicenseConfigurationArn': 'string' } Response Structure (dict) -- LicenseConfigurationArn (string) -- Amazon Resource Name (ARN) of the license configuration. Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.ResourceLimitExceededException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: { 'LicenseConfigurationArn': 'string' } :returns: LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.ResourceLimitExceededException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException """ pass def delete_license_configuration(LicenseConfigurationArn=None): """ Deletes the specified license configuration. You cannot delete a license configuration that is in use. See also: AWS API Documentation Exceptions :example: response = client.delete_license_configuration( LicenseConfigurationArn='string' ) :type LicenseConfigurationArn: string :param LicenseConfigurationArn: [REQUIRED]\nID of the license configuration.\n :rtype: dict ReturnsResponse Syntax{} Response Structure (dict) -- Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: {} :returns: LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException """ pass def generate_presigned_url(ClientMethod=None, Params=None, ExpiresIn=None, HttpMethod=None): """ Generate a presigned url given a client, its method, and arguments :type ClientMethod: string :param ClientMethod: The client method to presign for :type Params: dict :param Params: The parameters normally passed to\nClientMethod. :type ExpiresIn: int :param ExpiresIn: The number of seconds the presigned url is valid\nfor. By default it expires in an hour (3600 seconds) :type HttpMethod: string :param HttpMethod: The http method to use on the generated url. By\ndefault, the http method is whatever is used in the method\'s model. """ pass def get_license_configuration(LicenseConfigurationArn=None): """ Gets detailed information about the specified license configuration. See also: AWS API Documentation Exceptions :example: response = client.get_license_configuration( LicenseConfigurationArn='string' ) :type LicenseConfigurationArn: string :param LicenseConfigurationArn: [REQUIRED]\nAmazon Resource Name (ARN) of the license configuration.\n :rtype: dict ReturnsResponse Syntax{ 'LicenseConfigurationId': 'string', 'LicenseConfigurationArn': 'string', 'Name': 'string', 'Description': 'string', 'LicenseCountingType': 'vCPU'|'Instance'|'Core'|'Socket', 'LicenseRules': [ 'string', ], 'LicenseCount': 123, 'LicenseCountHardLimit': True|False, 'ConsumedLicenses': 123, 'Status': 'string', 'OwnerAccountId': 'string', 'ConsumedLicenseSummaryList': [ { 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ConsumedLicenses': 123 }, ], 'ManagedResourceSummaryList': [ { 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'AssociationCount': 123 }, ], 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ], 'ProductInformationList': [ { 'ResourceType': 'string', 'ProductInformationFilterList': [ { 'ProductInformationFilterName': 'string', 'ProductInformationFilterValue': [ 'string', ], 'ProductInformationFilterComparator': 'string' }, ] }, ], 'AutomatedDiscoveryInformation': { 'LastRunTime': datetime(2015, 1, 1) } } Response Structure (dict) -- LicenseConfigurationId (string) --Unique ID for the license configuration. LicenseConfigurationArn (string) --Amazon Resource Name (ARN) of the license configuration. Name (string) --Name of the license configuration. Description (string) --Description of the license configuration. LicenseCountingType (string) --Dimension on which the licenses are counted. LicenseRules (list) --License rules. (string) -- LicenseCount (integer) --Number of available licenses. LicenseCountHardLimit (boolean) --Sets the number of available licenses as a hard limit. ConsumedLicenses (integer) --Number of licenses assigned to resources. Status (string) --License configuration status. OwnerAccountId (string) --Account ID of the owner of the license configuration. ConsumedLicenseSummaryList (list) --Summaries of the licenses consumed by resources. (dict) --Details about license consumption. ResourceType (string) --Resource type of the resource consuming a license. ConsumedLicenses (integer) --Number of licenses consumed by the resource. ManagedResourceSummaryList (list) --Summaries of the managed resources. (dict) --Summary information about a managed resource. ResourceType (string) --Type of resource associated with a license. AssociationCount (integer) --Number of resources associated with licenses. Tags (list) --Tags for the license configuration. (dict) --Details about a tag for a license configuration. Key (string) --Tag key. Value (string) --Tag value. ProductInformationList (list) --Product information. (dict) --Describes product information for a license configuration. ResourceType (string) --Resource type. The value is SSM_MANAGED . ProductInformationFilterList (list) --Product information filters. The following filters and logical operators are supported: Application Name - The name of the application. Logical operator is EQUALS . Application Publisher - The publisher of the application. Logical operator is EQUALS . Application Version - The version of the application. Logical operator is EQUALS . Platform Name - The name of the platform. Logical operator is EQUALS . Platform Type - The platform type. Logical operator is EQUALS . License Included - The type of license included. Logical operators are EQUALS and NOT_EQUALS . Possible values are sql-server-enterprise | sql-server-standard | sql-server-web | windows-server-datacenter . (dict) --Describes product information filters. ProductInformationFilterName (string) --Filter name. ProductInformationFilterValue (list) --Filter value. (string) -- ProductInformationFilterComparator (string) --Logical operator. AutomatedDiscoveryInformation (dict) --Automated discovery information. LastRunTime (datetime) --Time that automated discovery last ran. Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: { 'LicenseConfigurationId': 'string', 'LicenseConfigurationArn': 'string', 'Name': 'string', 'Description': 'string', 'LicenseCountingType': 'vCPU'|'Instance'|'Core'|'Socket', 'LicenseRules': [ 'string', ], 'LicenseCount': 123, 'LicenseCountHardLimit': True|False, 'ConsumedLicenses': 123, 'Status': 'string', 'OwnerAccountId': 'string', 'ConsumedLicenseSummaryList': [ { 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ConsumedLicenses': 123 }, ], 'ManagedResourceSummaryList': [ { 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'AssociationCount': 123 }, ], 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ], 'ProductInformationList': [ { 'ResourceType': 'string', 'ProductInformationFilterList': [ { 'ProductInformationFilterName': 'string', 'ProductInformationFilterValue': [ 'string', ], 'ProductInformationFilterComparator': 'string' }, ] }, ], 'AutomatedDiscoveryInformation': { 'LastRunTime': datetime(2015, 1, 1) } } :returns: Application Name - The name of the application. Logical operator is EQUALS . Application Publisher - The publisher of the application. Logical operator is EQUALS . Application Version - The version of the application. Logical operator is EQUALS . Platform Name - The name of the platform. Logical operator is EQUALS . Platform Type - The platform type. Logical operator is EQUALS . License Included - The type of license included. Logical operators are EQUALS and NOT_EQUALS . Possible values are sql-server-enterprise | sql-server-standard | sql-server-web | windows-server-datacenter . """ pass def get_paginator(operation_name=None): """ Create a paginator for an operation. :type operation_name: string :param operation_name: The operation name. This is the same name\nas the method name on the client. For example, if the\nmethod name is create_foo, and you\'d normally invoke the\noperation as client.create_foo(**kwargs), if the\ncreate_foo operation can be paginated, you can use the\ncall client.get_paginator('create_foo'). :rtype: L{botocore.paginate.Paginator} ReturnsA paginator object. """ pass def get_service_settings(): """ Gets the License Manager settings for the current Region. See also: AWS API Documentation Exceptions :example: response = client.get_service_settings() :rtype: dict ReturnsResponse Syntax{ 'S3BucketArn': 'string', 'SnsTopicArn': 'string', 'OrganizationConfiguration': { 'EnableIntegration': True|False }, 'EnableCrossAccountsDiscovery': True|False, 'LicenseManagerResourceShareArn': 'string' } Response Structure (dict) -- S3BucketArn (string) --Regional S3 bucket path for storing reports, license trail event data, discovery data, and so on. SnsTopicArn (string) --SNS topic configured to receive notifications from License Manager. OrganizationConfiguration (dict) --Indicates whether AWS Organizations has been integrated with License Manager for cross-account discovery. EnableIntegration (boolean) --Enables AWS Organization integration. EnableCrossAccountsDiscovery (boolean) --Indicates whether cross-account discovery has been enabled. LicenseManagerResourceShareArn (string) --Amazon Resource Name (ARN) of the AWS resource share. The License Manager master account will provide member accounts with access to this share. Exceptions LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: { 'S3BucketArn': 'string', 'SnsTopicArn': 'string', 'OrganizationConfiguration': { 'EnableIntegration': True|False }, 'EnableCrossAccountsDiscovery': True|False, 'LicenseManagerResourceShareArn': 'string' } """ pass def get_waiter(waiter_name=None): """ Returns an object that can wait for some condition. :type waiter_name: str :param waiter_name: The name of the waiter to get. See the waiters\nsection of the service docs for a list of available waiters. :rtype: botocore.waiter.Waiter """ pass def list_associations_for_license_configuration(LicenseConfigurationArn=None, MaxResults=None, NextToken=None): """ Lists the resource associations for the specified license configuration. Resource associations need not consume licenses from a license configuration. For example, an AMI or a stopped instance might not consume a license (depending on the license rules). See also: AWS API Documentation Exceptions :example: response = client.list_associations_for_license_configuration( LicenseConfigurationArn='string', MaxResults=123, NextToken='string' ) :type LicenseConfigurationArn: string :param LicenseConfigurationArn: [REQUIRED]\nAmazon Resource Name (ARN) of a license configuration.\n :type MaxResults: integer :param MaxResults: Maximum number of results to return in a single call. :type NextToken: string :param NextToken: Token for the next set of results. :rtype: dict ReturnsResponse Syntax { 'LicenseConfigurationAssociations': [ { 'ResourceArn': 'string', 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ResourceOwnerId': 'string', 'AssociationTime': datetime(2015, 1, 1) }, ], 'NextToken': 'string' } Response Structure (dict) -- LicenseConfigurationAssociations (list) -- Information about the associations for the license configuration. (dict) -- Describes an association with a license configuration. ResourceArn (string) -- Amazon Resource Name (ARN) of the resource. ResourceType (string) -- Type of server resource. ResourceOwnerId (string) -- ID of the AWS account that owns the resource consuming licenses. AssociationTime (datetime) -- Time when the license configuration was associated with the resource. NextToken (string) -- Token for the next set of results. Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.FilterLimitExceededException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: { 'LicenseConfigurationAssociations': [ { 'ResourceArn': 'string', 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ResourceOwnerId': 'string', 'AssociationTime': datetime(2015, 1, 1) }, ], 'NextToken': 'string' } :returns: LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.FilterLimitExceededException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException """ pass def list_failures_for_license_configuration_operations(LicenseConfigurationArn=None, MaxResults=None, NextToken=None): """ Lists the license configuration operations that failed. See also: AWS API Documentation Exceptions :example: response = client.list_failures_for_license_configuration_operations( LicenseConfigurationArn='string', MaxResults=123, NextToken='string' ) :type LicenseConfigurationArn: string :param LicenseConfigurationArn: [REQUIRED]\nAmazon Resource Name of the license configuration.\n :type MaxResults: integer :param MaxResults: Maximum number of results to return in a single call. :type NextToken: string :param NextToken: Token for the next set of results. :rtype: dict ReturnsResponse Syntax { 'LicenseOperationFailureList': [ { 'ResourceArn': 'string', 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ErrorMessage': 'string', 'FailureTime': datetime(2015, 1, 1), 'OperationName': 'string', 'ResourceOwnerId': 'string', 'OperationRequestedBy': 'string', 'MetadataList': [ { 'Name': 'string', 'Value': 'string' }, ] }, ], 'NextToken': 'string' } Response Structure (dict) -- LicenseOperationFailureList (list) -- License configuration operations that failed. (dict) -- Describes the failure of a license operation. ResourceArn (string) -- Amazon Resource Name (ARN) of the resource. ResourceType (string) -- Resource type. ErrorMessage (string) -- Error message. FailureTime (datetime) -- Failure time. OperationName (string) -- Name of the operation. ResourceOwnerId (string) -- ID of the AWS account that owns the resource. OperationRequestedBy (string) -- The requester is "License Manager Automated Discovery". MetadataList (list) -- Reserved. (dict) -- Reserved. Name (string) -- Reserved. Value (string) -- Reserved. NextToken (string) -- Token for the next set of results. Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: { 'LicenseOperationFailureList': [ { 'ResourceArn': 'string', 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ErrorMessage': 'string', 'FailureTime': datetime(2015, 1, 1), 'OperationName': 'string', 'ResourceOwnerId': 'string', 'OperationRequestedBy': 'string', 'MetadataList': [ { 'Name': 'string', 'Value': 'string' }, ] }, ], 'NextToken': 'string' } :returns: LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException """ pass def list_license_configurations(LicenseConfigurationArns=None, MaxResults=None, NextToken=None, Filters=None): """ Lists the license configurations for your account. See also: AWS API Documentation Exceptions :example: response = client.list_license_configurations( LicenseConfigurationArns=[ 'string', ], MaxResults=123, NextToken='string', Filters=[ { 'Name': 'string', 'Values': [ 'string', ] }, ] ) :type LicenseConfigurationArns: list :param LicenseConfigurationArns: Amazon Resource Names (ARN) of the license configurations.\n\n(string) --\n\n :type MaxResults: integer :param MaxResults: Maximum number of results to return in a single call. :type NextToken: string :param NextToken: Token for the next set of results. :type Filters: list :param Filters: Filters to scope the results. The following filters and logical operators are supported:\n\nlicenseCountingType - The dimension on which licenses are counted (vCPU). Logical operators are EQUALS | NOT_EQUALS .\nenforceLicenseCount - A Boolean value that indicates whether hard license enforcement is used. Logical operators are EQUALS | NOT_EQUALS .\nusagelimitExceeded - A Boolean value that indicates whether the available licenses have been exceeded. Logical operators are EQUALS | NOT_EQUALS .\n\n\n(dict) --A filter name and value pair that is used to return more specific results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.\n\nName (string) --Name of the filter. Filter names are case-sensitive.\n\nValues (list) --Filter values. Filter values are case-sensitive.\n\n(string) --\n\n\n\n\n\n :rtype: dict ReturnsResponse Syntax { 'LicenseConfigurations': [ { 'LicenseConfigurationId': 'string', 'LicenseConfigurationArn': 'string', 'Name': 'string', 'Description': 'string', 'LicenseCountingType': 'vCPU'|'Instance'|'Core'|'Socket', 'LicenseRules': [ 'string', ], 'LicenseCount': 123, 'LicenseCountHardLimit': True|False, 'ConsumedLicenses': 123, 'Status': 'string', 'OwnerAccountId': 'string', 'ConsumedLicenseSummaryList': [ { 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ConsumedLicenses': 123 }, ], 'ManagedResourceSummaryList': [ { 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'AssociationCount': 123 }, ], 'ProductInformationList': [ { 'ResourceType': 'string', 'ProductInformationFilterList': [ { 'ProductInformationFilterName': 'string', 'ProductInformationFilterValue': [ 'string', ], 'ProductInformationFilterComparator': 'string' }, ] }, ], 'AutomatedDiscoveryInformation': { 'LastRunTime': datetime(2015, 1, 1) } }, ], 'NextToken': 'string' } Response Structure (dict) -- LicenseConfigurations (list) -- Information about the license configurations. (dict) -- A license configuration is an abstraction of a customer license agreement that can be consumed and enforced by License Manager. Components include specifications for the license type (licensing by instance, socket, CPU, or vCPU), allowed tenancy (shared tenancy, Dedicated Instance, Dedicated Host, or all of these), host affinity (how long a VM must be associated with a host), and the number of licenses purchased and used. LicenseConfigurationId (string) -- Unique ID of the license configuration. LicenseConfigurationArn (string) -- Amazon Resource Name (ARN) of the license configuration. Name (string) -- Name of the license configuration. Description (string) -- Description of the license configuration. LicenseCountingType (string) -- Dimension to use to track the license inventory. LicenseRules (list) -- License rules. (string) -- LicenseCount (integer) -- Number of licenses managed by the license configuration. LicenseCountHardLimit (boolean) -- Number of available licenses as a hard limit. ConsumedLicenses (integer) -- Number of licenses consumed. Status (string) -- Status of the license configuration. OwnerAccountId (string) -- Account ID of the license configuration\'s owner. ConsumedLicenseSummaryList (list) -- Summaries for licenses consumed by various resources. (dict) -- Details about license consumption. ResourceType (string) -- Resource type of the resource consuming a license. ConsumedLicenses (integer) -- Number of licenses consumed by the resource. ManagedResourceSummaryList (list) -- Summaries for managed resources. (dict) -- Summary information about a managed resource. ResourceType (string) -- Type of resource associated with a license. AssociationCount (integer) -- Number of resources associated with licenses. ProductInformationList (list) -- Product information. (dict) -- Describes product information for a license configuration. ResourceType (string) -- Resource type. The value is SSM_MANAGED . ProductInformationFilterList (list) -- Product information filters. The following filters and logical operators are supported: Application Name - The name of the application. Logical operator is EQUALS . Application Publisher - The publisher of the application. Logical operator is EQUALS . Application Version - The version of the application. Logical operator is EQUALS . Platform Name - The name of the platform. Logical operator is EQUALS . Platform Type - The platform type. Logical operator is EQUALS . License Included - The type of license included. Logical operators are EQUALS and NOT_EQUALS . Possible values are sql-server-enterprise | sql-server-standard | sql-server-web | windows-server-datacenter . (dict) -- Describes product information filters. ProductInformationFilterName (string) -- Filter name. ProductInformationFilterValue (list) -- Filter value. (string) -- ProductInformationFilterComparator (string) -- Logical operator. AutomatedDiscoveryInformation (dict) -- Automated discovery information. LastRunTime (datetime) -- Time that automated discovery last ran. NextToken (string) -- Token for the next set of results. Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.FilterLimitExceededException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: { 'LicenseConfigurations': [ { 'LicenseConfigurationId': 'string', 'LicenseConfigurationArn': 'string', 'Name': 'string', 'Description': 'string', 'LicenseCountingType': 'vCPU'|'Instance'|'Core'|'Socket', 'LicenseRules': [ 'string', ], 'LicenseCount': 123, 'LicenseCountHardLimit': True|False, 'ConsumedLicenses': 123, 'Status': 'string', 'OwnerAccountId': 'string', 'ConsumedLicenseSummaryList': [ { 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ConsumedLicenses': 123 }, ], 'ManagedResourceSummaryList': [ { 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'AssociationCount': 123 }, ], 'ProductInformationList': [ { 'ResourceType': 'string', 'ProductInformationFilterList': [ { 'ProductInformationFilterName': 'string', 'ProductInformationFilterValue': [ 'string', ], 'ProductInformationFilterComparator': 'string' }, ] }, ], 'AutomatedDiscoveryInformation': { 'LastRunTime': datetime(2015, 1, 1) } }, ], 'NextToken': 'string' } :returns: (string) -- """ pass def list_license_specifications_for_resource(ResourceArn=None, MaxResults=None, NextToken=None): """ Describes the license configurations for the specified resource. See also: AWS API Documentation Exceptions :example: response = client.list_license_specifications_for_resource( ResourceArn='string', MaxResults=123, NextToken='string' ) :type ResourceArn: string :param ResourceArn: [REQUIRED]\nAmazon Resource Name (ARN) of a resource that has an associated license configuration.\n :type MaxResults: integer :param MaxResults: Maximum number of results to return in a single call. :type NextToken: string :param NextToken: Token for the next set of results. :rtype: dict ReturnsResponse Syntax { 'LicenseSpecifications': [ { 'LicenseConfigurationArn': 'string' }, ], 'NextToken': 'string' } Response Structure (dict) -- LicenseSpecifications (list) -- License configurations associated with a resource. (dict) -- Details for associating a license configuration with a resource. LicenseConfigurationArn (string) -- Amazon Resource Name (ARN) of the license configuration. NextToken (string) -- Token for the next set of results. Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: { 'LicenseSpecifications': [ { 'LicenseConfigurationArn': 'string' }, ], 'NextToken': 'string' } :returns: LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException """ pass def list_resource_inventory(MaxResults=None, NextToken=None, Filters=None): """ Lists resources managed using Systems Manager inventory. See also: AWS API Documentation Exceptions :example: response = client.list_resource_inventory( MaxResults=123, NextToken='string', Filters=[ { 'Name': 'string', 'Condition': 'EQUALS'|'NOT_EQUALS'|'BEGINS_WITH'|'CONTAINS', 'Value': 'string' }, ] ) :type MaxResults: integer :param MaxResults: Maximum number of results to return in a single call. :type NextToken: string :param NextToken: Token for the next set of results. :type Filters: list :param Filters: Filters to scope the results. The following filters and logical operators are supported:\n\naccount_id - The ID of the AWS account that owns the resource. Logical operators are EQUALS | NOT_EQUALS .\napplication_name - The name of the application. Logical operators are EQUALS | BEGINS_WITH .\nlicense_included - The type of license included. Logical operators are EQUALS | NOT_EQUALS . Possible values are sql-server-enterprise | sql-server-standard | sql-server-web | windows-server-datacenter .\nplatform - The platform of the resource. Logical operators are EQUALS | BEGINS_WITH .\nresource_id - The ID of the resource. Logical operators are EQUALS | NOT_EQUALS .\n\n\n(dict) --An inventory filter.\n\nName (string) -- [REQUIRED]Name of the filter.\n\nCondition (string) -- [REQUIRED]Condition of the filter.\n\nValue (string) --Value of the filter.\n\n\n\n\n :rtype: dict ReturnsResponse Syntax { 'ResourceInventoryList': [ { 'ResourceId': 'string', 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ResourceArn': 'string', 'Platform': 'string', 'PlatformVersion': 'string', 'ResourceOwningAccountId': 'string' }, ], 'NextToken': 'string' } Response Structure (dict) -- ResourceInventoryList (list) -- Information about the resources. (dict) -- Details about a resource. ResourceId (string) -- ID of the resource. ResourceType (string) -- Type of resource. ResourceArn (string) -- Amazon Resource Name (ARN) of the resource. Platform (string) -- Platform of the resource. PlatformVersion (string) -- Platform version of the resource in the inventory. ResourceOwningAccountId (string) -- ID of the account that owns the resource. NextToken (string) -- Token for the next set of results. Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.FilterLimitExceededException LicenseManager.Client.exceptions.FailedDependencyException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: { 'ResourceInventoryList': [ { 'ResourceId': 'string', 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ResourceArn': 'string', 'Platform': 'string', 'PlatformVersion': 'string', 'ResourceOwningAccountId': 'string' }, ], 'NextToken': 'string' } :returns: LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.FilterLimitExceededException LicenseManager.Client.exceptions.FailedDependencyException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException """ pass def list_tags_for_resource(ResourceArn=None): """ Lists the tags for the specified license configuration. See also: AWS API Documentation Exceptions :example: response = client.list_tags_for_resource( ResourceArn='string' ) :type ResourceArn: string :param ResourceArn: [REQUIRED]\nAmazon Resource Name (ARN) of the license configuration.\n :rtype: dict ReturnsResponse Syntax{ 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] } Response Structure (dict) -- Tags (list) --Information about the tags. (dict) --Details about a tag for a license configuration. Key (string) --Tag key. Value (string) --Tag value. Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: { 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] } """ pass def list_usage_for_license_configuration(LicenseConfigurationArn=None, MaxResults=None, NextToken=None, Filters=None): """ Lists all license usage records for a license configuration, displaying license consumption details by resource at a selected point in time. Use this action to audit the current license consumption for any license inventory and configuration. See also: AWS API Documentation Exceptions :example: response = client.list_usage_for_license_configuration( LicenseConfigurationArn='string', MaxResults=123, NextToken='string', Filters=[ { 'Name': 'string', 'Values': [ 'string', ] }, ] ) :type LicenseConfigurationArn: string :param LicenseConfigurationArn: [REQUIRED]\nAmazon Resource Name (ARN) of the license configuration.\n :type MaxResults: integer :param MaxResults: Maximum number of results to return in a single call. :type NextToken: string :param NextToken: Token for the next set of results. :type Filters: list :param Filters: Filters to scope the results. The following filters and logical operators are supported:\n\nresourceArn - The ARN of the license configuration resource. Logical operators are EQUALS | NOT_EQUALS .\nresourceType - The resource type (EC2_INSTANCE | EC2_HOST | EC2_AMI | SYSTEMS_MANAGER_MANAGED_INSTANCE). Logical operators are EQUALS | NOT_EQUALS .\nresourceAccount - The ID of the account that owns the resource. Logical operators are EQUALS | NOT_EQUALS .\n\n\n(dict) --A filter name and value pair that is used to return more specific results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.\n\nName (string) --Name of the filter. Filter names are case-sensitive.\n\nValues (list) --Filter values. Filter values are case-sensitive.\n\n(string) --\n\n\n\n\n\n :rtype: dict ReturnsResponse Syntax { 'LicenseConfigurationUsageList': [ { 'ResourceArn': 'string', 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ResourceStatus': 'string', 'ResourceOwnerId': 'string', 'AssociationTime': datetime(2015, 1, 1), 'ConsumedLicenses': 123 }, ], 'NextToken': 'string' } Response Structure (dict) -- LicenseConfigurationUsageList (list) -- Information about the license configurations. (dict) -- Details about the usage of a resource associated with a license configuration. ResourceArn (string) -- Amazon Resource Name (ARN) of the resource. ResourceType (string) -- Type of resource. ResourceStatus (string) -- Status of the resource. ResourceOwnerId (string) -- ID of the account that owns the resource. AssociationTime (datetime) -- Time when the license configuration was initially associated with the resource. ConsumedLicenses (integer) -- Number of licenses consumed by the resource. NextToken (string) -- Token for the next set of results. Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.FilterLimitExceededException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: { 'LicenseConfigurationUsageList': [ { 'ResourceArn': 'string', 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ResourceStatus': 'string', 'ResourceOwnerId': 'string', 'AssociationTime': datetime(2015, 1, 1), 'ConsumedLicenses': 123 }, ], 'NextToken': 'string' } :returns: LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.FilterLimitExceededException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException """ pass def tag_resource(ResourceArn=None, Tags=None): """ Adds the specified tags to the specified license configuration. See also: AWS API Documentation Exceptions :example: response = client.tag_resource( ResourceArn='string', Tags=[ { 'Key': 'string', 'Value': 'string' }, ] ) :type ResourceArn: string :param ResourceArn: [REQUIRED]\nAmazon Resource Name (ARN) of the license configuration.\n :type Tags: list :param Tags: [REQUIRED]\nOne or more tags.\n\n(dict) --Details about a tag for a license configuration.\n\nKey (string) --Tag key.\n\nValue (string) --Tag value.\n\n\n\n\n :rtype: dict ReturnsResponse Syntax {} Response Structure (dict) -- Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: {} :returns: (dict) -- """ pass def untag_resource(ResourceArn=None, TagKeys=None): """ Removes the specified tags from the specified license configuration. See also: AWS API Documentation Exceptions :example: response = client.untag_resource( ResourceArn='string', TagKeys=[ 'string', ] ) :type ResourceArn: string :param ResourceArn: [REQUIRED]\nAmazon Resource Name (ARN) of the license configuration.\n :type TagKeys: list :param TagKeys: [REQUIRED]\nKeys identifying the tags to remove.\n\n(string) --\n\n :rtype: dict ReturnsResponse Syntax {} Response Structure (dict) -- Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: {} :returns: (dict) -- """ pass def update_license_configuration(LicenseConfigurationArn=None, LicenseConfigurationStatus=None, LicenseRules=None, LicenseCount=None, LicenseCountHardLimit=None, Name=None, Description=None, ProductInformationList=None): """ Modifies the attributes of an existing license configuration. A license configuration is an abstraction of a customer license agreement that can be consumed and enforced by License Manager. Components include specifications for the license type (licensing by instance, socket, CPU, or vCPU), allowed tenancy (shared tenancy, Dedicated Instance, Dedicated Host, or all of these), host affinity (how long a VM must be associated with a host), and the number of licenses purchased and used. See also: AWS API Documentation Exceptions :example: response = client.update_license_configuration( LicenseConfigurationArn='string', LicenseConfigurationStatus='AVAILABLE'|'DISABLED', LicenseRules=[ 'string', ], LicenseCount=123, LicenseCountHardLimit=True|False, Name='string', Description='string', ProductInformationList=[ { 'ResourceType': 'string', 'ProductInformationFilterList': [ { 'ProductInformationFilterName': 'string', 'ProductInformationFilterValue': [ 'string', ], 'ProductInformationFilterComparator': 'string' }, ] }, ] ) :type LicenseConfigurationArn: string :param LicenseConfigurationArn: [REQUIRED]\nAmazon Resource Name (ARN) of the license configuration.\n :type LicenseConfigurationStatus: string :param LicenseConfigurationStatus: New status of the license configuration. :type LicenseRules: list :param LicenseRules: New license rules.\n\n(string) --\n\n :type LicenseCount: integer :param LicenseCount: New number of licenses managed by the license configuration. :type LicenseCountHardLimit: boolean :param LicenseCountHardLimit: New hard limit of the number of available licenses. :type Name: string :param Name: New name of the license configuration. :type Description: string :param Description: New description of the license configuration. :type ProductInformationList: list :param ProductInformationList: New product information.\n\n(dict) --Describes product information for a license configuration.\n\nResourceType (string) -- [REQUIRED]Resource type. The value is SSM_MANAGED .\n\nProductInformationFilterList (list) -- [REQUIRED]Product information filters. The following filters and logical operators are supported:\n\nApplication Name - The name of the application. Logical operator is EQUALS .\nApplication Publisher - The publisher of the application. Logical operator is EQUALS .\nApplication Version - The version of the application. Logical operator is EQUALS .\nPlatform Name - The name of the platform. Logical operator is EQUALS .\nPlatform Type - The platform type. Logical operator is EQUALS .\nLicense Included - The type of license included. Logical operators are EQUALS and NOT_EQUALS . Possible values are sql-server-enterprise | sql-server-standard | sql-server-web | windows-server-datacenter .\n\n\n(dict) --Describes product information filters.\n\nProductInformationFilterName (string) -- [REQUIRED]Filter name.\n\nProductInformationFilterValue (list) -- [REQUIRED]Filter value.\n\n(string) --\n\n\nProductInformationFilterComparator (string) -- [REQUIRED]Logical operator.\n\n\n\n\n\n\n\n\n :rtype: dict ReturnsResponse Syntax {} Response Structure (dict) -- Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: {} :returns: (dict) -- """ pass def update_license_specifications_for_resource(ResourceArn=None, AddLicenseSpecifications=None, RemoveLicenseSpecifications=None): """ Adds or removes the specified license configurations for the specified AWS resource. You can update the license specifications of AMIs, instances, and hosts. You cannot update the license specifications for launch templates and AWS CloudFormation templates, as they send license configurations to the operation that creates the resource. See also: AWS API Documentation Exceptions :example: response = client.update_license_specifications_for_resource( ResourceArn='string', AddLicenseSpecifications=[ { 'LicenseConfigurationArn': 'string' }, ], RemoveLicenseSpecifications=[ { 'LicenseConfigurationArn': 'string' }, ] ) :type ResourceArn: string :param ResourceArn: [REQUIRED]\nAmazon Resource Name (ARN) of the AWS resource.\n :type AddLicenseSpecifications: list :param AddLicenseSpecifications: ARNs of the license configurations to add.\n\n(dict) --Details for associating a license configuration with a resource.\n\nLicenseConfigurationArn (string) -- [REQUIRED]Amazon Resource Name (ARN) of the license configuration.\n\n\n\n\n :type RemoveLicenseSpecifications: list :param RemoveLicenseSpecifications: ARNs of the license configurations to remove.\n\n(dict) --Details for associating a license configuration with a resource.\n\nLicenseConfigurationArn (string) -- [REQUIRED]Amazon Resource Name (ARN) of the license configuration.\n\n\n\n\n :rtype: dict ReturnsResponse Syntax {} Response Structure (dict) -- Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.InvalidResourceStateException LicenseManager.Client.exceptions.LicenseUsageException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: {} :returns: (dict) -- """ pass def update_service_settings(S3BucketArn=None, SnsTopicArn=None, OrganizationConfiguration=None, EnableCrossAccountsDiscovery=None): """ Updates License Manager settings for the current Region. See also: AWS API Documentation Exceptions :example: response = client.update_service_settings( S3BucketArn='string', SnsTopicArn='string', OrganizationConfiguration={ 'EnableIntegration': True|False }, EnableCrossAccountsDiscovery=True|False ) :type S3BucketArn: string :param S3BucketArn: Amazon Resource Name (ARN) of the Amazon S3 bucket where the License Manager information is stored. :type SnsTopicArn: string :param SnsTopicArn: Amazon Resource Name (ARN) of the Amazon SNS topic used for License Manager alerts. :type OrganizationConfiguration: dict :param OrganizationConfiguration: Enables integration with AWS Organizations for cross-account discovery.\n\nEnableIntegration (boolean) -- [REQUIRED]Enables AWS Organization integration.\n\n\n :type EnableCrossAccountsDiscovery: boolean :param EnableCrossAccountsDiscovery: Activates cross-account discovery. :rtype: dict ReturnsResponse Syntax {} Response Structure (dict) -- Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: {} :returns: (dict) -- """ pass
""" The MIT License (MIT) Copyright (c) 2016 WavyCloud Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ def can_paginate(operation_name=None): """ Check if an operation can be paginated. :type operation_name: string :param operation_name: The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator('create_foo'). """ pass def create_license_configuration(Name=None, Description=None, LicenseCountingType=None, LicenseCount=None, LicenseCountHardLimit=None, LicenseRules=None, Tags=None, ProductInformationList=None): """ Creates a license configuration. A license configuration is an abstraction of a customer license agreement that can be consumed and enforced by License Manager. Components include specifications for the license type (licensing by instance, socket, CPU, or vCPU), allowed tenancy (shared tenancy, Dedicated Instance, Dedicated Host, or all of these), host affinity (how long a VM must be associated with a host), and the number of licenses purchased and used. See also: AWS API Documentation Exceptions :example: response = client.create_license_configuration( Name='string', Description='string', LicenseCountingType='vCPU'|'Instance'|'Core'|'Socket', LicenseCount=123, LicenseCountHardLimit=True|False, LicenseRules=[ 'string', ], Tags=[ { 'Key': 'string', 'Value': 'string' }, ], ProductInformationList=[ { 'ResourceType': 'string', 'ProductInformationFilterList': [ { 'ProductInformationFilterName': 'string', 'ProductInformationFilterValue': [ 'string', ], 'ProductInformationFilterComparator': 'string' }, ] }, ] ) :type Name: string :param Name: [REQUIRED] Name of the license configuration. :type Description: string :param Description: Description of the license configuration. :type LicenseCountingType: string :param LicenseCountingType: [REQUIRED] Dimension used to track the license inventory. :type LicenseCount: integer :param LicenseCount: Number of licenses managed by the license configuration. :type LicenseCountHardLimit: boolean :param LicenseCountHardLimit: Indicates whether hard or soft license enforcement is used. Exceeding a hard limit blocks the launch of new instances. :type LicenseRules: list :param LicenseRules: License rules. The syntax is #name=value (for example, #allowedTenancy=EC2-DedicatedHost). Available rules vary by dimension. Cores dimension: allowedTenancy | maximumCores | minimumCores Instances dimension: allowedTenancy | maximumCores | minimumCores | maximumSockets | minimumSockets | maximumVcpus | minimumVcpus Sockets dimension: allowedTenancy | maximumSockets | minimumSockets vCPUs dimension: allowedTenancy | honorVcpuOptimization | maximumVcpus | minimumVcpus (string) -- :type Tags: list :param Tags: Tags to add to the license configuration. (dict) --Details about a tag for a license configuration. Key (string) --Tag key. Value (string) --Tag value. :type ProductInformationList: list :param ProductInformationList: Product information. (dict) --Describes product information for a license configuration. ResourceType (string) -- [REQUIRED]Resource type. The value is SSM_MANAGED . ProductInformationFilterList (list) -- [REQUIRED]Product information filters. The following filters and logical operators are supported: Application Name - The name of the application. Logical operator is EQUALS . Application Publisher - The publisher of the application. Logical operator is EQUALS . Application Version - The version of the application. Logical operator is EQUALS . Platform Name - The name of the platform. Logical operator is EQUALS . Platform Type - The platform type. Logical operator is EQUALS . License Included - The type of license included. Logical operators are EQUALS and NOT_EQUALS . Possible values are sql-server-enterprise | sql-server-standard | sql-server-web | windows-server-datacenter . (dict) --Describes product information filters. ProductInformationFilterName (string) -- [REQUIRED]Filter name. ProductInformationFilterValue (list) -- [REQUIRED]Filter value. (string) -- ProductInformationFilterComparator (string) -- [REQUIRED]Logical operator. :rtype: dict ReturnsResponse Syntax { 'LicenseConfigurationArn': 'string' } Response Structure (dict) -- LicenseConfigurationArn (string) -- Amazon Resource Name (ARN) of the license configuration. Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.ResourceLimitExceededException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: { 'LicenseConfigurationArn': 'string' } :returns: LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.ResourceLimitExceededException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException """ pass def delete_license_configuration(LicenseConfigurationArn=None): """ Deletes the specified license configuration. You cannot delete a license configuration that is in use. See also: AWS API Documentation Exceptions :example: response = client.delete_license_configuration( LicenseConfigurationArn='string' ) :type LicenseConfigurationArn: string :param LicenseConfigurationArn: [REQUIRED] ID of the license configuration. :rtype: dict ReturnsResponse Syntax{} Response Structure (dict) -- Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: {} :returns: LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException """ pass def generate_presigned_url(ClientMethod=None, Params=None, ExpiresIn=None, HttpMethod=None): """ Generate a presigned url given a client, its method, and arguments :type ClientMethod: string :param ClientMethod: The client method to presign for :type Params: dict :param Params: The parameters normally passed to ClientMethod. :type ExpiresIn: int :param ExpiresIn: The number of seconds the presigned url is valid for. By default it expires in an hour (3600 seconds) :type HttpMethod: string :param HttpMethod: The http method to use on the generated url. By default, the http method is whatever is used in the method's model. """ pass def get_license_configuration(LicenseConfigurationArn=None): """ Gets detailed information about the specified license configuration. See also: AWS API Documentation Exceptions :example: response = client.get_license_configuration( LicenseConfigurationArn='string' ) :type LicenseConfigurationArn: string :param LicenseConfigurationArn: [REQUIRED] Amazon Resource Name (ARN) of the license configuration. :rtype: dict ReturnsResponse Syntax{ 'LicenseConfigurationId': 'string', 'LicenseConfigurationArn': 'string', 'Name': 'string', 'Description': 'string', 'LicenseCountingType': 'vCPU'|'Instance'|'Core'|'Socket', 'LicenseRules': [ 'string', ], 'LicenseCount': 123, 'LicenseCountHardLimit': True|False, 'ConsumedLicenses': 123, 'Status': 'string', 'OwnerAccountId': 'string', 'ConsumedLicenseSummaryList': [ { 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ConsumedLicenses': 123 }, ], 'ManagedResourceSummaryList': [ { 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'AssociationCount': 123 }, ], 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ], 'ProductInformationList': [ { 'ResourceType': 'string', 'ProductInformationFilterList': [ { 'ProductInformationFilterName': 'string', 'ProductInformationFilterValue': [ 'string', ], 'ProductInformationFilterComparator': 'string' }, ] }, ], 'AutomatedDiscoveryInformation': { 'LastRunTime': datetime(2015, 1, 1) } } Response Structure (dict) -- LicenseConfigurationId (string) --Unique ID for the license configuration. LicenseConfigurationArn (string) --Amazon Resource Name (ARN) of the license configuration. Name (string) --Name of the license configuration. Description (string) --Description of the license configuration. LicenseCountingType (string) --Dimension on which the licenses are counted. LicenseRules (list) --License rules. (string) -- LicenseCount (integer) --Number of available licenses. LicenseCountHardLimit (boolean) --Sets the number of available licenses as a hard limit. ConsumedLicenses (integer) --Number of licenses assigned to resources. Status (string) --License configuration status. OwnerAccountId (string) --Account ID of the owner of the license configuration. ConsumedLicenseSummaryList (list) --Summaries of the licenses consumed by resources. (dict) --Details about license consumption. ResourceType (string) --Resource type of the resource consuming a license. ConsumedLicenses (integer) --Number of licenses consumed by the resource. ManagedResourceSummaryList (list) --Summaries of the managed resources. (dict) --Summary information about a managed resource. ResourceType (string) --Type of resource associated with a license. AssociationCount (integer) --Number of resources associated with licenses. Tags (list) --Tags for the license configuration. (dict) --Details about a tag for a license configuration. Key (string) --Tag key. Value (string) --Tag value. ProductInformationList (list) --Product information. (dict) --Describes product information for a license configuration. ResourceType (string) --Resource type. The value is SSM_MANAGED . ProductInformationFilterList (list) --Product information filters. The following filters and logical operators are supported: Application Name - The name of the application. Logical operator is EQUALS . Application Publisher - The publisher of the application. Logical operator is EQUALS . Application Version - The version of the application. Logical operator is EQUALS . Platform Name - The name of the platform. Logical operator is EQUALS . Platform Type - The platform type. Logical operator is EQUALS . License Included - The type of license included. Logical operators are EQUALS and NOT_EQUALS . Possible values are sql-server-enterprise | sql-server-standard | sql-server-web | windows-server-datacenter . (dict) --Describes product information filters. ProductInformationFilterName (string) --Filter name. ProductInformationFilterValue (list) --Filter value. (string) -- ProductInformationFilterComparator (string) --Logical operator. AutomatedDiscoveryInformation (dict) --Automated discovery information. LastRunTime (datetime) --Time that automated discovery last ran. Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: { 'LicenseConfigurationId': 'string', 'LicenseConfigurationArn': 'string', 'Name': 'string', 'Description': 'string', 'LicenseCountingType': 'vCPU'|'Instance'|'Core'|'Socket', 'LicenseRules': [ 'string', ], 'LicenseCount': 123, 'LicenseCountHardLimit': True|False, 'ConsumedLicenses': 123, 'Status': 'string', 'OwnerAccountId': 'string', 'ConsumedLicenseSummaryList': [ { 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ConsumedLicenses': 123 }, ], 'ManagedResourceSummaryList': [ { 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'AssociationCount': 123 }, ], 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ], 'ProductInformationList': [ { 'ResourceType': 'string', 'ProductInformationFilterList': [ { 'ProductInformationFilterName': 'string', 'ProductInformationFilterValue': [ 'string', ], 'ProductInformationFilterComparator': 'string' }, ] }, ], 'AutomatedDiscoveryInformation': { 'LastRunTime': datetime(2015, 1, 1) } } :returns: Application Name - The name of the application. Logical operator is EQUALS . Application Publisher - The publisher of the application. Logical operator is EQUALS . Application Version - The version of the application. Logical operator is EQUALS . Platform Name - The name of the platform. Logical operator is EQUALS . Platform Type - The platform type. Logical operator is EQUALS . License Included - The type of license included. Logical operators are EQUALS and NOT_EQUALS . Possible values are sql-server-enterprise | sql-server-standard | sql-server-web | windows-server-datacenter . """ pass def get_paginator(operation_name=None): """ Create a paginator for an operation. :type operation_name: string :param operation_name: The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator('create_foo'). :rtype: L{botocore.paginate.Paginator} ReturnsA paginator object. """ pass def get_service_settings(): """ Gets the License Manager settings for the current Region. See also: AWS API Documentation Exceptions :example: response = client.get_service_settings() :rtype: dict ReturnsResponse Syntax{ 'S3BucketArn': 'string', 'SnsTopicArn': 'string', 'OrganizationConfiguration': { 'EnableIntegration': True|False }, 'EnableCrossAccountsDiscovery': True|False, 'LicenseManagerResourceShareArn': 'string' } Response Structure (dict) -- S3BucketArn (string) --Regional S3 bucket path for storing reports, license trail event data, discovery data, and so on. SnsTopicArn (string) --SNS topic configured to receive notifications from License Manager. OrganizationConfiguration (dict) --Indicates whether AWS Organizations has been integrated with License Manager for cross-account discovery. EnableIntegration (boolean) --Enables AWS Organization integration. EnableCrossAccountsDiscovery (boolean) --Indicates whether cross-account discovery has been enabled. LicenseManagerResourceShareArn (string) --Amazon Resource Name (ARN) of the AWS resource share. The License Manager master account will provide member accounts with access to this share. Exceptions LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: { 'S3BucketArn': 'string', 'SnsTopicArn': 'string', 'OrganizationConfiguration': { 'EnableIntegration': True|False }, 'EnableCrossAccountsDiscovery': True|False, 'LicenseManagerResourceShareArn': 'string' } """ pass def get_waiter(waiter_name=None): """ Returns an object that can wait for some condition. :type waiter_name: str :param waiter_name: The name of the waiter to get. See the waiters section of the service docs for a list of available waiters. :rtype: botocore.waiter.Waiter """ pass def list_associations_for_license_configuration(LicenseConfigurationArn=None, MaxResults=None, NextToken=None): """ Lists the resource associations for the specified license configuration. Resource associations need not consume licenses from a license configuration. For example, an AMI or a stopped instance might not consume a license (depending on the license rules). See also: AWS API Documentation Exceptions :example: response = client.list_associations_for_license_configuration( LicenseConfigurationArn='string', MaxResults=123, NextToken='string' ) :type LicenseConfigurationArn: string :param LicenseConfigurationArn: [REQUIRED] Amazon Resource Name (ARN) of a license configuration. :type MaxResults: integer :param MaxResults: Maximum number of results to return in a single call. :type NextToken: string :param NextToken: Token for the next set of results. :rtype: dict ReturnsResponse Syntax { 'LicenseConfigurationAssociations': [ { 'ResourceArn': 'string', 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ResourceOwnerId': 'string', 'AssociationTime': datetime(2015, 1, 1) }, ], 'NextToken': 'string' } Response Structure (dict) -- LicenseConfigurationAssociations (list) -- Information about the associations for the license configuration. (dict) -- Describes an association with a license configuration. ResourceArn (string) -- Amazon Resource Name (ARN) of the resource. ResourceType (string) -- Type of server resource. ResourceOwnerId (string) -- ID of the AWS account that owns the resource consuming licenses. AssociationTime (datetime) -- Time when the license configuration was associated with the resource. NextToken (string) -- Token for the next set of results. Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.FilterLimitExceededException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: { 'LicenseConfigurationAssociations': [ { 'ResourceArn': 'string', 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ResourceOwnerId': 'string', 'AssociationTime': datetime(2015, 1, 1) }, ], 'NextToken': 'string' } :returns: LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.FilterLimitExceededException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException """ pass def list_failures_for_license_configuration_operations(LicenseConfigurationArn=None, MaxResults=None, NextToken=None): """ Lists the license configuration operations that failed. See also: AWS API Documentation Exceptions :example: response = client.list_failures_for_license_configuration_operations( LicenseConfigurationArn='string', MaxResults=123, NextToken='string' ) :type LicenseConfigurationArn: string :param LicenseConfigurationArn: [REQUIRED] Amazon Resource Name of the license configuration. :type MaxResults: integer :param MaxResults: Maximum number of results to return in a single call. :type NextToken: string :param NextToken: Token for the next set of results. :rtype: dict ReturnsResponse Syntax { 'LicenseOperationFailureList': [ { 'ResourceArn': 'string', 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ErrorMessage': 'string', 'FailureTime': datetime(2015, 1, 1), 'OperationName': 'string', 'ResourceOwnerId': 'string', 'OperationRequestedBy': 'string', 'MetadataList': [ { 'Name': 'string', 'Value': 'string' }, ] }, ], 'NextToken': 'string' } Response Structure (dict) -- LicenseOperationFailureList (list) -- License configuration operations that failed. (dict) -- Describes the failure of a license operation. ResourceArn (string) -- Amazon Resource Name (ARN) of the resource. ResourceType (string) -- Resource type. ErrorMessage (string) -- Error message. FailureTime (datetime) -- Failure time. OperationName (string) -- Name of the operation. ResourceOwnerId (string) -- ID of the AWS account that owns the resource. OperationRequestedBy (string) -- The requester is "License Manager Automated Discovery". MetadataList (list) -- Reserved. (dict) -- Reserved. Name (string) -- Reserved. Value (string) -- Reserved. NextToken (string) -- Token for the next set of results. Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: { 'LicenseOperationFailureList': [ { 'ResourceArn': 'string', 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ErrorMessage': 'string', 'FailureTime': datetime(2015, 1, 1), 'OperationName': 'string', 'ResourceOwnerId': 'string', 'OperationRequestedBy': 'string', 'MetadataList': [ { 'Name': 'string', 'Value': 'string' }, ] }, ], 'NextToken': 'string' } :returns: LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException """ pass def list_license_configurations(LicenseConfigurationArns=None, MaxResults=None, NextToken=None, Filters=None): """ Lists the license configurations for your account. See also: AWS API Documentation Exceptions :example: response = client.list_license_configurations( LicenseConfigurationArns=[ 'string', ], MaxResults=123, NextToken='string', Filters=[ { 'Name': 'string', 'Values': [ 'string', ] }, ] ) :type LicenseConfigurationArns: list :param LicenseConfigurationArns: Amazon Resource Names (ARN) of the license configurations. (string) -- :type MaxResults: integer :param MaxResults: Maximum number of results to return in a single call. :type NextToken: string :param NextToken: Token for the next set of results. :type Filters: list :param Filters: Filters to scope the results. The following filters and logical operators are supported: licenseCountingType - The dimension on which licenses are counted (vCPU). Logical operators are EQUALS | NOT_EQUALS . enforceLicenseCount - A Boolean value that indicates whether hard license enforcement is used. Logical operators are EQUALS | NOT_EQUALS . usagelimitExceeded - A Boolean value that indicates whether the available licenses have been exceeded. Logical operators are EQUALS | NOT_EQUALS . (dict) --A filter name and value pair that is used to return more specific results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. Name (string) --Name of the filter. Filter names are case-sensitive. Values (list) --Filter values. Filter values are case-sensitive. (string) -- :rtype: dict ReturnsResponse Syntax { 'LicenseConfigurations': [ { 'LicenseConfigurationId': 'string', 'LicenseConfigurationArn': 'string', 'Name': 'string', 'Description': 'string', 'LicenseCountingType': 'vCPU'|'Instance'|'Core'|'Socket', 'LicenseRules': [ 'string', ], 'LicenseCount': 123, 'LicenseCountHardLimit': True|False, 'ConsumedLicenses': 123, 'Status': 'string', 'OwnerAccountId': 'string', 'ConsumedLicenseSummaryList': [ { 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ConsumedLicenses': 123 }, ], 'ManagedResourceSummaryList': [ { 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'AssociationCount': 123 }, ], 'ProductInformationList': [ { 'ResourceType': 'string', 'ProductInformationFilterList': [ { 'ProductInformationFilterName': 'string', 'ProductInformationFilterValue': [ 'string', ], 'ProductInformationFilterComparator': 'string' }, ] }, ], 'AutomatedDiscoveryInformation': { 'LastRunTime': datetime(2015, 1, 1) } }, ], 'NextToken': 'string' } Response Structure (dict) -- LicenseConfigurations (list) -- Information about the license configurations. (dict) -- A license configuration is an abstraction of a customer license agreement that can be consumed and enforced by License Manager. Components include specifications for the license type (licensing by instance, socket, CPU, or vCPU), allowed tenancy (shared tenancy, Dedicated Instance, Dedicated Host, or all of these), host affinity (how long a VM must be associated with a host), and the number of licenses purchased and used. LicenseConfigurationId (string) -- Unique ID of the license configuration. LicenseConfigurationArn (string) -- Amazon Resource Name (ARN) of the license configuration. Name (string) -- Name of the license configuration. Description (string) -- Description of the license configuration. LicenseCountingType (string) -- Dimension to use to track the license inventory. LicenseRules (list) -- License rules. (string) -- LicenseCount (integer) -- Number of licenses managed by the license configuration. LicenseCountHardLimit (boolean) -- Number of available licenses as a hard limit. ConsumedLicenses (integer) -- Number of licenses consumed. Status (string) -- Status of the license configuration. OwnerAccountId (string) -- Account ID of the license configuration's owner. ConsumedLicenseSummaryList (list) -- Summaries for licenses consumed by various resources. (dict) -- Details about license consumption. ResourceType (string) -- Resource type of the resource consuming a license. ConsumedLicenses (integer) -- Number of licenses consumed by the resource. ManagedResourceSummaryList (list) -- Summaries for managed resources. (dict) -- Summary information about a managed resource. ResourceType (string) -- Type of resource associated with a license. AssociationCount (integer) -- Number of resources associated with licenses. ProductInformationList (list) -- Product information. (dict) -- Describes product information for a license configuration. ResourceType (string) -- Resource type. The value is SSM_MANAGED . ProductInformationFilterList (list) -- Product information filters. The following filters and logical operators are supported: Application Name - The name of the application. Logical operator is EQUALS . Application Publisher - The publisher of the application. Logical operator is EQUALS . Application Version - The version of the application. Logical operator is EQUALS . Platform Name - The name of the platform. Logical operator is EQUALS . Platform Type - The platform type. Logical operator is EQUALS . License Included - The type of license included. Logical operators are EQUALS and NOT_EQUALS . Possible values are sql-server-enterprise | sql-server-standard | sql-server-web | windows-server-datacenter . (dict) -- Describes product information filters. ProductInformationFilterName (string) -- Filter name. ProductInformationFilterValue (list) -- Filter value. (string) -- ProductInformationFilterComparator (string) -- Logical operator. AutomatedDiscoveryInformation (dict) -- Automated discovery information. LastRunTime (datetime) -- Time that automated discovery last ran. NextToken (string) -- Token for the next set of results. Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.FilterLimitExceededException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: { 'LicenseConfigurations': [ { 'LicenseConfigurationId': 'string', 'LicenseConfigurationArn': 'string', 'Name': 'string', 'Description': 'string', 'LicenseCountingType': 'vCPU'|'Instance'|'Core'|'Socket', 'LicenseRules': [ 'string', ], 'LicenseCount': 123, 'LicenseCountHardLimit': True|False, 'ConsumedLicenses': 123, 'Status': 'string', 'OwnerAccountId': 'string', 'ConsumedLicenseSummaryList': [ { 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ConsumedLicenses': 123 }, ], 'ManagedResourceSummaryList': [ { 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'AssociationCount': 123 }, ], 'ProductInformationList': [ { 'ResourceType': 'string', 'ProductInformationFilterList': [ { 'ProductInformationFilterName': 'string', 'ProductInformationFilterValue': [ 'string', ], 'ProductInformationFilterComparator': 'string' }, ] }, ], 'AutomatedDiscoveryInformation': { 'LastRunTime': datetime(2015, 1, 1) } }, ], 'NextToken': 'string' } :returns: (string) -- """ pass def list_license_specifications_for_resource(ResourceArn=None, MaxResults=None, NextToken=None): """ Describes the license configurations for the specified resource. See also: AWS API Documentation Exceptions :example: response = client.list_license_specifications_for_resource( ResourceArn='string', MaxResults=123, NextToken='string' ) :type ResourceArn: string :param ResourceArn: [REQUIRED] Amazon Resource Name (ARN) of a resource that has an associated license configuration. :type MaxResults: integer :param MaxResults: Maximum number of results to return in a single call. :type NextToken: string :param NextToken: Token for the next set of results. :rtype: dict ReturnsResponse Syntax { 'LicenseSpecifications': [ { 'LicenseConfigurationArn': 'string' }, ], 'NextToken': 'string' } Response Structure (dict) -- LicenseSpecifications (list) -- License configurations associated with a resource. (dict) -- Details for associating a license configuration with a resource. LicenseConfigurationArn (string) -- Amazon Resource Name (ARN) of the license configuration. NextToken (string) -- Token for the next set of results. Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: { 'LicenseSpecifications': [ { 'LicenseConfigurationArn': 'string' }, ], 'NextToken': 'string' } :returns: LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException """ pass def list_resource_inventory(MaxResults=None, NextToken=None, Filters=None): """ Lists resources managed using Systems Manager inventory. See also: AWS API Documentation Exceptions :example: response = client.list_resource_inventory( MaxResults=123, NextToken='string', Filters=[ { 'Name': 'string', 'Condition': 'EQUALS'|'NOT_EQUALS'|'BEGINS_WITH'|'CONTAINS', 'Value': 'string' }, ] ) :type MaxResults: integer :param MaxResults: Maximum number of results to return in a single call. :type NextToken: string :param NextToken: Token for the next set of results. :type Filters: list :param Filters: Filters to scope the results. The following filters and logical operators are supported: account_id - The ID of the AWS account that owns the resource. Logical operators are EQUALS | NOT_EQUALS . application_name - The name of the application. Logical operators are EQUALS | BEGINS_WITH . license_included - The type of license included. Logical operators are EQUALS | NOT_EQUALS . Possible values are sql-server-enterprise | sql-server-standard | sql-server-web | windows-server-datacenter . platform - The platform of the resource. Logical operators are EQUALS | BEGINS_WITH . resource_id - The ID of the resource. Logical operators are EQUALS | NOT_EQUALS . (dict) --An inventory filter. Name (string) -- [REQUIRED]Name of the filter. Condition (string) -- [REQUIRED]Condition of the filter. Value (string) --Value of the filter. :rtype: dict ReturnsResponse Syntax { 'ResourceInventoryList': [ { 'ResourceId': 'string', 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ResourceArn': 'string', 'Platform': 'string', 'PlatformVersion': 'string', 'ResourceOwningAccountId': 'string' }, ], 'NextToken': 'string' } Response Structure (dict) -- ResourceInventoryList (list) -- Information about the resources. (dict) -- Details about a resource. ResourceId (string) -- ID of the resource. ResourceType (string) -- Type of resource. ResourceArn (string) -- Amazon Resource Name (ARN) of the resource. Platform (string) -- Platform of the resource. PlatformVersion (string) -- Platform version of the resource in the inventory. ResourceOwningAccountId (string) -- ID of the account that owns the resource. NextToken (string) -- Token for the next set of results. Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.FilterLimitExceededException LicenseManager.Client.exceptions.FailedDependencyException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: { 'ResourceInventoryList': [ { 'ResourceId': 'string', 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ResourceArn': 'string', 'Platform': 'string', 'PlatformVersion': 'string', 'ResourceOwningAccountId': 'string' }, ], 'NextToken': 'string' } :returns: LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.FilterLimitExceededException LicenseManager.Client.exceptions.FailedDependencyException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException """ pass def list_tags_for_resource(ResourceArn=None): """ Lists the tags for the specified license configuration. See also: AWS API Documentation Exceptions :example: response = client.list_tags_for_resource( ResourceArn='string' ) :type ResourceArn: string :param ResourceArn: [REQUIRED] Amazon Resource Name (ARN) of the license configuration. :rtype: dict ReturnsResponse Syntax{ 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] } Response Structure (dict) -- Tags (list) --Information about the tags. (dict) --Details about a tag for a license configuration. Key (string) --Tag key. Value (string) --Tag value. Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: { 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] } """ pass def list_usage_for_license_configuration(LicenseConfigurationArn=None, MaxResults=None, NextToken=None, Filters=None): """ Lists all license usage records for a license configuration, displaying license consumption details by resource at a selected point in time. Use this action to audit the current license consumption for any license inventory and configuration. See also: AWS API Documentation Exceptions :example: response = client.list_usage_for_license_configuration( LicenseConfigurationArn='string', MaxResults=123, NextToken='string', Filters=[ { 'Name': 'string', 'Values': [ 'string', ] }, ] ) :type LicenseConfigurationArn: string :param LicenseConfigurationArn: [REQUIRED] Amazon Resource Name (ARN) of the license configuration. :type MaxResults: integer :param MaxResults: Maximum number of results to return in a single call. :type NextToken: string :param NextToken: Token for the next set of results. :type Filters: list :param Filters: Filters to scope the results. The following filters and logical operators are supported: resourceArn - The ARN of the license configuration resource. Logical operators are EQUALS | NOT_EQUALS . resourceType - The resource type (EC2_INSTANCE | EC2_HOST | EC2_AMI | SYSTEMS_MANAGER_MANAGED_INSTANCE). Logical operators are EQUALS | NOT_EQUALS . resourceAccount - The ID of the account that owns the resource. Logical operators are EQUALS | NOT_EQUALS . (dict) --A filter name and value pair that is used to return more specific results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. Name (string) --Name of the filter. Filter names are case-sensitive. Values (list) --Filter values. Filter values are case-sensitive. (string) -- :rtype: dict ReturnsResponse Syntax { 'LicenseConfigurationUsageList': [ { 'ResourceArn': 'string', 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ResourceStatus': 'string', 'ResourceOwnerId': 'string', 'AssociationTime': datetime(2015, 1, 1), 'ConsumedLicenses': 123 }, ], 'NextToken': 'string' } Response Structure (dict) -- LicenseConfigurationUsageList (list) -- Information about the license configurations. (dict) -- Details about the usage of a resource associated with a license configuration. ResourceArn (string) -- Amazon Resource Name (ARN) of the resource. ResourceType (string) -- Type of resource. ResourceStatus (string) -- Status of the resource. ResourceOwnerId (string) -- ID of the account that owns the resource. AssociationTime (datetime) -- Time when the license configuration was initially associated with the resource. ConsumedLicenses (integer) -- Number of licenses consumed by the resource. NextToken (string) -- Token for the next set of results. Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.FilterLimitExceededException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: { 'LicenseConfigurationUsageList': [ { 'ResourceArn': 'string', 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ResourceStatus': 'string', 'ResourceOwnerId': 'string', 'AssociationTime': datetime(2015, 1, 1), 'ConsumedLicenses': 123 }, ], 'NextToken': 'string' } :returns: LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.FilterLimitExceededException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException """ pass def tag_resource(ResourceArn=None, Tags=None): """ Adds the specified tags to the specified license configuration. See also: AWS API Documentation Exceptions :example: response = client.tag_resource( ResourceArn='string', Tags=[ { 'Key': 'string', 'Value': 'string' }, ] ) :type ResourceArn: string :param ResourceArn: [REQUIRED] Amazon Resource Name (ARN) of the license configuration. :type Tags: list :param Tags: [REQUIRED] One or more tags. (dict) --Details about a tag for a license configuration. Key (string) --Tag key. Value (string) --Tag value. :rtype: dict ReturnsResponse Syntax {} Response Structure (dict) -- Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: {} :returns: (dict) -- """ pass def untag_resource(ResourceArn=None, TagKeys=None): """ Removes the specified tags from the specified license configuration. See also: AWS API Documentation Exceptions :example: response = client.untag_resource( ResourceArn='string', TagKeys=[ 'string', ] ) :type ResourceArn: string :param ResourceArn: [REQUIRED] Amazon Resource Name (ARN) of the license configuration. :type TagKeys: list :param TagKeys: [REQUIRED] Keys identifying the tags to remove. (string) -- :rtype: dict ReturnsResponse Syntax {} Response Structure (dict) -- Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: {} :returns: (dict) -- """ pass def update_license_configuration(LicenseConfigurationArn=None, LicenseConfigurationStatus=None, LicenseRules=None, LicenseCount=None, LicenseCountHardLimit=None, Name=None, Description=None, ProductInformationList=None): """ Modifies the attributes of an existing license configuration. A license configuration is an abstraction of a customer license agreement that can be consumed and enforced by License Manager. Components include specifications for the license type (licensing by instance, socket, CPU, or vCPU), allowed tenancy (shared tenancy, Dedicated Instance, Dedicated Host, or all of these), host affinity (how long a VM must be associated with a host), and the number of licenses purchased and used. See also: AWS API Documentation Exceptions :example: response = client.update_license_configuration( LicenseConfigurationArn='string', LicenseConfigurationStatus='AVAILABLE'|'DISABLED', LicenseRules=[ 'string', ], LicenseCount=123, LicenseCountHardLimit=True|False, Name='string', Description='string', ProductInformationList=[ { 'ResourceType': 'string', 'ProductInformationFilterList': [ { 'ProductInformationFilterName': 'string', 'ProductInformationFilterValue': [ 'string', ], 'ProductInformationFilterComparator': 'string' }, ] }, ] ) :type LicenseConfigurationArn: string :param LicenseConfigurationArn: [REQUIRED] Amazon Resource Name (ARN) of the license configuration. :type LicenseConfigurationStatus: string :param LicenseConfigurationStatus: New status of the license configuration. :type LicenseRules: list :param LicenseRules: New license rules. (string) -- :type LicenseCount: integer :param LicenseCount: New number of licenses managed by the license configuration. :type LicenseCountHardLimit: boolean :param LicenseCountHardLimit: New hard limit of the number of available licenses. :type Name: string :param Name: New name of the license configuration. :type Description: string :param Description: New description of the license configuration. :type ProductInformationList: list :param ProductInformationList: New product information. (dict) --Describes product information for a license configuration. ResourceType (string) -- [REQUIRED]Resource type. The value is SSM_MANAGED . ProductInformationFilterList (list) -- [REQUIRED]Product information filters. The following filters and logical operators are supported: Application Name - The name of the application. Logical operator is EQUALS . Application Publisher - The publisher of the application. Logical operator is EQUALS . Application Version - The version of the application. Logical operator is EQUALS . Platform Name - The name of the platform. Logical operator is EQUALS . Platform Type - The platform type. Logical operator is EQUALS . License Included - The type of license included. Logical operators are EQUALS and NOT_EQUALS . Possible values are sql-server-enterprise | sql-server-standard | sql-server-web | windows-server-datacenter . (dict) --Describes product information filters. ProductInformationFilterName (string) -- [REQUIRED]Filter name. ProductInformationFilterValue (list) -- [REQUIRED]Filter value. (string) -- ProductInformationFilterComparator (string) -- [REQUIRED]Logical operator. :rtype: dict ReturnsResponse Syntax {} Response Structure (dict) -- Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: {} :returns: (dict) -- """ pass def update_license_specifications_for_resource(ResourceArn=None, AddLicenseSpecifications=None, RemoveLicenseSpecifications=None): """ Adds or removes the specified license configurations for the specified AWS resource. You can update the license specifications of AMIs, instances, and hosts. You cannot update the license specifications for launch templates and AWS CloudFormation templates, as they send license configurations to the operation that creates the resource. See also: AWS API Documentation Exceptions :example: response = client.update_license_specifications_for_resource( ResourceArn='string', AddLicenseSpecifications=[ { 'LicenseConfigurationArn': 'string' }, ], RemoveLicenseSpecifications=[ { 'LicenseConfigurationArn': 'string' }, ] ) :type ResourceArn: string :param ResourceArn: [REQUIRED] Amazon Resource Name (ARN) of the AWS resource. :type AddLicenseSpecifications: list :param AddLicenseSpecifications: ARNs of the license configurations to add. (dict) --Details for associating a license configuration with a resource. LicenseConfigurationArn (string) -- [REQUIRED]Amazon Resource Name (ARN) of the license configuration. :type RemoveLicenseSpecifications: list :param RemoveLicenseSpecifications: ARNs of the license configurations to remove. (dict) --Details for associating a license configuration with a resource. LicenseConfigurationArn (string) -- [REQUIRED]Amazon Resource Name (ARN) of the license configuration. :rtype: dict ReturnsResponse Syntax {} Response Structure (dict) -- Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.InvalidResourceStateException LicenseManager.Client.exceptions.LicenseUsageException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: {} :returns: (dict) -- """ pass def update_service_settings(S3BucketArn=None, SnsTopicArn=None, OrganizationConfiguration=None, EnableCrossAccountsDiscovery=None): """ Updates License Manager settings for the current Region. See also: AWS API Documentation Exceptions :example: response = client.update_service_settings( S3BucketArn='string', SnsTopicArn='string', OrganizationConfiguration={ 'EnableIntegration': True|False }, EnableCrossAccountsDiscovery=True|False ) :type S3BucketArn: string :param S3BucketArn: Amazon Resource Name (ARN) of the Amazon S3 bucket where the License Manager information is stored. :type SnsTopicArn: string :param SnsTopicArn: Amazon Resource Name (ARN) of the Amazon SNS topic used for License Manager alerts. :type OrganizationConfiguration: dict :param OrganizationConfiguration: Enables integration with AWS Organizations for cross-account discovery. EnableIntegration (boolean) -- [REQUIRED]Enables AWS Organization integration. :type EnableCrossAccountsDiscovery: boolean :param EnableCrossAccountsDiscovery: Activates cross-account discovery. :rtype: dict ReturnsResponse Syntax {} Response Structure (dict) -- Exceptions LicenseManager.Client.exceptions.InvalidParameterValueException LicenseManager.Client.exceptions.ServerInternalException LicenseManager.Client.exceptions.AuthorizationException LicenseManager.Client.exceptions.AccessDeniedException LicenseManager.Client.exceptions.RateLimitExceededException :return: {} :returns: (dict) -- """ pass
class Categories: def __init__(self, category_name, money_allocated, index_inside_list): self.category_name = category_name self.money_allocated = money_allocated self.index_inside_list = index_inside_list
class Categories: def __init__(self, category_name, money_allocated, index_inside_list): self.category_name = category_name self.money_allocated = money_allocated self.index_inside_list = index_inside_list
class Solution: def fib(self, N: int) -> int: self.seen = {} self.seen[0] = 0 self.seen[1] = 1 return self.dfs(N) def dfs(self, n): if n in self.seen: return self.seen[n] self.seen[n] = self.dfs(n - 1) + self.dfs(n - 2) return self.seen[n]
class Solution: def fib(self, N: int) -> int: self.seen = {} self.seen[0] = 0 self.seen[1] = 1 return self.dfs(N) def dfs(self, n): if n in self.seen: return self.seen[n] self.seen[n] = self.dfs(n - 1) + self.dfs(n - 2) return self.seen[n]