text
stringlengths
0
828
return self._resolve_call('PCS_PERMIT_EVENT', column, value, **kwargs)"
1827,"def pipe_schedule(self, column=None, value=None, **kwargs):
""""""
Particular discharge points at a permit facility that are governed by
effluent limitations and monitoring and submission requirements.
>>> PCS().pipe_schedule('state_submission_units', 'M')
""""""
return self._resolve_call('PCS_PIPE_SCHED', column, value, **kwargs)"
1828,"def single_violation(self, column=None, value=None, **kwargs):
""""""
A single event violation is a one-time event that occurred on a fixed
date, and is associated with one permitted facility.
>>> PCS().single_violation('single_event_viol_date', '16-MAR-01')
""""""
return self._resolve_call('PCS_SINGLE_EVENT_VIOL', column,
value, **kwargs)"
1829,"def sludge(self, column=None, value=None, **kwargs):
""""""
Sludge information describes the volumn of sludge produced at a
facility, identification information on a sludge handler, and
classification/permitting information on a facility that handles
sludge, such as a pretreatment POTW.
>>> PCS().sludge('county_name', 'San Francisco')
""""""
return self._resolve_call('PCS_SLUDGE', column, value, **kwargs)"
1830,"def typify(value: Union[dict, list, set, str]):
"""""" Enhance block operation with native types.
Typify takes a blockchain operation or dict/list/value,
and then it parses and converts string types into native data types where appropriate.
""""""
if type(value) == dict:
return walk_values(typify, value)
if type(value) in [list, set]:
return list(map(typify, value))
if type(value) == str:
if re.match('^\d+\.\d+ (STEEM|SBD|VESTS)$', value):
return keep_in_dict(dict(Amount(value)), ['amount', 'asset'])
if re.match('^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$', value):
return parse_time(value)
return value"
1831,"def json_expand(json_op):
"""""" For custom_json ops. """"""
if type(json_op) == dict and 'json' in json_op:
return update_in(json_op, ['json'], safe_json_loads)
return json_op"
1832,"def delete(self, subnet_id):
""""""
This is bad delete function
because one vpc can have more than one subnet.
It is Ok if user only use CAL for manage cloud resource
We will update ASAP.
""""""
# 1 : show subnet
subnet = self.client.describe_subnets(
SubnetIds=[subnet_id]).get('Subnets')[0]
vpc_id = subnet.get('VpcId')
# 2 : delete subnet
self.client.delete_subnet(SubnetId=subnet_id)
# 3 : delete vpc
return self.client.delete_vpc(VpcId=vpc_id)"
1833,"def generate(self):
""""""
Generates a new random string from the start symbol
Args:
None
Returns:
str: The generated string
""""""
result = self._gen(self.optimized, self.splitstring)
if self.splitstring and result is not None:
result = result[1:]
return result"
1834,"def _clean_terminals(self):
""""""
Because of the optimization, there are some non existing terminals
on the generated list. Remove them by checking for terms in form Ax,x
""""""
new_terminals = []
for term in self.grammar.grammar_terminals:
x_term = term.rfind('@')
y_term = term.rfind('A')
if y_term > x_term:
x_term = y_term
ids = term[x_term + 1:].split(',')
if len(ids) < 2:
""""""It'input_string a normal terminal, not a state""""""
new_terminals.append(term)
self.grammar.grammar_terminals = new_terminals"
1835,"def _check_self_to_empty(self, stateid):
""""""