text stringlengths 54 60.6k |
|---|
<commit_before>#include <stdexcept>
#include <iostream>
#include <string.h>
#include <algorithm>
#include <thread>
#include <libshm.hpp>
namespace shm{
template <key_t KEY, typename T>
int Shm<KEY, T>::shmid_ = -1;
template <key_t KEY, typename T>
Shm<KEY, T>::Shm():shm_(0){
get();
attach();
}
... |
<commit_before>#include "../vendor/gc/include/gc.h"
#include "../vendor/gc/include/gc_cpp.h"
#include "../vendor/gc/include/gc_allocator.h"
#include <sstream>
#include "method.h"
#include "block.h"
#include "utils.h"
#include "bootstrap/core_classes.h"
#include "parser/nodes/return.h"
namespace fancy {
Method::Me... |
<commit_before>#include "taichi_grid.h"
#include <taichi/visual/texture.h>
#include <taichi/system/threading.h>
#include <taichi/util.h>
#include <taichi/math/svd.h>
TC_NAMESPACE_BEGIN
struct NodeFlags : public bit::Bits<32> {
using Base = bit::Bits<32>;
TC_BIT_FIELD(uint8, num_effective_neighbours, 0);
TC_BIT_... |
<commit_before>/* mbed Microcontroller Library
* Copyright (c) 2006-2015 ARM Limited
*
* 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
... |
<commit_before>/* mbed Microcontroller Library
* Copyright (c) 2006-2013 ARM Limited
*
* 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... |
<commit_before>#include <iostream>
#include "computeparity.h"
#include "unittest.h"
#include "testsuite.h"
#include "narytree.h"
#include "convertbase.h"
#include "queens.h"
#include "listcycle.h"
#include "pairsum.h"
#include "maxstack.h"
#include "binarytree.h"
#include "binarysearch.h"
#include "hashletter.h"
#incl... |
<commit_before>#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
cout << "Hello World!";
}
//--------------------------------------------------------------
void ofApp::update(){
}
//--------------------------------------------------------------
void ofApp::... |
<commit_before>
#include "precompiled.h"
void ofApp::setup() {
// load json
ofxJSON json;
json.open("game.json");
sceneMgr_ = ofxSceneManager::instance();
// シーンを追加
sceneMgr_->addScene(new GameTitle(), TITLE);
sceneMgr_->addScene(new GameMain(), GAME);
sceneMgr_->addScene(new Sandbox(), SANDBO... |
<commit_before>// BEGIN_COPYRIGHT
// END_COPYRIGHT
#ifndef HADOOP_PIPES_HPP
#define HADOOP_PIPES_HPP
// Python 2.6 macro. Needed when compiling with older versions.
#ifndef Py_REFCNT
#define Py_REFCNT(ob) (((PyObject*)(ob))->ob_refcnt)
#endif
#include <string>
#include <hadoop/SerialUtils.hh>
#include "pipes_context... |
<commit_before>// Copyright 2010-2014 RethinkDB, all rights reserved.
#ifndef RDB_PROTOCOL_CHANGEFEED_HPP_
#define RDB_PROTOCOL_CHANGEFEED_HPP_
#include <deque>
#include <exception>
#include <map>
#include <string>
#include "errors.hpp"
#include <boost/variant.hpp>
#include "concurrency/rwlock.hpp"
#include "contain... |
<commit_before>#pragma once
#include <algorithm>
#include <cstddef>
#include <functional>
#include <queue>
#include <set>
#include <vector>
template<typename T>
class Vertex {
public:
Vertex() : idx_(-1), data_() {}
explicit Vertex(int idx) : idx_(idx), data_() {}
Vertex(int idx, const T &data) : idx_(idx... |
<commit_before>//
// Copyright (c) 2009, Markus Rickert
// 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... |
<commit_before>/*
* ============================================================================
*
* Filename: test-io.cc
* Description: Tests of the IO module.
* License: LGPL-3+
* Author: Kevin Murray, spam@kdmurray.id.au
*
* ========================================================... |
<commit_before><commit_msg>Remove unnecessary hardcode framework api path<commit_after><|endoftext|> |
<commit_before>#include <grl/ros/KukaLBRiiwaROSPlugin.hpp>
using namespace grl::ros;
int main(int argc, char **argv) {
ros::init(argc,argv,"kuka_lbr_ros_bridge");
if(!ros::master::check())
{
std::cerr << "WARNING: roscore does not appear to be running\n";
}
std::shared_ptr<KukaLBRiiwaROSPlugin> p... |
<commit_before>/*
Copyright (c) 2016 Martin Buck
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, m... |
<commit_before><commit_msg>fix compilation warning<commit_after><|endoftext|> |
<commit_before>#include <qt/hardwaresigntxdialog.h>
#include <qt/forms/ui_hardwaresigntxdialog.h>
#include <qt/walletmodel.h>
#include <qt/qtumhwitool.h>
#include <qt/waitmessagebox.h>
#include <qt/hardwarekeystoredialog.h>
#include <qt/guiconstants.h>
#include <qt/guiutil.h>
#include <qt/derivationpathdialog.h... |
<commit_before>//
// libavg - Media Playback Engine.
// Copyright (C) 2003-2014 Ulrich von Zadow
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2 of the Li... |
<commit_before>/*------------------------------------------------------------------------
* (The MIT License)
*
* Copyright (c) 2008-2012 Rhomobile, Inc.
*
* 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 ... |
<commit_before>#include <algorithm>
#include <cctype>
#include <cstdarg>
#include "reader.h"
namespace
{
// The parameter is mutated, and therefore must be passed by value.
std::string ToUpper(std::string s)
{
std::transform(s.begin(), s.end(), s.begin(), ::toupper);
return s;
}
} // namespace
namespace mclisp... |
<commit_before>#include "offeracceptdialogbtc.h"
#include "ui_offeracceptdialogbtc.h"
#include "init.h"
#include "util.h"
#include "offerpaydialog.h"
#include "guiconstants.h"
#include "guiutil.h"
#include "platformstyle.h"
#include "syscoingui.h"
#include <QMessageBox>
#include "rpcserver.h"
#include "pubkey.h"
#inclu... |
<commit_before><commit_msg>Fix silly SoTransformerDragger bug. Basically only one instance of the dragger would work...<commit_after><|endoftext|> |
<commit_before>// The MIT License (MIT)
// Copyright (c) 2012-2013 Danny Y., Rapptz
// 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 limitatio... |
<commit_before>#include "dsa_common.h"
#include "node_state.h"
#include "core/session.h"
#include "message/request/invoke_request_message.h"
#include "message/request/set_request_message.h"
#include "stream/responder/outgoing_invoke_stream.h"
#include "stream/responder/outgoing_list_stream.h"
#include "stream/respon... |
<commit_before>#include "treeview.h"
#include <QDir>
#include <QHeaderView>
#include <QKeyEvent>
#include <QProcess>
#include <QStandardPaths>
namespace NeovimQt {
TreeView::TreeView(NeovimConnector *nvim, QWidget *parent)
: QTreeView(parent), m_nvim(nvim) {
model = new QFileSystemModel(this);
setModel(model... |
<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.
//
// This code glues the RLZ library DLL with Chrome. It allows Chrome to work
// with or without the DLL being present. If the DLL is ... |
<commit_before>#include "opentelemetry/context/runtime_context.h"
#include "opentelemetry/context/context.h"
#include <gtest/gtest.h>
using namespace opentelemetry;
// Tests that GetCurrent returns the current context
TEST(RuntimeContextTest, GetCurrent)
{
std::map<std::string, context::ContextValue> map_test = {{... |
<commit_before>AliAnalysisTask *AddTaskTender(Bool_t useV0=kFALSE,
Bool_t useTPC=kTRUE,
Bool_t useTOF=kTRUE,
Bool_t useTRD=kTRUE,
Bool_t usePID=kTRUE,
Bool_t useVTX... |
<commit_before>/*
* Vulkan Samples
*
* Copyright (C) 2015-2016 Valve Corporation
* Copyright (C) 2015-2016 LunarG, Inc.
*
* 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 restr... |
<commit_before>#include "mjolnir/graphtilebuilder.h"
#include <boost/filesystem/operations.hpp>
using namespace valhalla::baldr;
namespace valhalla {
namespace mjolnir {
GraphTileBuilder::GraphTileBuilder() {
}
// Output the tile to file. Stores as binary data.
bool GraphTileBuilder::StoreTileData(const std::str... |
<commit_before>//******************************************************************
//
// Copyright 2014 Intel Corporation All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except ... |
<commit_before>#define _CRT_SECURE_NO_WARNINGS
#include <fstream>
#include <iostream>
#include <algorithm>
using namespace std;
typedef short id_t;
const id_t INVALID_ID = -1;
const id_t ID_COUNT = (1 << 15) - 1;
const int DECK_SIZE = 60;
const int CARD_NAME_SIZE = 64;
const int PLAYER_NAME_SIZE = 128;
id_t NEXT_PL... |
<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-2006 Torus Knot Software Ltd
Also see acknowledgements in Readme.html
This prog... |
<commit_before>#ifndef __REPLICATION_MASTERSTORE_HPP__
#define __REPLICATION_MASTERSTORE_HPP__
#include "store.hpp"
#include "arch/arch.hpp"
#include "concurrency/mutex.hpp"
#include "containers/thick_list.hpp"
#include "replication/net_structs.hpp"
namespace replication {
class masterstore_exc_t : public std::runti... |
<commit_before>/*
Copyright libCellML Contributors
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 ... |
<commit_before>/**
* @file rodsdateconditionwidget.h
* @brief Implementation of RodsDateConditionWidget class
*
* The RodsDateConditionWidget class extends the class RodsConditionWidget and
* implements a widget for entering a date/time condition for a GenQuery.
*
* Copyright (C) 2014-2015 University of Jyväskyl... |
<commit_before>#include "messages/layouts/messagelayout.hpp"
#include "singletons/emotemanager.hpp"
#include "singletons/settingsmanager.hpp"
#include <QApplication>
#include <QDebug>
#include <QPainter>
#include <QThread>
#include <QtGlobal>
#define MARGIN_LEFT (int)(8 * this->scale)
#define MARGIN_RIGHT (int)(8 * t... |
<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/gpu/gpu_channel.h"
#if defined(OS_WIN)
#include <windows.h>
#endif
#include "base/command_line.h"
#include "base/loc... |
<commit_before>// Copyright (c) 2006-2008 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/views/combo_box.h"
#include "base/gfx/native_theme.h"
#include "base/gfx/rect.h"
#include "chrome/common/gfx/chr... |
<commit_before>/**
* @file network_util_test.cpp
* @author Marcus edel
*
* Simple tests for things in the network_util file.
*/
#include <mlpack/core.hpp>
#include <mlpack/methods/ann/network_util.hpp>
#include <mlpack/methods/ann/layer/linear_layer.hpp>
#include <mlpack/methods/ann/layer/base_layer.hpp>
#includ... |
<commit_before>#include "../../Lepus3D/Source/RenderEngine.h"
#include "../../Lepus3D/Source/Camera/FPPCamera.h"
#include "../../Lepus3D/Source/Assets.h"
using namespace LepusEngine;
int main()
{
Lepus3D::RenderEngine engine("LepusDemo", 800, 600);
bool isRunning = true;
Lepus3D::Assets::ModelImporter modelImp("... |
<commit_before>/*!
* Copyright 2015 by Contributors
* \file regression.cc
* \brief Definition of single-value regression and classification objectives.
* \author Tianqi Chen, Kailong Chen
*/
#include <dmlc/omp.h>
#include <xgboost/logging.h>
#include <xgboost/objective.h>
#include <vector>
#include <algorithm>
#in... |
<commit_before>#pragma once
#include <algorithm>
#include <cassert>
#include <stdexcept>
#include <map>
#include <unordered_map> // TODO Replace with something really fast.
#include <set>
#include "graph.hpp"
namespace simple_graph {
template <bool Dir, typename V, typename E, typename W>
class ListGraph : public G... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/p9_mss_ddr_phy_reset... |
<commit_before>/*
* Asynchronous local file access.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "istream_file.hxx"
#include "istream_buffer.hxx"
#include "buffered_io.hxx"
#include "fd_util.h"
#include "gerrno.h"
#include "fb_pool.hxx"
#include "util/Cast.hxx"
#include <assert.h>
#include <sys/types.h>... |
<commit_before>// This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
/***********************************************************************************
**
** GLShader.cpp
**
** Copyright (C) August 2016 Hotride
... |
<commit_before>#define LOOKUP_COLOR_COUNT 360
#include "thememanager.hpp"
#include <QColor>
#include <cmath>
namespace chatterino {
namespace singletons {
namespace detail {
double getMultiplierByTheme(const QString &themeName)
{
if (themeName == "Light") {
return 0.8;
} else if (themeName == "Whi... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/*
* Copyright 2010 MQWeb - Franky Braem
*
* Licensed under the EUPL, Version 1.1 or – as soon they
* will be approved by the European Commission - subsequent
* versions of the EUPL (the "Licence");
* You may not use this work except in compliance with the
* Licence.
* You may obtain a copy of the Licenc... |
<commit_before>/*
* Copyright 2017 - KBC Group NV - Franky Braem - The MIT license
* 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... |
<commit_before>// ******************************************************************
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THE CODE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF M... |
<commit_before>#include "MatrixTransform.h"
#include "Group.h"
#include <osg/Notify>
#include <osgDB/FileNameUtils>
#include <osgDB/FileUtils>
#include <osgDB/Registry>
using namespace osg;
using namespace osgDB;
class ReaderWriterIVE : public ReaderWriter
{
public:
ReaderWriterIVE()
{
... |
<commit_before>
/*
* Copyright 2011 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkFontHost.h"
#include "SkDescriptor.h"
#include "SkPaint.h"
#include "SkString.h"
#include "SkStream.h"
#include "SkThread.h"
#... |
<commit_before>#include "pajlada/settings/settingmanager.hpp"
#include "pajlada/settings/merger.hpp"
#include "pajlada/settings/serialize.hpp"
#include "pajlada/settings/settingdata.hpp"
#include <rapidjson/prettywriter.h>
#include <iostream>
using namespace std;
namespace pajlada {
namespace Settings {
SettingMan... |
<commit_before>/*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/shaders/SkPictureShader.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkImage.h"
#include "src/... |
<commit_before>/*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkPictureShader.h"
#include "SkArenaAlloc.h"
#include "SkBitmap.h"
#include "SkBitmapProcShader.h"
#include "SkCanvas.h"
#include "SkColorSpaceXformC... |
<commit_before>#include "pd_view.h"
#include "pd_view.h"
#include "pd_backend.h"
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <vector>
#if defined(_WIN32)
#define strcasecmp _stricmp
#define strncasecmp _strnicmp
#endif
#ifdef __clang__
#pragma clang diagn... |
<commit_before>// Copyright 2017 Per Grön. 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 ... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "plotwidget.h"
#include "signalhandler.h"
#include "signaldata.h"
#include "selectsignaldialog.h"
#include "signaldescription.h"
#include "lcmthread.h"
#include <QLabel>
#include <QLayout>
#include <QApplication>
#include <QDebug>
#include <QSc... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
**
** GNU Lesser General Public License Usage
**
** This file m... |
<commit_before>#include "providers/ffz/FfzEmotes.hpp"
#include <QBuffer>
#include <QImageReader>
#include <QJsonArray>
#include <QJsonObject>
#include <QPainter>
#include <QString>
#include "common/NetworkRequest.hpp"
#include "common/Outcome.hpp"
#include "debug/Log.hpp"
#include "messages/Emote.hpp"
#include "messa... |
<commit_before>#include "process_based_isolation_module.hpp"
#include "foreach.hpp"
using std::cerr;
using std::cout;
using std::endl;
using std::list;
using std::make_pair;
using std::ostringstream;
using std::pair;
using std::queue;
using std::string;
using std::vector;
using boost::lexical_cast;
using boost::unor... |
<commit_before>
// Note - pyconfig.h must be included before condor_common to avoid
// re-definition warnings.
# include <pyconfig.h>
#include <string>
#include <classad/source.h>
#include <classad/sink.h>
#include "classad_wrapper.h"
#include "exprtree_wrapper.h"
#include "old_boost.h"
ExprTreeHolder::ExprTreeHold... |
<commit_before>#include <ros/ros.h>
#include <std_msgs/String.h>
#include <qbot/NavCmd.h>
#include <qbot/SpcCmd.h>
#include <qbot/NavRes.h>
#include <qbot/SpcRes.h>
#include <qbot/NLPRes.h>
#include <qbot/GuiRes.h>
#include <qbot/CncStatus.h>
#include <iostream> //declaring variables
#include <string>
#include <fstre... |
<commit_before>// Example STEP-NC Program using C++/CLI
// ========================================
//
// This sample C++ project calls the STEP-NC Machine Programming API
// using the .NET interface with C++/CLI calls. The program creates a
// small machining program with a few toolpath moves.
//
// The project creat... |
<commit_before>// Copyright (c) 2016-2018 The Gulden developers
// Authored by: Malcolm MacLeod (mmacleod@webmail.co.za)
// Distributed under the GULDEN software license, see the accompanying
// file COPYING
#include "backupdialog.h"
#include <qt/_Gulden/forms/ui_backupdialog.h>
#include "wallet/wallet.h"
#include "w... |
<commit_before>/******************************************************************************
* Copyright (c) 2014-2015, The Pennsylvania State University
* Copyright (c) 2015, Jason W. DeGraw
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... |
<commit_before>/*
* Copyright (c) 2012 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/*
* NaCl inter-module communication primitives.
*
* This file implements common parts of IMC for "UNIX like systems" (... |
<commit_before>#ifndef GROUP__BY__HPP
#define GROUP__BY__HPP
#include "iterbase.hpp"
#include <utility>
#include <iterator>
#include <initializer_list>
namespace iter {
template <typename Container, typename KeyFunc>
class GroupBy;
template <typename Container, typename KeyFunc>
GroupBy<Container, ... |
<commit_before>#ifndef TIMER_HPP_
#define TIMER_HPP_
#include <QObject>
#include <bb/cascades/CustomControl>
class QTimer;
class Timer : public bb::cascades::CustomControl
{
Q_OBJECT
Q_PROPERTY(bool active READ isActive NOTIFY activeChanged)
Q_PROPERTY(int interval READ interval WRITE setIn... |
<commit_before>#include <iostream>
#include "tools.h"
using Eigen::VectorXd;
using Eigen::MatrixXd;
using std::vector;
Tools::Tools() {}
Tools::~Tools() {}
VectorXd Tools::CalculateRMSE(const vector<VectorXd> &estimations,
const vector<VectorXd> &ground_truth) {
/**
TODO:
* Cal... |
<commit_before>#ifndef VOLE_VALUE
#define VOLE_VALUE
#include "slice.hpp"
namespace Vole {
struct Value;
using String = Slice<char>;
using Vector = Slice<Value>;
struct Value {
enum Type {
BOOLEAN,
NUMBER,
// SYMBOL,
STRING,
// REGEXP,
VECTOR,
// MAPPING
} t... |
<commit_before>// viewer - shows the current results of the ray tracer..
#include <GL/glut.h>
#include <cstdio>
#include <cstdlib>
#ifdef _WIN32
# include <windows.h>
#else
# include <sys/time.h>
#endif
#include "RayTracer.h"
#define VIEWING_DISTANCE_MIN 0.1
#define TEXTURE_ID_SQUARE 1
enum {
MENU_LIGHTING = 1,
... |
<commit_before>// Copyright (C) 2010 by Ivan Vashchaev
// Modified 2011 Oliver Schulz
//
// 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 li... |
<commit_before>#pragma once
#include <stdint.h>
#include <memory>
#include <exception>
#include <cassert>
#include <iostream>
#include <iomanip>
#include <sstream>
#if defined(_DEBUG) || defined(DEBUG) && !defined(NDEBUG) && !defined(_NDEBUG)
#define KOKOPUFFS_DEBUG
#endif
/* #define KOKOPUFFS_MAP_COLLISION_DEBUG */... |
<commit_before>/*
* File.cpp
*
* Copyright (C) 2006 by Universitaet Stuttgart (VIS). Alle Rechte vorbehalten.
*/
#ifdef _WIN32
#include <Shlwapi.h>
#else /* _WIN32 */
/* tell linux runtime to do 64bit seek/tell */
#define _FILE_OFFSET_BITS 64
#define _LARGEFILE64_SOURCE
#include <fcntl.h>
#include... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011.
// 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)
//======================================... |
<commit_before>#include "../src/Printer.hpp"
#include "catch.hpp"
<commit_msg>Remove unwanted file<commit_after><|endoftext|> |
<commit_before>#include "mixpanel.h"
#include <qjson/serializer.h>
const QString Mixpanel::DEFAULT_ENDPOINT = "http://api.mixpanel.com/";
const QString Mixpanel::SET = "$set";
const QString Mixpanel::SET_ONCE = "$set_once";
const QString Mixpanel::ADD = "$add";
const QString Mixpanel::APPEND = "$append";
const QString... |
<commit_before>#include "mutation.h"
#include "editdistance.h"
#include <iostream>
#include <fstream>
#include "util.h"
Mutation::Mutation(string name, string left, string center, string right){
//we shift some bases from left and right to center to require 100% match of these bases
const int shift = 2;
mLeft... |
<commit_before>#ifndef TEST_HELPER_H_
#define TEST_HELPER_H_
#include <internal/iterbase.hpp>
#include <stdexcept>
#include <type_traits>
#include <utility>
#include <vector>
namespace itertest {
// non-copyable. non-movable. non-default-constructible
class SolidInt {
private:
const int i;
public:
... |
<commit_before>//=======================================================================
// Copyright (c) 2017 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//========================================================... |
<commit_before>#ifndef __STAN__AGRAD__FVAR_HPP__
#define __STAN__AGRAD__FVAR_HPP__
#include <stan/meta/traits.hpp>
namespace stan {
namespace agrad {
template <typename T>
struct fvar {
T val_; // value
T d_; // tangent (aka derivative)
// TV and TD must be assignable to T
te... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-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 <support/cleanse.h>
#include <openssl/crypto.h>
void me... |
<commit_before>/***********************************************************************************************************************
**
** Copyright (c) 2011, 2015 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided tha... |
<commit_before>/***********************************************************************************************************************
**
** Copyright (c) 2011, 2015 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided tha... |
<commit_before>/***********************************************************************************************************************
**
** Copyright (c) 2011, 2015 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided tha... |
<commit_before>/* Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by ap... |
<commit_before>// Filename: windowsRegistry.cxx
// Created by: drose (06Aug01)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
//
// All use of this software is subject to the terms of the Panda ... |
<commit_before>/* gk_WellKnownCpuBindings.cpp Mon Oct 31 2016 13:22:28 tmm */
/*
Module: gk_WellKnownCpuBindings.cpp
Function:
The table of well-known CPU-instance to platform bindings.
Version:
V0.3.0 Mon Oct 31 2016 13:22:28 tmm Edit level 2
Copyright notice:
This file copyright (C) 2016 by
MCCI Corporati... |
<commit_before>#include "material/refraction.h"
#include "scene/hitable.h"
//#pragma optimize( "", off)
namespace AT_NAME
{
AT_DEVICE_MTRL_API real refraction::pdf(
const aten::MaterialParameter* param,
const aten::vec3& normal,
const aten::vec3& wi,
const aten::vec3& wo,
real u, real v)
{
AT_ASSERT(fal... |
<commit_before>#include "util/StreamLink.hpp"
#include "Application.hpp"
#include "Helpers.hpp"
#include "singletons/Settings.hpp"
#include "widgets/dialogs/QualityPopup.hpp"
#include <QErrorMessage>
#include <QFileInfo>
#include <QProcess>
#include <functional>
namespace chatterino {
namespace {
const char *getB... |
<commit_before>#include <windows.h>
#include <shellapi.h>
#include <wincrypt.h>
#include <glib.h>
#include <QLibrary>
#include <QPair>
#include <QString>
#include "utils/utils-win.h"
namespace utils {
namespace win {
namespace {
OSVERSIONINFOEX osver; // static variable, all zero
bool osver_failure = false;
// Fro... |
<commit_before>/*
*/
#include "lineFollowing.h"
using namespace std;
using namespace cv;
ControlMovements lineFollowingControl() {
line_main();
return ControlMovements();
}
void line_main() {
// printf("Hello, this is Caleb\n");
VideoCapture cap("../../tests/videos/top_down_4.m4v");
if (!cap.isOpened()... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LG... |
<commit_before>/* _______ __ __ __ ______ __ __ _______ __ __
* / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\
* / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / /
* / / /__ / / // / // / // / / / ___ / // ___ / // /| ' / /
* / /_// /\ / /_// / ... |
<commit_before>/*************************************************************************
*
* $RCSfile: format.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2005-04-04 08:03:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>#ifndef _SNARKFRONT_SHA_1_HPP_
#define _SNARKFRONT_SHA_1_HPP_
#include <array>
#include <cstdint>
#include "Alg.hpp"
#include "Alg_uint.hpp"
#include "AST.hpp"
#include "BitwiseAST.hpp"
#include "BitwiseINT.hpp"
#include "Lazy.hpp"
#include "SecureHashStd.hpp"
namespace snarkfront {
//////////////////... |
<commit_before>// This file is part of SKLib: https://github.com/Secoh/SKLib
// Copyright [2019-2021] Secoh
//
// Licensed under the GNU Lesser General Public License, Version 2.1 or later. See: https://www.gnu.org/licenses/
// You may not use this file except in compliance with the License.
// Software is distributed ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.