0% found this document useful (0 votes)
258 views

Mini Project Jarvis

The document describes a mini project report submitted by 4 students on developing a personal assistant named JARVIS for the Windows operating system using artificial intelligence to fulfill their Bachelor of Technology degree requirements under the guidance of their professor Mr. Ravindra Chauhan. The report includes an introduction, literature review, problem formulation, methodology, contribution to society, technologies used, results and demonstration, and conclusion.

Uploaded by

bsdjb bsx n
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
258 views

Mini Project Jarvis

The document describes a mini project report submitted by 4 students on developing a personal assistant named JARVIS for the Windows operating system using artificial intelligence to fulfill their Bachelor of Technology degree requirements under the guidance of their professor Mr. Ravindra Chauhan. The report includes an introduction, literature review, problem formulation, methodology, contribution to society, technologies used, results and demonstration, and conclusion.

Uploaded by

bsdjb bsx n
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 38

A

Mini-Project Report
on

JARVIS: Windows Based Personal Assistant using AI


Submitted as partial fulfilment for the award of
BACHELOR OF TECHNOLOGY DEGREE

Session 2021-22

In

Computer Science & Engineering

Submitted By:

Akshat Jain (2000971540005)


Abhishek Tripathi (200097154002)
Manik Gupta (2000971540035)
Aman (200971540007)
Under the guidance of:

Mr. Ravindra Chauhan

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


GALGOTIAS COLLEGE OF ENGINEERING AND TECHNOLOGY, GREATER NOIDA

AFFILIATED TO
DR. A.P.J ABDUL KALAM TECHNICAL UNIVERSITY, LUCKNOW, UP
(FORMERLY UPTU)
GALGOTIAS COLLEGE OF ENGINEERING & TECHNOLOGY
GREATER NOIDA, UTTER PRADESH, INDIA- 20 13 06 .

CERTIFICATE

This is to certify that the mini-project report entitled “JARVIS: Windows Based Personal
Assistant using AI” submitted by Mr. Akshat Jain (2000971540005), Mr. Abhishek Tripathi
(2000971540002), Mr. Manik Gupta (2000971540035), Mr. Aman (2000971540007) to the Galgotias
College of Engineering & Technology, Greater Noida, Utter Pradesh, affiliated to Dr. A.P.J. Abdul Kalam
Technical University Lucknow, Uttar Pradesh in partial fulfillment for the award of Degree of
Bachelor of Technology in Computer science & Engineering is a bonfire record of the project work
carried out by them under my supervision during the year 2021-2022.

Mr. Ravindra Chauhan Dr. Vishnu Sharma


Deptt. of CSE Professor and Head
Deptt. of CSE

i
GALGOTIAS COLLEGE OF ENGINEERING & TECHNOLOGY
GREATER NOIDA, UTTER PRADESH, INDIA- 20 13 06 .

ACKNOWLEDGEMENT
We have taken efforts in this project. However, it would not have been possible without the kind
support and help of many individuals and organizations. We would like to extend my sincere
thanks to all of them.

We are highly indebted to Mr. Ravindra Chauhan for her guidance and constant supervision. Also,
we are highly thankful to them for providing necessary information regarding the project & also
for their support in completing the project.

We are extremely indebted to Dr. Vishnu Sharma, HOD, Department of Computer Science and
Engineering, GCET and Mr. Ravindra Chauhan, Project Coordinator, Department of Computer
Science and Engineering, GCET for their valuable suggestions and constant support throughout
my project tenure. We would also like to express our sincere thanks to all faculty and staff
members of Department of Computer Science and Engineering, GCET for their support in
completing this project on time.

We also express gratitude towards our parents for their kind co-operation and encouragement
which helped me in completion of this project. Our thanks and appreciations also go to our friends
in developing the project and all the people who have willingly helped me out with their abilities.

Akshat Jain
Abhishek Tripathi
Manik Gupta
Aman

