text
stringlengths
7
961k
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE457_Use_of_Uninitialized_Variable__twointsclass_array_declare_partial_init_05.cpp Label Definition File: CWE457_Use_of_Uninitialized_Variable__twointsclass_array.label.xml Template File: sources-sinks-05.tmpl.cpp */ /* * @description * CWE: 457 Use of Uninitialized Var...
/* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> * 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 noti...
/* ** ** $Filename: b3Thread.cpp $ ** $Release: Dortmund 2001 $ ** $Revision$ ** $Date$ ** $Author$ ** $Developer: Steffen A. Mork $ ** ** Blizzard III - Multithreading routines (for generating dead locks) ** ** (C) Copyright 2001 Steffen A. Mork ** All Rights Reserved ** ** */ /**********************************...
/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: Yvonne Pachmayer <pachmay@physi.uni-heidelberg.de> * * Contributors are ...
/* * Copyright © 2012-2013 Red Hat, Inc. * * 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, pu...
// // LexicalHandler.cpp // // $Id: //poco/1.4/XML/src/LexicalHandler.cpp#1 $ // // Library: XML // Package: SAX // Module: SAX // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // Permission is hereby granted, free of charge, to any person or organization // obtaini...
#include "CfgBuilderUtils.hh" #include "llvm/ADT/APInt.h" #include "llvm/IR/CallSite.h" #include "llvm/IR/Constants.h" #include "llvm/IR/DataLayout.h" #include "llvm/IR/DebugInfo.h" #include "llvm/IR/DebugLoc.h" #include "llvm/IR/Type.h" #include "llvm/IR/Value.h" namespace clam { using namespace ikos; using namespa...
// 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 "network.h" #include <src/lib/fxl/memory/weak_ptr.h> #include "fake_endpoint.h" #include "interceptors/latency.h" #include "interceptors/packet_...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "ShadowView.h" #include <react/renderer/core/LayoutableShadowNode.h> namespace facebook { namespace react { static Layo...
#include "header.h" __declspec(dllexport) LPWSTR APIENTRY DongCreateText(LPCSTR cstr) { int size = MultiByteToWideChar(CP_ACP, 0, cstr, -1, nullptr, 0); LPWSTR path = new WCHAR[size]; MultiByteToWideChar(CP_ACP, 0, cstr, -1, path, size); } __declspec(dllexport) void APIENTRY DongDestroyText(LPWSTR str) { ...
// 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/process_singleton.h" #include <fcntl.h> #include <signal.h> #include <sys/types.h> #include <sys/un.h> #include <sys/wait.h> #in...
// license:BSD-3-Clause // copyright-holders:AJR /*************************************************************************** Super Star (Recreativos Franco) Skeleton driver for 8085-based pinball hardware. TODO: - The ROM for the sound cpu is a bad dump. The 8035 should set itself up, then signal a rst(call 0024)...
#include "stdafx.h" #include "ThreadLocal.h" #include "Exception.h" #include "Log.h" #include <fstream> #include <DbgHelp.h> #include <TlHelp32.h> #include <strsafe.h> #define MAX_BUFF_SIZE 1024 void MakeDump(EXCEPTION_POINTERS* e) { TCHAR tszFileName[MAX_BUFF_SIZE] = { 0 }; SYSTEMTIME stTime = { 0 }; GetSystemTi...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <gtest/gtest.h> #include <arrayfire.h> #include "flashlight/fl/flashlight.h" #include "flashlight/app/asr/criterio...
/* __ _____ _____ _____ __| | __| | | | JSON for Modern C++ (test suite) | | |__ | | | | | | version 2.0.6 |_____|_____|_____|_|___| https://github.com/nlohmann/json Licensed under the MIT License <http://opensource.org/licenses/MIT>. Copyright (c) 2013-2016 Niels Lohmann <http://nlohmann.me>. ...
// 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: BaseStateTransition`1...
/** \file * \brief Implementation of Hashing (class HashingBase) * * \author Carsten Gutwenger * * \par License: * This file is part of the Open Graph Drawing Framework (OGDF). * * \par * Copyright (C)<br> * See README.txt in the root directory of the OGDF installation for details. * * \par * This program ...
// Copyright 2012 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...
// HFSM2 (hierarchical state machine for games and interactive applications) // Created by Andrew Gresyk //////////////////////////////////////////////////////////////////////////////// template <typename TConfig> void LoggerT<TConfig>::recordMethod(Context& /*context*/, const StateID origin, cons...
//Code By HeRaNO #include<iostream> using namespace std; int main() { int n; cin >> n; if (n < 0) cout << "negative"; else if (n == 0) cout << "zero"; else cout << "positive"; return 0; }
#include<bits/stdc++.h> using namespace std; using ll = long long; /** Given n and a real number x >= 0, returns the closest rational approximation p/q s.t. p, q <= n. It will obey that |p/q - x| is minimum for p, q <= n Time: O(log n) **/ using ld = long double; pair<ll, ll> approximate(ld x, ll n) { ll LP = 0, LQ ...
// // policeAndRecuit.cpp // C++ // // Created by Anish Mookherjee on 29/03/20. // Copyright © 2020 Anish Mookherjee. All rights reserved. // #include <iostream> #include <vector> using namespace std; int main() { int n,police=0,crime=0; cin>>n; for(int i=0;i<n;i++) { int x; cin>>x...
/* Copyright 2008 Larry Gritz and the other authors and contributors. 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 noti...
/** @file IConnection.cpp @author Lime Microsystems (www.limemicro.com) @brief Implementation of IConnection interface */ #include "IConnection.h" #include "ErrorReporting.h" #include <cstring> //memcpy #include <chrono> #include <thread> using namespace lime; DeviceInfo::DeviceInfo(void): addrSi5...
#include <chrono> #include "../header/original.h" #include "../header/gen_ukr_bfxycwh_f16layout_1_128_68_68_256_1_1.h" //#include "../header/gen_ukr_bfxycwh_1_64_224_224_3_3_3.h" #include "../header/transpose.h" void ukrimpl(float *A, float *B, float *oB, float *C, long long *oAstride, int b, int f, int x...
/*******************************************************************\ Module: ANSI-C Misc Utilities Author: Daniel Kroening, kroening@kroening.com \*******************************************************************/ #include <util/arith_tools.h> #include <util/config.h> #include <util/std_types.h> #include <util/s...
/* This file is part of Into. * Copyright (C) Intopii 2013. * All rights reserved. * * Licensees holding a commercial Into license may use this file in * accordance with the commercial license agreement. Please see * LICENSE.commercial for commercial licensing terms. * * Alternatively, this file may be used und...
// -*- C++ -*- // $Id: Keyed_Test_Receiver_exec.cpp 92902 2010-12-17 15:09:42Z mcorino $ /** * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3 * TAO and the TAO IDL Compiler have been developed by: * Center for Distributed Object Computing * Washington University * St. Louis, MO * ...
#ifndef QUANTIZER_FAST_HPP_ #define QUANTIZER_FAST_HPP_ #include "../Quantizer.hpp" namespace aff3ct { namespace module { template <typename R = float, typename Q = short> class Quantizer_fast : public Quantizer<R,Q> { private: const int val_max; const int val_min; const short fixed_point_pos; // 0 = no decima...
// Copyright (c) 2020 by Robert Bosch GmbH. 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...
// // Created by rainer on 19.12.19. // #include "Shearing.h" Shearing::Shearing(double xy, double xz, double yx, double yz, double zx, double zy) { m[0] = {1, xy, xz, 0}; m[1] = {yx, 1, yz, 0}; m[2] = {zx, zy, 1, 0}; m[3] = {0, 0, 0, 1}; }
/*! * Copyright (c) 2012, 2013 BlackBerry Limited. * * 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 agr...
// Copyright 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 "cc/trees/layer_tree_host.h" #include "cc/animation/animation_curve.h" #include "cc/animation/layer_animation_controller.h" #include "cc/animati...
// // Created by kaiser on 18-11-28. // #include <cstdint> #include <iostream> std::int32_t fact(std::int32_t val) { std::int32_t ret{1}; while (val > 1) { ret *= val; --val; } return ret; } int main() { std::cout << fact(5) << '\n'; }
/* * Copyright (c) 2011-2019, The DART development contributors * All rights reserved. * * The list of contributors can be found at: * https://github.com/dartsim/dart/blob/master/LICENSE * * This file is provided under the following "BSD-style" License: * Redistribution and use in source and binary forms, w...
#include "SamplePlugin.hpp" SamplePlugin::SamplePlugin(): RobWorkStudioPlugin("SamplePluginUI", QIcon(":/pa_icon.png")) { setupUi(this); _timer = new QTimer(this); connect(_timer, SIGNAL(timeout()), this, SLOT(timer())); // now connect stuff from the ui component connect(_btn_im ,SIGNAL(pressed()), t...
#if USE_OPFOR /*** * * Copyright (c) 1996-2001, Valve LLC. All rights reserved. * * This product contains software technology licensed from Id * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. * All Rights Reserved. * * Use, distribution, and modification of this source code and/or resulti...
/* 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...
// Boost.Range library // // Copyright Thorsten Ottosen, Neil Groves 2006 - 2008. Use, modification and // distribution is subject to 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) // // For more information, see http://www.boos...
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" using nam...
// Copyright (c) 2015 The Bitcoin Core developers // Copyright (c) 2017 The PIVX developers // Copyright (c) 2018 The SLATE developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "scheduler.h" #include "reverselock...
// Copyright 2017 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/services/secure_channel/secure_channel.h" #include <memory> #include "base/bind.h" #include "base/memory/ptr_util.h" #include "chrome...
// Copyright (c) 2019 // Commonwealth Scientific and Industrial Research Organisation (CSIRO) // ABN 41 687 119 230 // // Author: Kazys Stepanas #include "VoxelBuffer.h" namespace ohm { template <typename VoxelBlock> VoxelBuffer<VoxelBlock>::VoxelBuffer(ohm::VoxelBlock *block) : voxel_block_(block) { if (block) ...
// // Copyright (C) 2010 Aleksandar Zlateski <zlateski@mit.edu> // ---------------------------------------------------------- // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either versio...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers //Copyright (c) 2015-2019 The PIVX developers //Copyright (c) 2020 The ogcnode developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-licens...
// Copyright (c) 2014-2017 The Dash Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "activemasternode.h" #include "init.h" #include "instantx.h" #include "key.h" #include "validation.h" #include "mas...
/* * Copyright (c) 2016 MariaDB Corporation Ab * * Use of this software is governed by the Business Source License included * in the LICENSE.TXT file and at www.mariadb.com/bsl11. * * Change Date: 2023-01-01 * * On the date above, in accordance with the Business Source License, use * of this software will be g...
#include <service/sendcontext.hpp> #include <router/abstractrouter.hpp> #include <routing/path_transfer_message.hpp> #include <service/endpoint.hpp> #include <util/logic.hpp> namespace llarp { namespace service { SendContext::SendContext(const ServiceInfo& ident, const Introductio...
// Copyright 2017 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 <windows.h> // Must come before other Windows system headers. #include <oleacc.h> #include <wrl/client.h> #include "base/strings/utf_string_co...
#include <stdio.h> #include <unistd.h> #include "Thread.hpp" #include "Runnable.hpp" #include "BlockingQueue.hpp" #include "ExecutorService.hpp" #include "Integer.hpp" #include "Executors.hpp" #include "Future.hpp" #include "System.hpp" using namespace obotcha; DECLARE_CLASS(TestScheduleCancelRun1) IMPLEMENTS(Runna...
#include <vcl_compiler.h> // ------------------------------------------------ // this *does* work for SGI CC 7.2.1 -- fsm template <class T> struct X { int x; X(); // declaration of static template member. static X<T> *pl; }; template <class T> X<T>::X() : x(1728) { } // definition (not specialization) of ...
// featbin/apply-ltsv.cc #include "base/kaldi-common.h" #include "util/common-utils.h" #include "matrix/kaldi-matrix.h" #include "transform/featxtra-functions.h" using namespace std; int main(int argc, char *argv[]) { try { using namespace kaldi; const char *usage = "Apply LTSV (Long Term Spectral ...
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
/* Copyright (C) 2003-2013 by David White <davewx7@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 Foundation, either version 2 of the License, or (at your option) any later version....
/* 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 not use this f...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2017 The Bitcoin Core developers // Copyright (c) 2017-2018 The Toschain Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <sync.h> #includ...
#include "BuildOrderManager.h" #include "Blinkerbot.h" BuildOrderManager::BuildOrderManager(BlinkerBot & bot) : blinkerBot(bot), enemyHasCloak(false), currentBases(0), currentGases(0), currentProductionFacilities(0), currentCannons(0), enemyRace(Race::Random) { } ProductionGoal::ProductionGoal(AbilityID type, int qua...
#ifndef H2FBB703F_2DC3_46B1_9587_2A90DA15C335 #define H2FBB703F_2DC3_46B1_9587_2A90DA15C335 #include <tlp/test/details/Print.h> #include <tlp/test/details/Asserter.h> #include <tlp/test/details/Fixture.h> #include <tlp/test/details/TestReporter.h> #endif
#include <stdint.h> #include <vector> #include "gtest/gtest.h" #include "gmock/gmock.h" #include "Klv.h" class KlvTest : public ::testing::Test { protected: KlvTest() { } virtual ~KlvTest() { // Code here will be called immediately after the constructor (right // before each test). } ...
#include <iostream> #include <algorithm> #include <iomanip> using namespace std; int const N = 100001; int arr[N]; bool cmp(int a, int b) { return a > b; } int main() { int n, n1, n2; cin >> n >> n1 >> n2; if(n1 > n2) swap(n1, n2); for(int i = 1; i <= n; i++) cin >> arr[i]; sort(arr+1, a...
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in complian...
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
/* WS2812FX.cpp contains all effect methods Harm Aldick - 2016 www.aldick.org LICENSE The MIT License (MIT) Copyright (c) 2016 Harm Aldick 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 ...
// 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 "chromeos/cryptohome/cryptohome_library.h" #include <map> #include "base/bind.h" #include "base/chromeos/chromeos_version.h" #include "base...
/*******************************************************************\ Module: Tests for coverage instrumentation Author: Diffblue Ltd \*******************************************************************/ #include <goto-instrument/cover_instrument.h> #include <testing-utils/use_catch.h> TEST_CASE("cover_intrument_e...
//---------------------------------*-C++-*-----------------------------------// /*! * \file CudaUtils/test/Texture_Vector_Test_Kernel.cc * \author Seth R Johnson * \date Sat Sep 21 12:09:12 2013 * \brief Texture_Vector_Test_Kernel definitions. * \note Copyright (C) 2013 Oak Ridge National Laboratory, UT-Bat...
#pragma once #include <string> using Code = std::string; using Input = std::string; struct Brainfuck final { std::string interpret(Code const& code, Input const& input) const; Brainfuck() = default; Brainfuck(Brainfuck const&) = delete; Brainfuck& operator=(Brainfuck const&) = delete; };
// Copyright (c) 2012-2019 The PaydayCoin 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 <key_io.h> #include <script/script.h> #include <uint256.h> #include <util/system.h> #include <u...
/* * CRL Entry * (C) 1999-2010 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/crl_ent.h> #include <botan/x509cert.h> #include <botan/x509_ext.h> #include <botan/der_enc.h> #include <botan/ber_dec.h> #include <botan/bigint.h> #include <botan/oids.h> namespace Bot...
// Full definition ranges for function templates are recorded. //- @"template <typename T> void f(T t) { }" defines TFnF //- @f defines/binding TFnF template <typename T> void f(T t) { } //- @f defines/binding TFnFTS //- @"template <> void f(int t) { }" defines TFnFTS template <> void f(int t) { } //- @f defines/bin...
/* * Copyright (C) 2007-2021 Intel Corporation. * SPDX-License-Identifier: MIT */ /* ===================================================================== */ /*! @file Replace an original function with a custom function defined in the tool. The new function can have either the same or different signature from t...
// Copyright (C) 2012 GlavSoft LLC. // All rights reserved. // //------------------------------------------------------------------------- // This file is part of the TightVNC software. Please visit our Web site: // // http://www.tightvnc.com/ // // This program is free software; you can redistri...
/* * @file * @author TPOC: contact@palisade-crypto.org * * @section LICENSE * * @copyright Copyright (c) 2019, New Jersey Institute of Technology (NJIT)) * All rights reserved. * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following condi...
// Copyright (c) 2010 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/service/cloud_print/job_status_updater.h" #include "base/json/json_reader.h" #include "base/string_util.h" #include "base/utf_string...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file license.txt or http://www.opensource.org/licenses/mit-license.php. #include <map> #include <boost/version.hpp> #include <boost/filesystem.hpp> #...
/*! @file Forward declares `boost::hana::contains` and `boost::hana::in`. @copyright Louis Dionne 2013-2016 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_HANA_FWD_CONTAINS_HPP #define BOOST_HANA_FWD_CONTAINS_...
#include <iostream> #include <climits> using namespace std; #define MAX 1000 void print(int arr[], int n) { for(int i=0; i<n; i++) { cout << arr[i] << " "; } cout << endl; } int max(int arr[], int n) { int max = INT_MIN; for(int i=0; i<n; i++) { if(arr[i] > max) max = arr[i]; } return max; } void count_...
/** * UGENE - Integrated Bioinformatics Tools. * Copyright (C) 2008-2020 UniPro <ugene@unipro.ru> * http://ugene.net * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * ...
#include "LogFile.h" #include "FileUtil.h" #include <assert.h> #include <stdio.h> #include <time.h> namespace GaoServer { LogFile::LogFile(const std::string& basename, int flushEveryN) : basename_(basename), flushEveryN_(flushEveryN), count_(0), mutex_(new MutexLock) { file_.reset(new AppendFile(ba...
// Copyright (c) 2015-2018 The PIVX developers // Copyright (c) 2018 The BlastX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "multisigdialog.h" #include "forms/ui_multisigdialog.h" #include "askpassph...
// 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. // Canonicalizer functions for working with and resolving relative URLs. #include <lib/syslog/cpp/macros.h> #include <iostream> #include "src/lib/url/u...
#include <QtCharts/QChartView> #include <QtWidgets/QApplication> #include <QtWidgets/QMainWindow> #include <QWidget> #include <QObject> #include "graphic.h" QT_CHARTS_USE_NAMESPACE int main(int argc, char *argv[]) { QApplication a(argc, argv); QMainWindow window; Graphic *graphic = new Graphic; QC...
/* * 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...
#include "duckdb/function/aggregate/distributive_functions.hpp" #include "duckdb/common/exception.hpp" #include "duckdb/common/types/null_value.hpp" #include "duckdb/common/vector_operations/vector_operations.hpp" using namespace std; namespace duckdb { struct CountOperator { template <class STATE_TYPE> static inli...
/* The MIT License (MIT) Copyright (c) 2013-2015 SRS(ossrs) 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, merg...
// // Generated file. Do not edit. // // clang-format off #include "generated_plugin_registrant.h" #include <file_selector_windows/file_selector_plugin.h> #include <menubar/menubar_plugin.h> #include <url_launcher_windows/url_launcher_windows.h> void RegisterPlugins(flutter::PluginRegistry* registry) { FileSelec...
////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2004-2020 musikcube 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: // // * Redist...
#ifndef INCLUDE_VNI_GENERATED_vnl_op_code_t_HXX_ #define INCLUDE_VNI_GENERATED_vnl_op_code_t_HXX_ // AUTO GENERATED by virtual-network-interface codegen #include <vnl/Type.hxx> namespace vnl { class op_code_t : public vnl::Enum { public: static const uint32_t VNI_HASH = 0x1aa757db; static const uint32_t NOOP ...
/******************************************************************************* * Copyright (c) 2012-2014, The Microsystems Design Labratory (MDL) * Department of Computer Science and Engineering, The Pennsylvania State University * All rights reserved. * * This source code is part of NVMain - A cycle accurate timing...
////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2014-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) // // See http://www.boost.org/libs/move fo...
/* * This source file is part of RmlUi, the HTML/CSS Interface Middleware * * For the latest information, see http://github.com/mikke89/RmlUi * * Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd * Copyright (c) 2019 The RmlUi Team, and contributors * * Permission is hereby granted, free of charge, to...
class Solution { public: string getSmallestString(int n, int k) { string s=""; for(int i=0;i<n;i++) s+='a'; k=k-n; for(int i=n-1;i>=0;i--) { if(k==0) break; else if(k<25) { s[i] = (char)('a'+k); ...
/*! * \file x11/RandR/iRandR_reload.cpp * \brief \b Classes: \a iRandR */ /* * Copyright (C) 2015 EEnginE 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.apac...
#include <Eigen/Dense> #include <Utils.hpp> #include "CommonGates.hpp" #include "FermionOperator.hpp" #include "ObservableTransform.hpp" #include "PauliOperator.hpp" #include "cppmicroservices/BundleActivator.h" #include "cppmicroservices/BundleContext.h" #include "cppmicroservices/ServiceProperties.h" #include "qrt.h...
/** \file Neuron.cpp \brief Implements the neuron class. **/ #include "StdAfx.h" #include "Synapse.h" #include "Neuron.h" #include "FiringRateModule.h" namespace FiringRateSim { namespace Neurons { /** \brief Default constructor. \author dcofer \date 3/29/2011 **/ Neuron::Neuron() { m_lpFRModule = NULL; m_bE...
/* * * 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"); y...
/******************************************************************************* * Copyright 2020 FUJITSU LIMITED * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apa...
/* * Copyright (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 <ScriptCanvas/Core/Datum.h> #include <ScriptCanvas/Core/EBusHandler.h> #include <ScriptCa...
//===-- TestDWARFCallFrameInfo.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 // //===------------------------...
/* Copyright 2020 René Ferdinand Rivera Morell Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #include <sstream> #include <iostream> #include <lyra/lyra.hpp> #include "mini_test.hpp" int main(int, const char**) { us...