CoolFace
Datasetpublic

sentence-transformers/codesearchnet

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… See the full description on the dataset page: https://huggingface.co/datasets/sentence-transformers/codesearchnet.

sourceHugging Faceupdated 2y agoView on Hugging Face
16likes482downloads
Dataset Card

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:
python
    {
      '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}",
    }