ii
ABSTRACT
The project aims to develop a personal-assistant for windows. It has been designed to provide a
user-friendly interface for carrying out a variety of tasks by employing certain well-defined
commands. Users can interact with the assistant either through voice commands or using keyboard
input.

As a personal assistant, Jarvis assists the end-user with day-to-day activities like general human
conversation, searching queries in google, Bing or yahoo, searching for videos, retrieving images,
live weather conditions, word meanings, searching for medicine details, health recommendations
based on symptoms and reminding the user about the scheduled events and tasks. The user
statements/commands are analysed with the help of machine learning to give an optimal solution.

Keywords: - Personal Assistant, windows system, Automation, Machine Learning

iii
CONTENTS

Title Page

CERTIFICATE i
ACKNOWLEDGEMENT ii
ABSTRACT iii
CONTENTS iv
LIST OF TABLES v
LIST OF FIGURES vi

CHAPTER 1: INTRODUCTION

1.1 Introduction 1

1.2 Description 2

1.3 Motivation 2

CHAPTER 2: LITERATURE REVIEW

2.1 Introduction: The beginning of social media 3

2.2 The evolution of social media 5

2.3 Social media and brands 8

2.4 Social media strategy 9

2.5 Conclusion 9

CHAPTER 3: PROBLEM FORMULATION 11

CHAPTER 4: METHEODOLOGY AND DFD 12

CHAPTER 5: CONTRIBUTION OF PROJECT TO THE SOCIETY & SCOPE 16

CHAPTER 6: TECHENOLOGIES USED

6.1 Software used 18

6.2 Hardware used 18

CHAPTER 7: RESULT AND DEMENOSTRATION 19

CHAPTER 8: CONCLUSION, LIMITATION AND FUTURE 25

Reference

iv
List of Tables

Table 1: Social media Classification. Source: Li and Bernoff.

Table 2: The evolution of the social web. Source: Stelzner.

v
LIST OF FIGURES

Figure 2.1: The five Eras of social media, Owyang

Figure 2.2: The social media Trinity Model. Source: Mckee.

Figure 2.3: Raman Model. Source: Raman

Figure 4.1: DFD LEVEL 0

Figure 4.2: DFD LEVEL 1

Figure 4.3: DFD LEVEL 2

Figure 7.1 Image 1

Figure 7.2 Image 2

Figure 7.3 Image 3

Figure 7.4 Image 4

Figure 7.5 Image 5

Figure 8.1: Disadvantage of social media web app

vi
CHAPTER 1
INTRODUCTION
1.1 INTRODUCTION
In today’s era almost all tasks are digitalized. We have Smartphone in hands and it is nothing less
than having world at your finger tips. These days we aren’t even using fingers. We just speak of
the task and it is done. There exist systems where we can say Text Dad,
“I’ll be late today.” And the text is sent. That is the task of a Virtual Assistant.
 
It also supports specialized task such as booking a flight, or finding cheapest book online from
various e-commerce sites and then providing an interface to book an order are helping automate
search, discovery and online order operations.
 
Virtual Assistants are software programs that help you ease your day to day tasks, such as showing
weather report, creating reminders, making shopping lists etc. They can take commands via text
(online chat bots) or by voice. Voice based intelligent assistants need an invoking word or wake
word to activate the listener, followed by the command. For
my project the wake word is JIA. We have so many virtual assistants, such as Apple’s Siri,Amazon
’s Alexa and Microsoft’s Cortana. For this project, wake word was chosen JIA. This system is
designed to be used efficiently on desktops. Personal assistant software improves user productivity
by managing routine tasks of the user and by providing information from online sources to the
user. JIA is effortless to use. Call the wake word ‘JIA’ followed by the command. And within
seconds, it gets executed. Voice searches have dominated over text search. Web searches
conducted via mobile devices have only just overtaken those carried out using a computer and the
analysts a real ready predicting that 50% of searches will be via voice by 2020.Virtual assistants
are turning out to be smarter than ever. Allow your intelligent assistant to make email work for
you. Detect intent, pick out important information, automate processes, and deliver personalized
responses. This project was started on the premise that there is sufficient amount of openly
available data and information on the web that can be utilized to build a virtual assistant that has
access to making intelligent decisions for routine user activities.

