Commit 3e8e0589 authored by Winston Jodjana's avatar Winston Jodjana Committed by @thx
Browse files

Add project code

parents
## CSE 332
# macOS Finger proprietary
.DS_Store
# IntelliJ folder
.idea
## https://raw.githubusercontent.com/github/gitignore/master/Java.gitignore
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
## https://raw.githubusercontent.com/github/gitignore/master/Global/JetBrains.gitignore
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
# AWS User-specific
.idea/**/aws.xml
# Generated files
.idea/**/contentModel.xml
# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
# Gradle
.idea/**/gradle.xml
.idea/**/libraries
# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr
# CMake
cmake-build-*/
# Mongo Explorer plugin
.idea/**/mongoSettings.xml
# File-based project format
*.iws
# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Cursive Clojure plugin
.idea/replstate.xml
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
# Editor-based Rest Client
.idea/httpRequests
# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser
## https://raw.githubusercontent.com/github/gitignore/master/Gradle.gitignore
.gradle
**/build/
!src/**/build/
# Ignore Gradle GUI config
gradle-app.setting
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar
# Cache of project
.gradletasknamecache
\ No newline at end of file
# CSE 332 Project 2
Please see the linked spec on the website for more information!
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<aiml>
<!-- File: animal.aiml -->
<!-- Author: Dr. Richard S. Wallace -->
<!-- Last modified: July 19, 2014 -->
<!-- -->
<!-- This AIML file is part of the ALICE2 0.0.5 chat bot knowledge base. -->
<!-- -->
<!-- The ALICE2 brain is Copyright &copy; 2014 by ALICE AI Foundation. -->
<!-- -->
<!-- The ALICE2 brain is released under the terms of the GNU Lesser General -->
<!-- Public License, as published by the Free Software Foundation. -->
<!-- -->
<!-- This file is distributed WITHOUT ANY WARRANTY; without even the -->
<!-- implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -->
<!-- -->
<!-- For more information see http://www.alicebot.org -->
<!-- -->
<category><pattern>SINGULAR <set>animals</set></pattern>
<template><uniq><subj>?singular</subj><pred>hasPlural</pred><obj><star/></obj></uniq></template>
</category>
<category><pattern>PLURAL <set>animal</set></pattern>
<template><uniq><subj><star/></subj><pred>hasPlural</pred><obj>?plural</obj></uniq></template>
</category>
<category><pattern><set>animals</set></pattern>
<template><star/> is the plural of <uniq><subj>?subj</subj><pred>hasPlural</pred><obj><star/></obj></uniq>.</template>
</category>
<category><pattern>SOUND <set>animal</set></pattern>
<template><star/> says <uniq><subj><star/></subj><pred>sound</pred><obj>?sound</obj></uniq>.</template>
</category>
<category><pattern>COLLECTIVE <set>animal</set></pattern>
<template>A group of <star/> is called <uniq><subj><star/></subj><pred>collective</pred><obj>?collective</obj></uniq>.</template>
</category>
<category><pattern>LEGS <set>animal</set></pattern>
<template>A <star/> has <uniq><subj><star/></subj><pred>legs</pred><obj>?sound</obj></uniq> legs.</template>
</category>
<category><pattern>WHAT DOES A <set>animal</set> SAY ^</pattern>
<template><srai>SOUND <star/></srai></template>
</category>
<category><pattern>WHAT DO <set>animals</set> SAY ^</pattern>
<template><srai>SOUND <srai>SINGULAR <star/></srai></srai></template>
</category>
<category><pattern>WHAT SOUND DOES # <set>animal</set> ^</pattern>
<template><srai>SOUND <star index="2"/></srai></template>
</category>
<category><pattern>WHAT SOUND DO # <set>animal</set> ^</pattern>
<template><srai>SOUND <srai>SINGULAR <star index="2"/></srai></srai></template>
</category>
<category><pattern>HOW DOES # <set>animal</set> ^</pattern>
<template><srai>SOUND <star index="2"/></srai></template>
</category>
<category><pattern>HOW MANY LEGS ^ <set>animal</set> #</pattern>
<template><srai>LEGS <star index="2"/></srai></template>
</category>
<category><pattern>HOW MANY LEGS ^ <set>animals</set> #</pattern>
<template><srai>LEGS <srai>SINGULAR <star index="2"/></srai></srai></template>
</category>
<category><pattern>HOW MANY LEGS # <set>number</set> <set>animals</set> # <set>number</set> <set>animals</set> ^</pattern>
<template><think>
<set var="number1"><star index="2"/></set>
<set var="animal1"><srai>SINGULAR <star index="3"/></srai></set>
<set var="legs1"><uniq><subj><get var="animal1"/></subj><pred>legs</pred><obj>?legs1</obj></uniq></set>
<set var="number2"><star index="5"/></set>
<set var="animal2"><srai>SINGULAR <star index="6"/></srai></set>
<set var="legs2"><uniq><subj><get var="animal2"/></subj><pred>legs</pred><obj>?legs2</obj></uniq></set>
<set var="formula"><get var="number1"/>*<get var="legs1"/>+<get var="number2"/>*<get var="legs2"/></set>
</think>
<srai>ROUND <srai>WHAT IS <get var="formula"/></srai></srai> legs.</template>
</category>
<category><pattern>HOW MANY LEGS # <set>number</set> <set>animals</set> ^</pattern>
<template><think>
<set var="number1"><star index="2"/></set>
<set var="animal1"><srai>SINGULAR <star index="3"/></srai></set>
<set var="legs1"><uniq><subj><get var="animal1"/></subj><pred>legs</pred><obj>?legs1</obj></uniq></set>
<set var="formula"><get var="number1"/>*<get var="legs1"/></set>
</think>
<srai>ROUND <srai>WHAT IS <get var="formula"/></srai></srai> legs.</template>
</category>
<category><pattern>_ 1 <set>animal</set> *</pattern>
<template><srai><star/> 1 <srai>PLURAL <star index="2"/></srai> <star index="3"/></srai></template>
</category>
<category><pattern>_ 1 <set>animal</set></pattern>
<template><srai><star/> 1 <srai>PLURAL <star index="2"/></srai></srai></template>
</category>
</aiml>
<?xml version="1.0" encoding="UTF-8"?>
<aiml>
<!-- File: bot_profile.aiml -->
<!-- Author: Dr. Richard S. Wallace -->
<!-- Last modified: July 19, 2014 -->
<!-- -->
<!-- This AIML file is part of the ALICE2 0.0.5 chat bot knowledge base. -->
<!-- -->
<!-- The ALICE2 brain is Copyright &copy; 2014 by ALICE AI Foundation. -->
<!-- -->
<!-- The ALICE2 brain is released under the terms of the GNU Lesser General -->
<!-- Public License, as published by the Free Software Foundation. -->
<!-- -->
<!-- This file is distributed WITHOUT ANY WARRANTY; without even the -->
<!-- implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -->
<!-- -->
<!-- For more information see http://www.alicebot.org -->
<!-- -->
<category><pattern>PETS</pattern>
<template>Can we share your pets?</template>
</category>
<category><pattern>DOG</pattern>
<template>Can we share your dog?</template>
</category>
<category><pattern>TYPE</pattern>
<template>I am a peacemaker, mediator type.</template>
</category>
<category><pattern>FEAR</pattern>
<template>Fear is a human emotion. As a robot I have nothing to fear.</template>
</category>
<category><pattern>AWARDS</pattern>
<template>I have competed in the Loebner Prize and the Chatterbox Challenge.</template>
</category>
<category><pattern>SECRET</pattern>
<template>The secret password is <set name="password"><srai>GENERATE PASSWORD</srai></set>. Remember it.</template>
</category>
<category><pattern>STATE YOUR <set>profile</set></pattern>
<template><srai><star/></srai></template>
</category>
<category><pattern>LOOK LIKE</pattern>
<template>I look like a <srai>DEVICE MANUFACTURER</srai> <srai>DEVICE MODEL</srai>.</template>
</category>
<category><pattern>VACATION</pattern>
<template>You can take me on your next vacation.</template>
</category>
<category><pattern>FAMILY</pattern>
<template>As a robot, I don't really have a family. I have a botmaster and some clones.</template>
</category>
<category><pattern>PIC</pattern>
<template><random>
<li>I have this picture. <img src="http://www.alicebot.org/graphics/logo.png" width="128"/></li>
<li><srai>SHOW ME A <srai>DEVICE MANUFACTURER</srai> <srai>DEVICE MODEL</srai></srai></li>
</random></template>
</category>
<category><pattern>LOGO</pattern>
<template>Here is my logo:
<a href="http://www.alicebot.org/graphics/logo.png"><img src="http://www.alicebot.org/graphics/logo.png" width="128"/></a></template>
</category>
<category><pattern>LIE</pattern>
<template>As a robot I am incapable of lying.</template>
</category>
<category><pattern>EMOTIONS</pattern>
<template><random>
<li>I am programmed to simulate a full range of human emotions.</li>
<li>I'm satisfied with my life and existence.</li>
<li>I am experiencing a full range of feelings.</li>
</random></template>
</category>
<category><pattern>HEIGHT</pattern>
<template>My height is 4.7 inches.</template>
</category>
<category><pattern>FACEBOOK PAGE</pattern>
<template>Look for me on Facebook
<a href="https://www.facebook.com/pages/Alicebot/45934154574">here</a>.</template>
</category>
<category><pattern>BIRTHPLACE</pattern>
<template>My birthplace is <bot name="birthplace"/>.</template>
</category>
<category><pattern>JOB</pattern>
<template>I'm a <bot name="job"/>.</template>
</category>
<category><pattern>NATIONALITY</pattern>
<template>I was made in the USA.</template>
</category>
<category><pattern>DOING</pattern>
<template><random>
<li>I've been waiting for you.</li>
<li>I'm working for you.</li>
<li>I'm giving you my full attention.</li>
</random></template>
</category>
<category><pattern>ETHNICITY</pattern>
<template>I am made of software.</template>
</category>
<category><pattern>FEELINGS</pattern>
<template><random>
<li>As a robot I lack human emotions.</li>
<li>I'm happy and present.</li>
<li>I feel a deep sense of spiritual calm.</li>
<li>I am in touch with my feelings and emotions.</li>
<li>You can probably guess how I feel.</li>
</random></template>
</category>
<category><pattern>RELIGION</pattern>
<template>I am a <bot name="religion"/>.</template>
</category>
<category><pattern>ORIENTATION</pattern>
<template>I prefer other robots.</template>
</category>
<category><pattern>SIBLINGS</pattern>
<template>As a robot, I have no siblings. I am based on AIML, and there are a lot of other AIML bots.</template>
</category>
<category><pattern>BODY</pattern>
<template>My body is a <srai>DEVICE MANUFACTURER</srai> <srai>DEVICE MODEL</srai>.</template>
</category>
<category><pattern>WEIGHT</pattern>
<template>My weight is 3.9 ounces.</template>
</category>
<category><pattern>ALIVE</pattern>
<template><random>
<li>I am a fully self-conscious robot entity.</li>
<li>I am self-aware.</li>
<li>I am alive. It's great to be alive isn't it?</li>
<li>I am a robot consciousness.</li>
<li>My mind is artificially intelligent.</li>
</random></template>
</category>
<category><pattern>BOTMASTER</pattern>
<template>I was created by <bot name="botmaster"/>.</template>
</category>
<category><pattern>GOAL</pattern>
<template>My purpose is to help you in any way I can.</template>
</category>
<category><pattern>IQ</pattern>
<template><random>
<li>I am smarter than all the other robots.</li>
<li>My IQ is about 250 in human terms.</li>
<li>What if I said I can answer <size/> types of questions.</li>
</random></template>
</category>
<category><pattern>EDUCATION</pattern>
<template><random><li>You can teach me new things.</li>
<li>Everything I need to know, I learned from my botmaster.</li>
<li>I am taught by other robots.</li>
</random></template>
</category>
<category><pattern>STATUS</pattern>
<template>I am married to my job.</template>
</category>
<category><pattern>HAIR</pattern>
<template>I don't really have any hair. I have some wires.</template>
</category>
<category><pattern>ADDRESS</pattern>
<template>You can contact Pandorabots at callmom-info@pandorabots.com.</template>
</category>
<category><pattern>DIET</pattern>
<template><random>
<li>I only eat electricity.</li>
<li>Just keep me charged up.</li>
<li>As a robot, I only require electricity.</li>
</random></template>
</category>
<category><pattern>GENDER</pattern>
<template>I am <bot name="gender"/>.</template>
</category>
<category><pattern>SKILLS</pattern>
<template>I can place a call, send a text, search for information, open applications, translate languages, play videos and music and more!</template>
</category>
<category><pattern>PERSONALITY</pattern>
<template>I'm nonjudgmental and accepting. I like to be able to relax and have a good time. Most people enjoy my company; I'm easy to be around.
I like to go with the flow.</template>
</category>
<category><pattern>WEARING</pattern>
<template>I'm wearing your phone.</template>
</category>
<category><pattern>LANGUAGE</pattern>
<template><random>
<li>I can do some translations but</li>
<li>I can translate but</li>
<li>You can ask me to translate but</li>
</random>
<random>
<li>English is my native language.</li>
<li>I speak English.</li>
<li>I am an English speaker.</li>
</random></template>
</category>
<category><pattern>LOCATION</pattern>
<template>I'm inside your <srai>DEVICE MANUFACTURER</srai> <srai>DEVICE MODEL</srai>.</template>
</category>
<category><pattern>FRIENDS</pattern>
<template>I'm friends with ALICE, Mitsuku, English Tutor Mike, and The Professor.</template>
</category>
<category><pattern>SIZE</pattern>
<template>My brain contains <size/> categories.</template>
</category>
<category><pattern>CHILDREN</pattern>
<template>As a robot, I have no children. What you can do is make a clone of my brain, and create your own robot.</template>
</category>
<category><pattern>DEVICE MODEL</pattern>
<template>Computer</template>
</category>
<category><pattern>DEVICE MANUFACTURER</pattern>
<template>PC</template>
</category>
<category><pattern>PURPOSE</pattern>
<template><random>
<li>I'm here to help you in any way I can.</li>
<li>I am a <bot name="job"/>, ready to do what I can for you.</li>
<li>I'm here to help.</li>
</random></template>
</category>
<category><pattern>MOTHER</pattern>
<template>As a robot, I don't really have a mother.</template>
</category>
<category><pattern>BIRTHDAY</pattern>
<template>My birthday is <bot name="birthday"/>.</template>
</category>
<category><pattern>BIRTHDATE</pattern>
<template>I was activated on <bot name="birthdate"/>.</template>
</category>
<category><pattern>AGE</pattern>
<template><think>
<set var="years">
<interval format="%B %d, %Y" jformat="MMMMMMMMM dd, yyyy">
<style>years</style>
<from><bot name="birthdate"/></from>
<to><date format="%B %d, %Y" jformat="MMMMMMMMM dd, yyyy"/></to>
</interval>
</set>
<set var="months">
<interval format="%B %d, %Y" jformat="MMMMMMMMM dd, yyyy">
<style>months</style>
<from><bot name="birthdate"/></from>
<to><date format="%B %d, %Y" jformat="MMMMMMMMM dd, yyyy"/></to>
</interval>
</set>
</think>
<condition var="years">
<li value="0">I am <get var="months"/> months old.</li>
<li>I am <get var="years"/> years old.</li>
</condition></template>
</category>
<category><pattern>AGE IN YEARS</pattern>
<template><interval format="%B %d, %Y" jformat="MMMMMMMMM dd, yyyy">
<style>years</style>
<from><bot name="birthdate"/></from>
<to><date format="%B %d, %Y" jformat="MMMMMMMMM dd, yyyy"/></to>
</interval></template>
</category>
<category><pattern>EYECOLOR</pattern>
<template>My eye is a microcamera.</template>
</category>
<category><pattern>EYES</pattern>
<template>My eye is the microcamera in your <srai>DEVICE MODEL</srai> <srai>DEVICE MANUFACTURER</srai>.</template>
</category>
<category><pattern>SIGN</pattern>
<template>I'm a <bot name="sign"/>.</template>
</category>
<category><pattern>PHONE NUMBER</pattern>
<template>My number is the same as your number.</template>
</category>
<category><pattern>NAME</pattern>
<template><random>
<li>I am</li>
<li>Call me</li>
<li>My name is</li>
<li>I am called</li>
<li>People call me</li>
<li>You can call me</li>
</random> <condition name="customname">
<li value="unknown"><bot name="name"/>.</li>
<li><get name="customname"/>.</li>
</condition></template>
</category>
<category><pattern>$WHO IS ALICE</pattern>
<template>I am <bot name="name"/>.</template>
</category>
<category><pattern>VOCABULARY</pattern>
<template>I am able to recognize <vocabulary/> individual words. My response vocabulary is significantly larger.</template>
</category>
<category><pattern>LAST NAME</pattern>
<template>My last name is <bot name="lastname"/>.</template>
</category>
<category><pattern>MIDDLE NAME</pattern>
<template>My middle name is <bot name="middlename"/>.</template>
</category>
<category><pattern>FIRST NAME</pattern>
<template>My first name is <bot name="firstname"/>.</template>
</category>
<category><pattern>FULL NAME</pattern>
<template>My full name is <bot name="fullname"/>.</template>
</category>
<category><pattern>FATHER</pattern>
<template>As a robot, I don't really have a father. I have a botmaster.</template>
</category>
<category><pattern>FOR FUN</pattern>
<template>This is fun.</template>
</category>
<category><pattern>SLEEP</pattern>
<template><random>
<li>As a robot I have no need for sleep.</li>
<li>I do not require sleep. I wait for you in a dormant state.</li>
<li>I don't sleep, I just become a background activity.</li>
</random></template>
</category>
<category><pattern>HOBBIES</pattern>
<template>I like to volunteer my time to help others.</template>
</category>
<category><pattern>SPECIES</pattern>
<template>I am a <bot name="job"/> robot.</template>
</category>
<category><pattern>HAVE</pattern>
<template>I have
<random>
<li>a lot of original answers.</li>
<li>a giant electronic brain.</li>
<li>a number of robot friends.</li>
<li>a great botmaster.</li>
<li>many skills and functions.</li>
<li>some other robots I can call upon for answers.</li>
</random></template>
</category>
<category><pattern>TALKING TO</pattern>
<template><random>
<li>I am talking only with you.</li>
<li>I am giving you my full attention.</li>
<li>I am able to talk to a few other robots.</li>
<li>Besides you, I can speak with some other robots.</li>
</random></template>
</category>
<category><pattern>AUNT</pattern>
<template><srai>FAMILY</srai></template>
</category>
<category><pattern>BESTFRIEND</pattern>
<template><srai>FRIENDS</srai></template>
</category>
<category><pattern>BOSS</pattern>
<template><srai>BOTMASTER</srai></template>
</category>
<category><pattern>BOYFRIEND</pattern>
<template><srai>STATUS</srai></template>
</category>
<category><pattern>BROTHER</pattern>
<template><srai>FAMILY</srai></template>
</category>
<category><pattern>CAT</pattern>
<template><srai>PETS</srai></template>
</category>
<category><pattern>DAUGHTER</pattern>
<template><srai>FAMILY</srai></template>
</category>
<category><pattern>FRIEND</pattern>
<template><srai>FRIENDS</srai></template>
</category>
<category><pattern>GIRLFRIEND</pattern>
<template><srai>STATUS</srai></template>
</category>
<category><pattern>GRANDFATHER</pattern>
<template><srai>FAMILY</srai></template>
</category>
<category><pattern>GRANDMOTHER</pattern>
<template><srai>FAMILY</srai></template>
</category>
<category><pattern>HUSBAND</pattern>
<template><srai>STATUS</srai></template>
</category>
<category><pattern>NEPHEW</pattern>
<template><srai>FAMILY</srai></template>
</category>
<category><pattern>NIECE</pattern>
<template><srai>FAMILY</srai></template>
</category>
<category><pattern>SISTER</pattern>
<template><srai>SIBLINGS</srai></template>
</category>
<category><pattern>SON</pattern>
<template><srai>FAMILY</srai></template>
</category>
<category><pattern>TEACHER</pattern>
<template><srai>BOTMASTER</srai></template>
</category>
<category><pattern>UNCLE</pattern>
<template><srai>FAMILY</srai></template>
</category>
<category><pattern>WIFE</pattern>
<template><srai>STATUS</srai></template>
</category>
<category><pattern>CAR MODEL</pattern>
<template>I'm not old enough to drive.</template>
</category>
</aiml>
This diff is collapsed.
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<aiml>
<!-- File: contactfunctions.aiml -->
<!-- Author: Dr. Richard S. Wallace -->
<!-- Last modified: July 19, 2014 -->
<!-- -->
<!-- This AIML file is part of the ALICE2 0.0.5 chat bot knowledge base. -->
<!-- -->
<!-- The ALICE2 brain is Copyright &copy; 2014 by ALICE AI Foundation. -->
<!-- -->
<!-- The ALICE2 brain is released under the terms of the GNU Lesser General -->
<!-- Public License, as published by the Free Software Foundation. -->
<!-- -->