internlm/SWE-Fixer-Train-110K huggingface dataset:
Repository: nerfstudio-project/nerfstudio

Issue:
Viewer: controlling the time has no effect.
**Describe the bug**
The `Time` slider in the new viewer (viser) does not change the time of the rendered image.

Furthermore, it is impossible to render dynamic scenes in the new viewer. Unlike the legacy one, there is no per-keyframe time setting.

**To Reproduce**
1. Train a dynamic model (e.g., K-Planes).
2. During training, or afterward with `ns-viewer`, check the viser viewer.
3. At the bottom of the `Control` panel, try to change the `Time` slider.
4. Rendered image does not change.

**Expected behavior**
The updated time should correctly be fed to the network. Maybe a separate issue can be opened for addressing the lack of time controls in the `Render` panel. 


Discussion:

Resolving patch:
diff --git a/nerfstudio/viewer/render_state_machine.py b/nerfstudio/viewer/render_state_machine.py
--- a/nerfstudio/viewer/render_state_machine.py
+++ b/nerfstudio/viewer/render_state_machine.py
@@ -129,7 +129,10 @@ def _render_img(self, camera_state: CameraState):
 
         image_height, image_width = self._calculate_image_res(camera_state.aspect)
 
-        camera = get_camera(camera_state, image_height, image_width)
+        if self.viewer.include_time:
+            camera = get_camera(camera_state, image_height, image_width, self.viewer.control_panel.time)
+        else:
+            camera = get_camera(camera_state, image_height, image_width)
         camera = camera.to(self.viewer.get_model().device)
         assert isinstance(camera, Cameras)
         assert camera is not None, "render called before viewer connected"
