Skip to content
Permalink
Browse files

Style: update python header

  • Loading branch information...
Armour committed Jul 12, 2018
1 parent ecd3039 commit 26cce8586c9637a6458e86f56e20a458e09e800a
Showing with 86 additions and 161 deletions.
  1. +23 βˆ’121 .gitattributes
  2. +10 βˆ’20 .github/COMMIT_CONVENTION.md
  3. +1 βˆ’1 .github/ISSUE_TEMPLATE.md
  4. +33 βˆ’0 .github/PULL_REQUEST_TEMPLATE.md
  5. +12 βˆ’5 .gitignore
  6. +1 βˆ’2 common.py
  7. +1 βˆ’2 config.py
  8. +1 βˆ’2 image_helper.py
  9. +1 βˆ’2 read_input.py
  10. +1 βˆ’2 residual_encoder.py
  11. +1 βˆ’2 test.py
  12. +1 βˆ’2 train.py
@@ -8,152 +8,81 @@

# SOURCE CODE
*.bat text eol=crlf
*.c text
*.cc text
*.coffee text
*.cpp text
*.css text
*.go text
*.h text
*.hh text
*.hpp text
*.html text
*.inc text
*.ini text
*.java text
*.js text
*.jsx text
*.less text
*.php text
*.proto text
*.py text
*.rb text
*.sass text
*.sass text
*.scss text
*.sh text eol=lf
*.sql text
*.styl text
*.ts text
*.tsx text
*.vue text
*.xml text
*.xhtml text

# DOCKER
*.dockerignore text
Dockerfile text
# COMPILED FILES
*.dll binary
*.dylib binary
*.exe binary
*.pyc binary
*.so binary

# DOCUMENTATION
*.markdown text
*.md text
*.mdwn text
*.mdown text
*.mkd text
*.mkdn text
*.mdtxt text
*.mdtext text
*.txt text
AUTHORS text
CHANGELOG text
CHANGES text
CONTRIBUTING text
COPYING text
copyright text
*COPYRIGHT* text
INSTALL text
license text
LICENSE text
NEWS text
readme text
*README* text
TODO text

# TEMPLATES
*.ejs text
*.haml text
*.jade text
*.tmpl text
*.twig text

# CONFIGS
*.babelrc text
*.bowerrc text
*.cnf text
*.conf text
*.config text
.editorconfig text
.gitattributes text
.gitconfig text
.gitignore text
.htaccess text
*.conf text
*.config text
*.json text
*.lock text
Procfile text
*.toml text
*.yaml text
*.yml text
Makefile text
makefile text

# LINTERS
.csslintrc text
.eslintrc text
.eslintignore text
.htmlhintrc text
.jscsrc text
.jshintrc text
.jshintignore text
.stylelintrc text
.stylelignore text

# GRAPHICS
*.ai binary
*.bmp binary
*.eps binary
*.gif binary
*.heic binary
*.ico binary
*.jng binary
*.jp2 binary
*.jpg binary
*.jpeg binary
*.jpx binary
*.jxr binary
*.jpg binary
*.pdf binary
*.png binary
*.psb binary
*.psd binary
*.svg text
*.svgz binary
*.tif binary
*.tiff binary
*.wbmp binary
*.webp binary

# AUDIO
*.kar binary
*.aac binary
*.flac binary
*.m4a binary
*.mid binary
*.midi binary
*.mp3 binary
*.mp4a binary
*.mpga binary
*.oga binary
*.ogg binary
*.ra binary
*.wav binary
*.weba binary

# VIDEO
*.3gpp binary
*.3g2 binary
*.3gp binary
*.as binary
*.asf binary
*.asx binary
*.avi binary
*.f4v binary
*.fla binary
*.flv binary
*.m4v binary
*.mng binary
*.mov binary
*.mp4 binary
*.mpeg binary
*.mpg binary
*.ogv binary
*.swc binary
*.qt binary
*.swf binary
*.webm binary

@@ -166,35 +95,8 @@ makefile text
*.zip binary

# FONTS
*.ttf binary
*.eot binary
*.otf binary
*.ttf binary
*.woff binary
*.woff2 binary

# Compiled Object files
*.slo binary
*.lo binary
*.o binary
*.obj binary

# Precompiled Headers
*.gch binary
*.pch binary

# Compiled Dynamic libraries
*.so binary
*.dylib binary
*.dll binary

# Compiled Static libraries
*.lai binary
*.la binary
*.a binary
*.lib binary

# EXECUTABLES
*.exe binary
*.pyc binary
*.out binary

@@ -7,7 +7,7 @@
Messages must be matched by the following regex:

