text stringlengths 201 300k | source_other stringlengths 180 1.21k |
|---|---|
<reponame>bopopescu/BEMOSSx
import logging
import sys
from volttron.platform.agent import BaseAgent, PublishMixin, periodic
from volttron.platform.agent import utils, matching
from volttron.platform.messaging import headers as headers_mod, topics
utils.setup_logging()
_log = logging.getLogger(__name__)
class TestRe... | {'dir': 'python', 'id': '624343', 'max_stars_count': '0', 'max_stars_repo_name': 'bopopescu/BEMOSSx', 'max_stars_repo_path': 'Agents/TestRegistrationAgent/testregistrationAgent/agent.py', 'n_tokens_mistral': 1293, 'n_tokens_neox': 1248, 'n_words': 270} |
using System;
using Eklee.Azure.Functions.GraphQl.Repository.DocumentDb;
using Eklee.Azure.Functions.GraphQl.Repository.Http;
using Eklee.Azure.Functions.GraphQl.Repository.InMemory;
namespace Eklee.Azure.Functions.GraphQl
{
public interface IModelConventionInputBuilder<TSource> where TSource : class
{
InMemoryCo... | {'dir': 'c-sharp', 'id': '7138376', 'max_stars_count': '67', 'max_stars_repo_name': 'seekdavidlee/Eklee-Azure-Functions-GraphQl', 'max_stars_repo_path': 'Eklee.Azure.Functions.GraphQl/IModelConventionInputBuilder.cs', 'n_tokens_mistral': 243, 'n_tokens_neox': 228, 'n_words': 36} |
import socket
if "__main__" == __name__:
try:
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM);
print("create socket succ!");
sock.bind(('127.0.0.1', 6010));
print("bind socket succ!");
sock.listen(5);
print("listen succ!");
except:
... | {'dir': 'python', 'id': '9241120', 'max_stars_count': '0', 'max_stars_repo_name': 'mabotech/mabo.io', 'max_stars_repo_path': 'py/AK/test/ak_server2.py', 'n_tokens_mistral': 242, 'n_tokens_neox': 227, 'n_words': 51} |
import ControlScheme from "src/components/player/ControlScheme";
const Player = "Player";
Crafty.c(Player, {
init() {
this.reset();
},
reset() {
if (this.has(ControlScheme)) {
this.removeComponent(ControlScheme);
}
}
});
export default Player;
| {'dir': 'javascript', 'id': '177390', 'max_stars_count': '19', 'max_stars_repo_name': 'speedlazer/game-play', 'max_stars_repo_path': 'src/components/player/Player.js', 'n_tokens_mistral': 91, 'n_tokens_neox': 88, 'n_words': 17} |
<gh_stars>0
import unittest
import numpy as np
from graphz.dataset import GraphDataset
class TestCreation(unittest.TestCase):
def setUp(self):
# This is NOT symmetric.
self.sample_A = np.matrix([
[1.0, 0.1, 0.0, 0.3],
[0.7, 0.0, 0.0, 0.4],
[0.0, 0.0, 0.0, 0.9],
... | {'dir': 'python', 'id': '2534506', 'max_stars_count': '0', 'max_stars_repo_name': 'morriswmz/graphz', 'max_stars_repo_path': 'graphz/tests/test_graph_dataset.py', 'n_tokens_mistral': 3772, 'n_tokens_neox': 3438, 'n_words': 647} |
<gh_stars>0
---
layout: post
title: Do not leave any question
date: 2007-09-10 11:00:49.000000000 +09:30
type: post
published: true
status: publish
categories:
- Thinking
tags: [thinking]
meta:
posturl_add_url: 'yes'
_edit_last: '1'
views: '825'
---
<h1></h1>
<div>Remeber: do not leave any question which confuse ... | {'dir': 'html', 'id': '434528', 'max_stars_count': '0', 'max_stars_repo_name': 'dbaeyes/dbaeyes.github.io', 'max_stars_repo_path': '_posts/2007-09-10-do-not-leave-any-question.html', 'n_tokens_mistral': 165, 'n_tokens_neox': 139, 'n_words': 52} |
package lk.ijse.dep.pos.dao.custom.impl;
import lk.ijse.dep.pos.dao.custom.QueryDAO;
import lk.ijse.dep.pos.entity.CustomEntity;
import org.springframework.stereotype.Repository;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import java.sql.Date;
import java.util.ArrayList;
impo... | {'dir': 'java', 'id': '13338155', 'max_stars_count': '0', 'max_stars_repo_name': 'rivinduchamath/POS-Spring-JPA', 'max_stars_repo_path': 'src/lk/ijse/dep/pos/dao/custom/impl/QueryDAOImpl.java', 'n_tokens_mistral': 462, 'n_tokens_neox': 441, 'n_words': 110} |
#ifndef CLM_H
#define CLM_H
#define MUS_VERSION 5
#define MUS_REVISION 14
#define MUS_DATE "19-Apr-13"
/* isn't mus_env_interp backwards? */
#include "sndlib.h"
#ifndef _MSC_VER
#include <sys/param.h>
#endif
#if HAVE_COMPLEX_TRIG
#include <complex.h>
#endif
#if(!defined(M_PI))
#define M_PI 3.1415926535897932... | {'dir': 'c', 'id': '17726', 'max_stars_count': '1', 'max_stars_repo_name': 'SiddGururani/MUSI8903_Assignment_2', 'max_stars_repo_path': '3rdparty/sndlib/clm.h', 'n_tokens_mistral': 21856, 'n_tokens_neox': 20514, 'n_words': 4616} |
const generatePins = async (modules) => {
const { fs, request, csvDir, log, endpoint, stringify, order } = modules;
var columns = {};
var pins = [];
var lastPin = await request(endpoint);
function random () {
return Math.floor(1000000 + Math.random() * 9000000);
};
function incrementString (string... | {'dir': 'javascript', 'id': '9697906', 'max_stars_count': '0', 'max_stars_repo_name': 'nhuesmann/blackhawk-pin-generator', 'max_stars_repo_path': 'bhn_generate_pins.js', 'n_tokens_mistral': 532, 'n_tokens_neox': 485, 'n_words': 107} |
<gh_stars>0
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ProductDto.cs" company="">
// Copyright (c) 2013 <NAME>, for OrderDynamics coding test. All Rights Reserved.
// </copyright>
// ------------------------------------... | {'dir': 'c-sharp', 'id': '1001324', 'max_stars_count': '0', 'max_stars_repo_name': 'prototypev/coding-tests', 'max_stars_repo_path': 'WingtipToys/WingtipToys.Core/Dtos/ProductDto.cs', 'n_tokens_mistral': 240, 'n_tokens_neox': 236, 'n_words': 73} |
const languageSelect = document.getElementById('languages')
const sentenceInput = document.getElementById('text')
const resultText = document.getElementById('stopwordsRemoved')
function updateSentence() {
const language = languageSelect.value
const oldString = sentenceInput.value.split(' ')
const newString = sw.... | {'dir': 'javascript', 'id': '10090297', 'max_stars_count': '176', 'max_stars_repo_name': 'joshmorenx/CitySends', 'max_stars_repo_path': 'blog/static/blog/stopword/demo/stopword-app.js', 'n_tokens_mistral': 324, 'n_tokens_neox': 321, 'n_words': 72} |
<filename>src/Image Splitter.pyw<gh_stars>0
import sys
from PyQt5 import QtWidgets, QtGui, QtCore
from PyQt5.QtCore import *
from PIL import Image
from PIL.ImageQt import ImageQt
font = QtGui.QFont("Arial", 12)
def splitImage(filename, split_x, split_y, foldername, return_list = False):
im = Image.open(filename)
... | {'dir': 'python', 'id': '5249356', 'max_stars_count': '0', 'max_stars_repo_name': 'YunusEmre0037/Image-Splitter', 'max_stars_repo_path': 'src/Image Splitter.pyw', 'n_tokens_mistral': 3785, 'n_tokens_neox': 3588, 'n_words': 574} |
<filename>src/components/Tables/Tables.tsx<gh_stars>0
import React, { useState } from 'react'
import { columns as column } from './data/columns'
const Tables =(props:any)=>{
const seller_data = props.sellerData;
const buyer_data =props.buyerData;
let sellerAndBuyerData:any = {...seller_data,...buyer_data}... | {'dir': 'typescript', 'id': '2608088', 'max_stars_count': '0', 'max_stars_repo_name': 'messyKassaye/electron-printer', 'max_stars_repo_path': 'src/components/Tables/Tables.tsx', 'n_tokens_mistral': 3425, 'n_tokens_neox': 3278, 'n_words': 593} |
package com.jstappdev.e4client.ui;
import android.annotation.SuppressLint;
import android.graphics.Color;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import android... | {'dir': 'java', 'id': '3234122', 'max_stars_count': '0', 'max_stars_repo_name': 'j05t/e4client', 'max_stars_repo_path': 'app/src/main/java/com/jstappdev/e4client/ui/ConnectionFragment.java', 'n_tokens_mistral': 2061, 'n_tokens_neox': 1919, 'n_words': 346} |
<gh_stars>0
import React, { ChangeEvent, Component, createRef } from 'react';
import FormCheckboxGroup from '../../components/form/FormCheckboxGroup';
import { RadioChangeEventHandler } from '../../components/form/FormRadio';
import FormRadioGroup from '../../components/form/FormRadioGroup';
import PageHeading from '..... | {'dir': 'typescript', 'id': '1471650', 'max_stars_count': '0', 'max_stars_repo_name': 'markhiveit/explore-education-statistics', 'max_stars_repo_path': 'src/explore-education-statistics-frontend/src/prototypes/data-table/PrototypeDataTableV2.tsx', 'n_tokens_mistral': 5007, 'n_tokens_neox': 4698, 'n_words': 812} |
/**
* Provides a wrapper to interact with the security configuration
*/
var jenkins = require('../util/jenkins');
/**
* Calls a stapler post method to save the first user settings
*/
exports.saveFirstUser = function($form, success, error) {
jenkins.staplerPost(
'/setupWizard/createAdminUser',
$form,
functi... | {'dir': 'javascript', 'id': '2916345', 'max_stars_count': '637', 'max_stars_repo_name': '1st/jenkins', 'max_stars_repo_path': 'war/src/main/js/api/securityConfig.js', 'n_tokens_mistral': 438, 'n_tokens_neox': 385, 'n_words': 82} |
<reponame>The-Graphe-A-Design-Studio/member-directory<filename>app/Http/Controllers/api/v1/user/UserController.php
<?php
namespace App\Http\Controllers\api\v1\user;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Facades\Auth;
use Illuminate\Http\Request;
use App\Us... | {'dir': 'php', 'id': '11521909', 'max_stars_count': '0', 'max_stars_repo_name': 'The-Graphe-A-Design-Studio/member-directory', 'max_stars_repo_path': 'app/Http/Controllers/api/v1/user/UserController.php', 'n_tokens_mistral': 1927, 'n_tokens_neox': 1879, 'n_words': 318} |
<reponame>adityaagassi/ympimisdev
<!DOCTYPE html>
<html>
<head>
<title>YMPI 情報システム</title>
<!-- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> -->
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, user-scalable=yes, initial-scale=1... | {'dir': 'php', 'id': '6257201', 'max_stars_count': '1', 'max_stars_repo_name': 'adityaagassi/ympimisdev', 'max_stars_repo_path': 'resources/views/general_affairs/report/report_pr.blade.php', 'n_tokens_mistral': 11114, 'n_tokens_neox': 8133, 'n_words': 1692} |
<?php
namespace Cruxinator\ClassFinder\Tests;
use Composer\Autoload\ClassLoader;
use Cruxinator\ClassFinder\ClassFinder;
use ReflectionClass;
use ReflectionProperty;
/**
* Class ClassFinderConcrete.
* @property bool classLoaderInit
* @property null|array optimisedClassMap
* @property array loadedNamespaces
* @... | {'dir': 'php', 'id': '12353032', 'max_stars_count': '0', 'max_stars_repo_name': 'cruxinator/ClassFinder', 'max_stars_repo_path': 'tests/ClassFinderConcrete.php', 'n_tokens_mistral': 726, 'n_tokens_neox': 728, 'n_words': 165} |
import nock from 'nock';
import path from 'path';
import { fetchCsvBasedTimeline } from './fetch-timeline';
const TESTDATA_DIR = path.resolve(__dirname, '..', '..', 'testdata');
describe('fetchCsvBasedTimeSeries', () => {
beforeEach(() => {
nock(
'https://raw.githubusercontent.com/CSSEGISandD... | {'dir': 'typescript', 'id': '4893254', 'max_stars_count': '8', 'max_stars_repo_name': 'svandriel/covid19-graphql', 'max_stars_repo_path': 'src/fetching/fetch-timeline.spec.ts', 'n_tokens_mistral': 424, 'n_tokens_neox': 398, 'n_words': 48} |
<div class="row">
<div class="col-xs-12">
<?php $location_widget_activated = osc_get_preference('show-locations', 'frclassifieds'); ?>
<?php $contry_code = get_user_country_code();
if($contry_code !=''){
$code = $contry_code;
}else{
$code = 0;
... | {'dir': 'php', 'id': '12189493', 'max_stars_count': '0', 'max_stars_repo_name': 'EloneSampaio/classificado-da-fronteira', 'max_stars_repo_path': 'oc-content/themes/frclassifieds/inc/locations.php', 'n_tokens_mistral': 369, 'n_tokens_neox': 328, 'n_words': 57} |
<filename>trackme/lib/py2/past/__init__.py
# coding=utf-8
"""
past: compatibility with Python 2 from Python 3
===============================================
``past`` is a package to aid with Python 2/3 compatibility. Whereas ``future``
contains backports of Python 3 constructs to Python 2, ``past`` provides
implement... | {'dir': 'python', 'id': '4057288', 'max_stars_count': '1', 'max_stars_repo_name': 'duanshuaimin/trackme', 'max_stars_repo_path': 'trackme/lib/py2/past/__init__.py', 'n_tokens_mistral': 935, 'n_tokens_neox': 838, 'n_words': 369} |
<filename>src/main/java/br/rickcm/transacaoapp/TransacaoAppApplication.java
package br.rickcm.transacaoapp;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.d... | {'dir': 'java', 'id': '5469851', 'max_stars_count': '0', 'max_stars_repo_name': 'rick-cm/desafio-transacao', 'max_stars_repo_path': 'src/main/java/br/rickcm/transacaoapp/TransacaoAppApplication.java', 'n_tokens_mistral': 183, 'n_tokens_neox': 180, 'n_words': 25} |
<reponame>JetBrains/teamcity-vmware-plugin<gh_stars>10-100
/*
* Copyright 2000-2021 JetBrains s.r.o.
*
* 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/... | {'dir': 'java', 'id': '3108380', 'max_stars_count': '17', 'max_stars_repo_name': 'JetBrains/teamcity-vmware-plugin', 'max_stars_repo_path': 'cloud-vmware-server/src/main/java/jetbrains/buildServer/clouds/vmware/connector/VmwareTaskWrapper.java', 'n_tokens_mistral': 1023, 'n_tokens_neox': 978, 'n_words': 260} |
<filename>chapter_004/src/test/java/ru/job4j/list/DynamicArrayTest.java<gh_stars>0
package ru.job4j.list;
import org.hamcrest.core.Is;
import org.junit.Before;
import org.junit.Test;
import java.util.ConcurrentModificationException;
import java.util.Iterator;
import static org.hamcrest.Matchers.is;
import static org... | {'dir': 'java', 'id': '2443403', 'max_stars_count': '0', 'max_stars_repo_name': 'IvanBelyaev/ibelyaev', 'max_stars_repo_path': 'chapter_004/src/test/java/ru/job4j/list/DynamicArrayTest.java', 'n_tokens_mistral': 739, 'n_tokens_neox': 715, 'n_words': 134} |
<reponame>kernelcase/autoposter-web
package com.facebook_autoposter.robot.core.facebook;
import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import javax.inject.Inject;
import com.facebook_autoposter.robot.exception.BusinessException;
import com.facebook_autop... | {'dir': 'java', 'id': '18108284', 'max_stars_count': '0', 'max_stars_repo_name': 'kernelcase/autoposter-web', 'max_stars_repo_path': 'autopost/src/main/java/com/facebook_autoposter/robot/core/facebook/CreateFacebookEJB.java', 'n_tokens_mistral': 707, 'n_tokens_neox': 609, 'n_words': 99} |
//
// TempDataGenerator.h
// MHelloNestedTemplate
//
// Created by Chen,Meisong on 2017/11/6.
// Copyright © 2017年 hellochenms. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "News.h"
@interface TempDataGenerator : NSObject
+ (NSArray<News *> *)newses;
@end
| {'dir': 'c', 'id': '2158658', 'max_stars_count': '0', 'max_stars_repo_name': 'hellochenms/MHelloNestedTemplate', 'max_stars_repo_path': 'MHelloNestedTemplate/Src/Data/TempDataGenerator.h', 'n_tokens_mistral': 110, 'n_tokens_neox': 100, 'n_words': 24} |
A cleaned version of the stack.
Based on the language distribution in the original data, only the following high-resource programming languages are retained: java, javascript, php, python, c-sharp, typescript, c, cpp, go, html, ruby, kotlin, shell, rust. Non-conventional programming languages such as markdown and json are removed.
All non-English files are removed.
Low-quality files are heuristically removed.
This version has also been decontaminated with respect to the following benchmarks based on n-gram overlap:
- GLUE (dev set of SST-2, CoLA, QQP, WNLI, RTE, QNLI, MNLI; test set of MPRC)
- SIQA, PIQA, QASC, CSQA, HellaSWAG (all dev set)
- CONLL 2003
- BLIMP
- MAIN
- BoolQ (dev set)
- WinoGrande (dev set)
- ANLI (test set)
- ARC easy and challenge (test set)
- RACE middle and high (test set)
- MMLU (dev, val, and test sets)
- MATH, GSM8K (test set)
- HumanEval (test set)
- MBPP (all 974 questions)
- GPQA (diamond)
Dataset Statistics
Number of samples: 94,940,432.
Size of downloaded parquet files: 142G.
Other Languages
In the zh branch, samples containing Chinese text (e.g. comments, strings) are also collected (4,124,610 samples, 6.1G parquet files). They are processed by the same pipeline and do not overlap with samples in the main branch. You can download them by specifying the --revision argument:
huggingface-cli download --repo-type dataset Geralt-Targaryen/stack --revision zh --local-dir .
- Downloads last month
- 100