text
stringlengths
3.08k
22k
// Copyright (c) 2009-2021 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. // Maintainer: mphoward /*! * \file mpcd/SRDCollisionMethod.h * \brief Definition of mpcd::SRDCollisionMethod */ #include "SRDCollisionMethod.h" #include "h...
// // Created by baifeng on 2021/10/7. // #include "battle.h" #include "data.h" #include "view.h" #include "lutok3.h" #include "common/action.h" #include "common/game.h" #include "common/collision.h" #include "common/loadres.h" #include "common/audio.h" #include "common/log.h" #include "object.h" #include "const.h" #i...
/* ** Copyright 2011-2013 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...
/* MIT License Copyright (c) 2018 WHILL inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, d...
/* Dia -- an diagram creation/manipulation program * Copyright (C) 1998, 1999 <NAME> * * paginate_gdiprint.c -- pagination code for the win32 GDI. Rendering * is done by the WMF plug-in. * * based on : * paginate_gnomeprint.[ch] -- pagination code for the gnome-print backend * Copyright (C) 1999 <NAME> *...
// Copyright 2009-2015 Sandia Corporation. Under the terms // of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. // Government retains certain rights in this software. // // Copyright (c) 2009-2015, Sandia Corporation // All rights reserved. // // This file is part of the SST software package. For license ...
/**************************************************************************** * * Copyright (C) 2017 <NAME>. All rights reserved. * Copyright (C) 2017 Fan.zhang. All rights reserved. * Copyright (C) 2017 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with o...
/* * Copyright 2020 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writin...
/* Copyright 2015, ARM Limited or its affiliates. All rights reserved. */ #include <getopt.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "../lib/comms.h" #define MAX_LONG_OPTS 10 #define DEF_RUNTIME_S 10 #define DEF_QCI 5 #define IP_ADDR 0x01020304 const uint8_t MAC[] = {0xda, 0xf2, 0x...
#include "dynet/nodes.h" #include "dynet/dynet.h" #include "dynet/training.h" #include "dynet/timing.h" #include "dynet/rnn.h" #include "dynet/gru.h" #include "dynet/lstm.h" #include "dynet/dict.h" #include "dynet/expr.h" #include "dynet/globals.h" #include <algorithm> #include <iostream> #include <fstream> #include <...
#include <bitset> #include "Fleece+Dart.h" #include "Utils.h" // === Fleece ================================================================= // === Slice static void CBLDart_FLSliceResultFinalizer(void *dart_callback_data, void *peer) { auto slice = reinterpret_cast<FLS...
// origami_met.cc -- sample the origami shape space using Metropolis MC. // // This file can be compiled with com: https://is.gd/compileanything // // com: : ${CXX:=c++} // com: : ${CXXFLAGS:=-std=c++11 -Wall -Wextra -Werror -Ofast -static} // com: ${CXX} {} ${CXXFLAGS} -o {.} // #include "../utils.hh" #include <casse...
#include <stdlib.h> #include <string.h> #include <ctype.h> #include "tagger.h" #include <set> #include <algorithm> #include <sstream> #include <iterator> #include <string> #include <vector> #include "porter_stemmer.h" struct WordComparitor { bool operator()(const std::pair<std::string,int> &s1, const std::pair<std::...
/////////////////////////////////////////////// // // GUIConstants.h // hlavni obecne konstanty a typy GUI // urcuji defaultni chovani a vzhled prvku GUI, Editoru // // A: <NAME> // /////////////////////////////////////////////// #include "stdafx.h" #include "GUIConstants.h" int STD_FONT_SIZE = 16; ...
/* * Copyright (c) Facebook, Inc. and its 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 applic...
/* Copyright (c) 2007-2017 Contributors as noted in the AUTHORS file This file is part of libzmq, the ZeroMQ core engine in C++. libzmq is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as published by the Free Software Found...
#include <Arduino.h> #include <SimpleDHT.h> #include "ArduinoJson.h" #include <ESP8266WiFi.h> #include <ESP8266HTTPClient.h> #include <Wire.h> #include <LiquidCrystal_I2C.h> #include <SoftwareSerial.h> #define dhtpin 0 //D3 #define ledaire 16 //D0 #define DHTTYPE DHT22 #define echopinE 14 //D5 #define tri...
/* Dwarf Therapist Copyright (c) 2009 <NAME> (chmod) 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...
#include "detector/OCLLaBr3.hh" #include "SingleScintParameters.hh" #include <G4NistManager.hh> #include <G4Tubs.hh> #include <G4Cons.hh> #include <G4Polycone.hh> #include <G4MultiUnion.hh> #include <G4AssemblyVolume.hh> #include <G4LogicalVolume.hh> #include <G4PVPlacement.hh> #include <G4VisAttributes.hh> #include ...
/// Author: Diffblue Ltd. #include "symbol_table.h" #include <algorithm> #include <util/invariant.h> #include <util/validate.h> /// Move or copy a new symbol to the symbol table. /// \remarks This is a nicer interface than move and achieves the same /// result as both move and add. /// \param symbol: The symbol to...
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "test_utils.h" #include "intel_gpu/runtime/layout.hpp" using namespace cldnn; using namespace ::tests; struct layout_test_params { data_types dt; format fmt; std::vector<tensor::value_type> size; std::ve...
//===-- InternalNames.cpp -------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
//================================================================================ // Copyright (c) 2013 ~ 2019. <NAME>(<EMAIL>) // All rights reserved. // // The 3-Clause BSD License (https://opensource.org/licenses/BSD-3-Clause) // // Redistribution and use in source and binary forms, // with or without modificatio...
#include <opencv2/opencv.hpp> #include <sophus/se3.hpp> #include <boost/format.hpp> #include <ceres/ceres.h> #include <chrono> using namespace std; typedef vector<Eigen::Vector2d, Eigen::aligned_allocator<Eigen::Vector2d>> VecVector2d; // Camera intrinsics double fx = 718.856, fy = 718.856, cx = 607.1928, cy = 185.2...
/** * The Vienna Vulkan Engine * * (c) bei <NAME>, University of Vienna * */ #include "VEInclude.h" namespace ve { ///simple event listener for rotating objects class RotatorListener : public VEEventListener { VESceneNode *m_pObject = nullptr; float m_speed; glm::vec3 m_axis; public: ///Constructor R...
// The contents of this file are in the public domain. See LICENSE_FOR_EXAMPLE_PROGRAMS.txt /* This example shows how to run a CNN based vehicle detector using dlib. The example loads a pretrained model and uses it to find the rear ends of cars in an image. We will also visualize some of the detector's pr...
/* * Copyright 2018-2019 Fairtide Pte. 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 o...
#include <sstream> #include <iostream> #include <iomanip> #include <random> #include "common/configuration.h" #include "common/csv_writer.h" #include "common/proto_utils.h" #include "common/service_utils.h" #include "common/types.h" #include "connection/zmq_utils.h" #include "module/ticker.h" #include "proto/api.pb.h"...
/********************************************************************* * * Software License Agreement (BSD License) * * Copyright (c) 2015, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condition...
// Copyright 2021 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include "model_runner.h" #include <ctime> #include <platform.h> // for PLATFORM_REFERENCE_MHZ #include <xcore/assert.h> #include "model_memory_loader.h" #include "tensorflow/lite/micro/kernels/xcore/xcor...
// Author: <NAME> <EMAIL> // <NAME> <EMAIL> #include <iostream> #include <fstream> #include <iterator> #include <string> #include <vector> #include <opencv2/opencv.hpp> #include <image_transport/image_transport.h> #include <opencv2/highgui/highgui.hpp> #include <nav_msgs/Odometry.h> #in...
// ogl_Terrain.inl // Author: Logan "Burn" Jones //////////////////// Date: 2/6/2002 // ///////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// // ogl_Terrain::Recalculate...
/* * mwcs.cpp * * Created on: 27-jul-2012 * Authors: <NAME>, <NAME>, <NAME> */ #include <iostream> #include <lemon/arg_parser.h> #include <lemon/time_measure.h> #include <stdio.h> #include <string.h> // ILOG stuff #include <ilconcert/iloalg.h> #include <ilcplex/ilocplex.h> #include "parser/mwcsparser....
#include "XMLLoader.h" #include <fstream> #include "tinyxml.h" #include "Animation.h" #include "Mesh.h" #include "matrix4.h" bool XMLLoader::LoadMesh( const std::string& file_name, std::vector< Mesh >& meshes ) { TiXmlDocument xml_document; TiXmlElement* model_element; TiXmlElement* mesh_element; TiX...
/* * Copyright (c) 2021, The Regents of the University of California * 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 *...
/* * @ File : IDT.cc * @ Description : This initialises the IDT */ #include <system.h> // @ Define : IDT entries idt_entry_t idt_entries[256]; idt_ptr_t idt_ptr; // @ Task : Initialise the IDT void init_idt() { idt_ptr.limit = sizeof(idt_entry_t) * 256 -1; idt_ptr.base = (u32int)&idt_entries; memset(&idt...
#include "keymap.h" std::unordered_map<std::string, uint8_t> keycodes = { { "", 0, }, {"a", 4}, {"b", 5}, {"c", 6}, {"d", 7}, {"e", 8}, {"f", 9}, {"g", 10}, {"h", 11}, {"i", 12}, {"j", 13}, {"k", 14}, {"l", 15}, {"m", 16}, {"n", 17}, {...
/* * Copyright (c) 2009 <NAME> University. * 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 * * ...
/********************************************************************** * Copyright (c) 2021, <NAME> * All rights reserved. * * This file is subject to the terms and conditions of the BSD 2-Clause * License. See the file LICENSE in the root directory of the Rinvid * repository for more details. ****************...
//--------------------------------------------------------------------------- // E L E N A P r o j e c t: ELENA Compiler // // This file contains the base class implementing ELENA RTManager. // // (C)2005-2019, by <NAME> //-----------------------------------------...
// license:BSD-3-Clause // copyright-holders:<NAME> /*************************************************************************** ccpudasm.c Core implementation for the portable Cinematronics CPU disassembler. Written by <NAME> Special thanks to <NAME> for his detailed documentation. *****************...
#include <fstream> #include <iostream> #include <string> #include <cstring> #include <sstream> #include <vector> #include "file-system.h" #include "token.h" #include "token_exception.h" #include "tokenreader.h" #include "pointer.h" using namespace std; /* tokenreader reads a file formatted with s-expressions. exampl...
/*----------------------------------------------------------------------------- * * File: wiautil.cpp * Author: <NAME> (samclem) * Date: Mon Aug 16 13:22:36 1999 * * Copyright (c) 1999 Microsoft Corporation * * Description: * Contains the implementation of the Wia utility methods. * * History: ...
/***************************************************************************** * This file is provided under the Creative Commons Attribution 3.0 license. * * You are free to share, copy, distribute, transmit, or adapt this work * PROVIDED THAT you attribute the work to the authors listed below. * For more information,...
#include "openglwidget.h" OpenGLWidget::OpenGLWidget(QWidget *parent) : QOpenGLWidget(parent) { playerPosX = 0; playerPosY = -0.8f; } void OpenGLWidget::startup() { busPos[0] = 0; busPos[1] = 1; busPos[2] = -1; busPos[3] = -0.5f; busPos[4] = 0.8f; busPos[5] = 0.2f; busPos[6] ...
//===--- ValueLifetime.cpp - ValueLifetimeAnalysis ------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
/******************************************************************************* * (c) 2019 ZondaX GmbH * * 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/lic...
// 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 (...
/*----------------------------------------------------------------------------*/ /* Copyright (c) Creighton 2015. All Rights Reserved. */ /* Open Source Software - May be modified and shared but must */ /* be accompanied by the license file in the root source directory ...
#include "../core/udt.h" #include <iostream> #include <iomanip> #include <signal.h> #include <cstdlib> #include <cstring> #include <netdb.h> #include <unistd.h> #include <cassert> #include <chrono> using namespace std; void* monitor(void*); void* wait_for_new_result(void*); void* send_things(void*); void* monitor2(...
#include "chifer.h" #include <algorithm> UserInput apply_strategy( const Ceil& pattern, char history_deep ) { /* UserInput newui; if ( history.size() == 0 ) { newui = "0123"; return newui; } std::set<int> free_set; std::set<int> prev_set; prev_set.insert( history.back()[0...
// // Revision 1.30 2011/03/30 21:44:03 fwyzard // make sure HLTConfigProvider is used only if succesfully initialized // // Revision 1.29 2011/03/30 21:35:40 fwyzard // make sure all members are initialized // // Revision 1.28 2011/03/29 09:46:03 rekovic // clean vector pairPDPaths in beginRun and tidy up // // ...
#include <fstream> #include <functional> #include <iostream> #include <numeric> #include <string> #include <vector> #include "lockmanager.h" using std::ofstream; using std::reduce; using std::string; using std::vector; using std::chrono::duration_cast; using std::chrono::high_resolution_clock; using std::chrono::nano...
/******************************************************/ // THIS IS A GENERATED FILE - DO NOT EDIT // /******************************************************/ #include "Particle.h" #line 1 "c:/Users/reed_/Documents/IoT/PredictiveWateringSystem/SoilExperiment/src/SoilExperiment.ino" /* * Project SoilE...
#include <math.h> #include <vfh_rover/PathParams.h> #include <vfh_rover/VFHistogram.h> #include <vfh_rover/Vehicle.h> #include <string> #include <assert.h> #include <iostream> #include <cmath> #include <pcl/point_types.h> #include <geometry_msgs/Pose.h> #include <Eigen/Dense> #include <Eigen/Geometry> using namespace ...
/* * Copyright 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.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
#include "ray_tracer.h" #include "core/chunks.h" #include "core/profiler.h" #include "core/math/vector3f.h" #include "core/task_utils.h" #include "core/node.hpp" #include "ray_tracing/geometry_offset.h" #include "ray_tracing/vertex_buffer.h" #include "core/util.h" RayTracer::RayTracer() { device = rtcNewDevice( NULL...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #include "config.h" #include <iostream> #include <cstdlib> #include <utility> #include <list> #include "common.hh" #include "item_pager.hh" #include "ep.hh" static const double EJECTION_RATIO_THRESHOLD(0.1); static const size_t MAX_PERSI...
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2019 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of t...
/* Copyright (C) 2020-2021 Free Software Foundation, Inc. This file is part of GDB. 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 3 of the License, or (at your option...
#include "HuffmanTree.h" #include <fstream> #include <iostream> #include <cstdlib> #include <string> #include <vector> #include <sstream> #include <unordered_map> #include "BinaryFile.h" #include "StringSplitter.h" #include "PA1.h" using namespace std; //reads a file in from binary information static...
#include <bits/stdc++.h> using namespace std; void vectorDemo() { /*->vectors are dynamic arrays ie expand size as per need automatically (2 times the previous size) ->vectors store data in contiguos memory space*/ //declare a vector //blank vector decleration (initial capacity-0) // vector<int> v; //vector wi...
/** * Description: Segment Tree 2D (Support point updates and associative operations like sum, max on a 2-D integer matrix) * Usage: construct O(NM), * query O( lg(N) lg(M) ), * update O( lg(N) lg(M) ) * Source: https://github.com/dragonslayerx */ class SegTree2D { vector<vector<long long> > segtree; ...
//Gvs Akhil (Vicennial) #include<bits/stdc++.h> #define int long long #define pb push_back #define eb emplace_back #define mp make_pair #define mt make_tuple #define ld(a) while(a--) #define tci(v,i) for(auto i=v.begin();i!=v.end();i++) #define tcf(v,i) for(auto i : v) #define all(v) v.begin(),v.end() #define rep(i,sta...
/* * This file is part of the CMaNGOS Project. See AUTHORS file for Copyright information * * 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 o...
#define STB_IMAGE_IMPLEMENTATION #include <stdio.h> #include <string.h> #include <cmath> #include <vector> #include <GL\glew.h> #include <GLFW\glfw3.h> #include <glm\glm.hpp> #include <glm\gtc\matrix_transform.hpp> #include <glm\gtc\type_ptr.hpp> #include "Window.h" #include "Mesh.h" #include "Shader.h" #include "C...
#include "../fft/arbitrary-mod-convolution.cpp" /** * @brief Formal-Power-Series(形式的冪級数) */ template< typename T > struct FormalPowerSeries : vector< T > { using vector< T >::vector; using P = FormalPowerSeries; using Conv = ArbitraryModConvolution< T >; P pre(int deg) const { return P(begin(*this), beg...
#include <bits/stdc++.h> using namespace std; const int MOD = 998244353; // 998244853; template <typename T> struct modular { constexpr modular() : val(0){} constexpr modular(const modular<T>& _m) : val(_m.val) {} template <typename U> constexpr modular(const U& _r = U()) { val = -MOD <= _r && _r...
// Dans actualiseDelayTime() : mettre mécanisme de contrôle pour éviter que tout devienne fou si la mesure dysfonctionne // Par exemple limiter la tension mesurée à un intervalle comme [10,13] Volt avec des fonctions min et max. /********************* * Gestion des moteurs **********************/ #include <Ar...
#include <stdio.h> #include <stdbool.h> #include <avr/io.h> #include "rfid.h" #include "spi.h" #include "uart.h" // "address" of a register void rfid_write_register(uint8_t address, uint8_t data) { spi_slave_select(true); // 0 <address, 6b> 0 spi_transmit((address & 0x3f) << 1); spi_transmit(data); ...
#include<bits/stdc++.h> #define mt make_tuple #define mp make_pair #define pu push_back #define INF 1000000001 #define MOD 1000000007 #define EPS 1e-6 #define ll long long int #define ld long double #define fi first #define se second #define all(v) v.begin(),v.end() #define pr(v) { for(int i=0;i<v.size();i++) { v[i]==I...
// OVRScene.cpp #include "OVRScene.h" #ifdef __APPLE__ #include "opengl/gl.h" #endif #ifdef _WIN32 # define WINDOWS_LEAN_AND_MEAN # define NOMINMAX # include <windows.h> #endif #define _USE_MATH_DEFINES #include <math.h> #include <stdlib.h> #include <string.h> #include <algorithm> #include <OVR_CAPI.h> #includ...
#include <iostream> #include <ctime> #include <set> #include <fcntl.h> #include "cxxopts.hpp" #include "../lib/include/picosha2.hpp" #include "plotter_disk.hpp" #include "bls.hpp" using std::string; using std::vector; using std::endl; using std::cout; using namespace bls; static void HexToBytes(const string &hex, ui...
/* ----------------------------------------------------------------------------------- * * File House.cpp * Ported By <NAME> * Contact <EMAIL> * * ----------------------------------------------------------------------------------- * * Copyright (c) 2010-2013 XMS...
/* * Copyright 2021 The Modelbox Project Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
/*************************************************************************** Atari Night Driver machine If you have any questions about how this driver works, don't hesitate to ask. - <NAME> (<EMAIL>) ***************************************************************************/ #include "driver.h" #include "vidhrdw/...
#include <vectcom/Configuration.h> #include <vectcom/PolyCrypto.h> #include <vectcom/PolyOps.h> #include <vectcom/Utils.h> #include <vectcom/KZG.h> #include <vectcom/FFT.h> #include <vectcom/KatePublicParameters.h> #include <cmath> #include <ctime> #include <iostream> #include <fstream> #include <stdexcept> #include ...
/* * Copyright (c) 2018 https://www.thecoderscorner.com (Nutricherry LTD). * This product is licensed under an Apache license, see the LICENSE file in the top-level directory. */ #include <inttypes.h> #include <Arduino.h> #include "SwitchInput.h" #define ONE_TURN_OF_ENCODER 32 SwitchInput switches; void register...
// //////////////////////////////////////////////////////// // # Title // The millionth number with at least one million prime factors // // # URL // https://projecteuler.net/problem=615 // http://euler.stephan-brumme.com/615/ // // # Problem // Consider the natural numbers having at least 5 prime factors, which don't ...
#include "Atmosphere.h" #include <ostream> namespace { const char* gVertShader = R"( #version 300 es layout(location = 0) in vec2 position; uniform highp mat3 rotation; out highp vec3 direction; void main() { direction = rotation * (vec3((position * 2.0) - 1.0, 1.0) * vec3(1, -1, 1)); gl_Position = vec4(((p...
/*===========================================================================*\ * * * CoMISo * * Copyright (C) 2008-2009 by Computer Graphics Group, RWTH Aachen * * ...
/** * @file * * @brief tests for the config service * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) */ #include <regex> #include <gtest/gtest.h> #include <service.hpp> /** * TESTS for kdbrest::service::ConfigEngine */ TEST (kdbrestServiceConfigengineTest, ArrayKeyRegexCheck) { s...
#include <modm/platform.hpp> #include <tinyusb/tusb.h> #include "SystemClock.hpp" #include <chrono> using namespace modm::platform; using namespace std::chrono_literals; // Flash page where application program begins -- this must be aligned to ERASE_PAGES boundary. // Pages are 512 bytes. // In this example bootloa...
/*---------------------------------------------------------------------------------*/ /* NOMAD - Nonlinear Optimization by Mesh Adaptive Direct Search - */ /* */ /* NOMAD - Version 4 has been created by ...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2010 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 * * h...
// -*-Mode: C++;-*- //*BeginLicense************************************************************** // //--------------------------------------------------------------------------- // TAZeR (github.com/pnnl/tazer/) //--------------------------------------------------------------------------- // // Copyright ((c)) 2019, ...
// 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 "net/http/des.h" #include "base/logging.h" #if defined(USE_OPENSSL) #include <openssl/des.h> #include "crypto/openssl_util.h" #elif defined...
//===----------------------------------------------------------------------===// // // Author: <NAME> <<EMAIL>> // Copyright (c) 2018 Secure Systems Group, Aalto University <ssg.aalto.fi> // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------...
#include <iostream> #include <bitset> #include <sstream> #include <vector> #include <fstream> #include <cmath> #include <string> #define print(x) std::cout << x << std::endl; unsigned int allocations_G = 0; void* operator new(size_t size) { ++allocations_G; return malloc(size); } int convert...
/* * 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 ma...
/* * 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 ag...
// Copyright (c) 2018 The Blocknet developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "json/json_spirit_utils.h" #include "json/json_spirit_value.h" #include "xseries.h" #include "xbridge/xbridgetransactiondesc...
/** * @file metapy_parser.cpp * @author <NAME> * * This file defines the metapy.parser submodule and creates bindings for * that part of the MeTA API. */ #include <cmath> #include <pybind11/functional.h> #include <pybind11/pybind11.h> #include <pybind11/stl.h> #include <sstream> #include "meta/parser/trees/ev...
#include <algorithm> #include <vector> #include <sstream> #include "InterpreterUtils.h" using namespace std; //============================================================================= EvalError::EvalError(const string &where, const string &what): EvalError(NullSourceContext, where, what) { } ...
#include <iostream> #include <string> #include <array> #include <list> #include <map> #include <stdio.h> #include <assert.h> using namespace std; struct burrow { // ..x.x.x.x.. // x = forbidden outside-of-room space, but it's convenient to have // an index for those even though they can't be used array<char, ...
// ConfettiServer.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "ConfettiServer.h" #include<afxsock.h> #include<stdlib.h> #include<vector> #include<thread> #include<fstream> #ifdef _DEBUG #define new DEBUG_NEW #endif // The one and only application object CWinApp theApp;...
#include <inttypes.h> #include <stdio.h> #include <string.h> #include <memory.h> #include <math.h> #include <cmath> #include "core.h" #include "gpu.h" #include "console.h" #define MAX_PARTICLES 1024 void drawrect(const float ox, const float oy, float rate) { const uint8_t ncolor = 0x7C; float roll = rate; //1.8...
/** MIT License The MIT License (MIT) Copyright (c) 2017 <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, mo...
#include <iostream> #include <cstdlib> #include "functions.h" using namespace std; char intelligent(char *moves){ int i; for (i = 0; moves[i] != 'F' ; ++i) ; if(moves[i-1] == 'U'){ return 'D'; }else if(moves[i-1] == 'D'){ return 'U'; }else if(moves[i-1] == 'L'){ retu...
// SimpleBOCCIIExample.cpp : Defines the entry point for the console application. // #include "stdafx.h" #define PERFORM_ERROR {\ string str;\ while((str=(string)LastErrorInfo)!="")\ printf("%s\n",str.c_str());\ goto end_of;\ } #define ACC 0.001 #define LOW_FREQ 0 #define HIGH_FREQ 1e6 /...