text
stringlengths
54
60.6k
<commit_before>#include <RcppArmadillo.h> #include <stdio.h> #include <stdlib.h> #include <stdexcept> #include <string.h> #include <iostream> #include <cmath> #include "rtoarmadillo.h" // Format for sensor information struct imu_info{ std::string name; int time_type; int data_type; int header_size; double s...
<commit_before>// Copyright (c) 2019 ASMlover. 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 o...
<commit_before> /* pbrt source code is Copyright(c) 1998-2015 Matt Pharr, Greg Humphreys, and Wenzel Jakob. This file is part of pbrt. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are m...
<commit_before>//-----------------------------------------------------------------------bl- //-------------------------------------------------------------------------- // // QUESO - a library to support the Quantification of Uncertainty // for Estimation, Simulation and Optimization // // Copyright (C) 2008,2009,2010,...
<commit_before>#include "text-diff.h" #include "libmba-diff.h" #include "text-slice.h" #include <vector> #include <string.h> #include <ostream> #include <cassert> using std::move; using std::ostream; using std::vector; static Point previous_column(Point position) { assert(position.column > 0); position.column--; ...
<commit_before>/******************************************************************************* * This file is part of "Patrick's Programming Library", Version 7 (PPL7). * Web: http://www.pfp.de/ppl/ * * $Author$ * $Revision$ * $Date$ * $Id$ * *******************************************************************...
<commit_before>class Solution { public: int hIndex(vector<int>& citations) { sort(citations.begin(), citations.end()); int h = citations.size(); int i = 0; for(int i = 0;i < citations.size();i++) { if(citations[i] >= h) b...
<commit_before>// Vsevolod Ivanov #include <stdlib.h> #include <sstream> #include <iostream> #include <chrono> #include <restinio/all.hpp> #include <http_parser.h> template <typename LAMBDA> void do_with_socket(LAMBDA && lambda, const std::string & addr = "127.0.0.1", std::uint16...
<commit_before>/******************************************************************************\ * ___ __ * * /\_ \ __/\ \ * * \//\ \ /\_\ \ \____ ___ _____ _____ __ ...
<commit_before>#include <stdlib.h> #include <cstring> #include <stdexcept> #include "../../Headers/genotype/gene.hpp" #include "../../Headers/Utility/jsmn.h" #include "../../Headers/type.hpp" #include "../../Headers/training/parameters.hpp" #include "../../Headers/utility/random.hpp" using namespace Hippocrates::Geno...
<commit_before>/* * this file is part of the oxygen gtk engine * Copyright (c) 2010 Hugo Pereira Da Costa <hugo@oxygen-icons.org> * Copyright (c) 2010 Ruslan Kabatsayev <b7.10110111@gmail.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General...
<commit_before> #include "ProcessingPyConf.h" #include "xPyFunc.h" static PyObject *PySymbolicElement(SymbolicElement *element) { PyObject *dictSEClass = xPyDict_New(); PyDict_SetItemString(dictSEClass, "source", PyString_FromFormat("%s", element->getSource()->str().c_str())); PyDict_SetItemString(dictSEClass,...
<commit_before>/* Copyright 2009 SPARTA, Inc., dba Cobham Analytic Solutions * * This file is part of WATCHER. * * WATCHER is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either vers...
<commit_before>/******************************************************************************* * Copyright (c) 2014, 2016 IBM Corporation and others * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * i...
<commit_before>// Copyright (C) 2013 The Regents of the University of California (Regents). // 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 r...
<commit_before>/******************************************************************************* * CGoGN: Combinatorial and Geometric modeling with Generic N-dimensional Maps * * Copyright (C) 2015, IGG Group, ICube, University of Strasbourg, France * * ...
<commit_before>#include <memory_cache_serversettings.h> #include <log.h> #include <QTextStream> #include <QFile> #include <QDebug> #include <QByteArray> #include <QDateTime> #include <QDir> // IMemoryCache QString MemoryCacheServerSettings::name(){ return "serversettings"; } // ------------------------------------...
<commit_before>#ifndef utf8_hh_INCLUDED #define utf8_hh_INCLUDED #include "assert.hh" #include "unicode.hh" #include "units.hh" #include <cstddef> namespace Kakoune { namespace utf8 { template<typename Iterator> [[gnu::always_inline]] inline char read(Iterator& it) noexcept { char c = *it; ++it; return c; } // re...
<commit_before>/************************************************************************* * * $RCSfile: MasterPagesPanel.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2004-07-13 14:44:27 $ * * The Contents of this file are made available subject to the terms of * either of the followi...
<commit_before>// // Copyright (C) 2006-2007 SIPfoundry Inc. // Licensed by SIPfoundry under the LGPL license. // // Copyright (C) 2006-2007 SIPez LLC. // Licensed to SIPfoundry under a Contributor Agreement. // // $$ ////////////////////////////////////////////////////////////////////////////// #include <...
<commit_before>/* * Copyright 2006-2008 The FLWOR Foundation. * * 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...
<commit_before>/** * Copyright (c) 2016 DeepCortex GmbH <legal@eventql.io> * Authors: * - Paul Asmuth <paul@eventql.io> * - Laura Schlimmer <laura@eventql.io> * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License ("the license")...
<commit_before>/** \copyright * Copyright (c) 2016, Balazs Racz * 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 "cuda/cudaTextureResource.h" #include "cuda/cudadefs.h" #include "cuda/helper_math.h" #include "cuda/cudautil.h" #include "cuda/cudamemory.h" namespace idaten { void CudaLeyered2DTexture::init( std::vector<const aten::vec4*>& p, uint32_t width, uint32_t height) ...
<commit_before>#include "../checkpoint/checkpoint.h" #include "myrandom/myrand.h" #include <algorithm> // for std::shuffle #include <cstdint> // for std::int32_t #include <iostream> // for std::cout #include <random> ...
<commit_before>/*$Id$ * * This source file is a part of the Berlin Project. * Copyright (C) 1999 Stefan Seefeld <stefan@berlin-consortium.org> * http://www.berlin-consortium.org * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * Lic...
<commit_before>#include <bits/stdc++.h> using namespace std; int T; int main(){ int i, j; return 0; } <commit_msg>Delete CJ2015-QUALITIFICATION-B.cpp<commit_after><|endoftext|>
<commit_before>// Copyright 2013 Tanel Lebedev #include "./main.h" #include <sstream> #include "Poco/Message.h" #include "Poco/Util/Application.h" #define ERRLEN 1024 namespace command_line_client { void Main::usage() { std::cout << "Recognized commands are: " "sync, start, stop, status, p...
<commit_before> #include <iostream> #include <glow/Buffer.h> #include <glow/Error.h> namespace glow { Buffer::Buffer() : Object(genBuffer()) , _target(0) { } Buffer::Buffer(GLenum target) : Object(genBuffer()) , _target(target) { } Buffer::Buffer(GLuint id, GLenum target, bool ownsGLObject) :...
<commit_before>/* * Copyright 2014 Kamil Michalak <kmichalak8@gmail.com> * * 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 * * Unl...
<commit_before> #include <cassert> #include <QDebug> #include <QApplication> #include <QBasicTimer> #include <QResizeEvent> #include "AbstractPainter.h" #include "AdaptiveGrid.h" #include "FileAssociatedShader.h" #include "Camera.h" #include "Navigation.h" #include "NavigationMath.h" #include "Timer.h" ...
<commit_before>/* * Illarionserver - server for the game Illarion * Copyright 2011 Illarion e.V. * * This file is part of Illarionserver. * * Illarionserver is free software: you can redistribute it and/or modify it * under the terms of the GNU Affero General Public License as published by the Free * Softw...
<commit_before>// 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 "base/bind.h" #include "base/command_line.h" #include "base/file_path.h" #include "chrome/browser/profiles/profile.h" #include...
<commit_before>#include "main.h" #include "User.h" #include "Nick.h" #include "Modules.h" #include "Chan.h" #include "Utils.h" #include "FileUtils.h" #include <pwd.h> #include <map> #include <vector> class CStickyChan : public CModule { public: MODCONSTRUCTOR(CStickyChan) {} virtual ~CStickyChan() { } virtual...
<commit_before>#include <unistd.h> #include "acmacs-base/argv.hh" #include "acmacs-base/temp-file.hh" #include "acmacs-base/string-compare.hh" #include "acmacs-base/string-split.hh" #include "acmacs-base/quicklook.hh" #include "acmacs-base/filesystem.hh" #include "acmacs-map-draw/setup-dbs.hh" #include "acmacs-map-dra...
<commit_before>#include <CGAL/Linear_cell_complex.h> #include <CGAL/Delaunay_triangulation_3.h> using namespace std; typedef CGAL::Point_3 Point; typedef CGAL::Delaunay_triangulation_3 Delaunay; // PLC: map <unsigned, Point> PLCvertices; // mapping between vertex coordinates and corresponding unique id list <unsign...
<commit_before>#include <assert.h> #include <db_cxx.h> int dbcreate(char *dbfile, char *dbname, int argc, char *argv[]) { int r; #if USE_ENV DbEnv *env = new DbEnv(DB_CXX_NO_EXCEPTIONS); r = env->open(".", DB_INIT_MPOOL + DB_CREATE + DB_PRIVATE, 0777); assert(r == 0); #else DbEnv *env = 0; #endif D...
<commit_before>// $Id$ /*********************************************************************** Moses - factored phrase-based language decoder Copyright (c) 2006 University of Edinburgh All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that t...
<commit_before>// sdl_main.cpp #ifdef _WIN32 # define WINDOWS_LEAN_AND_MEAN # define NOMINMAX # include <windows.h> #endif #include <fstream> #include <vector> #include <GL/glew.h> #include <SDL.h> #include <SDL_syswm.h> #undef main #include "ShaderFunctions.h" #include "Timer.h" #include "g_textures.h" Timer g...
<commit_before>/* * Launch WAS child processes. * * author: Max Kellermann <mk@cm4all.com> */ #include "was_launch.hxx" #include "system/fd_util.h" #include "system/fd-util.h" #include "spawn/Interface.hxx" #include "spawn/Prepared.hxx" #include "spawn/ChildOptions.hxx" #include "gerrno.h" #include "util/ConstBuff...
<commit_before>#include "bvs/bvs.h" BVS::BVS* bvs; BVS::Logger logger("Daemon"); int testLogger(); int testConfig(); /** BVSD namespace, contains only the bvs daemon. */ namespace BVSD { /** BVS framework's command line daemon. * This is a simple command line daemon. It serves as a client to the BVS * framew...
<commit_before>#ifdef WINDOWS #include <windows.h> #include <fstream> #include "util/system.h" namespace System{ bool isDirectory(const std::string & path){ return GetFileAttributes(path.c_str()) & FILE_ATTRIBUTE_DIRECTORY; } bool readableFile(const std::string & path){ return !isDirectory(path) && readable...
<commit_before>/* * Copyright 2007-2014 The OpenMx Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
<commit_before>/** * @author Mike Bogochow * @version 2.4.0, Dec 8, 2015 * * @file Bidder.cpp * * Bidder class implementation */ #include "Bidder.h" #include "../lib_graphs/Graph.h" #include "../lib_graphs/Subgraph.h" #include "../lib_graphs/SpanningTree.h" #include "../lib_graphs/Path.h" #include "../lib_aucti...
<commit_before>/*! * Copyright (c) 2017 by Contributors * \file arg_binder.cc * \brief Helper utility to match and bind arguments. */ #include <tvm/ir.h> #include <tvm/ir_pass.h> #include <tvm/runtime/device_api.h> #include "./ir_util.h" #include "./arg_binder.h" #include "../arithmetic/compute_expr.h" namespace ...
<commit_before>#include "Logbook.h" #define LOGBOOK_FILE_NAME "LOGBOOK.TXT" const String NEW_LINE = "\n"; Logbook::Logbook() { } ////////////////////// // Public interface // ////////////////////// LogbookData* Logbook::loadLogbookData() { LogbookData* logbookData = new LogbookData; if (SD.exists(LOGBOOK_FILE_N...
<commit_before>// Copyright (c) 2015, Matthew Malensek. // Distributed under the BSD 2-Clause License (see LICENSE.txt for details) #include "Dialog.h" #include "../../3RVX/Logger.h" #include "../UITranslator.h" #include "Control.h" Dialog::Dialog() { } Dialog::Dialog(HWND parent, LPCWSTR dlgTemplate) : _parent(pa...
<commit_before>/* * Copyright 1999-2004 The Apache Software Foundation. * * 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 ...
<commit_before>// TexturePaletteRecord.cpp #include "flt.h" #include "Registry.h" #include "TexturePaletteRecord.h" using namespace flt; //////////////////////////////////////////////////////////////////// // // TexturePaletteRecord // ///////////////////////////////////////////////////////////...
<commit_before>/* -------------------------------------------------------------------------- * * Simbody(tm): SimTKcommon * * -------------------------------------------------------------------------- * * This is part of the SimTK biosimulation toolkit originating fr...
<commit_before>/********************************************************************** * * FILE: ConvexPlanarOccluder.cpp * * DESCRIPTION: Read/Write osg::ConvexPlanarOccluder in binary format to disk. * * CREATED BY: Auto generated by iveGenerator * and later modified by Rune Schmidt Jensen. * * HISTOR...
<commit_before>//* This file is part of the MOOSE framework //* https://www.mooseframework.org //* //* All rights reserved, see COPYRIGHT for full restrictions //* https://github.com/idaholab/moose/blob/master/COPYRIGHT //* //* Licensed under LGPL 2.1, please see LICENSE for details //* https://www.gnu.org/licenses/lgp...
<commit_before>/* Copyright (c) 2017, Randolph Voorhies, Shane Grant 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 ...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * 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 ...
<commit_before>// Copyright 2010-2012 RethinkDB, all rights reserved. #include "mock/serializer_filestream.hpp" #include "buffer_cache/buffer_cache.hpp" #include "perfmon/core.hpp" namespace mock { // Maybe we should have just used a blob for this. serializer_file_read_stream_t::serializer_file_read_stream_t(serial...
<commit_before>/* Copyright 2020 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> // Copyright (c) 2014-2015 Dims dev-team // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "common/setResponseVisitor.h" #include "common/events.h" #include "common/authenticationProvider.h" #include "...
<commit_before>/* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may not use this file except in compliance with the License....
<commit_before>/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LG...
<commit_before>#include "hdfs_file.h" #include "hdfs_utils.h" using namespace std; PyObject* FileClass_new(PyTypeObject *type, PyObject *args, PyObject *kwds) { FileInfo *self; self = (FileInfo *)type->tp_alloc(type, 0); if (self != NULL) { self->fs = NULL; self->file = NULL; self...
<commit_before>#include "stdafx.h" #include "HelperDefinitions.h" namespace helper { StringW to_wide( const String8 &str ) { std::wstring_convert<std::codecvt_utf8<wchar_t>> converter; try { return converter.from_bytes( str ); } catch( std::range_error error ) { log( "Conversation failure 'to_wide(...
<commit_before>#include <HTTPClient.h> #include <ESP32WebServer.h> #include <Arduino.h> #include <ArduinoJson.h> #include "PacmanServer.h" PacmanServer::PacmanServer(String registerUrl, String algorithmUrl, String name, int serverPort) :server(serverPort), gameStatus(PLAYING), quarantaine(0), score(0), lives(3) { i...
<commit_before>// Copyright 2017 The Ray 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...
<commit_before>/******************************************************************************\ * ___ __ * * /\_ \ __/\ \ * * \//\ \ /\_\ \ \____ ___ _____ _____ __ ...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the test suite of the Qt Toolkit. ** ** $QT_BEGIN_LICE...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the QtQml module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usag...
<commit_before>/* * SMARTCARDPP * * This software is released under either the GNU Library General Public * License (see LICENSE.LGPL) or the BSD License (see LICENSE.BSD). * * Note that the only valid version of the LGPL license as far as this * project is concerned is the original GNU Library General Public License...
<commit_before>#ifndef _SPATIAL_MATH_TEST_INL_ #define _SPATIAL_MATH_TEST_INL_ //#include "SM_Calc.h" #include "sm_const.h" #include <float.h> #include <algorithm> namespace sm { inline bool is_between(float bound0, float bound1, float test) { if (bound0 < bound1) { return test < bound1 + FLT_EPSILON && test > ...
<commit_before>#include "Strategy.h" void CPUBase::copy_to(const LabelData *in, cl::Context *, cl::Program *, cl::CommandQueue *) { l = *in; } LabelData CPUBase::copy_from() { return std::move(l); } void CPUOnePass::execute() { size_t nr = 2; for (size_t y = 0; y < l.height; ++y) { fo...
<commit_before>#include "state_comp.hpp" #include <core/ecs/serializer_impl.hpp> namespace mo { namespace sys { namespace state { using namespace unit_literals; struct State_comp::Persisted_state { bool delete_dead; Persisted_state(const State_comp& c) : delete_dead(c._delete_dead) {} }; sf2_structDef(...
<commit_before>#include <uv.h> #include <dbt.h> #include <iostream> #include <iomanip> #include <atlstr.h> // Include Windows headers #include <windows.h> #include <stdio.h> #include <tchar.h> #include <strsafe.h> #include <Setupapi.h> #include "detection.h" #include "deviceList.h" using namespace std; /*********...
<commit_before>/* * Copyright 2012 Steven Gribble * * This file is part of the UW CSE 333 course project sequence * (333proj). * * 333proj 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 ve...
<commit_before>/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: atkwindow.cxx,v $ * $Revision: 1...
<commit_before>/***************************************************************************** * Media Library ***************************************************************************** * Copyright (C) 2015 Hugo Beauzée-Luyssen, Videolabs * * Authors: Hugo Beauzée-Luyssen<hugo@beauzee.fr> * * This program is f...
<commit_before>#ifndef VEXCL_BACKEND_CUDA_CONTEXT_HPP #define VEXCL_BACKEND_CUDA_CONTEXT_HPP /* The MIT License Copyright (c) 2012-2018 Denis Demidov <dennis.demidov@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Softw...
<commit_before>// 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 "views/touchui/touch_factory.h" #include <gtk/gtk.h> #include <gdk/gdkx.h> #include <X11/cursorfont.h> #include <X11/extensio...
<commit_before>/*********************************************************************** created: 7/2/2008 author: Paul D Turner *************************************************************************/ /*************************************************************************** * Copyright (C) 2004 -...
<commit_before>#include <Arduino.h> #include <SPI.h> #include <Wire.h> #include "Sleepy.h" //https://github.com/kinasmith/Sleepy #include "RFM69_ATC.h" #include "SPIFlash_Marzogh.h" #include <EEPROM.h> #include "Adafruit_MAX31856.h" #define NODEID 11 #define GATEWAYID 0 #define FREQUENCY RF69_433MHZ //frequency of rad...
<commit_before>#ifndef ROBOCUP2DSIM_ENGINE_PHYSICS_HXX #define ROBOCUP2DSIM_ENGINE_PHYSICS_HXX #include <utility> #include <Box2D/Dynamics/b2Body.h> #include <Box2D/Dynamics/b2WorldCallbacks.h> #include <Box2D/Dynamics/Contacts/b2Contact.h> #include <robocup2Dsim/runtime/resource.hh> namespace robocup2Dsim { namespac...
<commit_before>#include "Element.h" #include <iostream> using namespace Eigen; using namespace std; namespace DrakeCollision { Element::Element(const Isometry3d& T_element_to_local) : DrakeShapes::Element(T_element_to_local) { id = (ElementId) this; } Element::Element(const DrakeShapes::Geometry& geometry, ...
<commit_before>#/*########################################################################## # # The fisx library for X-Ray Fluorescence # # Copyright (c) 2014-2016 European Synchrotron Radiation Facility # # This file is part of the fisx X-ray developed by V.A. Sole # # Permission is hereby granted, free of charge, to...
<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>// Copyright 2008, Google 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: // // * Redistributions of source code must retain the above copyright // notice, this list...
<commit_before>// // Created by dar on 1/25/16. // #include "GuiButton.h" GuiButton::GuiButton(double x, double y, double width, double height) { this->x = x; this->y = y; this->width = width; this->height = height; } bool GuiButton::onClick(int action, float x, float y) { if (onClickListener == ...
<commit_before>// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp: /* Copyright (c) 2008 Aristid Breitkreuz, Ruediger Sonderfeld, Ash Berlin 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...
<commit_before>#include "keymap_manager.hh" #include "array_view.hh" #include "assert.hh" #include <algorithm> namespace Kakoune { void KeymapManager::map_key(Key key, KeymapMode mode, KeyList mapping, String docstring) { m_mapping[KeyAndMode{key, mode}] = {std::move(mapping), std::m...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */ /* libwps * Version: MPL 2.0 / LGPLv2.1+ * * 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://mo...
<commit_before>/* A minimal FIPS-140 application. Written by Jack Lloyd (lloyd@randombit.net), on December 16-19, 2003 This file is in the public domain */ #include <botan/botan.h> #include <botan/fips140.h> using namespace Botan; #include <iostream> #include <fstream> int main(int, char* argv[]) { con...
<commit_before>/** * @example clariusStreaming.cpp */ #include <FAST/Streamers/ClariusStreamer.hpp> #include <FAST/Visualization/SimpleWindow.hpp> #include <FAST/Visualization/ImageRenderer/ImageRenderer.hpp> #include <FAST/Tools/CommandLineParser.hpp> using namespace fast; int main(int argc, char**argv) { Comm...
<commit_before>/******************************************************************************* * benchmarks/prefix_doubling/prefix_doubling.cpp * * Part of Project Thrill - http://project-thrill.org * * Copyright (C) 2016 Florian Kurpicz <florian.kurpicz@tu-dortmund.de> * * All rights reserved. Published...
<commit_before>/* * Copyright (C) 2010 Google 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: * * * Redistributions of source code must retain the above copyright * notice, this l...
<commit_before> #include "base/arena_allocator.hpp" #include <string> #include "gmock/gmock.h" #include "gtest/gtest.h" namespace principia { namespace base { using ::testing::Eq; using ::testing::Ge; class ArenaAllocatorTest : public ::testing::Test { protected: ArenaAllocatorTest() : allocator_(&arena_) { ...
<commit_before>// // CPM.hpp // Clock Signal // // Created by Thomas Harte on 10/08/2017. // Copyright © 2017 Thomas Harte. All rights reserved. // #ifndef Storage_Disk_Parsers_CPM_hpp #define Storage_Disk_Parsers_CPM_hpp #include "../Disk.hpp" #include <cstdint> #include <memory> #include <string> #include <vec...
<commit_before>// 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. // // This file contains intentional memory errors, some of which may lead to // crashes if the test is ran without special memory testi...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: XTDataObject.hxx,v $ * * $Revision: 1.11 $ * * last change: $Author: rt $ $Date: 2005-09-08 18:26:38 $ * * The Contents of this file are ...
<commit_before>// Copyright (c) 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 "base/message_loop.h" #include "base/third_party/dynamic_annotations/dynamic_annotations.h" #include "base/thread.h" #include ...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, version 1.0 beta 3 * * (c) 2006-2008 MGH, INRIA, USTL, UJF, CNRS * * ...
<commit_before>// This file is part of the dune-gdt project: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_GDT_MAPPER_FINITEVOLUME_HH #define DUNE_GDT_MAPPER_FINITEVOLUME_HH #includ...
<commit_before>// Copyright 2010, Shuo Chen. All rights reserved. // http://code.google.com/p/muduo/ // // Use of this source code is governed by a BSD-style license // that can be found in the License file. // Author: Shuo Chen (chenshuo at chenshuo dot com) #include <muduo/net/TcpServer.h> #include <muduo/base/Lo...
<commit_before>#include "realrepoclient.h" //#define _LONG_DEBUG #include "dbg.h" #include <unistd.h> #include <QDataStream> #include <QByteArray> #include <QStringList> RealRepoClient::RealRepoClient( QObject *parent) : QObject(parent) { dbg; socket = new QTcpSocket(this); connect(socket, SIGNAL(error(QAbstractSo...