Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
12
9.51M
source_type
stringclasses
7 values
token_count
int64
3
2.38M
import { Connection,DdlBuilder, Metadata, MdTable } from "../../../src"; import { SqlJsDdlBuilder, SqlJsConnection,initSqlJs } from "../../../src"; import * as fs from 'fs'; test("SqlJsDdlBuilder.createTable", async () => { var SQL = await initSqlJs(); var conn:Connection = new SqlJsConnection(); conn.open(SQL); v...
code_typescript
238
import math # Link list node class Node: def __init__(self, data): self.data = data self.next = None # Function to find the second last # node of the linked list def findSecondLastNode(head): temp = head # If the list is empty or # contains less than 2 nodes if ...
code_python
301
def bytes_u16(value: int): return value.to_bytes(2, byteorder="little") def bytes_u32(value: int): return value.to_bytes(4, byteorder="little") def required_alignment(offset: int, to: int): if offset % to == 0: return 0 return to - offset % to
code_python
67
# coherent analytic cohomology vanishes for q > 2dim Given a complex-analytic manifold of dimension $d$, why does the cohomology of coherent sheaves vanish in dimension $> 2d$ (without using GAGA)? - Shouldn't the cohomology of coherent sheaves vanish above $d$? This should be somewhere in "Coherent Analytic Sheaves"...
maths
439
import { IoIosArrowDropdown } from 'react-icons/io'; import styled from 'styled-components'; export const Container = styled.div` display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: 1fr; grid-column-gap: 2rem; padding: 1rem; padding-top: 2rem; @media ${(props) => props.theme.breakp...
code_javascript
660
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { TouristSpotDetailComponent } from './tourist-spot-detail.component'; describe('TouristSpotDetailComponent', () => { let component: TouristSpotDetailComponent; let fixture: ComponentFixture<TouristSpotDetailComponent>; beforeEach(async ...
code_typescript
167
package com.strengthprogress.web.backend.validation; import com.strengthprogress.web.backend.validation.validators.PasswordValidator; import javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.Target; ...
code_java
186
#let user input their savings deposite = float(input("please enter the ammount that you want to deposite:")) #here the intrest rate is 4% intrest = 0.04 #let user input the no of year that they want to save their money for year = int(input("for how many full years you want to save :")) #formula for compound intrest...
code_python
113
## Koka a function oriented language with effect inference Koka is a function-oriented programming language that seperates pure values from side-effecting computations, where the effect of every function is automatically inferred. Koka has many features that help programmers to easily change their data types and code ...
maths
802
Deformable mirrors were developed to enable arbitrary deformation of their shapes. This is achieved by attaching a large number of piezoelectric elements symmetrically on both sides of the mirror substrate. A deformable mirror with 18 piezoelectric elements can be deformed into the shape of a sine curve. Up to 9 cycles...
text
253
Figure 3-10Schematic diagram. The positive side of the 12-volt battery is connected to the starter solenoid, then to terminal B of the voltage regulator, and then down to point (1). (It should be noted that points (1), (2), (3), and so on, normally are not indicated on the schematic. They are shown here only to help yo...
text
194
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { TngPlChoosePaymentMethodComponent } from './tng-pl-choose-payment-method.component'; describe('TngPlChoosePaymentMethodComponent', () => { let component: TngPlChoosePaymentMethodComponent; let fixture: ComponentFixture<TngPlChoosePaymentM...
code_typescript
189
# I think I saw a post on here last year with a document that was a listing of all the different types of encounters… I think I saw a post on here last year with a document that was a listing of all the different types of encounters… I think I saw a post on here last year with a document that was a listing of all the...
maths
208
his mother was killed for no reason by a white man. His father went to search for his wife's killer and never returned What things did Matt's father give him before leaving? he receives his father's rifle and his grandfather's watch What advice did Matt's father give him about the Indians? He told him to be extremely p...
text
1,456
# qiskit.quantum_info.concurrence¶ concurrence(state)[source] Calculate the concurrence of a quantum state. The concurrence of a bipartite Statevector $$|\psi\rangle$$ is given by $C(|\psi\rangle) = \sqrt{2(1 - Tr[\rho_0^2])}$ where $$\rho_0 = Tr_1[|\psi\rangle\!\langle\psi|]$$ is the reduced state from by taking ...
maths
257
/****************************************************************************** * * Name: actbl2.h - ACPI Table Definitions (tables not in ACPI spec) * *****************************************************************************/ /* * Copyright (C) 2000 - 2015, Intel Corp. * All rights reserved. * * Redistrib...
code_c
10,059
export interface EducationDegree { id: number; educationDegreeName: string ; }
code_typescript
20
Ratri means “night” and Nava means “nine”. At Navaratri (“nine nights”), the Lord in the form of the Mother Goddess is worshipped in Her various forms as Durga, Lakshmi and Saraswati. Though the Goddess is one, She is represented and worshipped in three different aspects. On the first three nights of the festival, Durg...
text
379
# do not import all endpoints into this module because that uses a lot of memory and stack frames # if you need the ability to import all endpoints from this module, import them with # from slack.paths.files_remote_info import Api from slack.paths import PathValues path = PathValues.FILES_REMOTE_INFO
code_python
75
// beanboard lcdcursor // built with z88dk // tested on BeanBoard v1, BeanZee v1 and Marvin v1.2.1-beanboard #include <stdio.h> #include "../lib/marvin.h" #include "../lib/beanboard.h" int main() { printf("Press any key to exit"); // the following LCD set-up can be accomplished with marvin_lcd_init() marvin...
code_c
267
#ifndef _NSP_H_ #define _NPS_H_ void readInstance() #endif //_NSP_H_
code_c
18
import os #Generate playlistfiles from TagSystem.txt (ignore "#"-lines), but get startOfTag and EndOfTag. path = 'storage/sdcard0/com.hipipal.qpyplus/scripts/PlaylistCreator' start='__{' stop='}__' os.chdir(path) #print os.listdir(os.getcwd()) playlistNames = [] f=open('TagSystem.txt','r') for line in f: line ...
code_python
308
import Vue from 'vue' import Router from 'vue-router' import Home from '@/components/Home' import SignIn from '@/components/SignIn' import SignUp from '@/components/SignUp' import AdminPage from '@/components/AdminPage' import UserPage from '@/components/UserPage' import GameBoard from "@/components/GameBoard"; Vue.us...
code_javascript
269
package com.lyyh.greenhouse.dao; import java.util.List; import com.lyyh.greenhouse.pojo.Equipment; public interface EquipmentDao { List<Equipment> queryAllByHouseId(int houseId); void saveEquipment(Equipment equipment); void updateEquipment(Equipment equipment); void delEquipmentById(int equipm...
code_java
83
Concentration of Volume Percent Calculator. Suppose also, that Suppose plane that is units above P. that Tap on PRINT, PDF or IMAGE button to print or download this grade-6 unit conversion & measurement worksheet to practice how to solve the volume measurement word problems. 2. Solutions, Percent by Mass and Volume.Che...
maths
5,323
# nexxtech lab 1100 turntable price There are five carbon atoms in the longest chain that contains the functional group, and only single bonds between carbon atoms. In this compound only one position of double bond i.e. There are three carbon atoms in the longest chain so the prefix is prop-. The suffix will be -oic a...
maths
6,221
Main Article Content The sustainable improvement of plant nutrition can provide sufficient food for all and can keep the environment clean. In that point of view, the present study aims to provide to farmers some contextualized and efficient fertilizers. In the present work, 161 plants of Talinum fruticosum L. and 161 ...
text
2,459
int theMaximumAchievableX(int num, int t) { return num + (2*t); }
code_c
17
/** * File generated with GEGELATI v1.3.1 * On the 2024-04-12 16:11:30 * With the CodeGen::TPGGenerationEngine. */ #include "codeGenArmlearn.h" #include "codeGenArmlearn_program.h" #include <limits.h> #include <assert.h> #include <float.h> #include <stdbool.h> #include <stdio.h> #include <stdint.h> #include <math....
code_c
1,239
from playwright.sync_api import Page, expect class DashboardPage: def __init__(self, page: Page): self.page = page self.profile = page.locator('#usernameDisplay') self.logout = page.locator('#logout') def assert_welcome_message(self, message): expect(self.profile).to_have_text...
code_python
82
import axios from '@/libs/api.request'; /** * 这里是后台的接口管理 */ export default { // 用户管理-------------------- // 登录 login: ({ username, password, identity }) => { const data = { username, password, identity } return axios.request({ url: '/admin/login', data,...
code_javascript
1,673
//package com.example.maxwell.kardyo; // //import android.support.annotation.NonNull; //import android.support.v4.widget.DrawerLayout; //import android.support.v7.app.ActionBarDrawerToggle; //import android.support.v7.app.AppCompatActivity; //import android.os.Bundle; //import android.support.v7.widget.Toolbar; //impor...
code_java
1,385
Viser treff 1-1 av 1 • #### Sesongvariasjon i stemningslidelser: En kunnskapsoversikt  (Master thesis, 2016-04-14) The study explored the literature concerning seasonal variations in mood disorders. The purpose was to give a summary of the included studies in this systematic review, evaluate their research design an...
maths
85
Can eating rabbit reduce world hunger and offer environmental benefits? Yes, according to a report at Time. First, rabbit has virtually no cultural taboos: It is a fact universally acknowledged that rabbits reproduce at a rapid rate. But did you know that rabbit meat is kosher, halal and acceptable for Hindus who decli...
text
745
/////////////////////////////////////////////////////////////////////////////// /// University of Hawaii, College of Engineering /// @brief Network_simulator - Spr 2024 /// /// @file switch.h /// @version 1.0 /// /// @author Joshua Brewer <brewerj3@hawaii.edu> /// @date 22_Feb_2024 //////////////////////////...
code_c
259
# Objective The objectives for this week are: • Learn about fitting a forest model and use the diagnostics • Compare the classification tree with a forest • Understand the the idea of bagging to refine model fitting # Class discussion The focus this week is understanding how to determine the importance of variables...
maths
836
import { Injectable } from '@angular/core'; import { APIService } from '../common/api.service'; import { Todo } from '../models/todo'; import { Http, Response, Headers, RequestOptions } from '@angular/http'; import { AuthService } from '../common/auth.service'; import { AppConfiguration } from '../common/config/app-co...
code_typescript
232
/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import { ITelemetryLogger } from "@fluidframework/common-definitions"; import { IGCResult } from "./interfaces"; /** * Runs garbage collection on the given reference graph. * @param referenceGrap...
code_typescript
687
/* * Copyright 2011 LMAX Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wri...
code_java
527
import { z } from "zod"; const customErrorMap: z.ZodErrorMap = (issue) => { if (issue.code === "invalid_type") { if (issue.expected === "string") { return { message: "This field is required" }; } } return { message: issue.message || "Invalid input" }; }; z.setErrorMap(customErrorMap); export cons...
code_typescript
165
14 Jan Fishbone Fern Once a popular basket and rockery plant because of its ability to withstand low light and neglect, this plant is naturalised throughout a large proportion of the NSW coast. Origin: North Eastern Australia Habit: Terrestrial fern that forms dense clumps of upright, arching fronds that resemble fish ...
text
270
# Plotting precise intersections involving singular functions I have pseudo-elliptic functions defined on a parallelogram within $\mathbb{C}$ and I would like to clearly highlight the path within this parallelogram which satisfies the real part of my pseudo-elliptic function vanishing. I have a code which partially d...
maths
483
The forty something provinces of the Roman Empire were ruled by a governor whose term lasted twelve or thirty-six months. These powerful men are virtually unknown to modern historians, who consider themselves lucky when they happen to know who was responsible for a province at a certain moment. There are, however, some...
text
659
import random class GameOfLife: def __init__(self) -> None: self.grid = [] self.rows = 5 self.cols = 6 def game_engine(self): self.make_grid() self.show_grid() self.update_grid() def make_grid(self): self.grid = [ ['-', '-', '*', '-', '...
code_python
418
import { Component, OnInit } from '@angular/core'; import { Button } from '../../models/button.model'; @Component({ selector: 'app-index', templateUrl: './index.component.html', styleUrls: ['./index.component.css'] }) export class IndexComponent implements OnInit { banner: string; logged = false; title: S...
code_typescript
171
package cl1; import fj1.C45795b; import gy3.C87412m; import te3.C49352ez; import te3.C51276so2; /* renamed from: cl1.t */ public final class C0689t extends C39970c<C45795b> { /* renamed from: f */ public C49352ez f1624f; /* renamed from: g */ public boolean f1625g; /* JADX INFO: super call move...
code_java
183
#include "build.h" #ifndef UNIX #include <windows.h> #include <crtdbg.h> #endif #include "defines.h" char wmessage[255]; real rinc, sinc, rho, psit, range; real lams, lamr, psi0; /*COMPILED*/ real w, pgftemp, gratio, xrate, kappa, crate; real answer, x1, x2, g; /***** This global variab...
code_c
1,774
End of preview. Expand in Data Studio

Mimans 1B Token Pretraining Mixture

A high-quality 1 Billion Token Pretraining Dataset Mixture curated specifically for pretraining small-to-medium Language Models (0.5B - 3B parameters).

Dataset Overview

  • Dataset File: train-00000-of-00001.parquet
  • File Size: 2076.95 MB (2.03 GB)
  • Total Documents: 819,493
  • Total Tokens: ~1,000,000,000 Tokens (1 Billion Tokens)
  • Format: Apache Parquet (snappy compression)

Token Mixture Ratios

Category Source Token Ratio % Tokens Description
Natural Text Web Crawl 72.0% ~720,000,000 Clean text purged of fragmented code & math formulas
Python Dedicated Code 5.04% ~50,400,000 High-quality Python source code
JavaScript Dedicated Code 4.33% ~43,200,000 High-quality JavaScript source code
TypeScript Dedicated Code 3.60% ~36,000,000 High-quality TypeScript source code
Java Dedicated Code 2.88% ~28,800,000 High-quality Java source code
C Dedicated Code 2.16% ~21,600,000 High-quality C source code
Math Formula & Reasoning 10.00% ~100,000,000 LaTeX math formulas, proofs, and equations

How to Load & Train

1. Load with Hugging Face datasets

from datasets import load_dataset

# Load directly from local file or Hugging Face repo
dataset = load_dataset("parquet", data_files="train-00000-of-00001.parquet")
print(dataset)
# Output: DatasetDict({train: Dataset(num_rows=819,493)})

# Print example record
print(dataset["train"][0])

2. Stream into PyTorch / NanoGPT / Llama DataLoader

import pyarrow.parquet as pq

# Fast zero-copy memory-mapped batch streaming
table = pq.read_table("train-00000-of-00001.parquet")
for batch in table.to_batches(batch_size=2048):
    texts = batch.to_pydict()["text"]
    # Tokenize and pass to model...

Dataset Schema

  • text (string): Document text.
  • source_type (string): Category identifier (text, code_python, code_javascript, code_typescript, code_java, code_c, maths).
  • token_count (int64): Token count estimate.
Downloads last month
109