GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - codeproject-solutions/Programming-Language-Identification: Accompanying code for the arXiv paper first published in June of 2011

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
database
database
 
 
README
README
 
 
addToDatabase.sh
addToDatabase.sh
 
 
commentIdentify.py
commentIdentify.py
 
 
identifylanguage.py
identifylanguage.py
 
 
identifytraits.py
identifytraits.py
 
 
languagesknown.txt
languagesknown.txt
 
 
reader.py
reader.py
 
 
traits.py
traits.py
 
 

Repository files navigation

Code copyright (c) 2011 David Klein and Simon Weber

Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php



To add a folder source code to the database:
./addToDatabase.sh

Note that you have to edit the shell script if you want to add code from a language that's not already in the shell script.

To add code manually to the database:
python reader.py -l language < myfile

Where language is the language that the file is written in and myfile is the name of the source code file.


To attempt to identify the language of a piece of source code:
python identifylanguage.py < source_code_file

i.e.
python identifylanguage.py < sample.c

You can also type:
python identifylanguage.py -v < source_code_file

This gives you verbose output.


Code intended for Python 2.7.2 on linux.

About

Accompanying code for the arXiv paper first published in June of 2011

arxiv.org/abs/1106.4064

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.