text
stringlengths
3.08k
12.5k
#include "RoomLoader.hpp" #include "Resource.hpp" #include "Entity.hpp" #include "Tmx.h" #include "Tile.hpp" #include "Layer.hpp" #include "Spike.hpp" #include "Camera.hpp" #include "EntityFactory.hpp" Tile* GetTile( const Tmx::Map& aMap, std::string aLayerName, int aX, int aY, std::map<int, Tile*>& aCach...
//========================================================================= // 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...
#include "stdafx.h" #include "UIVotingCategory.h" #include "UIXmlInit.h" #include "UI3tButton.h" #include "UIKickPlayer.h" #include "UIChangeMap.h" #include "UIChangeWeather.h" #include "UIGameCustom.h" #include "../game_cl_teamdeathmatch.h" #include "../game_sv_mp_vote_flags.h" CUIVotingCategory::CUIVo...
/* * The MIT License * * Copyright (c) 1997-2021 The University of Utah * * 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 * right...
// Copyright (c) 2011 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/autofill/name_field.h" #include "base/logging.h" #include "base/memory/scoped_ptr.h" #include "base/string_util.h" #include ...
// Software License for MTL // // Copyright (c) 2007 The Trustees of Indiana University. // 2008 Dresden University of Technology and the Trustees of Indiana University. // 2010 SimuNova UG (haftungsbeschränkt), www.simunova.com. // All rights reserved. // Authors: <NAME> and <NAME> // // ...
/* * test-image-deblurring.cpp - test image deblurring * * Copyright (c) 2017 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licens...
#include "log/logger.hpp" #include "gfx/renderer.hpp" #include "cmd/cmd.hpp" #include "common.hpp" #include <vulkan/vulkan.h> #include <GLFW/glfw3.h> #define GLM_FORCE_RADIANS #define GLM_FORCE_DEPTH_ZERO_TO_ONE #include <glm/glm.hpp> #include <glm/gtc/type_ptr.hpp> #include <vector> #include <utility> #include <al...
// // Copyright (c) 2020 The Aquarium Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // #include "../Assert.h" #include "BufferManagerDawn.h" #include <iostream> #include <thread> RingBufferDawn::RingBufferDawn(BufferManag...
#include "gtest/gtest.h" #include "numeric_index.h" #include "index.h" #include "rmutil/alloc.h" #include <stdio.h> extern "C" { // declaration for an internal function implemented in numeric_index.c IndexIterator *createNumericIterator(const IndexSpec* sp, NumericRangeTree *t, const NumericFilter *f); } // Helper...
/* * Copyright 2012, The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* ---------------------------------------------------------------------- SPPARKS - Stochastic Parallel PARticle Kinetic Simulator http://www.cs.sandia.gov/~sjplimp/spparks.html <NAME>, <EMAIL>, Sandia National Laboratories Copyright (2008) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85...
#include <omp.h> #include "test.hh" #include "cblas.hh" #include "lapack_tmp.hh" #include "blas_flops.hh" #include "print_matrix.hh" // ----------------------------------------------------------------------------- template< typename TX, typename TY, typename Policy = decltype(blam_default_policy) > void test_swap_wor...
/* A small command line program for routing frames between a CAN socket and an UDP socket */ #include <cstdint> #include <string> #include <vector> #include <thread> #include <atomic> #include <stdexcept> #include <iostream> #include "cxxopts.hpp" #include "cansocket.h" #include "udpsocket.h" #include "priority.h"...
/* * NomadRobot.cpp * * Created on: June 23, 2020 * Author: <NAME> * * Copyright (c) <2020> <<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 restrict...
#include "SDLWnd.hpp" #include <stdexcept> #include <iostream> #include <iomanip> #include <sstream> #include <fstream> #include <ctime> #include <cmath> #include <SDL_ttf.h> #include <glm/vec3.hpp> #include <glm/mat4x4.hpp> #include <glm/gtx/transform.hpp> #include <glm/gtc/matrix_transform.hpp> #include "Helper.hp...
#include "BaseWindow.hpp" #include <QApplication> #include <QStyle> #include <QProxyStyle> class StyleOverrides : public QProxyStyle { public: void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const { // do not dra...
/* * mafObjectBase.cpp * mafCore * * Created by <NAME> on 17/09/09. * Copyright 2011 SCS-B3C. All rights reserved. * * See License at: http://tiny.cc/QXJ4D * */ #include "mafObjectBase.h" #include "mafIdProvider.h" #include "mafObjectRegistry.h" #include "mafVisitor.h" using namespace mafCore; mafO...
#include "PlayerLeyo.h" #include "core/math/Math.h" #include "core/math/Easing.h" #include "core-ext/input/CInputControl.h" #include "renderer/light/RrLight.h" #include "render2d/camera/COrthoCamera.h" #include "render2d/object/sprite/CEditableRenderable2D.h" #include "physical/interface/tobt.h" #include "physical/p...
/*========================================================================= * * Copyright NumFOCUS * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.or...
#include "snake_game.h" #include "graphics.h" #include "pitches.h" enum Dir { left, right, up, down }; struct Point { byte x; byte y; Point(byte x = 0, byte y = 0): x(x), y(y) {} Point shifted_by(Dir dir, byte dist = 1) const { switch (dir) { case left: return Point(x - dist, y); break; ...
#include <signal.h> #include <array> #include <boost/filesystem.hpp> #include <ebbrt/EbbId.h> #include <ebbrt/LocalIdMap.h> #include <ebbrt/GlobalIdMap.h> #include <ebbrt/StaticIds.h> #include <ebbrt/Runtime.h> #include <ebbrt/Debug.h> #include <ebbrt/EbbAllocator.h> #include <stdio.h> #include <ebbrt/StaticIOBuf.h>...
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s // RUN: %clang_cc1 -fsyntax-only -verify -std=c++14 %s // RUN: %clang_cc1 -fsyntax-only -verify -std=c++17 %s // Verify that using an initializer list for a non-aggregate looks for // constructors.. struct NonAggr1 { // expected-note 2 {{candidate constructor}}...
/* Begin CVS Header $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/odepack++/Cxerrwd.cpp,v $ $Revision: 1.6 $ $Name: $ $Author: shoops $ $Date: 2009/01/07 19:01:06 $ End CVS Header */ // Copyright (C) 2008 by <NAME>, Virginia Tech Intellectual // Properties, Inc., EML Research, gGmbH, University of H...
// REQUIRES: xocc // REQUIRES: spir // RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out // RUN: %ACC_RUN_PLACEHOLDER %t.out // This test is testing 2D and 3D D2D copy using the handler it's heavily based // on the handler_mem_op.cpp test inside basic_tests/handler. In this case we're // just unit testing...
// usb_hid_test.cpp #include "usb_hid_test.h" #include "traces.h" #include "usbdevice.h" #include "hwusbctrl.h" TUsbDevice usbdev; TUifHidTest hidtest; #define HID_DESCRIPTOR_TYPE 0x21 #define HID_REPORT_DESC 0x22 //nvitya: this report descriptor is a special one, it describes the repor...
/* =========FOR INTERNAL USE ONLY. NO DISTRIBUTION PLEASE ========== */ /********************************************************************* Copyright 1999-2007, University of Cincinnati. All rights reserved. By using this software the USER indicates that he or she has read, understood and will comply with the f...
#define WIN32_LEAN_AND_MEAN #include <windows.h> #include <winsock2.h> #include <ws2tcpip.h> #include "UdpSocketPort.h" #include <stdio.h> HRESULT UdpSocketPort::Initialize() { WSADATA wsaData; // Initialize Winsock int rc = WSAStartup(MAKEWORD(2, 2), (LPWSADATA)&wsaData); if (rc != 0) { printf("### WSAStartup...
#include "ofApp.h" void ofApp::setup(){ ofBackground(255); ofSetVerticalSync(true); ofSetWindowTitle(" Orbbec Astra Body Tracker"); astra.setup(); // astra.setLicenseString("<INSERT LICENSE KEY HERE>"); astra.initDepthStream(); astra.initBodyStream(); astra.initHandStream(); loadSettin...
#define DEBUG_TYPE "epp_decode" #include "llvm/Analysis/LoopInfo.h" #include "llvm/IR/BasicBlock.h" #include "llvm/IR/CallSite.h" #include "llvm/IR/Constants.h" #include "llvm/IR/DebugInfo.h" #include "llvm/IR/Instructions.h" #include "llvm/Support/Debug.h" #include "llvm/Support/raw_ostream.h" #include <fstream> #inc...
/** * Copyright 2018 <NAME> */ #include "GPath.h" static void offset_pts(GPoint p[], int count, GVector d) { for (int i = 0; i < count; ++i) { p[i] += d; } } static float compute_cross(GPoint a, GPoint b, GPoint c) { GPoint ac = { c.x() - a.x(), c.y() - a.y() }; GPoint ab = { b.x() - a.x()...
/* * GraphGeneNetworkExecutor.cpp * * Created on: 13/02/2011 * Author: william */ #include <iostream> #include <stdlib.h> #include <stdio.h> #include <limits.h> #include <math.h> #include <string.h> #include <list> #include <map> #include <stack> #include <set> #include "HostUtils.h" #include "KernelUtils....
#include "common.h" #include <iostream> #include <vector> #include <cassert> using namespace cl; template <typename T> class ReductionKernelNDRange; template <typename T> class ReductionKernelHierarchical; template <typename T> class SegmentedReduction { protected: std::vector<T> _input; BenchmarkArgs _arg...
#include <stddef.h> #include <assert.h> #include "exti.hpp" #include "gpio/gpio.hpp" #include "CMSIS/Device/STM32F0xx/Include/stm32f0xx.h" #include "CMSIS/Include/core_cm0.h" using namespace hal; constexpr IRQn_Type irqn[gpio::pins] = { EXTI0_1_IRQn, EXTI0_1_IRQn, EXTI2_3_IRQn, EXTI2_3_IRQn, EXTI4_15_IRQn, EXTI4_15...
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: #ident "$Id$" /*====== This file is part of PerconaFT. Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved. PerconaFT is free software: you can redistribute it and/or modif...
// This code contains NVIDIA Confidential Information and is disclosed to you // under a form of NVIDIA software license agreement provided separately to you. // // Notice // NVIDIA Corporation and its licensors retain all intellectual property and // proprietary rights in and to this software and related documentation...
/* * @file helloworld_timeline.cpp * @brief Simple C++ example showing how to register to listen for capture events * @author <NAME> and <NAME> * * Copyright (c) Regents of the University of California, 2015. All rights reserved. * * Redistribution and use in source and binary forms, with or without modificati...
/* Copyright (c) 2003 by <NAME> and The Institute for Genomic Research. This is OSI Certified Open Source Software. Please see the file LICENSE for licensing information and the file ACKNOWLEDGEMENTS for names of contributors to the code base. */ //\IgnoreLatex{ #include <stdio.h> #include <ctype.h> #inclu...
#include "stdafx.h" #include "Interface.h" #include "InterfaceMgr.h" #include "Line.h" #include "LineTelnet.h" #include "CommandTree.h" #include "Frame.h" #include "DTPProcess.h" #include "PortSecurity.h" PortSecurity::PortSecurity(Interface *pInterface) { m_pInterface = pInterface; m_bEnabled = f...
#include "convar_restore.h" #include "mem/detour.h" class CEmptyConVar : public ConVar {}; namespace ConVar_Restore { ConCommand ccmd_save("sig_cvar_save", &Save, "Save the values of this mod's ConVars"); ConCommand ccmd_savenondefault("sig_cvar_save_non_default", &SaveNonDefault, "Save the values of this...
/* * Copyright (c) 2016 <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, dis...
/* Atanua Real-Time Logic Simulator Copyright (c) 2008-2014 <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, includi...
#include <UFG/UFG.hpp> #include <iostream> #include <cassert> using namespace std; using namespace Ubpa; class ResourceMngr { public: void Construct(const UFG::FrameGraph& fg, size_t rsrcNodeIdx) { cout << "[Construct] " << fg.GetResourceNodes()[rsrcNodeIdx].Name() << endl; } void Destruct(const UFG::FrameGrap...
// // Created by kellerberrin on 7/11/20. // #include "kgl_analysis_verify.h" #include "kgl_variant_filter.h" #include <chrono> #include <thread> namespace kgl = kellerberrin::genome; // Setup the analytics to process VCF data. bool kgl::VerifyAnalysis::initializeAnalysis( const std::string& work_directory, ...
/******************************************************************************* # Copyright (C) 2021 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.apach...
#include "validate.hh" #include "validate-recursor.hh" #include "syncres.hh" #include "logger.hh" DNSSECMode g_dnssecmode{DNSSECMode::ProcessNoValidate}; bool g_dnssecLogBogus; #define LOG(x) if(g_dnssecLOG) { L <<Logger::Warning << x; } class SRRecordOracle : public DNSRecordOracle { public: SRRecordOracle(const ...
/* * Copyright (c) 2004-2005 The Regents of The University of Michigan * 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 * not...
#include <stdio.h> #include <assert.h> #include "OpenCLDeviceInfo.h" #include "Event.h" #include "OptionParser.h" #include "ResultDatabase.h" #include "support.h" #include "fftlib.h" #include <map> static map<void*, cl_mem> memobjmap; extern const char *cl_source_fft; void init(OptionParser& op, bool do_dp, ...
/* * common.cpp * * Created on: 26.05.2015 * Author: mika */ #include "cache/common.h" #include "cache/priv/cache_structure.h" #include "cache/priv/connection.h" #include "util/log.h" #include "util/exceptions.h" #include "datatypes/spatiotemporal.h" #include "operators/operator.h" #include <chrono> #inclu...
//- // ========================================================================== // Copyright 1995,2006,2008 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk // license agreement provided at the time of installation or download, // or which otherwise accompan...
/********************************************************************** * * FILE: StateSet.cpp * * DESCRIPTION: Read/Write osg::StateSet in binary format to disk. * * CREATED BY: Auto generated by iveGenerated * and later modified by <NAME>. * * HISTORY: ...
// // This source file is part of appleseed. // Visit https://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2016-2019 <NAME>, The appleseedhq Organization // // Permission is hereby granted, free of charge, to any person obtaining ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * 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 appl...
/***************************************************************************** Licensed to Accellera Systems Initiative Inc. (Accellera) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Accellera licenses...
/* * process_image.cpp * $Id$ * * Author * <NAME> <<EMAIL>> * * Graph@FIT * Department of Computer Graphics and Multimedia * Faculty of Information Technology * Brno University of Technology * * Description * */ // Object detector #include <libabr.h> // Command-line argument processing #include...
//=== FlatStore.cpp - Flat region-based store model -------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include "types.h" #include "CHIP8.h" #include <iostream> #include <fstream> #include <vector> #include <stdexcept> #include <string> #include <cstdio> #include <unistd.h> #include <signal.h> std::vector<byte> readBinaryFile(const char *filename) { std::ifstream file(filename, std::ios::binary); if (!file.i...
/* Copyright (c) 2007 <NAME>. 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 require...
#pragma once #include "core/World.hpp" #include "core/Camera.hpp" #include <thread> #include <Windows.h> #include <sstream> #include "core/ThreadPool.h" #include "core/File.hpp" #include "core/Image.hpp" #include "gif.h" struct FrameSettings { std::shared_ptr<Camera> camera; std::shared_ptr<ShapesSet> objects; st...
/** * Copyright (c) 2021 <NAME> * Licensed under the MIT License. * See LICENSE file for more information. */ #include "saiga/core/math/random.h" #include "saiga/core/model/all.h" #include "saiga/opengl/window/SampleWindowDeferred.h" #include "saiga/opengl/window/message_box.h" #include "saiga/opengl/world/pointC...
auto PPU::Debugger::load(Node::Object parent) -> void { memory.vram = parent->append<Node::Debugger::Memory>("PPU VRAM"); memory.vram->setSize(self.vram.mask + 1 << 1); memory.vram->setRead([&](u32 address) -> u8 { return self.vram.data[address >> 1 & self.vram.mask].byte(address & 1); }); memory.vram->se...
#include "buildin.h" #include "if_cond.h" #include "define.h" #include "error.h" #include "lambda.h" #include "let.h" #include "lisp.h" #include "sexpr.h" #include "symbol.h" std::shared_ptr<environ> lisp::env(new environ()); static expr make_expr(const mpc_ast_t *ast, std::shared_ptr<environ> &env); lisp::lisp() : ...
#include <iostream> #include <stdexcept> using namespace std; /*1. Write a function, char* strdup(const char*), that copies a C-style string into memory it allocates on the free store. Do not use any standard library functions. Do not use subscripting; use the dereference operator * instead. */ int length(const...
// smooth_feedback: Control theory on Lie groups // https://github.com/pettni/smooth_feedback // // Licensed under the MIT License <http://opensource.org/licenses/MIT>. // // Copyright (c) 2021 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated d...
#include "shapeFinder.h" int ShapeFinder::n = 0; const int ShapeFinder::counts[10] = {1, 1, 2, 7, 18, 60, 196, 704, 2500, 9189}; std::vector<std::vector<bool>> ShapeFinder::blank = {}; void ShapeFinder::start(int newN) { int startTime = std::clock(); std::vector<std::vector<std::vector<bool>>> unique = {}; std::...
//----------------------------------------------------------------------------- // MurmurHash2 was written by <NAME>, and is placed in the public // domain. The author hereby disclaims copyright to this source code. // Note - This code makes a few assumptions about how your machine behaves - // 1. We can read a 4-byt...
/* Copyright (c) The Grit Game Engine authors 2016 * * 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, ...
void swapMinHeapNode(struct MinHeapNode** a, struct MinHeapNode** b) { struct MinHeapNode* t = *a; *a = *b; *b = t; } // The standard minHeapify function. void minHeapify(struct MinHeap* minHeap, int idx) { int smallest = idx; int left = 2 * idx + 1; int right = 2 * idx + 2; if (left < mi...
/* * <NAME> * <EMAIL> * * Copyright (c) 2021 Bolder Flight Systems 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...
#include "MsiQuery.hpp" #include "MsiUtil.hpp" #include <algorithm> #include <fcntl.h> #include <io.h> #include <cctype> #include <iostream> #pragma comment(lib, "Msi.lib") std::wstring ParseMSIOrProductCode (std::wstring file_or_product) { PMSIHANDLE msi; if (file_or_product[0] == L'{') { // input i...
#include "graph.hpp" #include "graph_generation_controller.hpp" #include "graph_generator.hpp" #include "graph_path.hpp" #include "graph_printer.hpp" #include "graph_traversal_controller.hpp" #include "graph_traverser.hpp" #include "logger.hpp" #include <chrono> #include <filesystem> #include <fstream> #include <ioman...
#include "Lines.h" void Lines::pointsToLine(point p1, point p2, line &l) { if (fabs(p1.x - p2.x) < EPS) { // vertical line l.a = 1.0; l.b = 0.0; l.c = -p1.x; } else { l.a = -(double)(p1.y - p2.y) / (p1.x - p2.x); // always -m l.b = 1.0; l.c = -(double)(l.a * p1.x) - p1.y; } } void Lines::line2ToLin...
// Copyright (c) <NAME> // Licensed under the MIT License. #include <string.h> #include <limits> #include <iostream> #include <fstream> #include <vector> #include <iomanip> #include <cmath> #include <stdexcept> #include "json.hpp" #include "errors.h" #include "mcp3423.h" #include "mcp3423_rt.h" using json = nlohman...
#include <algorithm> #include <queue> #include <cassert> #include <iostream> #include <fstream> #include <memory> #include <string> #include <vector> #include <unordered_map> #include <unordered_set> #include <wordle.hpp> #include <resources.hpp> using namespace wordle; struct hash_pair { size_t operator()(const ...
// -*- C++ -*- //===----------------------------------------------------------------------===// // // Copyright (C) Intel Corporation // // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // // This file incorporates work covered by the following copyright and permission // notice: // // Part of the LLVM Projec...
// Copyright © 2021 <NAME> and <NAME>. All Rights Reserved. #include <algorithm> #include <glm/gtx/norm.hpp> #include <glm/gtx/transform.hpp> #include <glm/gtc/matrix_access.hpp> #include <glm/gtc/matrix_inverse.hpp> #include "lib/graphics/camera.hpp" // using namespace fcpp to prevent very verbose code... using na...
/* -*-mode:c++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ #include <iostream> #include <fstream> #include <sstream> #include <string> #include <vector> #include <chrono> #include <algorithm> #include <cctype> #include <getopt.h> #include "thunk/thunk.hh" #include "thunk/factory.hh" #include "thunk...
/* MIT License 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, publ...
#include "hapcolor.h" #include <cmath> #include <algorithm> #include <math.h> #include <iomanip> using namespace std; float emission(int a, int b) { if (a != b) return (float)log(exp(-10)); else return (float)log(1-exp(-10)); } float transition(int a, int b) { if (a != b) return (float)log(exp(-1)); else retur...
// qryprop.cpp - Group Property Page Implementation #include "stdafx.h" #include "resource.h" #include "grpprop.h" #include "scopenode.h" #include "query.h" #include "cmndlgs.h" #include "util.h" #include "namemap.h" #include <windowsx.h> #include <algorithm> //////////////////////////////////////////...
/////////////////////////////////////////////////////////// // mempoolcomponent.cpp // Implementation of the Class CMempoolComponent // Created on: 7-3-2018 16:40:57 // Original author: marco /////////////////////////////////////////////////////////// #include "util.h" #include "mempoolcomponent.h" #include "c...
/******************************************************* CoolReader Engine C-compatible API lvfnt.cpp: Unicode Antialiased Bitmap Font (c) <NAME>, 2000-2006 This source code is distributed under the terms of GNU General Public License See LICENSE file for details *********************************...
#include "base/color.hpp" #include "boost/tokenizer.hpp" #include "core/plan/runner.hpp" #include <cmath> #include <regex> #include <string> DEFINE_int32(num_of_docs, 1, "# number of docs"); DEFINE_int32(num_doc_partition, 10, ""); DEFINE_int32(num_term_partition, 10, ""); DEFINE_string(url, "", "The url for hdfs fi...
#define NOMINMAX #include <algorithm> #include <fstream> #include <stdexcept> #include <string> #include <string_view> #include <ios> #include <iostream> #include <io.h> #include <fcntl.h> #include "MEIToAVI.hpp" using namespace std::literals; namespace { constexpr std::size_t CacheStorageSize = std::numeric_lim...
// Copyright 2019 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 "button_checker.h" #include <fcntl.h> #include <lib/fdio/fdio.h> #include <lib/zx/channel.h> #include <unistd.h> #include <cstring> #include <fi...
#include <SDL2/SDL.h> #include <SDL2/SDL_opengl.h> #include <thread> #include <vector> #include <lmb/solvers/kdtree_solver.h> #include "lmb_ui/imgui/imgui.h" #include "lmb_ui/imgui/imgui_impl_sdl.h" #include "lmb_ui/imgui/imgui_impl_opengl2.h" #include <glm/gtc/type_ptr.hpp> #include <glm/gtx/quaternion.hpp> void ...
// 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 "milestone.h" #include "block_store.h" #include "dag_manager.h" #include "vertex.h" #include <algorithm> #include <numeric> ...
#include <gvl/containers/pairing_heap.hpp> #include "../level.hpp" #include "../common.hpp" struct path_node : gvl::pairing_node<path_node> { enum { none, open, closed }; path_node() : parent(0) , state(none) { } bool operator<(path_node const& b) const { return f < b.f; } void update_cost(i...
/** * @file DecisionTreeBase.h * @author <NAME> (<EMAIL>) * @author <NAME> (<EMAIL>) * @brief This file implements the functions of DecisionTreeBase.h. * @version 0.1 * @date 2021-10-01 * * @copyright Copyright (c) 2021 * */ #include <iostream> #include <unordered_map> #include "DecisionTreeBase.h" using ...
#include <iostream> #include <Windows.h> #include <string> #include <ctime> DWORD FindDmaAddy(int PointerLevel, HANDLE hProcHandle, DWORD Offsets[], DWORD BaseAddress); void WriteToMemory(HANDLE hProcHandle); void setColor(unsigned short color) { HANDLE hcon = GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleT...
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* vim: set sw=4 ts=8 et tw=80 : */ /* 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 "sparta/utils/SpartaTester.hpp" #include "sparta/sparta.hpp" #include "sparta/simulation/RootTreeNode.hpp" #include "sparta/statistics/Counter.hpp" #include "sparta/log/Tap.hpp" #include "sparta/trigger/Trigger.hpp" #include "sparta/trigger/SingleTrigger.hpp" #include "sparta/trigger/Triggerable.hpp" #include ...
#include <booster/booster.h> #include <booster/helper.h> #include "utils.h" // #define TEST_SGECONV int test_general_conv_kernels(int output_channels, int input_channels, int input_h, int input_w, int kernel_h, int kernel_w, int stride, int pad) { booster::ConvParam conv_param; // conv_param conv_param.out...
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <cmath> #include <math.h> using namespace std; /* * GLOBAL VARIABLES */ static const float distError = 2000; /* * Vec2 class */ struct vec2 { float x; float y; vec2 (float s = 0.0) : x(s), y(s) {} vec2(flo...
// <NAME> // // Verified to run on MacOS 10.14.2 // Apple LLVM version 10.0.0 (clang-1000.11.45.5) // cmake 3.13.2 // VTK 8.1.2 #include "Camera.h" double norm(double v0, double v1, double v2) { return sqrt(v0 * v0 + v1 * v1 + v2 * v2); } Matrix Camera::Vie...
// Author: <NAME> #include <iostream> #include <fstream> #include <stdlib.h> #include <vector> #include <math.h> #include <iomanip> #include <algorithm> //using namespace std; // In the ideal case we would implement a Kalman-filter class, however, this may not be the focus of this exercise // As an example we implem...
#include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <getopt.h> #include <iostream> #include <filesystem> #include <stdexcept> #include "seekhelper.h" #include "databasei.h" using namespace std; namespace fs = std::filesystem; typedef struct { char *inputDirList; char *dbFile; char *combinedDir;...
#include "DInputKeyboard.h" #include <assert.h> DInputKeyboard::DInputKeyboard(DInputInterface* inputInterface) : inputInterface_(inputInterface), callbackFunc_(0) { int delay; int repeat; SystemParametersInfo(SPI_GETKEYBOARDDELAY, 0, &delay, 0); KEY_REPEAT_START = (delay+1)*250; SystemParameters...
#include "dsa/message.h" #include "dsa/network.h" #include "dsa/responder.h" #include "dsa/stream.h" #include <gtest/gtest.h> #include "../async_test.h" #include "../test_config.h" #include "../../broker/util/broker_runner.h" #include "module/default/console_logger.h" #include "network/tcp/tcp_server.h" using namesp...
#include "window.h" #include <stdio.h> #include <functional> #include <QtGlobal> #include <QApplication> #include <QMetaObject> #include <QMessageBox> #include <QHBoxLayout> #include <QVBoxLayout> static const quint16 DEFAULT_PORT = 1128; Window::Window(Protocol *_protocol) : protocol(_protocol) { using nam...