max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
675
/* * Copyright 2016 The Bazel Authors. 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/LICENSE-2.0 * * Unless required by a...
1,011
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Fontaine-la-Guyon","circ":"3ème circonscription","dpt":"Eure-et-Loir","inscrits":1083,"abs":562,"votants":521,"blancs":36,"nuls":13,"exp":472,"res":[{"nuance":"LR","nom":"<NAME>","voix":252},{"nuance":"RDG","nom":"<NAME>","voix":220}]}
119
32,544
package com.baeldung.quarkus; import io.quarkus.test.common.QuarkusTestResource; import io.quarkus.test.h2.H2DatabaseTestResource; import io.quarkus.test.junit.NativeImageTest; @NativeImageTest @QuarkusTestResource(H2DatabaseTestResource.class) public class NativeHelloResourceIT extends HelloResourceUnitTest { /...
119
441
<reponame>mrdziuban/basex package org.basex.index.path; import static org.basex.util.Token.*; import java.io.*; import java.util.*; import org.basex.core.*; import org.basex.data.*; import org.basex.index.*; import org.basex.index.query.*; import org.basex.index.stats.*; import org.basex.io.in.DataInput; import org....
2,630
14,668
<gh_stars>1000+ // Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <string> #include "base/bind.h" #include "base/files/file_path.h" #include "base/path_service.h" #include "base/test/metrics/his...
2,230
480
/* * Copyright [2013-2021], Alibaba Group Holding Limited * * 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 app...
2,057
1,067
{ "version": 2, "build": { "env": { "REACT_APP_STRIPE_PUBLIC_KEY_TEST": "@react_app_stripe_public_key_test", "REACT_APP_STRIPE_PUBLIC_KEY_LIVE": "@react_app_stripe_public_key_live", "REACT_APP_PROVIDER_STRIPE_CLIENT_ID_DEV": "@react_app_provider_stripe_client_id_dev", "REACT_APP_PROVIDER...
595
1,144
// SPDX-License-Identifier: GPL-2.0+ /* * * Copyright (C) 2004-2007, 2012 Freescale Semiconductor, Inc. * <NAME> (<EMAIL>) */ /* CPU specific interrupt routine */ #include <common.h> #include <asm/immap.h> #include <asm/io.h> int interrupt_init(void) { int0_t *intp = (int0_t *) (CONFIG_SYS_INTR_BASE); /* Make ...
322
702
<filename>consensus/qbft/src/test/java/org/hyperledger/besu/consensus/qbft/validator/TransactionValidatorProviderTest.java /* * Copyright ConsenSys AG. * * 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 ...
3,144
348
<gh_stars>100-1000 {"nom":"Avilley","circ":"3ème circonscription","dpt":"Doubs","inscrits":123,"abs":47,"votants":76,"blancs":9,"nuls":2,"exp":65,"res":[{"nuance":"LR","nom":"<NAME>","voix":43},{"nuance":"REM","nom":"M. <NAME>","voix":22}]}
99
1,724
<gh_stars>1000+ /* * Copyright 2008-present MongoDB, Inc. * * 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 appl...
2,881
482
<filename>code/implementation/host-api/src/main/java/io/cattle/platform/host/api/HostApiProxyToken.java package io.cattle.platform.host.api; public interface HostApiProxyToken { public String getReportedUuid(); public String getToken(); public String getUrl(); }
92
1,473
<reponame>ljmf00/autopsy /* * Autopsy Forensic Browser * * Copyright 2019-2019 Basis Technology Corp. Contact: carrier <at> sleuthkit * <dot> org * * 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 ...
988
4,054
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "btreeaggregator.h" namespace vespalib::btree { template <typename KeyT, typename DataT, typename AggrT, size_t INTERNAL_SLOTS, size_t LEAF_SLOTS, class AggrCalcT> AggrT BTreeAggr...
1,551
11,356
// examples/serialise.hpp // Copyright (c) 2007-2009 <NAME> (http://www.benhanson.net/) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file licence_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_LEXER_SERIALISE_HPP #define BOOST_LEXER_SERIALISE_HPP #includ...
376
434
<filename>TerraForge3D/src/Shading/ShaderNodes/FloatNode.cpp<gh_stars>100-1000 #include "Shading/ShaderNodes/FloatNode.h" #include <iostream> void FloatNode::OnEvaluate(GLSLFunction *function, GLSLLine *line) { line->line = SDATA(0); } void FloatNode::Load(nlohmann::json data) { x = data["x"]; } nlohmann::json Fl...
410
1,088
import click import json import os from xdg import XDG_CONFIG_HOME class InvalidDataDirException(Exception): pass def get_data_dir(): if os.environ.get('NLGEVAL_DATA'): if not os.path.exists(os.environ.get('NLGEVAL_DATA')): click.secho("NLGEVAL_DATA variable is set but points to non-exist...
654
619
<gh_stars>100-1000 /* * Copyright 2010 <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...
855
369
/* ---------------------------------------------------------------------------- * SAM Software Package License * ---------------------------------------------------------------------------- * Copyright (c) 2011, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and binary f...
3,879
1,444
package mage.cards.t; import java.util.UUID; import mage.abilities.Ability; import mage.abilities.effects.OneShotEffect; import mage.abilities.effects.common.search.SearchLibraryPutInHandEffect; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.Outcome; i...
798
5,300
#pragma once #include <drogon/HttpSimpleController.h> #include <drogon/IOThreadStorage.h> using namespace drogon; struct Fortune { Fortune(string_view &&id, string_view &&message) : id_(std::move(id)), message_(std::move(message)) { } Fortune() = default; string_view id_; string_view me...
328
5,169
{ "name": "TTTAttributedLabel", "version": "1.1.0", "platforms": { "ios": null }, "summary": "A drop-in replacement for UILabel that supports NSAttributedStrings.", "homepage": "https://github.com/mattt/TTTAttributedLabel", "authors": { "<NAME>": "<EMAIL>" }, "source": { "git": "https://gi...
367
310
// by 8bitbubsy #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <shlwapi.h> #endif #include <stdio.h> #include <string.h> // stricmp() #include <stdlib.h> // atoi() #include <ctype.h> // toupper() #include <stdint.h> #include <stdbool.h> // if compiling for Windows, you need to link shlwapi.li...
3,833
1,442
#include <escher/scroll_view.h> #include <escher/palette.h> #include <new> extern "C" { #include <assert.h> } #include <algorithm> namespace Escher { ScrollView::ScrollView(View * contentView, ScrollViewDataSource * dataSource) : View(), m_contentView(contentView), m_dataSource(dataSource), m_topMargin(0), ...
4,213
2,151
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_NOTIFICATIONS_NOTIFICATION_IMAGE_LOADER_H_ #define THIRD_PARTY_BLINK_RENDERER_MODULES_NOTIFICATIONS_NOTIFICATIO...
913
456
<filename>presto-cassandra/src/main/java/com/facebook/presto/cassandra/RetryPolicyType.java /* * 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/LICENS...
483
5,903
/*! ****************************************************************************** * * Pentaho Data Integration * * Copyright (C) 2002-2017 by <NAME> : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version 2.0 (the...
1,504
407
import operator as op from functools import reduce import numpy as np def combination_Cnr(n, r): r = min(r, n - r) numer = reduce(op.mul, range(n, n - r, -1), 1) denom = reduce(op.mul, range(1, r + 1), 1) return numer / denom def fisher_test_pValue_by_formula(ts_len, g_f): a = int((ts_len - 1) /...
3,787
2,266
<reponame>XmanAZC/EasyLogger #ifndef CPUUSAGE_H #define CPUUSAGE_H static void cpu_usage_idle_hook(void); void cpu_usage_get(rt_uint8_t *major, rt_uint8_t *minor); void cpu_usage_init(void); #endif
97
1,056
<reponame>timfel/netbeans<filename>java/performance/mobility/test/qa-functional/src/org/netbeans/performance/mobility/dialogs/NewConfigurationDialogTest.java<gh_stars>1000+ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed wit...
1,167
365
<reponame>ThyeeZz/towhee<filename>towhee/models/layers/activations/tanh.py # Copyright 2021 <NAME> and Zilliz. 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 # # ht...
473
789
<reponame>AmatorAVG/django-helpdesk-atoria # Generated by Django 3.2.7 on 2021-10-05 10:21 from django.db import migrations, models import helpdesk.models import helpdesk.validators class Migration(migrations.Migration): dependencies = [ ('helpdesk', '0035_alter_email_on_ticket_change'), ] oper...
382
918
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
642
848
<gh_stars>100-1000 /* * Copyright 2019 Xilinx Inc. * * 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 applicabl...
1,402
4,294
<gh_stars>1000+ import logging from apscheduler.schedulers.sync import Scheduler from apscheduler.triggers.interval import IntervalTrigger from apscheduler.workers.sync import Worker def say_hello(): print('Hello!') logging.basicConfig(level=logging.DEBUG) try: with Scheduler() as scheduler, Worker(schedul...
184
8,092
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
1,193
454
<reponame>zwkjhx/vertx-zero<gh_stars>100-1000 package io.vertx.up.uca.registry; import io.vertx.up.exception.web._500InternalServerException; import io.vertx.up.util.Ut; import java.util.Objects; public class Uddi { /* * Registry interface connect */ public static UddiRegistry registry(final Class<...
608
2,151
//===----- FileOffset.h - Offset in a file ----------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
571
1,056
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
1,451
563
package com.gentics.mesh.core.data.dao; import java.util.function.Predicate; import com.gentics.mesh.context.InternalActionContext; import com.gentics.mesh.core.data.branch.HibBranch; import com.gentics.mesh.core.data.page.Page; import com.gentics.mesh.core.data.perm.InternalPermission; import com.gentics.mesh.core.d...
1,269
1,144
<gh_stars>1000+ /***************************************************************************** ** ** Name: app_services.h ** ** Description: Bluetooth Services functions ** ** Copyright (c) 2009-2011, Broadcom Corp., All Rights Reserved. ** Broadcom Bluetooth Core. Proprietary and confidential. ...
318
6,989
#include "spinlock.h"
9
528
#!/usr/bin/env python ''' Disclaimer - This is a solution to the below problem given the content we have discussed in class. It is not necessarily the best solution to the problem. In other words, I generally only use things we have covered up to this point in the class (with some exceptions which I will usually note...
295
2,151
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SKIA_EXT_SKIA_HISTOGRAM_H_ #define SKIA_EXT_SKIA_HISTOGRAM_H_ #include <cstdint> // This file exposes Chrome's histogram functionality to Skia, ...
675
607
<gh_stars>100-1000 { "name": "opencvjs", "version": "1.0.0", "description": "JavaScript Bindings for OpenCV", "main": "build/cv.js", "scripts": { "build": "python make.py", "test": "open test/tests.html" }, "homepage": "https://github.com/ucisysarch/opencvjs", "repository": "https://github.com/u...
179
1,668
<filename>src/ralph/trade_marks/migrations/0010_auto_20210702_1129.py # -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('trade_marks', '0009_auto_20210630_1719'), ] operations = [ ...
1,147
445
#!/usr/bin/env python import youku import bilibili import acfun import iask import ku6 import pptv import iqiyi import tudou import sohu import w56 import cntv import yinyuetai import ifeng from common import * import re def url_to_module(url): site = r1(r'http://([^/]+)/', url) assert site, 'invalid url: ' + url ...
573
30,023
"""The geo_rss_events component."""
11
348
<filename>docs/data/leg-t2/087/08701153.json {"nom":"Saint-Julien-le-Petit","circ":"1ère circonscription","dpt":"Haute-Vienne","inscrits":284,"abs":116,"votants":168,"blancs":7,"nuls":12,"exp":149,"res":[{"nuance":"FI","nom":"<NAME>","voix":83},{"nuance":"REM","nom":"Mme <NAME>","voix":66}]}
119
4,535
<reponame>redoclag/plaidml // Copyright 2018, Intel Corporation #pragma once #include <map> #include <string> #include "tile/codegen/alias.h" #include "tile/codegen/codegen.pb.h" #include "tile/codegen/compile_pass.h" #include "tile/stripe/stripe.h" namespace vertexai { namespace tile { namespace codegen { class F...
210
14,668
<gh_stars>1000+ // Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.omnibox.suggestions; import org.chromium.ui.base.PageTransition; /** * Provides the additional func...
877
1,721
// // JPVideoPlayerAudioViewController.h // JPVideoPlayerDemo // // Created by NewPan on 2018/5/25. // Copyright © 2018年 NewPan. All rights reserved. // #import <UIKit/UIKit.h> @interface JPVideoPlayerAudioViewController : UIViewController @end
86
1,781
<gh_stars>1000+ package chapter1.section3; import java.util.Iterator; /** * Created by <NAME> on 14/11/17. */ public class DoublyLinkedListCircular<Item> implements Iterable<Item> { public class DoubleNode { public Item item; DoubleNode previous; DoubleNode next; } private int ...
4,159
373
{ "jcr:primaryType": "cq:Page", "jcr:content": { "jcr:primaryType": "cq:PageContent", "jcr:title": "assets", "cq:template": "/apps/acs-commons/templates/utilities/asset-packager", "preview": "true", "sling:resourceType": "acs-commons/components/utilities/packager/asset-packager", "cq:designP...
415
317
<filename>test/com/googlecode/totallylazy/collections/TrieTest.java package com.googlecode.totallylazy.collections; import org.junit.Test; import static com.googlecode.totallylazy.Option.none; import static com.googlecode.totallylazy.Option.some; import static com.googlecode.totallylazy.Segment.constructors.character...
744
496
import sys import imdb imdb_object = imdb.IMDb() if len(sys.argv) != 2: print("Please provide movie name in proper format!!!") sys.exit() movie_name = sys.argv[1].replace('_', ' ') try: search_result = imdb_object.search_movie(movie_name, 1) movie_data = search_result[0].__dict__ vote_details = ...
240
396
package com.ljy.devring.cache; import android.app.Application; import android.content.Context; import android.content.SharedPreferences; import android.os.Process; import androidx.collection.SimpleArrayMap; import com.ljy.devring.cache.support.DiskCache; import com.ljy.devring.cache.support.MemoryCache; import com.lj...
1,527
1,428
<gh_stars>1000+ # BHASKARA from math import sqrt a = float(input('Informe o valor de "a": ')) b = float(input('Informe o valor de "b": ')) c = float(input('Informe o valor de "c": ')) delta = pow(b, 2) - 4 * a * c deltart = sqrt(delta) x1 = ((-b) + deltart) / (2 * a) x2 = ((-b) - deltart) / (2 * a) print('\0...
216
2,690
# Copyright ClusterHQ Inc. See LICENSE file for details. """ Tests for ``flocker.provision._install``. """ import yaml from pyrsistent import freeze, thaw from textwrap import dedent from .._install import ( task_configure_flocker_agent, task_enable_flocker_agent, run, put, run_from_args, get_repo...
5,609
335
{ "word": "Rax", "definitions": [ "A stretch, an act of stretching; a strain, a wrench." ], "parts-of-speech": "Noun" }
66
562
<filename>recipes/function2/all/test_package/test_package.cpp #include <function2/function2.hpp> int main(int, char **) { fu2::unique_function<void(int, int)> fun = [](int /*a*/, int /*b*/) {}; (void) fun; return 0; }
91
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Ricin", "definitions": [ "A highly toxic protein obtained from the pressed seeds of the castor oil plant." ], "parts-of-speech": "Noun" }
86
737
<filename>soa/js/testing/js_variable_arity_module.cc /** js_variable_arity_test.cc <NAME>, 28 October 2012 Copyright (c) 2012 Datacratic Inc. All righte reerved. */ #include <signal.h> #include "soa/js/js_wrapped.h" #include "soa/js/js_utils.h" #include "soa/js/js_registry.h" #include "v8.h" #include "jml/com...
1,494
636
import hashlib import json import os import zipfile import io from os.path import basename, splitext import slackviewer from slackviewer.constants import SLACKVIEWER_TEMP_PATH from slackviewer.utils.six import to_unicode, to_bytes def SHA1_file(filepath, extra=b''): """ Returns hex digest of SHA1 hash of fi...
1,470
7,746
/*++ Copyright (c) 2006 Microsoft Corporation Module Name: unifier.cpp Abstract: <abstract> Author: <NAME> (leonardo) 2008-01-28. Revision History: --*/ #include "ast/substitution/unifier.h" #include "ast/ast_pp.h" void unifier::reset(unsigned num_offsets) { m_todo.reset(); m_find.reset(); ...
2,731
1,780
/** * Created by G-Canvas Open Source Team. * Copyright (c) 2017, Alibaba, Inc. All rights reserved. * * This source code is licensed under the Apache Licence 2.0. * For the full copyright and license information, please view * the LICENSE file in the root directory of this source tree. */ #include "GStrSeparato...
980
372
/* * compile the plugins into the library for nice debugging */ #define NO_SASL_MONOLITHIC /* * compiler doesnt allow an empty file */ typedef int xxx_sc_foo;
54
687
// © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html /* *************************************************************************** * Copyright (C) 1999-2016 International Business Machines Corporation * and others. All rights reserved. ********************...
16,197
778
from KratosMultiphysics import ParallelEnvironment, IsDistributedRun if IsDistributedRun(): from KratosMultiphysics.mpi import DataCommunicatorFactory import KratosMultiphysics.KratosUnittest as UnitTest import math class TestDataCommunicatorFactory(UnitTest.TestCase): def setUp(self): self.registere...
2,020
1,382
/* Simple Plugin API * * Copyright © 2018 <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, ...
5,364
5,169
{ "name": "Swizzler", "version": "0.1.0", "summary": "Swizzling done right", "description": " Swizzling done right:\n\n * Swizzling done right\n * Blocks API\n * Original implementation on your fingertips\n", "homepage": "...
302
3,459
<filename>Cores/Mednafen/mednafen-1.21/src/snes/src/ppu/mmio/mmio.hpp<gh_stars>1000+ struct { //open bus support uint8 ppu1_mdr, ppu2_mdr; //bg line counters uint16 bg_y[4]; //$2100 bool display_disabled; uint8 display_brightness; //$2101 uint8 oam_basesize; uint8 oam_nameselect; uint16 oa...
2,259
2,151
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_WINDOW_EVENT_FILTER_H_ #define UI_VIEWS_WIDGET_DESKTOP_AURA_WINDOW_EVENT_FILTER_H_ #include "base/compiler_specific....
693
1,473
<gh_stars>1000+ #pragma once #include "traceMemoryHistory.h" namespace image { class Binary; } namespace trace { class Data; /// build of the memory trace file class RECOMPILER_API MemoryHistoryBuilder { public: struct Page { uint32 m_id; uint64 m_address; uint32 m_entriesHead[MemoryHistory::E...
815
769
#ifndef __EXTI_H #define __EXTI_H #include "stm32l4xx.h" // Definitions of EXTI lines #define EXTI_LINE0 EXTI_IMR1_IM0 #define EXTI_LINE1 EXTI_IMR1_IM1 #define EXTI_LINE2 EXTI_IMR1_IM2 #define EXTI_LINE3 EXTI_IMR1_IM3 #define EXTI_LINE4 ...
3,643
2,023
<reponame>tdiprima/code ### Here is my implementation to partition based on funct's evaluation. def partition(iterable, func): result = {} for i in iterable: result.setdefault(func(i), []).append(i) return result ### <NAME>'s Generalized group function def group(seq): '''seq is a sequence of t...
594
3,227
<reponame>ffteja/cgal /*! \ingroup PkgTetrahedralRemeshingConcepts \cgalConcept \cgalRefines MeshCellBase_3 Cell base concept to be used in the triangulation type given to the function `CGAL::tetrahedral_isotropic_remeshing()`. \cgalHasModel `CGAL::Tetrahedral_remeshing::Remeshing_cell_base_3`. */ class RemeshingCe...
129
310
<gh_stars>100-1000 { "name": "SR60i", "description": "Headphones.", "url": "https://www.amazon.com/Grado-Prestige-Headphones-Discontinued-Manufacturer/dp/B0006DPMU4" }
73
1,540
package test.reports; import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertTrue; import java.util.ArrayList; import java.util.List; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; public class GitHub447Sample { @Test(dataProvider = "add") public voi...
357
344
<gh_stars>100-1000 /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------...
1,058
937
package cyclops.futurestream.react.simple; import static org.hamcrest.Matchers.hasItem; import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertThat; import java.util.List; import java.util.Queue; import java.util.concurrent.ConcurrentLinkedQueue; import java.util.concurrent.ExecutionException; ...
665
13,111
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
1,341
356
<filename>mind-map/scia-reto/src/main/java/com/igormaznitsa/sciareto/ui/platform/MacOSXAppHandlerOld.java /* * Copyright (C) 2018 <NAME>. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Found...
1,430
686
<reponame>LiangTang1993/Icarus<filename>backend/model/_models.py import traceback import peewee from model import db, BaseModel from model.board_model import BoardModel from model.follow import Follow from model.comment_model import CommentModel from model.manage_log import ManageLogModel from model.mention import Men...
1,542
395
<reponame>jonathan-stein/timely package timely.test; import java.util.HashMap; import timely.configuration.Configuration; public class TestConfiguration { public static final String TIMELY_HTTP_ADDRESS_DEFAULT = "localhost"; public static final int WAIT_SECONDS = 2; public static Configuration createM...
611
324
<filename>providers/profitbricks/src/test/java/org/jclouds/profitbricks/features/StorageApiMockTest.java<gh_stars>100-1000 /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding c...
4,321
1,083
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
475
684
/* * Anyplace: A free and open Indoor Navigation Service with superb accuracy! * * Anyplace is a first-of-a-kind indoor information service offering GPS-less * localization, navigation and search inside buildings using ordinary smartphones. * * Author(s): <NAME>, <NAME> * * Supervisor: <NAME> * * URL: http://...
7,604
580
package net.floodlightcontroller.cpanalyzer; import net.floodlightcontroller.core.module.IFloodlightService; public interface ICPAnalyzerService extends IFloodlightService { }
53
898
package com.spotify.heroic.grammar; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.runners.MockitoJUnitRunner; import java.util.function.BiFunction; import java.util.function.Consumer; import java.util.stream.Stream; import static org.junit.Assert.assertEquals; import static org.mockito.M...
408
566
<reponame>uf-reef-avl/dvo_slam /** * This file is part of dvo. * * Copyright 2012 <NAME> <<EMAIL>> (Technical University of Munich) * For more information see <http://vision.in.tum.de/data/software/dvo>. * * dvo is free software: you can redistribute it and/or modify * it under the terms of the GNU General ...
2,977
307
# $Id$ import pytest import sys import os def run_all(extra_args=None): """ Run all the tests of riptable. Parameters ---------- extra_args : list List of extra arguments (e.g. ['--verbosity=3']) """ if extra_args is None: extra_args = [] pytest.main...
256
3,402
<reponame>ApacheSourceCode/kylin<filename>core-metadata/src/main/java/org/apache/kylin/metadata/cachesync/SingleValueCache.java /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * reg...
1,081
1,481
<reponame>1-c/Corange /** *** :: Audio :: *** *** Basic Audio layer. *** *** Currently only plays flat sounds. *** No support for source manipulation. *** Could do with some more love. *** **/ #ifndef caudio_h #define caudio_h #include "cengine.h" #include "assets/sound.h" #include "assets/music.h" void audi...
246
984
<reponame>petchw/subvim1 #include <iostream> #define TEST_CPP_FOR_OPERATOR_CLANG_FORMAT_LONG_MACRO " CPP for vim-operator-clang-complete" void f(){ std::cout << "hello\n"; } int main() { int * hoge = {1,3,5,7}; for(int i=0;i<4;++i){ if(i%2==0) std::cout << hoge[i] << std::endl; } std::cout ...
293
522
#include "third_party/vulkan-deps/spirv-cross/src/spirv_cfg.cpp" #include "third_party/vulkan-deps/spirv-cross/src/spirv_cross.cpp" #include "third_party/vulkan-deps/spirv-cross/src/spirv_cross_parsed_ir.cpp" #include "third_party/vulkan-deps/spirv-cross/src/spirv_cross_util.cpp" #include "third_party/vulkan-deps/spirv...
263
573
<reponame>Esigodini/dynarmic<filename>externals/mp/include/mp/metavalue/bit_and.h /* This file is part of the mp project. * Copyright (c) 2020 MerryMage * SPDX-License-Identifier: 0BSD */ #pragma once #include <mp/metavalue/lift_value.h> namespace mp { /// Bitwise and of metavalues Vs template<class... Vs> using...
180
2,361
def pytest_addoption(parser): parser.addoption("--runslow", action="store_true", help="Run slow tests")
56
826
<reponame>CYXiang/TenMinDemo<gh_stars>100-1000 // // TableViewController.h // KIFTest1 // // Created by 陈燕翔 on 2017/7/9. // Copyright © 2017年 陈燕翔. All rights reserved. // #import <UIKit/UIKit.h> @interface TableViewController : UITableViewController @end
117
1,025
#import <Cocoa/Cocoa.h> @interface CDEProjectBrowserWindowController : NSWindowController #pragma mark - Working with the project browser - (void)showWithProjectDirectoryURL:(NSURL *)projectDirectoryURL; - (void)updateProjectDirectoryURL:(NSURL *)projectDirectoryURL; @end
80