text stringlengths 54 60.6k |
|---|
<commit_before>/**
* This file is part of Slideshow.
* Copyright (C) 2008-2010 David Sveningsson <ext@sidvind.com>
*
* Slideshow 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 version 3 of... |
<commit_before>#include <iostream>
#include "input/filter.h"
#include "input/format.h"
#include "encoder/encoder.h"
#include "sjoin/sjoin.h"
#include "virtualizer/virtualizer.h"
#include <ctime>
#include <stdio.h>
int process_filter_graph(Format *fmt, Filter *filter, std::string sofa_file_name) {
FILE *fl;
FIL... |
<commit_before>#include <stdio.h>
#include <thread>
#include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/Graphics/RectangleShape.hpp>
#include "engine/terrain.hpp"
#include "engine/unit.hpp"
#include "engine/engine.hpp"
#include "gui/cursor.hpp"
#include "gui/guihandler.hpp"
#include "gui/splashscreen.hpp"
#in... |
<commit_before>#include <SFML/Graphics.hpp>
#include "PhysSystem.h"
#include <sstream>
#include <iomanip>
//50 125 218
//50 50 50
sf::Vector2f ConvertVector(Vector2f vec)
{
return sf::Vector2f(vec.x, vec.y);
}
void RenderBox(std::vector<sf::Vertex>& vertices, Coords2f coords, Vector2f size, sf::Color ... |
<commit_before>#include "consts.h"
#include "utils.h"
#include "circuits/circuit.h"
#include "circuits/element.h"
#include "matrix/matrix.h"
#include "matrix/newtonraphson.h"
#include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip>
#include <string>
#include <vector>
#include <cstdlib>
#include <mat... |
<commit_before>#include "../include/PSATsolver.hpp"
using namespace std;
using namespace arma;
int main(int argc, char** argv)
{
bool v = false;
if (argc < 2)
{
std::cout << "I need a input file " << "\n";
return -1;
}
//if (argc == 3 && argv[2][1] == 'v' && argv[2][0] ==... |
<commit_before>#include <cassert>
#include <cstdlib>
#include <iostream>
#include <ios>
#include "hext/parser.h"
#include "hext/matcher.h"
#include "hext/program-options.h"
int main(int argc, const char ** argv)
{
std::ios_base::sync_with_stdio(false);
hext::program_options po(argc, argv);
if( !po.validate_o... |
<commit_before>/*
This file is part of the PhantomJS project from Ofi Labs.
Copyright (C) 2011 Ariya Hidayat <ariya.hidayat@gmail.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... |
<commit_before>// Jubatus: Online machine learning framework for distributed environment
// Copyright (C) 2013 Preferred Networks and Nippon Telegraph and Telephone Corporation.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License v... |
<commit_before>#include <iostream>
#include <fstream>
#include <iomanip>
#include <string>
#include <random>
#include <nanikanizer/nanikanizer.hpp>
typedef std::pair<int, std::valarray<float>> image_type;
static const std::size_t channel_size = 32 * 32;
static const std::size_t whole_size = channel_size * 3;
template... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
//
// Minimalistic Vulkan Triangle sample
//
//
#define USE_GLSL
#define VERTEX_BUFFER_BIND_ID 0
// vulkan utilities.
#include "vku.hpp"
class triangle_example : public vku::window
{
public:
struct {
glm::mat4 pro... |
<commit_before>#include <iostream>
int main() {
std::cout << "Hello World" << std::endl;
}<commit_msg>Code sample to show how pool works<commit_after>#include <iostream>
#include "SafeQueue.h"
#include "ThreadPool.h"
#include <utility>
// Simple function that adds multiplies two numbers and prints the result
voi... |
<commit_before>/**
* Copyright (c) 2013-2014, Dan
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* li... |
<commit_before>/*
* The MIT License (MIT)
*
* Copyright (c) 2014 Vivek Galatage
*
* 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 t... |
<commit_before>// easyblogger V 2.0
//
// Copyright 2011 Florian Weber <florian.weber@sfz-bw.de>
//
// This program 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;... |
<commit_before>#include "rift/bucket.hpp"
#include "rift/cache.hpp"
#include "rift/common.hpp"
#include "rift/index.hpp"
#include "rift/io.hpp"
#include "rift/server.hpp"
using namespace ioremap;
class example_server : public thevoid::server<example_server>
{
public:
struct signature_info {
std::string key;
std:... |
<commit_before>#include <iostream>
#include <vector>
#include <map>
#include <memory>
#include <fstream>
#include <iomanip>
#include <boost/filesystem.hpp>
#include <memory.h>
extern "C" {
#include <libircclient.h>
}
struct DCCFile
{
irc_dcc_t id;
std::string filename;
unsigned long size;
unsigned lon... |
<commit_before>#include "GarrysMod/Lua/Interface.h"
#include "interface.h"
#include "vgui/VGUI.h"
#include "IGameConsole.h"
#include "CGameConsoleDialog.h"
using namespace GarrysMod;
IGameConsole *g_GameConsole = NULL;
CGameConsoleDialog *g_GameConsoleDialog = NULL;
int console_Activate(lua_State *state) {
g_Game... |
<commit_before>#include <iostream>
#include <vector>
#include <list>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <string.h>
#include <netdb.h>
#include <pwd.h>
#include <sys/socket.h>
#include <boost/algorithm/string.hpp>
using namespace std;
using n... |
<commit_before>#include <dirent.h>
#include <unistd.h>
#include "cartridge.hpp"
#include "menu.hpp"
namespace GUI {
using namespace std;
Entry::Entry(string label, function<void()> callback, int x, int y) : callback(callback), x(x), y(y)
{
setLabel(label);
}
Entry::~Entry()
{
SDL_DestroyTexture(whiteTextur... |
<commit_before>#include <ros/ros.h>
#include <pluginlib/class_loader.h>
// MoveIt!
#include <moveit/robot_model_loader/robot_model_loader.h>
#include <moveit/planning_interface/planning_interface.h>
#include <moveit/planning_pipeline/planning_pipeline.h>
#include <moveit/kinematic_constraints/utils.h>
#include <moveit... |
<commit_before>/**
* Copyright (C) 2014 Lantern
*
* 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 version.
*
* This progr... |
<commit_before>#include "note.h"
#include <QDebug>
#include <QFile>
#include <QPushButton>
#include <QDir>
Note::Note(QWidget *parent) : QDialog (parent){
setupUi(this);
timer = new QTimer(this);
timer->setInterval(1000);
timer->setSingleShot(true);
connect(textEdit, SIGNAL(textChanged()), ... |
<commit_before>//Author: Julian Yi
//Date Created: 18 July 2017
//File Description: .cpp for the pawn class.
#include <iostream>
#include <string>
#include "pieces.h"
#include "pawn.h"
using namespace std;
void Pawn::move(coord newPos)
{
setPosition(newPos);
}
coordList Pawn::calculateMoves(coord boundary) const
{... |
<commit_before>#include <chrono>
#include <iostream>
#include "logger.hpp"
#include "config.hpp"
#include "peers.hpp"
#include "utility.hpp"
Peer::Peer(std::string IP, std::string port, class User* u, bool seeding, unsigned long left, unsigned long stats, unsigned int torrentID, std::string client, std::string peerID)... |
<commit_before>/*
* Copyright (c) 2003-2014, 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 <stdlib.h>
#include <iostream>
#include <vector>
#include <unistd.h>
#include <dirent.h>
#include "omp.h"
void helpCheck(char *argv[]) {
if (argv[1] == std::string("-h") || argv[1] == std::string("--help")) {
std::cout << "\nptxv - Parallel Tar XZ by Ryan Chui (2017)\n" << std::endl;
exit(... |
<commit_before>#include <sstream>
#include <qpdf/Constants.h>
#include <qpdf/Types.h>
#include <qpdf/DLL.h>
#include <qpdf/QPDFExc.hh>
#include <qpdf/QPDFObjGen.hh>
#include <qpdf/QPDFXRefEntry.hh>
#include <qpdf/PointerHolder.hh>
#include <qpdf/Buffer.hh>
#include <qpdf/QPDFObjectHandle.hh>
#include <qpdf/QPDF.hh>
#i... |
<commit_before>// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2004-2006 Sage Weil <sage@newdream.net>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU ... |
<commit_before>/**
* @file fetcher.cpp
*
* @date Nov 21, 2012
* @author partio
*/
#include "fetcher.h"
#include "plugin_factory.h"
#include "logger_factory.h"
#include <fstream>
#include <boost/lexical_cast.hpp>
#include <boost/filesystem/operations.hpp>
#include "timer_factory.h"
#include "util.h"
#define HIMAN... |
<commit_before>#include "geotiff.h"
#include "cpl_conv.h" // for CPLMalloc()
#include "file_accessor.h"
#include "gdal_frmts.h"
#include "grid.h"
#include "lambert_conformal_grid.h"
#include "lambert_equal_area_grid.h"
#include "latitude_longitude_grid.h"
#include "logger.h"
#include "plugin_factory.h"
#include "produ... |
<commit_before>
#ifdef _WIN32
#include <Windows.h>
#else
#include <pthread.h>
#endif
#include <nstd/Signal.h>
#include <nstd/Debug.h>
Signal::Signal(bool set)
{
#ifdef _WIN32
VERIFY(handle = CreateEvent(NULL, TRUE, set ? TRUE : FALSE, NULL));
#else
ASSERT(sizeof(cdata) >= sizeof(pthread_cond_t));
ASSERT(sizeof(... |
<commit_before>/*
* This file is part of libArcus
*
* Copyright (C) 2015 Ultimaker b.v. <a.hiemstra@ultimaker.com>
*
* This program 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 version ... |
<commit_before>
/*
* Stream.cpp
* sfeMovie project
*
* Copyright (C) 2010-2015 Lucas Soltic
* lucas.soltic@orange.fr
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; eith... |
<commit_before>/*
* Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>// This file is a part of the OpenSurgSim project.
// Copyright 2013, SimQuest Solutions Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.or... |
<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>/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
... |
<commit_before>/** @example user_accelerometer_poses.cpp
* Pose detection using accelerometers.
*/
#include <ESP.h>
ASCIISerialStream stream(0, 115200, 3);
GestureRecognitionPipeline pipeline;
Calibrator calibrator;
TcpOStream oStream("localhost", 5204, 3, "l", "r", " ");
MatrixDouble uprightData, upsideDownData;
b... |
<commit_before>// Copyright (c) 2011, Cornell University
// 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 <tiramisu/tiramisu.h>
#include <vector>
#include "configure.h"
using namespace tiramisu;
int main()
{
init("densenet_block");
// -------------------------------------------------------
// Layer I
// -------------------------------------------------------
var x("x", 0, N), ... |
<commit_before>/*
Copyright (C) 2013 Samsung Electronics
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.... |
<commit_before><commit_msg>Fixing the google browser name in about:memory page.<commit_after><|endoftext|> |
<commit_before>
public class Vector {
private float[] vect;
int index;
public Vector() {
vect = new float[3];
index = 0;
}
public void setVector(float x, float y, float z) {
vect[0] = (index*(vect[0])+x)/(index+1);
vect[1] = (index*(vect[1])+y)/(index+1);
... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief サンプリング・クラス
@copyright Copyright 2017 Kunihito Hiramatsu All Right Reserved.
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=====================================================================/... |
<commit_before>#include <iostream>
#include <SDL2/SDL.h>
#include <GL/glew.h>
#include <GL/glu.h>
#include <SDL2/SDL_opengl.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include "Cube.h"
#include "Origin.h"
#include "Shader.h"
#include "ShaderManager.h"
using namespace std;
const float STEP =... |
<commit_before>/*
Copyright (C) 2003-2008 Grame
Grame Research Laboratory, 9 rue du Garet, 69001 Lyon - France
research@grame.fr
This file is provided as an example of the MusicXML Library use.
*/
#ifdef VC6
# pragma warning (disable : 4786)
#endif
#include <stdlib.h>
#include <string.h>
#ifndef WIN32
#inc... |
<commit_before>/*
Copyright (C) 2003-2008 Grame
Grame Research Laboratory, 9 rue du Garet, 69001 Lyon - France
research@grame.fr
This file is provided as an example of the MusicXML Library use.
*/
#ifdef VC6
# pragma warning (disable : 4786)
#endif
#include <string>
#include <stdlib.h>
#include <string.h>... |
<commit_before>/*
* Copyright (C) 2008, 2009 Nokia Corporation.
*
* Contact: Marius Vollmer <marius.vollmer@nokia.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation.... |
<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>#include <cap/version.h>
#include <pycap/property_tree_wrappers.h>
#include <pycap/energy_storage_device_wrappers.h>
#include <boost/python.hpp>
#include <string>
#include <memory>
#include <map>
BOOST_PYTHON_MODULE(_pycap)
{
// Deprecated stuff
boost::python::class_<pycap::ElectrochemicalImped... |
<commit_before>/*
* Copyright 2011 Matthias Fuchs
*
* 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 l... |
<commit_before>// Copyright (c) 2019 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 "net/third_party/quiche/src/quic/qbone/qbone_session_base.h"
#include <netinet/icmp6.h>
#include <netinet/ip6.h>
#include <u... |
<commit_before>/***********************************************************************
filename: CEGUIOgreTexture.cpp
created: Tue Feb 17 2009
author: Paul D Turner
*************************************************************************/
/*********************************************************... |
<commit_before>/***********************************************************************
filename: FalSlider.cpp
created: Sun Jul 3 2005
author: Paul D Turner <paul@cegui.org.uk>
*************************************************************************/
/*********************************************... |
<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>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: RegressionCalculationHelper.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: ihi $ $Date: 2007-11-23 12:07:00 $
*
* The Contents of... |
<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 "build/build_config.h"
#if defined(TOOLKIT_GTK)
#include <gtk/gtk.h>
#endif
#include "base/gfx/rect.h"
#include "base/gfx/si... |
<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 "chrome/browser/extensions/extension_apitest.h"
#include "net/base/mock_host_resolver.h"
class ExecuteScriptApiTest : public ... |
<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 "chrome/browser/sync/engine/change_reorder_buffer.h"
#include <limits>
#include <queue>
#include <set>
#include <utility... |
<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 "chrome/browser/ui/gtk/fullscreen_exit_bubble_gtk.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/ui/bro... |
<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/webui/sync_promo/sync_promo_ui.h"
#include "base/command_line.h"
#include "base/utf_string_conversions.h"
... |
<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.
//
// This file defines specific implementation of BrowserDistribution class for
// Google Chrome.
#include "chrome/installer/util... |
<commit_before>// Copyright 2014 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/utility/printing_handler_win.h"
#include "base/files/file_util.h"
#include "base/lazy_instance.h"
#include "base/path_ser... |
<commit_before>#include "omp.h"
inline
kth_cv_omp::kth_cv_omp(const std::string in_path,
const std::string in_actionNames,
const field<std::string> in_all_people,
const int in_scale_factor,
const int in_shift,
const int in_scene, //only for kth
const int in_segment_length,
const int in_dim
):path(... |
<commit_before>#include "pch.h"
#include "httprequest_service.h"
#include "service_manager.h"
#include "main/memory_stream.h"
#include "curl/curl.h"
#ifdef __EMSCRIPTEN__
extern "C"
{
extern int emscripten_async_wget3_data(const char* url, const char* requesttype, const char* param, const char* additionalHeade... |
<commit_before>#include "ledger.h"
#include "datetime.h"
#include "error.h"
#include "util.h"
#include <cstring>
namespace ledger {
#define MAX_LINE 1024
static char line[MAX_LINE + 1];
static std::string path;
static unsigned int linenum;
static inline char * get_line(std::istream& in) {
in.getline(lin... |
<commit_before>//================ Copyright (c) 2016, PG, All rights reserved. =================//
//
// Purpose: fuck windows, doesn't even support utf8 filepaths
//
// $NoKeywords: $winfile
//===============================================================================//
#if defined(_WIN32) || defined(_WIN64) || ... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>/*
This file is part of:
NoahFrame
https://github.com/ketoo/NoahGameFrame
Copyright 2009 - 2018 NoahFrame(NoahGameFrame)
File creator: lvsheng.huang
NoahFrame is open-source software and you can redistribute it and/or modify
it under the terms of... |
<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 cha... |
<commit_before>// $Id$
//
// Class to put cells into trigger patches
//
// Author: M. Verweij
#include <TClonesArray.h>
#include <TRandom3.h>
#include <TProfile.h>
#include <TH3F.h>
#include "AliAnalysisManager.h"
#include "AliLog.h"
#include "AliEMCALGeometry.h"
#include "AliEmcalTriggerPatchInfo.h"
#include "AliEm... |
<commit_before>#include "function.h"
Function::Function(
char * name,
bool isOperator,
Expr * returnT,
std::vector<Variable*> * params) {
this->name = name;
this->isOperator = isOperator;
this->returnT = returnT;
this->params = params;
}
PyObject * Function::toJson() const {
PyObject *d = Named::toJson()... |
<commit_before>#include <glog/logging.h>
#include <sstream>
#include <stdlib.h>
#include <exception>
#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <boost/foreach.hpp>
#include <boost/any.hpp>
#incl... |
<commit_before><commit_msg>INTEGRATION: CWS hsqldb3 (1.4.20); FILE MERGED 2005/03/18 16:54:21 fs 1.4.20.1: #i44127# initialize a newly created DB with OOo's system collation<commit_after><|endoftext|> |
<commit_before>#include <cstdint>
#include <cstring>
#include "antenna/driver.h"
#include "antenna_state.h"
#include "antenna_task.hpp"
#include "gsl/gsl_util"
#include "logger/logger.h"
#include "mission/base.hpp"
#include "mission/obc.hpp"
#include "system.h"
#include "time/TimePoint.h"
using namespace std::chrono_l... |
<commit_before>/*************************************************************************
*
* $RCSfile: convdicxml.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: obo $ $Date: 2004-04-27 16:06:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following li... |
<commit_before>// Scintilla source code edit control
/** @file Selection.cxx
** Classes maintaining the selection.
**/
// Copyright 2009 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
#include <stdlib.h>
#include <vector>
#includ... |
<commit_before>#include <ros/ros.h>
#include <ros/forwards.h>
#include <ros/single_subscriber_publisher.h>
#include <sensor_msgs/Image.h>
#include <image_transport/image_transport.h>
#include <visualization_msgs/Marker.h>
#include <opencv/cv.h>
#include <opencv/highgui.h>
#include <cv_bridge/cv_bridge.h>
#include <src... |
<commit_before>#include "lib/hi_res_time.h"
#include "lib/input.h"
#include "lib/text_renderer.h"
#include "lib/window_manager.h"
#include <string.h>
#include <windows.h>
inline unsigned GetRand()
{
static unsigned r = 0x12345671;
return r = ((r * 214013 + 2531011) >> 16) & 0xffff;
}
double... |
<commit_before>// ======================================================================== //
// Copyright 2009-2018 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>/**
* ClassInfo.cpp
*
* Implementation for the class info
*
* @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
* @copyright 2013 Copernica BV
*/
#include "includes.h"
/**
* Set up namespace
*/
namespace Php {
/**
* Function that is called to clean up space that is occupied by t... |
<commit_before>/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
... |
<commit_before>// Copyright 2015-2020 Elviss Strazdins. All rights reserved.
#include <cstring>
#include "WaveLoader.hpp"
#include "Bundle.hpp"
#include "../audio/PcmClip.hpp"
#include "../core/Engine.hpp"
namespace
{
constexpr std::uint16_t WAVE_FORMAT_PCM = 1;
constexpr std::uint16_t WAVE_FORMAT_IEEE_FLOAT ... |
<commit_before>#include "occaParser.hpp"
namespace occa {
namespace parserNamespace {
_qualifierInfo::_qualifierInfo() :
qualifierCount(0),
qualifiers(NULL) {}
_qualifierInfo::_qualifierInfo(const _qualifierInfo &q) :
qualifierCount(q.qualifierCount),
qualifiers(q.qualifiers) {}
... |
<commit_before>#include "stun.h"
#include "stunmsgfact.h"
#include <QDnsLookup>
#include <QHostInfo>
#include <QDateTime>
#include <QDebug>
#include <QMutex>
#include <QWaitCondition>
#include <QEventLoop>
#include <QtEndian>
const uint16_t GOOGLE_STUN_PORT = 19302;
const uint16_t STUN_PORT = 21000;
Stun::Stun():
... |
<commit_before>/**
* @file
* brief description, full stop.
*
* long description, many sentences.
*
*/
#include "angort.h"
#include "ser.h"
#include "file.h"
#include "opcodes.h"
void CodeType::set(Value *v,const struct CodeBlock *cb){
v->clr();
v->v.cb=cb;
v->t = Types::tCode;
}
void CodeType::s... |
<commit_before>/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
... |
<commit_before>// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
... |
<commit_before>/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* d... |
<commit_before>// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// ... |
<commit_before>#include <libunittest/all.hpp>
#include "transwarp.h"
#include <fstream>
COLLECTION(test_transwarp) {
std::string make_dot(const std::vector<transwarp::edge>& graph) {
auto info = [](transwarp::node n) {
return '"' + std::to_string(n.id) + "_" + n.name + '"';
};
std::ostringstream ... |
<commit_before>#include "generatorBase/robotsGeneratorPluginBase.h"
#include <qrutils/inFile.h>
#include <qrgui/mainwindow/qscintillaTextEdit.h>
#include <qrutils/nameNormalizer.h>
using namespace generatorBase;
using namespace qReal;
using namespace gui;
using namespace utils;
RobotsGeneratorPluginBase::RobotsGener... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distr... |
<commit_before>/*
* traywindow.cpp - the KDE system tray applet
* Program: kalarm
* Copyright © 2002-2006 by David Jarvie <software@astrojar.org.uk>
*
* 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 ... |
<commit_before>// Dak Washbrook - M10A
/*
// Input
The first three integers are in the range 0..100000. They represent seconds taken to solve the first, second, and third problems, respectively.
Zero seconds indicates that a problem has not been solved. The last three integers are in the range 0..100, representin... |
<commit_before>#include <igloo/igloo_alt.h>
using namespace igloo;
#include <Packet.h>
#include <AglVector3.h>
#include <AglQuaternion.h>
static const int TEST_PACKET_TYPE = 100;
Describe(a_packet)
{
It(can_have_a_sender_id_defined_in_setSenderId_method)
{
Packet packet(TEST_PACKET_TYPE);
packet.setSenderId(77... |
<commit_before>/**
* For conditions of distribution and use, see copyright notice in license.txt
*
* @file AssetTreeWidget.cpp
* @brief Tree widget showing all available assets.
*/
#include "StableHeaders.h"
#include "DebugOperatorNew.h"
#include "AssetTreeWidget.h"
#include "AddContentWindow.h"
#include "... |
<commit_before>//-----------------------------------------------------------------------bl-
//--------------------------------------------------------------------------
//
// Antioch - A Gas Dynamics Thermochemistry Library
//
// Copyright (C) 2013 The PECOS Development Team
//
// This library is free software; you ca... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.