1.2 DESCRIPTION
It allows users to edit and upload photos and short videos through a mobile app. Users can add a
caption to each of their posts and use hashtags and location-based geotags to index these posts and
make them searchable by other users within the app. Each post by a user appears on their
followers' feed and can also be viewed by the public when tagged using hashtags or geotags. Users
also have the option of making their profile private so that only their followers can view their
posts.

1.3 MOTIVATION
1
We wanted to build an app which allows us to reach people locally, regionally, nationally and even
internationally. To provide a platform where people can connect with other people around the
world. To share their thoughts and get to know other cultures around the world.

1.4 Overview
As social media is in its ‘infant years’ it is hard to predict what might happen to brands and users
in the process. However, it is already being highly used as a ROI tool for marketing and branding.
Literature indicates that social media should have its own separate campaigns, but integrated in the
long-term business strategy plan. We should however make a strategy that targets consumer’s
adequately in each platform. Social media is everywhere, in our everyday life, turning the borders
between our work and spare time more diffuse. Everybody has access to a computer, at home or at
their workplace, people can use their smartphones to log in the internet from literally everywhere
they go. Marketer’s approach branding for social media in a very quantitative way, using metrics
and analytics to measure, compare, take conclusions and adjust their social media strategy efforts.
Users are becoming more aware of these marketing tactics and knowingly or not, allow their data
to be used by companies’/ brands for data analysis and statistical purposes. Eventually users will
become more interested in these matters and expect customized experiences and a better
engagement with the brands they follow/like and interact with.

1.5 Conclusion
It allows users to edit and upload photos and short videos through a mobile app. Users can add a
caption to each of their posts and use hashtags and location-based geotags to index these posts and
make them searchable by other users within the app. Each post by a user appears on their
followers' feed and can also be viewed by the public when tagged using hashtags or geotags. Users
also have the option of making their profile private so that only their followers can view their
posts.

2
CHAPTER 2:
LITERATURE REVIEW

2.1 Introduction
There already exist a number of desktop virtual assistants. A few examples of current virtual
assistants available in market are discussed in this section along with the tasks they can provide
and their drawbacks. SIRI from Apple SIRI is personal assistant software that interfaces with the
user thru voice interface, recognizes commands and acts on them. It learns to adapt to user’s
speech and thus improves voice recognition over time. It also tries to converse with the user when
it does not identify the user request. It integrates with calendar, contacts and music library
applications on the device and also integrates with GPS and camera on the device. It uses location,
temporal, social and task based contexts, to personalize the agent behavior specifically to the user
at a given point of time.
Supported Tasks
• Call someone from my contacts list
• Launch an application on my iPhone
• Send a text message to someone
• Set up a meeting on my calendar for 9am tomorrow
• Set an alarm for 5am tomorrow morning
• Play a specific song in my iTunes library
• Enter a new note
Drawback
SIRI does not maintain a knowledge database of its own and its understanding comes from the
information captured in domain models and data models.

ReQall
ReQall is personal assistant software that runs on smartphones running Apple iOS or Google
Android operating system. It helps user to recall notes as well as tasks within a location and time
context. It records user inputs and converts them into commands, and monitors current stack of
user tasks to proactively suggest actions while considering any changes in the environment. It also
presents information based on the context of the user, as well as filter information to the user based
on its learned understanding of the priority of that information.
Supported Tasks
• Reminders • Email
• Calendar, Google Calendar
• Outlook

3
• Evernote
• Facebook, LinkedIn
• News Feeds
Drawback
Will take some time to put all of the to-do items in – you could spend more time putting the entries
in than actually doing the revision.

2.2 The evolution of social media – Delivering brand content


When we think of social media, we often think of social media platforms such as Facebook or
Twitter, which are popular amongst most people, but we cannot forget that a wide range of
social media technologies also exist. These are available to do different things and enable many
types of behaviour. It is also important to look at the evolution of social media and how it has
affected consumers and brands through decades. Table 2 and figure 1 present a framework
from two Forrester reports (OWYANG, STELZNER). Stelzner categorizes different areas of
social manifestations regarding their years of occurrence such as Social Relationships, Social
Functionality, Social Colonization, Social Context and Social Commerce. What starts out to be
just a way to connect people with each other through online groups becomes social networks,
which leads to most webpages having to present a social dimension. Furthermore, websites
then deliver personalized content to users and the social media mechanism led to a situation
where there are more online groups then brands.

Table 2: The evolution of the social web. Source: Stelzner

Era of social Era of social Era of social Era of social Era of social
relationships functionality colonization context commerce

Start; 1995; 2003 to 2007; 2010 2009; 2011 2010;2012 2011;2013


Maturity 2007 to 2012

Descriptions Individuals Social Every Website is Websites Online


assemble and networks now social, even deliver groups
connect with become if it doesn’t personalized supplant
each other in operating choose to be content to brands
online groups systems visitors.

Consumers Use simple Embed Web Lean on their Opt in to Work with
profile and applications peer’s opinions share their peers to
discussion and widgets to make identity in define the
features to on their decisions about return for a next
share with profiles to products more generation
each other make relevant of products;
experience Web also
more fun experience purchase in

4
and useful groups

Brands Join online Advertise, Focus on Provide Lean on


groups using then influencers and specialized groups to
conversational sponsor, including social content for define
marketing or then create recommendations visitors; get products
sponsorship, applications rid of
or create their to provide registration
own utility to pages
community consumers

Social Struggle with Share as Aggregate all Become the Offer


Networks monetization developers implicit and identity features to
to monetize explicit data, system of help with
application creating a new the Web product
type of social design and
inbox vendor
management

Other Media The world is Office apps Mobile devices TV offers A new PR
more become trigger in-store personalized agency
connected social; even displays to show interactive emerges that
solitaire custom content. channels for represents
games have viewer online
social groups – not
leaderboards brands

Raman says social media is transforming the web into a “two-way conversation”. In the social
media world, customers are influenced by each other on preferences for products and services.
They are also influenced by new ideas; insights and different experiences form others (ibid.).

5
Figure 2.1: The five Eras of social media, Owyang

6
2.3. Social media and brands
McKee proposes a social media model (Figure 2). The author divides social media into “The
Social Media Trinity Model”. The model consists of dividing social platforms into three
dimensions by a particular purpose: networking, conversation and community. This is a
business making and brand awareness- -raising model, in which the brand is at the Centre,
surrounded by the community, networking and conversation (ibid.). [1] “Conversation creates
opportunities which creates revenue” (ibid., p. 183); [2] “Community: Where one can
communicate for a wider audience. A place with participative communication” (ibid., p. 187);
[3] Networking: Where one can participate in groups relevant to the industry (LinkedIn)
connecting with other professionals. Connect with friends and family and even their own
brands, musicians, restaurants, etc (ibid., p. 191).

Figure 2.2: The social media Trinity Model. Source: Mckee

This model aims to give power to the brand by making its presence relevant in conversation
blogs such as twitter, community technologies such as Facebook or YouTube, but also in
networking websites like LinkedIn. In this other model, the brand image is no longer defined
by what is being said about a brand throughout advertising inputs but what people are talking
about it in social networks. “The brand custodians have little control over the brand – a source
of worry for most of them” Raman (Figure 3). User-generated content happens through a peer
review process; e.g., referrals, blogs and tagging. So, if a customer has more information and
interaction with the brand, he is more likely to be a potential buyer (RAMAN).

