max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
798
/* * The MIT License * * Copyright (c) 2019 The Broad Institute * * 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, including without limitation the rights * to use...
1,888
1,031
import wrapmacro a = 2 b = -1 wrapmacro.maximum(a, b) wrapmacro.maximum(a / 7.0, -b * 256) wrapmacro.GUINT16_SWAP_LE_BE_CONSTANT(1)
66
1,337
/* * Copyright (c) 2008-2019 Haulmont. * * 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 agr...
2,131
5,169
{ "name": "MdcLib", "version": "1.1.2", "summary": "None", "description": "The MdcLib iOS SDK, the SDK supports iOS7, iOS 8, iOS 9 and iOS 10", "homepage": "https://github.com/duplicater/MdcLib.git", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "lecuong": "<EMAIL>" }, "s...
472
2,151
/* * Copyright (c) 2017 The WebRTC 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
2,518
13,006
/******************************************************************************* * 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/LICENSE-2.0. * *...
1,067
343
<filename>mayan/apps/tags/tests/test_tag_document_api.py from rest_framework import status from mayan.apps.documents.permissions import permission_document_view from mayan.apps.documents.tests.mixins.document_mixins import DocumentTestMixin from mayan.apps.rest_api.tests.base import BaseAPITestCase from ..permissions...
1,422
399
<gh_stars>100-1000 package org.cryptocoinpartners.module.xchange; import java.util.Date; import org.cryptocoinpartners.enumeration.PositionEffect; import org.cryptocoinpartners.schema.Listing; import org.cryptocoinpartners.schema.SpecificOrder; import org.cryptocoinpartners.util.XchangeUtil; import org.knowm.xchange....
804
575
<gh_stars>100-1000 // 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. #ifndef ASH_AMBIENT_UI_AMBIENT_SHIELD_VIEW_H_ #define ASH_AMBIENT_UI_AMBIENT_SHIELD_VIEW_H_ #include "ui/views/metadata/metadata_heade...
264
1,444
package mage.cards.p; import mage.abilities.Ability; import mage.abilities.effects.OneShotEffect; import mage.abilities.effects.common.continuous.GainAbilityTargetEffect; import mage.abilities.keyword.ProtectionAbility; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.choices.ChoiceColor; import ...
821
555
<gh_stars>100-1000 #!/usr/bin/env python3 """ reloadall.py: transitively reload nested module (2.x + 3.x) Call reload_all with one or more import module module objects """ import types from imp import reload # from required in 3.x def status(module): print('reloading ' + module.__name__) def tryreload(module)...
541
797
/* * Copyright (c) 2015-present, <NAME> * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.intellij.lang.jsgraphql.ide.structureView; import com.intellij.ide.structureView.StructureViewModel; impo...
1,091
439
{ "blurb": "Given a decimal number, convert it to the appropriate sequence of events for a secret handshake.", "authors": [ "stkent" ], "contributors": [ "c-thornton", "FridaTveit", "jmrunkle", "kytrinyx", "lemoncurry", "morrme", "msomji", "muzimuzhi", "sjwarner-bp", ...
367
946
#include "config.hpp" #include "mapcss/StyleSheet.hpp" #include "mapcss/MapCssParser.hpp" #include <boost/test/unit_test.hpp> #include <fstream> using namespace utymap::mapcss; namespace { struct MapCss_MapCssParserFixture { MapCss_MapCssParserFixture() : parser(), stylesheet() { } MapCssParser ...
3,859
14,668
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/core/editing/ng_flat_tree_shorthands.h" #include "third_party/blink/renderer/core/editing/local_caret_rect.h" #inclu...
511
852
<gh_stars>100-1000 import FWCore.ParameterSet.Config as cms from SimGeneral.HepPDTESSource.pythiapdt_cfi import * allElectronTracks = cms.EDProducer("ChargedCandidateProducer", src = cms.InputTag("ctfWithMaterialTracks"), particleType = cms.string('e-') )
102
1,210
<reponame>EuroLine/nheqminer // Copyright (C) 2011 <NAME>. // 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) // Message Passing Interface 1.1 -- Section 4.5. Gatherv #ifndef BOOST_M...
2,402
4,440
<reponame>caffeinatedMike/flask-admin from flask_admin import tools def test_encode_decode(): assert tools.iterdecode(tools.iterencode([1, 2, 3])) == (u'1', u'2', u'3') assert tools.iterdecode(tools.iterencode([',', ',', ','])) == (u',', u',', u',') assert tools.iterdecode(tools.iterencode(['.hello.,', ...
260
1,056
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
1,443
550
<reponame>HPLegion/glue<gh_stars>100-1000 import pytest import numpy as np from numpy.testing import assert_equal from glue.core import Data, DataCollection from glue.core.link_helpers import LinkSame ARRAY = np.arange(3024).reshape((6, 7, 8, 9)).astype(float) class TestFixedResolutionBuffer(): def setup_met...
2,589
1,874
# Copyright 2012 Nebula, Inc. # Copyright 2013 IBM Corp. # # 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...
534
3,372
<filename>aws-java-sdk-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/PasswordPolicyType.java /* * Copyright 2016-2021 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 *...
7,414
320
<reponame>2757571500/sdk<gh_stars>100-1000 /* * Copyright (c) 2016 jMonkeyEngine * 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 ...
1,820
357
/* * Copyright © 2012-2015 VMware, Inc. 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...
1,341
1,444
<gh_stars>1000+ package mage.abilities.effects; import mage.MageObject; import mage.abilities.Ability; import mage.abilities.Mode; import mage.constants.Duration; import mage.game.Game; import mage.game.events.GameEvent; import mage.players.Player; /** * * @author LevelX2 */ public class AsTurnedFaceUpEffect exte...
1,043
1,861
from .version import * import ctypes def get_file_version_info(filename): # Get the file version info structure. pBlock = GetFileVersionInfoW(filename) pBuffer, dwLen = VerQueryValueW(pBlock.raw, "\\") if dwLen != ctypes.sizeof(VS_FIXEDFILEINFO): raise ctypes.WinError(ERROR_BAD_LENGTH) pVersionInfo = ctypes.ca...
221
428
<reponame>zhiqiang-hu/qucsdk #ifndef GAUGECOMPASS_H #define GAUGECOMPASS_H /** * 指南针仪表盘控件 作者:feiyangqingyun(QQ:517216493) 2016-11-12 * 1. 可设置当前度数。 * 2. 可设置精确度。 * 3. 可设置是否启用动画及步长。 * 4. 可设置边框渐变颜色。 * 5. 可设置背景渐变颜色。 * 6. 可设置加深和明亮颜色。 * 7. 可设置指南指北指针颜色。 * 8. 可设置中心点渐变颜色。 */ #include <QWidget> #ifdef quc class Q_DE...
2,675
423
/** * Copyright &copy; 2012-2014 <a href="http://www.iwantclick.com">iWantClick</a>iwc.shop All rights reserved. */ package com.iwc.shop.modules.sys.dao; import com.iwc.shop.common.persistence.TreeDao; import com.iwc.shop.common.persistence.annotation.MyBatisDao; import com.iwc.shop.modules.sys.entity.Office; /** ...
176
2,542
<reponame>gridgentoo/ServiceFabricAzure #include "stdafx.h" using namespace std; using namespace Common; using namespace Federation; using namespace Reliability; using namespace ServiceModel; using namespace Management::NetworkInventoryManager; StringLiteral const NIMAllocationManagerProvider("NIMAllocationManager");...
16,166
390
<reponame>JLLeitschuh/blueflood package com.rackspacecloud.blueflood.io; import com.rackspacecloud.blueflood.types.IMetric; import java.util.List; /** * Used by {@link com.rackspacecloud.blueflood.utils.ModuleLoaderTest} */ public class DummyDiscoveryIO4 implements DiscoveryIO { public DummyDiscoveryIO4(Strin...
315
458
<filename>LocalToos/checkLocalizable.py # coding=utf-8 import os import re # 将要解析的项目名称 DESPATH = "/Users/wangsuyan/desktop/project/LGSKmart/LGSKmart/Resource/Localizations" ERROR_DESPATH = "/Users/wangsuyan/Desktop/checkLocalizable.log" MAIN_LOCALIZABLE_FILE = "/zh-Hans.lproj/Localizable.strings" _result = {} d...
1,020
5,169
<filename>Specs/0/a/1/WeSdkMediation_AdColony/3.3.8.1.1/WeSdkMediation_AdColony.podspec.json<gh_stars>1000+ { "name": "WeSdkMediation_AdColony", "version": "3.3.8.1.1", "summary": "AdColoy Adapters for mediating through WeSdk.", "homepage": "https://github.com/webeyemob/WeSdkiOSPub", "license": { "type": ...
343
317
#define EXPANDDIMS(funcname, param3, param4, param5, callstring) \ case 0: \ CON(funcname,0) <<<param3, param4, param5>>> callstring;\ break;\ case 1: \ CON(funcname,1) <<<param3, param4, param5>>> callstring;\ break;\ case 2:\ CON(funcname,2) <<<param3, param4, param5>>> callstring;\ break;\ case 3:\ CON(funcname,...
1,268
1,019
<filename>jafu/src/test/java/org/springframework/fu/jafu/jdbc/JdbcDslTests.java package org.springframework.fu.jafu.jdbc; import org.junit.jupiter.api.Test; import org.wildfly.common.Assert; import org.springframework.jdbc.core.JdbcTemplate; import static org.springframework.fu.jafu.Jafu.application; import static o...
237
312
<gh_stars>100-1000 ''' Wrapper to the CLI interface ''' from .api_docgen import generate_api from .file_parser import load_documentation from .system_commands import run_doxygen from .constants import OCCA_DIR def main(): run_doxygen() doc_tree = load_documentation() generate_api( f'{OCCA_DIR}/docs...
140
2,743
<reponame>Nicholas-7/cuml<filename>cpp/scripts/include_checker.py # # Copyright (c) 2019-2021, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.or...
5,323
631
<gh_stars>100-1000 from typing import List, Tuple from utility.camera import CameraPose from utility.config import BaseConfig from utility.types import ProcessRenderMode class RecordingConfig(BaseConfig): def __init__(self, name: str = None): if name is None: super().__init__("recording") ...
625
348
<filename>docs/data/leg-t2/003/00302186.json<gh_stars>100-1000 {"nom":"Montmarault","circ":"2ème circonscription","dpt":"Allier","inscrits":956,"abs":481,"votants":475,"blancs":45,"nuls":31,"exp":399,"res":[{"nuance":"REM","nom":"<NAME>","voix":250},{"nuance":"LR","nom":"<NAME>","voix":149}]}
116
453
<gh_stars>100-1000 import gym from tf2rl.algos.td3 import TD3 from tf2rl.experiments.trainer import Trainer if __name__ == '__main__': parser = Trainer.get_argument() parser = TD3.get_argument(parser) parser.add_argument('--env-name', type=str, default="Pendulum-v0") parser.set_defaults(batch_size=10...
398
381
import py import platform from rpython.translator.platform.arch.s390x import (s390x_cpu_revision, extract_s390x_cpu_ids) if platform.machine() != 's390x': py.test.skip("s390x tests only") def test_cpuid_s390x(): revision = s390x_cpu_revision() assert revision != 'unknown', 'the model you are runni...
255
1,851
<filename>android/viro_bridge/src/main/java/com/viromedia/bridge/module/NodeModule.java // Copyright © 2017 <NAME>. All rights reserved. // // 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 Softw...
4,734
2,958
package com.blade.security.web.csrf; import com.blade.kit.StringKit; import com.blade.mvc.RouteContext; import com.blade.mvc.http.Request; import com.blade.mvc.http.Response; import lombok.*; import java.util.Arrays; import java.util.HashSet; import java.util.Set; import java.util.function.Consumer; import java.util....
1,065
852
<filename>RecoBTag/Skimming/python/btagMC_QCD_120_170_SkimPaths_cff.py import FWCore.ParameterSet.Config as cms from RecoBTag.Skimming.btagMC_QCD_120_170_cfi import * btagMC_QCD_120_170Path = cms.Path(btagMC_QCD_120_170)
101
517
<reponame>msercheli/openexr<gh_stars>100-1000 void readGZ2 (const char fileName[], Array2D<GZ> &pixels, int &width, int &height) { InputFile file (fileName); Box2i dw = file.header().dataWindow(); width = dw.max.x - dw.min.x + 1; height = dw.max.y - dw.min.y + 1; int dx = dw.min....
578
550
<reponame>AppSecAI-TEST/restcommander<gh_stars>100-1000 /* Copyright [2013-2014] eBay Software Foundation 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/LICEN...
782
369
/* * Copyright © 2016 <NAME>, 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 i...
367
460
<filename>code/wxWidgets/include/wx/mac/treectrl.h #ifdef __WXMAC_CLASSIC__ #include "wx/mac/classic/treectl.h" #else #include "wx/mac/carbon/treectrl.h" #endif
71
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"<NAME>","circ":"4ème circonscription","dpt":"Ille-et-Vilaine","inscrits":848,"abs":390,"votants":458,"blancs":12,"nuls":2,"exp":444,"res":[{"nuance":"REM","nom":"<NAME>","voix":199},{"nuance":"FI","nom":"<NAME>","voix":78},{"nuance":"FN","nom":"<NAME>","voix":53},{"nuanc...
297
563
package com.gentics.mesh.metric; import java.util.concurrent.atomic.AtomicLong; import io.micrometer.core.instrument.Counter; import io.micrometer.core.instrument.DistributionSummary; import io.micrometer.core.instrument.MeterRegistry; import io.micrometer.core.instrument.Timer; /** * Service which provides metric ...
479
1,233
/* * Copyright 2020 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
538
3,100
<reponame>jpapadakis/gdal #include "csf.h" #include "csfimpl.h" /* gis file id * returns * the "gis file id" field */ UINT4 MgetGisFileId( const MAP *map) /* map handle */ { CHECKHANDLE(map); return(map->main.gisFileId); }
102
678
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/Weather.framework/Weather */ #import <Weather/CLLocationManagerDelegate.h> #import <Weather/XXUnknownSuperclass.h> @class NSDate, CLLocationManager, NSTimer; @interface WeatherLocationManager : XXUnknownSuperclass ...
1,325
471
import torch import surreal.utils as U #from surreal.utils.pytorch import GpuVariable as Variable from surreal.session import PeriodicTracker from surreal.model.q_net import build_ffqfunc from .base import Learner class DQNLearner(Learner): def __init__(self, learner_config, env_config, session_config): s...
3,428
14,668
<filename>third_party/blink/renderer/modules/webgl/webgl_video_texture_enum.h // Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_WEBGL_WEBGL_VIDEO_TEXTURE_ENUM_H_ ...
230
679
<filename>main/l10ntools/source/helpex.cxx<gh_stars>100-1000 /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regar...
4,318
435
<filename>europython-2019/videos/shailen-sobhee-accelerate-your-deep-learning-inferencing-with-the-intel-r-dl-boost-technology.json { "copyright_text": "Creative Commons Attribution license (reuse allowed)", "description": "Learn about Intel\u00ae Deep Learning Boost, also known as Vector Neural\nNetwork Instructio...
610
625
<gh_stars>100-1000 /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the ...
2,811
670
package com.uddernetworks.mspaint.gui.window.search; import com.uddernetworks.newocr.character.ImageLetter; import com.uddernetworks.newocr.recognition.ScannedImage; import java.io.File; import java.util.List; import java.util.stream.Collectors; public class SearchResult { private final File file; private f...
1,025
403
<gh_stars>100-1000 /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the ...
3,280
777
#!/usr/bin/env python # Copyright (c) 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. import os import unittest from idl_lexer import IDLLexer from idl_ppapi_lexer import IDLPPAPILexer # # FileToTokens # # From a s...
1,183
512
package xyz.staffjoy.company.dto; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import xyz.staffjoy.common.validation.DayOfWeek; import xyz.staffjoy.common.validation.Group1; import xyz.staffjoy.common.validation.Group2; import xyz.staffjoy.common.validat...
335
519
package com.wzq.mvvmsmart.utils; import android.content.Context; import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.BitmapShader; import android.graphics.Canvas; import android.graphics.Paint; import android.widget.ImageView; import androidx.core.graphics.drawable.RoundedBit...
3,053
5,250
<filename>modules/flowable-cmmn-engine/src/main/java/org/flowable/cmmn/engine/impl/behavior/CmmnTriggerableActivityBehavior.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 * * h...
584
636
package cn.org.atool.fluent.mybatis.generator.shared3.dao.impl; import cn.org.atool.fluent.mybatis.generator.shared3.dao.base.MemberLoveBaseDao; import cn.org.atool.fluent.mybatis.generator.shared3.dao.intf.MemberLoveDao; import org.springframework.stereotype.Repository; /** * MemberLoveDaoImpl: 数据操作接口实现 * <p> * 这...
273
2,406
// Copyright (C) 2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "behavior/infer_request/callback.hpp" #include "conformance.hpp" namespace { using namespace BehaviorTestsDefinitions; using namespace ConformanceTests; const std::vector<std::map<std::string, std::string>> configsCallback = {...
792
3,494
#include "cinder/Cinder.h" // FIXME: OOURA roundtrip FFT seems to be broken on windows for sizeFft = 4 (https://github.com/cinder/Cinder/issues/1263) #if defined( CINDER_MAC ) #include "catch.hpp" #include "utils.h" #include "cinder/Log.h" #include "cinder/audio/dsp/Fft.h" #include <iostream> using na...
594
387
{ "name": "describe-dependency-2", "targetType": "sourceLibrary", "description": "A test describe project", "authors": ["nobody"], "homepage": "fake.com", "license": "BSD 2-clause", "copyright": "Copyright © 2015, nobody", "importPaths": ["some-path"], "stringImportPaths": ["some-ext...
133
588
<filename>third_party/boost/include/boost/asio/detail/cstdint.hpp // // detail/cstdint.hpp // ~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2020 <NAME> (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LIC...
680
1,238
{ // To avoid different format settings from // triggering cosmetic changes. "editor.formatOnSave": false, }
36
3,084
<filename>print/XPSDrvSmpl/src/common/cmprofpthndlr.cpp /*++ Copyright (c) 2005 Microsoft Corporation All rights reserved. THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FIT...
2,396
432
<reponame>TGTang/ballcat<gh_stars>100-1000 package com.hccake.ballcat.i18n.mapper; import com.baomidou.mybatisplus.core.conditions.Wrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; import com.baomidou.mybatispl...
2,019
14,668
<reponame>chromium/chromium // Copyright 2011 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 CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ #define CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ #include <stdint.h> #include...
6,222
2,479
from __future__ import absolute_import, division, print_function import sys import pytest @pytest.fixture(scope="session") def C(): """ Return a simple but fully featured attrs class with an x and a y attribute. """ import attr @attr.s class C(object): x = attr.ib() y = attr...
210
859
<gh_stars>100-1000 #include "pch.h" TEST_CASE("fast_iterator") { { auto v = winrt::single_threaded_vector<int>({ 1, 2, 3 }); std::vector<int> result; std::copy(begin(v), end(v), std::back_inserter(result)); REQUIRE((result == std::vector{ 1, 2, 3 })); } { auto v =...
255
613
<reponame>leomindez/from-java-to-ceylon<filename>code/java/classes/classes-09.java public class ByteArrayUtils { public static String toHexString(byte[] data) { } } final byte[] dummyData = new byte[10]; final String hexValue = ByteArrayUtils.toHexString(dummyData);
104
6,550
<filename>MS03-026/66.c /* DCOM RPC Overflow Discovered by LSD - Exploit Based on Xfocus's Code Written by <NAME> <hdm [at] metasploit.com> - Usage: ./dcom <Target ID> <Target IP> - Targets: - 0 Windows 2000 SP0 (english) - 1 Windows 2000 SP1 (english) - 2 Windo...
10,296
493
<filename>oss_src/cppipc/client/comm_client.cpp /** * Copyright (C) 2016 Turi * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD license. See the LICENSE file for details. */ #include <boost/bind.hpp> #include <boost/algorithm/string/predicate.hpp> #include <boos...
5,773
2,151
<reponame>zipated/src // 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 "ash/login/ui/layout_util.h" #include "ash/login/ui/non_accessible_view.h" #include "ash/shell.h" #include "ui/display/man...
612
3,402
/* * 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,064
14,668
<reponame>zealoussnow/chromium<filename>components/media_message_center/mock_media_notification_item.cc<gh_stars>1000+ // 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 "components/media_message_...
224
4,816
/** * @file CoffSymbolTable.cpp * @brief Class for COFF symbol table. * @copyright (c) 2017 Avast Software, licensed under the MIT license */ #include "retdec/pelib/PeLibInc.h" #include "retdec/pelib/CoffSymbolTable.h" namespace PeLib { CoffSymbolTable::CoffSymbolTable() : stringTableSize(0), numberOfStoredSymbo...
2,095
778
/* * Copyright (C) 2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/test/common/fixtures/implicit_scaling_fixture.h" TEST_F(ImplicitScalingTests, givenMultiTileDeviceWhenApiAndOsSupportThenFeatureEnabled) { EXPECT_TRUE(ImplicitScalingHelper::isImplicitScalingEnabled(twoTile, true...
2,042
3,358
/* This file is automatically generated; do not edit. */ /* Add the files to be included into Makefile.am instead. */ #include <ql/models/shortrate/onefactormodel.hpp> #include <ql/models/shortrate/twofactormodel.hpp> #include <ql/models/shortrate/calibrationhelpers/all.hpp> #include <ql/models/shortrate/onefacto...
143
521
/** @file S3 SMM Save State Protocol as defined in PI1.2 Specification VOLUME 5 Standard. The EFI_S3_SMM_SAVE_STATE_PROTOCOL publishes the PI SMMboot script abstractions On an S3 resume boot path the data stored via this protocol is replayed in the order it was stored. The order of replay is the order either o...
648
1,564
<reponame>caicym/logcabin<filename>Core/Buffer.cc /* Copyright (c) 2012 Stanford University * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE...
795
14,668
<gh_stars>1000+ // 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. #ifndef ASH_QUICK_PAIR_FEATURE_STATUS_TRACKER_MOCK_SCREEN_STATE_ENABLED_PROVIDER_H_ #define ASH_QUICK_PAIR_FEATURE_STATUS_TRACKER_MOCK_SCR...
360
4,283
/* * Copyright (c) 2008-2021, Hazelcast, Inc. 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 ...
1,231
777
/* * Copyright © 2015 <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 law or agr...
359
778
<filename>applications/StructuralMechanicsApplication/custom_processes/solid_shell_thickness_compute_process.cpp // KRATOS ___| | | | // \___ \ __| __| | | __| __| | | __| _` | | // | | | | | ( | | | | ( | | // _____/ \__|_| \__,_...
1,671
769
<filename>weather-console/delay.h #define DELAY_TICK_FREQUENCY_US 1000000 /* = 1MHZ -> microseconds delay */ #define DELAY_TICK_FREQUENCY_MS 1000 /* = 1kHZ -> milliseconds delay */ static __IO uint32_t TimingDelay; // __IO -- volatile /* * Declare Functions */ extern void Delay_ms(uint32_t nTime); extern...
132
434
<reponame>bingchunjin/1806_SDK /* * GainStrong Oolite/MiniBox V1.0 boards support * * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published * by the Free Software Foundation. */ #include <linux/gpio.h> #include <...
1,785
1,702
/* * Copyright 2014-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
636
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. // ----------------------------------------------------...
2,633
343
<filename>bean-searcher-demos/spring-boot-demo/src/main/java/com/example/sbean/BaseBean.java package com.example.sbean; public class BaseBean { private long id; public long getId() { return id; } }
92
1,105
#!/usr/bin/env python # Copyright Contributors to the Open Shading Language project. # SPDX-License-Identifier: BSD-3-Clause # https://github.com/AcademySoftwareFoundation/OpenShadingLanguage command += testshade("-t 1 -g 32 32 --vary_pdxdy -od uint8 -o Cout calculatenormal_u_point.tif test_calculatenormal_u_point")...
275
1,273
<reponame>sunboy0523/gatk package org.broadinstitute.hellbender.tools.copynumber.denoising; import org.apache.commons.math3.linear.RealMatrix; import org.broadinstitute.hellbender.tools.copynumber.formats.collections.CopyRatioCollection; import org.broadinstitute.hellbender.tools.copynumber.formats.metadata.SampleLoca...
1,354
417
<filename>vtorcs-RL-color/src/libs/learning/ann_policy.h<gh_stars>100-1000 // -*- Mode: c++ -*- // copyright (c) 2004 by <NAME> <<EMAIL>> // $Id: ann_policy.h,v 1.3 2005/08/05 09:02:58 berniw Exp $ /*************************************************************************** * ...
1,015
2,494
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* *-----------------------------...
7,758
370
#include <stdio.h> #include <iostream> #include <QMetaType> #include <QLabel> #include <QLineEdit> #include <QFormLayout> #include <QCheckBox> #include <functional> #include "settings_ui.hpp" #include "video_opts.hpp" void SettingsUi::init(Settings *settings, AvailableSettings *availableSettings){ this->settings = se...
3,531
451
/* * Copyright 2019 WeBank * * 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 writi...
1,047