text stringlengths 54 60.6k |
|---|
<commit_before>#include "IfNode.h"
#include "../Parser.h"
#include <assert.h>
namespace Language {
IfNode* IfNode::parse(Parser& parser) {
IfNode* node = new IfNode();
node->setStatement(true);
assert(parser.next().type() == Token::Type::KeywordIf);
// parse the condition
... |
<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>#pragma once
// `krbn::grabber_alerts_monitor` can be used safely in a multi-threaded environment.
#include "constants.hpp"
#include "file_monitor.hpp"
#include "filesystem.hpp"
#include "json_utility.hpp"
#include "logger.hpp"
#include <fstream>
namespace krbn {
class grabber_alerts_monitor final {
p... |
<commit_before><commit_msg>INTEGRATION: CWS mav09 (1.5.82); FILE MERGED 2004/07/15 10:50:00 mba 1.5.82.1: #i27773#: XMLFilter needs additional parameter<commit_after><|endoftext|> |
<commit_before>/****************************************************************************
**
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/
**
** This file is part of the QtLocation module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser Gene... |
<commit_before>//===- ProfileVerifierPass.cpp - LLVM Pass to estimate profile info -------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#pragma once
#include <iostream>
#include <iomanip>
#include <string>
#include <chrono>
// ----------------------------------------------------------------------
enum class report_time { No, Yes };
class Timeit
{
public:
inline Timeit(std::string msg, report_time aReport = report_time::Yes, std:... |
<commit_before>#include <catch.hpp>
#include <luwra.hpp>
#include <iostream>
using namespace luwra;
TEST_CASE("RefHandle") {
StateWrapper state;
state.loadStandardLibrary();
state["didCollect"] = false;
REQUIRE(state.runString(
"return setmetatable({}, {\n"
"__gc = function () didCollect = true end"
"})... |
<commit_before>#include "itkCommandLineArgumentParser.h"
#include "itkImage.h"
#include "itkRescaleIntensityImageFilter.h"
//#include "itkNumericTraits.h"
#include "itkImageFileReader.h"
#include "itkImageFileWriter.h"
//-------------------------------------------------------------------------------------
/** run: ... |
<commit_before>//===-- PrologEpilogInserter.cpp - Insert Prolog/Epilog code in function --===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
... |
<commit_before>//===- StrongPhiElimination.cpp - Eliminate PHI nodes by inserting copies -===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Owen Anderson and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===-----... |
<commit_before>//===--- CrossTranslationUnit.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>#ifndef __STAN__PROB__DISTRIBUTIONS__UNIVARIATE__CONTINUOUS__INV_GAMMA_HPP__
#define __STAN__PROB__DISTRIBUTIONS__UNIVARIATE__CONTINUOUS__INV_GAMMA_HPP__
#include <stan/agrad.hpp>
#include <stan/math/error_handling.hpp>
#include <stan/math/special_functions.hpp>
#include <stan/meta/traits.hpp>
#include ... |
<commit_before>#include "Log.h"
#include "utils/FileSystemUtil.h"
#include "platform.h"
#include <iostream>
LogLevel Log::reportingLevel = LogInfo;
FILE* Log::file = NULL; //fopen(getLogPath().c_str(), "w");
LogLevel Log::getReportingLevel()
{
return reportingLevel;
}
std::string Log::getLogPath()
{
std::string h... |
<commit_before>//===- ValueMapper.cpp - Interface shared by lib/Transforms/Utils ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before><commit_msg>cleanup chainparams.cpp<commit_after><|endoftext|> |
<commit_before>//===----------------------------------------------------------------------===//
//
// Peloton
//
// catalog_cache.cpp
//
// Identification: src/catalog/catalog_cache.cpp
//
// Copyright (c) 2015-17, Carnegie Mellon University Database Group
//
//===-------------------------------... |
<commit_before>/*
* Copyright (c) 2008 James Molloy, Jörg Pfähler, Matthew Iselin
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE... |
<commit_before>/*
// License Agreement (3-clause BSD License)
// Copyright (c) 2015, Klaus Haag, all rights reserved.
// Third party copyrights and patents are property of their respective owners.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the f... |
<commit_before>#ifndef VARIADIC_TEMPLATES_HPP
#define VARIADIC_TEMPLATES_HPP
/*
We need to implement variadic template function that takes arbitrary number
of arguments of unknown types and it should return sum of the arguments with
type int.
*/
#include <iostream>
namespace Templates::VariadicTemplates {
template<... |
<commit_before>/*
Copyright (c) 2010, The Cinder Project (http://libcinder.org)
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 n... |
<commit_before>/*
This is just a fast checksum to replace the old CRC32, nothing much here.
It hashes 4x4 (16) bytes at a time then merges them at the end.
*/
#ifndef CHECKSUM_H
#define CHECKSUM_H
#include "format.hpp"
class Checksum
{
private:
inline unsigned int Load32(unsigned char *p);
public:
unsigned int... |
<commit_before>#include "StateMachine.h"
#include "Timing.h"
#include "Graphics.h"
#include "Quirks.h"
#include "map/Map.h"
#include "map/StateMap.h"
#include "utility/misc.h"
#include "piaf/Archive.h"
using namespace WalrusRPG;
using WalrusRPG::PIAF::Archive;
int main(int argc, char *argv[])
{
UNUSED(argc);
... |
<commit_before>/*
Copyright 2011 Joe Hermaszewski. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list... |
<commit_before><commit_msg>coverity#705172 Missing break in switch<commit_after><|endoftext|> |
<commit_before>#include <poddlthread.h>
#include <curl/curl.h>
#include <iostream>
#include <logger.h>
#include <config.h>
#include <utils.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/utsname.h>
#include <unistd.h>
#include <libgen.h>
using namespace newsbeuter;
namespace podbeuter {
static size_t ... |
<commit_before>#ifndef CONTROLLER_HPP
#define CONTROLLER_HPP
#include "Position6DOF.hpp"
#include "Formation.hpp"
#include "ros/ros.h"
//Ros messages/services
#include "api_application/MoveFormation.h" // ? (D)
#include "../matlab/Vector.h"
#include "control_application/quadcopter_movement.h" // ? (D)
#include "api_ap... |
<commit_before>//
// Copyright(c) 2015 Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
//
// spdlog usage example
//
//
#define SPDLOG_TRACE_ON
#define SPDLOG_DEBUG_ON
#include "spdlog/sinks/daily_file_sink.h"
#include "spdlog/sinks/rotating_file_sink.h"
#include "spdlog/sink... |
<commit_before>#include <iostream>
#include <map>
#include "api/license++.h"
#include "pc-identifiers.h"
#include "ini/SimpleIni.h"
using namespace std;
int main(int argc, char *argv[])
{
map<EVENT_TYPE, string> stringByEventType;
stringByEventType[LICENSE_OK ] = "OK ";
stringByEventT... |
<commit_before><commit_msg>A little notice for my code<commit_after><|endoftext|> |
<commit_before>/* This file is part of Strigi Desktop Search
*
* Copyright (C) 2006 Jos van den Oever <[email protected]>
*
* 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; eithe... |
<commit_before>#include "./default_scene_creator.h"
#include <Eigen/Core>
#include <Eigen/Geometry>
#include <string>
#include <vector>
#include <random>
#include "./importer.h"
#include "./nodes.h"
#include "./mesh_node.h"
#include "./meshes_node.h"
#include "./label_node.h"
#include "./volume_node.h"
#include "./came... |
<commit_before>/// \file Debugger.cpp
#include "chi/Debugger.hpp"
#include <chi/Context.hpp>
#include <chi/LLVMVersion.hpp>
#include <chi/NameMangler.hpp>
#include <chi/NodeInstance.hpp>
#include <chi/Result.hpp>
#include <boost/filesystem.hpp>
#include <boost/uuid/uuid_io.hpp>
#if LLVM_VERSION_LESS_EQUAL(3, 9)
#in... |
<commit_before>#include <libdariadb/interfaces/icallbacks.h>
#include <thread>
using namespace dariadb;
IReadCallback::IReadCallback() {
is_end_called = false;
is_cancel = false;
}
IReadCallback::~IReadCallback() {}
void IReadCallback::is_end() {
is_end_called = true;
}
void IReadCallback::wait() {
// TODO ... |
<commit_before><commit_msg>tableindex: Evaluate predicate once<commit_after><|endoftext|> |
<commit_before>#include <iostream>
#include <ref/Class.hpp>
#include <ref/DescriptorsImpl.ipp>
#include <ref/utils/JsonSerializer.hpp>
using namespace ref;
struct Animal;
// Structural features (attributes)
struct Name : String {};
struct Surname : String {};
struct Age : UInt32 {};
struct Alive : Bool {};
... |
<commit_before>// The libMesh Finite Element Library.
// Copyright (C) 2002-2021 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
// 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; eit... |
<commit_before>
/* ****************************************************************************
*
* FILE DelilahUtils.cpp
*
* AUTHOR Andreu Urruela
*
* PROJECT Samson
*
* DATE 8/31/11
*
* DESCRIPTION
*
* Copyright 2011 Andreu Urruela. All rights reserved.
*
* ******... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2006 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named LICENSE that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before><commit_msg>Start dynification tests<commit_after><|endoftext|> |
<commit_before>#include <boost/thread/mutex.hpp>
#include "gt/model/common.hpp"
namespace GT {
namespace Model {
////////////////////////////////////////////////////////////////////////////////
boost::mutex nullFactoryMutex;
////////////////////////////////////////////////////////////////////////////////
// class... |
<commit_before>/*
Copyright (c) 2008 Bertjan Broeksema <[email protected]>
Copyright (c) 2008 Volker Krause <[email protected]>
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 Fou... |
<commit_before>/*
* Copyright (c) 2011. Philipp Wagner <bytefish[at]gmx[dot]de>.
* Released to public domain under terms of the BSD Simplified license.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributio... |
<commit_before>//
// Copyright (c) .NET Foundation and Contributors
// See LICENSE file in the project root for full license information.
//
#include "nf_rt_native.h"
HRESULT Library_nf_rt_native_System_Environment::get_TickCount64___STATIC__I8(CLR_RT_StackFrame &stack)
{
NATIVE_PROFILE_CLR_CORE();
NANOCLR_HE... |
<commit_before>#include <iostream>
#include <map>
#include <memory>
#include <string>
#include <time.h>
#include <vector>
#include "aggregate_bandwidth.cpp"
#include "aggregate_bandwidth.hpp"
#include "bytes_object.hpp"
#include "log_results.hpp"
#include <derecho/conf/conf.hpp>
#include <derecho/core/derecho.hpp>
#in... |
<commit_before>#pragma once
#include "blob_interface.hpp"
#include "ipmi_interface.hpp"
#include <memory>
namespace ipmiblob
{
class BlobHandler : public BlobInterface
{
public:
enum BlobOEMCommands
{
bmcBlobGetCount = 0,
bmcBlobEnumerate = 1,
bmcBlobOpen = 2,
bmcBlobRead =... |
<commit_before>/*
* author: Max Kellermann <[email protected]>
*/
#include "istream_iconv.hxx"
#include "FacadeIstream.hxx"
#include "util/Cast.hxx"
#include "util/ForeignFifoBuffer.hxx"
#include <iconv.h>
#include <assert.h>
#include <errno.h>
class IconvIstream final : public FacadeIstream {
static constexpr si... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation ([email protected])
**
** This file is part of libmeegotouch.
**
** If you have questions regarding t... |
<commit_before>/* -*- mode: c++; indent-tabs-mode: nil -*- */
/* -----------------------------------------------------------------------------
ATS
Authors: Ethan Coon ([email protected])
FieldEvaluator for enthalpy.
----------------------------------------------------------------------------- */
#include "enthalpy_e... |
<commit_before>#include "WordModifier.h"
WordModifier::WordModifier()
{
//ctor
}
<commit_msg>Update WordModifier.cpp<commit_after>#include "WordModifier.h"
#include <string>
WordModifier::WordModifier(std::string form)
: form(form)
{
}
<|endoftext|> |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation ([email protected])
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<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 "Lice... |
<commit_before>/*
Copyright (c) 2012 Carsten Burstedde, Donna Calhoun
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 ... |
<commit_before>/****************************************************************************
*
* Copyright (C) 2018 PX4 Development Team. 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>// Copyright (c) 2015 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/common/native_mate_converters/net_converter.h"
#include <string>
#include <vector>
#include "atom/common/native_mate_converters/gurl_converter.h"
#inclu... |
<commit_before>//
// Copyright (c) 2015 CNRS
// Author: Mylene Campana, Joseph Mirabel
//
//
// This file is part of hpp-core
// hpp-core 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... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation ([email protected])
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>#include <stan/math/error_handling/matrix/check_spsd_matrix.hpp>
#include <gtest/gtest.h>
TEST(MathErrorHandlingMatrix, checkSpsdMatrixPosDef) {
Eigen::Matrix<double,Eigen::Dynamic,Eigen::Dynamic> y;
double result;
y.resize(3,3);
y << 2, -1, 0, -1, 2, -1, 0, -1, 2;
EXPECT_TRUE(stan::math::c... |
<commit_before>#include <stan/math/error_handling/matrix/check_unit_vector.hpp>
#include <gtest/gtest.h>
TEST(MathErrorHandlingMatrix, checkUnitVector) {
Eigen::Matrix<double,Eigen::Dynamic,1> y(2);
double result;
y << sqrt(0.5), sqrt(0.5);
EXPECT_TRUE(stan::math::check_unit_vector("checkUnitVector(%1%)",
... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation ([email protected])
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LG... |
<commit_before>/**
* This file is part of the CernVM File System.
*/
#include "cvmfs_config.h"
#include "tracer.h"
#include <pthread.h>
#include <cassert>
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
#include "atomic.h"
#include "util/posix.h"
#include "util/string.h... |
<commit_before>// Query binary phrase tables.
// Christian Hardmeier, 16 May 2010
#include <cstdlib>
#include <cstring>
#include <string>
#include <vector>
#include "util.h"
#include "OnDiskWrapper.h"
#include "SourcePhrase.h"
using namespace std;
using namespace OnDiskPt;
void usage();
typedef unsigned int uint;
... |
<commit_before>/*
* server_test.cpp
*
* Created on: Jan 16, 2013
* Author: mfleder
*/
#include <stdio.h>
#include <boost/shared_ptr.hpp>
#include "affordance/AffordanceState.h"
//#include "affordance/OpenGL_Affordance.h"
#include <iostream>
using namespace boost;
using namespace std;
using namespace afford... |
<commit_before>/*=========================================================================
*
* Copyright David Doria 2012 [email protected]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the L... |
<commit_before>#include <string>
#include <cmath>
#include <memory>
#include <itkSpatialObjectReader.h>
#include <itkSpatialObjectWriter.h>
#include <vtkVersionMacros.h>
#include <vtkPolyData.h>
#include <vtkPointData.h>
#include <vtkPolyDataReader.h>
#include <vtkXMLPolyDataReader.h>
#include <vtkPolyDataWriter.h>
#i... |
<commit_before>//
// Copyright (c) 2008-2014 the Urho3D 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 rights
// to... |
<commit_before>// Copyright 2016 Vladimir Alyamkin. All Rights Reserved.
#include "VaRestPluginPrivatePCH.h"
#include "Base64.h"
//////////////////////////////////////////////////////////////////////////
// Helpers
FString UVaRestLibrary::PercentEncode(const FString& Source)
{
FString OutText = Source;
OutText = ... |
<commit_before>//
// Created by tseyler on 2/9/16.
//
#include <iostream>
#include "sipproxy_pipeline.hpp"
#include <core/data/proto_net_pipe.hpp>
void
sipproxy_pipeline::ps_pipeline(const proto_net_in_data& req_data, proto_net_out_data& res_data)
{
proto_net_pipe pipe(req_data);
proto_net_data data_in = req... |
<commit_before>#include "Server.h"
#include "logging.h"
Server::Server(const char* localIP, int port){
this->localIP = std::string(localIP);
this->port = port;
sizeAddressClient = sizeof(struct sockaddr);
msg = new char[MAXMSG+1];
/*
* Configurações do endereço
*/
memset(&address, 0, sizeof(address));... |
<commit_before>#include <KAI/Core/Detail/Function.h>
#include "MyTestStruct.h"
USING_NAMESPACE_KAI
using namespace std;
bool funCalled[5];
// just making some functions that we will also add to the runtime soon
void Function_0()
{
funCalled[0] = true;
}
void Function_1(int )
{
funCalled[1] = true;
}
String Fun... |
<commit_before>//
// JdEnvironment.h
// Jigidesign
//
// Created by Steven Massey on 8/24/16.
// Copyright © 2016 Jigidesign. All rights reserved.
//
#ifndef JdEnvironment_h
#define JdEnvironment_h
//#include "JdLibraryManager.h"
#include "JdServer.h"
#include "JdLibraryFactory.h"
#include "IJdBroadcaster.h"
#i... |
<commit_before>/*
* File: Connection.cpp
* Author: Paolo D'Apice
*
* Created on May 24, 2012, 3:43 PM
*/
#include "net/distribute/Connection.hpp"
#include <boost/bind.hpp>
#include <glog/logging.h>
using ba::ip::tcp;
using std::string;
namespace {
/// Connection ID sequence.
unsigned i = 0;
}
// Get conne... |
<commit_before>/*
* File: Connection.cpp
* Author: Paolo D'Apice
*
* Created on May 24, 2012, 3:43 PM
*/
#include "net/distribute/Connection.hpp"
#include <boost/bind.hpp>
#include <glog/logging.h>
using ba::ip::tcp;
using std::string;
namespace {
/// Connection ID sequence.
unsigned i = 0;
}
// Get conne... |
<commit_before>/*=========================================================================
Program: DICOM for VTK
Copyright (c) 2012-2017 David Gobbi
All rights reserved.
See Copyright.txt or http://dgobbi.github.io/bsd3.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
... |
<commit_before>/***************************************************************************
* Copyright (c) Juergen Riegel ([email protected]) 2014 *
* Copyright (c) Alexander Golubev (Fat-Zer) <[email protected]> 2015 *
* ... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WIT... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2016 PX4 Development Team. 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>#include "RenderManager.hpp"
#include <GL/glew.h>
#include "../Manager/Managers.hpp"
#include "../Manager/ResourceManager.hpp"
#include "Default3D.vert.hpp"
#include "Default3D.frag.hpp"
#include "../Shader/ShaderProgram.hpp"
#include "../Entity/Entity.hpp"
#include "../Component/Lens.hpp"
#include "../... |
<commit_before>/* Copyright 2021 The TensorFlow 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 appl... |
<commit_before>#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <iterator>
#include <ctime>
#include <unordered_map>
#include <algorithm>
#include <cmath>
#include <chrono>
#include <iostream>
#include <fstream>
#include <string>
#include <iterator>
#include <unordered_map>
#include <... |
<commit_before>/***************************************************************************
* Copyright (c) 2019 WandererFan <[email protected]> *
* *
* This file is part of the FreeCAD CAx development system. ... |
<commit_before>#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
#include <fstream>
#include "../MasterHeader.h"
using namespace std;
//color pallette
static SDL_Color yellow{ 255,231,76,255 };
static SDL_Color red{ 255,89,100,255 };
static SDL_Color white{ 255,255,255,255 };
static SDL_Color blue{ 53,167,255,... |
<commit_before>#include <Grappa.hpp>
#include "MatchesDHT.hpp"
#include <Cache.hpp>
#include <AsyncParallelFor.hpp>
#include <string>
#include <fstream>
#include <vector>
DEFINE_uint64( numTuples, 32, "Number of tuples to generate" );
std::vector<std::string> &split(const std::string &s, char delim, std::vector<std... |
<commit_before>// Copyright (c) 2013 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/browser/component_updater/widevine_cdm_component_installer.h"
#include <string.h>
#include <vector>
#include "base/... |
<commit_before>#include "CurlInitializer.h"
#include "ExceptionHelpers.h"
using namespace Instagram;
CurlInitializer::CurlInitializer(CurlApiPtr curlApi) : mCurlApi(curlApi)
{
if (mCurlApi->curl_global_init(CURL_GLOBAL_ALL))
Throw(CURL_GLOBAL_INIT_FAILED);
}
CurlInitializer::~CurlInitializer()
{
mCur... |
<commit_before>/***************************************************************************
* Copyright (c) 2004 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This file is part of the FreeCAD CAx development system. ... |
<commit_before>/** Copyright (C) 2015 Ultimaker - Released under terms of the AGPLv3 License */
#include "LayerPlanBuffer.h"
#include "gcodeExport.h"
#include "utils/logoutput.h"
#include "FffProcessor.h"
namespace cura {
void LayerPlanBuffer::flush()
{
if (buffer.size() > 0)
{
insertPreheatCommand... |
<commit_before>//===- tools/dsymutil/CompileUnit.h - Dwarf compile unit ------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>
#include "Globals.h"
#include "LoggerListeners.h"
#include <chrono>
#if defined(_WIN32)
#include <io.h> // Needed for _isatty(), not available on Linux
#include <time.h>
#elif defined(__linux) && !defined(ANDROID_NDK)
#include <unistd.h> // Needed for isatty() on Linux
#elif defined(ANDROID_NDK)... |
<commit_before>#include <cassert>
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include <algorithm>
int detectorid(unsigned int wirepos, unsigned int gridpos) {
// Should depend on the instance of a specific detector geomoetry,
// and calibration data
unsigned int wire = 128 * (wirepos - 0) / (1231);
... |
<commit_before><commit_msg>clang: Assigned value is garbage or undefined<commit_after><|endoftext|> |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation ([email protected])
**
** This file is part of libmeegotouch.
**
** If you have questions regarding t... |
<commit_before>//-----------------------------------------------------------------------
// Copyright 2011 Ciaran McHale.
//
// 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 restric... |
<commit_before>// SetWorkspaceName.cc for Fluxbox
// Copyright (c) 2003 Henrik Kinnunen (fluxgen(at)users.sourceforge.net)
//
// 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 restri... |
<commit_before>/*
* author: Max Kellermann <[email protected]>
*/
#ifndef BENG_PROXY_SLICE_FIFO_BUFFER_HXX
#define BENG_PROXY_SLICE_FIFO_BUFFER_HXX
#include "socket_wrapper.hxx"
#include "util/ForeignFifoBuffer.hxx"
#include <stdint.h>
struct SlicePool;
struct SliceArea;
class SliceFifoBuffer : public ForeignFifoBuf... |
<commit_before>/*
* author: Max Kellermann <[email protected]>
*/
#ifndef BENG_PROXY_SLICE_FIFO_BUFFER_HXX
#define BENG_PROXY_SLICE_FIFO_BUFFER_HXX
#include "socket_wrapper.hxx"
#include "util/ForeignFifoBuffer.hxx"
#include <stdint.h>
class SliceFifoBuffer : public ForeignFifoBuffer<uint8_t> {
struct slice_area ... |
<commit_before>#pragma once
#include "../StandardInclude.hpp"
#include "../EntityInclude.hpp"
#include "../StateInterface.hpp"
class GameTitle : public StateInterface
{
public: static GameTitle &GetInstance(void) { static auto instance = GameTitle(); return instance; }
private: GameTitle() { }
private:
bool IsIni... |
<commit_before>/*
* System_fileSync.cpp
*
* Created on: Jun 24, 2014
* Author: Pimenta
*/
// this
#include "System.hpp"
// local
#include "Defines.hpp"
#include "FD8Protocol.hpp"
#include "FileSystem.hpp"
using namespace std;
using namespace helpers;
using namespace concurrency;
using na... |
<commit_before>#include "ImageRenderer.hpp"
#include "FAST/Exception.hpp"
#include "FAST/DeviceManager.hpp"
#include "FAST/Utility.hpp"
#include "FAST/SceneGraph.hpp"
#if defined(__APPLE__) || defined(__MACOSX)
#include <OpenCL/cl_gl.h>
#include <OpenGL/gl.h>
#include <OpenGL/OpenGL.h>
#else
#if _WIN32
#include <GL/gl.... |
<commit_before>// Copyright (c) 2020 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.