text
stringlengths
54
60.6k
<commit_before>/* * Copyright (C) 2012 The Android Open Source 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 ...
<commit_before>/* Copyright (c) 2013 https://github.com/Naftoreiclag/ * * Distributed under the MIT License (http://opensource.org/licenses/mit-license.html) * See accompanying file LICENSE */ #include "util/Sysout.h" #include "Game.h" void initialize() { // Set the display width to 80 chars long (for word-w...
<commit_before>// // LineRenderer.cpp // #include "LineRenderer.h" using namespace pockets; using namespace cinder; namespace { using Vertex = LineRenderer::Vertex; const auto VertexLayout = ([] { geom::BufferLayout layout; layout.append(geom::Attrib::POSITION, 3, sizeof(Vertex), offsetof(Vertex, position...
<commit_before>#include <common.h> /////////////////////////////////////////////////////////////////////////////// #pragma region typedef uint32_t CharEx; namespace std { template<> class regex_traits<CharEx> : public _Regex_traits_base { public: typedef CharEx _Uelem; typedef regex_traits<CharEx> _Myt; ty...
<commit_before>/* projectM -- Milkdrop-esque visualisation SDK Copyright (C)2003-2007 projectM Team * * This library 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 2.1 of the L...
<commit_before>#include "client.h" Client::Client(std::string&& id, std::string&& nick, std::string&& ident, std::string&& gecos, const Protocol* mod) : User(std::forward<std::string> (id), std::forward<std::string> (nick), std::forward<std::string> (ident), std::forward<std::string> (gecos)), expectingReconnect(tru...
<commit_before>#include "NTClient.h" using namespace std; NTClient::NTClient(int _wpm, double _accuracy) { typeIntervalMS = 12000 / _wpm; wpm = _wpm; accuracy = _accuracy; hasError = false; firstConnect = true; connected = false; lessonLen = 0; lidx = 0; log = new NTLogger("(Not logged in)"); } NTClient::~NTC...
<commit_before>/* This file is part of the KDE project Copyright (C) 2006 Matthias Kretz <kretz@kde.org> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2 as published by the Free Software Foundation. This l...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //======================================...
<commit_before>/**************************************************************************** * * (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. * **********************...
<commit_before>// Copyright (c) 2021 The PIVX developers // Distributed under the MIT software license, see the accompanying // file COPYING or https://www.opensource.org/licenses/mit-license.php. #include "qt/pivx/governancemodel.h" #include "budget/budgetmanager.h" #include "budget/budgetutil.h" #include "destinati...
<commit_before>#include "Printer.hpp" #include "TerminalInfo.hpp" #include <cstring> namespace yb { void Printer::deleteRows(int rows) { output_ << std::string(rows, ' '); cursor_backward(rows); output_ << std::flush; } void Printer::clearTerminalLine() { int pos, width; if (!(pos = TerminalInfo:...
<commit_before>/*========================================================================= Program: Visualization Library Module: Renderer.cc Language: C++ Date: $Date$ Version: $Revision$ This file is part of the Visualization Library. No part of this file or its contents may be copied, reprod...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2011 Artem Pavlenko * 2013 Oleksandr Novychenko * * This library is free software; you can redistribute it and/or * modify it under ...
<commit_before>/* * Copyright (c) 2016-2017, The OpenThread Authors. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright ...
<commit_before>#include "API.hpp" #include "APICamera.hpp" #include "ros/ros.h" #include <ros/console.h> #include <map> //messages #include "api_application/System.h" #include "api_application/SetFormation.h" #include "api_application/MoveFormation.h" #include "control_application/SetQuadcopters.h" #include "control_a...
<commit_before>//************************************************************/ // // Plot Implementation // // Implements the SPXPlot class, which connects all of the // other non-configuration classes (non-steering/options) and // manages the plotting, drawing, and ROOT objects // // @Author: J. Gibson, C. Embree, T...
<commit_before> /* App.cpp * * Copyright (C) 2013 Michael Imamura * * 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 ...
<commit_before>// Copyright (c) 2014 Roberto Raggi <roberto.raggi@gmail.com> // // 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...
<commit_before>/* * Copyright (C) 2011, Paul Tagliamonte <tag@pault.ag> * * 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 * ...
<commit_before>/* * The MIT License (MIT) * * Copyright (c) 2015 vmolsa <ville.molsa@gmail.com> (http://github.com/vmolsa) * * 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 restrictio...
<commit_before>#include <string> #include "nbind/api.h" #include "control.h" #include "ui.h" class UiButton : public UiControl { DEFINE_EVENT(onClicked) public: UiButton(std::string text); UiButton(); DEFINE_CONTROL_METHODS() void setText(std::string text); std::string getText(); ~UiButton(); void onDestroy...
<commit_before>#include "clause.hpp" #include "internal.hpp" #include "iterator.hpp" #include "macros.hpp" #include "message.hpp" #include "proof.hpp" #include <algorithm> #include <cmath> namespace CaDiCaL { // Code for conflict analysis, e.g., to generate the first UIP clause. The // main function is 'analyze' be...
<commit_before>#include <stdio.h> #include <string> #include <boost/python.hpp> #include <sys/stat.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <fcntl.h> #include <sys/mman.h> #include <string.h> #include <math.h> #include <vector> #include <boost/random.hpp> #include <b...
<commit_before>#include "common.th" // c <- multiplicand // d <- multiplier // b -> product .global imul imul: #if IMUL_EARLY_EXITS b <- c == 0 d <- d &~ b // d = (c == 0) ? 0 : d b <- d == 0 p <- @+L_done & b + p #endif o <- o - 3 h -> [o + (3 - 0)] i -> [o + (3 - 1)] j -> [o + (3...
<commit_before>/*========================================================================= * * Copyright Marius Staring, Stefan Klein, David Doria. 2011. * * 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 ...
<commit_before>/*************** <auto-copyright.pl BEGIN do not edit this line> ************** * * VR Juggler is (C) Copyright 1998-2002 by Iowa State University * * Original Authors: * Allen Bierbaum, Christopher Just, * Patrick Hartling, Kevin Meinert, * Carolina Cruz-Neira, Albert Baker * * This libra...
<commit_before>// Copyright 2010, Camilo Aguilar. Cloudescape, LLC. #include "bindings.h" /* size of the event structure, not counting name */ #define EVENT_SIZE (sizeof (struct inotify_event)) /* reasonable guess as to size of 1024 events */ #define BUF_LEN (1024 * (EVENT_SIZE + 16)) namespace NodeInotify {...
<commit_before>#include <jni.h> #include <string> extern "C" JNIEXPORT jstring JNICALL Java_cn_vip_ldcr_SDLActivity_stringFromJNI( JNIEnv *env, jobject /* this */) { std::string hello = "Hello from C++"; return env->NewStringUTF(hello.c_str()); } <commit_msg>PREF 3guohero 3gyj-android 三国志英杰and...
<commit_before>#include "HM_base.h" namespace kai { HM_base::HM_base() { m_pCAN = NULL; m_pCMD = NULL; m_pGPS = NULL; m_strCMD = ""; m_rpmL = 0; m_rpmR = 0; m_motorRpmW = 0; m_bSpeaker = false; m_bMute = false; m_canAddrStation = 0x301; m_maxRpmT = 65535; m_maxRpmW = 2500; m_ctrlB0 =...
<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 "socket.h" class Plaintext : public Socket { public: Plaintext(); ~Plaintext(); unsigned int apiVersion(); void connectServer(std::string server, std::string port, std::string bindAddr = ""); std::string receive(bool* reset); void sendData(std::string line); void closeConnection(...
<commit_before>#include <fstream> #include "GlobalLexicalModel.h" #include "StaticData.h" #include "InputFileStream.h" #include "UserMessage.h" using namespace std; namespace Moses { GlobalLexicalModel::GlobalLexicalModel(const string &filePath, const float weight, ...
<commit_before>/* This file is part of Android File Transfer For Linux. Copyright (C) 2015 Vladimir Menshakov Android File Transfer For Linux 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, e...
<commit_before>/** * Chimera - a tool to convert c++ headers into Boost.Python bindings. */ #include "chimera/configuration.h" #include "chimera/frontend_action.h" #include <clang/Tooling/CommonOptionsParser.h> #include <clang/Tooling/Tooling.h> #include <llvm/Support/CommandLine.h> #include <memory> #include <stri...
<commit_before>/** \copyright * Copyright (c) 2013, 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 <packets/Packet.h> #include "packets/server/BlockHelloPacket.h" #include "Poco/Crypto/RSAKey.h" #include "Poco/Crypto/Cipher.h" #include "Poco/Crypto/CipherKey.h" #include "Poco/Crypto/CipherFactory.h" #include <string.h> #include <packets/server/SystemMessagePacket.h> #include <packets/FixedLen...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // task - a command line task list manager. // // Copyright 2006 - 2009, Paul Beckingham. // All rights reserved. // // This program is free software; you can redistribute it and/or modify it under // the terms of the GNU Ge...
<commit_before>#include "testing/testing.hpp" #include "routing/road_graph.hpp" #include "routing/routing_tests/road_graph_builder.hpp" #include "std/algorithm.hpp" namespace routing { UNIT_TEST(RoadGraph_NearestTurns) { // 2nd road // o // | // | // o // | /...
<commit_before>/** * @file * @brief Implementation of object with set of particles at pixel * @copyright Copyright (c) 2017 CERN and the Allpix Squared authors. * This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md". * In applying this license, CERN does not wai...
<commit_before><commit_msg>x509_certificate_nss: remove unused ScopedCERTCertificate and ScopedCERTCertList<commit_after><|endoftext|>
<commit_before>// ////////////////////////////////////////////////////////////////////// // Import section // ////////////////////////////////////////////////////////////////////// // STL #include <cassert> // Boost #include <boost/make_shared.hpp> // StdAir #include <stdair/stdair_exceptions.hpp> #include <stdair/basi...
<commit_before>// Copyright 2017 The Abseil 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 applica...
<commit_before>/*! \copyright (c) RDO-Team, 2011 \file rdo_resource.cpp \authors Урусов Андрей (rdo@rk9.bmstu.ru) \authors Лущан Дмитрий (dluschan@rk9.bmstu.ru) \date 16.04.2008 \brief RDOResource implementation \indent 4T */ // -------------------------------------------------------...
<commit_before>#ifndef NEU_BIAS_LAYER_KERNEL_SOURCE_HPP #define NEU_BIAS_LAYER_KERNEL_SOURCE_HPP //20151023 #include <boost/compute/utility/source.hpp> namespace neu { constexpr char bias_forward_kernel_source[] = BOOST_COMPUTE_STRINGIZE_SOURCE( __kernel void forward( const __global float* input, const int input_...
<commit_before><commit_msg>fdo#43556 round pos&dim of report controls & sections to nearest 10^-4m<commit_after><|endoftext|>
<commit_before>#include "app.h" #include "stdio.h" #include <stdarg.h> // for va_start, etc #include <memory> // for std::unique_ptr #include <GLFW/glfw3.h> // for glVertex3f, etc #include <Eigen/Geometry> // for cross product using namespace Eigen; void App::initialize() { // set up lights const GLfloat...
<commit_before>#ifndef __SOTA_AST__ #define __SOTA_AST__ = 1 #include <string> #include <vector> #include <iostream> #include "z2h/ast.hpp" #include "z2h/token.hpp" namespace sota { inline void sepby(std::ostream &os, std::string sep, std::vector<z2h::Ast *> items) { if (items.size()) { size...
<commit_before>#include <tgbot/bot.h> #include <tgbot/logger.h> #include <tgbot/utils/https.h> #include <sstream> #include <thread> using namespace tgbot; tgbot::LongPollBot::LongPollBot( const std::string &token, const std::vector<types::UpdateType> &filterUpdates, const int &limit, const int &timeout) ...
<commit_before>#include <iostream> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <sys/utsname.h> #include <string.h> #include <linux/limits.h> #include "btf.h" #include "types.h" #include "bpftrace.h" #ifdef HAVE_LIBBPF_BTF_DUMP #include <linux/bpf.h> #include <linux/btf....
<commit_before> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <assert.h> #include "LedControllerRequestProxy.h" #include "GeneratedTypes.h" int main(int argc, const char **argv) { LedControllerRequestProxy *device = new LedControllerRequestProxy(IfcNames_LedControllerRequestPortal); printf(...
<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 "ppapi/proxy/ppapi_command_buffer_proxy.h" #include "ppapi/proxy/ppapi_messages.h" #include "ppapi/proxy/proxy_channel.h" #in...
<commit_before>/***************************************************************************** * Licensed to Qualys, Inc. (QUALYS) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * QUALYS licenses this fil...
<commit_before>/****************************************************** * disk.cpp - Disk module implementation * created 140204 jonathan howard (j@hovverd.com) ******************************************************/ #include "hdd.h" #include <cstring> #include <cstdlib> #include <stdexcept> #define BUFFER_SIZE (20...
<commit_before>#include <ros/ros.h> #include <geometry_msgs/Twist.h> #include <tf/transform_broadcaster.h> #include <boost/bind.hpp> #include <boost/lambda/lambda.hpp> #include <sys/time.h> #include "imu/bool_msg.h" #include "Comm.h" #include <sensor_msgs/Imu.h> #include <stdexcept> class CheckSumError : public...
<commit_before>// MIT License // Copyright (c) 2017 Zhuhao Wang // 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, co...
<commit_before>// Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <map> #include <openssl/ecdsa.h> #include <openssl/obj_mac.h> #include "key.h" // Generate a privat...
<commit_before>#include <cerrno> #include <chrono> #include <cstring> #include <fstream> #include <iomanip> #include <iostream> #include <sstream> #include <string> #include <uv.h> #include "log.h" using std::cerr; using std::chrono::steady_clock; using std::cout; using std::dec; using std::endl; using std::ofstream;...
<commit_before> /** * \file main.cc * \Author Andrea Barberio <insomniac@slackware.it> * \date October 2015 * \brief entry point for dublin-traceroute * * This file contains the main routine for calling the standalone dublin-traceroute * executable. */ #include <iostream> #include <fstream> #include <dub...
<commit_before>// Copyright (c) 2012, Rasmus Andersson. All rights reserved. // Use of this source code is governed by a MIT-style license that can be // found in the LICENSE file. #include <string.h> #include <stdlib.h> #include <iostream> #include <fstream> #include "codegen/Visitor.h" #include "parse/FileInput.h"...
<commit_before>#include <iostream> #include "NTClient.h" int main(int argc, char** argv) { NTClient nclient = NTClient("asd4wderg", "123asd123"); // Throw-away account cout << "Logging account in...\n"; nclient.login(); return 0; }<commit_msg>NitroType is banning my throw away accounts<commit_after>#include <iostr...
<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/sys_info.h" #include "base/basictypes.h" #include "base/file_path.h" #include "base/file_util.h" #include "base/string_...
<commit_before>// ----------------------------------------------------------------------------- // // Copyright (C) The BioDynaMo Project. // 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. // // See the LICEN...
<commit_before>#include "ChSolverParallel.h" using namespace chrono; real Func1(const int &SIZE, real* __restrict__ x, real* __restrict__ mb_tmp) { real mb_tmp_norm = 0; real _mb_tmp_; real *x_ = (real*) __builtin_assume_aligned(x, 16); real *mb_tmp_ = (real*) __builtin_assume_aligned(mb_tmp, 16); //#pragma omp p...
<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>/* =========================================================================== Daemon GPL Source Code Copyright (C) 2012 Unvanquished Developers This file is part of the Daemon GPL Source Code (Daemon Source Code). Daemon Source Code is free software: you can redistribute it and/or modify it under the...
<commit_before>/* * StatZone 1.1.1 * Copyright (c) 2012-2022, Frederic Cambus * https://www.statdns.com * * Created: 2012-02-13 * Last Updated: 2021-11-16 * * StatZone is released under the BSD 2-Clause license. * See LICENSE file for details. * * SPDX-License-Identifier: BSD-2-Clause */ #include <err.h> #...
<commit_before>#include "replication/delete_queue.hpp" #include "btree/node.hpp" #include "buffer_cache/buf_lock.hpp" #include "buffer_cache/co_functions.hpp" #include "containers/scoped_malloc.hpp" #include "logger.hpp" #include "store.hpp" namespace replication { namespace delete_queue { // The offset of the prim...
<commit_before>#include <sys/types.h> #include <sys/socket.h> #include <sys/un.h> #include <arpa/inet.h> #include <unistd.h> #include <stdio.h> #include <errno.h> #include <string.h> #include <fcntl.h> bool socketError = false; bool socketBlocking = false; int DDV_OpenUnix(const char adres[], bool nonblock = false){ ...
<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 // "Lic...
<commit_before>#include <sys/types.h> #include <sys/socket.h> #include <sys/un.h> #include <arpa/inet.h> #include <unistd.h> #include <stdio.h> #include <errno.h> #include <string.h> #include <fcntl.h> bool socketError = false; bool socketBlocking = false; int DDV_OpenUnix(const char adres[], bool nonblock = false){ ...
<commit_before>/* * mkContext.cpp * MonkVG-XCode * * Created by Micah Pearlman on 2/22/09. * Copyright 2009 Monk Games. All rights reserved. * */ #include "mkContext.h" #include "glPath.h" using namespace MonkVG; //static VGContext *g_context = NULL; VG_API_CALL VGboolean vgCreateContextSH(VGint width, VG...
<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 <iostream> #define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE Main #include <boost/test/unit_test.hpp> #include <apr.h> #include "akumuli.h" #include "storage_engine/blockstore.h" #include "storage_engine/volume.h" #include "storage_engine/nbtree.h" #include "log_iface.h" void test_logger(...
<commit_before>#include <iostream> #define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE Main #include <boost/test/unit_test.hpp> #include <apr.h> #include "akumuli.h" #include "storage_engine/blockstore.h" #include "storage_engine/volume.h" #include "storage_engine/nbtree.h" #include "log_iface.h" void test_logger(...
<commit_before>#ifndef __AJOKKI_CONSOLE_CALLBACKS_HPP_INCLUDED #define __AJOKKI_CONSOLE_CALLBACKS_HPP_INCLUDED #include "code/ylikuutio/console/command_and_callback_struct.hpp" #include "code/ylikuutio/common/globals.hpp" // Include standard headers #include <string> // std::string #include <vector> // std::vecto...
<commit_before>#include "ffmpeg_video_source.h" extern "C" { #include <libavutil/imgutils.h> #include <libavutil/timestamp.h> } namespace gg { VideoSourceFFmpeg::VideoSourceFFmpeg() { // nop } VideoSourceFFmpeg::VideoSourceFFmpeg(std::string source_path, enum ColourSpace col...
<commit_before>/** * @copyright * ======================================================================== * Copyright FLWOR Foundation * ======================================================================== * * @author Sorin Nasoi (sorin.nasoi@ipdevel.ro) * @file misc/MiscImpl.cpp * */ #include <vector> ...
<commit_before>/* * Copyright (c) 2010-2012 OTClient <https://github.com/edubart/otclient> * * 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 limita...
<commit_before> /* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gl/GLTestContext.h" #define GL_GLEXT_PROTOTYPES #include <GLES2/gl2.h> #include <EGL/egl.h> #include <EGL/eglext.h> #include "gl/GrGLDefines.h" #in...
<commit_before>#include "line_segment.hpp" // Include standard headers #include <string> // std::string #include <vector> // std::vector namespace ylikuutio { namespace geometry { /* LineSegment::LineSegment(const std::vector<float> point1, const std::vector<float> point2) { ...
<commit_before>#include "catch.hpp" #include "etl/fast_vector.hpp" //{{{ Init tests TEST_CASE( "fast_vector/init_1", "fast_vector::fast_vector(T)" ) { etl::fast_vector<double, 4> test_vector(3.3); REQUIRE(test_vector.size() == 4); for(std::size_t i = 0; i < test_vector.size(); ++i){ REQUIRE(tes...
<commit_before>/** * Copyright (c) 2014 - 2016 Tolga Cakir <tolga@cevel.net> * * This source file is part of Sidewinder daemon and is distributed under the * MIT License. For more information, see LICENSE file. */ #include <csignal> #include <iostream> #include <fcntl.h> #include <unistd.h> #include <sys/file.h...
<commit_before>/******************************************************************************* * * X testing environment - Google Test environment feat. dummy x server * * Copyright (C) 2011, 2012 Canonical Ltd. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software ...
<commit_before>// -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- // Copyright (c) 2005, 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 ...
<commit_before>// Copyright (c) 2005, 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 ...
<commit_before>/* * Copyright (C) 2015 deipi.com LLC and contributors. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limit...
<commit_before>#include "stdafx.h" #include <openssl/cms.h> #include <openssl/engine.h> #include <openssl/err.h> #include <nan.h> #include "utils/wlog.h" #include "pki/wkey.h" #include "pki/wcert.h" #include "pki/wpkcs12.h" #include "pki/wcerts.h" #include "pki/wcrl.h" #include "pki/wcrls.h" #includ...
<commit_before>// -*- Mode: C++; tab-width: 2; -*- // vi: set ts=2: // // $Id: lineBasedFile.C,v 1.26 2003/07/09 12:55:13 amoll Exp $ #include <BALL/FORMAT/lineBasedFile.h> #include <BALL/COMMON/exception.h> #include <stdio.h> using namespace std; namespace BALL { LineBasedFile::LineBasedFile() throw() : File(...
<commit_before>/************************************************************************* * * $RCSfile: valuenodeaccess.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: vg $ $Date: 2003-04-01 13:35:21 $ * * The Contents of this file are made available subject to the terms of * either of the followin...
<commit_before>/************************************************************************* * * $RCSfile: AKey.cxx,v $ * * $Revision: 1.17 $ * * last change: $Author: oj $ $Date: 2002-07-11 06:56:38 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses...
<commit_before>//================================================================================================= // // MJP's DX11 Sample Framework // http://mynameismjp.wordpress.com/ // // All code and content licensed under Microsoft Public License (Ms-PL) // //===================================================...
<commit_before>/* * PrenexLink.cc * * Copyright (C) 2017 Linas Vepstas * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License v3 as * published by the Free Software Foundation and including the * exceptions at http://opencog.org/wik...
<commit_before>/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2014 Torus Knot Software Ltd Permission is hereby granted, free of charge, to ...
<commit_before>/***************************************************************************** * Media Library ***************************************************************************** * Copyright (C) 2015-2019 Hugo Beauzée-Luyssen, Videolabs, VideoLAN * * Authors: Hugo Beauzée-Luyssen <hugo@beauzee.fr> * * T...
<commit_before>/************************************************************************* * * $RCSfile: viewcontactoftextobj.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2003-11-24 16:46:19 $ * * The Contents of this file are made available subject to the terms of * either of the fol...
<commit_before>// Time: ctor: O(m * n) // lookup: O(1) // Space: O(m * n) class NumMatrix { public: NumMatrix(vector<vector<int>> &matrix) { if (matrix.empty()) { return; } const auto m = matrix.size(), n = matrix[0].size(); for (int i = 0; i <= m; ++i) { ...
<commit_before>/* Copyright (C) 2008 by Marten Svanfeldt This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. T...
<commit_before>// Copyright (c) 2009-2012 Bitcoin Developers // Copyright (c) 2012-2013 The Pulse developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "init.h" // for pwalletMain #include "bitcoinrpc.h" #inclu...
<commit_before>/************************************************************************** The MIT License (MIT) Copyright (c) 2015 Dmitry Sovetov https://github.com/dmsovetov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...