text
stringlengths
8.71k
38.4k
// Copyright (c) 2019 EPI-ONE Core Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "dag_manager.h" #include "block_store.h" #include "peer_manager.h" #include "rpc_server.h" DAGManager::DAGManager() : verify...
// license:GPL-2.0+ // copyright-holders:<NAME> /*************************************************************************** vtech2.c machine driver <NAME> <<EMAIL>> MESS driver, Jan 2000 <NAME> <<EMAIL>> ROM dump and hardware description TODO: Add loading images from WAV files. Pr...
/* Author(s): <NAME> (csl37) Project: sweep (population balance solver) Copyright (C) 2019 <NAME>. Licence: This file is part of "sweepc". sweepc 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 F...
/* * Copyright (c) 2021 Huawei Device 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 or ...
#include "FWCore/Framework/interface/stream/EDProducer.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/Utilities/interface/InputTag.h" #include "DataFormats/Common/interface/Handle.h" #include "FWCore/Framework/interface/ESHandle.h" #include "Da...
/* Notes: Hermite Interpolation used for spline path of disc animation Pressing "s" solves the puzzle from the initial state, not from any state Rotation is done by changing orientation i.e normal vector n = normalized(new_interpolated_position - previous_position) then finding out th...
// Copyright (c) 2010 <NAME> // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2018 The KORE developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #includ...
// [[Rcpp::plugins(cpp11)]] #include <Rcpp.h> #include <algorithm> #include <vector> #include <tuple> #include <iostream> struct Region { using CellType = char; using Matrix = std::vector<CellType>; static const CellType exist = 1; static const CellType absent = 0; }; const Region::CellType Region::exis...
#include "SceneOCL.h" #include <cassert> #include "BVHSplit.h" #include "TextureUtilsRef.h" Ray::Ocl::Scene::Scene(const cl::Context &context, const cl::CommandQueue &queue, size_t max_img_buf_size) : context_(context), queue_(queue), max_img_buf_size_(max_img_buf_size), nodes_(context, queue, CL_MEM_READ_ON...
/** * \file dnn/test/naive/conv_bias.cpp * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2020 Megvii Inc. All rights reserved. * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS I...
// // ArduinoP13.cpp // // An implementation of Plan13 in C++ by <NAME> // // Plan13 is an algorithm for satellite orbit prediction first formulated // by <NAME>. I learned about it when I saw it was the basis // of the PIC based antenna rotator project designed by G6LVB. // // http://www.g6lvb.com/Articles/LVBTracke...
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % by: <NAME> % % University of Bonn- MSc Robotics & Geodetic Engineering% % <EMAIL> % % AlirezaAhmadi.xyz % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
#include <Arduino.h> #include "AsyncJson.h" #include <config.h> #include <LITTLEFS.h> #include <AsyncElegantOTA.h> #include <rtc.h> #include <nixies.h> #include <NTPClient.h> AsyncWebServer server(80); AsyncWebSocket ws("/ws"); Configurator cfg; Nixies nix; RTC rtc1; WiFiUDP ntpUDPweb; // Replace placeholders in HT...
/* * util.cpp * * This file is a part of NSIS. * * Copyright (C) 1999-2015 Nullsoft and Contributors * * Licensed under the zlib/libpng license (the "License"); * you may not use this file except in compliance with the License. * * Licence details can be found in the file COPYING. * * This software is ...
// // Created by <NAME>. // // uncomment to disable assert() // #define NDEBUG #include <cassert> #include <iostream> #include <cstdio> #include <iomanip> #include <ios> #include <sstream> #include <fstream> #include <string> #include <cmath> #include <cstdlib> #include <ctime> #include <functional> #include <array> #...
#pragma once #include <appbase/application.hpp> #include <hive/chain/database.hpp> #include <hive/chain/util/delayed_voting.hpp> #include <fc/io/json.hpp> #include <fc/smart_ref_impl.hpp> #include <hive/plugins/debug_node/debug_node_plugin.hpp> #include <hive/utilities/key_conversion.hpp> #include <hive/plugins/blo...
/* ################################################################################################## // Copyright Info : Copyright (c) <NAME> @ Hikvision Research Institute. All rights reserved. // Filename : tp_data.cpp // Abstract : GT_mask generating in Text Perceptron // Current Version: 1...
#include "global.h" #include <math.h> #include "indicator_igd.h" #include "indicator_hv.h" #include <time.h> #define MAX_STR 1024 void setMPI() { int cur_strct_type; int algo_mech_type = st_ctrl_p.algo_mech_type; int multiPop_mode = st_ctrl_p.multiPop_mode; // if(algo_mech_type == LOCALIZATION || ...
#include "lvl_truck.h" const float RtoD = 180.0f/3.1416f; void transmission::init( std::istream& is ) { is >> reverseIO;// ratio in reverse gear ( -1.0f ) is >> gearNum;// abuse as number of gears gearVec.reserve( gearNum ); for( int i = 0; i < gearNum; ++i ) { gear tmpGear; is ...
#include <EBV_Stereo_Calibration.h> IntrinsicsData::IntrinsicsData() { m_K.resize(3*3); m_D.resize(1*5); } StereoCalibrator::StereoCalibrator(LaserController* laser, Filter* filter0, Filter* filter1, Trian...
/** * @file Video.cpp * @brief Video Class Implementation * @author KrizTioaN (<EMAIL>) * @date 2021-07-26 * @note BSD-3 licensed * ***********************************************/ #include "Video.h" Video::Video() { Video::sleep.tv_sec = 1; Video::sleep.tv_nsec = 0; Video::videoFD = -1; ...
//===--- GenReflection.cpp - IR generation for nominal type reflection ----===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
/* * Copyright (c) 2020, <NAME> <<EMAIL>> * Copyright (c) 2020, <NAME> <<EMAIL>> * 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...
#include "DKDuktape/DKKeyCodes.h" // https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values // https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code/code_values std::map<Key, DKKeyCodes::KeyboardEventMap> DKKeyCodes::keys; void DKKeyCodes::mapKey(Key name, DKString key, DKString ...
//===- LowerMemIntrinsics.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 "window.h" #include "unicodestuff.h" #include "globals.h" #include "comstuff.h" #include "cursor.h" #include "private_defs.h" #include "keystuff.h" #include "action.h" #include "win32util.h" #include "MyDropTarget.h" #include <ShellScalingApi.h> #include <windowsx.h> // for some macros (GET_X_LPARAM etc) ...
/* Copyright (c) by respective owners including Yahoo!, Microsoft, and individual contributors. All rights reserved. Released under a BSD (revised) license as described in the file LICENSE. */ #include <float.h> #include <errno.h> #include "reductions.h" #include "v_hashmap.h" #include "label_dictionary.h" #inc...
/** * @file mus-dsm-dsik.cpp * @brief Support for the Digital Sound Interface Kit DSMF format. * * This file format is fully documented on the ModdingWiki: * http://www.shikadi.net/moddingwiki/DSIK_Module_Format * * Copyright (C) 2010-2015 <NAME> <<EMAIL>> * * This program is free software: you can redistri...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <functional> #include <memory> #include <set> #include <stdio.h> #include <string> #include <unordered_map> #include <un...
#include "MprPositionListView.h" #include "MprPositionList.h" #include "MprPosition.h" #include "MprProgramItemBase.h" #include <cnoid/ViewManager> #include <cnoid/MenuManager> #include <cnoid/TargetItemPicker> #include <cnoid/Buttons> #include <cnoid/ConnectionSet> #include <cnoid/BodyItem> #include <cnoid/EigenUtil> ...
/* * Fast Positive Tuples (libfptu), aka Позитивные Кортежи * Copyright 2016-2020 <NAME> <<EMAIL>> * * 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/...
#include "actor.h" #include <sstream> using namespace Alignment; using namespace TBOT01; using namespace std; using namespace std::chrono_literals; #define EVAL(x) { std::ostringstream str; str << #x << ": " << (x); RCLCPP_INFO(this->get_logger(), str.str());} typedef std::chrono::duration<double> sec; typedef std::...
/* This file is part of confetti library * Copyright (c) 2020-2021 <NAME> <<EMAIL>> * * 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 th...
#include <iostream> #include <cmath> #include <vector> #include <unistd.h> #include <GL/freeglut.h> #include <structure.h> #include <material_color.h> #include <getopt.h> #include <periodic_table.h> #include <obj.h> #include <opencv/cxcore.h> // For save video #include <opencv/highgui.h> #include <opencv2/...
/* CdiFile.cpp, 2015/07/28 Copyright (C) 2015 <NAME> <<EMAIL>> Please check license file in the root folder for detail license info. */ #include "CdiFile.h" #include <memory.h> #include <malloc.h> #include <string.h> #include "EDCECCTool.h" CdiFile::CdiFile(const char* inputCdiFilenam...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ /* This file is part of the HiGHS linear optimization suite */ /* */ /* Written an...
/******************************************************************************* gaussianVolume.cpp - Shape-it Copyright 2012-2021 by Silicos-it, a division of Imacosi BVBA, <NAME>, and the Shape-it contributors This file is part of Shape-it. Permission is hereby granted, free of charge, to any person obtaining a co...
/** * \file dnn/src/naive/deformable_conv/opr_impl.cpp * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed ...
//============================================================================================= // Szamitogepes grafika hazi feladat keret. Ervenyes 2012-tol. // A //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // sorokon beluli reszben celszeru garazdalkodni, mert a tobbit ugyis toroljuk. // A beadott program cs...
// Copyright <NAME> (<EMAIL>) 2016. // Copyright <NAME> (<EMAIL>) 2016. // 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 <boost/metaparse/string.hpp> template <char C> struct to_upper_char; ...
/* ============================================================ * QupZilla - WebKit based browser * Copyright (C) 2010-2012 <NAME> <<EMAIL>> * * 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, ei...
#include <memory> #include <iostream> #include <vector> #include <TTree.h> // user include files #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/one/EDAnalyzer.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "FWCor...
//////////////////////////////////////////////////////////////////////////////// // // Filename: butterfly_tb.cpp // {{{ // Project: A General Purpose Pipelined FFT Implementation // // Purpose: A test-bench for the butterfly.v subfile of the generic // pipelined FFT. This file may be run autonomously. If so, // th...
/* * DataHandlerClass.cpp * * This is the implementation of the DataHandlerClass.h * Three threads are spawned when start() is called. * 1) readIncomingData() thread * 2) sortIncomingData() thread * 3) syncedBufferSwap() thread * * Together they implement a double-buffered read from the data serial port ...
/****************************************************************************** * * @file: main.cpp * * @date: 02/27/2013 11:35:09 AM (CET) * * @author: <NAME> <<EMAIL>> * ******************************************************************************/ # include <iostream> # include <iomanip> # include <vector> ...
/* kska-io-support.c - Supporting functions for ksba reader and writer * Copyright (C) 2001-2005, 2007, 2010-2011, 2017 <NAME> * Copyright (C) 2006 g10 Code GmbH * * This file is part of GnuPG. * * This file is free software; you can redistribute it and/or modify * it under the terms of either * * - the GN...
//===-- RISCVISAInfo.cpp - RISCV Arch String Parser --------------===// // // 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 // //===------------------------------------...
// This program is free software: you can use, modify and/or redistribute it // under the terms of the simplified BSD License. You should have received a // copy of this license along this program. If not, see // <http://www.opensource.org/licenses/bsd-license.html>. // // Copyright (C) 2012, <NAME> <<EMAIL>> // All ri...
#include "FaceDetection.h" #include "log4cxx/Loging.h" #include "SubTopic.h" #include "endecode/Base64.h" #include "comm/CommFun.h" #include "CommData.h" using namespace std; using namespace cv; using namespace common_cmmobj; using namespace common_template; using namespace Vision_FaceAlg; const int img_channels = 3;...
/* * Copyright 2018 The Chromium OS 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 <fcntl.h> #include <sys/mount.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/un.h> #include <unistd.h> #include <string...
#include <VrApi.h> #include <VrApi_Helpers.h> #include <VrApi_Input.h> #include <VrApi_SystemUtils.h> #include <android_native_app_glue.h> #include <EGL/egl.h> #include <EGL/eglext.h> #include <GLES3/gl3.h> #include <android/log.h> #include <android/window.h> #include <stdint.h> #include <stdlib.h> #include <unistd.h> ...
/** * @file object_model.cpp * @brief Object recognition search environment * @author <NAME> * Carnegie Mellon University, 2015 */ #include <sbpl_perception/object_model.h> #include <kinect_sim/model.h> #include <pcl_conversions/pcl_conversions.h> #include <pcl_ros/transforms.h> #include <omp.h> #include <pcl/c...
#include "apu.h" #include <cassert> #include <cstdio> #include <cstring> #include <climits> /*------------------------------ Lookup Tables -----------------------------*/ // https://wiki.nesdev.com/w/index.php/APU_Mixer#Emulation // Instead of doing custom waveform synthesis and mixing for each channel, these // ...
/******************************************************************************* * Copyright (c) 2021, <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: * * 1. Redistributions of sourc...
#include "../includes.h" #include "utils.h" ImVec2 utils::GetLocalCursor() { ImGuiIO & io = ImGui::GetIO(); ImGuiContext &g = *ImGui::GetCurrentContext(); ImGuiWindow * w = g.CurrentWindow; ImVec2 cursor = ImVec2(io.MousePos.x - w->Pos.x, io.MousePos.y - w->Pos....
/* * Copyright 2019 <NAME> <<EMAIL>>. * * 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...
/************************************************************************************************** * * * Package: FlowVectorCorrections * * Authors: <N...
#include <gtest/gtest.h> #include "dataset.h" TEST(Dataset_Test, BasicSetGetTest) { Dataset ds; ds.set("data_1", dw::any(5)); ds.set("data_2", dw::any(6.66f)); ds.set("data_3", dw::any("I'm data_3")); ds.set("data_4", dw::any('s')); ds.set("data_5", dw::any(3.14)); auto data_1 = ds.get("d...
///////////////////////////////////////// // Lempel-Ziv-Huffman File Compressor // // author: <EMAIL> // // date : 2018 // ///////////////////////////////////////// // stl #include <filesystem> #include <iostream> #include <sstream> #include <iomanip> #include <fstream> #include <string> #...
#define TAG "[FGR] " #include "fast_global_registration.h" Eigen::Matrix4f FastGlobalRegistration::performRegistration(){ timer_.tic(); AdvancedMatching(); timer_.toc("Matching"); timer_.tic(); if(closed_form) OptimizePairwise_ClosedForm(iteration_number); else OptimizePairwise(iteration_number); timer_...
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "gfxXlibNativeRenderer.h" ...
/////////////////////////////////////////////////////////////////////// // // Converts a recurrent neural network into a finite state transducer // in order to integrate long-span information within the decoding process // // <NAME> // Oct. 2011 // ///////////////////////////////////////////////////////////////////////...
/** * Octopipes * Developed by <NAME> * * MIT License * Copyright (c) 2019-2020 <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 limi...
#include "pch.h" #include "anim_text_file_export.h" #include "anim_export_util.h" #include "maya_memory.h" #include <xray/configs.h> #include <xray/animation/world.h> #include <xray/animation/api.h> #include <xray/animation/i_skeleton_animation_data.h> #include <xray/animation/i_bone_names.h> #include <x...
/****************************************************************************** Copyright 2017-2020 typed_python 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://ww...
// 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 "components/password_manager/core/browser/password_form_manager.h" #include <algorithm> #include "base/metrics/histogram.h" #include "base/...
/* Copyright 2018 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/LICENTE-2.0 Unless required by applicable ...
/*************************************************************** * * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. Y...
#include "GeometryGenerator.h" #include <algorithm> #include <Windows.h> using namespace DirectX; // ==================================================================================================================== Vertex GeometryGenerator::MidPoint(const Vertex& v0, const Vertex& v1) { XMVECTOR p0 = XM...
int VZm, DCBx7 , bYb ,QN ,kh , jx, Q ,FpK ,e1aB,v/*c*/,V8V ,XkE ,/**/ pbSn /*C*/ , h, O8,jdktS, J, h7tcp , PgV , zZXB , r ,DJI, yeQ, A3 , LEA/**/ ,WH , tFS ,Sej,/**/ eqMqP, CK, OpW , //W8gU Ejj , Hx, /*Xdf*/Vi ,mL , d ,eMgd, pc ,nc3a, RHAO,C , XcYIL,gQv , ZP , vERm ,MCt ,EJ1F9 ,TWG ; v...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
#include <cdpr_controllers/tda.h> #include <visp/vpIoTools.h> // this script is associated with TDAs // note that due to the dimension problem, if run "cvxgen_minT" method, must comment "cvxgen_slack" // and "adaptive_gains" code block, as well as uncomment relative header files. // these code based on CVXGEN can be ...
/* * This source file is part of an OSTIS project. For the latest info, see http://ostis.net * Distributed under the MIT License * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT) */ #include "gwfobjectinforeader.h" #include <memory> #include "scgobjectsinfo.h" #includ...
#include "analysis.h" #include <math.h> #include <map> using namespace Pythia8; // ----------------------------------------------------------------------------- Analysis::Analysis(std::string cmndfile, int target, std::string restframe, int random_seed, bool apply_smearing, bool debug) : m_pythia(), m_rand() { ...
// VirtualDub - Video processing and capture application // System library component // Copyright (C) 1998-2004 <NAME>, All Rights Reserved. // // Beginning with 1.6.0, the VirtualDub system library is licensed // differently than the remainder of VirtualDub. This particular file is // thus licensed as follows (...
#include "userInterface.hpp" #include "Game.hpp" #include "player.hpp" #include <cmath> ui::Backend::Backend() : state(State::closed), powerupBubbleState(PowerupBubbleState::dormant), menuItemSelected(0), menuItemTarget(0), timer(0), timerAlt(0), powerupTimer(0), powerupBubbleTimer(0), dispPowerupBar(f...
/* * FIPS 180-2 SHA-224/256/384/512 implementation * Last update: 02/02/2007 * Issue date: 04/30/2005 * * Copyright (C) 2005, 2007 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions...
// AliEmcalCorrectionCellEmulateCrosstalk // #include <map> #include <vector> #include <string> #include <TObjArray.h> #include <TFile.h> #include <AliEMCALGeometry.h> #include <AliEMCALRecoUtils.h> #include <AliAODEvent.h> #include "AliEmcalCorrectionCellEmulateCrosstalk.h" /// \cond CLASSIMP ClassImp(AliEmcalCor...
/** Copyright 2013 3DSGuy This file is part of make_cdn_cia. make_cdn_cia 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 3 of the License, or (at your option) any later version. make_cdn_cia is ...
/* * Package: CommonAlignmentProducer * Class : AlignmentMonitorMuonSystemMap1D * * Original Author: <NAME> * Created: Mon Nov 12 13:30:14 CST 2007 * * $Id: AlignmentMonitorMuonSystemMap1D.cc,v 1.5 2011/04/15 23:09:37 khotilov Exp $ */ #include "Alignment/CommonAlignmentMonitor/interface/Ali...
/*********************************************************************** * Copyright 1998-2020 CERN for the benefit of the EvtGen authors * * * * This file is part of EvtGen. * * ...
#include "perft.h" #include "movegen.h" #include "fen.h" #include <iostream> #include <chrono> #include <algorithm> #include <fstream> size_t GetNodesInner(Board& board, Move parentMove, Ply depth, MoveStack& moveStack) { if (depth == 0) { return 1; } auto possibleMoves = moveStack[depth]; MoveCount possible...
#include "HeadEventDispatch.h" //#include "ContextBaseClass.h" #include "HierarchicalContextLock.h" #include "Event.h" #include <queue> #include <list> //#include <boost/lockfree/queue.hpp> HeadEventDispatch::EventRequestTSType HeadEventDispatch::eventRequestTime; // the timestamp where the event request is processed H...
// Translated to C++ from the original work in FORTRAN by <NAME>, 2016 #include <iostream> #include <fstream> #include <sstream> #include <string> #include <vector> #include <cmath> void Diagonalize(const double (&A)[3][3], double (&Q)[3][3], double (&D)[3][3]); int main() { std::ifstream infile("bal...
// Copyright 2013 Viewfinder. All rights reserved. // Author: <NAME> #import <re2/re2.h> #import <unicode/utext.h> #import "AppState.h" #import "AsyncState.h" #import "DBFormat.h" #import "FullTextIndex.h" #import "FullTextIndexInternal.h" #import "FullTextIndexMetadata.pb.h" #import "LazyStaticPtr.h" #import "Logging...
/* * Copyright (c) 2006-2007 <NAME> http://www.gphysics.com * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appear in all copies. * Erin Catto makes no representations about the...
#include "CConsole.h" #include "font_8x16.c" #include "font_8x16s.c" #include "font_8x8.c" #include <iostream> #define MOUSE_QUAD_COLLIDE(x1,y1,x2,y2) ((x1)<=(xmouse) && xmouse <= (x2) && (y1)<=ymouse && ymouse <= (y2)) #define SHIFT_OR_CAPS_ON(e) (e.key.keysym.mod & (KMOD_SHIFT|KMOD_CAPS)) #define MOUSE_C...
#include <iostream> #include <fstream> #include <string.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <unistd.h> #include <ctype.h> #include <sys/time.h> #include <sys/resource.h> #include <sstream> #include <stdint.h> using namespace std; /************************************...
//--------------------------------------------------------------------------------------------------------------------// // // // Tuplex: Blazing Fast Python Data Scien...
#include "PlottingMath.h" std::vector<osg::Vec2> Math::calculateVector(osg::Vec2 v, float a, float d) { //定义目标向量的头部x坐标 float x_1, x_2; //定义目标向量的头部y坐标 float y_1, y_2; //定义目标向量,一左一右 osg::Vec2 v_l; osg::Vec2 v_r; //计算基准向量v的模 float d_v = sqrtf(v.x()*v.x() + v.y()* v.y()); //基准向量的斜率...
#include "Direct3D8X.hpp" #include "../Size.hpp" #include <cstdint> #include <cmath> using namespace OSHGui::Drawing; D3DXMATRIX *MatrixMultiply( D3DXMATRIX *pout, const D3DXMATRIX *pm1, const D3DXMATRIX *pm2 ) { D3DXMATRIX out; for( int i = 0; i < 4; ++i ) { for( int j = 0; j < 4; ++j ) { out.m[ i ][ j ] = p...
/* Copyright (c) <2003-2011> <<NAME>, Newton Game Dynamics> * * 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, *...
/** \file tb2vac.cpp * \brief VAC implementation for binary cost functions. * * \defgroup VAC Virtual Arc Consistency enforcing * The three phases of VAC are enforced in three different "Pass". * Bool(P) is never built. Instead specific functions (getVACCost) booleanize the WCSP on the fly. * The domain ...
#include <trance/visual/visual.h> #include <common/util.h> #include <trance/director.h> #include <trance/visual/api.h> #include <trance/visual/cyclers.h> #include <algorithm> void Visual::set_cycler(Cycler* cycler) { _cycler.reset(cycler); } void Visual::set_render(const std::function<void(VisualRender& api)>& func...
#include "Index.h" #include "LineFinder.h" #include "LineSink.h" #include "LineIndexer.h" #include "Sqlite.h" #include <zlib.h> #include <algorithm> #include <cstdint> #include <cstring> #include <iostream> #include <stdexcept> #include <tuple> #include <vector> #include <unordered_map> #include "IndexSink.h" #inclu...
#include "types.h" #include "game.h" #include <math.h> // Game player properties static constexpr f32 PLAYER_GRAVITY = -0.15f; static constexpr vec4 PLAYER_BBOX = vec4(40.f, 64.f, 40.f, 0.f); static constexpr f32 PLAYER_SPD = 4.f; static constexpr f32 PLAYER_MAXFALL = -10.f; static constexpr f32 PLAYER_JUMPHEIGHT = 4...
/***************************************************************************************** * * * GHOUL * * General Helpful Open Utility Library ...
// -*- C++ -*- // // Package: L1Trigger/L1TTrackMatch // Class: L1GTTInputProducer // /**\class L1GTTInputProducer L1GTTInputProducer.cc L1Trigger/L1TTrackMatch/plugins/L1GTTInputProducer.cc Description: Takes in L1TTracks and outputs the same tracks, but with modifications to the underlying track word. Th...
/**************************************************************************** * Name: jlp_gsegset_params.cpp * * JLP * Version 11/06/2017 ****************************************************************************/ #include "jlp_gsegset_params.h" /********************************************************************...
#include "kaleidoscope.hpp" #include <llvm/Analysis/Passes.h> #include <llvm/ADT/STLExtras.h> #include <llvm/IR/IRBuilder.h> #include <llvm/IR/LLVMContext.h> #include <llvm/IR/Module.h> #include <llvm/IR/Verifier.h> #include <llvm/IR/LegacyPassManager.h> #include <llvm/Support/TargetSelect.h> #include <llvm/Transforms...