max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
389
/* * Copyright 2014 <NAME>, Inc. */ package gw.lang.reflect.java; import gw.lang.parser.expressions.Variance; public interface IJavaClassTypeVariable extends IJavaClassType { String getName(); IJavaClassType[] getBounds(); boolean isFunctionTypeVar(); Variance getVariance(); void setVariance( Variance c...
104
632
<filename>qtpy/tests/test_main.py<gh_stars>100-1000 import os from qtpy import QtCore, QtGui, QtWidgets try: # removed in qt 6.0 from qtpy import QtWebEngineWidgets except Exception: pass def assert_pyside2(): """ Make sure that we are using PySide """ import PySide2 assert QtCore.QEve...
1,206
453
<filename>libc/libgloss/mn10300/sbrk.c #include <_ansi.h> #include <sys/types.h> #include <sys/stat.h> #include "trap.h" caddr_t _sbrk (size_t incr) { extern char end; /* Defined by the linker */ static char *heap_end; char *prev_heap_end; #if 0 char *sp = (char *)stack_ptr; #else char *sp = (char *)&sp; #...
276
12,377
import numpy as np class CenterPositiveClassGet(object): """ Get the corresponding center of the positive class """ def __init__(self, num_sample, num_local, rank): self.num_sample = num_sample self.num_local = num_local self.rank = rank self.rank_class_start = self.rank * ...
1,228
2,709
#include <cmath> #include <matplot/matplot.h> int main() { using namespace matplot; std::vector<double> x = linspace(0, 10, 20); std::vector<double> y = transform(x, [](auto x) { return exp(0.25 * x); }); stem(x, y, "filled"); show(); return 0; }
115
1,056
<reponame>ses1112/adito-nb-modules /* * 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, V...
2,407
946
<reponame>hanyeonjee/CRNN_Tensorflow #!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Time : 19-3-12 下午9:03 # @Author : MaybeShewill-CV # @Site : https://github.com/MaybeShewill-CV/CRNN_Tensorflow # @File : evaluation_tools.py # @IDE: PyCharm """ Some evaluation tools """ import itertools import numpy as np...
2,595
1,144
<reponame>dextero/mozc # Copyright 2010-2021, Google 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: # # * Redistributions of source code must retain the above copyright # notice, this ...
1,775
12,651
import torch from torch_geometric.nn import SignedGCN def test_signed_gcn(): model = SignedGCN(8, 16, num_layers=2, lamb=5) assert model.__repr__() == 'SignedGCN(8, 16, num_layers=2)' pos_index = torch.randint(high=10, size=(2, 40), dtype=torch.long) neg_index = torch.randint(high=10, size=(2, 40), d...
434
602
<reponame>0x715C/jak-project<filename>decompiler/ObjectFile/LinkedObjectFileCreation.h<gh_stars>100-1000 #pragma once /*! * @file LinkedObjectFileCreation.h * Create a LinkedObjectFile from raw object file data. * This implements a decoder for the GOAL linking format. */ #include "LinkedObjectFile.h" namespace d...
292
2,690
#include <aslam/cameras/RollingShutter.hpp> #include <sm/PropertyTree.hpp> #include <sm/serialization_macros.hpp> namespace aslam { namespace cameras { RollingShutter::RollingShutter() : _lineDelay(0.0) { } RollingShutter::RollingShutter(const sm::PropertyTree & config) { _lineDelay = config.getDouble("line-de...
540
1,582
<filename>vilya/models/gist_star.py<gh_stars>1000+ # -*- coding: utf-8 -*- from vilya.libs.store import store from vilya.libs.signals import gist_starred_signal class GistStar(object): def __init__(self, id, gist_id, user_id, created_at): self.id = id self.gist_id = gist_id self.user_id =...
1,273
1,093
<gh_stars>1000+ /* * Copyright 2002-2019 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 * * Unle...
1,106
5,169
<gh_stars>1000+ { "name": "KZPerformanceWolf", "version": "0.2.7", "summary": "Performance monitor.", "description": "App performance monitor SDK.", "homepage": "https://github.com/LYPDoit", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "liuyaping": "<EMAIL>" }, "source":...
268
892
<reponame>github/advisory-database<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-9w77-7jq2-wgpf", "modified": "2022-05-13T01:48:39Z", "published": "2022-05-13T01:48:39Z", "aliases": [ "CVE-2018-1000660" ], "details": "TOCK version prior to commit 42f7f36e74088036068d62253e1d8fb26605feed. ...
556
513
<reponame>viewdy/phantomjs<filename>src/qt/qtbase/src/3rdparty/angle/src/compiler/translator/ShaderLang.cpp // // Copyright (c) 2002-2012 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // // Implement the top-le...
4,969
1,602
<gh_stars>1000+ /* $Source: bitbucket.org:berkeleylab/gasnet.git/smp-conduit/gasnet_core_help.h $ * Description: GASNet smp conduit core Header Helpers (Internal code, not for client use) * Copyright 2002, <NAME> <<EMAIL>> * Terms of use are as specified in license.txt */ #ifndef _IN_GASNETEX_H #error This fil...
266
4,538
<gh_stars>1000+ /* * Copyright (C) 2015-2021 Alibaba Group Holding Limited */ #ifndef __ICON_H__ #define __ICON_H__ #include <stdio.h> typedef struct { uint8_t *p_icon_data; uint16_t width; uint16_t height; uint8_t *p_icon_mask; } icon_t; // 由于不同扫描方式得到的结果不一样 有的可能是一维数组有的可能是二维 // 很麻烦做抽象 先统一使用列行式吧 可以搞一...
347
340
<filename>countrypicker/src/main/java/com/mukesh/countrypicker/listeners/OnItemClickListener.java package com.mukesh.countrypicker.listeners; import com.mukesh.countrypicker.Country; public interface OnItemClickListener { void onItemClicked(Country country); }
84
17,703
#pragma once #include "cluster.h" namespace Envoy { namespace Upstream { class MockClusterRealPrioritySet : public MockCluster { public: MockClusterRealPrioritySet(); ~MockClusterRealPrioritySet() override; // Upstream::Cluster PrioritySetImpl& prioritySet() override { return priority_set_; } const Priorit...
140
1,795
#!/usr/bin/python # coding=utf-8 ########################################################################## import os import json from test import CollectorTestCase from test import get_collector_config from test import unittest from test import run_only try: from docker import Client except ImportError: Clien...
662
2,375
<reponame>dandycheung/Genius-Android /* * Copyright (C) 2014-2016 Qiujuer <<EMAIL>> * WebSite http://www.qiujuer.net * Author qiujuer * * 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 *...
5,667
3,428
<gh_stars>1000+ {"id":"02365","group":"easy-ham-1","checksum":{"type":"MD5","value":"e74194f171d02137cba0548d118aed05"},"text":"From <EMAIL> Tue Oct 8 10:56:06 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>int.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix) with ESMTP id D8F1316F...
489
3,102
<filename>clang/test/Modules/Inputs/template-nontrivial1.h @import template_nontrivial0; struct S1 { S1(); Class0<S0> a; };
58
541
/** * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ package org.dspace.content.dao; import org.dspace.content.DSpaceObject; import org.dspace.core.Generic...
194
14,425
<filename>hadoop-tools/hadoop-resourceestimator/src/main/java/org/apache/hadoop/resourceestimator/skylinestore/api/HistorySkylineStore.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 inf...
1,465
662
package com.alibaba.rsocket.events; import java.nio.charset.StandardCharsets; import java.security.MessageDigest; import java.util.UUID; /** * config event * * @author leijuan */ public class ConfigEvent implements CloudEventSupport<ConfigEvent> { /** * config event logic id */ private String id...
1,041
956
/* SPDX-License-Identifier: BSD-3-Clause * Copyright 2020 Mellanox Technologies, Ltd */ #include "mlx5_flow_os.h" #include "mlx5_win_ext.h" #include <rte_thread.h> /** * Verify the @p attributes will be correctly understood by the NIC and store * them in the @p flow if everything is correct. * * @param[in] dev...
4,247
1,144
<reponame>dram/metasfresh /* * #%L * de.metas.adempiere.adempiere.base * %% * Copyright (C) 2020 metas 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, either version 2 of the ...
698
2,392
/** * \file * * \author <NAME> * * \copyright Copyright (C) 2013-2020 <NAME> * * This program 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, either version 3 of the License, or * (at your opt...
979
20,765
<reponame>PMunkes/MangoHud /* Copyright 2019 Intel Corporation */ /* SPDX-License-Identifier: MIT */ #include "no_extern_c.h" #ifndef _C11_COMPAT_H_ #define _C11_COMPAT_H_ #if defined(__cplusplus) /* This is C++ code, not C */ #elif (__STDC_VERSION__ >= 201112L) /* Already C11 */ #else /* * C11 static_asser...
205
1,741
import ctypes import logging from binaryninja import PluginCommand from binaryninjaui import UIAction, UIActionHandler, Menu from lighthouse.context import LighthouseContext from lighthouse.integration.core import LighthouseCore from lighthouse.util.disassembler import disassembler logger = logging.getLogger("Lighth...
2,939
2,151
<gh_stars>1000+ /* * Copyright 2011 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 o...
3,881
524
<filename>src/main/cpp/VLFeat.h /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class keystoneml_utils_external_VLFeat */ #ifndef _Included_keystoneml_utils_external_VLFeat #define _Included_keystoneml_utils_external_VLFeat #ifdef __cplusplus extern "C" { #endif /* * Class: ke...
243
852
<gh_stars>100-1000 #include "TopQuarkAnalysis/TopKinFitter/interface/TopKinFitter.h" /// default configuration is: max iterations = 200, max deltaS = 5e-5, maxF = 1e-4 TopKinFitter::TopKinFitter( const int maxNrIter, const double maxDeltaS, const double maxF, const double mW, const double mTop) : maxNrIter_(ma...
415
1,350
<filename>sdk/datamigration/azure-resourcemanager-datamigration/src/main/java/com/azure/resourcemanager/datamigration/models/MiSqlConnectionInfo.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.a...
959
6,989
#pragma once #include "index_item_storage_base.h" #include "dense_vector_distance.h" #include "dense_vector_item_storage.h" #include <util/generic/string.h> #include <util/generic/vector.h> #include <util/memory/blob.h> namespace NHnsw { /** * @brief Implementation of THnswIndexBase for dense vectors. ...
2,079
1,921
/** * @file * @brief Handle shutdown. **/ #pragma once #include "hiscores.h" // scorefile_entry #include "game-exit-type.h" #include "ouch.h" bool crawl_should_restart(game_exit exit); NORETURN void end(int exit_code, bool print_err = false, PRINTF(2, = nullptr)); NORETURN void end_game(scorefile_entry &se); NOR...
276
407
#!/usr/bin/env python # encoding: utf-8 """ """ __author__ = 'sreworks' import datetime import time import logging class MetricDataHandler(object): logger = logging.getLogger(__name__) @staticmethod def check_data(df_data, train_start_ts, train_end_ts, default_train_hours, min_train_hours): df_...
1,063
3,921
<filename>Android/LuaViewSDK/src/com/taobao/luaview/fun/mapper/ui/UIAnimatorMethodMapper.java /* * Created by LuaView. * Copyright (c) 2017, Alibaba Group. All rights reserved. * * This source code is licensed under the MIT. * For the full copyright and license information,please view the LICENSE file in the root ...
4,835
340
<gh_stars>100-1000 package com.redant.core.router.context; import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.lang.ClassScaner; import cn.hutool.core.util.StrUtil; import com.redant.core.bean.annotation.Bean; import com.redant.core.bean.context.BeanContext; import com.redant.core.bean.context.Defau...
3,194
852
<reponame>ckamtsikis/cmssw import FWCore.ParameterSet.Config as cms def customise(process): process.genParticles.abortOnUnknownPDGCode = False return(process)
58
526
/* SPDX-License-Identifier: Apache 2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.openmetadata.commonservices.ffdc; import org.slf4j.Logger; /** * RESTCallLogger provides standard logging for REST API method invocations. It logs * the start and end of the call and manages a timer...
930
1,572
import sys from django import get_version from distutils.version import StrictVersion DJANGO_VERSION = StrictVersion(get_version()) DJ21 = StrictVersion('2.1') DJ20 = StrictVersion('2.0') DJ111 = StrictVersion('1.11') DJ110 = StrictVersion('1.10') DJ19 = StrictVersion('1.9') DJ18 = StrictVersion('1.8') DJ17 = StrictVe...
274
13,648
<reponame>learnforpractice/micropython-cpp<gh_stars>1000+ /* origin: FreeBSD /usr/src/lib/msun/src/e_exp.c */ /* * ==================================================== * Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved. * * Permission to use, copy, modify, and distribute this * software is freely g...
2,168
5,169
{ "name": "ASCIImage", "version": "1.0.0", "summary": "Easily generate images from ASCII representations.", "description": "Create UIImage / NSImage instances from NSString, by combining ASCII art and Kindergarten skills.\n", "homepage": "https://github.com/cparnot/ASCIImage", "license": { "type": "MIT"...
249
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 namespace Manage...
805
6,036
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "ngram_repeat_block.h" namespace onnxruntime { namespace contrib { ONNX_OPERATOR_KERNEL_EX( NGramRepeatBlock, kMSDomain, 1, kCpuExecutionProvider, KernelDefBuilder() .TypeConstraint("...
193
526
/* SPDX-License-Identifier: Apache 2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.openmetadata.repositoryservices.connectors.stores.auditlogstore; import org.testng.annotations.Test; /** * OpenMetadataArchiveStoreProviderBaseTest just tests the null constructor */ public class OMRS...
144
388
<filename>WheelOverNestedScrollPane/src/java/example/MainPanel.java<gh_stars>100-1000 // -*- mode:java; encoding:utf-8 -*- // vim:set fileencoding=utf-8: // @homepage@ package example; import java.awt.*; import java.awt.event.MouseWheelEvent; import javax.swing.*; import javax.swing.plaf.LayerUI; import javax.swing.t...
1,948
806
<filename>killers/nokia/com.evenwell.powersaving.g3/sources/com/evenwell/powersaving/g3/PowerSavingUtils.java package com.evenwell.powersaving.g3; import android.app.ActivityManager; import android.app.AlarmManager; import android.app.AlertDialog; import android.app.Notification.Builder; import android.app.Notificatio...
39,827
3,269
// Time: O(nlogn) // Space: O(n) class Solution { public: vector<string> sortFeatures(vector<string>& features, vector<string>& responses) { unordered_set<string> features_set(cbegin(features), cend(features)); unordered_map<string, int> order; for (int i = 0; i < size(features); ++i) { ...
653
1,103
{ "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", "meta": { "version": "PTDL_v1" }, "exported_at": "2019-07-14T13:03:01+02:00", "name": "starmade", "author": "<EMAIL>", "description": "starmade", "image": "quay.io\/pterodactyl\/core:...
736
969
// Copyright (c) 2010-2021, Lawrence Livermore National Security, LLC. Produced // at the Lawrence Livermore National Laboratory. All Rights reserved. See files // LICENSE and NOTICE for details. LLNL-CODE-806117. // // This file is part of the MFEM library. For more information and source code // availability visit ht...
894
1,504
<reponame>yf-ftd/itchatmp #coding=utf8 import sys, collections from tornado.gen import Future TRANSLATE = 'Chinese' TRANSLATION = {} class NotDict(collections.MutableMapping): def __init__(self, *args, **kwargs): self.store = dict() self.update(dict(*args, **kwargs)) def __getitem...
7,297
669
<gh_stars>100-1000 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include "test_symm_qgemm.h" // // Short Execute() test helper to register each test seperately by all parameters. // template <typename AType, typename OutputType, bool Threaded> class Sy...
1,207
2,151
//===-- MipsMCSymbolRefExpr.cpp - Mips specific MC expression classes -----===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
1,003
585
<gh_stars>100-1000 /** * 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 requ...
607
705
package com.github.xiaolyuh.cache.config; import org.springframework.context.annotation.Import; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target({ElementType...
140
1,338
#include <stdio.h> #ifndef NDEBUG #ifndef DEBUG #define DEBUG 2 #endif #if DEBUG >= 1 #define UNIMPLEMENTED() printf("UNIMPLEMENTED %s\n",__PRETTY_FUNCTION__) #else #define UNIMPLEMENTED() ((void)0) #endif #if DEBUG >= 2 #define BROKEN() printf("BROKEN %s\n",__PRETTY_FUNCTION__) #else ...
290
5,169
{ "name": "TM-PSDK", "version": "5.2.2-1.25.0", "summary": "PresenceSDK is the ticket management SDK supplied by Ticketmaster.", "description": "Ticket management SDK provided by Ticketmaster. Used to manage tickets for your team accounts or ticketmaster accounts!", "homepage": "https://developer.ticketmaster...
292
1,006
/**************************************************************************** * boards/arm/lc823450/lc823450-xgevk/src/lc823450_bringup.c * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional informa...
1,099
1,475
<filename>geode-gfsh/src/distributedTest/java/org/apache/geode/management/internal/cli/NetstatDUnitTest.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 owners...
2,657
7,737
extern zend_class_entry *phalcon_forms_exception_ce; ZEPHIR_INIT_CLASS(Phalcon_Forms_Exception);
42
1,615
../../../Protobuf/objectivec/google/protobuf/SourceContext.pbobjc.h
25
309
import vtk.vtkNativeLibrary; import vtk.vtkExodusIIWriter; import vtk.vtkTimeSourceExample; public class ExodusIIWriter { // ----------------------------------------------------------------- // Load VTK library and print which library was not properly loaded static { if (!vtkNativeLibrary.LoadAllNativeLibraries())...
395
411
<filename>src/main/java/core/packetproxy/gui/GUIOptionClientCertificate.java /* * Copyright 2019 DeNA 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.apach...
1,687
2,713
<reponame>dingdingyr/SuperRecyclerView- package com.malinskiy.superrecyclerview.sample; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.TextView; import android.widget.Toast; import com.mal...
1,179
764
<filename>erc20/0xc047C42554c6495c85108aE8ee66fA4E3B88176d.json {"symbol": "MCN","address": "0xc047C42554c6495c85108aE8ee66fA4E3B88176d","overview":{"en": "Multi-Channel Network is focused on bringing about a world-class circular ecosystem aimed at providing access to the right partnership, plan flexibility, and projec...
182
488
<filename>tests/CompileTests/Fortran_tests/npbparams.h integer na, nonzer, niter double precision shift, rcond parameter( na=150000, > nonzer=15, > niter=75, > shift=110., > rcond=1.0d-1 ) integer nnodes_compiled ...
559
5,169
{ "name": "Aka-MAP", "version": "20.33.0", "license": { "type": "Akamai license", "file": "LICENSE" }, "summary": "Akamai Mobile Application Performance (MAP) SDK", "description": "Akamai’s Mobile Application Performance (MAP) SDK enables app owners and developers to understand the causes of mobile ...
587
1,144
<reponame>dram/metasfresh<gh_stars>1000+ package org.adempiere.ad.modelvalidator; import org.adempiere.ad.session.MFSession; import org.compiere.model.I_AD_Client; import de.metas.security.IUserLoginListener; /** * Template class to be used when implementing custom {@link IModelInterceptor}s. * * @author tsa * ...
519
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,223
338
package com.tvd12.ezyfoxserver.entity; public interface EzySessionFetcher { EzySession getSession(); }
43
28,056
<reponame>Czarek93/fastjson<filename>src/test/java/com/alibaba/json/bvt/mixins/MixinMergingTest.java package com.alibaba.json.bvt.mixins; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.annotation.JSONField; import junit.framework.TestCase; public class MixinMergingTest extends TestCase { public int...
373
348
<filename>docs/data/leg-t2/071/07102106.json {"nom":"Charolles","circ":"2ème circonscription","dpt":"Saône-et-Loire","inscrits":1910,"abs":956,"votants":954,"blancs":47,"nuls":18,"exp":889,"res":[{"nuance":"LR","nom":"<NAME>","voix":502},{"nuance":"REM","nom":"<NAME>","voix":387}]}
116
308
<filename>lib/FastLED/platforms/esp/8266/fastpin_esp8266.h #pragma once FASTLED_NAMESPACE_BEGIN struct FASTLED_ESP_IO { volatile uint32_t _GPO; volatile uint32_t _GPOS; volatile uint32_t _GPOC; }; #define _GPB (*(FASTLED_ESP_IO*)(0x60000000+(0x300))) template<uint8_t PIN, uint32_t MASK> class _ESPPIN { publ...
1,796
8,271
<?hh // strict /** * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ ...
956
2,472
// Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved. // Please refer to the license text that comes with this tendis open source // project for additional information. #ifndef SRC_TENDISPLUS_UTILS_BASE64_H_ #define SRC_TENDISPLUS_UTILS_BASE64_H_ #include <string> class Base64 { public: ...
167
4,816
<reponame>mehrdad-shokri/retdec /** * @file include/retdec/loader/loader/segment_data_source.h * @brief Declaration of segment data source class. * @copyright (c) 2017 Avast Software, licensed under the MIT license */ #ifndef RETDEC_LOADER_RETDEC_LOADER_SEGMENT_DATA_SOURCE_H #define RETDEC_LOADER_RETDEC_LOADER_SEG...
411
852
#include "DataFormats/L1THGCal/interface/HGCFETriggerDigi.h" using namespace l1t; void HGCFETriggerDigi::print(std::ostream& out) const { out << "Codec type: " << static_cast<unsigned>(codec_) << std::endl; out << "Raw data payload: "; for (unsigned i = data_.size(); i > 0; --i) { out << (unsigned)data_[i -...
145
2,151
<filename>third_party/android/platform-libcore/android-platform-libcore/dom/src/test/java/org/w3c/domts/level1/core/hc_textwithnomarkup.java<gh_stars>1000+ /* This Java source file was generated by test-to-java.xsl and is a derived work from the source document. The source document contained the following notice: Co...
1,223
60,910
<gh_stars>1000+ //Describe how you could use a single array to implement three stacks public class ThreeStacks { int stackSize = 100; int[] buffer = new int[stackSize * 3]; int[] stackPointer = {-1, -1, -1}; //pointers to track top element void push(int stackNum, int value) throws Exception { /* check if we hav...
429
1,444
<filename>Mage.Sets/src/mage/cards/t/TeeteringPeaks.java package mage.cards.t; import java.util.UUID; import mage.abilities.Ability; import mage.abilities.common.EntersBattlefieldTappedAbility; import mage.abilities.common.EntersBattlefieldTriggeredAbility; import mage.abilities.effects.common.continuous.BoostTarget...
448
3,215
import os import json import unittest import jc.parsers.hciconfig THIS_DIR = os.path.dirname(os.path.abspath(__file__)) class MyTests(unittest.TestCase): def setUp(self): # input with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/centos-7.7/hciconfig.out'), 'r', encoding='utf-8') as f: ...
1,434
350
<gh_stars>100-1000 /* * Copyright (C) 2005-2017 <NAME> (<EMAIL>). * * 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...
4,976
4,945
{ "title": { "zh": "中文分类", "en": "Category" }, "demos": [ { "filename": "legend.js", "title": { "zh": "图例-点击筛选", "en": "Legend with Clicking Filtering" }, "screenshot": "https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*0RYmToKWsOQAAAAAAAAAAAAAARQnAQ" }...
501
348
<filename>docs/data/leg-t2/068/06803124.json<gh_stars>100-1000 {"nom":"Hausgauen","circ":"3ème circonscription","dpt":"Haut-Rhin","inscrits":340,"abs":181,"votants":159,"blancs":9,"nuls":3,"exp":147,"res":[{"nuance":"LR","nom":"<NAME>","voix":88},{"nuance":"REM","nom":"M. <NAME>","voix":59}]}
124
1,599
# This code is part of Qiskit. # # (C) Copyright IBM 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
963
354
<reponame>iabernikhin/VK-GL-CTS /*------------------------------------------------------------------------- * OpenGL Conformance Test Suite * ----------------------------- * * Copyright (c) 2014-2016 The Khronos Group Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this...
11,417
545
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include <stdlib.h> #include <stdbool.h> #include "azure_c_shared_utility/xlogging.h" #include "azure_c_shared_utility/gballoc.h" #include "prov_service_client/provis...
1,393
2,441
<reponame>mananpal1997/pyston<filename>pyston/test/jit_osr_limit.py # OSR JIT compiles a new function def test_jit_osr_func(): g = {} exec("""def f(x): for i in range(10000): x""", g) g["f"](i) for i in range(1000): test_jit_osr_func()
152
331
package com.lauzy.freedom.data.local; import android.content.ContentUris; import android.content.Context; import android.database.Cursor; import android.net.Uri; import android.provider.MediaStore; /** * Desc : 音乐工具类 * Author : Lauzy * Date : 2017/8/10 * Blog : http://www.jianshu.com/u/e76853f863a9 * Email : <EM...
1,320
1,144
<filename>openwrt/package/utils/swupdate/src/include/lua_util.h /* * (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 ...
577
9,959
<filename>src/launch/lombok/launch/ShadowClassLoader.java /* * Copyright (C) 2014-2021 The Project Lombok Authors. * * 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,...
8,443
575
// 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. #ifndef CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_ #define CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_ #include <list> #include <memory> #include <s...
1,309
3,294
// This is a part of the Microsoft Foundation Classes C++ library. // Copyright (c) Microsoft Corporation. All rights reserved. // // This source code is only intended as a supplement to the // Microsoft Foundation Classes Reference and related // electronic documentation provided with the library. // See these source...
514
5,813
/* * 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 ...
3,356
381
package de.dennisguse.opentracks.fragments; import android.content.SharedPreferences; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx...
2,494
369
/** @file @brief Implementation @date 2015 @author Sensics, Inc. <http://sensics.com/osvr> */ // Copyright 2015 Sensics, 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 L...
2,009