text
stringlengths
3.08k
12.5k
/* -*-Mode: c++;-*- Various vector related code. @section license License 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...
#include <lj/particle.hpp> #include <lj/boundary_condition.hpp> // #include <lj/verletlist.hpp> #include <lj/cell_list.hpp> #include <iterator> #include <fstream> #include <random> namespace lj { template<typename Real> constexpr static Real sgm = 1.0; template<typename Real> constexpr static Real eps = 1.0; template<...
#include "Symbol.h" #include "evalscc.h" #include "except.h" #include "io.h" #include "macros.h" #include "scc.h" #include "term.h" class EvaluatorSccState : public concrete_EvaluationState { public: enum { MaxDFI = 0xffffffff }; unsigned dfi, min_reachable_dfi; void reaches(unsigned r) { if(min_reachab...
#include <array> #include <chrono> #include <memory> #include <vector> #include <deque> #include <random> #include <iostream> #include <SFML/Window.hpp> #include <SFML/Graphics.hpp> namespace { namespace resources { namespace textures { constexpr uint32_t snake_segment_body = 0x01u; // constexpr uint32_t snake_segment...
#include <ros/ros.h> #include <image_transport/image_transport.h> #include <opencv2/highgui/highgui.hpp> #include <sensor_msgs/image_encodings.h> #include <cv_bridge/cv_bridge.h> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/features2d.hpp> #include <std_msgs/UInt16Mult...
#include <cstdlib> #include <cstring> #include <ctime> #include <iomanip> #include <iostream> #include <pthread.h> #include <unistd.h> using namespace std; void *ATB(void *); void *BTA(void *); pthread_mutex_t _mutex, atb, bta, mutex1; time_t start; int atbcnt, btacnt; int atbcyc, btacyc; // to check for starvation ...
#include "resources.h" #include <cstdio> #include <filesystem> #include <SDL.h> #ifdef ANDROID #include <jni.h> #include <android/asset_manager.h> #include <android/asset_manager_jni.h> #endif PVector<ResourceProvider> resourceProviders; ResourceProvider::ResourceProvider() { resourceProviders.push_back(this); ...
/* mbed * Copyright (c) 2006-2015 ARM Limited * * 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...
#include <room_segmentation/morphological_segmentation.h> #include <room_segmentation/wavefront_region_growing.h> #include <room_segmentation/contains.h> MorphologicalSegmentation::MorphologicalSegmentation() { } void MorphologicalSegmentation::segmentMap(const cv::Mat& map_to_be_labeled, cv::Mat& segmented_map, do...
#include<string> #include<iostream> #include<iomanip> #include<cmath> using namespace std; struct Personal_details{ string name; int age; }; struct Body_Temperature{ double temperature; char scale = 'C' ; }; struct BMI{ double height = 1.70 ; string scaleh = "m"; double weight = 80;...
/* Copyright 2019 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
// Optimise #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; // #define MULTI_TEST #ifdef LOCAL #include "/home/shahraaz/bin/debug.h" #else #define db(...) #define pc(...) #endif #define f first #define s second #de...
#include <cassert> #include <cstdio> #include <cstring> #include <cstdlib> #include <algorithm> using namespace std; #define NMAX 100000 #define SEED (233) static struct MyRandom { MyRandom() { srand(SEED); } int operator()() const { return rand(); } } randint; // struct MyRandom s...
#include <iostream> #include <fstream> #include <sstream> #include <iterator> #include <streambuf> #include <mimetic/mimetic.h> #include <mimetic/utils.h> #include <openssl/bio.h> #include <openssl/pkcs7.h> #include <openssl/x509.h> #include <openssl/err.h> #include <openssl/ssl.h> using namespace std; using namespace...
#include <iostream> #include <set> #include <algorithm> #include <functional> #include <ode/ode.h> #include <drawstuff/drawstuff.h> #include "texturepath.h" #ifdef dDOUBLE #define dsDrawBox dsDrawBoxD #define dsDrawCylinder dsDrawCylinderD #endif using namespace std; dWorld *world; dSpace *space; dPlane *ground; dB...
/* * * Copyright 2018 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
/* -------------------------------------------------------------------------- * * File Ch2_DPad.cpp * Ported By <NAME> * Contact <EMAIL> * * Created By <NAME> * Contact <EMAIL> * * -----------------------------------------------------------------...
#include <boost/algorithm/string.hpp> #include "cover.hpp" #include "parse.hpp" ClosedRectangleQ load_square(const std::string& dir) { auto line = read_file(dir + "/square.txt"); boost::trim(line); const auto coords = split(line, " "); if (coords.size() != 4) { std::ostringstream err{}; ...
// Copyright 2010 Google 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...
/* * Title: 4PositionsHomeToHardStop * * Objective: * This example demonstrates control of the ClearPath-MCPV operational mode * Move To Absolute Position, 4 Positions (Home to Hard Stop). * * Description: * This example enables, homes, and then moves a ClearPath motor between * preprogrammed absol...
// BSD 2-Clause License, see github.com/ma16/rpio #include <Device/Ads1115/Bang/Host.h> #include <Device/Ads1115/Bang/Generator.h> #include "../invoke.h" #include <Neat/cast.h> #include <Ui/strto.h> #include <chrono> #include <deque> #include <iostream> #include <math.h> using namespace Device::Ads1115 ; // Circuit u...
#include "machine.h" Machine::Machine(InfMach Var){ OutPrimeIndex = (int)Var.PrimeUsage; OutSecondaryIndex = (int)Var.SecondaryUsage; InPrimeIndex = (int)Var.Prime.second; InSecondaryIndex = (int)Var.Secondary.second; ComIndex.first = Var.Prime.first; ComIndex.second = Var.Secondary.first; Ratio = 50; LastPro...
/* MIT License * * Copyright (c) 2021 laferenorg * * 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, m...
// OVOFAntiZhuyinwen: Anti-Zhuyinwen filter // // Copyright (c) 2004-2008 The OpenVanilla Project (http://openvanilla.org) // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // 1. Redistr...
#include "CLIOptions.h" #include <mull/Diagnostics/Diagnostics.h> #include <mull/Mutators/Mutator.h> #include <mull/Reporters/IDEReporter.h> #include <mull/Reporters/MutationTestingElementsReporter.h> #include <mull/Reporters/SQLiteReporter.h> #include <mull/Reporters/PatchesReporter.h> #include <mull/Reporters/GithubA...
/* * Copyright 2018 Southwest Research Institute * 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 ...
// Options class // https://gist.github.com/ksimek/4a2814ba7d74f778bbee // boost::log // boost::log tutorial #include <boost/program_options.hpp> #include <boost/log/core.hpp> #include <boost/log/trivial.hpp> #include <boost/log/expressions.hpp> #include <iostream> #include <sstream> #include <fstream> #include <itera...
#include <Arduino.h> #include "pwm.h" #include "config.h" void setup_pwm() { pinMode(42, OUTPUT); pmc_enable_periph_clk (PWM_INTERFACE_ID) ; // turn on clocking to PWM unit PWMC_DisableChannel(PWM_INTERFACE, 0); PWMC_DisableChannel(PWM_INTERFACE, 1); PWMC_DisableChannel(PWM_INTERFACE, 2); // Co...
 #include "cbase.h" #include "editorCommon.h" CNodeMultiply::CNodeMultiply(CNodeView *p) : BaseClass("Multiply", p) { m_bMatrixRotation = false; GenerateJacks_Input(2); GenerateJacks_Output(1); SetJackFlags_Input(0, HLSLJACKFLAGS_ALL); SetJackFlags_Input(1, HLSLJACKFLAGS_ALL); SetJackFlags_...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2011-2019 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 © 2017-2019 Trust Wallet. // // This file is part of Trust. The full Trust copyright notice, including // terms governing use, modification, and redistribution, is contained in the // file LICENSE at the root of the source code distribution tree. #include "Address.h" #include "Cell.h" #include "Contract.h...
/* <jhm/jobs/nycr.cc> Copyright 2010-2014 OrlyAtomics, 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 appli...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> using namespace std; int best[1000001]; class BusinessPlan { public: int howLong(vector <int> expense, vector <int> revenue, vector <int> ptime, int C...
/* Copyright 2005-2015 Intel Corporation. All Rights Reserved. This file is part of Threading Building Blocks. Threading Building Blocks is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundat...
// Solved Analyser 20.11.2013 #include <iostream> #include <dirent.h> #include <stdio.h> #include <string.h> #include <fstream> #include <map> using namespace std; class Process_Dir { public: int arg_c; char **arg_v; map <string, int> include_counter; Process_Dir(int arg_c, char *arg_v[]):arg_c(arg_c), arg_v(arg...
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2012, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * R...
// // 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) 2019 <NAME>, The appleseedhq Organization // // Permission is hereby granted, free of charge, to any person obtaining a cop...
#include "stdafx.h" #include "advanced.h" BOOL CAdvancedDialog::DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) { switch (uMsg) { HANDLE_MSG(hwndDlg, WM_INITDIALOG, OnInitDialog); HANDLE_MSG(hwndDlg, WM_COMMAND, OnCommand); default: break; } ...
/* * Copyright (C) 2012 Forgotten Lands <http://www.forgottenlands.eu/> * * 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 v...
/******************************************************************************* * Copyright 2016-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.apa...
#include<iostream> using namespace std; #include<fstream> string fname,lname,num; //function declaration void add_new(); void search(); void display(); bool check_num(string num); void del_num(); void rename(); //function to add new contact to the file void add_new() { //output file stream //opening t...
/* * Copyright (C) 2009 <NAME> <<EMAIL>> * All Rights Reserved. * * Use and distribution of this program is licensed under the * BSD license. See the COPYING file for full text. */ #include "brmalgorithm.hpp" #include "brmutil.hpp" #include <math.h> #include <iterator> #include <fcgi_stdio.h> class CGIManager ...
/* * Eleutian Trainer Studio Application Opensource Edition, a VoIP client with Webkit and Flash support. * Copyright (C) 2011, Eleutian Technology, LLC <http://www.eleutian.com> * * Version: Apache License 2.0 * * The content of this file is licensed under the Apache License, Version 2.0. (the "License"). * You...
// Copyright (c) 2013-2015 <NAME> // SPDX-License-Identifier: BSL-1.0 #include "RemoteProxyDatagram.hpp" #include <Pothos/Exception.hpp> #include <Poco/ByteOrder.h> #include <streambuf> #include <iostream> #include <cstdint> #include <algorithm> //min/max #include <cstring> //memcpy /*********************************...
#include "common.h" // with tft.setRotation(1); => landscape orientation (usb right side) const int DRAW_WIDTH = TFT_HEIGHT; const int DRAW_HEIGHT = 128; // TFT_WIDTH // how about sprites? // Sprite with 8 bit colour depth the RAM needed is (width x height) bytes // on larger displays maybe show incline profile or...
/** * Copyright (c) 2021 <NAME> * Licensed under the MIT License. * See LICENSE file for more information. */ #include "saiga/core/util/commandLineArguments.h" #include "saiga/core/util/exif/TinyEXIF.h" #include "saiga/core/util/file.h" #include "saiga/vision/cameraModel/OCam.h" #define SAIGA_VISION_API //colmap ...
#include "harmonic.hh" #include "io.hh" /******************************************************************************************* ****************** HARMONIC EXPANSION OF THE ANGULAR PART OF THE POTENTIAL ***************** *******************************************************************************************...
#include <stdio.h> #include <string.h> #define MCLBN_FP_UNIT_SIZE 8 #define MCLBN_FR_UNIT_SIZE 8 #include <mcl/bn.h> #include "PDPKS.h" #include <stdbool.h> #include "cpucycles.h" #include "speed.h" #define round 100 template<class T, class Serializer, class Deserializer> void serializeTest(const T& x, con...
#include <SDL.h> #include <SDL_image.h> #include <stdio.h> #include "main.h" const int SCREEN_WIDTH = 400; const int SCREEN_HEIGHT = 200; bool Init(); bool LoadMedia(const char* dir); void Close(); SDL_Texture* LoadTexture(const char* dir); SDL_Window* window = nullptr; SDL_Renderer* renderer = nullptr; SDL_Textu...
/* * A test for deallocating user resources. */ #include <iostream> #include <sstream> #include <so_5/all.hpp> #include <test/3rd_party/various_helpers/time_limited_execution.hpp> struct sequence_holder_t { typedef std::vector< int > vec_t; vec_t m_sequence; }; const int ID_COOP = 1; const int ID_RESOURCE = 2...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "examples.h" #include <vector> #include <fstream> #include <iostream> #include <numeric> using namespace std; using namespace seal; void bootcamp_demo() { // CLIENT'S VIEW // Vector of inputs vect...
/*SpaceX is testing flight software subroutines (i.e., programs that consist of sequences of instructions) for a custom rocket CPU. To ensure that the software runs correctly before it's loaded into the rocket, you need to create a CPU simulator. The CPU has 43 32-bit unsigned integer registers, which are named R00..R...
// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will...
/* ************************************************************************ * Copyright 2018-2020 Advanced Micro Devices, Inc. * ************************************************************************ */ #include "cblas_interface.hpp" #include "norm.hpp" #include "rocblas.hpp" #include "rocblas_init.hpp" #include "...
#include "pe.hpp" using namespace GView::Type::PE; using namespace AppCUI::Controls; using namespace AppCUI::Input; constexpr int PE_SECTIONS_GOTO = 1; constexpr int PE_SECTIONS_SELECT = 2; constexpr int PE_SECTIONS_EDIT = 3; constexpr int PE_SECTIONS_CHANGEBASE = 4; Panels::Sections::Sections(Refere...
#include <iostream> #include <string> #include <utility> #include <unistd.h> #include <getopt.h> #include <fstream> #include "../../include/io_utils/io_utils.h" #include "../../include/cluster/cluster_utils.h" void cluster_usage(const char *exec) { fprintf(stderr, "\nUsage: %s \n\n" "[+] ...
// WolframSeq.cpp // <NAME>, MIT License, 2016 #include "WolframSeq.h" int WolframSeq::number = 0; void WolframSeq::setup( int maxSteps, int maxOutputs, int rule, int generations, int caSide, int totalHeight, bool sendGateOff ) { this->caSide = caSide; int caw = caSide * maxOutputs * maxSteps; this...
#include <termios.h> #include <fcntl.h> #include <unistd.h> #include <iostream> #include <stdio.h> #include <sstream> #include "jsoncpp/json/json.h" #include <string.h> #include <stdlib.h> #include <list> #include <libusb-1.0/libusb.h> #include <sys/ioctl.h> #include <cassert> #include <cstdio> #include <ros/ros.h> #in...
#include "renderer/Camera.hpp" #include "renderer/RenderContext.hpp" #include "Math.hpp" extern RenderContext g_renderContext; static const float MouseSensitivity = 800.f; Camera::Camera(float x, float y, float z) : m_position(x, y, z), m_yLimit(1.f), ...
#include <iostream> #include <vector> #include <utility> #include <cmath> #include "Parameters.h" constexpr float inf = std::numeric_limits<float>::infinity(); std::vector<float> background_color {BACKGROUND_R, BACKGROUND_G, BACKGROUND_B}; class Point { public: float x, y, z; Point() {} Point(float x,...
/** * Copyright 2021 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
/* // Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a // component of the Texas A&M University System. // All rights reserved. // The information and source code contained herein is the exclusive // property of TEES and may not be disclosed, examined or reproduced // in whole or in part withou...
#include "FlatPieceMemoryStorage.h" #include <QDebug> #include <QMutexLocker> #include <cassert> #include <algorithm> FlatPieceMemoryStorage::FlatPieceMemoryStorage(int pieceLength , int maxCachePieces , qlonglong fileOffset , qlonglong fileSize) : buffer(new unsigned char[pieceLength * maxCacheP...
#include "TopDownTW.hh" #include "UpperBound.hh" #include "BottomUpTW.hh" #include "Simplicial.hh" #include <algorithm> #include <iostream> #include <string> #include <sstream> // for ostringstream #include <cassert> const int maxDictSize = 1000000000; const int maxBottumUpSize = 1000000000; const int topLevelNoS...
#include "AerialImage.h" bool AerialImage::loadYaml(const path &file) { // if(!is_regular_file(file)) // return false; //cout << "Load map config from " << file.string() << endl; FileStorage fs; fs.open(file.string(), FileStorage::READ | FileStorage::FORMAT_YAML); if (!fs.isOpened()) { ...
/* This software and supporting documentation are distributed by * Institut Federatif de Recherche 49 * CEA/NeuroSpin, Batiment 145, * 91191 Gif-sur-Yvette cedex * France * * This software is governed by the CeCILL-B license under * French law and abiding by the rules of distribution of free soft...
#include<vector> #include<iostream> #include<string> #include<ctype.h> using namespace std; vector<vector<char>> table(5); void trim(string &s){ int index = 0; if( !s.empty()) { while( (index = s.find(' ',index)) != string::npos) { s.erase(index,1); } } } ...
#include <Arduino.h> #include <LwIP.h> #include <STM32Ethernet.h> #include <STM32FreeRTOS.h> #include <micro_ros_arduino.h> #include <micro_ros_utilities/string_utilities.h> #include <rcl/error_handling.h> #include <rcl/rcl.h> #include <rclc/executor.h> #include <rclc/rclc.h> #include <std_msgs/msg/string.h> #include ...
/* 332. Reconstruct Itinerary Given a list of airline tickets represented by pairs of departure and arrival airports [from, to], reconstruct the itinerary in order. All of the tickets belong to a man who departs from JFK. Thus, the itinerary must begin with JFK. Note: If there are multiple valid itinerarie...
#ifdef HAVE_CONFIG_H #include <config.h> #endif #include "highlevel_feature_extractor.h" #include <rcsc/common/server_param.h> using namespace rcsc; HighLevelFeatureExtractor::HighLevelFeatureExtractor(int num_teammates, int num_opponents, ...
#include "WebService.h" #include "load/JsonLoader.h" #include "ConfigManager.h" #include "Attacker.h" /** * This method starts the web server. The server is listening on 3 paths: * /config, /rules and /attack. * It also collects the content type of the HTTP request. */ void WebService::start() { server.on("/con...
#include "MySql.hpp" #include "MySqlException.hpp" #include <cassert> #include <iostream> #include <memory> #include <string> #include <tuple> #include <vector> using std::basic_ostream; using std::cin; using std::cout; using std::endl; using std::get; using std::ostream; using std::string; using std::tuple; using s...
// Software License Agreement (BSD-3-Clause) // // Copyright 2018 The University of North Carolina at Chapel Hill // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // 1. Redistributions of source code must retain...
#include "FamilyTree.hpp" #include <iostream> #include <string> #define COUNT 10 using namespace family; Node::Node(){//***// } Node::Node (std::string _name){ name=_name; child=NULL; Father=NULL; Mother=NULL; } Tree::Tree(){ Node* temp= new Node(); root=temp; } Tree::~Tree(){ delete (root); } Tree::Tree ...
/// /// Game board class /// @author - <NAME> /// #include "gameboard.h" #include "gameexception.h" #include <queue> #include <iostream> #include <iomanip> using namespace std; /// /// define navigation pattern for stones /// static const vector<pair<int, int>> CELL_NAV_PATTERN = { {0, -1}, {0, 1}, {-1, 0}, {1, 0} ...
#include "player.h" #include <iostream> #include <sstream> #include "../display/cell.h" #include "../item/item.h" #include "../globalSettings.h" using namespace std; Player::Player(int x, int y, int h, int d, int a, string race) : Subject(y, x, false, true, global__displayPlayer), health{h}, defense{d}, attack{a...
#include <ICoCoProblem.h> #include "CommInterface.hxx" #include "ProcessorGroup.hxx" #include "MPIProcessorGroup.hxx" #include "TrioDEC.hxx" #include <set> #include <time.h> #undef MM #ifdef MM #include <ICoCoMEDDoubleField.hxx> #include <ICoCoProblem.h> #else #include <ICoCoTrioField.h> #endif #include <fstream> #...
#include<stdio.h> #include<stdlib.h> #include<string.h> //====================队列=========================== struct QueueNode { void *key; struct QueueNode *next; }; struct Queue { QueueNode *head; QueueNode *tail; }; void queueNodeInit(QueueNode *node, void *key) { node->key = key; node->next = NULL; } Queue ...
#include <cstdio> #include <cassert> #include <cstring> #include <climits> #include <cmath> #include <iostream> #include <algorithm> #include <vector> #define pb push_back #define long long long #define nl(x) scanf("%lld",&x) #define ni(x) scanf("%d",&x) #define pii pair<int,int> #define val1 first #define val2 secon...
#include "RBTree.c" #include <iostream> #include <vector> #include <algorithm> #include <random> #include <chrono> #include <ctime> using namespace std; vector<int> generate_random_array(int n) { vector<int> arr; arr.clear(); unsigned seed = std::chrono::system_clock::now().time_since_epoch().count(); ...
//===-- parser/ParseName.cpp ---------------------------------- -*- C++ -*-===// // // This file is distributed under the MIT license. See LICENSE.txt for details. // // Copyright (C) 2009-2010, <NAME> // //===----------------------------------------------------------------------===// #include "comma/parser/Parser.h" ...
#include "Earworm.h" #include <plugin/tidy/tidy.h> extern "C" { int Tidy(const char* file, const char* html); } void BasicHeaders(HttpRequest& h) { h.ClearHeaders(); h.KeepAlive(1); h.UserAgent("Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko"); h.Header("Accept", "text/html,app...
// See LICENSE_CELLO file for license and copyright information /// @file mesh_ItFace.cpp /// @author <NAME> (<EMAIL>) /// @date 2013-06-11 /// @brief Implementation of the ItFace class #include "mesh.hpp" //---------------------------------------------------------------------- ItFace::ItFace(int rank,...
// This file is part of CAF, the C++ Actor Framework. See the file LICENSE in // the main distribution directory for license terms and copyright or visit // https://github.com/actor-framework/actor-framework/blob/master/LICENSE. #include "caf/uri.hpp" #include <optional> #include "caf/binary_deserializer.hpp" #inclu...
/* _ __ ____ * _ __ ___ _____ ___ __ __ ___ __ / | / / __/ * | _ \/ _ | _ | / _ | / / / / / __/ / / | / / /__ * | __/ __ | ___|/ __ |/ /_/ /__/ __/ /__ / / v / /__ * |_| /_/ |_|_|\_\/_/ |_/____/___/___/____/ /_/ /_/____/ * */ #incl...
// RUN: %clang_cc1 -std=c++11 -verify %s // // Note: [class.inhctor] was removed by P0136R1. This tests the new behavior // for the wording that used to be there. template<int> struct X {}; // Constructor characteristics are: // - the template parameter list // - the parameter-type-list // - absence or presence...
#include "Postfix.h" node::node() : value(NOOP), pNext(0) {} void node::deleteAll() { if (pNext) { pNext->deleteAll(); delete pNext; pNext = NULL; } } Postfix::Postfix() : pOutputQueue(0), pExpressionStack(0) {} Postfix::~Postfix() { node * pFront; //Clear the expression stack if (pExpressionStack) { pE...
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
/**************************************************************************************** * @author: kzvd4729 created: 2018-05-16 19:55:31 * solution_verdict: Time Limit Exceeded language: C++ * run...
//Functions common to all programs #include "common.h" using std::vector; using std::string; //Function implimentions void EncodeText(char* pData) { for (unsigned long i = 0; pData[i] != 0; i++) pData[i] += 128; } void DecodeText(char* pData) { for (unsigned long i = 0; pData[i] != 0; i++) pD...
//===-- AMDGPUSubtarget.cpp - AMDGPU Subtarget Information ----------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// Copyright (c) 2020 The BTCU developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "qt/btcu/leasingmodel.h" #include "uint256.h" #include "bitcoinunits.h" #include "guiutil.h" #include "addressbook.h" #include "a...
/* * ESequenceBase.cpp * enigma * * Created by Rockford on 05/05/10. * Copyright 2010 Casual Games France. All rights reserved. * */ #include "ESequenceBase.h" #include "ESequenceVoiceOver.h" #include "ESequenceTalk.h" #include "ESequenceEarthQuake.h" #include "ESequenceMisc.h" #include "global.h" ESequenc...
#include "Carduino+GPS.h" #include "esp_task_wdt.h" #include <Arduino.h> #include <FreematicsPlus.h> #include <TinyGPS.h> #define GPS_SERIAL_BAUDRATE 115200L GPS_DATA *gd = 0; uint32_t lastGPStime = 0; long parseDegree(const char *s) { char *p; unsigned long left = atol(s); unsigned long tenk_minutes = (...
#include "syscall_modeling.h" #include "sift_assert.h" #include "globals.h" #include "threads.h" #include <iostream> #include <unistd.h> #include <syscall.h> void handleAccessMemory(void *arg, Sift::MemoryLockType lock_signal, Sift::MemoryOpType mem_op, uint64_t d_addr, uint8_t* data_buffer, uint32_t data_si...
#include "encoding_task.h" #include <string.h> #include <vector> #include <lame/lame.h> #include "worker_thread.h" using namespace GMp3Enc; EncodingTask::EncodingTask( const RiffWave &wave, const std::string &mp3Destination, size_t taskId) : wave_(wave) , sourceFilePath_(wave.riffWav...
/* Copyright 2010-2016 Intel Corporation This software is licensed to you in accordance with the agreement between you and Intel Corporation. Alternatively, you can use this file in compliance with the Apache license, Version 2. Apache License, Version 2.0 Licensed under the Apache License, Ve...
// // Simple neighbor communication by creating a linear chain of blocks, each // block connected to two neighbors (predecessor and successor), except for the // first and the last blocks, which have only one or the other. Each block // computes an average of its values and those of its neighbors. The average is // sto...
#include <net/Client.h> #include <base/logging.h> #include <base/Thread.h> #include <net/EventLoop.h> #include <net/EventLoopThreadPool.h> #include <base/Atomic.h> // #include <boost/bind.hpp> // #include <boost/ptr_container/ptr_vector.hpp> #include <functional> #include <memory> #include <utility> #include <stdio.h...
/** * BSD 3-Clause License * * Copyright (c) 2021, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, thi...