Datasets:

Modalities:
Text
Formats:
parquet
ArXiv:
License:
Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
6
6
text
stringlengths
20
17.2k
title
stringclasses
1 value
000077
import { match } from 'node:assert'; import { createProjectFromAsset } from '../../utils/assets'; import { expectFileMatchToExist, expectFileNotToExist, expectFileToExist, expectFileToMatch, } from '../../utils/fs'; import { execAndWaitForOutputToMatch, ng, noSilentNg } from '../../utils/process'; import { find...
000090
import assert from 'node:assert'; import { setTimeout } from 'node:timers/promises'; import { replaceInFile, writeMultipleFiles } from '../../utils/fs'; import { ng, silentNg, waitForAnyProcessOutputToMatch } from '../../utils/process'; import { installWorkspacePackages, uninstallPackage } from '../../utils/packages'; ...
000095
import assert from 'node:assert'; import { setTimeout } from 'node:timers/promises'; import { replaceInFile, writeMultipleFiles } from '../../utils/fs'; import { ng, silentNg, waitForAnyProcessOutputToMatch } from '../../utils/process'; import { installPackage, installWorkspacePackages, uninstallPackage } from '../../u...
000124
import { ng } from '../../../utils/process'; import { useCIChrome } from '../../../utils/project'; export default async function () { await ng('generate', 'app', 'standalone', '--experimental-zoneless', '--standalone'); await useCIChrome('standalone', 'projects/standalone'); await ng('test', 'standalone', '--wat...
000171
import assert from 'node:assert'; import { killAllProcesses, ng } from '../../../utils/process'; import { rimraf, writeMultipleFiles } from '../../../utils/fs'; import { installWorkspacePackages } from '../../../utils/packages'; import { ngServe, useSha } from '../../../utils/project'; export default async function (...
000223
import { writeMultipleFiles } from '../../../utils/fs'; import { silentNg } from '../../../utils/process'; export async function libraryConsumptionSetup(): Promise<void> { await silentNg('generate', 'library', 'my-lib'); // Force an external template await writeMultipleFiles({ 'projects/my-lib/src/lib/my-li...
000240
import assert, { match } from 'node:assert'; import { readFile, writeMultipleFiles } from '../../../utils/fs'; import { ng, noSilentNg, silentNg } from '../../../utils/process'; import { getGlobalVariable } from '../../../utils/env'; import { installWorkspacePackages, uninstallPackage } from '../../../utils/packages'; ...
000242
import { join } from 'node:path'; import { existsSync } from 'node:fs'; import assert from 'node:assert'; import { expectFileToMatch, writeFile } from '../../../utils/fs'; import { execAndWaitForOutputToMatch, ng, noSilentNg, silentNg } from '../../../utils/process'; import { installWorkspacePackages, uninstallPackage ...
000250
import { ng } from '../../../utils/process'; import { getGlobalVariable } from '../../../utils/env'; import { expectFileToMatch, rimraf, writeMultipleFiles } from '../../../utils/fs'; import { installWorkspacePackages } from '../../../utils/packages'; import { useSha } from '../../../utils/project'; export default asy...
000251
import { ng } from '../../../utils/process'; import { getGlobalVariable } from '../../../utils/env'; import { rimraf, writeMultipleFiles } from '../../../utils/fs'; import { match } from 'node:assert'; import { expectToFail } from '../../../utils/utils'; import { useSha } from '../../../utils/project'; import { install...
000264
import express from 'express'; import { dirname, resolve } from 'path'; import { getGlobalVariable } from '../../utils/env'; import { appendToFile, copyFile, createDir, replaceInFile, writeFile } from '../../utils/fs'; import { installPackage } from '../../utils/packages'; import { updateJsonFile } from '../../utils/pr...
000274
export function updateServerFileForWebpack(filepath: string): Promise<void> { return writeFile( filepath, ` import { APP_BASE_HREF } from '@angular/common'; import { CommonEngine } from '@angular/ssr/node'; import express from 'express'; import { fileURLToPath } from 'node:url'; import { d...
000318
import 'zone.js/node'; import { APP_BASE_HREF } from '@angular/common'; import { CommonEngine } from '@angular/ssr'; import * as express from 'express'; import { existsSync } from 'node:fs'; import { join } from 'node:path'; import AppServerModule from './src/main.server'; // The Express app is exported so that it ca...
000337
import 'zone.js/node'; import { APP_BASE_HREF } from '@angular/common'; import { CommonEngine } from '@angular/ssr/node'; import * as express from 'express'; import { existsSync } from 'node:fs'; import { join } from 'node:path'; import AppServerModule from './src/main.server'; // The Express app is exported so that ...
000366
# Building and Testing Angular CLI ## Installation To get started locally, follow these instructions: 1. If you haven't done it already, [make a fork of this repo](https://github.com/angular/angular-cli/fork). 1. Clone to your local computer using `git`. 1. Make sure that you have Node `v18.19` or higher installed. ...
000372
| | Deploy URL | Base HREF | | ------------------------------------------- | :--------: | :-------: | | Initial scripts (index.html) | ✅ 👍 | ✅ 👍 | | Initial stylesheets (index.html) | ✅ 👍 | ✅ 👍 | | Lazy scripts (routes/import()/...
000377
# Important Considerations when Using Angular Universal ## Introduction Although the goal of the Universal project is the ability to seamlessly render an Angular application on the server, there are some inconsistencies that you should consider. First, there is the obvious discrepancy between the server and browser e...
000380
# Setting Up Local Repository 1. Clone the Angular-CLI repo. A local copy works just fine. 1. Create an upstream remote: ```bash $ git remote add upstream https://github.com/angular/angular-cli.git ``` # Caretaker The caretaker should triage issues, merge PR, and sheppard the release. Caretaker rotation can be fou...
000408
#!/usr/bin/env node /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /* eslint-disable no-console */ /* eslint-disable import/no-unassigned-import */ 'use strict'; ...
000496
The command can be used to build a project of type "application" or "library". When used to build a library, a different builder is invoked, and only the `ts-config`, `configuration`, `poll` and `watch` options are applied. All other options apply only to building applications. The application builder uses the [esbuil...
000510
# Angular SSR Read the dev guide [here](https://angular.dev/guide/ssr).
000517
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { getPotentialLocaleIdFromUrl } from '../src/i18n'; describe('getPotentialLocaleIdFromUrl', () => { it('sh...
000648
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { RootDatabase, open } from 'lmdb'; import { Cache, CacheStore } from './cache'; export class LmbdCacheStore...
000657
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * @fileoverview * Provides infrastructure for common caching functionality within the build system. */ /** ...
000663
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import type { Metafile, PartialMessage } from 'esbuild'; /** * Checks the input files of a build to determine if a...
000747
export function getLocaleBaseHref( baseHref: string | undefined, i18n: NormalizedApplicationBuildOptions['i18nOptions'], locale: string, ): string | undefined { if (i18n.flatOutput) { return undefined; } if (i18n.locales[locale] && i18n.locales[locale].baseHref !== '') { return urlJoin(baseHref || ...
000786
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { buildApplication } from '../../index'; import { APPLICATION_BUILDER_INFO, BASE_OPTIONS, describeBuilder } f...
000811
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { buildApplication } from '../../index'; import { CrossOrigin } from '../../schema'; import { APPLICATION_BUI...
000826
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import browserslist from 'browserslist'; export function getSupportedBrowsers( projectRoot: string, logger: { w...
000953
describe('lazy route generator', () => { const options = { ...defaultOptions, route: '/new-route', module: 'app', }; it('should generate a lazy loaded module with a routing module', async () => { const tree = await schematicRunner.runSchematic('module', options, appTree); cons...
000976
import { <% if(changeDetection !== 'Default') { %>ChangeDetectionStrategy, <% }%>Component<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%> } from '@angular/core'; @Component({<% if(!skipSelector) {%> selector: '<%= selector %>',<%}%><% if(standalone) {%> imports: [],<%} else { %> standalone: false, <% ...
000985
import { mergeApplicationConfig, ApplicationConfig } from '@angular/core'; import { provideServerRendering } from '@angular/platform-server'; import { appConfig } from './app.config'; const serverConfig: ApplicationConfig = { providers: [ provideServerRendering() ] }; export const config = mergeApplicationCon...
000991
import { mergeApplicationConfig, ApplicationConfig } from '@angular/core'; import { provideServerRendering } from '@angular/platform-server';<% if(serverRouting) { %> import { provideServerRoutesConfig } from '@angular/ssr';<% } %> import { appConfig } from './app.config';<% if(serverRouting) { %> import { serverRoutes...
000998
# <%= classify(name) %> This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version <%= angularLatestVersion %>. ## Code scaffolding Angular CLI includes powerful code scaffolding tools. To generate a new component, run: ```bash ng generate component component-name ``` For a comp...
001005
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { join } from 'node:...
001006
import 'zone.js/node'; import { APP_BASE_HREF } from '@angular/common'; import { CommonEngine } from '@angular/ssr/node'; import * as express from 'express'; import { existsSync } from 'node:fs'; import { join } from 'node:path'; import <% if (isStandalone) { %>bootstrap<% } else { %>AppServerModule<% } %> from './mai...
001007
import { APP_BASE_HREF } from '@angular/common'; import { CommonEngine, isMainModule } from '@angular/ssr/node'; import express from 'express'; import { dirname, join, resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; import <% if (isStandalone) { %>bootstrap<% } else { %>AppServerModule<% } %> from...
001008
import { AngularNodeAppEngine, createNodeRequestHandler, isMainModule, writeResponseToNodeResponse, } from '@angular/ssr/node'; import express from 'express'; import { dirname, resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; const serverDistFolder = dirname(fileURLToPath(import.meta.url))...
001089
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { parse as parseJson ...
001091
it(`should create kebab-case project folder names with PascalCase project name`, async () => { const options: ApplicationOptions = { ...defaultOptions, name: 'MyCool' }; const tree = await schematicRunner.runSchematic('application', options, workspaceTree); const exists = tree.exists('/projects/my-cool/tsc...
001099
import { Routes } from '@angular/router'; export const routes: Routes = [];
001121
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { Schema as Applicat...
001123
import { TestBed } from '@angular/core/testing'; import { <%= classify(name) %>Guard } from './<%= dasherize(name) %>.guard'; describe('<%= classify(name) %>Guard', () => { let guard: <%= classify(name) %>Guard; beforeEach(() => { TestBed.configureTestingModule({}); guard = TestBed.inject(<%= classify(na...
001125
import { TestBed } from '@angular/core/testing'; import { <%= guardType %> } from '@angular/router'; import { <%= camelize(name) %>Guard } from './<%= dasherize(name) %>.guard'; describe('<%= camelize(name) %>Guard', () => { const executeGuard: <%= guardType %> = (...guardParameters) => TestBed.runInInjectio...
001133
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { SchematicTestRunner } from '@angular-devkit/schematics/testing'; import { Schema as NgNewOptions } from './...
001196
describe('addRootImport', () => { it('should add a root import to an NgModule-based app', async () => { await setupProject(); await testRule( addRootImport( projectName, ({ code, external }) => code`${external('MyModule', '@my/module')}.forRoot([])`, ), host,...
001297
# @angular-devkit/build-angular This package contains [Architect builders](/packages/angular_devkit/architect/README.md) used to build and test Angular applications and libraries. ## Builders | Name | Description ...
001348
export async function getCommonConfig(wco: WebpackConfigOptions): Promise<Configuration> { const { root, projectRoot, buildOptions, tsConfig, projectName, sourceRoot, tsConfigPath } = wco; const { cache, codeCoverage, crossOrigin = 'none', platform = 'browser', aot = true, codeCoverageExclud...
001618
# Overview Jobs is a high-order API that adds inputs, runtime type checking, sequencing, and other functionality on top of RxJS' `Observable`s. # Background An `Observable` (at a higher level) is a function that receives a `Subscriber`, and outputs multiple values, and finishes once it calls the `Subscriber.prototyp...
001630
# Creating Jobs A job is at its core a function with a description object attached to it. The description object stores the JSON schemas used to validate the types of the argument passed in, the input and output values. By default, a job accepts and can output any JSON object. ```typescript import { Observable } from...
001649
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * This file includes polyfills needed by Angular and is loaded before the app. * You can add your own extra po...
001654
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { existsSync } from 'fs'; import * as path from 'path'; import { URL, pathToFileURL } from 'url'; import { Co...
001815
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * This file includes polyfills needed by Angular and is loaded before the app. * You can add your own extra po...
End of preview. Expand in Data Studio

FreshStackRetrieval

An MTEB dataset
Massive Text Embedding Benchmark

A code retrieval task based on FreshStack dataset containing programming problems across multiple languages. Each query is a natural language description of a programming task (e.g., 'Write a function to reverse a string using recursion'), and the corpus contains code implementations in Python, JavaScript, and Go. The task is to retrieve the correct code snippet that solves the described problem. Queries are problem descriptions while the corpus contains function implementations with proper syntax and logic across different programming languages.

Task category t2t
Domains Programming
Reference https://huggingface.co/datasets/embedding-benchmark/FreshStack_mteb

Source datasets:

How to evaluate on this task

You can evaluate an embedding model on this dataset using the following code:

import mteb

task = mteb.get_task("FreshStackRetrieval")
evaluator = mteb.MTEB([task])

model = mteb.get_model(YOUR_MODEL)
evaluator.run(model)

To learn more about how to run models on mteb task check out the GitHub repository.

Citation

If you use this dataset, please cite the dataset as well as mteb, as this dataset likely includes additional processing as a part of the MMTEB Contribution.


@article{freshstack2023,
  author = {FreshStack Authors},
  journal = {arXiv preprint arXiv:2301.12345},
  title = {FreshStack: A Multi-language Code Generation and Retrieval Benchmark},
  year = {2023},
}


@article{enevoldsen2025mmtebmassivemultilingualtext,
  title={MMTEB: Massive Multilingual Text Embedding Benchmark},
  author={Kenneth Enevoldsen and Isaac Chung and Imene Kerboua and Márton Kardos and Ashwin Mathur and David Stap and Jay Gala and Wissam Siblini and Dominik Krzemiński and Genta Indra Winata and Saba Sturua and Saiteja Utpala and Mathieu Ciancone and Marion Schaeffer and Gabriel Sequeira and Diganta Misra and Shreeya Dhakal and Jonathan Rystrøm and Roman Solomatin and Ömer Çağatan and Akash Kundu and Martin Bernstorff and Shitao Xiao and Akshita Sukhlecha and Bhavish Pahwa and Rafał Poświata and Kranthi Kiran GV and Shawon Ashraf and Daniel Auras and Björn Plüster and Jan Philipp Harries and Loïc Magne and Isabelle Mohr and Mariya Hendriksen and Dawei Zhu and Hippolyte Gisserot-Boukhlef and Tom Aarsen and Jan Kostkan and Konrad Wojtasik and Taemin Lee and Marek Šuppa and Crystina Zhang and Roberta Rocca and Mohammed Hamdy and Andrianos Michail and John Yang and Manuel Faysse and Aleksei Vatolin and Nandan Thakur and Manan Dey and Dipam Vasani and Pranjal Chitale and Simone Tedeschi and Nguyen Tai and Artem Snegirev and Michael Günther and Mengzhou Xia and Weijia Shi and Xing Han Lù and Jordan Clive and Gayatri Krishnakumar and Anna Maksimova and Silvan Wehrli and Maria Tikhonova and Henil Panchal and Aleksandr Abramov and Malte Ostendorff and Zheng Liu and Simon Clematide and Lester James Miranda and Alena Fenogenova and Guangyu Song and Ruqiya Bin Safi and Wen-Ding Li and Alessia Borghini and Federico Cassano and Hongjin Su and Jimmy Lin and Howard Yen and Lasse Hansen and Sara Hooker and Chenghao Xiao and Vaibhav Adlakha and Orion Weller and Siva Reddy and Niklas Muennighoff},
  publisher = {arXiv},
  journal={arXiv preprint arXiv:2502.13595},
  year={2025},
  url={https://arxiv.org/abs/2502.13595},
  doi = {10.48550/arXiv.2502.13595},
}

@article{muennighoff2022mteb,
  author = {Muennighoff, Niklas and Tazi, Nouamane and Magne, Loïc and Reimers, Nils},
  title = {MTEB: Massive Text Embedding Benchmark},
  publisher = {arXiv},
  journal={arXiv preprint arXiv:2210.07316},
  year = {2022}
  url = {https://arxiv.org/abs/2210.07316},
  doi = {10.48550/ARXIV.2210.07316},
}

Dataset Statistics

Dataset Statistics

The following code contains the descriptive statistics from the task. These can also be obtained using:

import mteb

task = mteb.get_task("FreshStackRetrieval")

desc_stats = task.metadata.descriptive_stats
{
    "test": {
        "num_samples": 4476,
        "number_of_characters": 20097263,
        "documents_text_statistics": {
            "total_text_length": 18882128,
            "min_text_length": 20,
            "average_text_length": 4963.756046267087,
            "max_text_length": 17168,
            "unique_texts": 3770
        },
        "documents_image_statistics": null,
        "queries_text_statistics": {
            "total_text_length": 1215135,
            "min_text_length": 172,
            "average_text_length": 1808.236607142857,
            "max_text_length": 21029,
            "unique_texts": 672
        },
        "queries_image_statistics": null,
        "relevant_docs_statistics": {
            "num_relevant_docs": 5445,
            "min_relevant_docs_per_query": 1,
            "average_relevant_docs_per_query": 8.102678571428571,
            "max_relevant_docs_per_query": 35,
            "unique_relevant_docs": 3804
        },
        "top_ranked_statistics": null
    }
}

This dataset card was automatically generated using MTEB

Downloads last month
16

Papers for mteb/FreshStackRetrieval