text stringlengths 54 60.6k |
|---|
<commit_before>#include "indexer.h"
#include <gflags/gflags.h>
#include <stdarg.h>
DEFINE_bool(debug_index, false, "Debug the index query generator.");
static void debug(const char *format, ...) {
if (!FLAGS_debug_index)
return;
va_list ap;
va_start(ap, format);
vprintf(format, ap);
va_... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2014 Jolla Ltd.
** Contact: Raine Makelainen <raine.makelainen@jolla.com>
**
****************************************************************************/
/* This Source Code Form is subject to the terms of... |
<commit_before>#pragma once
#include <new>
#include <utility>
#include "_types.hh"
namespace zbs {
template <typename T> class func;
template <typename R, typename ...Args>
class func<R (Args...)> {
static R _invoke_func(void *data, Args &&...args) {
auto fp = reinterpret_cast<R (*)(Args...)>(data);
return (*f... |
<commit_before>/****************************************************************
* *
* zpar.lib.cpp - a library that can be used by python *
* *
* Author: Nitin Madnani ... |
<commit_before>#ifndef ZSTD_WRAP_H
#define ZSTD_WRAP_H
#include <nan.h>
#include <zstd.h>
class ZSTDWrap : public Nan::ObjectWrap {
public:
static NAN_MODULE_INIT(Init) {
v8::Local<v8::FunctionTemplate> tpl = Nan::New<v8::FunctionTemplate>(New);
tpl->SetClassName(Nan::New("ZSTD").ToLocalChecked());
tpl... |
<commit_before>#include <iostream>
#include <string>
#include <functional>
#include <cassert>
#include "calc\calculator.h"
const float DELTA = 0.001f;
bool equal(float a, float b) {
return (a + DELTA > b) && (a - DELTA < b);
}
float addTwo(float a, float notUsed) {
return a + 2;
}
float multiply(float a, float b... |
<commit_before>/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
#include <gecode/driver.hh>
#include <gecode/int.hh>
#include <gecode/minimodel.hh>
using namespace Gecode;
//
// g++ -g simple_dependency.cpp -lgecodesupport -lgecodekernel -lgecodeint -lgecodesearch -lgecodedriver -lpthread -ldl -ls... |
<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 "net/base/x509_certificate.h"
#include <CommonCrypto/CommonDigest.h>
#include <time.h>
#include "base/histogram.h"
#inc... |
<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 "net/base/x509_certificate.h"
// Work around https://bugzilla.mozilla.org/show_bug.cgi?id=455424
// until NSS 3.12.2 com... |
<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 "net/http/http_network_session.h"
#include <utility>
#include "base/logging.h"
#include "base/stl_util-inl.h"
#include "base... |
<commit_before>/*
Copyright (C) 2015 Claude SIMON (http://q37.info/contact/).
This file is part of dmnzq.
dmnzq 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) 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 "net/http/http_network_session.h"
#include "base/logging.h"
#include "net/http/http_auth_handler_factory.h"
#include "net/htt... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkOrderStatistics.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This softwa... |
<commit_before>/*
* See ffx.h for details.
*
* References:
* [FFX2] http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/proposedmodes/ffx/ffx-spec2.pdf
*/
#include "ffx/ffx.h"
#include <math.h>
#include <string>
#include "third_party/aes/aes.h"
namespace ffx {
static bool ValidateKey(const std::string & k... |
<commit_before>#include <mart-netlib/udp.hpp>
#include <mart-common/PrintWrappers.h>
#include <catch2/catch.hpp>
#include <iostream>
TEST_CASE( "udp_socket_simple_member_check1", "[net]" )
{
using namespace mart::nw::ip;
udp::endpoint e1 = {mart::nw::ip::address_any, mart::nw::ip::port_nr {1573}};
udp::endpoint e... |
<commit_before>#include "Edge.hpp"
#include "Node.hpp"
#include "PathNode.hpp"
#include "../util/Vector2fAdapter.hpp"
#include <cassert>
// Christopher D. Canfield
// October 2013
// Edge.cpp
using cdc::Edge;
using cdc::Node;
using cdc::PathNode;
Edge::Edge(cdc::Node& startNode) :
startNode(&startNode),
endNode(... |
<commit_before>// Petter Strandmark 2013.
//
// The code in this file will be incorporated in the main API
// when more compilers support C++14 generic lambdas.
//
#include <cmath>
#include <limits>
#include <random>
// Check if we’re using November 2013 CTP (or newer).
#ifdef _MSC_FULL_VER
#if _MSC_FULL_VER > 18002... |
<commit_before>// @(#)root/thread:$Id$
// Author: Xavier Valls March 2016
/*************************************************************************
* Copyright (C) 1995-2006, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>#include "line.hpp"
// Include standard headers
#include <cmath> // NAN, std::isnan, std::pow
#include <string> // std::string
#include <vector> // std::vector
namespace geometry
{
// constructor.
// can be used for creating n-dimensional lines.
Line::Line(const std::vector<float>... |
<commit_before>// Copyright (c) 2017 ASMlover. 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 o... |
<commit_before>#include <memory>
#include <SmurffCpp/Types.h>
#include <SmurffCpp/Types.h>
#include <SmurffCpp/Utils/counters.h>
#include <SmurffCpp/Utils/StateFile.h>
#include <SmurffCpp/Utils/MatrixUtils.h>
#include <SmurffCpp/result.h>
#include <SmurffCpp/ResultItem.h>
#include <SmurffCpp/Model.h>
#include <Smur... |
<commit_before>#ifndef PACKET_HPP
#define PACKET_HPP
#include <SFML/Network/Packet.hpp>
#include <vector>
#include <array>
#include <crc32.hpp>
#include <variadic.hpp>
#include <sorted_vector.hpp>
#include "serialized_packet.hpp"
struct color32;
namespace sf {
// Extend sf::Packet to handle 64bit types
#ifde... |
<commit_before>#include "helper.h"
#ifndef S_ISDIR
#define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR)
#endif
uint32_t _ntohl(uint8_t *val) {
return (uint32_t(val[0]) << 24) + (uint32_t(val[1]) << 16) +
(uint32_t(val[2]) << 8) + (uint32_t(val[3]));
}
uint8_t clamp(int32_t val) {
if (val < 0) {
return 0;
... |
<commit_before>#include "stack.hpp"
#include <catch.hpp>
#include <iostream>
using namespace std;
SCENARIO("count", "[count]"){
stack<int> s;
s.push(1);
REQUIRE(s.count()==1);
}
SCENARIO("push", "[push]"){
stack<int> s;
s.push(1);
REQUIRE(s.count()==1);
REQUIRE(s.top()==1);
}
SCENARIO("pop", "[pop]"){
... |
<commit_before>#include <matrix.hpp>
#include <catch.hpp>
#include <iostream>
using namespace std;
SCENARIO("matrix init", "[init]") {
Matrix matrix;
REQUIRE(matrix.rows() == 0);
REQUIRE(matrix.columns() == 0);
}
SCENARIO("params init", "[init with params]") {
int init = 5;
Matrix matrix(init, init);
REQUIRE(m... |
<commit_before>/* This file is part of the Vc library.
Copyright (C) 2009-2012 Matthias Kretz <kretz@kde.org>
Vc 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
th... |
<commit_before>/* This file is part of the Vc library. {{{
Copyright © 2009-2015 Matthias Kretz <kretz@kde.org>
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 copy... |
<commit_before>/*
* Copyright (C) 2007-2013 German Aerospace Center (DLR/SC)
*
* Created: 2012-10-17 Markus Litz <Markus.Litz@dlr.de>
*
* 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
*
* h... |
<commit_before>/*
C++ interface test
*/
#include "libmemcached/memcached.hh"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <time.h>
#include "server.h"
#include "test.h"
#include <string... |
<commit_before>#include <iostream>
using namespace std;
int& test(int& inval){
return inval;
}
auto test2(int& inval) -> decltype(test(inval)){
return test(inval);
}
int main(){
int x = 1;
cout<<x<<endl;
int& try1=test(x);
cout<<try1<<endl;
x=2;
cout<<try1<<endl;
x=1;
int &try2=t... |
<commit_before>/*
This file is part of the CVD Library.
Copyright (C) 2005 The Authors
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.1 of the License, or (at your opt... |
<commit_before>/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* Copyright (C) 2013 Red Hat, Inc.
*
* Licensed under the GNU Lesser General Public License Version 2.1
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General... |
<commit_before>/*
This file is part of cpp-ethereum.
cpp-ethereum is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
cpp-ethereum is dis... |
<commit_before>
#pragma GCC diagnostic ignored "-Wconversion"
#include <libdevcrypto/SHA3.h>
#include <libethcore/Params.h>
#include <libevm/ExtVMFace.h>
#include "Utils.h"
extern "C"
{
#ifdef _MSC_VER
#define EXPORT __declspec(dllexport)
#else
#define EXPORT
#endif
using namespace dev;
using namespace dev:... |
<commit_before>
#pragma GCC diagnostic ignored "-Wconversion"
#include <libdevcore/SHA3.h>
#include <libevmcore/Params.h>
#include <libevm/ExtVMFace.h>
#include <evmjit/DataTypes.h>
#include "Utils.h"
extern "C"
{
#ifdef _MSC_VER
#define EXPORT __declspec(dllexport)
#else
#define EXPORT
#endif
using namespac... |
<commit_before>/*
This file is part of libkcal.
Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
ver... |
<commit_before>/*
This file is part of libkcal.
Copyright (c) 2001,2004 Cornelius Schumacher <schumacher@kde.org>
Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public... |
<commit_before>#include <qpdf/QPDFParser.hh>
#include <qpdf/QPDF.hh>
#include <qpdf/QPDFObjectHandle.hh>
#include <qpdf/QPDF_Array.hh>
#include <qpdf/QTC.hh>
#include <qpdf/QUtil.hh>
#include <qpdf/SparseOHArray.hh>
namespace
{
struct StackFrame
{
StackFrame(std::shared_ptr<InputSource> input) :
... |
<commit_before>#include <qpdf/QPDF_Array.hh>
#include <stdexcept>
QPDF_Array::QPDF_Array(std::vector<QPDFObjectHandle> const& items) :
items(items)
{
}
QPDF_Array::~QPDF_Array()
{
}
void
QPDF_Array::releaseResolved()
{
for (std::vector<QPDFObjectHandle>::iterator iter = this->items.begin();
iter != this->i... |
<commit_before>/*
* Copyright (C) 2016 deipi.com LLC and contributors. All rights reserved.
*
* 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 limit... |
<commit_before>695afefc-2e4e-11e5-9284-b827eb9e62be<commit_msg>69602896-2e4e-11e5-9284-b827eb9e62be<commit_after>69602896-2e4e-11e5-9284-b827eb9e62be<|endoftext|> |
<commit_before>df320690-2e4c-11e5-9284-b827eb9e62be<commit_msg>df36f394-2e4c-11e5-9284-b827eb9e62be<commit_after>df36f394-2e4c-11e5-9284-b827eb9e62be<|endoftext|> |
<commit_before>9fb3faa4-2e4d-11e5-9284-b827eb9e62be<commit_msg>9fb8e8c0-2e4d-11e5-9284-b827eb9e62be<commit_after>9fb8e8c0-2e4d-11e5-9284-b827eb9e62be<|endoftext|> |
<commit_before>e2f4d320-2e4c-11e5-9284-b827eb9e62be<commit_msg>e2f9d35c-2e4c-11e5-9284-b827eb9e62be<commit_after>e2f9d35c-2e4c-11e5-9284-b827eb9e62be<|endoftext|> |
<commit_before>621d9744-2e4e-11e5-9284-b827eb9e62be<commit_msg>6222a932-2e4e-11e5-9284-b827eb9e62be<commit_after>6222a932-2e4e-11e5-9284-b827eb9e62be<|endoftext|> |
<commit_before>f2c7cb8e-2e4e-11e5-9284-b827eb9e62be<commit_msg>f2ccc684-2e4e-11e5-9284-b827eb9e62be<commit_after>f2ccc684-2e4e-11e5-9284-b827eb9e62be<|endoftext|> |
<commit_before><commit_msg>warning C4702: unreachable code<commit_after><|endoftext|> |
<commit_before>800710b0-2e4d-11e5-9284-b827eb9e62be<commit_msg>800c0610-2e4d-11e5-9284-b827eb9e62be<commit_after>800c0610-2e4d-11e5-9284-b827eb9e62be<|endoftext|> |
<commit_before>96105a56-2e4d-11e5-9284-b827eb9e62be<commit_msg>96156afa-2e4d-11e5-9284-b827eb9e62be<commit_after>96156afa-2e4d-11e5-9284-b827eb9e62be<|endoftext|> |
<commit_before>//----------------------------------*-C++-*----------------------------------//
/*!
* \file cxx11/tstLoops.cc
* \author Thomas M. Evans
* \date Wed May 07 22:49:15 2014
* \brief C++-11 Loop testing.
* \note Copyright (C) 2014 Oak Ridge National Laboratory, UT-Battelle, LLC.
*/
//------------... |
<commit_before>//===-LTOCodeGenerator.cpp - LLVM Link Time Optimizer ---------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "CopyTilesRenderer.h"
#include "SkBitmap.h"
#include "SkDevice.h"
#include "SkCommandLineFlags.h"
#include "SkGraphics.h"
#include "SkImageDecoder.h"
#... |
<commit_before>/*************************************************************************
*
* $RCSfile: tempfile.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: hro $ $Date: 2002-07-08 09:01:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before><commit_msg>-Werror,-Wunused-function<commit_after><|endoftext|> |
<commit_before>#include "TEntryListArray.h"
#include "TLeaf.h"
#include "TROOT.h"
#include "TTree.h"
#include "TTreeReader.h"
#include "TTreeReaderValue.h"
#include "TTreeReaderArray.h"
#include "gtest/gtest.h"
TTree* MakeTree() {
double x[3]{};
float z = 0.;
struct {
unsigned int ny;
int* y = nu... |
<commit_before>#pragma once
#include "stdafx.h"
/*
static std::map<std::string,void*> s_InitializationMap; //ʼֵ
inline void InitInitializationMap() //ʼʼֵ
{
s_InitializationMap[typeid(int).name()] = new int(0);
s_InitializationMap[typeid(float).name()] = new float(0.00f);
s_InitializationMap[typeid(double).name(... |
<commit_before>/******************************************************************************\
* File: lexers.cpp
* Purpose: Implementation of wxExLexers classes
* Author: Anton van Wezenbeek
* RCS-ID: $Id$
*
* Copyright (c) 2008-2009 Anton van Wezenbeek
* All rights are reserved. Reproduc... |
<commit_before>/**
* @{
* \copyright TU Dresden ZIH. All rights reserved.
* \authors Martin Flehmig, Marc Hartung, Marcus Walther
* \date Oct 2015
*/
#ifndef INCLUDE_STDAFX_HPP_
#define INCLUDE_STDAFX_HPP_
#include <cstring>
#include <cmath>
#include <string>
#include <sstream>
#include <fstream>
#include <... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011-2014.
// Distributed under the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================================... |
<commit_before>/*
* MPT C++ buffer implementation
*/
#include <cerrno>
#include <sys/uio.h>
#include "message.h"
#include "convert.h"
#include "../mptio/stream.h"
#include "array.h"
__MPT_NAMESPACE_BEGIN
// buffer instance
Buffer::Buffer(array const &a)
{
_d = a;
_state.done = _d.length();
}
Buffer::~B... |
<commit_before>/* This file is part of Mapnik (c++ mapping toolkit)
* Copyright (C) 2005 Artem Pavlenko
*
* Mapnik 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, or an... |
<commit_before>/*!
* MPT C++ stream implementation
*/
#include <inttypes.h>
#include <cstring>
#include <cstdio>
#include <cerrno>
#include <poll.h>
#include <sys/uio.h>
#include "queue.h"
#include "array.h"
#include "message.h"
#include "output.h"
#include "meta.h"
#include "stream.h"
__MPT_NAMESPACE_BEGIN
... |
<commit_before>//******************************************************************
//
// Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use th... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtSystems module of the Qt Toolkit.
**
** $QT_BEGI... |
<commit_before>#include <iostream>
#include "occa.hpp"
int main(int argc, char **argv){
int entries = 5;
float *a = new float[entries];
float *b = new float[entries];
float *ab = new float[entries];
for(int i = 0; i < entries; ++i){
a[i] = (float) i;
b[i] = (float) (1 - i);
ab[i] = 0;
... |
<commit_before>#pragma once
// blas_utils.hpp : include file containing templated utilities to work with vectors and matrices
//
// Copyright (C) 2017-2018 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
#include <random>
//... |
<commit_before>//
// Created by tag on 03/01/17.
//
#include "networktools.h"
/* A simple server in the internet domain using TCP
The port number is passed as an argument */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <neti... |
<commit_before>#pragma once
#include <agency/detail/config.hpp>
#include <agency/detail/factory.hpp>
#include <agency/detail/optional.hpp>
#include <agency/detail/index_cast.hpp>
#include <agency/detail/shape_cast.hpp>
#include <utility>
#include <type_traits>
namespace agency
{
namespace detail
{
template<class In... |
<commit_before>/* ==================================================================================================
# Copyright 2014 vpon, Inc.
# --------------------------------------------------------------------------------------------------
# Licensed under the Apache License, Version 2.0 (the "License");
# you ma... |
<commit_before>/*******************************************************************************
Copyright (c) 2016, Manuel Freiberger
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* R... |
<commit_before>/*
* PolygonParser.cpp
*
* Created on: 22 Aug 2015
* Author: makrai
*/
#include "PolygonParser.h"
#include <fstream>
#include <stdlib.h>
#include <cmath>
#ifdef _DEBUG_
#include <iostream>
using namespace std;
#endif
void PolygonParser::parse(const char* fileName, unsigned char* buffer, in... |
<commit_before>//=============================================================================
//File Name: ITG3200_ADXL345.cpp
//Description: Implements a Kalman filter with the I2C IMU with the ITG3200
// 3-axis gyro and the ADXL345 3-axis accelerometer
//Author: FRC Team 3512, Spartatroniks
//===========... |
<commit_before>#include <cstdlib>
#include <iostream>
#include <stdio.h>
#include <fstream>
#include <vector>
#include <unistd.h>
using namespace std;
#include "bgzf.h"
#include "grabix.h"
int usage()
{
cout << "usage: grabix index bgzf_file " << endl;
cout << " grabix grab bgzf_file line_start [line_en... |
<commit_before>/*****************************************************************************
* Project: BaBar detector at the SLAC PEP-II B-factory
* Package: RooFitCore
* File: $Id: RooGenContext.cc,v 1.21 2001/10/17 05:03:59 verkerke Exp $
* Authors:
* DK, David Kirkby, Stanford University, kirkby@hep.stan... |
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <algorithm>
#include <string>
#include <vector>
#include "base/bind.h"
#include "base/memory/scoped_ptr.h"
#include "base/mes... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: TestISIReader.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
T... |
<commit_before>#include "client.h"
#include "settings.h"
#include "trafficbudgetmanager.h"
#include "network/networkmanager.h"
#include "log/logger.h"
#include <QReadLocker>
#include <QWriteLocker>
#include <QTimer>
LOGGER(TrafficBudgetManager);
class TrafficBudgetManager::Private : public QObject
{
Q_OBJECT
p... |
<commit_before>/*
KControl Module for general Telepathy integration configs
Copyright (C) 2011 Martin Klapetek <martin.klapetek@gmail.com>
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 Softw... |
<commit_before>/*************************************************************************
*
* $RCSfile: cmtree.cxx,v $
*
* $Revision: 1.32 $
*
* last change: $Author: hr $ $Date: 2003-03-19 16:19:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>/* go_account.cc
Michael Burkat, 9 February 2015
Copyright (c) 2015 Datacratic Inc. All rights reserved.
Go account implementation.
*/
#include "go_account.h"
using namespace std;
namespace RTBKIT {
// Go Account
GoAccount::GoAccount(const AccountKey &key, GoAccountType type)
:type(typ... |
<commit_before>// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "bin/vmservice_dartium.h"
#include "bin/builtin.h"
#include "bin/dartutils.h"
... |
<commit_before>/*************************************************************************
*
* $RCSfile: morebtn.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: obo $ $Date: 2005-01-03 17:40:26 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: spinbtn.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: hr $ $Date: 2006-01-26 18:08:23 $
*
* The Contents of this file are made a... |
<commit_before>/*************************************************************************
*
* $RCSfile: threadex.cxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-09-18 17:05:39 $
*
* The Contents of this file are made available subject to the terms of
* either of the following l... |
<commit_before><commit_msg>refactor PrintDialog to use RenderContex<commit_after><|endoftext|> |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a ... |
<commit_before>#include <string>
#include <obs-module.h>
#include "nicookie.h"
#include "nico-live-api.hpp"
#include "nicolive-errno.h"
#include "nicolive-log.h"
namespace
{
char *acquired_session = nullptr;
inline void nicolive_api_set_session(const char *str)
{
if (acquired_session != nullptr) {
bfree(acquired_se... |
<commit_before>/**
* Clever programming language
* Copyright (c) Clever Team
*
* This file is distributed under the MIT license. See LICENSE for details.
*/
#include "core/value.h"
#include "core/vm.h"
#include "types/array.h"
#include "types/function.h"
namespace clever {
void* ArrayType::allocData(CLEVER_TYPE... |
<commit_before>/* This software is released under the BSD License.
|
| Copyright (c) 2014-2015, Kevin P. Barry [ta0kira@gmail.com]
| All rights reserved.
|
| Redistribution and use in source and binary forms, with or without
| modification, are permitted provided that the following conditions are met:
... |
<commit_before>#ifndef cipClientCapi_h
#define cipClientCapi_h
/* $Header$ */
/**
* @file cipClientCapi.H
* @brief Cronus & IP eCMD Extension
* Extension Owner : Chris Engel
*/
//--------------------------------------------------------------------
// Includes
//---------------------------------------------------... |
<commit_before>#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <dtkCore/dtkPluginManager.h>
#include <medSql/medDatabaseController.h>
#include <medSql/medDatabaseImporter.h>
#include <medCore/medStorage.h>
#include <medCore/medDataIndex.h>
#include <QtCore>
bool checkDirectoryHierarchyAndThumbna... |
<commit_before>// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "vm/globals.h"
#if defined(HOST_OS_WINDOWS)
#include "vm/virtual_memory.h"
#i... |
<commit_before><commit_msg>Use new char[] to match the delete[]. To fix a valgrind error.<commit_after><|endoftext|> |
<commit_before>//
// Keyboard.h
// Clock Signal
//
// Created by Thomas Harte on 08/05/2019.
// Copyright © 2019 Thomas Harte. All rights reserved.
//
#ifndef Keyboard_hpp
#define Keyboard_hpp
namespace Apple {
namespace Macintosh {
class Keyboard {
public:
void set_input(bool data) {
}
bool get_clock() ... |
<commit_before>#include "AliGFWFilter.h"
using namespace GFWFlags;
AliGFWFilter::AliGFWFilter():
fRetFlags(0),
flTrFlag(0),
fEventFlag(0),
fTrackMasks({}),
fNTrMasks(0),
fEventMasks({}),
fNEvMasks(0),
fAODTrack(0),
fEventCuts(0),
fPtMin(0.2),
fPtMax(3.0),
fEtaMin(-0.8),
fEtaMax(0.8)
{
};
AliGF... |
<commit_before>/*
//
// Function to dump recursivally in human readable format, content of the objects + example use case
//
//
.L $mcProd/dumpObject.C+
ExampleUse(); > AliTPCClusterParam.dump
AliTPCRecoParam param;
DumpObjectRecursive(¶m); >> AliTPCRecoParam.dump
Use case examples
1.) comp... |
<commit_before>#pragma once
#include <algorithm> // fill
#include <cassert>
#include <functional> // hash
#include <tuple>
#include <type_traits> // enable_if
#include <utility> // make_pair, pair
#include "sdd/util/next_power.hh"
#include "sdd/util/packed.hh"
namespace sdd { namespace mem {
/*--------------... |
<commit_before>// cpsm - fuzzy path matcher
// Copyright (C) 2015 Jamie Liu
//
// 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
//
// Unle... |
<commit_before>/*
* Copyright (C) 2012 by Glenn Hickey (hickey@soe.ucsc.edu)
*
* Released under the MIT license, see LICENSE.txt
*/
#include <cstdlib>
#include <iostream>
#include <cassert>
#include <fstream>
#include "sgbuilder.h"
#include "sgsql.h"
using namespace std;
using namespace hal;
static CLParserPt... |
<commit_before>/*
Copyright (c) 2006, Arvid Norberg
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 condi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.