content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
class Hashtable:
def __init__(self):
self.size = 11
self.slots = [None] * self.size
self.data = [None] *self.size
def put(self, key, data):
hash_value = self.hash_function(key)
if self.slots[hash_value] == None:
self.slots[hash_value] = key
self.data[hash_value] = data
else:
if self.slots[hash_value] == key:
self.data[hash_value] = data # replace
else:
next_slot = self.rehash(hash_value)
while self.slots[next_slot] != None\
and self.slots[next_slot] != key:
next_slot = self.rehash(next_slot)
if self.slots[next_slot] == None:
self.slots[next_slot] = key
self.data[next_slot] = data
else:
self.data[next_slot] = data
def hash_function(self, key):
return key % self.size
def rehash(self, old_hash):
return (old_hash + 1) % self.size
| class Hashtable:
def __init__(self):
self.size = 11
self.slots = [None] * self.size
self.data = [None] * self.size
def put(self, key, data):
hash_value = self.hash_function(key)
if self.slots[hash_value] == None:
self.slots[hash_value] = key
self.data[hash_value] = data
elif self.slots[hash_value] == key:
self.data[hash_value] = data
else:
next_slot = self.rehash(hash_value)
while self.slots[next_slot] != None and self.slots[next_slot] != key:
next_slot = self.rehash(next_slot)
if self.slots[next_slot] == None:
self.slots[next_slot] = key
self.data[next_slot] = data
else:
self.data[next_slot] = data
def hash_function(self, key):
return key % self.size
def rehash(self, old_hash):
return (old_hash + 1) % self.size |
def setup():
size (300,300)
background (100)
smooth()
noLoop()
def draw ():
strokeWeight(15)
str(100)
line (100,200, 200,100)
line (200,200, 100,100)
| def setup():
size(300, 300)
background(100)
smooth()
no_loop()
def draw():
stroke_weight(15)
str(100)
line(100, 200, 200, 100)
line(200, 200, 100, 100) |
name = 'pyopengl'
version = '3.1.0'
authors = [
'Mike C. Fletcher <mcfletch@vrplumber.com>'
]
description = \
'''
Standard OpenGL bindings for Python.
'''
build_requires = [
'setuptools'
]
requires = [
'python'
]
variants = [
['platform-linux', 'arch-x86_64', 'os-CentOS-7']
]
uuid = 'pyopengl'
def commands():
env.PYTHONPATH.append('{root}/lib/python2.7/site-packages')
| name = 'pyopengl'
version = '3.1.0'
authors = ['Mike C. Fletcher <mcfletch@vrplumber.com>']
description = '\n Standard OpenGL bindings for Python.\n '
build_requires = ['setuptools']
requires = ['python']
variants = [['platform-linux', 'arch-x86_64', 'os-CentOS-7']]
uuid = 'pyopengl'
def commands():
env.PYTHONPATH.append('{root}/lib/python2.7/site-packages') |
n, m = map(int, input().split())
l = [*map(int, input().split())]
for _ in range(m):
l.sort()
l[0], l[1] = l[0]+l[1], l[0]+l[1]
print(sum(l))
| (n, m) = map(int, input().split())
l = [*map(int, input().split())]
for _ in range(m):
l.sort()
(l[0], l[1]) = (l[0] + l[1], l[0] + l[1])
print(sum(l)) |
def dictMerge(a, b):
for key, value in b.items():
if isinstance(value, dict):
if key in a:
dictMerge(a[key], value)
else:
a[key] = dict(value)
else:
a[key] = value
| def dict_merge(a, b):
for (key, value) in b.items():
if isinstance(value, dict):
if key in a:
dict_merge(a[key], value)
else:
a[key] = dict(value)
else:
a[key] = value |
class Calculator:
def __init__(self,num1):
self.num1 = num1
def __add__(self,num2):
return self.num1 + num2.num1
def __mul__(self,num2):
return self.num1 * num2.num1
def __len__(self,str):
return len(self.str)
def __str__(self):
return f"The Decimal Number that we have used {self.num1}"
n1 = Calculator(9)
print(n1)
# print(str(n))
# n2 = Calculator(10)
# sum = n1 + n2
# mul = n1 * n2
# print(sum)
# print(mul)
# print(str) | class Calculator:
def __init__(self, num1):
self.num1 = num1
def __add__(self, num2):
return self.num1 + num2.num1
def __mul__(self, num2):
return self.num1 * num2.num1
def __len__(self, str):
return len(self.str)
def __str__(self):
return f'The Decimal Number that we have used {self.num1}'
n1 = calculator(9)
print(n1) |
# Copyright 2020 Google Inc. 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.
# ==============================================================================
def pre_polygons(thresholds, dilation_factors):
"""Prepares polygon threshold and dilation parameters.
Args:
thresholds: list, thresholds to apply to images in range [0., 1.].
dilation_factors: list, factors to dilate polygons in range [0., inf).
Yields:
2-tuple of threshold and dilation factor.
"""
for threshold in thresholds:
for dilation_factor in dilation_factors:
yield (threshold, dilation_factor)
| def pre_polygons(thresholds, dilation_factors):
"""Prepares polygon threshold and dilation parameters.
Args:
thresholds: list, thresholds to apply to images in range [0., 1.].
dilation_factors: list, factors to dilate polygons in range [0., inf).
Yields:
2-tuple of threshold and dilation factor.
"""
for threshold in thresholds:
for dilation_factor in dilation_factors:
yield (threshold, dilation_factor) |
# Copyright 2020 Plezentek, Inc. 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.
SQLCRelease = provider(
doc = "Contains information about the SQLC release used in the toolchain",
fields = {
"goos": "The host OS the release was built for.",
"goarch": "The host architecture the release was built for.",
"root_file": "The file at the base of the toolchain context",
"sqlc": "The sqlc binary to execute",
"version": "The version of the sqlc binary used",
},
)
| sqlc_release = provider(doc='Contains information about the SQLC release used in the toolchain', fields={'goos': 'The host OS the release was built for.', 'goarch': 'The host architecture the release was built for.', 'root_file': 'The file at the base of the toolchain context', 'sqlc': 'The sqlc binary to execute', 'version': 'The version of the sqlc binary used'}) |
input = """
% Reported by Axel Polleres to trigger a bug with -OR.
true.
%actiontime(T) :- T < #maxint, #int(T).
location(t) :- true.
location(B) :- block(B).
% blocksC2.dl without free variables
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Blocks world domain description in C
% Elementary Actions: move(B,L) for all blocks B and locations L
% Fluents: on(B,L) for all blocks B and locations L
% effect of moving a block
% move(B,L) causes on(B,L) (for all blocks B and locations L)
on(B,L,T1) :- move(B,L,T).%, #succ(T,T1).
% move(B,L) causes -on(B,L1) if on(B,L1)
-on(B,L,T1) :- move1(B,T), on(B,L,T).%, #succ(T,T1).
% a block can be moved only when it's clear
% nonexecutable move(B,L) if on(B1,B) (for all blocks B,B1 and locations L)
% :- move(B,L,T), on(B1,B,T).
% pushed into guess
% any two blocks cannot be on the same block at the same time.
% that means a block cannot be moved to an occupied block:
% nonexecutable move(B,B1) if on(B2,B1) & block(B1)
% :- move(B,B1,T), on(B2,B1,T), block(B1).
% pushed into guess using the following auxiliary predicate:
onblock(B,T) :- on(_,B,T), block(B).
% wherever a block is, it's not anywhere else
% caused -on(B,L1) if on(B,L) (for all blocks B, and locations L,L1
% where -(L=L1)) (2)
% assuming a complete initial description this can be skipped !!!
% a block is never on top of itself
% that means it cannot be moved on top of itself:
% nonexecutable move(B,B).
% :- move(B,B,T).
% pushed into guess.
% no concurrency
% nonexecutable (move(B,L), move(B1,L1)) if (B!=B1)
move1(B,T) :- move(B,_,T).
move2(L,T) :- move(_,L,T).
:- move1(B,T), move1(B1,T), B!=B1.
% nonexecutable (move(B,L), move(B1,L1)) if (L!=L1)
:- move2(L,T), move2(L1,T), L!=L1.
% inertia
% inertial on
on(B,L,T1) :- on(B,L,T), not -on(B,L,T1).%, #succ(T,T1).
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
move(B,L,T) | -move(B,L,T) :- block(B), location(L), actiontime(T),
not onblock(L,T), not onblock(B,T), B!=L.
block(b1).
block(b2).
block(b3).
block(b4).
block(b5).
on(b5,t,0) :- true.
on(b3,t,0) :- true.
on(b2,b5,0) :- true.
on(b4,b3,0) :- true.
on(b1,b4,0) :- true.
%on(b1,t,#maxint),on(b2,b1,#maxint), on(b3,b2,#maxint),on(b4,b3,#maxint), on(b5,b4,#maxint)?
on(b5,b4)?
"""
output = """
% Reported by Axel Polleres to trigger a bug with -OR.
true.
%actiontime(T) :- T < #maxint, #int(T).
location(t) :- true.
location(B) :- block(B).
% blocksC2.dl without free variables
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Blocks world domain description in C
% Elementary Actions: move(B,L) for all blocks B and locations L
% Fluents: on(B,L) for all blocks B and locations L
% effect of moving a block
% move(B,L) causes on(B,L) (for all blocks B and locations L)
on(B,L,T1) :- move(B,L,T).%, #succ(T,T1).
% move(B,L) causes -on(B,L1) if on(B,L1)
-on(B,L,T1) :- move1(B,T), on(B,L,T).%, #succ(T,T1).
% a block can be moved only when it's clear
% nonexecutable move(B,L) if on(B1,B) (for all blocks B,B1 and locations L)
% :- move(B,L,T), on(B1,B,T).
% pushed into guess
% any two blocks cannot be on the same block at the same time.
% that means a block cannot be moved to an occupied block:
% nonexecutable move(B,B1) if on(B2,B1) & block(B1)
% :- move(B,B1,T), on(B2,B1,T), block(B1).
% pushed into guess using the following auxiliary predicate:
onblock(B,T) :- on(_,B,T), block(B).
% wherever a block is, it's not anywhere else
% caused -on(B,L1) if on(B,L) (for all blocks B, and locations L,L1
% where -(L=L1)) (2)
% assuming a complete initial description this can be skipped !!!
% a block is never on top of itself
% that means it cannot be moved on top of itself:
% nonexecutable move(B,B).
% :- move(B,B,T).
% pushed into guess.
% no concurrency
% nonexecutable (move(B,L), move(B1,L1)) if (B!=B1)
move1(B,T) :- move(B,_,T).
move2(L,T) :- move(_,L,T).
:- move1(B,T), move1(B1,T), B!=B1.
% nonexecutable (move(B,L), move(B1,L1)) if (L!=L1)
:- move2(L,T), move2(L1,T), L!=L1.
% inertia
% inertial on
on(B,L,T1) :- on(B,L,T), not -on(B,L,T1).%, #succ(T,T1).
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
move(B,L,T) | -move(B,L,T) :- block(B), location(L), actiontime(T),
not onblock(L,T), not onblock(B,T), B!=L.
block(b1).
block(b2).
block(b3).
block(b4).
block(b5).
on(b5,t,0) :- true.
on(b3,t,0) :- true.
on(b2,b5,0) :- true.
on(b4,b3,0) :- true.
on(b1,b4,0) :- true.
%on(b1,t,#maxint),on(b2,b1,#maxint), on(b3,b2,#maxint),on(b4,b3,#maxint), on(b5,b4,#maxint)?
on(b5,b4)?
"""
| input = "\n% Reported by Axel Polleres to trigger a bug with -OR.\n\ntrue.\n%actiontime(T) :- T < #maxint, #int(T).\nlocation(t) :- true.\nlocation(B) :- block(B).\n\n% blocksC2.dl without free variables\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n% Blocks world domain description in C\n% Elementary Actions: move(B,L) for all blocks B and locations L\n% Fluents: on(B,L) for all blocks B and locations L\n\n% effect of moving a block\n\n% move(B,L) causes on(B,L) (for all blocks B and locations L)\non(B,L,T1) :- move(B,L,T).%, #succ(T,T1).\n\n% move(B,L) causes -on(B,L1) if on(B,L1)\n-on(B,L,T1) :- move1(B,T), on(B,L,T).%, #succ(T,T1).\n\n\n% a block can be moved only when it's clear\n% nonexecutable move(B,L) if on(B1,B) (for all blocks B,B1 and locations L)\n% :- move(B,L,T), on(B1,B,T).\n% pushed into guess\n\n% any two blocks cannot be on the same block at the same time. \n% that means a block cannot be moved to an occupied block:\n% nonexecutable move(B,B1) if on(B2,B1) & block(B1)\n% :- move(B,B1,T), on(B2,B1,T), block(B1).\n% pushed into guess using the following auxiliary predicate:\nonblock(B,T) :- on(_,B,T), block(B).\n\n% wherever a block is, it's not anywhere else \n% caused -on(B,L1) if on(B,L) (for all blocks B, and locations L,L1\n% where -(L=L1)) (2)\n% assuming a complete initial description this can be skipped !!!\n\n\n\n% a block is never on top of itself \n% that means it cannot be moved on top of itself:\n% nonexecutable move(B,B). \n% :- move(B,B,T).\n% pushed into guess.\n\n% no concurrency\n% nonexecutable (move(B,L), move(B1,L1)) if (B!=B1)\nmove1(B,T) :- move(B,_,T).\nmove2(L,T) :- move(_,L,T).\n:- move1(B,T), move1(B1,T), B!=B1.\n% nonexecutable (move(B,L), move(B1,L1)) if (L!=L1)\n:- move2(L,T), move2(L1,T), L!=L1.\n\n\n% inertia\n% inertial on\non(B,L,T1) :- on(B,L,T), not -on(B,L,T1).%, #succ(T,T1).\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n\nmove(B,L,T) | -move(B,L,T) :- block(B), location(L), actiontime(T),\n\t\t\t not onblock(L,T), not onblock(B,T), B!=L.\n\n\n\nblock(b1).\nblock(b2).\nblock(b3).\nblock(b4).\nblock(b5).\n\non(b5,t,0) :- true.\non(b3,t,0) :- true.\non(b2,b5,0) :- true.\non(b4,b3,0) :- true.\non(b1,b4,0) :- true.\n\n%on(b1,t,#maxint),on(b2,b1,#maxint), on(b3,b2,#maxint),on(b4,b3,#maxint), on(b5,b4,#maxint)?\n\non(b5,b4)?\n\n"
output = "\n% Reported by Axel Polleres to trigger a bug with -OR.\n\ntrue.\n%actiontime(T) :- T < #maxint, #int(T).\nlocation(t) :- true.\nlocation(B) :- block(B).\n\n% blocksC2.dl without free variables\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n% Blocks world domain description in C\n% Elementary Actions: move(B,L) for all blocks B and locations L\n% Fluents: on(B,L) for all blocks B and locations L\n\n% effect of moving a block\n\n% move(B,L) causes on(B,L) (for all blocks B and locations L)\non(B,L,T1) :- move(B,L,T).%, #succ(T,T1).\n\n% move(B,L) causes -on(B,L1) if on(B,L1)\n-on(B,L,T1) :- move1(B,T), on(B,L,T).%, #succ(T,T1).\n\n\n% a block can be moved only when it's clear\n% nonexecutable move(B,L) if on(B1,B) (for all blocks B,B1 and locations L)\n% :- move(B,L,T), on(B1,B,T).\n% pushed into guess\n\n% any two blocks cannot be on the same block at the same time. \n% that means a block cannot be moved to an occupied block:\n% nonexecutable move(B,B1) if on(B2,B1) & block(B1)\n% :- move(B,B1,T), on(B2,B1,T), block(B1).\n% pushed into guess using the following auxiliary predicate:\nonblock(B,T) :- on(_,B,T), block(B).\n\n% wherever a block is, it's not anywhere else \n% caused -on(B,L1) if on(B,L) (for all blocks B, and locations L,L1\n% where -(L=L1)) (2)\n% assuming a complete initial description this can be skipped !!!\n\n\n\n% a block is never on top of itself \n% that means it cannot be moved on top of itself:\n% nonexecutable move(B,B). \n% :- move(B,B,T).\n% pushed into guess.\n\n% no concurrency\n% nonexecutable (move(B,L), move(B1,L1)) if (B!=B1)\nmove1(B,T) :- move(B,_,T).\nmove2(L,T) :- move(_,L,T).\n:- move1(B,T), move1(B1,T), B!=B1.\n% nonexecutable (move(B,L), move(B1,L1)) if (L!=L1)\n:- move2(L,T), move2(L1,T), L!=L1.\n\n\n% inertia\n% inertial on\non(B,L,T1) :- on(B,L,T), not -on(B,L,T1).%, #succ(T,T1).\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n\nmove(B,L,T) | -move(B,L,T) :- block(B), location(L), actiontime(T),\n\t\t\t not onblock(L,T), not onblock(B,T), B!=L.\n\n\n\nblock(b1).\nblock(b2).\nblock(b3).\nblock(b4).\nblock(b5).\n\non(b5,t,0) :- true.\non(b3,t,0) :- true.\non(b2,b5,0) :- true.\non(b4,b3,0) :- true.\non(b1,b4,0) :- true.\n\n%on(b1,t,#maxint),on(b2,b1,#maxint), on(b3,b2,#maxint),on(b4,b3,#maxint), on(b5,b4,#maxint)?\n\non(b5,b4)?\n\n" |
SCRABBLE_LETTER_VALUES = {
"a": 1,
"b": 3,
"c": 3,
"d": 2,
"e": 1,
"f": 4,
"g": 2,
"h": 4,
"i": 1,
"j": 8,
"k": 5,
"l": 1,
"m": 3,
"n": 1,
"o": 1,
"p": 3,
"q": 10,
"r": 1,
"s": 1,
"t": 1,
"u": 1,
"v": 4,
"w": 4,
"x": 8,
"y": 4,
"z": 10,
}
def get_word_score(word, n):
wordLower = word.lower()
wordLen = len(wordLower)
score = 0
for character in wordLower:
score += SCRABBLE_LETTER_VALUES[character]
if (7 * wordLen - 3 * (n - wordLen)) > 1:
score *= 7 * wordLen - 3 * (n - wordLen)
else:
score*= 1
return score
print(get_word_score("it", 7)) | scrabble_letter_values = {'a': 1, 'b': 3, 'c': 3, 'd': 2, 'e': 1, 'f': 4, 'g': 2, 'h': 4, 'i': 1, 'j': 8, 'k': 5, 'l': 1, 'm': 3, 'n': 1, 'o': 1, 'p': 3, 'q': 10, 'r': 1, 's': 1, 't': 1, 'u': 1, 'v': 4, 'w': 4, 'x': 8, 'y': 4, 'z': 10}
def get_word_score(word, n):
word_lower = word.lower()
word_len = len(wordLower)
score = 0
for character in wordLower:
score += SCRABBLE_LETTER_VALUES[character]
if 7 * wordLen - 3 * (n - wordLen) > 1:
score *= 7 * wordLen - 3 * (n - wordLen)
else:
score *= 1
return score
print(get_word_score('it', 7)) |
"""
Created on Mon Jul 26 17:23:16 2021
@author: Andile Jaden Mbele
"""
"""
1. number of times around loop is n
2. number of operations inside loop is a constant
3. overall just O(n)
"""
def fact_iter(n):
prod = 1
for i in range(1, n + 1):
prod *= i
return prod
| """
Created on Mon Jul 26 17:23:16 2021
@author: Andile Jaden Mbele
"""
'\n1. number of times around loop is n\n2. number of operations inside loop is a constant\n3. overall just O(n)\n'
def fact_iter(n):
prod = 1
for i in range(1, n + 1):
prod *= i
return prod |
def trace(matrix):
try:
return sum(matrix[i][i] for i in range(max(len(matrix), len(matrix[0]))))
except:
return None | def trace(matrix):
try:
return sum((matrix[i][i] for i in range(max(len(matrix), len(matrix[0])))))
except:
return None |
"""Pushserver base configuration.
"""
class Config(object):
"""Base Configuration.
This should contain default values that will be used by all environments.
"""
DEBUG = False
TESTING = False
SERVER_NAME = None
SENTRY_DSN = None
BLUEPRINTS = (
('flask.ext.sse.sse', '/stream'),
('pushserver.test.blueprint.blueprint', '/test'),
)
SSE_REDIS_HOST = 'localhost'
SSE_REDIS_PORT = 6379
SSE_REDIS_DB = 0
| """Pushserver base configuration.
"""
class Config(object):
"""Base Configuration.
This should contain default values that will be used by all environments.
"""
debug = False
testing = False
server_name = None
sentry_dsn = None
blueprints = (('flask.ext.sse.sse', '/stream'), ('pushserver.test.blueprint.blueprint', '/test'))
sse_redis_host = 'localhost'
sse_redis_port = 6379
sse_redis_db = 0 |
"""
parition dp
f[k][i]: minimum time it will take for the first k copier to copy first i books
funciton:
f[k][i] = min for j=0..i(max(f[k - 1][j], A[j] + ... + A[i - 1]))
intial:
f[0][0] = 0
f[0][x] = sys.maxsize
f[k][0] = 0
answer:f[k][n - 1]
"""
# import sys
# class Solution:
# """
# @param pages: an array of integers
# @param k: An integer
# @return: an integer
# """
# def copyBooks(self, pages, K):
# # write your code here
# if not pages:
# return 0
# f = [[sys.maxsize] * len(pages) for _ in range(K + 1)]
# for i in range(len(pages)):
# f[0][i] = sys.maxsize
# for k in range(K + 1):
# f[k][0] = 0
#
# for k in range(K + 1):
# for i in range(len(pages)):
# sum = 0
# for j in range(0, i + 1):
# f[k][i] = min(f[k][i], max(f[k - 1][j], sum))
#
| """
parition dp
f[k][i]: minimum time it will take for the first k copier to copy first i books
funciton:
f[k][i] = min for j=0..i(max(f[k - 1][j], A[j] + ... + A[i - 1]))
intial:
f[0][0] = 0
f[0][x] = sys.maxsize
f[k][0] = 0
answer:f[k][n - 1]
""" |
oredict = [
"logWood",
"plankWood",
"slabWood",
"stairWood",
"stickWood",
"treeSapling",
"treeLeaves",
"vine",
"oreGold",
"oreIron",
"oreLapis",
"oreDiamond",
"oreRedstone",
"oreEmerald",
"oreQuartz",
"oreCoal",
"ingotIron",
"ingotGold",
"ingotBrick",
"ingotBrickNether",
"nuggetGold",
"nuggetIron",
"gemDiamond",
"gemEmerald",
"gemQuartz",
"gemPrismarine",
"dustPrismarine",
"dustRedstone",
"dustGlowstone",
"gemLapis",
"blockGold",
"blockIron",
"blockLapis",
"blockDiamond",
"blockRedstone",
"blockEmerald",
"blockQuartz",
"blockCoal",
"cropWheat",
"cropPotato",
"cropCarrot",
"cropNetherWart",
"sugarcane",
"blockCactus",
"dye",
"paper",
"slimeball",
"enderpearl",
"bone",
"gunpowder",
"string",
"netherStar",
"leather",
"feather",
"egg",
"record",
"dirt",
"grass",
"stone",
"cobblestone",
"gravel",
"sand",
"sandstone",
"netherrack",
"obsidian",
"glowstone",
"endstone",
"torch",
"workbench",
"blockSlime",
"blockPrismarine",
"blockPrismarineBrick",
"blockPrismarineDark",
"stoneGranite",
"stoneGranitePolished",
"stoneDiorite",
"stoneDioritePolished",
"stoneAndesite",
"stoneAndesitePolished",
"blockGlassColorless",
"blockGlass",
"paneGlassColorless",
"paneGlass",
"chest",
"chestWood",
"chestEnder",
"chestTrapped",
"dyeBlack",
"blockGlassBlack",
"paneGlassBlack",
"dyeRed",
"blockGlassRed",
"paneGlassRed",
"dyeGreen",
"blockGlassGreen",
"paneGlassGreen",
"dyeBrown",
"blockGlassBrown",
"paneGlassBrown",
"dyeBlue",
"blockGlassBlue",
"paneGlassBlue",
"dyePurple",
"blockGlassPurple",
"paneGlassPurple",
"dyeCyan",
"blockGlassCyan",
"paneGlassCyan",
"dyeLightGray",
"blockGlassLightGray",
"paneGlassLightGray",
"dyeGray",
"blockGlassGray",
"paneGlassGray",
"dyePink",
"blockGlassPink",
"paneGlassPink",
"dyeLime",
"blockGlassLime",
"paneGlassLime",
"dyeYellow",
"blockGlassYellow",
"paneGlassYellow",
"dyeLightBlue",
"blockGlassLightBlue",
"paneGlassLightBlue",
"dyeMagenta",
"blockGlassMagenta",
"paneGlassMagenta",
"dyeOrange",
"blockGlassOrange",
"paneGlassOrange",
"dyeWhite",
"blockGlassWhite",
"paneGlassWhite",
"blockWool",
"coal",
"charcoal",
"bookshelf",
"ingotUnstable",
"nuggetUnstable",
"compressed1xCobblestone",
"compressed2xCobblestone",
"compressed3xCobblestone",
"compressed4xCobblestone",
"compressed5xCobblestone",
"compressed6xCobblestone",
"compressed7xCobblestone",
"compressed8xCobblestone",
"compressed1xDirt",
"compressed2xDirt",
"compressed3xDirt",
"compressed4xDirt",
"compressed1xSand",
"compressed2xSand",
"compressed1xGravel",
"compressed2xGravel",
"compressed1xNetherrack",
"compressed2xNetherrack",
"compressed3xNetherrack",
"compressed4xNetherrack",
"compressed5xNetherrack",
"compressed6xNetherrack",
"gemRedstone",
"gearRedstone",
"eyeofredstone",
"dustLunar",
"coalPowered",
"gemMoon",
"xuUpgradeSpeed",
"xuUpgradeStack",
"xuUpgradeMining",
"xuUpgradeBlank",
"dropofevil",
"ingotDemonicMetal",
"ingotEnchantedMetal",
"xuRedstoneCoil",
"xuUpgradeSpeedEnchanted",
"ingotEvilMetal",
"blockEnchantedMetal",
"blockDemonicMetal",
"blockEvilMetal",
"blockMagicalWood",
"bricksStone",
"dustIron",
"dustGold",
"oreCopper",
"dustCopper",
"dustTin",
"ingotCopper",
"oreTin",
"ingotTin",
"oreLead",
"dustLead",
"dustSilver",
"ingotLead",
"oreSilver",
"ingotSilver",
"oreNickel",
"dustNickel",
"dustPlatinum",
"ingotNickel",
"orePlatinum",
"ingotPlatinum",
"mushroomAny",
"tallow",
"gemEnderBiotite",
"woodRubber",
"dustLapis",
"oreUranium",
"dustStone",
"dustBronze",
"dustClay",
"dustCoal",
"dustObsidian",
"dustSulfur",
"dustLithium",
"dustDiamond",
"dustSiliconDioxide",
"dustHydratedCoal",
"dustAshes",
"dustTinyCopper",
"dustTinyGold",
"dustTinyIron",
"dustTinySilver",
"dustTinyTin",
"dustTinyLead",
"dustTinySulfur",
"dustTinyLithium",
"dustTinyBronze",
"dustTinyLapis",
"dustTinyObsidian",
"itemRubber",
"ingotBronze",
"ingotSteel",
"plateIron",
"plateGold",
"plateCopper",
"plateTin",
"plateLead",
"plateLapis",
"plateObsidian",
"plateBronze",
"plateSteel",
"plateDenseSteel",
"plateDenseIron",
"plateDenseGold",
"plateDenseCopper",
"plateDenseTin",
"plateDenseLead",
"plateDenseLapis",
"plateDenseObsidian",
"plateDenseBronze",
"crushedIron",
"crushedGold",
"crushedSilver",
"crushedLead",
"crushedCopper",
"crushedTin",
"crushedUranium",
"crushedPurifiedIron",
"crushedPurifiedGold",
"crushedPurifiedSilver",
"crushedPurifiedLead",
"crushedPurifiedCopper",
"crushedPurifiedTin",
"crushedPurifiedUranium",
"blockBronze",
"blockCopper",
"blockTin",
"blockUranium",
"blockLead",
"blockSilver",
"blockSteel",
"circuitBasic",
"circuitAdvanced",
"craftingToolForgeHammer",
"craftingToolWireCutter",
"gemApatite",
"brickPeat",
"dustAsh",
"gearBronze",
"gearCopper",
"gearTin",
"pulpWood",
"itemBeeswax",
"cropCherry",
"fruitForestry",
"cropWalnut",
"cropChestnut",
"cropLemon",
"cropPlum",
"cropDate",
"cropPapaya",
"oreApatite",
"blockApatite",
"craftingTableWood",
"trapdoorWood",
"blockCharcoal",
"dropHoney",
"itemPollen",
"dropHoneydew",
"dropRoyalJelly",
"beeComb",
"fenceWood",
"fenceGateWood",
"doorWood",
"emptiedLetter",
"weedkiller",
"toolTrowel",
"binnie_database",
"pigment",
"cropApple",
"cropCrabapple",
"cropOrange",
"cropKumquat",
"cropLime",
"cropWildCherry",
"cropSourCherry",
"cropBlackCherry",
"cropBlackthorn",
"cropCherryPlum",
"cropAlmond",
"cropApricot",
"cropGrapefruit",
"cropPeach",
"cropSatsuma",
"cropBuddhaHand",
"cropCitron",
"cropFingerLime",
"cropKeyLime",
"cropManderin",
"cropNectarine",
"cropPomelo",
"cropTangerine",
"cropPear",
"cropSandPear",
"cropHazelnut",
"cropButternut",
"cropBeechnut",
"cropPecan",
"cropBanana",
"cropRedBanana",
"cropPlantain",
"cropBrazilNut",
"cropFig",
"cropAcorn",
"cropElderberry",
"cropOlive",
"cropGingkoNut",
"cropCoffee",
"cropOsangeOrange",
"cropClove",
"cropHops",
"seedWheat",
"seedBarley",
"seedCorn",
"seedRye",
"seedRoasted",
"ballMud",
"blockMeatRaw",
"blockMud",
"foodMushroompowder",
"foodFruitsalad",
"foodVeggiesalad",
"foodMushroomsalad",
"foodFilledhoneycomb",
"foodAmbrosia",
"foodBowlofrice",
"cropPersimmon",
"cropTurnip",
"listAllfruit",
"listAllrootveggie",
"listAllveggie",
"seedTurnip",
"listAllseed",
"gemAmethyst",
"oreAmethyst",
"gemRuby",
"oreRuby",
"gemPeridot",
"orePeridot",
"gemTopaz",
"oreTopaz",
"gemTanzanite",
"oreTanzanite",
"gemMalachite",
"oreMalachite",
"gemSapphire",
"oreSapphire",
"gemAmber",
"oreAmber",
"flowerClover",
"flowerSwampflower",
"flowerDeathbloom",
"flowerGlowflower",
"flowerBlueHydrangea",
"flowerOrangeCosmos",
"flowerPinkDaffodil",
"flowerWildflower",
"flowerViolet",
"flowerWhiteAnemone",
"flowerEnderlotus",
"flowerBromeliad",
"flowerWiltedLily",
"flowerPinkHibiscus",
"flowerLilyOfTheValley",
"flowerBurningBlossom",
"flowerLavender",
"flowerGoldenrod",
"flowerBluebells",
"flowerMinersDelight",
"flowerIcyIris",
"flowerRose",
"plantShortgrass",
"plantMediumgrass",
"plantBush",
"plantSprout",
"plantPoisonivy",
"plantBerrybush",
"plantShrub",
"plantWheatgrass",
"plantDampgrass",
"plantKoru",
"plantCloverpatch",
"plantLeafpile",
"plantDeadleafpile",
"plantDeadgrass",
"plantDesertgrass",
"plantDesertsprouts",
"plantDunegrass",
"plantSpectralfern",
"plantThorn",
"plantWildrice",
"plantCattail",
"plantRivercane",
"plantTinycactus",
"plantDevilweed",
"plantReed",
"plantRoot",
"plantRafflesia",
"plantFlax",
"blockWoolWhite",
"blockWoolOrange",
"blockWoolMagenta",
"blockWoolLightBlue",
"blockWoolYellow",
"blockWoolLime",
"blockWoolPink",
"blockWoolGray",
"blockWoolLightGray",
"blockWoolCyan",
"blockWoolPurple",
"blockWoolBlue",
"blockWoolBrown",
"blockWoolGreen",
"blockWoolRed",
"blockWoolBlack",
"flower",
"craftingPiston",
"torchRedstoneActive",
"materialEnderPearl",
"oc:wlanCard",
"chipDiamond",
"oc:stoneEndstone",
"oreAluminum",
"oreIridium",
"oreMithril",
"oreFluidCrudeOilSand",
"oreFluidCrudeOilShale",
"oreFluidRedstone",
"oreFluidGlowstone",
"oreFluidEnder",
"blockAluminum",
"blockNickel",
"blockPlatinum",
"blockIridium",
"blockMithril",
"blockElectrum",
"blockInvar",
"blockConstantan",
"blockSignalum",
"blockLumium",
"blockEnderium",
"blockFuelCoke",
"blockGlassHardened",
"blockRockwool",
"coinIron",
"coinGold",
"coinCopper",
"coinTin",
"coinSilver",
"coinLead",
"coinAluminum",
"coinNickel",
"coinPlatinum",
"coinIridium",
"coinMithril",
"coinSteel",
"coinElectrum",
"coinInvar",
"coinBronze",
"coinConstantan",
"coinSignalum",
"coinLumium",
"coinEnderium",
"nuggetDiamond",
"nuggetEmerald",
"gearIron",
"gearGold",
"dustAluminum",
"dustIridium",
"dustMithril",
"dustSteel",
"dustElectrum",
"dustInvar",
"dustConstantan",
"dustSignalum",
"dustLumium",
"dustEnderium",
"ingotAluminum",
"ingotIridium",
"ingotMithril",
"ingotElectrum",
"ingotInvar",
"ingotConstantan",
"ingotSignalum",
"ingotLumium",
"ingotEnderium",
"nuggetCopper",
"nuggetTin",
"nuggetSilver",
"nuggetLead",
"nuggetAluminum",
"nuggetNickel",
"nuggetPlatinum",
"nuggetIridium",
"nuggetMithril",
"nuggetSteel",
"nuggetElectrum",
"nuggetInvar",
"nuggetBronze",
"nuggetConstantan",
"nuggetSignalum",
"nuggetLumium",
"nuggetEnderium",
"gearSilver",
"gearLead",
"gearAluminum",
"gearNickel",
"gearPlatinum",
"gearIridium",
"gearMithril",
"gearSteel",
"gearElectrum",
"gearInvar",
"gearConstantan",
"gearSignalum",
"gearLumium",
"gearEnderium",
"plateSilver",
"plateAluminum",
"plateNickel",
"platePlatinum",
"plateIridium",
"plateMithril",
"plateElectrum",
"plateInvar",
"plateConstantan",
"plateSignalum",
"plateLumium",
"plateEnderium",
"dustCharcoal",
"dustWood",
"crystalSlag",
"crystalSlagRich",
"crystalCinnabar",
"crystalCrudeOil",
"crystalRedstone",
"crystalGlowstone",
"crystalEnder",
"dustPyrotheum",
"dustCryotheum",
"dustAerotheum",
"dustPetrotheum",
"dustMana",
"rodBlizz",
"dustBlizz",
"rodBlitz",
"dustBlitz",
"rodBasalz",
"dustBasalz",
"dustSaltpeter",
"fuelCoke",
"itemSlag",
"itemSlagRich",
"itemCinnabar",
"dragonEgg",
"oreDraconium",
"blockDraconium",
"blockDraconiumAwakened",
"ingotDraconium",
"dustDraconium",
"ingotDraconiumAwakened",
"nuggetDraconium",
"nuggetDraconiumAwakened",
"dustPsi",
"substanceEbony",
"ingotPsi",
"substanceIvory",
"ingotEbonyPsi",
"ingotIvoryPsi",
"gemPsi",
"crystalsPrismarine",
"shardPrismarine",
"oreThorium",
"oreBoron",
"oreLithium",
"oreMagnesium",
"blockThorium",
"blockBoron",
"blockLithium",
"blockMagnesium",
"blockGraphite",
"blockBeryllium",
"blockZirconium",
"blockDepletedThorium",
"blockDepletedUranium",
"blockDepletedNeptunium",
"blockDepletedPlutonium",
"blockDepletedAmericium",
"blockDepletedCurium",
"blockDepletedBerkelium",
"blockDepletedCalifornium",
"ingotThorium",
"ingotUranium",
"ingotBoron",
"ingotLithium",
"ingotMagnesium",
"ingotGraphite",
"ingotBeryllium",
"ingotZirconium",
"ingotThoriumOxide",
"ingotUraniumOxide",
"ingotManganeseOxide",
"ingotManganeseDioxide",
"dustThorium",
"dustUranium",
"dustBoron",
"dustMagnesium",
"dustGraphite",
"dustBeryllium",
"dustZirconium",
"dustThoriumOxide",
"dustUraniumOxide",
"dustManganeseOxide",
"dustManganeseDioxide",
"gemRhodochrosite",
"gemBoronNitride",
"gemFluorite",
"dustRhodochrosite",
"dustQuartz",
"dustNetherQuartz",
"dustBoronNitride",
"dustFluorite",
"ingotTough",
"ingotHardCarbon",
"ingotMagnesiumDiboride",
"ingotLithiumManganeseDioxide",
"ingotFerroboron",
"ingotShibuichi",
"ingotTinSilver",
"ingotLeadPlatinum",
"dustCalciumSulfate",
"dustCrystalBinder",
"plateBasic",
"plateAdvanced",
"plateDU",
"plateElite",
"solenoidCopper",
"solenoidMagnesiumDiboride",
"bioplastic",
"tinyDustLead",
"ingotThorium230Base",
"ingotThorium230",
"ingotThorium230Oxide",
"nuggetThorium230",
"nuggetThorium230Oxide",
"ingotThorium232Base",
"ingotThorium232",
"ingotThorium232Oxide",
"nuggetThorium232",
"nuggetThorium232Oxide",
"ingotUranium233Base",
"ingotUranium233",
"ingotUranium233Oxide",
"nuggetUranium233",
"nuggetUranium233Oxide",
"ingotUranium235Base",
"ingotUranium235",
"ingotUranium235Oxide",
"nuggetUranium235",
"nuggetUranium235Oxide",
"ingotUranium238Base",
"ingotUranium238",
"ingotUranium238Oxide",
"nuggetUranium238",
"nuggetUranium238Oxide",
"ingotNeptunium236Base",
"ingotNeptunium236",
"ingotNeptunium236Oxide",
"nuggetNeptunium236",
"nuggetNeptunium236Oxide",
"ingotNeptunium237Base",
"ingotNeptunium237",
"ingotNeptunium237Oxide",
"nuggetNeptunium237",
"nuggetNeptunium237Oxide",
"ingotPlutonium238Base",
"ingotPlutonium238",
"ingotPlutonium238Oxide",
"nuggetPlutonium238",
"nuggetPlutonium238Oxide",
"ingotPlutonium239Base",
"ingotPlutonium239",
"ingotPlutonium239Oxide",
"nuggetPlutonium239",
"nuggetPlutonium239Oxide",
"ingotPlutonium241Base",
"ingotPlutonium241",
"ingotPlutonium241Oxide",
"nuggetPlutonium241",
"nuggetPlutonium241Oxide",
"ingotPlutonium242Base",
"ingotPlutonium242",
"ingotPlutonium242Oxide",
"nuggetPlutonium242",
"nuggetPlutonium242Oxide",
"ingotAmericium241Base",
"ingotAmericium241",
"ingotAmericium241Oxide",
"nuggetAmericium241",
"nuggetAmericium241Oxide",
"ingotAmericium242Base",
"ingotAmericium242",
"ingotAmericium242Oxide",
"nuggetAmericium242",
"nuggetAmericium242Oxide",
"ingotAmericium243Base",
"ingotAmericium243",
"ingotAmericium243Oxide",
"nuggetAmericium243",
"nuggetAmericium243Oxide",
"ingotCurium243Base",
"ingotCurium243",
"ingotCurium243Oxide",
"nuggetCurium243",
"nuggetCurium243Oxide",
"ingotCurium245Base",
"ingotCurium245",
"ingotCurium245Oxide",
"nuggetCurium245",
"nuggetCurium245Oxide",
"ingotCurium246Base",
"ingotCurium246",
"ingotCurium246Oxide",
"nuggetCurium246",
"nuggetCurium246Oxide",
"ingotCurium247Base",
"ingotCurium247",
"ingotCurium247Oxide",
"nuggetCurium247",
"nuggetCurium247Oxide",
"ingotBerkelium247Base",
"ingotBerkelium247",
"ingotBerkelium247Oxide",
"nuggetBerkelium247",
"nuggetBerkelium247Oxide",
"ingotBerkelium248Base",
"ingotBerkelium248",
"ingotBerkelium248Oxide",
"nuggetBerkelium248",
"nuggetBerkelium248Oxide",
"ingotCalifornium249Base",
"ingotCalifornium249",
"ingotCalifornium249Oxide",
"nuggetCalifornium249",
"nuggetCalifornium249Oxide",
"ingotCalifornium250Base",
"ingotCalifornium250",
"ingotCalifornium250Oxide",
"nuggetCalifornium250",
"nuggetCalifornium250Oxide",
"ingotCalifornium251Base",
"ingotCalifornium251",
"ingotCalifornium251Oxide",
"nuggetCalifornium251",
"nuggetCalifornium251Oxide",
"ingotCalifornium252Base",
"ingotCalifornium252",
"ingotCalifornium252Oxide",
"nuggetCalifornium252",
"nuggetCalifornium252Oxide",
"fuelTBU",
"fuelTBUOxide",
"fuelLEU233",
"fuelLEU233Oxide",
"fuelHEU233",
"fuelHEU233Oxide",
"fuelLEU235",
"fuelLEU235Oxide",
"fuelHEU235",
"fuelHEU235Oxide",
"fuelLEN236",
"fuelLEN236Oxide",
"fuelHEN236",
"fuelHEN236Oxide",
"fuelLEP239",
"fuelLEP239Oxide",
"fuelHEP239",
"fuelHEP239Oxide",
"fuelLEP241",
"fuelLEP241Oxide",
"fuelHEP241",
"fuelHEP241Oxide",
"fuelMOX239",
"fuelMOX241",
"fuelLEA242",
"fuelLEA242Oxide",
"fuelHEA242",
"fuelHEA242Oxide",
"fuelLECm243",
"fuelLECm243Oxide",
"fuelHECm243",
"fuelHECm243Oxide",
"fuelLECm245",
"fuelLECm245Oxide",
"fuelHECm245",
"fuelHECm245Oxide",
"fuelLECm247",
"fuelLECm247Oxide",
"fuelHECm247",
"fuelHECm247Oxide",
"fuelLEB248",
"fuelLEB248Oxide",
"fuelHEB248",
"fuelHEB248Oxide",
"fuelLECf249",
"fuelLECf249Oxide",
"fuelHECf249",
"fuelHECf249Oxide",
"fuelLECf251",
"fuelLECf251Oxide",
"fuelHECf251",
"fuelHECf251Oxide",
"fuelRodTBU",
"fuelRodTBUOxide",
"fuelRodLEU233",
"fuelRodLEU233Oxide",
"fuelRodHEU233",
"fuelRodHEU233Oxide",
"fuelRodLEU235",
"fuelRodLEU235Oxide",
"fuelRodHEU235",
"fuelRodHEU235Oxide",
"fuelRodLEN236",
"fuelRodLEN236Oxide",
"fuelRodHEN236",
"fuelRodHEN236Oxide",
"fuelRodLEP239",
"fuelRodLEP239Oxide",
"fuelRodHEP239",
"fuelRodHEP239Oxide",
"fuelRodLEP241",
"fuelRodLEP241Oxide",
"fuelRodHEP241",
"fuelRodHEP241Oxide",
"fuelRodMOX239",
"fuelRodMOX241",
"fuelRodLEA242",
"fuelRodLEA242Oxide",
"fuelRodHEA242",
"fuelRodHEA242Oxide",
"fuelRodLECm243",
"fuelRodLECm243Oxide",
"fuelRodHECm243",
"fuelRodHECm243Oxide",
"fuelRodLECm245",
"fuelRodLECm245Oxide",
"fuelRodHECm245",
"fuelRodHECm245Oxide",
"fuelRodLECm247",
"fuelRodLECm247Oxide",
"fuelRodHECm247",
"fuelRodHECm247Oxide",
"fuelRodLEB248",
"fuelRodLEB248Oxide",
"fuelRodHEB248",
"fuelRodHEB248Oxide",
"fuelRodLECf249",
"fuelRodLECf249Oxide",
"fuelRodHECf249",
"fuelRodHECf249Oxide",
"fuelRodLECf251",
"fuelRodLECf251Oxide",
"fuelRodHECf251",
"fuelRodHECf251Oxide",
"depletedFuelRodTBU",
"depletedFuelRodTBUOxide",
"depletedFuelRodLEU233",
"depletedFuelRodLEU233Oxide",
"depletedFuelRodHEU233",
"depletedFuelRodHEU233Oxide",
"depletedFuelRodLEU235",
"depletedFuelRodLEU235Oxide",
"depletedFuelRodHEU235",
"depletedFuelRodHEU235Oxide",
"depletedFuelRodLEN236",
"depletedFuelRodLEN236Oxide",
"depletedFuelRodHEN236",
"depletedFuelRodHEN236Oxide",
"depletedFuelRodLEP239",
"depletedFuelRodLEP239Oxide",
"depletedFuelRodHEP239",
"depletedFuelRodHEP239Oxide",
"depletedFuelRodLEP241",
"depletedFuelRodLEP241Oxide",
"depletedFuelRodHEP241",
"depletedFuelRodHEP241Oxide",
"depletedFuelRodMOX239",
"depletedFuelRodMOX241",
"depletedFuelRodLEA242",
"depletedFuelRodLEA242Oxide",
"depletedFuelRodHEA242",
"depletedFuelRodHEA242Oxide",
"depletedFuelRodLECm243",
"depletedFuelRodLECm243Oxide",
"depletedFuelRodHECm243",
"depletedFuelRodHECm243Oxide",
"depletedFuelRodLECm245",
"depletedFuelRodLECm245Oxide",
"depletedFuelRodHECm245",
"depletedFuelRodHECm245Oxide",
"depletedFuelRodLECm247",
"depletedFuelRodLECm247Oxide",
"depletedFuelRodHECm247",
"depletedFuelRodHECm247Oxide",
"depletedFuelRodLEB248",
"depletedFuelRodLEB248Oxide",
"depletedFuelRodHEB248",
"depletedFuelRodHEB248Oxide",
"depletedFuelRodLECf249",
"depletedFuelRodLECf249Oxide",
"depletedFuelRodHECf249",
"depletedFuelRodHECf249Oxide",
"depletedFuelRodLECf251",
"depletedFuelRodLECf251Oxide",
"depletedFuelRodHECf251",
"depletedFuelRodHECf251Oxide",
"ingotBoron10",
"nuggetBoron10",
"ingotBoron11",
"nuggetBoron11",
"ingotLithium6",
"nuggetLithium6",
"ingotLithium7",
"nuggetLithium7",
"gemCoal",
"gemCharcoal",
"nuggetAlumite",
"ingotAlumite",
"blockAlumite",
"ingotOsmium",
"ingotRefinedObsidian",
"ingotRefinedGlowstone",
"nuggetOsgloglas",
"ingotOsgloglas",
"blockOsgloglas",
"nuggetOsmiridium",
"ingotOsmiridium",
"blockOsmiridium",
"ingotTitanium",
"gemQuartzBlack",
"crystalCertusQuartz",
"crystalFluix",
"blockElectrumFlux",
"blockCrystalFlux",
"dustElectrumFlux",
"ingotElectrumFlux",
"nuggetElectrumFlux",
"gearElectrumFlux",
"plateElectrumFlux",
"gemCrystalFlux",
"cropIronberry",
"listAllberry",
"cropWildberry",
"cropGrape",
"cropChilipepper",
"listAllpepper",
"cropTomato",
"treeWood",
"wax",
"particleCustomizer",
"oreGalena",
"oreBauxite",
"orePyrite",
"oreCinnabar",
"oreSphalerite",
"oreTungsten",
"oreSheldonite",
"oreSodalite",
"blockAluminium",
"blockTitanium",
"blockChrome",
"blockBrass",
"blockZinc",
"blockTungsten",
"blockTungstensteel",
"blockRuby",
"blockSapphire",
"blockPeridot",
"blockYellowGarnet",
"blockRedGarnet",
"crafterWood",
"machineBasic",
"saplingRubber",
"logRubber",
"plankRubber",
"leavesRubber",
"fenceIron",
"machineBlockBasic",
"machineBlockAdvanced",
"machineBlockHighlyAdvanced",
"reBattery",
"lapotronCrystal",
"energyCrystal",
"drillBasic",
"drillDiamond",
"drillAdvanced",
"industrialTnt",
"craftingIndustrialDiamond",
"fertilizer",
"hvTransformer",
"uran235",
"uran238",
"smallUran238",
"smallUran235",
"rubberWood",
"glassReinforced",
"plateIridiumAlloy",
"circuitStorage",
"circuitElite",
"circuitMaster",
"machineBlockElite",
"insulatedGoldCableItem",
"ic2Generator",
"ic2SolarPanel",
"ic2Macerator",
"ic2Extractor",
"ic2Windmill",
"ic2Watermill",
"craftingDiamondGrinder",
"craftingTungstenGrinder",
"craftingSuperconductor",
"materialResin",
"materialRubber",
"plateruby",
"platesapphire",
"plateperidot",
"gemRedGarnet",
"plateredGarnet",
"gemYellowGarnet",
"plateyellowGarnet",
"platealuminum",
"ingotBrass",
"platebrass",
"platebronze",
"ingotChrome",
"platechrome",
"platecopper",
"plateelectrum",
"plateinvar",
"plateiridium",
"platelead",
"platenickel",
"plateplatinum",
"platesilver",
"platesteel",
"platetin",
"platetitanium",
"ingotTungsten",
"platetungsten",
"ingotHotTungstensteel",
"ingotTungstensteel",
"platetungstensteel",
"ingotZinc",
"platezinc",
"ingotRefinedIron",
"platerefinedIron",
"ingotAdvancedAlloy",
"plateadvancedAlloy",
"ingotMixedMetal",
"ingotIridiumAlloy",
"plateCarbon",
"plateWood",
"plateRedstone",
"plateDiamond",
"plateEmerald",
"plateCoal",
"plateLazurite",
"plateRuby",
"plateSapphire",
"platePeridot",
"plateRedGarnet",
"plateYellowGarnet",
"plateBrass",
"plateChrome",
"plateTitanium",
"plateTungsten",
"plateTungstensteel",
"plateZinc",
"plateRefinedIron",
"plateAdvancedAlloy",
"platemagnalium",
"plateMagnalium",
"plateiridiumAlloy",
"dustAlmandine",
"dustAndradite",
"dustBasalt",
"dustBauxite",
"dustBrass",
"dustCalcite",
"dustChrome",
"dustCinnabar",
"dustDarkAshes",
"dustEmerald",
"dustEnderEye",
"dustEnderPearl",
"dustEndstone",
"dustFlint",
"dustGalena",
"dustGrossular",
"dustLazurite",
"dustManganese",
"dustMarble",
"dustNetherrack",
"dustPeridot",
"dustPhosphorous",
"dustPyrite",
"dustPyrope",
"dustRedGarnet",
"dustRuby",
"dustSapphire",
"dustSawDust",
"dustSodalite",
"dustSpessartine",
"dustSphalerite",
"dustTitanium",
"dustTungsten",
"dustUvarovite",
"dustYellowGarnet",
"dustZinc",
"dustAndesite",
"dustDiorite",
"dustGranite",
"dustSmallAlmandine",
"dustSmallAluminum",
"dustSmallAndradite",
"dustSmallAshes",
"dustSmallBasalt",
"dustSmallBauxite",
"dustSmallBrass",
"dustSmallBronze",
"dustSmallCalcite",
"dustSmallCharcoal",
"dustSmallChrome",
"dustSmallCinnabar",
"dustSmallClay",
"dustSmallCoal",
"dustSmallCopper",
"dustSmallDarkAshes",
"dustSmallDiamond",
"dustSmallElectrum",
"dustSmallEmerald",
"dustSmallEnderEye",
"dustSmallEnderPearl",
"dustSmallEndstone",
"dustSmallFlint",
"dustSmallGalena",
"dustSmallGold",
"dustSmallGrossular",
"dustSmallInvar",
"dustSmallIron",
"dustSmallLazurite",
"dustSmallLead",
"dustSmallMagnesium",
"dustSmallManganese",
"dustSmallMarble",
"dustSmallNetherrack",
"dustSmallNickel",
"dustSmallObsidian",
"dustSmallPeridot",
"dustSmallPhosphorous",
"dustSmallPlatinum",
"dustSmallPyrite",
"dustSmallPyrope",
"dustSmallRedGarnet",
"dustSmallRuby",
"dustSmallSaltpeter",
"dustSmallSapphire",
"dustSmallSawDust",
"dustSmallSilver",
"dustSmallSodalite",
"dustSmallSpessartine",
"dustSmallSphalerite",
"dustSmallSteel",
"dustSmallSulfur",
"dustSmallTin",
"dustSmallTitanium",
"dustSmallTungsten",
"dustSmallUvarovite",
"dustSmallYellowGarnet",
"dustSmallZinc",
"dustSmallRedstone",
"dustSmallGlowstone",
"dustSmallAndesite",
"dustSmallDiorite",
"dustSmallGranite",
"nuggetBrass",
"nuggetChrome",
"nuggetTitanium",
"nuggetTungsten",
"nuggetHotTungstensteel",
"nuggetTungstensteel",
"nuggetZinc",
"nuggetRefinedIron",
"dustApatite",
"dustAmethyst",
"dustTopaz",
"dustTanzanite",
"dustMalachite",
"dustAmber",
"dustDilithium",
"crystalDilithium",
"oreDilithium",
"stickIron",
"sheetIron",
"coilGold",
"blockCoil",
"dustSilicon",
"ingotSilicon",
"bouleSilicon",
"nuggetSilicon",
"plateSilicon",
"stickCopper",
"sheetCopper",
"coilCopper",
"stickSteel",
"fanSteel",
"sheetSteel",
"stickTitanium",
"sheetTitanium",
"gearTitanium",
"coilTitanium",
"oreRutile",
"oreTitanium",
"sheetAluminum",
"coilAluminum",
"stickIridium",
"coilIridium",
"dustTitaniumAluminide",
"ingotTitaniumAluminide",
"nuggetTitaniumAluminide",
"plateTitaniumAluminide",
"stickTitaniumAluminide",
"sheetTitaniumAluminide",
"gearTitaniumAluminide",
"blockTitaniumAluminide",
"dustTitaniumIridium",
"ingotTitaniumIridium",
"nuggetTitaniumIridium",
"plateTitaniumIridium",
"stickTitaniumIridium",
"sheetTitaniumIridium",
"gearTitaniumIridium",
"blockTitaniumIridium",
"stoneBasalt",
"stoneBasaltPolished",
"bookshelfOak",
"bookshelfSpruce",
"bookshelfBirch",
"bookshelfJungle",
"bookshelfAcacia",
"bookshelfDarkOak",
"blockCobalt",
"blockCoalCoke",
"blockMossy",
"blockConcrete",
"blockConcreteBlack",
"blockConcreteRed",
"blockConcreteGreen",
"blockConcreteBrown",
"blockConcreteBlue",
"blockConcretePurple",
"blockConcreteCyan",
"blockConcreteLightGray",
"blockConcreteGray",
"blockConcretePink",
"blockConcreteLime",
"blockConcreteYellow",
"blockConcreteLightBlue",
"blockConcreteMagenta",
"blockConcreteOrange",
"blockConcreteWhite",
"hardenedClay",
"ice",
"blockIce",
"stoneLimestone",
"stoneLimestonePolished",
"stoneMarble",
"stoneMarblePolished",
"prismarine",
"prismarineBrick",
"prismarineDark",
"brickStone",
"fish",
"boneWithered",
"listAllmeatcooked",
"lexicaBotania",
"petalWhite",
"runeWaterB",
"petalOrange",
"runeFireB",
"petalMagenta",
"runeEarthB",
"petalLightBlue",
"runeAirB",
"petalYellow",
"runeSpringB",
"petalLime",
"runeSummerB",
"petalPink",
"runeAutumnB",
"petalGray",
"runeWinterB",
"petalLightGray",
"runeManaB",
"petalCyan",
"runeLustB",
"petalPurple",
"runeGluttonyB",
"petalBlue",
"runeGreedB",
"petalBrown",
"runeSlothB",
"petalGreen",
"runeWrathB",
"petalRed",
"runeEnvyB",
"petalBlack",
"runePrideB",
"quartzDark",
"quartzMana",
"quartzBlaze",
"quartzLavender",
"quartzRed",
"quartzElven",
"quartzSunny",
"pestleAndMortar",
"ingotManasteel",
"manaPearl",
"manaDiamond",
"livingwoodTwig",
"ingotTerrasteel",
"eternalLifeEssence",
"redstoneRoot",
"ingotElvenElementium",
"elvenPixieDust",
"elvenDragonstone",
"bPlaceholder",
"bRedString",
"dreamwoodTwig",
"gaiaIngot",
"bEnderAirBottle",
"manaString",
"nuggetManasteel",
"nuggetTerrasteel",
"nuggetElvenElementium",
"livingRoot",
"pebble",
"clothManaweave",
"powderMana",
"bVial",
"bFlask",
"rodBlaze",
"powderBlaze",
"mysticFlowerWhite",
"mysticFlowerOrange",
"mysticFlowerMagenta",
"mysticFlowerLightBlue",
"mysticFlowerYellow",
"mysticFlowerLime",
"mysticFlowerPink",
"mysticFlowerGray",
"mysticFlowerLightGray",
"mysticFlowerCyan",
"mysticFlowerPurple",
"mysticFlowerBlue",
"mysticFlowerBrown",
"mysticFlowerGreen",
"mysticFlowerRed",
"mysticFlowerBlack",
"livingrock",
"livingwood",
"dreamwood",
"mysticFlowerWhiteDouble",
"mysticFlowerLightGrayDouble",
"mysticFlowerOrangeDouble",
"mysticFlowerCyanDouble",
"mysticFlowerMagentaDouble",
"mysticFlowerPurpleDouble",
"mysticFlowerLightBlueDouble",
"mysticFlowerBlueDouble",
"mysticFlowerYellowDouble",
"mysticFlowerBrownDouble",
"mysticFlowerLimeDouble",
"mysticFlowerGreenDouble",
"mysticFlowerPinkDouble",
"mysticFlowerRedDouble",
"mysticFlowerGrayDouble",
"mysticFlowerBlackDouble",
"blockBlaze",
"snowLayer",
"mycelium",
"podzol",
"soulSand",
"slabCobblestone",
"drawerBasic",
"drawerTrim",
"slabCopper",
"slabAluminum",
"slabLead",
"slabSilver",
"slabNickel",
"slabUranium",
"slabConstantan",
"slabElectrum",
"slabSteel",
"blockSheetmetalCopper",
"blockSheetmetalAluminum",
"blockSheetmetalLead",
"blockSheetmetalSilver",
"blockSheetmetalNickel",
"blockSheetmetalUranium",
"blockSheetmetalConstantan",
"blockSheetmetalElectrum",
"blockSheetmetalSteel",
"blockSheetmetalIron",
"blockSheetmetalGold",
"slabSheetmetalCopper",
"slabSheetmetalAluminum",
"slabSheetmetalLead",
"slabSheetmetalSilver",
"slabSheetmetalNickel",
"slabSheetmetalUranium",
"slabSheetmetalConstantan",
"slabSheetmetalElectrum",
"slabSheetmetalSteel",
"slabSheetmetalIron",
"slabSheetmetalGold",
"nuggetUranium",
"plateUranium",
"stickTreatedWood",
"stickAluminum",
"fiberHemp",
"fabricHemp",
"dustCoke",
"dustHOPGraphite",
"ingotHOPGraphite",
"wireCopper",
"wireElectrum",
"wireAluminum",
"wireSteel",
"electronTube",
"plankTreatedWood",
"slabTreatedWood",
"fenceTreatedWood",
"scaffoldingTreatedWood",
"concrete",
"fenceSteel",
"fenceAluminum",
"scaffoldingSteel",
"scaffoldingAluminum",
"blockPackedIce",
"blockSnow",
"oreYellorite",
"oreYellorium",
"blockYellorium",
"blockCyanite",
"blockBlutonium",
"blockLudicrite",
"dustYellorium",
"dustCyanite",
"dustBlutonium",
"dustLudicrite",
"dustPlutonium",
"ingotYellorium",
"ingotCyanite",
"ingotBlutonium",
"ingotLudicrite",
"ingotPlutonium",
"nuggetMirion",
"ingotMirion",
"blockMirion",
"gearDiamond",
"gearStone",
"gearWood",
"ingotAbyssalnite",
"ingotLiquifiedCoralium",
"gemCoralium",
"oreAbyssalnite",
"oreCoralium",
"oreDreadedAbyssalnite",
"oreCoraliumStone",
"gemShadow",
"liquidCoralium",
"materialCoraliumPearl",
"liquidAntimatter",
"blockAbyssalnite",
"blockLiquifiedCoralium",
"blockDreadium",
"ingotCoraliumBrick",
"ingotDreadium",
"materialMethane",
"oreSaltpeter",
"crystalIron",
"crystalGold",
"crystalSulfur",
"crystalCarbon",
"crystalOxygen",
"crystalHydrogen",
"crystalNitrogen",
"crystalPhosphorus",
"crystalPotassium",
"crystalNitrate",
"crystalMethane",
"crystalAbyssalnite",
"crystalCoralium",
"crystalDreadium",
"crystalBlaze",
"crystalTin",
"crystalCopper",
"crystalSilicon",
"crystalMagnesium",
"crystalAluminium",
"crystalSilica",
"crystalAlumina",
"crystalMagnesia",
"crystalZinc",
"foodFriedEgg",
"orePearlescentCoralium",
"oreLiquifiedCoralium",
"ingotEthaxiumBrick",
"ingotEthaxium",
"blockEthaxium",
"nuggetAbyssalnite",
"nuggetLiquifiedCoralium",
"nuggetDreadium",
"nuggetEthaxium",
"crystalShardIron",
"crystalShardGold",
"crystalShardSulfur",
"crystalShardCarbon",
"crystalShardOxygen",
"crystalShardHydrogen",
"crystalShardNitrogen",
"crystalShardPhosphorus",
"crystalShardPotassium",
"crystalShardNitrate",
"crystalShardMethane",
"crystalShardRedstone",
"crystalShardAbyssalnite",
"crystalShardCoralium",
"crystalShardDreadium",
"crystalShardBlaze",
"crystalShardTin",
"crystalShardCopper",
"crystalShardSilicon",
"crystalShardMagnesium",
"crystalShardAluminium",
"crystalShardSilica",
"crystalShardAlumina",
"crystalShardMagnesia",
"crystalShardZinc",
"crystalFragmentIron",
"crystalFragmentGold",
"crystalFragmentSulfur",
"crystalFragmentCarbon",
"crystalFragmentOxygen",
"crystalFragmentHydrogen",
"crystalFragmentNitrogen",
"crystalFragmentPhosphorus",
"crystalFragmentPotassium",
"crystalFragmentNitrate",
"crystalFragmentMethane",
"crystalFragmentRedstone",
"crystalFragmentAbyssalnite",
"crystalFragmentCoralium",
"crystalFragmentDreadium",
"crystalFragmentBlaze",
"crystalFragmentTin",
"crystalFragmentCopper",
"crystalFragmentSilicon",
"crystalFragmentMagnesium",
"crystalFragmentAluminium",
"crystalFragmentSilica",
"crystalFragmentAlumina",
"crystalFragmentMagnesia",
"crystalFragmentZinc",
"dustAbyssalnite",
"dustLiquifiedCoralium",
"dustDreadium",
"dustQuartzBlack",
"oreQuartzBlack",
"seedCanola",
"cropCanola",
"seedRice",
"cropRice",
"seedFlax",
"cropFlax",
"seedCoffee",
"slimeballPink",
"blockInferiumEssence",
"blockPrudentiumEssence",
"blockIntermediumEssence",
"blockSuperiumEssence",
"blockSupremiumEssence",
"blockProsperity",
"blockBaseEssence",
"blockInferium",
"blockPrudentium",
"blockIntermedium",
"blockSuperium",
"blockSupremium",
"blockSoulium",
"blockInferiumCoal",
"blockPrudentiumCoal",
"blockIntermediumCoal",
"blockSuperiumCoal",
"blockSupremiumCoal",
"seedsTier3",
"essenceTier5",
"essenceTier2",
"seedsTier2",
"seedsTier5",
"essenceTier1",
"essenceTier3",
"coalInferium",
"essenceTier4",
"seedsTier4",
"ingotBaseEssence",
"essenceSupremium",
"ingotIntermedium",
"essencePrudentium",
"ingotPrudentium",
"seedsTier1",
"nuggetPrudentium",
"coalSupremium",
"nuggetIntermedium",
"ingotSupremium",
"coalIntermedium",
"essenceSuperium",
"shardProsperity",
"ingotSoulium",
"nuggetSuperium",
"coalPrudentium",
"ingotSuperium",
"ingotInferium",
"nuggetSupremium",
"nuggetInferium",
"nuggetBaseEssence",
"nuggetSoulium",
"essenceIntermedium",
"coalSuperium",
"essenceInferium",
"blockInsaniumEssence",
"blockInsanium",
"blockInsaniumCoal",
"essenceInsanium",
"ingotInsanium",
"nuggetInsanium",
"essenceTier6",
"seedsTier6",
"toolPot",
"toolSkillet",
"toolSaucepan",
"toolBakeware",
"toolCuttingboard",
"toolMortarandpestle",
"toolMixingbowl",
"toolJuicer",
"coinGarlic",
"cropCotton",
"seedCotton",
"materialCloth",
"cropCandle",
"cropCandleberry",
"seedCandleberry",
"materialPressedwax",
"dustSalt",
"itemSalt",
"foodHoneydrop",
"flowerRed",
"flowerYellow",
"blockTorch",
"listAllmeatraw",
"listAllchickenraw",
"listAllegg",
"listAllchickencooked",
"listAllporkraw",
"listAllporkcooked",
"listAllbeefraw",
"listAllbeefcooked",
"listAllmuttonraw",
"listAllmuttoncooked",
"listAllturkeyraw",
"listAllturkeycooked",
"listAllrabbitraw",
"listAllrabbitcooked",
"listAllvenisonraw",
"listAllvenisoncooked",
"listAllduckraw",
"listAllduckcooked",
"listAllfishraw",
"listAllfishcooked",
"listAllheavycream",
"listAllicecream",
"listAllmilk",
"listAllwater",
"foodGroundbeef",
"foodGroundchicken",
"foodGroundduck",
"foodGroundfish",
"foodGroundmutton",
"foodGroundpork",
"foodGroundrabbit",
"foodGroundturkey",
"foodGroundvenison",
"flourEqualswheat",
"bread",
"foodBread",
"cropPumpkin",
"cropBeet",
"listAllgrain",
"listAllmushroom",
"salmonRaw",
"listAllsugar",
"listAllgreenveggie",
"cropAsparagus",
"seedAsparagus",
"foodGrilledasparagus",
"cropBarley",
"cropBean",
"seedBean",
"seedBeet",
"cropBroccoli",
"seedBroccoli",
"cropCauliflower",
"seedCauliflower",
"cropCelery",
"seedCelery",
"cropCranberry",
"seedCranberry",
"cropGarlic",
"listAllherb",
"seedGarlic",
"cropGinger",
"listAllspice",
"seedGinger",
"cropLeek",
"seedLeek",
"cropLettuce",
"seedLettuce",
"cropOats",
"seedOats",
"cropOnion",
"seedOnion",
"cropParsnip",
"seedParsnip",
"listAllnut",
"cropPeanut",
"seedPeanut",
"cropPineapple",
"seedPineapple",
"cropRadish",
"seedRadish",
"foodRicecake",
"cropRutabaga",
"seedRutabaga",
"cropRye",
"cropScallion",
"seedScallion",
"cropSoybean",
"seedSoybean",
"cropSpiceleaf",
"seedSpiceleaf",
"cropSunflower",
"cropSweetpotato",
"seedSweetpotato",
"cropTea",
"seedTea",
"foodTea",
"cropWhitemushroom",
"seedWhitemushroom",
"cropArtichoke",
"seedArtichoke",
"cropBellpepper",
"seedBellpepper",
"cropBlackberry",
"seedBlackberry",
"cropBlueberry",
"seedBlueberry",
"cropBrusselsprout",
"seedBrusselsprout",
"cropCabbage",
"seedCabbage",
"cropCactusfruit",
"seedCactusfruit",
"cropCantaloupe",
"seedCantaloupe",
"seedChilipepper",
"foodCoffee",
"cropCorn",
"cropCucumber",
"seedCucumber",
"cropEggplant",
"seedEggplant",
"foodGrilledeggplant",
"seedGrape",
"foodRaisins",
"cropKiwi",
"seedKiwi",
"cropMustard",
"seedMustard",
"cropOkra",
"seedOkra",
"cropPeas",
"seedPeas",
"cropRaspberry",
"seedRaspberry",
"cropRhubarb",
"seedRhubarb",
"cropSeaweed",
"seedSeaweed",
"cropStrawberry",
"seedStrawberry",
"seedTomato",
"cropWintersquash",
"seedWintersquash",
"cropZucchini",
"seedZucchini",
"cropBambooshoot",
"seedBambooshoot",
"cropSpinach",
"seedSpinach",
"cropCurryleaf",
"seedCurryleaf",
"cropSesame",
"seedSesameseed",
"cropWaterchestnut",
"seedGigapickle",
"foodGigapickle",
"foodPickles",
"seedWaterchestnut",
"cropAvocado",
"cropCinnamon",
"cropCoconut",
"foodToastedcoconut",
"cropDragonfruit",
"listAllcitrus",
"cropMango",
"cropNutmeg",
"cropPeppercorn",
"cropPomegranate",
"cropStarfruit",
"cropVanillabean",
"foodVanilla",
"cropGooseberry",
"cropCashew",
"cropDurian",
"cropMaplesyrup",
"cropPistachio",
"foodSalt",
"foodFlour",
"foodDough",
"foodToast",
"foodPasta",
"foodHeavycream",
"foodButter",
"foodCheese",
"foodIcecream",
"foodGrilledcheese",
"foodApplesauce",
"foodApplejuice",
"foodApplepie",
"foodCaramelapple",
"foodPumpkinbread",
"foodRoastedpumpkinseeds",
"foodPumpkinsoup",
"foodMelonjuice",
"foodMelonsmoothie",
"listAllsmoothie",
"foodCarrotjuice",
"foodCarrotcake",
"foodCarrotsoup",
"foodGlazedcarrots",
"foodButteredpotato",
"foodLoadedbakedpotato",
"foodMashedpotatoes",
"foodPotatosalad",
"foodPotatosoup",
"foodFries",
"foodGrilledmushroom",
"foodStuffedmushroom",
"foodChickensandwich",
"foodChickennoodlesoup",
"foodChickenpotpie",
"foodBreadedporkchop",
"foodHotdog",
"foodBakedham",
"foodHamburger",
"foodCheeseburger",
"foodBaconcheeseburger",
"foodPotroast",
"foodFishsandwich",
"foodFishsticks",
"foodFishandchips",
"foodMayo",
"foodFriedegg",
"foodScrambledegg",
"foodBoiledegg",
"foodEggsalad",
"foodCaramel",
"foodTaffy",
"foodSpidereyesoup",
"foodZombiejerky",
"foodCocoapowder",
"foodChocolatebar",
"foodHotchocolate",
"foodChocolateicecream",
"foodVegetablesoup",
"foodStock",
"foodSpagetti",
"foodSpagettiandmeatballs",
"foodTomatosoup",
"foodKetchup",
"foodChickenparmasan",
"foodPizza",
"foodSpringsalad",
"foodPorklettucewrap",
"foodFishlettucewrap",
"foodBlt",
"foodLeafychickensandwich",
"foodLeafyfishsandwich",
"foodDeluxecheeseburger",
"foodDelightedmeal",
"foodOnionsoup",
"foodPotatocakes",
"foodHash",
"foodBraisedonions",
"foodHeartyBreakfast",
"foodCornonthecob",
"foodCornmeal",
"foodCornbread",
"foodTortilla",
"foodNachoes",
"foodTaco",
"foodFishtaco",
"foodCreamedcorn",
"foodStrawberrysmoothie",
"foodStrawberrypie",
"foodStrawberrysalad",
"foodStrawberryjuice",
"foodChocolatestrawberry",
"foodPeanutbutter",
"listAllnutbutter",
"foodTrailmix",
"foodPbandj",
"foodPeanutbuttercookies",
"listAllcookie",
"foodGrapejuice",
"foodVinegar",
"foodGrapejelly",
"foodGrapesalad",
"foodRaisincookies",
"foodCucumbersalad",
"foodCucumbersoup",
"foodVegetarianlettucewrap",
"foodMarinatedcucumbers",
"foodRicesoup",
"foodFriedrice",
"foodMushroomrisotto",
"foodCurry",
"foodRainbowcurry",
"foodRefriedbeans",
"foodBakedbeans",
"foodBeansandrice",
"foodChili",
"foodBeanburrito",
"foodStuffedpepper",
"foodVeggiestirfry",
"foodGrilledskewers",
"foodSupremepizza",
"foodOmelet",
"foodHotwings",
"foodChilipoppers",
"foodExtremechili",
"foodChilichocolate",
"foodLemonaide",
"foodLemonbar",
"foodFishdinner",
"foodLemonsmoothie",
"foodLemonmeringue",
"foodCandiedlemon",
"foodLemonchicken",
"foodBlueberrysmoothie",
"foodBlueberrypie",
"foodBlueberrymuffin",
"foodBlueberryjuice",
"foodPancakes",
"foodBlueberrypancakes",
"foodCherryjuice",
"foodCherrypie",
"foodChocolatecherry",
"foodCherrysmoothie",
"foodCheesecake",
"foodCherrycheesecake",
"foodStuffedeggplant",
"foodEggplantparm",
"foodRaspberryicedtea",
"foodChaitea",
"foodEspresso",
"foodCoffeeconleche",
"foodMochaicecream",
"foodPickledbeets",
"foodBeetsalad",
"foodBeetsoup",
"foodBakedbeets",
"foodBroccolimac",
"foodBroccolindip",
"foodCreamedbroccolisoup",
"foodSweetpotatopie",
"foodCandiedsweetpotatoes",
"foodMashedsweetpotatoes",
"foodSteamedpeas",
"foodSplitpeasoup",
"foodPineappleupsidedowncake",
"foodPineappleham",
"foodPineappleyogurt",
"foodTurnipsoup",
"foodRoastedrootveggiemedley",
"foodBakedturnips",
"foodGingerbread",
"foodGingersnaps",
"foodCandiedginger",
"foodMustard",
"foodSoftpretzelandmustard",
"foodSpicymustardpork",
"foodSpicygreens",
"foodGarlicbread",
"foodGarlicmashedpotatoes",
"foodGarlicchicken",
"foodSummerradishsalad",
"foodSummersquashwithradish",
"foodCeleryandpeanutbutter",
"foodChickencelerycasserole",
"foodPeasandcelery",
"foodCelerysoup",
"foodZucchinibread",
"foodZucchinifries",
"foodZestyzucchini",
"foodZucchinibake",
"foodAsparagusquiche",
"foodAsparagussoup",
"foodWalnutraisinbread",
"foodCandiedwalnuts",
"foodBrownie",
"foodPapayajuice",
"foodPapayasmoothie",
"foodPapayayogurt",
"foodStarfruitjuice",
"foodStarfruitsmoothie",
"foodStarfruityogurt",
"foodGuacamole",
"foodCreamofavocadosoup",
"foodAvocadoburrito",
"foodPoachedpear",
"foodFruitcrumble",
"foodPearyogurt",
"foodPlumyogurt",
"foodBananasplit",
"foodBanananutbread",
"foodBananasmoothie",
"foodBananayogurt",
"foodCoconutmilk",
"foodChickencurry",
"foodCoconutshrimp",
"foodCoconutyogurt",
"foodOrangejuice",
"foodOrangechicken",
"foodOrangesmoothie",
"foodOrangeyogurt",
"foodPeachjuice",
"foodPeachcobbler",
"foodPeachsmoothie",
"foodPeachyogurt",
"foodLimejuice",
"foodKeylimepie",
"foodLimesmoothie",
"foodLimeyogurt",
"foodMangojuice",
"foodMangosmoothie",
"foodMangoyogurt",
"foodPomegranatejuice",
"foodPomegranatesmoothie",
"foodPomegranateyogurt",
"foodVanillayogurt",
"foodCinnamonroll",
"foodFrenchtoast",
"foodMarshmellows",
"foodDonut",
"foodChocolatedonut",
"foodPowdereddonut",
"foodJellydonut",
"foodFrosteddonut",
"foodCactussoup",
"foodWaffles",
"foodSeedsoup",
"foodSoftpretzel",
"foodJellybeans",
"foodBiscuit",
"foodCreamcookie",
"foodJaffa",
"foodFriedchicken",
"foodChocolatesprinklecake",
"foodRedvelvetcake",
"foodFootlong",
"foodBlueberryyogurt",
"foodLemonyogurt",
"foodCherryyogurt",
"foodStrawberryyogurt",
"foodGrapeyogurt",
"foodChocolateyogurt",
"foodBlackberryjuice",
"foodBlackberrycobbler",
"foodBlackberrysmoothie",
"foodBlackberryyogurt",
"foodChocolatemilk",
"foodPumpkinyogurt",
"foodRaspberryjuice",
"foodRaspberrypie",
"foodRaspberrysmoothie",
"foodRaspberryyogurt",
"foodCinnamonsugardonut",
"foodMelonyogurt",
"foodKiwijuice",
"foodKiwismoothie",
"foodKiwiyogurt",
"foodPlainyogurt",
"foodAppleyogurt",
"foodSaltedsunflowerseeds",
"foodSunflowerwheatrolls",
"foodSunflowerbroccolisalad",
"foodCranberryjuice",
"foodCranberrysauce",
"foodCranberrybar",
"foodPeppermint",
"foodCactusfruitjuice",
"foodBlackpepper",
"foodGroundcinnamon",
"foodGroundnutmeg",
"foodOliveoil",
"foodBaklava",
"foodGummybears",
"foodBaconmushroomburger",
"foodFruitpunch",
"foodMeatystew",
"foodMixedsalad",
"foodPinacolada",
"foodSaladdressing",
"foodShepherdspie",
"foodEggnog",
"foodCustard",
"foodSushi",
"foodGardensoup",
"foodMuttonraw",
"foodMuttoncooked",
"foodCalamariraw",
"foodCalamaricooked",
"foodApplejelly",
"foodApplejellysandwich",
"foodBlackberryjelly",
"foodBlackberryjellysandwich",
"foodBlueberryjelly",
"foodBlueberryjellysandwich",
"foodCherryjelly",
"foodCherryjellysandwich",
"foodCranberryjelly",
"foodCranberryjellysandwich",
"foodKiwijelly",
"foodKiwijellysandwich",
"foodLemonjelly",
"foodLemonjellysandwich",
"foodLimejelly",
"foodLimejellysandwich",
"foodMangojelly",
"foodMangojellysandwich",
"foodOrangejelly",
"foodOrangejellysandwich",
"foodPapayajelly",
"foodPapayajellysandwich",
"foodPeachjelly",
"foodPeachjellysandwich",
"foodPomegranatejelly",
"foodPomegranatejellysandwich",
"foodRaspberryjelly",
"foodRaspberryjellysandwich",
"foodStarfruitjelly",
"foodStarfruitjellysandwich",
"foodStrawberryjelly",
"foodStrawberryjellysandwich",
"foodWatermelonjelly",
"foodWatermelonjellysandwich",
"foodBubblywater",
"foodCherrysoda",
"foodColasoda",
"foodGingersoda",
"foodGrapesoda",
"foodLemonlimesoda",
"foodOrangesoda",
"foodRootbeersoda",
"foodStrawberrysoda",
"listAllsoda",
"foodCaramelicecream",
"foodMintchocolatechipicecream",
"foodStrawberryicecream",
"foodVanillaicecream",
"cropEdibleroot",
"foodGingerchicken",
"foodOldworldveggiesoup",
"foodSpicebun",
"foodGingeredrhubarbtart",
"foodLambbarleysoup",
"foodHoneylemonlamb",
"foodPumpkinoatscones",
"foodBeefjerky",
"foodPlumjuice",
"foodPearjuice",
"foodOvenroastedcauliflower",
"foodLeekbaconsoup",
"foodHerbbutterparsnips",
"foodScallionbakedpotato",
"foodSoymilk",
"foodFirmtofu",
"foodSilkentofu",
"foodBamboosteamedrice",
"foodRoastedchestnut",
"foodSweetpotatosouffle",
"foodCashewchicken",
"foodApricotjuice",
"foodApricotyogurt",
"foodApricotglazedpork",
"foodApricotjelly",
"foodApricotjellysandwich",
"foodApricotsmoothie",
"foodFigbar",
"foodFigjelly",
"foodFigjellysandwich",
"foodFigsmoothie",
"foodFigyogurt",
"foodFigjuice",
"foodGrapefruitjuice",
"foodGrapefruitjelly",
"foodGrapefruitjellysandwich",
"foodGrapefruitjellysmoothie",
"foodGrapefruityogurt",
"foodGrapefruitsoda",
"foodCitrussalad",
"foodPecanpie",
"foodPralines",
"foodPersimmonjuice",
"foodPersimmonyogurt",
"foodPersimmonsmoothie",
"foodPersimmonjelly",
"foodPersimmonjellysanwich",
"foodPistachiobakedsalmon",
"foodBaconwrappeddates",
"foodDatenutbread",
"foodMaplesyruppancakes",
"foodMaplesyrupwaffles",
"foodMaplesausage",
"foodMapleoatmeal",
"foodPeachesandcreamoatmeal",
"foodCinnamonappleoatmeal",
"foodMaplecandiedbacon",
"foodToastsandwich",
"foodPotatoandcheesepirogi",
"foodZeppole",
"foodSausageinbread",
"foodChocolatecaramelfudge",
"foodLavendershortbread",
"foodBeefwellington",
"foodEpicbacon",
"foodManjuu",
"foodChickengumbo",
"foodGeneraltsochicken",
"foodCaliforniaroll",
"foodFutomaki",
"foodBeansontoast",
"foodVegemite",
"foodHoneycombchocolatebar",
"foodCherrycoconutchocolatebar",
"foodFairybread",
"foodLamington",
"foodTimtam",
"foodMeatpie",
"foodChikoroll",
"foodDamper",
"foodBeetburger",
"foodPavlova",
"foodGherkin",
"foodMcpam",
"foodCeasarsalad",
"foodChaoscookie",
"foodChocolatebacon",
"foodLambkebab",
"foodNutella",
"foodSnickersbar",
"foodSpinachpie",
"foodSteamedspinach",
"foodVegemiteontoast",
"foodSalmonraw",
"foodAnchovyraw",
"foodBassraw",
"foodCarpraw",
"foodCatfishraw",
"foodCharrraw",
"foodClamraw",
"foodCrabraw",
"foodCrayfishraw",
"foodEelraw",
"foodFrograw",
"foodGrouperraw",
"foodHerringraw",
"foodJellyfishraw",
"foodMudfishraw",
"foodOctopusraw",
"foodPerchraw",
"foodScallopraw",
"foodShrimpraw",
"foodSnailraw",
"foodSnapperraw",
"foodTilapiaraw",
"foodTroutraw",
"foodTunaraw",
"foodTurtleraw",
"foodWalleyraw",
"foodHolidaycake",
"foodClamcooked",
"foodCrabcooked",
"foodCrayfishcooked",
"foodFrogcooked",
"foodOctopuscooked",
"foodScallopcooked",
"foodShrimpcooked",
"foodSnailcooked",
"foodTurtlecooked",
"foodApplecider",
"foodBangersandmash",
"foodBatteredsausage",
"foodBatter",
"foodchorizo",
"foodColeslaw",
"foodEnergydrink",
"foodFriedonions",
"foodMeatfeastpizza",
"foodMincepie",
"foodOnionhamburger",
"foodPepperoni",
"foodPickledonions",
"foodPorksausage",
"foodRaspberrytrifle",
"foodTurkeyraw",
"foodTurkeycooked",
"foodRabbitraw",
"foodRabbitcooked",
"foodVenisonraw",
"foodVenisoncooked",
"foodStrawberrymilkshake",
"foodChocolatemilkshake",
"foodBananamilkshake",
"foodCornflakes",
"foodColeslawburger",
"foodRoastchicken",
"foodRoastpotatoes",
"foodSundayroast",
"foodBbqpulledpork",
"foodLambwithmintsauce",
"foodSteakandchips",
"foodCherryicecream",
"foodPistachioicecream",
"foodNeapolitanicecream",
"foodSpumoniicecream",
"foodAlmondbutter",
"foodCashewbutter",
"foodChestnutbutter",
"foodCornishpasty",
"foodCottagepie",
"foodCroissant",
"foodCurrypowder",
"foodDimsum",
"foodFriedpecanokra",
"foodGooseberryjelly",
"foodGooseberryjellysandwich",
"foodGooseberrymilkeshake",
"foodGooseberrypie",
"foodGooseberrysmoothie",
"foodGooseberryyogurt",
"foodGreenheartfish",
"foodHamsweetpicklesandwich",
"foodHushpuppies",
"foodKimchi",
"foodMochi",
"foodMuseli",
"foodNaan",
"foodOkrachips",
"foodOkracreole",
"foodPistachiobutter",
"foodPloughmanslunch",
"foodPorklomein",
"foodSalmonpatties",
"foodSausage",
"foodSausageroll",
"foodSesameball",
"foodSesamesnaps",
"foodShrimpokrahushpuppies",
"foodSoysauce",
"foodSweetpickle",
"foodVeggiestrips",
"foodVindaloo",
"foodApplesmoothie",
"foodCheeseontoast",
"foodChocolateroll",
"foodCoconutcream",
"foodCoconutsmoothie",
"foodCracker",
"foodCranberrysmoothie",
"foodCranberryyogurt",
"foodDeluxechickencurry",
"foodGarammasala",
"foodGrapesmoothie",
"foodGravy",
"foodHoneysandwich",
"foodJamroll",
"foodMangochutney",
"foodMarzipan",
"foodPaneer",
"foodPaneertikkamasala",
"foodPeaandhamsoup",
"foodPearjelly",
"foodPearjellysandwich",
"foodPearsmoothie",
"foodPlumjelly",
"foodPlumjellysandwich",
"foodPlumsmoothie",
"foodPotatoandleeksoup",
"foodToadinthehole",
"foodTunapotato",
"foodYorkshirepudding",
"foodSesameoil",
"foodHotandsoursoup",
"foodNoodles",
"foodChickenchowmein",
"foodKungpaochicken",
"foodHoisinsauce",
"foodFivespice",
"foodCharsiu",
"foodSweetandsoursauce",
"foodSweetandsourchicken",
"foodBaconandeggs",
"foodBiscuitsandgravy",
"foodApplefritter",
"foodSweettea",
"foodCreepercookie",
"foodPatreonpie",
"foodHoneybread",
"foodHoneybun",
"foodHoneyglazedcarrots",
"foodHoneyglazedham",
"foodHoneysoyribs",
"foodAnchovypepperonipizza",
"foodChocovoxels",
"foodCinnamontoast",
"foodCornedbeefhash",
"foodCornedbeef",
"foodCottoncandy",
"foodCrackers",
"foodCreeperwings",
"foodDhal",
"foodDurianmilkshake",
"foodDurianmuffin",
"foodHomestylelunch",
"foodHotsauce",
"foodIronbrew",
"foodHummus",
"foodLasagna",
"foodLemondrizzlecake",
"foodMeatloaf",
"foodMontecristosandwich",
"foodMushroomlasagna",
"foodMusselcooked",
"foodMusselraw",
"foodNetherwings",
"foodPizzasoup",
"foodPoutine",
"foodSalsa",
"foodSardineraw",
"foodSardinesinhotsauce",
"foodTeriyakichicken",
"foodToastedwestern",
"foodTurkishdelight",
"foodCornedbeefbreakfast",
"foodGreeneggsandham",
"foodSpaghettidinner",
"foodTheatrebox",
"foodCookiesandmilk",
"foodCrackersandcheese",
"foodChickendinner",
"foodBbqplatter",
"foodWeekendpicnic",
"foodCorndog",
"foodChilidog",
"foodHamandcheesesandwich",
"foodTunafishsandwich",
"foodTunasalad",
"foodGrits",
"foodSouthernstylebreakfast",
"foodChimichanga",
"foodClamchowder",
"foodBreakfastburrito",
"foodButtercookie",
"foodSugarcookie",
"foodPotatochips",
"foodBbqpotatochips",
"foodSourcreamandonionpotatochips",
"foodCheddarandsourcreampotatochips",
"foodTortillachips",
"foodChipsandsalsa",
"foodChipsanddip",
"foodCheezepuffs",
"foodSurfandturf",
"foodLiverandonions",
"foodFortunecookie",
"foodDeviledegg",
"foodMozzerellasticks",
"foodGumbo",
"foodJambalaya",
"foodSuccotash",
"foodEggsbenedict",
"foodFriedgreentomatoes",
"foodChickenandwaffles",
"foodPotatoesobrien",
"foodTatertots",
"foodSmores",
"foodThankfuldinner",
"foodSteakfajita",
"foodRamen",
"foodMisosoup",
"foodOnigiri",
"foodGrilledcheesevegemitetoast",
"foodMonsterfrieddumplings",
"foodSalisburysteak",
"foodCrispyricepuffcereal",
"foodCrispyricepuffbars",
"foodBabaganoush",
"foodBerryvinaigrettesalad",
"foodTomatoherbchicken",
"foodPastagardenia",
"foodFiestacornsalad",
"foodThreebeansalad",
"foodSweetandsourmeatballs",
"foodPepperjelly",
"foodPepperjellyandcrackers",
"foodSaltedcaramel",
"foodSpidereyepie",
"foodCheesyshrimpquinoa",
"foodBulgogi",
"foodOmurice",
"foodKoreandinner",
"foodPemmican",
"foodDriedsoup",
"foodCrabkimbap",
"foodFroglegstirfry",
"foodCrawfishetoufee",
"foodHaggis",
"foodChickenkatsu",
"foodChocolateorange",
"foodFestivalbread",
"foodFruitcreamfestivalbread",
"foodPho",
"foodBubbletea",
"foodDuckraw",
"foodDuckcooked",
"foodWontonsoup",
"foodSpringroll",
"foodMeatystirfry",
"foodPotstickers",
"foodOrangeduck",
"foodPekingduck",
"foodStuffedduck",
"foodRoux",
"foodCandiedpecans",
"foodEnchilada",
"foodStuffing",
"foodGreenbeancasserole",
"foodHamandpineapplepizza",
"foodSaucedlambkebab",
"foodCobblestonecobbler",
"foodCrayfishsalad",
"foodCeviche",
"foodDeluxenachoes",
"foodBakedcactus",
"foodGarlicsteak",
"foodMushroomsteak",
"foodHotdishcasserole",
"foodSausagebeanmelt",
"foodMettbrotchen",
"foodPorkrinds",
"foodCracklins",
"foodChorusfruitsoup",
"foodAkutuq",
"foodCantonesegreens",
"foodCantonesenoodles",
"foodDango",
"foodEarlgreytea",
"foodEggroll",
"foodEggtart",
"foodGreentea",
"foodMeesua",
"foodOystercooked",
"foodOysterraw",
"foodOystersauce",
"foodSpringfieldcashewchicken",
"foodSquidinkspaghetti",
"foodSteaktartare",
"foodSzechuaneggplant",
"foodTakoyaki",
"oreDimensionalShard",
"oreAluminium",
"coinAluminium",
"dustAluminium",
"ingotAluminium",
"nuggetAluminium",
"gearAluminium",
"plateAluminium",
"blockChromium",
"ingotChromium",
"plateChromium",
"dustChromium",
"dustSmallAluminium",
"dustSmallChromium",
"nuggetChromium",
"sheetAluminium",
"coilAluminium",
"slabAluminium",
"blockSheetmetalAluminium",
"slabSheetmetalAluminium",
"stickAluminium",
"wireAluminium",
"fenceAluminium",
"scaffoldingAluminium",
"crystalAluminum",
"crystalShardAluminum",
"crystalFragmentAluminum",
"universalCable",
"battery",
"blockSalt",
"alloyBasic",
"alloyAdvanced",
"alloyElite",
"alloyUltimate",
"dustRefinedObsidian",
"nuggetRefinedObsidian",
"nuggetOsmium",
"nuggetRefinedGlowstone",
"blockOsmium",
"blockRefinedObsidian",
"blockRefinedGlowstone",
"dustDirtyIron",
"clumpIron",
"shardIron",
"dustDirtyGold",
"clumpGold",
"shardGold",
"dustOsmium",
"dustDirtyOsmium",
"clumpOsmium",
"shardOsmium",
"crystalOsmium",
"dustDirtyCopper",
"clumpCopper",
"shardCopper",
"dustDirtyTin",
"clumpTin",
"shardTin",
"dustDirtySilver",
"clumpSilver",
"shardSilver",
"crystalSilver",
"dustDirtyLead",
"clumpLead",
"shardLead",
"crystalLead",
"oreOsmium",
"circuitUltimate",
"itemCompressedCarbon",
"itemCompressedRedstone",
"itemCompressedDiamond",
"itemCompressedObsidian",
"itemEnrichedAlloy",
"itemBioFuel",
"slimeballGreen",
"slimeballBlue",
"slimeballPurple",
"slimeballBlood",
"slimeballMagma",
"nuggetCobalt",
"ingotCobalt",
"nuggetArdite",
"ingotArdite",
"blockArdite",
"nuggetManyullyn",
"ingotManyullyn",
"blockManyullyn",
"nuggetKnightslime",
"ingotKnightslime",
"blockKnightslime",
"nuggetPigiron",
"ingotPigiron",
"blockPigiron",
"nuggetAlubrass",
"ingotAlubrass",
"blockAlubrass",
"blockMetal",
"ingotBrickSeared",
"slimecrystal",
"slimecrystalGreen",
"slimecrystalBlue",
"slimecrystalMagma",
"oreCobalt",
"oreArdite",
"partPickHead",
"partBinding",
"partToolRod",
"pattern",
"cast",
"blockSeared",
"blockSlimeCongealed",
"blockSlimeDirt",
"blockSlimeGrass",
"rodStone",
"oreEnderBiotite",
"gemDimensionalShard",
"blockMarble",
"oreAstralStarmetal",
"ingotAstralStarmetal",
"dustAstralStarmetal",
"oreAquamarine",
"gemAquamarine",
"gemCertusQuartz",
"gemChargedCertusQuartz",
"gemFluix",
"fenceAbyssalnite",
"fenceArdite",
"fenceAstralStarmetal",
"fenceBoron",
"fenceCobalt",
"fenceCopper",
"fenceDraconium",
"fenceGold",
"fenceIridium",
"fenceLead",
"fenceLiquifiedCoralium",
"fenceLithium",
"fenceMagnesium",
"fenceMithril",
"fenceNickel",
"fenceOsmium",
"fencePlatinum",
"fenceSilver",
"fenceThorium",
"fenceTin",
"fenceTitanium",
"fenceTungsten",
"fenceUranium",
"fenceYellorium",
"fenceAmber",
"fenceAmethyst",
"fenceApatite",
"fenceAquamarine",
"fenceCoal",
"fenceCoralium",
"fenceDiamond",
"fenceDimensionalShard",
"fenceEmerald",
"fenceEnderBiotite",
"fenceLapis",
"fenceMalachite",
"fencePeridot",
"fenceQuartz",
"fenceQuartzBlack",
"fenceRuby",
"fenceSapphire",
"fenceTanzanite",
"fenceTopaz",
"wallArdite",
"wallCobalt",
"wallCopper",
"wallDraconium",
"wallGold",
"wallIridium",
"wallIron",
"wallLead",
"wallMithril",
"wallNickel",
"wallOsmium",
"wallPlatinum",
"wallSilver",
"wallTin",
"wallTungsten",
"wallUranium",
"wallYellorium",
"wallAmber",
"wallAmethyst",
"wallApatite",
"wallCoal",
"wallDiamond",
"wallDimensionalShard",
"wallEmerald",
"wallEnderBiotite",
"wallLapis",
"wallMalachite",
"wallPeridot",
"wallQuartz",
"wallQuartzBlack",
"wallRuby",
"wallSapphire",
"wallTanzanite",
"wallTopaz",
"glassHardenedAbyssalnite",
"glassHardenedArdite",
"glassHardenedAstralStarmetal",
"glassHardenedBoron",
"glassHardenedCobalt",
"glassHardenedDraconium",
"glassHardenedGold",
"glassHardenedIron",
"glassHardenedLiquifiedCoralium",
"glassHardenedLithium",
"glassHardenedMagnesium",
"glassHardenedOsmium",
"glassHardenedThorium",
"glassHardenedTitanium",
"glassHardenedTungsten",
"glassHardenedUranium",
"glassHardenedYellorium",
"blockAmber",
"blockAmethyst",
"blockDimensionalShard",
"blockEnderBiotite",
"blockMalachite",
"blockQuartzBlack",
"blockTanzanite",
"blockTopaz",
"blockBauxite",
"blockCinnabar",
"blockGalena",
"blockPyrite",
"blockSodalite",
"blockSphalerite",
"crystalClusterArdite",
"crystalClusterAstralStarmetal",
"crystalClusterBoron",
"crystalClusterCobalt",
"crystalClusterDraconium",
"crystalClusterIridium",
"crystalClusterLead",
"crystalClusterLithium",
"crystalClusterMithril",
"crystalClusterNickel",
"crystalClusterOsmium",
"crystalClusterPlatinum",
"crystalClusterSilver",
"crystalClusterThorium",
"crystalClusterTitanium",
"crystalClusterTungsten",
"crystalClusterUranium",
"crystalClusterYellorium",
"dustArdite",
"dustCobalt",
"dustAquamarine",
"dustCoralium",
"dustDimensionalShard",
"dustEnderBiotite",
"nuggetAstralStarmetal",
"nuggetBoron",
"nuggetLithium",
"nuggetMagnesium",
"nuggetThorium",
"nuggetYellorium",
"nuggetAmber",
"nuggetAmethyst",
"nuggetApatite",
"nuggetAquamarine",
"nuggetCoal",
"nuggetCoralium",
"nuggetDimensionalShard",
"nuggetEnderBiotite",
"nuggetLapis",
"nuggetMalachite",
"nuggetPeridot",
"nuggetQuartz",
"nuggetQuartzBlack",
"nuggetRuby",
"nuggetSapphire",
"nuggetTanzanite",
"nuggetTopaz",
"coinAbyssalnite",
"coinArdite",
"coinAstralStarmetal",
"coinBoron",
"coinCobalt",
"coinDraconium",
"coinLiquifiedCoralium",
"coinLithium",
"coinMagnesium",
"coinOsmium",
"coinThorium",
"coinTitanium",
"coinTungsten",
"coinUranium",
"coinYellorium",
"gearAbyssalnite",
"gearArdite",
"gearAstralStarmetal",
"gearBoron",
"gearCobalt",
"gearDraconium",
"gearLiquifiedCoralium",
"gearLithium",
"gearMagnesium",
"gearOsmium",
"gearThorium",
"gearTungsten",
"gearUranium",
"gearYellorium",
"gearAmber",
"gearAmethyst",
"gearApatite",
"gearAquamarine",
"gearCoal",
"gearCoralium",
"gearDimensionalShard",
"gearEmerald",
"gearEnderBiotite",
"gearLapis",
"gearMalachite",
"gearPeridot",
"gearQuartz",
"gearQuartzBlack",
"gearRuby",
"gearSapphire",
"gearTanzanite",
"gearTopaz",
"plateAbyssalnite",
"plateArdite",
"plateAstralStarmetal",
"plateBoron",
"plateCobalt",
"plateDraconium",
"plateLiquifiedCoralium",
"plateLithium",
"plateMagnesium",
"plateOsmium",
"plateThorium",
"plateYellorium",
"plateAmber",
"plateAmethyst",
"plateApatite",
"plateAquamarine",
"plateCoralium",
"plateDimensionalShard",
"plateEnderBiotite",
"plateMalachite",
"plateQuartz",
"plateQuartzBlack",
"plateTanzanite",
"plateTopaz",
"stickAbyssalnite",
"stickArdite",
"stickAstralStarmetal",
"stickBoron",
"stickCobalt",
"stickDraconium",
"stickGold",
"stickLead",
"stickLiquifiedCoralium",
"stickLithium",
"stickMagnesium",
"stickMithril",
"stickNickel",
"stickOsmium",
"stickPlatinum",
"stickSilver",
"stickThorium",
"stickTin",
"stickTungsten",
"stickUranium",
"stickYellorium",
"stickAmber",
"stickAmethyst",
"stickApatite",
"stickAquamarine",
"stickCoal",
"stickCoralium",
"stickDiamond",
"stickDimensionalShard",
"stickEmerald",
"stickEnderBiotite",
"stickLapis",
"stickMalachite",
"stickPeridot",
"stickQuartz",
"stickQuartzBlack",
"stickRuby",
"stickSapphire",
"stickTanzanite",
"stickTopaz",
"dustDirtyAbyssalnite",
"dustDirtyAluminium",
"dustDirtyArdite",
"dustDirtyAstralStarmetal",
"dustDirtyBoron",
"dustDirtyCobalt",
"dustDirtyDraconium",
"dustDirtyIridium",
"dustDirtyLiquifiedCoralium",
"dustDirtyLithium",
"dustDirtyMagnesium",
"dustDirtyMithril",
"dustDirtyNickel",
"dustDirtyPlatinum",
"dustDirtyThorium",
"dustDirtyTitanium",
"dustDirtyTungsten",
"dustDirtyUranium",
"dustDirtyYellorium",
"clumpAbyssalnite",
"clumpAluminium",
"clumpArdite",
"clumpAstralStarmetal",
"clumpBoron",
"clumpCobalt",
"clumpDraconium",
"clumpIridium",
"clumpLiquifiedCoralium",
"clumpLithium",
"clumpMagnesium",
"clumpMithril",
"clumpNickel",
"clumpPlatinum",
"clumpThorium",
"clumpTitanium",
"clumpTungsten",
"clumpUranium",
"clumpYellorium",
"shardAbyssalnite",
"shardAluminium",
"shardArdite",
"shardAstralStarmetal",
"shardBoron",
"shardCobalt",
"shardDraconium",
"shardIridium",
"shardLiquifiedCoralium",
"shardLithium",
"shardMagnesium",
"shardMithril",
"shardNickel",
"shardPlatinum",
"shardThorium",
"shardTitanium",
"shardTungsten",
"shardUranium",
"shardYellorium",
"crystalArdite",
"crystalAstralStarmetal",
"crystalBoron",
"crystalCobalt",
"crystalDraconium",
"crystalIridium",
"crystalLiquifiedCoralium",
"crystalLithium",
"crystalMithril",
"crystalNickel",
"crystalPlatinum",
"crystalThorium",
"crystalTitanium",
"crystalTungsten",
"crystalUranium",
"crystalYellorium",
"crushedAbyssalnite",
"crushedAluminium",
"crushedArdite",
"crushedAstralStarmetal",
"crushedBoron",
"crushedCobalt",
"crushedDraconium",
"crushedIridium",
"crushedLiquifiedCoralium",
"crushedLithium",
"crushedMagnesium",
"crushedMithril",
"crushedNickel",
"crushedOsmium",
"crushedPlatinum",
"crushedThorium",
"crushedTitanium",
"crushedTungsten",
"crushedYellorium",
"crushedPurifiedAbyssalnite",
"crushedPurifiedAluminium",
"crushedPurifiedArdite",
"crushedPurifiedAstralStarmetal",
"crushedPurifiedBoron",
"crushedPurifiedCobalt",
"crushedPurifiedDraconium",
"crushedPurifiedIridium",
"crushedPurifiedLiquifiedCoralium",
"crushedPurifiedLithium",
"crushedPurifiedMagnesium",
"crushedPurifiedMithril",
"crushedPurifiedNickel",
"crushedPurifiedOsmium",
"crushedPurifiedPlatinum",
"crushedPurifiedThorium",
"crushedPurifiedTitanium",
"crushedPurifiedTungsten",
"crushedPurifiedYellorium",
"dustTinyAbyssalnite",
"dustTinyAluminium",
"dustTinyArdite",
"dustTinyAstralStarmetal",
"dustTinyBoron",
"dustTinyCobalt",
"dustTinyDraconium",
"dustTinyIridium",
"dustTinyLiquifiedCoralium",
"dustTinyMagnesium",
"dustTinyMithril",
"dustTinyNickel",
"dustTinyOsmium",
"dustTinyPlatinum",
"dustTinyThorium",
"dustTinyTitanium",
"dustTinyTungsten",
"dustTinyUranium",
"dustTinyYellorium",
"dustTinyAmber",
"dustTinyAmethyst",
"dustTinyApatite",
"dustTinyAquamarine",
"dustTinyCoal",
"dustTinyCoralium",
"dustTinyDiamond",
"dustTinyDimensionalShard",
"dustTinyEmerald",
"dustTinyEnderBiotite",
"dustTinyMalachite",
"dustTinyPeridot",
"dustTinyQuartz",
"dustTinyQuartzBlack",
"dustTinyRuby",
"dustTinySapphire",
"dustTinyTanzanite",
"dustTinyTopaz",
"crystalFragmentArdite",
"crystalFragmentAstralStarmetal",
"crystalFragmentBoron",
"crystalFragmentCobalt",
"crystalFragmentDraconium",
"crystalFragmentIridium",
"crystalFragmentLead",
"crystalFragmentLithium",
"crystalFragmentMithril",
"crystalFragmentNickel",
"crystalFragmentOsmium",
"crystalFragmentPlatinum",
"crystalFragmentSilver",
"crystalFragmentThorium",
"crystalFragmentTitanium",
"crystalFragmentTungsten",
"crystalFragmentUranium",
"crystalFragmentYellorium",
"crystalShardArdite",
"crystalShardAstralStarmetal",
"crystalShardBoron",
"crystalShardCobalt",
"crystalShardDraconium",
"crystalShardIridium",
"crystalShardLead",
"crystalShardLithium",
"crystalShardMithril",
"crystalShardNickel",
"crystalShardOsmium",
"crystalShardPlatinum",
"crystalShardSilver",
"crystalShardThorium",
"crystalShardTitanium",
"crystalShardTungsten",
"crystalShardUranium",
"crystalShardYellorium",
"dustSmallAbyssalnite",
"dustSmallArdite",
"dustSmallAstralStarmetal",
"dustSmallBoron",
"dustSmallCobalt",
"dustSmallDraconium",
"dustSmallIridium",
"dustSmallLiquifiedCoralium",
"dustSmallLithium",
"dustSmallMithril",
"dustSmallOsmium",
"dustSmallThorium",
"dustSmallUranium",
"dustSmallYellorium",
"dustSmallAmber",
"dustSmallAmethyst",
"dustSmallApatite",
"dustSmallAquamarine",
"dustSmallCoralium",
"dustSmallDimensionalShard",
"dustSmallEnderBiotite",
"dustSmallLapis",
"dustSmallMalachite",
"dustSmallQuartz",
"dustSmallQuartzBlack",
"dustSmallTanzanite",
"dustSmallTopaz",
"dustSmallDilithium",
"rodAbyssalnite",
"rodArdite",
"rodAstralStarmetal",
"rodBoron",
"rodCobalt",
"rodDraconium",
"rodGold",
"rodLead",
"rodLiquifiedCoralium",
"rodLithium",
"rodMagnesium",
"rodMithril",
"rodNickel",
"rodOsmium",
"rodPlatinum",
"rodSilver",
"rodThorium",
"rodTin",
"rodTungsten",
"rodUranium",
"rodYellorium",
"rodAmber",
"rodAmethyst",
"rodApatite",
"rodAquamarine",
"rodCoal",
"rodCoralium",
"rodDiamond",
"rodDimensionalShard",
"rodEmerald",
"rodEnderBiotite",
"rodLapis",
"rodMalachite",
"rodPeridot",
"rodQuartz",
"rodQuartzBlack",
"rodRuby",
"rodSapphire",
"rodTanzanite",
"rodTopaz",
"dustEnder",
"glass",
"wool",
"crystalNetherQuartz",
"dustCertusQuartz",
"dustFluix",
"itemIlluminatedPanel",
"bowlWood",
"cropMaloberry",
"ingotHoneyComb",
"clayPorcelain",
"itemSilicon",
"crystalPladium",
"crystalLonsdaleite",
"crystalLitherite",
"crystalKyronite",
"crystalIonite",
"crystalErodium",
"crystalAethium",
"blockAethium",
"etLaserLens",
"blockIonite",
"blockPladium",
"blockKyronite",
"blockErodium",
"blockLitherite",
"etLaserLensColored",
"etSolarCell",
"dustVile",
"dustCorrupted",
"ingotCorrupted",
"gemEndimium",
"itemSkull",
"gemPearl",
"blockPearl",
"bed",
"dustWheat",
"pearlFluix",
"blockStainedHardenedClay",
"crystalPureFluix",
"oreCertusQuartz",
"oreChargedCertusQuartz",
"ingotDawnstone",
"nuggetDawnstone",
"blockDawnstone",
"plateDawnstone",
"plant",
"rootsHerb",
"shardGlass",
"steelAxe",
"steelPickaxe",
"steelShovel",
"obsidianAxe",
"obsidianPickaxe",
"obsidianShovel",
"bronzeAxe",
"bronzePickaxe",
"bronzeShovel",
"fieryItem",
"fieryBlock",
"creativeATMStar",
"astralGemCrystals",
"blockSlate",
"stoneSlate",
"oreDimensional",
"buttonWood",
"listAllSeed",
"seed",
"blockMagma",
"fusionExtreme",
"uuMatterItem",
"beehiveForestry",
"basicPump",
"growGlass",
"nuclearcraftDepletedRod",
"ic2DepletedRod",
"chunkloaderUpgrade",
"itemBattery",
"blockMotor",
"dustThermite",
"ingotCarbon",
"waferSilicon",
"itemLens",
"turfMoon",
"blockPsiDust",
"blockPsiMetal",
"blockPsiGem",
"blockCandle",
"stonePolished",
"plankStained",
"listAllGrain",
"foodEqualswheat",
"dustSulphur",
"cropBlightberry",
"cropDuskberry",
"cropSkyberry",
"cropStingberry",
"taintedSoil",
"glassSoul",
"cropVine",
"tallgrass",
"lilypad",
"mushroom",
"hopper",
"cropBeetroot",
"blockNetherWart",
"blockBone",
"shulkerShell",
"shulkerBox",
"rail",
"arrow",
"careerBeesYing",
"careerBeesYang",
"plateClayRaw",
"plateClay",
"plateBrick",
"oc:adapter",
"oc:assembler",
"oc:cable",
"oc:capacitor",
"oc:case1",
"oc:case3",
"oc:case2",
"oc:chameliumBlock",
"oc:charger",
"oc:disassembler",
"oc:diskDrive",
"oc:geolyzer",
"oc:hologram1",
"oc:hologram2",
"oc:keyboard",
"oc:motionSensor",
"oc:powerConverter",
"oc:powerDistributor",
"oc:printer",
"oc:raid",
"oc:redstone",
"oc:relay",
"oc:screen1",
"oc:screen3",
"oc:screen2",
"oc:rack",
"oc:waypoint",
"oc:netSplitter",
"oc:transposer",
"oc:carpetedCapacitor",
"oc:materialCuttingWire",
"oc:materialAcid",
"oc:materialCircuitBoardRaw",
"oc:materialCircuitBoard",
"oc:materialCircuitBoardPrinted",
"oc:materialCard",
"oc:materialTransistor",
"oc:circuitChip1",
"oc:circuitChip2",
"oc:circuitChip3",
"oc:materialALU",
"oc:materialCU",
"oc:materialDisk",
"oc:materialInterweb",
"oc:materialButtonGroup",
"oc:materialArrowKey",
"oc:materialNumPad",
"oc:tabletCase1",
"oc:tabletCase2",
"oc:microcontrollerCase1",
"oc:microcontrollerCase2",
"oc:droneCase1",
"oc:droneCase2",
"oc:inkCartridgeEmpty",
"oc:inkCartridge",
"oc:chamelium",
"oc:analyzer",
"oc:terminal",
"oc:texturePicker",
"oc:manual",
"oc:wrench",
"oc:hoverBoots",
"oc:nanomachines",
"oc:cpu1",
"oc:cpu2",
"oc:cpu3",
"oc:componentBus1",
"oc:componentBus2",
"oc:componentBus3",
"oc:ram1",
"oc:ram2",
"oc:ram3",
"oc:ram4",
"oc:ram5",
"oc:ram6",
"oc:server1",
"oc:server2",
"oc:server3",
"oc:apu1",
"oc:apu2",
"oc:terminalServer",
"oc:diskDriveMountable",
"oc:graphicsCard1",
"oc:graphicsCard2",
"oc:graphicsCard3",
"oc:redstoneCard1",
"oc:redstoneCard2",
"oc:lanCard",
"oc:wlanCard2",
"oc:internetCard",
"oc:linkedCard",
"oc:dataCard1",
"oc:dataCard2",
"oc:dataCard3",
"oc:angelUpgrade",
"oc:batteryUpgrade1",
"oc:batteryUpgrade2",
"oc:batteryUpgrade3",
"oc:chunkloaderUpgrade",
"oc:cardContainer1",
"oc:cardContainer2",
"oc:cardContainer3",
"oc:upgradeContainer1",
"oc:upgradeContainer2",
"oc:upgradeContainer3",
"oc:craftingUpgrade",
"oc:databaseUpgrade1",
"oc:databaseUpgrade2",
"oc:databaseUpgrade3",
"oc:experienceUpgrade",
"oc:generatorUpgrade",
"oc:inventoryUpgrade",
"oc:inventoryControllerUpgrade",
"oc:navigationUpgrade",
"oc:pistonUpgrade",
"oc:signUpgrade",
"oc:solarGeneratorUpgrade",
"oc:tankUpgrade",
"oc:tankControllerUpgrade",
"oc:tractorBeamUpgrade",
"oc:leashUpgrade",
"oc:hoverUpgrade1",
"oc:hoverUpgrade2",
"oc:tradingUpgrade",
"oc:mfu",
"oc:wlanCard1",
"oc:eeprom",
"oc:floppy",
"oc:hdd1",
"oc:hdd2",
"oc:hdd3",
"blockWither",
"blockLonsdaleite",
"blockCompactRawPorkchop",
"oreProsperity",
"oreNetherProsperity",
"oreEndProsperity",
"oreInferium",
"oreNetherInferium",
"oreEndInferium",
"oreEndimium",
"oreBurnium",
"blockEndimium",
"blockBurnium",
"gateWood",
"cropPricklyPear",
"cropGrapes",
"cropLifeFruit",
"cropDeathFruit",
"listAllCitrus",
"gemBurnium",
"dustTinyBurnium",
"dustBurnium",
"dustTinyEndimium",
"dustEndimium",
"dustTinyEnder",
"dustTinyRedstone",
"lumpSandstone",
"lumpGravel",
"lumpRedSandstone",
]
| oredict = ['logWood', 'plankWood', 'slabWood', 'stairWood', 'stickWood', 'treeSapling', 'treeLeaves', 'vine', 'oreGold', 'oreIron', 'oreLapis', 'oreDiamond', 'oreRedstone', 'oreEmerald', 'oreQuartz', 'oreCoal', 'ingotIron', 'ingotGold', 'ingotBrick', 'ingotBrickNether', 'nuggetGold', 'nuggetIron', 'gemDiamond', 'gemEmerald', 'gemQuartz', 'gemPrismarine', 'dustPrismarine', 'dustRedstone', 'dustGlowstone', 'gemLapis', 'blockGold', 'blockIron', 'blockLapis', 'blockDiamond', 'blockRedstone', 'blockEmerald', 'blockQuartz', 'blockCoal', 'cropWheat', 'cropPotato', 'cropCarrot', 'cropNetherWart', 'sugarcane', 'blockCactus', 'dye', 'paper', 'slimeball', 'enderpearl', 'bone', 'gunpowder', 'string', 'netherStar', 'leather', 'feather', 'egg', 'record', 'dirt', 'grass', 'stone', 'cobblestone', 'gravel', 'sand', 'sandstone', 'netherrack', 'obsidian', 'glowstone', 'endstone', 'torch', 'workbench', 'blockSlime', 'blockPrismarine', 'blockPrismarineBrick', 'blockPrismarineDark', 'stoneGranite', 'stoneGranitePolished', 'stoneDiorite', 'stoneDioritePolished', 'stoneAndesite', 'stoneAndesitePolished', 'blockGlassColorless', 'blockGlass', 'paneGlassColorless', 'paneGlass', 'chest', 'chestWood', 'chestEnder', 'chestTrapped', 'dyeBlack', 'blockGlassBlack', 'paneGlassBlack', 'dyeRed', 'blockGlassRed', 'paneGlassRed', 'dyeGreen', 'blockGlassGreen', 'paneGlassGreen', 'dyeBrown', 'blockGlassBrown', 'paneGlassBrown', 'dyeBlue', 'blockGlassBlue', 'paneGlassBlue', 'dyePurple', 'blockGlassPurple', 'paneGlassPurple', 'dyeCyan', 'blockGlassCyan', 'paneGlassCyan', 'dyeLightGray', 'blockGlassLightGray', 'paneGlassLightGray', 'dyeGray', 'blockGlassGray', 'paneGlassGray', 'dyePink', 'blockGlassPink', 'paneGlassPink', 'dyeLime', 'blockGlassLime', 'paneGlassLime', 'dyeYellow', 'blockGlassYellow', 'paneGlassYellow', 'dyeLightBlue', 'blockGlassLightBlue', 'paneGlassLightBlue', 'dyeMagenta', 'blockGlassMagenta', 'paneGlassMagenta', 'dyeOrange', 'blockGlassOrange', 'paneGlassOrange', 'dyeWhite', 'blockGlassWhite', 'paneGlassWhite', 'blockWool', 'coal', 'charcoal', 'bookshelf', 'ingotUnstable', 'nuggetUnstable', 'compressed1xCobblestone', 'compressed2xCobblestone', 'compressed3xCobblestone', 'compressed4xCobblestone', 'compressed5xCobblestone', 'compressed6xCobblestone', 'compressed7xCobblestone', 'compressed8xCobblestone', 'compressed1xDirt', 'compressed2xDirt', 'compressed3xDirt', 'compressed4xDirt', 'compressed1xSand', 'compressed2xSand', 'compressed1xGravel', 'compressed2xGravel', 'compressed1xNetherrack', 'compressed2xNetherrack', 'compressed3xNetherrack', 'compressed4xNetherrack', 'compressed5xNetherrack', 'compressed6xNetherrack', 'gemRedstone', 'gearRedstone', 'eyeofredstone', 'dustLunar', 'coalPowered', 'gemMoon', 'xuUpgradeSpeed', 'xuUpgradeStack', 'xuUpgradeMining', 'xuUpgradeBlank', 'dropofevil', 'ingotDemonicMetal', 'ingotEnchantedMetal', 'xuRedstoneCoil', 'xuUpgradeSpeedEnchanted', 'ingotEvilMetal', 'blockEnchantedMetal', 'blockDemonicMetal', 'blockEvilMetal', 'blockMagicalWood', 'bricksStone', 'dustIron', 'dustGold', 'oreCopper', 'dustCopper', 'dustTin', 'ingotCopper', 'oreTin', 'ingotTin', 'oreLead', 'dustLead', 'dustSilver', 'ingotLead', 'oreSilver', 'ingotSilver', 'oreNickel', 'dustNickel', 'dustPlatinum', 'ingotNickel', 'orePlatinum', 'ingotPlatinum', 'mushroomAny', 'tallow', 'gemEnderBiotite', 'woodRubber', 'dustLapis', 'oreUranium', 'dustStone', 'dustBronze', 'dustClay', 'dustCoal', 'dustObsidian', 'dustSulfur', 'dustLithium', 'dustDiamond', 'dustSiliconDioxide', 'dustHydratedCoal', 'dustAshes', 'dustTinyCopper', 'dustTinyGold', 'dustTinyIron', 'dustTinySilver', 'dustTinyTin', 'dustTinyLead', 'dustTinySulfur', 'dustTinyLithium', 'dustTinyBronze', 'dustTinyLapis', 'dustTinyObsidian', 'itemRubber', 'ingotBronze', 'ingotSteel', 'plateIron', 'plateGold', 'plateCopper', 'plateTin', 'plateLead', 'plateLapis', 'plateObsidian', 'plateBronze', 'plateSteel', 'plateDenseSteel', 'plateDenseIron', 'plateDenseGold', 'plateDenseCopper', 'plateDenseTin', 'plateDenseLead', 'plateDenseLapis', 'plateDenseObsidian', 'plateDenseBronze', 'crushedIron', 'crushedGold', 'crushedSilver', 'crushedLead', 'crushedCopper', 'crushedTin', 'crushedUranium', 'crushedPurifiedIron', 'crushedPurifiedGold', 'crushedPurifiedSilver', 'crushedPurifiedLead', 'crushedPurifiedCopper', 'crushedPurifiedTin', 'crushedPurifiedUranium', 'blockBronze', 'blockCopper', 'blockTin', 'blockUranium', 'blockLead', 'blockSilver', 'blockSteel', 'circuitBasic', 'circuitAdvanced', 'craftingToolForgeHammer', 'craftingToolWireCutter', 'gemApatite', 'brickPeat', 'dustAsh', 'gearBronze', 'gearCopper', 'gearTin', 'pulpWood', 'itemBeeswax', 'cropCherry', 'fruitForestry', 'cropWalnut', 'cropChestnut', 'cropLemon', 'cropPlum', 'cropDate', 'cropPapaya', 'oreApatite', 'blockApatite', 'craftingTableWood', 'trapdoorWood', 'blockCharcoal', 'dropHoney', 'itemPollen', 'dropHoneydew', 'dropRoyalJelly', 'beeComb', 'fenceWood', 'fenceGateWood', 'doorWood', 'emptiedLetter', 'weedkiller', 'toolTrowel', 'binnie_database', 'pigment', 'cropApple', 'cropCrabapple', 'cropOrange', 'cropKumquat', 'cropLime', 'cropWildCherry', 'cropSourCherry', 'cropBlackCherry', 'cropBlackthorn', 'cropCherryPlum', 'cropAlmond', 'cropApricot', 'cropGrapefruit', 'cropPeach', 'cropSatsuma', 'cropBuddhaHand', 'cropCitron', 'cropFingerLime', 'cropKeyLime', 'cropManderin', 'cropNectarine', 'cropPomelo', 'cropTangerine', 'cropPear', 'cropSandPear', 'cropHazelnut', 'cropButternut', 'cropBeechnut', 'cropPecan', 'cropBanana', 'cropRedBanana', 'cropPlantain', 'cropBrazilNut', 'cropFig', 'cropAcorn', 'cropElderberry', 'cropOlive', 'cropGingkoNut', 'cropCoffee', 'cropOsangeOrange', 'cropClove', 'cropHops', 'seedWheat', 'seedBarley', 'seedCorn', 'seedRye', 'seedRoasted', 'ballMud', 'blockMeatRaw', 'blockMud', 'foodMushroompowder', 'foodFruitsalad', 'foodVeggiesalad', 'foodMushroomsalad', 'foodFilledhoneycomb', 'foodAmbrosia', 'foodBowlofrice', 'cropPersimmon', 'cropTurnip', 'listAllfruit', 'listAllrootveggie', 'listAllveggie', 'seedTurnip', 'listAllseed', 'gemAmethyst', 'oreAmethyst', 'gemRuby', 'oreRuby', 'gemPeridot', 'orePeridot', 'gemTopaz', 'oreTopaz', 'gemTanzanite', 'oreTanzanite', 'gemMalachite', 'oreMalachite', 'gemSapphire', 'oreSapphire', 'gemAmber', 'oreAmber', 'flowerClover', 'flowerSwampflower', 'flowerDeathbloom', 'flowerGlowflower', 'flowerBlueHydrangea', 'flowerOrangeCosmos', 'flowerPinkDaffodil', 'flowerWildflower', 'flowerViolet', 'flowerWhiteAnemone', 'flowerEnderlotus', 'flowerBromeliad', 'flowerWiltedLily', 'flowerPinkHibiscus', 'flowerLilyOfTheValley', 'flowerBurningBlossom', 'flowerLavender', 'flowerGoldenrod', 'flowerBluebells', 'flowerMinersDelight', 'flowerIcyIris', 'flowerRose', 'plantShortgrass', 'plantMediumgrass', 'plantBush', 'plantSprout', 'plantPoisonivy', 'plantBerrybush', 'plantShrub', 'plantWheatgrass', 'plantDampgrass', 'plantKoru', 'plantCloverpatch', 'plantLeafpile', 'plantDeadleafpile', 'plantDeadgrass', 'plantDesertgrass', 'plantDesertsprouts', 'plantDunegrass', 'plantSpectralfern', 'plantThorn', 'plantWildrice', 'plantCattail', 'plantRivercane', 'plantTinycactus', 'plantDevilweed', 'plantReed', 'plantRoot', 'plantRafflesia', 'plantFlax', 'blockWoolWhite', 'blockWoolOrange', 'blockWoolMagenta', 'blockWoolLightBlue', 'blockWoolYellow', 'blockWoolLime', 'blockWoolPink', 'blockWoolGray', 'blockWoolLightGray', 'blockWoolCyan', 'blockWoolPurple', 'blockWoolBlue', 'blockWoolBrown', 'blockWoolGreen', 'blockWoolRed', 'blockWoolBlack', 'flower', 'craftingPiston', 'torchRedstoneActive', 'materialEnderPearl', 'oc:wlanCard', 'chipDiamond', 'oc:stoneEndstone', 'oreAluminum', 'oreIridium', 'oreMithril', 'oreFluidCrudeOilSand', 'oreFluidCrudeOilShale', 'oreFluidRedstone', 'oreFluidGlowstone', 'oreFluidEnder', 'blockAluminum', 'blockNickel', 'blockPlatinum', 'blockIridium', 'blockMithril', 'blockElectrum', 'blockInvar', 'blockConstantan', 'blockSignalum', 'blockLumium', 'blockEnderium', 'blockFuelCoke', 'blockGlassHardened', 'blockRockwool', 'coinIron', 'coinGold', 'coinCopper', 'coinTin', 'coinSilver', 'coinLead', 'coinAluminum', 'coinNickel', 'coinPlatinum', 'coinIridium', 'coinMithril', 'coinSteel', 'coinElectrum', 'coinInvar', 'coinBronze', 'coinConstantan', 'coinSignalum', 'coinLumium', 'coinEnderium', 'nuggetDiamond', 'nuggetEmerald', 'gearIron', 'gearGold', 'dustAluminum', 'dustIridium', 'dustMithril', 'dustSteel', 'dustElectrum', 'dustInvar', 'dustConstantan', 'dustSignalum', 'dustLumium', 'dustEnderium', 'ingotAluminum', 'ingotIridium', 'ingotMithril', 'ingotElectrum', 'ingotInvar', 'ingotConstantan', 'ingotSignalum', 'ingotLumium', 'ingotEnderium', 'nuggetCopper', 'nuggetTin', 'nuggetSilver', 'nuggetLead', 'nuggetAluminum', 'nuggetNickel', 'nuggetPlatinum', 'nuggetIridium', 'nuggetMithril', 'nuggetSteel', 'nuggetElectrum', 'nuggetInvar', 'nuggetBronze', 'nuggetConstantan', 'nuggetSignalum', 'nuggetLumium', 'nuggetEnderium', 'gearSilver', 'gearLead', 'gearAluminum', 'gearNickel', 'gearPlatinum', 'gearIridium', 'gearMithril', 'gearSteel', 'gearElectrum', 'gearInvar', 'gearConstantan', 'gearSignalum', 'gearLumium', 'gearEnderium', 'plateSilver', 'plateAluminum', 'plateNickel', 'platePlatinum', 'plateIridium', 'plateMithril', 'plateElectrum', 'plateInvar', 'plateConstantan', 'plateSignalum', 'plateLumium', 'plateEnderium', 'dustCharcoal', 'dustWood', 'crystalSlag', 'crystalSlagRich', 'crystalCinnabar', 'crystalCrudeOil', 'crystalRedstone', 'crystalGlowstone', 'crystalEnder', 'dustPyrotheum', 'dustCryotheum', 'dustAerotheum', 'dustPetrotheum', 'dustMana', 'rodBlizz', 'dustBlizz', 'rodBlitz', 'dustBlitz', 'rodBasalz', 'dustBasalz', 'dustSaltpeter', 'fuelCoke', 'itemSlag', 'itemSlagRich', 'itemCinnabar', 'dragonEgg', 'oreDraconium', 'blockDraconium', 'blockDraconiumAwakened', 'ingotDraconium', 'dustDraconium', 'ingotDraconiumAwakened', 'nuggetDraconium', 'nuggetDraconiumAwakened', 'dustPsi', 'substanceEbony', 'ingotPsi', 'substanceIvory', 'ingotEbonyPsi', 'ingotIvoryPsi', 'gemPsi', 'crystalsPrismarine', 'shardPrismarine', 'oreThorium', 'oreBoron', 'oreLithium', 'oreMagnesium', 'blockThorium', 'blockBoron', 'blockLithium', 'blockMagnesium', 'blockGraphite', 'blockBeryllium', 'blockZirconium', 'blockDepletedThorium', 'blockDepletedUranium', 'blockDepletedNeptunium', 'blockDepletedPlutonium', 'blockDepletedAmericium', 'blockDepletedCurium', 'blockDepletedBerkelium', 'blockDepletedCalifornium', 'ingotThorium', 'ingotUranium', 'ingotBoron', 'ingotLithium', 'ingotMagnesium', 'ingotGraphite', 'ingotBeryllium', 'ingotZirconium', 'ingotThoriumOxide', 'ingotUraniumOxide', 'ingotManganeseOxide', 'ingotManganeseDioxide', 'dustThorium', 'dustUranium', 'dustBoron', 'dustMagnesium', 'dustGraphite', 'dustBeryllium', 'dustZirconium', 'dustThoriumOxide', 'dustUraniumOxide', 'dustManganeseOxide', 'dustManganeseDioxide', 'gemRhodochrosite', 'gemBoronNitride', 'gemFluorite', 'dustRhodochrosite', 'dustQuartz', 'dustNetherQuartz', 'dustBoronNitride', 'dustFluorite', 'ingotTough', 'ingotHardCarbon', 'ingotMagnesiumDiboride', 'ingotLithiumManganeseDioxide', 'ingotFerroboron', 'ingotShibuichi', 'ingotTinSilver', 'ingotLeadPlatinum', 'dustCalciumSulfate', 'dustCrystalBinder', 'plateBasic', 'plateAdvanced', 'plateDU', 'plateElite', 'solenoidCopper', 'solenoidMagnesiumDiboride', 'bioplastic', 'tinyDustLead', 'ingotThorium230Base', 'ingotThorium230', 'ingotThorium230Oxide', 'nuggetThorium230', 'nuggetThorium230Oxide', 'ingotThorium232Base', 'ingotThorium232', 'ingotThorium232Oxide', 'nuggetThorium232', 'nuggetThorium232Oxide', 'ingotUranium233Base', 'ingotUranium233', 'ingotUranium233Oxide', 'nuggetUranium233', 'nuggetUranium233Oxide', 'ingotUranium235Base', 'ingotUranium235', 'ingotUranium235Oxide', 'nuggetUranium235', 'nuggetUranium235Oxide', 'ingotUranium238Base', 'ingotUranium238', 'ingotUranium238Oxide', 'nuggetUranium238', 'nuggetUranium238Oxide', 'ingotNeptunium236Base', 'ingotNeptunium236', 'ingotNeptunium236Oxide', 'nuggetNeptunium236', 'nuggetNeptunium236Oxide', 'ingotNeptunium237Base', 'ingotNeptunium237', 'ingotNeptunium237Oxide', 'nuggetNeptunium237', 'nuggetNeptunium237Oxide', 'ingotPlutonium238Base', 'ingotPlutonium238', 'ingotPlutonium238Oxide', 'nuggetPlutonium238', 'nuggetPlutonium238Oxide', 'ingotPlutonium239Base', 'ingotPlutonium239', 'ingotPlutonium239Oxide', 'nuggetPlutonium239', 'nuggetPlutonium239Oxide', 'ingotPlutonium241Base', 'ingotPlutonium241', 'ingotPlutonium241Oxide', 'nuggetPlutonium241', 'nuggetPlutonium241Oxide', 'ingotPlutonium242Base', 'ingotPlutonium242', 'ingotPlutonium242Oxide', 'nuggetPlutonium242', 'nuggetPlutonium242Oxide', 'ingotAmericium241Base', 'ingotAmericium241', 'ingotAmericium241Oxide', 'nuggetAmericium241', 'nuggetAmericium241Oxide', 'ingotAmericium242Base', 'ingotAmericium242', 'ingotAmericium242Oxide', 'nuggetAmericium242', 'nuggetAmericium242Oxide', 'ingotAmericium243Base', 'ingotAmericium243', 'ingotAmericium243Oxide', 'nuggetAmericium243', 'nuggetAmericium243Oxide', 'ingotCurium243Base', 'ingotCurium243', 'ingotCurium243Oxide', 'nuggetCurium243', 'nuggetCurium243Oxide', 'ingotCurium245Base', 'ingotCurium245', 'ingotCurium245Oxide', 'nuggetCurium245', 'nuggetCurium245Oxide', 'ingotCurium246Base', 'ingotCurium246', 'ingotCurium246Oxide', 'nuggetCurium246', 'nuggetCurium246Oxide', 'ingotCurium247Base', 'ingotCurium247', 'ingotCurium247Oxide', 'nuggetCurium247', 'nuggetCurium247Oxide', 'ingotBerkelium247Base', 'ingotBerkelium247', 'ingotBerkelium247Oxide', 'nuggetBerkelium247', 'nuggetBerkelium247Oxide', 'ingotBerkelium248Base', 'ingotBerkelium248', 'ingotBerkelium248Oxide', 'nuggetBerkelium248', 'nuggetBerkelium248Oxide', 'ingotCalifornium249Base', 'ingotCalifornium249', 'ingotCalifornium249Oxide', 'nuggetCalifornium249', 'nuggetCalifornium249Oxide', 'ingotCalifornium250Base', 'ingotCalifornium250', 'ingotCalifornium250Oxide', 'nuggetCalifornium250', 'nuggetCalifornium250Oxide', 'ingotCalifornium251Base', 'ingotCalifornium251', 'ingotCalifornium251Oxide', 'nuggetCalifornium251', 'nuggetCalifornium251Oxide', 'ingotCalifornium252Base', 'ingotCalifornium252', 'ingotCalifornium252Oxide', 'nuggetCalifornium252', 'nuggetCalifornium252Oxide', 'fuelTBU', 'fuelTBUOxide', 'fuelLEU233', 'fuelLEU233Oxide', 'fuelHEU233', 'fuelHEU233Oxide', 'fuelLEU235', 'fuelLEU235Oxide', 'fuelHEU235', 'fuelHEU235Oxide', 'fuelLEN236', 'fuelLEN236Oxide', 'fuelHEN236', 'fuelHEN236Oxide', 'fuelLEP239', 'fuelLEP239Oxide', 'fuelHEP239', 'fuelHEP239Oxide', 'fuelLEP241', 'fuelLEP241Oxide', 'fuelHEP241', 'fuelHEP241Oxide', 'fuelMOX239', 'fuelMOX241', 'fuelLEA242', 'fuelLEA242Oxide', 'fuelHEA242', 'fuelHEA242Oxide', 'fuelLECm243', 'fuelLECm243Oxide', 'fuelHECm243', 'fuelHECm243Oxide', 'fuelLECm245', 'fuelLECm245Oxide', 'fuelHECm245', 'fuelHECm245Oxide', 'fuelLECm247', 'fuelLECm247Oxide', 'fuelHECm247', 'fuelHECm247Oxide', 'fuelLEB248', 'fuelLEB248Oxide', 'fuelHEB248', 'fuelHEB248Oxide', 'fuelLECf249', 'fuelLECf249Oxide', 'fuelHECf249', 'fuelHECf249Oxide', 'fuelLECf251', 'fuelLECf251Oxide', 'fuelHECf251', 'fuelHECf251Oxide', 'fuelRodTBU', 'fuelRodTBUOxide', 'fuelRodLEU233', 'fuelRodLEU233Oxide', 'fuelRodHEU233', 'fuelRodHEU233Oxide', 'fuelRodLEU235', 'fuelRodLEU235Oxide', 'fuelRodHEU235', 'fuelRodHEU235Oxide', 'fuelRodLEN236', 'fuelRodLEN236Oxide', 'fuelRodHEN236', 'fuelRodHEN236Oxide', 'fuelRodLEP239', 'fuelRodLEP239Oxide', 'fuelRodHEP239', 'fuelRodHEP239Oxide', 'fuelRodLEP241', 'fuelRodLEP241Oxide', 'fuelRodHEP241', 'fuelRodHEP241Oxide', 'fuelRodMOX239', 'fuelRodMOX241', 'fuelRodLEA242', 'fuelRodLEA242Oxide', 'fuelRodHEA242', 'fuelRodHEA242Oxide', 'fuelRodLECm243', 'fuelRodLECm243Oxide', 'fuelRodHECm243', 'fuelRodHECm243Oxide', 'fuelRodLECm245', 'fuelRodLECm245Oxide', 'fuelRodHECm245', 'fuelRodHECm245Oxide', 'fuelRodLECm247', 'fuelRodLECm247Oxide', 'fuelRodHECm247', 'fuelRodHECm247Oxide', 'fuelRodLEB248', 'fuelRodLEB248Oxide', 'fuelRodHEB248', 'fuelRodHEB248Oxide', 'fuelRodLECf249', 'fuelRodLECf249Oxide', 'fuelRodHECf249', 'fuelRodHECf249Oxide', 'fuelRodLECf251', 'fuelRodLECf251Oxide', 'fuelRodHECf251', 'fuelRodHECf251Oxide', 'depletedFuelRodTBU', 'depletedFuelRodTBUOxide', 'depletedFuelRodLEU233', 'depletedFuelRodLEU233Oxide', 'depletedFuelRodHEU233', 'depletedFuelRodHEU233Oxide', 'depletedFuelRodLEU235', 'depletedFuelRodLEU235Oxide', 'depletedFuelRodHEU235', 'depletedFuelRodHEU235Oxide', 'depletedFuelRodLEN236', 'depletedFuelRodLEN236Oxide', 'depletedFuelRodHEN236', 'depletedFuelRodHEN236Oxide', 'depletedFuelRodLEP239', 'depletedFuelRodLEP239Oxide', 'depletedFuelRodHEP239', 'depletedFuelRodHEP239Oxide', 'depletedFuelRodLEP241', 'depletedFuelRodLEP241Oxide', 'depletedFuelRodHEP241', 'depletedFuelRodHEP241Oxide', 'depletedFuelRodMOX239', 'depletedFuelRodMOX241', 'depletedFuelRodLEA242', 'depletedFuelRodLEA242Oxide', 'depletedFuelRodHEA242', 'depletedFuelRodHEA242Oxide', 'depletedFuelRodLECm243', 'depletedFuelRodLECm243Oxide', 'depletedFuelRodHECm243', 'depletedFuelRodHECm243Oxide', 'depletedFuelRodLECm245', 'depletedFuelRodLECm245Oxide', 'depletedFuelRodHECm245', 'depletedFuelRodHECm245Oxide', 'depletedFuelRodLECm247', 'depletedFuelRodLECm247Oxide', 'depletedFuelRodHECm247', 'depletedFuelRodHECm247Oxide', 'depletedFuelRodLEB248', 'depletedFuelRodLEB248Oxide', 'depletedFuelRodHEB248', 'depletedFuelRodHEB248Oxide', 'depletedFuelRodLECf249', 'depletedFuelRodLECf249Oxide', 'depletedFuelRodHECf249', 'depletedFuelRodHECf249Oxide', 'depletedFuelRodLECf251', 'depletedFuelRodLECf251Oxide', 'depletedFuelRodHECf251', 'depletedFuelRodHECf251Oxide', 'ingotBoron10', 'nuggetBoron10', 'ingotBoron11', 'nuggetBoron11', 'ingotLithium6', 'nuggetLithium6', 'ingotLithium7', 'nuggetLithium7', 'gemCoal', 'gemCharcoal', 'nuggetAlumite', 'ingotAlumite', 'blockAlumite', 'ingotOsmium', 'ingotRefinedObsidian', 'ingotRefinedGlowstone', 'nuggetOsgloglas', 'ingotOsgloglas', 'blockOsgloglas', 'nuggetOsmiridium', 'ingotOsmiridium', 'blockOsmiridium', 'ingotTitanium', 'gemQuartzBlack', 'crystalCertusQuartz', 'crystalFluix', 'blockElectrumFlux', 'blockCrystalFlux', 'dustElectrumFlux', 'ingotElectrumFlux', 'nuggetElectrumFlux', 'gearElectrumFlux', 'plateElectrumFlux', 'gemCrystalFlux', 'cropIronberry', 'listAllberry', 'cropWildberry', 'cropGrape', 'cropChilipepper', 'listAllpepper', 'cropTomato', 'treeWood', 'wax', 'particleCustomizer', 'oreGalena', 'oreBauxite', 'orePyrite', 'oreCinnabar', 'oreSphalerite', 'oreTungsten', 'oreSheldonite', 'oreSodalite', 'blockAluminium', 'blockTitanium', 'blockChrome', 'blockBrass', 'blockZinc', 'blockTungsten', 'blockTungstensteel', 'blockRuby', 'blockSapphire', 'blockPeridot', 'blockYellowGarnet', 'blockRedGarnet', 'crafterWood', 'machineBasic', 'saplingRubber', 'logRubber', 'plankRubber', 'leavesRubber', 'fenceIron', 'machineBlockBasic', 'machineBlockAdvanced', 'machineBlockHighlyAdvanced', 'reBattery', 'lapotronCrystal', 'energyCrystal', 'drillBasic', 'drillDiamond', 'drillAdvanced', 'industrialTnt', 'craftingIndustrialDiamond', 'fertilizer', 'hvTransformer', 'uran235', 'uran238', 'smallUran238', 'smallUran235', 'rubberWood', 'glassReinforced', 'plateIridiumAlloy', 'circuitStorage', 'circuitElite', 'circuitMaster', 'machineBlockElite', 'insulatedGoldCableItem', 'ic2Generator', 'ic2SolarPanel', 'ic2Macerator', 'ic2Extractor', 'ic2Windmill', 'ic2Watermill', 'craftingDiamondGrinder', 'craftingTungstenGrinder', 'craftingSuperconductor', 'materialResin', 'materialRubber', 'plateruby', 'platesapphire', 'plateperidot', 'gemRedGarnet', 'plateredGarnet', 'gemYellowGarnet', 'plateyellowGarnet', 'platealuminum', 'ingotBrass', 'platebrass', 'platebronze', 'ingotChrome', 'platechrome', 'platecopper', 'plateelectrum', 'plateinvar', 'plateiridium', 'platelead', 'platenickel', 'plateplatinum', 'platesilver', 'platesteel', 'platetin', 'platetitanium', 'ingotTungsten', 'platetungsten', 'ingotHotTungstensteel', 'ingotTungstensteel', 'platetungstensteel', 'ingotZinc', 'platezinc', 'ingotRefinedIron', 'platerefinedIron', 'ingotAdvancedAlloy', 'plateadvancedAlloy', 'ingotMixedMetal', 'ingotIridiumAlloy', 'plateCarbon', 'plateWood', 'plateRedstone', 'plateDiamond', 'plateEmerald', 'plateCoal', 'plateLazurite', 'plateRuby', 'plateSapphire', 'platePeridot', 'plateRedGarnet', 'plateYellowGarnet', 'plateBrass', 'plateChrome', 'plateTitanium', 'plateTungsten', 'plateTungstensteel', 'plateZinc', 'plateRefinedIron', 'plateAdvancedAlloy', 'platemagnalium', 'plateMagnalium', 'plateiridiumAlloy', 'dustAlmandine', 'dustAndradite', 'dustBasalt', 'dustBauxite', 'dustBrass', 'dustCalcite', 'dustChrome', 'dustCinnabar', 'dustDarkAshes', 'dustEmerald', 'dustEnderEye', 'dustEnderPearl', 'dustEndstone', 'dustFlint', 'dustGalena', 'dustGrossular', 'dustLazurite', 'dustManganese', 'dustMarble', 'dustNetherrack', 'dustPeridot', 'dustPhosphorous', 'dustPyrite', 'dustPyrope', 'dustRedGarnet', 'dustRuby', 'dustSapphire', 'dustSawDust', 'dustSodalite', 'dustSpessartine', 'dustSphalerite', 'dustTitanium', 'dustTungsten', 'dustUvarovite', 'dustYellowGarnet', 'dustZinc', 'dustAndesite', 'dustDiorite', 'dustGranite', 'dustSmallAlmandine', 'dustSmallAluminum', 'dustSmallAndradite', 'dustSmallAshes', 'dustSmallBasalt', 'dustSmallBauxite', 'dustSmallBrass', 'dustSmallBronze', 'dustSmallCalcite', 'dustSmallCharcoal', 'dustSmallChrome', 'dustSmallCinnabar', 'dustSmallClay', 'dustSmallCoal', 'dustSmallCopper', 'dustSmallDarkAshes', 'dustSmallDiamond', 'dustSmallElectrum', 'dustSmallEmerald', 'dustSmallEnderEye', 'dustSmallEnderPearl', 'dustSmallEndstone', 'dustSmallFlint', 'dustSmallGalena', 'dustSmallGold', 'dustSmallGrossular', 'dustSmallInvar', 'dustSmallIron', 'dustSmallLazurite', 'dustSmallLead', 'dustSmallMagnesium', 'dustSmallManganese', 'dustSmallMarble', 'dustSmallNetherrack', 'dustSmallNickel', 'dustSmallObsidian', 'dustSmallPeridot', 'dustSmallPhosphorous', 'dustSmallPlatinum', 'dustSmallPyrite', 'dustSmallPyrope', 'dustSmallRedGarnet', 'dustSmallRuby', 'dustSmallSaltpeter', 'dustSmallSapphire', 'dustSmallSawDust', 'dustSmallSilver', 'dustSmallSodalite', 'dustSmallSpessartine', 'dustSmallSphalerite', 'dustSmallSteel', 'dustSmallSulfur', 'dustSmallTin', 'dustSmallTitanium', 'dustSmallTungsten', 'dustSmallUvarovite', 'dustSmallYellowGarnet', 'dustSmallZinc', 'dustSmallRedstone', 'dustSmallGlowstone', 'dustSmallAndesite', 'dustSmallDiorite', 'dustSmallGranite', 'nuggetBrass', 'nuggetChrome', 'nuggetTitanium', 'nuggetTungsten', 'nuggetHotTungstensteel', 'nuggetTungstensteel', 'nuggetZinc', 'nuggetRefinedIron', 'dustApatite', 'dustAmethyst', 'dustTopaz', 'dustTanzanite', 'dustMalachite', 'dustAmber', 'dustDilithium', 'crystalDilithium', 'oreDilithium', 'stickIron', 'sheetIron', 'coilGold', 'blockCoil', 'dustSilicon', 'ingotSilicon', 'bouleSilicon', 'nuggetSilicon', 'plateSilicon', 'stickCopper', 'sheetCopper', 'coilCopper', 'stickSteel', 'fanSteel', 'sheetSteel', 'stickTitanium', 'sheetTitanium', 'gearTitanium', 'coilTitanium', 'oreRutile', 'oreTitanium', 'sheetAluminum', 'coilAluminum', 'stickIridium', 'coilIridium', 'dustTitaniumAluminide', 'ingotTitaniumAluminide', 'nuggetTitaniumAluminide', 'plateTitaniumAluminide', 'stickTitaniumAluminide', 'sheetTitaniumAluminide', 'gearTitaniumAluminide', 'blockTitaniumAluminide', 'dustTitaniumIridium', 'ingotTitaniumIridium', 'nuggetTitaniumIridium', 'plateTitaniumIridium', 'stickTitaniumIridium', 'sheetTitaniumIridium', 'gearTitaniumIridium', 'blockTitaniumIridium', 'stoneBasalt', 'stoneBasaltPolished', 'bookshelfOak', 'bookshelfSpruce', 'bookshelfBirch', 'bookshelfJungle', 'bookshelfAcacia', 'bookshelfDarkOak', 'blockCobalt', 'blockCoalCoke', 'blockMossy', 'blockConcrete', 'blockConcreteBlack', 'blockConcreteRed', 'blockConcreteGreen', 'blockConcreteBrown', 'blockConcreteBlue', 'blockConcretePurple', 'blockConcreteCyan', 'blockConcreteLightGray', 'blockConcreteGray', 'blockConcretePink', 'blockConcreteLime', 'blockConcreteYellow', 'blockConcreteLightBlue', 'blockConcreteMagenta', 'blockConcreteOrange', 'blockConcreteWhite', 'hardenedClay', 'ice', 'blockIce', 'stoneLimestone', 'stoneLimestonePolished', 'stoneMarble', 'stoneMarblePolished', 'prismarine', 'prismarineBrick', 'prismarineDark', 'brickStone', 'fish', 'boneWithered', 'listAllmeatcooked', 'lexicaBotania', 'petalWhite', 'runeWaterB', 'petalOrange', 'runeFireB', 'petalMagenta', 'runeEarthB', 'petalLightBlue', 'runeAirB', 'petalYellow', 'runeSpringB', 'petalLime', 'runeSummerB', 'petalPink', 'runeAutumnB', 'petalGray', 'runeWinterB', 'petalLightGray', 'runeManaB', 'petalCyan', 'runeLustB', 'petalPurple', 'runeGluttonyB', 'petalBlue', 'runeGreedB', 'petalBrown', 'runeSlothB', 'petalGreen', 'runeWrathB', 'petalRed', 'runeEnvyB', 'petalBlack', 'runePrideB', 'quartzDark', 'quartzMana', 'quartzBlaze', 'quartzLavender', 'quartzRed', 'quartzElven', 'quartzSunny', 'pestleAndMortar', 'ingotManasteel', 'manaPearl', 'manaDiamond', 'livingwoodTwig', 'ingotTerrasteel', 'eternalLifeEssence', 'redstoneRoot', 'ingotElvenElementium', 'elvenPixieDust', 'elvenDragonstone', 'bPlaceholder', 'bRedString', 'dreamwoodTwig', 'gaiaIngot', 'bEnderAirBottle', 'manaString', 'nuggetManasteel', 'nuggetTerrasteel', 'nuggetElvenElementium', 'livingRoot', 'pebble', 'clothManaweave', 'powderMana', 'bVial', 'bFlask', 'rodBlaze', 'powderBlaze', 'mysticFlowerWhite', 'mysticFlowerOrange', 'mysticFlowerMagenta', 'mysticFlowerLightBlue', 'mysticFlowerYellow', 'mysticFlowerLime', 'mysticFlowerPink', 'mysticFlowerGray', 'mysticFlowerLightGray', 'mysticFlowerCyan', 'mysticFlowerPurple', 'mysticFlowerBlue', 'mysticFlowerBrown', 'mysticFlowerGreen', 'mysticFlowerRed', 'mysticFlowerBlack', 'livingrock', 'livingwood', 'dreamwood', 'mysticFlowerWhiteDouble', 'mysticFlowerLightGrayDouble', 'mysticFlowerOrangeDouble', 'mysticFlowerCyanDouble', 'mysticFlowerMagentaDouble', 'mysticFlowerPurpleDouble', 'mysticFlowerLightBlueDouble', 'mysticFlowerBlueDouble', 'mysticFlowerYellowDouble', 'mysticFlowerBrownDouble', 'mysticFlowerLimeDouble', 'mysticFlowerGreenDouble', 'mysticFlowerPinkDouble', 'mysticFlowerRedDouble', 'mysticFlowerGrayDouble', 'mysticFlowerBlackDouble', 'blockBlaze', 'snowLayer', 'mycelium', 'podzol', 'soulSand', 'slabCobblestone', 'drawerBasic', 'drawerTrim', 'slabCopper', 'slabAluminum', 'slabLead', 'slabSilver', 'slabNickel', 'slabUranium', 'slabConstantan', 'slabElectrum', 'slabSteel', 'blockSheetmetalCopper', 'blockSheetmetalAluminum', 'blockSheetmetalLead', 'blockSheetmetalSilver', 'blockSheetmetalNickel', 'blockSheetmetalUranium', 'blockSheetmetalConstantan', 'blockSheetmetalElectrum', 'blockSheetmetalSteel', 'blockSheetmetalIron', 'blockSheetmetalGold', 'slabSheetmetalCopper', 'slabSheetmetalAluminum', 'slabSheetmetalLead', 'slabSheetmetalSilver', 'slabSheetmetalNickel', 'slabSheetmetalUranium', 'slabSheetmetalConstantan', 'slabSheetmetalElectrum', 'slabSheetmetalSteel', 'slabSheetmetalIron', 'slabSheetmetalGold', 'nuggetUranium', 'plateUranium', 'stickTreatedWood', 'stickAluminum', 'fiberHemp', 'fabricHemp', 'dustCoke', 'dustHOPGraphite', 'ingotHOPGraphite', 'wireCopper', 'wireElectrum', 'wireAluminum', 'wireSteel', 'electronTube', 'plankTreatedWood', 'slabTreatedWood', 'fenceTreatedWood', 'scaffoldingTreatedWood', 'concrete', 'fenceSteel', 'fenceAluminum', 'scaffoldingSteel', 'scaffoldingAluminum', 'blockPackedIce', 'blockSnow', 'oreYellorite', 'oreYellorium', 'blockYellorium', 'blockCyanite', 'blockBlutonium', 'blockLudicrite', 'dustYellorium', 'dustCyanite', 'dustBlutonium', 'dustLudicrite', 'dustPlutonium', 'ingotYellorium', 'ingotCyanite', 'ingotBlutonium', 'ingotLudicrite', 'ingotPlutonium', 'nuggetMirion', 'ingotMirion', 'blockMirion', 'gearDiamond', 'gearStone', 'gearWood', 'ingotAbyssalnite', 'ingotLiquifiedCoralium', 'gemCoralium', 'oreAbyssalnite', 'oreCoralium', 'oreDreadedAbyssalnite', 'oreCoraliumStone', 'gemShadow', 'liquidCoralium', 'materialCoraliumPearl', 'liquidAntimatter', 'blockAbyssalnite', 'blockLiquifiedCoralium', 'blockDreadium', 'ingotCoraliumBrick', 'ingotDreadium', 'materialMethane', 'oreSaltpeter', 'crystalIron', 'crystalGold', 'crystalSulfur', 'crystalCarbon', 'crystalOxygen', 'crystalHydrogen', 'crystalNitrogen', 'crystalPhosphorus', 'crystalPotassium', 'crystalNitrate', 'crystalMethane', 'crystalAbyssalnite', 'crystalCoralium', 'crystalDreadium', 'crystalBlaze', 'crystalTin', 'crystalCopper', 'crystalSilicon', 'crystalMagnesium', 'crystalAluminium', 'crystalSilica', 'crystalAlumina', 'crystalMagnesia', 'crystalZinc', 'foodFriedEgg', 'orePearlescentCoralium', 'oreLiquifiedCoralium', 'ingotEthaxiumBrick', 'ingotEthaxium', 'blockEthaxium', 'nuggetAbyssalnite', 'nuggetLiquifiedCoralium', 'nuggetDreadium', 'nuggetEthaxium', 'crystalShardIron', 'crystalShardGold', 'crystalShardSulfur', 'crystalShardCarbon', 'crystalShardOxygen', 'crystalShardHydrogen', 'crystalShardNitrogen', 'crystalShardPhosphorus', 'crystalShardPotassium', 'crystalShardNitrate', 'crystalShardMethane', 'crystalShardRedstone', 'crystalShardAbyssalnite', 'crystalShardCoralium', 'crystalShardDreadium', 'crystalShardBlaze', 'crystalShardTin', 'crystalShardCopper', 'crystalShardSilicon', 'crystalShardMagnesium', 'crystalShardAluminium', 'crystalShardSilica', 'crystalShardAlumina', 'crystalShardMagnesia', 'crystalShardZinc', 'crystalFragmentIron', 'crystalFragmentGold', 'crystalFragmentSulfur', 'crystalFragmentCarbon', 'crystalFragmentOxygen', 'crystalFragmentHydrogen', 'crystalFragmentNitrogen', 'crystalFragmentPhosphorus', 'crystalFragmentPotassium', 'crystalFragmentNitrate', 'crystalFragmentMethane', 'crystalFragmentRedstone', 'crystalFragmentAbyssalnite', 'crystalFragmentCoralium', 'crystalFragmentDreadium', 'crystalFragmentBlaze', 'crystalFragmentTin', 'crystalFragmentCopper', 'crystalFragmentSilicon', 'crystalFragmentMagnesium', 'crystalFragmentAluminium', 'crystalFragmentSilica', 'crystalFragmentAlumina', 'crystalFragmentMagnesia', 'crystalFragmentZinc', 'dustAbyssalnite', 'dustLiquifiedCoralium', 'dustDreadium', 'dustQuartzBlack', 'oreQuartzBlack', 'seedCanola', 'cropCanola', 'seedRice', 'cropRice', 'seedFlax', 'cropFlax', 'seedCoffee', 'slimeballPink', 'blockInferiumEssence', 'blockPrudentiumEssence', 'blockIntermediumEssence', 'blockSuperiumEssence', 'blockSupremiumEssence', 'blockProsperity', 'blockBaseEssence', 'blockInferium', 'blockPrudentium', 'blockIntermedium', 'blockSuperium', 'blockSupremium', 'blockSoulium', 'blockInferiumCoal', 'blockPrudentiumCoal', 'blockIntermediumCoal', 'blockSuperiumCoal', 'blockSupremiumCoal', 'seedsTier3', 'essenceTier5', 'essenceTier2', 'seedsTier2', 'seedsTier5', 'essenceTier1', 'essenceTier3', 'coalInferium', 'essenceTier4', 'seedsTier4', 'ingotBaseEssence', 'essenceSupremium', 'ingotIntermedium', 'essencePrudentium', 'ingotPrudentium', 'seedsTier1', 'nuggetPrudentium', 'coalSupremium', 'nuggetIntermedium', 'ingotSupremium', 'coalIntermedium', 'essenceSuperium', 'shardProsperity', 'ingotSoulium', 'nuggetSuperium', 'coalPrudentium', 'ingotSuperium', 'ingotInferium', 'nuggetSupremium', 'nuggetInferium', 'nuggetBaseEssence', 'nuggetSoulium', 'essenceIntermedium', 'coalSuperium', 'essenceInferium', 'blockInsaniumEssence', 'blockInsanium', 'blockInsaniumCoal', 'essenceInsanium', 'ingotInsanium', 'nuggetInsanium', 'essenceTier6', 'seedsTier6', 'toolPot', 'toolSkillet', 'toolSaucepan', 'toolBakeware', 'toolCuttingboard', 'toolMortarandpestle', 'toolMixingbowl', 'toolJuicer', 'coinGarlic', 'cropCotton', 'seedCotton', 'materialCloth', 'cropCandle', 'cropCandleberry', 'seedCandleberry', 'materialPressedwax', 'dustSalt', 'itemSalt', 'foodHoneydrop', 'flowerRed', 'flowerYellow', 'blockTorch', 'listAllmeatraw', 'listAllchickenraw', 'listAllegg', 'listAllchickencooked', 'listAllporkraw', 'listAllporkcooked', 'listAllbeefraw', 'listAllbeefcooked', 'listAllmuttonraw', 'listAllmuttoncooked', 'listAllturkeyraw', 'listAllturkeycooked', 'listAllrabbitraw', 'listAllrabbitcooked', 'listAllvenisonraw', 'listAllvenisoncooked', 'listAllduckraw', 'listAllduckcooked', 'listAllfishraw', 'listAllfishcooked', 'listAllheavycream', 'listAllicecream', 'listAllmilk', 'listAllwater', 'foodGroundbeef', 'foodGroundchicken', 'foodGroundduck', 'foodGroundfish', 'foodGroundmutton', 'foodGroundpork', 'foodGroundrabbit', 'foodGroundturkey', 'foodGroundvenison', 'flourEqualswheat', 'bread', 'foodBread', 'cropPumpkin', 'cropBeet', 'listAllgrain', 'listAllmushroom', 'salmonRaw', 'listAllsugar', 'listAllgreenveggie', 'cropAsparagus', 'seedAsparagus', 'foodGrilledasparagus', 'cropBarley', 'cropBean', 'seedBean', 'seedBeet', 'cropBroccoli', 'seedBroccoli', 'cropCauliflower', 'seedCauliflower', 'cropCelery', 'seedCelery', 'cropCranberry', 'seedCranberry', 'cropGarlic', 'listAllherb', 'seedGarlic', 'cropGinger', 'listAllspice', 'seedGinger', 'cropLeek', 'seedLeek', 'cropLettuce', 'seedLettuce', 'cropOats', 'seedOats', 'cropOnion', 'seedOnion', 'cropParsnip', 'seedParsnip', 'listAllnut', 'cropPeanut', 'seedPeanut', 'cropPineapple', 'seedPineapple', 'cropRadish', 'seedRadish', 'foodRicecake', 'cropRutabaga', 'seedRutabaga', 'cropRye', 'cropScallion', 'seedScallion', 'cropSoybean', 'seedSoybean', 'cropSpiceleaf', 'seedSpiceleaf', 'cropSunflower', 'cropSweetpotato', 'seedSweetpotato', 'cropTea', 'seedTea', 'foodTea', 'cropWhitemushroom', 'seedWhitemushroom', 'cropArtichoke', 'seedArtichoke', 'cropBellpepper', 'seedBellpepper', 'cropBlackberry', 'seedBlackberry', 'cropBlueberry', 'seedBlueberry', 'cropBrusselsprout', 'seedBrusselsprout', 'cropCabbage', 'seedCabbage', 'cropCactusfruit', 'seedCactusfruit', 'cropCantaloupe', 'seedCantaloupe', 'seedChilipepper', 'foodCoffee', 'cropCorn', 'cropCucumber', 'seedCucumber', 'cropEggplant', 'seedEggplant', 'foodGrilledeggplant', 'seedGrape', 'foodRaisins', 'cropKiwi', 'seedKiwi', 'cropMustard', 'seedMustard', 'cropOkra', 'seedOkra', 'cropPeas', 'seedPeas', 'cropRaspberry', 'seedRaspberry', 'cropRhubarb', 'seedRhubarb', 'cropSeaweed', 'seedSeaweed', 'cropStrawberry', 'seedStrawberry', 'seedTomato', 'cropWintersquash', 'seedWintersquash', 'cropZucchini', 'seedZucchini', 'cropBambooshoot', 'seedBambooshoot', 'cropSpinach', 'seedSpinach', 'cropCurryleaf', 'seedCurryleaf', 'cropSesame', 'seedSesameseed', 'cropWaterchestnut', 'seedGigapickle', 'foodGigapickle', 'foodPickles', 'seedWaterchestnut', 'cropAvocado', 'cropCinnamon', 'cropCoconut', 'foodToastedcoconut', 'cropDragonfruit', 'listAllcitrus', 'cropMango', 'cropNutmeg', 'cropPeppercorn', 'cropPomegranate', 'cropStarfruit', 'cropVanillabean', 'foodVanilla', 'cropGooseberry', 'cropCashew', 'cropDurian', 'cropMaplesyrup', 'cropPistachio', 'foodSalt', 'foodFlour', 'foodDough', 'foodToast', 'foodPasta', 'foodHeavycream', 'foodButter', 'foodCheese', 'foodIcecream', 'foodGrilledcheese', 'foodApplesauce', 'foodApplejuice', 'foodApplepie', 'foodCaramelapple', 'foodPumpkinbread', 'foodRoastedpumpkinseeds', 'foodPumpkinsoup', 'foodMelonjuice', 'foodMelonsmoothie', 'listAllsmoothie', 'foodCarrotjuice', 'foodCarrotcake', 'foodCarrotsoup', 'foodGlazedcarrots', 'foodButteredpotato', 'foodLoadedbakedpotato', 'foodMashedpotatoes', 'foodPotatosalad', 'foodPotatosoup', 'foodFries', 'foodGrilledmushroom', 'foodStuffedmushroom', 'foodChickensandwich', 'foodChickennoodlesoup', 'foodChickenpotpie', 'foodBreadedporkchop', 'foodHotdog', 'foodBakedham', 'foodHamburger', 'foodCheeseburger', 'foodBaconcheeseburger', 'foodPotroast', 'foodFishsandwich', 'foodFishsticks', 'foodFishandchips', 'foodMayo', 'foodFriedegg', 'foodScrambledegg', 'foodBoiledegg', 'foodEggsalad', 'foodCaramel', 'foodTaffy', 'foodSpidereyesoup', 'foodZombiejerky', 'foodCocoapowder', 'foodChocolatebar', 'foodHotchocolate', 'foodChocolateicecream', 'foodVegetablesoup', 'foodStock', 'foodSpagetti', 'foodSpagettiandmeatballs', 'foodTomatosoup', 'foodKetchup', 'foodChickenparmasan', 'foodPizza', 'foodSpringsalad', 'foodPorklettucewrap', 'foodFishlettucewrap', 'foodBlt', 'foodLeafychickensandwich', 'foodLeafyfishsandwich', 'foodDeluxecheeseburger', 'foodDelightedmeal', 'foodOnionsoup', 'foodPotatocakes', 'foodHash', 'foodBraisedonions', 'foodHeartyBreakfast', 'foodCornonthecob', 'foodCornmeal', 'foodCornbread', 'foodTortilla', 'foodNachoes', 'foodTaco', 'foodFishtaco', 'foodCreamedcorn', 'foodStrawberrysmoothie', 'foodStrawberrypie', 'foodStrawberrysalad', 'foodStrawberryjuice', 'foodChocolatestrawberry', 'foodPeanutbutter', 'listAllnutbutter', 'foodTrailmix', 'foodPbandj', 'foodPeanutbuttercookies', 'listAllcookie', 'foodGrapejuice', 'foodVinegar', 'foodGrapejelly', 'foodGrapesalad', 'foodRaisincookies', 'foodCucumbersalad', 'foodCucumbersoup', 'foodVegetarianlettucewrap', 'foodMarinatedcucumbers', 'foodRicesoup', 'foodFriedrice', 'foodMushroomrisotto', 'foodCurry', 'foodRainbowcurry', 'foodRefriedbeans', 'foodBakedbeans', 'foodBeansandrice', 'foodChili', 'foodBeanburrito', 'foodStuffedpepper', 'foodVeggiestirfry', 'foodGrilledskewers', 'foodSupremepizza', 'foodOmelet', 'foodHotwings', 'foodChilipoppers', 'foodExtremechili', 'foodChilichocolate', 'foodLemonaide', 'foodLemonbar', 'foodFishdinner', 'foodLemonsmoothie', 'foodLemonmeringue', 'foodCandiedlemon', 'foodLemonchicken', 'foodBlueberrysmoothie', 'foodBlueberrypie', 'foodBlueberrymuffin', 'foodBlueberryjuice', 'foodPancakes', 'foodBlueberrypancakes', 'foodCherryjuice', 'foodCherrypie', 'foodChocolatecherry', 'foodCherrysmoothie', 'foodCheesecake', 'foodCherrycheesecake', 'foodStuffedeggplant', 'foodEggplantparm', 'foodRaspberryicedtea', 'foodChaitea', 'foodEspresso', 'foodCoffeeconleche', 'foodMochaicecream', 'foodPickledbeets', 'foodBeetsalad', 'foodBeetsoup', 'foodBakedbeets', 'foodBroccolimac', 'foodBroccolindip', 'foodCreamedbroccolisoup', 'foodSweetpotatopie', 'foodCandiedsweetpotatoes', 'foodMashedsweetpotatoes', 'foodSteamedpeas', 'foodSplitpeasoup', 'foodPineappleupsidedowncake', 'foodPineappleham', 'foodPineappleyogurt', 'foodTurnipsoup', 'foodRoastedrootveggiemedley', 'foodBakedturnips', 'foodGingerbread', 'foodGingersnaps', 'foodCandiedginger', 'foodMustard', 'foodSoftpretzelandmustard', 'foodSpicymustardpork', 'foodSpicygreens', 'foodGarlicbread', 'foodGarlicmashedpotatoes', 'foodGarlicchicken', 'foodSummerradishsalad', 'foodSummersquashwithradish', 'foodCeleryandpeanutbutter', 'foodChickencelerycasserole', 'foodPeasandcelery', 'foodCelerysoup', 'foodZucchinibread', 'foodZucchinifries', 'foodZestyzucchini', 'foodZucchinibake', 'foodAsparagusquiche', 'foodAsparagussoup', 'foodWalnutraisinbread', 'foodCandiedwalnuts', 'foodBrownie', 'foodPapayajuice', 'foodPapayasmoothie', 'foodPapayayogurt', 'foodStarfruitjuice', 'foodStarfruitsmoothie', 'foodStarfruityogurt', 'foodGuacamole', 'foodCreamofavocadosoup', 'foodAvocadoburrito', 'foodPoachedpear', 'foodFruitcrumble', 'foodPearyogurt', 'foodPlumyogurt', 'foodBananasplit', 'foodBanananutbread', 'foodBananasmoothie', 'foodBananayogurt', 'foodCoconutmilk', 'foodChickencurry', 'foodCoconutshrimp', 'foodCoconutyogurt', 'foodOrangejuice', 'foodOrangechicken', 'foodOrangesmoothie', 'foodOrangeyogurt', 'foodPeachjuice', 'foodPeachcobbler', 'foodPeachsmoothie', 'foodPeachyogurt', 'foodLimejuice', 'foodKeylimepie', 'foodLimesmoothie', 'foodLimeyogurt', 'foodMangojuice', 'foodMangosmoothie', 'foodMangoyogurt', 'foodPomegranatejuice', 'foodPomegranatesmoothie', 'foodPomegranateyogurt', 'foodVanillayogurt', 'foodCinnamonroll', 'foodFrenchtoast', 'foodMarshmellows', 'foodDonut', 'foodChocolatedonut', 'foodPowdereddonut', 'foodJellydonut', 'foodFrosteddonut', 'foodCactussoup', 'foodWaffles', 'foodSeedsoup', 'foodSoftpretzel', 'foodJellybeans', 'foodBiscuit', 'foodCreamcookie', 'foodJaffa', 'foodFriedchicken', 'foodChocolatesprinklecake', 'foodRedvelvetcake', 'foodFootlong', 'foodBlueberryyogurt', 'foodLemonyogurt', 'foodCherryyogurt', 'foodStrawberryyogurt', 'foodGrapeyogurt', 'foodChocolateyogurt', 'foodBlackberryjuice', 'foodBlackberrycobbler', 'foodBlackberrysmoothie', 'foodBlackberryyogurt', 'foodChocolatemilk', 'foodPumpkinyogurt', 'foodRaspberryjuice', 'foodRaspberrypie', 'foodRaspberrysmoothie', 'foodRaspberryyogurt', 'foodCinnamonsugardonut', 'foodMelonyogurt', 'foodKiwijuice', 'foodKiwismoothie', 'foodKiwiyogurt', 'foodPlainyogurt', 'foodAppleyogurt', 'foodSaltedsunflowerseeds', 'foodSunflowerwheatrolls', 'foodSunflowerbroccolisalad', 'foodCranberryjuice', 'foodCranberrysauce', 'foodCranberrybar', 'foodPeppermint', 'foodCactusfruitjuice', 'foodBlackpepper', 'foodGroundcinnamon', 'foodGroundnutmeg', 'foodOliveoil', 'foodBaklava', 'foodGummybears', 'foodBaconmushroomburger', 'foodFruitpunch', 'foodMeatystew', 'foodMixedsalad', 'foodPinacolada', 'foodSaladdressing', 'foodShepherdspie', 'foodEggnog', 'foodCustard', 'foodSushi', 'foodGardensoup', 'foodMuttonraw', 'foodMuttoncooked', 'foodCalamariraw', 'foodCalamaricooked', 'foodApplejelly', 'foodApplejellysandwich', 'foodBlackberryjelly', 'foodBlackberryjellysandwich', 'foodBlueberryjelly', 'foodBlueberryjellysandwich', 'foodCherryjelly', 'foodCherryjellysandwich', 'foodCranberryjelly', 'foodCranberryjellysandwich', 'foodKiwijelly', 'foodKiwijellysandwich', 'foodLemonjelly', 'foodLemonjellysandwich', 'foodLimejelly', 'foodLimejellysandwich', 'foodMangojelly', 'foodMangojellysandwich', 'foodOrangejelly', 'foodOrangejellysandwich', 'foodPapayajelly', 'foodPapayajellysandwich', 'foodPeachjelly', 'foodPeachjellysandwich', 'foodPomegranatejelly', 'foodPomegranatejellysandwich', 'foodRaspberryjelly', 'foodRaspberryjellysandwich', 'foodStarfruitjelly', 'foodStarfruitjellysandwich', 'foodStrawberryjelly', 'foodStrawberryjellysandwich', 'foodWatermelonjelly', 'foodWatermelonjellysandwich', 'foodBubblywater', 'foodCherrysoda', 'foodColasoda', 'foodGingersoda', 'foodGrapesoda', 'foodLemonlimesoda', 'foodOrangesoda', 'foodRootbeersoda', 'foodStrawberrysoda', 'listAllsoda', 'foodCaramelicecream', 'foodMintchocolatechipicecream', 'foodStrawberryicecream', 'foodVanillaicecream', 'cropEdibleroot', 'foodGingerchicken', 'foodOldworldveggiesoup', 'foodSpicebun', 'foodGingeredrhubarbtart', 'foodLambbarleysoup', 'foodHoneylemonlamb', 'foodPumpkinoatscones', 'foodBeefjerky', 'foodPlumjuice', 'foodPearjuice', 'foodOvenroastedcauliflower', 'foodLeekbaconsoup', 'foodHerbbutterparsnips', 'foodScallionbakedpotato', 'foodSoymilk', 'foodFirmtofu', 'foodSilkentofu', 'foodBamboosteamedrice', 'foodRoastedchestnut', 'foodSweetpotatosouffle', 'foodCashewchicken', 'foodApricotjuice', 'foodApricotyogurt', 'foodApricotglazedpork', 'foodApricotjelly', 'foodApricotjellysandwich', 'foodApricotsmoothie', 'foodFigbar', 'foodFigjelly', 'foodFigjellysandwich', 'foodFigsmoothie', 'foodFigyogurt', 'foodFigjuice', 'foodGrapefruitjuice', 'foodGrapefruitjelly', 'foodGrapefruitjellysandwich', 'foodGrapefruitjellysmoothie', 'foodGrapefruityogurt', 'foodGrapefruitsoda', 'foodCitrussalad', 'foodPecanpie', 'foodPralines', 'foodPersimmonjuice', 'foodPersimmonyogurt', 'foodPersimmonsmoothie', 'foodPersimmonjelly', 'foodPersimmonjellysanwich', 'foodPistachiobakedsalmon', 'foodBaconwrappeddates', 'foodDatenutbread', 'foodMaplesyruppancakes', 'foodMaplesyrupwaffles', 'foodMaplesausage', 'foodMapleoatmeal', 'foodPeachesandcreamoatmeal', 'foodCinnamonappleoatmeal', 'foodMaplecandiedbacon', 'foodToastsandwich', 'foodPotatoandcheesepirogi', 'foodZeppole', 'foodSausageinbread', 'foodChocolatecaramelfudge', 'foodLavendershortbread', 'foodBeefwellington', 'foodEpicbacon', 'foodManjuu', 'foodChickengumbo', 'foodGeneraltsochicken', 'foodCaliforniaroll', 'foodFutomaki', 'foodBeansontoast', 'foodVegemite', 'foodHoneycombchocolatebar', 'foodCherrycoconutchocolatebar', 'foodFairybread', 'foodLamington', 'foodTimtam', 'foodMeatpie', 'foodChikoroll', 'foodDamper', 'foodBeetburger', 'foodPavlova', 'foodGherkin', 'foodMcpam', 'foodCeasarsalad', 'foodChaoscookie', 'foodChocolatebacon', 'foodLambkebab', 'foodNutella', 'foodSnickersbar', 'foodSpinachpie', 'foodSteamedspinach', 'foodVegemiteontoast', 'foodSalmonraw', 'foodAnchovyraw', 'foodBassraw', 'foodCarpraw', 'foodCatfishraw', 'foodCharrraw', 'foodClamraw', 'foodCrabraw', 'foodCrayfishraw', 'foodEelraw', 'foodFrograw', 'foodGrouperraw', 'foodHerringraw', 'foodJellyfishraw', 'foodMudfishraw', 'foodOctopusraw', 'foodPerchraw', 'foodScallopraw', 'foodShrimpraw', 'foodSnailraw', 'foodSnapperraw', 'foodTilapiaraw', 'foodTroutraw', 'foodTunaraw', 'foodTurtleraw', 'foodWalleyraw', 'foodHolidaycake', 'foodClamcooked', 'foodCrabcooked', 'foodCrayfishcooked', 'foodFrogcooked', 'foodOctopuscooked', 'foodScallopcooked', 'foodShrimpcooked', 'foodSnailcooked', 'foodTurtlecooked', 'foodApplecider', 'foodBangersandmash', 'foodBatteredsausage', 'foodBatter', 'foodchorizo', 'foodColeslaw', 'foodEnergydrink', 'foodFriedonions', 'foodMeatfeastpizza', 'foodMincepie', 'foodOnionhamburger', 'foodPepperoni', 'foodPickledonions', 'foodPorksausage', 'foodRaspberrytrifle', 'foodTurkeyraw', 'foodTurkeycooked', 'foodRabbitraw', 'foodRabbitcooked', 'foodVenisonraw', 'foodVenisoncooked', 'foodStrawberrymilkshake', 'foodChocolatemilkshake', 'foodBananamilkshake', 'foodCornflakes', 'foodColeslawburger', 'foodRoastchicken', 'foodRoastpotatoes', 'foodSundayroast', 'foodBbqpulledpork', 'foodLambwithmintsauce', 'foodSteakandchips', 'foodCherryicecream', 'foodPistachioicecream', 'foodNeapolitanicecream', 'foodSpumoniicecream', 'foodAlmondbutter', 'foodCashewbutter', 'foodChestnutbutter', 'foodCornishpasty', 'foodCottagepie', 'foodCroissant', 'foodCurrypowder', 'foodDimsum', 'foodFriedpecanokra', 'foodGooseberryjelly', 'foodGooseberryjellysandwich', 'foodGooseberrymilkeshake', 'foodGooseberrypie', 'foodGooseberrysmoothie', 'foodGooseberryyogurt', 'foodGreenheartfish', 'foodHamsweetpicklesandwich', 'foodHushpuppies', 'foodKimchi', 'foodMochi', 'foodMuseli', 'foodNaan', 'foodOkrachips', 'foodOkracreole', 'foodPistachiobutter', 'foodPloughmanslunch', 'foodPorklomein', 'foodSalmonpatties', 'foodSausage', 'foodSausageroll', 'foodSesameball', 'foodSesamesnaps', 'foodShrimpokrahushpuppies', 'foodSoysauce', 'foodSweetpickle', 'foodVeggiestrips', 'foodVindaloo', 'foodApplesmoothie', 'foodCheeseontoast', 'foodChocolateroll', 'foodCoconutcream', 'foodCoconutsmoothie', 'foodCracker', 'foodCranberrysmoothie', 'foodCranberryyogurt', 'foodDeluxechickencurry', 'foodGarammasala', 'foodGrapesmoothie', 'foodGravy', 'foodHoneysandwich', 'foodJamroll', 'foodMangochutney', 'foodMarzipan', 'foodPaneer', 'foodPaneertikkamasala', 'foodPeaandhamsoup', 'foodPearjelly', 'foodPearjellysandwich', 'foodPearsmoothie', 'foodPlumjelly', 'foodPlumjellysandwich', 'foodPlumsmoothie', 'foodPotatoandleeksoup', 'foodToadinthehole', 'foodTunapotato', 'foodYorkshirepudding', 'foodSesameoil', 'foodHotandsoursoup', 'foodNoodles', 'foodChickenchowmein', 'foodKungpaochicken', 'foodHoisinsauce', 'foodFivespice', 'foodCharsiu', 'foodSweetandsoursauce', 'foodSweetandsourchicken', 'foodBaconandeggs', 'foodBiscuitsandgravy', 'foodApplefritter', 'foodSweettea', 'foodCreepercookie', 'foodPatreonpie', 'foodHoneybread', 'foodHoneybun', 'foodHoneyglazedcarrots', 'foodHoneyglazedham', 'foodHoneysoyribs', 'foodAnchovypepperonipizza', 'foodChocovoxels', 'foodCinnamontoast', 'foodCornedbeefhash', 'foodCornedbeef', 'foodCottoncandy', 'foodCrackers', 'foodCreeperwings', 'foodDhal', 'foodDurianmilkshake', 'foodDurianmuffin', 'foodHomestylelunch', 'foodHotsauce', 'foodIronbrew', 'foodHummus', 'foodLasagna', 'foodLemondrizzlecake', 'foodMeatloaf', 'foodMontecristosandwich', 'foodMushroomlasagna', 'foodMusselcooked', 'foodMusselraw', 'foodNetherwings', 'foodPizzasoup', 'foodPoutine', 'foodSalsa', 'foodSardineraw', 'foodSardinesinhotsauce', 'foodTeriyakichicken', 'foodToastedwestern', 'foodTurkishdelight', 'foodCornedbeefbreakfast', 'foodGreeneggsandham', 'foodSpaghettidinner', 'foodTheatrebox', 'foodCookiesandmilk', 'foodCrackersandcheese', 'foodChickendinner', 'foodBbqplatter', 'foodWeekendpicnic', 'foodCorndog', 'foodChilidog', 'foodHamandcheesesandwich', 'foodTunafishsandwich', 'foodTunasalad', 'foodGrits', 'foodSouthernstylebreakfast', 'foodChimichanga', 'foodClamchowder', 'foodBreakfastburrito', 'foodButtercookie', 'foodSugarcookie', 'foodPotatochips', 'foodBbqpotatochips', 'foodSourcreamandonionpotatochips', 'foodCheddarandsourcreampotatochips', 'foodTortillachips', 'foodChipsandsalsa', 'foodChipsanddip', 'foodCheezepuffs', 'foodSurfandturf', 'foodLiverandonions', 'foodFortunecookie', 'foodDeviledegg', 'foodMozzerellasticks', 'foodGumbo', 'foodJambalaya', 'foodSuccotash', 'foodEggsbenedict', 'foodFriedgreentomatoes', 'foodChickenandwaffles', 'foodPotatoesobrien', 'foodTatertots', 'foodSmores', 'foodThankfuldinner', 'foodSteakfajita', 'foodRamen', 'foodMisosoup', 'foodOnigiri', 'foodGrilledcheesevegemitetoast', 'foodMonsterfrieddumplings', 'foodSalisburysteak', 'foodCrispyricepuffcereal', 'foodCrispyricepuffbars', 'foodBabaganoush', 'foodBerryvinaigrettesalad', 'foodTomatoherbchicken', 'foodPastagardenia', 'foodFiestacornsalad', 'foodThreebeansalad', 'foodSweetandsourmeatballs', 'foodPepperjelly', 'foodPepperjellyandcrackers', 'foodSaltedcaramel', 'foodSpidereyepie', 'foodCheesyshrimpquinoa', 'foodBulgogi', 'foodOmurice', 'foodKoreandinner', 'foodPemmican', 'foodDriedsoup', 'foodCrabkimbap', 'foodFroglegstirfry', 'foodCrawfishetoufee', 'foodHaggis', 'foodChickenkatsu', 'foodChocolateorange', 'foodFestivalbread', 'foodFruitcreamfestivalbread', 'foodPho', 'foodBubbletea', 'foodDuckraw', 'foodDuckcooked', 'foodWontonsoup', 'foodSpringroll', 'foodMeatystirfry', 'foodPotstickers', 'foodOrangeduck', 'foodPekingduck', 'foodStuffedduck', 'foodRoux', 'foodCandiedpecans', 'foodEnchilada', 'foodStuffing', 'foodGreenbeancasserole', 'foodHamandpineapplepizza', 'foodSaucedlambkebab', 'foodCobblestonecobbler', 'foodCrayfishsalad', 'foodCeviche', 'foodDeluxenachoes', 'foodBakedcactus', 'foodGarlicsteak', 'foodMushroomsteak', 'foodHotdishcasserole', 'foodSausagebeanmelt', 'foodMettbrotchen', 'foodPorkrinds', 'foodCracklins', 'foodChorusfruitsoup', 'foodAkutuq', 'foodCantonesegreens', 'foodCantonesenoodles', 'foodDango', 'foodEarlgreytea', 'foodEggroll', 'foodEggtart', 'foodGreentea', 'foodMeesua', 'foodOystercooked', 'foodOysterraw', 'foodOystersauce', 'foodSpringfieldcashewchicken', 'foodSquidinkspaghetti', 'foodSteaktartare', 'foodSzechuaneggplant', 'foodTakoyaki', 'oreDimensionalShard', 'oreAluminium', 'coinAluminium', 'dustAluminium', 'ingotAluminium', 'nuggetAluminium', 'gearAluminium', 'plateAluminium', 'blockChromium', 'ingotChromium', 'plateChromium', 'dustChromium', 'dustSmallAluminium', 'dustSmallChromium', 'nuggetChromium', 'sheetAluminium', 'coilAluminium', 'slabAluminium', 'blockSheetmetalAluminium', 'slabSheetmetalAluminium', 'stickAluminium', 'wireAluminium', 'fenceAluminium', 'scaffoldingAluminium', 'crystalAluminum', 'crystalShardAluminum', 'crystalFragmentAluminum', 'universalCable', 'battery', 'blockSalt', 'alloyBasic', 'alloyAdvanced', 'alloyElite', 'alloyUltimate', 'dustRefinedObsidian', 'nuggetRefinedObsidian', 'nuggetOsmium', 'nuggetRefinedGlowstone', 'blockOsmium', 'blockRefinedObsidian', 'blockRefinedGlowstone', 'dustDirtyIron', 'clumpIron', 'shardIron', 'dustDirtyGold', 'clumpGold', 'shardGold', 'dustOsmium', 'dustDirtyOsmium', 'clumpOsmium', 'shardOsmium', 'crystalOsmium', 'dustDirtyCopper', 'clumpCopper', 'shardCopper', 'dustDirtyTin', 'clumpTin', 'shardTin', 'dustDirtySilver', 'clumpSilver', 'shardSilver', 'crystalSilver', 'dustDirtyLead', 'clumpLead', 'shardLead', 'crystalLead', 'oreOsmium', 'circuitUltimate', 'itemCompressedCarbon', 'itemCompressedRedstone', 'itemCompressedDiamond', 'itemCompressedObsidian', 'itemEnrichedAlloy', 'itemBioFuel', 'slimeballGreen', 'slimeballBlue', 'slimeballPurple', 'slimeballBlood', 'slimeballMagma', 'nuggetCobalt', 'ingotCobalt', 'nuggetArdite', 'ingotArdite', 'blockArdite', 'nuggetManyullyn', 'ingotManyullyn', 'blockManyullyn', 'nuggetKnightslime', 'ingotKnightslime', 'blockKnightslime', 'nuggetPigiron', 'ingotPigiron', 'blockPigiron', 'nuggetAlubrass', 'ingotAlubrass', 'blockAlubrass', 'blockMetal', 'ingotBrickSeared', 'slimecrystal', 'slimecrystalGreen', 'slimecrystalBlue', 'slimecrystalMagma', 'oreCobalt', 'oreArdite', 'partPickHead', 'partBinding', 'partToolRod', 'pattern', 'cast', 'blockSeared', 'blockSlimeCongealed', 'blockSlimeDirt', 'blockSlimeGrass', 'rodStone', 'oreEnderBiotite', 'gemDimensionalShard', 'blockMarble', 'oreAstralStarmetal', 'ingotAstralStarmetal', 'dustAstralStarmetal', 'oreAquamarine', 'gemAquamarine', 'gemCertusQuartz', 'gemChargedCertusQuartz', 'gemFluix', 'fenceAbyssalnite', 'fenceArdite', 'fenceAstralStarmetal', 'fenceBoron', 'fenceCobalt', 'fenceCopper', 'fenceDraconium', 'fenceGold', 'fenceIridium', 'fenceLead', 'fenceLiquifiedCoralium', 'fenceLithium', 'fenceMagnesium', 'fenceMithril', 'fenceNickel', 'fenceOsmium', 'fencePlatinum', 'fenceSilver', 'fenceThorium', 'fenceTin', 'fenceTitanium', 'fenceTungsten', 'fenceUranium', 'fenceYellorium', 'fenceAmber', 'fenceAmethyst', 'fenceApatite', 'fenceAquamarine', 'fenceCoal', 'fenceCoralium', 'fenceDiamond', 'fenceDimensionalShard', 'fenceEmerald', 'fenceEnderBiotite', 'fenceLapis', 'fenceMalachite', 'fencePeridot', 'fenceQuartz', 'fenceQuartzBlack', 'fenceRuby', 'fenceSapphire', 'fenceTanzanite', 'fenceTopaz', 'wallArdite', 'wallCobalt', 'wallCopper', 'wallDraconium', 'wallGold', 'wallIridium', 'wallIron', 'wallLead', 'wallMithril', 'wallNickel', 'wallOsmium', 'wallPlatinum', 'wallSilver', 'wallTin', 'wallTungsten', 'wallUranium', 'wallYellorium', 'wallAmber', 'wallAmethyst', 'wallApatite', 'wallCoal', 'wallDiamond', 'wallDimensionalShard', 'wallEmerald', 'wallEnderBiotite', 'wallLapis', 'wallMalachite', 'wallPeridot', 'wallQuartz', 'wallQuartzBlack', 'wallRuby', 'wallSapphire', 'wallTanzanite', 'wallTopaz', 'glassHardenedAbyssalnite', 'glassHardenedArdite', 'glassHardenedAstralStarmetal', 'glassHardenedBoron', 'glassHardenedCobalt', 'glassHardenedDraconium', 'glassHardenedGold', 'glassHardenedIron', 'glassHardenedLiquifiedCoralium', 'glassHardenedLithium', 'glassHardenedMagnesium', 'glassHardenedOsmium', 'glassHardenedThorium', 'glassHardenedTitanium', 'glassHardenedTungsten', 'glassHardenedUranium', 'glassHardenedYellorium', 'blockAmber', 'blockAmethyst', 'blockDimensionalShard', 'blockEnderBiotite', 'blockMalachite', 'blockQuartzBlack', 'blockTanzanite', 'blockTopaz', 'blockBauxite', 'blockCinnabar', 'blockGalena', 'blockPyrite', 'blockSodalite', 'blockSphalerite', 'crystalClusterArdite', 'crystalClusterAstralStarmetal', 'crystalClusterBoron', 'crystalClusterCobalt', 'crystalClusterDraconium', 'crystalClusterIridium', 'crystalClusterLead', 'crystalClusterLithium', 'crystalClusterMithril', 'crystalClusterNickel', 'crystalClusterOsmium', 'crystalClusterPlatinum', 'crystalClusterSilver', 'crystalClusterThorium', 'crystalClusterTitanium', 'crystalClusterTungsten', 'crystalClusterUranium', 'crystalClusterYellorium', 'dustArdite', 'dustCobalt', 'dustAquamarine', 'dustCoralium', 'dustDimensionalShard', 'dustEnderBiotite', 'nuggetAstralStarmetal', 'nuggetBoron', 'nuggetLithium', 'nuggetMagnesium', 'nuggetThorium', 'nuggetYellorium', 'nuggetAmber', 'nuggetAmethyst', 'nuggetApatite', 'nuggetAquamarine', 'nuggetCoal', 'nuggetCoralium', 'nuggetDimensionalShard', 'nuggetEnderBiotite', 'nuggetLapis', 'nuggetMalachite', 'nuggetPeridot', 'nuggetQuartz', 'nuggetQuartzBlack', 'nuggetRuby', 'nuggetSapphire', 'nuggetTanzanite', 'nuggetTopaz', 'coinAbyssalnite', 'coinArdite', 'coinAstralStarmetal', 'coinBoron', 'coinCobalt', 'coinDraconium', 'coinLiquifiedCoralium', 'coinLithium', 'coinMagnesium', 'coinOsmium', 'coinThorium', 'coinTitanium', 'coinTungsten', 'coinUranium', 'coinYellorium', 'gearAbyssalnite', 'gearArdite', 'gearAstralStarmetal', 'gearBoron', 'gearCobalt', 'gearDraconium', 'gearLiquifiedCoralium', 'gearLithium', 'gearMagnesium', 'gearOsmium', 'gearThorium', 'gearTungsten', 'gearUranium', 'gearYellorium', 'gearAmber', 'gearAmethyst', 'gearApatite', 'gearAquamarine', 'gearCoal', 'gearCoralium', 'gearDimensionalShard', 'gearEmerald', 'gearEnderBiotite', 'gearLapis', 'gearMalachite', 'gearPeridot', 'gearQuartz', 'gearQuartzBlack', 'gearRuby', 'gearSapphire', 'gearTanzanite', 'gearTopaz', 'plateAbyssalnite', 'plateArdite', 'plateAstralStarmetal', 'plateBoron', 'plateCobalt', 'plateDraconium', 'plateLiquifiedCoralium', 'plateLithium', 'plateMagnesium', 'plateOsmium', 'plateThorium', 'plateYellorium', 'plateAmber', 'plateAmethyst', 'plateApatite', 'plateAquamarine', 'plateCoralium', 'plateDimensionalShard', 'plateEnderBiotite', 'plateMalachite', 'plateQuartz', 'plateQuartzBlack', 'plateTanzanite', 'plateTopaz', 'stickAbyssalnite', 'stickArdite', 'stickAstralStarmetal', 'stickBoron', 'stickCobalt', 'stickDraconium', 'stickGold', 'stickLead', 'stickLiquifiedCoralium', 'stickLithium', 'stickMagnesium', 'stickMithril', 'stickNickel', 'stickOsmium', 'stickPlatinum', 'stickSilver', 'stickThorium', 'stickTin', 'stickTungsten', 'stickUranium', 'stickYellorium', 'stickAmber', 'stickAmethyst', 'stickApatite', 'stickAquamarine', 'stickCoal', 'stickCoralium', 'stickDiamond', 'stickDimensionalShard', 'stickEmerald', 'stickEnderBiotite', 'stickLapis', 'stickMalachite', 'stickPeridot', 'stickQuartz', 'stickQuartzBlack', 'stickRuby', 'stickSapphire', 'stickTanzanite', 'stickTopaz', 'dustDirtyAbyssalnite', 'dustDirtyAluminium', 'dustDirtyArdite', 'dustDirtyAstralStarmetal', 'dustDirtyBoron', 'dustDirtyCobalt', 'dustDirtyDraconium', 'dustDirtyIridium', 'dustDirtyLiquifiedCoralium', 'dustDirtyLithium', 'dustDirtyMagnesium', 'dustDirtyMithril', 'dustDirtyNickel', 'dustDirtyPlatinum', 'dustDirtyThorium', 'dustDirtyTitanium', 'dustDirtyTungsten', 'dustDirtyUranium', 'dustDirtyYellorium', 'clumpAbyssalnite', 'clumpAluminium', 'clumpArdite', 'clumpAstralStarmetal', 'clumpBoron', 'clumpCobalt', 'clumpDraconium', 'clumpIridium', 'clumpLiquifiedCoralium', 'clumpLithium', 'clumpMagnesium', 'clumpMithril', 'clumpNickel', 'clumpPlatinum', 'clumpThorium', 'clumpTitanium', 'clumpTungsten', 'clumpUranium', 'clumpYellorium', 'shardAbyssalnite', 'shardAluminium', 'shardArdite', 'shardAstralStarmetal', 'shardBoron', 'shardCobalt', 'shardDraconium', 'shardIridium', 'shardLiquifiedCoralium', 'shardLithium', 'shardMagnesium', 'shardMithril', 'shardNickel', 'shardPlatinum', 'shardThorium', 'shardTitanium', 'shardTungsten', 'shardUranium', 'shardYellorium', 'crystalArdite', 'crystalAstralStarmetal', 'crystalBoron', 'crystalCobalt', 'crystalDraconium', 'crystalIridium', 'crystalLiquifiedCoralium', 'crystalLithium', 'crystalMithril', 'crystalNickel', 'crystalPlatinum', 'crystalThorium', 'crystalTitanium', 'crystalTungsten', 'crystalUranium', 'crystalYellorium', 'crushedAbyssalnite', 'crushedAluminium', 'crushedArdite', 'crushedAstralStarmetal', 'crushedBoron', 'crushedCobalt', 'crushedDraconium', 'crushedIridium', 'crushedLiquifiedCoralium', 'crushedLithium', 'crushedMagnesium', 'crushedMithril', 'crushedNickel', 'crushedOsmium', 'crushedPlatinum', 'crushedThorium', 'crushedTitanium', 'crushedTungsten', 'crushedYellorium', 'crushedPurifiedAbyssalnite', 'crushedPurifiedAluminium', 'crushedPurifiedArdite', 'crushedPurifiedAstralStarmetal', 'crushedPurifiedBoron', 'crushedPurifiedCobalt', 'crushedPurifiedDraconium', 'crushedPurifiedIridium', 'crushedPurifiedLiquifiedCoralium', 'crushedPurifiedLithium', 'crushedPurifiedMagnesium', 'crushedPurifiedMithril', 'crushedPurifiedNickel', 'crushedPurifiedOsmium', 'crushedPurifiedPlatinum', 'crushedPurifiedThorium', 'crushedPurifiedTitanium', 'crushedPurifiedTungsten', 'crushedPurifiedYellorium', 'dustTinyAbyssalnite', 'dustTinyAluminium', 'dustTinyArdite', 'dustTinyAstralStarmetal', 'dustTinyBoron', 'dustTinyCobalt', 'dustTinyDraconium', 'dustTinyIridium', 'dustTinyLiquifiedCoralium', 'dustTinyMagnesium', 'dustTinyMithril', 'dustTinyNickel', 'dustTinyOsmium', 'dustTinyPlatinum', 'dustTinyThorium', 'dustTinyTitanium', 'dustTinyTungsten', 'dustTinyUranium', 'dustTinyYellorium', 'dustTinyAmber', 'dustTinyAmethyst', 'dustTinyApatite', 'dustTinyAquamarine', 'dustTinyCoal', 'dustTinyCoralium', 'dustTinyDiamond', 'dustTinyDimensionalShard', 'dustTinyEmerald', 'dustTinyEnderBiotite', 'dustTinyMalachite', 'dustTinyPeridot', 'dustTinyQuartz', 'dustTinyQuartzBlack', 'dustTinyRuby', 'dustTinySapphire', 'dustTinyTanzanite', 'dustTinyTopaz', 'crystalFragmentArdite', 'crystalFragmentAstralStarmetal', 'crystalFragmentBoron', 'crystalFragmentCobalt', 'crystalFragmentDraconium', 'crystalFragmentIridium', 'crystalFragmentLead', 'crystalFragmentLithium', 'crystalFragmentMithril', 'crystalFragmentNickel', 'crystalFragmentOsmium', 'crystalFragmentPlatinum', 'crystalFragmentSilver', 'crystalFragmentThorium', 'crystalFragmentTitanium', 'crystalFragmentTungsten', 'crystalFragmentUranium', 'crystalFragmentYellorium', 'crystalShardArdite', 'crystalShardAstralStarmetal', 'crystalShardBoron', 'crystalShardCobalt', 'crystalShardDraconium', 'crystalShardIridium', 'crystalShardLead', 'crystalShardLithium', 'crystalShardMithril', 'crystalShardNickel', 'crystalShardOsmium', 'crystalShardPlatinum', 'crystalShardSilver', 'crystalShardThorium', 'crystalShardTitanium', 'crystalShardTungsten', 'crystalShardUranium', 'crystalShardYellorium', 'dustSmallAbyssalnite', 'dustSmallArdite', 'dustSmallAstralStarmetal', 'dustSmallBoron', 'dustSmallCobalt', 'dustSmallDraconium', 'dustSmallIridium', 'dustSmallLiquifiedCoralium', 'dustSmallLithium', 'dustSmallMithril', 'dustSmallOsmium', 'dustSmallThorium', 'dustSmallUranium', 'dustSmallYellorium', 'dustSmallAmber', 'dustSmallAmethyst', 'dustSmallApatite', 'dustSmallAquamarine', 'dustSmallCoralium', 'dustSmallDimensionalShard', 'dustSmallEnderBiotite', 'dustSmallLapis', 'dustSmallMalachite', 'dustSmallQuartz', 'dustSmallQuartzBlack', 'dustSmallTanzanite', 'dustSmallTopaz', 'dustSmallDilithium', 'rodAbyssalnite', 'rodArdite', 'rodAstralStarmetal', 'rodBoron', 'rodCobalt', 'rodDraconium', 'rodGold', 'rodLead', 'rodLiquifiedCoralium', 'rodLithium', 'rodMagnesium', 'rodMithril', 'rodNickel', 'rodOsmium', 'rodPlatinum', 'rodSilver', 'rodThorium', 'rodTin', 'rodTungsten', 'rodUranium', 'rodYellorium', 'rodAmber', 'rodAmethyst', 'rodApatite', 'rodAquamarine', 'rodCoal', 'rodCoralium', 'rodDiamond', 'rodDimensionalShard', 'rodEmerald', 'rodEnderBiotite', 'rodLapis', 'rodMalachite', 'rodPeridot', 'rodQuartz', 'rodQuartzBlack', 'rodRuby', 'rodSapphire', 'rodTanzanite', 'rodTopaz', 'dustEnder', 'glass', 'wool', 'crystalNetherQuartz', 'dustCertusQuartz', 'dustFluix', 'itemIlluminatedPanel', 'bowlWood', 'cropMaloberry', 'ingotHoneyComb', 'clayPorcelain', 'itemSilicon', 'crystalPladium', 'crystalLonsdaleite', 'crystalLitherite', 'crystalKyronite', 'crystalIonite', 'crystalErodium', 'crystalAethium', 'blockAethium', 'etLaserLens', 'blockIonite', 'blockPladium', 'blockKyronite', 'blockErodium', 'blockLitherite', 'etLaserLensColored', 'etSolarCell', 'dustVile', 'dustCorrupted', 'ingotCorrupted', 'gemEndimium', 'itemSkull', 'gemPearl', 'blockPearl', 'bed', 'dustWheat', 'pearlFluix', 'blockStainedHardenedClay', 'crystalPureFluix', 'oreCertusQuartz', 'oreChargedCertusQuartz', 'ingotDawnstone', 'nuggetDawnstone', 'blockDawnstone', 'plateDawnstone', 'plant', 'rootsHerb', 'shardGlass', 'steelAxe', 'steelPickaxe', 'steelShovel', 'obsidianAxe', 'obsidianPickaxe', 'obsidianShovel', 'bronzeAxe', 'bronzePickaxe', 'bronzeShovel', 'fieryItem', 'fieryBlock', 'creativeATMStar', 'astralGemCrystals', 'blockSlate', 'stoneSlate', 'oreDimensional', 'buttonWood', 'listAllSeed', 'seed', 'blockMagma', 'fusionExtreme', 'uuMatterItem', 'beehiveForestry', 'basicPump', 'growGlass', 'nuclearcraftDepletedRod', 'ic2DepletedRod', 'chunkloaderUpgrade', 'itemBattery', 'blockMotor', 'dustThermite', 'ingotCarbon', 'waferSilicon', 'itemLens', 'turfMoon', 'blockPsiDust', 'blockPsiMetal', 'blockPsiGem', 'blockCandle', 'stonePolished', 'plankStained', 'listAllGrain', 'foodEqualswheat', 'dustSulphur', 'cropBlightberry', 'cropDuskberry', 'cropSkyberry', 'cropStingberry', 'taintedSoil', 'glassSoul', 'cropVine', 'tallgrass', 'lilypad', 'mushroom', 'hopper', 'cropBeetroot', 'blockNetherWart', 'blockBone', 'shulkerShell', 'shulkerBox', 'rail', 'arrow', 'careerBeesYing', 'careerBeesYang', 'plateClayRaw', 'plateClay', 'plateBrick', 'oc:adapter', 'oc:assembler', 'oc:cable', 'oc:capacitor', 'oc:case1', 'oc:case3', 'oc:case2', 'oc:chameliumBlock', 'oc:charger', 'oc:disassembler', 'oc:diskDrive', 'oc:geolyzer', 'oc:hologram1', 'oc:hologram2', 'oc:keyboard', 'oc:motionSensor', 'oc:powerConverter', 'oc:powerDistributor', 'oc:printer', 'oc:raid', 'oc:redstone', 'oc:relay', 'oc:screen1', 'oc:screen3', 'oc:screen2', 'oc:rack', 'oc:waypoint', 'oc:netSplitter', 'oc:transposer', 'oc:carpetedCapacitor', 'oc:materialCuttingWire', 'oc:materialAcid', 'oc:materialCircuitBoardRaw', 'oc:materialCircuitBoard', 'oc:materialCircuitBoardPrinted', 'oc:materialCard', 'oc:materialTransistor', 'oc:circuitChip1', 'oc:circuitChip2', 'oc:circuitChip3', 'oc:materialALU', 'oc:materialCU', 'oc:materialDisk', 'oc:materialInterweb', 'oc:materialButtonGroup', 'oc:materialArrowKey', 'oc:materialNumPad', 'oc:tabletCase1', 'oc:tabletCase2', 'oc:microcontrollerCase1', 'oc:microcontrollerCase2', 'oc:droneCase1', 'oc:droneCase2', 'oc:inkCartridgeEmpty', 'oc:inkCartridge', 'oc:chamelium', 'oc:analyzer', 'oc:terminal', 'oc:texturePicker', 'oc:manual', 'oc:wrench', 'oc:hoverBoots', 'oc:nanomachines', 'oc:cpu1', 'oc:cpu2', 'oc:cpu3', 'oc:componentBus1', 'oc:componentBus2', 'oc:componentBus3', 'oc:ram1', 'oc:ram2', 'oc:ram3', 'oc:ram4', 'oc:ram5', 'oc:ram6', 'oc:server1', 'oc:server2', 'oc:server3', 'oc:apu1', 'oc:apu2', 'oc:terminalServer', 'oc:diskDriveMountable', 'oc:graphicsCard1', 'oc:graphicsCard2', 'oc:graphicsCard3', 'oc:redstoneCard1', 'oc:redstoneCard2', 'oc:lanCard', 'oc:wlanCard2', 'oc:internetCard', 'oc:linkedCard', 'oc:dataCard1', 'oc:dataCard2', 'oc:dataCard3', 'oc:angelUpgrade', 'oc:batteryUpgrade1', 'oc:batteryUpgrade2', 'oc:batteryUpgrade3', 'oc:chunkloaderUpgrade', 'oc:cardContainer1', 'oc:cardContainer2', 'oc:cardContainer3', 'oc:upgradeContainer1', 'oc:upgradeContainer2', 'oc:upgradeContainer3', 'oc:craftingUpgrade', 'oc:databaseUpgrade1', 'oc:databaseUpgrade2', 'oc:databaseUpgrade3', 'oc:experienceUpgrade', 'oc:generatorUpgrade', 'oc:inventoryUpgrade', 'oc:inventoryControllerUpgrade', 'oc:navigationUpgrade', 'oc:pistonUpgrade', 'oc:signUpgrade', 'oc:solarGeneratorUpgrade', 'oc:tankUpgrade', 'oc:tankControllerUpgrade', 'oc:tractorBeamUpgrade', 'oc:leashUpgrade', 'oc:hoverUpgrade1', 'oc:hoverUpgrade2', 'oc:tradingUpgrade', 'oc:mfu', 'oc:wlanCard1', 'oc:eeprom', 'oc:floppy', 'oc:hdd1', 'oc:hdd2', 'oc:hdd3', 'blockWither', 'blockLonsdaleite', 'blockCompactRawPorkchop', 'oreProsperity', 'oreNetherProsperity', 'oreEndProsperity', 'oreInferium', 'oreNetherInferium', 'oreEndInferium', 'oreEndimium', 'oreBurnium', 'blockEndimium', 'blockBurnium', 'gateWood', 'cropPricklyPear', 'cropGrapes', 'cropLifeFruit', 'cropDeathFruit', 'listAllCitrus', 'gemBurnium', 'dustTinyBurnium', 'dustBurnium', 'dustTinyEndimium', 'dustEndimium', 'dustTinyEnder', 'dustTinyRedstone', 'lumpSandstone', 'lumpGravel', 'lumpRedSandstone'] |
class Embed:
def __init__(self, title=None, description=None, color=None, spoiler=False):
self.title = title
self.description = description
self.color = color
self.spoiler = spoiler
self.field_data = None
self.footer = None
def add_field(self, name, value, inline=None):
if not self.field_data:
self.field_data = []
self.field_data.append((name, value, inline))
def set_footer(self, text):
self.footer = text
@property
def create(self):
content = ["||..." if self.spoiler else '...']
content.extend([f"**{self.title}**", '---'])
if self.description:
content.append(f'{self.description}')
if self.field_data:
content.append('---')
for data in self.field_data:
if data[2]:
content[-1].join(f"`\t{data[0]}`: `{data[1]}`")
else:
content.append(f"`{data[0]}`: `{data[1]}`")
content.extend(["---||" if self.spoiler else '---'])
if self.footer:
content.append(f"_{self.footer}_")
return "\n".join(content)
| class Embed:
def __init__(self, title=None, description=None, color=None, spoiler=False):
self.title = title
self.description = description
self.color = color
self.spoiler = spoiler
self.field_data = None
self.footer = None
def add_field(self, name, value, inline=None):
if not self.field_data:
self.field_data = []
self.field_data.append((name, value, inline))
def set_footer(self, text):
self.footer = text
@property
def create(self):
content = ['||...' if self.spoiler else '...']
content.extend([f'**{self.title}**', '---'])
if self.description:
content.append(f'{self.description}')
if self.field_data:
content.append('---')
for data in self.field_data:
if data[2]:
content[-1].join(f'`\t{data[0]}`: `{data[1]}`')
else:
content.append(f'`{data[0]}`: `{data[1]}`')
content.extend(['---||' if self.spoiler else '---'])
if self.footer:
content.append(f'_{self.footer}_')
return '\n'.join(content) |
"""External tests associated with doctest_private_tests.py.
>>> my_function(['A', 'B', 'C'], 2)
['A', 'B', 'C', 'A', 'B', 'C']
"""
| """External tests associated with doctest_private_tests.py.
>>> my_function(['A', 'B', 'C'], 2)
['A', 'B', 'C', 'A', 'B', 'C']
""" |
# -*- coding: utf-8 -*-
"""
***************************************************************************
qgsfeature.py
---------------------
Date : May 2018
Copyright : (C) 2018 by Denis Rouzaud
Email : denis@opengis.ch
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************
"""
def mapping_feature(feature):
geom = feature.geometry()
fields = [field.name() for field in feature.fields()]
properties = dict(list(zip(fields, feature.attributes())))
return {'type': 'Feature',
'properties': properties,
'geometry': geom.__geo_interface__}
| """
***************************************************************************
qgsfeature.py
---------------------
Date : May 2018
Copyright : (C) 2018 by Denis Rouzaud
Email : denis@opengis.ch
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************
"""
def mapping_feature(feature):
geom = feature.geometry()
fields = [field.name() for field in feature.fields()]
properties = dict(list(zip(fields, feature.attributes())))
return {'type': 'Feature', 'properties': properties, 'geometry': geom.__geo_interface__} |
# -*- coding: utf-8 -*-
"""
Created on Thu Dec 7 16:09:41 2017
@author: User
"""
def sameChrs():
commonS = []
s1 = str(input('Enter first string\n'))
s2 = str(input('Enter second string?\n'))
print('This is what you entered\n', s1,'\n', s2)
if len(s2) > len(s1):
raise ValueError
else:
for i in range(len(s1)):
for j in range(len(s2)):
if s1[i] == s2[j]:
commonS.append(s1[i])
print(commonS, 'are common')
sameChrs()
# same thing using sets
# set_one = set(first_input)
# set_two = set(second_input)
# intersect = set_one & set_two #or s intersection(t)
# print(intersect, 'are common') | """
Created on Thu Dec 7 16:09:41 2017
@author: User
"""
def same_chrs():
common_s = []
s1 = str(input('Enter first string\n'))
s2 = str(input('Enter second string?\n'))
print('This is what you entered\n', s1, '\n', s2)
if len(s2) > len(s1):
raise ValueError
else:
for i in range(len(s1)):
for j in range(len(s2)):
if s1[i] == s2[j]:
commonS.append(s1[i])
print(commonS, 'are common')
same_chrs() |
"""Singleton metaclass"""
# Copyright (C) 2019 F5 Networks, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
class _Singleton(type):
""" A metaclass that creates a Singleton base class when called. """
_instances = {}
def __call__(cls, *args, **kwargs):
if cls not in cls._instances:
cls._instances[cls] = super(_Singleton, cls).__call__(*args, **kwargs)
return cls._instances[cls]
class Singleton(_Singleton('SingletonMeta', (object,), {})): # pylint: disable=too-few-public-methods
"""Singleton pattern using metaclass"""
| """Singleton metaclass"""
class _Singleton(type):
""" A metaclass that creates a Singleton base class when called. """
_instances = {}
def __call__(cls, *args, **kwargs):
if cls not in cls._instances:
cls._instances[cls] = super(_Singleton, cls).__call__(*args, **kwargs)
return cls._instances[cls]
class Singleton(__singleton('SingletonMeta', (object,), {})):
"""Singleton pattern using metaclass""" |
#!/usr/bin/env python3
# create a list containing three items
my_list = ["192.168.0.5", 5060, "UP"]
# display first item
print("The first item in the list (IP): " + my_list[0] )
# Below needs to be cast from an int to a str for printing
print("The second item in the list (port): " + str(my_list[1]) )
# displaying the final item
print("The third item in the list (state): " + my_list[2] )
iplist = [ 5060, "80", 55, "10.0.0.1", "10.20.30.1", "ssh" ]
print(iplist[3:5])
| my_list = ['192.168.0.5', 5060, 'UP']
print('The first item in the list (IP): ' + my_list[0])
print('The second item in the list (port): ' + str(my_list[1]))
print('The third item in the list (state): ' + my_list[2])
iplist = [5060, '80', 55, '10.0.0.1', '10.20.30.1', 'ssh']
print(iplist[3:5]) |
load("@bazel_gazelle//:deps.bzl", "go_repository")
def pprof_go_repositories():
go_repository(
name = "com_github_chzyer_logex",
importpath = "github.com/chzyer/logex",
sum = "h1:Swpa1K6QvQznwJRcfTfQJmTE72DqScAa40E+fbHEXEE=",
version = "v1.1.10",
)
go_repository(
name = "com_github_chzyer_readline",
importpath = "github.com/chzyer/readline",
sum = "h1:fY5BOSpyZCqRo5OhCuC+XN+r/bBCmeuuJtjz+bCNIf8=",
version = "v0.0.0-20180603132655-2972be24d48e",
)
go_repository(
name = "com_github_chzyer_test",
importpath = "github.com/chzyer/test",
sum = "h1:q763qf9huN11kDQavWsoZXJNW3xEE4JJyHa5Q25/sd8=",
version = "v0.0.0-20180213035817-a1ea475d72b1",
)
go_repository(
name = "com_github_ianlancetaylor_demangle",
importpath = "github.com/ianlancetaylor/demangle",
sum = "h1:UDMh68UUwekSh5iP2OMhRRZJiiBccgV7axzUG8vi56c=",
version = "v0.0.0-20181102032728-5e5cf60278f6",
)
go_repository(
name = "org_golang_x_sys",
importpath = "golang.org/x/sys",
sum = "h1:9vRrk9YW2BTzLP0VCB9ZDjU4cPqkg+IDWL7XgxA1yxQ=",
version = "v0.0.0-20191204072324-ce4227a45e2e",
)
| load('@bazel_gazelle//:deps.bzl', 'go_repository')
def pprof_go_repositories():
go_repository(name='com_github_chzyer_logex', importpath='github.com/chzyer/logex', sum='h1:Swpa1K6QvQznwJRcfTfQJmTE72DqScAa40E+fbHEXEE=', version='v1.1.10')
go_repository(name='com_github_chzyer_readline', importpath='github.com/chzyer/readline', sum='h1:fY5BOSpyZCqRo5OhCuC+XN+r/bBCmeuuJtjz+bCNIf8=', version='v0.0.0-20180603132655-2972be24d48e')
go_repository(name='com_github_chzyer_test', importpath='github.com/chzyer/test', sum='h1:q763qf9huN11kDQavWsoZXJNW3xEE4JJyHa5Q25/sd8=', version='v0.0.0-20180213035817-a1ea475d72b1')
go_repository(name='com_github_ianlancetaylor_demangle', importpath='github.com/ianlancetaylor/demangle', sum='h1:UDMh68UUwekSh5iP2OMhRRZJiiBccgV7axzUG8vi56c=', version='v0.0.0-20181102032728-5e5cf60278f6')
go_repository(name='org_golang_x_sys', importpath='golang.org/x/sys', sum='h1:9vRrk9YW2BTzLP0VCB9ZDjU4cPqkg+IDWL7XgxA1yxQ=', version='v0.0.0-20191204072324-ce4227a45e2e') |
#SIMPLE CLASS TO SHOW HOW TO WORK WITH PACKAGES (look "11_test_my_package.py")
#Santiago Garcia Arango
#One of the modules to show how to create a simple package in python.
class hello:
def __init__(self, name):
self.name = name
def say_hi_to_someone(self):
sentence = "Hello, " + self.name + "!!!"
return sentence
| class Hello:
def __init__(self, name):
self.name = name
def say_hi_to_someone(self):
sentence = 'Hello, ' + self.name + '!!!'
return sentence |
""" Python program to pass list to a function
and double the odd
values and half the even values of the list
and display the list elements after changing
"""
def operator_fn(a):
new=[]
for i in a:
if i%2==0:
i=i/2
new.append(i)
elif i%2!=0:
i=i*2
new.append(i)
a=new
print(a)
#_main_
a=list(input("Enter the list of numbers")) #getting the list as the input
a=list(a)
operator_fn(a)
| """ Python program to pass list to a function
and double the odd
values and half the even values of the list
and display the list elements after changing
"""
def operator_fn(a):
new = []
for i in a:
if i % 2 == 0:
i = i / 2
new.append(i)
elif i % 2 != 0:
i = i * 2
new.append(i)
a = new
print(a)
a = list(input('Enter the list of numbers'))
a = list(a)
operator_fn(a) |
class TextCompressor:
def longestRepeat(self, sourceText):
l = len(sourceText)
for i in xrange(l / 2, 0, -1):
for j in xrange(0, l - i):
if sourceText[j : i + j] in sourceText[i + j :]:
return sourceText[j : i + j]
return ""
| class Textcompressor:
def longest_repeat(self, sourceText):
l = len(sourceText)
for i in xrange(l / 2, 0, -1):
for j in xrange(0, l - i):
if sourceText[j:i + j] in sourceText[i + j:]:
return sourceText[j:i + j]
return '' |
class Solution:
def canIwin(self, maxint: int, desiredtotal: int) -> bool:
if maxint * (maxint + 1) < desiredtotal:
return False
cache = dict()
def dp(running_total, used):
if used in cache:
return cache[used]
for k in range(maxint, 0, -1):
if used & (1 << k):
continue
if running_total + k >= desiredtotal:
cache[used] = True
return True
if not dp(running_total + k, used | 1 << k):
cache[used] = True
return True
cache[used] = False
return False
return dp(0, 0)
def __init__(self):
maxint = 7
desiredtotal = 9
print(self.canIwin(maxint, desiredtotal))
Solution()
| class Solution:
def can_iwin(self, maxint: int, desiredtotal: int) -> bool:
if maxint * (maxint + 1) < desiredtotal:
return False
cache = dict()
def dp(running_total, used):
if used in cache:
return cache[used]
for k in range(maxint, 0, -1):
if used & 1 << k:
continue
if running_total + k >= desiredtotal:
cache[used] = True
return True
if not dp(running_total + k, used | 1 << k):
cache[used] = True
return True
cache[used] = False
return False
return dp(0, 0)
def __init__(self):
maxint = 7
desiredtotal = 9
print(self.canIwin(maxint, desiredtotal))
solution() |
class TreasureHunt:
def __init__(self, table, user_clues=None):
try: # check user_clues
user_clues = [int(clue) for clue in user_clues]
except (TypeError, ValueError, IndexError):
print('Clue has wrong type, expect - <int>. Start default:')
user_clues = None
try: # check table
int(table[0][0])
except (TypeError, ValueError, IndexError):
print(f'Matrix: <{table}> is wrong type, expect - [[,],[,],..] with <int> in cells')
self.error = True
self.table = table
self.clues = user_clues if (True if user_clues or self.error else False) else [table[0][0]]
treasure_cell = None
error = False
def matrix_to_list(self):
table_list = list()
for row in self.table:
table_list = table_list + row
return table_list
def next_clue(self, clue):
'''
:param clue: int
:return: new_clue: int
'''
coordinates = [int(digit) - 1 for digit in str(clue)] # 11 -> [1, 1]
row, column = coordinates[0], coordinates[1]
return self.table[row][column]
def clues_map(self):
if self.error:
return []
while not self.treasure_cell:
clue = self.clues[-1]
new_clue = self.next_clue(clue)
if clue == new_clue:
self.treasure_cell = new_clue
else:
self.clues.append(new_clue)
return self.clues
| class Treasurehunt:
def __init__(self, table, user_clues=None):
try:
user_clues = [int(clue) for clue in user_clues]
except (TypeError, ValueError, IndexError):
print('Clue has wrong type, expect - <int>. Start default:')
user_clues = None
try:
int(table[0][0])
except (TypeError, ValueError, IndexError):
print(f'Matrix: <{table}> is wrong type, expect - [[,],[,],..] with <int> in cells')
self.error = True
self.table = table
self.clues = user_clues if (True if user_clues or self.error else False) else [table[0][0]]
treasure_cell = None
error = False
def matrix_to_list(self):
table_list = list()
for row in self.table:
table_list = table_list + row
return table_list
def next_clue(self, clue):
"""
:param clue: int
:return: new_clue: int
"""
coordinates = [int(digit) - 1 for digit in str(clue)]
(row, column) = (coordinates[0], coordinates[1])
return self.table[row][column]
def clues_map(self):
if self.error:
return []
while not self.treasure_cell:
clue = self.clues[-1]
new_clue = self.next_clue(clue)
if clue == new_clue:
self.treasure_cell = new_clue
else:
self.clues.append(new_clue)
return self.clues |
#!/usr/bin/env python
#
# (c) Copyright Rosetta Commons Member Institutions.
# (c) This file is part of the Rosetta software suite and is made available under license.
# (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
# (c) For more information, see http://www.rosettacommons.org. Questions about this can be
# (c) addressed to University of Washington CoMotion, email: license@uw.edu.
## @file /GUIs/window_main/global_variables.py
## @brief Global variables for PyRosetta Toolkit
## @author Jared Adolf-Bryfogle (jadolfbr@gmail.com)
#Globals that will change regularly by many functions and classes accross the GUI should go here.
#This gets set to the toolkit directory by pyrosetta_toolkit.py.
current_directory=""
#NOTE: To use these global variables import the file into your module. Use 'from window_main import global_variables' as the main toolkit directory is added to PythonPath at launch of the GUI
#These variables are truly global and just by importing the module, the instance of the variable can be accessed and manipulated.
| current_directory = '' |
def func(a, b, n, m):
min_elem = max(a)
max_elem = min(b)
ans = []
for i in range(min_elem, max_elem+1):
j = 0
while j < n and i%a[j] == 0:
j += 1
if j == n:
if i%a[j-1] == 0:
k = 0
while k < m and b[k]%i == 0:
k += 1
if k == m:
if b[k-1]%i == 0:
ans.append(i)
return (ans)
n,m = map(int, input().split())
a = [int(element) for element in input().split()]
b = [int(element) for element in input().split()]
print (func(a,b,n,m)) | def func(a, b, n, m):
min_elem = max(a)
max_elem = min(b)
ans = []
for i in range(min_elem, max_elem + 1):
j = 0
while j < n and i % a[j] == 0:
j += 1
if j == n:
if i % a[j - 1] == 0:
k = 0
while k < m and b[k] % i == 0:
k += 1
if k == m:
if b[k - 1] % i == 0:
ans.append(i)
return ans
(n, m) = map(int, input().split())
a = [int(element) for element in input().split()]
b = [int(element) for element in input().split()]
print(func(a, b, n, m)) |
# -*- coding: utf-8 -*-
"""
exceptions.py
Exception class for pytineye.
Copyright (c) 2021 TinEye. All rights reserved worldwide.
"""
class TinEyeAPIError(Exception):
"""Base exception."""
def __init__(self, code, message):
self.code = code
self.message = message
def __repr__(self):
return "<pytineye.APIError(%i, '%s')>" % (self.code, self.message)
def __str__(self):
return """APIError:
code = %s
message = %s""" % (
self.code,
self.message,
)
class APIRequestError(Exception):
"""Base exception for APIRequest."""
pass
| """
exceptions.py
Exception class for pytineye.
Copyright (c) 2021 TinEye. All rights reserved worldwide.
"""
class Tineyeapierror(Exception):
"""Base exception."""
def __init__(self, code, message):
self.code = code
self.message = message
def __repr__(self):
return "<pytineye.APIError(%i, '%s')>" % (self.code, self.message)
def __str__(self):
return 'APIError:\n code = %s\n message = %s' % (self.code, self.message)
class Apirequesterror(Exception):
"""Base exception for APIRequest."""
pass |
f = open('input.txt')
triangles = [map(int,l.split()) for l in f.readlines()]
possible = 0
for t in triangles:
t.sort()
if t[0] + t[1] > t[2]:
possible += 1
print(possible)
| f = open('input.txt')
triangles = [map(int, l.split()) for l in f.readlines()]
possible = 0
for t in triangles:
t.sort()
if t[0] + t[1] > t[2]:
possible += 1
print(possible) |
# -*- coding: utf-8 -*-
def import_object(name):
""" from tornado.utils.import_object """
if name.count('.') == 0:
return __import__(name, None, None)
parts = name.split('.')
obj = __import__('.'.join(parts[:-1]), None, None, [parts[-1]], 0)
try:
return getattr(obj, parts[-1])
except AttributeError:
raise ImportError("No module named %s" % parts[-1])
| def import_object(name):
""" from tornado.utils.import_object """
if name.count('.') == 0:
return __import__(name, None, None)
parts = name.split('.')
obj = __import__('.'.join(parts[:-1]), None, None, [parts[-1]], 0)
try:
return getattr(obj, parts[-1])
except AttributeError:
raise import_error('No module named %s' % parts[-1]) |
"""
One Away: There are three types of edits that can be performed on strings: insert a character,
remove a character, or replace a character. Given two strings, write a function to check if they are
one edit (or zero edits) away.
EXAMPLE
pale, ple -> true
pales. pale -> true
pale. bale -> true
pale. bake -> false
Hints: #23, #97, #130
"""
def one_away(string1, string2):
count = 0
remaining_index = 0
place_holder = dict()
for letter1, letter2 in zip(string1, string2):
remaining_index += 1
place_holder[letter1] = True
place_holder[letter2] = not place_holder[letter1]
if len(string1) > len(string2):
for remaining_letter in string1[remaining_index:]:
place_holder[remaining_letter] = True
elif(len(string1) > len(string2)):
for remaining_letter in string2[remaining_index:]:
place_holder[remaining_letter] = True
for truthy in place_holder.values():
if truthy:
count += 1
return True if count <= 1 else False
if __name__ == "__main__":
word1, word2 = "pale", "bake"#"pale", "bale"#"pales", "pale" #"pale", "ple"
print(one_away(word1, word2))
| """
One Away: There are three types of edits that can be performed on strings: insert a character,
remove a character, or replace a character. Given two strings, write a function to check if they are
one edit (or zero edits) away.
EXAMPLE
pale, ple -> true
pales. pale -> true
pale. bale -> true
pale. bake -> false
Hints: #23, #97, #130
"""
def one_away(string1, string2):
count = 0
remaining_index = 0
place_holder = dict()
for (letter1, letter2) in zip(string1, string2):
remaining_index += 1
place_holder[letter1] = True
place_holder[letter2] = not place_holder[letter1]
if len(string1) > len(string2):
for remaining_letter in string1[remaining_index:]:
place_holder[remaining_letter] = True
elif len(string1) > len(string2):
for remaining_letter in string2[remaining_index:]:
place_holder[remaining_letter] = True
for truthy in place_holder.values():
if truthy:
count += 1
return True if count <= 1 else False
if __name__ == '__main__':
(word1, word2) = ('pale', 'bake')
print(one_away(word1, word2)) |
"""Majordomo Protocol definitions"""
# This is the version of MDP/Client we implement
C_CLIENT = "MDPC01"
# This is the version of MDP/Worker we implement
W_WORKER = "MDPW01"
# MDP/Server commands, as strings
W_READY = "\001"
W_REQUEST = "\002"
W_REPLY = "\003"
W_HEARTBEAT = "\004"
W_DISCONNECT = "\005"
commands = [None, "READY", "REQUEST", "REPLY", "HEARTBEAT", "DISCONNECT"]
| """Majordomo Protocol definitions"""
c_client = 'MDPC01'
w_worker = 'MDPW01'
w_ready = '\x01'
w_request = '\x02'
w_reply = '\x03'
w_heartbeat = '\x04'
w_disconnect = '\x05'
commands = [None, 'READY', 'REQUEST', 'REPLY', 'HEARTBEAT', 'DISCONNECT'] |
# ------------------------------
# 337. House Robber III
#
# Description:
# The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Besides the root, each house has one and only one parent house. After a tour, the smart thief realized that "all houses in this place forms a binary tree". It will automatically contact the police if two directly-linked houses were broken into on the same night.
# Determine the maximum amount of money the thief can rob tonight without alerting the police.
#
# Example 1:
# Input: [3,2,3,null,3,null,1]
# 3
# / \
# 2 3
# \ \
# 3 1
# Output: 7
# Explanation: Maximum amount of money the thief can rob = 3 + 3 + 1 = 7.
#
# Example 2:
# Input: [3,4,5,1,3,null,1]
# 3
# / \
# 4 5
# / \ \
# 1 3 1
# Output: 9
# Explanation: Maximum amount of money the thief can rob = 4 + 5 = 9.
#
# Version: 1.0
# 12/18/18 by Jianfa
# ------------------------------
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def rob(self, root):
"""
:type root: TreeNode
:rtype: int
"""
res = self.robSub(root)
return max(res)
def robSub(self, root):
if not root:
return [0, 0]
left = self.robSub(root.left)
right = self.robSub(root.right)
res = [0, 0] # First element is maximum value when root is not robbed, second element is maximum value when root is robbed
res[0] = max(left) + max(right) # Maximum value from left plus maximum value from right
res[1] = left[0] + right[0] + root.val # Root is robbed, left and right child cannot be robbed
return res
# Used for testing
if __name__ == "__main__":
test = Solution()
# ------------------------------
# Summary:
# Great idea from https://leetcode.com/problems/house-robber-iii/discuss/79330/Step-by-step-tackling-of-the-problem | class Solution:
def rob(self, root):
"""
:type root: TreeNode
:rtype: int
"""
res = self.robSub(root)
return max(res)
def rob_sub(self, root):
if not root:
return [0, 0]
left = self.robSub(root.left)
right = self.robSub(root.right)
res = [0, 0]
res[0] = max(left) + max(right)
res[1] = left[0] + right[0] + root.val
return res
if __name__ == '__main__':
test = solution() |
#!/usr/bin/python
dist = int(input())
v_r = int(input())
v_c = int(input())
time_r = dist / v_r
time_c = 50 / v_c
if time_c > time_r:
print("Meep Meep")
else:
print("Yum")
| dist = int(input())
v_r = int(input())
v_c = int(input())
time_r = dist / v_r
time_c = 50 / v_c
if time_c > time_r:
print('Meep Meep')
else:
print('Yum') |
# Problem: Remove x from string
def removeX(string):
if len(string)==0:
return string
if string[0]=="x":
return removeX(string[1:])
else:
return string[0]+removeX(string[1:])
# Main
string = input()
print(removeX(string))
| def remove_x(string):
if len(string) == 0:
return string
if string[0] == 'x':
return remove_x(string[1:])
else:
return string[0] + remove_x(string[1:])
string = input()
print(remove_x(string)) |
def add(num1,num2):
c=num1+num2
return c
a=int(input("ENTER num1 : "))
b=int(input("ENTER num1 : "))
print(add(a,b))
| def add(num1, num2):
c = num1 + num2
return c
a = int(input('ENTER num1 : '))
b = int(input('ENTER num1 : '))
print(add(a, b)) |
# set per your own configs
prefixs = [
'011XXXXX.',
]
prefixs_mid_process = []
prefixs_post_process = []
# process ASTERISK-like regex pattern for a prefix
# we are not expanding 'X' or '.'
# this is because we don't support length based prefix matching
# instead we utilize dr_rules longest-to-shortest prefix matching
def process_prefix(prefix):
for i in range(len(prefix)):
if prefix[i] == 'N':
tmp = list(prefix)
for j in range(2,9+1):
tmp[i] = str(j)
prefixs_mid_process.append(''.join(tmp))
return None
elif prefix[i] == 'Z':
tmp = list(prefix)
for j in range(1,9+1):
tmp[i] = str(j)
prefixs_mid_process.append(''.join(tmp))
return None
elif prefix[i] == '[':
tmp = list(prefix[i+1:])
for j in range(len(tmp)):
if tmp[j] == ']':
break
prefixs_mid_process.append(prefix[:i] + tmp[j] + prefix[prefix.index(']')+1:])
return None
prefixs_post_process.append(prefix)
return None
# first run
for p in prefixs:
process_prefix(p)
# recursive runs
while(len(prefixs_mid_process) != 0):
for i in reversed(range(len(prefixs_mid_process))):
if not any((c in set('NZ[')) for c in prefixs_mid_process[i]):
prefixs_post_process.append(prefixs_mid_process.pop(i))
else:
process_prefix(prefixs_mid_process[i])
prefixs_mid_process.pop(i)
# print them to console
for p in prefixs_post_process:
print("'" + p.replace('X','').replace('.','') + "',")
| prefixs = ['011XXXXX.']
prefixs_mid_process = []
prefixs_post_process = []
def process_prefix(prefix):
for i in range(len(prefix)):
if prefix[i] == 'N':
tmp = list(prefix)
for j in range(2, 9 + 1):
tmp[i] = str(j)
prefixs_mid_process.append(''.join(tmp))
return None
elif prefix[i] == 'Z':
tmp = list(prefix)
for j in range(1, 9 + 1):
tmp[i] = str(j)
prefixs_mid_process.append(''.join(tmp))
return None
elif prefix[i] == '[':
tmp = list(prefix[i + 1:])
for j in range(len(tmp)):
if tmp[j] == ']':
break
prefixs_mid_process.append(prefix[:i] + tmp[j] + prefix[prefix.index(']') + 1:])
return None
prefixs_post_process.append(prefix)
return None
for p in prefixs:
process_prefix(p)
while len(prefixs_mid_process) != 0:
for i in reversed(range(len(prefixs_mid_process))):
if not any((c in set('NZ[') for c in prefixs_mid_process[i])):
prefixs_post_process.append(prefixs_mid_process.pop(i))
else:
process_prefix(prefixs_mid_process[i])
prefixs_mid_process.pop(i)
for p in prefixs_post_process:
print("'" + p.replace('X', '').replace('.', '') + "',") |
"""
Bicycle Object.
"""
#Class Header
class Bicycle :
"""
Initializer that creates three fields
"""
def __init__(self, gear_in, speed_in, color_in) :
self.gear = gear_in
self.speed = speed_in
self.color = color_in
#ACCESSORS
"""
Accessor function for the gear field
"""
def getgear(self) :
return self.gear
"""
Accessor function for the speed field
"""
def getspeed(self) :
return self.speed
"""
Accessor function for the color field
"""
def getcolor(self) :
return self.color
#MUTATORS
"""
Mutator function for the gear field
"""
def setgear(self, gear_in) :
if not isinstance(gear_in, int) :
raise TypeError("Value not an int")
if gear_in >= 1 and gear_in <= 10 :
self.gear = gear_in
else :
raise ValueError("Value not in 1-10")
"""
Mutator function for the speed field
"""
def setspeed(self, speed_in) :
self.speed = speed_in
"""
Mutator function for the color field
"""
def setcolor(self, color_in) :
self.color = color_in
#OTHER FUNCTIONS
"""
Returns a copy/clone of this class
"""
def copy(self) :
return Bicycle(self.gear, self.speed, self.color)
"""
String representation of this instance
"""
def __str__(self) :
toString = "Bicycle Information: \n"
toString += "Current Gear: " + str(self.gear) + "\n"
toString += "Current Speed: " + str(self.speed) + "\n"
toString += "Color: " + self.color
return toString
| """
Bicycle Object.
"""
class Bicycle:
"""
Initializer that creates three fields
"""
def __init__(self, gear_in, speed_in, color_in):
self.gear = gear_in
self.speed = speed_in
self.color = color_in
'\n Accessor function for the gear field\n '
def getgear(self):
return self.gear
'\n Accessor function for the speed field\n '
def getspeed(self):
return self.speed
'\n Accessor function for the color field\n '
def getcolor(self):
return self.color
'\n Mutator function for the gear field\n '
def setgear(self, gear_in):
if not isinstance(gear_in, int):
raise type_error('Value not an int')
if gear_in >= 1 and gear_in <= 10:
self.gear = gear_in
else:
raise value_error('Value not in 1-10')
'\n Mutator function for the speed field\n '
def setspeed(self, speed_in):
self.speed = speed_in
'\n Mutator function for the color field\n '
def setcolor(self, color_in):
self.color = color_in
'\n Returns a copy/clone of this class\n '
def copy(self):
return bicycle(self.gear, self.speed, self.color)
'\n String representation of this instance\n '
def __str__(self):
to_string = 'Bicycle Information: \n'
to_string += 'Current Gear: ' + str(self.gear) + '\n'
to_string += 'Current Speed: ' + str(self.speed) + '\n'
to_string += 'Color: ' + self.color
return toString |
#~ def product(x,y):
#~ return x*y
#~ op = product(2,3)
#~ print(op)
#~ def product(x,y):
#~ print(x*y)
#~ op = product(2,3)
#~ print(op)
def product(x,y):
print("i am before return")
return x*y
print("i am after return")
product(2,3) | def product(x, y):
print('i am before return')
return x * y
print('i am after return')
product(2, 3) |
class Solution:
def threeSum(self, nums: List[int]) -> List[List[int]]:
# Solution: 2 pointer solution -> O(n*n)
nums.sort()
res = []
for i in range(len(nums)-2):
if i > 0 and nums[i] == nums[i-1]:
continue
left, right = i+1, len(nums)-1
while left < right:
sum_ = nums[i] + nums[left] + nums[right]
if sum_ > 0:
right -= 1
elif sum_ < 0:
left += 1
else:
res += [[nums[i], nums[left], nums[right]]]
while left < right and nums[left] == nums[left+1]:
left += 1
while left < right and nums[right] == nums[right-1]:
right -= 1
left += 1
right -= 1
return res | class Solution:
def three_sum(self, nums: List[int]) -> List[List[int]]:
nums.sort()
res = []
for i in range(len(nums) - 2):
if i > 0 and nums[i] == nums[i - 1]:
continue
(left, right) = (i + 1, len(nums) - 1)
while left < right:
sum_ = nums[i] + nums[left] + nums[right]
if sum_ > 0:
right -= 1
elif sum_ < 0:
left += 1
else:
res += [[nums[i], nums[left], nums[right]]]
while left < right and nums[left] == nums[left + 1]:
left += 1
while left < right and nums[right] == nums[right - 1]:
right -= 1
left += 1
right -= 1
return res |
l = int(input())
h = int(input())
t = str(input())
alphabet = [str(input()) for i in range(h)]
for i in range(h):
for char in t.lower():
if char >= 'a' and char <= 'z':
x = ord(char) - ord('a')
else:
x = ord('z') - ord('a') + 1
print(alphabet[i][x*l : x*l+l], end='') # print from X*L, to X*L+L
print('') | l = int(input())
h = int(input())
t = str(input())
alphabet = [str(input()) for i in range(h)]
for i in range(h):
for char in t.lower():
if char >= 'a' and char <= 'z':
x = ord(char) - ord('a')
else:
x = ord('z') - ord('a') + 1
print(alphabet[i][x * l:x * l + l], end='')
print('') |
def fahrenheit_converter(C):
fahrenheit = C * 9 / 5 + 32
print(str(fahrenheit) + 'F')
c2f = fahrenheit_converter(35)
print(c2f)
| def fahrenheit_converter(C):
fahrenheit = C * 9 / 5 + 32
print(str(fahrenheit) + 'F')
c2f = fahrenheit_converter(35)
print(c2f) |
#!/usr/bin python
# -*- coding: utf-8 -*-
"""
Given a string S, find the longest palindromic substring in S.
You may assume that the maximum length of S is 1000, and there
exists one unique longest palindromic substring.
https://oj.leetcode.com/problems/longest-palindromic-substring/
"""
class Solution:
# @return a string
def longestPalindrome(self, s):
# TODO algorithm optimization, test case time out
max_length = 0
longest_subs = ''
s_length = len(s)
i = 0
while i < s_length:
length_a, subs_a = self.centerMe(s, s_length, i)
length_b, subs_b = self.laterMe(s, s_length, i)
if length_a > length_b:
cur_len = length_a
cur_subs = subs_a
else:
cur_len = length_b
cur_subs = subs_b
if cur_len > max_length:
max_length = cur_len
longest_subs = cur_subs
else:
pass
i += 1
return longest_subs
@classmethod
def centerMe(self, s, s_length, i):
radias = 0
j = 1
while (i - j >= 0) and (i + j < s_length) and (s[i-j] == s[i+j]):
radias += 1
j += 1
return radias*2+1, s[i-radias : i+radias+1]
@classmethod
def laterMe(self, s, s_length, i):
radias = 0
j = 0
while (i - j - 1 >= 0) and (i + j < s_length) and (s[i-j-1] == s[i+j]):
radias += 1
j += 1
return radias*2, s[i-radias : i+radias]
if __name__ == '__main__':
test_case = [
'hello',
'asdfaasddsa',
'difhhfertyuytre'
]
for test_s in test_case:
subs = Solution().longestPalindrome(test_s)
print(subs)
| """
Given a string S, find the longest palindromic substring in S.
You may assume that the maximum length of S is 1000, and there
exists one unique longest palindromic substring.
https://oj.leetcode.com/problems/longest-palindromic-substring/
"""
class Solution:
def longest_palindrome(self, s):
max_length = 0
longest_subs = ''
s_length = len(s)
i = 0
while i < s_length:
(length_a, subs_a) = self.centerMe(s, s_length, i)
(length_b, subs_b) = self.laterMe(s, s_length, i)
if length_a > length_b:
cur_len = length_a
cur_subs = subs_a
else:
cur_len = length_b
cur_subs = subs_b
if cur_len > max_length:
max_length = cur_len
longest_subs = cur_subs
else:
pass
i += 1
return longest_subs
@classmethod
def center_me(self, s, s_length, i):
radias = 0
j = 1
while i - j >= 0 and i + j < s_length and (s[i - j] == s[i + j]):
radias += 1
j += 1
return (radias * 2 + 1, s[i - radias:i + radias + 1])
@classmethod
def later_me(self, s, s_length, i):
radias = 0
j = 0
while i - j - 1 >= 0 and i + j < s_length and (s[i - j - 1] == s[i + j]):
radias += 1
j += 1
return (radias * 2, s[i - radias:i + radias])
if __name__ == '__main__':
test_case = ['hello', 'asdfaasddsa', 'difhhfertyuytre']
for test_s in test_case:
subs = solution().longestPalindrome(test_s)
print(subs) |
n = int(input())
tr = []
for _ in range(n):
tr.append(int(input()))
front = rear = 1
front_max = tr[0]
for i in range(1,len(tr)):
if front_max < tr[i]:
front += 1
front_max = tr[i]
tr.reverse()
rear_max = tr[0]
for i in range(1,len(tr)):
if rear_max < tr[i]:
rear += 1
rear_max = tr[i]
print(front)
print(rear) | n = int(input())
tr = []
for _ in range(n):
tr.append(int(input()))
front = rear = 1
front_max = tr[0]
for i in range(1, len(tr)):
if front_max < tr[i]:
front += 1
front_max = tr[i]
tr.reverse()
rear_max = tr[0]
for i in range(1, len(tr)):
if rear_max < tr[i]:
rear += 1
rear_max = tr[i]
print(front)
print(rear) |
f_name = '../results/result-1__rf_log.txt'
f = open(f_name,"r")
line_ext = list()
for line in f:
if 'Kappa : ' in line:
kappa = 'KAPPA\t'+line.strip().split(' : ')[1]
if 'Accuracy : ' in line and 'Balanced' not in line:
accu = 'ACCURACY\t'+line.strip().split(' : ')[1]
if 'Sensitivity : ' in line:
sens = 'SENSITIVITY\t'+line.strip().split(' : ')[1]
if 'Specificity : ' in line:
spec = 'SPECIFICITY\t'+line.strip().split(' : ')[1]
if 'error rate:' in line:
err = 'ERROR\t'+str(float(line.strip().split(': ')[1][:-1])/100.0)
if '[1]' in line and '[[1]]' not in line and 'Done' not in line:
auc = 'AUC\t'+line.strip().replace('[1] ','')
f.close()
line_ext.append(kappa)
line_ext.append(accu)
line_ext.append(spec)
line_ext.append(sens)
line_ext.append(err)
line_ext.append(auc)
f_out = open("../results/result-1__rf_performance.txt","w")
f_out.write('\n'.join(line_ext))
f_out.close()
| f_name = '../results/result-1__rf_log.txt'
f = open(f_name, 'r')
line_ext = list()
for line in f:
if 'Kappa : ' in line:
kappa = 'KAPPA\t' + line.strip().split(' : ')[1]
if 'Accuracy : ' in line and 'Balanced' not in line:
accu = 'ACCURACY\t' + line.strip().split(' : ')[1]
if 'Sensitivity : ' in line:
sens = 'SENSITIVITY\t' + line.strip().split(' : ')[1]
if 'Specificity : ' in line:
spec = 'SPECIFICITY\t' + line.strip().split(' : ')[1]
if 'error rate:' in line:
err = 'ERROR\t' + str(float(line.strip().split(': ')[1][:-1]) / 100.0)
if '[1]' in line and '[[1]]' not in line and ('Done' not in line):
auc = 'AUC\t' + line.strip().replace('[1] ', '')
f.close()
line_ext.append(kappa)
line_ext.append(accu)
line_ext.append(spec)
line_ext.append(sens)
line_ext.append(err)
line_ext.append(auc)
f_out = open('../results/result-1__rf_performance.txt', 'w')
f_out.write('\n'.join(line_ext))
f_out.close() |
### stuff I don't need to make the cards
def drawSquareGrid(dwg, widthInMillimeters):
hLineGroup = dwg.add(dwg.g(id='hlines', stroke='green'))
y = 0
while y < 100:
hLineGroup.add(dwg.add(dwg.line(
start = (0*mm, y*mm),
end = (150*mm, y*mm))))
y += widthInMillimeters
vLineGroup = dwg.add(dwg.g(id='vlines', stroke='blue'))
x = 0
while x < 150:
vLineGroup.add(dwg.add(dwg.line(
start = (x*mm, 0*mm),
end = (x*mm, 100*mm))))
x += widthInMillimeters
def drawCenteredSquare(dwg, widthInMillimeters):
sqgrp = dwg.add(dwg.g(id='sqgrp', stroke='red'))
hw = widthInMillimeters / 2
sqgrp.add(dwg.add(dwg.line(
start = (-hw * mm, -hw * mm),
end = (hw * mm, -hw * mm))))
sqgrp.add(dwg.add(dwg.line(
start = (-hw * mm, hw * mm),
end = (hw * mm, hw * mm))))
sqgrp.add(dwg.add(dwg.line(
start = (-hw * mm, -hw * mm),
end = (-hw * mm, hw * mm))))
sqgrp.add(dwg.add(dwg.line(
start = (hw * mm, -hw * mm),
end = (hw * mm, hw * mm))))
def drawSegment(dwg, seg, strokeColor = 'black'):
e0 = seg.endpoints[0]
e1 = seg.endpoints[1]
e0x = e0.x()
e0y = e0.y()
e1x = e1.x()
e1y = e1.y()
print ("drawing segment from (%f %f) to (%f %f)" % (e0x, e0y, e1x, e1y))
#dwg.add(dwg.line(
# start = (e0x * mm, e0y * mm),
# end = (e1x * mm, e1y * mm),
# stroke = strokeColor
#))
dwg.append(draw.Lines(e0x, e0y,
e1x, e1y,
close = False,
stroke = strokeColor))
def drawPolyline(dwg, vecList, strokeColor = 'black'):
p = draw.Path(stroke = strokeColor, fill='none')
p.M(vecList[0][0], vecList[0][1])
for v in vecList[1:]:
p.L(v[0], v[1])
dwg.append(p)
def testCenteredTri(dwg, w, mat):
v0 = m.Vector2(w, 0)
v1 = m.Vector2(w * math.cos(2*math.pi / 3.0), w * math.sin(2*math.pi / 3.0))
v2 = m.Vector2(w * math.cos(2*math.pi / 3.0), -w * math.sin(2*math.pi / 3.0))
tv0 = mat.mulVec2(v0)
tv1 = mat.mulVec2(v1)
tv2 = mat.mulVec2(v2)
s0 = m.LineSegment(tv0, tv1)
s1 = m.LineSegment(tv1, tv2)
s2 = m.LineSegment(tv2, tv0)
drawSegment(dwg, s0)
drawSegment(dwg, s1)
drawSegment(dwg, s2)
#dwg = svgwrite.Drawing('test.svg', size=(u'150mm', u'100mm'), profile='tiny')
dwg = draw.Drawing(1500, 1000)
dwg.setRenderSize('150mm', '100mm')
#link = dwg.add(dwg.a("http://link.to/internet"))
#square = dwg.add(dwg.rect((0, 0), (1, 1)))
#dwg.add(dwg.line((0, 0), (10, 0), stroke=svgwrite.rgb(10, 10, 16, '%')))
#dwg.add(dwg.text('Test', insert=(75, 100)))
print("drawing grid of width", 10)
#drawSquareGrid(dwg, 10)
#drawCenteredSquare(dwg, 25)
#testCenteredTri(dwg, 20, m.Matrix3())
xlate = m.makeTranslationMat3(60, 60)
print("trans mat", xlate)
#testCenteredTri(dwg, 20, xlate)
rot = m.makeRotationMat3Radians(math.radians(10))
xlateAndRot = xlate.mulMat3(rot)
#testCenteredTri(dwg, 20, xlateAndRot)
def drawFlake(dwg, sf, mat):
paths = sf.generatePaths()
for i in range(6):
moreRotMat = m.makeRotationMat3Radians(math.radians(60) * i)
rm = mat.mulMat3(moreRotMat)
vecX = m.Vector2(1, 0)
vecY = m.Vector2(0.5, math.cos(math.radians(60)))
fVecY = m.Vector2(0.5, -math.cos(math.radians(60)))
for path in paths:
verts = []
fverts = []
for pt in path:
xi, yi = pt
p = vecX.mulScalar(xi).addVec2(vecY.mulScalar(yi))
pTrans = rm.mulVec2(p)
verts.append((pTrans.x(), pTrans.y()))
p = vecX.mulScalar(xi).addVec2(fVecY.mulScalar(yi))
pTrans = rm.mulVec2(p)
fverts.append((pTrans.x(), pTrans.y()))
drawPolyline(dwg, verts)
drawPolyline(dwg, fverts)
points = pickPointsInBox(200, 200, 1300, 800, 10, 200)
for p in points:
rx, ry = p
ra = random.randrange(0, 60)
xlate = m.makeTranslationMat3(rx, ry)
rot = m.makeRotationMat3Radians(math.radians(ra))
xlateAndRot = xlate.mulMat3(rot)
scale = m.makeScaleUniform(10.0)
xrs = xlateAndRot.mulMat3(scale)
sf = snowflake.SnowflakeGenerator(random.randrange(10, 15))
sf.generate()
drawFlake(dwg, sf, xrs)
| def draw_square_grid(dwg, widthInMillimeters):
h_line_group = dwg.add(dwg.g(id='hlines', stroke='green'))
y = 0
while y < 100:
hLineGroup.add(dwg.add(dwg.line(start=(0 * mm, y * mm), end=(150 * mm, y * mm))))
y += widthInMillimeters
v_line_group = dwg.add(dwg.g(id='vlines', stroke='blue'))
x = 0
while x < 150:
vLineGroup.add(dwg.add(dwg.line(start=(x * mm, 0 * mm), end=(x * mm, 100 * mm))))
x += widthInMillimeters
def draw_centered_square(dwg, widthInMillimeters):
sqgrp = dwg.add(dwg.g(id='sqgrp', stroke='red'))
hw = widthInMillimeters / 2
sqgrp.add(dwg.add(dwg.line(start=(-hw * mm, -hw * mm), end=(hw * mm, -hw * mm))))
sqgrp.add(dwg.add(dwg.line(start=(-hw * mm, hw * mm), end=(hw * mm, hw * mm))))
sqgrp.add(dwg.add(dwg.line(start=(-hw * mm, -hw * mm), end=(-hw * mm, hw * mm))))
sqgrp.add(dwg.add(dwg.line(start=(hw * mm, -hw * mm), end=(hw * mm, hw * mm))))
def draw_segment(dwg, seg, strokeColor='black'):
e0 = seg.endpoints[0]
e1 = seg.endpoints[1]
e0x = e0.x()
e0y = e0.y()
e1x = e1.x()
e1y = e1.y()
print('drawing segment from (%f %f) to (%f %f)' % (e0x, e0y, e1x, e1y))
dwg.append(draw.Lines(e0x, e0y, e1x, e1y, close=False, stroke=strokeColor))
def draw_polyline(dwg, vecList, strokeColor='black'):
p = draw.Path(stroke=strokeColor, fill='none')
p.M(vecList[0][0], vecList[0][1])
for v in vecList[1:]:
p.L(v[0], v[1])
dwg.append(p)
def test_centered_tri(dwg, w, mat):
v0 = m.Vector2(w, 0)
v1 = m.Vector2(w * math.cos(2 * math.pi / 3.0), w * math.sin(2 * math.pi / 3.0))
v2 = m.Vector2(w * math.cos(2 * math.pi / 3.0), -w * math.sin(2 * math.pi / 3.0))
tv0 = mat.mulVec2(v0)
tv1 = mat.mulVec2(v1)
tv2 = mat.mulVec2(v2)
s0 = m.LineSegment(tv0, tv1)
s1 = m.LineSegment(tv1, tv2)
s2 = m.LineSegment(tv2, tv0)
draw_segment(dwg, s0)
draw_segment(dwg, s1)
draw_segment(dwg, s2)
dwg = draw.Drawing(1500, 1000)
dwg.setRenderSize('150mm', '100mm')
print('drawing grid of width', 10)
xlate = m.makeTranslationMat3(60, 60)
print('trans mat', xlate)
rot = m.makeRotationMat3Radians(math.radians(10))
xlate_and_rot = xlate.mulMat3(rot)
def draw_flake(dwg, sf, mat):
paths = sf.generatePaths()
for i in range(6):
more_rot_mat = m.makeRotationMat3Radians(math.radians(60) * i)
rm = mat.mulMat3(moreRotMat)
vec_x = m.Vector2(1, 0)
vec_y = m.Vector2(0.5, math.cos(math.radians(60)))
f_vec_y = m.Vector2(0.5, -math.cos(math.radians(60)))
for path in paths:
verts = []
fverts = []
for pt in path:
(xi, yi) = pt
p = vecX.mulScalar(xi).addVec2(vecY.mulScalar(yi))
p_trans = rm.mulVec2(p)
verts.append((pTrans.x(), pTrans.y()))
p = vecX.mulScalar(xi).addVec2(fVecY.mulScalar(yi))
p_trans = rm.mulVec2(p)
fverts.append((pTrans.x(), pTrans.y()))
draw_polyline(dwg, verts)
draw_polyline(dwg, fverts)
points = pick_points_in_box(200, 200, 1300, 800, 10, 200)
for p in points:
(rx, ry) = p
ra = random.randrange(0, 60)
xlate = m.makeTranslationMat3(rx, ry)
rot = m.makeRotationMat3Radians(math.radians(ra))
xlate_and_rot = xlate.mulMat3(rot)
scale = m.makeScaleUniform(10.0)
xrs = xlateAndRot.mulMat3(scale)
sf = snowflake.SnowflakeGenerator(random.randrange(10, 15))
sf.generate()
draw_flake(dwg, sf, xrs) |
T = int(input())
for _ in range(T):
n, k = map(int, input().split())
print((n ** k - 1) % 9 + 1) | t = int(input())
for _ in range(T):
(n, k) = map(int, input().split())
print((n ** k - 1) % 9 + 1) |
class maxheap:
'''
implements max heap:
'''
def __init__(self, maxsize):
'''
initialize an empty max heap with a max size.
'''
self.size = 0
self.maxsize = maxsize
self.Heap = [0] * (self.maxsize + 1)
self.root = 1
def parent(self, pos):
return pos // 2
def leftChild(self, pos):
return 2*pos
def rightChild(self, pos):
return 2*pos + 1
def isLeaf(self,pos):
if pos> (self.size//2) and pos <= self.size:
return True
return False
def swap(self, pos1,pos2):
self.Heap[pos1], self.Heap[pos2] = (self.Heap[pos2],self.Heap[pos1])
def insert(self, element):
'''
inserting child into a max heap and then maintaining the max heap.
'''
# if exceeds max size, don't insert. else, do insert.
if self.size>= self.maxsize:
return
self.size = self.size + 1
self.Heap[self.size] = element
# note down index of appended element.
idx_element = self.size
# while appended element is bigger than its parents, swap with parents.
while( self.Heap[idx_element] > self.Heap[self.parent(idx_element)]):
self.swap(idx_element, self.parent(idx_element))
idx_element = self.parent(idx_element)
def maxHeapify(self, pos):
'''
Function to maxheapify node at position "pos".
'''
leftChild = self.Heap[self.leftChild(pos)]
rightChild = self.Heap[self.rightChild(pos)]
# if node is a nonleaf and is smaller than its children, it must exchange spots with one of its children.
if not self.isLeaf(pos):
if(self.Heap[pos] < leftChild or self.Heap[pos] < rightChild):
# the node must exchange spots with the biggest child. if left > right, exchange with left.
if(leftChild > rightChild):
self.swap(pos, self.leftChild(pos))
self.maxHeapify(self.leftChild(pos))
#else , exchange with right.
else:
self.swap(pos, self.rightChild(pos))
self.maxHeapify(self.rightChild(pos))
def buildMaxHeap(self, array):
'''
-Initialize with unsorted array.
-Overwrite current data with array being inputted.
'''
# clear out nodes and reinitialize variables
self.size = len(array)
self.Heap = [0] * (self.maxsize + 1)
# set elements inside of heap, unsorted.
for i in range(1, self.size + 1):
self.Heap[i] = array[i-1]
# create a max heap.
for i in range(self.size//2, 0, -1):
self.maxHeapify(i)
def Print(self):
'''
Function to print the contents of the heap
'''
for i in range(1, (self.size // 2) + 1):
print(" PARENT : " + str(self.Heap[i]) +
" LEFT CHILD : " + str(self.Heap[2 * i]) +
" RIGHT CHILD : " + str(self.Heap[2 * i + 1]))
def main ():
maxheap1= maxheap(100)
list1 = [6,1,5,3,7,4,9,8,10]
maxheap1.buildMaxHeap(list1)
maxheap1.Print()
if __name__ == "__main__":
main()
| class Maxheap:
"""
implements max heap:
"""
def __init__(self, maxsize):
"""
initialize an empty max heap with a max size.
"""
self.size = 0
self.maxsize = maxsize
self.Heap = [0] * (self.maxsize + 1)
self.root = 1
def parent(self, pos):
return pos // 2
def left_child(self, pos):
return 2 * pos
def right_child(self, pos):
return 2 * pos + 1
def is_leaf(self, pos):
if pos > self.size // 2 and pos <= self.size:
return True
return False
def swap(self, pos1, pos2):
(self.Heap[pos1], self.Heap[pos2]) = (self.Heap[pos2], self.Heap[pos1])
def insert(self, element):
"""
inserting child into a max heap and then maintaining the max heap.
"""
if self.size >= self.maxsize:
return
self.size = self.size + 1
self.Heap[self.size] = element
idx_element = self.size
while self.Heap[idx_element] > self.Heap[self.parent(idx_element)]:
self.swap(idx_element, self.parent(idx_element))
idx_element = self.parent(idx_element)
def max_heapify(self, pos):
"""
Function to maxheapify node at position "pos".
"""
left_child = self.Heap[self.leftChild(pos)]
right_child = self.Heap[self.rightChild(pos)]
if not self.isLeaf(pos):
if self.Heap[pos] < leftChild or self.Heap[pos] < rightChild:
if leftChild > rightChild:
self.swap(pos, self.leftChild(pos))
self.maxHeapify(self.leftChild(pos))
else:
self.swap(pos, self.rightChild(pos))
self.maxHeapify(self.rightChild(pos))
def build_max_heap(self, array):
"""
-Initialize with unsorted array.
-Overwrite current data with array being inputted.
"""
self.size = len(array)
self.Heap = [0] * (self.maxsize + 1)
for i in range(1, self.size + 1):
self.Heap[i] = array[i - 1]
for i in range(self.size // 2, 0, -1):
self.maxHeapify(i)
def print(self):
"""
Function to print the contents of the heap
"""
for i in range(1, self.size // 2 + 1):
print(' PARENT : ' + str(self.Heap[i]) + ' LEFT CHILD : ' + str(self.Heap[2 * i]) + ' RIGHT CHILD : ' + str(self.Heap[2 * i + 1]))
def main():
maxheap1 = maxheap(100)
list1 = [6, 1, 5, 3, 7, 4, 9, 8, 10]
maxheap1.buildMaxHeap(list1)
maxheap1.Print()
if __name__ == '__main__':
main() |
def closure(graph):
n = len(graph)
reachable = [[0 for _ in range(n)] for _ in range(n)]
for i, v in enumerate(graph):
for neighbor in v:
reachable[i][neighbor] = 1
for k in range(n):
for i in range(n):
for j in range(n):
reachable[i][j] |= (reachable[i][k] and reachable[k][j])
return reachable | def closure(graph):
n = len(graph)
reachable = [[0 for _ in range(n)] for _ in range(n)]
for (i, v) in enumerate(graph):
for neighbor in v:
reachable[i][neighbor] = 1
for k in range(n):
for i in range(n):
for j in range(n):
reachable[i][j] |= reachable[i][k] and reachable[k][j]
return reachable |
quant = int(input())
for c in range(quant):
frase = input().split()
for x in range(len(frase) - 1, 0, -1):
for i in range(x):
if len(frase[i]) < len(frase[i+1]):
temp = frase[i]
frase[i] = frase[i+1]
frase[i+1] = temp
resultado = ' '.join(frase)
print(resultado) | quant = int(input())
for c in range(quant):
frase = input().split()
for x in range(len(frase) - 1, 0, -1):
for i in range(x):
if len(frase[i]) < len(frase[i + 1]):
temp = frase[i]
frase[i] = frase[i + 1]
frase[i + 1] = temp
resultado = ' '.join(frase)
print(resultado) |
# $Id: local_dummy_lang.py 8452 2020-01-09 10:50:44Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
# read <http://docutils.sf.net/docs/howto/i18n.html>. Two files must be
# translated for each language: one in docutils/languages, the other in
# docutils/parsers/rst/languages.
"""
English-language mappings for language-dependent features of Docutils.
"""
__docformat__ = 'reStructuredText'
labels = {
# fixed: language-dependent
'author': 'dummy Author',
'authors': 'dummy Authors',
'organization': 'dummy Organization',
'address': 'dummy Address',
'contact': 'dummy Contact',
'version': 'dummy Version',
'revision': 'dummy Revision',
'status': 'dummy Status',
'date': 'dummy Date',
'copyright': 'dummy Copyright',
'dedication': 'dummy Dedication',
'abstract': 'dummy Abstract',
'attention': 'dummy Attention!',
'caution': 'dummy Caution!',
'danger': 'dummy !DANGER!',
'error': 'dummy Error',
'hint': 'dummy Hint',
'important': 'dummy Important',
'note': 'dummy Note',
'tip': 'dummy Tip',
'warning': 'dummy Warning',
'contents': 'dummy Contents'}
"""Mapping of node class name to label text."""
bibliographic_fields = {
# language-dependent: fixed
'dummy author': 'author',
'dummy authors': 'authors',
'dummy organization': 'organization',
'dummy address': 'address',
'dummy contact': 'contact',
'dummy version': 'version',
'dummy revision': 'revision',
'dummy status': 'status',
'dummy date': 'date',
'dummy copyright': 'copyright',
'dummy dedication': 'dedication',
'dummy abstract': 'abstract'}
"""English (lowcased) to canonical name mapping for bibliographic fields."""
author_separators = [';', ',']
"""List of separator strings for the 'Authors' bibliographic field. Tried in
order."""
directives = {
# language-dependent: fixed
'dummy-attention': 'attention',
'dummy-caution': 'caution',
'dummy-code': 'code',
'dummy-code-block': 'code',
'dummy-sourcecode': 'code',
'dummy-danger': 'danger',
'dummy-error': 'error',
'dummy-hint': 'hint',
'dummy-important': 'important',
'dummy-note': 'note',
'dummy-tip': 'tip',
'dummy-warning': 'warning',
'dummy-admonition': 'admonition',
'dummy-sidebar': 'sidebar',
'dummy-topic': 'topic',
'dummy-line-block': 'line-block',
'dummy-parsed-literal': 'parsed-literal',
'dummy-rubric': 'rubric',
'dummy-epigraph': 'epigraph',
'dummy-highlights': 'highlights',
'dummy-pull-quote': 'pull-quote',
'dummy-compound': 'compound',
'dummy-container': 'container',
#'dummy-questions': 'questions',
'dummy-table': 'table',
'dummy-csv-table': 'csv-table',
'dummy-list-table': 'list-table',
#'dummy-qa': 'questions',
#'dummy-faq': 'questions',
'dummy-meta': 'meta',
'dummy-math': 'math',
#'dummy-imagemap': 'imagemap',
'dummy-image': 'image',
'dummy-figure': 'figure',
'dummy-include': 'include',
'dummy-raw': 'raw',
'dummy-replace': 'replace',
'dummy-unicode': 'unicode',
'dummy-date': 'date',
'dummy-class': 'class',
'dummy-role': 'role',
'dummy-default-role': 'default-role',
'dummy-title': 'title',
'dummy-contents': 'contents',
'dummy-sectnum': 'sectnum',
'dummy-section-numbering': 'sectnum',
'dummy-header': 'header',
'dummy-footer': 'footer',
#'dummy-footnotes': 'footnotes',
#'dummy-citations': 'citations',
'dummy-target-notes': 'target-notes',
'dummy-restructuredtext-test-directive': 'restructuredtext-test-directive'}
"""English name to registered (in directives/__init__.py) directive name
mapping."""
roles = {
# language-dependent: fixed
'dummy abbreviation': 'abbreviation',
'dummy ab': 'abbreviation',
'dummy acronym': 'acronym',
'dummy ac': 'acronym',
'dummy code': 'code',
'dummy index': 'index',
'dummy i': 'index',
'dummy subscript': 'subscript',
'dummy sub': 'subscript',
'dummy superscript': 'superscript',
'dummy sup': 'superscript',
'dummy title-reference': 'title-reference',
'dummy title': 'title-reference',
'dummy t': 'title-reference',
'dummy pep-reference': 'pep-reference',
'dummy pep': 'pep-reference',
'dummy rfc-reference': 'rfc-reference',
'dummy rfc': 'rfc-reference',
'dummy emphasis': 'emphasis',
'dummy strong': 'strong',
'dummy literal': 'literal',
'dummy math': 'math',
'dummy named-reference': 'named-reference',
'dummy anonymous-reference': 'anonymous-reference',
'dummy footnote-reference': 'footnote-reference',
'dummy citation-reference': 'citation-reference',
'dummy substitution-reference': 'substitution-reference',
'dummy target': 'target',
'dummy uri-reference': 'uri-reference',
'dummy uri': 'uri-reference',
'dummy url': 'uri-reference',
'dummy raw': 'raw',}
"""Mapping of English role names to canonical role names for interpreted text.
"""
| """
English-language mappings for language-dependent features of Docutils.
"""
__docformat__ = 'reStructuredText'
labels = {'author': 'dummy Author', 'authors': 'dummy Authors', 'organization': 'dummy Organization', 'address': 'dummy Address', 'contact': 'dummy Contact', 'version': 'dummy Version', 'revision': 'dummy Revision', 'status': 'dummy Status', 'date': 'dummy Date', 'copyright': 'dummy Copyright', 'dedication': 'dummy Dedication', 'abstract': 'dummy Abstract', 'attention': 'dummy Attention!', 'caution': 'dummy Caution!', 'danger': 'dummy !DANGER!', 'error': 'dummy Error', 'hint': 'dummy Hint', 'important': 'dummy Important', 'note': 'dummy Note', 'tip': 'dummy Tip', 'warning': 'dummy Warning', 'contents': 'dummy Contents'}
'Mapping of node class name to label text.'
bibliographic_fields = {'dummy author': 'author', 'dummy authors': 'authors', 'dummy organization': 'organization', 'dummy address': 'address', 'dummy contact': 'contact', 'dummy version': 'version', 'dummy revision': 'revision', 'dummy status': 'status', 'dummy date': 'date', 'dummy copyright': 'copyright', 'dummy dedication': 'dedication', 'dummy abstract': 'abstract'}
'English (lowcased) to canonical name mapping for bibliographic fields.'
author_separators = [';', ',']
"List of separator strings for the 'Authors' bibliographic field. Tried in\norder."
directives = {'dummy-attention': 'attention', 'dummy-caution': 'caution', 'dummy-code': 'code', 'dummy-code-block': 'code', 'dummy-sourcecode': 'code', 'dummy-danger': 'danger', 'dummy-error': 'error', 'dummy-hint': 'hint', 'dummy-important': 'important', 'dummy-note': 'note', 'dummy-tip': 'tip', 'dummy-warning': 'warning', 'dummy-admonition': 'admonition', 'dummy-sidebar': 'sidebar', 'dummy-topic': 'topic', 'dummy-line-block': 'line-block', 'dummy-parsed-literal': 'parsed-literal', 'dummy-rubric': 'rubric', 'dummy-epigraph': 'epigraph', 'dummy-highlights': 'highlights', 'dummy-pull-quote': 'pull-quote', 'dummy-compound': 'compound', 'dummy-container': 'container', 'dummy-table': 'table', 'dummy-csv-table': 'csv-table', 'dummy-list-table': 'list-table', 'dummy-meta': 'meta', 'dummy-math': 'math', 'dummy-image': 'image', 'dummy-figure': 'figure', 'dummy-include': 'include', 'dummy-raw': 'raw', 'dummy-replace': 'replace', 'dummy-unicode': 'unicode', 'dummy-date': 'date', 'dummy-class': 'class', 'dummy-role': 'role', 'dummy-default-role': 'default-role', 'dummy-title': 'title', 'dummy-contents': 'contents', 'dummy-sectnum': 'sectnum', 'dummy-section-numbering': 'sectnum', 'dummy-header': 'header', 'dummy-footer': 'footer', 'dummy-target-notes': 'target-notes', 'dummy-restructuredtext-test-directive': 'restructuredtext-test-directive'}
'English name to registered (in directives/__init__.py) directive name\nmapping.'
roles = {'dummy abbreviation': 'abbreviation', 'dummy ab': 'abbreviation', 'dummy acronym': 'acronym', 'dummy ac': 'acronym', 'dummy code': 'code', 'dummy index': 'index', 'dummy i': 'index', 'dummy subscript': 'subscript', 'dummy sub': 'subscript', 'dummy superscript': 'superscript', 'dummy sup': 'superscript', 'dummy title-reference': 'title-reference', 'dummy title': 'title-reference', 'dummy t': 'title-reference', 'dummy pep-reference': 'pep-reference', 'dummy pep': 'pep-reference', 'dummy rfc-reference': 'rfc-reference', 'dummy rfc': 'rfc-reference', 'dummy emphasis': 'emphasis', 'dummy strong': 'strong', 'dummy literal': 'literal', 'dummy math': 'math', 'dummy named-reference': 'named-reference', 'dummy anonymous-reference': 'anonymous-reference', 'dummy footnote-reference': 'footnote-reference', 'dummy citation-reference': 'citation-reference', 'dummy substitution-reference': 'substitution-reference', 'dummy target': 'target', 'dummy uri-reference': 'uri-reference', 'dummy uri': 'uri-reference', 'dummy url': 'uri-reference', 'dummy raw': 'raw'}
'Mapping of English role names to canonical role names for interpreted text.\n' |
#!/usr/bin/env python3
"""This module contain a list subcommand for the docker-image resource."""
def configure_parser(docker_image_subparser):
"""Adds the parser for the list command to an argparse ArgumentParser"""
docker_image_subparser.add_parser(
"list", help="List docker images present on instance"
)
def subcommand(api):
"""Execute the list command with args."""
images = api.docker_images()
docker_image_format_string = (
"{id:<3} "
"{image:30.30} "
"{node_id:<4} "
"{server_id:<6} "
"{docker_engine_id:<6} "
"{docker_registry_id:<8}"
)
print(
docker_image_format_string.format(
id="ID",
image="IMAGE:TAG",
node_id="NODE",
server_id="SERVER",
docker_engine_id="ENGINE",
docker_registry_id="REGISTRY",
)
)
for image in images:
print(
docker_image_format_string.format(
id=image.id,
image=f"{image.image_name}:{image.image_tag}",
node_id=image.node_id,
server_id=image.server_id,
docker_engine_id=image.docker_engine_id,
docker_registry_id=image.docker_registry_id,
)
)
| """This module contain a list subcommand for the docker-image resource."""
def configure_parser(docker_image_subparser):
"""Adds the parser for the list command to an argparse ArgumentParser"""
docker_image_subparser.add_parser('list', help='List docker images present on instance')
def subcommand(api):
"""Execute the list command with args."""
images = api.docker_images()
docker_image_format_string = '{id:<3} {image:30.30} {node_id:<4} {server_id:<6} {docker_engine_id:<6} {docker_registry_id:<8}'
print(docker_image_format_string.format(id='ID', image='IMAGE:TAG', node_id='NODE', server_id='SERVER', docker_engine_id='ENGINE', docker_registry_id='REGISTRY'))
for image in images:
print(docker_image_format_string.format(id=image.id, image=f'{image.image_name}:{image.image_tag}', node_id=image.node_id, server_id=image.server_id, docker_engine_id=image.docker_engine_id, docker_registry_id=image.docker_registry_id)) |
class Solution:
def twoSum(self, arr: List[int], target: int) -> List[int]:
l = 0
r = len(arr) - 1
while l < r:
total = arr[l] + arr[r]
if total == target:
return l + 1, r + 1
elif total < target:
l += 1
else:
r -= 1
| class Solution:
def two_sum(self, arr: List[int], target: int) -> List[int]:
l = 0
r = len(arr) - 1
while l < r:
total = arr[l] + arr[r]
if total == target:
return (l + 1, r + 1)
elif total < target:
l += 1
else:
r -= 1 |
'''
Created on 7 Feb 2015
@author: robrant
'''
MONGO_DBNAME = 'dfkm'
MONGO_HOST = 'localhost'
MONGO_PORT = 27017
TESTING = True
"""
lat = 50.722
lon = -1.866
50m
""" | """
Created on 7 Feb 2015
@author: robrant
"""
mongo_dbname = 'dfkm'
mongo_host = 'localhost'
mongo_port = 27017
testing = True
'\n\nlat = 50.722\nlon = -1.866\n50m \n\n' |
'''' | cancer | Total
symptom |No | Yes |
no |99989 | 0 | 99989
yes |10 | 1 | 11
total |99999 | 1 | 100000
'''
def cal_bayes(prior_H, prob_E_given_H, prob_E):
return prior_H * prob_E_given_H / prob_E
if __name__ == '__main__':
prior_H = 1 / 100000 # probability of hypothesis (has cancer), some times is not better than a guess,
# will be updated as new information comes in
prob_not_H = 1 - prior_H
prob_E_given_H = 1 # all people with cancer have symptoms 100% (according to this data)
prob_E_given_not_H = 10 / 99999 # 10 out of 99999 have symptoms but not cancer
prob_E = prior_H * prob_E_given_H + prob_not_H * prob_E_given_not_H # all the cases of symptoms
print("The probability of having cancer given symptoms or P(H|E) is: \n", cal_bayes(prior_H, prob_E_given_H, prob_E))
'''
H / hypothesis = has cancer = 1 / 100 000
E / Event = has symptoms
P(E|H) = has symptoms given cancer; the data tells us that all the people with cancer has symptoms
Therefore, the probability of having symptoms if you already have cancer is 1 or 100%
P(E|H) = 1
P(E|not H) = has symptoms given not cancer; the data tells us that 10 people out of 99999 have symptoms but not cancer
P(E|not H) = 10 / 99999
Therefore, The probability of having cancer given symptoms is:
P(H|E) = P(H) * P(E|H) / P(E)
where P(E) is the sum of all the cases of symptoms
P(E) = P(H) * P(E|H) + P(no H) * P(E|no H)
***************************** AND THIS IS BAYES THEOREM *************************
****** P(H|E) = P(H) * P(E|H) / (P(H) * P(E|H) + P(no H) * P(E|no H)) *****
another point of view:
in the area H is 1 person with symptoms, the total of people is 1
in the area (no H) are 10 people with symptoms, the total of people (no H) is 99999
so the probability of have cancer if you have symptoms is 1 / 11
even more
the people with cancer that have symptoms divided by the total of people with symptoms
people with cancer and symptoms = P(H)*P(E|H)
people with symptoms and not cancer = P(no H)*P(E|no H)
P(H|E) = P(H)*P(E|H) / P(H)*P(E|H) + P(no H)*P(E|no H)
H no H
-------------
| | |
| | |
| | |
| | |
| | |
-------------
'''
| """' | cancer | Total
symptom |No | Yes |
no |99989 | 0 | 99989
yes |10 | 1 | 11
total |99999 | 1 | 100000
"""
def cal_bayes(prior_H, prob_E_given_H, prob_E):
return prior_H * prob_E_given_H / prob_E
if __name__ == '__main__':
prior_h = 1 / 100000
prob_not_h = 1 - prior_H
prob_e_given_h = 1
prob_e_given_not_h = 10 / 99999
prob_e = prior_H * prob_E_given_H + prob_not_H * prob_E_given_not_H
print('The probability of having cancer given symptoms or P(H|E) is: \n', cal_bayes(prior_H, prob_E_given_H, prob_E))
'\nH / hypothesis = has cancer = 1 / 100 000\nE / Event = has symptoms\n\nP(E|H) = has symptoms given cancer; the data tells us that all the people with cancer has symptoms \nTherefore, the probability of having symptoms if you already have cancer is 1 or 100%\nP(E|H) = 1\n\nP(E|not H) = has symptoms given not cancer; the data tells us that 10 people out of 99999 have symptoms but not cancer \nP(E|not H) = 10 / 99999\n\nTherefore, The probability of having cancer given symptoms is: \n\nP(H|E) = P(H) * P(E|H) / P(E) \n\nwhere P(E) is the sum of all the cases of symptoms\n\nP(E) = P(H) * P(E|H) + P(no H) * P(E|no H)\n\n\n***************************** AND THIS IS BAYES THEOREM *************************\n****** P(H|E) = P(H) * P(E|H) / (P(H) * P(E|H) + P(no H) * P(E|no H)) *****\n\n\n\nanother point of view:\nin the area H is 1 person with symptoms, the total of people is 1\nin the area (no H) are 10 people with symptoms, the total of people (no H) is 99999\n\nso the probability of have cancer if you have symptoms is 1 / 11\neven more\nthe people with cancer that have symptoms divided by the total of people with symptoms\npeople with cancer and symptoms = P(H)*P(E|H)\npeople with symptoms and not cancer = P(no H)*P(E|no H)\nP(H|E) = P(H)*P(E|H) / P(H)*P(E|H) + P(no H)*P(E|no H)\n H no H\n -------------\n | | |\n | | | \n | | |\n | | |\n | | | \n ------------- \n' |
METRICS_AGGREGATE_KEYS = [
'sum',
'max',
'min'
]
BUCKETS_AGGREGATE_KEYS = [
'terms',
'date_histogram'
]
BUCKETS_AGGREGATE_OPTIONALS = [
'format',
'order',
'size',
'interval'
]
| metrics_aggregate_keys = ['sum', 'max', 'min']
buckets_aggregate_keys = ['terms', 'date_histogram']
buckets_aggregate_optionals = ['format', 'order', 'size', 'interval'] |
def book_dto(book):
try:
if not book:
return None
return {
'id': str(book.pk),
'book_name': book.name,
'summary': book.summary if book.summary else "",
'author': book.author,
'book_genre': book.genre,
'barcode': book.barcode,
'created_at': str(book.created_at),
'created_by': book.created_by,
'last_updated_at': str(book.last_updated_at),
'last_updated_by': book.last_updated_by,
'is_active': book.is_active,
'privacy_scope': book.privacy_scope,
'document_name': book.document_name,
'entity_tag': book.entity_tag,
'book_repo': book.repo_key
}
except Exception as e:
print("DEBUG: Exception - {}, occurred at BOOK_DTO.".format(e))
def embed_book_dto(book):
try:
return {
'id': str(book.pk),
'book_name': book.name,
'author': book.author,
'summary': book.summary
}
except Exception as e:
print("DEBUG: Exception - {}, occurred at EMBED_BOOK_DTO.".format(e))
def public_book_response_dto(book):
try:
if not book:
return None
return {
'id': str(book.pk),
'book_name': book.name,
'summary': book.summary if book.summary else "",
'author': book.author,
'book_genre': book.genre,
'barcode': book.barcode,
'created_at': str(book.created_at),
'created_by': book.created_by,
'last_updated_at': str(book.last_updated_at),
'last_updated_by': book.last_updated_by,
'is_active': book.is_active,
'privacy_scope': book.privacy_scope
}
except Exception as e:
print("DEBUG: Exception - {}, occurred at PUBLIC_BOOK_RESPONSE_DTO.".format(e))
| def book_dto(book):
try:
if not book:
return None
return {'id': str(book.pk), 'book_name': book.name, 'summary': book.summary if book.summary else '', 'author': book.author, 'book_genre': book.genre, 'barcode': book.barcode, 'created_at': str(book.created_at), 'created_by': book.created_by, 'last_updated_at': str(book.last_updated_at), 'last_updated_by': book.last_updated_by, 'is_active': book.is_active, 'privacy_scope': book.privacy_scope, 'document_name': book.document_name, 'entity_tag': book.entity_tag, 'book_repo': book.repo_key}
except Exception as e:
print('DEBUG: Exception - {}, occurred at BOOK_DTO.'.format(e))
def embed_book_dto(book):
try:
return {'id': str(book.pk), 'book_name': book.name, 'author': book.author, 'summary': book.summary}
except Exception as e:
print('DEBUG: Exception - {}, occurred at EMBED_BOOK_DTO.'.format(e))
def public_book_response_dto(book):
try:
if not book:
return None
return {'id': str(book.pk), 'book_name': book.name, 'summary': book.summary if book.summary else '', 'author': book.author, 'book_genre': book.genre, 'barcode': book.barcode, 'created_at': str(book.created_at), 'created_by': book.created_by, 'last_updated_at': str(book.last_updated_at), 'last_updated_by': book.last_updated_by, 'is_active': book.is_active, 'privacy_scope': book.privacy_scope}
except Exception as e:
print('DEBUG: Exception - {}, occurred at PUBLIC_BOOK_RESPONSE_DTO.'.format(e)) |
count_dict, count, Last_item = {}, 0, None
binario = str(bin(int(input())))
binary_list = [n for n in binario]
for item in binary_list:
if Last_item != item:
Last_item = item
count = 1
else:
count += 1
if count > count_dict.get(item, 0):
count_dict[item] = count
print(count_dict.get('1'))
| (count_dict, count, last_item) = ({}, 0, None)
binario = str(bin(int(input())))
binary_list = [n for n in binario]
for item in binary_list:
if Last_item != item:
last_item = item
count = 1
else:
count += 1
if count > count_dict.get(item, 0):
count_dict[item] = count
print(count_dict.get('1')) |
class Sample(object):
def func_0(self):
return '0'
def func_1(self, arg1):
return arg1
def func_2(self, arg1, arg2):
return arg1 + arg2
s = Sample()
result = s.func_0()
print(result)
result = s.func_1('test1')
print(result)
result = s.func_2('test1', 'test2')
print(result)
func = getattr(s, 'func_0')
result = func()
print(result)
func = getattr(s, 'func_1')
result = func('test1')
print(result)
func = getattr(s, 'func_2')
result = func('test1', 'test2')
print(result) | class Sample(object):
def func_0(self):
return '0'
def func_1(self, arg1):
return arg1
def func_2(self, arg1, arg2):
return arg1 + arg2
s = sample()
result = s.func_0()
print(result)
result = s.func_1('test1')
print(result)
result = s.func_2('test1', 'test2')
print(result)
func = getattr(s, 'func_0')
result = func()
print(result)
func = getattr(s, 'func_1')
result = func('test1')
print(result)
func = getattr(s, 'func_2')
result = func('test1', 'test2')
print(result) |
# 647. Palindromic Substrings
# Runtime: 128 ms, faster than 79.15% of Python3 online submissions for Palindromic Substrings.
# Memory Usage: 14.1 MB, less than 85.33% of Python3 online submissions for Palindromic Substrings.
class Solution:
# Expand Around Possible Centers
def countSubstrings(self, s: str) -> int:
count = 0
def expand_around_center(left: int, right: int) -> None:
nonlocal count
while left >= 0 and right < len(s):
if s[left] != s[right]:
break
else:
count += 1
left -= 1
right += 1
for i in range(len(s)):
expand_around_center(i, i)
expand_around_center(i, i + 1)
return count | class Solution:
def count_substrings(self, s: str) -> int:
count = 0
def expand_around_center(left: int, right: int) -> None:
nonlocal count
while left >= 0 and right < len(s):
if s[left] != s[right]:
break
else:
count += 1
left -= 1
right += 1
for i in range(len(s)):
expand_around_center(i, i)
expand_around_center(i, i + 1)
return count |
def test_submit_retrieve(client) -> None:
headers = {
'Content-Type': 'text/plain'
}
urls = {
'https://www.wikipedia.org/': '48VIcsBN5UX',
'https://www.google.com/': '48VIcsBN5UY',
'https://www.stackoverflow.com/': '48VIcsBN5UZ',
'https://www.youtube.com/watch?v=dQw4w9WgXcQ': '48VIcsBN5Ua'
}
# Post four URLs, receive short URLs, confirm short code is correct
for key in urls:
r = client.post('/submit', data=key, headers=headers)
# Get short code by right-splitting the short url
short_code = r.get_data().decode("utf-8").rsplit('/', 1)[-1]
assert short_code == urls[key]
# Get full URLs (redirect) from short codes
for key in urls:
r = client.get(urls[key])
assert r.location == key
assert r.status_code == 302 | def test_submit_retrieve(client) -> None:
headers = {'Content-Type': 'text/plain'}
urls = {'https://www.wikipedia.org/': '48VIcsBN5UX', 'https://www.google.com/': '48VIcsBN5UY', 'https://www.stackoverflow.com/': '48VIcsBN5UZ', 'https://www.youtube.com/watch?v=dQw4w9WgXcQ': '48VIcsBN5Ua'}
for key in urls:
r = client.post('/submit', data=key, headers=headers)
short_code = r.get_data().decode('utf-8').rsplit('/', 1)[-1]
assert short_code == urls[key]
for key in urls:
r = client.get(urls[key])
assert r.location == key
assert r.status_code == 302 |
list1 = [ 9, 2, 8, 4, 0, 1, 34 ]
# insert 45 at 5th index
list1.insert(4, 45)
print(list1)
list2 = ['q', 'b', 'u', 'h', 'p']
# insert z at the front of the list
list2.insert(0, 'z')
print(list2)
| list1 = [9, 2, 8, 4, 0, 1, 34]
list1.insert(4, 45)
print(list1)
list2 = ['q', 'b', 'u', 'h', 'p']
list2.insert(0, 'z')
print(list2) |
# Implement regular expression matching with the following special characters:
# . (period) which matches any single character
# * (asterisk) which matches zero or more of the preceding element
# That is, implement a function that takes in a string and a valid regular
# expression and returns whether or not the string matches the regular expression.
# For example, given the regular expression "ra." and the string "ray",
# your function should return true. The same regular expression on the
# string "raymond" should return false.
# Given the regular expression ".*at" and the string "chat", your function
# should return true. The same regular expression on the string "chats"
# should return false.
def check_regex(re, string):
boolMat = [[False]*(len(re)+1) for i in range(len(string)+1)]
boolMat[0][0] = True
for i in range(0, len(string) + 1):
for j in range(1, len(re) + 1):
if re[j-1] == '*':
boolMat[i][j] = boolMat[i][j-2] or (i > 0 and j > 1 and (re[j-2] == '.' or
string[i-1] == re[j-2]) and boolMat[i-1][j])
elif i > 0 and (re[j-1] == '.' or re[j-1] == string[i-1]):
boolMat[i][j] = boolMat[i-1][j-1]
return boolMat[-1][-1]
# Driver code
re = 'ra.'
string = "ray"
assert check_regex(re, string) == True
string = "raymond"
assert check_regex(re, string) == False
re = ".*at"
string = "chat"
assert check_regex(re, string) == True
string = "chats"
assert check_regex(re, string) == False
re = "c*a*b"
string = "aab"
assert check_regex(re, string) == True
re = "mis*is*p*"
string = "mississippi"
assert check_regex(re, string) == False
re = ".*"
string = "ab"
assert check_regex(re, string) == True | def check_regex(re, string):
bool_mat = [[False] * (len(re) + 1) for i in range(len(string) + 1)]
boolMat[0][0] = True
for i in range(0, len(string) + 1):
for j in range(1, len(re) + 1):
if re[j - 1] == '*':
boolMat[i][j] = boolMat[i][j - 2] or (i > 0 and j > 1 and (re[j - 2] == '.' or string[i - 1] == re[j - 2]) and boolMat[i - 1][j])
elif i > 0 and (re[j - 1] == '.' or re[j - 1] == string[i - 1]):
boolMat[i][j] = boolMat[i - 1][j - 1]
return boolMat[-1][-1]
re = 'ra.'
string = 'ray'
assert check_regex(re, string) == True
string = 'raymond'
assert check_regex(re, string) == False
re = '.*at'
string = 'chat'
assert check_regex(re, string) == True
string = 'chats'
assert check_regex(re, string) == False
re = 'c*a*b'
string = 'aab'
assert check_regex(re, string) == True
re = 'mis*is*p*'
string = 'mississippi'
assert check_regex(re, string) == False
re = '.*'
string = 'ab'
assert check_regex(re, string) == True |
#
# PySNMP MIB module SCA-FREXT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SCA-FREXT-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:52:53 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, ValueRangeConstraint, SingleValueConstraint, ValueSizeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueRangeConstraint", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsUnion")
DLCI, = mibBuilder.importSymbols("FRAME-RELAY-DTE-MIB", "DLCI")
scanet, = mibBuilder.importSymbols("SCANET-MIB", "scanet")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
Integer32, Gauge32, ObjectIdentity, MibIdentifier, Counter64, IpAddress, iso, TimeTicks, Counter32, NotificationType, ModuleIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "Gauge32", "ObjectIdentity", "MibIdentifier", "Counter64", "IpAddress", "iso", "TimeTicks", "Counter32", "NotificationType", "ModuleIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "Unsigned32")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
frEx = MibIdentifier((1, 3, 6, 1, 4, 1, 208, 46))
frCircuitExt = MibIdentifier((1, 3, 6, 1, 4, 1, 208, 46, 1))
class InterfaceIndex(Integer32):
pass
frCirExtEncTable = MibTable((1, 3, 6, 1, 4, 1, 208, 46, 1, 1), )
if mibBuilder.loadTexts: frCirExtEncTable.setStatus('mandatory')
frCirExtEncEntry = MibTableRow((1, 3, 6, 1, 4, 1, 208, 46, 1, 1, 1), ).setIndexNames((0, "SCA-FREXT-MIB", "frCirExtEncIfIndex"), (0, "SCA-FREXT-MIB", "frCirExtEncDlci"))
if mibBuilder.loadTexts: frCirExtEncEntry.setStatus('mandatory')
frCirExtEncIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 1, 1, 1), InterfaceIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtEncIfIndex.setStatus('mandatory')
frCirExtEncDlci = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 1, 1, 2), DLCI()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtEncDlci.setStatus('mandatory')
frCirExtEncLogicalIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 1, 1, 3), InterfaceIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtEncLogicalIfIndex.setStatus('mandatory')
frCirExtEncEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtEncEnabled.setStatus('mandatory')
frCirExtEncNegotiated = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtEncNegotiated.setStatus('mandatory')
frCirExtEncResetRequestsRx = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 1, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtEncResetRequestsRx.setStatus('mandatory')
frCirExtEncResetRequestsTx = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 1, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtEncResetRequestsTx.setStatus('mandatory')
frCirExtEncResetAcksRx = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 1, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtEncResetAcksRx.setStatus('mandatory')
frCirExtEncResetAcksTx = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 1, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtEncResetAcksTx.setStatus('mandatory')
frCirExtEncRxDiscarded = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 1, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtEncRxDiscarded.setStatus('mandatory')
frCirExtEncTxDiscarded = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 1, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtEncTxDiscarded.setStatus('mandatory')
frCirExtEncReceiverState = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ok", 1), ("error", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtEncReceiverState.setStatus('mandatory')
frCirExtCompTable = MibTable((1, 3, 6, 1, 4, 1, 208, 46, 1, 2), )
if mibBuilder.loadTexts: frCirExtCompTable.setStatus('mandatory')
frCirExtCompEntry = MibTableRow((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1), ).setIndexNames((0, "SCA-FREXT-MIB", "frCirExtCompIfIndex"), (0, "SCA-FREXT-MIB", "frCirExtCompDlci"))
if mibBuilder.loadTexts: frCirExtCompEntry.setStatus('mandatory')
frCirExtCompIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 1), InterfaceIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtCompIfIndex.setStatus('mandatory')
frCirExtCompDlci = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 2), DLCI()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtCompDlci.setStatus('mandatory')
frCirExtCompLogicalIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 3), InterfaceIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtCompLogicalIfIndex.setStatus('mandatory')
frCirExtCompEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtCompEnabled.setStatus('mandatory')
frCirExtCompNegotiated = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtCompNegotiated.setStatus('mandatory')
frCirExtCompDecoderBytesIn = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtCompDecoderBytesIn.setStatus('mandatory')
frCirExtCompDecoderDecompBytesOut = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtCompDecoderDecompBytesOut.setStatus('mandatory')
frCirExtCompDecoderUncompBytesOut = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtCompDecoderUncompBytesOut.setStatus('mandatory')
frCirExtCompDecoderCompPacketsIn = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtCompDecoderCompPacketsIn.setStatus('mandatory')
frCirExtCompDecoderUncompPacketsIn = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtCompDecoderUncompPacketsIn.setStatus('mandatory')
frCirExtCompDecoderDecompQueueLength = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtCompDecoderDecompQueueLength.setStatus('mandatory')
frCirExtCompDecoderCompressionRatio = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtCompDecoderCompressionRatio.setStatus('mandatory')
frCirExtCompDecoderResetRequestTx = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtCompDecoderResetRequestTx.setStatus('mandatory')
frCirExtCompDecoderResetAcksRx = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtCompDecoderResetAcksRx.setStatus('mandatory')
frCirExtCompDecoderRxDiscarded = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtCompDecoderRxDiscarded.setStatus('mandatory')
frCirExtCompDecoderState = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ok", 1), ("error", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtCompDecoderState.setStatus('mandatory')
frCirExtCompEncoderBytesIn = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 17), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtCompEncoderBytesIn.setStatus('mandatory')
frCirExtCompEncoderCompBytesOut = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 18), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtCompEncoderCompBytesOut.setStatus('mandatory')
frCirExtCompEncoderUncompBytesOut = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 19), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtCompEncoderUncompBytesOut.setStatus('mandatory')
frCirExtCompEncoderCompPacketsOut = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 20), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtCompEncoderCompPacketsOut.setStatus('mandatory')
frCirExtCompEncoderUncompPacketsOut = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 21), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtCompEncoderUncompPacketsOut.setStatus('mandatory')
frCirExtCompEncoderCompQueueLength = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 22), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtCompEncoderCompQueueLength.setStatus('mandatory')
frCirExtCompEncoderCompressionRation = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 23), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtCompEncoderCompressionRation.setStatus('mandatory')
frCirExtCompEncoderResetRequestRx = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 24), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtCompEncoderResetRequestRx.setStatus('mandatory')
frCirExtCompEncoderResetAckTx = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 25), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtCompEncoderResetAckTx.setStatus('mandatory')
frCirExtCompEncoderTxDiscarded = MibTableColumn((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 26), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frCirExtCompEncoderTxDiscarded.setStatus('mandatory')
mibBuilder.exportSymbols("SCA-FREXT-MIB", frCirExtEncLogicalIfIndex=frCirExtEncLogicalIfIndex, frCirExtCompDecoderResetRequestTx=frCirExtCompDecoderResetRequestTx, frCirExtCompEnabled=frCirExtCompEnabled, frCirExtEncResetRequestsRx=frCirExtEncResetRequestsRx, frCirExtCompEncoderCompBytesOut=frCirExtCompEncoderCompBytesOut, frCirExtCompLogicalIfIndex=frCirExtCompLogicalIfIndex, frCirExtEncReceiverState=frCirExtEncReceiverState, frCirExtEncNegotiated=frCirExtEncNegotiated, frCirExtCompEncoderUncompBytesOut=frCirExtCompEncoderUncompBytesOut, frCirExtCompEncoderTxDiscarded=frCirExtCompEncoderTxDiscarded, frCirExtCompDecoderDecompQueueLength=frCirExtCompDecoderDecompQueueLength, frCirExtCompDecoderState=frCirExtCompDecoderState, frCirExtCompDecoderRxDiscarded=frCirExtCompDecoderRxDiscarded, InterfaceIndex=InterfaceIndex, frCirExtEncTxDiscarded=frCirExtEncTxDiscarded, frCirExtCompDlci=frCirExtCompDlci, frCirExtCompEncoderResetRequestRx=frCirExtCompEncoderResetRequestRx, frCirExtCompEncoderCompressionRation=frCirExtCompEncoderCompressionRation, frCirExtEncIfIndex=frCirExtEncIfIndex, frCirExtCompDecoderResetAcksRx=frCirExtCompDecoderResetAcksRx, frCirExtEncResetAcksTx=frCirExtEncResetAcksTx, frCirExtCompDecoderCompPacketsIn=frCirExtCompDecoderCompPacketsIn, frCirExtEncResetAcksRx=frCirExtEncResetAcksRx, frCirExtEncResetRequestsTx=frCirExtEncResetRequestsTx, frCirExtCompDecoderUncompBytesOut=frCirExtCompDecoderUncompBytesOut, frCirExtCompDecoderCompressionRatio=frCirExtCompDecoderCompressionRatio, frCirExtEncDlci=frCirExtEncDlci, frCirExtCompEntry=frCirExtCompEntry, frCirExtEncRxDiscarded=frCirExtEncRxDiscarded, frCirExtCompDecoderDecompBytesOut=frCirExtCompDecoderDecompBytesOut, frCirExtEncEnabled=frCirExtEncEnabled, frCirExtCompTable=frCirExtCompTable, frCirExtCompEncoderCompQueueLength=frCirExtCompEncoderCompQueueLength, frCirExtCompEncoderUncompPacketsOut=frCirExtCompEncoderUncompPacketsOut, frCirExtEncTable=frCirExtEncTable, frCirExtEncEntry=frCirExtEncEntry, frCirExtCompEncoderCompPacketsOut=frCirExtCompEncoderCompPacketsOut, frCirExtCompNegotiated=frCirExtCompNegotiated, frCirExtCompDecoderBytesIn=frCirExtCompDecoderBytesIn, frCircuitExt=frCircuitExt, frEx=frEx, frCirExtCompEncoderResetAckTx=frCirExtCompEncoderResetAckTx, frCirExtCompIfIndex=frCirExtCompIfIndex, frCirExtCompDecoderUncompPacketsIn=frCirExtCompDecoderUncompPacketsIn, frCirExtCompEncoderBytesIn=frCirExtCompEncoderBytesIn)
| (octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_intersection, value_range_constraint, single_value_constraint, value_size_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueRangeConstraint', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsUnion')
(dlci,) = mibBuilder.importSymbols('FRAME-RELAY-DTE-MIB', 'DLCI')
(scanet,) = mibBuilder.importSymbols('SCANET-MIB', 'scanet')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(integer32, gauge32, object_identity, mib_identifier, counter64, ip_address, iso, time_ticks, counter32, notification_type, module_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, bits, unsigned32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'Gauge32', 'ObjectIdentity', 'MibIdentifier', 'Counter64', 'IpAddress', 'iso', 'TimeTicks', 'Counter32', 'NotificationType', 'ModuleIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Bits', 'Unsigned32')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
fr_ex = mib_identifier((1, 3, 6, 1, 4, 1, 208, 46))
fr_circuit_ext = mib_identifier((1, 3, 6, 1, 4, 1, 208, 46, 1))
class Interfaceindex(Integer32):
pass
fr_cir_ext_enc_table = mib_table((1, 3, 6, 1, 4, 1, 208, 46, 1, 1))
if mibBuilder.loadTexts:
frCirExtEncTable.setStatus('mandatory')
fr_cir_ext_enc_entry = mib_table_row((1, 3, 6, 1, 4, 1, 208, 46, 1, 1, 1)).setIndexNames((0, 'SCA-FREXT-MIB', 'frCirExtEncIfIndex'), (0, 'SCA-FREXT-MIB', 'frCirExtEncDlci'))
if mibBuilder.loadTexts:
frCirExtEncEntry.setStatus('mandatory')
fr_cir_ext_enc_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 1, 1, 1), interface_index()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtEncIfIndex.setStatus('mandatory')
fr_cir_ext_enc_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 1, 1, 2), dlci()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtEncDlci.setStatus('mandatory')
fr_cir_ext_enc_logical_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 1, 1, 3), interface_index()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtEncLogicalIfIndex.setStatus('mandatory')
fr_cir_ext_enc_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtEncEnabled.setStatus('mandatory')
fr_cir_ext_enc_negotiated = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtEncNegotiated.setStatus('mandatory')
fr_cir_ext_enc_reset_requests_rx = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 1, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtEncResetRequestsRx.setStatus('mandatory')
fr_cir_ext_enc_reset_requests_tx = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 1, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtEncResetRequestsTx.setStatus('mandatory')
fr_cir_ext_enc_reset_acks_rx = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 1, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtEncResetAcksRx.setStatus('mandatory')
fr_cir_ext_enc_reset_acks_tx = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 1, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtEncResetAcksTx.setStatus('mandatory')
fr_cir_ext_enc_rx_discarded = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 1, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtEncRxDiscarded.setStatus('mandatory')
fr_cir_ext_enc_tx_discarded = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 1, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtEncTxDiscarded.setStatus('mandatory')
fr_cir_ext_enc_receiver_state = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ok', 1), ('error', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtEncReceiverState.setStatus('mandatory')
fr_cir_ext_comp_table = mib_table((1, 3, 6, 1, 4, 1, 208, 46, 1, 2))
if mibBuilder.loadTexts:
frCirExtCompTable.setStatus('mandatory')
fr_cir_ext_comp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1)).setIndexNames((0, 'SCA-FREXT-MIB', 'frCirExtCompIfIndex'), (0, 'SCA-FREXT-MIB', 'frCirExtCompDlci'))
if mibBuilder.loadTexts:
frCirExtCompEntry.setStatus('mandatory')
fr_cir_ext_comp_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 1), interface_index()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtCompIfIndex.setStatus('mandatory')
fr_cir_ext_comp_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 2), dlci()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtCompDlci.setStatus('mandatory')
fr_cir_ext_comp_logical_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 3), interface_index()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtCompLogicalIfIndex.setStatus('mandatory')
fr_cir_ext_comp_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtCompEnabled.setStatus('mandatory')
fr_cir_ext_comp_negotiated = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtCompNegotiated.setStatus('mandatory')
fr_cir_ext_comp_decoder_bytes_in = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtCompDecoderBytesIn.setStatus('mandatory')
fr_cir_ext_comp_decoder_decomp_bytes_out = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtCompDecoderDecompBytesOut.setStatus('mandatory')
fr_cir_ext_comp_decoder_uncomp_bytes_out = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtCompDecoderUncompBytesOut.setStatus('mandatory')
fr_cir_ext_comp_decoder_comp_packets_in = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtCompDecoderCompPacketsIn.setStatus('mandatory')
fr_cir_ext_comp_decoder_uncomp_packets_in = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtCompDecoderUncompPacketsIn.setStatus('mandatory')
fr_cir_ext_comp_decoder_decomp_queue_length = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtCompDecoderDecompQueueLength.setStatus('mandatory')
fr_cir_ext_comp_decoder_compression_ratio = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtCompDecoderCompressionRatio.setStatus('mandatory')
fr_cir_ext_comp_decoder_reset_request_tx = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtCompDecoderResetRequestTx.setStatus('mandatory')
fr_cir_ext_comp_decoder_reset_acks_rx = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtCompDecoderResetAcksRx.setStatus('mandatory')
fr_cir_ext_comp_decoder_rx_discarded = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtCompDecoderRxDiscarded.setStatus('mandatory')
fr_cir_ext_comp_decoder_state = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ok', 1), ('error', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtCompDecoderState.setStatus('mandatory')
fr_cir_ext_comp_encoder_bytes_in = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 17), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtCompEncoderBytesIn.setStatus('mandatory')
fr_cir_ext_comp_encoder_comp_bytes_out = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 18), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtCompEncoderCompBytesOut.setStatus('mandatory')
fr_cir_ext_comp_encoder_uncomp_bytes_out = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 19), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtCompEncoderUncompBytesOut.setStatus('mandatory')
fr_cir_ext_comp_encoder_comp_packets_out = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 20), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtCompEncoderCompPacketsOut.setStatus('mandatory')
fr_cir_ext_comp_encoder_uncomp_packets_out = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 21), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtCompEncoderUncompPacketsOut.setStatus('mandatory')
fr_cir_ext_comp_encoder_comp_queue_length = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 22), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtCompEncoderCompQueueLength.setStatus('mandatory')
fr_cir_ext_comp_encoder_compression_ration = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 23), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtCompEncoderCompressionRation.setStatus('mandatory')
fr_cir_ext_comp_encoder_reset_request_rx = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 24), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtCompEncoderResetRequestRx.setStatus('mandatory')
fr_cir_ext_comp_encoder_reset_ack_tx = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 25), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtCompEncoderResetAckTx.setStatus('mandatory')
fr_cir_ext_comp_encoder_tx_discarded = mib_table_column((1, 3, 6, 1, 4, 1, 208, 46, 1, 2, 1, 26), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frCirExtCompEncoderTxDiscarded.setStatus('mandatory')
mibBuilder.exportSymbols('SCA-FREXT-MIB', frCirExtEncLogicalIfIndex=frCirExtEncLogicalIfIndex, frCirExtCompDecoderResetRequestTx=frCirExtCompDecoderResetRequestTx, frCirExtCompEnabled=frCirExtCompEnabled, frCirExtEncResetRequestsRx=frCirExtEncResetRequestsRx, frCirExtCompEncoderCompBytesOut=frCirExtCompEncoderCompBytesOut, frCirExtCompLogicalIfIndex=frCirExtCompLogicalIfIndex, frCirExtEncReceiverState=frCirExtEncReceiverState, frCirExtEncNegotiated=frCirExtEncNegotiated, frCirExtCompEncoderUncompBytesOut=frCirExtCompEncoderUncompBytesOut, frCirExtCompEncoderTxDiscarded=frCirExtCompEncoderTxDiscarded, frCirExtCompDecoderDecompQueueLength=frCirExtCompDecoderDecompQueueLength, frCirExtCompDecoderState=frCirExtCompDecoderState, frCirExtCompDecoderRxDiscarded=frCirExtCompDecoderRxDiscarded, InterfaceIndex=InterfaceIndex, frCirExtEncTxDiscarded=frCirExtEncTxDiscarded, frCirExtCompDlci=frCirExtCompDlci, frCirExtCompEncoderResetRequestRx=frCirExtCompEncoderResetRequestRx, frCirExtCompEncoderCompressionRation=frCirExtCompEncoderCompressionRation, frCirExtEncIfIndex=frCirExtEncIfIndex, frCirExtCompDecoderResetAcksRx=frCirExtCompDecoderResetAcksRx, frCirExtEncResetAcksTx=frCirExtEncResetAcksTx, frCirExtCompDecoderCompPacketsIn=frCirExtCompDecoderCompPacketsIn, frCirExtEncResetAcksRx=frCirExtEncResetAcksRx, frCirExtEncResetRequestsTx=frCirExtEncResetRequestsTx, frCirExtCompDecoderUncompBytesOut=frCirExtCompDecoderUncompBytesOut, frCirExtCompDecoderCompressionRatio=frCirExtCompDecoderCompressionRatio, frCirExtEncDlci=frCirExtEncDlci, frCirExtCompEntry=frCirExtCompEntry, frCirExtEncRxDiscarded=frCirExtEncRxDiscarded, frCirExtCompDecoderDecompBytesOut=frCirExtCompDecoderDecompBytesOut, frCirExtEncEnabled=frCirExtEncEnabled, frCirExtCompTable=frCirExtCompTable, frCirExtCompEncoderCompQueueLength=frCirExtCompEncoderCompQueueLength, frCirExtCompEncoderUncompPacketsOut=frCirExtCompEncoderUncompPacketsOut, frCirExtEncTable=frCirExtEncTable, frCirExtEncEntry=frCirExtEncEntry, frCirExtCompEncoderCompPacketsOut=frCirExtCompEncoderCompPacketsOut, frCirExtCompNegotiated=frCirExtCompNegotiated, frCirExtCompDecoderBytesIn=frCirExtCompDecoderBytesIn, frCircuitExt=frCircuitExt, frEx=frEx, frCirExtCompEncoderResetAckTx=frCirExtCompEncoderResetAckTx, frCirExtCompIfIndex=frCirExtCompIfIndex, frCirExtCompDecoderUncompPacketsIn=frCirExtCompDecoderUncompPacketsIn, frCirExtCompEncoderBytesIn=frCirExtCompEncoderBytesIn) |
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def allPossibleFBT(self, N: int) -> List[TreeNode]:
if N % 2 == 0: return []
dp = [[] for i in range(N + 1)]
dp[1] = [TreeNode(0)]
for i in range(3, N + 1, 2):
for j in range(1, i, 2):
k = i - j - 1
for l in dp[j]:
for r in dp[k]:
root = TreeNode(0, left=l, right=r)
dp[i].append(root)
return dp[N]
| class Solution:
def all_possible_fbt(self, N: int) -> List[TreeNode]:
if N % 2 == 0:
return []
dp = [[] for i in range(N + 1)]
dp[1] = [tree_node(0)]
for i in range(3, N + 1, 2):
for j in range(1, i, 2):
k = i - j - 1
for l in dp[j]:
for r in dp[k]:
root = tree_node(0, left=l, right=r)
dp[i].append(root)
return dp[N] |
ALPHABET = 'abcdefghijklmnopqrstuvwxyz'
t = int(input())
allResult = ''
for k in range(t):
input()
string = input()
result = 'a'
while string.find(result) != -1:
if result[len(result) - 1] != 'z':
result = result[:-1] + ALPHABET[ord(result[-1]) - 96]
else:
if result[0] == ALPHABET[25]:
temp = ''
for i in range(len(result) + 1):
temp += ALPHABET[0]
result = temp
else:
result = result[:-1] + ALPHABET[0]
for i in range(len(result) - 2, -1, -1):
if result[i + 1] == 'a':
result = result[:i] + ALPHABET[(ord(result[i]) - 96) % 26] + result[i + 1:]
else:
break
allResult += result
if k < t - 1:
allResult += '\n'
print(allResult) | alphabet = 'abcdefghijklmnopqrstuvwxyz'
t = int(input())
all_result = ''
for k in range(t):
input()
string = input()
result = 'a'
while string.find(result) != -1:
if result[len(result) - 1] != 'z':
result = result[:-1] + ALPHABET[ord(result[-1]) - 96]
elif result[0] == ALPHABET[25]:
temp = ''
for i in range(len(result) + 1):
temp += ALPHABET[0]
result = temp
else:
result = result[:-1] + ALPHABET[0]
for i in range(len(result) - 2, -1, -1):
if result[i + 1] == 'a':
result = result[:i] + ALPHABET[(ord(result[i]) - 96) % 26] + result[i + 1:]
else:
break
all_result += result
if k < t - 1:
all_result += '\n'
print(allResult) |
# Time: O(n), n is the number of the integers.
# Space: O(h), h is the depth of the nested lists.
# """
# This is the interface that allows for creating nested lists.
# You should not implement it, or speculate about its implementation
# """
#class NestedInteger(object):
# def isInteger(self):
# """
# @return True if this NestedInteger holds a single integer, rather than a nested list.
# :rtype bool
# """
#
# def getInteger(self):
# """
# @return the single integer that this NestedInteger holds, if it holds a single integer
# Return None if this NestedInteger holds a nested list
# :rtype int
# """
#
# def getList(self):
# """
# @return the nested list that this NestedInteger holds, if it holds a nested list
# Return None if this NestedInteger holds a single integer
# :rtype List[NestedInteger]
# """
class NestedIterator(object):
def __init__(self, nestedList):
"""
Initialize your data structure here.
:type nestedList: List[NestedInteger]
"""
self.__depth = [[nestedList, 0]]
def next(self):
"""
:rtype: int
"""
nestedList, i = self.__depth[-1]
self.__depth[-1][1] += 1
return nestedList[i].getInteger()
def hasNext(self):
"""
:rtype: bool
"""
while self.__depth:
nestedList, i = self.__depth[-1]
if i == len(nestedList):
self.__depth.pop()
elif nestedList[i].isInteger():
return True
else:
self.__depth[-1][1] += 1
self.__depth.append([nestedList[i].getList(), 0])
return False
# Your NestedIterator object will be instantiated and called as such:
# i, v = NestedIterator(nestedList), []
# while i.hasNext(): v.append(i.next())
| class Nestediterator(object):
def __init__(self, nestedList):
"""
Initialize your data structure here.
:type nestedList: List[NestedInteger]
"""
self.__depth = [[nestedList, 0]]
def next(self):
"""
:rtype: int
"""
(nested_list, i) = self.__depth[-1]
self.__depth[-1][1] += 1
return nestedList[i].getInteger()
def has_next(self):
"""
:rtype: bool
"""
while self.__depth:
(nested_list, i) = self.__depth[-1]
if i == len(nestedList):
self.__depth.pop()
elif nestedList[i].isInteger():
return True
else:
self.__depth[-1][1] += 1
self.__depth.append([nestedList[i].getList(), 0])
return False |
# n = int(input())
# res = [[10 ** 9 for j in range(n)] for _ in range(n)]
# res[0][0] = 0
# scores = []
# for _ in range(n):
# scores.append(list(map(int, input().split())))
# direcs = [(0, 1), (0, -1), (-1, 0), (1, 0)]
# d4_scores = [[[] for _ in range(n)] for _ in range(n)]
# for i in range(n):
# for j in range(n):
# for dirc in direcs:
# n_x, n_y = i + dirc[0], j + dirc[1]
# if 0 <= n_x < n and 0 <= n_y < n:
# d4_scores[i][j].append((n_x, n_y, abs(scores[i][j] - scores[n_x][n_y])))
# else:
# d4_scores[i][j].append((None, None, None))
# que = {(0, 0)}
# while que:
# x, y = que.pop()
# for n_x, n_y, s in d4_scores[x][y]:
# if s is not None:
# n_s = res[x][y] + s
# if n_s < res[n_x][n_y]:
# res[n_x][n_y] = n_s
# que.add((n_x, n_y))
# print(res[n - 1][n - 1])
# # print(res)
n, m, k = list(map(int, input().split()))
gifts = []
for _ in range(n):
gifts.append(list(map(int, input().split())))
gifts.sort(key=lambda x: [x[2], x[0], x[1]])
res = 0
i = 0
while i < n:
p, w, _ = gifts[i]
i += 1
if k >= p and m >= w:
res += 1
k -= p
m -= w
print(res)
| (n, m, k) = list(map(int, input().split()))
gifts = []
for _ in range(n):
gifts.append(list(map(int, input().split())))
gifts.sort(key=lambda x: [x[2], x[0], x[1]])
res = 0
i = 0
while i < n:
(p, w, _) = gifts[i]
i += 1
if k >= p and m >= w:
res += 1
k -= p
m -= w
print(res) |
for v in graph.getVertices():
print(v.value.rank) | for v in graph.getVertices():
print(v.value.rank) |
class Solution:
def coinChange(self, coins: 'List[int]', amount: int) -> int:
coins.sort(reverse=True)
impossible = (amount + 1) * 2
dp = [impossible] * (amount + 1)
dp[0] = 0
for current in range(amount + 1):
for coin in coins:
if current + coin <= amount:
dp[current + coin] = min(dp[current + coin], dp[current] + 1)
return -1 if dp[amount] == impossible else dp[amount]
if __name__ == '__main__':
print(Solution().coinChange([2], 4))
print(Solution().coinChange([1, 2, 5], 11))
print(Solution().coinChange([2], 3))
print(Solution().coinChange([1], 0))
print(Solution().coinChange([1], 1))
print(Solution().coinChange([1], 2))
| class Solution:
def coin_change(self, coins: 'List[int]', amount: int) -> int:
coins.sort(reverse=True)
impossible = (amount + 1) * 2
dp = [impossible] * (amount + 1)
dp[0] = 0
for current in range(amount + 1):
for coin in coins:
if current + coin <= amount:
dp[current + coin] = min(dp[current + coin], dp[current] + 1)
return -1 if dp[amount] == impossible else dp[amount]
if __name__ == '__main__':
print(solution().coinChange([2], 4))
print(solution().coinChange([1, 2, 5], 11))
print(solution().coinChange([2], 3))
print(solution().coinChange([1], 0))
print(solution().coinChange([1], 1))
print(solution().coinChange([1], 2)) |
EXAMPLES1 = (
('04-exemple1.txt', 4512),
)
EXAMPLES2 = (
('04-exemple1.txt', 1924),
)
INPUT = '04.txt'
def read_data(fn):
with open(fn) as f:
numbers = [int(s) for s in f.readline().strip().split(',')]
boards = list()
board = None
for line in f:
if not line.strip():
if board is not None:
boards.append(board)
board = list()
else:
board.append([int(s) for s in line.strip().split()])
return numbers, boards
def test_board(board):
# True if a row full of 0
if any(all([n is None for n in line]) for line in board):
return True
board = list(map(list, zip(*board)))
if any(all([n is None for n in line]) for line in board):
return True
else:
return False
def setnumber(board, number):
for line in board:
for index, value in enumerate(line):
if value == number:
line[index] = None
return
def code1(data):
numbers, boards = data
for number in numbers:
for board in boards:
setnumber(board, number)
if test_board(board):
return number * sum([sum(0 if n is None else n for n in line) for line in board])
return 0
def code2(data):
numbers, boards = data
count = 0
done = set()
for number in numbers:
for iboard, board in enumerate(boards):
if iboard in done:
continue
setnumber(board, number)
if test_board(board):
count += 1
done.add(iboard)
# print(iboard, board, number, count, len(boards))
if count == len(boards):
return number * sum([sum(0 if n is None else n for n in line) for line in board])
return 0
def test(n, code, examples, myinput):
for fn, result in examples:
data = read_data(fn)
assert code(data) == result, (data, result, code(data))
print(f'{n}>', code(read_data(myinput)))
test(1, code1, EXAMPLES1, INPUT)
test(2, code2, EXAMPLES2, INPUT)
| examples1 = (('04-exemple1.txt', 4512),)
examples2 = (('04-exemple1.txt', 1924),)
input = '04.txt'
def read_data(fn):
with open(fn) as f:
numbers = [int(s) for s in f.readline().strip().split(',')]
boards = list()
board = None
for line in f:
if not line.strip():
if board is not None:
boards.append(board)
board = list()
else:
board.append([int(s) for s in line.strip().split()])
return (numbers, boards)
def test_board(board):
if any((all([n is None for n in line]) for line in board)):
return True
board = list(map(list, zip(*board)))
if any((all([n is None for n in line]) for line in board)):
return True
else:
return False
def setnumber(board, number):
for line in board:
for (index, value) in enumerate(line):
if value == number:
line[index] = None
return
def code1(data):
(numbers, boards) = data
for number in numbers:
for board in boards:
setnumber(board, number)
if test_board(board):
return number * sum([sum((0 if n is None else n for n in line)) for line in board])
return 0
def code2(data):
(numbers, boards) = data
count = 0
done = set()
for number in numbers:
for (iboard, board) in enumerate(boards):
if iboard in done:
continue
setnumber(board, number)
if test_board(board):
count += 1
done.add(iboard)
if count == len(boards):
return number * sum([sum((0 if n is None else n for n in line)) for line in board])
return 0
def test(n, code, examples, myinput):
for (fn, result) in examples:
data = read_data(fn)
assert code(data) == result, (data, result, code(data))
print(f'{n}>', code(read_data(myinput)))
test(1, code1, EXAMPLES1, INPUT)
test(2, code2, EXAMPLES2, INPUT) |
"""
For this challenge, create the worlds simplest IM client. It should work like this: if Alice on computer A wants to talk
to Bob on computer B, she should start the IM program as a server listening to some port. Bob should then start the
program on his end, punch in computer A's IP address with the right port. The two computers should now be connected to
each other and Alice and Bob should be able to communicate by sending short strings to each other. Example conversation
seen on Alice's computer:
You: "Hey Bob!"
Bob: "Hey Alice!"
Bob: "I can't believe I successfully connected!"
You: "Isn't it cool?"
Bob: "It really is!"
Same conversation seen on Bob's computer:
Alice: "Hey Bob!"
You: "Hey Alice!"
You: "I can't believe I successfully connected!"
Alice: "Isn't it cool?"
You: "It really is!"
If you don't have to computers lying around, or just want to make it easier for yourself, it is perfectly allowed to run
both programs on the same computer and connect to "localhost".
If you want to, you can design a very simple GUI for this, but that is not necessary. If you can finagle this to work in
a terminal, that is perfectly fine.
"""
def main():
pass
if __name__ == "__main__":
main()
| """
For this challenge, create the worlds simplest IM client. It should work like this: if Alice on computer A wants to talk
to Bob on computer B, she should start the IM program as a server listening to some port. Bob should then start the
program on his end, punch in computer A's IP address with the right port. The two computers should now be connected to
each other and Alice and Bob should be able to communicate by sending short strings to each other. Example conversation
seen on Alice's computer:
You: "Hey Bob!"
Bob: "Hey Alice!"
Bob: "I can't believe I successfully connected!"
You: "Isn't it cool?"
Bob: "It really is!"
Same conversation seen on Bob's computer:
Alice: "Hey Bob!"
You: "Hey Alice!"
You: "I can't believe I successfully connected!"
Alice: "Isn't it cool?"
You: "It really is!"
If you don't have to computers lying around, or just want to make it easier for yourself, it is perfectly allowed to run
both programs on the same computer and connect to "localhost".
If you want to, you can design a very simple GUI for this, but that is not necessary. If you can finagle this to work in
a terminal, that is perfectly fine.
"""
def main():
pass
if __name__ == '__main__':
main() |
#!/usr/bin/python
#
# AbstractPatching is the base patching class of all the linux distros
#
# Copyright 2014 Microsoft Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
class ConfigOptions(object):
disabled = ["true", "false"] # Default value is "false"
stop = ["true", "false"] # Default value is "false"
reboot_after_patch = ["rebootifneed", # Default value is "rebootifneed"
"auto",
"required",
"notrequired"]
category = {"required" : "important", # Default value is "important"
"all" : "importantandrecommended"}
oneoff = ["true", "false"] # Default value is "false"
interval_of_weeks = [str(i) for i in range(1, 53)] # Default value is "1"
day_of_week = {"everyday" : range(1,8), # Default value is "everyday"
"monday" : 1,
"tuesday" : 2,
"wednesday": 3,
"thursday" : 4,
"friday" : 5,
"saturday" : 6,
"sunday" : 7}
| class Configoptions(object):
disabled = ['true', 'false']
stop = ['true', 'false']
reboot_after_patch = ['rebootifneed', 'auto', 'required', 'notrequired']
category = {'required': 'important', 'all': 'importantandrecommended'}
oneoff = ['true', 'false']
interval_of_weeks = [str(i) for i in range(1, 53)]
day_of_week = {'everyday': range(1, 8), 'monday': 1, 'tuesday': 2, 'wednesday': 3, 'thursday': 4, 'friday': 5, 'saturday': 6, 'sunday': 7} |
# pylint: disable=missing-module-docstring
#
# Copyright (C) 2020 by UsergeTeam@Github, < https://github.com/UsergeTeam >.
#
# This file is part of < https://github.com/UsergeTeam/Userge > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/uaudith/Userge/blob/master/LICENSE >
#
# All rights reserved.
__all__ = ["send_msg", "reply_last_msg", "edit_last_msg", "del_last_msg", "end"]
def _log(func):
def wrapper(text, log=None, tmp=None):
if log and callable(log):
if tmp:
log(tmp, text)
else:
log(text)
func(text)
return wrapper
def _send_data(*args) -> None:
with open("logs/logbot.stdin", 'a') as l_b:
l_b.write(f"{' '.join(args)}\n")
@_log
def send_msg(text: str, log=None, tmp=None) -> None: # pylint: disable=unused-argument
""" send message """
_send_data("sendMessage", text)
@_log
def reply_last_msg(text: str, log=None, tmp=None) -> None: # pylint: disable=unused-argument
""" reply to last message """
_send_data("replyLastMessage", text)
@_log
def edit_last_msg(text: str, log=None, tmp=None) -> None: # pylint: disable=unused-argument
""" edit last message """
_send_data("editLastMessage", text)
def del_last_msg() -> None:
""" delete last message """
_send_data("deleteLastMessage")
def end() -> None:
""" end bot session """
_send_data("quit")
| __all__ = ['send_msg', 'reply_last_msg', 'edit_last_msg', 'del_last_msg', 'end']
def _log(func):
def wrapper(text, log=None, tmp=None):
if log and callable(log):
if tmp:
log(tmp, text)
else:
log(text)
func(text)
return wrapper
def _send_data(*args) -> None:
with open('logs/logbot.stdin', 'a') as l_b:
l_b.write(f"{' '.join(args)}\n")
@_log
def send_msg(text: str, log=None, tmp=None) -> None:
""" send message """
_send_data('sendMessage', text)
@_log
def reply_last_msg(text: str, log=None, tmp=None) -> None:
""" reply to last message """
_send_data('replyLastMessage', text)
@_log
def edit_last_msg(text: str, log=None, tmp=None) -> None:
""" edit last message """
_send_data('editLastMessage', text)
def del_last_msg() -> None:
""" delete last message """
_send_data('deleteLastMessage')
def end() -> None:
""" end bot session """
_send_data('quit') |
nuke.root().knob('onScriptSave').setValue('''
import re
for n in nuke.allNodes():
if n.Class() == 'Write':
code = """
import re
fileVersion = re.search( r'[vV]\d+', os.path.split(nuke.root().name())[1]).group()
print fileVersion
for node in nuke.allNodes():
if node.Class() == 'Write':
node.knob('file').setValue(re.sub( r'[vV]\d+', fileVersion,node.knob('file').value()))
file = nuke.filename(nuke.thisNode())
dir = os.path.dirname(file)
osdir = nuke.callbacks.filenameFilter(dir)
try:
os.makedirs (osdir)
except OSError:
pass
"""
n['beforeRender'].setValue(code)
if n.Class() == 'Group':
print 'group'
for g_node in n.nodes():
if g_node.Class() == 'Write':
code = """
import re
fileVersion = re.search( r'[vV]\d+', os.path.split(nuke.root().name())[1]).group()
print fileVersion
curNode = nuke.thisNode()
curNode['file'].setValue(re.sub( r'[vV]\d+', fileVersion,nuke.thisNode().knob('file').value()))
file = nuke.filename(nuke.thisNode())
dir = os.path.dirname(file)
print dir
osdir = nuke.callbacks.filenameFilter(dir)
print osdir
try:
os.makedirs (osdir)
except OSError:
pass
"""
g_node['beforeRender'].setValue(code)
''') | nuke.root().knob('onScriptSave').setValue('\nimport re\nfor n in nuke.allNodes():\n\tif n.Class() == \'Write\':\n\t\tcode = """\nimport re\nfileVersion = re.search( r\'[vV]\\d+\', os.path.split(nuke.root().name())[1]).group()\nprint fileVersion\n\nfor node in nuke.allNodes():\n\tif node.Class() == \'Write\':\n\t\tnode.knob(\'file\').setValue(re.sub( r\'[vV]\\d+\', fileVersion,node.knob(\'file\').value()))\n\nfile = nuke.filename(nuke.thisNode())\ndir = os.path.dirname(file)\nosdir = nuke.callbacks.filenameFilter(dir)\ntry:\n\tos.makedirs (osdir)\nexcept OSError:\n\tpass\n\t\t"""\n\n\t\tn[\'beforeRender\'].setValue(code)\n\n\tif n.Class() == \'Group\':\n\t\tprint \'group\'\n\t\tfor g_node in n.nodes():\n\t\t\tif g_node.Class() == \'Write\':\t\t\t\t\n\t\t\t\tcode = """\nimport re\nfileVersion = re.search( r\'[vV]\\d+\', os.path.split(nuke.root().name())[1]).group()\nprint fileVersion\ncurNode = nuke.thisNode()\ncurNode[\'file\'].setValue(re.sub( r\'[vV]\\d+\', fileVersion,nuke.thisNode().knob(\'file\').value()))\n\nfile = nuke.filename(nuke.thisNode())\ndir = os.path.dirname(file)\nprint dir\nosdir = nuke.callbacks.filenameFilter(dir)\nprint osdir\ntry:\n\tos.makedirs (osdir)\nexcept OSError:\n\tpass\n\t\t"""\n\n\t\t\t\tg_node[\'beforeRender\'].setValue(code)\n') |
"""
Because on the ReadTheDocs Server we cannot import the core extension, because a libpython*so which the core.so
is linked against is not found, this module fakes the core.so such that imports works
"""
__version__ = (1, 2, 3, 4)
__features__ = {}
ALL_SITES = -1
class SQSResult:
pass
class IterationSettings:
pass
class BoostLogLevel:
trace = 1
debug = 2
info = 3
warning = 4
error = 5
class IterationMode:
random = 'random'
systematic = 'systematic'
class Structure:
pass
class Atom:
def __init__(self, z, symbol):
self.Z = z
self.symbol = symbol
def set_log_level(*args, **kwargs):
pass
def pair_sqs_iteration(*args, **kwargs):
pass
def pair_analysis(*args, **kwargs):
pass
def default_shell_distances(*args, **kwargs):
pass
def total_permutations(*args, **kwargs):
pass
def rank_structure(*args, **kwargs):
pass
def atoms_from_numbers(*args, **kwargs):
pass
def atoms_from_symbols(*args, **kwargs):
pass
def available_species(*args, **kwargs):
return [Atom(1, 'H')]
def symbols_from_z(*args, **kwargs):
pass
def z_from_symbols(*args, **kwargs):
pass
def build_configuration(*args, **kwargs):
pass | """
Because on the ReadTheDocs Server we cannot import the core extension, because a libpython*so which the core.so
is linked against is not found, this module fakes the core.so such that imports works
"""
__version__ = (1, 2, 3, 4)
__features__ = {}
all_sites = -1
class Sqsresult:
pass
class Iterationsettings:
pass
class Boostloglevel:
trace = 1
debug = 2
info = 3
warning = 4
error = 5
class Iterationmode:
random = 'random'
systematic = 'systematic'
class Structure:
pass
class Atom:
def __init__(self, z, symbol):
self.Z = z
self.symbol = symbol
def set_log_level(*args, **kwargs):
pass
def pair_sqs_iteration(*args, **kwargs):
pass
def pair_analysis(*args, **kwargs):
pass
def default_shell_distances(*args, **kwargs):
pass
def total_permutations(*args, **kwargs):
pass
def rank_structure(*args, **kwargs):
pass
def atoms_from_numbers(*args, **kwargs):
pass
def atoms_from_symbols(*args, **kwargs):
pass
def available_species(*args, **kwargs):
return [atom(1, 'H')]
def symbols_from_z(*args, **kwargs):
pass
def z_from_symbols(*args, **kwargs):
pass
def build_configuration(*args, **kwargs):
pass |
#
# PySNMP MIB module RBN-SMS1000-ENVMON-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RBN-SMS1000-ENVMON-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:53:21 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
SingleValueConstraint, ConstraintsUnion, ValueSizeConstraint, ConstraintsIntersection, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsUnion", "ValueSizeConstraint", "ConstraintsIntersection", "ValueRangeConstraint")
rbnMgmt, = mibBuilder.importSymbols("RBN-SMI", "rbnMgmt")
ModuleCompliance, NotificationGroup, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup")
iso, Bits, TimeTicks, NotificationType, Counter32, IpAddress, Unsigned32, Counter64, ObjectIdentity, Gauge32, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "Bits", "TimeTicks", "NotificationType", "Counter32", "IpAddress", "Unsigned32", "Counter64", "ObjectIdentity", "Gauge32", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "MibIdentifier")
TextualConvention, TruthValue, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "TruthValue", "DisplayString")
rbnSMS1000EnvMonMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 2352, 2, 3))
if mibBuilder.loadTexts: rbnSMS1000EnvMonMIB.setLastUpdated('9810062300Z')
if mibBuilder.loadTexts: rbnSMS1000EnvMonMIB.setOrganization('RedBack Networks, Inc.')
if mibBuilder.loadTexts: rbnSMS1000EnvMonMIB.setContactInfo(' RedBack Networks, Inc. Postal: 1389 Moffett Park Drive Sunnyvale, CA 94089-1134 USA Phone: +1 408 548 3500 Fax: +1 408 548 3599 E-mail: mib-info@RedBackNetworks.com')
if mibBuilder.loadTexts: rbnSMS1000EnvMonMIB.setDescription('The MIB used to manage the SMS1000 Environmental Monitor functionality.')
rbnSMS1000EnvMonMIBNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 2352, 2, 3, 0))
rbnSMS1000EnvMonMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2352, 2, 3, 1))
rbnSMS1000EnvMonMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 2352, 2, 3, 2))
rbnSMS1000FanFail = MibScalar((1, 3, 6, 1, 4, 1, 2352, 2, 3, 1, 1), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rbnSMS1000FanFail.setStatus('current')
if mibBuilder.loadTexts: rbnSMS1000FanFail.setDescription('The status of the SMS 1000 fan assemblies. If this object has the value true, then one or both of the SMS 1000 fan assemblies has failed. If this object has the value false, then all installed fan assemblies are operational.')
rbnSMS1000PowerFail = MibScalar((1, 3, 6, 1, 4, 1, 2352, 2, 3, 1, 2), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rbnSMS1000PowerFail.setStatus('current')
if mibBuilder.loadTexts: rbnSMS1000PowerFail.setDescription('The status of the SMS 1000 power modules. If this object has the value true, then one or both of the SMS 1000 power modules has failed. If this object has the value false, then all installed power modules are operational.')
rbnSMS1000FanFailChange = NotificationType((1, 3, 6, 1, 4, 1, 2352, 2, 3, 0, 1)).setObjects(("RBN-SMS1000-ENVMON-MIB", "rbnSMS1000FanFail"))
if mibBuilder.loadTexts: rbnSMS1000FanFailChange.setStatus('current')
if mibBuilder.loadTexts: rbnSMS1000FanFailChange.setDescription('A rbnSMS1000FanFailChange notification signifies that the value of rbnSMS1000FanFail has changed.')
rbnSMS1000PowerFailChange = NotificationType((1, 3, 6, 1, 4, 1, 2352, 2, 3, 0, 2)).setObjects(("RBN-SMS1000-ENVMON-MIB", "rbnSMS1000PowerFail"))
if mibBuilder.loadTexts: rbnSMS1000PowerFailChange.setStatus('current')
if mibBuilder.loadTexts: rbnSMS1000PowerFailChange.setDescription('A rbnSMS1000PowerFailChange notification signifies that the value of rbnSMS1000PowerFail has changed')
rbnSMS1000EnvMonMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 2352, 2, 3, 2, 1))
rbnSMS1000EnvMonMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2352, 2, 3, 2, 2))
rbnSMS1000EnvMonMIBObjectGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2352, 2, 3, 2, 1, 1)).setObjects(("RBN-SMS1000-ENVMON-MIB", "rbnSMS1000FanFail"), ("RBN-SMS1000-ENVMON-MIB", "rbnSMS1000PowerFail"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
rbnSMS1000EnvMonMIBObjectGroup = rbnSMS1000EnvMonMIBObjectGroup.setStatus('current')
if mibBuilder.loadTexts: rbnSMS1000EnvMonMIBObjectGroup.setDescription('A collection of objects providing SMS 1000 environmental monitor information.')
rbnSMS1000EnvMonMIBNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 2352, 2, 3, 2, 1, 2)).setObjects(("RBN-SMS1000-ENVMON-MIB", "rbnSMS1000FanFailChange"), ("RBN-SMS1000-ENVMON-MIB", "rbnSMS1000PowerFailChange"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
rbnSMS1000EnvMonMIBNotificationGroup = rbnSMS1000EnvMonMIBNotificationGroup.setStatus('current')
if mibBuilder.loadTexts: rbnSMS1000EnvMonMIBNotificationGroup.setDescription('A collection of notifications providing SMS 1000 environmental monitor information.')
rbnSMS1000EnvMonMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2352, 2, 3, 2, 2, 1)).setObjects(("RBN-SMS1000-ENVMON-MIB", "rbnSMS1000EnvMonMIBObjectGroup"), ("RBN-SMS1000-ENVMON-MIB", "rbnSMS1000EnvMonMIBNotificationGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
rbnSMS1000EnvMonMIBCompliance = rbnSMS1000EnvMonMIBCompliance.setStatus('current')
if mibBuilder.loadTexts: rbnSMS1000EnvMonMIBCompliance.setDescription('The compliance statement for the SMS 1000 EnvMon MIB')
mibBuilder.exportSymbols("RBN-SMS1000-ENVMON-MIB", rbnSMS1000EnvMonMIBObjectGroup=rbnSMS1000EnvMonMIBObjectGroup, rbnSMS1000EnvMonMIBConformance=rbnSMS1000EnvMonMIBConformance, rbnSMS1000PowerFailChange=rbnSMS1000PowerFailChange, rbnSMS1000FanFail=rbnSMS1000FanFail, PYSNMP_MODULE_ID=rbnSMS1000EnvMonMIB, rbnSMS1000PowerFail=rbnSMS1000PowerFail, rbnSMS1000EnvMonMIBObjects=rbnSMS1000EnvMonMIBObjects, rbnSMS1000EnvMonMIBNotifications=rbnSMS1000EnvMonMIBNotifications, rbnSMS1000EnvMonMIBNotificationGroup=rbnSMS1000EnvMonMIBNotificationGroup, rbnSMS1000EnvMonMIBCompliance=rbnSMS1000EnvMonMIBCompliance, rbnSMS1000EnvMonMIB=rbnSMS1000EnvMonMIB, rbnSMS1000FanFailChange=rbnSMS1000FanFailChange, rbnSMS1000EnvMonMIBGroups=rbnSMS1000EnvMonMIBGroups, rbnSMS1000EnvMonMIBCompliances=rbnSMS1000EnvMonMIBCompliances)
| (integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(single_value_constraint, constraints_union, value_size_constraint, constraints_intersection, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueSizeConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint')
(rbn_mgmt,) = mibBuilder.importSymbols('RBN-SMI', 'rbnMgmt')
(module_compliance, notification_group, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup', 'ObjectGroup')
(iso, bits, time_ticks, notification_type, counter32, ip_address, unsigned32, counter64, object_identity, gauge32, integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, module_identity, mib_identifier) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'Bits', 'TimeTicks', 'NotificationType', 'Counter32', 'IpAddress', 'Unsigned32', 'Counter64', 'ObjectIdentity', 'Gauge32', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ModuleIdentity', 'MibIdentifier')
(textual_convention, truth_value, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'TruthValue', 'DisplayString')
rbn_sms1000_env_mon_mib = module_identity((1, 3, 6, 1, 4, 1, 2352, 2, 3))
if mibBuilder.loadTexts:
rbnSMS1000EnvMonMIB.setLastUpdated('9810062300Z')
if mibBuilder.loadTexts:
rbnSMS1000EnvMonMIB.setOrganization('RedBack Networks, Inc.')
if mibBuilder.loadTexts:
rbnSMS1000EnvMonMIB.setContactInfo(' RedBack Networks, Inc. Postal: 1389 Moffett Park Drive Sunnyvale, CA 94089-1134 USA Phone: +1 408 548 3500 Fax: +1 408 548 3599 E-mail: mib-info@RedBackNetworks.com')
if mibBuilder.loadTexts:
rbnSMS1000EnvMonMIB.setDescription('The MIB used to manage the SMS1000 Environmental Monitor functionality.')
rbn_sms1000_env_mon_mib_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 2352, 2, 3, 0))
rbn_sms1000_env_mon_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2352, 2, 3, 1))
rbn_sms1000_env_mon_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 2352, 2, 3, 2))
rbn_sms1000_fan_fail = mib_scalar((1, 3, 6, 1, 4, 1, 2352, 2, 3, 1, 1), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rbnSMS1000FanFail.setStatus('current')
if mibBuilder.loadTexts:
rbnSMS1000FanFail.setDescription('The status of the SMS 1000 fan assemblies. If this object has the value true, then one or both of the SMS 1000 fan assemblies has failed. If this object has the value false, then all installed fan assemblies are operational.')
rbn_sms1000_power_fail = mib_scalar((1, 3, 6, 1, 4, 1, 2352, 2, 3, 1, 2), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rbnSMS1000PowerFail.setStatus('current')
if mibBuilder.loadTexts:
rbnSMS1000PowerFail.setDescription('The status of the SMS 1000 power modules. If this object has the value true, then one or both of the SMS 1000 power modules has failed. If this object has the value false, then all installed power modules are operational.')
rbn_sms1000_fan_fail_change = notification_type((1, 3, 6, 1, 4, 1, 2352, 2, 3, 0, 1)).setObjects(('RBN-SMS1000-ENVMON-MIB', 'rbnSMS1000FanFail'))
if mibBuilder.loadTexts:
rbnSMS1000FanFailChange.setStatus('current')
if mibBuilder.loadTexts:
rbnSMS1000FanFailChange.setDescription('A rbnSMS1000FanFailChange notification signifies that the value of rbnSMS1000FanFail has changed.')
rbn_sms1000_power_fail_change = notification_type((1, 3, 6, 1, 4, 1, 2352, 2, 3, 0, 2)).setObjects(('RBN-SMS1000-ENVMON-MIB', 'rbnSMS1000PowerFail'))
if mibBuilder.loadTexts:
rbnSMS1000PowerFailChange.setStatus('current')
if mibBuilder.loadTexts:
rbnSMS1000PowerFailChange.setDescription('A rbnSMS1000PowerFailChange notification signifies that the value of rbnSMS1000PowerFail has changed')
rbn_sms1000_env_mon_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 2352, 2, 3, 2, 1))
rbn_sms1000_env_mon_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 2352, 2, 3, 2, 2))
rbn_sms1000_env_mon_mib_object_group = object_group((1, 3, 6, 1, 4, 1, 2352, 2, 3, 2, 1, 1)).setObjects(('RBN-SMS1000-ENVMON-MIB', 'rbnSMS1000FanFail'), ('RBN-SMS1000-ENVMON-MIB', 'rbnSMS1000PowerFail'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
rbn_sms1000_env_mon_mib_object_group = rbnSMS1000EnvMonMIBObjectGroup.setStatus('current')
if mibBuilder.loadTexts:
rbnSMS1000EnvMonMIBObjectGroup.setDescription('A collection of objects providing SMS 1000 environmental monitor information.')
rbn_sms1000_env_mon_mib_notification_group = notification_group((1, 3, 6, 1, 4, 1, 2352, 2, 3, 2, 1, 2)).setObjects(('RBN-SMS1000-ENVMON-MIB', 'rbnSMS1000FanFailChange'), ('RBN-SMS1000-ENVMON-MIB', 'rbnSMS1000PowerFailChange'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
rbn_sms1000_env_mon_mib_notification_group = rbnSMS1000EnvMonMIBNotificationGroup.setStatus('current')
if mibBuilder.loadTexts:
rbnSMS1000EnvMonMIBNotificationGroup.setDescription('A collection of notifications providing SMS 1000 environmental monitor information.')
rbn_sms1000_env_mon_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2352, 2, 3, 2, 2, 1)).setObjects(('RBN-SMS1000-ENVMON-MIB', 'rbnSMS1000EnvMonMIBObjectGroup'), ('RBN-SMS1000-ENVMON-MIB', 'rbnSMS1000EnvMonMIBNotificationGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
rbn_sms1000_env_mon_mib_compliance = rbnSMS1000EnvMonMIBCompliance.setStatus('current')
if mibBuilder.loadTexts:
rbnSMS1000EnvMonMIBCompliance.setDescription('The compliance statement for the SMS 1000 EnvMon MIB')
mibBuilder.exportSymbols('RBN-SMS1000-ENVMON-MIB', rbnSMS1000EnvMonMIBObjectGroup=rbnSMS1000EnvMonMIBObjectGroup, rbnSMS1000EnvMonMIBConformance=rbnSMS1000EnvMonMIBConformance, rbnSMS1000PowerFailChange=rbnSMS1000PowerFailChange, rbnSMS1000FanFail=rbnSMS1000FanFail, PYSNMP_MODULE_ID=rbnSMS1000EnvMonMIB, rbnSMS1000PowerFail=rbnSMS1000PowerFail, rbnSMS1000EnvMonMIBObjects=rbnSMS1000EnvMonMIBObjects, rbnSMS1000EnvMonMIBNotifications=rbnSMS1000EnvMonMIBNotifications, rbnSMS1000EnvMonMIBNotificationGroup=rbnSMS1000EnvMonMIBNotificationGroup, rbnSMS1000EnvMonMIBCompliance=rbnSMS1000EnvMonMIBCompliance, rbnSMS1000EnvMonMIB=rbnSMS1000EnvMonMIB, rbnSMS1000FanFailChange=rbnSMS1000FanFailChange, rbnSMS1000EnvMonMIBGroups=rbnSMS1000EnvMonMIBGroups, rbnSMS1000EnvMonMIBCompliances=rbnSMS1000EnvMonMIBCompliances) |
"""
Author : Drew Heasman
Date(last updated) : 05 June 2021
Description : Geochemical calculations
"""
elements = {}
elements["O"] = 15.9994
elements["Al"] = 26.981539
elements["Si"] = 28.0855
elements["K"] = 39.0983
elements["Cr"] = 51.9961
elements["Fe"] = 55.845
elements["Nd"] = 144.24
def get_atomic_weight(formula):
'''
returns the atomic weight of a formula
'''
atomic_weight = 0
for element in formula:
atomic_weight = atomic_weight + elements[element]
return atomic_weight
def get_moles_formula(grams, formula):
'''
returns the number of moles of a formula, given grams and the formula
'''
return grams/get_atomic_weight(formula)
def get_moles_element(grams, formula, element):
'''
get the moles of an element given the grams, formula, and element
'''
moles = grams/get_atomic_weight(formula)
occ = formula.count(element)
return moles * occ
def y_slope(m, b, x_list):
y_list = []
for x in x_list:
y_list.append(m*x+b)
return y_list
def get_num_atoms_from_moles(moles):
'''
returns the number of atoms, given the number of moles.
'''
return moles * 6.022 * 10**23
def convert_molality_to_molarity(molality, atomic_weight, density):
'''
Converts molality to molarity given a molality, an atomic weight,
and a solution density
'''
solution_volume = (1 + ((molality*atomic_weight/1000))) / density
return molality/solution_volume
def get_mass_of_an_atom(atomic_mass):
'''
returns the mass of one atom, given the atomic mass of an isotope
'''
return atomic_mass / (6.022*10**23)
def get_num_atoms_formula(grams, formula, element):
'''
return the number of atoms of an element in a formula
'''
moles = get_moles_element(grams, formula, element)
return get_num_atoms_from_moles(moles)
def get_weight_perc_formula(formula, element, num_occ):
'''
return the weight percent of an element given the formula, element, and
the number of occurences of that element in the formula.
'''
formula_atomic_weight = get_atomic_weight(formula)
element_weight = get_atomic_weight(element)
return (element_weight * num_occ) / formula_atomic_weight * 100
def get_ppm_formula(formula, element, num_occ):
'''
return the ppm of an element given the formula, element, and the number
of occurences of that element in the formula.
'''
return get_weight_perc_formula(formula, element, num_occ) * 10000
def get_atomic_perc(formula, element):
'''
return the atomic percentage of an element in a formula
'''
return formula.count(element) / len(formula) * 100
| """
Author : Drew Heasman
Date(last updated) : 05 June 2021
Description : Geochemical calculations
"""
elements = {}
elements['O'] = 15.9994
elements['Al'] = 26.981539
elements['Si'] = 28.0855
elements['K'] = 39.0983
elements['Cr'] = 51.9961
elements['Fe'] = 55.845
elements['Nd'] = 144.24
def get_atomic_weight(formula):
"""
returns the atomic weight of a formula
"""
atomic_weight = 0
for element in formula:
atomic_weight = atomic_weight + elements[element]
return atomic_weight
def get_moles_formula(grams, formula):
"""
returns the number of moles of a formula, given grams and the formula
"""
return grams / get_atomic_weight(formula)
def get_moles_element(grams, formula, element):
"""
get the moles of an element given the grams, formula, and element
"""
moles = grams / get_atomic_weight(formula)
occ = formula.count(element)
return moles * occ
def y_slope(m, b, x_list):
y_list = []
for x in x_list:
y_list.append(m * x + b)
return y_list
def get_num_atoms_from_moles(moles):
"""
returns the number of atoms, given the number of moles.
"""
return moles * 6.022 * 10 ** 23
def convert_molality_to_molarity(molality, atomic_weight, density):
"""
Converts molality to molarity given a molality, an atomic weight,
and a solution density
"""
solution_volume = (1 + molality * atomic_weight / 1000) / density
return molality / solution_volume
def get_mass_of_an_atom(atomic_mass):
"""
returns the mass of one atom, given the atomic mass of an isotope
"""
return atomic_mass / (6.022 * 10 ** 23)
def get_num_atoms_formula(grams, formula, element):
"""
return the number of atoms of an element in a formula
"""
moles = get_moles_element(grams, formula, element)
return get_num_atoms_from_moles(moles)
def get_weight_perc_formula(formula, element, num_occ):
"""
return the weight percent of an element given the formula, element, and
the number of occurences of that element in the formula.
"""
formula_atomic_weight = get_atomic_weight(formula)
element_weight = get_atomic_weight(element)
return element_weight * num_occ / formula_atomic_weight * 100
def get_ppm_formula(formula, element, num_occ):
"""
return the ppm of an element given the formula, element, and the number
of occurences of that element in the formula.
"""
return get_weight_perc_formula(formula, element, num_occ) * 10000
def get_atomic_perc(formula, element):
"""
return the atomic percentage of an element in a formula
"""
return formula.count(element) / len(formula) * 100 |
'''
Given a singly linked list, determine if it is a palindrome.
Example 1:
Input: 1->2
Output: false
Example 2:
Input: 1->2->2->1
Output: true
'''
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def isPalindrome(self, head: ListNode) -> bool:
'''
Find the middle of the linked list and reverse the half of the
linked list.
- Two pointers
'''
if not head or not head.next:
return True
else:
slow = head
quick = head
rev_head = None
while quick and quick.next:
# move forward pointers and reverse the linked list
temp = slow
slow = slow.next
quick = quick.next.next
temp.next = rev_head
rev_head = temp
if not quick: # the length of the linked list is even
quick = slow
else:
quick = slow.next
while quick and rev_head:
if quick.val != rev_head.val:
return False
quick = quick.next
rev_head = rev_head.next
return True
| """
Given a singly linked list, determine if it is a palindrome.
Example 1:
Input: 1->2
Output: false
Example 2:
Input: 1->2->2->1
Output: true
"""
class Solution:
def is_palindrome(self, head: ListNode) -> bool:
"""
Find the middle of the linked list and reverse the half of the
linked list.
- Two pointers
"""
if not head or not head.next:
return True
else:
slow = head
quick = head
rev_head = None
while quick and quick.next:
temp = slow
slow = slow.next
quick = quick.next.next
temp.next = rev_head
rev_head = temp
if not quick:
quick = slow
else:
quick = slow.next
while quick and rev_head:
if quick.val != rev_head.val:
return False
quick = quick.next
rev_head = rev_head.next
return True |
with open("sample.txt", 'a') as jabber:
for i in range(1,13):
for j in range(1,13):
print(f"{j:>2} times {i:2} is {i*j:<}", file=jabber)
print("-"*20, file=jabber) | with open('sample.txt', 'a') as jabber:
for i in range(1, 13):
for j in range(1, 13):
print(f'{j:>2} times {i:2} is {i * j:<}', file=jabber)
print('-' * 20, file=jabber) |
"""
In Python, a string can be split on a delimiter.
Example:
>>> a = "this is a string"
>>> a = a.split(" ") # a is converted to a list of strings.
>>> print a
['this', 'is', 'a', 'string']
Joining a string is simple:
>>> a = "-".join(a)
>>> print a
this-is-a-string
"""
def split_and_join(line):
# write your code here
line = line.split(" ")
return ("-").join(line)
if __name__ == '__main__':
line = input("Enter the string\n")
result = split_and_join(line)
print(result)
| """
In Python, a string can be split on a delimiter.
Example:
>>> a = "this is a string"
>>> a = a.split(" ") # a is converted to a list of strings.
>>> print a
['this', 'is', 'a', 'string']
Joining a string is simple:
>>> a = "-".join(a)
>>> print a
this-is-a-string
"""
def split_and_join(line):
line = line.split(' ')
return '-'.join(line)
if __name__ == '__main__':
line = input('Enter the string\n')
result = split_and_join(line)
print(result) |
class SocketManager(object):
def __init__(self):
self.ws = set()
def add_socket(self, ws):
self.ws.add(ws)
def remove_sockets(self, disconnected_ws):
if not isinstance(disconnected_ws, set):
disconnected_ws = {disconnected_ws, }
self.ws -= disconnected_ws
| class Socketmanager(object):
def __init__(self):
self.ws = set()
def add_socket(self, ws):
self.ws.add(ws)
def remove_sockets(self, disconnected_ws):
if not isinstance(disconnected_ws, set):
disconnected_ws = {disconnected_ws}
self.ws -= disconnected_ws |
# This class handles exceptions. All exceptions raised will be passed through the API to the client
class DebugException(Exception):
exception_dict = {
101: "Don't be naughty, type something with meaning >.<", # "Invalid input, please check your sentence",
301: "Keyword not found in Database",
302: "Invalid Synonym Level. Level must be integer between 1 and 3",
303: "No Synonym Link found",
304: "Invalid base word",
305: "Relationship already exists",
306: "Relationship count is not 2",
307: "Relationship not deleted",
308: "Relationships don't exist",
309: "Invalid synonym",
310: "Synonym is the same as base word...",
311: "Keyword already exists",
# 500 series: Verse database
501: "Cannot find verse, please check spelling and capitalization",
502: "Verse in this location already exists",
503: "Why are you editing a non-existent record??",
504: "Keyword levels can only be 1, 2 or 3",
505: "Invalid Verse Location, Check Again",
506: "Invalid Bible Version, Check Again",
507: "Cannot Parse Bible Location, Check Again"
}
def __init__(self, code, message=""):
self.code = code
self.title = self.exception_dict[self.code]
self.message = message
def __str__(self):
if self.message is "":
return "Exception " + str(self.code) + " " + self.title
else:
return "Exception " + str(self.code) + " " + self.title + ": " + self.message
| class Debugexception(Exception):
exception_dict = {101: "Don't be naughty, type something with meaning >.<", 301: 'Keyword not found in Database', 302: 'Invalid Synonym Level. Level must be integer between 1 and 3', 303: 'No Synonym Link found', 304: 'Invalid base word', 305: 'Relationship already exists', 306: 'Relationship count is not 2', 307: 'Relationship not deleted', 308: "Relationships don't exist", 309: 'Invalid synonym', 310: 'Synonym is the same as base word...', 311: 'Keyword already exists', 501: 'Cannot find verse, please check spelling and capitalization', 502: 'Verse in this location already exists', 503: 'Why are you editing a non-existent record??', 504: 'Keyword levels can only be 1, 2 or 3', 505: 'Invalid Verse Location, Check Again', 506: 'Invalid Bible Version, Check Again', 507: 'Cannot Parse Bible Location, Check Again'}
def __init__(self, code, message=''):
self.code = code
self.title = self.exception_dict[self.code]
self.message = message
def __str__(self):
if self.message is '':
return 'Exception ' + str(self.code) + ' ' + self.title
else:
return 'Exception ' + str(self.code) + ' ' + self.title + ': ' + self.message |
class MockFeeEstOne():
@property
def status_code(self):
return 200
def json(self):
return {"fastestFee": 200, "halfHourFee": 200, "hourFee": 100}
class TestDataOne():
@property
def path(self):
return 'tests/test_files'
@property
def pub_key_file_name(self):
return f"{self.path}/pubKey{self.vkhandle}.pem"
@property
def vkhandle(self):
return '7340043'
@property
def skhandle(self):
return '7340044'
@property
def address(self):
return '1DSRQWjbNXLN8ZZZ6gqcGx1WNZeKHEJXDv'
@property
def confirmed_balance(self):
return 5763656
@property
def all(self):
return True
@property
def fee(self):
return 104600
@property
def recipient(self):
return '1BHznNt5x9rqMQ1dpWy4fw5y5PSJV3ZR3L'
@property
def value(self):
return None
@property
def change_address(self):
return None
@property
def tx_inputs(self):
return [
{
'output_no': 0,
'outpoint_index': b'\x00\x00\x00\x00',
'outpoint_hash': bytearray(
b"Y:N~v%0\xbc\xcf\xbc\xd9@\xc2K\xc3\x92\xc6\xfb\xe7#\xcf\x8e\xf4\xe8\xa9t\xf5m\x1fE\'\x9d"
)
},
{
'output_no': 0,
'outpoint_index': b'\x00\x00\x00\x00',
'outpoint_hash': bytearray(
b'qg/\xe5\x86\xbcvS\xc7t\\D\r\xc4\x1dG8\xe9\xab3\xa4|N.x(\xa7v\xaf\x8d\xcfx'
)
},
{
'output_no': 0,
'outpoint_index': b'\x00\x00\x00\x00',
'outpoint_hash': bytearray(
b'"\x9a\xd5\x904\\^\xac^\xc1\xe6c>\x93mU\xfc\xf8\xab\x17\xf4G[\xae\xd9\x13\xb9\xc6\xe7\x05\x7f_'
)
}
]
@property
def mock_fees(self):
return {
'estimates': {
'Fastest': 97600,
'Half hour': 97600,
'One hour': 48800
},
'n_inputs': 3,
'n_outputs': 1
}
@property
def tosign_tx_hex(self):
return [
'0100000003593a4e7e762530bccfbcd940c24bc392c6fbe723cf8ef4e8a974f56d1f45279d000000001976a914887047f28478e316732db0bccd086482c8617e4a88acffffffff71672fe586bc7653c7745c440dc41d4738e9ab33a47c4e2e7828a776af8dcf780000000000ffffffff229ad590345c5eac5ec1e6633e936d55fcf8ab17f4475baed913b9c6e7057f5f0000000000ffffffff01b0595600000000001976a91470e825c3aa5396f6cfe794bcc6ad61ab9dfa6a4088ac0000000001000000',
'0100000003593a4e7e762530bccfbcd940c24bc392c6fbe723cf8ef4e8a974f56d1f45279d0000000000ffffffff71672fe586bc7653c7745c440dc41d4738e9ab33a47c4e2e7828a776af8dcf78000000001976a914887047f28478e316732db0bccd086482c8617e4a88acffffffff229ad590345c5eac5ec1e6633e936d55fcf8ab17f4475baed913b9c6e7057f5f0000000000ffffffff01b0595600000000001976a91470e825c3aa5396f6cfe794bcc6ad61ab9dfa6a4088ac0000000001000000',
'0100000003593a4e7e762530bccfbcd940c24bc392c6fbe723cf8ef4e8a974f56d1f45279d0000000000ffffffff71672fe586bc7653c7745c440dc41d4738e9ab33a47c4e2e7828a776af8dcf780000000000ffffffff229ad590345c5eac5ec1e6633e936d55fcf8ab17f4475baed913b9c6e7057f5f000000001976a914887047f28478e316732db0bccd086482c8617e4a88acffffffff01b0595600000000001976a91470e825c3aa5396f6cfe794bcc6ad61ab9dfa6a4088ac0000000001000000'
]
@property
def tosign_tx_hashed_hex(self):
return [
'af69b4567cbcd15f2c719a62311ef8fe47711e21c038dad27f3fc631baf21f3c', '600da7c38b14b9bfc44a6deba21621555b1aadba9066a1e76fe4a7e48082748f', 'f5aa21d884e6e5b4eac08803640b6546145b2f2bf34a04945ea7685615454f27'
]
@property
def tx_hex(self):
return '0100000003593a4e7e762530bccfbcd940c24bc392c6fbe723cf8ef4e8a974f56d1f45279d000000008a473044022038096755f89ba2cb28f4b4a7db056bbbe77972560d65da3a55e2ef702fd837f90220196ed119a36cb134000f90ff6048a7b1a838ee65c2369207145305155c3953fa0141046e9cd8479193a02d025d236545e72edf10237e54a64a887df866f8d5b86a0fd55449ad821df8e2568116e52cdee3a6b11d7ae7d5e1920244e2426704c5f58005ffffffff71672fe586bc7653c7745c440dc41d4738e9ab33a47c4e2e7828a776af8dcf78000000008a473044022022bc4f1e0075c943af3065072ee45231846fc3a7e2c9192766ded3a963e207880220415b88dcae7cf63eeb504c6c96ebb3b8049f00cc41dee7ed0309d29c06549e4b0141046e9cd8479193a02d025d236545e72edf10237e54a64a887df866f8d5b86a0fd55449ad821df8e2568116e52cdee3a6b11d7ae7d5e1920244e2426704c5f58005ffffffff229ad590345c5eac5ec1e6633e936d55fcf8ab17f4475baed913b9c6e7057f5f000000008b483045022100f659e8a85019ae4562665a2377caae4535b7674a2478567adcc44133c96cd4bc022045e7076b0e212159323b68cc4a29805e0d12f349d23e8ca8f6fac79a1d9afcc60141046e9cd8479193a02d025d236545e72edf10237e54a64a887df866f8d5b86a0fd55449ad821df8e2568116e52cdee3a6b11d7ae7d5e1920244e2426704c5f58005ffffffff01b0595600000000001976a91470e825c3aa5396f6cfe794bcc6ad61ab9dfa6a4088ac00000000'
@property
def signature_files(self):
signature_file_names = ['signedTx7340043_1.der',
'signedTx7340043_2.der', 'signedTx7340043_3.der']
signature_files = []
for signature_file_name in signature_file_names:
file = open(f'{self.path}/{signature_file_name}', 'rb')
signature_files.append(file)
return signature_files
@property
def aws(self):
return True
@property
def output_path(self):
return 'test_output'
@property
def pem(self):
return '-----BEGIN PUBLIC KEY-----\nMFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEbpzYR5GToC0CXSNlRecu3xAjflSmSoh9\n+Gb41bhqD9VUSa2CHfjiVoEW5Sze46axHXrn1eGSAkTiQmcExfWABQ==\n-----END PUBLIC KEY-----\n'
@property
def addr_json_file(self):
return {
'file_name': f'addr{self.vkhandle}',
'vkhandle': self.vkhandle,
'skhandle': self.skhandle,
'pem': self.pem
}
@property
def addr_csv_file(self):
return [self.vkhandle, self.skhandle, self.address, str(self.confirmed_balance)]
@property
def addr_json_file_name(self):
return f"{self.path}/addr{self.vkhandle}.json"
@property
def bitcoinfees_mock_api(self):
n_inputs = len(self.tx_inputs)
n_outputs = 1 if self.all else 2
bytes = 10 + (n_inputs * 148) + (n_outputs * 34)
resp = {"fastestFee": 100, "halfHourFee": 75, "hourFee": 50}
estimate = {'Fastest': resp['fastestFee'] * bytes,
'Half hour': resp['halfHourFee'] * bytes,
'One hour': resp['hourFee'] * bytes}
return estimate
@property
def signature_file_names(self):
i = 0
sig_file_names = []
while i < len(self.tx_inputs):
sig_file_names.append(f'{self.path}/signedTx{self.vkhandle}_{i+1}.der')
i += 1
return sig_file_names
@property
def tx_json_file_name(self):
return f'{self.path}/tx{self.vkhandle}.json'
@property
def tx_json_file(self):
return {
'file_name': f'tx{self.vkhandle}',
'all': self.all,
'fee': self.fee,
'recipient': self.recipient,
'partial': False if self.all else True,
'vkhandle': self.vkhandle,
'skhandle': self.skhandle,
'pem': self.pem,
'address': self.address,
'confrimed_balance': self.confirmed_balance,
'n_tx_inputs': len(self.tx_inputs)
}
| class Mockfeeestone:
@property
def status_code(self):
return 200
def json(self):
return {'fastestFee': 200, 'halfHourFee': 200, 'hourFee': 100}
class Testdataone:
@property
def path(self):
return 'tests/test_files'
@property
def pub_key_file_name(self):
return f'{self.path}/pubKey{self.vkhandle}.pem'
@property
def vkhandle(self):
return '7340043'
@property
def skhandle(self):
return '7340044'
@property
def address(self):
return '1DSRQWjbNXLN8ZZZ6gqcGx1WNZeKHEJXDv'
@property
def confirmed_balance(self):
return 5763656
@property
def all(self):
return True
@property
def fee(self):
return 104600
@property
def recipient(self):
return '1BHznNt5x9rqMQ1dpWy4fw5y5PSJV3ZR3L'
@property
def value(self):
return None
@property
def change_address(self):
return None
@property
def tx_inputs(self):
return [{'output_no': 0, 'outpoint_index': b'\x00\x00\x00\x00', 'outpoint_hash': bytearray(b"Y:N~v%0\xbc\xcf\xbc\xd9@\xc2K\xc3\x92\xc6\xfb\xe7#\xcf\x8e\xf4\xe8\xa9t\xf5m\x1fE'\x9d")}, {'output_no': 0, 'outpoint_index': b'\x00\x00\x00\x00', 'outpoint_hash': bytearray(b'qg/\xe5\x86\xbcvS\xc7t\\D\r\xc4\x1dG8\xe9\xab3\xa4|N.x(\xa7v\xaf\x8d\xcfx')}, {'output_no': 0, 'outpoint_index': b'\x00\x00\x00\x00', 'outpoint_hash': bytearray(b'"\x9a\xd5\x904\\^\xac^\xc1\xe6c>\x93mU\xfc\xf8\xab\x17\xf4G[\xae\xd9\x13\xb9\xc6\xe7\x05\x7f_')}]
@property
def mock_fees(self):
return {'estimates': {'Fastest': 97600, 'Half hour': 97600, 'One hour': 48800}, 'n_inputs': 3, 'n_outputs': 1}
@property
def tosign_tx_hex(self):
return ['0100000003593a4e7e762530bccfbcd940c24bc392c6fbe723cf8ef4e8a974f56d1f45279d000000001976a914887047f28478e316732db0bccd086482c8617e4a88acffffffff71672fe586bc7653c7745c440dc41d4738e9ab33a47c4e2e7828a776af8dcf780000000000ffffffff229ad590345c5eac5ec1e6633e936d55fcf8ab17f4475baed913b9c6e7057f5f0000000000ffffffff01b0595600000000001976a91470e825c3aa5396f6cfe794bcc6ad61ab9dfa6a4088ac0000000001000000', '0100000003593a4e7e762530bccfbcd940c24bc392c6fbe723cf8ef4e8a974f56d1f45279d0000000000ffffffff71672fe586bc7653c7745c440dc41d4738e9ab33a47c4e2e7828a776af8dcf78000000001976a914887047f28478e316732db0bccd086482c8617e4a88acffffffff229ad590345c5eac5ec1e6633e936d55fcf8ab17f4475baed913b9c6e7057f5f0000000000ffffffff01b0595600000000001976a91470e825c3aa5396f6cfe794bcc6ad61ab9dfa6a4088ac0000000001000000', '0100000003593a4e7e762530bccfbcd940c24bc392c6fbe723cf8ef4e8a974f56d1f45279d0000000000ffffffff71672fe586bc7653c7745c440dc41d4738e9ab33a47c4e2e7828a776af8dcf780000000000ffffffff229ad590345c5eac5ec1e6633e936d55fcf8ab17f4475baed913b9c6e7057f5f000000001976a914887047f28478e316732db0bccd086482c8617e4a88acffffffff01b0595600000000001976a91470e825c3aa5396f6cfe794bcc6ad61ab9dfa6a4088ac0000000001000000']
@property
def tosign_tx_hashed_hex(self):
return ['af69b4567cbcd15f2c719a62311ef8fe47711e21c038dad27f3fc631baf21f3c', '600da7c38b14b9bfc44a6deba21621555b1aadba9066a1e76fe4a7e48082748f', 'f5aa21d884e6e5b4eac08803640b6546145b2f2bf34a04945ea7685615454f27']
@property
def tx_hex(self):
return '0100000003593a4e7e762530bccfbcd940c24bc392c6fbe723cf8ef4e8a974f56d1f45279d000000008a473044022038096755f89ba2cb28f4b4a7db056bbbe77972560d65da3a55e2ef702fd837f90220196ed119a36cb134000f90ff6048a7b1a838ee65c2369207145305155c3953fa0141046e9cd8479193a02d025d236545e72edf10237e54a64a887df866f8d5b86a0fd55449ad821df8e2568116e52cdee3a6b11d7ae7d5e1920244e2426704c5f58005ffffffff71672fe586bc7653c7745c440dc41d4738e9ab33a47c4e2e7828a776af8dcf78000000008a473044022022bc4f1e0075c943af3065072ee45231846fc3a7e2c9192766ded3a963e207880220415b88dcae7cf63eeb504c6c96ebb3b8049f00cc41dee7ed0309d29c06549e4b0141046e9cd8479193a02d025d236545e72edf10237e54a64a887df866f8d5b86a0fd55449ad821df8e2568116e52cdee3a6b11d7ae7d5e1920244e2426704c5f58005ffffffff229ad590345c5eac5ec1e6633e936d55fcf8ab17f4475baed913b9c6e7057f5f000000008b483045022100f659e8a85019ae4562665a2377caae4535b7674a2478567adcc44133c96cd4bc022045e7076b0e212159323b68cc4a29805e0d12f349d23e8ca8f6fac79a1d9afcc60141046e9cd8479193a02d025d236545e72edf10237e54a64a887df866f8d5b86a0fd55449ad821df8e2568116e52cdee3a6b11d7ae7d5e1920244e2426704c5f58005ffffffff01b0595600000000001976a91470e825c3aa5396f6cfe794bcc6ad61ab9dfa6a4088ac00000000'
@property
def signature_files(self):
signature_file_names = ['signedTx7340043_1.der', 'signedTx7340043_2.der', 'signedTx7340043_3.der']
signature_files = []
for signature_file_name in signature_file_names:
file = open(f'{self.path}/{signature_file_name}', 'rb')
signature_files.append(file)
return signature_files
@property
def aws(self):
return True
@property
def output_path(self):
return 'test_output'
@property
def pem(self):
return '-----BEGIN PUBLIC KEY-----\nMFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEbpzYR5GToC0CXSNlRecu3xAjflSmSoh9\n+Gb41bhqD9VUSa2CHfjiVoEW5Sze46axHXrn1eGSAkTiQmcExfWABQ==\n-----END PUBLIC KEY-----\n'
@property
def addr_json_file(self):
return {'file_name': f'addr{self.vkhandle}', 'vkhandle': self.vkhandle, 'skhandle': self.skhandle, 'pem': self.pem}
@property
def addr_csv_file(self):
return [self.vkhandle, self.skhandle, self.address, str(self.confirmed_balance)]
@property
def addr_json_file_name(self):
return f'{self.path}/addr{self.vkhandle}.json'
@property
def bitcoinfees_mock_api(self):
n_inputs = len(self.tx_inputs)
n_outputs = 1 if self.all else 2
bytes = 10 + n_inputs * 148 + n_outputs * 34
resp = {'fastestFee': 100, 'halfHourFee': 75, 'hourFee': 50}
estimate = {'Fastest': resp['fastestFee'] * bytes, 'Half hour': resp['halfHourFee'] * bytes, 'One hour': resp['hourFee'] * bytes}
return estimate
@property
def signature_file_names(self):
i = 0
sig_file_names = []
while i < len(self.tx_inputs):
sig_file_names.append(f'{self.path}/signedTx{self.vkhandle}_{i + 1}.der')
i += 1
return sig_file_names
@property
def tx_json_file_name(self):
return f'{self.path}/tx{self.vkhandle}.json'
@property
def tx_json_file(self):
return {'file_name': f'tx{self.vkhandle}', 'all': self.all, 'fee': self.fee, 'recipient': self.recipient, 'partial': False if self.all else True, 'vkhandle': self.vkhandle, 'skhandle': self.skhandle, 'pem': self.pem, 'address': self.address, 'confrimed_balance': self.confirmed_balance, 'n_tx_inputs': len(self.tx_inputs)} |
# <auto-generated>
# This code was generated by the UnitCodeGenerator tool
#
# Changes to this file will be lost if the code is regenerated
# </auto-generated>
def to_milligrams(value):
return value * 28349.5231
def to_grams(value):
return value * 28.3495231
def to_kilograms(value):
return value / 35.274
def to_tonnes(value):
return value * 0.0000283495231
def to_pounds(value):
return value * 0.0625
def to_stones(value):
return value / 224.0
def to_carats(value):
return value / 0.00705479
| def to_milligrams(value):
return value * 28349.5231
def to_grams(value):
return value * 28.3495231
def to_kilograms(value):
return value / 35.274
def to_tonnes(value):
return value * 2.83495231e-05
def to_pounds(value):
return value * 0.0625
def to_stones(value):
return value / 224.0
def to_carats(value):
return value / 0.00705479 |
"""This module implements exceptions for this package."""
__all__ = ["Error", "InvalidRecordError", "InvalidHeaderError", "InvalidFooterError", "LogicError"]
class Error(Exception):
"""
Base class for exceptions in this module.
@see https://docs.python.org/3/tutorial/errors.html#user-defined-exceptions
"""
class InvalidRecordError(Error):
"""Target record is invalid."""
class InvalidHeaderError(InvalidRecordError):
"""Header record is invalid."""
class InvalidFooterError(InvalidRecordError):
"""Footer record is invalid."""
class LogicError(Error):
"""This Error indicates programing miss."""
| """This module implements exceptions for this package."""
__all__ = ['Error', 'InvalidRecordError', 'InvalidHeaderError', 'InvalidFooterError', 'LogicError']
class Error(Exception):
"""
Base class for exceptions in this module.
@see https://docs.python.org/3/tutorial/errors.html#user-defined-exceptions
"""
class Invalidrecorderror(Error):
"""Target record is invalid."""
class Invalidheadererror(InvalidRecordError):
"""Header record is invalid."""
class Invalidfootererror(InvalidRecordError):
"""Footer record is invalid."""
class Logicerror(Error):
"""This Error indicates programing miss.""" |
S1 = "Hello World"
print("Length of the String is", len(S1)) # To find the length of a String
List1 = ["Emon", "Bakkar", "Ehassan", "Anik", "Ahad", "Sibbir"]
print("After join the list:", ", ".join(List1)) # To join the String
S2 = "Hey this is Emon"
List2 = S2.split()
print("After Split the String:{}".format(List2)) # To Split a String
S3 = "Welcome to Python Programming"
print("After replace o to e: {}".format(S3.replace("o", "e"))) # To replace any character from a string
S4 = "welcome To RPI"
print("After Capitalize the String:", S4.capitalize()) # To capitalize first letter of a String
S5 = "welcome to rpi"
print("After Upper Case:", S5.upper()) # To upper case the String
S6 = "WELCOME to RPi"
print("After lower case:", S6.lower()) # TO lower case the String
print("After swapcase the string:", S4.swapcase()) # To swap the string case
if S4.casefold() == S4.casefold():
print("String are same")
else:
print("String are different") # To compare two string
print("Letter O in the string:", S3.count("o"), "Letter E in the string:", S3.count("e")) # To count the letter
| s1 = 'Hello World'
print('Length of the String is', len(S1))
list1 = ['Emon', 'Bakkar', 'Ehassan', 'Anik', 'Ahad', 'Sibbir']
print('After join the list:', ', '.join(List1))
s2 = 'Hey this is Emon'
list2 = S2.split()
print('After Split the String:{}'.format(List2))
s3 = 'Welcome to Python Programming'
print('After replace o to e: {}'.format(S3.replace('o', 'e')))
s4 = 'welcome To RPI'
print('After Capitalize the String:', S4.capitalize())
s5 = 'welcome to rpi'
print('After Upper Case:', S5.upper())
s6 = 'WELCOME to RPi'
print('After lower case:', S6.lower())
print('After swapcase the string:', S4.swapcase())
if S4.casefold() == S4.casefold():
print('String are same')
else:
print('String are different')
print('Letter O in the string:', S3.count('o'), 'Letter E in the string:', S3.count('e')) |
list = ['iam vengeance']
list1 = []
for k in list:
list1.append(k.title())
print(list1) | list = ['iam vengeance']
list1 = []
for k in list:
list1.append(k.title())
print(list1) |
def func_kwargs(**kwargs):
print('kwargs: ', kwargs)
print('type: ', type(kwargs))
func_kwargs(key1=1, key2=2, key3=3)
# kwargs: {'key1': 1, 'key2': 2, 'key3': 3}
# type: <class 'dict'>
def func_kwargs_positional(arg1, arg2, **kwargs):
print('arg1: ', arg1)
print('arg2: ', arg2)
print('kwargs: ', kwargs)
func_kwargs_positional(0, 1, key1=1)
# arg1: 0
# arg2: 1
# kwargs: {'key1': 1}
d = {'key1': 1, 'key2': 2, 'arg1': 100, 'arg2': 200}
func_kwargs_positional(**d)
# arg1: 100
# arg2: 200
# kwargs: {'key1': 1, 'key2': 2}
# def func_kwargs_error(**kwargs, arg):
# print(kwargs)
# SyntaxError: invalid syntax
| def func_kwargs(**kwargs):
print('kwargs: ', kwargs)
print('type: ', type(kwargs))
func_kwargs(key1=1, key2=2, key3=3)
def func_kwargs_positional(arg1, arg2, **kwargs):
print('arg1: ', arg1)
print('arg2: ', arg2)
print('kwargs: ', kwargs)
func_kwargs_positional(0, 1, key1=1)
d = {'key1': 1, 'key2': 2, 'arg1': 100, 'arg2': 200}
func_kwargs_positional(**d) |
class DestinyPyError(Exception):
...
class APIError(DestinyPyError):
...
class InvalidJSONResponse(APIError):
...
class APIResponseError(APIError):
def __init__(self, errorCode: int) -> None:
super().__init__(f'API returned an error code {errorCode}')
self.errorCode = errorCode
class AuthenticationError(DestinyPyError):
...
class ManifestError(DestinyPyError):
...
class InvalidLocaleError(ManifestError):
def __init__(self, locale: str) -> None:
super().__init__(f'{locale} is an invalid locale')
self.locale = locale
| class Destinypyerror(Exception):
...
class Apierror(DestinyPyError):
...
class Invalidjsonresponse(APIError):
...
class Apiresponseerror(APIError):
def __init__(self, errorCode: int) -> None:
super().__init__(f'API returned an error code {errorCode}')
self.errorCode = errorCode
class Authenticationerror(DestinyPyError):
...
class Manifesterror(DestinyPyError):
...
class Invalidlocaleerror(ManifestError):
def __init__(self, locale: str) -> None:
super().__init__(f'{locale} is an invalid locale')
self.locale = locale |
"""__init__.py."""
__title__ = 'hammingambuj'
__version__ = '0.0.3'
__author__ = 'Ambuj Dubey' | """__init__.py."""
__title__ = 'hammingambuj'
__version__ = '0.0.3'
__author__ = 'Ambuj Dubey' |
"""
@file
@brielf Shortcut to *sphinxext*.
"""
| """
@file
@brielf Shortcut to *sphinxext*.
""" |
# -*- coding: utf-8 -*-
def fibonacci(ene):
a = 0
b = 1
contador = 1
fibo = 0
while contador < ene:
fibo = b + a
a = b
b = fibo
contador += 1
return fibo
print('fibonacci(5) = ' + str(fibonacci(5)))
print('fibonacci(10) = ' + str(fibonacci(10)))
print('fibonacci(20) = ' + str(fibonacci(20)))
print('fibonacci(30) = ' + str(fibonacci(30)))
print('fibonacci(123456789) = ' + str(fibonacci(123456789)))
| def fibonacci(ene):
a = 0
b = 1
contador = 1
fibo = 0
while contador < ene:
fibo = b + a
a = b
b = fibo
contador += 1
return fibo
print('fibonacci(5) = ' + str(fibonacci(5)))
print('fibonacci(10) = ' + str(fibonacci(10)))
print('fibonacci(20) = ' + str(fibonacci(20)))
print('fibonacci(30) = ' + str(fibonacci(30)))
print('fibonacci(123456789) = ' + str(fibonacci(123456789))) |
# model settings
_base_ = "swin_tiny_my_MM_supervised.py"
model = dict(type="Recognizer3DJoint", backbone=dict(generative=True, discriminative=True),
cls_head=dict(type='JointHead'))
| _base_ = 'swin_tiny_my_MM_supervised.py'
model = dict(type='Recognizer3DJoint', backbone=dict(generative=True, discriminative=True), cls_head=dict(type='JointHead')) |
'''
Given three arrays sorted in increasing order. Find the elements that are common in all three arrays.
Input:
A = {1, 5, 10, 20, 40, 80}
B = {6, 7, 20, 80, 100}
C = {3, 4, 15, 20, 30, 70, 80, 120}
Output: [20, 80]
Explanation: 20 and 80 are the only
common elements in A, B and C.
'''
def common_elements(arr1,arr2,arr3):
#Take the lists in set
setofarr1 = set(arr1)
setofarr2 = set(arr2)
setofarr3 = set(arr3)
#using the intersection method we can find out common elements between arr1 and arr2
t = setofarr1.intersection(setofarr2)
#using the intersection method we can find out common elements between arr1 and arr2 and arr3
Total = list(t.intersection(setofarr3))
#sort the Total array
Total.sort()
#print out the result
return Total
if __name__ == "__main__":
arr1 = list(map(int,input("Enter the list 1: ").split()))
arr2 = list(map(int,input("Enter the list 2: ").split()))
arr3 = list(map(int,input("Enter the list 3: ").split()))
print("Common elements from all the three lists are ",common_elements(arr1, arr2, arr3))
'''
Time Complexity: O(n1 + n2 + n3)
Space Complexity : O(n1 + n2 + n3)
INPUT:
Enter the list 1: 1 5 10 20 40 80
Enter the list 2: 6 7 20 80 100
Enter the list 3: 3 4 15 20 30 70 80 120
OUTPUT:
Common elements from all the three lists are [20, 80]
'''
| """
Given three arrays sorted in increasing order. Find the elements that are common in all three arrays.
Input:
A = {1, 5, 10, 20, 40, 80}
B = {6, 7, 20, 80, 100}
C = {3, 4, 15, 20, 30, 70, 80, 120}
Output: [20, 80]
Explanation: 20 and 80 are the only
common elements in A, B and C.
"""
def common_elements(arr1, arr2, arr3):
setofarr1 = set(arr1)
setofarr2 = set(arr2)
setofarr3 = set(arr3)
t = setofarr1.intersection(setofarr2)
total = list(t.intersection(setofarr3))
Total.sort()
return Total
if __name__ == '__main__':
arr1 = list(map(int, input('Enter the list 1: ').split()))
arr2 = list(map(int, input('Enter the list 2: ').split()))
arr3 = list(map(int, input('Enter the list 3: ').split()))
print('Common elements from all the three lists are ', common_elements(arr1, arr2, arr3))
'\nTime Complexity: O(n1 + n2 + n3)\nSpace Complexity : O(n1 + n2 + n3)\n\nINPUT: \nEnter the list 1: 1 5 10 20 40 80\nEnter the list 2: 6 7 20 80 100\nEnter the list 3: 3 4 15 20 30 70 80 120 \n\nOUTPUT:\nCommon elements from all the three lists are [20, 80]\n\n' |
'''
Author: He,Yifan
Date: 2022-02-16 21:46:19
LastEditors: He,Yifan
LastEditTime: 2022-02-16 21:52:34
'''
__version__ = "0.0.0" | """
Author: He,Yifan
Date: 2022-02-16 21:46:19
LastEditors: He,Yifan
LastEditTime: 2022-02-16 21:52:34
"""
__version__ = '0.0.0' |
def countSumOfTwoRepresentations2(n, l, r):
noWays = 0
for x in range(l, r + 1):
if (n - x >= x) and (n - x <= r):
noWays += 1
return noWays
| def count_sum_of_two_representations2(n, l, r):
no_ways = 0
for x in range(l, r + 1):
if n - x >= x and n - x <= r:
no_ways += 1
return noWays |
__author__ = 'jkm4ca'
def greeting(msg):
print(msg)
| __author__ = 'jkm4ca'
def greeting(msg):
print(msg) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.