diff --git a/nerfstudio/viewer/utils.py b/nerfstudio/viewer/utils.py
--- a/nerfstudio/viewer/utils.py
+++ b/nerfstudio/viewer/utils.py
@@ -42,7 +42,7 @@ class CameraState:
 
 
 def get_camera(
-    camera_state: CameraState, image_height: int, image_width: Optional[Union[int, float]] = None
+    camera_state: CameraState, image_height: int, image_width: Optional[Union[int, float]] = None, time: float = 0.0
 ) -> Cameras:
     """Returns the camera intrinsics matrix and the camera to world homogeneous matrix.
 
@@ -74,7 +74,7 @@ def get_camera(
         cy=pp_h,
         camera_type=camera_state.camera_type,
         camera_to_worlds=camera_state.c2w.to(torch.float32)[None, ...],
-        times=torch.tensor([0.0], dtype=torch.float32),
+        times=torch.tensor([time], dtype=torch.float32),
     )
     return camera
 


Test patch:
Repository: imAsparky/django-cookiecutter

Issue:
[FEAT]:  Add python semantic release
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.

Update release based on a standard set of criteria.



Discussion:

Resolving patch:
diff --git a/setup.py b/setup.py
new file mode 100644
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,42 @@
+# !/usr/bin/env python
+"""Setup for django-cookiecutter."""
+
+from setuptools import find_packages, setup
+
+__version__ = "0.1.0"
+
+setup(
+    name="django-cookiecutter",
+    packages=find_packages(exclude=("tests*", "testing*")),
+    version=__version__,
+    description="A Django project cookiecutter complete with built-in\
+         continuous delivery using GitHub actions. ",
+    author="Mark Sevelj",
+    license="BSD",
+    author_email="mark.sevelj@dunwright.com.au",
+    url="https://github.com/imAsparky/djang-cookiecutter",
+    keywords=[
+        "Django",
+        "cookiecutter",
+        "Python 3",
+        "template",
+
+    ],
+    python_requires=">=3.6",
+    classifiers=[
+        "Development Status :: 2 - Pre-Alpha",
+        "Environment :: Console",
+        "Intended Audience :: Developers",
+        "Natural Language :: English",
+        "License :: OSI Approved :: BSD License",
+        "Programming Language :: Python",
+        "Programming Language :: Python :: 3",
+        "Programming Language :: Python :: 3.6",
+        "Programming Language :: Python :: 3.7",
+        "Programming Language :: Python :: 3.8",
+        "Programming Language :: Python :: 3.9",
+        "Programming Language :: Python :: Implementation :: CPython",
+        "Programming Language :: Python :: Implementation :: PyPy",
+        "Topic :: Software Development",
+    ],
+)


Test patch:
Repository: imAsparky/django-cookiecutter

Issue:
[FEAT]: Add Tox, Pytest and test config
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.



Discussion:

Resolving patch:
diff --git a/docs/source/conf.py b/docs/source/conf.py
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -16,7 +16,7 @@
 import sys
 sys.path.insert(0, os.path.abspath('.'))
 
-
+__version__ = "0.4.0"
 
 # -- Project information -----------------------------------------------------
 


Test patch:
diff --git a/.github/workflows/test_contribution.yaml b/.github/workflows/test_contribution.yaml
new file mode 100644
--- /dev/null
+++ b/.github/workflows/test_contribution.yaml
@@ -0,0 +1,36 @@
+name: Test Contributions
+
+on:
+    pull_request:
+        branches: [main]
+
+    # push:
+    #     branches: [main]
+
+    workflow_dispatch:
+
+jobs:
+    test_contribs:
+        strategy:
+            matrix:
+                python-version: ["3.6", "3.7", "3.8", "3.9"]
+                os: [macos-latest, ubuntu-latest, windows-latest]
+
+        runs-on: ${{ matrix.os }}
+        steps:
+            - uses: actions/checkout@v2
+              with:
+                  fetch-depth: 0
+
+            - name: Set up Python ${{ matrix.python-version }}
+              uses: actions/setup-python@v2
+              with:
+                  python-version: ${{ matrix.python-version }}
+
+            - name: Install dependencies
+              run: |
+                  python -m pip install --upgrade pip
+                  pip install tox tox-gh-actions
+
+            - name: Test with tox
+              run: tox
diff --git a/tests/test_fake.py b/tests/test_fake.py
new file mode 100644
--- /dev/null
+++ b/tests/test_fake.py
@@ -0,0 +1,4 @@
+def test_fake_test():
+    """A Fake test"""
+
+    assert 3 == 3
Repository: imAsparky/django-cookiecutter

Issue:
[DOCS]: Create cookiecutter Diataxis framework
**Describe alternatives you've considered**
Would you please share your clear and concise description of any alternative/similar documentation you've considered.



**Additional context**
Would you please share any other context or screenshots about the documentation request here.

https://junction-box.readthedocs.io/en/latest/Document-Framework/index-document-framework.html


Discussion:

Resolving patch:
diff --git a/docs/source/conf.py b/docs/source/conf.py
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -73,7 +73,7 @@
 # This config removes Python Repl + continuation, Bash line prefixes,
 # ipython and qtconsole + continuation, jupyter-console + continuation and preceding line numbers
 copybutton_prompt_text = (
-    r"^\d|^.\d|^\d\d|^\d\d\d|>>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
+    r"^\d{1,4}|^.\d{1,4}|>>> |\s{2,6}|\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}:"
 )
 copybutton_prompt_is_regexp = True
 


Test patch:
Repository: imAsparky/django-cookiecutter

Issue:
[DOCS]: Add django readthedocs config file and badge.
**Describe alternatives you've considered**
Would you please share your clear and concise description of any alternative/similar documentation you've considered.



**Additional context**
Would you please share any other context or screenshots about the documentation request here.



Discussion:

Resolving patch:
diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py
--- a/hooks/post_gen_project.py
+++ b/hooks/post_gen_project.py
@@ -161,6 +161,9 @@ def remove_file(filepath):
     ):
         remove_file("docs/source/code-of-conduct.rst")
 
+    if "{{ cookiecutter.use_readthedocs }}" == "n":
+        remove_file(".readthedocs.yaml")
+
     # if "{{ cookiecutter.automatic_set_up_git_and_initial_commit }}" == "y":
     #     init_git()
     #     git_add_and_commit_initial()


Test patch:
diff --git a/tests/test_bake_django.py b/tests/test_bake_django.py
--- a/tests/test_bake_django.py
+++ b/tests/test_bake_django.py
@@ -238,6 +238,50 @@ def test_baked_django_docs_how_to_index(cookies):
     assert "See below for a list of How-To for Django Boilerplate." in index_file
 
 
+def test_baked_django_with_read_the_docs(cookies):
+    """Test Django readthedocs config has been generated correctly."""
+    default_django = cookies.bake()
+
+    assert ".readthedocs.yaml" in os.listdir((default_django.project_path))
+
+    rtd_path = default_django.project_path / "README.rst"
+    rtd_file = rtd_path.read_text().splitlines()
+
+    assert (
+        ".. image:: https://readthedocs.org/projects/django-boilerplate/badge/?version=latest"
+        in rtd_file
+    )
+    assert (
+        "   :target: https://django-boilerplate.readthedocs.io/en/latest/?badge=latest"
+        in rtd_file
+    )
+    assert "   :alt: Documentation Status" in rtd_file
+
+
+def test_baked_django_without_read_the_docs(cookies):
+    """Test Django readthedocs config has not been generated correctly."""
+    non_default_django = cookies.bake(
+        extra_context={
+            "use_readthedocs": "n",
+        }
+    )
+
+    assert ".readthedocs.yaml" not in os.listdir((non_default_django.project_path))
+
+    rtd_path = non_default_django.project_path / "README.rst"
+    rtd_file = rtd_path.read_text().splitlines()
+
+    assert (
+        ".. image:: https://readthedocs.org/projects/django-boilerplate/badge/?version=latest"
+        not in rtd_file
+    )
+    assert (
+        "   :target: https://django-boilerplate.readthedocs.io/en/latest/?badge=latest"
+        not in rtd_file
+    )
+    assert "   :alt: Documentation Status" not in rtd_file
+
+
 def test_baked_django_docs_references_index(cookies):
     """Test Django docs reference index template file has been generated correctly."""
     default_django = cookies.bake()
Repository: imAsparky/django-cookiecutter

Issue:
[FEAT]: Add Pyup to the Django project.
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.



Discussion:

Resolving patch:
diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py
--- a/hooks/post_gen_project.py
+++ b/hooks/post_gen_project.py
@@ -179,3 +179,6 @@ def git_configure_custom_commit_message():
 
     if "{{ cookiecutter.create_repo_auto_test_workflow }}" == "n":
         remove_file(".github/workflows/test_contribution.yaml")
+
+    if "{{ cookiecutter.use_pyup_io }}" == "n":
+        remove_file(".pyup.yaml")


Test patch:
diff --git a/tests/test_bake_django.py b/tests/test_bake_django.py
--- a/tests/test_bake_django.py
+++ b/tests/test_bake_django.py
@@ -565,6 +565,51 @@ def test_baked_django_readme_without_precommit_badge(cookies):
     assert "   :alt: pre-commit" not in readme_file
 
 
+def test_baked_django_with_pyup_io(cookies):
+    """Test Django pyup.io file has been generated correctly."""
+    default_django = cookies.bake()
+
+    assert ".pyup.yaml" in os.listdir(default_django.project_path)
+
+    pyup_path = default_django.project_path / ".pyup.yaml"
+    pyup_file = pyup_path.read_text().splitlines()
+
+    assert '  - "imAsparky""' in pyup_file
+
+    readme_path = default_django.project_path / "README.rst"
+    readme_file = readme_path.read_text().splitlines()
+
+    assert (
+        ".. image:: https://pyup.io/repos/github/imAsparky/django-boilerplate/shield.svg"
+        in readme_file
+    )
+    assert (
+        "   :target: https://pyup.io/repos/github/imAsparky/django-boilerplate/"
+        in readme_file
+    )
+    assert "   :alt: Updates" in readme_file
+
+
+def test_baked_django_without_pyup_io(cookies):
+    """Test Django pyup.io file has not been generated."""
+    non_default_django = cookies.bake(extra_context={"use_pyup_io": "n"})
+
+    assert ".pyup.yaml" not in os.listdir(non_default_django.project_path)
+
+    readme_path = non_default_django.project_path / "README.rst"
+    readme_file = readme_path.read_text().splitlines()
+
+    assert (
+        ".. image:: https://pyup.io/repos/github/imAsparky/django-boilerplate/shield.svg"
+        not in readme_file
+    )
+    assert (
+        "   :target: https://pyup.io/repos/github/imAsparky/django-boilerplate/"
+        not in readme_file
+    )
+    assert "   :alt: Updates" not in readme_file
+
+
 def test_baked_django_with_read_the_docs(cookies):
     """Test Django readthedocs config has been generated correctly."""
     default_django = cookies.bake()
Repository: imAsparky/django-cookiecutter

Issue:
[BUG]: Fix pyup.yaml extension. Should be .yml
**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**

-   imAsparky cookiecutter-pypackage version:
-   Python version:
-   OS: [e.g. iOS]
-   Browser [e.g. chrome, safari]
-   Version [e.g. 22]

**Smartphone (please complete the following information):**

-   Device: [e.g. iPhone6]
-   OS: [e.g. iOS8.1]
-   Browser [e.g. stock browser, safari]
-   Version [e.g. 22]

**Additional context**
Add any other context about the problem here.



Discussion:

Resolving patch:
diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py
--- a/hooks/post_gen_project.py
+++ b/hooks/post_gen_project.py
@@ -16,7 +16,7 @@
 
 REMOVE_FILES = [
     '{% if cookiecutter.use_pyup_io == "n" %} \
-        .pyup.yaml  {% endif %}',
+        .pyup.yml  {% endif %}',
     '{% if cookiecutter.include_sphinx_docs == "n" %} \
         docs {% endif %}',
     '{% if cookiecutter.use_readthedocs == "n" %} \
diff --git a/{{cookiecutter.git_project_name}}/{{cookiecutter.project_slug}}/settings.py b/{{cookiecutter.git_project_name}}/{{cookiecutter.project_slug}}/settings.py
--- a/{{cookiecutter.git_project_name}}/{{cookiecutter.project_slug}}/settings.py
+++ b/{{cookiecutter.git_project_name}}/{{cookiecutter.project_slug}}/settings.py
@@ -50,6 +50,7 @@
     "django.middleware.csrf.CsrfViewMiddleware",
     "django.contrib.auth.middleware.AuthenticationMiddleware",
     "django.contrib.messages.middleware.MessageMiddleware",
+    "django.middleware.locale.LocaleMiddleware",
     "django.middleware.clickjacking.XFrameOptionsMiddleware",
 ]
 


Test patch:
diff --git a/tests/test_bake_django.py b/tests/test_bake_django.py
--- a/tests/test_bake_django.py
+++ b/tests/test_bake_django.py
@@ -569,9 +569,9 @@ def test_baked_django_with_pyup_io(cookies):
     """Test Django pyup.io file has been generated correctly."""
     default_django = cookies.bake()
 
-    assert ".pyup.yaml" in os.listdir(default_django.project_path)
+    assert ".pyup.yml" in os.listdir(default_django.project_path)
 
-    pyup_path = default_django.project_path / ".pyup.yaml"
+    pyup_path = default_django.project_path / ".pyup.yml"
     pyup_file = pyup_path.read_text().splitlines()
 
     assert "  - imAsparky" in pyup_file
@@ -594,7 +594,7 @@ def test_baked_django_without_pyup_io(cookies):
     """Test Django pyup.io file has not been generated."""
     non_default_django = cookies.bake(extra_context={"use_pyup_io": "n"})
 
-    assert ".pyup.yaml" not in os.listdir(non_default_django.project_path)
+    assert ".pyup.yml" not in os.listdir(non_default_django.project_path)
 
     readme_path = non_default_django.project_path / "README.rst"
     readme_file = readme_path.read_text().splitlines()
Repository: imAsparky/django-cookiecutter

Issue:
[FEAT]: Configure django secret to use an environment variable.
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.



Discussion:

Resolving patch:
diff --git a/{{cookiecutter.git_project_name}}/{{cookiecutter.project_slug}}/settings.py b/{{cookiecutter.git_project_name}}/{{cookiecutter.project_slug}}/settings.py
--- a/{{cookiecutter.git_project_name}}/{{cookiecutter.project_slug}}/settings.py
+++ b/{{cookiecutter.git_project_name}}/{{cookiecutter.project_slug}}/settings.py
@@ -10,6 +10,7 @@
 """
 
 from pathlib import Path