``` js
/^(Revert: )?(Feature|Fix|Docs|Improvement|Config|Examples|Security|Style|Refactor|Performance|Test|Build|CI|Types)(\(.+\))?: .{1,80}/
/^(Revert: )?(Feature|Fix|Docs|Improve|Config|Example|Refactor|Style|Test|Build|CI)(\(.+\))?: .{1,80}/
```

## Commit Message Format
@@ -36,7 +36,7 @@ Docs(changelog): update changelog to beta.5
```

```text
Feat($browser): onUrlChange event (popstate/hashchange/polling)
Feature($browser): onUrlChange event (popstate/hashchange/polling)
Added new event to $browser:
- forward popstate event if available
@@ -89,29 +89,19 @@ If the commit reverts a previous commit, it should begin with `Revert: `, follow

Must be one of the following:

* **Build**: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm, yarn)
* **CI**: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
* **Config**: Configuration changes
* **Docs**: Documentation only changes
* **Examples**: Changes for example code
* **Build**: Changes that affect the build system or external dependencies (example scopes: gulp, npm, yarn)
* **CI**: Changes to CI related configuration files and scripts (example scopes: travis, circle, browserstack)
* **Config**: Changes to other configuration files (example scopes: webpack, babel, docker)
* **Docs**: Documentation only changes (example scopes: readme, changelog)
* **Example**: Changes for example code
* **Feature**: A new feature
* **Fix**: A bug fix
* **Improvement**: Backwards-compatible enhancement changes
* **Performance**: A code change that improves performance
* **Improve**: Backwards-compatible enhancement changes
* **Refactor**: A code change that neither fixes a bug nor adds a feature
* **Security**: A security issue fix
* **Style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
* **Test**: Adding missing tests or correcting existing tests
* **Types**: Typescript related changes
* **Test**: Changes for testing code

If the prefix is in the below types, it will appear in the changelog. However if there is any [BREAKING CHANGE](#footer), the commit will always appear in the changelog.

* `Examples`
* `Feature`
* `Fix`
* `Perf`
* `Improvement`
* `Security`
If the prefix is `Feature` or `Fix`, it will appear in the changelog. However if there is any [BREAKING CHANGE](#footer), the commit will always appear in the changelog.

### Scope

@@ -26,7 +26,7 @@ ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.
## Minimal reproduction of the problem with instructions

<!--
For bug reports please provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem via https://stackblitz.com, github repo or similar.
For bug reports please provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem via github repo or similar tools.
-->

## What is the motivation / use case for changing the behavior?
@@ -0,0 +1,33 @@
<!--
Please make sure to read the Pull Request Guidelines:
https://github.com/Armour/Automatic-Image-Colorization/blob/master/.github/CONTRIBUTING.md#submitting-a-pull-request
-->

<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->

**What kind of change does this PR introduce?** (check at least one)

- [ ] Bugfix
- [ ] Feature
- [ ] Code style update
- [ ] Refactor
- [ ] Build-related changes
- [ ] Other, please describe:

**Does this PR introduce a breaking change?** (check one)

- [ ] Yes
- [ ] No

If yes, please describe the impact and migration path for existing applications:

**The PR fulfills these requirements:**

- [ ] When resolving a specific issue, it's referenced in the PR's title (e.g. `Closes #xxx[,#xxx]`, where "xxx" is the issue number)

If adding a **new feature**, the PR's description includes:

- [ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

**Other information:**
@@ -13,7 +13,6 @@ __pycache__/

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
@@ -29,6 +28,7 @@ wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
@@ -50,6 +50,7 @@ nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
@@ -58,6 +59,7 @@ coverage.xml
# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
@@ -84,13 +86,14 @@ celerybeat-schedule
# SageMath parsed files
*.sage.py

# dotenv
# Environments
.env

# virtualenv
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
@@ -106,7 +109,11 @@ ENV/
.mypy_cache/

# .vscode
.vscode/
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# .idea
.idea/
@@ -3,10 +3,9 @@

"""The utility functions for training and testing."""

__author__ = 'Chong Guo'
__author__ = 'Chong Guo <armourcy@email.com>'
__copyright__ = 'Copyright 2018, Chong Guo'
__license__ = 'GPL'
__email__ = 'armourcy@email.com'

import os

@@ -3,10 +3,9 @@

"""Config file that contains all config varibles."""

__author__ = 'Chong Guo'
__author__ = 'Chong Guo <armourcy@email.com>'
__copyright__ = 'Copyright 2018, Chong Guo'
__license__ = 'GPL'
__email__ = 'armourcy@email.com'

import numpy as np
import tensorflow as tf

0 comments on commit 26cce85

Please sign in to comment.
You can’t perform that action at this time.