five

infinityofspace/python_codestyles-mixed1-1k

收藏
Hugging Face2023-10-18 更新2024-03-04 收录
下载链接:
https://hf-mirror.com/datasets/infinityofspace/python_codestyles-mixed1-1k
下载链接
链接失效反馈
官方服务:
资源简介:
--- configs: - config_name: default data_files: - split: train path: data/train-* - split: test path: data/test-* dataset_info: features: - name: code dtype: string - name: code_codestyle dtype: int64 - name: style_context dtype: string - name: style_context_codestyle dtype: int64 - name: label dtype: int64 splits: - name: train num_bytes: 3592039734.4341164 num_examples: 307988 - name: test num_bytes: 644731732.1102186 num_examples: 56394 download_size: 0 dataset_size: 4236771466.544335 license: mit tags: - python - code-style - mixed size_categories: - 100K<n<1M --- # Dataset Card for "python_codestyles-mixed1-1k" This dataset contains negative and positive examples with python code of compliance with a code style. A positive example represents compliance with the code style (label is 1). Each example is composed of two components, the first component consists of a code that either conforms to the code style or violates it and the second component corresponding to an example code that already conforms to a code style. The dataset combines both datasets [infinityofspace/python_codestyles-random-1k](https://huggingface.co/datasets/infinityofspace/python_codestyles-random-1k) and [infinityofspace/python_codestyles-single-1k](https://huggingface.co/datasets/infinityofspace/python_codestyles-single-1k) by randomly selecting half of the examples from each of the two datasets. The code styles in the combined dataset differ in at least one and exactly one codestyle rule, which is called a `mixed` codestyle dataset variant. The dataset consists of a training and test group, with none of the code styles overlapping between groups. In addition, both groups contain completely different underlying codes. The examples contain source code from the following repositories: | repository | tag or commit | |:-----------------------------------------------------------------------:|:----------------------------------------:| | [TheAlgorithms/Python](https://github.com/TheAlgorithms/Python) | f614ed72170011d2d439f7901e1c8daa7deac8c4 | | [huggingface/transformers](https://github.com/huggingface/transformers) | v4.31.0 | | [huggingface/datasets](https://github.com/huggingface/datasets) | 2.13.1 | | [huggingface/diffusers](https://github.com/huggingface/diffusers) | v0.18.2 | | [huggingface/accelerate](https://github.com/huggingface/accelerate) | v0.21.0 |
提供机构:
infinityofspace
原始信息汇总

数据集卡片 "python_codestyles-mixed1-1k"

数据集描述

该数据集包含符合或违反代码风格的Python代码的正负示例。正示例表示符合代码风格(标签为1)。每个示例由两部分组成,第一部分是符合或违反代码风格的代码,第二部分是已经符合代码风格的示例代码。

数据集组合

该数据集通过随机选择来自两个数据集 infinityofspace/python_codestyles-random-1kinfinityofspace/python_codestyles-single-1k 的一半示例进行组合。

代码风格

组合数据集中的代码风格至少且仅有一个代码风格规则不同,称为 mixed 代码风格数据集变体。

数据集划分

数据集包含训练组和测试组,两组之间的代码风格不重叠,且包含完全不同的基础代码。

数据来源

示例包含以下仓库的源代码:

数据集配置

  • 默认配置
    • 训练集
      • 路径: data/train-*
      • 字节数: 3592039734.4341164
      • 示例数: 307988
    • 测试集
      • 路径: data/test-*
      • 字节数: 644731732.1102186
      • 示例数: 56394

数据集特征

  • code: 字符串类型
  • code_codestyle: 64位整数类型
  • style_context: 字符串类型
  • style_context_codestyle: 64位整数类型
  • label: 64位整数类型

数据集大小

  • 下载大小: 0
  • 数据集大小: 4236771466.544335

许可证

MIT

标签

  • python
  • code-style
  • mixed

大小类别

  • 100K<n<1M
5,000+
优质数据集
54 个
任务类型
进入经典数据集
二维码
社区交流群

面向社区/商业的数据集话题

二维码
科研交流群

面向高校/科研机构的开源数据集话题

数据驱动未来

携手共赢发展

商业合作