text
stringlengths
54
60.6k
<commit_before>#include <net/tcp/connection.hpp> #include <net/stream.hpp> // TCP stream namespace net::tcp { /** * @brief Exposes a TCP Connection as a Stream with only the most necessary features. * May be overrided by extensions like TLS etc for additional functionality. */ class Stre...
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/autofill/autofill_cc_infobar_delegate.h" #include "app/l10n_util.h" #include "app/resource_bundle.h" #include...
<commit_before>/* webpresenceplugin.cpp Kopete Web Presence plugin Copyright (c) 2002 by Will Stephenson <will@stevello.free-online.co.uk> Kopete (c) 2002 by the Kopete developers <kopete-devel@kde.org> ************************************************************************* * ...
<commit_before>#ifndef AL_PARAMETERMIDI_H #define AL_PARAMETERMIDI_H /* Allocore -- Multimedia / virtual environment application class library Copyright (C) 2009. AlloSphere Research Group, Media Arts & Technology, UCSB. Copyright (C) 2012-2015. The Regents of the University of California. All rights reserved. ...
<commit_before>/* Copyright 2017 R. Thomas * Copyright 2017 Quarkslab * * 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 re...
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/autofill/risk/fingerprint.h" #include "base/bind.h" #include "base/message_loop.h" #include "base/port.h" #in...
<commit_before>#ifndef CK_CONFIG_AMD_HPP #define CK_CONFIG_AMD_HPP #include "hip/hip_runtime.h" #include "hip/hip_fp16.h" #include "bfloat16_dev.hpp" // index type: unsigned or signed #define CK_UNSIGNED_INDEX_TYPE 0 // device backend #define CK_DEVICE_BACKEND_AMD 1 // AMD inline asm #ifndef CK_USE_AMD_INLINE_ASM #...
<commit_before>#include "AntGoalTestApp.hpp" #include "../sim/worldobject/AntHome.hpp" #include "../sim/nav/Node.hpp" #include "../sim/agent/testagent/AntGoalTester.hpp" #include "../sim/agent/testagent/AntEatAntTest.hpp" #include "../sim/agent/testagent/AntExploreAntTest.hpp" #include "../sim/agent/testagent/AntFindFo...
<commit_before>/* * 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 "Lice...
<commit_before>#include "chromecast.hpp" #include "cast_channel.pb.h" #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h> #include <syslog.h> ChromeCast::ChromeCast(const std::string& ip) : m_ip(ip) { if (!connect()) throw std::runtime_error("could not c...
<commit_before>/* * IPAddress6.cpp * * Copyright (C) 2006 - 2008 by Universitaet Stuttgart (VIS). * Alle Rechte vorbehalten. * Copyright (C) 2008 by Christoph Mller. Alle Rechte vorbehalten. */ #include "vislib/IPAddress6.h" #include <cstdlib> #include "vislib/assert.h" #include "vislib/DNS.h" #...
<commit_before>/*! @file cell.cpp @brief Implementation of Cell class */ #include "cell.hpp" #include <wtl/iostr.hpp> #include <wtl/random.hpp> #include <type_traits> namespace tumopp { static_assert(std::is_nothrow_copy_constructible<Cell>{}, ""); static_assert(std::is_nothrow_move_constructible<Cell>{}, ""); ...
<commit_before>/* vim: set sw=4 sts=4 et foldmethod=syntax : */ #include <max_common_subgraph/algorithms.hh> #include <max_clique/algorithms.hh> #include <graph/degree_sort.hh> #include <graph/min_width_sort.hh> #include <boost/program_options.hpp> #include <iostream> #include <iomanip> #include <exception> #includ...
<commit_before>/** * Copyright 2015-2017 MICRORISC s.r.o. * Copyright 2017 IQRF Tech s.r.o. * * 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/LICE...
<commit_before>// // main.cpp // Euchre // // Created by Dillon Hammond on 9/12/14. // Copyright (c) 2014 Learning. All rights reserved. // #define GLEW_STATIC #include "GL/glew.h" #include <SDL2/SDL.h> #include "SOIL.h" #define GLM_FORCE_RADIANS #include "glm.hpp" #include <iostream> #include <fstream> #include <...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // clog - colorized log tail // // Copyright 2010-2012, Paul Beckingham, Federico Hernandez. // All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and ...
<commit_before>/* * Copyright © 2010 Intel Corporation * * 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, mod...
<commit_before>/************************************************************************* * * $RCSfile: ChainablePropertySetInfo.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2004-09-08 15:48:49 $ * * The Contents of this file are made available subject to the terms of * either of the...
<commit_before>// @(#)root/proofplayer:$Id$ // Author: Long Tran-Thanh 22/07/07 /************************************************************************* * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>//Author: Julian Yi //Date Created: 7 August 2017 //File Description: c++ code for the king. //Fun Fact: Simon Kim is now Simon King #include <iostream> #include <string> #include "king.h" King::King(coord pos) : Pieces() { type = PieceType::King; position = pos; } coordList King::calculateMoves(coo...
<commit_before>#include <sys/socket.h> #include "utils.h" #include "cJSON.h" #include "client_http.h" // // Xapian http client // HttpClient::HttpClient(ev::loop_ref *loop, int sock_, DatabasePool *database_pool_, double active_timeout_, double idle_timeout_) : BaseClient(loop, sock_, database_pool_, active_timeou...
<commit_before>/* * deck.cpp * * Created on: Mar 13, 2016 * Author: Tumblr */ #include <iostream> #include "deck.h" #include "stdlib.h" using namespace std; Deck::Deck() :count{0} { // TODO Auto-generated constructor stuff well_formed(); } Deck::~Deck() { // TODO Auto-generated destructor stuff } De...
<commit_before>#include "mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QWidget(parent) { } <commit_msg>delte mainwindow cpp<commit_after><|endoftext|>
<commit_before>#include "engine/dukmathbindings.h" #include <string> #include <core/sol.h> #include "core/vec2.h" #include "core/sol.h" namespace euphoria::engine { template <typename T> void bind_vec2(Sol* sol, const std::string& name) { using V = core::vec2<T>; sol->lua.new_usert...
<commit_before>#include <node.h> #include <node_buffer.h> #include <nan.h> #include <string.h> #include <stdlib.h> #ifdef _WIN32 # include <io.h> # include <fcntl.h> # include <wchar.h> #endif #include "magic.h" using namespace node; using namespace v8; struct Baton { uv_work_t request; NanCallback* callback; ...
<commit_before>#include "merger.hpp" #include <boost/program_options.hpp> #include <boost/filesystem.hpp> #include <iostream> #include <fstream> #include <string> // program version const auto version = "0.2alpha"; void merge( boost::program_options::variables_map const& vm ) { std::ifstream left, right; // we ne...
<commit_before>// Copyright (c) 2015, Karsten Heinze <karsten.heinze@sidenotes.de> // 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 ...
<commit_before>/* -*- coding: utf-8 -*- * Copyright (c) 2010, Tim Kleinschmit. This file is * licensed under the General Public License version 3 or later. * See the COPYRIGHT file. */ #include <QtGui/QApplication> #include <QtCore/QTranslator> #include <QtCore/QLibraryInfo> #include "const.h" #include "mainwi...
<commit_before>#include "SequenceVectorizer.h" #include "Opts.h" #include "ContaminationDetection.h" #include "Logger.h" #include "TarjansAlgorithm.h" #include "BarnesHutSNEAdapter.h" #include "KrakenAdapter.h" #include "RnammerAdapter.h" #include "ResultIO.h" #include "IOUtil.h" #include "MLUtil.h" #include "Hierarchi...
<commit_before>#include <stdint.h> #include <iostream> #include "demo.pb.h" #include "netmessages.pb.h" #include "bitstream.h" #include "debug.h" #include "demo.h" #include "entity.h" #include "state.h" #include "death_recording_visitor.h" #define INSTANCE_BASELINE_TABLE "instancebaseline" #define KEY_HISTORY_SIZE 3...
<commit_before>/******************************************************************************* Licensed to the OpenCOR team under one or more contributor license agreements. See the NOTICE.txt file distributed with this work for additional information regarding copyright ownership. The OpenCOR team licenses this file...
<commit_before>#include <opencv2/core.hpp> #include <opencv2/imgcodecs.hpp> #include <opencv2/features2d.hpp> #include <opencv2/highgui.hpp> #include "RobustFeatureMatching.hpp" #include <iostream> cv::Mat stichImages (cv::Mat imgInput1, std::vector<cv::Point2f> &inlierPoints1, cv::Mat imgInput2, std::vector<cv::Poin...
<commit_before>#include <iostream> using namespace std; // swap integers void swap(int &a, int &b){ int t = b; b = a; a = t; } int bigger(int a, int b){ return a>b?a:b; } int main() { cout << "hello world/n"; return 0; } <commit_msg>added swap test case<commit_after>#include <iostream> using namespace std; ...
<commit_before>#include <cstdlib> #include <cmath> #include <fstream> #include <sstream> #include <iostream> #include <iomanip> #include <string> #include <vector> #include <algorithm> #include <exception> #include <sys/time.h> #include "modules/htmTree.h" #include "modules/kdTree.h" #include "misc.h" #include ...
<commit_before>// // Projectname: amos-ss16-proj5 // // Copyright (c) 2016 de.fau.cs.osr.amos2016.gruppe5 // // This file is part of the AMOS Project 2016 @ FAU // (Friedrich-Alexander University Erlangen-Nürnberg) // // This program is free software: you can redistribute it and/or modify // it under the terms of the G...
<commit_before>#include <irrlicht.h> #include <string> #include <ctime> #include <vector> #include <boost/filesystem.hpp> #include "globs.h" #include "map.h" #ifdef _IRR_WINDOWS_ #pragma comment(lib, "Irrlicht.lib") #pragma comment(linker, "/subsystem:windows /ENTRY:mainCRTStartup") #include <windows.h> #define Pass...
<commit_before>/** * Copyright (c) Sjors Gielen, 2010 * See LICENSE for license. */ #include "dazeus.h" #include "dazeusglobal.h" #include <libircclient.h> int main(int argc, char *argv[]) { fprintf(stderr, "DaZeus version: %s", DAZEUS_VERSION_STR); unsigned int high, low; irc_get_version(&high, &low)...
<commit_before>#include <gtest/gtest.h> #include <stdexcept> class Models_BasicDistributions_InvWishart : public ::testing::Test { protected: virtual void SetUp() { FILE *in; if(!(in = popen("make path_separator --no-print-directory", "r"))) throw std::runtime_error("\"make path_separator\" has failed....
<commit_before>// Copyright (c) 2013 John Sullivan // Copyright (c) 2013 Other contributers as noted in the CONTRIBUTERS file // // This file is part of Irish Light Show // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // // You ma...
<commit_before>/* * Copyright (c) 2015 Juniper Networks, Inc. All rights reserved. */ #include <pkt/flow_proto.h> #include "ksync_flow_index_manager.h" #include "flowtable_ksync.h" #include "ksync_init.h" ////////////////////////////////////////////////////////////////////////////// // KSyncFlowIndexEntry routines /...
<commit_before>#include <cstdio> #include <cstdlib> #include <cctype> #include <cstring> #include <unistd.h> #include <sys/wait.h> #include <sys/types.h> #include <vector> #include <string> #include <iostream> #include "functions.h" int main(int argc, char** argv) { // print welcome message and prompt printf("We...
<commit_before>#define DEBUG 1 /** * File : C.cpp * Author : Kazune Takahashi * Created : 6/15/2019, 9:15:16 PM * Powered by Visual Studio Code */ #include <iostream> #include <iomanip> #include <algorithm> #include <vector> #include <string> #include <complex> #include <tuple> #include <queue> #include <stack...
<commit_before>// Given an integer n, count the total number of digit 1 appearing in all // non-negative integers less than or equal to n. // For example: // Given n = 13, // Return 6, because digit 1 occurred in the following numbers: 1, 10, 11, 12, // 13. class Solution { public: int countDigitOne(int n) { ...
<commit_before>#include <gtest/gtest.h> #include <ROOT/TVec.hxx> #include <vector> #include <sstream> template <typename T, typename V> void CheckEqual(const T &a, const V &b, std::string_view msg = "") { const auto asize = a.size(); const auto bsize = b.size(); EXPECT_EQ(asize, bsize); for (unsigned int i...
<commit_before>/* * Copyright (c) 2003-2009, John Wiegley. 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,...
<commit_before>#include "Optimiser.h" #include "Hildreth.h" using namespace Moses; using namespace std; namespace Mira { void MiraOptimiser::updateWeights(ScoreComponentCollection& currWeights, const vector< vector<ScoreComponentCollection> >& featureValues, const vector< vector<float> >& losses, const ScoreCo...
<commit_before>#include <cstdlib> #include <cmath> #include <fstream> #include <sstream> #include <iostream> #include <cstring> #include <iomanip> #include <string> #include <vector> #include <algorithm> #include <exception> #include <sys/time.h> #include <map> #include ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: type_misc.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: hr $ $Date: 2006-06-19 23:37:51 $ * * The Contents of this file are made...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: urp_marshal.hxx,v $ * * $Revision: 1.8 $ * * last change: $Author: ihi $ $Date: 2008-02-04 13:44:16 $ * * The Contents of this file are m...
<commit_before>/* Copyright (c) 2003, Arvid Norberg 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 condi...
<commit_before>// Copyright (c) 2013 GitHub, Inc. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "browser/atom_javascript_dialog_manager.h" #include "base/utf_string_conversions.h" namespace atom { void AtomJavaScriptDialogManage...
<commit_before>#include <iostream> #include <cstdlib> #include <vector> #include <string> #include <queue> #include <sys/stat.h> //getlogin() and gethostname(). #include <unistd.h> //perror. #include <stdio.h> //fork,wait and execvp. #include <sys/types.h> #include <sys/wait.h> //boost! #include "boost/algorithm/st...
<commit_before>#include "encoder_app.h" #include "encoding_task.h" #include "riff_wave.h" int main(int argc, char *argv[]) { // GMp3Enc::RiffWave w; // w.readWave("./temple_of_love-sisters_of_mercy.wav"); // if (!w.isValid()) { // return -1; // } // GMp3Enc::EncodingTask *t = GMp3Enc::EncodingT...
<commit_before>#include <iostream> #include <SFML/Graphics.hpp> #include <SFML/Audio.hpp> #include "Constants.h" #include "Path.h" #include "AbstractView.h" #include "ResourceManager.h" #include "HIManager.h" #include "Logs.h" using namespace std; int main(int argc, char *argv[]) { log_init(); LOG(info) ...
<commit_before>/* Copyright (c) 2003, Arvid Norberg 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 condi...
<commit_before>#include <iostream> #include "model.hpp" #include "scanner.hpp" #include "tokenizer.hpp" int main() { model::Stack stack, stack2; stack.push(new model::Integer(1)); stack.push(new model::Integer(2)); stack2.push(new model::Integer(3)); stack2.push(new model::Integer(4)); // スタックの内容確認 std::cou...
<commit_before>#include <iostream> #include <stdio.h> #include <unistd.h> #include "errno.h" #include <string> #include <list> #include <string.h> #include <vector> using namespace std; //Global Variable vectors vector<int> connect_Pos; //holds the positions of possible connectors in prompt vector<int> kinds_of_...
<commit_before>/*The MIT License (MIT) JSPlay Copyright (c) 2015 Jens Malmborg 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,...
<commit_before>/* This file is part of qNotesManager. qNotesManager is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. qNotesManager is distri...
<commit_before>#include <boost/unordered_set.hpp> #include <boost/unordered_map.hpp> #include <boost/heap/priority_queue.hpp> #include <boost/graph/graphviz.hpp> #include <gameai/point2.hpp> #include <gameai/astar_vertex.hpp> struct vertex_pos_t { typedef boost::vertex_property_tag kind; }; struct edge_label_t { typed...
<commit_before>#include <iostream> #include <string> #include <stdexcept> #include <limits> #include "Emulator.hpp" void printHelpMessage() { std::cout << "A NES emulator. Takes .nes files.\n\n" << "Usage: turbones [options] <path-to-rom-file>\n\n" << "Options:\n" << "\t-h --help\...
<commit_before>/** * LED Strip host. * * Turns LEDs red (for now) */ #include "Arduino.h" #include <FastLED.h> #ifndef LED_BUILTIN #define LED_BUILTIN 13 #endif #define NUM_LEDS 300 #define DATA_PIN 6 CRGB leds[NUM_LEDS]; int count = 0; void setup() { // Init fastled FastLED.addLeds<WS2812, DATA_PIN, BGR>(...
<commit_before>#include <Arduino.h> #include <Wire.h> #include <SPI.h> #include <EEPROM.h> #include <Espfc.h> #include <Kalman.h> #include <Madgwick.h> #include <Mahony.h> #include <printf.h> #include <blackbox/blackbox.h> #include <EspSoftSerial.h> #include <EspGpio.h> #include <EscDriver.h> #include <EspWire.h> #if ...
<commit_before>/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
<commit_before>#include <Arduino.h> #include <ESP8266WiFi.h> #include <ArduinoJson.h> #include <DNSServer.h> #include <Ticker.h> #include "helpers.hpp" #include "defaults.hpp" #include "radio.hpp" #include "Config.hpp" #include "TrackingData.hpp" #include "ConfigServer.hpp" #define DNS_PORT 53 Ticker wifiBlinker; C...
<commit_before>/* * Copyright (C) 2015 Luke San Antonio * All rights reserved. */ #include <fstream> #include <sstream> #include <cstdlib> #include <vector> #include <thread> #include <future> #include "common/log.h" #include "common/value_map.h" #include "gfx/gl/driver.h" #include "gfx/camera.h" #include "gfx/mes...
<commit_before>// This file was developed by Thomas Müller <thomas94@gmx.net>. // It is published under the BSD 3-Clause License within the LICENSE file. #include <tev/ImageViewer.h> #include <tev/Ipc.h> #include <tev/SharedQueue.h> #include <tev/ThreadPool.h> #include <args.hxx> #include <ImfThreading.h> #include <...
<commit_before>#include <cstdlib> #include <iostream> #include <ios> #include "hext/parser.h" #include "hext/matcher.h" #include "hext/print.h" int main(int argc, char ** argv) { // todo: boost::program_options if( argc < 3 ) { std::cout << "Usage: " << argv[0] << " [rules.hext] [target.html]...
<commit_before>#include <loftili.h> #include <server.h> int main(int argc, char ** argv) { if(argc > 1) std::cout << LOFTILI_PKG_VERSION << std::endl; else return loftili::Server::run(); } <commit_msg>updating includes in main.cpp to follow style<commit_after>#include "loftili.h" #include "server.h" int m...
<commit_before>#include <stdio.h> #include <chrono> #include <thread> using std::chrono::microseconds; #if defined(__linux__) #include <sys/prctl.h> #endif volatile int g_thread_2_continuing = 0; void * thread_1_func (void *input) { // Waiting to be released by the debugger. while (!g_thread...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/pm/p9_query_cache_access_st...
<commit_before>/*====================================================================== This file is part of the elastix software. Copyright (c) University Medical Center Utrecht. All rights reserved. See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for details. This software is distributed...
<commit_before>#include "game.hpp" #include "window.hpp" #include "clock.hpp" #include "events.hpp" #include <iostream> // "Game" specific data namespace { bool gIsRunning = false; class GameEventEar : public EventEar { public: void onWindowClose() { Game::stop(); } }; GameEventEar gEar; } void Game...
<commit_before>#include <cstdio> #include <cstdlib> #include <cctype> #include <cstring> #include <unistd.h> #include <vector> #include <string> #include <iostream> #include "functions.h" int main(int argc, char** argv) { // hold a raw line of input std::string line; // print welcome message and prompt prin...
<commit_before>#include <limits.h> #include <manyclaw/manyclaw.h> #include "gtest/gtest.h" ::testing::AssertionResult ArraysMatch(const real *expected, const real *actual, int size){ for (int i=0; i < size; ++i){ if (fabs(expected[i] - actual[i]) > 1e-8){ return ::tes...
<commit_before>#include "game.hpp" #include <iostream> #include "exception.hpp" namespace Quoridor { Game::Game(Board *board) : board_(board), player_list_() { } Game::~Game() { } void Game::main_loop() { while (true) { for (auto *player: player_list_) { make_move(player); } } }...
<commit_before>#include <SDL/SDL.h> #ifdef __APPLE__ #include <SDL_mixer/SDL_mixer.h> #else #include <SDL/SDL_mixer.h> #endif #include "main.h" #include "game.h" #include "map.h" #include "hud.h" #include "sprite.h" extern int resetTimer; extern SDL_Surface *screen; Game::Game() { } bool Gam...
<commit_before>#include <PlatformSpecification.h> #include <Framebuffer.h> #include <Perlin.h> #include <boost/chrono.hpp> #include <boost/thread.hpp> #include <boost/random.hpp> #include <fstream> #include <string> #define WIDTH 700 #define HEIGHT 500 #define SIZE WIDTH * HEIGHT struct InputData { float Da; flo...
<commit_before>#include "math/Vector.hpp" #include "mill_pdb.hpp" #include "mill_dcd.hpp" #include "mill_ninfo.hpp" #include <iostream> template<std::size_t MAJOR_V, std::size_t MINOR_V> void print_logo(); void print_help(); void print_man(); int main(int argc, char **argv) { print_logo<1, 0>(); if(argc < 3) ...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a ...
<commit_before>#include <iostream> #include "common.h" #include "Overlap.h" #include "params.h" #include "ReadTrim.h" #include "Graph.h" #include "OverlapUtils.h" #include "IO.h" #include "GraphUtils.h" #include "Unitig.h" #include "UnitigUtils.h" int main() { Overlaps overlaps; Params params( getDefaultPa...
<commit_before>#include <iostream> #include <iterator> #include <sstream> #include <cassert> int main(int argc, char* argv[]) { std::stringstream str; str << "Cat"; std::istream_iterator<char> eos; std::istream_iterator<char> i(str); char a, b; a = *i++; b = *i++; std::cout << a << b ...
<commit_before>// Copyright (c) 2006-2009 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 "build/build_config.h" #include "chrome/browser/back_forward_menu_model.h" #include "app/l10n_util.h" #include "chrome/...
<commit_before><commit_msg>Clear yet another few stats when a new chrome version is installed<commit_after><|endoftext|>
<commit_before>/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the test suite of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** No Commerci...
<commit_before>#include <string.h> #include <string> #include "BufferedFileReader.h" #include "BufferedFileWriter.h" #include "mcut.h" #define BUFFER_SIZE 1048576 /* * Reverse memchr() * Find the last occurrence of 'c' in the buffer 's' of size 'n'. */ void *memrchr(const void *s, int c, size_t n) { const u...
<commit_before>#include <nan.h> #include "input.h" #include "output.h" Nan::Persistent<v8::FunctionTemplate> NodeMidiInput::s_ct; Nan::Persistent<v8::FunctionTemplate> NodeMidiOutput::s_ct; extern "C" { void init (v8::Local<v8::Object> target) { NodeMidiOutput::Init(target); NodeMidiInput::In...
<commit_before> // This file is part of node-lmdb, the Node.js binding for lmdb // Copyright (c) 2013 Timur Kristóf // Licensed to you under the terms of the MIT license // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Softwa...
<commit_before>/*! @file @copyright Edouard Alligand and Joel Falcou 2015-2017 (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_BRIGAND_FUNCTIONS_EVAL_IF_HPP #define BOOST_BRIGAND_FUNCTIONS_EVAL_IF_HPP #include <type_traits> namespace brigand { template <typename Con...
<commit_before>/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
<commit_before>/* * Copyright (c) 2002 - present, H. Hernan Saez * 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 * noti...
<commit_before> // // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited // Copyright (c) 2014-2015 Francois Beaune, The appleseedhq O...
<commit_before>/* * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
<commit_before>// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All right reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the ...
<commit_before>#ifndef __TENSOR3_HPP_INCLUDED #define __TENSOR3_HPP_INCLUDED #include "matrix.hpp" // Include standard headers #include <stdint.h> // uint32_t etc. namespace linear_algebra { class Tensor3 { // `class Tensor3` uses the same coordinate order as MATLAB, // to make testing easier...
<commit_before>/* * FlightVars * Copyright (c) 2014 Alvaro Polo * * 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/. */ #ifndef FLIGHTVARS_MQTT_CODECS_H #define FLI...
<commit_before>#include "Variant.h" #include "split.h" #include "cdflib.hpp" #include "pdflib.hpp" #include <string> #include <iostream> #include <math.h> #include <cmath> #include <stdlib.h> #include <time.h> #include <stdio.h> #include <getopt.h> using namespace std; using namespace vcf; struct pop{ double na...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/memory/lib/freq/sync.C $ ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: PagePropertySetContext.cxx,v $ * * $Revision: 1.13 $ * * last change: $Author: hr $ $Date: 2007-06-27 15:29:03 $ * * The Contents of this...
<commit_before>/************************************************************************* * * $RCSfile: ChartOASISTContext.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2004-07-13 08:43:42 $ * * The Contents of this file are made available subject to the terms of * either of the follo...