Code Monkey home page Code Monkey logo

stack_mining's Introduction

stack_mining

Study project : data mining stackoverflow

This project is split in two parts:

  • A program that goes through a stack overflow dump and produces a XML file or extracts the data to put it into a MySQL database
  • A program that performs that receives a stack trace in a text file as input and performs search for an identical stack trace in the program and returns the URL to the post containing the stack trace.

Requirements

This project was developped using the following technologies:

  • java 7
  • mysql-server 5.5

Run the extraction

In order to run the project, you must have a valid configuration file at the root of the project such as the one in src/main/resources/. If you don't, copy src/main/resources/config.properties at the root of the project and tweak it to reflect your installation needs.

mvn package
java -jar target/so-extractor-1.0-SNAPSHOT-jar-with-dependencies.jar path/to/Posts.xml

execute sql

mysql -h jenkins-lorel.cloudapp.net -P 443 -p -u stackoverflow stackoverflow < file.sql

Search for a stack trace

Compiling the program

mvn -f pom_search.xml package

Just like the extractor, this program requires a valid configuration file. If you don't have one copy the one from src/main/resources/ at the root of the directory and tune it to your needs.

Running the program

java -jar target/search-jar-with-dependencies /path/to/text.file

stack_mining's People

Contributors

aurelienhavet avatar dburihabwa avatar lorel avatar

Watchers

 avatar  avatar

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.