max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,470
package com.guiying.module.common.http; /** * <p>在Retrofit中接口会导致泛型擦除,所以这里回调使用Class</p> * * @author 张华洋 2016/12/15 10:27 * @version V1.0.0 * @name OnResultListener */ public class OnResultListener<T> { /** * 请求成功的情况 * * @param result 需要解析的解析类 */ public void onSuccess(T result) { }...
397
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...
20,346
538
<filename>plot.py import numpy as np import pandas as pd import sys from stockstats import StockDataFrame import matplotlib.pyplot as plt df = pd.DataFrame.from_csv(sys.argv[1], index_col=None) print (df.head()) df['time'] = pd.to_datetime(df['time'], unit='s') df = df.set_index('time') print (df.describe()) # plt.sub...
177
505
from pyrep.robots.end_effectors.gripper import Gripper class BaxterGripper(Gripper): def __init__(self, count: int = 0): super().__init__(count, 'BaxterGripper', ['BaxterGripper_leftJoint', 'BaxterGripper_rightJoint'])
145
480
<filename>tests/test_phantom_style.py """Tests for `rust_phantom_style` settings.""" from rust_test_common import * class TestPhantomStyle(TestBase): def test_style_none(self): self._override_setting('rust_phantom_style', 'none') self._with_open_file('tests/error-tests/tests/cast-to-unsized-trai...
1,231
2,195
from aim.storage.object import CustomObject from aim.storage.types import BLOB @CustomObject.alias('aim.text') class Text(CustomObject): """Text object used to store text objects in Aim repository. Args: text (:obj:): str object used to construct `aim.Text`. """ AIM_NAME = 'aim....
266
2,670
<reponame>ghaglerSGI/vscode-cpptools /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------...
168
1,474
<reponame>billzhonggz/Transfer-Learning-Library """ @author: <NAME> @contact: <EMAIL> """ import torch.nn.functional as F import math def robust_entropy(y, ita=1.5, num_classes=19, reduction='mean'): """ Robust entropy proposed in `FDA: Fourier Domain Adaptation for Semantic Segmentation (CVPR 2020) <https://arxi...
531
3,100
package com.airbnb.airpal.api.output.persistors; import com.airbnb.airpal.api.Job; import com.airbnb.airpal.api.output.PersistentJobOutput; import com.airbnb.airpal.api.output.builders.JobOutputBuilder; import com.airbnb.airpal.core.execution.QueryExecutionAuthorizer; import com.google.common.base.Splitter; import com...
444
451
<gh_stars>100-1000 // File Automatically generated by eLiSe #include "StdAfx.h" class cCodeBlockCam: public cElCompiledFonc { public : cCodeBlockCam(); void ComputeVal(); void ComputeValDeriv(); void ComputeValDerivHessian(); double * AdrVarLocFromString(const std::string &); v...
1,500
1,056
<filename>java/java.editor/test/unit/data/org/netbeans/modules/editor/java/TestInterface.java<gh_stars>1000+ package org.netbeans.modules.editor.java; public interface TestInterface { public void test(); }
74
918
<filename>gobblin-data-management/src/main/java/org/apache/gobblin/data/management/conversion/hive/events/EventWorkunitUtils.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 rega...
1,860
375
/* * Copyright 2019 Nokia Solutions and Networks * Licensed under the Apache License, Version 2.0, * see license.txt file for details. */ package org.robotframework.ide.eclipse.main.plugin.views.debugshell; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.mock; i...
3,471
2,232
/* Copyright (c) 2015 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: <NAME> */ #pragma once #include "kernel/expr.h" #include "api/univ.h" #include "api/lean_expr.h" namespace lean { inline expr * to_expr(lean_expr n) { return reinterpret_cast<ex...
424
342
<reponame>hortonworks/kite<filename>kite-data/kite-data-core/src/test/java/org/kitesdk/data/spi/filesystem/TestFileSystemMetadataProviderBackwardCompatibility.java /* * Copyright 2013 Cloudera Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance w...
1,794
4,335
#include "unistd.h" #include <stdio.h> #include <errno.h> #include <fcntl.h> #include "syscall.h" #include "sys/stat.h" int remove(const char *path) { struct stat sb; if (lstat(path, &sb) < 0) return -1; if (S_ISDIR(sb.st_mode)) return rmdir(path); return unlink(path); }
133
4,098
<reponame>pat2nav/Urho3D /* * Original work: Copyright (c) 2014, Oculus VR, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * RakNet License.txt file in the licenses directory of this source tree. An additional grant * of patent rights can be found...
878
2,141
""" Testing utilities """ from ploomber.testing import sql __all__ = ['sql']
25
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.resourcemanager.apimanagement.implementation; import com.azure.resourcemanager.apimanagement.fluent.models.SubscriptionKeysContr...
399
381
/** * JBoss, Home of Professional Open Source * Copyright Red Hat, Inc., and individual contributors. * * 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...
523
1,350
<filename>sdk/security/azure-resourcemanager-security/src/samples/java/com/azure/resourcemanager/security/IotSensorsDownloadResetPasswordSamples.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.a...
484
721
package crazypants.enderio.base.machine.fuel; import javax.annotation.Nonnull; import com.enderio.core.common.util.NNList; import com.enderio.core.common.util.NullHelper; import net.minecraft.client.Minecraft; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraftf...
922
361
<reponame>vpapanchev/universal-resolver<gh_stars>100-1000 package uniresolver.examples; import uniresolver.driver.did.sov.DidSovDriver; import uniresolver.local.LocalUniResolver; import uniresolver.result.ResolveResult; import java.util.HashMap; import java.util.Map; public class TestLocalUniResolver { public stat...
416
400
<gh_stars>100-1000 package org.ofdrw.core.basicStructure.doc.vpreferences; /** * 窗口模式 * <p> * 7.5 表 9 视图首选项属性 * <p> * 默认值为 None * * @author 权观宇 * @since 2019-10-07 06:33:01 */ public enum PageMode { /** * 常规模式 */ None, /** * 开开后全文显示 */ FullScreen, /** * 同时呈现文档大纲 ...
982
848
/* * 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 applicable law or agreed to ...
437
334
/* Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file This file is part of libzmq, the ZeroMQ core engine in C++. libzmq is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as published by the Free Software Found...
1,162
8,572
@import XCTest; /** Runs an XCTestSuite instance containing only the given XCTestCase subclass. Use this to run QuickSpec subclasses from within a set of unit tests. Due to implicit dependencies in _XCTFailureHandler, this function raises an exception when used in Swift to run a failing test case. @param specCl...
251
1,768
<reponame>zwergziege/tlaplus // Copyright (c) 2003 Compaq Corporation. All rights reserved. // Last modified on Wed Oct 17 15:25:39 PDT 2001 by yuanyu package util; import java.io.IOException; import java.io.Serializable; import java.util.Map; import tlc2.tool.Defns; import tlc2.tool.TLCState; import tlc2.tool.distr...
3,896
303
/** * 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...
626
1,210
/* (c) 2014 <NAME> glenjofe at gmail dot com Distributed under the Boost Software License, Version 1.0. http://boost.org/LICENSE_1_0.txt */ #ifndef BOOST_ALIGN_DETAIL_MAX_ALIGN_HPP #define BOOST_ALIGN_DETAIL_MAX_ALIGN_HPP #include <boost/align/detail/integral_constant.hpp> #include <cstddef> namespace boost { namesp...
220
713
<reponame>t-gergely/infinispan package org.infinispan.commons.time; import java.time.Instant; import java.util.concurrent.TimeUnit; import org.infinispan.commons.logging.Log; import org.infinispan.commons.logging.LogFactory; /** * TimeService that allows for wall clock time to be adjust manually. */ public class C...
550
360
import numpy as np from yt.testing import assert_almost_equal, assert_equal, fake_sph_grid_ds n_ref = 4 def test_building_tree(): """ Build an octree and make sure correct number of particles """ ds = fake_sph_grid_ds() octree = ds.octree(n_ref=n_ref) assert octree[("index", "x")].shape[0] =...
1,536
879
package org.zstack.header.message; /** * Created by MaJin on 2020/10/28. */ public interface ReplayableMessage { String getResourceUuid(); Class getReplayableClass(); }
60
317
#import "HCTestFailureHandler.h" @interface HCSenTestFailureHandler : NSObject <HCTestFailureHandler> @end
35
2,151
// Copyright 2014 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 "net/http/http_server_properties_manager.h" #include <utility> #include "base/bind.h" #include "base/json/json_reader.h" #include "base/json/js...
29,959
2,496
/** * Copyright (c) 2006-2016 LOVE Development Team * * 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, * ...
6,467
623
/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2016 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
3,768
2,542
<reponame>gridgentoo/ServiceFabricAzure // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ----------------------------------------------------...
561
749
// Copyright (c) 2015-2015 <NAME> // SPDX-License-Identifier: BSL-1.0 #include <SoapySDR/Formats.hpp> #include <cstdlib> #include <cstdio> int main(void) { #define formatCheck(formatStr, expectedSize) \ { \ size_t bytes = SoapySDR::formatToSize(formatStr); \ printf("%s -> %d bytes/element\t", ...
661
337
/* * 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 ...
674
383
<filename>blender_render/image_utils.py import numpy as np from PIL import Image import cv2 import os from os.path import join, dirname, basename import shutil # Value list used to select object mask rendered by Blender value_list = [25, 39, 48, 56, 63, 69, 75, 80, 85, 89, 93, 97, 101, 105, 1...
1,451
664
// Classic Shell (c) 2009-2016, <NAME> // Confidential information of <NAME>. Not for disclosure or distribution without prior written consent from the author #define STRICT_TYPED_ITEMIDS #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit #include <windows.h> #include <stdio.h> #i...
16,828
1,144
<reponame>yodaos-project/yodaos /* * (C) Copyright 2013 * <NAME>, DENX Software Engineering, <EMAIL>. * on behalf of ifm electronic GmbH * * 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 Foundation;...
1,027
3,285
<gh_stars>1000+ /* Copyright 2020 The OneFlow 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 applic...
6,624
310
{ "name": "MKH 30", "description": "A condenser microphone.", "url": "https://en-us.sennheiser.com/studio-condenser-microphone-soloists-instrument-mkh-30-p48" }
67
2,151
/* * Copyright (C) Research In Motion Limited 2010. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) an...
1,246
398
/* * 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 ...
5,745
446
/* ======================================== * SpatializeDither - SpatializeDither.h * Copyright (c) 2016 airwindows, All rights reserved * ======================================== */ #ifndef __SpatializeDither_H #include "SpatializeDither.h" #endif void SpatializeDither::processReplacing(float **inputs, float **...
2,976
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...
1,449
1,489
[ "11 foot 8 Bridge", "1984 Summer Olympics", "2 + 2 = 5", "2005 NFL season", "401(k)", "4′33″", "<NAME>", "<NAME>", "Alien hand syndrome", "<NAME>", "Andromeda Galaxy", "Animals in space", "Apple Inc.", "Archipelago", "Automation", "<NAME>", "<NAME>", "Beale ciphers", "Belphegor's...
1,194
575
<gh_stars>100-1000 // Copyright 2020 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/ui/ash/holding_space/holding_space_keyed_service.h" #include <set> #include "ash/public/cpp/holding_space/ho...
5,355
348
{"nom":"Mietesheim","circ":"8ème circonscription","dpt":"Bas-Rhin","inscrits":510,"abs":287,"votants":223,"blancs":13,"nuls":4,"exp":206,"res":[{"nuance":"LR","nom":"<NAME>","voix":104},{"nuance":"REM","nom":"<NAME>","voix":102}]}
91
13,006
<gh_stars>1000+ /******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LI...
422
837
package me.saket.dank.widgets.InboxUI; import android.app.Activity; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Rect; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.os.Parcel; ...
5,845
994
<filename>src/framework/shared/inc/private/common/fxpkgioshared.hpp<gh_stars>100-1000 /*++ Copyright (c) Microsoft Corporation Module Name: FxPkgIoShared.hpp Abstract: This file contains portion of FxPkgIo.hpp that is need in shared code. Author: Environment: Revision History: --*/ #ifndef _FXPKGIOS...
275
8,649
<reponame>brewswang/hsweb-framework package org.hswebframework.web.authorization.dimension; import reactor.core.publisher.Flux; import java.util.Collection; public interface DimensionUserBindProvider { Flux<DimensionUserBind> getDimensionBindInfo(Collection<String> userIdList); }
89
488
<filename>projects/MatlabTranslation/src/transformations/armadillo/ArmaOptimizer.h #ifndef _ARMA_OPTIMIZER_H #define _ARMA_OPTIMIZER_H 1 class SgProject; namespace ArmaOpt { /// runs Armadillo specific optimizations void optimize(SgProject*); } #endif /* _ARMA_OPTIMIZER_H */
111
2,577
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. Camunda licenses this file to you under the Apache License, * Version 2.0; y...
4,176
1,338
/* * \file: freecom.c * \brief: USB SCSI module extention for Freecom USB/IDE adaptor * * This file is a part of BeOS USB SCSI interface module project. * Copyright (c) 2003-2004 by <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General ...
8,947
567
<reponame>JackieZhai/TracKit # ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Written by <NAME> (<EMAIL>) # ------------------------------------------------------------------------------ import _init_paths import os i...
2,226
12,706
[ { "id": 1, "description": "", "name": "dockers", "name_with_namespace": "Library / dockers", "path": "dockers", "path_with_namespace": "library/dockers", "created_at": "2019-01-17T09:47:07.504Z", "default_branch": "master", "tag_list": [], "avatar_url": null, "star_count...
1,234
2,023
<gh_stars>1000+ // Copyright 2017 Google 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 ...
1,286
1,858
<gh_stars>1000+ /* * Tencent is pleased to support the open source community by making TENCENT SOTER available. * Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in compliance with the License. You...
3,071
1,960
# # Copyright (c) 2017 Intel 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 or agreed to...
1,438
1,330
/* * 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 ...
674
778
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Project includes #include "refinement_modeler...
5,708
314
<filename>Multiplex/IDEHeaders/IDEHeaders/IDEKit/IDEUtilityAreaDVTStackView_ML.h // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "CDStructures.h" #import "DVTStackView_ML-Protocol.h" @interface IDEUtilityAreaDVTStackView_ML : ...
168
14,668
// Copyright 2012 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 IOS_CHROME_BROWSER_WEBUI_SHOW_MAIL_COMPOSER_CONTEXT_H_ #define IOS_CHROME_BROWSER_WEBUI_SHOW_MAIL_COMPOSER_CONTEXT_H_ #import <Foundation/Foundat...
580
678
<gh_stars>100-1000 /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/iTunesStoreUI.framework/iTunesStoreUI */ #import <iTunesStoreUI/iTunesStoreUI-Structs.h> #import <iTunesStoreUI/NSCopying.h> #import <iTunesStoreUI/XXUnknownSuperclass.h> #import <iTunesStoreUI/NSC...
691
511
/**************************************************************************** * * Copyright 2019 Samsung Electronics 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...
326
1,350
[{"id":"NALOSSRB","type":"radio","calc":false,"value":"NALOSSY"},{"id":"NALOSSRB","type":"radio","calc":false,"value":"NALOSSN"},{"id":"LINE27_L27CX_1_","type":"box","calc":false,"value":""},{"id":"LINE27_L27EX_1_","type":"box","calc":false,"value":""},{"id":"LINE27_L27CX_2_","type":"box","calc":false,"value":""},{"id"...
1,752
820
<filename>models/trim_model.py #!/usr/bin/python # Run this script to remove the data that are only useful for training # from your model files in order to make them more compact. import os import numpy as np if __name__=='__main__': files = os.listdir('.') model_files = [f for f in files if f.endswith('.npy...
263
1,056
<filename>extide/gradle/src/org/netbeans/modules/gradle/DeleteOperationImpl.java<gh_stars>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...
1,628
11,356
// Boost.Range library // // Copyright <NAME> 2003-2004. Use, modification and // distribution is subject to 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) // // For more information, see http://www.boost.org/libs/range/ // #if...
1,543
4,036
<filename>java/ql/test/stubs/apache-commons-lang3-3.7/org/apache/commons/lang3/text/WordUtils.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 regarding copyright ownership. * T...
753
843
package org.zalando.nakadi.repository.db; import org.junit.After; import org.junit.Before; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.datasource.DriverManagerDataSource; import javax.sql.DataSource; import java.sql.Connection; import java.sql.SQLException; import static org.za...
427
4,262
<reponame>rikvb/camel /* * 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 * (th...
2,077
302
//////////////////////////////////////////////////////////////////////////////////////////////////// // This file is part of CosmoScout VR // // and may be used under the terms of the MIT license. See the LICENSE file for details. // // ...
828
1,531
<filename>ngrinder-runtime/src/test/java/org/ngrinder/dns/NameStoreTest.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/LICENSE-2.0 * *...
680
841
/* * Copyright (c) 2014-2015 the Civetweb developers * Copyright (c) 2014 <NAME> * https://github.com/jshelley * License http://opensource.org/licenses/mit-license.php MIT License */ /* This example is superseeded by other examples, and no longer * actively maintained. * See examples/embedded_c for an up to date ex...
6,012
302
<reponame>dbgrigsby/kafka-utils # -*- coding: utf-8 -*- # Copyright 2016 Yelp 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...
950
953
<filename>src/plugins/tools.common/http_message_parser.cpp /* * The MIT License (MIT) * * Copyright (c) 2015 Microsoft Corporation * * -=- Robust Distributed System Nucleus (rDSN) -=- * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (...
8,659
14,668
// Copyright 2020 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 CHROME_BROWSER_PREFETCH_PREFETCH_PROXY_PREFETCH_PROXY_FEATURES_H_ #define CHROME_BROWSER_PREFETCH_PREFETCH_PROXY_PREFETCH_PROXY_FEATURES_H_ #incl...
214
773
<filename>cryptol-remote-api/python/tests/cryptol/test_AES.py import unittest from pathlib import Path import unittest import cryptol from cryptol.single_connection import * from cryptol.bitvector import BV class TestAES(unittest.TestCase): def test_AES(self): connect(verify=False) load_file(str(P...
633
3,690
#include <vector> using std::vector; using std::next; using std::prev; using std::advance; class Solution { public: int findMin(vector<int> &num) { auto beg = num.begin(); for (auto end = std::prev(num.end()); beg < end; ) { if (*beg < *end) break; auto mid = (end - ...
218
1,694
<reponame>CrackerCat/iWeChat // // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import "NSObject-Protocol.h" @class NSArray; @protocol TXICustomPreprocessDelegate <NSObject> @optional - (v...
181
3,285
/* Copyright 2020 The OneFlow 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 applicable law or agre...
686
2,829
/* Copyright 2020 Alibaba Group Holding Limited. 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 applicable law o...
3,982
2,293
from test.test_support import TestFailed # A test for SF bug 422177: manifest float constants varied way too much in # precision depending on whether Python was loading a module for the first # time, or reloading it from a precompiled .pyc. The "expected" failure # mode is that when test_import imports this after al...
425
4,071
<reponame>Ru-Xiang/x-deeplearning /* * \file pruned_gemm_op.h * \desc The pruned gemm operator * * A | B x C = A x C + B x D * -- * D * * Only support 2D-Gemm */ #pragma once #include "blaze/operator/operator.h" #include "blaze/common/exception.h" #include "blaze/commo...
5,331
11,356
/* Copyright © 2017 Apple Inc. All rights reserved. * * Use of this source code is governed by a BSD-3-clause license that can * be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause */ #include <model_server/lib/toolkit_class_macros.hpp> #include <model_server/lib/toolkit_function_mac...
258
575
// Copyright 2020 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_CREDENTIALMANAGER_PAYMENT_CREDENTIAL_H_ #define THIRD_PARTY_BLINK_RENDERER_MODULES_CREDENTIALMANAGER_PAYMENT_CR...
487
874
<reponame>orenmnero/lambda<gh_stars>100-1000 package com.jnape.palatable.lambda.adt.hlist; import com.jnape.palatable.lambda.functions.builtin.fn1.Downcast; import java.util.Objects; /** * An immutable heterogeneous list supporting arbitrary depth type-safety via a linearly recursive type signature. Note * that du...
4,360
3,813
<gh_stars>1000+ {"annotations":{"authorization.k8s.io/decision":"allow","authorization.k8s.io/reason":""},"auditID":"155b887c-c27c-4fdb-9667-999f74512d0a","kind":"Event","level":"RequestResponse","metadata":{"creationTimestamp":"2018-10-26T13:13:03Z"},"objectRef":{"apiVersion":"v1","name":"my-config","namespace":"defau...
521
1,160
#include <Python.h> #include <err.h> #include "extapi.hpp" #ifdef __NT__ #include <windows.h> #include <psapi.h> //------------------------------------------------------------------------- bool ext_api_t::load(qstring *errbuf) { QASSERT(30602, lib_path.empty() && lib_handle == nullptr); // Inspired by https://...
2,380
892
<reponame>github/advisory-database { "schema_version": "1.2.0", "id": "GHSA-c5vw-2cfj-6qf7", "modified": "2022-05-13T01:01:04Z", "published": "2022-05-13T01:01:04Z", "aliases": [ "CVE-2016-9053" ], "details": "An exploitable out-of-bounds indexing vulnerability exists within the RW fabric message part...
517
358
//---------------------------------------------------------- -*- Mode: C++ -*- // $Id$ // // Created 2013/07/15 // Author: <NAME> // // Copyright 2013,2016 Quantcast Corporation. All rights reserved. // // This file is part of Kosmos File System (KFS). // // Licensed under the Apache License, Version 2.0 // (the "Lice...
16,514
2,787
<reponame>Son-Le-Goog/nimbus<gh_stars>1000+ // // Copyright 2011-2014 NimbusKit // // 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 // // U...
890
318
/* * This file is part of TechReborn, licensed under the MIT License (MIT). * * Copyright (c) 2020 TechReborn * * 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, inc...
1,011
461
<gh_stars>100-1000 /* FUNCTION <<toascii>>, <<toascii_l>>---force integers to ASCII range INDEX toascii INDEX toascii_l SYNOPSIS #include <ctype.h> int toascii(int <[c]>); #include <ctype.h> int toascii_l(int <[c]>, locale_t <[locale]>); DESCRIPTION <<toascii>> is a macro which coerces integers to the ASCII...
421