text stringlengths 54 60.6k |
|---|
<commit_before>#include "../../IRCBot/include/command-interface.hpp"
#include "../../IRCBot/include/bot.hpp"
#include "./random-line-stream.hpp" /* for use in BabblerCommand */
#include "./iplookup.hpp"
#include "./googler.hpp"
#include "./stocks.hpp"
#include "./quotes.hpp"
#include "./http.hpp"
#include "./hash.hpp"... |
<commit_before>#include "../../IRCBot/include/command-interface.hpp"
#include "../../IRCBot/include/bot.hpp"
#include "./random-line-stream.hpp" /* for use in BabblerCommand */
#include "./iplookup.hpp"
#include "./googler.hpp"
#include "./stocks.hpp"
#include "./quotes.hpp"
#include "./http.hpp"
#include "./hash.hpp"... |
<commit_before><commit_msg>WaE: ordered comparison of pointer with integer zero<commit_after><|endoftext|> |
<commit_before>#ifndef stack_cpp
#define stack_cpp
#pragma once
#include <iostream>
using namespace std;
template <typename T>
class stack
{
public:
stack();
stack(stack const &);
~stack();
size_t count() const;
auto push(T const &) -> void;
auto copy_(T * item, size_t size, size_t count) -> T*;
T... |
<commit_before>#ifndef stack_cpp
#define stack_cpp
#pragma once
#include <iostream>
template <typename T1, typename T2>
void construct(T1 * ptr, T2 const & value) {
new(ptr) T1 (value);
}
template <typename T>
void destroy(T * ptr) noexcept
{
ptr->~T();
}
template <typename FwdIter>
void des... |
<commit_before>/*************************************************************************/
/* ip_unix.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>/*=========================================================================
Program: Visualization Library
Module: vlMath.hh
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, reprodu... |
<commit_before>#include "objparser.hpp"
#include "../src/meshoptimizer.hpp"
#include <algorithm>
#define NOMINMAX
#include <windows.h>
#include <GL/gl.h>
#pragma comment(lib, "opengl32.lib")
struct Options
{
bool wireframe;
enum { Mode_Default, Mode_Texture, Mode_Normals } mode;
};
struct Vertex... |
<commit_before>/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
*/
#include <sstream>
#include "Name.hpp"
using namespace std;
namespace ndn {
/**
* Write the value to result, escaping characters according to the NDN URI Scheme.
* This also adds "..." to a value with zer... |
<commit_before>// Copyright 2018 The SwiftShader 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
//
// Un... |
<commit_before>/*
* simple.cpp - simple demo for FTGL, the OpenGL font library
*
* Copyright (c) 2008 Sam Hocevar <sam@zoy.org>
*
* 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 withou... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999 The Apache Software Foundation. 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. Redistri... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2000 The Apache Software Foundation. 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. Redistri... |
<commit_before>// Copyright (C) 2017 Elviss Strazdins
// This file is part of the Ouzel engine.
#include "SoundSample.hpp"
#include "MainMenu.hpp"
using namespace std;
using namespace ouzel;
SoundSample::SoundSample():
test8BitButton("button.png", "button_selected.png", "button_down.png", "", "8-bit", "arial.fnt... |
<commit_before>/************************************************************************
filename: FalThumb.cpp
created: Sun Jul 3 2005
author: Paul D Turner <paul@cegui.org.uk>
*************************************************************************/
/*********************************************... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: TreeComposite.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2000 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
Redistr... |
<commit_before>/*
* Copyright (c) 2002-2010 Stephen Williams (steve@icarus.com)
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
* General Public License as published by the Free Software
* Foundation; either version 2 of ... |
<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 "gm.h"
#include "SkBlurMaskFilter.h"
namespace skiagm {
class BlursGM : public GM {
public:
BlursGM() {
this->setBGColor(0xFFDDDDDD);
... |
<commit_before>/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "Resources.h"
#include "SkGradientShader.h"
#include "SkPM4fPriv.h"
DEF_SIMPLE_GM(gamma, canvas, 560, 200) {
SkPaint p;
const... |
<commit_before>/*************************************************************************
*
* $RCSfile: svgfilter.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: ka $ $Date: 2003-12-15 13:57:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>// Copyright (2015) Gustav
#include "finans/core/commandline.h"
#include "gtest/gtest.h"
#include "gmock/gmock.h"
using namespace testing;
class TestSubParser : public argparse::SubParser {
public:
TestSubParser() {
}
void AddParser(argparse::Parser& parser) override {
parser.AddOption("-n... |
<commit_before>/*
* Copyright 2009-2019 The VOTCA Development Team (http://www.votca.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
<commit_before>
#include <iostream>
#include <vector>
#include <cmdline.hpp>
#include <mergehelper.hpp>
#include <merging/automergestrategy.hpp>
#include <merging/onesidestrategy.hpp>
#include <merging/newkeystrategy.hpp>
#include <merging/interactivemergestrategy.hpp>
using namespace kdb;
using namespace kdb::tool... |
<commit_before>#include "WeatherParser.h"
#include "JsonListener.h"
#include "EWCConfig.h"
typedef void (*FunctPtr)(int8_t x);
String _lastKey = "";
FunctPtr _temperature;
FunctPtr _weather;
bool _temperatureDone = false;
bool _weatherDone = false;
void WeatherListener::weather(FunctPtr callback)
{
_weather = callba... |
<commit_before>// $Id: GlobalTypes_test.C,v 1.1 2000/12/13 16:44:38 oliver Exp $
#include <BALL/CONCEPT/classTest.h>
///////////////////////////
#include <BALL/common.h>
///////////////////////////
// Verify that the globally defined data types (from
// COMMON/global.h) have the correct size on all platforms.
// T... |
<commit_before>#define __CL_ENABLE_EXCEPTIONS
#include <CL/cl.hpp>
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include "DeviceInfo.h"
const int COMPLETE = -1;
const int READ = 0;
const int WRITE = 1;
const int QUEUE_SIZE = 16;
const char *KERNEL_MACROS = "-D QUEUE_SIZE=16 -D COMPLETE=... |
<commit_before>//===----------------------------------------------------------------------===//
//
// PelotonDB
//
// manager.cpp
//
// Identification: src/backend/catalog/manager.cpp
//
// Copyright (c) 2015, Carnegie Mellon University Database Group
//
//===------------------------------------... |
<commit_before>//
// Realm C++ coding standard - by example
//
// Lines should never exceed 118 characters --------------------------------------------------------------------------
// Macro names use uppercase and have "REALM_" as prefix. Non-macro
// names never use all uppercase.
#define REALM_MY_MACRO 1
// A... |
<commit_before>/*************************************************************************
*
* $RCSfile: cow_wrapper_clients.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: thb $ $Date: 2006-03-23 15:25:00 $
*
* The Contents of this file are made available subject to the terms of
* either of the fol... |
<commit_before>#ifndef OMR_INFRA_DOUBLES_HPP_
#define OMR_INFRA_DOUBLES_HPP_
/// @file
/// Tools for working with doubles. Especially, for working with the underlying
/// representation of doubles.
#include <OMR/Infra/BitUtilities.hpp>
#include <cmath>
#include <cstdint>
namespace OMR {
namespace Infra {
/// raw i... |
<commit_before>/*
* Config class for La Cogita IRC chatbot
* Copyright (C) 2009 Joel Pitt <joel@fruitionnz.com>
*
* 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... |
<commit_before>#include "bilgamesh_internal.hh"
#include <utility>
#include <valarray>
#include <vector>
template <class T>
_bgm_strategy_monte_carlo<T>::_bgm_strategy_monte_carlo (int g, int m, double km) :
num_games (g), num_moves(m), kings_multiplier(km)
{
}
template <class T>
_bgm_action<T>
_bgm_strategy_monte... |
<commit_before><commit_msg>3D model insertion: display extensions in the filter selector<commit_after><|endoftext|> |
<commit_before><commit_msg>INTEGRATION: CWS sj05 (1.16.226); FILE MERGED 2004/02/13 13:25:06 sj 1.16.226.2: RESYNC: (1.16-1.18); FILE MERGED 2004/01/23 17:20:27 cl 1.16.226.1: #i20484# adding autoshape ui<commit_after><|endoftext|> |
<commit_before><commit_msg>#105477# Don't show query dialog if print dialog has been shown<commit_after><|endoftext|> |
<commit_before>// $Id: NucleicAcid_test.C,v 1.2 2000/01/10 15:51:17 oliver Exp $
#include <BALL/CONCEPT/classTest.h>
///////////////////////////
#include <BALL/KERNEL/nucleicAcid.h>
///////////////////////////
START_TEST(NucleicAcid, "$Id: NucleicAcid_test.C,v 1.2 2000/01/10 15:51:17 oliver Exp $")
/////////////////... |
<commit_before>/*
* Copyright 2007-2020 CM4all GmbH
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* 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... |
<commit_before>// Copyright 2013 Yangqing Jia
#include <stdint.h>
#include <leveldb/db.h>
#include <pthread.h>
#include <string>
#include <vector>
#include "caffe/layer.hpp"
#include "caffe/util/io.hpp"
#include "caffe/vision_layers.hpp"
using std::string;
namespace caffe {
cudaStream_t copyStream = 0;
int lock =... |
<commit_before>
#include "tasksystem.hpp"
#include "filters.hpp"
#include <iostream>
#include <cstring>
void tag(int argc, char *argv[], sptm::TaskSystem* ts)
{
if(argc != 4) {
std::cerr << "Invalid use of tag command." << std::endl;
return;
}
ts->clearFilters();
sptm::TagFilter filter... |
<commit_before>#ifndef DOUBLE_D_HPP
#define DOUBLE_D_HPP
#include <string>
#include <cmath>
#define STRINGIFY2(...) \
#__VA_ARGS__; \
__VA_ARGS__
namespace stan {
namespace math {
namespace internal {
// \cond
const char* double_d_src = STRINGIFY2(
// \endcond
typedef struct double_d {
double ... |
<commit_before>#include "game.hpp"
void Game::sortMoves(MoveArray& result, int depth) {
int num_attacks = result.num_attacks;
if(result.num_attacks >= 0 && result.num_attacks < result.moveArray.size() && result.count >= 1 && result.count < result.moveArray.size()) {
if(game_board.whiteMove) {
for(unsign... |
<commit_before>// Copyright (c) 2004 Daniel Wallin and Arvid Norberg
// 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>// Copyright (c) 2004 Daniel Wallin and Arvid Norberg
// 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>/*
* Copyright (C) 2017 Tmplt <tmplt@dragons.rocks>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versio... |
<commit_before>#pragma once
#include "fwd.hpp"
#include <configure/log.hpp>
#include <string>
#include <typeinfo>
#include <type_traits>
#include <stdexcept>
namespace configure { namespace lua {
template<typename T>
struct Converter
{
typedef T& extract_type;
static std::string const& type_name()
{
st... |
<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 <pwd.h>
#include <grp.h>
#include <iostream>
#include <unistd.h>
#include <sys/stat.h>
#include <stdio.h>
#include <vector>
#include <sstream>
#include <dirent.h>
#include <errno.h>
#include <sys/types.h>
using namespace std;
bool isDirectory(char* directoryName) {
struct stat directoryInCur... |
<commit_before><commit_msg>Take into account merge of branch 'asl/hydro_porting_741' in GUI module.<commit_after><|endoftext|> |
<commit_before>/*******************************************************************************
* thrill/data/fetching_block_queue.hpp
*
* Part of Project Thrill.
*
* Copyright (C) 2015 Tobias Sturm <mail@tobiassturm.de>
*
* This file has no license. Only Chuck Norris can compile it.
***************************... |
<commit_before>/* httpmessage.cpp
Copyright (C) 2003-2005 Tommi Maekitalo
This file is part of tntnet.
Tntnet 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 optio... |
<commit_before>/*
* Copyright (C) 2003-2005 Tommi Maekitalo
*
* 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 License, or (at your option) any later ver... |
<commit_before>
// $Id: QueryResults.cpp 3456 2013-06-14 02:11:13Z jiaying $
/*
* The Software is made available solely for use according to the License Agreement. Any reproduction
* or redistribution of the Software not in accordance with the License Agreement is expressly prohibited
* by law, and may result... |
<commit_before>/*
* DesktopMain.cpp
*
* Copyright (C) 2009-18 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General P... |
<commit_before>#include <torrentsync/utils/Buffer.h>
#include <torrentsync/dht/RoutingTable.h>
#include <torrentsync/dht/message/query/Ping.h>
#include <torrentsync/dht/message/query/FindNode.h>
#include <torrentsync/dht/Callback.h>
#include <torrentsync/utils/log/Logger.h>
#include <exception> // for not imple... |
<commit_before>// MIT License
//
// Copyright (c) 2017-2018 Artur Wyszyński, aljen at hitomi dot pl
//
// 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 withou... |
<commit_before>/**
* @file CallableTcp.hpp
* @brief CallableTcp class prototype.
* @author zer0
* @date 2016-12-29
* @date 2017-02-01 (Move package: libtbag/uv -> libtbag/uvpp)
*/
#ifndef __INCLUDE_LIBTBAG__LIBTBAG_UVPP_EX_CALLABLETCP_HPP__
#define __INCLUDE_LIBTBAG__LIBTBAG_UVPP_EX_CALLABLETCP_HPP__
// ... |
<commit_before>/*
* Copyright 2011 Thomas Fidler
*
* 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 <unistd.h> // ::close
#include "event_loop.h"
#include "inet_addr.h"
#include "socket.h"
#include "connector.h"
#include "tcp_connection.h"
namespace cube {
namespace net {
int Connector::Connect(const InetAddr &server_addr, int &sockfd) {
sockfd = sockets::CreateNonBlockStreamSocket();
... |
<commit_before>#include <netlib/channel.h>
#include <sys/epoll.h> // EPOLL*
#include <netlib/event_loop.h> // EventLoop
#include <netlib/logging.h> // Log
using std::string;
using std::shared_ptr;
using netlib::EventLoop;
using netlib::Channel;
// EPOLLIN
// fd is available for read(2): data other than high-priorit... |
<commit_before><commit_msg>Refine MSE and sample increment calculations.<commit_after><|endoftext|> |
<commit_before>//
// Created by Edd on 04/11/2017.
//
#include <leveldb/db.h>
#include <leveldb/filter_policy.h>
#include <unordered_set>
#include <stor/document/document.h>
#include "leveldb_driver.h"
#include "utils.h"
namespace esft {
namespace stor {
namespace bmark {
#pragma GCC push_options
#pragm... |
<commit_before>//===-- DNBDataRef.cpp ------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before><commit_msg>core: scene: session: cp<commit_after><|endoftext|> |
<commit_before>/// HEADER
#include "apex_ros_interface.h"
/// PROJECT
#include <csapex/utility/register_apex_plugin.h>
#include <csapex_ros/ros_handler.h>
#include "import_ros.h"
#include <csapex/model/graph.h>
#include <csapex/model/node_state.h>
#include <csapex/factory/message_factory.h>
#include <csapex_ros/ros_me... |
<commit_before> /*
* Software License Agreement (BSD License)
*
* Copyright (c) 2011, Willow Garage, 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:
*
* * Redistr... |
<commit_before>#include <Salamandre-daemon/Daemon.hpp>
#include <iostream>
#include <csignal>
#define GUI_PORT 1
#define SERVER_PORT 2
#define NB_ARGS (SERVER_PORT + 1)
salamandre::Daemon* server = nullptr;
void stop_server_handler(int sig)
{
std::cout<<"Recv signal "<<sig<<". Stoping server.\n Please wait."<<s... |
<commit_before>/*
Copyright (c) 2013 Daniele Bartolini, Michele Rossi
Copyright (c) 2012 Daniele Bartolini, Simone Boscaratto
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, i... |
<commit_before>#include "engine/Engine.hpp"
#include <SDL2/SDL.h>
using namespace std;
using namespace glm;
Engine::Engine(int argc, char** argv) : _wnd(nullptr)
{
for(int i = 0; i < argc; ++i)
_args.push_back(string{argv[i]});
}
Engine::~Engine()
{ }
int Engine::run(Application* app)
{
_running = true;
_exit... |
<commit_before>//===-- RegisterContextOpenBSD_x86_64.cpp ----------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-----------------------------------------... |
<commit_before>/*
*
* Copyright 2015, 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, thi... |
<commit_before><commit_msg>Fade out rotation gizmo axes when facing head-on<commit_after><|endoftext|> |
<commit_before>// Copyright 2004-present Facebook. All Rights Reserved.
#include <ctime>
#include <boost/lexical_cast.hpp>
#include "osquery/database.h"
namespace osquery {
namespace tables {
const int kNumCols = 1;
QueryData genTime() {
Row r;
time_t _time = time(0);
struct tm* now = localtime(&_time);
r... |
<commit_before>/////////////////////////////////////////////////////////////////////////
// $Id$
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001 MandrakeSoft S.A.
//
// MandrakeSoft S.A.
// 43, rue d'Aboukir
// 75002 Paris - France
// http://www.linux-man... |
<commit_before>/*************************************************************************
*
* $RCSfile: tabline.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: kz $ $Date: 2005-01-21 16:51:14 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before><commit_msg>get rid of last use of UniString in LibreOffice<commit_after><|endoftext|> |
<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><commit_msg>Some more conversion to consinstent integer types<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* $RCSfile: unotools.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: os $ $Date: 2001-04-27 10:58:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: wrtsh4.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: hr $ $Date: 2007-09-27 12:53:55 $
*
* The Contents of this file are made av... |
<commit_before>#include "options.h"
namespace nng {
options::options() {
}
option_names::option_names() {
}
const std::string option_names::raw = NNG_OPT_RAW;
const std::string option_names::linger = NNG_OPT_LINGER;
const std::string option_names::receive_buffer = NNG_OPT_RECVBUF;
co... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided tha... |
<commit_before>#include <chrono>
#include <cstdint>
#include "envoy/config/endpoint/v3/endpoint_components.pb.h"
#include "source/common/common/base64.h"
#include "source/common/http/utility.h"
#include "source/common/protobuf/protobuf.h"
#include "source/extensions/filters/http/stateful_session/stateful_session.h"
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ComponentDefinition.cxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: vg $ $Date: 2007-01-15 14:31:06 $
*
* The Contents of this fi... |
<commit_before>#include <netinet/ip6.h>
#include <arpa/inet.h>
#include "PacketPayload.h"
#include "PcapDumper.h"
#include "TransportLayerProcessorFactory.h"
#include "IPv6Processor.h"
void IPv6Processor::process(const u_char *header, const struct pcap_pkthdr *pkthdr, const u_char *packet,
... |
<commit_before>//http://www.spoj.com/problems/EDIST/
//longes common subsequence
<commit_msg>Adding<commit_after>//http://www.spoj.com/problems/EDIST/
//longes common subsequence
#include <stdio.h>
using namespace std;
int lcs(int a,int b){
}
int main(int argc, char const *argv[])
{
return 0;
}<|endoftext|> |
<commit_before>#include "generateur/ParseCmdLine.hh"
#include <string>
using namespace std;
variables_map ParseCmdLine::parse(int argc_p, char** argv_p){
options_description desc_l("Options autorisees");
desc_l.add_options()
("help", "genere ce message")
("strategy,s", value<string>(), "Specifi... |
<commit_before>#pragma once
#include <string>
#include <list>
typedef std::pair<std::string, std::string> keilo_instance;
typedef std::list<keilo_instance> keilo_record;
typedef struct {
SOCKET sock;
SOCKADDR_IN addr;
} client;<commit_msg>winsock<commit_after>#pragma once
#include <string>
#include <list>
#includ... |
<commit_before>using namespace std;
string encrypt (string plaintext, string key)
{
return "TODO";
}
<commit_msg>Removed unused namespace import.<commit_after>string encrypt (string plaintext, string key)
{
return "TODO";
}
<|endoftext|> |
<commit_before>//
// Aspia Project
// Copyright (C) 2020 Dmitry Chapyshev <dmitry@aspia.ru>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your ... |
<commit_before>/**
* \file
* \brief Scheduler class implementation
*
* \author Copyright (C) 2014-2015 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* 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
* dis... |
<commit_before>//
// NSolver::setup_system.cpp
//
// Created by Lei Qiao on 15/8/9.
// A work based on deal.II tutorial step-33.
//
#include <NSolver/solver/NSolver.h>
namespace NSFEMSolver
{
using namespace dealii;
// @sect4{NSolver::setup_system}
//
// The following (easy) function is called each time t... |
<commit_before>#include "gui/qrworkspace.h"
#include <QtCore/qmap.h>
#include <QtCore/qdebug.h>
#include <QtWidgets/qwidget.h>
#include <QtWidgets/qscrollarea.h>
#include <QtWidgets/qtabbar.h>
#include "gui/qrworkspacewidget.h"
NS_CHAOS_BASE_BEGIN
class QrWorkspacePrivate{
QR_DECLARE_PUBLIC(QrWorkspace)
publi... |
<commit_before>#ifndef RBX_STATE_HPP
#define RBX_STATE_HPP
namespace rubinius {
class VM;
class VMJIT;
class ManagedThread;
class VMThreadState;
class SharedState;
class State {
VM* vm_;
VMJIT* vm_jit_;
SharedState& shared_;
public:
State(VM* vm)
: vm_(vm)
, vm_jit_(&vm->vm_... |
<commit_before>/*
* Copyright (c) 2001 Stephen Williams (steve@icarus.com)
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
* General Public License as published by the Free Software
* Foundation; either version 2 of the L... |
<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/ui/gtk/tab_contents/chrome_web_contents_view_delegate_gtk.h"
#include <map>
#include "base/lazy_instance.h"
... |
<commit_before>// bdls_osutil.cpp -*-C++-*-
// ----------------------------------------------------------------------------
// NOTICE
//
// This component is not up to date with current BDE coding standards, and
// should not be used ... |
<commit_before>#include <pcl/point_types.h>
#include <pcl/io/pcd_io.h>
#include <pcl/kdtree/kdtree_flann.h>
#include <pcl/surface/mls.h>
int
main (int argc, char** argv)
{
// Load input file into a PointCloud<T> with an appropriate type
pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ>... |
<commit_before>#define _CRT_SECURE_NO_WARNINGS
#include"../main/IOfunction.h"
#include"../main/memoryfunction.h"
#include<unordered_map>
#include<queue>
#include<string>
#include<iostream>
using namespace std;
struct product{
int pid;
double sim;
product(int _id, double _sim) {
pid = _id;
sim = _sim;
}
};
stru... |
<commit_before><commit_msg>various improvements in signals<commit_after><|endoftext|> |
<commit_before>/*
Copyright (c) 2006, Arvid Norberg & Daniel Wallin
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, th... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.