<commit_before># pylint: disable=E1120, C0103
from __future__ import absolute_import
from django.conf.urls import url
from django.views.generic import TemplateView
from games.views import pages as views


urlpatterns = [
    url(r'^$',
        views.GameList.as_view(),
        name='game_list'),
    url(r'^year/(\d+)/?$',
        views.GameListByYear.as_view(),
        name='games_by_year'),
    url(r'^genre/([\w-]+)/?$',
        views.GameListByGenre.as_view(),
        name='games_by_genre'),
    url(r'^by/([\w-]+)/?$',
        views.GameListByCompany.as_view(),
        name='games_by_company'),
    url(r'^platform/(?P<slug>[\w\-]+)/?$',
        views.GameListByPlatform.as_view(),
        name="games_by_plaform"),
    url(r'^publish/(?P<id>\d+)$',
        views.publish_game,
        name='game-publish'),
    url(r'^add-game/$',
        views.submit_game,
        name='game-submit'),
    url(r'^game-submitted',
        TemplateView.as_view(template_name='games/submitted.html'),
        name="game-submitted"),


    url('^game-issue',
        views.submit_issue,
        name='game-submit-issue'),
    url(r'banner/(?P<slug>[\w\-]+).jpg',
        views.get_banner,
        name='get_banner'),
    url(r'icon/(?P<slug>[\w\-]+).png',
        views.get_icon,
        name='get_icon'),
    url(r'install/(?P<id>[\d]+)/view$',
        views.view_installer,
        name='view_installer'),

    # Deprecated! Remove after 0.5.0 release!
    url(r'install/(?P<slug>[\w\-]+)/$',
        views.get_installers,
        name='get_installers'),

    url(r'(?P<slug>[\w\-]+)/suggest-changes/?$',
        views.edit_game,
        name='game-edit'),
    url(r'^(?P<slug>[\w\-]+)/changes-submitted',
        views.changes_submitted,
        name='game-submitted-changes'),
    url(r'(?P<slug>[\w\-]+)/installer/new$',
        views.new_installer,
        name="new_installer"),
    url(r'(?P<slug>[\w\-]+)/installer/edit/?$',
        views.edit_installer,
        name='edit_installer'),
    url(r'(?P<slug>[\w\-]+)/installer/delete$',
        views.delete_installer,
        name='delete_installer'),
    url(r'(?P<slug>[\w\-]+)/installer/fork$',
        views.fork_installer,
        name='fork_installer'),
    url(r'(?P<slug>[\w\-]+)/installer/publish/?$',
        views.publish_installer,
        name='publish_installer'),
    url(r'(?P<slug>[\w\-]+)/installer/complete/?$',
        views.installer_complete,
        name='installer_complete'),
    url(r'installer/feed/$',
        views.InstallerFeed(),
        name='installer_feed'),
    url(r'installer/submissions$',
        views.installer_submissions,
        name='installer_submissions'),

    url(r'([\w\-]+)/screenshot/add/',
        views.screenshot_add,
        name='screenshot_add'),
    url(r'screenshot/(?P<id>\d+)/publish/$',
        views.publish_screenshot,
        name='publish_screenshot'),

    url(r'game-for-installer/(?P<slug>[\w\-]+)/',
        views.game_for_installer,
        name='game_for_installer'),
    url(r'(?P<slug>[\w\-]+)/$',
        views.game_detail,
        name="game_detail"),
]
<commit_msg>Fix publish urls<commit_after># pylint: disable=E1120, C0103
from __future__ import absolute_import
from django.conf.urls import url
from django.views.generic import TemplateView
from games.views import pages as views


urlpatterns = [
    url(r'^$',
        views.GameList.as_view(),
        name='game_list'),
    url(r'^year/(\d+)/?$',
        views.GameListByYear.as_view(),
        name='games_by_year'),
    url(r'^genre/([\w-]+)/?$',
        views.GameListByGenre.as_view(),
        name='games_by_genre'),
    url(r'^by/([\w-]+)/?$',
        views.GameListByCompany.as_view(),
        name='games_by_company'),
    url(r'^platform/(?P<slug>[\w\-]+)/?$',
        views.GameListByPlatform.as_view(),
        name="games_by_plaform"),
    url(r'^publish/(?P<game_id>\d+)$',
        views.publish_game,
        name='game-publish'),
    url(r'^add-game/$',
        views.submit_game,
        name='game-submit'),
    url(r'^game-submitted',
        TemplateView.as_view(template_name='games/submitted.html'),
        name="game-submitted"),


    url('^game-issue',
        views.submit_issue,
        name='game-submit-issue'),
    url(r'banner/(?P<slug>[\w\-]+).jpg',
        views.get_banner,
        name='get_banner'),
    url(r'icon/(?P<slug>[\w\-]+).png',
        views.get_icon,
        name='get_icon'),
    url(r'install/(?P<id>[\d]+)/view$',
        views.view_installer,
        name='view_installer'),

    # Deprecated! Remove after 0.5.0 release!
    url(r'install/(?P<slug>[\w\-]+)/$',
        views.get_installers,
        name='get_installers'),

    url(r'(?P<slug>[\w\-]+)/suggest-changes/?$',
        views.edit_game,
        name='game-edit'),
    url(r'^(?P<slug>[\w\-]+)/changes-submitted',
        views.changes_submitted,
        name='game-submitted-changes'),
    url(r'(?P<slug>[\w\-]+)/installer/new$',
        views.new_installer,
        name="new_installer"),
    url(r'(?P<slug>[\w\-]+)/installer/edit/?$',
        views.edit_installer,
        name='edit_installer'),
    url(r'(?P<slug>[\w\-]+)/installer/delete$',
        views.delete_installer,
        name='delete_installer'),
    url(r'(?P<slug>[\w\-]+)/installer/fork$',
        views.fork_installer,
        name='fork_installer'),
    url(r'(?P<slug>[\w\-]+)/installer/publish/?$',
        views.publish_installer,
        name='publish_installer'),
    url(r'(?P<slug>[\w\-]+)/installer/complete/?$',
        views.installer_complete,
        name='installer_complete'),
    url(r'installer/feed/$',
        views.InstallerFeed(),
        name='installer_feed'),
    url(r'installer/submissions$',
        views.installer_submissions,
        name='installer_submissions'),

    url(r'([\w\-]+)/screenshot/add/',
        views.screenshot_add,
        name='screenshot_add'),
    url(r'screenshot/(?P<screenshot_id>\d+)/publish/$',
        views.publish_screenshot,
        name='publish_screenshot'),

    url(r'game-for-installer/(?P<slug>[\w\-]+)/',
        views.game_for_installer,
        name='game_for_installer'),
    url(r'(?P<slug>[\w\-]+)/$',
        views.game_detail,
        name="game_detail"),
]

{'fraction_non_alphanumeric': 0.2079638884410769, 'fraction_numerical': 0.0035466709656617767, 'mean_word_length': 2.766848816029144, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2598304', 'n_tokens_mistral': 2286, 'n_tokens_neox': 2233, 'n_words': 220}