Git Product home page Git Product logo

python-bugspots's Introduction

Bugspots

A Python based implementation of the bug prediction algorithm proposed by Google: Bug Prediction at Google

Currently supports : Git and Mercurial repositories

Installation

$ pip install bug-spots

Example usage

Move to the repository directory

    niedbalski@machine:~/src/rabbitmq-server$ bugspots .

    Scanning file:/home/aktive/src/rabbitmq-server repo, branch:default
    Found 16 bugfix commits on the last 30 days

    Fixes
    --------------------------------------------------------------------------------
      -Oops. This was part of an (early, wrong) attempt at bug 25474 which got committed as part of f1317bb80df9 (bug 25358) by mistake. Remove.
      -merge bug19375 into default
      -merge bug25488 into default
      -Merge bug25495
      -Merge bug25497
      -Merged bug25474 and bug25486
      -Merged bug25499
      -merge bug25384 into default
      -merge bug23378 into default
      -Merge bug25461
      -merge bug23749 into default
      -Merge bug24114 into default
      -Merged bug25491 into default
      -Merged bug25499 into default
      -merge bug25487 into default
      -Merge bug25519.

    Hotspots
    --------------------------------------------------------------------------------
      0.23 = src/rabbit_node_monitor.erl
      0.15 = src/rabbit_channel.erl
      0.08 = src/rabbit_tests.erl
      0.08 = src/rabbit_amqqueue_process.erl
      0.08 = src/rabbit_exchange.erl

python-bugspots's People

Contributors

bilboer avatar dhavale avatar niedbalski avatar

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-bugspots's Issues

Needs upgraded VCS library.

Saw the following error when running it after installing through pip:

$ bugspots --branch master --days 30 --limit 10
Traceback (most recent call last):
  File "/Users/mferrante/code/dxansible/bugspot_env/bin/bugspots", line 9, in <module>
    load_entry_point('bug-spots==0.2.4', 'console_scripts', 'bugspots')()
  File "/Users/mferrante/code/dxansible/bugspot_env/lib/python2.7/site-packages/bugspots/__init__.py", line 157, in main
    print_code_hotspots(options)
  File "/Users/mferrante/code/dxansible/bugspot_env/lib/python2.7/site-packages/bugspots/__init__.py", line 123, in print_code_hotspots
    for factor, filename in get_code_hotspots(options):
  File "/Users/mferrante/code/dxansible/bugspot_env/lib/python2.7/site-packages/bugspots/__init__.py", line 78, in get_code_hotspots
    commits = get_fix_commits(client, options.branch, options.days)
  File "/Users/mferrante/code/dxansible/bugspot_env/lib/python2.7/site-packages/bugspots/__init__.py", line 69, in get_fix_commits
    for change in changelogs(days_ago):
  File "/Users/mferrante/code/dxansible/bugspot_env/lib/python2.7/site-packages/bugspots/__init__.py", line 58, in changelogs
    changelogs = [change for change in client.get_changesets(client.repo)]
  File "/Users/mferrante/code/dxansible/bugspot_env/lib/python2.7/site-packages/vcs/cli.py", line 409, in get_changesets
    if not options['all']:
KeyError: 'all'

I upgraded the vcs install with:

$ pip install git+git://github.com/codeinn/vcs.git@master#vcs --upgrade

And it worked then

Python 3 support

This is a killer for us, we'd be happy to use this and help improving/maintaining it if Python 3 support is there. IIUC vcs doesn't have python3 support yet but at least you could write your code agnostic. Also vcs seems not well maintained.

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.