text
string
size
int64
token_count
int64
#include <lovely/controller/executor/executor.h> #include <lovely/controller/updater/updater.h> #include <lovely/model/model.h> #include <lovely/model/tests/model/custom_model.h> #include <catch2/catch.hpp> using namespace lovely; TEST_CASE("executor initialize", "[controller]") { const int int_ref = 42; cu...
735
262
// *************************************************************************** // BamWriter_p.cpp (c) 2010 Derek Barnett // Marth Lab, Department of Biology, Boston College // --------------------------------------------------------------------------- // Last modified: 25 October 2011 (DB) // --------------------------...
18,641
5,789
//===- include/pstore/broker/quit.hpp ---------------------*- mode: C++ -*-===// //* _ _ * //* __ _ _ _(_) |_ * //* / _` | | | | | __| * //* | (_| | |_| | | |_ * //* \__, |\__,_|_|\__| * //* |_| * //===----------------------------------------------------------------------===// //...
2,131
665
#ifndef SEQUENCE_CPP #define SEQUENCE_CPP #include "Sequence.h" namespace hhmm{ // Sequence::Sequence(vector<uint32_t> const& _V,vector<uint32_t> _stateNum,uint32_t _dim) // :len(_V.size()), // testV(_V), // param(_depth,_stateNum,_V.size(),_dim) // {} Sequence::Sequence(vector<VectorXld>...
617
268
/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the QtQml module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage ** Licensees holding valid commerc...
15,932
4,915
#include "Component.h" // Default Component Constructor Component::Component(const ComponentType & newComponentTypeSignature, const ComponentTypeRequirement & newComponentTypeRequirementsSignature) { componentTypeSignature = newComponentTypeSignature; componentTypeRequirementsSignature = newComponentTypeRequiremen...
821
210
#include <windows.h> #include "openGLContext.h" #include "log.h" namespace simpleGL { OpenGLContext::OpenGLContext() { println("GLEW:load"); // Set this to true so GLEW knows to use a modern approach to retrieving function pointers and extensions glewExperimental = GL_TRUE; // Initialize GLEW to setup the OpenGL...
2,990
1,278
#include "../Header/Cheat Functions/FiberMain.h" using namespace Cheat; void GUI::Submenus::Online() { GUI::Title("Online"); GUI::MenuOption("Players", Submenus::PlayerList); GUI::MenuOption("All Players", Submenus::AllPlayers); GUI::MenuOption("Protections", Submenus::Protections); GUI::MenuOption("Recovery", Su...
402
145
// MIT License // // Copyright (c) 2017-2020 Advanced Micro Devices, Inc. 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 Software without restriction, including without lim...
10,392
3,248
#include <ph/math/math.hpp> namespace ph::math { }
53
24
// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "verilator_memutil.h" #include <fcntl.h> #include <gelf.h> #include <getopt.h> #include <libelf.h> #include <sys/stat.h> #include <unistd.h> #include <cassert...
13,603
4,666
/* file: sgd_types.cpp */ /******************************************************************************* * Copyright 2014-2017 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License...
12,970
3,594
#ifndef __FACTOR_HPP__ #define __FACTOR_HPP__ /****************************** Author: Joel Veness Date: 2011 ******************************/ #include "common.hpp" // a generic structure for combining compressors for byte oriented data template <typename T, size_t N> class Factor : public Co...
3,218
1,095
#include<boost/numeric/ublas/vector.hpp> #include<boost/numeric/ublas/io.hpp> // #include "vector_concepts.hpp" #include <boost/numeric/linear_algebra/vector_concepts.hpp> typedef double Type; namespace ublas = boost::numeric::ublas; typedef ublas::vector<Type> Vector; namespace math { concept_map AdditiveAbelian...
1,082
390
/* * Copyright 2017 Facebook, Inc. * Copyright 2017 Yeolar * * 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...
4,940
1,713
#include "extdll.h" #include "util.h" #include "cbase.h" #include "weapons.h" #include "player.h" LINK_ENTITY_TO_CLASS( weapon_carnet, CCarnet ); enum carnet_e { CARNET_IDLE = 0, CARNET_IDLE2, CARNET_ATTACK, CARNET_HOLSTER, CARNET_DRAW, }; // -------------------------------------------- // U...
6,651
2,836
#include <OpenteraWebrtcNativeClient/Utils/Client.h> using namespace opentera; using namespace std; bool opentera::operator==(const sio::message& m1, const sio::message& m2) { if (m1.get_flag() != m2.get_flag()) { return false; } switch (m1.get_flag()) { case sio::message::flag_in...
3,959
1,282
/* Copyright (c) 2009-2010 Sony Pictures Imageworks Inc., et al. 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 list of co...
53,813
16,818
// SuperDynamicLighting_shader.cxx /* Sergei <Neill3d> Solokhin 2018 GitHub page - https://github.com/Neill3d/OpenMoBu Licensed under The "New" BSD License - https ://github.com/Neill3d/OpenMoBu/blob/master/LICENSE */ // Class declaration #include "SuperDynamicLighting_shader.h" #include "SuperShaderModelInfo.h" #i...
14,219
5,157
// // Created by caedus on 21.12.2020. // #pragma once #include <string> #include "Modules/ModuleBuilder.hpp" #include "Builtins/Lists/ListsEvaluators.hpp" namespace nastya::builtins::lists { const std::string MODULE_NAME = "Lang.Lists"; using Builder = modules::ModuleBuilder<HeadEvaluator, TailEvaluator, QuoteEva...
578
204
/* R E G R E S S _ P U S H . C P P * BRL-CAD * * Copyright (c) 2020-2022 United States Government as represented by * the U.S. Army Research Laboratory. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * versi...
9,803
3,836
#include<bits/stdc++.h> using namespace std; /* NAME : DIPU BISWAS JUST CSE 2019 - 2020 PROBLEM CODE : 785A LINK : https://codeforces.com/problemset/problem/785/A */ int main() { int t, sum = 0; cin >> t; while(t--) { string a; cin >> a; if(a[0] == 'T') ...
593
255
topic "Assist++"; [l288;i1120;a17;O9;~~~.1408;2 $$1,0#10431211400427159095818037425705:param] [a83;*R6 $$2,5#31310162474203024125188417583966:caption] [H4;b83;*4 $$3,5#07864147445237544204411237157677:title] [i288;O9;C2 $$4,6#40027414424643823182269349404212:item] [b42;a42;ph2 $$5,5#4541300047534217475409124418055...
406,115
327,860
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2013-2017 The Anoncoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "chainparams.h" // Anoncoi...
24,410
11,046
/* AutoHotkey Copyright 2003-2009 Chris Mallett (support@autohotkey.com) 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 License, or (at your option) any later version. Thi...
249,840
84,456
/* * nextpnr -- Next Generation Place and Route * * Copyright (C) 2021 Lofty <dan.ravensloft@gmail.com> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear ...
14,680
5,663
/* * Copyright (C) 2019-2020 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/test/unit_test/mocks/mock_device.h" #include "shared/test/unit_test/mocks/ult_device_factory.h" #include "opencl/source/helpers/memory_properties_helpers.h" #include "opencl/source/mem_obj/mem_obj_helper.h" #inc...
15,052
4,420
/*############################################################################## HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®. 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...
27,354
8,511
// gzip.cpp - originally written and placed in the public domain by Wei Dai #include "pch.h" #include "gzip.h" #include "argnames.h" NAMESPACE_BEGIN(CryptoPP_NV_2) // Checks whether the character is valid for ISO/IEC 8859-1 as required by RFC 1952 static inline bool Is8859Character(char c) { const unsigne...
5,633
2,237
#include "SafeTexture.h" #include <cassert> #include <iostream> namespace gekRender { SafeTexture::SafeTexture(GLuint texture_object) { m_texture = texture_object; DaddyO = nullptr; TextureUpdates = false; if (texture_object) isnull = false; else isnull = true; } SafeTexture::SafeTexture(Texture...
1,594
587
/** @file Copyright John Reid 2006, 2013, 2015 */ #define BOOST_TEST_MODULE chain iterator // Generate main() in this object file #ifdef _MSC_VER # pragma warning( disable : 4244 ) #endif //_MSC_VER #include "myrrh/chain_iterator.h" #include <boost/progress.hpp> #include <boost/test/unit_test.hpp> #include <boos...
2,286
869
//Copyright Florian Goujeon 2018 - 2019. //Distributed under the Boost Software License, Version 1.0. //(See accompanying file LICENSE_1_0.txt or copy at //https://www.boost.org/LICENSE_1_0.txt) //Official repository: https://github.com/fgoujeon/signal #ifndef FGSIG_ANY_CONNECTION_HPP #define FGSIG_ANY_CONNECTION_HPP ...
1,865
520
// // Copyright (c) 2017 CNRS, NYU, MPI Tübingen // // This file is part of tsid // tsid 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 option) any lat...
6,830
2,380
#include "pch.h" using namespace std::chrono; using namespace std::experimental::filesystem; using namespace std::string_view_literals; using namespace xlang; using namespace xlang::meta::reader; using namespace xlang::text; using namespace xlang::cmd; template <typename...T> struct overloaded : T... { using T::opera...
26,542
7,662
// Includes #include <Arduino.h> #include "CModule.h" #include "NModuleManager.h" CModule::CModule() { NModuleManager::RegisterModule( this ); }
148
57
#include "spikes_t/SpikeS.h" void SpikeS::createBranchesKp2(const list<KeyPoint2*>& l_kp2) { v_branch.resize(0); float radius2 = pow(m_searchR, 2); for (auto& it : l_kp2) { float d2 = pow((it->kp.pt.x - xy.x), 2) + pow((it->kp.pt.y - xy.y), 2); if (d2<radius2) { Point relpos = Point((int)it->kp.pt.x, (i...
1,392
738
#pragma once #include <pch.hpp> #include <vulkan/vulkan.h> #include <vulkan/LogicalDevice.hpp> #include <vulkan/module/overlay/element/StaticElement.hpp> #include <vulkan/util/CommandBufferHolder.hpp> #include <vulkan/util/CommandRecorderProvider.hpp> struct tElementObject { cUIElement* ppElement = nullptr; s...
4,428
1,355
#include<iostream> #include<algorithm> #include<deque> using namespace std; typedef struct node { struct node* left; struct node* right; int height; int data; int number; }node; node* generate(int key,int height1) { node* n = new node; n->left = NULL; n->right = NULL; // if(p!=NULL)n->parent = p; ...
8,765
3,589
//-------------------------------------------------------------------------- // Name: // PacPieceTraj // Description: // Piecewise helix, but removing all the 'diff' stuff. // Environment: // Software developed for PACRAT / SuperB // Copyright Information: // Copyright (C) 2008 Lawrence Berkeley Laboratory // Aut...
958
332
#include "LinearRegression.h" #include <cstdlib> namespace Metagross { LinearRegression::LinearRegression() { m = 0; n = 2; initTheta(); } LinearRegression::LinearRegression(int features) { m = 0; n = features; initTheta(); } LinearRegression::LinearRegression(double a) { m = 0; n = 2; initThe...
1,399
600
#include<bits/stdc++.h> using namespace std; bool EqualSumPart(vector<int>& arr, int n){ int sum = 0; for(int i=0;i<n;++i){ sum = sum + arr[i]; } if(sum%2!=0){ return false; } else if(sum%2==0){ vector<vector<bool>> t; for(int i=0;i<n+1;++i){ vector<...
1,242
511
#include <math.h> #include <algorithm> #include "compute/CommonOptFunction.h" #include "MNN_generated.h" template <typename _Arg1, typename _Arg2, typename _ErrorCode> struct BinaryMax { _ErrorCode operator()(const _Arg1& x, const _Arg2& y) const { return std::max(x, y); } }; template <typename _Arg1,...
9,101
3,058
#pragma once #include "LicenseKey.hpp" namespace serialkeymanager_com { class LicenseKey; class LicenseKeyChecker { bool status_; LicenseKey const* key_; public: LicenseKeyChecker(LicenseKey const* license_key); explicit operator bool() const; LicenseKeyChecker& has_feature(int feature); LicenseKeyCh...
656
222
#include "pch.h" bool __fastcall PlayLayer::hook(gd::PlayLayer* self, int, void* level) { auto director = cocos2d::CCDirector::sharedDirector(); auto size = director->getWinSize(); bool result = PlayLayer::init(self, level); auto children = self->getChildren(); auto layer = dynamic_cast<CCLaye...
548
169
#include "math/distribution/distribution1D.h" #include "fundamental/assertion.h" #include "math/math.h" namespace cadise { Distribution1D::Distribution1D() = default; Distribution1D::Distribution1D(const real* const value, const std::size_t sizeNumber) : _cdf(sizeNumber + 1) { CADISE_ASSERT(value); _d...
3,490
1,272
/* -*-c++-*- OpenThreads library, Copyright (C) 2002 - 2007 The Open Thread Group * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file * i...
3,916
1,213
/* Copyright 2003 - 2016, The libsigc++ Development Team * * Assigned to the public domain. Use as you wish without * restriction. */ #include <iostream> #include <string> #include <sigc++/sigc++.h> // make sure that sigc++config.h can be included #include <sigc++config.h> void on_print(const std::string &str...
519
192
#include <iostream> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int s, t; cin >> s >> t; cout << t - s + 1 << '\n'; }
167
72
/*********************************************************************************************************************/ /* File Name: input_text_file.cpp */ /* Author: Ing. Jesus Rocha <chuyangel.rm@gmail.com>, July 2016. ...
5,077
1,768
/* * Copyright (c) 2008 The Hewlett-Packard Development Company * All rights reserved. * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardwar...
13,234
4,810
#ifndef CONNECT6_DEC_H #define CONNECT6_DEC_H #include <cstring> #include <memory> #include <string> #include <tuple> #include <vector> namespace Connect6_RustFFI { constexpr size_t BOARD_SIZE = 15; constexpr size_t BOARD_CAPACITY = BOARD_SIZE * BOARD_SIZE; using Callback = void(*)(int player, float* val...
5,495
1,624
/* */ #include "terrain.h" #include "jobs.h" #include "balance.h" #include "economy.h" // from economy import roman_numbers /* def name_generator(): prefix = ["", "Green", "Dark", "Toxic", "Inferno", "Orc", "Goblin", "Dragon"] core = ["Forest", "Cave", "Dungeon", "Town", "Village", "Mountains", "Graveyar...
1,948
652
// 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. #include "chrome/browser/ui/webui/signin/profile_signin_confirmation_ui.h" #include "base/values.h" #include "chrome/browser/profiles/profile.h" #inc...
2,229
776
#include <iostream> #include "dtime.h" void readHour(int& theHour); int main() { using DTimeSavitch::DigitalTime; using std::cout; using std::cin; using std::endl; int theHour; readHour(theHour); DigitalTime clock(theHour, 0), oldClock; oldClock = clock; clock.advance(15); if(clock == oldClock...
985
374
// Copyright 2013 The Flutter 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 "flutter/shell/platform/embedder/tests/embedder_test_backingstore_producer.h" #include "flutter/fml/logging.h" #include "third_party/skia/include...
6,168
1,940
/** * socket/tcp6.cpp * * Copyright (c) 2021 Yuriy Lisovskiy */ #include "./tcp6.h" // C++ libraries. #include <netinet/tcp.h> #if defined(__linux__) || defined(__APPLE__) #include <arpa/inet.h> #endif // Server libraries. #include "../exceptions.h" __SERVER_BEGIN__ void TCP6Socket::set_options() { int optio...
1,110
437
// license:BSD-3-Clause // copyright-holders:Luca Elia /*************************************************************************** Wyvern F-0 (1985, Taito) driver by Luca Elia Typical Taito mid-80s hardware but with dual video output. Sound board: Z80, 2 x YM2149, OKI M5232 CPU board: Z80, ROM and RAM, 687...
28,226
15,126
//Author:LanceYu #include<iostream> #include<string> #include<cstring> #include<cstdio> #include<cctype> #include<vector> #include<cstdlib> #include<queue> #include<set> #include<ctime> #include<algorithm> #include<complex> #include<cmath> #include<array> #include<stack> #include<bitset> #define ll long long using name...
1,670
981
/* -*- C++ -*- */ /*============================================================================= // // // This file is part of the PDP++ software package. // // ...
13,761
5,170
#include "search.cuh" #include "bk.h" #include <cstring> #include <cstdio> static Board board; static Search search; void handle_go(void) { search.uci = 1; do_search(&search, &board); } void print_menu(void) { printf("insert a command\n"); printf("bm: generate the best move\n"); printf("bk: do b...
1,166
427
/* -------------------------------------------------------------------------- * * Simbody(tm) Example: Bricard Mechanism * * -------------------------------------------------------------------------- * * This is part of the SimTK biosimulation toolkit originating from * ...
9,899
4,009
#include "pch.h" namespace Ribbon { namespace RefStringInternal { static const size_t STRINGBLOCKSIZE = 0x4000; struct StringBuffer { uint64_t buf[STRINGBLOCKSIZE / sizeof(uint64_t)]; }; template <size_t ELEMENTSIZE> union StringMemoryBuffer { uint64_t buf[ELEMENTSIZE / sizeof(uint64_t)]; StringMemoryBuffer* pr...
5,202
2,041
// // Notice Regarding Standards. AMD does not provide a license or sublicense to // any Intellectual Property Rights relating to any standards, including but not // limited to any audio and/or video codec technologies such as MPEG-2, MPEG-4; // AVC/H.264; HEVC/H.265; AAC decode/FFMPEG; AAC encode/FFMPEG; VC-1; and M...
26,404
10,692
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "device/usb/usb_device_impl.h" #include <fcntl.h> #include <stddef.h> #include <algorithm> #include "base/bind.h" #include "base/location.h" #...
6,758
2,017
class BlackHoleNeutronStar : public SPH { public: PS::S64 istar; PS::F64 eps; PS::F64 size; BlackHoleNeutronStar() { this->id = 0; this->mass = 0.; this->pos = 0.; this->vel = 0.; this->vel2 = 0.; this->acc = 0.; this->uene = 0...
5,393
2,253
// Copyright 2020 Endless Mobile, Inc. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "run.h" #include <dirent.h> #include <sys/prctl.h> #include <sys/signal.h> #include <memory> #include <string> #include "base/debug.h" #include "base/fd_map.h" #inc...
1,875
766
#include "Gwen/UnitTest/UnitTest.h" #include "Gwen/Controls/Properties.h" #include "Gwen/Controls/PropertyTree.h" #include "Gwen/Controls/Property/ColorSelector.h" #include "Gwen/Controls/Property/Checkbox.h" #include "Gwen/Controls/Property/ComboBox.h" using namespace Gwen; class Properties : public GUnit { public:...
2,365
1,002
#include <maths/plane.h> #include <math.h> namespace gef { Plane::Plane() { } Plane::Plane(float a, float b, float c, float d) : Vector4(a, b, c, d) { } void Plane::Normalise() { float distance = sqrtf(a()*a() + b()*b() + c()*c()); set_a(a() / distance); set_b(b() / distance); set_c(c() / dista...
356
179
/*** * Copyright (C) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. * * File:AsyncOperationProxy.cpp ****/ #include "pch.h" #include "AsyncOperationProxy.h" #include <foundation/library/event_args_base.h> using namespac...
4,646
1,408
#include "MargolusNeighborhoodSimulatorOpenCL.h" #include <iostream> #include <fstream> inline int randomNumber(int low, int high) { return low + rand() / (RAND_MAX / (high - low)); } MargolusNeighborhoodSimulatorOpenCL::MargolusNeighborhoodSimulatorOpenCL(bool useGpu, int platformId, int deviceId) { srand(static_c...
13,328
4,518
//***************************************************************************** // Copyright 2017-2020 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://w...
9,456
3,995
// (C) Copyright John Maddock 2010. // Use, modification and distribution are 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) #ifndef BOOST_MATH_TUPLE_HPP_INCLUDED #define BOOST_MATH_TUPLE_HPP_INCLUDED #include <boost...
668
268
//////////////////////////////////////////////////////////// // Nero Game Engine // Copyright (c) 2016-2020 Sanou A. K. Landry //////////////////////////////////////////////////////////// ///////////////////////////HEADERS////////////////////////// //NERO #include <Nero/core/cpp/model/RevoluteJoint.h> /////////////////...
1,101
364
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ //===----------------------------------------------------------------------===// /// \file /// This benchmark is intended to measur...
7,768
2,519
// // Doc.cc // // Copyright © 2018 Couchbase. 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 ...
6,322
1,963
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying file Copyright.txt or https://cmake.org/licensing for details. */ #include "cmDisallowedCommand.h" #include "cmMakefile.h" #include "cmake.h" class cmExecutionStatus; bool cmDisallowedCommand::InitialPass(std::vector<std::string> const...
1,042
342
#include <iostream> #include <unordered_map> #include <unordered_set> #include <vector> using namespace std; class RandomizedCollection { private: unordered_map<int, unordered_set<int>> index; // 保存数出现的位置index vector<int> nums; public: /** Initialize your data structure here. */ RandomizedCollection...
1,894
918
#include<iostream> #include"Graph.h" using namespace std ; extern int Time;// 系统时间 extern TST arr_tst[MAX_TST]; S_STATE state_trans(Graph &travel_graph,int target) // 用以计算下一个状态S_STATE ,参量 state_n作为全局变量被该函数窥视 { S_STATE state_next; int diff; cout<<"e_now"<<arr_tst[target].e_now<<endl; if(arr_tst[target...
3,969
1,583
#ifndef QUBUS_ISL_PW_AFF_HPP #define QUBUS_ISL_PW_AFF_HPP #include <qubus/isl/set.hpp> #include <qubus/isl/map.hpp> #include <qubus/isl/value.hpp> #include <isl/aff.h> namespace qubus { namespace isl { class pw_aff { public: explicit pw_aff(isl_pw_aff* handle_); pw_aff(const pw_aff& other); ~pw_aff();...
749
348
/* * Copyright 2016 The Kythe Authors. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
7,324
2,463
#include <vector> #include <sstream> #include "rand.hpp" #include "enums.hpp" rotation get_random_rotation() { return (rotation) (rand() % 12); } std::string thistlethwaite::get_random_rotations(const int &n) { std::stringstream ss; for (int i = 0; i < n; i++) { ss << rottoa(get_random_rotation()); } return ...
331
139
#include "mvNode.h" #include <imnodes.h> #include "mvApp.h" #include "mvLog.h" #include "mvItemRegistry.h" #include "mvImNodesThemeScope.h" #include "mvFontScope.h" #include "mvPythonExceptions.h" namespace Marvel { static std::string FindRenderedTextEnd(const char* text, const char* text_end = nullptr) { int siz...
3,635
1,458
// 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 "extensions/browser/quota_service.h" #include "base/message_loop/message_loop.h" #include "base/stl_util.h" #include "chrome/browser/extensions/...
7,245
2,160
#include "indexer/feature_covering.hpp" #include "indexer/feature.hpp" #include "indexer/locality_object.hpp" #include "geometry/covering_utils.hpp" using namespace std; namespace { // This class should only be used with covering::CoverObject()! template <int DEPTH_LEVELS> class FeatureIntersector { public: struc...
5,810
2,335
#include <_sample/_sample.h> foo::foo(int bar): bar{bar} {} void foo::add(int x) { bar += x; }
100
43
/* Copyright (c) 2009-2016, Jack Poulson All rights reserved. This file is part of Elemental and is under the BSD 2-Clause License, which can be found in the LICENSE file in the root directory, or at http://opensource.org/licenses/BSD-2-Clause */ #include <El.hpp> #include "./LU/Local.hpp" #include "...
8,541
3,562
// #define CATCH_CONFIG_RUNNER #include "catch.hpp" #include "execution/operator/persistent/buffered_csv_reader.hpp" #include "common/file_system.hpp" #include "common/value_operations/value_operations.hpp" #include "compare_result.hpp" #include "main/query_result.hpp" #include "test_helpers.hpp" #include "parser/pars...
8,264
3,037
// 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. #include "tools/gn/source_file.h" #include "base/logging.h" #include "tools/gn/filesystem_utils.h" #include "tools/gn/source_dir.h" #include "util/bu...
3,693
1,295
// // GGuiNodeComponentAnimation.h // // Created by David Coen on 2011 04 12 // Copyright 2010 Pleasure seeking morons. All rights reserved. // #include "GGuiNodeComponentAnimation.h" #include "GGuiType.h" //static public methods /*static*/ GGuiNodeComponentAnimation::TPointerGuiNodeComponentBase GGuiNodeComponent...
1,137
369
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/sync/engine/net/server_connection_manager.h" #include <errno.h> #include <ostream> #include "base/metrics/histogram.h" #includ...
5,215
1,649
/* * CMgmt.hpp * * Copyright (C) 2015, Achim Lösch <achim.loesch@upb.de>, Christoph Knorr <cknorr@mail.uni-paderborn.de> * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD license. See the LICENSE file for details. * * encoding: UTF-8 * tab size: 4 * * ...
2,602
914
#pragma once #include "itkInPlaceImageToDream3DDataFilter.h" #include "itkGetComponentsDimensions.h" #include "SIMPLib/Geometry/ImageGeom.h" #include <QString> namespace itk { template <typename PixelType, unsigned int VDimension> InPlaceImageToDream3DDataFilter<PixelType, VDimension>::InPlaceImageToDream3DDataFilte...
8,492
2,688
#include<bits/stdc++.h> using namespace std; void func(int n) { if(n==0) { cout<<endl; return ; } cout<<n<<" "; func(n-1); } int main(){ func(5); func(2); return 0; }
226
95
#include <OpenEXR/ImathMatrixAlgo.h> #include <actions/io.h> #include <possumwood_sdk/datatypes/filename.h> #include <possumwood_sdk/node_implementation.h> #include <boost/filesystem.hpp> #include <boost/lexical_cast.hpp> #include <fstream> #include <unordered_map> #include "datatypes/animation.h" #include "tokenizer...
6,558
2,536
#include "poweredEDKColor.h" /* Library C++ poweredEDKColor - Image with powered by edk technology for be used in background with color. Copyright 2013 Eduardo Moura Sales Martins (edimartin@gmail.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documen...
400,339
390,980
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include "vm/compiler/backend/range_analysis.h" #include "vm/compiler/backend/il_test_helper.h" #includ...
32,117
11,325
#include "Problem16.h" #include <algorithm> using std::sort; // O(N^2) where n is num of nums int find_closest_sum(vector<int>& nums, int target){ sort(nums.begin(), nums.end()); int answer = 0; bool answered = false; for (int i = 0; i < nums.size() - 2; ++i){ int j = i + 1; int k = nu...
739
252
#include "TestGame.h" #include "../engine/components/model/Vertex.h" #include "../engine/shader/BasicShader.h" #include "../engine/components/renderer/Renderer.h" #include "../engine/components/camera/Camera.h" #include <glfw/glfw3.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/typ...
4,665
2,661
/* This file is part of the dynarmic project. * Copyright (c) 2021 MerryMage * SPDX-License-Identifier: 0BSD */ #include "dynarmic/common/x64_disassemble.h" #include <Zydis/Zydis.h> #include <fmt/printf.h> #include "dynarmic/common/common_types.h" namespace Dynarmic::Common { void DumpDisassembledX64(const void...
1,870
698
#include <string> #include "igtlioLogic.h" #include "igtlioConnector.h" #include "vtkTimerLog.h" #include "vtkImageData.h" #include "igtlioVideoConverter.h" #include "vtkMatrix4x4.h" #include <vtksys/SystemTools.hxx> #include "igtlioVideoConverter.h" #include <vtkImageDifference.h> #include "IGTLIOFixture.h" #include "...
3,601
1,242