text stringlengths 7 961k |
|---|
/*
* Copyright (C) 2012 Apple 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
#include "../Collect/Array.h"
#include "../Sys/Platform.h"
#include "../Sys/Path.h"
#include "../Sys/Endian.h"
#include "../Memory/Memory.h"
#include "../Io/Stream.h"
#include "StringRef.h"
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
// this is my older code. may need review
#if LET... |
/*!
* Copyright 2014-2022 by XGBoost Contributors
* \file updater_prune.cc
* \brief prune a tree given the statistics
* \author Tianqi Chen
*/
#include <rabit/rabit.h>
#include <xgboost/tree_updater.h>
#include <string>
#include <memory>
#include "xgboost/base.h"
#include "xgboost/json.h"
#include "./param.h"
#i... |
/** @file
* @author Grigorios Megariotis (<gmegariotis@yahoo.gr>)
* @author Georgios G. Vogiatzis (<gvog@chemeng.ntua.gr>)
* @brief C++ source file containing the implementation of bonded interactions.
*
* @section LICENSE
*
* Copyright (c) 2013 Grigorios Megariotis and Georgios Vogiatzis. All right... |
// Copyright (c) 2021 CINN 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 appl... |
// 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 "irc.h"
#include "net.h"
#include "strlcpy.h"
#include "base58.h"
using ... |
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"
#include <cstdint>
#include <cstdlib>
#include <cmath>
#include <random>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include "ast.hpp"
#include "units.hpp"
#include "fn_utils.hpp"
#include "f... |
// Copyright (C) 2002-2009 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#include "IrrCompileConfig.h"
#ifdef _IRR_COMPILE_WITH_WINDOWS_CE_DEVICE_
#include "CIrrDeviceWinCE.h"
#include "IEventReceiver.h"
#include "irrLis... |
#include <easy/profiler.h>
#include <easy/reader.h>
#include <fstream>
#include <list>
#include <iostream>
#include <map>
#include <stack>
#include <vector>
#include <iterator>
#include <algorithm>
#include <ctime>
#include <chrono>
#include <iostream>
#include <string>
#include <sstream>
class TreePrinter
{
stru... |
// ***************************************************************
// Copyright (c) 2021 Jittor. All Rights Reserved.
// Maintainers: Dun Liang <randonlang@gmail.com>.
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
// ******************... |
/*
* bits-fun.cpp
*
* Created on: Dec 14, 2015
* Author: zmij
*/
#include <iostream>
#include <iomanip>
#include <bitset>
#include <cstdlib>
const int FIRST_COL = 30;
int
main(int argc, char* argv[])
{
typedef int32_t signed_type;
typedef std::make_unsigned<signed_type>::type unsigned_type;
const uint3... |
/* kitty: C++ truth table library
* Copyright (C) 2017-2021 EPFL
*
* 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... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "pch.h"
#include "SandboxBridge.h"
#include "SandboxJSExecutor.h"
#include <cxxreact/JSBigString.h>
#include <cxxreact/ModuleRegistry.h>
#include <cxxreact/RAMBundleRegistry.h>
#include <agents.h>
#include <foll... |
// { dg-do compile { target c++11 } }
// 2011-06-14 Paolo Carlini <paolo.carlini@oracle.com>
//
// Copyright (C) 2011-2017 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU Gener... |
/**
* @file location_api_node.cpp
* @author Fujii Naomichi
* @copyright (c) 2022 Fujii Naomichi
* SPDX-License-Identifier: MIT
*/
#include "location_api_node.hpp"
#include <rclcpp/clock.hpp>
#include <rcutils/logging.h>
class CInitializeATL : public CAtlExeModuleT<CInitializeATL> {};
static CInitializeATL g_init... |
// Install PrintRun onto Ubunbu
// pip install --user wxpython
// https://zoomadmin.com/HowToInstall/UbuntuPackage/printrun
#include "../gcode.h"
#include "../../module/motion.h"
#include "../../module/planner.h"
#include "../../MarlinCore.h"
#define JOINT5_ENDSTOP_PIN 53
//Home Joint5 as axis E0 in Marlin
void Gc... |
// MIT License
//
// Copyright (c) 2020 Mechatronics and Haptic Interfaces Lab - Rice University
//
// 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 l... |
#include <sstream>
#include <spdlog/spdlog.h>
#include "publisher.h"
#include "socket.h"
#include "message_helpers.h"
#include "smart_capnp_builder.h"
#include "smart_capnp_reader.h"
#include "smart_message_reader.h"
namespace a17 {
namespace dispatch {
Socket::Socket(boost::asio::io_service &ios, int type, const std... |
// Copyright 2010-2014 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 wri... |
/*******************************************************************\
Module: Read Goto Programs
Author:
\*******************************************************************/
/// \file
/// Read Goto Programs
#include "read_goto_binary.h"
#include <fstream>
#include <unordered_set>
#include <util/message.h>
#incl... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2019 The OHONETWORK developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/... |
#include<stdio.h>
double dp[1005][1005];
int main(){
#ifdef LOCAL_DEBUG
freopen("E:/ACM/SRC/1.txt","r",stdin);
#endif
int w,b;scanf("%d%d",&w,&b);
for(int i=1;i<=w;i++)dp[i][0]=1;
for(int j=0;j<=b;j++)dp[0][j]=0;
for(int i=1;i<=w;i++)for(int j=1;j<=b;j++){
dp[i][j]=(double)i/(i+j);int mul=j*... |
# include "my_viewer.h"
# include <sigogl/ui_button.h>
# include <sigogl/ui_radio_button.h>
# include <sig/sn_primitive.h>
# include <sig/sn_transform.h>
# include <sig/sn_manipulator.h>
# include <sigogl/ws_run.h>
# include <vector>
# include <math.h>
# include <iostream>
#define PI 3.141592654f
using namespace s... |
#ifndef DECODER_CHASE_STD_HPP_
#define DECODER_CHASE_STD_HPP_
#include <cstdint>
#include <vector>
#include "Module/Encoder/Encoder.hpp"
#include "Module/Decoder/Decoder_SIHO.hpp"
namespace aff3ct
{
namespace module
{
template <typename B = int, typename R = float>
class Decoder_chase_std : public Decoder_SIHO<B,R>
... |
// Copyright (c) 2011-2015 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 "bitcoinamountfield.h"
#include "bitcoinunits.h"
#include "guiconstants.h"
#include "qvaluecombobox.h"
#include <Q... |
/////////////////////////////////////////////////////////////////////////////////////////////////
//
// Tencent is pleased to support the open source community by making libpag available.
//
// Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the Apache License, Versio... |
// Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
// Please refer to the license text that comes with this tendis open source
// project for additional information.
#include <stdio.h>
#include <iostream>
#include <string>
#include <algorithm>
#include "gtest/gtest.h"
#include "glog/loggin... |
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
/... |
// 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.
#include "content/browser/background_sync/background_sync_manager.h"
#include <utility>
#include "base/barrier_closure.h"
#include "base/bind.h"
#includ... |
// MIT License
// Copyright (c) 2021 Daniel Kowalczyk
// 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... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The DARKCOIN developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "clientmodel.h"
#i... |
/*================================================================================
code generated by: java2cpp
author: Zoran Angelov, mailto://baldzar@gmail.com
class: java.util.Date
================================================================================*/
#ifndef J2CPP_INCLUDE_IMPLEMENTATION
#ifndef ... |
/*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkColorCubeFilter.h"
#include "SkColorPriv.h"
#include "SkOnce.h"
#include "SkReadBuffer.h"
#include "SkUnPreMultiply.h"
#include "SkWriteBuffer.h"
#if SK_SUPPORT_GP... |
//
// MacchinaMapGenerator.cpp
// CarlaUE4_Index
//
// Created by Thierry Deruyttere on 26/09/18.
// Copyright © 2018 Epic Games, Inc. All rights reserved.
//
// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma
// de Barcelona (UAB).
//
// This work is licensed under the terms of the MI... |
#include "ActionNode.hpp"
#include "ValueNode.hpp"
#include "../../Exception.hpp"
BEGIN_INANITY_SHADERS
ActionNode::ActionNode(Action action)
: action(action), argumentsCount(0) {}
ActionNode::ActionNode(Action action, ptr<ValueNode> a)
: action(action), argumentsCount(1), a(a) {}
ActionNode::ActionNode(Action action... |
/*=============================================================================
Boost.Wave: A Standard compliant C++ preprocessor library
http://www.boost.org/
Copyright (c) 2001-2009 Hartmut Kaiser. Distributed under the Boost
Software License, Version 1.0. (See accompanying file
LICENSE_1_0.txt o... |
// The API isBadVersion is defined for you.
// bool isBadVersion(int version);
class Solution {
public:
int firstBadVersion(int n) {
int low=1;
int high=n;
while(low<=high){
int mid;
mid=low+(high-low)/2;
if(isBadVersion(mid)) high=mid-1;
else... |
#include "plansys2_pddl_parser/Domain.h"
namespace parser { namespace pddl {
void Exists::PDDLPrint( std::ostream & s, unsigned indent, const TokenStruct< std::string > & ts, const Domain & d ) const {
tabindent( s, indent );
s << "( exists\n";
TokenStruct< std::string > fstruct( ts );
tabindent( s, indent + 1 ... |
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2012 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person ... |
/*
Copyright (c) 2009-2016, Jack Poulson
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#ifndef EL_DETERMINANT_CHOLESKY_HPP
#define EL_DETERMIN... |
//
// This source file is part of appleseed.
// Visit https://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited
// Copyright (c) 2014-2018 Francois Beaune, The appleseedhq Organization
//
... |
#include <bits/stdc++.h>
using namespace std;
int main() {
while(true) {
string s;
cin >> s;
if(s == "*") break;
int res = 0;
float sum = 0.0;
for (int i = 0; i < s.size(); ++i)
{
if(s[i] == '/') {
if(sum == 1.0) res++;
sum = 0.0;
}
switch (s[i]) {
case 'W':
sum += 1.... |
#include "stdafx.h"
#include <iostream>
int x;
int y;
int sum;
int console;
#include <time.h>
using namespace std;
int factorial(int x) {
if (x == 1) {
return 1;
}
else {
return x * factorial(x - 1);
}
}
int main() {
cout << "Calculator rev1.0\n";
cout << "Write command.\nFor help write '5'\nDon't TRY TO WRI... |
/*
* Warhammer Age of Sigmar battle simulator.
*
* Copyright (C) 2019 by Rick Weyrauch - rpweyrauch@gmail.com
*
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
*/
#include <gloomspitegitz/Mollog.h>
#include <UnitFactory.h>
#include <Board.h>
#include "GloomspitePrivate.h"
... |
// Copyright (c) 2011-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifdef HAVE_CONFIG_H
#include <config/neon-config.h>
#endif
#include <qt/walletmodeltransaction.h>
#include <policy/policy.... |
// Delete all of the text.
m_myRichEditCtrl.SetSel(0, -1);
m_myRichEditCtrl.Clear(); |
// Copyright (C) 2018 Intel Corporation
//
//
// SPDX-License-Identifier: Apache-2.0
//
/// @file check_cycles.hpp
#ifndef ADE_CHECK_CYCLES_HPP
#define ADE_CHECK_CYCLES_HPP
#include <exception>
#include <string>
#include "ade/passes/pass_base.hpp"
namespace ade
{
namespace passes
{
class CycleFound : public std::... |
#include "GAMER.h"
#ifdef STAR_FORMATION
static RandomNumber_t *RNG = NULL;
//-------------------------------------------------------------------------------------------------------
// Function : SF_CreateStar
// Description : Interface for invoking various star-formation routines
//
// Note : 1. In... |
// Copyright 2014 John Maddock. 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_
#ifndef BOOST_MP_MATH_SETUP_HPP
#define BOOST_MP_MATH_SETUP_HPP
#ifdef _MSC_VER
# define _SCL_SECURE_NO_WARNINGS
#endif
#define BOOST_... |
// ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018-2021 www.open3d.org
//
// Perm... |
// Supported with union (c) 2020 Union team
// User API for zCGameInfo
// Add your methods here |
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... |
/**
* @file pruHandler.hpp
* @brief Process which communicates with the PRU that controlls quadrotor ESCs.
This process connects to applications via TCP packets over localhost and
relays the data to the PRU. If no program is active, zero throttle is sent.
*
* @author Mike Sardonini
* @date 11/10/2018
*/... |
#include "phm_app.h"
#include "simple_render_system.h"
#include "time.h"
#define GLM_FORCE_RADIANS
#define GLM_FORCE_DEPTH_ZERO_TO_ONE
#include <glm/glm.hpp>
#include <glm/gtc/constants.hpp>
#include <stdexcept>
#include <array>
#include <iostream>
// temporary helper function, creates a 1x1x1 cube centered at offs... |
// Tencent is pleased to support the open source community by making ncnn available.
//
// Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy ... |
// Includes
#include <xolotl/core/Constants.h>
#include <xolotl/core/network/IPSIReactionNetwork.h>
#include <xolotl/core/network/NEReactionNetwork.h>
#include <xolotl/solver/handler/PetscSolver2DHandler.h>
#include <xolotl/util/MathUtils.h>
namespace xolotl
{
namespace solver
{
namespace handler
{
void
PetscSolver2DH... |
//=========================================================================
// 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
//
// ... |
#include <bits/stdc++.h>
using namespace std;
void init(){
#ifndef ONLINE_JUDGE
freopen("in.txt", "r", stdin);
freopen("out.txt", "w", stdout);
freopen("err.txt", "w", stderr);
#endif
}
int main(){
init();
string s, t;
cin>>s>>t;
for(int i = 0; i < t.size(); i++){
rotate(t.... |
/*
* Copyright (c) 2013 ARM Limited
* Copyright (c) 2014-2015 Sven Karlsson
* Copyright (c) 2018 TU Dresden
* 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 i... |
/**********
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 3 of the License, or (at your
option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
This librar... |
// 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 "chromeos/dbus/fake_nfc_record_client.h"
#include "base/logging.h"
// TODO(armansito): For now, this class doesn't do anything. Implement fake
... |
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 20220523
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the c... |
// Copyright (c) 2011-2013 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 "key.h"
#include "keystore.h"
#include "policy/policy.h"
#include "script/script.h"
#include "script/script_error.h"... |
/*
* libjingle
* Copyright 2004--2011, Google Inc.
*
* 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 conditions and... |
/*
* W.J. van der Laan 2011-2012
*/
#include <QApplication>
#include "bitcoingui.h"
#include "clientmodel.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#include "guiutil.h"
#include "guiconstants.h"
#include "init.h"
#include "util.h"
#include "ui_interface.h"
#include "paymentserver.h"
#include "splashscre... |
/* 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... |
//===---- MachO_arm64.cpp - JIT linker implementation for MachO/arm64 -----===//
//
// 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
//
//===---------------------------... |
#pragma once
#include <cstdint>
namespace NWNXLib {
namespace API {
struct XIModifierState
{
int32_t base;
int32_t latched;
int32_t locked;
int32_t effective;
};
}
} |
#include <marnav/nmea/aam.hpp>
#include <marnav/nmea/alm.hpp>
#include <marnav/nmea/apb.hpp>
#include <marnav/nmea/bod.hpp>
#include <marnav/nmea/bwc.hpp>
#include <marnav/nmea/bwr.hpp>
#include <marnav/nmea/bww.hpp>
#include <marnav/nmea/dbk.hpp>
#include <marnav/nmea/dbt.hpp>
#include <marnav/nmea/dpt.hpp>
#include <... |
/// \file
/// \author
///
/// \brief Implementation of custom text edit widget
///
/// Copyright (c) . All rights reserved.
/// Licensed under the MIT License. See LICENSE file in the project root for full license information.
#include "stdafx.h"
#include "SnippetEdit.h"
#include <QtCore/qlogging.h>
//******... |
// Copyright (c) 2012-2013 The PPCoin developers
// Copyright (c) 2016 The PrettyGoodPrivacy developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/assign/list_of.hpp>
#include "kernel.h"
#include "txdb.... |
// Copyright (c) 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 "init.h"
#include "util.h"
#include "sync.h"
#include "ui_interface.h"
#includ... |
/*
* Copyright (C) 2013 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 (c) 2017-2019 The Particl Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <rpc/server.h>
#include <rpc/client.h>
#include <base58.h>
#include <validation.h>
#include <wallet/hdwallet.h>
#i... |
/*
* 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... |
// stdafx.cpp : source file that includes just the standard includes
// GCodeInterpreter.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "StdAfx.h"
// TODO: reference any additional headers you need in STDAFX.H
// and not in this file |
#include <fstream>
#include <math.h>
#include <limits.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <stdio.h>
#include <ctype.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <iostream>
#include <sstream>
#include <stdlib.h>
using namespace std;
char sysfile[512];
char outfile[512];... |
//$Id$
//------------------------------------------------------------------------------
// ParameterFactory
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Copyright (c) 2002 - 2015 United States Government as repre... |
/* Lincoln Glauser 5/19/16 */
/* EEEE-346 */
#include "../Include/HighScores.h"
/* Code highly influenced from Sildomar T. Monteiro */
HighScores::HighScores(const char *filename)
{
highscoreFile.open(filename, ios::in | ios::out | ios::binary);
if (!highscoreFile) {
cout << "Creating file: " << filename << end... |
// 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"
// Completed includes
// Begin forward d... |
/*
DDS, a bridge double dummy solver.
Copyright (C) 2006-2014 by Bo Haglund /
2014-2018 by Bo Haglund & Soren Hein.
See LICENSE and README.
*/
#include <iostream>
#include <iomanip>
#include <sstream>
#include <string.h>
#include "SolveBoard.h"
#include "CalcTables.h"
#include "PlayAnalyser.h"
#include... |
/*
* Copyright Andrey Semashev 2007 - 2015.
* 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)
*/
/*!
* \file text_file_backend.cpp
* \author Andrey Semashev
* \date 09.06.2009
*
* \b... |
// 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/net/pref_proxy_config_tracker.h"
PrefProxyConfigTracker::PrefProxyConfigTracker() {
}
PrefProxyConfigTracker::~PrefProxyConfigT... |
#include "tic_tac_toe_4.h"
#include "tic_tac_toe.h"
/*
class function check_column_win
Win by column if and return true if (each column index)
0, 1, 2, 3
4, 5, 6, 7
8, 9, 10, 11
12,13,14, 15
else
false
*/
/*
class function check_row_win
Win by row if
0, 1, 2, 3 are equal
4, 5, 6, 7 are equal
8, 9, 10, ... |
/* Author: Masaki Murooka */
#include <gtest/gtest.h>
#include <cmath>
#include <fstream>
#include <functional>
#include <iostream>
#include <limits>
#include <ros/ros.h>
#include <visualization_msgs/MarkerArray.h>
#include <std_srvs/Empty.h>
#include <nmpc_ddp/DDP.h>
/** \brief DDP problem for cart-pole.
Sta... |
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <vector>
#include <gtest/gtest.h>
#include <legacy/layer_transform.hpp>
#include "backend/gna_types.h"
#include "frontend/model_quantizer.hpp"
#include "frontend/layer_quantizer.hpp"
#include "gna_matcher.hpp"
#include <ie_... |
#pragma once
/**
* Copyright (c) blueback
* Released under the MIT License
* https://github.com/bluebackblue/brownie/blob/master/LICENSE.txt
* http://bbbproject.sakura.ne.jp/wordpress/mitlicense
* @brief ジオメトリ。
*/
/** include
*/
#pragma warning(push)
#pragma warning(disable:4464)
#include "../types/types.h"
#p... |
#pragma once
#include <autoppl/util/traits.hpp>
#include <autoppl/expression/model/eq_node.hpp>
#include <autoppl/expression/model/glue_node.hpp>
#include <autoppl/expression/variable/variable_viewer.hpp>
#include <autoppl/expression/variable/constant.hpp>
#include <autoppl/expression/variable/binop.hpp>
#include <auto... |
//----------------------------------*-C++-*----------------------------------//
/**
* @file Equation_SC_MOC.i.hh
* @author Jeremy Roberts
* @date Mar 31, 2012
* @brief Equation_SC_MOC inline member definitions.
*/
//---------------------------------------------------------------------------//
#ifndef det... |
/*
* Copyright (c) 2018-2022, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2022, Adam Hodgen <ant1441@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibWeb/DOM/Document.h>
#include <LibWeb/DOM/Event.h>
#include <LibWeb/DOM/ShadowRoot.h>
#include <LibWeb/DOM/Text.h>
#include <LibWeb/HTML... |
#include "config.h"
#include "log.h"
string Config::conf_path;
CONF_T Config::conf;
string Config::ext_name;
void Config::setConfFile(string file_path){
conf_path = file_path;
}
void Config::loadConf(){
ifstream cnf_file;
char line[200];
string cur_sec;
string cur_key;
string cur_val;
int... |
// Generated by Haxe 4.2.1+bf9ff69
#include <hxcpp.h>
#ifndef INCLUDED___ASSET__flixel_flixel_ui_img_finger_big_png
#include <__ASSET__flixel_flixel_ui_img_finger_big_png.h>
#endif
#ifndef INCLUDED_haxe_Resource
#include <haxe/Resource.h>
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef ... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Copyright (c) 2009-2020 The Dash Core developers
// Copyright (c) 2019-2020 The Abosom Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/li... |
#include <gtest/gtest.h>
#include <test/cpp/tensorexpr/test_base.h>
#include <test/cpp/tensorexpr/test_utils.h>
#include <torch/csrc/jit/tensorexpr/hash_provider.h>
#include <torch/csrc/jit/tensorexpr/ir_simplifier.h>
#include <torch/csrc/jit/tensorexpr/loopnest.h>
#include <cmath>
namespace torch {
namespace jit {
... |
/// @copyright
/// Copyright (C) 2020 Assured Information Security, Inc.
///
/// @copyright
/// 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 limita... |
// Copyright 2010-2021, 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 condit... |
// Copyright 2022 TIER IV, 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 i... |
// Author(s): Jan Friso Groote
// Copyright: see the accompanying file COPYING or copy at
// https://svn.win.tue.nl/trac/MCRL2/browser/trunk/COPYING
//
// 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)
//
/// \file... |
/**
* @file Laplace_Demo.cpp
* @brief Sample code showing how to detect edges using the Laplace operator
* @author OpenCV team
*/
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <stdlib.h>
#include <stdio.h>
using namespace cv;
/**
* @function main
*/
int main( int, char*... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/DynArray.hpp>
#include <RED4ext/Handle.hpp>
#include <RED4ext/NativeTypes.hpp>
#include <RED4ext/Scripting/Natives/Generated/quest/EmbeddedGraphNodeDefinition.hpp>
#include <RED4ex... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.