text stringlengths 54 60.6k |
|---|
<commit_before>void padRefresh(TPad *pad,int flag=0);
void hksimple()
{
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
//*-*
//*-* This script illustrates the advantages of a TH1K histogram
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
TH1 *hpx[3];
int j;... |
<commit_before>/******************************
** Tsunagari Tile Engine **
** resourcer.cpp **
** Copyright 2011 OmegaSDG **
******************************/
#include <errno.h>
#include <stdlib.h>
#include <boost/scoped_ptr.hpp>
#include <boost/shared_ptr.hpp>
#include <Gosu/Audio.hpp>
#include <Gosu... |
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto
// 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 "main.h"
#include "db.h"
#include "txdb.h"
#include "init.h"
#i... |
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto
// 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 "main.h"
#include "db.h"
#include "txdb.h"
#include "init.h"
#i... |
<commit_before>// Copyright (c) 2015-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <scheduler.h>
//#include <random.h>
#include "util.h"
#include <reverselock.h>
#include <assert.h>
... |
<commit_before>//=======================================================================
// Copyright 2014-2015 David Simmons-Duffin.
// Distributed under the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//=============================================================... |
<commit_before><commit_msg>ftrace_controller: Fix modulo math for computing drain delay<commit_after><|endoftext|> |
<commit_before>/// @file
/// @author uentity
/// @date 19.11.2018
/// @brief Kernel config subsystem implementation
/// @copyright
/// 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 https://mozil... |
<commit_before>/// @file
/// @author uentity
/// @date 23.04.2019
/// @brief BS kernel Python subsystem impl
/// @copyright
/// 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 https://mozilla.org/... |
<commit_before>/**
* @file si.cpp
*
* @date Feb 13, 2014
* @author partio
*/
#include "si.h"
#include "plugin_factory.h"
#include "logger_factory.h"
#include <boost/lexical_cast.hpp>
#include "util.h"
#define HIMAN_AUXILIARY_INCLUDE
#include "neons.h"
#include "fetcher.h"
#include "querydata.h"
#undef HIMAN_AU... |
<commit_before><commit_msg>Display the warning if the device too tilted.<commit_after><|endoftext|> |
<commit_before>/*
* qiaffine.cpp
*
* Copyright (c) 2015 Tobias Wood.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
*/
#include <iostream>
#include ... |
<commit_before>/*
* Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde
* 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 ... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2019. All rights reserved
*/
#ifndef _Stroika_Foundation_IO_Network_URL_UniformResourceIdentification_
#define _Stroika_Foundation_IO_Network_URL_UniformResourceIdentification_ 1
/*
***********************************************************************... |
<commit_before>// Copyright 2013 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 "apps/shell_window_geometry_cache.h"
#include "chrome/browser/apps/app_browsertest_util.h"
#include "chrome/browser/extensions/ext... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/cros/login_library.h"
#include "base/message_loop.h"
#include "chrome/browser/browser_thread.h"
#inc... |
<commit_before>// Copyright (c) 2009-2012 Bitcoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <iostream>
#include <fstream>
#include "bitcoinrpc.h"
#include "ui_interface.h"
#include "base58.h"
#incl... |
<commit_before>// Copyright (c) 2009-2012 Bitcoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <iostream>
#include <fstream>
#include "init.h" // for pwalletMain
#include "bitcoinrpc.h"
#include "ui_i... |
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 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 "base58.h"
#include "init.h"
#include "main.h"
#include "net.h"... |
<commit_before>#include <libmesh/parallel_implementation.h> // max()
#include <libmesh/elem.h>
#include <libmesh/mesh.h>
#include <libmesh/mesh_triangle_holes.h>
#include <libmesh/mesh_triangle_interface.h>
#include <libmesh/point.h>
#include <libmesh/poly2tri_triangulator.h>
#include "test_comm.h"
#include "libmesh_c... |
<commit_before>#include "rust_internal.h"
#include "util/array_list.h"
// #define TRACK_ALLOCATIONS
// For debugging, keeps track of live allocations, so you can find out
// exactly what leaked.
#ifdef TRACK_ALLOCATIONS
array_list<void *> allocation_list;
#endif
rust_srv::rust_srv() :
live_allocs(0)
{
}
rust_s... |
<commit_before>#include "wasteland.hpp"
#include "character.hpp"
#include "object.hpp"
#include "utility.hpp"
#include <sstream>
#include <SFML/Window.hpp>
#include <iostream>
#include <cstdio>
Wasteland::Wasteland()
: should_quit_(false)
, player_(new Character())
, turn_(0)
, console_(false)
, ... |
<commit_before>#include "wave2data.h"
void showHelp() {
std::cout << "Arguments:" << std::endl;
std::cout << "\t-h \t" << "show help" << std::endl;
std::cout << "\t-v \t" << "show version" << std::endl;
std::cout << "\t-f <filename>\t" << "set input filename" << std::endl;
std::... |
<commit_before>// Copyright (C) 2016 Elviss Strazdins
// This file is part of the Ouzel engine.
#include "CompileConfig.h"
#include "Texture.h"
#include "Engine.h"
#include "Renderer.h"
#include "Image.h"
#include "Utils.h"
#include "MathUtils.h"
namespace ouzel
{
namespace graphics
{
Texture::Texture... |
<commit_before>/* This file is part of Zanshin Todo.
Copyright 2008-2009 Kevin Ottens <ervin@kde.org>
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 of
the License o... |
<commit_before><commit_msg>i965/vec4: Correct MUL destination hazard<commit_after><|endoftext|> |
<commit_before><commit_msg>fix issue with *Paged* tests<commit_after><|endoftext|> |
<commit_before>#include <catch.hpp>
#include <regex>
#include "test_data.hpp"
#include "libslic3r.h"
using namespace Slic3r::Test;
std::regex perimeters_regex("^G1 X[-0-9.]* Y[-0-9.]* E[-0-9.]* ; perimeter[ ]*$");
std::regex infill_regex("^G1 X[-0-9.]* Y[-0-9.]* E[-0-9.]* ; infill[ ]*$");
std::regex skirt_regex("^G1... |
<commit_before>#include <stdio.h>
#include "base/logging.h"
#include "gfx_es2/draw_buffer.h"
#include "gfx/texture_atlas.h"
#include "input/input_state.h"
#include "virtual_input.h"
TouchButton::TouchButton(const Atlas *atlas, int imageIndex, int overlayImageIndex, int button, int rotationAngle, bool mirror_h)
: atla... |
<commit_before>#ifndef DUNE_STUFF_FUNCTION_INTERFACE_HH
#define DUNE_STUFF_FUNCTION_INTERFACE_HH
#ifdef HAVE_CMAKE_CONFIG
#include "cmake_config.h"
#elif defined (HAVE_CONFIG_H)
#include <config.h>
#endif // ifdef HAVE_CMAKE_CONFIG
#include <vector>
#include <dune/common/shared_ptr.hh>
#include <dune/common/fve... |
<commit_before>// This file is part of the dune-stuff project:
// https://github.com/wwu-numerik/dune-stuff
// Copyright holders: Rene Milk, Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#include "main.hxx"
#include <dune/stuff/common/string.hh>
#include <dune/stuff/... |
<commit_before>#include <iostream>
#include <vector>
using namespace std;
/**
* Given a triangle, find the minimum path sum from top to bottom.
* Each step you may move to adjacent numbers on the row below.
*
* For example, given the following triangle
* [
* [2],
* [3,4],
* [6,5,7],
* ... |
<commit_before>#include "smoother.h"
#include "functions.h"
namespace {
const int kLookupSize = 1024;
double my_hard(double x, double a, double) {
return func_hard(x, a);
}
typedef double (*SigmoidFunc)(double, double, double);
SigmoidFunc GetFunc(Sigmoid s) {
switch (s) {
case SIGMOID_HARD: return &my_hard... |
<commit_before>#ifdef WIN32
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
#include <conio.h>
#include <winsock2.h>
typedef int socklen_t;
#else
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
#include <stdlib.h>
... |
<commit_before>#include <cstdlib>
#include <iostream>
#include <chrono>
#include <thread>
#include <string>
#include <fstream>
#include <sstream>
#include <getopt.h>
// Set sensible default values for network interface and sampling period
const int DEFAULT_ITERATIONS = 0;
const std::string DEFAULT_NETWORK_INTERFACE = ... |
<commit_before>// BrainCloudClient.cpp
// BrainCloudLib
// Copyright 2016 bitHeads, Inc. All Rights Reserved.
#include <cstring>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <vector>
#include "braincloud/BrainCloudClient.h"
#include "braincloud/internal/Device.h"
#include "braincloud/internal/J... |
<commit_before>/******************************************************************************
* Copyright 2019 Google
* 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.ap... |
<commit_before>// Copyright 2010 Anders Bakken
//
// 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 ag... |
<commit_before>// Copyright 2010 Anders Bakken
//
// 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 ag... |
<commit_before>/*
* Lines.cpp
*
* Created on: Oct 15, 2014
* Author: Carsten Uphoff (uphoff@mytum.de)
*/
#include "CoordinateSystem.hpp"
#include <cstdio>
#include <algorithm>
#include "Statistics.hpp"
namespace hpl
{
CoordinateSystem::CoordinateSystem(Registry<Drawable>& dataContainer, std::map<Drawable::I... |
<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>// @(#)root/tmva/pymva $Id$
// Authors: Omar Zapata, Lorenzo Moneta, Sergei Gleyzer 2015
/**********************************************************************************
* Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
* Package: TMVA ... |
<commit_before>#include "trainer.hpp" //trainer class
void Trainer::SetLife(float life) //setlife function
{
//write process memory with the new value
int stat = WriteProcessMemory(Trainer::memory.hProc, (LPVOID)Trainer::TRAINER_LIFE, &life, (DWORD)sizeof(life), NULL);
if (stat > 0){ //if it success it says this
... |
<commit_before>#include "typeinfo.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
using std::type_info;
type_info::~type_info() {}
bool type_info::operator==(const type_info &other) const
{
return __type_name == other.__type_name;
}
bool type_info::operator!=(const type_info &other) const
{
return __... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public... |
<commit_before>#include <stdio.h>
#include <queue>
#include <vector>
#include <utility>
#include <iostream>
#include <string>
#include <stack>
using namespace std;
stack<string> lv1;
stack<string> lv2;
stack<string> lv3;
string temp;
int templv;
int temptime=0;
int usernum;
int users=0;
int read(int now){
if(now < ... |
<commit_before>#include <stdio.h>
#include <iostream>
#include <vector>
#define OK 1
#define ERROR 0
#define LIST_INIT_SIZE 100
#define LISTINCREMENT 10
#define ElemType int
using namespace std;
int main()
{
std::vector<ElemType> v;
int a, i;
ElemType e, x;
if(v.empty()) // 判断顺序表是否创建成功
{
printf("A Sequence... |
<commit_before>/**
* Copyright 2016 BitTorrent 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.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
<commit_before>/*
* Copyright (c) 2014 Kulykov Oleh <nonamedemail@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 t... |
<commit_before>// Copyright (c) 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 <string>
#include "version.h"
// Name of client reported in the 'version' message. Report the same name
//... |
<commit_before>static char *version_id =
"@(#)Copyright (C) 2004-2017 H.Shirouzu Version.cpp ver3.2.7.39";
/* ========================================================================
Project Name : Fast/Force copy file and directory
Module Name : Version
Create : 2010-06-13(Sun)
Update : 2017-... |
<commit_before>/*
* Copyright (C) 2015 ScyllaDB
*/
/*
* This file is part of Scylla.
*
* Scylla 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 the License, or
* (at your op... |
<commit_before><commit_msg>[otbn] Inline EXPECT_EQ calls.<commit_after><|endoftext|> |
<commit_before>/*
* Copyright Andrey Semashev 2007 - 2014.
* 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)
*/
/*!
* \file static_type_dispatcher.hpp
* \author Andrey Semashev
* \date ... |
<commit_before><commit_msg>exit loop in case i2c device not responding<commit_after><|endoftext|> |
<commit_before>#include "CppRandom.hpp"
namespace Dissent {
namespace Crypto {
CppRandom::CppRandom(const QByteArray &seed, uint index)
{
if(seed.isEmpty()) {
_rng.reset(new CryptoPP::AutoSeededX917RNG<CryptoPP::AES>());
return;
}
QByteArray seed_tmp(seed);
seed_tmp.resize(CryptoPP::AE... |
<commit_before>// Scintilla source code edit control
/** @file DocumentAccessor.cxx
** Rapid easy access to contents of a Scintilla.
**/
// Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
#include <stdlib.h>
#inc... |
<commit_before>#include "CompCamera.h"
#include "CompMesh.h"
#include "CompTransform.h"
#include "MathGeoLib.h"
#include "Application.h"
#include "Scene.h"
#include "ModuleFS.h"
#include "ModuleRenderer3D.h"
#include "GameObject.h"
#include "SDL\include\SDL_opengl.h"
#include <math.h>
CompCamera::CompCamera(Comp_Type... |
<commit_before>#include "terrainer.hpp"
#include "helpers.hpp"
#include "node.hpp"
#include "parametric_shapes.cpp"
#include "config.hpp"
#include "external/glad/glad.h"
#include "core/Bonobo.h"
#include "core/FPSCamera.h"
#include "core/GLStateInspection.h"
#include "core/GLStateInspectionView.h"
#include "core/Input... |
<commit_before>#include "stdafx.h"
#include "EsriClientThread.h"
#include "EsriHandler.h"
#include "EsriInternalCommands.h"
#include "strOps.h"
#include <algorithm>
#include <string.h>
namespace libESRI
{
EsriClientThread::EsriClientThread(toni::TcpClient* tcpClient, EsriHandler* handler)
: m_tcpClient(tcpClient... |
<commit_before>// ImageControl.hh for FbTk - Fluxbox Toolkit
// Copyright (c) 2001 - 2003 Henrik Kinnunen (fluxbox at users.sourceforge.net)
//
// from Image.hh for Blackbox - an X11 Window manager
// Copyright (c) 1997 - 2000 Brad Hughes (bhughes at tcac.net)
//
// Permission is hereby granted, free of charge, to any ... |
<commit_before><commit_msg>GSvar: fixed IGV timeout when IGV is starting up (sending 'genome' command before 'new' command)<commit_after><|endoftext|> |
<commit_before>/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (ivan.frade@nokia.com)
**
** This file is part of the test suite of the QtSparql module (not yet part... |
<commit_before><commit_msg>[common.configtree] fix old name<commit_after><|endoftext|> |
<commit_before><commit_msg>[common] fix underlying type workaround >_><commit_after><|endoftext|> |
<commit_before><commit_msg>Update String<commit_after><|endoftext|> |
<commit_before><commit_msg>Remove it, it breaks double click to select freebusy url<commit_after><|endoftext|> |
<commit_before>//===-- ValueSymbolTable.cpp - Implement the ValueSymbolTable class -------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group. It is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
/... |
<commit_before>#ifndef INCLUDE_AL_AUDIODATA_IO_HPP
#define INCLUDE_AL_AUDIODATA_IO_HPP
/* Allocore --
Multimedia / virtual environment application class library
Copyright (C) 2009. AlloSphere Research Group, Media Arts & Technology, UCSB.
Copyright (C) 2012. The Regents of the University of California.
All rights... |
<commit_before>// This file is part of the dune-stuff project:
// https://github.com/wwu-numerik/dune-stuff/
// Copyright holders: Rene Milk, Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_STUFF_COMMON_CRTP_HH
#define DUNE_STUFF_COMMON_CRTP_HH
#include <a... |
<commit_before>// This file is part of the dune-stuff project:
// https://users.dune-project.org/projects/dune-stuff
// Copyright holders: Rene Milk, Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
//
// Contributors: Sven Kaulmann
#ifndef DUNE_STUFF_COMMON_MATH_HH
#def... |
<commit_before>// This file is part of the dune-stuff project:
// https://github.com/wwu-numerik/dune-stuff
// Copyright holders: Rene Milk, Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_STUFF_GRID_WALKER_HH
#define DUNE_STUFF_GRID_WALKER_HH
#include <ve... |
<commit_before>#include "read_fru_data.hpp"
#include "fruread.hpp"
#include "types.hpp"
#include "utils.hpp"
#include <host-ipmid/ipmid-api.h>
#include <algorithm>
#include <map>
#include <phosphor-logging/elog-errors.hpp>
#include <sdbusplus/message/types.hpp>
#include <xyz/openbmc_project/Common/error.hpp>
extern... |
<commit_before>#ifndef __REGEXP__REGEXP__HPP__
#define __REGEXP__REGEXP__HPP__
#include <string>
// ideally SRegExp<"ahoj|cau$">::smatch
namespace SRegExp {
template <char c> struct Chr {
static inline bool smatch(const char * str, size_t & pos, size_t, size_t) {
if (*str == c) {
pos++;
return true;
} els... |
<commit_before>#include <stdio.h>
#include <stdint.h>
#include <assert.h>
#include <stdlib.h>
#include <map>
#include <vector>
#include <string>
#include <iostream>
using std::string;
using std::map;
using std::vector;
typedef uint32_t Id;
struct Packet {
Id id, parent;
uint8_t event, type, bits, width, val... |
<commit_before>#include "PageManager.hpp"
#include <sys/mman.h>
#include <cassert>
#include <memory.h>
#include <iostream>
namespace tell {
namespace store {
PageManager::PageManager(size_t size)
: mData(mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, 0, 0)), mSize(size), mPages(
size / TE... |
<commit_before>
// @(#)root/proof:$Id$
// Author: G. Ganis Nov 2006
/*************************************************************************
* Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>/** Copyright (C) 2016, 2017 European Spallation Source ERIC */
#include <algorithm>
#include <arpa/inet.h>
#include <cassert>
#include <cinttypes>
#include <cstring>
#include <tools/ReaderPcap.h>
#include <netinet/ip.h>
#include <netinet/udp.h>
#include <fmt/format.h>
// GCOVR_EXCL_START
// Protocol ... |
<commit_before>/*
Lempel-Ziv-Welch (encoder)
lossless data compression algorithm, dictionary coder
The main function takes as argument
arg1: input file name, this shall be an ASCII-only textfile.
arg2: [optional] file name of the input alphabet.
It then writes the following files:
fout1: output file na... |
<commit_before>// *********************************************************
// Filename: Question.cpp
// Description:
//
// Author: Eliasar Gandara
// Created On:
// Last Modified:
// *********************************************************
#include "Question.h"
#include <cstdlib>
#include <ctime>
#include <fstream>
... |
<commit_before>// FlangerApp.cpp
// e.moon 16jun99
#include "MediaNodeControlApp.h"
#include <cstdio>
#include <cstring>
#include <cstdlib>
const char* const g_pAppSignature = "application/x-vnd.moon-Flanger.media_addon";
int main(int argc, char** argv) {
if(argc < 2 || strstr(argv[1], "node=") != argv[1]) {
fpr... |
<commit_before>// This file is part of BlueSky
//
// BlueSky 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 3
// of the License, or (at your option) any later version.
//
// BlueSky ... |
<commit_before>#include "consoleui.h"
using namespace std;
ConsoleUI::ConsoleUI()
{
}
void ConsoleUI::run()
{
cout << "This is a test\n";
}
<commit_msg>Added text output in ConsoleUI<commit_after>#include "consoleui.h"
using namespace std;
ConsoleUI::ConsoleUI()
{
}
void ConsoleUI::run()
{
cout << "Choose... |
<commit_before>/**
* @file IKParameters.cpp
*
* @author <a href="mailto:xu@informatik.hu-berlin.de">Xu, Yuan</a>
* Implement of parameters for IK motion
*/
#include "IKParameters.h"
IKParameters::IKParameters()
:ParameterList("IKParameters")
{
PARAMETER_REGISTER(footOffsetY) = 0;
// stand parameter
PARAMETE... |
<commit_before>#include <iostream>
#include <string>
#include "consoleui.h"
#include "scientist.h"
#include <iomanip>
using namespace std;
ConsoleUI::ConsoleUI()
{
_service.getScientists(); // gets information from file so it's used from the beginning.
}
// Should not contain logic for individual commands, tha... |
<commit_before>#include "linedetector.h"
#include <opencv2/video/video.hpp>
#include <opencv2/opencv.hpp>
#include <sensor_msgs/image_encodings.h>
#include <pcl_ros/point_cloud.h>
#include <queue>
#include <chrono>
#include <ctime>
using namespace std;
using namespace cv;
using namespace pcl;
cv_bridge::CvImagePtr c... |
<commit_before>#include "linedetector.h"
#include <opencv2/video/video.hpp>
#include <opencv2/opencv.hpp>
#include <sensor_msgs/image_encodings.h>
#include <pcl_ros/point_cloud.h>
#include <queue>
#include <chrono>
#include <ctime>
using namespace std;
using namespace cv;
using namespace pcl;
cv_bridge::CvImagePtr c... |
<commit_before>/*!
* \file static_resource.hpp
* \brief file static_resource.hpp
*
* Copyright 2016 by Intel.
*
* Contact: kevin.rogovin@intel.com
*
* 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 ob... |
<commit_before><commit_msg>Create 095_UniqueBinarySearchTrees.cc<commit_after><|endoftext|> |
<commit_before>extern "C"
{
#include "libavformat/avformat.h"//ͷļֻڱʱ⣬ҵ
}
#include <iostream>
using namespace std;
//ӿļҵĶ
#pragma comment(lib,"avformat.lib")
#pragma comment(lib, "avutil.lib")
int XError(int errNum){
char buf[1024] = { 0 };
av_strerror(errNum, buf, sizeof(buf));
cout << buf << endl;
return -1;
}... |
<commit_before>/*
* Copyright 2010, 2011 Esrille 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.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
<commit_before>/*
* Copyright 2011 Esrille 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.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
<commit_before>#include "info.hpp"
namespace z
{
namespace file
{
info::info(const zpath& path) noexcept
{
does_exist = _stat((char*)path.cstring(), &fileStat);
}
bool info::exists() const noexcept
{
return does_exist;
}
time_t info::accessed() const noexcept
{
return does_exist ? fileStat... |
<commit_before>#ifndef pRNG_impl
#define pRNG_impl
namespace pRNG{
template<class result_type>
struct pRNG{
void*data_region;
typedef result_type(*function_type)(void*);
function_type iterate_function;
pRNG(void*data_region,function_type iterate_function):
data_region(data_region),
iterate_function(iter... |
<commit_before><commit_msg>aim on catch<commit_after><|endoftext|> |
<commit_before>#include <igvc/SerialPort.h>
#include <igvc_msgs/velocity_pair.h>
#include <std_msgs/Bool.h>
#include <ros/publisher.h>
#include <ros/ros.h>
#include <ros/subscriber.h>
#include <std_msgs/Float64.h>
#include <string>
#include <vector>
#include <igvc/StringUtils.hpp>
#include <iomanip>
#include <sstream>
... |
<commit_before><commit_msg>Whitespace change to trigger the bots.<commit_after><|endoftext|> |
<commit_before>#ifndef TEXTURE2D_HPP
#define TEXTURE2D_HPP
#include <iostream>
#include <memory>
#include <VBE/graphics/Texture.hpp>
///
/// \brief Texture2D represents a GL 2D Texture
///
class Texture2D : public Texture {
public:
///
/// \brief Loads a new texture from a stream.
///
/// The input stream m... |
<commit_before>#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <math.h>
#include <GL/glut.h>
#define GL_GLEXT_PROTOTYPES
#define PI 3.141592654
#define SHARPNESS_FACTOR 500
double floor_x = -30, world_y = 0, wing_z = 0, z_factor = 100.0, r_step = 5.0, scale = 1.0, world_y_trans = 0.0 , wing_speed ... |
<commit_before><commit_msg>Ignore chat messages, because they should be handled differently<commit_after><|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.