Skip to content

Instantly share code, notes, and snippets.

@ayush1999
Created October 31, 2017 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayush1999/f70074486b4ed00b6d138ec09f518bc9 to your computer and use it in GitHub Desktop.
Save ayush1999/f70074486b4ed00b6d138ec09f518bc9 to your computer and use it in GitHub Desktop.
Running Coala on a project.
[WARNING][23:30:34] Implicit 'Default' section inheritance is deprecated. It will be removed soon. To silence this warning remove settings in the 'Default' section from your coafile. You can use dots to specify inheritance: the section 'all.python' will inherit all settings from 'all'.
Executing section python...
[WARNING][23:30:35] No files matching '/home/ayush99/Desktop/ML/keras/coalib/**/*.py' were found.
[WARNING][23:30:35] No files matching '/home/ayush99/Desktop/ML/keras/tests/**/*.py' were found.
[WARNING][23:30:35] No files matching '/home/ayush99/Desktop/ML/keras/coala' were found.
[INFO][23:30:35] Applied 'ApplyPatchAction' on 'diabetes.py' from 'SpaceConsistencyBear'.
[INFO][23:30:35] Applied 'ApplyPatchAction' on 'iris.py' from 'SpaceConsistencyBear'.
[INFO][23:30:35] Applied 'ApplyPatchAction' on 'iris.py' from 'QuotesBear'.
[INFO][23:30:35] Applied 'ApplyPatchAction' on 'iris.py' from 'QuotesBear'.
[INFO][23:30:35] Applied 'ApplyPatchAction' on 'iris.py' from 'QuotesBear'.
[INFO][23:30:35] Applied 'ApplyPatchAction' on 'iris.py' from 'QuotesBear'.
[INFO][23:30:35] Applied 'ApplyPatchAction' on 'iris.py' from 'QuotesBear'.
[INFO][23:30:35] Applied 'ApplyPatchAction' on 'iris.py' from 'QuotesBear'.
Executing section flakes...
[WARNING][23:30:35] No files matching '/home/ayush99/Desktop/ML/keras/coalib/**/*.py' were found.
[WARNING][23:30:35] No files matching '/home/ayush99/Desktop/ML/keras/tests/**/*.py' were found.
[WARNING][23:30:35] No files matching '/home/ayush99/Desktop/ML/keras/coala' were found.
iris.py
| 4| import·numpy·as·np
| | [NORMAL] PyUnusedCodeBear:
| | This file contains unused source code.
|----| | /home/ayush99/Desktop/ML/keras/iris.py
| |++++| /home/ayush99/Desktop/ML/keras/iris.py
| 1| 1| from sklearn import datasets
| 2| 2| from keras.models import Sequential
| 3| 3| from keras.layers import Dense
| 4| |-import numpy as np
| 5| 4|
| 6| 5| iris = datasets.load_iris()
| 7| 6|
| | *0: Do nothing
| | 1: Open file(s)
| | 2: Apply patch
| | 3: Add ignore comment
| | Enter number (Ctrl-D to exit): 2
| | Patch applied successfully.
| | *0: Do nothing
| | 1: Open file(s)
| | 2: Add ignore comment
| | Enter number (Ctrl-D to exit): 0
Executing section autopep8...
[WARNING][23:30:47] No files matching '/home/ayush99/Desktop/ML/keras/coalib/**/*.py' were found.
[WARNING][23:30:47] No files matching '/home/ayush99/Desktop/ML/keras/tests/**/*.py' were found.
[WARNING][23:30:47] No files matching '/home/ayush99/Desktop/ML/keras/coala' were found.
[INFO][23:30:48] Applied 'ApplyPatchAction' on 'iris.py' from 'PEP8Bear'.
iris.py
| 16| model.compile(loss='binary_crossentropy',·optimizer='adam',·metrics=['accuracy'])
| | [NORMAL] PycodestyleBear (E501):
| | E501 line too long (81 > 80 characters)
| | *0: Do nothing
| | 1: Open file(s)
| | 2: Add ignore comment
| | Enter number (Ctrl-D to exit): 0
iris.py
| 18| scores·=·model.evaluate(x,y)
| | [NORMAL] PycodestyleBear (E231):
| | E231 missing whitespace after ','
| | *0: Do nothing
| | 1: Open file(s)
| | 2: Add ignore comment
| | Enter number (Ctrl-D to exit): 0
[INFO][23:30:52] Applied 'ApplyPatchAction' on 'diabetes.py' from 'PEP8Bear'.
[INFO][23:30:52] Applied 'ApplyPatchAction' on 'diabetes.py' from 'PEP8Bear'.
[INFO][23:30:52] Applied 'ApplyPatchAction' on 'diabetes.py' from 'PEP8Bear'.
diabetes.py
| 5| dataset·=·np.loadtxt('data.csv',delimiter=',')
| | [NORMAL] PycodestyleBear (E231):
| | E231 missing whitespace after ','
| | *0: Do nothing
| | 1: Open file(s)
| | 2: Add ignore comment
| | Enter number (Ctrl-D to exit): 0
diabetes.py
| 6| x·=·dataset[:,0:8]··················································#·Classify·into·features·and·targets
| | [NORMAL] PycodestyleBear (E231):
| | E231 missing whitespace after ','
| | *0: Do nothing
| | 1: Open file(s)
| | 2: Add ignore comment
| | Enter number (Ctrl-D to exit): 0
diabetes.py
| 6| x·=·dataset[:,0:8]··················································#·Classify·into·features·and·targets
| | [NORMAL] PycodestyleBear (E501):
| | E501 line too long (104 > 80 characters)
| | *0: Do nothing
| | 1: Open file(s)
| | 2: Add ignore comment
| | Enter number (Ctrl-D to exit): 0
diabetes.py
| 7| y·=·dataset[:,8]
| | [NORMAL] PycodestyleBear (E231):
| | E231 missing whitespace after ','
| | *0: Do nothing
| | 1: Open file(s)
| | 2: Add ignore comment
| | Enter number (Ctrl-D to exit): 0
diabetes.py
| 10| model.add(Dense(12,·input_dim=8·,·activation='relu'))···············#·units·in·first·layer
| | [NORMAL] PycodestyleBear (E203):
| | E203 whitespace before ','
| | *0: Do nothing
| | 1: Open file(s)
| | 2: Add ignore comment
| | Enter number (Ctrl-D to exit): 0
diabetes.py
| 10| model.add(Dense(12,·input_dim=8·,·activation='relu'))···············#·units·in·first·layer
| | [NORMAL] PycodestyleBear (E501):
| | E501 line too long (90 > 80 characters)
| | *0: Do nothing
| | 1: Open file(s)
| | 2: Add ignore comment
| | Enter number (Ctrl-D to exit): 0
diabetes.py
| 19| model.compile(loss='binary_crossentropy',·optimizer='adam',·metrics=['accuracy'])
| | [NORMAL] PycodestyleBear (E501):
| | E501 line too long (81 > 80 characters)
| | *0: Do nothing
| | 1: Open file(s)
| | 2: Add ignore comment
| | Enter number (Ctrl-D to exit): 0
diabetes.py
| 21| model.fit(x,y,epochs=10,·batch_size=10)
| | [NORMAL] PycodestyleBear (E231):
| | E231 missing whitespace after ','
| | *0: Do nothing
| | 1: Open file(s)
| | 2: Add ignore comment
| | Enter number (Ctrl-D to exit): 0
diabetes.py
| 21| model.fit(x,y,epochs=10,·batch_size=10)
| | [NORMAL] PycodestyleBear (E231):
| | E231 missing whitespace after ','
| | *0: Do nothing
| | 1: Open file(s)
| | 2: Add ignore comment
| | Enter number (Ctrl-D to exit): 0
diabetes.py
| 23| scores·=·model.evaluate(x,y)
| | [NORMAL] PycodestyleBear (E231):
| | E231 missing whitespace after ','
| | *0: Do nothing
| | 1: Open file(s)
| | 2: Add ignore comment
| | Enter number (Ctrl-D to exit): 0
diabetes.py
| 24| print('{}·and·{}'.format(model.metrics_names[1],scores[1]*100))
| | [NORMAL] PycodestyleBear (E231):
| | E231 missing whitespace after ','
| | *0: Do nothing
| | 1: Open file(s)
| | 2: Add ignore comment
| | Enter number (Ctrl-D to exit): 0
Executing section linelength...
[WARNING][23:30:58] No files matching '/home/ayush99/Desktop/ML/keras/coalib/**/*.py' were found.
[WARNING][23:30:58] No files matching '/home/ayush99/Desktop/ML/keras/tests/**/*.py' were found.
[WARNING][23:30:58] No files matching '/home/ayush99/Desktop/ML/keras/coala' were found.
0
0Executing section DOCS...
[WARNING][23:30:58] No files matching '/home/ayush99/Desktop/ML/keras/docs/**/*.rst' were found.
[WARNING][23:30:58] No files matching '/home/ayush99/Desktop/ML/keras/README.rst' were found.
[WARNING][23:30:58] No files matching '/home/ayush99/Desktop/ML/keras/CONTRIBUTING.rst' were found.
Executing section commit...
[WARNING][23:30:59] No files matching '/home/ayush99/Desktop/ML/keras/coalib/**/*.py' were found.
[WARNING][23:30:59] No files matching '/home/ayush99/Desktop/ML/keras/tests/**/*.py' were found.
[WARNING][23:30:59] No files matching '/home/ayush99/Desktop/ML/keras/coala' were found.
[nltk_data] Downloading package punkt to /home/ayush99/nltk_data...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment