max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,900
/* * Copyright Terracotta, 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 ...
1,286
6,958
// // ReverseTest.cpp // MNNTests // // Created by MNN on 2021/02/20. // Copyright © 2018, Alibaba Group Holding Limited // #include <MNN/expr/Expr.hpp> #include <MNN/expr/ExprCreator.hpp> #include "MNNTestSuite.h" #include "TestUtils.h" using namespace MNN::Express; class ReverseTest : public MNNTestCase { publi...
1,877
1,463
## Copyright 2015-2019 <NAME>, <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 i...
871
347
<reponame>hbraha/ovirt-engine package org.ovirt.engine.core.common.businessentities.gluster; /** * Enum of Gluster Hooks Statuses * * @see GlusterHookEntity */ public enum GlusterHookStatus { /** * Hook is enabled in the cluster */ ENABLED, /** * Hook is disabled in the cluster */ ...
165
852
#include "CondFormats/L1TObjects/interface/L1MuDTTFMasks.h" #include "FWCore/Utilities/interface/typelookup.h" TYPELOOKUP_DATA_REG(L1MuDTTFMasks);
65
337
<gh_stars>100-1000 __author__ = 'maartenbreddels' import string import astropy.io.votable.ucd import astropy.units import logging from vaex.ui.qt import * # from astropy.utils import data import astropy.utils.data # astropy.utils.data import numpy as np logger = logging.getLogger("vaex.ui.completer") # based on http:...
4,725
10,245
/* * Copyright 2020 The gRPC Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
924
777
<reponame>google-ar/chromium // Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/safe_browsing_db/android/jni_registrar.h" #include "base/android/jni_android.h" #include "base/android/...
313
3,121
<gh_stars>1000+ from __future__ import absolute_import from nlpaug.model.word_stats.word_statistics import * from nlpaug.model.word_stats.tfidf import *
52
450
/* $PostgreSQL: pgsql/src/include/port/linux.h,v 1.42.2.1 2007/07/02 20:12:00 tgl Exp $ */ /* * As of July 2007, all known versions of the Linux kernel will sometimes * return EIDRM for a shmctl() operation when EINVAL is correct (it happens * when the low-order 15 bits of the supplied shm ID match the slot number ...
220
729
<reponame>nickles-lee/protobuf-java-format<gh_stars>100-1000 package com.googlecode.protobuf.format; import java.io.IOException; import com.google.protobuf.ExtensionRegistry; import com.google.protobuf.Message; import com.google.protobuf.UnknownFieldSet; /** * Created by IntelliJ IDEA. * User: aantonov * Date: M...
1,263
604
# -*- coding: utf-8 -*- r""" Cross-platform logic for dealing with symlinks. Basic functionality should work on all operating systems including everyone's favorite pathological OS (note that there is an additional helper file for this case), but there are some corner cases depending on your version. Recent versions of ...
4,862
310
{ "name": "<NAME>", "description": "PCB/schematic capture design software.", "url": "https://www.altium.com/altium-designer/overview" }
51
3,710
#include "morphtool.h" #include "tgl.h" #include "tvectorgl.h" #include "tvectorrenderdata.h" #include "tvectorimage.h" #include "tstroke.h" #include <math.h> #include "tools/toolhandle.h" #include "toonz/txshlevelhandle.h" #include "toonz/tframehandle.h" #include "toonz/txshsimplelevel.h" #include <QKeyEvent> cla...
2,986
14,668
<filename>chrome/browser/ash/crosapi/file_manager_ash.cc // 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/ash/crosapi/file_manager_ash.h" #include "base/bind.h" #include "base/c...
1,226
4,020
<filename>src/main/java/me/coley/recaf/search/InsnResult.java package me.coley.recaf.search; import java.util.List; import java.util.Objects; /** * Search result of a matched class. * * @author Matt */ public class InsnResult extends SearchResult { private final int index; private final List<String> lines; /*...
534
892
{ "schema_version": "1.2.0", "id": "GHSA-h8x6-6x9h-gmgp", "modified": "2022-05-01T23:36:50Z", "published": "2022-05-01T23:36:50Z", "aliases": [ "CVE-2008-1116" ], "details": "Insecure method vulnerability in the Web Scan Object ActiveX control (OL2005.dll) in Rising Antivirus Online Scanner allows rem...
564
421
<reponame>hamarb123/dotnet-api-docs<gh_stars>100-1000 // <Snippet1> using namespace System::Runtime::InteropServices; [ClassInterface(ClassInterfaceType::AutoDispatch)] public ref class MyClass { public: MyClass(){} }; // </Snippet1>
100
1,511
/* */ /* The FreeType private functions used in base module (specification). */ /* */ /* Copyright 2008, 2010 by */ /* <NAM...
326
1,676
#ifndef NEURALNET_OPENCL_TUNER_H_ #define NEURALNET_OPENCL_TUNER_H_ #include "../core/global.h" #include "../core/commontypes.h" #include "../core/logger.h" #include "../neuralnet/desc.h" #include "../neuralnet/nninputs.h" #include "../neuralnet/openclincludes.h" #include "../neuralnet/openclhelpers.h" namespace Open...
2,497
2,199
<reponame>SamihMustafa/bt /* * Copyright (c) 2016—2021 <NAME> 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/licenses/LICENS...
1,351
8,570
{ "$schema": "http://json.schemastore.org/ide.host", "order": 700, "icon": "ide/RazorClassLibrary.ico", "symbolInfo": [ { "id": "SupportPagesAndViews", "isVisible": true, "persistenceScope": "templateGroup" } ] }
113
335
{ "word": "Intellectualize", "definitions": [ "Give an intellectual character to.", "Talk, write, or think intellectually." ], "parts-of-speech": "Verb" }
76
634
import uuid from django.db.models import F from django.test import TestCase from django.utils.crypto import get_random_string from zentral.contrib.inventory.models import EnrollmentSecret, MetaBusinessUnit, Tag from zentral.contrib.santa.models import (Bundle, Configuration, EnrolledMachine, Enrollment, ...
13,568
5,169
<reponame>Gantios/Specs { "name": "TrustYouStarsSDK", "version": "1.0.0", "summary": "TrustYou Stars SDK for integrating TrustYou surveys to your App.", "description": "TrustYou Stars SDK for integrating TrustYou surveys to your App.", "homepage": "http://trustyou.com", "license": "Apache License, Version 2...
267
1,056
<filename>enterprise/web.jsf/src/org/netbeans/modules/web/jsf/wizards/FacesComponentPanel.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. The ...
1,449
872
""" Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of queue. pop() -- Removes the element from in front of queue. peek() -- Get the front element. empty() -- Return whether the queue is empty. Notes: You must use only standard operations of a stack -- which means only...
628
648
<gh_stars>100-1000 {"resourceType":"DataElement","id":"Sequence.quality.gtFP","meta":{"lastUpdated":"2017-04-19T07:44:43.294+10:00"},"url":"http://hl7.org/fhir/DataElement/Sequence.quality.gtFP","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"id":"Sequence.quality.gtFP","path":"Sequence...
198
14,668
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chromeos/services/assistant/assistant_manager_service.h" namespace chromeos { namespace assistant { AuthenticationStateObserver::Authenticatio...
186
408
package com.davidecirillo.multichoicesample.sampleCustomView; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.View; import com.davidecirillo.multichoicerecyclerview.MultiChoic...
1,598
1,144
<filename>u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3/drivers/mtd/nand/raw/sunxi_nand_spl.c // SPDX-License-Identifier: GPL-2.0+ /* * Copyright (c) 2014-2015, Antmicro Ltd <www.antmicro.com> * Copyright (c) 2015, AW-SOM Technologies <www.aw-som.com> */ #include <asm/arch/clock.h> #include <asm/io.h> #include <...
7,397
1,178
<reponame>leozz37/makani /* * Copyright 2020 Makani Technologies LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless re...
1,367
2,921
{ "name": "CashDog", "website": "https://www.cashdog.io/", "description": "CashDog is a Charity Focused DeFi Token with Automatic Liquidity Generation and Token Redistribution on each trade.", "explorer": "https://bscscan.com/token/0x494a2f5395ac213622762e4ef4d44661758ca639", "type": "BEP20", "s...
192
1,188
/* * Copyright 2016 <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 by applicable la...
10,288
301
#include <stdlib.h> #include <sys/socket.h> /* from stdlib.h */ float strtof(const char *nptr, char **endptr) { return (float)strtod(nptr, endptr); } double atof(const char *nptr) { return strtod(nptr, NULL); } int abs(int __n) { return (__n < 0) ? -__n : __n; } long labs(long __n) { return (__n < 0...
672
3,269
# Time: O(nlogn) # Space: O(1) class Solution(object): def eliminateMaximum(self, dist, speed): """ :type dist: List[int] :type speed: List[int] :rtype: int """ for i in xrange(len(dist)): dist[i] = (dist[i]-1)//speed[i] dist.sort() resul...
253
395
<reponame>jabader97/backpack<filename>backpack/extensions/curvmatprod/pchmp/flatten.py from backpack.core.derivatives.flatten import FlattenDerivatives from backpack.extensions.curvmatprod.pchmp.pchmpbase import PCHMPBase class PCHMPFlatten(PCHMPBase): def __init__(self): super().__init__(derivatives=Flat...
128
14,668
// Copyright 2013 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/search/instant_unittest_base.h" #include <string> #include "base/bind.h" #include "base/strings/utf_string_conversions.h" #incl...
859
16,483
<filename>common/src/main/java/io/seata/common/holder/ObjectHolder.java /* * Copyright 1999-2019 Seata.io Group. * * 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://ww...
591
4,812
<filename>llvm/include/llvm/FuzzMutate/Operations.h //===-- Operations.h - ----------------------------------------*- C++ -*-===// // // 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 WITH ...
659
4,013
<gh_stars>1000+ '''初始化''' from .interfaces import showEndGameInterface from .Sprites import BadguySprite, ArrowSprite, BunnySprite
46
727
<reponame>sandeepnair2812/Weibull-Time-To-Event-Recurrent-Neural-Network from __future__ import absolute_import from __future__ import division from __future__ import print_function #import pytest import numpy as np import pandas as pd from six.moves import xrange from wtte.transforms import padded_to_df from wtte.pi...
1,528
3,222
package org.apache.maven.model.plugin; /* * 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 Licen...
962
323
<gh_stars>100-1000 package org.jsets.shiro.listener; import java.util.Date; import javax.servlet.ServletRequest; public interface AuthListener { /** * 登录成功 * @param request http请求 * @param account 账号 */ void onLoginSuccess(ServletRequest request,String account); /** * 登录失败 * @param req...
761
343
package com.ejlchina.searcher.param; import java.util.List; /** * 字段参数组 * @author Troy.Zhou @ 2021-10-31 * @since v3.3.0 */ public class ParamGroup { /** * 且组,表示子组 groups 之间都是 且 的关系 */ public static final int TYPE_AND = 1; /** * 或组,表示子组 groups 之间都是 或 的关系 */ public static final...
573
550
<gh_stars>100-1000 #ifndef example_exchange_h #define example_exchange_h #include "order.h" #include "example_order_book.h" #include <string> #include <map> #include <boost/shared_ptr.hpp> namespace liquibook { namespace examples { class Exchange { public: Exchange(ExampleOrderBook::TypedDepthListener* depth_list...
270
663
<reponame>Euromance/pycopy<gh_stars>100-1000 # Calling native base class unbound method with subclass instance. class mylist(list): pass l = mylist((1, 2, 3)) assert type(l) is mylist print(l) list.append(l, 4) print(l)
89
580
<reponame>bkmgit/rumale #include "tree.h" RUBY_EXTERN VALUE mRumale; double* alloc_dbl_array(const long n_dimensions) { double* arr = ALLOC_N(double, n_dimensions); memset(arr, 0, n_dimensions * sizeof(double)); return arr; } double calc_gini_coef(double* histogram, const long n_elements, const long n_classes)...
7,700
1,144
#include <string.h> #include <stdlib.h> #include "uri.h" using namespace std; namespace rokid { static bool parse_scheme(Uri* uri, const char* s, int32_t& b, int32_t e) { int32_t i = b; while (i < e) { if (s[i] == ':') { if (i > b) { uri->scheme.assign(s, i - b); b = i + 1; ret...
1,797
4,124
# # Autogenerated by Thrift Compiler (0.9.2) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py:utf8strings # from thrift.Thrift import TType, TMessageType, TException, TApplicationException from thrift.transport import TTransport from thrift.protocol import TBinaryProtocol, ...
76,606
372
/* Kerberos4 SASL plugin * <NAME> * <NAME> * $Id: kerberos4.c,v 1.99 2005/01/10 07:08:53 shadow Exp $ */ /* * Copyright (c) 1998-2003 Carnegie Mellon University. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the followi...
16,973
1,444
<reponame>amc8391/mage package org.mage.test.cards.single.m21; import mage.constants.PhaseStep; import mage.constants.Zone; import org.junit.Test; import org.mage.test.serverside.base.CardTestPlayerBase; public class DiscontinuityTest extends CardTestPlayerBase { @Test public void testCostReduction(){ ...
310
519
// BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE #define FILENAME(line) FILENAME_FOR_EXCEPTIONS_C("src/cpu-kernels/awkward_index_rpad_and_clip_axis1.cpp", line) #include "awkward/kernels.h" template <typename T> ERROR awkward_index_rpad_and_clip_axis1( T* tostarts, T* tost...
342
1,031
<filename>cacreader/swig-4.0.2/Examples/test-suite/java/li_boost_shared_ptr_attribute_runme.java import li_boost_shared_ptr_attribute.*; public class li_boost_shared_ptr_attribute_runme { static { try { System.loadLibrary("li_boost_shared_ptr_attribute"); } catch (UnsatisfiedLinkError e) { Syst...
478
360
""" Copyright (c) 2020 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WI...
365
576
<filename>Examples/DicomSeriesFromArray/DicomSeriesFromArray.py<gh_stars>100-1000 # ========================================================================= # # Copyright NumFOCUS # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. #...
2,309
575
<filename>chrome/browser/ui/webui/read_later/read_later_ui.h // 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_UI_WEBUI_READ_LATER_READ_LATER_UI_H_ #define CHROME_BROWSER_UI_WEBUI_R...
672
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 CHROME_BROWSER_SPEECH_SPEECH_RECOGNITION_CLIENT_BROWSER_INTERFACE_FACTORY_H_ #define CHROME_BROWSER_SPEECH_SPEECH_RECOGNITION_CLIENT_BROWSER_INTER...
462
335
{ "word": "Token", "definitions": [ "A thing serving as a visible or tangible representation of a fact, quality, feeling, etc.", "A badge or favour worn to indicate allegiance to a particular person or party.", "A word or object conferring authority on or serving to authenticate the spea...
326
6,089
{ "name": "@react-icons/all-files", "version": "4.3.1", "description": "SVG React icons of popular icon packs using ES6 imports", "author": "<NAME>", "contributors": [ "kamijin_fanta <<EMAIL>>" ], "license": "MIT", "main": "lib", "types": "./lib/esm/index.d.ts", "sideEffects": false, "reposito...
255
488
#ifndef FIXUP_FORTRAN_ARRAY_VS_FUNCTION_REFERENCES_H #define FIXUP_FORTRAN_ARRAY_VS_FUNCTION_REFERENCES_H // DQ (11/24/2007): /*! \brief Fixup Fortran array vs. function references. Fortran references to arrys and functions can not be easily disambiguated until after the whole program has been seen. Part o...
350
1,467
/* * Copyright 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" file ...
617
4,601
<filename>examples/basic/ios/VideoPlayer-Bridging-Header.h // // VideoPlayer-Bridging-Header.h // VideoPlayer // // Created by <NAME> on 2/1/22. // #ifndef VideoPlayer_Bridging_Header_h #define VideoPlayer_Bridging_Header_h #endif /* VideoPlayer_Bridging_Header_h */
105
316
import numpy as np import glob import re import csv from ssd_data import BaseGTUtility from thirdparty.get_image_size import get_image_size class GTUtility(BaseGTUtility): """Utility for RoboTT-Net dataset. # Arguments data_path: Path to ground truth and image data. """ def __init__(se...
1,092
854
<reponame>rakhi2001/ecom7<filename>Java/1191.java<gh_stars>100-1000 __________________________________________________________________________________________________ sample 4 ms submission class Solution { public int kConcatenationMaxSum(int[] arr, int k) { long l=0,r=0,sum=0,total=0,tmp=0; for(int...
1,373
937
package cyclops.function; import java.util.function.Consumer; import java.util.function.Function; /** * A FunctionalInterface for side-effecting statements that accept 3 inputs (with no result). * The three-arity specialization of {@link Consumer}. * * @author johnmcclean * * @param <S1> Type of first input ...
573
716
<gh_stars>100-1000 // Copyright (c) 2022 The Orbit 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 ORBIT_GL_OPEN_GL_TEXT_RENDERER_H_ #define ORBIT_GL_OPEN_GL_TEXT_RENDERER_H_ #include <GteVector.h> #include <freetype-gl/mat4...
1,240
2,151
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/policy/default_geolocation_policy_handler.h" #include "base/memory/ptr_util.h" #include "base/values.h" #include "components/arc...
1,072
956
<gh_stars>100-1000 /* SPDX-License-Identifier: BSD-3-Clause * Copyright 2015 6WIND S.A. * Copyright 2015 Mellanox Technologies, Ltd */ #ifndef RTE_PMD_MLX5_UTILS_H_ #define RTE_PMD_MLX5_UTILS_H_ #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <limits.h> #include <errno.h> #include <rte_spinloc...
9,679
5,169
{ "name": "phoneid_iOS", "version": "0.1.8", "summary": "Phone.Id SDK library", "description": "iOS library that provides access to phone.id service.\nPhone.id service allows App developers to use the phone number as a social login, without using nicknames or passwords at all.", "homepage": "https://github.co...
406
975
# Copyright (C) 2017 Nippon Telegraph and Telephone 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 appli...
2,290
4,962
<filename>byte-buddy-dep/src/test/java/net/bytebuddy/agent/builder/AgentBuilderDefaultNativeMethodStrategyTest.java package net.bytebuddy.agent.builder; import net.bytebuddy.description.method.MethodDescription; import net.bytebuddy.test.utility.MockitoRule; import org.junit.Before; import org.junit.Rule; import org.j...
1,010
1,175
<gh_stars>1000+ package com.dianping.loader.model; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import android.os.Parcel; import android.os.Parcelable; public class FileSpec implements Parcelable { /** * Download when required<br> * 需要时再下载 */ public stat...
1,412
1,109
<reponame>amd-yan/simple-salesforce """Simple-Salesforce Package""" # flake8: noqa from .api import Salesforce, SFType from .bulk import SFBulkHandler from .exceptions import (SalesforceAuthenticationFailed, SalesforceError, SalesforceExpiredSession, SalesforceGeneralError, ...
230
8,755
#pragma once struct AsyncMqttClientMessageProperties { uint8_t qos; bool dup; bool retain; };
40
601
""" Spacer components to add horizontal or vertical space to a layout. """ import param from bokeh.models import Div as BkDiv, Spacer as BkSpacer from ..reactive import Reactive class Spacer(Reactive): """ The `Spacer` layout is a very versatile component which makes it easy to put fixed or responsive ...
1,168
915
package org.nzbhydra.fortests; import lombok.Builder; import lombok.Data; import java.time.Instant; import java.util.List; @Data @Builder public class NewznabItemData { private String title; private String description; private String link; private String category; private List<Integer> newznabCa...
145
1,826
package com.vladsch.flexmark.util.sequence; import com.vladsch.flexmark.util.data.DataHolder; import com.vladsch.flexmark.util.data.DataKeyBase; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; /** * A CharSequence that references original char[] * a subSequence() returns a sub-s...
2,349
8,805
//---------------------------------------------------------------------------// // Copyright (c) 2013 <NAME> <<EMAIL>> // // 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 // // See http://boostorg.github.com/c...
865
2,881
<gh_stars>1000+ package com.salesmanager.shop.store.api.v1.security; import java.util.ArrayList; import java.util.List; import java.util.Set; import javax.inject.Inject; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; imp...
1,306
3,102
// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -std=c++11 -fcxx-exceptions -fexceptions -S -emit-llvm -o - %s | FileCheck %s namespace std { struct string { const char *p; string(const char *s); ~string(); }; } struct Bar { int a; }; struct Foo { std::string c; Bar d[32]; }; static ...
212
5,169
{ "name": "TravelerKit", "version": "0.1.1", "license": { "type": "Apache" }, "homepage": "https://github.com/Guestlogix/traveler-ios", "authors": { "<NAME>": "<EMAIL>" }, "summary": "Traveler Swift Core SDK", "source": { "git": "https://github.com/Guestlogix/traveler-ios.git", "branch...
220
2,434
/* * Copyright 2017 <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...
777
345
#pragma once #include "Sqex_Excel.h" #include "Sqex_Sqpack.h" namespace Sqex::Excel { class Depth2ExhExdCreator { public: const std::string Name; const std::vector<Exh::Column> Columns; const int SomeSortOfBufferSize; const size_t DivideUnit; const uint32_t FixedDataSize; std::map<uint32_t, std::map<Lang...
403
569
# Lint as: python3 # Copyright 2019 DeepMind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
15,699
42,015
<reponame>ye1088/uni-app<gh_stars>1000+ { "name": "vue-router", "version": "3.0.1", "description": "Official router for Vue.js 2", "author": "<NAME>", "license": "MIT", "main": "dist/vue-router.common.js", "module": "dist/vue-router.esm.js", "unpkg": "dist/vue-router.js", "repository": { "type": "...
245
9,959
import lombok.experimental.SuperBuilder; public class SuperBuilderInAnonymousClass { Object annonymous = new Object() { @SuperBuilder class InnerParent { private String string; InnerParent() { super(); } } @SuperBuilder class InnerChild { private String string; InnerC...
181
3,084
/*++ Copyright (c) Microsoft Corporation. All rights reserved. Module Name: controller.h Abstract: This module contains the controller-specific function definitions. Environment: kernel-mode only Revision History: --*/ #ifndef _CONTROLLER_H_ #define _CONTROLLER_H_ //...
663
1,340
// // MTIRenderGraphMerge.h // MetalPetal // // Created by <NAME> on 20/11/2017. // #if __has_include(<MetalPetal/MetalPetal.h>) #import <MetalPetal/MTIImagePromise.h> #else #import "MTIImagePromise.h" #endif NS_ASSUME_NONNULL_BEGIN @class MTIImage; __attribute__((objc_subclassing_restricted)) @interface MTIRend...
288
1,306
/* * Copyright (C) 2011 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...
1,433
504
<reponame>steakknife/pcgeos<gh_stars>100-1000 /*********************************************************************** * * Copyright (c) Berkeley Softworks 1989 -- All Rights Reserved * * PROJECT: PCGEOS * MODULE: Tools Library -- String Table Handling * FILE: stDestroy.c * * AUTHOR: <NAME>: F...
797
713
<reponame>vansh-tiwari/coding-interview-gym # """ # This is Master's API interface. # You should not implement it, or speculate about its implementation # """ # class Master(object): # def guess(self, word): # """ # :type word: str # :rtype int # """ # https://tinyurl.com/wqy5ll4 from co...
679
1,338
<gh_stars>1000+ #ifndef _MALLOC_FREE_ALLOCATOR_H_ #define _MALLOC_FREE_ALLOCATOR_H_ #include <util/Constructor.h> #include <malloc.h> template <class DataType> class MallocFreeAllocator : public Constructor<DataType> { public: typedef DataType* Pointer; typedef const DataType* ConstPointer; typedef DataType& Refe...
259
3,673
#ifndef KERNEL_PCI_MANAGER_HPP #define KERNEL_PCI_MANAGER_HPP #include <cstdint> #include <hw/nic.hpp> #include <hw/block_device.hpp> #include <hw/pci_device.hpp> namespace hw { class PCI_manager { public: // a <...> driver is constructed from a PCI device, // and returns a unique_ptr to itself using NIC_dr...
328
312
//----------------------------------------------------------------------------- // Copyright (c) 2015 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, includi...
3,669
587
import torch import torch.nn as nn import pytorch_lightning as pl import vilt.modules.vision_transformer as vit from transformers.models.bert.modeling_bert import BertConfig, BertEmbeddings from vilt.modules import heads, objectives, vilt_utils class ViLTransformerSS(pl.LightningModule): def __init__(self, confi...
4,501
1,338
<filename>src/bin/debug/profile/Thread.cpp /* * Copyright 2008-2010, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. */ #include "Thread.h" #include <algorithm> #include <new> #include <debug_support.h> #include "debug_utils.h" #include "Image.h" #include "Options.h" #include "Team.h" // #...
2,028
3,083
<reponame>utumen/binnavi // Copyright 2011-2016 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
339
1,457
/* * Copyright 2016 KairosDB Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
1,392
651
/****************************************************************************** * Copyright (c) Intel Corporation - All rights reserved. * * This file is part of the LIBXSMM library. * * * ...
954