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}
<reponame>olukas/hazelcast-go-client // Copyright (c) 2008-2018, Hazelcast, Inc. All Rights Reserved. // // 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/L...
{'dir': 'go', 'id': '1533102', 'max_stars_count': '0', 'max_stars_repo_name': 'olukas/hazelcast-go-client', 'max_stars_repo_path': 'internal/connection_manager.go', 'n_tokens_mistral': 2707, 'n_tokens_neox': 2602, 'n_words': 673}
<filename>resources/views/admin/blogs/create.blade.php @extends('admin.layouts.master') @section("title", "Steller Winds") @section('content') <style type="text/css"> .red{ color:#FF0000; } .panel-body .form-control{ color: #666666; } </style> <script src="//cdn.ckeditor.com/4.5.10...
{'dir': 'php', 'id': '9773217', 'max_stars_count': '1', 'max_stars_repo_name': 'zhenangroup/cartumo', 'max_stars_repo_path': 'resources/views/admin/blogs/create.blade.php', 'n_tokens_mistral': 1173, 'n_tokens_neox': 1092, 'n_words': 191}
using System; using System.Collections.Generic; using System.Text; using Microsoft.Azure.Storage; using Microsoft.Azure.Storage.Auth; namespace pelazem.azure.storage { public class Common { #region Storage Primitives public static StorageCredentials GetStorageCredentials(string storageAccountName, ...
{'dir': 'c-sharp', 'id': '2705927', 'max_stars_count': '0', 'max_stars_repo_name': 'plzm/pelazem.azure.storage', 'max_stars_repo_path': 'pelazem.azure.storage/Common.cs', 'n_tokens_mistral': 328, 'n_tokens_neox': 276, 'n_words': 66}
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using TheBezitEstateApp.Web.Models; using TheBezitEstateApp.Web.Interfaces; using Microsoft.AspNetCore.Identity; using TheBezitEstateApp.Data.Entities; namespace TheBezitE...
{'dir': 'c-sharp', 'id': '1536834', 'max_stars_count': '0', 'max_stars_repo_name': 'Kennybello099/BezitEstateApp', 'max_stars_repo_path': 'src/TheBezitEstateApp.Web/Controllers/AccountController.cs', 'n_tokens_mistral': 691, 'n_tokens_neox': 673, 'n_words': 187}
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Job extends Model { protected $fillable = [ 'type_loker', 'company_name', 'company_tagline', 'description_company', 'company_address', 'company_website', 'company_email', 'company_ph...
{'dir': 'php', 'id': '804954', 'max_stars_count': '0', 'max_stars_repo_name': 'mauritswalalayo/jobhun', 'max_stars_repo_path': 'Job.php', 'n_tokens_mistral': 172, 'n_tokens_neox': 171, 'n_words': 29}
// Test the various geometry/position transformations in calorimeter // regions input from the RCT to the GCT emulator. // This used to be done in a class called L1GctMap. #include "DataFormats/L1CaloTrigger/interface/L1CaloRegion.h" #include <iostream> using namespace std; int main() { bool testPass = true; ...
{'dir': 'cpp', 'id': '447250', 'max_stars_count': '852', 'max_stars_repo_name': 'ckamtsikis/cmssw', 'max_stars_repo_path': 'L1Trigger/GlobalCaloTrigger/test/testGctMap.cpp', 'n_tokens_mistral': 388, 'n_tokens_neox': 366, 'n_words': 117}
package de.digitalcollections.iiif.hymir.config; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Optional; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Configuration; @Configuration @Configuratio...
{'dir': 'java', 'id': '12436177', 'max_stars_count': '25', 'max_stars_repo_name': 'cmahnke/iiif-server-hymir', 'max_stars_repo_path': 'src/main/java/de/digitalcollections/iiif/hymir/config/CustomResponseHeaders.java', 'n_tokens_mistral': 833, 'n_tokens_neox': 811, 'n_words': 164}
<reponame>axules/fuzzy-tools import { matchString } from './matchString'; import { matchList } from './matchList'; import { match } from './match'; import { filter } from './filter'; export { match, matchString, matchList, filter }; export default { match, matchString, matchList, filter };
{'dir': 'javascript', 'id': '18114926', 'max_stars_count': '3', 'max_stars_repo_name': 'axules/fuzzy-tools', 'max_stars_repo_path': 'src/index.js', 'n_tokens_mistral': 101, 'n_tokens_neox': 99, 'n_words': 28}
<reponame>userAhmedDean/ahmmmmedddddddddddddddddddddddddddddd const Discord = require('discord.js'); const fs = require('fs'); const client = new Discord.Client(); var prefix = "#" client.on('message', message => { if (!message.content.startsWith(prefix)) return; var args = message.content.split(' ').slice(...
{'dir': 'javascript', 'id': '5977685', 'max_stars_count': '0', 'max_stars_repo_name': 'userAhmedDean/ahmmmmedddddddddddddddddddddddddddddd', 'max_stars_repo_path': 'bot.js', 'n_tokens_mistral': 624, 'n_tokens_neox': 612, 'n_words': 96}
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # Author: kerlomz <<EMAIL>> class LayoutGUI(object): def __init__(self, layout, window_width): self.layout = layout self.window_width = window_width def widget_from_right(self, src, target, width, height, tiny_space=False): target_edge = ...
{'dir': 'python', 'id': '7168809', 'max_stars_count': '2548', 'max_stars_repo_name': 'liepeiming/captcha_trainer', 'max_stars_repo_path': 'gui/utils.py', 'n_tokens_mistral': 725, 'n_tokens_neox': 716, 'n_words': 136}
import React, { useMemo, useRef, useEffect, useCallback } from 'react' import { useFrame } from 'react-three-fiber' import { smoothstep, smootherstep } from 'three/src/math/MathUtils' import { gsap } from 'gsap' import * as THREE from 'three' import { OBJLoader } from "three/examples/jsm/loaders/OBJLoader.js" import { ...
{'dir': 'javascript', 'id': '2938709', 'max_stars_count': '0', 'max_stars_repo_name': 'thomasmeylaers/FPD', 'max_stars_repo_path': 'src/webgl/Progress2.js', 'n_tokens_mistral': 4655, 'n_tokens_neox': 4293, 'n_words': 747}
<filename>frontend/e2e/authenticated/christmas-trees/xmas-tree-application.e2e-spec.ts import { browser, element, by, Key } from 'protractor'; import { ChristmasTreeOrderConfirmation } from './christmas-tree-form-confirmation.po'; import { ChristmasTreeForm } from './christmas-tree-form.po'; describe('Apply for a Chr...
{'dir': 'typescript', 'id': '6173893', 'max_stars_count': '27', 'max_stars_repo_name': '18F/fs-open-forest-platform', 'max_stars_repo_path': 'frontend/e2e/authenticated/christmas-trees/xmas-tree-application.e2e-spec.ts', 'n_tokens_mistral': 3312, 'n_tokens_neox': 3135, 'n_words': 499}
<gh_stars>10-100 package sap.ciep.sdi.webserviceadapter; import org.apache.log4j.LogManager; import org.apache.log4j.Logger; import com.sap.hana.dp.adapter.sdk.AdapterException; import com.sap.hana.dp.adapter.sdk.AdapterRowSet; public abstract class WebserviceResponseRecord { protected static Logger logg...
{'dir': 'java', 'id': '13689939', 'max_stars_count': '25', 'max_stars_repo_name': 'RonaldKonijnenburg/hana-native-adapters', 'max_stars_repo_path': 'WebserviceAdapter/src/sap/ciep/sdi/webserviceadapter/WebserviceResponseRecord.java', 'n_tokens_mistral': 183, 'n_tokens_neox': 171, 'n_words': 38}
import { FunctionDeclaration } from '../components/general/FunctionDeclaration'; import { VariableStatement } from '../components/general/VariableStatement'; import { Decorator } from '../components/decorator/Decorator'; import { Constructor } from '../components/classDeclaration/members/constructor/Constructor'; impor...
{'dir': 'typescript', 'id': '6154944', 'max_stars_count': '3', 'max_stars_repo_name': 'jan-vcapgemini/ts-merger', 'max_stars_repo_path': 'src/tools/MergerTools.ts', 'n_tokens_mistral': 3311, 'n_tokens_neox': 3322, 'n_words': 607}
<reponame>poschis80/android<filename>xpshome/net/components/Unity.java package xpshome.net.components; import android.app.Application; import android.content.Context; import android.support.annotation.NonNull; import android.util.Pair; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetExc...
{'dir': 'java', 'id': '6057817', 'max_stars_count': '1', 'max_stars_repo_name': 'poschis80/android', 'max_stars_repo_path': 'xpshome/net/components/Unity.java', 'n_tokens_mistral': 1575, 'n_tokens_neox': 1554, 'n_words': 372}
export * from './AbsoluteBoardState' export * from './AbsoluteMove' export * from './BoardStateNode' export * from './BoardState' export * from './CubeState' export * from './Dices' export * from './GameConf' export * from './Move' export * from './Ply' export * from './Score'
{'dir': 'typescript', 'id': '6508495', 'max_stars_count': '0', 'max_stars_repo_name': 'tkshio/tsgammon-core', 'max_stars_repo_path': 'src/index.ts', 'n_tokens_mistral': 82, 'n_tokens_neox': 81, 'n_words': 30}
<filename>resources/views/Mailsignature/addedit.blade.php<gh_stars>0 @extends('layouts.app') @section('content') <script type="text/javascript"> var datetime = '<?php echo date('Ymdhis'); ?>'; var mainmenu = '<?php echo $request->mainmenu; ?>'; $(document).ready(function() { if($('#editflg').val()=="2"...
{'dir': 'php', 'id': '12275905', 'max_stars_count': '0', 'max_stars_repo_name': 'RajeshMaster/Accounting', 'max_stars_repo_path': 'resources/views/Mailsignature/addedit.blade.php', 'n_tokens_mistral': 2592, 'n_tokens_neox': 2152, 'n_words': 338}
<?php namespace App\Models; use CodeIgniter\Model; class TransportPrixArticlesModel extends Model{ protected $table = 'g_interne_transport_articles_prix'; protected $DBGroup = 'default'; protected $primaryKey = 'id'; protected $allowedFields = ['zone_id','article_id','prix']; protected $useTimestamps = true...
{'dir': 'php', 'id': '1157478', 'max_stars_count': '0', 'max_stars_repo_name': 'ted1104/Gestion-Jml', 'max_stars_repo_path': 'app/Models/TransportPrixArticlesModel.php', 'n_tokens_mistral': 494, 'n_tokens_neox': 478, 'n_words': 98}
import { createAction, createReducer } from 'redux-act' import { add } from 'ramda' export const togglePause = createAction('worldState/togglePause') export const worldTick = createAction('worldState/worldTick') interface InitialState { paused: boolean timePassed: number } const initialState: InitialState = { ...
{'dir': 'typescript', 'id': '7164507', 'max_stars_count': '0', 'max_stars_repo_name': 'Azein/frontend_sim', 'max_stars_repo_path': 'src/domains/world/WorldState.ts', 'n_tokens_mistral': 226, 'n_tokens_neox': 224, 'n_words': 52}
<reponame>chanzuckerberg/dcp-prototype import typing from backend.corpora.common.corpora_orm import ( Base, DatasetArtifactFileType, UploadStatus, ValidationStatus, ) from tests.unit.backend.fixtures.mock_aws_test_case import CorporaTestCaseUsingMockAWS from tests.unit.backend.utils import BogusDataset...
{'dir': 'python', 'id': '9395450', 'max_stars_count': '2', 'max_stars_repo_name': 'chanzuckerberg/dcp-prototype', 'max_stars_repo_path': 'tests/unit/backend/corpora/common/entities/datasets/__init__.py', 'n_tokens_mistral': 660, 'n_tokens_neox': 639, 'n_words': 146}
$(function () { // constants var SHOW_CLASS = 'show', HIDE_CLASS = 'hide', ACTIVE_CLASS = 'login-item-link--active'; $('.login-list').on('click', '.login-item .login-item-link', function (e) { e.preventDefault(); var $tab = $(this), href = $tab.attr('hre...
{'dir': 'javascript', 'id': '1040496', 'max_stars_count': '0', 'max_stars_repo_name': 'etterwin/DiaVita-Club-s-cabinet', 'max_stars_repo_path': 'school/assets/js/tabsLogin.js', 'n_tokens_mistral': 232, 'n_tokens_neox': 226, 'n_words': 32}
/* * #%L * ********************************************************************** * ORGANIZATION : Pi4J * PROJECT : Pi4J :: Java Examples * FILENAME : MCP4725GpioExample.java * * This file is part of the Pi4J project. More information about * this project can be found here: http://www.pi4j.c...
{'dir': 'java', 'id': '8978491', 'max_stars_count': '0', 'max_stars_repo_name': 'bobpaulin/pi4j', 'max_stars_repo_path': 'pi4j-example/src/main/java/MCP4725GpioExample.java', 'n_tokens_mistral': 850, 'n_tokens_neox': 779, 'n_words': 252}
<gh_stars>1-10 const EventEmitter = require('events'); class MyEmitter extends EventEmitter { } const myEmitter = new MyEmitter(); myEmitter.on('WaterFall', () => { console.log('Please click the photo'); setTimeout(() => { console.log('Please click the picture fast'); }, 3000); }); //...
{'dir': 'javascript', 'id': '862238', 'max_stars_count': '1', 'max_stars_repo_name': 'codewithsom/Website', 'max_stars_repo_path': 'nodejsevents.js', 'n_tokens_mistral': 146, 'n_tokens_neox': 150, 'n_words': 36}
<reponame>wrldwzrd89/older-java-games<filename>LaserTank Improved/src/com/puttysoftware/lasertank/Application.java /* LaserTank: An Arena-Solving Game Copyright (C) 2008-2013 <NAME> Any questions should be directed to the author via email at: <EMAIL> */ package com.puttysoftware.lasertank; import java.awt.Contain...
{'dir': 'java', 'id': '5012989', 'max_stars_count': '0', 'max_stars_repo_name': 'wrldwzrd89/older-java-games', 'max_stars_repo_path': 'LaserTank Improved/src/com/puttysoftware/lasertank/Application.java', 'n_tokens_mistral': 3026, 'n_tokens_neox': 2954, 'n_words': 531}
<reponame>cck-fullstack/graceshopper<filename>client/components/admin-page.js /* eslint-disable complexity */ import React, {Component} from 'react' import {connect} from 'react-redux' import { getItemsThunk, deleteItemThunk, updateItemCountThunk, addItemThunk } from '../store/items' import {getAllUsersThunk, d...
{'dir': 'javascript', 'id': '17140972', 'max_stars_count': '0', 'max_stars_repo_name': 'cck-fullstack/graceshopper', 'max_stars_repo_path': 'client/components/admin-page.js', 'n_tokens_mistral': 1496, 'n_tokens_neox': 1460, 'n_words': 268}
#!/usr/bin/env python3 import os class Utilities : SERVER_IP = "10.10.10.1" SERVER_MAC = "11:55:AB:2E:FF:EF" ROUTER_IP = "192.168.1.1" ROUTER_MAC = "EE:12:1B:25:0F:00" ROUTER_UDP_PORT = 8091 ROUTER_TCP_PORT = 8092 LOCALHOST = "127.0.0.1" BUFFER_SIZE = 4096 N_TEST_C...
{'dir': 'python', 'id': '1256547', 'max_stars_count': '0', 'max_stars_repo_name': 'FedericoCampanozzi/ProjectProgrammazioneDiReti20-Trace1', 'max_stars_repo_path': 'src/utilities.py', 'n_tokens_mistral': 966, 'n_tokens_neox': 882, 'n_words': 187}
<reponame>mjs7231/pkmeter<filename>setup.py #!/usr/bin/python3 from distutils.core import setup from pip.req import parse_requirements from setuptools import find_packages requirements = [str(line.req) for line in parse_requirements('requirements.pip')] setup( name='pkmeter', version='1.0', description='...
{'dir': 'python', 'id': '7238524', 'max_stars_count': '16', 'max_stars_repo_name': 'mjs7231/pkmeter', 'max_stars_repo_path': 'setup.py', 'n_tokens_mistral': 207, 'n_tokens_neox': 197, 'n_words': 37}
<filename>edit/Interactive Features/Getting Started/CS/Form2.cs<gh_stars>0 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Syncfusion.Windows.Forms; using Syncfusion.WinForms.Controls; namespace A...
{'dir': 'c-sharp', 'id': '1138222', 'max_stars_count': '0', 'max_stars_repo_name': 'aTiKhan/winforms-demos', 'max_stars_repo_path': 'edit/Interactive Features/Getting Started/CS/Form2.cs', 'n_tokens_mistral': 592, 'n_tokens_neox': 553, 'n_words': 133}
package com.karateca.ddescriber; /** * Represents the jasmine syntax. */ public enum JasmineSyntax { Version1("ddescribe", "iit"), Version2("fdescribe", "fit"); private String includeDescribe; private String includeIt; JasmineSyntax(String includeDescribe, String includeIt) { this.includeDescribe = i...
{'dir': 'java', 'id': '3605162', 'max_stars_count': '7', 'max_stars_repo_name': 'andresdominguez/ddescriber', 'max_stars_repo_path': 'src/com/karateca/ddescriber/JasmineSyntax.java', 'n_tokens_mistral': 158, 'n_tokens_neox': 153, 'n_words': 35}
<reponame>rivaldivirgiawan/testsimrs @extends('layouts.master') @section('content') <div class="main"> <div class="main-content"> <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <!-- TABLE HOVER --> <div class="panel"> <div class="panel-heading"> <h...
{'dir': 'php', 'id': '6833463', 'max_stars_count': '0', 'max_stars_repo_name': 'rivaldivirgiawan/testsimrs', 'max_stars_repo_path': 'resources/views/transaksi/index.blade.php', 'n_tokens_mistral': 1105, 'n_tokens_neox': 620, 'n_words': 81}
<filename>src/CSBill/ClientBundle/Tests/ContactTypesExtensionTest.php<gh_stars>0 <?php /* * This file is part of CSBill package. * * (c) 2013-2015 <NAME> <<EMAIL>> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace CSBill\ClientBundle\Te...
{'dir': 'php', 'id': '2341378', 'max_stars_count': '0', 'max_stars_repo_name': 'kprempeh/app.invoice', 'max_stars_repo_path': 'src/CSBill/ClientBundle/Tests/ContactTypesExtensionTest.php', 'n_tokens_mistral': 646, 'n_tokens_neox': 623, 'n_words': 128}
/* To run: jasmine-node updateTelevision....spec PUT new information for an existing amplifier *Fails because the fixed id doesn't exist */ var frisby = require('../node_modules/frisby'); var id = '553c3c90c0541225496a8481'; var URL = 'http://localhost:3000/televisions/' + id; frisby.create('PUT new values for...
{'dir': 'javascript', 'id': '18790650', 'max_stars_count': '0', 'max_stars_repo_name': 'pjlinn/homeTheaterNodeApp', 'max_stars_repo_path': 'fullHomeTheaterApp/server/spec/updateTelevision_spec.js', 'n_tokens_mistral': 379, 'n_tokens_neox': 306, 'n_words': 80}
//////////////////////////////////////////////////////////////////////////////// // // CopyRight (c) 2016 <NAME> // // Author : <NAME> // // Description : Thread safe hash table // //////////////////////////////////////////////////////////////////////////////// #pragma once #include "SFTypedefs.h" #i...
{'dir': 'c', 'id': '2763618', 'max_stars_count': '1', 'max_stars_repo_name': 'blue3k/StormForge', 'max_stars_repo_path': 'Engine/Src/SFCore/Container/SFHashTable2.h', 'n_tokens_mistral': 6396, 'n_tokens_neox': 4982, 'n_words': 937}
<filename>src/fptr10.h<gh_stars>0 #include <nan.h> #include "libfptr10.h" #include "utils.h" class Fptr10 : public Nan::ObjectWrap { public: libfptr_handle fptr; double x; static NAN_MODULE_INIT(Init); static NAN_METHOD(New); static NAN_METHOD(IsOpened); static NAN_METHOD(Create); static NAN_METHOD(De...
{'dir': 'c', 'id': '6799377', 'max_stars_count': '0', 'max_stars_repo_name': 'pbardov/node-atol-wrapper', 'max_stars_repo_path': 'src/fptr10.h', 'n_tokens_mistral': 263, 'n_tokens_neox': 249, 'n_words': 47}
<filename>VirtualWork.WinForms/Providers/PasswordManagerGroupsProvider.cs using System.Linq; using System.Windows.Forms; using LanguageService; using VirtualWork.Interfaces.Enums; using VirtualWork.Persistence.Repositories; namespace VirtualWork.WinForms.Providers { public class PasswordManagerGroupsProvider...
{'dir': 'c-sharp', 'id': '10374901', 'max_stars_count': '0', 'max_stars_repo_name': 'Mortens4444/VirtualWork', 'max_stars_repo_path': 'VirtualWork.WinForms/Providers/PasswordManagerGroupsProvider.cs', 'n_tokens_mistral': 338, 'n_tokens_neox': 295, 'n_words': 49}
<reponame>openeuler-mirror/raspberrypi-build<gh_stars>0 #!/bin/bash systemctl enable sshd systemctl enable systemd-timesyncd systemctl enable hciuart systemctl enable haveged echo openEuler > /etc/hostname echo "openeuler" | passwd --stdin root if [ -f /usr/share/zoneinfo/Asia/Shanghai ]; then if [ -f /etc/localtim...
{'dir': 'shell', 'id': '315684', 'max_stars_count': '0', 'max_stars_repo_name': 'openeuler-mirror/raspberrypi-build', 'max_stars_repo_path': 'config/chroot.sh', 'n_tokens_mistral': 257, 'n_tokens_neox': 249, 'n_words': 63}
<filename>nyla.solutions.xml/src/main/java/nyla/solutions/xml/XmlXslDecorator.java package nyla.solutions.xml; import nyla.solutions.core.data.Textable; import nyla.solutions.core.exception.RequiredException; import nyla.solutions.core.exception.SystemException; import nyla.solutions.core.patterns.decorator.TextDec...
{'dir': 'java', 'id': '704284', 'max_stars_count': '0', 'max_stars_repo_name': 'nyla-solutions/nyla-xml', 'max_stars_repo_path': 'nyla.solutions.xml/src/main/java/nyla/solutions/xml/XmlXslDecorator.java', 'n_tokens_mistral': 1085, 'n_tokens_neox': 1036, 'n_words': 205}
/* * Copyright (C) 2013 <NAME> * * 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 writing, so...
{'dir': 'java', 'id': '8806040', 'max_stars_count': '1', 'max_stars_repo_name': 'JulienDev/BugDroid', 'max_stars_repo_path': 'app/src/main/java/fr/julienvermet/bugdroid/ui/phone/BugActivity.java', 'n_tokens_mistral': 1849, 'n_tokens_neox': 1755, 'n_words': 432}
package camelinaction; import java.util.List; /** * JMX MBean to find deprecated Camel components. * <p/> * This MBean is what hawtio uses to talk to the backend when it needs * to query the JVM for Camel applications that runs deprecated Camel components. */ public interface CamelComponentDeprecatedMBean { ...
{'dir': 'java', 'id': '5798866', 'max_stars_count': '3', 'max_stars_repo_name': 'maniac787/Apache-Camel-book-camel-in-action-2', 'max_stars_repo_path': 'chapter19/hawtio-custom-plugin/src/main/java/camelinaction/CamelComponentDeprecatedMBean.java', 'n_tokens_mistral': 105, 'n_tokens_neox': 98, 'n_words': 43}
<!DOCTYPE html> <html lang="en"> <head> <?php include 'session_view.php';?> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>AdminLTE 3 | Dashboard</title> <!-- Google Font: Source Sans Pro --> <link rel="stylesheet" href="https://fonts.googleapis.com/css?...
{'dir': 'php', 'id': '8017889', 'max_stars_count': '0', 'max_stars_repo_name': 'vinh37/football-web', 'max_stars_repo_path': 'application/views/insertMatch_view.php', 'n_tokens_mistral': 1787, 'n_tokens_neox': 1640, 'n_words': 290}
<reponame>aAmanHussain/attainu-ui-service import React from 'react'; import { InputComponent, SelectTagComponent } from '../'; import { SortConfig } from '../../config/sort.config'; import { FilterConfig } from '../../config/filter.config'; export const SearchComponent = ({ term, filter, sort, handleChange, handleSubm...
{'dir': 'typescript', 'id': '902020', 'max_stars_count': '0', 'max_stars_repo_name': 'aAmanHussain/attainu-ui-service', 'max_stars_repo_path': 'src/components/search/search.component.tsx', 'n_tokens_mistral': 217, 'n_tokens_neox': 219, 'n_words': 50}
/** * @class Oskari.statistics.statsgrid.StatsGridBundle * * Definitpation for bundle. See source for details. */ Oskari.clazz.define("Oskari.statistics.statsgrid.StatsGridBundle", /** * @method create called automatically on construction * @static */ function () { }, { "create"...
{'dir': 'javascript', 'id': '15270685', 'max_stars_count': '17', 'max_stars_repo_name': 'tsallinen/oskari-frontend', 'max_stars_repo_path': 'packages/statistics/statsgrid/bundle.js', 'n_tokens_mistral': 3168, 'n_tokens_neox': 2898, 'n_words': 315}
class MarkDownElement: def __init__(self, text=''): self._text = text def __str__(self): return self.text def __add__(self, other): return self.text + str(other) def __radd__(self, other): return str(other) + self.text @property def text(self): return ...
{'dir': 'python', 'id': '3262521', 'max_stars_count': '4', 'max_stars_repo_name': 'joshuaskelly/wick', 'max_stars_repo_path': 'wick/generators/markdown/elements.py', 'n_tokens_mistral': 664, 'n_tokens_neox': 632, 'n_words': 171}
<!-- Optional JavaScript --> <!-- jQuery first, then Popper.js, then Bootstrap JS --> <script src="{{base_url('/assets/libs/jquery-3.3.1.min.js')}}"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="<KEY>" crossorigin="anonymous"></script> <script src="https:/...
{'dir': 'php', 'id': '10458181', 'max_stars_count': '0', 'max_stars_repo_name': 'iguxa/test_sof_com_bank', 'max_stars_repo_path': 'application/views/templates/includes/footer_scripts.blade.php', 'n_tokens_mistral': 311, 'n_tokens_neox': 296, 'n_words': 36}
package main import ( "fmt" "github.com/MG-RAST/Shock/conf" e "github.com/MG-RAST/Shock/errors" "github.com/MG-RAST/Shock/store" "github.com/MG-RAST/Shock/store/filter" "github.com/MG-RAST/Shock/store/indexer" "github.com/MG-RAST/Shock/store/user" "github.com/jaredwilkening/goweb" "io" "labix.org/v2/mgo/bson...
{'dir': 'go', 'id': '999310', 'max_stars_count': '1', 'max_stars_repo_name': 'prinsmike/Shock', 'max_stars_repo_path': 'shock-server/nodeController.go', 'n_tokens_mistral': 4906, 'n_tokens_neox': 4236, 'n_words': 1017}
<reponame>danmysak/polymapper const DEFAULT_MARKER_RADIUS = 20; // In Google Maps units (~meters), if divided by RADIUS_COEFFICIENT const MIN_MARKER_RADIUS = 1; const MAX_MARKER_RADIUS = 500; const RADIUS_COEFFICIENT = 2000; const DEFAULT_MARKER_COLOR = '#0000ff'; const DEFAULT_POLYGON_COLOR = '#ff0000'; const MARKER...
{'dir': 'javascript', 'id': '9956177', 'max_stars_count': '0', 'max_stars_repo_name': 'danmysak/polymapper', 'max_stars_repo_path': 'src/config/params.js', 'n_tokens_mistral': 315, 'n_tokens_neox': 277, 'n_words': 71}
# # When publishing work that uses these basis sets, please use the following citation: # # <NAME>, Theor. Chem. Acc. (1998) 99:366; addendum Theor. Chem. Acc. (2002) 108:365; # revision Theor. Chem. Acc. (2006) 115:441. Basis sets available from the Dirac web site, # http://dirac.chem.sdu.dk. Pt = [[0, -1, [6234208...
{'dir': 'python', 'id': '11091731', 'max_stars_count': '501', 'max_stars_repo_name': 'QuESt-Calculator/pyscf', 'max_stars_repo_path': 'pyscf/gto/basis/dyall_tz.py', 'n_tokens_mistral': 9999, 'n_tokens_neox': 7410, 'n_words': 1494}
import { NgModule } from '@angular/core'; import { SharedModule } from '../shared/shared.module'; import { BmProcessComponent } from './bm-process/bm-process.component'; import { BmProcessDiagramComponent } from './bm-process-diagram/bm-process-diagram.component'; import { BmProcessesComponent } from './bm-processes/bm...
{'dir': 'typescript', 'id': '8452192', 'max_stars_count': '0', 'max_stars_repo_name': 'SebastianGTTS/situational-business-modeler-developer', 'max_stars_repo_path': 'src/app/development-processes/development-processes.module.ts', 'n_tokens_mistral': 2492, 'n_tokens_neox': 2441, 'n_words': 380}
<reponame>thunlp/THUTag<filename>basepackage/smt/src/test/org/thunlp/html/EncodingDetectorTest.java<gh_stars>100-1000 package org.thunlp.html; import java.io.FileInputStream; import java.io.IOException; import junit.framework.Assert; import junit.framework.TestCase; public class EncodingDetectorTest extends TestCase...
{'dir': 'java', 'id': '16036008', 'max_stars_count': '311', 'max_stars_repo_name': 'thunlp/THUTag', 'max_stars_repo_path': 'basepackage/smt/src/test/org/thunlp/html/EncodingDetectorTest.java', 'n_tokens_mistral': 226, 'n_tokens_neox': 204, 'n_words': 37}
/* eslint-disable react-hooks/rules-of-hooks */ import React from 'react'; import { Card, Chip, CardContent, Typography, makeStyles, createStyles } from '@material-ui/core'; import { grey, deepPurple } from '@material-ui/core/colors'; import clsx from 'clsx'; import Count from 'react-countup'; type CardProps = { tit...
{'dir': 'typescript', 'id': '1805491', 'max_stars_count': '2', 'max_stars_repo_name': 'realjesset/Covid-Tracker', 'max_stars_repo_path': 'src/components/common/bigCard.tsx', 'n_tokens_mistral': 859, 'n_tokens_neox': 814, 'n_words': 187}
<reponame>r0m4n27/spready<filename>src/test/kotlin/spready/ui/SheetModelTest.kt package spready.ui import javafx.embed.swing.JFXPanel import org.junit.jupiter.api.Nested import spready.lisp.sexpr.Cell import spready.ui.sheet.SheetModel import spready.ui.status.Err import spready.ui.status.Ok import spready.ui.status.S...
{'dir': 'kotlin', 'id': '921998', 'max_stars_count': '0', 'max_stars_repo_name': 'r0m4n27/spready', 'max_stars_repo_path': 'src/test/kotlin/spready/ui/SheetModelTest.kt', 'n_tokens_mistral': 1146, 'n_tokens_neox': 1061, 'n_words': 214}
/* Copyright <2017> <<NAME>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, subl...
{'dir': 'c-sharp', 'id': '9694028', 'max_stars_count': '1', 'max_stars_repo_name': 'davidralph77/WinFilters', 'max_stars_repo_path': 'Core/Filters/FilterCore.cs', 'n_tokens_mistral': 1716, 'n_tokens_neox': 1496, 'n_words': 499}
<gh_stars>100-1000 package ru.vyarus.dropwizard.guice.module.context.bootstrap; import io.dropwizard.Configuration; import io.dropwizard.ConfiguredBundle; import io.dropwizard.setup.Bootstrap; import io.dropwizard.setup.Environment; import ru.vyarus.dropwizard.guice.module.context.ConfigurationContext; import ru.vyaru...
{'dir': 'java', 'id': '11345618', 'max_stars_count': '219', 'max_stars_repo_name': 'jesims/dropwizard-guicey', 'max_stars_repo_path': 'src/main/java/ru/vyarus/dropwizard/guice/module/context/bootstrap/DropwizardBundleTracker.java', 'n_tokens_mistral': 441, 'n_tokens_neox': 413, 'n_words': 106}
package main import ( "testing" "github.com/stretchr/testify/assert" "github.com/zhaoyuankui/goutil/alg" ) func Test_findMedianSortedArrays(t *testing.T) { assert.Equal(t, 1.0, findMedianSortedArrays(alg.IntSlice(1), alg.IntSlice())) assert.Equal(t, 1.5, findMedianSortedArrays(alg.IntSlice(), alg.IntSlice(1, 2)...
{'dir': 'go', 'id': '3440380', 'max_stars_count': '0', 'max_stars_repo_name': 'zhaoyuankui/acm', 'max_stars_repo_path': 'find_median_sorted_arrays/find_median_sorted_arrays_test.go', 'n_tokens_mistral': 1784, 'n_tokens_neox': 1581, 'n_words': 354}
<?php namespace Networq\Model; use RuntimeException; class Fqnn { protected $owner; protected $package; protected $name; private function __construct() { } public static function byFqnn(string $fqnn) { $part = explode(':', $fqnn); if (count($part)!=3) { th...
{'dir': 'php', 'id': '5042730', 'max_stars_count': '5', 'max_stars_repo_name': 'networq/networq-php', 'max_stars_repo_path': 'src/Model/Fqnn.php', 'n_tokens_mistral': 289, 'n_tokens_neox': 284, 'n_words': 63}
<filename>test/AccuracyTests/AccTestsRegion1.cpp #ifdef _DEBUG #ifndef ACC_TEST_BASE_H #define ACC_TEST_BASE_H #include "AccTestBase.h" #endif class AccTestsRegion1 : public AccTestBase { }; extern "C" { //REGION 1: //properties as a function of temperature a...
{'dir': 'cpp', 'id': '1259183', 'max_stars_count': '0', 'max_stars_repo_name': 'jonathan-rizk/WaterThermodynamicProperties', 'max_stars_repo_path': 'test/AccuracyTests/AccTestsRegion1.cpp', 'n_tokens_mistral': 16380, 'n_tokens_neox': 14261, 'n_words': 2692}
<gh_stars>0 /** * Pulls a data series from a collection by index. */ export function getTripTimeStat(tripTimeValues, index) { if (!tripTimeValues) { return null; } const statValues = {}; Object.keys(tripTimeValues).forEach(endStopId => { statValues[endStopId] = tripTimeValues[endStopId][index]; })...
{'dir': 'javascript', 'id': '9731078', 'max_stars_count': '0', 'max_stars_repo_name': 'anujkumar93/metrics-mvp', 'max_stars_repo_path': 'frontend/src/helpers/precomputed.js', 'n_tokens_mistral': 1213, 'n_tokens_neox': 1159, 'n_words': 336}
<reponame>jeremycook/Bridge using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace DataBridge.EF.Internals { /// <summary> /// A value that identifies an inteface that a <see cref="Domain.Class"/> implements. /// </summary> internal cla...
{'dir': 'c-sharp', 'id': '6633776', 'max_stars_count': '0', 'max_stars_repo_name': 'jeremycook/Bridge', 'max_stars_repo_path': 'DataBridge.EF/Internals/Interface.cs', 'n_tokens_mistral': 237, 'n_tokens_neox': 225, 'n_words': 68}
<?php namespace Database\Seeders; use App\Models\Client; use Illuminate\Database\Seeder; class ClientSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { Client::create([ "userName" => "Anas", "email" => "SAM...
{'dir': 'php', 'id': '13108178', 'max_stars_count': '0', 'max_stars_repo_name': 'FatimaHMICH/GhadiApp', 'max_stars_repo_path': 'database/seeders/ClientSeeder.php', 'n_tokens_mistral': 248, 'n_tokens_neox': 246, 'n_words': 52}
class Api::V1::LectureGroupsController < ApplicationController def index lecture_groups = LectureGroup.all render json: lecture_groups.to_json({ except: %i[created_at updated_at] }) end end
{'dir': 'ruby', 'id': '414362', 'max_stars_count': '2', 'max_stars_repo_name': 'mricanho/ae-backend', 'max_stars_repo_path': 'app/controllers/api/v1/lecture_groups_controller.rb', 'n_tokens_mistral': 63, 'n_tokens_neox': 62, 'n_words': 15}
define([ "Underscore", "hr/hr", "vendors/markdown", "models/message", "utils/github" ], function(_, hr, markdown, Message, github) { var logging = hr.Logger.addNamespace("messages"); // Collection var Messages = hr.Collection.extend({ model: Message, }); // List Item Vi...
{'dir': 'javascript', 'id': '3238268', 'max_stars_count': '23', 'max_stars_repo_name': 'FriendCode/gitrap', 'max_stars_repo_path': 'views/lists/messages.js', 'n_tokens_mistral': 573, 'n_tokens_neox': 559, 'n_words': 105}
<reponame>cragkhit/elasticsearch<filename>references/bcb_chosen_clones/default#89653#82#211.java @Override public void actionPerformed(ActionEvent event) { if (event.getSource() == btnChange) { Error.log(7002, "Bot�o alterar pressionado por " + login + "."); i...
{'dir': 'java', 'id': '10394325', 'max_stars_count': '23', 'max_stars_repo_name': 'cragkhit/elasticsearch', 'max_stars_repo_path': 'references/bcb_chosen_clones/default#89653#82#211.java', 'n_tokens_mistral': 1635, 'n_tokens_neox': 1483, 'n_words': 317}
''' Created on May 17, 2019 @author: <NAME> ''' import json import sys import jsonschema import warnings from checkers import JSON_SUBTYPE_CHECKERS from _normalizer import lazy_normalize from _utils import print_db class Checker(object): # Change here which validator to use. VALIDATOR = jsonschema.Draft4Va...
{'dir': 'python', 'id': '1886254', 'max_stars_count': '1', 'max_stars_repo_name': 'lukeenterprise/json-subschema', 'max_stars_repo_path': 'jsonsubschema/old/subschemachecker.py', 'n_tokens_mistral': 1021, 'n_tokens_neox': 993, 'n_words': 288}
<filename>PHP-SRePs-Frontend/MonthlyReport.cs using Grpc.Core; using Grpc.Net.Client; using PHP_SRePS_Backend; using System; using System.IO; using System.Threading.Tasks; using System.Windows.Forms; namespace PHP_SRePS_Frontend { public partial class MonthlyReport : Form { ReportMenu menuForm; ...
{'dir': 'c-sharp', 'id': '1595062', 'max_stars_count': '0', 'max_stars_repo_name': 'phillipweinstock/PHP-SRePS', 'max_stars_repo_path': 'PHP-SRePs-Frontend/MonthlyReport.cs', 'n_tokens_mistral': 698, 'n_tokens_neox': 645, 'n_words': 132}
<reponame>MegNieves/BankAppGit package operations; import accounts.Account; public class AccountSummary implements AccountOperations { @Override public void performOperation(Account account) { System.out.println("Account current balance: " + account.getBalance()); } }
{'dir': 'java', 'id': '10822421', 'max_stars_count': '0', 'max_stars_repo_name': 'MegNieves/BankAppGit', 'max_stars_repo_path': 'accountsummary.java', 'n_tokens_mistral': 78, 'n_tokens_neox': 76, 'n_words': 19}
/* _ _ _ ____ _ _____ / \ _ __ ___ | |__ (_)/ ___| | |_ ___ __ _ _ __ ___ | ___|__ _ _ __ _ __ ___ / _ \ | '__|/ __|| '_ \ | |\___ \ | __|/ _ \ / _` || '_ ` _ \ | |_ / _` || '__|| '_ ` _ \ / ___ \ | | | (__ | | | || | ___) || |_| __/| (_| || |...
{'dir': 'c-sharp', 'id': '3966277', 'max_stars_count': '0', 'max_stars_repo_name': 'bcukan/test', 'max_stars_repo_path': 'ArchiSteamFarm/BotConfig.cs', 'n_tokens_mistral': 2947, 'n_tokens_neox': 2570, 'n_words': 625}
<filename>src/rpasdt/algorithm/source_detectors/net_sleuth.py """NetSleuth source detection method.""" import networkx as nx import numpy as np from networkx import Graph from rpasdt.algorithm.source_detectors.common import ( CommunityBasedSourceDetector, ) class NetSleuthCommunityBasedSourceDetector(CommunityBa...
{'dir': 'python', 'id': '8586685', 'max_stars_count': '2', 'max_stars_repo_name': 'damianfraszczak/rpasdt', 'max_stars_repo_path': 'src/rpasdt/algorithm/source_detectors/net_sleuth.py', 'n_tokens_mistral': 240, 'n_tokens_neox': 233, 'n_words': 49}
#ifndef INCLUDED_VIEWREAD_STACK_H #define INCLUDED_VIEWREAD_STACK_H #include <stdio.h> #include <stdbool.h> static uint64_t next_func_id = 1; // Enum for types of functions typedef enum { MAIN, CILK, HELPER, } FunctionType_t; // Enum for types of bags typedef enum { SS, SP, P, } BagType_t; typedef stru...
{'dir': 'c', 'id': '8187992', 'max_stars_count': '3', 'max_stars_repo_name': 'neboat/cilktools', 'max_stars_repo_path': 'viewread/viewread_stack.h', 'n_tokens_mistral': 1935, 'n_tokens_neox': 1876, 'n_words': 464}
package rsc.publisher; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import org.junit.Test; import org.testng.Assert; import rsc.test.TestSubscriber; public class PublisherCollectTest { @Test(expected = NullPointerException.class) public void nullSource() { new ...
{'dir': 'java', 'id': '19457793', 'max_stars_count': '364', 'max_stars_repo_name': 'spring-operator/reactive-streams-commons', 'max_stars_repo_path': 'src/test/java/rsc/publisher/PublisherCollectTest.java', 'n_tokens_mistral': 950, 'n_tokens_neox': 900, 'n_words': 192}
<filename>devel/9cc/ld/mod.c #include "l.h" void readundefs(char *f, int t) { int i, n; Sym *s; Biobuf *b; char *l, buf[256], *fields[64]; if(f == nil) return; b = Bopen(f, OREAD); if(b == nil){ diag("could not open %s: %r", f); errorexit(); } while((l = Brdline(b, '\n')) != nil){ n = Blinelen(b); ...
{'dir': 'c', 'id': '7889740', 'max_stars_count': '14', 'max_stars_repo_name': 'ibara/LiteBSD-Ports', 'max_stars_repo_path': 'devel/9cc/ld/mod.c', 'n_tokens_mistral': 2030, 'n_tokens_neox': 1820, 'n_words': 443}
package com.flightstats.hub.webhook.strategy; import com.flightstats.hub.model.Epoch; import com.flightstats.hub.model.Location; import com.flightstats.hub.model.TimeQuery; import com.flightstats.hub.util.TimeUtil; import lombok.extern.slf4j.Slf4j; import org.joda.time.DateTime; @Slf4j public class QueryGenerator { ...
{'dir': 'java', 'id': '8975987', 'max_stars_count': '97', 'max_stars_repo_name': 'flightstats/hub', 'max_stars_repo_path': 'src/main/java/com/flightstats/hub/webhook/strategy/QueryGenerator.java', 'n_tokens_mistral': 571, 'n_tokens_neox': 552, 'n_words': 98}
namespace SqlCrawler.Backend.Core { public class SqlServerInfo: SqlServerInfoPublic { public string DataSource { get; set; } public bool UseIntegratedSecurity { get; set; } public string SqlUsername { get; set; } public string SqlPassword { get; set; } } }
{'dir': 'c-sharp', 'id': '3875656', 'max_stars_count': '10', 'max_stars_repo_name': 'georgemclaughlin/sql-crawler', 'max_stars_repo_path': 'src/SqlCrawler.Backend/Core/SqlServerInfo.cs', 'n_tokens_mistral': 84, 'n_tokens_neox': 83, 'n_words': 26}
<reponame>av1stego/rav1e import sys END_LINE = "All data were trasmitted\n" SKIPPING_IDENTIFIER = "[Skipping]" def string_from_bits(bits): chars = [] bytes_count = int(len(bits) / 8) for b in range(0, bytes_count): byte = bits[b*8:(b+1)*8] byte.reverse() chars.append(chr(int(''.joi...
{'dir': 'python', 'id': '3039073', 'max_stars_count': '0', 'max_stars_repo_name': 'av1stego/rav1e', 'max_stars_repo_path': 'test_scripts/retrieve_encoded_message.py', 'n_tokens_mistral': 325, 'n_tokens_neox': 311, 'n_words': 71}