text
string
size
int64
token_count
int64
/* * 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...
1,835
533
#include "SymbolTable.hpp" #include "foundation/ArgumentException.hpp" namespace aapp = axis::application::parsing::preprocessing; aapp::SymbolTable::SymbolTable(void) { // no op } aapp::SymbolTable::~SymbolTable(void) { // erases symbol table and call destructors of every every contained element _table.clear(); ...
984
333
/* * MIT License * * Copyright (c) 2017 Benjamin Zeller * * 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, copy, ...
11,788
3,328
//$Id$ //------------------------------------------------------------------------------ // AtmosphereFactory //------------------------------------------------------------------------------ // GMAT: General Mission Analysis Tool // // Copyright (c) 2002 - 2017 United States Government as represe...
2,387
641
/* * Copyright 2012 Open Source Robotics 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/LICENSE-2.0 * * Unless required by applicab...
26,612
7,277
// RUN: %clang_cc1 -fsyntax-only -verify -Wno-c++11-extensions %s struct errc { int v_; operator int() const {return v_;} }; class error_condition { int _val_; public: error_condition() : _val_(0) {} error_condition(int _val) : _val_(_val) {} template <class E> error_condition(E _e) { // make_...
8,693
2,608
#include <iostream> #include <string> int main() { std::string str; std::cin >> str; for (std::string::size_type n = 0;n < str.size(); ++n) { str[n] = 'X'; } std::cout << str << std::endl; return 0; }
220
95
// Copyright (c) 2019 PaddlePaddle 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...
2,854
924
/** * Copyright (c) 2017 Melown Technologies SE * * 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 conditions and the f...
9,721
3,376
#include "ArgumentException.h" ArgumentException::ArgumentException(string message) : invalid_argument(message.c_str()) { } ArgumentException::ArgumentException(const char* message) : invalid_argument(message) { }
217
61
/* * kmp_threadprivate.cpp -- OpenMP threadprivate support library */ //===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See...
22,778
8,566
#include "timer.h" int timer::_count = 0; timer *timer::_timers[MAX_TIMERS];
78
35
//Equation to solve: 5x1 + x2 = 7 ; x1 + 5x2 = 11 #include <iostream> int main() { double x_1 = 0.01; // Initialize x1 = 0 double x_1_new = 0.0; double x_2 = 0.01; // Initialize x2 = 0 double x_2_new = 0.0; double eps = 1.0; // Tolerance limit epsilon, initialized to 1 int count_s...
1,443
693
#include "Matrix.h" #include "iostream" namespace Maths { Matrix::Matrix() { // If no data is given then set as identity matrix for (int i = 0; i < 9; i++) { matrixData[i] = 0; } matrixData[0] = matrixData[4] = matrixData[8] = 1.0f; } Matrix::Matrix(float matrix0, float matrix3, float ...
9,176
3,683
#include <babylon/extensions/dynamicterrain/dynamic_terrain.h> #include <babylon/babylon_stl_util.h> #include <babylon/cameras/camera.h> #include <babylon/core/logging.h> #include <babylon/engines/scene.h> #include <babylon/extensions/dynamicterrain/dynamic_terrain_options.h> #include <babylon/meshes/builders/mesh_bui...
32,447
11,862
// 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 <ostream> #include <set> #include <string> #include <vector> #include "base/bind.h" #include "base/command_line.h" #include "base/containers/cxx...
14,696
4,658
/* This file is part of Cloudy and is copyright (C)1978-2019 by Gary J. Ferland and * others. For conditions of distribution and use see copyright notice in license.txt */ /*lines_continuum put energetics, H, and He lines into line intensity stack */ #include "cddefines.h" #include "taulines.h" #include "iso.h" #incl...
23,154
9,985
 #define _YY_APPLY_TO_LATE_BOUND_MODULES(_APPLY) \ _APPLY(ntdll, "ntdll" , USING_UNSAFE_LOAD ) \ _APPLY(kernel32, "kernel32" ...
10,686
3,821
#include "LightStreaksPostEffect/LightStreaksPostEffect.hpp" #include <Castor3D/Engine.hpp> #include <Castor3D/Buffer/GpuBuffer.hpp> #include <Castor3D/Model/Vertex.hpp> #include <Castor3D/Material/Texture/Sampler.hpp> #include <Castor3D/Material/Texture/TextureLayout.hpp> #include <Castor3D/Miscellaneous/Parameter.hp...
4,924
2,116
#include <iostream> #include <numeric> #include <vector> #include <climits> template <typename T> std::istream& operator >>(std::istream& input, std::vector<T>& v) { for (T& a : v) input >> a; return input; } void answer(unsigned v) { std::cout << v << '\n'; } void solve(const std::vector<std::...
854
349
/* Red-Black tree via pb_ds. */ #include<bits/stdc++.h> #include<ext/pb_ds/assoc_container.hpp> #include<ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using namespace std; template <typename T> using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>; int main(){ ordere...
535
212
//**************************************************************************** // Copyright © 2017 Jan Erik Breimo. All rights reserved. // Created by Jan Erik Breimo on 23.02.2017. // // This file is distributed under the BSD License. // License text is included with the source distribution. //************************...
13,609
3,660
/** * (C) Copyright 2020 IBM. All Rights Reserved. * * This code is licensed under the Apache License, Version 2.0. You may * obtain a copy of this license in the LICENSE.txt file in the root directory * of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. * * Any modifications or derivative wor...
7,052
2,844
/// @copyright (c) 2007 CSIRO /// Australia Telescope National Facility (ATNF) /// Commonwealth Scientific and Industrial Research Organisation (CSIRO) /// PO Box 76, Epping NSW 1710, Australia /// atnf-enquiries@csiro.au /// /// This file is part of the ASKAP software distribution. /// /// The ASKAP software distribut...
5,300
1,780
/* Copyright (C) 2012-2019 IBM Corp. * This program is 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 a...
8,862
3,259
#include <libusb.h> #include <iostream> using namespace std; struct plv::usb::UsbList::Opaque { libusb_device **list = nullptr; }; auto plv::usb::UsbList::~UsbList() -> void { libusb_free_device_lisit(o_->list, this->size()); }
239
97
// 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 "chrome/notification_helper/notification_helper_crash_reporter_client.h" #include <memory> #include "base/check.h" #include "base/debug/leak_an...
4,882
1,501
/** * MK4duo Firmware for 3D Printer, Laser and CNC * * Based on Marlin, Sprinter and grbl * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm * Copyright (C) 2019 Alberto Cotronei @MagoKimbra * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Pu...
31,861
15,269
// Copyright 2014 MongoDB 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 in wri...
6,444
2,309
#include "SequenceTextFile.h" #include "SystemApis.h" #include "Variables.h" using namespace Utau; Q_CHARSET_DECLARE(SequenceTextFile) // Project File Reader SequenceTextFile::SequenceTextFile() : BaseFile(Qs::Default) { m_codec = defaultCodec; reset(); } SequenceTextFile::SequenceTextFile(const QString &f...
18,160
5,711
// Magic Software, Inc. // http://www.magic-software.com // http://www.wild-magic.com // Copyright (c) 2004. All Rights Reserved // // The Wild Magic Library (WML) source code is supplied under the terms of // the license agreement http://www.magic-software.com/License/WildMagic.pdf // and may not be copied or ...
2,893
957
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/panorama/model/S3Location.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace...
1,535
580
#include "rollkit/characteristic.hpp" #include <algorithm> #include "rollkit/utils.hpp" using namespace std; namespace rollkit { nlohmann::json Characteristic::serialize() const { nlohmann::json ret; bool is_readable = find(_perms.begin(), _perms.end(), "pr") != _perms.end(); ret["type"] = _hap_type; ret...
496
191
/** * @Author: Alcwyn Parker <alcwynparker> * @Date: 2017-04-28T21:06:23+01:00 * @Email: alcwynparker@gmail.com * @Project: Anemone * @Filename: Anemone.cpp * @Last modified by: alcwynparker * @Last modified time: 2017-05-10T00:00:10+01:00 */ #include "Arduino.h" #include "Anemone.h" Anemone::Anemone(int pin) { ...
10,014
3,623
// mckay.cpp // // solver due to Brendan McKay // C++ translation by Volker Widor 2003 // adapted by Anton Betten // 1/16/2009 #include "foundations.h" using namespace std; namespace orbiter { namespace foundations { mckay::tMCKAY::tMCKAY() { nb_calls_to_solve = 0; first_moved = 0; second_moved = 0; problem_l...
28,005
13,549
#include <string> #include <utility> #include <vector> #include <memory> #include <iostream> #include <ssc/sscapi.h> #include "SAM_api.h" #include "ErrorHandler.h" #include "SAM_TroughPhysicalProcessHeat.h" SAM_EXPORT int SAM_TroughPhysicalProcessHeat_execute(SAM_table data, int verbosity, SAM_error* err){ return S...
123,412
50,539
/** * @brief defines newton raphman power flow solver * * @file newtonSolver.cpp * @author Luiz Victor Linhares Rocha * @date 2018-09-22 * @copyright 2018 */ #include <cmath> #include "newtonSolver.hpp" #include "barra.hpp" #include "branch.hpp" #include "powerNet.hpp" namespace neuralFlux { NewtonSolver::N...
9,198
3,797
/* Copyright (C) 2021 Gleb Bezborodov - All Rights Reserved * You may use, distribute and modify this code under the * terms of the MIT license. * * You should have received a copy of the MIT license with * this file. If not, please write to: bezborodoff.gleb@gmail.com, or visit : https://github.com/glensand/hope ...
1,425
521
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #pragma once #include "popups/Popups.hpp" #include <service-appmgr/Actions.hpp> #include <PhoneModes/Common.hpp> namespace gui { class BluetoothModeParams : public app::manager:...
680
231
// Copyright (c) 2021 The worldwideweb Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <random.h> #include <fs.h> #include <util/strencodings.h> fs::path GetUniquePath(const fs::path& base) { FastRa...
414
148
#include <gtest/gtest.h> #include <platform.h> #include <../libponyrt/mem/pool.h> #include <../libponyrt/sched/scheduler.h> #include "util.h" #include <memory> #define TEST_COMPILE(src, pass) DO(test_compile(src, pass)) #define TEST_COMPILE_RESUME(pass) DO(test_compile_resume(pass)) class CompilerSerialisationTes...
4,240
1,757
#include <boost/asio/system_timer.hpp>
39
16
// This is a part of the Active Template Library. // Copyright (c) Microsoft Corporation. All rights reserved. // // This source code is only intended as a supplement to the // Active Template Library Reference and related // electronic documentation provided with the library. // See these sources for detailed inform...
3,912
1,388
// Copyright 2008 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Exhaustive testing of regular expression matching. #include <schwa/third-party/re2/util/test.h> #include <schwa/third-party/re2/testing/exhaustive_tester....
3,221
1,267
/* * Copyright (c) 2017 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
13,848
4,907
/**************************************************************************************** Program: PictureDesigner Author: Görkem Tok Language: C++ Platform: Qt Creator Contact: ceng.gorkem.tok@gmail.com License: MIT ****************************************************************************************/ #...
25,309
8,756
#pragma once #include <ui/widgets/config.hxx> #include <QLabel> PRAM_NS_BEGIN WIDGETS_NAMESPACE_BEGIN class Label: public QLabel { Q_OBJECT public: using QLabel::QLabel; }; PRAM_NS_END WIDGETS_NAMESPACE_END
220
96
// Copyright 2019, Collabora, Ltd. // SPDX-License-Identifier: BSL-1.0 /*! * @file * @brief Small helper struct that for debugging views. * @author Jakob Bornecrantz <jakob@collabora.com> * @ingroup aux_tracking */ #pragma once #ifndef __cplusplus #error "This header is C++-only." #endif #include <opencv2/open...
2,567
1,062
/* mbed Microcontroller Library * Copyright (c) 20015 ARM Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
14,141
5,243
#pragma once #include "Transformer.hpp" namespace Classifier::Data::Transformation { class TransformerBuilder { public: template<typename ...Ts> static Transformer<InputFeatures<Ts...>, OutputFeatures<Ts...>> from(FeatureSet<Ts...>& set) { return Transformer<InputFeatures<Ts...>, OutputFeatures<Ts...>>(se...
333
123
/* Copyright (c) 2017-2020, Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable Energy, LLC. See the top-level NOTICE for additional details. All rights reserved. SPDX-License-Identifier: BSD-3-Clause */ #include "Filters.hpp" #include "CoreApp.hpp" #include "FilterOperat...
12,177
3,681
/* * Copyright 2009-2017 Alibaba Cloud 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...
10,369
3,430
// See LICENSE_CELLO file for license and copyright information /// @file control_stopping.cpp /// @author James Bordner (jobordner@ucsd.edu) /// @date 2013-04-26 /// @brief Charm-related functions associated with initialization /// @ingroup Control /// /// STOPPING /// /// Block::stopping(...
7,373
2,573
/* Chemistry Copyright 2010-201x held jointly by LANS/LANL, LBNL, and PNNL. Amanzi is released under the three-clause BSD License. The terms of use and "as is" disclaimer for this license are provided in the top-level COPYRIGHT file. Author: Ben Andre Base class for ion exchange sites (e.g. X- in s...
2,178
776
#ifndef RF_SYSTEM_HARDWARE_PROCESSORFEATURES_HPP #define RF_SYSTEM_HARDWARE_PROCESSORFEATURES_HPP #if _MSC_VER > 1000 #pragma once #endif #include <RadonFramework/Collections/BitSet.hpp> namespace RadonFramework::System::Hardware::ProcessorFeatures { enum Type { AES, // Advanced Encryption Standard instruction s...
1,714
567
/* SPDX-License-Identifier: BSD-2-Clause */ /* * Copyright (C) 2020, Raspberry Pi (Trading) Ltd. * * egl_preview.cpp - X/EGL-based preview window. */ #include <map> #include <string> // Include libcamera stuff before X11, as X11 #defines both Status and None // which upsets the libcamera headers. #include "core/...
13,295
5,458
#include "pch.h" #include "logging.h" #include "sourceconsole.h" #include "spdlog/sinks/basic_file_sink.h" #include "hookutils.h" #include "dedicated.h" #include "convar.h" #include <iomanip> #include <sstream> #include <Psapi.h> #include <minidumpapiset.h> #include "configurables.h" // This needs to be called after h...
13,966
5,706
/* ************************************************************************* * Copyright (c) 2005 VMware, Inc. * * 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, incl...
9,210
2,654
/******************************************************************************** * Copyright 2018 The Robotics Group, The Maersk Mc-Kinney Moller Institute, * Faculty of Engineering, University of Southern Denmark * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exce...
5,096
1,454
#pragma once #include "indexer/ftypes_matcher.hpp" #include "std/string.hpp" #include "std/vector.hpp" #include "base/macros.hpp" class FeatureType; namespace search { /// Describes 2-level POI-exception types that don't belong to any POI-common classes /// (amenity, shop, tourism, ...). Used in search algo and se...
1,387
449
// clear && make main && ./main < in > out && subl ./out #include <bits/stdc++.h> template<typename T> struct Node { T data; std::shared_ptr<Node> parent; std::shared_ptr<Node> left; std::shared_ptr<Node> right; Node( T data = -1 ) : data ( data ), parent ( nullptr ), left ( nullptr ), right ( nullptr )...
5,007
1,964
/******************************* Copyright (c) 2016-2022 Grégoire Angerand 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,770
921
#include "Mouse.h" namespace Dev::Mouse{ }
52
21
// word-grid // Copyright (c) 2019-2021 Borislav Stanimirov // // Distributed under the MIT Software License // See accompanying file LICENSE.txt or copy at // https://opensource.org/licenses/MIT // #pragma once #include <core/PRNG.hpp> #include <iostream> namespace test { core::PRNG makePrng() { auto seed = cor...
441
162
// 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 "courgette/disassembler_elf_32_arm.h" #include <algorithm> #include <string> #include <vector> #include "base/basictypes.h" #include "base/logg...
15,118
6,059
// Copyright 2021 Butescu Vladimir #include <mpi.h> #include <vector> #include <random> #include <algorithm> #include"./butescu_v_vector_average.h" std::vector<int> getRandomPositiveVector(int size) { std::random_device rd; std::mt19937 gen(rd()); std::uniform_int_distribution<> dist(1, 100); if (si...
1,967
810
/* * Copyright (C) 2020 Open Source Robotics 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/LICENSE-2.0 * * Unless required by appl...
4,507
1,221
/*========================================================================= Program: Visualization Toolkit Module: TestMultiblockDisplayProperties.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. ...
3,104
1,100
#include <iostream> using namespace std; int binarysearch(int arr[], int l,int r, int x); int main() { int array[] = {1,2,3,4,5,6,7,9}; int n = sizeof(array)/sizeof(array[0]); int x = 2; int result = binarysearch(array,0,n-1,x); if (result==-1) cout<<x<<" is not present in the array"<<endl; else...
641
266
#include <Functions/JSONPath/ASTs/ASTJSONPathRoot.h> #include <Functions/JSONPath/Parsers/ParserJSONPathRoot.h> #include <Parsers/Lexer.h> namespace DB { /** * * @param pos token iterator * @param node node of ASTJSONPathRoot * @param expected stuff for logging * @return was parse successful */ bool ParserJSONP...
609
206
/* * Clusterer on undirected graphs that produces an agglomeration tree. * * Graph vertices are initialized to each be a single element tree. Each * step of the agglomeration merges the vertices at the ends of the highest * priority edge and updates the costs of the edges connected to the merged * vertex. Th...
10,748
3,297
/**************************************************************************************** * @author: kzvd4729 created: 2017-08-07 23:11:59 * solution_verdict: Wrong answer language: C++ * run...
4,217
1,323
// Generated by Haxe 4.1.5 #include <hxcpp.h> #ifndef INCLUDED_openfl__Vector_IVector #include <openfl/_Vector/IVector.h> #endif #ifndef INCLUDED_openfl__Vector_ObjectVector #include <openfl/_Vector/ObjectVector.h> #endif #ifndef INCLUDED_openfl_ui_Multitouch #include <openfl/ui/Multitouch.h> #endif HX_LOCAL_STACK_FR...
6,503
2,757
#include "renderer.h" #include "config.hpp" extern Config conf; void Renderer::setCamera(Camera *cam) { this->camera = cam; }; void Renderer::addLight(Light *light) { this->lights.push_back(light); }; void Renderer::setVolume(Volume *vol) { this->volume = vol; }; void Renderer::setClassifier(Classifier *classifier...
3,049
1,031
/* * 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 ...
3,482
1,065
#include <sstream> #include <fstream> #include <iostream> #include <vector> #include <string> #include <algorithm> #define PIXELS_WIDE 25 #define PIXELS_TALL 6 #define ASCII_ZERO 48 template <class T> std::vector<T> extract_subvector(std::vector<T> v, int begin_index, int end_index) { auto begin = v.begin() + beg...
4,354
1,511
/* * (C) Copyright 1996- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an interg...
3,534
1,391
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/meta_graph.proto #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "tensorflow/core/protobuf/meta_graph.pb.h" #include <algorithm> #include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/port...
294,519
100,270
// // FILE NAME: CIDLib_SharedMemory.cpp // // AUTHOR: Dean Roddey // // CREATED: 02/28/1997 // // COPYRIGHT: Charmed Quark Systems, Ltd @ 2019 // // This software is copyrighted by 'Charmed Quark Systems, Ltd' and // the author (Dean Roddey.) It is licensed under the MIT Open Source // license: // // https://opens...
17,404
5,589
#include <TexturePCH.h> #include <Texture/Image/ImageUtils.h> #include <Foundation/SimdMath/SimdVec4f.h> #include <Texture/Image/ImageConversion.h> #include <Texture/Image/ImageEnums.h> #include <Texture/Image/ImageFilter.h> template <typename TYPE> static void SetDiff( const ezImageView& ImageA, const ...
55,364
20,451
#include "pessoa.h" bool Pessoa::setCodigo(string c){ codigo = c; return 1; } bool Pessoa::setNome(string n){ if(n.size() > 5){ nome = n; return 1; }else{ cout << endl << "Nome muito curto! Escolha um nome com 5 ou mais letras. Tente novamente: "; nome = ...
1,081
458
#ifndef DEVICE_COMMAND_HPP_ #define DEVICE_COMMAND_HPP_ namespace grl { namespace concept { template<typename Device> class DeviceCommand { #ifndef DOXYGEN_NO_CONCEPT_MEMBERS #endif }; template<typename Device> class ConstDeviceCommand { #ifndef DOXYGEN_NO_CONCEPT_MEMBERS #endif }; }} #endif
309
126
/* * Copyright © 2010 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 deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, pub...
3,589
1,195
// // Created by robin on 06.10.21. // #include <sys/stat.h> #include "PosStreamer.h" Sample PosStreamer::get_next() { if (ptr >= buffer_size) { ptr = 0; //if we reached the end of our file //we have to wrap around size_t read_elements = 0; do { if (stream.peek...
1,649
534
/* * Copyright (c) 2021, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #include <LibTest/TestCase.h> #include <AK/GenericLexer.h> #include <AK/StringView.h> TEST_CASE(should_constexpr_construct_from_empty_string_view) { constexpr GenericLexer sut(StringView {}); static_assert(su...
5,694
2,275
#include "Texture.h" #include "Base/Engine.h" #include "Graphics/Renderer.h" #include <D3DX11tex.h> namespace S2DE::Render { Texture::Texture() { m_type = "Texture"; m_ex = { ".dds", ".png", ".tga", ".jpg" }; } Texture::~Texture() { } void Texture::Cleanup() { Core::Release(m_resource); Core::Rele...
1,796
783
//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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...
6,499
1,979
// Copyright 2021 Your Name <your_email> #include <stdexcept> #include <gtest/gtest.h> #include <shared_ptr.hpp> TEST(Example, EmptyTest) { EXPECT_THROW(example(), std::runtime_error); }
195
80
#include "IO.h" void outb(uint16_t port, uint8_t value){ asm volatile ("outb %0, %1" : : "a"(value), "Nd"(port)); } uint8_t inb(uint16_t port){ uint8_t returnVal; asm volatile ("inb %1, %0" : "=a"(returnVal) : "Nd"(port)); return returnVal; } void outw(uint16_t portNumber, uint16_t data) { ...
866
414
// Copyright 2018 The gVisor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
9,281
3,511
// // FishQuizPopup.cpp // PehlaSchool // // Created by YongSoo Hong on 9/3/18. // // #include <Menu/CoopScene.hpp> #include "FishQuizPopup.hpp" #include "ui/CocosGUI.h" #include "Managers/UserManager.hpp" #include "Managers/LanguageManager.hpp" #include "Managers/GameSoundManager.h" #include "Utils/TodoUtil.h" ...
19,971
6,695
#include <pbbam/FastqReader.h> #include <cstddef> #include <cstdint> #include <gtest/gtest.h> #include <pbbam/BamFileMerger.h> #include <pbbam/EntireFileQuery.h> #include <pbbam/FastqSequence.h> #include <pbbam/FastqWriter.h> #include "FastxTests.h" #include "PbbamTestData.h" using namespace PacBio; using namespac...
6,152
3,214
/* ** ** $Filename: PageScaling.cpp $ ** $Release: Dortmund 2004 $ ** $Revision$ ** $Date$ ** $Author$ ** $Developer: Steffen A. Mork $ ** ** Blizzard III - Scaling properties ** ** (C) Copyright 2004 Steffen A. Mork ** All Rights Reserved ** ** */ /****************************************************************...
2,643
1,045
#include <bits/stdc++.h> using namespace std; class Solution { public: int findDuplicate(vector<int>& nums) { vector<bool> values(nums.size(), false); for (int i : nums) if (not values[i]) values[i] = true; else return i; return -1; } };
283
103
/* Copyright © 2017 Apple Inc. All rights reserved. * * Use of this source code is governed by a BSD-3-clause license that can * be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause */ #include <unity/toolkits/ml_data_2/metadata.hpp> #include <unity/lib/variant_deep_serialize.hpp> na...
9,485
3,160
/** * Copyright (C) 2016, Canonical Ltd. * 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. * * Author: Justin M...
687
240
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2008, Willow Garage, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the followi...
11,077
4,184
#include "spark_precompiled.h" #include "DynamicSliceWrapper.h" using namespace spark; using namespace AzFramework; //DynamicSliceWrapper implementation bool DynamicSliceWrapper::IsReady() const { return m_id.IsValid(); } AZ::EntityId DynamicSliceWrapper::GetId() const { return m_id; } AZ::Data::AssetId Dynami...
2,609
898
#include "moviesdelegate.h" #include <QApplication> #include <QPainter> MoviesDelegate::MoviesDelegate(QObject *parent, MovieTypes type) : HoverRowDelegate(parent) { setMovieType(type); } void MoviesDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const { H...
2,480
777
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2017-2019 The WaykiChain Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "coinminttx.h" #include "main.h" bool CCoinMintTx::CheckTx(CTxExecu...
3,187
1,145