content
stringlengths 7
1.05M
| fixed_cases
stringlengths 1
1.28M
|
---|---|
class Solution:
def generate(self, numRows: int) -> List[List[int]]:
result = [[1]]
for i in range(1, numRows):
temp = [1]
for j in range(1, i):
temp.append(result[-1][j-1] + result[-1][j])
temp.append(1)
result.append(temp)
return result
| class Solution:
def generate(self, numRows: int) -> List[List[int]]:
result = [[1]]
for i in range(1, numRows):
temp = [1]
for j in range(1, i):
temp.append(result[-1][j - 1] + result[-1][j])
temp.append(1)
result.append(temp)
return result |
class responder():
def resp_hello():
hello=[]
hello.append('Hey there "{usr}"! how\'s it going?')
hello.append('Hi "{usr}" :grinning:')
hello.append('Hello "{usr}", whats up?')
hello.append('Hey "{usr}" :wave:,\nHow are you doing?')
hello.append('Hi "{usr}"!\nI\'m StrugBot, and I\'m super happy to be here!!')
hello.append('Sup "{usr}"!')
hello.append('Hi "{usr}",\nwhat can I do for you?')
hello.append('WAZZZZUUUUUUUUUUUUUUP "{usr}"')
return hello
def resp_trex():
return"I am a T-Rex!:t-rex:\nI have a BIG head and little arms,\nRAWWWRRRRR!!"
def resp_date():
return 'the date is: '
def resp_time():
return 'the time is: '
| class Responder:
def resp_hello():
hello = []
hello.append('Hey there "{usr}"! how\'s it going?')
hello.append('Hi "{usr}" :grinning:')
hello.append('Hello "{usr}", whats up?')
hello.append('Hey "{usr}" :wave:,\nHow are you doing?')
hello.append('Hi "{usr}"!\nI\'m StrugBot, and I\'m super happy to be here!!')
hello.append('Sup "{usr}"!')
hello.append('Hi "{usr}",\nwhat can I do for you?')
hello.append('WAZZZZUUUUUUUUUUUUUUP "{usr}"')
return hello
def resp_trex():
return 'I am a T-Rex!:t-rex:\nI have a BIG head and little arms,\nRAWWWRRRRR!!'
def resp_date():
return 'the date is: '
def resp_time():
return 'the time is: ' |
"""Implement a weighted graph."""
class Graph(object):
"""Structure for values in a weighted graph."""
def __init__(self):
"""Create a graph with no values."""
self.graph = {}
def nodes(self):
"""Get all nodes in the graph to display in list form."""
return list(self.graph)
def edges(self):
"""Get all edges in graph to display in list of tuples with weights."""
edge_list = []
for start in self.graph:
for end in self.graph[start]:
edge_list.append((start, end, self.graph[start][end]))
return edge_list
def add_node(self, val):
"""Add a node with a value to the graph."""
self.graph.setdefault(val, {})
def add_edge(self, val1, val2, weight):
"""Add an edge from val1 to val2 with the given weight.
If the node for either value does not exist, it is added to the graph.
"""
if val1 == val2:
raise ValueError('Edge needs two different values.')
self.add_node(val1)
self.add_node(val2)
self.graph[val1][val2] = weight
def del_node(self, val):
"""Remove the node with the given value from the graph.
Also removes all edges connected to the node.
"""
if val not in self.graph:
raise ValueError('Value is not in the graph.')
del self.graph[val]
for node in self.graph:
if val in self.graph[node]:
del self.graph[node][val]
def del_edge(self, val1, val2):
"""Remove the edge connecting node of val1 to node of val2."""
try:
del self.graph[val1][val2]
except KeyError:
raise ValueError('Edge is not in the graph.')
def has_node(self, val):
"""Check if the given value is in the graph."""
return val in self.graph
def neighbors(self, val):
"""List all nodes the node of the given value connects to."""
if val not in self.nodes():
raise ValueError('Value is not in the graph.')
return list(self.graph[val])
def adjacent(self, val1, val2):
"""Check if there is an edge connecting the nodes with given values."""
if val1 not in self.nodes() or val2 not in self.nodes():
raise ValueError('Value is not in the graph.')
return val2 in self.graph[val1]
def breadth_first_traversal(self, start_val):
"""Get the full visited path of a breadth first traversal."""
if start_val not in self.graph:
raise ValueError('Value is not in the graph.')
result = [start_val]
row = [start_val]
while row:
nxt_row = []
for node in row:
neighbors = self.graph[node]
for neighbor in neighbors:
if neighbor not in result:
nxt_row.append(neighbor)
result.append(neighbor)
row = nxt_row
return result
def depth_first_traversal(self, start_val):
"""Get the full visited path of a depth first traversal."""
def dive(val, path):
neighbors = self.graph[val]
for node in neighbors:
if node not in path:
path.append(node)
dive(node, path)
if start_val not in self.graph:
raise ValueError('Value is not in the graph.')
result = [start_val]
dive(start_val, result)
return result
def dijkstra_min(self, start, end):
"""Find the shortest path from the starting to ending node.
Uses Dijkstra's algorithm to determine the path.
"""
if start not in self.graph or end not in self.graph:
raise ValueError('Node not in graph.')
if start == end:
return [start]
final = {start: (0, start)}
search = {n: (float('inf'), None) for n in self.graph if n != start}
curr = start
while search:
path = final[curr][0]
neighbors = {n: self.graph[curr][n] for n in self.graph[curr]
if n not in final}
for n in neighbors:
if path + neighbors[n] < search[n][0]:
search[n] = (path + neighbors[n], curr)
curr = min(search, key=lambda n: search[n][0])
final[curr] = search[curr]
del search[curr]
if curr == end:
break
min_path = [end]
curr = end
prev = final[curr][1]
if prev is None:
raise ValueError('Start and end do not connect.')
while curr != prev:
min_path.append(prev)
curr = prev
prev = final[curr][1]
return list(reversed(min_path))
def bellman_ford_min(self, start, end):
"""Find the shortest path from the starting to ending node.
Uses Bellman Ford's algorithm to determine the path.
"""
if start not in self.graph or end not in self.graph:
raise ValueError('Node not in graph.')
if start == end:
return [start]
distance = {n: float('inf') for n in self.graph}
parent = {n: None for n in self.graph}
distance[start] = 0
for _ in range(len(self.graph) - 1):
for edge_start, edge_end, weight in self.edges():
if distance[edge_end] > distance[edge_start] + weight:
distance[edge_end] = distance[edge_start] + weight
parent[edge_end] = edge_start
min_path = []
curr = end
if parent[curr] is None:
raise ValueError('Start and end do not connect.')
while curr is not None:
min_path.append(curr)
curr = parent[curr]
return list(reversed(min_path))
| """Implement a weighted graph."""
class Graph(object):
"""Structure for values in a weighted graph."""
def __init__(self):
"""Create a graph with no values."""
self.graph = {}
def nodes(self):
"""Get all nodes in the graph to display in list form."""
return list(self.graph)
def edges(self):
"""Get all edges in graph to display in list of tuples with weights."""
edge_list = []
for start in self.graph:
for end in self.graph[start]:
edge_list.append((start, end, self.graph[start][end]))
return edge_list
def add_node(self, val):
"""Add a node with a value to the graph."""
self.graph.setdefault(val, {})
def add_edge(self, val1, val2, weight):
"""Add an edge from val1 to val2 with the given weight.
If the node for either value does not exist, it is added to the graph.
"""
if val1 == val2:
raise value_error('Edge needs two different values.')
self.add_node(val1)
self.add_node(val2)
self.graph[val1][val2] = weight
def del_node(self, val):
"""Remove the node with the given value from the graph.
Also removes all edges connected to the node.
"""
if val not in self.graph:
raise value_error('Value is not in the graph.')
del self.graph[val]
for node in self.graph:
if val in self.graph[node]:
del self.graph[node][val]
def del_edge(self, val1, val2):
"""Remove the edge connecting node of val1 to node of val2."""
try:
del self.graph[val1][val2]
except KeyError:
raise value_error('Edge is not in the graph.')
def has_node(self, val):
"""Check if the given value is in the graph."""
return val in self.graph
def neighbors(self, val):
"""List all nodes the node of the given value connects to."""
if val not in self.nodes():
raise value_error('Value is not in the graph.')
return list(self.graph[val])
def adjacent(self, val1, val2):
"""Check if there is an edge connecting the nodes with given values."""
if val1 not in self.nodes() or val2 not in self.nodes():
raise value_error('Value is not in the graph.')
return val2 in self.graph[val1]
def breadth_first_traversal(self, start_val):
"""Get the full visited path of a breadth first traversal."""
if start_val not in self.graph:
raise value_error('Value is not in the graph.')
result = [start_val]
row = [start_val]
while row:
nxt_row = []
for node in row:
neighbors = self.graph[node]
for neighbor in neighbors:
if neighbor not in result:
nxt_row.append(neighbor)
result.append(neighbor)
row = nxt_row
return result
def depth_first_traversal(self, start_val):
"""Get the full visited path of a depth first traversal."""
def dive(val, path):
neighbors = self.graph[val]
for node in neighbors:
if node not in path:
path.append(node)
dive(node, path)
if start_val not in self.graph:
raise value_error('Value is not in the graph.')
result = [start_val]
dive(start_val, result)
return result
def dijkstra_min(self, start, end):
"""Find the shortest path from the starting to ending node.
Uses Dijkstra's algorithm to determine the path.
"""
if start not in self.graph or end not in self.graph:
raise value_error('Node not in graph.')
if start == end:
return [start]
final = {start: (0, start)}
search = {n: (float('inf'), None) for n in self.graph if n != start}
curr = start
while search:
path = final[curr][0]
neighbors = {n: self.graph[curr][n] for n in self.graph[curr] if n not in final}
for n in neighbors:
if path + neighbors[n] < search[n][0]:
search[n] = (path + neighbors[n], curr)
curr = min(search, key=lambda n: search[n][0])
final[curr] = search[curr]
del search[curr]
if curr == end:
break
min_path = [end]
curr = end
prev = final[curr][1]
if prev is None:
raise value_error('Start and end do not connect.')
while curr != prev:
min_path.append(prev)
curr = prev
prev = final[curr][1]
return list(reversed(min_path))
def bellman_ford_min(self, start, end):
"""Find the shortest path from the starting to ending node.
Uses Bellman Ford's algorithm to determine the path.
"""
if start not in self.graph or end not in self.graph:
raise value_error('Node not in graph.')
if start == end:
return [start]
distance = {n: float('inf') for n in self.graph}
parent = {n: None for n in self.graph}
distance[start] = 0
for _ in range(len(self.graph) - 1):
for (edge_start, edge_end, weight) in self.edges():
if distance[edge_end] > distance[edge_start] + weight:
distance[edge_end] = distance[edge_start] + weight
parent[edge_end] = edge_start
min_path = []
curr = end
if parent[curr] is None:
raise value_error('Start and end do not connect.')
while curr is not None:
min_path.append(curr)
curr = parent[curr]
return list(reversed(min_path)) |
class BaseCommand:
def __init__(self, table_name):
self.table_name = table_name
self._can_add = True
@staticmethod
def _convert_values(values):
converted = [SQLType.convert(v) for v in values]
return converted
def check_intersection(self, other):
return self.where.check_intersection(other)
DB_NAME = 'database.db'
| class Basecommand:
def __init__(self, table_name):
self.table_name = table_name
self._can_add = True
@staticmethod
def _convert_values(values):
converted = [SQLType.convert(v) for v in values]
return converted
def check_intersection(self, other):
return self.where.check_intersection(other)
db_name = 'database.db' |
class Acl(object):
def __init__(self, read_acl):
self.read_acl = read_acl
@staticmethod
def from_acl_response(acl_response):
'''Takes JSON response from API and converts to ACL object'''
if 'read' in acl_response:
read_acl = AclType.from_acl_response(acl_response['read'])
return Acl(read_acl)
else:
raise ValueError('Response does not contain read ACL')
def to_api_param(self):
read_acl_string = self.read_acl.acl_string
if read_acl_string is None:
return {'read':[]}
return {'read':[read_acl_string]}
class AclInner(object):
def __init__(self, pseudonym, acl_string):
self.pseudonym = pseudonym
self.acl_string = acl_string
def __repr__(self):
return 'AclType(pseudonym=%s,acl_string=%s)' % (self.pseudonym, self.acl_string)
class AclType(object):
public = AclInner('public','user://*')
my_algos = AclInner('my_algos','algo://.my/*')
private = AclInner('private',None) # Really is an empty list
default = my_algos
types = (public, my_algos, private)
@staticmethod
def from_acl_response(acl_list):
if len(acl_list) == 0:
return AclType.private
else:
acl_string = acl_list[0]
for t in AclType.types:
if t.acl_string == acl_string:
return t
else:
raise ValueError('Invalid acl string %s' % (acl_list[0]))
class ReadAcl(object):
public = Acl(AclType.public)
private = Acl(AclType.private)
my_algos = Acl(AclType.my_algos)
| class Acl(object):
def __init__(self, read_acl):
self.read_acl = read_acl
@staticmethod
def from_acl_response(acl_response):
"""Takes JSON response from API and converts to ACL object"""
if 'read' in acl_response:
read_acl = AclType.from_acl_response(acl_response['read'])
return acl(read_acl)
else:
raise value_error('Response does not contain read ACL')
def to_api_param(self):
read_acl_string = self.read_acl.acl_string
if read_acl_string is None:
return {'read': []}
return {'read': [read_acl_string]}
class Aclinner(object):
def __init__(self, pseudonym, acl_string):
self.pseudonym = pseudonym
self.acl_string = acl_string
def __repr__(self):
return 'AclType(pseudonym=%s,acl_string=%s)' % (self.pseudonym, self.acl_string)
class Acltype(object):
public = acl_inner('public', 'user://*')
my_algos = acl_inner('my_algos', 'algo://.my/*')
private = acl_inner('private', None)
default = my_algos
types = (public, my_algos, private)
@staticmethod
def from_acl_response(acl_list):
if len(acl_list) == 0:
return AclType.private
else:
acl_string = acl_list[0]
for t in AclType.types:
if t.acl_string == acl_string:
return t
else:
raise value_error('Invalid acl string %s' % acl_list[0])
class Readacl(object):
public = acl(AclType.public)
private = acl(AclType.private)
my_algos = acl(AclType.my_algos) |
the_simpsons = ["Homer", "Marge", "Bart", "Lisa", "Maggie"]
print(the_simpsons[::-1])
for char in the_simpsons[::-1]:
print(f"{char} has a total of {len(char)} characters.")
print(reversed(the_simpsons))
print(type(reversed(the_simpsons))) # generator object
for char in reversed(the_simpsons): # laduje za kazda iteracja jeden element listy, a nie cala liste od razu, dobre przy duzych listach
print(f"{char} has a total of {len(char)} characters.")
| the_simpsons = ['Homer', 'Marge', 'Bart', 'Lisa', 'Maggie']
print(the_simpsons[::-1])
for char in the_simpsons[::-1]:
print(f'{char} has a total of {len(char)} characters.')
print(reversed(the_simpsons))
print(type(reversed(the_simpsons)))
for char in reversed(the_simpsons):
print(f'{char} has a total of {len(char)} characters.') |
TEST_CONFIG_OVERRIDE = {
# An envvar key for determining the project id to use. Change it
# to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a
# build specific Cloud project. You can also use your own string
# to use your own Cloud project.
"gcloud_project_env": "BUILD_SPECIFIC_GCLOUD_PROJECT",
# 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',
# A dictionary you want to inject into your test. Don't put any
# secrets here. These values will override predefined values.
"envs": {
"GA_TEST_PROPERTY_ID": "276206997",
"GA_TEST_ACCOUNT_ID": "199820965",
"GA_TEST_USER_LINK_ID": "103401743041912607932",
"GA_TEST_PROPERTY_USER_LINK_ID": "105231969274497648555",
"GA_TEST_ANDROID_APP_DATA_STREAM_ID": "2828100949",
"GA_TEST_IOS_APP_DATA_STREAM_ID": "2828089289",
"GA_TEST_WEB_DATA_STREAM_ID": "2828068992",
},
}
| test_config_override = {'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT', 'envs': {'GA_TEST_PROPERTY_ID': '276206997', 'GA_TEST_ACCOUNT_ID': '199820965', 'GA_TEST_USER_LINK_ID': '103401743041912607932', 'GA_TEST_PROPERTY_USER_LINK_ID': '105231969274497648555', 'GA_TEST_ANDROID_APP_DATA_STREAM_ID': '2828100949', 'GA_TEST_IOS_APP_DATA_STREAM_ID': '2828089289', 'GA_TEST_WEB_DATA_STREAM_ID': '2828068992'}} |
# -*- coding: utf-8 -*-
"""
Defines constants used by P4P2P. Usually these are based upon concepts from
the Kademlia DHT and where possible naming is derived from the original
Kademlia paper as are the suggested default values.
"""
#: Represents the degree of parallelism in network calls.
ALPHA = 3
#: The maximum number of contacts stored in a bucket. Must be an even number.
K = 20
#: The default maximum time a NodeLookup is allowed to take (in seconds).
LOOKUP_TIMEOUT = 600
#: The timeout for network connections (in seconds).
RPC_TIMEOUT = 5
#: The timeout for receiving complete message once a connection is made (in
#: seconds). Ensures there are no stale deferreds in the node's _pending
#: dictionary.
RESPONSE_TIMEOUT = 1800 # half an hour
#: How long to wait before an unused bucket is refreshed (in seconds).
REFRESH_TIMEOUT = 3600 # 1 hour
#: How long to wait before a node replicates any data it stores (in seconds).
REPLICATE_INTERVAL = REFRESH_TIMEOUT
#: How long to wait before a node checks whether any buckets need refreshing or
#: data needs republishing (in seconds).
REFRESH_INTERVAL = int(REFRESH_TIMEOUT / 6) # Every 10 minutes.
#: The number of failed remote procedure calls allowed for a peer node. If this
#: is equalled or exceeded then the contact is removed from the routing table.
ALLOWED_RPC_FAILS = 5
#: The number of nodes to attempt to use to store a value in the network.
DUPLICATION_COUNT = K
#: The duration (in seconds) that is added to a value's creation time in order
#: to work out its expiry timestamp. -1 denotes no expiry point.
EXPIRY_DURATION = -1
#: Defines the errors that can be reported between nodes in the network.
ERRORS = {
# The message simply didn't make any sense.
1: 'Bad message',
# The message was parsed but not recognised.
2: 'Unknown message type',
# The message was parsed and recognised but the node encountered a problem
# when dealing with it.
3: 'Internal error',
# The message was too big for the node to handle.
4: 'Message too big',
# Unsupported version of the protocol.
5: 'Unsupported protocol',
# The message could not be cryptographically verified.
6: 'Unverifiable provenance'
}
| """
Defines constants used by P4P2P. Usually these are based upon concepts from
the Kademlia DHT and where possible naming is derived from the original
Kademlia paper as are the suggested default values.
"""
alpha = 3
k = 20
lookup_timeout = 600
rpc_timeout = 5
response_timeout = 1800
refresh_timeout = 3600
replicate_interval = REFRESH_TIMEOUT
refresh_interval = int(REFRESH_TIMEOUT / 6)
allowed_rpc_fails = 5
duplication_count = K
expiry_duration = -1
errors = {1: 'Bad message', 2: 'Unknown message type', 3: 'Internal error', 4: 'Message too big', 5: 'Unsupported protocol', 6: 'Unverifiable provenance'} |
# grappelli
GRAPPELLI_ADMIN_TITLE = 'pangolin - Administration panel'
# rest framework
# REST_FRAMEWORK = {
# 'PAGINATE_BY_PARAM': 'limit',
# 'SEARCH_PARAM': 'q'
# }
| grappelli_admin_title = 'pangolin - Administration panel' |
x=input("Enter a umber of which you want to know the square root.")
x=int(x)
g=x/2
while (g*g-x)*(g*g-x)>0.00000000001:
g=(g+x/g)/2
print(g)
print(g)
| x = input('Enter a umber of which you want to know the square root.')
x = int(x)
g = x / 2
while (g * g - x) * (g * g - x) > 1e-11:
g = (g + x / g) / 2
print(g)
print(g) |
'''
practice qusestion from chapter 1 Module 5 of IBM Digital Nation Courses
by Aashik J Krishnan/Aash Gates
'''
x = 10
y = "ten"
#step 1
x,y = y,x
#printing on next line
print(x)
print(y)
#end of the program | """
practice qusestion from chapter 1 Module 5 of IBM Digital Nation Courses
by Aashik J Krishnan/Aash Gates
"""
x = 10
y = 'ten'
(x, y) = (y, x)
print(x)
print(y) |
# coding: utf-8
SCHEMA_MAPPING = {
"persons": {
"type": "object",
"patternProperties": {
r"\d+": {
"type": "object",
"properties": {
"first_name": {"type": "string"},
"last_name": {"type": "string"},
},
"patternProperties": {
r".+": {"type": ["integer", "string"]}
},
"required": ["first_name", "last_name"]
}
}
},
"camera": {
"type": "object",
"properties": {
"camera_id": {"type": "integer"},
"camera_close_key": {"type": "string"},
"camera_frame_shape": {"type": "array", "items": {"type": "integer"}, "minItems": 3, "maxItems": 3}
},
"required": ["camera_id", "camera_close_key", "camera_frame_shape"]
},
"model_config": {
"type": "object",
"properties": {
"class_name": {"type": "string"},
"config": {
"type": "object",
"properties": {
"name": {"type": "string"},
"layers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"class_name": {"type": "string"},
"config": {
"type": "object"
}
}
}
}
}
},
"keras_version": {"type": "string"},
"backend": {"type": "string", "enum": ["theano", "tensorflow"]}
}
}
}
| schema_mapping = {'persons': {'type': 'object', 'patternProperties': {'\\d+': {'type': 'object', 'properties': {'first_name': {'type': 'string'}, 'last_name': {'type': 'string'}}, 'patternProperties': {'.+': {'type': ['integer', 'string']}}, 'required': ['first_name', 'last_name']}}}, 'camera': {'type': 'object', 'properties': {'camera_id': {'type': 'integer'}, 'camera_close_key': {'type': 'string'}, 'camera_frame_shape': {'type': 'array', 'items': {'type': 'integer'}, 'minItems': 3, 'maxItems': 3}}, 'required': ['camera_id', 'camera_close_key', 'camera_frame_shape']}, 'model_config': {'type': 'object', 'properties': {'class_name': {'type': 'string'}, 'config': {'type': 'object', 'properties': {'name': {'type': 'string'}, 'layers': {'type': 'array', 'items': {'type': 'object', 'properties': {'class_name': {'type': 'string'}, 'config': {'type': 'object'}}}}}}, 'keras_version': {'type': 'string'}, 'backend': {'type': 'string', 'enum': ['theano', 'tensorflow']}}}} |
class Solution(object):
def search(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: int
"""
return self.binary_search(nums, target, 0, len(nums) - 1)
def binary_search(self, nums, target, low, hight):
mid = low + (hight - low) // 2
if nums[mid] == target:
return mid
if nums[mid] < target:
if mid + 1 > hight:
return -1
return self.binary_search(nums, target, mid + 1, hight)
if low > mid - 1:
return -1
return self.binary_search(nums, target, low, mid - 1)
def test_search():
s = Solution()
assert 4 == s.search([-1, 0, 3, 5, 9, 12], 9)
assert -1 == s.search([-1, 0, 3, 5, 9, 12], 2)
assert 0 == s.search([5], 5)
assert 1 == s.search([2, 5], 5)
| class Solution(object):
def search(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: int
"""
return self.binary_search(nums, target, 0, len(nums) - 1)
def binary_search(self, nums, target, low, hight):
mid = low + (hight - low) // 2
if nums[mid] == target:
return mid
if nums[mid] < target:
if mid + 1 > hight:
return -1
return self.binary_search(nums, target, mid + 1, hight)
if low > mid - 1:
return -1
return self.binary_search(nums, target, low, mid - 1)
def test_search():
s = solution()
assert 4 == s.search([-1, 0, 3, 5, 9, 12], 9)
assert -1 == s.search([-1, 0, 3, 5, 9, 12], 2)
assert 0 == s.search([5], 5)
assert 1 == s.search([2, 5], 5) |
# Single-quoted string is preceded and succeeded by newlines.
# Translators: This is a helpful comment.
_(
'5'
)
| _('5') |
quarter=int(input())
p1=int(input())
p2=int(input())
p3=int(input())
time=0
while quarter>0:
if quarter == 0:
continue
p1+=1
quarter-=1
time+=1
if p1==35:
quarter+=30
p1=0
if quarter == 0:
continue
time+=1
p2+=1
quarter-=1
if p2==100:
p2=0
quarter+=60
if quarter == 0:
continue
p3+=1
time+=1
quarter-=1
if p3==10:
quarter+=9
p3=0
print(f'Martha plays {time} times before going broke.')
| quarter = int(input())
p1 = int(input())
p2 = int(input())
p3 = int(input())
time = 0
while quarter > 0:
if quarter == 0:
continue
p1 += 1
quarter -= 1
time += 1
if p1 == 35:
quarter += 30
p1 = 0
if quarter == 0:
continue
time += 1
p2 += 1
quarter -= 1
if p2 == 100:
p2 = 0
quarter += 60
if quarter == 0:
continue
p3 += 1
time += 1
quarter -= 1
if p3 == 10:
quarter += 9
p3 = 0
print(f'Martha plays {time} times before going broke.') |
"""
TAG: 0-1 Knapsack Problem, Dynamic Programming (DP), O(nW)
References:
- https://www.geeksforgeeks.org/0-1-knapsack-problem-dp-10/
weights and values of n items, capacity -> max value
"""
N, W = map(int, input().split()) # number of items, capacity
weights = []
values = []
for i in range(N):
w, v = map(int, input().split())
weights.append(w)
values.append(v)
def knapsack(W, weights, values, n):
dp = [[0 for x in range(W+1)] for x in range(n+1)]
for i in range(n+1):
for w in range(W+1):
if i == 0 or w == 0:
dp[i][w] = 0
elif weights[i-1] <= w:
dp[i][w] = max(values[i-1] + dp[i-1][w - weights[i-1]], dp[i-1][w])
else:
dp[i][w] = dp[i-1][w]
return dp[n][W]
print(knapsack(W, weights, values, N))
# Naive
"""
def knapsack(W, weights, values, n):
if n == 0 or W == 0: # base
return 0
if (weights[n-1] > W):
return knapsack(W, weights, values, n-1)
else:
return max(
values[n-1] + knapsack(W - weights[n-1], weights, values, n-1),
knapsack(W, weights, values, n-1)
)
"""
| """
TAG: 0-1 Knapsack Problem, Dynamic Programming (DP), O(nW)
References:
- https://www.geeksforgeeks.org/0-1-knapsack-problem-dp-10/
weights and values of n items, capacity -> max value
"""
(n, w) = map(int, input().split())
weights = []
values = []
for i in range(N):
(w, v) = map(int, input().split())
weights.append(w)
values.append(v)
def knapsack(W, weights, values, n):
dp = [[0 for x in range(W + 1)] for x in range(n + 1)]
for i in range(n + 1):
for w in range(W + 1):
if i == 0 or w == 0:
dp[i][w] = 0
elif weights[i - 1] <= w:
dp[i][w] = max(values[i - 1] + dp[i - 1][w - weights[i - 1]], dp[i - 1][w])
else:
dp[i][w] = dp[i - 1][w]
return dp[n][W]
print(knapsack(W, weights, values, N))
'\ndef knapsack(W, weights, values, n):\n if n == 0 or W == 0: # base\n return 0\n\n if (weights[n-1] > W):\n return knapsack(W, weights, values, n-1)\n else:\n return max(\n values[n-1] + knapsack(W - weights[n-1], weights, values, n-1),\n knapsack(W, weights, values, n-1)\n )\n' |
# To print fibonacci series upto a given number n.
first = 0
second = 1
n = int(input())
print("Fibbonacci Series:")
for i in range(0,n):
print(first, end=", ")
next = second + first
first = second
second = next
| first = 0
second = 1
n = int(input())
print('Fibbonacci Series:')
for i in range(0, n):
print(first, end=', ')
next = second + first
first = second
second = next |
nums = [0,1]
def calcFi():
n1 = nums[-2]
n2 = nums[-1]
sM = n1 + n2
phi = sM/n2
nums.append(sM)
return (phi)
for i in range(45):
if i % 15 == 0 or i == 44:
phi = calcFi()
print(phi)
if i == 44:
with open("outputs/phi.txt", "w") as f:
f.write(str(phi))
else:
calcFi() | nums = [0, 1]
def calc_fi():
n1 = nums[-2]
n2 = nums[-1]
s_m = n1 + n2
phi = sM / n2
nums.append(sM)
return phi
for i in range(45):
if i % 15 == 0 or i == 44:
phi = calc_fi()
print(phi)
if i == 44:
with open('outputs/phi.txt', 'w') as f:
f.write(str(phi))
else:
calc_fi() |
a = [2, 4, 5, 7, 8, 9]
sum = 0
for i in range(len(a) - 1):
if a[i] % 2 == 0:
sum = sum + a[i]
print(sum)
| a = [2, 4, 5, 7, 8, 9]
sum = 0
for i in range(len(a) - 1):
if a[i] % 2 == 0:
sum = sum + a[i]
print(sum) |
#students exams data entries for terminal report card
print("Westside Educational Complex--End Of second Terminal Report--Class-KKJA--Name:Theodora Obaa Yaa Gyarbeng")
while True:
student_score = float(input ("Enter the student score:"))
if student_score >= 1.0 and student_score <= 39.9:
print("student_score is F9", "fail")
elif student_score >= 40 and student_score <= 49.9:
print("student_score is E8", "pass" )
elif student_score >= 50 and student_score <= 59.9:
print("student_score is D7", "credit")
elif student_score >= 60 and student_score <= 69.9:
print("student_score is C4", "good")
elif student_score >= 70 and student_score <= 79.9:
print("student_score is B2", "very_good")
elif student_score >= 80 and student_score <= 100:
print("student_score is A1", "excellent")
else:
print("student_score is invalid entry")
student = []
| print('Westside Educational Complex--End Of second Terminal Report--Class-KKJA--Name:Theodora Obaa Yaa Gyarbeng')
while True:
student_score = float(input('Enter the student score:'))
if student_score >= 1.0 and student_score <= 39.9:
print('student_score is F9', 'fail')
elif student_score >= 40 and student_score <= 49.9:
print('student_score is E8', 'pass')
elif student_score >= 50 and student_score <= 59.9:
print('student_score is D7', 'credit')
elif student_score >= 60 and student_score <= 69.9:
print('student_score is C4', 'good')
elif student_score >= 70 and student_score <= 79.9:
print('student_score is B2', 'very_good')
elif student_score >= 80 and student_score <= 100:
print('student_score is A1', 'excellent')
else:
print('student_score is invalid entry')
student = [] |
n = int(input())
l = []
c = 0
for i in range(0,n):
p = input()
print('c -> ', c)
if p in l:
c += 1
l.append(p)
print("Falta(m) {} pomekon(s).".format(151 - (n-c))) | n = int(input())
l = []
c = 0
for i in range(0, n):
p = input()
print('c -> ', c)
if p in l:
c += 1
l.append(p)
print('Falta(m) {} pomekon(s).'.format(151 - (n - c))) |
inst_25 = [(35,0,15),(29,0,20),(9,0,11),(9,13,35),(3,0,19),(37,0,8),(11,0,30),(19,0,25),(13,0,25),(39,0,18)]
inst_bait = [(10,0,10), (14,0,11), (33,0,26),(4,2,18),(4,20,30),(39,117,137),(12,5,21),(28,0,14),(32,5,14),(32,15,44),(36,0,9),(40,0,14),(2,1,15),(2,17,35),(5,160,168),(11,158,164),(13,116,131)]
inst_30 = []
inst_25late = [(32,160,190),(38,61,76),(39,446,466),(40,153,153+37),(39,269,329),(40,262,287),(38,7,42)]
inst_25late_extended = [(39,269,369),(40,153,190),(38,7,50),(38,61,105),(32,160,199),(39,446,486),(35,70,119),(38,106,130),(36,204,233),(30,57,94),(29,221,241),(40,262,312),(29,160,184),(30,0,24)]
inst_25_100P = [(38,131,131+80)]
# treatments = {'25*' : inst_25late,'25' : inst_25,'baits' : inst_bait, '30' : inst_30}
treatments = {'25_100' : inst_25_100P, '25*' : inst_25late,'25' : inst_25,'baits' : inst_bait, '30' : inst_30}
plate_number = {(9,0,11) : 296, (9,13,35) : 296, (3,0,19) : 340, (37,0,8) : 269,(11,0,30) : 314, (19,0,25) : 344, (13,0,25) : 298, (39,0,18) : 297, (35,0,15) : 351,(10,0,10) : 395,(14,0,11) : 399, (33,0,26) : 420, (4,2,18) : 423, (4,20,30) : 423,(8,0,17): 434 ,(8,20,30) : 434,(39,117,137) : 433, (12,5,21) : 436, (28,0,14): 405,(32,5,45):409,(36,0,9) : 419,(40,0,14) : 425,(2,1,15):435,(2,17,35):435,(5,160,168):382,(11,158,164) : 416,(13,116,131) : 424, (29,0,20) : 373,(32,15,44):409, (32,5,14) : 409, (40,153,153+37) : 69,(39,269,329) : 94, (40,262,287) : 102,(38,7,42) : 59, (32,160,190) : 152,(38,61,76) : 137,(39,446,466) : 26, (38,131,131+80):721}
comments = {395 : 'ignore', 399 : 'left', 405 : 'left', 409 : 'right', 416 : 'middle', 419 : 'middle', 420 : 'left', 423: 'right', 424 : 'left', 425 : 'middle', 433 : 'right', 435 : 'middle', 436 : 'left'} | inst_25 = [(35, 0, 15), (29, 0, 20), (9, 0, 11), (9, 13, 35), (3, 0, 19), (37, 0, 8), (11, 0, 30), (19, 0, 25), (13, 0, 25), (39, 0, 18)]
inst_bait = [(10, 0, 10), (14, 0, 11), (33, 0, 26), (4, 2, 18), (4, 20, 30), (39, 117, 137), (12, 5, 21), (28, 0, 14), (32, 5, 14), (32, 15, 44), (36, 0, 9), (40, 0, 14), (2, 1, 15), (2, 17, 35), (5, 160, 168), (11, 158, 164), (13, 116, 131)]
inst_30 = []
inst_25late = [(32, 160, 190), (38, 61, 76), (39, 446, 466), (40, 153, 153 + 37), (39, 269, 329), (40, 262, 287), (38, 7, 42)]
inst_25late_extended = [(39, 269, 369), (40, 153, 190), (38, 7, 50), (38, 61, 105), (32, 160, 199), (39, 446, 486), (35, 70, 119), (38, 106, 130), (36, 204, 233), (30, 57, 94), (29, 221, 241), (40, 262, 312), (29, 160, 184), (30, 0, 24)]
inst_25_100_p = [(38, 131, 131 + 80)]
treatments = {'25_100': inst_25_100P, '25*': inst_25late, '25': inst_25, 'baits': inst_bait, '30': inst_30}
plate_number = {(9, 0, 11): 296, (9, 13, 35): 296, (3, 0, 19): 340, (37, 0, 8): 269, (11, 0, 30): 314, (19, 0, 25): 344, (13, 0, 25): 298, (39, 0, 18): 297, (35, 0, 15): 351, (10, 0, 10): 395, (14, 0, 11): 399, (33, 0, 26): 420, (4, 2, 18): 423, (4, 20, 30): 423, (8, 0, 17): 434, (8, 20, 30): 434, (39, 117, 137): 433, (12, 5, 21): 436, (28, 0, 14): 405, (32, 5, 45): 409, (36, 0, 9): 419, (40, 0, 14): 425, (2, 1, 15): 435, (2, 17, 35): 435, (5, 160, 168): 382, (11, 158, 164): 416, (13, 116, 131): 424, (29, 0, 20): 373, (32, 15, 44): 409, (32, 5, 14): 409, (40, 153, 153 + 37): 69, (39, 269, 329): 94, (40, 262, 287): 102, (38, 7, 42): 59, (32, 160, 190): 152, (38, 61, 76): 137, (39, 446, 466): 26, (38, 131, 131 + 80): 721}
comments = {395: 'ignore', 399: 'left', 405: 'left', 409: 'right', 416: 'middle', 419: 'middle', 420: 'left', 423: 'right', 424: 'left', 425: 'middle', 433: 'right', 435: 'middle', 436: 'left'} |
#To run the code, write
#from ishashad import ishashad
#then ishashad(number)
def ishashad(n):
if n % sum(map(int,str(n))) == 0:
print("True")
else:
print("False")
return | def ishashad(n):
if n % sum(map(int, str(n))) == 0:
print('True')
else:
print('False')
return |
class Relogio:
def __init__(self):
self.horas = 6
self.minutos = 0
self.dia = 1
def __str__(self):
return f"{self.horas:02d}:{self.minutos:02d} do dia {self.dia:02d}"
def avancaTempo(self, minutos):
self.minutos += minutos
while(self.minutos >= 60):
self.minutos -= 60
self.horas += 1
if self.horas >= 24:
self.horas = 0
self.dia +=1
| class Relogio:
def __init__(self):
self.horas = 6
self.minutos = 0
self.dia = 1
def __str__(self):
return f'{self.horas:02d}:{self.minutos:02d} do dia {self.dia:02d}'
def avanca_tempo(self, minutos):
self.minutos += minutos
while self.minutos >= 60:
self.minutos -= 60
self.horas += 1
if self.horas >= 24:
self.horas = 0
self.dia += 1 |
"""
@Author : xiaotao
@Email : 18773993654@163.com
@Lost modifid : 2020/4/24 10:02
@Filename : __init__.py.py
@Description :
@Software : PyCharm
""" | """
@Author : xiaotao
@Email : 18773993654@163.com
@Lost modifid : 2020/4/24 10:02
@Filename : __init__.py.py
@Description :
@Software : PyCharm
""" |
# https://www.geeksforgeeks.org/write-a-program-to-reverse-an-array-or-string/
# Time: O(n)
# Space: 1
def reverseByMiddles(arr):
n = len(arr)
limit = n//2
for i in range(limit):
temp = arr[i]
arr[i] = arr[(n-1)-i]
arr[(n-1)-i] = temp
return arr
arr = [1,2,3]
result = reverseByMiddles(arr)
print(result)
print(reverseByMiddles(arr = [1,2,3,4]))
| def reverse_by_middles(arr):
n = len(arr)
limit = n // 2
for i in range(limit):
temp = arr[i]
arr[i] = arr[n - 1 - i]
arr[n - 1 - i] = temp
return arr
arr = [1, 2, 3]
result = reverse_by_middles(arr)
print(result)
print(reverse_by_middles(arr=[1, 2, 3, 4])) |
coordinates_01EE00 = ((121, 126),
(121, 132), (121, 134), (121, 135), (121, 137), (121, 138), (121, 139), (121, 140), (121, 141), (122, 114), (122, 115), (122, 116), (122, 117), (122, 119), (122, 125), (122, 127), (122, 128), (122, 142), (123, 110), (123, 111), (123, 112), (123, 113), (123, 120), (123, 124), (123, 126), (123, 130), (123, 132), (123, 133), (123, 134), (123, 135), (123, 136), (123, 137), (123, 138), (123, 139), (123, 140), (123, 141), (123, 144), (124, 107), (124, 109), (124, 114), (124, 115), (124, 116), (124, 117), (124, 118), (124, 120), (124, 124), (124, 125), (124, 126), (124, 127), (124, 128), (124, 129), (124, 131), (124, 132), (124, 133), (124, 134), (124, 135), (124, 136), (124, 137), (124, 138), (124, 139), (124, 140), (124, 141), (124, 142), (124, 146), (125, 105), (125, 110), (125, 111), (125, 112), (125, 113), (125, 114), (125, 115), (125, 116), (125, 117),
(125, 118), (125, 119), (125, 120), (125, 122), (125, 124), (125, 125), (125, 126), (125, 127), (125, 128), (125, 129), (125, 130), (125, 131), (125, 132), (125, 133), (125, 134), (125, 135), (125, 136), (125, 137), (125, 138), (125, 139), (125, 140), (125, 141), (125, 142), (125, 143), (125, 144), (125, 148), (126, 103), (126, 107), (126, 108), (126, 109), (126, 110), (126, 111), (126, 112), (126, 113), (126, 114), (126, 115), (126, 116), (126, 117), (126, 118), (126, 119), (126, 120), (126, 124), (126, 125), (126, 126), (126, 127), (126, 128), (126, 129), (126, 130), (126, 131), (126, 132), (126, 133), (126, 134), (126, 135), (126, 136), (126, 137), (126, 138), (126, 139), (126, 140), (126, 141), (126, 142), (126, 143), (126, 144), (126, 145), (126, 146), (126, 149), (127, 102), (127, 105), (127, 106), (127, 107), (127, 108), (127, 109), (127, 110),
(127, 111), (127, 112), (127, 113), (127, 114), (127, 115), (127, 116), (127, 117), (127, 118), (127, 119), (127, 120), (127, 121), (127, 122), (127, 123), (127, 124), (127, 125), (127, 126), (127, 127), (127, 128), (127, 129), (127, 130), (127, 131), (127, 132), (127, 133), (127, 134), (127, 135), (127, 136), (127, 137), (127, 138), (127, 139), (127, 140), (127, 141), (127, 142), (127, 143), (127, 144), (127, 145), (127, 146), (127, 147), (127, 148), (127, 150), (128, 103), (128, 105), (128, 106), (128, 107), (128, 108), (128, 109), (128, 110), (128, 111), (128, 112), (128, 113), (128, 114), (128, 115), (128, 116), (128, 117), (128, 118), (128, 119), (128, 120), (128, 121), (128, 122), (128, 123), (128, 124), (128, 125), (128, 126), (128, 127), (128, 128), (128, 129), (128, 130), (128, 131), (128, 132), (128, 133), (128, 134), (128, 135), (128, 136),
(128, 137), (128, 138), (128, 139), (128, 140), (128, 141), (128, 142), (128, 143), (128, 144), (128, 145), (128, 146), (128, 147), (128, 149), (129, 103), (129, 105), (129, 106), (129, 107), (129, 108), (129, 109), (129, 110), (129, 111), (129, 112), (129, 113), (129, 114), (129, 115), (129, 116), (129, 117), (129, 118), (129, 119), (129, 120), (129, 121), (129, 122), (129, 123), (129, 124), (129, 125), (129, 126), (129, 127), (129, 128), (129, 129), (129, 130), (129, 131), (129, 132), (129, 133), (129, 134), (129, 135), (129, 136), (129, 137), (129, 138), (129, 139), (129, 140), (129, 141), (129, 142), (129, 143), (129, 144), (129, 145), (129, 146), (129, 147), (129, 149), (130, 104), (130, 107), (130, 108), (130, 109), (130, 110), (130, 111), (130, 112), (130, 113), (130, 114), (130, 115), (130, 116), (130, 117), (130, 118), (130, 119), (130, 120),
(130, 121), (130, 122), (130, 123), (130, 124), (130, 125), (130, 126), (130, 127), (130, 128), (130, 129), (130, 130), (130, 131), (130, 132), (130, 133), (130, 134), (130, 135), (130, 136), (130, 137), (130, 138), (130, 139), (130, 140), (130, 141), (130, 142), (130, 143), (130, 144), (130, 145), (130, 146), (130, 148), (131, 104), (131, 106), (131, 107), (131, 108), (131, 109), (131, 110), (131, 111), (131, 112), (131, 113), (131, 114), (131, 115), (131, 116), (131, 117), (131, 118), (131, 119), (131, 120), (131, 121), (131, 122), (131, 123), (131, 124), (131, 125), (131, 126), (131, 127), (131, 128), (131, 129), (131, 130), (131, 131), (131, 132), (131, 133), (131, 134), (131, 135), (131, 136), (131, 137), (131, 138), (131, 139), (131, 140), (131, 141), (131, 142), (131, 143), (131, 144), (131, 145), (131, 147), (132, 108), (132, 109), (132, 110),
(132, 111), (132, 112), (132, 113), (132, 114), (132, 115), (132, 116), (132, 117), (132, 118), (132, 119), (132, 120), (132, 121), (132, 122), (132, 123), (132, 124), (132, 125), (132, 126), (132, 127), (132, 128), (132, 129), (132, 130), (132, 131), (132, 132), (132, 133), (132, 134), (132, 135), (132, 136), (132, 137), (132, 138), (132, 139), (132, 140), (132, 141), (132, 142), (132, 143), (132, 144), (132, 146), (133, 108), (133, 110), (133, 111), (133, 112), (133, 113), (133, 114), (133, 115), (133, 116), (133, 117), (133, 118), (133, 119), (133, 120), (133, 121), (133, 122), (133, 123), (133, 124), (133, 125), (133, 126), (133, 127), (133, 128), (133, 129), (133, 130), (133, 131), (133, 132), (133, 133), (133, 134), (133, 135), (133, 136), (133, 137), (133, 138), (133, 139), (133, 140), (133, 141), (133, 142), (133, 143), (133, 144), (133, 146),
(134, 107), (134, 108), (134, 109), (134, 110), (134, 111), (134, 112), (134, 113), (134, 114), (134, 115), (134, 116), (134, 117), (134, 118), (134, 119), (134, 120), (134, 121), (134, 122), (134, 123), (134, 124), (134, 125), (134, 126), (134, 127), (134, 128), (134, 129), (134, 130), (134, 131), (134, 132), (134, 133), (134, 134), (134, 135), (134, 136), (134, 137), (134, 138), (134, 139), (134, 140), (134, 141), (134, 142), (134, 143), (134, 145), (135, 106), (135, 108), (135, 109), (135, 110), (135, 111), (135, 112), (135, 113), (135, 114), (135, 115), (135, 116), (135, 117), (135, 118), (135, 119), (135, 120), (135, 121), (135, 122), (135, 123), (135, 124), (135, 125), (135, 126), (135, 127), (135, 128), (135, 129), (135, 130), (135, 131), (135, 132), (135, 133), (135, 134), (135, 135), (135, 136), (135, 137), (135, 138), (135, 139), (135, 140),
(135, 141), (135, 142), (135, 143), (135, 145), (136, 105), (136, 107), (136, 110), (136, 111), (136, 112), (136, 113), (136, 114), (136, 115), (136, 116), (136, 117), (136, 118), (136, 119), (136, 120), (136, 121), (136, 122), (136, 123), (136, 124), (136, 125), (136, 126), (136, 127), (136, 128), (136, 129), (136, 130), (136, 131), (136, 132), (136, 133), (136, 134), (136, 135), (136, 136), (136, 137), (136, 138), (136, 139), (136, 140), (136, 141), (136, 142), (136, 144), (137, 105), (137, 109), (137, 110), (137, 111), (137, 112), (137, 113), (137, 114), (137, 115), (137, 116), (137, 117), (137, 118), (137, 119), (137, 120), (137, 121), (137, 122), (137, 123), (137, 124), (137, 125), (137, 126), (137, 127), (137, 128), (137, 129), (137, 130), (137, 131), (137, 132), (137, 133), (137, 134), (137, 135), (137, 136), (137, 137), (137, 138), (137, 139),
(137, 140), (137, 141), (137, 142), (137, 144), (138, 105), (138, 107), (138, 110), (138, 112), (138, 113), (138, 114), (138, 115), (138, 116), (138, 117), (138, 118), (138, 119), (138, 120), (138, 121), (138, 122), (138, 123), (138, 124), (138, 125), (138, 126), (138, 127), (138, 128), (138, 129), (138, 130), (138, 131), (138, 132), (138, 133), (138, 134), (138, 135), (138, 136), (138, 137), (138, 138), (138, 139), (138, 140), (138, 141), (138, 143), (139, 106), (139, 110), (139, 112), (139, 113), (139, 114), (139, 115), (139, 116), (139, 117), (139, 118), (139, 119), (139, 120), (139, 121), (139, 122), (139, 123), (139, 124), (139, 125), (139, 126), (139, 127), (139, 128), (139, 129), (139, 130), (139, 131), (139, 132), (139, 133), (139, 134), (139, 135), (139, 136), (139, 137), (139, 138), (139, 139), (139, 140), (139, 142), (140, 110), (140, 112),
(140, 113), (140, 114), (140, 115), (140, 116), (140, 117), (140, 118), (140, 119), (140, 120), (140, 121), (140, 122), (140, 123), (140, 124), (140, 125), (140, 126), (140, 127), (140, 128), (140, 129), (140, 130), (140, 131), (140, 132), (140, 133), (140, 134), (140, 135), (140, 138), (140, 139), (140, 141), (141, 110), (141, 115), (141, 116), (141, 117), (141, 118), (141, 119), (141, 120), (141, 121), (141, 122), (141, 123), (141, 124), (141, 125), (141, 126), (141, 127), (141, 128), (141, 129), (141, 130), (141, 131), (141, 132), (141, 133), (141, 134), (141, 136), (141, 137), (141, 138), (141, 139), (141, 141), (142, 110), (142, 112), (142, 113), (142, 114), (142, 115), (142, 116), (142, 117), (142, 118), (142, 119), (142, 120), (142, 121), (142, 122), (142, 123), (142, 124), (142, 125), (142, 126), (142, 127), (142, 128), (142, 129), (142, 130),
(142, 131), (142, 132), (142, 133), (142, 135), (142, 138), (142, 141), (143, 115), (143, 117), (143, 118), (143, 119), (143, 120), (143, 121), (143, 122), (143, 123), (143, 124), (143, 125), (143, 126), (143, 127), (143, 128), (143, 129), (143, 130), (143, 131), (143, 132), (143, 134), (143, 138), (143, 140), (144, 115), (144, 117), (144, 118), (144, 119), (144, 120), (144, 121), (144, 122), (144, 123), (144, 124), (144, 125), (144, 126), (144, 127), (144, 128), (144, 129), (144, 130), (144, 131), (144, 138), (145, 115), (145, 117), (145, 118), (145, 119), (145, 120), (145, 121), (145, 122), (145, 123), (145, 124), (145, 125), (145, 126), (145, 127), (145, 128), (145, 129), (145, 133), (145, 138), (145, 139), (146, 116), (146, 119), (146, 120), (146, 121), (146, 122), (146, 123), (146, 124), (146, 125), (146, 126), (146, 127), (146, 128), (146, 138),
(147, 117), (147, 119), (147, 120), (147, 121), (147, 122), (147, 123), (147, 124), (147, 125), (147, 126), (147, 127), (147, 129), (148, 119), (148, 121), (148, 122), (148, 123), (148, 124), (148, 125), (148, 126), (148, 128), (149, 119), (149, 121), (149, 122), (149, 123), (149, 128), (150, 118), (150, 120), (150, 121), (150, 125), (150, 126), (150, 129), (151, 118), (151, 123), (151, 127), (151, 128), (151, 130), (151, 132), (152, 120), (152, 121), (152, 128), (152, 133), )
coordinates_00EE00 = ((98, 135),
(99, 121), (99, 122), (99, 135), (99, 136), (100, 120), (100, 122), (100, 135), (101, 114), (101, 120), (101, 123), (101, 129), (101, 135), (101, 137), (102, 114), (102, 119), (102, 121), (102, 123), (102, 128), (102, 130), (102, 136), (103, 114), (103, 119), (103, 121), (103, 122), (103, 123), (103, 125), (103, 126), (103, 130), (104, 112), (104, 115), (104, 118), (104, 120), (104, 123), (104, 128), (104, 130), (105, 111), (105, 114), (105, 116), (105, 117), (105, 119), (105, 120), (105, 121), (105, 122), (105, 123), (105, 124), (105, 125), (105, 126), (105, 127), (105, 128), (105, 129), (105, 130), (105, 132), (106, 111), (106, 113), (106, 114), (106, 115), (106, 118), (106, 120), (106, 123), (106, 125), (106, 126), (106, 127), (106, 128), (106, 129), (106, 130), (106, 134), (107, 111), (107, 113), (107, 114), (107, 115), (107, 116), (107, 117),
(107, 118), (107, 120), (107, 123), (107, 124), (107, 125), (107, 126), (107, 127), (107, 128), (107, 129), (107, 130), (107, 131), (107, 132), (107, 134), (108, 111), (108, 113), (108, 114), (108, 115), (108, 116), (108, 117), (108, 118), (108, 119), (108, 120), (108, 123), (108, 126), (108, 127), (108, 128), (108, 129), (108, 130), (108, 131), (108, 132), (108, 133), (108, 135), (109, 111), (109, 115), (109, 116), (109, 117), (109, 118), (109, 119), (109, 120), (109, 121), (109, 123), (109, 124), (109, 125), (109, 128), (109, 129), (109, 130), (109, 131), (109, 132), (109, 133), (109, 134), (109, 136), (110, 110), (110, 112), (110, 113), (110, 114), (110, 117), (110, 118), (110, 119), (110, 120), (110, 121), (110, 123), (110, 126), (110, 127), (110, 128), (110, 129), (110, 130), (110, 131), (110, 132), (110, 133), (110, 134), (110, 135), (110, 138),
(111, 109), (111, 111), (111, 115), (111, 117), (111, 118), (111, 119), (111, 120), (111, 122), (111, 128), (111, 130), (111, 131), (111, 132), (111, 133), (111, 134), (111, 135), (111, 136), (111, 140), (112, 107), (112, 111), (112, 117), (112, 119), (112, 120), (112, 121), (112, 123), (112, 128), (112, 130), (112, 131), (112, 132), (112, 133), (112, 134), (112, 135), (112, 136), (112, 137), (112, 138), (113, 105), (113, 109), (113, 110), (113, 111), (113, 113), (113, 118), (113, 120), (113, 121), (113, 122), (113, 123), (113, 124), (113, 125), (113, 126), (113, 127), (113, 130), (113, 131), (113, 132), (113, 133), (113, 134), (113, 135), (113, 136), (113, 137), (113, 138), (113, 139), (113, 141), (114, 105), (114, 107), (114, 108), (114, 109), (114, 110), (114, 111), (114, 114), (114, 118), (114, 119), (114, 120), (114, 121), (114, 122), (114, 123),
(114, 128), (114, 129), (114, 131), (114, 132), (114, 133), (114, 134), (114, 135), (114, 136), (114, 137), (114, 138), (114, 139), (114, 141), (115, 105), (115, 107), (115, 108), (115, 109), (115, 110), (115, 111), (115, 112), (115, 113), (115, 116), (115, 117), (115, 118), (115, 119), (115, 120), (115, 121), (115, 122), (115, 123), (115, 124), (115, 127), (115, 130), (115, 132), (115, 133), (115, 134), (115, 135), (115, 136), (115, 137), (115, 138), (115, 139), (115, 141), (116, 105), (116, 126), (116, 131), (116, 133), (116, 134), (116, 135), (116, 136), (116, 137), (116, 138), (116, 139), (116, 141), (117, 106), (117, 108), (117, 109), (117, 110), (117, 111), (117, 112), (117, 113), (117, 114), (117, 115), (117, 116), (117, 117), (117, 118), (117, 119), (117, 120), (117, 121), (117, 122), (117, 124), (117, 131), (117, 140), (118, 132), (118, 134),
(118, 135), (118, 136), (118, 138), (118, 140), (119, 132), (119, 135), (119, 139), (119, 140), )
coordinates_E0E1E1 = ((126, 127),
(126, 134), (127, 118), (127, 126), (127, 134), (128, 118), (128, 125), (128, 128), (129, 119), (129, 128), (129, 129), (130, 123), (130, 128), (130, 130), (131, 122), (131, 128), (131, 129), (132, 122), (132, 128), (134, 122), (136, 121), (137, 121), )
coordinates_E1E1E1 = ((111, 125),
(112, 114), )
| coordinates_01_ee00 = ((121, 126), (121, 132), (121, 134), (121, 135), (121, 137), (121, 138), (121, 139), (121, 140), (121, 141), (122, 114), (122, 115), (122, 116), (122, 117), (122, 119), (122, 125), (122, 127), (122, 128), (122, 142), (123, 110), (123, 111), (123, 112), (123, 113), (123, 120), (123, 124), (123, 126), (123, 130), (123, 132), (123, 133), (123, 134), (123, 135), (123, 136), (123, 137), (123, 138), (123, 139), (123, 140), (123, 141), (123, 144), (124, 107), (124, 109), (124, 114), (124, 115), (124, 116), (124, 117), (124, 118), (124, 120), (124, 124), (124, 125), (124, 126), (124, 127), (124, 128), (124, 129), (124, 131), (124, 132), (124, 133), (124, 134), (124, 135), (124, 136), (124, 137), (124, 138), (124, 139), (124, 140), (124, 141), (124, 142), (124, 146), (125, 105), (125, 110), (125, 111), (125, 112), (125, 113), (125, 114), (125, 115), (125, 116), (125, 117), (125, 118), (125, 119), (125, 120), (125, 122), (125, 124), (125, 125), (125, 126), (125, 127), (125, 128), (125, 129), (125, 130), (125, 131), (125, 132), (125, 133), (125, 134), (125, 135), (125, 136), (125, 137), (125, 138), (125, 139), (125, 140), (125, 141), (125, 142), (125, 143), (125, 144), (125, 148), (126, 103), (126, 107), (126, 108), (126, 109), (126, 110), (126, 111), (126, 112), (126, 113), (126, 114), (126, 115), (126, 116), (126, 117), (126, 118), (126, 119), (126, 120), (126, 124), (126, 125), (126, 126), (126, 127), (126, 128), (126, 129), (126, 130), (126, 131), (126, 132), (126, 133), (126, 134), (126, 135), (126, 136), (126, 137), (126, 138), (126, 139), (126, 140), (126, 141), (126, 142), (126, 143), (126, 144), (126, 145), (126, 146), (126, 149), (127, 102), (127, 105), (127, 106), (127, 107), (127, 108), (127, 109), (127, 110), (127, 111), (127, 112), (127, 113), (127, 114), (127, 115), (127, 116), (127, 117), (127, 118), (127, 119), (127, 120), (127, 121), (127, 122), (127, 123), (127, 124), (127, 125), (127, 126), (127, 127), (127, 128), (127, 129), (127, 130), (127, 131), (127, 132), (127, 133), (127, 134), (127, 135), (127, 136), (127, 137), (127, 138), (127, 139), (127, 140), (127, 141), (127, 142), (127, 143), (127, 144), (127, 145), (127, 146), (127, 147), (127, 148), (127, 150), (128, 103), (128, 105), (128, 106), (128, 107), (128, 108), (128, 109), (128, 110), (128, 111), (128, 112), (128, 113), (128, 114), (128, 115), (128, 116), (128, 117), (128, 118), (128, 119), (128, 120), (128, 121), (128, 122), (128, 123), (128, 124), (128, 125), (128, 126), (128, 127), (128, 128), (128, 129), (128, 130), (128, 131), (128, 132), (128, 133), (128, 134), (128, 135), (128, 136), (128, 137), (128, 138), (128, 139), (128, 140), (128, 141), (128, 142), (128, 143), (128, 144), (128, 145), (128, 146), (128, 147), (128, 149), (129, 103), (129, 105), (129, 106), (129, 107), (129, 108), (129, 109), (129, 110), (129, 111), (129, 112), (129, 113), (129, 114), (129, 115), (129, 116), (129, 117), (129, 118), (129, 119), (129, 120), (129, 121), (129, 122), (129, 123), (129, 124), (129, 125), (129, 126), (129, 127), (129, 128), (129, 129), (129, 130), (129, 131), (129, 132), (129, 133), (129, 134), (129, 135), (129, 136), (129, 137), (129, 138), (129, 139), (129, 140), (129, 141), (129, 142), (129, 143), (129, 144), (129, 145), (129, 146), (129, 147), (129, 149), (130, 104), (130, 107), (130, 108), (130, 109), (130, 110), (130, 111), (130, 112), (130, 113), (130, 114), (130, 115), (130, 116), (130, 117), (130, 118), (130, 119), (130, 120), (130, 121), (130, 122), (130, 123), (130, 124), (130, 125), (130, 126), (130, 127), (130, 128), (130, 129), (130, 130), (130, 131), (130, 132), (130, 133), (130, 134), (130, 135), (130, 136), (130, 137), (130, 138), (130, 139), (130, 140), (130, 141), (130, 142), (130, 143), (130, 144), (130, 145), (130, 146), (130, 148), (131, 104), (131, 106), (131, 107), (131, 108), (131, 109), (131, 110), (131, 111), (131, 112), (131, 113), (131, 114), (131, 115), (131, 116), (131, 117), (131, 118), (131, 119), (131, 120), (131, 121), (131, 122), (131, 123), (131, 124), (131, 125), (131, 126), (131, 127), (131, 128), (131, 129), (131, 130), (131, 131), (131, 132), (131, 133), (131, 134), (131, 135), (131, 136), (131, 137), (131, 138), (131, 139), (131, 140), (131, 141), (131, 142), (131, 143), (131, 144), (131, 145), (131, 147), (132, 108), (132, 109), (132, 110), (132, 111), (132, 112), (132, 113), (132, 114), (132, 115), (132, 116), (132, 117), (132, 118), (132, 119), (132, 120), (132, 121), (132, 122), (132, 123), (132, 124), (132, 125), (132, 126), (132, 127), (132, 128), (132, 129), (132, 130), (132, 131), (132, 132), (132, 133), (132, 134), (132, 135), (132, 136), (132, 137), (132, 138), (132, 139), (132, 140), (132, 141), (132, 142), (132, 143), (132, 144), (132, 146), (133, 108), (133, 110), (133, 111), (133, 112), (133, 113), (133, 114), (133, 115), (133, 116), (133, 117), (133, 118), (133, 119), (133, 120), (133, 121), (133, 122), (133, 123), (133, 124), (133, 125), (133, 126), (133, 127), (133, 128), (133, 129), (133, 130), (133, 131), (133, 132), (133, 133), (133, 134), (133, 135), (133, 136), (133, 137), (133, 138), (133, 139), (133, 140), (133, 141), (133, 142), (133, 143), (133, 144), (133, 146), (134, 107), (134, 108), (134, 109), (134, 110), (134, 111), (134, 112), (134, 113), (134, 114), (134, 115), (134, 116), (134, 117), (134, 118), (134, 119), (134, 120), (134, 121), (134, 122), (134, 123), (134, 124), (134, 125), (134, 126), (134, 127), (134, 128), (134, 129), (134, 130), (134, 131), (134, 132), (134, 133), (134, 134), (134, 135), (134, 136), (134, 137), (134, 138), (134, 139), (134, 140), (134, 141), (134, 142), (134, 143), (134, 145), (135, 106), (135, 108), (135, 109), (135, 110), (135, 111), (135, 112), (135, 113), (135, 114), (135, 115), (135, 116), (135, 117), (135, 118), (135, 119), (135, 120), (135, 121), (135, 122), (135, 123), (135, 124), (135, 125), (135, 126), (135, 127), (135, 128), (135, 129), (135, 130), (135, 131), (135, 132), (135, 133), (135, 134), (135, 135), (135, 136), (135, 137), (135, 138), (135, 139), (135, 140), (135, 141), (135, 142), (135, 143), (135, 145), (136, 105), (136, 107), (136, 110), (136, 111), (136, 112), (136, 113), (136, 114), (136, 115), (136, 116), (136, 117), (136, 118), (136, 119), (136, 120), (136, 121), (136, 122), (136, 123), (136, 124), (136, 125), (136, 126), (136, 127), (136, 128), (136, 129), (136, 130), (136, 131), (136, 132), (136, 133), (136, 134), (136, 135), (136, 136), (136, 137), (136, 138), (136, 139), (136, 140), (136, 141), (136, 142), (136, 144), (137, 105), (137, 109), (137, 110), (137, 111), (137, 112), (137, 113), (137, 114), (137, 115), (137, 116), (137, 117), (137, 118), (137, 119), (137, 120), (137, 121), (137, 122), (137, 123), (137, 124), (137, 125), (137, 126), (137, 127), (137, 128), (137, 129), (137, 130), (137, 131), (137, 132), (137, 133), (137, 134), (137, 135), (137, 136), (137, 137), (137, 138), (137, 139), (137, 140), (137, 141), (137, 142), (137, 144), (138, 105), (138, 107), (138, 110), (138, 112), (138, 113), (138, 114), (138, 115), (138, 116), (138, 117), (138, 118), (138, 119), (138, 120), (138, 121), (138, 122), (138, 123), (138, 124), (138, 125), (138, 126), (138, 127), (138, 128), (138, 129), (138, 130), (138, 131), (138, 132), (138, 133), (138, 134), (138, 135), (138, 136), (138, 137), (138, 138), (138, 139), (138, 140), (138, 141), (138, 143), (139, 106), (139, 110), (139, 112), (139, 113), (139, 114), (139, 115), (139, 116), (139, 117), (139, 118), (139, 119), (139, 120), (139, 121), (139, 122), (139, 123), (139, 124), (139, 125), (139, 126), (139, 127), (139, 128), (139, 129), (139, 130), (139, 131), (139, 132), (139, 133), (139, 134), (139, 135), (139, 136), (139, 137), (139, 138), (139, 139), (139, 140), (139, 142), (140, 110), (140, 112), (140, 113), (140, 114), (140, 115), (140, 116), (140, 117), (140, 118), (140, 119), (140, 120), (140, 121), (140, 122), (140, 123), (140, 124), (140, 125), (140, 126), (140, 127), (140, 128), (140, 129), (140, 130), (140, 131), (140, 132), (140, 133), (140, 134), (140, 135), (140, 138), (140, 139), (140, 141), (141, 110), (141, 115), (141, 116), (141, 117), (141, 118), (141, 119), (141, 120), (141, 121), (141, 122), (141, 123), (141, 124), (141, 125), (141, 126), (141, 127), (141, 128), (141, 129), (141, 130), (141, 131), (141, 132), (141, 133), (141, 134), (141, 136), (141, 137), (141, 138), (141, 139), (141, 141), (142, 110), (142, 112), (142, 113), (142, 114), (142, 115), (142, 116), (142, 117), (142, 118), (142, 119), (142, 120), (142, 121), (142, 122), (142, 123), (142, 124), (142, 125), (142, 126), (142, 127), (142, 128), (142, 129), (142, 130), (142, 131), (142, 132), (142, 133), (142, 135), (142, 138), (142, 141), (143, 115), (143, 117), (143, 118), (143, 119), (143, 120), (143, 121), (143, 122), (143, 123), (143, 124), (143, 125), (143, 126), (143, 127), (143, 128), (143, 129), (143, 130), (143, 131), (143, 132), (143, 134), (143, 138), (143, 140), (144, 115), (144, 117), (144, 118), (144, 119), (144, 120), (144, 121), (144, 122), (144, 123), (144, 124), (144, 125), (144, 126), (144, 127), (144, 128), (144, 129), (144, 130), (144, 131), (144, 138), (145, 115), (145, 117), (145, 118), (145, 119), (145, 120), (145, 121), (145, 122), (145, 123), (145, 124), (145, 125), (145, 126), (145, 127), (145, 128), (145, 129), (145, 133), (145, 138), (145, 139), (146, 116), (146, 119), (146, 120), (146, 121), (146, 122), (146, 123), (146, 124), (146, 125), (146, 126), (146, 127), (146, 128), (146, 138), (147, 117), (147, 119), (147, 120), (147, 121), (147, 122), (147, 123), (147, 124), (147, 125), (147, 126), (147, 127), (147, 129), (148, 119), (148, 121), (148, 122), (148, 123), (148, 124), (148, 125), (148, 126), (148, 128), (149, 119), (149, 121), (149, 122), (149, 123), (149, 128), (150, 118), (150, 120), (150, 121), (150, 125), (150, 126), (150, 129), (151, 118), (151, 123), (151, 127), (151, 128), (151, 130), (151, 132), (152, 120), (152, 121), (152, 128), (152, 133))
coordinates_00_ee00 = ((98, 135), (99, 121), (99, 122), (99, 135), (99, 136), (100, 120), (100, 122), (100, 135), (101, 114), (101, 120), (101, 123), (101, 129), (101, 135), (101, 137), (102, 114), (102, 119), (102, 121), (102, 123), (102, 128), (102, 130), (102, 136), (103, 114), (103, 119), (103, 121), (103, 122), (103, 123), (103, 125), (103, 126), (103, 130), (104, 112), (104, 115), (104, 118), (104, 120), (104, 123), (104, 128), (104, 130), (105, 111), (105, 114), (105, 116), (105, 117), (105, 119), (105, 120), (105, 121), (105, 122), (105, 123), (105, 124), (105, 125), (105, 126), (105, 127), (105, 128), (105, 129), (105, 130), (105, 132), (106, 111), (106, 113), (106, 114), (106, 115), (106, 118), (106, 120), (106, 123), (106, 125), (106, 126), (106, 127), (106, 128), (106, 129), (106, 130), (106, 134), (107, 111), (107, 113), (107, 114), (107, 115), (107, 116), (107, 117), (107, 118), (107, 120), (107, 123), (107, 124), (107, 125), (107, 126), (107, 127), (107, 128), (107, 129), (107, 130), (107, 131), (107, 132), (107, 134), (108, 111), (108, 113), (108, 114), (108, 115), (108, 116), (108, 117), (108, 118), (108, 119), (108, 120), (108, 123), (108, 126), (108, 127), (108, 128), (108, 129), (108, 130), (108, 131), (108, 132), (108, 133), (108, 135), (109, 111), (109, 115), (109, 116), (109, 117), (109, 118), (109, 119), (109, 120), (109, 121), (109, 123), (109, 124), (109, 125), (109, 128), (109, 129), (109, 130), (109, 131), (109, 132), (109, 133), (109, 134), (109, 136), (110, 110), (110, 112), (110, 113), (110, 114), (110, 117), (110, 118), (110, 119), (110, 120), (110, 121), (110, 123), (110, 126), (110, 127), (110, 128), (110, 129), (110, 130), (110, 131), (110, 132), (110, 133), (110, 134), (110, 135), (110, 138), (111, 109), (111, 111), (111, 115), (111, 117), (111, 118), (111, 119), (111, 120), (111, 122), (111, 128), (111, 130), (111, 131), (111, 132), (111, 133), (111, 134), (111, 135), (111, 136), (111, 140), (112, 107), (112, 111), (112, 117), (112, 119), (112, 120), (112, 121), (112, 123), (112, 128), (112, 130), (112, 131), (112, 132), (112, 133), (112, 134), (112, 135), (112, 136), (112, 137), (112, 138), (113, 105), (113, 109), (113, 110), (113, 111), (113, 113), (113, 118), (113, 120), (113, 121), (113, 122), (113, 123), (113, 124), (113, 125), (113, 126), (113, 127), (113, 130), (113, 131), (113, 132), (113, 133), (113, 134), (113, 135), (113, 136), (113, 137), (113, 138), (113, 139), (113, 141), (114, 105), (114, 107), (114, 108), (114, 109), (114, 110), (114, 111), (114, 114), (114, 118), (114, 119), (114, 120), (114, 121), (114, 122), (114, 123), (114, 128), (114, 129), (114, 131), (114, 132), (114, 133), (114, 134), (114, 135), (114, 136), (114, 137), (114, 138), (114, 139), (114, 141), (115, 105), (115, 107), (115, 108), (115, 109), (115, 110), (115, 111), (115, 112), (115, 113), (115, 116), (115, 117), (115, 118), (115, 119), (115, 120), (115, 121), (115, 122), (115, 123), (115, 124), (115, 127), (115, 130), (115, 132), (115, 133), (115, 134), (115, 135), (115, 136), (115, 137), (115, 138), (115, 139), (115, 141), (116, 105), (116, 126), (116, 131), (116, 133), (116, 134), (116, 135), (116, 136), (116, 137), (116, 138), (116, 139), (116, 141), (117, 106), (117, 108), (117, 109), (117, 110), (117, 111), (117, 112), (117, 113), (117, 114), (117, 115), (117, 116), (117, 117), (117, 118), (117, 119), (117, 120), (117, 121), (117, 122), (117, 124), (117, 131), (117, 140), (118, 132), (118, 134), (118, 135), (118, 136), (118, 138), (118, 140), (119, 132), (119, 135), (119, 139), (119, 140))
coordinates_e0_e1_e1 = ((126, 127), (126, 134), (127, 118), (127, 126), (127, 134), (128, 118), (128, 125), (128, 128), (129, 119), (129, 128), (129, 129), (130, 123), (130, 128), (130, 130), (131, 122), (131, 128), (131, 129), (132, 122), (132, 128), (134, 122), (136, 121), (137, 121))
coordinates_e1_e1_e1 = ((111, 125), (112, 114)) |
cars = 100
space_in_a_car = 4.0
drivers = 30
passengers = 90
cars_not_driven = cars -drivers
cars_driven = drivers
carpool_carpacity = cars_driven * space_in_a_car
average_passengers_per_car = passengers / cars_driven
print("There are", cars, "cars available")
print("There are only", drivers, "drivers available")
print("There will be", cars_not_driven, "empty cars today")
print("We can transport", carpool_carpacity, "people today")
print("We have", passengers, "to carpool today")
print("We need to put about", average_passengers_per_car, "people in each car") | cars = 100
space_in_a_car = 4.0
drivers = 30
passengers = 90
cars_not_driven = cars - drivers
cars_driven = drivers
carpool_carpacity = cars_driven * space_in_a_car
average_passengers_per_car = passengers / cars_driven
print('There are', cars, 'cars available')
print('There are only', drivers, 'drivers available')
print('There will be', cars_not_driven, 'empty cars today')
print('We can transport', carpool_carpacity, 'people today')
print('We have', passengers, 'to carpool today')
print('We need to put about', average_passengers_per_car, 'people in each car') |
course = "Python Programming"
print(course.upper())
print(course.lower())
print(course.title())
course = " Python Programming"
print(course)
print(course.strip())
print(course.find("Pro"))
print(course.find("pro"))
print(course.replace("P", "-"))
print("Programming" in course)
print("Programming" not in course)
| course = 'Python Programming'
print(course.upper())
print(course.lower())
print(course.title())
course = ' Python Programming'
print(course)
print(course.strip())
print(course.find('Pro'))
print(course.find('pro'))
print(course.replace('P', '-'))
print('Programming' in course)
print('Programming' not in course) |
def init():
# Set locale environment
# Set config
# Set user and group
# init logger
pass | def init():
pass |
def determinant(matA):
dimA = []
# find dimensions of arrA
a = matA
while type(a) == list:
dimA.append(len(a))
a = a[0]
#is it square
if dimA[0] != dimA[1]:
raise Exception("Matrix is not square")
#find determinant
total = 0
if dimA[0] == 2:
total = matA[0][0] * matA[1][1] - matA[1][0] * matA[0][1]
return total
else:
sign = 1
for i in range(dimA[0]):
temp = matA[1:]
#remove the current column from the temp stuff
for j in range(dimA[0]-1):
temp[j] = temp[j][0:i] + temp[j][i+1:]
sub = determinant(temp)
total = total + sign * matA[0][i] * sub
sign *= -1
return total
matA = [[1,2,3],[4,5,6],[7,8,15]]
print(determinant(matA)) | def determinant(matA):
dim_a = []
a = matA
while type(a) == list:
dimA.append(len(a))
a = a[0]
if dimA[0] != dimA[1]:
raise exception('Matrix is not square')
total = 0
if dimA[0] == 2:
total = matA[0][0] * matA[1][1] - matA[1][0] * matA[0][1]
return total
else:
sign = 1
for i in range(dimA[0]):
temp = matA[1:]
for j in range(dimA[0] - 1):
temp[j] = temp[j][0:i] + temp[j][i + 1:]
sub = determinant(temp)
total = total + sign * matA[0][i] * sub
sign *= -1
return total
mat_a = [[1, 2, 3], [4, 5, 6], [7, 8, 15]]
print(determinant(matA)) |
#
# PySNMP MIB module BAY-STACK-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BAY-STACK-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:19:06 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
SingleValueConstraint, ConstraintsUnion, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsUnion", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, Counter64, Bits, Counter32, ModuleIdentity, ObjectIdentity, IpAddress, iso, Integer32, NotificationType, MibIdentifier, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "Counter64", "Bits", "Counter32", "ModuleIdentity", "ObjectIdentity", "IpAddress", "iso", "Integer32", "NotificationType", "MibIdentifier", "Unsigned32")
TruthValue, TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TruthValue", "TextualConvention", "DisplayString")
bayStackMibs, = mibBuilder.importSymbols("SYNOPTICS-ROOT-MIB", "bayStackMibs")
bayStackMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 45, 5, 13))
bayStackMib.setRevisions(('2013-10-11 00:00', '2012-10-02 00:00', '2009-09-28 00:00', '2007-09-04 00:00', '2005-08-22 00:00',))
if mibBuilder.loadTexts: bayStackMib.setLastUpdated('201310110000Z')
if mibBuilder.loadTexts: bayStackMib.setOrganization('Nortel Networks')
bayStackObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 45, 5, 13, 1))
bayStackConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 45, 5, 13, 1, 1))
bayStackConfigExpectedStackSize = MibScalar((1, 3, 6, 1, 4, 1, 45, 5, 13, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 8))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: bayStackConfigExpectedStackSize.setStatus('current')
bayStackConfigStackErrorNotificationInterval = MibScalar((1, 3, 6, 1, 4, 1, 45, 5, 13, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(60)).setUnits('Seconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: bayStackConfigStackErrorNotificationInterval.setStatus('current')
bayStackConfigStackErrorNotificationEnabled = MibScalar((1, 3, 6, 1, 4, 1, 45, 5, 13, 1, 1, 3), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: bayStackConfigStackErrorNotificationEnabled.setStatus('current')
bayStackConfigStackRebootUnitOnFailure = MibScalar((1, 3, 6, 1, 4, 1, 45, 5, 13, 1, 1, 4), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: bayStackConfigStackRebootUnitOnFailure.setStatus('current')
bayStackConfigStackRetryCount = MibScalar((1, 3, 6, 1, 4, 1, 45, 5, 13, 1, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: bayStackConfigStackRetryCount.setStatus('current')
bayStackUnitConfigTable = MibTable((1, 3, 6, 1, 4, 1, 45, 5, 13, 1, 2), )
if mibBuilder.loadTexts: bayStackUnitConfigTable.setStatus('current')
bayStackUnitConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 45, 5, 13, 1, 2, 1), ).setIndexNames((0, "BAY-STACK-MIB", "bayStackUnitConfigIndex"))
if mibBuilder.loadTexts: bayStackUnitConfigEntry.setStatus('current')
bayStackUnitConfigIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 13, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 8))).setMaxAccess("readonly")
if mibBuilder.loadTexts: bayStackUnitConfigIndex.setStatus('current')
bayStackUnitConfigRearPortAdminMode = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 13, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("standalone", 1), ("stacking", 2), ("spb", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: bayStackUnitConfigRearPortAdminMode.setStatus('current')
bayStackUnitConfigRearPortOperMode = MibTableColumn((1, 3, 6, 1, 4, 1, 45, 5, 13, 1, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("standalone", 1), ("stacking", 2), ("spb", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: bayStackUnitConfigRearPortOperMode.setStatus('current')
mibBuilder.exportSymbols("BAY-STACK-MIB", bayStackMib=bayStackMib, bayStackUnitConfigIndex=bayStackUnitConfigIndex, bayStackConfigStackErrorNotificationEnabled=bayStackConfigStackErrorNotificationEnabled, PYSNMP_MODULE_ID=bayStackMib, bayStackConfigStackRetryCount=bayStackConfigStackRetryCount, bayStackConfigStackErrorNotificationInterval=bayStackConfigStackErrorNotificationInterval, bayStackUnitConfigRearPortOperMode=bayStackUnitConfigRearPortOperMode, bayStackUnitConfigEntry=bayStackUnitConfigEntry, bayStackConfigStackRebootUnitOnFailure=bayStackConfigStackRebootUnitOnFailure, bayStackObjects=bayStackObjects, bayStackUnitConfigRearPortAdminMode=bayStackUnitConfigRearPortAdminMode, bayStackConfig=bayStackConfig, bayStackUnitConfigTable=bayStackUnitConfigTable, bayStackConfigExpectedStackSize=bayStackConfigExpectedStackSize)
| (octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(single_value_constraint, constraints_union, constraints_intersection, value_size_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ValueRangeConstraint')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(time_ticks, mib_scalar, mib_table, mib_table_row, mib_table_column, gauge32, counter64, bits, counter32, module_identity, object_identity, ip_address, iso, integer32, notification_type, mib_identifier, unsigned32) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Gauge32', 'Counter64', 'Bits', 'Counter32', 'ModuleIdentity', 'ObjectIdentity', 'IpAddress', 'iso', 'Integer32', 'NotificationType', 'MibIdentifier', 'Unsigned32')
(truth_value, textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TruthValue', 'TextualConvention', 'DisplayString')
(bay_stack_mibs,) = mibBuilder.importSymbols('SYNOPTICS-ROOT-MIB', 'bayStackMibs')
bay_stack_mib = module_identity((1, 3, 6, 1, 4, 1, 45, 5, 13))
bayStackMib.setRevisions(('2013-10-11 00:00', '2012-10-02 00:00', '2009-09-28 00:00', '2007-09-04 00:00', '2005-08-22 00:00'))
if mibBuilder.loadTexts:
bayStackMib.setLastUpdated('201310110000Z')
if mibBuilder.loadTexts:
bayStackMib.setOrganization('Nortel Networks')
bay_stack_objects = mib_identifier((1, 3, 6, 1, 4, 1, 45, 5, 13, 1))
bay_stack_config = mib_identifier((1, 3, 6, 1, 4, 1, 45, 5, 13, 1, 1))
bay_stack_config_expected_stack_size = mib_scalar((1, 3, 6, 1, 4, 1, 45, 5, 13, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 8))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
bayStackConfigExpectedStackSize.setStatus('current')
bay_stack_config_stack_error_notification_interval = mib_scalar((1, 3, 6, 1, 4, 1, 45, 5, 13, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)).clone(60)).setUnits('Seconds').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
bayStackConfigStackErrorNotificationInterval.setStatus('current')
bay_stack_config_stack_error_notification_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 45, 5, 13, 1, 1, 3), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
bayStackConfigStackErrorNotificationEnabled.setStatus('current')
bay_stack_config_stack_reboot_unit_on_failure = mib_scalar((1, 3, 6, 1, 4, 1, 45, 5, 13, 1, 1, 4), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
bayStackConfigStackRebootUnitOnFailure.setStatus('current')
bay_stack_config_stack_retry_count = mib_scalar((1, 3, 6, 1, 4, 1, 45, 5, 13, 1, 1, 5), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
bayStackConfigStackRetryCount.setStatus('current')
bay_stack_unit_config_table = mib_table((1, 3, 6, 1, 4, 1, 45, 5, 13, 1, 2))
if mibBuilder.loadTexts:
bayStackUnitConfigTable.setStatus('current')
bay_stack_unit_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 45, 5, 13, 1, 2, 1)).setIndexNames((0, 'BAY-STACK-MIB', 'bayStackUnitConfigIndex'))
if mibBuilder.loadTexts:
bayStackUnitConfigEntry.setStatus('current')
bay_stack_unit_config_index = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 13, 1, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 8))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
bayStackUnitConfigIndex.setStatus('current')
bay_stack_unit_config_rear_port_admin_mode = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 13, 1, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('standalone', 1), ('stacking', 2), ('spb', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
bayStackUnitConfigRearPortAdminMode.setStatus('current')
bay_stack_unit_config_rear_port_oper_mode = mib_table_column((1, 3, 6, 1, 4, 1, 45, 5, 13, 1, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('standalone', 1), ('stacking', 2), ('spb', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
bayStackUnitConfigRearPortOperMode.setStatus('current')
mibBuilder.exportSymbols('BAY-STACK-MIB', bayStackMib=bayStackMib, bayStackUnitConfigIndex=bayStackUnitConfigIndex, bayStackConfigStackErrorNotificationEnabled=bayStackConfigStackErrorNotificationEnabled, PYSNMP_MODULE_ID=bayStackMib, bayStackConfigStackRetryCount=bayStackConfigStackRetryCount, bayStackConfigStackErrorNotificationInterval=bayStackConfigStackErrorNotificationInterval, bayStackUnitConfigRearPortOperMode=bayStackUnitConfigRearPortOperMode, bayStackUnitConfigEntry=bayStackUnitConfigEntry, bayStackConfigStackRebootUnitOnFailure=bayStackConfigStackRebootUnitOnFailure, bayStackObjects=bayStackObjects, bayStackUnitConfigRearPortAdminMode=bayStackUnitConfigRearPortAdminMode, bayStackConfig=bayStackConfig, bayStackUnitConfigTable=bayStackUnitConfigTable, bayStackConfigExpectedStackSize=bayStackConfigExpectedStackSize) |
objects = {}
def instantiate():
# This function is called once during server startup. Modify the global 'objects' dict with of instantiated
# shared objects that you wish to store in the parent process and have access to from child request handler
# processes. Each object must support being shared via the multiproccessing module or else the object will
# just be copied into the children. See http://docs.python.org/library/multiprocessing.html
#
# For example, in this function you might put:
#
# import multiprocessing
# objects['num_requests'] = multiprocessing.Value('i',0)
#
# And in your request handler, put:
#
# from magnum.shared import objects
# objects['num_requests'].value += 1
return
| objects = {}
def instantiate():
return |
host = "localhost"
port = 9999
dboptions = {
"host": "194.67.198.163",
"user": "postgres",
"password": "werdwerd2012",
"database": "zno_bot",
'migrate': True
}
API_PATH = '/api/'
API_VERSION = 'v1'
API_URL = API_PATH + API_VERSION
| host = 'localhost'
port = 9999
dboptions = {'host': '194.67.198.163', 'user': 'postgres', 'password': 'werdwerd2012', 'database': 'zno_bot', 'migrate': True}
api_path = '/api/'
api_version = 'v1'
api_url = API_PATH + API_VERSION |
class Frequency:
def __init__(self):
self.frequency = 0
def increment(self, i):
self.frequency = self.frequency + i
def decrement(self, i):
self.frequency = self.frequency - i
def __str__(self):
return str(self.frequency)
def __repr__(self):
return str(self.frequency)
def get_steps(filename):
with open(f'data/{filename}', 'r') as f:
raw_steps = f.readlines()
steps = []
for i in raw_steps:
steps.append([i[0], int(i[1:])])
return steps
def part_one():
freq = Frequency()
steps = get_steps('day1-1.txt')
ops = {'+': freq.increment, '-': freq.decrement}
for i in steps:
ops[i[0]](i[1])
return freq
def part_two():
freq = Frequency()
steps = get_steps('day1-1.txt')
ops = {'+': freq.increment, '-': freq.decrement}
current = 0
already_seen = []
while current not in already_seen:
for i in steps:
if current in already_seen:
break
already_seen.append(int(str(freq)))
ops[i[0]](i[1])
current = int(str(freq))
return freq
if __name__ == '__main__':
print(f'Part 1: {part_one()}\nPart 2: {part_two()}')
| class Frequency:
def __init__(self):
self.frequency = 0
def increment(self, i):
self.frequency = self.frequency + i
def decrement(self, i):
self.frequency = self.frequency - i
def __str__(self):
return str(self.frequency)
def __repr__(self):
return str(self.frequency)
def get_steps(filename):
with open(f'data/{filename}', 'r') as f:
raw_steps = f.readlines()
steps = []
for i in raw_steps:
steps.append([i[0], int(i[1:])])
return steps
def part_one():
freq = frequency()
steps = get_steps('day1-1.txt')
ops = {'+': freq.increment, '-': freq.decrement}
for i in steps:
ops[i[0]](i[1])
return freq
def part_two():
freq = frequency()
steps = get_steps('day1-1.txt')
ops = {'+': freq.increment, '-': freq.decrement}
current = 0
already_seen = []
while current not in already_seen:
for i in steps:
if current in already_seen:
break
already_seen.append(int(str(freq)))
ops[i[0]](i[1])
current = int(str(freq))
return freq
if __name__ == '__main__':
print(f'Part 1: {part_one()}\nPart 2: {part_two()}') |
# Copyright (c) 2004, The Long Now Foundation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# HTML template substitutions
#
# %n - nodeId (aka item number)
# %t - title
# %d - date string
# %1 [...] - positional arguments
# The HTML template used for a popup.
popupTemplate = """
<div class="node" id="node%n" onmouseout="javascript:hideNode('%n')">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td class="exp">
BET<br><span class="txt">%n</span></td>
<td class="exp" align="right">
%d
</td>
</tr>
</table>
<div class="txt-sm">
%1</div>
<table cellpadding="3" cellspacing="0" border="0" width="100%">
<tr>
<td class="exp" align="right">
AGREE
</td>
<td class="txt" align="left">
%2
</td>
</tr>
<tr>
<td class="exp" align="right">
DISAGREE
</td>
<td class="txt" align="left">
%3
</td>
</tr>
<tr>
<td class="exp" align="right">
STAKES
</td>
<td class="txt" align="left">
%4
</td>
</tr>
</table>
</div>
"""
notifyTemplate = """
<div class="node" id="node%n" onmouseout="javascript:hideNode('%n')">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td class="exp">
BET<br><span class="txt">%1</span></td>
<td class="exp" align="right">
REMEMBER AND REMIND
</td>
</tr>
</table>
<div class="txt-sm">
%2</div>
<table cellpadding="3" cellspacing="0" border="0" width="100%">
<tr>
<td class="exp" align="center">
%3
</td>
</tr>
</table>
</div>
"""
# this string gets written out in its entirety to styles.css
stylesheets = """
/* for the whole page, unless overridden */
body {
padding: 0;
margin: 0;
background-image: url("./img-static/bg.jpg");
}
/* Long Bets specific styles */
.exp {
font-size: 11px;
font-family: Verdana, Helvetica, sans-serif;
}
.txt-lg {
font-size: 16px;
font-family: Georgia, Times, serif;
}
.txt {
font-size: 14px;
font-family: Georgia, Times, serif;
}
.txt-sm {
font-size: 11px;
font-family: Georgia, Times, serif;
}
.txt-lt {
font-size: 14px;
font-family: Georgia, Times, serif;
color: #666666;
}
.node .txt-sm {
padding: 5px 0;
font-size: 12px;
}
.key {
width: 664px;
margin: 10px 0;
border: #ccc 1px solid;
}
.key td {
padding: 1px;
font-size: 11px;
width: 50%;
font-family: Verdana, Helvetica, sans-serif;
text-align: center;
}
/* links that have not been visited */
a:link {
color: #930;
text-decoration: none;
}
/* links that have already been visited */
a:visited {
color: #930;
text-decoration: none;
}
/* applied to a link when the cursor is hovering over it */
a:hover {
color: #c63;
text-decoration: underline;
}
/* the table at the very top of the page containing the logo image */
.logotable {
width: 100%; /* percent of the browser window occupied by the table */
margin: 0px;
padding: 0px;
}
/* the table data cell which contains the logo image */
.logo {
text-align: right;
background-color: #000;
border-bottom: 1px solid #996;
}
/* the table containing the title and navbar */
.titleandnav {
width: 100%; /* percent of the browser window occupied by the table */
}
/* the title cell itself */
.titlecell {
padding: 6px 10px; /* first value: top & bottom; second: left & right */
font-family: verdana, helvetica, arial, sans-serif; /* in order of */
/* desirability */
font-size: 16px;
border-top: 1px solid #996;
border-bottom: 1px solid #996;
color: #666;
}
/* the table cell which holds the navigation bar & surrounding whitespace */
.navcell {
text-align: center;
vertical-align: middle;
padding-left: 15px;
font-family: verdana, helvetica, arial, sans-serif; /* in order of */
/* desirability */
font-size: 10px;
color: #666;
}
/* table which holds the navigation bar & horizontal whitespace, but no
* vertical whitespace */
.navtable {
margin-left: auto;
margin-right: auto;
}
/* the dates on both ends of the navigation bar */
.navlabel {
font-family: verdana, helvetica, arial, sans-serif; /* in order of */
/* desirability */
font-size: 10px;
padding: 4px;
}
/* table cell that holds the "Long View Powered" image */
.power {
padding-left: 15px;
padding-right: 5px;
text-align: right;
}
/* row of dates labeling the X-axis of the timeline, at the top */
.ytabletop {
border-bottom: 1px dotted #996;
}
/* cell containing an individual date label on the X-axis of the timeline */
.ycell {
text-align: center;
vertical-align: top;
padding: 0;
font-family: verdana, helvetica, arial, sans-serif; /* in order of */
/* desirability */
font-size: 10px;
}
/* row of dates labeling the X-axis of the timeline, at the bottom */
.ytablebottom {
border-top: 1px dotted #996;
border-bottom: 1px solid #996;
}
/* table cell containing "Past", "Now", and "Future" at the top of the */
/* timeline*/
.pastnowcell {
text-align: right;
padding: 0;
}
/* the table containing the body of the timeline */
#datatable {
border-top: 1px #ddd solid;
border-right: 1px #ddd solid;
background-image: url('./img-generated/timeline-bg.png');
}
/* the background of each timeline bar */
.data {
padding-top: 1px;
padding-bottom: 1px;
background-position: 200px;
background-repeat: repeat-x;
}
/* the block that contains all of the timeline labels on the left side of
* the screen. */
#labels {
position: absolute;
top: 26px;
z-index: 3;
}
/* cell containing a single label on the left side of the screen */
.labelscell {
font-size: 10px;
font-weight: normal;
font-family: verdana, helvetica, arial, sans-serif; /* in order of desirability */
color: #999;
padding-top: 3px;
border: 0;
}
/* the popups themselves */
.node {
position: absolute;
visibility: hidden;
color: #333;
width: 200px;
z-index: 5;
border: 1px solid #999;
background-image: url(./img-static/popup-bg.gif);
padding: 6px;
}
/* The body of the popups (eg the HTML inside the table) */
.popupcell {
font-size: 10px;
font-weight: normal;
font-family: verdana, helvetica, arial, sans-serif; /* in order of */
/* desirability */
}
/* Popup titles */
.popuptitle {
font-size: 12px;
}
"""
# override the default header top matter from the lvhtml module
headerTop = """<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>%s</title>
<link rel="stylesheet" href="./styles.css" />
<script language="javascript" type="text/javascript" src="./rollover.js"></script>
</head>
<body onload="loadimgs();">
<img src="./img-static/no.gif" alt="" width="1" height="25" border="0"><br>
<div align="center">
<table cellpadding="0" cellspacing="0" border="0" width="664">
<tr>
<td colspan="3">
<img src="./img-static/timeline.gif" alt="Timeline" width="664" height="38" border="0"></td>
</tr>
<tr>
<td class="exp" nowrap>
<img src="./img-static/no.gif" alt="" width="5" height="1" border="0">
<span class="txt"><b>%s</b></span><br>
<!-- longview.py unused value hack: %s - %s -->
« On the Record: <a href="http://www.longbets.com/bets" target="_top">Bets</a> | <a href="http://www.longbets.com/predictions" target="_top">Predictions</a></td>
<td class="navcell" align="right" nowrap>
<table class="navtable" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="navlabel">
%s</td>
<td nowrap="nowrap">\n"""
# another override
headerBottom = """</td>
<td class="navlabel">%s</td>
</tr>
</table></td>
<td class="power"><img src="img-static/longview-power.gif" alt="Powered by Long View" width="89" height="22" border="0" /></td>
</td>
</tr>
</table>
<table class="key">
<tr>
<td>
Votes: YES <img src="img-generated/key1.png" alt="" width="65" height="12"> NO</td>
<td>
Discussion Intensity: LESS <img src="img-generated/key2.png" alt="" width="65" height="12"> MORE</td>
</tr>
</table>
</div>
</body>
</html>
"""
| popup_template = '\n<div class="node" id="node%n" onmouseout="javascript:hideNode(\'%n\')">\n<table cellpadding="0" cellspacing="0" border="0" width="100%">\n<tr>\n<td class="exp">\nBET<br><span class="txt">%n</span></td>\n\n<td class="exp" align="right">\n%d\n</td>\n</tr>\n</table>\n\n<div class="txt-sm">\n%1</div>\n\n<table cellpadding="3" cellspacing="0" border="0" width="100%">\n<tr>\n<td class="exp" align="right">\nAGREE\n</td>\n\n<td class="txt" align="left">\n%2\n</td>\n</tr>\n\n<tr>\n<td class="exp" align="right">\nDISAGREE\n</td>\n\n<td class="txt" align="left">\n%3\n</td>\n</tr>\n\n<tr>\n<td class="exp" align="right">\nSTAKES\n</td>\n\n<td class="txt" align="left">\n%4\n</td>\n</tr>\n</table>\n</div>\n'
notify_template = '\n<div class="node" id="node%n" onmouseout="javascript:hideNode(\'%n\')">\n<table cellpadding="0" cellspacing="0" border="0" width="100%">\n<tr>\n<td class="exp">\nBET<br><span class="txt">%1</span></td>\n\n<td class="exp" align="right">\nREMEMBER AND REMIND\n</td>\n</tr>\n</table>\n\n<div class="txt-sm">\n%2</div>\n\n<table cellpadding="3" cellspacing="0" border="0" width="100%">\n<tr>\n<td class="exp" align="center">\n%3\n</td>\n</tr>\n</table>\n</div>\n'
stylesheets = '\n/* for the whole page, unless overridden */\nbody { \n padding: 0;\n margin: 0;\n background-image: url("./img-static/bg.jpg");\n }\n\n/* Long Bets specific styles */\n.exp {\n font-size: 11px; \n font-family: Verdana, Helvetica, sans-serif;\n }\n\n.txt-lg {\n font-size: 16px; \n font-family: Georgia, Times, serif;\n }\n \n.txt {\n font-size: 14px; \n font-family: Georgia, Times, serif;\n }\n \n.txt-sm {\n font-size: 11px; \n font-family: Georgia, Times, serif;\n }\n \n.txt-lt {\n font-size: 14px; \n font-family: Georgia, Times, serif; \n color: #666666;\n } \n\n.node .txt-sm {\n padding: 5px 0;\n font-size: 12px;\n }\n\n.key {\n width: 664px;\n margin: 10px 0;\n border: #ccc 1px solid;\n }\n \n.key td {\n padding: 1px;\n font-size: 11px; \n width: 50%;\n font-family: Verdana, Helvetica, sans-serif;\n text-align: center;\n }\n\n/* links that have not been visited */\na:link {\n color: #930;\n text-decoration: none;\n }\n\n/* links that have already been visited */\na:visited {\n color: #930;\n text-decoration: none;\n }\n\n/* applied to a link when the cursor is hovering over it */\na:hover\t{\n color: #c63;\n text-decoration: underline;\n }\n\n/* the table at the very top of the page containing the logo image */\n.logotable { \n width: 100%; /* percent of the browser window occupied by the table */\n margin: 0px;\n padding: 0px;\n } \n\n/* the table data cell which contains the logo image */\n.logo { \n text-align: right;\n background-color: #000;\n border-bottom: 1px solid #996;\n }\n\n/* the table containing the title and navbar */\n.titleandnav { \n width: 100%; /* percent of the browser window occupied by the table */\n }\n\n/* the title cell itself */\n.titlecell {\n padding: 6px 10px; /* first value: top & bottom; second: left & right */\n font-family: verdana, helvetica, arial, sans-serif; /* in order of */\n /* desirability */ \n font-size: 16px;\n border-top: 1px solid #996;\n border-bottom: 1px solid #996;\n color: #666;\n } \n\n/* the table cell which holds the navigation bar & surrounding whitespace */ \n.navcell {\n text-align: center;\n vertical-align: middle;\n padding-left: 15px;\n font-family: verdana, helvetica, arial, sans-serif; /* in order of */\n /* desirability */\n font-size: 10px;\n color: #666;\n } \n\n/* table which holds the navigation bar & horizontal whitespace, but no\n * vertical whitespace */\n.navtable {\n margin-left: auto; \n margin-right: auto;\n }\n\n/* the dates on both ends of the navigation bar */\n.navlabel {\n font-family: verdana, helvetica, arial, sans-serif; /* in order of */\n /* desirability */\n font-size: 10px;\n padding: 4px;\n } \n\n/* table cell that holds the "Long View Powered" image */\n.power {\n padding-left: 15px;\n padding-right: 5px;\n text-align: right;\n }\n\n/* row of dates labeling the X-axis of the timeline, at the top */\n.ytabletop {\n border-bottom: 1px dotted #996;\n }\n\n/* cell containing an individual date label on the X-axis of the timeline */\n.ycell {\n text-align: center;\n vertical-align: top;\n padding: 0;\n font-family: verdana, helvetica, arial, sans-serif; /* in order of */\n /* desirability */\n font-size: 10px;\n } \n\n/* row of dates labeling the X-axis of the timeline, at the bottom */\n.ytablebottom {\n border-top: 1px dotted #996;\n border-bottom: 1px solid #996;\n }\n\n/* table cell containing "Past", "Now", and "Future" at the top of the */\n/* timeline*/\n.pastnowcell {\n text-align: right;\n padding: 0;\n }\n\n/* the table containing the body of the timeline */\n#datatable {\n border-top: 1px #ddd solid;\n border-right: 1px #ddd solid;\n background-image: url(\'./img-generated/timeline-bg.png\');\n }\n\n/* the background of each timeline bar */ \n.data {\n padding-top: 1px;\n padding-bottom: 1px;\n background-position: 200px;\n background-repeat: repeat-x;\n } \n\n/* the block that contains all of the timeline labels on the left side of\n * the screen. */\n#labels {\n position: absolute;\n top: 26px;\n z-index: 3;\n}\n\n/* cell containing a single label on the left side of the screen */\n.labelscell {\n font-size: 10px;\n font-weight: normal;\n font-family: verdana, helvetica, arial, sans-serif; /* in order of desirability */\n color: #999;\n padding-top: 3px;\n border: 0;\n}\n\n/* the popups themselves */\n.node {\n position: absolute;\n visibility: hidden;\n color: #333;\n width: 200px;\n z-index: 5;\n border: 1px solid #999;\n background-image: url(./img-static/popup-bg.gif);\n padding: 6px;\n}\n\n/* The body of the popups (eg the HTML inside the table) */\n.popupcell {\n font-size: 10px;\n font-weight: normal;\n font-family: verdana, helvetica, arial, sans-serif; /* in order of */\n /* desirability */\n}\n\n/* Popup titles */\n.popuptitle {\n font-size: 12px;\n}\n \n'
header_top = '<html xmlns="http://www.w3.org/1999/xhtml">\n<head>\n<title>%s</title>\n<link rel="stylesheet" href="./styles.css" />\n<script language="javascript" type="text/javascript" src="./rollover.js"></script>\n</head>\n\n<body onload="loadimgs();">\n\n<img src="./img-static/no.gif" alt="" width="1" height="25" border="0"><br>\n\n<div align="center">\n\n<table cellpadding="0" cellspacing="0" border="0" width="664">\n<tr>\n<td colspan="3">\n<img src="./img-static/timeline.gif" alt="Timeline" width="664" height="38" border="0"></td>\n</tr>\n\n<tr>\n<td class="exp" nowrap>\n<img src="./img-static/no.gif" alt="" width="5" height="1" border="0">\n<span class="txt"><b>%s</b></span><br>\n<!-- longview.py unused value hack: %s - %s -->\n\n« On the Record: <a href="http://www.longbets.com/bets" target="_top">Bets</a> | <a href="http://www.longbets.com/predictions" target="_top">Predictions</a></td>\n\n<td class="navcell" align="right" nowrap>\n<table class="navtable" cellpadding="0" cellspacing="0" border="0">\n<tr>\n<td class="navlabel">\n%s</td>\n\n<td nowrap="nowrap">\n'
header_bottom = '</td>\n\n<td class="navlabel">%s</td>\n</tr>\n</table></td>\n\n<td class="power"><img src="img-static/longview-power.gif" alt="Powered by Long View" width="89" height="22" border="0" /></td>\n</td>\n</tr>\n</table>\n\n<table class="key">\n<tr>\n<td>\nVotes: YES <img src="img-generated/key1.png" alt="" width="65" height="12"> NO</td>\n\n<td>\nDiscussion Intensity: LESS <img src="img-generated/key2.png" alt="" width="65" height="12"> MORE</td>\n</tr>\n</table>\n</div>\n\n</body>\n</html>\n' |
#! python3
# -*- coding: utf-8 -*-
"""
Euler description from https://projecteuler.net/
Problem 0002
Each new term in the Fibonacci sequence is generated by adding the previous two
terms. By starting with 1 and 2, the first 10 terms will be:
1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
By considering the terms in the Fibonacci sequence whose values do not exceed
four million[4000000], find the sum of the even-valued terms.
"""
#fibonacci list generator
def fibonacci(limit=89):
lst = [1,2]
n1, n2 = 1, 2
while(n2 < limit):
n = n1 + n2
n1 = n2
n2 = n
lst.append(n)
return lst
# main function same aproach as problem0001
def compute(v = 4000000):
ans = sum(x for x in fibonacci(v) if x % 2 == 0)
return ans
if __name__ == "__main__":
print(compute(4000000))
| """
Euler description from https://projecteuler.net/
Problem 0002
Each new term in the Fibonacci sequence is generated by adding the previous two
terms. By starting with 1 and 2, the first 10 terms will be:
1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
By considering the terms in the Fibonacci sequence whose values do not exceed
four million[4000000], find the sum of the even-valued terms.
"""
def fibonacci(limit=89):
lst = [1, 2]
(n1, n2) = (1, 2)
while n2 < limit:
n = n1 + n2
n1 = n2
n2 = n
lst.append(n)
return lst
def compute(v=4000000):
ans = sum((x for x in fibonacci(v) if x % 2 == 0))
return ans
if __name__ == '__main__':
print(compute(4000000)) |
'''
Created on Mar 30, 2019
@author: PIKU
'''
def justSayHello():
print("Hello ...")
def getHello():
return "Hello guys"
if __name__ == '__main__':
justSayHello()
x = getHello()
print(x)
| """
Created on Mar 30, 2019
@author: PIKU
"""
def just_say_hello():
print('Hello ...')
def get_hello():
return 'Hello guys'
if __name__ == '__main__':
just_say_hello()
x = get_hello()
print(x) |
def formstash_to_querystring(formStash):
err = []
for (k, v) in formStash.errors.items():
err.append(("%s--%s" % (k, v)).replace("\n", "+").replace(" ", "+"))
err = sorted(err)
err = "---".join(err)
return err
class _UrlSafeException(Exception):
@property
def as_querystring(self):
return str(self).replace("\n", "+").replace(" ", "+")
class GarfieldMinusGarfield(Exception):
"""
An exception for those odd moments
"""
pass
class InvalidTransition(Exception):
"""raised when a transition is invalid"""
pass
class ObjectExists(Exception):
"""raised when an object already exists, no need to create"""
pass
class ConflictingObject(Exception):
"""
raised when an object already exists
args[0] = tuple(conflicting_object, error_message_string)
"""
pass
class OpenSslError(Exception):
pass
class OpenSslError_CsrGeneration(OpenSslError):
pass
class OpenSslError_InvalidKey(OpenSslError):
pass
class OpenSslError_InvalidCSR(OpenSslError):
pass
class OpenSslError_InvalidCertificate(OpenSslError):
pass
class OpenSslError_VersionTooLow(OpenSslError):
pass
class QueueProcessingError(Exception):
pass
class AcmeError(_UrlSafeException):
pass
class AcmeDuplicateAccount(AcmeError):
"""
args[0] MUST be the duplicate AcmeAccount
"""
pass
class AcmeDuplicateChallenges(AcmeError):
pass
class AcmeDuplicateChallengesExisting(AcmeDuplicateChallenges):
"""the first arg should be a list of the active challenges"""
def __str__(self):
return (
"""One or more domains already have active challenges: %s."""
% ", ".join(
[
"`%s` (%s)" % (ac.domain.domain_name, ac.acme_challenge_type)
for ac in self.args[0]
]
)
)
class AcmeDuplicateChallenge(AcmeDuplicateChallenges):
"""the first arg should be a single active challenge"""
def __str__(self):
return (
"""This domain already has active challenges: `%s`."""
% self.args[0].domain.domain_name
)
class AcmeDuplicateOrderlessDomain(AcmeDuplicateChallenges):
pass
class AcmeServerError(AcmeError):
pass
class AcmeServer404(AcmeServerError):
pass
class AcmeCommunicationError(AcmeError):
pass
class AcmeAuthorizationFailure(AcmeError):
"""raised when an Authorization fails"""
pass
class AcmeOrphanedObject(AcmeError):
pass
class AcmeOrderError(AcmeError):
pass
class AcmeOrderFatal(AcmeOrderError):
"""
The AcmeOrder has a fatal error.
Authorizations should be killed.
"""
pass
class AcmeOrderCreatedError(AcmeOrderError):
"""
If an exception occurs AFTER an AcmeOrder is created, raise this.
It should have two attributes:
args[0] - AcmeOrder
args[1] - original exception
"""
def __str__(self):
return "An AcmeOrder-{0} was created but errored".format(self.args[0])
@property
def acme_order(self):
return self.args[0]
@property
def original_exception(self):
return self.args[1]
class AcmeOrderProcessing(AcmeOrderCreatedError):
"""
raise when the AcmeOrder is `processing` (RFC status)
this should generally indicate the user should retry their action
"""
def __str__(self):
return "An AcmeOrder-{0} was created. The order is still processing.".format(
self.args[0]
)
class AcmeOrderValid(AcmeOrderCreatedError):
"""
raise when the AcmeOrder is `valid` (RFC status)
this should generally indicate the user should retry their action
"""
def __str__(self):
return "An AcmeOrder-{0} was created. The order is valid and the CertificateSigned can be downloaded.".format(
self.args[0]
)
class AcmeMissingChallenges(AcmeError):
"""There are no Acme Challenges"""
pass
class AcmeChallengeFailure(AcmeError):
pass
class AcmeDomainsInvalid(AcmeError):
def __str__(self):
return "The following Domains are invalid: {0}".format(", ".join(self.args[0]))
class AcmeDomainsBlocklisted(AcmeDomainsInvalid):
def __str__(self):
return "The following Domains are blocklisted: {0}".format(
", ".join(self.args[0])
)
class AcmeDomainsRequireConfigurationAcmeDNS(AcmeDomainsInvalid):
def __str__(self):
return "The following Domains are not configured with ACME-DNS: {0}".format(
", ".join(self.args[0])
)
class DomainVerificationError(AcmeError):
pass
class DisplayableError(_UrlSafeException):
pass
class InvalidRequest(_UrlSafeException):
"""
raised when an end-user wants to do something invalid/not-allowed
"""
pass
# class TransitionError(_UrlSafeException):
# pass
# class OperationsContextError(_UrlSafeException):
# pass
| def formstash_to_querystring(formStash):
err = []
for (k, v) in formStash.errors.items():
err.append(('%s--%s' % (k, v)).replace('\n', '+').replace(' ', '+'))
err = sorted(err)
err = '---'.join(err)
return err
class _Urlsafeexception(Exception):
@property
def as_querystring(self):
return str(self).replace('\n', '+').replace(' ', '+')
class Garfieldminusgarfield(Exception):
"""
An exception for those odd moments
"""
pass
class Invalidtransition(Exception):
"""raised when a transition is invalid"""
pass
class Objectexists(Exception):
"""raised when an object already exists, no need to create"""
pass
class Conflictingobject(Exception):
"""
raised when an object already exists
args[0] = tuple(conflicting_object, error_message_string)
"""
pass
class Opensslerror(Exception):
pass
class Opensslerror_Csrgeneration(OpenSslError):
pass
class Opensslerror_Invalidkey(OpenSslError):
pass
class Opensslerror_Invalidcsr(OpenSslError):
pass
class Opensslerror_Invalidcertificate(OpenSslError):
pass
class Opensslerror_Versiontoolow(OpenSslError):
pass
class Queueprocessingerror(Exception):
pass
class Acmeerror(_UrlSafeException):
pass
class Acmeduplicateaccount(AcmeError):
"""
args[0] MUST be the duplicate AcmeAccount
"""
pass
class Acmeduplicatechallenges(AcmeError):
pass
class Acmeduplicatechallengesexisting(AcmeDuplicateChallenges):
"""the first arg should be a list of the active challenges"""
def __str__(self):
return 'One or more domains already have active challenges: %s.' % ', '.join(['`%s` (%s)' % (ac.domain.domain_name, ac.acme_challenge_type) for ac in self.args[0]])
class Acmeduplicatechallenge(AcmeDuplicateChallenges):
"""the first arg should be a single active challenge"""
def __str__(self):
return 'This domain already has active challenges: `%s`.' % self.args[0].domain.domain_name
class Acmeduplicateorderlessdomain(AcmeDuplicateChallenges):
pass
class Acmeservererror(AcmeError):
pass
class Acmeserver404(AcmeServerError):
pass
class Acmecommunicationerror(AcmeError):
pass
class Acmeauthorizationfailure(AcmeError):
"""raised when an Authorization fails"""
pass
class Acmeorphanedobject(AcmeError):
pass
class Acmeordererror(AcmeError):
pass
class Acmeorderfatal(AcmeOrderError):
"""
The AcmeOrder has a fatal error.
Authorizations should be killed.
"""
pass
class Acmeordercreatederror(AcmeOrderError):
"""
If an exception occurs AFTER an AcmeOrder is created, raise this.
It should have two attributes:
args[0] - AcmeOrder
args[1] - original exception
"""
def __str__(self):
return 'An AcmeOrder-{0} was created but errored'.format(self.args[0])
@property
def acme_order(self):
return self.args[0]
@property
def original_exception(self):
return self.args[1]
class Acmeorderprocessing(AcmeOrderCreatedError):
"""
raise when the AcmeOrder is `processing` (RFC status)
this should generally indicate the user should retry their action
"""
def __str__(self):
return 'An AcmeOrder-{0} was created. The order is still processing.'.format(self.args[0])
class Acmeordervalid(AcmeOrderCreatedError):
"""
raise when the AcmeOrder is `valid` (RFC status)
this should generally indicate the user should retry their action
"""
def __str__(self):
return 'An AcmeOrder-{0} was created. The order is valid and the CertificateSigned can be downloaded.'.format(self.args[0])
class Acmemissingchallenges(AcmeError):
"""There are no Acme Challenges"""
pass
class Acmechallengefailure(AcmeError):
pass
class Acmedomainsinvalid(AcmeError):
def __str__(self):
return 'The following Domains are invalid: {0}'.format(', '.join(self.args[0]))
class Acmedomainsblocklisted(AcmeDomainsInvalid):
def __str__(self):
return 'The following Domains are blocklisted: {0}'.format(', '.join(self.args[0]))
class Acmedomainsrequireconfigurationacmedns(AcmeDomainsInvalid):
def __str__(self):
return 'The following Domains are not configured with ACME-DNS: {0}'.format(', '.join(self.args[0]))
class Domainverificationerror(AcmeError):
pass
class Displayableerror(_UrlSafeException):
pass
class Invalidrequest(_UrlSafeException):
"""
raised when an end-user wants to do something invalid/not-allowed
"""
pass |
"""solution.py"""
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode:
"""
T: O(?)
S: O(?)
"""
l3 = ListNode(0)
temp_l3 = l3
carry = 0
while l1 or l2:
l1v = 0 if l1 is None else l1.val
l2v = 0 if l2 is None else l2.val
sum_l1v_l2v_carry = l1v + l2v + carry
if sum_l1v_l2v_carry > 9:
carry = 1
l3v = sum_l1v_l2v_carry%10
else:
carry = 0
l3v = sum_l1v_l2v_carry
temp_l3.next = ListNode(l3v)
temp_l3 = temp_l3.next
if l1 is not None:
l1 = l1.next
if l2 is not None:
l2 = l2.next
if carry != 0:
temp_l3.next = ListNode(carry)
return l3.next
"""
T: O(?)
S: O(?)
"""
l3 = temp_l3 = ListNode(0)
all_carry = 0
while l1 or l2 or all_carry:
if l1:
all_carry += l1.val
l1 = l1.next
if l2:
all_carry += l2.val
l2 = l2.next
temp_l3.next = ListNode(all_carry%10)
temp_l3 = temp_l3.next
all_carry = all_carry // 10
return l3.next
| """solution.py"""
class Listnode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def add_two_numbers(self, l1: ListNode, l2: ListNode) -> ListNode:
"""
T: O(?)
S: O(?)
"""
l3 = list_node(0)
temp_l3 = l3
carry = 0
while l1 or l2:
l1v = 0 if l1 is None else l1.val
l2v = 0 if l2 is None else l2.val
sum_l1v_l2v_carry = l1v + l2v + carry
if sum_l1v_l2v_carry > 9:
carry = 1
l3v = sum_l1v_l2v_carry % 10
else:
carry = 0
l3v = sum_l1v_l2v_carry
temp_l3.next = list_node(l3v)
temp_l3 = temp_l3.next
if l1 is not None:
l1 = l1.next
if l2 is not None:
l2 = l2.next
if carry != 0:
temp_l3.next = list_node(carry)
return l3.next
'\n T: O(?)\n S: O(?)\n '
l3 = temp_l3 = list_node(0)
all_carry = 0
while l1 or l2 or all_carry:
if l1:
all_carry += l1.val
l1 = l1.next
if l2:
all_carry += l2.val
l2 = l2.next
temp_l3.next = list_node(all_carry % 10)
temp_l3 = temp_l3.next
all_carry = all_carry // 10
return l3.next |
DATA_S3 = "bioanalyze-ec2-test-nf-rnaseq-06o3qdtm7v"
JOB_S3 = DATA_S3
# These come from the terraform code in auto-deployment/terraform
ECR = "dabbleofdevops/nextflow-rnaseq-tutorial"
COMPUTE_ENVIRONMENT = "bioanalyze-ec2-test-nf-rnaseq"
JOB_DEF_NAME = "bioanalyze-ec2-test-nf-rnaseq"
JOB_QUEUE_NAME = "bioanalyze-ec2-test-nf-rnaseq-default-job-queue"
JOB_ROLE = "arn:aws:iam::018835827632:role/bioanalyze-ec2-test-nf-rnaseq-batch_execution_role"
SECRET_NAME = "bioanalyze-ec2-test-nf-rnaseq"
SECRET_ARN = "arn:aws:secretsmanager:us-east-1:018835827632:secret:bioanalyze-ec2-test-nf-rnaseq-Zg7kMY" | data_s3 = 'bioanalyze-ec2-test-nf-rnaseq-06o3qdtm7v'
job_s3 = DATA_S3
ecr = 'dabbleofdevops/nextflow-rnaseq-tutorial'
compute_environment = 'bioanalyze-ec2-test-nf-rnaseq'
job_def_name = 'bioanalyze-ec2-test-nf-rnaseq'
job_queue_name = 'bioanalyze-ec2-test-nf-rnaseq-default-job-queue'
job_role = 'arn:aws:iam::018835827632:role/bioanalyze-ec2-test-nf-rnaseq-batch_execution_role'
secret_name = 'bioanalyze-ec2-test-nf-rnaseq'
secret_arn = 'arn:aws:secretsmanager:us-east-1:018835827632:secret:bioanalyze-ec2-test-nf-rnaseq-Zg7kMY' |
# encoding: utf-8
# module _ctypes
# from /usr/lib/python3.5/lib-dynload/_ctypes.cpython-35m-x86_64-linux-gnu.so
# by generator 1.145
""" Create and manipulate C compatible data types in Python. """
# no imports
# Variables with simple values
FUNCFLAG_CDECL = 1
FUNCFLAG_PYTHONAPI = 4
FUNCFLAG_USE_ERRNO = 8
FUNCFLAG_USE_LASTERROR = 16
RTLD_GLOBAL = 256
RTLD_LOCAL = 0
_cast_addr = 140388692655680
_memmove_addr = 140388724844976
_memset_addr = 140388724996464
_string_at_addr = 140388692647104
_wstring_at_addr = 140388692653280
__version__ = '1.1.0'
# functions
def addressof(C_instance): # real signature unknown; restored from __doc__
"""
addressof(C instance) -> integer
Return the address of the C instance internal buffer
"""
return 0
def alignment(C_type): # real signature unknown; restored from __doc__
"""
alignment(C type) -> integer
alignment(C instance) -> integer
Return the alignment requirements of a C instance
"""
return 0
def buffer_info(*args, **kwargs): # real signature unknown
""" Return buffer interface information """
pass
def byref(C_instance, offset=0): # real signature unknown; restored from __doc__
"""
byref(C instance[, offset=0]) -> byref-object
Return a pointer lookalike to a C instance, only usable
as function argument
"""
pass
def call_cdeclfunction(*args, **kwargs): # real signature unknown
pass
def call_function(*args, **kwargs): # real signature unknown
pass
def dlclose(*args, **kwargs): # real signature unknown
""" dlclose a library """
pass
def dlopen(name, flag, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
""" dlopen(name, flag={RTLD_GLOBAL|RTLD_LOCAL}) open a shared library """
pass
def dlsym(*args, **kwargs): # real signature unknown
""" find symbol in shared library """
pass
def get_errno(*args, **kwargs): # real signature unknown
pass
def pointer(*args, **kwargs): # real signature unknown
pass
def POINTER(*args, **kwargs): # real signature unknown
pass
def PyObj_FromPtr(*args, **kwargs): # real signature unknown
pass
def Py_DECREF(*args, **kwargs): # real signature unknown
pass
def Py_INCREF(*args, **kwargs): # real signature unknown
pass
def resize(*args, **kwargs): # real signature unknown
""" Resize the memory buffer of a ctypes instance """
pass
def set_errno(*args, **kwargs): # real signature unknown
pass
def sizeof(C_type): # real signature unknown; restored from __doc__
"""
sizeof(C type) -> integer
sizeof(C instance) -> integer
Return the size in bytes of a C instance
"""
return 0
def _unpickle(*args, **kwargs): # real signature unknown
pass
# classes
class ArgumentError(Exception):
# no doc
def __init__(self, *args, **kwargs): # real signature unknown
pass
__weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""list of weak references to the object (if defined)"""
class Array(_CData):
""" XXX to be provided """
def __delitem__(self, *args, **kwargs): # real signature unknown
""" Delete self[key]. """
pass
def __getitem__(self, *args, **kwargs): # real signature unknown
""" Return self[key]. """
pass
def __init__(self, *args, **kwargs): # real signature unknown
pass
def __len__(self, *args, **kwargs): # real signature unknown
""" Return len(self). """
pass
@staticmethod # known case of __new__
def __new__(*args, **kwargs): # real signature unknown
""" Create and return a new object. See help(type) for accurate signature. """
pass
def __setitem__(self, *args, **kwargs): # real signature unknown
""" Set self[key] to value. """
pass
class CFuncPtr(_CData):
""" Function Pointer """
def __bool__(self, *args, **kwargs): # real signature unknown
""" self != 0 """
pass
def __call__(self, *args, **kwargs): # real signature unknown
""" Call self as a function. """
pass
def __init__(self, *args, **kwargs): # real signature unknown
pass
@staticmethod # known case of __new__
def __new__(*args, **kwargs): # real signature unknown
""" Create and return a new object. See help(type) for accurate signature. """
pass
def __repr__(self, *args, **kwargs): # real signature unknown
""" Return repr(self). """
pass
argtypes = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""specify the argument types"""
errcheck = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""a function to check for errors"""
restype = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""specify the result type"""
class Structure(_CData):
""" Structure base class """
def __init__(self, *args, **kwargs): # real signature unknown
pass
@staticmethod # known case of __new__
def __new__(*args, **kwargs): # real signature unknown
""" Create and return a new object. See help(type) for accurate signature. """
pass
class Union(_CData):
""" Union base class """
def __init__(self, *args, **kwargs): # real signature unknown
pass
@staticmethod # known case of __new__
def __new__(*args, **kwargs): # real signature unknown
""" Create and return a new object. See help(type) for accurate signature. """
pass
class _Pointer(_CData):
""" XXX to be provided """
def __bool__(self, *args, **kwargs): # real signature unknown
""" self != 0 """
pass
def __delitem__(self, *args, **kwargs): # real signature unknown
""" Delete self[key]. """
pass
def __getitem__(self, *args, **kwargs): # real signature unknown
""" Return self[key]. """
pass
def __init__(self, *args, **kwargs): # real signature unknown
pass
@staticmethod # known case of __new__
def __new__(*args, **kwargs): # real signature unknown
""" Create and return a new object. See help(type) for accurate signature. """
pass
def __setitem__(self, *args, **kwargs): # real signature unknown
""" Set self[key] to value. """
pass
contents = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""the object this pointer points to (read-write)"""
class _SimpleCData(_CData):
""" XXX to be provided """
def __bool__(self, *args, **kwargs): # real signature unknown
""" self != 0 """
pass
def __ctypes_from_outparam__(self, *args, **kwargs): # real signature unknown
pass
def __init__(self, *args, **kwargs): # real signature unknown
pass
@staticmethod # known case of __new__
def __new__(*args, **kwargs): # real signature unknown
""" Create and return a new object. See help(type) for accurate signature. """
pass
def __repr__(self, *args, **kwargs): # real signature unknown
""" Return repr(self). """
pass
value = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""current value"""
# variables with complex values
_pointer_type_cache = {
None: # (!) real value is ''
None # (!) real value is ''
,
None: # (!) real value is ''
None # (!) real value is ''
,
None: None, # (!) real value is ''
}
__loader__ = None # (!) real value is ''
__spec__ = None # (!) real value is ''
| """ Create and manipulate C compatible data types in Python. """
funcflag_cdecl = 1
funcflag_pythonapi = 4
funcflag_use_errno = 8
funcflag_use_lasterror = 16
rtld_global = 256
rtld_local = 0
_cast_addr = 140388692655680
_memmove_addr = 140388724844976
_memset_addr = 140388724996464
_string_at_addr = 140388692647104
_wstring_at_addr = 140388692653280
__version__ = '1.1.0'
def addressof(C_instance):
"""
addressof(C instance) -> integer
Return the address of the C instance internal buffer
"""
return 0
def alignment(C_type):
"""
alignment(C type) -> integer
alignment(C instance) -> integer
Return the alignment requirements of a C instance
"""
return 0
def buffer_info(*args, **kwargs):
""" Return buffer interface information """
pass
def byref(C_instance, offset=0):
"""
byref(C instance[, offset=0]) -> byref-object
Return a pointer lookalike to a C instance, only usable
as function argument
"""
pass
def call_cdeclfunction(*args, **kwargs):
pass
def call_function(*args, **kwargs):
pass
def dlclose(*args, **kwargs):
""" dlclose a library """
pass
def dlopen(name, flag, *args, **kwargs):
""" dlopen(name, flag={RTLD_GLOBAL|RTLD_LOCAL}) open a shared library """
pass
def dlsym(*args, **kwargs):
""" find symbol in shared library """
pass
def get_errno(*args, **kwargs):
pass
def pointer(*args, **kwargs):
pass
def pointer(*args, **kwargs):
pass
def py_obj__from_ptr(*args, **kwargs):
pass
def py_decref(*args, **kwargs):
pass
def py_incref(*args, **kwargs):
pass
def resize(*args, **kwargs):
""" Resize the memory buffer of a ctypes instance """
pass
def set_errno(*args, **kwargs):
pass
def sizeof(C_type):
"""
sizeof(C type) -> integer
sizeof(C instance) -> integer
Return the size in bytes of a C instance
"""
return 0
def _unpickle(*args, **kwargs):
pass
class Argumenterror(Exception):
def __init__(self, *args, **kwargs):
pass
__weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None)
'list of weak references to the object (if defined)'
class Array(_CData):
""" XXX to be provided """
def __delitem__(self, *args, **kwargs):
""" Delete self[key]. """
pass
def __getitem__(self, *args, **kwargs):
""" Return self[key]. """
pass
def __init__(self, *args, **kwargs):
pass
def __len__(self, *args, **kwargs):
""" Return len(self). """
pass
@staticmethod
def __new__(*args, **kwargs):
""" Create and return a new object. See help(type) for accurate signature. """
pass
def __setitem__(self, *args, **kwargs):
""" Set self[key] to value. """
pass
class Cfuncptr(_CData):
""" Function Pointer """
def __bool__(self, *args, **kwargs):
""" self != 0 """
pass
def __call__(self, *args, **kwargs):
""" Call self as a function. """
pass
def __init__(self, *args, **kwargs):
pass
@staticmethod
def __new__(*args, **kwargs):
""" Create and return a new object. See help(type) for accurate signature. """
pass
def __repr__(self, *args, **kwargs):
""" Return repr(self). """
pass
argtypes = property(lambda self: object(), lambda self, v: None, lambda self: None)
'specify the argument types'
errcheck = property(lambda self: object(), lambda self, v: None, lambda self: None)
'a function to check for errors'
restype = property(lambda self: object(), lambda self, v: None, lambda self: None)
'specify the result type'
class Structure(_CData):
""" Structure base class """
def __init__(self, *args, **kwargs):
pass
@staticmethod
def __new__(*args, **kwargs):
""" Create and return a new object. See help(type) for accurate signature. """
pass
class Union(_CData):
""" Union base class """
def __init__(self, *args, **kwargs):
pass
@staticmethod
def __new__(*args, **kwargs):
""" Create and return a new object. See help(type) for accurate signature. """
pass
class _Pointer(_CData):
""" XXX to be provided """
def __bool__(self, *args, **kwargs):
""" self != 0 """
pass
def __delitem__(self, *args, **kwargs):
""" Delete self[key]. """
pass
def __getitem__(self, *args, **kwargs):
""" Return self[key]. """
pass
def __init__(self, *args, **kwargs):
pass
@staticmethod
def __new__(*args, **kwargs):
""" Create and return a new object. See help(type) for accurate signature. """
pass
def __setitem__(self, *args, **kwargs):
""" Set self[key] to value. """
pass
contents = property(lambda self: object(), lambda self, v: None, lambda self: None)
'the object this pointer points to (read-write)'
class _Simplecdata(_CData):
""" XXX to be provided """
def __bool__(self, *args, **kwargs):
""" self != 0 """
pass
def __ctypes_from_outparam__(self, *args, **kwargs):
pass
def __init__(self, *args, **kwargs):
pass
@staticmethod
def __new__(*args, **kwargs):
""" Create and return a new object. See help(type) for accurate signature. """
pass
def __repr__(self, *args, **kwargs):
""" Return repr(self). """
pass
value = property(lambda self: object(), lambda self, v: None, lambda self: None)
'current value'
_pointer_type_cache = {None: None, None: None, None: None}
__loader__ = None
__spec__ = None |
#!/usr/bin/env python3
class stressTestPV:
def __init__( self, pvName ):
self._pvName = pvName
self._tsValues = {} # Dict of collected values, keys are float timestamps
self._tsRates = {} # Dict of collection rates, keys are int secPastEpoch values
self._tsMissRates = {} # Dict of missed count rates, keys are int secPastEpoch values
self._timeoutRates= {} # Dict of timeout rates, keys are int secPastEpoch values
self._numMissed = 0 # Cumulative number of missed counts
self._numTimeouts = 0 # Cumulative number of timeouts
self._startTime = None # Earliest timestamp of all collected values
self._endTime = None # Latest timestamp of all collected values
# Accessors
def getName( self ):
return self._pvName
def getNumTsValues( self ):
return len(self._tsValues)
def getNumMissed( self ):
return self._numMissed
def getNumTimeouts( self ):
return self._numTimeouts
def getEndTime( self ):
return self._endTime;
def getStartTime( self ):
return self._startTime;
def getTsValues( self ):
return self._tsValues
def getTsRates( self ):
return self._tsRates
def getTsMissRates( self ):
return self._tsMissRates
def getTimeoutRates( self ):
return self._timeoutRates
def addTsValues( self, tsValues ):
# TODO: check for more than one value for the same timestamp
self._tsValues.update( tsValues )
def addTsTimeouts( self, tsTimeouts ):
self._tsTimeouts.update( tsTimeouts )
# stressTestPV.analyze
def analyze( self ):
( priorSec, priorValue ) = ( None, None )
( count, missed, timeouts ) = ( 0, 0, 0 )
sec = None
for timestamp in self._tsValues:
sec = int(timestamp)
if priorSec is None:
self._endTime = timestamp
self._startTime = timestamp
priorSec = sec - 1
if sec != priorSec:
if self._endTime < sec:
self._endTime = sec
self._tsRates[priorSec] = count
self._tsMissRates[priorSec] = missed
self._timeoutRates[priorSec] = timeouts
self._numMissed += missed
self._numTimeouts += timeouts
( count, missed, timeouts ) = ( 0, 0, 0 )
# Advance priorSec, filling gaps w/ zeroes
while True:
priorSec += 1
if priorSec >= sec:
break
self._tsRates[priorSec] = 0
self._tsMissRates[priorSec] = 0
self._timeoutRates[priorSec] = 0
priorSec = sec
count += 1
value = self._tsValues[timestamp]
if value is None:
timeouts += 1
continue
if priorValue is not None:
if priorValue + 1 != value:
# Keep track of miss incidents
#missed += 1
# or
# Keep track of how many we missed
missed += ( value - priorValue + 1 )
priorValue = value
if sec:
self._tsRates[sec] = count
self._tsMissRates[sec] = missed
self._timeoutRates[sec] = timeouts
| class Stresstestpv:
def __init__(self, pvName):
self._pvName = pvName
self._tsValues = {}
self._tsRates = {}
self._tsMissRates = {}
self._timeoutRates = {}
self._numMissed = 0
self._numTimeouts = 0
self._startTime = None
self._endTime = None
def get_name(self):
return self._pvName
def get_num_ts_values(self):
return len(self._tsValues)
def get_num_missed(self):
return self._numMissed
def get_num_timeouts(self):
return self._numTimeouts
def get_end_time(self):
return self._endTime
def get_start_time(self):
return self._startTime
def get_ts_values(self):
return self._tsValues
def get_ts_rates(self):
return self._tsRates
def get_ts_miss_rates(self):
return self._tsMissRates
def get_timeout_rates(self):
return self._timeoutRates
def add_ts_values(self, tsValues):
self._tsValues.update(tsValues)
def add_ts_timeouts(self, tsTimeouts):
self._tsTimeouts.update(tsTimeouts)
def analyze(self):
(prior_sec, prior_value) = (None, None)
(count, missed, timeouts) = (0, 0, 0)
sec = None
for timestamp in self._tsValues:
sec = int(timestamp)
if priorSec is None:
self._endTime = timestamp
self._startTime = timestamp
prior_sec = sec - 1
if sec != priorSec:
if self._endTime < sec:
self._endTime = sec
self._tsRates[priorSec] = count
self._tsMissRates[priorSec] = missed
self._timeoutRates[priorSec] = timeouts
self._numMissed += missed
self._numTimeouts += timeouts
(count, missed, timeouts) = (0, 0, 0)
while True:
prior_sec += 1
if priorSec >= sec:
break
self._tsRates[priorSec] = 0
self._tsMissRates[priorSec] = 0
self._timeoutRates[priorSec] = 0
prior_sec = sec
count += 1
value = self._tsValues[timestamp]
if value is None:
timeouts += 1
continue
if priorValue is not None:
if priorValue + 1 != value:
missed += value - priorValue + 1
prior_value = value
if sec:
self._tsRates[sec] = count
self._tsMissRates[sec] = missed
self._timeoutRates[sec] = timeouts |
_base_ = ['./rotated-detection_static.py', '../_base_/backends/tensorrt.py']
onnx_config = dict(
output_names=['dets', 'labels'],
input_shape=None,
dynamic_axes={
'input': {
0: 'batch',
2: 'height',
3: 'width'
},
'dets': {
0: 'batch',
1: 'num_dets',
},
'labels': {
0: 'batch',
1: 'num_dets',
},
},
)
backend_config = dict(
common_config=dict(max_workspace_size=1 << 30),
model_inputs=[
dict(
input_shapes=dict(
input=dict(
min_shape=[1, 3, 320, 320],
opt_shape=[1, 3, 1024, 1024],
max_shape=[1, 3, 1024, 1024])))
])
| _base_ = ['./rotated-detection_static.py', '../_base_/backends/tensorrt.py']
onnx_config = dict(output_names=['dets', 'labels'], input_shape=None, dynamic_axes={'input': {0: 'batch', 2: 'height', 3: 'width'}, 'dets': {0: 'batch', 1: 'num_dets'}, 'labels': {0: 'batch', 1: 'num_dets'}})
backend_config = dict(common_config=dict(max_workspace_size=1 << 30), model_inputs=[dict(input_shapes=dict(input=dict(min_shape=[1, 3, 320, 320], opt_shape=[1, 3, 1024, 1024], max_shape=[1, 3, 1024, 1024])))]) |
#!/usr/bin/env python
class Solution:
def twoCitySchedCost(self, costs):
N = len(costs)//2
costs = list(sorted(costs, key=lambda c: c[0]-c[1]))
s = 0
for i, c in enumerate(costs):
s += c[0] if i < N else c[1]
return s
costs = [[10,20],[30,200],[400,50],[30,20]]
sol = Solution()
print(sol.twoCitySchedCost(costs))
| class Solution:
def two_city_sched_cost(self, costs):
n = len(costs) // 2
costs = list(sorted(costs, key=lambda c: c[0] - c[1]))
s = 0
for (i, c) in enumerate(costs):
s += c[0] if i < N else c[1]
return s
costs = [[10, 20], [30, 200], [400, 50], [30, 20]]
sol = solution()
print(sol.twoCitySchedCost(costs)) |
pdu_objects = [
{
'header': {
'command_length': 0,
'command_id': 'bind_transmitter',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
'body': {
'mandatory_parameters': {
'system_id': 'test_system',
'password': 'abc123',
'system_type': '',
'interface_version': '34',
'addr_ton': 1,
'addr_npi': 1,
'address_range': '',
},
},
},
{
'header': {
'command_length': 0,
'command_id': 'bind_transmitter_resp',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
'body': {
'mandatory_parameters': {
'system_id': 'test_system',
},
},
},
{
'header': {
'command_length': 0,
'command_id': 'bind_receiver',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
'body': {
'mandatory_parameters': {
'system_id': 'test_system',
'password': 'abc123',
'system_type': '',
'interface_version': '34',
'addr_ton': 1,
'addr_npi': 1,
'address_range': '',
},
},
},
{
'header': {
'command_length': 0,
'command_id': 'bind_receiver_resp',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
'body': {
'mandatory_parameters': {
'system_id': 'test_system',
},
},
},
{
'header': {
'command_length': 0,
'command_id': 'bind_transceiver',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
'body': {
'mandatory_parameters': {
'system_id': 'test_system',
'password': 'abc123',
'system_type': '',
'interface_version': '34',
'addr_ton': 1,
'addr_npi': 1,
'address_range': '',
},
},
},
{
'header': {
'command_length': 0,
'command_id': 'bind_transceiver_resp',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
'body': {
'mandatory_parameters': {
'system_id': 'test_system',
},
},
},
{
'header': {
'command_length': 0,
'command_id': 'outbind',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
'body': {
'mandatory_parameters': {
'system_id': 'test_system',
'password': 'abc123',
},
},
},
{
'header': {
'command_length': 0,
'command_id': 'unbind',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
},
{
'header': {
'command_length': 0,
'command_id': 'unbind_resp',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
},
{
'header': {
'command_length': 0,
'command_id': 'generic_nack',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
},
{
'header': {
'command_length': 0,
'command_id': 'submit_sm',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
'body': {
'mandatory_parameters': {
'service_type': '',
'source_addr_ton': 1,
'source_addr_npi': 1,
'source_addr': '',
'dest_addr_ton': 1,
'dest_addr_npi': 1,
'destination_addr': '',
'esm_class': 0,
'protocol_id': 0,
'priority_flag': 0,
'schedule_delivery_time': '',
'validity_period': '',
'registered_delivery': 0,
'replace_if_present_flag': 0,
'data_coding': 0,
'sm_default_msg_id': 0,
'sm_length': 1,
'short_message': 'testing 123',
},
},
},
{
'header': {
'command_length': 0,
'command_id': 'submit_sm',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
'body': {
'mandatory_parameters': {
'service_type': '',
'source_addr_ton': 1,
'source_addr_npi': 1,
'source_addr': '',
'dest_addr_ton': 1,
'dest_addr_npi': 1,
'destination_addr': '',
'esm_class': 0,
'protocol_id': 0,
'priority_flag': 0,
'schedule_delivery_time': '',
'validity_period': '',
'registered_delivery': 0,
'replace_if_present_flag': 0,
'data_coding': 0,
'sm_default_msg_id': 0,
'sm_length': 0,
'short_message': None,
# 'short_message' can be of zero length
},
'optional_parameters': [
{
'tag': 'message_payload',
'length': 0,
'value': '5666',
},
],
},
},
# ]
# breaker = [
{
'header': {
'command_length': 0,
'command_id': 'submit_sm_resp',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
'body': {
'mandatory_parameters': {
'message_id': '',
},
},
},
{
'header': {
'command_length': 0,
'command_id': 'submit_sm_resp',
'command_status': 'ESME_RSYSERR',
'sequence_number': 0,
},
# submit_sm_resp can have no body for failures
},
{
'header': {
'command_length': 0,
'command_id': 'submit_multi',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
'body': {
'mandatory_parameters': {
'service_type': '',
'source_addr_ton': 1,
'source_addr_npi': 1,
'source_addr': '',
'number_of_dests': 0,
'dest_address': [
{
'dest_flag': 1,
'dest_addr_ton': 1,
'dest_addr_npi': 1,
'destination_addr': 'the address'
},
{
'dest_flag': 2,
'dl_name': 'the list',
},
{
'dest_flag': 2,
'dl_name': 'the other list',
},
# {}
],
'esm_class': 0,
'protocol_id': 0,
'priority_flag': 0,
'schedule_delivery_time': '',
'validity_period': '',
'registered_delivery': 0,
'replace_if_present_flag': 0,
'data_coding': 0,
'sm_default_msg_id': 0,
'sm_length': 1,
'short_message': 'testing 123',
},
},
},
{
'header': {
'command_length': 0,
'command_id': 'submit_multi_resp',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
'body': {
'mandatory_parameters': {
'message_id': '',
'no_unsuccess': 5,
'unsuccess_sme': [
{
'dest_addr_ton': 1,
'dest_addr_npi': 1,
'destination_addr': '',
'error_status_code': 0,
},
{
'dest_addr_ton': 3,
'dest_addr_npi': 1,
'destination_addr': '555',
'error_status_code': 0,
},
],
},
},
},
# ]
# breaker = [
{
'header': {
'command_length': 0,
'command_id': 'deliver_sm',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
'body': {
'mandatory_parameters': {
'service_type': '',
'source_addr_ton': 1,
'source_addr_npi': 1,
'source_addr': '',
'dest_addr_ton': 1,
'dest_addr_npi': 1,
'destination_addr': '',
'esm_class': 0,
'protocol_id': 0,
'priority_flag': 0,
'schedule_delivery_time': '',
'validity_period': '',
'registered_delivery': 0,
'replace_if_present_flag': 0,
'data_coding': 0,
'sm_default_msg_id': 0,
'sm_length': 1,
'short_message': '',
},
},
},
{
'header': {
'command_length': 0,
'command_id': 'deliver_sm_resp',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
'body': {
'mandatory_parameters': {
'message_id': '',
},
},
},
{
'header': {
'command_length': 0,
'command_id': 'data_sm',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
'body': {
'mandatory_parameters': {
'service_type': '',
'source_addr_ton': 1,
'source_addr_npi': 1,
'source_addr': '',
'dest_addr_ton': 1,
'dest_addr_npi': 1,
'destination_addr': '',
'esm_class': 0,
'registered_delivery': 0,
'data_coding': 0,
},
'optional_parameters': [
{
'tag': 'message_payload',
'length': 0,
'value': '',
},
],
},
},
{
'header': {
'command_length': 0,
'command_id': 'data_sm_resp',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
'body': {
'mandatory_parameters': {
'message_id': '',
},
},
},
{
'header': {
'command_length': 0,
'command_id': 'query_sm',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
'body': {
'mandatory_parameters': {
'message_id': '',
'source_addr_ton': 1,
'source_addr_npi': 1,
'source_addr': '',
},
},
},
{
'header': {
'command_length': 0,
'command_id': 'query_sm_resp',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
'body': {
'mandatory_parameters': {
'message_id': '',
'final_date': '',
'message_state': 0,
'error_code': 0,
},
},
},
{
'header': {
'command_length': 0,
'command_id': 'cancel_sm',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
'body': {
'mandatory_parameters': {
'service_type': '',
'message_id': '',
'source_addr_ton': 1,
'source_addr_npi': 1,
'source_addr': '',
'dest_addr_ton': 1,
'dest_addr_npi': 1,
'destination_addr': '',
},
},
},
{
'header': {
'command_length': 0,
'command_id': 'cancel_sm_resp',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
},
{
'header': {
'command_length': 0,
'command_id': 'replace_sm',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
'body': {
'mandatory_parameters': {
'message_id': '',
'source_addr_ton': 1,
'source_addr_npi': 1,
'source_addr': '',
'schedule_delivery_time': '',
'validity_period': '',
'registered_delivery': 0,
'replace_if_present_flag': 0,
'data_coding': 0,
'sm_default_msg_id': 0,
'sm_length': 1,
'short_message': 'is this an = sign?',
},
},
},
{
'header': {
'command_length': 0,
'command_id': 'replace_sm_resp',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
},
{
'header': {
'command_length': 0,
'command_id': 'enquire_link',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
},
{
'header': {
'command_length': 0,
'command_id': 'enquire_link_resp',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
},
{
'header': {
'command_length': 0,
'command_id': 'alert_notification',
'command_status': 'ESME_ROK',
'sequence_number': 0,
},
'body': {
'mandatory_parameters': {
'source_addr_ton': 'international',
'source_addr_npi': 1,
'source_addr': '',
'esme_addr_ton': 9,
'esme_addr_npi': '',
'esme_addr': '',
},
},
},
]
| pdu_objects = [{'header': {'command_length': 0, 'command_id': 'bind_transmitter', 'command_status': 'ESME_ROK', 'sequence_number': 0}, 'body': {'mandatory_parameters': {'system_id': 'test_system', 'password': 'abc123', 'system_type': '', 'interface_version': '34', 'addr_ton': 1, 'addr_npi': 1, 'address_range': ''}}}, {'header': {'command_length': 0, 'command_id': 'bind_transmitter_resp', 'command_status': 'ESME_ROK', 'sequence_number': 0}, 'body': {'mandatory_parameters': {'system_id': 'test_system'}}}, {'header': {'command_length': 0, 'command_id': 'bind_receiver', 'command_status': 'ESME_ROK', 'sequence_number': 0}, 'body': {'mandatory_parameters': {'system_id': 'test_system', 'password': 'abc123', 'system_type': '', 'interface_version': '34', 'addr_ton': 1, 'addr_npi': 1, 'address_range': ''}}}, {'header': {'command_length': 0, 'command_id': 'bind_receiver_resp', 'command_status': 'ESME_ROK', 'sequence_number': 0}, 'body': {'mandatory_parameters': {'system_id': 'test_system'}}}, {'header': {'command_length': 0, 'command_id': 'bind_transceiver', 'command_status': 'ESME_ROK', 'sequence_number': 0}, 'body': {'mandatory_parameters': {'system_id': 'test_system', 'password': 'abc123', 'system_type': '', 'interface_version': '34', 'addr_ton': 1, 'addr_npi': 1, 'address_range': ''}}}, {'header': {'command_length': 0, 'command_id': 'bind_transceiver_resp', 'command_status': 'ESME_ROK', 'sequence_number': 0}, 'body': {'mandatory_parameters': {'system_id': 'test_system'}}}, {'header': {'command_length': 0, 'command_id': 'outbind', 'command_status': 'ESME_ROK', 'sequence_number': 0}, 'body': {'mandatory_parameters': {'system_id': 'test_system', 'password': 'abc123'}}}, {'header': {'command_length': 0, 'command_id': 'unbind', 'command_status': 'ESME_ROK', 'sequence_number': 0}}, {'header': {'command_length': 0, 'command_id': 'unbind_resp', 'command_status': 'ESME_ROK', 'sequence_number': 0}}, {'header': {'command_length': 0, 'command_id': 'generic_nack', 'command_status': 'ESME_ROK', 'sequence_number': 0}}, {'header': {'command_length': 0, 'command_id': 'submit_sm', 'command_status': 'ESME_ROK', 'sequence_number': 0}, 'body': {'mandatory_parameters': {'service_type': '', 'source_addr_ton': 1, 'source_addr_npi': 1, 'source_addr': '', 'dest_addr_ton': 1, 'dest_addr_npi': 1, 'destination_addr': '', 'esm_class': 0, 'protocol_id': 0, 'priority_flag': 0, 'schedule_delivery_time': '', 'validity_period': '', 'registered_delivery': 0, 'replace_if_present_flag': 0, 'data_coding': 0, 'sm_default_msg_id': 0, 'sm_length': 1, 'short_message': 'testing 123'}}}, {'header': {'command_length': 0, 'command_id': 'submit_sm', 'command_status': 'ESME_ROK', 'sequence_number': 0}, 'body': {'mandatory_parameters': {'service_type': '', 'source_addr_ton': 1, 'source_addr_npi': 1, 'source_addr': '', 'dest_addr_ton': 1, 'dest_addr_npi': 1, 'destination_addr': '', 'esm_class': 0, 'protocol_id': 0, 'priority_flag': 0, 'schedule_delivery_time': '', 'validity_period': '', 'registered_delivery': 0, 'replace_if_present_flag': 0, 'data_coding': 0, 'sm_default_msg_id': 0, 'sm_length': 0, 'short_message': None}, 'optional_parameters': [{'tag': 'message_payload', 'length': 0, 'value': '5666'}]}}, {'header': {'command_length': 0, 'command_id': 'submit_sm_resp', 'command_status': 'ESME_ROK', 'sequence_number': 0}, 'body': {'mandatory_parameters': {'message_id': ''}}}, {'header': {'command_length': 0, 'command_id': 'submit_sm_resp', 'command_status': 'ESME_RSYSERR', 'sequence_number': 0}}, {'header': {'command_length': 0, 'command_id': 'submit_multi', 'command_status': 'ESME_ROK', 'sequence_number': 0}, 'body': {'mandatory_parameters': {'service_type': '', 'source_addr_ton': 1, 'source_addr_npi': 1, 'source_addr': '', 'number_of_dests': 0, 'dest_address': [{'dest_flag': 1, 'dest_addr_ton': 1, 'dest_addr_npi': 1, 'destination_addr': 'the address'}, {'dest_flag': 2, 'dl_name': 'the list'}, {'dest_flag': 2, 'dl_name': 'the other list'}], 'esm_class': 0, 'protocol_id': 0, 'priority_flag': 0, 'schedule_delivery_time': '', 'validity_period': '', 'registered_delivery': 0, 'replace_if_present_flag': 0, 'data_coding': 0, 'sm_default_msg_id': 0, 'sm_length': 1, 'short_message': 'testing 123'}}}, {'header': {'command_length': 0, 'command_id': 'submit_multi_resp', 'command_status': 'ESME_ROK', 'sequence_number': 0}, 'body': {'mandatory_parameters': {'message_id': '', 'no_unsuccess': 5, 'unsuccess_sme': [{'dest_addr_ton': 1, 'dest_addr_npi': 1, 'destination_addr': '', 'error_status_code': 0}, {'dest_addr_ton': 3, 'dest_addr_npi': 1, 'destination_addr': '555', 'error_status_code': 0}]}}}, {'header': {'command_length': 0, 'command_id': 'deliver_sm', 'command_status': 'ESME_ROK', 'sequence_number': 0}, 'body': {'mandatory_parameters': {'service_type': '', 'source_addr_ton': 1, 'source_addr_npi': 1, 'source_addr': '', 'dest_addr_ton': 1, 'dest_addr_npi': 1, 'destination_addr': '', 'esm_class': 0, 'protocol_id': 0, 'priority_flag': 0, 'schedule_delivery_time': '', 'validity_period': '', 'registered_delivery': 0, 'replace_if_present_flag': 0, 'data_coding': 0, 'sm_default_msg_id': 0, 'sm_length': 1, 'short_message': ''}}}, {'header': {'command_length': 0, 'command_id': 'deliver_sm_resp', 'command_status': 'ESME_ROK', 'sequence_number': 0}, 'body': {'mandatory_parameters': {'message_id': ''}}}, {'header': {'command_length': 0, 'command_id': 'data_sm', 'command_status': 'ESME_ROK', 'sequence_number': 0}, 'body': {'mandatory_parameters': {'service_type': '', 'source_addr_ton': 1, 'source_addr_npi': 1, 'source_addr': '', 'dest_addr_ton': 1, 'dest_addr_npi': 1, 'destination_addr': '', 'esm_class': 0, 'registered_delivery': 0, 'data_coding': 0}, 'optional_parameters': [{'tag': 'message_payload', 'length': 0, 'value': ''}]}}, {'header': {'command_length': 0, 'command_id': 'data_sm_resp', 'command_status': 'ESME_ROK', 'sequence_number': 0}, 'body': {'mandatory_parameters': {'message_id': ''}}}, {'header': {'command_length': 0, 'command_id': 'query_sm', 'command_status': 'ESME_ROK', 'sequence_number': 0}, 'body': {'mandatory_parameters': {'message_id': '', 'source_addr_ton': 1, 'source_addr_npi': 1, 'source_addr': ''}}}, {'header': {'command_length': 0, 'command_id': 'query_sm_resp', 'command_status': 'ESME_ROK', 'sequence_number': 0}, 'body': {'mandatory_parameters': {'message_id': '', 'final_date': '', 'message_state': 0, 'error_code': 0}}}, {'header': {'command_length': 0, 'command_id': 'cancel_sm', 'command_status': 'ESME_ROK', 'sequence_number': 0}, 'body': {'mandatory_parameters': {'service_type': '', 'message_id': '', 'source_addr_ton': 1, 'source_addr_npi': 1, 'source_addr': '', 'dest_addr_ton': 1, 'dest_addr_npi': 1, 'destination_addr': ''}}}, {'header': {'command_length': 0, 'command_id': 'cancel_sm_resp', 'command_status': 'ESME_ROK', 'sequence_number': 0}}, {'header': {'command_length': 0, 'command_id': 'replace_sm', 'command_status': 'ESME_ROK', 'sequence_number': 0}, 'body': {'mandatory_parameters': {'message_id': '', 'source_addr_ton': 1, 'source_addr_npi': 1, 'source_addr': '', 'schedule_delivery_time': '', 'validity_period': '', 'registered_delivery': 0, 'replace_if_present_flag': 0, 'data_coding': 0, 'sm_default_msg_id': 0, 'sm_length': 1, 'short_message': 'is this an = sign?'}}}, {'header': {'command_length': 0, 'command_id': 'replace_sm_resp', 'command_status': 'ESME_ROK', 'sequence_number': 0}}, {'header': {'command_length': 0, 'command_id': 'enquire_link', 'command_status': 'ESME_ROK', 'sequence_number': 0}}, {'header': {'command_length': 0, 'command_id': 'enquire_link_resp', 'command_status': 'ESME_ROK', 'sequence_number': 0}}, {'header': {'command_length': 0, 'command_id': 'alert_notification', 'command_status': 'ESME_ROK', 'sequence_number': 0}, 'body': {'mandatory_parameters': {'source_addr_ton': 'international', 'source_addr_npi': 1, 'source_addr': '', 'esme_addr_ton': 9, 'esme_addr_npi': '', 'esme_addr': ''}}}] |
#!/usr/bin/env python
# -*- coding: utf-8 -*--
# Copyright (c) 2021, 2022 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
class Parser:
@property
def pos(self):
raise NotImplementedError()
@property
def noun(self):
raise NotImplementedError()
@property
def adjective(self):
raise NotImplementedError()
@property
def adverb(self):
raise NotImplementedError()
@property
def verb(self):
raise NotImplementedError()
@property
def word(self):
raise NotImplementedError()
@property
def sentence(self):
raise NotImplementedError()
@property
def word_count(self):
raise NotImplementedError()
@property
def bigram(self):
raise NotImplementedError()
@property
def trigram(self):
raise NotImplementedError()
| class Parser:
@property
def pos(self):
raise not_implemented_error()
@property
def noun(self):
raise not_implemented_error()
@property
def adjective(self):
raise not_implemented_error()
@property
def adverb(self):
raise not_implemented_error()
@property
def verb(self):
raise not_implemented_error()
@property
def word(self):
raise not_implemented_error()
@property
def sentence(self):
raise not_implemented_error()
@property
def word_count(self):
raise not_implemented_error()
@property
def bigram(self):
raise not_implemented_error()
@property
def trigram(self):
raise not_implemented_error() |
class Template:
def __init__(self, data):
"""Class representing log templates.
Note:
Timestamps are represented in ISO format with timezone information.
e.g, 2021-10-07T13:18:09.178477+02:00.
"""
self._timestamp = data.get("@timestamp", None)
self._actual_level = data.get("actual_level", None)
self._app_name = data.get("app_name", None)
self._message = data.get("message", None)
self._name = data.get("name", None)
self._params = data.get("params", None)
self._template = data.get("template", None)
self._tag = data.get("tag", None)
def __repr__(self):
return {"app_name": self._app_name, "template": self._template}
@property
def timestamp(self):
"""str: Timestamp when the log message was generated."""
return self._timestamp
@property
def actual_level(self):
"""str: Log level of the message (e.g., WARNING)."""
return self._actual_level
@property
def app_name(self):
"""str: Application name."""
return self._app_name
@property
def message(self):
"""str: Log message."""
return self._message
@property
def name(self):
"""str: Name."""
return self._name
@property
def template(self):
"""str: Template generated from log message.
Examples:
nova.virt.libvirt.imagecache <*> ] <*> base <*> <*>
"""
return self._template
@property
def params(self):
"""(:obj:`list` of :obj:`str`): Parameters extracted from log message.
Examples:
"param_0":"[req-addc1839-2ed5-4778-b57e-5854eb7b8b09"
"param_1":"Unknown"
"param_2":"file:"
"param_3":"/var/lib/nova/instances/_base/a489c868..."
"""
return self._params
@property
def tag(self):
"""str: Tag associated with a log message.
"""
return self._tag
| class Template:
def __init__(self, data):
"""Class representing log templates.
Note:
Timestamps are represented in ISO format with timezone information.
e.g, 2021-10-07T13:18:09.178477+02:00.
"""
self._timestamp = data.get('@timestamp', None)
self._actual_level = data.get('actual_level', None)
self._app_name = data.get('app_name', None)
self._message = data.get('message', None)
self._name = data.get('name', None)
self._params = data.get('params', None)
self._template = data.get('template', None)
self._tag = data.get('tag', None)
def __repr__(self):
return {'app_name': self._app_name, 'template': self._template}
@property
def timestamp(self):
"""str: Timestamp when the log message was generated."""
return self._timestamp
@property
def actual_level(self):
"""str: Log level of the message (e.g., WARNING)."""
return self._actual_level
@property
def app_name(self):
"""str: Application name."""
return self._app_name
@property
def message(self):
"""str: Log message."""
return self._message
@property
def name(self):
"""str: Name."""
return self._name
@property
def template(self):
"""str: Template generated from log message.
Examples:
nova.virt.libvirt.imagecache <*> ] <*> base <*> <*>
"""
return self._template
@property
def params(self):
"""(:obj:`list` of :obj:`str`): Parameters extracted from log message.
Examples:
"param_0":"[req-addc1839-2ed5-4778-b57e-5854eb7b8b09"
"param_1":"Unknown"
"param_2":"file:"
"param_3":"/var/lib/nova/instances/_base/a489c868..."
"""
return self._params
@property
def tag(self):
"""str: Tag associated with a log message.
"""
return self._tag |
def strategy(history, memory):
round = history.shape[1]
GRUDGE = 0
LASTACTION = 1
if round == 0:
mem = []
mem.append(False)
mem.append(0)
return "cooperate", mem
mem = memory
if mem[GRUDGE]:
return "defect", mem
if round >= 5:
sin = 0
for i in range(1, 5):
if history[1, -i] == 0:
sin += 1
if sin == 4:
mem[GRUDGE] = True
return "defect", mem
if mem[LASTACTION] == 0:
mem[LASTACTION] = 1
return "cooperate", mem
else:
mem[LASTACTION] = 0
return "defect", mem
| def strategy(history, memory):
round = history.shape[1]
grudge = 0
lastaction = 1
if round == 0:
mem = []
mem.append(False)
mem.append(0)
return ('cooperate', mem)
mem = memory
if mem[GRUDGE]:
return ('defect', mem)
if round >= 5:
sin = 0
for i in range(1, 5):
if history[1, -i] == 0:
sin += 1
if sin == 4:
mem[GRUDGE] = True
return ('defect', mem)
if mem[LASTACTION] == 0:
mem[LASTACTION] = 1
return ('cooperate', mem)
else:
mem[LASTACTION] = 0
return ('defect', mem) |
test = [
'nop +0',
'acc +1',
'jmp +4',
'acc +3',
'jmp -3',
'acc -99',
'acc +1',
'jmp -4',
'acc +6',
]
actual = [
'acc +17',
'acc +37',
'acc -13',
'jmp +173',
'nop +100',
'acc -7',
'jmp +447',
'nop +283',
'acc +41',
'acc +32',
'jmp +1',
'jmp +585',
'jmp +1',
'acc -5',
'nop +71',
'acc +49',
'acc -18',
'jmp +527',
'jmp +130',
'jmp +253',
'acc +11',
'acc -11',
'jmp +390',
'jmp +597',
'jmp +1',
'acc +6',
'acc +0',
'jmp +588',
'acc -17',
'jmp +277',
'acc +2',
'nop +163',
'jmp +558',
'acc +38',
'jmp +369',
'acc +13',
'jmp +536',
'acc +38',
'acc +39',
'acc +6',
'jmp +84',
'acc +11',
'nop +517',
'acc +48',
'acc +47',
'jmp +1',
'acc +42',
'acc +0',
'acc +2',
'acc +24',
'jmp +335',
'acc +44',
'acc +47',
'jmp +446',
'nop +42',
'nop +74',
'acc +45',
'jmp +548',
'jmp +66',
'acc +1',
'jmp +212',
'acc +18',
'jmp +1',
'acc +4',
'acc -16',
'jmp +366',
'acc +0',
'jmp +398',
'acc +45',
'jmp +93',
'acc +40',
'acc +38',
'acc +21',
'nop +184',
'jmp -46',
'nop -9',
'jmp +53',
'acc +46',
'acc +36',
'jmp +368',
'acc +16',
'acc +8',
'acc -9',
'acc -4',
'jmp +328',
'acc -15',
'acc -5',
'acc +21',
'jmp +435',
'acc -5',
'acc +36',
'jmp +362',
'acc +26',
'jmp +447',
'jmp +1',
'jmp +412',
'acc +11',
'acc +41',
'nop -32',
'acc +17',
'jmp -63',
'jmp +1',
'nop +393',
'jmp +62',
'acc +18',
'acc +30',
'nop +417',
'jmp +74',
'acc +29',
'acc +23',
'jmp +455',
'jmp +396',
'jmp +395',
'acc +33',
'nop +137',
'nop +42',
'jmp +57',
'jmp +396',
'acc +7',
'acc +0',
'jmp +354',
'acc +15',
'acc +50',
'jmp -12',
'jmp +84',
'nop +175',
'acc +5',
'acc -2',
'jmp -82',
'acc +1',
'acc +26',
'jmp +288',
'nop -113',
'nop +366',
'acc +45',
'jmp +388',
'acc +21',
'acc +38',
'jmp +427',
'acc +33',
'jmp -94',
'nop -118',
'nop +411',
'jmp +472',
'nop +231',
'nop +470',
'acc +48',
'jmp -124',
'jmp +1',
'acc +5',
'acc +37',
'acc +42',
'jmp +301',
'acc -11',
'acc -17',
'acc +14',
'jmp +357',
'acc +6',
'acc +20',
'acc +13',
'jmp +361',
'jmp -65',
'acc +29',
'jmp +26',
'jmp +329',
'acc +32',
'acc +32',
'acc +17',
'jmp -102',
'acc -6',
'acc +33',
'acc +9',
'jmp +189',
'acc +3',
'jmp -128',
'jmp -142',
'acc +24',
'acc -5',
'jmp +403',
'acc +28',
'jmp +310',
'acc +34',
'acc +4',
'acc +33',
'acc +18',
'jmp +227',
'acc -8',
'acc -15',
'jmp +112',
'jmp +54',
'acc +21',
'acc +23',
'acc +20',
'jmp +320',
'acc +13',
'jmp -77',
'acc +15',
'nop +310',
'nop +335',
'jmp +232',
'acc -3',
'nop +50',
'acc +41',
'jmp +112',
'nop -10',
'acc +29',
'acc +27',
'jmp +52',
'acc +40',
'nop -132',
'acc -16',
'acc +27',
'jmp +309',
'acc -8',
'nop +147',
'acc +20',
'acc +46',
'jmp +202',
'acc +27',
'jmp -43',
'jmp +1',
'acc +33',
'acc -13',
'jmp +300',
'acc +1',
'jmp -202',
'acc -17',
'acc +0',
'acc +34',
'jmp -5',
'nop +335',
'acc -16',
'acc -17',
'jmp -120',
'acc -19',
'acc -13',
'acc +4',
'jmp +368',
'jmp +21',
'acc +39',
'acc +39',
'acc -18',
'jmp -157',
'nop +280',
'acc +33',
'nop -37',
'jmp +32',
'acc -16',
'acc +18',
'acc +46',
'jmp -121',
'acc -19',
'jmp +195',
'acc +28',
'jmp +124',
'jmp +331',
'jmp -228',
'jmp -146',
'jmp +85',
'jmp +60',
'acc +20',
'acc -9',
'jmp +303',
'jmp -122',
'jmp +111',
'acc +32',
'acc +0',
'acc +39',
'acc +29',
'jmp -31',
'nop +320',
'jmp -63',
'jmp +223',
'nop -149',
'acc -12',
'acc -11',
'acc +32',
'jmp +309',
'jmp -13',
'acc -19',
'jmp -123',
'acc +21',
'acc +18',
'acc +49',
'jmp +175',
'acc -14',
'nop -129',
'acc -2',
'acc +31',
'jmp +79',
'acc +23',
'acc +50',
'acc +39',
'acc +7',
'jmp -235',
'jmp -166',
'acc +9',
'jmp +293',
'acc -11',
'jmp +76',
'acc +44',
'acc +3',
'acc +37',
'jmp +123',
'nop -104',
'jmp -157',
'acc +14',
'acc +10',
'acc +28',
'jmp +25',
'acc +37',
'jmp +188',
'jmp -49',
'acc -11',
'jmp -90',
'acc -8',
'jmp +197',
'acc +5',
'jmp +115',
'acc +44',
'jmp -228',
'nop -2',
'acc +46',
'jmp +130',
'nop +183',
'nop +106',
'acc +27',
'acc +37',
'jmp -309',
'acc +28',
'acc -4',
'acc -12',
'acc +38',
'jmp +93',
'acc +8',
'acc +23',
'acc -9',
'acc +6',
'jmp -42',
'acc +10',
'acc +35',
'acc +4',
'jmp -231',
'acc +19',
'acc +7',
'acc +23',
'acc +11',
'jmp -90',
'acc +0',
'nop +158',
'nop -150',
'acc +33',
'jmp +107',
'acc +48',
'acc -2',
'jmp -104',
'acc +6',
'nop -57',
'nop +172',
'acc -11',
'jmp -7',
'acc +6',
'acc +50',
'acc -9',
'acc +12',
'jmp -171',
'acc +3',
'jmp +26',
'acc +42',
'acc +31',
'acc +20',
'acc +32',
'jmp -48',
'acc +13',
'jmp -6',
'jmp +178',
'acc +47',
'jmp -153',
'acc +28',
'nop +74',
'jmp -162',
'acc -15',
'nop -104',
'acc -9',
'jmp -227',
'acc +49',
'acc -19',
'acc +41',
'jmp -318',
'acc +9',
'acc +12',
'acc +7',
'jmp +34',
'jmp +137',
'nop -143',
'acc -8',
'acc +5',
'acc +31',
'jmp -20',
'jmp -237',
'acc +39',
'acc +0',
'jmp -298',
'acc +45',
'acc -19',
'acc +11',
'jmp -151',
'acc +40',
'acc +27',
'nop +150',
'nop -391',
'jmp -341',
'acc +1',
'acc +11',
'acc +18',
'nop -234',
'jmp +77',
'nop +104',
'jmp -65',
'acc +32',
'jmp -27',
'nop -317',
'nop +159',
'acc +14',
'acc -10',
'jmp -348',
'acc +29',
'jmp +32',
'acc +48',
'acc -19',
'jmp +17',
'jmp -201',
'jmp -224',
'nop +26',
'acc -7',
'acc +23',
'acc +46',
'jmp -6',
'acc +22',
'acc +39',
'acc +9',
'acc +23',
'jmp -30',
'jmp -243',
'acc +47',
'acc -15',
'jmp -298',
'jmp -393',
'jmp +1',
'acc +3',
'nop -24',
'acc +7',
'jmp -59',
'acc -6',
'acc +26',
'jmp -102',
'acc +34',
'acc +24',
'jmp -207',
'acc +36',
'acc +40',
'acc +41',
'jmp +1',
'jmp -306',
'jmp +57',
'jmp +1',
'nop +99',
'acc +28',
'jmp -391',
'acc +50',
'jmp -359',
'acc -5',
'jmp +9',
'jmp -355',
'acc +5',
'acc +2',
'jmp -77',
'acc +40',
'acc +28',
'acc +22',
'jmp -262',
'nop -287',
'acc +34',
'acc -4',
'nop +112',
'jmp -195',
'acc +29',
'nop -94',
'nop -418',
'jmp +24',
'jmp -190',
'acc +2',
'jmp -311',
'jmp -178',
'jmp -276',
'acc -12',
'acc -18',
'jmp +62',
'jmp -174',
'nop +31',
'acc +33',
'nop -158',
'jmp -417',
'acc +3',
'acc +21',
'acc +47',
'jmp +87',
'acc +45',
'jmp -77',
'acc +6',
'acc -10',
'jmp +1',
'jmp -240',
'acc +7',
'acc +47',
'jmp -379',
'acc -14',
'acc +50',
'nop -75',
'acc +30',
'jmp +70',
'jmp -392',
'jmp -430',
'acc +22',
'acc -2',
'jmp -492',
'jmp +1',
'acc -6',
'acc +38',
'jmp -36',
'nop -336',
'jmp -32',
'jmp +61',
'acc +20',
'acc -9',
'acc +2',
'jmp -175',
'acc +21',
'acc -2',
'jmp -6',
'jmp -527',
'acc +11',
'acc +16',
'jmp -262',
'jmp +1',
'nop -327',
'acc +29',
'jmp -114',
'acc +11',
'acc +17',
'acc +26',
'nop -104',
'jmp -428',
'nop -178',
'nop -242',
'acc +29',
'acc +5',
'jmp -245',
'jmp -417',
'jmp -278',
'acc +35',
'acc +21',
'jmp +1',
'nop -263',
'jmp +8',
'acc +42',
'jmp -95',
'nop -312',
'acc -11',
'acc +34',
'acc +0',
'jmp +19',
'acc +8',
'acc -13',
'acc +32',
'acc +21',
'jmp -208',
'acc +15',
'acc +39',
'nop -194',
'jmp -280',
'jmp +24',
'nop -516',
'acc +21',
'acc +48',
'jmp -367',
'jmp -121',
'acc +49',
'acc -16',
'jmp -136',
'acc +0',
'jmp -148',
'jmp -85',
'jmp -103',
'nop -446',
'jmp -242',
'acc -12',
'acc +13',
'acc +31',
'acc -1',
'jmp -435',
'nop -420',
'acc +22',
'acc -5',
'jmp -567',
'nop -354',
'acc +11',
'acc +33',
'acc +45',
'jmp -76',
'acc -2',
'acc +0',
'acc +25',
'acc +46',
'jmp -555',
'acc +0',
'acc +11',
'nop -2',
'jmp -394',
'jmp -395',
'acc +8',
'acc +14',
'acc +47',
'acc +22',
'jmp +1',]
| test = ['nop +0', 'acc +1', 'jmp +4', 'acc +3', 'jmp -3', 'acc -99', 'acc +1', 'jmp -4', 'acc +6']
actual = ['acc +17', 'acc +37', 'acc -13', 'jmp +173', 'nop +100', 'acc -7', 'jmp +447', 'nop +283', 'acc +41', 'acc +32', 'jmp +1', 'jmp +585', 'jmp +1', 'acc -5', 'nop +71', 'acc +49', 'acc -18', 'jmp +527', 'jmp +130', 'jmp +253', 'acc +11', 'acc -11', 'jmp +390', 'jmp +597', 'jmp +1', 'acc +6', 'acc +0', 'jmp +588', 'acc -17', 'jmp +277', 'acc +2', 'nop +163', 'jmp +558', 'acc +38', 'jmp +369', 'acc +13', 'jmp +536', 'acc +38', 'acc +39', 'acc +6', 'jmp +84', 'acc +11', 'nop +517', 'acc +48', 'acc +47', 'jmp +1', 'acc +42', 'acc +0', 'acc +2', 'acc +24', 'jmp +335', 'acc +44', 'acc +47', 'jmp +446', 'nop +42', 'nop +74', 'acc +45', 'jmp +548', 'jmp +66', 'acc +1', 'jmp +212', 'acc +18', 'jmp +1', 'acc +4', 'acc -16', 'jmp +366', 'acc +0', 'jmp +398', 'acc +45', 'jmp +93', 'acc +40', 'acc +38', 'acc +21', 'nop +184', 'jmp -46', 'nop -9', 'jmp +53', 'acc +46', 'acc +36', 'jmp +368', 'acc +16', 'acc +8', 'acc -9', 'acc -4', 'jmp +328', 'acc -15', 'acc -5', 'acc +21', 'jmp +435', 'acc -5', 'acc +36', 'jmp +362', 'acc +26', 'jmp +447', 'jmp +1', 'jmp +412', 'acc +11', 'acc +41', 'nop -32', 'acc +17', 'jmp -63', 'jmp +1', 'nop +393', 'jmp +62', 'acc +18', 'acc +30', 'nop +417', 'jmp +74', 'acc +29', 'acc +23', 'jmp +455', 'jmp +396', 'jmp +395', 'acc +33', 'nop +137', 'nop +42', 'jmp +57', 'jmp +396', 'acc +7', 'acc +0', 'jmp +354', 'acc +15', 'acc +50', 'jmp -12', 'jmp +84', 'nop +175', 'acc +5', 'acc -2', 'jmp -82', 'acc +1', 'acc +26', 'jmp +288', 'nop -113', 'nop +366', 'acc +45', 'jmp +388', 'acc +21', 'acc +38', 'jmp +427', 'acc +33', 'jmp -94', 'nop -118', 'nop +411', 'jmp +472', 'nop +231', 'nop +470', 'acc +48', 'jmp -124', 'jmp +1', 'acc +5', 'acc +37', 'acc +42', 'jmp +301', 'acc -11', 'acc -17', 'acc +14', 'jmp +357', 'acc +6', 'acc +20', 'acc +13', 'jmp +361', 'jmp -65', 'acc +29', 'jmp +26', 'jmp +329', 'acc +32', 'acc +32', 'acc +17', 'jmp -102', 'acc -6', 'acc +33', 'acc +9', 'jmp +189', 'acc +3', 'jmp -128', 'jmp -142', 'acc +24', 'acc -5', 'jmp +403', 'acc +28', 'jmp +310', 'acc +34', 'acc +4', 'acc +33', 'acc +18', 'jmp +227', 'acc -8', 'acc -15', 'jmp +112', 'jmp +54', 'acc +21', 'acc +23', 'acc +20', 'jmp +320', 'acc +13', 'jmp -77', 'acc +15', 'nop +310', 'nop +335', 'jmp +232', 'acc -3', 'nop +50', 'acc +41', 'jmp +112', 'nop -10', 'acc +29', 'acc +27', 'jmp +52', 'acc +40', 'nop -132', 'acc -16', 'acc +27', 'jmp +309', 'acc -8', 'nop +147', 'acc +20', 'acc +46', 'jmp +202', 'acc +27', 'jmp -43', 'jmp +1', 'acc +33', 'acc -13', 'jmp +300', 'acc +1', 'jmp -202', 'acc -17', 'acc +0', 'acc +34', 'jmp -5', 'nop +335', 'acc -16', 'acc -17', 'jmp -120', 'acc -19', 'acc -13', 'acc +4', 'jmp +368', 'jmp +21', 'acc +39', 'acc +39', 'acc -18', 'jmp -157', 'nop +280', 'acc +33', 'nop -37', 'jmp +32', 'acc -16', 'acc +18', 'acc +46', 'jmp -121', 'acc -19', 'jmp +195', 'acc +28', 'jmp +124', 'jmp +331', 'jmp -228', 'jmp -146', 'jmp +85', 'jmp +60', 'acc +20', 'acc -9', 'jmp +303', 'jmp -122', 'jmp +111', 'acc +32', 'acc +0', 'acc +39', 'acc +29', 'jmp -31', 'nop +320', 'jmp -63', 'jmp +223', 'nop -149', 'acc -12', 'acc -11', 'acc +32', 'jmp +309', 'jmp -13', 'acc -19', 'jmp -123', 'acc +21', 'acc +18', 'acc +49', 'jmp +175', 'acc -14', 'nop -129', 'acc -2', 'acc +31', 'jmp +79', 'acc +23', 'acc +50', 'acc +39', 'acc +7', 'jmp -235', 'jmp -166', 'acc +9', 'jmp +293', 'acc -11', 'jmp +76', 'acc +44', 'acc +3', 'acc +37', 'jmp +123', 'nop -104', 'jmp -157', 'acc +14', 'acc +10', 'acc +28', 'jmp +25', 'acc +37', 'jmp +188', 'jmp -49', 'acc -11', 'jmp -90', 'acc -8', 'jmp +197', 'acc +5', 'jmp +115', 'acc +44', 'jmp -228', 'nop -2', 'acc +46', 'jmp +130', 'nop +183', 'nop +106', 'acc +27', 'acc +37', 'jmp -309', 'acc +28', 'acc -4', 'acc -12', 'acc +38', 'jmp +93', 'acc +8', 'acc +23', 'acc -9', 'acc +6', 'jmp -42', 'acc +10', 'acc +35', 'acc +4', 'jmp -231', 'acc +19', 'acc +7', 'acc +23', 'acc +11', 'jmp -90', 'acc +0', 'nop +158', 'nop -150', 'acc +33', 'jmp +107', 'acc +48', 'acc -2', 'jmp -104', 'acc +6', 'nop -57', 'nop +172', 'acc -11', 'jmp -7', 'acc +6', 'acc +50', 'acc -9', 'acc +12', 'jmp -171', 'acc +3', 'jmp +26', 'acc +42', 'acc +31', 'acc +20', 'acc +32', 'jmp -48', 'acc +13', 'jmp -6', 'jmp +178', 'acc +47', 'jmp -153', 'acc +28', 'nop +74', 'jmp -162', 'acc -15', 'nop -104', 'acc -9', 'jmp -227', 'acc +49', 'acc -19', 'acc +41', 'jmp -318', 'acc +9', 'acc +12', 'acc +7', 'jmp +34', 'jmp +137', 'nop -143', 'acc -8', 'acc +5', 'acc +31', 'jmp -20', 'jmp -237', 'acc +39', 'acc +0', 'jmp -298', 'acc +45', 'acc -19', 'acc +11', 'jmp -151', 'acc +40', 'acc +27', 'nop +150', 'nop -391', 'jmp -341', 'acc +1', 'acc +11', 'acc +18', 'nop -234', 'jmp +77', 'nop +104', 'jmp -65', 'acc +32', 'jmp -27', 'nop -317', 'nop +159', 'acc +14', 'acc -10', 'jmp -348', 'acc +29', 'jmp +32', 'acc +48', 'acc -19', 'jmp +17', 'jmp -201', 'jmp -224', 'nop +26', 'acc -7', 'acc +23', 'acc +46', 'jmp -6', 'acc +22', 'acc +39', 'acc +9', 'acc +23', 'jmp -30', 'jmp -243', 'acc +47', 'acc -15', 'jmp -298', 'jmp -393', 'jmp +1', 'acc +3', 'nop -24', 'acc +7', 'jmp -59', 'acc -6', 'acc +26', 'jmp -102', 'acc +34', 'acc +24', 'jmp -207', 'acc +36', 'acc +40', 'acc +41', 'jmp +1', 'jmp -306', 'jmp +57', 'jmp +1', 'nop +99', 'acc +28', 'jmp -391', 'acc +50', 'jmp -359', 'acc -5', 'jmp +9', 'jmp -355', 'acc +5', 'acc +2', 'jmp -77', 'acc +40', 'acc +28', 'acc +22', 'jmp -262', 'nop -287', 'acc +34', 'acc -4', 'nop +112', 'jmp -195', 'acc +29', 'nop -94', 'nop -418', 'jmp +24', 'jmp -190', 'acc +2', 'jmp -311', 'jmp -178', 'jmp -276', 'acc -12', 'acc -18', 'jmp +62', 'jmp -174', 'nop +31', 'acc +33', 'nop -158', 'jmp -417', 'acc +3', 'acc +21', 'acc +47', 'jmp +87', 'acc +45', 'jmp -77', 'acc +6', 'acc -10', 'jmp +1', 'jmp -240', 'acc +7', 'acc +47', 'jmp -379', 'acc -14', 'acc +50', 'nop -75', 'acc +30', 'jmp +70', 'jmp -392', 'jmp -430', 'acc +22', 'acc -2', 'jmp -492', 'jmp +1', 'acc -6', 'acc +38', 'jmp -36', 'nop -336', 'jmp -32', 'jmp +61', 'acc +20', 'acc -9', 'acc +2', 'jmp -175', 'acc +21', 'acc -2', 'jmp -6', 'jmp -527', 'acc +11', 'acc +16', 'jmp -262', 'jmp +1', 'nop -327', 'acc +29', 'jmp -114', 'acc +11', 'acc +17', 'acc +26', 'nop -104', 'jmp -428', 'nop -178', 'nop -242', 'acc +29', 'acc +5', 'jmp -245', 'jmp -417', 'jmp -278', 'acc +35', 'acc +21', 'jmp +1', 'nop -263', 'jmp +8', 'acc +42', 'jmp -95', 'nop -312', 'acc -11', 'acc +34', 'acc +0', 'jmp +19', 'acc +8', 'acc -13', 'acc +32', 'acc +21', 'jmp -208', 'acc +15', 'acc +39', 'nop -194', 'jmp -280', 'jmp +24', 'nop -516', 'acc +21', 'acc +48', 'jmp -367', 'jmp -121', 'acc +49', 'acc -16', 'jmp -136', 'acc +0', 'jmp -148', 'jmp -85', 'jmp -103', 'nop -446', 'jmp -242', 'acc -12', 'acc +13', 'acc +31', 'acc -1', 'jmp -435', 'nop -420', 'acc +22', 'acc -5', 'jmp -567', 'nop -354', 'acc +11', 'acc +33', 'acc +45', 'jmp -76', 'acc -2', 'acc +0', 'acc +25', 'acc +46', 'jmp -555', 'acc +0', 'acc +11', 'nop -2', 'jmp -394', 'jmp -395', 'acc +8', 'acc +14', 'acc +47', 'acc +22', 'jmp +1'] |
class Solution:
def generateMatrix(self, n):
matrix = []
num = 1
for i in range(n):
matrix.append([0 for i in range(n)])
top = 0
bottom = n - 1
left = 0
right = n - 1
while top <= bottom and left <= right:
for i in range(left, right + 1):
matrix[top][i] = num
num += 1
for j in range(top + 1, bottom + 1):
matrix[j][right] = num
num += 1
if top < bottom and left < right:
for i in range(right - 1, left - 1, -1):
matrix[bottom][i] = num
num += 1
for j in range(bottom - 1, top, -1):
matrix[j][left] = num
num += 1
top, bottom, left, right = top + 1, bottom - 1, left + 1, right - 1
return matrix | class Solution:
def generate_matrix(self, n):
matrix = []
num = 1
for i in range(n):
matrix.append([0 for i in range(n)])
top = 0
bottom = n - 1
left = 0
right = n - 1
while top <= bottom and left <= right:
for i in range(left, right + 1):
matrix[top][i] = num
num += 1
for j in range(top + 1, bottom + 1):
matrix[j][right] = num
num += 1
if top < bottom and left < right:
for i in range(right - 1, left - 1, -1):
matrix[bottom][i] = num
num += 1
for j in range(bottom - 1, top, -1):
matrix[j][left] = num
num += 1
(top, bottom, left, right) = (top + 1, bottom - 1, left + 1, right - 1)
return matrix |
# classification related details
classification_datasets = ['imagenet', 'coco']
classification_schedulers = ['fixed', 'clr', 'hybrid', 'linear', 'poly']
classification_models = ['espnetv2', 'dicenet', 'shufflenetv2']
classification_exp_choices = ['main', 'ablation']
# segmentation related details
segmentation_schedulers = ['poly', 'fixed', 'clr', 'linear', 'hybrid']
segmentation_datasets = ['pascal', 'city']
segmentation_models = ['espnetv2', 'dicenet']
segmentation_loss_fns = ['ce', 'bce']
# detection related details
detection_datasets = ['coco', 'pascal']
detection_models = ['espnetv2', 'dicenet']
detection_schedulers = ['poly', 'hybrid', 'clr', 'cosine']
| classification_datasets = ['imagenet', 'coco']
classification_schedulers = ['fixed', 'clr', 'hybrid', 'linear', 'poly']
classification_models = ['espnetv2', 'dicenet', 'shufflenetv2']
classification_exp_choices = ['main', 'ablation']
segmentation_schedulers = ['poly', 'fixed', 'clr', 'linear', 'hybrid']
segmentation_datasets = ['pascal', 'city']
segmentation_models = ['espnetv2', 'dicenet']
segmentation_loss_fns = ['ce', 'bce']
detection_datasets = ['coco', 'pascal']
detection_models = ['espnetv2', 'dicenet']
detection_schedulers = ['poly', 'hybrid', 'clr', 'cosine'] |
# encoding: utf-8
# module win32profile
# from C:\Python27\lib\site-packages\win32\win32profile.pyd
# by generator 1.147
# no doc
# no imports
# Variables with simple values
PI_APPLYPOLICY = 2
PI_NOUI = 1
PT_MANDATORY = 4
PT_ROAMING = 2
PT_TEMPORARY = 1
# functions
def CreateEnvironmentBlock(*args, **kwargs): # real signature unknown
""" Retrieves environment variables for a user """
pass
def DeleteProfile(*args, **kwargs): # real signature unknown
""" Remove a user's profile """
pass
def ExpandEnvironmentStringsForUser(*args, **kwargs): # real signature unknown
""" Replaces environment variables in a string with per-user values """
pass
def GetAllUsersProfileDirectory(*args, **kwargs): # real signature unknown
""" Retrieve All Users profile directory """
pass
def GetDefaultUserProfileDirectory(*args, **kwargs): # real signature unknown
""" Retrieve profile path for Default user """
pass
def GetEnvironmentStrings(*args, **kwargs): # real signature unknown
""" Retrieves environment variables for current process """
pass
def GetProfilesDirectory(*args, **kwargs): # real signature unknown
""" Retrieves directory where user profiles are stored """
pass
def GetProfileType(*args, **kwargs): # real signature unknown
""" Returns type of current user's profile """
pass
def GetUserProfileDirectory(*args, **kwargs): # real signature unknown
""" Returns profile directory for a logon token """
pass
def LoadUserProfile(*args, **kwargs): # real signature unknown
""" Load user settings for a login token """
pass
def UnloadUserProfile(*args, **kwargs): # real signature unknown
""" Unload profile loaded by LoadUserProfile """
pass
# no classes
| pi_applypolicy = 2
pi_noui = 1
pt_mandatory = 4
pt_roaming = 2
pt_temporary = 1
def create_environment_block(*args, **kwargs):
""" Retrieves environment variables for a user """
pass
def delete_profile(*args, **kwargs):
""" Remove a user's profile """
pass
def expand_environment_strings_for_user(*args, **kwargs):
""" Replaces environment variables in a string with per-user values """
pass
def get_all_users_profile_directory(*args, **kwargs):
""" Retrieve All Users profile directory """
pass
def get_default_user_profile_directory(*args, **kwargs):
""" Retrieve profile path for Default user """
pass
def get_environment_strings(*args, **kwargs):
""" Retrieves environment variables for current process """
pass
def get_profiles_directory(*args, **kwargs):
""" Retrieves directory where user profiles are stored """
pass
def get_profile_type(*args, **kwargs):
""" Returns type of current user's profile """
pass
def get_user_profile_directory(*args, **kwargs):
""" Returns profile directory for a logon token """
pass
def load_user_profile(*args, **kwargs):
""" Load user settings for a login token """
pass
def unload_user_profile(*args, **kwargs):
""" Unload profile loaded by LoadUserProfile """
pass |
def checkrot(str1,str2):
if len(str1)==len(str2):
str3=str1+str1
ad=str3.__contains__(str2)
if ad==True:
print("it is right rotate")
else:
print("It is not right rotate ")
else:
print("It is invalid string.Out of range")
def main():
str1=input(" Enter the first String : ")
str2=input("Enter the second String: ")
checkrot(str1,str2)
if __name__ =='__main__':
main()
| def checkrot(str1, str2):
if len(str1) == len(str2):
str3 = str1 + str1
ad = str3.__contains__(str2)
if ad == True:
print('it is right rotate')
else:
print('It is not right rotate ')
else:
print('It is invalid string.Out of range')
def main():
str1 = input(' Enter the first String : ')
str2 = input('Enter the second String: ')
checkrot(str1, str2)
if __name__ == '__main__':
main() |
#
# This file is part of the Ingram Micro CloudBlue Connect EaaS Extension Runner.
#
# Copyright (c) 2021 Ingram Micro. All Rights Reserved.
#
class EaaSError(Exception):
pass
class MaintenanceError(EaaSError):
pass
class CommunicationError(EaaSError):
pass
class StopBackoffError(EaaSError):
pass
| class Eaaserror(Exception):
pass
class Maintenanceerror(EaaSError):
pass
class Communicationerror(EaaSError):
pass
class Stopbackofferror(EaaSError):
pass |
a=int(input('enter a:'))
b=int(input('enter b:'))
c=int(input('enter c:'))
min_value= a if a<b and a<c else b if b<c else c
print(min_value) | a = int(input('enter a:'))
b = int(input('enter b:'))
c = int(input('enter c:'))
min_value = a if a < b and a < c else b if b < c else c
print(min_value) |
class Animals:
def comer(self):
print("Comiendo")
def dormir(self):
print("Durmiendo")
class Perro:
def __init__(self, nombre):
self.nombre = nombre
def comer(self):
print("Comiendo")
def dormir(self):
print("Durmiendo")
def ladrar(self):
print("Ladrando")
print("--------------------------------------------------")
firulais = Perro("Firulais")
firulais.comer()
firulais.dormir()
firulais.ladrar()
print("--------------------------------------------------") | class Animals:
def comer(self):
print('Comiendo')
def dormir(self):
print('Durmiendo')
class Perro:
def __init__(self, nombre):
self.nombre = nombre
def comer(self):
print('Comiendo')
def dormir(self):
print('Durmiendo')
def ladrar(self):
print('Ladrando')
print('--------------------------------------------------')
firulais = perro('Firulais')
firulais.comer()
firulais.dormir()
firulais.ladrar()
print('--------------------------------------------------') |
_base_ = [
'../_base_/models/resnet50.py', '../_base_/datasets/cancer_bs32_pil_resize.py',
'../_base_/schedules/imagenet_bs256_coslr.py', '../_base_/default_runtime.py'
]
model = dict(
head=dict(
num_classes=2,
topk=(1,))
)
data = dict(
train=dict(
data_prefix='/data3/zzhang/tmp/classification/train'),
val=dict(
data_prefix='/data3/zzhang/tmp/classification/test'),
test=dict(
data_prefix='/data3/zzhang/tmp/classification/test'))
optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0001)
load_from = 'https://download.openmmlab.com/mmclassification/v0/resnet/resnet50_batch256_imagenet_20200708-cfb998bf.pth' | _base_ = ['../_base_/models/resnet50.py', '../_base_/datasets/cancer_bs32_pil_resize.py', '../_base_/schedules/imagenet_bs256_coslr.py', '../_base_/default_runtime.py']
model = dict(head=dict(num_classes=2, topk=(1,)))
data = dict(train=dict(data_prefix='/data3/zzhang/tmp/classification/train'), val=dict(data_prefix='/data3/zzhang/tmp/classification/test'), test=dict(data_prefix='/data3/zzhang/tmp/classification/test'))
optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0001)
load_from = 'https://download.openmmlab.com/mmclassification/v0/resnet/resnet50_batch256_imagenet_20200708-cfb998bf.pth' |
"""Base utility functions, that manipulate basic data structures, etc."""
###################################################################################################
###################################################################################################
def flatten(lst):
"""Flatten a list of lists into a single list.
Parameters
----------
lst : list of list
A list of embedded lists.
Returns
-------
lst
A flattened list.
"""
return [item for sublist in lst for item in sublist]
| """Base utility functions, that manipulate basic data structures, etc."""
def flatten(lst):
"""Flatten a list of lists into a single list.
Parameters
----------
lst : list of list
A list of embedded lists.
Returns
-------
lst
A flattened list.
"""
return [item for sublist in lst for item in sublist] |
""" Class description goes here. """
"""Package containing gRPC classes."""
__author__ = 'Enrico La Sala <enrico.lasala@bsc.es>'
__copyright__ = '2017 Barcelona Supercomputing Center (BSC-CNS)'
| """ Class description goes here. """
'Package containing gRPC classes.'
__author__ = 'Enrico La Sala <enrico.lasala@bsc.es>'
__copyright__ = '2017 Barcelona Supercomputing Center (BSC-CNS)' |
class CircularQueue:
"""
A circlular queue: a first-in-first-out data structure with a fixed buffer size.
"""
def __init__(self, size):
if type(size) is not int:
raise TypeError("Queue size must be a postive integer.")
if size <= 0:
raise ValueError("Queue size must be a postive integer.")
self.queue = []
self.read_pos = 0
self.write_pos = 0
self.size = size
self.queue = [None for i in range(size)]
def enqueue(self, element):
"""
Adds an element to the buffer if the buffer is not already full.
:param element: The element you wish to add.
:returns: The element itself if it was added, or `None` if the buffer was full.
"""
if self.queue[self.write_pos] is None:
self.queue[self.write_pos] = element
self.write_pos = (self.write_pos + 1) % self.size
return element
else:
# Buffer is full
return None
def dequeue(self):
"""
Removes an element from the buffer if the buffer is not already empty.
:returns: The element removed (or `None` if the buffer was empty).
"""
if self.queue[self.read_pos] is None:
# Buffer is empty
return None
else:
item = self.queue[self.read_pos]
self.queue[self.read_pos] = None
self.read_pos = (self.read_pos + 1) % self.size
return item
def clear(self):
"""Clears the contents of the queue."""
self.queue = [None for i in range(self.size)]
self.read_pos = self.write_pos = 0
def print(self):
"""
Prints the queue to the console as a list, starting with the element that will
be read next.
"""
return self.queue[self.read_pos :] + self.queue[: self.read_pos]
| class Circularqueue:
"""
A circlular queue: a first-in-first-out data structure with a fixed buffer size.
"""
def __init__(self, size):
if type(size) is not int:
raise type_error('Queue size must be a postive integer.')
if size <= 0:
raise value_error('Queue size must be a postive integer.')
self.queue = []
self.read_pos = 0
self.write_pos = 0
self.size = size
self.queue = [None for i in range(size)]
def enqueue(self, element):
"""
Adds an element to the buffer if the buffer is not already full.
:param element: The element you wish to add.
:returns: The element itself if it was added, or `None` if the buffer was full.
"""
if self.queue[self.write_pos] is None:
self.queue[self.write_pos] = element
self.write_pos = (self.write_pos + 1) % self.size
return element
else:
return None
def dequeue(self):
"""
Removes an element from the buffer if the buffer is not already empty.
:returns: The element removed (or `None` if the buffer was empty).
"""
if self.queue[self.read_pos] is None:
return None
else:
item = self.queue[self.read_pos]
self.queue[self.read_pos] = None
self.read_pos = (self.read_pos + 1) % self.size
return item
def clear(self):
"""Clears the contents of the queue."""
self.queue = [None for i in range(self.size)]
self.read_pos = self.write_pos = 0
def print(self):
"""
Prints the queue to the console as a list, starting with the element that will
be read next.
"""
return self.queue[self.read_pos:] + self.queue[:self.read_pos] |
# -*- coding: utf-8 -*-
class IkazuchiError(Exception):
""" ikazuchi root exception """
pass
class TranslatorError(IkazuchiError):
""" ikazuchi translator exception """
pass
class NeedApiKeyError(TranslatorError): pass
| class Ikazuchierror(Exception):
""" ikazuchi root exception """
pass
class Translatorerror(IkazuchiError):
""" ikazuchi translator exception """
pass
class Needapikeyerror(TranslatorError):
pass |
XPAHS_CONSULT = {
'jobs_urls': '//div[contains(@class, "listResults")]//div[contains(@data-jobid, "")]//h2//a/@href',
'results': '//span[@class="description fc-light fs-body1"]//text()',
'pagination_indicator': '//a[contains(@class, "s-pagination--item")][last()]//span[contains(text(), "next")]',
'pagination_url': '//a[contains(@class, "s-pagination--item")][last()]/@href',
}
START_URL = 'https://stackoverflow.com/jobs/'
| xpahs_consult = {'jobs_urls': '//div[contains(@class, "listResults")]//div[contains(@data-jobid, "")]//h2//a/@href', 'results': '//span[@class="description fc-light fs-body1"]//text()', 'pagination_indicator': '//a[contains(@class, "s-pagination--item")][last()]//span[contains(text(), "next")]', 'pagination_url': '//a[contains(@class, "s-pagination--item")][last()]/@href'}
start_url = 'https://stackoverflow.com/jobs/' |
"""
Author: bkc@data_analysis
Project: autoencoder_ng
Created: 7/29/20 10:51
Purpose: START SCRIPT FOR AUTOENCODER_NG PROJECT
"""
| """
Author: bkc@data_analysis
Project: autoencoder_ng
Created: 7/29/20 10:51
Purpose: START SCRIPT FOR AUTOENCODER_NG PROJECT
""" |
# https://docs.djangoproject.com/en/dev/ref/settings/#secure-proxy-ssl-header
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
# https://docs.djangoproject.com/en/dev/ref/settings/#secure-ssl-redirect
SECURE_SSL_REDIRECT = True
# https://docs.djangoproject.com/en/dev/ref/settings/#session-cookie-secure
SESSION_COOKIE_SECURE = True
# https://docs.djangoproject.com/en/dev/ref/settings/#csrf-cookie-secure
CSRF_COOKIE_SECURE = True
# https://docs.djangoproject.com/en/dev/topics/security/#ssl-https
# https://docs.djangoproject.com/en/dev/ref/settings/#secure-hsts-preload
SECURE_HSTS_PRELOAD = True
# https://docs.djangoproject.com/en/dev/ref/settings/#secure-hsts-include-subdomains
SECURE_HSTS_INCLUDE_SUBDOMAINS = True
# https://docs.djangoproject.com/en/dev/ref/settings/#secure-hsts-seconds
SECURE_HSTS_SECONDS = 31536000
# https://docs.djangoproject.com/en/dev/ref/middleware/#x-content-type-options-nosniff
SECURE_CONTENT_TYPE_NOSNIFF = True
| secure_proxy_ssl_header = ('HTTP_X_FORWARDED_PROTO', 'https')
secure_ssl_redirect = True
session_cookie_secure = True
csrf_cookie_secure = True
secure_hsts_preload = True
secure_hsts_include_subdomains = True
secure_hsts_seconds = 31536000
secure_content_type_nosniff = True |
# The `Environment` class represents the dynamic environment of McCarthy's original Lisp. The creation of
# this class is actually an interesting story. As many of you probably know, [Paul Graham wrote a paper and
# code for McCarthy's original Lisp](http://www.paulgraham.com/rootsoflisp.html) and it was my first exposure to
# the stark simplicity of the language. The simplicity is breath-taking!
#
# However, while playing around with the code I found that in using the core functions (i.e. `null.`, `not.`, etc.)
# I was not experiencing the full effect of the original. That is, the original Lisp was dynamically scoped, but
# the Common Lisp used to implement and run (CLisp in the latter case) Graham's code was lexically scoped. Therefore,
# by attempting to write high-level functions using only the magnificent 7 and Graham's core functions in the Common Lisp
# I was taking advantage of lexical scope; something not available to McCarthy and company. Of course, the whole reason
# that Graham wrote `eval.` was to enforce dynamic scoping (he used a list of symbol-value pairs where the dynamic variables
# were added to its front when introduced). However, that was extremely cumbersome to use:
#
# (eval. 'a '((a 1) (a 2)))
# ;=> 1
#
# So I then implemented a simple REPL in Common Lisp that fed input into `eval.` and maintained the current environment list.
# That was fun, but I wasn't sure that I was learning anything at all. Therefore, years later I came across the simple
# REPL and decided to try to implement my own core environment for the magnificent 7 to truly get a feel for what it took
# to build a simple language up from scratch. I suppose if I were a real manly guy then I would have found an IBM 704, but
# that would be totally insane. (email me if you have one that you'd like to sell for cheap)
#
# Anyway, the point of this is that I needed to start with creating an `Environment` that provided dynamic scoping, and the
# result is this.
class Environment:
# The binding are stored in a simple dict and the stack discipline is emulated through the `parent` link
def __init__(self, par=None, bnd=None):
if bnd:
self.binds = bnd
else:
self.binds = {}
self.parent = par
if par:
self.level = self.parent.level + 1
else:
self.level = 0
# Getting a binding potentially requires the traversal of the parent link
def get(self, key):
if key in self.binds:
return self.binds[key]
elif self.parent:
return self.parent.get(key)
else:
raise ValueError("Invalid symbol " + key)
# Setting a binding is symmetric to getting
def set(self, key, value):
if key in self.binds:
self.binds[key] = value
elif self.parent:
self.parent.set(key,value)
else:
self.binds[key] = value
def definedp(self, key):
if key in self.binds.keys():
return True
return False
# Push a new binding by creating a new Env
#
# Dynamic scope works like a stack. Whenever a variable is created it's binding is pushed onto a
# global stack. In this case, the stack is simulated through a chain of parent links. So if you were to
# create the following:
#
# (label a nil)
# (label frobnicate (lambda () (cons a nil)))
#
# ((lambda (a)
# (frobnicate))
# (quote x))
#
# Then the stack would look like the figure below within the body of `frobnicate`:
#
# | |
# | |
# | a = 'x |
# | ------- |
# | a = nil |
# +---------+
#
# Meaning that when accessing `a`, `frobnicate` will get the binding at the top of the stack, producing the result `(x)`. This push/pop
# can become difficult, so people have to do all kinds of tricks to avoid confusion (i.e. pseudo-namespace via variable naming schemes).
#
def push(self, bnd=None):
return Environment(self, bnd)
def pop(self):
return self.parent
def __repr__( self):
ret = "\nEnvironment %s:\n" % self.level
keys = [i for i in self.binds.keys() if not i[:2] == "__"]
for key in keys:
ret = ret + " %5s: %s\n" % (key, self.binds[key])
return ret
| class Environment:
def __init__(self, par=None, bnd=None):
if bnd:
self.binds = bnd
else:
self.binds = {}
self.parent = par
if par:
self.level = self.parent.level + 1
else:
self.level = 0
def get(self, key):
if key in self.binds:
return self.binds[key]
elif self.parent:
return self.parent.get(key)
else:
raise value_error('Invalid symbol ' + key)
def set(self, key, value):
if key in self.binds:
self.binds[key] = value
elif self.parent:
self.parent.set(key, value)
else:
self.binds[key] = value
def definedp(self, key):
if key in self.binds.keys():
return True
return False
def push(self, bnd=None):
return environment(self, bnd)
def pop(self):
return self.parent
def __repr__(self):
ret = '\nEnvironment %s:\n' % self.level
keys = [i for i in self.binds.keys() if not i[:2] == '__']
for key in keys:
ret = ret + ' %5s: %s\n' % (key, self.binds[key])
return ret |
class Exercises:
def __init__(self, topic, course_name, judge_contest_link, problems):
self.topic = topic
self.course_name = course_name
self.judge_contest_link = judge_contest_link
self.problems = [*problems]
def get_info(self):
info = f'Exercises: {self.topic}\n' \
f'Problems for exercises and homework for the "{self.course_name}" course @ SoftUni.' \
f'\nCheck your solutions here: {self.judge_contest_link}\n'
for p in range(len(self.problems)):
if p == len(self.problems) - 1:
info += f'{p + 1}. {self.problems[p]}'
else:
info += f'{p + 1}. {self.problems[p]}\n'
return info
num = 1
items = []
while True:
line_input = input()
if line_input == 'go go go':
break
topic, course_name, judge_contest_link, all_problems = list(line_input.split(' -> '))
problems = all_problems.split(', ')
items.append(Exercises(topic, course_name, judge_contest_link, problems))
for i in items:
print(i.get_info())
| class Exercises:
def __init__(self, topic, course_name, judge_contest_link, problems):
self.topic = topic
self.course_name = course_name
self.judge_contest_link = judge_contest_link
self.problems = [*problems]
def get_info(self):
info = f'Exercises: {self.topic}\nProblems for exercises and homework for the "{self.course_name}" course @ SoftUni.\nCheck your solutions here: {self.judge_contest_link}\n'
for p in range(len(self.problems)):
if p == len(self.problems) - 1:
info += f'{p + 1}. {self.problems[p]}'
else:
info += f'{p + 1}. {self.problems[p]}\n'
return info
num = 1
items = []
while True:
line_input = input()
if line_input == 'go go go':
break
(topic, course_name, judge_contest_link, all_problems) = list(line_input.split(' -> '))
problems = all_problems.split(', ')
items.append(exercises(topic, course_name, judge_contest_link, problems))
for i in items:
print(i.get_info()) |
input = """
% This is a synthetic example documenting a bug in an early version of DLV's
% backjumping algorithm.
% The abstract computation tree looks as follows (choice order should be fixed
% by disabling heuristics with -OH-):
%
% o
% a / \ -a
% / \_..._
% o \
% b / \ -b {-a,-b,f}
% / \
% o o
% incons incons based on a and b
% based
% only
% on b
%
% The backjumping algorithm wrongly determined that in the bottom left
% subtree both inconsistencies are based only on the choice of b and
% therefore stopped the entire search, missing the model on the right.
a | -a.
b | -b.
% taking b causes inconsistency
x :- b.
y :- b.
:- x,y.
% taking -b causes m1 to be MBT, but only with a
% taking -b unconditionally causes d to be false
:- -b, a, not m1.
:- -b, d.
% the constraint is violated if m1 is MBT and d is false
% the reasons are obviously the choice for b and the choice for a
:- m1, not d.
% give m1 a chance to be true
% if not allow a model with f
m1 | f.
% avoid d to be always false
% and allow a model with f
d | f.
"""
output = """
% This is a synthetic example documenting a bug in an early version of DLV's
% backjumping algorithm.
% The abstract computation tree looks as follows (choice order should be fixed
% by disabling heuristics with -OH-):
%
% o
% a / \ -a
% / \_..._
% o \
% b / \ -b {-a,-b,f}
% / \
% o o
% incons incons based on a and b
% based
% only
% on b
%
% The backjumping algorithm wrongly determined that in the bottom left
% subtree both inconsistencies are based only on the choice of b and
% therefore stopped the entire search, missing the model on the right.
a | -a.
b | -b.
% taking b causes inconsistency
x :- b.
y :- b.
:- x,y.
% taking -b causes m1 to be MBT, but only with a
% taking -b unconditionally causes d to be false
:- -b, a, not m1.
:- -b, d.
% the constraint is violated if m1 is MBT and d is false
% the reasons are obviously the choice for b and the choice for a
:- m1, not d.
% give m1 a chance to be true
% if not allow a model with f
m1 | f.
% avoid d to be always false
% and allow a model with f
d | f.
"""
| input = "\n% This is a synthetic example documenting a bug in an early version of DLV's\n% backjumping algorithm.\n\n% The abstract computation tree looks as follows (choice order should be fixed\n% by disabling heuristics with -OH-):\n%\n% o\n% a / \\ -a\n% / \\_..._\n% o % b / \\ -b {-a,-b,f}\n% / % o o\n% incons incons based on a and b\n% based\n% only\n% on b\n%\n% The backjumping algorithm wrongly determined that in the bottom left\n% subtree both inconsistencies are based only on the choice of b and\n% therefore stopped the entire search, missing the model on the right.\n\na | -a.\nb | -b.\n\n% taking b causes inconsistency\nx :- b.\ny :- b.\n:- x,y.\n\n% taking -b causes m1 to be MBT, but only with a\n% taking -b unconditionally causes d to be false\n:- -b, a, not m1.\n:- -b, d.\n\n% the constraint is violated if m1 is MBT and d is false\n% the reasons are obviously the choice for b and the choice for a\n:- m1, not d.\n\n% give m1 a chance to be true\n% if not allow a model with f\nm1 | f.\n\n% avoid d to be always false\n% and allow a model with f\nd | f. \n\n"
output = "\n% This is a synthetic example documenting a bug in an early version of DLV's\n% backjumping algorithm.\n\n% The abstract computation tree looks as follows (choice order should be fixed\n% by disabling heuristics with -OH-):\n%\n% o\n% a / \\ -a\n% / \\_..._\n% o % b / \\ -b {-a,-b,f}\n% / % o o\n% incons incons based on a and b\n% based\n% only\n% on b\n%\n% The backjumping algorithm wrongly determined that in the bottom left\n% subtree both inconsistencies are based only on the choice of b and\n% therefore stopped the entire search, missing the model on the right.\n\na | -a.\nb | -b.\n\n% taking b causes inconsistency\nx :- b.\ny :- b.\n:- x,y.\n\n% taking -b causes m1 to be MBT, but only with a\n% taking -b unconditionally causes d to be false\n:- -b, a, not m1.\n:- -b, d.\n\n% the constraint is violated if m1 is MBT and d is false\n% the reasons are obviously the choice for b and the choice for a\n:- m1, not d.\n\n% give m1 a chance to be true\n% if not allow a model with f\nm1 | f.\n\n% avoid d to be always false\n% and allow a model with f\nd | f. \n\n" |
# -*- coding: utf-8 -*-
"""
Created on Fri Feb 6 17:38:00 2015
@author: dbwrigh3
"""
| """
Created on Fri Feb 6 17:38:00 2015
@author: dbwrigh3
""" |
class Solution(object):
def maxSubArray(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
Max = -float("inf")
currMax = -float("inf")
for num in nums:
currMax = max(num, num + currMax)
Max = max(Max, currMax)
return Max | class Solution(object):
def max_sub_array(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
max = -float('inf')
curr_max = -float('inf')
for num in nums:
curr_max = max(num, num + currMax)
max = max(Max, currMax)
return Max |
# =================================================
# SERVER CONFIGURATIONS
# =================================================
CLIENT_ID=''
CLIENT_SECRET=''
REDIRECT_URI='http://ROCKOPY/'
# =================================================
# SERVER CONFIGURATIONS
# =================================================
SERVER_IP = "127.0.0.1"
SERVER_PORT = 5043
# =================================================
# OTHER OPTIONS
# =================================================
# how many track search results show:
TRACKS_TO_SEARCH = 5
| client_id = ''
client_secret = ''
redirect_uri = 'http://ROCKOPY/'
server_ip = '127.0.0.1'
server_port = 5043
tracks_to_search = 5 |
"""
Bazel macros for defining proto libraries.
"""
load("@rules_proto//proto:defs.bzl", "proto_library")
# TODO(#4096): Remove this once it's no longer needed.
def oppia_proto_library(name, **kwargs):
"""
Defines a new proto library.
Note that the library is defined with a stripped import prefix which ensures that protos have a
common import directory (which is needed since Gradle builds protos in the same directory
whereas Bazel doesn't by default). This common import directory is needed for cross-proto
textprotos to work correctly.
Args:
name: str. The name of the proto library.
**kwargs: additional parameters to pass into proto_library.
"""
proto_library(
name = name,
strip_import_prefix = "",
**kwargs
)
| """
Bazel macros for defining proto libraries.
"""
load('@rules_proto//proto:defs.bzl', 'proto_library')
def oppia_proto_library(name, **kwargs):
"""
Defines a new proto library.
Note that the library is defined with a stripped import prefix which ensures that protos have a
common import directory (which is needed since Gradle builds protos in the same directory
whereas Bazel doesn't by default). This common import directory is needed for cross-proto
textprotos to work correctly.
Args:
name: str. The name of the proto library.
**kwargs: additional parameters to pass into proto_library.
"""
proto_library(name=name, strip_import_prefix='', **kwargs) |
allData = {'AK': {'Aleutians East': {'pop': 3141, 'tracts': 1},
'Aleutians West': {'pop': 5561, 'tracts': 2},
'Anchorage': {'pop': 291826, 'tracts': 55},
'Bethel': {'pop': 17013, 'tracts': 3},
'Bristol Bay': {'pop': 997, 'tracts': 1},
'Denali': {'pop': 1826, 'tracts': 1},
'Dillingham': {'pop': 4847, 'tracts': 2},
'Fairbanks North Star': {'pop': 97581, 'tracts': 19},
'Haines': {'pop': 2508, 'tracts': 1},
'Hoonah-Angoon': {'pop': 2150, 'tracts': 2},
'Juneau': {'pop': 31275, 'tracts': 6},
'Kenai Peninsula': {'pop': 55400, 'tracts': 13},
'Ketchikan Gateway': {'pop': 13477, 'tracts': 4},
'Kodiak Island': {'pop': 13592, 'tracts': 5},
'Lake and Peninsula': {'pop': 1631, 'tracts': 1},
'Matanuska-Susitna': {'pop': 88995, 'tracts': 24},
'Nome': {'pop': 9492, 'tracts': 2},
'North Slope': {'pop': 9430, 'tracts': 3},
'Northwest Arctic': {'pop': 7523, 'tracts': 2},
'Petersburg': {'pop': 3815, 'tracts': 1},
'Prince of Wales-Hyder': {'pop': 5559, 'tracts': 4},
'Sitka': {'pop': 8881, 'tracts': 2},
'Skagway': {'pop': 968, 'tracts': 1},
'Southeast Fairbanks': {'pop': 7029, 'tracts': 2},
'Valdez-Cordova': {'pop': 9636, 'tracts': 3},
'Wade Hampton': {'pop': 7459, 'tracts': 1},
'Wrangell': {'pop': 2369, 'tracts': 1},
'Yakutat': {'pop': 662, 'tracts': 1},
'Yukon-Koyukuk': {'pop': 5588, 'tracts': 4}},
'AL': {'Autauga': {'pop': 54571, 'tracts': 12},
'Baldwin': {'pop': 182265, 'tracts': 31},
'Barbour': {'pop': 27457, 'tracts': 9},
'Bibb': {'pop': 22915, 'tracts': 4},
'Blount': {'pop': 57322, 'tracts': 9},
'Bullock': {'pop': 10914, 'tracts': 3},
'Butler': {'pop': 20947, 'tracts': 9},
'Calhoun': {'pop': 118572, 'tracts': 31},
'Chambers': {'pop': 34215, 'tracts': 9},
'Cherokee': {'pop': 25989, 'tracts': 6},
'Chilton': {'pop': 43643, 'tracts': 9},
'Choctaw': {'pop': 13859, 'tracts': 4},
'Clarke': {'pop': 25833, 'tracts': 9},
'Clay': {'pop': 13932, 'tracts': 4},
'Cleburne': {'pop': 14972, 'tracts': 4},
'Coffee': {'pop': 49948, 'tracts': 14},
'Colbert': {'pop': 54428, 'tracts': 14},
'Conecuh': {'pop': 13228, 'tracts': 5},
'Coosa': {'pop': 11539, 'tracts': 3},
'Covington': {'pop': 37765, 'tracts': 14},
'Crenshaw': {'pop': 13906, 'tracts': 6},
'Cullman': {'pop': 80406, 'tracts': 18},
'Dale': {'pop': 50251, 'tracts': 14},
'Dallas': {'pop': 43820, 'tracts': 15},
'DeKalb': {'pop': 71109, 'tracts': 14},
'Elmore': {'pop': 79303, 'tracts': 15},
'Escambia': {'pop': 38319, 'tracts': 9},
'Etowah': {'pop': 104430, 'tracts': 30},
'Fayette': {'pop': 17241, 'tracts': 5},
'Franklin': {'pop': 31704, 'tracts': 9},
'Geneva': {'pop': 26790, 'tracts': 6},
'Greene': {'pop': 9045, 'tracts': 3},
'Hale': {'pop': 15760, 'tracts': 6},
'Henry': {'pop': 17302, 'tracts': 6},
'Houston': {'pop': 101547, 'tracts': 22},
'Jackson': {'pop': 53227, 'tracts': 11},
'Jefferson': {'pop': 658466, 'tracts': 163},
'Lamar': {'pop': 14564, 'tracts': 3},
'Lauderdale': {'pop': 92709, 'tracts': 22},
'Lawrence': {'pop': 34339, 'tracts': 9},
'Lee': {'pop': 140247, 'tracts': 27},
'Limestone': {'pop': 82782, 'tracts': 16},
'Lowndes': {'pop': 11299, 'tracts': 4},
'Macon': {'pop': 21452, 'tracts': 12},
'Madison': {'pop': 334811, 'tracts': 73},
'Marengo': {'pop': 21027, 'tracts': 6},
'Marion': {'pop': 30776, 'tracts': 8},
'Marshall': {'pop': 93019, 'tracts': 18},
'Mobile': {'pop': 412992, 'tracts': 114},
'Monroe': {'pop': 23068, 'tracts': 7},
'Montgomery': {'pop': 229363, 'tracts': 65},
'Morgan': {'pop': 119490, 'tracts': 27},
'Perry': {'pop': 10591, 'tracts': 3},
'Pickens': {'pop': 19746, 'tracts': 5},
'Pike': {'pop': 32899, 'tracts': 8},
'Randolph': {'pop': 22913, 'tracts': 6},
'Russell': {'pop': 52947, 'tracts': 13},
'Shelby': {'pop': 195085, 'tracts': 48},
'St. Clair': {'pop': 83593, 'tracts': 13},
'Sumter': {'pop': 13763, 'tracts': 4},
'Talladega': {'pop': 82291, 'tracts': 22},
'Tallapoosa': {'pop': 41616, 'tracts': 10},
'Tuscaloosa': {'pop': 194656, 'tracts': 47},
'Walker': {'pop': 67023, 'tracts': 18},
'Washington': {'pop': 17581, 'tracts': 5},
'Wilcox': {'pop': 11670, 'tracts': 4},
'Winston': {'pop': 24484, 'tracts': 7}},
'AR': {'Arkansas': {'pop': 19019, 'tracts': 8},
'Ashley': {'pop': 21853, 'tracts': 7},
'Baxter': {'pop': 41513, 'tracts': 9},
'Benton': {'pop': 221339, 'tracts': 49},
'Boone': {'pop': 36903, 'tracts': 7},
'Bradley': {'pop': 11508, 'tracts': 5},
'Calhoun': {'pop': 5368, 'tracts': 2},
'Carroll': {'pop': 27446, 'tracts': 5},
'Chicot': {'pop': 11800, 'tracts': 4},
'Clark': {'pop': 22995, 'tracts': 5},
'Clay': {'pop': 16083, 'tracts': 6},
'Cleburne': {'pop': 25970, 'tracts': 7},
'Cleveland': {'pop': 8689, 'tracts': 2},
'Columbia': {'pop': 24552, 'tracts': 5},
'Conway': {'pop': 21273, 'tracts': 6},
'Craighead': {'pop': 96443, 'tracts': 17},
'Crawford': {'pop': 61948, 'tracts': 11},
'Crittenden': {'pop': 50902, 'tracts': 20},
'Cross': {'pop': 17870, 'tracts': 6},
'Dallas': {'pop': 8116, 'tracts': 3},
'Desha': {'pop': 13008, 'tracts': 5},
'Drew': {'pop': 18509, 'tracts': 5},
'Faulkner': {'pop': 113237, 'tracts': 25},
'Franklin': {'pop': 18125, 'tracts': 3},
'Fulton': {'pop': 12245, 'tracts': 2},
'Garland': {'pop': 96024, 'tracts': 20},
'Grant': {'pop': 17853, 'tracts': 4},
'Greene': {'pop': 42090, 'tracts': 9},
'Hempstead': {'pop': 22609, 'tracts': 5},
'Hot Spring': {'pop': 32923, 'tracts': 7},
'Howard': {'pop': 13789, 'tracts': 3},
'Independence': {'pop': 36647, 'tracts': 8},
'Izard': {'pop': 13696, 'tracts': 4},
'Jackson': {'pop': 17997, 'tracts': 5},
'Jefferson': {'pop': 77435, 'tracts': 24},
'Johnson': {'pop': 25540, 'tracts': 6},
'Lafayette': {'pop': 7645, 'tracts': 2},
'Lawrence': {'pop': 17415, 'tracts': 6},
'Lee': {'pop': 10424, 'tracts': 4},
'Lincoln': {'pop': 14134, 'tracts': 4},
'Little River': {'pop': 13171, 'tracts': 4},
'Logan': {'pop': 22353, 'tracts': 6},
'Lonoke': {'pop': 68356, 'tracts': 16},
'Madison': {'pop': 15717, 'tracts': 4},
'Marion': {'pop': 16653, 'tracts': 4},
'Miller': {'pop': 43462, 'tracts': 12},
'Mississippi': {'pop': 46480, 'tracts': 12},
'Monroe': {'pop': 8149, 'tracts': 3},
'Montgomery': {'pop': 9487, 'tracts': 3},
'Nevada': {'pop': 8997, 'tracts': 3},
'Newton': {'pop': 8330, 'tracts': 2},
'Ouachita': {'pop': 26120, 'tracts': 6},
'Perry': {'pop': 10445, 'tracts': 3},
'Phillips': {'pop': 21757, 'tracts': 6},
'Pike': {'pop': 11291, 'tracts': 3},
'Poinsett': {'pop': 24583, 'tracts': 7},
'Polk': {'pop': 20662, 'tracts': 6},
'Pope': {'pop': 61754, 'tracts': 11},
'Prairie': {'pop': 8715, 'tracts': 3},
'Pulaski': {'pop': 382748, 'tracts': 95},
'Randolph': {'pop': 17969, 'tracts': 4},
'Saline': {'pop': 107118, 'tracts': 21},
'Scott': {'pop': 11233, 'tracts': 3},
'Searcy': {'pop': 8195, 'tracts': 3},
'Sebastian': {'pop': 125744, 'tracts': 26},
'Sevier': {'pop': 17058, 'tracts': 4},
'Sharp': {'pop': 17264, 'tracts': 4},
'St. Francis': {'pop': 28258, 'tracts': 6},
'Stone': {'pop': 12394, 'tracts': 3},
'Union': {'pop': 41639, 'tracts': 10},
'Van Buren': {'pop': 17295, 'tracts': 5},
'Washington': {'pop': 203065, 'tracts': 32},
'White': {'pop': 77076, 'tracts': 13},
'Woodruff': {'pop': 7260, 'tracts': 2},
'Yell': {'pop': 22185, 'tracts': 6}},
'AZ': {'Apache': {'pop': 71518, 'tracts': 16},
'Cochise': {'pop': 131346, 'tracts': 32},
'Coconino': {'pop': 134421, 'tracts': 28},
'Gila': {'pop': 53597, 'tracts': 16},
'Graham': {'pop': 37220, 'tracts': 9},
'Greenlee': {'pop': 8437, 'tracts': 3},
'La Paz': {'pop': 20489, 'tracts': 9},
'Maricopa': {'pop': 3817117, 'tracts': 916},
'Mohave': {'pop': 200186, 'tracts': 43},
'Navajo': {'pop': 107449, 'tracts': 31},
'Pima': {'pop': 980263, 'tracts': 241},
'Pinal': {'pop': 375770, 'tracts': 75},
'Santa Cruz': {'pop': 47420, 'tracts': 10},
'Yavapai': {'pop': 211033, 'tracts': 42},
'Yuma': {'pop': 195751, 'tracts': 55}},
'CA': {'Alameda': {'pop': 1510271, 'tracts': 360},
'Alpine': {'pop': 1175, 'tracts': 1},
'Amador': {'pop': 38091, 'tracts': 9},
'Butte': {'pop': 220000, 'tracts': 51},
'Calaveras': {'pop': 45578, 'tracts': 10},
'Colusa': {'pop': 21419, 'tracts': 5},
'Contra Costa': {'pop': 1049025, 'tracts': 208},
'Del Norte': {'pop': 28610, 'tracts': 7},
'El Dorado': {'pop': 181058, 'tracts': 43},
'Fresno': {'pop': 930450, 'tracts': 199},
'Glenn': {'pop': 28122, 'tracts': 6},
'Humboldt': {'pop': 134623, 'tracts': 30},
'Imperial': {'pop': 174528, 'tracts': 31},
'Inyo': {'pop': 18546, 'tracts': 6},
'Kern': {'pop': 839631, 'tracts': 151},
'Kings': {'pop': 152982, 'tracts': 27},
'Lake': {'pop': 64665, 'tracts': 15},
'Lassen': {'pop': 34895, 'tracts': 9},
'Los Angeles': {'pop': 9818605, 'tracts': 2343},
'Madera': {'pop': 150865, 'tracts': 23},
'Marin': {'pop': 252409, 'tracts': 55},
'Mariposa': {'pop': 18251, 'tracts': 6},
'Mendocino': {'pop': 87841, 'tracts': 20},
'Merced': {'pop': 255793, 'tracts': 49},
'Modoc': {'pop': 9686, 'tracts': 4},
'Mono': {'pop': 14202, 'tracts': 3},
'Monterey': {'pop': 415057, 'tracts': 93},
'Napa': {'pop': 136484, 'tracts': 40},
'Nevada': {'pop': 98764, 'tracts': 20},
'Orange': {'pop': 3010232, 'tracts': 583},
'Placer': {'pop': 348432, 'tracts': 85},
'Plumas': {'pop': 20007, 'tracts': 7},
'Riverside': {'pop': 2189641, 'tracts': 453},
'Sacramento': {'pop': 1418788, 'tracts': 317},
'San Benito': {'pop': 55269, 'tracts': 11},
'San Bernardino': {'pop': 2035210, 'tracts': 369},
'San Diego': {'pop': 3095313, 'tracts': 628},
'San Francisco': {'pop': 805235, 'tracts': 196},
'San Joaquin': {'pop': 685306, 'tracts': 139},
'San Luis Obispo': {'pop': 269637, 'tracts': 53},
'San Mateo': {'pop': 718451, 'tracts': 158},
'Santa Barbara': {'pop': 423895, 'tracts': 90},
'Santa Clara': {'pop': 1781642, 'tracts': 372},
'Santa Cruz': {'pop': 262382, 'tracts': 52},
'Shasta': {'pop': 177223, 'tracts': 48},
'Sierra': {'pop': 3240, 'tracts': 1},
'Siskiyou': {'pop': 44900, 'tracts': 14},
'Solano': {'pop': 413344, 'tracts': 96},
'Sonoma': {'pop': 483878, 'tracts': 99},
'Stanislaus': {'pop': 514453, 'tracts': 94},
'Sutter': {'pop': 94737, 'tracts': 21},
'Tehama': {'pop': 63463, 'tracts': 11},
'Trinity': {'pop': 13786, 'tracts': 5},
'Tulare': {'pop': 442179, 'tracts': 78},
'Tuolumne': {'pop': 55365, 'tracts': 11},
'Ventura': {'pop': 823318, 'tracts': 174},
'Yolo': {'pop': 200849, 'tracts': 41},
'Yuba': {'pop': 72155, 'tracts': 14}},
'CO': {'Adams': {'pop': 441603, 'tracts': 97},
'Alamosa': {'pop': 15445, 'tracts': 4},
'Arapahoe': {'pop': 572003, 'tracts': 147},
'Archuleta': {'pop': 12084, 'tracts': 4},
'Baca': {'pop': 3788, 'tracts': 2},
'Bent': {'pop': 6499, 'tracts': 1},
'Boulder': {'pop': 294567, 'tracts': 68},
'Broomfield': {'pop': 55889, 'tracts': 18},
'Chaffee': {'pop': 17809, 'tracts': 5},
'Cheyenne': {'pop': 1836, 'tracts': 1},
'Clear Creek': {'pop': 9088, 'tracts': 3},
'Conejos': {'pop': 8256, 'tracts': 2},
'Costilla': {'pop': 3524, 'tracts': 2},
'Crowley': {'pop': 5823, 'tracts': 1},
'Custer': {'pop': 4255, 'tracts': 1},
'Delta': {'pop': 30952, 'tracts': 7},
'Denver': {'pop': 600158, 'tracts': 144},
'Dolores': {'pop': 2064, 'tracts': 1},
'Douglas': {'pop': 285465, 'tracts': 61},
'Eagle': {'pop': 52197, 'tracts': 14},
'El Paso': {'pop': 622263, 'tracts': 130},
'Elbert': {'pop': 23086, 'tracts': 7},
'Fremont': {'pop': 46824, 'tracts': 14},
'Garfield': {'pop': 56389, 'tracts': 11},
'Gilpin': {'pop': 5441, 'tracts': 1},
'Grand': {'pop': 14843, 'tracts': 3},
'Gunnison': {'pop': 15324, 'tracts': 4},
'Hinsdale': {'pop': 843, 'tracts': 1},
'Huerfano': {'pop': 6711, 'tracts': 2},
'Jackson': {'pop': 1394, 'tracts': 1},
'Jefferson': {'pop': 534543, 'tracts': 138},
'Kiowa': {'pop': 1398, 'tracts': 1},
'Kit Carson': {'pop': 8270, 'tracts': 3},
'La Plata': {'pop': 51334, 'tracts': 10},
'Lake': {'pop': 7310, 'tracts': 2},
'Larimer': {'pop': 299630, 'tracts': 73},
'Las Animas': {'pop': 15507, 'tracts': 6},
'Lincoln': {'pop': 5467, 'tracts': 2},
'Logan': {'pop': 22709, 'tracts': 6},
'Mesa': {'pop': 146723, 'tracts': 29},
'Mineral': {'pop': 712, 'tracts': 1},
'Moffat': {'pop': 13795, 'tracts': 4},
'Montezuma': {'pop': 25535, 'tracts': 7},
'Montrose': {'pop': 41276, 'tracts': 10},
'Morgan': {'pop': 28159, 'tracts': 8},
'Otero': {'pop': 18831, 'tracts': 7},
'Ouray': {'pop': 4436, 'tracts': 1},
'Park': {'pop': 16206, 'tracts': 5},
'Phillips': {'pop': 4442, 'tracts': 2},
'Pitkin': {'pop': 17148, 'tracts': 4},
'Prowers': {'pop': 12551, 'tracts': 5},
'Pueblo': {'pop': 159063, 'tracts': 55},
'Rio Blanco': {'pop': 6666, 'tracts': 2},
'Rio Grande': {'pop': 11982, 'tracts': 3},
'Routt': {'pop': 23509, 'tracts': 8},
'Saguache': {'pop': 6108, 'tracts': 2},
'San Juan': {'pop': 699, 'tracts': 1},
'San Miguel': {'pop': 7359, 'tracts': 4},
'Sedgwick': {'pop': 2379, 'tracts': 1},
'Summit': {'pop': 27994, 'tracts': 5},
'Teller': {'pop': 23350, 'tracts': 6},
'Washington': {'pop': 4814, 'tracts': 2},
'Weld': {'pop': 252825, 'tracts': 77},
'Yuma': {'pop': 10043, 'tracts': 2}},
'CT': {'Fairfield': {'pop': 916829, 'tracts': 211},
'Hartford': {'pop': 894014, 'tracts': 224},
'Litchfield': {'pop': 189927, 'tracts': 51},
'Middlesex': {'pop': 165676, 'tracts': 36},
'New Haven': {'pop': 862477, 'tracts': 190},
'New London': {'pop': 274055, 'tracts': 66},
'Tolland': {'pop': 152691, 'tracts': 29},
'Windham': {'pop': 118428, 'tracts': 25}},
'DC': {'District of Columbia': {'pop': 601723, 'tracts': 179}},
'DE': {'Kent': {'pop': 162310, 'tracts': 33},
'New Castle': {'pop': 538479, 'tracts': 131},
'Sussex': {'pop': 197145, 'tracts': 54}},
'FL': {'Alachua': {'pop': 247336, 'tracts': 56},
'Baker': {'pop': 27115, 'tracts': 4},
'Bay': {'pop': 168852, 'tracts': 44},
'Bradford': {'pop': 28520, 'tracts': 4},
'Brevard': {'pop': 543376, 'tracts': 113},
'Broward': {'pop': 1748066, 'tracts': 361},
'Calhoun': {'pop': 14625, 'tracts': 3},
'Charlotte': {'pop': 159978, 'tracts': 39},
'Citrus': {'pop': 141236, 'tracts': 27},
'Clay': {'pop': 190865, 'tracts': 30},
'Collier': {'pop': 321520, 'tracts': 73},
'Columbia': {'pop': 67531, 'tracts': 12},
'DeSoto': {'pop': 34862, 'tracts': 9},
'Dixie': {'pop': 16422, 'tracts': 3},
'Duval': {'pop': 864263, 'tracts': 173},
'Escambia': {'pop': 297619, 'tracts': 71},
'Flagler': {'pop': 95696, 'tracts': 20},
'Franklin': {'pop': 11549, 'tracts': 4},
'Gadsden': {'pop': 46389, 'tracts': 9},
'Gilchrist': {'pop': 16939, 'tracts': 5},
'Glades': {'pop': 12884, 'tracts': 4},
'Gulf': {'pop': 15863, 'tracts': 3},
'Hamilton': {'pop': 14799, 'tracts': 3},
'Hardee': {'pop': 27731, 'tracts': 6},
'Hendry': {'pop': 39140, 'tracts': 7},
'Hernando': {'pop': 172778, 'tracts': 45},
'Highlands': {'pop': 98786, 'tracts': 27},
'Hillsborough': {'pop': 1229226, 'tracts': 321},
'Holmes': {'pop': 19927, 'tracts': 4},
'Indian River': {'pop': 138028, 'tracts': 30},
'Jackson': {'pop': 49746, 'tracts': 11},
'Jefferson': {'pop': 14761, 'tracts': 3},
'Lafayette': {'pop': 8870, 'tracts': 2},
'Lake': {'pop': 297052, 'tracts': 56},
'Lee': {'pop': 618754, 'tracts': 166},
'Leon': {'pop': 275487, 'tracts': 68},
'Levy': {'pop': 40801, 'tracts': 9},
'Liberty': {'pop': 8365, 'tracts': 2},
'Madison': {'pop': 19224, 'tracts': 5},
'Manatee': {'pop': 322833, 'tracts': 78},
'Marion': {'pop': 331298, 'tracts': 63},
'Martin': {'pop': 146318, 'tracts': 35},
'Miami-Dade': {'pop': 2496435, 'tracts': 519},
'Monroe': {'pop': 73090, 'tracts': 30},
'Nassau': {'pop': 73314, 'tracts': 12},
'Okaloosa': {'pop': 180822, 'tracts': 41},
'Okeechobee': {'pop': 39996, 'tracts': 12},
'Orange': {'pop': 1145956, 'tracts': 207},
'Osceola': {'pop': 268685, 'tracts': 41},
'Palm Beach': {'pop': 1320134, 'tracts': 337},
'Pasco': {'pop': 464697, 'tracts': 134},
'Pinellas': {'pop': 916542, 'tracts': 245},
'Polk': {'pop': 602095, 'tracts': 154},
'Putnam': {'pop': 74364, 'tracts': 17},
'Santa Rosa': {'pop': 151372, 'tracts': 25},
'Sarasota': {'pop': 379448, 'tracts': 94},
'Seminole': {'pop': 422718, 'tracts': 86},
'St. Johns': {'pop': 190039, 'tracts': 40},
'St. Lucie': {'pop': 277789, 'tracts': 44},
'Sumter': {'pop': 93420, 'tracts': 19},
'Suwannee': {'pop': 41551, 'tracts': 7},
'Taylor': {'pop': 22570, 'tracts': 4},
'Union': {'pop': 15535, 'tracts': 3},
'Volusia': {'pop': 494593, 'tracts': 113},
'Wakulla': {'pop': 30776, 'tracts': 4},
'Walton': {'pop': 55043, 'tracts': 11},
'Washington': {'pop': 24896, 'tracts': 7}},
'GA': {'Appling': {'pop': 18236, 'tracts': 5},
'Atkinson': {'pop': 8375, 'tracts': 3},
'Bacon': {'pop': 11096, 'tracts': 3},
'Baker': {'pop': 3451, 'tracts': 2},
'Baldwin': {'pop': 45720, 'tracts': 9},
'Banks': {'pop': 18395, 'tracts': 4},
'Barrow': {'pop': 69367, 'tracts': 18},
'Bartow': {'pop': 100157, 'tracts': 15},
'Ben Hill': {'pop': 17634, 'tracts': 5},
'Berrien': {'pop': 19286, 'tracts': 6},
'Bibb': {'pop': 155547, 'tracts': 44},
'Bleckley': {'pop': 13063, 'tracts': 3},
'Brantley': {'pop': 18411, 'tracts': 3},
'Brooks': {'pop': 16243, 'tracts': 5},
'Bryan': {'pop': 30233, 'tracts': 7},
'Bulloch': {'pop': 70217, 'tracts': 12},
'Burke': {'pop': 23316, 'tracts': 6},
'Butts': {'pop': 23655, 'tracts': 3},
'Calhoun': {'pop': 6694, 'tracts': 2},
'Camden': {'pop': 50513, 'tracts': 10},
'Candler': {'pop': 10998, 'tracts': 3},
'Carroll': {'pop': 110527, 'tracts': 17},
'Catoosa': {'pop': 63942, 'tracts': 11},
'Charlton': {'pop': 12171, 'tracts': 2},
'Chatham': {'pop': 265128, 'tracts': 72},
'Chattahoochee': {'pop': 11267, 'tracts': 5},
'Chattooga': {'pop': 26015, 'tracts': 6},
'Cherokee': {'pop': 214346, 'tracts': 26},
'Clarke': {'pop': 116714, 'tracts': 30},
'Clay': {'pop': 3183, 'tracts': 1},
'Clayton': {'pop': 259424, 'tracts': 50},
'Clinch': {'pop': 6798, 'tracts': 2},
'Cobb': {'pop': 688078, 'tracts': 120},
'Coffee': {'pop': 42356, 'tracts': 9},
'Colquitt': {'pop': 45498, 'tracts': 10},
'Columbia': {'pop': 124053, 'tracts': 20},
'Cook': {'pop': 17212, 'tracts': 4},
'Coweta': {'pop': 127317, 'tracts': 20},
'Crawford': {'pop': 12630, 'tracts': 3},
'Crisp': {'pop': 23439, 'tracts': 6},
'Dade': {'pop': 16633, 'tracts': 4},
'Dawson': {'pop': 22330, 'tracts': 3},
'DeKalb': {'pop': 691893, 'tracts': 145},
'Decatur': {'pop': 27842, 'tracts': 7},
'Dodge': {'pop': 21796, 'tracts': 6},
'Dooly': {'pop': 14918, 'tracts': 3},
'Dougherty': {'pop': 94565, 'tracts': 27},
'Douglas': {'pop': 132403, 'tracts': 20},
'Early': {'pop': 11008, 'tracts': 5},
'Echols': {'pop': 4034, 'tracts': 2},
'Effingham': {'pop': 52250, 'tracts': 10},
'Elbert': {'pop': 20166, 'tracts': 5},
'Emanuel': {'pop': 22598, 'tracts': 6},
'Evans': {'pop': 11000, 'tracts': 3},
'Fannin': {'pop': 23682, 'tracts': 5},
'Fayette': {'pop': 106567, 'tracts': 20},
'Floyd': {'pop': 96317, 'tracts': 20},
'Forsyth': {'pop': 175511, 'tracts': 45},
'Franklin': {'pop': 22084, 'tracts': 5},
'Fulton': {'pop': 920581, 'tracts': 204},
'Gilmer': {'pop': 28292, 'tracts': 5},
'Glascock': {'pop': 3082, 'tracts': 1},
'Glynn': {'pop': 79626, 'tracts': 15},
'Gordon': {'pop': 55186, 'tracts': 9},
'Grady': {'pop': 25011, 'tracts': 6},
'Greene': {'pop': 15994, 'tracts': 7},
'Gwinnett': {'pop': 805321, 'tracts': 113},
'Habersham': {'pop': 43041, 'tracts': 8},
'Hall': {'pop': 179684, 'tracts': 36},
'Hancock': {'pop': 9429, 'tracts': 2},
'Haralson': {'pop': 28780, 'tracts': 5},
'Harris': {'pop': 32024, 'tracts': 5},
'Hart': {'pop': 25213, 'tracts': 5},
'Heard': {'pop': 11834, 'tracts': 3},
'Henry': {'pop': 203922, 'tracts': 25},
'Houston': {'pop': 139900, 'tracts': 23},
'Irwin': {'pop': 9538, 'tracts': 2},
'Jackson': {'pop': 60485, 'tracts': 11},
'Jasper': {'pop': 13900, 'tracts': 3},
'Jeff Davis': {'pop': 15068, 'tracts': 3},
'Jefferson': {'pop': 16930, 'tracts': 4},
'Jenkins': {'pop': 8340, 'tracts': 2},
'Johnson': {'pop': 9980, 'tracts': 3},
'Jones': {'pop': 28669, 'tracts': 6},
'Lamar': {'pop': 18317, 'tracts': 3},
'Lanier': {'pop': 10078, 'tracts': 2},
'Laurens': {'pop': 48434, 'tracts': 13},
'Lee': {'pop': 28298, 'tracts': 5},
'Liberty': {'pop': 63453, 'tracts': 14},
'Lincoln': {'pop': 7996, 'tracts': 2},
'Long': {'pop': 14464, 'tracts': 3},
'Lowndes': {'pop': 109233, 'tracts': 25},
'Lumpkin': {'pop': 29966, 'tracts': 4},
'Macon': {'pop': 14740, 'tracts': 4},
'Madison': {'pop': 28120, 'tracts': 6},
'Marion': {'pop': 8742, 'tracts': 2},
'McDuffie': {'pop': 21875, 'tracts': 5},
'McIntosh': {'pop': 14333, 'tracts': 4},
'Meriwether': {'pop': 21992, 'tracts': 4},
'Miller': {'pop': 6125, 'tracts': 3},
'Mitchell': {'pop': 23498, 'tracts': 5},
'Monroe': {'pop': 26424, 'tracts': 5},
'Montgomery': {'pop': 9123, 'tracts': 3},
'Morgan': {'pop': 17868, 'tracts': 5},
'Murray': {'pop': 39628, 'tracts': 8},
'Muscogee': {'pop': 189885, 'tracts': 53},
'Newton': {'pop': 99958, 'tracts': 13},
'Oconee': {'pop': 32808, 'tracts': 6},
'Oglethorpe': {'pop': 14899, 'tracts': 4},
'Paulding': {'pop': 142324, 'tracts': 19},
'Peach': {'pop': 27695, 'tracts': 6},
'Pickens': {'pop': 29431, 'tracts': 6},
'Pierce': {'pop': 18758, 'tracts': 4},
'Pike': {'pop': 17869, 'tracts': 4},
'Polk': {'pop': 41475, 'tracts': 7},
'Pulaski': {'pop': 12010, 'tracts': 3},
'Putnam': {'pop': 21218, 'tracts': 5},
'Quitman': {'pop': 2513, 'tracts': 1},
'Rabun': {'pop': 16276, 'tracts': 5},
'Randolph': {'pop': 7719, 'tracts': 2},
'Richmond': {'pop': 200549, 'tracts': 47},
'Rockdale': {'pop': 85215, 'tracts': 15},
'Schley': {'pop': 5010, 'tracts': 2},
'Screven': {'pop': 14593, 'tracts': 5},
'Seminole': {'pop': 8729, 'tracts': 3},
'Spalding': {'pop': 64073, 'tracts': 12},
'Stephens': {'pop': 26175, 'tracts': 5},
'Stewart': {'pop': 6058, 'tracts': 2},
'Sumter': {'pop': 32819, 'tracts': 8},
'Talbot': {'pop': 6865, 'tracts': 3},
'Taliaferro': {'pop': 1717, 'tracts': 1},
'Tattnall': {'pop': 25520, 'tracts': 5},
'Taylor': {'pop': 8906, 'tracts': 3},
'Telfair': {'pop': 16500, 'tracts': 3},
'Terrell': {'pop': 9315, 'tracts': 4},
'Thomas': {'pop': 44720, 'tracts': 11},
'Tift': {'pop': 40118, 'tracts': 9},
'Toombs': {'pop': 27223, 'tracts': 6},
'Towns': {'pop': 10471, 'tracts': 3},
'Treutlen': {'pop': 6885, 'tracts': 2},
'Troup': {'pop': 67044, 'tracts': 14},
'Turner': {'pop': 8930, 'tracts': 2},
'Twiggs': {'pop': 9023, 'tracts': 2},
'Union': {'pop': 21356, 'tracts': 6},
'Upson': {'pop': 27153, 'tracts': 7},
'Walker': {'pop': 68756, 'tracts': 13},
'Walton': {'pop': 83768, 'tracts': 15},
'Ware': {'pop': 36312, 'tracts': 9},
'Warren': {'pop': 5834, 'tracts': 2},
'Washington': {'pop': 21187, 'tracts': 5},
'Wayne': {'pop': 30099, 'tracts': 6},
'Webster': {'pop': 2799, 'tracts': 2},
'Wheeler': {'pop': 7421, 'tracts': 2},
'White': {'pop': 27144, 'tracts': 5},
'Whitfield': {'pop': 102599, 'tracts': 18},
'Wilcox': {'pop': 9255, 'tracts': 4},
'Wilkes': {'pop': 10593, 'tracts': 4},
'Wilkinson': {'pop': 9563, 'tracts': 3},
'Worth': {'pop': 21679, 'tracts': 5}},
'HI': {'Hawaii': {'pop': 185079, 'tracts': 34},
'Honolulu': {'pop': 953207, 'tracts': 244},
'Kalawao': {'pop': 90, 'tracts': 1},
'Kauai': {'pop': 67091, 'tracts': 16},
'Maui': {'pop': 154834, 'tracts': 37}},
'IA': {'Adair': {'pop': 7682, 'tracts': 3},
'Adams': {'pop': 4029, 'tracts': 2},
'Allamakee': {'pop': 14330, 'tracts': 5},
'Appanoose': {'pop': 12887, 'tracts': 5},
'Audubon': {'pop': 6119, 'tracts': 3},
'Benton': {'pop': 26076, 'tracts': 7},
'Black Hawk': {'pop': 131090, 'tracts': 38},
'Boone': {'pop': 26306, 'tracts': 7},
'Bremer': {'pop': 24276, 'tracts': 8},
'Buchanan': {'pop': 20958, 'tracts': 6},
'Buena Vista': {'pop': 20260, 'tracts': 6},
'Butler': {'pop': 14867, 'tracts': 5},
'Calhoun': {'pop': 9670, 'tracts': 4},
'Carroll': {'pop': 20816, 'tracts': 6},
'Cass': {'pop': 13956, 'tracts': 5},
'Cedar': {'pop': 18499, 'tracts': 5},
'Cerro Gordo': {'pop': 44151, 'tracts': 11},
'Cherokee': {'pop': 12072, 'tracts': 4},
'Chickasaw': {'pop': 12439, 'tracts': 4},
'Clarke': {'pop': 9286, 'tracts': 3},
'Clay': {'pop': 16667, 'tracts': 4},
'Clayton': {'pop': 18129, 'tracts': 6},
'Clinton': {'pop': 49116, 'tracts': 12},
'Crawford': {'pop': 17096, 'tracts': 5},
'Dallas': {'pop': 66135, 'tracts': 15},
'Davis': {'pop': 8753, 'tracts': 2},
'Decatur': {'pop': 8457, 'tracts': 3},
'Delaware': {'pop': 17764, 'tracts': 4},
'Des Moines': {'pop': 40325, 'tracts': 11},
'Dickinson': {'pop': 16667, 'tracts': 5},
'Dubuque': {'pop': 93653, 'tracts': 26},
'Emmet': {'pop': 10302, 'tracts': 4},
'Fayette': {'pop': 20880, 'tracts': 7},
'Floyd': {'pop': 16303, 'tracts': 5},
'Franklin': {'pop': 10680, 'tracts': 3},
'Fremont': {'pop': 7441, 'tracts': 3},
'Greene': {'pop': 9336, 'tracts': 4},
'Grundy': {'pop': 12453, 'tracts': 4},
'Guthrie': {'pop': 10954, 'tracts': 3},
'Hamilton': {'pop': 15673, 'tracts': 5},
'Hancock': {'pop': 11341, 'tracts': 4},
'Hardin': {'pop': 17534, 'tracts': 6},
'Harrison': {'pop': 14928, 'tracts': 5},
'Henry': {'pop': 20145, 'tracts': 5},
'Howard': {'pop': 9566, 'tracts': 3},
'Humboldt': {'pop': 9815, 'tracts': 4},
'Ida': {'pop': 7089, 'tracts': 3},
'Iowa': {'pop': 16355, 'tracts': 4},
'Jackson': {'pop': 19848, 'tracts': 6},
'Jasper': {'pop': 36842, 'tracts': 9},
'Jefferson': {'pop': 16843, 'tracts': 4},
'Johnson': {'pop': 130882, 'tracts': 24},
'Jones': {'pop': 20638, 'tracts': 5},
'Keokuk': {'pop': 10511, 'tracts': 4},
'Kossuth': {'pop': 15543, 'tracts': 6},
'Lee': {'pop': 35862, 'tracts': 11},
'Linn': {'pop': 211226, 'tracts': 45},
'Louisa': {'pop': 11387, 'tracts': 3},
'Lucas': {'pop': 8898, 'tracts': 4},
'Lyon': {'pop': 11581, 'tracts': 3},
'Madison': {'pop': 15679, 'tracts': 3},
'Mahaska': {'pop': 22381, 'tracts': 7},
'Marion': {'pop': 33309, 'tracts': 8},
'Marshall': {'pop': 40648, 'tracts': 10},
'Mills': {'pop': 15059, 'tracts': 5},
'Mitchell': {'pop': 10776, 'tracts': 3},
'Monona': {'pop': 9243, 'tracts': 4},
'Monroe': {'pop': 7970, 'tracts': 3},
'Montgomery': {'pop': 10740, 'tracts': 4},
'Muscatine': {'pop': 42745, 'tracts': 10},
"O'Brien": {'pop': 14398, 'tracts': 4},
'Osceola': {'pop': 6462, 'tracts': 2},
'Page': {'pop': 15932, 'tracts': 6},
'Palo Alto': {'pop': 9421, 'tracts': 4},
'Plymouth': {'pop': 24986, 'tracts': 6},
'Pocahontas': {'pop': 7310, 'tracts': 3},
'Polk': {'pop': 430640, 'tracts': 98},
'Pottawattamie': {'pop': 93158, 'tracts': 30},
'Poweshiek': {'pop': 18914, 'tracts': 5},
'Ringgold': {'pop': 5131, 'tracts': 2},
'Sac': {'pop': 10350, 'tracts': 4},
'Scott': {'pop': 165224, 'tracts': 47},
'Shelby': {'pop': 12167, 'tracts': 4},
'Sioux': {'pop': 33704, 'tracts': 7},
'Story': {'pop': 89542, 'tracts': 20},
'Tama': {'pop': 17767, 'tracts': 6},
'Taylor': {'pop': 6317, 'tracts': 3},
'Union': {'pop': 12534, 'tracts': 4},
'Van Buren': {'pop': 7570, 'tracts': 2},
'Wapello': {'pop': 35625, 'tracts': 11},
'Warren': {'pop': 46225, 'tracts': 12},
'Washington': {'pop': 21704, 'tracts': 5},
'Wayne': {'pop': 6403, 'tracts': 3},
'Webster': {'pop': 38013, 'tracts': 12},
'Winnebago': {'pop': 10866, 'tracts': 3},
'Winneshiek': {'pop': 21056, 'tracts': 5},
'Woodbury': {'pop': 102172, 'tracts': 26},
'Worth': {'pop': 7598, 'tracts': 3},
'Wright': {'pop': 13229, 'tracts': 5}},
'ID': {'Ada': {'pop': 392365, 'tracts': 59},
'Adams': {'pop': 3976, 'tracts': 2},
'Bannock': {'pop': 82839, 'tracts': 22},
'Bear Lake': {'pop': 5986, 'tracts': 2},
'Benewah': {'pop': 9285, 'tracts': 2},
'Bingham': {'pop': 45607, 'tracts': 8},
'Blaine': {'pop': 21376, 'tracts': 4},
'Boise': {'pop': 7028, 'tracts': 1},
'Bonner': {'pop': 40877, 'tracts': 9},
'Bonneville': {'pop': 104234, 'tracts': 21},
'Boundary': {'pop': 10972, 'tracts': 2},
'Butte': {'pop': 2891, 'tracts': 1},
'Camas': {'pop': 1117, 'tracts': 1},
'Canyon': {'pop': 188923, 'tracts': 29},
'Caribou': {'pop': 6963, 'tracts': 2},
'Cassia': {'pop': 22952, 'tracts': 6},
'Clark': {'pop': 982, 'tracts': 1},
'Clearwater': {'pop': 8761, 'tracts': 2},
'Custer': {'pop': 4368, 'tracts': 1},
'Elmore': {'pop': 27038, 'tracts': 5},
'Franklin': {'pop': 12786, 'tracts': 2},
'Fremont': {'pop': 13242, 'tracts': 3},
'Gem': {'pop': 16719, 'tracts': 3},
'Gooding': {'pop': 15464, 'tracts': 2},
'Idaho': {'pop': 16267, 'tracts': 5},
'Jefferson': {'pop': 26140, 'tracts': 4},
'Jerome': {'pop': 22374, 'tracts': 5},
'Kootenai': {'pop': 138494, 'tracts': 25},
'Latah': {'pop': 37244, 'tracts': 7},
'Lemhi': {'pop': 7936, 'tracts': 3},
'Lewis': {'pop': 3821, 'tracts': 3},
'Lincoln': {'pop': 5208, 'tracts': 1},
'Madison': {'pop': 37536, 'tracts': 6},
'Minidoka': {'pop': 20069, 'tracts': 5},
'Nez Perce': {'pop': 39265, 'tracts': 10},
'Oneida': {'pop': 4286, 'tracts': 1},
'Owyhee': {'pop': 11526, 'tracts': 3},
'Payette': {'pop': 22623, 'tracts': 4},
'Power': {'pop': 7817, 'tracts': 2},
'Shoshone': {'pop': 12765, 'tracts': 3},
'Teton': {'pop': 10170, 'tracts': 1},
'Twin Falls': {'pop': 77230, 'tracts': 14},
'Valley': {'pop': 9862, 'tracts': 3},
'Washington': {'pop': 10198, 'tracts': 3}},
'IL': {'Adams': {'pop': 67103, 'tracts': 18},
'Alexander': {'pop': 8238, 'tracts': 4},
'Bond': {'pop': 17768, 'tracts': 4},
'Boone': {'pop': 54165, 'tracts': 7},
'Brown': {'pop': 6937, 'tracts': 2},
'Bureau': {'pop': 34978, 'tracts': 10},
'Calhoun': {'pop': 5089, 'tracts': 2},
'Carroll': {'pop': 15387, 'tracts': 6},
'Cass': {'pop': 13642, 'tracts': 5},
'Champaign': {'pop': 201081, 'tracts': 43},
'Christian': {'pop': 34800, 'tracts': 10},
'Clark': {'pop': 16335, 'tracts': 4},
'Clay': {'pop': 13815, 'tracts': 4},
'Clinton': {'pop': 37762, 'tracts': 8},
'Coles': {'pop': 53873, 'tracts': 12},
'Cook': {'pop': 5194675, 'tracts': 1318},
'Crawford': {'pop': 19817, 'tracts': 6},
'Cumberland': {'pop': 11048, 'tracts': 3},
'De Witt': {'pop': 16561, 'tracts': 5},
'DeKalb': {'pop': 105160, 'tracts': 21},
'Douglas': {'pop': 19980, 'tracts': 5},
'DuPage': {'pop': 916924, 'tracts': 216},
'Edgar': {'pop': 18576, 'tracts': 5},
'Edwards': {'pop': 6721, 'tracts': 3},
'Effingham': {'pop': 34242, 'tracts': 8},
'Fayette': {'pop': 22140, 'tracts': 7},
'Ford': {'pop': 14081, 'tracts': 5},
'Franklin': {'pop': 39561, 'tracts': 12},
'Fulton': {'pop': 37069, 'tracts': 12},
'Gallatin': {'pop': 5589, 'tracts': 2},
'Greene': {'pop': 13886, 'tracts': 5},
'Grundy': {'pop': 50063, 'tracts': 10},
'Hamilton': {'pop': 8457, 'tracts': 3},
'Hancock': {'pop': 19104, 'tracts': 7},
'Hardin': {'pop': 4320, 'tracts': 2},
'Henderson': {'pop': 7331, 'tracts': 3},
'Henry': {'pop': 50486, 'tracts': 13},
'Iroquois': {'pop': 29718, 'tracts': 9},
'Jackson': {'pop': 60218, 'tracts': 14},
'Jasper': {'pop': 9698, 'tracts': 3},
'Jefferson': {'pop': 38827, 'tracts': 11},
'Jersey': {'pop': 22985, 'tracts': 6},
'Jo Daviess': {'pop': 22678, 'tracts': 6},
'Johnson': {'pop': 12582, 'tracts': 4},
'Kane': {'pop': 515269, 'tracts': 82},
'Kankakee': {'pop': 113449, 'tracts': 29},
'Kendall': {'pop': 114736, 'tracts': 10},
'Knox': {'pop': 52919, 'tracts': 16},
'La Salle': {'pop': 113924, 'tracts': 28},
'Lake': {'pop': 703462, 'tracts': 153},
'Lawrence': {'pop': 16833, 'tracts': 5},
'Lee': {'pop': 36031, 'tracts': 9},
'Livingston': {'pop': 38950, 'tracts': 10},
'Logan': {'pop': 30305, 'tracts': 8},
'Macon': {'pop': 110768, 'tracts': 34},
'Macoupin': {'pop': 47765, 'tracts': 13},
'Madison': {'pop': 269282, 'tracts': 61},
'Marion': {'pop': 39437, 'tracts': 12},
'Marshall': {'pop': 12640, 'tracts': 5},
'Mason': {'pop': 14666, 'tracts': 6},
'Massac': {'pop': 15429, 'tracts': 4},
'McDonough': {'pop': 32612, 'tracts': 10},
'McHenry': {'pop': 308760, 'tracts': 52},
'McLean': {'pop': 169572, 'tracts': 41},
'Menard': {'pop': 12705, 'tracts': 3},
'Mercer': {'pop': 16434, 'tracts': 4},
'Monroe': {'pop': 32957, 'tracts': 6},
'Montgomery': {'pop': 30104, 'tracts': 8},
'Morgan': {'pop': 35547, 'tracts': 10},
'Moultrie': {'pop': 14846, 'tracts': 4},
'Ogle': {'pop': 53497, 'tracts': 11},
'Peoria': {'pop': 186494, 'tracts': 48},
'Perry': {'pop': 22350, 'tracts': 6},
'Piatt': {'pop': 16729, 'tracts': 4},
'Pike': {'pop': 16430, 'tracts': 5},
'Pope': {'pop': 4470, 'tracts': 2},
'Pulaski': {'pop': 6161, 'tracts': 2},
'Putnam': {'pop': 6006, 'tracts': 2},
'Randolph': {'pop': 33476, 'tracts': 9},
'Richland': {'pop': 16233, 'tracts': 5},
'Rock Island': {'pop': 147546, 'tracts': 40},
'Saline': {'pop': 24913, 'tracts': 9},
'Sangamon': {'pop': 197465, 'tracts': 53},
'Schuyler': {'pop': 7544, 'tracts': 3},
'Scott': {'pop': 5355, 'tracts': 2},
'Shelby': {'pop': 22363, 'tracts': 6},
'St. Clair': {'pop': 270056, 'tracts': 60},
'Stark': {'pop': 5994, 'tracts': 2},
'Stephenson': {'pop': 47711, 'tracts': 13},
'Tazewell': {'pop': 135394, 'tracts': 30},
'Union': {'pop': 17808, 'tracts': 5},
'Vermilion': {'pop': 81625, 'tracts': 24},
'Wabash': {'pop': 11947, 'tracts': 4},
'Warren': {'pop': 17707, 'tracts': 5},
'Washington': {'pop': 14716, 'tracts': 4},
'Wayne': {'pop': 16760, 'tracts': 5},
'White': {'pop': 14665, 'tracts': 5},
'Whiteside': {'pop': 58498, 'tracts': 18},
'Will': {'pop': 677560, 'tracts': 152},
'Williamson': {'pop': 66357, 'tracts': 15},
'Winnebago': {'pop': 295266, 'tracts': 77},
'Woodford': {'pop': 38664, 'tracts': 9}},
'IN': {'Adams': {'pop': 34387, 'tracts': 7},
'Allen': {'pop': 355329, 'tracts': 96},
'Bartholomew': {'pop': 76794, 'tracts': 15},
'Benton': {'pop': 8854, 'tracts': 3},
'Blackford': {'pop': 12766, 'tracts': 4},
'Boone': {'pop': 56640, 'tracts': 10},
'Brown': {'pop': 15242, 'tracts': 4},
'Carroll': {'pop': 20155, 'tracts': 7},
'Cass': {'pop': 38966, 'tracts': 11},
'Clark': {'pop': 110232, 'tracts': 26},
'Clay': {'pop': 26890, 'tracts': 6},
'Clinton': {'pop': 33224, 'tracts': 8},
'Crawford': {'pop': 10713, 'tracts': 3},
'Daviess': {'pop': 31648, 'tracts': 7},
'DeKalb': {'pop': 42223, 'tracts': 9},
'Dearborn': {'pop': 50047, 'tracts': 10},
'Decatur': {'pop': 25740, 'tracts': 6},
'Delaware': {'pop': 117671, 'tracts': 30},
'Dubois': {'pop': 41889, 'tracts': 7},
'Elkhart': {'pop': 197559, 'tracts': 36},
'Fayette': {'pop': 24277, 'tracts': 7},
'Floyd': {'pop': 74578, 'tracts': 20},
'Fountain': {'pop': 17240, 'tracts': 5},
'Franklin': {'pop': 23087, 'tracts': 5},
'Fulton': {'pop': 20836, 'tracts': 6},
'Gibson': {'pop': 33503, 'tracts': 7},
'Grant': {'pop': 70061, 'tracts': 16},
'Greene': {'pop': 33165, 'tracts': 9},
'Hamilton': {'pop': 274569, 'tracts': 39},
'Hancock': {'pop': 70002, 'tracts': 10},
'Harrison': {'pop': 39364, 'tracts': 6},
'Hendricks': {'pop': 145448, 'tracts': 21},
'Henry': {'pop': 49462, 'tracts': 13},
'Howard': {'pop': 82752, 'tracts': 20},
'Huntington': {'pop': 37124, 'tracts': 9},
'Jackson': {'pop': 42376, 'tracts': 10},
'Jasper': {'pop': 33478, 'tracts': 8},
'Jay': {'pop': 21253, 'tracts': 7},
'Jefferson': {'pop': 32428, 'tracts': 7},
'Jennings': {'pop': 28525, 'tracts': 6},
'Johnson': {'pop': 139654, 'tracts': 22},
'Knox': {'pop': 38440, 'tracts': 10},
'Kosciusko': {'pop': 77358, 'tracts': 19},
'LaGrange': {'pop': 37128, 'tracts': 8},
'LaPorte': {'pop': 111467, 'tracts': 28},
'Lake': {'pop': 496005, 'tracts': 117},
'Lawrence': {'pop': 46134, 'tracts': 10},
'Madison': {'pop': 131636, 'tracts': 37},
'Marion': {'pop': 903393, 'tracts': 224},
'Marshall': {'pop': 47051, 'tracts': 12},
'Martin': {'pop': 10334, 'tracts': 3},
'Miami': {'pop': 36903, 'tracts': 10},
'Monroe': {'pop': 137974, 'tracts': 31},
'Montgomery': {'pop': 38124, 'tracts': 9},
'Morgan': {'pop': 68894, 'tracts': 13},
'Newton': {'pop': 14244, 'tracts': 4},
'Noble': {'pop': 47536, 'tracts': 10},
'Ohio': {'pop': 6128, 'tracts': 2},
'Orange': {'pop': 19840, 'tracts': 6},
'Owen': {'pop': 21575, 'tracts': 5},
'Parke': {'pop': 17339, 'tracts': 4},
'Perry': {'pop': 19338, 'tracts': 5},
'Pike': {'pop': 12845, 'tracts': 4},
'Porter': {'pop': 164343, 'tracts': 32},
'Posey': {'pop': 25910, 'tracts': 7},
'Pulaski': {'pop': 13402, 'tracts': 4},
'Putnam': {'pop': 37963, 'tracts': 7},
'Randolph': {'pop': 26171, 'tracts': 8},
'Ripley': {'pop': 28818, 'tracts': 6},
'Rush': {'pop': 17392, 'tracts': 5},
'Scott': {'pop': 24181, 'tracts': 5},
'Shelby': {'pop': 44436, 'tracts': 10},
'Spencer': {'pop': 20952, 'tracts': 5},
'St. Joseph': {'pop': 266931, 'tracts': 75},
'Starke': {'pop': 23363, 'tracts': 7},
'Steuben': {'pop': 34185, 'tracts': 9},
'Sullivan': {'pop': 21475, 'tracts': 5},
'Switzerland': {'pop': 10613, 'tracts': 3},
'Tippecanoe': {'pop': 172780, 'tracts': 37},
'Tipton': {'pop': 15936, 'tracts': 4},
'Union': {'pop': 7516, 'tracts': 2},
'Vanderburgh': {'pop': 179703, 'tracts': 49},
'Vermillion': {'pop': 16212, 'tracts': 5},
'Vigo': {'pop': 107848, 'tracts': 28},
'Wabash': {'pop': 32888, 'tracts': 8},
'Warren': {'pop': 8508, 'tracts': 2},
'Warrick': {'pop': 59689, 'tracts': 11},
'Washington': {'pop': 28262, 'tracts': 6},
'Wayne': {'pop': 68917, 'tracts': 17},
'Wells': {'pop': 27636, 'tracts': 7},
'White': {'pop': 24643, 'tracts': 8},
'Whitley': {'pop': 33292, 'tracts': 7}},
'KS': {'Allen': {'pop': 13371, 'tracts': 5},
'Anderson': {'pop': 8102, 'tracts': 2},
'Atchison': {'pop': 16924, 'tracts': 4},
'Barber': {'pop': 4861, 'tracts': 2},
'Barton': {'pop': 27674, 'tracts': 8},
'Bourbon': {'pop': 15173, 'tracts': 5},
'Brown': {'pop': 9984, 'tracts': 3},
'Butler': {'pop': 65880, 'tracts': 13},
'Chase': {'pop': 2790, 'tracts': 1},
'Chautauqua': {'pop': 3669, 'tracts': 1},
'Cherokee': {'pop': 21603, 'tracts': 6},
'Cheyenne': {'pop': 2726, 'tracts': 1},
'Clark': {'pop': 2215, 'tracts': 1},
'Clay': {'pop': 8535, 'tracts': 2},
'Cloud': {'pop': 9533, 'tracts': 4},
'Coffey': {'pop': 8601, 'tracts': 3},
'Comanche': {'pop': 1891, 'tracts': 1},
'Cowley': {'pop': 36311, 'tracts': 11},
'Crawford': {'pop': 39134, 'tracts': 11},
'Decatur': {'pop': 2961, 'tracts': 2},
'Dickinson': {'pop': 19754, 'tracts': 6},
'Doniphan': {'pop': 7945, 'tracts': 3},
'Douglas': {'pop': 110826, 'tracts': 22},
'Edwards': {'pop': 3037, 'tracts': 2},
'Elk': {'pop': 2882, 'tracts': 1},
'Ellis': {'pop': 28452, 'tracts': 6},
'Ellsworth': {'pop': 6497, 'tracts': 2},
'Finney': {'pop': 36776, 'tracts': 12},
'Ford': {'pop': 33848, 'tracts': 7},
'Franklin': {'pop': 25992, 'tracts': 5},
'Geary': {'pop': 34362, 'tracts': 8},
'Gove': {'pop': 2695, 'tracts': 2},
'Graham': {'pop': 2597, 'tracts': 2},
'Grant': {'pop': 7829, 'tracts': 2},
'Gray': {'pop': 6006, 'tracts': 2},
'Greeley': {'pop': 1247, 'tracts': 1},
'Greenwood': {'pop': 6689, 'tracts': 3},
'Hamilton': {'pop': 2690, 'tracts': 1},
'Harper': {'pop': 6034, 'tracts': 3},
'Harvey': {'pop': 34684, 'tracts': 6},
'Haskell': {'pop': 4256, 'tracts': 1},
'Hodgeman': {'pop': 1916, 'tracts': 1},
'Jackson': {'pop': 13462, 'tracts': 3},
'Jefferson': {'pop': 19126, 'tracts': 4},
'Jewell': {'pop': 3077, 'tracts': 2},
'Johnson': {'pop': 544179, 'tracts': 130},
'Kearny': {'pop': 3977, 'tracts': 1},
'Kingman': {'pop': 7858, 'tracts': 3},
'Kiowa': {'pop': 2553, 'tracts': 1},
'Labette': {'pop': 21607, 'tracts': 8},
'Lane': {'pop': 1750, 'tracts': 1},
'Leavenworth': {'pop': 76227, 'tracts': 16},
'Lincoln': {'pop': 3241, 'tracts': 1},
'Linn': {'pop': 9656, 'tracts': 2},
'Logan': {'pop': 2756, 'tracts': 1},
'Lyon': {'pop': 33690, 'tracts': 8},
'Marion': {'pop': 12660, 'tracts': 4},
'Marshall': {'pop': 10117, 'tracts': 4},
'McPherson': {'pop': 29180, 'tracts': 7},
'Meade': {'pop': 4575, 'tracts': 2},
'Miami': {'pop': 32787, 'tracts': 8},
'Mitchell': {'pop': 6373, 'tracts': 2},
'Montgomery': {'pop': 35471, 'tracts': 13},
'Morris': {'pop': 5923, 'tracts': 2},
'Morton': {'pop': 3233, 'tracts': 1},
'Nemaha': {'pop': 10178, 'tracts': 3},
'Neosho': {'pop': 16512, 'tracts': 5},
'Ness': {'pop': 3107, 'tracts': 2},
'Norton': {'pop': 5671, 'tracts': 1},
'Osage': {'pop': 16295, 'tracts': 5},
'Osborne': {'pop': 3858, 'tracts': 1},
'Ottawa': {'pop': 6091, 'tracts': 2},
'Pawnee': {'pop': 6973, 'tracts': 2},
'Phillips': {'pop': 5642, 'tracts': 3},
'Pottawatomie': {'pop': 21604, 'tracts': 4},
'Pratt': {'pop': 9656, 'tracts': 3},
'Rawlins': {'pop': 2519, 'tracts': 1},
'Reno': {'pop': 64511, 'tracts': 17},
'Republic': {'pop': 4980, 'tracts': 3},
'Rice': {'pop': 10083, 'tracts': 3},
'Riley': {'pop': 71115, 'tracts': 14},
'Rooks': {'pop': 5181, 'tracts': 2},
'Rush': {'pop': 3307, 'tracts': 2},
'Russell': {'pop': 6970, 'tracts': 2},
'Saline': {'pop': 55606, 'tracts': 12},
'Scott': {'pop': 4936, 'tracts': 1},
'Sedgwick': {'pop': 498365, 'tracts': 124},
'Seward': {'pop': 22952, 'tracts': 5},
'Shawnee': {'pop': 177934, 'tracts': 43},
'Sheridan': {'pop': 2556, 'tracts': 2},
'Sherman': {'pop': 6010, 'tracts': 2},
'Smith': {'pop': 3853, 'tracts': 2},
'Stafford': {'pop': 4437, 'tracts': 2},
'Stanton': {'pop': 2235, 'tracts': 1},
'Stevens': {'pop': 5724, 'tracts': 2},
'Sumner': {'pop': 24132, 'tracts': 6},
'Thomas': {'pop': 7900, 'tracts': 2},
'Trego': {'pop': 3001, 'tracts': 1},
'Wabaunsee': {'pop': 7053, 'tracts': 2},
'Wallace': {'pop': 1485, 'tracts': 1},
'Washington': {'pop': 5799, 'tracts': 2},
'Wichita': {'pop': 2234, 'tracts': 1},
'Wilson': {'pop': 9409, 'tracts': 4},
'Woodson': {'pop': 3309, 'tracts': 2},
'Wyandotte': {'pop': 157505, 'tracts': 70}},
'KY': {'Adair': {'pop': 18656, 'tracts': 7},
'Allen': {'pop': 19956, 'tracts': 6},
'Anderson': {'pop': 21421, 'tracts': 5},
'Ballard': {'pop': 8249, 'tracts': 3},
'Barren': {'pop': 42173, 'tracts': 10},
'Bath': {'pop': 11591, 'tracts': 3},
'Bell': {'pop': 28691, 'tracts': 9},
'Boone': {'pop': 118811, 'tracts': 22},
'Bourbon': {'pop': 19985, 'tracts': 6},
'Boyd': {'pop': 49542, 'tracts': 13},
'Boyle': {'pop': 28432, 'tracts': 7},
'Bracken': {'pop': 8488, 'tracts': 3},
'Breathitt': {'pop': 13878, 'tracts': 7},
'Breckinridge': {'pop': 20059, 'tracts': 6},
'Bullitt': {'pop': 74319, 'tracts': 18},
'Butler': {'pop': 12690, 'tracts': 5},
'Caldwell': {'pop': 12984, 'tracts': 3},
'Calloway': {'pop': 37191, 'tracts': 9},
'Campbell': {'pop': 90336, 'tracts': 25},
'Carlisle': {'pop': 5104, 'tracts': 3},
'Carroll': {'pop': 10811, 'tracts': 3},
'Carter': {'pop': 27720, 'tracts': 7},
'Casey': {'pop': 15955, 'tracts': 5},
'Christian': {'pop': 73955, 'tracts': 19},
'Clark': {'pop': 35613, 'tracts': 10},
'Clay': {'pop': 21730, 'tracts': 6},
'Clinton': {'pop': 10272, 'tracts': 3},
'Crittenden': {'pop': 9315, 'tracts': 4},
'Cumberland': {'pop': 6856, 'tracts': 2},
'Daviess': {'pop': 96656, 'tracts': 23},
'Edmonson': {'pop': 12161, 'tracts': 4},
'Elliott': {'pop': 7852, 'tracts': 2},
'Estill': {'pop': 14672, 'tracts': 4},
'Fayette': {'pop': 295803, 'tracts': 82},
'Fleming': {'pop': 14348, 'tracts': 4},
'Floyd': {'pop': 39451, 'tracts': 10},
'Franklin': {'pop': 49285, 'tracts': 11},
'Fulton': {'pop': 6813, 'tracts': 2},
'Gallatin': {'pop': 8589, 'tracts': 2},
'Garrard': {'pop': 16912, 'tracts': 4},
'Grant': {'pop': 24662, 'tracts': 4},
'Graves': {'pop': 37121, 'tracts': 9},
'Grayson': {'pop': 25746, 'tracts': 7},
'Green': {'pop': 11258, 'tracts': 4},
'Greenup': {'pop': 36910, 'tracts': 9},
'Hancock': {'pop': 8565, 'tracts': 3},
'Hardin': {'pop': 105543, 'tracts': 22},
'Harlan': {'pop': 29278, 'tracts': 11},
'Harrison': {'pop': 18846, 'tracts': 5},
'Hart': {'pop': 18199, 'tracts': 5},
'Henderson': {'pop': 46250, 'tracts': 11},
'Henry': {'pop': 15416, 'tracts': 5},
'Hickman': {'pop': 4902, 'tracts': 1},
'Hopkins': {'pop': 46920, 'tracts': 12},
'Jackson': {'pop': 13494, 'tracts': 3},
'Jefferson': {'pop': 741096, 'tracts': 191},
'Jessamine': {'pop': 48586, 'tracts': 9},
'Johnson': {'pop': 23356, 'tracts': 6},
'Kenton': {'pop': 159720, 'tracts': 41},
'Knott': {'pop': 16346, 'tracts': 5},
'Knox': {'pop': 31883, 'tracts': 8},
'Larue': {'pop': 14193, 'tracts': 4},
'Laurel': {'pop': 58849, 'tracts': 13},
'Lawrence': {'pop': 15860, 'tracts': 5},
'Lee': {'pop': 7887, 'tracts': 3},
'Leslie': {'pop': 11310, 'tracts': 3},
'Letcher': {'pop': 24519, 'tracts': 7},
'Lewis': {'pop': 13870, 'tracts': 4},
'Lincoln': {'pop': 24742, 'tracts': 6},
'Livingston': {'pop': 9519, 'tracts': 2},
'Logan': {'pop': 26835, 'tracts': 6},
'Lyon': {'pop': 8314, 'tracts': 3},
'Madison': {'pop': 82916, 'tracts': 19},
'Magoffin': {'pop': 13333, 'tracts': 4},
'Marion': {'pop': 19820, 'tracts': 6},
'Marshall': {'pop': 31448, 'tracts': 6},
'Martin': {'pop': 12929, 'tracts': 3},
'Mason': {'pop': 17490, 'tracts': 5},
'McCracken': {'pop': 65565, 'tracts': 17},
'McCreary': {'pop': 18306, 'tracts': 4},
'McLean': {'pop': 9531, 'tracts': 3},
'Meade': {'pop': 28602, 'tracts': 8},
'Menifee': {'pop': 6306, 'tracts': 2},
'Mercer': {'pop': 21331, 'tracts': 5},
'Metcalfe': {'pop': 10099, 'tracts': 3},
'Monroe': {'pop': 10963, 'tracts': 4},
'Montgomery': {'pop': 26499, 'tracts': 6},
'Morgan': {'pop': 13923, 'tracts': 5},
'Muhlenberg': {'pop': 31499, 'tracts': 9},
'Nelson': {'pop': 43437, 'tracts': 9},
'Nicholas': {'pop': 7135, 'tracts': 2},
'Ohio': {'pop': 23842, 'tracts': 7},
'Oldham': {'pop': 60316, 'tracts': 14},
'Owen': {'pop': 10841, 'tracts': 3},
'Owsley': {'pop': 4755, 'tracts': 2},
'Pendleton': {'pop': 14877, 'tracts': 3},
'Perry': {'pop': 28712, 'tracts': 8},
'Pike': {'pop': 65024, 'tracts': 19},
'Powell': {'pop': 12613, 'tracts': 2},
'Pulaski': {'pop': 63063, 'tracts': 14},
'Robertson': {'pop': 2282, 'tracts': 1},
'Rockcastle': {'pop': 17056, 'tracts': 4},
'Rowan': {'pop': 23333, 'tracts': 4},
'Russell': {'pop': 17565, 'tracts': 5},
'Scott': {'pop': 47173, 'tracts': 14},
'Shelby': {'pop': 42074, 'tracts': 9},
'Simpson': {'pop': 17327, 'tracts': 4},
'Spencer': {'pop': 17061, 'tracts': 4},
'Taylor': {'pop': 24512, 'tracts': 5},
'Todd': {'pop': 12460, 'tracts': 4},
'Trigg': {'pop': 14339, 'tracts': 5},
'Trimble': {'pop': 8809, 'tracts': 2},
'Union': {'pop': 15007, 'tracts': 4},
'Warren': {'pop': 113792, 'tracts': 24},
'Washington': {'pop': 11717, 'tracts': 3},
'Wayne': {'pop': 20813, 'tracts': 5},
'Webster': {'pop': 13621, 'tracts': 4},
'Whitley': {'pop': 35637, 'tracts': 8},
'Wolfe': {'pop': 7355, 'tracts': 2},
'Woodford': {'pop': 24939, 'tracts': 8}},
'LA': {'Acadia': {'pop': 61773, 'tracts': 12},
'Allen': {'pop': 25764, 'tracts': 5},
'Ascension': {'pop': 107215, 'tracts': 14},
'Assumption': {'pop': 23421, 'tracts': 6},
'Avoyelles': {'pop': 42073, 'tracts': 9},
'Beauregard': {'pop': 35654, 'tracts': 7},
'Bienville': {'pop': 14353, 'tracts': 5},
'Bossier': {'pop': 116979, 'tracts': 22},
'Caddo': {'pop': 254969, 'tracts': 64},
'Calcasieu': {'pop': 192768, 'tracts': 44},
'Caldwell': {'pop': 10132, 'tracts': 3},
'Cameron': {'pop': 6839, 'tracts': 3},
'Catahoula': {'pop': 10407, 'tracts': 3},
'Claiborne': {'pop': 17195, 'tracts': 5},
'Concordia': {'pop': 20822, 'tracts': 5},
'De Soto': {'pop': 26656, 'tracts': 7},
'East Baton Rouge': {'pop': 440171, 'tracts': 92},
'East Carroll': {'pop': 7759, 'tracts': 3},
'East Feliciana': {'pop': 20267, 'tracts': 5},
'Evangeline': {'pop': 33984, 'tracts': 8},
'Franklin': {'pop': 20767, 'tracts': 6},
'Grant': {'pop': 22309, 'tracts': 5},
'Iberia': {'pop': 73240, 'tracts': 15},
'Iberville': {'pop': 33387, 'tracts': 7},
'Jackson': {'pop': 16274, 'tracts': 5},
'Jefferson': {'pop': 432552, 'tracts': 127},
'Jefferson Davis': {'pop': 31594, 'tracts': 7},
'La Salle': {'pop': 14890, 'tracts': 3},
'Lafayette': {'pop': 221578, 'tracts': 43},
'Lafourche': {'pop': 96318, 'tracts': 23},
'Lincoln': {'pop': 46735, 'tracts': 10},
'Livingston': {'pop': 128026, 'tracts': 17},
'Madison': {'pop': 12093, 'tracts': 5},
'Morehouse': {'pop': 27979, 'tracts': 8},
'Natchitoches': {'pop': 39566, 'tracts': 9},
'Orleans': {'pop': 343829, 'tracts': 177},
'Ouachita': {'pop': 153720, 'tracts': 40},
'Plaquemines': {'pop': 23042, 'tracts': 9},
'Pointe Coupee': {'pop': 22802, 'tracts': 6},
'Rapides': {'pop': 131613, 'tracts': 33},
'Red River': {'pop': 9091, 'tracts': 2},
'Richland': {'pop': 20725, 'tracts': 6},
'Sabine': {'pop': 24233, 'tracts': 7},
'St. Bernard': {'pop': 35897, 'tracts': 18},
'St. Charles': {'pop': 52780, 'tracts': 13},
'St. Helena': {'pop': 11203, 'tracts': 2},
'St. James': {'pop': 22102, 'tracts': 7},
'St. John the Baptist': {'pop': 45924, 'tracts': 11},
'St. Landry': {'pop': 83384, 'tracts': 19},
'St. Martin': {'pop': 52160, 'tracts': 11},
'St. Mary': {'pop': 54650, 'tracts': 16},
'St. Tammany': {'pop': 233740, 'tracts': 43},
'Tangipahoa': {'pop': 121097, 'tracts': 20},
'Tensas': {'pop': 5252, 'tracts': 3},
'Terrebonne': {'pop': 111860, 'tracts': 21},
'Union': {'pop': 22721, 'tracts': 6},
'Vermilion': {'pop': 57999, 'tracts': 12},
'Vernon': {'pop': 52334, 'tracts': 12},
'Washington': {'pop': 47168, 'tracts': 11},
'Webster': {'pop': 41207, 'tracts': 11},
'West Baton Rouge': {'pop': 23788, 'tracts': 5},
'West Carroll': {'pop': 11604, 'tracts': 3},
'West Feliciana': {'pop': 15625, 'tracts': 3},
'Winn': {'pop': 15313, 'tracts': 4}},
'MA': {'Barnstable': {'pop': 215888, 'tracts': 57},
'Berkshire': {'pop': 131219, 'tracts': 39},
'Bristol': {'pop': 548285, 'tracts': 126},
'Dukes': {'pop': 16535, 'tracts': 4},
'Essex': {'pop': 743159, 'tracts': 163},
'Franklin': {'pop': 71372, 'tracts': 18},
'Hampden': {'pop': 463490, 'tracts': 103},
'Hampshire': {'pop': 158080, 'tracts': 36},
'Middlesex': {'pop': 1503085, 'tracts': 318},
'Nantucket': {'pop': 10172, 'tracts': 6},
'Norfolk': {'pop': 670850, 'tracts': 130},
'Plymouth': {'pop': 494919, 'tracts': 100},
'Suffolk': {'pop': 722023, 'tracts': 204},
'Worcester': {'pop': 798552, 'tracts': 172}},
'MD': {'Allegany': {'pop': 75087, 'tracts': 23},
'Anne Arundel': {'pop': 537656, 'tracts': 104},
'Baltimore': {'pop': 805029, 'tracts': 214},
'Baltimore City': {'pop': 620961, 'tracts': 200},
'Calvert': {'pop': 88737, 'tracts': 18},
'Caroline': {'pop': 33066, 'tracts': 9},
'Carroll': {'pop': 167134, 'tracts': 38},
'Cecil': {'pop': 101108, 'tracts': 19},
'Charles': {'pop': 146551, 'tracts': 30},
'Dorchester': {'pop': 32618, 'tracts': 10},
'Frederick': {'pop': 233385, 'tracts': 61},
'Garrett': {'pop': 30097, 'tracts': 7},
'Harford': {'pop': 244826, 'tracts': 57},
'Howard': {'pop': 287085, 'tracts': 55},
'Kent': {'pop': 20197, 'tracts': 5},
'Montgomery': {'pop': 971777, 'tracts': 215},
"Prince George's": {'pop': 863420, 'tracts': 218},
"Queen Anne's": {'pop': 47798, 'tracts': 12},
'Somerset': {'pop': 26470, 'tracts': 8},
"St. Mary's": {'pop': 105151, 'tracts': 18},
'Talbot': {'pop': 37782, 'tracts': 10},
'Washington': {'pop': 147430, 'tracts': 32},
'Wicomico': {'pop': 98733, 'tracts': 19},
'Worcester': {'pop': 51454, 'tracts': 17}},
'ME': {'Androscoggin': {'pop': 107702, 'tracts': 28},
'Aroostook': {'pop': 71870, 'tracts': 24},
'Cumberland': {'pop': 281674, 'tracts': 67},
'Franklin': {'pop': 30768, 'tracts': 9},
'Hancock': {'pop': 54418, 'tracts': 17},
'Kennebec': {'pop': 122151, 'tracts': 31},
'Knox': {'pop': 39736, 'tracts': 11},
'Lincoln': {'pop': 34457, 'tracts': 9},
'Oxford': {'pop': 57833, 'tracts': 17},
'Penobscot': {'pop': 153923, 'tracts': 46},
'Piscataquis': {'pop': 17535, 'tracts': 8},
'Sagadahoc': {'pop': 35293, 'tracts': 8},
'Somerset': {'pop': 52228, 'tracts': 17},
'Waldo': {'pop': 38786, 'tracts': 8},
'Washington': {'pop': 32856, 'tracts': 14},
'York': {'pop': 197131, 'tracts': 41}},
'MI': {'Alcona': {'pop': 10942, 'tracts': 5},
'Alger': {'pop': 9601, 'tracts': 3},
'Allegan': {'pop': 111408, 'tracts': 25},
'Alpena': {'pop': 29598, 'tracts': 10},
'Antrim': {'pop': 23580, 'tracts': 7},
'Arenac': {'pop': 15899, 'tracts': 5},
'Baraga': {'pop': 8860, 'tracts': 2},
'Barry': {'pop': 59173, 'tracts': 11},
'Bay': {'pop': 107771, 'tracts': 26},
'Benzie': {'pop': 17525, 'tracts': 5},
'Berrien': {'pop': 156813, 'tracts': 48},
'Branch': {'pop': 45248, 'tracts': 12},
'Calhoun': {'pop': 136146, 'tracts': 39},
'Cass': {'pop': 52293, 'tracts': 11},
'Charlevoix': {'pop': 25949, 'tracts': 13},
'Cheboygan': {'pop': 26152, 'tracts': 8},
'Chippewa': {'pop': 38520, 'tracts': 14},
'Clare': {'pop': 30926, 'tracts': 11},
'Clinton': {'pop': 75382, 'tracts': 22},
'Crawford': {'pop': 14074, 'tracts': 5},
'Delta': {'pop': 37069, 'tracts': 11},
'Dickinson': {'pop': 26168, 'tracts': 7},
'Eaton': {'pop': 107759, 'tracts': 28},
'Emmet': {'pop': 32694, 'tracts': 8},
'Genesee': {'pop': 425790, 'tracts': 131},
'Gladwin': {'pop': 25692, 'tracts': 9},
'Gogebic': {'pop': 16427, 'tracts': 7},
'Grand Traverse': {'pop': 86986, 'tracts': 16},
'Gratiot': {'pop': 42476, 'tracts': 10},
'Hillsdale': {'pop': 46688, 'tracts': 12},
'Houghton': {'pop': 36628, 'tracts': 11},
'Huron': {'pop': 33118, 'tracts': 12},
'Ingham': {'pop': 280895, 'tracts': 81},
'Ionia': {'pop': 63905, 'tracts': 13},
'Iosco': {'pop': 25887, 'tracts': 9},
'Iron': {'pop': 11817, 'tracts': 5},
'Isabella': {'pop': 70311, 'tracts': 15},
'Jackson': {'pop': 160248, 'tracts': 38},
'Kalamazoo': {'pop': 250331, 'tracts': 57},
'Kalkaska': {'pop': 17153, 'tracts': 5},
'Kent': {'pop': 602622, 'tracts': 128},
'Keweenaw': {'pop': 2156, 'tracts': 2},
'Lake': {'pop': 11539, 'tracts': 4},
'Lapeer': {'pop': 88319, 'tracts': 24},
'Leelanau': {'pop': 21708, 'tracts': 6},
'Lenawee': {'pop': 99892, 'tracts': 23},
'Livingston': {'pop': 180967, 'tracts': 61},
'Luce': {'pop': 6631, 'tracts': 3},
'Mackinac': {'pop': 11113, 'tracts': 6},
'Macomb': {'pop': 840978, 'tracts': 216},
'Manistee': {'pop': 24733, 'tracts': 9},
'Marquette': {'pop': 67077, 'tracts': 24},
'Mason': {'pop': 28705, 'tracts': 8},
'Mecosta': {'pop': 42798, 'tracts': 11},
'Menominee': {'pop': 24029, 'tracts': 7},
'Midland': {'pop': 83629, 'tracts': 19},
'Missaukee': {'pop': 14849, 'tracts': 4},
'Monroe': {'pop': 152021, 'tracts': 39},
'Montcalm': {'pop': 63342, 'tracts': 13},
'Montmorency': {'pop': 9765, 'tracts': 5},
'Muskegon': {'pop': 172188, 'tracts': 42},
'Newaygo': {'pop': 48460, 'tracts': 11},
'Oakland': {'pop': 1202362, 'tracts': 338},
'Oceana': {'pop': 26570, 'tracts': 7},
'Ogemaw': {'pop': 21699, 'tracts': 7},
'Ontonagon': {'pop': 6780, 'tracts': 4},
'Osceola': {'pop': 23528, 'tracts': 6},
'Oscoda': {'pop': 8640, 'tracts': 5},
'Otsego': {'pop': 24164, 'tracts': 6},
'Ottawa': {'pop': 263801, 'tracts': 53},
'Presque Isle': {'pop': 13376, 'tracts': 6},
'Roscommon': {'pop': 24449, 'tracts': 10},
'Saginaw': {'pop': 200169, 'tracts': 56},
'Sanilac': {'pop': 43114, 'tracts': 12},
'Schoolcraft': {'pop': 8485, 'tracts': 3},
'Shiawassee': {'pop': 70648, 'tracts': 17},
'St. Clair': {'pop': 163040, 'tracts': 49},
'St. Joseph': {'pop': 61295, 'tracts': 17},
'Tuscola': {'pop': 55729, 'tracts': 13},
'Van Buren': {'pop': 76258, 'tracts': 15},
'Washtenaw': {'pop': 344791, 'tracts': 100},
'Wayne': {'pop': 1820584, 'tracts': 610},
'Wexford': {'pop': 32735, 'tracts': 8}},
'MN': {'Aitkin': {'pop': 16202, 'tracts': 6},
'Anoka': {'pop': 330844, 'tracts': 83},
'Becker': {'pop': 32504, 'tracts': 10},
'Beltrami': {'pop': 44442, 'tracts': 10},
'Benton': {'pop': 38451, 'tracts': 9},
'Big Stone': {'pop': 5269, 'tracts': 3},
'Blue Earth': {'pop': 64013, 'tracts': 16},
'Brown': {'pop': 25893, 'tracts': 8},
'Carlton': {'pop': 35386, 'tracts': 7},
'Carver': {'pop': 91042, 'tracts': 19},
'Cass': {'pop': 28567, 'tracts': 10},
'Chippewa': {'pop': 12441, 'tracts': 4},
'Chisago': {'pop': 53887, 'tracts': 10},
'Clay': {'pop': 58999, 'tracts': 13},
'Clearwater': {'pop': 8695, 'tracts': 3},
'Cook': {'pop': 5176, 'tracts': 3},
'Cottonwood': {'pop': 11687, 'tracts': 4},
'Crow Wing': {'pop': 62500, 'tracts': 16},
'Dakota': {'pop': 398552, 'tracts': 95},
'Dodge': {'pop': 20087, 'tracts': 5},
'Douglas': {'pop': 36009, 'tracts': 9},
'Faribault': {'pop': 14553, 'tracts': 6},
'Fillmore': {'pop': 20866, 'tracts': 6},
'Freeborn': {'pop': 31255, 'tracts': 10},
'Goodhue': {'pop': 46183, 'tracts': 10},
'Grant': {'pop': 6018, 'tracts': 2},
'Hennepin': {'pop': 1152425, 'tracts': 299},
'Houston': {'pop': 19027, 'tracts': 5},
'Hubbard': {'pop': 20428, 'tracts': 7},
'Isanti': {'pop': 37816, 'tracts': 8},
'Itasca': {'pop': 45058, 'tracts': 11},
'Jackson': {'pop': 10266, 'tracts': 4},
'Kanabec': {'pop': 16239, 'tracts': 4},
'Kandiyohi': {'pop': 42239, 'tracts': 12},
'Kittson': {'pop': 4552, 'tracts': 2},
'Koochiching': {'pop': 13311, 'tracts': 4},
'Lac qui Parle': {'pop': 7259, 'tracts': 3},
'Lake': {'pop': 10866, 'tracts': 3},
'Lake of the Woods': {'pop': 4045, 'tracts': 2},
'Le Sueur': {'pop': 27703, 'tracts': 6},
'Lincoln': {'pop': 5896, 'tracts': 2},
'Lyon': {'pop': 25857, 'tracts': 7},
'Mahnomen': {'pop': 5413, 'tracts': 2},
'Marshall': {'pop': 9439, 'tracts': 4},
'Martin': {'pop': 20840, 'tracts': 6},
'McLeod': {'pop': 36651, 'tracts': 7},
'Meeker': {'pop': 23300, 'tracts': 6},
'Mille Lacs': {'pop': 26097, 'tracts': 7},
'Morrison': {'pop': 33198, 'tracts': 8},
'Mower': {'pop': 39163, 'tracts': 11},
'Murray': {'pop': 8725, 'tracts': 3},
'Nicollet': {'pop': 32727, 'tracts': 7},
'Nobles': {'pop': 21378, 'tracts': 6},
'Norman': {'pop': 6852, 'tracts': 3},
'Olmsted': {'pop': 144248, 'tracts': 33},
'Otter Tail': {'pop': 57303, 'tracts': 17},
'Pennington': {'pop': 13930, 'tracts': 5},
'Pine': {'pop': 29750, 'tracts': 8},
'Pipestone': {'pop': 9596, 'tracts': 5},
'Polk': {'pop': 31600, 'tracts': 10},
'Pope': {'pop': 10995, 'tracts': 4},
'Ramsey': {'pop': 508640, 'tracts': 137},
'Red Lake': {'pop': 4089, 'tracts': 2},
'Redwood': {'pop': 16059, 'tracts': 6},
'Renville': {'pop': 15730, 'tracts': 6},
'Rice': {'pop': 64142, 'tracts': 13},
'Rock': {'pop': 9687, 'tracts': 3},
'Roseau': {'pop': 15629, 'tracts': 5},
'Scott': {'pop': 129928, 'tracts': 21},
'Sherburne': {'pop': 88499, 'tracts': 11},
'Sibley': {'pop': 15226, 'tracts': 4},
'St. Louis': {'pop': 200226, 'tracts': 66},
'Stearns': {'pop': 150642, 'tracts': 29},
'Steele': {'pop': 36576, 'tracts': 8},
'Stevens': {'pop': 9726, 'tracts': 3},
'Swift': {'pop': 9783, 'tracts': 4},
'Todd': {'pop': 24895, 'tracts': 8},
'Traverse': {'pop': 3558, 'tracts': 2},
'Wabasha': {'pop': 21676, 'tracts': 6},
'Wadena': {'pop': 13843, 'tracts': 3},
'Waseca': {'pop': 19136, 'tracts': 5},
'Washington': {'pop': 238136, 'tracts': 50},
'Watonwan': {'pop': 11211, 'tracts': 3},
'Wilkin': {'pop': 6576, 'tracts': 2},
'Winona': {'pop': 51461, 'tracts': 10},
'Wright': {'pop': 124700, 'tracts': 17},
'Yellow Medicine': {'pop': 10438, 'tracts': 4}},
'MO': {'Adair': {'pop': 25607, 'tracts': 7},
'Andrew': {'pop': 17291, 'tracts': 4},
'Atchison': {'pop': 5685, 'tracts': 2},
'Audrain': {'pop': 25529, 'tracts': 7},
'Barry': {'pop': 35597, 'tracts': 7},
'Barton': {'pop': 12402, 'tracts': 3},
'Bates': {'pop': 17049, 'tracts': 4},
'Benton': {'pop': 19056, 'tracts': 6},
'Bollinger': {'pop': 12363, 'tracts': 3},
'Boone': {'pop': 162642, 'tracts': 29},
'Buchanan': {'pop': 89201, 'tracts': 25},
'Butler': {'pop': 42794, 'tracts': 10},
'Caldwell': {'pop': 9424, 'tracts': 2},
'Callaway': {'pop': 44332, 'tracts': 8},
'Camden': {'pop': 44002, 'tracts': 11},
'Cape Girardeau': {'pop': 75674, 'tracts': 16},
'Carroll': {'pop': 9295, 'tracts': 3},
'Carter': {'pop': 6265, 'tracts': 2},
'Cass': {'pop': 99478, 'tracts': 20},
'Cedar': {'pop': 13982, 'tracts': 3},
'Chariton': {'pop': 7831, 'tracts': 3},
'Christian': {'pop': 77422, 'tracts': 14},
'Clark': {'pop': 7139, 'tracts': 3},
'Clay': {'pop': 221939, 'tracts': 44},
'Clinton': {'pop': 20743, 'tracts': 4},
'Cole': {'pop': 75990, 'tracts': 15},
'Cooper': {'pop': 17601, 'tracts': 5},
'Crawford': {'pop': 24696, 'tracts': 6},
'Dade': {'pop': 7883, 'tracts': 2},
'Dallas': {'pop': 16777, 'tracts': 3},
'Daviess': {'pop': 8433, 'tracts': 2},
'DeKalb': {'pop': 12892, 'tracts': 2},
'Dent': {'pop': 15657, 'tracts': 4},
'Douglas': {'pop': 13684, 'tracts': 3},
'Dunklin': {'pop': 31953, 'tracts': 10},
'Franklin': {'pop': 101492, 'tracts': 17},
'Gasconade': {'pop': 15222, 'tracts': 5},
'Gentry': {'pop': 6738, 'tracts': 2},
'Greene': {'pop': 275174, 'tracts': 62},
'Grundy': {'pop': 10261, 'tracts': 4},
'Harrison': {'pop': 8957, 'tracts': 3},
'Henry': {'pop': 22272, 'tracts': 6},
'Hickory': {'pop': 9627, 'tracts': 3},
'Holt': {'pop': 4912, 'tracts': 3},
'Howard': {'pop': 10144, 'tracts': 3},
'Howell': {'pop': 40400, 'tracts': 8},
'Iron': {'pop': 10630, 'tracts': 4},
'Jackson': {'pop': 674158, 'tracts': 199},
'Jasper': {'pop': 117404, 'tracts': 22},
'Jefferson': {'pop': 218733, 'tracts': 42},
'Johnson': {'pop': 52595, 'tracts': 9},
'Knox': {'pop': 4131, 'tracts': 2},
'Laclede': {'pop': 35571, 'tracts': 6},
'Lafayette': {'pop': 33381, 'tracts': 7},
'Lawrence': {'pop': 38634, 'tracts': 7},
'Lewis': {'pop': 10211, 'tracts': 4},
'Lincoln': {'pop': 52566, 'tracts': 7},
'Linn': {'pop': 12761, 'tracts': 5},
'Livingston': {'pop': 15195, 'tracts': 5},
'Macon': {'pop': 15566, 'tracts': 5},
'Madison': {'pop': 12226, 'tracts': 3},
'Maries': {'pop': 9176, 'tracts': 3},
'Marion': {'pop': 28781, 'tracts': 8},
'McDonald': {'pop': 23083, 'tracts': 4},
'Mercer': {'pop': 3785, 'tracts': 2},
'Miller': {'pop': 24748, 'tracts': 5},
'Mississippi': {'pop': 14358, 'tracts': 4},
'Moniteau': {'pop': 15607, 'tracts': 4},
'Monroe': {'pop': 8840, 'tracts': 3},
'Montgomery': {'pop': 12236, 'tracts': 4},
'Morgan': {'pop': 20565, 'tracts': 5},
'New Madrid': {'pop': 18956, 'tracts': 6},
'Newton': {'pop': 58114, 'tracts': 12},
'Nodaway': {'pop': 23370, 'tracts': 5},
'Oregon': {'pop': 10881, 'tracts': 3},
'Osage': {'pop': 13878, 'tracts': 4},
'Ozark': {'pop': 9723, 'tracts': 2},
'Pemiscot': {'pop': 18296, 'tracts': 6},
'Perry': {'pop': 18971, 'tracts': 5},
'Pettis': {'pop': 42201, 'tracts': 11},
'Phelps': {'pop': 45156, 'tracts': 10},
'Pike': {'pop': 18516, 'tracts': 5},
'Platte': {'pop': 89322, 'tracts': 20},
'Polk': {'pop': 31137, 'tracts': 4},
'Pulaski': {'pop': 52274, 'tracts': 9},
'Putnam': {'pop': 4979, 'tracts': 2},
'Ralls': {'pop': 10167, 'tracts': 3},
'Randolph': {'pop': 25414, 'tracts': 6},
'Ray': {'pop': 23494, 'tracts': 4},
'Reynolds': {'pop': 6696, 'tracts': 2},
'Ripley': {'pop': 14100, 'tracts': 4},
'Saline': {'pop': 23370, 'tracts': 8},
'Schuyler': {'pop': 4431, 'tracts': 2},
'Scotland': {'pop': 4843, 'tracts': 2},
'Scott': {'pop': 39191, 'tracts': 10},
'Shannon': {'pop': 8441, 'tracts': 2},
'Shelby': {'pop': 6373, 'tracts': 3},
'St. Charles': {'pop': 360485, 'tracts': 79},
'St. Clair': {'pop': 9805, 'tracts': 3},
'St. Francois': {'pop': 65359, 'tracts': 11},
'St. Louis': {'pop': 998954, 'tracts': 199},
'St. Louis City': {'pop': 319294, 'tracts': 106},
'Ste. Genevieve': {'pop': 18145, 'tracts': 4},
'Stoddard': {'pop': 29968, 'tracts': 8},
'Stone': {'pop': 32202, 'tracts': 6},
'Sullivan': {'pop': 6714, 'tracts': 3},
'Taney': {'pop': 51675, 'tracts': 10},
'Texas': {'pop': 26008, 'tracts': 4},
'Vernon': {'pop': 21159, 'tracts': 6},
'Warren': {'pop': 32513, 'tracts': 5},
'Washington': {'pop': 25195, 'tracts': 5},
'Wayne': {'pop': 13521, 'tracts': 4},
'Webster': {'pop': 36202, 'tracts': 8},
'Worth': {'pop': 2171, 'tracts': 1},
'Wright': {'pop': 18815, 'tracts': 4}},
'MS': {'Adams': {'pop': 32297, 'tracts': 9},
'Alcorn': {'pop': 37057, 'tracts': 7},
'Amite': {'pop': 13131, 'tracts': 3},
'Attala': {'pop': 19564, 'tracts': 6},
'Benton': {'pop': 8729, 'tracts': 2},
'Bolivar': {'pop': 34145, 'tracts': 8},
'Calhoun': {'pop': 14962, 'tracts': 5},
'Carroll': {'pop': 10597, 'tracts': 2},
'Chickasaw': {'pop': 17392, 'tracts': 4},
'Choctaw': {'pop': 8547, 'tracts': 3},
'Claiborne': {'pop': 9604, 'tracts': 3},
'Clarke': {'pop': 16732, 'tracts': 4},
'Clay': {'pop': 20634, 'tracts': 5},
'Coahoma': {'pop': 26151, 'tracts': 7},
'Copiah': {'pop': 29449, 'tracts': 6},
'Covington': {'pop': 19568, 'tracts': 4},
'DeSoto': {'pop': 161252, 'tracts': 33},
'Forrest': {'pop': 74934, 'tracts': 17},
'Franklin': {'pop': 8118, 'tracts': 2},
'George': {'pop': 22578, 'tracts': 5},
'Greene': {'pop': 14400, 'tracts': 2},
'Grenada': {'pop': 21906, 'tracts': 5},
'Hancock': {'pop': 43929, 'tracts': 7},
'Harrison': {'pop': 187105, 'tracts': 46},
'Hinds': {'pop': 245285, 'tracts': 64},
'Holmes': {'pop': 19198, 'tracts': 5},
'Humphreys': {'pop': 9375, 'tracts': 3},
'Issaquena': {'pop': 1406, 'tracts': 1},
'Itawamba': {'pop': 23401, 'tracts': 5},
'Jackson': {'pop': 139668, 'tracts': 28},
'Jasper': {'pop': 17062, 'tracts': 4},
'Jefferson': {'pop': 7726, 'tracts': 2},
'Jefferson Davis': {'pop': 12487, 'tracts': 3},
'Jones': {'pop': 67761, 'tracts': 14},
'Kemper': {'pop': 10456, 'tracts': 2},
'Lafayette': {'pop': 47351, 'tracts': 10},
'Lamar': {'pop': 55658, 'tracts': 8},
'Lauderdale': {'pop': 80261, 'tracts': 19},
'Lawrence': {'pop': 12929, 'tracts': 3},
'Leake': {'pop': 23805, 'tracts': 5},
'Lee': {'pop': 82910, 'tracts': 19},
'Leflore': {'pop': 32317, 'tracts': 8},
'Lincoln': {'pop': 34869, 'tracts': 6},
'Lowndes': {'pop': 59779, 'tracts': 14},
'Madison': {'pop': 95203, 'tracts': 21},
'Marion': {'pop': 27088, 'tracts': 6},
'Marshall': {'pop': 37144, 'tracts': 6},
'Monroe': {'pop': 36989, 'tracts': 9},
'Montgomery': {'pop': 10925, 'tracts': 3},
'Neshoba': {'pop': 29676, 'tracts': 7},
'Newton': {'pop': 21720, 'tracts': 5},
'Noxubee': {'pop': 11545, 'tracts': 3},
'Oktibbeha': {'pop': 47671, 'tracts': 8},
'Panola': {'pop': 34707, 'tracts': 6},
'Pearl River': {'pop': 55834, 'tracts': 9},
'Perry': {'pop': 12250, 'tracts': 3},
'Pike': {'pop': 40404, 'tracts': 8},
'Pontotoc': {'pop': 29957, 'tracts': 6},
'Prentiss': {'pop': 25276, 'tracts': 5},
'Quitman': {'pop': 8223, 'tracts': 3},
'Rankin': {'pop': 141617, 'tracts': 27},
'Scott': {'pop': 28264, 'tracts': 6},
'Sharkey': {'pop': 4916, 'tracts': 2},
'Simpson': {'pop': 27503, 'tracts': 5},
'Smith': {'pop': 16491, 'tracts': 3},
'Stone': {'pop': 17786, 'tracts': 3},
'Sunflower': {'pop': 29450, 'tracts': 7},
'Tallahatchie': {'pop': 15378, 'tracts': 4},
'Tate': {'pop': 28886, 'tracts': 5},
'Tippah': {'pop': 22232, 'tracts': 4},
'Tishomingo': {'pop': 19593, 'tracts': 4},
'Tunica': {'pop': 10778, 'tracts': 3},
'Union': {'pop': 27134, 'tracts': 6},
'Walthall': {'pop': 15443, 'tracts': 3},
'Warren': {'pop': 48773, 'tracts': 12},
'Washington': {'pop': 51137, 'tracts': 19},
'Wayne': {'pop': 20747, 'tracts': 4},
'Webster': {'pop': 10253, 'tracts': 3},
'Wilkinson': {'pop': 9878, 'tracts': 2},
'Winston': {'pop': 19198, 'tracts': 5},
'Yalobusha': {'pop': 12678, 'tracts': 3},
'Yazoo': {'pop': 28065, 'tracts': 6}},
'MT': {'Beaverhead': {'pop': 9246, 'tracts': 3},
'Big Horn': {'pop': 12865, 'tracts': 5},
'Blaine': {'pop': 6491, 'tracts': 4},
'Broadwater': {'pop': 5612, 'tracts': 2},
'Carbon': {'pop': 10078, 'tracts': 5},
'Carter': {'pop': 1160, 'tracts': 1},
'Cascade': {'pop': 81327, 'tracts': 22},
'Chouteau': {'pop': 5813, 'tracts': 2},
'Custer': {'pop': 11699, 'tracts': 6},
'Daniels': {'pop': 1751, 'tracts': 1},
'Dawson': {'pop': 8966, 'tracts': 3},
'Deer Lodge': {'pop': 9298, 'tracts': 3},
'Fallon': {'pop': 2890, 'tracts': 1},
'Fergus': {'pop': 11586, 'tracts': 2},
'Flathead': {'pop': 90928, 'tracts': 19},
'Gallatin': {'pop': 89513, 'tracts': 22},
'Garfield': {'pop': 1206, 'tracts': 1},
'Glacier': {'pop': 13399, 'tracts': 4},
'Golden Valley': {'pop': 884, 'tracts': 1},
'Granite': {'pop': 3079, 'tracts': 1},
'Hill': {'pop': 16096, 'tracts': 6},
'Jefferson': {'pop': 11406, 'tracts': 3},
'Judith Basin': {'pop': 2072, 'tracts': 1},
'Lake': {'pop': 28746, 'tracts': 8},
'Lewis and Clark': {'pop': 63395, 'tracts': 14},
'Liberty': {'pop': 2339, 'tracts': 1},
'Lincoln': {'pop': 19687, 'tracts': 5},
'Madison': {'pop': 7691, 'tracts': 3},
'McCone': {'pop': 1734, 'tracts': 1},
'Meagher': {'pop': 1891, 'tracts': 1},
'Mineral': {'pop': 4223, 'tracts': 2},
'Missoula': {'pop': 109299, 'tracts': 20},
'Musselshell': {'pop': 4538, 'tracts': 2},
'Park': {'pop': 15636, 'tracts': 6},
'Petroleum': {'pop': 494, 'tracts': 1},
'Phillips': {'pop': 4253, 'tracts': 1},
'Pondera': {'pop': 6153, 'tracts': 2},
'Powder River': {'pop': 1743, 'tracts': 1},
'Powell': {'pop': 7027, 'tracts': 2},
'Prairie': {'pop': 1179, 'tracts': 1},
'Ravalli': {'pop': 40212, 'tracts': 10},
'Richland': {'pop': 9746, 'tracts': 4},
'Roosevelt': {'pop': 10425, 'tracts': 3},
'Rosebud': {'pop': 9233, 'tracts': 4},
'Sanders': {'pop': 11413, 'tracts': 3},
'Sheridan': {'pop': 3384, 'tracts': 2},
'Silver Bow': {'pop': 34200, 'tracts': 8},
'Stillwater': {'pop': 9117, 'tracts': 3},
'Sweet Grass': {'pop': 3651, 'tracts': 1},
'Teton': {'pop': 6073, 'tracts': 3},
'Toole': {'pop': 5324, 'tracts': 3},
'Treasure': {'pop': 718, 'tracts': 1},
'Valley': {'pop': 7369, 'tracts': 3},
'Wheatland': {'pop': 2168, 'tracts': 1},
'Wibaux': {'pop': 1017, 'tracts': 1},
'Yellowstone': {'pop': 147972, 'tracts': 32}},
'NC': {'Alamance': {'pop': 151131, 'tracts': 36},
'Alexander': {'pop': 37198, 'tracts': 7},
'Alleghany': {'pop': 11155, 'tracts': 3},
'Anson': {'pop': 26948, 'tracts': 6},
'Ashe': {'pop': 27281, 'tracts': 6},
'Avery': {'pop': 17797, 'tracts': 5},
'Beaufort': {'pop': 47759, 'tracts': 11},
'Bertie': {'pop': 21282, 'tracts': 4},
'Bladen': {'pop': 35190, 'tracts': 6},
'Brunswick': {'pop': 107431, 'tracts': 33},
'Buncombe': {'pop': 238318, 'tracts': 56},
'Burke': {'pop': 90912, 'tracts': 18},
'Cabarrus': {'pop': 178011, 'tracts': 37},
'Caldwell': {'pop': 83029, 'tracts': 17},
'Camden': {'pop': 9980, 'tracts': 2},
'Carteret': {'pop': 66469, 'tracts': 38},
'Caswell': {'pop': 23719, 'tracts': 6},
'Catawba': {'pop': 154358, 'tracts': 31},
'Chatham': {'pop': 63505, 'tracts': 13},
'Cherokee': {'pop': 27444, 'tracts': 7},
'Chowan': {'pop': 14793, 'tracts': 3},
'Clay': {'pop': 10587, 'tracts': 2},
'Cleveland': {'pop': 98078, 'tracts': 22},
'Columbus': {'pop': 58098, 'tracts': 13},
'Craven': {'pop': 103505, 'tracts': 21},
'Cumberland': {'pop': 319431, 'tracts': 68},
'Currituck': {'pop': 23547, 'tracts': 8},
'Dare': {'pop': 33920, 'tracts': 11},
'Davidson': {'pop': 162878, 'tracts': 34},
'Davie': {'pop': 41240, 'tracts': 7},
'Duplin': {'pop': 58505, 'tracts': 11},
'Durham': {'pop': 267587, 'tracts': 60},
'Edgecombe': {'pop': 56552, 'tracts': 14},
'Forsyth': {'pop': 350670, 'tracts': 93},
'Franklin': {'pop': 60619, 'tracts': 12},
'Gaston': {'pop': 206086, 'tracts': 65},
'Gates': {'pop': 12197, 'tracts': 3},
'Graham': {'pop': 8861, 'tracts': 3},
'Granville': {'pop': 59916, 'tracts': 13},
'Greene': {'pop': 21362, 'tracts': 4},
'Guilford': {'pop': 488406, 'tracts': 119},
'Halifax': {'pop': 54691, 'tracts': 12},
'Harnett': {'pop': 114678, 'tracts': 27},
'Haywood': {'pop': 59036, 'tracts': 16},
'Henderson': {'pop': 106740, 'tracts': 27},
'Hertford': {'pop': 24669, 'tracts': 5},
'Hoke': {'pop': 46952, 'tracts': 9},
'Hyde': {'pop': 5810, 'tracts': 2},
'Iredell': {'pop': 159437, 'tracts': 44},
'Jackson': {'pop': 40271, 'tracts': 9},
'Johnston': {'pop': 168878, 'tracts': 25},
'Jones': {'pop': 10153, 'tracts': 3},
'Lee': {'pop': 57866, 'tracts': 13},
'Lenoir': {'pop': 59495, 'tracts': 15},
'Lincoln': {'pop': 78265, 'tracts': 18},
'Macon': {'pop': 33922, 'tracts': 9},
'Madison': {'pop': 20764, 'tracts': 6},
'Martin': {'pop': 24505, 'tracts': 6},
'McDowell': {'pop': 44996, 'tracts': 10},
'Mecklenburg': {'pop': 919628, 'tracts': 233},
'Mitchell': {'pop': 15579, 'tracts': 4},
'Montgomery': {'pop': 27798, 'tracts': 6},
'Moore': {'pop': 88247, 'tracts': 18},
'Nash': {'pop': 95840, 'tracts': 18},
'New Hanover': {'pop': 202667, 'tracts': 45},
'Northampton': {'pop': 22099, 'tracts': 5},
'Onslow': {'pop': 177772, 'tracts': 32},
'Orange': {'pop': 133801, 'tracts': 28},
'Pamlico': {'pop': 13144, 'tracts': 4},
'Pasquotank': {'pop': 40661, 'tracts': 10},
'Pender': {'pop': 52217, 'tracts': 16},
'Perquimans': {'pop': 13453, 'tracts': 3},
'Person': {'pop': 39464, 'tracts': 7},
'Pitt': {'pop': 168148, 'tracts': 32},
'Polk': {'pop': 20510, 'tracts': 7},
'Randolph': {'pop': 141752, 'tracts': 28},
'Richmond': {'pop': 46639, 'tracts': 11},
'Robeson': {'pop': 134168, 'tracts': 31},
'Rockingham': {'pop': 93643, 'tracts': 21},
'Rowan': {'pop': 138428, 'tracts': 30},
'Rutherford': {'pop': 67810, 'tracts': 13},
'Sampson': {'pop': 63431, 'tracts': 11},
'Scotland': {'pop': 36157, 'tracts': 7},
'Stanly': {'pop': 60585, 'tracts': 13},
'Stokes': {'pop': 47401, 'tracts': 9},
'Surry': {'pop': 73673, 'tracts': 22},
'Swain': {'pop': 13981, 'tracts': 5},
'Transylvania': {'pop': 33090, 'tracts': 7},
'Tyrrell': {'pop': 4407, 'tracts': 1},
'Union': {'pop': 201292, 'tracts': 41},
'Vance': {'pop': 45422, 'tracts': 10},
'Wake': {'pop': 900993, 'tracts': 187},
'Warren': {'pop': 20972, 'tracts': 6},
'Washington': {'pop': 13228, 'tracts': 3},
'Watauga': {'pop': 51079, 'tracts': 13},
'Wayne': {'pop': 122623, 'tracts': 26},
'Wilkes': {'pop': 69340, 'tracts': 14},
'Wilson': {'pop': 81234, 'tracts': 19},
'Yadkin': {'pop': 38406, 'tracts': 7},
'Yancey': {'pop': 17818, 'tracts': 5}},
'ND': {'Adams': {'pop': 2343, 'tracts': 1},
'Barnes': {'pop': 11066, 'tracts': 4},
'Benson': {'pop': 6660, 'tracts': 4},
'Billings': {'pop': 783, 'tracts': 1},
'Bottineau': {'pop': 6429, 'tracts': 3},
'Bowman': {'pop': 3151, 'tracts': 2},
'Burke': {'pop': 1968, 'tracts': 1},
'Burleigh': {'pop': 81308, 'tracts': 19},
'Cass': {'pop': 149778, 'tracts': 33},
'Cavalier': {'pop': 3993, 'tracts': 2},
'Dickey': {'pop': 5289, 'tracts': 3},
'Divide': {'pop': 2071, 'tracts': 1},
'Dunn': {'pop': 3536, 'tracts': 1},
'Eddy': {'pop': 2385, 'tracts': 1},
'Emmons': {'pop': 3550, 'tracts': 1},
'Foster': {'pop': 3343, 'tracts': 1},
'Golden Valley': {'pop': 1680, 'tracts': 1},
'Grand Forks': {'pop': 66861, 'tracts': 18},
'Grant': {'pop': 2394, 'tracts': 1},
'Griggs': {'pop': 2420, 'tracts': 1},
'Hettinger': {'pop': 2477, 'tracts': 2},
'Kidder': {'pop': 2435, 'tracts': 1},
'LaMoure': {'pop': 4139, 'tracts': 2},
'Logan': {'pop': 1990, 'tracts': 1},
'McHenry': {'pop': 5395, 'tracts': 2},
'McIntosh': {'pop': 2809, 'tracts': 1},
'McKenzie': {'pop': 6360, 'tracts': 4},
'McLean': {'pop': 8962, 'tracts': 2},
'Mercer': {'pop': 8424, 'tracts': 3},
'Morton': {'pop': 27471, 'tracts': 5},
'Mountrail': {'pop': 7673, 'tracts': 3},
'Nelson': {'pop': 3126, 'tracts': 1},
'Oliver': {'pop': 1846, 'tracts': 1},
'Pembina': {'pop': 7413, 'tracts': 5},
'Pierce': {'pop': 4357, 'tracts': 2},
'Ramsey': {'pop': 11451, 'tracts': 3},
'Ransom': {'pop': 5457, 'tracts': 3},
'Renville': {'pop': 2470, 'tracts': 1},
'Richland': {'pop': 16321, 'tracts': 6},
'Rolette': {'pop': 13937, 'tracts': 4},
'Sargent': {'pop': 3829, 'tracts': 2},
'Sheridan': {'pop': 1321, 'tracts': 1},
'Sioux': {'pop': 4153, 'tracts': 2},
'Slope': {'pop': 727, 'tracts': 1},
'Stark': {'pop': 24199, 'tracts': 8},
'Steele': {'pop': 1975, 'tracts': 1},
'Stutsman': {'pop': 21100, 'tracts': 6},
'Towner': {'pop': 2246, 'tracts': 1},
'Traill': {'pop': 8121, 'tracts': 4},
'Walsh': {'pop': 11119, 'tracts': 6},
'Ward': {'pop': 61675, 'tracts': 13},
'Wells': {'pop': 4207, 'tracts': 2},
'Williams': {'pop': 22398, 'tracts': 7}},
'NE': {'Adams': {'pop': 31364, 'tracts': 9},
'Antelope': {'pop': 6685, 'tracts': 3},
'Arthur': {'pop': 460, 'tracts': 1},
'Banner': {'pop': 690, 'tracts': 1},
'Blaine': {'pop': 478, 'tracts': 1},
'Boone': {'pop': 5505, 'tracts': 2},
'Box Butte': {'pop': 11308, 'tracts': 3},
'Boyd': {'pop': 2099, 'tracts': 1},
'Brown': {'pop': 3145, 'tracts': 1},
'Buffalo': {'pop': 46102, 'tracts': 11},
'Burt': {'pop': 6858, 'tracts': 3},
'Butler': {'pop': 8395, 'tracts': 3},
'Cass': {'pop': 25241, 'tracts': 6},
'Cedar': {'pop': 8852, 'tracts': 2},
'Chase': {'pop': 3966, 'tracts': 1},
'Cherry': {'pop': 5713, 'tracts': 2},
'Cheyenne': {'pop': 9998, 'tracts': 3},
'Clay': {'pop': 6542, 'tracts': 2},
'Colfax': {'pop': 10515, 'tracts': 3},
'Cuming': {'pop': 9139, 'tracts': 3},
'Custer': {'pop': 10939, 'tracts': 4},
'Dakota': {'pop': 21006, 'tracts': 4},
'Dawes': {'pop': 9182, 'tracts': 2},
'Dawson': {'pop': 24326, 'tracts': 7},
'Deuel': {'pop': 1941, 'tracts': 1},
'Dixon': {'pop': 6000, 'tracts': 2},
'Dodge': {'pop': 36691, 'tracts': 9},
'Douglas': {'pop': 517110, 'tracts': 156},
'Dundy': {'pop': 2008, 'tracts': 1},
'Fillmore': {'pop': 5890, 'tracts': 2},
'Franklin': {'pop': 3225, 'tracts': 2},
'Frontier': {'pop': 2756, 'tracts': 1},
'Furnas': {'pop': 4959, 'tracts': 1},
'Gage': {'pop': 22311, 'tracts': 7},
'Garden': {'pop': 2057, 'tracts': 1},
'Garfield': {'pop': 2049, 'tracts': 1},
'Gosper': {'pop': 2044, 'tracts': 1},
'Grant': {'pop': 614, 'tracts': 1},
'Greeley': {'pop': 2538, 'tracts': 1},
'Hall': {'pop': 58607, 'tracts': 14},
'Hamilton': {'pop': 9124, 'tracts': 3},
'Harlan': {'pop': 3423, 'tracts': 1},
'Hayes': {'pop': 967, 'tracts': 1},
'Hitchcock': {'pop': 2908, 'tracts': 1},
'Holt': {'pop': 10435, 'tracts': 4},
'Hooker': {'pop': 736, 'tracts': 1},
'Howard': {'pop': 6274, 'tracts': 2},
'Jefferson': {'pop': 7547, 'tracts': 3},
'Johnson': {'pop': 5217, 'tracts': 2},
'Kearney': {'pop': 6489, 'tracts': 2},
'Keith': {'pop': 8368, 'tracts': 3},
'Keya Paha': {'pop': 824, 'tracts': 1},
'Kimball': {'pop': 3821, 'tracts': 1},
'Knox': {'pop': 8701, 'tracts': 3},
'Lancaster': {'pop': 285407, 'tracts': 74},
'Lincoln': {'pop': 36288, 'tracts': 8},
'Logan': {'pop': 763, 'tracts': 1},
'Loup': {'pop': 632, 'tracts': 1},
'Madison': {'pop': 34876, 'tracts': 9},
'McPherson': {'pop': 539, 'tracts': 1},
'Merrick': {'pop': 7845, 'tracts': 3},
'Morrill': {'pop': 5042, 'tracts': 1},
'Nance': {'pop': 3735, 'tracts': 1},
'Nemaha': {'pop': 7248, 'tracts': 2},
'Nuckolls': {'pop': 4500, 'tracts': 2},
'Otoe': {'pop': 15740, 'tracts': 5},
'Pawnee': {'pop': 2773, 'tracts': 1},
'Perkins': {'pop': 2970, 'tracts': 1},
'Phelps': {'pop': 9188, 'tracts': 3},
'Pierce': {'pop': 7266, 'tracts': 2},
'Platte': {'pop': 32237, 'tracts': 7},
'Polk': {'pop': 5406, 'tracts': 2},
'Red Willow': {'pop': 11055, 'tracts': 3},
'Richardson': {'pop': 8363, 'tracts': 3},
'Rock': {'pop': 1526, 'tracts': 1},
'Saline': {'pop': 14200, 'tracts': 4},
'Sarpy': {'pop': 158840, 'tracts': 43},
'Saunders': {'pop': 20780, 'tracts': 5},
'Scotts Bluff': {'pop': 36970, 'tracts': 11},
'Seward': {'pop': 16750, 'tracts': 4},
'Sheridan': {'pop': 5469, 'tracts': 2},
'Sherman': {'pop': 3152, 'tracts': 1},
'Sioux': {'pop': 1311, 'tracts': 1},
'Stanton': {'pop': 6129, 'tracts': 2},
'Thayer': {'pop': 5228, 'tracts': 2},
'Thomas': {'pop': 647, 'tracts': 1},
'Thurston': {'pop': 6940, 'tracts': 2},
'Valley': {'pop': 4260, 'tracts': 2},
'Washington': {'pop': 20234, 'tracts': 5},
'Wayne': {'pop': 9595, 'tracts': 2},
'Webster': {'pop': 3812, 'tracts': 2},
'Wheeler': {'pop': 818, 'tracts': 1},
'York': {'pop': 13665, 'tracts': 4}},
'NH': {'Belknap': {'pop': 60088, 'tracts': 15},
'Carroll': {'pop': 47818, 'tracts': 11},
'Cheshire': {'pop': 77117, 'tracts': 16},
'Coos': {'pop': 33055, 'tracts': 11},
'Grafton': {'pop': 89118, 'tracts': 19},
'Hillsborough': {'pop': 400721, 'tracts': 86},
'Merrimack': {'pop': 146445, 'tracts': 36},
'Rockingham': {'pop': 295223, 'tracts': 66},
'Strafford': {'pop': 123143, 'tracts': 25},
'Sullivan': {'pop': 43742, 'tracts': 10}},
'NJ': {'Atlantic': {'pop': 274549, 'tracts': 69},
'Bergen': {'pop': 905116, 'tracts': 179},
'Burlington': {'pop': 448734, 'tracts': 114},
'Camden': {'pop': 513657, 'tracts': 127},
'Cape May': {'pop': 97265, 'tracts': 32},
'Cumberland': {'pop': 156898, 'tracts': 35},
'Essex': {'pop': 783969, 'tracts': 210},
'Gloucester': {'pop': 288288, 'tracts': 63},
'Hudson': {'pop': 634266, 'tracts': 166},
'Hunterdon': {'pop': 128349, 'tracts': 26},
'Mercer': {'pop': 366513, 'tracts': 77},
'Middlesex': {'pop': 809858, 'tracts': 175},
'Monmouth': {'pop': 630380, 'tracts': 144},
'Morris': {'pop': 492276, 'tracts': 100},
'Ocean': {'pop': 576567, 'tracts': 126},
'Passaic': {'pop': 501226, 'tracts': 100},
'Salem': {'pop': 66083, 'tracts': 24},
'Somerset': {'pop': 323444, 'tracts': 68},
'Sussex': {'pop': 149265, 'tracts': 41},
'Union': {'pop': 536499, 'tracts': 108},
'Warren': {'pop': 108692, 'tracts': 23}},
'NM': {'Bernalillo': {'pop': 662564, 'tracts': 153},
'Catron': {'pop': 3725, 'tracts': 1},
'Chaves': {'pop': 65645, 'tracts': 16},
'Cibola': {'pop': 27213, 'tracts': 7},
'Colfax': {'pop': 13750, 'tracts': 3},
'Curry': {'pop': 48376, 'tracts': 12},
'De Baca': {'pop': 2022, 'tracts': 1},
'Dona Ana': {'pop': 209233, 'tracts': 41},
'Eddy': {'pop': 53829, 'tracts': 12},
'Grant': {'pop': 29514, 'tracts': 8},
'Guadalupe': {'pop': 4687, 'tracts': 1},
'Harding': {'pop': 695, 'tracts': 1},
'Hidalgo': {'pop': 4894, 'tracts': 2},
'Lea': {'pop': 64727, 'tracts': 18},
'Lincoln': {'pop': 20497, 'tracts': 5},
'Los Alamos': {'pop': 17950, 'tracts': 4},
'Luna': {'pop': 25095, 'tracts': 6},
'McKinley': {'pop': 71492, 'tracts': 17},
'Mora': {'pop': 4881, 'tracts': 1},
'Otero': {'pop': 63797, 'tracts': 16},
'Quay': {'pop': 9041, 'tracts': 3},
'Rio Arriba': {'pop': 40246, 'tracts': 9},
'Roosevelt': {'pop': 19846, 'tracts': 5},
'San Juan': {'pop': 130044, 'tracts': 33},
'San Miguel': {'pop': 29393, 'tracts': 7},
'Sandoval': {'pop': 131561, 'tracts': 28},
'Santa Fe': {'pop': 144170, 'tracts': 50},
'Sierra': {'pop': 11988, 'tracts': 4},
'Socorro': {'pop': 17866, 'tracts': 6},
'Taos': {'pop': 32937, 'tracts': 6},
'Torrance': {'pop': 16383, 'tracts': 4},
'Union': {'pop': 4549, 'tracts': 1},
'Valencia': {'pop': 76569, 'tracts': 18}},
'NV': {'Carson City': {'pop': 55274, 'tracts': 14},
'Churchill': {'pop': 24877, 'tracts': 7},
'Clark': {'pop': 1951269, 'tracts': 487},
'Douglas': {'pop': 46997, 'tracts': 17},
'Elko': {'pop': 48818, 'tracts': 14},
'Esmeralda': {'pop': 783, 'tracts': 1},
'Eureka': {'pop': 1987, 'tracts': 1},
'Humboldt': {'pop': 16528, 'tracts': 4},
'Lander': {'pop': 5775, 'tracts': 1},
'Lincoln': {'pop': 5345, 'tracts': 2},
'Lyon': {'pop': 51980, 'tracts': 10},
'Mineral': {'pop': 4772, 'tracts': 2},
'Nye': {'pop': 43946, 'tracts': 10},
'Pershing': {'pop': 6753, 'tracts': 1},
'Storey': {'pop': 4010, 'tracts': 1},
'Washoe': {'pop': 421407, 'tracts': 112},
'White Pine': {'pop': 10030, 'tracts': 3}},
'NY': {'Albany': {'pop': 304204, 'tracts': 75},
'Allegany': {'pop': 48946, 'tracts': 13},
'Bronx': {'pop': 1385108, 'tracts': 339},
'Broome': {'pop': 200600, 'tracts': 55},
'Cattaraugus': {'pop': 80317, 'tracts': 21},
'Cayuga': {'pop': 80026, 'tracts': 20},
'Chautauqua': {'pop': 134905, 'tracts': 35},
'Chemung': {'pop': 88830, 'tracts': 22},
'Chenango': {'pop': 50477, 'tracts': 12},
'Clinton': {'pop': 82128, 'tracts': 19},
'Columbia': {'pop': 63096, 'tracts': 21},
'Cortland': {'pop': 49336, 'tracts': 12},
'Delaware': {'pop': 47980, 'tracts': 14},
'Dutchess': {'pop': 297488, 'tracts': 79},
'Erie': {'pop': 919040, 'tracts': 237},
'Essex': {'pop': 39370, 'tracts': 13},
'Franklin': {'pop': 51599, 'tracts': 14},
'Fulton': {'pop': 55531, 'tracts': 15},
'Genesee': {'pop': 60079, 'tracts': 15},
'Greene': {'pop': 49221, 'tracts': 15},
'Hamilton': {'pop': 4836, 'tracts': 4},
'Herkimer': {'pop': 64519, 'tracts': 19},
'Jefferson': {'pop': 116229, 'tracts': 26},
'Kings': {'pop': 2504700, 'tracts': 760},
'Lewis': {'pop': 27087, 'tracts': 7},
'Livingston': {'pop': 65393, 'tracts': 15},
'Madison': {'pop': 73442, 'tracts': 16},
'Monroe': {'pop': 744344, 'tracts': 192},
'Montgomery': {'pop': 50219, 'tracts': 16},
'Nassau': {'pop': 1339532, 'tracts': 280},
'New York': {'pop': 1585873, 'tracts': 288},
'Niagara': {'pop': 216469, 'tracts': 61},
'Oneida': {'pop': 234878, 'tracts': 74},
'Onondaga': {'pop': 467026, 'tracts': 140},
'Ontario': {'pop': 107931, 'tracts': 25},
'Orange': {'pop': 372813, 'tracts': 79},
'Orleans': {'pop': 42883, 'tracts': 11},
'Oswego': {'pop': 122109, 'tracts': 29},
'Otsego': {'pop': 62259, 'tracts': 17},
'Putnam': {'pop': 99710, 'tracts': 19},
'Queens': {'pop': 2230722, 'tracts': 669},
'Rensselaer': {'pop': 159429, 'tracts': 42},
'Richmond': {'pop': 468730, 'tracts': 109},
'Rockland': {'pop': 311687, 'tracts': 65},
'Saratoga': {'pop': 219607, 'tracts': 50},
'Schenectady': {'pop': 154727, 'tracts': 43},
'Schoharie': {'pop': 32749, 'tracts': 8},
'Schuyler': {'pop': 18343, 'tracts': 5},
'Seneca': {'pop': 35251, 'tracts': 10},
'St. Lawrence': {'pop': 111944, 'tracts': 28},
'Steuben': {'pop': 98990, 'tracts': 30},
'Suffolk': {'pop': 1493350, 'tracts': 322},
'Sullivan': {'pop': 77547, 'tracts': 24},
'Tioga': {'pop': 51125, 'tracts': 10},
'Tompkins': {'pop': 101564, 'tracts': 23},
'Ulster': {'pop': 182493, 'tracts': 47},
'Warren': {'pop': 65707, 'tracts': 19},
'Washington': {'pop': 63216, 'tracts': 17},
'Wayne': {'pop': 93772, 'tracts': 23},
'Westchester': {'pop': 949113, 'tracts': 223},
'Wyoming': {'pop': 42155, 'tracts': 11},
'Yates': {'pop': 25348, 'tracts': 5}},
'OH': {'Adams': {'pop': 28550, 'tracts': 6},
'Allen': {'pop': 106331, 'tracts': 33},
'Ashland': {'pop': 53139, 'tracts': 11},
'Ashtabula': {'pop': 101497, 'tracts': 25},
'Athens': {'pop': 64757, 'tracts': 15},
'Auglaize': {'pop': 45949, 'tracts': 11},
'Belmont': {'pop': 70400, 'tracts': 20},
'Brown': {'pop': 44846, 'tracts': 9},
'Butler': {'pop': 368130, 'tracts': 80},
'Carroll': {'pop': 28836, 'tracts': 7},
'Champaign': {'pop': 40097, 'tracts': 10},
'Clark': {'pop': 138333, 'tracts': 44},
'Clermont': {'pop': 197363, 'tracts': 40},
'Clinton': {'pop': 42040, 'tracts': 9},
'Columbiana': {'pop': 107841, 'tracts': 24},
'Coshocton': {'pop': 36901, 'tracts': 10},
'Crawford': {'pop': 43784, 'tracts': 13},
'Cuyahoga': {'pop': 1280122, 'tracts': 447},
'Darke': {'pop': 52959, 'tracts': 12},
'Defiance': {'pop': 39037, 'tracts': 9},
'Delaware': {'pop': 174214, 'tracts': 35},
'Erie': {'pop': 77079, 'tracts': 19},
'Fairfield': {'pop': 146156, 'tracts': 28},
'Fayette': {'pop': 29030, 'tracts': 7},
'Franklin': {'pop': 1163414, 'tracts': 284},
'Fulton': {'pop': 42698, 'tracts': 9},
'Gallia': {'pop': 30934, 'tracts': 7},
'Geauga': {'pop': 93389, 'tracts': 21},
'Greene': {'pop': 161573, 'tracts': 35},
'Guernsey': {'pop': 40087, 'tracts': 10},
'Hamilton': {'pop': 802374, 'tracts': 222},
'Hancock': {'pop': 74782, 'tracts': 13},
'Hardin': {'pop': 32058, 'tracts': 7},
'Harrison': {'pop': 15864, 'tracts': 5},
'Henry': {'pop': 28215, 'tracts': 7},
'Highland': {'pop': 43589, 'tracts': 9},
'Hocking': {'pop': 29380, 'tracts': 7},
'Holmes': {'pop': 42366, 'tracts': 8},
'Huron': {'pop': 59626, 'tracts': 13},
'Jackson': {'pop': 33225, 'tracts': 7},
'Jefferson': {'pop': 69709, 'tracts': 23},
'Knox': {'pop': 60921, 'tracts': 12},
'Lake': {'pop': 230041, 'tracts': 59},
'Lawrence': {'pop': 62450, 'tracts': 16},
'Licking': {'pop': 166492, 'tracts': 32},
'Logan': {'pop': 45858, 'tracts': 11},
'Lorain': {'pop': 301356, 'tracts': 73},
'Lucas': {'pop': 441815, 'tracts': 127},
'Madison': {'pop': 43435, 'tracts': 12},
'Mahoning': {'pop': 238823, 'tracts': 70},
'Marion': {'pop': 66501, 'tracts': 18},
'Medina': {'pop': 172332, 'tracts': 37},
'Meigs': {'pop': 23770, 'tracts': 6},
'Mercer': {'pop': 40814, 'tracts': 9},
'Miami': {'pop': 102506, 'tracts': 21},
'Monroe': {'pop': 14642, 'tracts': 4},
'Montgomery': {'pop': 535153, 'tracts': 153},
'Morgan': {'pop': 15054, 'tracts': 4},
'Morrow': {'pop': 34827, 'tracts': 6},
'Muskingum': {'pop': 86074, 'tracts': 19},
'Noble': {'pop': 14645, 'tracts': 3},
'Ottawa': {'pop': 41428, 'tracts': 13},
'Paulding': {'pop': 19614, 'tracts': 5},
'Perry': {'pop': 36058, 'tracts': 6},
'Pickaway': {'pop': 55698, 'tracts': 13},
'Pike': {'pop': 28709, 'tracts': 6},
'Portage': {'pop': 161419, 'tracts': 35},
'Preble': {'pop': 42270, 'tracts': 12},
'Putnam': {'pop': 34499, 'tracts': 7},
'Richland': {'pop': 124475, 'tracts': 30},
'Ross': {'pop': 78064, 'tracts': 17},
'Sandusky': {'pop': 60944, 'tracts': 15},
'Scioto': {'pop': 79499, 'tracts': 20},
'Seneca': {'pop': 56745, 'tracts': 14},
'Shelby': {'pop': 49423, 'tracts': 10},
'Stark': {'pop': 375586, 'tracts': 86},
'Summit': {'pop': 541781, 'tracts': 135},
'Trumbull': {'pop': 210312, 'tracts': 55},
'Tuscarawas': {'pop': 92582, 'tracts': 21},
'Union': {'pop': 52300, 'tracts': 10},
'Van Wert': {'pop': 28744, 'tracts': 9},
'Vinton': {'pop': 13435, 'tracts': 3},
'Warren': {'pop': 212693, 'tracts': 33},
'Washington': {'pop': 61778, 'tracts': 16},
'Wayne': {'pop': 114520, 'tracts': 32},
'Williams': {'pop': 37642, 'tracts': 9},
'Wood': {'pop': 125488, 'tracts': 28},
'Wyandot': {'pop': 22615, 'tracts': 6}},
'OK': {'Adair': {'pop': 22683, 'tracts': 5},
'Alfalfa': {'pop': 5642, 'tracts': 3},
'Atoka': {'pop': 14182, 'tracts': 4},
'Beaver': {'pop': 5636, 'tracts': 3},
'Beckham': {'pop': 22119, 'tracts': 4},
'Blaine': {'pop': 11943, 'tracts': 5},
'Bryan': {'pop': 42416, 'tracts': 11},
'Caddo': {'pop': 29600, 'tracts': 8},
'Canadian': {'pop': 115541, 'tracts': 29},
'Carter': {'pop': 47557, 'tracts': 11},
'Cherokee': {'pop': 46987, 'tracts': 9},
'Choctaw': {'pop': 15205, 'tracts': 5},
'Cimarron': {'pop': 2475, 'tracts': 2},
'Cleveland': {'pop': 255755, 'tracts': 62},
'Coal': {'pop': 5925, 'tracts': 2},
'Comanche': {'pop': 124098, 'tracts': 32},
'Cotton': {'pop': 6193, 'tracts': 2},
'Craig': {'pop': 15029, 'tracts': 5},
'Creek': {'pop': 69967, 'tracts': 21},
'Custer': {'pop': 27469, 'tracts': 5},
'Delaware': {'pop': 41487, 'tracts': 9},
'Dewey': {'pop': 4810, 'tracts': 3},
'Ellis': {'pop': 4151, 'tracts': 2},
'Garfield': {'pop': 60580, 'tracts': 12},
'Garvin': {'pop': 27576, 'tracts': 9},
'Grady': {'pop': 52431, 'tracts': 10},
'Grant': {'pop': 4527, 'tracts': 2},
'Greer': {'pop': 6239, 'tracts': 2},
'Harmon': {'pop': 2922, 'tracts': 1},
'Harper': {'pop': 3685, 'tracts': 2},
'Haskell': {'pop': 12769, 'tracts': 4},
'Hughes': {'pop': 14003, 'tracts': 5},
'Jackson': {'pop': 26446, 'tracts': 8},
'Jefferson': {'pop': 6472, 'tracts': 3},
'Johnston': {'pop': 10957, 'tracts': 3},
'Kay': {'pop': 46562, 'tracts': 11},
'Kingfisher': {'pop': 15034, 'tracts': 4},
'Kiowa': {'pop': 9446, 'tracts': 3},
'Latimer': {'pop': 11154, 'tracts': 3},
'Le Flore': {'pop': 50384, 'tracts': 12},
'Lincoln': {'pop': 34273, 'tracts': 7},
'Logan': {'pop': 41848, 'tracts': 8},
'Love': {'pop': 9423, 'tracts': 3},
'Major': {'pop': 7527, 'tracts': 3},
'Marshall': {'pop': 15840, 'tracts': 4},
'Mayes': {'pop': 41259, 'tracts': 9},
'McClain': {'pop': 34506, 'tracts': 6},
'McCurtain': {'pop': 33151, 'tracts': 8},
'McIntosh': {'pop': 20252, 'tracts': 6},
'Murray': {'pop': 13488, 'tracts': 3},
'Muskogee': {'pop': 70990, 'tracts': 16},
'Noble': {'pop': 11561, 'tracts': 4},
'Nowata': {'pop': 10536, 'tracts': 4},
'Okfuskee': {'pop': 12191, 'tracts': 4},
'Oklahoma': {'pop': 718633, 'tracts': 241},
'Okmulgee': {'pop': 40069, 'tracts': 10},
'Osage': {'pop': 47472, 'tracts': 11},
'Ottawa': {'pop': 31848, 'tracts': 9},
'Pawnee': {'pop': 16577, 'tracts': 5},
'Payne': {'pop': 77350, 'tracts': 17},
'Pittsburg': {'pop': 45837, 'tracts': 13},
'Pontotoc': {'pop': 37492, 'tracts': 10},
'Pottawatomie': {'pop': 69442, 'tracts': 16},
'Pushmataha': {'pop': 11572, 'tracts': 3},
'Roger Mills': {'pop': 3647, 'tracts': 1},
'Rogers': {'pop': 86905, 'tracts': 28},
'Seminole': {'pop': 25482, 'tracts': 9},
'Sequoyah': {'pop': 42391, 'tracts': 9},
'Stephens': {'pop': 45048, 'tracts': 11},
'Texas': {'pop': 20640, 'tracts': 5},
'Tillman': {'pop': 7992, 'tracts': 5},
'Tulsa': {'pop': 603403, 'tracts': 175},
'Wagoner': {'pop': 73085, 'tracts': 22},
'Washington': {'pop': 50976, 'tracts': 13},
'Washita': {'pop': 11629, 'tracts': 4},
'Woods': {'pop': 8878, 'tracts': 3},
'Woodward': {'pop': 20081, 'tracts': 5}},
'OR': {'Baker': {'pop': 16134, 'tracts': 6},
'Benton': {'pop': 85579, 'tracts': 18},
'Clackamas': {'pop': 375992, 'tracts': 80},
'Clatsop': {'pop': 37039, 'tracts': 12},
'Columbia': {'pop': 49351, 'tracts': 10},
'Coos': {'pop': 63043, 'tracts': 13},
'Crook': {'pop': 20978, 'tracts': 4},
'Curry': {'pop': 22364, 'tracts': 6},
'Deschutes': {'pop': 157733, 'tracts': 24},
'Douglas': {'pop': 107667, 'tracts': 22},
'Gilliam': {'pop': 1871, 'tracts': 1},
'Grant': {'pop': 7445, 'tracts': 2},
'Harney': {'pop': 7422, 'tracts': 2},
'Hood River': {'pop': 22346, 'tracts': 4},
'Jackson': {'pop': 203206, 'tracts': 41},
'Jefferson': {'pop': 21720, 'tracts': 6},
'Josephine': {'pop': 82713, 'tracts': 16},
'Klamath': {'pop': 66380, 'tracts': 20},
'Lake': {'pop': 7895, 'tracts': 2},
'Lane': {'pop': 351715, 'tracts': 86},
'Lincoln': {'pop': 46034, 'tracts': 18},
'Linn': {'pop': 116672, 'tracts': 21},
'Malheur': {'pop': 31313, 'tracts': 8},
'Marion': {'pop': 315335, 'tracts': 58},
'Morrow': {'pop': 11173, 'tracts': 2},
'Multnomah': {'pop': 735334, 'tracts': 171},
'Polk': {'pop': 75403, 'tracts': 12},
'Sherman': {'pop': 1765, 'tracts': 1},
'Tillamook': {'pop': 25250, 'tracts': 8},
'Umatilla': {'pop': 75889, 'tracts': 15},
'Union': {'pop': 25748, 'tracts': 8},
'Wallowa': {'pop': 7008, 'tracts': 3},
'Wasco': {'pop': 25213, 'tracts': 8},
'Washington': {'pop': 529710, 'tracts': 104},
'Wheeler': {'pop': 1441, 'tracts': 1},
'Yamhill': {'pop': 99193, 'tracts': 17}},
'PA': {'Adams': {'pop': 101407, 'tracts': 23},
'Allegheny': {'pop': 1223348, 'tracts': 402},
'Armstrong': {'pop': 68941, 'tracts': 19},
'Beaver': {'pop': 170539, 'tracts': 51},
'Bedford': {'pop': 49762, 'tracts': 11},
'Berks': {'pop': 411442, 'tracts': 90},
'Blair': {'pop': 127089, 'tracts': 34},
'Bradford': {'pop': 62622, 'tracts': 14},
'Bucks': {'pop': 625249, 'tracts': 143},
'Butler': {'pop': 183862, 'tracts': 44},
'Cambria': {'pop': 143679, 'tracts': 42},
'Cameron': {'pop': 5085, 'tracts': 2},
'Carbon': {'pop': 65249, 'tracts': 12},
'Centre': {'pop': 153990, 'tracts': 31},
'Chester': {'pop': 498886, 'tracts': 116},
'Clarion': {'pop': 39988, 'tracts': 10},
'Clearfield': {'pop': 81642, 'tracts': 20},
'Clinton': {'pop': 39238, 'tracts': 9},
'Columbia': {'pop': 67295, 'tracts': 15},
'Crawford': {'pop': 88765, 'tracts': 23},
'Cumberland': {'pop': 235406, 'tracts': 49},
'Dauphin': {'pop': 268100, 'tracts': 65},
'Delaware': {'pop': 558979, 'tracts': 144},
'Elk': {'pop': 31946, 'tracts': 9},
'Erie': {'pop': 280566, 'tracts': 72},
'Fayette': {'pop': 136606, 'tracts': 36},
'Forest': {'pop': 7716, 'tracts': 3},
'Franklin': {'pop': 149618, 'tracts': 27},
'Fulton': {'pop': 14845, 'tracts': 3},
'Greene': {'pop': 38686, 'tracts': 9},
'Huntingdon': {'pop': 45913, 'tracts': 12},
'Indiana': {'pop': 88880, 'tracts': 23},
'Jefferson': {'pop': 45200, 'tracts': 13},
'Juniata': {'pop': 24636, 'tracts': 5},
'Lackawanna': {'pop': 214437, 'tracts': 59},
'Lancaster': {'pop': 519445, 'tracts': 98},
'Lawrence': {'pop': 91108, 'tracts': 28},
'Lebanon': {'pop': 133568, 'tracts': 31},
'Lehigh': {'pop': 349497, 'tracts': 76},
'Luzerne': {'pop': 320918, 'tracts': 104},
'Lycoming': {'pop': 116111, 'tracts': 29},
'McKean': {'pop': 43450, 'tracts': 12},
'Mercer': {'pop': 116638, 'tracts': 30},
'Mifflin': {'pop': 46682, 'tracts': 12},
'Monroe': {'pop': 169842, 'tracts': 33},
'Montgomery': {'pop': 799874, 'tracts': 211},
'Montour': {'pop': 18267, 'tracts': 4},
'Northampton': {'pop': 297735, 'tracts': 68},
'Northumberland': {'pop': 94528, 'tracts': 24},
'Perry': {'pop': 45969, 'tracts': 10},
'Philadelphia': {'pop': 1526006, 'tracts': 384},
'Pike': {'pop': 57369, 'tracts': 18},
'Potter': {'pop': 17457, 'tracts': 5},
'Schuylkill': {'pop': 148289, 'tracts': 40},
'Snyder': {'pop': 39702, 'tracts': 8},
'Somerset': {'pop': 77742, 'tracts': 21},
'Sullivan': {'pop': 6428, 'tracts': 2},
'Susquehanna': {'pop': 43356, 'tracts': 11},
'Tioga': {'pop': 41981, 'tracts': 10},
'Union': {'pop': 44947, 'tracts': 10},
'Venango': {'pop': 54984, 'tracts': 16},
'Warren': {'pop': 41815, 'tracts': 13},
'Washington': {'pop': 207820, 'tracts': 59},
'Wayne': {'pop': 52822, 'tracts': 14},
'Westmoreland': {'pop': 365169, 'tracts': 100},
'Wyoming': {'pop': 28276, 'tracts': 7},
'York': {'pop': 434972, 'tracts': 90}},
'RI': {'Bristol': {'pop': 49875, 'tracts': 11},
'Kent': {'pop': 166158, 'tracts': 39},
'Newport': {'pop': 82888, 'tracts': 22},
'Providence': {'pop': 626667, 'tracts': 141},
'Washington': {'pop': 126979, 'tracts': 29}},
'SC': {'Abbeville': {'pop': 25417, 'tracts': 6},
'Aiken': {'pop': 160099, 'tracts': 33},
'Allendale': {'pop': 10419, 'tracts': 3},
'Anderson': {'pop': 187126, 'tracts': 39},
'Bamberg': {'pop': 15987, 'tracts': 4},
'Barnwell': {'pop': 22621, 'tracts': 6},
'Beaufort': {'pop': 162233, 'tracts': 41},
'Berkeley': {'pop': 177843, 'tracts': 45},
'Calhoun': {'pop': 15175, 'tracts': 3},
'Charleston': {'pop': 350209, 'tracts': 86},
'Cherokee': {'pop': 55342, 'tracts': 13},
'Chester': {'pop': 33140, 'tracts': 11},
'Chesterfield': {'pop': 46734, 'tracts': 10},
'Clarendon': {'pop': 34971, 'tracts': 12},
'Colleton': {'pop': 38892, 'tracts': 10},
'Darlington': {'pop': 68681, 'tracts': 16},
'Dillon': {'pop': 32062, 'tracts': 6},
'Dorchester': {'pop': 136555, 'tracts': 25},
'Edgefield': {'pop': 26985, 'tracts': 6},
'Fairfield': {'pop': 23956, 'tracts': 5},
'Florence': {'pop': 136885, 'tracts': 33},
'Georgetown': {'pop': 60158, 'tracts': 15},
'Greenville': {'pop': 451225, 'tracts': 111},
'Greenwood': {'pop': 69661, 'tracts': 14},
'Hampton': {'pop': 21090, 'tracts': 5},
'Horry': {'pop': 269291, 'tracts': 72},
'Jasper': {'pop': 24777, 'tracts': 5},
'Kershaw': {'pop': 61697, 'tracts': 15},
'Lancaster': {'pop': 76652, 'tracts': 14},
'Laurens': {'pop': 66537, 'tracts': 17},
'Lee': {'pop': 19220, 'tracts': 7},
'Lexington': {'pop': 262391, 'tracts': 74},
'Marion': {'pop': 33062, 'tracts': 8},
'Marlboro': {'pop': 28933, 'tracts': 7},
'McCormick': {'pop': 10233, 'tracts': 3},
'Newberry': {'pop': 37508, 'tracts': 8},
'Oconee': {'pop': 74273, 'tracts': 15},
'Orangeburg': {'pop': 92501, 'tracts': 20},
'Pickens': {'pop': 119224, 'tracts': 28},
'Richland': {'pop': 384504, 'tracts': 89},
'Saluda': {'pop': 19875, 'tracts': 5},
'Spartanburg': {'pop': 284307, 'tracts': 69},
'Sumter': {'pop': 107456, 'tracts': 23},
'Union': {'pop': 28961, 'tracts': 9},
'Williamsburg': {'pop': 34423, 'tracts': 11},
'York': {'pop': 226073, 'tracts': 46}},
'SD': {'Aurora': {'pop': 2710, 'tracts': 1},
'Beadle': {'pop': 17398, 'tracts': 6},
'Bennett': {'pop': 3431, 'tracts': 2},
'Bon Homme': {'pop': 7070, 'tracts': 2},
'Brookings': {'pop': 31965, 'tracts': 6},
'Brown': {'pop': 36531, 'tracts': 8},
'Brule': {'pop': 5255, 'tracts': 2},
'Buffalo': {'pop': 1912, 'tracts': 1},
'Butte': {'pop': 10110, 'tracts': 2},
'Campbell': {'pop': 1466, 'tracts': 1},
'Charles Mix': {'pop': 9129, 'tracts': 3},
'Clark': {'pop': 3691, 'tracts': 1},
'Clay': {'pop': 13864, 'tracts': 3},
'Codington': {'pop': 27227, 'tracts': 7},
'Corson': {'pop': 4050, 'tracts': 2},
'Custer': {'pop': 8216, 'tracts': 2},
'Davison': {'pop': 19504, 'tracts': 4},
'Day': {'pop': 5710, 'tracts': 3},
'Deuel': {'pop': 4364, 'tracts': 2},
'Dewey': {'pop': 5301, 'tracts': 2},
'Douglas': {'pop': 3002, 'tracts': 1},
'Edmunds': {'pop': 4071, 'tracts': 2},
'Fall River': {'pop': 7094, 'tracts': 2},
'Faulk': {'pop': 2364, 'tracts': 1},
'Grant': {'pop': 7356, 'tracts': 2},
'Gregory': {'pop': 4271, 'tracts': 2},
'Haakon': {'pop': 1937, 'tracts': 1},
'Hamlin': {'pop': 5903, 'tracts': 2},
'Hand': {'pop': 3431, 'tracts': 2},
'Hanson': {'pop': 3331, 'tracts': 1},
'Harding': {'pop': 1255, 'tracts': 1},
'Hughes': {'pop': 17022, 'tracts': 4},
'Hutchinson': {'pop': 7343, 'tracts': 3},
'Hyde': {'pop': 1420, 'tracts': 1},
'Jackson': {'pop': 3031, 'tracts': 2},
'Jerauld': {'pop': 2071, 'tracts': 1},
'Jones': {'pop': 1006, 'tracts': 1},
'Kingsbury': {'pop': 5148, 'tracts': 2},
'Lake': {'pop': 11200, 'tracts': 3},
'Lawrence': {'pop': 24097, 'tracts': 5},
'Lincoln': {'pop': 44828, 'tracts': 11},
'Lyman': {'pop': 3755, 'tracts': 2},
'Marshall': {'pop': 4656, 'tracts': 1},
'McCook': {'pop': 5618, 'tracts': 2},
'McPherson': {'pop': 2459, 'tracts': 1},
'Meade': {'pop': 25434, 'tracts': 5},
'Mellette': {'pop': 2048, 'tracts': 1},
'Miner': {'pop': 2389, 'tracts': 1},
'Minnehaha': {'pop': 169468, 'tracts': 42},
'Moody': {'pop': 6486, 'tracts': 2},
'Pennington': {'pop': 100948, 'tracts': 23},
'Perkins': {'pop': 2982, 'tracts': 1},
'Potter': {'pop': 2329, 'tracts': 1},
'Roberts': {'pop': 10149, 'tracts': 4},
'Sanborn': {'pop': 2355, 'tracts': 1},
'Shannon': {'pop': 13586, 'tracts': 3},
'Spink': {'pop': 6415, 'tracts': 3},
'Stanley': {'pop': 2966, 'tracts': 1},
'Sully': {'pop': 1373, 'tracts': 1},
'Todd': {'pop': 9612, 'tracts': 2},
'Tripp': {'pop': 5644, 'tracts': 2},
'Turner': {'pop': 8347, 'tracts': 2},
'Union': {'pop': 14399, 'tracts': 3},
'Walworth': {'pop': 5438, 'tracts': 2},
'Yankton': {'pop': 22438, 'tracts': 5},
'Ziebach': {'pop': 2801, 'tracts': 1}},
'TN': {'Anderson': {'pop': 75129, 'tracts': 18},
'Bedford': {'pop': 45058, 'tracts': 9},
'Benton': {'pop': 16489, 'tracts': 5},
'Bledsoe': {'pop': 12876, 'tracts': 3},
'Blount': {'pop': 123010, 'tracts': 28},
'Bradley': {'pop': 98963, 'tracts': 19},
'Campbell': {'pop': 40716, 'tracts': 11},
'Cannon': {'pop': 13801, 'tracts': 3},
'Carroll': {'pop': 28522, 'tracts': 8},
'Carter': {'pop': 57424, 'tracts': 17},
'Cheatham': {'pop': 39105, 'tracts': 9},
'Chester': {'pop': 17131, 'tracts': 3},
'Claiborne': {'pop': 32213, 'tracts': 9},
'Clay': {'pop': 7861, 'tracts': 2},
'Cocke': {'pop': 35662, 'tracts': 9},
'Coffee': {'pop': 52796, 'tracts': 12},
'Crockett': {'pop': 14586, 'tracts': 5},
'Cumberland': {'pop': 56053, 'tracts': 14},
'Davidson': {'pop': 626681, 'tracts': 161},
'DeKalb': {'pop': 18723, 'tracts': 4},
'Decatur': {'pop': 11757, 'tracts': 4},
'Dickson': {'pop': 49666, 'tracts': 10},
'Dyer': {'pop': 38335, 'tracts': 8},
'Fayette': {'pop': 38413, 'tracts': 11},
'Fentress': {'pop': 17959, 'tracts': 4},
'Franklin': {'pop': 41052, 'tracts': 9},
'Gibson': {'pop': 49683, 'tracts': 14},
'Giles': {'pop': 29485, 'tracts': 8},
'Grainger': {'pop': 22657, 'tracts': 5},
'Greene': {'pop': 68831, 'tracts': 15},
'Grundy': {'pop': 13703, 'tracts': 4},
'Hamblen': {'pop': 62544, 'tracts': 12},
'Hamilton': {'pop': 336463, 'tracts': 82},
'Hancock': {'pop': 6819, 'tracts': 2},
'Hardeman': {'pop': 27253, 'tracts': 6},
'Hardin': {'pop': 26026, 'tracts': 6},
'Hawkins': {'pop': 56833, 'tracts': 13},
'Haywood': {'pop': 18787, 'tracts': 6},
'Henderson': {'pop': 27769, 'tracts': 6},
'Henry': {'pop': 32330, 'tracts': 9},
'Hickman': {'pop': 24690, 'tracts': 6},
'Houston': {'pop': 8426, 'tracts': 3},
'Humphreys': {'pop': 18538, 'tracts': 5},
'Jackson': {'pop': 11638, 'tracts': 4},
'Jefferson': {'pop': 51407, 'tracts': 9},
'Johnson': {'pop': 18244, 'tracts': 5},
'Knox': {'pop': 432226, 'tracts': 112},
'Lake': {'pop': 7832, 'tracts': 2},
'Lauderdale': {'pop': 27815, 'tracts': 9},
'Lawrence': {'pop': 41869, 'tracts': 11},
'Lewis': {'pop': 12161, 'tracts': 2},
'Lincoln': {'pop': 33361, 'tracts': 9},
'Loudon': {'pop': 48556, 'tracts': 10},
'Macon': {'pop': 22248, 'tracts': 4},
'Madison': {'pop': 98294, 'tracts': 27},
'Marion': {'pop': 28237, 'tracts': 6},
'Marshall': {'pop': 30617, 'tracts': 6},
'Maury': {'pop': 80956, 'tracts': 17},
'McMinn': {'pop': 52266, 'tracts': 10},
'McNairy': {'pop': 26075, 'tracts': 7},
'Meigs': {'pop': 11753, 'tracts': 3},
'Monroe': {'pop': 44519, 'tracts': 7},
'Montgomery': {'pop': 172331, 'tracts': 39},
'Moore': {'pop': 6362, 'tracts': 2},
'Morgan': {'pop': 21987, 'tracts': 5},
'Obion': {'pop': 31807, 'tracts': 10},
'Overton': {'pop': 22083, 'tracts': 7},
'Perry': {'pop': 7915, 'tracts': 2},
'Pickett': {'pop': 5077, 'tracts': 1},
'Polk': {'pop': 16825, 'tracts': 5},
'Putnam': {'pop': 72321, 'tracts': 15},
'Rhea': {'pop': 31809, 'tracts': 6},
'Roane': {'pop': 54181, 'tracts': 11},
'Robertson': {'pop': 66283, 'tracts': 14},
'Rutherford': {'pop': 262604, 'tracts': 49},
'Scott': {'pop': 22228, 'tracts': 5},
'Sequatchie': {'pop': 14112, 'tracts': 3},
'Sevier': {'pop': 89889, 'tracts': 18},
'Shelby': {'pop': 927644, 'tracts': 221},
'Smith': {'pop': 19166, 'tracts': 5},
'Stewart': {'pop': 13324, 'tracts': 5},
'Sullivan': {'pop': 156823, 'tracts': 39},
'Sumner': {'pop': 160645, 'tracts': 42},
'Tipton': {'pop': 61081, 'tracts': 13},
'Trousdale': {'pop': 7870, 'tracts': 2},
'Unicoi': {'pop': 18313, 'tracts': 4},
'Union': {'pop': 19109, 'tracts': 4},
'Van Buren': {'pop': 5548, 'tracts': 2},
'Warren': {'pop': 39839, 'tracts': 9},
'Washington': {'pop': 122979, 'tracts': 23},
'Wayne': {'pop': 17021, 'tracts': 4},
'Weakley': {'pop': 35021, 'tracts': 11},
'White': {'pop': 25841, 'tracts': 6},
'Williamson': {'pop': 183182, 'tracts': 37},
'Wilson': {'pop': 113993, 'tracts': 21}},
'TX': {'Anderson': {'pop': 58458, 'tracts': 11},
'Andrews': {'pop': 14786, 'tracts': 4},
'Angelina': {'pop': 86771, 'tracts': 17},
'Aransas': {'pop': 23158, 'tracts': 5},
'Archer': {'pop': 9054, 'tracts': 3},
'Armstrong': {'pop': 1901, 'tracts': 1},
'Atascosa': {'pop': 44911, 'tracts': 8},
'Austin': {'pop': 28417, 'tracts': 6},
'Bailey': {'pop': 7165, 'tracts': 1},
'Bandera': {'pop': 20485, 'tracts': 5},
'Bastrop': {'pop': 74171, 'tracts': 10},
'Baylor': {'pop': 3726, 'tracts': 1},
'Bee': {'pop': 31861, 'tracts': 7},
'Bell': {'pop': 310235, 'tracts': 65},
'Bexar': {'pop': 1714773, 'tracts': 366},
'Blanco': {'pop': 10497, 'tracts': 2},
'Borden': {'pop': 641, 'tracts': 1},
'Bosque': {'pop': 18212, 'tracts': 7},
'Bowie': {'pop': 92565, 'tracts': 18},
'Brazoria': {'pop': 313166, 'tracts': 51},
'Brazos': {'pop': 194851, 'tracts': 42},
'Brewster': {'pop': 9232, 'tracts': 3},
'Briscoe': {'pop': 1637, 'tracts': 1},
'Brooks': {'pop': 7223, 'tracts': 2},
'Brown': {'pop': 38106, 'tracts': 12},
'Burleson': {'pop': 17187, 'tracts': 5},
'Burnet': {'pop': 42750, 'tracts': 8},
'Caldwell': {'pop': 38066, 'tracts': 8},
'Calhoun': {'pop': 21381, 'tracts': 6},
'Callahan': {'pop': 13544, 'tracts': 3},
'Cameron': {'pop': 406220, 'tracts': 86},
'Camp': {'pop': 12401, 'tracts': 3},
'Carson': {'pop': 6182, 'tracts': 2},
'Cass': {'pop': 30464, 'tracts': 7},
'Castro': {'pop': 8062, 'tracts': 3},
'Chambers': {'pop': 35096, 'tracts': 6},
'Cherokee': {'pop': 50845, 'tracts': 12},
'Childress': {'pop': 7041, 'tracts': 2},
'Clay': {'pop': 10752, 'tracts': 3},
'Cochran': {'pop': 3127, 'tracts': 1},
'Coke': {'pop': 3320, 'tracts': 2},
'Coleman': {'pop': 8895, 'tracts': 3},
'Collin': {'pop': 782341, 'tracts': 152},
'Collingsworth': {'pop': 3057, 'tracts': 1},
'Colorado': {'pop': 20874, 'tracts': 5},
'Comal': {'pop': 108472, 'tracts': 24},
'Comanche': {'pop': 13974, 'tracts': 4},
'Concho': {'pop': 4087, 'tracts': 1},
'Cooke': {'pop': 38437, 'tracts': 8},
'Coryell': {'pop': 75388, 'tracts': 19},
'Cottle': {'pop': 1505, 'tracts': 1},
'Crane': {'pop': 4375, 'tracts': 1},
'Crockett': {'pop': 3719, 'tracts': 1},
'Crosby': {'pop': 6059, 'tracts': 3},
'Culberson': {'pop': 2398, 'tracts': 1},
'Dallam': {'pop': 6703, 'tracts': 2},
'Dallas': {'pop': 2368139, 'tracts': 529},
'Dawson': {'pop': 13833, 'tracts': 4},
'DeWitt': {'pop': 20097, 'tracts': 5},
'Deaf Smith': {'pop': 19372, 'tracts': 4},
'Delta': {'pop': 5231, 'tracts': 2},
'Denton': {'pop': 662614, 'tracts': 137},
'Dickens': {'pop': 2444, 'tracts': 1},
'Dimmit': {'pop': 9996, 'tracts': 2},
'Donley': {'pop': 3677, 'tracts': 2},
'Duval': {'pop': 11782, 'tracts': 3},
'Eastland': {'pop': 18583, 'tracts': 5},
'Ector': {'pop': 137130, 'tracts': 28},
'Edwards': {'pop': 2002, 'tracts': 1},
'El Paso': {'pop': 800647, 'tracts': 161},
'Ellis': {'pop': 149610, 'tracts': 31},
'Erath': {'pop': 37890, 'tracts': 8},
'Falls': {'pop': 17866, 'tracts': 6},
'Fannin': {'pop': 33915, 'tracts': 9},
'Fayette': {'pop': 24554, 'tracts': 7},
'Fisher': {'pop': 3974, 'tracts': 2},
'Floyd': {'pop': 6446, 'tracts': 2},
'Foard': {'pop': 1336, 'tracts': 1},
'Fort Bend': {'pop': 585375, 'tracts': 76},
'Franklin': {'pop': 10605, 'tracts': 3},
'Freestone': {'pop': 19816, 'tracts': 7},
'Frio': {'pop': 17217, 'tracts': 3},
'Gaines': {'pop': 17526, 'tracts': 3},
'Galveston': {'pop': 291309, 'tracts': 67},
'Garza': {'pop': 6461, 'tracts': 1},
'Gillespie': {'pop': 24837, 'tracts': 5},
'Glasscock': {'pop': 1226, 'tracts': 1},
'Goliad': {'pop': 7210, 'tracts': 2},
'Gonzales': {'pop': 19807, 'tracts': 6},
'Gray': {'pop': 22535, 'tracts': 7},
'Grayson': {'pop': 120877, 'tracts': 26},
'Gregg': {'pop': 121730, 'tracts': 25},
'Grimes': {'pop': 26604, 'tracts': 6},
'Guadalupe': {'pop': 131533, 'tracts': 29},
'Hale': {'pop': 36273, 'tracts': 9},
'Hall': {'pop': 3353, 'tracts': 1},
'Hamilton': {'pop': 8517, 'tracts': 3},
'Hansford': {'pop': 5613, 'tracts': 2},
'Hardeman': {'pop': 4139, 'tracts': 1},
'Hardin': {'pop': 54635, 'tracts': 11},
'Harris': {'pop': 4092459, 'tracts': 786},
'Harrison': {'pop': 65631, 'tracts': 14},
'Hartley': {'pop': 6062, 'tracts': 1},
'Haskell': {'pop': 5899, 'tracts': 2},
'Hays': {'pop': 157107, 'tracts': 25},
'Hemphill': {'pop': 3807, 'tracts': 1},
'Henderson': {'pop': 78532, 'tracts': 17},
'Hidalgo': {'pop': 774769, 'tracts': 113},
'Hill': {'pop': 35089, 'tracts': 11},
'Hockley': {'pop': 22935, 'tracts': 7},
'Hood': {'pop': 51182, 'tracts': 10},
'Hopkins': {'pop': 35161, 'tracts': 9},
'Houston': {'pop': 23732, 'tracts': 7},
'Howard': {'pop': 35012, 'tracts': 10},
'Hudspeth': {'pop': 3476, 'tracts': 1},
'Hunt': {'pop': 86129, 'tracts': 19},
'Hutchinson': {'pop': 22150, 'tracts': 7},
'Irion': {'pop': 1599, 'tracts': 1},
'Jack': {'pop': 9044, 'tracts': 3},
'Jackson': {'pop': 14075, 'tracts': 3},
'Jasper': {'pop': 35710, 'tracts': 8},
'Jeff Davis': {'pop': 2342, 'tracts': 1},
'Jefferson': {'pop': 252273, 'tracts': 72},
'Jim Hogg': {'pop': 5300, 'tracts': 2},
'Jim Wells': {'pop': 40838, 'tracts': 7},
'Johnson': {'pop': 150934, 'tracts': 28},
'Jones': {'pop': 20202, 'tracts': 6},
'Karnes': {'pop': 14824, 'tracts': 4},
'Kaufman': {'pop': 103350, 'tracts': 18},
'Kendall': {'pop': 33410, 'tracts': 6},
'Kenedy': {'pop': 416, 'tracts': 1},
'Kent': {'pop': 808, 'tracts': 1},
'Kerr': {'pop': 49625, 'tracts': 10},
'Kimble': {'pop': 4607, 'tracts': 2},
'King': {'pop': 286, 'tracts': 1},
'Kinney': {'pop': 3598, 'tracts': 1},
'Kleberg': {'pop': 32061, 'tracts': 6},
'Knox': {'pop': 3719, 'tracts': 2},
'La Salle': {'pop': 6886, 'tracts': 1},
'Lamar': {'pop': 49793, 'tracts': 12},
'Lamb': {'pop': 13977, 'tracts': 5},
'Lampasas': {'pop': 19677, 'tracts': 5},
'Lavaca': {'pop': 19263, 'tracts': 6},
'Lee': {'pop': 16612, 'tracts': 4},
'Leon': {'pop': 16801, 'tracts': 3},
'Liberty': {'pop': 75643, 'tracts': 14},
'Limestone': {'pop': 23384, 'tracts': 8},
'Lipscomb': {'pop': 3302, 'tracts': 2},
'Live Oak': {'pop': 11531, 'tracts': 4},
'Llano': {'pop': 19301, 'tracts': 6},
'Loving': {'pop': 82, 'tracts': 1},
'Lubbock': {'pop': 278831, 'tracts': 68},
'Lynn': {'pop': 5915, 'tracts': 3},
'Madison': {'pop': 13664, 'tracts': 4},
'Marion': {'pop': 10546, 'tracts': 4},
'Martin': {'pop': 4799, 'tracts': 2},
'Mason': {'pop': 4012, 'tracts': 2},
'Matagorda': {'pop': 36702, 'tracts': 10},
'Maverick': {'pop': 54258, 'tracts': 9},
'McCulloch': {'pop': 8283, 'tracts': 3},
'McLennan': {'pop': 234906, 'tracts': 51},
'McMullen': {'pop': 707, 'tracts': 1},
'Medina': {'pop': 46006, 'tracts': 8},
'Menard': {'pop': 2242, 'tracts': 1},
'Midland': {'pop': 136872, 'tracts': 27},
'Milam': {'pop': 24757, 'tracts': 7},
'Mills': {'pop': 4936, 'tracts': 2},
'Mitchell': {'pop': 9403, 'tracts': 2},
'Montague': {'pop': 19719, 'tracts': 6},
'Montgomery': {'pop': 455746, 'tracts': 59},
'Moore': {'pop': 21904, 'tracts': 4},
'Morris': {'pop': 12934, 'tracts': 3},
'Motley': {'pop': 1210, 'tracts': 1},
'Nacogdoches': {'pop': 64524, 'tracts': 13},
'Navarro': {'pop': 47735, 'tracts': 10},
'Newton': {'pop': 14445, 'tracts': 4},
'Nolan': {'pop': 15216, 'tracts': 5},
'Nueces': {'pop': 340223, 'tracts': 81},
'Ochiltree': {'pop': 10223, 'tracts': 3},
'Oldham': {'pop': 2052, 'tracts': 1},
'Orange': {'pop': 81837, 'tracts': 21},
'Palo Pinto': {'pop': 28111, 'tracts': 9},
'Panola': {'pop': 23796, 'tracts': 6},
'Parker': {'pop': 116927, 'tracts': 19},
'Parmer': {'pop': 10269, 'tracts': 2},
'Pecos': {'pop': 15507, 'tracts': 4},
'Polk': {'pop': 45413, 'tracts': 10},
'Potter': {'pop': 121073, 'tracts': 34},
'Presidio': {'pop': 7818, 'tracts': 2},
'Rains': {'pop': 10914, 'tracts': 2},
'Randall': {'pop': 120725, 'tracts': 29},
'Reagan': {'pop': 3367, 'tracts': 1},
'Real': {'pop': 3309, 'tracts': 1},
'Red River': {'pop': 12860, 'tracts': 4},
'Reeves': {'pop': 13783, 'tracts': 5},
'Refugio': {'pop': 7383, 'tracts': 2},
'Roberts': {'pop': 929, 'tracts': 1},
'Robertson': {'pop': 16622, 'tracts': 5},
'Rockwall': {'pop': 78337, 'tracts': 11},
'Runnels': {'pop': 10501, 'tracts': 4},
'Rusk': {'pop': 53330, 'tracts': 13},
'Sabine': {'pop': 10834, 'tracts': 3},
'San Augustine': {'pop': 8865, 'tracts': 3},
'San Jacinto': {'pop': 26384, 'tracts': 4},
'San Patricio': {'pop': 64804, 'tracts': 16},
'San Saba': {'pop': 6131, 'tracts': 2},
'Schleicher': {'pop': 3461, 'tracts': 1},
'Scurry': {'pop': 16921, 'tracts': 4},
'Shackelford': {'pop': 3378, 'tracts': 1},
'Shelby': {'pop': 25448, 'tracts': 6},
'Sherman': {'pop': 3034, 'tracts': 1},
'Smith': {'pop': 209714, 'tracts': 41},
'Somervell': {'pop': 8490, 'tracts': 2},
'Starr': {'pop': 60968, 'tracts': 15},
'Stephens': {'pop': 9630, 'tracts': 3},
'Sterling': {'pop': 1143, 'tracts': 1},
'Stonewall': {'pop': 1490, 'tracts': 1},
'Sutton': {'pop': 4128, 'tracts': 1},
'Swisher': {'pop': 7854, 'tracts': 3},
'Tarrant': {'pop': 1809034, 'tracts': 357},
'Taylor': {'pop': 131506, 'tracts': 38},
'Terrell': {'pop': 984, 'tracts': 1},
'Terry': {'pop': 12651, 'tracts': 3},
'Throckmorton': {'pop': 1641, 'tracts': 1},
'Titus': {'pop': 32334, 'tracts': 8},
'Tom Green': {'pop': 110224, 'tracts': 25},
'Travis': {'pop': 1024266, 'tracts': 218},
'Trinity': {'pop': 14585, 'tracts': 5},
'Tyler': {'pop': 21766, 'tracts': 5},
'Upshur': {'pop': 39309, 'tracts': 7},
'Upton': {'pop': 3355, 'tracts': 2},
'Uvalde': {'pop': 26405, 'tracts': 5},
'Val Verde': {'pop': 48879, 'tracts': 10},
'Van Zandt': {'pop': 52579, 'tracts': 10},
'Victoria': {'pop': 86793, 'tracts': 23},
'Walker': {'pop': 67861, 'tracts': 10},
'Waller': {'pop': 43205, 'tracts': 6},
'Ward': {'pop': 10658, 'tracts': 3},
'Washington': {'pop': 33718, 'tracts': 6},
'Webb': {'pop': 250304, 'tracts': 61},
'Wharton': {'pop': 41280, 'tracts': 11},
'Wheeler': {'pop': 5410, 'tracts': 2},
'Wichita': {'pop': 131500, 'tracts': 37},
'Wilbarger': {'pop': 13535, 'tracts': 4},
'Willacy': {'pop': 22134, 'tracts': 6},
'Williamson': {'pop': 422679, 'tracts': 89},
'Wilson': {'pop': 42918, 'tracts': 11},
'Winkler': {'pop': 7110, 'tracts': 3},
'Wise': {'pop': 59127, 'tracts': 11},
'Wood': {'pop': 41964, 'tracts': 10},
'Yoakum': {'pop': 7879, 'tracts': 2},
'Young': {'pop': 18550, 'tracts': 4},
'Zapata': {'pop': 14018, 'tracts': 3},
'Zavala': {'pop': 11677, 'tracts': 4}},
'UT': {'Beaver': {'pop': 6629, 'tracts': 2},
'Box Elder': {'pop': 49975, 'tracts': 11},
'Cache': {'pop': 112656, 'tracts': 26},
'Carbon': {'pop': 21403, 'tracts': 5},
'Daggett': {'pop': 1059, 'tracts': 1},
'Davis': {'pop': 306479, 'tracts': 54},
'Duchesne': {'pop': 18607, 'tracts': 3},
'Emery': {'pop': 10976, 'tracts': 3},
'Garfield': {'pop': 5172, 'tracts': 2},
'Grand': {'pop': 9225, 'tracts': 2},
'Iron': {'pop': 46163, 'tracts': 8},
'Juab': {'pop': 10246, 'tracts': 2},
'Kane': {'pop': 7125, 'tracts': 2},
'Millard': {'pop': 12503, 'tracts': 3},
'Morgan': {'pop': 9469, 'tracts': 2},
'Piute': {'pop': 1556, 'tracts': 1},
'Rich': {'pop': 2264, 'tracts': 1},
'Salt Lake': {'pop': 1029655, 'tracts': 212},
'San Juan': {'pop': 14746, 'tracts': 4},
'Sanpete': {'pop': 27822, 'tracts': 5},
'Sevier': {'pop': 20802, 'tracts': 5},
'Summit': {'pop': 36324, 'tracts': 13},
'Tooele': {'pop': 58218, 'tracts': 11},
'Uintah': {'pop': 32588, 'tracts': 6},
'Utah': {'pop': 516564, 'tracts': 128},
'Wasatch': {'pop': 23530, 'tracts': 4},
'Washington': {'pop': 138115, 'tracts': 21},
'Wayne': {'pop': 2778, 'tracts': 1},
'Weber': {'pop': 231236, 'tracts': 50}},
'VA': {'Accomack': {'pop': 33164, 'tracts': 11},
'Albemarle': {'pop': 98970, 'tracts': 22},
'Alexandria': {'pop': 139966, 'tracts': 38},
'Alleghany': {'pop': 16250, 'tracts': 6},
'Amelia': {'pop': 12690, 'tracts': 2},
'Amherst': {'pop': 32353, 'tracts': 9},
'Appomattox': {'pop': 14973, 'tracts': 3},
'Arlington': {'pop': 207627, 'tracts': 59},
'Augusta': {'pop': 73750, 'tracts': 13},
'Bath': {'pop': 4731, 'tracts': 1},
'Bedford': {'pop': 68676, 'tracts': 16},
'Bedford City': {'pop': 6222, 'tracts': 1},
'Bland': {'pop': 6824, 'tracts': 2},
'Botetourt': {'pop': 33148, 'tracts': 8},
'Bristol': {'pop': 17835, 'tracts': 4},
'Brunswick': {'pop': 17434, 'tracts': 5},
'Buchanan': {'pop': 24098, 'tracts': 7},
'Buckingham': {'pop': 17146, 'tracts': 4},
'Buena Vista': {'pop': 6650, 'tracts': 1},
'Campbell': {'pop': 54842, 'tracts': 12},
'Caroline': {'pop': 28545, 'tracts': 7},
'Carroll': {'pop': 30042, 'tracts': 7},
'Charles City': {'pop': 7256, 'tracts': 3},
'Charlotte': {'pop': 12586, 'tracts': 3},
'Charlottesville': {'pop': 43475, 'tracts': 12},
'Chesapeake': {'pop': 222209, 'tracts': 41},
'Chesterfield': {'pop': 316236, 'tracts': 71},
'Clarke': {'pop': 14034, 'tracts': 3},
'Colonial Heights': {'pop': 17411, 'tracts': 5},
'Covington': {'pop': 5961, 'tracts': 2},
'Craig': {'pop': 5190, 'tracts': 1},
'Culpeper': {'pop': 46689, 'tracts': 8},
'Cumberland': {'pop': 10052, 'tracts': 2},
'Danville': {'pop': 43055, 'tracts': 16},
'Dickenson': {'pop': 15903, 'tracts': 4},
'Dinwiddie': {'pop': 28001, 'tracts': 7},
'Emporia': {'pop': 5927, 'tracts': 2},
'Essex': {'pop': 11151, 'tracts': 3},
'Fairfax': {'pop': 1081726, 'tracts': 258},
'Fairfax City': {'pop': 22565, 'tracts': 5},
'Falls Church': {'pop': 12332, 'tracts': 3},
'Fauquier': {'pop': 65203, 'tracts': 17},
'Floyd': {'pop': 15279, 'tracts': 3},
'Fluvanna': {'pop': 25691, 'tracts': 4},
'Franklin': {'pop': 56159, 'tracts': 10},
'Franklin City': {'pop': 8582, 'tracts': 2},
'Frederick': {'pop': 78305, 'tracts': 14},
'Fredericksburg': {'pop': 24286, 'tracts': 6},
'Galax': {'pop': 7042, 'tracts': 2},
'Giles': {'pop': 17286, 'tracts': 4},
'Gloucester': {'pop': 36858, 'tracts': 8},
'Goochland': {'pop': 21717, 'tracts': 5},
'Grayson': {'pop': 15533, 'tracts': 5},
'Greene': {'pop': 18403, 'tracts': 3},
'Greensville': {'pop': 12243, 'tracts': 3},
'Halifax': {'pop': 36241, 'tracts': 9},
'Hampton': {'pop': 137436, 'tracts': 34},
'Hanover': {'pop': 99863, 'tracts': 23},
'Harrisonburg': {'pop': 48914, 'tracts': 11},
'Henrico': {'pop': 306935, 'tracts': 64},
'Henry': {'pop': 54151, 'tracts': 14},
'Highland': {'pop': 2321, 'tracts': 1},
'Hopewell': {'pop': 22591, 'tracts': 7},
'Isle of Wight': {'pop': 35270, 'tracts': 8},
'James City': {'pop': 67009, 'tracts': 11},
'King George': {'pop': 23584, 'tracts': 5},
'King William': {'pop': 15935, 'tracts': 4},
'King and Queen': {'pop': 6945, 'tracts': 2},
'Lancaster': {'pop': 11391, 'tracts': 3},
'Lee': {'pop': 25587, 'tracts': 6},
'Lexington': {'pop': 7042, 'tracts': 1},
'Loudoun': {'pop': 312311, 'tracts': 65},
'Louisa': {'pop': 33153, 'tracts': 6},
'Lunenburg': {'pop': 12914, 'tracts': 3},
'Lynchburg': {'pop': 75568, 'tracts': 19},
'Madison': {'pop': 13308, 'tracts': 2},
'Manassas': {'pop': 37821, 'tracts': 7},
'Manassas Park': {'pop': 14273, 'tracts': 2},
'Martinsville': {'pop': 13821, 'tracts': 5},
'Mathews': {'pop': 8978, 'tracts': 2},
'Mecklenburg': {'pop': 32727, 'tracts': 9},
'Middlesex': {'pop': 10959, 'tracts': 4},
'Montgomery': {'pop': 94392, 'tracts': 16},
'Nelson': {'pop': 15020, 'tracts': 3},
'New Kent': {'pop': 18429, 'tracts': 3},
'Newport News': {'pop': 180719, 'tracts': 44},
'Norfolk': {'pop': 242803, 'tracts': 81},
'Northampton': {'pop': 12389, 'tracts': 4},
'Northumberland': {'pop': 12330, 'tracts': 3},
'Norton': {'pop': 3958, 'tracts': 1},
'Nottoway': {'pop': 15853, 'tracts': 4},
'Orange': {'pop': 33481, 'tracts': 5},
'Page': {'pop': 24042, 'tracts': 5},
'Patrick': {'pop': 18490, 'tracts': 4},
'Petersburg': {'pop': 32420, 'tracts': 11},
'Pittsylvania': {'pop': 63506, 'tracts': 16},
'Poquoson': {'pop': 12150, 'tracts': 3},
'Portsmouth': {'pop': 95535, 'tracts': 31},
'Powhatan': {'pop': 28046, 'tracts': 5},
'Prince Edward': {'pop': 23368, 'tracts': 5},
'Prince George': {'pop': 35725, 'tracts': 7},
'Prince William': {'pop': 402002, 'tracts': 83},
'Pulaski': {'pop': 34872, 'tracts': 10},
'Radford': {'pop': 16408, 'tracts': 3},
'Rappahannock': {'pop': 7373, 'tracts': 2},
'Richmond': {'pop': 9254, 'tracts': 2},
'Richmond City': {'pop': 204214, 'tracts': 66},
'Roanoke': {'pop': 92376, 'tracts': 18},
'Roanoke City': {'pop': 97032, 'tracts': 23},
'Rockbridge': {'pop': 22307, 'tracts': 4},
'Rockingham': {'pop': 76314, 'tracts': 19},
'Russell': {'pop': 28897, 'tracts': 7},
'Salem': {'pop': 24802, 'tracts': 5},
'Scott': {'pop': 23177, 'tracts': 6},
'Shenandoah': {'pop': 41993, 'tracts': 9},
'Smyth': {'pop': 32208, 'tracts': 9},
'Southampton': {'pop': 18570, 'tracts': 5},
'Spotsylvania': {'pop': 122397, 'tracts': 30},
'Stafford': {'pop': 128961, 'tracts': 27},
'Staunton': {'pop': 23746, 'tracts': 6},
'Suffolk': {'pop': 84585, 'tracts': 28},
'Surry': {'pop': 7058, 'tracts': 2},
'Sussex': {'pop': 12087, 'tracts': 5},
'Tazewell': {'pop': 45078, 'tracts': 11},
'Virginia Beach': {'pop': 437994, 'tracts': 100},
'Warren': {'pop': 37575, 'tracts': 8},
'Washington': {'pop': 54876, 'tracts': 13},
'Waynesboro': {'pop': 21006, 'tracts': 5},
'Westmoreland': {'pop': 17454, 'tracts': 4},
'Williamsburg': {'pop': 14068, 'tracts': 3},
'Winchester': {'pop': 26203, 'tracts': 5},
'Wise': {'pop': 41452, 'tracts': 11},
'Wythe': {'pop': 29235, 'tracts': 6},
'York': {'pop': 65464, 'tracts': 14}},
'VT': {'Addison': {'pop': 36821, 'tracts': 10},
'Bennington': {'pop': 37125, 'tracts': 12},
'Caledonia': {'pop': 31227, 'tracts': 10},
'Chittenden': {'pop': 156545, 'tracts': 35},
'Essex': {'pop': 6306, 'tracts': 3},
'Franklin': {'pop': 47746, 'tracts': 10},
'Grand Isle': {'pop': 6970, 'tracts': 2},
'Lamoille': {'pop': 24475, 'tracts': 7},
'Orange': {'pop': 28936, 'tracts': 10},
'Orleans': {'pop': 27231, 'tracts': 10},
'Rutland': {'pop': 61642, 'tracts': 20},
'Washington': {'pop': 59534, 'tracts': 19},
'Windham': {'pop': 44513, 'tracts': 18},
'Windsor': {'pop': 56670, 'tracts': 18}},
'WA': {'Adams': {'pop': 18728, 'tracts': 5},
'Asotin': {'pop': 21623, 'tracts': 6},
'Benton': {'pop': 175177, 'tracts': 37},
'Chelan': {'pop': 72453, 'tracts': 14},
'Clallam': {'pop': 71404, 'tracts': 22},
'Clark': {'pop': 425363, 'tracts': 104},
'Columbia': {'pop': 4078, 'tracts': 1},
'Cowlitz': {'pop': 102410, 'tracts': 24},
'Douglas': {'pop': 38431, 'tracts': 8},
'Ferry': {'pop': 7551, 'tracts': 3},
'Franklin': {'pop': 78163, 'tracts': 13},
'Garfield': {'pop': 2266, 'tracts': 1},
'Grant': {'pop': 89120, 'tracts': 16},
'Grays Harbor': {'pop': 72797, 'tracts': 17},
'Island': {'pop': 78506, 'tracts': 22},
'Jefferson': {'pop': 29872, 'tracts': 7},
'King': {'pop': 1931249, 'tracts': 397},
'Kitsap': {'pop': 251133, 'tracts': 55},
'Kittitas': {'pop': 40915, 'tracts': 8},
'Klickitat': {'pop': 20318, 'tracts': 3},
'Lewis': {'pop': 75455, 'tracts': 20},
'Lincoln': {'pop': 10570, 'tracts': 4},
'Mason': {'pop': 60699, 'tracts': 14},
'Okanogan': {'pop': 41120, 'tracts': 10},
'Pacific': {'pop': 20920, 'tracts': 8},
'Pend Oreille': {'pop': 13001, 'tracts': 5},
'Pierce': {'pop': 795225, 'tracts': 172},
'San Juan': {'pop': 15769, 'tracts': 5},
'Skagit': {'pop': 116901, 'tracts': 30},
'Skamania': {'pop': 11066, 'tracts': 5},
'Snohomish': {'pop': 713335, 'tracts': 151},
'Spokane': {'pop': 471221, 'tracts': 105},
'Stevens': {'pop': 43531, 'tracts': 12},
'Thurston': {'pop': 252264, 'tracts': 49},
'Wahkiakum': {'pop': 3978, 'tracts': 1},
'Walla Walla': {'pop': 58781, 'tracts': 12},
'Whatcom': {'pop': 201140, 'tracts': 34},
'Whitman': {'pop': 44776, 'tracts': 10},
'Yakima': {'pop': 243231, 'tracts': 45}},
'WI': {'Adams': {'pop': 20875, 'tracts': 7},
'Ashland': {'pop': 16157, 'tracts': 7},
'Barron': {'pop': 45870, 'tracts': 10},
'Bayfield': {'pop': 15014, 'tracts': 5},
'Brown': {'pop': 248007, 'tracts': 54},
'Buffalo': {'pop': 13587, 'tracts': 5},
'Burnett': {'pop': 15457, 'tracts': 6},
'Calumet': {'pop': 48971, 'tracts': 11},
'Chippewa': {'pop': 62415, 'tracts': 11},
'Clark': {'pop': 34690, 'tracts': 8},
'Columbia': {'pop': 56833, 'tracts': 12},
'Crawford': {'pop': 16644, 'tracts': 6},
'Dane': {'pop': 488073, 'tracts': 107},
'Dodge': {'pop': 88759, 'tracts': 20},
'Door': {'pop': 27785, 'tracts': 9},
'Douglas': {'pop': 44159, 'tracts': 12},
'Dunn': {'pop': 43857, 'tracts': 8},
'Eau Claire': {'pop': 98736, 'tracts': 20},
'Florence': {'pop': 4423, 'tracts': 2},
'Fond du Lac': {'pop': 101633, 'tracts': 20},
'Forest': {'pop': 9304, 'tracts': 4},
'Grant': {'pop': 51208, 'tracts': 12},
'Green': {'pop': 36842, 'tracts': 8},
'Green Lake': {'pop': 19051, 'tracts': 6},
'Iowa': {'pop': 23687, 'tracts': 6},
'Iron': {'pop': 5916, 'tracts': 3},
'Jackson': {'pop': 20449, 'tracts': 5},
'Jefferson': {'pop': 83686, 'tracts': 20},
'Juneau': {'pop': 26664, 'tracts': 7},
'Kenosha': {'pop': 166426, 'tracts': 35},
'Kewaunee': {'pop': 20574, 'tracts': 4},
'La Crosse': {'pop': 114638, 'tracts': 25},
'Lafayette': {'pop': 16836, 'tracts': 5},
'Langlade': {'pop': 19977, 'tracts': 6},
'Lincoln': {'pop': 28743, 'tracts': 10},
'Manitowoc': {'pop': 81442, 'tracts': 19},
'Marathon': {'pop': 134063, 'tracts': 27},
'Marinette': {'pop': 41749, 'tracts': 12},
'Marquette': {'pop': 15404, 'tracts': 5},
'Menominee': {'pop': 4232, 'tracts': 2},
'Milwaukee': {'pop': 947735, 'tracts': 297},
'Monroe': {'pop': 44673, 'tracts': 9},
'Oconto': {'pop': 37660, 'tracts': 10},
'Oneida': {'pop': 35998, 'tracts': 14},
'Outagamie': {'pop': 176695, 'tracts': 40},
'Ozaukee': {'pop': 86395, 'tracts': 18},
'Pepin': {'pop': 7469, 'tracts': 2},
'Pierce': {'pop': 41019, 'tracts': 8},
'Polk': {'pop': 44205, 'tracts': 10},
'Portage': {'pop': 70019, 'tracts': 14},
'Price': {'pop': 14159, 'tracts': 6},
'Racine': {'pop': 195408, 'tracts': 44},
'Richland': {'pop': 18021, 'tracts': 5},
'Rock': {'pop': 160331, 'tracts': 38},
'Rusk': {'pop': 14755, 'tracts': 5},
'Sauk': {'pop': 61976, 'tracts': 13},
'Sawyer': {'pop': 16557, 'tracts': 6},
'Shawano': {'pop': 41949, 'tracts': 11},
'Sheboygan': {'pop': 115507, 'tracts': 26},
'St. Croix': {'pop': 84345, 'tracts': 14},
'Taylor': {'pop': 20689, 'tracts': 6},
'Trempealeau': {'pop': 28816, 'tracts': 8},
'Vernon': {'pop': 29773, 'tracts': 7},
'Vilas': {'pop': 21430, 'tracts': 5},
'Walworth': {'pop': 102228, 'tracts': 22},
'Washburn': {'pop': 15911, 'tracts': 5},
'Washington': {'pop': 131887, 'tracts': 28},
'Waukesha': {'pop': 389891, 'tracts': 86},
'Waupaca': {'pop': 52410, 'tracts': 12},
'Waushara': {'pop': 24496, 'tracts': 7},
'Winnebago': {'pop': 166994, 'tracts': 41},
'Wood': {'pop': 74749, 'tracts': 17}},
'WV': {'Barbour': {'pop': 16589, 'tracts': 4},
'Berkeley': {'pop': 104169, 'tracts': 14},
'Boone': {'pop': 24629, 'tracts': 8},
'Braxton': {'pop': 14523, 'tracts': 3},
'Brooke': {'pop': 24069, 'tracts': 6},
'Cabell': {'pop': 96319, 'tracts': 29},
'Calhoun': {'pop': 7627, 'tracts': 2},
'Clay': {'pop': 9386, 'tracts': 3},
'Doddridge': {'pop': 8202, 'tracts': 2},
'Fayette': {'pop': 46039, 'tracts': 12},
'Gilmer': {'pop': 8693, 'tracts': 2},
'Grant': {'pop': 11937, 'tracts': 3},
'Greenbrier': {'pop': 35480, 'tracts': 7},
'Hampshire': {'pop': 23964, 'tracts': 5},
'Hancock': {'pop': 30676, 'tracts': 8},
'Hardy': {'pop': 14025, 'tracts': 3},
'Harrison': {'pop': 69099, 'tracts': 22},
'Jackson': {'pop': 29211, 'tracts': 6},
'Jefferson': {'pop': 53498, 'tracts': 15},
'Kanawha': {'pop': 193063, 'tracts': 53},
'Lewis': {'pop': 16372, 'tracts': 5},
'Lincoln': {'pop': 21720, 'tracts': 5},
'Logan': {'pop': 36743, 'tracts': 9},
'Marion': {'pop': 56418, 'tracts': 18},
'Marshall': {'pop': 33107, 'tracts': 9},
'Mason': {'pop': 27324, 'tracts': 6},
'McDowell': {'pop': 22113, 'tracts': 8},
'Mercer': {'pop': 62264, 'tracts': 16},
'Mineral': {'pop': 28212, 'tracts': 7},
'Mingo': {'pop': 26839, 'tracts': 7},
'Monongalia': {'pop': 96189, 'tracts': 24},
'Monroe': {'pop': 13502, 'tracts': 3},
'Morgan': {'pop': 17541, 'tracts': 4},
'Nicholas': {'pop': 26233, 'tracts': 7},
'Ohio': {'pop': 44443, 'tracts': 18},
'Pendleton': {'pop': 7695, 'tracts': 3},
'Pleasants': {'pop': 7605, 'tracts': 2},
'Pocahontas': {'pop': 8719, 'tracts': 4},
'Preston': {'pop': 33520, 'tracts': 8},
'Putnam': {'pop': 55486, 'tracts': 10},
'Raleigh': {'pop': 78859, 'tracts': 17},
'Randolph': {'pop': 29405, 'tracts': 7},
'Ritchie': {'pop': 10449, 'tracts': 3},
'Roane': {'pop': 14926, 'tracts': 4},
'Summers': {'pop': 13927, 'tracts': 4},
'Taylor': {'pop': 16895, 'tracts': 4},
'Tucker': {'pop': 7141, 'tracts': 3},
'Tyler': {'pop': 9208, 'tracts': 3},
'Upshur': {'pop': 24254, 'tracts': 6},
'Wayne': {'pop': 42481, 'tracts': 11},
'Webster': {'pop': 9154, 'tracts': 3},
'Wetzel': {'pop': 16583, 'tracts': 5},
'Wirt': {'pop': 5717, 'tracts': 2},
'Wood': {'pop': 86956, 'tracts': 26},
'Wyoming': {'pop': 23796, 'tracts': 6}},
'WY': {'Albany': {'pop': 36299, 'tracts': 10},
'Big Horn': {'pop': 11668, 'tracts': 3},
'Campbell': {'pop': 46133, 'tracts': 7},
'Carbon': {'pop': 15885, 'tracts': 5},
'Converse': {'pop': 13833, 'tracts': 4},
'Crook': {'pop': 7083, 'tracts': 2},
'Fremont': {'pop': 40123, 'tracts': 10},
'Goshen': {'pop': 13249, 'tracts': 4},
'Hot Springs': {'pop': 4812, 'tracts': 2},
'Johnson': {'pop': 8569, 'tracts': 2},
'Laramie': {'pop': 91738, 'tracts': 21},
'Lincoln': {'pop': 18106, 'tracts': 4},
'Natrona': {'pop': 75450, 'tracts': 18},
'Niobrara': {'pop': 2484, 'tracts': 1},
'Park': {'pop': 28205, 'tracts': 5},
'Platte': {'pop': 8667, 'tracts': 2},
'Sheridan': {'pop': 29116, 'tracts': 6},
'Sublette': {'pop': 10247, 'tracts': 2},
'Sweetwater': {'pop': 43806, 'tracts': 12},
'Teton': {'pop': 21294, 'tracts': 4},
'Uinta': {'pop': 21118, 'tracts': 3},
'Washakie': {'pop': 8533, 'tracts': 3},
'Weston': {'pop': 7208, 'tracts': 2}}} | all_data = {'AK': {'Aleutians East': {'pop': 3141, 'tracts': 1}, 'Aleutians West': {'pop': 5561, 'tracts': 2}, 'Anchorage': {'pop': 291826, 'tracts': 55}, 'Bethel': {'pop': 17013, 'tracts': 3}, 'Bristol Bay': {'pop': 997, 'tracts': 1}, 'Denali': {'pop': 1826, 'tracts': 1}, 'Dillingham': {'pop': 4847, 'tracts': 2}, 'Fairbanks North Star': {'pop': 97581, 'tracts': 19}, 'Haines': {'pop': 2508, 'tracts': 1}, 'Hoonah-Angoon': {'pop': 2150, 'tracts': 2}, 'Juneau': {'pop': 31275, 'tracts': 6}, 'Kenai Peninsula': {'pop': 55400, 'tracts': 13}, 'Ketchikan Gateway': {'pop': 13477, 'tracts': 4}, 'Kodiak Island': {'pop': 13592, 'tracts': 5}, 'Lake and Peninsula': {'pop': 1631, 'tracts': 1}, 'Matanuska-Susitna': {'pop': 88995, 'tracts': 24}, 'Nome': {'pop': 9492, 'tracts': 2}, 'North Slope': {'pop': 9430, 'tracts': 3}, 'Northwest Arctic': {'pop': 7523, 'tracts': 2}, 'Petersburg': {'pop': 3815, 'tracts': 1}, 'Prince of Wales-Hyder': {'pop': 5559, 'tracts': 4}, 'Sitka': {'pop': 8881, 'tracts': 2}, 'Skagway': {'pop': 968, 'tracts': 1}, 'Southeast Fairbanks': {'pop': 7029, 'tracts': 2}, 'Valdez-Cordova': {'pop': 9636, 'tracts': 3}, 'Wade Hampton': {'pop': 7459, 'tracts': 1}, 'Wrangell': {'pop': 2369, 'tracts': 1}, 'Yakutat': {'pop': 662, 'tracts': 1}, 'Yukon-Koyukuk': {'pop': 5588, 'tracts': 4}}, 'AL': {'Autauga': {'pop': 54571, 'tracts': 12}, 'Baldwin': {'pop': 182265, 'tracts': 31}, 'Barbour': {'pop': 27457, 'tracts': 9}, 'Bibb': {'pop': 22915, 'tracts': 4}, 'Blount': {'pop': 57322, 'tracts': 9}, 'Bullock': {'pop': 10914, 'tracts': 3}, 'Butler': {'pop': 20947, 'tracts': 9}, 'Calhoun': {'pop': 118572, 'tracts': 31}, 'Chambers': {'pop': 34215, 'tracts': 9}, 'Cherokee': {'pop': 25989, 'tracts': 6}, 'Chilton': {'pop': 43643, 'tracts': 9}, 'Choctaw': {'pop': 13859, 'tracts': 4}, 'Clarke': {'pop': 25833, 'tracts': 9}, 'Clay': {'pop': 13932, 'tracts': 4}, 'Cleburne': {'pop': 14972, 'tracts': 4}, 'Coffee': {'pop': 49948, 'tracts': 14}, 'Colbert': {'pop': 54428, 'tracts': 14}, 'Conecuh': {'pop': 13228, 'tracts': 5}, 'Coosa': {'pop': 11539, 'tracts': 3}, 'Covington': {'pop': 37765, 'tracts': 14}, 'Crenshaw': {'pop': 13906, 'tracts': 6}, 'Cullman': {'pop': 80406, 'tracts': 18}, 'Dale': {'pop': 50251, 'tracts': 14}, 'Dallas': {'pop': 43820, 'tracts': 15}, 'DeKalb': {'pop': 71109, 'tracts': 14}, 'Elmore': {'pop': 79303, 'tracts': 15}, 'Escambia': {'pop': 38319, 'tracts': 9}, 'Etowah': {'pop': 104430, 'tracts': 30}, 'Fayette': {'pop': 17241, 'tracts': 5}, 'Franklin': {'pop': 31704, 'tracts': 9}, 'Geneva': {'pop': 26790, 'tracts': 6}, 'Greene': {'pop': 9045, 'tracts': 3}, 'Hale': {'pop': 15760, 'tracts': 6}, 'Henry': {'pop': 17302, 'tracts': 6}, 'Houston': {'pop': 101547, 'tracts': 22}, 'Jackson': {'pop': 53227, 'tracts': 11}, 'Jefferson': {'pop': 658466, 'tracts': 163}, 'Lamar': {'pop': 14564, 'tracts': 3}, 'Lauderdale': {'pop': 92709, 'tracts': 22}, 'Lawrence': {'pop': 34339, 'tracts': 9}, 'Lee': {'pop': 140247, 'tracts': 27}, 'Limestone': {'pop': 82782, 'tracts': 16}, 'Lowndes': {'pop': 11299, 'tracts': 4}, 'Macon': {'pop': 21452, 'tracts': 12}, 'Madison': {'pop': 334811, 'tracts': 73}, 'Marengo': {'pop': 21027, 'tracts': 6}, 'Marion': {'pop': 30776, 'tracts': 8}, 'Marshall': {'pop': 93019, 'tracts': 18}, 'Mobile': {'pop': 412992, 'tracts': 114}, 'Monroe': {'pop': 23068, 'tracts': 7}, 'Montgomery': {'pop': 229363, 'tracts': 65}, 'Morgan': {'pop': 119490, 'tracts': 27}, 'Perry': {'pop': 10591, 'tracts': 3}, 'Pickens': {'pop': 19746, 'tracts': 5}, 'Pike': {'pop': 32899, 'tracts': 8}, 'Randolph': {'pop': 22913, 'tracts': 6}, 'Russell': {'pop': 52947, 'tracts': 13}, 'Shelby': {'pop': 195085, 'tracts': 48}, 'St. Clair': {'pop': 83593, 'tracts': 13}, 'Sumter': {'pop': 13763, 'tracts': 4}, 'Talladega': {'pop': 82291, 'tracts': 22}, 'Tallapoosa': {'pop': 41616, 'tracts': 10}, 'Tuscaloosa': {'pop': 194656, 'tracts': 47}, 'Walker': {'pop': 67023, 'tracts': 18}, 'Washington': {'pop': 17581, 'tracts': 5}, 'Wilcox': {'pop': 11670, 'tracts': 4}, 'Winston': {'pop': 24484, 'tracts': 7}}, 'AR': {'Arkansas': {'pop': 19019, 'tracts': 8}, 'Ashley': {'pop': 21853, 'tracts': 7}, 'Baxter': {'pop': 41513, 'tracts': 9}, 'Benton': {'pop': 221339, 'tracts': 49}, 'Boone': {'pop': 36903, 'tracts': 7}, 'Bradley': {'pop': 11508, 'tracts': 5}, 'Calhoun': {'pop': 5368, 'tracts': 2}, 'Carroll': {'pop': 27446, 'tracts': 5}, 'Chicot': {'pop': 11800, 'tracts': 4}, 'Clark': {'pop': 22995, 'tracts': 5}, 'Clay': {'pop': 16083, 'tracts': 6}, 'Cleburne': {'pop': 25970, 'tracts': 7}, 'Cleveland': {'pop': 8689, 'tracts': 2}, 'Columbia': {'pop': 24552, 'tracts': 5}, 'Conway': {'pop': 21273, 'tracts': 6}, 'Craighead': {'pop': 96443, 'tracts': 17}, 'Crawford': {'pop': 61948, 'tracts': 11}, 'Crittenden': {'pop': 50902, 'tracts': 20}, 'Cross': {'pop': 17870, 'tracts': 6}, 'Dallas': {'pop': 8116, 'tracts': 3}, 'Desha': {'pop': 13008, 'tracts': 5}, 'Drew': {'pop': 18509, 'tracts': 5}, 'Faulkner': {'pop': 113237, 'tracts': 25}, 'Franklin': {'pop': 18125, 'tracts': 3}, 'Fulton': {'pop': 12245, 'tracts': 2}, 'Garland': {'pop': 96024, 'tracts': 20}, 'Grant': {'pop': 17853, 'tracts': 4}, 'Greene': {'pop': 42090, 'tracts': 9}, 'Hempstead': {'pop': 22609, 'tracts': 5}, 'Hot Spring': {'pop': 32923, 'tracts': 7}, 'Howard': {'pop': 13789, 'tracts': 3}, 'Independence': {'pop': 36647, 'tracts': 8}, 'Izard': {'pop': 13696, 'tracts': 4}, 'Jackson': {'pop': 17997, 'tracts': 5}, 'Jefferson': {'pop': 77435, 'tracts': 24}, 'Johnson': {'pop': 25540, 'tracts': 6}, 'Lafayette': {'pop': 7645, 'tracts': 2}, 'Lawrence': {'pop': 17415, 'tracts': 6}, 'Lee': {'pop': 10424, 'tracts': 4}, 'Lincoln': {'pop': 14134, 'tracts': 4}, 'Little River': {'pop': 13171, 'tracts': 4}, 'Logan': {'pop': 22353, 'tracts': 6}, 'Lonoke': {'pop': 68356, 'tracts': 16}, 'Madison': {'pop': 15717, 'tracts': 4}, 'Marion': {'pop': 16653, 'tracts': 4}, 'Miller': {'pop': 43462, 'tracts': 12}, 'Mississippi': {'pop': 46480, 'tracts': 12}, 'Monroe': {'pop': 8149, 'tracts': 3}, 'Montgomery': {'pop': 9487, 'tracts': 3}, 'Nevada': {'pop': 8997, 'tracts': 3}, 'Newton': {'pop': 8330, 'tracts': 2}, 'Ouachita': {'pop': 26120, 'tracts': 6}, 'Perry': {'pop': 10445, 'tracts': 3}, 'Phillips': {'pop': 21757, 'tracts': 6}, 'Pike': {'pop': 11291, 'tracts': 3}, 'Poinsett': {'pop': 24583, 'tracts': 7}, 'Polk': {'pop': 20662, 'tracts': 6}, 'Pope': {'pop': 61754, 'tracts': 11}, 'Prairie': {'pop': 8715, 'tracts': 3}, 'Pulaski': {'pop': 382748, 'tracts': 95}, 'Randolph': {'pop': 17969, 'tracts': 4}, 'Saline': {'pop': 107118, 'tracts': 21}, 'Scott': {'pop': 11233, 'tracts': 3}, 'Searcy': {'pop': 8195, 'tracts': 3}, 'Sebastian': {'pop': 125744, 'tracts': 26}, 'Sevier': {'pop': 17058, 'tracts': 4}, 'Sharp': {'pop': 17264, 'tracts': 4}, 'St. Francis': {'pop': 28258, 'tracts': 6}, 'Stone': {'pop': 12394, 'tracts': 3}, 'Union': {'pop': 41639, 'tracts': 10}, 'Van Buren': {'pop': 17295, 'tracts': 5}, 'Washington': {'pop': 203065, 'tracts': 32}, 'White': {'pop': 77076, 'tracts': 13}, 'Woodruff': {'pop': 7260, 'tracts': 2}, 'Yell': {'pop': 22185, 'tracts': 6}}, 'AZ': {'Apache': {'pop': 71518, 'tracts': 16}, 'Cochise': {'pop': 131346, 'tracts': 32}, 'Coconino': {'pop': 134421, 'tracts': 28}, 'Gila': {'pop': 53597, 'tracts': 16}, 'Graham': {'pop': 37220, 'tracts': 9}, 'Greenlee': {'pop': 8437, 'tracts': 3}, 'La Paz': {'pop': 20489, 'tracts': 9}, 'Maricopa': {'pop': 3817117, 'tracts': 916}, 'Mohave': {'pop': 200186, 'tracts': 43}, 'Navajo': {'pop': 107449, 'tracts': 31}, 'Pima': {'pop': 980263, 'tracts': 241}, 'Pinal': {'pop': 375770, 'tracts': 75}, 'Santa Cruz': {'pop': 47420, 'tracts': 10}, 'Yavapai': {'pop': 211033, 'tracts': 42}, 'Yuma': {'pop': 195751, 'tracts': 55}}, 'CA': {'Alameda': {'pop': 1510271, 'tracts': 360}, 'Alpine': {'pop': 1175, 'tracts': 1}, 'Amador': {'pop': 38091, 'tracts': 9}, 'Butte': {'pop': 220000, 'tracts': 51}, 'Calaveras': {'pop': 45578, 'tracts': 10}, 'Colusa': {'pop': 21419, 'tracts': 5}, 'Contra Costa': {'pop': 1049025, 'tracts': 208}, 'Del Norte': {'pop': 28610, 'tracts': 7}, 'El Dorado': {'pop': 181058, 'tracts': 43}, 'Fresno': {'pop': 930450, 'tracts': 199}, 'Glenn': {'pop': 28122, 'tracts': 6}, 'Humboldt': {'pop': 134623, 'tracts': 30}, 'Imperial': {'pop': 174528, 'tracts': 31}, 'Inyo': {'pop': 18546, 'tracts': 6}, 'Kern': {'pop': 839631, 'tracts': 151}, 'Kings': {'pop': 152982, 'tracts': 27}, 'Lake': {'pop': 64665, 'tracts': 15}, 'Lassen': {'pop': 34895, 'tracts': 9}, 'Los Angeles': {'pop': 9818605, 'tracts': 2343}, 'Madera': {'pop': 150865, 'tracts': 23}, 'Marin': {'pop': 252409, 'tracts': 55}, 'Mariposa': {'pop': 18251, 'tracts': 6}, 'Mendocino': {'pop': 87841, 'tracts': 20}, 'Merced': {'pop': 255793, 'tracts': 49}, 'Modoc': {'pop': 9686, 'tracts': 4}, 'Mono': {'pop': 14202, 'tracts': 3}, 'Monterey': {'pop': 415057, 'tracts': 93}, 'Napa': {'pop': 136484, 'tracts': 40}, 'Nevada': {'pop': 98764, 'tracts': 20}, 'Orange': {'pop': 3010232, 'tracts': 583}, 'Placer': {'pop': 348432, 'tracts': 85}, 'Plumas': {'pop': 20007, 'tracts': 7}, 'Riverside': {'pop': 2189641, 'tracts': 453}, 'Sacramento': {'pop': 1418788, 'tracts': 317}, 'San Benito': {'pop': 55269, 'tracts': 11}, 'San Bernardino': {'pop': 2035210, 'tracts': 369}, 'San Diego': {'pop': 3095313, 'tracts': 628}, 'San Francisco': {'pop': 805235, 'tracts': 196}, 'San Joaquin': {'pop': 685306, 'tracts': 139}, 'San Luis Obispo': {'pop': 269637, 'tracts': 53}, 'San Mateo': {'pop': 718451, 'tracts': 158}, 'Santa Barbara': {'pop': 423895, 'tracts': 90}, 'Santa Clara': {'pop': 1781642, 'tracts': 372}, 'Santa Cruz': {'pop': 262382, 'tracts': 52}, 'Shasta': {'pop': 177223, 'tracts': 48}, 'Sierra': {'pop': 3240, 'tracts': 1}, 'Siskiyou': {'pop': 44900, 'tracts': 14}, 'Solano': {'pop': 413344, 'tracts': 96}, 'Sonoma': {'pop': 483878, 'tracts': 99}, 'Stanislaus': {'pop': 514453, 'tracts': 94}, 'Sutter': {'pop': 94737, 'tracts': 21}, 'Tehama': {'pop': 63463, 'tracts': 11}, 'Trinity': {'pop': 13786, 'tracts': 5}, 'Tulare': {'pop': 442179, 'tracts': 78}, 'Tuolumne': {'pop': 55365, 'tracts': 11}, 'Ventura': {'pop': 823318, 'tracts': 174}, 'Yolo': {'pop': 200849, 'tracts': 41}, 'Yuba': {'pop': 72155, 'tracts': 14}}, 'CO': {'Adams': {'pop': 441603, 'tracts': 97}, 'Alamosa': {'pop': 15445, 'tracts': 4}, 'Arapahoe': {'pop': 572003, 'tracts': 147}, 'Archuleta': {'pop': 12084, 'tracts': 4}, 'Baca': {'pop': 3788, 'tracts': 2}, 'Bent': {'pop': 6499, 'tracts': 1}, 'Boulder': {'pop': 294567, 'tracts': 68}, 'Broomfield': {'pop': 55889, 'tracts': 18}, 'Chaffee': {'pop': 17809, 'tracts': 5}, 'Cheyenne': {'pop': 1836, 'tracts': 1}, 'Clear Creek': {'pop': 9088, 'tracts': 3}, 'Conejos': {'pop': 8256, 'tracts': 2}, 'Costilla': {'pop': 3524, 'tracts': 2}, 'Crowley': {'pop': 5823, 'tracts': 1}, 'Custer': {'pop': 4255, 'tracts': 1}, 'Delta': {'pop': 30952, 'tracts': 7}, 'Denver': {'pop': 600158, 'tracts': 144}, 'Dolores': {'pop': 2064, 'tracts': 1}, 'Douglas': {'pop': 285465, 'tracts': 61}, 'Eagle': {'pop': 52197, 'tracts': 14}, 'El Paso': {'pop': 622263, 'tracts': 130}, 'Elbert': {'pop': 23086, 'tracts': 7}, 'Fremont': {'pop': 46824, 'tracts': 14}, 'Garfield': {'pop': 56389, 'tracts': 11}, 'Gilpin': {'pop': 5441, 'tracts': 1}, 'Grand': {'pop': 14843, 'tracts': 3}, 'Gunnison': {'pop': 15324, 'tracts': 4}, 'Hinsdale': {'pop': 843, 'tracts': 1}, 'Huerfano': {'pop': 6711, 'tracts': 2}, 'Jackson': {'pop': 1394, 'tracts': 1}, 'Jefferson': {'pop': 534543, 'tracts': 138}, 'Kiowa': {'pop': 1398, 'tracts': 1}, 'Kit Carson': {'pop': 8270, 'tracts': 3}, 'La Plata': {'pop': 51334, 'tracts': 10}, 'Lake': {'pop': 7310, 'tracts': 2}, 'Larimer': {'pop': 299630, 'tracts': 73}, 'Las Animas': {'pop': 15507, 'tracts': 6}, 'Lincoln': {'pop': 5467, 'tracts': 2}, 'Logan': {'pop': 22709, 'tracts': 6}, 'Mesa': {'pop': 146723, 'tracts': 29}, 'Mineral': {'pop': 712, 'tracts': 1}, 'Moffat': {'pop': 13795, 'tracts': 4}, 'Montezuma': {'pop': 25535, 'tracts': 7}, 'Montrose': {'pop': 41276, 'tracts': 10}, 'Morgan': {'pop': 28159, 'tracts': 8}, 'Otero': {'pop': 18831, 'tracts': 7}, 'Ouray': {'pop': 4436, 'tracts': 1}, 'Park': {'pop': 16206, 'tracts': 5}, 'Phillips': {'pop': 4442, 'tracts': 2}, 'Pitkin': {'pop': 17148, 'tracts': 4}, 'Prowers': {'pop': 12551, 'tracts': 5}, 'Pueblo': {'pop': 159063, 'tracts': 55}, 'Rio Blanco': {'pop': 6666, 'tracts': 2}, 'Rio Grande': {'pop': 11982, 'tracts': 3}, 'Routt': {'pop': 23509, 'tracts': 8}, 'Saguache': {'pop': 6108, 'tracts': 2}, 'San Juan': {'pop': 699, 'tracts': 1}, 'San Miguel': {'pop': 7359, 'tracts': 4}, 'Sedgwick': {'pop': 2379, 'tracts': 1}, 'Summit': {'pop': 27994, 'tracts': 5}, 'Teller': {'pop': 23350, 'tracts': 6}, 'Washington': {'pop': 4814, 'tracts': 2}, 'Weld': {'pop': 252825, 'tracts': 77}, 'Yuma': {'pop': 10043, 'tracts': 2}}, 'CT': {'Fairfield': {'pop': 916829, 'tracts': 211}, 'Hartford': {'pop': 894014, 'tracts': 224}, 'Litchfield': {'pop': 189927, 'tracts': 51}, 'Middlesex': {'pop': 165676, 'tracts': 36}, 'New Haven': {'pop': 862477, 'tracts': 190}, 'New London': {'pop': 274055, 'tracts': 66}, 'Tolland': {'pop': 152691, 'tracts': 29}, 'Windham': {'pop': 118428, 'tracts': 25}}, 'DC': {'District of Columbia': {'pop': 601723, 'tracts': 179}}, 'DE': {'Kent': {'pop': 162310, 'tracts': 33}, 'New Castle': {'pop': 538479, 'tracts': 131}, 'Sussex': {'pop': 197145, 'tracts': 54}}, 'FL': {'Alachua': {'pop': 247336, 'tracts': 56}, 'Baker': {'pop': 27115, 'tracts': 4}, 'Bay': {'pop': 168852, 'tracts': 44}, 'Bradford': {'pop': 28520, 'tracts': 4}, 'Brevard': {'pop': 543376, 'tracts': 113}, 'Broward': {'pop': 1748066, 'tracts': 361}, 'Calhoun': {'pop': 14625, 'tracts': 3}, 'Charlotte': {'pop': 159978, 'tracts': 39}, 'Citrus': {'pop': 141236, 'tracts': 27}, 'Clay': {'pop': 190865, 'tracts': 30}, 'Collier': {'pop': 321520, 'tracts': 73}, 'Columbia': {'pop': 67531, 'tracts': 12}, 'DeSoto': {'pop': 34862, 'tracts': 9}, 'Dixie': {'pop': 16422, 'tracts': 3}, 'Duval': {'pop': 864263, 'tracts': 173}, 'Escambia': {'pop': 297619, 'tracts': 71}, 'Flagler': {'pop': 95696, 'tracts': 20}, 'Franklin': {'pop': 11549, 'tracts': 4}, 'Gadsden': {'pop': 46389, 'tracts': 9}, 'Gilchrist': {'pop': 16939, 'tracts': 5}, 'Glades': {'pop': 12884, 'tracts': 4}, 'Gulf': {'pop': 15863, 'tracts': 3}, 'Hamilton': {'pop': 14799, 'tracts': 3}, 'Hardee': {'pop': 27731, 'tracts': 6}, 'Hendry': {'pop': 39140, 'tracts': 7}, 'Hernando': {'pop': 172778, 'tracts': 45}, 'Highlands': {'pop': 98786, 'tracts': 27}, 'Hillsborough': {'pop': 1229226, 'tracts': 321}, 'Holmes': {'pop': 19927, 'tracts': 4}, 'Indian River': {'pop': 138028, 'tracts': 30}, 'Jackson': {'pop': 49746, 'tracts': 11}, 'Jefferson': {'pop': 14761, 'tracts': 3}, 'Lafayette': {'pop': 8870, 'tracts': 2}, 'Lake': {'pop': 297052, 'tracts': 56}, 'Lee': {'pop': 618754, 'tracts': 166}, 'Leon': {'pop': 275487, 'tracts': 68}, 'Levy': {'pop': 40801, 'tracts': 9}, 'Liberty': {'pop': 8365, 'tracts': 2}, 'Madison': {'pop': 19224, 'tracts': 5}, 'Manatee': {'pop': 322833, 'tracts': 78}, 'Marion': {'pop': 331298, 'tracts': 63}, 'Martin': {'pop': 146318, 'tracts': 35}, 'Miami-Dade': {'pop': 2496435, 'tracts': 519}, 'Monroe': {'pop': 73090, 'tracts': 30}, 'Nassau': {'pop': 73314, 'tracts': 12}, 'Okaloosa': {'pop': 180822, 'tracts': 41}, 'Okeechobee': {'pop': 39996, 'tracts': 12}, 'Orange': {'pop': 1145956, 'tracts': 207}, 'Osceola': {'pop': 268685, 'tracts': 41}, 'Palm Beach': {'pop': 1320134, 'tracts': 337}, 'Pasco': {'pop': 464697, 'tracts': 134}, 'Pinellas': {'pop': 916542, 'tracts': 245}, 'Polk': {'pop': 602095, 'tracts': 154}, 'Putnam': {'pop': 74364, 'tracts': 17}, 'Santa Rosa': {'pop': 151372, 'tracts': 25}, 'Sarasota': {'pop': 379448, 'tracts': 94}, 'Seminole': {'pop': 422718, 'tracts': 86}, 'St. Johns': {'pop': 190039, 'tracts': 40}, 'St. Lucie': {'pop': 277789, 'tracts': 44}, 'Sumter': {'pop': 93420, 'tracts': 19}, 'Suwannee': {'pop': 41551, 'tracts': 7}, 'Taylor': {'pop': 22570, 'tracts': 4}, 'Union': {'pop': 15535, 'tracts': 3}, 'Volusia': {'pop': 494593, 'tracts': 113}, 'Wakulla': {'pop': 30776, 'tracts': 4}, 'Walton': {'pop': 55043, 'tracts': 11}, 'Washington': {'pop': 24896, 'tracts': 7}}, 'GA': {'Appling': {'pop': 18236, 'tracts': 5}, 'Atkinson': {'pop': 8375, 'tracts': 3}, 'Bacon': {'pop': 11096, 'tracts': 3}, 'Baker': {'pop': 3451, 'tracts': 2}, 'Baldwin': {'pop': 45720, 'tracts': 9}, 'Banks': {'pop': 18395, 'tracts': 4}, 'Barrow': {'pop': 69367, 'tracts': 18}, 'Bartow': {'pop': 100157, 'tracts': 15}, 'Ben Hill': {'pop': 17634, 'tracts': 5}, 'Berrien': {'pop': 19286, 'tracts': 6}, 'Bibb': {'pop': 155547, 'tracts': 44}, 'Bleckley': {'pop': 13063, 'tracts': 3}, 'Brantley': {'pop': 18411, 'tracts': 3}, 'Brooks': {'pop': 16243, 'tracts': 5}, 'Bryan': {'pop': 30233, 'tracts': 7}, 'Bulloch': {'pop': 70217, 'tracts': 12}, 'Burke': {'pop': 23316, 'tracts': 6}, 'Butts': {'pop': 23655, 'tracts': 3}, 'Calhoun': {'pop': 6694, 'tracts': 2}, 'Camden': {'pop': 50513, 'tracts': 10}, 'Candler': {'pop': 10998, 'tracts': 3}, 'Carroll': {'pop': 110527, 'tracts': 17}, 'Catoosa': {'pop': 63942, 'tracts': 11}, 'Charlton': {'pop': 12171, 'tracts': 2}, 'Chatham': {'pop': 265128, 'tracts': 72}, 'Chattahoochee': {'pop': 11267, 'tracts': 5}, 'Chattooga': {'pop': 26015, 'tracts': 6}, 'Cherokee': {'pop': 214346, 'tracts': 26}, 'Clarke': {'pop': 116714, 'tracts': 30}, 'Clay': {'pop': 3183, 'tracts': 1}, 'Clayton': {'pop': 259424, 'tracts': 50}, 'Clinch': {'pop': 6798, 'tracts': 2}, 'Cobb': {'pop': 688078, 'tracts': 120}, 'Coffee': {'pop': 42356, 'tracts': 9}, 'Colquitt': {'pop': 45498, 'tracts': 10}, 'Columbia': {'pop': 124053, 'tracts': 20}, 'Cook': {'pop': 17212, 'tracts': 4}, 'Coweta': {'pop': 127317, 'tracts': 20}, 'Crawford': {'pop': 12630, 'tracts': 3}, 'Crisp': {'pop': 23439, 'tracts': 6}, 'Dade': {'pop': 16633, 'tracts': 4}, 'Dawson': {'pop': 22330, 'tracts': 3}, 'DeKalb': {'pop': 691893, 'tracts': 145}, 'Decatur': {'pop': 27842, 'tracts': 7}, 'Dodge': {'pop': 21796, 'tracts': 6}, 'Dooly': {'pop': 14918, 'tracts': 3}, 'Dougherty': {'pop': 94565, 'tracts': 27}, 'Douglas': {'pop': 132403, 'tracts': 20}, 'Early': {'pop': 11008, 'tracts': 5}, 'Echols': {'pop': 4034, 'tracts': 2}, 'Effingham': {'pop': 52250, 'tracts': 10}, 'Elbert': {'pop': 20166, 'tracts': 5}, 'Emanuel': {'pop': 22598, 'tracts': 6}, 'Evans': {'pop': 11000, 'tracts': 3}, 'Fannin': {'pop': 23682, 'tracts': 5}, 'Fayette': {'pop': 106567, 'tracts': 20}, 'Floyd': {'pop': 96317, 'tracts': 20}, 'Forsyth': {'pop': 175511, 'tracts': 45}, 'Franklin': {'pop': 22084, 'tracts': 5}, 'Fulton': {'pop': 920581, 'tracts': 204}, 'Gilmer': {'pop': 28292, 'tracts': 5}, 'Glascock': {'pop': 3082, 'tracts': 1}, 'Glynn': {'pop': 79626, 'tracts': 15}, 'Gordon': {'pop': 55186, 'tracts': 9}, 'Grady': {'pop': 25011, 'tracts': 6}, 'Greene': {'pop': 15994, 'tracts': 7}, 'Gwinnett': {'pop': 805321, 'tracts': 113}, 'Habersham': {'pop': 43041, 'tracts': 8}, 'Hall': {'pop': 179684, 'tracts': 36}, 'Hancock': {'pop': 9429, 'tracts': 2}, 'Haralson': {'pop': 28780, 'tracts': 5}, 'Harris': {'pop': 32024, 'tracts': 5}, 'Hart': {'pop': 25213, 'tracts': 5}, 'Heard': {'pop': 11834, 'tracts': 3}, 'Henry': {'pop': 203922, 'tracts': 25}, 'Houston': {'pop': 139900, 'tracts': 23}, 'Irwin': {'pop': 9538, 'tracts': 2}, 'Jackson': {'pop': 60485, 'tracts': 11}, 'Jasper': {'pop': 13900, 'tracts': 3}, 'Jeff Davis': {'pop': 15068, 'tracts': 3}, 'Jefferson': {'pop': 16930, 'tracts': 4}, 'Jenkins': {'pop': 8340, 'tracts': 2}, 'Johnson': {'pop': 9980, 'tracts': 3}, 'Jones': {'pop': 28669, 'tracts': 6}, 'Lamar': {'pop': 18317, 'tracts': 3}, 'Lanier': {'pop': 10078, 'tracts': 2}, 'Laurens': {'pop': 48434, 'tracts': 13}, 'Lee': {'pop': 28298, 'tracts': 5}, 'Liberty': {'pop': 63453, 'tracts': 14}, 'Lincoln': {'pop': 7996, 'tracts': 2}, 'Long': {'pop': 14464, 'tracts': 3}, 'Lowndes': {'pop': 109233, 'tracts': 25}, 'Lumpkin': {'pop': 29966, 'tracts': 4}, 'Macon': {'pop': 14740, 'tracts': 4}, 'Madison': {'pop': 28120, 'tracts': 6}, 'Marion': {'pop': 8742, 'tracts': 2}, 'McDuffie': {'pop': 21875, 'tracts': 5}, 'McIntosh': {'pop': 14333, 'tracts': 4}, 'Meriwether': {'pop': 21992, 'tracts': 4}, 'Miller': {'pop': 6125, 'tracts': 3}, 'Mitchell': {'pop': 23498, 'tracts': 5}, 'Monroe': {'pop': 26424, 'tracts': 5}, 'Montgomery': {'pop': 9123, 'tracts': 3}, 'Morgan': {'pop': 17868, 'tracts': 5}, 'Murray': {'pop': 39628, 'tracts': 8}, 'Muscogee': {'pop': 189885, 'tracts': 53}, 'Newton': {'pop': 99958, 'tracts': 13}, 'Oconee': {'pop': 32808, 'tracts': 6}, 'Oglethorpe': {'pop': 14899, 'tracts': 4}, 'Paulding': {'pop': 142324, 'tracts': 19}, 'Peach': {'pop': 27695, 'tracts': 6}, 'Pickens': {'pop': 29431, 'tracts': 6}, 'Pierce': {'pop': 18758, 'tracts': 4}, 'Pike': {'pop': 17869, 'tracts': 4}, 'Polk': {'pop': 41475, 'tracts': 7}, 'Pulaski': {'pop': 12010, 'tracts': 3}, 'Putnam': {'pop': 21218, 'tracts': 5}, 'Quitman': {'pop': 2513, 'tracts': 1}, 'Rabun': {'pop': 16276, 'tracts': 5}, 'Randolph': {'pop': 7719, 'tracts': 2}, 'Richmond': {'pop': 200549, 'tracts': 47}, 'Rockdale': {'pop': 85215, 'tracts': 15}, 'Schley': {'pop': 5010, 'tracts': 2}, 'Screven': {'pop': 14593, 'tracts': 5}, 'Seminole': {'pop': 8729, 'tracts': 3}, 'Spalding': {'pop': 64073, 'tracts': 12}, 'Stephens': {'pop': 26175, 'tracts': 5}, 'Stewart': {'pop': 6058, 'tracts': 2}, 'Sumter': {'pop': 32819, 'tracts': 8}, 'Talbot': {'pop': 6865, 'tracts': 3}, 'Taliaferro': {'pop': 1717, 'tracts': 1}, 'Tattnall': {'pop': 25520, 'tracts': 5}, 'Taylor': {'pop': 8906, 'tracts': 3}, 'Telfair': {'pop': 16500, 'tracts': 3}, 'Terrell': {'pop': 9315, 'tracts': 4}, 'Thomas': {'pop': 44720, 'tracts': 11}, 'Tift': {'pop': 40118, 'tracts': 9}, 'Toombs': {'pop': 27223, 'tracts': 6}, 'Towns': {'pop': 10471, 'tracts': 3}, 'Treutlen': {'pop': 6885, 'tracts': 2}, 'Troup': {'pop': 67044, 'tracts': 14}, 'Turner': {'pop': 8930, 'tracts': 2}, 'Twiggs': {'pop': 9023, 'tracts': 2}, 'Union': {'pop': 21356, 'tracts': 6}, 'Upson': {'pop': 27153, 'tracts': 7}, 'Walker': {'pop': 68756, 'tracts': 13}, 'Walton': {'pop': 83768, 'tracts': 15}, 'Ware': {'pop': 36312, 'tracts': 9}, 'Warren': {'pop': 5834, 'tracts': 2}, 'Washington': {'pop': 21187, 'tracts': 5}, 'Wayne': {'pop': 30099, 'tracts': 6}, 'Webster': {'pop': 2799, 'tracts': 2}, 'Wheeler': {'pop': 7421, 'tracts': 2}, 'White': {'pop': 27144, 'tracts': 5}, 'Whitfield': {'pop': 102599, 'tracts': 18}, 'Wilcox': {'pop': 9255, 'tracts': 4}, 'Wilkes': {'pop': 10593, 'tracts': 4}, 'Wilkinson': {'pop': 9563, 'tracts': 3}, 'Worth': {'pop': 21679, 'tracts': 5}}, 'HI': {'Hawaii': {'pop': 185079, 'tracts': 34}, 'Honolulu': {'pop': 953207, 'tracts': 244}, 'Kalawao': {'pop': 90, 'tracts': 1}, 'Kauai': {'pop': 67091, 'tracts': 16}, 'Maui': {'pop': 154834, 'tracts': 37}}, 'IA': {'Adair': {'pop': 7682, 'tracts': 3}, 'Adams': {'pop': 4029, 'tracts': 2}, 'Allamakee': {'pop': 14330, 'tracts': 5}, 'Appanoose': {'pop': 12887, 'tracts': 5}, 'Audubon': {'pop': 6119, 'tracts': 3}, 'Benton': {'pop': 26076, 'tracts': 7}, 'Black Hawk': {'pop': 131090, 'tracts': 38}, 'Boone': {'pop': 26306, 'tracts': 7}, 'Bremer': {'pop': 24276, 'tracts': 8}, 'Buchanan': {'pop': 20958, 'tracts': 6}, 'Buena Vista': {'pop': 20260, 'tracts': 6}, 'Butler': {'pop': 14867, 'tracts': 5}, 'Calhoun': {'pop': 9670, 'tracts': 4}, 'Carroll': {'pop': 20816, 'tracts': 6}, 'Cass': {'pop': 13956, 'tracts': 5}, 'Cedar': {'pop': 18499, 'tracts': 5}, 'Cerro Gordo': {'pop': 44151, 'tracts': 11}, 'Cherokee': {'pop': 12072, 'tracts': 4}, 'Chickasaw': {'pop': 12439, 'tracts': 4}, 'Clarke': {'pop': 9286, 'tracts': 3}, 'Clay': {'pop': 16667, 'tracts': 4}, 'Clayton': {'pop': 18129, 'tracts': 6}, 'Clinton': {'pop': 49116, 'tracts': 12}, 'Crawford': {'pop': 17096, 'tracts': 5}, 'Dallas': {'pop': 66135, 'tracts': 15}, 'Davis': {'pop': 8753, 'tracts': 2}, 'Decatur': {'pop': 8457, 'tracts': 3}, 'Delaware': {'pop': 17764, 'tracts': 4}, 'Des Moines': {'pop': 40325, 'tracts': 11}, 'Dickinson': {'pop': 16667, 'tracts': 5}, 'Dubuque': {'pop': 93653, 'tracts': 26}, 'Emmet': {'pop': 10302, 'tracts': 4}, 'Fayette': {'pop': 20880, 'tracts': 7}, 'Floyd': {'pop': 16303, 'tracts': 5}, 'Franklin': {'pop': 10680, 'tracts': 3}, 'Fremont': {'pop': 7441, 'tracts': 3}, 'Greene': {'pop': 9336, 'tracts': 4}, 'Grundy': {'pop': 12453, 'tracts': 4}, 'Guthrie': {'pop': 10954, 'tracts': 3}, 'Hamilton': {'pop': 15673, 'tracts': 5}, 'Hancock': {'pop': 11341, 'tracts': 4}, 'Hardin': {'pop': 17534, 'tracts': 6}, 'Harrison': {'pop': 14928, 'tracts': 5}, 'Henry': {'pop': 20145, 'tracts': 5}, 'Howard': {'pop': 9566, 'tracts': 3}, 'Humboldt': {'pop': 9815, 'tracts': 4}, 'Ida': {'pop': 7089, 'tracts': 3}, 'Iowa': {'pop': 16355, 'tracts': 4}, 'Jackson': {'pop': 19848, 'tracts': 6}, 'Jasper': {'pop': 36842, 'tracts': 9}, 'Jefferson': {'pop': 16843, 'tracts': 4}, 'Johnson': {'pop': 130882, 'tracts': 24}, 'Jones': {'pop': 20638, 'tracts': 5}, 'Keokuk': {'pop': 10511, 'tracts': 4}, 'Kossuth': {'pop': 15543, 'tracts': 6}, 'Lee': {'pop': 35862, 'tracts': 11}, 'Linn': {'pop': 211226, 'tracts': 45}, 'Louisa': {'pop': 11387, 'tracts': 3}, 'Lucas': {'pop': 8898, 'tracts': 4}, 'Lyon': {'pop': 11581, 'tracts': 3}, 'Madison': {'pop': 15679, 'tracts': 3}, 'Mahaska': {'pop': 22381, 'tracts': 7}, 'Marion': {'pop': 33309, 'tracts': 8}, 'Marshall': {'pop': 40648, 'tracts': 10}, 'Mills': {'pop': 15059, 'tracts': 5}, 'Mitchell': {'pop': 10776, 'tracts': 3}, 'Monona': {'pop': 9243, 'tracts': 4}, 'Monroe': {'pop': 7970, 'tracts': 3}, 'Montgomery': {'pop': 10740, 'tracts': 4}, 'Muscatine': {'pop': 42745, 'tracts': 10}, "O'Brien": {'pop': 14398, 'tracts': 4}, 'Osceola': {'pop': 6462, 'tracts': 2}, 'Page': {'pop': 15932, 'tracts': 6}, 'Palo Alto': {'pop': 9421, 'tracts': 4}, 'Plymouth': {'pop': 24986, 'tracts': 6}, 'Pocahontas': {'pop': 7310, 'tracts': 3}, 'Polk': {'pop': 430640, 'tracts': 98}, 'Pottawattamie': {'pop': 93158, 'tracts': 30}, 'Poweshiek': {'pop': 18914, 'tracts': 5}, 'Ringgold': {'pop': 5131, 'tracts': 2}, 'Sac': {'pop': 10350, 'tracts': 4}, 'Scott': {'pop': 165224, 'tracts': 47}, 'Shelby': {'pop': 12167, 'tracts': 4}, 'Sioux': {'pop': 33704, 'tracts': 7}, 'Story': {'pop': 89542, 'tracts': 20}, 'Tama': {'pop': 17767, 'tracts': 6}, 'Taylor': {'pop': 6317, 'tracts': 3}, 'Union': {'pop': 12534, 'tracts': 4}, 'Van Buren': {'pop': 7570, 'tracts': 2}, 'Wapello': {'pop': 35625, 'tracts': 11}, 'Warren': {'pop': 46225, 'tracts': 12}, 'Washington': {'pop': 21704, 'tracts': 5}, 'Wayne': {'pop': 6403, 'tracts': 3}, 'Webster': {'pop': 38013, 'tracts': 12}, 'Winnebago': {'pop': 10866, 'tracts': 3}, 'Winneshiek': {'pop': 21056, 'tracts': 5}, 'Woodbury': {'pop': 102172, 'tracts': 26}, 'Worth': {'pop': 7598, 'tracts': 3}, 'Wright': {'pop': 13229, 'tracts': 5}}, 'ID': {'Ada': {'pop': 392365, 'tracts': 59}, 'Adams': {'pop': 3976, 'tracts': 2}, 'Bannock': {'pop': 82839, 'tracts': 22}, 'Bear Lake': {'pop': 5986, 'tracts': 2}, 'Benewah': {'pop': 9285, 'tracts': 2}, 'Bingham': {'pop': 45607, 'tracts': 8}, 'Blaine': {'pop': 21376, 'tracts': 4}, 'Boise': {'pop': 7028, 'tracts': 1}, 'Bonner': {'pop': 40877, 'tracts': 9}, 'Bonneville': {'pop': 104234, 'tracts': 21}, 'Boundary': {'pop': 10972, 'tracts': 2}, 'Butte': {'pop': 2891, 'tracts': 1}, 'Camas': {'pop': 1117, 'tracts': 1}, 'Canyon': {'pop': 188923, 'tracts': 29}, 'Caribou': {'pop': 6963, 'tracts': 2}, 'Cassia': {'pop': 22952, 'tracts': 6}, 'Clark': {'pop': 982, 'tracts': 1}, 'Clearwater': {'pop': 8761, 'tracts': 2}, 'Custer': {'pop': 4368, 'tracts': 1}, 'Elmore': {'pop': 27038, 'tracts': 5}, 'Franklin': {'pop': 12786, 'tracts': 2}, 'Fremont': {'pop': 13242, 'tracts': 3}, 'Gem': {'pop': 16719, 'tracts': 3}, 'Gooding': {'pop': 15464, 'tracts': 2}, 'Idaho': {'pop': 16267, 'tracts': 5}, 'Jefferson': {'pop': 26140, 'tracts': 4}, 'Jerome': {'pop': 22374, 'tracts': 5}, 'Kootenai': {'pop': 138494, 'tracts': 25}, 'Latah': {'pop': 37244, 'tracts': 7}, 'Lemhi': {'pop': 7936, 'tracts': 3}, 'Lewis': {'pop': 3821, 'tracts': 3}, 'Lincoln': {'pop': 5208, 'tracts': 1}, 'Madison': {'pop': 37536, 'tracts': 6}, 'Minidoka': {'pop': 20069, 'tracts': 5}, 'Nez Perce': {'pop': 39265, 'tracts': 10}, 'Oneida': {'pop': 4286, 'tracts': 1}, 'Owyhee': {'pop': 11526, 'tracts': 3}, 'Payette': {'pop': 22623, 'tracts': 4}, 'Power': {'pop': 7817, 'tracts': 2}, 'Shoshone': {'pop': 12765, 'tracts': 3}, 'Teton': {'pop': 10170, 'tracts': 1}, 'Twin Falls': {'pop': 77230, 'tracts': 14}, 'Valley': {'pop': 9862, 'tracts': 3}, 'Washington': {'pop': 10198, 'tracts': 3}}, 'IL': {'Adams': {'pop': 67103, 'tracts': 18}, 'Alexander': {'pop': 8238, 'tracts': 4}, 'Bond': {'pop': 17768, 'tracts': 4}, 'Boone': {'pop': 54165, 'tracts': 7}, 'Brown': {'pop': 6937, 'tracts': 2}, 'Bureau': {'pop': 34978, 'tracts': 10}, 'Calhoun': {'pop': 5089, 'tracts': 2}, 'Carroll': {'pop': 15387, 'tracts': 6}, 'Cass': {'pop': 13642, 'tracts': 5}, 'Champaign': {'pop': 201081, 'tracts': 43}, 'Christian': {'pop': 34800, 'tracts': 10}, 'Clark': {'pop': 16335, 'tracts': 4}, 'Clay': {'pop': 13815, 'tracts': 4}, 'Clinton': {'pop': 37762, 'tracts': 8}, 'Coles': {'pop': 53873, 'tracts': 12}, 'Cook': {'pop': 5194675, 'tracts': 1318}, 'Crawford': {'pop': 19817, 'tracts': 6}, 'Cumberland': {'pop': 11048, 'tracts': 3}, 'De Witt': {'pop': 16561, 'tracts': 5}, 'DeKalb': {'pop': 105160, 'tracts': 21}, 'Douglas': {'pop': 19980, 'tracts': 5}, 'DuPage': {'pop': 916924, 'tracts': 216}, 'Edgar': {'pop': 18576, 'tracts': 5}, 'Edwards': {'pop': 6721, 'tracts': 3}, 'Effingham': {'pop': 34242, 'tracts': 8}, 'Fayette': {'pop': 22140, 'tracts': 7}, 'Ford': {'pop': 14081, 'tracts': 5}, 'Franklin': {'pop': 39561, 'tracts': 12}, 'Fulton': {'pop': 37069, 'tracts': 12}, 'Gallatin': {'pop': 5589, 'tracts': 2}, 'Greene': {'pop': 13886, 'tracts': 5}, 'Grundy': {'pop': 50063, 'tracts': 10}, 'Hamilton': {'pop': 8457, 'tracts': 3}, 'Hancock': {'pop': 19104, 'tracts': 7}, 'Hardin': {'pop': 4320, 'tracts': 2}, 'Henderson': {'pop': 7331, 'tracts': 3}, 'Henry': {'pop': 50486, 'tracts': 13}, 'Iroquois': {'pop': 29718, 'tracts': 9}, 'Jackson': {'pop': 60218, 'tracts': 14}, 'Jasper': {'pop': 9698, 'tracts': 3}, 'Jefferson': {'pop': 38827, 'tracts': 11}, 'Jersey': {'pop': 22985, 'tracts': 6}, 'Jo Daviess': {'pop': 22678, 'tracts': 6}, 'Johnson': {'pop': 12582, 'tracts': 4}, 'Kane': {'pop': 515269, 'tracts': 82}, 'Kankakee': {'pop': 113449, 'tracts': 29}, 'Kendall': {'pop': 114736, 'tracts': 10}, 'Knox': {'pop': 52919, 'tracts': 16}, 'La Salle': {'pop': 113924, 'tracts': 28}, 'Lake': {'pop': 703462, 'tracts': 153}, 'Lawrence': {'pop': 16833, 'tracts': 5}, 'Lee': {'pop': 36031, 'tracts': 9}, 'Livingston': {'pop': 38950, 'tracts': 10}, 'Logan': {'pop': 30305, 'tracts': 8}, 'Macon': {'pop': 110768, 'tracts': 34}, 'Macoupin': {'pop': 47765, 'tracts': 13}, 'Madison': {'pop': 269282, 'tracts': 61}, 'Marion': {'pop': 39437, 'tracts': 12}, 'Marshall': {'pop': 12640, 'tracts': 5}, 'Mason': {'pop': 14666, 'tracts': 6}, 'Massac': {'pop': 15429, 'tracts': 4}, 'McDonough': {'pop': 32612, 'tracts': 10}, 'McHenry': {'pop': 308760, 'tracts': 52}, 'McLean': {'pop': 169572, 'tracts': 41}, 'Menard': {'pop': 12705, 'tracts': 3}, 'Mercer': {'pop': 16434, 'tracts': 4}, 'Monroe': {'pop': 32957, 'tracts': 6}, 'Montgomery': {'pop': 30104, 'tracts': 8}, 'Morgan': {'pop': 35547, 'tracts': 10}, 'Moultrie': {'pop': 14846, 'tracts': 4}, 'Ogle': {'pop': 53497, 'tracts': 11}, 'Peoria': {'pop': 186494, 'tracts': 48}, 'Perry': {'pop': 22350, 'tracts': 6}, 'Piatt': {'pop': 16729, 'tracts': 4}, 'Pike': {'pop': 16430, 'tracts': 5}, 'Pope': {'pop': 4470, 'tracts': 2}, 'Pulaski': {'pop': 6161, 'tracts': 2}, 'Putnam': {'pop': 6006, 'tracts': 2}, 'Randolph': {'pop': 33476, 'tracts': 9}, 'Richland': {'pop': 16233, 'tracts': 5}, 'Rock Island': {'pop': 147546, 'tracts': 40}, 'Saline': {'pop': 24913, 'tracts': 9}, 'Sangamon': {'pop': 197465, 'tracts': 53}, 'Schuyler': {'pop': 7544, 'tracts': 3}, 'Scott': {'pop': 5355, 'tracts': 2}, 'Shelby': {'pop': 22363, 'tracts': 6}, 'St. Clair': {'pop': 270056, 'tracts': 60}, 'Stark': {'pop': 5994, 'tracts': 2}, 'Stephenson': {'pop': 47711, 'tracts': 13}, 'Tazewell': {'pop': 135394, 'tracts': 30}, 'Union': {'pop': 17808, 'tracts': 5}, 'Vermilion': {'pop': 81625, 'tracts': 24}, 'Wabash': {'pop': 11947, 'tracts': 4}, 'Warren': {'pop': 17707, 'tracts': 5}, 'Washington': {'pop': 14716, 'tracts': 4}, 'Wayne': {'pop': 16760, 'tracts': 5}, 'White': {'pop': 14665, 'tracts': 5}, 'Whiteside': {'pop': 58498, 'tracts': 18}, 'Will': {'pop': 677560, 'tracts': 152}, 'Williamson': {'pop': 66357, 'tracts': 15}, 'Winnebago': {'pop': 295266, 'tracts': 77}, 'Woodford': {'pop': 38664, 'tracts': 9}}, 'IN': {'Adams': {'pop': 34387, 'tracts': 7}, 'Allen': {'pop': 355329, 'tracts': 96}, 'Bartholomew': {'pop': 76794, 'tracts': 15}, 'Benton': {'pop': 8854, 'tracts': 3}, 'Blackford': {'pop': 12766, 'tracts': 4}, 'Boone': {'pop': 56640, 'tracts': 10}, 'Brown': {'pop': 15242, 'tracts': 4}, 'Carroll': {'pop': 20155, 'tracts': 7}, 'Cass': {'pop': 38966, 'tracts': 11}, 'Clark': {'pop': 110232, 'tracts': 26}, 'Clay': {'pop': 26890, 'tracts': 6}, 'Clinton': {'pop': 33224, 'tracts': 8}, 'Crawford': {'pop': 10713, 'tracts': 3}, 'Daviess': {'pop': 31648, 'tracts': 7}, 'DeKalb': {'pop': 42223, 'tracts': 9}, 'Dearborn': {'pop': 50047, 'tracts': 10}, 'Decatur': {'pop': 25740, 'tracts': 6}, 'Delaware': {'pop': 117671, 'tracts': 30}, 'Dubois': {'pop': 41889, 'tracts': 7}, 'Elkhart': {'pop': 197559, 'tracts': 36}, 'Fayette': {'pop': 24277, 'tracts': 7}, 'Floyd': {'pop': 74578, 'tracts': 20}, 'Fountain': {'pop': 17240, 'tracts': 5}, 'Franklin': {'pop': 23087, 'tracts': 5}, 'Fulton': {'pop': 20836, 'tracts': 6}, 'Gibson': {'pop': 33503, 'tracts': 7}, 'Grant': {'pop': 70061, 'tracts': 16}, 'Greene': {'pop': 33165, 'tracts': 9}, 'Hamilton': {'pop': 274569, 'tracts': 39}, 'Hancock': {'pop': 70002, 'tracts': 10}, 'Harrison': {'pop': 39364, 'tracts': 6}, 'Hendricks': {'pop': 145448, 'tracts': 21}, 'Henry': {'pop': 49462, 'tracts': 13}, 'Howard': {'pop': 82752, 'tracts': 20}, 'Huntington': {'pop': 37124, 'tracts': 9}, 'Jackson': {'pop': 42376, 'tracts': 10}, 'Jasper': {'pop': 33478, 'tracts': 8}, 'Jay': {'pop': 21253, 'tracts': 7}, 'Jefferson': {'pop': 32428, 'tracts': 7}, 'Jennings': {'pop': 28525, 'tracts': 6}, 'Johnson': {'pop': 139654, 'tracts': 22}, 'Knox': {'pop': 38440, 'tracts': 10}, 'Kosciusko': {'pop': 77358, 'tracts': 19}, 'LaGrange': {'pop': 37128, 'tracts': 8}, 'LaPorte': {'pop': 111467, 'tracts': 28}, 'Lake': {'pop': 496005, 'tracts': 117}, 'Lawrence': {'pop': 46134, 'tracts': 10}, 'Madison': {'pop': 131636, 'tracts': 37}, 'Marion': {'pop': 903393, 'tracts': 224}, 'Marshall': {'pop': 47051, 'tracts': 12}, 'Martin': {'pop': 10334, 'tracts': 3}, 'Miami': {'pop': 36903, 'tracts': 10}, 'Monroe': {'pop': 137974, 'tracts': 31}, 'Montgomery': {'pop': 38124, 'tracts': 9}, 'Morgan': {'pop': 68894, 'tracts': 13}, 'Newton': {'pop': 14244, 'tracts': 4}, 'Noble': {'pop': 47536, 'tracts': 10}, 'Ohio': {'pop': 6128, 'tracts': 2}, 'Orange': {'pop': 19840, 'tracts': 6}, 'Owen': {'pop': 21575, 'tracts': 5}, 'Parke': {'pop': 17339, 'tracts': 4}, 'Perry': {'pop': 19338, 'tracts': 5}, 'Pike': {'pop': 12845, 'tracts': 4}, 'Porter': {'pop': 164343, 'tracts': 32}, 'Posey': {'pop': 25910, 'tracts': 7}, 'Pulaski': {'pop': 13402, 'tracts': 4}, 'Putnam': {'pop': 37963, 'tracts': 7}, 'Randolph': {'pop': 26171, 'tracts': 8}, 'Ripley': {'pop': 28818, 'tracts': 6}, 'Rush': {'pop': 17392, 'tracts': 5}, 'Scott': {'pop': 24181, 'tracts': 5}, 'Shelby': {'pop': 44436, 'tracts': 10}, 'Spencer': {'pop': 20952, 'tracts': 5}, 'St. Joseph': {'pop': 266931, 'tracts': 75}, 'Starke': {'pop': 23363, 'tracts': 7}, 'Steuben': {'pop': 34185, 'tracts': 9}, 'Sullivan': {'pop': 21475, 'tracts': 5}, 'Switzerland': {'pop': 10613, 'tracts': 3}, 'Tippecanoe': {'pop': 172780, 'tracts': 37}, 'Tipton': {'pop': 15936, 'tracts': 4}, 'Union': {'pop': 7516, 'tracts': 2}, 'Vanderburgh': {'pop': 179703, 'tracts': 49}, 'Vermillion': {'pop': 16212, 'tracts': 5}, 'Vigo': {'pop': 107848, 'tracts': 28}, 'Wabash': {'pop': 32888, 'tracts': 8}, 'Warren': {'pop': 8508, 'tracts': 2}, 'Warrick': {'pop': 59689, 'tracts': 11}, 'Washington': {'pop': 28262, 'tracts': 6}, 'Wayne': {'pop': 68917, 'tracts': 17}, 'Wells': {'pop': 27636, 'tracts': 7}, 'White': {'pop': 24643, 'tracts': 8}, 'Whitley': {'pop': 33292, 'tracts': 7}}, 'KS': {'Allen': {'pop': 13371, 'tracts': 5}, 'Anderson': {'pop': 8102, 'tracts': 2}, 'Atchison': {'pop': 16924, 'tracts': 4}, 'Barber': {'pop': 4861, 'tracts': 2}, 'Barton': {'pop': 27674, 'tracts': 8}, 'Bourbon': {'pop': 15173, 'tracts': 5}, 'Brown': {'pop': 9984, 'tracts': 3}, 'Butler': {'pop': 65880, 'tracts': 13}, 'Chase': {'pop': 2790, 'tracts': 1}, 'Chautauqua': {'pop': 3669, 'tracts': 1}, 'Cherokee': {'pop': 21603, 'tracts': 6}, 'Cheyenne': {'pop': 2726, 'tracts': 1}, 'Clark': {'pop': 2215, 'tracts': 1}, 'Clay': {'pop': 8535, 'tracts': 2}, 'Cloud': {'pop': 9533, 'tracts': 4}, 'Coffey': {'pop': 8601, 'tracts': 3}, 'Comanche': {'pop': 1891, 'tracts': 1}, 'Cowley': {'pop': 36311, 'tracts': 11}, 'Crawford': {'pop': 39134, 'tracts': 11}, 'Decatur': {'pop': 2961, 'tracts': 2}, 'Dickinson': {'pop': 19754, 'tracts': 6}, 'Doniphan': {'pop': 7945, 'tracts': 3}, 'Douglas': {'pop': 110826, 'tracts': 22}, 'Edwards': {'pop': 3037, 'tracts': 2}, 'Elk': {'pop': 2882, 'tracts': 1}, 'Ellis': {'pop': 28452, 'tracts': 6}, 'Ellsworth': {'pop': 6497, 'tracts': 2}, 'Finney': {'pop': 36776, 'tracts': 12}, 'Ford': {'pop': 33848, 'tracts': 7}, 'Franklin': {'pop': 25992, 'tracts': 5}, 'Geary': {'pop': 34362, 'tracts': 8}, 'Gove': {'pop': 2695, 'tracts': 2}, 'Graham': {'pop': 2597, 'tracts': 2}, 'Grant': {'pop': 7829, 'tracts': 2}, 'Gray': {'pop': 6006, 'tracts': 2}, 'Greeley': {'pop': 1247, 'tracts': 1}, 'Greenwood': {'pop': 6689, 'tracts': 3}, 'Hamilton': {'pop': 2690, 'tracts': 1}, 'Harper': {'pop': 6034, 'tracts': 3}, 'Harvey': {'pop': 34684, 'tracts': 6}, 'Haskell': {'pop': 4256, 'tracts': 1}, 'Hodgeman': {'pop': 1916, 'tracts': 1}, 'Jackson': {'pop': 13462, 'tracts': 3}, 'Jefferson': {'pop': 19126, 'tracts': 4}, 'Jewell': {'pop': 3077, 'tracts': 2}, 'Johnson': {'pop': 544179, 'tracts': 130}, 'Kearny': {'pop': 3977, 'tracts': 1}, 'Kingman': {'pop': 7858, 'tracts': 3}, 'Kiowa': {'pop': 2553, 'tracts': 1}, 'Labette': {'pop': 21607, 'tracts': 8}, 'Lane': {'pop': 1750, 'tracts': 1}, 'Leavenworth': {'pop': 76227, 'tracts': 16}, 'Lincoln': {'pop': 3241, 'tracts': 1}, 'Linn': {'pop': 9656, 'tracts': 2}, 'Logan': {'pop': 2756, 'tracts': 1}, 'Lyon': {'pop': 33690, 'tracts': 8}, 'Marion': {'pop': 12660, 'tracts': 4}, 'Marshall': {'pop': 10117, 'tracts': 4}, 'McPherson': {'pop': 29180, 'tracts': 7}, 'Meade': {'pop': 4575, 'tracts': 2}, 'Miami': {'pop': 32787, 'tracts': 8}, 'Mitchell': {'pop': 6373, 'tracts': 2}, 'Montgomery': {'pop': 35471, 'tracts': 13}, 'Morris': {'pop': 5923, 'tracts': 2}, 'Morton': {'pop': 3233, 'tracts': 1}, 'Nemaha': {'pop': 10178, 'tracts': 3}, 'Neosho': {'pop': 16512, 'tracts': 5}, 'Ness': {'pop': 3107, 'tracts': 2}, 'Norton': {'pop': 5671, 'tracts': 1}, 'Osage': {'pop': 16295, 'tracts': 5}, 'Osborne': {'pop': 3858, 'tracts': 1}, 'Ottawa': {'pop': 6091, 'tracts': 2}, 'Pawnee': {'pop': 6973, 'tracts': 2}, 'Phillips': {'pop': 5642, 'tracts': 3}, 'Pottawatomie': {'pop': 21604, 'tracts': 4}, 'Pratt': {'pop': 9656, 'tracts': 3}, 'Rawlins': {'pop': 2519, 'tracts': 1}, 'Reno': {'pop': 64511, 'tracts': 17}, 'Republic': {'pop': 4980, 'tracts': 3}, 'Rice': {'pop': 10083, 'tracts': 3}, 'Riley': {'pop': 71115, 'tracts': 14}, 'Rooks': {'pop': 5181, 'tracts': 2}, 'Rush': {'pop': 3307, 'tracts': 2}, 'Russell': {'pop': 6970, 'tracts': 2}, 'Saline': {'pop': 55606, 'tracts': 12}, 'Scott': {'pop': 4936, 'tracts': 1}, 'Sedgwick': {'pop': 498365, 'tracts': 124}, 'Seward': {'pop': 22952, 'tracts': 5}, 'Shawnee': {'pop': 177934, 'tracts': 43}, 'Sheridan': {'pop': 2556, 'tracts': 2}, 'Sherman': {'pop': 6010, 'tracts': 2}, 'Smith': {'pop': 3853, 'tracts': 2}, 'Stafford': {'pop': 4437, 'tracts': 2}, 'Stanton': {'pop': 2235, 'tracts': 1}, 'Stevens': {'pop': 5724, 'tracts': 2}, 'Sumner': {'pop': 24132, 'tracts': 6}, 'Thomas': {'pop': 7900, 'tracts': 2}, 'Trego': {'pop': 3001, 'tracts': 1}, 'Wabaunsee': {'pop': 7053, 'tracts': 2}, 'Wallace': {'pop': 1485, 'tracts': 1}, 'Washington': {'pop': 5799, 'tracts': 2}, 'Wichita': {'pop': 2234, 'tracts': 1}, 'Wilson': {'pop': 9409, 'tracts': 4}, 'Woodson': {'pop': 3309, 'tracts': 2}, 'Wyandotte': {'pop': 157505, 'tracts': 70}}, 'KY': {'Adair': {'pop': 18656, 'tracts': 7}, 'Allen': {'pop': 19956, 'tracts': 6}, 'Anderson': {'pop': 21421, 'tracts': 5}, 'Ballard': {'pop': 8249, 'tracts': 3}, 'Barren': {'pop': 42173, 'tracts': 10}, 'Bath': {'pop': 11591, 'tracts': 3}, 'Bell': {'pop': 28691, 'tracts': 9}, 'Boone': {'pop': 118811, 'tracts': 22}, 'Bourbon': {'pop': 19985, 'tracts': 6}, 'Boyd': {'pop': 49542, 'tracts': 13}, 'Boyle': {'pop': 28432, 'tracts': 7}, 'Bracken': {'pop': 8488, 'tracts': 3}, 'Breathitt': {'pop': 13878, 'tracts': 7}, 'Breckinridge': {'pop': 20059, 'tracts': 6}, 'Bullitt': {'pop': 74319, 'tracts': 18}, 'Butler': {'pop': 12690, 'tracts': 5}, 'Caldwell': {'pop': 12984, 'tracts': 3}, 'Calloway': {'pop': 37191, 'tracts': 9}, 'Campbell': {'pop': 90336, 'tracts': 25}, 'Carlisle': {'pop': 5104, 'tracts': 3}, 'Carroll': {'pop': 10811, 'tracts': 3}, 'Carter': {'pop': 27720, 'tracts': 7}, 'Casey': {'pop': 15955, 'tracts': 5}, 'Christian': {'pop': 73955, 'tracts': 19}, 'Clark': {'pop': 35613, 'tracts': 10}, 'Clay': {'pop': 21730, 'tracts': 6}, 'Clinton': {'pop': 10272, 'tracts': 3}, 'Crittenden': {'pop': 9315, 'tracts': 4}, 'Cumberland': {'pop': 6856, 'tracts': 2}, 'Daviess': {'pop': 96656, 'tracts': 23}, 'Edmonson': {'pop': 12161, 'tracts': 4}, 'Elliott': {'pop': 7852, 'tracts': 2}, 'Estill': {'pop': 14672, 'tracts': 4}, 'Fayette': {'pop': 295803, 'tracts': 82}, 'Fleming': {'pop': 14348, 'tracts': 4}, 'Floyd': {'pop': 39451, 'tracts': 10}, 'Franklin': {'pop': 49285, 'tracts': 11}, 'Fulton': {'pop': 6813, 'tracts': 2}, 'Gallatin': {'pop': 8589, 'tracts': 2}, 'Garrard': {'pop': 16912, 'tracts': 4}, 'Grant': {'pop': 24662, 'tracts': 4}, 'Graves': {'pop': 37121, 'tracts': 9}, 'Grayson': {'pop': 25746, 'tracts': 7}, 'Green': {'pop': 11258, 'tracts': 4}, 'Greenup': {'pop': 36910, 'tracts': 9}, 'Hancock': {'pop': 8565, 'tracts': 3}, 'Hardin': {'pop': 105543, 'tracts': 22}, 'Harlan': {'pop': 29278, 'tracts': 11}, 'Harrison': {'pop': 18846, 'tracts': 5}, 'Hart': {'pop': 18199, 'tracts': 5}, 'Henderson': {'pop': 46250, 'tracts': 11}, 'Henry': {'pop': 15416, 'tracts': 5}, 'Hickman': {'pop': 4902, 'tracts': 1}, 'Hopkins': {'pop': 46920, 'tracts': 12}, 'Jackson': {'pop': 13494, 'tracts': 3}, 'Jefferson': {'pop': 741096, 'tracts': 191}, 'Jessamine': {'pop': 48586, 'tracts': 9}, 'Johnson': {'pop': 23356, 'tracts': 6}, 'Kenton': {'pop': 159720, 'tracts': 41}, 'Knott': {'pop': 16346, 'tracts': 5}, 'Knox': {'pop': 31883, 'tracts': 8}, 'Larue': {'pop': 14193, 'tracts': 4}, 'Laurel': {'pop': 58849, 'tracts': 13}, 'Lawrence': {'pop': 15860, 'tracts': 5}, 'Lee': {'pop': 7887, 'tracts': 3}, 'Leslie': {'pop': 11310, 'tracts': 3}, 'Letcher': {'pop': 24519, 'tracts': 7}, 'Lewis': {'pop': 13870, 'tracts': 4}, 'Lincoln': {'pop': 24742, 'tracts': 6}, 'Livingston': {'pop': 9519, 'tracts': 2}, 'Logan': {'pop': 26835, 'tracts': 6}, 'Lyon': {'pop': 8314, 'tracts': 3}, 'Madison': {'pop': 82916, 'tracts': 19}, 'Magoffin': {'pop': 13333, 'tracts': 4}, 'Marion': {'pop': 19820, 'tracts': 6}, 'Marshall': {'pop': 31448, 'tracts': 6}, 'Martin': {'pop': 12929, 'tracts': 3}, 'Mason': {'pop': 17490, 'tracts': 5}, 'McCracken': {'pop': 65565, 'tracts': 17}, 'McCreary': {'pop': 18306, 'tracts': 4}, 'McLean': {'pop': 9531, 'tracts': 3}, 'Meade': {'pop': 28602, 'tracts': 8}, 'Menifee': {'pop': 6306, 'tracts': 2}, 'Mercer': {'pop': 21331, 'tracts': 5}, 'Metcalfe': {'pop': 10099, 'tracts': 3}, 'Monroe': {'pop': 10963, 'tracts': 4}, 'Montgomery': {'pop': 26499, 'tracts': 6}, 'Morgan': {'pop': 13923, 'tracts': 5}, 'Muhlenberg': {'pop': 31499, 'tracts': 9}, 'Nelson': {'pop': 43437, 'tracts': 9}, 'Nicholas': {'pop': 7135, 'tracts': 2}, 'Ohio': {'pop': 23842, 'tracts': 7}, 'Oldham': {'pop': 60316, 'tracts': 14}, 'Owen': {'pop': 10841, 'tracts': 3}, 'Owsley': {'pop': 4755, 'tracts': 2}, 'Pendleton': {'pop': 14877, 'tracts': 3}, 'Perry': {'pop': 28712, 'tracts': 8}, 'Pike': {'pop': 65024, 'tracts': 19}, 'Powell': {'pop': 12613, 'tracts': 2}, 'Pulaski': {'pop': 63063, 'tracts': 14}, 'Robertson': {'pop': 2282, 'tracts': 1}, 'Rockcastle': {'pop': 17056, 'tracts': 4}, 'Rowan': {'pop': 23333, 'tracts': 4}, 'Russell': {'pop': 17565, 'tracts': 5}, 'Scott': {'pop': 47173, 'tracts': 14}, 'Shelby': {'pop': 42074, 'tracts': 9}, 'Simpson': {'pop': 17327, 'tracts': 4}, 'Spencer': {'pop': 17061, 'tracts': 4}, 'Taylor': {'pop': 24512, 'tracts': 5}, 'Todd': {'pop': 12460, 'tracts': 4}, 'Trigg': {'pop': 14339, 'tracts': 5}, 'Trimble': {'pop': 8809, 'tracts': 2}, 'Union': {'pop': 15007, 'tracts': 4}, 'Warren': {'pop': 113792, 'tracts': 24}, 'Washington': {'pop': 11717, 'tracts': 3}, 'Wayne': {'pop': 20813, 'tracts': 5}, 'Webster': {'pop': 13621, 'tracts': 4}, 'Whitley': {'pop': 35637, 'tracts': 8}, 'Wolfe': {'pop': 7355, 'tracts': 2}, 'Woodford': {'pop': 24939, 'tracts': 8}}, 'LA': {'Acadia': {'pop': 61773, 'tracts': 12}, 'Allen': {'pop': 25764, 'tracts': 5}, 'Ascension': {'pop': 107215, 'tracts': 14}, 'Assumption': {'pop': 23421, 'tracts': 6}, 'Avoyelles': {'pop': 42073, 'tracts': 9}, 'Beauregard': {'pop': 35654, 'tracts': 7}, 'Bienville': {'pop': 14353, 'tracts': 5}, 'Bossier': {'pop': 116979, 'tracts': 22}, 'Caddo': {'pop': 254969, 'tracts': 64}, 'Calcasieu': {'pop': 192768, 'tracts': 44}, 'Caldwell': {'pop': 10132, 'tracts': 3}, 'Cameron': {'pop': 6839, 'tracts': 3}, 'Catahoula': {'pop': 10407, 'tracts': 3}, 'Claiborne': {'pop': 17195, 'tracts': 5}, 'Concordia': {'pop': 20822, 'tracts': 5}, 'De Soto': {'pop': 26656, 'tracts': 7}, 'East Baton Rouge': {'pop': 440171, 'tracts': 92}, 'East Carroll': {'pop': 7759, 'tracts': 3}, 'East Feliciana': {'pop': 20267, 'tracts': 5}, 'Evangeline': {'pop': 33984, 'tracts': 8}, 'Franklin': {'pop': 20767, 'tracts': 6}, 'Grant': {'pop': 22309, 'tracts': 5}, 'Iberia': {'pop': 73240, 'tracts': 15}, 'Iberville': {'pop': 33387, 'tracts': 7}, 'Jackson': {'pop': 16274, 'tracts': 5}, 'Jefferson': {'pop': 432552, 'tracts': 127}, 'Jefferson Davis': {'pop': 31594, 'tracts': 7}, 'La Salle': {'pop': 14890, 'tracts': 3}, 'Lafayette': {'pop': 221578, 'tracts': 43}, 'Lafourche': {'pop': 96318, 'tracts': 23}, 'Lincoln': {'pop': 46735, 'tracts': 10}, 'Livingston': {'pop': 128026, 'tracts': 17}, 'Madison': {'pop': 12093, 'tracts': 5}, 'Morehouse': {'pop': 27979, 'tracts': 8}, 'Natchitoches': {'pop': 39566, 'tracts': 9}, 'Orleans': {'pop': 343829, 'tracts': 177}, 'Ouachita': {'pop': 153720, 'tracts': 40}, 'Plaquemines': {'pop': 23042, 'tracts': 9}, 'Pointe Coupee': {'pop': 22802, 'tracts': 6}, 'Rapides': {'pop': 131613, 'tracts': 33}, 'Red River': {'pop': 9091, 'tracts': 2}, 'Richland': {'pop': 20725, 'tracts': 6}, 'Sabine': {'pop': 24233, 'tracts': 7}, 'St. Bernard': {'pop': 35897, 'tracts': 18}, 'St. Charles': {'pop': 52780, 'tracts': 13}, 'St. Helena': {'pop': 11203, 'tracts': 2}, 'St. James': {'pop': 22102, 'tracts': 7}, 'St. John the Baptist': {'pop': 45924, 'tracts': 11}, 'St. Landry': {'pop': 83384, 'tracts': 19}, 'St. Martin': {'pop': 52160, 'tracts': 11}, 'St. Mary': {'pop': 54650, 'tracts': 16}, 'St. Tammany': {'pop': 233740, 'tracts': 43}, 'Tangipahoa': {'pop': 121097, 'tracts': 20}, 'Tensas': {'pop': 5252, 'tracts': 3}, 'Terrebonne': {'pop': 111860, 'tracts': 21}, 'Union': {'pop': 22721, 'tracts': 6}, 'Vermilion': {'pop': 57999, 'tracts': 12}, 'Vernon': {'pop': 52334, 'tracts': 12}, 'Washington': {'pop': 47168, 'tracts': 11}, 'Webster': {'pop': 41207, 'tracts': 11}, 'West Baton Rouge': {'pop': 23788, 'tracts': 5}, 'West Carroll': {'pop': 11604, 'tracts': 3}, 'West Feliciana': {'pop': 15625, 'tracts': 3}, 'Winn': {'pop': 15313, 'tracts': 4}}, 'MA': {'Barnstable': {'pop': 215888, 'tracts': 57}, 'Berkshire': {'pop': 131219, 'tracts': 39}, 'Bristol': {'pop': 548285, 'tracts': 126}, 'Dukes': {'pop': 16535, 'tracts': 4}, 'Essex': {'pop': 743159, 'tracts': 163}, 'Franklin': {'pop': 71372, 'tracts': 18}, 'Hampden': {'pop': 463490, 'tracts': 103}, 'Hampshire': {'pop': 158080, 'tracts': 36}, 'Middlesex': {'pop': 1503085, 'tracts': 318}, 'Nantucket': {'pop': 10172, 'tracts': 6}, 'Norfolk': {'pop': 670850, 'tracts': 130}, 'Plymouth': {'pop': 494919, 'tracts': 100}, 'Suffolk': {'pop': 722023, 'tracts': 204}, 'Worcester': {'pop': 798552, 'tracts': 172}}, 'MD': {'Allegany': {'pop': 75087, 'tracts': 23}, 'Anne Arundel': {'pop': 537656, 'tracts': 104}, 'Baltimore': {'pop': 805029, 'tracts': 214}, 'Baltimore City': {'pop': 620961, 'tracts': 200}, 'Calvert': {'pop': 88737, 'tracts': 18}, 'Caroline': {'pop': 33066, 'tracts': 9}, 'Carroll': {'pop': 167134, 'tracts': 38}, 'Cecil': {'pop': 101108, 'tracts': 19}, 'Charles': {'pop': 146551, 'tracts': 30}, 'Dorchester': {'pop': 32618, 'tracts': 10}, 'Frederick': {'pop': 233385, 'tracts': 61}, 'Garrett': {'pop': 30097, 'tracts': 7}, 'Harford': {'pop': 244826, 'tracts': 57}, 'Howard': {'pop': 287085, 'tracts': 55}, 'Kent': {'pop': 20197, 'tracts': 5}, 'Montgomery': {'pop': 971777, 'tracts': 215}, "Prince George's": {'pop': 863420, 'tracts': 218}, "Queen Anne's": {'pop': 47798, 'tracts': 12}, 'Somerset': {'pop': 26470, 'tracts': 8}, "St. Mary's": {'pop': 105151, 'tracts': 18}, 'Talbot': {'pop': 37782, 'tracts': 10}, 'Washington': {'pop': 147430, 'tracts': 32}, 'Wicomico': {'pop': 98733, 'tracts': 19}, 'Worcester': {'pop': 51454, 'tracts': 17}}, 'ME': {'Androscoggin': {'pop': 107702, 'tracts': 28}, 'Aroostook': {'pop': 71870, 'tracts': 24}, 'Cumberland': {'pop': 281674, 'tracts': 67}, 'Franklin': {'pop': 30768, 'tracts': 9}, 'Hancock': {'pop': 54418, 'tracts': 17}, 'Kennebec': {'pop': 122151, 'tracts': 31}, 'Knox': {'pop': 39736, 'tracts': 11}, 'Lincoln': {'pop': 34457, 'tracts': 9}, 'Oxford': {'pop': 57833, 'tracts': 17}, 'Penobscot': {'pop': 153923, 'tracts': 46}, 'Piscataquis': {'pop': 17535, 'tracts': 8}, 'Sagadahoc': {'pop': 35293, 'tracts': 8}, 'Somerset': {'pop': 52228, 'tracts': 17}, 'Waldo': {'pop': 38786, 'tracts': 8}, 'Washington': {'pop': 32856, 'tracts': 14}, 'York': {'pop': 197131, 'tracts': 41}}, 'MI': {'Alcona': {'pop': 10942, 'tracts': 5}, 'Alger': {'pop': 9601, 'tracts': 3}, 'Allegan': {'pop': 111408, 'tracts': 25}, 'Alpena': {'pop': 29598, 'tracts': 10}, 'Antrim': {'pop': 23580, 'tracts': 7}, 'Arenac': {'pop': 15899, 'tracts': 5}, 'Baraga': {'pop': 8860, 'tracts': 2}, 'Barry': {'pop': 59173, 'tracts': 11}, 'Bay': {'pop': 107771, 'tracts': 26}, 'Benzie': {'pop': 17525, 'tracts': 5}, 'Berrien': {'pop': 156813, 'tracts': 48}, 'Branch': {'pop': 45248, 'tracts': 12}, 'Calhoun': {'pop': 136146, 'tracts': 39}, 'Cass': {'pop': 52293, 'tracts': 11}, 'Charlevoix': {'pop': 25949, 'tracts': 13}, 'Cheboygan': {'pop': 26152, 'tracts': 8}, 'Chippewa': {'pop': 38520, 'tracts': 14}, 'Clare': {'pop': 30926, 'tracts': 11}, 'Clinton': {'pop': 75382, 'tracts': 22}, 'Crawford': {'pop': 14074, 'tracts': 5}, 'Delta': {'pop': 37069, 'tracts': 11}, 'Dickinson': {'pop': 26168, 'tracts': 7}, 'Eaton': {'pop': 107759, 'tracts': 28}, 'Emmet': {'pop': 32694, 'tracts': 8}, 'Genesee': {'pop': 425790, 'tracts': 131}, 'Gladwin': {'pop': 25692, 'tracts': 9}, 'Gogebic': {'pop': 16427, 'tracts': 7}, 'Grand Traverse': {'pop': 86986, 'tracts': 16}, 'Gratiot': {'pop': 42476, 'tracts': 10}, 'Hillsdale': {'pop': 46688, 'tracts': 12}, 'Houghton': {'pop': 36628, 'tracts': 11}, 'Huron': {'pop': 33118, 'tracts': 12}, 'Ingham': {'pop': 280895, 'tracts': 81}, 'Ionia': {'pop': 63905, 'tracts': 13}, 'Iosco': {'pop': 25887, 'tracts': 9}, 'Iron': {'pop': 11817, 'tracts': 5}, 'Isabella': {'pop': 70311, 'tracts': 15}, 'Jackson': {'pop': 160248, 'tracts': 38}, 'Kalamazoo': {'pop': 250331, 'tracts': 57}, 'Kalkaska': {'pop': 17153, 'tracts': 5}, 'Kent': {'pop': 602622, 'tracts': 128}, 'Keweenaw': {'pop': 2156, 'tracts': 2}, 'Lake': {'pop': 11539, 'tracts': 4}, 'Lapeer': {'pop': 88319, 'tracts': 24}, 'Leelanau': {'pop': 21708, 'tracts': 6}, 'Lenawee': {'pop': 99892, 'tracts': 23}, 'Livingston': {'pop': 180967, 'tracts': 61}, 'Luce': {'pop': 6631, 'tracts': 3}, 'Mackinac': {'pop': 11113, 'tracts': 6}, 'Macomb': {'pop': 840978, 'tracts': 216}, 'Manistee': {'pop': 24733, 'tracts': 9}, 'Marquette': {'pop': 67077, 'tracts': 24}, 'Mason': {'pop': 28705, 'tracts': 8}, 'Mecosta': {'pop': 42798, 'tracts': 11}, 'Menominee': {'pop': 24029, 'tracts': 7}, 'Midland': {'pop': 83629, 'tracts': 19}, 'Missaukee': {'pop': 14849, 'tracts': 4}, 'Monroe': {'pop': 152021, 'tracts': 39}, 'Montcalm': {'pop': 63342, 'tracts': 13}, 'Montmorency': {'pop': 9765, 'tracts': 5}, 'Muskegon': {'pop': 172188, 'tracts': 42}, 'Newaygo': {'pop': 48460, 'tracts': 11}, 'Oakland': {'pop': 1202362, 'tracts': 338}, 'Oceana': {'pop': 26570, 'tracts': 7}, 'Ogemaw': {'pop': 21699, 'tracts': 7}, 'Ontonagon': {'pop': 6780, 'tracts': 4}, 'Osceola': {'pop': 23528, 'tracts': 6}, 'Oscoda': {'pop': 8640, 'tracts': 5}, 'Otsego': {'pop': 24164, 'tracts': 6}, 'Ottawa': {'pop': 263801, 'tracts': 53}, 'Presque Isle': {'pop': 13376, 'tracts': 6}, 'Roscommon': {'pop': 24449, 'tracts': 10}, 'Saginaw': {'pop': 200169, 'tracts': 56}, 'Sanilac': {'pop': 43114, 'tracts': 12}, 'Schoolcraft': {'pop': 8485, 'tracts': 3}, 'Shiawassee': {'pop': 70648, 'tracts': 17}, 'St. Clair': {'pop': 163040, 'tracts': 49}, 'St. Joseph': {'pop': 61295, 'tracts': 17}, 'Tuscola': {'pop': 55729, 'tracts': 13}, 'Van Buren': {'pop': 76258, 'tracts': 15}, 'Washtenaw': {'pop': 344791, 'tracts': 100}, 'Wayne': {'pop': 1820584, 'tracts': 610}, 'Wexford': {'pop': 32735, 'tracts': 8}}, 'MN': {'Aitkin': {'pop': 16202, 'tracts': 6}, 'Anoka': {'pop': 330844, 'tracts': 83}, 'Becker': {'pop': 32504, 'tracts': 10}, 'Beltrami': {'pop': 44442, 'tracts': 10}, 'Benton': {'pop': 38451, 'tracts': 9}, 'Big Stone': {'pop': 5269, 'tracts': 3}, 'Blue Earth': {'pop': 64013, 'tracts': 16}, 'Brown': {'pop': 25893, 'tracts': 8}, 'Carlton': {'pop': 35386, 'tracts': 7}, 'Carver': {'pop': 91042, 'tracts': 19}, 'Cass': {'pop': 28567, 'tracts': 10}, 'Chippewa': {'pop': 12441, 'tracts': 4}, 'Chisago': {'pop': 53887, 'tracts': 10}, 'Clay': {'pop': 58999, 'tracts': 13}, 'Clearwater': {'pop': 8695, 'tracts': 3}, 'Cook': {'pop': 5176, 'tracts': 3}, 'Cottonwood': {'pop': 11687, 'tracts': 4}, 'Crow Wing': {'pop': 62500, 'tracts': 16}, 'Dakota': {'pop': 398552, 'tracts': 95}, 'Dodge': {'pop': 20087, 'tracts': 5}, 'Douglas': {'pop': 36009, 'tracts': 9}, 'Faribault': {'pop': 14553, 'tracts': 6}, 'Fillmore': {'pop': 20866, 'tracts': 6}, 'Freeborn': {'pop': 31255, 'tracts': 10}, 'Goodhue': {'pop': 46183, 'tracts': 10}, 'Grant': {'pop': 6018, 'tracts': 2}, 'Hennepin': {'pop': 1152425, 'tracts': 299}, 'Houston': {'pop': 19027, 'tracts': 5}, 'Hubbard': {'pop': 20428, 'tracts': 7}, 'Isanti': {'pop': 37816, 'tracts': 8}, 'Itasca': {'pop': 45058, 'tracts': 11}, 'Jackson': {'pop': 10266, 'tracts': 4}, 'Kanabec': {'pop': 16239, 'tracts': 4}, 'Kandiyohi': {'pop': 42239, 'tracts': 12}, 'Kittson': {'pop': 4552, 'tracts': 2}, 'Koochiching': {'pop': 13311, 'tracts': 4}, 'Lac qui Parle': {'pop': 7259, 'tracts': 3}, 'Lake': {'pop': 10866, 'tracts': 3}, 'Lake of the Woods': {'pop': 4045, 'tracts': 2}, 'Le Sueur': {'pop': 27703, 'tracts': 6}, 'Lincoln': {'pop': 5896, 'tracts': 2}, 'Lyon': {'pop': 25857, 'tracts': 7}, 'Mahnomen': {'pop': 5413, 'tracts': 2}, 'Marshall': {'pop': 9439, 'tracts': 4}, 'Martin': {'pop': 20840, 'tracts': 6}, 'McLeod': {'pop': 36651, 'tracts': 7}, 'Meeker': {'pop': 23300, 'tracts': 6}, 'Mille Lacs': {'pop': 26097, 'tracts': 7}, 'Morrison': {'pop': 33198, 'tracts': 8}, 'Mower': {'pop': 39163, 'tracts': 11}, 'Murray': {'pop': 8725, 'tracts': 3}, 'Nicollet': {'pop': 32727, 'tracts': 7}, 'Nobles': {'pop': 21378, 'tracts': 6}, 'Norman': {'pop': 6852, 'tracts': 3}, 'Olmsted': {'pop': 144248, 'tracts': 33}, 'Otter Tail': {'pop': 57303, 'tracts': 17}, 'Pennington': {'pop': 13930, 'tracts': 5}, 'Pine': {'pop': 29750, 'tracts': 8}, 'Pipestone': {'pop': 9596, 'tracts': 5}, 'Polk': {'pop': 31600, 'tracts': 10}, 'Pope': {'pop': 10995, 'tracts': 4}, 'Ramsey': {'pop': 508640, 'tracts': 137}, 'Red Lake': {'pop': 4089, 'tracts': 2}, 'Redwood': {'pop': 16059, 'tracts': 6}, 'Renville': {'pop': 15730, 'tracts': 6}, 'Rice': {'pop': 64142, 'tracts': 13}, 'Rock': {'pop': 9687, 'tracts': 3}, 'Roseau': {'pop': 15629, 'tracts': 5}, 'Scott': {'pop': 129928, 'tracts': 21}, 'Sherburne': {'pop': 88499, 'tracts': 11}, 'Sibley': {'pop': 15226, 'tracts': 4}, 'St. Louis': {'pop': 200226, 'tracts': 66}, 'Stearns': {'pop': 150642, 'tracts': 29}, 'Steele': {'pop': 36576, 'tracts': 8}, 'Stevens': {'pop': 9726, 'tracts': 3}, 'Swift': {'pop': 9783, 'tracts': 4}, 'Todd': {'pop': 24895, 'tracts': 8}, 'Traverse': {'pop': 3558, 'tracts': 2}, 'Wabasha': {'pop': 21676, 'tracts': 6}, 'Wadena': {'pop': 13843, 'tracts': 3}, 'Waseca': {'pop': 19136, 'tracts': 5}, 'Washington': {'pop': 238136, 'tracts': 50}, 'Watonwan': {'pop': 11211, 'tracts': 3}, 'Wilkin': {'pop': 6576, 'tracts': 2}, 'Winona': {'pop': 51461, 'tracts': 10}, 'Wright': {'pop': 124700, 'tracts': 17}, 'Yellow Medicine': {'pop': 10438, 'tracts': 4}}, 'MO': {'Adair': {'pop': 25607, 'tracts': 7}, 'Andrew': {'pop': 17291, 'tracts': 4}, 'Atchison': {'pop': 5685, 'tracts': 2}, 'Audrain': {'pop': 25529, 'tracts': 7}, 'Barry': {'pop': 35597, 'tracts': 7}, 'Barton': {'pop': 12402, 'tracts': 3}, 'Bates': {'pop': 17049, 'tracts': 4}, 'Benton': {'pop': 19056, 'tracts': 6}, 'Bollinger': {'pop': 12363, 'tracts': 3}, 'Boone': {'pop': 162642, 'tracts': 29}, 'Buchanan': {'pop': 89201, 'tracts': 25}, 'Butler': {'pop': 42794, 'tracts': 10}, 'Caldwell': {'pop': 9424, 'tracts': 2}, 'Callaway': {'pop': 44332, 'tracts': 8}, 'Camden': {'pop': 44002, 'tracts': 11}, 'Cape Girardeau': {'pop': 75674, 'tracts': 16}, 'Carroll': {'pop': 9295, 'tracts': 3}, 'Carter': {'pop': 6265, 'tracts': 2}, 'Cass': {'pop': 99478, 'tracts': 20}, 'Cedar': {'pop': 13982, 'tracts': 3}, 'Chariton': {'pop': 7831, 'tracts': 3}, 'Christian': {'pop': 77422, 'tracts': 14}, 'Clark': {'pop': 7139, 'tracts': 3}, 'Clay': {'pop': 221939, 'tracts': 44}, 'Clinton': {'pop': 20743, 'tracts': 4}, 'Cole': {'pop': 75990, 'tracts': 15}, 'Cooper': {'pop': 17601, 'tracts': 5}, 'Crawford': {'pop': 24696, 'tracts': 6}, 'Dade': {'pop': 7883, 'tracts': 2}, 'Dallas': {'pop': 16777, 'tracts': 3}, 'Daviess': {'pop': 8433, 'tracts': 2}, 'DeKalb': {'pop': 12892, 'tracts': 2}, 'Dent': {'pop': 15657, 'tracts': 4}, 'Douglas': {'pop': 13684, 'tracts': 3}, 'Dunklin': {'pop': 31953, 'tracts': 10}, 'Franklin': {'pop': 101492, 'tracts': 17}, 'Gasconade': {'pop': 15222, 'tracts': 5}, 'Gentry': {'pop': 6738, 'tracts': 2}, 'Greene': {'pop': 275174, 'tracts': 62}, 'Grundy': {'pop': 10261, 'tracts': 4}, 'Harrison': {'pop': 8957, 'tracts': 3}, 'Henry': {'pop': 22272, 'tracts': 6}, 'Hickory': {'pop': 9627, 'tracts': 3}, 'Holt': {'pop': 4912, 'tracts': 3}, 'Howard': {'pop': 10144, 'tracts': 3}, 'Howell': {'pop': 40400, 'tracts': 8}, 'Iron': {'pop': 10630, 'tracts': 4}, 'Jackson': {'pop': 674158, 'tracts': 199}, 'Jasper': {'pop': 117404, 'tracts': 22}, 'Jefferson': {'pop': 218733, 'tracts': 42}, 'Johnson': {'pop': 52595, 'tracts': 9}, 'Knox': {'pop': 4131, 'tracts': 2}, 'Laclede': {'pop': 35571, 'tracts': 6}, 'Lafayette': {'pop': 33381, 'tracts': 7}, 'Lawrence': {'pop': 38634, 'tracts': 7}, 'Lewis': {'pop': 10211, 'tracts': 4}, 'Lincoln': {'pop': 52566, 'tracts': 7}, 'Linn': {'pop': 12761, 'tracts': 5}, 'Livingston': {'pop': 15195, 'tracts': 5}, 'Macon': {'pop': 15566, 'tracts': 5}, 'Madison': {'pop': 12226, 'tracts': 3}, 'Maries': {'pop': 9176, 'tracts': 3}, 'Marion': {'pop': 28781, 'tracts': 8}, 'McDonald': {'pop': 23083, 'tracts': 4}, 'Mercer': {'pop': 3785, 'tracts': 2}, 'Miller': {'pop': 24748, 'tracts': 5}, 'Mississippi': {'pop': 14358, 'tracts': 4}, 'Moniteau': {'pop': 15607, 'tracts': 4}, 'Monroe': {'pop': 8840, 'tracts': 3}, 'Montgomery': {'pop': 12236, 'tracts': 4}, 'Morgan': {'pop': 20565, 'tracts': 5}, 'New Madrid': {'pop': 18956, 'tracts': 6}, 'Newton': {'pop': 58114, 'tracts': 12}, 'Nodaway': {'pop': 23370, 'tracts': 5}, 'Oregon': {'pop': 10881, 'tracts': 3}, 'Osage': {'pop': 13878, 'tracts': 4}, 'Ozark': {'pop': 9723, 'tracts': 2}, 'Pemiscot': {'pop': 18296, 'tracts': 6}, 'Perry': {'pop': 18971, 'tracts': 5}, 'Pettis': {'pop': 42201, 'tracts': 11}, 'Phelps': {'pop': 45156, 'tracts': 10}, 'Pike': {'pop': 18516, 'tracts': 5}, 'Platte': {'pop': 89322, 'tracts': 20}, 'Polk': {'pop': 31137, 'tracts': 4}, 'Pulaski': {'pop': 52274, 'tracts': 9}, 'Putnam': {'pop': 4979, 'tracts': 2}, 'Ralls': {'pop': 10167, 'tracts': 3}, 'Randolph': {'pop': 25414, 'tracts': 6}, 'Ray': {'pop': 23494, 'tracts': 4}, 'Reynolds': {'pop': 6696, 'tracts': 2}, 'Ripley': {'pop': 14100, 'tracts': 4}, 'Saline': {'pop': 23370, 'tracts': 8}, 'Schuyler': {'pop': 4431, 'tracts': 2}, 'Scotland': {'pop': 4843, 'tracts': 2}, 'Scott': {'pop': 39191, 'tracts': 10}, 'Shannon': {'pop': 8441, 'tracts': 2}, 'Shelby': {'pop': 6373, 'tracts': 3}, 'St. Charles': {'pop': 360485, 'tracts': 79}, 'St. Clair': {'pop': 9805, 'tracts': 3}, 'St. Francois': {'pop': 65359, 'tracts': 11}, 'St. Louis': {'pop': 998954, 'tracts': 199}, 'St. Louis City': {'pop': 319294, 'tracts': 106}, 'Ste. Genevieve': {'pop': 18145, 'tracts': 4}, 'Stoddard': {'pop': 29968, 'tracts': 8}, 'Stone': {'pop': 32202, 'tracts': 6}, 'Sullivan': {'pop': 6714, 'tracts': 3}, 'Taney': {'pop': 51675, 'tracts': 10}, 'Texas': {'pop': 26008, 'tracts': 4}, 'Vernon': {'pop': 21159, 'tracts': 6}, 'Warren': {'pop': 32513, 'tracts': 5}, 'Washington': {'pop': 25195, 'tracts': 5}, 'Wayne': {'pop': 13521, 'tracts': 4}, 'Webster': {'pop': 36202, 'tracts': 8}, 'Worth': {'pop': 2171, 'tracts': 1}, 'Wright': {'pop': 18815, 'tracts': 4}}, 'MS': {'Adams': {'pop': 32297, 'tracts': 9}, 'Alcorn': {'pop': 37057, 'tracts': 7}, 'Amite': {'pop': 13131, 'tracts': 3}, 'Attala': {'pop': 19564, 'tracts': 6}, 'Benton': {'pop': 8729, 'tracts': 2}, 'Bolivar': {'pop': 34145, 'tracts': 8}, 'Calhoun': {'pop': 14962, 'tracts': 5}, 'Carroll': {'pop': 10597, 'tracts': 2}, 'Chickasaw': {'pop': 17392, 'tracts': 4}, 'Choctaw': {'pop': 8547, 'tracts': 3}, 'Claiborne': {'pop': 9604, 'tracts': 3}, 'Clarke': {'pop': 16732, 'tracts': 4}, 'Clay': {'pop': 20634, 'tracts': 5}, 'Coahoma': {'pop': 26151, 'tracts': 7}, 'Copiah': {'pop': 29449, 'tracts': 6}, 'Covington': {'pop': 19568, 'tracts': 4}, 'DeSoto': {'pop': 161252, 'tracts': 33}, 'Forrest': {'pop': 74934, 'tracts': 17}, 'Franklin': {'pop': 8118, 'tracts': 2}, 'George': {'pop': 22578, 'tracts': 5}, 'Greene': {'pop': 14400, 'tracts': 2}, 'Grenada': {'pop': 21906, 'tracts': 5}, 'Hancock': {'pop': 43929, 'tracts': 7}, 'Harrison': {'pop': 187105, 'tracts': 46}, 'Hinds': {'pop': 245285, 'tracts': 64}, 'Holmes': {'pop': 19198, 'tracts': 5}, 'Humphreys': {'pop': 9375, 'tracts': 3}, 'Issaquena': {'pop': 1406, 'tracts': 1}, 'Itawamba': {'pop': 23401, 'tracts': 5}, 'Jackson': {'pop': 139668, 'tracts': 28}, 'Jasper': {'pop': 17062, 'tracts': 4}, 'Jefferson': {'pop': 7726, 'tracts': 2}, 'Jefferson Davis': {'pop': 12487, 'tracts': 3}, 'Jones': {'pop': 67761, 'tracts': 14}, 'Kemper': {'pop': 10456, 'tracts': 2}, 'Lafayette': {'pop': 47351, 'tracts': 10}, 'Lamar': {'pop': 55658, 'tracts': 8}, 'Lauderdale': {'pop': 80261, 'tracts': 19}, 'Lawrence': {'pop': 12929, 'tracts': 3}, 'Leake': {'pop': 23805, 'tracts': 5}, 'Lee': {'pop': 82910, 'tracts': 19}, 'Leflore': {'pop': 32317, 'tracts': 8}, 'Lincoln': {'pop': 34869, 'tracts': 6}, 'Lowndes': {'pop': 59779, 'tracts': 14}, 'Madison': {'pop': 95203, 'tracts': 21}, 'Marion': {'pop': 27088, 'tracts': 6}, 'Marshall': {'pop': 37144, 'tracts': 6}, 'Monroe': {'pop': 36989, 'tracts': 9}, 'Montgomery': {'pop': 10925, 'tracts': 3}, 'Neshoba': {'pop': 29676, 'tracts': 7}, 'Newton': {'pop': 21720, 'tracts': 5}, 'Noxubee': {'pop': 11545, 'tracts': 3}, 'Oktibbeha': {'pop': 47671, 'tracts': 8}, 'Panola': {'pop': 34707, 'tracts': 6}, 'Pearl River': {'pop': 55834, 'tracts': 9}, 'Perry': {'pop': 12250, 'tracts': 3}, 'Pike': {'pop': 40404, 'tracts': 8}, 'Pontotoc': {'pop': 29957, 'tracts': 6}, 'Prentiss': {'pop': 25276, 'tracts': 5}, 'Quitman': {'pop': 8223, 'tracts': 3}, 'Rankin': {'pop': 141617, 'tracts': 27}, 'Scott': {'pop': 28264, 'tracts': 6}, 'Sharkey': {'pop': 4916, 'tracts': 2}, 'Simpson': {'pop': 27503, 'tracts': 5}, 'Smith': {'pop': 16491, 'tracts': 3}, 'Stone': {'pop': 17786, 'tracts': 3}, 'Sunflower': {'pop': 29450, 'tracts': 7}, 'Tallahatchie': {'pop': 15378, 'tracts': 4}, 'Tate': {'pop': 28886, 'tracts': 5}, 'Tippah': {'pop': 22232, 'tracts': 4}, 'Tishomingo': {'pop': 19593, 'tracts': 4}, 'Tunica': {'pop': 10778, 'tracts': 3}, 'Union': {'pop': 27134, 'tracts': 6}, 'Walthall': {'pop': 15443, 'tracts': 3}, 'Warren': {'pop': 48773, 'tracts': 12}, 'Washington': {'pop': 51137, 'tracts': 19}, 'Wayne': {'pop': 20747, 'tracts': 4}, 'Webster': {'pop': 10253, 'tracts': 3}, 'Wilkinson': {'pop': 9878, 'tracts': 2}, 'Winston': {'pop': 19198, 'tracts': 5}, 'Yalobusha': {'pop': 12678, 'tracts': 3}, 'Yazoo': {'pop': 28065, 'tracts': 6}}, 'MT': {'Beaverhead': {'pop': 9246, 'tracts': 3}, 'Big Horn': {'pop': 12865, 'tracts': 5}, 'Blaine': {'pop': 6491, 'tracts': 4}, 'Broadwater': {'pop': 5612, 'tracts': 2}, 'Carbon': {'pop': 10078, 'tracts': 5}, 'Carter': {'pop': 1160, 'tracts': 1}, 'Cascade': {'pop': 81327, 'tracts': 22}, 'Chouteau': {'pop': 5813, 'tracts': 2}, 'Custer': {'pop': 11699, 'tracts': 6}, 'Daniels': {'pop': 1751, 'tracts': 1}, 'Dawson': {'pop': 8966, 'tracts': 3}, 'Deer Lodge': {'pop': 9298, 'tracts': 3}, 'Fallon': {'pop': 2890, 'tracts': 1}, 'Fergus': {'pop': 11586, 'tracts': 2}, 'Flathead': {'pop': 90928, 'tracts': 19}, 'Gallatin': {'pop': 89513, 'tracts': 22}, 'Garfield': {'pop': 1206, 'tracts': 1}, 'Glacier': {'pop': 13399, 'tracts': 4}, 'Golden Valley': {'pop': 884, 'tracts': 1}, 'Granite': {'pop': 3079, 'tracts': 1}, 'Hill': {'pop': 16096, 'tracts': 6}, 'Jefferson': {'pop': 11406, 'tracts': 3}, 'Judith Basin': {'pop': 2072, 'tracts': 1}, 'Lake': {'pop': 28746, 'tracts': 8}, 'Lewis and Clark': {'pop': 63395, 'tracts': 14}, 'Liberty': {'pop': 2339, 'tracts': 1}, 'Lincoln': {'pop': 19687, 'tracts': 5}, 'Madison': {'pop': 7691, 'tracts': 3}, 'McCone': {'pop': 1734, 'tracts': 1}, 'Meagher': {'pop': 1891, 'tracts': 1}, 'Mineral': {'pop': 4223, 'tracts': 2}, 'Missoula': {'pop': 109299, 'tracts': 20}, 'Musselshell': {'pop': 4538, 'tracts': 2}, 'Park': {'pop': 15636, 'tracts': 6}, 'Petroleum': {'pop': 494, 'tracts': 1}, 'Phillips': {'pop': 4253, 'tracts': 1}, 'Pondera': {'pop': 6153, 'tracts': 2}, 'Powder River': {'pop': 1743, 'tracts': 1}, 'Powell': {'pop': 7027, 'tracts': 2}, 'Prairie': {'pop': 1179, 'tracts': 1}, 'Ravalli': {'pop': 40212, 'tracts': 10}, 'Richland': {'pop': 9746, 'tracts': 4}, 'Roosevelt': {'pop': 10425, 'tracts': 3}, 'Rosebud': {'pop': 9233, 'tracts': 4}, 'Sanders': {'pop': 11413, 'tracts': 3}, 'Sheridan': {'pop': 3384, 'tracts': 2}, 'Silver Bow': {'pop': 34200, 'tracts': 8}, 'Stillwater': {'pop': 9117, 'tracts': 3}, 'Sweet Grass': {'pop': 3651, 'tracts': 1}, 'Teton': {'pop': 6073, 'tracts': 3}, 'Toole': {'pop': 5324, 'tracts': 3}, 'Treasure': {'pop': 718, 'tracts': 1}, 'Valley': {'pop': 7369, 'tracts': 3}, 'Wheatland': {'pop': 2168, 'tracts': 1}, 'Wibaux': {'pop': 1017, 'tracts': 1}, 'Yellowstone': {'pop': 147972, 'tracts': 32}}, 'NC': {'Alamance': {'pop': 151131, 'tracts': 36}, 'Alexander': {'pop': 37198, 'tracts': 7}, 'Alleghany': {'pop': 11155, 'tracts': 3}, 'Anson': {'pop': 26948, 'tracts': 6}, 'Ashe': {'pop': 27281, 'tracts': 6}, 'Avery': {'pop': 17797, 'tracts': 5}, 'Beaufort': {'pop': 47759, 'tracts': 11}, 'Bertie': {'pop': 21282, 'tracts': 4}, 'Bladen': {'pop': 35190, 'tracts': 6}, 'Brunswick': {'pop': 107431, 'tracts': 33}, 'Buncombe': {'pop': 238318, 'tracts': 56}, 'Burke': {'pop': 90912, 'tracts': 18}, 'Cabarrus': {'pop': 178011, 'tracts': 37}, 'Caldwell': {'pop': 83029, 'tracts': 17}, 'Camden': {'pop': 9980, 'tracts': 2}, 'Carteret': {'pop': 66469, 'tracts': 38}, 'Caswell': {'pop': 23719, 'tracts': 6}, 'Catawba': {'pop': 154358, 'tracts': 31}, 'Chatham': {'pop': 63505, 'tracts': 13}, 'Cherokee': {'pop': 27444, 'tracts': 7}, 'Chowan': {'pop': 14793, 'tracts': 3}, 'Clay': {'pop': 10587, 'tracts': 2}, 'Cleveland': {'pop': 98078, 'tracts': 22}, 'Columbus': {'pop': 58098, 'tracts': 13}, 'Craven': {'pop': 103505, 'tracts': 21}, 'Cumberland': {'pop': 319431, 'tracts': 68}, 'Currituck': {'pop': 23547, 'tracts': 8}, 'Dare': {'pop': 33920, 'tracts': 11}, 'Davidson': {'pop': 162878, 'tracts': 34}, 'Davie': {'pop': 41240, 'tracts': 7}, 'Duplin': {'pop': 58505, 'tracts': 11}, 'Durham': {'pop': 267587, 'tracts': 60}, 'Edgecombe': {'pop': 56552, 'tracts': 14}, 'Forsyth': {'pop': 350670, 'tracts': 93}, 'Franklin': {'pop': 60619, 'tracts': 12}, 'Gaston': {'pop': 206086, 'tracts': 65}, 'Gates': {'pop': 12197, 'tracts': 3}, 'Graham': {'pop': 8861, 'tracts': 3}, 'Granville': {'pop': 59916, 'tracts': 13}, 'Greene': {'pop': 21362, 'tracts': 4}, 'Guilford': {'pop': 488406, 'tracts': 119}, 'Halifax': {'pop': 54691, 'tracts': 12}, 'Harnett': {'pop': 114678, 'tracts': 27}, 'Haywood': {'pop': 59036, 'tracts': 16}, 'Henderson': {'pop': 106740, 'tracts': 27}, 'Hertford': {'pop': 24669, 'tracts': 5}, 'Hoke': {'pop': 46952, 'tracts': 9}, 'Hyde': {'pop': 5810, 'tracts': 2}, 'Iredell': {'pop': 159437, 'tracts': 44}, 'Jackson': {'pop': 40271, 'tracts': 9}, 'Johnston': {'pop': 168878, 'tracts': 25}, 'Jones': {'pop': 10153, 'tracts': 3}, 'Lee': {'pop': 57866, 'tracts': 13}, 'Lenoir': {'pop': 59495, 'tracts': 15}, 'Lincoln': {'pop': 78265, 'tracts': 18}, 'Macon': {'pop': 33922, 'tracts': 9}, 'Madison': {'pop': 20764, 'tracts': 6}, 'Martin': {'pop': 24505, 'tracts': 6}, 'McDowell': {'pop': 44996, 'tracts': 10}, 'Mecklenburg': {'pop': 919628, 'tracts': 233}, 'Mitchell': {'pop': 15579, 'tracts': 4}, 'Montgomery': {'pop': 27798, 'tracts': 6}, 'Moore': {'pop': 88247, 'tracts': 18}, 'Nash': {'pop': 95840, 'tracts': 18}, 'New Hanover': {'pop': 202667, 'tracts': 45}, 'Northampton': {'pop': 22099, 'tracts': 5}, 'Onslow': {'pop': 177772, 'tracts': 32}, 'Orange': {'pop': 133801, 'tracts': 28}, 'Pamlico': {'pop': 13144, 'tracts': 4}, 'Pasquotank': {'pop': 40661, 'tracts': 10}, 'Pender': {'pop': 52217, 'tracts': 16}, 'Perquimans': {'pop': 13453, 'tracts': 3}, 'Person': {'pop': 39464, 'tracts': 7}, 'Pitt': {'pop': 168148, 'tracts': 32}, 'Polk': {'pop': 20510, 'tracts': 7}, 'Randolph': {'pop': 141752, 'tracts': 28}, 'Richmond': {'pop': 46639, 'tracts': 11}, 'Robeson': {'pop': 134168, 'tracts': 31}, 'Rockingham': {'pop': 93643, 'tracts': 21}, 'Rowan': {'pop': 138428, 'tracts': 30}, 'Rutherford': {'pop': 67810, 'tracts': 13}, 'Sampson': {'pop': 63431, 'tracts': 11}, 'Scotland': {'pop': 36157, 'tracts': 7}, 'Stanly': {'pop': 60585, 'tracts': 13}, 'Stokes': {'pop': 47401, 'tracts': 9}, 'Surry': {'pop': 73673, 'tracts': 22}, 'Swain': {'pop': 13981, 'tracts': 5}, 'Transylvania': {'pop': 33090, 'tracts': 7}, 'Tyrrell': {'pop': 4407, 'tracts': 1}, 'Union': {'pop': 201292, 'tracts': 41}, 'Vance': {'pop': 45422, 'tracts': 10}, 'Wake': {'pop': 900993, 'tracts': 187}, 'Warren': {'pop': 20972, 'tracts': 6}, 'Washington': {'pop': 13228, 'tracts': 3}, 'Watauga': {'pop': 51079, 'tracts': 13}, 'Wayne': {'pop': 122623, 'tracts': 26}, 'Wilkes': {'pop': 69340, 'tracts': 14}, 'Wilson': {'pop': 81234, 'tracts': 19}, 'Yadkin': {'pop': 38406, 'tracts': 7}, 'Yancey': {'pop': 17818, 'tracts': 5}}, 'ND': {'Adams': {'pop': 2343, 'tracts': 1}, 'Barnes': {'pop': 11066, 'tracts': 4}, 'Benson': {'pop': 6660, 'tracts': 4}, 'Billings': {'pop': 783, 'tracts': 1}, 'Bottineau': {'pop': 6429, 'tracts': 3}, 'Bowman': {'pop': 3151, 'tracts': 2}, 'Burke': {'pop': 1968, 'tracts': 1}, 'Burleigh': {'pop': 81308, 'tracts': 19}, 'Cass': {'pop': 149778, 'tracts': 33}, 'Cavalier': {'pop': 3993, 'tracts': 2}, 'Dickey': {'pop': 5289, 'tracts': 3}, 'Divide': {'pop': 2071, 'tracts': 1}, 'Dunn': {'pop': 3536, 'tracts': 1}, 'Eddy': {'pop': 2385, 'tracts': 1}, 'Emmons': {'pop': 3550, 'tracts': 1}, 'Foster': {'pop': 3343, 'tracts': 1}, 'Golden Valley': {'pop': 1680, 'tracts': 1}, 'Grand Forks': {'pop': 66861, 'tracts': 18}, 'Grant': {'pop': 2394, 'tracts': 1}, 'Griggs': {'pop': 2420, 'tracts': 1}, 'Hettinger': {'pop': 2477, 'tracts': 2}, 'Kidder': {'pop': 2435, 'tracts': 1}, 'LaMoure': {'pop': 4139, 'tracts': 2}, 'Logan': {'pop': 1990, 'tracts': 1}, 'McHenry': {'pop': 5395, 'tracts': 2}, 'McIntosh': {'pop': 2809, 'tracts': 1}, 'McKenzie': {'pop': 6360, 'tracts': 4}, 'McLean': {'pop': 8962, 'tracts': 2}, 'Mercer': {'pop': 8424, 'tracts': 3}, 'Morton': {'pop': 27471, 'tracts': 5}, 'Mountrail': {'pop': 7673, 'tracts': 3}, 'Nelson': {'pop': 3126, 'tracts': 1}, 'Oliver': {'pop': 1846, 'tracts': 1}, 'Pembina': {'pop': 7413, 'tracts': 5}, 'Pierce': {'pop': 4357, 'tracts': 2}, 'Ramsey': {'pop': 11451, 'tracts': 3}, 'Ransom': {'pop': 5457, 'tracts': 3}, 'Renville': {'pop': 2470, 'tracts': 1}, 'Richland': {'pop': 16321, 'tracts': 6}, 'Rolette': {'pop': 13937, 'tracts': 4}, 'Sargent': {'pop': 3829, 'tracts': 2}, 'Sheridan': {'pop': 1321, 'tracts': 1}, 'Sioux': {'pop': 4153, 'tracts': 2}, 'Slope': {'pop': 727, 'tracts': 1}, 'Stark': {'pop': 24199, 'tracts': 8}, 'Steele': {'pop': 1975, 'tracts': 1}, 'Stutsman': {'pop': 21100, 'tracts': 6}, 'Towner': {'pop': 2246, 'tracts': 1}, 'Traill': {'pop': 8121, 'tracts': 4}, 'Walsh': {'pop': 11119, 'tracts': 6}, 'Ward': {'pop': 61675, 'tracts': 13}, 'Wells': {'pop': 4207, 'tracts': 2}, 'Williams': {'pop': 22398, 'tracts': 7}}, 'NE': {'Adams': {'pop': 31364, 'tracts': 9}, 'Antelope': {'pop': 6685, 'tracts': 3}, 'Arthur': {'pop': 460, 'tracts': 1}, 'Banner': {'pop': 690, 'tracts': 1}, 'Blaine': {'pop': 478, 'tracts': 1}, 'Boone': {'pop': 5505, 'tracts': 2}, 'Box Butte': {'pop': 11308, 'tracts': 3}, 'Boyd': {'pop': 2099, 'tracts': 1}, 'Brown': {'pop': 3145, 'tracts': 1}, 'Buffalo': {'pop': 46102, 'tracts': 11}, 'Burt': {'pop': 6858, 'tracts': 3}, 'Butler': {'pop': 8395, 'tracts': 3}, 'Cass': {'pop': 25241, 'tracts': 6}, 'Cedar': {'pop': 8852, 'tracts': 2}, 'Chase': {'pop': 3966, 'tracts': 1}, 'Cherry': {'pop': 5713, 'tracts': 2}, 'Cheyenne': {'pop': 9998, 'tracts': 3}, 'Clay': {'pop': 6542, 'tracts': 2}, 'Colfax': {'pop': 10515, 'tracts': 3}, 'Cuming': {'pop': 9139, 'tracts': 3}, 'Custer': {'pop': 10939, 'tracts': 4}, 'Dakota': {'pop': 21006, 'tracts': 4}, 'Dawes': {'pop': 9182, 'tracts': 2}, 'Dawson': {'pop': 24326, 'tracts': 7}, 'Deuel': {'pop': 1941, 'tracts': 1}, 'Dixon': {'pop': 6000, 'tracts': 2}, 'Dodge': {'pop': 36691, 'tracts': 9}, 'Douglas': {'pop': 517110, 'tracts': 156}, 'Dundy': {'pop': 2008, 'tracts': 1}, 'Fillmore': {'pop': 5890, 'tracts': 2}, 'Franklin': {'pop': 3225, 'tracts': 2}, 'Frontier': {'pop': 2756, 'tracts': 1}, 'Furnas': {'pop': 4959, 'tracts': 1}, 'Gage': {'pop': 22311, 'tracts': 7}, 'Garden': {'pop': 2057, 'tracts': 1}, 'Garfield': {'pop': 2049, 'tracts': 1}, 'Gosper': {'pop': 2044, 'tracts': 1}, 'Grant': {'pop': 614, 'tracts': 1}, 'Greeley': {'pop': 2538, 'tracts': 1}, 'Hall': {'pop': 58607, 'tracts': 14}, 'Hamilton': {'pop': 9124, 'tracts': 3}, 'Harlan': {'pop': 3423, 'tracts': 1}, 'Hayes': {'pop': 967, 'tracts': 1}, 'Hitchcock': {'pop': 2908, 'tracts': 1}, 'Holt': {'pop': 10435, 'tracts': 4}, 'Hooker': {'pop': 736, 'tracts': 1}, 'Howard': {'pop': 6274, 'tracts': 2}, 'Jefferson': {'pop': 7547, 'tracts': 3}, 'Johnson': {'pop': 5217, 'tracts': 2}, 'Kearney': {'pop': 6489, 'tracts': 2}, 'Keith': {'pop': 8368, 'tracts': 3}, 'Keya Paha': {'pop': 824, 'tracts': 1}, 'Kimball': {'pop': 3821, 'tracts': 1}, 'Knox': {'pop': 8701, 'tracts': 3}, 'Lancaster': {'pop': 285407, 'tracts': 74}, 'Lincoln': {'pop': 36288, 'tracts': 8}, 'Logan': {'pop': 763, 'tracts': 1}, 'Loup': {'pop': 632, 'tracts': 1}, 'Madison': {'pop': 34876, 'tracts': 9}, 'McPherson': {'pop': 539, 'tracts': 1}, 'Merrick': {'pop': 7845, 'tracts': 3}, 'Morrill': {'pop': 5042, 'tracts': 1}, 'Nance': {'pop': 3735, 'tracts': 1}, 'Nemaha': {'pop': 7248, 'tracts': 2}, 'Nuckolls': {'pop': 4500, 'tracts': 2}, 'Otoe': {'pop': 15740, 'tracts': 5}, 'Pawnee': {'pop': 2773, 'tracts': 1}, 'Perkins': {'pop': 2970, 'tracts': 1}, 'Phelps': {'pop': 9188, 'tracts': 3}, 'Pierce': {'pop': 7266, 'tracts': 2}, 'Platte': {'pop': 32237, 'tracts': 7}, 'Polk': {'pop': 5406, 'tracts': 2}, 'Red Willow': {'pop': 11055, 'tracts': 3}, 'Richardson': {'pop': 8363, 'tracts': 3}, 'Rock': {'pop': 1526, 'tracts': 1}, 'Saline': {'pop': 14200, 'tracts': 4}, 'Sarpy': {'pop': 158840, 'tracts': 43}, 'Saunders': {'pop': 20780, 'tracts': 5}, 'Scotts Bluff': {'pop': 36970, 'tracts': 11}, 'Seward': {'pop': 16750, 'tracts': 4}, 'Sheridan': {'pop': 5469, 'tracts': 2}, 'Sherman': {'pop': 3152, 'tracts': 1}, 'Sioux': {'pop': 1311, 'tracts': 1}, 'Stanton': {'pop': 6129, 'tracts': 2}, 'Thayer': {'pop': 5228, 'tracts': 2}, 'Thomas': {'pop': 647, 'tracts': 1}, 'Thurston': {'pop': 6940, 'tracts': 2}, 'Valley': {'pop': 4260, 'tracts': 2}, 'Washington': {'pop': 20234, 'tracts': 5}, 'Wayne': {'pop': 9595, 'tracts': 2}, 'Webster': {'pop': 3812, 'tracts': 2}, 'Wheeler': {'pop': 818, 'tracts': 1}, 'York': {'pop': 13665, 'tracts': 4}}, 'NH': {'Belknap': {'pop': 60088, 'tracts': 15}, 'Carroll': {'pop': 47818, 'tracts': 11}, 'Cheshire': {'pop': 77117, 'tracts': 16}, 'Coos': {'pop': 33055, 'tracts': 11}, 'Grafton': {'pop': 89118, 'tracts': 19}, 'Hillsborough': {'pop': 400721, 'tracts': 86}, 'Merrimack': {'pop': 146445, 'tracts': 36}, 'Rockingham': {'pop': 295223, 'tracts': 66}, 'Strafford': {'pop': 123143, 'tracts': 25}, 'Sullivan': {'pop': 43742, 'tracts': 10}}, 'NJ': {'Atlantic': {'pop': 274549, 'tracts': 69}, 'Bergen': {'pop': 905116, 'tracts': 179}, 'Burlington': {'pop': 448734, 'tracts': 114}, 'Camden': {'pop': 513657, 'tracts': 127}, 'Cape May': {'pop': 97265, 'tracts': 32}, 'Cumberland': {'pop': 156898, 'tracts': 35}, 'Essex': {'pop': 783969, 'tracts': 210}, 'Gloucester': {'pop': 288288, 'tracts': 63}, 'Hudson': {'pop': 634266, 'tracts': 166}, 'Hunterdon': {'pop': 128349, 'tracts': 26}, 'Mercer': {'pop': 366513, 'tracts': 77}, 'Middlesex': {'pop': 809858, 'tracts': 175}, 'Monmouth': {'pop': 630380, 'tracts': 144}, 'Morris': {'pop': 492276, 'tracts': 100}, 'Ocean': {'pop': 576567, 'tracts': 126}, 'Passaic': {'pop': 501226, 'tracts': 100}, 'Salem': {'pop': 66083, 'tracts': 24}, 'Somerset': {'pop': 323444, 'tracts': 68}, 'Sussex': {'pop': 149265, 'tracts': 41}, 'Union': {'pop': 536499, 'tracts': 108}, 'Warren': {'pop': 108692, 'tracts': 23}}, 'NM': {'Bernalillo': {'pop': 662564, 'tracts': 153}, 'Catron': {'pop': 3725, 'tracts': 1}, 'Chaves': {'pop': 65645, 'tracts': 16}, 'Cibola': {'pop': 27213, 'tracts': 7}, 'Colfax': {'pop': 13750, 'tracts': 3}, 'Curry': {'pop': 48376, 'tracts': 12}, 'De Baca': {'pop': 2022, 'tracts': 1}, 'Dona Ana': {'pop': 209233, 'tracts': 41}, 'Eddy': {'pop': 53829, 'tracts': 12}, 'Grant': {'pop': 29514, 'tracts': 8}, 'Guadalupe': {'pop': 4687, 'tracts': 1}, 'Harding': {'pop': 695, 'tracts': 1}, 'Hidalgo': {'pop': 4894, 'tracts': 2}, 'Lea': {'pop': 64727, 'tracts': 18}, 'Lincoln': {'pop': 20497, 'tracts': 5}, 'Los Alamos': {'pop': 17950, 'tracts': 4}, 'Luna': {'pop': 25095, 'tracts': 6}, 'McKinley': {'pop': 71492, 'tracts': 17}, 'Mora': {'pop': 4881, 'tracts': 1}, 'Otero': {'pop': 63797, 'tracts': 16}, 'Quay': {'pop': 9041, 'tracts': 3}, 'Rio Arriba': {'pop': 40246, 'tracts': 9}, 'Roosevelt': {'pop': 19846, 'tracts': 5}, 'San Juan': {'pop': 130044, 'tracts': 33}, 'San Miguel': {'pop': 29393, 'tracts': 7}, 'Sandoval': {'pop': 131561, 'tracts': 28}, 'Santa Fe': {'pop': 144170, 'tracts': 50}, 'Sierra': {'pop': 11988, 'tracts': 4}, 'Socorro': {'pop': 17866, 'tracts': 6}, 'Taos': {'pop': 32937, 'tracts': 6}, 'Torrance': {'pop': 16383, 'tracts': 4}, 'Union': {'pop': 4549, 'tracts': 1}, 'Valencia': {'pop': 76569, 'tracts': 18}}, 'NV': {'Carson City': {'pop': 55274, 'tracts': 14}, 'Churchill': {'pop': 24877, 'tracts': 7}, 'Clark': {'pop': 1951269, 'tracts': 487}, 'Douglas': {'pop': 46997, 'tracts': 17}, 'Elko': {'pop': 48818, 'tracts': 14}, 'Esmeralda': {'pop': 783, 'tracts': 1}, 'Eureka': {'pop': 1987, 'tracts': 1}, 'Humboldt': {'pop': 16528, 'tracts': 4}, 'Lander': {'pop': 5775, 'tracts': 1}, 'Lincoln': {'pop': 5345, 'tracts': 2}, 'Lyon': {'pop': 51980, 'tracts': 10}, 'Mineral': {'pop': 4772, 'tracts': 2}, 'Nye': {'pop': 43946, 'tracts': 10}, 'Pershing': {'pop': 6753, 'tracts': 1}, 'Storey': {'pop': 4010, 'tracts': 1}, 'Washoe': {'pop': 421407, 'tracts': 112}, 'White Pine': {'pop': 10030, 'tracts': 3}}, 'NY': {'Albany': {'pop': 304204, 'tracts': 75}, 'Allegany': {'pop': 48946, 'tracts': 13}, 'Bronx': {'pop': 1385108, 'tracts': 339}, 'Broome': {'pop': 200600, 'tracts': 55}, 'Cattaraugus': {'pop': 80317, 'tracts': 21}, 'Cayuga': {'pop': 80026, 'tracts': 20}, 'Chautauqua': {'pop': 134905, 'tracts': 35}, 'Chemung': {'pop': 88830, 'tracts': 22}, 'Chenango': {'pop': 50477, 'tracts': 12}, 'Clinton': {'pop': 82128, 'tracts': 19}, 'Columbia': {'pop': 63096, 'tracts': 21}, 'Cortland': {'pop': 49336, 'tracts': 12}, 'Delaware': {'pop': 47980, 'tracts': 14}, 'Dutchess': {'pop': 297488, 'tracts': 79}, 'Erie': {'pop': 919040, 'tracts': 237}, 'Essex': {'pop': 39370, 'tracts': 13}, 'Franklin': {'pop': 51599, 'tracts': 14}, 'Fulton': {'pop': 55531, 'tracts': 15}, 'Genesee': {'pop': 60079, 'tracts': 15}, 'Greene': {'pop': 49221, 'tracts': 15}, 'Hamilton': {'pop': 4836, 'tracts': 4}, 'Herkimer': {'pop': 64519, 'tracts': 19}, 'Jefferson': {'pop': 116229, 'tracts': 26}, 'Kings': {'pop': 2504700, 'tracts': 760}, 'Lewis': {'pop': 27087, 'tracts': 7}, 'Livingston': {'pop': 65393, 'tracts': 15}, 'Madison': {'pop': 73442, 'tracts': 16}, 'Monroe': {'pop': 744344, 'tracts': 192}, 'Montgomery': {'pop': 50219, 'tracts': 16}, 'Nassau': {'pop': 1339532, 'tracts': 280}, 'New York': {'pop': 1585873, 'tracts': 288}, 'Niagara': {'pop': 216469, 'tracts': 61}, 'Oneida': {'pop': 234878, 'tracts': 74}, 'Onondaga': {'pop': 467026, 'tracts': 140}, 'Ontario': {'pop': 107931, 'tracts': 25}, 'Orange': {'pop': 372813, 'tracts': 79}, 'Orleans': {'pop': 42883, 'tracts': 11}, 'Oswego': {'pop': 122109, 'tracts': 29}, 'Otsego': {'pop': 62259, 'tracts': 17}, 'Putnam': {'pop': 99710, 'tracts': 19}, 'Queens': {'pop': 2230722, 'tracts': 669}, 'Rensselaer': {'pop': 159429, 'tracts': 42}, 'Richmond': {'pop': 468730, 'tracts': 109}, 'Rockland': {'pop': 311687, 'tracts': 65}, 'Saratoga': {'pop': 219607, 'tracts': 50}, 'Schenectady': {'pop': 154727, 'tracts': 43}, 'Schoharie': {'pop': 32749, 'tracts': 8}, 'Schuyler': {'pop': 18343, 'tracts': 5}, 'Seneca': {'pop': 35251, 'tracts': 10}, 'St. Lawrence': {'pop': 111944, 'tracts': 28}, 'Steuben': {'pop': 98990, 'tracts': 30}, 'Suffolk': {'pop': 1493350, 'tracts': 322}, 'Sullivan': {'pop': 77547, 'tracts': 24}, 'Tioga': {'pop': 51125, 'tracts': 10}, 'Tompkins': {'pop': 101564, 'tracts': 23}, 'Ulster': {'pop': 182493, 'tracts': 47}, 'Warren': {'pop': 65707, 'tracts': 19}, 'Washington': {'pop': 63216, 'tracts': 17}, 'Wayne': {'pop': 93772, 'tracts': 23}, 'Westchester': {'pop': 949113, 'tracts': 223}, 'Wyoming': {'pop': 42155, 'tracts': 11}, 'Yates': {'pop': 25348, 'tracts': 5}}, 'OH': {'Adams': {'pop': 28550, 'tracts': 6}, 'Allen': {'pop': 106331, 'tracts': 33}, 'Ashland': {'pop': 53139, 'tracts': 11}, 'Ashtabula': {'pop': 101497, 'tracts': 25}, 'Athens': {'pop': 64757, 'tracts': 15}, 'Auglaize': {'pop': 45949, 'tracts': 11}, 'Belmont': {'pop': 70400, 'tracts': 20}, 'Brown': {'pop': 44846, 'tracts': 9}, 'Butler': {'pop': 368130, 'tracts': 80}, 'Carroll': {'pop': 28836, 'tracts': 7}, 'Champaign': {'pop': 40097, 'tracts': 10}, 'Clark': {'pop': 138333, 'tracts': 44}, 'Clermont': {'pop': 197363, 'tracts': 40}, 'Clinton': {'pop': 42040, 'tracts': 9}, 'Columbiana': {'pop': 107841, 'tracts': 24}, 'Coshocton': {'pop': 36901, 'tracts': 10}, 'Crawford': {'pop': 43784, 'tracts': 13}, 'Cuyahoga': {'pop': 1280122, 'tracts': 447}, 'Darke': {'pop': 52959, 'tracts': 12}, 'Defiance': {'pop': 39037, 'tracts': 9}, 'Delaware': {'pop': 174214, 'tracts': 35}, 'Erie': {'pop': 77079, 'tracts': 19}, 'Fairfield': {'pop': 146156, 'tracts': 28}, 'Fayette': {'pop': 29030, 'tracts': 7}, 'Franklin': {'pop': 1163414, 'tracts': 284}, 'Fulton': {'pop': 42698, 'tracts': 9}, 'Gallia': {'pop': 30934, 'tracts': 7}, 'Geauga': {'pop': 93389, 'tracts': 21}, 'Greene': {'pop': 161573, 'tracts': 35}, 'Guernsey': {'pop': 40087, 'tracts': 10}, 'Hamilton': {'pop': 802374, 'tracts': 222}, 'Hancock': {'pop': 74782, 'tracts': 13}, 'Hardin': {'pop': 32058, 'tracts': 7}, 'Harrison': {'pop': 15864, 'tracts': 5}, 'Henry': {'pop': 28215, 'tracts': 7}, 'Highland': {'pop': 43589, 'tracts': 9}, 'Hocking': {'pop': 29380, 'tracts': 7}, 'Holmes': {'pop': 42366, 'tracts': 8}, 'Huron': {'pop': 59626, 'tracts': 13}, 'Jackson': {'pop': 33225, 'tracts': 7}, 'Jefferson': {'pop': 69709, 'tracts': 23}, 'Knox': {'pop': 60921, 'tracts': 12}, 'Lake': {'pop': 230041, 'tracts': 59}, 'Lawrence': {'pop': 62450, 'tracts': 16}, 'Licking': {'pop': 166492, 'tracts': 32}, 'Logan': {'pop': 45858, 'tracts': 11}, 'Lorain': {'pop': 301356, 'tracts': 73}, 'Lucas': {'pop': 441815, 'tracts': 127}, 'Madison': {'pop': 43435, 'tracts': 12}, 'Mahoning': {'pop': 238823, 'tracts': 70}, 'Marion': {'pop': 66501, 'tracts': 18}, 'Medina': {'pop': 172332, 'tracts': 37}, 'Meigs': {'pop': 23770, 'tracts': 6}, 'Mercer': {'pop': 40814, 'tracts': 9}, 'Miami': {'pop': 102506, 'tracts': 21}, 'Monroe': {'pop': 14642, 'tracts': 4}, 'Montgomery': {'pop': 535153, 'tracts': 153}, 'Morgan': {'pop': 15054, 'tracts': 4}, 'Morrow': {'pop': 34827, 'tracts': 6}, 'Muskingum': {'pop': 86074, 'tracts': 19}, 'Noble': {'pop': 14645, 'tracts': 3}, 'Ottawa': {'pop': 41428, 'tracts': 13}, 'Paulding': {'pop': 19614, 'tracts': 5}, 'Perry': {'pop': 36058, 'tracts': 6}, 'Pickaway': {'pop': 55698, 'tracts': 13}, 'Pike': {'pop': 28709, 'tracts': 6}, 'Portage': {'pop': 161419, 'tracts': 35}, 'Preble': {'pop': 42270, 'tracts': 12}, 'Putnam': {'pop': 34499, 'tracts': 7}, 'Richland': {'pop': 124475, 'tracts': 30}, 'Ross': {'pop': 78064, 'tracts': 17}, 'Sandusky': {'pop': 60944, 'tracts': 15}, 'Scioto': {'pop': 79499, 'tracts': 20}, 'Seneca': {'pop': 56745, 'tracts': 14}, 'Shelby': {'pop': 49423, 'tracts': 10}, 'Stark': {'pop': 375586, 'tracts': 86}, 'Summit': {'pop': 541781, 'tracts': 135}, 'Trumbull': {'pop': 210312, 'tracts': 55}, 'Tuscarawas': {'pop': 92582, 'tracts': 21}, 'Union': {'pop': 52300, 'tracts': 10}, 'Van Wert': {'pop': 28744, 'tracts': 9}, 'Vinton': {'pop': 13435, 'tracts': 3}, 'Warren': {'pop': 212693, 'tracts': 33}, 'Washington': {'pop': 61778, 'tracts': 16}, 'Wayne': {'pop': 114520, 'tracts': 32}, 'Williams': {'pop': 37642, 'tracts': 9}, 'Wood': {'pop': 125488, 'tracts': 28}, 'Wyandot': {'pop': 22615, 'tracts': 6}}, 'OK': {'Adair': {'pop': 22683, 'tracts': 5}, 'Alfalfa': {'pop': 5642, 'tracts': 3}, 'Atoka': {'pop': 14182, 'tracts': 4}, 'Beaver': {'pop': 5636, 'tracts': 3}, 'Beckham': {'pop': 22119, 'tracts': 4}, 'Blaine': {'pop': 11943, 'tracts': 5}, 'Bryan': {'pop': 42416, 'tracts': 11}, 'Caddo': {'pop': 29600, 'tracts': 8}, 'Canadian': {'pop': 115541, 'tracts': 29}, 'Carter': {'pop': 47557, 'tracts': 11}, 'Cherokee': {'pop': 46987, 'tracts': 9}, 'Choctaw': {'pop': 15205, 'tracts': 5}, 'Cimarron': {'pop': 2475, 'tracts': 2}, 'Cleveland': {'pop': 255755, 'tracts': 62}, 'Coal': {'pop': 5925, 'tracts': 2}, 'Comanche': {'pop': 124098, 'tracts': 32}, 'Cotton': {'pop': 6193, 'tracts': 2}, 'Craig': {'pop': 15029, 'tracts': 5}, 'Creek': {'pop': 69967, 'tracts': 21}, 'Custer': {'pop': 27469, 'tracts': 5}, 'Delaware': {'pop': 41487, 'tracts': 9}, 'Dewey': {'pop': 4810, 'tracts': 3}, 'Ellis': {'pop': 4151, 'tracts': 2}, 'Garfield': {'pop': 60580, 'tracts': 12}, 'Garvin': {'pop': 27576, 'tracts': 9}, 'Grady': {'pop': 52431, 'tracts': 10}, 'Grant': {'pop': 4527, 'tracts': 2}, 'Greer': {'pop': 6239, 'tracts': 2}, 'Harmon': {'pop': 2922, 'tracts': 1}, 'Harper': {'pop': 3685, 'tracts': 2}, 'Haskell': {'pop': 12769, 'tracts': 4}, 'Hughes': {'pop': 14003, 'tracts': 5}, 'Jackson': {'pop': 26446, 'tracts': 8}, 'Jefferson': {'pop': 6472, 'tracts': 3}, 'Johnston': {'pop': 10957, 'tracts': 3}, 'Kay': {'pop': 46562, 'tracts': 11}, 'Kingfisher': {'pop': 15034, 'tracts': 4}, 'Kiowa': {'pop': 9446, 'tracts': 3}, 'Latimer': {'pop': 11154, 'tracts': 3}, 'Le Flore': {'pop': 50384, 'tracts': 12}, 'Lincoln': {'pop': 34273, 'tracts': 7}, 'Logan': {'pop': 41848, 'tracts': 8}, 'Love': {'pop': 9423, 'tracts': 3}, 'Major': {'pop': 7527, 'tracts': 3}, 'Marshall': {'pop': 15840, 'tracts': 4}, 'Mayes': {'pop': 41259, 'tracts': 9}, 'McClain': {'pop': 34506, 'tracts': 6}, 'McCurtain': {'pop': 33151, 'tracts': 8}, 'McIntosh': {'pop': 20252, 'tracts': 6}, 'Murray': {'pop': 13488, 'tracts': 3}, 'Muskogee': {'pop': 70990, 'tracts': 16}, 'Noble': {'pop': 11561, 'tracts': 4}, 'Nowata': {'pop': 10536, 'tracts': 4}, 'Okfuskee': {'pop': 12191, 'tracts': 4}, 'Oklahoma': {'pop': 718633, 'tracts': 241}, 'Okmulgee': {'pop': 40069, 'tracts': 10}, 'Osage': {'pop': 47472, 'tracts': 11}, 'Ottawa': {'pop': 31848, 'tracts': 9}, 'Pawnee': {'pop': 16577, 'tracts': 5}, 'Payne': {'pop': 77350, 'tracts': 17}, 'Pittsburg': {'pop': 45837, 'tracts': 13}, 'Pontotoc': {'pop': 37492, 'tracts': 10}, 'Pottawatomie': {'pop': 69442, 'tracts': 16}, 'Pushmataha': {'pop': 11572, 'tracts': 3}, 'Roger Mills': {'pop': 3647, 'tracts': 1}, 'Rogers': {'pop': 86905, 'tracts': 28}, 'Seminole': {'pop': 25482, 'tracts': 9}, 'Sequoyah': {'pop': 42391, 'tracts': 9}, 'Stephens': {'pop': 45048, 'tracts': 11}, 'Texas': {'pop': 20640, 'tracts': 5}, 'Tillman': {'pop': 7992, 'tracts': 5}, 'Tulsa': {'pop': 603403, 'tracts': 175}, 'Wagoner': {'pop': 73085, 'tracts': 22}, 'Washington': {'pop': 50976, 'tracts': 13}, 'Washita': {'pop': 11629, 'tracts': 4}, 'Woods': {'pop': 8878, 'tracts': 3}, 'Woodward': {'pop': 20081, 'tracts': 5}}, 'OR': {'Baker': {'pop': 16134, 'tracts': 6}, 'Benton': {'pop': 85579, 'tracts': 18}, 'Clackamas': {'pop': 375992, 'tracts': 80}, 'Clatsop': {'pop': 37039, 'tracts': 12}, 'Columbia': {'pop': 49351, 'tracts': 10}, 'Coos': {'pop': 63043, 'tracts': 13}, 'Crook': {'pop': 20978, 'tracts': 4}, 'Curry': {'pop': 22364, 'tracts': 6}, 'Deschutes': {'pop': 157733, 'tracts': 24}, 'Douglas': {'pop': 107667, 'tracts': 22}, 'Gilliam': {'pop': 1871, 'tracts': 1}, 'Grant': {'pop': 7445, 'tracts': 2}, 'Harney': {'pop': 7422, 'tracts': 2}, 'Hood River': {'pop': 22346, 'tracts': 4}, 'Jackson': {'pop': 203206, 'tracts': 41}, 'Jefferson': {'pop': 21720, 'tracts': 6}, 'Josephine': {'pop': 82713, 'tracts': 16}, 'Klamath': {'pop': 66380, 'tracts': 20}, 'Lake': {'pop': 7895, 'tracts': 2}, 'Lane': {'pop': 351715, 'tracts': 86}, 'Lincoln': {'pop': 46034, 'tracts': 18}, 'Linn': {'pop': 116672, 'tracts': 21}, 'Malheur': {'pop': 31313, 'tracts': 8}, 'Marion': {'pop': 315335, 'tracts': 58}, 'Morrow': {'pop': 11173, 'tracts': 2}, 'Multnomah': {'pop': 735334, 'tracts': 171}, 'Polk': {'pop': 75403, 'tracts': 12}, 'Sherman': {'pop': 1765, 'tracts': 1}, 'Tillamook': {'pop': 25250, 'tracts': 8}, 'Umatilla': {'pop': 75889, 'tracts': 15}, 'Union': {'pop': 25748, 'tracts': 8}, 'Wallowa': {'pop': 7008, 'tracts': 3}, 'Wasco': {'pop': 25213, 'tracts': 8}, 'Washington': {'pop': 529710, 'tracts': 104}, 'Wheeler': {'pop': 1441, 'tracts': 1}, 'Yamhill': {'pop': 99193, 'tracts': 17}}, 'PA': {'Adams': {'pop': 101407, 'tracts': 23}, 'Allegheny': {'pop': 1223348, 'tracts': 402}, 'Armstrong': {'pop': 68941, 'tracts': 19}, 'Beaver': {'pop': 170539, 'tracts': 51}, 'Bedford': {'pop': 49762, 'tracts': 11}, 'Berks': {'pop': 411442, 'tracts': 90}, 'Blair': {'pop': 127089, 'tracts': 34}, 'Bradford': {'pop': 62622, 'tracts': 14}, 'Bucks': {'pop': 625249, 'tracts': 143}, 'Butler': {'pop': 183862, 'tracts': 44}, 'Cambria': {'pop': 143679, 'tracts': 42}, 'Cameron': {'pop': 5085, 'tracts': 2}, 'Carbon': {'pop': 65249, 'tracts': 12}, 'Centre': {'pop': 153990, 'tracts': 31}, 'Chester': {'pop': 498886, 'tracts': 116}, 'Clarion': {'pop': 39988, 'tracts': 10}, 'Clearfield': {'pop': 81642, 'tracts': 20}, 'Clinton': {'pop': 39238, 'tracts': 9}, 'Columbia': {'pop': 67295, 'tracts': 15}, 'Crawford': {'pop': 88765, 'tracts': 23}, 'Cumberland': {'pop': 235406, 'tracts': 49}, 'Dauphin': {'pop': 268100, 'tracts': 65}, 'Delaware': {'pop': 558979, 'tracts': 144}, 'Elk': {'pop': 31946, 'tracts': 9}, 'Erie': {'pop': 280566, 'tracts': 72}, 'Fayette': {'pop': 136606, 'tracts': 36}, 'Forest': {'pop': 7716, 'tracts': 3}, 'Franklin': {'pop': 149618, 'tracts': 27}, 'Fulton': {'pop': 14845, 'tracts': 3}, 'Greene': {'pop': 38686, 'tracts': 9}, 'Huntingdon': {'pop': 45913, 'tracts': 12}, 'Indiana': {'pop': 88880, 'tracts': 23}, 'Jefferson': {'pop': 45200, 'tracts': 13}, 'Juniata': {'pop': 24636, 'tracts': 5}, 'Lackawanna': {'pop': 214437, 'tracts': 59}, 'Lancaster': {'pop': 519445, 'tracts': 98}, 'Lawrence': {'pop': 91108, 'tracts': 28}, 'Lebanon': {'pop': 133568, 'tracts': 31}, 'Lehigh': {'pop': 349497, 'tracts': 76}, 'Luzerne': {'pop': 320918, 'tracts': 104}, 'Lycoming': {'pop': 116111, 'tracts': 29}, 'McKean': {'pop': 43450, 'tracts': 12}, 'Mercer': {'pop': 116638, 'tracts': 30}, 'Mifflin': {'pop': 46682, 'tracts': 12}, 'Monroe': {'pop': 169842, 'tracts': 33}, 'Montgomery': {'pop': 799874, 'tracts': 211}, 'Montour': {'pop': 18267, 'tracts': 4}, 'Northampton': {'pop': 297735, 'tracts': 68}, 'Northumberland': {'pop': 94528, 'tracts': 24}, 'Perry': {'pop': 45969, 'tracts': 10}, 'Philadelphia': {'pop': 1526006, 'tracts': 384}, 'Pike': {'pop': 57369, 'tracts': 18}, 'Potter': {'pop': 17457, 'tracts': 5}, 'Schuylkill': {'pop': 148289, 'tracts': 40}, 'Snyder': {'pop': 39702, 'tracts': 8}, 'Somerset': {'pop': 77742, 'tracts': 21}, 'Sullivan': {'pop': 6428, 'tracts': 2}, 'Susquehanna': {'pop': 43356, 'tracts': 11}, 'Tioga': {'pop': 41981, 'tracts': 10}, 'Union': {'pop': 44947, 'tracts': 10}, 'Venango': {'pop': 54984, 'tracts': 16}, 'Warren': {'pop': 41815, 'tracts': 13}, 'Washington': {'pop': 207820, 'tracts': 59}, 'Wayne': {'pop': 52822, 'tracts': 14}, 'Westmoreland': {'pop': 365169, 'tracts': 100}, 'Wyoming': {'pop': 28276, 'tracts': 7}, 'York': {'pop': 434972, 'tracts': 90}}, 'RI': {'Bristol': {'pop': 49875, 'tracts': 11}, 'Kent': {'pop': 166158, 'tracts': 39}, 'Newport': {'pop': 82888, 'tracts': 22}, 'Providence': {'pop': 626667, 'tracts': 141}, 'Washington': {'pop': 126979, 'tracts': 29}}, 'SC': {'Abbeville': {'pop': 25417, 'tracts': 6}, 'Aiken': {'pop': 160099, 'tracts': 33}, 'Allendale': {'pop': 10419, 'tracts': 3}, 'Anderson': {'pop': 187126, 'tracts': 39}, 'Bamberg': {'pop': 15987, 'tracts': 4}, 'Barnwell': {'pop': 22621, 'tracts': 6}, 'Beaufort': {'pop': 162233, 'tracts': 41}, 'Berkeley': {'pop': 177843, 'tracts': 45}, 'Calhoun': {'pop': 15175, 'tracts': 3}, 'Charleston': {'pop': 350209, 'tracts': 86}, 'Cherokee': {'pop': 55342, 'tracts': 13}, 'Chester': {'pop': 33140, 'tracts': 11}, 'Chesterfield': {'pop': 46734, 'tracts': 10}, 'Clarendon': {'pop': 34971, 'tracts': 12}, 'Colleton': {'pop': 38892, 'tracts': 10}, 'Darlington': {'pop': 68681, 'tracts': 16}, 'Dillon': {'pop': 32062, 'tracts': 6}, 'Dorchester': {'pop': 136555, 'tracts': 25}, 'Edgefield': {'pop': 26985, 'tracts': 6}, 'Fairfield': {'pop': 23956, 'tracts': 5}, 'Florence': {'pop': 136885, 'tracts': 33}, 'Georgetown': {'pop': 60158, 'tracts': 15}, 'Greenville': {'pop': 451225, 'tracts': 111}, 'Greenwood': {'pop': 69661, 'tracts': 14}, 'Hampton': {'pop': 21090, 'tracts': 5}, 'Horry': {'pop': 269291, 'tracts': 72}, 'Jasper': {'pop': 24777, 'tracts': 5}, 'Kershaw': {'pop': 61697, 'tracts': 15}, 'Lancaster': {'pop': 76652, 'tracts': 14}, 'Laurens': {'pop': 66537, 'tracts': 17}, 'Lee': {'pop': 19220, 'tracts': 7}, 'Lexington': {'pop': 262391, 'tracts': 74}, 'Marion': {'pop': 33062, 'tracts': 8}, 'Marlboro': {'pop': 28933, 'tracts': 7}, 'McCormick': {'pop': 10233, 'tracts': 3}, 'Newberry': {'pop': 37508, 'tracts': 8}, 'Oconee': {'pop': 74273, 'tracts': 15}, 'Orangeburg': {'pop': 92501, 'tracts': 20}, 'Pickens': {'pop': 119224, 'tracts': 28}, 'Richland': {'pop': 384504, 'tracts': 89}, 'Saluda': {'pop': 19875, 'tracts': 5}, 'Spartanburg': {'pop': 284307, 'tracts': 69}, 'Sumter': {'pop': 107456, 'tracts': 23}, 'Union': {'pop': 28961, 'tracts': 9}, 'Williamsburg': {'pop': 34423, 'tracts': 11}, 'York': {'pop': 226073, 'tracts': 46}}, 'SD': {'Aurora': {'pop': 2710, 'tracts': 1}, 'Beadle': {'pop': 17398, 'tracts': 6}, 'Bennett': {'pop': 3431, 'tracts': 2}, 'Bon Homme': {'pop': 7070, 'tracts': 2}, 'Brookings': {'pop': 31965, 'tracts': 6}, 'Brown': {'pop': 36531, 'tracts': 8}, 'Brule': {'pop': 5255, 'tracts': 2}, 'Buffalo': {'pop': 1912, 'tracts': 1}, 'Butte': {'pop': 10110, 'tracts': 2}, 'Campbell': {'pop': 1466, 'tracts': 1}, 'Charles Mix': {'pop': 9129, 'tracts': 3}, 'Clark': {'pop': 3691, 'tracts': 1}, 'Clay': {'pop': 13864, 'tracts': 3}, 'Codington': {'pop': 27227, 'tracts': 7}, 'Corson': {'pop': 4050, 'tracts': 2}, 'Custer': {'pop': 8216, 'tracts': 2}, 'Davison': {'pop': 19504, 'tracts': 4}, 'Day': {'pop': 5710, 'tracts': 3}, 'Deuel': {'pop': 4364, 'tracts': 2}, 'Dewey': {'pop': 5301, 'tracts': 2}, 'Douglas': {'pop': 3002, 'tracts': 1}, 'Edmunds': {'pop': 4071, 'tracts': 2}, 'Fall River': {'pop': 7094, 'tracts': 2}, 'Faulk': {'pop': 2364, 'tracts': 1}, 'Grant': {'pop': 7356, 'tracts': 2}, 'Gregory': {'pop': 4271, 'tracts': 2}, 'Haakon': {'pop': 1937, 'tracts': 1}, 'Hamlin': {'pop': 5903, 'tracts': 2}, 'Hand': {'pop': 3431, 'tracts': 2}, 'Hanson': {'pop': 3331, 'tracts': 1}, 'Harding': {'pop': 1255, 'tracts': 1}, 'Hughes': {'pop': 17022, 'tracts': 4}, 'Hutchinson': {'pop': 7343, 'tracts': 3}, 'Hyde': {'pop': 1420, 'tracts': 1}, 'Jackson': {'pop': 3031, 'tracts': 2}, 'Jerauld': {'pop': 2071, 'tracts': 1}, 'Jones': {'pop': 1006, 'tracts': 1}, 'Kingsbury': {'pop': 5148, 'tracts': 2}, 'Lake': {'pop': 11200, 'tracts': 3}, 'Lawrence': {'pop': 24097, 'tracts': 5}, 'Lincoln': {'pop': 44828, 'tracts': 11}, 'Lyman': {'pop': 3755, 'tracts': 2}, 'Marshall': {'pop': 4656, 'tracts': 1}, 'McCook': {'pop': 5618, 'tracts': 2}, 'McPherson': {'pop': 2459, 'tracts': 1}, 'Meade': {'pop': 25434, 'tracts': 5}, 'Mellette': {'pop': 2048, 'tracts': 1}, 'Miner': {'pop': 2389, 'tracts': 1}, 'Minnehaha': {'pop': 169468, 'tracts': 42}, 'Moody': {'pop': 6486, 'tracts': 2}, 'Pennington': {'pop': 100948, 'tracts': 23}, 'Perkins': {'pop': 2982, 'tracts': 1}, 'Potter': {'pop': 2329, 'tracts': 1}, 'Roberts': {'pop': 10149, 'tracts': 4}, 'Sanborn': {'pop': 2355, 'tracts': 1}, 'Shannon': {'pop': 13586, 'tracts': 3}, 'Spink': {'pop': 6415, 'tracts': 3}, 'Stanley': {'pop': 2966, 'tracts': 1}, 'Sully': {'pop': 1373, 'tracts': 1}, 'Todd': {'pop': 9612, 'tracts': 2}, 'Tripp': {'pop': 5644, 'tracts': 2}, 'Turner': {'pop': 8347, 'tracts': 2}, 'Union': {'pop': 14399, 'tracts': 3}, 'Walworth': {'pop': 5438, 'tracts': 2}, 'Yankton': {'pop': 22438, 'tracts': 5}, 'Ziebach': {'pop': 2801, 'tracts': 1}}, 'TN': {'Anderson': {'pop': 75129, 'tracts': 18}, 'Bedford': {'pop': 45058, 'tracts': 9}, 'Benton': {'pop': 16489, 'tracts': 5}, 'Bledsoe': {'pop': 12876, 'tracts': 3}, 'Blount': {'pop': 123010, 'tracts': 28}, 'Bradley': {'pop': 98963, 'tracts': 19}, 'Campbell': {'pop': 40716, 'tracts': 11}, 'Cannon': {'pop': 13801, 'tracts': 3}, 'Carroll': {'pop': 28522, 'tracts': 8}, 'Carter': {'pop': 57424, 'tracts': 17}, 'Cheatham': {'pop': 39105, 'tracts': 9}, 'Chester': {'pop': 17131, 'tracts': 3}, 'Claiborne': {'pop': 32213, 'tracts': 9}, 'Clay': {'pop': 7861, 'tracts': 2}, 'Cocke': {'pop': 35662, 'tracts': 9}, 'Coffee': {'pop': 52796, 'tracts': 12}, 'Crockett': {'pop': 14586, 'tracts': 5}, 'Cumberland': {'pop': 56053, 'tracts': 14}, 'Davidson': {'pop': 626681, 'tracts': 161}, 'DeKalb': {'pop': 18723, 'tracts': 4}, 'Decatur': {'pop': 11757, 'tracts': 4}, 'Dickson': {'pop': 49666, 'tracts': 10}, 'Dyer': {'pop': 38335, 'tracts': 8}, 'Fayette': {'pop': 38413, 'tracts': 11}, 'Fentress': {'pop': 17959, 'tracts': 4}, 'Franklin': {'pop': 41052, 'tracts': 9}, 'Gibson': {'pop': 49683, 'tracts': 14}, 'Giles': {'pop': 29485, 'tracts': 8}, 'Grainger': {'pop': 22657, 'tracts': 5}, 'Greene': {'pop': 68831, 'tracts': 15}, 'Grundy': {'pop': 13703, 'tracts': 4}, 'Hamblen': {'pop': 62544, 'tracts': 12}, 'Hamilton': {'pop': 336463, 'tracts': 82}, 'Hancock': {'pop': 6819, 'tracts': 2}, 'Hardeman': {'pop': 27253, 'tracts': 6}, 'Hardin': {'pop': 26026, 'tracts': 6}, 'Hawkins': {'pop': 56833, 'tracts': 13}, 'Haywood': {'pop': 18787, 'tracts': 6}, 'Henderson': {'pop': 27769, 'tracts': 6}, 'Henry': {'pop': 32330, 'tracts': 9}, 'Hickman': {'pop': 24690, 'tracts': 6}, 'Houston': {'pop': 8426, 'tracts': 3}, 'Humphreys': {'pop': 18538, 'tracts': 5}, 'Jackson': {'pop': 11638, 'tracts': 4}, 'Jefferson': {'pop': 51407, 'tracts': 9}, 'Johnson': {'pop': 18244, 'tracts': 5}, 'Knox': {'pop': 432226, 'tracts': 112}, 'Lake': {'pop': 7832, 'tracts': 2}, 'Lauderdale': {'pop': 27815, 'tracts': 9}, 'Lawrence': {'pop': 41869, 'tracts': 11}, 'Lewis': {'pop': 12161, 'tracts': 2}, 'Lincoln': {'pop': 33361, 'tracts': 9}, 'Loudon': {'pop': 48556, 'tracts': 10}, 'Macon': {'pop': 22248, 'tracts': 4}, 'Madison': {'pop': 98294, 'tracts': 27}, 'Marion': {'pop': 28237, 'tracts': 6}, 'Marshall': {'pop': 30617, 'tracts': 6}, 'Maury': {'pop': 80956, 'tracts': 17}, 'McMinn': {'pop': 52266, 'tracts': 10}, 'McNairy': {'pop': 26075, 'tracts': 7}, 'Meigs': {'pop': 11753, 'tracts': 3}, 'Monroe': {'pop': 44519, 'tracts': 7}, 'Montgomery': {'pop': 172331, 'tracts': 39}, 'Moore': {'pop': 6362, 'tracts': 2}, 'Morgan': {'pop': 21987, 'tracts': 5}, 'Obion': {'pop': 31807, 'tracts': 10}, 'Overton': {'pop': 22083, 'tracts': 7}, 'Perry': {'pop': 7915, 'tracts': 2}, 'Pickett': {'pop': 5077, 'tracts': 1}, 'Polk': {'pop': 16825, 'tracts': 5}, 'Putnam': {'pop': 72321, 'tracts': 15}, 'Rhea': {'pop': 31809, 'tracts': 6}, 'Roane': {'pop': 54181, 'tracts': 11}, 'Robertson': {'pop': 66283, 'tracts': 14}, 'Rutherford': {'pop': 262604, 'tracts': 49}, 'Scott': {'pop': 22228, 'tracts': 5}, 'Sequatchie': {'pop': 14112, 'tracts': 3}, 'Sevier': {'pop': 89889, 'tracts': 18}, 'Shelby': {'pop': 927644, 'tracts': 221}, 'Smith': {'pop': 19166, 'tracts': 5}, 'Stewart': {'pop': 13324, 'tracts': 5}, 'Sullivan': {'pop': 156823, 'tracts': 39}, 'Sumner': {'pop': 160645, 'tracts': 42}, 'Tipton': {'pop': 61081, 'tracts': 13}, 'Trousdale': {'pop': 7870, 'tracts': 2}, 'Unicoi': {'pop': 18313, 'tracts': 4}, 'Union': {'pop': 19109, 'tracts': 4}, 'Van Buren': {'pop': 5548, 'tracts': 2}, 'Warren': {'pop': 39839, 'tracts': 9}, 'Washington': {'pop': 122979, 'tracts': 23}, 'Wayne': {'pop': 17021, 'tracts': 4}, 'Weakley': {'pop': 35021, 'tracts': 11}, 'White': {'pop': 25841, 'tracts': 6}, 'Williamson': {'pop': 183182, 'tracts': 37}, 'Wilson': {'pop': 113993, 'tracts': 21}}, 'TX': {'Anderson': {'pop': 58458, 'tracts': 11}, 'Andrews': {'pop': 14786, 'tracts': 4}, 'Angelina': {'pop': 86771, 'tracts': 17}, 'Aransas': {'pop': 23158, 'tracts': 5}, 'Archer': {'pop': 9054, 'tracts': 3}, 'Armstrong': {'pop': 1901, 'tracts': 1}, 'Atascosa': {'pop': 44911, 'tracts': 8}, 'Austin': {'pop': 28417, 'tracts': 6}, 'Bailey': {'pop': 7165, 'tracts': 1}, 'Bandera': {'pop': 20485, 'tracts': 5}, 'Bastrop': {'pop': 74171, 'tracts': 10}, 'Baylor': {'pop': 3726, 'tracts': 1}, 'Bee': {'pop': 31861, 'tracts': 7}, 'Bell': {'pop': 310235, 'tracts': 65}, 'Bexar': {'pop': 1714773, 'tracts': 366}, 'Blanco': {'pop': 10497, 'tracts': 2}, 'Borden': {'pop': 641, 'tracts': 1}, 'Bosque': {'pop': 18212, 'tracts': 7}, 'Bowie': {'pop': 92565, 'tracts': 18}, 'Brazoria': {'pop': 313166, 'tracts': 51}, 'Brazos': {'pop': 194851, 'tracts': 42}, 'Brewster': {'pop': 9232, 'tracts': 3}, 'Briscoe': {'pop': 1637, 'tracts': 1}, 'Brooks': {'pop': 7223, 'tracts': 2}, 'Brown': {'pop': 38106, 'tracts': 12}, 'Burleson': {'pop': 17187, 'tracts': 5}, 'Burnet': {'pop': 42750, 'tracts': 8}, 'Caldwell': {'pop': 38066, 'tracts': 8}, 'Calhoun': {'pop': 21381, 'tracts': 6}, 'Callahan': {'pop': 13544, 'tracts': 3}, 'Cameron': {'pop': 406220, 'tracts': 86}, 'Camp': {'pop': 12401, 'tracts': 3}, 'Carson': {'pop': 6182, 'tracts': 2}, 'Cass': {'pop': 30464, 'tracts': 7}, 'Castro': {'pop': 8062, 'tracts': 3}, 'Chambers': {'pop': 35096, 'tracts': 6}, 'Cherokee': {'pop': 50845, 'tracts': 12}, 'Childress': {'pop': 7041, 'tracts': 2}, 'Clay': {'pop': 10752, 'tracts': 3}, 'Cochran': {'pop': 3127, 'tracts': 1}, 'Coke': {'pop': 3320, 'tracts': 2}, 'Coleman': {'pop': 8895, 'tracts': 3}, 'Collin': {'pop': 782341, 'tracts': 152}, 'Collingsworth': {'pop': 3057, 'tracts': 1}, 'Colorado': {'pop': 20874, 'tracts': 5}, 'Comal': {'pop': 108472, 'tracts': 24}, 'Comanche': {'pop': 13974, 'tracts': 4}, 'Concho': {'pop': 4087, 'tracts': 1}, 'Cooke': {'pop': 38437, 'tracts': 8}, 'Coryell': {'pop': 75388, 'tracts': 19}, 'Cottle': {'pop': 1505, 'tracts': 1}, 'Crane': {'pop': 4375, 'tracts': 1}, 'Crockett': {'pop': 3719, 'tracts': 1}, 'Crosby': {'pop': 6059, 'tracts': 3}, 'Culberson': {'pop': 2398, 'tracts': 1}, 'Dallam': {'pop': 6703, 'tracts': 2}, 'Dallas': {'pop': 2368139, 'tracts': 529}, 'Dawson': {'pop': 13833, 'tracts': 4}, 'DeWitt': {'pop': 20097, 'tracts': 5}, 'Deaf Smith': {'pop': 19372, 'tracts': 4}, 'Delta': {'pop': 5231, 'tracts': 2}, 'Denton': {'pop': 662614, 'tracts': 137}, 'Dickens': {'pop': 2444, 'tracts': 1}, 'Dimmit': {'pop': 9996, 'tracts': 2}, 'Donley': {'pop': 3677, 'tracts': 2}, 'Duval': {'pop': 11782, 'tracts': 3}, 'Eastland': {'pop': 18583, 'tracts': 5}, 'Ector': {'pop': 137130, 'tracts': 28}, 'Edwards': {'pop': 2002, 'tracts': 1}, 'El Paso': {'pop': 800647, 'tracts': 161}, 'Ellis': {'pop': 149610, 'tracts': 31}, 'Erath': {'pop': 37890, 'tracts': 8}, 'Falls': {'pop': 17866, 'tracts': 6}, 'Fannin': {'pop': 33915, 'tracts': 9}, 'Fayette': {'pop': 24554, 'tracts': 7}, 'Fisher': {'pop': 3974, 'tracts': 2}, 'Floyd': {'pop': 6446, 'tracts': 2}, 'Foard': {'pop': 1336, 'tracts': 1}, 'Fort Bend': {'pop': 585375, 'tracts': 76}, 'Franklin': {'pop': 10605, 'tracts': 3}, 'Freestone': {'pop': 19816, 'tracts': 7}, 'Frio': {'pop': 17217, 'tracts': 3}, 'Gaines': {'pop': 17526, 'tracts': 3}, 'Galveston': {'pop': 291309, 'tracts': 67}, 'Garza': {'pop': 6461, 'tracts': 1}, 'Gillespie': {'pop': 24837, 'tracts': 5}, 'Glasscock': {'pop': 1226, 'tracts': 1}, 'Goliad': {'pop': 7210, 'tracts': 2}, 'Gonzales': {'pop': 19807, 'tracts': 6}, 'Gray': {'pop': 22535, 'tracts': 7}, 'Grayson': {'pop': 120877, 'tracts': 26}, 'Gregg': {'pop': 121730, 'tracts': 25}, 'Grimes': {'pop': 26604, 'tracts': 6}, 'Guadalupe': {'pop': 131533, 'tracts': 29}, 'Hale': {'pop': 36273, 'tracts': 9}, 'Hall': {'pop': 3353, 'tracts': 1}, 'Hamilton': {'pop': 8517, 'tracts': 3}, 'Hansford': {'pop': 5613, 'tracts': 2}, 'Hardeman': {'pop': 4139, 'tracts': 1}, 'Hardin': {'pop': 54635, 'tracts': 11}, 'Harris': {'pop': 4092459, 'tracts': 786}, 'Harrison': {'pop': 65631, 'tracts': 14}, 'Hartley': {'pop': 6062, 'tracts': 1}, 'Haskell': {'pop': 5899, 'tracts': 2}, 'Hays': {'pop': 157107, 'tracts': 25}, 'Hemphill': {'pop': 3807, 'tracts': 1}, 'Henderson': {'pop': 78532, 'tracts': 17}, 'Hidalgo': {'pop': 774769, 'tracts': 113}, 'Hill': {'pop': 35089, 'tracts': 11}, 'Hockley': {'pop': 22935, 'tracts': 7}, 'Hood': {'pop': 51182, 'tracts': 10}, 'Hopkins': {'pop': 35161, 'tracts': 9}, 'Houston': {'pop': 23732, 'tracts': 7}, 'Howard': {'pop': 35012, 'tracts': 10}, 'Hudspeth': {'pop': 3476, 'tracts': 1}, 'Hunt': {'pop': 86129, 'tracts': 19}, 'Hutchinson': {'pop': 22150, 'tracts': 7}, 'Irion': {'pop': 1599, 'tracts': 1}, 'Jack': {'pop': 9044, 'tracts': 3}, 'Jackson': {'pop': 14075, 'tracts': 3}, 'Jasper': {'pop': 35710, 'tracts': 8}, 'Jeff Davis': {'pop': 2342, 'tracts': 1}, 'Jefferson': {'pop': 252273, 'tracts': 72}, 'Jim Hogg': {'pop': 5300, 'tracts': 2}, 'Jim Wells': {'pop': 40838, 'tracts': 7}, 'Johnson': {'pop': 150934, 'tracts': 28}, 'Jones': {'pop': 20202, 'tracts': 6}, 'Karnes': {'pop': 14824, 'tracts': 4}, 'Kaufman': {'pop': 103350, 'tracts': 18}, 'Kendall': {'pop': 33410, 'tracts': 6}, 'Kenedy': {'pop': 416, 'tracts': 1}, 'Kent': {'pop': 808, 'tracts': 1}, 'Kerr': {'pop': 49625, 'tracts': 10}, 'Kimble': {'pop': 4607, 'tracts': 2}, 'King': {'pop': 286, 'tracts': 1}, 'Kinney': {'pop': 3598, 'tracts': 1}, 'Kleberg': {'pop': 32061, 'tracts': 6}, 'Knox': {'pop': 3719, 'tracts': 2}, 'La Salle': {'pop': 6886, 'tracts': 1}, 'Lamar': {'pop': 49793, 'tracts': 12}, 'Lamb': {'pop': 13977, 'tracts': 5}, 'Lampasas': {'pop': 19677, 'tracts': 5}, 'Lavaca': {'pop': 19263, 'tracts': 6}, 'Lee': {'pop': 16612, 'tracts': 4}, 'Leon': {'pop': 16801, 'tracts': 3}, 'Liberty': {'pop': 75643, 'tracts': 14}, 'Limestone': {'pop': 23384, 'tracts': 8}, 'Lipscomb': {'pop': 3302, 'tracts': 2}, 'Live Oak': {'pop': 11531, 'tracts': 4}, 'Llano': {'pop': 19301, 'tracts': 6}, 'Loving': {'pop': 82, 'tracts': 1}, 'Lubbock': {'pop': 278831, 'tracts': 68}, 'Lynn': {'pop': 5915, 'tracts': 3}, 'Madison': {'pop': 13664, 'tracts': 4}, 'Marion': {'pop': 10546, 'tracts': 4}, 'Martin': {'pop': 4799, 'tracts': 2}, 'Mason': {'pop': 4012, 'tracts': 2}, 'Matagorda': {'pop': 36702, 'tracts': 10}, 'Maverick': {'pop': 54258, 'tracts': 9}, 'McCulloch': {'pop': 8283, 'tracts': 3}, 'McLennan': {'pop': 234906, 'tracts': 51}, 'McMullen': {'pop': 707, 'tracts': 1}, 'Medina': {'pop': 46006, 'tracts': 8}, 'Menard': {'pop': 2242, 'tracts': 1}, 'Midland': {'pop': 136872, 'tracts': 27}, 'Milam': {'pop': 24757, 'tracts': 7}, 'Mills': {'pop': 4936, 'tracts': 2}, 'Mitchell': {'pop': 9403, 'tracts': 2}, 'Montague': {'pop': 19719, 'tracts': 6}, 'Montgomery': {'pop': 455746, 'tracts': 59}, 'Moore': {'pop': 21904, 'tracts': 4}, 'Morris': {'pop': 12934, 'tracts': 3}, 'Motley': {'pop': 1210, 'tracts': 1}, 'Nacogdoches': {'pop': 64524, 'tracts': 13}, 'Navarro': {'pop': 47735, 'tracts': 10}, 'Newton': {'pop': 14445, 'tracts': 4}, 'Nolan': {'pop': 15216, 'tracts': 5}, 'Nueces': {'pop': 340223, 'tracts': 81}, 'Ochiltree': {'pop': 10223, 'tracts': 3}, 'Oldham': {'pop': 2052, 'tracts': 1}, 'Orange': {'pop': 81837, 'tracts': 21}, 'Palo Pinto': {'pop': 28111, 'tracts': 9}, 'Panola': {'pop': 23796, 'tracts': 6}, 'Parker': {'pop': 116927, 'tracts': 19}, 'Parmer': {'pop': 10269, 'tracts': 2}, 'Pecos': {'pop': 15507, 'tracts': 4}, 'Polk': {'pop': 45413, 'tracts': 10}, 'Potter': {'pop': 121073, 'tracts': 34}, 'Presidio': {'pop': 7818, 'tracts': 2}, 'Rains': {'pop': 10914, 'tracts': 2}, 'Randall': {'pop': 120725, 'tracts': 29}, 'Reagan': {'pop': 3367, 'tracts': 1}, 'Real': {'pop': 3309, 'tracts': 1}, 'Red River': {'pop': 12860, 'tracts': 4}, 'Reeves': {'pop': 13783, 'tracts': 5}, 'Refugio': {'pop': 7383, 'tracts': 2}, 'Roberts': {'pop': 929, 'tracts': 1}, 'Robertson': {'pop': 16622, 'tracts': 5}, 'Rockwall': {'pop': 78337, 'tracts': 11}, 'Runnels': {'pop': 10501, 'tracts': 4}, 'Rusk': {'pop': 53330, 'tracts': 13}, 'Sabine': {'pop': 10834, 'tracts': 3}, 'San Augustine': {'pop': 8865, 'tracts': 3}, 'San Jacinto': {'pop': 26384, 'tracts': 4}, 'San Patricio': {'pop': 64804, 'tracts': 16}, 'San Saba': {'pop': 6131, 'tracts': 2}, 'Schleicher': {'pop': 3461, 'tracts': 1}, 'Scurry': {'pop': 16921, 'tracts': 4}, 'Shackelford': {'pop': 3378, 'tracts': 1}, 'Shelby': {'pop': 25448, 'tracts': 6}, 'Sherman': {'pop': 3034, 'tracts': 1}, 'Smith': {'pop': 209714, 'tracts': 41}, 'Somervell': {'pop': 8490, 'tracts': 2}, 'Starr': {'pop': 60968, 'tracts': 15}, 'Stephens': {'pop': 9630, 'tracts': 3}, 'Sterling': {'pop': 1143, 'tracts': 1}, 'Stonewall': {'pop': 1490, 'tracts': 1}, 'Sutton': {'pop': 4128, 'tracts': 1}, 'Swisher': {'pop': 7854, 'tracts': 3}, 'Tarrant': {'pop': 1809034, 'tracts': 357}, 'Taylor': {'pop': 131506, 'tracts': 38}, 'Terrell': {'pop': 984, 'tracts': 1}, 'Terry': {'pop': 12651, 'tracts': 3}, 'Throckmorton': {'pop': 1641, 'tracts': 1}, 'Titus': {'pop': 32334, 'tracts': 8}, 'Tom Green': {'pop': 110224, 'tracts': 25}, 'Travis': {'pop': 1024266, 'tracts': 218}, 'Trinity': {'pop': 14585, 'tracts': 5}, 'Tyler': {'pop': 21766, 'tracts': 5}, 'Upshur': {'pop': 39309, 'tracts': 7}, 'Upton': {'pop': 3355, 'tracts': 2}, 'Uvalde': {'pop': 26405, 'tracts': 5}, 'Val Verde': {'pop': 48879, 'tracts': 10}, 'Van Zandt': {'pop': 52579, 'tracts': 10}, 'Victoria': {'pop': 86793, 'tracts': 23}, 'Walker': {'pop': 67861, 'tracts': 10}, 'Waller': {'pop': 43205, 'tracts': 6}, 'Ward': {'pop': 10658, 'tracts': 3}, 'Washington': {'pop': 33718, 'tracts': 6}, 'Webb': {'pop': 250304, 'tracts': 61}, 'Wharton': {'pop': 41280, 'tracts': 11}, 'Wheeler': {'pop': 5410, 'tracts': 2}, 'Wichita': {'pop': 131500, 'tracts': 37}, 'Wilbarger': {'pop': 13535, 'tracts': 4}, 'Willacy': {'pop': 22134, 'tracts': 6}, 'Williamson': {'pop': 422679, 'tracts': 89}, 'Wilson': {'pop': 42918, 'tracts': 11}, 'Winkler': {'pop': 7110, 'tracts': 3}, 'Wise': {'pop': 59127, 'tracts': 11}, 'Wood': {'pop': 41964, 'tracts': 10}, 'Yoakum': {'pop': 7879, 'tracts': 2}, 'Young': {'pop': 18550, 'tracts': 4}, 'Zapata': {'pop': 14018, 'tracts': 3}, 'Zavala': {'pop': 11677, 'tracts': 4}}, 'UT': {'Beaver': {'pop': 6629, 'tracts': 2}, 'Box Elder': {'pop': 49975, 'tracts': 11}, 'Cache': {'pop': 112656, 'tracts': 26}, 'Carbon': {'pop': 21403, 'tracts': 5}, 'Daggett': {'pop': 1059, 'tracts': 1}, 'Davis': {'pop': 306479, 'tracts': 54}, 'Duchesne': {'pop': 18607, 'tracts': 3}, 'Emery': {'pop': 10976, 'tracts': 3}, 'Garfield': {'pop': 5172, 'tracts': 2}, 'Grand': {'pop': 9225, 'tracts': 2}, 'Iron': {'pop': 46163, 'tracts': 8}, 'Juab': {'pop': 10246, 'tracts': 2}, 'Kane': {'pop': 7125, 'tracts': 2}, 'Millard': {'pop': 12503, 'tracts': 3}, 'Morgan': {'pop': 9469, 'tracts': 2}, 'Piute': {'pop': 1556, 'tracts': 1}, 'Rich': {'pop': 2264, 'tracts': 1}, 'Salt Lake': {'pop': 1029655, 'tracts': 212}, 'San Juan': {'pop': 14746, 'tracts': 4}, 'Sanpete': {'pop': 27822, 'tracts': 5}, 'Sevier': {'pop': 20802, 'tracts': 5}, 'Summit': {'pop': 36324, 'tracts': 13}, 'Tooele': {'pop': 58218, 'tracts': 11}, 'Uintah': {'pop': 32588, 'tracts': 6}, 'Utah': {'pop': 516564, 'tracts': 128}, 'Wasatch': {'pop': 23530, 'tracts': 4}, 'Washington': {'pop': 138115, 'tracts': 21}, 'Wayne': {'pop': 2778, 'tracts': 1}, 'Weber': {'pop': 231236, 'tracts': 50}}, 'VA': {'Accomack': {'pop': 33164, 'tracts': 11}, 'Albemarle': {'pop': 98970, 'tracts': 22}, 'Alexandria': {'pop': 139966, 'tracts': 38}, 'Alleghany': {'pop': 16250, 'tracts': 6}, 'Amelia': {'pop': 12690, 'tracts': 2}, 'Amherst': {'pop': 32353, 'tracts': 9}, 'Appomattox': {'pop': 14973, 'tracts': 3}, 'Arlington': {'pop': 207627, 'tracts': 59}, 'Augusta': {'pop': 73750, 'tracts': 13}, 'Bath': {'pop': 4731, 'tracts': 1}, 'Bedford': {'pop': 68676, 'tracts': 16}, 'Bedford City': {'pop': 6222, 'tracts': 1}, 'Bland': {'pop': 6824, 'tracts': 2}, 'Botetourt': {'pop': 33148, 'tracts': 8}, 'Bristol': {'pop': 17835, 'tracts': 4}, 'Brunswick': {'pop': 17434, 'tracts': 5}, 'Buchanan': {'pop': 24098, 'tracts': 7}, 'Buckingham': {'pop': 17146, 'tracts': 4}, 'Buena Vista': {'pop': 6650, 'tracts': 1}, 'Campbell': {'pop': 54842, 'tracts': 12}, 'Caroline': {'pop': 28545, 'tracts': 7}, 'Carroll': {'pop': 30042, 'tracts': 7}, 'Charles City': {'pop': 7256, 'tracts': 3}, 'Charlotte': {'pop': 12586, 'tracts': 3}, 'Charlottesville': {'pop': 43475, 'tracts': 12}, 'Chesapeake': {'pop': 222209, 'tracts': 41}, 'Chesterfield': {'pop': 316236, 'tracts': 71}, 'Clarke': {'pop': 14034, 'tracts': 3}, 'Colonial Heights': {'pop': 17411, 'tracts': 5}, 'Covington': {'pop': 5961, 'tracts': 2}, 'Craig': {'pop': 5190, 'tracts': 1}, 'Culpeper': {'pop': 46689, 'tracts': 8}, 'Cumberland': {'pop': 10052, 'tracts': 2}, 'Danville': {'pop': 43055, 'tracts': 16}, 'Dickenson': {'pop': 15903, 'tracts': 4}, 'Dinwiddie': {'pop': 28001, 'tracts': 7}, 'Emporia': {'pop': 5927, 'tracts': 2}, 'Essex': {'pop': 11151, 'tracts': 3}, 'Fairfax': {'pop': 1081726, 'tracts': 258}, 'Fairfax City': {'pop': 22565, 'tracts': 5}, 'Falls Church': {'pop': 12332, 'tracts': 3}, 'Fauquier': {'pop': 65203, 'tracts': 17}, 'Floyd': {'pop': 15279, 'tracts': 3}, 'Fluvanna': {'pop': 25691, 'tracts': 4}, 'Franklin': {'pop': 56159, 'tracts': 10}, 'Franklin City': {'pop': 8582, 'tracts': 2}, 'Frederick': {'pop': 78305, 'tracts': 14}, 'Fredericksburg': {'pop': 24286, 'tracts': 6}, 'Galax': {'pop': 7042, 'tracts': 2}, 'Giles': {'pop': 17286, 'tracts': 4}, 'Gloucester': {'pop': 36858, 'tracts': 8}, 'Goochland': {'pop': 21717, 'tracts': 5}, 'Grayson': {'pop': 15533, 'tracts': 5}, 'Greene': {'pop': 18403, 'tracts': 3}, 'Greensville': {'pop': 12243, 'tracts': 3}, 'Halifax': {'pop': 36241, 'tracts': 9}, 'Hampton': {'pop': 137436, 'tracts': 34}, 'Hanover': {'pop': 99863, 'tracts': 23}, 'Harrisonburg': {'pop': 48914, 'tracts': 11}, 'Henrico': {'pop': 306935, 'tracts': 64}, 'Henry': {'pop': 54151, 'tracts': 14}, 'Highland': {'pop': 2321, 'tracts': 1}, 'Hopewell': {'pop': 22591, 'tracts': 7}, 'Isle of Wight': {'pop': 35270, 'tracts': 8}, 'James City': {'pop': 67009, 'tracts': 11}, 'King George': {'pop': 23584, 'tracts': 5}, 'King William': {'pop': 15935, 'tracts': 4}, 'King and Queen': {'pop': 6945, 'tracts': 2}, 'Lancaster': {'pop': 11391, 'tracts': 3}, 'Lee': {'pop': 25587, 'tracts': 6}, 'Lexington': {'pop': 7042, 'tracts': 1}, 'Loudoun': {'pop': 312311, 'tracts': 65}, 'Louisa': {'pop': 33153, 'tracts': 6}, 'Lunenburg': {'pop': 12914, 'tracts': 3}, 'Lynchburg': {'pop': 75568, 'tracts': 19}, 'Madison': {'pop': 13308, 'tracts': 2}, 'Manassas': {'pop': 37821, 'tracts': 7}, 'Manassas Park': {'pop': 14273, 'tracts': 2}, 'Martinsville': {'pop': 13821, 'tracts': 5}, 'Mathews': {'pop': 8978, 'tracts': 2}, 'Mecklenburg': {'pop': 32727, 'tracts': 9}, 'Middlesex': {'pop': 10959, 'tracts': 4}, 'Montgomery': {'pop': 94392, 'tracts': 16}, 'Nelson': {'pop': 15020, 'tracts': 3}, 'New Kent': {'pop': 18429, 'tracts': 3}, 'Newport News': {'pop': 180719, 'tracts': 44}, 'Norfolk': {'pop': 242803, 'tracts': 81}, 'Northampton': {'pop': 12389, 'tracts': 4}, 'Northumberland': {'pop': 12330, 'tracts': 3}, 'Norton': {'pop': 3958, 'tracts': 1}, 'Nottoway': {'pop': 15853, 'tracts': 4}, 'Orange': {'pop': 33481, 'tracts': 5}, 'Page': {'pop': 24042, 'tracts': 5}, 'Patrick': {'pop': 18490, 'tracts': 4}, 'Petersburg': {'pop': 32420, 'tracts': 11}, 'Pittsylvania': {'pop': 63506, 'tracts': 16}, 'Poquoson': {'pop': 12150, 'tracts': 3}, 'Portsmouth': {'pop': 95535, 'tracts': 31}, 'Powhatan': {'pop': 28046, 'tracts': 5}, 'Prince Edward': {'pop': 23368, 'tracts': 5}, 'Prince George': {'pop': 35725, 'tracts': 7}, 'Prince William': {'pop': 402002, 'tracts': 83}, 'Pulaski': {'pop': 34872, 'tracts': 10}, 'Radford': {'pop': 16408, 'tracts': 3}, 'Rappahannock': {'pop': 7373, 'tracts': 2}, 'Richmond': {'pop': 9254, 'tracts': 2}, 'Richmond City': {'pop': 204214, 'tracts': 66}, 'Roanoke': {'pop': 92376, 'tracts': 18}, 'Roanoke City': {'pop': 97032, 'tracts': 23}, 'Rockbridge': {'pop': 22307, 'tracts': 4}, 'Rockingham': {'pop': 76314, 'tracts': 19}, 'Russell': {'pop': 28897, 'tracts': 7}, 'Salem': {'pop': 24802, 'tracts': 5}, 'Scott': {'pop': 23177, 'tracts': 6}, 'Shenandoah': {'pop': 41993, 'tracts': 9}, 'Smyth': {'pop': 32208, 'tracts': 9}, 'Southampton': {'pop': 18570, 'tracts': 5}, 'Spotsylvania': {'pop': 122397, 'tracts': 30}, 'Stafford': {'pop': 128961, 'tracts': 27}, 'Staunton': {'pop': 23746, 'tracts': 6}, 'Suffolk': {'pop': 84585, 'tracts': 28}, 'Surry': {'pop': 7058, 'tracts': 2}, 'Sussex': {'pop': 12087, 'tracts': 5}, 'Tazewell': {'pop': 45078, 'tracts': 11}, 'Virginia Beach': {'pop': 437994, 'tracts': 100}, 'Warren': {'pop': 37575, 'tracts': 8}, 'Washington': {'pop': 54876, 'tracts': 13}, 'Waynesboro': {'pop': 21006, 'tracts': 5}, 'Westmoreland': {'pop': 17454, 'tracts': 4}, 'Williamsburg': {'pop': 14068, 'tracts': 3}, 'Winchester': {'pop': 26203, 'tracts': 5}, 'Wise': {'pop': 41452, 'tracts': 11}, 'Wythe': {'pop': 29235, 'tracts': 6}, 'York': {'pop': 65464, 'tracts': 14}}, 'VT': {'Addison': {'pop': 36821, 'tracts': 10}, 'Bennington': {'pop': 37125, 'tracts': 12}, 'Caledonia': {'pop': 31227, 'tracts': 10}, 'Chittenden': {'pop': 156545, 'tracts': 35}, 'Essex': {'pop': 6306, 'tracts': 3}, 'Franklin': {'pop': 47746, 'tracts': 10}, 'Grand Isle': {'pop': 6970, 'tracts': 2}, 'Lamoille': {'pop': 24475, 'tracts': 7}, 'Orange': {'pop': 28936, 'tracts': 10}, 'Orleans': {'pop': 27231, 'tracts': 10}, 'Rutland': {'pop': 61642, 'tracts': 20}, 'Washington': {'pop': 59534, 'tracts': 19}, 'Windham': {'pop': 44513, 'tracts': 18}, 'Windsor': {'pop': 56670, 'tracts': 18}}, 'WA': {'Adams': {'pop': 18728, 'tracts': 5}, 'Asotin': {'pop': 21623, 'tracts': 6}, 'Benton': {'pop': 175177, 'tracts': 37}, 'Chelan': {'pop': 72453, 'tracts': 14}, 'Clallam': {'pop': 71404, 'tracts': 22}, 'Clark': {'pop': 425363, 'tracts': 104}, 'Columbia': {'pop': 4078, 'tracts': 1}, 'Cowlitz': {'pop': 102410, 'tracts': 24}, 'Douglas': {'pop': 38431, 'tracts': 8}, 'Ferry': {'pop': 7551, 'tracts': 3}, 'Franklin': {'pop': 78163, 'tracts': 13}, 'Garfield': {'pop': 2266, 'tracts': 1}, 'Grant': {'pop': 89120, 'tracts': 16}, 'Grays Harbor': {'pop': 72797, 'tracts': 17}, 'Island': {'pop': 78506, 'tracts': 22}, 'Jefferson': {'pop': 29872, 'tracts': 7}, 'King': {'pop': 1931249, 'tracts': 397}, 'Kitsap': {'pop': 251133, 'tracts': 55}, 'Kittitas': {'pop': 40915, 'tracts': 8}, 'Klickitat': {'pop': 20318, 'tracts': 3}, 'Lewis': {'pop': 75455, 'tracts': 20}, 'Lincoln': {'pop': 10570, 'tracts': 4}, 'Mason': {'pop': 60699, 'tracts': 14}, 'Okanogan': {'pop': 41120, 'tracts': 10}, 'Pacific': {'pop': 20920, 'tracts': 8}, 'Pend Oreille': {'pop': 13001, 'tracts': 5}, 'Pierce': {'pop': 795225, 'tracts': 172}, 'San Juan': {'pop': 15769, 'tracts': 5}, 'Skagit': {'pop': 116901, 'tracts': 30}, 'Skamania': {'pop': 11066, 'tracts': 5}, 'Snohomish': {'pop': 713335, 'tracts': 151}, 'Spokane': {'pop': 471221, 'tracts': 105}, 'Stevens': {'pop': 43531, 'tracts': 12}, 'Thurston': {'pop': 252264, 'tracts': 49}, 'Wahkiakum': {'pop': 3978, 'tracts': 1}, 'Walla Walla': {'pop': 58781, 'tracts': 12}, 'Whatcom': {'pop': 201140, 'tracts': 34}, 'Whitman': {'pop': 44776, 'tracts': 10}, 'Yakima': {'pop': 243231, 'tracts': 45}}, 'WI': {'Adams': {'pop': 20875, 'tracts': 7}, 'Ashland': {'pop': 16157, 'tracts': 7}, 'Barron': {'pop': 45870, 'tracts': 10}, 'Bayfield': {'pop': 15014, 'tracts': 5}, 'Brown': {'pop': 248007, 'tracts': 54}, 'Buffalo': {'pop': 13587, 'tracts': 5}, 'Burnett': {'pop': 15457, 'tracts': 6}, 'Calumet': {'pop': 48971, 'tracts': 11}, 'Chippewa': {'pop': 62415, 'tracts': 11}, 'Clark': {'pop': 34690, 'tracts': 8}, 'Columbia': {'pop': 56833, 'tracts': 12}, 'Crawford': {'pop': 16644, 'tracts': 6}, 'Dane': {'pop': 488073, 'tracts': 107}, 'Dodge': {'pop': 88759, 'tracts': 20}, 'Door': {'pop': 27785, 'tracts': 9}, 'Douglas': {'pop': 44159, 'tracts': 12}, 'Dunn': {'pop': 43857, 'tracts': 8}, 'Eau Claire': {'pop': 98736, 'tracts': 20}, 'Florence': {'pop': 4423, 'tracts': 2}, 'Fond du Lac': {'pop': 101633, 'tracts': 20}, 'Forest': {'pop': 9304, 'tracts': 4}, 'Grant': {'pop': 51208, 'tracts': 12}, 'Green': {'pop': 36842, 'tracts': 8}, 'Green Lake': {'pop': 19051, 'tracts': 6}, 'Iowa': {'pop': 23687, 'tracts': 6}, 'Iron': {'pop': 5916, 'tracts': 3}, 'Jackson': {'pop': 20449, 'tracts': 5}, 'Jefferson': {'pop': 83686, 'tracts': 20}, 'Juneau': {'pop': 26664, 'tracts': 7}, 'Kenosha': {'pop': 166426, 'tracts': 35}, 'Kewaunee': {'pop': 20574, 'tracts': 4}, 'La Crosse': {'pop': 114638, 'tracts': 25}, 'Lafayette': {'pop': 16836, 'tracts': 5}, 'Langlade': {'pop': 19977, 'tracts': 6}, 'Lincoln': {'pop': 28743, 'tracts': 10}, 'Manitowoc': {'pop': 81442, 'tracts': 19}, 'Marathon': {'pop': 134063, 'tracts': 27}, 'Marinette': {'pop': 41749, 'tracts': 12}, 'Marquette': {'pop': 15404, 'tracts': 5}, 'Menominee': {'pop': 4232, 'tracts': 2}, 'Milwaukee': {'pop': 947735, 'tracts': 297}, 'Monroe': {'pop': 44673, 'tracts': 9}, 'Oconto': {'pop': 37660, 'tracts': 10}, 'Oneida': {'pop': 35998, 'tracts': 14}, 'Outagamie': {'pop': 176695, 'tracts': 40}, 'Ozaukee': {'pop': 86395, 'tracts': 18}, 'Pepin': {'pop': 7469, 'tracts': 2}, 'Pierce': {'pop': 41019, 'tracts': 8}, 'Polk': {'pop': 44205, 'tracts': 10}, 'Portage': {'pop': 70019, 'tracts': 14}, 'Price': {'pop': 14159, 'tracts': 6}, 'Racine': {'pop': 195408, 'tracts': 44}, 'Richland': {'pop': 18021, 'tracts': 5}, 'Rock': {'pop': 160331, 'tracts': 38}, 'Rusk': {'pop': 14755, 'tracts': 5}, 'Sauk': {'pop': 61976, 'tracts': 13}, 'Sawyer': {'pop': 16557, 'tracts': 6}, 'Shawano': {'pop': 41949, 'tracts': 11}, 'Sheboygan': {'pop': 115507, 'tracts': 26}, 'St. Croix': {'pop': 84345, 'tracts': 14}, 'Taylor': {'pop': 20689, 'tracts': 6}, 'Trempealeau': {'pop': 28816, 'tracts': 8}, 'Vernon': {'pop': 29773, 'tracts': 7}, 'Vilas': {'pop': 21430, 'tracts': 5}, 'Walworth': {'pop': 102228, 'tracts': 22}, 'Washburn': {'pop': 15911, 'tracts': 5}, 'Washington': {'pop': 131887, 'tracts': 28}, 'Waukesha': {'pop': 389891, 'tracts': 86}, 'Waupaca': {'pop': 52410, 'tracts': 12}, 'Waushara': {'pop': 24496, 'tracts': 7}, 'Winnebago': {'pop': 166994, 'tracts': 41}, 'Wood': {'pop': 74749, 'tracts': 17}}, 'WV': {'Barbour': {'pop': 16589, 'tracts': 4}, 'Berkeley': {'pop': 104169, 'tracts': 14}, 'Boone': {'pop': 24629, 'tracts': 8}, 'Braxton': {'pop': 14523, 'tracts': 3}, 'Brooke': {'pop': 24069, 'tracts': 6}, 'Cabell': {'pop': 96319, 'tracts': 29}, 'Calhoun': {'pop': 7627, 'tracts': 2}, 'Clay': {'pop': 9386, 'tracts': 3}, 'Doddridge': {'pop': 8202, 'tracts': 2}, 'Fayette': {'pop': 46039, 'tracts': 12}, 'Gilmer': {'pop': 8693, 'tracts': 2}, 'Grant': {'pop': 11937, 'tracts': 3}, 'Greenbrier': {'pop': 35480, 'tracts': 7}, 'Hampshire': {'pop': 23964, 'tracts': 5}, 'Hancock': {'pop': 30676, 'tracts': 8}, 'Hardy': {'pop': 14025, 'tracts': 3}, 'Harrison': {'pop': 69099, 'tracts': 22}, 'Jackson': {'pop': 29211, 'tracts': 6}, 'Jefferson': {'pop': 53498, 'tracts': 15}, 'Kanawha': {'pop': 193063, 'tracts': 53}, 'Lewis': {'pop': 16372, 'tracts': 5}, 'Lincoln': {'pop': 21720, 'tracts': 5}, 'Logan': {'pop': 36743, 'tracts': 9}, 'Marion': {'pop': 56418, 'tracts': 18}, 'Marshall': {'pop': 33107, 'tracts': 9}, 'Mason': {'pop': 27324, 'tracts': 6}, 'McDowell': {'pop': 22113, 'tracts': 8}, 'Mercer': {'pop': 62264, 'tracts': 16}, 'Mineral': {'pop': 28212, 'tracts': 7}, 'Mingo': {'pop': 26839, 'tracts': 7}, 'Monongalia': {'pop': 96189, 'tracts': 24}, 'Monroe': {'pop': 13502, 'tracts': 3}, 'Morgan': {'pop': 17541, 'tracts': 4}, 'Nicholas': {'pop': 26233, 'tracts': 7}, 'Ohio': {'pop': 44443, 'tracts': 18}, 'Pendleton': {'pop': 7695, 'tracts': 3}, 'Pleasants': {'pop': 7605, 'tracts': 2}, 'Pocahontas': {'pop': 8719, 'tracts': 4}, 'Preston': {'pop': 33520, 'tracts': 8}, 'Putnam': {'pop': 55486, 'tracts': 10}, 'Raleigh': {'pop': 78859, 'tracts': 17}, 'Randolph': {'pop': 29405, 'tracts': 7}, 'Ritchie': {'pop': 10449, 'tracts': 3}, 'Roane': {'pop': 14926, 'tracts': 4}, 'Summers': {'pop': 13927, 'tracts': 4}, 'Taylor': {'pop': 16895, 'tracts': 4}, 'Tucker': {'pop': 7141, 'tracts': 3}, 'Tyler': {'pop': 9208, 'tracts': 3}, 'Upshur': {'pop': 24254, 'tracts': 6}, 'Wayne': {'pop': 42481, 'tracts': 11}, 'Webster': {'pop': 9154, 'tracts': 3}, 'Wetzel': {'pop': 16583, 'tracts': 5}, 'Wirt': {'pop': 5717, 'tracts': 2}, 'Wood': {'pop': 86956, 'tracts': 26}, 'Wyoming': {'pop': 23796, 'tracts': 6}}, 'WY': {'Albany': {'pop': 36299, 'tracts': 10}, 'Big Horn': {'pop': 11668, 'tracts': 3}, 'Campbell': {'pop': 46133, 'tracts': 7}, 'Carbon': {'pop': 15885, 'tracts': 5}, 'Converse': {'pop': 13833, 'tracts': 4}, 'Crook': {'pop': 7083, 'tracts': 2}, 'Fremont': {'pop': 40123, 'tracts': 10}, 'Goshen': {'pop': 13249, 'tracts': 4}, 'Hot Springs': {'pop': 4812, 'tracts': 2}, 'Johnson': {'pop': 8569, 'tracts': 2}, 'Laramie': {'pop': 91738, 'tracts': 21}, 'Lincoln': {'pop': 18106, 'tracts': 4}, 'Natrona': {'pop': 75450, 'tracts': 18}, 'Niobrara': {'pop': 2484, 'tracts': 1}, 'Park': {'pop': 28205, 'tracts': 5}, 'Platte': {'pop': 8667, 'tracts': 2}, 'Sheridan': {'pop': 29116, 'tracts': 6}, 'Sublette': {'pop': 10247, 'tracts': 2}, 'Sweetwater': {'pop': 43806, 'tracts': 12}, 'Teton': {'pop': 21294, 'tracts': 4}, 'Uinta': {'pop': 21118, 'tracts': 3}, 'Washakie': {'pop': 8533, 'tracts': 3}, 'Weston': {'pop': 7208, 'tracts': 2}}} |
#code https://practice.geeksforgeeks.org/problems/swap-and-maximize/0
for _ in range(int(input())):
n = int(input())
arr = list(map(int, input().split()))
arr.sort()
max = 0
for i in range(n//2):
max -= 2*arr[i]
max += 2*arr[n-i-1]
print(max) | for _ in range(int(input())):
n = int(input())
arr = list(map(int, input().split()))
arr.sort()
max = 0
for i in range(n // 2):
max -= 2 * arr[i]
max += 2 * arr[n - i - 1]
print(max) |
def som(a, b):
"""Bereken de som van twee getallen. Als de som groter is dan nul return je de som.
Als de som kleiner is dan nul, dan return je nul.
Args:
a (int): het eerste getal
b (int): het tweede getal
"""
pass
assert som(1, 2) == 3
assert som(-1, -2) == -3
assert som(0, 0) == 0
| def som(a, b):
"""Bereken de som van twee getallen. Als de som groter is dan nul return je de som.
Als de som kleiner is dan nul, dan return je nul.
Args:
a (int): het eerste getal
b (int): het tweede getal
"""
pass
assert som(1, 2) == 3
assert som(-1, -2) == -3
assert som(0, 0) == 0 |
# for loops
# for letter in "Cihat Salik":
# print(letter)
friends = ["Hasan", "Mahmut", "Ali", "Veli"]
for friend in friends:
print(friend)
for index in range(3, 10):
print(index)
for index in range(len(friends)):
print(friends[index])
for index in range(5):
if index == 0:
print("First Iteration")
else:
print("Not first")
| friends = ['Hasan', 'Mahmut', 'Ali', 'Veli']
for friend in friends:
print(friend)
for index in range(3, 10):
print(index)
for index in range(len(friends)):
print(friends[index])
for index in range(5):
if index == 0:
print('First Iteration')
else:
print('Not first') |
"Used to reference the nested workspaces for examples in /WORKSPACE"
ALL_EXAMPLES = [
"angular",
"app",
"kotlin",
"nestjs",
"parcel",
"protocol_buffers",
"user_managed_deps",
"vendored_node",
"vendored_node_and_yarn",
"web_testing",
"webapp",
"worker",
]
| """Used to reference the nested workspaces for examples in /WORKSPACE"""
all_examples = ['angular', 'app', 'kotlin', 'nestjs', 'parcel', 'protocol_buffers', 'user_managed_deps', 'vendored_node', 'vendored_node_and_yarn', 'web_testing', 'webapp', 'worker'] |
class Workset(WorksetPreview,IDisposable):
""" Represents a workset in the document. """
@staticmethod
def Create(document,name):
"""
Create(document: Document,name: str) -> Workset
Creates a new workset.
document: The document in which the new instance is created.
name: The workset name.
Returns: Returns the newly created workset.
"""
pass
def Dispose(self):
""" Dispose(self: WorksetPreview,A_0: bool) """
pass
def ReleaseUnmanagedResources(self,*args):
""" ReleaseUnmanagedResources(self: WorksetPreview,disposing: bool) """
pass
def __enter__(self,*args):
""" __enter__(self: IDisposable) -> object """
pass
def __exit__(self,*args):
""" __exit__(self: IDisposable,exc_type: object,exc_value: object,exc_back: object) """
pass
def __init__(self,*args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
IsEditable=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Whether the workset is editable.
Get: IsEditable(self: Workset) -> bool
"""
IsOpen=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Whether the workset is open (rather than closed).
Get: IsOpen(self: Workset) -> bool
"""
IsVisibleByDefault=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Whether the workset is visible by default.
Get: IsVisibleByDefault(self: Workset) -> bool
"""
Kind=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Kind of the workset.
Get: Kind(self: Workset) -> WorksetKind
"""
| class Workset(WorksetPreview, IDisposable):
""" Represents a workset in the document. """
@staticmethod
def create(document, name):
"""
Create(document: Document,name: str) -> Workset
Creates a new workset.
document: The document in which the new instance is created.
name: The workset name.
Returns: Returns the newly created workset.
"""
pass
def dispose(self):
""" Dispose(self: WorksetPreview,A_0: bool) """
pass
def release_unmanaged_resources(self, *args):
""" ReleaseUnmanagedResources(self: WorksetPreview,disposing: bool) """
pass
def __enter__(self, *args):
""" __enter__(self: IDisposable) -> object """
pass
def __exit__(self, *args):
""" __exit__(self: IDisposable,exc_type: object,exc_value: object,exc_back: object) """
pass
def __init__(self, *args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
is_editable = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Whether the workset is editable.\n\n\n\nGet: IsEditable(self: Workset) -> bool\n\n\n\n'
is_open = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Whether the workset is open (rather than closed).\n\n\n\nGet: IsOpen(self: Workset) -> bool\n\n\n\n'
is_visible_by_default = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Whether the workset is visible by default.\n\n\n\nGet: IsVisibleByDefault(self: Workset) -> bool\n\n\n\n'
kind = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Kind of the workset.\n\n\n\nGet: Kind(self: Workset) -> WorksetKind\n\n\n\n' |
def decode_lines(lines_bytes, encoding: str):
if isinstance(lines_bytes[0], bytes):
lines_str = [line.decode(encoding) for line in lines_bytes]
elif isinstance(lines_bytes[0], str):
lines_str = lines_bytes
else:
raise TypeError(type(lines_bytes[0]))
return lines_str
| def decode_lines(lines_bytes, encoding: str):
if isinstance(lines_bytes[0], bytes):
lines_str = [line.decode(encoding) for line in lines_bytes]
elif isinstance(lines_bytes[0], str):
lines_str = lines_bytes
else:
raise type_error(type(lines_bytes[0]))
return lines_str |
# Fitness monday variables
morning_1 = "10:00"
morning_2 = "8:00"
afternoon_1 = "13:00"
afternoon_2 = "14:30"
afternoon_3 = "15:30"
afternoon_4 = "17:55"
evening_1 = "20:30"
evening_2 = "21:10"
date_announce = [1, 2, 3, 4, 5]
image_file_list = [
'Exercise_Three.png',
'Exercise_Two_2.png'
]
# Messages to be display for fitness monday
# messageContentVariables
morning_1_msg = "Do some stretches! @everyone."
morning_2_msg = "Drink water! @everyone."
afternoon_1_msg = "Breath fresh air outside before starting your afternoon shift. @everyone."
afternoon_2_msg = "Drink a glass of water. Stay hydrated, @everyone!"
afternoon_3_msg = "Get up and stretch! @everyone."
afternoon_4_msg = "Go out and breathe before the evening sync. @everyone."
evening_1_msg = "Do some stretches! @everyone."
evening_2_msg = "Drink water. Good night, @everyone."
# Handler for all task in fitness monday
async def health_reminder(current_time, current_week_day, client, channel_id):
'''
current_time - required
current_week_day - Monday=1 ... Sunday=7
client - discord client
channel_id - this is where the bot will sel
discord bot will validate on what to
send to the text channel
'''
text_channel = client.get_channel(channel_id)
if current_week_day in date_announce:
if f'{morning_1}:00' == current_time:
await text_channel.send(morning_1_msg)
if f'{morning_2}:00' == current_time:
await text_channel.send(morning_2_msg)
if f'{afternoon_1}:00' == current_time:
await text_channel.send(afternoon_1_msg)
if f'{afternoon_2}:00' == current_time:
await text_channel.send(afternoon_2_msg)
if f'{afternoon_3}:00' == current_time:
await text_channel.send(afternoon_3_msg)
if f'{afternoon_4}:00' == current_time:
await text_channel.send(afternoon_4_msg)
if f'{evening_1}:00' == current_time:
await text_channel.send(evening_1_msg)
if f'{evening_2}:00' == current_time:
await text_channel.send(evening_2_msg)
| morning_1 = '10:00'
morning_2 = '8:00'
afternoon_1 = '13:00'
afternoon_2 = '14:30'
afternoon_3 = '15:30'
afternoon_4 = '17:55'
evening_1 = '20:30'
evening_2 = '21:10'
date_announce = [1, 2, 3, 4, 5]
image_file_list = ['Exercise_Three.png', 'Exercise_Two_2.png']
morning_1_msg = 'Do some stretches! @everyone.'
morning_2_msg = 'Drink water! @everyone.'
afternoon_1_msg = 'Breath fresh air outside before starting your afternoon shift. @everyone.'
afternoon_2_msg = 'Drink a glass of water. Stay hydrated, @everyone!'
afternoon_3_msg = 'Get up and stretch! @everyone.'
afternoon_4_msg = 'Go out and breathe before the evening sync. @everyone.'
evening_1_msg = 'Do some stretches! @everyone.'
evening_2_msg = 'Drink water. Good night, @everyone.'
async def health_reminder(current_time, current_week_day, client, channel_id):
"""
current_time - required
current_week_day - Monday=1 ... Sunday=7
client - discord client
channel_id - this is where the bot will sel
discord bot will validate on what to
send to the text channel
"""
text_channel = client.get_channel(channel_id)
if current_week_day in date_announce:
if f'{morning_1}:00' == current_time:
await text_channel.send(morning_1_msg)
if f'{morning_2}:00' == current_time:
await text_channel.send(morning_2_msg)
if f'{afternoon_1}:00' == current_time:
await text_channel.send(afternoon_1_msg)
if f'{afternoon_2}:00' == current_time:
await text_channel.send(afternoon_2_msg)
if f'{afternoon_3}:00' == current_time:
await text_channel.send(afternoon_3_msg)
if f'{afternoon_4}:00' == current_time:
await text_channel.send(afternoon_4_msg)
if f'{evening_1}:00' == current_time:
await text_channel.send(evening_1_msg)
if f'{evening_2}:00' == current_time:
await text_channel.send(evening_2_msg) |
#!/usr/bin/python3
# from time import time
# from math import sqrt
# with open("inp.txt", "r") as f:
# a, b = list(i for i in f.read().split())
a, b = input().split()
# print(a,b,c, type(a), type(int(a)))
a = int(a)
b = int(b)
# st = time()
# -----
s1 = a * (a - 1) // 2
cuoi = b - 2
dau = b - a
s2 = (dau + cuoi) * (a - 1) // 2
result = s1 + s2
# -----
print(result)
# print(time() - st) | (a, b) = input().split()
a = int(a)
b = int(b)
s1 = a * (a - 1) // 2
cuoi = b - 2
dau = b - a
s2 = (dau + cuoi) * (a - 1) // 2
result = s1 + s2
print(result) |
n = int(input())
a = input().split()
a = [str(m) for m in a]
for i in a:
if i == "Y":
print("Four")
exit()
print("Three") | n = int(input())
a = input().split()
a = [str(m) for m in a]
for i in a:
if i == 'Y':
print('Four')
exit()
print('Three') |
""" Solve 2021 Day 1: Sonar Sweep Problem """
def solver_problem1(inputs):
""" Count the number of increasement from given list """
num_increased = 0
for i in range(1, len(inputs)):
if inputs[i] > inputs[i - 1]:
num_increased += 1
return num_increased
def solver_problem2(inputs):
""" Count the number of increasement from each sum of 3 number from give list """
num_increased = 0
for i in range(1, len(inputs) - 2):
# sum_prev = inputs[i-1] + inputs[i] + inputs[i+1]
# sum_curr = inputs[i] + inputs[i+1] + inputs[i+2]
# (sum_curr - sum_prev) = inputs[i+2] - inputs[i-1]
if inputs[i + 2] > inputs[i - 1]:
num_increased += 1
return num_increased
if __name__ == "__main__":
with open("./input/d01.txt", encoding='UTF-8') as file:
data = [int(line.strip()) for line in file]
print(solver_problem1(data))
print(solver_problem2(data))
| """ Solve 2021 Day 1: Sonar Sweep Problem """
def solver_problem1(inputs):
""" Count the number of increasement from given list """
num_increased = 0
for i in range(1, len(inputs)):
if inputs[i] > inputs[i - 1]:
num_increased += 1
return num_increased
def solver_problem2(inputs):
""" Count the number of increasement from each sum of 3 number from give list """
num_increased = 0
for i in range(1, len(inputs) - 2):
if inputs[i + 2] > inputs[i - 1]:
num_increased += 1
return num_increased
if __name__ == '__main__':
with open('./input/d01.txt', encoding='UTF-8') as file:
data = [int(line.strip()) for line in file]
print(solver_problem1(data))
print(solver_problem2(data)) |
"""
Card games exercise
"""
def get_rounds(number):
"""
:param number: int - current round number.
:return: list - current round and the two that follow.
"""
return [i + number for i in range(3)]
def concatenate_rounds(rounds_1, rounds_2):
"""
:param rounds_1: list - first rounds played.
:param rounds_2: list - second set of rounds played.
:return: list - all rounds played.
"""
return rounds_1 + rounds_2
def list_contains_round(rounds, number):
"""
:param rounds: list - rounds played.
:param number: int - round number.
:return: bool - was the round played?
"""
return number in rounds
def card_average(hand):
"""
:param hand: list - cards in hand.
:return: float - average value of the cards in the hand.
"""
return sum(hand) / len(hand)
def approx_average_is_average(hand):
"""
:param hand: list - cards in hand.
:return: bool - if approximate average equals to the `true average`.
"""
return card_average(hand) in (hand[len(hand) // 2], (hand[0] + hand[-1]) / 2)
def average_even_is_average_odd(hand):
"""
:param hand: list - cards in hand.
:return: bool - are even and odd averages equal?
"""
even = [hand[index] for index in range(0, len(hand), 2)]
odd = [hand[index] for index in range(1, len(hand), 2)]
return card_average(even) == card_average(odd)
def maybe_double_last(hand):
"""
:param hand: list - cards in hand.
:return: list - hand with Jacks (if present) value doubled.
"""
if hand[-1] == 11:
hand[-1] *= 2
return hand
| """
Card games exercise
"""
def get_rounds(number):
"""
:param number: int - current round number.
:return: list - current round and the two that follow.
"""
return [i + number for i in range(3)]
def concatenate_rounds(rounds_1, rounds_2):
"""
:param rounds_1: list - first rounds played.
:param rounds_2: list - second set of rounds played.
:return: list - all rounds played.
"""
return rounds_1 + rounds_2
def list_contains_round(rounds, number):
"""
:param rounds: list - rounds played.
:param number: int - round number.
:return: bool - was the round played?
"""
return number in rounds
def card_average(hand):
"""
:param hand: list - cards in hand.
:return: float - average value of the cards in the hand.
"""
return sum(hand) / len(hand)
def approx_average_is_average(hand):
"""
:param hand: list - cards in hand.
:return: bool - if approximate average equals to the `true average`.
"""
return card_average(hand) in (hand[len(hand) // 2], (hand[0] + hand[-1]) / 2)
def average_even_is_average_odd(hand):
"""
:param hand: list - cards in hand.
:return: bool - are even and odd averages equal?
"""
even = [hand[index] for index in range(0, len(hand), 2)]
odd = [hand[index] for index in range(1, len(hand), 2)]
return card_average(even) == card_average(odd)
def maybe_double_last(hand):
"""
:param hand: list - cards in hand.
:return: list - hand with Jacks (if present) value doubled.
"""
if hand[-1] == 11:
hand[-1] *= 2
return hand |
# Copyright 2020 Thomas Rogers
# SPDX-License-Identifier: Apache-2.0
LOWER_LINK_TAG = 6
UPPER_LINK_TAG = 7
UPPER_WATER_TAG = 9
LOWER_WATER_TAG = 10
UPPER_STACK_TAG = 11
LOWER_STACK_TAG = 12
UPPER_GOO_TAG = 13
LOWER_GOO_TAG = 14
LOWER_LINK_TYPES = {LOWER_LINK_TAG, LOWER_WATER_TAG, LOWER_STACK_TAG, LOWER_GOO_TAG}
UPPER_LINK_TYPES = {UPPER_LINK_TAG, UPPER_WATER_TAG, UPPER_STACK_TAG, UPPER_GOO_TAG}
ROR_TYPE_LINK = "Link"
ROR_TYPE_STACK = "Stack"
ROR_TYPE_WATER = "Water"
ROR_TYPE_GOO = "Goo"
UPPER_TAG_MAPPING = {
ROR_TYPE_LINK: UPPER_LINK_TAG,
ROR_TYPE_STACK: UPPER_STACK_TAG,
ROR_TYPE_WATER: UPPER_WATER_TAG,
ROR_TYPE_GOO: UPPER_GOO_TAG,
}
UPPER_TAG_REVERSE_MAPPING = {
UPPER_LINK_TAG: ROR_TYPE_LINK,
UPPER_STACK_TAG: ROR_TYPE_STACK,
UPPER_WATER_TAG: ROR_TYPE_WATER,
UPPER_GOO_TAG: ROR_TYPE_GOO,
}
LOWER_TAG_MAPPING = {
ROR_TYPE_LINK: LOWER_LINK_TAG,
ROR_TYPE_STACK: LOWER_STACK_TAG,
ROR_TYPE_WATER: LOWER_WATER_TAG,
ROR_TYPE_GOO: LOWER_GOO_TAG,
}
ROR_TILE_MAPPING = {
ROR_TYPE_LINK: 504,
ROR_TYPE_STACK: 504,
ROR_TYPE_WATER: 2915,
ROR_TYPE_GOO: 1120,
}
ROR_TYPES_WITH_WATER = {
ROR_TYPE_WATER,
ROR_TYPE_GOO,
}
| lower_link_tag = 6
upper_link_tag = 7
upper_water_tag = 9
lower_water_tag = 10
upper_stack_tag = 11
lower_stack_tag = 12
upper_goo_tag = 13
lower_goo_tag = 14
lower_link_types = {LOWER_LINK_TAG, LOWER_WATER_TAG, LOWER_STACK_TAG, LOWER_GOO_TAG}
upper_link_types = {UPPER_LINK_TAG, UPPER_WATER_TAG, UPPER_STACK_TAG, UPPER_GOO_TAG}
ror_type_link = 'Link'
ror_type_stack = 'Stack'
ror_type_water = 'Water'
ror_type_goo = 'Goo'
upper_tag_mapping = {ROR_TYPE_LINK: UPPER_LINK_TAG, ROR_TYPE_STACK: UPPER_STACK_TAG, ROR_TYPE_WATER: UPPER_WATER_TAG, ROR_TYPE_GOO: UPPER_GOO_TAG}
upper_tag_reverse_mapping = {UPPER_LINK_TAG: ROR_TYPE_LINK, UPPER_STACK_TAG: ROR_TYPE_STACK, UPPER_WATER_TAG: ROR_TYPE_WATER, UPPER_GOO_TAG: ROR_TYPE_GOO}
lower_tag_mapping = {ROR_TYPE_LINK: LOWER_LINK_TAG, ROR_TYPE_STACK: LOWER_STACK_TAG, ROR_TYPE_WATER: LOWER_WATER_TAG, ROR_TYPE_GOO: LOWER_GOO_TAG}
ror_tile_mapping = {ROR_TYPE_LINK: 504, ROR_TYPE_STACK: 504, ROR_TYPE_WATER: 2915, ROR_TYPE_GOO: 1120}
ror_types_with_water = {ROR_TYPE_WATER, ROR_TYPE_GOO} |
def pattern(n):
res=""
for i in range(n,0,-1):
for j in range(i):
res+=str(n-j)
res+="\n"
return res[:-1] | def pattern(n):
res = ''
for i in range(n, 0, -1):
for j in range(i):
res += str(n - j)
res += '\n'
return res[:-1] |
def generated_file_staleness_test(name, outs, generated_pattern):
"""Tests that checked-in file(s) match the contents of generated file(s).
The resulting test will verify that all output files exist and have the
correct contents. If the test fails, it can be invoked with --fix to
bring the checked-in files up to date.
Args:
name: Name of the rule.
outs: the checked-in files that are copied from generated files.
generated_pattern: the pattern for transforming each "out" file into a
generated file. For example, if generated_pattern="generated/%s" then
a file foo.txt will look for generated file generated/foo.txt.
"""
script_name = name + ".py"
script_src = ":staleness_test.py"
# Filter out non-existing rules so Blaze doesn't error out before we even
# run the test.
existing_outs = native.glob(include = outs)
# The file list contains a few extra bits of information at the end.
# These get unpacked by the Config class in staleness_test_lib.py.
file_list = outs + [generated_pattern, native.package_name() or ".", name]
native.genrule(
name = name + "_makescript",
outs = [script_name],
srcs = [script_src],
testonly = 1,
cmd = "cat $(location " + script_src + ") > $@; " +
"sed -i.bak -e 's|INSERT_FILE_LIST_HERE|" + "\\\n ".join(file_list) + "|' $@",
)
native.py_test(
name = name,
srcs = [script_name],
data = existing_outs + [generated_pattern % file for file in outs],
deps = [
":staleness_test_lib",
],
)
| def generated_file_staleness_test(name, outs, generated_pattern):
"""Tests that checked-in file(s) match the contents of generated file(s).
The resulting test will verify that all output files exist and have the
correct contents. If the test fails, it can be invoked with --fix to
bring the checked-in files up to date.
Args:
name: Name of the rule.
outs: the checked-in files that are copied from generated files.
generated_pattern: the pattern for transforming each "out" file into a
generated file. For example, if generated_pattern="generated/%s" then
a file foo.txt will look for generated file generated/foo.txt.
"""
script_name = name + '.py'
script_src = ':staleness_test.py'
existing_outs = native.glob(include=outs)
file_list = outs + [generated_pattern, native.package_name() or '.', name]
native.genrule(name=name + '_makescript', outs=[script_name], srcs=[script_src], testonly=1, cmd='cat $(location ' + script_src + ') > $@; ' + "sed -i.bak -e 's|INSERT_FILE_LIST_HERE|" + '\\\n '.join(file_list) + "|' $@")
native.py_test(name=name, srcs=[script_name], data=existing_outs + [generated_pattern % file for file in outs], deps=[':staleness_test_lib']) |
"""Package list handling"""
load(":private/set.bzl", "set")
def pkg_info_to_ghc_args(pkg_info):
"""
Takes the package info collected by `ghc_info()` and returns the actual
list of command line arguments that should be passed to GHC.
"""
args = [
# In compile.bzl, we pass this just before all -package-id
# arguments. Not doing so leads to bizarre compile-time failures.
# It turns out that equally, not doing so leads to bizarre
# link-time failures. See
# https://github.com/tweag/rules_haskell/issues/395.
"-hide-all-packages",
]
if not pkg_info.has_version:
args.extend([
# Macro version are disabled for all packages by default
# and enabled for package with version
# see https://github.com/tweag/rules_haskell/issues/414
"-fno-version-macros",
])
for package in pkg_info.packages:
args.extend(["-package", package])
for package_id in pkg_info.package_ids:
args.extend(["-package-id", package_id])
for package_db in pkg_info.package_dbs:
args.extend(["-package-db", package_db])
return args
def expose_packages(build_info, lib_info, use_direct, use_my_pkg_id, custom_package_caches, version):
"""
Returns the information that is needed by GHC in order to enable haskell
packages.
build_info: is common to all builds
version: if the rule contains a version, we will export the CPP version macro
All the other arguments are not understood well:
lib_info: only used for repl and linter
use_direct: only used for repl and linter
use_my_pkg_id: only used for one specific task in compile.bzl
custom_package_caches: override the package_caches of build_info, used only by the repl
"""
has_version = version != None and version != ""
# Expose all prebuilt dependencies
#
# We have to remember to specify all (transitive) wired-in
# dependencies or we can't find objects for linking
#
# Set use_direct if build_info does not have a direct_prebuilt_deps field.
packages = []
for prebuilt_dep in set.to_list(build_info.direct_prebuilt_deps if use_direct else build_info.prebuilt_dependencies):
packages.append(prebuilt_dep.package)
# Expose all bazel dependencies
package_ids = []
for package in set.to_list(build_info.package_ids):
# XXX: repl and lint uses this lib_info flags
# It is set to None in all other usage of this function
# TODO: find the meaning of this flag
if lib_info == None or package != lib_info.package_id:
# XXX: use_my_pkg_id is not None only in compile.bzl
if (use_my_pkg_id == None) or package != use_my_pkg_id:
package_ids.append(package)
# Only include package DBs for deps, prebuilt deps should be found
# auto-magically by GHC
package_dbs = []
for cache in set.to_list(build_info.package_caches if not custom_package_caches else custom_package_caches):
package_dbs.append(cache.dirname)
ghc_info = struct(
has_version = has_version,
packages = packages,
package_ids = package_ids,
package_dbs = package_dbs,
)
return ghc_info
| """Package list handling"""
load(':private/set.bzl', 'set')
def pkg_info_to_ghc_args(pkg_info):
"""
Takes the package info collected by `ghc_info()` and returns the actual
list of command line arguments that should be passed to GHC.
"""
args = ['-hide-all-packages']
if not pkg_info.has_version:
args.extend(['-fno-version-macros'])
for package in pkg_info.packages:
args.extend(['-package', package])
for package_id in pkg_info.package_ids:
args.extend(['-package-id', package_id])
for package_db in pkg_info.package_dbs:
args.extend(['-package-db', package_db])
return args
def expose_packages(build_info, lib_info, use_direct, use_my_pkg_id, custom_package_caches, version):
"""
Returns the information that is needed by GHC in order to enable haskell
packages.
build_info: is common to all builds
version: if the rule contains a version, we will export the CPP version macro
All the other arguments are not understood well:
lib_info: only used for repl and linter
use_direct: only used for repl and linter
use_my_pkg_id: only used for one specific task in compile.bzl
custom_package_caches: override the package_caches of build_info, used only by the repl
"""
has_version = version != None and version != ''
packages = []
for prebuilt_dep in set.to_list(build_info.direct_prebuilt_deps if use_direct else build_info.prebuilt_dependencies):
packages.append(prebuilt_dep.package)
package_ids = []
for package in set.to_list(build_info.package_ids):
if lib_info == None or package != lib_info.package_id:
if use_my_pkg_id == None or package != use_my_pkg_id:
package_ids.append(package)
package_dbs = []
for cache in set.to_list(build_info.package_caches if not custom_package_caches else custom_package_caches):
package_dbs.append(cache.dirname)
ghc_info = struct(has_version=has_version, packages=packages, package_ids=package_ids, package_dbs=package_dbs)
return ghc_info |
# Copyright (c) 2016 SwiftStack, 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 MetaMiddleware(object):
def __init__(self, app, conf):
self.app = app
def __call__(self, env, start_response):
hToDel = list()
vToAdd = list()
for h in env:
if h.upper() == 'HTTP_X_PROXYFS_BIMODAL':
hToDel.append(h)
vToAdd.append(env[h])
for h in hToDel:
del env[h]
for v in vToAdd:
env['HTTP_X_ACCOUNT_SYSMETA_PROXYFS_BIMODAL'] = v # only last one, if multiple, will determine value
def meta_response(status, response_headers, exc_info=None):
hvToDel = list()
vToAdd = list()
for (h,v) in response_headers:
if h.upper() == 'X-ACCOUNT-SYSMETA-PROXYFS-BIMODAL':
hvToDel.append((h,v))
vToAdd.append(v)
for hv in hvToDel:
response_headers.remove(hv)
for v in vToAdd:
response_headers.append(('X-ProxyFS-BiModal',v)) # potentially multiple instances of same header
return start_response(status, response_headers, exc_info)
return self.app(env, meta_response)
def filter_factory(global_conf, **local_conf):
conf = global_conf.copy()
conf.update(local_conf)
def meta_filter(app):
return MetaMiddleware(app, conf)
return meta_filter
| class Metamiddleware(object):
def __init__(self, app, conf):
self.app = app
def __call__(self, env, start_response):
h_to_del = list()
v_to_add = list()
for h in env:
if h.upper() == 'HTTP_X_PROXYFS_BIMODAL':
hToDel.append(h)
vToAdd.append(env[h])
for h in hToDel:
del env[h]
for v in vToAdd:
env['HTTP_X_ACCOUNT_SYSMETA_PROXYFS_BIMODAL'] = v
def meta_response(status, response_headers, exc_info=None):
hv_to_del = list()
v_to_add = list()
for (h, v) in response_headers:
if h.upper() == 'X-ACCOUNT-SYSMETA-PROXYFS-BIMODAL':
hvToDel.append((h, v))
vToAdd.append(v)
for hv in hvToDel:
response_headers.remove(hv)
for v in vToAdd:
response_headers.append(('X-ProxyFS-BiModal', v))
return start_response(status, response_headers, exc_info)
return self.app(env, meta_response)
def filter_factory(global_conf, **local_conf):
conf = global_conf.copy()
conf.update(local_conf)
def meta_filter(app):
return meta_middleware(app, conf)
return meta_filter |
class call_if(object):
def __init__(self, cond):
self.condition = cond
def __call__(self, func):
def inner(*args, **kwargs):
if getattr(args[0], self.condition):
return func(*args, **kwargs)
else:
return None
return inner | class Call_If(object):
def __init__(self, cond):
self.condition = cond
def __call__(self, func):
def inner(*args, **kwargs):
if getattr(args[0], self.condition):
return func(*args, **kwargs)
else:
return None
return inner |
""" This is a test file used for testing the pytest plugin. """
def test_function_passed(snapshot):
""" The snapshot for this function is expected to exist. """
snapshot.assert_match(3 + 4j)
def test_function_new(snapshot):
""" The snapshot for this function is expected to exist, but only one assertion is expected. """
snapshot.assert_match(3 + 4j)
snapshot.assert_match(3 + 4j)
| """ This is a test file used for testing the pytest plugin. """
def test_function_passed(snapshot):
""" The snapshot for this function is expected to exist. """
snapshot.assert_match(3 + 4j)
def test_function_new(snapshot):
""" The snapshot for this function is expected to exist, but only one assertion is expected. """
snapshot.assert_match(3 + 4j)
snapshot.assert_match(3 + 4j) |
# -*- coding: utf-8 -*-
#
# -----------------------------------------------------------------------------------
# Copyright (c) Microsoft Open Technologies (Shanghai) Co. Ltd. All rights reserved.
#
# The MIT License (MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
# -----------------------------------------------------------------------------------
# "javascript" section for javascript. see @app.route('/config.js') in app/views.py
# NOTE: all following key/secrets for test purpose.
HOSTNAME = "http://localhost" # host name of the UI site
# hacking.kaiyuanshe.cn is used for wechat oauth login
# HOSTNAME = "http://hacking.kaiyuanshe.cn"
# HOSTNAME = "http://open-hackathon-dev.chinacloudapp.cn" # host name of the UI site
# HOSTNAME = "http://hacking.kaiyuanshe.cn"
QQ_OAUTH_STATE = "openhackathon" # todo state should be constant. Actually it should be unguessable to prevent CSFA
HACKATHON_API_ENDPOINT = "http://localhost:15000"
# HACKATHON_API_ENDPOINT = "http://open-hackathon-dev.chinacloudapp.cn:15000"
# HACKATHON_API_ENDPOINT = "http://hacking.kaiyuanshe.cn:15000"
# github key for `localhost`
GITHUB_CLIENT_ID = "b44f3d47bdeb26b9c4e6"
GITHUB_CLIENT_SECRET = "98de14161c4b2ed3ea7a19787d62cda73b8e292c"
# github oauth key for `open-hackathon-dev.chinacloudapp.cn`
# GITHUB_CLIENT_ID = "b8e407813350f26bf537"
# GITHUB_CLIENT_SECRET = "daa78ae27e13c9f5b4a884bd774cadf2f75a199f"
QQ_CLIENT_ID = "101200890"
QQ_CLIENT_SECRET = "88ad67bd4521c4cc47136854781cb9b5"
QQ_META_CONTENT = "274307566465013314076545663016134754100636"
WECHAT_APP_ID = "wxe75b8aef71c2059f"
WECHAT_SECRET = "4532b90750f4c7bc70fcfbc42d881622"
WECHAT_OAUTH_STATE = "openhackathon" # NOTE: may be should be same as QQ_OAUTH_STATE?
WEIBO_CLIENT_ID = "479757037"
WEIBO_CLIENT_SECRET = "efc5e75ff8891be37d90b4eaec5c02de"
WEIBO_META_CONTENT = "ae884e09bc02b700"
LIVE_CLIENT_ID = "000000004414E0A6"
LIVE_CLIENT_SECRET = "b4mkfVqjtwHY2wJh0T4tj74lxM5LgAT2"
ALAUDA_CLIENT_ID = "4VR9kzNZVyWcnk9OnAwMuSus7xOOcozJIpic6W6y"
ALAUDA_CLIENT_SECRET = "E5PUL5h9feLlEirec5HQhjIzYecv7vVbEBjWLBkRMoCoFXdvS1PzNmd4AAeNgu4M2AJ87uGnnJaoDLCcDuVxkBoHRWCn6LmfB4SKK1Dty1SkGukkTcZPEk9wpHLSiRQ3"
Config = {
"environment": "local",
"app": {
"secret_key": "secret_key"
},
"login": {
"github": {
"client_id": GITHUB_CLIENT_ID,
"access_token_url": 'https://github.com/login/oauth/access_token?client_id=%s&client_secret=%s&redirect_uri=%s/github&code=' % (
GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET, HOSTNAME),
"user_info_url": 'https://api.github.com/user?access_token=',
"emails_info_url": 'https://api.github.com/user/emails?access_token='
},
"qq": {
"client_id": QQ_CLIENT_ID,
"meta_content": QQ_META_CONTENT,
"access_token_url": 'https://graph.qq.com/oauth2.0/token?grant_type=authorization_code&client_id=%s&client_secret=%s&redirect_uri=%s/qq&code=' % (
QQ_CLIENT_ID, QQ_CLIENT_SECRET, HOSTNAME),
"openid_url": 'https://graph.qq.com/oauth2.0/me?access_token=',
"user_info_url": 'https://graph.qq.com/user/get_user_info?access_token=%s&oauth_consumer_key=%s&openid=%s'
},
"wechat": {
"client_id": WECHAT_APP_ID,
"access_token_url": "https://api.weixin.qq.com/sns/oauth2/access_token?appid=%s&secret=%s&code=%%s&grant_type=authorization_code" % (
WECHAT_APP_ID, WECHAT_SECRET),
"user_info_url": "https://api.weixin.qq.com/sns/userinfo?access_token=%s&openid=%s"
},
"weibo": {
"client_id": WEIBO_CLIENT_ID,
"meta_content": WEIBO_META_CONTENT,
"user_info_url": 'https://api.weibo.com/2/users/show.json?access_token=',
"email_info_url": 'https://api.weibo.com/2/account/profile/email.json?access_token=',
"access_token_url": 'https://api.weibo.com/oauth2/access_token?client_id=%s&client_secret=%s&grant_type=authorization_code&redirect_uri=%s/weibo&code=' % (
WEIBO_CLIENT_ID, WEIBO_CLIENT_SECRET, HOSTNAME)
},
"live": {
"client_id": LIVE_CLIENT_ID,
"client_secret": LIVE_CLIENT_SECRET,
"redirect_uri": '%s/live' % HOSTNAME,
"access_token_url": 'https://login.live.com/oauth20_token.srf',
"user_info_url": 'https://apis.live.net/v5.0/me?access_token='
},
"alauda": {
"client_id": ALAUDA_CLIENT_ID,
"client_secret": ALAUDA_CLIENT_SECRET,
"redirect_uri": '%s/alauda' % HOSTNAME,
"access_token_url": 'http://console.int.alauda.io/oauth/token'
},
"provider_enabled": ["github", "wechat"],
"session_valid_time_minutes": 60
},
"hackathon-api": {
"endpoint": HACKATHON_API_ENDPOINT
},
"javascript": {
"github": {
"authorize_url": "https://github.com/login/oauth/authorize?client_id=%s&redirect_uri=%s/github&scope=user" % (
GITHUB_CLIENT_ID, HOSTNAME)
},
"weibo": {
"authorize_url": "https://api.weibo.com/oauth2/authorize?client_id=%s&redirect_uri=%s/weibo&scope=all" % (
WEIBO_CLIENT_ID, HOSTNAME)
},
"qq": {
"authorize_url": "https://graph.qq.com/oauth2.0/authorize?client_id=%s&redirect_uri=%s/qq&scope=get_user_info&state=%s&response_type=code" % (
QQ_CLIENT_ID, HOSTNAME, QQ_OAUTH_STATE)
},
"wechat": {
"authorize_url": "https://open.weixin.qq.com/connect/qrconnect?appid=%s&redirect_uri=%s/wechat&response_type=code&scope=snsapi_login&state=%s#wechat_redirect" % (
WECHAT_APP_ID, HOSTNAME, WECHAT_OAUTH_STATE)
},
"live": {
"authorize_url": "https://login.live.com/oauth20_authorize.srf?client_id=%s&scope=wl.basic+,wl.emails&response_type=code&redirect_uri=%s/live" % (
LIVE_CLIENT_ID, HOSTNAME)
},
"alauda": {
"authorize_url": "http://console.int.alauda.io/oauth/authorize?response_type=code&client_id=%s&state=state&redirect_uri=%s/alauda" % (
ALAUDA_CLIENT_ID, HOSTNAME)
},
"hackathon": {
"endpoint": HACKATHON_API_ENDPOINT
},
"apiconfig": {
"proxy": HACKATHON_API_ENDPOINT,
"api": {
"admin": {
"hackathon": {
"": ["get", "post", "put", "delete"],
"checkname": ["get"],
"list": ["get"],
"online": ["post"],
"applyonline": ["post"],
"offline": ["post"],
"tags": ["get", "post", "put", "delete"],
"config": ["get", "post", "put", "delete"],
"administrator": {
"": ["put", "post", "delete"],
"list": ["get"]
},
"template": {
"": ["post", "delete"],
"list": ["get"],
"check": ["get"]
},
"organizer": {
"": ["get", "post", "put", "delete"]
},
"award": {
"": ["get", "post", "put", "delete"],
"list": ["get"]
},
"notice": {
"": ["get", "post", "put", "delete"]
}
},
"registration": {
"": ["get", "post", "delete", "put"],
"list": ["get"]
},
"azure": {
"": ["get", "post", "delete", "put"],
"checksubid": ["post"]
},
"experiment": {
"list": ["get"],
"": ["post", "put"]
},
"team": {
"list": ["get"],
"score": {
"list": ["get"]
},
"award": ["get", "post", "delete"]
},
"user": {
"list": ["get"]
},
"hostserver": {
"": ["get", "post", "delete", "put"],
"list": ["get"]
}
},
"template": {
"": ["get", "post", "delete", "put"],
"file": ["post"],
"list": ["get"],
"check": ["get"]
},
"user": {
"": ["get"],
"login": ["post", "delete"],
"experiment": {
"": ["get", "post", "delete", "put"]
},
"registration": {
"": ["put", "post", "get"],
"checkemail": ["get"],
"list": ["get"]
},
"profile": {
"": ["post", "put"]
},
"picture": {
"": ["put"]
},
"team": {
"member": ["get"]
},
"hackathon": {
"like": ["get", "post", "delete"]
},
"notice": {
"read": ["put"]
},
"show": {
"list": ["get"]
},
"file": {
"": ["post"]
}
},
"hackathon": {
"": ["get"],
"list": ["get"],
"stat": ["get"],
"template": ["get"],
"team": {
"list": ["get"]
},
"registration": {
"list": ["get"]
},
"show": {
"list": ["get"]
},
"grantedawards": ["get"],
"notice": {
"list": ["get"]
}
},
"team": {
"": ["get", "post", "put", "delete"],
"score": ["get", "post", "put"],
"member": {
"": ["post", "put", "delete"],
"list": ["get"]
},
"show": ["get", "post", "delete"],
"template": ["post", "delete"]
},
"talent": {
"list": ["get"]
},
"grantedawards": ["get"]
}
}
}
}
| hostname = 'http://localhost'
qq_oauth_state = 'openhackathon'
hackathon_api_endpoint = 'http://localhost:15000'
github_client_id = 'b44f3d47bdeb26b9c4e6'
github_client_secret = '98de14161c4b2ed3ea7a19787d62cda73b8e292c'
qq_client_id = '101200890'
qq_client_secret = '88ad67bd4521c4cc47136854781cb9b5'
qq_meta_content = '274307566465013314076545663016134754100636'
wechat_app_id = 'wxe75b8aef71c2059f'
wechat_secret = '4532b90750f4c7bc70fcfbc42d881622'
wechat_oauth_state = 'openhackathon'
weibo_client_id = '479757037'
weibo_client_secret = 'efc5e75ff8891be37d90b4eaec5c02de'
weibo_meta_content = 'ae884e09bc02b700'
live_client_id = '000000004414E0A6'
live_client_secret = 'b4mkfVqjtwHY2wJh0T4tj74lxM5LgAT2'
alauda_client_id = '4VR9kzNZVyWcnk9OnAwMuSus7xOOcozJIpic6W6y'
alauda_client_secret = 'E5PUL5h9feLlEirec5HQhjIzYecv7vVbEBjWLBkRMoCoFXdvS1PzNmd4AAeNgu4M2AJ87uGnnJaoDLCcDuVxkBoHRWCn6LmfB4SKK1Dty1SkGukkTcZPEk9wpHLSiRQ3'
config = {'environment': 'local', 'app': {'secret_key': 'secret_key'}, 'login': {'github': {'client_id': GITHUB_CLIENT_ID, 'access_token_url': 'https://github.com/login/oauth/access_token?client_id=%s&client_secret=%s&redirect_uri=%s/github&code=' % (GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET, HOSTNAME), 'user_info_url': 'https://api.github.com/user?access_token=', 'emails_info_url': 'https://api.github.com/user/emails?access_token='}, 'qq': {'client_id': QQ_CLIENT_ID, 'meta_content': QQ_META_CONTENT, 'access_token_url': 'https://graph.qq.com/oauth2.0/token?grant_type=authorization_code&client_id=%s&client_secret=%s&redirect_uri=%s/qq&code=' % (QQ_CLIENT_ID, QQ_CLIENT_SECRET, HOSTNAME), 'openid_url': 'https://graph.qq.com/oauth2.0/me?access_token=', 'user_info_url': 'https://graph.qq.com/user/get_user_info?access_token=%s&oauth_consumer_key=%s&openid=%s'}, 'wechat': {'client_id': WECHAT_APP_ID, 'access_token_url': 'https://api.weixin.qq.com/sns/oauth2/access_token?appid=%s&secret=%s&code=%%s&grant_type=authorization_code' % (WECHAT_APP_ID, WECHAT_SECRET), 'user_info_url': 'https://api.weixin.qq.com/sns/userinfo?access_token=%s&openid=%s'}, 'weibo': {'client_id': WEIBO_CLIENT_ID, 'meta_content': WEIBO_META_CONTENT, 'user_info_url': 'https://api.weibo.com/2/users/show.json?access_token=', 'email_info_url': 'https://api.weibo.com/2/account/profile/email.json?access_token=', 'access_token_url': 'https://api.weibo.com/oauth2/access_token?client_id=%s&client_secret=%s&grant_type=authorization_code&redirect_uri=%s/weibo&code=' % (WEIBO_CLIENT_ID, WEIBO_CLIENT_SECRET, HOSTNAME)}, 'live': {'client_id': LIVE_CLIENT_ID, 'client_secret': LIVE_CLIENT_SECRET, 'redirect_uri': '%s/live' % HOSTNAME, 'access_token_url': 'https://login.live.com/oauth20_token.srf', 'user_info_url': 'https://apis.live.net/v5.0/me?access_token='}, 'alauda': {'client_id': ALAUDA_CLIENT_ID, 'client_secret': ALAUDA_CLIENT_SECRET, 'redirect_uri': '%s/alauda' % HOSTNAME, 'access_token_url': 'http://console.int.alauda.io/oauth/token'}, 'provider_enabled': ['github', 'wechat'], 'session_valid_time_minutes': 60}, 'hackathon-api': {'endpoint': HACKATHON_API_ENDPOINT}, 'javascript': {'github': {'authorize_url': 'https://github.com/login/oauth/authorize?client_id=%s&redirect_uri=%s/github&scope=user' % (GITHUB_CLIENT_ID, HOSTNAME)}, 'weibo': {'authorize_url': 'https://api.weibo.com/oauth2/authorize?client_id=%s&redirect_uri=%s/weibo&scope=all' % (WEIBO_CLIENT_ID, HOSTNAME)}, 'qq': {'authorize_url': 'https://graph.qq.com/oauth2.0/authorize?client_id=%s&redirect_uri=%s/qq&scope=get_user_info&state=%s&response_type=code' % (QQ_CLIENT_ID, HOSTNAME, QQ_OAUTH_STATE)}, 'wechat': {'authorize_url': 'https://open.weixin.qq.com/connect/qrconnect?appid=%s&redirect_uri=%s/wechat&response_type=code&scope=snsapi_login&state=%s#wechat_redirect' % (WECHAT_APP_ID, HOSTNAME, WECHAT_OAUTH_STATE)}, 'live': {'authorize_url': 'https://login.live.com/oauth20_authorize.srf?client_id=%s&scope=wl.basic+,wl.emails&response_type=code&redirect_uri=%s/live' % (LIVE_CLIENT_ID, HOSTNAME)}, 'alauda': {'authorize_url': 'http://console.int.alauda.io/oauth/authorize?response_type=code&client_id=%s&state=state&redirect_uri=%s/alauda' % (ALAUDA_CLIENT_ID, HOSTNAME)}, 'hackathon': {'endpoint': HACKATHON_API_ENDPOINT}, 'apiconfig': {'proxy': HACKATHON_API_ENDPOINT, 'api': {'admin': {'hackathon': {'': ['get', 'post', 'put', 'delete'], 'checkname': ['get'], 'list': ['get'], 'online': ['post'], 'applyonline': ['post'], 'offline': ['post'], 'tags': ['get', 'post', 'put', 'delete'], 'config': ['get', 'post', 'put', 'delete'], 'administrator': {'': ['put', 'post', 'delete'], 'list': ['get']}, 'template': {'': ['post', 'delete'], 'list': ['get'], 'check': ['get']}, 'organizer': {'': ['get', 'post', 'put', 'delete']}, 'award': {'': ['get', 'post', 'put', 'delete'], 'list': ['get']}, 'notice': {'': ['get', 'post', 'put', 'delete']}}, 'registration': {'': ['get', 'post', 'delete', 'put'], 'list': ['get']}, 'azure': {'': ['get', 'post', 'delete', 'put'], 'checksubid': ['post']}, 'experiment': {'list': ['get'], '': ['post', 'put']}, 'team': {'list': ['get'], 'score': {'list': ['get']}, 'award': ['get', 'post', 'delete']}, 'user': {'list': ['get']}, 'hostserver': {'': ['get', 'post', 'delete', 'put'], 'list': ['get']}}, 'template': {'': ['get', 'post', 'delete', 'put'], 'file': ['post'], 'list': ['get'], 'check': ['get']}, 'user': {'': ['get'], 'login': ['post', 'delete'], 'experiment': {'': ['get', 'post', 'delete', 'put']}, 'registration': {'': ['put', 'post', 'get'], 'checkemail': ['get'], 'list': ['get']}, 'profile': {'': ['post', 'put']}, 'picture': {'': ['put']}, 'team': {'member': ['get']}, 'hackathon': {'like': ['get', 'post', 'delete']}, 'notice': {'read': ['put']}, 'show': {'list': ['get']}, 'file': {'': ['post']}}, 'hackathon': {'': ['get'], 'list': ['get'], 'stat': ['get'], 'template': ['get'], 'team': {'list': ['get']}, 'registration': {'list': ['get']}, 'show': {'list': ['get']}, 'grantedawards': ['get'], 'notice': {'list': ['get']}}, 'team': {'': ['get', 'post', 'put', 'delete'], 'score': ['get', 'post', 'put'], 'member': {'': ['post', 'put', 'delete'], 'list': ['get']}, 'show': ['get', 'post', 'delete'], 'template': ['post', 'delete']}, 'talent': {'list': ['get']}, 'grantedawards': ['get']}}}} |
# Created by Egor Kostan.
# GitHub: https://github.com/ikostan
# LinkedIn: https://www.linkedin.com/in/egor-kostan/
def length(head) -> int:
"""
The method length, which accepts a linked list
(head), and returns the length of the list.
:param head:
:return:
"""
i = 0
if head is None:
return 0
while head.next is not None:
head = head.next
i += 1
return i + 1
| def length(head) -> int:
"""
The method length, which accepts a linked list
(head), and returns the length of the list.
:param head:
:return:
"""
i = 0
if head is None:
return 0
while head.next is not None:
head = head.next
i += 1
return i + 1 |
#MenuTitle: Generate lowercase from uppercase
"""
Generate lowercase a-z from uppercase A-Z
TODO (M Foley) Generate all lowercase glyphs, not just a-z
"""
font = Glyphs.font
glyphs = list('abcdefghijklmnopqrstuvwxyz')
masters = font.masters
for glyph_name in glyphs:
glyph = GSGlyph(glyph_name)
glyph.updateGlyphInfo()
font.glyphs.append(glyph)
for idx,layer in enumerate(masters):
comp_name = glyph_name.upper()
component = GSComponent(comp_name, (0,0))
glyph.layers[idx].components.append(component)
Glyphs.redraw()
| """
Generate lowercase a-z from uppercase A-Z
TODO (M Foley) Generate all lowercase glyphs, not just a-z
"""
font = Glyphs.font
glyphs = list('abcdefghijklmnopqrstuvwxyz')
masters = font.masters
for glyph_name in glyphs:
glyph = gs_glyph(glyph_name)
glyph.updateGlyphInfo()
font.glyphs.append(glyph)
for (idx, layer) in enumerate(masters):
comp_name = glyph_name.upper()
component = gs_component(comp_name, (0, 0))
glyph.layers[idx].components.append(component)
Glyphs.redraw() |
def multiple(first,second):
return first * second
def add(x,y):
return x+y
| def multiple(first, second):
return first * second
def add(x, y):
return x + y |
# Copyright 2020 BlueCat Networks. All rights reserved.
# -*- coding: utf-8 -*-
type = 'ui'
sub_pages = [
{
'name' : 'get_audit_info_page',
'title' : u'Get Audit Info',
'endpoint' : 'get_audit_info/get_audit_info_endpoint',
'description' : u'get_audit_info'
},
]
| type = 'ui'
sub_pages = [{'name': 'get_audit_info_page', 'title': u'Get Audit Info', 'endpoint': 'get_audit_info/get_audit_info_endpoint', 'description': u'get_audit_info'}] |
# This file is part of the pyMOR project (http://www.pymor.org).
# Copyright 2013-2016 pyMOR developers and contributors. All rights reserved.
# License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
def cat_arrays(vector_arrays):
"""Return a new |VectorArray| which a concatenation of the arrays in `vector_arrays`."""
vector_arrays = list(vector_arrays)
total_length = sum(map(len, vector_arrays))
cated_arrays = vector_arrays[0].empty(reserve=total_length)
for a in vector_arrays:
cated_arrays.append(a)
return cated_arrays
| def cat_arrays(vector_arrays):
"""Return a new |VectorArray| which a concatenation of the arrays in `vector_arrays`."""
vector_arrays = list(vector_arrays)
total_length = sum(map(len, vector_arrays))
cated_arrays = vector_arrays[0].empty(reserve=total_length)
for a in vector_arrays:
cated_arrays.append(a)
return cated_arrays |
template = """<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Title of the document</title>
<script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/milligram/1.3.0/milligram.min.css">
<style>
.tradingview-widget-container {{
position: sticky;
top: 20px;
}}
.stocks-view {{
display: flex;
flex-wrap: nowrap;
}}
.stocks-listing {{
width: 780px;
flex-wrap: nowrap;
padding: 20px;
}}
.stocks-graph {{
flex-wrap: nowrap;
padding: 20px;
}}
th.sticky-header {{
position: sticky;
top: 0;
z-index: 10;
background-color: white;
}}
.positive-movement {{
color: green;
font-weight: bold;
}}
.negative-movement {{
color: red;
font-weight: bold;
}}
.blue-category {{
background-color: lightsteelblue;
}}
</style>
</head>
<body>
{}
<div class="stocks-view">
<div class="stocks-listing">
<table>
<thead>
<tr>
<th class="sticky-header">Symbol</th>
<th class="sticky-header">April 1 2019</th>
<th class="sticky-header">Dec 2 2019</th>
<th class="sticky-header">Today</th>
<th class="sticky-header">Movement since April 1 2019</th>
<th class="sticky-header">Movement since Dec 2 2019</th>
<th class="sticky-header">Bankruptcy probability</th>
</tr>
</thead>
<tbody>
{}
</tbody>
</table>
</div>
<div class="stocks-graph"
<!-- TradingView Widget BEGIN -->
<div class="tradingview-widget-container">
<div id="tradingview_63a66"></div>
<div class="tradingview-widget-copyright"><a href="https://www.tradingview.com/symbols/AAPL/" rel="noopener" target="_blank"><span class="blue-text">AAPL Chart</span></a> by TradingView</div>
</div>
<!-- TradingView Widget END -->
</div>
</div>
<script type="text/javascript">
function renderChart(symbol) {{
new TradingView.widget(
{{
"width": 750,
"height": 500,
"symbol": symbol,
"interval": "180",
"timezone": "Etc/UTC",
"theme": "light",
"style": "1",
"locale": "en",
"toolbar_bg": "#f1f3f6",
"enable_publishing": false,
"allow_symbol_change": true,
"container_id": "tradingview_63a66"
}}
);
}}
document.addEventListener('DOMContentLoaded', function(){{
renderChart('BA');
}}, false);
</script>
</body>
</html>"""
| template = '<!DOCTYPE html>\n<html>\n<head>\n <meta charset="UTF-8">\n <title>Title of the document</title>\n <script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script>\n <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/milligram/1.3.0/milligram.min.css">\n <style>\n .tradingview-widget-container {{\n position: sticky;\n top: 20px;\n }}\n .stocks-view {{\n display: flex;\n flex-wrap: nowrap;\n }}\n .stocks-listing {{\n width: 780px;\n flex-wrap: nowrap;\n padding: 20px;\n }}\n .stocks-graph {{\n flex-wrap: nowrap;\n padding: 20px;\n }}\n th.sticky-header {{\n position: sticky;\n top: 0;\n z-index: 10;\n background-color: white;\n }}\n .positive-movement {{\n color: green;\n font-weight: bold;\n }}\n .negative-movement {{\n color: red;\n font-weight: bold;\n }}\n .blue-category {{\n background-color: lightsteelblue;\n }}\n </style>\n</head>\n\n<body>\n{}\n<div class="stocks-view">\n <div class="stocks-listing">\n <table>\n <thead>\n <tr>\n <th class="sticky-header">Symbol</th>\n <th class="sticky-header">April 1 2019</th>\n <th class="sticky-header">Dec 2 2019</th>\n <th class="sticky-header">Today</th>\n <th class="sticky-header">Movement since April 1 2019</th>\n <th class="sticky-header">Movement since Dec 2 2019</th>\n <th class="sticky-header">Bankruptcy probability</th>\n </tr>\n </thead>\n <tbody>\n {}\n </tbody>\n </table>\n\n </div>\n <div class="stocks-graph"\n <!-- TradingView Widget BEGIN -->\n <div class="tradingview-widget-container">\n <div id="tradingview_63a66"></div>\n <div class="tradingview-widget-copyright"><a href="https://www.tradingview.com/symbols/AAPL/" rel="noopener" target="_blank"><span class="blue-text">AAPL Chart</span></a> by TradingView</div>\n </div>\n <!-- TradingView Widget END -->\n </div>\n</div>\n\n<script type="text/javascript">\n function renderChart(symbol) {{\n new TradingView.widget(\n {{\n "width": 750,\n "height": 500,\n "symbol": symbol,\n "interval": "180",\n "timezone": "Etc/UTC",\n "theme": "light",\n "style": "1",\n "locale": "en",\n "toolbar_bg": "#f1f3f6",\n "enable_publishing": false,\n "allow_symbol_change": true,\n "container_id": "tradingview_63a66"\n }}\n );\n }}\n\n document.addEventListener(\'DOMContentLoaded\', function(){{ \n renderChart(\'BA\');\n }}, false);\n</script>\n</body>\n\n</html>' |
a = str(input('Enter the number you want to reverse:'))
b = (a[::-1])
c = int(b)
print('the reversed number is',c)
| a = str(input('Enter the number you want to reverse:'))
b = a[::-1]
c = int(b)
print('the reversed number is', c) |
class BaseHandler:
def send(self, data, p):
pass
def recv(self, data, p):
pass
def shutdown(self, p, direction=2):
pass
def close(self):
pass
| class Basehandler:
def send(self, data, p):
pass
def recv(self, data, p):
pass
def shutdown(self, p, direction=2):
pass
def close(self):
pass |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.