Dataset Viewer
Auto-converted to Parquet Duplicate
index_id
int64
0
2.16k
repo
stringclasses
65 values
file
stringlengths
48
153
content
stringlengths
4
919k
0
streamlit_public_repos
/content/streamlit_public_repos/streamlit/.pre-commit-config.yaml
# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025) # # 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 writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # Pre-commit configuration file, # when Streamlit's pre-commit detects that one of the linters has failed, # it automatically lints the files and does not allow the commit to pass. # Please review the changes after lint has failed and commit them again, # the second commit should pass, # because the files were linted after trying to do the first commit. repos: - repo: https://github.com/astral-sh/ruff-pre-commit # We fix ruff to a version to be in sync with the dev-requirements: rev: v0.14.5 hooks: # Run the linter. - id: ruff args: [--fix] files: \.py$|\.pyi$ # Run the formatter. - id: ruff-format files: \.py$|\.pyi$ - repo: local hooks: # Script ./scripts/run_in_subdirectory.py was used to work around a # known problem with hooks in subdirectories when pass_filenames option # is set to true # See: https://github.com/pre-commit/pre-commit/issues/1417 - id: prettier-app name: Prettier App # NOTE: This hook currently does not work on Windows due to "yarn" not being an executable and win32api.CreateProcess # turning `subprocess.run(["yarn", "prettier", "--write"])` into a call to `yarn.exe prettier --write` which does not exist entry: ./scripts/run_in_subdirectory.py frontend/app yarn run format files: ^frontend/app/.*\.(js|jsx|ts|tsx)$ exclude: /vendor/ language: node pass_filenames: true - id: prettier-lib name: Prettier Lib # NOTE: This hook currently does not work on Windows due to "yarn" not being an executable and win32api.CreateProcess # turning `subprocess.run(["yarn", "prettier", "--write"])` into a call to `yarn.exe prettier --write` which does not exist entry: ./scripts/run_in_subdirectory.py frontend/lib yarn run format files: ^frontend/lib/.*\.(js|jsx|ts|tsx)$ exclude: /vendor/ language: node pass_filenames: true - id: prettier-connection name: Prettier Connection # NOTE: This hook currently does not work on Windows due to "yarn" not being an executable and win32api.CreateProcess # turning `subprocess.run(["yarn", "prettier", "--write"])` into a call to `yarn.exe prettier --write` which does not exist entry: ./scripts/run_in_subdirectory.py frontend/connection yarn run format files: ^frontend/connection/.*\.(js|jsx|ts|tsx)$ exclude: /vendor/ language: node pass_filenames: true - id: prettier-utils name: Prettier Utils # NOTE: This hook currently does not work on Windows due to "yarn" not being an executable and win32api.CreateProcess # turning `subprocess.run(["yarn", "prettier", "--write"])` into a call to `yarn.exe prettier --write` which does not exist entry: ./scripts/run_in_subdirectory.py frontend/utils yarn run format files: ^frontend/utils/.*\.(js|jsx|ts|tsx)$ exclude: /vendor/ language: node pass_filenames: true - id: prettier-yaml name: Prettier-yaml # NOTE: This hook currently does not work on Windows due to "yarn" not being an executable and win32api.CreateProcess # turning `subprocess.run(["yarn", "prettier", "--write"])` into a call to `yarn.exe prettier --write` which does not exist # We perform this in the app directory because prettier is installed there. TODO: Break this out to a new package entry: ./scripts/run_in_subdirectory.py frontend/app yarn prettier "../../.github/**/*.{yml,yaml}" --write files: ^.github/.*\.(yml|yaml)$ language: node pass_filenames: false - id: prettier-vscode-devcontainer-json name: Prettier VSCode/devcontainer JSON # NOTE: This hook currently does not work on Windows due to "yarn" not being an executable and win32api.CreateProcess # turning `subprocess.run(["yarn", "prettier", "--write"])` into a call to `yarn.exe prettier --write` which does not exist # We perform this in the app directory because prettier is installed there. TODO: Break this out to a new package entry: ./scripts/run_in_subdirectory.py frontend/app yarn prettier "../../.vscode/*.json" "../../.devcontainer/*.json" --write --config ../.prettierrc files: ^(.vscode/.*\.json|\.devcontainer/.*\.json)$ language: node pass_filenames: false - id: license-headers name: Checks license headers entry: ./scripts/check_license_headers.py language: system always_run: true pass_filenames: false - id: generate-agent-rules name: Check generated agent rules entry: ./scripts/generate_agent_rules.py language: system pass_filenames: false files: | (?x) (^|.*/)AGENTS\.md$ |^scripts/generate_agent_rules\.py$ |^Makefile$ - id: vscode-devcontainer-sync name: Check VSCode/devcontainer sync entry: ./scripts/sync_vscode_devcontainer.py --check language: system files: ^(.vscode/(settings|extensions)\.json|\.devcontainer/devcontainer\.json)$ pass_filenames: false - repo: https://github.com/Lucas-C/pre-commit-hooks rev: v1.5.5 hooks: - id: insert-license name: Add license for all (S)CSS/JS(X)/TS(X) files files: \.(s?css|jsx?|tsx?)$ args: - --comment-style - "/**| *| */" - --license-filepath - scripts/assets/license-template.txt - --fuzzy-match-generates-todo exclude: | (?x) /vendor/ |^vendor/ |^component-lib/declarations/apache-arrow |^frontend/app/src/assets/css/variables\.scss |^lib/tests/streamlit/elements/test_html\.js |^lib/tests/streamlit/elements/test_html\.css |^e2e_playwright/test_assets/ - id: insert-license name: Add license for all Proto files files: \.proto$ args: - --comment-style - "/**!| *| */" - --license-filepath - scripts/assets/license-template.txt - --fuzzy-match-generates-todo exclude: | (?x) /vendor/ |^vendor/ |^component-lib/declarations/apache-arrow |^proto/streamlit/proto/openmetrics_data_model\.proto - id: insert-license name: Add license for all shell files files: \.sh$ args: - --comment-style - "|#|" - --license-filepath - scripts/assets/license-template.txt - --fuzzy-match-generates-todo exclude: | (?x) /vendor/ |^vendor/ |^component-lib/declarations/apache-arrow - id: insert-license name: Add license for all Python files files: \.py$|\.pyi$ args: - --comment-style - "|#|" - --license-filepath - scripts/assets/license-template.txt - --fuzzy-match-generates-todo exclude: | (?x) /vendor/ |^vendor/ |^component-lib/declarations/apache-arrow - id: insert-license name: Add license for all HTML files files: \.html$ args: - --comment-style - "<!--||-->" - --license-filepath - scripts/assets/license-template.txt - --fuzzy-match-generates-todo exclude: | (?x) /vendor/ |^vendor/ |^component-lib/declarations/apache-arrow - repo: https://gitlab.com/bmares/check-json5 rev: v1.0.0 hooks: # Check JSON files that are allowed to have comments - id: check-json5 # Note that this should be the same as the check-json hook's exclude # property files: | (?x) ^\.vscode/.*\.json$ |tsconfig.*\.json$ |.*tsconfig\.json$ - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 hooks: - id: trailing-whitespace exclude: | (?x) ^frontend/app/src/assets/ |^NOTICES$ |^proto/streamlit/proto/openmetrics_data_model.proto$ |\.snap$ - id: check-added-large-files - id: check-json # Note that this should be the same as the check-json5 hook's files # property exclude: | (?x) ^\.vscode/.*\.json$ |tsconfig.*\.json$ |.*tsconfig\.json$ - id: check-toml - id: check-yaml exclude: lib/conda-recipe/meta.yaml - id: check-symlinks - id: check-case-conflict - id: check-merge-conflict - id: fix-byte-order-marker - id: end-of-file-fixer exclude: | (?x) /vendor/ |^NOTICES$ |^e2e_playwright/test_assets/ |^LICENSE$ - id: mixed-line-ending args: [--fix=lf] exclude: | (?x) ^NOTICES$
1
streamlit_public_repos
/content/streamlit_public_repos/streamlit/CODE_OF_CONDUCT.md
# Contributor Covenant Code of Conduct ## Our Pledge In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. ## Our Standards Examples of behavior that contributes to creating a positive environment include: - Using welcoming and inclusive language - Being respectful of differing viewpoints and experiences - Gracefully accepting constructive criticism - Focusing on what is best for the community - Showing empathy towards other community members Examples of unacceptable behavior by participants include: - The use of sexualized language or imagery and unwelcome sexual attention or advances - Trolling, insulting/derogatory comments, and personal or political attacks - Public or private harassment - Publishing others' private information, such as a physical or electronic address, without explicit permission - Other conduct which could reasonably be considered inappropriate in a professional setting ## Our Responsibilities Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. ## Scope This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. ## Enforcement Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at hello@streamlit.io. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. ## Attribution This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html [homepage]: https://www.contributor-covenant.org For answers to common questions about this code of conduct, see https://www.contributor-covenant.org/faq
2
streamlit_public_repos
/content/streamlit_public_repos/streamlit/mypy.ini
[mypy] python_version = 3.10 cache_dir = .mypy_cache incremental = true files = lib/streamlit/, lib/tests/streamlit/typing/, scripts/, e2e_playwright/ exclude = (?x)( # The compilation error test file cannot breaks mypy # because it the syntax error. ^e2e_playwright/compilation_error_dialog\.py$ ) # strict mode settings: warn_unused_configs = true disallow_any_generics = true disallow_subclassing_any = true disallow_untyped_calls = true disallow_untyped_defs = true disallow_incomplete_defs = true disallow_untyped_decorators = true check_untyped_defs = true warn_redundant_casts = true warn_unused_ignores = true warn_return_any = true no_implicit_reexport = true strict_equality = true extra_checks = true # other settings: allow_redefinition = false no_implicit_optional = true strict_optional = true warn_unreachable = true warn_no_return = true scripts_are_modules = true namespace_packages = true show_error_context = true show_column_numbers = true show_error_codes = true pretty = true [mypy-e2e_playwright.*] # We don't want to enforce return types for test functions disallow_incomplete_defs = false disallow_untyped_calls = false disallow_untyped_defs = false [mypy-tests.*] # Ignore all error in unit tests ignore_errors = true [mypy-tests.streamlit.typing.*] # Explicitly enable type checking for the typing tests ignore_errors = false [mypy-shared.*] ignore_missing_imports = true # We need to set ignore_missing_imports to true for all optional dependencies, [mypy-vega_datasets.*] ignore_missing_imports = true [mypy-sympy.*] ignore_missing_imports = true [mypy-plotly.*] ignore_missing_imports = true [mypy-pydeck.*] ignore_missing_imports = true [mypy-pyarrow.*] ignore_missing_imports = true [mypy-graphviz.*] ignore_missing_imports = true [mypy-authlib.*] ignore_missing_imports = true [mypy-uvloop.*] ignore_missing_imports = true
3
streamlit_public_repos
/content/streamlit_public_repos/streamlit/NOTICES
"THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORT(...TRUNCATED)
4
streamlit_public_repos
/content/streamlit_public_repos/streamlit/README.md
"<br>\n\n<img src=\"https://user-images.githubusercontent.com/7164864/217935870-c0bc60a3-6fc0-4047-b(...TRUNCATED)
5
streamlit_public_repos
/content/streamlit_public_repos/streamlit/.ruff.toml
"# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)\n#\n# Licensed under the Apac(...TRUNCATED)
6
streamlit_public_repos
/content/streamlit_public_repos/streamlit/SECURITY.md
"# Security Policy\n\n## Supported Versions\n\n| Version | Supported |\n| --------- | --------- |\(...TRUNCATED)
7
streamlit_public_repos
/content/streamlit_public_repos/streamlit/CLAUDE.md
@./AGENTS.md
8
streamlit_public_repos
/content/streamlit_public_repos/streamlit/.editorconfig
"# https://editorconfig.org/\n\nroot = true\n\n[*]\nindent_style = space\nindent_size = 2\ninsert_fi(...TRUNCATED)
9
streamlit_public_repos
/content/streamlit_public_repos/streamlit/.nvmrc
v24
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
5