7
Figure 2.3: Raman Model. Source: Raman

2.4 Social media strategy


It is generally accepted that it is important to have an online presence on the web, but how can
business be sure that their brands are being relevant in all platforms? How can it maintain a
position of relevance and consistency in all the different types of channels? Christodoulides
states that because of the Internet phenomenon, brand strategies have gone through significant
transformations. In order to succeed in a computer/mobile mediated environment brands need
to build relationships, enable interactivity and better tailor offerings for the online world.
McDonald affirms that the social media presence needs to be developed strategically to
coordinate the different views of the organization, its aims and activities, in order to plan the
different opportunities that arise in social media and social networking.

8
2.5 Conclusion
As social media is in its ‘infant years’ it is hard to predict what might happen to brands and
users in the process. However, it is already being highly used as a ROI tool for marketing and
branding. Literature indicates that social media should have its own separate campaigns, but
integrated in the long-term business strategy plan. We should however make a strategy that
targets consumer’s adequately in each platform. Social media is everywhere, in our everyday
life, turning the borders between our work and spare time more diffuse. Everybody has access
to a computer, at home or at their workplace, people can use their smartphones to log in the
internet from literally everywhere they go. Marketer’s approach branding for social media in a
very quantitative way, using metrics and analytics to measure, compare, take conclusions and
adjust their social media strategy efforts. Users are becoming more aware of these marketing
tactics and knowingly or not, allow their data to be used by companies’/ brands for data
analysis and statistical purposes. Eventually users will become more interested in these matters
and expect customized experiences and a better engagement with the brands they follow/like
and interact with.

9
CHAPTER3
PROBLEM FORMULATION
Chapter 3.1 Introduction
We are all well aware about Cortana, Siri, Google Assistant and many other virtual assistants
which are designed to aid the tasks of users in Windows, Android and iOS platforms. But to our
surprise, there’s no such virtual assistant available for the paradise of Developers i.e., Windows
platform.
So we proposed a JARVIS:Windows Based Personal Assistant using AIwhich enables one with
1. Voice control over pc

2. Direct access to anything on pc

3. Makes PC interactive

4. Provide a Friendly marketing channel!

5. Give a platform to be more creative!

Chapter 3.2 Purpose


This Software aims at developing a personal assistant for Windows-based systems. The main
purpose of the software is to perform the tasks of the user at certain commands, provided in either
of the ways, speech or text. It will ease most of the work of the user as a complete task can be done
on a single command. Users can interact with the assistant either through voice commands or
keyboard input.

Chapter 3.3 Conclusion


In this chapter it enables us to make a purpose of our study clear to yourself and target readers.
Focus our paper on providing relevant data to address it. A problem statement is an effective and
essential tool to keep you on track with research and evaluate it.

10
CHAPTER 4
METHEODOLOGY AND DATA FLOW
DIAGRAM

4.1 Introduction
In this chapter we came across the idea about how our program is going to work and how its data
are following from start to end.

4.2 Methodology
1. SPEECH to TEXT:

A piece of software that converts audio to text.


It doesn’t understand just anything you might say.

2. TEXT ANALYSING

Converted text is just letters to computer.


A piece of software converts text to something that is understandable for
computer.
Computer understands the command, so Virtual Assistant like siri convert
this text to computer command.
VPAs maps the words to function and parameters to create a command
that computer can understand.

3. Interpret commands:

In this layer, that mapped computer command, go to server through


internet.
Simultaneously, your speech evaluated locally.
A local recogniser communicate with server to judge whether command will be best
handle locally or not.

11
4.3 Data Flow Diagram(DFD)

DFD LEVEL O

Figure 4.1(DFD LEVEL 0)

DFD LEVEL 1

12
Figure 4.2(DFD LEVEL 1)

DFD LEVEL 2

DFD LEVEL 2

