text stringlengths 54 60.6k |
|---|
<commit_before><?hh //strict
/**
* This file is part of hhpack\performance.
*
* (c) Noritaka Horio <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace hhpack\performance\result;
use hhpack\performance\Watch... |
<commit_before>/* Copyright (C) 2016-2017 INRA
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merg... |
<commit_before>#include <iostream>
#include "secs/container.h"
using std::cout;
using std::endl;
int main() {
cout << "Hello world!" << endl;
return 0;
}<commit_msg>Adds simple benchmark<commit_after>#include <iostream>
#include <chrono>
#include "secs/container.h"
namespace chrono = std::chrono;
using std::c... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>//#pragma warning(disable 4996)
#include <GL/glut.h>
#include <stdio.h>
#include <stdlib.h>
GLuint LoadTexture(const char * filename)
{
GLuint texture;
unsigned int width, height;
unsigned char * data;
unsigned char header[54]; // Each BMP file begins by a 54-bytes header
unsigned int dataPos; ... |
<commit_before>#include <iostream>
#include <unistd.h>
#include "timer.hpp"
int main() {
high_resolution_timer timer;
usleep(1000 * 1000);
high_resolution_timer::duration dur = timer.pulse();
std::cerr << std::chrono::duration_cast<std::chrono::microseconds>(dur).count() << std::endl;
return 0;
}
<commit_msg>Wi... |
<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 "webkit/glue/plugins/plugin_lib.h"
#include <dlfcn.h>
#include <elf.h>
#include "base/string_util.h"
#include "base/sys_stri... |
<commit_before>#include "stdafx.h"
#include "RadiusDropLoot.h"
#include "../../Common/ETypes.h"
#include "../../Common/Helpers/RapidHelper.hpp"
#include <ATF/global.hpp>
namespace GameServer
{
namespace Addon
{
bool CRadiusDropLoot::m_bActivated = false;
bool CRadiusDropLoot::m_bOnlyPitboss =... |
<commit_before>#include <thread>
#include "TcpClient.h"
#include "platform/CCFileUtils.h"
#include "base/CCDirector.h"
#include "base/CCScheduler.h"
#include "2d/CCLabel.h"
#include "HelloWorldScene.h"
#include "../../PacketType.h"
#ifdef _WIN32
#pragma comment(lib,"ws2_32.lib")
#define sleep(x) Sleep(x)
... |
<commit_before><commit_msg>coverity#705222 Missing break in switch<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* $RCSfile: presvish.cxx,v $
*
* $Revision: 1.17 $
*
* last change: $Author: af $ $Date: 2004-08-02 16:55:04 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>#include "ros/ros.h"
#include "geometry_msgs/Twist.h"
#include "sensor_msgs/LaserScan.h"
#include <nav_msgs/Odometry.h>
#include "std_msgs/String.h"
#include "se306Project/SheepMoveMsg.h"
#include <cstdlib> // Needed for rand()
#include <ctime> // Needed to seed random number generator with a time valu... |
<commit_before>#pragma once
#include "acmacs-base/sfinae.hh"
#include "acmacs-base/fmt.hh"
// ----------------------------------------------------------------------
#pragma GCC diagnostic push
#ifdef __clang__
#pragma GCC diagnostic ignored "-Wold-style-cast"
#pragma GCC diagnostic ignored "-Wzero-as-null-pointer-co... |
<commit_before>#include <Halide.h>
#include <stdio.h>
#include <algorithm>
#include <stdlib.h>
#include <iostream>
using namespace Halide;
Var x, y, c;
double square(double x) {
return x * x;
}
template <typename T>
void test_function(Expr e, Image<T> &cpu_result, Image<T> &gpu_result) {
Func cpu, gpu;
... |
<commit_before>
#include <cstdlib>
#include <iostream>
#include "gl-batch-context/Context.hpp"
int main(int /*argc*/, char** /*argv*/)
{
CPM_GL_CONTEXT_NS::Context* glContext =
CPM_GL_CONTEXT_NS::Context::createBatchContext(
640, 480, 32, 32, 0, false, false);
// Add a few quick OpenGL calls her... |
<commit_before>//
// State.cpp
// Clock Signal
//
// Created by Thomas Harte on 14/05/2020.
// Copyright © 2020 Thomas Harte. All rights reserved.
//
#include "State.hpp"
#include <cassert>
using namespace CPU::MC68000;
State::State(const ProcessorBase &src): State() {
// Registers.
for(int c = 0; c < 7; ++c)... |
<commit_before>#include <gtest/gtest.h>
#include <iostream>
#include <fstream>
#include <istream>
#include <exception>
#include <stdexcept>
#include "stan/gm/ast_def.cpp"
#include "stan/gm/parser.hpp"
#include <stan/gm/generator.hpp>
#include <stan/gm/grammars/program_grammar_def.hpp>
#include <stan/gm/grammars/whites... |
<commit_before>#include <iostream>
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE Main
#include <boost/test/unit_test.hpp>
#include "protocolparser.h"
using namespace Akumuli;
BOOST_AUTO_TEST_CASE(Test_protocol_parse_1) {
BOOST_FAIL("Implement tests!");
}
<commit_msg>Fix build<commit_after>#include <ios... |
<commit_before>// - Tested
#define MSOFACTIONS
#define CRB_CONVOYS
#define RMM_ENEMYPOP
#define CRB_TERRORISTS
#define RMM_ZORA
// - To Test
#define WICT_ENEMYPOP
#define BIS_WARFARE<commit_msg>- Warfare module disabled by default<commit_after>// - Tested
#define MSOFACTIONS
#define CRB_CONVOYS
#define RMM... |
<commit_before>#include <algorithm>
#include "Game_state_machine.h"
#include "utils.h"
void Game_state_machine::push_state(Game_state* state) {
m_states.push_back(state);
m_states.back()->on_enter();
LOG << "PSH states:"; std::for_each(m_states.begin(), m_states.end(), [](Game_state* gs) {LOG << gs->get_state_id()... |
<commit_before>/*
* Copyright 2009-2020 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE... |
<commit_before>//
// $Id: fcgio.cpp,v 1.13 2002/02/24 20:12:22 robs Exp $
//
// Allows you communicate with FastCGI streams using C++ iostreams
//
// ORIGINAL AUTHOR: George Feinberg
// REWRITTEN BY: Michael Richards 06/20/1999
// REWRITTEN AGAIN BY: Michael Shell 02/23/2000
// REWRITTEN AGAIN BY: Rob... |
<commit_before>#include "catch.hpp"
#include <iostream>
#include <exception> // std::bad_function_call, std::runtime_error
#include <thread> // std::thread, std::this_thread::yield
#include <mutex> // std::mutex, std::unique_lock
#include <condition_variable> // std::condition_variable
#include <functional> // std::fu... |
<commit_before>// @(#)root/proof:$Id$
// Author: G. Ganis, Oct 2011
/*************************************************************************
* Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>//===-- StackProtector.cpp - Stack Protector Insertion --------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include "threadpool.h"
ThreadPool::ThreadPool(size_t size)
{
for (auto i=0; i<size; ++i) {
workers.emplace_back([this] {
for (;;) {
std::unique_lock<std::mutex> lock(this->queue_mutex);
while (!this->m_stop && this->tasks.empty())
... |
<commit_before>/*
Copyright (c) by respective owners including Yahoo!, Microsoft, and
individual contributors. All rights reserved. Released under a BSD (revised)
license as described in the file LICENSE.
*/
#include <fstream>
#include <float.h>
#ifdef _WIN32
#include <winsock2.h>
#else
#include <netdb.h>
#endif
#... |
<commit_before>#pragma once
#ifndef BinaryTree_disabled
#ifndef BinaryTree_defined
// ReSharper disable CppUnusedIncludeDirective
#include <memory>
#include <functional>
#include <stack>
namespace lib {
template <typename T> using unidef_ptr = std::unique_ptr<T, std::default_delete<T>>;
}
/**
* \brief 遍历方式
*/
e... |
<commit_before>/*
* Copyright (c) 2001-2003 Stephen Williams ([email protected])
*
* 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 (c) 2011-2012, Zeex
// 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 list ... |
<commit_before>#include <QSettings>
#include "QGCSettingsWidget.h"
#include "MainWindow.h"
#include "ui_QGCSettingsWidget.h"
#include "LinkManager.h"
#include "MAVLinkProtocol.h"
#include "MAVLinkSettingsWidget.h"
#include "GAudioOutput.h"
#include "ArduPilotMegaMAV.h"
#include <QFileDialog>
QGCSettingsWidget::QGCS... |
<commit_before>/*
* this file is part of the oxygen gtk engine
* Copyright (c) 2010 Hugo Pereira Da Costa <[email protected]>
* Copyright (c) 2010 Ruslan Kabatsayev <[email protected]>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General... |
<commit_before>#include "hibike_message.h"
#define IN_PIN 1
#define CONTROLLER_ID 0 // arbitrarily chosen for now
uint32_t data;
uint32_t subscriptionDelay = 0;
HibikeMessage* m;
void setup() {
Serial.begin(115200);
pinMode(IN_PIN, INPUT);
}
void loop() {
data = digitalRead(IN_PIN);
uint64_t currTime = ... |
<commit_before>//===-- WindowsResource.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>// TasksFrame.cpp : implmentation of the CTasksFrame class
//
/////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "resource.h"
#include "AboutDlg.h"
#include "ConnectionDlg.h"
#include "TasksView.h"
#include "TasksFrame.h"
#include <jira/jira.hpp>... |
<commit_before>#include "nanocv/tensor.h"
#include "nanocv/string.h"
#include "nanocv/tabulator.h"
#include "nanocv/measure.hpp"
#include "nanocv/math/conv2d.hpp"
#include <iostream>
using namespace ncv;
template
<
typename top,
typename tmatrix
>
static void test_cpu(tabulator_t::row_t& row, top op, ... |
<commit_before>//===-- GCSE.cpp - SSA based Global Common Subexpr Elimination ------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//... |
<commit_before>//===-- LICM.cpp - Loop Invariant Code Motion Pass ------------------------===//
//
// This pass is a simple loop invariant code motion pass.
//
//===----------------------------------------------------------------------===//
#include "llvm/Transforms/Scalar.h"
#include "llvm/Transforms/Utils/Local.h"
#... |
<commit_before>//===-- LCSSA.cpp - Convert loops into loop-closed SSA form ---------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Owen Anderson and is distributed under the
// University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===-----... |
<commit_before>//===--- VMCore/PrintModulePass.cpp - Module/Function Printer -------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//===-- TypeSymbolTable.cpp - Implement the TypeSymbolTable class ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/* <x0/plugins/proxy.cpp>
*
* This file is part of the x0 web server project and is released under LGPL-3.
* http://www.xzero.ws/
*
* (c) 2009-2010 Christian Parpart <[email protected]>
*/
#include <x0/http/HttpPlugin.h>
#include <x0/http/HttpServer.h>
#include <x0/http/HttpRequest.h>
#include <x0... |
<commit_before>// Copyright 2005-2016 The Mumble Developers. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file at the root of the
// Mumble source tree or at <https://www.mumble.info/LICENSE>.
#include "../mumble_plugin_win32_x86.h"
static int ... |
<commit_before>/* <x0/plugins/vhost.cpp>
*
* This file is part of the x0 web server project and is released under LGPL-3.
* http://www.xzero.ws/
*
* (c) 2011 Christian Parpart <[email protected]>
*
* --------------------------------------------------------------------------
*
* plugin type: hostname resolver
... |
<commit_before>/**
* \file RMF/paths.cpp
* \brief Handle read/write of Model data from/to files.
*
* Copyright 2007-2012 IMP Inventors. All rights reserved.
*
*/
#include "avro_schemas.h"
#include "MultipleAvroFileWriter.h"
#include <RMF/internal/paths.h>
#include <RMF/decorators.h>
#include <avro/Compiler.hh... |
<commit_before>
#include "backend/bridge/dml/expr/pg_func_map.h"
namespace peloton {
namespace bridge {
/**
* @brief Mapping PG Function Id to Peloton Function Meta Info.
*/
std::unordered_map<Oid, const PltFuncMetaInfo> kPgFuncMap({
//====--------------------------------
// Relational comparison
//==... |
<commit_before>#include <widget/OpenGlWidget.hpp>
#include <app.hpp>
namespace rack {
namespace widget {
void OpenGlWidget::step() {
// Render every frame
dirty = true;
}
void OpenGlWidget::drawFramebuffer() {
glViewport(0.0, 0.0, fbSize.x, fbSize.y);
glClearColor(0.0, 0.0, 0.0, 1.0);
glClear(GL_COLOR_BUFFER... |
<commit_before>//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
//
// File: ObjectNative.cpp
//
//
// Purpose: Native methods on System.Object
//
//
#include "common.h"
#include "objectnative.h"
#include "exce... |
<commit_before>/*
* LoadHandler.cpp
*
* Created on: 29.05.2017
* Author: Alexander
*/
#include "persistence/base/LoadHandler.hpp"
#ifdef NDEBUG
#define MSG_DEBUG(a) /**/
#else
#define MSG_DEBUG(a) std::cout << "| DEBUG | " << a << std::endl
#endif
#define MSG_WARNING(a) std::cout << "| WARNING | "<< a ... |
<commit_before>/* Copyright 2022 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... |
<commit_before>/* RTcmix - Copyright (C) 2005 The RTcmix Development Team
See ``AUTHORS'' for a list of contributors. See ``LICENSE'' for
the license to this software and for a DISCLAIMER OF ALL WARRANTIES.
*/
#include <Offt.h>
#ifndef FFTW
#include <FFTReal.h>
#endif
Offt::Offt(int fftsize, unsigned int flag... |
<commit_before>#include "lexer.h"
#include <node.h>
#include <iostream>
#include <stdio.h>
#include <fstream>
#include <string>
#include <string.h>
/* Type Definitions */
#define COMMENTTYPE 0x01
#define KEYTYPE 0x02
#define STRINGTYPE 0x03
/* State definitions */
#define NONESTATE 0x01
#define COMMENTSTATE 0x02
#def... |
<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 "gfx/font.h"
#include <windows.h>
#include <math.h>
#include <algorithm>
#include "base/logging.h"
#include "base/string_ut... |
<commit_before>#include "qgeotilefetchergooglemaps.h"
#include "qgeomapreplygooglemaps.h"
#include "qgeotiledmapgooglemaps.h"
#include "qgeotiledmappingmanagerenginegooglemaps.h"
#include <QtLocation/private/qgeotilespec_p.h>
#include <QDebug>
#include <QSize>
#include <QDir>
#include <QUrl>
#include <QUrlQu... |
<commit_before>/*
* Copyright 2013 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 "SkCanvas.h"
#include "SkGradientShader.h"
#include "SkRandom.h"
static SkShader* make_shader(SkScalar w, SkScalar h) {
const SkCo... |
<commit_before>/*
* Copyright 2013 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 "SkCanvas.h"
#include "SkGradientShader.h"
#include "SkRandom.h"
static SkShader* make_shader(SkScalar w, SkScalar h) {
const SkCo... |
<commit_before><commit_msg>Check the bookmark bar state when updating the title of the page.<commit_after><|endoftext|> |
<commit_before><commit_msg>Refine where keypresses are sent with window focus<commit_after><|endoftext|> |
<commit_before>#ifndef STAN_MATH_PRIM_FUN_FILL_HPP
#define STAN_MATH_PRIM_FUN_FILL_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <vector>
namespace stan {
namespace math {
/**
* Fill the specified container with the specified value.
*
* The specified matrix is filled by e... |
<commit_before>
#include <Alert.h>
#include <Box.h>
#include <Button.h>
#include <Font.h>
#include <ScrollView.h>
#include <StatusBar.h>
#include <StringView.h>
#include <TextView.h>
#include "CLVEasyItem.h"
#include "ColumnListView.h"
#include "globals.h"
#include "smsinboxview.h"
#include <stdio.h>
const uint32 SMS... |
<commit_before>/*
* Copyright (c) 2003-2015 Rony Shapiro <[email protected]>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php... |
<commit_before>/*
* SessionTutorial.cpp
*
* Copyright (C) 2009-19 by RStudio, PBC
*
* 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 Genera... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtQuick.Dialogs module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial Li... |
<commit_before>// //////////////////////////////////////////////////////////////////////
// Import section
// //////////////////////////////////////////////////////////////////////
// STL
#include <cassert>
#include <sstream>
// StdAir
#include <stdair/basic/BasConst_General.hpp>
#include <stdair/basic/BasConst_Invento... |
<commit_before>/*
* Copyright (C) 2015 Cloudius Systems, Ltd.
*/
/*
* 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
... |
<commit_before>// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "util/coding.h"
namespace leveldb {
// TED::如果系统本身就是little endian,直接用memcpy.
... |
<commit_before>// (C) 2014 Arek Olek
#pragma once
#include <algorithm>
#include <functional>
#include <vector>
#include <boost/iterator/counting_iterator.hpp>
#include "range.hpp"
auto range_iterator = boost::make_counting_iterator<int>;
template <class Input, class Output>
void copy_edges(const Input& in, Output... |
<commit_before>Int_t loadlibs ()
{
// Macro which loads the libraries needed for simulation and reconstruction
// Possible usage: In a Root session (no AliRoot) one does
// root [0] .x loadlibs.C
// root [1] gAlice = new AliRun("gAlice","test")
// root [2] AliSimulation sim
// root [3] sim.Run()... |
<commit_before>void loadlibs ()
{
gSystem->Load("libPhysics");
gSystem->Load("libMinuit");
// Uncomment the following line for macosx
// Waiting for a better solution
// gSystem->Load("libg2c_sh");
gSystem->Load("libmicrocern");
gSystem->Load("libpdf");
gSystem->Load("libpythia6");
gSystem->Load("l... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: hlmarkwn.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2005-09-08 23:24:29 $
*
* The Contents of this file are made ... |
<commit_before>
#include "jnif.h"
static jmethodID m_eobject__testTuple;
static jclass etuple_class;
static jmethodID m_etuple__make;
static jmethodID m_etuple__set;
static jmethodID m_etuple__elm;
static jmethodID m_etuple__arity;
static jmethodID m_object__toString;
extern int enif_is_tuple (ErlNifEnv* ee, ERL_... |
<commit_before>#include "cross_mwm_router.hpp"
#include "cross_mwm_road_graph.hpp"
#include "base/astar_algorithm.hpp"
#include "base/timer.hpp"
namespace routing
{
namespace
{
/// Function to run AStar Algorithm from the base.
IRouter::ResultCode CalculateRoute(BorderCross const & startPos, BorderCross const & final... |
<commit_before>/*************************************************************************
*
* $RCSfile: rschash.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: obo $ $Date: 2005-01-03 17:31:09 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*
* This file is part of the Camera Streaming Daemon
*
* Copyright (C) 2017 Intel Corporation. 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
*
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: docfunc.hxx,v $
*
* $Revision: 1.13 $
*
* last change: $Author: rt $ $Date: 2006-05-05 09:44:58 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* $RCSfile: tabcont.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: obo $ $Date: 2004-06-04 11:41:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*************************************************************************
*
* $RCSfile: warnbox.hxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: dr $ $Date: 2002-07-11 10:52:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>/*************************************************************************/
/* texture_button.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>/*
* editdlg.cpp - dialogue to create or modify an alarm message
* Program: kalarm
* (C) 2001 by David Jarvie [email protected]
*
* 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 Fre... |
<commit_before>/*
main.cpp
This file is part of Kleopatra, the KDE keymanager
Copyright (c) 2001,2002,2004 Klar�vdalens Datakonsult AB
Kleopatra 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 Founda... |
<commit_before>/* -*- c++ -*-
callback.cpp
This file is used by KMail's plugin interface.
Copyright (c) 2004 Bo Thorsen <[email protected]>
KMail 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 Founda... |
<commit_before>#include "bytebuffer.h"
#include "allocators.h"
#include <string.h>
#include <algorithm>
ByteBuffer::ByteBuffer()
{
Construct(NULL, 1024);
}
ByteBuffer::ByteBuffer(size_t size)
{
Construct(NULL, size);
}
ByteBuffer::ByteBuffer(const uint8_t* bytes, size_t len)
{
Construct(bytes, len);
}
... |
<commit_before>#include "boost_defs.hpp"
#include "hid_manager.hpp"
#include "hid_observer.hpp"
#include <boost/optional/optional_io.hpp>
namespace {
class dump_hid_value final {
public:
dump_hid_value(const dump_hid_value&) = delete;
dump_hid_value(void) {
queue_ = std::make_unique<krbn::thread_utility::que... |
<commit_before>// Module: LOG4CPLUS
// File: loggingserver.cxx
// Created: 5/2003
// Author: Tad E. Smith
//
//
// Copyright 2003-2013 Tad E. Smith
//
// 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 t... |
<commit_before>#ifndef MATCHES_DHT_HPP
#define MATCHES_DHT_HPP
#include <Grappa.hpp>
#include <GlobalAllocator.hpp>
#include <ParallelLoop.hpp>
#include <BufferVector.hpp>
#include <list>
// for naming the types scoped in MatchesDHT
#define MDHT_TYPE(type) typename MatchesDHT<K,V,HF>::type
// Hash table for joins... |
<commit_before>/**
* \file summed_table.cpp
*
* Summed area table using overlapped computation
*/
#include <iostream>
#include <Halide.h>
#include "recfilter.h"
#include "timing.h"
using namespace Halide;
using std::map;
using std::vector;
using std::string;
using std::cerr;
using std::cout;
using std::endl;
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: SdUnoPresView.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: obo $ $Date: 2006-03-21 17:34:45 $
*
* The Contents of this file are... |
<commit_before>#ifdef WIN32
#define _WIN32_WINNT 0x0500
#include <windows.h>
#include <stdio.h>
#include <tchar.h>
#include <fcntl.h>
#include <io.h>
#define UNUSED 0xDEADBEEF
#define LOG_DAEMON UNUSED
void syslog(int pri, const TCHAR * msg);
#else
#include <unistd.h> /* fork(), execl(), readlink(), chd... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow)
{
// show MainWindow (GUI)
ui->setupUi(this);
// display message in GUI
ui->textEdit->insertHtml("Scanning for serial ports... ");
// get a list of available se... |
<commit_before>#include <QtNetwork/QNetworkReply>
#include <QtWidgets>
#include <QtCore>
#include <libethereum/Dagger.h>
#include <libethereum/Client.h>
#include "MainWin.h"
#include "ui_Main.h"
using namespace std;
using namespace eth;
static void initUnits(QComboBox* _b)
{
for (int n = units().size() - 1; n >= 0; -... |
<commit_before>#pragma once
#include <raindance/Core/Headers.hh>
#include <raindance/Core/Context.hh>
#include <raindance/Core/Interface/WindowManager.hh>
class Raindance
{
public:
Raindance(int argc, char** argv)
{
GLFW::create(argc, argv);
m_Context = new Context();
}
virtual ~Raindance()
{
GLFW::destr... |
<commit_before>#include <stdio.h>
#include <ctype.h>
#include <list>
#include <iostream>
#include <string>
#include <algorithm>
#include <functional>
#include <RhIO.hpp>
#include "Stream.h"
#include "Shell.h"
#include "utils.h"
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
namespace RhIO
{
Shell::She... |
<commit_before>#define _JNI_IMPLEMENTATION_ 1
#include <jni.h>
#include <dlfcn.h>
#include <assert.h>
#include "KrapsRDD.h"
typedef KrapsIterator* (*iterator_constructor_t)(JNIEnv* env);
struct KrapsRDD
{
void* dll;
KrapsIterator* iterator;
void* next() {
return iterator->next();
}
Kra... |
<commit_before>/*************************************************************************
*
* $RCSfile: qualiname.hxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: np $ $Date: 2002-11-01 17:10:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>
/*
* BSD 3-Clause License
*
* Copyright (c) 2018, mtezych
* 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 copyri... |
<commit_before>/*******************************************************************************************
* This file is created to implement the class Duck for our game called PapraGame. *
* This file will allow us to have all the method to control the duck for the game. *
* This file are under l... |
<commit_before>// Copyright 2014 Alessio Sclocco <[email protected]>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
<commit_before>#pragma once
#include <cstddef>
#include <functional>
#include <arbor/common_types.hpp>
#include <arbor/util/any_ptr.hpp>
namespace arb {
using cell_member_predicate = std::function<bool (cell_member_type)>;
static cell_member_predicate all_probes = [](cell_member_type pid) { return true; };
static... |
<commit_before>#include <iostream>
#include <stdio.h>
#include <pthread.h>
using namespace std;
// bool RequestToSend = false;
bool ArrivalNotificationSenderSide = false;
// bool TimeOut = false;
// bool ArrivalNotificationReceiverSide = false;
// int Sw = pow(2, m-1);
// int Sf = 0;
// int Sn = 0;
int Rn = 0;
bool... |
<commit_before>/*
* Copyright 2015 Kevin Murray <[email protected]>
*
* 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 ver... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.