Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
6
6
title
stringclasses
1 value
text
stringlengths
20
17.2k
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 — RTEB open subset, unified schema

A normalised copy of the dataset behind the mteb task FreshStackRetrieval, one of the 17 open tasks in the RTEB(beta) retrieval benchmark. Same queries, documents and relevance judgements as the benchmark evaluates — reshaped into one strict schema shared by all 17.

Source embedding-benchmark/FreshStack_mteb @ 7a20df1abe4d (the revision pinned in mteb)
Domain · languages code · eng
Queries / documents / qrels 672 / 3,804 / 5,445
Qrels per query min 1 · mean 8.103 · max 35
Score values 1 ×5,445
Layout queries · corpus · qrels, split test
License mit

Schema

config columns rules
queries id: string, text: string ids unique and non-empty; every query has ≥ 1 qrel
corpus id: string, title: string, text: string title is always present ("" when the source has none)
qrels query-id: string, corpus-id: string, score: int32 referential integrity to both tables; no duplicate pairs; no floats

Files are Parquet, sorted by id, zstd-compressed, sharded at 500 MB. Every rule above is enforced by a validator before publishing; provenance.json records the source file hashes, what changed, and the output file hashes.

What changed from the source

  • byte-preserved all text — no whitespace or newline normalisation (code dataset)
  • added a title column filled with "" (the source has none)
  • cast qrels.score double -> int32
  • renamed source splits (queries←queries/queries, corpus←corpus/corpus, qrels←default/test) to test

Load it

from datasets import load_dataset
queries = load_dataset("Hyukkyu/rteb-FreshStackRetrieval", "queries", split="test")
corpus  = load_dataset("Hyukkyu/rteb-FreshStackRetrieval", "corpus", split="test")
qrels   = load_dataset("Hyukkyu/rteb-FreshStackRetrieval", "qrels", split="test")

License and attribution

The data is redistributed under the source's terms — mit. All credit belongs to the original authors; see the source repository and the references in mteb's task metadata (https://huggingface.co/datasets/embedding-benchmark/FreshStack_mteb). This repository is an independent repackaging and is not affiliated with the RTEB or MTEB maintainers.

Downloads last month
150

Collection including Hyukkyu/rteb-FreshStackRetrieval