-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tex
602 lines (474 loc) · 18.2 KB
/
main.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
%This is a very basic BE PROJECT PRELIMINARY template.
%#############################################
%#########Author : PROJECT###########
%#########COMPUTER ENGINEERING############
\documentclass[oneside,a4paper,12pt, times]{book}
\usepackage[backend=biber]{biblatex}
\addbibresource{coda.bib}
\usepackage[left=1.5in, right=1in, top=1in, bottom=1.25in]{geometry}
\onehalfspacing
\setlength{\parskip}{12pt}
%\usepackage{showframe}
%\hoffset = 8.9436619718309859154929577464789pt
%\voffset = 13.028169014084507042253521126761pt
\usepackage{fancyhdr}
\fancypagestyle{plain}{%
\fancyhf{}
\fancyfoot[CE]{Pune Institute of Computer Technology, Department of Computer Engineering 2016-17}
\fancyfoot[C]{\thepage}
}
\pagestyle{plain}
\renewcommand{\headrulewidth}{0pt}
\footskip = 0.625in
\cfoot{}
\rfoot{}
\usepackage[]{hyperref}
\usepackage{tikz}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usetikzlibrary{arrows,shapes,snakes,automata,backgrounds,petri}
\usepackage{titlesec}
\usepackage{tabularx}
\usepackage[nottoc,notlot,notlof,numbib]{tocbibind}
\usepackage[titletoc]{appendix}
\usepackage{titletoc}
\renewcommand{\appendixname}{Annexure}
\renewcommand{\bibname}{References}
\setcounter{secnumdepth}{5}
\usepackage{float}
\usepackage{subcaption}
\usepackage{multirow}
\usepackage{biblatex}
\usepackage{url}
\addbibresource{coda.bib}
\usepackage[ruled,vlined]{algorithm2e}
\begin{document}
\setlength{\parindent}{0mm}
\begin{center}
\vspace*{1\baselineskip}
{\bfseries A PRELIMINARY REPORT ON \\}
\vspace*{2\baselineskip}
{\bfseries \fontsize{16}{12} \selectfont Comprehensive Developer Assistant (CODA) \\ \vspace*{2\baselineskip}}
{\fontsize{12}{12} \selectfont SUBMITTED TO THE SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE \\
IN THE PARTIAL FULFILLMENT OF THE REQUIREMENTS \\
FOR THE AWARD OF THE DEGREE \\
\vspace*{2\baselineskip}
OF\\
\vspace*{2\baselineskip}}
{\bfseries \fontsize{14}{12} \selectfont \mbox{BACHELOR OF ENGINEERING(Computer Engineering)} \\
\vspace*{1\baselineskip}}
{\bfseries \fontsize{14}{12} \selectfont SUBMITTED BY \\
\vspace*{1\baselineskip}}
Shantanu Jain \hspace{25 mm} Exam No : B150054307\\
Tanmay Singhal \hspace{25 mm} Exam No : B150054452 \\
Tejas Srivastava \hspace{25 mm} Exam No : B150054460\\
Dipak Wani \hspace{25 mm} Exam No : B150054476\\
\vspace*{2\baselineskip}
\vskip 1cm
\includegraphics[width=100pt]{college_logo.jpg} \\
\vskip 1cm
{\bfseries \fontsize{15}{12} \selectfont
DEPARTMENT OF COMPUTER ENGINEERING\\
}
{\bfseries \fontsize{14}{12} \selectfont{
\vspace*{1\baselineskip}
PUNE INSTITUTE OF COMPUTER TECHNOLOGY \\
\vspace*{1\baselineskip}
DHANKAWADI, PUNE - 43 \\
\vspace*{1\baselineskip}
}
\end{center}
\newpage
{\bfseries \fontsize{14}{12} \selectfont \centerline{SAVITRIBAI PHULE PUNE UNIVERSITY}
\vspace*{1\baselineskip}}
{\bfseries \fontsize{14}{12} \selectfont \centerline{2018-2019}
\vspace*{1\baselineskip}}
\begin{figure}[ht]
\centering
\includegraphics[width=100pt]{college_logo.jpg}
\end{figure}
{\bfseries \fontsize{16}{12} \selectfont \centerline{CERTIFICATE}
\vspace*{2\baselineskip}}
\centerline{This is to certify that the Project Entitled}
\vspace*{.5\baselineskip}
{\bfseries \fontsize{14}{12} \selectfont \centerline{Comprehensive Developer Assistant (CODA)}
\vspace*{0.5\baselineskip}}
\centerline{Submitted by}
\vspace*{0.5\baselineskip}
\centerline{Shantanu Jain \hspace{25 mm} (B150054307)}
\centerline{Tanmay Singhal \hspace{25 mm} (B150054452)}
\centerline{Tejas Srivastava \hspace{25 mm} (B150054460)}
\centerline{Dipak Wani \hspace{25 mm} (B150054476)}
is a bonafide work carried out by students under the supervision of \textbf{Prof. M.S. Chavan} and it
is submitted towards the partial fulfillment of the requirement of \textbf{Bachelor of Engineering (Computer Engineering)}.\\
\vskip 1cm
\bgroup
\def\arraystretch{0.7}
\begin{tabular}{c c }
\textbf{Prof. M.S. Chavan} & \hspace{50 mm} \textbf{Dr. R. B. Ingle} \\
Internal Guide & \hspace{50 mm} H.O.D \\
Dept. of Computer Engg. & \hspace{50 mm}Dept. of Computer Engg. \\
\end{tabular}
%}
\begin{center}
%\fontsize{12}{18}\selectfont
{
\vskip 1cm
\textbf{Dr. P. T. Kulkarni}\\
Principal\\
Pune Institute of Computer Technology
}
\end{center}
\vskip 1cm
Signature of Internal Examiner \hspace{40 mm}\mbox{Signature of External Examiner}
\newpage
%\pictcertificate{TITLE OF BE PROJECT}{Student Name}{Exam Seat No}{Guide Name}
\setcounter{page}{0}
\frontmatter
\cfoot{PICT, Department of Computer Engineering 2018-19 \\ \\ \thepage}
%\rfoot{\thepage}
\pagenumbering{Roman}
%\pictack{BE PROJECT TITLE}{Guide Name}
{ \newpage {\bfseries \fontsize{14}{12} \selectfont \centerline{Acknowledgments}
\vspace*{2\baselineskip}} \setlength{\parindent}{11mm} }
{ \setlength{\parindent}{0mm} }
%Please Write here Acknowledgment.Example given as\\
\textit{It gives us great pleasure in presenting the preliminary project report
on {\bfseries \fontsize{12}{12} \selectfont `{\bfseries \fontsize{14}{12} \selectfont {Comprehensive Developer Assistant (CODA)}
}'}.}
\textit{We would like to take this opportunity to thank our internal guide
\textbf{Prof. M.S. Chavan} for giving us all the help and guidance we needed. We are really grateful to him for his kind support. His valuable suggestions were very helpful.}
\\
\\
\textit{We are also grateful to \textbf{Dr. R. B. Ingle}, Head of Computer
Engineering Department, PICT for his indispensable
support along with his guidance.}
\\
\textit{In the end our special thanks to the college for
providing various resources such as laboratory with all needed software platforms,
continuous Internet connection, for our Project.}
\vspace*{3\baselineskip} \\
\begin{tabular}{p{8.2cm}c}
&Shantanu Jain\\
&Tanmay Singhal\\
&Tejas Srivastava\\
&Dipak Wani\\
&(B.E. Computer Engg.)
%}
\end{tabular}
{ \newpage {\bfseries \fontsize{14}{12} \selectfont \centerline{Abstract}
\vspace*{2\baselineskip}} \setlength{\parindent}{11mm} }
{ \setlength{\parindent}{10mm} }
\-\hspace{0.5in}\textit{Robots and AI based systems are now slowly taking over many sectors such as support,
industrial automation, etc. Our aim is to develop one such intelligent engine, which will
allow users to give commands in natural english to perform a particular task/s on the client
machine, which would then be analyzed and converted into appropriate terminal
commands/code snippet generation using natural language Processing and Machine
Learning. System can be integrated with VCS like GitHub, Project management application
like Slack. The system will be able to constantly evolve and train itself to handle variations
in user input. Such a system finds useful application in a Virtual Intelligent Assistant,
which can be based on remote access and can be handled easily by naive users as well.
principles, to run on the client device}
Keywords: Text Mining, NLP, Deep Learning
\\
\\
\-\hspace{0.5in}
% \maketitle
\tableofcontents
\listoffigures
\mainmatter
\titleformat{\chapter}[display]
{\fontsize{16}{15}\filcenter}
{\vspace*{\fill}
\bfseries\LARGE\MakeUppercase{\chaptertitlename}~\thechapter}
{1pc}
{\bfseries\LARGE\MakeUppercase}
[\thispagestyle{empty}\vspace*{\fill}\newpage]
\setlength{\parindent}{11mm}
\chapter{Introduction}
\section{Motivation}
\-\hspace{0.5in}Para1
\begin{figure}[h]
\centering
\includegraphics[width=400pt,height=250pt]{motivation.png}
\caption{Figure title}
\label{fig:my_label}
\end{figure}
Para 2
\begin{figure}[h]
\centering
\includegraphics[width=400pt,height=250pt]{motivation_.png}
\caption{Figure title}
\label{fig:my_label}
\end{figure}
Para3
\section{Problem Definition}
\label{sec:problem}
Para 1
\chapter{Literature Survey}
This Chapter presents works related to this project. Work has been done on individual aspects of the project as a whole. Ranking models and code summarizing systems have been developed but not under a single roof. Also they are built for distinct languages.
\section{Paper 1}
StackOverflow mining for programming prompter\cite{monperrus} implements a IDE plugin that when given a context in the IDE, automatically gets pertinent discussions from Stack Overflow, evaluates their relevance, and, if a given confidence threshold is surpassed, notifies the developer about the available help. The Ranking model helps to evaluate its relevance.
\section{Paper 2}
Deep Code Search\cite{gu2018deep} discusses previously written code snippets by searching through a large-scale code base. Instead of matching text similarity, their approach jointly embeds code snippets and natural language descriptions into a high-dimensional vector space, in such a way that code snippet and its corresponding description have similar vectors.
\section{Paper 3}
Summarizing Source Code\cite{iyer2016summarizing} presents datadriven
approach for generating high level
summaries of source code. It presents the use of neural networks with attention to
produce sentences that describe code snippets and queries.The model is trained using corpus
collected from StackOverflow.
\section{Paper 4}
Automatic documentation generation \cite{mcburney2014automatic} proposes a technique that includes this context by analyzing
how the Java methods are invoked. Programmers benefit from the generated documentation
because it includes context information. This paper puts forth Natural Language Generation and Page Ranking methods for generating contextual document generation.
\vskip 10cm
\chapter{Software Requirements Specification}
\section{Scope}
\begin{itemize}
\item \textbf{BACKGROUND TO THE PROPOSED WORK}:-\newline Developers in the field of IT play a pivotal role in the development of the field since, they are responsible for designing innovative and feasible applications that benefit the target customers. But most of their time is spent on surfing through the Internet for syntax related queries or understanding snippets written by other developers, rather than in developing the application logic itself. Thus, in this paced environment, it becomes essential for creating a software that aids the developers by not only providing quick syntax for various languages using their voice, but also enables them to understand code written by others by providing a succinct description of the code.
\item \textbf{OBJECTIVE/PURPOSE}:- \newline To create a voice-based assistant for aiding developers in providing code snippet summarization and voice-based query execution within 5 months.
\item \textbf{DELIVERABLES}:-\newline1.To create a voice-based assistant for interaction with clients. \newline2.To generate high level, english-interpretable summary of a given code snippet for the user. \newline3.Execute terminal commands for the user based on voice input.\newline4.Creating JAVA-based documentation for a given JAVA code snippet.\newline5.Integration with Github to provide voice-based creating, branching, forking, etc of repositories.\newline 6.Integration with StackOverflow for providing concise, and time efficient solution to specific code related queries.
\item \textbf{ASSUMPTIONS}:-\newline1.Microphone available on the machine on which the application is run.\newline2.Clients interacting with the assistant are aware of the basic sentence structures of English language.
\end{itemize}
\\
\section{Functional Requirements}
\subsection{FR1}
\subsubsection{Description and Priority}
Content
\subsubsection{Functional Requirements}
Content
\subsection{FR2}
\subsubsection{Description and Priority}
Content
\subsubsection{Functional Requirements}
Content
\section{External Interface Requirements }
\subsection{User Interfaces}
Content
\section{Nonfunctional Requirements }
\subsection{Performance Requirements}
\subsection{Safety Requirements}
\subsection{Security Requirements}
\subsection{Software Quality Attributes}
\section{System Requirements }
\subsection{Database Requirements}
\subsection{Minimum Software and Hardware Requirements}
\begin{itemize}
\item Python 3
\item Torch framework
\item Google's DialogFlow framework
\item Suitable API's for integration with StackOverflow, Github, etc
\item Text Editor/ Integrated Development Environment(IDE)
\item ANTLR v4 (Another tool for Language Recognition) for JAVA parsing
\item Ubuntu 16.04 or above
\item Graphic Processing Unit(GPU)
\item Intel i5 Processor 7th Generation
\item 8GB RAM
\end{itemize}
\subsection{Hardware Requirements}
\section{Analysis Model}
\section{System Implementation Plan}
\begin{figure}[h]
\centering
\includegraphics[width=450pt]{Gantt.png}
\caption{Gantt chart}
\label{fig:my_label}
\end{figure}
\chapter{System Design}
\section{System Architecture}
\begin{figure}[h]
\centering
\includegraphics[width=430pt]{architecture.png}
\caption{System architecture}
\label{fig:my_label}
\end{figure}
\newpage
\section{Data Flow Diagrams}
\subsection{DFD Level 0}
\begin{center}
\centering
\includegraphics[width=400pt]{DFD0.jpg}}
\captionof{figure}{DFD Level 0}
\label{fig:my_label}
\end{center}
\subsection{DFD Level 1}
\begin{center}
\centering
\includegraphics[width=400pt]{DF1(Voice_input).jpg}}}
\captionof{figure}{DFD Level 1 (Voice Input)}
\label{fig:my_label}
\end{center}
\subsection{DFD Level 1}
\begin{center}
\centering
\includegraphics[width=400pt]{DFD1.jpg}}}}
\captionof{figure}{DFD Level 1 (Code Upload)}
\label{fig:my_label}
\end{center}
\section{UML Diagrams}
\subsection{UseCase Diagram}
\begin{center}
\centering
\includegraphics[width=300pt,height=500pt]{usecase.png}
\captionof{figure}{Use Case Diagram}
\label{fig:my_label}
\end{center}
\subsection{Activity Diagram}
\begin{/raggedleft}
\includegraphics[width=520pt,height=520pt]{ActivityDiagram.jpg}}
\captionof{figure}{Activity Diagram}
\label{fig:my_label}
\end{/raggedleft}
\subsection{Communication Diagram}
\begin{center}
\centering
\includegraphics[width=450pt]{comm.png}
\captionof{figure}{Communication Diagram}
\label{fig:my_label}
\end{center}
\subsection{Sequence Diagram}
\begin{center}
\centering
\includegraphics[width=450pt]{sequence.png}
\captionof{figure}{Sequence Diagram}
\label{fig:my_label}
\end{center}
\chapter{Other Specification}
\section{Advantages}
\begin{enumerate}
\item Human effort reduction
\begin{itemize}
\item Trivial commands can be automated and thus user's time is saved.
\end{itemize}
\item Beginner Friendly
\begin{itemize}
\item Beginners in coding can easily query the assistant and find the to their problems at one place.
\item Integration with other tools helps inculcate better coding practices.
\end{itemize}
\item Deep Integration with work environments
\begin{itemize}
\item Integration with VCS, project management tools like slack helps in keeping track of the development of project.
\end{itemize}
\end{enumerate}
\section{Limitations}
\begin{enumerate}
\item Quantifying code quality
\begin{itemize}
\item Different metrics judge different aspects of code and thus universal metric of judging the solution proposed is unavailable.
\item Feedback from the user (Strongly Agree, Agree, Disagree) needs to be introduced which may be influenced by external factors
\end{itemize}
\item Dependence on external tools and API
\begin{itemize}
\item The system does not guarantee solution to every problem as it is dependent on external tools (stackoverflow/documentation) for the results.
\item The answers from the web may be inaccurate and thus introduce fallacies in the system
\end{itemize}
\item Code Relevance
\begin{itemize}
\item The output returned from may have inaccuracies generated because of the ranking algorithm, which may rank
\end{itemize}
\end{enumerate}
\section{Applications}
\begin{enumerate}
\item Beginners in coding: Time wasted in searching for trivial code can be reduced with a large margin
\item Team project development: Integration with other working platforms helps in keeping track of the project better
\item Open Source Projects: Documentation generation which proves to be the most tedious task can be automated
\end{enumerate}
\chapter{Project Plan}
\section{Project Estimates}
\subsection{Reconciled Estimates}
\subsubsection{Cost Estimate}
\begin{enumerate}
\item Cost of Computer Systems with NVIDIA GPU cards
\end{enumerate}
\subsubsection{Time Estimates}
\begin{enumerate}
\item Finalizing the Problem Statement: July 2018
\item Designing: August 2018
\item Implementation: October 2018 - December 2018
\item Testing: January 2019
\item Deployment: February 2019
\end{enumerate}
\subsection{Project Resources}
\begin{enumerate}
\item Hardware:
\begin{enumerate}
\item NVIDIA GPU systems
\end{enumerate}
\item Software:
\begin{enumerate}
\item Gonuts dataset
\item Pytorch
\end{enumerate}
\end{enumerate}
%Project resources [People, Hardware, Software, Tools and other resources] based on Memory Sharing, IPC, and Concurrency derived using appendices to be referred.
\chapter{Conclusion and future scope}
\section{Conclusion}
Content
% \bibliographystyle{plain}
\bibliographystyle{ieeetr}
\bibliography{biblo}
\begin{appendices}
\chapter{Feasibility Study}
\section{Problem statement feasibility}
\-\hspace{0.5in}Para 1
\-\hspace{0.5in}Para 2
\section{Mathematical model}
Let S be the solution perspective of given problem statement.
\\
\\
\centerline{S = $\{s, e, X, Y, F, DD, NDD, Su, Fa | \emptyset_s\}$}
\\
\\
Where,\\
s : Start state\\
s = $\{U,T\}$\\
\-\hspace{1cm}where, \\
\-\hspace{1cm}U = \\
\-\hspace{1cm}T = \\
\\
e : End state\\
e = \\
\\
X = $\{U,T,G\}$\\
\-\hspace{1cm}where, \\
\-\hspace{1cm}U = \\
\-\hspace{1cm}T = \\
\\
\\
Y = $\{M\}$\\
\-\hspace{1cm}where, \\
\-\hspace{1cm}M =
\\
\\
F : set of functions\\
F = $\{F1, F2, F3, F4, F5\}$\\
F1 : \\
F2 : \\
F3 : \\
F4 : \\
F5 : \\
\\
DD : Deterministic Data\\
DD = $\{U, T, G\}$\\
NDD : \\
NDD = $\{M\}$\\\\
Su :\\
Fa : \\
\chapter{Summary of papers}
\textbf{[1] Paper name}
\\
Description\\
\\
\\
\\
\chapter{Plagiarism Report}
\begin{figure}[h]
\centering
\includegraphics[width=400pt]{report.png}
\caption{Plagiarism Report}
\label{fig:my_label}
\end{figure}
\end{appendices}
\chapter{References}
\printbibliography[heading=none]
\end{document}