+import os
 
 # Build paths inside the project like this: BASE_DIR / 'subdir'.
 BASE_DIR = Path(__file__).resolve().parent.parent
@@ -19,9 +20,7 @@
 # See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
 
 # SECURITY WARNING: keep the secret key used in production secret!
-SECRET_KEY = (
-    "django-insecure-6bv5dum$%z@3-8&a()3*0b#(^k_@)mty^w!wvjj^9a%58y8zdi"  # nosec
-)
+SECRET_KEY = os.environ("DJANGO_SECRET_KEY")
 
 # SECURITY WARNING: don't run with debug turned on in production!
 DEBUG = "{{cookiecutter.DEBUG}}"


Test patch:
Repository: imAsparky/django-cookiecutter

Issue:
[BUG]: Generated Django has errors.
**Describe the bug**
A clear and concise description of what the bug is.

settings.py line 90 missing ]
README spacings are very cramped.
The tutorials index needs a cookiecutter template for the new project.
urls.py needs import include as well.
post_gen remove print debug

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**

-   imAsparky cookiecutter-pypackage version:
-   Python version:
-   OS: [e.g. iOS]
-   Browser [e.g. chrome, safari]
-   Version [e.g. 22]

**Smartphone (please complete the following information):**

-   Device: [e.g. iPhone6]
-   OS: [e.g. iOS8.1]
-   Browser [e.g. stock browser, safari]
-   Version [e.g. 22]

