max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
852
<filename>CondFormats/RPCObjects/interface/RPCObFebAssmap.h<gh_stars>100-1000 /* * Payload definition(s): Feb Map (RPCObFebAssmap) * * $Date: 2009/11/16 12:53:47 $ * $Revision: 1.3 $ * \author <NAME> - <NAME>. e Teo. & INFN Pavia */ #ifndef RPCObFebAssmap_h #define RPCObFebAssmap_h #include <vector> #include ...
269
1,139
#!/usr/bin/python3 # # This tool connects to the given Exchange's hostname/IP address and then # by collects various internal information being leaked while interacting # with different Exchange protocols. Exchange may give away following helpful # during OSINT or breach planning stages insights: # - Interna...
30,314
322
<gh_stars>100-1000 /* sftpclient.c * * Copyright (C) 2014-2020 wolfSSL Inc. * * This file is part of wolfSSH. * * wolfSSH 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 Foundation; either version 3 of the License...
30,794
72,551
<filename>unittests/Parse/SyntaxParsingCacheTests.cpp #include "swift/Parse/SyntaxParsingCache.h" #include "gtest/gtest.h" #include <iostream> using namespace swift; using namespace llvm; namespace llvm { template <typename T> void PrintTo(const Optional<T> &optVal, ::std::ostream *os) { if (optVal.hasValue()) ...
1,233
760
package de.codecentric.spring.boot.chaos.monkey.configuration.toggles; public class DefaultChaosToggles implements ChaosToggles { @Override public boolean isEnabled(String toggleName) { return true; } }
64
453
/* Copied from libc/posix/usleep.c, removed the check for HAVE_NANOSLEEP */ /* Written 2002 by <NAME> */ #include <errno.h> #include <time.h> #include <unistd.h> int usleep(useconds_t useconds) { struct timespec ts; ts.tv_sec = (long int)useconds / 1000000; ts.tv_nsec = ((long int)useconds % 1000000) * ...
186
2,298
# -*- coding: utf-8 -*- from pandas_ta.overlap import sma from pandas_ta.utils import get_offset, verify_series def dpo(close, length=None, centered=True, offset=None, **kwargs): """Indicator: Detrend Price Oscillator (DPO)""" # Validate Arguments length = int(length) if length and length > 0 else 20 ...
819
534
{ "parent": "mekanism:block/bin/advanced", "textures": { "front": "mekanism:block/bin/advanced_front_on", "west": "mekanism:block/bin/advanced_side_on", "east": "mekanism:block/bin/advanced_side_on", "south": "mekanism:block/bin/advanced_side_on", "up": "mekanism:block/bin/advanced_top_on" } }
145
848
<reponame>bluetiger9/Vitis-AI<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 requ...
3,643
585
/** * Copyright (c) 2016-present, Facebook, 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 ...
425
373
<reponame>linkingtd/UniAuth package com.dianrong.common.uniauth.client.custom.jwt; import com.google.common.collect.Lists; import com.google.common.collect.Sets; import java.util.Collections; import java.util.Comparator; import java.util.LinkedHashSet; import java.util.List; import java.util.Set; import javax.servle...
814
1,510
/* * 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,286
10,225
package io.quarkus.it.spring.web; import io.quarkus.test.junit.NativeImageTest; @NativeImageTest public class SecurityIT extends SecurityTest { }
49
324
/* * 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,520
892
{ "schema_version": "1.2.0", "id": "GHSA-jr56-p22g-v622", "modified": "2022-05-13T01:47:59Z", "published": "2022-05-13T01:47:59Z", "aliases": [ "CVE-2017-9481" ], "details": "The Comcast firmware on Cisco DPC3939 (firmware version dpc3939-P20-18-v303r20421746-170221a-CMCST) devices allows remote attac...
473
417
/*************************************************************************** file : PlibSoundInterface.cpp created : Thu Apr 7 04:21 CEST 2005 copyright : (C) 2005 <NAME> email : <EMAIL> version : $Id: PlibSoundInterface.cpp,v 1.8 ...
2,987
1,742
<reponame>sim-wangyan/x7<gh_stars>1000+ package x7.demo.repository; import io.xream.sqli.api.BaseRepository; import io.xream.sqli.api.ResultMapRepository; import org.springframework.stereotype.Repository; import x7.demo.entity.OrderLog; @Repository public interface OrderLogRepository extends BaseRepository<Or...
130
1,420
<gh_stars>1000+ /* * * Copyright 2019 Netflix, 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 * * Unles...
1,355
390
import rdkit import torch from dgllife.data import JTVAEZINC, JTVAEDataset, JTVAECollator from dgllife.utils import JTVAEVocab from dgllife.model import JTNNVAE, load_pretrained from torch.utils.data import DataLoader def main(args): lg = rdkit.RDLogger.logger() lg.setLevel(rdkit.RDLogger.CRITICAL) if ar...
1,350
3,282
// Copyright 2015 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.ntp; import android.content.Context; import android.content.res.Resources; import android.graphics.drawable.LevelList...
3,515
546
#ifndef MSNHEXVECTOR_H #define MSNHEXVECTOR_H #include <iostream> #include <algorithm> #include <vector> #include <iterator> #include <set> #include "Msnhnet/utils/MsnhExport.h" namespace Msnhnet { class MsnhNet_API ExVector { public: template<typename T> static inline bool contains(const std::...
1,179
836
<reponame>severinsimmler/Mallet package cc.mallet.pipe.iterator; import java.util.Iterator; import cc.mallet.types.Instance; public class EmptyInstanceIterator implements Iterator<Instance> { public boolean hasNext() { return false; } public Instance next () { throw new IllegalStateException ("This iterator never...
121
526
/* SPDX-License-Identifier: Apache-2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.openmetadata.accessservices.governanceprogram.metadataelements; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml....
1,477
733
package com.douban.rexxar.example.widget; import android.app.Activity; import android.content.DialogInterface; import android.net.Uri; import android.support.annotation.Keep; import android.text.TextUtils; import android.webkit.WebView; import com.douban.rexxar.utils.GsonHelper; import com.douban.rexxar.view.RexxarWi...
2,919
498
<gh_stars>100-1000 package com.yheriatovych.reductor.example.reductor.filter; import com.yheriatovych.reductor.Action; import com.yheriatovych.reductor.annotations.ActionCreator; import com.yheriatovych.reductor.example.model.NotesFilter; @ActionCreator public interface FilterActions { String SET_FILTER = "SET_FI...
140
4,238
<reponame>khanhgithead/grr #!/usr/bin/env python from absl import app # pylint: disable=unused-import from grr_response_client.vfs_handlers.ntfs_test_lib import NTFSNativeWindowsTest from grr_response_client.vfs_handlers.ntfs_test_lib import NTFSTest # pylint: enable=unused-import from grr.test_lib import test_lib d...
159
1,324
<reponame>ahanmal/EKAlgorithms<filename>EKAlgorithms/iOS/NSObject+EKComparisonForIOS.h<gh_stars>1000+ // // Created by ASPCartman on 26/08/14. // #if TARGET_OS_IPHONE @interface NSObject (EKComparisonForIOS) - (BOOL)isEqualTo:(id)obj; @end #endif
113
326
<filename>scala/unstable/defs.bzl<gh_stars>100-1000 """ Starlark rules for building Scala projects. These are the core rules under active development. Their APIs are not guaranteed stable and we anticipate some breaking changes. We do not recommend using these APIs for production codebases. Instead, use the stable ru...
414
713
package org.infinispan.commands.irac; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; import java.util.concurrent.CompletionStage; import org.infinispan.commands.remote.BaseRpcCommand; import org.infinispan.commons.util.IntSet; import org.infinispan.commons.util.IntSetsExternaliza...
659
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. #ifndef HAP_LEGACY_IMPORT_H #define HAP_LEGACY_IMPORT_H...
1,890
322
/* portfwd.c * * Copyright (C) 2014-2020 wolfSSL Inc. * * This file is part of wolfSSH. * * wolfSSH 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 Foundation; either version 3 of the License, or * (at your optio...
6,837
994
// // system_executor.hpp // ~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2019 <NAME> (chris at kohlhoff dot com) // // 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) // #ifndef NET_TS_SYSTEM_EXECUTOR_HPP #define NET...
1,339
1,564
package org.modelmapper.functional.merge; import static org.testng.Assert.assertEquals; import org.modelmapper.AbstractTest; import org.modelmapper.Converter; import org.modelmapper.PropertyMap; import org.modelmapper.spi.MappingContext; import org.testng.annotations.Test; @Test public class MergeSourcePropertiesTes...
669
328
<gh_stars>100-1000 String GetShapeName(Shape s) { if (s instanceof Square) { return "Square"; } else if (s instanceof Circle) { return "Circle"; } else { return "Other"; } }
76
820
<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. # ------------------------------------------------------------------...
2,753
1,592
/*************************************************************************** * Copyright (c) <NAME>, <NAME> and <NAME> * * Copyright (c) QuantStack * * * * Distributed under the terms of the...
17,726
1,700
// Copyright 2009-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #include "common/common_tests.cpp" #include "geometry/geometry_tests.cpp"
51
487
/* * Copyright 2012-2014 <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 w...
1,189
386
<reponame>beru/libonnx #include <onnx.h> static int Reshape_init(struct onnx_node_t * n) { struct onnx_tensor_t * x; struct onnx_tensor_t * s; if((n->ninput == 2) && (n->noutput == 1)) { x = n->inputs[0]; s = n->inputs[1]; if((x->ndim == 0) || (x->type == ONNX_TENSOR_TYPE_UNDEFINED)) return 0; if((s->n...
2,124
578
<reponame>dlabaj/syndesis-react-poc<filename>app/server/jsondb/src/main/java/io/syndesis/server/jsondb/impl/expr/LiteralSqlExpressionBuilder.java /* * Copyright (C) 2016 Red Hat, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Licens...
1,011
674
<gh_stars>100-1000 # -*- coding: utf-8 -*- """Bottle request argument parsing module. Example: :: from bottle import route, run from marshmallow import fields from webargs.bottleparser import use_args hello_args = { 'name': fields.Str(missing='World') } @route('/', method='GET') @...
974
751
<gh_stars>100-1000 #pragma once #include <cstdint> #include <cstdlib> namespace xoroshiro { namespace detail { template<typename STATE, typename RESULT, STATE A, STATE B, STATE C> class XorOshiro { private: static constexpr unsigned STATE_BITS = 8 * sizeof(STATE); static constexpr unsi...
908
1,350
<reponame>ppartarr/azure-sdk-for-java /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.cognitiveservices.know...
416
4,036
// header.h #ifndef HEADER_H #define HEADER_H DLLEXPORT void myFunction1(int a, int b, int c); DLLEXPORT void myFunction2(int a, int b, int c); DLLEXPORT void myFunction3(int a, int b, int c); DLLEXPORT void myFunction5(int a, int b, int c); void myFunction5(int a, int b, int c); #endif // HEADER_H
129
953
/*! @file */ /* Copyright (C) 2018-2021, Sakura Editor Organization This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose,...
2,308
679
<reponame>Grosskopf/openoffice<filename>main/xmloff/source/text/XMLIndexSourceBaseContext.cxx<gh_stars>100-1000 /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed...
3,449
3,200
<filename>mindspore/core/ops/broadcast.cc<gh_stars>1000+ /** * Copyright 2020 Huawei Technologies Co., Ltd * * 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...
920
892
{ "schema_version": "1.2.0", "id": "GHSA-f9mp-88cg-ffch", "modified": "2022-02-18T00:00:51Z", "published": "2022-02-12T00:00:51Z", "aliases": [ "CVE-2021-42000" ], "details": "When a password reset or password change flow with an authentication policy is configured and the adapter in the reset or chan...
419
3,266
<filename>java/java2py/antlr-3.1.3/runtime/ObjC/Xcode plugin/GrammarFilterLexer.h // $ANTLR 3.0b5 /Users/kroepke/Projects/antlr3/code/antlr/main/lib/ObjC/Xcode plugin/GrammarFilter.g 2006-11-12 20:15:18 #import <Cocoa/Cocoa.h> #import <ANTLR/ANTLR.h> #pragma mark Cyclic DFA start @interface GrammarFilterLexerDFA13 :...
592
345
import os import os.path import re import unittest import shutil from programy.mappings.properties import RegexTemplatesCollection from programy.storage.stores.file.config import FileStorageConfiguration from programy.storage.stores.file.config import FileStoreConfiguration from programy.storage.stores.file.engine impo...
674
5,383
from typing import Optional from sqlalchemy import Column from sqlalchemy import Integer from sqlalchemy import String from sqlalchemy.orm import column_property from sqlalchemy.orm import deferred from sqlalchemy.orm import registry from sqlalchemy.orm import Session from sqlalchemy.orm import synonym from sqlalchemy...
506
43,319
{ "name": "pkg-both", "main": "./does-not-exist.js", "jsnext:main": "./jsnext.module.js", "module": "./es6.module.js" }
67
347
<filename>frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/editor/EnterIgnoringFocusHandler.java package org.ovirt.engine.ui.common.widget.editor; import com.google.gwt.dom.client.NativeEvent; import com.google.gwt.event.dom.client.BlurEvent; import com.google.gwt.event.dom.client.B...
787
12,278
/*! @file Forward declares `boost::hana::is_empty`. @copyright <NAME> 2013-2017 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_HANA_FWD_IS_EMPTY_HPP #define BOOST_HANA_FWD_IS_EMPTY_HPP #include <boost/hana/co...
580
3,428
{"id":"00491","group":"easy-ham-1","checksum":{"type":"MD5","value":"c0d9405bdda12781f96bc37c00a382d9"},"text":"From <EMAIL> Sat Sep 7 21:54:10 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>.spamassassin.taint.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix) with ESMTP id 8ECCB16F...
1,343
1,127
<reponame>ryanloney/openvino-1 // Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "batch_to_space_kernel_selector.h" #include "batch_to_space_kernel_ref.h" namespace kernel_selector { batch_to_space_kernel_selector::batch_to_space_kernel_selector() { Attach<BatchToSpa...
204
416
<reponame>khauser/SimpleFlatMapper package org.simpleflatmapper.jdbc.test; import org.junit.Test; import org.simpleflatmapper.jdbc.DynamicJdbcMapper; import org.simpleflatmapper.jdbc.JdbcMapper; import org.simpleflatmapper.jdbc.JdbcMapperBuilder; import org.simpleflatmapper.jdbc.JdbcMapperFactory; import org.simplefla...
2,633
17,006
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ // -*- c++ -*- #pragma once #include <vector> #include <faiss/IndexFlat.h> #include <faiss/impl/NNDescent.h> #include <faiss/ut...
650
711
<reponame>jingetiema2100/MicroCommunity package com.java110.front.components.app; import com.java110.core.context.IPageData; import com.java110.front.smo.app.IAddAppSMO; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.stereotype....
374
1,772
from django.test import TestCase from dojo.tools.h1.parser import H1Parser from dojo.models import Test class TestHackerOneParser(TestCase): def test_parse_file_with_no_vuln_has_no_finding(self): testfile = open("dojo/unittests/scans/h1/data_empty.json") parser = H1Parser() findings = par...
392
4,612
<gh_stars>1000+ import io import sys from twisted.logger import eventsFromJSONLogFile, textFileLogObserver output = textFileLogObserver(sys.stdout) for event in eventsFromJSONLogFile(open("log.json")): output(event)
74
835
package ai.verta.modeldb; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Paths; import java.util.stream.Stream; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; public class ModelDBTestUtils { private static ...
318
431
#include "mtcnn.h" #include "mropencv.h" #if _WIN32 #pragma comment(lib,"ncnn.lib") #endif cv::Mat drawDetection(const cv::Mat &img, std::vector<Bbox> &box) { cv::Mat show = img.clone(); const int num_box = box.size(); std::vector<cv::Rect> bbox; bbox.resize(num_box); for (int i = 0; i < num_box;...
875
679
<reponame>Grosskopf/openoffice /************************************************************** * * 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...
433
338
<reponame>XmobiTea-Family/ezyfox-server package com.tvd12.ezyfoxserver.ssl; import java.nio.file.Paths; import com.tvd12.ezyfox.mapping.properties.EzyPropertiesFileReader; import com.tvd12.ezyfox.mapping.properties.EzySimplePropertiesFileMapper; public class EzySimpleSslConfigLoader implements EzySslConfigLoader { ...
515
1,641
<gh_stars>1000+ from eth.vm.forks.petersburg.headers import ( compute_difficulty, ) from eth.vm.forks.istanbul.headers import ( configure_header, create_header_from_parent, ) compute_muir_glacier_difficulty = compute_difficulty(9000000) create_muir_glacier_header_from_parent = create_header_from_parent( ...
167
537
<filename>cpp/turbodbc_numpy/Library/turbodbc_numpy/ndarrayobject.h #pragma once /** * Include this file instead of the original Numpy header so common * problems with the API can be solved at a central position. */ #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION // compare http://docs.scipy.org/doc/numpy/refere...
190
684
<reponame>MirageEarl/activiti /* 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 ...
389
1,273
<filename>src/main/java/org/broadinstitute/hellbender/utils/runtime/StreamingToolConstants.java<gh_stars>1000+ package org.broadinstitute.hellbender.utils.runtime; /** * Various constants used by StreamingProcessController that require synchronized equivalents in * the companion process, i.e., if the streaming proce...
474
311
<reponame>MatthewMartinFD/dd-trace-java<gh_stars>100-1000 package datadog.trace.agent.tooling.context; import java.util.Collections; import java.util.HashMap; import java.util.Map; import net.bytebuddy.agent.builder.AgentBuilder; import net.bytebuddy.asm.AsmVisitorWrapper; import net.bytebuddy.description.type.TypeDes...
558
695
<gh_stars>100-1000 /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4 -*- */ #ifndef ATOMIC_QUEUE_BENCHMARKS_H_INCLUDED #define ATOMIC_QUEUE_BENCHMARKS_H_INCLUDED #include <utility> //////////////////////////////////////////////////////////////////////////////////////////////////////////////////...
524
1,347
// Subclass of EJCanvasContextWebGL that renders to the screne (a UIView) #import "EJCanvasContextWebGL.h" #import "EAGLView.h" #import "EJPresentable.h" @interface EJCanvasContextWebGLScreen : EJCanvasContextWebGL <EJPresentable> { EAGLView *glview; CGRect style; } - (void)present; - (void)finish; @end
127
523
package com.fenchtose.nocropper; import android.graphics.Bitmap; import android.util.Log; public class Cropper { public final CropInfo cropInfo; public final Bitmap originalBitmap; private static final String TAG = "Cropper"; public Cropper(CropInfo cropInfo, Bitmap originalBitmap) { this.c...
307
3,102
<filename>clang/test/Driver/arm-multilibs.c // RUN: %clang -target armv7-linux-gnueabi --sysroot=%S/Inputs/multilib_arm_linux_tree -### -c %s -o /dev/null 2>&1 | FileCheck -check-prefix CHECK-ARM %s // RUN: %clang -target thumbv7-linux-gnueabi --sysroot=%S/Inputs/multilib_arm_linux_tree -### -c %s -o /dev/null 2>&1 | F...
730
4,253
package com.mashibing.mult; import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource; import javax.sql.DataSource; import java.util.Map; public class DynamicDataSource extends AbstractRoutingDataSource { public DynamicDataSource(DataSource defaultTargetDataSource, Map<Object, Object> targetDa...
308
1,816
from src.masonite.providers import ( RouteProvider, FrameworkProvider, ViewProvider, WhitenoiseProvider, ExceptionProvider, MailProvider, SessionProvider, QueueProvider, CacheProvider, EventProvider, StorageProvider, HelpersProvider, BroadcastProvider, Authenticat...
414
28,899
<reponame>RakhithJK/pandas<filename>pandas/tests/io/parser/common/test_float.py """ Tests that work on both the Python and C engines but do not have a specific classification into the other test modules. """ from io import StringIO import numpy as np import pytest from pandas.compat import is_platform_linux from pan...
937
5,169
<gh_stars>1000+ { "name": "image-sequence-streaming", "version": "0.4.1", "summary": "Interactive image sequences with small memory footprint, nearly unlimited length, and lighting fast playback.", "description": "Interactive image sequences with small memory footprint, nearly unlimited length, and lighting fas...
284
575
<gh_stars>100-1000 // Copyright 2018 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_OZONE_PLATFORM_WAYLAND_HOST_WAYLAND_DATA_DEVICE_H_ #define UI_OZONE_PLATFORM_WAYLAND_HOST_WAYLAND_DATA_DEVICE_H_ #include <...
2,044
391
#include <esp_log.h> #include <wolfssl/wolfcrypt/hmac.h> #include "hkdf.h" #define TAG "HKDF" struct hkdf_salt_info { char* salt; char* info; }; static struct hkdf_salt_info _hkdf_salt_info[] = { { /* HKDF_KEY_TYPE_PAIR_SETUP_ENCRYPT */ .salt = "Pair-Setup-Encrypt-Salt", .info = "Pair-...
916
3,172
{"kty": "EC", "kid": "<EMAIL>", "use": "sig", "crv": "P-521", "x": "<KEY>", "y": "<KEY>", "d": "<KEY>"}
54
547
<gh_stars>100-1000 // xlsxconditionalformatting.h #ifndef QXLSX_XLSXCONDITIONALFORMATTING_H #define QXLSX_XLSXCONDITIONALFORMATTING_H #include <QtGlobal> #include <QString> #include <QList> #include <QColor> #include <QXmlStreamReader> #include <QXmlStreamWriter> #include <QSharedDataPointer> #include "xlsxglobal.h"...
1,407
933
/* * Copyright (C) 2018 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/LICENSE-2.0 * * Unless required by app...
2,610
4,812
<filename>llvm/lib/MC/MCDisassembler/MCSymbolizer.cpp //===-- llvm/MC/MCSymbolizer.cpp - MCSymbolizer class ---------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 W...
172
440
/*========================== begin_copyright_notice ============================ Copyright (C) 2017-2021 Intel Corporation SPDX-License-Identifier: MIT ============================= end_copyright_notice ===========================*/ #ifndef __LATENCY_TABLE_H #define __LATENCY_TABLE_H #include "../BuildIR.h" names...
1,756
462
{ "appDesc": { "description": "App description.", "message": "Buat dan edit spreadsheet" }, "appName": { "description": "App name.", "message": "Google Spreadsheets" } }
84
4,065
<filename>richtext/src/main/java/com/zzhoujay/richtext/ext/TextKit.java package com.zzhoujay.richtext.ext; import android.text.TextUtils; /** * Created by zhou on 2017/2/21. * TextKit */ public class TextKit { private static final String ASSETS_PREFIX = "file:///android_asset/"; private static final Stri...
235
3,055
/* Fontname: -FreeType-Samim FD-Medium-R-Normal--10-100-72-72-P-52-ISO10646-1 Copyright: Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. DejaVu changes are in public domain Copyright (c) 2015 by <NAME>. All Rights Reserved. Non-Arabic(Latin) glyphs and data are imported from Open Sans font under the A...
10,099
13,648
<reponame>sebastien-riou/micropython # test passing arguments @micropython.asm_thumb def arg0(): mov(r0, 1) print(arg0()) @micropython.asm_thumb def arg1(r0): add(r0, r0, 1) print(arg1(1)) @micropython.asm_thumb def arg2(r0, r1): add(r0, r0, r1) print(arg2(1, 2)) @micropython.asm_thumb def arg...
302
1,561
/* * Description: Widget displaying a webots robot device */ #ifndef DEVICE_WIDGET_HPP #define DEVICE_WIDGET_HPP class QLabel; class QVBoxLayout; class QHBoxLayout; #include <QtWidgets/QWidget> namespace webotsQtUtils { class Device; class DeviceWidget : public QWidget { public: explicit DeviceWidget(...
270
539
from __future__ import print_function import python_compatibility_test as test import sys, getopt def schema(input_, output): obj = test.SchemaDef() schema = test.GetRuntimeSchema(test.Compat()) test.Unmarshal(input_.read(), obj) assert(obj == schema) output.write(test.Marshal(schema)) def compat...
838
1,144
/* * netlink/netlink-compat.h Netlink Compatability * * 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 Foundation version 2.1 * of the License. * * Copyright (c) 2003-2006 <NAME> <<EMAIL>> */...
426
1,338
/* EndpointInfo.cpp * ---------------- * Implements the EndpointInfo object. * * Copyright 2013, Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT License. * * Revisions by <NAME> * * Copyright 1999, Be Incorporated. All Rights Reserved. * This file may be used under the terms of the...
1,316
1,163
/* * Copyright 2020 The IREE Authors * * Licensed under the Apache License v2.0 with LLVM Exceptions. * See https://llvm.org/LICENSE.txt for license information. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */ package com.google.iree; import java.util.concurrent.CancellationException; import java.u...
894
9,402
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #ifndef _ICorJitCompilerImpl #define _ICorJitCompilerImpl // ICorJitCompilerImpl: declare for implementation all the members of the ICorJitCompiler interface (which are // specified...
1,045
1,275
# # Copyright 2015-2016 Amazon.com, Inc. or its affiliates. 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. A copy of the # License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" f...
9,576
383
<reponame>Microsoft/Windows-Machine-Learning #pragma once #include "pch.h" #include <appmodel.h> #include <mutex> #include <filesystem> #ifndef PIXREDIST #define PIXREDIST typedef HRESULT(WINAPI* BeginCapture)(DWORD captureFlags, _In_ PPIXCaptureParameters captureParameters); typedef HRESULT(WINAPI* EndCapt...
540
478
{ "name": "sweet-scroll", "version": "4.0.0", "description": "Modern and the sweet smooth scroll library.", "main": "sweet-scroll.js", "types": "sweet-scroll.d.ts", "scripts": { "start": "npm-run-all -p build:watch docs", "build": "npm-run-all build:bundle build:minify build:decls", "build:bundl...
1,287
50,961
import pytest from numpy.testing import assert_allclose from sklearn.utils import check_random_state from sklearn.utils._arpack import _init_arpack_v0 @pytest.mark.parametrize("seed", range(100)) def test_init_arpack_v0(seed): # check that the initialization a sampling from an uniform distribution # where we...
174
310
{ "name": "Project", "description": "Project management software.", "url": "https://products.office.com/project" }
37