text
stringlengths
3.08k
22k
//Copyright (c) 2013-2020, The MercuryDPM Developers Team. All rights reserved. //For the list of developers, see <http://www.MercuryDPM.org/Team>. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions are met: // * Redistributions ...
#include <iostream> #include <iomanip> #include <assert.h> #include <common/term.hpp> #include <common/term_ops.hpp> using namespace prologcoin::common; static void header( const std::string &str ) { std::cout << "\n"; std::cout << "--- [" + str + "] " + std::string(60 - str.length(), '-') << "\n"; std::c...
// Copyright 2006-2013 Dr. <NAME>. All rights reserved. // <EMAIL> // www.coppeliarobotics.com // // ------------------------------------------------------------------- // This file is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTA...
/**************************************************************************** * Convert trajectory files to standard ouput * Default input file is data/trajc.trj ***************************************************************************/ #include <iostream> #include <sstream> #include <string> #include <cstring> #...
//////////////////////////////////////////////////////////////////////////// // // // Project : VideoNet Ver. 1.0. // Description : Video Conferencing over the LAN. // Author : <NAME> ( <EMAIL> ) // Date : 17/12/2005 // // This is the modified version of tmndecode (H.263 decoder) ...
// Copyright (C) 2005, <NAME>. // // 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/config.hpp" #include "boost/utility.hpp" #include "boost/limits.hpp" #include "boost/utility.hpp" #include<...
// // QuadGui.cpp // // Created by <NAME> on 17/08/2015. // // #include "ofxLaserQuadGui.h" using namespace ofxLaser; QuadGui::QuadGui() { initListeners(); visible = true; isDirty=true; selected = true; set(0,0,60,60); initialised = true; } QuadGui::~QuadGui() { if(initialised)...
// Copyright (C) 2020 <NAME> // // 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) //[ extended_json_example // This header includes a type called json::value that acts as a // Javascript-like polymorphic value type...
/********************************************************************* Author: <NAME>, IUSB, CS <NAME>, IUSB, Student Class: C243 Data Structures File name: interface.cc Last updated: September 11, 2014 Description: The functions that handle the communication with the ...
/*************************************************************************** * Copyright 1998-2018 by authors (see AUTHORS.txt) * * * * This file is part of LuxCoreRender. * * ...
// AMD Cauldron code // // Copyright(c) 2020 Advanced Micro Devices, Inc.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 limitat...
/*****************************************************************************************************//** * * Module Name: \file tstl_test.cpp * * Abstract: \brief TSTL multimap testing application. * * Author: \author <NAME> (mail-to: <EMAIL>) * * Revision History: \date 10.07.2009 started * * Cl...
#include "utils.h" #include <math.h> #include <fstream> #include <utility> #include <vector> #include <iostream> #include <regex> #include "tensorflow/cc/ops/const_op.h" #include "tensorflow/cc/ops/image_ops.h" #include "tensorflow/cc/ops/standard_ops.h" #include "tensorflow/core/framework/graph.pb.h" #include "tenso...
/*************************************************************************** * * 26.inner.product.cpp - test exercising 26.4.2 [lib.inner.product] * * $Id$ * *************************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one or more * con...
/** * \author <NAME> */ #include "VisualOdometer.hpp" #include "BirdsEyeTranslationReader.hpp" #include "TangentRotationReader.hpp" #include "SmoothFilter.hpp" #include "TrimHistoryFilter.hpp" #include "LucasKanadePyramidTracker.hpp" #include "ShiThomasiFeatureExtractor.hpp" #include "PreparationFunctions.hpp" #incl...
/******************************************************************************* * Copyright (c) 2017-2020 * School of Electrical, Computer and Energy Engineering, Arizona State University * PI: Prof. <NAME> * All rights reserved. * * This source code is part of NeuroSim - a device-circuit-algorithm framework to ...
/** BSD 3-Clause License This file is part of the Basalt project. https://gitlab.com/VladyslavUsenko/basalt.git Copyright (c) 2019, <NAME> and <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: *...
/* * Copyright (c) 2020, NVIDIA CORPORATION. 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 requi...
#include "stdafx.h" #include "J2534Connection_ISO15765.h" #include "Timer.h" #include "constants_ISO15765.h" #include <chrono> J2534Connection_ISO15765::J2534Connection_ISO15765( std::shared_ptr<PandaJ2534Device> panda_dev, unsigned long ProtocolID, unsigned long Flags, unsigned long BaudRate ) : J2534Connection(p...
#include <common/toolkit/StringTk.h> #include <common/toolkit/UnitTk.h> #include "Config.h" #define CONFIG_DEFAULT_CFGFILENAME "/etc/congfs/congfs-storage.conf" #define CONFIG_STORAGETARGETS_DELIMITER ',' Config::Config(int argc, char** argv) : AbstractConfig(argc, argv) { initConfig(argc, argv, true); }...
#include <arch/x86/SMBIOS.hpp> #include <libk/stdio.h> // TODO: move strlen it to string.h #include <libk/stdlib.h> #include <libk/panic.h> #include <arch/x86/VMM.hpp> #include <Log.hpp> using namespace annos; using namespace annos::x86; bool CheckIfChecksumValid(SMBiosEntry* e) { char* smb_bytes = (char*)e; ...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <algorithm> #include <filesystem> #include <fstream> #include <iomanip> #include <iostream> #include <memory> #include <ss...
/**************************************************************************** * Copyright (C) from 2009 to Present EPAM Systems. * * This file is part of Indigo toolkit. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ma...
// Copyright 1996-2019 Cyberbotics 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 agr...
// // fusion.cpp // Fusion // // Created by Karan on 4/9/18. // Copyright � 2018 Karan. All rights reserved. // #include <iostream> #include "fusion.h" #include "datapoint.h" Fusion::Fusion( double max_acceleration, double max_turn_rate, double max_yaw_accel, double varGPS, double varSpeed, ...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
/* (c) 2015 <NAME>, <NAME> */ #include "SimplexNode.h" ListNode::ListNode(const ListNode &rhs) { row = rhs.row; val = rhs.val; next = rhs.next; right = rhs.right; left = rhs.left; } ListNode& ListNode::operator=(const ListNode &rhs) { if (this != &rhs) { row = rhs.row; val = rhs.val; next ...
#include "tls_client.hpp" tls_client_app::tls_client_app(json app_json , tls_client_stats* zone_app_stats , ev_sockstats* zone_sock_stats) { client_config_init (app_json); m_app_stats = new tls_client_stats(); auto cs_grp_list = app_json["cs_grp_list"]; m_cs_gr...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2017-2019 The WaykiChain Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "node.h" #include "netmessage.h" #include <openssl/rand.h> uint64_t CNode::nTo...
/* Tests a kernel create with binary. Copyright (c) 2018 <NAME> / TUT 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 t...
//==================================================================================================================================================== // Copyright 2020 Lake Orion Robotics FIRST Team 302 // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2015 Couchbase, 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 * * ...
/*======================================================================= Copyright (c) 2018-2019 <NAME>. This software is distributed under the Apache License, Version 2.0. All copies must contain the full copyright notice licence.txt located at the base folder of the distribution. ======================...
/* * Tests for Synet Framework (http://github.com/ermig1979/Synet). * * Copyright (c) 2018-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...
/* Semestre 2020-2 Pr�ctica 6 Texturizado Usando librer�a stb_image.h */ //para cargar imagen #define STB_IMAGE_IMPLEMENTATION #include <stdio.h> #include <string.h> #include<cmath> #include<vector> #include <glew.h> #include <glfw3.h> //glm #include<glm.hpp> #include<gtc/matrix_transform.hpp> #inc...
#include <ATen/Functions.h> #include <ATen/core/TensorBody.h> #include <ATen/core/grad_mode.h> #include <chrono> #include <functional> #include <opencv2/core.hpp> #include <opencv2/core/matx.hpp> #include <opencv2/imgproc.hpp> #include <torch/script.h> #include <torchvision/vision.h> #include <opencv2/core/core.hpp> ...
/* * MIT License * * Copyright (c) 2017-2018 <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 the rights * to...
// Copyright 2021 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 <getopt.h> #include <inttypes.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string> #include <vector> #include "src/st...
// A Simple Logic Circuit Simulator // A project for PHYS 30762 Programming in C++ // Author : <NAME> (10241789) // Handed in on : 12.May.2018 // This program starts in Main.h #include "BoardCreator.h" void boardCreator() { // acts as a sub menu to navigate board creation // 1. Ask for dimensions...
#include "gcp/pgutil/PgModelManager.h" #include "cpgplot.h" using namespace std; using namespace gcp::util; enum { B_NORM=0, B_LINE=1, B_RECT=2, B_YRNG=3, B_XRNG=4, B_YVAL=5, B_XVAL=6, B_CROSS=7 }; /**....................................................................... * Constructor. */ PgModel...
// Copyright 2011 The Kyua Authors. // 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 conditio...
// // Created by <NAME> on 5/29/16. // #include "APGreenhouse.h" #include "APSimpleJSONQuery.h" #include "APSimpleSQL.h" #include "APSQLException.h" #include <sstream> #include <string.h> #include <json/json.h> APGreenhouse::APGreenhouse(Json::Value& config) { _jsonQueryObj = new APSimpleJSONQuery(); std::str...
#include "defines.h" double pos[3] = {0, 0, 0}; double rot[3] = {0, 0, 0}; void setOrthographicProjection() { // switch to projection mode glMatrixMode(GL_PROJECTION); // save previous matrix which contains the //settings for the perspective projection glPushMatrix(); // reset matrix glLoa...
/* Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with cer...
// // Original Author: <NAME> // // Copyright 2009 Spielberg Family Center for Applied Proteomics // Cedars Sinai Medical Center, Los Angeles, California 90048 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtai...
#include "SpriteSheet.h" SpriteSheet::SpriteSheet(std::string path, int sprite_width, int sprite_height, Color* transparent) { create(path, sprite_width, sprite_height); } SpriteSheet::SpriteSheet() { } SpriteSheet::~SpriteSheet() { free(); } void SpriteSheet::free() { //Free texture if it exists if (image != NUL...
/* Copyright (C) 2006 - 2013 ScriptDev2 <http://www.scriptdev2.com/> * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version....
/* * @Author: yuri3 * @Date: 2021-04-09 17:41:27 */ #include <bits/stdc++.h> using namespace std; const int MAXN = 505; const double EPS = 1e-8; struct Point { double x, y, z; Point() {} Point(double xx, double yy, double zz) : x(xx), y(yy), z(zz) {} Point operator-(const Point p1) { ...
#include "global.h" #include "RageUtil_BackgroundLoader.h" #include "RageFile.h" #include "RageFileManager.h" #include "RageUtil.h" #include "RageLog.h" #include "RageThreads.h" /* If we're on an OS with a good caching system, writing to our own cache will only * waste memory. In that case, just read the file, to f...
/* Copyright (c) 1999 - 2010, Vodafone Group Services Ltd 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...
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/devtools/device/adb/adb_device_info_query.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_u...
/* ** Copyright 2011-2015 Centreon ** ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** ** http://www.apache.org/licenses/LICENSE-2.0 ** ** Unless required by applicable law or agreed t...
// // Created by mohamedashraf on 10/24/21. // #include "FSM.h" #include "out.h" #include <ios> #include <mutex> #include <sstream> #include<fstream> #include <stdexcept> #include <string> #define debug 0 // set to 1 in case of debugging FSM::FSM(){}; //############################################## FSM::FSM(string na...
#include "LHCIgFileLoad.h" bool LHCIgFileLoad::openFile(string zipFile, string destination) { zipFile = ofToDataPath(zipFile); destination = ofToDataPath(destination); unzFile uf = unzOpen(zipFile.c_str()); bufferEvent.clear(); if (uf==NULL) { printf("Cannot open %s\n",zipFi...
#include <iostream> #include <cstdlib> #include <string> #include <regex> #include <map> #include <thread> #include <chrono> #include <set> #include <websocketpp/config/asio_no_tls.hpp> #include <websocketpp/server.hpp> #include "lib/json/json.hpp" #include "settings.h" #include "extensions_loader.h" #include "server...
#define FUSE_USE_VERSION 30 #include <fuse.h> // POSIX #include <sys/types.h> #include <sys/stat.h> // mode info #include <pwd.h> // user id #include <grp.h> // group id #include <unistd.h> // POSIX++ #include <climits> // PATH_MAX #include <cstdint> #include <cassert> #include <cstring> #include <ctime> // STL #inc...
#include "cpuid/cpuid.h" #include <signal.h> #include <unistd.h> #include <iostream> #include <sstream> #include <iomanip> #include <fstream> #include <cstring> #include <chrono> #include "argonishche.h" using namespace argonishche; volatile bool run = true; static void AlarmHandler(int i) { (void)i; /* To ...
// // Example for matching local AccurateRip checksums against the checksums // provided by AccurateRip. // #include <algorithm> // for count #include <cstdint> // for uint32_t etc. #include <cstring> // for strtok #include <fstream> // for ifstream etc. #include <iomanip> // for setw, setfill, hex #include <i...
#include "pch.h" #include "Console.h" // Singelton instance GxUtil::Console* GxUtil::Console::s_ptrInstance = NULL; GxUtil::ConsoleCallback GxUtil::Console::s_fptrNotifyCallback = NULL; GxUtil::Console* GxUtil::Console::getInstance() { return s_ptrInstance; } void GxUtil::Console::setNotifyCallback(ConsoleCallba...
#include <algorithm> #include <complex> #include <fstream> #include <functional> #include <iostream> #include <iterator> #include <memory> #include <vector> #include <sndfile.hh> #define kiss_fft_scalar float #include "kiss_fftr.h" namespace { const auto precision = []() -> std::streamsize { // https://www.worki...
#include <SDL.h> #include "ExampleLayer.hpp" #include "Application.hpp" #include "renderer/screen/Camera.h" #include "world/WorldStack.h" #include "world/TileMap.h" #include "renderer/Renderer.h" #include "audiomixer/AudioMixer.h" #include "entities/Entities.hpp" #include "utilities/Loggers.hpp" #include "renderer/tex...
/* Functions of the MATERIAL class * (some fragments taken from main() * Added by <NAME>, Feb 2014 * */ #include "material.h" #include <vector> #include <voro++.hh> #include "area_and_volume.h" #include "channel.h" #include "feature.h" #include "grid.h" #include "holograms.h" #include "instructions.h" #include "...
// generated by Fast Light User Interface Designer (fluid) version 2.0100 #include <fltk/HelpDialog.h> // Code for //\n// "$Id: HelpDialog.fl 4721 2005-12-19 16:52:... #include <fltk/string.h> #include <fltk/ask.h> using namespace fltk; inline void HelpDialog::cb_view__i(fltk::HelpView*, void*) { if (view_->filenam...
#include <bits/stdc++.h> using namespace std; u_int edge_hash(u_int i, u_int j, u_int m) { return i * m + j; } double distance(double x_i, double y_i, double x_j, double y_j) { double l1 = x_i - x_j; double l2 = y_i - y_j; return sqrt(l1*l1 + l2*l2); } #define distance(coordinates, i, j) distance(coordinates[i].f...
#include <cstdlib> #include <cstdio> #include <iostream> #include <sstream> #include <fstream> #include <deque> #include <time.h> /* time */ #include "model.hpp" #include <stdio.h> #include <stdlib.h> #include <algorithm> #include <cstring> #include <map> #include <vector> #include <cmath> #include <random> #incl...
#include "Hask/HaskDialect.h" #include "Hask/HaskOps.h" #include "lambdapure/Dialect.h" #include "lambdapure/Passes.h" #include "mlir/IR/Matchers.h" #include "mlir/IR/PatternMatch.h" #include <iostream> #include "mlir/Support/LLVM.h" #include "mlir/Support/LogicalResult.h" #include "mlir/Pass/Pass.h" #inc...
// // Copyright 2013 Uncodin, 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...
//Language: GNU C++ #include <cstdio> #include <cstring> #include <vector> #include <algorithm> using namespace std; typedef pair <int,int> ii; typedef pair <ii,ii> i4; int n, m, s, M[128][128]; vector<vector<int> > dist[128][128]; vector<vector<ii> > paidist[128][128]; short int terminal[128][128]; ii S[12]; int ...
#include "EvaluaPlugin.hpp" #include "ev.h" #include <cstdio> #include <cstring> EvaluaPlugin::EvaluaPlugin() : Plugin(Parameter_Count, DISTRHO_PLUGIN_NUM_PROGRAMS, State_Count), ev(new EV) { memset(&Program, 0, sizeof(Program)); loadProgram(0); for (unsigned chn = 0; chn < MaxPolyphony; ++chn)...
/* Copyright 2016 Massachusetts Institute of Technology 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 applicab...
// Copyright (c) 2012 <NAME>. // 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 <algorithm> #include <iostream> #include <vector> #include "testing/testing...
// Filename: CirculationModel.cpp // Created on 20 Aug 2007 by <NAME> // Modified by <NAME>, 7/2016 #include "CirculationModel.h" /////////////////////////////// INCLUDES ///////////////////////////////////// #ifndef included_IBAMR_config #include <IBAMR_config.h> #define included_IBAMR_config #endif #ifndef inclu...
//! @file //! @brief Test module - Source file. //! @author <NAME> (<EMAIL>) //! @version 1.0 //! @date 2016-2017 //! @copyright ICT-Project Mariusz Ornowski (ict-project.pl) /* ************************************************************** Copyright (c) 2016-2017, ICT-Project <NAME> (ict-project.pl) All rights reserve...
// #include <cassert> #include <exception> #include <string> #include "sodium.h" #include "hkdf.hpp" #pragma warning( disable : 26812 ) #include "recipe.hpp" #include "exceptions.hpp" #include "word-lists.hpp" extern "C" { #include "../extern/libsodium/src/libsodium/crypto_pwhash/argon2/argon2.h" } // Wrap json par...
#include <wayland-client.h> #include <cstring> #include "../shared/config.hpp" #include "vkeyboard.hpp" #include "../proto/wayfire-shell-client.h" #define ABC_TOGGLE 0x12345678 #define NUM_TOGGLE 0x87654321 #define SEND_SHIFT 0x10000000 #define MOVE 0x02000000 #define EXIT 0x03000000 #define USE_SHIFT 0x0...
#include "cbase.h" #include "face_api.h" using namespace std; FaceAPI::FaceAPI() { m_bFaceAPIHasCamera = true; m_bFaceAPIInitialized = false; } void FaceAPI::init() //smCoord3f *head_pos, smCoord3f *head_rot) { //this.head_pos = head_pos; //this.head_rot = head_rot; /*try { // Initialize the API THROW_ON_...
// Copyright (c) 2017-2021, Lawrence Livermore National Security, LLC and // other Axom Project Developers. See the top-level LICENSE file for details. // // SPDX-License-Identifier: (BSD-3-Clause) // usage : ./inlet_documentation_generation_example --enableDocs --fil lua_file.lua #include "axom/inlet.hpp" #i...
/************************************************************************* * * * Open Dynamics Engine, Copyright (C) 2001,2002 <NAME>. * * All rights reserved. Email: <EMAIL> Web: www.q12.org * * ...
// Cooperative multitasking library for Arduino // Copyright (c) 2015 <NAME> // // Changelog: // 2015-02-24 - Initial release // 2015-02-28 - added support for disable on last iteration // 2015-03-25 - changed scheduler execute() function for a more precise delay calculation: // 1. Do not d...
#include "gtest/gtest.h" #include "primitives/matrix.h" #include "primitives/tuple.h" class MatrixTest : public ::testing::Test { protected: MatrixTest() {}; ~MatrixTest() {}; }; TEST(MatrixTest, SetGet) { Matrix m = Matrix(3, 4); ASSERT_FLOAT_EQ(m(0, 0), 0.0); m.Set(1.0, 1, 1); ASSERT_FLOAT_EQ(m(1, 1)...
// // Copyright (c) 2013, Ford Motor Company // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // Redistributions of source code must retain the above copyright notice, this // list of condit...
#include <iostream> #include <iomanip> #include <limits> #include <algorithm> #include <vector> #include <set> #include <random> using std::pair; using std::vector; using std::set; using std::mt19937; class SupportVectorMachine { public: SupportVectorMachine( vector<vector<double>> objects, vect...
#include "CFactorGraph.h" #include "Factor.h" bool CFactorGraph::checkForIdenticalFactors = true; CFactorGraph::CFactorGraph (const FactorGraph& fg) { groundFg_ = &fg; freeColor_ = 0; const VarNodes& varNodes = fg.varNodes(); varSignatures_.reserve (varNodes.size()); for (unsigned i = 0; i < varNodes.si...
/*---------------------------------------------------------------------- -----------IOT BASED SMART PARKING USING BEAGLEBONE BLACK WIRELESS------ ----Author: <NAME>-------------------------------------------------- ----Team members: <NAME>, <NAME>------------- ----Mentor:Prof. Dr. <NAME>--------------------------------...
//=========================================== // Lumina-DE source code // Copyright (c) 2013-2017, <NAME> // Available under the 3-clause BSD license // See the LICENSE file for full details //=========================================== #include "LFileInfo.h" #include <LUtils.h> #include <QRegExp> #include <unistd....
#include <cstdlib> #include <iostream> #include <fstream> #include <iomanip> #include <string> #include <map> #include <cstdint> #include "decode2.cpp" #include "verilated_vcd_c.h" #include "Vaquila_testharness.h" #include "Vaquila_testharness__Syms.h" #include "verilated.h" #include "sim_mem.h" #define TRACE //#u...
//----------------------------------*-C++-*----------------------------------// // Copyright 2020 UT-Battelle, LLC, and other Celeritas developers. // See the top-level COPYRIGHT file for details. // SPDX-License-Identifier: (Apache-2.0 OR MIT) //-------------------------------------------------------------------------...
/* * SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: Apache-2.0 * * 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 ...
/* SDS, a bridge single-suit double-dummy quick-trick solver. Copyright (C) 2015-16 by <NAME>. See LICENSE and README. */ /* Twiddle functions: Generate all combinations of M elements drawn without replacement from a set of N elements. This routine may be used in two ways: (0) To generate all ...
// // Created by <NAME> 10/20/2017 // Copyright 2017 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 "PickScriptingInterface.h" #include <QVariant> #include "GLMHelpers.h" #include <Pi...
#include "ZControl.h" #include "ZCompoundControl.h" #include "ZApp.h" ZLinkedList *ZControl::factoriesLL() { static ZLinkedList *ll = new ZLinkedList(); return ll; } int ZControl::registerFactory(const char *type, ZControlFactory factory) { ZControlFactoryDeclaration *data = new ZControlFactoryDeclaration(); ...
// written by y0ny0ns0n #include "backend.h" #include "targets.h" #include "utils.h" #include "mutator.h" #include "crash_detection_umode.h" #include <fmt/format.h> namespace fs = std::filesystem; using namespace std; #define FIELD_SIZEOF(t, f) (sizeof(((t*)0)->f)) /* test_tlv_server source code: https://gist.git...
/* Copyright (c) 1999 - 2010, Vodafone Group Services Ltd All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of condit...
#include <bits/stdc++.h> #include <SFML/Graphics.hpp> using namespace std; const int N = 15; const int M = 20; const int SPRITE_SIZE = 16; const int BOMB_COUNT = 50; int field[M + 2][N + 2]; int output[M][N]; bool generating; int curbomb; bool gameOver; void openCell(sf::Vector2i pos) { queue<pair<int, int>> bfs; ...
// Copyright 2009 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicabl...
/* @project MacroPad @file main.cpp @author <NAME> 2021-06-04 - Created, based on tinyboatproductions instructables (Macropad V2) and Mark Stanley Multikey.ino -- Hardware Modifications: Leds Removed; -- Code major modifications: Adjustments on debouncing, multikey features, allows change of music to previous, ena...
/*************** * MODULE: flares.cpp * PROJECT: Scenario * DESCRIPTION: lens flare functions * AUTHORS: <NAME> * HISTORY: * DATE NAME COMMENT * 22.10.96 mh initial release * 13.11.96 mh Duplicate * 18.11.96 ah added Read() and ParseFlare() * 09.02.97 mh ad...
// ================================================================= // Copyright (C) 2020 Hochschule Karlsruhe - Technik und Wirtschaft // This program and the accompanying materials // are made available under the terms of the MIT license. // ================================================================= // Author...
/* * Copyright (c) 2009-2011 Intel Corporation. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
#include <Windows.h> #include <stdio.h> #include <dsptool.h> /**************************************** Sora Viewer - Yet another gui tool for Baseband Test Should it be a replacement of MatLab? ****************************************/ #include "const.hpp" #include "context...