Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
7
1.04M
<gh_stars>1-10 /*Program to validate an IP address Write a program to Validate an IPv4 Address. According to Wikipedia, IPv4 addresses are canonically represented in dot-decimal notation, which consists of four decimal numbers, each ranging from 0 to 255, separated by dots, e.g., 172.16.254.1 Recommended: Please solv...
import {Component} from '@angular/core'; import {HttpClient, HttpRequest} from "@angular/common/http"; import {StripColorGraphData, StripGraphData, StripSequenceGraphData} from "jigsaw/public_api"; import {AjaxInterceptor} from "../../../../app.interceptor"; @Component({ templateUrl: './demo.component.html' }) exp...
<filename>smellCatalog/InputProcessor.py import re from Smell import Smell from SmellCategory import SmellCategory from Reference import Reference SMELL = "\[smell\]" SMELL_ID = "\[smell-id\]" SMELL_NAME = "\[smell-name\]" SMELL_END = "\[smell-end\]" SMELL_DES = "\[smell-description\]" SMELL_AKA = "\[smell-aka\]" SMEL...
""" @Author: huuuuusy @GitHub: https://github.com/huuuuusy 系统: Ubuntu 18.04 IDE: VS Code 1.39 工具: python == 3.7.3 """ """ 思路: 滑动窗口 结果: 执行用时 : 1320 ms, 在所有 Python3 提交中击败了38.54%的用户 内存消耗 : 17.4 MB, 在所有 Python3 提交中击败了5.79%的用户 """ class Solution: def findMaxAverage(self, nums, k): res = _sum = su...
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" #include ...
# https://hasura.io/blog/how-to-setup-authentication-with-django-graphene-and-hasura-graphql/ import jwt import api.models from datetime import datetime from graphql_jwt.settings import jwt_settings ## JWT payload for Hasura def jwt_payload(user, context=None): jwt_datetime = datetime.utcnow() + jwt_settings.JW...
<filename>src/reducers/index.ts import { routeReducer as routing } from "react-router-redux" import { combineReducers } from "redux" import { reducer as toastrReducer } from 'redux-toastr' import links from "./Link" export default combineReducers({ links, routing, toastrReducer })
<gh_stars>0 import { NodeInitializer } from 'node-red'; import { getBot } from '../shared/types'; import { DiscordConfigNode, DiscordConfigNodeDef } from './modules/types'; const nodeInit: NodeInitializer = (RED): void => { function DiscordConfigNodeConstructor( this: DiscordConfigNode, config: DiscordConfig...
#include <brotli/encode.h> #include <brotli/decode.h> #include <cstdlib> #include <cstring> #include <string> #include <iostream> int main() { std::string input = "some long text that we would like to compress if possible...."; uint8_t buffer[128]; size_t outputsize = sizeof(buffer); BROTLI_BOOL resul...
# -*- coding: utf-8 -*- """ author: zengbin93 email: <EMAIL> create_dt: 2021/11/17 22:26 describe: 使用掘金数据验证买卖点 """ from czsc.gm_utils import trader_tactic_snapshot from examples import tactics if __name__ == '__main__': ct = trader_tactic_snapshot("SZSE.300669", end_dt="2022-03-18 13:15", tactic=tactics.trader_st...
<reponame>luoyan407/predict_trustworthiness_smallscale<filename>confidnet/models/small_convnet_mnist.py<gh_stars>100-1000 import torch.nn as nn import torch.nn.functional as F from confidnet.models.model import AbstractModel class SmallConvNetMNIST(AbstractModel): def __init__(self, config_args, device): ...
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> int n,x,a[1005],cnt,ans; int main(){ scanf("%d",&n); for (int i=1;i<=n;i++){ scanf("%d",&x); a[x]++; } while (1){ if (n==0) break; int cnt=0; for (int i=1;i<=1000;i++) if (a[i]) cnt++,a[i]--,n--; ...
import { isEmpty, isRegExp } from "lightdash"; /** * Removes trailing sequences from a string. * * @private * @param str String to use. * @param seq Sequence to remove. * @return String without trailing sequence. */ const removeTrailing = (str: string, seq: string | RegExp): string => { if (isRegExp(seq)) {...
import numpy as np import matplotlib.pyplot as plt import cartopy.crs as ccrs from xmitgcm import open_mdsdataset from cartopy.mpl.gridliner import LONGITUDE_FORMATTER, LATITUDE_FORMATTER plt.ion() dir1 = '/homedata/bderembl/runmit/test_southatlgyre' ds1 = open_mdsdataset(dir1,iters='all',prefix=['Eta']) nt = 0 ...
<gh_stars>0 import {Routes} from "@angular/router"; import {CategoryListComponent} from '../components/category-list/category.list.component'; import {CategoryViewComponent} from '../components/category-view/category.view.component'; export const CATEGORY_ROUTES: Routes = [ {path: 'categories', component: CategoryLi...
import invariant from 'tiny-invariant'; import { Action, Components, Context, Guard, Immediate, Machine, MachineEvent, Reducer, State, Transition, ObjectProto, Invoke, } from './types'; import { immutable, isType, isTypeP } from './utility'; import { machineIsValid } from './validation'; export...
<reponame>gregorwolf/sap-business-one-odata-cap /* * Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved. * * This is a generated file powered by the SAP Cloud SDK for JavaScript. */ export enum InvBaseDocTypeEnum { Default = 'Default', Empty = 'Empty', PurchaseDeliveryNotes = 'Purchas...
<filename>src/app/consumption/pages/models/producto.ts export class Producto{ id_producto?: number; id_categoria: number; nom_producto: string; desc_producto: string; fec_cambio: Date; id_usuario_cambio: number; precio_producto: number; unidades_existentes: number; constructor(id_ca...
<reponame>thew3u/useWeb3 import React from 'react' import { Box, Button, Container, Typography } from '@mui/material' import { useModal } from 'mui-modal-provider' import WalletsModal from '../modals/WalletsModal' import { useWeb3 } from '@w3u/useWeb3' import Account from '../Account' const Header = () => { const { ...
<reponame>NicholasCui/agora-wxa<filename>src/services/users.ts<gh_stars>0 import { AnchorList } from "../utils/fancy-list"; import { User } from '../interfaces/user'; import { GlobalDataContext } from './global-data-context'; export class AgoraUserList extends AnchorList<User> { gdt: GlobalDataContext; cons...
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
<reponame>alpinista06/site_ibriza<gh_stars>0 import matplotlib.pyplot as plt import numpy as np import time import serial #importacao do modulo serial import random leitura =[] fig, ax = plt.subplots() ser = serial.Serial('/dev/ttyACM0', 9600, timeout=1) #abre porta serial ACM0 i=0 contador = 0 eixo_x = 96 while (i<...
#include <stdio.h> #include <stdlib.h> #define DEBUG_TRACE printf int main(int argc, char* argv[]) { DEBUG_TRACE("There are so many pearls in codes\n"); if(argc == 1) getchar(); return 0; }
<reponame>backmeupplz/open-funnels-backend export default () => ({ port: parseInt(process.env.PORT, 10), mongo: { uri: process.env.MONGO_URI, }, admin: { login: '' + process.env.ADMIN_LOGIN, password: '' + process.<PASSWORD>.ADMIN_PASSWORD, }, jwt: { secret: '' + process.env.JWT_SECRET, },...
<reponame>Nesk8er/WebLife1<gh_stars>0 # Import any icons for the current rule so the user can edit them # and when finished run icon-exporter.py. # Author: <NAME> (<EMAIL>), Feb 2013. import golly as g from glife import getminbox, pattern from glife.text import make_text from glife.BuiltinIcons import circles, ...
<gh_stars>100-1000 /* VKGL (c) 2018 <NAME> * * This code is licensed under MIT license (see LICENSE.txt for details) */ #include "OpenGL/entrypoints/GL3.0/gl_gen_vertex_arrays.h" #include "OpenGL/context.h" #include "OpenGL/globals.h" static bool validate(OpenGL::Context* in_context_ptr, const ...
import 'core-js'; import 'zone.js/dist/zone'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic' import { BrowserModule } from '@angular/platform-browser' import { CommonModule } from '@angular/common' import { HttpModule } from '@angular/http' import { NgModule } from '@angular/core' import {...
<gh_stars>1-10 /*========================================================================= Program: ParaView Module: $RCSfile$ Copyright (c) Kitware, Inc. All rights reserved. See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details. This software is distributed WITHOUT ANY WA...
import sqlite3 conn = sqlite3.connect('northwind_small.sqlite3') cursor = conn.cursor() #What are the most expensive items in the database query1 = ''' SELECT ProductName, UnitPrice FROM Product ORDER BY UnitPrice DESC LIMIT 10; ''' result = cursor.execute(query1).fetchall() print(f'Ten Most Expensive Items {res...
<reponame>ckamtsikis/cmssw<gh_stars>100-1000 // -*- C++ -*- // // Package: L1TMicroGMTInputProducer // Class: L1TMicroGMTInputProducer // /**\class L1TMicroGMTInputProducer L1TMicroGMTInputProducer.cc L1Trigger/L1TGlobalMuon/plugins/L1TMicroGMTInputProducer.cc Description: Takes txt-file input and produces ba...
<reponame>book-soul/bool-soul-server<filename>src/controller/player_statement.controller.ts import { Controller, Get, Body, BadRequestException, Post, UseGuards, Param, NotFoundException, Query } from '@nestjs/common'; import { ExMessage } from '../exception/message'; import { AuthGuard } from '@nestjs/passport'; impor...
<filename>src/app/blocks/services/spotify.service.ts import { ArtistsResponse, Paginated } from './../interface/all'; import { environment } from './../../../environments/environment'; import { HttpClient, HttpParams } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { map } from 'rxjs/op...
/* Copyright [2020] [IBM Corporation] 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 i...
<gh_stars>1-10 import { execute, SimulatorResult } from './Simulator'; import Logger from './Logger'; import { readFromCommandLine } from './SimulatorSetupReader'; const logSimulationResult = (simulatorResult: SimulatorResult): void => Logger.info(` zombies\` score: ${simulatorResult.zombieScore} zombies\` p...
<reponame>venkateshpotluri/jacdac-docs import { useState } from "react" // eslint-disable-next-line @typescript-eslint/no-unused-vars export function useSecret(id: string) { const [value, setValue] = useState("") return { value, setValue, } }
# -*- coding: utf-8 -*- """ Created on Sat Oct 27 10:24:02 2018 @author: Martin """ import pickle from tkinter import * from tkinter import filedialog class monApp: def __init__(self): self.fen = Tk() self.positionListe =0 self.ListeDePersonnes = [] self.pr...
<filename>src/core/room.ts import * as Koa from 'koa'; import { getLuminaireIdList, getLuminaire, Luminaire, SerializedLuminaire, getLuminaires, } from './luminaire'; import { addGroup, createGroup } from './group'; export interface Coordinate { x: number; y: number; z?: number; } type Zone = [Coordin...
/* * @Author: <NAME> * @Date: 2020-05-12 14:52:22 * @LastEditTime: 2020-06-08 15:51:33 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: \DevUIHelper-LSP V4.0\server\src\GlobalData\GlobalData.ts */ import { ParseOption, TreeError } from '../yq-Parser/type'; import { HTMLAS...
#!/usr/bin/env python3 # Initial stock of the coffee machine water, milk, beans, disposable_cups, money = (400, 540, 120, 9, 550) def initial_stock(): """This function will display the current stock""" print(f"{water} of water") print(f"{milk} of milk") print(f"{beans} of coffee beans") print(f"{d...
<reponame>PegasisForever/jackson-js /** * @packageDocumentation * @module Decorators */ import { JsonFormatDecorator } from '../@types'; /** * Value enumeration used for indicating preferred Shape; translates loosely to JSON types. */ export declare enum JsonFormatShape { /** * Marker enum value that indi...
export class AsyncEmitter { async emitAsync(event: string | symbol, ...args: any[]): Promise<boolean> { // @ts-ignore const events = this._events; let callbacks = events[event]; if (!callbacks) { return false; } // helper function to reuse as much code as possible const run = (cb) =>...
import { RandomListMapper } from 'Config/Mappers/RandomList.mapper.dto'; import { CreateListResponseDto, FindListResponseDto, ListInfoResponseDto, } from 'Core/Dtos/RandomList/RandomList.dtos'; import { IRandomListService } from 'Core/Ports/IRandomLists.service'; import { NextFunction, Request, Response } from 'e...
<filename>contrib/tests/__init__.py from .test_core import BackendsTest
import React, { useContext } from 'react'; import { Route, RouteProps } from 'react-router'; import { AuthorizationContext, AuthorizationProviderProps } from '../AuthorizationProvider'; import RouteRedirect from '../RouteRedirect'; export type RedirectProps = Partial<Pick<AuthorizationProviderProps, 'redirectTo'>>; /...
<reponame>tdegeus/xtensor-python /*************************************************************************** * Copyright (c) <NAME>, <NAME> and <NAME> * * Copyright (c) QuantStack * * * * D...
from django.db import models import os import random from PIL import Image # Create your models here. def get_filename_ext(filepath): base_name = os.path.basename(filepath) name, ext = os.path.splitext(base_name) return name, ext def upload_image_path(instance, filename): # print(instance) #prin...
import mongoose from 'mongoose'; import { ISolutionModel } from './SolutionModel'; import { IUserModel } from './UserModel'; interface ITeam { name: string; users?: IUserModel[]; solutions?: ISolutionModel[]; } export interface ITeamModel extends ITeam, mongoose.Document {} const schema = new mongoose.Schema( ...
from django.apps import AppConfig class UsersAppConfig(AppConfig): name = 'taxinnovation.apps.users' verbose_name = 'Usuarios' def ready(self): import taxinnovation.apps.users.signals # noqa
# -*- coding: utf-8 -*- """ meraki_sdk This file was automatically generated for meraki by APIMATIC v2.0 ( https://apimatic.io ). """ class UpdateOrganizationBrandingPoliciesPrioritiesModel(object): """Implementation of the 'updateOrganizationBrandingPoliciesPriorities' model. TODO: t...
import React from 'react' import styled from '@emotion/styled' import { themeFunc, ITheme } from '../../../theme' import Paragraph from '../../atoms/Paragraph' interface Props { siteTitle: string siteContact: { email: string phone: string address: string orgnr: string } } const Footer = ({ sit...
<reponame>Kanaderu/spiking-ddpg-mapless-navigation /** * @file /include/ecl/devices/modes.hpp * * @brief Device modes. * * @date October, 2009 **/ /***************************************************************************** ** Ifdefs *****************************************************************************/...
<reponame>benkiel/guidetool from mojo.roboFont import OpenWindow from guideTool.defaults import GuideToolDefaultsWindowController OpenWindow(GuideToolDefaultsWindowController)
<reponame>connect-foundation/2019-08 import React, { useState } from "react"; import styled, { css } from "styled-components"; import { CustomLoginInput } from "presentation/components/atomic-reusable/custom-login-input"; import { CustomButton } from "presentation/components/atomic-reusable/custom-button"; import { App...
<gh_stars>1-10 import pickle from datetime import datetime import pandas as pd from fastapi import FastAPI with open("model.pkl", "rb") as f: model_pipeline = pickle.load(f) app = FastAPI() @app.get("/predict") def predict( pickup_latitude: float, pickup_longitude: float, dropoff_latitude: float, ...
End of preview. Expand in Data Studio

This is mix two of three in a ten billion token pre-training cirriculum.

Dataset Rows Token share
Cosmopedia-V2 1,755,833 34.97%
FineWeb-Edu 1,220,000 35.01%
DCLM 374,000 15.02%
Math 191,000 9.99%
Code 350,000 5.00%

About 3.336 billion tokens.
Mix one and three can be found here: Hoglet-33/3.33BT-Pre-Training-Mix-One-Of-Three, Hoglet-33/3.33BT-Pre-Training-Mix-Three-Of-Three

Downloads last month
16

Collection including Hoglet-33/3.33BT-Pre-Training-Mix-Two-Of-Three