code stringlengths 3 6.57k |
|---|
log.info("Making the GTI file gti.fits from the GTI data textfile") |
format(gticolumns) |
format(gtiheader) |
runcmd(cmd) |
fp.close() |
app.route('/filecoin-files') |
filecoin_files() |
Files.query.filter_by(user_id=current_user.id) |
all() |
render_template("filecoin/filecoin-files.html", files=files, breadcrumb="Filecoin / Files") |
app.route("/filecoin-download/<cid>", methods=["GET"]) |
filecoin_download(cid) |
Files.query.filter_by(CID=cid, user_id=current_user.id) |
first() |
Ffs.query.get(file.ffs_id) |
PowerGateClient(app.config["POWERGATE_ADDRESS"]) |
powergate.ffs.get(file.CID, ffs.token) |
os.path.exists(user_data) |
os.makedirs(user_data) |
print(user_data) |
str(current_user.id) |
os.path.exists(user_dir) |
os.makedirs(user_dir) |
print(user_dir) |
os.path.join(user_dir, "filecoin/downloads") |
os.path.exists(filecoin_dir) |
os.makedirs(filecoin_dir) |
print(filecoin_dir) |
open(os.path.join(filecoin_dir, file.file_name) |
out_file.write(data) |
safe_join("../" + filecoin_dir, file.file_name) |
print(safe_path) |
send_file(safe_path, as_attachment=True) |
datetime.now() |
replace(microsecond=0) |
str(e) |
db.session.add(event) |
db.session.commit() |
Files.query.filter_by(user_id=current_user.id) |
all() |
render_template("filecoin/filecoin-files.html", files=files, breadcrumb="Filecoin / Files") |
app.route('/filecoin-wallets') |
filecoin_wallets() |
PowerGateClient(app.config["POWERGATE_ADDRESS"]) |
Ffs.query.filter_by(user_id=current_user.id) |
one() |
flash("No wallets created yet.", "alert-danger") |
render_template("filecoin/filecoin-wallets.html", wallets=None, breadcrumb="Filecoin / Wallets") |
powergate.ffs.addrs_list(ffs.token) |
powergate.wallet.balance(address.addr) |
str(balance.balance) |
render_template("filecoin/filecoin-wallets.html", wallets=wallets, breadcrumb="Filecoin / Wallets") |
open("README.md", "r") |
fh.read() |
find_packages() |
InjectArguments(TaskArguments) |
__init__(self, command_line) |
super() |
__init__(command_line) |
CommandParameter(name="Payload Template", type=ParameterType.Payload, supported_agents=["apollo"], supported_agent_build_parameters={"apollo": {"output_type": "Shellcode"}}) |
CommandParameter(name="PID", type=ParameterType.Number) |
parse_arguments(self) |
if (self.command_line[0] != "{") |
Exception("Inject requires JSON parameters and not raw command line.") |
self.load_args_from_json_string(self.command_line) |
InjectCommand(CommandBase) |
inject (modal popup) |
shinject_completed(self, task: MythicTask, subtask: dict = None, subtask_group_name: str = None) |
create_tasking(self, task: MythicTask) |
MythicRPC() |
task.args.get_arg("template") |
MythicRPC() |
task.args.get_arg('template') |
format(task.operator, str(task.args.get_arg("pid") |
MythicRPC() |
base64.b64decode(b64contents) |
len(pe) |
Exception("Inject requires a payload of Raw output, but got an executable.") |
format(temp.response["tag"], task.args.get_arg("pid") |
MythicRPC() |
task.args.get_arg("pid") |
Exception("Failed to build new payload: " + resp.response["error_message"]) |
asyncio.sleep(1) |
Exception("Failed to build payload from template {}".format(task.args.get_arg("template") |
process_response(self, response: AgentResponse) |
GBM(Price) |
generate(self) |
np.sqrt(dt1) |
np.random.randn(self.n - 1) |
cumsum() |
np.sqrt(dt2) |
np.random.randn(self.n - 1) |
cumsum() |
np.linspace(0, self.T, self.n) |
np.exp((self.drift1 - self.sigma1 ** 2 / 2.) |
np.exp((self.drift2 - self.sigma2 ** 2 / 2.) |
Copyright (c) |
do_elo(data, meetName, meetDate, gender) |
Meet() |
int(dat[1]) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.