max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
788
/* * 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 ...
2,678
484
<reponame>Shubodh/Kimera-Semantics<gh_stars>100-1000 // NOTE: Most code is derived from voxblox: github.com/ethz-asl/voxblox // Copyright (c) 2016, ETHZ ASL // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditi...
914
789
def get_intent(luis_app_id, cog_key, cog_endpoint, command): import json import requests action = 'unknown' try: # print the command to be interpreted print(command) # Set up the REST request headers = { } params ={ 'query': command, ...
595
567
<gh_stars>100-1000 package com.google.bigquery; import static java.lang.System.exit; import java.io.File; import java.io.FileWriter; import java.util.ArrayList; import java.util.List; import java.util.concurrent.TimeUnit; import org.apache.commons.cli.*; import java.io.IOException; import org.apache.log4j.Level; imp...
3,394
1,738
<reponame>brianherrera/lumberyard /* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if p...
16,119
1,379
package voldemort.store.backup; import java.io.File; import voldemort.server.protocol.admin.AsyncOperationStatus; /** * Storage engines that support native backups, that is, efficient backups to a * locally mounted directory that ensure the integrity of the store, may * implement this. */ public interface Native...
313
1,056
<filename>java/java.editor/test/qa-functional/data/CC15Tests/src/accesscontroltest/points/Point.java package accesscontroltest.points; public class Point { protected int x, y; void move(int dx, int dy) { x += dx; y += dy; } public void moveAlso(int dx, int dy) { move(dx, dy); } void warp(accesscon...
169
486
package com.ptrprograms.eventdrivenhierarchicalviews.view; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.widget.TextView; import com.ptrprograms.eventdrivenhierarchicalviews.model.Weather; import com.ptrprograms.eventdrivenhierarchicalviews.util.Updateable; ...
447
825
package com.kongzue.dialogx.interfaces; import android.graphics.Rect; /** * @author: Kongzue * @github: https://github.com/kongzue/ * @homepage: http://kongzue.com/ * @mail: <EMAIL> * @createTime: 2020/10/19 16:06 */ public interface OnSafeInsetsChangeListener { void onChange(Rect unsafeRect); }
122
2,085
import spacy nlp = spacy.load("fr_core_news_sm") text = ( "Le groupe aéronautique Airbus construit des avions et des " "hélicoptères vendus dans le monde entier. Le siège opérationnel du " "groupe est situé en France à Toulouse dans la région Occitanie." ) # Désactive le tagger et le parser with ____.____...
168
383
from . import views from django.urls import path app_name = "apiv3" # New URLs urlpatterns = [ path( "grids/", view=views.grid_list, name="grid_list", ), path( "grids/<slug:slug>/", view=views.grid_detail, name="grid_detail", ), path( "grids/...
464
348
<reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t2/015/01502250.json {"nom":"Vebret","circ":"2ème circonscription","dpt":"Cantal","inscrits":431,"abs":252,"votants":179,"blancs":16,"nuls":8,"exp":155,"res":[{"nuance":"LR","nom":"<NAME>","voix":115},{"nuance":"REM","nom":"Mme <NAME>","voix":40}]}
130
852
#include "DataFormats/EcalDetId/interface/EBDetId.h" #include "DataFormats/EcalDetId/interface/EEDetId.h" #include "DataFormats/EcalDetId/interface/ESDetId.h" #include "DataFormats/EcalDetId/interface/EcalSubdetector.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/Framework/interface/Fram...
1,684
2,151
/* * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All * rights reserved. * Copyright (C) 2005 <NAME>. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source c...
3,053
6,098
package hex.genmodel.easy.prediction; import java.util.HashMap; public class Word2VecPrediction extends AbstractPrediction { public HashMap<String, float[]> wordEmbeddings; }
56
1,439
<filename>galen-core/src/main/java/com/galenframework/specs/SpecAligned.java /******************************************************************************* * Copyright 2018 <NAME> http://galenframework.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compl...
353
1,457
<gh_stars>1000+ package org.kairosdb.core.processingstage; import com.google.common.collect.ImmutableList; import org.kairosdb.core.processingstage.metadata.FeatureProcessingMetadata; public interface FeatureProcessor { /** * Returns an {@link ImmutableList} of {@link FeatureProcessingFactory} * instan...
495
852
import FWCore.ParameterSet.Config as cms electronHcalTowerIsolationLcone = cms.EDProducer("EgammaTowerIsolationProducer", absolut = cms.bool(True), intRadius = cms.double(0.15), #to be orthogonal with H/E Egamma ID cut extRadius = cms.double(0.4), towerProducer = cms.InputTag("towerMaker"), etMin ...
511
6,098
<gh_stars>1000+ package hex; import org.junit.Test; import static org.junit.Assert.*; public class ModelMetricsTest { @Test public void testEmptyModelAUC() { ModelMetricsBinomial.MetricBuilderBinomial mbb = new ModelMetricsBinomial.MetricBuilderBinomial(new String[]{"yes", "yes!!"}); ModelMe...
221
435
<filename>pycon-uk-2015/videos/pycon-uk-2015-why-i-have-an-unhealthy-love-of-tests.json { "description": "Tests, I used to hate them, and actually when I start writing tests on a\nnew project I still do.\n\nBut, you don't have to be scared about them, and I'd like to cover\ndeveloping your testing strategy, what to t...
329
2,757
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2019 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
1,614
310
<filename>gear/hardware/d/d90.json<gh_stars>100-1000 { "name": "D90", "description": "A 12.3 megapixel digital SLR camera.", "url": "https://www.nikonusa.com/en/Nikon-Products/Product-Archive/Digital-SLR-Cameras/D90.html" }
94
1,602
<gh_stars>1000+ #ifdef HAVE_CONFIG_H # include "config.h" /* for _GNU_SOURCE */ #endif #include <assert.h> #include <stdio.h> #include <cilk/cilk.h> #include <cilk/cilk_api.h> #include <pthread.h> #include <qthread/qthread.h> #include <qthread/qtimer.h> #include "argparsing.h" static uint64_t *rets = NULL;...
892
406
package co.mobiwise.library; /** * Created by mertsimsek on 30/10/15. */ public interface OnProgressDraggedListener { void onProgressDragged(int position); void onProgressDragging(int position); }
67
420
<gh_stars>100-1000 from fgoGui import main main()
21
1,350
<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.analytics.synapse.artifacts.implementation; import com.azure.analytics.synapse.artifacts.models.ActivityRunsQueryResponse; impor...
10,358
5,585
<gh_stars>1000+ { "name": "libcanberra", "version": "0.30", "port-version": 2, "description": "An implementation of the XDG Sound Theme and Name Specifications, for generating event sounds on free desktops", "homepage": "http://0pointer.de/lennart/projects/libcanberra/", "supports": "!(windows | uwp)", "d...
562
6,390
from __future__ import absolute_import from time import time from collections import defaultdict from json import dumps, loads from itertools import chain from scrapy.utils.misc import load_object from dulwich.errors import ObjectMissing from dulwich.objects import Blob, Tree, Commit, Tag, parse_timezone from dulwich...
8,551
437
""" Copyright 2015, Cisco Systems, 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 applicable law or agreed to in writing, softwar...
1,976
1,546
<reponame>npv12/lawnchair<gh_stars>1000+ /* * Copyright (C) 2016 The Android Open Source Project * * 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...
990
460
/**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (<EMAIL>) ** ** This file is part of the Qt3Support module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ...
1,671
14,793
<reponame>haoyanbing/WxJava package me.chanjar.weixin.cp.bean.templatecard; import com.google.gson.JsonObject; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import org.apache.commons.lang3.StringUtils; import java.io.Serializable; /** * 按钮列表,该字段可为空数组,但...
644
642
<gh_stars>100-1000 #pragma once #include "common/TrackedObject.h" class QString; class QListWidget; namespace AxiomModel { class Action; class HistoryList; } namespace AxiomGui { class HistoryContext : public AxiomCommon::TrackedObject { public: HistoryContext(QListWidget *listWidget, Axi...
216
5,169
{ "name": "KSJSONHelp", "version": "0.3", "summary": "swift's MJExtension", "description": " KSJSONHelp is a lightweight and pure Swift implemented library for convert dictionary to model convert model to dictionary", "homepage": "https://github.com/kingslay/KSJSONHelp", "license": "MIT", "authors":...
217
1,350
<reponame>ppartarr/azure-sdk-for-java /** * Copyright Microsoft Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
506
1,083
<reponame>agxmaster/polarphp //===--- TypeVisitor.h - IR-gen TypeVisitor specialization ------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception ...
575
1,444
package mage.cards.s; import mage.MageInt; import mage.abilities.common.AttacksTriggeredAbility; import mage.abilities.effects.keyword.ScryEffect; import mage.abilities.keyword.HexproofAbility; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.SubType; im...
421
1,305
<gh_stars>1000+ /* * Copyright (c) 2001, 2004, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.corba.se.impl.encoding; import java.io.IOException; import java.nio.By...
5,001
45,293
<filename>kotlin-native/runtime/src/mm/cpp/ExtraObjectDataTest.cpp<gh_stars>1000+ /* * Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ #include "ExtraObjectData.hpp" #include <atomic> #include <thread> #include "gmock/g...
909
685
<reponame>wu546300070/weiboanalysis<gh_stars>100-1000 ''' 多类的朴素贝叶斯实现 ''' import random import re import traceback import jieba import matplotlib.pyplot as plt import numpy as np from pylab import mpl from sklearn.externals import joblib from sklearn.naive_bayes import MultinomialNB jieba.load_userdict("../train/word....
4,078
386
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2008-2010, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
817
788
<reponame>snoopdave/incubator-usergrid /* * 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 L...
3,861
3,083
// Copyright 2011-2016 Google LLC // // 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 ...
1,885
788
/******************************************************************************* Copyright (c) 2010, <NAME> (Cornell University) If used in publication cite "<NAME> and <NAME> "Dynamic Simulation of Soft Heterogeneous Objects" In press. (2011)" This file is part of Voxelyze. Voxelyze is free software: you can red...
2,994
1,816
<reponame>mrehman29/open-vm-tools /********************************************************* * Copyright (C) 2006 VMware, Inc. All rights reserved. * * The contents of this file are subject to the terms of the Common * Development and Distribution License (the "License") version 1.0 * and no later version. You ma...
1,519
2,356
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. /** * MSALModule.java functions as a wrapper around MSAL for Android's signing in, signing out, and acquiring tokens functionality. * It is a proof of concept, focusing on single account mode and AAD. */ package com.reac...
4,938
388
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from typing import Callable, Dict from botbuilder.core import TurnContext from botbuilder.dialogs import ( Dialog, DialogContext, DialogInstance, DialogReason, DialogTurnResult, ) from botbuilder.schema i...
3,539
808
/* * Copyright DDDplus Authors. * * Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 */ package io.github.dddplus.api; import lombok.Getter; import lombok.Setter; import java.io.Serializable; import java.util.HashMap; import java.util.Map; /** * 统一的RPC API返回...
341
332
/* * Copyright 2013-2014 the original author or authors. * * 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 ap...
1,432
365
<reponame>Alan-love/filament<gh_stars>100-1000 // Copyright 2016 The Draco Authors. // // 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 /...
1,393
476
<filename>InCTF/2018/securepad/pseudocode.cc int64_t sizes; char password[32]; int64_t table; int64_t get_size(int index) { unsigned int v2; // [rsp+Ch] [rbp-8h] int i; // [rsp+10h] [rbp-4h] for ( i = 0; i <= 9; ++i ) { v2 = i; if ( i == index ) return *(unsigned int *)(4LL...
2,546
991
/* * Copyright (c) 2021, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
2,500
892
<reponame>westonsteimel/advisory-database-github<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-j8r3-h5ph-8fcm", "modified": "2022-05-01T06:42:05Z", "published": "2022-05-01T06:42:05Z", "aliases": [ "CVE-2006-0711" ], "details": "The (1) addfolder and (2) deletefolder functions in neomail-...
648
1,780
<filename>GCanvas/core/src/png/PngLoader.cpp /** * 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...
1,128
988
<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 copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the ...
7,425
940
/* * video_beos.cpp - Video/graphics emulation, BeOS specific stuff * * Basilisk II (C) 1997-2008 <NAME> * Portions written by <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundati...
11,734
988
/* LibTomCrypt, modular cryptographic library -- <NAME> * * LibTomCrypt is a library that provides various cryptographic * algorithms in a highly modular and flexible manner. * * The library is free for all purposes without any express * guarantee it works. */ #include "tomcrypt.h" /** @file katja_free.c Fr...
286
331
<reponame>blockchainhelppro/AI-Trading-Strategies- #!/usr/bin/env python # -*- coding: utf-8 -*- # MIT License # # Copyright (c) 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 w...
1,719
312
/* * Copyright 2019-2021 the original author or authors. * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
626
387
from bython.importing import bython_import bython_import("test_module", globals()) test_module.func()
35
852
import FWCore.ParameterSet.Config as cms from RecoLocalTracker.SiStripRecHitConverter.StripCPEfromTrackAngle_cfi import * from RecoLocalTracker.SiStripRecHitConverter.SiStripRecHitMatcher_cfi import * from RecoTracker.TransientTrackingRecHit.TransientTrackingRecHitBuilder_cfi import * from RecoTracker.TransientTracki...
437
544
// // VarIterator.h // // Library: Foundation // Package: Dynamic // Module: VarIterator // // Definition of the VarIterator class. // // Copyright (c) 2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_VarIterator_INCLUDED #define F...
1,150
657
<gh_stars>100-1000 /* * Copyright (c) 2016 <NAME> <<EMAIL>> * Copyright (c) 2016 <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyri...
1,544
1,014
{ "1D8.F": { "short_name": "ACCSYS TECH.PLC EO -,05", "long_name": "Accsys Technologies PLC", "summary": "Accsys Technologies PLC, together with its subsidiaries, produces and sells Accoya solid wood and Tricoya wood elements in the United Kingdom, Ireland, Benelux, rest of Europe, the ...
1,332
575
// 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. #include "components/os_crypt/key_storage_linux.h" #include "base/bind.h" #include "base/environment.h" #include "base/logging.h" #include "base/metrics/...
3,457
864
<reponame>romainreignier/control-toolbox /********************************************************************************************************************** This file is part of the Control Toolbox (https://github.com/ethz-adrl/control-toolbox), copyright by ETH Zurich Licensed under the BSD-2 license (see LICENSE ...
1,405
5,169
<reponame>Gantios/Specs { "name": "Cobra", "module_name": "Cobra", "version": "2.0.0", "summary": "Application routing framework written in Swift", "description": "Cobra is a lightweight application routing framework written in Swift that provides modular abstractions to your code base that is built on top of...
405
487
import io import pytest from devtools.ansi import sformat, sprint def test_colours(): v = sformat('hello', sformat.red) assert v == '\x1b[31mhello\x1b[0m' def test_no_reset(): v = sformat('hello', sformat.bold, reset=False) assert v == '\x1b[1mhello' def test_combine_styles(): v = sformat('h...
875
406
<gh_stars>100-1000 package io.jenkins.docker.connector; import com.nirima.jenkins.plugins.docker.DockerTemplate; import com.nirima.jenkins.plugins.docker.DockerTemplateBase; import io.jenkins.docker.connector.DockerComputerAttachConnector.ArgumentVariables; import java.io.IOException; import java.util.concurrent.Exe...
892
11,396
<filename>awx_collection/plugins/modules/tower_export.py #!/usr/bin/python # coding: utf-8 -*- # (c) 2017, <NAME> IV <<EMAIL>> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_M...
2,139
14,668
<filename>third_party/blink/common/messaging/cloneable_message_mojom_traits.cc // 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. #include "third_party/blink/public/common/messaging/cloneable_message_mojom...
664
1,395
<gh_stars>1000+ # Copyright (c) 2014, Fundacion Dr. <NAME> # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this # list o...
6,560
6,717
<gh_stars>1000+ //****************************************************************************** // // Copyright (c) 2016 Microsoft Corporation. All rights reserved. // // This code is licensed under the MIT License (MIT). // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCL...
941
14,668
<filename>chrome/browser/enterprise/connectors/device_trust/common/metrics_utils.cc // 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 "chrome/browser/enterprise/connectors/device_trust/common/met...
484
3,603
/* * 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, software * distribut...
1,464
3,013
# Meta / Dialog / Closable # Display a #dialog having a close button, and detect when it's closed. #meta # --- from h2o_wave import main, app, Q, ui @app('/demo') async def serve(q: Q): if not q.client.initialized: # Create an empty meta_card to hold the dialog q.page['meta'] = ui.meta_card(box=''...
603
582
#ifdef _WIN32 #include <conio.h> #include <windows.h> #include <io.h> #if _MSC_VER < 1900 && defined (_MSC_VER) #define snprintf _snprintf // Microsoft headers use underscores in some names #endif #define strcasecmp _stricmp #define strdup _strdup #define write _write #define STDIN_FILENO 0 #else /* _WIN32 */ #inclu...
765
372
<reponame>kbore/pbis-open /* * Copyright © BeyondTrust Software 2004 - 2019 * 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/lic...
3,321
988
<reponame>AlexeyMochalov/firebird<filename>src/include/firebird/impl/msg/gstat.h FB_IMPL_MSG(GSTAT, 1, gstat_unknown_switch, -901, "00", "000", "found unknown switch") FB_IMPL_MSG(GSTAT, 2, gstat_retry, -901, "00", "000", "please retry, giving a database name") FB_IMPL_MSG(GSTAT, 3, gstat_wrong_ods, -901, "00", "000", ...
2,235
1,142
<reponame>qhdwight/silk-net<filename>src/Lab/Benchmarks/TestLib/TestLib/exports.cpp<gh_stars>1000+ extern "C" __declspec(dllexport) void __cdecl Test1() { } extern "C" __declspec(dllexport) int __cdecl Test2() { return 5; } extern "C" __declspec(dllexport) int __cdecl Test3(char* bytes) { return *bytes; } e...
248
32,544
<reponame>DBatOWL/tutorials<gh_stars>1000+ package com.baeldung.transferqueue; import org.junit.FixMethodOrder; import org.junit.Test; import org.junit.runners.MethodSorters; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.LinkedTransferQueue; import jav...
1,058
2,443
// Copyright (c) 2015-2019 The HomeKit ADK Contributors // // Licensed under the Apache License, Version 2.0 (the “License”); // you may not use this file except in compliance with the License. // See [CONTRIBUTORS.md] for the list of HomeKit ADK project authors. #include <stdio.h> #include "HAPPlatform.h" HAP_RESUL...
2,207
1,200
package com.xiaojukeji.carrera.pproxy.producer; import com.xiaojukeji.carrera.thrift.Message; import org.apache.thrift.async.AsyncMethodCallback; import java.util.concurrent.atomic.AtomicInteger; public class BatchCarreraRequest extends CarreraRequest { private BatchCarreraRequest next = null; private Ato...
570
1,006
<filename>include/nuttx/sensors/t67xx.h /**************************************************************************** * include/nuttx/sensors/t67xx.h * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additi...
852
3,957
<reponame>itchengguo/NoHttp /* * Copyright 2018 <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 app...
2,233
1,502
<reponame>yhager/cpp-netlib<filename>libs/network/test/http/client_get_test.cpp // Copyright 2010 <NAME>. // Copyright 2017 Google, Inc. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <gtest/gtest.h> #...
995
468
#ifndef __MEMORY_H_ #define __MEMORY_H_ #ifdef __cplusplus extern "C" { #endif //__cplusplus void* aligned_malloc(size_t align, size_t size); void aligned_free(void* ptr); #ifdef __cplusplus } #endif //__cplusplus #endif // __MEMORY_H_
108
363
<filename>frostmourne-monitor/src/main/java/com/autohome/frostmourne/monitor/contract/MetricContract.java<gh_stars>100-1000 package com.autohome.frostmourne.monitor.contract; import java.util.Map; public class MetricContract { private String metricType; private String aggregationType; private String ag...
1,095
2,542
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #pragma once #include "intern...
340
507
# tests/test_provider_Mongey_kafka.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:20:06 UTC) def test_provider_import(): import terrascript.provider.Mongey.kafka def test_resource_import(): from terrascript.resource.Mongey.kafka import kafka_acl from terrascript.resource.Mongey.kafka...
314
496
import json from django import template from users.models.tags import Tag register = template.Library() @register.simple_tag() def user_tag_images(user): tags = user.tags.filter(tag__group=Tag.GROUP_HOBBIES)[:5] return " ".join([str(t.name.split(" ", 1)[0]) for t in tags]) @register.simple_tag() def user...
418
6,098
<reponame>ahmedengu/h2o-3 package water.rapids.ast.prims.mungers; import water.fvec.Frame; import water.rapids.Env; import water.rapids.ast.AstRoot; import water.rapids.vals.ValNums; import water.rapids.ast.AstPrimitive; /** * Is a factor/categorical? */ public class AstIsFactor extends AstPrimitive { @Override ...
377
1,585
/* * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2005 The University of Tennessee and The University * of Tennessee ...
1,175
460
<gh_stars>100-1000 package org.wildfly.swarm.jaxrs; import org.apache.http.HttpResponse; import org.apache.http.client.fluent.Request; import org.apache.http.util.EntityUtils; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.container.test.api.RunAsClient; import org.jboss.arquill...
505
679
/************************************************************** * * 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 y...
3,509
384
<reponame>DEVESHTARASIA/tensorflow // Copyright 2017 The TensorFlow 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/...
1,510
945
#include "vsl/vsl_vector_io.hxx" #include <vnl/io/vnl_io_vector_fixed.h> typedef std::vector<vnl_vector_fixed<unsigned short, 2>> vect_nvecf; VSL_VECTOR_IO_INSTANTIATE(vect_nvecf);
87
1,916
<gh_stars>1000+ /* * ----------------------------------------------------------------- * $Revision: 1.3 $ * $Date: 2006/11/29 00:05:06 $ * ----------------------------------------------------------------- * Programmer: <NAME> @ LLNL * ----------------------------------------------------------------- * Copyright...
239
554
package github.tornaco.xposedmoduletest.ui.widget; import android.content.Context; import android.widget.Toast; import lombok.Synchronized; /** * Created by guohao4 on 2018/2/26. * Email: <EMAIL> */ public class ToastManager { private static Toast sToast; @Synchronized public stati...
238
1,553
<filename>Contents/Libraries/Shared/guessit/test/test_main.py #!/usr/bin/env python # -*- coding: utf-8 -*- # pylint: disable=no-self-use, pointless-statement, missing-docstring, invalid-name import os import pytest from ..__main__ import main __location__ = os.path.realpath(os.path.join(os.getcwd(), os.path.dirnam...
848