text
stringlengths
3.08k
22k
// 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 "chrome/browser/managed_mode/managed_mode_site_list.h" #include "base/json/json_file_value_serializer.h" #include "base/logging.h" #include ...
/* * Copyright (c) 2012 ARM Limited * 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 intellectual property relating * to a hardware implementation of the func...
/*========================================================================= Program: Visualization Toolkit Module: TestSMPWarp.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed WITHOUT ...
/********************************************************************** Audacity - A Digital Audio Editor Copyright 1999-2009 Audacity Team License: wxwidgets <NAME> ******************************************************************//** \file Command.cpp \brief Contains definitions for Command, Decorate...
#include <ftw.h> #include <pthread.h> #include <sys/resource.h> #include <unistd.h> #include <atomic> #include <cassert> #include <cerrno> #include <condition_variable> #include <cstdint> #include <cstdio> #include <cstdlib> #include <cstring> #include <mutex> #include <random> #include <string> #include <thread> #inc...
// // BundleUpdate.cpp // Development // // Created by <NAME> on 18.08.14. // // #include <stdio.h> #include "RhodesApp.h" #include "common/RhoMutexLock.h" #include "common/IRhoClassFactory.h" #include "common/RhoFile.h" #include "common/RhoConf.h" #include "common/RhoFilePath.h" #include "common/Tokenizer.h" #inc...
//===- ScheduleDAGVLIW.cpp - SelectionDAG list scheduler for VLIW -*- C++ -*-=// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** * The MIT License (MIT) * * Copyright (c) 2014 VYV 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 * ...
/* Copyright 2012-2020 <NAME> 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 dis...
/* Name: glossary Copyright: Copyright (C) SIL International. Documentation: Description: Create Date: 20 Jul 2008 Modified Date: 28 May 2014 Authors: mcdurdin Related Files: Dependencies: Bugs: Todo: Notes: ...
// Copyright (C) 2018 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // /** * \brief The entry point for the Inference Engine gaze_estimation_demo application * \file gaze_estimation_demo/main.cpp * \example gaze_estimation_demo/main.cpp */ #include <gflags/gflags.h> #include <functional> #include <iostream>...
#include "tkdCmdParser.h" #include "itkImage.h" #include "vnl/vnl_matrix.h" #include "vnl/vnl_vector.h" #include "itkImageMaskSpatialObject.h" #include "vnl/vnl_matrix_ref.h" #include "nrFourier.h" #include "graphCommon.h" #include <vector> #include <iostream> /** * Segmentation combiner. * * For all 4D input lab...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-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 "primitives/block.h" #include "hash.h" #include "tinyformat.h" #include "utilstre...
#include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <signal.h> #include <unistd.h> #include <assert.h> #include <sys/time.h> #include <sys/cdefs.h> #include <sys/types.h> #include <sys/resource.h> #include <pthread.h> #include <cutils/log.h> #include <hardware/sensors.h> #include <...
bool last_uni_char = false; unsigned char last_char; int widthheigthWindow = 0; #define display_mosi 11 #define display_clk 5 #define display_cmddata 27 #define display_cs 26 #define display_reset 40 #define display_enable 3 void spiWrite1(uint8_t d) { for (uint8_t bit = 0x80; bit; bit >>= 1) ...
#include "IntervalGen/IntGenForTf32TwoApprox.h" #include "luts.h" #include "math.h" enum RoundMode {RNE, RNA, RNZ, RNP, RNN}; float RoundDoubleToF8NWithSticky(double v, int bitlength, enum RoundMode rnd, unsigned sticky...
//============================================================================================================= /** * @file realtimemultisamplearray.cpp * @author <NAME> <<EMAIL>>; * <NAME> <<EMAIL>> * @since 0.1.0 * @date February, 2013 * * @section LICENSE * * Copyright (C) 2013, <NAM...
// g2o - General Graph Optimization // Copyright (C) 2011 <NAME>, <NAME>, <NAME>, <NAME> // 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 t...
/**************************************************************************************/ /* */ /* Visualization Library */ /* http://visualizationlibrary.org ...
#include <wayfire/singleton-plugin.hpp> #include <wayfire/output.hpp> #include <wayfire/signal-definitions.hpp> #include <wayfire/render-manager.hpp> #include <wayfire/workspace-manager.hpp> #include <wayfire/nonstd/noncopyable.hpp> #include <type_traits> #include <map> #include <wayfire/core.hpp> #include "system_fade...
//=- ReachableCodePathInsensitive.cpp ---------------------------*- C++ --*-==// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// // Created by clemens on 12.02.19. // #include "ImageProcessor.h" using namespace selfomat::logic; using namespace selfomat::tools; const std::string ImageProcessor::TAG = "IMAGE PROCESSOR"; bool ImageProcessor::start() { loadTemplateImage(); return true; } void ImageProcessor::loadTem...
/* * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related...
// Scintilla source code edit control /** @file Indicator.cxx ** Defines the style of indicators which are text decorations such as underlining. **/ // Copyright 1998-2001 by <NAME> <<EMAIL>> // The License.txt file describes the conditions under which this software may be distributed. #include <cmath> #include <st...
// KanturuMonsterMng.cpp: implementation of the CKanturuMonsterMng class. // GS-N 1.00.18 JPN 0x00578BB0 - Completed ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "KanturuMonsterMng.h" #include "Gamemain.h" #include "TLog.h" #include "configread.h" CKanturuMonster...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "core.hpp" #include "utils.hpp" #include "tracker.hpp" #include "descriptor.hpp" #include "distance.hpp" #include "pedestrian_tracker_demo.hpp" #include <monitors/presenter.h> #include <utils/images_capture.h> #include <ut...
/* * Copyright (c) 2015 Juniper Networks, Inc. All rights reserved. */ #include <pkt/flow_proto.h> #include <pkt/pkt_types.h> #include <pkt/flow_entry.h> #include <init/agent_param.h> #include "ksync_flow_index_manager.h" #include "flowtable_ksync.h" #include "ksync_init.h" #define INDEX_LOCK(idx) \ tbb::mutex t...
/******************************************************************************* * The MIT License (MIT) * * Copyright (c) 2017 DigiDNA - www.digidna.net * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to de...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2014 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 "pow.h" #include "arith_uint256.h" #include "chain.h" #include "chainparams.h" #i...
/* * Copyright (c) 2019 by flomesh.io * * Unless prior written consent has been obtained from the copyright * owner, the following shall not be allowed. * * 1. The distribution of any source codes, header files, make files, * or libraries of the software. * * 2. Disclosure of any source codes pertaini...
/* -------------------------------------------------------------------------- * * OpenSim: Geometry.cpp * * -------------------------------------------------------------------------- * * The OpenSim API is a toolkit for musculoskeletal modeling and simulation....
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #include "PYRichTextSyntaxHighlighterTextLayoutMarshaller.h" #include "WhiteSpaceTextRun.h" #include "Runtime/Launch/Resources/Version.h" FPYRichTextSyntaxHighlighterTextLayoutMarshaller::FPYRichTextSyntaxHighlighterTextLayoutMarshaller(TSharedPtr< FP...
/* Copyright (c) 2012, Spotify AB 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 conditions and the following ...
// // PathUtils.cpp // libraries/shared/src // // Created by <NAME> on 12/15/14. // Copyright 2014 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include "PathUtils.h" #include <mutex> // st...
// Functions for the <see cref="PiaCalPL"/> class to manage present law // pia calculation functions. // // $Id: PiaCalPL.cpp 1.56 2013/10/29 13:12:47EDT 277133 Development $ #include <utility> // for rel_ops #include "PiaCalPL.h" #include "WageInd.h" #include "FrozMin.h" #include "SpecMin.h" #include "Pia...
// main.cpp -- example use of CppGPs for Gaussian process regression // // Eigen macros for using externel routines (may need to be moved to header file) // ( see https://eigen.tuxfamily.org/dox/TopicUsingBlasLapack.html ) //#define EIGEN_USE_BLAS // Must also link to BLAS library //#define EIGEN_USE_LAPAC...
/* Copyright 2013-present Barefoot Networks, 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 w...
#include <FFGL.h> #include <FFGLLib.h> #include <stdio.h> #include <cmath> #include "FFGLChromaKey.h" #include "utilities.h" #ifdef _WIN32 #include "../common/opengl/include/glut.h" #include <windows.h> #else //all other platforms #include <OpenGL/glu.h> #endif #ifdef __APPLE__ //OS X #include <Carbon.h>...
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2022 // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt // https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // Version: 6.1.2022.02.06 #include "BouncingSpheresWindow3.h" #include <Applica...
#include "stdafx.h" #include "UIMessageBox.h" #include "UIXmlInit.h" #include "UI3tButton.h" #include "UIEditBox.h" #include "../string_table.h" CUIMessageBox::CUIMessageBox() { m_UIButtonYesOk = NULL; m_UIButtonNo = NULL; m_UIButtonCancel = NULL; m_UIStaticPicture = NULL; m_UIStaticText = NULL; ...
/* * Copyright 2019 Xilinx, 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...
#ifdef PARALLEL // When using MPICH and MPICH-derived MPI implementations, there is a // naming conflict between stdio.h and MPI's C++ binding. // Since we do not use the C++ MPI binding, we can avoid the ordering // issue by ignoring the C++ MPI binding headers. // This #define should be quietly ignored when using oth...
// Copyright (C) 2019. Huawei Technologies Co., Ltd. All rights reserved. // 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,...
/* Since the format of parameters are same as libsvm, we reference and modify command line parser source code of libsvm in this file. Copyright (c) 2000-2014 <NAME> and <NAME> All rights reserved. */ #include <string.h> #include <stdio.h> #include <stdlib.h> #include <iostream> #include "thundersvm/sv...
//===- ivalue_importer.cpp ------------------------------------------------===// // // This file is licensed under a pytorch-style license // See frontends/pytorch/LICENSE for license information. // //===----------------------------------------------------------------------===// #include "graph_importer.h" #include "...
// merge-counts.cc // Copyright 2016 Johns Hopkins University (Author: <NAME>) // See ../COPYING for clarification regarding multiple 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 L...
/****************************************************************************/ // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo // Copyright (C) 2001-2020 German Aerospace Center (DLR) and others. // This program and the accompanying materials are made available under the // terms of the Ecli...
/* Copyright (c) 2016, Los Alamos National Security, LLC All rights reserved. Copyright 2016. Los Alamos National Security, LLC. This software was produced under U.S. Government contract DE-AC52-06NA25396 for Los Alamos National Laboratory (LANL), which is operated by Los Alamos National Security, LLC for the U.S. ...
// -*- C++ -*- // // ---------------------------------------------------------------------- // // <NAME>, U.S. Geological Survey // <NAME>, GNS Science // <NAME>, University of Chicago // // This code was developed as part of the Computational Infrastructure // for Geodynamics (http://geodynamics.org). // // Copyright ...
/* Copyright (c) <2009> <<NAME>> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * including commercia...
// Heavy-light decomposition (HLD) is a data structure to answer queries and update values on tree // Splitting the trees into separate paths that allows us to use another data structure such as segment tree on a tree // As we decompose the tree, we have enough information to build a lca function (which will be usefu...
/* Copyright (c) <NAME>, 1997. */ /* This program is freely distributable without licensing fees and is provided without guarantee or warrantee expressed or implied. This program is -not- in the public domain. */ /* addfog.c is a set of routines for adding OpenGL-style depth attenuated fog to a scene as a...
/********** Copyright (c) 2018, Xilinx, 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 and the follo...
// Copyright (c) 2022 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...
/* * * Copyright 2016, 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 condi...
#include <cppunit/extensions/HelperMacros.h> #include <ext/alloc_traits.h> #include <regex.h> #include <algorithm> #include <iostream> #include <iterator> #include <map> #include <memory> #include <string> #include <utility> #include <vector> #include "DetectorDescription/Core/interface/Singleton.h" #include "Detector...
/*********************************************************************************************************************** * * * ANTIKERNEL v0.1 ...
// Copyright 2020 ros2_control Development Team // // 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 la...
// Copyright (c) 2021 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distri...
#include "mainwindow.h" #include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui::MainWindow) { ui->setupUi(this); // 设置菜单栏 FacileMenu* fileMenu = new FacileMenu(this); fileMenu->addAction("新建"); fileMenu->addAction("打开"); fileMenu->addAction...
#include "ConsoleLogParser.h" #include "Config/ChatWrappers.h" #include "ConsoleLines.h" #include "Log.h" #include "Util/RegexUtils.h" #include "Config/Settings.h" #include "WorldState.h" #include "Platform/Platform.h" #include <mh/text/format.hpp> #include <mh/future.hpp> #include <mh/text/string_insertion.hpp> #inc...
// license:BSD-3-Clause // copyright-holders:<NAME> /****************************************************************************** Video Hardware for Nichibutsu Mahjong series. Driver by <NAME> <<EMAIL>> 2000/01/28 - ******************************************************************************/ #include "...
#include "TileChunk.h" TileChunk::TileChunk(void) :hasGenerated{false}, collided{false}, player{nullptr}, tileSize{0}, tileScale{0}, tileset{ nullptr } { } TileChunk::TileChunk(const TileChunk& tchunk) { this->tileSize = tchunk.tileSize; this->tileScale = tchunk.tileScale; this->layout = tchunk.layout; this->pl...
/** * Copyright (c) 2007-2012, <NAME> * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this * list of conditi...
// ========================================================================== // SeqAn - The Library for Sequence Analysis // ========================================================================== // // Copyright (c) 2006-2018, <NAME>, FU Berlin // Copyright (c) 2016-2018, <NAME> & <NAME> // All rig...
/* Copyright (c) 2007-2011 iMatix Corporation Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file This file is part of 0MQ. 0MQ 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 Softw...
/** \class HLTMuonRateAnalyzer * Get L1/HLT efficiency/rate plots * * \author <NAME> */ #include "HLTrigger/Muon/test/HLTMuonRateAnalyzer.h" // Collaborating Class Header #include "FWCore/Framework/interface/MakerMacros.h" #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface...
// Copyright(c) 2016 <NAME> // Distributed under the MIT License (See accompanying file LICENSE.md file or copy at http://opensource.org/licenses/MIT). #include "math/pch.h" #include "math/solver/qef/coQEF3.h" #include "math/vector/coVec3_f.h" #include "math/vector/coVec4.h" #include "math/matrix/coMat3_f.h" #include "...
/* Copyright (c) 2007 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicen...
/** * @file nmpc_pc_learning_rover.cpp * @author <NAME> * @date December 2020 * * @copyright * Copyright (C) 2020. */ #include <nmpc_pc_learning_rover.h> using namespace Eigen; NMPCworkspace nmpcWorkspace; NMPCvariables nmpcVariables; NMPC_PC::NMPC_PC(struct nmpc_struct_& _nmpc_inp_struct) { is_contr...
// **************************************************************************** // NOTICE // // This is the copyright work of The MITRE Corporation, and was produced // for the U. S. Government under Contract Number DTFAWA-10-C-00080, and // is subject to Federal Aviation Administration Acquisition Management // System...
#include <vector> #include <cmath> #include "tgaimage.h" #include "model.h" const TGAColor white = TGAColor(255, 255, 255, 255); const TGAColor red = TGAColor(255, 0, 0, 255); const int width = 800; const int height = 800; const int depth = 255; vec3 light_dir(1, 1, 1); vec3 camera(0, 1, 3); vec3 center(0, 0, 0); M...
/*----------------------------------------------------------------  sigma star版权所有。 作者:lison.guo 时间:2020.7.10 ----------------------------------------------------------------*/ #include "iostream" #include "sys.h" #include "sensor.hpp" #include "vif.h" #include "vpe.h" #include "venc.h" #include "ai.hpp" #include "ao...
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX - License - Identifier: Apache - 2.0 #include <awsdoc/s3-crt/s3-crt-demo.h> // snippet-start:[s3-crt.cpp.bucket_operations.list_create_delete] #include <iostream> #include <fstream> #include <aws/core/Aws.h> #include <aws/core/utils/memory/s...
#include <iostream> #include <string> #include <gst/gst.h> #include <glib.h> #include <gst/rtp/rtp.h> static gboolean bus_call (GstBus *bus, GstMessage *msg, gpointer data) { GMainLoop *loop = (GMainLoop *) data; switch (GST_MESSAGE_TYPE (msg)) { case GST_MESSAGE_EOS: g_print ("End of stream\n"); ...
/* * Copyright (c) 2021 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribu...
// Copyright 2021 The Autoware Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // //    http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or a...
// Copyright 2020 <NAME>, 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...
// Copyright 2020 <NAME>, 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...
/******************************************************************************* * Copyright (c) 2018-, UT-Battelle, LLC. * All rights reserved. This program and the accompanying materials * are made available under the terms of the BSD 3-Clause License * which accompanies this distribution. * * Contributors: ...
// -*- mode: C++ -*- // // Copyright (c) 2007, 2008, 2009, 2010, 2011, 2013, 2015, 2017 The University of Utah // All rights reserved. // // This file is part of `csmith', a random generator of C programs. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided t...
#include "types.hpp" #include "uGraph.hpp" #include <set> #include <algorithm> #include <fstream> #include <iostream> #include <pthread.h> #include <stdlib.h> // Global Vals uint64_t clique_num; uint64_t max_clique_size; std::ofstream cfile; pthread_mutex_t *f_lock; void print_vlist(vlist *v); // type definit...
/************************************************************************* * * * Vega FEM Simulation Library Version 4.0 * * * * "integrator" libr...
//--------------------------------------------------------------------------------------------------------------------// // // // Tuplex: Blazing Fast Python Data Scien...
/* Copyright (c) 2005-2020, University of Oxford. All rights reserved. University of Oxford means the Chancellor, Masters and Scholars of the University of Oxford, having an administrative office at Wellington Square, Oxford OX1 2JD, UK. This file is part of Chaste. Redistribution and use in source and binary forms...
// // Created by ice1000 on 18-7-3. // #include <imgui_ext.h> #include <imgui_internal.h> auto ImGui::LineTo(ComVec2 delta, ComVec4 color, const float thickness) -> void { ImGuiWindow *window = GetCurrentWindow(); if (window->SkipItems) return; auto &&cursorPos = ImGui::GetCursorScreenPos(); ImRect bb{cursorPos, ...
#include <chrono> #include <cstdlib> #include <ctime> #include <fstream> #include <iostream> #include <string> #include <vector> #include "tree.ipp" #include "regressieBoom.h" using namespace std; using namespace organ; using namespace tree; int main() { // Main start and end times chrono::time_point<chrono::high...
#include <bits/stdc++.h> using namespace std; const int MAXN = 9999; const int MAXSIZE = 1010; const int DLEN = 4; class BigInt { private: int len, a[1000]; public: BigInt() { len = 1; memset(a, 0, sizeof(a)); } BigInt(const int); BigInt(const char*); BigInt(const BigInt &); BigInt &operator=(...
// posit.cpp: components of a posit: cli to show the sign/scale/regime/exponent/fraction components of standard posit configurations // // Copyright (C) 2017-2021 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. #include <unive...
/* * Copyright (c) 2017, 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, merge, ...
/* * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
/* * Copyright (c) Facebook, Inc. and its affiliates. * 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. */ #include <cpuinfo.h> #include <algorithm> #include <chrono> #include <cmath> #include <iomanip> #include ...
#include <util/cie.hpp> /* The CIE color matching curve, at 5nm intervals. */ static Vector ColorMatchingCurve[81] = { Vector(0.0014,0.0000,0.0065), Vector(0.0022,0.0001,0.0105), Vector(0.0042,0.0001,0.0201), Vector(0.0076,0.0002,0.0362), Vector(0.0143,0.0004,0.0679), Vector(0.0232,0.0006,0.1102), Vector(0...
#include <stdio.h> #include <assert.h> #include "mem/cache/prefetch/feature_knowledge.h" #include "mem/cache/prefetch/feature_knowledge_helper.h" #include "mem/cache/prefetch/knobs.h" #if 0 # define LOCKED(...) {fflush(stdout); __VA_ARGS__; fflush(stdout);} # define LOGID() fprintf(stdout, "[%25s@%3u] ", \ __FU...
#include "nnlayer.h" #include <iostream> #include <random> #include <math.h> float relu(float z) { if (z > 0) { return z; } else { return 0.0; } } float drelu(float z) { if (z > 0) { return 1.0; } else { return 0.0; } } float sigmoid(float z) { return float(1.0 / (1.0 + exp(-...
#include "OrderStateRecord.h" #include "HFUtils.h" #include "DataManager.h" #include <Markets.h> #include <Client/lib3/bookmanagement/common/Book.h> #include <Client/lib3/bookmanagement/common/BookOrder.h> #include <Client/lib3/bookmanagement/common/BookLevel.h> #define BUF_SIZE 1024 typedef lib3::BookOrder OT; cons...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <pthread.h> #include <time.h> #include <sys/time.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include "headers/common.h" #include "headers/cpu-crack.h" #include "headers/gpu-crack.h" int wait_connect(i...
// Data model #include "edm4hep/MCParticleCollection.h" #include "edm4hep/SimTrackerHitCollection.h" #include "edm4hep/CaloHitContributionCollection.h" #include "edm4hep/SimCalorimeterHitCollection.h" // STL #include <iostream> #include <vector> // podio specific includes #include "podio/EventStore.h" #include "podio...
#include <iostream> #include <fstream> #include <sstream> #include "CommonHeader.h" #include <omp.h> #include <iterator> #include <map> #include <random> static std::vector<RMPoint> RMLayerGene(const double & r, const int & n) { std::vector<RMPoint> RMLayer; RMLayer.reserve(n); double phi = M_PI * (3.0 - sqrt(5....
/* IMASM Macro Precompiler Copyright (C) 2003 <NAME>, Shiny Technologies, LLC http://www.shinytechnologies.com Portions Copyright (C) 2003 <NAME>. 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; ...