code
stringlengths
3
6.57k
open("./tokens.txt", "w")
close()
Discord()
int(input("Enter amount of tokens to generate: ")
base64.b64encode((input("Enter ID: ")
encode("ascii")
str(id)
range(amountToGen)
threading.Thread(target=token.generate)
start()
PostForm(forms.ModelForm)
__init__(self, optional_words: List[str]=[], remove_words: List[str]=[])
self.might_sensitive_words.append(f'O: {word}')
self.might_sensitive_words.remove(word)
_search(url: str)
requests.get(url, headers={'User-Agent': 'Mozilla'})
_check_sensitive_level(comment: str, by_optional_word: bool=False)
any(string in comment for string in high)
any(string in comment for string in medium)
_get_comments(cls, url: str, is_local: bool)
cls._search(url)
open(url, 'r')
read()
parsel.Selector(html_struct)
element.xpath('//comment()
getall()
return_might_sensitive_comments(self, url: str, is_local: bool, return_tags: bool=False)
asyncio.run(self._get_comments(url, is_local)
re.match('<[^>]*>', comment.replace('<!--', '')
replace('-->', '')
might_sensitive_word.replace('O: ', '')
lower()
comment.lower()
comment.lower()
self._check_sensitive_level(comment, by_optional_word='O: ' in might_sensitive_word)
logging.getLogger(__name__)
vol.Optional(CONF_URL, default=DEFAULT_URL)
setup_platform(hass, config, add_entities, discovery_info=None)
config.get(CONF_URL)
xmlrpc.client.ServerProxy(url)
supervisor_server.supervisor.getAllProcessInfo()
_LOGGER.error("Could not connect to Supervisord")
SupervisorProcessSensor(info, supervisor_server)
SupervisorProcessSensor(SensorEntity)
__init__(self, info, server)
name(self)
self._info.get("name")
state(self)
self._info.get("statename")
available(self)
extra_state_attributes(self)
self._info.get("description")
self._info.get("group")
update(self)
self._info.get("group")
self._info.get("name")
_LOGGER.warning("Supervisord not available")
InferringRouter()
router.on_event("startup")
repeat_every(seconds=60, raise_exceptions=True)
scan_queues_on_servers()
DatabaseSession()
crud.plot_queue.get_multi(db)
tasks.scan_plotting.delay(plot_queue.id)
db.close()
cbv(router)
TransferCBV(BaseAuthCBV)
router.post("/")
create_transfer(self, data: schemas.TransferCreate)
crud.plot.get(self.db, id=data.plot_id)
HTTPException(404, "Plot with such id is not found")
HTTPException(403, "Can not transfer plotting and pending plots")
crud.directory.get(self.db, id=data.destination_directory_id)
HTTPException(404, "Directory with such id is not found")
data.dict()
crud.transfer.create(self.db, obj_in=data_extended)
schemas.TransferReturn.from_orm(transfer)
router.get("/")
deps.get_filtration_data(models.Transfer)
crud.transfer.get_multi(self.db, filtration=filtration)
time.time()
open('data/answer-word-list.txt', mode='r')
f.read()
split('\n')
open('data/valid-word-list.txt', mode='r')
f.read()
split('\n')
len(set(word)
log_list(word_list, "word_list")
list(word_1)
enumerate(word_list_for_word_2)
list(word_2)
enumerate(word_list_for_word_3)
list(word_3)
enumerate(word_list_for_word_4)
list(word_4)
print([word_1, word_2, word_3, word_4])
enumerate(word_list_for_word_5)
result.append(sorted(words)
log_list(result, "results are")