Coder Social home page Coder Social logo

lrnavin / autocomments Goto Github PK

View Code? Open in Web Editor NEW
43.0 43.0 9.0 291.82 MB

Description: We want to create a deep Neural Network that can automatically generate comments for code snippets passed to it. The motivation behind this is that in software development and maintenance, developers spend around 59% of their time on program comprehension activities. Having comments that are generated automatically will hopefully cut this time down. In order to do this we will combine the recent paper Code2Vec: Learning Distributed Representations of Code by Alon et al. with the paper Deep Code Comment Generation in order to make a better performing model using the newer Code2Vec encoding that was not used in the Deep Code Comment Generation paper. Dataset: The dataset that we will use is the same dataset used by the Deep Code Comment Generation paper, this is a dataset of more than 500,000 code snippets including comments. This also gives us a baseline against which to compare. Papers: Deep Code: https://xin-xia.github.io/publication/icpc182.pdf Code2Vec: https://arxiv.org/abs/1803.09473

Java 16.11% Python 53.04% Shell 4.07% C# 6.97% Perl 1.18% TeX 18.64%

autocomments's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

autocomments's Issues

Not able to run

HI Team,

WE LIKED THIS PROJECT AND TRYING USE IT FOR OUR USE CASE . APPRECIATED YOUR EFFORTS ON THIS, THANKS FOR MAKING THIS PROTOTYPE AS OPEN SOURCE PROJECT.

I have converted preprocess.sh to bat file to run it in windows machine, after that when we trying to run "AutoComments-master\code2seq_master\preprocess.cmd" getting below given exception. Not sure does this related to test data or fault in the code. If possible Can you please provide your VM image file , Used for this application trials . so that we can try at our end.

NOTE: We liked this project a

multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "%USER_DIR%AppData\Local\Programs\Python\Python38\lib\multiprocessing\pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "%USER_DIR%AppData\Local\Programs\Python\Python38\lib\multiprocessing\pool.py", line 51, in starmapstar
return list(itertools.starmap(args[0], args[1]))
File "E:\CodeCorrectionTool-CrystalBall\lrnavin\AutoComments\code2seq_master\JavaExtractor\extract.py", line 22, in ParallelExtractDir
ExtractFeaturesForDir(args, dir, "")
File "E:\CodeCorrectionTool-CrystalBall\lrnavin\AutoComments\code2seq_master\JavaExtractor\extract.py", line 35, in ExtractFeaturesForDir
with open(outputFileName, 'a') as outputFile:
FileNotFoundError: [Errno 2] No such file or directory: ''
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "JavaExtractor/extract.py", line 97, in
ExtractFeaturesForDirsList(args, subdirs)
File "JavaExtractor/extract.py", line 67, in ExtractFeaturesForDirsList
p.starmap(ParallelExtractDir, zip(itertools.repeat(args), dirs))
File "%USER_DIR%AppData\Local\Programs\Python\Python38\lib\multiprocessing\pool.py", line 372, in starmap
return self._map_async(func, iterable, starmapstar, chunksize).get()
File "%USER_DIR%AppData\Local\Programs\Python\Python38\lib\multiprocessing\pool.py", line 768, in get
raise self._value
FileNotFoundError: [Errno 2] No such file or directory: ''

-Gopi Kanth

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.