Dataset Viewer
The dataset viewer is not available for this dataset.
Unexpected token '<', "<html> <h"... is not valid JSON

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Dataset Card for CodeSearchNet

This dataset is a collection of comment-code pairs of various programming languages. See code_search_net for additional information. This dataset can be used directly with Sentence Transformers to train embedding models.

Dataset Subsets

pair subset

  • Columns: "comment", "code"
  • Column types: str, str
  • Examples:
    {
      'comment': 'Computes the new parent id for the node being moved.\n\n@return int',
      'code': "protected function parentId()\n\t{\n\t\tswitch ( $this->position )\n\t\t{\n\t\t\tcase 'root':\n\t\t\t\treturn null;\n\n\t\t\tcase 'child':\n\t\t\t\treturn $this->target->getKey();\n\n\t\t\tdefault:\n\t\t\t\treturn $this->target->getParentId();\n\t\t}\n\t}",
    }
    
  • Collection strategy: Reading the Code Search Net dataset from embedding-training-data.
  • Deduplified: No
Downloads last month
1,469

Models trained or fine-tuned on sentence-transformers/codesearchnet

Collection including sentence-transformers/codesearchnet