**Additional context**
Add any other context about the problem here.



Discussion:

Resolving patch:
diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py
--- a/hooks/post_gen_project.py
+++ b/hooks/post_gen_project.py
@@ -82,7 +82,6 @@ def remove_files(filepath):
     for path in filepath:
         path = path.strip()
         if path and os.path.exists(path):
-            print(path)
             if os.path.isdir(path):
                 rmtree(path)
             else:
diff --git a/{{cookiecutter.git_project_name}}/{{cookiecutter.project_slug}}/settings.py b/{{cookiecutter.git_project_name}}/{{cookiecutter.project_slug}}/settings.py
--- a/{{cookiecutter.git_project_name}}/{{cookiecutter.project_slug}}/settings.py
+++ b/{{cookiecutter.git_project_name}}/{{cookiecutter.project_slug}}/settings.py
@@ -87,7 +87,7 @@
 
     # `allauth` specific authentication methods, such as login by e-mail
     'allauth.account.auth_backends.AuthenticationBackend',
-
+]
 {% endif %}
 
 WSGI_APPLICATION = "{{ cookiecutter.project_slug}}.wsgi.application"
diff --git a/{{cookiecutter.git_project_name}}/{{cookiecutter.project_slug}}/urls.py b/{{cookiecutter.git_project_name}}/{{cookiecutter.project_slug}}/urls.py
--- a/{{cookiecutter.git_project_name}}/{{cookiecutter.project_slug}}/urls.py
+++ b/{{cookiecutter.git_project_name}}/{{cookiecutter.project_slug}}/urls.py
@@ -14,7 +14,7 @@
     2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
 """
 from django.contrib import admin
-from django.urls import path
+from django.urls import include, path
 
 urlpatterns = [
     path('admin/', admin.site.urls),


Test patch:
Repository: imAsparky/django-cookiecutter

Issue:
[CHORE]: Update django-debug panels available.
**What is the chore?**

debug toolbar is missing some panels, add all the panels to the list so template_profiler does not overwrite them.



Discussion:

Resolving patch:
diff --git a/{{cookiecutter.git_project_name}}/config/settings/local.py b/{{cookiecutter.git_project_name}}/config/settings/local.py
--- a/{{cookiecutter.git_project_name}}/config/settings/local.py
+++ b/{{cookiecutter.git_project_name}}/config/settings/local.py
@@ -9,6 +9,8 @@
 # https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
 ALLOWED_HOSTS = ["localhost", "0.0.0.0", "127.0.0.1"]
 
+INTERNAL_IPS = ["127.0.0.1", "10.0.2.2"]
+
 
 # django-debug-toolbar
 # https://django-debug-toolbar.readthedocs.io/en/latest/installation.html
@@ -19,14 +21,24 @@
 
 MIDDLEWARE += ["debug_toolbar.middleware.DebugToolbarMiddleware"]  # noqa F405
 
-
-DEBUG_TOOLBAR_CONFIG = {
-    "DISABLE_PANELS": ["debug_toolbar.panels.redirects.RedirectsPanel"],
-}
-
 DEBUG_TOOLBAR_PANELS = [
-    # ...
+    "debug_toolbar.panels.history.HistoryPanel",
+    "debug_toolbar.panels.versions.VersionsPanel",
+    "debug_toolbar.panels.timer.TimerPanel",
+    "debug_toolbar.panels.settings.SettingsPanel",
+    "debug_toolbar.panels.headers.HeadersPanel",
+    "debug_toolbar.panels.request.RequestPanel",
+    "debug_toolbar.panels.sql.SQLPanel",
+    "debug_toolbar.panels.staticfiles.StaticFilesPanel",
+    "debug_toolbar.panels.templates.TemplatesPanel",
+    "debug_toolbar.panels.cache.CachePanel",
+    "debug_toolbar.panels.signals.SignalsPanel",
+    "debug_toolbar.panels.logging.LoggingPanel",
+    "debug_toolbar.panels.redirects.RedirectsPanel",
+    "debug_toolbar.panels.profiling.ProfilingPanel",
     "template_profiler_panel.panels.template.TemplateProfilerPanel",
 ]
 
-INTERNAL_IPS = ["127.0.0.1", "10.0.2.2"]
+DEBUG_TOOLBAR_CONFIG = {
+    "DISABLE_PANELS": ["debug_toolbar.panels.redirects.RedirectsPanel"],
+}


Test patch: