content
stringlengths 7
1.05M
| fixed_cases
stringlengths 1
1.28M
|
---|---|
# Problem0019 - Counting Sundays
#
# https: // github.com/agileshaw/Project-Euler
def totalDays(month, year):
month_list = [4, 6, 9, 11]
if month == 2:
if year % 400 == 0 or ((year % 4 == 0) and year % 100 != 0):
return 29
else:
return 28
elif month in month_list:
return 30
return 31
if __name__ == "__main__":
count = 0
weekday = 0
for year in range(1900, 2001):
for month in range(1, 13):
for day in range(1, totalDays(month, year)+1):
weekday = (weekday + 1) % 7
if weekday == 0 and day == 1 and year != 1900:
count += 1
print("The total number of Sundays is: %d" % count)
|
def total_days(month, year):
month_list = [4, 6, 9, 11]
if month == 2:
if year % 400 == 0 or (year % 4 == 0 and year % 100 != 0):
return 29
else:
return 28
elif month in month_list:
return 30
return 31
if __name__ == '__main__':
count = 0
weekday = 0
for year in range(1900, 2001):
for month in range(1, 13):
for day in range(1, total_days(month, year) + 1):
weekday = (weekday + 1) % 7
if weekday == 0 and day == 1 and (year != 1900):
count += 1
print('The total number of Sundays is: %d' % count)
|
def get_integer_input(message):
"""
This function will display the message to the user
and request that they input an integer.
If the user enters something that is not a number
then the input will be rejected
and an error message will be displayed.
The user will then be asked to try again."""
value_as_string = input(message)
while not value_as_string.isnumeric():
print('The input must be an integer')
value_as_string = input(message)
return int(value_as_string)
age = get_integer_input('Please input your age: ')
print('age is', age)
print(get_integer_input.__doc__)
|
def get_integer_input(message):
"""
This function will display the message to the user
and request that they input an integer.
If the user enters something that is not a number
then the input will be rejected
and an error message will be displayed.
The user will then be asked to try again."""
value_as_string = input(message)
while not value_as_string.isnumeric():
print('The input must be an integer')
value_as_string = input(message)
return int(value_as_string)
age = get_integer_input('Please input your age: ')
print('age is', age)
print(get_integer_input.__doc__)
|
def lower_bound(arr, value, first, last):
"""Find the lower bound of the value in the array
lower bound: the first element in arr that is larger than or equal
to value
Args:
arr : input array
value : target value
first : starting point of the search, inclusive
last : ending point of the search, exclusive
Return
index : integer
if index == last => lower bound does not exist
else => arr[index] >= value
Note:
1. use first + (last - first) // 2 to avoid overflow in old language
2. invariant:
1. all values in the range [initial_first, first) is smaller
than value
2. all values in the range [last, initial_last) is greater than
or equal to value
3. first < last
at the end of the iteration, first = last
if a value greter than or equal to value exists, we simply
return the first element in the range [last, initial_last)
else we can return anything (last, -1, etc) to denote that
such a value does not exist
note also that at the end first and last will always be the same
so it does not matter which one we return
"""
while first < last:
mid = first + (last - first) // 2
if arr[mid] < value:
first = mid + 1
else:
last = mid
return first
def upper_bound(arr, value, first, last):
"""Find the upper bound of the value in the array
upper bound: the first element in arr that is larger than value
Args:
arr : input array
value : target value
first : starting point of the search, inclusive
last : ending point of the search, exclusive
Return
index : integer
if index == last => upper bound does not exist
else => arr[index] > value
"""
while first < last:
mid = first + (last - first) // 2
if arr[mid] <= value:
first = mid + 1
else:
last = mid
return first
|
def lower_bound(arr, value, first, last):
"""Find the lower bound of the value in the array
lower bound: the first element in arr that is larger than or equal
to value
Args:
arr : input array
value : target value
first : starting point of the search, inclusive
last : ending point of the search, exclusive
Return
index : integer
if index == last => lower bound does not exist
else => arr[index] >= value
Note:
1. use first + (last - first) // 2 to avoid overflow in old language
2. invariant:
1. all values in the range [initial_first, first) is smaller
than value
2. all values in the range [last, initial_last) is greater than
or equal to value
3. first < last
at the end of the iteration, first = last
if a value greter than or equal to value exists, we simply
return the first element in the range [last, initial_last)
else we can return anything (last, -1, etc) to denote that
such a value does not exist
note also that at the end first and last will always be the same
so it does not matter which one we return
"""
while first < last:
mid = first + (last - first) // 2
if arr[mid] < value:
first = mid + 1
else:
last = mid
return first
def upper_bound(arr, value, first, last):
"""Find the upper bound of the value in the array
upper bound: the first element in arr that is larger than value
Args:
arr : input array
value : target value
first : starting point of the search, inclusive
last : ending point of the search, exclusive
Return
index : integer
if index == last => upper bound does not exist
else => arr[index] > value
"""
while first < last:
mid = first + (last - first) // 2
if arr[mid] <= value:
first = mid + 1
else:
last = mid
return first
|
class CraftParser:
@staticmethod
def calculate_mass(craft_filepath: str, masses: dict) -> int:
parts = []
craft_lines = []
with open(craft_filepath) as craft:
craft_lines = [line.strip() for line in craft.readlines()]
for index, line in enumerate(craft_lines):
if "part = " in line:
# Replacing period with underscore because in craft files some parts
# are stored with periods even though their names in cfg files
# use underscores
partname = line.split()[2].split('_')[0].replace('.', '_')
parts.append((partname, 1))
elif 'RESOURCE' in line:
resourcename = craft_lines[index + 2].split()[2]
amount = float(craft_lines[index + 3].split()[2])
parts.append((resourcename, amount))
mass = 0
for part in parts:
mass += masses[part[0]] * part[1]
return mass
@staticmethod
def calculate_mass_distribution_3d(craft_filepath: str, masses: dict):
parts = []
craft_lines = []
with open(craft_filepath) as craft:
craft_lines = [line.strip() for line in craft.readlines()]
for index, line in enumerate(craft_lines):
if line == "PART":
# Replacing period with underscore because in craft files some parts
# are stored with periods even though their names in cfg files
# use underscores
partname = craft_lines[index + 2].split()[2].split('_')[0].replace('.', '_')
for i in range(3, 7):
if "pos = " in craft_lines[index + i]:
pos = [float(coord) for coord in craft_lines[index + i].split()[2].split(',')]
break
parts.append([masses[partname], pos])
elif 'RESOURCE' in line:
resourcename = craft_lines[index + 2].split()[2]
amount = float(craft_lines[index + 3].split()[2])
parts[-1][0] += amount * masses[resourcename]
return parts
|
class Craftparser:
@staticmethod
def calculate_mass(craft_filepath: str, masses: dict) -> int:
parts = []
craft_lines = []
with open(craft_filepath) as craft:
craft_lines = [line.strip() for line in craft.readlines()]
for (index, line) in enumerate(craft_lines):
if 'part = ' in line:
partname = line.split()[2].split('_')[0].replace('.', '_')
parts.append((partname, 1))
elif 'RESOURCE' in line:
resourcename = craft_lines[index + 2].split()[2]
amount = float(craft_lines[index + 3].split()[2])
parts.append((resourcename, amount))
mass = 0
for part in parts:
mass += masses[part[0]] * part[1]
return mass
@staticmethod
def calculate_mass_distribution_3d(craft_filepath: str, masses: dict):
parts = []
craft_lines = []
with open(craft_filepath) as craft:
craft_lines = [line.strip() for line in craft.readlines()]
for (index, line) in enumerate(craft_lines):
if line == 'PART':
partname = craft_lines[index + 2].split()[2].split('_')[0].replace('.', '_')
for i in range(3, 7):
if 'pos = ' in craft_lines[index + i]:
pos = [float(coord) for coord in craft_lines[index + i].split()[2].split(',')]
break
parts.append([masses[partname], pos])
elif 'RESOURCE' in line:
resourcename = craft_lines[index + 2].split()[2]
amount = float(craft_lines[index + 3].split()[2])
parts[-1][0] += amount * masses[resourcename]
return parts
|
# -*- coding: utf-8 -*-
"""
Created on Mon Feb 4 23:24:41 2019
@author: rocco
"""
#function to convert datetime to seconds
def datetime2seconds(date_time):
return time.mktime(date_time.timetuple())
#function to convert datetime to seconds
def dateinterv2date(interval):
return interval.left.to_pydatetime().date()
#map
list1 = list(map(datetime2seconds, idx))
#map
list3 = list(map(dateinterv2date, ser))
#bin the latitude
lat_min = [-90.000000, -77.800003, -72.713684, -68.787941, -65.458900, -62.508518, -59.825134, -57.342499]
lat_max = [-77.800003, -72.713684, -68.787941, -65.458900, -62.508518, -59.825134, -57.342499, -55.017498]
a_tot = 46178707.119740881
bins = pd.IntervalIndex.from_tuples([(lat_min[0], lat_max[0]), (lat_min[1], lat_max[1]), (lat_min[2], lat_max[2]),\
(lat_min[3], lat_max[3]), (lat_min[4], lat_max[4]), (lat_min[5], lat_max[5]), \
(lat_min[6], lat_max[6]), (lat_min[7], lat_max[7])])
#binning
sr_binned = pd.cut(df_lt["lat"], bins)
sr_binned_total, bins_date = pd.cut(df_lt.date, 10, retbins = True)
bins_date = pd.to_datetime(bins_date)
sr_binned_clouds = pd.Series(pd.cut(df_data.index, bins_date))
#count
counts = pd.value_counts(sr_binned)
counts_clouds = pd.value_counts(sr_binned_clouds)
#fun to compute , c1 is cloud counts, c2 is total counts
def counts_ratio(c1, c2):
return c1/c2
#map
list2 = list(map(counts_ratio, counts_cl, counts))
#compute mean
np.asarray(list2).mean()
#covered area
#fun to extract info
(df_data["lat"] < lat_max[0]) & (df_data["lat"] > lat_min[0])
#histogram
plt.hist2d(list1, df_data["htang"], bins=[10, 20])
p1 = pd.value_counts(df_data[df_data["data_range"] == counts.index[0]]["lat_range"]).sort_index()[7]
pd.date_range(start='2/1/2018', periods=11, freq='3D')[-1]
|
"""
Created on Mon Feb 4 23:24:41 2019
@author: rocco
"""
def datetime2seconds(date_time):
return time.mktime(date_time.timetuple())
def dateinterv2date(interval):
return interval.left.to_pydatetime().date()
list1 = list(map(datetime2seconds, idx))
list3 = list(map(dateinterv2date, ser))
lat_min = [-90.0, -77.800003, -72.713684, -68.787941, -65.4589, -62.508518, -59.825134, -57.342499]
lat_max = [-77.800003, -72.713684, -68.787941, -65.4589, -62.508518, -59.825134, -57.342499, -55.017498]
a_tot = 46178707.11974088
bins = pd.IntervalIndex.from_tuples([(lat_min[0], lat_max[0]), (lat_min[1], lat_max[1]), (lat_min[2], lat_max[2]), (lat_min[3], lat_max[3]), (lat_min[4], lat_max[4]), (lat_min[5], lat_max[5]), (lat_min[6], lat_max[6]), (lat_min[7], lat_max[7])])
sr_binned = pd.cut(df_lt['lat'], bins)
(sr_binned_total, bins_date) = pd.cut(df_lt.date, 10, retbins=True)
bins_date = pd.to_datetime(bins_date)
sr_binned_clouds = pd.Series(pd.cut(df_data.index, bins_date))
counts = pd.value_counts(sr_binned)
counts_clouds = pd.value_counts(sr_binned_clouds)
def counts_ratio(c1, c2):
return c1 / c2
list2 = list(map(counts_ratio, counts_cl, counts))
np.asarray(list2).mean()
(df_data['lat'] < lat_max[0]) & (df_data['lat'] > lat_min[0])
plt.hist2d(list1, df_data['htang'], bins=[10, 20])
p1 = pd.value_counts(df_data[df_data['data_range'] == counts.index[0]]['lat_range']).sort_index()[7]
pd.date_range(start='2/1/2018', periods=11, freq='3D')[-1]
|
"""
Author: Shengjia Yan
Date: 2018-05-11 Friday
Email: [email protected]
Time Complexity: O(n)
Space Complexity: O(n)
"""
class Solution:
def reverseWords(self, s):
"""
:type s: str
:rtype: str
"""
words = s.split(' ')
res = []
for word in words:
l = len(word)
new_word = ''
for i in range(l):
new_word += word[l-i-1]
res.append(new_word)
new_s = (' ').join(res)
return new_s
|
"""
Author: Shengjia Yan
Date: 2018-05-11 Friday
Email: [email protected]
Time Complexity: O(n)
Space Complexity: O(n)
"""
class Solution:
def reverse_words(self, s):
"""
:type s: str
:rtype: str
"""
words = s.split(' ')
res = []
for word in words:
l = len(word)
new_word = ''
for i in range(l):
new_word += word[l - i - 1]
res.append(new_word)
new_s = ' '.join(res)
return new_s
|
"""You are given an integer n, the number of teams in a tournament that has strange rules:
If the current number of teams is even, each team gets paired with another team. A total of n / 2 matches are played, and n / 2 teams advance to the next round.
If the current number of teams is odd, one team randomly advances in the tournament, and the rest gets paired. A total of (n - 1) / 2 matches are played, and (n - 1) / 2 + 1 teams advance to the next round.
Return the number of matches played in the tournament until a winner is decided.
Example 1:
Input: n = 7
Output: 6
Explanation: Details of the tournament:
- 1st Round: Teams = 7, Matches = 3, and 4 teams advance.
- 2nd Round: Teams = 4, Matches = 2, and 2 teams advance.
- 3rd Round: Teams = 2, Matches = 1, and 1 team is declared the winner.
Total number of matches = 3 + 2 + 1 = 6."""
n = 14
# number of matchs played until winnner is decided
matches = []
while n != 1:
if n % 2 == 0:
matches.append(n // 2)
n = n // 2
else:
matches.append((n - 1) // 2)
n = ((n - 1) // 2) + 1
print(matches)
print(sum(matches))
|
"""You are given an integer n, the number of teams in a tournament that has strange rules:
If the current number of teams is even, each team gets paired with another team. A total of n / 2 matches are played, and n / 2 teams advance to the next round.
If the current number of teams is odd, one team randomly advances in the tournament, and the rest gets paired. A total of (n - 1) / 2 matches are played, and (n - 1) / 2 + 1 teams advance to the next round.
Return the number of matches played in the tournament until a winner is decided.
Example 1:
Input: n = 7
Output: 6
Explanation: Details of the tournament:
- 1st Round: Teams = 7, Matches = 3, and 4 teams advance.
- 2nd Round: Teams = 4, Matches = 2, and 2 teams advance.
- 3rd Round: Teams = 2, Matches = 1, and 1 team is declared the winner.
Total number of matches = 3 + 2 + 1 = 6."""
n = 14
matches = []
while n != 1:
if n % 2 == 0:
matches.append(n // 2)
n = n // 2
else:
matches.append((n - 1) // 2)
n = (n - 1) // 2 + 1
print(matches)
print(sum(matches))
|
# flake8: noqa
responses = {
"success": {
"status_code": 200,
"content": {
"resourceType":"Bundle",
"id":"389a548b-9c85-4491-9795-9306a957030b",
"meta":{
"lastUpdated":"2019-12-18T13:40:02.792-05:00"
},
"type":"searchset",
"total":1,
"link":[
{
"relation":"first",
"url":"https://sandbox.bluebutton.cms.gov/v1/fhir/Patient?_count=10&startIndex=0&_id=-20000000002346"
},
{
"relation":"last",
"url":"https://sandbox.bluebutton.cms.gov/v1/fhir/Patient?_count=10&startIndex=0&_id=-20000000002346"
},
{
"relation":"self",
"url":"https://sandbox.bluebutton.cms.gov/v1/fhir/Patient/?_count=10&_format=application%2Fjson%2Bfhir&_id=-20000000002346&startIndex=0"
}
],
"entry":[
{
"resource":{
"resourceType":"Patient",
"id":"-20000000002346",
"extension":[
{
"url":"https://bluebutton.cms.gov/resources/variables/race",
"valueCoding":{
"system":"https://bluebutton.cms.gov/resources/variables/race",
"code":"1",
"display":"White"
}
}
],
"identifier":[
{
"system":"https://bluebutton.cms.gov/resources/variables/bene_id",
"value":"-20000000002346"
},
{
"system":"https://bluebutton.cms.gov/resources/identifier/mbi-hash",
"value":"98765432137efea543f4f370f96f1dbf01c3e3129041dba3ea43675987654321"
}
],
"name":[
{
"use":"usual",
"family":"Doe",
"given":[
"John",
"X"
]
}
],
"gender":"male",
"birthDate":"2000-06-01",
"address":[
{
"district":"999",
"state":"48",
"postalCode":"99999"
}
]
}
}
]
},
},
"not_found": {
"status_code": 200,
"content": {
"resourceType":"Bundle",
"id":"389a548b-9c85-4491-9795-9306a957030b",
"meta":{
"lastUpdated":"2019-12-18T13:40:02.792-05:00"
},
"type":"searchset",
"total":0,
"link":[
{
"relation":"first",
"url":"https://sandbox.bluebutton.cms.gov/v1/fhir/Patient?_count=10&startIndex=0&_id=-20000000002346"
},
{
"relation":"last",
"url":"https://sandbox.bluebutton.cms.gov/v1/fhir/Patient?_count=10&startIndex=0&_id=-20000000002346"
},
{
"relation":"self",
"url":"https://sandbox.bluebutton.cms.gov/v1/fhir/Patient/?_count=10&_format=application%2Fjson%2Bfhir&_id=-20000000002346&startIndex=0"
}
],
},
},
"error": {
"status_code": 500,
},
"duplicates": {
"status_code": 200,
"content": {
"resourceType":"Bundle",
"id":"389a548b-9c85-4491-9795-9306a957030b",
"meta":{
"lastUpdated":"2019-12-18T13:40:02.792-05:00"
},
"type":"searchset",
"total":2,
"link":[
{
"relation":"first",
"url":"https://sandbox.bluebutton.cms.gov/v1/fhir/Patient?_count=10&startIndex=0&_id=-20000000002346"
},
{
"relation":"last",
"url":"https://sandbox.bluebutton.cms.gov/v1/fhir/Patient?_count=10&startIndex=0&_id=-20000000002346"
},
{
"relation":"self",
"url":"https://sandbox.bluebutton.cms.gov/v1/fhir/Patient/?_count=10&_format=application%2Fjson%2Bfhir&_id=-20000000002346&startIndex=0"
}
],
"entry":[
{
"resource":{
"resourceType":"Patient",
"id":"-20000000002346",
"extension":[
{
"url":"https://bluebutton.cms.gov/resources/variables/race",
"valueCoding":{
"system":"https://bluebutton.cms.gov/resources/variables/race",
"code":"1",
"display":"White"
}
}
],
"identifier":[
{
"system":"https://bluebutton.cms.gov/resources/variables/bene_id",
"value":"-20000000002346"
},
{
"system":"https://bluebutton.cms.gov/resources/identifier/mbi-hash",
"value":"98765432137efea543f4f370f96f1dbf01c3e3129041dba3ea43675987654321"
}
],
"name":[
{
"use":"usual",
"family":"Doe",
"given":[
"John",
"X"
]
}
],
"gender":"male",
"birthDate":"2000-06-01",
"address":[
{
"district":"999",
"state":"48",
"postalCode":"99999"
}
]
}
}, {
"resource":{
"resourceType":"Patient",
"id":"-20000000002346",
"extension":[
{
"url":"https://bluebutton.cms.gov/resources/variables/race",
"valueCoding":{
"system":"https://bluebutton.cms.gov/resources/variables/race",
"code":"1",
"display":"White"
}
}
],
"identifier":[
{
"system":"https://bluebutton.cms.gov/resources/variables/bene_id",
"value":"-20000000002346"
},
{
"system":"https://bluebutton.cms.gov/resources/identifier/mbi-hash",
"value":"98765432137efea543f4f370f96f1dbf01c3e3129041dba3ea43675987654321"
}
],
"name":[
{
"use":"usual",
"family":"Doe",
"given":[
"John",
"X"
]
}
],
"gender":"male",
"birthDate":"2000-06-01",
"address":[
{
"district":"999",
"state":"48",
"postalCode":"99999"
}
]
}
}
]
},
},
"malformed": {
"status_code": 200,
"content": {
"resourceType":"Bundle",
"id":"389a548b-9c85-4491-9795-9306a957030b",
"meta":{
"lastUpdated":"2019-12-18T13:40:02.792-05:00"
},
"type":"searchset",
"total":1,
"link":[
{
"relation":"first",
"url":"https://sandbox.bluebutton.cms.gov/v1/fhir/Patient?_count=10&startIndex=0&_id=-20000000002346"
},
{
"relation":"last",
"url":"https://sandbox.bluebutton.cms.gov/v1/fhir/Patient?_count=10&startIndex=0&_id=-20000000002346"
},
{
"relation":"self",
"url":"https://sandbox.bluebutton.cms.gov/v1/fhir/Patient/?_count=10&_format=application%2Fjson%2Bfhir&_id=-20000000002346&startIndex=0"
}
],
"entry":[
{
"resource":{
"resourceType":"Patient",
"_id":"-20000000002346",
"extension":[
{
"url":"https://bluebutton.cms.gov/resources/variables/race",
"valueCoding":{
"system":"https://bluebutton.cms.gov/resources/variables/race",
"code":"1",
"display":"White"
}
}
],
"identifier":[
{
"system":"https://bluebutton.cms.gov/resources/variables/bene_id",
"value":"-20000000002346"
},
{
"system":"https://bluebutton.cms.gov/resources/identifier/mbi-hash",
"value":"98765432137efea543f4f370f96f1dbf01c3e3129041dba3ea43675987654321"
}
],
"name":[
{
"use":"usual",
"family":"Doe",
"given":[
"John",
"X"
]
}
],
"gender":"male",
"birthDate":"2000-06-01",
"address":[
{
"district":"999",
"state":"48",
"postalCode":"99999"
}
]
}
}
]
},
},
"lying": {
"status_code": 200,
"content": {
"resourceType":"Bundle",
"id":"389a548b-9c85-4491-9795-9306a957030b",
"meta":{
"lastUpdated":"2019-12-18T13:40:02.792-05:00"
},
"type":"searchset",
"total":1,
"link":[
{
"relation":"first",
"url":"https://sandbox.bluebutton.cms.gov/v1/fhir/Patient?_count=10&startIndex=0&_id=-20000000002346"
},
{
"relation":"last",
"url":"https://sandbox.bluebutton.cms.gov/v1/fhir/Patient?_count=10&startIndex=0&_id=-20000000002346"
},
{
"relation":"self",
"url":"https://sandbox.bluebutton.cms.gov/v1/fhir/Patient/?_count=10&_format=application%2Fjson%2Bfhir&_id=-20000000002346&startIndex=0"
}
],
"entry":[
{
"resource":{
"resourceType":"Patient",
"id":"-20000000002346",
"extension":[
{
"url":"https://bluebutton.cms.gov/resources/variables/race",
"valueCoding":{
"system":"https://bluebutton.cms.gov/resources/variables/race",
"code":"1",
"display":"White"
}
}
],
"identifier":[
{
"system":"https://bluebutton.cms.gov/resources/variables/bene_id",
"value":"-20000000002346"
},
{
"system":"https://bluebutton.cms.gov/resources/identifier/mbi-hash",
"value":"98765432137efea543f4f370f96f1dbf01c3e3129041dba3ea43675987654321"
}
],
"name":[
{
"use":"usual",
"family":"Doe",
"given":[
"John",
"X"
]
}
],
"gender":"male",
"birthDate":"2000-06-01",
"address":[
{
"district":"999",
"state":"48",
"postalCode":"99999"
}
]
}
}, {
"resource":{
"resourceType":"Patient",
"id":"-20000000002346",
"extension":[
{
"url":"https://bluebutton.cms.gov/resources/variables/race",
"valueCoding":{
"system":"https://bluebutton.cms.gov/resources/variables/race",
"code":"1",
"display":"White"
}
}
],
"identifier":[
{
"system":"https://bluebutton.cms.gov/resources/variables/bene_id",
"value":"-20000000002346"
},
{
"system":"https://bluebutton.cms.gov/resources/identifier/mbi-hash",
"value":"98765432137efea543f4f370f96f1dbf01c3e3129041dba3ea43675987654321"
}
],
"name":[
{
"use":"usual",
"family":"Doe",
"given":[
"John",
"X"
]
}
],
"gender":"male",
"birthDate":"2000-06-01",
"address":[
{
"district":"999",
"state":"48",
"postalCode":"99999"
}
]
}
}
]
},
},
}
|
responses = {'success': {'status_code': 200, 'content': {'resourceType': 'Bundle', 'id': '389a548b-9c85-4491-9795-9306a957030b', 'meta': {'lastUpdated': '2019-12-18T13:40:02.792-05:00'}, 'type': 'searchset', 'total': 1, 'link': [{'relation': 'first', 'url': 'https://sandbox.bluebutton.cms.gov/v1/fhir/Patient?_count=10&startIndex=0&_id=-20000000002346'}, {'relation': 'last', 'url': 'https://sandbox.bluebutton.cms.gov/v1/fhir/Patient?_count=10&startIndex=0&_id=-20000000002346'}, {'relation': 'self', 'url': 'https://sandbox.bluebutton.cms.gov/v1/fhir/Patient/?_count=10&_format=application%2Fjson%2Bfhir&_id=-20000000002346&startIndex=0'}], 'entry': [{'resource': {'resourceType': 'Patient', 'id': '-20000000002346', 'extension': [{'url': 'https://bluebutton.cms.gov/resources/variables/race', 'valueCoding': {'system': 'https://bluebutton.cms.gov/resources/variables/race', 'code': '1', 'display': 'White'}}], 'identifier': [{'system': 'https://bluebutton.cms.gov/resources/variables/bene_id', 'value': '-20000000002346'}, {'system': 'https://bluebutton.cms.gov/resources/identifier/mbi-hash', 'value': '98765432137efea543f4f370f96f1dbf01c3e3129041dba3ea43675987654321'}], 'name': [{'use': 'usual', 'family': 'Doe', 'given': ['John', 'X']}], 'gender': 'male', 'birthDate': '2000-06-01', 'address': [{'district': '999', 'state': '48', 'postalCode': '99999'}]}}]}}, 'not_found': {'status_code': 200, 'content': {'resourceType': 'Bundle', 'id': '389a548b-9c85-4491-9795-9306a957030b', 'meta': {'lastUpdated': '2019-12-18T13:40:02.792-05:00'}, 'type': 'searchset', 'total': 0, 'link': [{'relation': 'first', 'url': 'https://sandbox.bluebutton.cms.gov/v1/fhir/Patient?_count=10&startIndex=0&_id=-20000000002346'}, {'relation': 'last', 'url': 'https://sandbox.bluebutton.cms.gov/v1/fhir/Patient?_count=10&startIndex=0&_id=-20000000002346'}, {'relation': 'self', 'url': 'https://sandbox.bluebutton.cms.gov/v1/fhir/Patient/?_count=10&_format=application%2Fjson%2Bfhir&_id=-20000000002346&startIndex=0'}]}}, 'error': {'status_code': 500}, 'duplicates': {'status_code': 200, 'content': {'resourceType': 'Bundle', 'id': '389a548b-9c85-4491-9795-9306a957030b', 'meta': {'lastUpdated': '2019-12-18T13:40:02.792-05:00'}, 'type': 'searchset', 'total': 2, 'link': [{'relation': 'first', 'url': 'https://sandbox.bluebutton.cms.gov/v1/fhir/Patient?_count=10&startIndex=0&_id=-20000000002346'}, {'relation': 'last', 'url': 'https://sandbox.bluebutton.cms.gov/v1/fhir/Patient?_count=10&startIndex=0&_id=-20000000002346'}, {'relation': 'self', 'url': 'https://sandbox.bluebutton.cms.gov/v1/fhir/Patient/?_count=10&_format=application%2Fjson%2Bfhir&_id=-20000000002346&startIndex=0'}], 'entry': [{'resource': {'resourceType': 'Patient', 'id': '-20000000002346', 'extension': [{'url': 'https://bluebutton.cms.gov/resources/variables/race', 'valueCoding': {'system': 'https://bluebutton.cms.gov/resources/variables/race', 'code': '1', 'display': 'White'}}], 'identifier': [{'system': 'https://bluebutton.cms.gov/resources/variables/bene_id', 'value': '-20000000002346'}, {'system': 'https://bluebutton.cms.gov/resources/identifier/mbi-hash', 'value': '98765432137efea543f4f370f96f1dbf01c3e3129041dba3ea43675987654321'}], 'name': [{'use': 'usual', 'family': 'Doe', 'given': ['John', 'X']}], 'gender': 'male', 'birthDate': '2000-06-01', 'address': [{'district': '999', 'state': '48', 'postalCode': '99999'}]}}, {'resource': {'resourceType': 'Patient', 'id': '-20000000002346', 'extension': [{'url': 'https://bluebutton.cms.gov/resources/variables/race', 'valueCoding': {'system': 'https://bluebutton.cms.gov/resources/variables/race', 'code': '1', 'display': 'White'}}], 'identifier': [{'system': 'https://bluebutton.cms.gov/resources/variables/bene_id', 'value': '-20000000002346'}, {'system': 'https://bluebutton.cms.gov/resources/identifier/mbi-hash', 'value': '98765432137efea543f4f370f96f1dbf01c3e3129041dba3ea43675987654321'}], 'name': [{'use': 'usual', 'family': 'Doe', 'given': ['John', 'X']}], 'gender': 'male', 'birthDate': '2000-06-01', 'address': [{'district': '999', 'state': '48', 'postalCode': '99999'}]}}]}}, 'malformed': {'status_code': 200, 'content': {'resourceType': 'Bundle', 'id': '389a548b-9c85-4491-9795-9306a957030b', 'meta': {'lastUpdated': '2019-12-18T13:40:02.792-05:00'}, 'type': 'searchset', 'total': 1, 'link': [{'relation': 'first', 'url': 'https://sandbox.bluebutton.cms.gov/v1/fhir/Patient?_count=10&startIndex=0&_id=-20000000002346'}, {'relation': 'last', 'url': 'https://sandbox.bluebutton.cms.gov/v1/fhir/Patient?_count=10&startIndex=0&_id=-20000000002346'}, {'relation': 'self', 'url': 'https://sandbox.bluebutton.cms.gov/v1/fhir/Patient/?_count=10&_format=application%2Fjson%2Bfhir&_id=-20000000002346&startIndex=0'}], 'entry': [{'resource': {'resourceType': 'Patient', '_id': '-20000000002346', 'extension': [{'url': 'https://bluebutton.cms.gov/resources/variables/race', 'valueCoding': {'system': 'https://bluebutton.cms.gov/resources/variables/race', 'code': '1', 'display': 'White'}}], 'identifier': [{'system': 'https://bluebutton.cms.gov/resources/variables/bene_id', 'value': '-20000000002346'}, {'system': 'https://bluebutton.cms.gov/resources/identifier/mbi-hash', 'value': '98765432137efea543f4f370f96f1dbf01c3e3129041dba3ea43675987654321'}], 'name': [{'use': 'usual', 'family': 'Doe', 'given': ['John', 'X']}], 'gender': 'male', 'birthDate': '2000-06-01', 'address': [{'district': '999', 'state': '48', 'postalCode': '99999'}]}}]}}, 'lying': {'status_code': 200, 'content': {'resourceType': 'Bundle', 'id': '389a548b-9c85-4491-9795-9306a957030b', 'meta': {'lastUpdated': '2019-12-18T13:40:02.792-05:00'}, 'type': 'searchset', 'total': 1, 'link': [{'relation': 'first', 'url': 'https://sandbox.bluebutton.cms.gov/v1/fhir/Patient?_count=10&startIndex=0&_id=-20000000002346'}, {'relation': 'last', 'url': 'https://sandbox.bluebutton.cms.gov/v1/fhir/Patient?_count=10&startIndex=0&_id=-20000000002346'}, {'relation': 'self', 'url': 'https://sandbox.bluebutton.cms.gov/v1/fhir/Patient/?_count=10&_format=application%2Fjson%2Bfhir&_id=-20000000002346&startIndex=0'}], 'entry': [{'resource': {'resourceType': 'Patient', 'id': '-20000000002346', 'extension': [{'url': 'https://bluebutton.cms.gov/resources/variables/race', 'valueCoding': {'system': 'https://bluebutton.cms.gov/resources/variables/race', 'code': '1', 'display': 'White'}}], 'identifier': [{'system': 'https://bluebutton.cms.gov/resources/variables/bene_id', 'value': '-20000000002346'}, {'system': 'https://bluebutton.cms.gov/resources/identifier/mbi-hash', 'value': '98765432137efea543f4f370f96f1dbf01c3e3129041dba3ea43675987654321'}], 'name': [{'use': 'usual', 'family': 'Doe', 'given': ['John', 'X']}], 'gender': 'male', 'birthDate': '2000-06-01', 'address': [{'district': '999', 'state': '48', 'postalCode': '99999'}]}}, {'resource': {'resourceType': 'Patient', 'id': '-20000000002346', 'extension': [{'url': 'https://bluebutton.cms.gov/resources/variables/race', 'valueCoding': {'system': 'https://bluebutton.cms.gov/resources/variables/race', 'code': '1', 'display': 'White'}}], 'identifier': [{'system': 'https://bluebutton.cms.gov/resources/variables/bene_id', 'value': '-20000000002346'}, {'system': 'https://bluebutton.cms.gov/resources/identifier/mbi-hash', 'value': '98765432137efea543f4f370f96f1dbf01c3e3129041dba3ea43675987654321'}], 'name': [{'use': 'usual', 'family': 'Doe', 'given': ['John', 'X']}], 'gender': 'male', 'birthDate': '2000-06-01', 'address': [{'district': '999', 'state': '48', 'postalCode': '99999'}]}}]}}}
|
# Problem: https://leetcode.com/problems/range-sum-query-2d-immutable/submissions/
#["NumMatrix", "sumRegion", "sumRegion", "sumRegion"]
null_matrix= [[3, 0, 1, 4, 2],
[5, 6, 3, 2, 1],
[1, 2, 0, 1, 5],
[4, 1, 0, 1, 7],
[1, 0, 3, 0, 5]]
row1 = 1
col1 = 2
row2 = 2
col2 = 4
# Prefix Sum of NullMatrix
prefix = null_matrix[:]
row = len(prefix)
col = len(prefix[0])
for i in range(row):
for j in range(1, col):
prefix[i][j] += prefix[i][j-1]
# print(prefix)
for i in range(1, row):
for j in range(col):
prefix[i][j] += prefix[i-1][j]
# print(prefix)
# Answer: (area0 - area1 - area2 + common_area)
# Edge cases handled with if statements
area0 = prefix[row2][col2]
area1 = 0
if row1 - 1 >= 0:
area1 = prefix[row1-1][col2]
area2 = 0
if col1 -1 >= 0:
area2 = prefix[row2][col1-1]
common_area = 0
if area1 > 0 and area2 > 0:
common_area = prefix[row1-1][col1-1]
ans = area0 - area1 - area2 + common_area
print(ans)
# ____________________________________________________
"""
#["Matrix", "sumRegion", "sumRegion", "sumRegion"]
matrix= [[3, 0, 1, 4, 2],
[5, 6, 3, 2, 1],
[1, 2, 0, 1, 5],
[4, 1, 0, 1, 7],
[1, 0, 3, 0, 5]]
row1 = 2
col1 = 1
row2 = 4
col2 = 3
# Prefix Sum of Matrix
row = len(matrix)
col = len(matrix[0])
for i in range(row):
for j in range(1, col):
matrix[i][j] += matrix[i][j-1]
# print(prefix)
for i in range(1, row):
for j in range(col):
matrix[i][j] += matrix[i-1][j]
# print(prefix)
# Answer: (area0 - area1 - area2 + common_area)
# Edge cases exists: handled with if statements
area0 = matrix[row2][col2]
area1 = 0
if row1 - 1 >= 0:
area1 = matrix[row1-1][col2]
area2 = 0
if col1 -1 >= 0:
area2 = matrix[row2][col1-1]
common_area = 0
if area1 > 0 and area2 > 0:
common_area = matrix[row1-1][col1-1]
ans = area0 - area1 - area2 + common_area
print(ans)
"""
|
null_matrix = [[3, 0, 1, 4, 2], [5, 6, 3, 2, 1], [1, 2, 0, 1, 5], [4, 1, 0, 1, 7], [1, 0, 3, 0, 5]]
row1 = 1
col1 = 2
row2 = 2
col2 = 4
prefix = null_matrix[:]
row = len(prefix)
col = len(prefix[0])
for i in range(row):
for j in range(1, col):
prefix[i][j] += prefix[i][j - 1]
for i in range(1, row):
for j in range(col):
prefix[i][j] += prefix[i - 1][j]
area0 = prefix[row2][col2]
area1 = 0
if row1 - 1 >= 0:
area1 = prefix[row1 - 1][col2]
area2 = 0
if col1 - 1 >= 0:
area2 = prefix[row2][col1 - 1]
common_area = 0
if area1 > 0 and area2 > 0:
common_area = prefix[row1 - 1][col1 - 1]
ans = area0 - area1 - area2 + common_area
print(ans)
'\n#["Matrix", "sumRegion", "sumRegion", "sumRegion"]\nmatrix= [[3, 0, 1, 4, 2], \n [5, 6, 3, 2, 1],\n [1, 2, 0, 1, 5],\n [4, 1, 0, 1, 7],\n [1, 0, 3, 0, 5]]\n\nrow1 = 2\ncol1 = 1\nrow2 = 4\ncol2 = 3\n\n# Prefix Sum of Matrix\n\nrow = len(matrix)\ncol = len(matrix[0])\n\nfor i in range(row):\n for j in range(1, col):\n matrix[i][j] += matrix[i][j-1]\n\n# print(prefix)\n\nfor i in range(1, row):\n for j in range(col):\n matrix[i][j] += matrix[i-1][j]\n\n# print(prefix)\n\n# Answer: (area0 - area1 - area2 + common_area)\n# Edge cases exists: handled with if statements\n\narea0 = matrix[row2][col2]\n\narea1 = 0\nif row1 - 1 >= 0:\n area1 = matrix[row1-1][col2]\n\narea2 = 0\nif col1 -1 >= 0:\n area2 = matrix[row2][col1-1]\n\ncommon_area = 0\nif area1 > 0 and area2 > 0:\n common_area = matrix[row1-1][col1-1]\n\nans = area0 - area1 - area2 + common_area\n\nprint(ans)\n'
|
__version__ = "3.0.0-beta"
VERSION = __version__
DOMAIN = "krisinfo"
BASE_URL = "https://api.krisinformation.se/v3/"
NEWS_PARAMETER = "news?format=json"
VMAS_PARAMETER = "vmas?format=json"
LANGUAGE_PARAMETER = "&language="
USER_AGENT = "homeassistant_krisinfo/" + VERSION
|
__version__ = '3.0.0-beta'
version = __version__
domain = 'krisinfo'
base_url = 'https://api.krisinformation.se/v3/'
news_parameter = 'news?format=json'
vmas_parameter = 'vmas?format=json'
language_parameter = '&language='
user_agent = 'homeassistant_krisinfo/' + VERSION
|
# Road of Regrets 2 (270020200) => Resting Spot of Regret
# The One Who Walks Down the Road of Regrets2
if sm.hasQuestCompleted(3509):
sm.warp(270020210, 3)
else:
sm.chat("Those who do not have the Goddess' permission may not move against the flow of time, and will be sent back to their previous location.")
sm.warp(270020100)
|
if sm.hasQuestCompleted(3509):
sm.warp(270020210, 3)
else:
sm.chat("Those who do not have the Goddess' permission may not move against the flow of time, and will be sent back to their previous location.")
sm.warp(270020100)
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Created by tianhao.wang at 9/6/18
"""
|
"""
Created by tianhao.wang at 9/6/18
"""
|
class Solution(object):
def climbStairs(self, n):
"""
:type n: int
:rtype: int
"""
if n <= 2:
return n
pre1 = 2
pre2 = 1
cur = 0
while(n>2):
cur = pre1 + pre2
pre2 = pre1
pre1 = cur
n -= 1
return cur
|
class Solution(object):
def climb_stairs(self, n):
"""
:type n: int
:rtype: int
"""
if n <= 2:
return n
pre1 = 2
pre2 = 1
cur = 0
while n > 2:
cur = pre1 + pre2
pre2 = pre1
pre1 = cur
n -= 1
return cur
|
"""Constants for the AlarmDecoder component."""
CONF_ALT_NIGHT_MODE = "alt_night_mode"
CONF_AUTO_BYPASS = "auto_bypass"
CONF_CODE_ARM_REQUIRED = "code_arm_required"
CONF_DEVICE_BAUD = "device_baudrate"
CONF_DEVICE_PATH = "device_path"
CONF_RELAY_ADDR = "zone_relayaddr"
CONF_RELAY_CHAN = "zone_relaychan"
CONF_ZONE_LOOP = "zone_loop"
CONF_ZONE_NAME = "zone_name"
CONF_ZONE_NUMBER = "zone_number"
CONF_ZONE_RFID = "zone_rfid"
CONF_ZONE_TYPE = "zone_type"
DATA_AD = "alarmdecoder"
DATA_REMOVE_STOP_LISTENER = "rm_stop_listener"
DATA_REMOVE_UPDATE_LISTENER = "rm_update_listener"
DATA_RESTART = "restart"
DEFAULT_ALT_NIGHT_MODE = False
DEFAULT_AUTO_BYPASS = False
DEFAULT_CODE_ARM_REQUIRED = True
DEFAULT_DEVICE_BAUD = 115200
DEFAULT_DEVICE_HOST = "alarmdecoder"
DEFAULT_DEVICE_PATH = "/dev/ttyUSB0"
DEFAULT_DEVICE_PORT = 10000
DEFAULT_ZONE_TYPE = "window"
DEFAULT_ARM_OPTIONS = {
CONF_ALT_NIGHT_MODE: DEFAULT_ALT_NIGHT_MODE,
CONF_AUTO_BYPASS: DEFAULT_AUTO_BYPASS,
CONF_CODE_ARM_REQUIRED: DEFAULT_CODE_ARM_REQUIRED,
}
DEFAULT_ZONE_OPTIONS: dict = {}
DOMAIN = "alarmdecoder"
OPTIONS_ARM = "arm_options"
OPTIONS_ZONES = "zone_options"
PROTOCOL_SERIAL = "serial"
PROTOCOL_SOCKET = "socket"
SIGNAL_PANEL_MESSAGE = "alarmdecoder.panel_message"
SIGNAL_REL_MESSAGE = "alarmdecoder.rel_message"
SIGNAL_RFX_MESSAGE = "alarmdecoder.rfx_message"
SIGNAL_ZONE_FAULT = "alarmdecoder.zone_fault"
SIGNAL_ZONE_RESTORE = "alarmdecoder.zone_restore"
|
"""Constants for the AlarmDecoder component."""
conf_alt_night_mode = 'alt_night_mode'
conf_auto_bypass = 'auto_bypass'
conf_code_arm_required = 'code_arm_required'
conf_device_baud = 'device_baudrate'
conf_device_path = 'device_path'
conf_relay_addr = 'zone_relayaddr'
conf_relay_chan = 'zone_relaychan'
conf_zone_loop = 'zone_loop'
conf_zone_name = 'zone_name'
conf_zone_number = 'zone_number'
conf_zone_rfid = 'zone_rfid'
conf_zone_type = 'zone_type'
data_ad = 'alarmdecoder'
data_remove_stop_listener = 'rm_stop_listener'
data_remove_update_listener = 'rm_update_listener'
data_restart = 'restart'
default_alt_night_mode = False
default_auto_bypass = False
default_code_arm_required = True
default_device_baud = 115200
default_device_host = 'alarmdecoder'
default_device_path = '/dev/ttyUSB0'
default_device_port = 10000
default_zone_type = 'window'
default_arm_options = {CONF_ALT_NIGHT_MODE: DEFAULT_ALT_NIGHT_MODE, CONF_AUTO_BYPASS: DEFAULT_AUTO_BYPASS, CONF_CODE_ARM_REQUIRED: DEFAULT_CODE_ARM_REQUIRED}
default_zone_options: dict = {}
domain = 'alarmdecoder'
options_arm = 'arm_options'
options_zones = 'zone_options'
protocol_serial = 'serial'
protocol_socket = 'socket'
signal_panel_message = 'alarmdecoder.panel_message'
signal_rel_message = 'alarmdecoder.rel_message'
signal_rfx_message = 'alarmdecoder.rfx_message'
signal_zone_fault = 'alarmdecoder.zone_fault'
signal_zone_restore = 'alarmdecoder.zone_restore'
|
# Collaborators (including web sites where you got help: (enter none if you didn't need help)
#
# Write a program that asks for the user's name and another piece of information.Then prints a response using both of the inputs.
x = input("What is your name?")
y = input("How old are you?")
print("Hello " + x + ", you are " + y + " years old.")
|
x = input('What is your name?')
y = input('How old are you?')
print('Hello ' + x + ', you are ' + y + ' years old.')
|
_base_ = './upernet_vit-b16_mln_512x512_160k_ade20k.py'
model = dict(
pretrained='pretrain/deit_base_patch16_224-b5f2ef4d.pth',
backbone=dict(drop_path_rate=0.1),
)
|
_base_ = './upernet_vit-b16_mln_512x512_160k_ade20k.py'
model = dict(pretrained='pretrain/deit_base_patch16_224-b5f2ef4d.pth', backbone=dict(drop_path_rate=0.1))
|
#!/usr/bin/env python3
"""Error exceptions."""
class InputError(Exception):
"""Raised on invalid user input."""
|
"""Error exceptions."""
class Inputerror(Exception):
"""Raised on invalid user input."""
|
#coding=utf-8
'''
Created on 2015-10-10
@author: Devuser
'''
class Tag(object):
def __init__(self,tagid,name,color):
self.tagid=tagid
self.tagname=name
self.tagcolor=color
|
"""
Created on 2015-10-10
@author: Devuser
"""
class Tag(object):
def __init__(self, tagid, name, color):
self.tagid = tagid
self.tagname = name
self.tagcolor = color
|
def log(str):
ENABLED = False # Set False to disable loggin
if ENABLED:
print(str)
|
def log(str):
enabled = False
if ENABLED:
print(str)
|
# add 6 _
name = 'Mark'
align_right = f'{name:_>10}'
print(align_right)
# '______Mark'
|
name = 'Mark'
align_right = f'{name:_>10}'
print(align_right)
|
def main(n):
ret = 1
while 1:
if n == 1:
break
n = (n // 2, 3 * n + 1)[n & 1]
ret += 1
return ret
if __name__ == '__main__':
print(main(int(input())))
|
def main(n):
ret = 1
while 1:
if n == 1:
break
n = (n // 2, 3 * n + 1)[n & 1]
ret += 1
return ret
if __name__ == '__main__':
print(main(int(input())))
|
t = '########### ###########\n########## ##########\n######### #########\n######## ########\n####### #######\n###### ######\n##### #####\n#### ####\n### ###\n## ##\n# #\n \n'
def invert_triangle(t):
temp = t.replace(" ","a")
temp = temp.replace("#"," ")
temp = temp.replace("a","#")
return("\n".join(temp.split('\n')[-1::-1]))
|
t = '########### ###########\n########## ##########\n######### #########\n######## ########\n####### #######\n###### ######\n##### #####\n#### ####\n### ###\n## ##\n# #\n \n'
def invert_triangle(t):
temp = t.replace(' ', 'a')
temp = temp.replace('#', ' ')
temp = temp.replace('a', '#')
return '\n'.join(temp.split('\n')[-1::-1])
|
"""
Copyright (C) 2015, MuChu Hsu
Contributed by Muchu Hsu ([email protected])
This file is part of BSD license
<https://opensource.org/licenses/BSD-3-Clause>
"""
|
"""
Copyright (C) 2015, MuChu Hsu
Contributed by Muchu Hsu ([email protected])
This file is part of BSD license
<https://opensource.org/licenses/BSD-3-Clause>
"""
|
#
# PySNMP MIB module CISCO-EPM-NOTIFICATION-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-EPM-NOTIFICATION-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:40:04 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")
ConstraintsIntersection, SingleValueConstraint, ConstraintsUnion, ValueRangeConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "SingleValueConstraint", "ConstraintsUnion", "ValueRangeConstraint", "ValueSizeConstraint")
ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt")
InetAddressType, InetAddress = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressType", "InetAddress")
SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString")
ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup")
MibIdentifier, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter64, Bits, TimeTicks, Counter32, Gauge32, ModuleIdentity, ObjectIdentity, NotificationType, Integer32, IpAddress, iso = mibBuilder.importSymbols("SNMPv2-SMI", "MibIdentifier", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter64", "Bits", "TimeTicks", "Counter32", "Gauge32", "ModuleIdentity", "ObjectIdentity", "NotificationType", "Integer32", "IpAddress", "iso")
DisplayString, TimeStamp, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TimeStamp", "TextualConvention")
ciscoEpmNotificationMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 311))
ciscoEpmNotificationMIB.setRevisions(('2004-06-07 00:00', '2003-08-21 00:00', '2002-07-28 14:20',))
if mibBuilder.loadTexts: ciscoEpmNotificationMIB.setLastUpdated('200406070000Z')
if mibBuilder.loadTexts: ciscoEpmNotificationMIB.setOrganization('Cisco Systems, Inc.')
ciscoEpmNotificationMIBNotifs = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 311, 0))
ciscoEpmNotificationMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 311, 1))
ciscoEpmNotificationMIBConform = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 311, 2))
cenAlarmData = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1))
cenAlarmTableMaxLength = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295)).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cenAlarmTableMaxLength.setStatus('current')
cenAlarmTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2), )
if mibBuilder.loadTexts: cenAlarmTable.setStatus('current')
cenAlarmEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1), ).setIndexNames((0, "CISCO-EPM-NOTIFICATION-MIB", "cenAlarmIndex"))
if mibBuilder.loadTexts: cenAlarmEntry.setStatus('current')
cenAlarmIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295)))
if mibBuilder.loadTexts: cenAlarmIndex.setStatus('current')
cenAlarmVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 16))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenAlarmVersion.setStatus('current')
cenAlarmTimestamp = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 3), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenAlarmTimestamp.setStatus('current')
cenAlarmUpdatedTimestamp = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 4), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenAlarmUpdatedTimestamp.setStatus('current')
cenAlarmInstanceID = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 5), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 20))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenAlarmInstanceID.setStatus('current')
cenAlarmStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 250))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenAlarmStatus.setStatus('current')
cenAlarmStatusDefinition = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 7), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenAlarmStatusDefinition.setStatus('current')
cenAlarmType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("unknown", 1), ("direct", 2), ("indirect", 3), ("mixed", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenAlarmType.setStatus('current')
cenAlarmCategory = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 250))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenAlarmCategory.setStatus('current')
cenAlarmCategoryDefinition = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 10), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenAlarmCategoryDefinition.setStatus('current')
cenAlarmServerAddressType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 11), InetAddressType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenAlarmServerAddressType.setStatus('current')
cenAlarmServerAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 12), InetAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenAlarmServerAddress.setStatus('current')
cenAlarmManagedObjectClass = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 13), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenAlarmManagedObjectClass.setStatus('current')
cenAlarmManagedObjectAddressType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 14), InetAddressType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenAlarmManagedObjectAddressType.setStatus('current')
cenAlarmManagedObjectAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 15), InetAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenAlarmManagedObjectAddress.setStatus('current')
cenAlarmDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 16), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1024))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenAlarmDescription.setStatus('current')
cenAlarmSeverity = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 17), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenAlarmSeverity.setStatus('current')
cenAlarmSeverityDefinition = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 18), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenAlarmSeverityDefinition.setStatus('current')
cenAlarmTriageValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 19), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenAlarmTriageValue.setStatus('current')
cenEventIDList = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 20), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1024))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenEventIDList.setStatus('current')
cenUserMessage1 = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 21), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenUserMessage1.setStatus('current')
cenUserMessage2 = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 22), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenUserMessage2.setStatus('current')
cenUserMessage3 = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 23), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenUserMessage3.setStatus('current')
cenAlarmMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 24), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unknown", 1), ("alert", 2), ("event", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenAlarmMode.setStatus('current')
cenPartitionNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 25), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenPartitionNumber.setStatus('current')
cenPartitionName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 26), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenPartitionName.setStatus('current')
cenCustomerIdentification = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 27), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenCustomerIdentification.setStatus('current')
cenCustomerRevision = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 28), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenCustomerRevision.setStatus('current')
cenAlertID = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 29), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 20))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cenAlertID.setStatus('current')
ciscoEpmNotificationAlarm = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 311, 0, 1)).setObjects(("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmVersion"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmTimestamp"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmUpdatedTimestamp"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmInstanceID"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmStatus"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmStatusDefinition"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmType"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmCategory"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmCategoryDefinition"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmServerAddressType"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmServerAddress"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmManagedObjectClass"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmManagedObjectAddressType"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmManagedObjectAddress"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmDescription"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmSeverity"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmSeverityDefinition"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmTriageValue"), ("CISCO-EPM-NOTIFICATION-MIB", "cenEventIDList"), ("CISCO-EPM-NOTIFICATION-MIB", "cenUserMessage1"), ("CISCO-EPM-NOTIFICATION-MIB", "cenUserMessage2"), ("CISCO-EPM-NOTIFICATION-MIB", "cenUserMessage3"))
if mibBuilder.loadTexts: ciscoEpmNotificationAlarm.setStatus('deprecated')
ciscoEpmNotificationAlarmRev1 = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 311, 0, 2)).setObjects(("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmVersion"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmTimestamp"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmUpdatedTimestamp"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmInstanceID"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmStatus"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmStatusDefinition"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmType"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmCategory"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmCategoryDefinition"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmServerAddressType"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmServerAddress"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmManagedObjectClass"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmManagedObjectAddressType"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmManagedObjectAddress"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmDescription"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmSeverity"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmSeverityDefinition"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmTriageValue"), ("CISCO-EPM-NOTIFICATION-MIB", "cenEventIDList"), ("CISCO-EPM-NOTIFICATION-MIB", "cenUserMessage1"), ("CISCO-EPM-NOTIFICATION-MIB", "cenUserMessage2"), ("CISCO-EPM-NOTIFICATION-MIB", "cenUserMessage3"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmMode"), ("CISCO-EPM-NOTIFICATION-MIB", "cenPartitionNumber"), ("CISCO-EPM-NOTIFICATION-MIB", "cenPartitionName"), ("CISCO-EPM-NOTIFICATION-MIB", "cenCustomerIdentification"), ("CISCO-EPM-NOTIFICATION-MIB", "cenCustomerRevision"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlertID"))
if mibBuilder.loadTexts: ciscoEpmNotificationAlarmRev1.setStatus('current')
ciscoEpmNotificationMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 311, 2, 1))
ciscoEpmNotificationMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 311, 2, 2))
ciscoEpmNotificationMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 311, 2, 1, 1)).setObjects(("CISCO-EPM-NOTIFICATION-MIB", "ciscoEpmNotificationObjectsGroup"), ("CISCO-EPM-NOTIFICATION-MIB", "ciscoEpmNotificationAlarmGroup"), ("CISCO-EPM-NOTIFICATION-MIB", "ciscoEpmAlarmConfigGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoEpmNotificationMIBCompliance = ciscoEpmNotificationMIBCompliance.setStatus('deprecated')
ciscoEpmNotificationMIBComplianceRev1 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 311, 2, 1, 1, 2)).setObjects(("CISCO-EPM-NOTIFICATION-MIB", "ciscoEpmNotificationObjectsGroupRev1"), ("CISCO-EPM-NOTIFICATION-MIB", "ciscoEpmNotificationAlarmGroupRev1"), ("CISCO-EPM-NOTIFICATION-MIB", "ciscoEpmAlarmConfigGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoEpmNotificationMIBComplianceRev1 = ciscoEpmNotificationMIBComplianceRev1.setStatus('current')
ciscoEpmNotificationAlarmGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 311, 2, 2, 1)).setObjects(("CISCO-EPM-NOTIFICATION-MIB", "ciscoEpmNotificationAlarm"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoEpmNotificationAlarmGroup = ciscoEpmNotificationAlarmGroup.setStatus('deprecated')
ciscoEpmNotificationObjectsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 311, 2, 2, 2)).setObjects(("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmVersion"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmTimestamp"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmUpdatedTimestamp"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmInstanceID"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmStatus"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmStatusDefinition"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmType"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmCategory"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmCategoryDefinition"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmServerAddressType"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmServerAddress"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmManagedObjectClass"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmManagedObjectAddressType"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmManagedObjectAddress"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmDescription"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmSeverity"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmSeverityDefinition"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmTriageValue"), ("CISCO-EPM-NOTIFICATION-MIB", "cenEventIDList"), ("CISCO-EPM-NOTIFICATION-MIB", "cenUserMessage1"), ("CISCO-EPM-NOTIFICATION-MIB", "cenUserMessage2"), ("CISCO-EPM-NOTIFICATION-MIB", "cenUserMessage3"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoEpmNotificationObjectsGroup = ciscoEpmNotificationObjectsGroup.setStatus('deprecated')
ciscoEpmAlarmConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 311, 2, 2, 3)).setObjects(("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmTableMaxLength"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoEpmAlarmConfigGroup = ciscoEpmAlarmConfigGroup.setStatus('current')
ciscoEpmNotificationAlarmGroupRev1 = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 311, 2, 2, 4)).setObjects(("CISCO-EPM-NOTIFICATION-MIB", "ciscoEpmNotificationAlarmRev1"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoEpmNotificationAlarmGroupRev1 = ciscoEpmNotificationAlarmGroupRev1.setStatus('current')
ciscoEpmNotificationObjectsGroupRev1 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 311, 2, 2, 5)).setObjects(("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmVersion"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmTimestamp"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmUpdatedTimestamp"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmInstanceID"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmStatus"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmStatusDefinition"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmType"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmCategory"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmCategoryDefinition"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmServerAddressType"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmServerAddress"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmManagedObjectClass"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmManagedObjectAddressType"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmManagedObjectAddress"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmDescription"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmSeverity"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmSeverityDefinition"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmTriageValue"), ("CISCO-EPM-NOTIFICATION-MIB", "cenEventIDList"), ("CISCO-EPM-NOTIFICATION-MIB", "cenUserMessage1"), ("CISCO-EPM-NOTIFICATION-MIB", "cenUserMessage2"), ("CISCO-EPM-NOTIFICATION-MIB", "cenUserMessage3"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlarmMode"), ("CISCO-EPM-NOTIFICATION-MIB", "cenPartitionNumber"), ("CISCO-EPM-NOTIFICATION-MIB", "cenPartitionName"), ("CISCO-EPM-NOTIFICATION-MIB", "cenCustomerIdentification"), ("CISCO-EPM-NOTIFICATION-MIB", "cenCustomerRevision"), ("CISCO-EPM-NOTIFICATION-MIB", "cenAlertID"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoEpmNotificationObjectsGroupRev1 = ciscoEpmNotificationObjectsGroupRev1.setStatus('current')
mibBuilder.exportSymbols("CISCO-EPM-NOTIFICATION-MIB", ciscoEpmNotificationMIB=ciscoEpmNotificationMIB, cenAlarmIndex=cenAlarmIndex, cenAlarmDescription=cenAlarmDescription, cenAlarmManagedObjectAddressType=cenAlarmManagedObjectAddressType, cenAlarmTriageValue=cenAlarmTriageValue, cenAlarmManagedObjectAddress=cenAlarmManagedObjectAddress, ciscoEpmNotificationMIBComplianceRev1=ciscoEpmNotificationMIBComplianceRev1, cenAlarmTable=cenAlarmTable, cenAlarmSeverity=cenAlarmSeverity, cenAlarmInstanceID=cenAlarmInstanceID, cenAlarmEntry=cenAlarmEntry, cenPartitionNumber=cenPartitionNumber, cenPartitionName=cenPartitionName, ciscoEpmNotificationAlarmGroupRev1=ciscoEpmNotificationAlarmGroupRev1, cenUserMessage2=cenUserMessage2, ciscoEpmNotificationMIBCompliance=ciscoEpmNotificationMIBCompliance, cenAlarmStatusDefinition=cenAlarmStatusDefinition, ciscoEpmNotificationMIBObjects=ciscoEpmNotificationMIBObjects, ciscoEpmNotificationObjectsGroup=ciscoEpmNotificationObjectsGroup, cenUserMessage1=cenUserMessage1, cenAlarmData=cenAlarmData, cenAlarmVersion=cenAlarmVersion, cenUserMessage3=cenUserMessage3, ciscoEpmNotificationObjectsGroupRev1=ciscoEpmNotificationObjectsGroupRev1, ciscoEpmNotificationAlarm=ciscoEpmNotificationAlarm, cenCustomerIdentification=cenCustomerIdentification, ciscoEpmNotificationAlarmGroup=ciscoEpmNotificationAlarmGroup, cenCustomerRevision=cenCustomerRevision, ciscoEpmAlarmConfigGroup=ciscoEpmAlarmConfigGroup, ciscoEpmNotificationMIBCompliances=ciscoEpmNotificationMIBCompliances, cenAlarmManagedObjectClass=cenAlarmManagedObjectClass, ciscoEpmNotificationMIBGroups=ciscoEpmNotificationMIBGroups, cenAlarmCategoryDefinition=cenAlarmCategoryDefinition, cenAlarmMode=cenAlarmMode, ciscoEpmNotificationAlarmRev1=ciscoEpmNotificationAlarmRev1, cenAlarmTableMaxLength=cenAlarmTableMaxLength, cenAlarmStatus=cenAlarmStatus, cenAlarmServerAddress=cenAlarmServerAddress, cenAlarmSeverityDefinition=cenAlarmSeverityDefinition, ciscoEpmNotificationMIBNotifs=ciscoEpmNotificationMIBNotifs, cenAlarmType=cenAlarmType, cenEventIDList=cenEventIDList, cenAlarmTimestamp=cenAlarmTimestamp, ciscoEpmNotificationMIBConform=ciscoEpmNotificationMIBConform, PYSNMP_MODULE_ID=ciscoEpmNotificationMIB, cenAlarmServerAddressType=cenAlarmServerAddressType, cenAlertID=cenAlertID, cenAlarmUpdatedTimestamp=cenAlarmUpdatedTimestamp, cenAlarmCategory=cenAlarmCategory)
|
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_intersection, single_value_constraint, constraints_union, value_range_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueRangeConstraint', 'ValueSizeConstraint')
(cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt')
(inet_address_type, inet_address) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddressType', 'InetAddress')
(snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString')
(module_compliance, object_group, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'ObjectGroup', 'NotificationGroup')
(mib_identifier, unsigned32, mib_scalar, mib_table, mib_table_row, mib_table_column, counter64, bits, time_ticks, counter32, gauge32, module_identity, object_identity, notification_type, integer32, ip_address, iso) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibIdentifier', 'Unsigned32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter64', 'Bits', 'TimeTicks', 'Counter32', 'Gauge32', 'ModuleIdentity', 'ObjectIdentity', 'NotificationType', 'Integer32', 'IpAddress', 'iso')
(display_string, time_stamp, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TimeStamp', 'TextualConvention')
cisco_epm_notification_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 311))
ciscoEpmNotificationMIB.setRevisions(('2004-06-07 00:00', '2003-08-21 00:00', '2002-07-28 14:20'))
if mibBuilder.loadTexts:
ciscoEpmNotificationMIB.setLastUpdated('200406070000Z')
if mibBuilder.loadTexts:
ciscoEpmNotificationMIB.setOrganization('Cisco Systems, Inc.')
cisco_epm_notification_mib_notifs = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 311, 0))
cisco_epm_notification_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 311, 1))
cisco_epm_notification_mib_conform = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 311, 2))
cen_alarm_data = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1))
cen_alarm_table_max_length = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295)).clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cenAlarmTableMaxLength.setStatus('current')
cen_alarm_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2))
if mibBuilder.loadTexts:
cenAlarmTable.setStatus('current')
cen_alarm_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1)).setIndexNames((0, 'CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmIndex'))
if mibBuilder.loadTexts:
cenAlarmEntry.setStatus('current')
cen_alarm_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295)))
if mibBuilder.loadTexts:
cenAlarmIndex.setStatus('current')
cen_alarm_version = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 2), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 16))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenAlarmVersion.setStatus('current')
cen_alarm_timestamp = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 3), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenAlarmTimestamp.setStatus('current')
cen_alarm_updated_timestamp = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 4), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenAlarmUpdatedTimestamp.setStatus('current')
cen_alarm_instance_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 5), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 20))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenAlarmInstanceID.setStatus('current')
cen_alarm_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 250))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenAlarmStatus.setStatus('current')
cen_alarm_status_definition = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 7), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenAlarmStatusDefinition.setStatus('current')
cen_alarm_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('unknown', 1), ('direct', 2), ('indirect', 3), ('mixed', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenAlarmType.setStatus('current')
cen_alarm_category = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(1, 250))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenAlarmCategory.setStatus('current')
cen_alarm_category_definition = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 10), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenAlarmCategoryDefinition.setStatus('current')
cen_alarm_server_address_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 11), inet_address_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenAlarmServerAddressType.setStatus('current')
cen_alarm_server_address = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 12), inet_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenAlarmServerAddress.setStatus('current')
cen_alarm_managed_object_class = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 13), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenAlarmManagedObjectClass.setStatus('current')
cen_alarm_managed_object_address_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 14), inet_address_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenAlarmManagedObjectAddressType.setStatus('current')
cen_alarm_managed_object_address = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 15), inet_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenAlarmManagedObjectAddress.setStatus('current')
cen_alarm_description = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 16), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1024))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenAlarmDescription.setStatus('current')
cen_alarm_severity = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 17), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenAlarmSeverity.setStatus('current')
cen_alarm_severity_definition = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 18), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenAlarmSeverityDefinition.setStatus('current')
cen_alarm_triage_value = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 19), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenAlarmTriageValue.setStatus('current')
cen_event_id_list = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 20), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1024))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenEventIDList.setStatus('current')
cen_user_message1 = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 21), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenUserMessage1.setStatus('current')
cen_user_message2 = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 22), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenUserMessage2.setStatus('current')
cen_user_message3 = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 23), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenUserMessage3.setStatus('current')
cen_alarm_mode = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 24), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('unknown', 1), ('alert', 2), ('event', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenAlarmMode.setStatus('current')
cen_partition_number = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 25), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenPartitionNumber.setStatus('current')
cen_partition_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 26), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenPartitionName.setStatus('current')
cen_customer_identification = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 27), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenCustomerIdentification.setStatus('current')
cen_customer_revision = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 28), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenCustomerRevision.setStatus('current')
cen_alert_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 311, 1, 1, 2, 1, 29), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 20))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cenAlertID.setStatus('current')
cisco_epm_notification_alarm = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 311, 0, 1)).setObjects(('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmVersion'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmTimestamp'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmUpdatedTimestamp'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmInstanceID'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmStatus'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmStatusDefinition'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmType'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmCategory'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmCategoryDefinition'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmServerAddressType'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmServerAddress'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmManagedObjectClass'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmManagedObjectAddressType'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmManagedObjectAddress'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmDescription'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmSeverity'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmSeverityDefinition'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmTriageValue'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenEventIDList'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenUserMessage1'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenUserMessage2'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenUserMessage3'))
if mibBuilder.loadTexts:
ciscoEpmNotificationAlarm.setStatus('deprecated')
cisco_epm_notification_alarm_rev1 = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 311, 0, 2)).setObjects(('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmVersion'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmTimestamp'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmUpdatedTimestamp'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmInstanceID'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmStatus'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmStatusDefinition'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmType'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmCategory'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmCategoryDefinition'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmServerAddressType'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmServerAddress'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmManagedObjectClass'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmManagedObjectAddressType'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmManagedObjectAddress'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmDescription'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmSeverity'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmSeverityDefinition'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmTriageValue'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenEventIDList'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenUserMessage1'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenUserMessage2'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenUserMessage3'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmMode'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenPartitionNumber'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenPartitionName'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenCustomerIdentification'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenCustomerRevision'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlertID'))
if mibBuilder.loadTexts:
ciscoEpmNotificationAlarmRev1.setStatus('current')
cisco_epm_notification_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 311, 2, 1))
cisco_epm_notification_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 311, 2, 2))
cisco_epm_notification_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 311, 2, 1, 1)).setObjects(('CISCO-EPM-NOTIFICATION-MIB', 'ciscoEpmNotificationObjectsGroup'), ('CISCO-EPM-NOTIFICATION-MIB', 'ciscoEpmNotificationAlarmGroup'), ('CISCO-EPM-NOTIFICATION-MIB', 'ciscoEpmAlarmConfigGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_epm_notification_mib_compliance = ciscoEpmNotificationMIBCompliance.setStatus('deprecated')
cisco_epm_notification_mib_compliance_rev1 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 311, 2, 1, 1, 2)).setObjects(('CISCO-EPM-NOTIFICATION-MIB', 'ciscoEpmNotificationObjectsGroupRev1'), ('CISCO-EPM-NOTIFICATION-MIB', 'ciscoEpmNotificationAlarmGroupRev1'), ('CISCO-EPM-NOTIFICATION-MIB', 'ciscoEpmAlarmConfigGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_epm_notification_mib_compliance_rev1 = ciscoEpmNotificationMIBComplianceRev1.setStatus('current')
cisco_epm_notification_alarm_group = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 311, 2, 2, 1)).setObjects(('CISCO-EPM-NOTIFICATION-MIB', 'ciscoEpmNotificationAlarm'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_epm_notification_alarm_group = ciscoEpmNotificationAlarmGroup.setStatus('deprecated')
cisco_epm_notification_objects_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 311, 2, 2, 2)).setObjects(('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmVersion'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmTimestamp'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmUpdatedTimestamp'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmInstanceID'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmStatus'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmStatusDefinition'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmType'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmCategory'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmCategoryDefinition'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmServerAddressType'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmServerAddress'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmManagedObjectClass'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmManagedObjectAddressType'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmManagedObjectAddress'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmDescription'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmSeverity'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmSeverityDefinition'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmTriageValue'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenEventIDList'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenUserMessage1'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenUserMessage2'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenUserMessage3'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_epm_notification_objects_group = ciscoEpmNotificationObjectsGroup.setStatus('deprecated')
cisco_epm_alarm_config_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 311, 2, 2, 3)).setObjects(('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmTableMaxLength'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_epm_alarm_config_group = ciscoEpmAlarmConfigGroup.setStatus('current')
cisco_epm_notification_alarm_group_rev1 = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 311, 2, 2, 4)).setObjects(('CISCO-EPM-NOTIFICATION-MIB', 'ciscoEpmNotificationAlarmRev1'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_epm_notification_alarm_group_rev1 = ciscoEpmNotificationAlarmGroupRev1.setStatus('current')
cisco_epm_notification_objects_group_rev1 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 311, 2, 2, 5)).setObjects(('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmVersion'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmTimestamp'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmUpdatedTimestamp'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmInstanceID'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmStatus'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmStatusDefinition'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmType'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmCategory'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmCategoryDefinition'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmServerAddressType'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmServerAddress'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmManagedObjectClass'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmManagedObjectAddressType'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmManagedObjectAddress'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmDescription'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmSeverity'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmSeverityDefinition'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmTriageValue'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenEventIDList'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenUserMessage1'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenUserMessage2'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenUserMessage3'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlarmMode'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenPartitionNumber'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenPartitionName'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenCustomerIdentification'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenCustomerRevision'), ('CISCO-EPM-NOTIFICATION-MIB', 'cenAlertID'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_epm_notification_objects_group_rev1 = ciscoEpmNotificationObjectsGroupRev1.setStatus('current')
mibBuilder.exportSymbols('CISCO-EPM-NOTIFICATION-MIB', ciscoEpmNotificationMIB=ciscoEpmNotificationMIB, cenAlarmIndex=cenAlarmIndex, cenAlarmDescription=cenAlarmDescription, cenAlarmManagedObjectAddressType=cenAlarmManagedObjectAddressType, cenAlarmTriageValue=cenAlarmTriageValue, cenAlarmManagedObjectAddress=cenAlarmManagedObjectAddress, ciscoEpmNotificationMIBComplianceRev1=ciscoEpmNotificationMIBComplianceRev1, cenAlarmTable=cenAlarmTable, cenAlarmSeverity=cenAlarmSeverity, cenAlarmInstanceID=cenAlarmInstanceID, cenAlarmEntry=cenAlarmEntry, cenPartitionNumber=cenPartitionNumber, cenPartitionName=cenPartitionName, ciscoEpmNotificationAlarmGroupRev1=ciscoEpmNotificationAlarmGroupRev1, cenUserMessage2=cenUserMessage2, ciscoEpmNotificationMIBCompliance=ciscoEpmNotificationMIBCompliance, cenAlarmStatusDefinition=cenAlarmStatusDefinition, ciscoEpmNotificationMIBObjects=ciscoEpmNotificationMIBObjects, ciscoEpmNotificationObjectsGroup=ciscoEpmNotificationObjectsGroup, cenUserMessage1=cenUserMessage1, cenAlarmData=cenAlarmData, cenAlarmVersion=cenAlarmVersion, cenUserMessage3=cenUserMessage3, ciscoEpmNotificationObjectsGroupRev1=ciscoEpmNotificationObjectsGroupRev1, ciscoEpmNotificationAlarm=ciscoEpmNotificationAlarm, cenCustomerIdentification=cenCustomerIdentification, ciscoEpmNotificationAlarmGroup=ciscoEpmNotificationAlarmGroup, cenCustomerRevision=cenCustomerRevision, ciscoEpmAlarmConfigGroup=ciscoEpmAlarmConfigGroup, ciscoEpmNotificationMIBCompliances=ciscoEpmNotificationMIBCompliances, cenAlarmManagedObjectClass=cenAlarmManagedObjectClass, ciscoEpmNotificationMIBGroups=ciscoEpmNotificationMIBGroups, cenAlarmCategoryDefinition=cenAlarmCategoryDefinition, cenAlarmMode=cenAlarmMode, ciscoEpmNotificationAlarmRev1=ciscoEpmNotificationAlarmRev1, cenAlarmTableMaxLength=cenAlarmTableMaxLength, cenAlarmStatus=cenAlarmStatus, cenAlarmServerAddress=cenAlarmServerAddress, cenAlarmSeverityDefinition=cenAlarmSeverityDefinition, ciscoEpmNotificationMIBNotifs=ciscoEpmNotificationMIBNotifs, cenAlarmType=cenAlarmType, cenEventIDList=cenEventIDList, cenAlarmTimestamp=cenAlarmTimestamp, ciscoEpmNotificationMIBConform=ciscoEpmNotificationMIBConform, PYSNMP_MODULE_ID=ciscoEpmNotificationMIB, cenAlarmServerAddressType=cenAlarmServerAddressType, cenAlertID=cenAlertID, cenAlarmUpdatedTimestamp=cenAlarmUpdatedTimestamp, cenAlarmCategory=cenAlarmCategory)
|
# Copyright 2019 Google LLC
#
# 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.
"""Represent the interface for Query. This is important because our access
control logic needs a unified way to specify conditions for both BigQuery
query and Datastore query.
This must be compatible with libs.filters and libs.crash_access."""
class Query(object):
"""Represent the interface for Query."""
def filter(self, field, value, operator='='):
"""Filter by a single value."""
raise NotImplementedError
def filter_in(self, field, values):
"""Filter by multiple values."""
raise NotImplementedError
def union(self, *queries):
"""Union all queries with OR conditions."""
raise NotImplementedError
def new_subquery(self):
"""Instantiate a query that is compatible with the current query."""
raise NotImplementedError
|
"""Represent the interface for Query. This is important because our access
control logic needs a unified way to specify conditions for both BigQuery
query and Datastore query.
This must be compatible with libs.filters and libs.crash_access."""
class Query(object):
"""Represent the interface for Query."""
def filter(self, field, value, operator='='):
"""Filter by a single value."""
raise NotImplementedError
def filter_in(self, field, values):
"""Filter by multiple values."""
raise NotImplementedError
def union(self, *queries):
"""Union all queries with OR conditions."""
raise NotImplementedError
def new_subquery(self):
"""Instantiate a query that is compatible with the current query."""
raise NotImplementedError
|
# Project Euler - Problem 9
# Aidan O'Connor_G00364756_01/03/2018
# A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,
# a^2 + b^2 = c^2
# For example, 3^2 + 4^2 = 9 + 16 = 25 = 5^2.
# There exists exactly one Pythagorean triplet for which a + b + c = 1000.
# Find the product abc.
def Ptriplet(number):
"""Returns the Pythagorean triplet for which a + b + c = 1000"""
m = 3
limit = 1000
for a in range(m,500,1):
for b in range(a,500,1):
for c in range (b,500,1):
ram = a + b + c
zig = a**2
zag = b**2
zigzag = zig + zag
bag = c**2
if ram == limit and zigzag == bag and a < b:
return (a, b, c)
ans = Ptriplet(1)
print(ans)
|
def ptriplet(number):
"""Returns the Pythagorean triplet for which a + b + c = 1000"""
m = 3
limit = 1000
for a in range(m, 500, 1):
for b in range(a, 500, 1):
for c in range(b, 500, 1):
ram = a + b + c
zig = a ** 2
zag = b ** 2
zigzag = zig + zag
bag = c ** 2
if ram == limit and zigzag == bag and (a < b):
return (a, b, c)
ans = ptriplet(1)
print(ans)
|
#
# Copyright (C) 2019 Databricks, 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.
#
"""
Exceptions/Errors used in databricks-koalas.
"""
class SparkPandasIndexingError(Exception):
pass
def code_change_hint(pandas_function, spark_target_function):
if pandas_function is not None and spark_target_function is not None:
return "You are trying to use pandas function {}, use spark function {}" \
.format(pandas_function, spark_target_function)
elif pandas_function is not None and spark_target_function is None:
return ("You are trying to use pandas function {}, checkout the spark "
"user guide to find a relevant function").format(pandas_function)
elif pandas_function is None and spark_target_function is not None:
return "Use spark function {}".format(spark_target_function)
else: # both none
return "Checkout the spark user guide to find a relevant function"
class SparkPandasNotImplementedError(NotImplementedError):
def __init__(self, pandas_function=None, spark_target_function=None, description=""):
self.pandas_source = pandas_function
self.spark_target = spark_target_function
hint = code_change_hint(pandas_function, spark_target_function)
if len(description) > 0:
description += " " + hint
else:
description = hint
super(SparkPandasNotImplementedError, self).__init__(description)
class PandasNotImplementedError(NotImplementedError):
def __init__(self, class_name, method_name, arg_name=None):
self.class_name = class_name
self.method_name = method_name
self.arg_name = arg_name
if arg_name is not None:
msg = "The method `{0}.{1}()` does not support `{2}` parameter" \
.format(class_name, method_name, arg_name)
else:
msg = "The method `{0}.{1}()` is not implemented yet.".format(class_name, method_name)
super(NotImplementedError, self).__init__(msg)
|
"""
Exceptions/Errors used in databricks-koalas.
"""
class Sparkpandasindexingerror(Exception):
pass
def code_change_hint(pandas_function, spark_target_function):
if pandas_function is not None and spark_target_function is not None:
return 'You are trying to use pandas function {}, use spark function {}'.format(pandas_function, spark_target_function)
elif pandas_function is not None and spark_target_function is None:
return 'You are trying to use pandas function {}, checkout the spark user guide to find a relevant function'.format(pandas_function)
elif pandas_function is None and spark_target_function is not None:
return 'Use spark function {}'.format(spark_target_function)
else:
return 'Checkout the spark user guide to find a relevant function'
class Sparkpandasnotimplementederror(NotImplementedError):
def __init__(self, pandas_function=None, spark_target_function=None, description=''):
self.pandas_source = pandas_function
self.spark_target = spark_target_function
hint = code_change_hint(pandas_function, spark_target_function)
if len(description) > 0:
description += ' ' + hint
else:
description = hint
super(SparkPandasNotImplementedError, self).__init__(description)
class Pandasnotimplementederror(NotImplementedError):
def __init__(self, class_name, method_name, arg_name=None):
self.class_name = class_name
self.method_name = method_name
self.arg_name = arg_name
if arg_name is not None:
msg = 'The method `{0}.{1}()` does not support `{2}` parameter'.format(class_name, method_name, arg_name)
else:
msg = 'The method `{0}.{1}()` is not implemented yet.'.format(class_name, method_name)
super(NotImplementedError, self).__init__(msg)
|
'''https: // practice.geeksforgeeks.org/problems/permutations-of-a-given-string2041/1
Permutations of a given string
Basic Accuracy: 49.85 % Submissions: 31222 Points: 1
Given a string S. The task is to print all permutations of a given string.
Example 1:
Input: ABC
Output:
ABC ACB BAC BCA CAB CBA
Explanation:
Given string ABC has permutations in 6
forms as ABC, ACB, BAC, BCA, CAB and CBA .
Example 2:
Input: ABSG
Output:
ABGS ABSG AGBS AGSB ASBG ASGB BAGS
BASG BGAS BGSA BSAG BSGA GABS GASB
GBAS GBSA GSAB GSBA SABG SAGB SBAG
SBGA SGAB SGBA
Explanation:
Given string ABSG has 24 permutations.
Your Task:
You don't need to read input or print anything. Your task is to complete the function find_permutaion() which takes the string S as input parameter and returns a vector of string in lexicographical order.
Expected Time Complexity: O(n! * n)
Expected Space Complexity: O(n)
Constraints:
1 <= length of string <= 5
'''
class Solution:
def permute(self, curr, S, N, words=[]):
if(len(curr) == N):
words.append(curr)
return
for ch in S:
self.permute(curr+ch, S.replace(ch, ""), N, words)
def find_permutation(self, S):
words = []
N = len(S)
self.permute("", ''.join(sorted(S)), N, words)
return words
class Solution:
def find_permutation(self, S):
# Code here
l = [S[-1]]
for i in S[0:len(S)-1]:
l1 = []
for x in l:
for j in range(0, len(x)+1):
l1.append(x[0:j]+i+x[j:len(x)])
l = l1
return sorted(l)
|
"""https: // practice.geeksforgeeks.org/problems/permutations-of-a-given-string2041/1
Permutations of a given string
Basic Accuracy: 49.85 % Submissions: 31222 Points: 1
Given a string S. The task is to print all permutations of a given string.
Example 1:
Input: ABC
Output:
ABC ACB BAC BCA CAB CBA
Explanation:
Given string ABC has permutations in 6
forms as ABC, ACB, BAC, BCA, CAB and CBA .
Example 2:
Input: ABSG
Output:
ABGS ABSG AGBS AGSB ASBG ASGB BAGS
BASG BGAS BGSA BSAG BSGA GABS GASB
GBAS GBSA GSAB GSBA SABG SAGB SBAG
SBGA SGAB SGBA
Explanation:
Given string ABSG has 24 permutations.
Your Task:
You don't need to read input or print anything. Your task is to complete the function find_permutaion() which takes the string S as input parameter and returns a vector of string in lexicographical order.
Expected Time Complexity: O(n! * n)
Expected Space Complexity: O(n)
Constraints:
1 <= length of string <= 5
"""
class Solution:
def permute(self, curr, S, N, words=[]):
if len(curr) == N:
words.append(curr)
return
for ch in S:
self.permute(curr + ch, S.replace(ch, ''), N, words)
def find_permutation(self, S):
words = []
n = len(S)
self.permute('', ''.join(sorted(S)), N, words)
return words
class Solution:
def find_permutation(self, S):
l = [S[-1]]
for i in S[0:len(S) - 1]:
l1 = []
for x in l:
for j in range(0, len(x) + 1):
l1.append(x[0:j] + i + x[j:len(x)])
l = l1
return sorted(l)
|
class TreeNode:
"""Definition for a binary tree node."""
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def is_balanced(self, root: TreeNode) -> bool:
return self.depth(root) != -1
def depth(self, node: TreeNode) -> int:
if not node:
return 0
else:
left_depth = self.depth(node.left)
right_depth = self.depth(node.right)
if -1 == left_depth or -1 == right_depth or abs(left_depth - right_depth) > 1:
return -1
else:
return max(left_depth, right_depth) + 1
|
class Treenode:
"""Definition for a binary tree node."""
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def is_balanced(self, root: TreeNode) -> bool:
return self.depth(root) != -1
def depth(self, node: TreeNode) -> int:
if not node:
return 0
else:
left_depth = self.depth(node.left)
right_depth = self.depth(node.right)
if -1 == left_depth or -1 == right_depth or abs(left_depth - right_depth) > 1:
return -1
else:
return max(left_depth, right_depth) + 1
|
s = input()
y = s[0]
w = s[2]
if int(y) > int(w):
p = 7 - int(y)
else:
p = 7 - int(w)
if p == 1:
print('1/6')
if p == 2:
print('1/3')
if p == 3:
print('1/2')
if p == 4:
print('2/3')
if p == 5:
print('5/6')
if p == 6:
print('1/1')
|
s = input()
y = s[0]
w = s[2]
if int(y) > int(w):
p = 7 - int(y)
else:
p = 7 - int(w)
if p == 1:
print('1/6')
if p == 2:
print('1/3')
if p == 3:
print('1/2')
if p == 4:
print('2/3')
if p == 5:
print('5/6')
if p == 6:
print('1/1')
|
# -*- coding: utf-8 -*-
"""
Jokes from stackoverflow - provided under CC BY-SA 3.0
http://stackoverflow.com/questions/234075/what-is-your-best-programmer-joke?page=4&tab=votes#tab-top
"""
neutral = [
"Trionfalmente, Beth ha rimosso Python 2.7 dal server nel 2020.'Finalmente!' ha detto con gioia, solo per vedere l'annuncio di Python 4.4.",
"Una query SQL entra in un bar, cammina verso a due table e chiede: 'Posso unirvi?'.",
"Quando il tuo martello e` C ++, tutto inizia a sembrare un pollice.",
"Se metti un milione di scimmie su un milione di tastiere, uno di loro alla fine scrivera` un programma Java, il resto scrivera` Perl.",
"Per comprendere la ricorsione devi prima capire la ricorsione.",
"Gli amici non permettono agli amici di usare Python 2.7.",
"Ho suggerito di tenere un 'Python Object Oriented Programming Seminar', ma l'acronimo era impopolare.",
"'toc, toc'. 'Chi e` la`?' ... pausa molto lunga ... Java.",
"Quanti programmatori ci vogliono per cambiare una lampadina? Nessuno, e` un problema hardware.",
"Qual e` il modo orientato agli oggetti per diventare ricchi? Ereditarieta`.",
"Quanti programmatori ci vogliono per cambiare una lampadina? Nessuno, possono rendere l'oscurita` uno standard.",
"I vecchi programmatori C non muoiono, sono solo gettati nel void.",
"Gli sviluppatori di software amano risolvere i problemi: se non ci sono problemi facilmente disponibili li creeranno.",
".NET e` stato chiamato .NET in modo che non si visualizzasse in un elenco di directory Unix.",
"Hardware: la parte di un computer che puoi calciare.",
"Un programmatore e` stato trovato morto nella doccia, accanto al corpo c'era uno shampoo con le istruzioni:Insapona, risciacqua ripeti.",
"Ottimista: il bicchiere e` mezzo pieno Pessimista: il bicchiere e` mezzo vuoto Programmatore: il bicchiere e` il doppio del necessario.",
"In C abbiamo dovuto codificare i nostri bug. In C ++ possiamo ereditarli.",
"Come mai non c'e` una gara Perl offuscato? Perche` tutti vincerebbero.",
"Se riproduci un CD di Windows all'indietro, ascolterai il canto satanico ... peggio ancora, se lo riproduci in avanti, installa Windows.",
"Quanti programmatori ci vogliono per uccidere uno scarafaggio? Due: uno tiene, l'altro installa Windows su di esso.",
"Come si chiama un programmatore finlandese? Nerdic.",
"Cosa ha detto il codice Java al codice C? : Non hai classe.",
"Perche` Microsoft ha chiamato il proprio motore di ricerca BING? Because It's Not Google.",
"I venditori di software e i venditori di auto usate si differenziano perche` questi ultimi sanno quando mentono.",
"Bambino: 'papa', perche` il sole sorge ad est e tramonta ad ovest?' Papa': 'figlio, sta funzionando, non toccarlo'.",
"Quanti programmatori Prolog ci vogliono per cambiare una lampadina? Falso.",
"I veri programmatori possono scrivere codice assembly in qualsiasi lingua.",
"Cameriere: 'le piacerebbe un caffe` o un te`?' Programmatore: 'Si'.",
"Un programmatore entra in un foo ...",
"Qual e` il secondo nome di Benoit B. Mandelbrot? Benoit B. Mandelbrot.",
"Perche` sorridi sempre? Questa e` solo la mia ... espressione regolare.",
"Domanda stupida ASCII, ottiene uno stupido ANSI.",
"Un programmatore aveva un problema: penso` tra se stesso: 'lo risolvo con i threads!', ora ha due problemi.",
"Java: scrivi una volta e scappa.",
"Ti direi una battuta su UDP, ma non lo capiresti mai.",
"Un ingegnere di QA entra in un bar, si imbatte in un bar, striscia in un bar, balla in un bar, punta i piedi in un bar...",
"Ho avuto un problema quindi ho pensato di utilizzare Java. Ora ho una ProblemFactory.",
"L'ingegnere del QA entra in un bar, ordina una birra, ordina 0 birre, 99999 birre, una lucertola, -1 birre, uno sfdeljknesv.",
"Un responsabile di prodotto entra in un bar, chiede un drink, il barista dice NO, ma prendera` in considerazione l'aggiunta successiva.",
"Come si genera una stringa casuale? Metti uno studente di Informatica del primo anno davanti a Vim e gli chiedi di salvare ed uscire.",
"Uso Vim da molto tempo ormai, principalmente perche` non riesco a capire come uscire.",
"Come fai a sapere se una persona e` un utente Vim? Non ti preoccupare, te lo diranno.",
"un cameriere urla: 'sta soffocando! Qualcuno e` un dottore?' Programmatore: 'sono un utente Vim'.",
"3 Database Admins sono entrati in un bar NoSQL e poco dopo sono usciti perche` non sono riusciti a trovare un table.",
"Come spiegare il film Inception a un programmatore? Quando esegui una VM dentro una VM dentro un' altra VM tutto procede molto lentamente.",
"Come si chiama un pappagallo che dice 'Squawk! Pezzi di nove! Pezzi di nove!' Un errore a pappagallo.",
"Ci sono solo due problemi difficili in Informatica: invalidazione della cache, denominazione delle cose e errori di off-by-one.",
"Ci sono 10 tipi di persone: quelli che comprendono il binario e quelli che non lo sanno.",
"Ci sono 2 tipi di persone: quelli che possono estrapolare dati da insiemi incompleti ...",
"Esistono II tipi di persone: quelli che comprendono i numeri romani e quelli che non li conoscono.",
"Ci sono 10 tipi di persone: quelli che comprendono l'esadecimale e altri 15.",
"Ci sono 10 tipi di persone: quelli che capiscono il trinario, quelli che non lo fanno e quelli che non ne hanno mai sentito parlare.",
"Come chiami otto hobbit? Un hob byte.",
"La cosa migliore di un booleano e` che anche se ti sbagli, sei solo fuori di un bit.",
"Un buon programmatore e` qualcuno che guarda sempre in entrambe le direzioni prima di attraversare una strada a senso unico.",
"Esistono due modi per scrivere programmi privi di errori: solo il terzo funziona.",
"I controlli di qualita` consistono nel 55% di acqua, 30% di sangue e 15% di ticket in Jira.",
"Quanti QA servono per cambiare una lampadina? Hanno notato che la stanza era buia,: non risolvono i problemi, li trovano.",
"Un programmatore si schianta contro un'auto , l'uomo chiede 'cosa e` successo', l'altro risponde'Non so. Facciamo il backup e riprova'.",
"Scrivere PHP e` come fare pipi` in piscina, tutti lo hanno fatto, ma non hanno bisogno di renderlo pubblico.",
"Numero di giorni da quando ho riscontrato un errore di indice di array: -1.",
"gli appuntamenti veloci sono inutili, 5 minuti non sono sufficienti per spiegare correttamente i benefici della filosofia Unix.",
"Microsoft ha ogni quindici giorni una 'settimana produttiva' dove usa Google invece di Bing.",
"Trovare un buon sviluppatore PHP e` come cercare un ago in un pagliaio o e` un hackstack in un ago?.",
"Unix e` user friendly, e` solo molto particolare nella scelta di chi siano i suoi amici.",
"Un programmatore COBOL guadagna milioni con la riparazione Y2K e decide di congelarsi criogenicamente. L'anno e` 9999.",
"Il linguaggio C combina tutta la potenza del linguaggio assembly con tutta la facilita` d'uso del linguaggio assembly.",
"Un esperto SEO entra in un bar, pub, pub irlandese, taverna, barista, birra, liquore, vino, alcolici, liquori ...",
"Che cosa significa Emacs? Utilizzato esclusivamente dagli scienziati informatici di mezza eta`.",
"Che cosa hanno in comune le battute di PyJokes con Adobe Flash? Si aggiornano sempre, ma non migliorano.",
"Quanti demosceners sono necessari per cambiare una lampadina? Meta`. Con uno intero non ci sono sfide.",
]
"""
Jokes from The Internet Chuck Norris DB (ICNDB) (http://www.icndb.com/) - provided under CC BY-SA 3.0
http://api.icndb.com/jokes/
"""
chuck = [
"Tutti gli array che Chuck Norris dichiara sono di dimensioni infinite, perche` Chuck Norris non conosce limiti.",
"Chuck Norris non ha la latenza del disco perche` il disco rigido sa sbrigarsi, altrimenti sono guai.",
"Chuck Norris scrive codice che si ottimizza da solo.",
"Chuck Norris non puo` testare l'uguaglianza perche` non ha eguali.",
"Chuck Norris non ha bisogno di garbage collection perche` non chiama .Dispose (), chiama .DropKick ().",
"Il primo programma di Chuck Norris e` stato kill -9.",
"Chuck Norris ha scoppiato la bolla delle dot com.",
"Tutti i browser supportano le definizioni esadecimali #chuck e #norris per i colori nero e blu.",
"MySpace non e` proprio il tuo spazio, e` di Chuck (te lo lascia solo usare).",
"Chuck Norris puo` scrivere funzioni infinitamente ricorsive e farle tornare.",
"Chuck Norris puo` risolvere le Torri di Hanoi in una mossa.",
"L'unico modello di design che Chuck Norris conosce e` il God Object Pattern.",
"Chuck Norris ha terminato World of Warcraft.",
"I project manager non chiedono mai a Chuck Norris le stime.",
"Chuck Norris non usa gli standard web in quanto il web si conformera` a lui.",
"'Funziona sulla mia macchina' e` sempre vero per Chuck Norris.",
"Chuck Norris non fa i grafici di Burn Down, fa i grafici di Smack Down.",
"Chuck Norris puo` cancellare il cestino.",
"La barba di Chuck Norris puo` scrivere 140 parole al minuto.",
"Chuck Norris puo` testare tutte le applicazioni con un'unica affermazione, 'funziona'.",
"La tastiera di Chuck Norris non ha un tasto Ctrl perche` niente controlla Chuck Norris.",
"Chuck Norris puo` far traboccare il tuo stack solo guardandolo.",
"Per Chuck Norris, tutto contiene una vulnerabilita`.",
"Chuck Norris non usa sudo, la shell sa solo che e` lui e fa quello che gli viene detto.",
"Chuck Norris non ha bisogno di un debugger, si limita a fissare il codice finche` non confessa.",
"Chuck Norris puo` accedere a metodi privati.",
"Chuck Norris puo` istanziare una classe astratta.",
"L'oggetto classe eredita da Chuck Norris.",
"Chuck Norris conosce l'ultima cifra del Pi greco.",
"La connessione di Chuck Norris e` piu' veloce in up che in down perche` i dati sono incentivati a correre via da lui.",
"Nessuna affermazione puo` prendere la ChuckNorrisException.",
"Chuck Norris puo` scrivere applicazioni multi-thread con un singolo thread.",
"Chuck Norris non ha bisogno di usare AJAX perche` le pagine hanno troppa paura di postback comunque.",
"Chuck Norris non usa la riflessione, la riflessione chiede educatamente il suo aiuto.",
"Non c'e` alcun tasto Esc sulla tastiera di Chuck Norris, perche` nessuno sfugge a Chuck Norris.",
"Chuck Norris puo` eseguire la ricerca binaria di dati non ordinati.",
"Chuck Norris non ha bisogno di tentativi di cattura, le eccezioni sono troppo spaventate da sollevarsi.",
"Chuck Norris e` uscito da un ciclo infinito.",
"Se Chuck Norris scrive codice con bug, gli errori si risolvono da soli.",
"L'hosting di Chuck Norris e` garantito al 101% di uptime.",
"La tastiera di Chuck Norris ha il tasto Any.",
"Chuck Norris puo` accedere al database dall'interfaccia utente.",
"I programmi di Chuck Norris non escono mai, sono terminati.",
"I programmi di Chuck Norris occupano il 150% della CPU, anche quando non sono in esecuzione.",
"Chuck Norris puo` generare thread che si completano prima di essere avviati.",
"I programmi di Chuck Norris non accettano input.",
"Chuck Norris puo` installare iTunes senza installare Quicktime.",
"Chuck Norris non ha bisogno di un sistema operativo.",
"Il modello di rete OSI di Chuck Norris ha un solo livello: fisico.",
"Chuck Norris puo` compilare errori di sintassi.",
"Chuck Norris non ha bisogno di digitare cast. Il Chuck-Norris Compiler (CNC) vede attraverso le cose, fino in fondo sempre.",
"Chuck Norris comprime i suoi file con un calcio rotante sul disco rigido.",
"Con Chuck Norris P = NP. Non c'e` alcun nondeterminismo con le decisioni di Chuck Norris.",
"Chuck Norris puo` recuperare qualsiasi cosa da / dev / null.",
"Nessuno ha mai programmato in coppia con Chuck Norris ed e`vissuto per raccontare la storia.",
"Nessuno ha mai parlato durante la revisione del codice di Chuck Norris ed e` vissuto per raccontare la storia.",
"Chuck Norris non usa una GUI, preferisce la linea di comando.",
"Chuck Norris non usa Oracle, lui e` l'Oracle.",
"Chuck Norris puo` dereferenziare NULL.",
"Una differenza tra il tuo codice e quello di Chuck Norris e` infinita.",
"Il plugin Chuck Norris Eclipse e` diventato un contatto alieno.",
"Chuck Norris e` l'ultimo mutex, tutti i thread lo temono.",
"Non preoccuparti dei test, i test case di Chuck Norris coprono anche il tuo codice.",
"Le dichiarazioni del registro di Chuck Norris sono sempre al livello FATAL.",
"Chuck Norris ha completato World of Warcraft.",
"Quando Chuck Norris rompe la build, non e` possibile risolverla, perche` non c'e` una sola riga di codice.",
"Chuck Norris scrive con un dito, lo punta alla tastiera e la tastiera fa il resto.",
"I programmi di Chuck Norris possono superare il test di Turing fissando l'interrogatore.",
"Se provi kill -9 con i programmi di Chuck Norris, si ritorce contro.",
"Chuck Norris esegue loop infiniti in meno di 4 secondi.",
"Chuck Norris puo` sovrascrivere una variabile bloccata.",
"Chuck Norris conosce il valore di NULL.",
"Chuck Norris puo` installare un sistema operativo a 64 bit su macchine a 32 bit.",
"Chuck Norris puo` scrivere su un flusso di output.",
"Chuck Norris puo` leggere da un flusso di input.",
"Chuck Norris non ha mai scritto il suo programma in codice macchina. Le macchine hanno imparato a interpretare il codice di Chuck Norris.",
"I test unitari di Chuck Norris non girano, muoiono.",
"Chuck Norris causa la schermata blu della morte.",
"Chuck Norris puo` fare una classe che e` sia astratta che finale.",
"Chuck Norris potrebbe usare qualsiasi cosa in java.util.* per ucciderti, inclusi i javadoc.",
"Il codice gira piu` velocemente quando Chuck Norris lo guarda.",
"Chuck Norris non usa REST, lui aspetta.",
"Su Facebook a tutti piace Chuck Norris, che lo scelgano o no.",
"Non puoi seguire Chuck Norris su Twitter, perche` lui ti segue.",
"La calcolatrice di Chuck Norris ha solo 3 tasti: 0, 1 e NAND.",
"Chuck Norris utilizza solo variabili globali. Non ha nulla da nascondere.",
"Chuck Norris scrive direttamente in binario. Quindi scrive il codice sorgente come documentazione per altri programmatori.",
]
jokes_it = {
'neutral': neutral,
'chuck': chuck,
'all': neutral + chuck,
}
|
"""
Jokes from stackoverflow - provided under CC BY-SA 3.0
http://stackoverflow.com/questions/234075/what-is-your-best-programmer-joke?page=4&tab=votes#tab-top
"""
neutral = ["Trionfalmente, Beth ha rimosso Python 2.7 dal server nel 2020.'Finalmente!' ha detto con gioia, solo per vedere l'annuncio di Python 4.4.", "Una query SQL entra in un bar, cammina verso a due table e chiede: 'Posso unirvi?'.", 'Quando il tuo martello e` C ++, tutto inizia a sembrare un pollice.', 'Se metti un milione di scimmie su un milione di tastiere, uno di loro alla fine scrivera` un programma Java, il resto scrivera` Perl.', 'Per comprendere la ricorsione devi prima capire la ricorsione.', 'Gli amici non permettono agli amici di usare Python 2.7.', "Ho suggerito di tenere un 'Python Object Oriented Programming Seminar', ma l'acronimo era impopolare.", "'toc, toc'. 'Chi e` la`?' ... pausa molto lunga ... Java.", 'Quanti programmatori ci vogliono per cambiare una lampadina? Nessuno, e` un problema hardware.', 'Qual e` il modo orientato agli oggetti per diventare ricchi? Ereditarieta`.', "Quanti programmatori ci vogliono per cambiare una lampadina? Nessuno, possono rendere l'oscurita` uno standard.", 'I vecchi programmatori C non muoiono, sono solo gettati nel void.', 'Gli sviluppatori di software amano risolvere i problemi: se non ci sono problemi facilmente disponibili li creeranno.', '.NET e` stato chiamato .NET in modo che non si visualizzasse in un elenco di directory Unix.', 'Hardware: la parte di un computer che puoi calciare.', "Un programmatore e` stato trovato morto nella doccia, accanto al corpo c'era uno shampoo con le istruzioni:Insapona, risciacqua ripeti.", 'Ottimista: il bicchiere e` mezzo pieno Pessimista: il bicchiere e` mezzo vuoto Programmatore: il bicchiere e` il doppio del necessario.', 'In C abbiamo dovuto codificare i nostri bug. In C ++ possiamo ereditarli.', "Come mai non c'e` una gara Perl offuscato? Perche` tutti vincerebbero.", "Se riproduci un CD di Windows all'indietro, ascolterai il canto satanico ... peggio ancora, se lo riproduci in avanti, installa Windows.", "Quanti programmatori ci vogliono per uccidere uno scarafaggio? Due: uno tiene, l'altro installa Windows su di esso.", 'Come si chiama un programmatore finlandese? Nerdic.', 'Cosa ha detto il codice Java al codice C? : Non hai classe.', "Perche` Microsoft ha chiamato il proprio motore di ricerca BING? Because It's Not Google.", 'I venditori di software e i venditori di auto usate si differenziano perche` questi ultimi sanno quando mentono.', "Bambino: 'papa', perche` il sole sorge ad est e tramonta ad ovest?' Papa': 'figlio, sta funzionando, non toccarlo'.", 'Quanti programmatori Prolog ci vogliono per cambiare una lampadina? Falso.', 'I veri programmatori possono scrivere codice assembly in qualsiasi lingua.', "Cameriere: 'le piacerebbe un caffe` o un te`?' Programmatore: 'Si'.", 'Un programmatore entra in un foo ...', 'Qual e` il secondo nome di Benoit B. Mandelbrot? Benoit B. Mandelbrot.', 'Perche` sorridi sempre? Questa e` solo la mia ... espressione regolare.', 'Domanda stupida ASCII, ottiene uno stupido ANSI.', "Un programmatore aveva un problema: penso` tra se stesso: 'lo risolvo con i threads!', ora ha due problemi.", 'Java: scrivi una volta e scappa.', 'Ti direi una battuta su UDP, ma non lo capiresti mai.', 'Un ingegnere di QA entra in un bar, si imbatte in un bar, striscia in un bar, balla in un bar, punta i piedi in un bar...', 'Ho avuto un problema quindi ho pensato di utilizzare Java. Ora ho una ProblemFactory.', "L'ingegnere del QA entra in un bar, ordina una birra, ordina 0 birre, 99999 birre, una lucertola, -1 birre, uno sfdeljknesv.", "Un responsabile di prodotto entra in un bar, chiede un drink, il barista dice NO, ma prendera` in considerazione l'aggiunta successiva.", 'Come si genera una stringa casuale? Metti uno studente di Informatica del primo anno davanti a Vim e gli chiedi di salvare ed uscire.', 'Uso Vim da molto tempo ormai, principalmente perche` non riesco a capire come uscire.', 'Come fai a sapere se una persona e` un utente Vim? Non ti preoccupare, te lo diranno.', "un cameriere urla: 'sta soffocando! Qualcuno e` un dottore?' Programmatore: 'sono un utente Vim'.", '3 Database Admins sono entrati in un bar NoSQL e poco dopo sono usciti perche` non sono riusciti a trovare un table.', "Come spiegare il film Inception a un programmatore? Quando esegui una VM dentro una VM dentro un' altra VM tutto procede molto lentamente.", "Come si chiama un pappagallo che dice 'Squawk! Pezzi di nove! Pezzi di nove!' Un errore a pappagallo.", 'Ci sono solo due problemi difficili in Informatica: invalidazione della cache, denominazione delle cose e errori di off-by-one.', 'Ci sono 10 tipi di persone: quelli che comprendono il binario e quelli che non lo sanno.', 'Ci sono 2 tipi di persone: quelli che possono estrapolare dati da insiemi incompleti ...', 'Esistono II tipi di persone: quelli che comprendono i numeri romani e quelli che non li conoscono.', "Ci sono 10 tipi di persone: quelli che comprendono l'esadecimale e altri 15.", 'Ci sono 10 tipi di persone: quelli che capiscono il trinario, quelli che non lo fanno e quelli che non ne hanno mai sentito parlare.', 'Come chiami otto hobbit? Un hob byte.', 'La cosa migliore di un booleano e` che anche se ti sbagli, sei solo fuori di un bit.', 'Un buon programmatore e` qualcuno che guarda sempre in entrambe le direzioni prima di attraversare una strada a senso unico.', 'Esistono due modi per scrivere programmi privi di errori: solo il terzo funziona.', 'I controlli di qualita` consistono nel 55% di acqua, 30% di sangue e 15% di ticket in Jira.', 'Quanti QA servono per cambiare una lampadina? Hanno notato che la stanza era buia,: non risolvono i problemi, li trovano.', "Un programmatore si schianta contro un'auto , l'uomo chiede 'cosa e` successo', l'altro risponde'Non so. Facciamo il backup e riprova'.", 'Scrivere PHP e` come fare pipi` in piscina, tutti lo hanno fatto, ma non hanno bisogno di renderlo pubblico.', 'Numero di giorni da quando ho riscontrato un errore di indice di array: -1.', 'gli appuntamenti veloci sono inutili, 5 minuti non sono sufficienti per spiegare correttamente i benefici della filosofia Unix.', "Microsoft ha ogni quindici giorni una 'settimana produttiva' dove usa Google invece di Bing.", 'Trovare un buon sviluppatore PHP e` come cercare un ago in un pagliaio o e` un hackstack in un ago?.', 'Unix e` user friendly, e` solo molto particolare nella scelta di chi siano i suoi amici.', "Un programmatore COBOL guadagna milioni con la riparazione Y2K e decide di congelarsi criogenicamente. L'anno e` 9999.", "Il linguaggio C combina tutta la potenza del linguaggio assembly con tutta la facilita` d'uso del linguaggio assembly.", 'Un esperto SEO entra in un bar, pub, pub irlandese, taverna, barista, birra, liquore, vino, alcolici, liquori ...', 'Che cosa significa Emacs? Utilizzato esclusivamente dagli scienziati informatici di mezza eta`.', 'Che cosa hanno in comune le battute di PyJokes con Adobe Flash? Si aggiornano sempre, ma non migliorano.', 'Quanti demosceners sono necessari per cambiare una lampadina? Meta`. Con uno intero non ci sono sfide.']
'\nJokes from The Internet Chuck Norris DB (ICNDB) (http://www.icndb.com/) - provided under CC BY-SA 3.0\nhttp://api.icndb.com/jokes/\n'
chuck = ['Tutti gli array che Chuck Norris dichiara sono di dimensioni infinite, perche` Chuck Norris non conosce limiti.', 'Chuck Norris non ha la latenza del disco perche` il disco rigido sa sbrigarsi, altrimenti sono guai.', 'Chuck Norris scrive codice che si ottimizza da solo.', "Chuck Norris non puo` testare l'uguaglianza perche` non ha eguali.", 'Chuck Norris non ha bisogno di garbage collection perche` non chiama .Dispose (), chiama .DropKick ().', 'Il primo programma di Chuck Norris e` stato kill -9.', 'Chuck Norris ha scoppiato la bolla delle dot com.', 'Tutti i browser supportano le definizioni esadecimali #chuck e #norris per i colori nero e blu.', 'MySpace non e` proprio il tuo spazio, e` di Chuck (te lo lascia solo usare).', 'Chuck Norris puo` scrivere funzioni infinitamente ricorsive e farle tornare.', 'Chuck Norris puo` risolvere le Torri di Hanoi in una mossa.', "L'unico modello di design che Chuck Norris conosce e` il God Object Pattern.", 'Chuck Norris ha terminato World of Warcraft.', 'I project manager non chiedono mai a Chuck Norris le stime.', 'Chuck Norris non usa gli standard web in quanto il web si conformera` a lui.', "'Funziona sulla mia macchina' e` sempre vero per Chuck Norris.", 'Chuck Norris non fa i grafici di Burn Down, fa i grafici di Smack Down.', 'Chuck Norris puo` cancellare il cestino.', 'La barba di Chuck Norris puo` scrivere 140 parole al minuto.', "Chuck Norris puo` testare tutte le applicazioni con un'unica affermazione, 'funziona'.", 'La tastiera di Chuck Norris non ha un tasto Ctrl perche` niente controlla Chuck Norris.', 'Chuck Norris puo` far traboccare il tuo stack solo guardandolo.', 'Per Chuck Norris, tutto contiene una vulnerabilita`.', 'Chuck Norris non usa sudo, la shell sa solo che e` lui e fa quello che gli viene detto.', 'Chuck Norris non ha bisogno di un debugger, si limita a fissare il codice finche` non confessa.', 'Chuck Norris puo` accedere a metodi privati.', 'Chuck Norris puo` istanziare una classe astratta.', "L'oggetto classe eredita da Chuck Norris.", "Chuck Norris conosce l'ultima cifra del Pi greco.", "La connessione di Chuck Norris e` piu' veloce in up che in down perche` i dati sono incentivati a correre via da lui.", 'Nessuna affermazione puo` prendere la ChuckNorrisException.', 'Chuck Norris puo` scrivere applicazioni multi-thread con un singolo thread.', 'Chuck Norris non ha bisogno di usare AJAX perche` le pagine hanno troppa paura di postback comunque.', 'Chuck Norris non usa la riflessione, la riflessione chiede educatamente il suo aiuto.', "Non c'e` alcun tasto Esc sulla tastiera di Chuck Norris, perche` nessuno sfugge a Chuck Norris.", 'Chuck Norris puo` eseguire la ricerca binaria di dati non ordinati.', 'Chuck Norris non ha bisogno di tentativi di cattura, le eccezioni sono troppo spaventate da sollevarsi.', 'Chuck Norris e` uscito da un ciclo infinito.', 'Se Chuck Norris scrive codice con bug, gli errori si risolvono da soli.', "L'hosting di Chuck Norris e` garantito al 101% di uptime.", 'La tastiera di Chuck Norris ha il tasto Any.', "Chuck Norris puo` accedere al database dall'interfaccia utente.", 'I programmi di Chuck Norris non escono mai, sono terminati.', 'I programmi di Chuck Norris occupano il 150% della CPU, anche quando non sono in esecuzione.', 'Chuck Norris puo` generare thread che si completano prima di essere avviati.', 'I programmi di Chuck Norris non accettano input.', 'Chuck Norris puo` installare iTunes senza installare Quicktime.', 'Chuck Norris non ha bisogno di un sistema operativo.', 'Il modello di rete OSI di Chuck Norris ha un solo livello: fisico.', 'Chuck Norris puo` compilare errori di sintassi.', 'Chuck Norris non ha bisogno di digitare cast. Il Chuck-Norris Compiler (CNC) vede attraverso le cose, fino in fondo sempre.', 'Chuck Norris comprime i suoi file con un calcio rotante sul disco rigido.', "Con Chuck Norris P = NP. Non c'e` alcun nondeterminismo con le decisioni di Chuck Norris.", 'Chuck Norris puo` recuperare qualsiasi cosa da / dev / null.', 'Nessuno ha mai programmato in coppia con Chuck Norris ed e`vissuto per raccontare la storia.', 'Nessuno ha mai parlato durante la revisione del codice di Chuck Norris ed e` vissuto per raccontare la storia.', 'Chuck Norris non usa una GUI, preferisce la linea di comando.', "Chuck Norris non usa Oracle, lui e` l'Oracle.", 'Chuck Norris puo` dereferenziare NULL.', 'Una differenza tra il tuo codice e quello di Chuck Norris e` infinita.', 'Il plugin Chuck Norris Eclipse e` diventato un contatto alieno.', "Chuck Norris e` l'ultimo mutex, tutti i thread lo temono.", 'Non preoccuparti dei test, i test case di Chuck Norris coprono anche il tuo codice.', 'Le dichiarazioni del registro di Chuck Norris sono sempre al livello FATAL.', 'Chuck Norris ha completato World of Warcraft.', "Quando Chuck Norris rompe la build, non e` possibile risolverla, perche` non c'e` una sola riga di codice.", 'Chuck Norris scrive con un dito, lo punta alla tastiera e la tastiera fa il resto.', "I programmi di Chuck Norris possono superare il test di Turing fissando l'interrogatore.", 'Se provi kill -9 con i programmi di Chuck Norris, si ritorce contro.', 'Chuck Norris esegue loop infiniti in meno di 4 secondi.', 'Chuck Norris puo` sovrascrivere una variabile bloccata.', 'Chuck Norris conosce il valore di NULL.', 'Chuck Norris puo` installare un sistema operativo a 64 bit su macchine a 32 bit.', 'Chuck Norris puo` scrivere su un flusso di output.', 'Chuck Norris puo` leggere da un flusso di input.', 'Chuck Norris non ha mai scritto il suo programma in codice macchina. Le macchine hanno imparato a interpretare il codice di Chuck Norris.', 'I test unitari di Chuck Norris non girano, muoiono.', 'Chuck Norris causa la schermata blu della morte.', 'Chuck Norris puo` fare una classe che e` sia astratta che finale.', 'Chuck Norris potrebbe usare qualsiasi cosa in java.util.* per ucciderti, inclusi i javadoc.', 'Il codice gira piu` velocemente quando Chuck Norris lo guarda.', 'Chuck Norris non usa REST, lui aspetta.', 'Su Facebook a tutti piace Chuck Norris, che lo scelgano o no.', 'Non puoi seguire Chuck Norris su Twitter, perche` lui ti segue.', 'La calcolatrice di Chuck Norris ha solo 3 tasti: 0, 1 e NAND.', 'Chuck Norris utilizza solo variabili globali. Non ha nulla da nascondere.', 'Chuck Norris scrive direttamente in binario. Quindi scrive il codice sorgente come documentazione per altri programmatori.']
jokes_it = {'neutral': neutral, 'chuck': chuck, 'all': neutral + chuck}
|
'''Question 1: Given a two integer numbers return their product
and if the product is greater than 1000, then return their sum'''
num1=int(input("Enter the first no:"))
num2=int(input("Enter the second no:"))
product=num1*num2
if(product>1000):
print("sum is:",num1+num2)
else:
print("Invalid numbers")
#output
'''
Enter the first no:32
Enter the second no:200
sum is: 232
'''
|
"""Question 1: Given a two integer numbers return their product
and if the product is greater than 1000, then return their sum"""
num1 = int(input('Enter the first no:'))
num2 = int(input('Enter the second no:'))
product = num1 * num2
if product > 1000:
print('sum is:', num1 + num2)
else:
print('Invalid numbers')
'\nEnter the first no:32\nEnter the second no:200\nsum is: 232\n'
|
def collection_json():
"""Returns JSON skeleton for Postman schema."""
collection_json = {
"info": {
"name": "Test_collection",
"description": "Generic text used for documentation.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
},
"item": [],
}
return collection_json
def atomic_request():
"""Returns an atomic Postman request dictionary."""
request = {
"name": "test request",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{target_url}}endpoint",
"host": ["{{target_url}}endpoint"],
},
"description": "This description can come from docs strings",
},
"response": [],
}
return request
def basic_JSON(collection_name, app, api_json=collection_json()):
"""Formats the Postman collection with 'collection_name' and doc string from Sanic app.
Returns JSON dictionary."""
api_json["info"]["name"] = collection_name
api_json["info"]["description"] = app.__doc__
return api_json
|
def collection_json():
"""Returns JSON skeleton for Postman schema."""
collection_json = {'info': {'name': 'Test_collection', 'description': 'Generic text used for documentation.', 'schema': 'https://schema.getpostman.com/json/collection/v2.1.0/collection.json'}, 'item': []}
return collection_json
def atomic_request():
"""Returns an atomic Postman request dictionary."""
request = {'name': 'test request', 'request': {'method': 'GET', 'header': [], 'url': {'raw': '{{target_url}}endpoint', 'host': ['{{target_url}}endpoint']}, 'description': 'This description can come from docs strings'}, 'response': []}
return request
def basic_json(collection_name, app, api_json=collection_json()):
"""Formats the Postman collection with 'collection_name' and doc string from Sanic app.
Returns JSON dictionary."""
api_json['info']['name'] = collection_name
api_json['info']['description'] = app.__doc__
return api_json
|
"""Constants for the Alexa integration."""
DOMAIN = 'alexa'
# Flash briefing constants
CONF_UID = 'uid'
CONF_TITLE = 'title'
CONF_AUDIO = 'audio'
CONF_TEXT = 'text'
CONF_DISPLAY_URL = 'display_url'
CONF_FILTER = 'filter'
CONF_ENTITY_CONFIG = 'entity_config'
CONF_ENDPOINT = 'endpoint'
CONF_CLIENT_ID = 'client_id'
CONF_CLIENT_SECRET = 'client_secret'
ATTR_UID = 'uid'
ATTR_UPDATE_DATE = 'updateDate'
ATTR_TITLE_TEXT = 'titleText'
ATTR_STREAM_URL = 'streamUrl'
ATTR_MAIN_TEXT = 'mainText'
ATTR_REDIRECTION_URL = 'redirectionURL'
SYN_RESOLUTION_MATCH = 'ER_SUCCESS_MATCH'
DATE_FORMAT = '%Y-%m-%dT%H:%M:%S.0Z'
DEFAULT_TIMEOUT = 30
|
"""Constants for the Alexa integration."""
domain = 'alexa'
conf_uid = 'uid'
conf_title = 'title'
conf_audio = 'audio'
conf_text = 'text'
conf_display_url = 'display_url'
conf_filter = 'filter'
conf_entity_config = 'entity_config'
conf_endpoint = 'endpoint'
conf_client_id = 'client_id'
conf_client_secret = 'client_secret'
attr_uid = 'uid'
attr_update_date = 'updateDate'
attr_title_text = 'titleText'
attr_stream_url = 'streamUrl'
attr_main_text = 'mainText'
attr_redirection_url = 'redirectionURL'
syn_resolution_match = 'ER_SUCCESS_MATCH'
date_format = '%Y-%m-%dT%H:%M:%S.0Z'
default_timeout = 30
|
'''
Author: Aditya Mangal
Date: 20 september,2020
Purpose: python practise problem
'''
def input_matrixes(m, n):
output = []
for i in range(m):
row = []
for j in range(n):
user_matrixes = int(input(f'Enter number on [{i}][{j}]\n'))
row.append(user_matrixes)
output.append(row)
return output
def sum(A, B):
output2 = []
for i in range(len(A)):
row2 = [A[i][j] + B[i][j] for j in range(len(A[0]))]
output2.append(row2)
return output2
if __name__ == "__main__":
rows = int(input('Enter the m rows of matrixes.\n'))
columns = int(input('Enter the n columns of matrixes.\n'))
print('Enter your first matrix.\n')
A = input_matrixes(rows, columns)
print('Enter your secound matrix.\n')
B = input_matrixes(rows, columns)
result = sum(A, B)
print('Your sum of matrixes are :-\n')
for i in range(len(result)):
print(result[i])
|
"""
Author: Aditya Mangal
Date: 20 september,2020
Purpose: python practise problem
"""
def input_matrixes(m, n):
output = []
for i in range(m):
row = []
for j in range(n):
user_matrixes = int(input(f'Enter number on [{i}][{j}]\n'))
row.append(user_matrixes)
output.append(row)
return output
def sum(A, B):
output2 = []
for i in range(len(A)):
row2 = [A[i][j] + B[i][j] for j in range(len(A[0]))]
output2.append(row2)
return output2
if __name__ == '__main__':
rows = int(input('Enter the m rows of matrixes.\n'))
columns = int(input('Enter the n columns of matrixes.\n'))
print('Enter your first matrix.\n')
a = input_matrixes(rows, columns)
print('Enter your secound matrix.\n')
b = input_matrixes(rows, columns)
result = sum(A, B)
print('Your sum of matrixes are :-\n')
for i in range(len(result)):
print(result[i])
|
d=int(input())
m=int(input())
n=int(input())
x=[int(z) for z in input().split(" ")]
dist_travelled=0
i=0
refuel=0
while(dist_travelled<d and i<n-1):
if(dist_travelled+m>=d):
break
if(dist_travelled+m>=x[i] and dist_travelled+m<x[i+1]):
dist_travelled=x[i]
refuel+=1
elif(dist_travelled+m<x[i]):
refuel=-1
break
i+=1
if(dist_travelled+m>=x[n-1] and dist_travelled+m<d):
refuel+=1
dist_travelled=x[n-1]
if(dist_travelled+m<d):
refuel=-1
print(refuel)
|
d = int(input())
m = int(input())
n = int(input())
x = [int(z) for z in input().split(' ')]
dist_travelled = 0
i = 0
refuel = 0
while dist_travelled < d and i < n - 1:
if dist_travelled + m >= d:
break
if dist_travelled + m >= x[i] and dist_travelled + m < x[i + 1]:
dist_travelled = x[i]
refuel += 1
elif dist_travelled + m < x[i]:
refuel = -1
break
i += 1
if dist_travelled + m >= x[n - 1] and dist_travelled + m < d:
refuel += 1
dist_travelled = x[n - 1]
if dist_travelled + m < d:
refuel = -1
print(refuel)
|
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless 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 AgentBase(object):
"""`AgentBase` is the base class of the `parl.Agent` in different frameworks.
`parl.Agent` is responsible for the general data flow outside the algorithm.
"""
def __init__(self, algorithm):
"""
Args:
algorithm (`AlgorithmBase`): an instance of `AlgorithmBase`
"""
self.alg = algorithm
def get_weights(self, model_ids=None):
"""Get weights of the agent.
If `model_ids` is not None, will only return weights of
models whose model_id are in `model_ids`.
Note:
`ModelBase` in list, tuple and dict will be included. But `ModelBase` in
nested list, tuple and dict won't be included.
Args:
model_ids (List/Set): list/set of model_id, will only return weights of models
whiose model_id in the `model_ids`.
Returns:
(Dict): Dict of weights ({attribute name: numpy array/List/Dict})
"""
return self.alg.get_weights(model_ids=model_ids)
def set_weights(self, weights, model_ids=None):
"""Set weights of the agent with given weights.
If `model_ids` is not None, will only set weights of
models whose model_id are in `model_ids`.
Note:
`ModelBase` in list, tuple and dict will be included. But `ModelBase` in
nested list, tuple and dict won't be included.
Args:
weights (Dict): Dict of weights ({attribute name: numpy array/List/Dict})
model_ids (List/Set): list/set of model_id, will only set weights of models
whiose model_id in the `model_ids`.
"""
self.alg.set_weights(weights, model_ids=model_ids)
def get_model_ids(self):
"""Get all model ids of the self.alg in the agent.
Returns:
List of model_id
"""
return self.alg.get_model_ids()
@property
def model_ids(self):
return self.get_model_ids()
def learn(self, *args, **kwargs):
"""The training interface for Agent.
This function will usually do the following things:
1. Accept numpy data as input;
2. Feed numpy data or onvert numpy data to tensor (optional);
3. Call learn function in `Algorithm`.
"""
raise NotImplementedError
def predict(self, *args, **kwargs):
"""Predict the action when given the observation of the enviroment.
In general, this function is used in test process.
This function will usually do the following things:
1. Accept numpy data as input;
2. Feed numpy data or onvert numpy data to tensor (optional);
3. Call predict function in `Algorithm`.
"""
raise NotImplementedError
def sample(self, *args, **kwargs):
"""Sample the action when given the observation of the enviroment.
In general, this function is used in train process.
This function will usually do the following things:
1. Accept numpy data as input;
2. Feed numpy data or onvert numpy data to tensor (optional);
3. Call predict or sample function in `Algorithm`;
4. Add sampling operation in numpy level. (unnecessary if sampling operation have done in `Algorithm`).
"""
raise NotImplementedError
|
class Agentbase(object):
"""`AgentBase` is the base class of the `parl.Agent` in different frameworks.
`parl.Agent` is responsible for the general data flow outside the algorithm.
"""
def __init__(self, algorithm):
"""
Args:
algorithm (`AlgorithmBase`): an instance of `AlgorithmBase`
"""
self.alg = algorithm
def get_weights(self, model_ids=None):
"""Get weights of the agent.
If `model_ids` is not None, will only return weights of
models whose model_id are in `model_ids`.
Note:
`ModelBase` in list, tuple and dict will be included. But `ModelBase` in
nested list, tuple and dict won't be included.
Args:
model_ids (List/Set): list/set of model_id, will only return weights of models
whiose model_id in the `model_ids`.
Returns:
(Dict): Dict of weights ({attribute name: numpy array/List/Dict})
"""
return self.alg.get_weights(model_ids=model_ids)
def set_weights(self, weights, model_ids=None):
"""Set weights of the agent with given weights.
If `model_ids` is not None, will only set weights of
models whose model_id are in `model_ids`.
Note:
`ModelBase` in list, tuple and dict will be included. But `ModelBase` in
nested list, tuple and dict won't be included.
Args:
weights (Dict): Dict of weights ({attribute name: numpy array/List/Dict})
model_ids (List/Set): list/set of model_id, will only set weights of models
whiose model_id in the `model_ids`.
"""
self.alg.set_weights(weights, model_ids=model_ids)
def get_model_ids(self):
"""Get all model ids of the self.alg in the agent.
Returns:
List of model_id
"""
return self.alg.get_model_ids()
@property
def model_ids(self):
return self.get_model_ids()
def learn(self, *args, **kwargs):
"""The training interface for Agent.
This function will usually do the following things:
1. Accept numpy data as input;
2. Feed numpy data or onvert numpy data to tensor (optional);
3. Call learn function in `Algorithm`.
"""
raise NotImplementedError
def predict(self, *args, **kwargs):
"""Predict the action when given the observation of the enviroment.
In general, this function is used in test process.
This function will usually do the following things:
1. Accept numpy data as input;
2. Feed numpy data or onvert numpy data to tensor (optional);
3. Call predict function in `Algorithm`.
"""
raise NotImplementedError
def sample(self, *args, **kwargs):
"""Sample the action when given the observation of the enviroment.
In general, this function is used in train process.
This function will usually do the following things:
1. Accept numpy data as input;
2. Feed numpy data or onvert numpy data to tensor (optional);
3. Call predict or sample function in `Algorithm`;
4. Add sampling operation in numpy level. (unnecessary if sampling operation have done in `Algorithm`).
"""
raise NotImplementedError
|
def main(j, args, params, tags, tasklet):
page = args.page
action = args.requestContext.params.get('action', 'install')
aysid = args.requestContext.params.get('aysid')
instance = args.requestContext.params.get('instance', 'main')
parent = args.requestContext.params.get('parent', '')
installedagent = j.application.getAppHRDInstanceNames('agentcontroller2_client')
if not installedagent:
if not installedagent:
page.addMessage('No agentcontroller2_client installed on node')
params.result = page
return params
acc = j.clients.ac.getByInstance(installedagent[0])
installargs = args.requestContext.params.copy()
for param in ('name', 'rights', 'space', 'instance', 'action', 'path', 'aysid', 'parent'):
installargs.pop(param)
ays = j.atyourservice.getTemplatefromSQL(templateid=aysid)
if not ays:
page.addMessage("h3. Could not find template on node")
params.result = page
return params
ays = ays[0]
installargs = ['%s:%s' % (key, value) for key, value in installargs.items()]
result = acc.execute(j.application.whoAmI.gid, j.application.whoAmI.nid, 'ays', ['install', '-n', ays.name, '-d', ays.domain,
'-i', instance, '--data', ' '.join(installargs), '--parent', parent])
page.addMessage('Service %s:%s:%s install job (%s) has started' % (ays.domain, ays.name, instance, result.id))
params.result = page
return params
def match(j, args, params, tags, tasklet):
return True
|
def main(j, args, params, tags, tasklet):
page = args.page
action = args.requestContext.params.get('action', 'install')
aysid = args.requestContext.params.get('aysid')
instance = args.requestContext.params.get('instance', 'main')
parent = args.requestContext.params.get('parent', '')
installedagent = j.application.getAppHRDInstanceNames('agentcontroller2_client')
if not installedagent:
if not installedagent:
page.addMessage('No agentcontroller2_client installed on node')
params.result = page
return params
acc = j.clients.ac.getByInstance(installedagent[0])
installargs = args.requestContext.params.copy()
for param in ('name', 'rights', 'space', 'instance', 'action', 'path', 'aysid', 'parent'):
installargs.pop(param)
ays = j.atyourservice.getTemplatefromSQL(templateid=aysid)
if not ays:
page.addMessage('h3. Could not find template on node')
params.result = page
return params
ays = ays[0]
installargs = ['%s:%s' % (key, value) for (key, value) in installargs.items()]
result = acc.execute(j.application.whoAmI.gid, j.application.whoAmI.nid, 'ays', ['install', '-n', ays.name, '-d', ays.domain, '-i', instance, '--data', ' '.join(installargs), '--parent', parent])
page.addMessage('Service %s:%s:%s install job (%s) has started' % (ays.domain, ays.name, instance, result.id))
params.result = page
return params
def match(j, args, params, tags, tasklet):
return True
|
class SpaceAge(object):
earth_year = 31557600
corr = {
'earth': 1,
'mercury': 0.2408467,
'venus': 0.61519726,
'mars': 1.8808158,
'jupiter': 11.862615,
'saturn': 29.447498,
'uranus': 84.016846,
'neptune': 164.79132
}
def __init__(self, seconds):
self.seconds = seconds
def repr(self, planet=None):
return round(self.seconds / (self.earth_year * (self.corr[planet] if planet else 1)), 2)
def __getattr__(self, name):
planet = name[3:]
|
class Spaceage(object):
earth_year = 31557600
corr = {'earth': 1, 'mercury': 0.2408467, 'venus': 0.61519726, 'mars': 1.8808158, 'jupiter': 11.862615, 'saturn': 29.447498, 'uranus': 84.016846, 'neptune': 164.79132}
def __init__(self, seconds):
self.seconds = seconds
def repr(self, planet=None):
return round(self.seconds / (self.earth_year * (self.corr[planet] if planet else 1)), 2)
def __getattr__(self, name):
planet = name[3:]
|
ACME_DEPLOYMENT = """
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: %(deployment_name)s
labels:
app: openshift-acme
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: openshift-acme
strategy:
type: Recreate
template:
metadata:
creationTimestamp: null
labels:
app: openshift-acme
spec:
containers:
- env:
- name: OPENSHIFT_ACME_EXPOSER_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
- name: OPENSHIFT_ACME_ACMEURL
value: 'https://acme-v01.api.letsencrypt.org/directory'
- name: OPENSHIFT_ACME_LOGLEVEL
value: '4'
- name: OPENSHIFT_ACME_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
image: %(image)s
imagePullPolicy: Always
name: openshift-acme
ports:
- containerPort: 5000
protocol: TCP
resources:
limits:
cpu: 50m
memory: 100Mi
requests:
cpu: 5m
memory: 50Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /dapi
name: podinfo
readOnly: true
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: %(serviceaccount_name)s
serviceAccountName: %(serviceaccount_name)s
terminationGracePeriodSeconds: 30
volumes:
- name: podinfo
downwardAPI:
defaultMode: 420
items:
- path: labels
fieldRef:
apiVersion: v1
fieldPath: metadata.labels
"""
ACME_SERVICEACCOUNT = """
kind: ServiceAccount
apiVersion: v1
metadata:
name: %(serviceaccount_name)s
labels:
app: openshift-acme
"""
ACME_ROLE = """
apiVersion: %(role_api_version)s
kind: Role
metadata:
name: %(role_name)s
labels:
app: openshift-acme
rules:
- apiGroups:
- "route.openshift.io"
resources:
- routes
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- "route.openshift.io"
resources:
- routes/custom-host
verbs:
- create
- apiGroups:
- ""
resources:
- services
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- secrets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
"""
ACME_ROLEBINDING = """
apiVersion: %(rolebinding_api_version)s
groupNames: null
kind: RoleBinding
metadata:
name: %(rolebinding_name)s
roleRef:
kind: Role
name: %(role_name)s
namespace: %(namespace_name)s
subjects:
- kind: ServiceAccount
name: %(serviceaccount_name)s
"""
|
acme_deployment = "\napiVersion: extensions/v1beta1\nkind: Deployment\nmetadata:\n name: %(deployment_name)s\n labels:\n app: openshift-acme\nspec:\n progressDeadlineSeconds: 600\n replicas: 1\n revisionHistoryLimit: 10\n selector:\n matchLabels:\n app: openshift-acme\n strategy:\n type: Recreate\n template:\n metadata:\n creationTimestamp: null\n labels:\n app: openshift-acme\n spec:\n containers:\n - env:\n - name: OPENSHIFT_ACME_EXPOSER_IP\n valueFrom:\n fieldRef:\n apiVersion: v1\n fieldPath: status.podIP\n - name: OPENSHIFT_ACME_ACMEURL\n value: 'https://acme-v01.api.letsencrypt.org/directory'\n - name: OPENSHIFT_ACME_LOGLEVEL\n value: '4'\n - name: OPENSHIFT_ACME_NAMESPACE\n valueFrom:\n fieldRef:\n apiVersion: v1\n fieldPath: metadata.namespace\n image: %(image)s\n imagePullPolicy: Always\n name: openshift-acme\n ports:\n - containerPort: 5000\n protocol: TCP\n resources:\n limits:\n cpu: 50m\n memory: 100Mi\n requests:\n cpu: 5m\n memory: 50Mi\n terminationMessagePath: /dev/termination-log\n terminationMessagePolicy: File\n volumeMounts:\n - mountPath: /dapi\n name: podinfo\n readOnly: true\n dnsPolicy: ClusterFirst\n restartPolicy: Always\n schedulerName: default-scheduler\n securityContext: {}\n serviceAccount: %(serviceaccount_name)s\n serviceAccountName: %(serviceaccount_name)s\n terminationGracePeriodSeconds: 30\n volumes:\n - name: podinfo\n downwardAPI:\n defaultMode: 420\n items:\n - path: labels\n fieldRef:\n apiVersion: v1\n fieldPath: metadata.labels\n"
acme_serviceaccount = '\nkind: ServiceAccount\napiVersion: v1\nmetadata:\n name: %(serviceaccount_name)s\n labels:\n app: openshift-acme\n'
acme_role = '\napiVersion: %(role_api_version)s\nkind: Role\nmetadata:\n name: %(role_name)s\n labels:\n app: openshift-acme\nrules:\n- apiGroups:\n - "route.openshift.io"\n resources:\n - routes\n verbs:\n - create\n - delete\n - get\n - list\n - patch\n - update\n - watch\n\n- apiGroups:\n - "route.openshift.io"\n resources:\n - routes/custom-host\n verbs:\n - create\n\n- apiGroups:\n - ""\n resources:\n - services\n verbs:\n - create\n - delete\n - get\n - list\n - patch\n - update\n - watch\n\n- apiGroups:\n - ""\n resources:\n - secrets\n verbs:\n - create\n - delete\n - get\n - list\n - patch\n - update\n - watch\n'
acme_rolebinding = '\napiVersion: %(rolebinding_api_version)s\ngroupNames: null\nkind: RoleBinding\nmetadata:\n name: %(rolebinding_name)s\nroleRef:\n kind: Role\n name: %(role_name)s\n namespace: %(namespace_name)s\nsubjects:\n- kind: ServiceAccount\n name: %(serviceaccount_name)s\n'
|
#!/usr/bin/env python
NAME = 'Cisco ACE XML Gateway'
def is_waf(self):
if self.matchheader(('server', 'ACE XML Gateway')):
return True
return False
|
name = 'Cisco ACE XML Gateway'
def is_waf(self):
if self.matchheader(('server', 'ACE XML Gateway')):
return True
return False
|
# WARNING!!!
# DO NOT MODIFY THIS FILE DIRECTLY.
# TO GENERATE THIS RUN: ./updateWorkspaceSnapshots.sh
BASE_ARCHITECTURES = ["amd64"]
# Exceptions:
# - s390x doesn't have libunwind8.
# https://github.com/GoogleContainerTools/distroless/pull/612#issue-500157699
# - ppc64le doesn't have stretch security-channel.
# https://github.com/GoogleContainerTools/distroless/pull/637#issuecomment-728139611
# - arm needs someone with available hardware to generate:
# //experimental/python2.7/ld.so.arm.cache
ARCHITECTURES = BASE_ARCHITECTURES
VERSIONS = [
("debian11", "bullseye"),
]
DEBIAN_SNAPSHOT = "20210729T144530Z"
DEBIAN_SECURITY_SNAPSHOT = "20210729T023407Z"
SHA256s = {
"amd64": {
"debian11": {
"main": "c17bf41d0f915c55a2cc048ed6a4b87e206e4d72e310f43a41f52d83689bc31d",
"updates": "e70a10d6f43a60226491dffa59b822337fbb27a2d0ba19d11872099c1683fb6d",
"security": "ac756c56a08c59f831db4d6c17d480b21f2704b3d51961fa2ff284a0a82a769a",
},
},
}
|
base_architectures = ['amd64']
architectures = BASE_ARCHITECTURES
versions = [('debian11', 'bullseye')]
debian_snapshot = '20210729T144530Z'
debian_security_snapshot = '20210729T023407Z'
sha256s = {'amd64': {'debian11': {'main': 'c17bf41d0f915c55a2cc048ed6a4b87e206e4d72e310f43a41f52d83689bc31d', 'updates': 'e70a10d6f43a60226491dffa59b822337fbb27a2d0ba19d11872099c1683fb6d', 'security': 'ac756c56a08c59f831db4d6c17d480b21f2704b3d51961fa2ff284a0a82a769a'}}}
|
"""Top-level package for `functions` project."""
__package_name__ = "functions-cli"
__version__ = "0.1.0"
|
"""Top-level package for `functions` project."""
__package_name__ = 'functions-cli'
__version__ = '0.1.0'
|
if __name__ == '__main__':
n = int(input())
if((n%2!=0)or((n>=6)and(n<=20))):
print("Weird")
else:
print("Not Weird")
|
if __name__ == '__main__':
n = int(input())
if n % 2 != 0 or (n >= 6 and n <= 20):
print('Weird')
else:
print('Not Weird')
|
'''
Created on Apr 4, 2021
@author: x2012x
'''
class ConductorException(Exception):
pass
class UnsupportedAction(ConductorException):
pass
class UnsupportedIntent(ConductorException):
pass
class RegistrationExists(ConductorException):
pass
class SpeakableException(ConductorException):
def __init__(self, phrase):
self.phrase = phrase
class TTSFailure(SpeakableException):
pass
class StateFailure(SpeakableException):
pass
class CalendarFailure(SpeakableException):
pass
class RoutineFailure(SpeakableException):
pass
|
"""
Created on Apr 4, 2021
@author: x2012x
"""
class Conductorexception(Exception):
pass
class Unsupportedaction(ConductorException):
pass
class Unsupportedintent(ConductorException):
pass
class Registrationexists(ConductorException):
pass
class Speakableexception(ConductorException):
def __init__(self, phrase):
self.phrase = phrase
class Ttsfailure(SpeakableException):
pass
class Statefailure(SpeakableException):
pass
class Calendarfailure(SpeakableException):
pass
class Routinefailure(SpeakableException):
pass
|
#!/usr/bin/env python3
##################################################################################
# #
# Program purpose: Finds a replace the string "Python" with "Java" and the #
# string "Java" with "Python". #
# Program Author : Happi Yvan <[email protected]> #
# Creation Date : September 22, 2019 #
# #
##################################################################################
def read_string(mess: str):
valid = False
user_str = ""
while not valid:
try:
user_str = input(mess).strip()
valid = True
except ValueError as ve:
print(f"[ERROR]: {ve}")
return user_str
def swap_substr(main_str: str, sub_a: str, sub_b: str):
if main_str.index(sub_a) >= 0 and main_str.index(sub_b) >= 0:
i = 0
while i < len(main_str):
temp_str = main_str[i:i + len(sub_a)]
if temp_str == sub_a:
main_str = main_str[0:i] + sub_b + main_str[i+len(sub_a):]
else:
temp_str = main_str[i:i + len(sub_b)]
if temp_str == sub_b:
main_str = main_str[0:i] + sub_a + main_str[i+len(sub_b):]
i += 1
return main_str
if __name__ == "__main__":
data = read_string(mess="Enter some string with 'Python' and 'Java': ")
print(f"Processed string is: {swap_substr(main_str=data, sub_a='Python', sub_b='Java')}")
|
def read_string(mess: str):
valid = False
user_str = ''
while not valid:
try:
user_str = input(mess).strip()
valid = True
except ValueError as ve:
print(f'[ERROR]: {ve}')
return user_str
def swap_substr(main_str: str, sub_a: str, sub_b: str):
if main_str.index(sub_a) >= 0 and main_str.index(sub_b) >= 0:
i = 0
while i < len(main_str):
temp_str = main_str[i:i + len(sub_a)]
if temp_str == sub_a:
main_str = main_str[0:i] + sub_b + main_str[i + len(sub_a):]
else:
temp_str = main_str[i:i + len(sub_b)]
if temp_str == sub_b:
main_str = main_str[0:i] + sub_a + main_str[i + len(sub_b):]
i += 1
return main_str
if __name__ == '__main__':
data = read_string(mess="Enter some string with 'Python' and 'Java': ")
print(f"Processed string is: {swap_substr(main_str=data, sub_a='Python', sub_b='Java')}")
|
class ObjectMaterialSource(Enum,IComparable,IFormattable,IConvertible):
"""
Defines enumerated values for the source of material of single objects.
enum ObjectMaterialSource,values: MaterialFromLayer (0),MaterialFromObject (1),MaterialFromParent (3)
"""
def __eq__(self,*args):
""" x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x==y """
pass
def __format__(self,*args):
""" __format__(formattable: IFormattable,format: str) -> str """
pass
def __ge__(self,*args):
pass
def __gt__(self,*args):
pass
def __init__(self,*args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __le__(self,*args):
pass
def __lt__(self,*args):
pass
def __ne__(self,*args):
pass
def __reduce_ex__(self,*args):
pass
def __str__(self,*args):
pass
MaterialFromLayer=None
MaterialFromObject=None
MaterialFromParent=None
value__=None
|
class Objectmaterialsource(Enum, IComparable, IFormattable, IConvertible):
"""
Defines enumerated values for the source of material of single objects.
enum ObjectMaterialSource,values: MaterialFromLayer (0),MaterialFromObject (1),MaterialFromParent (3)
"""
def __eq__(self, *args):
""" x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x==y """
pass
def __format__(self, *args):
""" __format__(formattable: IFormattable,format: str) -> str """
pass
def __ge__(self, *args):
pass
def __gt__(self, *args):
pass
def __init__(self, *args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __le__(self, *args):
pass
def __lt__(self, *args):
pass
def __ne__(self, *args):
pass
def __reduce_ex__(self, *args):
pass
def __str__(self, *args):
pass
material_from_layer = None
material_from_object = None
material_from_parent = None
value__ = None
|
# question : https://quera.ir/problemset/university/296/
n = int(input())
for i in range(1, n + 1):
line = ''
for j in range(1, n + 1):
if i in [1, n]:
line += '#'
elif j in [1, n]:
line += '#'
elif i == j:
line += '#'
elif j == n - i + 1:
line += '#'
elif j > n-i:
if i <= int(n/2)+1:
line += '#'
else:
if j > i:
line += '#'
else:
line += ' '
else:
line += ' '
print(line)
|
n = int(input())
for i in range(1, n + 1):
line = ''
for j in range(1, n + 1):
if i in [1, n]:
line += '#'
elif j in [1, n]:
line += '#'
elif i == j:
line += '#'
elif j == n - i + 1:
line += '#'
elif j > n - i:
if i <= int(n / 2) + 1:
line += '#'
elif j > i:
line += '#'
else:
line += ' '
else:
line += ' '
print(line)
|
categories = {
'coco': [
{"color": [220, 20, 60], "isthing": 1, "id": 1, "name": "person"},
{"color": [119, 11, 32], "isthing": 1, "id": 2, "name": "bicycle"},
{"color": [0, 0, 142], "isthing": 1, "id": 3, "name": "car"},
{"color": [0, 0, 230], "isthing": 1, "id": 4, "name": "motorcycle"},
{"color": [106, 0, 228], "isthing": 1, "id": 5, "name": "airplane"},
{"color": [0, 60, 100], "isthing": 1, "id": 6, "name": "bus"},
{"color": [0, 80, 100], "isthing": 1, "id": 7, "name": "train"},
{"color": [0, 0, 70], "isthing": 1, "id": 8, "name": "truck"},
{"color": [0, 0, 192], "isthing": 1, "id": 9, "name": "boat"},
{"color": [250, 170, 30], "isthing": 1, "id": 10, "name": "traffic light"},
{"color": [100, 170, 30], "isthing": 1, "id": 11, "name": "fire hydrant"},
{"color": [220, 220, 0], "isthing": 1, "id": 13, "name": "stop sign"},
{"color": [175, 116, 175], "isthing": 1, "id": 14, "name": "parking meter"},
{"color": [250, 0, 30], "isthing": 1, "id": 15, "name": "bench"},
{"color": [165, 42, 42], "isthing": 1, "id": 16, "name": "bird"},
{"color": [255, 77, 255], "isthing": 1, "id": 17, "name": "cat"},
{"color": [0, 226, 252], "isthing": 1, "id": 18, "name": "dog"},
{"color": [182, 182, 255], "isthing": 1, "id": 19, "name": "horse"},
{"color": [0, 82, 0], "isthing": 1, "id": 20, "name": "sheep"},
{"color": [120, 166, 157], "isthing": 1, "id": 21, "name": "cow"},
{"color": [110, 76, 0], "isthing": 1, "id": 22, "name": "elephant"},
{"color": [174, 57, 255], "isthing": 1, "id": 23, "name": "bear"},
{"color": [199, 100, 0], "isthing": 1, "id": 24, "name": "zebra"},
{"color": [72, 0, 118], "isthing": 1, "id": 25, "name": "giraffe"},
{"color": [255, 179, 240], "isthing": 1, "id": 27, "name": "backpack"},
{"color": [0, 125, 92], "isthing": 1, "id": 28, "name": "umbrella"},
{"color": [209, 0, 151], "isthing": 1, "id": 31, "name": "handbag"},
{"color": [188, 208, 182], "isthing": 1, "id": 32, "name": "tie"},
{"color": [0, 220, 176], "isthing": 1, "id": 33, "name": "suitcase"},
{"color": [255, 99, 164], "isthing": 1, "id": 34, "name": "frisbee"},
{"color": [92, 0, 73], "isthing": 1, "id": 35, "name": "skis"},
{"color": [133, 129, 255], "isthing": 1, "id": 36, "name": "snowboard"},
{"color": [78, 180, 255], "isthing": 1, "id": 37, "name": "sports ball"},
{"color": [0, 228, 0], "isthing": 1, "id": 38, "name": "kite"},
{"color": [174, 255, 243], "isthing": 1, "id": 39, "name": "baseball bat"},
{"color": [45, 89, 255], "isthing": 1, "id": 40, "name": "baseball glove"},
{"color": [134, 134, 103], "isthing": 1, "id": 41, "name": "skateboard"},
{"color": [145, 148, 174], "isthing": 1, "id": 42, "name": "surfboard"},
{"color": [255, 208, 186], "isthing": 1, "id": 43, "name": "tennis racket"},
{"color": [197, 226, 255], "isthing": 1, "id": 44, "name": "bottle"},
{"color": [171, 134, 1], "isthing": 1, "id": 46, "name": "wine glass"},
{"color": [109, 63, 54], "isthing": 1, "id": 47, "name": "cup"},
{"color": [207, 138, 255], "isthing": 1, "id": 48, "name": "fork"},
{"color": [151, 0, 95], "isthing": 1, "id": 49, "name": "knife"},
{"color": [9, 80, 61], "isthing": 1, "id": 50, "name": "spoon"},
{"color": [84, 105, 51], "isthing": 1, "id": 51, "name": "bowl"},
{"color": [74, 65, 105], "isthing": 1, "id": 52, "name": "banana"},
{"color": [166, 196, 102], "isthing": 1, "id": 53, "name": "apple"},
{"color": [208, 195, 210], "isthing": 1, "id": 54, "name": "sandwich"},
{"color": [255, 109, 65], "isthing": 1, "id": 55, "name": "orange"},
{"color": [0, 143, 149], "isthing": 1, "id": 56, "name": "broccoli"},
{"color": [179, 0, 194], "isthing": 1, "id": 57, "name": "carrot"},
{"color": [209, 99, 106], "isthing": 1, "id": 58, "name": "hot dog"},
{"color": [5, 121, 0], "isthing": 1, "id": 59, "name": "pizza"},
{"color": [227, 255, 205], "isthing": 1, "id": 60, "name": "donut"},
{"color": [147, 186, 208], "isthing": 1, "id": 61, "name": "cake"},
{"color": [153, 69, 1], "isthing": 1, "id": 62, "name": "chair"},
{"color": [3, 95, 161], "isthing": 1, "id": 63, "name": "couch"},
{"color": [163, 255, 0], "isthing": 1, "id": 64, "name": "potted plant"},
{"color": [119, 0, 170], "isthing": 1, "id": 65, "name": "bed"},
{"color": [0, 182, 199], "isthing": 1, "id": 67, "name": "dining table"},
{"color": [0, 165, 120], "isthing": 1, "id": 70, "name": "toilet"},
{"color": [183, 130, 88], "isthing": 1, "id": 72, "name": "tv"},
{"color": [95, 32, 0], "isthing": 1, "id": 73, "name": "laptop"},
{"color": [130, 114, 135], "isthing": 1, "id": 74, "name": "mouse"},
{"color": [110, 129, 133], "isthing": 1, "id": 75, "name": "remote"},
{"color": [166, 74, 118], "isthing": 1, "id": 76, "name": "keyboard"},
{"color": [219, 142, 185], "isthing": 1, "id": 77, "name": "cell phone"},
{"color": [79, 210, 114], "isthing": 1, "id": 78, "name": "microwave"},
{"color": [178, 90, 62], "isthing": 1, "id": 79, "name": "oven"},
{"color": [65, 70, 15], "isthing": 1, "id": 80, "name": "toaster"},
{"color": [127, 167, 115], "isthing": 1, "id": 81, "name": "sink"},
{"color": [59, 105, 106], "isthing": 1, "id": 82, "name": "refrigerator"},
{"color": [142, 108, 45], "isthing": 1, "id": 84, "name": "book"},
{"color": [196, 172, 0], "isthing": 1, "id": 85, "name": "clock"},
{"color": [95, 54, 80], "isthing": 1, "id": 86, "name": "vase"},
{"color": [128, 76, 255], "isthing": 1, "id": 87, "name": "scissors"},
{"color": [201, 57, 1], "isthing": 1, "id": 88, "name": "teddy bear"},
{"color": [246, 0, 122], "isthing": 1, "id": 89, "name": "hair drier"},
{"color": [191, 162, 208], "isthing": 1, "id": 90, "name": "toothbrush"},
],
'cityscapes': [
{'id': i + 1, 'name': x} for i, x in enumerate(
["person", "rider", "car", "truck","bus", "train", "motorcycle", "bicycle"])
],
'mapillary': [
{'id': 1, 'name': 'animal--bird'},
{'id': 2, 'name': 'animal--ground-animal'},
{'id': 9, 'name': 'construction--flat--crosswalk-plain'},
{'id': 20, 'name': 'human--person'},
{'id': 21, 'name': 'human--rider--bicyclist'},
{'id': 22, 'name': 'human--rider--motorcyclist'},
{'id': 23, 'name': 'human--rider--other-rider'},
{'id': 24, 'name': 'marking--crosswalk-zebra'},
{'id': 33, 'name': 'object--banner'},
{'id': 34, 'name': 'object--bench'},
{'id': 35, 'name': 'object--bike-rack'},
{'id': 36, 'name': 'object--billboard'},
{'id': 37, 'name': 'object--catch-basin'},
{'id': 38, 'name': 'object--cctv-camera'},
{'id': 39, 'name': 'object--fire-hydrant'},
{'id': 40, 'name': 'object--junction-box'},
{'id': 41, 'name': 'object--mailbox'},
{'id': 42, 'name': 'object--manhole'},
{'id': 43, 'name': 'object--phone-booth'},
{'id': 45, 'name': 'object--street-light'},
{'id': 46, 'name': 'object--support--pole'},
{'id': 47, 'name': 'object--support--traffic-sign-frame'},
{'id': 48, 'name': 'object--support--utility-pole'},
{'id': 49, 'name': 'object--traffic-light'},
{'id': 50, 'name': 'object--traffic-sign--back'},
{'id': 51, 'name': 'object--traffic-sign--front'},
{'id': 52, 'name': 'object--trash-can'},
{'id': 53, 'name': 'object--vehicle--bicycle'},
{'id': 54, 'name': 'object--vehicle--boat'},
{'id': 55, 'name': 'object--vehicle--bus'},
{'id': 56, 'name': 'object--vehicle--car'},
{'id': 57, 'name': 'object--vehicle--caravan'},
{'id': 58, 'name': 'object--vehicle--motorcycle'},
{'id': 60, 'name': 'object--vehicle--other-vehicle'},
{'id': 61, 'name': 'object--vehicle--trailer'},
{'id': 62, 'name': 'object--vehicle--truck'},
{'id': 63, 'name': 'object--vehicle--wheeled-slow'},
],
'viper': [
{'id': 13, 'name': 'trafficlight', 'supercategory': ''},
{'id': 16, 'name': 'firehydrant', 'supercategory': ''},
{'id': 17, 'name': 'chair', 'supercategory': ''},
{'id': 19, 'name': 'trashcan', 'supercategory': ''},
{'id': 20, 'name': 'person', 'supercategory': ''},
{'id': 23, 'name': 'motorcycle', 'supercategory': ''},
{'id': 24, 'name': 'car', 'supercategory': ''},
{'id': 25, 'name': 'van', 'supercategory': ''},
{'id': 26, 'name': 'bus', 'supercategory': ''},
{'id': 27, 'name': 'truck', 'supercategory': ''},
],
'scannet': [
{'id': 3, 'name': 'cabinet', 'supercategory': 'furniture'},
{'id': 4, 'name': 'bed', 'supercategory': 'furniture'},
{'id': 5, 'name': 'chair', 'supercategory': 'furniture'},
{'id': 6, 'name': 'sofa', 'supercategory': 'furniture'},
{'id': 7, 'name': 'table', 'supercategory': 'furniture'},
{'id': 8, 'name': 'door', 'supercategory': 'furniture'},
{'id': 9, 'name': 'window', 'supercategory': 'furniture'},
{'id': 10, 'name': 'bookshelf', 'supercategory': 'furniture'},
{'id': 11, 'name': 'picture', 'supercategory': 'furniture'},
{'id': 12, 'name': 'counter', 'supercategory': 'furniture'},
{'id': 14, 'name': 'desk', 'supercategory': 'furniture'},
{'id': 16, 'name': 'curtain', 'supercategory': 'furniture'},
{'id': 24, 'name': 'refrigerator', 'supercategory': 'appliance'},
{'id': 28, 'name': 'shower curtain', 'supercategory': 'furniture'},
{'id': 33, 'name': 'toilet', 'supercategory': 'furniture'},
{'id': 34, 'name': 'sink', 'supercategory': 'appliance'},
{'id': 36, 'name': 'bathtub', 'supercategory': 'furniture'},
{'id': 39, 'name': 'otherfurniture', 'supercategory': 'furniture'},
],
'oid': [
{'id': 1, 'name': 'Screwdriver', 'freebase_id': '/m/01bms0'},
{'id': 2, 'name': 'Light switch', 'freebase_id': '/m/03jbxj'},
{'id': 3, 'name': 'Doughnut', 'freebase_id': '/m/0jy4k'},
{'id': 4, 'name': 'Toilet paper', 'freebase_id': '/m/09gtd'},
{'id': 5, 'name': 'Wrench', 'freebase_id': '/m/01j5ks'},
{'id': 6, 'name': 'Toaster', 'freebase_id': '/m/01k6s3'},
{'id': 7, 'name': 'Tennis ball', 'freebase_id': '/m/05ctyq'},
{'id': 8, 'name': 'Radish', 'freebase_id': '/m/015x5n'},
{'id': 9, 'name': 'Pomegranate', 'freebase_id': '/m/0jwn_'},
{'id': 10, 'name': 'Kite', 'freebase_id': '/m/02zt3'},
{'id': 11, 'name': 'Table tennis racket', 'freebase_id': '/m/05_5p_0'},
{'id': 12, 'name': 'Hamster', 'freebase_id': '/m/03qrc'},
{'id': 13, 'name': 'Barge', 'freebase_id': '/m/01btn'},
{'id': 14, 'name': 'Shower', 'freebase_id': '/m/02f9f_'},
{'id': 15, 'name': 'Printer', 'freebase_id': '/m/01m4t'},
{'id': 16, 'name': 'Snowmobile', 'freebase_id': '/m/01x3jk'},
{'id': 17, 'name': 'Fire hydrant', 'freebase_id': '/m/01pns0'},
{'id': 18, 'name': 'Limousine', 'freebase_id': '/m/01lcw4'},
{'id': 19, 'name': 'Whale', 'freebase_id': '/m/084zz'},
{'id': 20, 'name': 'Microwave oven', 'freebase_id': '/m/0fx9l'},
{'id': 21, 'name': 'Asparagus', 'freebase_id': '/m/0cjs7'},
{'id': 22, 'name': 'Lion', 'freebase_id': '/m/096mb'},
{'id': 23, 'name': 'Spatula', 'freebase_id': '/m/02d1br'},
{'id': 24, 'name': 'Torch', 'freebase_id': '/m/07dd4'},
{'id': 25, 'name': 'Volleyball', 'freebase_id': '/m/02rgn06'},
{'id': 26, 'name': 'Ambulance', 'freebase_id': '/m/012n7d'},
{'id': 27, 'name': 'Chopsticks', 'freebase_id': '/m/01_5g'},
{'id': 28, 'name': 'Raccoon', 'freebase_id': '/m/0dq75'},
{'id': 29, 'name': 'Blue jay', 'freebase_id': '/m/01f8m5'},
{'id': 30, 'name': 'Lynx', 'freebase_id': '/m/04g2r'},
{'id': 31, 'name': 'Dice', 'freebase_id': '/m/029b3'},
{'id': 32, 'name': 'Filing cabinet', 'freebase_id': '/m/047j0r'},
{'id': 33, 'name': 'Ruler', 'freebase_id': '/m/0hdln'},
{'id': 34, 'name': 'Power plugs and sockets', 'freebase_id': '/m/03bbps'},
{'id': 35, 'name': 'Bell pepper', 'freebase_id': '/m/0jg57'},
{'id': 36, 'name': 'Binoculars', 'freebase_id': '/m/0lt4_'},
{'id': 37, 'name': 'Pretzel', 'freebase_id': '/m/01f91_'},
{'id': 38, 'name': 'Hot dog', 'freebase_id': '/m/01b9xk'},
{'id': 39, 'name': 'Missile', 'freebase_id': '/m/04ylt'},
{'id': 40, 'name': 'Common fig', 'freebase_id': '/m/043nyj'},
{'id': 41, 'name': 'Croissant', 'freebase_id': '/m/015wgc'},
{'id': 42, 'name': 'Adhesive tape', 'freebase_id': '/m/03m3vtv'},
{'id': 43, 'name': 'Slow cooker', 'freebase_id': '/m/02tsc9'},
{'id': 44, 'name': 'Dog bed', 'freebase_id': '/m/0h8n6f9'},
{'id': 45, 'name': 'Harpsichord', 'freebase_id': '/m/03q5t'},
{'id': 46, 'name': 'Billiard table', 'freebase_id': '/m/04p0qw'},
{'id': 47, 'name': 'Alpaca', 'freebase_id': '/m/0pcr'},
{'id': 48, 'name': 'Harbor seal', 'freebase_id': '/m/02l8p9'},
{'id': 49, 'name': 'Grape', 'freebase_id': '/m/0388q'},
{'id': 50, 'name': 'Nail', 'freebase_id': '/m/05bm6'},
{'id': 51, 'name': 'Paper towel', 'freebase_id': '/m/02w3r3'},
{'id': 52, 'name': 'Alarm clock', 'freebase_id': '/m/046dlr'},
{'id': 53, 'name': 'Guacamole', 'freebase_id': '/m/02g30s'},
{'id': 54, 'name': 'Starfish', 'freebase_id': '/m/01h8tj'},
{'id': 55, 'name': 'Zebra', 'freebase_id': '/m/0898b'},
{'id': 56, 'name': 'Segway', 'freebase_id': '/m/076bq'},
{'id': 57, 'name': 'Sea turtle', 'freebase_id': '/m/0120dh'},
{'id': 58, 'name': 'Scissors', 'freebase_id': '/m/01lsmm'},
{'id': 59, 'name': 'Rhinoceros', 'freebase_id': '/m/03d443'},
{'id': 60, 'name': 'Kangaroo', 'freebase_id': '/m/04c0y'},
{'id': 61, 'name': 'Jaguar', 'freebase_id': '/m/0449p'},
{'id': 62, 'name': 'Leopard', 'freebase_id': '/m/0c29q'},
{'id': 63, 'name': 'Dumbbell', 'freebase_id': '/m/04h8sr'},
{'id': 64, 'name': 'Envelope', 'freebase_id': '/m/0frqm'},
{'id': 65, 'name': 'Winter melon', 'freebase_id': '/m/02cvgx'},
{'id': 66, 'name': 'Teapot', 'freebase_id': '/m/01fh4r'},
{'id': 67, 'name': 'Camel', 'freebase_id': '/m/01x_v'},
{'id': 68, 'name': 'Beaker', 'freebase_id': '/m/0d20w4'},
{'id': 69, 'name': 'Brown bear', 'freebase_id': '/m/01dxs'},
{'id': 70, 'name': 'Toilet', 'freebase_id': '/m/09g1w'},
{'id': 71, 'name': 'Teddy bear', 'freebase_id': '/m/0kmg4'},
{'id': 72, 'name': 'Briefcase', 'freebase_id': '/m/0584n8'},
{'id': 73, 'name': 'Stop sign', 'freebase_id': '/m/02pv19'},
{'id': 74, 'name': 'Tiger', 'freebase_id': '/m/07dm6'},
{'id': 75, 'name': 'Cabbage', 'freebase_id': '/m/0fbw6'},
{'id': 76, 'name': 'Giraffe', 'freebase_id': '/m/03bk1'},
{'id': 77, 'name': 'Polar bear', 'freebase_id': '/m/0633h'},
{'id': 78, 'name': 'Shark', 'freebase_id': '/m/0by6g'},
{'id': 79, 'name': 'Rabbit', 'freebase_id': '/m/06mf6'},
{'id': 80, 'name': 'Swim cap', 'freebase_id': '/m/04tn4x'},
{'id': 81, 'name': 'Pressure cooker', 'freebase_id': '/m/0h8ntjv'},
{'id': 82, 'name': 'Kitchen knife', 'freebase_id': '/m/058qzx'},
{'id': 83, 'name': 'Submarine sandwich', 'freebase_id': '/m/06pcq'},
{'id': 84, 'name': 'Flashlight', 'freebase_id': '/m/01kb5b'},
{'id': 85, 'name': 'Penguin', 'freebase_id': '/m/05z6w'},
{'id': 86, 'name': 'Snake', 'freebase_id': '/m/078jl'},
{'id': 87, 'name': 'Zucchini', 'freebase_id': '/m/027pcv'},
{'id': 88, 'name': 'Bat', 'freebase_id': '/m/01h44'},
{'id': 89, 'name': 'Food processor', 'freebase_id': '/m/03y6mg'},
{'id': 90, 'name': 'Ostrich', 'freebase_id': '/m/05n4y'},
{'id': 91, 'name': 'Sea lion', 'freebase_id': '/m/0gd36'},
{'id': 92, 'name': 'Goldfish', 'freebase_id': '/m/03fj2'},
{'id': 93, 'name': 'Elephant', 'freebase_id': '/m/0bwd_0j'},
{'id': 94, 'name': 'Rocket', 'freebase_id': '/m/09rvcxw'},
{'id': 95, 'name': 'Mouse', 'freebase_id': '/m/04rmv'},
{'id': 96, 'name': 'Oyster', 'freebase_id': '/m/0_cp5'},
{'id': 97, 'name': 'Digital clock', 'freebase_id': '/m/06_72j'},
{'id': 98, 'name': 'Otter', 'freebase_id': '/m/0cn6p'},
{'id': 99, 'name': 'Dolphin', 'freebase_id': '/m/02hj4'},
{'id': 100, 'name': 'Punching bag', 'freebase_id': '/m/0420v5'},
{'id': 101, 'name': 'Corded phone', 'freebase_id': '/m/0h8lkj8'},
{'id': 102, 'name': 'Tennis racket', 'freebase_id': '/m/0h8my_4'},
{'id': 103, 'name': 'Pancake', 'freebase_id': '/m/01dwwc'},
{'id': 104, 'name': 'Mango', 'freebase_id': '/m/0fldg'},
{'id': 105, 'name': 'Crocodile', 'freebase_id': '/m/09f_2'},
{'id': 106, 'name': 'Waffle', 'freebase_id': '/m/01dwsz'},
{'id': 107, 'name': 'Computer mouse', 'freebase_id': '/m/020lf'},
{'id': 108, 'name': 'Kettle', 'freebase_id': '/m/03s_tn'},
{'id': 109, 'name': 'Tart', 'freebase_id': '/m/02zvsm'},
{'id': 110, 'name': 'Oven', 'freebase_id': '/m/029bxz'},
{'id': 111, 'name': 'Banana', 'freebase_id': '/m/09qck'},
{'id': 112, 'name': 'Cheetah', 'freebase_id': '/m/0cd4d'},
{'id': 113, 'name': 'Raven', 'freebase_id': '/m/06j2d'},
{'id': 114, 'name': 'Frying pan', 'freebase_id': '/m/04v6l4'},
{'id': 115, 'name': 'Pear', 'freebase_id': '/m/061_f'},
{'id': 116, 'name': 'Fox', 'freebase_id': '/m/0306r'},
{'id': 117, 'name': 'Skateboard', 'freebase_id': '/m/06_fw'},
{'id': 118, 'name': 'Rugby ball', 'freebase_id': '/m/0wdt60w'},
{'id': 119, 'name': 'Watermelon', 'freebase_id': '/m/0kpqd'},
{'id': 120, 'name': 'Flute', 'freebase_id': '/m/0l14j_'},
{'id': 121, 'name': 'Canary', 'freebase_id': '/m/0ccs93'},
{'id': 122, 'name': 'Door handle', 'freebase_id': '/m/03c7gz'},
{'id': 123, 'name': 'Saxophone', 'freebase_id': '/m/06ncr'},
{'id': 124, 'name': 'Burrito', 'freebase_id': '/m/01j3zr'},
{'id': 125, 'name': 'Suitcase', 'freebase_id': '/m/01s55n'},
{'id': 126, 'name': 'Roller skates', 'freebase_id': '/m/02p3w7d'},
{'id': 127, 'name': 'Dagger', 'freebase_id': '/m/02gzp'},
{'id': 128, 'name': 'Seat belt', 'freebase_id': '/m/0dkzw'},
{'id': 129, 'name': 'Washing machine', 'freebase_id': '/m/0174k2'},
{'id': 130, 'name': 'Jet ski', 'freebase_id': '/m/01xs3r'},
{'id': 131, 'name': 'Sombrero', 'freebase_id': '/m/02jfl0'},
{'id': 132, 'name': 'Pig', 'freebase_id': '/m/068zj'},
{'id': 133, 'name': 'Drinking straw', 'freebase_id': '/m/03v5tg'},
{'id': 134, 'name': 'Peach', 'freebase_id': '/m/0dj6p'},
{'id': 135, 'name': 'Tortoise', 'freebase_id': '/m/011k07'},
{'id': 136, 'name': 'Towel', 'freebase_id': '/m/0162_1'},
{'id': 137, 'name': 'Tablet computer', 'freebase_id': '/m/0bh9flk'},
{'id': 138, 'name': 'Cucumber', 'freebase_id': '/m/015x4r'},
{'id': 139, 'name': 'Mule', 'freebase_id': '/m/0dbzx'},
{'id': 140, 'name': 'Potato', 'freebase_id': '/m/05vtc'},
{'id': 141, 'name': 'Frog', 'freebase_id': '/m/09ld4'},
{'id': 142, 'name': 'Bear', 'freebase_id': '/m/01dws'},
{'id': 143, 'name': 'Lighthouse', 'freebase_id': '/m/04h7h'},
{'id': 144, 'name': 'Belt', 'freebase_id': '/m/0176mf'},
{'id': 145, 'name': 'Baseball bat', 'freebase_id': '/m/03g8mr'},
{'id': 146, 'name': 'Racket', 'freebase_id': '/m/0dv9c'},
{'id': 147, 'name': 'Sword', 'freebase_id': '/m/06y5r'},
{'id': 148, 'name': 'Bagel', 'freebase_id': '/m/01fb_0'},
{'id': 149, 'name': 'Goat', 'freebase_id': '/m/03fwl'},
{'id': 150, 'name': 'Lizard', 'freebase_id': '/m/04m9y'},
{'id': 151, 'name': 'Parrot', 'freebase_id': '/m/0gv1x'},
{'id': 152, 'name': 'Owl', 'freebase_id': '/m/09d5_'},
{'id': 153, 'name': 'Turkey', 'freebase_id': '/m/0jly1'},
{'id': 154, 'name': 'Cello', 'freebase_id': '/m/01xqw'},
{'id': 155, 'name': 'Knife', 'freebase_id': '/m/04ctx'},
{'id': 156, 'name': 'Handgun', 'freebase_id': '/m/0gxl3'},
{'id': 157, 'name': 'Carrot', 'freebase_id': '/m/0fj52s'},
{'id': 158, 'name': 'Hamburger', 'freebase_id': '/m/0cdn1'},
{'id': 159, 'name': 'Grapefruit', 'freebase_id': '/m/0hqkz'},
{'id': 160, 'name': 'Tap', 'freebase_id': '/m/02jz0l'},
{'id': 161, 'name': 'Tea', 'freebase_id': '/m/07clx'},
{'id': 162, 'name': 'Bull', 'freebase_id': '/m/0cnyhnx'},
{'id': 163, 'name': 'Turtle', 'freebase_id': '/m/09dzg'},
{'id': 164, 'name': 'Bust', 'freebase_id': '/m/04yqq2'},
{'id': 165, 'name': 'Monkey', 'freebase_id': '/m/08pbxl'},
{'id': 166, 'name': 'Wok', 'freebase_id': '/m/084rd'},
{'id': 167, 'name': 'Broccoli', 'freebase_id': '/m/0hkxq'},
{'id': 168, 'name': 'Pitcher', 'freebase_id': '/m/054fyh'},
{'id': 169, 'name': 'Whiteboard', 'freebase_id': '/m/02d9qx'},
{'id': 170, 'name': 'Squirrel', 'freebase_id': '/m/071qp'},
{'id': 171, 'name': 'Jug', 'freebase_id': '/m/08hvt4'},
{'id': 172, 'name': 'Woodpecker', 'freebase_id': '/m/01dy8n'},
{'id': 173, 'name': 'Pizza', 'freebase_id': '/m/0663v'},
{'id': 174, 'name': 'Surfboard', 'freebase_id': '/m/019w40'},
{'id': 175, 'name': 'Sofa bed', 'freebase_id': '/m/03m3pdh'},
{'id': 176, 'name': 'Sheep', 'freebase_id': '/m/07bgp'},
{'id': 177, 'name': 'Candle', 'freebase_id': '/m/0c06p'},
{'id': 178, 'name': 'Muffin', 'freebase_id': '/m/01tcjp'},
{'id': 179, 'name': 'Cookie', 'freebase_id': '/m/021mn'},
{'id': 180, 'name': 'Apple', 'freebase_id': '/m/014j1m'},
{'id': 181, 'name': 'Chest of drawers', 'freebase_id': '/m/05kyg_'},
{'id': 182, 'name': 'Skull', 'freebase_id': '/m/016m2d'},
{'id': 183, 'name': 'Chicken', 'freebase_id': '/m/09b5t'},
{'id': 184, 'name': 'Loveseat', 'freebase_id': '/m/0703r8'},
{'id': 185, 'name': 'Baseball glove', 'freebase_id': '/m/03grzl'},
{'id': 186, 'name': 'Piano', 'freebase_id': '/m/05r5c'},
{'id': 187, 'name': 'Waste container', 'freebase_id': '/m/0bjyj5'},
{'id': 188, 'name': 'Barrel', 'freebase_id': '/m/02zn6n'},
{'id': 189, 'name': 'Swan', 'freebase_id': '/m/0dftk'},
{'id': 190, 'name': 'Taxi', 'freebase_id': '/m/0pg52'},
{'id': 191, 'name': 'Lemon', 'freebase_id': '/m/09k_b'},
{'id': 192, 'name': 'Pumpkin', 'freebase_id': '/m/05zsy'},
{'id': 193, 'name': 'Sparrow', 'freebase_id': '/m/0h23m'},
{'id': 194, 'name': 'Orange', 'freebase_id': '/m/0cyhj_'},
{'id': 195, 'name': 'Tank', 'freebase_id': '/m/07cmd'},
{'id': 196, 'name': 'Sandwich', 'freebase_id': '/m/0l515'},
{'id': 197, 'name': 'Coffee', 'freebase_id': '/m/02vqfm'},
{'id': 198, 'name': 'Juice', 'freebase_id': '/m/01z1kdw'},
{'id': 199, 'name': 'Coin', 'freebase_id': '/m/0242l'},
{'id': 200, 'name': 'Pen', 'freebase_id': '/m/0k1tl'},
{'id': 201, 'name': 'Watch', 'freebase_id': '/m/0gjkl'},
{'id': 202, 'name': 'Eagle', 'freebase_id': '/m/09csl'},
{'id': 203, 'name': 'Goose', 'freebase_id': '/m/0dbvp'},
{'id': 204, 'name': 'Falcon', 'freebase_id': '/m/0f6wt'},
{'id': 205, 'name': 'Christmas tree', 'freebase_id': '/m/025nd'},
{'id': 206, 'name': 'Sunflower', 'freebase_id': '/m/0ftb8'},
{'id': 207, 'name': 'Vase', 'freebase_id': '/m/02s195'},
{'id': 208, 'name': 'Football', 'freebase_id': '/m/01226z'},
{'id': 209, 'name': 'Canoe', 'freebase_id': '/m/0ph39'},
{'id': 210, 'name': 'High heels', 'freebase_id': '/m/06k2mb'},
{'id': 211, 'name': 'Spoon', 'freebase_id': '/m/0cmx8'},
{'id': 212, 'name': 'Mug', 'freebase_id': '/m/02jvh9'},
{'id': 213, 'name': 'Swimwear', 'freebase_id': '/m/01gkx_'},
{'id': 214, 'name': 'Duck', 'freebase_id': '/m/09ddx'},
{'id': 215, 'name': 'Cat', 'freebase_id': '/m/01yrx'},
{'id': 216, 'name': 'Tomato', 'freebase_id': '/m/07j87'},
{'id': 217, 'name': 'Cocktail', 'freebase_id': '/m/024g6'},
{'id': 218, 'name': 'Clock', 'freebase_id': '/m/01x3z'},
{'id': 219, 'name': 'Cowboy hat', 'freebase_id': '/m/025rp__'},
{'id': 220, 'name': 'Miniskirt', 'freebase_id': '/m/01cmb2'},
{'id': 221, 'name': 'Cattle', 'freebase_id': '/m/01xq0k1'},
{'id': 222, 'name': 'Strawberry', 'freebase_id': '/m/07fbm7'},
{'id': 223, 'name': 'Bronze sculpture', 'freebase_id': '/m/01yx86'},
{'id': 224, 'name': 'Pillow', 'freebase_id': '/m/034c16'},
{'id': 225, 'name': 'Squash', 'freebase_id': '/m/0dv77'},
{'id': 226, 'name': 'Traffic light', 'freebase_id': '/m/015qff'},
{'id': 227, 'name': 'Saucer', 'freebase_id': '/m/03q5c7'},
{'id': 228, 'name': 'Reptile', 'freebase_id': '/m/06bt6'},
{'id': 229, 'name': 'Cake', 'freebase_id': '/m/0fszt'},
{'id': 230, 'name': 'Plastic bag', 'freebase_id': '/m/05gqfk'},
{'id': 231, 'name': 'Studio couch', 'freebase_id': '/m/026qbn5'},
{'id': 232, 'name': 'Beer', 'freebase_id': '/m/01599'},
{'id': 233, 'name': 'Scarf', 'freebase_id': '/m/02h19r'},
{'id': 234, 'name': 'Coffee cup', 'freebase_id': '/m/02p5f1q'},
{'id': 235, 'name': 'Wine', 'freebase_id': '/m/081qc'},
{'id': 236, 'name': 'Mushroom', 'freebase_id': '/m/052sf'},
{'id': 237, 'name': 'Traffic sign', 'freebase_id': '/m/01mqdt'},
{'id': 238, 'name': 'Camera', 'freebase_id': '/m/0dv5r'},
{'id': 239, 'name': 'Rose', 'freebase_id': '/m/06m11'},
{'id': 240, 'name': 'Couch', 'freebase_id': '/m/02crq1'},
{'id': 241, 'name': 'Handbag', 'freebase_id': '/m/080hkjn'},
{'id': 242, 'name': 'Fedora', 'freebase_id': '/m/02fq_6'},
{'id': 243, 'name': 'Sock', 'freebase_id': '/m/01nq26'},
{'id': 244, 'name': 'Computer keyboard', 'freebase_id': '/m/01m2v'},
{'id': 245, 'name': 'Mobile phone', 'freebase_id': '/m/050k8'},
{'id': 246, 'name': 'Ball', 'freebase_id': '/m/018xm'},
{'id': 247, 'name': 'Balloon', 'freebase_id': '/m/01j51'},
{'id': 248, 'name': 'Horse', 'freebase_id': '/m/03k3r'},
{'id': 249, 'name': 'Boot', 'freebase_id': '/m/01b638'},
{'id': 250, 'name': 'Fish', 'freebase_id': '/m/0ch_cf'},
{'id': 251, 'name': 'Backpack', 'freebase_id': '/m/01940j'},
{'id': 252, 'name': 'Skirt', 'freebase_id': '/m/02wv6h6'},
{'id': 253, 'name': 'Van', 'freebase_id': '/m/0h2r6'},
{'id': 254, 'name': 'Bread', 'freebase_id': '/m/09728'},
{'id': 255, 'name': 'Glove', 'freebase_id': '/m/0174n1'},
{'id': 256, 'name': 'Dog', 'freebase_id': '/m/0bt9lr'},
{'id': 257, 'name': 'Airplane', 'freebase_id': '/m/0cmf2'},
{'id': 258, 'name': 'Motorcycle', 'freebase_id': '/m/04_sv'},
{'id': 259, 'name': 'Drink', 'freebase_id': '/m/0271t'},
{'id': 260, 'name': 'Book', 'freebase_id': '/m/0bt_c3'},
{'id': 261, 'name': 'Train', 'freebase_id': '/m/07jdr'},
{'id': 262, 'name': 'Flower', 'freebase_id': '/m/0c9ph5'},
{'id': 263, 'name': 'Carnivore', 'freebase_id': '/m/01lrl'},
{'id': 264, 'name': 'Human ear', 'freebase_id': '/m/039xj_'},
{'id': 265, 'name': 'Toy', 'freebase_id': '/m/0138tl'},
{'id': 266, 'name': 'Box', 'freebase_id': '/m/025dyy'},
{'id': 267, 'name': 'Truck', 'freebase_id': '/m/07r04'},
{'id': 268, 'name': 'Wheel', 'freebase_id': '/m/083wq'},
{'id': 269, 'name': 'Aircraft', 'freebase_id': '/m/0k5j'},
{'id': 270, 'name': 'Bus', 'freebase_id': '/m/01bjv'},
{'id': 271, 'name': 'Human mouth', 'freebase_id': '/m/0283dt1'},
{'id': 272, 'name': 'Sculpture', 'freebase_id': '/m/06msq'},
{'id': 273, 'name': 'Shirt', 'freebase_id': '/m/01n4qj'},
{'id': 274, 'name': 'Hat', 'freebase_id': '/m/02dl1y'},
{'id': 275, 'name': 'Vehicle registration plate', 'freebase_id': '/m/01jfm_'},
{'id': 276, 'name': 'Guitar', 'freebase_id': '/m/0342h'},
{'id': 277, 'name': 'Sun hat', 'freebase_id': '/m/02wbtzl'},
{'id': 278, 'name': 'Bottle', 'freebase_id': '/m/04dr76w'},
{'id': 279, 'name': 'Luggage and bags', 'freebase_id': '/m/0hf58v5'},
{'id': 280, 'name': 'Trousers', 'freebase_id': '/m/07mhn'},
{'id': 281, 'name': 'Bicycle wheel', 'freebase_id': '/m/01bqk0'},
{'id': 282, 'name': 'Suit', 'freebase_id': '/m/01xyhv'},
{'id': 283, 'name': 'Bowl', 'freebase_id': '/m/04kkgm'},
{'id': 284, 'name': 'Man', 'freebase_id': '/m/04yx4'},
{'id': 285, 'name': 'Flowerpot', 'freebase_id': '/m/0fm3zh'},
{'id': 286, 'name': 'Laptop', 'freebase_id': '/m/01c648'},
{'id': 287, 'name': 'Boy', 'freebase_id': '/m/01bl7v'},
{'id': 288, 'name': 'Picture frame', 'freebase_id': '/m/06z37_'},
{'id': 289, 'name': 'Bird', 'freebase_id': '/m/015p6'},
{'id': 290, 'name': 'Car', 'freebase_id': '/m/0k4j'},
{'id': 291, 'name': 'Shorts', 'freebase_id': '/m/01bfm9'},
{'id': 292, 'name': 'Woman', 'freebase_id': '/m/03bt1vf'},
{'id': 293, 'name': 'Platter', 'freebase_id': '/m/099ssp'},
{'id': 294, 'name': 'Tie', 'freebase_id': '/m/01rkbr'},
{'id': 295, 'name': 'Girl', 'freebase_id': '/m/05r655'},
{'id': 296, 'name': 'Skyscraper', 'freebase_id': '/m/079cl'},
{'id': 297, 'name': 'Person', 'freebase_id': '/m/01g317'},
{'id': 298, 'name': 'Flag', 'freebase_id': '/m/03120'},
{'id': 299, 'name': 'Jeans', 'freebase_id': '/m/0fly7'},
{'id': 300, 'name': 'Dress', 'freebase_id': '/m/01d40f'},
],
'kitti':[
{'id': 24, 'name': 'person'},
{'id': 25, 'name': 'rider'},
{'id': 26, 'name': 'car'},
{'id': 27, 'name': 'truck'},
{'id': 28, 'name': 'bus'},
{'id': 31, 'name': 'train'},
{'id': 32, 'name': 'motorcycle'},
{'id': 33, 'name': 'bicycle'},
],
'wilddash': [
{'id': 1, 'name': 'ego vehicle'},
{'id': 24, 'name': 'person'},
{'id': 25, 'name': 'rider'},
{'id': 26, 'name': 'car'},
{'id': 27, 'name': 'truck'},
{'id': 28, 'name': 'bus'},
{'id': 29, 'name': 'caravan'},
{'id': 30, 'name': 'trailer'},
{'id': 31, 'name': 'train'},
{'id': 32, 'name': 'motorcycle'},
{'id': 33, 'name': 'bicycle'},
{'id': 34, 'name': 'pickup'},
{'id': 35, 'name': 'van'},
]
}
|
categories = {'coco': [{'color': [220, 20, 60], 'isthing': 1, 'id': 1, 'name': 'person'}, {'color': [119, 11, 32], 'isthing': 1, 'id': 2, 'name': 'bicycle'}, {'color': [0, 0, 142], 'isthing': 1, 'id': 3, 'name': 'car'}, {'color': [0, 0, 230], 'isthing': 1, 'id': 4, 'name': 'motorcycle'}, {'color': [106, 0, 228], 'isthing': 1, 'id': 5, 'name': 'airplane'}, {'color': [0, 60, 100], 'isthing': 1, 'id': 6, 'name': 'bus'}, {'color': [0, 80, 100], 'isthing': 1, 'id': 7, 'name': 'train'}, {'color': [0, 0, 70], 'isthing': 1, 'id': 8, 'name': 'truck'}, {'color': [0, 0, 192], 'isthing': 1, 'id': 9, 'name': 'boat'}, {'color': [250, 170, 30], 'isthing': 1, 'id': 10, 'name': 'traffic light'}, {'color': [100, 170, 30], 'isthing': 1, 'id': 11, 'name': 'fire hydrant'}, {'color': [220, 220, 0], 'isthing': 1, 'id': 13, 'name': 'stop sign'}, {'color': [175, 116, 175], 'isthing': 1, 'id': 14, 'name': 'parking meter'}, {'color': [250, 0, 30], 'isthing': 1, 'id': 15, 'name': 'bench'}, {'color': [165, 42, 42], 'isthing': 1, 'id': 16, 'name': 'bird'}, {'color': [255, 77, 255], 'isthing': 1, 'id': 17, 'name': 'cat'}, {'color': [0, 226, 252], 'isthing': 1, 'id': 18, 'name': 'dog'}, {'color': [182, 182, 255], 'isthing': 1, 'id': 19, 'name': 'horse'}, {'color': [0, 82, 0], 'isthing': 1, 'id': 20, 'name': 'sheep'}, {'color': [120, 166, 157], 'isthing': 1, 'id': 21, 'name': 'cow'}, {'color': [110, 76, 0], 'isthing': 1, 'id': 22, 'name': 'elephant'}, {'color': [174, 57, 255], 'isthing': 1, 'id': 23, 'name': 'bear'}, {'color': [199, 100, 0], 'isthing': 1, 'id': 24, 'name': 'zebra'}, {'color': [72, 0, 118], 'isthing': 1, 'id': 25, 'name': 'giraffe'}, {'color': [255, 179, 240], 'isthing': 1, 'id': 27, 'name': 'backpack'}, {'color': [0, 125, 92], 'isthing': 1, 'id': 28, 'name': 'umbrella'}, {'color': [209, 0, 151], 'isthing': 1, 'id': 31, 'name': 'handbag'}, {'color': [188, 208, 182], 'isthing': 1, 'id': 32, 'name': 'tie'}, {'color': [0, 220, 176], 'isthing': 1, 'id': 33, 'name': 'suitcase'}, {'color': [255, 99, 164], 'isthing': 1, 'id': 34, 'name': 'frisbee'}, {'color': [92, 0, 73], 'isthing': 1, 'id': 35, 'name': 'skis'}, {'color': [133, 129, 255], 'isthing': 1, 'id': 36, 'name': 'snowboard'}, {'color': [78, 180, 255], 'isthing': 1, 'id': 37, 'name': 'sports ball'}, {'color': [0, 228, 0], 'isthing': 1, 'id': 38, 'name': 'kite'}, {'color': [174, 255, 243], 'isthing': 1, 'id': 39, 'name': 'baseball bat'}, {'color': [45, 89, 255], 'isthing': 1, 'id': 40, 'name': 'baseball glove'}, {'color': [134, 134, 103], 'isthing': 1, 'id': 41, 'name': 'skateboard'}, {'color': [145, 148, 174], 'isthing': 1, 'id': 42, 'name': 'surfboard'}, {'color': [255, 208, 186], 'isthing': 1, 'id': 43, 'name': 'tennis racket'}, {'color': [197, 226, 255], 'isthing': 1, 'id': 44, 'name': 'bottle'}, {'color': [171, 134, 1], 'isthing': 1, 'id': 46, 'name': 'wine glass'}, {'color': [109, 63, 54], 'isthing': 1, 'id': 47, 'name': 'cup'}, {'color': [207, 138, 255], 'isthing': 1, 'id': 48, 'name': 'fork'}, {'color': [151, 0, 95], 'isthing': 1, 'id': 49, 'name': 'knife'}, {'color': [9, 80, 61], 'isthing': 1, 'id': 50, 'name': 'spoon'}, {'color': [84, 105, 51], 'isthing': 1, 'id': 51, 'name': 'bowl'}, {'color': [74, 65, 105], 'isthing': 1, 'id': 52, 'name': 'banana'}, {'color': [166, 196, 102], 'isthing': 1, 'id': 53, 'name': 'apple'}, {'color': [208, 195, 210], 'isthing': 1, 'id': 54, 'name': 'sandwich'}, {'color': [255, 109, 65], 'isthing': 1, 'id': 55, 'name': 'orange'}, {'color': [0, 143, 149], 'isthing': 1, 'id': 56, 'name': 'broccoli'}, {'color': [179, 0, 194], 'isthing': 1, 'id': 57, 'name': 'carrot'}, {'color': [209, 99, 106], 'isthing': 1, 'id': 58, 'name': 'hot dog'}, {'color': [5, 121, 0], 'isthing': 1, 'id': 59, 'name': 'pizza'}, {'color': [227, 255, 205], 'isthing': 1, 'id': 60, 'name': 'donut'}, {'color': [147, 186, 208], 'isthing': 1, 'id': 61, 'name': 'cake'}, {'color': [153, 69, 1], 'isthing': 1, 'id': 62, 'name': 'chair'}, {'color': [3, 95, 161], 'isthing': 1, 'id': 63, 'name': 'couch'}, {'color': [163, 255, 0], 'isthing': 1, 'id': 64, 'name': 'potted plant'}, {'color': [119, 0, 170], 'isthing': 1, 'id': 65, 'name': 'bed'}, {'color': [0, 182, 199], 'isthing': 1, 'id': 67, 'name': 'dining table'}, {'color': [0, 165, 120], 'isthing': 1, 'id': 70, 'name': 'toilet'}, {'color': [183, 130, 88], 'isthing': 1, 'id': 72, 'name': 'tv'}, {'color': [95, 32, 0], 'isthing': 1, 'id': 73, 'name': 'laptop'}, {'color': [130, 114, 135], 'isthing': 1, 'id': 74, 'name': 'mouse'}, {'color': [110, 129, 133], 'isthing': 1, 'id': 75, 'name': 'remote'}, {'color': [166, 74, 118], 'isthing': 1, 'id': 76, 'name': 'keyboard'}, {'color': [219, 142, 185], 'isthing': 1, 'id': 77, 'name': 'cell phone'}, {'color': [79, 210, 114], 'isthing': 1, 'id': 78, 'name': 'microwave'}, {'color': [178, 90, 62], 'isthing': 1, 'id': 79, 'name': 'oven'}, {'color': [65, 70, 15], 'isthing': 1, 'id': 80, 'name': 'toaster'}, {'color': [127, 167, 115], 'isthing': 1, 'id': 81, 'name': 'sink'}, {'color': [59, 105, 106], 'isthing': 1, 'id': 82, 'name': 'refrigerator'}, {'color': [142, 108, 45], 'isthing': 1, 'id': 84, 'name': 'book'}, {'color': [196, 172, 0], 'isthing': 1, 'id': 85, 'name': 'clock'}, {'color': [95, 54, 80], 'isthing': 1, 'id': 86, 'name': 'vase'}, {'color': [128, 76, 255], 'isthing': 1, 'id': 87, 'name': 'scissors'}, {'color': [201, 57, 1], 'isthing': 1, 'id': 88, 'name': 'teddy bear'}, {'color': [246, 0, 122], 'isthing': 1, 'id': 89, 'name': 'hair drier'}, {'color': [191, 162, 208], 'isthing': 1, 'id': 90, 'name': 'toothbrush'}], 'cityscapes': [{'id': i + 1, 'name': x} for (i, x) in enumerate(['person', 'rider', 'car', 'truck', 'bus', 'train', 'motorcycle', 'bicycle'])], 'mapillary': [{'id': 1, 'name': 'animal--bird'}, {'id': 2, 'name': 'animal--ground-animal'}, {'id': 9, 'name': 'construction--flat--crosswalk-plain'}, {'id': 20, 'name': 'human--person'}, {'id': 21, 'name': 'human--rider--bicyclist'}, {'id': 22, 'name': 'human--rider--motorcyclist'}, {'id': 23, 'name': 'human--rider--other-rider'}, {'id': 24, 'name': 'marking--crosswalk-zebra'}, {'id': 33, 'name': 'object--banner'}, {'id': 34, 'name': 'object--bench'}, {'id': 35, 'name': 'object--bike-rack'}, {'id': 36, 'name': 'object--billboard'}, {'id': 37, 'name': 'object--catch-basin'}, {'id': 38, 'name': 'object--cctv-camera'}, {'id': 39, 'name': 'object--fire-hydrant'}, {'id': 40, 'name': 'object--junction-box'}, {'id': 41, 'name': 'object--mailbox'}, {'id': 42, 'name': 'object--manhole'}, {'id': 43, 'name': 'object--phone-booth'}, {'id': 45, 'name': 'object--street-light'}, {'id': 46, 'name': 'object--support--pole'}, {'id': 47, 'name': 'object--support--traffic-sign-frame'}, {'id': 48, 'name': 'object--support--utility-pole'}, {'id': 49, 'name': 'object--traffic-light'}, {'id': 50, 'name': 'object--traffic-sign--back'}, {'id': 51, 'name': 'object--traffic-sign--front'}, {'id': 52, 'name': 'object--trash-can'}, {'id': 53, 'name': 'object--vehicle--bicycle'}, {'id': 54, 'name': 'object--vehicle--boat'}, {'id': 55, 'name': 'object--vehicle--bus'}, {'id': 56, 'name': 'object--vehicle--car'}, {'id': 57, 'name': 'object--vehicle--caravan'}, {'id': 58, 'name': 'object--vehicle--motorcycle'}, {'id': 60, 'name': 'object--vehicle--other-vehicle'}, {'id': 61, 'name': 'object--vehicle--trailer'}, {'id': 62, 'name': 'object--vehicle--truck'}, {'id': 63, 'name': 'object--vehicle--wheeled-slow'}], 'viper': [{'id': 13, 'name': 'trafficlight', 'supercategory': ''}, {'id': 16, 'name': 'firehydrant', 'supercategory': ''}, {'id': 17, 'name': 'chair', 'supercategory': ''}, {'id': 19, 'name': 'trashcan', 'supercategory': ''}, {'id': 20, 'name': 'person', 'supercategory': ''}, {'id': 23, 'name': 'motorcycle', 'supercategory': ''}, {'id': 24, 'name': 'car', 'supercategory': ''}, {'id': 25, 'name': 'van', 'supercategory': ''}, {'id': 26, 'name': 'bus', 'supercategory': ''}, {'id': 27, 'name': 'truck', 'supercategory': ''}], 'scannet': [{'id': 3, 'name': 'cabinet', 'supercategory': 'furniture'}, {'id': 4, 'name': 'bed', 'supercategory': 'furniture'}, {'id': 5, 'name': 'chair', 'supercategory': 'furniture'}, {'id': 6, 'name': 'sofa', 'supercategory': 'furniture'}, {'id': 7, 'name': 'table', 'supercategory': 'furniture'}, {'id': 8, 'name': 'door', 'supercategory': 'furniture'}, {'id': 9, 'name': 'window', 'supercategory': 'furniture'}, {'id': 10, 'name': 'bookshelf', 'supercategory': 'furniture'}, {'id': 11, 'name': 'picture', 'supercategory': 'furniture'}, {'id': 12, 'name': 'counter', 'supercategory': 'furniture'}, {'id': 14, 'name': 'desk', 'supercategory': 'furniture'}, {'id': 16, 'name': 'curtain', 'supercategory': 'furniture'}, {'id': 24, 'name': 'refrigerator', 'supercategory': 'appliance'}, {'id': 28, 'name': 'shower curtain', 'supercategory': 'furniture'}, {'id': 33, 'name': 'toilet', 'supercategory': 'furniture'}, {'id': 34, 'name': 'sink', 'supercategory': 'appliance'}, {'id': 36, 'name': 'bathtub', 'supercategory': 'furniture'}, {'id': 39, 'name': 'otherfurniture', 'supercategory': 'furniture'}], 'oid': [{'id': 1, 'name': 'Screwdriver', 'freebase_id': '/m/01bms0'}, {'id': 2, 'name': 'Light switch', 'freebase_id': '/m/03jbxj'}, {'id': 3, 'name': 'Doughnut', 'freebase_id': '/m/0jy4k'}, {'id': 4, 'name': 'Toilet paper', 'freebase_id': '/m/09gtd'}, {'id': 5, 'name': 'Wrench', 'freebase_id': '/m/01j5ks'}, {'id': 6, 'name': 'Toaster', 'freebase_id': '/m/01k6s3'}, {'id': 7, 'name': 'Tennis ball', 'freebase_id': '/m/05ctyq'}, {'id': 8, 'name': 'Radish', 'freebase_id': '/m/015x5n'}, {'id': 9, 'name': 'Pomegranate', 'freebase_id': '/m/0jwn_'}, {'id': 10, 'name': 'Kite', 'freebase_id': '/m/02zt3'}, {'id': 11, 'name': 'Table tennis racket', 'freebase_id': '/m/05_5p_0'}, {'id': 12, 'name': 'Hamster', 'freebase_id': '/m/03qrc'}, {'id': 13, 'name': 'Barge', 'freebase_id': '/m/01btn'}, {'id': 14, 'name': 'Shower', 'freebase_id': '/m/02f9f_'}, {'id': 15, 'name': 'Printer', 'freebase_id': '/m/01m4t'}, {'id': 16, 'name': 'Snowmobile', 'freebase_id': '/m/01x3jk'}, {'id': 17, 'name': 'Fire hydrant', 'freebase_id': '/m/01pns0'}, {'id': 18, 'name': 'Limousine', 'freebase_id': '/m/01lcw4'}, {'id': 19, 'name': 'Whale', 'freebase_id': '/m/084zz'}, {'id': 20, 'name': 'Microwave oven', 'freebase_id': '/m/0fx9l'}, {'id': 21, 'name': 'Asparagus', 'freebase_id': '/m/0cjs7'}, {'id': 22, 'name': 'Lion', 'freebase_id': '/m/096mb'}, {'id': 23, 'name': 'Spatula', 'freebase_id': '/m/02d1br'}, {'id': 24, 'name': 'Torch', 'freebase_id': '/m/07dd4'}, {'id': 25, 'name': 'Volleyball', 'freebase_id': '/m/02rgn06'}, {'id': 26, 'name': 'Ambulance', 'freebase_id': '/m/012n7d'}, {'id': 27, 'name': 'Chopsticks', 'freebase_id': '/m/01_5g'}, {'id': 28, 'name': 'Raccoon', 'freebase_id': '/m/0dq75'}, {'id': 29, 'name': 'Blue jay', 'freebase_id': '/m/01f8m5'}, {'id': 30, 'name': 'Lynx', 'freebase_id': '/m/04g2r'}, {'id': 31, 'name': 'Dice', 'freebase_id': '/m/029b3'}, {'id': 32, 'name': 'Filing cabinet', 'freebase_id': '/m/047j0r'}, {'id': 33, 'name': 'Ruler', 'freebase_id': '/m/0hdln'}, {'id': 34, 'name': 'Power plugs and sockets', 'freebase_id': '/m/03bbps'}, {'id': 35, 'name': 'Bell pepper', 'freebase_id': '/m/0jg57'}, {'id': 36, 'name': 'Binoculars', 'freebase_id': '/m/0lt4_'}, {'id': 37, 'name': 'Pretzel', 'freebase_id': '/m/01f91_'}, {'id': 38, 'name': 'Hot dog', 'freebase_id': '/m/01b9xk'}, {'id': 39, 'name': 'Missile', 'freebase_id': '/m/04ylt'}, {'id': 40, 'name': 'Common fig', 'freebase_id': '/m/043nyj'}, {'id': 41, 'name': 'Croissant', 'freebase_id': '/m/015wgc'}, {'id': 42, 'name': 'Adhesive tape', 'freebase_id': '/m/03m3vtv'}, {'id': 43, 'name': 'Slow cooker', 'freebase_id': '/m/02tsc9'}, {'id': 44, 'name': 'Dog bed', 'freebase_id': '/m/0h8n6f9'}, {'id': 45, 'name': 'Harpsichord', 'freebase_id': '/m/03q5t'}, {'id': 46, 'name': 'Billiard table', 'freebase_id': '/m/04p0qw'}, {'id': 47, 'name': 'Alpaca', 'freebase_id': '/m/0pcr'}, {'id': 48, 'name': 'Harbor seal', 'freebase_id': '/m/02l8p9'}, {'id': 49, 'name': 'Grape', 'freebase_id': '/m/0388q'}, {'id': 50, 'name': 'Nail', 'freebase_id': '/m/05bm6'}, {'id': 51, 'name': 'Paper towel', 'freebase_id': '/m/02w3r3'}, {'id': 52, 'name': 'Alarm clock', 'freebase_id': '/m/046dlr'}, {'id': 53, 'name': 'Guacamole', 'freebase_id': '/m/02g30s'}, {'id': 54, 'name': 'Starfish', 'freebase_id': '/m/01h8tj'}, {'id': 55, 'name': 'Zebra', 'freebase_id': '/m/0898b'}, {'id': 56, 'name': 'Segway', 'freebase_id': '/m/076bq'}, {'id': 57, 'name': 'Sea turtle', 'freebase_id': '/m/0120dh'}, {'id': 58, 'name': 'Scissors', 'freebase_id': '/m/01lsmm'}, {'id': 59, 'name': 'Rhinoceros', 'freebase_id': '/m/03d443'}, {'id': 60, 'name': 'Kangaroo', 'freebase_id': '/m/04c0y'}, {'id': 61, 'name': 'Jaguar', 'freebase_id': '/m/0449p'}, {'id': 62, 'name': 'Leopard', 'freebase_id': '/m/0c29q'}, {'id': 63, 'name': 'Dumbbell', 'freebase_id': '/m/04h8sr'}, {'id': 64, 'name': 'Envelope', 'freebase_id': '/m/0frqm'}, {'id': 65, 'name': 'Winter melon', 'freebase_id': '/m/02cvgx'}, {'id': 66, 'name': 'Teapot', 'freebase_id': '/m/01fh4r'}, {'id': 67, 'name': 'Camel', 'freebase_id': '/m/01x_v'}, {'id': 68, 'name': 'Beaker', 'freebase_id': '/m/0d20w4'}, {'id': 69, 'name': 'Brown bear', 'freebase_id': '/m/01dxs'}, {'id': 70, 'name': 'Toilet', 'freebase_id': '/m/09g1w'}, {'id': 71, 'name': 'Teddy bear', 'freebase_id': '/m/0kmg4'}, {'id': 72, 'name': 'Briefcase', 'freebase_id': '/m/0584n8'}, {'id': 73, 'name': 'Stop sign', 'freebase_id': '/m/02pv19'}, {'id': 74, 'name': 'Tiger', 'freebase_id': '/m/07dm6'}, {'id': 75, 'name': 'Cabbage', 'freebase_id': '/m/0fbw6'}, {'id': 76, 'name': 'Giraffe', 'freebase_id': '/m/03bk1'}, {'id': 77, 'name': 'Polar bear', 'freebase_id': '/m/0633h'}, {'id': 78, 'name': 'Shark', 'freebase_id': '/m/0by6g'}, {'id': 79, 'name': 'Rabbit', 'freebase_id': '/m/06mf6'}, {'id': 80, 'name': 'Swim cap', 'freebase_id': '/m/04tn4x'}, {'id': 81, 'name': 'Pressure cooker', 'freebase_id': '/m/0h8ntjv'}, {'id': 82, 'name': 'Kitchen knife', 'freebase_id': '/m/058qzx'}, {'id': 83, 'name': 'Submarine sandwich', 'freebase_id': '/m/06pcq'}, {'id': 84, 'name': 'Flashlight', 'freebase_id': '/m/01kb5b'}, {'id': 85, 'name': 'Penguin', 'freebase_id': '/m/05z6w'}, {'id': 86, 'name': 'Snake', 'freebase_id': '/m/078jl'}, {'id': 87, 'name': 'Zucchini', 'freebase_id': '/m/027pcv'}, {'id': 88, 'name': 'Bat', 'freebase_id': '/m/01h44'}, {'id': 89, 'name': 'Food processor', 'freebase_id': '/m/03y6mg'}, {'id': 90, 'name': 'Ostrich', 'freebase_id': '/m/05n4y'}, {'id': 91, 'name': 'Sea lion', 'freebase_id': '/m/0gd36'}, {'id': 92, 'name': 'Goldfish', 'freebase_id': '/m/03fj2'}, {'id': 93, 'name': 'Elephant', 'freebase_id': '/m/0bwd_0j'}, {'id': 94, 'name': 'Rocket', 'freebase_id': '/m/09rvcxw'}, {'id': 95, 'name': 'Mouse', 'freebase_id': '/m/04rmv'}, {'id': 96, 'name': 'Oyster', 'freebase_id': '/m/0_cp5'}, {'id': 97, 'name': 'Digital clock', 'freebase_id': '/m/06_72j'}, {'id': 98, 'name': 'Otter', 'freebase_id': '/m/0cn6p'}, {'id': 99, 'name': 'Dolphin', 'freebase_id': '/m/02hj4'}, {'id': 100, 'name': 'Punching bag', 'freebase_id': '/m/0420v5'}, {'id': 101, 'name': 'Corded phone', 'freebase_id': '/m/0h8lkj8'}, {'id': 102, 'name': 'Tennis racket', 'freebase_id': '/m/0h8my_4'}, {'id': 103, 'name': 'Pancake', 'freebase_id': '/m/01dwwc'}, {'id': 104, 'name': 'Mango', 'freebase_id': '/m/0fldg'}, {'id': 105, 'name': 'Crocodile', 'freebase_id': '/m/09f_2'}, {'id': 106, 'name': 'Waffle', 'freebase_id': '/m/01dwsz'}, {'id': 107, 'name': 'Computer mouse', 'freebase_id': '/m/020lf'}, {'id': 108, 'name': 'Kettle', 'freebase_id': '/m/03s_tn'}, {'id': 109, 'name': 'Tart', 'freebase_id': '/m/02zvsm'}, {'id': 110, 'name': 'Oven', 'freebase_id': '/m/029bxz'}, {'id': 111, 'name': 'Banana', 'freebase_id': '/m/09qck'}, {'id': 112, 'name': 'Cheetah', 'freebase_id': '/m/0cd4d'}, {'id': 113, 'name': 'Raven', 'freebase_id': '/m/06j2d'}, {'id': 114, 'name': 'Frying pan', 'freebase_id': '/m/04v6l4'}, {'id': 115, 'name': 'Pear', 'freebase_id': '/m/061_f'}, {'id': 116, 'name': 'Fox', 'freebase_id': '/m/0306r'}, {'id': 117, 'name': 'Skateboard', 'freebase_id': '/m/06_fw'}, {'id': 118, 'name': 'Rugby ball', 'freebase_id': '/m/0wdt60w'}, {'id': 119, 'name': 'Watermelon', 'freebase_id': '/m/0kpqd'}, {'id': 120, 'name': 'Flute', 'freebase_id': '/m/0l14j_'}, {'id': 121, 'name': 'Canary', 'freebase_id': '/m/0ccs93'}, {'id': 122, 'name': 'Door handle', 'freebase_id': '/m/03c7gz'}, {'id': 123, 'name': 'Saxophone', 'freebase_id': '/m/06ncr'}, {'id': 124, 'name': 'Burrito', 'freebase_id': '/m/01j3zr'}, {'id': 125, 'name': 'Suitcase', 'freebase_id': '/m/01s55n'}, {'id': 126, 'name': 'Roller skates', 'freebase_id': '/m/02p3w7d'}, {'id': 127, 'name': 'Dagger', 'freebase_id': '/m/02gzp'}, {'id': 128, 'name': 'Seat belt', 'freebase_id': '/m/0dkzw'}, {'id': 129, 'name': 'Washing machine', 'freebase_id': '/m/0174k2'}, {'id': 130, 'name': 'Jet ski', 'freebase_id': '/m/01xs3r'}, {'id': 131, 'name': 'Sombrero', 'freebase_id': '/m/02jfl0'}, {'id': 132, 'name': 'Pig', 'freebase_id': '/m/068zj'}, {'id': 133, 'name': 'Drinking straw', 'freebase_id': '/m/03v5tg'}, {'id': 134, 'name': 'Peach', 'freebase_id': '/m/0dj6p'}, {'id': 135, 'name': 'Tortoise', 'freebase_id': '/m/011k07'}, {'id': 136, 'name': 'Towel', 'freebase_id': '/m/0162_1'}, {'id': 137, 'name': 'Tablet computer', 'freebase_id': '/m/0bh9flk'}, {'id': 138, 'name': 'Cucumber', 'freebase_id': '/m/015x4r'}, {'id': 139, 'name': 'Mule', 'freebase_id': '/m/0dbzx'}, {'id': 140, 'name': 'Potato', 'freebase_id': '/m/05vtc'}, {'id': 141, 'name': 'Frog', 'freebase_id': '/m/09ld4'}, {'id': 142, 'name': 'Bear', 'freebase_id': '/m/01dws'}, {'id': 143, 'name': 'Lighthouse', 'freebase_id': '/m/04h7h'}, {'id': 144, 'name': 'Belt', 'freebase_id': '/m/0176mf'}, {'id': 145, 'name': 'Baseball bat', 'freebase_id': '/m/03g8mr'}, {'id': 146, 'name': 'Racket', 'freebase_id': '/m/0dv9c'}, {'id': 147, 'name': 'Sword', 'freebase_id': '/m/06y5r'}, {'id': 148, 'name': 'Bagel', 'freebase_id': '/m/01fb_0'}, {'id': 149, 'name': 'Goat', 'freebase_id': '/m/03fwl'}, {'id': 150, 'name': 'Lizard', 'freebase_id': '/m/04m9y'}, {'id': 151, 'name': 'Parrot', 'freebase_id': '/m/0gv1x'}, {'id': 152, 'name': 'Owl', 'freebase_id': '/m/09d5_'}, {'id': 153, 'name': 'Turkey', 'freebase_id': '/m/0jly1'}, {'id': 154, 'name': 'Cello', 'freebase_id': '/m/01xqw'}, {'id': 155, 'name': 'Knife', 'freebase_id': '/m/04ctx'}, {'id': 156, 'name': 'Handgun', 'freebase_id': '/m/0gxl3'}, {'id': 157, 'name': 'Carrot', 'freebase_id': '/m/0fj52s'}, {'id': 158, 'name': 'Hamburger', 'freebase_id': '/m/0cdn1'}, {'id': 159, 'name': 'Grapefruit', 'freebase_id': '/m/0hqkz'}, {'id': 160, 'name': 'Tap', 'freebase_id': '/m/02jz0l'}, {'id': 161, 'name': 'Tea', 'freebase_id': '/m/07clx'}, {'id': 162, 'name': 'Bull', 'freebase_id': '/m/0cnyhnx'}, {'id': 163, 'name': 'Turtle', 'freebase_id': '/m/09dzg'}, {'id': 164, 'name': 'Bust', 'freebase_id': '/m/04yqq2'}, {'id': 165, 'name': 'Monkey', 'freebase_id': '/m/08pbxl'}, {'id': 166, 'name': 'Wok', 'freebase_id': '/m/084rd'}, {'id': 167, 'name': 'Broccoli', 'freebase_id': '/m/0hkxq'}, {'id': 168, 'name': 'Pitcher', 'freebase_id': '/m/054fyh'}, {'id': 169, 'name': 'Whiteboard', 'freebase_id': '/m/02d9qx'}, {'id': 170, 'name': 'Squirrel', 'freebase_id': '/m/071qp'}, {'id': 171, 'name': 'Jug', 'freebase_id': '/m/08hvt4'}, {'id': 172, 'name': 'Woodpecker', 'freebase_id': '/m/01dy8n'}, {'id': 173, 'name': 'Pizza', 'freebase_id': '/m/0663v'}, {'id': 174, 'name': 'Surfboard', 'freebase_id': '/m/019w40'}, {'id': 175, 'name': 'Sofa bed', 'freebase_id': '/m/03m3pdh'}, {'id': 176, 'name': 'Sheep', 'freebase_id': '/m/07bgp'}, {'id': 177, 'name': 'Candle', 'freebase_id': '/m/0c06p'}, {'id': 178, 'name': 'Muffin', 'freebase_id': '/m/01tcjp'}, {'id': 179, 'name': 'Cookie', 'freebase_id': '/m/021mn'}, {'id': 180, 'name': 'Apple', 'freebase_id': '/m/014j1m'}, {'id': 181, 'name': 'Chest of drawers', 'freebase_id': '/m/05kyg_'}, {'id': 182, 'name': 'Skull', 'freebase_id': '/m/016m2d'}, {'id': 183, 'name': 'Chicken', 'freebase_id': '/m/09b5t'}, {'id': 184, 'name': 'Loveseat', 'freebase_id': '/m/0703r8'}, {'id': 185, 'name': 'Baseball glove', 'freebase_id': '/m/03grzl'}, {'id': 186, 'name': 'Piano', 'freebase_id': '/m/05r5c'}, {'id': 187, 'name': 'Waste container', 'freebase_id': '/m/0bjyj5'}, {'id': 188, 'name': 'Barrel', 'freebase_id': '/m/02zn6n'}, {'id': 189, 'name': 'Swan', 'freebase_id': '/m/0dftk'}, {'id': 190, 'name': 'Taxi', 'freebase_id': '/m/0pg52'}, {'id': 191, 'name': 'Lemon', 'freebase_id': '/m/09k_b'}, {'id': 192, 'name': 'Pumpkin', 'freebase_id': '/m/05zsy'}, {'id': 193, 'name': 'Sparrow', 'freebase_id': '/m/0h23m'}, {'id': 194, 'name': 'Orange', 'freebase_id': '/m/0cyhj_'}, {'id': 195, 'name': 'Tank', 'freebase_id': '/m/07cmd'}, {'id': 196, 'name': 'Sandwich', 'freebase_id': '/m/0l515'}, {'id': 197, 'name': 'Coffee', 'freebase_id': '/m/02vqfm'}, {'id': 198, 'name': 'Juice', 'freebase_id': '/m/01z1kdw'}, {'id': 199, 'name': 'Coin', 'freebase_id': '/m/0242l'}, {'id': 200, 'name': 'Pen', 'freebase_id': '/m/0k1tl'}, {'id': 201, 'name': 'Watch', 'freebase_id': '/m/0gjkl'}, {'id': 202, 'name': 'Eagle', 'freebase_id': '/m/09csl'}, {'id': 203, 'name': 'Goose', 'freebase_id': '/m/0dbvp'}, {'id': 204, 'name': 'Falcon', 'freebase_id': '/m/0f6wt'}, {'id': 205, 'name': 'Christmas tree', 'freebase_id': '/m/025nd'}, {'id': 206, 'name': 'Sunflower', 'freebase_id': '/m/0ftb8'}, {'id': 207, 'name': 'Vase', 'freebase_id': '/m/02s195'}, {'id': 208, 'name': 'Football', 'freebase_id': '/m/01226z'}, {'id': 209, 'name': 'Canoe', 'freebase_id': '/m/0ph39'}, {'id': 210, 'name': 'High heels', 'freebase_id': '/m/06k2mb'}, {'id': 211, 'name': 'Spoon', 'freebase_id': '/m/0cmx8'}, {'id': 212, 'name': 'Mug', 'freebase_id': '/m/02jvh9'}, {'id': 213, 'name': 'Swimwear', 'freebase_id': '/m/01gkx_'}, {'id': 214, 'name': 'Duck', 'freebase_id': '/m/09ddx'}, {'id': 215, 'name': 'Cat', 'freebase_id': '/m/01yrx'}, {'id': 216, 'name': 'Tomato', 'freebase_id': '/m/07j87'}, {'id': 217, 'name': 'Cocktail', 'freebase_id': '/m/024g6'}, {'id': 218, 'name': 'Clock', 'freebase_id': '/m/01x3z'}, {'id': 219, 'name': 'Cowboy hat', 'freebase_id': '/m/025rp__'}, {'id': 220, 'name': 'Miniskirt', 'freebase_id': '/m/01cmb2'}, {'id': 221, 'name': 'Cattle', 'freebase_id': '/m/01xq0k1'}, {'id': 222, 'name': 'Strawberry', 'freebase_id': '/m/07fbm7'}, {'id': 223, 'name': 'Bronze sculpture', 'freebase_id': '/m/01yx86'}, {'id': 224, 'name': 'Pillow', 'freebase_id': '/m/034c16'}, {'id': 225, 'name': 'Squash', 'freebase_id': '/m/0dv77'}, {'id': 226, 'name': 'Traffic light', 'freebase_id': '/m/015qff'}, {'id': 227, 'name': 'Saucer', 'freebase_id': '/m/03q5c7'}, {'id': 228, 'name': 'Reptile', 'freebase_id': '/m/06bt6'}, {'id': 229, 'name': 'Cake', 'freebase_id': '/m/0fszt'}, {'id': 230, 'name': 'Plastic bag', 'freebase_id': '/m/05gqfk'}, {'id': 231, 'name': 'Studio couch', 'freebase_id': '/m/026qbn5'}, {'id': 232, 'name': 'Beer', 'freebase_id': '/m/01599'}, {'id': 233, 'name': 'Scarf', 'freebase_id': '/m/02h19r'}, {'id': 234, 'name': 'Coffee cup', 'freebase_id': '/m/02p5f1q'}, {'id': 235, 'name': 'Wine', 'freebase_id': '/m/081qc'}, {'id': 236, 'name': 'Mushroom', 'freebase_id': '/m/052sf'}, {'id': 237, 'name': 'Traffic sign', 'freebase_id': '/m/01mqdt'}, {'id': 238, 'name': 'Camera', 'freebase_id': '/m/0dv5r'}, {'id': 239, 'name': 'Rose', 'freebase_id': '/m/06m11'}, {'id': 240, 'name': 'Couch', 'freebase_id': '/m/02crq1'}, {'id': 241, 'name': 'Handbag', 'freebase_id': '/m/080hkjn'}, {'id': 242, 'name': 'Fedora', 'freebase_id': '/m/02fq_6'}, {'id': 243, 'name': 'Sock', 'freebase_id': '/m/01nq26'}, {'id': 244, 'name': 'Computer keyboard', 'freebase_id': '/m/01m2v'}, {'id': 245, 'name': 'Mobile phone', 'freebase_id': '/m/050k8'}, {'id': 246, 'name': 'Ball', 'freebase_id': '/m/018xm'}, {'id': 247, 'name': 'Balloon', 'freebase_id': '/m/01j51'}, {'id': 248, 'name': 'Horse', 'freebase_id': '/m/03k3r'}, {'id': 249, 'name': 'Boot', 'freebase_id': '/m/01b638'}, {'id': 250, 'name': 'Fish', 'freebase_id': '/m/0ch_cf'}, {'id': 251, 'name': 'Backpack', 'freebase_id': '/m/01940j'}, {'id': 252, 'name': 'Skirt', 'freebase_id': '/m/02wv6h6'}, {'id': 253, 'name': 'Van', 'freebase_id': '/m/0h2r6'}, {'id': 254, 'name': 'Bread', 'freebase_id': '/m/09728'}, {'id': 255, 'name': 'Glove', 'freebase_id': '/m/0174n1'}, {'id': 256, 'name': 'Dog', 'freebase_id': '/m/0bt9lr'}, {'id': 257, 'name': 'Airplane', 'freebase_id': '/m/0cmf2'}, {'id': 258, 'name': 'Motorcycle', 'freebase_id': '/m/04_sv'}, {'id': 259, 'name': 'Drink', 'freebase_id': '/m/0271t'}, {'id': 260, 'name': 'Book', 'freebase_id': '/m/0bt_c3'}, {'id': 261, 'name': 'Train', 'freebase_id': '/m/07jdr'}, {'id': 262, 'name': 'Flower', 'freebase_id': '/m/0c9ph5'}, {'id': 263, 'name': 'Carnivore', 'freebase_id': '/m/01lrl'}, {'id': 264, 'name': 'Human ear', 'freebase_id': '/m/039xj_'}, {'id': 265, 'name': 'Toy', 'freebase_id': '/m/0138tl'}, {'id': 266, 'name': 'Box', 'freebase_id': '/m/025dyy'}, {'id': 267, 'name': 'Truck', 'freebase_id': '/m/07r04'}, {'id': 268, 'name': 'Wheel', 'freebase_id': '/m/083wq'}, {'id': 269, 'name': 'Aircraft', 'freebase_id': '/m/0k5j'}, {'id': 270, 'name': 'Bus', 'freebase_id': '/m/01bjv'}, {'id': 271, 'name': 'Human mouth', 'freebase_id': '/m/0283dt1'}, {'id': 272, 'name': 'Sculpture', 'freebase_id': '/m/06msq'}, {'id': 273, 'name': 'Shirt', 'freebase_id': '/m/01n4qj'}, {'id': 274, 'name': 'Hat', 'freebase_id': '/m/02dl1y'}, {'id': 275, 'name': 'Vehicle registration plate', 'freebase_id': '/m/01jfm_'}, {'id': 276, 'name': 'Guitar', 'freebase_id': '/m/0342h'}, {'id': 277, 'name': 'Sun hat', 'freebase_id': '/m/02wbtzl'}, {'id': 278, 'name': 'Bottle', 'freebase_id': '/m/04dr76w'}, {'id': 279, 'name': 'Luggage and bags', 'freebase_id': '/m/0hf58v5'}, {'id': 280, 'name': 'Trousers', 'freebase_id': '/m/07mhn'}, {'id': 281, 'name': 'Bicycle wheel', 'freebase_id': '/m/01bqk0'}, {'id': 282, 'name': 'Suit', 'freebase_id': '/m/01xyhv'}, {'id': 283, 'name': 'Bowl', 'freebase_id': '/m/04kkgm'}, {'id': 284, 'name': 'Man', 'freebase_id': '/m/04yx4'}, {'id': 285, 'name': 'Flowerpot', 'freebase_id': '/m/0fm3zh'}, {'id': 286, 'name': 'Laptop', 'freebase_id': '/m/01c648'}, {'id': 287, 'name': 'Boy', 'freebase_id': '/m/01bl7v'}, {'id': 288, 'name': 'Picture frame', 'freebase_id': '/m/06z37_'}, {'id': 289, 'name': 'Bird', 'freebase_id': '/m/015p6'}, {'id': 290, 'name': 'Car', 'freebase_id': '/m/0k4j'}, {'id': 291, 'name': 'Shorts', 'freebase_id': '/m/01bfm9'}, {'id': 292, 'name': 'Woman', 'freebase_id': '/m/03bt1vf'}, {'id': 293, 'name': 'Platter', 'freebase_id': '/m/099ssp'}, {'id': 294, 'name': 'Tie', 'freebase_id': '/m/01rkbr'}, {'id': 295, 'name': 'Girl', 'freebase_id': '/m/05r655'}, {'id': 296, 'name': 'Skyscraper', 'freebase_id': '/m/079cl'}, {'id': 297, 'name': 'Person', 'freebase_id': '/m/01g317'}, {'id': 298, 'name': 'Flag', 'freebase_id': '/m/03120'}, {'id': 299, 'name': 'Jeans', 'freebase_id': '/m/0fly7'}, {'id': 300, 'name': 'Dress', 'freebase_id': '/m/01d40f'}], 'kitti': [{'id': 24, 'name': 'person'}, {'id': 25, 'name': 'rider'}, {'id': 26, 'name': 'car'}, {'id': 27, 'name': 'truck'}, {'id': 28, 'name': 'bus'}, {'id': 31, 'name': 'train'}, {'id': 32, 'name': 'motorcycle'}, {'id': 33, 'name': 'bicycle'}], 'wilddash': [{'id': 1, 'name': 'ego vehicle'}, {'id': 24, 'name': 'person'}, {'id': 25, 'name': 'rider'}, {'id': 26, 'name': 'car'}, {'id': 27, 'name': 'truck'}, {'id': 28, 'name': 'bus'}, {'id': 29, 'name': 'caravan'}, {'id': 30, 'name': 'trailer'}, {'id': 31, 'name': 'train'}, {'id': 32, 'name': 'motorcycle'}, {'id': 33, 'name': 'bicycle'}, {'id': 34, 'name': 'pickup'}, {'id': 35, 'name': 'van'}]}
|
load("@io_bazel_rules_dotnet//dotnet:defs.bzl", "net_gac4", "nuget_package")
def packages():
nuget_package(
name = "npgsql",
package = "npgsql",
version = "4.0.3",
# sha256 = "4e1f91eb9f0c3dfb8e029edbc325175cd202455df3641bc16155ef422b6bfd6f",
core_lib = {
"netstandard2.0": "lib/netstandard2.0/Npgsql.dll",
},
net_lib = {
"net451": "lib/net451/Npgsql.dll",
},
mono_lib = "lib/net45/Npgsql.dll",
core_deps = {},
net_deps = {},
mono_deps = [],
core_files = {
"netstandard2.0": [
"lib/netstandard2.0/Npgsql.dll",
"lib/netstandard2.0/Npgsql.pdb",
"lib/netstandard2.0/Npgsql.xml",
],
},
net_files = {
"net451": [
"lib/net451/Npgsql.dll",
"lib/net451/Npgsql.pdb",
"lib/net451/Npgsql.xml",
],
},
mono_files = [
"lib/net45/Npgsql.dll",
"lib/net45/Npgsql.pdb",
"lib/net45/Npgsql.xml",
],
)
net_gac4(
name = "System.ComponentModel.DataAnnotations",
version = "4.0.0.0",
token = "31bf3856ad364e35",
)
### Generated by the tool
nuget_package(
name = "commandlineparser",
package = "commandlineparser",
version = "2.3.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.5/CommandLine.dll",
"netcoreapp2.1": "lib/netstandard1.5/CommandLine.dll",
},
net_lib = {
"net45": "lib/net45/CommandLine.dll",
"net451": "lib/net45/CommandLine.dll",
"net452": "lib/net45/CommandLine.dll",
"net46": "lib/net45/CommandLine.dll",
"net461": "lib/net45/CommandLine.dll",
"net462": "lib/net45/CommandLine.dll",
"net47": "lib/net45/CommandLine.dll",
"net471": "lib/net45/CommandLine.dll",
"net472": "lib/net45/CommandLine.dll",
"netstandard1.5": "lib/netstandard1.5/CommandLine.dll",
"netstandard1.6": "lib/netstandard1.5/CommandLine.dll",
"netstandard2.0": "lib/netstandard1.5/CommandLine.dll",
},
mono_lib = "lib/net45/CommandLine.dll",
net_deps = {
"net461": [
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.collections.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.console.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.diagnostics.debug.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.globalization.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.io.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.linq.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.linq.expressions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.reflection.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.reflection.extensions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.reflection.typeextensions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.resources.resourcemanager.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.runtime.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.runtime.extensions.dll",
],
"net462": [
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.collections.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.console.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.diagnostics.debug.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.globalization.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.io.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.linq.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.linq.expressions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.reflection.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.reflection.extensions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.reflection.typeextensions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.resources.resourcemanager.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.runtime.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.runtime.extensions.dll",
],
"net47": [
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.collections.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.console.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.diagnostics.debug.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.globalization.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.io.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.linq.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.linq.expressions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.reflection.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.reflection.extensions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.reflection.typeextensions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.resources.resourcemanager.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.runtime.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.runtime.extensions.dll",
],
"net471": [
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.collections.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.console.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.diagnostics.debug.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.globalization.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.io.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.linq.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.linq.expressions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.reflection.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.reflection.extensions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.reflection.typeextensions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.resources.resourcemanager.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.runtime.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.runtime.extensions.dll",
],
"net472": [
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.collections.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.console.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.diagnostics.debug.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.globalization.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.io.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.linq.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.linq.expressions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.reflection.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.reflection.extensions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.reflection.typeextensions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.resources.resourcemanager.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.runtime.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.runtime.extensions.dll",
],
},
mono_deps = [
"@io_bazel_rules_dotnet//dotnet/stdlib:system.collections.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib:system.console.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib:system.diagnostics.debug.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib:system.globalization.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib:system.io.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib:system.linq.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib:system.linq.expressions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib:system.reflection.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib:system.reflection.extensions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib:system.reflection.typeextensions.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib:system.resources.resourcemanager.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib:system.runtime.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib:system.runtime.extensions.dll",
],
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.5/CommandLine.dll",
"lib/netstandard1.5/CommandLine.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.5/CommandLine.dll",
"lib/netstandard1.5/CommandLine.xml",
],
},
net_files = {
"net45": [
"lib/net45/CommandLine.dll",
"lib/net45/CommandLine.XML",
],
"net451": [
"lib/net45/CommandLine.dll",
"lib/net45/CommandLine.XML",
],
"net452": [
"lib/net45/CommandLine.dll",
"lib/net45/CommandLine.XML",
],
"net46": [
"lib/net45/CommandLine.dll",
"lib/net45/CommandLine.XML",
],
"net461": [
"lib/net45/CommandLine.dll",
"lib/net45/CommandLine.XML",
],
"net462": [
"lib/net45/CommandLine.dll",
"lib/net45/CommandLine.XML",
],
"net47": [
"lib/net45/CommandLine.dll",
"lib/net45/CommandLine.XML",
],
"net471": [
"lib/net45/CommandLine.dll",
"lib/net45/CommandLine.XML",
],
"net472": [
"lib/net45/CommandLine.dll",
"lib/net45/CommandLine.XML",
],
"netstandard1.5": [
"lib/netstandard1.5/CommandLine.dll",
"lib/netstandard1.5/CommandLine.xml",
],
"netstandard1.6": [
"lib/netstandard1.5/CommandLine.dll",
"lib/netstandard1.5/CommandLine.xml",
],
"netstandard2.0": [
"lib/netstandard1.5/CommandLine.dll",
"lib/netstandard1.5/CommandLine.xml",
],
},
mono_files = [
"lib/net45/CommandLine.dll",
"lib/net45/CommandLine.XML",
],
)
nuget_package(
name = "newtonsoft.json",
package = "newtonsoft.json",
version = "11.0.2",
core_lib = {
"netcoreapp2.0": "lib/netstandard2.0/Newtonsoft.Json.dll",
"netcoreapp2.1": "lib/netstandard2.0/Newtonsoft.Json.dll",
},
net_lib = {
"net45": "lib/net45/Newtonsoft.Json.dll",
"net451": "lib/net45/Newtonsoft.Json.dll",
"net452": "lib/net45/Newtonsoft.Json.dll",
"net46": "lib/net45/Newtonsoft.Json.dll",
"net461": "lib/net45/Newtonsoft.Json.dll",
"net462": "lib/net45/Newtonsoft.Json.dll",
"net47": "lib/net45/Newtonsoft.Json.dll",
"net471": "lib/net45/Newtonsoft.Json.dll",
"net472": "lib/net45/Newtonsoft.Json.dll",
"netstandard1.0": "lib/netstandard1.0/Newtonsoft.Json.dll",
"netstandard1.1": "lib/netstandard1.0/Newtonsoft.Json.dll",
"netstandard1.2": "lib/netstandard1.0/Newtonsoft.Json.dll",
"netstandard1.3": "lib/netstandard1.3/Newtonsoft.Json.dll",
"netstandard1.4": "lib/netstandard1.3/Newtonsoft.Json.dll",
"netstandard1.5": "lib/netstandard1.3/Newtonsoft.Json.dll",
"netstandard1.6": "lib/netstandard1.3/Newtonsoft.Json.dll",
"netstandard2.0": "lib/netstandard2.0/Newtonsoft.Json.dll",
},
mono_lib = "lib/net45/Newtonsoft.Json.dll",
core_files = {
"netcoreapp2.0": [
"lib/netstandard2.0/Newtonsoft.Json.dll",
"lib/netstandard2.0/Newtonsoft.Json.xml",
],
"netcoreapp2.1": [
"lib/netstandard2.0/Newtonsoft.Json.dll",
"lib/netstandard2.0/Newtonsoft.Json.xml",
],
},
net_files = {
"net45": [
"lib/net45/Newtonsoft.Json.dll",
"lib/net45/Newtonsoft.Json.xml",
],
"net451": [
"lib/net45/Newtonsoft.Json.dll",
"lib/net45/Newtonsoft.Json.xml",
],
"net452": [
"lib/net45/Newtonsoft.Json.dll",
"lib/net45/Newtonsoft.Json.xml",
],
"net46": [
"lib/net45/Newtonsoft.Json.dll",
"lib/net45/Newtonsoft.Json.xml",
],
"net461": [
"lib/net45/Newtonsoft.Json.dll",
"lib/net45/Newtonsoft.Json.xml",
],
"net462": [
"lib/net45/Newtonsoft.Json.dll",
"lib/net45/Newtonsoft.Json.xml",
],
"net47": [
"lib/net45/Newtonsoft.Json.dll",
"lib/net45/Newtonsoft.Json.xml",
],
"net471": [
"lib/net45/Newtonsoft.Json.dll",
"lib/net45/Newtonsoft.Json.xml",
],
"net472": [
"lib/net45/Newtonsoft.Json.dll",
"lib/net45/Newtonsoft.Json.xml",
],
"netstandard1.0": [
"lib/netstandard1.0/Newtonsoft.Json.dll",
"lib/netstandard1.0/Newtonsoft.Json.xml",
],
"netstandard1.1": [
"lib/netstandard1.0/Newtonsoft.Json.dll",
"lib/netstandard1.0/Newtonsoft.Json.xml",
],
"netstandard1.2": [
"lib/netstandard1.0/Newtonsoft.Json.dll",
"lib/netstandard1.0/Newtonsoft.Json.xml",
],
"netstandard1.3": [
"lib/netstandard1.3/Newtonsoft.Json.dll",
"lib/netstandard1.3/Newtonsoft.Json.xml",
],
"netstandard1.4": [
"lib/netstandard1.3/Newtonsoft.Json.dll",
"lib/netstandard1.3/Newtonsoft.Json.xml",
],
"netstandard1.5": [
"lib/netstandard1.3/Newtonsoft.Json.dll",
"lib/netstandard1.3/Newtonsoft.Json.xml",
],
"netstandard1.6": [
"lib/netstandard1.3/Newtonsoft.Json.dll",
"lib/netstandard1.3/Newtonsoft.Json.xml",
],
"netstandard2.0": [
"lib/netstandard2.0/Newtonsoft.Json.dll",
"lib/netstandard2.0/Newtonsoft.Json.xml",
],
},
mono_files = [
"lib/net45/Newtonsoft.Json.dll",
"lib/net45/Newtonsoft.Json.xml",
],
)
nuget_package(
name = "nuget.frameworks",
package = "nuget.frameworks",
version = "4.8.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.6/NuGet.Frameworks.dll",
"netcoreapp2.1": "lib/netstandard1.6/NuGet.Frameworks.dll",
},
net_lib = {
"net45": "lib/net40/NuGet.Frameworks.dll",
"net451": "lib/net40/NuGet.Frameworks.dll",
"net452": "lib/net40/NuGet.Frameworks.dll",
"net46": "lib/net46/NuGet.Frameworks.dll",
"net461": "lib/net46/NuGet.Frameworks.dll",
"net462": "lib/net46/NuGet.Frameworks.dll",
"net47": "lib/net46/NuGet.Frameworks.dll",
"net471": "lib/net46/NuGet.Frameworks.dll",
"net472": "lib/net46/NuGet.Frameworks.dll",
"netstandard1.6": "lib/netstandard1.6/NuGet.Frameworks.dll",
"netstandard2.0": "lib/netstandard1.6/NuGet.Frameworks.dll",
},
mono_lib = "lib/net46/NuGet.Frameworks.dll",
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.6/NuGet.Frameworks.dll",
"lib/netstandard1.6/NuGet.Frameworks.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.6/NuGet.Frameworks.dll",
"lib/netstandard1.6/NuGet.Frameworks.xml",
],
},
net_files = {
"net45": [
"lib/net40/NuGet.Frameworks.dll",
"lib/net40/NuGet.Frameworks.xml",
],
"net451": [
"lib/net40/NuGet.Frameworks.dll",
"lib/net40/NuGet.Frameworks.xml",
],
"net452": [
"lib/net40/NuGet.Frameworks.dll",
"lib/net40/NuGet.Frameworks.xml",
],
"net46": [
"lib/net46/NuGet.Frameworks.dll",
"lib/net46/NuGet.Frameworks.xml",
],
"net461": [
"lib/net46/NuGet.Frameworks.dll",
"lib/net46/NuGet.Frameworks.xml",
],
"net462": [
"lib/net46/NuGet.Frameworks.dll",
"lib/net46/NuGet.Frameworks.xml",
],
"net47": [
"lib/net46/NuGet.Frameworks.dll",
"lib/net46/NuGet.Frameworks.xml",
],
"net471": [
"lib/net46/NuGet.Frameworks.dll",
"lib/net46/NuGet.Frameworks.xml",
],
"net472": [
"lib/net46/NuGet.Frameworks.dll",
"lib/net46/NuGet.Frameworks.xml",
],
"netstandard1.6": [
"lib/netstandard1.6/NuGet.Frameworks.dll",
"lib/netstandard1.6/NuGet.Frameworks.xml",
],
"netstandard2.0": [
"lib/netstandard1.6/NuGet.Frameworks.dll",
"lib/netstandard1.6/NuGet.Frameworks.xml",
],
},
mono_files = [
"lib/net46/NuGet.Frameworks.dll",
"lib/net46/NuGet.Frameworks.xml",
],
)
nuget_package(
name = "nuget.common",
package = "nuget.common",
version = "4.8.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.6/NuGet.Common.dll",
"netcoreapp2.1": "lib/netstandard1.6/NuGet.Common.dll",
},
net_lib = {
"net46": "lib/net46/NuGet.Common.dll",
"net461": "lib/net46/NuGet.Common.dll",
"net462": "lib/net46/NuGet.Common.dll",
"net47": "lib/net46/NuGet.Common.dll",
"net471": "lib/net46/NuGet.Common.dll",
"net472": "lib/net46/NuGet.Common.dll",
"netstandard1.6": "lib/netstandard1.6/NuGet.Common.dll",
"netstandard2.0": "lib/netstandard1.6/NuGet.Common.dll",
},
mono_lib = "lib/net46/NuGet.Common.dll",
core_deps = {
"net46": [
"@nuget.frameworks//:net46_net",
],
"net461": [
"@nuget.frameworks//:net461_net",
],
"net462": [
"@nuget.frameworks//:net462_net",
],
"net47": [
"@nuget.frameworks//:net47_net",
],
"net471": [
"@nuget.frameworks//:net471_net",
],
"net472": [
"@nuget.frameworks//:net472_net",
],
"netstandard1.6": [
"@nuget.frameworks//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.frameworks//:netstandard2.0_net",
],
},
net_deps = {
"net46": [
"@nuget.frameworks//:net46_net",
],
"net461": [
"@nuget.frameworks//:net461_net",
],
"net462": [
"@nuget.frameworks//:net462_net",
],
"net47": [
"@nuget.frameworks//:net47_net",
],
"net471": [
"@nuget.frameworks//:net471_net",
],
"net472": [
"@nuget.frameworks//:net472_net",
],
"netstandard1.6": [
"@nuget.frameworks//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.frameworks//:netstandard2.0_net",
],
},
mono_deps = [
"@nuget.frameworks//:mono",
],
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.6/NuGet.Common.dll",
"lib/netstandard1.6/NuGet.Common.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.6/NuGet.Common.dll",
"lib/netstandard1.6/NuGet.Common.xml",
],
},
net_files = {
"net46": [
"lib/net46/NuGet.Common.dll",
"lib/net46/NuGet.Common.xml",
],
"net461": [
"lib/net46/NuGet.Common.dll",
"lib/net46/NuGet.Common.xml",
],
"net462": [
"lib/net46/NuGet.Common.dll",
"lib/net46/NuGet.Common.xml",
],
"net47": [
"lib/net46/NuGet.Common.dll",
"lib/net46/NuGet.Common.xml",
],
"net471": [
"lib/net46/NuGet.Common.dll",
"lib/net46/NuGet.Common.xml",
],
"net472": [
"lib/net46/NuGet.Common.dll",
"lib/net46/NuGet.Common.xml",
],
"netstandard1.6": [
"lib/netstandard1.6/NuGet.Common.dll",
"lib/netstandard1.6/NuGet.Common.xml",
],
"netstandard2.0": [
"lib/netstandard1.6/NuGet.Common.dll",
"lib/netstandard1.6/NuGet.Common.xml",
],
},
mono_files = [
"lib/net46/NuGet.Common.dll",
"lib/net46/NuGet.Common.xml",
],
)
nuget_package(
name = "nuget.configuration",
package = "nuget.configuration",
version = "4.8.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.6/NuGet.Configuration.dll",
"netcoreapp2.1": "lib/netstandard1.6/NuGet.Configuration.dll",
},
net_lib = {
"net46": "lib/net46/NuGet.Configuration.dll",
"net461": "lib/net46/NuGet.Configuration.dll",
"net462": "lib/net46/NuGet.Configuration.dll",
"net47": "lib/net46/NuGet.Configuration.dll",
"net471": "lib/net46/NuGet.Configuration.dll",
"net472": "lib/net46/NuGet.Configuration.dll",
"netstandard1.6": "lib/netstandard1.6/NuGet.Configuration.dll",
"netstandard2.0": "lib/netstandard1.6/NuGet.Configuration.dll",
},
mono_lib = "lib/net46/NuGet.Configuration.dll",
core_deps = {
"net46": [
"@nuget.common//:net46_net",
],
"net461": [
"@nuget.common//:net461_net",
],
"net462": [
"@nuget.common//:net462_net",
],
"net47": [
"@nuget.common//:net47_net",
],
"net471": [
"@nuget.common//:net471_net",
],
"net472": [
"@nuget.common//:net472_net",
],
"netstandard1.6": [
"@nuget.common//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.common//:netstandard2.0_net",
],
},
net_deps = {
"net46": [
"@nuget.common//:net46_net",
],
"net461": [
"@nuget.common//:net461_net",
],
"net462": [
"@nuget.common//:net462_net",
],
"net47": [
"@nuget.common//:net47_net",
],
"net471": [
"@nuget.common//:net471_net",
],
"net472": [
"@nuget.common//:net472_net",
],
"netstandard1.6": [
"@nuget.common//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.common//:netstandard2.0_net",
],
},
mono_deps = [
"@nuget.common//:mono",
],
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.6/NuGet.Configuration.dll",
"lib/netstandard1.6/NuGet.Configuration.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.6/NuGet.Configuration.dll",
"lib/netstandard1.6/NuGet.Configuration.xml",
],
},
net_files = {
"net46": [
"lib/net46/NuGet.Configuration.dll",
"lib/net46/NuGet.Configuration.xml",
],
"net461": [
"lib/net46/NuGet.Configuration.dll",
"lib/net46/NuGet.Configuration.xml",
],
"net462": [
"lib/net46/NuGet.Configuration.dll",
"lib/net46/NuGet.Configuration.xml",
],
"net47": [
"lib/net46/NuGet.Configuration.dll",
"lib/net46/NuGet.Configuration.xml",
],
"net471": [
"lib/net46/NuGet.Configuration.dll",
"lib/net46/NuGet.Configuration.xml",
],
"net472": [
"lib/net46/NuGet.Configuration.dll",
"lib/net46/NuGet.Configuration.xml",
],
"netstandard1.6": [
"lib/netstandard1.6/NuGet.Configuration.dll",
"lib/netstandard1.6/NuGet.Configuration.xml",
],
"netstandard2.0": [
"lib/netstandard1.6/NuGet.Configuration.dll",
"lib/netstandard1.6/NuGet.Configuration.xml",
],
},
mono_files = [
"lib/net46/NuGet.Configuration.dll",
"lib/net46/NuGet.Configuration.xml",
],
)
nuget_package(
name = "nuget.versioning",
package = "nuget.versioning",
version = "4.8.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.6/NuGet.Versioning.dll",
"netcoreapp2.1": "lib/netstandard1.6/NuGet.Versioning.dll",
},
net_lib = {
"net46": "lib/net46/NuGet.Versioning.dll",
"net461": "lib/net46/NuGet.Versioning.dll",
"net462": "lib/net46/NuGet.Versioning.dll",
"net47": "lib/net46/NuGet.Versioning.dll",
"net471": "lib/net46/NuGet.Versioning.dll",
"net472": "lib/net46/NuGet.Versioning.dll",
"netstandard1.6": "lib/netstandard1.6/NuGet.Versioning.dll",
"netstandard2.0": "lib/netstandard1.6/NuGet.Versioning.dll",
},
mono_lib = "lib/net46/NuGet.Versioning.dll",
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.6/NuGet.Versioning.dll",
"lib/netstandard1.6/NuGet.Versioning.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.6/NuGet.Versioning.dll",
"lib/netstandard1.6/NuGet.Versioning.xml",
],
},
net_files = {
"net46": [
"lib/net46/NuGet.Versioning.dll",
"lib/net46/NuGet.Versioning.xml",
],
"net461": [
"lib/net46/NuGet.Versioning.dll",
"lib/net46/NuGet.Versioning.xml",
],
"net462": [
"lib/net46/NuGet.Versioning.dll",
"lib/net46/NuGet.Versioning.xml",
],
"net47": [
"lib/net46/NuGet.Versioning.dll",
"lib/net46/NuGet.Versioning.xml",
],
"net471": [
"lib/net46/NuGet.Versioning.dll",
"lib/net46/NuGet.Versioning.xml",
],
"net472": [
"lib/net46/NuGet.Versioning.dll",
"lib/net46/NuGet.Versioning.xml",
],
"netstandard1.6": [
"lib/netstandard1.6/NuGet.Versioning.dll",
"lib/netstandard1.6/NuGet.Versioning.xml",
],
"netstandard2.0": [
"lib/netstandard1.6/NuGet.Versioning.dll",
"lib/netstandard1.6/NuGet.Versioning.xml",
],
},
mono_files = [
"lib/net46/NuGet.Versioning.dll",
"lib/net46/NuGet.Versioning.xml",
],
)
nuget_package(
name = "nuget.packaging.core",
package = "nuget.packaging.core",
version = "4.8.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.6/NuGet.Packaging.Core.dll",
"netcoreapp2.1": "lib/netstandard1.6/NuGet.Packaging.Core.dll",
},
net_lib = {
"net46": "lib/net46/NuGet.Packaging.Core.dll",
"net461": "lib/net46/NuGet.Packaging.Core.dll",
"net462": "lib/net46/NuGet.Packaging.Core.dll",
"net47": "lib/net46/NuGet.Packaging.Core.dll",
"net471": "lib/net46/NuGet.Packaging.Core.dll",
"net472": "lib/net46/NuGet.Packaging.Core.dll",
"netstandard1.6": "lib/netstandard1.6/NuGet.Packaging.Core.dll",
"netstandard2.0": "lib/netstandard1.6/NuGet.Packaging.Core.dll",
},
mono_lib = "lib/net46/NuGet.Packaging.Core.dll",
core_deps = {
"net46": [
"@nuget.common//:net46_net",
"@nuget.versioning//:net46_net",
],
"net461": [
"@nuget.common//:net461_net",
"@nuget.versioning//:net461_net",
],
"net462": [
"@nuget.common//:net462_net",
"@nuget.versioning//:net462_net",
],
"net47": [
"@nuget.common//:net47_net",
"@nuget.versioning//:net47_net",
],
"net471": [
"@nuget.common//:net471_net",
"@nuget.versioning//:net471_net",
],
"net472": [
"@nuget.common//:net472_net",
"@nuget.versioning//:net472_net",
],
"netstandard1.6": [
"@nuget.common//:netstandard1.6_net",
"@nuget.versioning//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.common//:netstandard2.0_net",
"@nuget.versioning//:netstandard2.0_net",
],
},
net_deps = {
"net46": [
"@nuget.common//:net46_net",
"@nuget.versioning//:net46_net",
],
"net461": [
"@nuget.common//:net461_net",
"@nuget.versioning//:net461_net",
],
"net462": [
"@nuget.common//:net462_net",
"@nuget.versioning//:net462_net",
],
"net47": [
"@nuget.common//:net47_net",
"@nuget.versioning//:net47_net",
],
"net471": [
"@nuget.common//:net471_net",
"@nuget.versioning//:net471_net",
],
"net472": [
"@nuget.common//:net472_net",
"@nuget.versioning//:net472_net",
],
"netstandard1.6": [
"@nuget.common//:netstandard1.6_net",
"@nuget.versioning//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.common//:netstandard2.0_net",
"@nuget.versioning//:netstandard2.0_net",
],
},
mono_deps = [
"@nuget.common//:mono",
"@nuget.versioning//:mono",
],
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.6/NuGet.Packaging.Core.dll",
"lib/netstandard1.6/NuGet.Packaging.Core.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.6/NuGet.Packaging.Core.dll",
"lib/netstandard1.6/NuGet.Packaging.Core.xml",
],
},
net_files = {
"net46": [
"lib/net46/NuGet.Packaging.Core.dll",
"lib/net46/NuGet.Packaging.Core.xml",
],
"net461": [
"lib/net46/NuGet.Packaging.Core.dll",
"lib/net46/NuGet.Packaging.Core.xml",
],
"net462": [
"lib/net46/NuGet.Packaging.Core.dll",
"lib/net46/NuGet.Packaging.Core.xml",
],
"net47": [
"lib/net46/NuGet.Packaging.Core.dll",
"lib/net46/NuGet.Packaging.Core.xml",
],
"net471": [
"lib/net46/NuGet.Packaging.Core.dll",
"lib/net46/NuGet.Packaging.Core.xml",
],
"net472": [
"lib/net46/NuGet.Packaging.Core.dll",
"lib/net46/NuGet.Packaging.Core.xml",
],
"netstandard1.6": [
"lib/netstandard1.6/NuGet.Packaging.Core.dll",
"lib/netstandard1.6/NuGet.Packaging.Core.xml",
],
"netstandard2.0": [
"lib/netstandard1.6/NuGet.Packaging.Core.dll",
"lib/netstandard1.6/NuGet.Packaging.Core.xml",
],
},
mono_files = [
"lib/net46/NuGet.Packaging.Core.dll",
"lib/net46/NuGet.Packaging.Core.xml",
],
)
nuget_package(
name = "nuget.packaging",
package = "nuget.packaging",
version = "4.8.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.6/NuGet.Packaging.dll",
"netcoreapp2.1": "lib/netstandard1.6/NuGet.Packaging.dll",
},
net_lib = {
"net46": "lib/net46/NuGet.Packaging.dll",
"net461": "lib/net46/NuGet.Packaging.dll",
"net462": "lib/net46/NuGet.Packaging.dll",
"net47": "lib/net46/NuGet.Packaging.dll",
"net471": "lib/net46/NuGet.Packaging.dll",
"net472": "lib/net46/NuGet.Packaging.dll",
"netstandard1.6": "lib/netstandard1.6/NuGet.Packaging.dll",
"netstandard2.0": "lib/netstandard1.6/NuGet.Packaging.dll",
},
mono_lib = "lib/net46/NuGet.Packaging.dll",
core_deps = {
"net46": [
"@nuget.packaging.core//:net46_net",
"@newtonsoft.json//:net46_net",
],
"net461": [
"@nuget.packaging.core//:net461_net",
"@newtonsoft.json//:net461_net",
],
"net462": [
"@nuget.packaging.core//:net462_net",
"@newtonsoft.json//:net462_net",
],
"net47": [
"@nuget.packaging.core//:net47_net",
"@newtonsoft.json//:net47_net",
],
"net471": [
"@nuget.packaging.core//:net471_net",
"@newtonsoft.json//:net471_net",
],
"net472": [
"@nuget.packaging.core//:net472_net",
"@newtonsoft.json//:net472_net",
],
"netstandard1.6": [
"@nuget.packaging.core//:netstandard1.6_net",
"@newtonsoft.json//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.packaging.core//:netstandard2.0_net",
"@newtonsoft.json//:netstandard2.0_net",
],
},
net_deps = {
"net46": [
"@nuget.packaging.core//:net46_net",
"@newtonsoft.json//:net46_net",
],
"net461": [
"@nuget.packaging.core//:net461_net",
"@newtonsoft.json//:net461_net",
],
"net462": [
"@nuget.packaging.core//:net462_net",
"@newtonsoft.json//:net462_net",
],
"net47": [
"@nuget.packaging.core//:net47_net",
"@newtonsoft.json//:net47_net",
],
"net471": [
"@nuget.packaging.core//:net471_net",
"@newtonsoft.json//:net471_net",
],
"net472": [
"@nuget.packaging.core//:net472_net",
"@newtonsoft.json//:net472_net",
],
"netstandard1.6": [
"@nuget.packaging.core//:netstandard1.6_net",
"@newtonsoft.json//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.packaging.core//:netstandard2.0_net",
"@newtonsoft.json//:netstandard2.0_net",
],
},
mono_deps = [
"@nuget.packaging.core//:mono",
"@newtonsoft.json//:mono",
],
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.6/NuGet.Packaging.dll",
"lib/netstandard1.6/NuGet.Packaging.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.6/NuGet.Packaging.dll",
"lib/netstandard1.6/NuGet.Packaging.xml",
],
},
net_files = {
"net46": [
"lib/net46/NuGet.Packaging.dll",
"lib/net46/NuGet.Packaging.xml",
],
"net461": [
"lib/net46/NuGet.Packaging.dll",
"lib/net46/NuGet.Packaging.xml",
],
"net462": [
"lib/net46/NuGet.Packaging.dll",
"lib/net46/NuGet.Packaging.xml",
],
"net47": [
"lib/net46/NuGet.Packaging.dll",
"lib/net46/NuGet.Packaging.xml",
],
"net471": [
"lib/net46/NuGet.Packaging.dll",
"lib/net46/NuGet.Packaging.xml",
],
"net472": [
"lib/net46/NuGet.Packaging.dll",
"lib/net46/NuGet.Packaging.xml",
],
"netstandard1.6": [
"lib/netstandard1.6/NuGet.Packaging.dll",
"lib/netstandard1.6/NuGet.Packaging.xml",
],
"netstandard2.0": [
"lib/netstandard1.6/NuGet.Packaging.dll",
"lib/netstandard1.6/NuGet.Packaging.xml",
],
},
mono_files = [
"lib/net46/NuGet.Packaging.dll",
"lib/net46/NuGet.Packaging.xml",
],
)
nuget_package(
name = "nuget.protocol",
package = "nuget.protocol",
version = "4.8.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.6/NuGet.Protocol.dll",
"netcoreapp2.1": "lib/netstandard1.6/NuGet.Protocol.dll",
},
net_lib = {
"net46": "lib/net46/NuGet.Protocol.dll",
"net461": "lib/net46/NuGet.Protocol.dll",
"net462": "lib/net46/NuGet.Protocol.dll",
"net47": "lib/net46/NuGet.Protocol.dll",
"net471": "lib/net46/NuGet.Protocol.dll",
"net472": "lib/net46/NuGet.Protocol.dll",
"netstandard1.6": "lib/netstandard1.6/NuGet.Protocol.dll",
"netstandard2.0": "lib/netstandard1.6/NuGet.Protocol.dll",
},
mono_lib = "lib/net46/NuGet.Protocol.dll",
core_deps = {
"net46": [
"@nuget.configuration//:net46_net",
"@nuget.packaging//:net46_net",
],
"net461": [
"@nuget.configuration//:net461_net",
"@nuget.packaging//:net461_net",
],
"net462": [
"@nuget.configuration//:net462_net",
"@nuget.packaging//:net462_net",
],
"net47": [
"@nuget.configuration//:net47_net",
"@nuget.packaging//:net47_net",
],
"net471": [
"@nuget.configuration//:net471_net",
"@nuget.packaging//:net471_net",
],
"net472": [
"@nuget.configuration//:net472_net",
"@nuget.packaging//:net472_net",
],
"netstandard1.6": [
"@nuget.configuration//:netstandard1.6_net",
"@nuget.packaging//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.configuration//:netstandard2.0_net",
"@nuget.packaging//:netstandard2.0_net",
],
},
net_deps = {
"net46": [
"@nuget.configuration//:net46_net",
"@nuget.packaging//:net46_net",
],
"net461": [
"@nuget.configuration//:net461_net",
"@nuget.packaging//:net461_net",
],
"net462": [
"@nuget.configuration//:net462_net",
"@nuget.packaging//:net462_net",
],
"net47": [
"@nuget.configuration//:net47_net",
"@nuget.packaging//:net47_net",
],
"net471": [
"@nuget.configuration//:net471_net",
"@nuget.packaging//:net471_net",
],
"net472": [
"@nuget.configuration//:net472_net",
"@nuget.packaging//:net472_net",
],
"netstandard1.6": [
"@nuget.configuration//:netstandard1.6_net",
"@nuget.packaging//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.configuration//:netstandard2.0_net",
"@nuget.packaging//:netstandard2.0_net",
],
},
mono_deps = [
"@nuget.configuration//:mono",
"@nuget.packaging//:mono",
],
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.6/NuGet.Protocol.dll",
"lib/netstandard1.6/NuGet.Protocol.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.6/NuGet.Protocol.dll",
"lib/netstandard1.6/NuGet.Protocol.xml",
],
},
net_files = {
"net46": [
"lib/net46/NuGet.Protocol.dll",
"lib/net46/NuGet.Protocol.xml",
],
"net461": [
"lib/net46/NuGet.Protocol.dll",
"lib/net46/NuGet.Protocol.xml",
],
"net462": [
"lib/net46/NuGet.Protocol.dll",
"lib/net46/NuGet.Protocol.xml",
],
"net47": [
"lib/net46/NuGet.Protocol.dll",
"lib/net46/NuGet.Protocol.xml",
],
"net471": [
"lib/net46/NuGet.Protocol.dll",
"lib/net46/NuGet.Protocol.xml",
],
"net472": [
"lib/net46/NuGet.Protocol.dll",
"lib/net46/NuGet.Protocol.xml",
],
"netstandard1.6": [
"lib/netstandard1.6/NuGet.Protocol.dll",
"lib/netstandard1.6/NuGet.Protocol.xml",
],
"netstandard2.0": [
"lib/netstandard1.6/NuGet.Protocol.dll",
"lib/netstandard1.6/NuGet.Protocol.xml",
],
},
mono_files = [
"lib/net46/NuGet.Protocol.dll",
"lib/net46/NuGet.Protocol.xml",
],
)
nuget_package(
name = "nuget.credentials",
package = "nuget.credentials",
version = "4.8.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.6/NuGet.Credentials.dll",
"netcoreapp2.1": "lib/netstandard1.6/NuGet.Credentials.dll",
},
net_lib = {
"net46": "lib/net46/NuGet.Credentials.dll",
"net461": "lib/net46/NuGet.Credentials.dll",
"net462": "lib/net46/NuGet.Credentials.dll",
"net47": "lib/net46/NuGet.Credentials.dll",
"net471": "lib/net46/NuGet.Credentials.dll",
"net472": "lib/net46/NuGet.Credentials.dll",
"netstandard1.6": "lib/netstandard1.6/NuGet.Credentials.dll",
"netstandard2.0": "lib/netstandard1.6/NuGet.Credentials.dll",
},
mono_lib = "lib/net46/NuGet.Credentials.dll",
core_deps = {
"net46": [
"@nuget.protocol//:net46_net",
],
"net461": [
"@nuget.protocol//:net461_net",
],
"net462": [
"@nuget.protocol//:net462_net",
],
"net47": [
"@nuget.protocol//:net47_net",
],
"net471": [
"@nuget.protocol//:net471_net",
],
"net472": [
"@nuget.protocol//:net472_net",
],
"netstandard1.6": [
"@nuget.protocol//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.protocol//:netstandard2.0_net",
],
},
net_deps = {
"net46": [
"@nuget.protocol//:net46_net",
],
"net461": [
"@nuget.protocol//:net461_net",
],
"net462": [
"@nuget.protocol//:net462_net",
],
"net47": [
"@nuget.protocol//:net47_net",
],
"net471": [
"@nuget.protocol//:net471_net",
],
"net472": [
"@nuget.protocol//:net472_net",
],
"netstandard1.6": [
"@nuget.protocol//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.protocol//:netstandard2.0_net",
],
},
mono_deps = [
"@nuget.protocol//:mono",
],
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.6/NuGet.Credentials.dll",
],
"netcoreapp2.1": [
"lib/netstandard1.6/NuGet.Credentials.dll",
],
},
net_files = {
"net46": [
"lib/net46/NuGet.Credentials.dll",
],
"net461": [
"lib/net46/NuGet.Credentials.dll",
],
"net462": [
"lib/net46/NuGet.Credentials.dll",
],
"net47": [
"lib/net46/NuGet.Credentials.dll",
],
"net471": [
"lib/net46/NuGet.Credentials.dll",
],
"net472": [
"lib/net46/NuGet.Credentials.dll",
],
"netstandard1.6": [
"lib/netstandard1.6/NuGet.Credentials.dll",
],
"netstandard2.0": [
"lib/netstandard1.6/NuGet.Credentials.dll",
],
},
mono_files = [
"lib/net46/NuGet.Credentials.dll",
],
)
nuget_package(
name = "nuget.resolver",
package = "nuget.resolver",
version = "4.8.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.6/NuGet.Resolver.dll",
"netcoreapp2.1": "lib/netstandard1.6/NuGet.Resolver.dll",
},
net_lib = {
"net46": "lib/net46/NuGet.Resolver.dll",
"net461": "lib/net46/NuGet.Resolver.dll",
"net462": "lib/net46/NuGet.Resolver.dll",
"net47": "lib/net46/NuGet.Resolver.dll",
"net471": "lib/net46/NuGet.Resolver.dll",
"net472": "lib/net46/NuGet.Resolver.dll",
"netstandard1.6": "lib/netstandard1.6/NuGet.Resolver.dll",
"netstandard2.0": "lib/netstandard1.6/NuGet.Resolver.dll",
},
mono_lib = "lib/net46/NuGet.Resolver.dll",
core_deps = {
"net46": [
"@nuget.protocol//:net46_net",
],
"net461": [
"@nuget.protocol//:net461_net",
],
"net462": [
"@nuget.protocol//:net462_net",
],
"net47": [
"@nuget.protocol//:net47_net",
],
"net471": [
"@nuget.protocol//:net471_net",
],
"net472": [
"@nuget.protocol//:net472_net",
],
"netstandard1.6": [
"@nuget.protocol//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.protocol//:netstandard2.0_net",
],
},
net_deps = {
"net46": [
"@nuget.protocol//:net46_net",
],
"net461": [
"@nuget.protocol//:net461_net",
],
"net462": [
"@nuget.protocol//:net462_net",
],
"net47": [
"@nuget.protocol//:net47_net",
],
"net471": [
"@nuget.protocol//:net471_net",
],
"net472": [
"@nuget.protocol//:net472_net",
],
"netstandard1.6": [
"@nuget.protocol//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.protocol//:netstandard2.0_net",
],
},
mono_deps = [
"@nuget.protocol//:mono",
],
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.6/NuGet.Resolver.dll",
"lib/netstandard1.6/NuGet.Resolver.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.6/NuGet.Resolver.dll",
"lib/netstandard1.6/NuGet.Resolver.xml",
],
},
net_files = {
"net46": [
"lib/net46/NuGet.Resolver.dll",
"lib/net46/NuGet.Resolver.xml",
],
"net461": [
"lib/net46/NuGet.Resolver.dll",
"lib/net46/NuGet.Resolver.xml",
],
"net462": [
"lib/net46/NuGet.Resolver.dll",
"lib/net46/NuGet.Resolver.xml",
],
"net47": [
"lib/net46/NuGet.Resolver.dll",
"lib/net46/NuGet.Resolver.xml",
],
"net471": [
"lib/net46/NuGet.Resolver.dll",
"lib/net46/NuGet.Resolver.xml",
],
"net472": [
"lib/net46/NuGet.Resolver.dll",
"lib/net46/NuGet.Resolver.xml",
],
"netstandard1.6": [
"lib/netstandard1.6/NuGet.Resolver.dll",
"lib/netstandard1.6/NuGet.Resolver.xml",
],
"netstandard2.0": [
"lib/netstandard1.6/NuGet.Resolver.dll",
"lib/netstandard1.6/NuGet.Resolver.xml",
],
},
mono_files = [
"lib/net46/NuGet.Resolver.dll",
"lib/net46/NuGet.Resolver.xml",
],
)
nuget_package(
name = "nuget.librarymodel",
package = "nuget.librarymodel",
version = "4.8.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.6/NuGet.LibraryModel.dll",
"netcoreapp2.1": "lib/netstandard1.6/NuGet.LibraryModel.dll",
},
net_lib = {
"net46": "lib/net46/NuGet.LibraryModel.dll",
"net461": "lib/net46/NuGet.LibraryModel.dll",
"net462": "lib/net46/NuGet.LibraryModel.dll",
"net47": "lib/net46/NuGet.LibraryModel.dll",
"net471": "lib/net46/NuGet.LibraryModel.dll",
"net472": "lib/net46/NuGet.LibraryModel.dll",
"netstandard1.6": "lib/netstandard1.6/NuGet.LibraryModel.dll",
"netstandard2.0": "lib/netstandard1.6/NuGet.LibraryModel.dll",
},
mono_lib = "lib/net46/NuGet.LibraryModel.dll",
core_deps = {
"net46": [
"@nuget.common//:net46_net",
"@nuget.versioning//:net46_net",
],
"net461": [
"@nuget.common//:net461_net",
"@nuget.versioning//:net461_net",
],
"net462": [
"@nuget.common//:net462_net",
"@nuget.versioning//:net462_net",
],
"net47": [
"@nuget.common//:net47_net",
"@nuget.versioning//:net47_net",
],
"net471": [
"@nuget.common//:net471_net",
"@nuget.versioning//:net471_net",
],
"net472": [
"@nuget.common//:net472_net",
"@nuget.versioning//:net472_net",
],
"netstandard1.6": [
"@nuget.common//:netstandard1.6_net",
"@nuget.versioning//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.common//:netstandard2.0_net",
"@nuget.versioning//:netstandard2.0_net",
],
},
net_deps = {
"net46": [
"@nuget.common//:net46_net",
"@nuget.versioning//:net46_net",
],
"net461": [
"@nuget.common//:net461_net",
"@nuget.versioning//:net461_net",
],
"net462": [
"@nuget.common//:net462_net",
"@nuget.versioning//:net462_net",
],
"net47": [
"@nuget.common//:net47_net",
"@nuget.versioning//:net47_net",
],
"net471": [
"@nuget.common//:net471_net",
"@nuget.versioning//:net471_net",
],
"net472": [
"@nuget.common//:net472_net",
"@nuget.versioning//:net472_net",
],
"netstandard1.6": [
"@nuget.common//:netstandard1.6_net",
"@nuget.versioning//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.common//:netstandard2.0_net",
"@nuget.versioning//:netstandard2.0_net",
],
},
mono_deps = [
"@nuget.common//:mono",
"@nuget.versioning//:mono",
],
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.6/NuGet.LibraryModel.dll",
"lib/netstandard1.6/NuGet.LibraryModel.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.6/NuGet.LibraryModel.dll",
"lib/netstandard1.6/NuGet.LibraryModel.xml",
],
},
net_files = {
"net46": [
"lib/net46/NuGet.LibraryModel.dll",
"lib/net46/NuGet.LibraryModel.xml",
],
"net461": [
"lib/net46/NuGet.LibraryModel.dll",
"lib/net46/NuGet.LibraryModel.xml",
],
"net462": [
"lib/net46/NuGet.LibraryModel.dll",
"lib/net46/NuGet.LibraryModel.xml",
],
"net47": [
"lib/net46/NuGet.LibraryModel.dll",
"lib/net46/NuGet.LibraryModel.xml",
],
"net471": [
"lib/net46/NuGet.LibraryModel.dll",
"lib/net46/NuGet.LibraryModel.xml",
],
"net472": [
"lib/net46/NuGet.LibraryModel.dll",
"lib/net46/NuGet.LibraryModel.xml",
],
"netstandard1.6": [
"lib/netstandard1.6/NuGet.LibraryModel.dll",
"lib/netstandard1.6/NuGet.LibraryModel.xml",
],
"netstandard2.0": [
"lib/netstandard1.6/NuGet.LibraryModel.dll",
"lib/netstandard1.6/NuGet.LibraryModel.xml",
],
},
mono_files = [
"lib/net46/NuGet.LibraryModel.dll",
"lib/net46/NuGet.LibraryModel.xml",
],
)
nuget_package(
name = "nuget.dependencyresolver.core",
package = "nuget.dependencyresolver.core",
version = "4.8.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.6/NuGet.DependencyResolver.Core.dll",
"netcoreapp2.1": "lib/netstandard1.6/NuGet.DependencyResolver.Core.dll",
},
net_lib = {
"net46": "lib/net46/NuGet.DependencyResolver.Core.dll",
"net461": "lib/net46/NuGet.DependencyResolver.Core.dll",
"net462": "lib/net46/NuGet.DependencyResolver.Core.dll",
"net47": "lib/net46/NuGet.DependencyResolver.Core.dll",
"net471": "lib/net46/NuGet.DependencyResolver.Core.dll",
"net472": "lib/net46/NuGet.DependencyResolver.Core.dll",
"netstandard1.6": "lib/netstandard1.6/NuGet.DependencyResolver.Core.dll",
"netstandard2.0": "lib/netstandard1.6/NuGet.DependencyResolver.Core.dll",
},
mono_lib = "lib/net46/NuGet.DependencyResolver.Core.dll",
core_deps = {
"net46": [
"@nuget.librarymodel//:net46_net",
"@nuget.protocol//:net46_net",
],
"net461": [
"@nuget.librarymodel//:net461_net",
"@nuget.protocol//:net461_net",
],
"net462": [
"@nuget.librarymodel//:net462_net",
"@nuget.protocol//:net462_net",
],
"net47": [
"@nuget.librarymodel//:net47_net",
"@nuget.protocol//:net47_net",
],
"net471": [
"@nuget.librarymodel//:net471_net",
"@nuget.protocol//:net471_net",
],
"net472": [
"@nuget.librarymodel//:net472_net",
"@nuget.protocol//:net472_net",
],
"netstandard1.6": [
"@nuget.librarymodel//:netstandard1.6_net",
"@nuget.protocol//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.librarymodel//:netstandard2.0_net",
"@nuget.protocol//:netstandard2.0_net",
],
},
net_deps = {
"net46": [
"@nuget.librarymodel//:net46_net",
"@nuget.protocol//:net46_net",
],
"net461": [
"@nuget.librarymodel//:net461_net",
"@nuget.protocol//:net461_net",
],
"net462": [
"@nuget.librarymodel//:net462_net",
"@nuget.protocol//:net462_net",
],
"net47": [
"@nuget.librarymodel//:net47_net",
"@nuget.protocol//:net47_net",
],
"net471": [
"@nuget.librarymodel//:net471_net",
"@nuget.protocol//:net471_net",
],
"net472": [
"@nuget.librarymodel//:net472_net",
"@nuget.protocol//:net472_net",
],
"netstandard1.6": [
"@nuget.librarymodel//:netstandard1.6_net",
"@nuget.protocol//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.librarymodel//:netstandard2.0_net",
"@nuget.protocol//:netstandard2.0_net",
],
},
mono_deps = [
"@nuget.librarymodel//:mono",
"@nuget.protocol//:mono",
],
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.6/NuGet.DependencyResolver.Core.dll",
"lib/netstandard1.6/NuGet.DependencyResolver.Core.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.6/NuGet.DependencyResolver.Core.dll",
"lib/netstandard1.6/NuGet.DependencyResolver.Core.xml",
],
},
net_files = {
"net46": [
"lib/net46/NuGet.DependencyResolver.Core.dll",
"lib/net46/NuGet.DependencyResolver.Core.xml",
],
"net461": [
"lib/net46/NuGet.DependencyResolver.Core.dll",
"lib/net46/NuGet.DependencyResolver.Core.xml",
],
"net462": [
"lib/net46/NuGet.DependencyResolver.Core.dll",
"lib/net46/NuGet.DependencyResolver.Core.xml",
],
"net47": [
"lib/net46/NuGet.DependencyResolver.Core.dll",
"lib/net46/NuGet.DependencyResolver.Core.xml",
],
"net471": [
"lib/net46/NuGet.DependencyResolver.Core.dll",
"lib/net46/NuGet.DependencyResolver.Core.xml",
],
"net472": [
"lib/net46/NuGet.DependencyResolver.Core.dll",
"lib/net46/NuGet.DependencyResolver.Core.xml",
],
"netstandard1.6": [
"lib/netstandard1.6/NuGet.DependencyResolver.Core.dll",
"lib/netstandard1.6/NuGet.DependencyResolver.Core.xml",
],
"netstandard2.0": [
"lib/netstandard1.6/NuGet.DependencyResolver.Core.dll",
"lib/netstandard1.6/NuGet.DependencyResolver.Core.xml",
],
},
mono_files = [
"lib/net46/NuGet.DependencyResolver.Core.dll",
"lib/net46/NuGet.DependencyResolver.Core.xml",
],
)
nuget_package(
name = "nuget.projectmodel",
package = "nuget.projectmodel",
version = "4.8.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.6/NuGet.ProjectModel.dll",
"netcoreapp2.1": "lib/netstandard1.6/NuGet.ProjectModel.dll",
},
net_lib = {
"net46": "lib/net46/NuGet.ProjectModel.dll",
"net461": "lib/net46/NuGet.ProjectModel.dll",
"net462": "lib/net46/NuGet.ProjectModel.dll",
"net47": "lib/net46/NuGet.ProjectModel.dll",
"net471": "lib/net46/NuGet.ProjectModel.dll",
"net472": "lib/net46/NuGet.ProjectModel.dll",
"netstandard1.6": "lib/netstandard1.6/NuGet.ProjectModel.dll",
"netstandard2.0": "lib/netstandard1.6/NuGet.ProjectModel.dll",
},
mono_lib = "lib/net46/NuGet.ProjectModel.dll",
core_deps = {
"net46": [
"@nuget.dependencyresolver.core//:net46_net",
],
"net461": [
"@nuget.dependencyresolver.core//:net461_net",
],
"net462": [
"@nuget.dependencyresolver.core//:net462_net",
],
"net47": [
"@nuget.dependencyresolver.core//:net47_net",
],
"net471": [
"@nuget.dependencyresolver.core//:net471_net",
],
"net472": [
"@nuget.dependencyresolver.core//:net472_net",
],
"netstandard1.6": [
"@nuget.dependencyresolver.core//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.dependencyresolver.core//:netstandard2.0_net",
],
},
net_deps = {
"net46": [
"@nuget.dependencyresolver.core//:net46_net",
],
"net461": [
"@nuget.dependencyresolver.core//:net461_net",
],
"net462": [
"@nuget.dependencyresolver.core//:net462_net",
],
"net47": [
"@nuget.dependencyresolver.core//:net47_net",
],
"net471": [
"@nuget.dependencyresolver.core//:net471_net",
],
"net472": [
"@nuget.dependencyresolver.core//:net472_net",
],
"netstandard1.6": [
"@nuget.dependencyresolver.core//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.dependencyresolver.core//:netstandard2.0_net",
],
},
mono_deps = [
"@nuget.dependencyresolver.core//:mono",
],
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.6/NuGet.ProjectModel.dll",
"lib/netstandard1.6/NuGet.ProjectModel.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.6/NuGet.ProjectModel.dll",
"lib/netstandard1.6/NuGet.ProjectModel.xml",
],
},
net_files = {
"net46": [
"lib/net46/NuGet.ProjectModel.dll",
"lib/net46/NuGet.ProjectModel.xml",
],
"net461": [
"lib/net46/NuGet.ProjectModel.dll",
"lib/net46/NuGet.ProjectModel.xml",
],
"net462": [
"lib/net46/NuGet.ProjectModel.dll",
"lib/net46/NuGet.ProjectModel.xml",
],
"net47": [
"lib/net46/NuGet.ProjectModel.dll",
"lib/net46/NuGet.ProjectModel.xml",
],
"net471": [
"lib/net46/NuGet.ProjectModel.dll",
"lib/net46/NuGet.ProjectModel.xml",
],
"net472": [
"lib/net46/NuGet.ProjectModel.dll",
"lib/net46/NuGet.ProjectModel.xml",
],
"netstandard1.6": [
"lib/netstandard1.6/NuGet.ProjectModel.dll",
"lib/netstandard1.6/NuGet.ProjectModel.xml",
],
"netstandard2.0": [
"lib/netstandard1.6/NuGet.ProjectModel.dll",
"lib/netstandard1.6/NuGet.ProjectModel.xml",
],
},
mono_files = [
"lib/net46/NuGet.ProjectModel.dll",
"lib/net46/NuGet.ProjectModel.xml",
],
)
nuget_package(
name = "nuget.commands",
package = "nuget.commands",
version = "4.8.0",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.6/NuGet.Commands.dll",
"netcoreapp2.1": "lib/netstandard1.6/NuGet.Commands.dll",
},
net_lib = {
"net46": "lib/net46/NuGet.Commands.dll",
"net461": "lib/net46/NuGet.Commands.dll",
"net462": "lib/net46/NuGet.Commands.dll",
"net47": "lib/net46/NuGet.Commands.dll",
"net471": "lib/net46/NuGet.Commands.dll",
"net472": "lib/net46/NuGet.Commands.dll",
"netstandard1.6": "lib/netstandard1.6/NuGet.Commands.dll",
"netstandard2.0": "lib/netstandard1.6/NuGet.Commands.dll",
},
mono_lib = "lib/net46/NuGet.Commands.dll",
core_deps = {
"net46": [
"@nuget.credentials//:net46_net",
"@nuget.projectmodel//:net46_net",
],
"net461": [
"@nuget.credentials//:net461_net",
"@nuget.projectmodel//:net461_net",
],
"net462": [
"@nuget.credentials//:net462_net",
"@nuget.projectmodel//:net462_net",
],
"net47": [
"@nuget.credentials//:net47_net",
"@nuget.projectmodel//:net47_net",
],
"net471": [
"@nuget.credentials//:net471_net",
"@nuget.projectmodel//:net471_net",
],
"net472": [
"@nuget.credentials//:net472_net",
"@nuget.projectmodel//:net472_net",
],
"netstandard1.6": [
"@nuget.credentials//:netstandard1.6_net",
"@nuget.projectmodel//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.credentials//:netstandard2.0_net",
"@nuget.projectmodel//:netstandard2.0_net",
],
},
net_deps = {
"net46": [
"@nuget.credentials//:net46_net",
"@nuget.projectmodel//:net46_net",
],
"net461": [
"@nuget.credentials//:net461_net",
"@nuget.projectmodel//:net461_net",
],
"net462": [
"@nuget.credentials//:net462_net",
"@nuget.projectmodel//:net462_net",
],
"net47": [
"@nuget.credentials//:net47_net",
"@nuget.projectmodel//:net47_net",
],
"net471": [
"@nuget.credentials//:net471_net",
"@nuget.projectmodel//:net471_net",
],
"net472": [
"@nuget.credentials//:net472_net",
"@nuget.projectmodel//:net472_net",
],
"netstandard1.6": [
"@nuget.credentials//:netstandard1.6_net",
"@nuget.projectmodel//:netstandard1.6_net",
],
"netstandard2.0": [
"@nuget.credentials//:netstandard2.0_net",
"@nuget.projectmodel//:netstandard2.0_net",
],
},
mono_deps = [
"@nuget.credentials//:mono",
"@nuget.projectmodel//:mono",
],
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.6/NuGet.Commands.dll",
"lib/netstandard1.6/NuGet.Commands.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.6/NuGet.Commands.dll",
"lib/netstandard1.6/NuGet.Commands.xml",
],
},
net_files = {
"net46": [
"lib/net46/NuGet.Commands.dll",
"lib/net46/NuGet.Commands.xml",
],
"net461": [
"lib/net46/NuGet.Commands.dll",
"lib/net46/NuGet.Commands.xml",
],
"net462": [
"lib/net46/NuGet.Commands.dll",
"lib/net46/NuGet.Commands.xml",
],
"net47": [
"lib/net46/NuGet.Commands.dll",
"lib/net46/NuGet.Commands.xml",
],
"net471": [
"lib/net46/NuGet.Commands.dll",
"lib/net46/NuGet.Commands.xml",
],
"net472": [
"lib/net46/NuGet.Commands.dll",
"lib/net46/NuGet.Commands.xml",
],
"netstandard1.6": [
"lib/netstandard1.6/NuGet.Commands.dll",
"lib/netstandard1.6/NuGet.Commands.xml",
],
"netstandard2.0": [
"lib/netstandard1.6/NuGet.Commands.dll",
"lib/netstandard1.6/NuGet.Commands.xml",
],
},
mono_files = [
"lib/net46/NuGet.Commands.dll",
"lib/net46/NuGet.Commands.xml",
],
)
nuget_package(
name = "microsoft.web.xdt",
package = "microsoft.web.xdt",
version = "2.1.2",
net_lib = {
"net45": "lib/net40/Microsoft.Web.XmlTransform.dll",
"net451": "lib/net40/Microsoft.Web.XmlTransform.dll",
"net452": "lib/net40/Microsoft.Web.XmlTransform.dll",
"net46": "lib/net40/Microsoft.Web.XmlTransform.dll",
"net461": "lib/net40/Microsoft.Web.XmlTransform.dll",
"net462": "lib/net40/Microsoft.Web.XmlTransform.dll",
"net47": "lib/net40/Microsoft.Web.XmlTransform.dll",
"net471": "lib/net40/Microsoft.Web.XmlTransform.dll",
"net472": "lib/net40/Microsoft.Web.XmlTransform.dll",
},
mono_lib = "lib/net40/Microsoft.Web.XmlTransform.dll",
net_files = {
"net45": [
"lib/net40/Microsoft.Web.XmlTransform.dll",
],
"net451": [
"lib/net40/Microsoft.Web.XmlTransform.dll",
],
"net452": [
"lib/net40/Microsoft.Web.XmlTransform.dll",
],
"net46": [
"lib/net40/Microsoft.Web.XmlTransform.dll",
],
"net461": [
"lib/net40/Microsoft.Web.XmlTransform.dll",
],
"net462": [
"lib/net40/Microsoft.Web.XmlTransform.dll",
],
"net47": [
"lib/net40/Microsoft.Web.XmlTransform.dll",
],
"net471": [
"lib/net40/Microsoft.Web.XmlTransform.dll",
],
"net472": [
"lib/net40/Microsoft.Web.XmlTransform.dll",
],
},
mono_files = [
"lib/net40/Microsoft.Web.XmlTransform.dll",
],
)
nuget_package(
name = "nuget.packagemanagement",
package = "nuget.packagemanagement",
version = "4.8.0",
net_lib = {
"net46": "lib/net46/NuGet.PackageManagement.dll",
"net461": "lib/net46/NuGet.PackageManagement.dll",
"net462": "lib/net46/NuGet.PackageManagement.dll",
"net47": "lib/net46/NuGet.PackageManagement.dll",
"net471": "lib/net46/NuGet.PackageManagement.dll",
"net472": "lib/net46/NuGet.PackageManagement.dll",
},
mono_lib = "lib/net46/NuGet.PackageManagement.dll",
net_deps = {
"net46": [
"@nuget.commands//:net46_net",
"@nuget.resolver//:net46_net",
"@microsoft.web.xdt//:net46_net",
],
"net461": [
"@nuget.commands//:net461_net",
"@nuget.resolver//:net461_net",
"@microsoft.web.xdt//:net461_net",
],
"net462": [
"@nuget.commands//:net462_net",
"@nuget.resolver//:net462_net",
"@microsoft.web.xdt//:net462_net",
],
"net47": [
"@nuget.commands//:net47_net",
"@nuget.resolver//:net47_net",
"@microsoft.web.xdt//:net47_net",
],
"net471": [
"@nuget.commands//:net471_net",
"@nuget.resolver//:net471_net",
"@microsoft.web.xdt//:net471_net",
],
"net472": [
"@nuget.commands//:net472_net",
"@nuget.resolver//:net472_net",
"@microsoft.web.xdt//:net472_net",
],
},
mono_deps = [
"@nuget.commands//:mono",
"@nuget.resolver//:mono",
"@microsoft.web.xdt//:mono",
],
net_files = {
"net46": [
"lib/net46/NuGet.PackageManagement.dll",
"lib/net46/NuGet.PackageManagement.xml",
],
"net461": [
"lib/net46/NuGet.PackageManagement.dll",
"lib/net46/NuGet.PackageManagement.xml",
],
"net462": [
"lib/net46/NuGet.PackageManagement.dll",
"lib/net46/NuGet.PackageManagement.xml",
],
"net47": [
"lib/net46/NuGet.PackageManagement.dll",
"lib/net46/NuGet.PackageManagement.xml",
],
"net471": [
"lib/net46/NuGet.PackageManagement.dll",
"lib/net46/NuGet.PackageManagement.xml",
],
"net472": [
"lib/net46/NuGet.PackageManagement.dll",
"lib/net46/NuGet.PackageManagement.xml",
],
},
mono_files = [
"lib/net46/NuGet.PackageManagement.dll",
"lib/net46/NuGet.PackageManagement.xml",
],
)
|
load('@io_bazel_rules_dotnet//dotnet:defs.bzl', 'net_gac4', 'nuget_package')
def packages():
nuget_package(name='npgsql', package='npgsql', version='4.0.3', core_lib={'netstandard2.0': 'lib/netstandard2.0/Npgsql.dll'}, net_lib={'net451': 'lib/net451/Npgsql.dll'}, mono_lib='lib/net45/Npgsql.dll', core_deps={}, net_deps={}, mono_deps=[], core_files={'netstandard2.0': ['lib/netstandard2.0/Npgsql.dll', 'lib/netstandard2.0/Npgsql.pdb', 'lib/netstandard2.0/Npgsql.xml']}, net_files={'net451': ['lib/net451/Npgsql.dll', 'lib/net451/Npgsql.pdb', 'lib/net451/Npgsql.xml']}, mono_files=['lib/net45/Npgsql.dll', 'lib/net45/Npgsql.pdb', 'lib/net45/Npgsql.xml'])
net_gac4(name='System.ComponentModel.DataAnnotations', version='4.0.0.0', token='31bf3856ad364e35')
nuget_package(name='commandlineparser', package='commandlineparser', version='2.3.0', core_lib={'netcoreapp2.0': 'lib/netstandard1.5/CommandLine.dll', 'netcoreapp2.1': 'lib/netstandard1.5/CommandLine.dll'}, net_lib={'net45': 'lib/net45/CommandLine.dll', 'net451': 'lib/net45/CommandLine.dll', 'net452': 'lib/net45/CommandLine.dll', 'net46': 'lib/net45/CommandLine.dll', 'net461': 'lib/net45/CommandLine.dll', 'net462': 'lib/net45/CommandLine.dll', 'net47': 'lib/net45/CommandLine.dll', 'net471': 'lib/net45/CommandLine.dll', 'net472': 'lib/net45/CommandLine.dll', 'netstandard1.5': 'lib/netstandard1.5/CommandLine.dll', 'netstandard1.6': 'lib/netstandard1.5/CommandLine.dll', 'netstandard2.0': 'lib/netstandard1.5/CommandLine.dll'}, mono_lib='lib/net45/CommandLine.dll', net_deps={'net461': ['@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.collections.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.console.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.diagnostics.debug.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.globalization.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.io.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.linq.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.linq.expressions.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.reflection.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.reflection.extensions.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.reflection.typeextensions.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.resources.resourcemanager.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.runtime.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net461_system.runtime.extensions.dll'], 'net462': ['@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.collections.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.console.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.diagnostics.debug.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.globalization.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.io.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.linq.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.linq.expressions.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.reflection.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.reflection.extensions.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.reflection.typeextensions.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.resources.resourcemanager.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.runtime.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net462_system.runtime.extensions.dll'], 'net47': ['@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.collections.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.console.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.diagnostics.debug.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.globalization.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.io.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.linq.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.linq.expressions.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.reflection.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.reflection.extensions.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.reflection.typeextensions.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.resources.resourcemanager.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.runtime.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net47_system.runtime.extensions.dll'], 'net471': ['@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.collections.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.console.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.diagnostics.debug.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.globalization.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.io.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.linq.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.linq.expressions.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.reflection.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.reflection.extensions.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.reflection.typeextensions.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.resources.resourcemanager.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.runtime.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net471_system.runtime.extensions.dll'], 'net472': ['@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.collections.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.console.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.diagnostics.debug.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.globalization.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.io.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.linq.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.linq.expressions.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.reflection.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.reflection.extensions.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.reflection.typeextensions.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.resources.resourcemanager.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.runtime.dll', '@io_bazel_rules_dotnet//dotnet/stdlib.net:net472_system.runtime.extensions.dll']}, mono_deps=['@io_bazel_rules_dotnet//dotnet/stdlib:system.collections.dll', '@io_bazel_rules_dotnet//dotnet/stdlib:system.console.dll', '@io_bazel_rules_dotnet//dotnet/stdlib:system.diagnostics.debug.dll', '@io_bazel_rules_dotnet//dotnet/stdlib:system.globalization.dll', '@io_bazel_rules_dotnet//dotnet/stdlib:system.io.dll', '@io_bazel_rules_dotnet//dotnet/stdlib:system.linq.dll', '@io_bazel_rules_dotnet//dotnet/stdlib:system.linq.expressions.dll', '@io_bazel_rules_dotnet//dotnet/stdlib:system.reflection.dll', '@io_bazel_rules_dotnet//dotnet/stdlib:system.reflection.extensions.dll', '@io_bazel_rules_dotnet//dotnet/stdlib:system.reflection.typeextensions.dll', '@io_bazel_rules_dotnet//dotnet/stdlib:system.resources.resourcemanager.dll', '@io_bazel_rules_dotnet//dotnet/stdlib:system.runtime.dll', '@io_bazel_rules_dotnet//dotnet/stdlib:system.runtime.extensions.dll'], core_files={'netcoreapp2.0': ['lib/netstandard1.5/CommandLine.dll', 'lib/netstandard1.5/CommandLine.xml'], 'netcoreapp2.1': ['lib/netstandard1.5/CommandLine.dll', 'lib/netstandard1.5/CommandLine.xml']}, net_files={'net45': ['lib/net45/CommandLine.dll', 'lib/net45/CommandLine.XML'], 'net451': ['lib/net45/CommandLine.dll', 'lib/net45/CommandLine.XML'], 'net452': ['lib/net45/CommandLine.dll', 'lib/net45/CommandLine.XML'], 'net46': ['lib/net45/CommandLine.dll', 'lib/net45/CommandLine.XML'], 'net461': ['lib/net45/CommandLine.dll', 'lib/net45/CommandLine.XML'], 'net462': ['lib/net45/CommandLine.dll', 'lib/net45/CommandLine.XML'], 'net47': ['lib/net45/CommandLine.dll', 'lib/net45/CommandLine.XML'], 'net471': ['lib/net45/CommandLine.dll', 'lib/net45/CommandLine.XML'], 'net472': ['lib/net45/CommandLine.dll', 'lib/net45/CommandLine.XML'], 'netstandard1.5': ['lib/netstandard1.5/CommandLine.dll', 'lib/netstandard1.5/CommandLine.xml'], 'netstandard1.6': ['lib/netstandard1.5/CommandLine.dll', 'lib/netstandard1.5/CommandLine.xml'], 'netstandard2.0': ['lib/netstandard1.5/CommandLine.dll', 'lib/netstandard1.5/CommandLine.xml']}, mono_files=['lib/net45/CommandLine.dll', 'lib/net45/CommandLine.XML'])
nuget_package(name='newtonsoft.json', package='newtonsoft.json', version='11.0.2', core_lib={'netcoreapp2.0': 'lib/netstandard2.0/Newtonsoft.Json.dll', 'netcoreapp2.1': 'lib/netstandard2.0/Newtonsoft.Json.dll'}, net_lib={'net45': 'lib/net45/Newtonsoft.Json.dll', 'net451': 'lib/net45/Newtonsoft.Json.dll', 'net452': 'lib/net45/Newtonsoft.Json.dll', 'net46': 'lib/net45/Newtonsoft.Json.dll', 'net461': 'lib/net45/Newtonsoft.Json.dll', 'net462': 'lib/net45/Newtonsoft.Json.dll', 'net47': 'lib/net45/Newtonsoft.Json.dll', 'net471': 'lib/net45/Newtonsoft.Json.dll', 'net472': 'lib/net45/Newtonsoft.Json.dll', 'netstandard1.0': 'lib/netstandard1.0/Newtonsoft.Json.dll', 'netstandard1.1': 'lib/netstandard1.0/Newtonsoft.Json.dll', 'netstandard1.2': 'lib/netstandard1.0/Newtonsoft.Json.dll', 'netstandard1.3': 'lib/netstandard1.3/Newtonsoft.Json.dll', 'netstandard1.4': 'lib/netstandard1.3/Newtonsoft.Json.dll', 'netstandard1.5': 'lib/netstandard1.3/Newtonsoft.Json.dll', 'netstandard1.6': 'lib/netstandard1.3/Newtonsoft.Json.dll', 'netstandard2.0': 'lib/netstandard2.0/Newtonsoft.Json.dll'}, mono_lib='lib/net45/Newtonsoft.Json.dll', core_files={'netcoreapp2.0': ['lib/netstandard2.0/Newtonsoft.Json.dll', 'lib/netstandard2.0/Newtonsoft.Json.xml'], 'netcoreapp2.1': ['lib/netstandard2.0/Newtonsoft.Json.dll', 'lib/netstandard2.0/Newtonsoft.Json.xml']}, net_files={'net45': ['lib/net45/Newtonsoft.Json.dll', 'lib/net45/Newtonsoft.Json.xml'], 'net451': ['lib/net45/Newtonsoft.Json.dll', 'lib/net45/Newtonsoft.Json.xml'], 'net452': ['lib/net45/Newtonsoft.Json.dll', 'lib/net45/Newtonsoft.Json.xml'], 'net46': ['lib/net45/Newtonsoft.Json.dll', 'lib/net45/Newtonsoft.Json.xml'], 'net461': ['lib/net45/Newtonsoft.Json.dll', 'lib/net45/Newtonsoft.Json.xml'], 'net462': ['lib/net45/Newtonsoft.Json.dll', 'lib/net45/Newtonsoft.Json.xml'], 'net47': ['lib/net45/Newtonsoft.Json.dll', 'lib/net45/Newtonsoft.Json.xml'], 'net471': ['lib/net45/Newtonsoft.Json.dll', 'lib/net45/Newtonsoft.Json.xml'], 'net472': ['lib/net45/Newtonsoft.Json.dll', 'lib/net45/Newtonsoft.Json.xml'], 'netstandard1.0': ['lib/netstandard1.0/Newtonsoft.Json.dll', 'lib/netstandard1.0/Newtonsoft.Json.xml'], 'netstandard1.1': ['lib/netstandard1.0/Newtonsoft.Json.dll', 'lib/netstandard1.0/Newtonsoft.Json.xml'], 'netstandard1.2': ['lib/netstandard1.0/Newtonsoft.Json.dll', 'lib/netstandard1.0/Newtonsoft.Json.xml'], 'netstandard1.3': ['lib/netstandard1.3/Newtonsoft.Json.dll', 'lib/netstandard1.3/Newtonsoft.Json.xml'], 'netstandard1.4': ['lib/netstandard1.3/Newtonsoft.Json.dll', 'lib/netstandard1.3/Newtonsoft.Json.xml'], 'netstandard1.5': ['lib/netstandard1.3/Newtonsoft.Json.dll', 'lib/netstandard1.3/Newtonsoft.Json.xml'], 'netstandard1.6': ['lib/netstandard1.3/Newtonsoft.Json.dll', 'lib/netstandard1.3/Newtonsoft.Json.xml'], 'netstandard2.0': ['lib/netstandard2.0/Newtonsoft.Json.dll', 'lib/netstandard2.0/Newtonsoft.Json.xml']}, mono_files=['lib/net45/Newtonsoft.Json.dll', 'lib/net45/Newtonsoft.Json.xml'])
nuget_package(name='nuget.frameworks', package='nuget.frameworks', version='4.8.0', core_lib={'netcoreapp2.0': 'lib/netstandard1.6/NuGet.Frameworks.dll', 'netcoreapp2.1': 'lib/netstandard1.6/NuGet.Frameworks.dll'}, net_lib={'net45': 'lib/net40/NuGet.Frameworks.dll', 'net451': 'lib/net40/NuGet.Frameworks.dll', 'net452': 'lib/net40/NuGet.Frameworks.dll', 'net46': 'lib/net46/NuGet.Frameworks.dll', 'net461': 'lib/net46/NuGet.Frameworks.dll', 'net462': 'lib/net46/NuGet.Frameworks.dll', 'net47': 'lib/net46/NuGet.Frameworks.dll', 'net471': 'lib/net46/NuGet.Frameworks.dll', 'net472': 'lib/net46/NuGet.Frameworks.dll', 'netstandard1.6': 'lib/netstandard1.6/NuGet.Frameworks.dll', 'netstandard2.0': 'lib/netstandard1.6/NuGet.Frameworks.dll'}, mono_lib='lib/net46/NuGet.Frameworks.dll', core_files={'netcoreapp2.0': ['lib/netstandard1.6/NuGet.Frameworks.dll', 'lib/netstandard1.6/NuGet.Frameworks.xml'], 'netcoreapp2.1': ['lib/netstandard1.6/NuGet.Frameworks.dll', 'lib/netstandard1.6/NuGet.Frameworks.xml']}, net_files={'net45': ['lib/net40/NuGet.Frameworks.dll', 'lib/net40/NuGet.Frameworks.xml'], 'net451': ['lib/net40/NuGet.Frameworks.dll', 'lib/net40/NuGet.Frameworks.xml'], 'net452': ['lib/net40/NuGet.Frameworks.dll', 'lib/net40/NuGet.Frameworks.xml'], 'net46': ['lib/net46/NuGet.Frameworks.dll', 'lib/net46/NuGet.Frameworks.xml'], 'net461': ['lib/net46/NuGet.Frameworks.dll', 'lib/net46/NuGet.Frameworks.xml'], 'net462': ['lib/net46/NuGet.Frameworks.dll', 'lib/net46/NuGet.Frameworks.xml'], 'net47': ['lib/net46/NuGet.Frameworks.dll', 'lib/net46/NuGet.Frameworks.xml'], 'net471': ['lib/net46/NuGet.Frameworks.dll', 'lib/net46/NuGet.Frameworks.xml'], 'net472': ['lib/net46/NuGet.Frameworks.dll', 'lib/net46/NuGet.Frameworks.xml'], 'netstandard1.6': ['lib/netstandard1.6/NuGet.Frameworks.dll', 'lib/netstandard1.6/NuGet.Frameworks.xml'], 'netstandard2.0': ['lib/netstandard1.6/NuGet.Frameworks.dll', 'lib/netstandard1.6/NuGet.Frameworks.xml']}, mono_files=['lib/net46/NuGet.Frameworks.dll', 'lib/net46/NuGet.Frameworks.xml'])
nuget_package(name='nuget.common', package='nuget.common', version='4.8.0', core_lib={'netcoreapp2.0': 'lib/netstandard1.6/NuGet.Common.dll', 'netcoreapp2.1': 'lib/netstandard1.6/NuGet.Common.dll'}, net_lib={'net46': 'lib/net46/NuGet.Common.dll', 'net461': 'lib/net46/NuGet.Common.dll', 'net462': 'lib/net46/NuGet.Common.dll', 'net47': 'lib/net46/NuGet.Common.dll', 'net471': 'lib/net46/NuGet.Common.dll', 'net472': 'lib/net46/NuGet.Common.dll', 'netstandard1.6': 'lib/netstandard1.6/NuGet.Common.dll', 'netstandard2.0': 'lib/netstandard1.6/NuGet.Common.dll'}, mono_lib='lib/net46/NuGet.Common.dll', core_deps={'net46': ['@nuget.frameworks//:net46_net'], 'net461': ['@nuget.frameworks//:net461_net'], 'net462': ['@nuget.frameworks//:net462_net'], 'net47': ['@nuget.frameworks//:net47_net'], 'net471': ['@nuget.frameworks//:net471_net'], 'net472': ['@nuget.frameworks//:net472_net'], 'netstandard1.6': ['@nuget.frameworks//:netstandard1.6_net'], 'netstandard2.0': ['@nuget.frameworks//:netstandard2.0_net']}, net_deps={'net46': ['@nuget.frameworks//:net46_net'], 'net461': ['@nuget.frameworks//:net461_net'], 'net462': ['@nuget.frameworks//:net462_net'], 'net47': ['@nuget.frameworks//:net47_net'], 'net471': ['@nuget.frameworks//:net471_net'], 'net472': ['@nuget.frameworks//:net472_net'], 'netstandard1.6': ['@nuget.frameworks//:netstandard1.6_net'], 'netstandard2.0': ['@nuget.frameworks//:netstandard2.0_net']}, mono_deps=['@nuget.frameworks//:mono'], core_files={'netcoreapp2.0': ['lib/netstandard1.6/NuGet.Common.dll', 'lib/netstandard1.6/NuGet.Common.xml'], 'netcoreapp2.1': ['lib/netstandard1.6/NuGet.Common.dll', 'lib/netstandard1.6/NuGet.Common.xml']}, net_files={'net46': ['lib/net46/NuGet.Common.dll', 'lib/net46/NuGet.Common.xml'], 'net461': ['lib/net46/NuGet.Common.dll', 'lib/net46/NuGet.Common.xml'], 'net462': ['lib/net46/NuGet.Common.dll', 'lib/net46/NuGet.Common.xml'], 'net47': ['lib/net46/NuGet.Common.dll', 'lib/net46/NuGet.Common.xml'], 'net471': ['lib/net46/NuGet.Common.dll', 'lib/net46/NuGet.Common.xml'], 'net472': ['lib/net46/NuGet.Common.dll', 'lib/net46/NuGet.Common.xml'], 'netstandard1.6': ['lib/netstandard1.6/NuGet.Common.dll', 'lib/netstandard1.6/NuGet.Common.xml'], 'netstandard2.0': ['lib/netstandard1.6/NuGet.Common.dll', 'lib/netstandard1.6/NuGet.Common.xml']}, mono_files=['lib/net46/NuGet.Common.dll', 'lib/net46/NuGet.Common.xml'])
nuget_package(name='nuget.configuration', package='nuget.configuration', version='4.8.0', core_lib={'netcoreapp2.0': 'lib/netstandard1.6/NuGet.Configuration.dll', 'netcoreapp2.1': 'lib/netstandard1.6/NuGet.Configuration.dll'}, net_lib={'net46': 'lib/net46/NuGet.Configuration.dll', 'net461': 'lib/net46/NuGet.Configuration.dll', 'net462': 'lib/net46/NuGet.Configuration.dll', 'net47': 'lib/net46/NuGet.Configuration.dll', 'net471': 'lib/net46/NuGet.Configuration.dll', 'net472': 'lib/net46/NuGet.Configuration.dll', 'netstandard1.6': 'lib/netstandard1.6/NuGet.Configuration.dll', 'netstandard2.0': 'lib/netstandard1.6/NuGet.Configuration.dll'}, mono_lib='lib/net46/NuGet.Configuration.dll', core_deps={'net46': ['@nuget.common//:net46_net'], 'net461': ['@nuget.common//:net461_net'], 'net462': ['@nuget.common//:net462_net'], 'net47': ['@nuget.common//:net47_net'], 'net471': ['@nuget.common//:net471_net'], 'net472': ['@nuget.common//:net472_net'], 'netstandard1.6': ['@nuget.common//:netstandard1.6_net'], 'netstandard2.0': ['@nuget.common//:netstandard2.0_net']}, net_deps={'net46': ['@nuget.common//:net46_net'], 'net461': ['@nuget.common//:net461_net'], 'net462': ['@nuget.common//:net462_net'], 'net47': ['@nuget.common//:net47_net'], 'net471': ['@nuget.common//:net471_net'], 'net472': ['@nuget.common//:net472_net'], 'netstandard1.6': ['@nuget.common//:netstandard1.6_net'], 'netstandard2.0': ['@nuget.common//:netstandard2.0_net']}, mono_deps=['@nuget.common//:mono'], core_files={'netcoreapp2.0': ['lib/netstandard1.6/NuGet.Configuration.dll', 'lib/netstandard1.6/NuGet.Configuration.xml'], 'netcoreapp2.1': ['lib/netstandard1.6/NuGet.Configuration.dll', 'lib/netstandard1.6/NuGet.Configuration.xml']}, net_files={'net46': ['lib/net46/NuGet.Configuration.dll', 'lib/net46/NuGet.Configuration.xml'], 'net461': ['lib/net46/NuGet.Configuration.dll', 'lib/net46/NuGet.Configuration.xml'], 'net462': ['lib/net46/NuGet.Configuration.dll', 'lib/net46/NuGet.Configuration.xml'], 'net47': ['lib/net46/NuGet.Configuration.dll', 'lib/net46/NuGet.Configuration.xml'], 'net471': ['lib/net46/NuGet.Configuration.dll', 'lib/net46/NuGet.Configuration.xml'], 'net472': ['lib/net46/NuGet.Configuration.dll', 'lib/net46/NuGet.Configuration.xml'], 'netstandard1.6': ['lib/netstandard1.6/NuGet.Configuration.dll', 'lib/netstandard1.6/NuGet.Configuration.xml'], 'netstandard2.0': ['lib/netstandard1.6/NuGet.Configuration.dll', 'lib/netstandard1.6/NuGet.Configuration.xml']}, mono_files=['lib/net46/NuGet.Configuration.dll', 'lib/net46/NuGet.Configuration.xml'])
nuget_package(name='nuget.versioning', package='nuget.versioning', version='4.8.0', core_lib={'netcoreapp2.0': 'lib/netstandard1.6/NuGet.Versioning.dll', 'netcoreapp2.1': 'lib/netstandard1.6/NuGet.Versioning.dll'}, net_lib={'net46': 'lib/net46/NuGet.Versioning.dll', 'net461': 'lib/net46/NuGet.Versioning.dll', 'net462': 'lib/net46/NuGet.Versioning.dll', 'net47': 'lib/net46/NuGet.Versioning.dll', 'net471': 'lib/net46/NuGet.Versioning.dll', 'net472': 'lib/net46/NuGet.Versioning.dll', 'netstandard1.6': 'lib/netstandard1.6/NuGet.Versioning.dll', 'netstandard2.0': 'lib/netstandard1.6/NuGet.Versioning.dll'}, mono_lib='lib/net46/NuGet.Versioning.dll', core_files={'netcoreapp2.0': ['lib/netstandard1.6/NuGet.Versioning.dll', 'lib/netstandard1.6/NuGet.Versioning.xml'], 'netcoreapp2.1': ['lib/netstandard1.6/NuGet.Versioning.dll', 'lib/netstandard1.6/NuGet.Versioning.xml']}, net_files={'net46': ['lib/net46/NuGet.Versioning.dll', 'lib/net46/NuGet.Versioning.xml'], 'net461': ['lib/net46/NuGet.Versioning.dll', 'lib/net46/NuGet.Versioning.xml'], 'net462': ['lib/net46/NuGet.Versioning.dll', 'lib/net46/NuGet.Versioning.xml'], 'net47': ['lib/net46/NuGet.Versioning.dll', 'lib/net46/NuGet.Versioning.xml'], 'net471': ['lib/net46/NuGet.Versioning.dll', 'lib/net46/NuGet.Versioning.xml'], 'net472': ['lib/net46/NuGet.Versioning.dll', 'lib/net46/NuGet.Versioning.xml'], 'netstandard1.6': ['lib/netstandard1.6/NuGet.Versioning.dll', 'lib/netstandard1.6/NuGet.Versioning.xml'], 'netstandard2.0': ['lib/netstandard1.6/NuGet.Versioning.dll', 'lib/netstandard1.6/NuGet.Versioning.xml']}, mono_files=['lib/net46/NuGet.Versioning.dll', 'lib/net46/NuGet.Versioning.xml'])
nuget_package(name='nuget.packaging.core', package='nuget.packaging.core', version='4.8.0', core_lib={'netcoreapp2.0': 'lib/netstandard1.6/NuGet.Packaging.Core.dll', 'netcoreapp2.1': 'lib/netstandard1.6/NuGet.Packaging.Core.dll'}, net_lib={'net46': 'lib/net46/NuGet.Packaging.Core.dll', 'net461': 'lib/net46/NuGet.Packaging.Core.dll', 'net462': 'lib/net46/NuGet.Packaging.Core.dll', 'net47': 'lib/net46/NuGet.Packaging.Core.dll', 'net471': 'lib/net46/NuGet.Packaging.Core.dll', 'net472': 'lib/net46/NuGet.Packaging.Core.dll', 'netstandard1.6': 'lib/netstandard1.6/NuGet.Packaging.Core.dll', 'netstandard2.0': 'lib/netstandard1.6/NuGet.Packaging.Core.dll'}, mono_lib='lib/net46/NuGet.Packaging.Core.dll', core_deps={'net46': ['@nuget.common//:net46_net', '@nuget.versioning//:net46_net'], 'net461': ['@nuget.common//:net461_net', '@nuget.versioning//:net461_net'], 'net462': ['@nuget.common//:net462_net', '@nuget.versioning//:net462_net'], 'net47': ['@nuget.common//:net47_net', '@nuget.versioning//:net47_net'], 'net471': ['@nuget.common//:net471_net', '@nuget.versioning//:net471_net'], 'net472': ['@nuget.common//:net472_net', '@nuget.versioning//:net472_net'], 'netstandard1.6': ['@nuget.common//:netstandard1.6_net', '@nuget.versioning//:netstandard1.6_net'], 'netstandard2.0': ['@nuget.common//:netstandard2.0_net', '@nuget.versioning//:netstandard2.0_net']}, net_deps={'net46': ['@nuget.common//:net46_net', '@nuget.versioning//:net46_net'], 'net461': ['@nuget.common//:net461_net', '@nuget.versioning//:net461_net'], 'net462': ['@nuget.common//:net462_net', '@nuget.versioning//:net462_net'], 'net47': ['@nuget.common//:net47_net', '@nuget.versioning//:net47_net'], 'net471': ['@nuget.common//:net471_net', '@nuget.versioning//:net471_net'], 'net472': ['@nuget.common//:net472_net', '@nuget.versioning//:net472_net'], 'netstandard1.6': ['@nuget.common//:netstandard1.6_net', '@nuget.versioning//:netstandard1.6_net'], 'netstandard2.0': ['@nuget.common//:netstandard2.0_net', '@nuget.versioning//:netstandard2.0_net']}, mono_deps=['@nuget.common//:mono', '@nuget.versioning//:mono'], core_files={'netcoreapp2.0': ['lib/netstandard1.6/NuGet.Packaging.Core.dll', 'lib/netstandard1.6/NuGet.Packaging.Core.xml'], 'netcoreapp2.1': ['lib/netstandard1.6/NuGet.Packaging.Core.dll', 'lib/netstandard1.6/NuGet.Packaging.Core.xml']}, net_files={'net46': ['lib/net46/NuGet.Packaging.Core.dll', 'lib/net46/NuGet.Packaging.Core.xml'], 'net461': ['lib/net46/NuGet.Packaging.Core.dll', 'lib/net46/NuGet.Packaging.Core.xml'], 'net462': ['lib/net46/NuGet.Packaging.Core.dll', 'lib/net46/NuGet.Packaging.Core.xml'], 'net47': ['lib/net46/NuGet.Packaging.Core.dll', 'lib/net46/NuGet.Packaging.Core.xml'], 'net471': ['lib/net46/NuGet.Packaging.Core.dll', 'lib/net46/NuGet.Packaging.Core.xml'], 'net472': ['lib/net46/NuGet.Packaging.Core.dll', 'lib/net46/NuGet.Packaging.Core.xml'], 'netstandard1.6': ['lib/netstandard1.6/NuGet.Packaging.Core.dll', 'lib/netstandard1.6/NuGet.Packaging.Core.xml'], 'netstandard2.0': ['lib/netstandard1.6/NuGet.Packaging.Core.dll', 'lib/netstandard1.6/NuGet.Packaging.Core.xml']}, mono_files=['lib/net46/NuGet.Packaging.Core.dll', 'lib/net46/NuGet.Packaging.Core.xml'])
nuget_package(name='nuget.packaging', package='nuget.packaging', version='4.8.0', core_lib={'netcoreapp2.0': 'lib/netstandard1.6/NuGet.Packaging.dll', 'netcoreapp2.1': 'lib/netstandard1.6/NuGet.Packaging.dll'}, net_lib={'net46': 'lib/net46/NuGet.Packaging.dll', 'net461': 'lib/net46/NuGet.Packaging.dll', 'net462': 'lib/net46/NuGet.Packaging.dll', 'net47': 'lib/net46/NuGet.Packaging.dll', 'net471': 'lib/net46/NuGet.Packaging.dll', 'net472': 'lib/net46/NuGet.Packaging.dll', 'netstandard1.6': 'lib/netstandard1.6/NuGet.Packaging.dll', 'netstandard2.0': 'lib/netstandard1.6/NuGet.Packaging.dll'}, mono_lib='lib/net46/NuGet.Packaging.dll', core_deps={'net46': ['@nuget.packaging.core//:net46_net', '@newtonsoft.json//:net46_net'], 'net461': ['@nuget.packaging.core//:net461_net', '@newtonsoft.json//:net461_net'], 'net462': ['@nuget.packaging.core//:net462_net', '@newtonsoft.json//:net462_net'], 'net47': ['@nuget.packaging.core//:net47_net', '@newtonsoft.json//:net47_net'], 'net471': ['@nuget.packaging.core//:net471_net', '@newtonsoft.json//:net471_net'], 'net472': ['@nuget.packaging.core//:net472_net', '@newtonsoft.json//:net472_net'], 'netstandard1.6': ['@nuget.packaging.core//:netstandard1.6_net', '@newtonsoft.json//:netstandard1.6_net'], 'netstandard2.0': ['@nuget.packaging.core//:netstandard2.0_net', '@newtonsoft.json//:netstandard2.0_net']}, net_deps={'net46': ['@nuget.packaging.core//:net46_net', '@newtonsoft.json//:net46_net'], 'net461': ['@nuget.packaging.core//:net461_net', '@newtonsoft.json//:net461_net'], 'net462': ['@nuget.packaging.core//:net462_net', '@newtonsoft.json//:net462_net'], 'net47': ['@nuget.packaging.core//:net47_net', '@newtonsoft.json//:net47_net'], 'net471': ['@nuget.packaging.core//:net471_net', '@newtonsoft.json//:net471_net'], 'net472': ['@nuget.packaging.core//:net472_net', '@newtonsoft.json//:net472_net'], 'netstandard1.6': ['@nuget.packaging.core//:netstandard1.6_net', '@newtonsoft.json//:netstandard1.6_net'], 'netstandard2.0': ['@nuget.packaging.core//:netstandard2.0_net', '@newtonsoft.json//:netstandard2.0_net']}, mono_deps=['@nuget.packaging.core//:mono', '@newtonsoft.json//:mono'], core_files={'netcoreapp2.0': ['lib/netstandard1.6/NuGet.Packaging.dll', 'lib/netstandard1.6/NuGet.Packaging.xml'], 'netcoreapp2.1': ['lib/netstandard1.6/NuGet.Packaging.dll', 'lib/netstandard1.6/NuGet.Packaging.xml']}, net_files={'net46': ['lib/net46/NuGet.Packaging.dll', 'lib/net46/NuGet.Packaging.xml'], 'net461': ['lib/net46/NuGet.Packaging.dll', 'lib/net46/NuGet.Packaging.xml'], 'net462': ['lib/net46/NuGet.Packaging.dll', 'lib/net46/NuGet.Packaging.xml'], 'net47': ['lib/net46/NuGet.Packaging.dll', 'lib/net46/NuGet.Packaging.xml'], 'net471': ['lib/net46/NuGet.Packaging.dll', 'lib/net46/NuGet.Packaging.xml'], 'net472': ['lib/net46/NuGet.Packaging.dll', 'lib/net46/NuGet.Packaging.xml'], 'netstandard1.6': ['lib/netstandard1.6/NuGet.Packaging.dll', 'lib/netstandard1.6/NuGet.Packaging.xml'], 'netstandard2.0': ['lib/netstandard1.6/NuGet.Packaging.dll', 'lib/netstandard1.6/NuGet.Packaging.xml']}, mono_files=['lib/net46/NuGet.Packaging.dll', 'lib/net46/NuGet.Packaging.xml'])
nuget_package(name='nuget.protocol', package='nuget.protocol', version='4.8.0', core_lib={'netcoreapp2.0': 'lib/netstandard1.6/NuGet.Protocol.dll', 'netcoreapp2.1': 'lib/netstandard1.6/NuGet.Protocol.dll'}, net_lib={'net46': 'lib/net46/NuGet.Protocol.dll', 'net461': 'lib/net46/NuGet.Protocol.dll', 'net462': 'lib/net46/NuGet.Protocol.dll', 'net47': 'lib/net46/NuGet.Protocol.dll', 'net471': 'lib/net46/NuGet.Protocol.dll', 'net472': 'lib/net46/NuGet.Protocol.dll', 'netstandard1.6': 'lib/netstandard1.6/NuGet.Protocol.dll', 'netstandard2.0': 'lib/netstandard1.6/NuGet.Protocol.dll'}, mono_lib='lib/net46/NuGet.Protocol.dll', core_deps={'net46': ['@nuget.configuration//:net46_net', '@nuget.packaging//:net46_net'], 'net461': ['@nuget.configuration//:net461_net', '@nuget.packaging//:net461_net'], 'net462': ['@nuget.configuration//:net462_net', '@nuget.packaging//:net462_net'], 'net47': ['@nuget.configuration//:net47_net', '@nuget.packaging//:net47_net'], 'net471': ['@nuget.configuration//:net471_net', '@nuget.packaging//:net471_net'], 'net472': ['@nuget.configuration//:net472_net', '@nuget.packaging//:net472_net'], 'netstandard1.6': ['@nuget.configuration//:netstandard1.6_net', '@nuget.packaging//:netstandard1.6_net'], 'netstandard2.0': ['@nuget.configuration//:netstandard2.0_net', '@nuget.packaging//:netstandard2.0_net']}, net_deps={'net46': ['@nuget.configuration//:net46_net', '@nuget.packaging//:net46_net'], 'net461': ['@nuget.configuration//:net461_net', '@nuget.packaging//:net461_net'], 'net462': ['@nuget.configuration//:net462_net', '@nuget.packaging//:net462_net'], 'net47': ['@nuget.configuration//:net47_net', '@nuget.packaging//:net47_net'], 'net471': ['@nuget.configuration//:net471_net', '@nuget.packaging//:net471_net'], 'net472': ['@nuget.configuration//:net472_net', '@nuget.packaging//:net472_net'], 'netstandard1.6': ['@nuget.configuration//:netstandard1.6_net', '@nuget.packaging//:netstandard1.6_net'], 'netstandard2.0': ['@nuget.configuration//:netstandard2.0_net', '@nuget.packaging//:netstandard2.0_net']}, mono_deps=['@nuget.configuration//:mono', '@nuget.packaging//:mono'], core_files={'netcoreapp2.0': ['lib/netstandard1.6/NuGet.Protocol.dll', 'lib/netstandard1.6/NuGet.Protocol.xml'], 'netcoreapp2.1': ['lib/netstandard1.6/NuGet.Protocol.dll', 'lib/netstandard1.6/NuGet.Protocol.xml']}, net_files={'net46': ['lib/net46/NuGet.Protocol.dll', 'lib/net46/NuGet.Protocol.xml'], 'net461': ['lib/net46/NuGet.Protocol.dll', 'lib/net46/NuGet.Protocol.xml'], 'net462': ['lib/net46/NuGet.Protocol.dll', 'lib/net46/NuGet.Protocol.xml'], 'net47': ['lib/net46/NuGet.Protocol.dll', 'lib/net46/NuGet.Protocol.xml'], 'net471': ['lib/net46/NuGet.Protocol.dll', 'lib/net46/NuGet.Protocol.xml'], 'net472': ['lib/net46/NuGet.Protocol.dll', 'lib/net46/NuGet.Protocol.xml'], 'netstandard1.6': ['lib/netstandard1.6/NuGet.Protocol.dll', 'lib/netstandard1.6/NuGet.Protocol.xml'], 'netstandard2.0': ['lib/netstandard1.6/NuGet.Protocol.dll', 'lib/netstandard1.6/NuGet.Protocol.xml']}, mono_files=['lib/net46/NuGet.Protocol.dll', 'lib/net46/NuGet.Protocol.xml'])
nuget_package(name='nuget.credentials', package='nuget.credentials', version='4.8.0', core_lib={'netcoreapp2.0': 'lib/netstandard1.6/NuGet.Credentials.dll', 'netcoreapp2.1': 'lib/netstandard1.6/NuGet.Credentials.dll'}, net_lib={'net46': 'lib/net46/NuGet.Credentials.dll', 'net461': 'lib/net46/NuGet.Credentials.dll', 'net462': 'lib/net46/NuGet.Credentials.dll', 'net47': 'lib/net46/NuGet.Credentials.dll', 'net471': 'lib/net46/NuGet.Credentials.dll', 'net472': 'lib/net46/NuGet.Credentials.dll', 'netstandard1.6': 'lib/netstandard1.6/NuGet.Credentials.dll', 'netstandard2.0': 'lib/netstandard1.6/NuGet.Credentials.dll'}, mono_lib='lib/net46/NuGet.Credentials.dll', core_deps={'net46': ['@nuget.protocol//:net46_net'], 'net461': ['@nuget.protocol//:net461_net'], 'net462': ['@nuget.protocol//:net462_net'], 'net47': ['@nuget.protocol//:net47_net'], 'net471': ['@nuget.protocol//:net471_net'], 'net472': ['@nuget.protocol//:net472_net'], 'netstandard1.6': ['@nuget.protocol//:netstandard1.6_net'], 'netstandard2.0': ['@nuget.protocol//:netstandard2.0_net']}, net_deps={'net46': ['@nuget.protocol//:net46_net'], 'net461': ['@nuget.protocol//:net461_net'], 'net462': ['@nuget.protocol//:net462_net'], 'net47': ['@nuget.protocol//:net47_net'], 'net471': ['@nuget.protocol//:net471_net'], 'net472': ['@nuget.protocol//:net472_net'], 'netstandard1.6': ['@nuget.protocol//:netstandard1.6_net'], 'netstandard2.0': ['@nuget.protocol//:netstandard2.0_net']}, mono_deps=['@nuget.protocol//:mono'], core_files={'netcoreapp2.0': ['lib/netstandard1.6/NuGet.Credentials.dll'], 'netcoreapp2.1': ['lib/netstandard1.6/NuGet.Credentials.dll']}, net_files={'net46': ['lib/net46/NuGet.Credentials.dll'], 'net461': ['lib/net46/NuGet.Credentials.dll'], 'net462': ['lib/net46/NuGet.Credentials.dll'], 'net47': ['lib/net46/NuGet.Credentials.dll'], 'net471': ['lib/net46/NuGet.Credentials.dll'], 'net472': ['lib/net46/NuGet.Credentials.dll'], 'netstandard1.6': ['lib/netstandard1.6/NuGet.Credentials.dll'], 'netstandard2.0': ['lib/netstandard1.6/NuGet.Credentials.dll']}, mono_files=['lib/net46/NuGet.Credentials.dll'])
nuget_package(name='nuget.resolver', package='nuget.resolver', version='4.8.0', core_lib={'netcoreapp2.0': 'lib/netstandard1.6/NuGet.Resolver.dll', 'netcoreapp2.1': 'lib/netstandard1.6/NuGet.Resolver.dll'}, net_lib={'net46': 'lib/net46/NuGet.Resolver.dll', 'net461': 'lib/net46/NuGet.Resolver.dll', 'net462': 'lib/net46/NuGet.Resolver.dll', 'net47': 'lib/net46/NuGet.Resolver.dll', 'net471': 'lib/net46/NuGet.Resolver.dll', 'net472': 'lib/net46/NuGet.Resolver.dll', 'netstandard1.6': 'lib/netstandard1.6/NuGet.Resolver.dll', 'netstandard2.0': 'lib/netstandard1.6/NuGet.Resolver.dll'}, mono_lib='lib/net46/NuGet.Resolver.dll', core_deps={'net46': ['@nuget.protocol//:net46_net'], 'net461': ['@nuget.protocol//:net461_net'], 'net462': ['@nuget.protocol//:net462_net'], 'net47': ['@nuget.protocol//:net47_net'], 'net471': ['@nuget.protocol//:net471_net'], 'net472': ['@nuget.protocol//:net472_net'], 'netstandard1.6': ['@nuget.protocol//:netstandard1.6_net'], 'netstandard2.0': ['@nuget.protocol//:netstandard2.0_net']}, net_deps={'net46': ['@nuget.protocol//:net46_net'], 'net461': ['@nuget.protocol//:net461_net'], 'net462': ['@nuget.protocol//:net462_net'], 'net47': ['@nuget.protocol//:net47_net'], 'net471': ['@nuget.protocol//:net471_net'], 'net472': ['@nuget.protocol//:net472_net'], 'netstandard1.6': ['@nuget.protocol//:netstandard1.6_net'], 'netstandard2.0': ['@nuget.protocol//:netstandard2.0_net']}, mono_deps=['@nuget.protocol//:mono'], core_files={'netcoreapp2.0': ['lib/netstandard1.6/NuGet.Resolver.dll', 'lib/netstandard1.6/NuGet.Resolver.xml'], 'netcoreapp2.1': ['lib/netstandard1.6/NuGet.Resolver.dll', 'lib/netstandard1.6/NuGet.Resolver.xml']}, net_files={'net46': ['lib/net46/NuGet.Resolver.dll', 'lib/net46/NuGet.Resolver.xml'], 'net461': ['lib/net46/NuGet.Resolver.dll', 'lib/net46/NuGet.Resolver.xml'], 'net462': ['lib/net46/NuGet.Resolver.dll', 'lib/net46/NuGet.Resolver.xml'], 'net47': ['lib/net46/NuGet.Resolver.dll', 'lib/net46/NuGet.Resolver.xml'], 'net471': ['lib/net46/NuGet.Resolver.dll', 'lib/net46/NuGet.Resolver.xml'], 'net472': ['lib/net46/NuGet.Resolver.dll', 'lib/net46/NuGet.Resolver.xml'], 'netstandard1.6': ['lib/netstandard1.6/NuGet.Resolver.dll', 'lib/netstandard1.6/NuGet.Resolver.xml'], 'netstandard2.0': ['lib/netstandard1.6/NuGet.Resolver.dll', 'lib/netstandard1.6/NuGet.Resolver.xml']}, mono_files=['lib/net46/NuGet.Resolver.dll', 'lib/net46/NuGet.Resolver.xml'])
nuget_package(name='nuget.librarymodel', package='nuget.librarymodel', version='4.8.0', core_lib={'netcoreapp2.0': 'lib/netstandard1.6/NuGet.LibraryModel.dll', 'netcoreapp2.1': 'lib/netstandard1.6/NuGet.LibraryModel.dll'}, net_lib={'net46': 'lib/net46/NuGet.LibraryModel.dll', 'net461': 'lib/net46/NuGet.LibraryModel.dll', 'net462': 'lib/net46/NuGet.LibraryModel.dll', 'net47': 'lib/net46/NuGet.LibraryModel.dll', 'net471': 'lib/net46/NuGet.LibraryModel.dll', 'net472': 'lib/net46/NuGet.LibraryModel.dll', 'netstandard1.6': 'lib/netstandard1.6/NuGet.LibraryModel.dll', 'netstandard2.0': 'lib/netstandard1.6/NuGet.LibraryModel.dll'}, mono_lib='lib/net46/NuGet.LibraryModel.dll', core_deps={'net46': ['@nuget.common//:net46_net', '@nuget.versioning//:net46_net'], 'net461': ['@nuget.common//:net461_net', '@nuget.versioning//:net461_net'], 'net462': ['@nuget.common//:net462_net', '@nuget.versioning//:net462_net'], 'net47': ['@nuget.common//:net47_net', '@nuget.versioning//:net47_net'], 'net471': ['@nuget.common//:net471_net', '@nuget.versioning//:net471_net'], 'net472': ['@nuget.common//:net472_net', '@nuget.versioning//:net472_net'], 'netstandard1.6': ['@nuget.common//:netstandard1.6_net', '@nuget.versioning//:netstandard1.6_net'], 'netstandard2.0': ['@nuget.common//:netstandard2.0_net', '@nuget.versioning//:netstandard2.0_net']}, net_deps={'net46': ['@nuget.common//:net46_net', '@nuget.versioning//:net46_net'], 'net461': ['@nuget.common//:net461_net', '@nuget.versioning//:net461_net'], 'net462': ['@nuget.common//:net462_net', '@nuget.versioning//:net462_net'], 'net47': ['@nuget.common//:net47_net', '@nuget.versioning//:net47_net'], 'net471': ['@nuget.common//:net471_net', '@nuget.versioning//:net471_net'], 'net472': ['@nuget.common//:net472_net', '@nuget.versioning//:net472_net'], 'netstandard1.6': ['@nuget.common//:netstandard1.6_net', '@nuget.versioning//:netstandard1.6_net'], 'netstandard2.0': ['@nuget.common//:netstandard2.0_net', '@nuget.versioning//:netstandard2.0_net']}, mono_deps=['@nuget.common//:mono', '@nuget.versioning//:mono'], core_files={'netcoreapp2.0': ['lib/netstandard1.6/NuGet.LibraryModel.dll', 'lib/netstandard1.6/NuGet.LibraryModel.xml'], 'netcoreapp2.1': ['lib/netstandard1.6/NuGet.LibraryModel.dll', 'lib/netstandard1.6/NuGet.LibraryModel.xml']}, net_files={'net46': ['lib/net46/NuGet.LibraryModel.dll', 'lib/net46/NuGet.LibraryModel.xml'], 'net461': ['lib/net46/NuGet.LibraryModel.dll', 'lib/net46/NuGet.LibraryModel.xml'], 'net462': ['lib/net46/NuGet.LibraryModel.dll', 'lib/net46/NuGet.LibraryModel.xml'], 'net47': ['lib/net46/NuGet.LibraryModel.dll', 'lib/net46/NuGet.LibraryModel.xml'], 'net471': ['lib/net46/NuGet.LibraryModel.dll', 'lib/net46/NuGet.LibraryModel.xml'], 'net472': ['lib/net46/NuGet.LibraryModel.dll', 'lib/net46/NuGet.LibraryModel.xml'], 'netstandard1.6': ['lib/netstandard1.6/NuGet.LibraryModel.dll', 'lib/netstandard1.6/NuGet.LibraryModel.xml'], 'netstandard2.0': ['lib/netstandard1.6/NuGet.LibraryModel.dll', 'lib/netstandard1.6/NuGet.LibraryModel.xml']}, mono_files=['lib/net46/NuGet.LibraryModel.dll', 'lib/net46/NuGet.LibraryModel.xml'])
nuget_package(name='nuget.dependencyresolver.core', package='nuget.dependencyresolver.core', version='4.8.0', core_lib={'netcoreapp2.0': 'lib/netstandard1.6/NuGet.DependencyResolver.Core.dll', 'netcoreapp2.1': 'lib/netstandard1.6/NuGet.DependencyResolver.Core.dll'}, net_lib={'net46': 'lib/net46/NuGet.DependencyResolver.Core.dll', 'net461': 'lib/net46/NuGet.DependencyResolver.Core.dll', 'net462': 'lib/net46/NuGet.DependencyResolver.Core.dll', 'net47': 'lib/net46/NuGet.DependencyResolver.Core.dll', 'net471': 'lib/net46/NuGet.DependencyResolver.Core.dll', 'net472': 'lib/net46/NuGet.DependencyResolver.Core.dll', 'netstandard1.6': 'lib/netstandard1.6/NuGet.DependencyResolver.Core.dll', 'netstandard2.0': 'lib/netstandard1.6/NuGet.DependencyResolver.Core.dll'}, mono_lib='lib/net46/NuGet.DependencyResolver.Core.dll', core_deps={'net46': ['@nuget.librarymodel//:net46_net', '@nuget.protocol//:net46_net'], 'net461': ['@nuget.librarymodel//:net461_net', '@nuget.protocol//:net461_net'], 'net462': ['@nuget.librarymodel//:net462_net', '@nuget.protocol//:net462_net'], 'net47': ['@nuget.librarymodel//:net47_net', '@nuget.protocol//:net47_net'], 'net471': ['@nuget.librarymodel//:net471_net', '@nuget.protocol//:net471_net'], 'net472': ['@nuget.librarymodel//:net472_net', '@nuget.protocol//:net472_net'], 'netstandard1.6': ['@nuget.librarymodel//:netstandard1.6_net', '@nuget.protocol//:netstandard1.6_net'], 'netstandard2.0': ['@nuget.librarymodel//:netstandard2.0_net', '@nuget.protocol//:netstandard2.0_net']}, net_deps={'net46': ['@nuget.librarymodel//:net46_net', '@nuget.protocol//:net46_net'], 'net461': ['@nuget.librarymodel//:net461_net', '@nuget.protocol//:net461_net'], 'net462': ['@nuget.librarymodel//:net462_net', '@nuget.protocol//:net462_net'], 'net47': ['@nuget.librarymodel//:net47_net', '@nuget.protocol//:net47_net'], 'net471': ['@nuget.librarymodel//:net471_net', '@nuget.protocol//:net471_net'], 'net472': ['@nuget.librarymodel//:net472_net', '@nuget.protocol//:net472_net'], 'netstandard1.6': ['@nuget.librarymodel//:netstandard1.6_net', '@nuget.protocol//:netstandard1.6_net'], 'netstandard2.0': ['@nuget.librarymodel//:netstandard2.0_net', '@nuget.protocol//:netstandard2.0_net']}, mono_deps=['@nuget.librarymodel//:mono', '@nuget.protocol//:mono'], core_files={'netcoreapp2.0': ['lib/netstandard1.6/NuGet.DependencyResolver.Core.dll', 'lib/netstandard1.6/NuGet.DependencyResolver.Core.xml'], 'netcoreapp2.1': ['lib/netstandard1.6/NuGet.DependencyResolver.Core.dll', 'lib/netstandard1.6/NuGet.DependencyResolver.Core.xml']}, net_files={'net46': ['lib/net46/NuGet.DependencyResolver.Core.dll', 'lib/net46/NuGet.DependencyResolver.Core.xml'], 'net461': ['lib/net46/NuGet.DependencyResolver.Core.dll', 'lib/net46/NuGet.DependencyResolver.Core.xml'], 'net462': ['lib/net46/NuGet.DependencyResolver.Core.dll', 'lib/net46/NuGet.DependencyResolver.Core.xml'], 'net47': ['lib/net46/NuGet.DependencyResolver.Core.dll', 'lib/net46/NuGet.DependencyResolver.Core.xml'], 'net471': ['lib/net46/NuGet.DependencyResolver.Core.dll', 'lib/net46/NuGet.DependencyResolver.Core.xml'], 'net472': ['lib/net46/NuGet.DependencyResolver.Core.dll', 'lib/net46/NuGet.DependencyResolver.Core.xml'], 'netstandard1.6': ['lib/netstandard1.6/NuGet.DependencyResolver.Core.dll', 'lib/netstandard1.6/NuGet.DependencyResolver.Core.xml'], 'netstandard2.0': ['lib/netstandard1.6/NuGet.DependencyResolver.Core.dll', 'lib/netstandard1.6/NuGet.DependencyResolver.Core.xml']}, mono_files=['lib/net46/NuGet.DependencyResolver.Core.dll', 'lib/net46/NuGet.DependencyResolver.Core.xml'])
nuget_package(name='nuget.projectmodel', package='nuget.projectmodel', version='4.8.0', core_lib={'netcoreapp2.0': 'lib/netstandard1.6/NuGet.ProjectModel.dll', 'netcoreapp2.1': 'lib/netstandard1.6/NuGet.ProjectModel.dll'}, net_lib={'net46': 'lib/net46/NuGet.ProjectModel.dll', 'net461': 'lib/net46/NuGet.ProjectModel.dll', 'net462': 'lib/net46/NuGet.ProjectModel.dll', 'net47': 'lib/net46/NuGet.ProjectModel.dll', 'net471': 'lib/net46/NuGet.ProjectModel.dll', 'net472': 'lib/net46/NuGet.ProjectModel.dll', 'netstandard1.6': 'lib/netstandard1.6/NuGet.ProjectModel.dll', 'netstandard2.0': 'lib/netstandard1.6/NuGet.ProjectModel.dll'}, mono_lib='lib/net46/NuGet.ProjectModel.dll', core_deps={'net46': ['@nuget.dependencyresolver.core//:net46_net'], 'net461': ['@nuget.dependencyresolver.core//:net461_net'], 'net462': ['@nuget.dependencyresolver.core//:net462_net'], 'net47': ['@nuget.dependencyresolver.core//:net47_net'], 'net471': ['@nuget.dependencyresolver.core//:net471_net'], 'net472': ['@nuget.dependencyresolver.core//:net472_net'], 'netstandard1.6': ['@nuget.dependencyresolver.core//:netstandard1.6_net'], 'netstandard2.0': ['@nuget.dependencyresolver.core//:netstandard2.0_net']}, net_deps={'net46': ['@nuget.dependencyresolver.core//:net46_net'], 'net461': ['@nuget.dependencyresolver.core//:net461_net'], 'net462': ['@nuget.dependencyresolver.core//:net462_net'], 'net47': ['@nuget.dependencyresolver.core//:net47_net'], 'net471': ['@nuget.dependencyresolver.core//:net471_net'], 'net472': ['@nuget.dependencyresolver.core//:net472_net'], 'netstandard1.6': ['@nuget.dependencyresolver.core//:netstandard1.6_net'], 'netstandard2.0': ['@nuget.dependencyresolver.core//:netstandard2.0_net']}, mono_deps=['@nuget.dependencyresolver.core//:mono'], core_files={'netcoreapp2.0': ['lib/netstandard1.6/NuGet.ProjectModel.dll', 'lib/netstandard1.6/NuGet.ProjectModel.xml'], 'netcoreapp2.1': ['lib/netstandard1.6/NuGet.ProjectModel.dll', 'lib/netstandard1.6/NuGet.ProjectModel.xml']}, net_files={'net46': ['lib/net46/NuGet.ProjectModel.dll', 'lib/net46/NuGet.ProjectModel.xml'], 'net461': ['lib/net46/NuGet.ProjectModel.dll', 'lib/net46/NuGet.ProjectModel.xml'], 'net462': ['lib/net46/NuGet.ProjectModel.dll', 'lib/net46/NuGet.ProjectModel.xml'], 'net47': ['lib/net46/NuGet.ProjectModel.dll', 'lib/net46/NuGet.ProjectModel.xml'], 'net471': ['lib/net46/NuGet.ProjectModel.dll', 'lib/net46/NuGet.ProjectModel.xml'], 'net472': ['lib/net46/NuGet.ProjectModel.dll', 'lib/net46/NuGet.ProjectModel.xml'], 'netstandard1.6': ['lib/netstandard1.6/NuGet.ProjectModel.dll', 'lib/netstandard1.6/NuGet.ProjectModel.xml'], 'netstandard2.0': ['lib/netstandard1.6/NuGet.ProjectModel.dll', 'lib/netstandard1.6/NuGet.ProjectModel.xml']}, mono_files=['lib/net46/NuGet.ProjectModel.dll', 'lib/net46/NuGet.ProjectModel.xml'])
nuget_package(name='nuget.commands', package='nuget.commands', version='4.8.0', core_lib={'netcoreapp2.0': 'lib/netstandard1.6/NuGet.Commands.dll', 'netcoreapp2.1': 'lib/netstandard1.6/NuGet.Commands.dll'}, net_lib={'net46': 'lib/net46/NuGet.Commands.dll', 'net461': 'lib/net46/NuGet.Commands.dll', 'net462': 'lib/net46/NuGet.Commands.dll', 'net47': 'lib/net46/NuGet.Commands.dll', 'net471': 'lib/net46/NuGet.Commands.dll', 'net472': 'lib/net46/NuGet.Commands.dll', 'netstandard1.6': 'lib/netstandard1.6/NuGet.Commands.dll', 'netstandard2.0': 'lib/netstandard1.6/NuGet.Commands.dll'}, mono_lib='lib/net46/NuGet.Commands.dll', core_deps={'net46': ['@nuget.credentials//:net46_net', '@nuget.projectmodel//:net46_net'], 'net461': ['@nuget.credentials//:net461_net', '@nuget.projectmodel//:net461_net'], 'net462': ['@nuget.credentials//:net462_net', '@nuget.projectmodel//:net462_net'], 'net47': ['@nuget.credentials//:net47_net', '@nuget.projectmodel//:net47_net'], 'net471': ['@nuget.credentials//:net471_net', '@nuget.projectmodel//:net471_net'], 'net472': ['@nuget.credentials//:net472_net', '@nuget.projectmodel//:net472_net'], 'netstandard1.6': ['@nuget.credentials//:netstandard1.6_net', '@nuget.projectmodel//:netstandard1.6_net'], 'netstandard2.0': ['@nuget.credentials//:netstandard2.0_net', '@nuget.projectmodel//:netstandard2.0_net']}, net_deps={'net46': ['@nuget.credentials//:net46_net', '@nuget.projectmodel//:net46_net'], 'net461': ['@nuget.credentials//:net461_net', '@nuget.projectmodel//:net461_net'], 'net462': ['@nuget.credentials//:net462_net', '@nuget.projectmodel//:net462_net'], 'net47': ['@nuget.credentials//:net47_net', '@nuget.projectmodel//:net47_net'], 'net471': ['@nuget.credentials//:net471_net', '@nuget.projectmodel//:net471_net'], 'net472': ['@nuget.credentials//:net472_net', '@nuget.projectmodel//:net472_net'], 'netstandard1.6': ['@nuget.credentials//:netstandard1.6_net', '@nuget.projectmodel//:netstandard1.6_net'], 'netstandard2.0': ['@nuget.credentials//:netstandard2.0_net', '@nuget.projectmodel//:netstandard2.0_net']}, mono_deps=['@nuget.credentials//:mono', '@nuget.projectmodel//:mono'], core_files={'netcoreapp2.0': ['lib/netstandard1.6/NuGet.Commands.dll', 'lib/netstandard1.6/NuGet.Commands.xml'], 'netcoreapp2.1': ['lib/netstandard1.6/NuGet.Commands.dll', 'lib/netstandard1.6/NuGet.Commands.xml']}, net_files={'net46': ['lib/net46/NuGet.Commands.dll', 'lib/net46/NuGet.Commands.xml'], 'net461': ['lib/net46/NuGet.Commands.dll', 'lib/net46/NuGet.Commands.xml'], 'net462': ['lib/net46/NuGet.Commands.dll', 'lib/net46/NuGet.Commands.xml'], 'net47': ['lib/net46/NuGet.Commands.dll', 'lib/net46/NuGet.Commands.xml'], 'net471': ['lib/net46/NuGet.Commands.dll', 'lib/net46/NuGet.Commands.xml'], 'net472': ['lib/net46/NuGet.Commands.dll', 'lib/net46/NuGet.Commands.xml'], 'netstandard1.6': ['lib/netstandard1.6/NuGet.Commands.dll', 'lib/netstandard1.6/NuGet.Commands.xml'], 'netstandard2.0': ['lib/netstandard1.6/NuGet.Commands.dll', 'lib/netstandard1.6/NuGet.Commands.xml']}, mono_files=['lib/net46/NuGet.Commands.dll', 'lib/net46/NuGet.Commands.xml'])
nuget_package(name='microsoft.web.xdt', package='microsoft.web.xdt', version='2.1.2', net_lib={'net45': 'lib/net40/Microsoft.Web.XmlTransform.dll', 'net451': 'lib/net40/Microsoft.Web.XmlTransform.dll', 'net452': 'lib/net40/Microsoft.Web.XmlTransform.dll', 'net46': 'lib/net40/Microsoft.Web.XmlTransform.dll', 'net461': 'lib/net40/Microsoft.Web.XmlTransform.dll', 'net462': 'lib/net40/Microsoft.Web.XmlTransform.dll', 'net47': 'lib/net40/Microsoft.Web.XmlTransform.dll', 'net471': 'lib/net40/Microsoft.Web.XmlTransform.dll', 'net472': 'lib/net40/Microsoft.Web.XmlTransform.dll'}, mono_lib='lib/net40/Microsoft.Web.XmlTransform.dll', net_files={'net45': ['lib/net40/Microsoft.Web.XmlTransform.dll'], 'net451': ['lib/net40/Microsoft.Web.XmlTransform.dll'], 'net452': ['lib/net40/Microsoft.Web.XmlTransform.dll'], 'net46': ['lib/net40/Microsoft.Web.XmlTransform.dll'], 'net461': ['lib/net40/Microsoft.Web.XmlTransform.dll'], 'net462': ['lib/net40/Microsoft.Web.XmlTransform.dll'], 'net47': ['lib/net40/Microsoft.Web.XmlTransform.dll'], 'net471': ['lib/net40/Microsoft.Web.XmlTransform.dll'], 'net472': ['lib/net40/Microsoft.Web.XmlTransform.dll']}, mono_files=['lib/net40/Microsoft.Web.XmlTransform.dll'])
nuget_package(name='nuget.packagemanagement', package='nuget.packagemanagement', version='4.8.0', net_lib={'net46': 'lib/net46/NuGet.PackageManagement.dll', 'net461': 'lib/net46/NuGet.PackageManagement.dll', 'net462': 'lib/net46/NuGet.PackageManagement.dll', 'net47': 'lib/net46/NuGet.PackageManagement.dll', 'net471': 'lib/net46/NuGet.PackageManagement.dll', 'net472': 'lib/net46/NuGet.PackageManagement.dll'}, mono_lib='lib/net46/NuGet.PackageManagement.dll', net_deps={'net46': ['@nuget.commands//:net46_net', '@nuget.resolver//:net46_net', '@microsoft.web.xdt//:net46_net'], 'net461': ['@nuget.commands//:net461_net', '@nuget.resolver//:net461_net', '@microsoft.web.xdt//:net461_net'], 'net462': ['@nuget.commands//:net462_net', '@nuget.resolver//:net462_net', '@microsoft.web.xdt//:net462_net'], 'net47': ['@nuget.commands//:net47_net', '@nuget.resolver//:net47_net', '@microsoft.web.xdt//:net47_net'], 'net471': ['@nuget.commands//:net471_net', '@nuget.resolver//:net471_net', '@microsoft.web.xdt//:net471_net'], 'net472': ['@nuget.commands//:net472_net', '@nuget.resolver//:net472_net', '@microsoft.web.xdt//:net472_net']}, mono_deps=['@nuget.commands//:mono', '@nuget.resolver//:mono', '@microsoft.web.xdt//:mono'], net_files={'net46': ['lib/net46/NuGet.PackageManagement.dll', 'lib/net46/NuGet.PackageManagement.xml'], 'net461': ['lib/net46/NuGet.PackageManagement.dll', 'lib/net46/NuGet.PackageManagement.xml'], 'net462': ['lib/net46/NuGet.PackageManagement.dll', 'lib/net46/NuGet.PackageManagement.xml'], 'net47': ['lib/net46/NuGet.PackageManagement.dll', 'lib/net46/NuGet.PackageManagement.xml'], 'net471': ['lib/net46/NuGet.PackageManagement.dll', 'lib/net46/NuGet.PackageManagement.xml'], 'net472': ['lib/net46/NuGet.PackageManagement.dll', 'lib/net46/NuGet.PackageManagement.xml']}, mono_files=['lib/net46/NuGet.PackageManagement.dll', 'lib/net46/NuGet.PackageManagement.xml'])
|
aihub_dialog_datasets = {
"train": {
"clean": ["data/Training"]
}
}
librispeech_datasets = {
"train": {
"clean": ["LibriSpeech/train-clean-100", "LibriSpeech/train-clean-360"],
"other": ["LibriSpeech/train-other-500"]
},
"test": {
"clean": ["LibriSpeech/test-clean"],
"other": ["LibriSpeech/test-other"]
},
"dev": {
"clean": ["LibriSpeech/dev-clean"],
"other": ["LibriSpeech/dev-other"]
},
}
libritts_datasets = {
"train": {
"clean": ["LibriTTS/train-clean-100", "LibriTTS/train-clean-360"],
"other": ["LibriTTS/train-other-500"]
},
"test": {
"clean": ["LibriTTS/test-clean"],
"other": ["LibriTTS/test-other"]
},
"dev": {
"clean": ["LibriTTS/dev-clean"],
"other": ["LibriTTS/dev-other"]
},
}
voxceleb_datasets = {
"voxceleb1" : {
"train": ["VoxCeleb1/wav"],
"test": ["VoxCeleb1/test_wav"]
},
"voxceleb2" : {
"train": ["VoxCeleb2/dev/aac"],
"test": ["VoxCeleb2/test_wav"]
}
}
other_datasets = [
"LJSpeech-1.1",
"VCTK-Corpus/wav48",
]
anglophone_nationalites = ["australia", "canada", "ireland", "uk", "usa"]
|
aihub_dialog_datasets = {'train': {'clean': ['data/Training']}}
librispeech_datasets = {'train': {'clean': ['LibriSpeech/train-clean-100', 'LibriSpeech/train-clean-360'], 'other': ['LibriSpeech/train-other-500']}, 'test': {'clean': ['LibriSpeech/test-clean'], 'other': ['LibriSpeech/test-other']}, 'dev': {'clean': ['LibriSpeech/dev-clean'], 'other': ['LibriSpeech/dev-other']}}
libritts_datasets = {'train': {'clean': ['LibriTTS/train-clean-100', 'LibriTTS/train-clean-360'], 'other': ['LibriTTS/train-other-500']}, 'test': {'clean': ['LibriTTS/test-clean'], 'other': ['LibriTTS/test-other']}, 'dev': {'clean': ['LibriTTS/dev-clean'], 'other': ['LibriTTS/dev-other']}}
voxceleb_datasets = {'voxceleb1': {'train': ['VoxCeleb1/wav'], 'test': ['VoxCeleb1/test_wav']}, 'voxceleb2': {'train': ['VoxCeleb2/dev/aac'], 'test': ['VoxCeleb2/test_wav']}}
other_datasets = ['LJSpeech-1.1', 'VCTK-Corpus/wav48']
anglophone_nationalites = ['australia', 'canada', 'ireland', 'uk', 'usa']
|
def matrix_script():
first_multiple_input = input().split()
n = int(first_multiple_input[0])
m = int(first_multiple_input[1])
matrix = []
for _ in range(n):
matrix_item = input()
matrix.append(matrix_item)
ref = []
for i in range(m):
for j in range(n):
ref.append(matrix[j][i])
flag =0
for i in range(len(ref)):
while str.isalnum(ref[i]) and flag ==0 :
first_alpha_index = ref.index(ref[i])
flag =1
break
for i in range(len(ref)):
while str.isalnum(ref[i]) :
last_alpha_index = ref.index(ref[i])
break
final = []
for i in range(0, first_alpha_index):
final.append(ref[i])
for i in range(first_alpha_index,last_alpha_index+1):
while str.isalnum(ref[i]):
final.append(ref[i])
break
else:
while str.isspace(final[-1]):
break
else:
final.append(" ")
for i in range(last_alpha_index+1, len(ref)):
final.append(ref[i])
print("".join(final))
matrix_script()
|
def matrix_script():
first_multiple_input = input().split()
n = int(first_multiple_input[0])
m = int(first_multiple_input[1])
matrix = []
for _ in range(n):
matrix_item = input()
matrix.append(matrix_item)
ref = []
for i in range(m):
for j in range(n):
ref.append(matrix[j][i])
flag = 0
for i in range(len(ref)):
while str.isalnum(ref[i]) and flag == 0:
first_alpha_index = ref.index(ref[i])
flag = 1
break
for i in range(len(ref)):
while str.isalnum(ref[i]):
last_alpha_index = ref.index(ref[i])
break
final = []
for i in range(0, first_alpha_index):
final.append(ref[i])
for i in range(first_alpha_index, last_alpha_index + 1):
while str.isalnum(ref[i]):
final.append(ref[i])
break
else:
while str.isspace(final[-1]):
break
else:
final.append(' ')
for i in range(last_alpha_index + 1, len(ref)):
final.append(ref[i])
print(''.join(final))
matrix_script()
|
'''
from sklearn.cluster import KMeans
from sklearn.preprocessing import StandardScaler
from sklearn.preprocessing import MinMaxScaler
import numpy as np
import logging
def calculate_wcss(data):
wcss = []
scaler = MinMaxScaler()
data = scaler.fit_transform(data)
for n in range(2, 21):
kmeans = KMeans(n_clusters=n)
kmeans.fit(X=data)
logging.debug("KMeans " + str(n) + " clusters WCSS: " + str(round(kmeans.inertia_, 4)))
wcss.append(kmeans.inertia_)
return wcss
def optimal_number_of_clusters(wcss):
x1, y1 = 2, wcss[0]
x2, y2 = 20, wcss[len(wcss)-1]
distances = []
for i in range(len(wcss)):
x0 = i+2
y0 = wcss[i]
numerator = abs((y2-y1)*x0 - (x2-x1)*y0 + x2*y1 - y2*x1)
denominator = np.sqrt((y2 - y1)**2 + (x2 - x1)**2)
distances.append(numerator/denominator)
return distances.index(max(distances)) + 2
def get_optimal_n_cluster(data):
return optimal_number_of_clusters(calculate_wcss(data))
'''
|
"""
from sklearn.cluster import KMeans
from sklearn.preprocessing import StandardScaler
from sklearn.preprocessing import MinMaxScaler
import numpy as np
import logging
def calculate_wcss(data):
wcss = []
scaler = MinMaxScaler()
data = scaler.fit_transform(data)
for n in range(2, 21):
kmeans = KMeans(n_clusters=n)
kmeans.fit(X=data)
logging.debug("KMeans " + str(n) + " clusters WCSS: " + str(round(kmeans.inertia_, 4)))
wcss.append(kmeans.inertia_)
return wcss
def optimal_number_of_clusters(wcss):
x1, y1 = 2, wcss[0]
x2, y2 = 20, wcss[len(wcss)-1]
distances = []
for i in range(len(wcss)):
x0 = i+2
y0 = wcss[i]
numerator = abs((y2-y1)*x0 - (x2-x1)*y0 + x2*y1 - y2*x1)
denominator = np.sqrt((y2 - y1)**2 + (x2 - x1)**2)
distances.append(numerator/denominator)
return distances.index(max(distances)) + 2
def get_optimal_n_cluster(data):
return optimal_number_of_clusters(calculate_wcss(data))
"""
|
class Solution:
def maximalSquare(self, matrix: List[List[str]]) -> int:
row = len(matrix)
col = len(matrix[0])
res = 0
dp = [[0 for i in range(col+1)] for j in range(row+1)]
for i in range(1,row+1):
for j in range(1,col+1):
if matrix[i-1][j-1]=="1":
dp[i][j]= min(dp[i-1][j],dp[i][j-1],dp[i-1][j-1])+1
res = max(res,dp[i][j])
return res**2
|
class Solution:
def maximal_square(self, matrix: List[List[str]]) -> int:
row = len(matrix)
col = len(matrix[0])
res = 0
dp = [[0 for i in range(col + 1)] for j in range(row + 1)]
for i in range(1, row + 1):
for j in range(1, col + 1):
if matrix[i - 1][j - 1] == '1':
dp[i][j] = min(dp[i - 1][j], dp[i][j - 1], dp[i - 1][j - 1]) + 1
res = max(res, dp[i][j])
return res ** 2
|
class Solution:
# @param A, a list of integer
# @return an integer
def singleNumber(self, A):
return reduce(lambda x, y: x ^ y, A)
|
class Solution:
def single_number(self, A):
return reduce(lambda x, y: x ^ y, A)
|
"""Implements the modified UTF-7 specification used for encoding and decoding
mailbox names in IMAP.
See Also:
`RFC 3501 5.1.3 <https://tools.ietf.org/html/rfc3501#section-5.1.3>`_
"""
__all__ = ['modutf7_encode', 'modutf7_decode']
def _modified_b64encode(src: str) -> bytes:
# Inspired by Twisted Python's implementation:
# https://twistedmatrix.com/trac/browser/trunk/LICENSE
src_utf7 = src.encode('utf-7')
return src_utf7[1:-1].replace(b'/', b',')
def _modified_b64decode(src: bytes) -> str:
# Inspired by Twisted Python's implementation:
# https://twistedmatrix.com/trac/browser/trunk/LICENSE
src_utf7 = b'+%b-' % src.replace(b',', b'/')
return src_utf7.decode('utf-7')
def modutf7_encode(data: str) -> bytes:
"""Encode the string using modified UTF-7.
Args:
data: The input string to encode.
"""
ret = bytearray()
is_usascii = True
encode_start = None
for i, symbol in enumerate(data):
charpoint = ord(symbol)
if is_usascii:
if charpoint == 0x26:
ret.extend(b'&-')
elif 0x20 <= charpoint <= 0x7e:
ret.append(charpoint)
else:
encode_start = i
is_usascii = False
else:
if 0x20 <= charpoint <= 0x7e:
to_encode = data[encode_start:i]
encoded = _modified_b64encode(to_encode)
ret.append(0x26)
ret.extend(encoded)
ret.extend((0x2d, charpoint))
is_usascii = True
if not is_usascii:
to_encode = data[encode_start:]
encoded = _modified_b64encode(to_encode)
ret.append(0x26)
ret.extend(encoded)
ret.append(0x2d)
return bytes(ret)
def modutf7_decode(data: bytes) -> str:
"""Decode the bytestring using modified UTF-7.
Args:
data: The encoded bytestring to decode.
"""
parts = []
is_usascii = True
buf = memoryview(data)
while buf:
byte = buf[0]
if is_usascii:
if buf[0:2] == b'&-':
parts.append('&')
buf = buf[2:]
elif byte == 0x26:
is_usascii = False
buf = buf[1:]
else:
parts.append(chr(byte))
buf = buf[1:]
else:
for i, byte in enumerate(buf):
if byte == 0x2d:
to_decode = buf[:i].tobytes()
decoded = _modified_b64decode(to_decode)
parts.append(decoded)
buf = buf[i + 1:]
is_usascii = True
break
if not is_usascii:
to_decode = buf.tobytes()
decoded = _modified_b64decode(to_decode)
parts.append(decoded)
return ''.join(parts)
|
"""Implements the modified UTF-7 specification used for encoding and decoding
mailbox names in IMAP.
See Also:
`RFC 3501 5.1.3 <https://tools.ietf.org/html/rfc3501#section-5.1.3>`_
"""
__all__ = ['modutf7_encode', 'modutf7_decode']
def _modified_b64encode(src: str) -> bytes:
src_utf7 = src.encode('utf-7')
return src_utf7[1:-1].replace(b'/', b',')
def _modified_b64decode(src: bytes) -> str:
src_utf7 = b'+%b-' % src.replace(b',', b'/')
return src_utf7.decode('utf-7')
def modutf7_encode(data: str) -> bytes:
"""Encode the string using modified UTF-7.
Args:
data: The input string to encode.
"""
ret = bytearray()
is_usascii = True
encode_start = None
for (i, symbol) in enumerate(data):
charpoint = ord(symbol)
if is_usascii:
if charpoint == 38:
ret.extend(b'&-')
elif 32 <= charpoint <= 126:
ret.append(charpoint)
else:
encode_start = i
is_usascii = False
elif 32 <= charpoint <= 126:
to_encode = data[encode_start:i]
encoded = _modified_b64encode(to_encode)
ret.append(38)
ret.extend(encoded)
ret.extend((45, charpoint))
is_usascii = True
if not is_usascii:
to_encode = data[encode_start:]
encoded = _modified_b64encode(to_encode)
ret.append(38)
ret.extend(encoded)
ret.append(45)
return bytes(ret)
def modutf7_decode(data: bytes) -> str:
"""Decode the bytestring using modified UTF-7.
Args:
data: The encoded bytestring to decode.
"""
parts = []
is_usascii = True
buf = memoryview(data)
while buf:
byte = buf[0]
if is_usascii:
if buf[0:2] == b'&-':
parts.append('&')
buf = buf[2:]
elif byte == 38:
is_usascii = False
buf = buf[1:]
else:
parts.append(chr(byte))
buf = buf[1:]
else:
for (i, byte) in enumerate(buf):
if byte == 45:
to_decode = buf[:i].tobytes()
decoded = _modified_b64decode(to_decode)
parts.append(decoded)
buf = buf[i + 1:]
is_usascii = True
break
if not is_usascii:
to_decode = buf.tobytes()
decoded = _modified_b64decode(to_decode)
parts.append(decoded)
return ''.join(parts)
|
#!/usr/bin/env python
def read_input(filename):
with open(filename) as fd:
return [line.strip() for line in fd.readlines()]
def reduce_chunks(line):
"""Meh
>>> lines = read_input('example')
>>> reduce_chunks(lines[2])
'{([(<[}>{{[('
"""
while True:
prev = line
for crs in ("()", "[]", "{}", "<>"):
line = line.replace(crs, "")
if prev == line:
return line
def first_bad(line):
"""Meh
>>> lines = read_input('example')
>>> first_bad(lines[0])
''
>>> first_bad(lines[2])
'}'
>>> first_bad(lines[4])
')'
>>> first_bad(lines[5])
']'
>>> first_bad(lines[7])
')'
>>> first_bad(lines[8])
'>'
"""
line = reduce_chunks(line)
for crs in ("(", "[", "{", "<"):
line = line.replace(crs, "")
if len(line):
return line[0]
return ""
def syntax_score(lines):
"""
>>> syntax_score(read_input('example'))
26397
"""
badchrs = [first_bad(line) for line in lines]
chrvals = {"": 0, ")": 3, "]": 57, "}": 1197, ">": 25137}
score = 0
for char in chrvals.keys():
score += badchrs.count(char) * chrvals[char]
return score
def filter_incomplete_lines(lines):
"""
>>> len(filter_incomplete_lines(read_input('example')))
5
"""
return [reduce_chunks(line) for line in lines if first_bad(line) == ""]
def incomplete_score(line):
"""
>>> lines = filter_incomplete_lines(read_input('example'))
>>> incomplete_score(lines[0])
288957
>>> incomplete_score(lines[1])
5566
>>> incomplete_score(lines[2])
1480781
>>> incomplete_score(lines[3])
995444
>>> incomplete_score(lines[4])
294
"""
chrvals = {"(": 1, "[": 2, "{": 3, "<": 4}
score = 0
for char in line[::-1]:
score = score * 5 + chrvals[char]
return score
def final_incomplete_score(lines):
"""
>>> lines = filter_incomplete_lines(read_input('example'))
>>> final_incomplete_score(lines)
288957
"""
scores = [incomplete_score(line) for line in lines]
return sorted(scores)[len(scores) // 2]
if __name__ == "__main__":
lines = read_input("input")
print(syntax_score(lines))
print(final_incomplete_score(filter_incomplete_lines(lines)))
|
def read_input(filename):
with open(filename) as fd:
return [line.strip() for line in fd.readlines()]
def reduce_chunks(line):
"""Meh
>>> lines = read_input('example')
>>> reduce_chunks(lines[2])
'{([(<[}>{{[('
"""
while True:
prev = line
for crs in ('()', '[]', '{}', '<>'):
line = line.replace(crs, '')
if prev == line:
return line
def first_bad(line):
"""Meh
>>> lines = read_input('example')
>>> first_bad(lines[0])
''
>>> first_bad(lines[2])
'}'
>>> first_bad(lines[4])
')'
>>> first_bad(lines[5])
']'
>>> first_bad(lines[7])
')'
>>> first_bad(lines[8])
'>'
"""
line = reduce_chunks(line)
for crs in ('(', '[', '{', '<'):
line = line.replace(crs, '')
if len(line):
return line[0]
return ''
def syntax_score(lines):
"""
>>> syntax_score(read_input('example'))
26397
"""
badchrs = [first_bad(line) for line in lines]
chrvals = {'': 0, ')': 3, ']': 57, '}': 1197, '>': 25137}
score = 0
for char in chrvals.keys():
score += badchrs.count(char) * chrvals[char]
return score
def filter_incomplete_lines(lines):
"""
>>> len(filter_incomplete_lines(read_input('example')))
5
"""
return [reduce_chunks(line) for line in lines if first_bad(line) == '']
def incomplete_score(line):
"""
>>> lines = filter_incomplete_lines(read_input('example'))
>>> incomplete_score(lines[0])
288957
>>> incomplete_score(lines[1])
5566
>>> incomplete_score(lines[2])
1480781
>>> incomplete_score(lines[3])
995444
>>> incomplete_score(lines[4])
294
"""
chrvals = {'(': 1, '[': 2, '{': 3, '<': 4}
score = 0
for char in line[::-1]:
score = score * 5 + chrvals[char]
return score
def final_incomplete_score(lines):
"""
>>> lines = filter_incomplete_lines(read_input('example'))
>>> final_incomplete_score(lines)
288957
"""
scores = [incomplete_score(line) for line in lines]
return sorted(scores)[len(scores) // 2]
if __name__ == '__main__':
lines = read_input('input')
print(syntax_score(lines))
print(final_incomplete_score(filter_incomplete_lines(lines)))
|
# KeyPairs.py
# Pairs key name to corresponding numerical identifier
keyPairs = [("C",1),("Db/C#",2),("D",3),("Eb/D#",4),("E",5),("F",6),
("Gb/F#",7),("G",8),("Ab/G#",9),("A",10),("Bb/A#",11),("B",12)]
|
key_pairs = [('C', 1), ('Db/C#', 2), ('D', 3), ('Eb/D#', 4), ('E', 5), ('F', 6), ('Gb/F#', 7), ('G', 8), ('Ab/G#', 9), ('A', 10), ('Bb/A#', 11), ('B', 12)]
|
file = open('/Users/hansr/Desktop/Homo_sapiens.GRCh37.75.gtf', 'rU')
hgncfile = open('/Users/hansr/Desktop/hgnc_complete_set.txt', 'rU')
outfile = open('/Users/hansr/Desktop/EnsembleId2GeneName.csv', 'w')
id2symbol = {}
id2name = {}
for line in hgncfile:
if line.startswith('hgnc_id'):
continue
splits = line.split('\t')
symbol = splits[1].strip()
name = splits[2].strip()
id2name[symbol] = name
for line in file:
if line.startswith('#'):
continue
splits = line.split()
ensemblid = splits[splits.index('gene_id')+1].strip()
gene_name = splits[splits.index('gene_name')+1].strip()
ensemblid = ensemblid[1:len(ensemblid)-2]
gene_name = gene_name[1:len(gene_name)-2]
if ensemblid not in id2symbol:
id2symbol[ensemblid] = set()
id2symbol[ensemblid].add(gene_name)
outfile.write('#generated from Homo_sapiens.GRCh37.75.gtf\n#Ensembleid\tgene_name\n')
for id, gene_names in id2symbol.iteritems():
symbol = gene_names.pop()
name = 'No HGNC Name'
if symbol in id2name:
name = id2name[symbol]
outfile.write(id + '\t' + symbol + '\t' + name + '\n')
outfile.close()
|
file = open('/Users/hansr/Desktop/Homo_sapiens.GRCh37.75.gtf', 'rU')
hgncfile = open('/Users/hansr/Desktop/hgnc_complete_set.txt', 'rU')
outfile = open('/Users/hansr/Desktop/EnsembleId2GeneName.csv', 'w')
id2symbol = {}
id2name = {}
for line in hgncfile:
if line.startswith('hgnc_id'):
continue
splits = line.split('\t')
symbol = splits[1].strip()
name = splits[2].strip()
id2name[symbol] = name
for line in file:
if line.startswith('#'):
continue
splits = line.split()
ensemblid = splits[splits.index('gene_id') + 1].strip()
gene_name = splits[splits.index('gene_name') + 1].strip()
ensemblid = ensemblid[1:len(ensemblid) - 2]
gene_name = gene_name[1:len(gene_name) - 2]
if ensemblid not in id2symbol:
id2symbol[ensemblid] = set()
id2symbol[ensemblid].add(gene_name)
outfile.write('#generated from Homo_sapiens.GRCh37.75.gtf\n#Ensembleid\tgene_name\n')
for (id, gene_names) in id2symbol.iteritems():
symbol = gene_names.pop()
name = 'No HGNC Name'
if symbol in id2name:
name = id2name[symbol]
outfile.write(id + '\t' + symbol + '\t' + name + '\n')
outfile.close()
|
{
"targets": [
{
"target_name": "action_before_build",
"type": "none",
"hard_dependency": 1,
"actions": [
{
"action_name": "build rust-native-storage library",
"inputs": [ "scripts/build_storage_lib.sh" ],
"outputs": [ "" ],
"action": ["scripts/build_storage_lib.sh"]
}
]
},
{
"target_name": "<(module_name)",
"dependencies": [ "action_before_build" ],
"cflags_cc": [ "-std=c++17" ],
"cflags!": [ "-fno-exceptions", "-fno-rtti" ],
"cflags_cc!": [ "-fno-exceptions", "-fno-rtti" ],
"link_settings": {
"libraries": [
"../rust_native_storage_library/target/debug/librust_native_storage_library.a",
"/usr/local/lib/libwasmedge-tensorflow_c.so",
"/usr/local/lib/libwasmedge-tensorflowlite_c.so",
"/usr/local/lib/libwasmedge-image_c.so",
"/usr/local/lib/libwasmedge-storage_c.so",
"/usr/local/lib/libwasmedge_c.so",
"/usr/local/lib/libtensorflow.so",
"/usr/local/lib/libtensorflow_framework.so",
"/usr/local/lib/libtensorflowlite_c.so",
"-ljpeg",
"-lpng",
]
},
"sources": [
"wasmedgeaddon.cc",
"wasmedge-core/src/addon.cc",
"wasmedge-core/src/bytecode.cc",
"wasmedge-core/src/options.cc",
"wasmedge-core/src/utils.cc",
],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")",
"wasmedge-core/src",
"/usr/local/include",
],
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ],
},
{
"target_name": "action_after_build",
"type": "none",
"dependencies": [ "<(module_name)" ],
"copies": [
{
"files": [ "<(PRODUCT_DIR)/<(module_name).node" ],
"destination": "<(module_path)"
}
]
}
]
}
|
{'targets': [{'target_name': 'action_before_build', 'type': 'none', 'hard_dependency': 1, 'actions': [{'action_name': 'build rust-native-storage library', 'inputs': ['scripts/build_storage_lib.sh'], 'outputs': [''], 'action': ['scripts/build_storage_lib.sh']}]}, {'target_name': '<(module_name)', 'dependencies': ['action_before_build'], 'cflags_cc': ['-std=c++17'], 'cflags!': ['-fno-exceptions', '-fno-rtti'], 'cflags_cc!': ['-fno-exceptions', '-fno-rtti'], 'link_settings': {'libraries': ['../rust_native_storage_library/target/debug/librust_native_storage_library.a', '/usr/local/lib/libwasmedge-tensorflow_c.so', '/usr/local/lib/libwasmedge-tensorflowlite_c.so', '/usr/local/lib/libwasmedge-image_c.so', '/usr/local/lib/libwasmedge-storage_c.so', '/usr/local/lib/libwasmedge_c.so', '/usr/local/lib/libtensorflow.so', '/usr/local/lib/libtensorflow_framework.so', '/usr/local/lib/libtensorflowlite_c.so', '-ljpeg', '-lpng']}, 'sources': ['wasmedgeaddon.cc', 'wasmedge-core/src/addon.cc', 'wasmedge-core/src/bytecode.cc', 'wasmedge-core/src/options.cc', 'wasmedge-core/src/utils.cc'], 'include_dirs': ['<!@(node -p "require(\'node-addon-api\').include")', 'wasmedge-core/src', '/usr/local/include'], 'defines': ['NAPI_DISABLE_CPP_EXCEPTIONS']}, {'target_name': 'action_after_build', 'type': 'none', 'dependencies': ['<(module_name)'], 'copies': [{'files': ['<(PRODUCT_DIR)/<(module_name).node'], 'destination': '<(module_path)'}]}]}
|
def fib(n):
a,b = 1,2
for _ in range(n-1):
a,b = b, a + b
return a
def count_basic(n):
return fib(n)
def count_multi(n,ways):
if n < 0:
return 0
elif n == 0:
return 1
elif n in ways:
return 1 + sum([count_multi(n - x, ways) for x in ways if x < n])
else:
return sum([count_multi(n - x, ways) for x in ways if x < n])
def count_dynamic(n,ways):
memo = [0 for _ in range(n+1)]
memo[0] = 1 # i.e. n+1
for i in range(n+1):
memo[i] += sum([ memo[i-x] for x in ways if i-x > 0])
memo[i] += 1 if i in ways else 0
return memo[-1]
print(count_basic(4))
print(count_multi(4,[1,2]))
print(count_multi(4,[1,3,5]))
print(count_dynamic(4,[1,2]))
print(count_dynamic(4,[1,3,5]))
|
def fib(n):
(a, b) = (1, 2)
for _ in range(n - 1):
(a, b) = (b, a + b)
return a
def count_basic(n):
return fib(n)
def count_multi(n, ways):
if n < 0:
return 0
elif n == 0:
return 1
elif n in ways:
return 1 + sum([count_multi(n - x, ways) for x in ways if x < n])
else:
return sum([count_multi(n - x, ways) for x in ways if x < n])
def count_dynamic(n, ways):
memo = [0 for _ in range(n + 1)]
memo[0] = 1
for i in range(n + 1):
memo[i] += sum([memo[i - x] for x in ways if i - x > 0])
memo[i] += 1 if i in ways else 0
return memo[-1]
print(count_basic(4))
print(count_multi(4, [1, 2]))
print(count_multi(4, [1, 3, 5]))
print(count_dynamic(4, [1, 2]))
print(count_dynamic(4, [1, 3, 5]))
|
VAR = 42
def func():
global VAR
VAR += 1
|
var = 42
def func():
global VAR
var += 1
|
class BackendBaseException(Exception):
"""
Base exception for all custom exceptions of this service.
"""
def __init__(self, message: str) -> None:
self.message = message
class AuthenticationException(BackendBaseException):
pass
class ViewException(BackendBaseException):
def __init__(self, message: str, status_code: int) -> None:
self.message = message
self.status_code = status_code
class ActionException(BackendBaseException):
pass
class PresenterException(BackendBaseException):
pass
class PermissionDenied(BackendBaseException):
pass
class DatabaseException(BackendBaseException):
pass
class EventStoreException(BackendBaseException):
pass
|
class Backendbaseexception(Exception):
"""
Base exception for all custom exceptions of this service.
"""
def __init__(self, message: str) -> None:
self.message = message
class Authenticationexception(BackendBaseException):
pass
class Viewexception(BackendBaseException):
def __init__(self, message: str, status_code: int) -> None:
self.message = message
self.status_code = status_code
class Actionexception(BackendBaseException):
pass
class Presenterexception(BackendBaseException):
pass
class Permissiondenied(BackendBaseException):
pass
class Databaseexception(BackendBaseException):
pass
class Eventstoreexception(BackendBaseException):
pass
|
''' Pseudocode
1. Start
2. Take dividend from the user
3. Take divisor from user
4. Calculate the quotient
5. Calculate the remainder
6. Disdlays quotient and remainder
7. End
'''
# Take the value of dividend
dividend = int(input('Enter the value of dividend: '))
# Take the value of the divisor
divisor = int(input('Enter the value of divisor: '))
# The quotient can be calculated be Interger Division (//)
Q = dividend // divisor
# The Remainder can be calculated by Modulus Operator (%)
R = dividend % divisor
print('Quotient is', Q, 'Remainder is', R) # Enter the value of dividend: 13
# Enter the value of divisor: 2
# Quotient is 6 Remainder is 1
|
""" Pseudocode
1. Start
2. Take dividend from the user
3. Take divisor from user
4. Calculate the quotient
5. Calculate the remainder
6. Disdlays quotient and remainder
7. End
"""
dividend = int(input('Enter the value of dividend: '))
divisor = int(input('Enter the value of divisor: '))
q = dividend // divisor
r = dividend % divisor
print('Quotient is', Q, 'Remainder is', R)
|
def any(x) -> bool:
pass
def all(x) -> bool:
pass
def bool(x) -> bool:
pass
def bytes(x) -> Bytes:
pass
def dict() -> Dict:
pass
def dir(x) -> List[String]:
pass
def enumerate(x) -> List[Tuple[int, any]]:
pass
def float(x) -> float:
pass
def hasattr(x, name) -> bool:
pass
def hash(x) -> int:
pass
def int(x) -> int:
pass
def len(x) -> int:
pass
def list() -> List:
pass
def range() -> List[int]:
pass
def repr(x) -> String:
pass
def reversed(x) -> List:
pass
def sorted(x) -> List:
pass
def str(x) -> String:
pass
def type(x) -> String:
pass
def zip() -> List:
pass
class Dict:
def items(self) -> List:
pass
def keys(self) -> List:
pass
def update(self) -> None:
pass
def values(self) -> List:
pass
class List:
def append(self, x) -> None:
pass
def clear(self) -> None:
pass
def extend(self, x) -> None:
pass
def index(self, x) -> int:
pass
def insert(self, i, x) -> None:
pass
def remove(self, x) -> None:
pass
class String:
def capitalize(self) -> String:
pass
def count(self, sub) -> int:
pass
def endswith(self, suffix) -> bool:
pass
def find(self, sub) -> int:
pass
def format(self, *args, **kwargs) -> String:
pass
def index(self, sub) -> int:
pass
def isalnum(self) -> bool:
pass
def isalpha(self) -> bool:
pass
def isdigit(self) -> bool:
pass
def islower(self) -> bool:
pass
def isspace(self) -> bool:
pass
def istitle(self) -> bool:
pass
def isupper(self) -> bool:
pass
def join(self, iterable) -> String:
pass
def lower(self) -> String:
pass
def lstrip(self) -> String:
pass
def removeprefix(self, x) -> String:
pass
def removesuffix(self, x) -> String:
pass
def replace(self, old, new) -> String:
pass
def rfind(self, sub) -> int:
pass
def rindex(self, sub) -> int:
pass
def rsplit(self) -> List[String]:
pass
def rstrip(self) -> String:
pass
def split(self) -> List[String]:
pass
def splitlines(self) -> List[String]:
pass
def startswith(self, prefix) -> bool:
pass
def strip(self) -> String:
pass
def title(self) -> String:
pass
def upper(self) -> String:
pass
|
def any(x) -> bool:
pass
def all(x) -> bool:
pass
def bool(x) -> bool:
pass
def bytes(x) -> Bytes:
pass
def dict() -> Dict:
pass
def dir(x) -> List[String]:
pass
def enumerate(x) -> List[Tuple[int, any]]:
pass
def float(x) -> float:
pass
def hasattr(x, name) -> bool:
pass
def hash(x) -> int:
pass
def int(x) -> int:
pass
def len(x) -> int:
pass
def list() -> List:
pass
def range() -> List[int]:
pass
def repr(x) -> String:
pass
def reversed(x) -> List:
pass
def sorted(x) -> List:
pass
def str(x) -> String:
pass
def type(x) -> String:
pass
def zip() -> List:
pass
class Dict:
def items(self) -> List:
pass
def keys(self) -> List:
pass
def update(self) -> None:
pass
def values(self) -> List:
pass
class List:
def append(self, x) -> None:
pass
def clear(self) -> None:
pass
def extend(self, x) -> None:
pass
def index(self, x) -> int:
pass
def insert(self, i, x) -> None:
pass
def remove(self, x) -> None:
pass
class String:
def capitalize(self) -> String:
pass
def count(self, sub) -> int:
pass
def endswith(self, suffix) -> bool:
pass
def find(self, sub) -> int:
pass
def format(self, *args, **kwargs) -> String:
pass
def index(self, sub) -> int:
pass
def isalnum(self) -> bool:
pass
def isalpha(self) -> bool:
pass
def isdigit(self) -> bool:
pass
def islower(self) -> bool:
pass
def isspace(self) -> bool:
pass
def istitle(self) -> bool:
pass
def isupper(self) -> bool:
pass
def join(self, iterable) -> String:
pass
def lower(self) -> String:
pass
def lstrip(self) -> String:
pass
def removeprefix(self, x) -> String:
pass
def removesuffix(self, x) -> String:
pass
def replace(self, old, new) -> String:
pass
def rfind(self, sub) -> int:
pass
def rindex(self, sub) -> int:
pass
def rsplit(self) -> List[String]:
pass
def rstrip(self) -> String:
pass
def split(self) -> List[String]:
pass
def splitlines(self) -> List[String]:
pass
def startswith(self, prefix) -> bool:
pass
def strip(self) -> String:
pass
def title(self) -> String:
pass
def upper(self) -> String:
pass
|
"""
All the functions to manipulate the resource fields, state changes, etc.
Grouped by the type of the fields and the purpose of the manipulation.
Used in the handling routines to check if there were significant changes at all
(i.e. not our own internal and system changes, like the uids, links, etc),
and to get the exact per-field diffs for the specific handler functions.
All the functions are purely data-manipulative and computational.
No external calls or any i/o activities are done here.
"""
|
"""
All the functions to manipulate the resource fields, state changes, etc.
Grouped by the type of the fields and the purpose of the manipulation.
Used in the handling routines to check if there were significant changes at all
(i.e. not our own internal and system changes, like the uids, links, etc),
and to get the exact per-field diffs for the specific handler functions.
All the functions are purely data-manipulative and computational.
No external calls or any i/o activities are done here.
"""
|
def parse_policy(policy):
a, b, c = policy.split()
lo, hi = a.split("-")
return (int(lo), int(hi), b[:-1], c)
def part1(pws):
return sum(1 for lo, hi, c, pw in pws if lo <= pw.count(c) <= hi)
def part2(pws):
return sum(1 for lo, hi, c, pw in pws if (pw[lo - 1] == c) != (pw[hi - 1] == c))
if __name__ == "__main__":
with open("2.txt") as f:
lines = f.readlines()
pws = list(map(parse_policy, lines))
print("Part 1: {}".format(part1(pws)))
print("Part 2: {}".format(part2(pws)))
|
def parse_policy(policy):
(a, b, c) = policy.split()
(lo, hi) = a.split('-')
return (int(lo), int(hi), b[:-1], c)
def part1(pws):
return sum((1 for (lo, hi, c, pw) in pws if lo <= pw.count(c) <= hi))
def part2(pws):
return sum((1 for (lo, hi, c, pw) in pws if (pw[lo - 1] == c) != (pw[hi - 1] == c)))
if __name__ == '__main__':
with open('2.txt') as f:
lines = f.readlines()
pws = list(map(parse_policy, lines))
print('Part 1: {}'.format(part1(pws)))
print('Part 2: {}'.format(part2(pws)))
|
# Copyright (C) 2018 The Dagger Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Macro for creating a jar from a set of flat files"""
def simple_jar(name, srcs):
"""Creates a jar out of a set of flat files"""
# TODO(dpb): consider creating a Fileset() under the hood to support srcs from different
# directories
native.genrule(
name = name,
srcs = srcs,
outs = ["%s.jar" % name],
cmd = """
OUT="$$(pwd)/$@"
cd {package_name}
zip "$$OUT" -r * &> /dev/null
""".format(package_name = native.package_name()),
)
|
"""Macro for creating a jar from a set of flat files"""
def simple_jar(name, srcs):
"""Creates a jar out of a set of flat files"""
native.genrule(name=name, srcs=srcs, outs=['%s.jar' % name], cmd='\n OUT="$$(pwd)/$@"\n cd {package_name}\n zip "$$OUT" -r * &> /dev/null\n '.format(package_name=native.package_name()))
|
__author__ = "Liyuan Liu and Frank Xu"
__credits__ = ["Liyuan Liu", "Frank Xu", "Jingbo Shang"]
__license__ = "Apache License 2.0"
__maintainer__ = "Liyuan Liu"
__email__ = "[email protected]"
|
__author__ = 'Liyuan Liu and Frank Xu'
__credits__ = ['Liyuan Liu', 'Frank Xu', 'Jingbo Shang']
__license__ = 'Apache License 2.0'
__maintainer__ = 'Liyuan Liu'
__email__ = '[email protected]'
|
def convert_month_to_days(number_of_months: int) -> int:
return number_of_months * 30
def convert_week_to_days(number_of_weeks: int) -> int:
return number_of_weeks * 7
class CovidEstimator:
def __init__(self, **kwargs):
self.currently_infected: int = 0
self.currently_infected_worst_case: int = 0
self.request_period = kwargs.get('days', 1)
def set_currently_infected(self, reported_cases: int = 0):
self.currently_infected_worst_case = reported_cases * 50
self.currently_infected = reported_cases * 10
def get_currently_infected(self, severe: bool = False):
if severe:
return self.currently_infected_worst_case
return self.currently_infected
def get_estimated_infections_for_days(self, severe: bool = False) -> int:
'return the estimated number of infections after a given days, infection doubles every three days'
days = self.request_period
three_day_set: int = days // 3
if severe:
return self.currently_infected_worst_case * (2 ** three_day_set)
return self.currently_infected * (2 ** three_day_set)
def estimate_cases_requires_hospital(self, severe: bool = False) -> int:
'Return the estimated number of infected people that needs hospitalization'
if severe:
requires_hospitalization = self.get_estimated_infections_for_days(
severe=True) * 0.15
else:
requires_hospitalization = self.get_estimated_infections_for_days() * 0.15
return int(requires_hospitalization)
def get_available_hospital_beds(self, total_beds: int = 1, severe: bool = False):
if total_beds < 1:
total_beds = 1
estimated_beds_available = total_beds * 0.35
if severe:
return int(estimated_beds_available - self.estimate_cases_requires_hospital(severe=True))
return int(estimated_beds_available - self.estimate_cases_requires_hospital())
def get_estimated_ICU_cases(self, severe: bool = False):
'''Return estimated number of cases that will require ICU'''
if severe:
ICU_cases = self.get_estimated_infections_for_days(
severe=True) * 0.05
else:
ICU_cases = self.get_estimated_infections_for_days() * 0.05
return int(ICU_cases)
def get_estimated_ventilator_cases(self, severe: bool = False):
'''Return estimated number of cases that will require ventilators'''
if severe:
ventilator_cases = self.get_estimated_infections_for_days(
severe=True) * 0.02
else:
ventilator_cases = self.get_estimated_infections_for_days() * 0.02
return int(ventilator_cases)
def estimated_economic_money_loss(self, average_income, average_income_population, severe: bool = False):
if severe:
economic_loss = ((self.get_estimated_infections_for_days(
severe=True) * average_income*average_income_population)/self.request_period)
else:
economic_loss = ((self.get_estimated_infections_for_days()
* average_income*average_income_population)/self.request_period)
return int(economic_loss)
|
def convert_month_to_days(number_of_months: int) -> int:
return number_of_months * 30
def convert_week_to_days(number_of_weeks: int) -> int:
return number_of_weeks * 7
class Covidestimator:
def __init__(self, **kwargs):
self.currently_infected: int = 0
self.currently_infected_worst_case: int = 0
self.request_period = kwargs.get('days', 1)
def set_currently_infected(self, reported_cases: int=0):
self.currently_infected_worst_case = reported_cases * 50
self.currently_infected = reported_cases * 10
def get_currently_infected(self, severe: bool=False):
if severe:
return self.currently_infected_worst_case
return self.currently_infected
def get_estimated_infections_for_days(self, severe: bool=False) -> int:
"""return the estimated number of infections after a given days, infection doubles every three days"""
days = self.request_period
three_day_set: int = days // 3
if severe:
return self.currently_infected_worst_case * 2 ** three_day_set
return self.currently_infected * 2 ** three_day_set
def estimate_cases_requires_hospital(self, severe: bool=False) -> int:
"""Return the estimated number of infected people that needs hospitalization"""
if severe:
requires_hospitalization = self.get_estimated_infections_for_days(severe=True) * 0.15
else:
requires_hospitalization = self.get_estimated_infections_for_days() * 0.15
return int(requires_hospitalization)
def get_available_hospital_beds(self, total_beds: int=1, severe: bool=False):
if total_beds < 1:
total_beds = 1
estimated_beds_available = total_beds * 0.35
if severe:
return int(estimated_beds_available - self.estimate_cases_requires_hospital(severe=True))
return int(estimated_beds_available - self.estimate_cases_requires_hospital())
def get_estimated_icu_cases(self, severe: bool=False):
"""Return estimated number of cases that will require ICU"""
if severe:
icu_cases = self.get_estimated_infections_for_days(severe=True) * 0.05
else:
icu_cases = self.get_estimated_infections_for_days() * 0.05
return int(ICU_cases)
def get_estimated_ventilator_cases(self, severe: bool=False):
"""Return estimated number of cases that will require ventilators"""
if severe:
ventilator_cases = self.get_estimated_infections_for_days(severe=True) * 0.02
else:
ventilator_cases = self.get_estimated_infections_for_days() * 0.02
return int(ventilator_cases)
def estimated_economic_money_loss(self, average_income, average_income_population, severe: bool=False):
if severe:
economic_loss = self.get_estimated_infections_for_days(severe=True) * average_income * average_income_population / self.request_period
else:
economic_loss = self.get_estimated_infections_for_days() * average_income * average_income_population / self.request_period
return int(economic_loss)
|
class _BaseOptimizer:
def __init__(self, model, learning_rate=1e-4, reg=1e-3):
self.learning_rate = learning_rate
self.reg = reg
self.grad_tracker = {}
for idx, m in enumerate(model.modules):
self.grad_tracker[idx] = dict(dw=0, db=0)
def update(self, model):
pass
def apply_regularization(self, model):
'''
Apply L2 penalty to the model. Update the gradient dictionary in the model
:param model: The model with gradients
:return: None, but the gradient dictionary of the model should be updated
'''
for m in model.modules:
if hasattr(m, 'weight'):
m.dw += self.reg * m.weight
|
class _Baseoptimizer:
def __init__(self, model, learning_rate=0.0001, reg=0.001):
self.learning_rate = learning_rate
self.reg = reg
self.grad_tracker = {}
for (idx, m) in enumerate(model.modules):
self.grad_tracker[idx] = dict(dw=0, db=0)
def update(self, model):
pass
def apply_regularization(self, model):
"""
Apply L2 penalty to the model. Update the gradient dictionary in the model
:param model: The model with gradients
:return: None, but the gradient dictionary of the model should be updated
"""
for m in model.modules:
if hasattr(m, 'weight'):
m.dw += self.reg * m.weight
|
def getOrderFromDict(d):
return RobinhoodOrder(d['symbol'],d['action'],d['shares'],d['price'],d['date'])
class RobinhoodOrder(object):
def __init__(self, symbol, action, shares, price, date):
self.symbol = symbol
self.action = action
self.shares = shares
self.price = price
self.date = date
def __str__(self):
return "{} {} shares of {} on {} for ${}".format(self.action, self.shares, self.symbol, self.date, self.price)
def getPrice(self):
if self.action == "buy":
return -1 * float(self.price) * float(self.shares)
return float(self.price) * float(self.shares)
def getDate(self):
return self.date.split("T")[0]
def getCsvHeader(self):
return ["symbol", "action", "shares", "price", "date"]
def getCsvRow(self):
return [self.symbol, self.action, self.shares, self.price, self.date]
|
def get_order_from_dict(d):
return robinhood_order(d['symbol'], d['action'], d['shares'], d['price'], d['date'])
class Robinhoodorder(object):
def __init__(self, symbol, action, shares, price, date):
self.symbol = symbol
self.action = action
self.shares = shares
self.price = price
self.date = date
def __str__(self):
return '{} {} shares of {} on {} for ${}'.format(self.action, self.shares, self.symbol, self.date, self.price)
def get_price(self):
if self.action == 'buy':
return -1 * float(self.price) * float(self.shares)
return float(self.price) * float(self.shares)
def get_date(self):
return self.date.split('T')[0]
def get_csv_header(self):
return ['symbol', 'action', 'shares', 'price', 'date']
def get_csv_row(self):
return [self.symbol, self.action, self.shares, self.price, self.date]
|
'''
In this little assignment you are given a string of space separated numbers,
and have to return the highest and lowest number.
Example:
high_and_low("1 2 3 4 5") # return "5 1"
high_and_low("1 2 -3 4 5") # return "5 -3"
high_and_low("1 9 3 4 -5") # return "9 -5"
Notes:
All numbers are valid Int32, no need to validate them.
There will always be at least one number in the input string.
Output string must be two numbers separated by a single space, and highest
number is first.
'''
def high_and_low(numbers):
numbers_array = list(map(int, numbers.split(' ')))
return f'{max(numbers_array)} {min(numbers_array)}'
print(high_and_low("1 2 3 4 5")) # return "5 1"
print(high_and_low("1 2 -3 4 5")) # return "5 -3"
print(high_and_low("1 9 3 4 -5")) # return "9 -5"
print(high_and_low("4 5 29 54 4 0 -214 542 -64 1 -3 6 -6")) # return "542 -214"
|
"""
In this little assignment you are given a string of space separated numbers,
and have to return the highest and lowest number.
Example:
high_and_low("1 2 3 4 5") # return "5 1"
high_and_low("1 2 -3 4 5") # return "5 -3"
high_and_low("1 9 3 4 -5") # return "9 -5"
Notes:
All numbers are valid Int32, no need to validate them.
There will always be at least one number in the input string.
Output string must be two numbers separated by a single space, and highest
number is first.
"""
def high_and_low(numbers):
numbers_array = list(map(int, numbers.split(' ')))
return f'{max(numbers_array)} {min(numbers_array)}'
print(high_and_low('1 2 3 4 5'))
print(high_and_low('1 2 -3 4 5'))
print(high_and_low('1 9 3 4 -5'))
print(high_and_low('4 5 29 54 4 0 -214 542 -64 1 -3 6 -6'))
|
class TrustDomain(object):
"""
Represents the name of a SPIFFE trust domain (e.g. 'domain.test').
:param trust_domain: The name of the Trust Domain
"""
name: str
def __init__(self, trust_domain: str):
self.name = trust_domain
|
class Trustdomain(object):
"""
Represents the name of a SPIFFE trust domain (e.g. 'domain.test').
:param trust_domain: The name of the Trust Domain
"""
name: str
def __init__(self, trust_domain: str):
self.name = trust_domain
|
n1 = 10
n2 = 20
print(n1,n2)
n1 , n2 = n2 ,n1
print(n1,n2)
|
n1 = 10
n2 = 20
print(n1, n2)
(n1, n2) = (n2, n1)
print(n1, n2)
|
pizzas = ['Pizza_A', 'Pizza_B', 'Pizza_C']
for pizza in pizzas:
print(f'Gosto da {pizza}')
print('Eu realmente gosto de pizza.')
for i in range(1, 1):
print(i)
pizzas_amigos = pizzas[:]
pizzas.append('Pizza_D')
pizzas_amigos.append('Pizza_E')
for pizza in pizzas:
print(pizza)
print()
for pizza_amigo in pizzas_amigos:
print(pizza_amigo)
|
pizzas = ['Pizza_A', 'Pizza_B', 'Pizza_C']
for pizza in pizzas:
print(f'Gosto da {pizza}')
print('Eu realmente gosto de pizza.')
for i in range(1, 1):
print(i)
pizzas_amigos = pizzas[:]
pizzas.append('Pizza_D')
pizzas_amigos.append('Pizza_E')
for pizza in pizzas:
print(pizza)
print()
for pizza_amigo in pizzas_amigos:
print(pizza_amigo)
|
liste = [1,6,9,4,5,7]
plusFort = 0
for nb in liste:
if nb>plusFort:
plusFort = nb
print("Le plus fort de la liste est {}".format(plusFort))
|
liste = [1, 6, 9, 4, 5, 7]
plus_fort = 0
for nb in liste:
if nb > plusFort:
plus_fort = nb
print('Le plus fort de la liste est {}'.format(plusFort))
|
{
'targets': [{
'target_name': 'addon',
'include_dirs': [
"<!(node -e \"require('nan')\")",
'lib/kcp',
'src',
],
'sources': [
'lib/kcp/ikcp.c',
'src/utils.c',
'src/Loop.cc',
'src/SessUDP.cc',
'src/Cryptor.cc',
'src/KcpuvSess.cc',
'src/Mux.cc',
'src/binding.cc',
],
'conditions' : [
['OS=="win"', {
'libraries' : ['ws2_32.lib']
}]
]
}]
}
|
{'targets': [{'target_name': 'addon', 'include_dirs': ['<!(node -e "require(\'nan\')")', 'lib/kcp', 'src'], 'sources': ['lib/kcp/ikcp.c', 'src/utils.c', 'src/Loop.cc', 'src/SessUDP.cc', 'src/Cryptor.cc', 'src/KcpuvSess.cc', 'src/Mux.cc', 'src/binding.cc'], 'conditions': [['OS=="win"', {'libraries': ['ws2_32.lib']}]]}]}
|
# Given an integer array nums of unique elements, return all possible subsets
# (the power set).
# The solution set must not contain duplicate subsets.
# Return the solution in any order.
#
# Example 1:
# Input: nums = [1,2,3]
# Output: [[],[1],[2],[1,2],[3],[1,3],[2,3],[1,2,3]]
#
# Example 2:
# Input: nums = [0]
# Output: [[],[0]]
# Solution 1
class Solution_1:
def subsets(nums):
ans = [[]]
for num in nums:
ans += [x + [num] for x in ans]
return ans
|
class Solution_1:
def subsets(nums):
ans = [[]]
for num in nums:
ans += [x + [num] for x in ans]
return ans
|
n = int(input())
a = list(map(int,input().split()))
dist = [-1] * n
dist[0] = 0
pos = [0]
for u in pos:
for v in [u - 1, u + 1, a[u] - 1]:
if v >= 0 and v < n and dist[v] == -1:
dist[v] = dist[u] + 1
pos.append(v)
print(*dist)
|
n = int(input())
a = list(map(int, input().split()))
dist = [-1] * n
dist[0] = 0
pos = [0]
for u in pos:
for v in [u - 1, u + 1, a[u] - 1]:
if v >= 0 and v < n and (dist[v] == -1):
dist[v] = dist[u] + 1
pos.append(v)
print(*dist)
|
def letter_count(word):
count = {}
for i in word:
count[i] = word.count(i)
return count
new = (letter_count("mehedi hasan shifat").items())
for i,j in new:
print("'{}' -> {} times".format(i,j))
print(len(new))
|
def letter_count(word):
count = {}
for i in word:
count[i] = word.count(i)
return count
new = letter_count('mehedi hasan shifat').items()
for (i, j) in new:
print("'{}' -> {} times".format(i, j))
print(len(new))
|
class AbstractProducerAdapter:
def __init__(self, config: dict):
self.config = config
def get_current_energy_production(self) -> float:
""" Returns the current energy production """
pass
|
class Abstractproduceradapter:
def __init__(self, config: dict):
self.config = config
def get_current_energy_production(self) -> float:
""" Returns the current energy production """
pass
|
def random_choice():
return bool(GLOBAL_UNKOWN_VAR)
def is_safe(arg):
return UNKNOWN_FUNC(arg)
def true_func():
return True
def test_basic():
s = TAINTED_STRING
if is_safe(s):
ensure_not_tainted(s)
else:
ensure_tainted(s)
if not is_safe(s):
ensure_tainted(s)
else:
ensure_not_tainted(s)
def test_or():
s = TAINTED_STRING
# x or y
if is_safe(s) or random_choice():
ensure_tainted(s) # might be tainted
else:
ensure_tainted(s) # must be tainted
# not (x or y)
if not(is_safe(s) or random_choice()):
ensure_tainted(s) # must be tainted
else:
ensure_tainted(s) # might be tainted
# not (x or y) == not x and not y [de Morgan's laws]
if not is_safe(s) and not random_choice():
ensure_tainted(s) # must be tainted
else:
ensure_tainted(s) # might be tainted
def test_and():
s = TAINTED_STRING
# x and y
if is_safe(s) and random_choice():
ensure_not_tainted(s) # must not be tainted
else:
ensure_tainted(s) # might be tainted
# not (x and y)
if not(is_safe(s) and random_choice()):
ensure_tainted(s) # might be tainted
else:
ensure_not_tainted(s)
# not (x and y) == not x or not y [de Morgan's laws]
if not is_safe(s) or not random_choice():
ensure_tainted(s) # might be tainted
else:
ensure_not_tainted(s)
def test_tricky():
s = TAINTED_STRING
x = is_safe(s)
if x:
ensure_not_tainted(s) # FP
s_ = s
if is_safe(s):
ensure_not_tainted(s_) # FP
def test_nesting_not():
s = TAINTED_STRING
if not(not(is_safe(s))):
ensure_not_tainted(s)
else:
ensure_tainted(s)
if not(not(not(is_safe(s)))):
ensure_tainted(s)
else:
ensure_not_tainted(s)
# Adding `and True` makes the sanitizer trigger when it would otherwise not. See output in
# SanitizedEdges.expected and compare with `test_nesting_not` and `test_basic`
def test_nesting_not_with_and_true():
s = TAINTED_STRING
if not(is_safe(s) and True):
ensure_tainted(s)
else:
ensure_not_tainted(s)
if not(not(is_safe(s) and True)):
ensure_not_tainted(s)
else:
ensure_tainted(s)
if not(not(not(is_safe(s) and True))):
ensure_tainted(s)
else:
ensure_not_tainted(s)
|
def random_choice():
return bool(GLOBAL_UNKOWN_VAR)
def is_safe(arg):
return unknown_func(arg)
def true_func():
return True
def test_basic():
s = TAINTED_STRING
if is_safe(s):
ensure_not_tainted(s)
else:
ensure_tainted(s)
if not is_safe(s):
ensure_tainted(s)
else:
ensure_not_tainted(s)
def test_or():
s = TAINTED_STRING
if is_safe(s) or random_choice():
ensure_tainted(s)
else:
ensure_tainted(s)
if not (is_safe(s) or random_choice()):
ensure_tainted(s)
else:
ensure_tainted(s)
if not is_safe(s) and (not random_choice()):
ensure_tainted(s)
else:
ensure_tainted(s)
def test_and():
s = TAINTED_STRING
if is_safe(s) and random_choice():
ensure_not_tainted(s)
else:
ensure_tainted(s)
if not (is_safe(s) and random_choice()):
ensure_tainted(s)
else:
ensure_not_tainted(s)
if not is_safe(s) or not random_choice():
ensure_tainted(s)
else:
ensure_not_tainted(s)
def test_tricky():
s = TAINTED_STRING
x = is_safe(s)
if x:
ensure_not_tainted(s)
s_ = s
if is_safe(s):
ensure_not_tainted(s_)
def test_nesting_not():
s = TAINTED_STRING
if not not is_safe(s):
ensure_not_tainted(s)
else:
ensure_tainted(s)
if not not not is_safe(s):
ensure_tainted(s)
else:
ensure_not_tainted(s)
def test_nesting_not_with_and_true():
s = TAINTED_STRING
if not (is_safe(s) and True):
ensure_tainted(s)
else:
ensure_not_tainted(s)
if not not (is_safe(s) and True):
ensure_not_tainted(s)
else:
ensure_tainted(s)
if not not not (is_safe(s) and True):
ensure_tainted(s)
else:
ensure_not_tainted(s)
|
m = 4
b = 5
c = 6
d = 7
n = 0
d = d*d
print(d)
c = d*2 - c*2
print(c)
p = b*d+m*c
print(p)
dn = c-d
print(dn)
cn = c-m
print(cn)
d = d-dn
print(d)
c = c-n
print(c)
a = d + c
f = m + b
e = a + f
print(d,dn)
print(c,d,f)
print(m,b,p)
print(cn,dn)
print(a,e)
|
m = 4
b = 5
c = 6
d = 7
n = 0
d = d * d
print(d)
c = d * 2 - c * 2
print(c)
p = b * d + m * c
print(p)
dn = c - d
print(dn)
cn = c - m
print(cn)
d = d - dn
print(d)
c = c - n
print(c)
a = d + c
f = m + b
e = a + f
print(d, dn)
print(c, d, f)
print(m, b, p)
print(cn, dn)
print(a, e)
|
# Copyright (C) 2017 Udacity Inc.
# All Rights Reserved.
# Author: Brandon Kinman
##################################################################################
# UPDATED USING CLASS FROM LESSON 23 PID CONTROL
##################################################################################
class PIDController:
def __init__(self, kp = 0.0, ki = 0.0, kd = 0.0, max_windup = 20,
start_time = 0, alpha = 1., u_bounds = [float('-inf'), float('inf')]):
# The PID controller can be initalized with a specific kp value
# ki value, and kd value
self.kp_ = float(kp)
self.ki_ = float(ki)
self.kd_ = float(kd)
# Set max wind up
self.max_windup_ = float(max_windup)
# Set alpha for derivative filter smoothing factor
self.alpha = float(alpha)
# Setting control effort saturation limits
self.umin = u_bounds[0]
self.umax = u_bounds[1]
# Store relevant data
self.last_timestamp_ = 0.0
self.set_point_ = 0.0
self.start_time_ = start_time
self.error_sum_ = 0.0
self.last_error_ = 0.0
# Control effort history
self.u_p = [0]
self.u_i = [0]
self.u_d = [0]
# Add a reset function to clear the class variables
def reset(self):
self.set_point_ = 0.0
self.kp_ = 0.0
self.ki_ = 0.0
self.kd_ = 0.0
self.error_sum_ = 0.0
self.last_timestamp_ = 0.0
self.last_error_ = 0
self.last_last_error_ = 0
self.last_windup_ = 0.0
def setTarget(self, target):
self.set_point_ = float(target)
def setKP(self, kp):
self.kp_ = float(kp)
def setKI(self, ki):
self.ki_ = float(ki)
def setKD(self, kd):
self.kd_ = float(kd)
# Create function to set max_windup_
def setMaxWindup(self, max_windup):
self.max_windup_ = int(max_windup)
def update(self, measured_value, timestamp):
delta_time = timestamp - self.last_timestamp_
if delta_time == 0:
# Delta time is zero
return 0
# Calculate the error
error = self.set_point_ - measured_value
# Set the last_timestamp_
self.last_timestamp_ = timestamp
# Sum the errors
self.error_sum_ += error * delta_time
# Find delta_error
delta_error = error - self.last_error_
# Update the past error
self.last_error_ = error
# Address max windup
########################################
if self.error_sum_ > self.max_windup_:
self.error_sum_ = self.max_windup_
elif self.error_sum_ < -self.max_windup_:
self.error_sum_ = -self.max_windup_
########################################
# Proportional error
p = self.kp_ * error
# Integral error
i = self.ki_ * self.error_sum_
# Recalculate the derivative error here incorporating
# derivative smoothing!
########################################
d = self.kd_ * (self.alpha * delta_error / delta_time + (1 - self.alpha) * self.last_error_)
########################################
# Set the control effort
u = p + i + d
# Enforce actuator saturation limits
########################################
if u > self.umax:
u = self.umax
elif u < self.umin:
u = self.umin
########################################
# Here we are storing the control effort history for post control
# observations.
self.u_p.append(p)
self.u_i.append(i)
self.u_d.append(d)
return u
|
class Pidcontroller:
def __init__(self, kp=0.0, ki=0.0, kd=0.0, max_windup=20, start_time=0, alpha=1.0, u_bounds=[float('-inf'), float('inf')]):
self.kp_ = float(kp)
self.ki_ = float(ki)
self.kd_ = float(kd)
self.max_windup_ = float(max_windup)
self.alpha = float(alpha)
self.umin = u_bounds[0]
self.umax = u_bounds[1]
self.last_timestamp_ = 0.0
self.set_point_ = 0.0
self.start_time_ = start_time
self.error_sum_ = 0.0
self.last_error_ = 0.0
self.u_p = [0]
self.u_i = [0]
self.u_d = [0]
def reset(self):
self.set_point_ = 0.0
self.kp_ = 0.0
self.ki_ = 0.0
self.kd_ = 0.0
self.error_sum_ = 0.0
self.last_timestamp_ = 0.0
self.last_error_ = 0
self.last_last_error_ = 0
self.last_windup_ = 0.0
def set_target(self, target):
self.set_point_ = float(target)
def set_kp(self, kp):
self.kp_ = float(kp)
def set_ki(self, ki):
self.ki_ = float(ki)
def set_kd(self, kd):
self.kd_ = float(kd)
def set_max_windup(self, max_windup):
self.max_windup_ = int(max_windup)
def update(self, measured_value, timestamp):
delta_time = timestamp - self.last_timestamp_
if delta_time == 0:
return 0
error = self.set_point_ - measured_value
self.last_timestamp_ = timestamp
self.error_sum_ += error * delta_time
delta_error = error - self.last_error_
self.last_error_ = error
if self.error_sum_ > self.max_windup_:
self.error_sum_ = self.max_windup_
elif self.error_sum_ < -self.max_windup_:
self.error_sum_ = -self.max_windup_
p = self.kp_ * error
i = self.ki_ * self.error_sum_
d = self.kd_ * (self.alpha * delta_error / delta_time + (1 - self.alpha) * self.last_error_)
u = p + i + d
if u > self.umax:
u = self.umax
elif u < self.umin:
u = self.umin
self.u_p.append(p)
self.u_i.append(i)
self.u_d.append(d)
return u
|
"""SNMP constants."""
CONF_ACCEPT_ERRORS = 'accept_errors'
CONF_AUTH_KEY = 'auth_key'
CONF_AUTH_PROTOCOL = 'auth_protocol'
CONF_BASEOID = 'baseoid'
CONF_COMMUNITY = 'community'
CONF_DEFAULT_VALUE = 'default_value'
CONF_PRIV_KEY = 'priv_key'
CONF_PRIV_PROTOCOL = 'priv_protocol'
CONF_VERSION = 'version'
DEFAULT_AUTH_PROTOCOL = 'none'
DEFAULT_COMMUNITY = 'public'
DEFAULT_HOST = 'localhost'
DEFAULT_NAME = 'SNMP'
DEFAULT_PORT = '161'
DEFAULT_PRIV_PROTOCOL = 'none'
DEFAULT_VERSION = '1'
SNMP_VERSIONS = {
'1': 0,
'2c': 1,
'3': None
}
MAP_AUTH_PROTOCOLS = {
'none': 'usmNoAuthProtocol',
'hmac-md5': 'usmHMACMD5AuthProtocol',
'hmac-sha': 'usmHMACSHAAuthProtocol',
'hmac128-sha224': 'usmHMAC128SHA224AuthProtocol',
'hmac192-sha256': 'usmHMAC192SHA256AuthProtocol',
'hmac256-sha384': 'usmHMAC256SHA384AuthProtocol',
'hmac384-sha512': 'usmHMAC384SHA512AuthProtocol',
}
MAP_PRIV_PROTOCOLS = {
'none': 'usmNoPrivProtocol',
'des': 'usmDESPrivProtocol',
'3des-ede': 'usm3DESEDEPrivProtocol',
'aes-cfb-128': 'usmAesCfb128Protocol',
'aes-cfb-192': 'usmAesCfb192Protocol',
'aes-cfb-256': 'usmAesCfb256Protocol',
}
|
"""SNMP constants."""
conf_accept_errors = 'accept_errors'
conf_auth_key = 'auth_key'
conf_auth_protocol = 'auth_protocol'
conf_baseoid = 'baseoid'
conf_community = 'community'
conf_default_value = 'default_value'
conf_priv_key = 'priv_key'
conf_priv_protocol = 'priv_protocol'
conf_version = 'version'
default_auth_protocol = 'none'
default_community = 'public'
default_host = 'localhost'
default_name = 'SNMP'
default_port = '161'
default_priv_protocol = 'none'
default_version = '1'
snmp_versions = {'1': 0, '2c': 1, '3': None}
map_auth_protocols = {'none': 'usmNoAuthProtocol', 'hmac-md5': 'usmHMACMD5AuthProtocol', 'hmac-sha': 'usmHMACSHAAuthProtocol', 'hmac128-sha224': 'usmHMAC128SHA224AuthProtocol', 'hmac192-sha256': 'usmHMAC192SHA256AuthProtocol', 'hmac256-sha384': 'usmHMAC256SHA384AuthProtocol', 'hmac384-sha512': 'usmHMAC384SHA512AuthProtocol'}
map_priv_protocols = {'none': 'usmNoPrivProtocol', 'des': 'usmDESPrivProtocol', '3des-ede': 'usm3DESEDEPrivProtocol', 'aes-cfb-128': 'usmAesCfb128Protocol', 'aes-cfb-192': 'usmAesCfb192Protocol', 'aes-cfb-256': 'usmAesCfb256Protocol'}
|
try:
while 1:
n=int(input())
k=(n-10)//9
m=n-10-9*k
print(81*(k+1)+m*(m+2)+1)
except:pass
|
try:
while 1:
n = int(input())
k = (n - 10) // 9
m = n - 10 - 9 * k
print(81 * (k + 1) + m * (m + 2) + 1)
except:
pass
|
def run(df, docs):
for doc in docs:
doc.start("t10 - Columns to lowercase", df)
columns = list(df.columns)
# for each column
for i in columns:
try:
# all charts to lowercase and no leading or trailing spaces
df[i] = df[i].str.lower().str.strip()
except:
continue
for doc in docs:
doc.end(df)
return df
|
def run(df, docs):
for doc in docs:
doc.start('t10 - Columns to lowercase', df)
columns = list(df.columns)
for i in columns:
try:
df[i] = df[i].str.lower().str.strip()
except:
continue
for doc in docs:
doc.end(df)
return df
|
n = int(input())
for i in range(n):
s = int(input())
p = 0
for j in range(0, s):
p = (p * 2) + 1
print(p)
|
n = int(input())
for i in range(n):
s = int(input())
p = 0
for j in range(0, s):
p = p * 2 + 1
print(p)
|
#!/usr/bin/env python
#
# chemweight.py
#
#
# import re
mass = {
"H": 1.00794,
"He": 4.002602,
"Li": 6.941,
"Be": 9.012182,
"B": 10.811,
"C": 12.011,
"N": 14.00674,
"O": 15.9994,
"F": 18.9984032,
"Ne": 20.1797,
"Na": 22.989768,
"Mg": 24.3050,
"Al": 26.981539,
"Si": 28.0855,
"P": 30.973762,
"S": 32.066,
"Cl": 35.4527,
"Ar": 39.948,
"K": 39.0983,
"Ca": 40.078,
"Sc": 44.955910,
"Ti": 47.88,
"V": 50.9415,
"Cr": 51.9961,
"Mn": 54.93805,
"Fe": 55.847,
"Co": 58.93320,
"Ni": 58.6934,
"Cu": 63.546,
"Zn": 65.39,
"Ga": 69.723,
"Ge": 72.61,
"As": 74.92159,
"Se": 78.96,
"Br": 79.904,
"Kr": 83.80,
"Rb": 85.4678,
"Sr": 87.62,
"Y": 88.90585,
"Zr": 91.224,
"Nb": 92.90638,
"Mo": 95.94,
"Tc": 98,
"Ru": 101.07,
"Rh": 102.90550,
"Pd": 106.42,
"Ag": 107.8682,
"Cd": 112.411,
"In": 114.82,
"Sn": 118.710,
"Sb": 121.757,
"Te": 127.60,
"I": 126.90447,
"Xe": 131.29,
"Cs": 132.90543,
"Ba": 137.327,
"La": 138.9055,
"Ce": 140.115,
"Pr": 140.90765,
"Nd": 144.24,
"Pm": 145,
"Sm": 150.36,
"Eu": 151.965,
"Gd": 157.25,
"Tb": 158.92534,
"Dy": 162.50,
"Ho": 164.93032,
"Er": 167.26,
"Tm": 168.93421,
"Yb": 173.04,
"Lu": 174.967,
"Hf": 178.49,
"Ta": 180.9479,
"W": 183.85,
"Re": 186.207,
"Os": 190.2,
"Ir": 192.22,
"Pt": 195.08,
"Au": 196.96654,
"Hg": 200.59,
"Tl": 204.3833,
"Pb": 207.2,
"Bi": 208.98037,
"Po": 209,
"At": 210,
"Rn": 222,
"Fr": 223,
"Ra": 226.0254,
"Ac": 227,
"Th": 232.0381,
"Pa": 213.0359,
"U": 238.0289,
"Np": 237.0482,
"Pu": 244,
"Am": 243,
"Cm": 247,
"Bk": 247,
"Cf": 251,
"Es": 252,
"Fm": 257,
"Md": 258,
"No": 259,
"Lr": 260,
"Rf": 261,
"Db": 262,
"Sg": 263,
"Bh": 262,
"Hs": 265,
"Mt": 266,
}
|
mass = {'H': 1.00794, 'He': 4.002602, 'Li': 6.941, 'Be': 9.012182, 'B': 10.811, 'C': 12.011, 'N': 14.00674, 'O': 15.9994, 'F': 18.9984032, 'Ne': 20.1797, 'Na': 22.989768, 'Mg': 24.305, 'Al': 26.981539, 'Si': 28.0855, 'P': 30.973762, 'S': 32.066, 'Cl': 35.4527, 'Ar': 39.948, 'K': 39.0983, 'Ca': 40.078, 'Sc': 44.95591, 'Ti': 47.88, 'V': 50.9415, 'Cr': 51.9961, 'Mn': 54.93805, 'Fe': 55.847, 'Co': 58.9332, 'Ni': 58.6934, 'Cu': 63.546, 'Zn': 65.39, 'Ga': 69.723, 'Ge': 72.61, 'As': 74.92159, 'Se': 78.96, 'Br': 79.904, 'Kr': 83.8, 'Rb': 85.4678, 'Sr': 87.62, 'Y': 88.90585, 'Zr': 91.224, 'Nb': 92.90638, 'Mo': 95.94, 'Tc': 98, 'Ru': 101.07, 'Rh': 102.9055, 'Pd': 106.42, 'Ag': 107.8682, 'Cd': 112.411, 'In': 114.82, 'Sn': 118.71, 'Sb': 121.757, 'Te': 127.6, 'I': 126.90447, 'Xe': 131.29, 'Cs': 132.90543, 'Ba': 137.327, 'La': 138.9055, 'Ce': 140.115, 'Pr': 140.90765, 'Nd': 144.24, 'Pm': 145, 'Sm': 150.36, 'Eu': 151.965, 'Gd': 157.25, 'Tb': 158.92534, 'Dy': 162.5, 'Ho': 164.93032, 'Er': 167.26, 'Tm': 168.93421, 'Yb': 173.04, 'Lu': 174.967, 'Hf': 178.49, 'Ta': 180.9479, 'W': 183.85, 'Re': 186.207, 'Os': 190.2, 'Ir': 192.22, 'Pt': 195.08, 'Au': 196.96654, 'Hg': 200.59, 'Tl': 204.3833, 'Pb': 207.2, 'Bi': 208.98037, 'Po': 209, 'At': 210, 'Rn': 222, 'Fr': 223, 'Ra': 226.0254, 'Ac': 227, 'Th': 232.0381, 'Pa': 213.0359, 'U': 238.0289, 'Np': 237.0482, 'Pu': 244, 'Am': 243, 'Cm': 247, 'Bk': 247, 'Cf': 251, 'Es': 252, 'Fm': 257, 'Md': 258, 'No': 259, 'Lr': 260, 'Rf': 261, 'Db': 262, 'Sg': 263, 'Bh': 262, 'Hs': 265, 'Mt': 266}
|
COMPANY_NAME = "Enter the legal name of your business (not the trading name) then use 'Search Companies House'\
and select your company from the list. It will then prefill your company number and postcode."
COMPANY_WEBSITE = "Website address, where we can see your products online."
COMPANY_NUMBER = "The 8 digit number you received when registering your company at Companies House."
TRIAGE_TURNOVER = "You may use 12 months rolling or last year's annual turnover."
TRIAGE_SKU_NUMBER = "A stock keeping unit is an individual item, such as a product or a service\
that is offered for sale."
TRIAGE_TRADEMARKED = "Some marketplaces will only sell products that are trademarked."
TRIAGE_DESCRIPTION = "Your pitch is important and the information you provide may be used to introduce you to the\
marketplace. You could describe your business including your products, your customers and how\
you market your products in a few paragraphs."
TRIAGE_DESCRIPTION = "Your pitch is important and the information you provide may be used to introduce you to the\
marketplace.<br /><br />You could describe your business, including your products, your\
customers and how you market your products in a few paragraphs."
|
company_name = "Enter the legal name of your business (not the trading name) then use 'Search Companies House' and select your company from the list. It will then prefill your company number and postcode."
company_website = 'Website address, where we can see your products online.'
company_number = 'The 8 digit number you received when registering your company at Companies House.'
triage_turnover = "You may use 12 months rolling or last year's annual turnover."
triage_sku_number = 'A stock keeping unit is an individual item, such as a product or a service that is offered for sale.'
triage_trademarked = 'Some marketplaces will only sell products that are trademarked.'
triage_description = 'Your pitch is important and the information you provide may be used to introduce you to the marketplace. You could describe your business including your products, your customers and how you market your products in a few paragraphs.'
triage_description = 'Your pitch is important and the information you provide may be used to introduce you to the marketplace.<br /><br />You could describe your business, including your products, your customers and how you market your products in a few paragraphs.'
|
#!/usr/bin/env python
#pylint: skip-file
# This source code is licensed under the Apache license found in the
# LICENSE file in the root directory of this project.
class ZtdPlatformImage(object):
def __init__(self):
"""
Attributes:
swaggerTypes (dict): The key is attribute name and the value is attribute type.
attributeMap (dict): The key is attribute name and the value is json key in definition.
"""
self.swaggerTypes = {
'imageName': 'str',
'imageId': 'str',
'platform': 'list[ZtdPlatform]',
'imageVersion': 'str',
'imageSize': 'str'
}
self.attributeMap = {
'imageName': 'imageName',
'imageId': 'imageId',
'platform': 'platform',
'imageVersion': 'imageVersion',
'imageSize': 'imageSize'
}
#Image name
self.imageName = None # str
#Image ID
self.imageId = None # str
self.platform = None # list[ZtdPlatform]
#Image version
self.imageVersion = None # str
#Image size in bytes
self.imageSize = None # str
|
class Ztdplatformimage(object):
def __init__(self):
"""
Attributes:
swaggerTypes (dict): The key is attribute name and the value is attribute type.
attributeMap (dict): The key is attribute name and the value is json key in definition.
"""
self.swaggerTypes = {'imageName': 'str', 'imageId': 'str', 'platform': 'list[ZtdPlatform]', 'imageVersion': 'str', 'imageSize': 'str'}
self.attributeMap = {'imageName': 'imageName', 'imageId': 'imageId', 'platform': 'platform', 'imageVersion': 'imageVersion', 'imageSize': 'imageSize'}
self.imageName = None
self.imageId = None
self.platform = None
self.imageVersion = None
self.imageSize = None
|
{
"targets": [
{
"target_name": "naudiodon",
"sources": [
"src/naudiodon.cc",
"src/GetDevices.cc",
"src/GetHostAPIs.cc",
"src/AudioIO.cc",
"src/PaContext.cc"
],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")",
"portaudio/include"
],
"dependencies": [
"<!(node -p \"require('node-addon-api').gyp\")"
],
"conditions" : [
[
'OS=="mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_RTTI': 'YES',
'MACOSX_DEPLOYMENT_TARGET': '10.7',
'OTHER_CPLUSPLUSFLAGS': [
'-std=c++11',
'-stdlib=libc++',
'-fexceptions'
],
'OTHER_LDFLAGS': [
"-Wl,-rpath,<@(module_root_dir)/build/Release"
]
},
"link_settings": {
"libraries": [
"<@(module_root_dir)/build/Release/libportaudio.dylib"
]
},
"copies": [
{
"destination": "build/Release/",
"files": [
"<!@(ls -1 portaudio/bin/libportaudio.dylib)"
]
}
]
},
],
[
'OS=="win"', {
"configurations": {
"Release": {
"msvs_settings": {
"VCCLCompilerTool": {
"RuntimeTypeInfo": "true",
"ExceptionHandling": 1
}
}
}
},
"libraries": [
"-l../portaudio/bin/portaudio_x64.lib"
],
"copies": [
{
"destination": "build/Release",
"files": [
"portaudio/bin/portaudio_x64.dll"
]
}
]
},
],
[
'OS=="linux"', {
"conditions": [
['target_arch=="arm"', {
"cflags_cc!": [
"-fno-rtti",
"-fno-exceptions"
],
"cflags_cc": [
"-std=c++11",
"-fexceptions"
],
"link_settings": {
"libraries": [
"<@(module_root_dir)/build/Release/libportaudio.so.2"
],
"ldflags": [
"-L<@(module_root_dir)/build/Release",
"-Wl,-rpath,<@(module_root_dir)/build/Release"
]
},
"copies": [
{
"destination": "build/Release/",
"files": [
"<@(module_root_dir)/portaudio/bin_armhf/libportaudio.so.2"
]
}
]
},
{ # ia32 or x64
"cflags_cc!": [
"-fno-rtti",
"-fno-exceptions"
],
"cflags_cc": [
"-std=c++11",
"-fexceptions"
],
"link_settings": {
"libraries": [
"<@(module_root_dir)/build/Release/libportaudio.so.2"
],
"ldflags": [
"-L<@(module_root_dir)/build/Release",
"-Wl,-rpath,<@(module_root_dir)/build/Release"
]
},
"copies": [
{
"destination": "build/Release/",
"files": [
"<@(module_root_dir)/portaudio/bin/libportaudio.so.2"
]
}
]
}]
]
}
]
]
}
]
}
|
{'targets': [{'target_name': 'naudiodon', 'sources': ['src/naudiodon.cc', 'src/GetDevices.cc', 'src/GetHostAPIs.cc', 'src/AudioIO.cc', 'src/PaContext.cc'], 'include_dirs': ['<!@(node -p "require(\'node-addon-api\').include")', 'portaudio/include'], 'dependencies': ['<!(node -p "require(\'node-addon-api\').gyp")'], 'conditions': [['OS=="mac"', {'xcode_settings': {'GCC_ENABLE_CPP_RTTI': 'YES', 'MACOSX_DEPLOYMENT_TARGET': '10.7', 'OTHER_CPLUSPLUSFLAGS': ['-std=c++11', '-stdlib=libc++', '-fexceptions'], 'OTHER_LDFLAGS': ['-Wl,-rpath,<@(module_root_dir)/build/Release']}, 'link_settings': {'libraries': ['<@(module_root_dir)/build/Release/libportaudio.dylib']}, 'copies': [{'destination': 'build/Release/', 'files': ['<!@(ls -1 portaudio/bin/libportaudio.dylib)']}]}], ['OS=="win"', {'configurations': {'Release': {'msvs_settings': {'VCCLCompilerTool': {'RuntimeTypeInfo': 'true', 'ExceptionHandling': 1}}}}, 'libraries': ['-l../portaudio/bin/portaudio_x64.lib'], 'copies': [{'destination': 'build/Release', 'files': ['portaudio/bin/portaudio_x64.dll']}]}], ['OS=="linux"', {'conditions': [['target_arch=="arm"', {'cflags_cc!': ['-fno-rtti', '-fno-exceptions'], 'cflags_cc': ['-std=c++11', '-fexceptions'], 'link_settings': {'libraries': ['<@(module_root_dir)/build/Release/libportaudio.so.2'], 'ldflags': ['-L<@(module_root_dir)/build/Release', '-Wl,-rpath,<@(module_root_dir)/build/Release']}, 'copies': [{'destination': 'build/Release/', 'files': ['<@(module_root_dir)/portaudio/bin_armhf/libportaudio.so.2']}]}, {'cflags_cc!': ['-fno-rtti', '-fno-exceptions'], 'cflags_cc': ['-std=c++11', '-fexceptions'], 'link_settings': {'libraries': ['<@(module_root_dir)/build/Release/libportaudio.so.2'], 'ldflags': ['-L<@(module_root_dir)/build/Release', '-Wl,-rpath,<@(module_root_dir)/build/Release']}, 'copies': [{'destination': 'build/Release/', 'files': ['<@(module_root_dir)/portaudio/bin/libportaudio.so.2']}]}]]}]]}]}
|
#!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# California Institute of Technology
# (C) 2007 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
class Item(object):
"""A Trait paired with its value and locator."""
def __init__(self, trait, descriptor):
self._trait = trait
self._descriptor = descriptor
attr = property(lambda self: self._trait.attr)
name = property(lambda self: self._trait.name)
default = property(lambda self: self._trait.default)
type = property(lambda self: self._trait.type)
meta = property(lambda self: self._trait.meta)
value = property(lambda self: self._descriptor.value)
locator = property(lambda self: self._descriptor.locator)
# end of file
|
class Item(object):
"""A Trait paired with its value and locator."""
def __init__(self, trait, descriptor):
self._trait = trait
self._descriptor = descriptor
attr = property(lambda self: self._trait.attr)
name = property(lambda self: self._trait.name)
default = property(lambda self: self._trait.default)
type = property(lambda self: self._trait.type)
meta = property(lambda self: self._trait.meta)
value = property(lambda self: self._descriptor.value)
locator = property(lambda self: self._descriptor.locator)
|
#-------------------------------------------------------------------------------
# 6857
#-------------------------------------------------------------------------------
N = 600851475143
d = 3
while d * d <= N and N != 1:
while N % d == 0:
N //= d
last = d
d += 2
if N != 1:
last = N
print(last)
|
n = 600851475143
d = 3
while d * d <= N and N != 1:
while N % d == 0:
n //= d
last = d
d += 2
if N != 1:
last = N
print(last)
|
def doIt (func, x, y):
z = func (x, y)
return z
def add (arg1, arg2):
return arg1 + arg2
def sub (arg1, arg2):
return arg1 - arg2
print ('Addition:')
print ( doIt (add, 2, 3) ) # Passing the name of the function
# and its arguments
print ('Subtraction:')
print ( doIt (sub, 2, 3) )
|
def do_it(func, x, y):
z = func(x, y)
return z
def add(arg1, arg2):
return arg1 + arg2
def sub(arg1, arg2):
return arg1 - arg2
print('Addition:')
print(do_it(add, 2, 3))
print('Subtraction:')
print(do_it(sub, 2, 3))
|
list=["rayne","coder","python","c","c++","java"]
#REMOVE
list.remove("java")
print(list)
#remove BY index
list.pop(1) # 1- coder
print(list)
|
list = ['rayne', 'coder', 'python', 'c', 'c++', 'java']
list.remove('java')
print(list)
list.pop(1)
print(list)
|
n=int(input())
namibia=0
kenya=0
tanzania=0
ethiopia=0
zim=0
zam=0
zimzam=0
zimzamMode=False
namaVisit=False
last=''
lgo=""
for i in range(n):
go=input()
lgo=go
if last==go: continue
if go=='kenya': kenya=1
if go=='tanzania': tanzania=1
if go=='ethiopia': ethiopia=1
if go=='zambia':
if last=='zimbabwe':
zim-=1
zimzam+=1
else: zam+=1
last=go
continue
if go=='zimbabwe':
if last=='zambia':
zam-=1
zimzam+=1
else: zim+=1
last=go
continue
zimzamMode=False
if go=='south-africa' and namibia==0: namaVisit=True
if go=='namibia': namibia=1
last=go
ans=kenya*50+ethiopia*50+tanzania*50
if namaVisit: ans+=namibia*40
else: ans+=namibia*140
ans+=zim//2*45+zim%2*30
ans+=zam//2*80+zam%2*50
ans+=zimzam*50
if n%2==1 or (n==2 and lgo=="tanzania") : print(-1)
else: print(ans)
|
n = int(input())
namibia = 0
kenya = 0
tanzania = 0
ethiopia = 0
zim = 0
zam = 0
zimzam = 0
zimzam_mode = False
nama_visit = False
last = ''
lgo = ''
for i in range(n):
go = input()
lgo = go
if last == go:
continue
if go == 'kenya':
kenya = 1
if go == 'tanzania':
tanzania = 1
if go == 'ethiopia':
ethiopia = 1
if go == 'zambia':
if last == 'zimbabwe':
zim -= 1
zimzam += 1
else:
zam += 1
last = go
continue
if go == 'zimbabwe':
if last == 'zambia':
zam -= 1
zimzam += 1
else:
zim += 1
last = go
continue
zimzam_mode = False
if go == 'south-africa' and namibia == 0:
nama_visit = True
if go == 'namibia':
namibia = 1
last = go
ans = kenya * 50 + ethiopia * 50 + tanzania * 50
if namaVisit:
ans += namibia * 40
else:
ans += namibia * 140
ans += zim // 2 * 45 + zim % 2 * 30
ans += zam // 2 * 80 + zam % 2 * 50
ans += zimzam * 50
if n % 2 == 1 or (n == 2 and lgo == 'tanzania'):
print(-1)
else:
print(ans)
|
#
# PySNMP MIB module NETREALITY-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NETREALITY-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:10:11 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, SingleValueConstraint, ValueSizeConstraint, ConstraintsIntersection, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsIntersection", "ValueRangeConstraint")
DLCI, Index = mibBuilder.importSymbols("RFC1315-MIB", "DLCI", "Index")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, Unsigned32, enterprises, Counter32, Integer32, Counter64, NotificationType, ObjectIdentity, IpAddress, Bits, NotificationType, Gauge32, ModuleIdentity, iso, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "Unsigned32", "enterprises", "Counter32", "Integer32", "Counter64", "NotificationType", "ObjectIdentity", "IpAddress", "Bits", "NotificationType", "Gauge32", "ModuleIdentity", "iso", "MibIdentifier")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
netreality = MibIdentifier((1, 3, 6, 1, 4, 1, 2382))
nrGeneral = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 1))
nrProducts = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 2))
nrFr = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 3))
nrInterface = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 3, 1))
nrFrame_relay = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 3, 2)).setLabel("nrFrame-relay")
nrRmon = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 3, 3))
nrNlMatrix = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 3, 3, 1))
nrNlHost = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 3, 3, 2))
nrBulk = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 3, 4))
nrtCtrl = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 3, 4, 1))
nrShortTermData = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 3, 4, 2))
nrLongTermData = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 3, 4, 3))
nrManagers = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 1, 1))
nrSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 1, 2))
nrTrapInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 1, 3))
nrTrapHostsTable = MibTable((1, 3, 6, 1, 4, 1, 2382, 1, 1, 1), )
if mibBuilder.loadTexts: nrTrapHostsTable.setStatus('mandatory')
nrTrapHostsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2382, 1, 1, 1, 1), ).setIndexNames((0, "NETREALITY-MIB", "nrTrapIPaddress"))
if mibBuilder.loadTexts: nrTrapHostsEntry.setStatus('mandatory')
nrTrapIPaddress = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 1, 1, 1, 1, 1), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nrTrapIPaddress.setStatus('mandatory')
nrTrapPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 1, 1, 1, 1, 2), Integer32().clone(162)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nrTrapPort.setStatus('mandatory')
nrSysReset = MibScalar((1, 3, 6, 1, 4, 1, 2382, 1, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nrSysReset.setStatus('mandatory')
nrSysSetDefaults = MibScalar((1, 3, 6, 1, 4, 1, 2382, 1, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("off", 1), ("set", 2), ("in-process", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nrSysSetDefaults.setStatus('mandatory')
nrSysTrapCounter = MibScalar((1, 3, 6, 1, 4, 1, 2382, 1, 2, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrSysTrapCounter.setStatus('mandatory')
nrSysEventReset = MibScalar((1, 3, 6, 1, 4, 1, 2382, 1, 2, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("off", 1), ("reset", 2), ("in-process", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nrSysEventReset.setStatus('mandatory')
nrSysSerial = MibScalar((1, 3, 6, 1, 4, 1, 2382, 1, 2, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrSysSerial.setStatus('mandatory')
nrWanwise = MibIdentifier((1, 3, 6, 1, 4, 1, 2382, 2, 1))
nrIfTable = MibTable((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1), )
if mibBuilder.loadTexts: nrIfTable.setStatus('mandatory')
nrIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1), ).setIndexNames((0, "NETREALITY-MIB", "nrIfIndex"))
if mibBuilder.loadTexts: nrIfEntry.setStatus('mandatory')
nrIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrIfIndex.setStatus('mandatory')
nrIfInUtilization = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrIfInUtilization.setStatus('mandatory')
nrIfOutUtilization = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrIfOutUtilization.setStatus('mandatory')
nrIfInErrRatio = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrIfInErrRatio.setStatus('mandatory')
nrIfOutErrRatio = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrIfOutErrRatio.setStatus('mandatory')
nrIfPhysConnType = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("active", 2), ("passive", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrIfPhysConnType.setStatus('mandatory')
nrIfType = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14))).clone(namedValues=NamedValues(("other", 1), ("v35", 2), ("v35db", 3), ("eia530-rs449", 4), ("x21-x24", 5), ("rs232", 6), ("t1", 7), ("e1", 8), ("hssi", 9), ("frame-relay", 10), ("frame-relay-cisco", 11), ("ppp", 12), ("hdlc-cisco", 13), ("ppp-bay", 14)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrIfType.setStatus('mandatory')
nrIfOperMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("monitor", 2), ("shaper", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrIfOperMode.setStatus('mandatory')
nrIfGroupNm = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrIfGroupNm.setStatus('mandatory')
nrFrCircuitTable = MibTable((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2), )
if mibBuilder.loadTexts: nrFrCircuitTable.setStatus('mandatory')
nrFrCircuitEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1), ).setIndexNames((0, "NETREALITY-MIB", "nrFrCircuitIfIndex"), (0, "NETREALITY-MIB", "nrFrCircuitDlci"))
if mibBuilder.loadTexts: nrFrCircuitEntry.setStatus('mandatory')
nrFrCircuitIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 1), Index()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrFrCircuitIfIndex.setStatus('mandatory')
nrFrCircuitDlci = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 2), DLCI()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrFrCircuitDlci.setStatus('mandatory')
nrFrCircuitInCIRUtilization = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrFrCircuitInCIRUtilization.setStatus('mandatory')
nrFrCircuitOutCIRUtilization = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrFrCircuitOutCIRUtilization.setStatus('mandatory')
nrFrCircuitInDiscard = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrFrCircuitInDiscard.setStatus('mandatory')
nrFrCircuitOutDiscard = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrFrCircuitOutDiscard.setStatus('mandatory')
nrFrCircuitEchoAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 7), IpAddress().clone(hexValue="00000000")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nrFrCircuitEchoAddress.setStatus('mandatory')
nrFrCircuitEchoProto = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("icmp", 2))).clone(2)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nrFrCircuitEchoProto.setStatus('mandatory')
nrFrCircuitEchoStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2))).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nrFrCircuitEchoStatus.setStatus('mandatory')
nrFrCircuitLastResponseTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrFrCircuitLastResponseTime.setStatus('mandatory')
nrNlMatrixTable = MibTable((1, 3, 6, 1, 4, 1, 2382, 3, 3, 1, 1), )
if mibBuilder.loadTexts: nrNlMatrixTable.setStatus('mandatory')
nrNlMatrixEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2382, 3, 3, 1, 1, 1), ).setIndexNames((0, "NETREALITY-MIB", "nrNlMatrixifNumber"), (0, "NETREALITY-MIB", "nrNlMatrixDlciNumber"), (0, "NETREALITY-MIB", "nrNlMatrixProtocol"), (0, "NETREALITY-MIB", "nrNlMatrixAddress1"), (0, "NETREALITY-MIB", "nrNlMatrixAddress2"))
if mibBuilder.loadTexts: nrNlMatrixEntry.setStatus('mandatory')
nrNlMatrixifNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 3, 1, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrNlMatrixifNumber.setStatus('mandatory')
nrNlMatrixDlciNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 3, 1, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrNlMatrixDlciNumber.setStatus('mandatory')
nrNlMatrixProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 3, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrNlMatrixProtocol.setStatus('mandatory')
nrNlMatrixAddress1 = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 3, 1, 1, 1, 4), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrNlMatrixAddress1.setStatus('mandatory')
nrNlMatrixAddress2 = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 3, 1, 1, 1, 5), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrNlMatrixAddress2.setStatus('mandatory')
nrNl1to2UfromCIR = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 3, 1, 1, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrNl1to2UfromCIR.setStatus('mandatory')
nrNlHostTable = MibTable((1, 3, 6, 1, 4, 1, 2382, 3, 3, 2, 1), )
if mibBuilder.loadTexts: nrNlHostTable.setStatus('mandatory')
nrNlHostEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2382, 3, 3, 2, 1, 1), ).setIndexNames((0, "NETREALITY-MIB", "nrNlHostifNumber"), (0, "NETREALITY-MIB", "nrNlHostDlciNumber"), (0, "NETREALITY-MIB", "nrNlMatrixProtocol"), (0, "NETREALITY-MIB", "nrNlHostAddress"))
if mibBuilder.loadTexts: nrNlHostEntry.setStatus('mandatory')
nrNlHostifNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 3, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrNlHostifNumber.setStatus('mandatory')
nrNlHostDlciNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 3, 2, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrNlHostDlciNumber.setStatus('mandatory')
nrNlHostProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 3, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrNlHostProtocol.setStatus('mandatory')
nrNlHostAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 3, 2, 1, 1, 4), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrNlHostAddress.setStatus('mandatory')
nrNlHostUtilization = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 3, 2, 1, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrNlHostUtilization.setStatus('mandatory')
nrtCtrlLtermInterval = MibScalar((1, 3, 6, 1, 4, 1, 2382, 3, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(300, 3600)).clone(900)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nrtCtrlLtermInterval.setStatus('mandatory')
nrtCtrlLtermBucketsGrant = MibScalar((1, 3, 6, 1, 4, 1, 2382, 3, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 16))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrtCtrlLtermBucketsGrant.setStatus('mandatory')
nrtCtrlLtermLast = MibScalar((1, 3, 6, 1, 4, 1, 2382, 3, 4, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrtCtrlLtermLast.setStatus('mandatory')
nrtCtrlLtermTime = MibScalar((1, 3, 6, 1, 4, 1, 2382, 3, 4, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrtCtrlLtermTime.setStatus('mandatory')
nrtCtrlStermInterval = MibScalar((1, 3, 6, 1, 4, 1, 2382, 3, 4, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(30, 300)).clone(60)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nrtCtrlStermInterval.setStatus('mandatory')
nrtCtrlStermBucketsGrant = MibScalar((1, 3, 6, 1, 4, 1, 2382, 3, 4, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 16))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrtCtrlStermBucketsGrant.setStatus('mandatory')
nrtCtrlStermLast = MibScalar((1, 3, 6, 1, 4, 1, 2382, 3, 4, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrtCtrlStermLast.setStatus('mandatory')
nrtCtrlStermTime = MibScalar((1, 3, 6, 1, 4, 1, 2382, 3, 4, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrtCtrlStermTime.setStatus('mandatory')
nrShortTermDataTable = MibTable((1, 3, 6, 1, 4, 1, 2382, 3, 4, 2, 1), )
if mibBuilder.loadTexts: nrShortTermDataTable.setStatus('mandatory')
nrShortTermDataEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2382, 3, 4, 2, 1, 1), ).setIndexNames((0, "NETREALITY-MIB", "nrShortTermBucketIndex"), (0, "NETREALITY-MIB", "nrShortTermDataIndex"))
if mibBuilder.loadTexts: nrShortTermDataEntry.setStatus('mandatory')
nrShortTermBucketIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 4, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrShortTermBucketIndex.setStatus('mandatory')
nrShortTermDataIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 4, 2, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrShortTermDataIndex.setStatus('mandatory')
nrShortTermDataData = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 4, 2, 1, 1, 3), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrShortTermDataData.setStatus('mandatory')
nrLongTermDataTable = MibTable((1, 3, 6, 1, 4, 1, 2382, 3, 4, 3, 1), )
if mibBuilder.loadTexts: nrLongTermDataTable.setStatus('mandatory')
nrLongTermDataEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2382, 3, 4, 3, 1, 1), ).setIndexNames((0, "NETREALITY-MIB", "nrLongTermBucketIndex"), (0, "NETREALITY-MIB", "nrLongTermDataIndex"))
if mibBuilder.loadTexts: nrLongTermDataEntry.setStatus('mandatory')
nrLongTermBucketIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 4, 3, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrLongTermBucketIndex.setStatus('mandatory')
nrLongTermDataIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 4, 3, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrLongTermDataIndex.setStatus('mandatory')
nrLongTermDataData = MibTableColumn((1, 3, 6, 1, 4, 1, 2382, 3, 4, 3, 1, 1, 3), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrLongTermDataData.setStatus('mandatory')
nrTrapRSType = MibScalar((1, 3, 6, 1, 4, 1, 2382, 1, 3, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("memory", 1), ("ethernet", 2), ("wanadapter", 3), ("flash", 4), ("com1", 5), ("unknown", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nrTrapRSType.setStatus('mandatory')
nrShortResources = NotificationType((1, 3, 6, 1, 4, 1, 2382) + (0,1)).setObjects(("NETREALITY-MIB", "nrTrapRSType"))
nrDiagnosticFailure = NotificationType((1, 3, 6, 1, 4, 1, 2382) + (0,2)).setObjects(("NETREALITY-MIB", "nrTrapRSType"))
nrDLCIRemove = NotificationType((1, 3, 6, 1, 4, 1, 2382) + (0,3)).setObjects(("NETREALITY-MIB", "nrFrCircuitIfIndex"), ("NETREALITY-MIB", "nrFrCircuitDlci"))
mibBuilder.exportSymbols("NETREALITY-MIB", nrIfOutUtilization=nrIfOutUtilization, nrtCtrlLtermBucketsGrant=nrtCtrlLtermBucketsGrant, nrFrCircuitInCIRUtilization=nrFrCircuitInCIRUtilization, nrIfGroupNm=nrIfGroupNm, nrNlMatrixTable=nrNlMatrixTable, nrtCtrlStermBucketsGrant=nrtCtrlStermBucketsGrant, nrtCtrlStermLast=nrtCtrlStermLast, nrNlHostTable=nrNlHostTable, nrFrCircuitIfIndex=nrFrCircuitIfIndex, nrTrapPort=nrTrapPort, nrtCtrlStermInterval=nrtCtrlStermInterval, nrIfEntry=nrIfEntry, nrIfOperMode=nrIfOperMode, nrLongTermData=nrLongTermData, nrShortTermBucketIndex=nrShortTermBucketIndex, nrSysSetDefaults=nrSysSetDefaults, nrShortTermDataIndex=nrShortTermDataIndex, nrTrapInfo=nrTrapInfo, nrNlHostProtocol=nrNlHostProtocol, nrNlMatrixAddress2=nrNlMatrixAddress2, nrBulk=nrBulk, nrFrCircuitEchoProto=nrFrCircuitEchoProto, nrShortTermDataEntry=nrShortTermDataEntry, nrSysSerial=nrSysSerial, nrNlMatrixProtocol=nrNlMatrixProtocol, nrNlHostAddress=nrNlHostAddress, nrtCtrl=nrtCtrl, nrNlHostUtilization=nrNlHostUtilization, nrNlMatrixDlciNumber=nrNlMatrixDlciNumber, nrNlHostDlciNumber=nrNlHostDlciNumber, nrTrapHostsTable=nrTrapHostsTable, nrtCtrlStermTime=nrtCtrlStermTime, nrManagers=nrManagers, nrWanwise=nrWanwise, nrIfInUtilization=nrIfInUtilization, nrRmon=nrRmon, nrNlMatrix=nrNlMatrix, nrLongTermDataIndex=nrLongTermDataIndex, nrFrame_relay=nrFrame_relay, nrFr=nrFr, nrNl1to2UfromCIR=nrNl1to2UfromCIR, nrtCtrlLtermInterval=nrtCtrlLtermInterval, nrNlHost=nrNlHost, nrIfTable=nrIfTable, nrFrCircuitLastResponseTime=nrFrCircuitLastResponseTime, nrDLCIRemove=nrDLCIRemove, nrNlMatrixAddress1=nrNlMatrixAddress1, netreality=netreality, nrFrCircuitEchoAddress=nrFrCircuitEchoAddress, nrNlHostifNumber=nrNlHostifNumber, nrShortTermData=nrShortTermData, nrShortResources=nrShortResources, nrTrapIPaddress=nrTrapIPaddress, nrLongTermBucketIndex=nrLongTermBucketIndex, nrLongTermDataData=nrLongTermDataData, nrIfInErrRatio=nrIfInErrRatio, nrFrCircuitEchoStatus=nrFrCircuitEchoStatus, nrTrapHostsEntry=nrTrapHostsEntry, nrtCtrlLtermLast=nrtCtrlLtermLast, nrSystem=nrSystem, nrSysEventReset=nrSysEventReset, nrIfIndex=nrIfIndex, nrSysTrapCounter=nrSysTrapCounter, nrIfPhysConnType=nrIfPhysConnType, nrNlMatrixEntry=nrNlMatrixEntry, nrTrapRSType=nrTrapRSType, nrFrCircuitOutCIRUtilization=nrFrCircuitOutCIRUtilization, nrProducts=nrProducts, nrLongTermDataTable=nrLongTermDataTable, nrIfType=nrIfType, nrFrCircuitDlci=nrFrCircuitDlci, nrFrCircuitEntry=nrFrCircuitEntry, nrFrCircuitOutDiscard=nrFrCircuitOutDiscard, nrIfOutErrRatio=nrIfOutErrRatio, nrLongTermDataEntry=nrLongTermDataEntry, nrNlHostEntry=nrNlHostEntry, nrtCtrlLtermTime=nrtCtrlLtermTime, nrFrCircuitTable=nrFrCircuitTable, nrSysReset=nrSysReset, nrShortTermDataData=nrShortTermDataData, nrFrCircuitInDiscard=nrFrCircuitInDiscard, nrNlMatrixifNumber=nrNlMatrixifNumber, nrGeneral=nrGeneral, nrShortTermDataTable=nrShortTermDataTable, nrDiagnosticFailure=nrDiagnosticFailure, nrInterface=nrInterface)
|
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, single_value_constraint, value_size_constraint, constraints_intersection, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint')
(dlci, index) = mibBuilder.importSymbols('RFC1315-MIB', 'DLCI', 'Index')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(mib_scalar, mib_table, mib_table_row, mib_table_column, time_ticks, unsigned32, enterprises, counter32, integer32, counter64, notification_type, object_identity, ip_address, bits, notification_type, gauge32, module_identity, iso, mib_identifier) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'TimeTicks', 'Unsigned32', 'enterprises', 'Counter32', 'Integer32', 'Counter64', 'NotificationType', 'ObjectIdentity', 'IpAddress', 'Bits', 'NotificationType', 'Gauge32', 'ModuleIdentity', 'iso', 'MibIdentifier')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
netreality = mib_identifier((1, 3, 6, 1, 4, 1, 2382))
nr_general = mib_identifier((1, 3, 6, 1, 4, 1, 2382, 1))
nr_products = mib_identifier((1, 3, 6, 1, 4, 1, 2382, 2))
nr_fr = mib_identifier((1, 3, 6, 1, 4, 1, 2382, 3))
nr_interface = mib_identifier((1, 3, 6, 1, 4, 1, 2382, 3, 1))
nr_frame_relay = mib_identifier((1, 3, 6, 1, 4, 1, 2382, 3, 2)).setLabel('nrFrame-relay')
nr_rmon = mib_identifier((1, 3, 6, 1, 4, 1, 2382, 3, 3))
nr_nl_matrix = mib_identifier((1, 3, 6, 1, 4, 1, 2382, 3, 3, 1))
nr_nl_host = mib_identifier((1, 3, 6, 1, 4, 1, 2382, 3, 3, 2))
nr_bulk = mib_identifier((1, 3, 6, 1, 4, 1, 2382, 3, 4))
nrt_ctrl = mib_identifier((1, 3, 6, 1, 4, 1, 2382, 3, 4, 1))
nr_short_term_data = mib_identifier((1, 3, 6, 1, 4, 1, 2382, 3, 4, 2))
nr_long_term_data = mib_identifier((1, 3, 6, 1, 4, 1, 2382, 3, 4, 3))
nr_managers = mib_identifier((1, 3, 6, 1, 4, 1, 2382, 1, 1))
nr_system = mib_identifier((1, 3, 6, 1, 4, 1, 2382, 1, 2))
nr_trap_info = mib_identifier((1, 3, 6, 1, 4, 1, 2382, 1, 3))
nr_trap_hosts_table = mib_table((1, 3, 6, 1, 4, 1, 2382, 1, 1, 1))
if mibBuilder.loadTexts:
nrTrapHostsTable.setStatus('mandatory')
nr_trap_hosts_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2382, 1, 1, 1, 1)).setIndexNames((0, 'NETREALITY-MIB', 'nrTrapIPaddress'))
if mibBuilder.loadTexts:
nrTrapHostsEntry.setStatus('mandatory')
nr_trap_i_paddress = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 1, 1, 1, 1, 1), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nrTrapIPaddress.setStatus('mandatory')
nr_trap_port = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 1, 1, 1, 1, 2), integer32().clone(162)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nrTrapPort.setStatus('mandatory')
nr_sys_reset = mib_scalar((1, 3, 6, 1, 4, 1, 2382, 1, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('on', 1), ('off', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nrSysReset.setStatus('mandatory')
nr_sys_set_defaults = mib_scalar((1, 3, 6, 1, 4, 1, 2382, 1, 2, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('off', 1), ('set', 2), ('in-process', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nrSysSetDefaults.setStatus('mandatory')
nr_sys_trap_counter = mib_scalar((1, 3, 6, 1, 4, 1, 2382, 1, 2, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrSysTrapCounter.setStatus('mandatory')
nr_sys_event_reset = mib_scalar((1, 3, 6, 1, 4, 1, 2382, 1, 2, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('off', 1), ('reset', 2), ('in-process', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nrSysEventReset.setStatus('mandatory')
nr_sys_serial = mib_scalar((1, 3, 6, 1, 4, 1, 2382, 1, 2, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrSysSerial.setStatus('mandatory')
nr_wanwise = mib_identifier((1, 3, 6, 1, 4, 1, 2382, 2, 1))
nr_if_table = mib_table((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1))
if mibBuilder.loadTexts:
nrIfTable.setStatus('mandatory')
nr_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1)).setIndexNames((0, 'NETREALITY-MIB', 'nrIfIndex'))
if mibBuilder.loadTexts:
nrIfEntry.setStatus('mandatory')
nr_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrIfIndex.setStatus('mandatory')
nr_if_in_utilization = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrIfInUtilization.setStatus('mandatory')
nr_if_out_utilization = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrIfOutUtilization.setStatus('mandatory')
nr_if_in_err_ratio = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrIfInErrRatio.setStatus('mandatory')
nr_if_out_err_ratio = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrIfOutErrRatio.setStatus('mandatory')
nr_if_phys_conn_type = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('active', 2), ('passive', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrIfPhysConnType.setStatus('mandatory')
nr_if_type = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14))).clone(namedValues=named_values(('other', 1), ('v35', 2), ('v35db', 3), ('eia530-rs449', 4), ('x21-x24', 5), ('rs232', 6), ('t1', 7), ('e1', 8), ('hssi', 9), ('frame-relay', 10), ('frame-relay-cisco', 11), ('ppp', 12), ('hdlc-cisco', 13), ('ppp-bay', 14)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrIfType.setStatus('mandatory')
nr_if_oper_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('monitor', 2), ('shaper', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrIfOperMode.setStatus('mandatory')
nr_if_group_nm = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 1, 1, 1, 9), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrIfGroupNm.setStatus('mandatory')
nr_fr_circuit_table = mib_table((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2))
if mibBuilder.loadTexts:
nrFrCircuitTable.setStatus('mandatory')
nr_fr_circuit_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1)).setIndexNames((0, 'NETREALITY-MIB', 'nrFrCircuitIfIndex'), (0, 'NETREALITY-MIB', 'nrFrCircuitDlci'))
if mibBuilder.loadTexts:
nrFrCircuitEntry.setStatus('mandatory')
nr_fr_circuit_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 1), index()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrFrCircuitIfIndex.setStatus('mandatory')
nr_fr_circuit_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 2), dlci()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrFrCircuitDlci.setStatus('mandatory')
nr_fr_circuit_in_cir_utilization = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrFrCircuitInCIRUtilization.setStatus('mandatory')
nr_fr_circuit_out_cir_utilization = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrFrCircuitOutCIRUtilization.setStatus('mandatory')
nr_fr_circuit_in_discard = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrFrCircuitInDiscard.setStatus('mandatory')
nr_fr_circuit_out_discard = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrFrCircuitOutDiscard.setStatus('mandatory')
nr_fr_circuit_echo_address = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 7), ip_address().clone(hexValue='00000000')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nrFrCircuitEchoAddress.setStatus('mandatory')
nr_fr_circuit_echo_proto = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('icmp', 2))).clone(2)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nrFrCircuitEchoProto.setStatus('mandatory')
nr_fr_circuit_echo_status = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('off', 1), ('on', 2))).clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nrFrCircuitEchoStatus.setStatus('mandatory')
nr_fr_circuit_last_response_time = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 2, 2, 1, 10), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrFrCircuitLastResponseTime.setStatus('mandatory')
nr_nl_matrix_table = mib_table((1, 3, 6, 1, 4, 1, 2382, 3, 3, 1, 1))
if mibBuilder.loadTexts:
nrNlMatrixTable.setStatus('mandatory')
nr_nl_matrix_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2382, 3, 3, 1, 1, 1)).setIndexNames((0, 'NETREALITY-MIB', 'nrNlMatrixifNumber'), (0, 'NETREALITY-MIB', 'nrNlMatrixDlciNumber'), (0, 'NETREALITY-MIB', 'nrNlMatrixProtocol'), (0, 'NETREALITY-MIB', 'nrNlMatrixAddress1'), (0, 'NETREALITY-MIB', 'nrNlMatrixAddress2'))
if mibBuilder.loadTexts:
nrNlMatrixEntry.setStatus('mandatory')
nr_nl_matrixif_number = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 3, 1, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrNlMatrixifNumber.setStatus('mandatory')
nr_nl_matrix_dlci_number = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 3, 1, 1, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrNlMatrixDlciNumber.setStatus('mandatory')
nr_nl_matrix_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 3, 1, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrNlMatrixProtocol.setStatus('mandatory')
nr_nl_matrix_address1 = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 3, 1, 1, 1, 4), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrNlMatrixAddress1.setStatus('mandatory')
nr_nl_matrix_address2 = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 3, 1, 1, 1, 5), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrNlMatrixAddress2.setStatus('mandatory')
nr_nl1to2_ufrom_cir = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 3, 1, 1, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrNl1to2UfromCIR.setStatus('mandatory')
nr_nl_host_table = mib_table((1, 3, 6, 1, 4, 1, 2382, 3, 3, 2, 1))
if mibBuilder.loadTexts:
nrNlHostTable.setStatus('mandatory')
nr_nl_host_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2382, 3, 3, 2, 1, 1)).setIndexNames((0, 'NETREALITY-MIB', 'nrNlHostifNumber'), (0, 'NETREALITY-MIB', 'nrNlHostDlciNumber'), (0, 'NETREALITY-MIB', 'nrNlMatrixProtocol'), (0, 'NETREALITY-MIB', 'nrNlHostAddress'))
if mibBuilder.loadTexts:
nrNlHostEntry.setStatus('mandatory')
nr_nl_hostif_number = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 3, 2, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrNlHostifNumber.setStatus('mandatory')
nr_nl_host_dlci_number = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 3, 2, 1, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrNlHostDlciNumber.setStatus('mandatory')
nr_nl_host_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 3, 2, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrNlHostProtocol.setStatus('mandatory')
nr_nl_host_address = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 3, 2, 1, 1, 4), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrNlHostAddress.setStatus('mandatory')
nr_nl_host_utilization = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 3, 2, 1, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrNlHostUtilization.setStatus('mandatory')
nrt_ctrl_lterm_interval = mib_scalar((1, 3, 6, 1, 4, 1, 2382, 3, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(300, 3600)).clone(900)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nrtCtrlLtermInterval.setStatus('mandatory')
nrt_ctrl_lterm_buckets_grant = mib_scalar((1, 3, 6, 1, 4, 1, 2382, 3, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 16))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrtCtrlLtermBucketsGrant.setStatus('mandatory')
nrt_ctrl_lterm_last = mib_scalar((1, 3, 6, 1, 4, 1, 2382, 3, 4, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrtCtrlLtermLast.setStatus('mandatory')
nrt_ctrl_lterm_time = mib_scalar((1, 3, 6, 1, 4, 1, 2382, 3, 4, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrtCtrlLtermTime.setStatus('mandatory')
nrt_ctrl_sterm_interval = mib_scalar((1, 3, 6, 1, 4, 1, 2382, 3, 4, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(30, 300)).clone(60)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nrtCtrlStermInterval.setStatus('mandatory')
nrt_ctrl_sterm_buckets_grant = mib_scalar((1, 3, 6, 1, 4, 1, 2382, 3, 4, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 16))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrtCtrlStermBucketsGrant.setStatus('mandatory')
nrt_ctrl_sterm_last = mib_scalar((1, 3, 6, 1, 4, 1, 2382, 3, 4, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrtCtrlStermLast.setStatus('mandatory')
nrt_ctrl_sterm_time = mib_scalar((1, 3, 6, 1, 4, 1, 2382, 3, 4, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrtCtrlStermTime.setStatus('mandatory')
nr_short_term_data_table = mib_table((1, 3, 6, 1, 4, 1, 2382, 3, 4, 2, 1))
if mibBuilder.loadTexts:
nrShortTermDataTable.setStatus('mandatory')
nr_short_term_data_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2382, 3, 4, 2, 1, 1)).setIndexNames((0, 'NETREALITY-MIB', 'nrShortTermBucketIndex'), (0, 'NETREALITY-MIB', 'nrShortTermDataIndex'))
if mibBuilder.loadTexts:
nrShortTermDataEntry.setStatus('mandatory')
nr_short_term_bucket_index = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 4, 2, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrShortTermBucketIndex.setStatus('mandatory')
nr_short_term_data_index = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 4, 2, 1, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrShortTermDataIndex.setStatus('mandatory')
nr_short_term_data_data = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 4, 2, 1, 1, 3), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrShortTermDataData.setStatus('mandatory')
nr_long_term_data_table = mib_table((1, 3, 6, 1, 4, 1, 2382, 3, 4, 3, 1))
if mibBuilder.loadTexts:
nrLongTermDataTable.setStatus('mandatory')
nr_long_term_data_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2382, 3, 4, 3, 1, 1)).setIndexNames((0, 'NETREALITY-MIB', 'nrLongTermBucketIndex'), (0, 'NETREALITY-MIB', 'nrLongTermDataIndex'))
if mibBuilder.loadTexts:
nrLongTermDataEntry.setStatus('mandatory')
nr_long_term_bucket_index = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 4, 3, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrLongTermBucketIndex.setStatus('mandatory')
nr_long_term_data_index = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 4, 3, 1, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrLongTermDataIndex.setStatus('mandatory')
nr_long_term_data_data = mib_table_column((1, 3, 6, 1, 4, 1, 2382, 3, 4, 3, 1, 1, 3), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrLongTermDataData.setStatus('mandatory')
nr_trap_rs_type = mib_scalar((1, 3, 6, 1, 4, 1, 2382, 1, 3, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('memory', 1), ('ethernet', 2), ('wanadapter', 3), ('flash', 4), ('com1', 5), ('unknown', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nrTrapRSType.setStatus('mandatory')
nr_short_resources = notification_type((1, 3, 6, 1, 4, 1, 2382) + (0, 1)).setObjects(('NETREALITY-MIB', 'nrTrapRSType'))
nr_diagnostic_failure = notification_type((1, 3, 6, 1, 4, 1, 2382) + (0, 2)).setObjects(('NETREALITY-MIB', 'nrTrapRSType'))
nr_dlci_remove = notification_type((1, 3, 6, 1, 4, 1, 2382) + (0, 3)).setObjects(('NETREALITY-MIB', 'nrFrCircuitIfIndex'), ('NETREALITY-MIB', 'nrFrCircuitDlci'))
mibBuilder.exportSymbols('NETREALITY-MIB', nrIfOutUtilization=nrIfOutUtilization, nrtCtrlLtermBucketsGrant=nrtCtrlLtermBucketsGrant, nrFrCircuitInCIRUtilization=nrFrCircuitInCIRUtilization, nrIfGroupNm=nrIfGroupNm, nrNlMatrixTable=nrNlMatrixTable, nrtCtrlStermBucketsGrant=nrtCtrlStermBucketsGrant, nrtCtrlStermLast=nrtCtrlStermLast, nrNlHostTable=nrNlHostTable, nrFrCircuitIfIndex=nrFrCircuitIfIndex, nrTrapPort=nrTrapPort, nrtCtrlStermInterval=nrtCtrlStermInterval, nrIfEntry=nrIfEntry, nrIfOperMode=nrIfOperMode, nrLongTermData=nrLongTermData, nrShortTermBucketIndex=nrShortTermBucketIndex, nrSysSetDefaults=nrSysSetDefaults, nrShortTermDataIndex=nrShortTermDataIndex, nrTrapInfo=nrTrapInfo, nrNlHostProtocol=nrNlHostProtocol, nrNlMatrixAddress2=nrNlMatrixAddress2, nrBulk=nrBulk, nrFrCircuitEchoProto=nrFrCircuitEchoProto, nrShortTermDataEntry=nrShortTermDataEntry, nrSysSerial=nrSysSerial, nrNlMatrixProtocol=nrNlMatrixProtocol, nrNlHostAddress=nrNlHostAddress, nrtCtrl=nrtCtrl, nrNlHostUtilization=nrNlHostUtilization, nrNlMatrixDlciNumber=nrNlMatrixDlciNumber, nrNlHostDlciNumber=nrNlHostDlciNumber, nrTrapHostsTable=nrTrapHostsTable, nrtCtrlStermTime=nrtCtrlStermTime, nrManagers=nrManagers, nrWanwise=nrWanwise, nrIfInUtilization=nrIfInUtilization, nrRmon=nrRmon, nrNlMatrix=nrNlMatrix, nrLongTermDataIndex=nrLongTermDataIndex, nrFrame_relay=nrFrame_relay, nrFr=nrFr, nrNl1to2UfromCIR=nrNl1to2UfromCIR, nrtCtrlLtermInterval=nrtCtrlLtermInterval, nrNlHost=nrNlHost, nrIfTable=nrIfTable, nrFrCircuitLastResponseTime=nrFrCircuitLastResponseTime, nrDLCIRemove=nrDLCIRemove, nrNlMatrixAddress1=nrNlMatrixAddress1, netreality=netreality, nrFrCircuitEchoAddress=nrFrCircuitEchoAddress, nrNlHostifNumber=nrNlHostifNumber, nrShortTermData=nrShortTermData, nrShortResources=nrShortResources, nrTrapIPaddress=nrTrapIPaddress, nrLongTermBucketIndex=nrLongTermBucketIndex, nrLongTermDataData=nrLongTermDataData, nrIfInErrRatio=nrIfInErrRatio, nrFrCircuitEchoStatus=nrFrCircuitEchoStatus, nrTrapHostsEntry=nrTrapHostsEntry, nrtCtrlLtermLast=nrtCtrlLtermLast, nrSystem=nrSystem, nrSysEventReset=nrSysEventReset, nrIfIndex=nrIfIndex, nrSysTrapCounter=nrSysTrapCounter, nrIfPhysConnType=nrIfPhysConnType, nrNlMatrixEntry=nrNlMatrixEntry, nrTrapRSType=nrTrapRSType, nrFrCircuitOutCIRUtilization=nrFrCircuitOutCIRUtilization, nrProducts=nrProducts, nrLongTermDataTable=nrLongTermDataTable, nrIfType=nrIfType, nrFrCircuitDlci=nrFrCircuitDlci, nrFrCircuitEntry=nrFrCircuitEntry, nrFrCircuitOutDiscard=nrFrCircuitOutDiscard, nrIfOutErrRatio=nrIfOutErrRatio, nrLongTermDataEntry=nrLongTermDataEntry, nrNlHostEntry=nrNlHostEntry, nrtCtrlLtermTime=nrtCtrlLtermTime, nrFrCircuitTable=nrFrCircuitTable, nrSysReset=nrSysReset, nrShortTermDataData=nrShortTermDataData, nrFrCircuitInDiscard=nrFrCircuitInDiscard, nrNlMatrixifNumber=nrNlMatrixifNumber, nrGeneral=nrGeneral, nrShortTermDataTable=nrShortTermDataTable, nrDiagnosticFailure=nrDiagnosticFailure, nrInterface=nrInterface)
|
'''
Given a singly linked list, group all odd nodes together followed by the even nodes.
Please note here we are talking about the node number and not the value in the nodes.
You should try to do it in place. The program should
run in O(1) space complexity and O(nodes) time complexity.
Example 1:
Input: 1->2->3->4->5->NULL
Output: 1->3->5->2->4->NULL
Example 2:
Input: 2->1->3->5->6->4->7->NULL
Output: 2->3->6->7->1->5->4->NULL
Note:
- The relative order inside both the even and odd groups should remain as it was in the input.
- The first node is considered odd, the second node even and so on ...
'''
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def oddEvenList(self, head: ListNode) -> ListNode:
if (not head) or (not head.next):
return head
l = head
r = head.next
while r and r.next:
# exchange
tmp = r.next
r.next = tmp.next
tmp.next = l.next
l.next = tmp
l = l.next
r = r.next
return head
|
"""
Given a singly linked list, group all odd nodes together followed by the even nodes.
Please note here we are talking about the node number and not the value in the nodes.
You should try to do it in place. The program should
run in O(1) space complexity and O(nodes) time complexity.
Example 1:
Input: 1->2->3->4->5->NULL
Output: 1->3->5->2->4->NULL
Example 2:
Input: 2->1->3->5->6->4->7->NULL
Output: 2->3->6->7->1->5->4->NULL
Note:
- The relative order inside both the even and odd groups should remain as it was in the input.
- The first node is considered odd, the second node even and so on ...
"""
class Solution:
def odd_even_list(self, head: ListNode) -> ListNode:
if not head or not head.next:
return head
l = head
r = head.next
while r and r.next:
tmp = r.next
r.next = tmp.next
tmp.next = l.next
l.next = tmp
l = l.next
r = r.next
return head
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.