13
4.4 Conclusion
In this chapter it enables us to make a purpose of our study clear to yourself and target readers.
Focus our paper on providing relevant data to address it. In this we came across the idea about how
our program is going to work and how its data are following from start to end.

14
CHAPTER 5
CONTRIBUTION OF PROJECT TO THE
SOCIETY & SCOPE
5.1 Introduction
In this chapter we came across the concept of how this program is effective towards the
society.

5.2 It’s Contribution to Society


1.It's a forum for support and safety information during a crisis.

There have been several recent disasters during which social media provided the only viable
venue for communication.

Example- During Superstorm Sandy, most people didn't have power, but some cell networks
and WiFi towers were still operational. Many people used Facebook to detail the destruction
and reassure friends or family that they were safe. 

2.It's a valuable aid for crime-solving. 

Police departments like the CAPF, CPO are beginning to investigate gang-related crimes on
social media networks.

3.It's the best-yet way to connect across vast distances. 

Many of us are now able to once again connect with friends and relatives from far and wide
without having to waste money paying for international phone calls. I can reconnect with
people I met from Australia and South Africa. I can see their pictures and take a glimpse into
their life, and it's nice to have a way to check in on their updates when I can't physically be
there myself

4.It's a form of political influence.

 Social media has given a true voice to the people. Last month, the rally for marriage equality
spread throughout social platforms as the Supreme Court heard cases regarding same-sex marriage.

5.It revolutionized brand engagement.

15
 Social media transformed the marketing industry. A new BIA/Kelsey report says social media ad
revenue will reach $11 billion by 2017. Brands have the ability to personally engage with
customers like never before and it's showing in sales.

5.3 Conclusion
In this chapter we came across the concept of how this program is effective towards the society.

5.4 Scope of social media app in India


The scope of social media in India is immense and increasing rapidly. It is the 10th biggest
economy and also has the 2nd largest population in the world.  A survey in 2019, which includes
the top businesses admitted that 15-20% of their marketing budget is allocated for social media
advertising. From that, it is understood the importance of social media in brand advertising.

16
CHAPTER 6
TECHENOLOGIES USED
6.1 Software
REACT

NODE JS

EXPRESS

MONGODB

REDUX

6.2 Hardware
Acer predator Helios 300

Hp 14s

Dell G5 5500

Acer aspire7

17
CHAPTER 7
RESULT AND DEMENOSTRATION
STEP 1:

First you have to sign up using

 FULL NAME

 USER NAME

 EMAIL ID

 PASSWORD

Figure 7.1
18
STEP 2:

Then you have to login

Figure 7.2

19
STEP 3:

Now you are ready to go

Figure 7.3

20
Figure 7.4

21
Figure 7.5

22
CHAPTER 8
CONCLUSION, LIMITATION AND FUTURE

8.1 Introduction
In this chapter we discuss about our projects conclusion, limitation and its future

8.2 Motivation
We wanted to build an app which allows us to reach people locally, regionally, nationally and even
internationally. To provide a platform where people can connect with other people around the
world. To share their thoughts and get to know other cultures around the world.

8.3 Limitation
The following info graphic exactly highlights the significant points such as identity theft, which
means that because of the independence afforded by the virtual online world, individuals are
unrestricted to produce imaginary identities and can pretend to be somebody else.  People are
being targeted for online scams; companies are ridiculed by unwanted negative feedback or
publicity.

23
Figure 7. Disadvantage of social media web app

In addition, it also talks about how the concentration of employees has reduced the productivity
as they are too busy updating their statuses or are checking their likes and friends list. The
photographs that are posted on the social media are also not safe as they are morphed/tampered
and misused for illegal activities. And God forbid, if your account on the social media is
hacked, then all your privacy is lost. All your vital information is leaked online or used for
illegal activities.

