text
string
size
int64
token_count
int64
#include "User.h" void User::clearRequirement() { state = 0; funcClassNum = 0; funcCmdNum = 0; foundParas.clear(); lossParas.clear(); }
142
65
// Copyright (c) 2021 Tobias Bohnen // // This software is released under the MIT License. // https://opensource.org/licenses/MIT #pragma once #include <tcob/tcob_config.hpp> #include <tcob/script/LuaScript.hpp> #include <tcob/script/LuaTable.hpp> namespace tcob { ////////////////////////////////////////////////////...
596
188
// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "xfa/fwl/core/ifwl_datetimepicker.h" #include "third_party/base/ptr_...
20,343
8,078
/* simplifying wrapper for std::condition_variable, c++11 make flags: CXXFLAGS+='-Wall -Wextra' LDFLAGS+=-pthread */ #include <iostream> #include <thread> #include <mutex> #include <condition_variable> /* * simplifying wrapper for std::condition_variable * * usage: condition_done cond; // in waiting th...
1,462
541
/** * PANDA 3D SOFTWARE * Copyright (c) Carnegie Mellon University. All rights reserved. * * All use of this software is subject to the terms of the revised BSD * license. You should have received a copy of this license along * with this source code in a file named "LICENSE." * * @file graphicsWindow.cxx * @...
23,407
6,853
// 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 "extensions/browser/guest_view/app_view/app_view_guest.h" #include <utility> #include "base/bind.h" #include "base/command_line.h" #include "ba...
10,705
3,250
#ifndef HTMLELEMENT_H #define HTMLELEMENT_H #include <string> #include <vector> #include <memory> class HTMLElement { public: HTMLElement(); HTMLElement(const HTMLElement &element); virtual ~HTMLElement(); std::wstring get_id() const; std::wstring get_title() const; ...
1,179
367
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // //============================================================================= #include "pch_materialsystem.h" // NOTE: currently this file is marked as "exclude from build" //#define _CHECK_MATERIALS_FOR_PROBLEMS 1 #ifd...
18,694
7,308
//: ---------------------------------------------------------------------------- //: Copyright (C) 2016 Verizon. All Rights Reserved. //: All Rights Reserved //: //: \file: TODO.cc //: \details: TODO //: \author: Reed P. Morrison //: \date: 12/06/2016 //: //: Licensed under the Apache License, Version 2.0 (th...
4,844
1,717
// Copyright 2021 Peter Dimov. // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt #include <boost/system/error_code.hpp> #include <boost/core/lightweight_test.hpp> #include <boost/config/pragma_message.hpp> #include <cerrno> #if !defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR...
3,307
1,256
/** Name: Phoenix Bishea Eid: pnb338 */ #include <iostream> using namespace std; /// global constant for fixed rows and cols of the 2D array int iterationsR = 0, iterationsC = 0, gameCounter = 0, gameCounterMax = 0, aliveCounters = 0, temp = 0; const int rownumber = 10, columnnumber = 10, minimum = 0, ma...
5,147
1,825
// // zug: transducers for C++ // Copyright (C) 2019 Juan Pedro Bolivar Puente // // This software is distributed under the Boost Software License, Version 1.0. // See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt // #include <catch2/catch.hpp> #include <zug/compose.hpp> #include <zug/transduc...
752
291
// Houzi Game Engine // Copyright (c) 2018 Davide Corradi // Licensed under the MIT license. #include "hou/test.hpp" #include "hou/gfx/text_box_formatting_params.hpp" using namespace hou; using namespace testing; namespace { class test_text_box_formatting_params : public Test {}; } // namespace TEST_F(test_te...
1,343
576
#pragma once #include <Chip/Unknown/Spansion/MB9AF14xM/FLASH_IF.hpp> #include <Chip/Unknown/Spansion/MB9AF14xM/CRG.hpp> #include <Chip/Unknown/Spansion/MB9AF14xM/CRTRIM.hpp> #include <Chip/Unknown/Spansion/MB9AF14xM/SWWDT.hpp> #include <Chip/Unknown/Spansion/MB9AF14xM/HWWDT.hpp> #include <Chip/Unknown/Spansion/MB9AF14...
2,056
1,026
/* Copyright 2020 Futurewei Technologies, 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 applicabl...
8,527
3,054
//Code written by Richard O. Lee and Christian Bienia //Modified by Christian Fensch #include <cstdlib> #include <cstring> #include <iostream> #include <fstream> #if defined(WIN32) #define NOMINMAX #include <windows.h> #endif #include <math.h> #include <pthread.h> #include <assert.h> #include <float.h> #include "f...
42,743
16,408
#include "pch.h" #include "GuiLayout.h" #include "GuiWidget.h" GuiLayout::GuiLayout() : mOrientation(eGuiLayoutOrientation_Horizontal) , mCols(1) , mRows(1) , mSpacingHorz() , mSpacingVert() , mPaddingL() , mPaddingT() , mPaddingR() , mPaddingB() , mLayoutType(eGuiLayo...
4,668
1,554
#pragma once #include <string> #include <vector> #include <memory> #include "Statement.hpp" #include <src/AST/Expressions/Expression.hpp> #include <src/AST/Expressions/ExpressionList.hpp> struct ProcedureCallStatement : Statement { std::string id; std::vector<std::shared_ptr<Expression>> args; Procedure...
550
166
// Copyright (c) 2013 Alexandre Grigorovitch (alexezh@gmail.com). // // 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,...
2,691
1,018
/* Types (SCALAR, BOOL, SIDE) */ class dcg_main_debug { title = "Debug Mode"; values[] = {0,1}; texts[] = {"Off", "On"}; default = 0; setParam = 1; typeName = ""; }; class dcg_main_loadData { title = "Load Mission Data"; values[] = {0,1}; texts[] = {"Off", "On"}; default = 1; setPa...
1,087
450
/* Declares the implementation class for the KVM hypervisor platform adapter. Include this file to use KVM as a platform. The platform instance is exposed as a singleton: auto& instance = virt86::kvm::KvmPlatform::Instance(); ------------------------------------------------------------------------------- MIT Licens...
2,153
644
// Copyright 2015 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. // These tests have been added to specifically tests issues arising from (A)LPC // lock down. #include <algorithm> #include <cctype> #include <windows.h...
8,244
3,096
#include "system/packed_data.h" #include "system/type_aliases.h" #define CLAMP(f) (f < 0.0f ? 0.0f : f > 1.0f ? 1.0f : f) namespace Gamma { /** * pVec4 * ----- */ pVec4::pVec4(const Vec3f& value) { r = uint8(CLAMP(value.x) * 255.0f); g = uint8(CLAMP(value.y) * 255.0f); b = uint8(CLAMP(value.z...
553
305
/* ** serverS.cpp: - Creates a map of scores and names - Receives requests from the central and sends the scores to the central - Closes the socket - by Surya Krishna Kasiviswanathan, USC ID: 9083261716 */ #include <iostream> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include ...
6,468
2,662
#include "intro_window.h" extern tvector<Color> FullScreenShot(int& iWidth, int& iHeight); void CreateApplication(int argc, char** argv) { int iWidth, iHeight; tvector<Color> aclrScreenshot = FullScreenShot(iWidth, iHeight); CIntroWindow oWindow(argc, argv); oWindow.SetScreenshot(aclrScreenshot, iWidth, iHeight...
493
186
#include "baldr/tilehierarchy.h" #include "baldr/graphid.h" #include "midgard/pointll.h" #include "test.h" #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/json_parser.hpp> using namespace std; using namespace valhalla::baldr; using namespace valhalla::midgard; namespace { void test_parse() ...
2,892
1,072
#include "hachi_patch.hpp" #include <algorithm> #include <array> #include <cstdint> #include <cstring> #include <numeric> #include <string> #include <string_view> #include <utility> #include <vector> #include <elf.h> #include "exception.hpp" #include "iosufsa.hpp" #include "log.hpp" #include "util.hpp" #include "zli...
11,236
4,439
//FilgraphManager.cpp #include "QuartzTypeLib.h" #include "QuartzTypeLibInterfaces.h" #include "FilgraphManager.h" using namespace VCF; using namespace QuartzTypeLib; FilgraphManager::FilgraphManager() { } FilgraphManager::~FilgraphManager() { } void FilgraphManager::Run( ) { } void Fi...
7,924
2,976
#pragma once #include <functional> #include <utility> #include "psychic-ui/psychic-ui.hpp" #include "psychic-ui/Component.hpp" #include "psychic-ui/Skin.hpp" #include "Label.hpp" namespace psychic_ui { class Button; class ButtonSkin : public Skin<Button> { public: ButtonSkin() : Skin<Button>() { ...
1,755
493
#include "Tool_Vertex.h" typedef uint32_t uint; using std::vector; inline float clamp( float val, float low, float hi ) { if( val <= low ) return low; if( val >= hi ) return hi; return val; } inline int16_t normalizedFloatToInt16( float val ) { val = clamp( val, -1.f, 1.f ); val *= 32767.f; val = roundf...
3,002
1,370
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). // // 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...
5,781
1,988
/* Copyright (c) 2015 Heinrich Fink <hfink@toolsonair.com> * Copyright (c) 2014 ToolsOnAir Broadcast Engineering GmbH * * 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 restrictio...
35,494
10,728
#include <iostream> #include <cassert> #include <string> #include <vector> #include <cmath> #include <algorithm> #include <climits> using std::vector; using std::string; using std::max; using std::min; using ll = long long; long long eval(long long a, long long b, char op) { if (op == '*') { return a * b;...
1,715
701
///////////////////////////////////////////////////////////////////////////// // Name: sweep.cc // Purpose: // Author: // Modified by: // Created: // RCS-ID: // Copyright: // Licence: ///////////////////////////////////////////////////////////////////////////// // Precompiled header: #include "../st...
8,111
2,979
/* * Copyright (c) 2020 Samsung Electronics Co., Ltd. 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...
12,565
4,007
#ifndef _CISCO_FLASH_MIB_ #define _CISCO_FLASH_MIB_ #include <memory> #include <vector> #include <string> #include <ydk/types.hpp> #include <ydk/errors.hpp> namespace cisco_ios_xe { namespace CISCO_FLASH_MIB { class CISCOFLASHMIB : public ydk::Entity { public: CISCOFLASHMIB(); ~CISCOFLASHMIB(); ...
44,222
14,532
#include "hooks.hpp" #include "../menu/menuX88.hpp" #include "../features/visuals/player.hpp" #include "../features/aimbot/aimbot.hpp" #include "../features/visuals/world.hpp" #include "../features/visuals/radar.hpp" #include "../features/misc/misc.hpp" #include "../menu/GUI/drawing.hpp" #include "../globals.hpp" #pra...
2,273
901
#include <stdio.h> #include <stdlib.h> #include <iostream> #include <fstream> #include <math.h> #include <chrono> #include <ctime> #include <cstdlib> #include <time.h> #include <vector> #include <random> #include "TCanvas.h" #include "TStyle.h" #include "TGraph.h" #include "TEllipse.h" #include "TAxis.h" #include "TLi...
9,299
3,781
/**************************************************************************** * Copyright (c) 2015 - 2016, CEA * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code mus...
3,682
1,366
#include <Luce/TypeTrait/IsOriginalType.hh>
43
17
// Given a positive integer n, find the least number of perfect square numbers // (for example, 1, 4, 9, 16, ...) which sum to n. // For example, given n = 12, return 3 because 12 = 4 + 4 + 4; given n = 13, // return 2 because 13 = 4 + 9. // Credits: // Special thanks to @jianchao.li.fighter for adding this problem...
1,345
552
#include "LedDeviceFile.h" #include <chrono> #include <iomanip> #include <iostream> LedDeviceFile::LedDeviceFile(const QJsonObject &deviceConfig) : LedDevice() { _devConfig = deviceConfig; _deviceReady = false; _printTimeStamp = false; } LedDeviceFile::~LedDeviceFile() { } LedDevice* LedDeviceFile::construct(co...
2,279
930
#define BOOST_TEST_MODULE st_tree #include <boost/test/unit_test.hpp>
70
29
#pragma comment(lib, "Gdi32.lib") #pragma comment(lib, "User32.lib") #pragma unmanaged #pragma warning( disable : 4311 4302 ) #include "stdafx.h" #include "wpf_container_binding.h" #include "wpf_container.h" #include "el_ol.h" #include <assert.h> namespace litehtml { wpf_container::wpf_container(wpf_container_bi...
6,304
2,668
#include <CherrySoda/Components/Logic/Wiggler.h> #include <CherrySoda/Engine.h> #include <CherrySoda/Entity.h> #include <CherrySoda/Util/Math.h> #include <CherrySoda/Util/STL.h> namespace cherrysoda { Wiggler* Wiggler::Create(float duration, float frequency, STL::Action<float> onChange/* = nullptr*/, bool start/* = ...
2,245
965
// Copyright 2018 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Copyright 2018 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICEN...
1,595
525
/* ** gl_samplers.cpp ** ** Texture sampler handling ** **--------------------------------------------------------------------------- ** Copyright 2015-2019 Christoph Oelckers ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without ** modification, are permitted provided that th...
7,037
3,023
//============================================================================== // Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI // Copyright 2012 - 2013 MetaScale SAS // // Distributed under the Boost...
2,193
766
//========================================================================= // Copyright (C) 2012 The Elastos 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 // // ...
34,009
11,761
//////////////////////////////////////////////////////////////////////////////// // // MARAL // (Molecular Architectural Record & Assembly Library) // // Copyright (C) by Armin Madadkar-Sobhani arminms@gmail.com // // See the LICENSE file for terms of u...
40,282
14,407
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
8,689
2,692
//------------------------------------------------------------------------------ // Qt #include <QtWidgets> #include <QAction> //------------------------------------------------------------------------------ // Local #include "Image_viewer.hpp" #include "imager_lib/Transmit_image_dialog.hpp" //-----------------------...
14,755
4,521
/* //@HEADER // ***************************************************************************** // // test_reconstruct.cc // DARMA Toolkit v. 1.0.0 // DARMA/checkpoint => Serialization Library // // Copyright 2019 National Technology & Engineering Solu...
6,135
2,014
#include "lue/framework/benchmark/benchmark.hpp" #include "lue/framework/benchmark/main.hpp" #include <iostream> #include <random> #include <thread> static void dummy( lue::benchmark::Environment const& environment, lue::benchmark::Task const& task) { using namespace std::chrono_literals; auto const ...
1,403
463
// media aritmetica a cifrelor nenule #include <iostream> using namespace std; int main() { int sum = 0, nrcif = 0, medie = 0; int n; cin>>n; while(n) { int uc = n%10; if(uc > 0) { sum += uc; nrcif++; } n = n/10; } medie = sum/nrcif; cout<<"Media aritmetica este "<<medi...
337
162
#define _CRT_SECURE_NO_WARNINGS 1 #include <Windows.h> #include <windowsx.h> #include <ApplicationBase//Application.hpp> #include <Application/ApplicationFactory.hpp> #include <PlatformCore/PlatformCore.hpp> #include <Core/Log.hpp> #include <Core/Containers/UniquePointer.hpp> #include <Core/Timer.hpp> #include <Core/...
2,474
943
/* Copyright (c) 2019, Sascha Willems * * SPDX-License-Identifier: Apache-2.0 * * 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 * * Un...
26,662
9,958
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #include "ShooterGame.h" #include "ShooterStyle.h" #include "SlateGameResources.h" TSharedPtr< FSlateStyleSet > FShooterStyle::ShooterStyleInstance = NULL; void FShooterStyle::Initialize() { if ( !ShooterStyleInstance.IsValid() ) { ShooterS...
4,819
1,945
/* ########################## # Hydjet2 # # version: 2.2.0 patch1 # ########################## Interface to the HYDJET++ generator, produces HepMC events Author: Andrey Belyaev (Andrey.Belyaev@cern.ch) Hydjet2Hadronizer is the modified InitialStateHydjet HYDJET++ version 2.2: InitialStateHydjet is ...
49,803
18,695
// Copyright 2019 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/enterprise/browser/reporting/report_request_queue_generator.h" #include <vector> #include "base/run_loop.h" #include "base/strings/...
14,334
4,332
#include<bits/stdc++.h> using namespace std; int main() { int n;cin>>n; while(n--) { int m; cin>>m; vector<int>v(m); for(int i=0;i<m;i++) cin>>v[i]; sort(v.begin(),v.end()); int l=0,r=v.size()-1,sum=0; int m_sum=v[0]+v[r]; while(l<r) { ...
509
238
/* * Copyright (c) 2020-2021 Samsung Electronics Co., Ltd. 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 limitation the righ...
10,922
4,131
#include "../type/class_type.h" #include "class_evaluator.h" cminus::evaluator::class_::~class_() = default; std::shared_ptr<cminus::memory::reference> cminus::evaluator::class_::evaluate_unary_left(logic::runtime &runtime, const operator_type &op, std::shared_ptr<memory::reference> target) const{ auto callable = f...
2,758
900
#include <stdio.h> #include <sys/un.h> #include <netinet/in.h> #include <sys/socket.h> #include <sys/ioctl.h> #include <linux/sockios.h> #include <string.h> #include <assert.h> #include <stdlib.h> #include <fcntl.h> #include <errno.h> #include "plugin_agent_mgr.h" #include "plugin_dgram.h" #include "plugin_unit.h" #in...
3,530
1,169
#include <vector> #include <sstream> #include <iostream> #include <stdexcept> // беда не работает дайте руки и мозг int debugPoint(int line) { if (line < 0) return 0; // You can put breakpoint at the following line to catch any rassert failure: return line; } #define rassert(condition, message) if...
3,921
1,490
/** * * AUTHOR: <Shai Bonfil> * * This is a test that gets input of eight characters(less or more * is invalid input), and the purpose is to represent snowman in * a format like you can see in the link below - HNLRXYTB. * Each valid letter is number between 1 to 4 which presets * the following things: * * H...
4,711
2,323
#include "pch.h" #include "Common.h" #include <glm/gtx/matrix_decompose.hpp> std::tuple<glm::vec3, glm::quat, glm::vec3> GetTransformDecomposition(const glm::mat4& transform) { glm::vec3 scale, translation, skew; glm::vec4 perspective; glm::quat orientation; glm::decompose(transform, scale, orientation, translat...
393
144
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2016, Intel Corporation // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated // documentation files (the "Software"), to de...
5,077
2,558
#include <stdio.h> #include "raytracing_stats.h" int RayTracingStats::width; int RayTracingStats::height; BoundingBox *RayTracingStats::bbox; int RayTracingStats::num_x; int RayTracingStats::num_y; int RayTracingStats::num_z; unsigned long long RayTracingStats::start_time; unsigned long long RayTracingStats::num_nons...
2,919
1,004
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
10,193
3,426
// Copyright 2010 Google 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 applicable...
6,020
1,921
// Copyright © 2017-2019 Trust Wallet. // // This file is part of Trust. The full Trust copyright notice, including // terms governing use, modification, and redistribution, is contained in the // file LICENSE at the root of the source code distribution tree. #include "PublicKey.h" #include "HexCoding.h" #include "Ont...
1,937
956
#include <iostream> #include "Stack.h" int main() { Stack<int> stack(6); stack.peek(); stack.push(1); stack.push(5); std::cout << stack.peek() << std::endl; stack.pop(); std::cout << stack.peek() << std::endl; std::cout << stack.size() << std::endl; return 0; }
273
117
/* * $Revision: 223 $ $Date: 2010-03-30 05:44:44 -0700 (Tue, 30 Mar 2010) $ * * Copyright by Astos Solutions GmbH, Germany * * this file is published under the Astos Solutions Free Public License * For details on copyright and terms of use see * http://www.astos.de/Astos_Solutions_Free_Public_License.html */ #...
3,902
1,295
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // Name : // Author : Avi // Revision : $Revision: #8 $ // // Copyright 2009-2020 ECMWF. // This software is licensed under the terms of the Apache Licence version 2.0 // which can be obtained at http://www.apache.org/lic...
2,978
1,020
#ifndef PKAO_UTIL_HPP #define PKAO_UTIL_HPP /* pkao_util.hpp 2014/11/02 psycommando@gmail.com Description: Function for running the kaomado utility command line tool! */ namespace pkao_util { //Runs the tool //int RunPKaoUtil( int argc, const char * argv[] ); }; #endif
279
116
// Copyright Carl Philipp Reh 2009 - 2016. // 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) #ifndef MIZUIRO_COLOR_FORMAT_HOMOGENOUS_NS_TYPES_POINTER_HPP_INCLUDED #define MIZUIRO_COLOR_FORMAT_...
922
365
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "shared_test_classes/subgraph/reshape_permute_conv_permute_reshape_act.hpp" namespace SubgraphTestsDefinitions { std::string ConvReshapeAct::getTestCaseName(testing::TestParamInfo<ConvReshapeActParams> obj) { I...
4,910
1,637
// // Copyright (c) 2019 The Aquarium 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. // // InnerModelDawn.cpp: Implements inner model of Dawn. #include "InnerModelDawn.h" #include <vector> InnerModelDawn::InnerModelDawn(Co...
10,312
3,377
/* +-----------------------------------+ | | | *** Debugging functionality *** | | | | Copyright (c) -tHE SWINe- 2015 | | | | Debug.cpp ...
55,164
26,988
/*========================================================================= Program: Visualization Toolkit Module: vtkPhastaReader.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed ...
31,190
10,645
#ifndef PYTHONIC_NUMPY_FFT_IHFFT_HPP #define PYTHONIC_NUMPY_FFT_IHFFT_HPP #include "pythonic/include/numpy/fft/ihfft.hpp" #include "pythonic/utils/functor.hpp" #include "pythonic/include/utils/array_helper.hpp" #include "pythonic/types/ndarray.hpp" #include "pythonic/builtins/None.hpp" #include "pythonic/numpy/fft/c2c....
4,022
1,387
// // Plane.hpp // WikitudeUniversalSDK // // Created by Alexandru Florea on 01.08.18. // Copyright © 2018 Wikitude. All rights reserved. // #ifndef Plane_hpp #define Plane_hpp #ifdef __cplusplus #include <vector> #include "PlaneType.hpp" #include "Geometry.hpp" #include "CompilerAttributes.hpp" namespace wik...
4,294
1,074
// Copyright 2017 Bartosz Bielecki int main() { return 0; }
65
30
#include <Geometry/Geometry.h> #include <Strategy2/Field.h> #include "vision.hpp" using namespace vision; std::map<unsigned int, Vision::RecognizedTag> Vision::run(cv::Mat raw_frame) { in_frame = raw_frame.clone(); preProcessing(); findTags(); //findElements(); return pick_a_tag(); } void Vision::preProcessing...
15,303
6,112
//-------------------------------------------------------------------------- // File and Version Information: // $Id: TrkLineMaker.hh 104 2010-01-15 12:13:14Z stroili $ // // Author(s): Gerhard Raven // //------------------------------------------------------------------------ #ifndef TRKLINEMAKER_HH #define TRKL...
464
161
/** @author Shin'ichiro Nakaoka */ #include "View.h" #include "ViewArea.h" #include "ViewManager.h" #include "App.h" #include "AppConfig.h" #include <QLayout> #include <QKeyEvent> #include <QTabWidget> using namespace std; using namespace cnoid; View::View() { isActive_ = false; viewArea_ = 0; defaul...
4,238
1,361
/* * Copyright (c) 2004-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #in...
6,218
2,416
// // LICENSE: MIT // #include "pass_runner.h" #define RUNPASS_AND_UPDATE(KEY_NAME) \ { \ auto old_value = (KEY_NAME)(); \ auto new_value = RunPass(old_value); \ if (new_value != old_value) { \ (KEY_N...
3,091
1,006
/* A Bison parser, made by GNU Bison 3.0.2. */ /* Bison interface for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc. 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 t...
3,401
1,275
#include "server/db.h" #include <algorithm> #include <cassert> #include <cstdio> #include <cstdlib> #include <span> #include <exception> namespace ec_prv { namespace db { auto KVStore::open_default() -> KVStore { const char* EC_PRV_ROCKSDB_DATADIR_PATH = std::getenv("EC_PRV_ROCKSDB_DATADIR_PATH"); if (nullptr == EC...
3,112
1,282
#include "Compressor.hpp"
26
11
#pragma once #include "helpers/warnings.hpp" DISABLE_WARNING_PUSH DISABLE_WARNING_OLD_CAST #include <imgui.h> DISABLE_WARNING_POP #include <imgui_impl_glfw.h> #include <imgui_impl_opengl3.h> #include <GL/glew.h> #include <GLFW/glfw3.h> namespace kawe { namespace ImGuiHelper { template<typename... Args> inline auto...
515
204
// http://eli.thegreenplace.net/2015/programmatic-access-to-the-call-stack-in-c #define UNW_LOCAL_ONLY #include <cxxabi.h> #include <libunwind.h> #include <cstdio> #include <cstdlib> #include "backtrace.h" using namespace coypu::backtrace; void BackTrace::bt() { unw_cursor_t cursor; unw_context_t context; // ...
1,131
431
/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor * ...
7,658
2,599
class Solution { public: bool judgeCircle(string moves) { int v = 0, h = 0; unordered_map<char, int>m{{'R', 1}, {'L', -1}, {'U', -1}, {'D', 1}}; for(auto x: moves) if(x == 'L' || x == 'R') h += m[x]; else v += m[x]; return v == 0 && h == 0; } };
310
127
/* - Read a set of integers that the user enters until they type -1 (keep max at 50) - Create a function called statisticsValue which pass in 6 parameters: an array, a size, and then 4 variables for sum, average, min, and max which will pass them by reference. - The values will be calculated in the function and the ...
1,451
597
/* * Copyright (c) 2011-2019, The DART development contributors * All rights reserved. * * The list of contributors can be found at: * https://github.com/dartsim/dart/blob/master/LICENSE * * This file is provided under the following "BSD-style" License: * Redistribution and use in source and binary forms, w...
10,225
3,431
#include "diffmodbus.h" DiffModbus::DiffModbus(char* _name, size_t _length) : HWModule(_name, _length), m_chassis_mode(ChassisModeCMD::MODE_STOP_CMD), m_left_wheel_torque(0), m_right_wheel_torque(0), m_track_torque_mode(TrackingTorqueModeCMD::TORQUE_MED_CMD), m_sensor_bw_mode(SensorBWModeCMD::W...
4,723
1,947
--- base/threading/platform_thread_linux.cc.orig 2019-03-11 22:00:51 UTC +++ base/threading/platform_thread_linux.cc @@ -18,7 +18,9 @@ #if !defined(OS_NACL) && !defined(OS_AIX) #include <pthread.h> +#if !defined(OS_BSD) #include <sys/prctl.h> +#endif #include <sys/resource.h> #include <sys/time.h> #include <sys...
1,268
473