text stringlengths 54 60.6k |
|---|
<commit_before>/*************************************************************************
*
* $RCSfile: salobj.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: kr $ $Date: 2001-02-22 14:13:05 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>#include "gamemechanics.h"
#include <QPainter>
#include <QtCore/qmath.h>
#include <QLabel>
#include <QMouseEvent>
#include <QtDebug>
GameMechanics::GameMechanics(QWidget *parent) :
QWidget(parent)
{
imageName = new QString();
pieceCount = 3;
array = new Piece*[pieceCount];
for (i... |
<commit_before>/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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 r... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, 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:
*
* * Redistributions of... |
<commit_before>// Copyright eeGeo Ltd (2012-2015), All Rights Reserved
#include "InteriorWorldPinController.h"
#include "InteriorMarkerModelRepository.h"
#include "IWorldPinsService.h"
#include "InteriorMarkerModel.h"
#include "WorldPinInteriorData.h"
#include "WorldPinFocusData.h"
#include "InteriorId.h"
#include "In... |
<commit_before>#pragma once
#include <mutex>
#include <boost/thread.hpp>
#include "blackhole/logger.hpp"
namespace blackhole {
template<class Logger, class Mutex = std::mutex>
class synchronized {
public:
typedef Logger logger_type;
typedef Mutex mutex_type;
private:
logger_type log;
mutable mutex... |
<commit_before>/*
The MIT License (MIT)
Copyright (c) 2014 Baptiste Burles, Kliplab
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 ri... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use t... |
<commit_before>//! \file **********************************************************************
//! \brief Source Action de traduction ver une notification.
//!
//! - Compilateur : GCC,MinGW
//!
//! \author Antoine Maleyrie
//! \version 1.0
//! \date 17.03.2013
//!
//! *************************************************... |
<commit_before>
#pragma once
/**
* Graph.hpp
* Purpose: An class for the representation of attributed graphs and digraphs.
*
* @author Kevin A. Naudé
* @version 1.1
*/
#include <algorithm>
#include <assert.h>
#include <string>
#include <limits>
#include <vector>
#include <unordered_map>
#include <memory>
#inclu... |
<commit_before>#include "type.h"
#include "pt_data.h"
#include <iostream>
#include <boost/assign.hpp>
#include "utils/functions.h"
namespace navitia { namespace type {
bool ValidityPattern::is_valid(int duration) const {
if(duration < 0){
std::cerr << "La date est avant le début de période(" << beginning... |
<commit_before>//
// Created by jamie on 7/16/17.
//
#ifndef ARRAY_ARRAY_HPP
#define ARRAY_ARRAY_HPP
#include <type_traits>
#include <vector>
#include <numeric>
#include <memory>
#include <sstream>
#include <deque>
#include <algorithm>
#include <random>
namespace nd {
enum class value_t : uint8_t {
null,... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: XMLIndexAlphabeticalSourceContext.cxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: rt $ $Date: 2007-07-26 08:15:26 $
*
* The Conte... |
<commit_before>/***************objectmarker.cpp******************
Object marker for creating a list of ROIs to use for (e.g.) OpenCV cascade training.
Requires OpenCV, and various common C/C++ libraries.
author: bdh@machinehum.com
originally based on objectmarker.cpp by: achu_wilson@rediffmail.com
*/
#include <op... |
<commit_before>#include "GPU.hpp"
#include <list>
constexpr word_t GPU::Colors[4];
GPU::GPU(MMU& mmu) :
_mmu(&mmu),
_screen(new color_t[ScreenWidth * ScreenHeight])
{
}
GPU::GPU(const GPU& gpu) :
_screen(new color_t[ScreenWidth * ScreenHeight])
{
*this = gpu;
}
void GPU::reset()
{
std::memset(_screen.get(), ... |
<commit_before>#include <iostream>
#include <boost/format.hpp>
#include <boost/program_options/options_description.hpp>
#include <boost/program_options/parsers.hpp>
#include <boost/program_options/variables_map.hpp>
#include "GeoDrillConfig.h"
#include "file_utils.h"
namespace po = boost::program_options;
int main(... |
<commit_before>#include "command.h"
#include "../CommandHandler.h"
#include "../OptionParser.h"
/* full name of the command */
CMDNAME("setrec");
/* description of the command */
CMDDESCR("enable/disabe recurring messages");
/* command usage synopsis */
CMDUSAGE("$setrec on|off");
/* setrec: enable and disable recurr... |
<commit_before>#include "Filesystem.hpp"
#include "Build.hpp"
#include "Rule.hpp"
#include "ShellCommand.hpp"
#include "error.hpp"
//#include <boost/algorithm/string/split.hpp>
//#include <boost/algorithm/string/classification.hpp>
#include <boost/tokenizer.hpp>
#include <boost/filesystem.hpp>
#include <boost/scope_... |
<commit_before>#include <iostream>
#include <algorithm>
#include <stdexcept>
template <typename T>
class stack
{
public:
stack();
~stack()/*noexcept*/;
stack(stack<T> const&)/*basic*/;
stack& operator=(stack<T> const&)/*basic*/;
size_t count()const /*noexcept*/;
size_t array_size()const /*noexcept*/;
void push(... |
<commit_before>/***************************************************************
*
* Copyright (C) 1990-2009, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with t... |
<commit_before>#pragma once
#include "base/mappable.hpp"
#include "geometry/barycentre_calculator.hpp"
#include "geometry/point.hpp"
#include "serialization/geometry.pb.h"
namespace principia {
namespace testing_utilities {
template<typename T1Matcher, typename T2Matcher>
class ComponentwiseMatcher2;
} // namespace... |
<commit_before>#include "Debugger.h"
#include <iostream>
#include <cctype>
#include <functional>
#include <algorithm>
#include <sstream>
#include <iomanip>
using namespace Debug;
Debugger::Debugger(Emulator *_emulator, uint8_t _opts) {
emulator = _emulator;
opts = _opts;
}
Debugger::~Debugger() {}
void Debugger::... |
<commit_before>#include <QGraphicsView>
#include "fish_annotator/common/annotation_scene.h"
namespace fish_annotator {
AnnotationScene::AnnotationScene(QObject *parent)
: QGraphicsScene(parent)
, mode_(kDoNothing)
, type_(kBox)
, start_pos_()
, rect_item_(nullptr)
, line_item_(nullptr)
, dot_item_(null... |
<commit_before>/*
*
* MIT License
*
* Copyright (c) 2016-2017 The Cats Project
*
* 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 ... |
<commit_before>// Copyright (c) 2020 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#ifndef TAO_PEGTL_CONTRIB_INTERNAL_PRINT_UTILITY_HPP
#define TAO_PEGTL_CONTRIB_INTERNAL_PRINT_UTILITY_HPP
#include <cassert>
#include <cstdio>
#include <ostream>
#include <... |
<commit_before>#include "pch.h"
#include "DspChunk.h"
namespace SaneAudioRenderer
{
static_assert((int32_t{-1} >> 31) == -1 && (int64_t{-1} >> 63) == -1, "Code relies on right signed shift UB");
namespace
{
template<DspFormat InputFormat, DspFormat OutputFormat>
inline void Conve... |
<commit_before>#include <cstdint>
#include <fstream>
#include <vector>
#ifdef EMSCRIPTEN
#include <emscripten/emscripten.h>
#endif
#include "wonderland.storage.detail/base64_helper.hxx"
namespace wonder_rabbit_project
{
namespace wonderland
{
namespace storage
{
template < class T = void >... |
<commit_before>#include "core/Apportionment.hpp"
#include <algorithm>
#include <random>
Apportionment::Apportionment(
PopulationNode * upperNode,
ApportionmentFunction * apportionment,
AggregationFunction * aggregator
) {
// TODO: Empirically determine a sane default for try-on count
this->init(
upperNode,
ap... |
<commit_before>/****************************************************************************
* Copyright (C) 2011 Instituto Nokia de Tecnologia (INdT) *
* *
* This file may be used under the terms of the GNU Lesser ... |
<commit_before>/*
* stream.hpp
*
* Created on: Mar 1, 2015
* Author: hugo
*/
#ifndef MFLASH_CPP_CORE_MAPPED_STREAM_HPP_
#define MFLASH_CPP_CORE_MAPPED_STREAM_HPP_
#include <fcntl.h>
#include <stdio.h>
#include <sys/mman.h>
#include <unistd.h>
#include <cstdlib>
#include <fstream>
#include <iostream>
#inclu... |
<commit_before>/*
*
* Copyright (c) 2014, James Hurlbut
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
* conditions are met:
*
* Redistributions of source code must retain the above copyright
* notice, this list of ... |
<commit_before>#pragma once
/*
** Copyright (C) 2012 Aldebaran Robotics
** See COPYING for the license
*/
#ifndef _QI_BUFFER_HPP_
# define _QI_BUFFER_HPP_
# include <qi/api.hpp>
# include <qi/types.hpp>
# include <boost/shared_ptr.hpp>
# include <vector>
# include <cstddef>
#ifdef _MSC_VER
# pragma warning( push ... |
<commit_before>#include <QtGui/QApplication>
#include <QtGui>
#include <QtGui/QWidget>
#include "gui_form.h"
#include "ui_gui_form.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
gui_form w;
w.setWindowTitle("Camera Calibration of Projector Based Tiled Display");
//w.show();
w... |
<commit_before>#include <cstring>
#include <linux/input-event-codes.h>
#include <xkbcommon/xkbcommon.h>
#include <wayfire/util/log.hpp>
#include "keyboard.hpp"
#include "../core-impl.hpp"
#include "../../output/output-impl.hpp"
#include "cursor.hpp"
#include "touch.hpp"
#include "input-manager.hpp"
#include "wayfire/c... |
<commit_before>/*************************************************************************
*
* $RCSfile: menumanager.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: cd $ $Date: 2001-05-02 05:42:28 $
*
* The Contents of this file are made available subject to the terms of
* either of the following li... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkInteractorStyleJoystickCamera.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2000 Ken Martin, Will Schroeder, Bill Lorensen
All rights re... |
<commit_before>// Copyright (c) 2014 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "crypto/hmac_sha256.h"
#include <string.h>
CHMAC_SHA256::CHMAC_SHA256(const unsigned char* key, size_t keylen... |
<commit_before>#include <os>
#include <net/inet4>
#include <math.h>
#include <iostream>
#include <sstream>
//#include <thread> => <thread> is not supported on this single threaded system
using namespace std::chrono;
void Service::start()
{
// Wonder when these are used...?
std::set_terminate([](){ printf("CUSTO... |
<commit_before>///
/// @file S2.hpp.
/// @brief S2 function declarations.
///
/// Copyright (C) 2014 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#ifndef S2_HPP
#define S2_HPP
#include <PiTable.hpp>
#include <Fac... |
<commit_before>/* dlvhex -- Answer-Set Programming with external interfaces.
* Copyright (C) 2005, 2006, 2007 Roman Schindlauer
* Copyright (C) 2006, 2007, 2008, 2009, 2010 Thomas Krennwallner
* Copyright (C) 2009, 2010 Peter Schüller
*
* This file is part of dlvhex.
*
* dlvhex is free software; you can redistr... |
<commit_before>/* ************************************************************************************
*
* ftFluidFlow
*
* Created by Matthias Oostrik on 03/16.14.
* Copyright 2014 http://www.MatthiasOostrik.com All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* ... |
<commit_before>#include "stdafx.h"
#include "renderlayer2.h"
#include "aabb2.h"
#include "buffers.h"
#include "camera2.h"
#include "effect2.h"
#include "matrix4.h"
#include "particle.h"
#include "perfcounter.h"
#include "shadercache.h"
#include "sprite.h"
#include "textmeshinstance.h"
#include "renderer2.h"
#include "v... |
<commit_before>/*
* Funambol is a mobile platform developed by Funambol, Inc.
* Copyright (C) 2003 - 2007 Funambol, Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by
* the Free Software Foundation... |
<commit_before>#include "SDL.h"
#include <SDL_opengl.h>
#include "core/crc32.h"
#include "core/file_system.h"
#include "core/json_serializer.h"
#include "core/memory_stream.h"
#include "editor/editor_client.h"
#include "editor/editor_server.h"
#include "editor/server_message_types.h"
#include "editor_native/ma... |
<commit_before>/*
eXokernel Development Kit (XDK)
Based on code by Samsung Research America Copyright (C) 2013
The GNU C 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
v... |
<commit_before>#include <iostream>
#include <cmath>
#include <boost/mpl/integral_c.hpp>
#include <boost/numeric/conversion/converter.hpp>
#include "libport/ufloat.hh"
#ifdef LIBPORT_URBI_UFLOAT_LONG_LONG
# include "libport/ull-fixed-point.cc"
#endif
#ifdef LIBPORT_URBI_UFLOAT_FLOATING
# include "libport/uffloat.cc"... |
<commit_before>#ifndef ENTT_ENTITY_ENTITY_HPP
#define ENTT_ENTITY_ENTITY_HPP
#include <cstddef>
#include <cstdint>
#include <type_traits>
#include "../config/config.h"
namespace entt {
/**
* @cond TURN_OFF_DOXYGEN
* Internal details not to be documented.
*/
namespace internal {
template<typename, typename ... |
<commit_before>/// Generic interface from reading from ostream userdata.
// @module ostream
#include "OStream.h"
#include "Poco/Exception.h"
#include <cstring>
namespace LuaPoco
{
const char* POCO_OSTREAM_METATABLE_NAME = "Poco.OStream.metatable";
// userdata methods
int OStream::write(lua_State* L)
{
int rv = ... |
<commit_before>/*
* Copyright © 2010 Intel Corporation
*
* 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, mod... |
<commit_before>/*
* Copyright (C) 2013-2014 Nick Guletskii
*
* 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, ... |
<commit_before>#include <iostream>
#include <fstream>
#include <sstream>
#include "snowman.hpp"
int main(int argc, char *argv[]) {
Snowman sm = Snowman();
std::string VERSION_STRING = "v" + std::to_string(Snowman::MAJOR_VERSION) +
"." + std::to_string(Snowman::MINOR_VERSION) + "." +
std::to_st... |
<commit_before>/**
* pugixml parser - version 1.0
* --------------------------------------------------------
* Copyright (C) 2006-2010, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com)
* Report bugs and download new versions at http://pugixml.org/
*
* This library is distributed under the MIT License. See notic... |
<commit_before>/*
* $Id: sample.h,v 1.6 2006/09/18 06:23:39 nathanst Exp $
*
* Driver.h
* hog
*
* Created by Thayne Walker on 3/17/17.
* Copyright 2017 Thayne Walker, University of Denver. All rights reserved.
*
* This file is part of HOG.
*
* HOG is free software; you can redistribute it and/or modify
... |
<commit_before>#include "kernel.h"
#include "ilwisdata.h"
#include "errorobject.h"
#include "symboltable.h"
#include "mastercatalog.h"
#include "astnode.h"
using namespace Ilwis;
NodeValue::NodeValue() : _content(ctUNKNOW){
}
NodeValue::NodeValue(const QVariant& v, ContentType tp) : _content(tp) {
push_back(v);
... |
<commit_before>/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2016-2019 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... |
<commit_before>#include "transit/experimental/transit_types_experimental.hpp"
#include <tuple>
namespace transit
{
namespace experimental
{
std::string GetTranslation(Translations const & titles)
{
CHECK(!titles.empty(), ());
// If there is only one language we return title in this only translation.
if (titles... |
<commit_before>// Copyright (c) 2013 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include <string>
#include <vector>
#include "atom/common/native_mate_converters/image_converter.h"
#include "atom/common/native_mate_converters/string16_converter.h"
#... |
<commit_before>/// HEADER
#include <csapex/signal/slot.h>
/// COMPONENT
#include <csapex/signal/event.h>
#include <csapex/utility/assert.h>
#include <csapex/msg/any_message.h>
#include <csapex/msg/no_message.h>
#include <csapex/model/connection.h>
/// SYSTEM
#include <iostream>
using namespace csapex;
Slot::Slot(st... |
<commit_before>// Copyright (c) 2013 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/common/api/atom_api_clipboard.h"
#include "atom/common/native_mate_converters/image_converter.h"
#include "atom/common/native_mate_converters/string16_co... |
<commit_before>//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===-------------------------... |
<commit_before>#include "Crypto.h"
#include "Elligator.h"
namespace i2p
{
namespace crypto
{
Elligator2::Elligator2 ()
{
// TODO: share with Ed22519
p = BN_new ();
// 2^255-19
BN_set_bit (p, 255); // 2^255
BN_sub_word (p, 19);
p38 = BN_dup (p); BN_add_word (p38, 3); BN_div_word (p38, 8); // (p+3)/8
p... |
<commit_before>// Copyright 2017-2020 The Verible Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by a... |
<commit_before>/******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across ... |
<commit_before>/** @file
*****************************************************************************
Implementation of interfaces for a ppzkSNARK for the NP statement "Pour".
See zerocash_pour_ppzksnark.hpp .
*****************************************************************************
* @author This file... |
<commit_before>/*
* Copyright (c) 2008-2018, Hazelcast, Inc. 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
*
* U... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (info@qt.nokia.com)
**
**
** GNU Lesser General Public License Usage
**
** This file m... |
<commit_before>#include "parma_selector.h"
#include "parma_targets.h"
#include "parma_weights.h"
namespace parma {
class VtxSelector : public Selector {
public:
VtxSelector(apf::Mesh* m, apf::MeshTag* w)
: Selector(m, w) {}
apf::Migration* run(Targets* tgts) {
apf::Migration* plan = ... |
<commit_before>/*************************************************************************
* *
* I|*j^3Cl|a "+!*% qt Nd gW *
* l]{y+l?MM* !#Wla\NNP NW MM I| *
* ... |
<commit_before>class Solution {
public:
bool isMatch(string s, string p) {
const int n = s.length();
const int m = p.length();
vector<vector<bool>> dp(n + 1, vector<int>(m + 1, false));
dp[0][0] = true;
for (int i = 0; i < n; ++i) {
char ch = s[i];
... |
<commit_before>#ifndef ALGORITHM
#define ALGORITHM
#include<algorithm> //find_if, remove_if
#include<cstddef> //ptrdiff_t
#include<functional> //equal_to
#include<iterator> //iterator_traits, next
#include<utility> //move
namespace nAlgorithm
{
template<class T,class UnaryPred>
bool all_of_val(T begin,const T end,co... |
<commit_before><commit_msg>Small type fix<commit_after><|endoftext|> |
<commit_before>#ifndef IMPORTER_POLYGONIDENTIFYER_HPP
#define IMPORTER_POLYGONIDENTIFYER_HPP
const char *polygons[] =
{
"aeroway",
"amenity",
"area",
"building",
"harbour",
"historic",
"landuse",
"leisure",
"man_made",
"military",
"natural",
"power",
"place",
"s... |
<commit_before>//=======================================================================
// Copyright (c) 2014 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//========================================================... |
<commit_before>#if defined(LUG_SYSTEM_WINDOWS)
inline const char* getLastErrorWindows() {
static const DWORD size = 200 + 1;
static WCHAR bufferWide[size];
static char buffer[size];
auto lastError = GetLastError();
FormatMessage(
FORMAT_MESSAGE_FROM_STRING | FORMAT_MESSAGE_IGNORE_INSERTS,... |
<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>#ifndef DYNAMICGRAPH_HPP
#define DYNAMICGRAPH_HPP
#include "util/deallocating_vector.hpp"
#include "util/exception.hpp"
#include "util/exception_utils.hpp"
#include "util/integer_range.hpp"
#include "util/permutation.hpp"
#include "util/typedefs.hpp"
#include <boost/assert.hpp>
#include <cstdint>
#in... |
<commit_before>#include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <fstream>
std::ofstream outputfile("output.txt");
void print_reverse(const std::string &sentence, int iteration)
{
std::vector<std::string> words;
std::stringstream stream(sentence);
outputfile << "Case #" ... |
<commit_before>#include <time.h>
class diddy
{
public:
// only accurate to 1 second
static int systemMillisecs() {
time_t seconds;
seconds = time (NULL);
return seconds * 1000;
}
static void flushKeys() {
for( int i=0;i<512;++i ){
app->input->keyStates[i]&=0x100;
}
}
static ... |
<commit_before>/* dlvhex -- Answer-Set Programming with external interfaces.
* Copyright (C) 2008 Thomas Krennwallner
*
* This file is part of dlvhex.
*
* dlvhex 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 Softw... |
<commit_before><commit_msg>fix<commit_after><|endoftext|> |
<commit_before>/* dtkMath.tpp ---
*
* Author: Julien Wintz
* Copyright (C) 2008 - Julien Wintz, Inria.
* Created: Wed Mar 9 11:05:40 2011 (+0100)
* Version: $Id$
* Last-Updated: Thu Sep 13 16:25:21 2012 (+0200)
* By: tkloczko
* Update #: 94
*/
/* Commentary:
*
*/
/* Change log:
*
*/
... |
<commit_before>/* Copyright (C) 2004-2005 ian reinhart geiser <geiseri@sourcextreme.com> */
#include <kconfig.h>
#include <kmacroexpander.h>
#include <kconfiggroup.h>
#include <kaboutdata.h>
#include <QCommandLineOption>
#include <QCommandLineParser>
#include <QCoreApplication>
#include <QFile>
#include <QFileInfo>
#i... |
<commit_before>#include <iostream>
#include <map>
#include "object/health_stimulation.h"
#include "object/stimulation.h"
#include "level/blockobject.h"
#include "object/enemy.h"
#include "object/heart.h"
#include "object/item.h"
#include "util/load_exception.h"
#include "object/object.h"
#include "object_factory.h"
u... |
<commit_before>// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "Lic... |
<commit_before>/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* libvisio
* Version: MPL 1.1 / GPLv2+ / LGPLv2+
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License o... |
<commit_before>///
/// @file LoadBalancerAC.cpp
/// @brief This load balancer assigns work to the threads in the
/// computation of the A & C formulas (AC.cpp) in
/// Xavier Gourdon's algorithm.
///
/// Copyright (C) 2021 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD... |
<commit_before>/*
* Copyright (c) 2013-2020 dresden elektronik ingenieurtechnik gmbh.
* All rights reserved.
*
* The software in this package is published under the terms of the BSD
* style license a copy of which has been included with this distribution in
* the LICENSE.txt file.
*
*/
#include <QLabel>
#inclu... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LI... |
<commit_before>#include "Platform.hpp"
#include <boost/log/trivial.hpp>
namespace Slic3r {
static auto s_platform = Platform::Uninitialized;
static auto s_platform_flavor = PlatformFlavor::Uninitialized;
void detect_platform()
{
#if defined(_WIN32)
BOOST_LOG_TRIVIAL(info) << "Platform: Windows";
s_platform... |
<commit_before>/*****************************************************************************\
* ANALYSIS PERFORMANCE TOOLS *
* libparaver-api *
* Paraver Main Computing Library ... |
<commit_before>/***************objectmarker.cpp******************
Object marker for creating a list of ROIs to use for (e.g.) OpenCV cascade training.
Requires OpenCV, and various common C/C++ libraries.
author: bdh@machinehum.com
originally based on objectmarker.cpp by: achu_wilson@rediffmail.com
*/
#include <op... |
<commit_before>/**
* @file image_fetcher.hpp
* @brief An image fetcher class implementation
* @author seonho.oh@gmail.com
* @date 2013-07-01
* @copyright 2007-2014 seonho.oh@gmail.com
* @version 1.0
*
* @section LICENSE
*
* Copyright (c) 2007-2014, Seonho Oh
* All rights reserved.
*
* Redistributi... |
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "bitvector.h"
#include "allocatedbitvector.h"
#include "growablebitvector.h"
#include "partialbitvector.h"
#include <vespa/vespalib/hwaccelrated/iaccelrated.h>
#include <vespa/... |
<commit_before>#include "Hieralign.h"
Hieralign::Hieralign(const string &beamsize)
{
beam_width = stoi(beamsize);
}
Hieralign::~Hieralign()
{
}
void Hieralign::setFilter(const double &filter)
{
sigma_filter = filter;
}
void Hieralign::setHyperParameters(const double &theta, const double &delta, const double &p... |
<commit_before>#include "Histogram.h"
#include "Matrix.h"
void Histogram::Init(Local<Object> target) {
Nan::Persistent<Object> inner;
Local<Object> obj = Nan::New<Object>();
inner.Reset(obj);
Nan::SetMethod(obj, "calcHist", CalcHist);
Nan::SetMethod(obj, "emd", Emd);
target->Set(Nan::New("histogram").ToL... |
<commit_before>/*
* Copyright (c) ICG. All rights reserved.
*
* Institute for Computer Graphics and Vision
* Graz University of Technology / Austria
*
*
* This software is distributed WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the ab... |
<commit_before>#include "NumpyStorage.h"
NumpyStorage::NumpyStorage(CacheTable *cache, CacheTable *read_cache,
std::map<std::string, std::string> &config) : ArrayDataStore(cache, read_cache, config) {
}
NumpyStorage::~NumpyStorage() {
};
std::list<std::vector<uint32_t> > NumpyStorage... |
<commit_before>#include "SampleCode.h"
#include "SkView.h"
#include "SkCanvas.h"
#include "Sk64.h"
#include "SkCornerPathEffect.h"
#include "SkGradientShader.h"
#include "SkGraphics.h"
#include "SkImageDecoder.h"
#include "SkKernel33MaskFilter.h"
#include "SkPath.h"
#include "SkRandom.h"
#include "SkRegion.h"
#include ... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2011 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>// 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.
// Helper program to analyze the time that Chrome's renderers spend in system
// calls. Start Chrome like this:
//
// SECCOMP_SANDBOX_D... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.