24
8.3 COCLUSION
As social media is in its ‘infant years’ it is hard to predict what might happen to brands and users
in the process. However, it is already being highly used as a ROI tool for marketing and branding.
Literature indicates that social media should have its own separate campaigns, but integrated in the
long-term business strategy plan. We should however make a strategy that targets consumer’s
adequately in each platform. Social media is everywhere, in our everyday life, turning the borders
between our work and spare time more diffuse. Everybody has access to a computer, at home or at
their workplace, people can use their smartphones to log in the internet from literally everywhere
they go. Marketer’s approach branding for social media in a very quantitative way, using metrics
and analytics to measure, compare, take conclusions and adjust their social media strategy efforts.
Users are becoming more aware of these marketing tactics and knowingly or not, allow their data
to be used by companies’/ brands for data analysis and statistical purposes. Eventually users will
become more interested in these matters and expect customized experiences and a better
engagement with the brands they follow/like and interact with.

The managing of digital is becoming very important for most organizations. Companies need to
adjust themselves to these new communication medias and embrace these new ways of making
business and administrate relationships. Therefore, social media needs to embrace design to better
craft experiences with customers. In this new global scene, the keywords are: interactivity,
personalization, globalization, integration, approximation and convergence of information. In this
new era, the consumer has the final word and is the main actor. The consumer now has to be part
of the product being sold, and it is more and more becoming the product itself that companies aim
to please or have some sort of contact with (for e.g.: Facebook holds our information and uses it
commercially to better aim products and services to us as potential consumers – e.g.:
advertisements on the right side of our public wall). Consumers want to get something in return
and there must be an appeal to them in order to do that. Advertisement can no longer be
understood as a monologue, there has to be a dialogue with the consumer, and for that to happen
communication has to go online and it has to make sense in that medium. Designers have the tools,
expertise and skills to make social media branding success a reality. They can improve consumer’s
engagement with the brand; they can attract more customers and therefore generate more income.
They also can make the brand more aware in people’s minds and in their everyday lives, thus
improving brand equity in general.

25
REFERENCES
[1] Efficient Market Hypothesis (EMH) Definition. (n.d.). Retrieved January 24, 2022,

Efficient Market Hypothesis (EMH) Definition (investopedia.com)

[2] Kamalov, F., Smail, L., & Gurrib, I. (2020). Stock price forecast with deep learning. 2020 International
Conference on Decision Aid Sciences and Application, DASA 2020, 1098–1102.

Stock price forecast with deep learning | IEEE Conference Publication | IEEE Xplore

[3] 18BEC0549_VL2021220102642_PE003.docx - Department Of Electronics and Communication


Engineering A Project Report on \u201cStock Price Prediction\u201d | Course Hero. (n.d.). Retrieved
January 24, 2022, from

18BEC0549_VL2021220102642_PE003.docx - Department Of Electronics and Communication Engineering


A Project Report on “Stock Price Prediction” Submitted | Course Hero

4] Good Data by Institute of Network Cultures - Issuu. (n.d.). Retrieved January 24, 2022, from

Good Data by Institute of Network Cultures - Issuu

[5] Data are cleared on this level for the beginning of the process The valuable | Course Hero. (n.d.).
Retrieved January 24, 2022, from

Data are cleared on this level for the beginning of the process The valuable | Course Hero

[6] Liu, J., Xu, Y., Zhou, K., & Ge, M.-F. (2021). Fault diagnosis and failure prognosis in hydraulic systems.
Fault Diagnosis and Prognosis Techniques for Complex Engineering Systems, 207–262.

https://doi.org/

[7] Data are cleared on this level for the beginning of the process The valuable | Course Hero. (n.d.).
Retrieved January 24, 2022, from

https://www.coursehero.com/file/p7rvf2uu/Data-are-cleared-onthis-level-for-the-beginning-of-the-
process-The-valuable/

[8] Ghosh, A., Bose, S., Maji, G., Debnath, N. C., Sen, S., & Chowdhury, A. K. (n.d.). Stock Price Prediction
Using LSTM on Indian Share Market.

