text
stringlengths
7
961k
#pragma once #include "../input/sdl_const.hpp" #include "../input/constant.hpp" #include "../handle/input.hpp" #include "lubee/src/error.hpp" #include <SDL_mouse.h> namespace rev { struct TPos2D; class SDLMouse { private: bool _button[N_SDLMouseButton]; int _wheelDx, _wheelDy; MouseMode _mode; ...
/* * W.J. van der Laan 2011-2012 */ #include "bitcoingui.h" #include "clientmodel.h" #include "walletmodel.h" #include "optionsmodel.h" #include "guiutil.h" #include "guiconstants.h" #include "init.h" #include "ui_interface.h" #include "qtipcserver.h" #include <QApplication> #include <QMessageBox> #include <QTextCo...
#include <gtest/gtest.h> #include <nnpack.h> #include <testers/convolution.h> /* * Test that implementation works for a single tile of transformation */ TEST(FT8x8, single_tile) { ConvolutionTester() .inputSize(8, 8) .iterations(100) .errorLimit(1.0e-5) .testKernelGradient(nnp_convolution_algorithm_ft8x8...
// Copyright (c) 2019 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 (c) 2012-2016 PX4 Development Team. 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. Red...
#include "Base/ExtDLL.h" #include "Util.h" #include "Base/CBase.h" #include "IPhysBody.h" #include "PhysBody.h" #include "PhysBody_Box.h" /* ======================================================== CPhysBody_Box ======================================================== */ void CPhysBody_Box::InitShape( const PhysPa...
// Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2017-2018 Kalkulus Development Team // Copyright 2018- The Touch developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-lice...
/* * * Copyright (c) 2021 Project CHIP Authors * Copyright (c) 2013-2017 Nest Labs, 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 * *...
// Copyright (C) 2017 Jérôme Leclercq // This file is part of the "Nazara Engine - Graphics module" // For conditions of distribution and use, see copyright notice in Config.hpp #include <Nazara/Renderer/Renderer.hpp> #include <functional> #include <Nazara/Graphics/Debug.hpp> namespace Nz { inline MaterialPipeline::...
/* Copyright 2019 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 2018 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ndm-ram-driver.h" #include <stdio.h> #include <string.h> namespace { constexpr uint8_t kWrittenFlag = 1 << 0; constexpr uint8_t kFailEccFlag =...
//===--- ParseStmt.cpp - Statement and Block Parser -----------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// 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/extensions/api/braille_display_private/braille_display_private_api.h" #include "base/lazy_instance.h" #include "chrome/browser/e...
/* * Phusion Passenger - https://www.phusionpassenger.com/ * Copyright (c) 2011-2017 Phusion Holding B.V. * * "Passenger", "Phusion Passenger" and "Union Station" are registered * trademarks of Phusion Holding B.V. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this ...
// Copyright Take Vos 2020. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt) #pragma once #include "pipeline_vulkan.hpp" #include "pipeline_alpha_push_constants.hpp" #include "pipeline_alpha_vertex.hpp" #include "...
/** * Copyright 2020 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) 2005-2019 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 ...
//! \brief Basic arithmetic for the integral numbers considering overflows and non fundamental types. //! The Dao (Deterministic Agglomerative Overlapping) of Clustering library: //! Robust & Fine-grained Deterministic Clustering for Large Networks. //! //! \license Apache License, Version 2.0: http://www.apache.org/li...
// Copyright 2021 Research Institute of Systems Planning, 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 b...
/* * Copyright 2014 Google 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...
#include <iostream> #include "2.42 Sales_data.h" int main() { Sales_data book1, book2; double price1, price2; std::cin >> book1.bookNo >> book1.units_sold >> price1; std::cin >> book2.bookNo >> book2.units_sold >> price2; book1.CalcRevenue(price1); book2.CalcRevenue(price2); if (book1.boo...
/* * 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...
/* file: svm_train_boser_batch_fpt_cpu_v1.cpp */ /******************************************************************************* * Copyright 2014-2020 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtai...
#include "\z\a3cs\addons\modules\script_component.hpp" #define EXEC_MODULE_NAME GVAR(deleteMarker) #define EXEC_MODULE_FNC FUNC(deleteMarker_moduleExec)
/* 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 "graph/executor/admin/ListRolesExecutor.h" #include <thrift/lib/cpp/util/EnumUtils.h> #include "graph/context...
/* SPDX-License-Identifier: MIT */ /** @file ntv2vpid.cpp @brief Implements the CNTV2VPID class. See the SMPTE 352 standard for details. @copyright (C) 2012-2021 AJA Video Systems, Inc. **/ #include "ntv2vpid.h" #include "ntv2vpidfromspec.h" #include "ntv2debug.h" #include "ntv2utils.h" #include "ntv2registerexpe...
// Copyright (c) 2009-2019 The bitphantom Core 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/bitphantom-config.h> #endif #if defined(HAVE_SYS_SELECT_H) #ifdef HAVE_CSTRIN...
// Error-checking routine that performs manual lifetime management // of a COM IErrorInfo object HRESULT CheckComError_Manual() { HRESULT hr; CComBSTR bstrDescription; CComBSTR bstrSource; CComBSTR bstrHelpFile; IErrorInfo* pErrInfo = NULL; // naked COM interface pointer hr = ::GetErrorInfo(0, &pE...
#ifndef APEX_CORE_MEMORY_HPP #define APEX_CORE_MEMORY_HPP #include <apex/core/concepts.hpp> #include <memory> #include <new> // Like most core/ files, this provides a shim for various stdlib items namespace apex { #if APEX_CHECK_API(to_address, 201711) using ::std::to_address; #else template <class T> requires requ...
#include <iostream> #include <vector> #include <cmath> #include <GL/glew.h> #include <GLFW/glfw3.h> // variaveis globais struct vertex { float x, y; }; struct build { GLenum mode; GLint first; GLsizei count; std::vector<GLfloat> color; }; // Classe Poligonos // classe que abstai qualquer desenho...
/* Copyright (c) 2016 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 by applicable law or...
/* * ApproxGroupBetweenness.hpp * * Created on: 13.03.2018 * Author: Marvin Pogoda */ #ifndef NETWORKIT_CENTRALITY_APPROX_GROUP_BETWEENNESS_HPP_ #define NETWORKIT_CENTRALITY_APPROX_GROUP_BETWEENNESS_HPP_ #include <omp.h> #include <networkit/base/Algorithm.hpp> #include <networkit/distance/BFS.hpp> #include...
// // Created by Mariano Sorgente on 2020/09/28. // // Copyright 2018 Chia Network 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 // ...
// // main.cpp // test // // Created by HIROAKI YAMANE on 03/04/2020. // Copyright © 2020 HIROAKI YAMANE. All rights reserved. // #include <iostream> #include "exposed-tinygltf.h" int main(int argc, const char * argv[]) { // insert code here... #ifdef _WIN32 string path = "C:\\Users\\mnmly\\Do...
#include <ecosnail/tempo/frame_timer.hpp> namespace ecosnail::tempo { FrameTimer::FrameTimer(int fps) : _lastFrame(0) , _startTime(Clock::now()) , _delta(1.0 / fps) , _frameDuration(std::chrono::duration_cast<Clock::duration>( std::chrono::duration<double>(_delta))) { } double FrameTimer::del...
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
/* * Distributed under the OSI-approved Apache License, Version 2.0. See * accompanying file Copyright.txt for details. * * BP5Serializer.h * */ #include "adios2/core/Attribute.h" #include "adios2/core/Engine.h" #include "adios2/core/IO.h" #include "BP5Base.h" #include <string.h> #ifdef _WIN32 #pragma warnin...
/*========================================================================= * * Copyright Insight Software 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 * * h...
//----------------------------------------------------------------------------- // 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...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: System.Xml.XmlEncodedRawTextWriter ...
/*++ Copyright (c) 2020 Microsoft Corporation Module Name: sat_th.cpp Abstract: Theory plugin base classes Author: Nikolaj Bjorner (nbjorner) 2020-08-25 --*/ #include "sat/smt/sat_th.h" #include "sat/smt/euf_solver.h" #include "tactic/tactic_exception.h" namespace euf { bool th_internalizer::v...
// Copyright 2011 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 "src/execution/messages.h" #include <memory> #include "src/api/api-inl.h" #include "src/ast/ast.h" #include "src/ast/prettyprinter.h" #includ...
#include <Scenes/OptionsScreen.hpp> #include <Scenes/MainScreen.hpp> #include <filesystem> #include <Entities/Entity.hpp> #include <Components/Text.hpp> #include <Components/DynamicButton.hpp> #include <Components/Button.hpp> #include <Components/Drawable.hpp> #include <Components/Parallax.hpp> #include <Helper.hpp> #...
/* * Copyright (C) 2012 The Android 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
#include <unistd.h> #include <iostream> #include <cassert> #include <algorithm> #include "util.h" #include "postprocessing.h" #include "debug.h" void sortSubtasksOfMethodsTopologically(const Domain & domain, std::vector<bool> & prunedTasks, std::vector<bool> & prunedMethods, std::vector<GroundedMethod> & inp...
/* * Copyright (c) 2016-2017, Luca Fulchir<luca@fulchir.it>, All rights reserved. * * This file is part of "libRaptorQ". * * libRaptorQ 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 vers...
/** * @file hoeffding_categorical_split.hpp * @author Ryan Curtin * * A class that contains the information necessary to perform a categorical * split for Hoeffding trees. */ #ifndef __MLPACK_METHODS_HOEFFDING_TREES_HOEFFDING_CATEGORICAL_SPLIT_HPP #define __MLPACK_METHODS_HOEFFDING_TREES_HOEFFDING_CATEGORICAL_SPL...
/*========================================================================= * * Copyright NumFOCUS * * 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.or...
/********************************************************* * Copyright (C) VERTVER, 2018. All rights reserved. * OpenSoundRefenation - WINAPI open-source DAW * MIT-License ********************************************************** * Module Name: OSR User Interface *******************************************************...
//$Id: MeasurementFactory.cpp 1398 2011-04-21 20:39:37Z $ //------------------------------------------------------------------------------ // MeasurementFactory //------------------------------------------------------------------------------ // GMAT: General Mission Analysis Tool // // Copyrigh...
// Copyright (c) 2011-2013 The Bitcoin TKZelopers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "peertablemodel.h" #include "clientmodel.h" #include "guiconstants.h" #include "guiutil.h" #include "net.h" #includ...
#pragma once #include <SFML/Graphics.hpp> #include <set> class Node{ public: // ... functions to transform the node void rotate(float angle){ m_transform.rotate(angle); } void scale(float scale){ m_transform.scale(scale,scale); } void move(sf::Vector2f pos){ m_transf...
#include "Mesh.h" Mesh::Mesh() { m_transform = { 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f }; m_triCount = 0; m_vertexArrayObject = 0; m_vertexBufferObject = 0; m_indexBufferObject = 0; } Mesh::~Mesh() { glDeleteVertexArrays(1, &m_vertexArrayObject)...
#include <iostream> #include <string> #include "ApiAccess.h" void test_api_access() { std::string key = ""; std::string secret = ""; std::string end_point = "public/trending-news-data"; ApiAccess access(key, secret); Map input; input["date"] = "2020-07-06"; Map payload; picojson::object response = acce...
/*************************************************** * Problem Name : B. Vasya and Books.cpp * Problem Link : https://codeforces.com/contest/1073/problem/B * OJ : Codeforces * Verdict : AC * Date : 2018-10-26 * Problem Type : Educational Round - B * Author Name : Saikat Sharma * Universi...
// Copyright (c) 2018, Benjamin Shropshire, // 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 c...
#include <cstdio> int main() { printf("%d %d", sizeof(bool), sizeof(char)); return 0; }
#include "unzipper.h" #include "CDirEntry.h" #include "defs.h" #include "tools.h" #include <functional> #include <exception> #include <fstream> #include <stdexcept> namespace zipper { struct Unzipper::Impl { Unzipper& m_outer; zipFile m_zf; ourmemory_t m_zipmem; zlib_filefunc_def m_filefunc; p...
// // wavefront.cpp // // // Created by Jordan Eizenga on 4/4/21. // #include "wavefront.hpp" #include "SvgPlot.hpp" #include "Color.hpp" #include <algorithm> #include <iostream> #include <deque> #include <cmath> using std::round; using std::min; using std::max; struct Wavefront { public: Wavefront() {} ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2017 The Bitcoin Core 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/bitcoin-config.h> #endif #include <n...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <vector> #include <queue> #include <utility> #include <algorithm> #include <iostream> #include <fstream> #include <errno.h> #include <unistd.h> #include <assert.h> #include <boost/program_options.hpp> #include "../vowpalwabbit/vw.h" using namespace s...
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/search_engines/search_terms_data.h" #include "base/logging.h" #include "components/google/core/browser/google_url_tracker.h" #includ...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The Aif Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "amount.h" #include "base5...
// IPLookup.cpp // Implements the cIPLookup class representing an IP-to-hostname lookup in progress. #include "Globals.h" #include "IPLookup.h" #include <event2/util.h> #include "NetworkSingleton.h" #include "GetAddressInfoError.h" //////////////////////////////////////////////////////////////////////////////// ...
// Test target codegen - host bc file has to be created first. // RUN: %clang_cc1 -no-opaque-pointers -verify -fopenmp -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm-bc %s -o %t-ppc-host.bc // RUN: %clang_cc1 -no-opaque-pointers -verify -fopenmp -x c++ -triple nvptx64-unknown...
/*--------------------------"SABUJ-JANA"------"JADAVPUR UNIVERSITY"--------*/ /*-------------------------------@greenindia-----------------------------------*/ // // _____ _ _ _ // / ____| | | (_) | | // | (___ __ _| |__ _ _ _ | | __ _ _ __ __ _ // \___ \ / _...
#include <iostream> #include <string> #include <cctype> using namespace std; bool hasCap(const string &str); void toLowerCase(string &str); int main (int argc, char **argv) { string s = "Hello, world!"; cout << hasCap(s) << endl; toLowerCase(s); cout << s << endl; return 0; } bool hasCap (const string &s...
// WAP to concatenate two strings using the concept of operator overloading (+). #include <iostream> #include <string.h> using namespace std; class String { char *str; public: String(char *s) { int length = strlen(s); str = new char[length]; strcpy(str, s); ...
/* * Copyright 2012 Facebook, 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...
// Copyright (c) 2011-2016 The Bitcoin Core developers // Copyright (c) 2017 The Raven Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "signverifymessagedialog.h" #include "ui_signverifymessagedialog.h" ...
// // _YAML_READER_TEST45_CPP_ // // Copyright (C) 2017-2018 Tactical Computing Laboratories, LLC // All Rights Reserved // contact@tactcomplabs.com // // See LICENSE in the top level directory for licensing details // // #include <iostream> #include "CoreGen/CoreGenBackend/CoreGenBackend.h" std::string PROJNAME = "...
#include <ros/ros.h> #include <tf2_ros/transform_broadcaster.h> #include <nav_msgs/Odometry.h> class TfPub { public: TfPub(); private: void OdometryCallback(const nav_msgs::Odometry::ConstPtr& odometry_msg); ros::NodeHandle nh_, pnh_; ros::Subscriber odom_sub_; tf2_ros::TransformBroadcaster tf_broadcaster_;...
/* * The tool provides a shell to the embedded interpreter. Useful to inspect the * state of the embedding interpreter interactively. */ #include <c10/util/Flags.h> #include <torch/csrc/deploy/deploy.h> #include <torch/csrc/deploy/path_environment.h> C10_DEFINE_string( python_path, "", "The root of the ...
// Copyright 2020 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 "src/runtime/runtime-utils.h" #include "src/execution/arguments-inl.h" #include "src/objects/js-weak-refs-inl.h" namespace v8 { namespace int...
/****************************************************************************** * Copyright (c) 2019 Analog Devices, 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 sour...
#include <iostream> int main() { int a, b; std::cin >> a >> b; std::cout << a + b << std::endl; }
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2006 Klaus Spanderen Copyright (C) 2010 Kakhkhor Abdijalilov This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is ...
#include "FlatbufferTranslator.hpp" #include <rlbot_generated.h> #include <algorithm> #define _USE_MATH_DEFINES #include <math.h> namespace FlatbufferTranslator { void fillStructName(std::string str, wchar_t structStr[]) { std::wstring widestr = std::wstring(str.begin(), str.end()); const wchar_t* widecstr = wi...
// 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 <algorithm> #include <atomic> #include <iterator> #include <map> #include <memory> #include <set> #include <string> #include <utility> #inclu...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include <algorithm> #include "core/framework/data_types.h" #include "core/framework/execution_providers.h" #include "core/framework/kernel_registry.h" #include "core/framework/op_kernel.h" #include "core/framework/session_...
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
#include <omp.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "util.h" #include "bcc_bfs.h" #include "graph.h" #include "thread.h" extern bool verbose, debug, random_start; #define ALPHA 15.0 #define BETA 24.0 /* '########:::'#######:::::'########::'########::'######:: ##.... ##:'##.... ##::...
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
//#include <cassert> //#include <cstdio> //#include <cmath> //#include <iostream> //#include <sstream> //#include <string> //#include <vector> //#include <map> //#include <queue> //#include <algorithm> // //const int MOD = 1000000007, INF = 1111111111; //using namespace std; //using lint = long long; // //template <cla...
#include "KBCoordinationServiceKbEventEventHandlerCore.hh" #include "runTimeInterface.hh" #include <cstdio> #include <iostream> KBCoordinationServiceKbEventEventHandlerCore::KBCoordinationServiceKbEventEventHandlerCore(Smart::IEventClientPattern<CommBasicObjects::CommKBEventParam, CommBasicObjects::CommKBEventResult> ...
#include "menu_host_root_view.h" #include "menu_controller.h" #include "submenu_view.h" namespace view { MenuHostRootView::MenuHostRootView(Widget* widget, SubmenuView* submenu) : RootView(widget), submenu_(submenu), forward_drag_to_menu_controller_(true) {} bool MenuHostRoot...
#include <cmath> #include "Vector2D.h" Vector2D::Vector2D(long double x, long double y) : x(x), y(y) {} Vector2D::~Vector2D() {} void Vector2D::normalize() { long double length = (long double)(sqrt(pow(x, 2)+pow(y, 2))); x /= length; y /= length; } Vector2D Vector2D::operator+(Vector2D SecVector) { ...
/* -- MAGMA (version 2.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date @precisions normal z -> s d c @author Stan Tomov @author Mathieu Faverge @author Mark Gates */ // includes, system #include <stdl...
// Copyright 2020-2021 Herald Project Contributors // SPDX-License-Identifier: Apache-2.0 // #include <memory> #include "catch.hpp" #include "herald/herald.h" // TEST_CASE("datatypes-uuid-basics", "[datatypes][uuid][ctor][basics]") { // SECTION("datatypes-uuid-basics") { // auto uuid1 = herald::datatype::U...
/* ///////////////////////////////////////////////////////////////////////// * File: mfcstl/string/string_traits.hpp * * Purpose: Contains string_traits for MFC. * * Created: 25th April 2005 * Updated: 10th August 2009 * * Home: http://stlsoft.org/ * * Copyright (c) 2005-2009, Matthe...
/* This file is a part of libcds - Concurrent Data Structures library (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2016 Source code repo: http://github.com/khizmax/libcds/ Download: http://sourceforge.net/projects/libcds/files/ Redistribution and use in source and binary forms, with...
/* * Copyright (c) 2017 - 2018, 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, ...
/* Copyright(c) Sophist Solutions Inc. 1990-1992. All rights reserved */ /* * $Header: /fuji/lewis/RCS/TextEdit.cc,v 1.10 1992/09/08 15:34:00 lewis Exp $ * * TODO: * * - Consider getting rid of the AutoSize stuff, and replace it with a CalcViewRect () method - then * use that from TextChanged Callback in Tex...
#include "purescript.h" // Tested with package v4.0.0 FOREIGN_BEGIN( Data_Ring ) exports["intSub"] = [](const boxed& x_) -> boxed { const auto x = unbox<int>(x_); return [=](const boxed& y_) -> boxed { const auto y = unbox<int>(y_); return x - y; }; }; exports["numSub"] = [](const boxed&...
/* * \copyright Copyright 2014 * \license @{ * Licensed under the Apache License, Version 2.0 (the "License"); * @} */ #include "state/gumball_machine.h" #include <iostream> //NOLINT using std::cout; using std::endl; #include "state/sold_out_state.h" #include "state/no_quarter_state.h" #include "state/has_quarte...
// Copyright 2017 Google 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...
/* * Created by Martin on 19/07/2017. * * 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 "catch_wildcard_pattern.h" #include "catch_enforce.h" #include "catch_string_manip.h" namespace Catch { ...
#include <sstream> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> #include "third_party/gflags/include/gflags.h" #include "third_party/glog/include/logging.h" // Problem: https://leetcode-cn.com/problems/replace-words/ // Solutions: // https://leetcode-cn.com/problems/replace-wo...
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include "StorageRequiredContract.h" #include <ScriptCanvas/Core/ContractBus.h> #include <ScriptCa...