Warning: session_start(): open(/var/lib/php/sessions/sess_bcqung11bp8463aqfq5f3cootj, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
import java.util.*;
import java.util.zip.*;
import java.util.List;
import java.util.regex.*;
import java.util.concurrent.*;
import java.util.concurrent.atomic.*;
import java.util.concurrent.locks.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.text.*;
import javax.swing.table.*;
import java.io.*;
import java.net.*;
import java.lang.reflect.*;
import java.lang.ref.*;
import java.lang.management.*;
import java.security.*;
import java.security.spec.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import javax.imageio.*;
import java.math.*;
import java.awt.geom.AffineTransform;
import javax.imageio.metadata.*;
import javax.imageio.stream.*;
import java.text.NumberFormat;
import javax.net.ssl.*;
import java.security.SecureRandom;
import java.security.cert.X509Certificate;
import java.text.SimpleDateFormat;
import java.awt.datatransfer.StringSelection;
import javax.swing.undo.UndoManager;
import java.text.*;
import java.nio.file.Files;
import java.nio.file.Path;
public class main {
public abstract static class Katze extends DynModule {
public transient Object catModule;
public transient String imageID = "#1101205";
public JComponent visualize() {
return withBottomMargin(centerAndSouth(centerPart(), buttons()));
}
public JComponent centerPart() {
return jimage(imageID);
}
public JComponent buttons() {
return vstack2(withMargin(jcenteredbutton("Start Listening", runnableThread(new Runnable() {
public void run() {
try {
startListening();
} catch (Exception __e) {
throw rethrow(__e);
}
}
public String toString() {
return "startListening();";
}
}))), jcenteredbutton("Stop Listening", runnableThread(new Runnable() {
public void run() {
try {
stopListening();
} catch (Exception __e) {
throw rethrow(__e);
}
}
public String toString() {
return "stopListening();";
}
})));
}
public boolean loadCat() {
if (catModule == null && !hasBot("Chrome Speech.")) {
actuallyLoadCat();
return true;
}
return false;
}
public void actuallyLoadCat() {
catModule = runDependent("#1013936");
}
public void listenJustOnce() {
print("listenJustOnce");
AutoCloseable __0 = enter();
try {
loadCat();
send("Chrome Speech.", "just once");
} finally {
_close(__0);
}
}
public void startListening() {
print("startListening");
AutoCloseable __1 = enter();
try {
if (!loadCat())
send("Chrome Speech.", "start recognition");
} finally {
_close(__1);
}
}
public void stopListening() {
AutoCloseable __2 = enter();
try {
sendOpt("Chrome Speech.", "stop recognition");
} finally {
_close(__2);
}
}
public void start() {
super.start();
dm_putRecognizedSpeechInAIBar();
}
public void cleanMeUp_katze() {
cleanUp(catModule);
catModule = null;
}
}
public static class Katze2 extends Katze {
public transient BakedBot bot;
public void start() {
super.start();
imageID = "#1101382";
}
public void setIcon(String imageID) {
this.imageID = imageID;
revisualize();
}
public JComponent centerPart() {
return withMargin(40, jimage(scaleImage(2.0, loadImage2(imageID))));
}
public void actuallyLoadCat() {
dm_useLocalMechListCopies();
if (bot == null) {
bot = bakedBotWithRules(mL_raw("Demo Cat Rules"));
bot.useIterate(true);
bot.useDiskCache(true);
setCreatorTo(bot.bot, this);
}
catModule = runDependentWithParams("#1013936", "denkmodulID", null, "denkmodul", bot.bot, "speakFunction", new VF1() {
public void get(String s) {
try {
dm_say(s);
} catch (Exception __e) {
throw rethrow(__e);
}
}
public String toString() {
return "dm_say(s)";
}
});
setOpt(catModule, "defaultText", "");
}
}
public static int withBottomMargin_defaultWidth = 6;
public static JPanel withBottomMargin(Component c) {
return withBottomMargin(withBottomMargin_defaultWidth, c);
}
public static JPanel withBottomMargin(final int w, final Component c) {
return swing(new F0() {
public JPanel get() {
try {
JPanel p = new JPanel(new BorderLayout());
p.setBorder(BorderFactory.createEmptyBorder(0, 0, w, 0));
p.add(c);
return p;
} catch (Exception __e) {
throw rethrow(__e);
}
}
public String toString() {
return "JPanel p = new JPanel(new BorderLayout);\r\n p.setBorder(BorderFactory.creat...";
}
});
}
public static JPanel centerAndSouth(final Component c, final Component s) {
return swing(new F0() {
public JPanel get() {
try {
JPanel panel = new JPanel(new BorderLayout());
panel.add(BorderLayout.CENTER, wrap(c));
if (s != null)
panel.add(BorderLayout.SOUTH, wrap(s));
return panel;
} catch (Exception __e) {
throw rethrow(__e);
}
}
public String toString() {
return "JPanel panel = new JPanel(new BorderLayout);\r\n panel.add(BorderLayout.CENT...";
}
});
}
public static JLabel jimage(Image img) {
return jImageLabel(img);
}
public static JLabel jimage(String imageID) {
return jImageLabel(imageID);
}
public static JPanel vstack2(final Object... parts) {
return swing(new F0() {
public JPanel get() {
try {
JPanel panel = new JPanel(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
gbc.weightx = 1;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.gridwidth = GridBagConstraints.REMAINDER;
smartAddWithLayout(panel, gbc, parts);
gbc.weighty = 1;
panel.add(jrigid(), gbc);
return panel;
} catch (Exception __e) {
throw rethrow(__e);
}
}
public String toString() {
return "JPanel panel = new JPanel(new GridBagLayout);\r\n new GridBagConstraints gbc...";
}
});
}
public static int withMargin_defaultWidth = 6;
public static JPanel withMargin(Component c) {
return withMargin(withMargin_defaultWidth, c);
}
public static JPanel withMargin(int w, Component c) {
return withMargin(w, w, c);
}
public static JPanel withMargin(int w, int h, Component c) {
return withMargin(w, h, w, h, c);
}
public static JPanel withMargin(final int top, final int left, final int bottom, final int right, final Component c) {
return swing(new F0() {
public JPanel get() {
try {
JPanel p = new JPanel(new BorderLayout());
p.setBorder(BorderFactory.createEmptyBorder(top, left, bottom, right));
p.add(c);
return p;
} catch (Exception __e) {
throw rethrow(__e);
}
}
public String toString() {
return "JPanel p = new JPanel(new BorderLayout);\r\n p.setBorder(BorderFactory.creat...";
}
});
}
public static JPanel jcenteredbutton(String text, Object action) {
return jcenteredline(jbutton(text, action));
}
public static JPanel jcenteredbutton(String text) {
return jcenteredbutton(text, null);
}
public static Runnable runnableThread(final Runnable r) {
return new Runnable() {
public void run() {
try {
startThread(r);
} catch (Exception __e) {
throw rethrow(__e);
}
}
public String toString() {
return "startThread(r)";
}
};
}
public static RuntimeException rethrow(Throwable t) {
if (t instanceof Error)
_handleError((Error) t);
throw t instanceof RuntimeException ? (RuntimeException) t : new RuntimeException(t);
}
public static boolean hasBot(String searchPattern) {
DialogIO io = findBot(searchPattern);
if (io != null) {
io.close();
return true;
} else
return false;
}
public static Class> runDependent(String src) {
Class c = hotwireDependent(src);
callMain(c);
return c;
}
public static volatile StringBuffer local_log = new StringBuffer();
public static volatile Appendable print_log = local_log;
public static volatile int print_log_max = 1024 * 1024;
public static volatile int local_log_max = 100 * 1024;
public static boolean print_silent;
public static Object print_byThread_lock = new Object();
public static volatile ThreadLocal