[9] He, T., Xie, C., Liu, Q., Guan, S., & Liu, G. (2019). Evaluation and Comparison of Random Forest and A-
LSTM Networks for Large-scale Winter Wheat Identification. Remote Sensing 2019,

Vol. 11, Page 1665, 11(14), 1665. https://doi.org/10.3390/RS11141665

26
Appendix
import { useEffect } from 'react'

import {BrowserRouter as Router, Route} from 'react-router-dom'

import PageRender from './customRouter/PageRender'

import PrivateRouter from './customRouter/PrivateRouter'

import Home from './pages/home'

import Login from './pages/login'

import Register from './pages/register'

import Alert from './components/alert/Alert'

import Header from './components/header/Header'

import StatusModal from './components/StatusModal'

import { useSelector, useDispatch } from 'react-redux'

import { refreshToken } from './redux/actions/authAction'

import { getPosts } from './redux/actions/postAction'

import { getSuggestions } from './redux/actions/suggestionsAction'

import io from 'socket.io-client'

import { GLOBALTYPES } from './redux/actions/globalTypes'

import SocketClient from './SocketClient'

import { getNotifies } from './redux/actions/notifyAction'

import CallModal from './components/message/CallModal'

import Peer from 'peerjs'

27
function App() {

const { auth, status, modal, call } = useSelector(state => state)

const dispatch = useDispatch()

useEffect(() => {

dispatch(refreshToken())

const socket = io()

dispatch({type: GLOBALTYPES.SOCKET, payload: socket})

return () => socket.close()

},[dispatch])

useEffect(() => {

if(auth.token) {

dispatch(getPosts(auth.token))

dispatch(getSuggestions(auth.token))

dispatch(getNotifies(auth.token))

}, [dispatch, auth.token])

useEffect(() => {

if (!("Notification" in window)) {

alert("This browser does not support desktop notification");

else if (Notification.permission === "granted") {}

else if (Notification.permission !== "denied") {

Notification.requestPermission().then(function (permission) {

if (permission === "granted") {}

28
});

},[])

useEffect(() => {

const newPeer = new Peer(undefined, {

path: '/', secure: true

})

dispatch({ type: GLOBALTYPES.PEER, payload: newPeer })

},[dispatch])

return (

<Router>

<Alert />

<input type="checkbox" id="theme" />

<div className={`App ${(status || modal) && 'mode'}`}>

<div className="main">

{auth.token && <Header />}

{status && <StatusModal />}

{auth.token && <SocketClient />}

{call && <CallModal />}

<Route exact path="/" component={auth.token ? Home : Login} />

<Route exact path="/register" component={Register} />

29
<PrivateRouter exact path="/:page" component={PageRender} />

<PrivateRouter exact path="/:page/:id" component={PageRender} />

</div>

</div>

</Router>

);

export default App;

import React, { useState, useEffect } from 'react'

import CommentCard from './CommentCard'

const CommentDisplay = ({comment, post, replyCm}) => {

const [showRep, setShowRep] = useState([])

const [next, setNext] = useState(1)

useEffect(() => {

setShowRep(replyCm.slice(replyCm.length - next))

},[replyCm, next])

return (

<div className="comment_display">

<CommentCard comment={comment} post={post} commentId={comment._id} >

<div className="pl-4">

showRep.map((item, index) => (

item.reply &&

30
<CommentCard

key={index}

comment={item}

post={post}

commentId={comment._id}

/>

))

replyCm.length - next > 0

? <div style={{cursor: 'pointer', color: 'crimson'}}

onClick={() => setNext(next + 10)}>

See more comments...

</div>

: replyCm.length > 1 &&

<div style={{cursor: 'pointer', color: 'crimson'}}

onClick={() => setNext(1)}>

Hide comments...

</div>

</div>

</CommentCard>

</div>

export default CommentDisplay

31

You might also like