text
stringlengths
5
1.04M
// ObjectWindows Library // // 1998 Yura Bidus // // #include <owlext/pch.h> #pragma hdrstop #ifdef _DLL // The following symbol used to force inclusion of this module for _OCFDLL #if defined(_M_IX86) || defined(_MAC) extern "C" { int _afxForceSTDAFX; } #else extern "C" { int __afxForceSTDAFX; } #endif ...
#pragma once #include "drape/pointers.hpp" #include "drape/texture.hpp" #include "drape/glyph_manager.hpp" #include "drape/dynamic_texture.hpp" #include "std/atomic.hpp" #include "std/condition_variable.hpp" #include "std/list.hpp" #include "std/map.hpp" #include "std/vector.hpp" #include "std/string.hpp" #include "s...
#include "propertiesview.h" #ifdef QT_GUI_LIB #include <QSortFilterProxyModel> #include <QHeaderView> #include <QProcess> #include <QAction> #include <QMouseEvent> #include <SharedModule/External/utils.h> #include "PropertiesModule/propertiessystem.h" #include "propertiesmodel.h" #include "SharedGuiModule/decl.h" #...
/********************************************************************** * Copyright (c) 2008-2014, Alliance for Sustainable Energy. * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as publ...
/*========================================================================= Program: Visualization Toolkit Module: TestOSPRayAMRVolumeRenderer.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. Th...
/* * MRustC - Rust Compiler * - By John Hodge (Mutabah/thePowersGang) * * hir_conv/expand_type.cpp * - Expand `type` aliases in HIR */ #include "main_bindings.hpp" #include <hir/hir.hpp> #include <hir/expr.hpp> #include <hir/visitor.hpp> #include <hir_typeck/common.hpp> // monomorphise_type_with ::HIR::TypeRe...
#include <cstdio> #include <algorithm> #include <vector> using namespace std; int countInversion (const vector <int> &A, int N) { int Count = 0; for (int i = 1; i < N; i++) { for (int j = i + 1; j <= N; j++) { if (A[i] > A[j]) Count++; } } ret...
/**********************************************************\ | | | hprose | | | | Official WebSite: http://www.hprose.com/ | | ...
#include "cppch.h" #include "OpenGLShader.h" #include <fstream> #include <glad\glad.h> #include <glm\gtc\type_ptr.hpp> namespace Cyprium { static GLenum ShaderTypeFromString(const std::string& type) { if (type == "vertex") return GL_VERTEX_SHADER; else if (type == "fragment" || type == "pixel") return GL_FRAGM...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "db.h" #include "net.h" #include "init.h" #include "strlcpy.h" #include "...
/*************************************************************************** * * Project _____ __ ____ _ _ * ( _ ) /__\ (_ _)_| |_ _| |_ * )(_)( /(__)\ )( (_ _)(_ _) * (_____)(__)(__)(__) |_| |_| * * * Copyright 2018-present, Leoni...
/****************************************************************************** * * Project: OpenGIS Simple Features Reference Implementation * Purpose: Implements OGRGeomediaDataSource class. * Author: Even Rouault, <even dot rouault at mines dash paris dot org> * ********************************************...
/* MANGO Multimedia Development Platform Copyright (C) 2012-2021 Twilight Finland 3D Oy Ltd. All rights reserved. */ #pragma once #include <cmath> #include <algorithm> #include <type_traits> #include <mango/core/configure.hpp> #include <mango/core/half.hpp> #include <mango/core/bits.hpp> // -----...
/* * Copyright 2012 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing ...
/* * Copyright (c) 2021 ARM Limited * 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 hardware implementation of the func...
// Copyright (c) 2011-2019 The Luascoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <util/strencodings.h> #include <test/util/setup_common.h> #include <boost/test/unit_test.hpp> BOOST_FIXTURE_TEST_...
#include <iostream> #include <iomanip> #include <sstream> #include <cstdlib> #include <cstdio> #include <vector> #include <queue> #include <map> #include <set> #include <stack> #include <algorithm> //max... #include <utility> //pair #include <complex> #include <climits> //int, ll... #include <limits> //double... #incl...
#include "common.h" BOOL My_OpenEventLogA() { LPCSTR lpUNCServerName=NULL; LPCSTR lpSourceName=NULL; HANDLE returnVal_Real = NULL; HANDLE returnVal_Intercepted = NULL; DWORD error_Real = 0; DWORD error_Intercepted = 0; __try{ disableInterception(); returnVal_Real = OpenEventLogA (lpUNCServerName,lpSourceNam...
/* SAWD Small ASCII Walk-around Demo (C) Copyright 2008, CCPS Solutions 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. ...
// copyright_check implementation ------------------------------------------------// // Copyright Beman Dawes 2002. // SPDX-License-Identifier: BSL-1.0 // 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) #in...
#ifndef __GLIPSTUDIO_RESOURCETAB__ #define __GLIPSTUDIO_RESOURCETAB__ #include "GLIPLib.hpp" #include "dataModules.hpp" #include "imagesCollection.hpp" #include <QString> #include <QMenu> #include <QAction> #include <QHBoxLayout> #include <QPushButton> #include <QProgressBar> #include <QStringList> #includ...
/* Copyright 2017 The TensorFlow 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 applicable law or a...
/*============================================================================= Copyright (c) 2001-2011 Joel de Guzman 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) This is an auto-generated file...
#ifdef WIN32 #pragma execution_character_set("utf-8") #endif #include "mytextbrowser.h" #include <QMenu> MyTextBrowser::MyTextBrowser(QWidget *parent): QTextBrowser(parent) { initMenu(); initConnect(); } void MyTextBrowser::slotClearText() { this->clear(); } void MyTextBrowser::contextMenuEvent (QCo...
#include <QtWidgets/QApplication> #include <base/logger/logger.h> #include <module_db/database.h> #include <base/encoder.h> #include "app_ctrl.h" #include <string> #include <stdint.h> #include <module_file/file/file.h> using namespace std; using namespace file; int app(int argc, char* argv[]) { QApplication a(argc, ar...
/** * Copyright (C) 2016-2019 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
//3541 #include <stdio.h> int main(){ char n; while(scanf("%c",&n),n!='\n'); while(scanf("%c",&n)!=EOF){ if(n>='a'&&n<='z'){ n -= 32; }else if(n>='A'&&n<='Z'){ n += 32; } printf("%c",n); } }
/** * This file is part of the MultiDimSparseArray library * * @license BSD-3 * @author Abhilekh Agarwal */ #pragma once #include <array> #include <iostream> #include "exception.h" template<unsigned N> class mdrange { private: std::array<int, N> last; std::array<int, N> first, iter; bool overflo...
/* -*- C++ -*-; c-basic-offset: 4; indent-tabs-mode: nil */ /* * Implementation for DefaultStoreClient class. * * Copyright (c) 2009 Webroot Software, 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 ...
// This file is licensed under the Elastic License 2.0. Copyright 2021-present, StarRocks Limited. #include "exec/vectorized/tablet_scanner.h" #include <memory> #include <utility> #include "column/column_helper.h" #include "column/column_pool.h" #include "column/field.h" #include "column/fixed_length_column.h" #incl...
/*************************************************************************/ /* csg_gizmos.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
#include "batchrenderer2d.h" BatchRenderer2D::BatchRenderer2D() { init(); } BatchRenderer2D::~BatchRenderer2D() { delete m_IBO; glDeleteBuffers(1, &m_VBO); } void BatchRenderer2D::init() { glGenVertexArrays(1, &m_VAO); glBindVertexArray(m_VAO); glGenBuffers(1, &m_VBO); glBindBuffer(GL_ARRAY_BUFFER, m_VBO); ...
#include <fileobserver.hpp> #include <unistd.h> #include <getopt.h> #include <SDL.h> #include <SDL_image.h> #include <cstdio> #include <cstdlib> #include <vector> #include <string> #include <memory> //#include <regex> #include <sstream> #include <utility> //example usage: //spriteview -w 16 -h 16 -s 2 -f 16 -i 0:16 -t...
#include <eve/module/math.hpp> #include <eve/wide.hpp> #include <iostream> #include <iomanip> using wide_ft = eve::wide<float>; int main() { std::cout << "---- simd" << std::setprecision(9) << std::endl << "-> inv_egamma(as<wide_ft>()) = " << eve::inv_egamma(eve::as<wide_ft>()) ...
// codeforces/e107/C/main.cpp // author: @___Johniel // github: https://github.com/johniel/ #include <bits/stdc++.h> #define each(i, c) for (auto& i : c) #define unless(cond) if (!(cond)) using namespace std; template<typename P, typename Q> ostream& operator << (ostream& os, pair<P, Q> p) { os << "(" << p.first <<...
//////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2011 Bryce Adelstein-Lelbach // Copyright (c) 2007-2017 Hartmut Kaiser // // SPDX-License-Identifier: BSL-1.0 // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or ...
/**************************************************************************************** * @author: JU_AAA: aniks2645, kzvd4729, prdx9_abir created: Sep/18/2017 23:01 * solution_verdict: Time limit exceeded on test 15 language: GNU C++14 * run...
/* * Copyright (c) 2011 Derek Buitenhuis * * This file is part of FFmpeg. * * FFmpeg 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; * version 2 of the License. * * FFmpeg is distributed in the hope ...
/*============================================================================ The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center (DKFZ) All rights reserved. Use of this source code is governed by a 3-clause BSD license that can be found in the LICENSE file. =================...
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- // GambleKit Copyright (C) 2014 Ivan Donev // // This library i...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "askpassphrasedialog.h"...
// AirMap Platform SDK // Copyright © 2018 AirMap, 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 requir...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ShrubberyCreationForm.hpp :+: :+: :+: ...
#pragma once #ifndef GLC_ERROR_HPP #define GLC_ERROR_HPP #include <stdexcept> #include <string> #include <vector> namespace glc { class MalformedShaderName : public std::runtime_error { public: explicit MalformedShaderName(const std::string& path); }; class MalformedShaderText : public s...
#include <qt/qvalidatedspinbox.h> #include <qt/guiconstants.h> #include <qt/skinize.h> #include <QDialog> QValidatedSpinBox::QValidatedSpinBox(QDialog *parent) : QSpinBox(parent), valid(true) { connect(this, SIGNAL(textChanged(QString)), this, SLOT(markValid())); } void QValidatedSpinBox::setValid(bool v...
/* Copyright (c) 2016 Xavier Leclercq 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, ...
// sol3 // The MIT License (MIT) // Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // 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 withou...
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/browser/web_exposed_isolation_info.h" #include "base/test/gtest_util.h" #include "testing/gtest/include/gtest/gtest.h" #include "url/or...
#include <ctime> #include <cstdio> #include <cstdarg> #include <cstdint> #include <memory> #include "Chunk.h" #include "Value.h" #include "Object.h" #include "VirtualMachine.h" namespace lox { namespace vm { static val::Value ClockNative( [[maybe_unused]]int arg_count, [[maybe_unused]]val::Value* args) { ...
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
// // Created by xiaofeng on 2019/11/29. // //This part of the program is used to detect missing constructor errors, //which include not adding constructors, or constructor name spelling errors. //source file /* author = __xiaofeng__ */ //The procedure for detecting missing constructors is as follows: //step 1:Find...
/* clang-format off */ /******************************************************************************* * Size: 32 px * Bpp: 3 * Opts: --no-kerning --bpp 3 --size 32 --font src/font/roboto/RobotoCondensed-Regular.ttf -r 0x20-0x7E,0xA0,0xA3,0xB0,0xB1,0xB2,0xB3,0xB5,0xC1,0xC2,0x00C4,0xC9,0x00CB,0xCD,0xCE,0xD3,0x00D4,0...
/* ************************************************************************ * Copyright 2016-2020 Advanced Micro Devices, Inc. * ************************************************************************ */ #include "logging.h" #include "rocblas_her2k.hpp" #include "utility.h" namespace { template <typename> c...
#include "MephAppSingleton.h" class MephAppSingleton * MephAppSingleton::mephappsingleton=0; MephAppSingleton::MephAppSingleton() { } MephAppSingleton::MephAppSingleton(const MephAppSingleton &right) { } MephAppSingleton::~MephAppSingleton() { } const MephAppSingleton & MephAppSingleton::operat...
// 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 "ash/wm/partial_screenshot_event_filter.h" #include "ash/wm/partial_screenshot_view.h" #include "ui/aura/window.h" #include "ui/aura/window_...
// Copyright (c) 2019 The PIVX developers // Copyright (c) 2020 The CLEARCOIN developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "qt/clr/optionbutton.h" #include "qt/clr/forms/ui_optionbutton.h" #include "qt/clr...
// Copyright (c) Facebook, Inc. and its affiliates. // All rights reserved. // // This source code is licensed under the license found in the // LICENSE file in the root directory of this source tree. #include <string> #include <cassert> #include <cstdlib> #include <iostream> #include <sstream> #include <set> #include...
// Copyright (c) 2011 Google Inc. // 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 conditio...
/* * Copyright 2020 MusicScience37 (Kenta Kabashima) * * 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 applica...
/* Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. NVIDIA CORPORATION and its licensors retain all intellectual property and proprietary rights in and to this software, related documentation and any modifications thereto. Any use, reproduction, disclosure or distribution of this software and related docum...
/***************************************************** * PROJECT : ummap-io-v2 * * LICENSE : Apache 2.0 * * COPYRIGHT: 2020-2021 Bull SAS All rights reserved * *****************************************************/ #ifndef UMMAP_FD_DRIVER_HPP #define UMMAP_FD...
#include <vcg/complex/algorithms/create/platonic.h> using namespace vcg; using namespace std; class MyFace; class MyVertex; struct MyUsedTypes : public UsedTypes< Use<MyVertex>::AsVertexType, Use<MyFace>::AsFaceType> {}; class MyVertex : public Vertex< MyUsedTypes, vertex::Coord3f, vertex::Normal3f, vertex::...
#include "../vidhrdw/copsnrob.cpp" #include "../machine/copsnrob.cpp" /*************************************************************************** Cops'n Robbers memory map (preliminary) driver by Zsolt Vasvari 0000-00ff RAM 0c00-0fff Video RAM 1200-1fff ROM I/O Read: 1000 Vertical Sync 1002 Bit 0-6 Player 1 Gun...
#ifndef __PARSE_ERROR_HPP__ #define __PARSE_ERROR_HPP__ #include <string> #include <fmt/core.h> class ParseError { public: ParseError (std::string _code, int _error_pos, int _line, int _start_pos) { ErrorPos = _error_pos; Line = _line; LinePos = _error_pos - _start_pos; int _end_pos = _code.find ('\n', ...
#include <iostream> #include "HumanPlayer.h" #include "GameUI.h" #include "Controller.h" //called on program start int main() { Controller control = Controller(); //initialize the controller control.start(); //start the game return 0; }
/**************************************************************************\ * * This file is part of the Coin 3D visualization library. * Copyright (C) by Kongsberg Oil & Gas Technologies. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public ...
/*========================================================================= * * Copyright RTK Consortium * * 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.apa...
// // Copyright © 2017 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // #pragma once #include "LayerWithParameters.hpp" namespace armnn { /// This layer represents a pooling 2d operation. class Pooling2dLayer : public LayerWithParameters<Pooling2dDescriptor> { public: /// Makes a workload for the...
/** * Copyright (c) 2017-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. */ #include "...
class Solution { public: vector<vector<int>> dp; int calculateManhattan(vector<int>& p1, vector<int>& p2) { return abs(p1[0] - p2[0]) + abs(p1[1] - p2[1]); } int makeMove(vector<vector<int>>& workers, int worker_ids, vector<vector<int>>& bikes, int bike_ids) { if (dp[worker_ids][bike_ids...
/* * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * (C) 1999 Antti Koivisto (koivisto@kde.org) * (C) 2000 Stefan Schimanski (1Stein@gmx.de) * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved. * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies...
// Copyright (C) 2014, Pawel Tomulik <ptomulik@meil.pw.edu.pl> // // 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) // yaul/tml/aux_/divides.hpp /** // doc: yaul/tml/aux_/divides.hpp {{{ * \file yaul/tml/aux_/d...
// Copyright 2020 Teratide B.V. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
#include "app/MouseEvents.h" #include "app/Context.h" #include "system/ScriptSystem.h" #include "utils/Log.h" #include "utils/StringBimap.h" #include <SDL_mouse.h> #include <cstdint> #include <utility> namespace { pg::StringBimap<pg::MouseButton> initMap() { pg::StringBimap<pg::MouseButton> bimap{}; ...
/* * Copyright (C) 2011-2020 Intel Corporation. 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 li...
/******************************************************************************* "A Collection of Useful C++ Classes for Digital Signal Processing" By Vinnie Falco Official project location: https://github.com/vinniefalco/DSPFilters See Documentation.cpp for contact information, notes, and bibliography. ----------...
// // Copyright (c) 2012-2020 Kris Jusiak (kris at jusiak dot net) // // 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 BOOST_DI_TYPE_TRAITS_REBIND_TRAITS_HPP #define BOOST_DI_TYPE_TRAITS_REBIND_TRAITS_HPP ...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" #include "extern/beatsaber-hook/shared/utils/byref.hpp" // Including type: System.Enum #...
/* * * Copyright (c) 2021 Project CHIP 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 requir...
// The IYFEngine // // Copyright (C) 2015-2018, Manvydas Šliamka // // 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 must retain the above copyright notice, this list of // condi...
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
// Unit test for the Partition class. // // C.M. Cantalupo 2011 // cmcantalupo@gmail.com #include <iostream> #include <algorithm> #include <assert.h> #include "partition.hpp" using namespace SorterThreadedHelper; int main(int argc, char **argv) { int testSize = 100000; std::vector<double> testVec(testSize); ...
#include "../Headers/FinishBlock.h" #include "../Headers/ModelMatrix.h" #include "../Headers/Player.h" FinishBlock::FinishBlock(glm::vec3 pos, glm::vec3 dim, Player* p) { this->m_pos = pos; this->m_dimension = dim; this->playerPointer = p; this->hitBox.width = m_dimension.x; this->hitBox.height = m_dimension...
/* * Copyright 2017 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* Copyright 2018-2021 Tatsuya Yamasaki. 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...
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chromeos/dbus/init/dbus_thread_manager_base.h" #include "base/check.h" #include "base/command_line.h" #include "base/system/sys_info.h" #includ...
/* * Copyright (c) 2021 Huawei Device 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 applica...
#include "pch.h" #include "graphics.h" #include "png_image.h" #include "texture.h" #include "texture_metadata.h" #include "texture_util.h" ff::texture::texture(const ff::resource_file& resource_file, DXGI_FORMAT new_format, size_t new_mip_count) { auto data = ff::internal::load_texture_data(resource_file, new_form...
#include "parser_pos.cpp" Token token_end_of_line(AstFile *f, Token tok) { u8 const *start = f->tokenizer.start + tok.pos.offset; u8 const *s = start; while (*s && *s != '\n' && s < f->tokenizer.end) { s += 1; } tok.pos.column += cast(i32)(s - start) - 1; return tok; } gbString get_file_line_as_string(TokenPo...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
#include "transport.hpp" #include <assert.h> #include <limits> #include <vector> #include <boost/intrusive/list.hpp> #include <boost/intrusive/slist.hpp> #include "union-find.hpp" template <typename T> class TransportGraph { public: TransportGraph(int sizeSupply, int sizeDemand) : _sizeSuppl...
#include<iostream> #include<cstring> #include<cstdio> using namespace std; int main(){ char str[66]; cin>>str; for(int i=0;i<strlen(str);i++){ printf("%c",str[i]+2); } return 0; }
#pragma once #include "Matrix.hpp" namespace kmaths { template<class T> using Matrix4x2 = Matrix<T, 4, 2>; using Matrix4x2s = Matrix4x2 < int >; // 4 rows - 2 columns - signed integer using Matrix4x2f = Matrix4x2 < float >; // 4 rows - 2 columns - floating point using Matrix4x2d = Matrix4x2 < double ...
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Test that libFuzzer itself does not read out of bounds. #include <assert.h> #include <cstdint> #include <cstring> #include <cstdlib> #include <cstddef> #include <iostream> static volatile int Sink; ex...
#include <vtkImageData.h> #include <vtkInteractorStyleImage.h> #include <vtkTIFFWriter.h> #include <vtkSmartPointer.h> #include <vtkImageCanvasSource2D.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkImageActor.h> #include <vtkImageMapper3D.h> #include <vtkTI...
#include <windows.h> #include <iostream> #include <wchar.h> #define INTERCEPTION_STATIC #include "../interception/library/interception.h" extern "C" { #include "../interception/library/interception.c" } using namespace std; int main() { // 高優先度化 SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS...
#pragma once #include "../../JObject.hpp" class JObject; class JString; namespace android::util { class SparseArray : public JObject { public: // Fields // QJniObject forward template<typename ...Ts> explicit SparseArray(const char *className, const char *sig, Ts...agv) : JObject(className, sig, std::for...
/* * Copyright 2018 Google * * 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 w...
// Copyright (c) 2014, the Scal Project Authors. All rights reserved. // Please see the AUTHORS file for details. Use of this source code is governed // by a BSD license that can be found in the LICENSE file. #define __STDC_FORMAT_MACROS 1 // we want PRIu64 and friends #include <gflags/gflags.h> #include <inttypes...
// Copyright (c) 2005-2014 Code Synthesis Tools CC // // This program was generated by CodeSynthesis XSD, an XML Schema to // C++ data binding compiler. // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as // published by the Fre...