text
stringlengths
7
961k
#include <iostream> using namespace std; int main(){ cout<<"Hello GitHub!"<<endl; return 0; }
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h> #include <CGAL/Skin_surface_3.h> #include <CGAL/Polyhedron_3.h> #include <CGAL/mesh_skin_surface_3.h> #include <CGAL/subdivide_skin_surface_mesh_3.h> #include <list> #include <fstream> #include "skin_surface_writer.h" typedef CGAL::Exact_predicates_inexa...
/* * Copyright (c) 2015, 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 <fo...
/** * * @file PgConnection.cc * @author An Tao * * Copyright 2018, An Tao. All rights reserved. * https://github.com/an-tao/drogon * Use of this source code is governed by a MIT license * that can be found in the License file. * * Drogon * */ #include "PgConnection.h" #include "PostgreSQLResultImpl...
/* ---------------------------------------------------------------------------- * GTSAM Copyright 2010, Georgia Tech Research Corporation, * Atlanta, Georgia 30332-0415 * All Rights Reserved * Authors: Frank Dellaert, et al. (see THANKS for the full author list) * See LICENSE for the license information * ----...
// Copyright (C) 2003 Davis E. King (davis@dlib.net) // License: Boost Software License See LICENSE.txt for the full license. #include <string> #include <dlib/string.h> #include <dlib/cmd_line_parser.h> #include "tester.h" #include "cmd_line_parser.h" namespace { class cmd_line_parser_tester : public tes...
// 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...
// 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 "chrome/browser/printing/print_view_manager_base.h" #include <memory> #include "base/bind.h" #include "components/prefs/pref_service.h" #includ...
/* ** Copyright 1999-2008 Ethan Galstad ** Copyright 2011-2013,2015-2020 Centreon ** ** This file is part of Centreon Engine. ** ** Centreon Engine is free software: you can redistribute it and/or ** modify it under the terms of the GNU General Public License version 2 ** as published by the Free Software Fou...
#include "tag-type.h" #include <QMap> TagType::TagType() : TagType("unknown") {} TagType::TagType(QString name) : m_name(name) {} QString TagType::name() const { return m_name; } int TagType::number() const { static QMap<QString, int> shortTypes { { "general", 0 }, { "artist", 1 }, //{ "general", 2 }, ...
#include <iostream> #include "SniFix.hpp" void usage(char **av) { int i; i = 0; while (av[i] != '\0') { std::string tmp(av[i]); if (tmp == "-h") { std::cout << av[0] << " [-src-ip] <src_ip> " << " [-dst-ip] <dst_ip> [-src-mac] <src_mac> [-dst-mac] <dst_mac> " << " [-proto] <proto> [-port] <por...
#pragma once #include <Eigen/Dense> using Eigen::MatrixXd; using Eigen::Ref; using Eigen::RowVectorXd; class Scaler { public: MatrixXd fit_transform(const Ref<const MatrixXd> input); MatrixXd transform(const Ref<const MatrixXd> input) const; private: RowVectorXd std; RowVectorXd mean; };
/* Copyright 2018 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 law or agreed to in ...
/** * Copyright 2019 Ashar <ashar786khan@gmail.com> * * 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...
#include "platform.h" #include <stdio.h> #include <stdarg.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <assert.h> #include "rans64.h" // This is just the sample program. All the meat is in rans_byte.h. static void panic(const char *fmt, ...) { va_list arg; va_start(arg, fmt); ...
#include "MiniginPCH.h" #include "Timer.h" void dae::Timer::Start() { m_LastTime = std::chrono::high_resolution_clock::now(); } void dae::Timer::Update() { std::chrono::steady_clock::time_point currentTime = std::chrono::high_resolution_clock::now(); m_DeltaTime = std::chrono::duration_cast<std::chrono::duration<d...
#include <iostream> #include <set> #include <stack> #include <queue> #include <vector> #include <map> #include <unordered_map> #include <unordered_set> #include <algorithm> using namespace std; bool Find(unordered_map<string, unordered_map<string, double>> &table, vector<string> &query, double &value, unordered_set<str...
// Copyright (c) 2017-2018 WEYCOIN developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include "config/weycoin-config.h" #endif #include <cstring> // OSX 10.6 is missing strnlen at runtime, bu...
/* * Copyright (C) 2015 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...
// Distributed under the MIT License. // See LICENSE.txt for details. #include "Framework/TestingFramework.hpp" #include <cmath> #include <cstddef> #include <vector> #include "Framework/TestHelpers.hpp" #include "NumericalAlgorithms/Integration/GslQuadAdaptive.hpp" namespace { /// [integrated_function] double gauss...
/************************************************************** * * 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 y...
/* Copyright (c) 2000, 2015, Oracle and/or its affiliates. Copyright (c) 2009, 2015, MariaDB 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; version 2 of the License. This program is ...
//============ Copyright (c) Valve Corporation, All rights reserved. ============ #include "ohmd_config.h" // which hmds and trackers to use #include <openvr_driver.h> #include "driverlog.h" #include <vector> #include <thread> #include <chrono> #include <cstring> #if defined( _WINDOWS ) #include <windows.h> #endif ...
// Concord // // Copyright (c) 2019 VMware, Inc. All Rights Reserved. // // This product is licensed to you under the Apache 2.0 license (the "License"). // You may not use this product except in compliance with the Apache 2.0 // License. // // This product may include a number of subcomponents with separate copyright ...
/* * Copyright (c) 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 contribut...
/////////////////////////////////////////////////////////////////////////////// // // // DxilValidation.cpp // // Copyright (C) Microsoft Corporation. All rights reserved. // ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE129_connect_socket_73a.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE129.label.xml Template File: sources-sinks-73a.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: connect_s...
// 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...
/****************************************************************************** * Copyright (c) 2013-2014, AllSeen Alliance. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyrigh...
#ifndef _STOPWATCH_HPP_ #define _STOPWATCH_HPP_ #ifdef WIN32 #include <windows.h> #else #include <unistd.h> #include <time.h> #include <sys/times.h> #include <sys/time.h> #endif /** * \brief Implementation of high precision wall-time stopwatch based on system timers. */ class Stopwatch { private: typedef un...
// Copyright (c) 2016 Hartmut Kaiser // Copyright (c) 2016 Thomas Heller // // 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) #pragma once #include <hpx/config.hpp> #if defi...
/**************************************************************************** * Copyright (C) from 2009 to Present EPAM Systems. * * This file is part of Indigo toolkit. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ma...
#include <stdio.h> #include <vector> #include <iostream> #include <unordered_map> #include <math.h> using namespace std; long long int path[300001]; class Node { public: int idx; long long int weight; long long int cost; Node* parent; vector<Node*> neighbors; void visit(Node* node_above) ...
// Tencent is pleased to support the open source community by making Mars available. // Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. // Licensed under the MIT License (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the Licens...
#include "utility.h" #ifdef WIN32 #include <windows.h> // <windows.h> uses macros to #define a ton of symbols, two of which (DELETE and GetMessage) // interfere with our code. DELETE shows up in the base.pb.h header generated from // api/envoy/api/core/base.proto. Since it's a generated header, we can't #undef DELETE ...
// Hardware interface for the CM730 board // File: CM730.cpp // Authors: Philipp Allgeuer <pallgeuer@ais.uni-bonn.de> // Sebastian Schueller <schuell1@cs.uni-bonn.de> // Comment: This file is suitable for CM730 firmware versions of 0x81 and above (NimbRo-OP specific). // Includes - Local #include <opencr/C...
#ifndef POOLARRAYS_H #define POOLARRAYS_H #include "Defs.hpp" #include "Color.hpp" #include "GodotGlobal.hpp" #include "String.hpp" #include "Vector2.hpp" #include "Vector3.hpp" #include <gdnative/pool_arrays.h> namespace godot { class Array; class PoolByteArray { godot_pool_byte_array _godot_array; friend cla...
// 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...
#pragma once #include "opencv2/core/version.hpp" #if CV_MAJOR_VERSION >= 2 && CV_MAJOR_VERSION <= 3 #include <opencv2/imgproc/types_c.h> #include "MEDefs.hpp" #include "MEImage.hpp" namespace bgslibrary { namespace algorithms { namespace lbp_mrf { class CvBGStatModel; //struct CvPoint2D32f; ...
/**************************************************************************************************************************************************** * Copyright 2018 NXP * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the fo...
#include "core/node.h" #include <functional> #include <glog/logging.h> Node::Node() : CudaHelper() { } Node::Node(deepflow::NodeParam *param) : CudaHelper() { _param = param; _name = param->name(); _scope = param->scope(); } void Node::createIO() { for (int i = 0; i < minNumInputs(); ++i) _inputs.push_back...
/* * 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...
#include "Payload.h" #include "Colours.h" Payload::Payload(SpaceCraft *s, VacuumMerlinEngine * v) { this->vacmerlinengine = v; this->spacecraft = s; } Payload::~Payload(){ delete this->vacmerlinengine; } VacuumMerlinEngine * Payload::getVacuumMerlinEngine() { return this->vacmerlinengine; } ...
/* * Copyright (C) 2019 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...
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2013-2018 Regents of the University of California. * * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions). * * ndn-cxx library is free software: you can redistribute it and/or modify it under the ...
// 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 "services/network/cors/preflight_controller.h" #include <algorithm> #include <vector> #include "base/bind.h" #include "base/metrics/histogram_m...
/**** *@PoloShen *Title: */ //#pragma comment(linker, "/STACK:1024000000,1024000000") #include <iostream> #include <iomanip> #include <cstdio> #include <string> #include <cstring> #include <cmath> using namespace std; #include <vector> #include <list> #include <stack> #include <deque> #include <queue> #define DBG ...
// 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 "content/browser/web_contents/web_contents_android.h" #include <stdint.h> #include "base/android/jni_android.h" #include "base/android/jni_arra...
/* Copyright Institute of Sound and Vibration Research - All rights reserved */ #ifndef VISR_EFL_BASIC_MATRIX_HPP_INCLUDED #define VISR_EFL_BASIC_MATRIX_HPP_INCLUDED // avoid annoying warning about unsafe STL functions. #ifdef _MSC_VER #pragma warning(disable: 4996) #endif #include "aligned_array.hpp" #include "ali...
/// Copyright (c) 2020 xiw /// /// MIT License /// \author Wang Xi #include <minidfs/dfs_chunkserver.hpp> #include "logging/logger.h" namespace minidfs { DFSChunkserver::DFSChunkserver(const string& masterIP, int masterPort, const string& serverIP, int serverPort, ...
//===--- Enum.cpp - Enum tests --------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
/*******************************************************************\ Module: Symbolic Execution Author: Daniel Kroening, kroening@kroening.com \*******************************************************************/ /// \file /// Symbolic Execution #include "goto_symex.h" #include <util/exception_utils.h> void got...
#ifndef POTHOS_BIND_BIND_HPP_INCLUDED #define POTHOS_BIND_BIND_HPP_INCLUDED // MS compatible compilers support #pragma once #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif // // bind.hpp - binds function objects to arguments // // Copyright (c) 2001-2004 Peter Dimov and Multi Media Ltd. // Copyri...
#include <iostream> #include <opencv2/core.hpp> #include <opencv2/highgui.hpp> using namespace std; void createMatrix1() { // create matrix int nrows = 480, ncols = 640; cv::Mat m1_8u; m1_8u.create(nrows, ncols, CV_8UC1); // two-channel matrix with 8bit unsigned elements m1_8u.setTo(cv::Scalar(25...
#include <Discregrid/All> #include <Eigen/Dense> #include "resource_path.hpp" #include <string> #include <iostream> #include <array> using namespace Eigen; std::istream& operator>>(std::istream& is, std::array<unsigned int, 3>& data) { is >> data[0] >> data[1] >> data[2]; return is; } std::istream& ope...
// // Mapper9.hpp // NESEmu // // Created by Jonathan Baliko on 18/04/20. // Copyright © 2020 Jonathan Baliko. All rights reserved. // #ifndef NESEmu_Cartridge_Mapper9_hpp #define NESEmu_Cartridge_Mapper9_hpp #include <vector> #include "Interface.hpp" #include "Common.hpp" // See https://wiki.nesdev.com/w/index....
#include<iostream> int main() { return 0; }
// // Copyright (C) 2013 OpenSim Ltd. // // This program 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 2 // of the License, or (at your option) any later version. // // This program i...
#ifndef CATALOG_C #define CATALOG_C #include "MyDB_Catalog.h" #include <fstream> #include <iostream> #include <sstream> #include <string> #include "MyDB_AttType.h" #include "MyDB_AttVal.h" #include "MyDB_Catalog.h" #include "MyDB_Record.h" #include "MyDB_Schema.h" #include "MyDB_Table.h" void MyDB_Catalog :: putStri...
#ifndef FACEMASKDETECTOR_H_ #define FACEMASKDETECTOR_H_ #include <vector> #include <string> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include "caffe/caffe.hpp" using namespace std; using namespace cv; using namespace caffe; class FaceMaskDetector ...
/* -------------------------------------------------------------------------- * * OpenSim: toyLeg_example.cpp * * -------------------------------------------------------------------------- * * The OpenSim API is a toolkit for musculoskeletal modeling and simulation. * ...
/** * 192 / 192 test cases passed. * Runtime: 12 ms * Memory Usage: 11.8 MB */ class Solution { public: int findMin(vector<int>& nums) { int l = 0, r = nums.size() - 1; while (l < r) { int mid = l + r >> 1; if (nums[mid] > nums[r]) l = mid + 1; else if (nums[...
#include "RE/A/ActorEquipManager.h" namespace RE { ActorEquipManager* ActorEquipManager::GetSingleton() { REL::Relocation<ActorEquipManager**> singleton{ Offset::ActorEquipManager::Singleton }; return *singleton; } void ActorEquipManager::EquipObject(Actor* a_actor, TESBoundObject* a_object, ExtraDataList* a_...
/*============================================================================== Copyright (c) 2005-2010 Joel de Guzman Copyright (c) 2010 Thomas Heller 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) ===...
//===- DebugInfoMetadata.cpp - Implement debug info metadata --------------===// // // 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 // //===---------------------------...
// 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 "mojo/system/raw_channel.h" #include <windows.h> #include "base/basictypes.h" #include "base/bind.h" #include "base/compiler_specific.h" #inclu...
// client.cpp /** * Copyright (C) 2009 10gen Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will b...
/* Copyright (c) 2020 Themaister * * 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, publish, *...
/* * 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. * */ #inc...
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ /* Rubber Band Library An audio time-stretching and pitch-shifting library. Copyright 2007-2015 Particular Programs Ltd. This program is free software; you can redistribute it and/or modify it under the terms of the GNU...
/*Exercise 3 - Repeatition Convert the C program given below which calculates the Factorial of a number that you input from the keyboard to a C++ program. Please Note that the input command in C++ is std::cin. This is a representation of the Keyboard.*/ #include <iostream> using namespace std; int main() { int ...
#include <Arduino.h> #include <DNSServer.h> #include <WiFiUdp.h> #include <WiFiServer.h> #include <WiFiClientSecure.h> #include <WiFiClient.h> #include <ESP8266WiFiType.h> #include <ESP8266WiFiSTA.h> #include <ESP8266WiFiScan.h> #include <ESP8266WiFiMulti.h> #include <ESP8266WiFiGeneric.h> #include <ESP8266WiFiAP.h> #i...
/***************************************************/ /*! \class Rhodey \brief STK Fender Rhodes-like electric piano FM synthesis instrument. This class implements two simple FM Pairs summed together, also referred to as algorithm 5 of the TX81Z. \code Algorithm 5 is : 4->3--\ ...
// Copyright 2017 the V8 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. #include <limits.h> #include <stddef.h> #include <stdint.h> #include <functional> #include <string> #include "include/v8-exception.h" #include "includ...
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-2009 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You c...
#include "pch_script.h" #include "GameTask.h" #include "ui/xrUIXmlParser.h" #include "encyclopedia_article.h" #include "map_location.h" #include "map_manager.h" #include "level.h" #include "actor.h" #include "script_engine.h" #include "script_callback_ex.h" #include "script_game_object.h" #include "ai_space.h" #includ...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // /////////////////////////////////////////////////////////////////////////////////////////////////// #include "pooling_inst.h" #include "primitive_inst.h" #include "activation_inst.h" #include "concatenation_inst.h" #include "crop_i...
/** * @file /include/ecl/containers/initialiser.hpp * * @brief Comma initialiser for container types. * * @date May 2009 **/ /***************************************************************************** ** Ifdefs *****************************************************************************/ #ifndef ECL_CONTAINE...
/* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include "optimizer/OptGroup.h" #include <limits> #include "context/QueryContext.h" #include "optimizer/OptContext.h" ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <validation.h> #include <arith_uint256.h> #include <chain.h> #include <...
/* Copyright 2007-2018 CyberTech Labs 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 law or ...
#pragma once #include "Utility.hpp" #include "Texture.hpp" #include <vector> #include <optional> namespace Cutlass { struct RenderPassInfo { RenderPassInfo() { //do nothing(dangerous) }; RenderPassInfo ( const HTexture& colorTarget, ...
//////////////////////////////////////////////////////////////////////// // File: KERBEROS.CPP // // // //////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "resource.h" #include <string.h> #include <QCUtils.h> //#include "guiutils.h" //#include "fileutil.h" #include ...
// Copyright Louis Dionne 2013-2017 // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) #include <boost/hana/assert.hpp> #include <boost/hana/equal.hpp> #include <boost/hana/experimental/view.hpp> #include <boost/hana/functiona...
/* ---------------------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories Steve Plimpton, sjplimp@sandia.gov Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04...
#include <Processors/Formats/Impl/ParallelFormattingOutputFormat.h> #include <Common/setThreadName.h> namespace DB { void ParallelFormattingOutputFormat::finalize() { need_flush = true; IOutputFormat::finalized = true; /// Don't throw any background_exception here, because we want to f...
/** * @file <argos3/core/utility/plugins/dynamic_loading.cpp> * * @author Carlo Pinciroli - <ilpincy@gmail.com> */ #include "dynamic_loading.h" #include <dirent.h> #include <cerrno> namespace argos { /****************************************/ /****************************************/ CDynamicLoading:...
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); long long w, h, x, y; cin >> w >> h >> x >> y; long double s = w * h / 2.0; int t = (x * 2 == w && y * 2 == h) ? 1 : 0; cout << setprecision(13) << s << " " << t << '\n'; return 0; }
#include "Actor.h" #include "Transform2D.h" #include <string.h> #include "Collider.h" #include "Component.h" Actor::Actor() { m_transform = new Transform2D(this); } Actor::~Actor() { ///Deletes all components for (int i = 0; i < m_componentCount; i++) delete m_components[i]; delete m_transfor...
#include "AFS2.h" #include <iostream> #include <iomanip> #include <sstream> #include <stdint.h> namespace dscstools { namespace afs2 { constexpr auto AFS2_MAGIC_VALUE = '2SFA'; struct AFS2Header { uint32_t magic; uint32_t flags; uint32_t numFiles; int32_t blockSize; }; void extractAFS2(const bo...
/** * Copyright 2022 Huawei Technologies 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 law...
/* * Copyright (C) 2019-2021 HERE Europe 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...
// 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: BloomPrePassBackgroun...
#include "pch.h" #include "CommandAllocator.h" #include "Util.h" using namespace fb; void CommandAllocator::Reset() { ThrowIfFailed(CommandAllocator->Reset()); }
// Copyright (c) 2008, 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 conditi...
/* * File: FileDevice.cpp * Author: chlorek * * Created on October 10, 2016, 8:04 PM */ #include "FileDevice.hpp" #include <sys/stat.h> #include <sys/fcntl.h> #include <sys/unistd.h> namespace clkb { FileDevice::FileDevice(DeviceInfo di, int flags) { dev = open((di.devPath + "/cmd").c_str(), fla...
/* * h t t p u t i l. c p p * * Author: Greg Friedman * * Purpose: Utility functions used to implement http mail. * * Copyright (C) Microsoft Corp. 1998. */ #include "pch.hxx" #include "httputil.h" #include "xpcomm.h" #include "iso8601.h" #include "storutil.h" #include "flagconv.h" #include "demand.h" ...
#include <CEngine.h> const std::string DIRECTIONAL_LIGHT_NAME = "directional"; const std::string POINT_LIGHT_NAME = "point"; const std::string SPOT_LIGHT_NAME = "spot"; class GuiLightCastersLayer : public engine::CImGuiLayer { public : GuiLightCastersLayer( const std::string& name ) : engine::CImGuiLaye...
// Copyright Carl Philipp Reh 2006 - 2019. // 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) #include <sge/opengl/egl/attribute_vector.hpp> #include <sge/opengl/egl/visual/choose_config.hpp> #...
#include "TestExecuteFactory.h" // Concept #include "../Concept/Concept_1_HowToUse.h" #include "../Concept/Concept_2_Example.h" #include "../Concept/Concept_3_CustomConcept.h" // Module import Module_1_HowToExport; import Module_2_Partition; import Module_3_SubModule; import Module_4_SubModuleImpl; // Ranges #includ...