text stringlengths 54 60.6k |
|---|
<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
*
*... |
<commit_before>/***************************************************************************
* Copyright (c) 2016, Johan Mabille and Sylvain Corlay *
* *
* Distributed under the terms of the BSD 3-Clause License. ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tkthrobber.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: kz $ $Date: 2008-04-04 10:55:58 $
*
* The Contents of this file are mad... |
<commit_before>//===-- Clustering.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>/**************************************************************************
*
* Copyright 2011-2012 Jose Fonseca
* 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
*... |
<commit_before>/* -*- indent-tabs-mode: nil -*- */
#include <gflags/gflags.h>
#include <glog/logging.h>
#include <gtest/gtest.h>
#include <set>
#include <string>
#include "database.h"
#include "file_db.h"
#include "file_storage.h"
#include "sqlite_db.h"
#include "test_db.h"
#include "test_signer.h"
#include "util.h"
... |
<commit_before>#include <string>
#include <sstream>
#include <time.h>
#include <sys/time.h>
#include "log_service_impl.h"
using namespace rpc;
using namespace std;
using namespace rlog;
void RLogServiceImpl::log(const i32& level, const std::string& source, const i64& msg_id, const std::string& message) {
log_pi... |
<commit_before>#pragma once
#include "boost_defs.hpp"
#include "gcd_utility.hpp"
#include "session.hpp"
#include <boost/optional.hpp>
#include <boost/signals2.hpp>
#include <memory>
namespace krbn {
class console_user_id_monitor final {
public:
boost::signals2::signal<void(boost::optional<uid_t>)> console_user_id_... |
<commit_before>#include "GUI_ObjectSettings.hpp"
#include "GUI_ObjectList.hpp"
#include "OptionsGroup.hpp"
#include "wxExtensions.hpp"
#include "PresetBundle.hpp"
#include "libslic3r/Model.hpp"
#include <boost/algorithm/string.hpp>
#include "I18N.hpp"
#include "ConfigManipulation.hpp"
#include <wx/wupdlock.h>
name... |
<commit_before>/*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.... |
<commit_before>#include <gtest/gtest.h>
#include "../libjsapi.h"
rs::jsapi::Runtime rt_;
class ScriptExceptionTests : public ::testing::Test {
protected:
virtual void SetUp() {
}
virtual void TearDown() {
}
};
TEST_F(ScriptExceptionTests, test1) {
ASSER... |
<commit_before>#include <GarrysMod/Lua/Interface.h>
#include <GarrysMod/Lua/Helpers.hpp>
#include <GarrysMod/FunctionPointers.hpp>
#include <GarrysMod/InterfacePointers.hpp>
#include <detouring/classproxy.hpp>
#include <cstdint>
#include <string>
#include <unordered_set>
#include <algorithm>
#include <cctype>
#inclu... |
<commit_before>#include "qmljstypedescriptionreader.h"
#include "parser/qmljsparser_p.h"
#include "parser/qmljslexer_p.h"
#include "parser/qmljsengine_p.h"
#include "parser/qmljsnodepool_p.h"
#include "parser/qmljsast_p.h"
#include "parser/qmljsastvisitor_p.h"
#include "qmljsbind.h"
#include <QtCore/QIODevice>
#incl... |
<commit_before>#include <iostream>
#include <sstream>
#include <string>
#include "pixelboost/data/xml/xml.h"
#include "pixelboost/file/fileHelpers.h"
enum ShaderLanguage
{
kShaderLanguageGLSL,
kShaderLanguageHLSL,
};
enum ShaderType
{
kShaderTypeVertex,
kShaderTypeFragment,
};
bool ParseShaderGLSL(c... |
<commit_before>#include <iostream>
#include "moltengamepad.h"
#include <getopt.h>
#include <signal.h>
#include <stdio.h>
#include <csignal>
int parse_opts(moltengamepad::mg_options &options,int argc, char* argv[]);
volatile bool STOP_WORKING = true;
volatile bool QUIT_APPLICATION = false;
moltengamepad* app;
void sig... |
<commit_before>// Copyright (c) 2017-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 <chainparams.h>
#include <index/base.h>
#include <shutdown.h>
#include <tinyformat.h>
#include <ui_in... |
<commit_before>//individual.cpp
#include <vector>
#include <cstdlib>
#include "individual.hpp"
#include "utils.hpp"
Individual::Individual(){
expression = new Node();
}
Individual::~Individual(){
delete expression;
}
Node *Individual::crossover(double crossover_rate, Individual parent){
}
void Individual... |
<commit_before>/*!
* FrameRecevierConfigTest.cpp
*
* Created on: Feb 4, 2015
* Author: Tim Nicholls, STFC Application Engineering Group
*/
#include <boost/test/unit_test.hpp>
#include "FrameReceiverConfig.h"
namespace FrameReceiver
{
// This class, which is a friend of FrameReceiverConfig, allows test... |
<commit_before>/*
* Copyright (C) 2017 The Android Open Source Project
*
* 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 ... |
<commit_before>// RUN: %clang_cl_asan -O0 %s -Fe%t
// RUN: not %run %t 2>&1 | FileCheck %s
#include <stdio.h>
#include <string.h>
#include <malloc.h>
int main() {
char *ptr = _strdup("Hello");
int subscript = 1;
ptr[subscript] = '3';
printf("%s\n", ptr);
fflush(0);
// CHECK: H3llo
subscript = -1;
ptr[s... |
<commit_before>/*++
Copyright (c) 2006 Microsoft Corporation
Module Name:
bitvector.cpp
Abstract:
Simple bitvector implementation
Author:
Leonardo de Moura (leonardo) 2006-10-03.
Revision History:
--*/
#include<limits.h>
#include"bit_vector.h"
#include"trace.h"
#define DEFAULT_CAPACITY 2
#define M... |
<commit_before># i n c l u d e < |