Dataset Viewer
Auto-converted to Parquet Duplicate
repo
stringclasses
13 values
version
stringclasses
48 values
file_path
stringlengths
6
175
content
stringlengths
10
4.56M
content_hash
stringlengths
12
12
line_count
int64
1
140k
char_count
int64
10
4.56M
Lightning-AI/pytorch-lightning
2.3.2
lightning/__about__.py
# Copyright The Lightning AI team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
1a00560b414f
41
1,285
Lightning-AI/pytorch-lightning
2.3.2
lightning/__init__.py
"""Root package info.""" import logging import sys # explicitly don't set root logger's propagation and leave this to subpackages to manage _logger = logging.getLogger(__name__) _logger.setLevel(logging.INFO) _console = logging.StreamHandler() _console.setLevel(logging.INFO) formatter = logging.Formatter("%(levelna...
6803aea5e2b8
50
1,511
Lightning-AI/pytorch-lightning
2.3.2
lightning/__main__.py
from lightning.app.cli.lightning_cli import main if __name__ == "__main__": main()
909f7e252741
5
88
Lightning-AI/pytorch-lightning
2.3.2
lightning/__setup__.py
import glob import os.path from importlib.util import module_from_spec, spec_from_file_location from pathlib import Path from types import ModuleType from typing import Any, Dict from setuptools import find_packages _PROJECT_ROOT = "." _SOURCE_ROOT = os.path.join(_PROJECT_ROOT, "src") _PACKAGE_ROOT = os.path.join(_SO...
e9c8591efae7
148
6,830
Lightning-AI/pytorch-lightning
2.3.2
lightning/__version__.py
import os _PACKAGE_ROOT = os.path.dirname(__file__) _VERSION_PATH = os.path.join(os.path.dirname(_PACKAGE_ROOT), "version.info") if not os.path.exists(_VERSION_PATH): # relevant for `bdist_wheel` _VERSION_PATH = os.path.join(_PACKAGE_ROOT, "version.info") with open(_VERSION_PATH, encoding="utf-8") as fo: v...
1ccf9b9f029c
10
355
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/CHANGELOG.md
# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ## [2.2.0] - 2024-02-09 ## Changed - Renames the `lightning` cli to `lightning_app` ([#19440](https://github.com/Lightning-AI/pytorch-lightning/pull/19440...
b716a29c0851
609
37,365
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/__init__.py
"""Root package info.""" import logging import os from lightning_utilities.core.imports import module_available, package_available _root_logger = logging.getLogger() _logger = logging.getLogger(__name__) _logger.setLevel(logging.INFO) _console = logging.StreamHandler() _console.setLevel(logging.INFO) formatter = l...
02c287fe8cda
52
1,989
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/api/__init__.py
from lightning.app.api.http_methods import Delete, Get, Post, Put __all__ = [ "Delete", "Get", "Post", "Put", ]
ca9425eaa00a
9
129
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/api/http_methods.py
# Copyright The Lightning AI team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
8349d6bf5283
259
8,715
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/api/request_types.py
# Copyright The Lightning AI team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
013b5e3e0114
57
1,250
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/cmd_apps.py
# Copyright The Lightning AI team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
98f42954c2e7
147
5,745
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/cmd_init.py
# Copyright The Lightning AI team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
ece8c97a2e06
168
5,286
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/cmd_install.py
# Copyright The Lightning AI team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
3d2b4b6311a6
658
21,201
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/cmd_pl_init.py
# Copyright The Lightning AI team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
90aca69adbf4
188
6,740
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/cmd_react_ui_init.py
# Copyright The Lightning AI team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
5ead2866bf46
132
4,342
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/core.py
# Copyright The Lightning AI team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
ff82620fbc33
28
790
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/lightning_cli.py
# Copyright The Lightning AI team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
6baba330467b
504
16,858
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/lightning_cli_delete.py
# Copyright The Lightning AI team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
0002f6debb2c
125
4,323
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/lightning_cli_launch.py
# Copyright The Lightning AI team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
626d03888fa4
131
5,063
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/lightning_cli_list.py
# Copyright The Lightning AI team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
9c30dd7d0fae
33
955
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/app-template/README.md
# placeholdername app This ⚡ [Lightning app](https://lightning.ai/) ⚡ was generated automatically with: ```bash lightning_app init app placeholdername ``` ## To run placeholdername First, install placeholdername (warning: this app has not been officially approved on the lightning gallery): ```bash lightning_app in...
014477a6cf55
38
814
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/app-template/app.py
from lightning.app import LightningApp, LightningFlow from placeholdername import ComponentA, ComponentB class LitApp(LightningFlow): def __init__(self) -> None: super().__init__() self.component_a = ComponentA() self.component_b = ComponentB() def run(self): self.component_a....
2cc3ab252f2d
17
388
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/app-template/setup.py
#!/usr/bin/env python from setuptools import find_packages, setup setup( name="placeholdername", version="0.0.0", description="⚡ Lightning app ⚡ generated with command: lightning init app", author="", author_email="", # REPLACE WITH YOUR OWN GITHUB PROJECT LINK url="https://github.com/Ligh...
e7cc92c3d5b1
16
411
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/app-template/placeholdername/__init__.py
from placeholdername.components.component_a import ComponentA from placeholdername.components.component_b import ComponentB __all__ = ["ComponentA", "ComponentB"]
84d531fbc8aa
5
164
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/app-template/placeholdername/components/component_a/__init__.py
from placeholdername.components.component_a.component_a import ComponentA __all__ = ["ComponentA"]
b47bcc26781a
4
100
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/app-template/placeholdername/components/component_a/component_a.py
from lightning.app import LightningFlow class ComponentA(LightningFlow): def run(self): print("hello from component A")
9bf0812496d7
7
134
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/app-template/placeholdername/components/component_b/__init__.py
from placeholdername.components.component_b.component_a import ComponentB __all__ = ["ComponentB"]
c1d9c3d225f8
4
100
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/app-template/placeholdername/components/component_b/component_a.py
from lightning.app import LightningFlow class ComponentB(LightningFlow): def run(self): print("hello from component B")
9733bcb7d7a7
7
134
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/commands/app_commands.py
# Copyright The Lightning AI team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
f1c88db95860
136
5,051
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/commands/cd.py
# Copyright The Lightning AI team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
fe3c9251f499
118
3,788
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/commands/cp.py
# Copyright The Lightning AI team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
0f4135e911e4
351
12,590
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/commands/logs.py
# Copyright The Lightning AI team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
cac02c8c02dc
123
4,290
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/commands/ls.py
# Copyright The Lightning AI team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
b9cfa4871ebb
269
9,486
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/commands/pwd.py
# Copyright The Lightning AI team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
eaa2f4d1a09b
54
1,488
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/commands/rm.py
# Copyright The Lightning AI team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
fa1f44a20816
102
3,749
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/component-template/README.md
# placeholdername component This ⚡ [Lightning component](https://lightning.ai/) ⚡ was generated automatically with: ```bash lightning_app init component placeholdername ``` ## To run placeholdername First, install placeholdername (warning: this component has not been officially approved on the lightning gallery): ...
0cd304e43ea0
36
863
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/component-template/app.py
from lightning.app import LightningApp, LightningFlow from placeholdername import TemplateComponent class LitApp(LightningFlow): def __init__(self) -> None: super().__init__() self.placeholdername = TemplateComponent() def run(self): print("this is a simple Lightning app to verify you...
26eba908f1af
16
423
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/component-template/setup.py
#!/usr/bin/env python from setuptools import find_packages, setup setup( name="placeholdername", version="0.0.0", description="⚡ Lightning component ⚡ generated with command: lightning_app init component", author="", author_email="", # REPLACE WITH YOUR OWN GITHUB PROJECT LINK url="https:/...
8032d2fbcd56
16
433
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/component-template/placeholdername/__init__.py
from placeholdername.component import TemplateComponent __all__ = ["TemplateComponent"]
c10a5cb925dc
4
89
Lightning-AI/pytorch-lightning
2.3.2
lightning/app/cli/component-template/placeholdername/component.py
from lightning.app import LightningWork class TemplateComponent(LightningWork): def __init__(self) -> None: super().__init__() self.value = 0 def run(self): self.value += 1 print("welcome to your work component") print("this is running inside a work")
9330739a4bb3
13
303
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
13