text
stringlengths
5
1.04M
#include "text.h" void Text::draw() { device_context->DrawText(text, point.x, point.y); }
/////////////////////////////////////////////////////////////////////// // File: unicharset_training_utils.cpp // Description: Training utilities for UNICHARSET. // Author: Ray Smith // Created: Fri Oct 17 17:09:01 PDT 2014 // // (C) Copyright 2014, Google Inc. // Licensed under the Apache License, Vers...
/*========================================================================= Program: Visualization Toolkit Module: ImagePlaneWidget.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This...
// Copyright (c) 2011-2013 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 "optionsdialog.h" #include "ui_optionsdialog.h" #include "bitcoinunits.h" #include "monitoreddatamapper.h" #include ...
//========================================================================= // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURPOSE...
// PropSheet.cpp : implementation file // #include "stdafx.h" #include "JWM1400CE.h" #include "PropSheet.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CPropSheet IMPLEMENT_DYNAMIC(CP...
/* * * Copyright (c) 2020 Project CHIP Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
/* * Copyright 2019 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "modules/skottie/src/effects/Effects.h" #include "modules/skottie/src/SkottieValue.h" #include "modules/sksg/include/SkSGRenderEffect.h" #include "src/utils/SkJSON.h...
//===-- PdbYaml.cpp ------------------------------------------- *- C++ --*-===// // // 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 // //===---------------------------...
#include "FWCore/Framework/interface/one/EDAnalyzer.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/ServiceRegistry/interface/Service.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/EventSetup.h" ...
// Copyright (c) 2009-2019 Satoshi Nakamoto // Copyright (c) 2009-2019 The Bitcoin Developers // Copyright (c) 2016-2019 Duality Blockchain Solutions Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "clientmod...
#include "Bool.h" Bool::Bool() :data(false) {} Bool::Bool(bool data) :data(data) {}
#include <prevc/pipeline/AST/function-declaration.hxx> #include <utility> namespace prevc { namespace pipeline { namespace AST { FunctionDeclaration::FunctionDeclaration(Pipeline* pipeline, util::Location&& location, const util::String& name, Typ...
//===- SelectionDAGBuilder.cpp - Selection-DAG building -------------------===// // // 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 // //===---------------------------...
#include <tuple> #include "argparse/argparse.hpp" #include "rmi/models.hpp" #include "rmi/rmi.hpp" #include "rmi/util/fn.hpp" using key_type = uint64_t; /** * Computes several metrics on the error interval sizes for a given @p Rmi on dataset @p keys and writes results to * `std::cout`. * @tparam Key key type *...
#include "SoyRef.h" #include "BufferArray.hpp" namespace Private { // max number of unique refs; sizeof(gAlphabetRaw) * SoyRef::MaxStringLength (63 * 8) const char gAlphabetRaw[] = "_ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz"; BufferArray<char,100> gAlphabet; // initialising this seems to mess...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__delete_array_char_malloc_53b.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete_array.label.xml Template File: sources-sinks-53b.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Ma...
// 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 writing, software // distributed und...
/*################################################################################ ## ## Copyright (C) 2016-2020 Keith O'Hara ## ## This file is part of the GCE-Math C++ library. ## ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance...
/** * Copyright (C) 2015 MongoDB 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 be usef...
#include "include/flutter_app_icon_badge/flutter_app_icon_badge_plugin.h" // This must be included before many other Windows headers. #include <windows.h> // For getPlatformVersion; remove unless needed for your plugin implementation. #include <VersionHelpers.h> #include <flutter/method_channel.h> #include <flutter/...
/******************************************************** * * * Copyright (C) Microsoft. All rights reserved. * * * ********************************************************/ #include "pch.h" #includ...
#ifndef ENTT_ENTITY_STORAGE_HPP #define ENTT_ENTITY_STORAGE_HPP #include <algorithm> #include <iterator> #include <numeric> #include <utility> #include <vector> #include <cstddef> #include <type_traits> #include "../config/config.h" #include "../core/algorithm.hpp" #include "sparse_set.hpp" #include "entity.hpp" na...
// // Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2022 // // 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 "td/telegram/files/FileUploader.h" #include "td/tel...
/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors ...
/**************************************************************************** * * Copyright (c) 2013-2015 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...
/* ** Copyright 2014-2015 Centreon ** ** 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 t...
#include <cmath> #include <iostream> #define MAX 1000001 using namespace std; int main(void) { int N, i = 0; bool d[MAX] = {1, 1}; ios_base::sync_with_stdio(false); cin.tie(NULL); for (int i = 2; i < sqrt(MAX); ++i) { if (d[i] == false) { for (int j = i * i; j < MAX; j += i) { d[j] = true; ...
#include "phi_widget_text.h" PHI_Widget_Text::PHI_Widget_Text(int16_t x, int16_t y, int16_t w, int16_t h): PHI_Widget_Graphic_Base(x, y, w, h, true, true) { } void PHI_Widget_Text::Render(JsonVariant data) { PHI_Widget_Graphic_Base::Render(data); String description = data["description"]; String value =...
/* October Lunchtime 2020 Division 2 - Chef Is Just Throwing Random Words https://www.codechef.com/LTIME89B/problems/SSO */ #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; typedef pair<string, string> pss; typedef vector<int> vi; typedef vector...
/* Copyright 2015 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...
#pragma once #include <thread> class NatNet { private: std::thread natnet_thread_; public: NatNet(); ~NatNet(); void natnet_rx(); void sample_data(); void velocity_thread(); };
#include "core.h" #include "wbactionrodinblackboardwrite.h" #include "configmanager.h" #include "Components/wbcomprodinblackboard.h" #include "wbactionstack.h" WBActionRodinBlackboardWrite::WBActionRodinBlackboardWrite() : m_BlackboardKey() , m_ValuePE() { } WBActionRodinBlackboardWrite::~WBActionRodinBla...
/****************************************************************************** * Copyright 2017 Baidu Robotic Vision 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 L...
#pragma once // addrinfo_cache - a cache of the results of calling getaddrinfo. // // addrinfo_cache addresses the overhead and unpredictability of // calling getaddrinfo. Usually, getaddrinfo returns in under a // millisecond. But sometimes it accesses the filesystem // (/etc/hosts), or network services (DN...
// // Copyright (c) 2009, Markus Rickert // 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 (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...
// Copyright (c) 2009-2018 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 <chain.h> #include <key_io.h> #include <rpc/server.h> #include <validation.h> #include <script/script.h> #include <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 "chrome/browser/ui/toolbar/component_toolbar_actions_factory.h" #include "base/command_line.h" #include "base/lazy_instance.h" #include "chrome/...
/************************************************************ * * OPEN TRANSACTIONS * * Financial Cryptography and Digital Cash * Library, Protocol, API, Server, CLI, GUI * * -- Anonymous Numbered Accounts. * -- Untraceable Digital Cash. * -- Triple-Signed Receipts...
/* * 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 <vector> #include <iostream> #include <cassert> #include <set> #include <map> #include <ilcplex/ilocplex.h> #include "../bt-maxsat/io.hpp" #include "../bt-maxsat/phyl_mat.hpp" #define F first #define S second using namespace triangulator; using namespace std; set<int> gametes(const vector<int>& a, const ve...
#include "EditorLayer.h" #include <imgui/imgui.h> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include "Hazel/Scene/SceneSerializer.h" #include "Hazel/Utils/PlatformUtils.h" #include "ImGuizmo.h" #include "Hazel/Math/Math.h" namespace Hazel { EditorLayer::EditorLayer() : Layer("Edi...
#include "../../include/FileHandling/FileConverter.h" FileConverter::FileConverter(){ cimg_library::cimg::imagemagick_path(imageMagickPath.c_str()); } FileConverter& FileConverter::instance(){ static FileConverter *instance = new FileConverter(); return *instance; } void FileConverter::ConvertFil...
#include "config_impl.h" #include "retry_state_impl.h" #include "router.h" #include "envoy/event/dispatcher.h" #include "envoy/event/timer.h" #include "envoy/http/conn_pool.h" #include "envoy/runtime/runtime.h" #include "envoy/stats/stats.h" #include "envoy/upstream/cluster_manager.h" #include "envoy/upstream/upstream...
/************************************************************************ * RobWorkStudio Version 0.1 * Copyright (C) Robotics Group, Maersk Institute, University of Southern * Denmark. * * This Software is developed using the Qt Open Source Edition, and is * therefore only available under the GNU General Public ...
/* * $Id$ * * Author: David Fournier * Copyright (c) 2008-2012 Regents of the University of California */ #include <admodel.h> void data_4array::allocate(int hhsl,int hhsu,int hsl,int hsu, int rmin,int rmax,int cmin,int cmax,const char * s) { named_d4_array::allocate(hhsl,hhsu,hsl,hsu,rmin,rmax,cmin,cmax,s...
<?hh // strict /** * @copyright 2010-2015, The Titon Project * @license http://opensource.org/licenses/bsd-license.php * @link http://titon.io */ namespace Titon\Utility; use Titon\Common\Macroable; use Titon\Io\Reader; type ConfigMap = Map<string, mixed>; /** * Stores the current configuration op...
/* * 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 "TimePeriod.h" #include <Poco/DateTime.h> #include <Poco/Timezone.h> using namespace Poco; // ------------------------------------------------------------------------ Timespan TimePeriod::TimeWithinTimePeriod(const TimePeriod &aTp) const { // Completely before the interval? if (mTEnd < aTp.mTSt...
#include "render.hpp" /** * A method to get the pure color of a point, if an Object has been hit. * @param ray * @param depth depth of the ray */ glm::vec3 Render::get_color (Ray const& ray, int depth) const { // Get Intersected Object here glm::vec3 hit_point; glm::vec3 hit_normal; float...
#include "Camera3D.hpp" void Camera3D::createProjectionMatrix(unsigned int width, unsigned int height){ m_projectionMatrix = glm::perspective(glm::radians(90.0f), width/(float)height, 0.1f, 1000.0f); } const glm::mat4& Camera3D::getProjectionMatrix(){ return m_projectionMatrix; } const glm::mat4& Camera3D...
/*************************************************************************** * Copyright (c) 2017, Sylvain Corlay and Johan Mabille * * * * Distributed under the terms of the BSD 3-Clause License. * * ...
#include "xc7vx485t.h" xc7vx485t::xc7vx485t() : fpga("XC7VX485T", "Xilinx Virtex-7 XC7VX485T (VC707)", 0x03687093, 0x0FFFFFFF, 6)//, 0x9, 0x02) { ircodes["IDCODE"] = 0x09; ircodes["BYPASS"] = 0x3F; ircodes["EXTEST"] = 0x26; ircodes["SAMPLE"] = 0x01; ircodes["PRELOAD"] ...
// Copyright (c) 2011-2016 The Bitcoin Core developers // Copyright (c) 2017 The Nyc3 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/nyc3-config.h" #endif #include "r...
/* This file is part of mediaserver. A webrtc sfu server. * Copyright (C) 2018 Arvind Umrao <akumrao@yahoo.com> & Herman Umrao<hermanumrao@gmail.com> * * 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 F...
#ifdef WITH_PYTHON_LAYER #include "boost/python.hpp" namespace bp = boost::python; #endif #include <glog/logging.h> #include <cstring> #include <map> #include <string> #include <vector> #include "boost/algorithm/string.hpp" #include "caffe/caffe.hpp" #include "caffe/util/signal_handler.h" using caffe::Blob; using c...
// // MIT License // // Copyright (c) 2017-2018 Thibault Martinez and Simon Ninon // // 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 r...
// Copyright (c) 2012-2015 The Bitcoin Core developers // Copyright (c) 2020-2022 The Cosanta Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "consensus/merkle.h" #include "merkleblock.h" #include "seria...
// 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/context/base.hpp> #include <sge/opengl/context/id.hpp> #include <sge/opengl/co...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE129_fgets_67a.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE129.label.xml Template File: sources-sinks-67a.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: fgets Read data fr...
/****************************************************************************** * * Project: GDAL Gridding API. * Purpose: Implementation of GDAL scattered data gridder. * Author: Even Rouault, <even dot rouault at spatialys.com> * ******************************************************************************...
// RUN: rm -f %t.ll // RUN: %atjitc -O2 %s -o %t // RUN: %t %t.ll > %t.out // RUN: %FileCheck %s < %t.out // RUN: %FileCheck --check-prefix=CHECK-IR %s < %t.ll #include <easy/jit.h> #include <easy/options.h> #include <functional> #include <cstdio> // only one function // reading from a global variable // CHECK-IR-...
#include "caffe2/mobile/contrib/arm-compute/test/gl_model_test.h" namespace caffe2 { // The last softmax op didn't pass because of the dimension mismatch, and we are not likely to hit it in other models, but the implementation should be correct // TEST(OPENGLModelTest, SqueezenetV11) { // std::string parent_p...
#include "stdafx.h" #include "OutStreamWrapper.h" namespace SevenZip { namespace intl { OutStreamWrapper::OutStreamWrapper( const CComPtr< IStream >& baseStream ) : m_refCount( 0 ) , m_baseStream( baseStream ) { } OutStreamWrapper::~OutStreamWrapper() { } HRESULT STDMETHODCALLTYPE OutStreamWrapper::QueryInterfac...
#include "misc.h" #include <fstream> #include <unistd.h> #include "3rd-party/catch.hpp" void TestHelpers::assert_article_file_content(const std::string& path, const std::string& title, const std::string& author, const std::string& date, const std::string& url, const std::string& description) { std::string pref...
/* Copyright 2017 - 2021 R. Thomas * Copyright 2017 - 2021 Quarkslab * * 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 req...
// -*- C++ -*- /** * @file dds4ccm_vendor_t.cpp * @author Marcel Smit, Martin Corino * * @brief NDDS specific implementations * * @copyright Copyright (c) Remedy IT Expertise BV */ #include "dds4ccm/impl/dds4ccm_ndds_publisher_listener_t.h" #include "dds4ccm/logger/dds4ccm_log.h" namespace CIAOX11 { nam...
// Copyright 2021 The Tint Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed ...
#include "Precompiled.h" // dear imgui, v1.82 WIP // (tables and columns code) /* Index of this file: // [SECTION] Commentary // [SECTION] Header mess // [SECTION] Tables: Main code // [SECTION] Tables: Row changes // [SECTION] Tables: Columns changes // [SECTION] Tables: Columns width management // [SECTION] Table...
/*========================================================================= * * 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 2018 BGx Graphics Framework. * * 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:/...
// See https://github.com/intel/llvm-test-suite/issues/867 for detailed status // UNSUPPORTED: hip // RUN: %clangxx -fsycl -fsycl-unnamed-lambda -fsycl-targets=%sycl_triple %s -o %t.out -Xsycl-target-backend=nvptx64-nvidia-cuda --cuda-gpu-arch=sm_70 // RUN: %HOST_RUN_PLACEHOLDER %t.out // RUN: %GPU_RUN_PLACEHOLDER %t....
/* * yosys -- Yosys Open SYnthesis Suite * * Copyright (C) 2012 Clifford Wolf <clifford@clifford.at> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in ...
#ifndef RBX_BUILTIN_STATICSCOPE_HPP #define RBX_BUILTIN_STATICSCOPE_HPP #include "builtin/object.hpp" #include "type_info.hpp" namespace rubinius { class Module; class ConstantScope : public Object { public: const static object_type type = ConstantScopeType; private: Module* module_; // slot ...
#include <core/compiler/ignored_warnings.h> // COMPILE TIME CHECKS #include <core/compiler/cpp_version_check.h> // C++11 and later supported #include <core/compiler/os_version_check.h> // Linux and Windows supported // RUNTIME CHECKS #include <core/memory/cpu_memory.h> // To see if cache line we are running on ...
//===--- FrontendAction.cpp -----------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/*++ Copyright (C) Microsoft Corporation, 1998 - 1999 Module Name: misc.cxx Abstract: misc helper functions. Author: Johnson Apacible (JohnsonA) 30-Jan-1998 --*/ #include <NTDSpchx.h> #pragma hdrstop #include "ldapsvr.hxx" extern "C" { #include "mdlocal.h" #undef new #und...
// Copyright (c) 2012-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 "bloom.h" #include "base58.h" #include "clientversion.h" #include "key.h" #include "merkleblock.h" #include "random...
#ifndef DI_SYSTEMS_VR_TEXTURE_DATA_VULKAN_HPP_ #define DI_SYSTEMS_VR_TEXTURE_DATA_VULKAN_HPP_ #include <cstdint> #include <openvr.h> typedef std::uint64_t VkImage ; typedef struct VkDevice_T* VkDevice ; typedef struct VkInstance_T* VkInstance ; typedef struct VkPhysical...
// Filename: mayaNodeDesc.cxx // Created by: drose (06Jun03) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) Carnegie Mellon University. All rights reserved. // // All use of this software is subject to the terms of the revised BSD // license. You shou...
/* * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All rights reserved. * Copyright (C) 2005 Alexey Proskuryakov. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions o...
/*Author--> Vivek Singh Rathore. Date-->16-09-2017 Library demo*/ #include "Complex.h" void Complex::get(){ cout<<"Enter the real and imaginary part\n"; cin>>real>>im; } void Complex::show(){ cout<<"("<<real<<","<<im<<")\n"; } float Complex::abs(){ return sqrt(real*real+im*im); } void Complex::add...
/* * Copyright 2019-2020 Douglas Kaip * * 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 t...
// bridge.cpp /** * Copyright (C) 2008 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...
// // Created by Katie Barr (EI) on 12/10/2017. // #include <tuple> #include "graph.h" Graph::Graph(){ std::vector<std::vector <int> > bubbles; } /* void Graph::add_bubble(std::vector <int> bubble){ bubbles.push_back(bubble); }*/ std::vector<std::vector <std::string> > Graph::calculate_possible_haplotypes()...
/* @flow */ // Copyright (c) 2012-2013 The PPCoin developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2018 The OTRchain 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...
/* ============================================================================== This file is part of the juce_core module of the JUCE library. Copyright (c) 2013 - Raw Material Software Ltd. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby ...
#include "../tic_tac_toe.cpp" #include "package_mgr.h" int main(int argc, char** argv) { run_tic_tac_toe<buddy_mgr>(argc, argv); }
//----------------------------------------------------------------------------- // Copyright (c) 2013 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 restr...
//+------------------------------------------------------------------------ // // Microsoft Windows // Copyright (C) Microsoft Corporation, 1993. // // File: bm_rrpc.hxx // // Contents: test class definition // // Classes: CRawRpc // // Functions: // // History: 19-July-93 t-martig Created /...
/*============================================================================= Copyright (c) 2001-2011 Joel de Guzman Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ====================================...
// Copyright (c) 2019 Bitcoin Association // Distributed under the Open BSV software license, see the accompanying file LICENSE. #include <clientversion.h> #include <config.h> #include <logging.h> #include <memusage.h> #include <mining/journal_change_set.h> #include <net/net.h> #include <policy/policy.h> #include <sch...
// 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/x11input/atom_name.hpp> #include <awl/backends/x11/display.hpp> #include <awl/backend...
#include "site-test.h" #include <QNetworkCookie> #include <QtTest> #include "custom-network-access-manager.h" #include "tags/tag.h" void SiteTest::init() { setupSource("Danbooru (2.0)"); setupSite("Danbooru (2.0)", "danbooru.donmai.us"); m_profile = new Profile("tests/resources/"); m_settings = m_profile->getSet...
#include "ReflectiveMaterial.h" #include "brdf\BRDF.h" #include "brdf\GlossySpecular.h" USING_RDPS USING_FRWK ReflectiveMaterial::ReflectiveMaterial() : MaterialBase(REFLECT_MATERIAL), diffuse(nullptr), specular(nullptr), reflect(nullptr) {} ReflectiveMaterial::ReflectiveMaterial(BRDF *_ambient, ...
#include "HorizontalImgList.h" #include <QPainter> #include <QDebug> #include "utils/utils.h" namespace Ui { HorizontalImgList::HorizontalImgList(const Options &_options, QWidget *_parent) : QWidget(_parent), options_(_options) { setMouseTracking(true); setCurso...
#include <iostream> #include <iomanip> #include <omp.h> using namespace std; double calcPi(int num_steps=1000000) { double step = 1. / (double)num_steps; double pi; double sum = 0.; double x; #pragma omp parallel for reduction(+:sum) private(x) for (int i = 0; i < num_steps; ++i) { x = (i...
// Block String - Patrick Kubiak - 6/8/2015 // Put your text in a block! #include <iostream> #include <string> using namespace std; void blockString(string str); int main() { // input string strInput; cout << "Block Text - Put your text in a block!" << endl; cout << "Text: "; getline(cin, strInput); // output...
/** * Copyright 2019 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...